Add publish template and card IDs
This commit is contained in:
1 parent
289ca19272
commit
32993849db
7 files changed
+565
-474
No files matched your search
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { Card } from '../types';
|
||||
import { getCards, createCard, updateCard, deleteCard } from '../services/api';
|
||||
import { Plus, CreditCard, Clock, FileText, Image as ImageIcon, Code, Edit, Trash2, Save, X, Eye, EyeOff, Package } from 'lucide-react';
|
||||
import { Plus, CreditCard, Clock, FileText, Image as ImageIcon, Code, Edit, Trash2, Save, X, Eye, EyeOff, Package, Copy } from 'lucide-react';
|
||||
|
||||
type AddCardForm = {
|
||||
name: string;
|
||||
@@ -185,6 +185,15 @@ const CardList: React.FC = () => {
|
||||
}
|
||||
};
|
||||
|
||||
const copyCardID = async (id: string | number) => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(String(id));
|
||||
alert(`已复制卡密组ID:${id}`);
|
||||
} catch {
|
||||
prompt('复制卡密组ID', String(id));
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="space-y-6 animate-fade-in">
|
||||
<div className="flex justify-between items-center">
|
||||
@@ -206,10 +215,11 @@ const CardList: React.FC = () => {
|
||||
<table className="w-full text-left border-collapse">
|
||||
<thead>
|
||||
<tr className="bg-white text-gray-400 text-xs font-bold uppercase tracking-wider border-b border-gray-50">
|
||||
<th className="px-8 py-5 w-[15%]">卡密名称</th>
|
||||
<th className="px-6 py-5 w-[12%]">类型</th>
|
||||
<th className="px-6 py-5 w-[25%]">内容/库存</th>
|
||||
<th className="px-6 py-5 w-[20%]">描述</th>
|
||||
<th className="px-8 py-5 w-[18%]">卡密名称</th>
|
||||
<th className="px-6 py-5 w-[12%]">卡密组ID</th>
|
||||
<th className="px-6 py-5 w-[10%]">类型</th>
|
||||
<th className="px-6 py-5 w-[22%]">内容/库存</th>
|
||||
<th className="px-6 py-5 w-[18%]">描述</th>
|
||||
<th className="px-6 py-5 w-[10%]">状态</th>
|
||||
<th className="px-6 py-5 w-[10%] text-right">操作</th>
|
||||
</tr>
|
||||
@@ -239,6 +249,16 @@ const CardList: React.FC = () => {
|
||||
<span className="font-bold text-gray-900">{card.name}</span>
|
||||
</div>
|
||||
</td>
|
||||
<td className="px-6 py-5">
|
||||
<button
|
||||
onClick={() => copyCardID(card.id)}
|
||||
className="inline-flex items-center gap-2 rounded-xl bg-gray-100 px-3 py-2 font-mono text-xs font-extrabold text-gray-700 hover:bg-gray-200 transition-colors"
|
||||
title="复制卡密组ID,用于批量铺货表格"
|
||||
>
|
||||
{card.id}
|
||||
<Copy className="w-3.5 h-3.5" />
|
||||
</button>
|
||||
</td>
|
||||
<td className="px-6 py-5">
|
||||
<span className={`px-3 py-1.5 rounded-lg text-xs font-bold ${
|
||||
card.type === 'text' ? 'bg-blue-50 text-blue-600' :
|
||||
|
||||
@@ -365,6 +365,26 @@ const ItemList: React.FC<ItemListProps> = ({ onConfigureDelivery }) => {
|
||||
}
|
||||
};
|
||||
|
||||
const downloadPublishTemplate = () => {
|
||||
const headers = ['账号ID', '标题', '描述', '价格', '原价', '库存', '邮费模式', '邮费', '图片', '自动创建发货规则', '卡密组ID', '发货数量'];
|
||||
const rows = [
|
||||
['', '会员月卡自动发货', '下单后自动发货,请按说明使用。', '19.90', '29.90', '10', 'free', '', 'images/month-card-1.jpg;images/month-card-2.jpg', '是', '请填写卡密页看到的ID', '1'],
|
||||
['', '会员季卡自动发货', '支持自动发货。', '49.90', '', '10', 'fixed', '8.00', 'https://example.com/product.jpg', '否', '', '1'],
|
||||
];
|
||||
const csv = [headers, ...rows]
|
||||
.map(row => row.map(cell => `"${String(cell).replace(/"/g, '""')}"`).join(','))
|
||||
.join('\n');
|
||||
const blob = new Blob(['\uFEFF' + csv], { type: 'text/csv;charset=utf-8' });
|
||||
const url = URL.createObjectURL(blob);
|
||||
const link = document.createElement('a');
|
||||
link.href = url;
|
||||
link.download = '批量铺货模板.csv';
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
link.remove();
|
||||
URL.revokeObjectURL(url);
|
||||
};
|
||||
|
||||
const toggleMultiSpec = async (item: Item) => {
|
||||
const next = !Boolean(item.is_multi_spec);
|
||||
setItems(prev => prev.map(i =>
|
||||
@@ -815,7 +835,19 @@ const ItemList: React.FC<ItemListProps> = ({ onConfigureDelivery }) => {
|
||||
{batchPhase === 'upload' && (
|
||||
<div className="space-y-5">
|
||||
<div className="rounded-2xl border border-blue-100 bg-blue-50 p-4 text-sm text-blue-900 leading-6">
|
||||
表格字段至少包含:标题、价格、图片。图片字段写 zip 内相对路径,多个图片用英文分号分隔,例如 <span className="font-mono font-bold">images/a.jpg;images/b.jpg</span>。也支持直接填写图片 URL。
|
||||
<div className="flex flex-col md:flex-row md:items-center md:justify-between gap-3">
|
||||
<div>
|
||||
<div className="font-extrabold">先下载模板,再按字段填写。</div>
|
||||
<div>图片字段写 zip 内相对路径,多个图片用英文分号分隔,例如 <span className="font-mono font-bold">images/a.jpg;images/b.jpg</span>。也支持直接填写图片 URL。</div>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
onClick={downloadPublishTemplate}
|
||||
className="shrink-0 rounded-xl bg-blue-600 px-4 py-2 text-sm font-extrabold text-white hover:bg-blue-700"
|
||||
>
|
||||
下载CSV模板
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
@@ -856,10 +888,43 @@ const ItemList: React.FC<ItemListProps> = ({ onConfigureDelivery }) => {
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div className="rounded-2xl bg-gray-50 border border-gray-100 p-4">
|
||||
<div className="text-sm font-extrabold text-gray-900 mb-2">模板列建议</div>
|
||||
<div className="text-xs text-gray-600 leading-6">
|
||||
账号ID、标题、描述、价格、原价、库存、邮费模式、邮费、图片、自动创建发货规则、卡密组ID、发货数量
|
||||
<div className="rounded-2xl bg-gray-50 border border-gray-100 p-4 space-y-3">
|
||||
<div>
|
||||
<div className="text-sm font-extrabold text-gray-900">字段说明</div>
|
||||
<p className="text-xs text-gray-500 mt-1">必填字段缺失会在预检阶段拦截,不会发布。</p>
|
||||
</div>
|
||||
<div className="overflow-x-auto rounded-xl border border-gray-100 bg-white">
|
||||
<table className="w-full text-left text-xs">
|
||||
<thead className="bg-gray-50 text-gray-500">
|
||||
<tr>
|
||||
<th className="px-3 py-2">字段</th>
|
||||
<th className="px-3 py-2">是否必填</th>
|
||||
<th className="px-3 py-2">说明</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody className="divide-y divide-gray-50 text-gray-700">
|
||||
{[
|
||||
['账号ID', '可空', '空时使用上方选择的默认发布账号'],
|
||||
['标题', '必填', '商品标题'],
|
||||
['描述', '可空', '空时默认等于标题'],
|
||||
['价格', '必填', '售价,例如 19.90'],
|
||||
['原价', '可空', '展示原价,例如 29.90'],
|
||||
['库存', '可空', '默认 1,必须大于 0'],
|
||||
['邮费模式', '可空', '默认 free;支持 free / fixed'],
|
||||
['邮费', '条件必填', '邮费模式 fixed 时填写,例如 8.00'],
|
||||
['图片', '必填', 'zip 内相对路径或 URL,多张用英文分号分隔'],
|
||||
['自动创建发货规则', '可空', '填 是/true/1 表示发布成功后创建自动发货规则'],
|
||||
['卡密组ID', '条件必填', '自动创建发货规则=是 时必填;在“卡密库存”页复制'],
|
||||
['发货数量', '可空', '默认 1,每个订单发送几份卡密'],
|
||||
].map(([name, required, desc]) => (
|
||||
<tr key={name}>
|
||||
<td className="px-3 py-2 font-bold text-gray-900 whitespace-nowrap">{name}</td>
|
||||
<td className={`px-3 py-2 whitespace-nowrap font-bold ${required === '必填' || required === '条件必填' ? 'text-red-600' : 'text-gray-500'}`}>{required}</td>
|
||||
<td className="px-3 py-2 min-w-[260px]">{desc}</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-1{bottom:-.25rem}.-right-1{rigLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-1{bottom:-.25rem}.-right-1{rigLine truncated
|
||||
@@ -1,461 +0,0 @@
|
||||
var eM=Object.defineProperty;var tM=(e,t,n)=>t in e?eM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qc=(e,t,n)=>tM(e,typeof t!="symbol"?t+"":t,n);function nM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(r,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const d of s.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function zp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $v={exports:{}},Ms={};/**
|
||||
* @license React
|
||||
* react-jsx-runtime.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Kw;function rM(){if(Kw)return Ms;Kw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,l,s){var d=null;if(s!==void 0&&(d=""+s),l.key!==void 0&&(d=""+l.key),"key"in l){s={};for(var f in l)f!=="key"&&(s[f]=l[f])}else s=l;return l=s.ref,{$$typeof:e,type:r,key:d,ref:l!==void 0?l:null,props:s}}return Ms.Fragment=t,Ms.jsx=n,Ms.jsxs=n,Ms}var Yw;function aM(){return Yw||(Yw=1,$v.exports=rM()),$v.exports}var c=aM(),Iv={exports:{}},Me={};/**
|
||||
* @license React
|
||||
* react.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Gw;function iM(){if(Gw)return Me;Gw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),x=Symbol.iterator;function w(k){return k===null||typeof k!="object"?null:(k=x&&k[x]||k["@@iterator"],typeof k=="function"?k:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,N={};function O(k,K,X){this.props=k,this.context=K,this.refs=N,this.updater=X||_}O.prototype.isReactComponent={},O.prototype.setState=function(k,K){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,K,"setState")},O.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function A(){}A.prototype=O.prototype;function T(k,K,X){this.props=k,this.context=K,this.refs=N,this.updater=X||_}var C=T.prototype=new A;C.constructor=T,j(C,O.prototype),C.isPureReactComponent=!0;var P=Array.isArray;function M(){}var $={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function Q(k,K,X){var ue=X.ref;return{$$typeof:e,type:k,key:K,ref:ue!==void 0?ue:null,props:X}}function z(k,K){return Q(k.type,K,k.props)}function F(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function V(k){var K={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(X){return K[X]})}var me=/\/+/g;function he(k,K){return typeof k=="object"&&k!==null&&k.key!=null?V(""+k.key):K.toString(36)}function se(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(M,M):(k.status="pending",k.then(function(K){k.status==="pending"&&(k.status="fulfilled",k.value=K)},function(K){k.status==="pending"&&(k.status="rejected",k.reason=K)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function H(k,K,X,ue,ye){var pe=typeof k;(pe==="undefined"||pe==="boolean")&&(k=null);var je=!1;if(k===null)je=!0;else switch(pe){case"bigint":case"string":case"number":je=!0;break;case"object":switch(k.$$typeof){case e:case t:je=!0;break;case y:return je=k._init,H(je(k._payload),K,X,ue,ye)}}if(je)return ye=ye(k),je=ue===""?"."+he(k,0):ue,P(ye)?(X="",je!=null&&(X=je.replace(me,"$&/")+"/"),H(ye,K,X,"",function(fe){return fe})):ye!=null&&(F(ye)&&(ye=z(ye,X+(ye.key==null||k&&k.key===ye.key?"":(""+ye.key).replace(me,"$&/")+"/")+je)),K.push(ye)),1;je=0;var De=ue===""?".":ue+":";if(P(k))for(var R=0;R<k.length;R++)ue=k[R],pe=De+he(ue,R),je+=H(ue,K,X,pe,ye);else if(R=w(k),typeof R=="function")for(k=R.call(k),R=0;!(ue=k.next()).done;)ue=ue.value,pe=De+he(ue,R++),je+=H(ue,K,X,pe,ye);else if(pe==="object"){if(typeof k.then=="function")return H(se(k),K,X,ue,ye);throw K=String(k),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return je}function te(k,K,X){if(k==null)return k;var ue=[],ye=0;return H(k,ue,"","",function(pe){return K.call(X,pe,ye++)}),ue}function ae(k){if(k._status===-1){var K=k._result;K=K(),K.then(function(X){(k._status===0||k._status===-1)&&(k._status=1,k._result=X)},function(X){(k._status===0||k._status===-1)&&(k._status=2,k._result=X)}),k._status===-1&&(k._status=0,k._result=K)}if(k._status===1)return k._result.default;throw k._result}var Z=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},L={map:te,forEach:function(k,K,X){te(k,function(){K.apply(this,arguments)},X)},count:function(k){var K=0;return te(k,function(){K++}),K},toArray:function(k){return te(k,function(K){return K})||[]},only:function(k){if(!F(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Me.Activity=p,Me.Children=L,Me.Component=O,Me.Fragment=n,Me.Profiler=l,Me.PureComponent=T,Me.StrictMode=r,Me.Suspense=h,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,Me.__COMPILER_RUNTIME={__proto__:null,c:function(k){return $.H.useMemoCache(k)}},Me.cache=function(k){return function(){return k.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(k,K,X){if(k==null)throwLine truncated
|
||||
* @license React
|
||||
* scheduler.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Xw;function oM(){return Xw||(Xw=1,(function(e){function t(H,te){var ae=H.length;H.push(te);e:for(;0<ae;){var Z=ae-1>>>1,L=H[Z];if(0<l(L,te))H[Z]=te,H[ae]=L,ae=Z;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var te=H[0],ae=H.pop();if(ae!==te){H[0]=ae;e:for(var Z=0,L=H.length,k=L>>>1;Z<k;){var K=2*(Z+1)-1,X=H[K],ue=K+1,ye=H[ue];if(0>l(X,ae))ue<L&&0>l(ye,X)?(H[Z]=ye,H[ue]=ae,Z=ue):(H[Z]=X,H[K]=ae,Z=K);else if(ue<L&&0>l(ye,ae))H[Z]=ye,H[ue]=ae,Z=ue;else break e}}return te}function l(H,te){var ae=H.sortIndex-te.sortIndex;return ae!==0?ae:H.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var h=[],m=[],y=1,p=null,x=3,w=!1,_=!1,j=!1,N=!1,O=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function C(H){for(var te=n(m);te!==null;){if(te.callback===null)r(m);else if(te.startTime<=H)r(m),te.sortIndex=te.expirationTime,t(h,te);else break;te=n(m)}}function P(H){if(j=!1,C(H),!_)if(n(h)!==null)_=!0,M||(M=!0,V());else{var te=n(m);te!==null&&se(P,te.startTime-H)}}var M=!1,$=-1,B=5,Q=-1;function z(){return N?!0:!(e.unstable_now()-Q<B)}function F(){if(N=!1,M){var H=e.unstable_now();Q=H;var te=!0;try{e:{_=!1,j&&(j=!1,A($),$=-1),w=!0;var ae=x;try{t:{for(C(H),p=n(h);p!==null&&!(p.expirationTime>H&&z());){var Z=p.callback;if(typeof Z=="function"){p.callback=null,x=p.priorityLevel;var L=Z(p.expirationTime<=H);if(H=e.unstable_now(),typeof L=="function"){p.callback=L,C(H),te=!0;break t}p===n(h)&&r(h),C(H)}else r(h);p=n(h)}if(p!==null)te=!0;else{var k=n(m);k!==null&&se(P,k.startTime-H),te=!1}}break e}finally{p=null,x=ae,w=!1}te=void 0}}finally{te?V():M=!1}}}var V;if(typeof T=="function")V=function(){T(F)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,he=me.port2;me.port1.onmessage=F,V=function(){he.postMessage(null)}}else V=function(){O(F,0)};function se(H,te){$=O(function(){H(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(H){switch(x){case 1:case 2:case 3:var te=3;break;default:te=x}var ae=x;x=te;try{return H()}finally{x=ae}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(H,te){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ae=x;x=H;try{return te()}finally{x=ae}},e.unstable_scheduleCallback=function(H,te,ae){var Z=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Z+ae:Z):ae=Z,H){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=ae+L,H={id:y++,callback:te,priorityLevel:H,startTime:ae,expirationTime:L,sortIndex:-1},ae>Z?(H.sortIndex=ae,t(m,H),n(h)===null&&H===n(m)&&(j?(A($),$=-1):j=!0,se(P,ae-Z))):(H.sortIndex=L,t(h,H),_||w||(_=!0,M||(M=!0,V()))),H},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(H){var te=x;return function(){var ae=x;x=te;try{return H.apply(this,arguments)}finally{x=ae}}}})(Bv)),Bv}var Fw;function sM(){return Fw||(Fw=1,Lv.exports=oM()),Lv.exports}var Uv={exports:{}},ln={};/**
|
||||
* @license React
|
||||
* react-dom.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Zw;function uM(){if(Zw)return ln;Zw=1;var e=No();function t(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(h,m,y){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:p==null?null:""+p,children:h,containerInfo:m,implementation:y}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ln.createPortal=function(h,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return s(h,m,null,y)},ln.flushSync=function(h){var m=d.T,y=r.p;try{if(d.T=null,r.p=2,h)return h()}finally{d.T=m,r.p=y,r.d.f()}},ln.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(h,m))},ln.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},ln.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var y=m.as,p=f(y,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?r.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:p,integrity:x,fetchPriority:w}):y==="script"&&r.d.X(h,{crossOrigin:p,integrity:x,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ln.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=f(m.as,m.crossOrigin);r.d.M(h,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(h)},ln.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,p=f(y,m.crossOrigin);r.d.L(h,y,{crossOrigin:p,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ln.preloadModule=function(h,m){if(typeof h=="string")if(m){var y=f(m.as,m.crossOrigin);r.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(h)},ln.requestFormReset=function(h){r.d.r(h)},ln.unstable_batchedUpdates=function(h,m){return h(m)},ln.useFormState=function(h,m,y){return d.H.useFormState(h,m,y)},ln.useFormStatus=function(){return d.H.useHostTransitionStatus()},ln.version="19.2.7",ln}var Ww;function VN(){if(Ww)return Uv.exports;Ww=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Uv.exports=uM(),Uv.exports}/**
|
||||
* @license React
|
||||
* react-dom-client.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Qw;function cM(){if(Qw)return Ts;Qw=1;var e=sM(),t=No(),n=VN();function r(a){var i="https://react.dev/errors/"+a;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){var i=a,o=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(o=i.return),a=i.return;while(a)}return i.tag===3?o:null}function d(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function f(a){if(a.tag===31){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function h(a){if(s(a)!==a)throw Error(r(188))}function m(a){var i=a.alternate;if(!i){if(i=s(a),i===null)throw Error(r(188));return i!==a?null:a}for(var o=a,u=i;;){var v=o.return;if(v===null)break;var g=v.alternate;if(g===null){if(u=v.return,u!==null){o=u;continue}break}if(v.child===g.child){for(g=v.child;g;){if(g===o)return h(v),a;if(g===u)return h(v),i;g=g.sibling}throw Error(r(188))}if(o.return!==u.return)o=v,u=g;else{for(var S=!1,E=v.child;E;){if(E===o){S=!0,o=v,u=g;break}if(E===u){S=!0,u=v,o=g;break}E=E.sibling}if(!S){for(E=g.child;E;){if(E===o){S=!0,o=g,u=v;break}if(E===u){S=!0,u=g,o=v;break}E=E.sibling}if(!S)throw Error(r(189))}}if(o.alternate!==u)throw Error(r(190))}if(o.tag!==3)throw Error(r(188));return o.stateNode.current===o?a:i}function y(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=y(a),i!==null)return i;a=a.sibling}return null}var p=Object.assign,x=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),T=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function V(a){return a===null||typeof a!="object"?null:(a=F&&a[F]||a["@@iterator"],typeof a=="function"?a:null)}var me=Symbol.for("react.client.reference");function he(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===me?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case j:return"Fragment";case O:return"Profiler";case N:return"StrictMode";case P:return"Suspense";case M:return"SuspenseList";case Q:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case _:return"Portal";case T:return a.displayName||"Context";case A:return(a._context.displayName||"Context")+".Consumer";case C:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case $:return i=a.displayName||null,i!==null?i:he(a.type)||"Memo";case B:i=a._payload,a=a._init;try{return he(a(i))}catch{}}return null}var se=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Z=[],L=-1;function k(a){return{current:a}}function K(a){0>L||(a.current=Z[L],Z[L]=null,L--)}function X(a,i){L++,Z[L]=a.current,a.current=i}var ue=k(null),ye=k(null),pe=k(null),je=k(null);function De(a,i){switch(X(pe,i),X(ye,a),X(ue,null),i.nodeType){case 9:case 11:a=(a=i.documentElement)&&(a=a.namespaceURI)?hw(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=hw(i),a=mw(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}K(ue),X(ue,a)}function R(){K(ue),K(ye),K(pe)}function fe(a){a.memoizedState!==null&&X(je,a);var i=ue.current,o=mw(i,a.type);i!==o&&(X(ye,a),X(ue,o))}function ve(a){ye.current===a&&(K(ue),K(ye)),je.current===a&&(K(je),Os._currentValue=ae)}var ie,Ae;function ke(a){if(ie===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);ie=i&&i[1]||"",Ae=-1<o.stack.indexOf(`
|
||||
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||||
`+ie+a+Ae}var _e=!1;function et(a,i){if(!a||_e)return"";_e=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ne){var ee=ne}Reflect.construct(a,[],ce)}else{try{ce.call()}catch(ne){ee=ne}a.call(ce.prototype)}}else{try{throw Error()}catch(ne){ee=ne}(ce=a())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ne){if(ne&&ee&&typeof ne.stack=="string")return[ne.stack,ee.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=u.DetermineComponentFrameRoot(),S=g[0],E=g[1];if(S&&E){var I=S.split(`
|
||||
`),J=E.split(`
|
||||
`);for(v=u=0;u<I.length&&!I[u].includes("DetermineComponentFrameRoot");)u++;for(;v<J.length&&!J[v].includes("DetermineComponentFrameRoot");)v++;if(u===I.length||v===J.length)for(u=I.length-1,v=J.length-1;1<=u&&0<=v&&I[u]!==J[v];)v--;for(;1<=u&&0<=v;u--,v--)if(I[u]!==J[v]){if(u!==1||v!==1)do if(u--,v--,0>v||I[u]!==J[v]){var le=`
|
||||
`+I[u].replace(" at new "," at ");return a.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",a.displayName)),le}while(1<=u&&0<=v);break}}}finally{_e=!1,Error.prepareStackTrace=o}return(o=a?a.displayName||a.name:"")?ke(o):""}function Te(a,i){switch(a.tag){case 26:case 27:case 5:return ke(a.type);case 16:return ke("Lazy");case 13:return a.child!==i&&i!==null?ke("Suspense Fallback"):ke("Suspense");case 19:return ke("SuspenseList");case 0:case 15:return et(a.type,!1);case 11:return et(a.type.render,!1);case 1:return et(a.type,!0);case 31:return ke("Activity");default:return""}}function Cn(a){try{var i="",o=null;do i+=Te(a,o),o=a,a=a.return;while(a);return i}catch(u){return`
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}}var mr=Object.prototype.hasOwnProperty,gn=e.unstable_scheduleCallback,re=e.unstable_cancelCallback,Ce=e.unstable_shouldYield,Ie=e.unstable_requestPaint,q=e.unstable_now,D=e.unstable_getCurrentPriorityLevel,de=e.unstable_ImmediatePriority,Re=e.unstable_UserBlockingPriority,gt=e.unstable_NormalPriority,Gn=e.unstable_LowPriority,mn=e.unstable_IdlePriority,Vn=e.log,ml=e.unstable_setDisableYieldValue,Lo=null,Mn=null;function Ea(a){if(typeof Vn=="function"&&ml(a),Mn&&typeof Mn.setStrictMode=="function")try{Mn.setStrictMode(Lo,a)}catch{}}var Tn=Math.clz32?Math.clz32:B3,R3=Math.log,L3=Math.LN2;function B3(a){return a>>>=0,a===0?32:31-(R3(a)/L3|0)|0}var $u=256,Iu=262144,Ru=4194304;function yi(a){var i=a&42;if(i!==0)return i;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Lu(a,i,o){var u=a.pendingLanes;if(u===0)return 0;var v=0,g=a.suspendedLanes,S=a.pingedLanes;a=a.warmLanes;var E=u&134217727;return E!==0?(u=E&~g,u!==0?v=yi(u):(S&=E,S!==0?v=yi(S):o||(o=E&~a,o!==0&&(v=yi(o))))):(E=u&~g,E!==0?v=yi(E):S!==0?v=yi(S):o||(o=u&~a,o!==0&&(v=yi(o)))),v===0?0:i!==0&&i!==v&&(i&g)===0&&(g=v&-v,o=i&-i,g>=o||g===32&&(o&4194048)!==0)?i:v}function Bo(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function U3(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xg(){var a=Ru;return Ru<<=1,(Ru&62914560)===0&&(Ru=4194304),a}function Sh(a){for(var i=[],o=0;31>o;o++)i.push(a);return i}function Uo(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function q3(a,i,o,u,v,g){var S=a.pendingLanes;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=o,a.entangledLanes&=o,a.errorRecoveryDisabledLanes&=o,a.shellSuspendCounter=0;var E=a.entanglements,I=a.expirationTimes,J=a.hiddenUpdates;for(o=S&~o;0<o;){var le=31-Tn(o),ce=1<<le;E[le]=0,I[le]=-1;var ee=J[le];if(ee!==null)for(J[le]=null,le=0;le<ee.length;le++){var ne=ee[le];ne!==null&&(ne.lane&=-536870913)}o&=~ce}u!==0&&Fg(a,u,0),g!==0&&v===0&&a.tag!==0&&(a.suspendedLanes|=g&~(S&~i))}function Fg(a,i,o){a.pendingLanes|=i,a.suspendedLanes&=~i;var u=31-Tn(i);a.entangledLanes|=i,a.entanglements[u]=a.entanglements[u]|1073741824|o&261930}function Zg(a,i){var o=a.entangledLanes|=i;for(a=a.entanglements;o;){var u=31-Tn(o),v=1<<u;v&i|a[u]&i&&(a[u]|=i),o&=~v}}function Wg(a,i){var o=i&-i;return o=(o&42)!==0?1:Nh(o),(o&(a.suspendedLanes|i))!==0?0:o}function Nh(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Ah(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Qg(){var a=te.p;return a!==0?a:(a=window.event,a===void 0?32:Iw(a.type))}function Jg(a,i){var o=te.p;try{return te.p=a,i()}finally{te.p=o}}var ka=Math.random().toString(36).slice(2),Zt="__reactFiber$"+ka,xn="__reactProps$"+ka,vl="__reactContainer$"+ka,Oh="__reactEvents$"+ka,H3="__reactListeners$"+ka,K3="__reactHandles$"+ka,ex="__reactResources$"+ka,qo="__reactMarker$"+ka;function Eh(a){delete a[Zt],delete a[xn],delete a[Oh],delete a[H3],delete a[K3]}function yl(a){var i=a[Zt];if(i)return i;for(var o=a.parentNode;o;){if(i=o[vl]||o[Zt]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(a=ww(a);a!==null;){if(o=a[Zt])return o;a=ww(a)}return i}a=o,o=a.parentNode}return null}function pl(a){if(a=a[Zt]||a[vl]){var i=a.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return a}return null}function Ho(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error(r(33))}function gl(a){var i=a[ex];return i||(i=a[ex]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Ht(a){a[qo]=!0}var tx=new Set,nx={};function pi(a,i){xl(a,i),xl(a+"Capture",i)}function xl(a,i){for(nx[a]=i,a=0;a<i.length;a++)tx.add(i[a])}var Y3=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C
Line truncated
|
||||
`).replace(j4,"")}function dw(a,i){return i=cw(i),cw(a)===i}function nt(a,i,o,u,v,g){switch(o){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||wl(a,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&wl(a,""+u);break;case"className":Uu(a,"class",u);break;case"tabIndex":Uu(a,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Uu(a,o,u);break;case"style":dx(a,u,g);break;case"data":if(i!=="object"){Uu(a,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||o!=="href")){a.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){a.removeAttribute(o);break}u=Hu(""+u),a.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){a.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(o==="formAction"?(i!=="input"&&nt(a,i,"name",v.name,v,null),nt(a,i,"formEncType",v.formEncType,v,null),nt(a,i,"formMethod",v.formMethod,v,null),nt(a,i,"formTarget",v.formTarget,v,null)):(nt(a,i,"encType",v.encType,v,null),nt(a,i,"method",v.method,v,null),nt(a,i,"target",v.target,v,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){a.removeAttribute(o);break}u=Hu(""+u),a.setAttribute(o,u);break;case"onClick":u!=null&&(a.onclick=Vr);break;case"onScroll":u!=null&&Be("scroll",a);break;case"onScrollEnd":u!=null&&Be("scrollend",a);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(o=u.__html,o!=null){if(v.children!=null)throw Error(r(60));a.innerHTML=o}}break;case"multiple":a.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":a.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){a.removeAttribute("xlink:href");break}o=Hu(""+u),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?a.setAttribute(o,""+u):a.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?a.setAttribute(o,""):a.removeAttribute(o);break;case"capture":case"download":u===!0?a.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?a.setAttribute(o,u):a.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?a.setAttribute(o,u):a.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?a.removeAttribute(o):a.setAttribute(o,u);break;case"popover":Be("beforetoggle",a),Be("toggle",a),Bu(a,"popover",u);break;case"xlinkActuate":Gr(a,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Gr(a,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Gr(a,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Gr(a,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Gr(a,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Gr(a,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Gr(a,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Gr(a,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Gr(a,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Bu(a,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=Z3.get(o)||o,Bu(a,o,u))}}function gv(a,i,o,u,v,g){switch(o){case"style":dx(a,u,g);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(o=u.__html,o!=null){if(v.children!=null)throw Error(r(60));a.innerHTML=o}}break;case"children":typeof u=="string"?wl(a,u):(typeof u=="number"||typeof u=="bigint")&&wl(a,""+u);break;case"onScroll":u!=null&&Be("scroll",a);break;case"onScrollEnd":u!=null&&Be("scrollend",a);break;case"onClick":u!=null&&(a.onclick=Vr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const mM=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vM=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ej=e=>{const t=vM(e);return t.charAt(0).toUpperCase()+t.slice(1)},XN=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),yM=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var pM={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const gM=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:s,iconNode:d,...f},h)=>b.createElement("svg",{ref:h,...pM,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:XN("lucide",l),...!s&&!yM(f)&&{"aria-hidden":"true"},...f},[...d.map(([m,y])=>b.createElement(m,y)),...Array.isArray(s)?s:[s]]));/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ne=(e,t)=>{const n=b.forwardRef(({className:r,...l},s)=>b.createElement(gM,{ref:s,iconNode:t,className:XN(`lucide-${mM(ej(e))}`,`lucide-${e}`,r),...l}));return n.displayName=ej(e),n};/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const xM=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],tj=Ne("activity",xM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const bM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ay=Ne("arrow-right",bM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const wM=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],da=Ne("bot",wM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const jM=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],FN=Ne("box",jM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _M=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ks=Ne("check",_M);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const SM=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],NM=Ne("chevron-down",SM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const AM=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],OM=Ne("chevron-left",AM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const EM=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],kM=Ne("chevron-right",EM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const CM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],nj=Ne("circle-alert",CM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const MM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],TM=Ne("circle-check",MM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const DM=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],PM=Ne("circle-dashed",DM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const zM=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],rj=Ne("clock",zM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $M=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],Jc=Ne("cloud-upload",$M);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const IM=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],aj=Ne("code",IM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const RM=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ij=Ne("copy-plus",RM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const LM=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Oy=Ne("credit-card",LM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const BM=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],UM=Ne("database",BM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const qM=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],HM=Ne("dollar-sign",qM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const KM=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ZN=Ne("external-link",KM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const YM=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ys=Ne("eye-off",YM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const GM=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],oo=Ne("eye",GM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const VM=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],lj=Ne("file-text",VM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const XM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],oj=Ne("image",XM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const FM=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Ey=Ne("key",FM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ZM=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],ky=Ne("layers",ZM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const WM=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],QM=Ne("layout-dashboard",WM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const JM=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],eT=Ne("link-2",JM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const tT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ri=Ne("loader-circle",tT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const nT=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],sj=Ne("lock-keyhole",nT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const rT=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],aT=Ne("lock",rT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const iT=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],lT=Ne("log-out",iT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oT=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],sT=Ne("mail",oT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const uT=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Ri=Ne("message-square",uT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const cT=[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],Cy=Ne("package-check",cT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const dT=[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],qv=Ne("package-plus",dT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const fT=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],WN=Ne("package",fT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const hT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],bd=Ne("pen",hT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const mT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Qi=Ne("plus",mT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const vT=[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],yT=Ne("power-off",vT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const pT=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],My=Ne("power",pT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const gT=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],Hv=Ne("qr-code",gT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const xT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],cr=Ne("refresh-cw",xT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const bT=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],va=Ne("save",bT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const wT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],jT=Ne("search",wT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _T=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],$p=Ne("settings",_T);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ST=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],QN=Ne("shield-check",ST);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const NT=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],JN=Ne("shopping-bag",NT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const AT=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],uj=Ne("shopping-cart",AT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const OT=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ip=Ne("sparkles",OT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ET=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Rp=Ne("square-pen",ET);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const kT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],ii=Ne("trash-2",kT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const CT=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],MT=Ne("trending-up",CT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const TT=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],Fs=Ne("truck",TT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const DT=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],PT=Ne("upload",DT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const zT=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],$T=Ne("user-round",zT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const IT=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ty=Ne("user",IT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const RT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],eA=Ne("users",RT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const LT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],un=Ne("x",LT),BT=({activeTab:e,setActiveTab:t,onLogout:n})=>{const r=[{id:"dashboard",icon:QM,label:"仪表盘"},{id:"accounts",icon:eA,label:"账号管理"},{id:"orders",icon:JN,label:"订单管理"},{id:"cards",icon:Oy,label:"卡密库存"},{id:"items",icon:FN,label:"商品列表"},{id:"keywords",icon:Ri,label:"自动化规则"},{id:"settings",icon:$p,label:"系统与AI"}];return c.jsxs("div",{className:"w-64 h-screen fixed left-0 top-0 bg-white border-r border-gray-100 flex flex-col justify-between z-20 shadow-[4px_0_24px_rgba(0,0,0,0.02)]",children:[c.jsxs("div",{className:"p-6",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-12 px-2",children:[c.jsx("div",{className:"w-10 h-10 bg-[#0094f7] squircle flex items-center justify-center shrink-0 p-1.5",style:{filter:"drop-shadow(0 4px 12px rgba(0,148,247,0.25))"},children:c.jsx("img",{src:"/static/ydisks-logo.svg",alt:"Ydisks",className:"w-full h-full"})}),c.jsxs("h1",{className:"text-xl font-extrabold tracking-tight text-gray-900",children:["Ydisks闲鱼助手 ",c.jsx("span",{className:"text-xs bg-[#0094f7] text-white px-1.5 py-0.5 rounded ml-1",children:"PRO"})]})]}),c.jsx("nav",{className:"space-y-2",children:r.map(l=>{const s=l.icon,d=e===l.id;return c.jsxs("button",{onClick:()=>t(l.id),className:`w-full flex items-center gap-3 px-4 py-3.5 rounded-2xl transition-all duration-300 group relative overflow-hidden ${d?"bg-[#0094f7] text-white font-bold shadow-lg shadow-blue-100 transform scale-[1.02]":"text-gray-500 hover:bg-gray-50 hover:text-gray-900"}`,children:[c.jsx(s,{className:`w-5 h-5 transition-colors ${d?"text-white":"text-gray-400 group-hover:text-gray-600"}`}),c.jsx("span",{className:"text-sm tracking-wide",children:l.label}),d&&c.jsx(Ip,{className:"w-4 h-4 absolute right-3 text-white/30 animate-pulse"})]},l.id)})})]}),c.jsx("div",{className:"p-6 border-t border-gray-50",children:c.jsxs("button",{onClick:n,className:"w-full flex items-center gap-3 px-4 py-3 text-gray-500 hover:text-red-500 hover:bg-red-50 rounded-2xl transition-all duration-200 font-medium",children:[c.jsx(lT,{className:"w-5 h-5"}),c.jsx("span",{className:"text-sm",children:"退出登录"})]})})]})},UT=e=>{if(!e)return"";const t=new URLSearchParams;for(const[r,l]of Object.entries(e))l!=null&&t.set(r,String(l));const n=t.toString();return n?`?${n}`:""},kf=async(e,t,n={})=>{const r=UT(n.params),l=`${t}${r}`,s=await fetch(l,{method:e,credentials:"include",headers:{...n.body===void 0?{}:{"Content-Type":"application/json"}},body:n.body===void 0?void 0:JSON.stringify(n.body)}),f=(s.headers.get("content-type")||"").includes("application/json");if(!s.ok){const h=f?await s.json().catch(()=>{}):await s.text().catch(()=>{}),m=typeof h=="string"?h:(h==null?void 0:h.detail)||(h==null?void 0:h.message)||(h==null?void 0:h.msg);throw new Error(m||`请求失败: ${s.status}`)}return f?await s.json():await s.text()},Pt=async(e,t)=>kf("GET",e,{params:t}),an=async(e,t)=>kf("POST",e,{body:t}),dn=async(e,t)=>kf("PUT",e,{body:t}),Ao=async(e,t)=>kf("DELETE",e,{params:t}),tA=async(e,t)=>{const n=await fetch(e,{method:"POST",credentials:"include",body:t}),s=(n.headers.get("content-type")||"").includes("application/json")?await n.json().catch(()=>{}):await n.text().catch(()=>{});if(!n.ok){const d=typeof s=="string"?s:(s==null?void 0:s.detail)||(s==null?void 0:s.message)||(s==null?void 0:s.msg),f=new Error(d||"请求失败: "+n.status);throw f.payload=s,f}return s},qT=async e=>an("/login",e),nA=async()=>Pt("/verify"),HT=async e=>dn("/account/credentials",e),KT=async(e,t)=>an("/cookies",{id:e,value:t}),YT=(e,t)=>{const n=e.avatar_url||"";if(!n)return"";try{const r=new URL(n,window.location.origin);return r.hostname.endsWith("alicdn.com")&&r.searchParams.set("_v",t),r.toString()}catch{return n}},Lp=async()=>{const e=await Pt("/cookies/details"),t=Date.now().toString();return e.map(n=>({id:n.id,value:"",cookie:"",enabled:n.enabled,auto_confirm:n.auto_confirm,remark:n.remark,note:n.remark,pause_duration:n.pause_duration,username:n.username||"",login_password:"",show_browser:n.show_browser,nickname:n.nickname||n.remark||`账号 ${n.id.substring(0,6)}`,avatar_url:YT(n,t),profile_error:n.profile_error||"",ai_enabled:!1}))},GT=async()=>Pt("/cookies/runtime-status"),VT=async()=>an("/qr-login/generate"),XT=async e=>Pt(`/qr-login/check/${e}`),FT=async(e,t)=>dn(`/cookies/${e}/status`,{enabled:t}),ZT=async e=>Ao(`/cookies/${e}`),WT=async(e,t)=>dn(`/cookies/${e}/remark`,{remark:t}),QT=async(e,t)=>dn(`/cookies/${e}/auto-confirm`,{auto_confirm:t}),JT=async(e,t)=>dn(`/cookies/${e}/pause-duration`,{pause_duration:t}),cj=async(e,t)=>dn(`/cookies/${e}`,{id:e,value:t}),eD=async e=>an(`/cookies/${e}/refresh-profile`,{}),tD=async(e,t)=>dn(`/cookies/${e}/login-info`,t),nD=async()=>Pt("/ai-reply-settings"),dj=async(e,t,n=1,r=20)=>{const l={page:n,page_size:r};t&&t!=="all"&&(l.status=t);const s=await Pt("/api/orders",l),f=(s.ordLine truncated
|
||||
A`).concat(s,",").concat(s,",0,1,1,").concat(2*d,",").concat(l,`
|
||||
H`).concat(or,"M").concat(2*d,",").concat(l,`
|
||||
A`).concat(s,",").concat(s,",0,1,1,").concat(d,",").concat(l),className:"recharts-legend-icon"});if(h==="rect")return b.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(or/8,"h").concat(or,"v").concat(or*3/4,"h").concat(-or,"z"),className:"recharts-legend-icon"});if(b.isValidElement(t.legendIcon)){var m=MA({},t);return delete m.legendIcon,b.cloneElement(t.legendIcon,m)}return b.createElement(kA,{fill:f,cx:l,cy:l,size:or,sizeType:"diameter",type:h})}function JP(e){var t=e.payload,n=e.iconSize,r=e.layout,l=e.formatter,s=e.inactiveColor,d=e.iconType,f=e.labelStyle,h={x:0,y:0,width:or,height:or},m={display:r==="horizontal"?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((p,x)=>{var w=p.formatter||l,_=Ze({"recharts-legend-item":!0,["legend-item-".concat(x)]:!0,inactive:p.inactive});if(p.type==="none")return null;var j=typeof f=="object"?MA({},f):{};j.color=p.inactive?s:j.color||p.color;var N=w?w(p.value,p,x):p.value;return b.createElement("li",zd({className:_,style:m,key:"legend-item-".concat(x)},yu(e,p,x)),b.createElement(Up,{width:n,height:n,viewBox:h,style:y,"aria-label":"".concat(p.value," legend icon")},b.createElement(QP,{data:p,iconType:d,inactiveColor:s})),b.createElement("span",{className:"recharts-legend-item-text",style:j},N))})}var e6=e=>{var t=Vt(e,ZP),n=t.payload,r=t.layout,l=t.align;if(!n||!n.length)return null;var s={padding:0,margin:0,textAlign:r==="horizontal"?l:"left"};return b.createElement("ul",{className:"recharts-default-legend",style:s},b.createElement(JP,zd({},t,{payload:n})))};function t6(e,t){const n=new Map;for(let r=0;r<e.length;r++){const l=e[r],s=t(l,r,e);n.has(s)||n.set(s,l)}return Array.from(n.values())}function n6(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function TA(e){return e}function r6(e){return function(t){return Ir(t,e)}}function Uy(e){return e==null||typeof e!="object"&&typeof e!="function"}function a6(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function i6(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Xp(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const l6="[object RegExp]",DA="[object String]",PA="[object Number]",zA="[object Boolean]",$A="[object Arguments]",o6="[object Symbol]",s6="[object Date]",u6="[object Map]",c6="[object Set]",d6="[object Array]",f6="[object ArrayBuffer]",h6="[object Object]",m6="[object DataView]",v6="[object Uint8Array]",y6="[object Uint8ClampedArray]",p6="[object Uint16Array]",g6="[object Uint32Array]",x6="[object Int8Array]",b6="[object Int16Array]",w6="[object Int32Array]",j6="[object Float32Array]",_6="[object Float64Array]",_j=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function S6(e){return typeof _j.Buffer<"u"&&_j.Buffer.isBuffer(e)}function N6(e,t){return Hi(e,void 0,e,new Map,t)}function Hi(e,t,n,r=new Map,l=void 0){const s=l==null?void 0:l(e,t,n,r);if(s!==void 0)return s;if(Uy(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const d=new Array(e.length);r.set(e,d);for(let f=0;f<e.length;f++)d[f]=Hi(e[f],f,n,r,l);return Object.hasOwn(e,"index")&&(d.index=e.index),Object.hasOwn(e,"input")&&(d.input=e.input),d}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const d=new RegExp(e.source,e.flags);return d.lastIndex=e.lastIndex,d}if(e instanceof Map){const d=new Map;r.set(e,d);for(const[f,h]of e)d.set(f,Hi(h,f,n,r,l));return d}if(e instanceof Set){const d=new Set;r.set(e,d);for(const f of e)d.add(Hi(f,void 0,n,r,l));return d}if(S6(e))return e.subarray();if(a6(e)){const d=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,d);for(let f=0;f<e.length;f++)d[f]=Hi(e[f],f,n,r,l);return d}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const d=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,d),gr(d,e,n,r,l),d}if(typeof File<"u"&&e instanceof File){const d=new File([e],e.name,{type:e.type});return r.set(e,d),gr(d,e,n,r,l),d}if(typeof Blob<"u"&&e instanceof Blob){const d=new Blob([e],{type:e.type});return r.set(e,d),gr(d,e,n,r,l),d}if(e instanceof Error){const d=structuredClone(e);return r.set(e,d),d.message=e.message,d.name=e.name,d.stack=e.stack,d.cause=e.cause,d.constructor=e.constructor,gr(d,e,n,r,l),d}if(e instanceof Boolean){const d=new Boolean(e.valueOf());return r.set(e,d),gr(d,e,n,r,l),d}if(e instanceof Number){const d=new Number(e.valueOf());return r.set(e,d),gr(d,e,n,r,l),d}if(e instanceof String){const d=new String(e.valueOf());return r.set(e,d),gr(d,e,n,r,l),d}if(typeof e=="object"&&A6(e)){const d=Object.create(Object.getPrototypeOf(e));return r.set(e,d),gr(d,e,n,r,l),d}return e}function gr(e,t,n=e,r,l){const s=[...Object.keys
Line truncated
|
||||
* @license React
|
||||
* use-sync-external-store-shim.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Nj;function q6(){if(Nj)return Fv;Nj=1;var e=No();function t(p,x){return p===x&&(p!==0||1/p===1/x)||p!==p&&x!==x}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,l=e.useEffect,s=e.useLayoutEffect,d=e.useDebugValue;function f(p,x){var w=x(),_=r({inst:{value:w,getSnapshot:x}}),j=_[0].inst,N=_[1];return s(function(){j.value=w,j.getSnapshot=x,h(j)&&N({inst:j})},[p,w,x]),l(function(){return h(j)&&N({inst:j}),p(function(){h(j)&&N({inst:j})})},[p]),d(w),w}function h(p){var x=p.getSnapshot;p=p.value;try{var w=x();return!n(p,w)}catch{return!0}}function m(p,x){return x()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:f;return Fv.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,Fv}var Aj;function H6(){return Aj||(Aj=1,Xv.exports=q6()),Xv.exports}/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim/with-selector.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Oj;function K6(){if(Oj)return Vv;Oj=1;var e=No(),t=H6();function n(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var r=typeof Object.is=="function"?Object.is:n,l=t.useSyncExternalStore,s=e.useRef,d=e.useEffect,f=e.useMemo,h=e.useDebugValue;return Vv.useSyncExternalStoreWithSelector=function(m,y,p,x,w){var _=s(null);if(_.current===null){var j={hasValue:!1,value:null};_.current=j}else j=_.current;_=f(function(){function O(M){if(!A){if(A=!0,T=M,M=x(M),w!==void 0&&j.hasValue){var $=j.value;if(w($,M))return C=$}return C=M}if($=C,r(T,M))return $;var B=x(M);return w!==void 0&&w($,B)?(T=M,$):(T=M,C=B)}var A=!1,T,C,P=p===void 0?null:p;return[function(){return O(y())},P===null?void 0:function(){return O(P())}]},[y,p,x,w]);var N=l(m,_[0],_[1]);return d(function(){j.hasValue=!0,j.value=N},[N]),h(N),N},Vv}var Ej;function Y6(){return Ej||(Ej=1,Gv.exports=K6()),Gv.exports}var G6=Y6(),Fp=b.createContext(null),V6=e=>e,it=()=>{var e=b.useContext(Fp);return e?e.store.dispatch:V6},jd=()=>{},X6=()=>jd,F6=(e,t)=>e===t;function xe(e){var t=b.useContext(Fp),n=b.useMemo(()=>t?r=>{if(r!=null)return e(r)}:jd,[t,e]);return G6.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:X6,t?t.store.getState:jd,t?t.store.getState:jd,n,F6)}function Z6(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function W6(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var kj=e=>Array.isArray(e)?e:[e];function Q6(e){const t=Array.isArray(e[0])?e[0]:e;return W6(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function J6(e,t){const n=[],{length:r}=e;for(let l=0;l<r;l++)n.push(e[l].apply(null,t));return n}var ez=class{constructor(e){this.value=e}deref(){return this.value}},tz=()=>typeof WeakRef>"u"?ez:WeakRef,KA=tz(),nz=0,Cj=1;function nd(){return{s:nz,v:void 0,o:null,p:null}}function rz(e){return e instanceof KA?e.deref():e}function YA(e,t={}){let n=nd();const{resultEqualityCheck:r}=t;let l,s=0;function d(){let f=n;const{length:h}=arguments;for(let p=0,x=h;p<x;p++){const w=arguments[p];if(typeof w=="function"||typeof w=="object"&&w!==null){let _=f.o;_===null&&(f.o=_=new WeakMap);const j=_.get(w);j===void 0?(f=nd(),_.set(w,f)):f=j}else{let _=f.p;_===null&&(f.p=_=new Map);const j=_.get(w);j===void 0?(f=nd(),_.set(w,f)):f=j}}const m=f;let y;if(f.s===Cj)y=f.v;else if(y=e.apply(null,arguments),s++,r){const p=rz(l);p!=null&&r(p,y)&&(y=p,s!==0&&s--),l=typeof y=="object"&&y!==null||typeof y=="function"?new KA(y):y}return m.s=Cj,m.v=y,y}return d.clearCache=()=>{n=nd(),d.resetResultsCount()},d.resultsCount=()=>s,d.resetResultsCount=()=>{s=0},d}function az(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...l)=>{let s=0,d=0,f,h={},m=l.pop();typeof m=="object"&&(h=m,m=l.pop()),Z6(m,`createSelector expects an output function after the inputs, but received: [${typeof m}]`);const y={...n,...h},{memoize:p,memoizeOptions:x=[],argsMemoize:w=YA,argsMemoizeOptions:_=[]}=y,j=kj(x),N=kj(_),O=Q6(l),A=p(function(){return s++,m.apply(null,arguments)},...j),T=w(function(){d++;const P=J6(O,arguments);return f=A.apply(null,P),f},...N);return Object.assign(T,{resultFunc:m,memoizedResultFunc:A,dependencies:O,dependencyRecomputations:()=>d,resetDependencyRecomputations:()=>{d=0},lastResult:()=>f,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:p,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var G=az(YA);function iz(e,t=1){const n=[],r=Math.floor(t),l=(s,d)=>{for(let f=0;f<s.length;f++){const h=s[f];Array.isArray(h)&&d<r?l(h,d+1):n.push(h)}};return l(e,0),n}function Hy(e,t,n){return IA(n)&&(typeof t=="number"&&qA(n)&&UA(t)&&t<n.length||typeof t=="string"&&t in n)?wd(n[t],e):!1}function Mj(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const lz=(e,t,n)=>{if(e!==t){const r=Mj(e),l=Mj(t);if(r===l&&r===0){if(e<t)return n==="desc"?1:-1;if(e>t)return n==="desc"?-1:1}return n==="desc"?l-r:r-l}return 0};function GA(e){return typeof e=="symbol"||e instanceof Symbol}const oz=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sz=/^\w*$/;function uz(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||GA(e)?!0:typeof e=="string"&&(sz.test(e)||!oz.test(e))||t!=null}function cz(e,t,n,r){if(e==null)return[];n=n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(f=>String(f));const l=(f,h)=>{let m=f;for(let y=0;y<h.length&&m!=null;++y)m=m[h[y]];return m},s=(f,h)=>h==null||f==null?h:typeof f=="object"&&"key"in f?Object.hasOwn(h,f.key)?h[f.key]:l(h,f.path):typeof f=="function"?f(h):Array.isArray(f)?l(h,f):typeof h=="object"?h[f]:h,d=t.map(f=>(Array.isArray(f)&&f.length===1&&(f=f[0]),f==nullLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pz(e,t){if(e){if(typeof e=="string")return Tj(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tj(e,t):void 0}}function Tj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gz(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function xz(e){if(Array.isArray(e))return e}var rd=1;function Dj(e,t){return Math.abs(e.height-t.height)>rd||Math.abs(e.left-t.left)>rd||Math.abs(e.top-t.top)>rd||Math.abs(e.width-t.width)>rd}function Pj(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function XA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=b.useState({height:0,left:0,top:0,width:0}),n=vz(t,2),r=n[0],l=n[1],s=b.useRef(null),d=b.useRef(r);d.current=r;var f=b.useCallback(h=>{if(s.current!=null&&(s.current.disconnect(),s.current=null),h!=null){var m=Pj(h);if(Dj(m,d.current)&&l(m),typeof ResizeObserver<"u"){var y=new ResizeObserver(()=>{var p=Pj(h);Dj(p,d.current)&&l(p)});y.observe(h),s.current=y}}},[...e]);return b.useEffect(()=>()=>{var h;(h=s.current)===null||h===void 0||h.disconnect()},[]),[r,f]}function tn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bz=typeof Symbol=="function"&&Symbol.observable||"@@observable",zj=bz,Zv=()=>Math.random().toString(36).substring(7).split("").join("."),wz={INIT:`@@redux/INIT${Zv()}`,REPLACE:`@@redux/REPLACE${Zv()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Zv()}`},$d=wz;function Zp(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function FA(e,t,n){if(typeof e!="function")throw new Error(tn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(tn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(tn(1));return n(FA)(e,t)}let r=e,l=t,s=new Map,d=s,f=0,h=!1;function m(){d===s&&(d=new Map,s.forEach((N,O)=>{d.set(O,N)}))}function y(){if(h)throw new Error(tn(3));return l}function p(N){if(typeof N!="function")throw new Error(tn(4));if(h)throw new Error(tn(5));let O=!0;m();const A=f++;return d.set(A,N),function(){if(O){if(h)throw new Error(tn(6));O=!1,m(),d.delete(A),s=null}}}function x(N){if(!Zp(N))throw new Error(tn(7));if(typeof N.type>"u")throw new Error(tn(8));if(typeof N.type!="string")throw new Error(tn(17));if(h)throw new Error(tn(9));try{h=!0,l=r(l,N)}finally{h=!1}return(s=d).forEach(A=>{A()}),N}function w(N){if(typeof N!="function")throw new Error(tn(10));r=N,x({type:$d.REPLACE})}function _(){const N=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(tn(11));function A(){const C=O;C.next&&C.next(y())}return A(),{unsubscribe:N(A)}},[zj](){return this}}}return x({type:$d.INIT}),{dispatch:x,subscribe:p,getState:y,replaceReducer:w,[zj]:_}}function jz(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:$d.INIT})>"u")throw new Error(tn(12));if(typeof n(void 0,{type:$d.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(tn(13))})}function ZA(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const d=t[s];typeof e[d]=="function"&&(n[d]=e[d])}const r=Object.keys(n);let l;try{jz(n)}catch(s){l=s}return function(d={},f){if(l)throw l;let h=!1;const m={};for(let y=0;y<r.length;y++){const p=r[y],x=n[p],w=d[p],_=x(w,f);if(typeof _>"u")throw f&&f.type,new Error(tn(14));m[p]=_,h=h||_!==w}return h=h||r.length!==Object.keys(d).length,h?m:d}}function Id(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function _z(...e){return t=>(n,r)=>{const l=t(n,r);let s=()=>{throw new Error(tn(15))};const d={getState:l.getState,dispatch:(h,...m)=>s(h,...m)},f=e.map(h=>h(d));return s=Id(...f)(l.dispatch),{...l,dispatch:s}}}function WA(e){return Zp(e)&&"type"in e&&typeof e.type=="string"}var QA=Symbol.for("immer-nothing"),$j=Symbol.for("immer-draftable"),pn=Symbol.for("immer-state");function xr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Un=Object,vo=Un.getPrototypeOf,Rd="constructor",Pf="prototype",Ky="configurable",Ld="enumerable",_d="writable",tu="value",ga=e=>!!e&&!!e[pn];function _r(e){var t;return e?JA(e)||$f(e)||!!e[$j]||!!((t=e[Rd])!=null&&t
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sI(e,t){if(e){if(typeof e=="string")return i2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i2(e,t):void 0}}function i2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function cI(e){if(Array.isArray(e))return e}function dI(e,t){if(e==null)return{};var n,r,l=fI(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function fI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var TO=b.createContext(Dr.initialDimension);function hI(e){return Lr(e.width)&&Lr(e.height)}function DO(e){var t=e.children,n=e.width,r=e.height,l=b.useMemo(()=>({width:n,height:r}),[n,r]);return hI(l)?b.createElement(TO.Provider,{value:l},t):null}var r0=()=>b.useContext(TO),mI=b.forwardRef((e,t)=>{var n=e.aspect,r=e.initialDimension,l=r===void 0?Dr.initialDimension:r,s=e.width,d=e.height,f=e.minWidth,h=f===void 0?Dr.minWidth:f,m=e.minHeight,y=e.maxHeight,p=e.children,x=e.debounce,w=x===void 0?Dr.debounce:x,_=e.id,j=e.className,N=e.onResize,O=e.style,A=O===void 0?{}:O,T=dI(e,nI),C=b.useRef(null),P=b.useRef();P.current=N,b.useImperativeHandle(t,()=>C.current);var M=b.useState({containerWidth:l.width,containerHeight:l.height}),$=lI(M,2),B=$[0],Q=$[1],z=b.useCallback((H,te)=>{Q(ae=>{var Z=Math.round(H),L=Math.round(te);return ae.containerWidth===Z&&ae.containerHeight===L?ae:{containerWidth:Z,containerHeight:L}})},[]);b.useEffect(()=>{if(C.current==null||typeof ResizeObserver>"u")return ul;var H=k=>{var K,X=k[0];if(X!=null){var ue=X.contentRect,ye=ue.width,pe=ue.height;z(ye,pe),(K=P.current)===null||K===void 0||K.call(P,ye,pe)}};w>0&&(H=F$(H,w,{trailing:!0,leading:!1}));var te=new ResizeObserver(H),ae=C.current.getBoundingClientRect(),Z=ae.width,L=ae.height;return z(Z,L),te.observe(C.current),()=>{te.disconnect()}},[z,w]);var F=B.containerWidth,V=B.containerHeight;Gd(!n||n>0,"The aspect(%s) must be greater than zero.",n);var me=MO(F,V,{width:s,height:d,aspect:n,maxHeight:y}),he=me.calculatedWidth,se=me.calculatedHeight;return Gd(F<0||V<0||he!=null&&he>0||se!=null&&se>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
||||
please check the style of container, or the props width(%s) and height(%s),
|
||||
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
||||
height and width.`,he,se,s,d,h,m,n),b.createElement("div",Vd({id:_?"".concat(_):void 0,className:Ze("recharts-responsive-container",j),style:a2(a2({},A),{},{width:s,height:d,minWidth:h,minHeight:m,maxHeight:y}),ref:C},T),b.createElement("div",{style:eI({width:s,height:d})},b.createElement(DO,{width:he,height:se},p)))}),Ds=b.forwardRef((e,t)=>{var n=r0();if(Lr(n.width)&&Lr(n.height))return e.children;var r=tI({width:e.width,height:e.height,aspect:e.aspect}),l=r.width,s=r.height,d=MO(void 0,void 0,{width:l,height:s,aspect:e.aspect,maxHeight:e.maxHeight}),f=d.calculatedWidth,h=d.calculatedHeight;return ge(f)&&ge(h)?b.createElement(DO,{width:f,height:h},e.children):b.createElement(mI,Vd({},e,{width:l,height:s,ref:t}))});function a0(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Xf=()=>{var e,t=hn(),n=xe(Y$),r=xe(Vf),l=(e=xe(Gf))===null||e===void 0?void 0:e.padding;return!t||!r||!l?n:{width:r.width-l.left-l.right,height:r.height-l.top-l.bottom,x:l.left,y:l.top}},vI={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},PO=()=>{var e;return(e=xe(Bt))!==null&&e!==void 0?e:vI},i0=()=>xe(ja),l0=()=>xe(_a),yI=()=>xe(e=>e.layout.margin),Ye=e=>e.layout.layoutType,cl=()=>xe(Ye),o0=()=>{var e=cl();if(e==="horizontal"||e==="vertical")return e},s0=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},pI=()=>xe(s0),gI=()=>{var e=cl();return e!==void 0},bu=e=>{var t=it(),n=hn(),r=e.width,l=e.height,s=r0(),d=r,f=l;return s&&(d=s.width>0?s.width:r,f=s.height>0?s.height:l),b.useEffect(()=>{!n&&Lr(d)&&Lr(f)&&t(g$({width:d,height:f}))},[t,n,d,f]),null},zO=Symbol.for("immer-nothing"),l2=Symbol.for("immer-draftable"),Yn=Symbol.for("immer-state");function br(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var au=Object.getPrototypeOf;function po(e){return!!e&&!!e[Yn]}function rl(e){var t;return e?$O(e)||Array.isArray(e)||!!e[l2]||!!((t=e.constructor)!=null&&t[l2])||wu(e)||Zf(e):!1}var xI=Object.prototype.constructor.toString(),o2=new WeakMap;function $O(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=o2.get(n);return r===void 0&&(r=Function.toString.call(n),o2.set(n,r)),r===xI}function Xd(e,t,n=!0){Ff(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(l=>{t(l,e[l],e)}):e.forEach((r,l)=>t(l,r,e))}function Ff(e){const t=e[Yn];return t?t.type_:Array.isArray(e)?1:wu(e)?2:Zf(e)?3:0}function ep(e,t){return Ff(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function IO(e,t,n){const r=Ff(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function bI(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function wu(e){return e instanceof Map}function Zf(e){return e instanceof Set}function Bi(e){return e.copy_||e.base_}function tp(e,t){if(wu(e))return new Map(e);if(Zf(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=$O(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Yn];let l=Reflect.ownKeys(r);for(let s=0;s<l.length;s++){const d=l[s],f=r[d];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(r[d]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[d]})}return Object.create(au(e),r)}else{const r=au(e);if(r!==null&&n)return{...e};const l=Object.create(r);return Object.assign(l,e)}}function u0(e,t=!1){return Wf(e)||po(e)||!rl(e)||(Ff(e)>1&&Object.defineProperties(e,{set:sd,add:sd,clear:sd,delete:sd}),Object.freeze(e),t&&Object.values(e).forEach(n=>u0(n,!0))),e}function wI(){br(2)}var sd={value:wI};function Wf(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var jI={};function al(e){const t=jI[e];return t||br(0,e),t}var iu;function RO(){return iu}function _I(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function s2(e,t){t&&(al("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function np(e){rp(e),e.drafts_.forEach(SI),e.drafts_=null}function rp(e){e===iu&&(iu=e.parent_)}function u2(e){return iu=_I(iu,e)}function SI(e){const t=e[Yn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function c2(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Yn].modified_&&(np(t),br(4)),rl(e)&&(e=Fd(t,e),t.parent_||Zd(t,e)),t.patches_&&al("Patches").generateReplacementPatches_(n[Yn].base_,e,t.patches_,t.inversePatches_)):e=Fd(t,n,[]),np(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==zO?e:void 0}function Fd(e,t,n){if(Wf(t))return t;const r=e.immer_.shouldUseStrictIteration(),l=t[Yn];if(!l)return Xd(t,(s,d)=>d2(e,l,t,s,d,n),r),t;if(l.scope_!==e)return t;if(!l.modified_)return Zd(e,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDraft
Line truncated
|
||||
* @license React
|
||||
* use-sync-external-store-with-selector.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var h2;function DI(){if(h2)return ny;h2=1;var e=No();function t(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,l=e.useRef,s=e.useEffect,d=e.useMemo,f=e.useDebugValue;return ny.useSyncExternalStoreWithSelector=function(h,m,y,p,x){var w=l(null);if(w.current===null){var _={hasValue:!1,value:null};w.current=_}else _=w.current;w=d(function(){function N(P){if(!O){if(O=!0,A=P,P=p(P),x!==void 0&&_.hasValue){var M=_.value;if(x(M,P))return T=M}return T=P}if(M=T,n(A,P))return M;var $=p(P);return x!==void 0&&x(M,$)?(A=P,M):(A=P,T=$)}var O=!1,A,T,C=y===void 0?null:y;return[function(){return N(m())},C===null?void 0:function(){return N(C())}]},[m,y,p,x]);var j=r(h,w[0],w[1]);return s(function(){_.hasValue=!0,_.value=j},[j]),f(j),j},ny}var m2;function PI(){return m2||(m2=1,ty.exports=DI()),ty.exports}PI();function zI(e){e()}function $I(){let e=null,t=null;return{clear(){e=null,t=null},notify(){zI(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const l=t={callback:n,next:null,prev:t};return l.prev?l.prev.next=l:e=l,function(){!r||e===null||(r=!1,l.next?l.next.prev=l.prev:t=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var v2={notify(){},get:()=>[]};function II(e,t){let n,r=v2,l=0,s=!1;function d(j){y();const N=r.subscribe(j);let O=!1;return()=>{O||(O=!0,N(),p())}}function f(){r.notify()}function h(){_.onStateChange&&_.onStateChange()}function m(){return s}function y(){l++,n||(n=e.subscribe(h),r=$I())}function p(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=v2)}function x(){s||(s=!0,y())}function w(){s&&(s=!1,p())}const _={addNestedSub:d,notifyNestedSubs:f,handleChangeWrapper:h,isSubscribed:m,trySubscribe:x,tryUnsubscribe:w,getListeners:()=>r};return _}var RI=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LI=RI(),BI=()=>typeof navigator<"u"&&navigator.product==="ReactNative",UI=BI(),qI=()=>LI||UI?b.useLayoutEffect:b.useEffect,HI=qI();function y2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function KI(e,t){if(y2(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let l=0;l<n.length;l++)if(!Object.prototype.hasOwnProperty.call(t,n[l])||!y2(e[n[l]],t[n[l]]))return!1;return!0}var ry=Symbol.for("react-redux-context"),ay=typeof globalThis<"u"?globalThis:{};function YI(){if(!b.createContext)return{};const e=ay[ry]??(ay[ry]=new Map);let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var GI=YI();function VI(e){const{children:t,context:n,serverState:r,store:l}=e,s=b.useMemo(()=>{const h=II(l);return{store:l,subscription:h,getServerState:r?()=>r:void 0}},[l,r]),d=b.useMemo(()=>l.getState(),[l]);HI(()=>{const{subscription:h}=s;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),d!==l.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[s,d]);const f=n||GI;return b.createElement(f.Provider,{value:s},t)}var XI=VI,FI=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function ZI(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function Eo(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(FI.has(r)){if(e[r]==null&&t[r]==null)continue;if(!KI(e[r],t[r]))return!1}else if(!ZI(e[r],t[r]))return!1;return!0}var WI=["contextPayload"];function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lp.apply(null,arguments)}function QI(e,t){return n8(e)||t8(e,t)||e8(e,t)||JI()}function JI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e8(e,t){if(e){if(typeof e=="string")return p2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p2(e,t):void 0}}function p2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function n8(e){if(Array.isArray(e))return e}function g2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function go(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g2(Object(n),!0).forEach(function(r){r8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r8(e,t,n){return(t=a8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a8(e){var t=i8(e,"string");return typeof t=="symbol"?t:t+""}function i8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l8(e,t){if(e==null)return{};var n,r,l=o8(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function o8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function s8(e){return e.value}function u8(e){var t=e.contextPayload,n=l8(e,WI),r=HA(t,e.payloadUniqBy,s8),l=go(go({},n),{},{payload:r});return b.isValidElement(e.content)?b.cloneElement(e.content,l):typeof e.content=="function"?b.createElement(e.content,l):b.createElement(e6,l)}function c8(e,t,n,r,l,s){var d=t.layout,f=t.align,h=t.verticalAlign,m,y;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(f==="center"&&d==="vertical"?m={left:((r||0)-s.width)/2}:m=f==="right"?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(h==="middle"?y={top:((l||0)-s.height)/2}:y=h==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),go(go({},m),y)}function d8(e){var t=e.align,n=e.layout,r=e.verticalAlign,l=e.itemSorter,s=it();return b.useLayoutEffect(()=>{s(MI({align:t,layout:n,verticalAlign:r,itemSorter:l}))},[s,t,n,r,l]),null}function f8(e){var t=e.width,n=e.height,r=it();return b.useLayoutEffect(()=>{r(f2({width:t,height:n}))},[r,t,n]),b.useLayoutEffect(()=>()=>{r(f2({width:0,height:0}))},[r]),null}function h8(e,t,n,r){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:n||r}:null}var m8={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",labelStyle:{},layout:"horizontal",verticalAlign:"bottom"};function v8(e){var t=Vt(e,m8),n=mz(),r=FD(),l=yI(),s=t.width,d=t.height,f=t.wrapperStyle,h=t.portal,m=XA([n]),y=QI(m,2),p=y[0],x=y[1],w=i0(),_=l0();if(w==null||_==null)return null;var j=w-((l==null?void 0:l.left)||0)-((l==null?void 0:l.right)||0),N=h8(t.layout,d,s,j),O=h?f:go(go({position:"absolute",width:(N==null?void 0:N.width)||s||"auto",height:(N==null?void 0:N.height)||d||"auto"},c8(f,t,l,w,_,p)),f),A=h??r;if(A==null||n==null)return null;var T=b.createElement("div",{className:"recharts-legend-wrapper",style:O,ref:x},b.createElement(d8,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!h&&b.createElement(f8,{width:p.width,height:p.height}),b.createElement(u8,lp({},t,N,{margin:l,chartWidth:w,chartHeight:_,contextPayload:n})));return Lt.createPortal(T,A)}var YO=b.memo(v8,Eo);YO.displayName="Legend";function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},op.apply(null,arguments)}function x2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x2(Object(n),!0).forEach(func
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w8(e,t){if(e){if(typeof e=="string")return b2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b2(e,t):void 0}}function b2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function _8(e){if(Array.isArray(e))return e}function S8(e){return Array.isArray(e)&&Rr(e[0])&&Rr(e[1])?e.join(" ~ "):e}var Jl={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function N8(e,t){return t==null?e:Df(e,t)}var A8=e=>{var t=e.separator,n=t===void 0?Jl.separator:t,r=e.contentStyle,l=e.itemStyle,s=e.labelStyle,d=s===void 0?Jl.labelStyle:s,f=e.payload,h=e.formatter,m=e.itemSorter,y=e.wrapperClassName,p=e.labelClassName,x=e.label,w=e.labelFormatter,_=e.accessibilityLayer,j=_===void 0?Jl.accessibilityLayer:_,N=()=>{if(f&&f.length){var B={padding:0,margin:0},Q=N8(f,m),z=Q.map((F,V)=>{if(!F||F.type==="none")return null;var me=F.formatter||h||S8,he=F.value,se=F.name,H=he,te=se;if(me){var ae=me(he,se,F,V,f);if(Array.isArray(ae)){var Z=x8(ae,2);H=Z[0],te=Z[1]}else if(ae!=null)H=ae;else return null}var L=Ps(Ps({},Jl.itemStyle),{},{color:F.color||Jl.itemStyle.color},l);return b.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(V),style:L},Rr(te)?b.createElement("span",{className:"recharts-tooltip-item-name"},te):null,Rr(te)?b.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,b.createElement("span",{className:"recharts-tooltip-item-value"},H),b.createElement("span",{className:"recharts-tooltip-item-unit"},F.unit||""))});return b.createElement("ul",{className:"recharts-tooltip-item-list",style:B},z)}return null},O=Ps(Ps({},Jl.contentStyle),r),A=Ps({margin:0},d),T=!yt(x),C=T?x:"",P=Ze("recharts-default-tooltip",y),M=Ze("recharts-tooltip-label",p);T&&w&&f!==void 0&&f!==null&&(C=w(x,f));var $=j?{role:"status","aria-live":"assertive"}:{};return b.createElement("div",op({className:P,style:O},$),b.createElement("p",{className:M,style:A},b.isValidElement(C)?C:"".concat(C)),N())},zs="recharts-tooltip-wrapper",O8={visibility:"hidden"};function E8(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ze(zs,{["".concat(zs,"-right")]:ge(n)&&t&&ge(t.x)&&n>=t.x,["".concat(zs,"-left")]:ge(n)&&t&&ge(t.x)&&n<t.x,["".concat(zs,"-bottom")]:ge(r)&&t&&ge(t.y)&&r>=t.y,["".concat(zs,"-top")]:ge(r)&&t&&ge(t.y)&&r<t.y})}function w2(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,l=e.offset,s=e.position,d=e.reverseDirection,f=e.tooltipDimension,h=e.viewBox,m=e.viewBoxDimension;if(s&&ge(s[r]))return s[r];var y=n[r]-f-(l>0?l:0),p=n[r]+l;if(t[r])return d[r]?y:p;var x=h[r];if(x==null)return 0;if(d[r]){var w=y,_=x;return w<_?Math.max(p,x):Math.max(y,x)}if(m==null)return 0;var j=p+f,N=x+m;return j>N?Math.max(y,x):Math.max(p,x)}function k8(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function C8(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTop,l=e.offsetLeft,s=e.position,d=e.reverseDirection,f=e.tooltipBox,h=e.useTranslate3d,m=e.viewBox,y,p,x;return f.height>0&&f.width>0&&n?(p=w2({allowEscapeViewBox:t,coordinate:n,key:"x",offset:l,position:s,reverseDirection:d,tooltipDimension:f.width,viewBox:m,viewBoxDimension:m.width}),x=w2({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:s,reverseDirection:d,tooltipDimension:f.height,viewBox:m,viewBoxDimension:m.height}),y=k8({translateX:p,translateY:x,useTranslate3d:h})):y=O8,{cssProperties:y,cssClasses:E8({translateX:p,translateY:x,coordinate:n})}}var M8=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),_u={isSsr:M8()};function T8(e,t){return $8(e)||z8(e,t)||P8(e,t)||D8()}function D8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P8(e,t){if(e){if(typeof e=="string")return j2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j2(e,t):void 0}}function j2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function z8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function $8(e){if(Array.isArray(e))return e}function GO(){var e=b.useState(()=>_u.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches),t=T8(e,2),n=t[0],r=t[1];return b.useEffect(()=>{if(window.matchMedia){var l=window.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>{r(l.matches)};return l.addEventListener("change",s),()=>{l.removeEventListener("change",s)}}},[]),n}function _2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_2(Object(n),!0).forEach(function(r){I8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function I8(e,t,n){return(t=R8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R8(e){var t=L8(e,"string");return typeof t=="symbol"?t:t+""}function L8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B8(e,t){return K8(e)||H8(e,t)||q8(e,t)||U8()}function U8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q8(e,t){if(e){if(typeof e=="string")return S2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S2(e,t):void 0}}function S2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function H8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function K8(e){if(Array.isArray(e))return e}function Y8(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active){var t=typeof e.animationEasing=="string"?e.animationEasing:"ease";return"transform ".concat(e.animationDuration,"ms ").concat(t)}}function G8(e){var t,n,r,l,s,d,f=GO(),h=b.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}})),m=B8(h,2),y=m[0],p=m[1];b.useEffect(()=>{var O=A=>{if(A.key==="Escape"){var T,C,P,M;p({dismissed:!0,dismissedAtCoordinate:{x:(T=(C=e.coordinate)===null||C===void 0?void 0:C.x)!==null&&T!==void 0?T:0,y:(P=(M=e.coordinate)===null||M===void 0?void 0:M.y)!==null&&P!==void 0?P:0}})}};return document.addEventListener("keydown",O),()=>{document.removeEventListener("keydown",O)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(n=e.coordinate)===null||n===void 0?void 0:n.y]),y.dismissed&&(((r=(l=e.coordinate)===null||l===void 0?void 0:l.x)!==null&&r!==void 0?r:0)!==y.dismissedAtCoordinate.x||((s=(d=e.coordinate)===null||d===void 0?void 0:d.y)!==null&&s!==void 0?s:0)!==y.dismissedAtCoordinate.y)&&p(eo(eo({},y),{},{dismissed:!1}));var x=C8({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),w=x.cssClasses,_=x.cssProperties,j=e.hasPortalFromProps?{}:eo(eo({transition:Y8({prefersReducedMotion:f,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},_),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),N=eo(eo({},j),{},{visibility:!y.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return b.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:w,style:N,ref:e.innerRef},e.children)}var V8=b.memo(G8),VO=()=>{var e;return(e=xe(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function sp(){return sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sp.apply(null,arguments)}function N2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function A2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N2(Object(n),!0).forEach(function(r){X8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function X8(e,t,n){return(t=F8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F8(e){var t=Z8(e,"string");return typeof t=="symbol"?t:t+""}function Z8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O2={curveBasisClosed:mP,curveBasisOpen:vP,curveBasis:hP,curveBumpX:JD,curveBumpY:eP,curveLinearClosed:yP,curveLinear:Mf,curveMonotoneX:pP,curveMonotoneY:gP,curveNatural:xP,curveStep:bP,curveStepAfter:jP,curveStepBefore:wP},Wd=e=>$e(e.x)&&$e(e.y),E2=e=>e.base!=null&&Wd(e.base)&&Wd(e),$s=e=>e.x,Is=e=>e.y,W8=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(vu(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=O2["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return O2[n]||Mf},k2={connectNulls:!1,type:"linear"},Q8=e=>{var t=e.type,n=t===void 0?k2.type:t,r=e.points,l=r===void 0?[]:r,s=e.baseLine,d=e.layout,f=e.connectNulls,h=f===void 0?k2.connectNulls:f,m=W8(n,d),y=h?l.filter(Wd):l;if(Array.isArray(s)){var p,x=l.map((O,A)=>A2(A2({},O),{},{base:s[A]}));d==="vertical"?p=td().y(Is).x1($s).x
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AR(e,t){if(e){if(typeof e=="string")return $2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$2(e,t):void 0}}function $2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OR(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function ER(e){if(Array.isArray(e))return e}var kR={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},I2=0,ly=1;function WO(e){var t=Vt(e,kR),n=t.animationId,r=t.isActive,l=t.canBegin,s=t.duration,d=t.easing,f=t.begin,h=t.onAnimationEnd,m=t.onAnimationStart,y=t.children,p=GO(),x=r==="auto"?!_u.isSsr&&!p:r,w=yR(t.animationController),_=b.useState(x?I2:ly),j=SR(_,2),N=j[0],O=j[1];return b.useEffect(()=>{x||O(ly)},[x]),b.useEffect(()=>{var A=mR(d);if(!x||!l||A==null)return ul;var T=new _R,C=new jR({animationId:n,easing:A,animationDuration:s,animationBegin:f,onAnimationStart:m,onAnimationEnd:h,from:I2,to:ly});return w(T,C,O)},[w,n,x,l,s,d,f,m,h]),y(Number(N))}function QO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=b.useRef(eu(t)),r=b.useRef(e);return r.current!==e&&(n.current=eu(t),r.current=e),n.current}var CR=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),MR=(e,t,n)=>e.map(r=>"".concat(CR(r)," ").concat(t,"ms ").concat(n)).join(","),TR=["radius"],DR=["radius"],R2,L2,B2,U2,q2,H2,K2,Y2,G2,V2;function X2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function F2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X2(Object(n),!0).forEach(function(r){PR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PR(e,t,n){return(t=zR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zR(e){var t=$R(e,"string");return typeof t=="symbol"?t:t+""}function $R(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jd.apply(null,arguments)}function Z2(e,t){if(e==null)return{};var n,r,l=IR(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function IR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function RR(e,t){return qR(e)||UR(e,t)||BR(e,t)||LR()}function LR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BR(e,t){if(e){if(typeof e=="string")return W2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W2(e,t):void 0}}function W2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function UR(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function qR(e){if(Array.isArray(e))return e}function Cr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Q2=(e,t,n,r,l)=>{var s=li(n),d=li(r),f=Math.min(Math.abs(s)/2,Math.abs(d)/2),h=d>=0?1:-1,m=s>=0?1:-1,y=d>=0&&s>=0||d<0&&s<0?1:0,p;if(f>0&&Array.isArray(l)){for(var x=[0,0,0,0],w=0,_=4;w<_;w++){var j,N=(j=l[w])!==null&&j!==void 0?j:0;x[w]=N>f?f:N}p=nn(R2||(R2=Cr(["M",",",""])),e,t+h*x[0]),x[0]>0&&(p+=nn(L2||(L2=Cr(["A ",",",",0,0,",",",",",""])),x[0],x[0],y,e+m*x[0],t)),p+=nn(B2||(B2=Cr(["L ",",",""])),e+n-m*x[1],t),x[1]>0&&(p+=nn(U2||(U2=Cr(["A ",",",",0,0,",`,
|
||||
`,",",""])),x[1],x[1],y,e+n,t+h*x[1])),p+=nn(q2||(q2=Cr(["L ",",",""])),e+n,t+r-h*x[2]),x[2]>0&&(p+=nn(H2||(H2=Cr(["A ",",",",0,0,",`,
|
||||
`,",",""])),x[2],x[2],y,e+n-m*x[2],t+r)),p+=nn(K2||(K2=Cr(["L ",",",""])),e+m*x[3],t+r),x[3]>0&&(p+=nn(Y2||(Y2=Cr(["A ",",",",0,0,",`,
|
||||
`,",",""])),x[3],x[3],y,e,t+r-h*x[3])),p+="Z"}else if(f>0&&l===+l&&l>0){var O=Math.min(f,l);p=nn(G2||(G2=Cr(["M ",",",`
|
||||
A `,",",",0,0,",",",",",`
|
||||
L `,",",`
|
||||
A `,",",",0,0,",",",",",`
|
||||
L `,",",`
|
||||
A `,",",",0,0,",",",",",`
|
||||
L `,",",`
|
||||
A `,",",",0,0,",",",","," Z"])),e,t+h*O,O,O,y,e+m*O,t,e+n-m*O,t,O,O,y,e+n,t+h*O,e+n,t+r-h*O,O,O,y,e+n-m*O,t+r,e+m*O,t+r,O,O,y,e,t+r-h*O)}else p=nn(V2||(V2=Cr(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return p},J2={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},JO=e=>{var t=Vt(e,J2),n=b.useRef(null),r=b.useState(-1),l=RR(r,2),s=l[0],d=l[1];b.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var ae=n.current.getTotalLength();ae&&d(ae)}catch{}},[]);var f=t.x,h=t.y,m=t.width,y=t.height,p=t.radius,x=t.className,w=t.animationEasing,_=t.animationDuration,j=t.animationBegin,N=t.isAnimationActive,O=t.isUpdateAnimationActive,A=b.useRef(m),T=b.useRef(y),C=b.useRef(f),P=b.useRef(h),M=b.useMemo(()=>({x:f,y:h,width:m,height:y,radius:p}),[f,h,m,y,p]),$=QO(M,"rectangle-");if(f!==+f||h!==+h||m!==+m||y!==+y||m===0||y===0)return null;var B=Ze("recharts-rectangle",x);if(!O){var Q=Hn(t);Q.radius;var z=Z2(Q,TR);return b.createElement("path",Jd({},z,{x:li(f),y:li(h),width:li(m),height:li(y),radius:typeof p=="number"?p:void 0,className:B,d:Q2(f,h,m,y,p)}))}var F=A.current,V=T.current,me=C.current,he=P.current,se="0px ".concat(s===-1?1:s,"px"),H="".concat(s,"px ").concat(s,"px"),te=MR(["strokeDasharray"],_,typeof w=="string"?w:J2.animationEasing);return b.createElement(WO,{animationId:$,key:$,canBegin:s>0,duration:_,easing:w,isActive:O,begin:j},ae=>{var Z=wt(F,m,ae),L=wt(V,y,ae),k=wt(me,f,ae),K=wt(he,h,ae);n.current&&(A.current=Z,T.current=L,C.current=k,P.current=K);var X;N?ae>0?X={transition:te,strokeDasharray:H}:X={strokeDasharray:se}:X={strokeDasharray:H};var ue=Hn(t);ue.radius;var ye=Z2(ue,DR);return b.createElement("path",Jd({},ye,{radius:typeof p=="number"?p:void 0,className:B,d:Q2(k,K,Z,L,p),ref:n,style:F2(F2({},X),t.style)}))})};function e_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function t_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e_(Object(n),!0).forEach(function(r){HR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HR(e,t,n){return(t=KR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KR(e){var t=YR(e,"string");return typeof t=="symbol"?t:t+""}function YR(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ef=Math.PI/180,GR=e=>e*180/Math.PI,Mt=(e,t,n,r)=>({x:e+Math.cos(-ef*r)*n,y:t+Math.sin(-ef*r)*n}),eE=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},VR=(e,t)=>{var n=e.x,r=e.y,l=t.x,s=t.y;return Math.sqrt((n-l)**2+(r-s)**2)},XR=(e,t)=>{var n=e.x,r=e.y,l=t.cx,s=t.cy,d=VR({x:n,y:r},{x:l,y:s});if(d<=0)return{radius:d,angle:0};var f=(n-l)/d,h=Math.acos(f);return r>s&&(h=2*Math.PI-h),{radius:d,angle:GR(h),angleInRadian:h}},FR=e=>{var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),l=Math.floor(n/360),s=Math.min(r,l);return{startAngle:t-s*360,endAngle:n-s*360}},ZR=(e,t)=>{var n=t.startAngle,r=t.endAngle,l=Math.floor(n/360),s=Math.floor(r/360),d=Math.min(l,s);return e+d*360},WR=(e,t)=>{var n=e.relativeX,r=e.relativeY,l=XR({x:n,y:r},t),s=l.radius,d=l.angle,f=t.innerRadius,h=t.outerRadius;if(s<f||s>h||s===0)return null;var m=FR(t),y=m.startAngle,p=m.endAngle,x=d,w;if(y<=p){for(;x>p;)x-=360;for(;x<y;)x+=360;w=x>=y&&x<=p}else{for(;x>y;)x-=360;for(;x<p;)x+=360;w=x>=p&&x<=y}return w?t_(t_({},t),{},{radius:s,angle:ZR(x,t)}):null};function tE(e){var t=e.cx,n=e.cy,r=e.radius,l=e.startAngle,s=e.endAngle,d=Mt(t,n,r,l),f=Mt(t,n,r,s);return{points:[d,f],cx:t,cy:n,radius:r,startAngle:l,endAngle:s}}var n_,r_,a_,i_,l_,o_,s_;function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cp.apply(null,arguments)}function Ki(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var QR=(e,t)=>{var n=Gt(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},ud=e=>{var t=e.cx,n=e.cy,r=e.radius,l=e.angle,s=e.sign,d=e.isExternal,f=e.cornerRadius,h=e.cornerIsExternal,m=f*(d?1:-1)+r,y=Math.asin(f/m)/ef,p=h?l:l+s*y,x=Mt(t,n,m,p),w=Mt(t,n,r,p),_=h?l-s*y:l,j=Mt(t,n,m*Math.cos(y*ef),_);return{center:x,circleTangency:w,lineTangency:j,theta:y}},nE=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,l=e
Line truncated
|
||||
A `,",",`,0,
|
||||
`,",",`,
|
||||
`,",",`
|
||||
`])),m.x,m.y,l,l,+(Math.abs(f)>180),+(s>h),y.x,y.y);if(r>0){var x=Mt(t,n,r,s),w=Mt(t,n,r,h);p+=nn(r_||(r_=Ki(["L ",",",`
|
||||
A `,",",`,0,
|
||||
`,",",`,
|
||||
`,","," Z"])),w.x,w.y,r,r,+(Math.abs(f)>180),+(s<=h),x.x,x.y)}else p+=nn(a_||(a_=Ki(["L ",","," Z"])),t,n);return p},JR=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,l=e.outerRadius,s=e.cornerRadius,d=e.forceCornerRadius,f=e.cornerIsExternal,h=e.startAngle,m=e.endAngle,y=Gt(m-h),p=ud({cx:t,cy:n,radius:l,angle:h,sign:y,cornerRadius:s,cornerIsExternal:f}),x=p.circleTangency,w=p.lineTangency,_=p.theta,j=ud({cx:t,cy:n,radius:l,angle:m,sign:-y,cornerRadius:s,cornerIsExternal:f}),N=j.circleTangency,O=j.lineTangency,A=j.theta,T=f?Math.abs(h-m):Math.abs(h-m)-_-A;if(T<0)return d?nn(i_||(i_=Ki(["M ",",",`
|
||||
a`,",",",0,0,1,",`,0
|
||||
a`,",",",0,0,1,",`,0
|
||||
`])),w.x,w.y,s,s,s*2,s,s,-s*2):nE({cx:t,cy:n,innerRadius:r,outerRadius:l,startAngle:h,endAngle:m});var C=nn(l_||(l_=Ki(["M ",",",`
|
||||
A`,",",",0,0,",",",",",`
|
||||
A`,",",",0,",",",",",",",`
|
||||
A`,",",",0,0,",",",",",`
|
||||
`])),w.x,w.y,s,s,+(y<0),x.x,x.y,l,l,+(T>180),+(y<0),N.x,N.y,s,s,+(y<0),O.x,O.y);if(r>0){var P=ud({cx:t,cy:n,radius:r,angle:h,sign:y,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),M=P.circleTangency,$=P.lineTangency,B=P.theta,Q=ud({cx:t,cy:n,radius:r,angle:m,sign:-y,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),z=Q.circleTangency,F=Q.lineTangency,V=Q.theta,me=f?Math.abs(h-m):Math.abs(h-m)-B-V;if(me<0&&s===0)return"".concat(C,"L").concat(t,",").concat(n,"Z");C+=nn(o_||(o_=Ki(["L",",",`
|
||||
A`,",",",0,0,",",",",",`
|
||||
A`,",",",0,",",",",",",",`
|
||||
A`,",",",0,0,",",",",","Z"])),F.x,F.y,s,s,+(y<0),z.x,z.y,r,r,+(me>180),+(y>0),M.x,M.y,s,s,+(y<0),$.x,$.y)}else C+=nn(s_||(s_=Ki(["L",",","Z"])),t,n);return C},e7={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},rE=e=>{var t=Vt(e,e7),n=t.cx,r=t.cy,l=t.innerRadius,s=t.outerRadius,d=t.cornerRadius,f=t.forceCornerRadius,h=t.cornerIsExternal,m=t.startAngle,y=t.endAngle,p=t.className;if(s<l||m===y)return null;var x=Ze("recharts-sector",p),w=s-l,_=cn(d,w,0,!0),j;return _>0&&Math.abs(m-y)<360?j=JR({cx:n,cy:r,innerRadius:l,outerRadius:s,cornerRadius:Math.min(_,w/2),forceCornerRadius:f,cornerIsExternal:h,startAngle:m,endAngle:y}):j=nE({cx:n,cy:r,innerRadius:l,outerRadius:s,startAngle:m,endAngle:y}),b.createElement("path",cp({},Hn(t),{className:x,d:j}))};function t7(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(CA(t)){if(e==="centric"){var r=t.cx,l=t.cy,s=t.innerRadius,d=t.outerRadius,f=t.angle,h=Mt(r,l,s,f),m=Mt(r,l,d,f);return[{x:h.x,y:h.y},{x:m.x,y:m.y}]}return tE(t)}}function n7(e){return GA(e)?NaN:Number(e)}function oy(e){return e?(e=n7(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function aE(e,t,n){n&&typeof n!="number"&&Hy(e,t,n)&&(t=n=void 0),e=oy(e),t===void 0?(t=e,e=0):t=oy(t),n=n===void 0?e<t?1:-1:oy(n);const r=Math.max(Math.ceil((t-e)/(n||1)),0),l=new Array(r);for(let s=0;s<r;s++)l[s]=e,e+=n;return l}var Nr=e=>e.chartData,Su=G([Nr],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Qf=(e,t,n,r)=>r?Su(e):Nr(e),iE=(e,t,n)=>n?Su(e):Nr(e),r7=G([Qf],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]}),a7=G([Su],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]}),i7=G([Nr],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]});function d0(e,t){return u7(e)||s7(e,t)||o7(e,t)||l7()}function l7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o7(e,t){if(e){if(typeof e=="string")return u_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u_(e,t):void 0}}function u_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function u7(e){if(Array.isArray(e))return e}function zr(e){if(Array.isArray(e)&&e.length===2){var t=d0(e,2),n=t[0],r=t[1];if($e(n)&&$e(r))return!0}return!1}function c_(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function lE(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var n=d0(e,2),r=n[0],l=n[1],s,d;if($e(r))s=r;else if(typeof r=="function")return;if($e(l))d=l;else if(typeof l=="function")return;var f=[s,d];if(zr(f))return f}}function c7(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(zr(r))return c_(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var l=d0(e,2),s=l[0],d=l[1],f,h;if(s==="auto")t!=null&&(f=Math.min(...t));else if(ge(s))f=s;else if(typeof s=="function")try{t!=null&&(f=s(t==null?void 0:t[0]))}catch{}else if(typeof s=="string"&&Jj.test(s)){var m=Jj.exec(s);if(m==null||m[1]==null||t==null)f=void 0;else{var y=+m[1];f=t[0]-y}}else f=t==null?void 0:t[0];if(d==="auto")t!=null&&(h=Math.max(...t));else if(ge(d))h=d;else if(typeof d=="function")try{t!=null&&(h=d(t==null?void 0:t[1]))}catch{}else if(typeof d=="string"&&e2.test(d)){var p=e2.exec(d);if(p==null||p[1]==null||t==null)h=void 0;else{var x=+p[1];h=t[1]+x}}else h=t==null?void 0:t[1];var w=[f,h];if(zr(w))return t==null?w:c_(w,t,n)}}}var ko=1e9,d7={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},h0,vt=!0,dr="[DecimalError] ",Fi=dr+"Invalid argument: ",f0=dr+"Exponent out of range: ",Co=Math.floor,Ui=Math.pow,f7=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Bn,Yt=1e7,ft=7,oE=9007199254740991,tf=Co(oE/ft),be={};be.absoluteValue=be.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};be.comparedTo=be.cmp=function(e){var t,n,r,l,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,l=e.d.length,t=0,n=r<l?r:l;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===l?0:r>l^s.s<0?1:-1};be.decimalPlaces=be.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ft;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};be.dividedBy=be.div=function(e){return ya(this,new this.constructor(e))};be.dividedToIntegerBy=be.idiv=function(e){var t=this,n=t.constructor;return ot(ya(t,new n(e),0,1),n.precision)};be.equals=be.eq=function(e){return!this.cmp(e)};be.exponent=function(){return Dt(this)};be.greaterThan=be.gt=function(e){return this.cmp(e)>0};be.greaterThanOrEqualTo=be.gte=function(e){return this.cmp(e)>=0};be.isInteger=be.isint=function(){return this.e>this.d.length-2};be.isNegative=be.isneg=function(){return this.s<0};be.isPositive=be.ispos=function(){return this.s>0};be.isZero=function(){return this.s===0};be.lessThan=be.lt=function(e){return this.cmp(e)<0};be.lessThanOrEqualTo=be.lte=function(e){return this.cmp(e)<1};be.logarithm=be.log=function(e){var t,n=this,r=n.constructor,l=r.precision,s=l+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Bn))throw Error(dr+"NaN");if(n.s<1)throw Error(dr+(n.s?"NaN":"-Infinity"));return n.eq(Bn)?new r(0):(vt=!1,t=ya(ou(n,s),ou(e,s),s),vt=!0,ot(t,l))};be.minus=be.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cE(t,e):sE(t,(e.s=-e.s,e))};be.modulo=be.mod=function(e){var t,n=this,r=n.constructor,l=r.precision;if(e=new r(e),!e.s)throw Error(dr+"NaN");return n.s?(vt=!1,t=ya(n,e,0,1).times(e),vt=!0,n.minus(t)):ot(new r(n),l)};be.naturalExponential=be.exp=function(){return uE(this)};be.naturalLogarithm=be.ln=function(){return ou(this)};be.negated=be.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};be.plus=be.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?sE(t,e):cE(t,(e.s=-e.s,e))};be.precision=be.sd=function(e){var t,n,r,l=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Fi+e);if(t=Dt(l)+1,r=l.d.length-1,n=r*ft+1,r=l.d[r],r){for(;r%10==0;r/=10)n--;for(r=l.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};be.squareRoot=be.sqrt=function(){var e,t,n,r,l,s,d,f=this,h=f.constructor;if(f.s<1){if(!f.s)return new h(0);throw Error(dr+"NaN")}for(e=Dt(f),vt=!1,l=Math.sqrt(+f),l==0||l==1/0?(t=Pr(f.d),(t.len
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v7(e,t){if(e){if(typeof e=="string")return h_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h_(e,t):void 0}}function h_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function y7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function p7(e){if(Array.isArray(e))return e}var mE=e=>{var t=su(e,2),n=t[0],r=t[1],l=n,s=r;return n>r&&(l=r,s=n),[l,s]},m0=(e,t,n)=>{if(e.lte(0))return new Ke(0);var r=fE(e.toNumber()),l=new Ke(10).pow(r),s=e.div(l),d=r!==1?.05:.1,f=new Ke(Math.ceil(s.div(d).toNumber())).add(n).mul(d),h=f.mul(l);return t?new Ke(h.toNumber()):new Ke(Math.ceil(h.toNumber()))},vE=(e,t,n)=>{var r;if(e.lte(0))return new Ke(0);var l=[1,2,2.5,5],s=e.toNumber(),d=Math.floor(new Ke(s).abs().log(10).toNumber()),f=new Ke(10).pow(d),h=e.div(f).toNumber(),m=l.findIndex(w=>w>=h-1e-10);if(m===-1&&(f=f.mul(10),m=0),m+=n,m>=l.length){var y=Math.floor(m/l.length);m%=l.length,f=f.mul(new Ke(10).pow(y))}var p=(r=l[m])!==null&&r!==void 0?r:1,x=new Ke(p).mul(f);return t?x:new Ke(Math.ceil(x.toNumber()))},g7=(e,t,n)=>{var r=new Ke(1),l=new Ke(e);if(!l.isint()&&n){var s=Math.abs(e);s<1?(r=new Ke(10).pow(fE(e)-1),l=new Ke(Math.floor(l.div(r).toNumber())).mul(r)):s>1&&(l=new Ke(Math.floor(e)))}else e===0?l=new Ke(Math.floor((t-1)/2)):n||(l=new Ke(Math.floor(e)));for(var d=Math.floor((t-1)/2),f=[],h=0;h<t;h++)f.push(l.add(new Ke(h-d).mul(r)).toNumber());return f},yE=function(t,n,r,l){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:m0;if(!Number.isFinite((n-t)/(r-1)))return{step:new Ke(0),tickMin:new Ke(0),tickMax:new Ke(0)};var f=d(new Ke(n).sub(t).div(r-1),l,s),h;t<=0&&n>=0?h=new Ke(0):(h=new Ke(t).add(n).div(2),h=h.sub(new Ke(h).mod(f)));var m=Math.ceil(h.sub(t).div(f).toNumber()),y=Math.ceil(new Ke(n).sub(h).div(f).toNumber()),p=m+y+1;return p>r?yE(t,n,r,l,s+1,d):(p<r&&(y=n>0?y+(r-p):y,m=n>0?m:m+(r-p)),{step:f,tickMin:h.sub(new Ke(m).mul(f)),tickMax:h.add(new Ke(y).mul(f))})},m_=function(t){var n=su(t,2),r=n[0],l=n[1],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",h=Math.max(s,2),m=mE([r,l]),y=su(m,2),p=y[0],x=y[1];if(p===-1/0||x===1/0){var w=x===1/0?[p,...Array(s-1).fill(1/0)]:[...Array(s-1).fill(-1/0),x];return r>l?w.reverse():w}if(p===x)return g7(p,s,d);var _=f==="snap125"?vE:m0,j=yE(p,x,h,d,0,_),N=j.step,O=j.tickMin,A=j.tickMax,T=hE(O,A.add(new Ke(.1).mul(N)),N);return r>l?T.reverse():T},v_=function(t,n){var r=su(t,2),l=r[0],s=r[1],d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",h=mE([l,s]),m=su(h,2),y=m[0],p=m[1];if(y===-1/0||p===1/0)return[l,s];if(y===p)return[y];var x=f==="snap125"?vE:m0,w=Math.max(n,2),_=x(new Ke(p).sub(y).div(w-1),d,0),j=[...hE(new Ke(y),new Ke(p),_),p];return d===!1&&(j=j.map(N=>Math.round(N))),l>s?j.reverse():j},pE=e=>e.rootProps.maxBarSize,x7=e=>e.rootProps.barGap,gE=e=>e.rootProps.barCategoryGap,b7=e=>e.rootProps.barSize,Nu=e=>e.rootProps.stackOffset,xE=e=>e.rootProps.reverseStackOrder,v0=e=>e.options.chartName,y0=e=>e.rootProps.syncId,bE=e=>e.rootProps.syncMethod,p0=e=>e.options.eventEmitter,w7=e=>e.rootProps.baseValue,Tt={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Pi={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Mr={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},Jf=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function eh(e,t,n){if(n!=="auto")return n;if(e!=null)return qr(e,t)?"category":"number"}function y_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function nf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y_(Object(n),!0).forEach(function(r){j7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}retu
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fB(e,t){if(e){if(typeof e=="string")return aS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aS(e,t):void 0}}function aS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hB(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function mB(e){if(Array.isArray(e))return e}var gp=[0,"auto"],$t={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},dk=(e,t)=>e.cartesianAxis.xAxis[t],Na=(e,t)=>{var n=dk(e,t);return n??$t},It={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:gp,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:xu},fk=(e,t)=>e.cartesianAxis.yAxis[t],Aa=(e,t)=>{var n=fk(e,t);return n??It},vB={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},G0=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??vB},St=(e,t,n)=>{switch(t){case"xAxis":return Na(e,n);case"yAxis":return Aa(e,n);case"zAxis":return G0(e,n);case"angleAxis":return g0(e,n);case"radiusAxis":return x0(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},yB=(e,t,n)=>{switch(t){case"xAxis":return Na(e,n);case"yAxis":return Aa(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Do=(e,t,n)=>{switch(t){case"xAxis":return Na(e,n);case"yAxis":return Aa(e,n);case"angleAxis":return g0(e,n);case"radiusAxis":return x0(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},hk=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function V0(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var fh=e=>e.graphicalItems.cartesianItems,pB=G([pt,Au],V0),X0=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),Po=G([fh,St,pB],X0,{memoizeOptions:{resultEqualityCheck:ih}}),mk=G([Po],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(rh)),vk=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),gB=G([Po],vk),F0=e=>e.map(t=>t.data).filter(Boolean).flat(1),xB=G([Po],e=>e.some(t=>!t.data)),yk=G([Po],F0,{memoizeOptions:{resultEqualityCheck:ih}}),Z0=(e,t)=>{var n=t.chartData,r=n===void 0?[]:n,l=t.dataStartIndex,s=t.dataEndIndex;return e.length>0?e:r.slice(l,s+1)},W0=G([yk,Qf],Z0),pk=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:We(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(l=>({value:We(l,r)}))):e.map(r=>({value:r})),gk=(e,t,n,r,l,s)=>{var d=r.chartData,f=d===void 0?[]:d,h=r.dataStartIndex,m=r.dataEndIndex,y=pk(e,t,n);if(l&&(t==null?void 0:t.dataKey)!=null&&s.length>0){var p=f.slice(h,m+1),x=p.map(w=>({value:We(w,t.dataKey)})).filter(w=>w.value!=null);return[...x,...y]}return y},Mu=G([W0,St,Po,Qf,xB,yk],gk);function ho(e){if(Rr(e)||e instanceof Date){var t=Number(e);if($e(t))return t}}function iS(e){if(Array.isArray(e)){var t=[ho(e[0]),ho(e[1])];return zr(t)?t:void 0}var n=ho(e);if(n!=null)return[n,n]}function Ur(e){return e.map(ho).filter(An)}function bB(e,t){var n=ho(e),r=ho(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var wB=G([Mu],e=>e==null?void 0:e.map(t=>t.value).sort(bB));function xk(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function jB(e,t,n){if(!n)return[];if(!n.length)return[];var r;if(typeof t=="number"&&!jr(t))r=t;else if(Array.isArray(t)){var l=Ur(t);l.length>0&&(r=Math.max(...l))}return r==null?[]:Ur(n.flatMap(s=>{var d=We(e,s.dataKey),f,h;if(Array.isArray(d)){var m=ck(d,2);f=m[0],h=m[1]}else f=h=d;if(!(!$e(f)||!$e(h)))return[r-f,r+h]}))}var qt=e=>{var t=Xt(e),n=Mo(e);return Do(e,t,n)},jo=G([qt],e=>e==nu
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SH(e,t){if(e){if(typeof e=="string")return SS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SS(e,t):void 0}}function SS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NH(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function AH(e){if(Array.isArray(e))return e}function OH(e){return e.dataKey}function EH(e,t){return b.isValidElement(e)?b.cloneElement(e,t):typeof e=="function"?b.createElement(e,t):b.createElement(A8,t)}var NS=[],kH={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function vd(e){var t,n,r=Vt(e,kH),l=r.active,s=r.allowEscapeViewBox,d=r.animationDuration,f=r.animationEasing,h=r.content,m=r.filterNull,y=r.isAnimationActive,p=r.offset,x=r.payloadUniqBy,w=r.position,_=r.reverseDirection,j=r.useTranslate3d,N=r.wrapperStyle,O=r.cursor,A=r.shared,T=r.trigger,C=r.defaultIndex,P=r.portal,M=r.axisId,$=it(),B=typeof C=="number"?String(C):C;b.useEffect(()=>{$(pU({shared:A,trigger:T,axisId:M,active:l,defaultIndex:B}))},[$,A,T,M,l,B]);var Q=Xf(),z=VO(),F=dU(A),V=(t=xe(ve=>kq(ve,F,T,B)))!==null&&t!==void 0?t:{},me=V.activeIndex,he=V.isActive,se=xe(ve=>Eq(ve,F,T,B)),H=xe(ve=>fC(ve,F,T,B)),te=xe(ve=>Oq(ve,F,T,B)),ae=se,Z=Qq(),L=(n=l??he)!==null&&n!==void 0?n:!1,k=XA([ae,L]),K=jH(k,2),X=K[0],ue=K[1],ye=F==="axis"?H:void 0;gH(F,T,te,ye,me,L);var pe=P??Z;if(pe==null||Q==null||F==null)return null;var je=ae??NS;L||(je=NS),m&&je.length&&(je=HA(je.filter(ve=>ve.value!=null&&(ve.hide!==!0||r.includeHidden)),x,OH));var De=je.length>0,R=_S(_S({},r),{},{payload:je,label:ye,active:L,activeIndex:me,coordinate:te,accessibilityLayer:z}),fe=b.createElement(V8,{allowEscapeViewBox:s,animationDuration:d,animationEasing:f,isAnimationActive:y,active:L,coordinate:te,hasPayload:De,offset:p,position:w,reverseDirection:_,useTranslate3d:j,viewBox:Q,wrapperStyle:N,lastBoundingBox:X,innerRef:ue,hasPortalFromProps:!!P},EH(h,R));return b.createElement(b.Fragment,null,Lt.createPortal(fe,pe),L&&b.createElement(Wq,{cursor:O,tooltipEventType:F,coordinate:te,payload:je,index:me}))}var Wi=e=>null;Wi.displayName="Cell";function CH(e,t,n){return(t=MH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MH(e){var t=TH(e,"string");return typeof t=="symbol"?t:t+""}function TH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class DH{constructor(t){CH(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function AS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function PH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AS(Object(n),!0).forEach(function(r){zH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zH(e,t,n){return(t=$H(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $H(e){var t=IH(e,"string");return typeof t=="symbol"?t:t+""}function IH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var RH={cacheSize:2e3,enableCache:!0},pC=PH({},RH),OS=new DH(pC.cacheSize),LH={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ES="recharts_measurement_span";function BH(e,t){var n=t.fontSize||"",r=t.fontFamily
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qH(e,t){if(e){if(typeof e=="string")return CS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CS(e,t):void 0}}function CS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HH(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;h=!1}else for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function KH(e){if(Array.isArray(e))return e}function YH(e,t,n){return(t=GH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GH(e){var t=VH(e,"string");return typeof t=="symbol"?t:t+""}function VH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var MS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,TS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,XH=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,FH=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,ZH={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},WH=["cm","mm","pt","pc","in","Q","px"];function QH(e){return WH.includes(e)}var uo="NaN";function JH(e,t){return e*ZH[t]}class rn{static parse(t){var n,r=(n=FH.exec(t))!==null&&n!==void 0?n:[],l=xf(r,3),s=l[1],d=l[2];return s==null?rn.NaN:new rn(parseFloat(s),d??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,jr(t)&&(this.unit=""),n!==""&&!XH.test(n)&&(this.num=NaN,this.unit=""),QH(n)&&(this.num=JH(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new rn(NaN,""):new rn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new rn(NaN,""):new rn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new rn(NaN,""):new rn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new rn(NaN,""):new rn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return jr(this.num)}}gC=rn;YH(rn,"NaN",new gC(NaN,""));function xC(e){if(e==null||e.includes(uo))return uo;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=MS.exec(t))!==null&&n!==void 0?n:[],l=xf(r,4),s=l[1],d=l[2],f=l[3],h=rn.parse(s??""),m=rn.parse(f??""),y=d==="*"?h.multiply(m):h.divide(m);if(y.isNaN())return uo;t=t.replace(MS,y.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,x=(p=TS.exec(t))!==null&&p!==void 0?p:[],w=xf(x,4),_=w[1],j=w[2],N=w[3],O=rn.parse(_??""),A=rn.parse(N??""),T=j==="+"?O.add(A):O.subtract(A);if(T.isNaN())return uo;t=t.replace(TS,T.toString())}return t}var DS=/\(([^()]*)\)/;function eK(e){for(var t=e,n;(n=DS.exec(t))!=null;){var r=n,l=xf(r,2),s=l[1];t=t.replace(DS,xC(s))}return t}function tK(e){var t=e.replace(/\s+/g,"");return t=eK(t),t=xC(t),t}function nK(e){try{return tK(e)}catch{return uo}}function gy(e){var t=nK(e.slice(5,-1));return t===uo?"":t}var rK=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],aK=["dx","dy","angle","className","breakAll"];function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wp.apply(null,arguments)}function PS(e,t){if(e==null)return{};var n,r,l=iK(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function iK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function zS(e,t){return uK(e)||sK(e,t)||oK(e,t)||lK()}function lK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oK(e,t){if(e){if(typeof e=="string")return $S(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$S(e,t):void 0}}function $S(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;h=!1}else for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function uK(e){if(Array.isArray(e))return e}var bC=/[ \f\n\r\t\v\u2028\u2029]+/,wC=e=>{var t=e.children,n=e.breakAll,r=e.style;try{var l=[];yt(t)||(n?l=t.toString().split(""):l=t.toString().split(bC));var s=l.map(f=>({word:f,width:Qs(f,r).width})),d=n?0:Qs(" ",r).width;return{wordsWithComputedWidth:s,spaceWidth:d}}catch{return null}};function jC(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function cK(e){return yt(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var _C=(e,t,n,r)=>e.reduce((l,s)=>{var d=s.word,f=s.width,h=l[l.length-1];if(h&&f!=null&&(t==null||r||h.width+f+n<Number(t)))h.words.push(d),h.width+=f+n;else{var m={words:[d],width:f};l.push(m)}return l},[]),SC=e=>e.reduce((t,n)=>t.width>n.width?t:n),dK="…",IS=(e,t,n,r,l,s,d,f)=>{var h=e.slice(0,t),m=wC({breakAll:n,style:r,children:h+dK});if(!m)return[!1,[]];var y=_C(m.wordsWithComputedWidth,s,d,f),p=y.length>l||SC(y).width>Number(s);return[p,y]},fK=(e,t,n,r,l)=>{var s=e.maxLines,d=e.children,f=e.style,h=e.breakAll,m=ge(s),y=String(d),p=_C(t,r,n,l);if(!m||l)return p;var x=p.length>s||SC(p).width>Number(r);if(!x)return p;for(var w=0,_=y.length-1,j=0,N;w<=_&&j<=y.length-1;){var O=Math.floor((w+_)/2),A=O-1,T=IS(y,A,h,f,s,r,n,l),C=zS(T,2),P=C[0],M=C[1],$=IS(y,O,h,f,s,r,n,l),B=zS($,1),Q=B[0];if(!P&&!Q&&(w=O+1),P&&Q&&(_=O-1),!P&&Q){N=M;break}j++}return N||p},RS=e=>{var t=yt(e)?[]:e.toString().split(bC);return[{words:t,width:void 0}]},hK=e=>{var t=e.width,n=e.scaleToFit,r=e.children,l=e.style,s=e.breakAll,d=e.maxLines;if((t||n)&&!_u.isSsr){var f,h,m=wC({breakAll:s,children:r,style:l});if(m){var y=m.wordsWithComputedWidth,p=m.spaceWidth;f=y,h=p}else return RS(r);return fK({breakAll:s,children:r,maxLines:d,style:l},f,h,t,!!n)}return RS(r)},NC="#808080",mK={angle:0,breakAll:!1,capHeight:"0.71em",fill:NC,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},gh=b.forwardRef((e,t)=>{var n=Vt(e,mK),r=n.x,l=n.y,s=n.lineHeight,d=n.capHeight,f=n.fill,h=n.scaleToFit,m=n.textAnchor,y=n.verticalAnchor,p=PS(n,rK),x=b.useMemo(()=>hK({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:h,style:p.style,width:p.width}),[p.breakAll,p.children,p.maxLines,h,p.style,p.width]),w=p.dx,_=p.dy,j=p.angle,N=p.className,O=p.breakAll,A=PS(p,aK);if(!Rr(r)||!Rr(l)||x.length===0)return null;var T=Number(r)+(ge(w)?w:0),C=Number(l)+(ge(_)?_:0);if(!$e(T)||!$e(C))return null;var P;switch(y){case"start":P=gy("calc(".concat(d,")"));break;case"middle":P=gy("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(d," / 2))"));break;default:P=gy("calc(".concat(x.length-1," * -").concat(s,")"));break}var M=[],$=x[0];if(h&&$!=null){var B=$.width,Q=p.width;M.push("scale(".concat(ge(Q)&&ge(B)?Q/B:1,")"))}return j&&M.push("rotate(".concat(j,", ").concat(T,", ").concat(C,")")),M.length&&(A.transform=M.join(" ")),b.createElement("text",wp({},Hn(A),{ref:t,x:T,y:C,className:Ze("recharts-text",N),textAnchor:m,fill:f.includes("url")?NC:f}),x.map((z,F)=>{var V=z.words.join(O?"":" ");return b.createElement("tspan",{x:T,dy:F===0?P:s,key:"".concat(V,"-").concat(F)},V)}))});gh.displayName="Text";function LS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LS(Object(n),!0).forEach(function(r){vK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vK(e,t,n){return(t=yK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yK(e){var t=pK(e,"string");return typeof t=="symbol"?t:t+""}function pK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)
Line truncated
|
||||
A`).concat(_,",").concat(_,",0,1,").concat(A?0:1,`,
|
||||
`).concat(C.x,",").concat(C.y),M=yt(e.id)?eu("recharts-radial-line-"):e.id;return b.createElement("text",fa({},r,{dominantBaseline:"central",className:Ze("recharts-radial-bar-label",d)}),b.createElement("defs",null,b.createElement("path",{id:M,d:P})),b.createElement("textPath",{xlinkHref:"#".concat(M)},n))},MK=(e,t,n)=>{var r=e.cx,l=e.cy,s=e.innerRadius,d=e.outerRadius,f=e.startAngle,h=e.endAngle,m=(f+h)/2;if(n==="outside"){var y=Mt(r,l,d+t,m),p=y.x,x=y.y;return{x:p,y:x,textAnchor:p>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:l,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:l,textAnchor:"middle",verticalAnchor:"end"};var w=(s+d)/2,_=Mt(r,l,w,m),j=_.x,N=_.y;return{x:j,y:N,textAnchor:"middle",verticalAnchor:"middle"}},Nd=e=>e!=null&&"cx"in e&&ge(e.cx),TK={angle:0,offset:5,zIndex:Tt.label,position:"middle",textBreakAll:!1};function DK(e){if(!Nd(e))return e;var t=e.cx,n=e.cy,r=e.outerRadius,l=r*2;return{x:t-r,y:n-r,width:l,upperWidth:l,lowerWidth:l,height:l}}function ni(e){var t=Vt(e,TK),n=t.viewBox,r=t.parentViewBox,l=t.position,s=t.value,d=t.children,f=t.content,h=t.className,m=h===void 0?"":h,y=t.textBreakAll,p=t.labelRef,x=OK(),w=OC(),_=l==="center"?w:x??w,j,N,O;n==null?j=_:Nd(n)?j=n:j=a0(n);var A=DK(j);if(!j||yt(s)&&yt(d)&&!b.isValidElement(f)&&typeof f!="function")return null;var T=Xs(Xs({},t),{},{viewBox:j});if(b.isValidElement(f)){T.labelRef;var C=BS(T,xK);return b.cloneElement(f,C)}if(typeof f=="function"){T.content;var P=BS(T,bK);if(N=b.createElement(f,P),b.isValidElement(N))return N}else N=EK(t);var M=Hn(t);if(Nd(j)){if(l==="insideStart"||l==="insideEnd"||l==="end")return CK(t,l,N,M,j);O=MK(j,t.offset,t.position)}else{if(!A)return null;var $=gK({viewBox:A,position:l,offset:t.offset,parentViewBox:Nd(r)?void 0:r});O=Xs(Xs({x:$.x,y:$.y,textAnchor:$.horizontalAnchor,verticalAnchor:$.verticalAnchor},$.width!==void 0?{width:$.width}:{}),$.height!==void 0?{height:$.height}:{})}return b.createElement(kn,{zIndex:t.zIndex},b.createElement(gh,fa({ref:p,className:Ze("recharts-label",m)},M,O,{textAnchor:jC(M.textAnchor)?M.textAnchor:O.textAnchor,breakAll:y}),N))}ni.displayName="Label";var PK=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?b.createElement(ni,fa({key:"label-implicit"},r)):Rr(e)?b.createElement(ni,fa({key:"label-implicit",value:e},r)):b.isValidElement(e)?e.type===ni?b.cloneElement(e,Xs({key:"label-implicit"},r)):b.createElement(ni,fa({key:"label-implicit",content:e},r)):jg(e)?b.createElement(ni,fa({key:"label-implicit",content:e},r)):e&&typeof e=="object"?b.createElement(ni,fa({},e,{key:"label-implicit"},r)):null};function zK(e){var t=e.label,n=e.labelRef,r=OC();return PK(t,r,n)||null}var $K=["valueAccessor"],IK=["dataKey","clockWise","id","textBreakAll","zIndex"];function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bf.apply(null,arguments)}function qS(e,t){if(e==null)return{};var n,r,l=RK(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function RK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var LK=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(cK(t))return t},EC=b.createContext(void 0),kC=EC.Provider,CC=b.createContext(void 0),BK=CC.Provider;function UK(){return b.useContext(EC)}function qK(){return b.useContext(CC)}function Ad(e){var t=e.valueAccessor,n=t===void 0?LK:t,r=qS(e,$K),l=r.dataKey;r.clockWise;var s=r.id,d=r.textBreakAll,f=r.zIndex,h=qS(r,IK),m=UK(),y=qK(),p=m||y;return!p||!p.length?null:b.createElement(kn,{zIndex:f??Tt.label},b.createElement(_t,{className:"recharts-label-list"},p.map((x,w)=>{var _,j=yt(l)?n(x,w):We(x.payload,l),N=yt(s)?{}:{id:"".concat(s,"-").concat(w)};return b.createElement(ni,bf({key:"label-".concat(w)},Hn(x),h,N,{fill:(_=r.fill)!==null&&_!==void 0?_:x.fill,parentViewBox:x.parentViewBox,value:j,textBreakAll:d,viewBox:x.viewBox,index:w,zIndex:0}))})))}Ad.displayName="LabelList";function _g(e){var t=e.label;return t?t===!0?b.createElement(Ad,{key:"labelList-implicit"}):b.isValidElement(t)||jg(t)?b.createElement(Ad,{key:"labelList-implicit",content:t}):typeof t=="object"?b.createElement(Ad,bf({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jp.apply(null,arguments)}var MC=e=>{var t=e.cx,n=e.cy,r=e.r,l=e.className,s=Ze("recharts-dot",l);return ge(t)&&ge(n)&&ge(r)?b.createElement("circle",jp({},En(e),Vp(e),{className:s,cx:t,cy:n,
Line truncated
|
||||
* @license React
|
||||
* react-is.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var GS;function iY(){if(GS)return at;GS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function _(j){if(typeof j=="object"&&j!==null){var N=j.$$typeof;switch(N){case e:switch(j=j.type,j){case n:case l:case r:case h:case m:case x:return j;default:switch(j=j&&j.$$typeof,j){case d:case f:case p:case y:return j;case s:return j;default:return N}}case t:return N}}}return at.ContextConsumer=s,at.ContextProvider=d,at.Element=e,at.ForwardRef=f,at.Fragment=n,at.Lazy=p,at.Memo=y,at.Portal=t,at.Profiler=l,at.StrictMode=r,at.Suspense=h,at.SuspenseList=m,at.isContextConsumer=function(j){return _(j)===s},at.isContextProvider=function(j){return _(j)===d},at.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},at.isForwardRef=function(j){return _(j)===f},at.isFragment=function(j){return _(j)===n},at.isLazy=function(j){return _(j)===p},at.isMemo=function(j){return _(j)===y},at.isPortal=function(j){return _(j)===t},at.isProfiler=function(j){return _(j)===l},at.isStrictMode=function(j){return _(j)===r},at.isSuspense=function(j){return _(j)===h},at.isSuspenseList=function(j){return _(j)===m},at.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===n||j===l||j===r||j===h||j===m||typeof j=="object"&&j!==null&&(j.$$typeof===p||j.$$typeof===y||j.$$typeof===d||j.$$typeof===s||j.$$typeof===f||j.$$typeof===w||j.getModuleId!==void 0)},at.typeOf=_,at}var VS;function lY(){return VS||(VS=1,xy.exports=iY()),xy.exports}var oY=lY(),XS=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",FS=null,by=null,IC=e=>{if(e===FS&&Array.isArray(by))return by;var t=[];return b.Children.forEach(e,n=>{yt(n)||(oY.isFragment(n)?t=t.concat(IC(n.props.children)):t.push(n))}),by=t,FS=e,t};function Ag(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(l=>XS(l)):r=[XS(t)],IC(e).forEach(l=>{var s=Ir(l,"type.displayName")||Ir(l,"type.name");s&&r.indexOf(s)!==-1&&n.push(l)}),n}var RC=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0;function ZS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function WS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZS(Object(n),!0).forEach(function(r){sY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sY(e,t,n){return(t=uY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uY(e){var t=cY(e,"string");return typeof t=="symbol"?t:t+""}function cY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LC(e,t){return WS(WS({},t),e)}function dY(e){return b.isValidElement(e)?e.props:e}function fY(e,t){return b.cloneElement(e,LC(dY(e),t))}function hY(e){if("index"in e){var t=e.index;return typeof t=="number"||typeof t=="string"?t:void 0}}function mY(e){return"isActive"in e&&e.isActive===!0}function Og(e){var t=e.option,n=e.DefaultShape,r=e.shapeProps,l=e.activeClassName,s=l===void 0?"recharts-active-shape":l,d=e.inActiveClassName,f=d===void 0?"recharts-shape":d,h=hY(r),m;return b.isValidElement(t)?m=fY(t,r):t===n?m=b.createElement(n,r):typeof t=="function"?m=t(r,h):typeof t=="object"?m=b.createElement(n,LC(t,r)):m=b.createElement(n,r),mY(r)?b.createElement(_t,{className:s},m):b.createElement(_t,{className:f},m)}var Eg=(e,t,n)=>{var r=it();return(l,s)=>d=>{e==null||e(l,s,d),r(Kk({activeIndex:String(s),activeDataKey:t,activeCoordinate:l.tooltipPosition,activeGraphicalItemId:n}))}},kg=e=>{var t=it();return(n,r)=>l=>{e==null||e(n,r,l),t(gU())}},Cg=(e,t,n)=>{var r=it();return(l,s)=>d=>{e==null||e(l,s,d),r(xU({activeIndex:String(s),activeDataKey:t,activeCoordinate:l.tooltipPosition,activeGraphicalItemId:n}))}};function Mg(e){var t=e.tooltipEntrySettings,n=it(),r=hn(),l=b.useRef(null);return b.useLayoutEffect(()=>{r||(l.current===null?n(mU(t)):l.current!==t&&n(vU({prev:l.current,next:t})),l.current=t)},[t,n,r]),b.useLayoutEffect(()=>()=>{l.current&&(n(yU(l.current)),l.current=null)},[n]),null}function BC(e){var t=e.legendPayload,n=it(),r=hn(),l=b.useRef(null);return b.useLayoutEffect(()=>{r||(l.current===null?n(qO(t)):l.current!==t&&n(HO({prev:l.currentLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gY(e,t){if(e){if(typeof e=="string")return QS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QS(e,t):void 0}}function QS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function bY(e){if(Array.isArray(e))return e}var Tg="index",Dg="append";function Pg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=[];for(var l of n)r.push({status:"removed",prev:l});for(var s=0;s<t.length;s++){var d=e[s],f=t[s];d!=null?r.push({status:"matched",prev:d,next:f}):r.push({status:"added",next:f})}return r}function wY(e,t){var n=e.length/t.length,r=t.map((l,s)=>e[Math.floor(s*n)]);return Pg(r,t)}function jY(e,t){var n=t.map((r,l)=>e[l]);return Pg(n,t)}function _Y(e,t){for(var n=new Map,r=0;r<e.length;r++){var l=e[r];if(l!=null){var s=t(l,r);s!=null&&!n.has(s)&&n.set(s,l)}}return n}function SY(e,t,n){var r=_Y(e,n),l=new Set,s=t.map((p,x)=>{var w=n(p,x);if(w!=null){var _=r.get(w);if(_!==void 0)return l.add(w),_}}),d=[];for(var f of r){var h=yY(f,2),m=h[0],y=h[1];l.has(m)||d.push(y)}return Pg(s,t,d)}function _p(e,t,n){return t==null?null:e==null?t.map(r=>({status:"added",next:r})):n===Tg?wY(e,t):n===Dg?jY(e,t):SY(e,t,n)}function UC(e,t){var n=b.useRef(e),r=b.useRef(t.current),l=b.useRef(!0);n.current!==e&&(n.current=e,r.current=t.current,l.current=!1);var s=b.useCallback(function(d,f){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(f===0){l.current=!0;return}f===1&&(r.current=d),f>0&&l.current&&h&&(t.current=d)},[t]);return{startValue:r.current,syncStepValue:s}}function NY(e,t){return kY(e)||EY(e,t)||OY(e,t)||AY()}function AY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OY(e,t){if(e){if(typeof e=="string")return JS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JS(e,t):void 0}}function JS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function EY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function kY(e){if(Array.isArray(e))return e}function zg(e,t){var n=b.useState(!1),r=NY(n,2),l=r[0],s=r[1],d=b.useCallback(()=>{typeof e=="function"&&e(),s(!0)},[e]),f=b.useCallback(()=>{typeof t=="function"&&t(),s(!1)},[t]);return{isAnimating:l,handleAnimationStart:d,handleAnimationEnd:f}}function $g(e){var t,n=e.animationInput,r=e.animationIdPrefix,l=e.items,s=e.previousItemsRef,d=e.isAnimationActive,f=e.animationBegin,h=e.animationDuration,m=e.animationEasing,y=e.onAnimationStart,p=e.onAnimationEnd,x=e.animationInterpolateFn,w=e.animationMatchBy,_=e.shouldUpdatePreviousRef,j=e.children,N=e.layout,O=QO(n,r),A=UC(O,s),T=(t=A.startValue)!==null&&t!==void 0?t:null,C=_p(T,l,w??Tg);return b.createElement(WO,{animationId:O,begin:f,duration:h,isActive:d,easing:m,onAnimationEnd:p,onAnimationStart:y,key:O},P=>{var M=T==null,$=l==null?l:x(C,P,N),B=_?_(P):P>0;return A.syncStepValue($,P,B),$==null?null:j($,P,M)})}var wy;function CY(e,t){return PY(e)||DY(e,t)||TY(e,t)||MY()}function MY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TY(e,t){if(e){if(typeof e=="string")return eN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eN(e,t):void 0}}function eN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function DY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function PY(e){if(Array.isArray(e))return e}var zY=()=>{var e=b.useState(()=>eu("uid-")),t=CY(e,1),n=t[0];return n},qC=(wy=lM.useId)!==null&&wy!==void 0?wy:zY;function $Y(e,t){var n=qC();return t||(e?"".concat(e,"-").concat(n):n)}var IY=b.createContext(void 0),Ig=e=>{var t=e.id,n=e.type,r=e.children,l=$Y("recharts-".concat(n),t);return b.createElement(IY.Provider,{value:l},r(l))},RY={cartesianItems:[],polarItems:[]},HC=fn({name:"graphicalItems",initialState:RY,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:dt()},replaceCartesianGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,l=n.next,s=sr(e).cartesianItems.indexOf(r);s>-1&&(e.cartesianItems[s]=l)},prepare:dt()},removeCartesianGraphicalItem:{reducer(e,t){var n=sr(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:dt()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:dt()},removePolarGraphicalItem:{reducer(e,t){var n=sr(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:dt()},replacePolarGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,l=n.next,s=sr(e).polarItems.indexOf(r);s>-1&&(e.polarItems[s]=l)},prepare:dt()}}}),Io=HC.actions,LY=Io.addCartesianGraphicalItem,BY=Io.replaceCartesianGraphicalItem,UY=Io.removeCartesianGraphicalItem,qY=Io.addPolarGraphicalItem,HY=Io.removePolarGraphicalItem,KY=Io.replacePolarGraphicalItem,YY=HC.reducer,GY=e=>{var t=it(),n=b.useRef(null);return b.useLayoutEffect(()=>{n.current===null?t(LY(e)):n.current!==e&&t(BY({prev:n.current,next:e})),n.current=e},[t,e]),b.useLayoutEffect(()=>()=>{n.current&&(t(UY(n.current)),n.current=null)},[t]),null},KC=b.memo(GY),VY=e=>{var t=it(),n=b.useRef(null);return b.useLayoutEffect(()=>{n.current===null?t(qY(e)):n.current!==e&&t(KY({prev:n.current,next:e})),n.current=e},[t,e]),b.useLayoutEffect(()=>()=>{n.current&&(t(HY(n.current)),n.current=null)},[t]),null},XY=b.memo(VY),FY=["key"],ZY=["onMouseEnter","onClick","onMouseLeave"],WY=["id"],QY=["id"];function ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ol.apply(null,arguments)}function jh(e,t){if(e==null)return{};var n,r,l=JY(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function JY(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tN(Object(n),!0).forEach(function(r){eG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eG(e,t,n){return(t=tG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tG(e){var t=nG(e,"string");return typeof t=="symbol"?t:t+""}function nG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YC=rE;function rG(e){var t=b.useMemo(()=>Ag(e.children,Wi),[e.children]),n=xe(r=>rY(r,e.id,t));return n==null?null:b.createElement(vY,{legendPayload:n})}function aG(e){if(!(e==null||typeof e=="boolean"||typeof e=="function")){if(b.isValidElement(e)){var t,n=(t=e.props)===null||t===void 0?void 0:t.fill;return typeof n=="string"?n:void 0}var r=e.fill;return typeof r=="string"?r:void 0}}var iG=b.memo(e=>{var t=e.dataKey,n=e.nameKey,r=e.sectors,l=e.stroke,s=e.strokeWidth,d=e.fill,f=e.name,h=e.hide,m=e.tooltipType,y=e.id,p=e.activeShape,x=aG(p
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QG(e,t){if(e){if(typeof e=="string")return oN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oN(e,t):void 0}}function oN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function JG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function eV(e){if(Array.isArray(e))return e}var sN=(e,t,n)=>{var r=n??e;if(!yt(r))return cn(r,t,0)},tV=(e,t,n)=>{var r={},l=e.filter(rh),s=e.filter(m=>m.stackId==null),d=l.reduce((m,y)=>{var p=m[y.stackId];return p==null&&(p=[]),p.push(y),m[y.stackId]=p,m},r),f=Object.entries(d).map(m=>{var y,p=ZG(m,2),x=p[0],w=p[1],_=w.map(N=>N.dataKey),j=sN(t,n,(y=w[0])===null||y===void 0?void 0:y.barSize);return{stackId:x,dataKeys:_,barSize:j}}),h=s.map(m=>{var y=[m.dataKey].filter(x=>x!=null),p=sN(t,n,m.barSize);return{stackId:void 0,dataKeys:y,barSize:p}});return[...f,...h]};function uN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function yd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uN(Object(n),!0).forEach(function(r){nV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nV(e,t,n){return(t=rV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rV(e){var t=aV(e,"string");return typeof t=="symbol"?t:t+""}function aV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iV(e,t,n,r,l){var s,d=r.length;if(!(d<1)){var f=cn(e,n,0,!0),h,m=[];if($e((s=r[0])===null||s===void 0?void 0:s.barSize)){var y=!1,p=n/d,x=r.reduce((A,T)=>A+(T.barSize||0),0);x+=(d-1)*f,x>=n&&(x-=(d-1)*f,f=0),x>=n&&p>0&&(y=!0,p*=.9,x=d*p);var w=Math.round((n-x)/2),_={offset:w-f,size:0};h=r.reduce((A,T)=>{var C,P={stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:_.offset+_.size+f,size:y?p:(C=T.barSize)!==null&&C!==void 0?C:0}},M=[...A,P];return _=P.position,M},m)}else{var j=cn(t,n,0,!0);n-2*j-(d-1)*f<=0&&(f=0);var N=(n-2*j-(d-1)*f)/d;N>1&&(N=Math.round(N));var O=$e(l)?Math.min(N,l):N;h=r.reduce((A,T,C)=>[...A,{stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:j+(N+f)*C+(N-O)/2,size:O}}],m)}return h}}var lV=(e,t,n,r,l,s,d)=>{var f=yt(d)?t:d,h=iV(n,r,l!==s?l:s,e,f);return l!==s&&h!=null&&(h=h.map(m=>yd(yd({},m),{},{position:yd(yd({},m.position),{},{offset:m.position.offset-l/2})}))),h},oV=(e,t)=>{var n=nh(t);if(!(!e||n==null||t==null)){var r=t.stackId;if(r!=null){var l=e[r];if(l){var s=l.stackedData;if(s)return s.find(d=>d.key===n)}}}},sV=(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function uV(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&$e(e.zIndex)?e.zIndex:t}var XC=e=>{var t=e.chartData,n=it(),r=hn();return b.useEffect(()=>r?()=>{}:(n(bS(t)),()=>{n(bS(void 0))}),[t,n,r]),null},cN={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},FC=fn({name:"brush",initialState:cN,reducers:{setBrushSettings(e,t){return t.payload==null?cN:t.payload}}});FC.actions.setBrushSettings;var cV=FC.reducer;function dV(e){return(e%180+180)%180}var fV=function(t){var n=t.width,r=t.height,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=dV(l),d=s*Math.PI/180,f=Math.atan(r/n),h=d>f&&d<Math.PI-f?r/Math.sin(d):n/Math.cos(d);return Math.abs(h)},hV={dots:[],areas:[],lines:[]},ZC=fn({name:"referenceElements",initialState:hV,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=sr(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=sr(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=sr(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),Ro=ZC.actions;Ro.addDot;Ro.removeDot;Ro.addArea;Ro.removeArea;Ro.addLine;Ro.removeLine;var mV=ZC.reducer;function vV(e,t){return xV(e)||gV(e,t)||pV(e,t)||yV()}function yV(){
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pV(e,t){if(e){if(typeof e=="string")return dN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dN(e,t):void 0}}function dN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function xV(e){if(Array.isArray(e))return e}var bV=b.createContext(void 0),wV=e=>{var t=e.children,n=b.useState("".concat(eu("recharts"),"-clip")),r=vV(n,1),l=r[0],s=Rg();if(s==null)return null;var d=s.x,f=s.y,h=s.width,m=s.height;return b.createElement(bV.Provider,{value:l},b.createElement("defs",null,b.createElement("clipPath",{id:l},b.createElement("rect",{x:d,y:f,height:m,width:h}))),t)};function WC(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var l=e[r];l!==void 0&&n.push(l)}return n}function jV(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return fV(r,n)}function _V(e,t,n){var r=n==="width",l=e.x,s=e.y,d=e.width,f=e.height;return t===1?{start:r?l:s,end:r?l+d:s+f}:{start:r?l+d:s+f,end:r?l:s}}function mu(e,t,n,r,l){if(e*t<e*r||e*t>e*l)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-l)<=0}function SV(e,t){return WC(e,t+1)}function NV(e,t,n,r,l){for(var s=(r||[]).slice(),d=t.start,f=t.end,h=0,m=1,y=d,p=function(){var _=r==null?void 0:r[h];if(_===void 0)return{v:WC(r,m)};var j=h,N,O=()=>(N===void 0&&(N=n(_,j)),N),A=_.coordinate,T=h===0||mu(e,A,O,y,f);T||(h=0,y=d,m+=1),T&&(y=A+e*(O()/2+l),h+=m)},x;m<=s.length;)if(x=p(),x)return x.v;return[]}function AV(e,t,n,r,l){var s=(r||[]).slice(),d=s.length;if(d===0)return[];for(var f=t.start,h=t.end,m=1;m<=d;m++){for(var y=(d-1)%m,p=f,x=!0,w=function(){var C=r[j];if(C==null)return 0;var P=j,M,$=()=>(M===void 0&&(M=n(C,P)),M),B=C.coordinate,Q=j===y||mu(e,B,$,p,h);if(!Q)return x=!1,1;Q&&(p=B+e*($()/2+l))},_,j=y;j<d&&(_=w(),!(_!==0&&_===1));j+=m);if(x){for(var N=[],O=y;O<d;O+=m){var A=r[O];A!=null&&N.push(A)}return N}}return[]}function fN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fN(Object(n),!0).forEach(function(r){OV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OV(e,t,n){return(t=EV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EV(e){var t=kV(e,"string");return typeof t=="symbol"?t:t+""}function kV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CV(e,t,n,r,l){for(var s=(r||[]).slice(),d=s.length,f=t.start,h=t.end,m=function(x){var w=s[x];if(w==null)return 1;var _=w,j,N=()=>(j===void 0&&(j=n(w,x)),j);if(x===d-1){var O=e*(_.coordinate+e*N()/2-h);s[x]=_=on(on({},_),{},{tickCoord:O>0?_.coordinate-O*e:_.coordinate})}else s[x]=_=on(on({},_),{},{tickCoord:_.coordinate});if(_.tickCoord!=null){var A=mu(e,_.tickCoord,N,f,h);A&&(h=_.tickCoord-e*(N()/2+l),s[x]=on(on({},_),{},{isShow:!0}))}},y=d-1;y>=0;y--)m(y);return s}function MV(e,t,n,r,l,s){var d=(r||[]).slice(),f=d.length,h=t.start,m=t.end;if(s){var y=r[f-1];if(y!=null){var p=n(y,f-1),x=e*(y.coordinate+e*p/2-m);if(d[f-1]=y=on(on({},y),{},{tickCoord:x>0?y.coordinate-x*e:y.coordinate}),y.tickCoord!=null){var w=mu(e,y.tickCoord,()=>p,h,m);w&&(m=y.tickCoord-e*(p/2+l),d[f-1]=on(on({},y),{},{isShow:!0}))}}}for(var _=s?f-1:f,j=function(A){var T=d[A];if(T==null)return 1;var C=T,P,M=()=>(P===void 0&&(P=n(T,A)),P);if(A===0){var $=e*(C.coordinate-e*M()/2-h);d[A]=C=on(on({},C),{},{tickCoord:$<0?C.coordinate-$*e:C.coordinate})}else d[A]=C=on(on({},C),{},{tickCoord:C.coordinate});if(C.tickCoord!=null){var B=mu(e,C.tickCoord,M,h,m);B&&(h=C.tickCoord+e*(M()/2+l),d[A]=on(on({},C),{},{isShow:!0}))}},N=0;N<_;N++)j(N);return d}function Lg(e,t,n){var r=e.tick,l=e.ticks,s=e.viewBox,d=e.minTickGap,f=e.orientation,h=e.interval,m=e.tickFormatter,y=e.unit,p=e.angle;if(!l||!l.length||!r)return[];if(ge(h)||_u.isSsr){var x;return(x=SV(l,ge(h)?h:0))!==null&&x!==void 0?x:[]}var w=[],_=f==="top"||f==="bottom"?"width":
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LV(e,t){if(e){if(typeof e=="string")return mN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mN(e,t):void 0}}function mN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function UV(e){if(Array.isArray(e))return e}function qV(e,t){if(e==null)return{};var n,r,l=HV(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function HV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sl.apply(null,arguments)}function vN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vN(Object(n),!0).forEach(function(r){KV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KV(e,t,n){return(t=YV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YV(e){var t=GV(e,"string");return typeof t=="symbol"?t:t+""}function GV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pa={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:Tt.axis};function VV(e){var t=e.x,n=e.y,r=e.width,l=e.height,s=e.orientation,d=e.mirror,f=e.axisLine,h=e.otherSvgProps;if(!f)return null;var m=jt(jt(jt({},h),En(f)),{},{fill:"none"});if(s==="top"||s==="bottom"){var y=+(s==="top"&&!d||s==="bottom"&&d);m=jt(jt({},m),{},{x1:t,y1:n+y*l,x2:t+r,y2:n+y*l})}else{var p=+(s==="left"&&!d||s==="right"&&d);m=jt(jt({},m),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+l})}return b.createElement("line",sl({},m,{className:Ze("recharts-cartesian-axis-line",Ir(f,"className"))}))}function XV(e,t,n,r,l,s,d,f,h){var m,y,p,x,w,_,j=f?-1:1,N=e.tickSize||d,O=ge(e.tickCoord)?e.tickCoord:e.coordinate;switch(s){case"top":m=y=e.coordinate,x=n+ +!f*l,p=x-j*N,_=p-j*h,w=O;break;case"left":p=x=e.coordinate,y=t+ +!f*r,m=y-j*N,w=m-j*h,_=O;break;case"right":p=x=e.coordinate,y=t+ +f*r,m=y+j*N,w=m+j*h,_=O;break;default:m=y=e.coordinate,x=n+ +f*l,p=x+j*N,_=p+j*h,w=O;break}return{line:{x1:m,y1:p,x2:y,y2:x},tick:{x:w,y:_}}}function FV(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function ZV(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function WV(e){var t=e.option,n=e.tickProps,r=e.value,l,s=Ze(n.className,"recharts-cartesian-axis-tick-value");if(b.isValidElement(t))l=b.cloneElement(t,jt(jt({},n),{},{className:s}));else if(typeof t=="function")l=t(jt(jt({},n),{},{className:s}));else{var d="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(d=Ze(d,zC(t))),l=b.createElement(gh,sl({},n,{className:d}),r)}return l}function QV(e){var t=e.ticks,n=e.axisType,r=e.axisId,l=it();return b.useEffect(()=>{if(r==null||n==null)return ul;var s=t.map(d=>({value:d.value,coordinate:d.coordinate,offset:d.offset,index:d.index}));return l(PV({ticks:s,axisId:r,axisType:n})),()=>{l(zV({axisId:r,axisType:n}))}},[l,t,r,n]),null}var JV=b.forwardRef((e,t)=>{var n=e.ticks,r=n===void 0?[]:n,l=e.tick,s=e.tickLine,d=e.stroke,f=e.tickFormatter,h=e.unit,m=e.padding,y=e.tickTextProps,p=e.orientation,x=e.mirror,w=e.x,_=e.y,j=e.width,N=e.height,O=e.tickSize,A=e.tickMargin,T=e.fontSize,C=e.letterSpacing,P=e.getTicksConfig,M=e.events,$=e.axisType,B=e.axisId,Q=Lg(jt(jt({},P),{},{ticks:r}),T,C),z=En(P),F=Ji(l),V=jC(z.textAnchor)?z.textAnchor:FV(p,x),me=ZV(p,x),he={};typeo
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LF(e,t){if(e){if(typeof e=="string")return bN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bN(e,t):void 0}}function bN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function UF(e){if(Array.isArray(e))return e}function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fi.apply(null,arguments)}function wN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wN(Object(n),!0).forEach(function(r){qF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qF(e,t,n){return(t=HF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HF(e){var t=KF(e,"string");return typeof t=="symbol"?t:t+""}function KF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nf(e,t){if(e==null)return{};var n,r,l=YF(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function YF(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var GF=e=>{var t=e.dataKey,n=e.name,r=e.fill,l=e.legendType,s=e.hide;return[{inactive:s,dataKey:t,type:l,color:r,value:Oo(n,t),payload:e}]},VF=b.memo(e=>{var t=e.dataKey,n=e.stroke,r=e.strokeWidth,l=e.fill,s=e.name,d=e.hide,f=e.unit,h=e.tooltipType,m=e.id,y={dataDefinedOnItem:void 0,getPosition:ul,settings:{stroke:n,strokeWidth:r,fill:l,dataKey:t,nameKey:void 0,name:Oo(s,t),hide:d,type:h,color:l,unit:f,graphicalItemId:m}};return b.createElement(Mg,{tooltipEntrySettings:y})});function XF(e){var t=xe(di),n=e.data,r=e.dataKey,l=e.background,s=e.allOtherBarProps,d=s.onMouseEnter,f=s.onMouseLeave,h=s.onClick,m=Nf(s,PF),y=Eg(d,r,s.id),p=kg(f),x=Cg(h,r,s.id);if(!l||n==null)return null;var w=Ji(l);return b.createElement(kn,{zIndex:uV(l,Tt.barBackground)},n.map((_,j)=>{_.value;var N=_.background;_.tooltipPosition;var O=Nf(_,zF);if(!N)return null;var A=y(_,_.originalDataIndex),T=p(_,_.originalDataIndex),C=x(_,_.originalDataIndex),P=Rt(Rt(Rt(Rt(Rt({option:l,isActive:String(_.originalDataIndex)===t},O),{},{fill:"#eee"},N),w),yu(m,_,j)),{},{onMouseEnter:A,onMouseLeave:T,onClick:C,dataKey:r,index:j,className:"recharts-bar-background-rectangle"});return b.createElement(Kg,fi({key:"background-bar-".concat(j)},P))}))}function FF(e){var t=e.showLabels,n=e.children,r=e.rects,l=r==null?void 0:r.map(s=>{var d={x:s.x,y:s.y,width:s.width,lowerWidth:s.width,upperWidth:s.width,height:s.height};return Rt(Rt({},d),{},{value:s.value,payload:s.payload,parentViewBox:s.parentViewBox,viewBox:d,fill:s.fill})});return b.createElement(kC,{value:t?l:void 0},n)}function ZF(e){var t=e.shape,n=e.activeBar,r=e.baseProps,l=e.entry,s=e.index,d=e.dataKey,f=xe(di),h=xe(vg),m=n&&String(l.originalDataIndex)===f&&(h==null||d===h),y=b.useState(!1),p=xN(y,2),x=p[0],w=p[1],_=b.useState(!1),j=xN(_,2),N=j[0],O=j[1];b.useEffect(()=>{var $;return m?(w(!0),$=requestAnimationFrame(()=>{O(!0)})):O(!1),()=>{cancelAnimationFrame($)}},[m]);var A=b.useCallback(()=>{m||w(!1)},[m]),T=m&&N,C=m||x,P;m?n===!0?P=t:P=n:P=t;var M=b.createElement(Kg,fi({},r,{name:String(r.name)},l,{isActive:T,option:P,index:s,dataKey:d,animationElapsedTime:e.animationElapsedTime,isAnimating:e.isAnimating,isEntrance:e.isEntrance,onTransitionEnd:A}));return C?b.createElement(kn,{zIndex:Tt.activeBar},b.createElement(m3,{index:l.originalDataIndex},M)):M}function WF(e){var t=e.shape,n=e.baseProps,r=e.entry,l=e.index,s=e.dataKey;return b.createElement(Kg,fi({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:l,dataKey:s,animationElapsedTime:e.animationElapsedTime,isAn
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aW(e,t){if(e){if(typeof e=="string")return DN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DN(e,t):void 0}}function DN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function lW(e){if(Array.isArray(e))return e}function oW(){var e=it(),t=b.useState(null),n=nW(t,2),r=n[0],l=n[1],s=xe($$);return b.useEffect(()=>{if(r!=null){var d=r.getBoundingClientRect(),f=d.width/r.offsetWidth;$e(f)&&f!==s&&e(x$(f))}},[r,e,s]),l}function PN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function sW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PN(Object(n),!0).forEach(function(r){uW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uW(e,t,n){return(t=cW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cW(e){var t=dW(e,"string");return typeof t=="symbol"?t:t+""}function dW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},si.apply(null,arguments)}function Of(e,t){return vW(e)||mW(e,t)||hW(e,t)||fW()}function fW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hW(e,t){if(e){if(typeof e=="string")return zN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zN(e,t):void 0}}function zN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function vW(e){if(Array.isArray(e))return e}var yW=()=>(pH(),null);function Ef(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var pW=b.forwardRef((e,t)=>{var n,r,l=b.useRef(null),s=b.useState({containerWidth:Ef((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:Ef((r=e.style)===null||r===void 0?void 0:r.height)}),d=Of(s,2),f=d[0],h=d[1],m=b.useCallback((p,x)=>{h(w=>{var _=Math.round(p),j=Math.round(x);return w.containerWidth===_&&w.containerHeight===j?w:{containerWidth:_,containerHeight:j}})},[]),y=b.useCallback(p=>{if(typeof t=="function"&&t(p),l.current!=null&&(l.current.disconnect(),l.current=null),p!=null&&typeof ResizeObserver<"u"){var x=p.getBoundingClientRect(),w=x.width,_=x.height;m(w,_);var j=O=>{var A=O[0];if(A!=null){var T=A.contentRect,C=T.width,P=T.height;m(C,P)}},N=new ResizeObserver(j);N.observe(p),l.current=N}},[t,m]);return b.useEffect(()=>()=>{var p=l.current;p!=null&&p.disconnect()},[m]),b.createElement(b.Fragment,null,b.createElement(bu,{width:f.containerWidth,height:f.containerHeight}),b.createElement("div",si({ref:y},e)))}),gW=b.forwardRef((e,t)=>{var n=e.width,r=e.height,l=b.useState({containerWidth:Ef(n),containerHeight:Ef(r)}),s=Of(l,2),d=s[0],f=s[1],h=b.useCallback((y,p)=>{f(x=>{var w=Math.round(y),_=Math.round(p);return x.containerWidth===w&&x.containerHeight===_?x:{containerWidth:w,containerHeight:_}})},[]),m=b.useCallback(y=>{if(typeof t=="function"&&t(y),y!=null){var p=y.getBoundingClientRect(),x=p.width,w=p.height;h(x,w)}},[t,h]);return b.createElement(b.Fragment,null,b.createElement(bu,{width:d.containerWidth,height:d.containerHeight}),b.createElement("div",si({ref:m},e)))}),xW=b.forwardRef((e,t)=>{var n=e.width,r=e.height;return b.createElement(b.Fragment,null,b.createElement(bu,{width:n,height:r}),b.createElement("div",si({ref:t},e)))}),bW=b.forwardRef((e,t)=>{var n=e.width,r=e.height;return typeof n=="string"||typeof r=="string"?b.createElement(gW,si({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?b.createElement(xW,si({},e,{width:n,height:r,ref:t})):b.createElement(b.Fragment,null,b.createElement(bu,{width:n,height:r}),b.createElement("div",si({ref:t},e)))});function wW(e){return e?pW:bW}var jW=b.forwardRef((e,t)=>{var n=e.children,r=e.className,l=e.height,s=e.onClick,d=e.onContextMenu,f=e.onDoubleClick,h=e.onMouseDown,m=e.onMouseEnter,y=e.onMouseLeave,p=e.onMouseMove,x=e.onMouseUp,w=e.onTouchEnd,_=e.onTouchMove,j=e.onTouchStart,N=e.style,O=e.width,A=e.responsive,T=e.dispatchTouchEvents,C=T===void 0?!0:T,P=b.useRef(null),M=it(),$=b.useState(null),B=Of($,2),Q=B[0],z=B[1],F=b.useState(null),V=Of(F,2),me=V[0],he=V[1],se=oW(),H=r0(),te=(H==null?void 0:H.width)>0?H.width:O,ae=(H==null?void 0:H.height)>0?H.height:l,Z=b.useCallback(_e=>{se(_e),typeof t=="function"&&t(_e),z(_e),he(_e),_e!=null&&(P.current=_e)},[se,t,z,he]),L=b.useCallback(_e=>{M(p3(_e)),M(lr({handler:s,reactEvent:_e}))},[M,s]),k=b.useCallback(_e=>{M(Tp(_e)),M(lr({handler:m,reactEvent:_e}))},[M,m]),K=b.useCallback(_e=>{M(Yk()),M(lr({handler:y,reactEvent:_e}))},[M,y]),X=b.useCallback(_e=>{M(Tp(_e)),M(lr({handler:p,reactEvent:_e}))},[M,p]),ue=b.useCallback(()=>{M(_3())},[M]),ye=b.useCallback(()=>{M(S3())},[M]),pe=b.useCallback(_e=>{M(j3(_e.key))},[M]),je=b.useCallback(_e=>{M(lr({handler:d,reactEvent:_e}))},[M,d]),De=b.useCallback(_e=>{M(lr({handler:f,reactEvent:_e}))},[M,f]),R=b.useCallback(_e=>{M(lr({handler:h,reactEvent:_e}))},[M,h]),fe=b.useCallback(_e=>{M(lr({handler:x,reactEvent:_e}))},[M,x]),ve=b.useCallback(_e=>{M(lr({handler:j,reactEvent:_e}))},[M,j]),ie=b.useCallback(_e=>{C&&M(O3(_e)),M(lr({handler:_,reactEvent:_e}))},[M,C,_]),Ae=b.useCallback(_e=>{M(lr({handler:w,reactEvent:_e}))},[M,w]),ke=wW(A);return b.createElement(mC.Provider,{value:Q},b.createElement(oA.Provider,{value:me},b.createElement(ke,{width:te??(N==null?void 0:N.width),height:ae??(N==null?void 0:N.height),className:Ze("recharts-wrapper",r),style:sW({position:"relative",cursor:"default",width:te,height:ae},N),onClick:L,onContextMenu:je,onDoubleClick:De,onFocus:ue,onBlur:ye,onKeyDown:pe,onMouseDown:R,onMouseEnter:k,onMouseLeave:K,onMouseMove:X,onMouseUp:fe,o
Line truncated
|
||||
|
||||
例如:回复时保持礼貌专业、使用简洁的语言、强调产品质量等`,className:"w-full ios-input px-4 py-3 rounded-xl h-40 resize-none"})]}),c.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4",children:[c.jsxs("h4",{className:"font-bold text-blue-900 mb-2 flex items-center gap-2",children:[c.jsx($p,{className:"w-4 h-4"}),"AI如何工作"]}),c.jsxs("ul",{className:"text-xs text-blue-800 space-y-1",children:[c.jsx("li",{children:"• 自动识别买家的砍价请求"}),c.jsx("li",{children:"• 根据设定的策略智能回复"}),c.jsx("li",{children:"• 在合理范围内同意降价或礼貌拒绝"}),c.jsx("li",{children:"• 保持专业友好的沟通风格"})]})]})]}),c.jsx("div",{className:"modal-footer",children:c.jsxs("div",{className:"flex gap-3 w-full",children:[c.jsx("button",{onClick:()=>$(null),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",disabled:he,children:"取消"}),c.jsxs("button",{onClick:ye,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",disabled:he,children:[he?c.jsx(ri,{className:"w-4 h-4 animate-spin"}):c.jsx(va,{className:"w-4 h-4"}),he?"保存中...":"保存"]})]})})]})}),document.body)]})},HN=({status:e})=>{const t={processing:"bg-blue-100 text-blue-800",pending_ship:"bg-[#0094f7] text-white",shipped:"bg-blue-100 text-blue-700",completed:"bg-green-100 text-green-700",cancelled:"bg-gray-100 text-gray-500",refunding:"bg-red-100 text-red-600"},n={processing:"处理中",pending_ship:"待发货",shipped:"已发货",completed:"已完成",cancelled:"已取消",refunding:"退款中"};return c.jsx("span",{className:`px-3 py-1.5 rounded-lg text-xs font-bold ${t[e]||t.cancelled}`,children:n[e]||e})},QW=()=>{const[e,t]=b.useState([]),[n,r]=b.useState([]),[l,s]=b.useState([]),[d,f]=b.useState({}),[h,m]=b.useState("all"),[y,p]=b.useState(""),[x,w]=b.useState(1),[_,j]=b.useState(1),[N,O]=b.useState(!1),[A,T]=b.useState(!1),[C,P]=b.useState(!1),[M,$]=b.useState(!1),[B,Q]=b.useState(null),[z,F]=b.useState(null),[V,me]=b.useState({}),[he,se]=b.useState(!1),[H,te]=b.useState(""),[ae,Z]=b.useState(!1),[L,k]=b.useState(null),[K,X]=b.useState(null),[ue,ye]=b.useState(null),[pe,je]=b.useState(null),De=re=>{if(!y.trim())return re;const Ce=y.toLowerCase().trim();return re.filter(Ie=>{var q,D,de,Re,gt,Gn;return((q=Ie.order_id)==null?void 0:q.toLowerCase().includes(Ce))||((D=Ie.item_id)==null?void 0:D.toLowerCase().includes(Ce))||((de=Ie.buyer_id)==null?void 0:de.toLowerCase().includes(Ce))||((Re=Ie.item_title)==null?void 0:Re.toLowerCase().includes(Ce))||((gt=Ie.receiver_name)==null?void 0:gt.toLowerCase().includes(Ce))||((Gn=Ie.receiver_phone)==null?void 0:Gn.toLowerCase().includes(Ce))})},R=async()=>{O(!0);try{if(y.trim()){let re=[],Ce=1,Ie=!0;for(;Ie;){const q=await dj(void 0,h,Ce,100);re=[...re,...q.data],Ie=Ce<q.total_pages,Ce++}r(re),t(De(re)),j(1)}else{const re=await dj(void 0,h,x,20);r(re.data),t(De(re.data)),j(re.total_pages)}}catch(re){console.error("加载订单失败:",re)}finally{O(!1)}};b.useEffect(()=>{t(De(n))},[n,y]);const fe=(re,Ce)=>{if(Ce&&Ce.trim())return Ce;if(d[re])return d[re];const Ie=l.find(q=>{if(Ce&&q.item_title){const D=Ce.toLowerCase(),de=q.item_title.toLowerCase();return de.includes(D)||D.includes(de)}return!1});return Ie!=null&&Ie.item_title?Ie.item_title:"未知商品"},ve=re=>{const Ce={};re.forEach(Ie=>{Ie.item_id&&(Ce[Ie.item_id]=Ie.item_title||Ie.item_id)}),f(Ce)};b.useEffect(()=>{R(),mo().then(re=>{s(re),ve(re)}).catch(re=>{console.error("加载商品列表失败:",re)})},[h,x,y]);const ie=async()=>{O(!0);try{const re=await iD();await R(),re!=null&&re.message&&alert(re.message)}catch(re){console.error("同步订单失败:",re),alert((re==null?void 0:re.message)||"同步失败,请重试")}finally{O(!1)}},Ae=re=>{te(re),k(null),se(!0)},ke=async re=>{var Ce;Z(!0),k(null);try{const Ie=await oD([H],re),q=(Ce=Ie==null?void 0:Ie.results)==null?void 0:Ce[0];q!=null&&q.success?(k({success:!0,message:q.message}),R()):k({success:!1,message:(q==null?void 0:q.message)||"发货失败"})}catch(Ie){k({success:!1,message:(Ie==null?void 0:Ie.message)||"请求失败"})}finally{Z(!1)}},_e=re=>{Q(re),T(!0)},et=re=>{F({...re}),P(!0)},Te=async()=>{if(!(!z||!z.order_id))try{const re={};z.status!==void 0&&(re.order_status=z.status),z.buyer_id!==void 0&&(re.buyer_id=z.buyer_id),z.amount!==void 0&&(re.amount=z.amount),z.receiver_name!==void 0&&(re.receiver_name=z.receiver_name),z.receiver_phone!==void 0&&(re.receiver_phone=z.receiver_phone),z.receiver_address!==void 0&&(re.receiver_address=z.receiver_address),z.item_id!==void 0&&(re.item_id=z.item_id),z.quantity!==void 0&&(re.quantity=z.quantity),await rD(z.order_id,re),P(!1),F(null),R()}catch(re){console.error("更新订单失败:",re),alert("更新失败,请重试")}},Cn=async()=>{if(K)try{const re=new FormData;re.append("file",K),await sD(re),$(!1),X(null),R(),alert("订单导
Line truncated
|
||||
`).filter(P=>P.trim()).length} 条`:A.type==="text"&&A.text_content?T=A.text_content.substring(0,20)+(A.text_content.length>20?"...":""):A.type==="api"&&A.api_config?T=A.api_config.url:A.type==="image"&&A.image_url&&(T="图片链接"),c.jsxs("tr",{className:"hover:bg-[#FFFDE7]/50 transition-colors group",children:[c.jsx("td",{className:"px-8 py-5",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"p-2 bg-gray-50 rounded-xl group-hover:bg-white transition-colors",children:c.jsx(x,{type:A.type})}),c.jsx("span",{className:"font-bold text-gray-900",children:A.name})]})}),c.jsx("td",{className:"px-6 py-5",children:c.jsx("span",{className:`px-3 py-1.5 rounded-lg text-xs font-bold ${A.type==="text"?"bg-blue-50 text-blue-600":A.type==="data"?"bg-purple-50 text-purple-600":A.type==="api"?"bg-blue-50 text-blue-600":"bg-pink-50 text-pink-600"}`,children:A.type==="text"?"文本":A.type==="data"?"批量":A.type==="api"?"API":"图片"})}),c.jsx("td",{className:"px-6 py-5",children:c.jsx("span",{className:"text-sm text-gray-600 font-mono block truncate",title:T,children:T})}),c.jsx("td",{className:"px-6 py-5",children:c.jsx("span",{className:"text-sm text-gray-500 block max-w-[200px] truncate",title:A.description||"-",children:A.description||"-"})}),c.jsx("td",{className:"px-6 py-5",children:c.jsx("button",{onClick:()=>O(A),className:`w-12 h-8 rounded-full relative transition-colors ${A.enabled?"bg-green-500":"bg-gray-300"}`,children:c.jsx("div",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-sm transition-transform ${A.enabled?"left-5":"left-1"}`})})}),c.jsx("td",{className:"px-6 py-5",children:c.jsxs("div",{className:"flex items-center justify-end gap-2",children:[c.jsx("button",{onClick:()=>w(A),className:"p-2 text-gray-400 hover:text-black hover:bg-gray-100 rounded-xl transition-colors",title:"编辑",children:c.jsx(Rp,{className:"w-4 h-4"})}),c.jsx("button",{onClick:()=>j(A.id),className:"p-2 text-gray-400 hover:text-red-500 hover:bg-red-50 rounded-xl transition-colors",children:c.jsx(ii,{className:"w-5 h-5"})})]})})]},A.id)})})]})}),e.length===0&&c.jsxs("div",{className:"py-20 text-center text-gray-400",children:[c.jsx(WN,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),c.jsx("p",{children:"暂无卡密配置,请点击右上角添加。"})]})]}),n&&d&&Lt.createPortal(c.jsx("div",{className:"modal-overlay-centered",children:c.jsxs("div",{className:"modal-container",children:[c.jsxs("div",{className:"modal-header",children:[c.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"编辑卡密"}),c.jsx("button",{onClick:()=>r(!1),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors",children:c.jsx(un,{className:"w-5 h-5 text-gray-500"})})]}),c.jsx("div",{className:"modal-body",children:c.jsxs("div",{className:"space-y-5",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsxs("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:["卡密名称 ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsx("input",{type:"text",value:h.name||"",onChange:A=>m({...h,name:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",placeholder:"例如:游戏点卡、会员卡等"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"卡券类型"}),c.jsxs("select",{value:h.type||"text",onChange:A=>m({...h,type:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[c.jsx("option",{value:"",children:"请选择类型"}),c.jsx("option",{value:"text",children:"固定文字"}),c.jsx("option",{value:"data",children:"批量数据"}),c.jsx("option",{value:"api",children:"API接口"}),c.jsx("option",{value:"image",children:"图片"})]})]})]}),h.type==="api"&&c.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 space-y-4 bg-gray-50",children:[c.jsx("h3",{className:"font-bold text-gray-900",children:"API 配置"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"API 地址"}),c.jsx("input",{type:"url",value:h.api_url||"",onChange:A=>m({...h,api_url:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl font-mono text-sm",placeholder:"https://api.example.com/get-card"})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"请求方法"}),c.jsxs("select",{value:h.api_method||"GET",onChange:A=>m({...h,api_method:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[c.jsx("option",{value:"GET",children:"GET"}),c.jsx("option",{value:"POST",children:"POST"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"超时时间(秒)"}),c.jsx("input",{type:"number",value:h.api_timeout||10,onChange:A=>m({...h,api_timeout:parseInt(A.tarLine truncated
|
||||
卡号1:密码1
|
||||
卡号2:密码2
|
||||
或者
|
||||
兑换码1
|
||||
兑换码2`}),c.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"支持格式:卡号:密码 或 单独的兑换码"}),c.jsxs("p",{className:"text-xs text-gray-500",children:["当前库存:",c.jsx("span",{className:"font-bold text-blue-600",children:h.data_content?h.data_content.split(`
|
||||
`).filter(A=>A.trim()).length:0})," 条"]})]})]}),h.type==="image"&&c.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 bg-gray-50",children:[c.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"图片配置"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"图片 URL"}),c.jsx("input",{type:"url",value:h.image_url||"",onChange:A=>m({...h,image_url:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl font-mono text-sm",placeholder:"https://example.com/image.png"}),c.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"输入图片卡密的 URL 地址"})]}),h.image_url&&c.jsxs("div",{className:"mt-3",children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"图片预览"}),c.jsx("img",{src:h.image_url,alt:"预览",className:"max-w-full max-h-48 rounded-xl border border-gray-200",onError:A=>{A.currentTarget.src="https://via.placeholder.com/400x200?text=图片加载失败"}})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"延时发货时间(秒)"}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("input",{type:"number",value:h.delay_seconds||0,onChange:A=>m({...h,delay_seconds:parseInt(A.target.value)||0}),className:"flex-1 ios-input px-4 py-3 rounded-xl",min:"0",max:"3600",placeholder:"0"}),c.jsx("span",{className:"text-sm text-gray-500 whitespace-nowrap",children:"秒"})]}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"0表示立即发货,最大3600秒(1小时)"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"备注信息"}),c.jsx("textarea",{value:h.description||"",onChange:A=>m({...h,description:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-40 resize-none",placeholder:"可选的备注信息"})]}),c.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[c.jsx("span",{className:"font-bold text-gray-900",children:"启用状态"}),c.jsx("button",{type:"button",onClick:()=>m({...h,enabled:!h.enabled}),className:`w-14 h-8 rounded-full transition-colors duration-300 relative ${h.enabled?"bg-[#0094f7]":"bg-gray-300"}`,children:c.jsx("span",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-md transition-transform duration-300 block ${h.enabled?"translate-x-7":"translate-x-1"}`})})]})]})}),c.jsx("div",{className:"modal-footer",children:c.jsxs("div",{className:"flex gap-3 w-full",children:[c.jsx("button",{onClick:()=>r(!1),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",children:"取消"}),c.jsxs("button",{onClick:_,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",children:[c.jsx(va,{className:"w-4 h-4"}),"保存更改"]})]})})]})}),document.body),l&&Lt.createPortal(c.jsx("div",{className:"modal-overlay-centered",children:c.jsxs("div",{className:"modal-container",style:{maxWidth:"780px"},children:[c.jsxs("div",{className:"modal-header flex items-center justify-between gap-4",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"添加新卡密"}),c.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"选择交付方式并录入自动发货内容"})]}),c.jsx("button",{onClick:()=>s(!1),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors flex-shrink-0",title:"关闭",children:c.jsx(un,{className:"w-5 h-5 text-gray-500"})})]}),c.jsx("div",{className:"modal-body",children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"卡密名称"}),c.jsx("input",{type:"text",value:y.name,onChange:A=>p({...y,name:A.target.value}),placeholder:"例如:VIP会员卡密",className:"w-full ios-input px-4 py-3 rounded-xl"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"类型"}),c.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:[c.jsxs("button",{type:"button",onClick:()=>p({...y,type:"data",content:""}),className:`p-3 rounded-xl font-bold transition-all ${y.type==="data"?"bg-[#0094f7] text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:[c.jsx(Oy,{className:"w-5 h-5 mx-auto mb-1"}),"批量库存"]}),c.jsxs("button",{type:"button",onClick:()=>p({...y,type:"text",content:""}),className:`p-3 rounded-xl font-bold transition-all ${y.type==="text"?"bg-[#0094f7] text-white":"bg-gray-100 text-gray-600"}`,children:[c.jsx(lj,{className:"w-5 h-5 mx-auto mb-1"}),"文本"]}),c.jsxs("button",{type:"button",onClick:()=>p({...y,type:"image",content:""}),className:`p-3 rounded-xl font-bold transition-all ${y.type==="image"?"bg-[#0094f7] text-white":"bg-gray-100 text-gray-Line truncated
|
||||
CODE-789012
|
||||
...`:"请输入每次发货时发送的固定文字"}),y.type==="data"&&c.jsxs("p",{className:"text-xs text-gray-500",children:["当前库存:",c.jsx("span",{className:"font-bold text-[#0094f7]",children:y.content.split(`
|
||||
`).filter(A=>A.trim()).length})," 条"]})]}),y.type==="api"&&c.jsxs("div",{className:"border-t border-gray-100 pt-5 space-y-4",children:[c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700",children:"请求方法"}),c.jsxs("select",{value:y.api_method,onChange:A=>p({...y,api_method:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[c.jsx("option",{value:"GET",children:"GET"}),c.jsx("option",{value:"POST",children:"POST"})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700",children:"超时时间(秒)"}),c.jsx("input",{type:"number",min:"1",max:"60",value:y.api_timeout,onChange:A=>p({...y,api_timeout:parseInt(A.target.value)||10}),className:"w-full ios-input px-4 py-3 rounded-xl"})]})]}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700",children:"请求头(JSON)"}),c.jsx("textarea",{value:y.api_headers,onChange:A=>p({...y,api_headers:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-24 resize-none font-mono text-xs",placeholder:'{"Authorization":"Bearer token"}'})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700",children:"请求参数(JSON)"}),c.jsx("textarea",{value:y.api_params,onChange:A=>p({...y,api_params:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-24 resize-none font-mono text-xs",placeholder:'{"order_id":"{order_id}"}'})]})]})]}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-[1fr_180px] gap-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700",children:"描述"}),c.jsx("input",{value:y.description,onChange:A=>p({...y,description:A.target.value}),placeholder:"卡密用途描述(可选)",className:"w-full ios-input px-4 py-3 rounded-xl"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"block text-sm font-bold text-gray-700",children:"延时发货(秒)"}),c.jsx("input",{type:"number",value:y.delay_seconds,onChange:A=>p({...y,delay_seconds:parseInt(A.target.value)||0}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"0",max:"3600"})]})]})]})}),c.jsx("div",{className:"modal-footer",children:c.jsxs("div",{className:"flex gap-3 w-full",children:[c.jsx("button",{onClick:()=>s(!1),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",children:"取消"}),c.jsxs("button",{onClick:N,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",children:[c.jsx(Qi,{className:"w-4 h-4"}),"添加卡密"]})]})})]})}),document.body)]})},eQ=({onConfigureDelivery:e})=>{const[t,n]=b.useState([]),[r,l]=b.useState([]),[s,d]=b.useState([]),[f,h]=b.useState(""),[m,y]=b.useState(!1),[p,x]=b.useState(!1),[w,_]=b.useState(!1),[j,N]=b.useState(!1),[O,A]=b.useState(!1),[T,C]=b.useState(!1),[P,M]=b.useState(!1),[$,B]=b.useState("upload"),[Q,z]=b.useState(null),[F,V]=b.useState(null),[me,he]=b.useState(null),[se,H]=b.useState(null),[te,ae]=b.useState(null),[Z,L]=b.useState({}),[k,K]=b.useState({cookie_id:"",item_id:"",item_title:"",item_price:"",item_image:"",is_multi_spec:!1,is_multi_qty_ship:!1}),[X,ue]=b.useState({cookie_id:"",title:"",description:"",price:"",original_price:"",quantity:"1",postage_mode:"free",postage:"",images:[]}),ye=async()=>{const D=await mo();n(D)},pe=async()=>{l(await kd())};b.useEffect(()=>{Promise.all([Lp(),mo(),kd()]).then(([D,de,Re])=>{d(D),n(de),l(Re)}).catch(D=>console.error("加载商品配置失败:",D))},[]),b.useEffect(()=>{if(!P||!(se!=null&&se.id)||se.status!=="running")return;const D=window.setInterval(async()=>{try{const de=await ed(se.id);H(de),de.status!=="running"&&(B("done"),await ye(),await pe())}catch(de){console.error("刷新批量铺货进度失败:",de)}},3e3);return()=>window.clearInterval(D)},[P,se==null?void 0:se.id,se==null?void 0:se.status]);const je=async()=>{if(!f)return alert("请先选择账号");y(!0);try{const D=await mD(f);await ye(),alert((D==null?void 0:D.message)||"商品同步完成")}catch(D){console.error("同步商品失败:",D),alert((D==null?void 0:D.message)||"同步失败,请重试")}finally{y(!1)}},De=D=>{ae(D),L({...D}),N(!0)},R=async()=>{if(te)try{await jD(te.cookie_id,te.item_id,{item_title:Z.item_title||"",item_description:Z.item_description||"",item_category:Z.item_category||"",item_price:Z.item_price||"",item_detail:Z.item_detail||te.item_detail||"",is_multi_spec:!!Z.is_multi_spec,multi_quantity_delivery:!!(Z.is_multi_qty_ship??Z.multi_quantity_delivery)}),await ye(),await pe(),N(!1),ae(null)}catch(D){console.error("更新商品失败:",D),alert("更新失败,请重
Line truncated
|
||||
@@ -0,0 +1,467 @@
|
||||
var eM=Object.defineProperty;var tM=(e,t,n)=>t in e?eM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qc=(e,t,n)=>tM(e,typeof t!="symbol"?t+"":t,n);function nM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(r,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const d of s.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function zp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $v={exports:{}},Ms={};/**
|
||||
* @license React
|
||||
* react-jsx-runtime.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Kw;function rM(){if(Kw)return Ms;Kw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,l,s){var d=null;if(s!==void 0&&(d=""+s),l.key!==void 0&&(d=""+l.key),"key"in l){s={};for(var f in l)f!=="key"&&(s[f]=l[f])}else s=l;return l=s.ref,{$$typeof:e,type:r,key:d,ref:l!==void 0?l:null,props:s}}return Ms.Fragment=t,Ms.jsx=n,Ms.jsxs=n,Ms}var Yw;function aM(){return Yw||(Yw=1,$v.exports=rM()),$v.exports}var u=aM(),Iv={exports:{}},Te={};/**
|
||||
* @license React
|
||||
* react.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Gw;function iM(){if(Gw)return Te;Gw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),x=Symbol.iterator;function w(k){return k===null||typeof k!="object"?null:(k=x&&k[x]||k["@@iterator"],typeof k=="function"?k:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,N={};function O(k,K,F){this.props=k,this.context=K,this.refs=N,this.updater=F||_}O.prototype.isReactComponent={},O.prototype.setState=function(k,K){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,K,"setState")},O.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function D(){}D.prototype=O.prototype;function A(k,K,F){this.props=k,this.context=K,this.refs=N,this.updater=F||_}var C=A.prototype=new D;C.constructor=A,j(C,O.prototype),C.isPureReactComponent=!0;var P=Array.isArray;function M(){}var $={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function Q(k,K,F){var ue=F.ref;return{$$typeof:e,type:k,key:K,ref:ue!==void 0?ue:null,props:F}}function z(k,K){return Q(k.type,K,k.props)}function X(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function V(k){var K={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(F){return K[F]})}var he=/\/+/g;function fe(k,K){return typeof k=="object"&&k!==null&&k.key!=null?V(""+k.key):K.toString(36)}function se(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(M,M):(k.status="pending",k.then(function(K){k.status==="pending"&&(k.status="fulfilled",k.value=K)},function(K){k.status==="pending"&&(k.status="rejected",k.reason=K)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,K,F,ue,ve){var ye=typeof k;(ye==="undefined"||ye==="boolean")&&(k=null);var _e=!1;if(k===null)_e=!0;else switch(ye){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(k.$$typeof){case e:case t:_e=!0;break;case y:return _e=k._init,q(_e(k._payload),K,F,ue,ve)}}if(_e)return ve=ve(k),_e=ue===""?"."+fe(k,0):ue,P(ve)?(F="",_e!=null&&(F=_e.replace(he,"$&/")+"/"),q(ve,K,F,"",function(de){return de})):ve!=null&&(X(ve)&&(ve=z(ve,F+(ve.key==null||k&&k.key===ve.key?"":(""+ve.key).replace(he,"$&/")+"/")+_e)),K.push(ve)),1;_e=0;var Pe=ue===""?".":ue+":";if(P(k))for(var R=0;R<k.length;R++)ue=k[R],ye=Pe+fe(ue,R),_e+=q(ue,K,F,ye,ve);else if(R=w(k),typeof R=="function")for(k=R.call(k),R=0;!(ue=k.next()).done;)ue=ue.value,ye=Pe+fe(ue,R++),_e+=q(ue,K,F,ye,ve);else if(ye==="object"){if(typeof k.then=="function")return q(se(k),K,F,ue,ve);throw K=String(k),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return _e}function te(k,K,F){if(k==null)return k;var ue=[],ve=0;return q(k,ue,"","",function(ye){return K.call(F,ye,ve++)}),ue}function ae(k){if(k._status===-1){var K=k._result;K=K(),K.then(function(F){(k._status===0||k._status===-1)&&(k._status=1,k._result=F)},function(F){(k._status===0||k._status===-1)&&(k._status=2,k._result=F)}),k._status===-1&&(k._status=0,k._result=K)}if(k._status===1)return k._result.default;throw k._result}var Z=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},B={map:te,forEach:function(k,K,F){te(k,function(){K.apply(this,arguments)},F)},count:function(k){var K=0;return te(k,function(){K++}),K},toArray:function(k){return te(k,function(K){return K})||[]},only:function(k){if(!X(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Te.Activity=p,Te.Children=B,Te.Component=O,Te.Fragment=n,Te.Profiler=l,Te.PureComponent=A,Te.StrictMode=r,Te.Suspense=h,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,Te.__COMPILER_RUNTIME={__proto__:null,c:function(k){return $.H.useMemoCache(k)}},Te.cache=function(k){return function(){return k.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(k,K,F){if(k==null)throwLine truncated
|
||||
* @license React
|
||||
* scheduler.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Xw;function oM(){return Xw||(Xw=1,(function(e){function t(q,te){var ae=q.length;q.push(te);e:for(;0<ae;){var Z=ae-1>>>1,B=q[Z];if(0<l(B,te))q[Z]=te,q[ae]=B,ae=Z;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var te=q[0],ae=q.pop();if(ae!==te){q[0]=ae;e:for(var Z=0,B=q.length,k=B>>>1;Z<k;){var K=2*(Z+1)-1,F=q[K],ue=K+1,ve=q[ue];if(0>l(F,ae))ue<B&&0>l(ve,F)?(q[Z]=ve,q[ue]=ae,Z=ue):(q[Z]=F,q[K]=ae,Z=K);else if(ue<B&&0>l(ve,ae))q[Z]=ve,q[ue]=ae,Z=ue;else break e}}return te}function l(q,te){var ae=q.sortIndex-te.sortIndex;return ae!==0?ae:q.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var h=[],m=[],y=1,p=null,x=3,w=!1,_=!1,j=!1,N=!1,O=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function C(q){for(var te=n(m);te!==null;){if(te.callback===null)r(m);else if(te.startTime<=q)r(m),te.sortIndex=te.expirationTime,t(h,te);else break;te=n(m)}}function P(q){if(j=!1,C(q),!_)if(n(h)!==null)_=!0,M||(M=!0,V());else{var te=n(m);te!==null&&se(P,te.startTime-q)}}var M=!1,$=-1,L=5,Q=-1;function z(){return N?!0:!(e.unstable_now()-Q<L)}function X(){if(N=!1,M){var q=e.unstable_now();Q=q;var te=!0;try{e:{_=!1,j&&(j=!1,D($),$=-1),w=!0;var ae=x;try{t:{for(C(q),p=n(h);p!==null&&!(p.expirationTime>q&&z());){var Z=p.callback;if(typeof Z=="function"){p.callback=null,x=p.priorityLevel;var B=Z(p.expirationTime<=q);if(q=e.unstable_now(),typeof B=="function"){p.callback=B,C(q),te=!0;break t}p===n(h)&&r(h),C(q)}else r(h);p=n(h)}if(p!==null)te=!0;else{var k=n(m);k!==null&&se(P,k.startTime-q),te=!1}}break e}finally{p=null,x=ae,w=!1}te=void 0}}finally{te?V():M=!1}}}var V;if(typeof A=="function")V=function(){A(X)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,fe=he.port2;he.port1.onmessage=X,V=function(){fe.postMessage(null)}}else V=function(){O(X,0)};function se(q,te){$=O(function(){q(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(q){switch(x){case 1:case 2:case 3:var te=3;break;default:te=x}var ae=x;x=te;try{return q()}finally{x=ae}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(q,te){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ae=x;x=q;try{return te()}finally{x=ae}},e.unstable_scheduleCallback=function(q,te,ae){var Z=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Z+ae:Z):ae=Z,q){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=ae+B,q={id:y++,callback:te,priorityLevel:q,startTime:ae,expirationTime:B,sortIndex:-1},ae>Z?(q.sortIndex=ae,t(m,q),n(h)===null&&q===n(m)&&(j?(D($),$=-1):j=!0,se(P,ae-Z))):(q.sortIndex=B,t(h,q),_||w||(_=!0,M||(M=!0,V()))),q},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(q){var te=x;return function(){var ae=x;x=te;try{return q.apply(this,arguments)}finally{x=ae}}}})(Bv)),Bv}var Fw;function sM(){return Fw||(Fw=1,Lv.exports=oM()),Lv.exports}var Uv={exports:{}},un={};/**
|
||||
* @license React
|
||||
* react-dom.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Zw;function uM(){if(Zw)return un;Zw=1;var e=Ao();function t(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(h,m,y){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:p==null?null:""+p,children:h,containerInfo:m,implementation:y}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return un.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,un.createPortal=function(h,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return s(h,m,null,y)},un.flushSync=function(h){var m=d.T,y=r.p;try{if(d.T=null,r.p=2,h)return h()}finally{d.T=m,r.p=y,r.d.f()}},un.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(h,m))},un.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},un.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var y=m.as,p=f(y,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?r.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:p,integrity:x,fetchPriority:w}):y==="script"&&r.d.X(h,{crossOrigin:p,integrity:x,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},un.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=f(m.as,m.crossOrigin);r.d.M(h,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(h)},un.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,p=f(y,m.crossOrigin);r.d.L(h,y,{crossOrigin:p,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},un.preloadModule=function(h,m){if(typeof h=="string")if(m){var y=f(m.as,m.crossOrigin);r.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(h)},un.requestFormReset=function(h){r.d.r(h)},un.unstable_batchedUpdates=function(h,m){return h(m)},un.useFormState=function(h,m,y){return d.H.useFormState(h,m,y)},un.useFormStatus=function(){return d.H.useHostTransitionStatus()},un.version="19.2.7",un}var Ww;function VN(){if(Ww)return Uv.exports;Ww=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Uv.exports=uM(),Uv.exports}/**
|
||||
* @license React
|
||||
* react-dom-client.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Qw;function cM(){if(Qw)return Ts;Qw=1;var e=sM(),t=Ao(),n=VN();function r(a){var i="https://react.dev/errors/"+a;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){var i=a,o=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(o=i.return),a=i.return;while(a)}return i.tag===3?o:null}function d(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function f(a){if(a.tag===31){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function h(a){if(s(a)!==a)throw Error(r(188))}function m(a){var i=a.alternate;if(!i){if(i=s(a),i===null)throw Error(r(188));return i!==a?null:a}for(var o=a,c=i;;){var v=o.return;if(v===null)break;var g=v.alternate;if(g===null){if(c=v.return,c!==null){o=c;continue}break}if(v.child===g.child){for(g=v.child;g;){if(g===o)return h(v),a;if(g===c)return h(v),i;g=g.sibling}throw Error(r(188))}if(o.return!==c.return)o=v,c=g;else{for(var S=!1,E=v.child;E;){if(E===o){S=!0,o=v,c=g;break}if(E===c){S=!0,c=v,o=g;break}E=E.sibling}if(!S){for(E=g.child;E;){if(E===o){S=!0,o=g,c=v;break}if(E===c){S=!0,c=g,o=v;break}E=E.sibling}if(!S)throw Error(r(189))}}if(o.alternate!==c)throw Error(r(190))}if(o.tag!==3)throw Error(r(188));return o.stateNode.current===o?a:i}function y(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=y(a),i!==null)return i;a=a.sibling}return null}var p=Object.assign,x=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),A=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function V(a){return a===null||typeof a!="object"?null:(a=X&&a[X]||a["@@iterator"],typeof a=="function"?a:null)}var he=Symbol.for("react.client.reference");function fe(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===he?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case j:return"Fragment";case O:return"Profiler";case N:return"StrictMode";case P:return"Suspense";case M:return"SuspenseList";case Q:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case _:return"Portal";case A:return a.displayName||"Context";case D:return(a._context.displayName||"Context")+".Consumer";case C:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case $:return i=a.displayName||null,i!==null?i:fe(a.type)||"Memo";case L:i=a._payload,a=a._init;try{return fe(a(i))}catch{}}return null}var se=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Z=[],B=-1;function k(a){return{current:a}}function K(a){0>B||(a.current=Z[B],Z[B]=null,B--)}function F(a,i){B++,Z[B]=a.current,a.current=i}var ue=k(null),ve=k(null),ye=k(null),_e=k(null);function Pe(a,i){switch(F(ye,i),F(ve,a),F(ue,null),i.nodeType){case 9:case 11:a=(a=i.documentElement)&&(a=a.namespaceURI)?hw(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=hw(i),a=mw(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}K(ue),F(ue,a)}function R(){K(ue),K(ve),K(ye)}function de(a){a.memoizedState!==null&&F(_e,a);var i=ue.current,o=mw(i,a.type);i!==o&&(F(ve,a),F(ue,o))}function me(a){ve.current===a&&(K(ue),K(ve)),_e.current===a&&(K(_e),Os._currentValue=ae)}var ie,Oe;function Ce(a){if(ie===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);ie=i&&i[1]||"",Oe=-1<o.stack.indexOf(`
|
||||
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||||
`+ie+a+Oe}var Se=!1;function tt(a,i){if(!a||Se)return"";Se=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ne){var ee=ne}Reflect.construct(a,[],ce)}else{try{ce.call()}catch(ne){ee=ne}a.call(ce.prototype)}}else{try{throw Error()}catch(ne){ee=ne}(ce=a())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ne){if(ne&&ee&&typeof ne.stack=="string")return[ne.stack,ee.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),S=g[0],E=g[1];if(S&&E){var I=S.split(`
|
||||
`),J=E.split(`
|
||||
`);for(v=c=0;c<I.length&&!I[c].includes("DetermineComponentFrameRoot");)c++;for(;v<J.length&&!J[v].includes("DetermineComponentFrameRoot");)v++;if(c===I.length||v===J.length)for(c=I.length-1,v=J.length-1;1<=c&&0<=v&&I[c]!==J[v];)v--;for(;1<=c&&0<=v;c--,v--)if(I[c]!==J[v]){if(c!==1||v!==1)do if(c--,v--,0>v||I[c]!==J[v]){var le=`
|
||||
`+I[c].replace(" at new "," at ");return a.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",a.displayName)),le}while(1<=c&&0<=v);break}}}finally{Se=!1,Error.prepareStackTrace=o}return(o=a?a.displayName||a.name:"")?Ce(o):""}function De(a,i){switch(a.tag){case 26:case 27:case 5:return Ce(a.type);case 16:return Ce("Lazy");case 13:return a.child!==i&&i!==null?Ce("Suspense Fallback"):Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 15:return tt(a.type,!1);case 11:return tt(a.type.render,!1);case 1:return tt(a.type,!0);case 31:return Ce("Activity");default:return""}}function Tn(a){try{var i="",o=null;do i+=De(a,o),o=a,a=a.return;while(a);return i}catch(c){return`
|
||||
Error generating stack: `+c.message+`
|
||||
`+c.stack}}var mr=Object.prototype.hasOwnProperty,bn=e.unstable_scheduleCallback,re=e.unstable_cancelCallback,Me=e.unstable_shouldYield,Le=e.unstable_requestPaint,H=e.unstable_now,pe=e.unstable_getCurrentPriorityLevel,T=e.unstable_ImmediatePriority,be=e.unstable_UserBlockingPriority,Re=e.unstable_NormalPriority,mt=e.unstable_LowPriority,Kt=e.unstable_IdlePriority,Yt=e.log,Ea=e.unstable_setDisableYieldValue,pi=null,Dn=null;function ka(a){if(typeof Yt=="function"&&Ea(a),Dn&&typeof Dn.setStrictMode=="function")try{Dn.setStrictMode(pi,a)}catch{}}var Pn=Math.clz32?Math.clz32:B3,R3=Math.log,L3=Math.LN2;function B3(a){return a>>>=0,a===0?32:31-(R3(a)/L3|0)|0}var $u=256,Iu=262144,Ru=4194304;function gi(a){var i=a&42;if(i!==0)return i;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Lu(a,i,o){var c=a.pendingLanes;if(c===0)return 0;var v=0,g=a.suspendedLanes,S=a.pingedLanes;a=a.warmLanes;var E=c&134217727;return E!==0?(c=E&~g,c!==0?v=gi(c):(S&=E,S!==0?v=gi(S):o||(o=E&~a,o!==0&&(v=gi(o))))):(E=c&~g,E!==0?v=gi(E):S!==0?v=gi(S):o||(o=c&~a,o!==0&&(v=gi(o)))),v===0?0:i!==0&&i!==v&&(i&g)===0&&(g=v&-v,o=i&-i,g>=o||g===32&&(o&4194048)!==0)?i:v}function Bo(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function U3(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xg(){var a=Ru;return Ru<<=1,(Ru&62914560)===0&&(Ru=4194304),a}function Sh(a){for(var i=[],o=0;31>o;o++)i.push(a);return i}function Uo(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function H3(a,i,o,c,v,g){var S=a.pendingLanes;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=o,a.entangledLanes&=o,a.errorRecoveryDisabledLanes&=o,a.shellSuspendCounter=0;var E=a.entanglements,I=a.expirationTimes,J=a.hiddenUpdates;for(o=S&~o;0<o;){var le=31-Pn(o),ce=1<<le;E[le]=0,I[le]=-1;var ee=J[le];if(ee!==null)for(J[le]=null,le=0;le<ee.length;le++){var ne=ee[le];ne!==null&&(ne.lane&=-536870913)}o&=~ce}c!==0&&Fg(a,c,0),g!==0&&v===0&&a.tag!==0&&(a.suspendedLanes|=g&~(S&~i))}function Fg(a,i,o){a.pendingLanes|=i,a.suspendedLanes&=~i;var c=31-Pn(i);a.entangledLanes|=i,a.entanglements[c]=a.entanglements[c]|1073741824|o&261930}function Zg(a,i){var o=a.entangledLanes|=i;for(a=a.entanglements;o;){var c=31-Pn(o),v=1<<c;v&i|a[c]&i&&(a[c]|=i),o&=~v}}function Wg(a,i){var o=i&-i;return o=(o&42)!==0?1:Nh(o),(o&(a.suspendedLanes|i))!==0?0:o}function Nh(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Ah(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Qg(){var a=te.p;return a!==0?a:(a=window.event,a===void 0?32:Iw(a.type))}function Jg(a,i){var o=te.p;try{return te.p=a,i()}finally{te.p=o}}var Ca=Math.random().toString(36).slice(2),Jt="__reactFiber$"+Ca,wn="__reactProps$"+Ca,yl="__reactContainer$"+Ca,Oh="__reactEvents$"+Ca,q3="__reactListeners$"+Ca,K3="__reactHandles$"+Ca,ex="__reactResources$"+Ca,Ho="__reactMarker$"+Ca;function Eh(a){delete a[Jt],delete a[wn],delete a[Oh],delete a[q3],delete a[K3]}function pl(a){var i=a[Jt];if(i)return i;for(var o=a.parentNode;o;){if(i=o[yl]||o[Jt]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(a=ww(a);a!==null;){if(o=a[Jt])return o;a=ww(a)}return i}a=o,o=a.parentNode}return null}function gl(a){if(a=a[Jt]||a[yl]){var i=a.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return a}return null}function qo(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error(r(33))}function xl(a){var i=a[ex];return i||(i=a[ex]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Gt(a){a[Ho]=!0}var tx=new Set,nx={};function xi(a,i){bl(a,i),bl(a+"Capture",i)}function bl(a,i){for(nx[a]=i,a=0;a<i.length;a++)tx.add(i[a])}var Y3=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C
Line truncated
|
||||
`).replace(j4,"")}function dw(a,i){return i=cw(i),cw(a)===i}function rt(a,i,o,c,v,g){switch(o){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||jl(a,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&jl(a,""+c);break;case"className":Uu(a,"class",c);break;case"tabIndex":Uu(a,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Uu(a,o,c);break;case"style":dx(a,c,g);break;case"data":if(i!=="object"){Uu(a,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||o!=="href")){a.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(o);break}c=qu(""+c),a.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){a.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(o==="formAction"?(i!=="input"&&rt(a,i,"name",v.name,v,null),rt(a,i,"formEncType",v.formEncType,v,null),rt(a,i,"formMethod",v.formMethod,v,null),rt(a,i,"formTarget",v.formTarget,v,null)):(rt(a,i,"encType",v.encType,v,null),rt(a,i,"method",v.method,v,null),rt(a,i,"target",v.target,v,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(o);break}c=qu(""+c),a.setAttribute(o,c);break;case"onClick":c!=null&&(a.onclick=Vr);break;case"onScroll":c!=null&&Ue("scroll",a);break;case"onScrollEnd":c!=null&&Ue("scrollend",a);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(o=c.__html,o!=null){if(v.children!=null)throw Error(r(60));a.innerHTML=o}}break;case"multiple":a.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":a.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){a.removeAttribute("xlink:href");break}o=qu(""+c),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(o,""+c):a.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(o,""):a.removeAttribute(o);break;case"capture":case"download":c===!0?a.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(o,c):a.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?a.setAttribute(o,c):a.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?a.removeAttribute(o):a.setAttribute(o,c);break;case"popover":Ue("beforetoggle",a),Ue("toggle",a),Bu(a,"popover",c);break;case"xlinkActuate":Gr(a,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Gr(a,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Gr(a,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Gr(a,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Gr(a,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Gr(a,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Gr(a,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Gr(a,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Gr(a,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Bu(a,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=Z3.get(o)||o,Bu(a,o,c))}}function gv(a,i,o,c,v,g){switch(o){case"style":dx(a,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(o=c.__html,o!=null){if(v.children!=null)throw Error(r(60));a.innerHTML=o}}break;case"children":typeof c=="string"?jl(a,c):(typeof c=="number"||typeof c=="bigint")&&jl(a,""+c);break;case"onScroll":c!=null&&Ue("scroll",a);break;case"onScrollEnd":c!=null&&Ue("scrollend",a);break;case"onClick":c!=null&&(a.onclick=Vr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const mM=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vM=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ej=e=>{const t=vM(e);return t.charAt(0).toUpperCase()+t.slice(1)},XN=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),yM=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var pM={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const gM=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:s,iconNode:d,...f},h)=>b.createElement("svg",{ref:h,...pM,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:XN("lucide",l),...!s&&!yM(f)&&{"aria-hidden":"true"},...f},[...d.map(([m,y])=>b.createElement(m,y)),...Array.isArray(s)?s:[s]]));/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ae=(e,t)=>{const n=b.forwardRef(({className:r,...l},s)=>b.createElement(gM,{ref:s,iconNode:t,className:XN(`lucide-${mM(ej(e))}`,`lucide-${e}`,r),...l}));return n.displayName=ej(e),n};/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const xM=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],tj=Ae("activity",xM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const bM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ay=Ae("arrow-right",bM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const wM=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],da=Ae("bot",wM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const jM=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],FN=Ae("box",jM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _M=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ks=Ae("check",_M);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const SM=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],NM=Ae("chevron-down",SM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const AM=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],OM=Ae("chevron-left",AM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const EM=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],kM=Ae("chevron-right",EM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const CM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],nj=Ae("circle-alert",CM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const MM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],TM=Ae("circle-check",MM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const DM=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],PM=Ae("circle-dashed",DM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const zM=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],rj=Ae("clock",zM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $M=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],Jc=Ae("cloud-upload",$M);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const IM=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],aj=Ae("code",IM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const RM=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ij=Ae("copy-plus",RM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const LM=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],BM=Ae("copy",LM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const UM=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Oy=Ae("credit-card",UM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const HM=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],qM=Ae("database",HM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const KM=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],YM=Ae("dollar-sign",KM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const GM=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ZN=Ae("external-link",GM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const VM=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ys=Ae("eye-off",VM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const XM=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],so=Ae("eye",XM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const FM=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],lj=Ae("file-text",FM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ZM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],oj=Ae("image",ZM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const WM=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Ey=Ae("key",WM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const QM=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],ky=Ae("layers",QM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const JM=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],eT=Ae("layout-dashboard",JM);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const tT=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],nT=Ae("link-2",tT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const rT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ai=Ae("loader-circle",rT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const aT=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],sj=Ae("lock-keyhole",aT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const iT=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],lT=Ae("lock",iT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oT=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],sT=Ae("log-out",oT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const uT=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],cT=Ae("mail",uT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const dT=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Bi=Ae("message-square",dT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const fT=[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],Cy=Ae("package-check",fT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const hT=[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],Hv=Ae("package-plus",hT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const mT=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],WN=Ae("package",mT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const vT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],bd=Ae("pen",vT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const yT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],el=Ae("plus",yT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const pT=[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],gT=Ae("power-off",pT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const xT=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],My=Ae("power",xT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const bT=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],qv=Ae("qr-code",bT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const wT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],cr=Ae("refresh-cw",wT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const jT=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],va=Ae("save",jT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _T=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ST=Ae("search",_T);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const NT=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],$p=Ae("settings",NT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const AT=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],QN=Ae("shield-check",AT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const OT=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],JN=Ae("shopping-bag",OT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ET=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],uj=Ae("shopping-cart",ET);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const kT=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ip=Ae("sparkles",kT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const CT=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Rp=Ae("square-pen",CT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const MT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],li=Ae("trash-2",MT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const TT=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],DT=Ae("trending-up",TT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const PT=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],Fs=Ae("truck",PT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const zT=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],$T=Ae("upload",zT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const IT=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],RT=Ae("user-round",IT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const LT=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ty=Ae("user",LT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const BT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],eA=Ae("users",BT);/**
|
||||
* @license lucide-react v0.562.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const UT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fn=Ae("x",UT),HT=({activeTab:e,setActiveTab:t,onLogout:n})=>{const r=[{id:"dashboard",icon:eT,label:"仪表盘"},{id:"accounts",icon:eA,label:"账号管理"},{id:"orders",icon:JN,label:"订单管理"},{id:"cards",icon:Oy,label:"卡密库存"},{id:"items",icon:FN,label:"商品列表"},{id:"keywords",icon:Bi,label:"自动化规则"},{id:"settings",icon:$p,label:"系统与AI"}];return u.jsxs("div",{className:"w-64 h-screen fixed left-0 top-0 bg-white border-r border-gray-100 flex flex-col justify-between z-20 shadow-[4px_0_24px_rgba(0,0,0,0.02)]",children:[u.jsxs("div",{className:"p-6",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-12 px-2",children:[u.jsx("div",{className:"w-10 h-10 bg-[#0094f7] squircle flex items-center justify-center shrink-0 p-1.5",style:{filter:"drop-shadow(0 4px 12px rgba(0,148,247,0.25))"},children:u.jsx("img",{src:"/static/ydisks-logo.svg",alt:"Ydisks",className:"w-full h-full"})}),u.jsxs("h1",{className:"text-xl font-extrabold tracking-tight text-gray-900",children:["Ydisks闲鱼助手 ",u.jsx("span",{className:"text-xs bg-[#0094f7] text-white px-1.5 py-0.5 rounded ml-1",children:"PRO"})]})]}),u.jsx("nav",{className:"space-y-2",children:r.map(l=>{const s=l.icon,d=e===l.id;return u.jsxs("button",{onClick:()=>t(l.id),className:`w-full flex items-center gap-3 px-4 py-3.5 rounded-2xl transition-all duration-300 group relative overflow-hidden ${d?"bg-[#0094f7] text-white font-bold shadow-lg shadow-blue-100 transform scale-[1.02]":"text-gray-500 hover:bg-gray-50 hover:text-gray-900"}`,children:[u.jsx(s,{className:`w-5 h-5 transition-colors ${d?"text-white":"text-gray-400 group-hover:text-gray-600"}`}),u.jsx("span",{className:"text-sm tracking-wide",children:l.label}),d&&u.jsx(Ip,{className:"w-4 h-4 absolute right-3 text-white/30 animate-pulse"})]},l.id)})})]}),u.jsx("div",{className:"p-6 border-t border-gray-50",children:u.jsxs("button",{onClick:n,className:"w-full flex items-center gap-3 px-4 py-3 text-gray-500 hover:text-red-500 hover:bg-red-50 rounded-2xl transition-all duration-200 font-medium",children:[u.jsx(sT,{className:"w-5 h-5"}),u.jsx("span",{className:"text-sm",children:"退出登录"})]})})]})},qT=e=>{if(!e)return"";const t=new URLSearchParams;for(const[r,l]of Object.entries(e))l!=null&&t.set(r,String(l));const n=t.toString();return n?`?${n}`:""},kf=async(e,t,n={})=>{const r=qT(n.params),l=`${t}${r}`,s=await fetch(l,{method:e,credentials:"include",headers:{...n.body===void 0?{}:{"Content-Type":"application/json"}},body:n.body===void 0?void 0:JSON.stringify(n.body)}),f=(s.headers.get("content-type")||"").includes("application/json");if(!s.ok){const h=f?await s.json().catch(()=>{}):await s.text().catch(()=>{}),m=typeof h=="string"?h:(h==null?void 0:h.detail)||(h==null?void 0:h.message)||(h==null?void 0:h.msg);throw new Error(m||`请求失败: ${s.status}`)}return f?await s.json():await s.text()},zt=async(e,t)=>kf("GET",e,{params:t}),sn=async(e,t)=>kf("POST",e,{body:t}),mn=async(e,t)=>kf("PUT",e,{body:t}),Oo=async(e,t)=>kf("DELETE",e,{params:t}),tA=async(e,t)=>{const n=await fetch(e,{method:"POST",credentials:"include",body:t}),s=(n.headers.get("content-type")||"").includes("application/json")?await n.json().catch(()=>{}):await n.text().catch(()=>{});if(!n.ok){const d=typeof s=="string"?s:(s==null?void 0:s.detail)||(s==null?void 0:s.message)||(s==null?void 0:s.msg),f=new Error(d||"请求失败: "+n.status);throw f.payload=s,f}return s},KT=async e=>sn("/login",e),nA=async()=>zt("/verify"),YT=async e=>mn("/account/credentials",e),GT=async(e,t)=>sn("/cookies",{id:e,value:t}),VT=(e,t)=>{const n=e.avatar_url||"";if(!n)return"";try{const r=new URL(n,window.location.origin);return r.hostname.endsWith("alicdn.com")&&r.searchParams.set("_v",t),r.toString()}catch{return n}},Lp=async()=>{const e=await zt("/cookies/details"),t=Date.now().toString();return e.map(n=>({id:n.id,value:"",cookie:"",enabled:n.enabled,auto_confirm:n.auto_confirm,remark:n.remark,note:n.remark,pause_duration:n.pause_duration,username:n.username||"",login_password:"",show_browser:n.show_browser,nickname:n.nickname||n.remark||`账号 ${n.id.substring(0,6)}`,avatar_url:VT(n,t),profile_error:n.profile_error||"",ai_enabled:!1}))},XT=async()=>zt("/cookies/runtime-status"),FT=async()=>sn("/qr-login/generate"),ZT=async e=>zt(`/qr-login/check/${e}`),WT=async(e,t)=>mn(`/cookies/${e}/status`,{enabled:t}),QT=async e=>Oo(`/cookies/${e}`),JT=async(e,t)=>mn(`/cookies/${e}/remark`,{remark:t}),eD=async(e,t)=>mn(`/cookies/${e}/auto-confirm`,{auto_confirm:t}),tD=async(e,t)=>mn(`/cookies/${e}/pause-duration`,{pause_duration:t}),cj=async(e,t)=>mn(`/cookies/${e}`,{id:e,value:t}),nD=async e=>sn(`/cookies/${e}/refresh-profile`,{}),rD=async(e,t)=>mn(`/cookies/${e}/login-info`,t),aD=async()=>zt("/ai-reply-settings"),dj=async(e,t,n=1,r=20)=>{const l={page:n,page_size:r};t&&t!=="all"&&(l.status=t);const s=await zt("/api/orders",l),f=(s.ordLine truncated
|
||||
A`).concat(s,",").concat(s,",0,1,1,").concat(2*d,",").concat(l,`
|
||||
H`).concat(or,"M").concat(2*d,",").concat(l,`
|
||||
A`).concat(s,",").concat(s,",0,1,1,").concat(d,",").concat(l),className:"recharts-legend-icon"});if(h==="rect")return b.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(or/8,"h").concat(or,"v").concat(or*3/4,"h").concat(-or,"z"),className:"recharts-legend-icon"});if(b.isValidElement(t.legendIcon)){var m=MA({},t);return delete m.legendIcon,b.cloneElement(t.legendIcon,m)}return b.createElement(kA,{fill:f,cx:l,cy:l,size:or,sizeType:"diameter",type:h})}function t6(e){var t=e.payload,n=e.iconSize,r=e.layout,l=e.formatter,s=e.inactiveColor,d=e.iconType,f=e.labelStyle,h={x:0,y:0,width:or,height:or},m={display:r==="horizontal"?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((p,x)=>{var w=p.formatter||l,_=We({"recharts-legend-item":!0,["legend-item-".concat(x)]:!0,inactive:p.inactive});if(p.type==="none")return null;var j=typeof f=="object"?MA({},f):{};j.color=p.inactive?s:j.color||p.color;var N=w?w(p.value,p,x):p.value;return b.createElement("li",zd({className:_,style:m,key:"legend-item-".concat(x)},yu(e,p,x)),b.createElement(Up,{width:n,height:n,viewBox:h,style:y,"aria-label":"".concat(p.value," legend icon")},b.createElement(e6,{data:p,iconType:d,inactiveColor:s})),b.createElement("span",{className:"recharts-legend-item-text",style:j},N))})}var n6=e=>{var t=Zt(e,QP),n=t.payload,r=t.layout,l=t.align;if(!n||!n.length)return null;var s={padding:0,margin:0,textAlign:r==="horizontal"?l:"left"};return b.createElement("ul",{className:"recharts-default-legend",style:s},b.createElement(t6,zd({},t,{payload:n})))};function r6(e,t){const n=new Map;for(let r=0;r<e.length;r++){const l=e[r],s=t(l,r,e);n.has(s)||n.set(s,l)}return Array.from(n.values())}function a6(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function TA(e){return e}function i6(e){return function(t){return Ir(t,e)}}function Uy(e){return e==null||typeof e!="object"&&typeof e!="function"}function l6(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function o6(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Xp(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const s6="[object RegExp]",DA="[object String]",PA="[object Number]",zA="[object Boolean]",$A="[object Arguments]",u6="[object Symbol]",c6="[object Date]",d6="[object Map]",f6="[object Set]",h6="[object Array]",m6="[object ArrayBuffer]",v6="[object Object]",y6="[object DataView]",p6="[object Uint8Array]",g6="[object Uint8ClampedArray]",x6="[object Uint16Array]",b6="[object Uint32Array]",w6="[object Int8Array]",j6="[object Int16Array]",_6="[object Int32Array]",S6="[object Float32Array]",N6="[object Float64Array]",_j=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function A6(e){return typeof _j.Buffer<"u"&&_j.Buffer.isBuffer(e)}function O6(e,t){return Yi(e,void 0,e,new Map,t)}function Yi(e,t,n,r=new Map,l=void 0){const s=l==null?void 0:l(e,t,n,r);if(s!==void 0)return s;if(Uy(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const d=new Array(e.length);r.set(e,d);for(let f=0;f<e.length;f++)d[f]=Yi(e[f],f,n,r,l);return Object.hasOwn(e,"index")&&(d.index=e.index),Object.hasOwn(e,"input")&&(d.input=e.input),d}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const d=new RegExp(e.source,e.flags);return d.lastIndex=e.lastIndex,d}if(e instanceof Map){const d=new Map;r.set(e,d);for(const[f,h]of e)d.set(f,Yi(h,f,n,r,l));return d}if(e instanceof Set){const d=new Set;r.set(e,d);for(const f of e)d.add(Yi(f,void 0,n,r,l));return d}if(A6(e))return e.subarray();if(l6(e)){const d=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,d);for(let f=0;f<e.length;f++)d[f]=Yi(e[f],f,n,r,l);return d}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const d=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,d),gr(d,e,n,r,l),d}if(typeof File<"u"&&e instanceof File){const d=new File([e],e.name,{type:e.type});return r.set(e,d),gr(d,e,n,r,l),d}if(typeof Blob<"u"&&e instanceof Blob){const d=new Blob([e],{type:e.type});return r.set(e,d),gr(d,e,n,r,l),d}if(e instanceof Error){const d=structuredClone(e);return r.set(e,d),d.message=e.message,d.name=e.name,d.stack=e.stack,d.cause=e.cause,d.constructor=e.constructor,gr(d,e,n,r,l),d}if(e instanceof Boolean){const d=new Boolean(e.valueOf());return r.set(e,d),gr(d,e,n,r,l),d}if(e instanceof Number){const d=new Number(e.valueOf());return r.set(e,d),gr(d,e,n,r,l),d}if(e instanceof String){const d=new String(e.valueOf());return r.set(e,d),gr(d,e,n,r,l),d}if(typeof e=="object"&&E6(e)){const d=Object.create(Object.getPrototypeOf(e));return r.set(e,d),gr(d,e,n,r,l),d}return e}function gr(e,t,n=e,r,l){const s=[...Object.keys
Line truncated
|
||||
* @license React
|
||||
* use-sync-external-store-shim.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Nj;function K6(){if(Nj)return Fv;Nj=1;var e=Ao();function t(p,x){return p===x&&(p!==0||1/p===1/x)||p!==p&&x!==x}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,l=e.useEffect,s=e.useLayoutEffect,d=e.useDebugValue;function f(p,x){var w=x(),_=r({inst:{value:w,getSnapshot:x}}),j=_[0].inst,N=_[1];return s(function(){j.value=w,j.getSnapshot=x,h(j)&&N({inst:j})},[p,w,x]),l(function(){return h(j)&&N({inst:j}),p(function(){h(j)&&N({inst:j})})},[p]),d(w),w}function h(p){var x=p.getSnapshot;p=p.value;try{var w=x();return!n(p,w)}catch{return!0}}function m(p,x){return x()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:f;return Fv.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,Fv}var Aj;function Y6(){return Aj||(Aj=1,Xv.exports=K6()),Xv.exports}/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim/with-selector.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Oj;function G6(){if(Oj)return Vv;Oj=1;var e=Ao(),t=Y6();function n(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var r=typeof Object.is=="function"?Object.is:n,l=t.useSyncExternalStore,s=e.useRef,d=e.useEffect,f=e.useMemo,h=e.useDebugValue;return Vv.useSyncExternalStoreWithSelector=function(m,y,p,x,w){var _=s(null);if(_.current===null){var j={hasValue:!1,value:null};_.current=j}else j=_.current;_=f(function(){function O(M){if(!D){if(D=!0,A=M,M=x(M),w!==void 0&&j.hasValue){var $=j.value;if(w($,M))return C=$}return C=M}if($=C,r(A,M))return $;var L=x(M);return w!==void 0&&w($,L)?(A=M,$):(A=M,C=L)}var D=!1,A,C,P=p===void 0?null:p;return[function(){return O(y())},P===null?void 0:function(){return O(P())}]},[y,p,x,w]);var N=l(m,_[0],_[1]);return d(function(){j.hasValue=!0,j.value=N},[N]),h(N),N},Vv}var Ej;function V6(){return Ej||(Ej=1,Gv.exports=G6()),Gv.exports}var X6=V6(),Fp=b.createContext(null),F6=e=>e,lt=()=>{var e=b.useContext(Fp);return e?e.store.dispatch:F6},jd=()=>{},Z6=()=>jd,W6=(e,t)=>e===t;function xe(e){var t=b.useContext(Fp),n=b.useMemo(()=>t?r=>{if(r!=null)return e(r)}:jd,[t,e]);return X6.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Z6,t?t.store.getState:jd,t?t.store.getState:jd,n,W6)}function Q6(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function J6(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var kj=e=>Array.isArray(e)?e:[e];function ez(e){const t=Array.isArray(e[0])?e[0]:e;return J6(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function tz(e,t){const n=[],{length:r}=e;for(let l=0;l<r;l++)n.push(e[l].apply(null,t));return n}var nz=class{constructor(e){this.value=e}deref(){return this.value}},rz=()=>typeof WeakRef>"u"?nz:WeakRef,KA=rz(),az=0,Cj=1;function nd(){return{s:az,v:void 0,o:null,p:null}}function iz(e){return e instanceof KA?e.deref():e}function YA(e,t={}){let n=nd();const{resultEqualityCheck:r}=t;let l,s=0;function d(){let f=n;const{length:h}=arguments;for(let p=0,x=h;p<x;p++){const w=arguments[p];if(typeof w=="function"||typeof w=="object"&&w!==null){let _=f.o;_===null&&(f.o=_=new WeakMap);const j=_.get(w);j===void 0?(f=nd(),_.set(w,f)):f=j}else{let _=f.p;_===null&&(f.p=_=new Map);const j=_.get(w);j===void 0?(f=nd(),_.set(w,f)):f=j}}const m=f;let y;if(f.s===Cj)y=f.v;else if(y=e.apply(null,arguments),s++,r){const p=iz(l);p!=null&&r(p,y)&&(y=p,s!==0&&s--),l=typeof y=="object"&&y!==null||typeof y=="function"?new KA(y):y}return m.s=Cj,m.v=y,y}return d.clearCache=()=>{n=nd(),d.resetResultsCount()},d.resultsCount=()=>s,d.resetResultsCount=()=>{s=0},d}function lz(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...l)=>{let s=0,d=0,f,h={},m=l.pop();typeof m=="object"&&(h=m,m=l.pop()),Q6(m,`createSelector expects an output function after the inputs, but received: [${typeof m}]`);const y={...n,...h},{memoize:p,memoizeOptions:x=[],argsMemoize:w=YA,argsMemoizeOptions:_=[]}=y,j=kj(x),N=kj(_),O=ez(l),D=p(function(){return s++,m.apply(null,arguments)},...j),A=w(function(){d++;const P=tz(O,arguments);return f=D.apply(null,P),f},...N);return Object.assign(A,{resultFunc:m,memoizedResultFunc:D,dependencies:O,dependencyRecomputations:()=>d,resetDependencyRecomputations:()=>{d=0},lastResult:()=>f,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:p,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var G=lz(YA);function oz(e,t=1){const n=[],r=Math.floor(t),l=(s,d)=>{for(let f=0;f<s.length;f++){const h=s[f];Array.isArray(h)&&d<r?l(h,d+1):n.push(h)}};return l(e,0),n}function qy(e,t,n){return IA(n)&&(typeof t=="number"&&HA(n)&&UA(t)&&t<n.length||typeof t=="string"&&t in n)?wd(n[t],e):!1}function Mj(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const sz=(e,t,n)=>{if(e!==t){const r=Mj(e),l=Mj(t);if(r===l&&r===0){if(e<t)return n==="desc"?1:-1;if(e>t)return n==="desc"?-1:1}return n==="desc"?l-r:r-l}return 0};function GA(e){return typeof e=="symbol"||e instanceof Symbol}const uz=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cz=/^\w*$/;function dz(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||GA(e)?!0:typeof e=="string"&&(cz.test(e)||!uz.test(e))||t!=null}function fz(e,t,n,r){if(e==null)return[];n=n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(f=>String(f));const l=(f,h)=>{let m=f;for(let y=0;y<h.length&&m!=null;++y)m=m[h[y]];return m},s=(f,h)=>h==null||f==null?h:typeof f=="object"&&"key"in f?Object.hasOwn(h,f.key)?h[f.key]:l(h,f.path):typeof f=="function"?f(h):Array.isArray(f)?l(h,f):typeof h=="object"?h[f]:h,d=t.map(f=>(Array.isArray(f)&&f.length===1&&(f=f[0]),f==nullLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xz(e,t){if(e){if(typeof e=="string")return Tj(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tj(e,t):void 0}}function Tj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bz(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function wz(e){if(Array.isArray(e))return e}var rd=1;function Dj(e,t){return Math.abs(e.height-t.height)>rd||Math.abs(e.left-t.left)>rd||Math.abs(e.top-t.top)>rd||Math.abs(e.width-t.width)>rd}function Pj(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function XA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=b.useState({height:0,left:0,top:0,width:0}),n=pz(t,2),r=n[0],l=n[1],s=b.useRef(null),d=b.useRef(r);d.current=r;var f=b.useCallback(h=>{if(s.current!=null&&(s.current.disconnect(),s.current=null),h!=null){var m=Pj(h);if(Dj(m,d.current)&&l(m),typeof ResizeObserver<"u"){var y=new ResizeObserver(()=>{var p=Pj(h);Dj(p,d.current)&&l(p)});y.observe(h),s.current=y}}},[...e]);return b.useEffect(()=>()=>{var h;(h=s.current)===null||h===void 0||h.disconnect()},[]),[r,f]}function an(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var jz=typeof Symbol=="function"&&Symbol.observable||"@@observable",zj=jz,Zv=()=>Math.random().toString(36).substring(7).split("").join("."),_z={INIT:`@@redux/INIT${Zv()}`,REPLACE:`@@redux/REPLACE${Zv()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Zv()}`},$d=_z;function Zp(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function FA(e,t,n){if(typeof e!="function")throw new Error(an(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(an(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(an(1));return n(FA)(e,t)}let r=e,l=t,s=new Map,d=s,f=0,h=!1;function m(){d===s&&(d=new Map,s.forEach((N,O)=>{d.set(O,N)}))}function y(){if(h)throw new Error(an(3));return l}function p(N){if(typeof N!="function")throw new Error(an(4));if(h)throw new Error(an(5));let O=!0;m();const D=f++;return d.set(D,N),function(){if(O){if(h)throw new Error(an(6));O=!1,m(),d.delete(D),s=null}}}function x(N){if(!Zp(N))throw new Error(an(7));if(typeof N.type>"u")throw new Error(an(8));if(typeof N.type!="string")throw new Error(an(17));if(h)throw new Error(an(9));try{h=!0,l=r(l,N)}finally{h=!1}return(s=d).forEach(D=>{D()}),N}function w(N){if(typeof N!="function")throw new Error(an(10));r=N,x({type:$d.REPLACE})}function _(){const N=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(an(11));function D(){const C=O;C.next&&C.next(y())}return D(),{unsubscribe:N(D)}},[zj](){return this}}}return x({type:$d.INIT}),{dispatch:x,subscribe:p,getState:y,replaceReducer:w,[zj]:_}}function Sz(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:$d.INIT})>"u")throw new Error(an(12));if(typeof n(void 0,{type:$d.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(an(13))})}function ZA(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const d=t[s];typeof e[d]=="function"&&(n[d]=e[d])}const r=Object.keys(n);let l;try{Sz(n)}catch(s){l=s}return function(d={},f){if(l)throw l;let h=!1;const m={};for(let y=0;y<r.length;y++){const p=r[y],x=n[p],w=d[p],_=x(w,f);if(typeof _>"u")throw f&&f.type,new Error(an(14));m[p]=_,h=h||_!==w}return h=h||r.length!==Object.keys(d).length,h?m:d}}function Id(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Nz(...e){return t=>(n,r)=>{const l=t(n,r);let s=()=>{throw new Error(an(15))};const d={getState:l.getState,dispatch:(h,...m)=>s(h,...m)},f=e.map(h=>h(d));return s=Id(...f)(l.dispatch),{...l,dispatch:s}}}function WA(e){return Zp(e)&&"type"in e&&typeof e.type=="string"}var QA=Symbol.for("immer-nothing"),$j=Symbol.for("immer-draftable"),xn=Symbol.for("immer-state");function xr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var qn=Object,yo=qn.getPrototypeOf,Rd="constructor",Pf="prototype",Ky="configurable",Ld="enumerable",_d="writable",tu="value",ga=e=>!!e&&!!e[xn];function _r(e){var t;return e?JA(e)||$f(e)||!!e[$j]||!!((t=e[Rd])!=null&&t
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cI(e,t){if(e){if(typeof e=="string")return i2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i2(e,t):void 0}}function i2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function fI(e){if(Array.isArray(e))return e}function hI(e,t){if(e==null)return{};var n,r,l=mI(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function mI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var TO=b.createContext(Dr.initialDimension);function vI(e){return Lr(e.width)&&Lr(e.height)}function DO(e){var t=e.children,n=e.width,r=e.height,l=b.useMemo(()=>({width:n,height:r}),[n,r]);return vI(l)?b.createElement(TO.Provider,{value:l},t):null}var r0=()=>b.useContext(TO),yI=b.forwardRef((e,t)=>{var n=e.aspect,r=e.initialDimension,l=r===void 0?Dr.initialDimension:r,s=e.width,d=e.height,f=e.minWidth,h=f===void 0?Dr.minWidth:f,m=e.minHeight,y=e.maxHeight,p=e.children,x=e.debounce,w=x===void 0?Dr.debounce:x,_=e.id,j=e.className,N=e.onResize,O=e.style,D=O===void 0?{}:O,A=hI(e,aI),C=b.useRef(null),P=b.useRef();P.current=N,b.useImperativeHandle(t,()=>C.current);var M=b.useState({containerWidth:l.width,containerHeight:l.height}),$=sI(M,2),L=$[0],Q=$[1],z=b.useCallback((q,te)=>{Q(ae=>{var Z=Math.round(q),B=Math.round(te);return ae.containerWidth===Z&&ae.containerHeight===B?ae:{containerWidth:Z,containerHeight:B}})},[]);b.useEffect(()=>{if(C.current==null||typeof ResizeObserver>"u")return dl;var q=k=>{var K,F=k[0];if(F!=null){var ue=F.contentRect,ve=ue.width,ye=ue.height;z(ve,ye),(K=P.current)===null||K===void 0||K.call(P,ve,ye)}};w>0&&(q=W$(q,w,{trailing:!0,leading:!1}));var te=new ResizeObserver(q),ae=C.current.getBoundingClientRect(),Z=ae.width,B=ae.height;return z(Z,B),te.observe(C.current),()=>{te.disconnect()}},[z,w]);var X=L.containerWidth,V=L.containerHeight;Gd(!n||n>0,"The aspect(%s) must be greater than zero.",n);var he=MO(X,V,{width:s,height:d,aspect:n,maxHeight:y}),fe=he.calculatedWidth,se=he.calculatedHeight;return Gd(X<0||V<0||fe!=null&&fe>0||se!=null&&se>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
||||
please check the style of container, or the props width(%s) and height(%s),
|
||||
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
||||
height and width.`,fe,se,s,d,h,m,n),b.createElement("div",Vd({id:_?"".concat(_):void 0,className:We("recharts-responsive-container",j),style:a2(a2({},D),{},{width:s,height:d,minWidth:h,minHeight:m,maxHeight:y}),ref:C},A),b.createElement("div",{style:nI({width:s,height:d})},b.createElement(DO,{width:fe,height:se},p)))}),Ds=b.forwardRef((e,t)=>{var n=r0();if(Lr(n.width)&&Lr(n.height))return e.children;var r=rI({width:e.width,height:e.height,aspect:e.aspect}),l=r.width,s=r.height,d=MO(void 0,void 0,{width:l,height:s,aspect:e.aspect,maxHeight:e.maxHeight}),f=d.calculatedWidth,h=d.calculatedHeight;return ge(f)&&ge(h)?b.createElement(DO,{width:f,height:h},e.children):b.createElement(yI,Vd({},e,{width:l,height:s,ref:t}))});function a0(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Xf=()=>{var e,t=yn(),n=xe(V$),r=xe(Vf),l=(e=xe(Gf))===null||e===void 0?void 0:e.padding;return!t||!r||!l?n:{width:r.width-l.left-l.right,height:r.height-l.top-l.bottom,x:l.left,y:l.top}},pI={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},PO=()=>{var e;return(e=xe(Ut))!==null&&e!==void 0?e:pI},i0=()=>xe(ja),l0=()=>xe(_a),gI=()=>xe(e=>e.layout.margin),Ge=e=>e.layout.layoutType,fl=()=>xe(Ge),o0=()=>{var e=fl();if(e==="horizontal"||e==="vertical")return e},s0=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},xI=()=>xe(s0),bI=()=>{var e=fl();return e!==void 0},bu=e=>{var t=lt(),n=yn(),r=e.width,l=e.height,s=r0(),d=r,f=l;return s&&(d=s.width>0?s.width:r,f=s.height>0?s.height:l),b.useEffect(()=>{!n&&Lr(d)&&Lr(f)&&t(b$({width:d,height:f}))},[t,n,d,f]),null},zO=Symbol.for("immer-nothing"),l2=Symbol.for("immer-draftable"),Vn=Symbol.for("immer-state");function br(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var au=Object.getPrototypeOf;function go(e){return!!e&&!!e[Vn]}function il(e){var t;return e?$O(e)||Array.isArray(e)||!!e[l2]||!!((t=e.constructor)!=null&&t[l2])||wu(e)||Zf(e):!1}var wI=Object.prototype.constructor.toString(),o2=new WeakMap;function $O(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=o2.get(n);return r===void 0&&(r=Function.toString.call(n),o2.set(n,r)),r===wI}function Xd(e,t,n=!0){Ff(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(l=>{t(l,e[l],e)}):e.forEach((r,l)=>t(l,r,e))}function Ff(e){const t=e[Vn];return t?t.type_:Array.isArray(e)?1:wu(e)?2:Zf(e)?3:0}function ep(e,t){return Ff(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function IO(e,t,n){const r=Ff(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function jI(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function wu(e){return e instanceof Map}function Zf(e){return e instanceof Set}function Hi(e){return e.copy_||e.base_}function tp(e,t){if(wu(e))return new Map(e);if(Zf(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=$O(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Vn];let l=Reflect.ownKeys(r);for(let s=0;s<l.length;s++){const d=l[s],f=r[d];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(r[d]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[d]})}return Object.create(au(e),r)}else{const r=au(e);if(r!==null&&n)return{...e};const l=Object.create(r);return Object.assign(l,e)}}function u0(e,t=!1){return Wf(e)||go(e)||!il(e)||(Ff(e)>1&&Object.defineProperties(e,{set:sd,add:sd,clear:sd,delete:sd}),Object.freeze(e),t&&Object.values(e).forEach(n=>u0(n,!0))),e}function _I(){br(2)}var sd={value:_I};function Wf(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var SI={};function ll(e){const t=SI[e];return t||br(0,e),t}var iu;function RO(){return iu}function NI(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function s2(e,t){t&&(ll("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function np(e){rp(e),e.drafts_.forEach(AI),e.drafts_=null}function rp(e){e===iu&&(iu=e.parent_)}function u2(e){return iu=NI(iu,e)}function AI(e){const t=e[Vn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function c2(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Vn].modified_&&(np(t),br(4)),il(e)&&(e=Fd(t,e),t.parent_||Zd(t,e)),t.patches_&&ll("Patches").generateReplacementPatches_(n[Vn].base_,e,t.patches_,t.inversePatches_)):e=Fd(t,n,[]),np(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==zO?e:void 0}function Fd(e,t,n){if(Wf(t))return t;const r=e.immer_.shouldUseStrictIteration(),l=t[Vn];if(!l)return Xd(t,(s,d)=>d2(e,l,t,s,d,n),r),t;if(l.scope_!==e)return t;if(!l.modified_)return Zd(e,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDraft
Line truncated
|
||||
* @license React
|
||||
* use-sync-external-store-with-selector.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var h2;function zI(){if(h2)return ny;h2=1;var e=Ao();function t(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,l=e.useRef,s=e.useEffect,d=e.useMemo,f=e.useDebugValue;return ny.useSyncExternalStoreWithSelector=function(h,m,y,p,x){var w=l(null);if(w.current===null){var _={hasValue:!1,value:null};w.current=_}else _=w.current;w=d(function(){function N(P){if(!O){if(O=!0,D=P,P=p(P),x!==void 0&&_.hasValue){var M=_.value;if(x(M,P))return A=M}return A=P}if(M=A,n(D,P))return M;var $=p(P);return x!==void 0&&x(M,$)?(D=P,M):(D=P,A=$)}var O=!1,D,A,C=y===void 0?null:y;return[function(){return N(m())},C===null?void 0:function(){return N(C())}]},[m,y,p,x]);var j=r(h,w[0],w[1]);return s(function(){_.hasValue=!0,_.value=j},[j]),f(j),j},ny}var m2;function $I(){return m2||(m2=1,ty.exports=zI()),ty.exports}$I();function II(e){e()}function RI(){let e=null,t=null;return{clear(){e=null,t=null},notify(){II(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const l=t={callback:n,next:null,prev:t};return l.prev?l.prev.next=l:e=l,function(){!r||e===null||(r=!1,l.next?l.next.prev=l.prev:t=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var v2={notify(){},get:()=>[]};function LI(e,t){let n,r=v2,l=0,s=!1;function d(j){y();const N=r.subscribe(j);let O=!1;return()=>{O||(O=!0,N(),p())}}function f(){r.notify()}function h(){_.onStateChange&&_.onStateChange()}function m(){return s}function y(){l++,n||(n=e.subscribe(h),r=RI())}function p(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=v2)}function x(){s||(s=!0,y())}function w(){s&&(s=!1,p())}const _={addNestedSub:d,notifyNestedSubs:f,handleChangeWrapper:h,isSubscribed:m,trySubscribe:x,tryUnsubscribe:w,getListeners:()=>r};return _}var BI=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UI=BI(),HI=()=>typeof navigator<"u"&&navigator.product==="ReactNative",qI=HI(),KI=()=>UI||qI?b.useLayoutEffect:b.useEffect,YI=KI();function y2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function GI(e,t){if(y2(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let l=0;l<n.length;l++)if(!Object.prototype.hasOwnProperty.call(t,n[l])||!y2(e[n[l]],t[n[l]]))return!1;return!0}var ry=Symbol.for("react-redux-context"),ay=typeof globalThis<"u"?globalThis:{};function VI(){if(!b.createContext)return{};const e=ay[ry]??(ay[ry]=new Map);let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var XI=VI();function FI(e){const{children:t,context:n,serverState:r,store:l}=e,s=b.useMemo(()=>{const h=LI(l);return{store:l,subscription:h,getServerState:r?()=>r:void 0}},[l,r]),d=b.useMemo(()=>l.getState(),[l]);YI(()=>{const{subscription:h}=s;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),d!==l.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[s,d]);const f=n||XI;return b.createElement(f.Provider,{value:s},t)}var ZI=FI,WI=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function QI(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function ko(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(WI.has(r)){if(e[r]==null&&t[r]==null)continue;if(!GI(e[r],t[r]))return!1}else if(!QI(e[r],t[r]))return!1;return!0}var JI=["contextPayload"];function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lp.apply(null,arguments)}function e8(e,t){return a8(e)||r8(e,t)||n8(e,t)||t8()}function t8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n8(e,t){if(e){if(typeof e=="string")return p2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p2(e,t):void 0}}function p2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function a8(e){if(Array.isArray(e))return e}function g2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function xo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g2(Object(n),!0).forEach(function(r){i8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i8(e,t,n){return(t=l8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l8(e){var t=o8(e,"string");return typeof t=="symbol"?t:t+""}function o8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s8(e,t){if(e==null)return{};var n,r,l=u8(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function u8(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function c8(e){return e.value}function d8(e){var t=e.contextPayload,n=s8(e,JI),r=qA(t,e.payloadUniqBy,c8),l=xo(xo({},n),{},{payload:r});return b.isValidElement(e.content)?b.cloneElement(e.content,l):typeof e.content=="function"?b.createElement(e.content,l):b.createElement(n6,l)}function f8(e,t,n,r,l,s){var d=t.layout,f=t.align,h=t.verticalAlign,m,y;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(f==="center"&&d==="vertical"?m={left:((r||0)-s.width)/2}:m=f==="right"?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(h==="middle"?y={top:((l||0)-s.height)/2}:y=h==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),xo(xo({},m),y)}function h8(e){var t=e.align,n=e.layout,r=e.verticalAlign,l=e.itemSorter,s=lt();return b.useLayoutEffect(()=>{s(DI({align:t,layout:n,verticalAlign:r,itemSorter:l}))},[s,t,n,r,l]),null}function m8(e){var t=e.width,n=e.height,r=lt();return b.useLayoutEffect(()=>{r(f2({width:t,height:n}))},[r,t,n]),b.useLayoutEffect(()=>()=>{r(f2({width:0,height:0}))},[r]),null}function v8(e,t,n,r){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:n||r}:null}var y8={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",labelStyle:{},layout:"horizontal",verticalAlign:"bottom"};function p8(e){var t=Zt(e,y8),n=yz(),r=WD(),l=gI(),s=t.width,d=t.height,f=t.wrapperStyle,h=t.portal,m=XA([n]),y=e8(m,2),p=y[0],x=y[1],w=i0(),_=l0();if(w==null||_==null)return null;var j=w-((l==null?void 0:l.left)||0)-((l==null?void 0:l.right)||0),N=v8(t.layout,d,s,j),O=h?f:xo(xo({position:"absolute",width:(N==null?void 0:N.width)||s||"auto",height:(N==null?void 0:N.height)||d||"auto"},f8(f,t,l,w,_,p)),f),D=h??r;if(D==null||n==null)return null;var A=b.createElement("div",{className:"recharts-legend-wrapper",style:O,ref:x},b.createElement(h8,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!h&&b.createElement(m8,{width:p.width,height:p.height}),b.createElement(d8,lp({},t,N,{margin:l,chartWidth:w,chartHeight:_,contextPayload:n})));return Bt.createPortal(A,D)}var YO=b.memo(p8,ko);YO.displayName="Legend";function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},op.apply(null,arguments)}function x2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x2(Object(n),!0).forEach(func
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _8(e,t){if(e){if(typeof e=="string")return b2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b2(e,t):void 0}}function b2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function N8(e){if(Array.isArray(e))return e}function A8(e){return Array.isArray(e)&&Rr(e[0])&&Rr(e[1])?e.join(" ~ "):e}var eo={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function O8(e,t){return t==null?e:Df(e,t)}var E8=e=>{var t=e.separator,n=t===void 0?eo.separator:t,r=e.contentStyle,l=e.itemStyle,s=e.labelStyle,d=s===void 0?eo.labelStyle:s,f=e.payload,h=e.formatter,m=e.itemSorter,y=e.wrapperClassName,p=e.labelClassName,x=e.label,w=e.labelFormatter,_=e.accessibilityLayer,j=_===void 0?eo.accessibilityLayer:_,N=()=>{if(f&&f.length){var L={padding:0,margin:0},Q=O8(f,m),z=Q.map((X,V)=>{if(!X||X.type==="none")return null;var he=X.formatter||h||A8,fe=X.value,se=X.name,q=fe,te=se;if(he){var ae=he(fe,se,X,V,f);if(Array.isArray(ae)){var Z=w8(ae,2);q=Z[0],te=Z[1]}else if(ae!=null)q=ae;else return null}var B=Ps(Ps({},eo.itemStyle),{},{color:X.color||eo.itemStyle.color},l);return b.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(V),style:B},Rr(te)?b.createElement("span",{className:"recharts-tooltip-item-name"},te):null,Rr(te)?b.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,b.createElement("span",{className:"recharts-tooltip-item-value"},q),b.createElement("span",{className:"recharts-tooltip-item-unit"},X.unit||""))});return b.createElement("ul",{className:"recharts-tooltip-item-list",style:L},z)}return null},O=Ps(Ps({},eo.contentStyle),r),D=Ps({margin:0},d),A=!gt(x),C=A?x:"",P=We("recharts-default-tooltip",y),M=We("recharts-tooltip-label",p);A&&w&&f!==void 0&&f!==null&&(C=w(x,f));var $=j?{role:"status","aria-live":"assertive"}:{};return b.createElement("div",op({className:P,style:O},$),b.createElement("p",{className:M,style:D},b.isValidElement(C)?C:"".concat(C)),N())},zs="recharts-tooltip-wrapper",k8={visibility:"hidden"};function C8(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return We(zs,{["".concat(zs,"-right")]:ge(n)&&t&&ge(t.x)&&n>=t.x,["".concat(zs,"-left")]:ge(n)&&t&&ge(t.x)&&n<t.x,["".concat(zs,"-bottom")]:ge(r)&&t&&ge(t.y)&&r>=t.y,["".concat(zs,"-top")]:ge(r)&&t&&ge(t.y)&&r<t.y})}function w2(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,l=e.offset,s=e.position,d=e.reverseDirection,f=e.tooltipDimension,h=e.viewBox,m=e.viewBoxDimension;if(s&&ge(s[r]))return s[r];var y=n[r]-f-(l>0?l:0),p=n[r]+l;if(t[r])return d[r]?y:p;var x=h[r];if(x==null)return 0;if(d[r]){var w=y,_=x;return w<_?Math.max(p,x):Math.max(y,x)}if(m==null)return 0;var j=p+f,N=x+m;return j>N?Math.max(y,x):Math.max(p,x)}function M8(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function T8(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTop,l=e.offsetLeft,s=e.position,d=e.reverseDirection,f=e.tooltipBox,h=e.useTranslate3d,m=e.viewBox,y,p,x;return f.height>0&&f.width>0&&n?(p=w2({allowEscapeViewBox:t,coordinate:n,key:"x",offset:l,position:s,reverseDirection:d,tooltipDimension:f.width,viewBox:m,viewBoxDimension:m.width}),x=w2({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:s,reverseDirection:d,tooltipDimension:f.height,viewBox:m,viewBoxDimension:m.height}),y=M8({translateX:p,translateY:x,useTranslate3d:h})):y=k8,{cssProperties:y,cssClasses:C8({translateX:p,translateY:x,coordinate:n})}}var D8=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),_u={isSsr:D8()};function P8(e,t){return R8(e)||I8(e,t)||$8(e,t)||z8()}function z8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $8(e,t){if(e){if(typeof e=="string")return j2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j2(e,t):void 0}}function j2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function I8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function R8(e){if(Array.isArray(e))return e}function GO(){var e=b.useState(()=>_u.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches),t=P8(e,2),n=t[0],r=t[1];return b.useEffect(()=>{if(window.matchMedia){var l=window.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>{r(l.matches)};return l.addEventListener("change",s),()=>{l.removeEventListener("change",s)}}},[]),n}function _2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function to(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_2(Object(n),!0).forEach(function(r){L8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L8(e,t,n){return(t=B8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B8(e){var t=U8(e,"string");return typeof t=="symbol"?t:t+""}function U8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H8(e,t){return G8(e)||Y8(e,t)||K8(e,t)||q8()}function q8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K8(e,t){if(e){if(typeof e=="string")return S2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S2(e,t):void 0}}function S2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Y8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function G8(e){if(Array.isArray(e))return e}function V8(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active){var t=typeof e.animationEasing=="string"?e.animationEasing:"ease";return"transform ".concat(e.animationDuration,"ms ").concat(t)}}function X8(e){var t,n,r,l,s,d,f=GO(),h=b.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}})),m=H8(h,2),y=m[0],p=m[1];b.useEffect(()=>{var O=D=>{if(D.key==="Escape"){var A,C,P,M;p({dismissed:!0,dismissedAtCoordinate:{x:(A=(C=e.coordinate)===null||C===void 0?void 0:C.x)!==null&&A!==void 0?A:0,y:(P=(M=e.coordinate)===null||M===void 0?void 0:M.y)!==null&&P!==void 0?P:0}})}};return document.addEventListener("keydown",O),()=>{document.removeEventListener("keydown",O)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(n=e.coordinate)===null||n===void 0?void 0:n.y]),y.dismissed&&(((r=(l=e.coordinate)===null||l===void 0?void 0:l.x)!==null&&r!==void 0?r:0)!==y.dismissedAtCoordinate.x||((s=(d=e.coordinate)===null||d===void 0?void 0:d.y)!==null&&s!==void 0?s:0)!==y.dismissedAtCoordinate.y)&&p(to(to({},y),{},{dismissed:!1}));var x=T8({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),w=x.cssClasses,_=x.cssProperties,j=e.hasPortalFromProps?{}:to(to({transition:V8({prefersReducedMotion:f,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},_),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),N=to(to({},j),{},{visibility:!y.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return b.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:w,style:N,ref:e.innerRef},e.children)}var F8=b.memo(X8),VO=()=>{var e;return(e=xe(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function sp(){return sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sp.apply(null,arguments)}function N2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function A2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N2(Object(n),!0).forEach(function(r){Z8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z8(e,t,n){return(t=W8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W8(e){var t=Q8(e,"string");return typeof t=="symbol"?t:t+""}function Q8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O2={curveBasisClosed:yP,curveBasisOpen:pP,curveBasis:vP,curveBumpX:tP,curveBumpY:nP,curveLinearClosed:gP,curveLinear:Mf,curveMonotoneX:xP,curveMonotoneY:bP,curveNatural:wP,curveStep:jP,curveStepAfter:SP,curveStepBefore:_P},Wd=e=>Ie(e.x)&&Ie(e.y),E2=e=>e.base!=null&&Wd(e.base)&&Wd(e),$s=e=>e.x,Is=e=>e.y,J8=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(vu(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=O2["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return O2[n]||Mf},k2={connectNulls:!1,type:"linear"},eR=e=>{var t=e.type,n=t===void 0?k2.type:t,r=e.points,l=r===void 0?[]:r,s=e.baseLine,d=e.layout,f=e.connectNulls,h=f===void 0?k2.connectNulls:f,m=J8(n,d),y=h?l.filter(Wd):l;if(Array.isArray(s)){var p,x=l.map((O,D)=>A2(A2({},O),{},{base:s[D]}));d==="vertical"?p=td().y(Is).x1($s).x
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ER(e,t){if(e){if(typeof e=="string")return $2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$2(e,t):void 0}}function $2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kR(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function CR(e){if(Array.isArray(e))return e}var MR={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},I2=0,ly=1;function WO(e){var t=Zt(e,MR),n=t.animationId,r=t.isActive,l=t.canBegin,s=t.duration,d=t.easing,f=t.begin,h=t.onAnimationEnd,m=t.onAnimationStart,y=t.children,p=GO(),x=r==="auto"?!_u.isSsr&&!p:r,w=gR(t.animationController),_=b.useState(x?I2:ly),j=AR(_,2),N=j[0],O=j[1];return b.useEffect(()=>{x||O(ly)},[x]),b.useEffect(()=>{var D=yR(d);if(!x||!l||D==null)return dl;var A=new NR,C=new SR({animationId:n,easing:D,animationDuration:s,animationBegin:f,onAnimationStart:m,onAnimationEnd:h,from:I2,to:ly});return w(A,C,O)},[w,n,x,l,s,d,f,m,h]),y(Number(N))}function QO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=b.useRef(eu(t)),r=b.useRef(e);return r.current!==e&&(n.current=eu(t),r.current=e),n.current}var TR=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),DR=(e,t,n)=>e.map(r=>"".concat(TR(r)," ").concat(t,"ms ").concat(n)).join(","),PR=["radius"],zR=["radius"],R2,L2,B2,U2,H2,q2,K2,Y2,G2,V2;function X2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function F2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X2(Object(n),!0).forEach(function(r){$R(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $R(e,t,n){return(t=IR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IR(e){var t=RR(e,"string");return typeof t=="symbol"?t:t+""}function RR(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jd.apply(null,arguments)}function Z2(e,t){if(e==null)return{};var n,r,l=LR(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function LR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function BR(e,t){return KR(e)||qR(e,t)||HR(e,t)||UR()}function UR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HR(e,t){if(e){if(typeof e=="string")return W2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W2(e,t):void 0}}function W2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qR(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function KR(e){if(Array.isArray(e))return e}function Cr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Q2=(e,t,n,r,l)=>{var s=oi(n),d=oi(r),f=Math.min(Math.abs(s)/2,Math.abs(d)/2),h=d>=0?1:-1,m=s>=0?1:-1,y=d>=0&&s>=0||d<0&&s<0?1:0,p;if(f>0&&Array.isArray(l)){for(var x=[0,0,0,0],w=0,_=4;w<_;w++){var j,N=(j=l[w])!==null&&j!==void 0?j:0;x[w]=N>f?f:N}p=ln(R2||(R2=Cr(["M",",",""])),e,t+h*x[0]),x[0]>0&&(p+=ln(L2||(L2=Cr(["A ",",",",0,0,",",",",",""])),x[0],x[0],y,e+m*x[0],t)),p+=ln(B2||(B2=Cr(["L ",",",""])),e+n-m*x[1],t),x[1]>0&&(p+=ln(U2||(U2=Cr(["A ",",",",0,0,",`,
|
||||
`,",",""])),x[1],x[1],y,e+n,t+h*x[1])),p+=ln(H2||(H2=Cr(["L ",",",""])),e+n,t+r-h*x[2]),x[2]>0&&(p+=ln(q2||(q2=Cr(["A ",",",",0,0,",`,
|
||||
`,",",""])),x[2],x[2],y,e+n-m*x[2],t+r)),p+=ln(K2||(K2=Cr(["L ",",",""])),e+m*x[3],t+r),x[3]>0&&(p+=ln(Y2||(Y2=Cr(["A ",",",",0,0,",`,
|
||||
`,",",""])),x[3],x[3],y,e,t+r-h*x[3])),p+="Z"}else if(f>0&&l===+l&&l>0){var O=Math.min(f,l);p=ln(G2||(G2=Cr(["M ",",",`
|
||||
A `,",",",0,0,",",",",",`
|
||||
L `,",",`
|
||||
A `,",",",0,0,",",",",",`
|
||||
L `,",",`
|
||||
A `,",",",0,0,",",",",",`
|
||||
L `,",",`
|
||||
A `,",",",0,0,",",",","," Z"])),e,t+h*O,O,O,y,e+m*O,t,e+n-m*O,t,O,O,y,e+n,t+h*O,e+n,t+r-h*O,O,O,y,e+n-m*O,t+r,e+m*O,t+r,O,O,y,e,t+r-h*O)}else p=ln(V2||(V2=Cr(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return p},J2={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},JO=e=>{var t=Zt(e,J2),n=b.useRef(null),r=b.useState(-1),l=BR(r,2),s=l[0],d=l[1];b.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var ae=n.current.getTotalLength();ae&&d(ae)}catch{}},[]);var f=t.x,h=t.y,m=t.width,y=t.height,p=t.radius,x=t.className,w=t.animationEasing,_=t.animationDuration,j=t.animationBegin,N=t.isAnimationActive,O=t.isUpdateAnimationActive,D=b.useRef(m),A=b.useRef(y),C=b.useRef(f),P=b.useRef(h),M=b.useMemo(()=>({x:f,y:h,width:m,height:y,radius:p}),[f,h,m,y,p]),$=QO(M,"rectangle-");if(f!==+f||h!==+h||m!==+m||y!==+y||m===0||y===0)return null;var L=We("recharts-rectangle",x);if(!O){var Q=Yn(t);Q.radius;var z=Z2(Q,PR);return b.createElement("path",Jd({},z,{x:oi(f),y:oi(h),width:oi(m),height:oi(y),radius:typeof p=="number"?p:void 0,className:L,d:Q2(f,h,m,y,p)}))}var X=D.current,V=A.current,he=C.current,fe=P.current,se="0px ".concat(s===-1?1:s,"px"),q="".concat(s,"px ").concat(s,"px"),te=DR(["strokeDasharray"],_,typeof w=="string"?w:J2.animationEasing);return b.createElement(WO,{animationId:$,key:$,canBegin:s>0,duration:_,easing:w,isActive:O,begin:j},ae=>{var Z=jt(X,m,ae),B=jt(V,y,ae),k=jt(he,f,ae),K=jt(fe,h,ae);n.current&&(D.current=Z,A.current=B,C.current=k,P.current=K);var F;N?ae>0?F={transition:te,strokeDasharray:q}:F={strokeDasharray:se}:F={strokeDasharray:q};var ue=Yn(t);ue.radius;var ve=Z2(ue,zR);return b.createElement("path",Jd({},ve,{radius:typeof p=="number"?p:void 0,className:L,d:Q2(k,K,Z,B,p),ref:n,style:F2(F2({},F),t.style)}))})};function e_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function t_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e_(Object(n),!0).forEach(function(r){YR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YR(e,t,n){return(t=GR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GR(e){var t=VR(e,"string");return typeof t=="symbol"?t:t+""}function VR(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ef=Math.PI/180,XR=e=>e*180/Math.PI,Tt=(e,t,n,r)=>({x:e+Math.cos(-ef*r)*n,y:t+Math.sin(-ef*r)*n}),eE=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},FR=(e,t)=>{var n=e.x,r=e.y,l=t.x,s=t.y;return Math.sqrt((n-l)**2+(r-s)**2)},ZR=(e,t)=>{var n=e.x,r=e.y,l=t.cx,s=t.cy,d=FR({x:n,y:r},{x:l,y:s});if(d<=0)return{radius:d,angle:0};var f=(n-l)/d,h=Math.acos(f);return r>s&&(h=2*Math.PI-h),{radius:d,angle:XR(h),angleInRadian:h}},WR=e=>{var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),l=Math.floor(n/360),s=Math.min(r,l);return{startAngle:t-s*360,endAngle:n-s*360}},QR=(e,t)=>{var n=t.startAngle,r=t.endAngle,l=Math.floor(n/360),s=Math.floor(r/360),d=Math.min(l,s);return e+d*360},JR=(e,t)=>{var n=e.relativeX,r=e.relativeY,l=ZR({x:n,y:r},t),s=l.radius,d=l.angle,f=t.innerRadius,h=t.outerRadius;if(s<f||s>h||s===0)return null;var m=WR(t),y=m.startAngle,p=m.endAngle,x=d,w;if(y<=p){for(;x>p;)x-=360;for(;x<y;)x+=360;w=x>=y&&x<=p}else{for(;x>y;)x-=360;for(;x<p;)x+=360;w=x>=p&&x<=y}return w?t_(t_({},t),{},{radius:s,angle:QR(x,t)}):null};function tE(e){var t=e.cx,n=e.cy,r=e.radius,l=e.startAngle,s=e.endAngle,d=Tt(t,n,r,l),f=Tt(t,n,r,s);return{points:[d,f],cx:t,cy:n,radius:r,startAngle:l,endAngle:s}}var n_,r_,a_,i_,l_,o_,s_;function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cp.apply(null,arguments)}function Gi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var e7=(e,t)=>{var n=Ft(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},ud=e=>{var t=e.cx,n=e.cy,r=e.radius,l=e.angle,s=e.sign,d=e.isExternal,f=e.cornerRadius,h=e.cornerIsExternal,m=f*(d?1:-1)+r,y=Math.asin(f/m)/ef,p=h?l:l+s*y,x=Tt(t,n,m,p),w=Tt(t,n,r,p),_=h?l-s*y:l,j=Tt(t,n,m*Math.cos(y*ef),_);return{center:x,circleTangency:w,lineTangency:j,theta:y}},nE=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,l=e
Line truncated
|
||||
A `,",",`,0,
|
||||
`,",",`,
|
||||
`,",",`
|
||||
`])),m.x,m.y,l,l,+(Math.abs(f)>180),+(s>h),y.x,y.y);if(r>0){var x=Tt(t,n,r,s),w=Tt(t,n,r,h);p+=ln(r_||(r_=Gi(["L ",",",`
|
||||
A `,",",`,0,
|
||||
`,",",`,
|
||||
`,","," Z"])),w.x,w.y,r,r,+(Math.abs(f)>180),+(s<=h),x.x,x.y)}else p+=ln(a_||(a_=Gi(["L ",","," Z"])),t,n);return p},t7=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,l=e.outerRadius,s=e.cornerRadius,d=e.forceCornerRadius,f=e.cornerIsExternal,h=e.startAngle,m=e.endAngle,y=Ft(m-h),p=ud({cx:t,cy:n,radius:l,angle:h,sign:y,cornerRadius:s,cornerIsExternal:f}),x=p.circleTangency,w=p.lineTangency,_=p.theta,j=ud({cx:t,cy:n,radius:l,angle:m,sign:-y,cornerRadius:s,cornerIsExternal:f}),N=j.circleTangency,O=j.lineTangency,D=j.theta,A=f?Math.abs(h-m):Math.abs(h-m)-_-D;if(A<0)return d?ln(i_||(i_=Gi(["M ",",",`
|
||||
a`,",",",0,0,1,",`,0
|
||||
a`,",",",0,0,1,",`,0
|
||||
`])),w.x,w.y,s,s,s*2,s,s,-s*2):nE({cx:t,cy:n,innerRadius:r,outerRadius:l,startAngle:h,endAngle:m});var C=ln(l_||(l_=Gi(["M ",",",`
|
||||
A`,",",",0,0,",",",",",`
|
||||
A`,",",",0,",",",",",",",`
|
||||
A`,",",",0,0,",",",",",`
|
||||
`])),w.x,w.y,s,s,+(y<0),x.x,x.y,l,l,+(A>180),+(y<0),N.x,N.y,s,s,+(y<0),O.x,O.y);if(r>0){var P=ud({cx:t,cy:n,radius:r,angle:h,sign:y,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),M=P.circleTangency,$=P.lineTangency,L=P.theta,Q=ud({cx:t,cy:n,radius:r,angle:m,sign:-y,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),z=Q.circleTangency,X=Q.lineTangency,V=Q.theta,he=f?Math.abs(h-m):Math.abs(h-m)-L-V;if(he<0&&s===0)return"".concat(C,"L").concat(t,",").concat(n,"Z");C+=ln(o_||(o_=Gi(["L",",",`
|
||||
A`,",",",0,0,",",",",",`
|
||||
A`,",",",0,",",",",",",",`
|
||||
A`,",",",0,0,",",",",","Z"])),X.x,X.y,s,s,+(y<0),z.x,z.y,r,r,+(he>180),+(y>0),M.x,M.y,s,s,+(y<0),$.x,$.y)}else C+=ln(s_||(s_=Gi(["L",",","Z"])),t,n);return C},n7={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},rE=e=>{var t=Zt(e,n7),n=t.cx,r=t.cy,l=t.innerRadius,s=t.outerRadius,d=t.cornerRadius,f=t.forceCornerRadius,h=t.cornerIsExternal,m=t.startAngle,y=t.endAngle,p=t.className;if(s<l||m===y)return null;var x=We("recharts-sector",p),w=s-l,_=hn(d,w,0,!0),j;return _>0&&Math.abs(m-y)<360?j=t7({cx:n,cy:r,innerRadius:l,outerRadius:s,cornerRadius:Math.min(_,w/2),forceCornerRadius:f,cornerIsExternal:h,startAngle:m,endAngle:y}):j=nE({cx:n,cy:r,innerRadius:l,outerRadius:s,startAngle:m,endAngle:y}),b.createElement("path",cp({},Yn(t),{className:x,d:j}))};function r7(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(CA(t)){if(e==="centric"){var r=t.cx,l=t.cy,s=t.innerRadius,d=t.outerRadius,f=t.angle,h=Tt(r,l,s,f),m=Tt(r,l,d,f);return[{x:h.x,y:h.y},{x:m.x,y:m.y}]}return tE(t)}}function a7(e){return GA(e)?NaN:Number(e)}function oy(e){return e?(e=a7(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function aE(e,t,n){n&&typeof n!="number"&&qy(e,t,n)&&(t=n=void 0),e=oy(e),t===void 0?(t=e,e=0):t=oy(t),n=n===void 0?e<t?1:-1:oy(n);const r=Math.max(Math.ceil((t-e)/(n||1)),0),l=new Array(r);for(let s=0;s<r;s++)l[s]=e,e+=n;return l}var Nr=e=>e.chartData,Su=G([Nr],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Qf=(e,t,n,r)=>r?Su(e):Nr(e),iE=(e,t,n)=>n?Su(e):Nr(e),i7=G([Qf],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]}),l7=G([Su],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]}),o7=G([Nr],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]});function d0(e,t){return d7(e)||c7(e,t)||u7(e,t)||s7()}function s7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u7(e,t){if(e){if(typeof e=="string")return u_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u_(e,t):void 0}}function u_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function d7(e){if(Array.isArray(e))return e}function zr(e){if(Array.isArray(e)&&e.length===2){var t=d0(e,2),n=t[0],r=t[1];if(Ie(n)&&Ie(r))return!0}return!1}function c_(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function lE(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var n=d0(e,2),r=n[0],l=n[1],s,d;if(Ie(r))s=r;else if(typeof r=="function")return;if(Ie(l))d=l;else if(typeof l=="function")return;var f=[s,d];if(zr(f))return f}}function f7(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(zr(r))return c_(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var l=d0(e,2),s=l[0],d=l[1],f,h;if(s==="auto")t!=null&&(f=Math.min(...t));else if(ge(s))f=s;else if(typeof s=="function")try{t!=null&&(f=s(t==null?void 0:t[0]))}catch{}else if(typeof s=="string"&&Jj.test(s)){var m=Jj.exec(s);if(m==null||m[1]==null||t==null)f=void 0;else{var y=+m[1];f=t[0]-y}}else f=t==null?void 0:t[0];if(d==="auto")t!=null&&(h=Math.max(...t));else if(ge(d))h=d;else if(typeof d=="function")try{t!=null&&(h=d(t==null?void 0:t[1]))}catch{}else if(typeof d=="string"&&e2.test(d)){var p=e2.exec(d);if(p==null||p[1]==null||t==null)h=void 0;else{var x=+p[1];h=t[1]+x}}else h=t==null?void 0:t[1];var w=[f,h];if(zr(w))return t==null?w:c_(w,t,n)}}}var Co=1e9,h7={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},h0,pt=!0,dr="[DecimalError] ",Wi=dr+"Invalid argument: ",f0=dr+"Exponent out of range: ",Mo=Math.floor,qi=Math.pow,m7=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Hn,Xt=1e7,ht=7,oE=9007199254740991,tf=Mo(oE/ht),we={};we.absoluteValue=we.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};we.comparedTo=we.cmp=function(e){var t,n,r,l,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,l=e.d.length,t=0,n=r<l?r:l;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===l?0:r>l^s.s<0?1:-1};we.decimalPlaces=we.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ht;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};we.dividedBy=we.div=function(e){return ya(this,new this.constructor(e))};we.dividedToIntegerBy=we.idiv=function(e){var t=this,n=t.constructor;return st(ya(t,new n(e),0,1),n.precision)};we.equals=we.eq=function(e){return!this.cmp(e)};we.exponent=function(){return Pt(this)};we.greaterThan=we.gt=function(e){return this.cmp(e)>0};we.greaterThanOrEqualTo=we.gte=function(e){return this.cmp(e)>=0};we.isInteger=we.isint=function(){return this.e>this.d.length-2};we.isNegative=we.isneg=function(){return this.s<0};we.isPositive=we.ispos=function(){return this.s>0};we.isZero=function(){return this.s===0};we.lessThan=we.lt=function(e){return this.cmp(e)<0};we.lessThanOrEqualTo=we.lte=function(e){return this.cmp(e)<1};we.logarithm=we.log=function(e){var t,n=this,r=n.constructor,l=r.precision,s=l+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Hn))throw Error(dr+"NaN");if(n.s<1)throw Error(dr+(n.s?"NaN":"-Infinity"));return n.eq(Hn)?new r(0):(pt=!1,t=ya(ou(n,s),ou(e,s),s),pt=!0,st(t,l))};we.minus=we.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cE(t,e):sE(t,(e.s=-e.s,e))};we.modulo=we.mod=function(e){var t,n=this,r=n.constructor,l=r.precision;if(e=new r(e),!e.s)throw Error(dr+"NaN");return n.s?(pt=!1,t=ya(n,e,0,1).times(e),pt=!0,n.minus(t)):st(new r(n),l)};we.naturalExponential=we.exp=function(){return uE(this)};we.naturalLogarithm=we.ln=function(){return ou(this)};we.negated=we.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};we.plus=we.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?sE(t,e):cE(t,(e.s=-e.s,e))};we.precision=we.sd=function(e){var t,n,r,l=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Wi+e);if(t=Pt(l)+1,r=l.d.length-1,n=r*ht+1,r=l.d[r],r){for(;r%10==0;r/=10)n--;for(r=l.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};we.squareRoot=we.sqrt=function(){var e,t,n,r,l,s,d,f=this,h=f.constructor;if(f.s<1){if(!f.s)return new h(0);throw Error(dr+"NaN")}for(e=Pt(f),pt=!1,l=Math.sqrt(+f),l==0||l==1/0?(t=Pr(f.d),(t.len
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p7(e,t){if(e){if(typeof e=="string")return h_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h_(e,t):void 0}}function h_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function x7(e){if(Array.isArray(e))return e}var mE=e=>{var t=su(e,2),n=t[0],r=t[1],l=n,s=r;return n>r&&(l=r,s=n),[l,s]},m0=(e,t,n)=>{if(e.lte(0))return new Ye(0);var r=fE(e.toNumber()),l=new Ye(10).pow(r),s=e.div(l),d=r!==1?.05:.1,f=new Ye(Math.ceil(s.div(d).toNumber())).add(n).mul(d),h=f.mul(l);return t?new Ye(h.toNumber()):new Ye(Math.ceil(h.toNumber()))},vE=(e,t,n)=>{var r;if(e.lte(0))return new Ye(0);var l=[1,2,2.5,5],s=e.toNumber(),d=Math.floor(new Ye(s).abs().log(10).toNumber()),f=new Ye(10).pow(d),h=e.div(f).toNumber(),m=l.findIndex(w=>w>=h-1e-10);if(m===-1&&(f=f.mul(10),m=0),m+=n,m>=l.length){var y=Math.floor(m/l.length);m%=l.length,f=f.mul(new Ye(10).pow(y))}var p=(r=l[m])!==null&&r!==void 0?r:1,x=new Ye(p).mul(f);return t?x:new Ye(Math.ceil(x.toNumber()))},b7=(e,t,n)=>{var r=new Ye(1),l=new Ye(e);if(!l.isint()&&n){var s=Math.abs(e);s<1?(r=new Ye(10).pow(fE(e)-1),l=new Ye(Math.floor(l.div(r).toNumber())).mul(r)):s>1&&(l=new Ye(Math.floor(e)))}else e===0?l=new Ye(Math.floor((t-1)/2)):n||(l=new Ye(Math.floor(e)));for(var d=Math.floor((t-1)/2),f=[],h=0;h<t;h++)f.push(l.add(new Ye(h-d).mul(r)).toNumber());return f},yE=function(t,n,r,l){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:m0;if(!Number.isFinite((n-t)/(r-1)))return{step:new Ye(0),tickMin:new Ye(0),tickMax:new Ye(0)};var f=d(new Ye(n).sub(t).div(r-1),l,s),h;t<=0&&n>=0?h=new Ye(0):(h=new Ye(t).add(n).div(2),h=h.sub(new Ye(h).mod(f)));var m=Math.ceil(h.sub(t).div(f).toNumber()),y=Math.ceil(new Ye(n).sub(h).div(f).toNumber()),p=m+y+1;return p>r?yE(t,n,r,l,s+1,d):(p<r&&(y=n>0?y+(r-p):y,m=n>0?m:m+(r-p)),{step:f,tickMin:h.sub(new Ye(m).mul(f)),tickMax:h.add(new Ye(y).mul(f))})},m_=function(t){var n=su(t,2),r=n[0],l=n[1],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",h=Math.max(s,2),m=mE([r,l]),y=su(m,2),p=y[0],x=y[1];if(p===-1/0||x===1/0){var w=x===1/0?[p,...Array(s-1).fill(1/0)]:[...Array(s-1).fill(-1/0),x];return r>l?w.reverse():w}if(p===x)return b7(p,s,d);var _=f==="snap125"?vE:m0,j=yE(p,x,h,d,0,_),N=j.step,O=j.tickMin,D=j.tickMax,A=hE(O,D.add(new Ye(.1).mul(N)),N);return r>l?A.reverse():A},v_=function(t,n){var r=su(t,2),l=r[0],s=r[1],d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",h=mE([l,s]),m=su(h,2),y=m[0],p=m[1];if(y===-1/0||p===1/0)return[l,s];if(y===p)return[y];var x=f==="snap125"?vE:m0,w=Math.max(n,2),_=x(new Ye(p).sub(y).div(w-1),d,0),j=[...hE(new Ye(y),new Ye(p),_),p];return d===!1&&(j=j.map(N=>Math.round(N))),l>s?j.reverse():j},pE=e=>e.rootProps.maxBarSize,w7=e=>e.rootProps.barGap,gE=e=>e.rootProps.barCategoryGap,j7=e=>e.rootProps.barSize,Nu=e=>e.rootProps.stackOffset,xE=e=>e.rootProps.reverseStackOrder,v0=e=>e.options.chartName,y0=e=>e.rootProps.syncId,bE=e=>e.rootProps.syncMethod,p0=e=>e.options.eventEmitter,_7=e=>e.rootProps.baseValue,Dt={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},$i={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Mr={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},Jf=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function eh(e,t,n){if(n!=="auto")return n;if(e!=null)return Hr(e,t)?"category":"number"}function y_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function nf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y_(Object(n),!0).forEach(function(r){S7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}retu
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mB(e,t){if(e){if(typeof e=="string")return aS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aS(e,t):void 0}}function aS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vB(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function yB(e){if(Array.isArray(e))return e}var gp=[0,"auto"],It={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},dk=(e,t)=>e.cartesianAxis.xAxis[t],Na=(e,t)=>{var n=dk(e,t);return n??It},Rt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:gp,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:xu},fk=(e,t)=>e.cartesianAxis.yAxis[t],Aa=(e,t)=>{var n=fk(e,t);return n??Rt},pB={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},G0=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??pB},Nt=(e,t,n)=>{switch(t){case"xAxis":return Na(e,n);case"yAxis":return Aa(e,n);case"zAxis":return G0(e,n);case"angleAxis":return g0(e,n);case"radiusAxis":return x0(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},gB=(e,t,n)=>{switch(t){case"xAxis":return Na(e,n);case"yAxis":return Aa(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Po=(e,t,n)=>{switch(t){case"xAxis":return Na(e,n);case"yAxis":return Aa(e,n);case"angleAxis":return g0(e,n);case"radiusAxis":return x0(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},hk=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function V0(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var fh=e=>e.graphicalItems.cartesianItems,xB=G([xt,Au],V0),X0=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),zo=G([fh,Nt,xB],X0,{memoizeOptions:{resultEqualityCheck:ih}}),mk=G([zo],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(rh)),vk=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),bB=G([zo],vk),F0=e=>e.map(t=>t.data).filter(Boolean).flat(1),wB=G([zo],e=>e.some(t=>!t.data)),yk=G([zo],F0,{memoizeOptions:{resultEqualityCheck:ih}}),Z0=(e,t)=>{var n=t.chartData,r=n===void 0?[]:n,l=t.dataStartIndex,s=t.dataEndIndex;return e.length>0?e:r.slice(l,s+1)},W0=G([yk,Qf],Z0),pk=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:Qe(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(l=>({value:Qe(l,r)}))):e.map(r=>({value:r})),gk=(e,t,n,r,l,s)=>{var d=r.chartData,f=d===void 0?[]:d,h=r.dataStartIndex,m=r.dataEndIndex,y=pk(e,t,n);if(l&&(t==null?void 0:t.dataKey)!=null&&s.length>0){var p=f.slice(h,m+1),x=p.map(w=>({value:Qe(w,t.dataKey)})).filter(w=>w.value!=null);return[...x,...y]}return y},Mu=G([W0,Nt,zo,Qf,wB,yk],gk);function mo(e){if(Rr(e)||e instanceof Date){var t=Number(e);if(Ie(t))return t}}function iS(e){if(Array.isArray(e)){var t=[mo(e[0]),mo(e[1])];return zr(t)?t:void 0}var n=mo(e);if(n!=null)return[n,n]}function Ur(e){return e.map(mo).filter(En)}function jB(e,t){var n=mo(e),r=mo(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var _B=G([Mu],e=>e==null?void 0:e.map(t=>t.value).sort(jB));function xk(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function SB(e,t,n){if(!n)return[];if(!n.length)return[];var r;if(typeof t=="number"&&!jr(t))r=t;else if(Array.isArray(t)){var l=Ur(t);l.length>0&&(r=Math.max(...l))}return r==null?[]:Ur(n.flatMap(s=>{var d=Qe(e,s.dataKey),f,h;if(Array.isArray(d)){var m=ck(d,2);f=m[0],h=m[1]}else f=h=d;if(!(!Ie(f)||!Ie(h)))return[r-f,r+h]}))}var qt=e=>{var t=Wt(e),n=To(e);return Po(e,t,n)},_o=G([qt],e=>e==nu
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aq(e,t){if(e){if(typeof e=="string")return SS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SS(e,t):void 0}}function SS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function Eq(e){if(Array.isArray(e))return e}function kq(e){return e.dataKey}function Cq(e,t){return b.isValidElement(e)?b.cloneElement(e,t):typeof e=="function"?b.createElement(e,t):b.createElement(E8,t)}var NS=[],Mq={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function vd(e){var t,n,r=Zt(e,Mq),l=r.active,s=r.allowEscapeViewBox,d=r.animationDuration,f=r.animationEasing,h=r.content,m=r.filterNull,y=r.isAnimationActive,p=r.offset,x=r.payloadUniqBy,w=r.position,_=r.reverseDirection,j=r.useTranslate3d,N=r.wrapperStyle,O=r.cursor,D=r.shared,A=r.trigger,C=r.defaultIndex,P=r.portal,M=r.axisId,$=lt(),L=typeof C=="number"?String(C):C;b.useEffect(()=>{$(xU({shared:D,trigger:A,axisId:M,active:l,defaultIndex:L}))},[$,D,A,M,l,L]);var Q=Xf(),z=VO(),X=hU(D),V=(t=xe(me=>MH(me,X,A,L)))!==null&&t!==void 0?t:{},he=V.activeIndex,fe=V.isActive,se=xe(me=>CH(me,X,A,L)),q=xe(me=>fC(me,X,A,L)),te=xe(me=>kH(me,X,A,L)),ae=se,Z=eq(),B=(n=l??fe)!==null&&n!==void 0?n:!1,k=XA([ae,B]),K=Sq(k,2),F=K[0],ue=K[1],ve=X==="axis"?q:void 0;bq(X,A,te,ve,he,B);var ye=P??Z;if(ye==null||Q==null||X==null)return null;var _e=ae??NS;B||(_e=NS),m&&_e.length&&(_e=qA(_e.filter(me=>me.value!=null&&(me.hide!==!0||r.includeHidden)),x,kq));var Pe=_e.length>0,R=_S(_S({},r),{},{payload:_e,label:ve,active:B,activeIndex:he,coordinate:te,accessibilityLayer:z}),de=b.createElement(F8,{allowEscapeViewBox:s,animationDuration:d,animationEasing:f,isAnimationActive:y,active:B,coordinate:te,hasPayload:Pe,offset:p,position:w,reverseDirection:_,useTranslate3d:j,viewBox:Q,wrapperStyle:N,lastBoundingBox:F,innerRef:ue,hasPortalFromProps:!!P},Cq(h,R));return b.createElement(b.Fragment,null,Bt.createPortal(de,ye),B&&b.createElement(JH,{cursor:O,tooltipEventType:X,coordinate:te,payload:_e,index:he}))}var Ji=e=>null;Ji.displayName="Cell";function Tq(e,t,n){return(t=Dq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dq(e){var t=Pq(e,"string");return typeof t=="symbol"?t:t+""}function Pq(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class zq{constructor(t){Tq(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function AS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function $q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AS(Object(n),!0).forEach(function(r){Iq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iq(e,t,n){return(t=Rq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rq(e){var t=Lq(e,"string");return typeof t=="symbol"?t:t+""}function Lq(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bq={cacheSize:2e3,enableCache:!0},pC=$q({},Bq),OS=new zq(pC.cacheSize),Uq={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ES="recharts_measurement_span";function Hq(e,t){var n=t.fontSize||"",r=t.fontFamily
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kq(e,t){if(e){if(typeof e=="string")return CS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CS(e,t):void 0}}function CS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;h=!1}else for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function Gq(e){if(Array.isArray(e))return e}function Vq(e,t,n){return(t=Xq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xq(e){var t=Fq(e,"string");return typeof t=="symbol"?t:t+""}function Fq(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var MS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,TS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Zq=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,Wq=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Qq={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Jq=["cm","mm","pt","pc","in","Q","px"];function eK(e){return Jq.includes(e)}var co="NaN";function tK(e,t){return e*Qq[t]}class on{static parse(t){var n,r=(n=Wq.exec(t))!==null&&n!==void 0?n:[],l=xf(r,3),s=l[1],d=l[2];return s==null?on.NaN:new on(parseFloat(s),d??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,jr(t)&&(this.unit=""),n!==""&&!Zq.test(n)&&(this.num=NaN,this.unit=""),eK(n)&&(this.num=tK(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new on(NaN,""):new on(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new on(NaN,""):new on(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new on(NaN,""):new on(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new on(NaN,""):new on(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return jr(this.num)}}gC=on;Vq(on,"NaN",new gC(NaN,""));function xC(e){if(e==null||e.includes(co))return co;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=MS.exec(t))!==null&&n!==void 0?n:[],l=xf(r,4),s=l[1],d=l[2],f=l[3],h=on.parse(s??""),m=on.parse(f??""),y=d==="*"?h.multiply(m):h.divide(m);if(y.isNaN())return co;t=t.replace(MS,y.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,x=(p=TS.exec(t))!==null&&p!==void 0?p:[],w=xf(x,4),_=w[1],j=w[2],N=w[3],O=on.parse(_??""),D=on.parse(N??""),A=j==="+"?O.add(D):O.subtract(D);if(A.isNaN())return co;t=t.replace(TS,A.toString())}return t}var DS=/\(([^()]*)\)/;function nK(e){for(var t=e,n;(n=DS.exec(t))!=null;){var r=n,l=xf(r,2),s=l[1];t=t.replace(DS,xC(s))}return t}function rK(e){var t=e.replace(/\s+/g,"");return t=nK(t),t=xC(t),t}function aK(e){try{return rK(e)}catch{return co}}function gy(e){var t=aK(e.slice(5,-1));return t===co?"":t}var iK=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],lK=["dx","dy","angle","className","breakAll"];function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wp.apply(null,arguments)}function PS(e,t){if(e==null)return{};var n,r,l=oK(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function oK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function zS(e,t){return dK(e)||cK(e,t)||uK(e,t)||sK()}function sK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uK(e,t){if(e){if(typeof e=="string")return $S(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$S(e,t):void 0}}function $S(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;h=!1}else for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function dK(e){if(Array.isArray(e))return e}var bC=/[ \f\n\r\t\v\u2028\u2029]+/,wC=e=>{var t=e.children,n=e.breakAll,r=e.style;try{var l=[];gt(t)||(n?l=t.toString().split(""):l=t.toString().split(bC));var s=l.map(f=>({word:f,width:Qs(f,r).width})),d=n?0:Qs(" ",r).width;return{wordsWithComputedWidth:s,spaceWidth:d}}catch{return null}};function jC(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function fK(e){return gt(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var _C=(e,t,n,r)=>e.reduce((l,s)=>{var d=s.word,f=s.width,h=l[l.length-1];if(h&&f!=null&&(t==null||r||h.width+f+n<Number(t)))h.words.push(d),h.width+=f+n;else{var m={words:[d],width:f};l.push(m)}return l},[]),SC=e=>e.reduce((t,n)=>t.width>n.width?t:n),hK="…",IS=(e,t,n,r,l,s,d,f)=>{var h=e.slice(0,t),m=wC({breakAll:n,style:r,children:h+hK});if(!m)return[!1,[]];var y=_C(m.wordsWithComputedWidth,s,d,f),p=y.length>l||SC(y).width>Number(s);return[p,y]},mK=(e,t,n,r,l)=>{var s=e.maxLines,d=e.children,f=e.style,h=e.breakAll,m=ge(s),y=String(d),p=_C(t,r,n,l);if(!m||l)return p;var x=p.length>s||SC(p).width>Number(r);if(!x)return p;for(var w=0,_=y.length-1,j=0,N;w<=_&&j<=y.length-1;){var O=Math.floor((w+_)/2),D=O-1,A=IS(y,D,h,f,s,r,n,l),C=zS(A,2),P=C[0],M=C[1],$=IS(y,O,h,f,s,r,n,l),L=zS($,1),Q=L[0];if(!P&&!Q&&(w=O+1),P&&Q&&(_=O-1),!P&&Q){N=M;break}j++}return N||p},RS=e=>{var t=gt(e)?[]:e.toString().split(bC);return[{words:t,width:void 0}]},vK=e=>{var t=e.width,n=e.scaleToFit,r=e.children,l=e.style,s=e.breakAll,d=e.maxLines;if((t||n)&&!_u.isSsr){var f,h,m=wC({breakAll:s,children:r,style:l});if(m){var y=m.wordsWithComputedWidth,p=m.spaceWidth;f=y,h=p}else return RS(r);return mK({breakAll:s,children:r,maxLines:d,style:l},f,h,t,!!n)}return RS(r)},NC="#808080",yK={angle:0,breakAll:!1,capHeight:"0.71em",fill:NC,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},gh=b.forwardRef((e,t)=>{var n=Zt(e,yK),r=n.x,l=n.y,s=n.lineHeight,d=n.capHeight,f=n.fill,h=n.scaleToFit,m=n.textAnchor,y=n.verticalAnchor,p=PS(n,iK),x=b.useMemo(()=>vK({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:h,style:p.style,width:p.width}),[p.breakAll,p.children,p.maxLines,h,p.style,p.width]),w=p.dx,_=p.dy,j=p.angle,N=p.className,O=p.breakAll,D=PS(p,lK);if(!Rr(r)||!Rr(l)||x.length===0)return null;var A=Number(r)+(ge(w)?w:0),C=Number(l)+(ge(_)?_:0);if(!Ie(A)||!Ie(C))return null;var P;switch(y){case"start":P=gy("calc(".concat(d,")"));break;case"middle":P=gy("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(d," / 2))"));break;default:P=gy("calc(".concat(x.length-1," * -").concat(s,")"));break}var M=[],$=x[0];if(h&&$!=null){var L=$.width,Q=p.width;M.push("scale(".concat(ge(Q)&&ge(L)?Q/L:1,")"))}return j&&M.push("rotate(".concat(j,", ").concat(A,", ").concat(C,")")),M.length&&(D.transform=M.join(" ")),b.createElement("text",wp({},Yn(D),{ref:t,x:A,y:C,className:We("recharts-text",N),textAnchor:m,fill:f.includes("url")?NC:f}),x.map((z,X)=>{var V=z.words.join(O?"":" ");return b.createElement("tspan",{x:A,dy:X===0?P:s,key:"".concat(V,"-").concat(X)},V)}))});gh.displayName="Text";function LS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LS(Object(n),!0).forEach(function(r){pK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pK(e,t,n){return(t=gK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gK(e){var t=xK(e,"string");return typeof t=="symbol"?t:t+""}function xK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)
Line truncated
|
||||
A`).concat(_,",").concat(_,",0,1,").concat(D?0:1,`,
|
||||
`).concat(C.x,",").concat(C.y),M=gt(e.id)?eu("recharts-radial-line-"):e.id;return b.createElement("text",fa({},r,{dominantBaseline:"central",className:We("recharts-radial-bar-label",d)}),b.createElement("defs",null,b.createElement("path",{id:M,d:P})),b.createElement("textPath",{xlinkHref:"#".concat(M)},n))},DK=(e,t,n)=>{var r=e.cx,l=e.cy,s=e.innerRadius,d=e.outerRadius,f=e.startAngle,h=e.endAngle,m=(f+h)/2;if(n==="outside"){var y=Tt(r,l,d+t,m),p=y.x,x=y.y;return{x:p,y:x,textAnchor:p>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:l,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:l,textAnchor:"middle",verticalAnchor:"end"};var w=(s+d)/2,_=Tt(r,l,w,m),j=_.x,N=_.y;return{x:j,y:N,textAnchor:"middle",verticalAnchor:"middle"}},Nd=e=>e!=null&&"cx"in e&&ge(e.cx),PK={angle:0,offset:5,zIndex:Dt.label,position:"middle",textBreakAll:!1};function zK(e){if(!Nd(e))return e;var t=e.cx,n=e.cy,r=e.outerRadius,l=r*2;return{x:t-r,y:n-r,width:l,upperWidth:l,lowerWidth:l,height:l}}function ri(e){var t=Zt(e,PK),n=t.viewBox,r=t.parentViewBox,l=t.position,s=t.value,d=t.children,f=t.content,h=t.className,m=h===void 0?"":h,y=t.textBreakAll,p=t.labelRef,x=kK(),w=OC(),_=l==="center"?w:x??w,j,N,O;n==null?j=_:Nd(n)?j=n:j=a0(n);var D=zK(j);if(!j||gt(s)&>(d)&&!b.isValidElement(f)&&typeof f!="function")return null;var A=Xs(Xs({},t),{},{viewBox:j});if(b.isValidElement(f)){A.labelRef;var C=BS(A,wK);return b.cloneElement(f,C)}if(typeof f=="function"){A.content;var P=BS(A,jK);if(N=b.createElement(f,P),b.isValidElement(N))return N}else N=CK(t);var M=Yn(t);if(Nd(j)){if(l==="insideStart"||l==="insideEnd"||l==="end")return TK(t,l,N,M,j);O=DK(j,t.offset,t.position)}else{if(!D)return null;var $=bK({viewBox:D,position:l,offset:t.offset,parentViewBox:Nd(r)?void 0:r});O=Xs(Xs({x:$.x,y:$.y,textAnchor:$.horizontalAnchor,verticalAnchor:$.verticalAnchor},$.width!==void 0?{width:$.width}:{}),$.height!==void 0?{height:$.height}:{})}return b.createElement(Mn,{zIndex:t.zIndex},b.createElement(gh,fa({ref:p,className:We("recharts-label",m)},M,O,{textAnchor:jC(M.textAnchor)?M.textAnchor:O.textAnchor,breakAll:y}),N))}ri.displayName="Label";var $K=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?b.createElement(ri,fa({key:"label-implicit"},r)):Rr(e)?b.createElement(ri,fa({key:"label-implicit",value:e},r)):b.isValidElement(e)?e.type===ri?b.cloneElement(e,Xs({key:"label-implicit"},r)):b.createElement(ri,fa({key:"label-implicit",content:e},r)):jg(e)?b.createElement(ri,fa({key:"label-implicit",content:e},r)):e&&typeof e=="object"?b.createElement(ri,fa({},e,{key:"label-implicit"},r)):null};function IK(e){var t=e.label,n=e.labelRef,r=OC();return $K(t,r,n)||null}var RK=["valueAccessor"],LK=["dataKey","clockWise","id","textBreakAll","zIndex"];function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bf.apply(null,arguments)}function HS(e,t){if(e==null)return{};var n,r,l=BK(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function BK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var UK=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(fK(t))return t},EC=b.createContext(void 0),kC=EC.Provider,CC=b.createContext(void 0),HK=CC.Provider;function qK(){return b.useContext(EC)}function KK(){return b.useContext(CC)}function Ad(e){var t=e.valueAccessor,n=t===void 0?UK:t,r=HS(e,RK),l=r.dataKey;r.clockWise;var s=r.id,d=r.textBreakAll,f=r.zIndex,h=HS(r,LK),m=qK(),y=KK(),p=m||y;return!p||!p.length?null:b.createElement(Mn,{zIndex:f??Dt.label},b.createElement(St,{className:"recharts-label-list"},p.map((x,w)=>{var _,j=gt(l)?n(x,w):Qe(x.payload,l),N=gt(s)?{}:{id:"".concat(s,"-").concat(w)};return b.createElement(ri,bf({key:"label-".concat(w)},Yn(x),h,N,{fill:(_=r.fill)!==null&&_!==void 0?_:x.fill,parentViewBox:x.parentViewBox,value:j,textBreakAll:d,viewBox:x.viewBox,index:w,zIndex:0}))})))}Ad.displayName="LabelList";function _g(e){var t=e.label;return t?t===!0?b.createElement(Ad,{key:"labelList-implicit"}):b.isValidElement(t)||jg(t)?b.createElement(Ad,{key:"labelList-implicit",content:t}):typeof t=="object"?b.createElement(Ad,bf({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jp.apply(null,arguments)}var MC=e=>{var t=e.cx,n=e.cy,r=e.r,l=e.className,s=We("recharts-dot",l);return ge(t)&&ge(n)&&ge(r)?b.createElement("circle",jp({},Cn(e),Vp(e),{className:s,cx:t,cy:n,
Line truncated
|
||||
* @license React
|
||||
* react-is.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var GS;function oY(){if(GS)return it;GS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function _(j){if(typeof j=="object"&&j!==null){var N=j.$$typeof;switch(N){case e:switch(j=j.type,j){case n:case l:case r:case h:case m:case x:return j;default:switch(j=j&&j.$$typeof,j){case d:case f:case p:case y:return j;case s:return j;default:return N}}case t:return N}}}return it.ContextConsumer=s,it.ContextProvider=d,it.Element=e,it.ForwardRef=f,it.Fragment=n,it.Lazy=p,it.Memo=y,it.Portal=t,it.Profiler=l,it.StrictMode=r,it.Suspense=h,it.SuspenseList=m,it.isContextConsumer=function(j){return _(j)===s},it.isContextProvider=function(j){return _(j)===d},it.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},it.isForwardRef=function(j){return _(j)===f},it.isFragment=function(j){return _(j)===n},it.isLazy=function(j){return _(j)===p},it.isMemo=function(j){return _(j)===y},it.isPortal=function(j){return _(j)===t},it.isProfiler=function(j){return _(j)===l},it.isStrictMode=function(j){return _(j)===r},it.isSuspense=function(j){return _(j)===h},it.isSuspenseList=function(j){return _(j)===m},it.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===n||j===l||j===r||j===h||j===m||typeof j=="object"&&j!==null&&(j.$$typeof===p||j.$$typeof===y||j.$$typeof===d||j.$$typeof===s||j.$$typeof===f||j.$$typeof===w||j.getModuleId!==void 0)},it.typeOf=_,it}var VS;function sY(){return VS||(VS=1,xy.exports=oY()),xy.exports}var uY=sY(),XS=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",FS=null,by=null,IC=e=>{if(e===FS&&Array.isArray(by))return by;var t=[];return b.Children.forEach(e,n=>{gt(n)||(uY.isFragment(n)?t=t.concat(IC(n.props.children)):t.push(n))}),by=t,FS=e,t};function Ag(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(l=>XS(l)):r=[XS(t)],IC(e).forEach(l=>{var s=Ir(l,"type.displayName")||Ir(l,"type.name");s&&r.indexOf(s)!==-1&&n.push(l)}),n}var RC=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0;function ZS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function WS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZS(Object(n),!0).forEach(function(r){cY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cY(e,t,n){return(t=dY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dY(e){var t=fY(e,"string");return typeof t=="symbol"?t:t+""}function fY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LC(e,t){return WS(WS({},t),e)}function hY(e){return b.isValidElement(e)?e.props:e}function mY(e,t){return b.cloneElement(e,LC(hY(e),t))}function vY(e){if("index"in e){var t=e.index;return typeof t=="number"||typeof t=="string"?t:void 0}}function yY(e){return"isActive"in e&&e.isActive===!0}function Og(e){var t=e.option,n=e.DefaultShape,r=e.shapeProps,l=e.activeClassName,s=l===void 0?"recharts-active-shape":l,d=e.inActiveClassName,f=d===void 0?"recharts-shape":d,h=vY(r),m;return b.isValidElement(t)?m=mY(t,r):t===n?m=b.createElement(n,r):typeof t=="function"?m=t(r,h):typeof t=="object"?m=b.createElement(n,LC(t,r)):m=b.createElement(n,r),yY(r)?b.createElement(St,{className:s},m):b.createElement(St,{className:f},m)}var Eg=(e,t,n)=>{var r=lt();return(l,s)=>d=>{e==null||e(l,s,d),r(Kk({activeIndex:String(s),activeDataKey:t,activeCoordinate:l.tooltipPosition,activeGraphicalItemId:n}))}},kg=e=>{var t=lt();return(n,r)=>l=>{e==null||e(n,r,l),t(bU())}},Cg=(e,t,n)=>{var r=lt();return(l,s)=>d=>{e==null||e(l,s,d),r(wU({activeIndex:String(s),activeDataKey:t,activeCoordinate:l.tooltipPosition,activeGraphicalItemId:n}))}};function Mg(e){var t=e.tooltipEntrySettings,n=lt(),r=yn(),l=b.useRef(null);return b.useLayoutEffect(()=>{r||(l.current===null?n(yU(t)):l.current!==t&&n(pU({prev:l.current,next:t})),l.current=t)},[t,n,r]),b.useLayoutEffect(()=>()=>{l.current&&(n(gU(l.current)),l.current=null)},[n]),null}function BC(e){var t=e.legendPayload,n=lt(),r=yn(),l=b.useRef(null);return b.useLayoutEffect(()=>{r||(l.current===null?n(HO(t)):l.current!==t&&n(qO({prev:l.currentLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bY(e,t){if(e){if(typeof e=="string")return QS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QS(e,t):void 0}}function QS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function jY(e){if(Array.isArray(e))return e}var Tg="index",Dg="append";function Pg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=[];for(var l of n)r.push({status:"removed",prev:l});for(var s=0;s<t.length;s++){var d=e[s],f=t[s];d!=null?r.push({status:"matched",prev:d,next:f}):r.push({status:"added",next:f})}return r}function _Y(e,t){var n=e.length/t.length,r=t.map((l,s)=>e[Math.floor(s*n)]);return Pg(r,t)}function SY(e,t){var n=t.map((r,l)=>e[l]);return Pg(n,t)}function NY(e,t){for(var n=new Map,r=0;r<e.length;r++){var l=e[r];if(l!=null){var s=t(l,r);s!=null&&!n.has(s)&&n.set(s,l)}}return n}function AY(e,t,n){var r=NY(e,n),l=new Set,s=t.map((p,x)=>{var w=n(p,x);if(w!=null){var _=r.get(w);if(_!==void 0)return l.add(w),_}}),d=[];for(var f of r){var h=gY(f,2),m=h[0],y=h[1];l.has(m)||d.push(y)}return Pg(s,t,d)}function _p(e,t,n){return t==null?null:e==null?t.map(r=>({status:"added",next:r})):n===Tg?_Y(e,t):n===Dg?SY(e,t):AY(e,t,n)}function UC(e,t){var n=b.useRef(e),r=b.useRef(t.current),l=b.useRef(!0);n.current!==e&&(n.current=e,r.current=t.current,l.current=!1);var s=b.useCallback(function(d,f){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(f===0){l.current=!0;return}f===1&&(r.current=d),f>0&&l.current&&h&&(t.current=d)},[t]);return{startValue:r.current,syncStepValue:s}}function OY(e,t){return MY(e)||CY(e,t)||kY(e,t)||EY()}function EY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kY(e,t){if(e){if(typeof e=="string")return JS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JS(e,t):void 0}}function JS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function MY(e){if(Array.isArray(e))return e}function zg(e,t){var n=b.useState(!1),r=OY(n,2),l=r[0],s=r[1],d=b.useCallback(()=>{typeof e=="function"&&e(),s(!0)},[e]),f=b.useCallback(()=>{typeof t=="function"&&t(),s(!1)},[t]);return{isAnimating:l,handleAnimationStart:d,handleAnimationEnd:f}}function $g(e){var t,n=e.animationInput,r=e.animationIdPrefix,l=e.items,s=e.previousItemsRef,d=e.isAnimationActive,f=e.animationBegin,h=e.animationDuration,m=e.animationEasing,y=e.onAnimationStart,p=e.onAnimationEnd,x=e.animationInterpolateFn,w=e.animationMatchBy,_=e.shouldUpdatePreviousRef,j=e.children,N=e.layout,O=QO(n,r),D=UC(O,s),A=(t=D.startValue)!==null&&t!==void 0?t:null,C=_p(A,l,w??Tg);return b.createElement(WO,{animationId:O,begin:f,duration:h,isActive:d,easing:m,onAnimationEnd:p,onAnimationStart:y,key:O},P=>{var M=A==null,$=l==null?l:x(C,P,N),L=_?_(P):P>0;return D.syncStepValue($,P,L),$==null?null:j($,P,M)})}var wy;function TY(e,t){return $Y(e)||zY(e,t)||PY(e,t)||DY()}function DY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PY(e,t){if(e){if(typeof e=="string")return eN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eN(e,t):void 0}}function eN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function $Y(e){if(Array.isArray(e))return e}var IY=()=>{var e=b.useState(()=>eu("uid-")),t=TY(e,1),n=t[0];return n},HC=(wy=lM.useId)!==null&&wy!==void 0?wy:IY;function RY(e,t){var n=HC();return t||(e?"".concat(e,"-").concat(n):n)}var LY=b.createContext(void 0),Ig=e=>{var t=e.id,n=e.type,r=e.children,l=RY("recharts-".concat(n),t);return b.createElement(LY.Provider,{value:l},r(l))},BY={cartesianItems:[],polarItems:[]},qC=vn({name:"graphicalItems",initialState:BY,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ft()},replaceCartesianGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,l=n.next,s=sr(e).cartesianItems.indexOf(r);s>-1&&(e.cartesianItems[s]=l)},prepare:ft()},removeCartesianGraphicalItem:{reducer(e,t){var n=sr(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:ft()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ft()},removePolarGraphicalItem:{reducer(e,t){var n=sr(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:ft()},replacePolarGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,l=n.next,s=sr(e).polarItems.indexOf(r);s>-1&&(e.polarItems[s]=l)},prepare:ft()}}}),Ro=qC.actions,UY=Ro.addCartesianGraphicalItem,HY=Ro.replaceCartesianGraphicalItem,qY=Ro.removeCartesianGraphicalItem,KY=Ro.addPolarGraphicalItem,YY=Ro.removePolarGraphicalItem,GY=Ro.replacePolarGraphicalItem,VY=qC.reducer,XY=e=>{var t=lt(),n=b.useRef(null);return b.useLayoutEffect(()=>{n.current===null?t(UY(e)):n.current!==e&&t(HY({prev:n.current,next:e})),n.current=e},[t,e]),b.useLayoutEffect(()=>()=>{n.current&&(t(qY(n.current)),n.current=null)},[t]),null},KC=b.memo(XY),FY=e=>{var t=lt(),n=b.useRef(null);return b.useLayoutEffect(()=>{n.current===null?t(KY(e)):n.current!==e&&t(GY({prev:n.current,next:e})),n.current=e},[t,e]),b.useLayoutEffect(()=>()=>{n.current&&(t(YY(n.current)),n.current=null)},[t]),null},ZY=b.memo(FY),WY=["key"],QY=["onMouseEnter","onClick","onMouseLeave"],JY=["id"],eG=["id"];function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ul.apply(null,arguments)}function jh(e,t){if(e==null)return{};var n,r,l=tG(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function tG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tN(Object(n),!0).forEach(function(r){nG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nG(e,t,n){return(t=rG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rG(e){var t=aG(e,"string");return typeof t=="symbol"?t:t+""}function aG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YC=rE;function iG(e){var t=b.useMemo(()=>Ag(e.children,Ji),[e.children]),n=xe(r=>iY(r,e.id,t));return n==null?null:b.createElement(pY,{legendPayload:n})}function lG(e){if(!(e==null||typeof e=="boolean"||typeof e=="function")){if(b.isValidElement(e)){var t,n=(t=e.props)===null||t===void 0?void 0:t.fill;return typeof n=="string"?n:void 0}var r=e.fill;return typeof r=="string"?r:void 0}}var oG=b.memo(e=>{var t=e.dataKey,n=e.nameKey,r=e.sectors,l=e.stroke,s=e.strokeWidth,d=e.fill,f=e.name,h=e.hide,m=e.tooltipType,y=e.id,p=e.activeShape,x=lG(p
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eV(e,t){if(e){if(typeof e=="string")return oN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oN(e,t):void 0}}function oN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function nV(e){if(Array.isArray(e))return e}var sN=(e,t,n)=>{var r=n??e;if(!gt(r))return hn(r,t,0)},rV=(e,t,n)=>{var r={},l=e.filter(rh),s=e.filter(m=>m.stackId==null),d=l.reduce((m,y)=>{var p=m[y.stackId];return p==null&&(p=[]),p.push(y),m[y.stackId]=p,m},r),f=Object.entries(d).map(m=>{var y,p=QG(m,2),x=p[0],w=p[1],_=w.map(N=>N.dataKey),j=sN(t,n,(y=w[0])===null||y===void 0?void 0:y.barSize);return{stackId:x,dataKeys:_,barSize:j}}),h=s.map(m=>{var y=[m.dataKey].filter(x=>x!=null),p=sN(t,n,m.barSize);return{stackId:void 0,dataKeys:y,barSize:p}});return[...f,...h]};function uN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function yd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uN(Object(n),!0).forEach(function(r){aV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aV(e,t,n){return(t=iV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iV(e){var t=lV(e,"string");return typeof t=="symbol"?t:t+""}function lV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oV(e,t,n,r,l){var s,d=r.length;if(!(d<1)){var f=hn(e,n,0,!0),h,m=[];if(Ie((s=r[0])===null||s===void 0?void 0:s.barSize)){var y=!1,p=n/d,x=r.reduce((D,A)=>D+(A.barSize||0),0);x+=(d-1)*f,x>=n&&(x-=(d-1)*f,f=0),x>=n&&p>0&&(y=!0,p*=.9,x=d*p);var w=Math.round((n-x)/2),_={offset:w-f,size:0};h=r.reduce((D,A)=>{var C,P={stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:_.offset+_.size+f,size:y?p:(C=A.barSize)!==null&&C!==void 0?C:0}},M=[...D,P];return _=P.position,M},m)}else{var j=hn(t,n,0,!0);n-2*j-(d-1)*f<=0&&(f=0);var N=(n-2*j-(d-1)*f)/d;N>1&&(N=Math.round(N));var O=Ie(l)?Math.min(N,l):N;h=r.reduce((D,A,C)=>[...D,{stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:j+(N+f)*C+(N-O)/2,size:O}}],m)}return h}}var sV=(e,t,n,r,l,s,d)=>{var f=gt(d)?t:d,h=oV(n,r,l!==s?l:s,e,f);return l!==s&&h!=null&&(h=h.map(m=>yd(yd({},m),{},{position:yd(yd({},m.position),{},{offset:m.position.offset-l/2})}))),h},uV=(e,t)=>{var n=nh(t);if(!(!e||n==null||t==null)){var r=t.stackId;if(r!=null){var l=e[r];if(l){var s=l.stackedData;if(s)return s.find(d=>d.key===n)}}}},cV=(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function dV(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&Ie(e.zIndex)?e.zIndex:t}var XC=e=>{var t=e.chartData,n=lt(),r=yn();return b.useEffect(()=>r?()=>{}:(n(bS(t)),()=>{n(bS(void 0))}),[t,n,r]),null},cN={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},FC=vn({name:"brush",initialState:cN,reducers:{setBrushSettings(e,t){return t.payload==null?cN:t.payload}}});FC.actions.setBrushSettings;var fV=FC.reducer;function hV(e){return(e%180+180)%180}var mV=function(t){var n=t.width,r=t.height,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=hV(l),d=s*Math.PI/180,f=Math.atan(r/n),h=d>f&&d<Math.PI-f?r/Math.sin(d):n/Math.cos(d);return Math.abs(h)},vV={dots:[],areas:[],lines:[]},ZC=vn({name:"referenceElements",initialState:vV,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=sr(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=sr(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=sr(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),Lo=ZC.actions;Lo.addDot;Lo.removeDot;Lo.addArea;Lo.removeArea;Lo.addLine;Lo.removeLine;var yV=ZC.reducer;function pV(e,t){return wV(e)||bV(e,t)||xV(e,t)||gV()}function gV(){
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xV(e,t){if(e){if(typeof e=="string")return dN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dN(e,t):void 0}}function dN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function wV(e){if(Array.isArray(e))return e}var jV=b.createContext(void 0),_V=e=>{var t=e.children,n=b.useState("".concat(eu("recharts"),"-clip")),r=pV(n,1),l=r[0],s=Rg();if(s==null)return null;var d=s.x,f=s.y,h=s.width,m=s.height;return b.createElement(jV.Provider,{value:l},b.createElement("defs",null,b.createElement("clipPath",{id:l},b.createElement("rect",{x:d,y:f,height:m,width:h}))),t)};function WC(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var l=e[r];l!==void 0&&n.push(l)}return n}function SV(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return mV(r,n)}function NV(e,t,n){var r=n==="width",l=e.x,s=e.y,d=e.width,f=e.height;return t===1?{start:r?l:s,end:r?l+d:s+f}:{start:r?l+d:s+f,end:r?l:s}}function mu(e,t,n,r,l){if(e*t<e*r||e*t>e*l)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-l)<=0}function AV(e,t){return WC(e,t+1)}function OV(e,t,n,r,l){for(var s=(r||[]).slice(),d=t.start,f=t.end,h=0,m=1,y=d,p=function(){var _=r==null?void 0:r[h];if(_===void 0)return{v:WC(r,m)};var j=h,N,O=()=>(N===void 0&&(N=n(_,j)),N),D=_.coordinate,A=h===0||mu(e,D,O,y,f);A||(h=0,y=d,m+=1),A&&(y=D+e*(O()/2+l),h+=m)},x;m<=s.length;)if(x=p(),x)return x.v;return[]}function EV(e,t,n,r,l){var s=(r||[]).slice(),d=s.length;if(d===0)return[];for(var f=t.start,h=t.end,m=1;m<=d;m++){for(var y=(d-1)%m,p=f,x=!0,w=function(){var C=r[j];if(C==null)return 0;var P=j,M,$=()=>(M===void 0&&(M=n(C,P)),M),L=C.coordinate,Q=j===y||mu(e,L,$,p,h);if(!Q)return x=!1,1;Q&&(p=L+e*($()/2+l))},_,j=y;j<d&&(_=w(),!(_!==0&&_===1));j+=m);if(x){for(var N=[],O=y;O<d;O+=m){var D=r[O];D!=null&&N.push(D)}return N}}return[]}function fN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fN(Object(n),!0).forEach(function(r){kV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kV(e,t,n){return(t=CV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CV(e){var t=MV(e,"string");return typeof t=="symbol"?t:t+""}function MV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TV(e,t,n,r,l){for(var s=(r||[]).slice(),d=s.length,f=t.start,h=t.end,m=function(x){var w=s[x];if(w==null)return 1;var _=w,j,N=()=>(j===void 0&&(j=n(w,x)),j);if(x===d-1){var O=e*(_.coordinate+e*N()/2-h);s[x]=_=cn(cn({},_),{},{tickCoord:O>0?_.coordinate-O*e:_.coordinate})}else s[x]=_=cn(cn({},_),{},{tickCoord:_.coordinate});if(_.tickCoord!=null){var D=mu(e,_.tickCoord,N,f,h);D&&(h=_.tickCoord-e*(N()/2+l),s[x]=cn(cn({},_),{},{isShow:!0}))}},y=d-1;y>=0;y--)m(y);return s}function DV(e,t,n,r,l,s){var d=(r||[]).slice(),f=d.length,h=t.start,m=t.end;if(s){var y=r[f-1];if(y!=null){var p=n(y,f-1),x=e*(y.coordinate+e*p/2-m);if(d[f-1]=y=cn(cn({},y),{},{tickCoord:x>0?y.coordinate-x*e:y.coordinate}),y.tickCoord!=null){var w=mu(e,y.tickCoord,()=>p,h,m);w&&(m=y.tickCoord-e*(p/2+l),d[f-1]=cn(cn({},y),{},{isShow:!0}))}}}for(var _=s?f-1:f,j=function(D){var A=d[D];if(A==null)return 1;var C=A,P,M=()=>(P===void 0&&(P=n(A,D)),P);if(D===0){var $=e*(C.coordinate-e*M()/2-h);d[D]=C=cn(cn({},C),{},{tickCoord:$<0?C.coordinate-$*e:C.coordinate})}else d[D]=C=cn(cn({},C),{},{tickCoord:C.coordinate});if(C.tickCoord!=null){var L=mu(e,C.tickCoord,M,h,m);L&&(h=C.tickCoord+e*(M()/2+l),d[D]=cn(cn({},C),{},{isShow:!0}))}},N=0;N<_;N++)j(N);return d}function Lg(e,t,n){var r=e.tick,l=e.ticks,s=e.viewBox,d=e.minTickGap,f=e.orientation,h=e.interval,m=e.tickFormatter,y=e.unit,p=e.angle;if(!l||!l.length||!r)return[];if(ge(h)||_u.isSsr){var x;return(x=AV(l,ge(h)?h:0))!==null&&x!==void 0?x:[]}var w=[],_=f==="top"||f==="bottom"?"width":
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UV(e,t){if(e){if(typeof e=="string")return mN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mN(e,t):void 0}}function mN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function qV(e){if(Array.isArray(e))return e}function KV(e,t){if(e==null)return{};var n,r,l=YV(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function YV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cl.apply(null,arguments)}function vN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vN(Object(n),!0).forEach(function(r){GV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GV(e,t,n){return(t=VV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VV(e){var t=XV(e,"string");return typeof t=="symbol"?t:t+""}function XV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pa={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:Dt.axis};function FV(e){var t=e.x,n=e.y,r=e.width,l=e.height,s=e.orientation,d=e.mirror,f=e.axisLine,h=e.otherSvgProps;if(!f)return null;var m=_t(_t(_t({},h),Cn(f)),{},{fill:"none"});if(s==="top"||s==="bottom"){var y=+(s==="top"&&!d||s==="bottom"&&d);m=_t(_t({},m),{},{x1:t,y1:n+y*l,x2:t+r,y2:n+y*l})}else{var p=+(s==="left"&&!d||s==="right"&&d);m=_t(_t({},m),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+l})}return b.createElement("line",cl({},m,{className:We("recharts-cartesian-axis-line",Ir(f,"className"))}))}function ZV(e,t,n,r,l,s,d,f,h){var m,y,p,x,w,_,j=f?-1:1,N=e.tickSize||d,O=ge(e.tickCoord)?e.tickCoord:e.coordinate;switch(s){case"top":m=y=e.coordinate,x=n+ +!f*l,p=x-j*N,_=p-j*h,w=O;break;case"left":p=x=e.coordinate,y=t+ +!f*r,m=y-j*N,w=m-j*h,_=O;break;case"right":p=x=e.coordinate,y=t+ +f*r,m=y+j*N,w=m+j*h,_=O;break;default:m=y=e.coordinate,x=n+ +f*l,p=x+j*N,_=p+j*h,w=O;break}return{line:{x1:m,y1:p,x2:y,y2:x},tick:{x:w,y:_}}}function WV(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function QV(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function JV(e){var t=e.option,n=e.tickProps,r=e.value,l,s=We(n.className,"recharts-cartesian-axis-tick-value");if(b.isValidElement(t))l=b.cloneElement(t,_t(_t({},n),{},{className:s}));else if(typeof t=="function")l=t(_t(_t({},n),{},{className:s}));else{var d="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(d=We(d,zC(t))),l=b.createElement(gh,cl({},n,{className:d}),r)}return l}function eX(e){var t=e.ticks,n=e.axisType,r=e.axisId,l=lt();return b.useEffect(()=>{if(r==null||n==null)return dl;var s=t.map(d=>({value:d.value,coordinate:d.coordinate,offset:d.offset,index:d.index}));return l($V({ticks:s,axisId:r,axisType:n})),()=>{l(IV({axisId:r,axisType:n}))}},[l,t,r,n]),null}var tX=b.forwardRef((e,t)=>{var n=e.ticks,r=n===void 0?[]:n,l=e.tick,s=e.tickLine,d=e.stroke,f=e.tickFormatter,h=e.unit,m=e.padding,y=e.tickTextProps,p=e.orientation,x=e.mirror,w=e.x,_=e.y,j=e.width,N=e.height,O=e.tickSize,D=e.tickMargin,A=e.fontSize,C=e.letterSpacing,P=e.getTicksConfig,M=e.events,$=e.axisType,L=e.axisId,Q=Lg(_t(_t({},P),{},{ticks:r}),A,C),z=Cn(P),X=tl(l),V=jC(z.textAnchor)?z.textAnchor:WV(p,x),he=QV(p,x),fe={};typeo
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UF(e,t){if(e){if(typeof e=="string")return bN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bN(e,t):void 0}}function bN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function qF(e){if(Array.isArray(e))return e}function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hi.apply(null,arguments)}function wN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wN(Object(n),!0).forEach(function(r){KF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KF(e,t,n){return(t=YF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YF(e){var t=GF(e,"string");return typeof t=="symbol"?t:t+""}function GF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nf(e,t){if(e==null)return{};var n,r,l=VF(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function VF(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var XF=e=>{var t=e.dataKey,n=e.name,r=e.fill,l=e.legendType,s=e.hide;return[{inactive:s,dataKey:t,type:l,color:r,value:Eo(n,t),payload:e}]},FF=b.memo(e=>{var t=e.dataKey,n=e.stroke,r=e.strokeWidth,l=e.fill,s=e.name,d=e.hide,f=e.unit,h=e.tooltipType,m=e.id,y={dataDefinedOnItem:void 0,getPosition:dl,settings:{stroke:n,strokeWidth:r,fill:l,dataKey:t,nameKey:void 0,name:Eo(s,t),hide:d,type:h,color:l,unit:f,graphicalItemId:m}};return b.createElement(Mg,{tooltipEntrySettings:y})});function ZF(e){var t=xe(fi),n=e.data,r=e.dataKey,l=e.background,s=e.allOtherBarProps,d=s.onMouseEnter,f=s.onMouseLeave,h=s.onClick,m=Nf(s,$F),y=Eg(d,r,s.id),p=kg(f),x=Cg(h,r,s.id);if(!l||n==null)return null;var w=tl(l);return b.createElement(Mn,{zIndex:dV(l,Dt.barBackground)},n.map((_,j)=>{_.value;var N=_.background;_.tooltipPosition;var O=Nf(_,IF);if(!N)return null;var D=y(_,_.originalDataIndex),A=p(_,_.originalDataIndex),C=x(_,_.originalDataIndex),P=Lt(Lt(Lt(Lt(Lt({option:l,isActive:String(_.originalDataIndex)===t},O),{},{fill:"#eee"},N),w),yu(m,_,j)),{},{onMouseEnter:D,onMouseLeave:A,onClick:C,dataKey:r,index:j,className:"recharts-bar-background-rectangle"});return b.createElement(Kg,hi({key:"background-bar-".concat(j)},P))}))}function WF(e){var t=e.showLabels,n=e.children,r=e.rects,l=r==null?void 0:r.map(s=>{var d={x:s.x,y:s.y,width:s.width,lowerWidth:s.width,upperWidth:s.width,height:s.height};return Lt(Lt({},d),{},{value:s.value,payload:s.payload,parentViewBox:s.parentViewBox,viewBox:d,fill:s.fill})});return b.createElement(kC,{value:t?l:void 0},n)}function QF(e){var t=e.shape,n=e.activeBar,r=e.baseProps,l=e.entry,s=e.index,d=e.dataKey,f=xe(fi),h=xe(vg),m=n&&String(l.originalDataIndex)===f&&(h==null||d===h),y=b.useState(!1),p=xN(y,2),x=p[0],w=p[1],_=b.useState(!1),j=xN(_,2),N=j[0],O=j[1];b.useEffect(()=>{var $;return m?(w(!0),$=requestAnimationFrame(()=>{O(!0)})):O(!1),()=>{cancelAnimationFrame($)}},[m]);var D=b.useCallback(()=>{m||w(!1)},[m]),A=m&&N,C=m||x,P;m?n===!0?P=t:P=n:P=t;var M=b.createElement(Kg,hi({},r,{name:String(r.name)},l,{isActive:A,option:P,index:s,dataKey:d,animationElapsedTime:e.animationElapsedTime,isAnimating:e.isAnimating,isEntrance:e.isEntrance,onTransitionEnd:D}));return C?b.createElement(Mn,{zIndex:Dt.activeBar},b.createElement(m3,{index:l.originalDataIndex},M)):M}function JF(e){var t=e.shape,n=e.baseProps,r=e.entry,l=e.index,s=e.dataKey;return b.createElement(Kg,hi({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:l,dataKey:s,animationElapsedTime:e.animationElapsedTime,isAn
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lW(e,t){if(e){if(typeof e=="string")return DN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DN(e,t):void 0}}function DN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function sW(e){if(Array.isArray(e))return e}function uW(){var e=lt(),t=b.useState(null),n=aW(t,2),r=n[0],l=n[1],s=xe(R$);return b.useEffect(()=>{if(r!=null){var d=r.getBoundingClientRect(),f=d.width/r.offsetWidth;Ie(f)&&f!==s&&e(w$(f))}},[r,e,s]),l}function PN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function cW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PN(Object(n),!0).forEach(function(r){dW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dW(e,t,n){return(t=fW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fW(e){var t=hW(e,"string");return typeof t=="symbol"?t:t+""}function hW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ui.apply(null,arguments)}function Of(e,t){return pW(e)||yW(e,t)||vW(e,t)||mW()}function mW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vW(e,t){if(e){if(typeof e=="string")return zN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zN(e,t):void 0}}function zN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,l,s,d,f=[],h=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(h=(r=s.call(n)).done)&&(f.push(r.value),f.length!==t);h=!0);}catch(y){m=!0,l=y}finally{try{if(!h&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(m)throw l}}return f}}function pW(e){if(Array.isArray(e))return e}var gW=()=>(xq(),null);function Ef(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var xW=b.forwardRef((e,t)=>{var n,r,l=b.useRef(null),s=b.useState({containerWidth:Ef((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:Ef((r=e.style)===null||r===void 0?void 0:r.height)}),d=Of(s,2),f=d[0],h=d[1],m=b.useCallback((p,x)=>{h(w=>{var _=Math.round(p),j=Math.round(x);return w.containerWidth===_&&w.containerHeight===j?w:{containerWidth:_,containerHeight:j}})},[]),y=b.useCallback(p=>{if(typeof t=="function"&&t(p),l.current!=null&&(l.current.disconnect(),l.current=null),p!=null&&typeof ResizeObserver<"u"){var x=p.getBoundingClientRect(),w=x.width,_=x.height;m(w,_);var j=O=>{var D=O[0];if(D!=null){var A=D.contentRect,C=A.width,P=A.height;m(C,P)}},N=new ResizeObserver(j);N.observe(p),l.current=N}},[t,m]);return b.useEffect(()=>()=>{var p=l.current;p!=null&&p.disconnect()},[m]),b.createElement(b.Fragment,null,b.createElement(bu,{width:f.containerWidth,height:f.containerHeight}),b.createElement("div",ui({ref:y},e)))}),bW=b.forwardRef((e,t)=>{var n=e.width,r=e.height,l=b.useState({containerWidth:Ef(n),containerHeight:Ef(r)}),s=Of(l,2),d=s[0],f=s[1],h=b.useCallback((y,p)=>{f(x=>{var w=Math.round(y),_=Math.round(p);return x.containerWidth===w&&x.containerHeight===_?x:{containerWidth:w,containerHeight:_}})},[]),m=b.useCallback(y=>{if(typeof t=="function"&&t(y),y!=null){var p=y.getBoundingClientRect(),x=p.width,w=p.height;h(x,w)}},[t,h]);return b.createElement(b.Fragment,null,b.createElement(bu,{width:d.containerWidth,height:d.containerHeight}),b.createElement("div",ui({ref:m},e)))}),wW=b.forwardRef((e,t)=>{var n=e.width,r=e.height;return b.createElement(b.Fragment,null,b.createElement(bu,{width:n,height:r}),b.createElement("div",ui({ref:t},e)))}),jW=b.forwardRef((e,t)=>{var n=e.width,r=e.height;return typeof n=="string"||typeof r=="string"?b.createElement(bW,ui({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?b.createElement(wW,ui({},e,{width:n,height:r,ref:t})):b.createElement(b.Fragment,null,b.createElement(bu,{width:n,height:r}),b.createElement("div",ui({ref:t},e)))});function _W(e){return e?xW:jW}var SW=b.forwardRef((e,t)=>{var n=e.children,r=e.className,l=e.height,s=e.onClick,d=e.onContextMenu,f=e.onDoubleClick,h=e.onMouseDown,m=e.onMouseEnter,y=e.onMouseLeave,p=e.onMouseMove,x=e.onMouseUp,w=e.onTouchEnd,_=e.onTouchMove,j=e.onTouchStart,N=e.style,O=e.width,D=e.responsive,A=e.dispatchTouchEvents,C=A===void 0?!0:A,P=b.useRef(null),M=lt(),$=b.useState(null),L=Of($,2),Q=L[0],z=L[1],X=b.useState(null),V=Of(X,2),he=V[0],fe=V[1],se=uW(),q=r0(),te=(q==null?void 0:q.width)>0?q.width:O,ae=(q==null?void 0:q.height)>0?q.height:l,Z=b.useCallback(Se=>{se(Se),typeof t=="function"&&t(Se),z(Se),fe(Se),Se!=null&&(P.current=Se)},[se,t,z,fe]),B=b.useCallback(Se=>{M(p3(Se)),M(lr({handler:s,reactEvent:Se}))},[M,s]),k=b.useCallback(Se=>{M(Tp(Se)),M(lr({handler:m,reactEvent:Se}))},[M,m]),K=b.useCallback(Se=>{M(Yk()),M(lr({handler:y,reactEvent:Se}))},[M,y]),F=b.useCallback(Se=>{M(Tp(Se)),M(lr({handler:p,reactEvent:Se}))},[M,p]),ue=b.useCallback(()=>{M(_3())},[M]),ve=b.useCallback(()=>{M(S3())},[M]),ye=b.useCallback(Se=>{M(j3(Se.key))},[M]),_e=b.useCallback(Se=>{M(lr({handler:d,reactEvent:Se}))},[M,d]),Pe=b.useCallback(Se=>{M(lr({handler:f,reactEvent:Se}))},[M,f]),R=b.useCallback(Se=>{M(lr({handler:h,reactEvent:Se}))},[M,h]),de=b.useCallback(Se=>{M(lr({handler:x,reactEvent:Se}))},[M,x]),me=b.useCallback(Se=>{M(lr({handler:j,reactEvent:Se}))},[M,j]),ie=b.useCallback(Se=>{C&&M(O3(Se)),M(lr({handler:_,reactEvent:Se}))},[M,C,_]),Oe=b.useCallback(Se=>{M(lr({handler:w,reactEvent:Se}))},[M,w]),Ce=_W(D);return b.createElement(mC.Provider,{value:Q},b.createElement(oA.Provider,{value:he},b.createElement(Ce,{width:te??(N==null?void 0:N.width),height:ae??(N==null?void 0:N.height),className:We("recharts-wrapper",r),style:cW({position:"relative",cursor:"default",width:te,height:ae},N),onClick:B,onContextMenu:_e,onDoubleClick:Pe,onFocus:ue,onBlur:ve,onKeyDown:ye,onMouseDown:R,onMouseEnter:k,onMouseLeave:K,onMouseMove:F,onMouseUp:de,o
Line truncated
|
||||
|
||||
例如:回复时保持礼貌专业、使用简洁的语言、强调产品质量等`,className:"w-full ios-input px-4 py-3 rounded-xl h-40 resize-none"})]}),u.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4",children:[u.jsxs("h4",{className:"font-bold text-blue-900 mb-2 flex items-center gap-2",children:[u.jsx($p,{className:"w-4 h-4"}),"AI如何工作"]}),u.jsxs("ul",{className:"text-xs text-blue-800 space-y-1",children:[u.jsx("li",{children:"• 自动识别买家的砍价请求"}),u.jsx("li",{children:"• 根据设定的策略智能回复"}),u.jsx("li",{children:"• 在合理范围内同意降价或礼貌拒绝"}),u.jsx("li",{children:"• 保持专业友好的沟通风格"})]})]})]}),u.jsx("div",{className:"modal-footer",children:u.jsxs("div",{className:"flex gap-3 w-full",children:[u.jsx("button",{onClick:()=>$(null),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",disabled:fe,children:"取消"}),u.jsxs("button",{onClick:ve,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",disabled:fe,children:[fe?u.jsx(ai,{className:"w-4 h-4 animate-spin"}):u.jsx(va,{className:"w-4 h-4"}),fe?"保存中...":"保存"]})]})})]})}),document.body)]})},qN=({status:e})=>{const t={processing:"bg-blue-100 text-blue-800",pending_ship:"bg-[#0094f7] text-white",shipped:"bg-blue-100 text-blue-700",completed:"bg-green-100 text-green-700",cancelled:"bg-gray-100 text-gray-500",refunding:"bg-red-100 text-red-600"},n={processing:"处理中",pending_ship:"待发货",shipped:"已发货",completed:"已完成",cancelled:"已取消",refunding:"退款中"};return u.jsx("span",{className:`px-3 py-1.5 rounded-lg text-xs font-bold ${t[e]||t.cancelled}`,children:n[e]||e})},eQ=()=>{const[e,t]=b.useState([]),[n,r]=b.useState([]),[l,s]=b.useState([]),[d,f]=b.useState({}),[h,m]=b.useState("all"),[y,p]=b.useState(""),[x,w]=b.useState(1),[_,j]=b.useState(1),[N,O]=b.useState(!1),[D,A]=b.useState(!1),[C,P]=b.useState(!1),[M,$]=b.useState(!1),[L,Q]=b.useState(null),[z,X]=b.useState(null),[V,he]=b.useState({}),[fe,se]=b.useState(!1),[q,te]=b.useState(""),[ae,Z]=b.useState(!1),[B,k]=b.useState(null),[K,F]=b.useState(null),[ue,ve]=b.useState(null),[ye,_e]=b.useState(null),Pe=re=>{if(!y.trim())return re;const Me=y.toLowerCase().trim();return re.filter(Le=>{var H,pe,T,be,Re,mt;return((H=Le.order_id)==null?void 0:H.toLowerCase().includes(Me))||((pe=Le.item_id)==null?void 0:pe.toLowerCase().includes(Me))||((T=Le.buyer_id)==null?void 0:T.toLowerCase().includes(Me))||((be=Le.item_title)==null?void 0:be.toLowerCase().includes(Me))||((Re=Le.receiver_name)==null?void 0:Re.toLowerCase().includes(Me))||((mt=Le.receiver_phone)==null?void 0:mt.toLowerCase().includes(Me))})},R=async()=>{O(!0);try{if(y.trim()){let re=[],Me=1,Le=!0;for(;Le;){const H=await dj(void 0,h,Me,100);re=[...re,...H.data],Le=Me<H.total_pages,Me++}r(re),t(Pe(re)),j(1)}else{const re=await dj(void 0,h,x,20);r(re.data),t(Pe(re.data)),j(re.total_pages)}}catch(re){console.error("加载订单失败:",re)}finally{O(!1)}};b.useEffect(()=>{t(Pe(n))},[n,y]);const de=(re,Me)=>{if(Me&&Me.trim())return Me;if(d[re])return d[re];const Le=l.find(H=>{if(Me&&H.item_title){const pe=Me.toLowerCase(),T=H.item_title.toLowerCase();return T.includes(pe)||pe.includes(T)}return!1});return Le!=null&&Le.item_title?Le.item_title:"未知商品"},me=re=>{const Me={};re.forEach(Le=>{Le.item_id&&(Me[Le.item_id]=Le.item_title||Le.item_id)}),f(Me)};b.useEffect(()=>{R(),vo().then(re=>{s(re),me(re)}).catch(re=>{console.error("加载商品列表失败:",re)})},[h,x,y]);const ie=async()=>{O(!0);try{const re=await oD();await R(),re!=null&&re.message&&alert(re.message)}catch(re){console.error("同步订单失败:",re),alert((re==null?void 0:re.message)||"同步失败,请重试")}finally{O(!1)}},Oe=re=>{te(re),k(null),se(!0)},Ce=async re=>{var Me;Z(!0),k(null);try{const Le=await uD([q],re),H=(Me=Le==null?void 0:Le.results)==null?void 0:Me[0];H!=null&&H.success?(k({success:!0,message:H.message}),R()):k({success:!1,message:(H==null?void 0:H.message)||"发货失败"})}catch(Le){k({success:!1,message:(Le==null?void 0:Le.message)||"请求失败"})}finally{Z(!1)}},Se=re=>{Q(re),A(!0)},tt=re=>{X({...re}),P(!0)},De=async()=>{if(!(!z||!z.order_id))try{const re={};z.status!==void 0&&(re.order_status=z.status),z.buyer_id!==void 0&&(re.buyer_id=z.buyer_id),z.amount!==void 0&&(re.amount=z.amount),z.receiver_name!==void 0&&(re.receiver_name=z.receiver_name),z.receiver_phone!==void 0&&(re.receiver_phone=z.receiver_phone),z.receiver_address!==void 0&&(re.receiver_address=z.receiver_address),z.item_id!==void 0&&(re.item_id=z.item_id),z.quantity!==void 0&&(re.quantity=z.quantity),await iD(z.order_id,re),P(!1),X(null),R()}catch(re){console.error("更新订单失败:",re),alert("更新失败,请重试")}},Tn=async()=>{if(K)try{const re=new FormData;re.append("file",K),await cD(re),$(!1),F(null),R(),alert("订单导
Line truncated
|
||||
`).filter(M=>M.trim()).length} 条`:A.type==="text"&&A.text_content?C=A.text_content.substring(0,20)+(A.text_content.length>20?"...":""):A.type==="api"&&A.api_config?C=A.api_config.url:A.type==="image"&&A.image_url&&(C="图片链接"),u.jsxs("tr",{className:"hover:bg-[#FFFDE7]/50 transition-colors group",children:[u.jsx("td",{className:"px-8 py-5",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"p-2 bg-gray-50 rounded-xl group-hover:bg-white transition-colors",children:u.jsx(x,{type:A.type})}),u.jsx("span",{className:"font-bold text-gray-900",children:A.name})]})}),u.jsx("td",{className:"px-6 py-5",children:u.jsxs("button",{onClick:()=>D(A.id),className:"inline-flex items-center gap-2 rounded-xl bg-gray-100 px-3 py-2 font-mono text-xs font-extrabold text-gray-700 hover:bg-gray-200 transition-colors",title:"复制卡密组ID,用于批量铺货表格",children:[A.id,u.jsx(BM,{className:"w-3.5 h-3.5"})]})}),u.jsx("td",{className:"px-6 py-5",children:u.jsx("span",{className:`px-3 py-1.5 rounded-lg text-xs font-bold ${A.type==="text"?"bg-blue-50 text-blue-600":A.type==="data"?"bg-purple-50 text-purple-600":A.type==="api"?"bg-blue-50 text-blue-600":"bg-pink-50 text-pink-600"}`,children:A.type==="text"?"文本":A.type==="data"?"批量":A.type==="api"?"API":"图片"})}),u.jsx("td",{className:"px-6 py-5",children:u.jsx("span",{className:"text-sm text-gray-600 font-mono block truncate",title:C,children:C})}),u.jsx("td",{className:"px-6 py-5",children:u.jsx("span",{className:"text-sm text-gray-500 block max-w-[200px] truncate",title:A.description||"-",children:A.description||"-"})}),u.jsx("td",{className:"px-6 py-5",children:u.jsx("button",{onClick:()=>O(A),className:`w-12 h-8 rounded-full relative transition-colors ${A.enabled?"bg-green-500":"bg-gray-300"}`,children:u.jsx("div",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-sm transition-transform ${A.enabled?"left-5":"left-1"}`})})}),u.jsx("td",{className:"px-6 py-5",children:u.jsxs("div",{className:"flex items-center justify-end gap-2",children:[u.jsx("button",{onClick:()=>w(A),className:"p-2 text-gray-400 hover:text-black hover:bg-gray-100 rounded-xl transition-colors",title:"编辑",children:u.jsx(Rp,{className:"w-4 h-4"})}),u.jsx("button",{onClick:()=>j(A.id),className:"p-2 text-gray-400 hover:text-red-500 hover:bg-red-50 rounded-xl transition-colors",children:u.jsx(li,{className:"w-5 h-5"})})]})})]},A.id)})})]})}),e.length===0&&u.jsxs("div",{className:"py-20 text-center text-gray-400",children:[u.jsx(WN,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),u.jsx("p",{children:"暂无卡密配置,请点击右上角添加。"})]})]}),n&&d&&Bt.createPortal(u.jsx("div",{className:"modal-overlay-centered",children:u.jsxs("div",{className:"modal-container",children:[u.jsxs("div",{className:"modal-header",children:[u.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"编辑卡密"}),u.jsx("button",{onClick:()=>r(!1),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors",children:u.jsx(fn,{className:"w-5 h-5 text-gray-500"})})]}),u.jsx("div",{className:"modal-body",children:u.jsxs("div",{className:"space-y-5",children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsxs("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:["卡密名称 ",u.jsx("span",{className:"text-red-500",children:"*"})]}),u.jsx("input",{type:"text",value:h.name||"",onChange:A=>m({...h,name:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",placeholder:"例如:游戏点卡、会员卡等"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"卡券类型"}),u.jsxs("select",{value:h.type||"text",onChange:A=>m({...h,type:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[u.jsx("option",{value:"",children:"请选择类型"}),u.jsx("option",{value:"text",children:"固定文字"}),u.jsx("option",{value:"data",children:"批量数据"}),u.jsx("option",{value:"api",children:"API接口"}),u.jsx("option",{value:"image",children:"图片"})]})]})]}),h.type==="api"&&u.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 space-y-4 bg-gray-50",children:[u.jsx("h3",{className:"font-bold text-gray-900",children:"API 配置"}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"API 地址"}),u.jsx("input",{type:"url",value:h.api_url||"",onChange:A=>m({...h,api_url:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl font-mono text-sm",placeholder:"https://api.example.com/get-card"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"请求方法"}),u.jsxs("select",{value:h.api_method||"GET",onChange:A=>m({...h,api_method:A.target.value}),className:"w-full ios-input px-4 py-3
Line truncated
|
||||
卡号1:密码1
|
||||
卡号2:密码2
|
||||
或者
|
||||
兑换码1
|
||||
兑换码2`}),u.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"支持格式:卡号:密码 或 单独的兑换码"}),u.jsxs("p",{className:"text-xs text-gray-500",children:["当前库存:",u.jsx("span",{className:"font-bold text-blue-600",children:h.data_content?h.data_content.split(`
|
||||
`).filter(A=>A.trim()).length:0})," 条"]})]})]}),h.type==="image"&&u.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 bg-gray-50",children:[u.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"图片配置"}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"图片 URL"}),u.jsx("input",{type:"url",value:h.image_url||"",onChange:A=>m({...h,image_url:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl font-mono text-sm",placeholder:"https://example.com/image.png"}),u.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"输入图片卡密的 URL 地址"})]}),h.image_url&&u.jsxs("div",{className:"mt-3",children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"图片预览"}),u.jsx("img",{src:h.image_url,alt:"预览",className:"max-w-full max-h-48 rounded-xl border border-gray-200",onError:A=>{A.currentTarget.src="https://via.placeholder.com/400x200?text=图片加载失败"}})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"延时发货时间(秒)"}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("input",{type:"number",value:h.delay_seconds||0,onChange:A=>m({...h,delay_seconds:parseInt(A.target.value)||0}),className:"flex-1 ios-input px-4 py-3 rounded-xl",min:"0",max:"3600",placeholder:"0"}),u.jsx("span",{className:"text-sm text-gray-500 whitespace-nowrap",children:"秒"})]}),u.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"0表示立即发货,最大3600秒(1小时)"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"备注信息"}),u.jsx("textarea",{value:h.description||"",onChange:A=>m({...h,description:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-40 resize-none",placeholder:"可选的备注信息"})]}),u.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[u.jsx("span",{className:"font-bold text-gray-900",children:"启用状态"}),u.jsx("button",{type:"button",onClick:()=>m({...h,enabled:!h.enabled}),className:`w-14 h-8 rounded-full transition-colors duration-300 relative ${h.enabled?"bg-[#0094f7]":"bg-gray-300"}`,children:u.jsx("span",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-md transition-transform duration-300 block ${h.enabled?"translate-x-7":"translate-x-1"}`})})]})]})}),u.jsx("div",{className:"modal-footer",children:u.jsxs("div",{className:"flex gap-3 w-full",children:[u.jsx("button",{onClick:()=>r(!1),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",children:"取消"}),u.jsxs("button",{onClick:_,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",children:[u.jsx(va,{className:"w-4 h-4"}),"保存更改"]})]})})]})}),document.body),l&&Bt.createPortal(u.jsx("div",{className:"modal-overlay-centered",children:u.jsxs("div",{className:"modal-container",style:{maxWidth:"780px"},children:[u.jsxs("div",{className:"modal-header flex items-center justify-between gap-4",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"添加新卡密"}),u.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"选择交付方式并录入自动发货内容"})]}),u.jsx("button",{onClick:()=>s(!1),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors flex-shrink-0",title:"关闭",children:u.jsx(fn,{className:"w-5 h-5 text-gray-500"})})]}),u.jsx("div",{className:"modal-body",children:u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"卡密名称"}),u.jsx("input",{type:"text",value:y.name,onChange:A=>p({...y,name:A.target.value}),placeholder:"例如:VIP会员卡密",className:"w-full ios-input px-4 py-3 rounded-xl"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"类型"}),u.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:[u.jsxs("button",{type:"button",onClick:()=>p({...y,type:"data",content:""}),className:`p-3 rounded-xl font-bold transition-all ${y.type==="data"?"bg-[#0094f7] text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:[u.jsx(Oy,{className:"w-5 h-5 mx-auto mb-1"}),"批量库存"]}),u.jsxs("button",{type:"button",onClick:()=>p({...y,type:"text",content:""}),className:`p-3 rounded-xl font-bold transition-all ${y.type==="text"?"bg-[#0094f7] text-white":"bg-gray-100 text-gray-600"}`,children:[u.jsx(lj,{className:"w-5 h-5 mx-auto mb-1"}),"文本"]}),u.jsxs("button",{type:"button",onClick:()=>p({...y,type:"image",content:""}),className:`p-3 rounded-xl font-bold transition-all ${y.type==="image"?"bg-[#0094f7] text-white":"bg-gray-100 text-gray-Line truncated
|
||||
CODE-789012
|
||||
...`:"请输入每次发货时发送的固定文字"}),y.type==="data"&&u.jsxs("p",{className:"text-xs text-gray-500",children:["当前库存:",u.jsx("span",{className:"font-bold text-[#0094f7]",children:y.content.split(`
|
||||
`).filter(A=>A.trim()).length})," 条"]})]}),y.type==="api"&&u.jsxs("div",{className:"border-t border-gray-100 pt-5 space-y-4",children:[u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700",children:"请求方法"}),u.jsxs("select",{value:y.api_method,onChange:A=>p({...y,api_method:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[u.jsx("option",{value:"GET",children:"GET"}),u.jsx("option",{value:"POST",children:"POST"})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700",children:"超时时间(秒)"}),u.jsx("input",{type:"number",min:"1",max:"60",value:y.api_timeout,onChange:A=>p({...y,api_timeout:parseInt(A.target.value)||10}),className:"w-full ios-input px-4 py-3 rounded-xl"})]})]}),u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700",children:"请求头(JSON)"}),u.jsx("textarea",{value:y.api_headers,onChange:A=>p({...y,api_headers:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-24 resize-none font-mono text-xs",placeholder:'{"Authorization":"Bearer token"}'})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700",children:"请求参数(JSON)"}),u.jsx("textarea",{value:y.api_params,onChange:A=>p({...y,api_params:A.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-24 resize-none font-mono text-xs",placeholder:'{"order_id":"{order_id}"}'})]})]})]}),u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-[1fr_180px] gap-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700",children:"描述"}),u.jsx("input",{value:y.description,onChange:A=>p({...y,description:A.target.value}),placeholder:"卡密用途描述(可选)",className:"w-full ios-input px-4 py-3 rounded-xl"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"block text-sm font-bold text-gray-700",children:"延时发货(秒)"}),u.jsx("input",{type:"number",value:y.delay_seconds,onChange:A=>p({...y,delay_seconds:parseInt(A.target.value)||0}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"0",max:"3600"})]})]})]})}),u.jsx("div",{className:"modal-footer",children:u.jsxs("div",{className:"flex gap-3 w-full",children:[u.jsx("button",{onClick:()=>s(!1),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",children:"取消"}),u.jsxs("button",{onClick:N,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",children:[u.jsx(el,{className:"w-4 h-4"}),"添加卡密"]})]})})]})}),document.body)]})},nQ=({onConfigureDelivery:e})=>{const[t,n]=b.useState([]),[r,l]=b.useState([]),[s,d]=b.useState([]),[f,h]=b.useState(""),[m,y]=b.useState(!1),[p,x]=b.useState(!1),[w,_]=b.useState(!1),[j,N]=b.useState(!1),[O,D]=b.useState(!1),[A,C]=b.useState(!1),[P,M]=b.useState(!1),[$,L]=b.useState("upload"),[Q,z]=b.useState(null),[X,V]=b.useState(null),[he,fe]=b.useState(null),[se,q]=b.useState(null),[te,ae]=b.useState(null),[Z,B]=b.useState({}),[k,K]=b.useState({cookie_id:"",item_id:"",item_title:"",item_price:"",item_image:"",is_multi_spec:!1,is_multi_qty_ship:!1}),[F,ue]=b.useState({cookie_id:"",title:"",description:"",price:"",original_price:"",quantity:"1",postage_mode:"free",postage:"",images:[]}),ve=async()=>{const T=await vo();n(T)},ye=async()=>{l(await kd())};b.useEffect(()=>{Promise.all([Lp(),vo(),kd()]).then(([T,be,Re])=>{d(T),n(be),l(Re)}).catch(T=>console.error("加载商品配置失败:",T))},[]),b.useEffect(()=>{if(!P||!(se!=null&&se.id)||se.status!=="running")return;const T=window.setInterval(async()=>{try{const be=await ed(se.id);q(be),be.status!=="running"&&(L("done"),await ve(),await ye())}catch(be){console.error("刷新批量铺货进度失败:",be)}},3e3);return()=>window.clearInterval(T)},[P,se==null?void 0:se.id,se==null?void 0:se.status]);const _e=async()=>{if(!f)return alert("请先选择账号");y(!0);try{const T=await yD(f);await ve(),alert((T==null?void 0:T.message)||"商品同步完成")}catch(T){console.error("同步商品失败:",T),alert((T==null?void 0:T.message)||"同步失败,请重试")}finally{y(!1)}},Pe=T=>{ae(T),B({...T}),N(!0)},R=async()=>{if(te)try{await SD(te.cookie_id,te.item_id,{item_title:Z.item_title||"",item_description:Z.item_description||"",item_category:Z.item_category||"",item_price:Z.item_price||"",item_detail:Z.item_detail||te.item_detail||"",is_multi_spec:!!Z.is_multi_spec,multi_quantity_delivery:!!(Z.is_multi_qty_ship??Z.multi_quantity_delivery)}),await ve(),await ye(),N(!1),ae(null)}catch(T){console.error("更新商品失败:",T),alert("更新失败,请重
Line truncated
|
||||
`),mt=new Blob(["\uFEFF"+Re],{type:"text/csv;charset=utf-8"}),Kt=URL.createObjectURL(mt),Yt=document.createElement("a");Yt.href=Kt,Yt.download="批量铺货模板.csv",document.body.appendChild(Yt),Yt.click(),Yt.remove(),URL.revokeObjectURL(Kt)},mr=async T=>{const be=!T.is_multi_spec;n(Re=>Re.map(mt=>mt.cookie_id===T.cookie_id&&mt.item_id===T.item_id?{...mt,is_multi_spec:be}:mt));try{await ND(T.cookie_id,T.item_id,be)}catch(Re){console.error("切换状态失败:",Re),await ve()}},bn=async T=>{const be=!T.is_multi_qty_ship;n(Re=>Re.map(mt=>mt.cookie_id===T.cookie_id&&mt.item_id===T.item_id?{...mt,is_multi_qty_ship:be,multi_quantity_delivery:be}:mt));try{await AD(T.cookie_id,T.item_id,be)}catch(Re){console.error("切换状态失败:",Re),await ve()}},re=()=>{K(T=>({...T,cookie_id:f||T.cookie_id})),D(!0)},Me=()=>{ue(T=>({...T,cookie_id:f||T.cookie_id})),C(!0)},Le=T=>r.filter(be=>be.cookie_id===T.cookie_id&&be.item_id===T.item_id),H=T=>{switch(T){case"preview":return"待确认";case"pending":return"等待中";case"running":return"发布中";case"success":return"成功";case"failed":return"失败";case"completed":return"已完成";case"canceled":return"已取消";default:return T||"-"}},pe=T=>{switch(T){case"success":case"completed":return"bg-emerald-50 text-emerald-700 border-emerald-100";case"failed":return"bg-red-50 text-red-700 border-red-100";case"running":return"bg-blue-50 text-blue-700 border-blue-100";case"canceled":return"bg-gray-100 text-gray-600 border-gray-200";default:return"bg-amber-50 text-amber-700 border-amber-100"}};return u.jsxs("div",{className:"space-y-6 animate-fade-in",children:[u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsxs("div",{children:[u.jsx("h2",{className:"text-3xl font-bold text-gray-900",children:"商品管理"}),u.jsx("p",{className:"text-gray-500 mt-2 text-sm",children:"监控并管理所有账号下的闲鱼商品。"})]}),u.jsxs("div",{className:"flex gap-3",children:[u.jsxs("select",{className:"ios-input px-4 py-3 rounded-xl text-sm",value:f,onChange:T=>h(T.target.value),children:[u.jsx("option",{value:"",children:"选择账号以同步"}),s.map(T=>u.jsx("option",{value:T.id,children:T.nickname},T.id))]}),u.jsxs("button",{onClick:_e,disabled:m||!f,className:"ios-btn-primary flex items-center gap-2 px-6 py-3 rounded-2xl font-bold shadow-lg shadow-blue-200 disabled:opacity-50",children:[u.jsx(cr,{className:`w-4 h-4 ${m?"animate-spin":""}`}),"同步商品"]}),u.jsxs("button",{onClick:re,className:"px-5 py-3 rounded-2xl font-bold bg-gray-900 text-white hover:bg-gray-800 transition-colors flex items-center gap-2 shadow-lg",children:[u.jsx(el,{className:"w-4 h-4"}),"添加商品"]}),u.jsxs("button",{onClick:Me,className:"px-5 py-3 rounded-2xl font-bold bg-emerald-600 text-white hover:bg-emerald-700 transition-colors flex items-center gap-2 shadow-lg shadow-emerald-100",children:[u.jsx(Hv,{className:"w-4 h-4"}),"发布商品"]}),u.jsxs("button",{onClick:Oe,className:"px-5 py-3 rounded-2xl font-bold bg-blue-600 text-white hover:bg-blue-700 transition-colors flex items-center gap-2 shadow-lg shadow-blue-100",children:[u.jsx(Jc,{className:"w-4 h-4"}),"批量铺货"]})]})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[u.jsxs("div",{className:"bg-white border border-blue-100 rounded-2xl p-5 flex items-start gap-4 shadow-sm",children:[u.jsx("div",{className:"w-10 h-10 rounded-xl bg-blue-50 text-[#0094f7] flex items-center justify-center shrink-0",children:u.jsx(ky,{className:"w-5 h-5"})}),u.jsxs("div",{children:[u.jsx("div",{className:"font-extrabold text-gray-900",children:"多规格:按买家选择匹配库存"}),u.jsx("p",{className:"text-sm text-gray-500 mt-1 leading-6",children:"开启后,在发货规则中配置“规格名称 + 规格值 → 卡密库存”,例如套餐 / 30天。"})]})]}),u.jsxs("div",{className:"bg-white border border-emerald-100 rounded-2xl p-5 flex items-start gap-4 shadow-sm",children:[u.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0",children:u.jsx(ij,{className:"w-5 h-5"})}),u.jsxs("div",{children:[u.jsx("div",{className:"font-extrabold text-gray-900",children:"按购买数量发货:自动倍增份数"}),u.jsx("p",{className:"text-sm text-gray-500 mt-1 leading-6",children:"开启后,买家购买 3 件就执行规则 3 次;规则中的“每件份数”会继续相乘。"})]})]})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:[t.map(T=>{const be=Le(T),Re=be.length>0;return u.jsxs("div",{className:"ios-card p-4 rounded-3xl hover:shadow-lg transition-all group relative flex flex-col",children:[u.jsxs("div",{className:"absolute top-3 right-3 flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity z-10",children:[u.jsx("button",{onClick:()=>Pe(T),className:"p-2 bg-white/90 backdrop-blur rounded-lg shadow-md text-gray-600 hover:bg-[#0094f7] hover:text-white
Line truncated
|
||||
@@ -6,8 +6,8 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Ydisks闲鱼助手 - 自动发货与管家系统</title>
|
||||
<meta name="description" content="Ydisks闲鱼助手 - 自动回复、自动发货、订单管理、AI智能议价一体化解决方案" />
|
||||
<script type="module" crossorigin src="/static/assets/index-C_Qt2oyU.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/static/assets/index-BJ2crTGt.css">
|
||||
<script type="module" crossorigin src="/static/assets/index-WBalEejH.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/static/assets/index-CH_QnlBb.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
Reference in new issue
Block a user