diff --git a/.example.env b/.example.env index a4af03ca3422865e33fa18695fb59fba613d041b..f03003623627dc5f96d5558e29f2ce7eb10ad5ef 100644 --- a/.example.env +++ b/.example.env @@ -12,4 +12,6 @@ DB_CHARSET = utf8mb4 DEFAULT_LANG = zh-cn # 前端项目地址 -WEB_PATH = ./web \ No newline at end of file +WEB_PATH = ./web + +H5_DOMAIN="https://flimsm.demo.10000.wiki" diff --git a/.gitignore b/.gitignore index 1744322a336c768c8173daf02321ed4bb9be11c2..4daddd8531a226b41f347c62c629941c24f0b3be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ /.env composer.phar -composer.lock +# composer.lock .DS_Store Thumbs.db vendor @@ -8,6 +8,7 @@ vendor .buildpath .project /public/*.ini -/public/storage +# /public/storage .vscode .idea +.user.ini diff --git a/app/admin/controller/AdminController.php b/app/admin/controller/AdminController.php index 1deb56e6aecbc913c259525867bedfabdecf2a7c..f8a0c2a888a05176b82be1f58e03291bfecd184d 100644 --- a/app/admin/controller/AdminController.php +++ b/app/admin/controller/AdminController.php @@ -96,6 +96,4 @@ class AdminController extends Controller $model->allowField(['mobile', 'nickname', 'email', 'avatar_id'])->save($data); return $this->success(); } - - -} \ No newline at end of file +} diff --git a/app/admin/controller/BaseController.php b/app/admin/controller/BaseController.php new file mode 100644 index 0000000000000000000000000000000000000000..3f10ddc782737b4b290421a9f815200fb439d015 --- /dev/null +++ b/app/admin/controller/BaseController.php @@ -0,0 +1,34 @@ + $code, + 'msg' => $msg, + 'data' => $data + ]); + } + + /** + * 返回失败 + */ + protected function error($msg = 'error', $code = 400, $data = []): Json + { + return json([ + 'code' => $code, + 'msg' => $msg, + 'data' => $data + ]); + } +} \ No newline at end of file diff --git a/app/admin/controller/Controller.php b/app/admin/controller/Controller.php index 3f7f72514614a6df5c7be40978cce56a74b2b084..623294e54e0c29959a73f060becec133a26cfc7a 100644 --- a/app/admin/controller/Controller.php +++ b/app/admin/controller/Controller.php @@ -2,6 +2,7 @@ namespace app\admin\controller; +use app\admin\service\BaseService; use app\BaseController; use app\common\attribute\Auth; use app\common\attribute\Method; @@ -9,6 +10,7 @@ use app\common\model\BaseModel; use think\db\exception\DbException; use think\response\Json; use think\Validate; +use think\Exception; class Controller extends BaseController { @@ -18,12 +20,18 @@ class Controller extends BaseController * @var array|string[] */ protected array $sqlTerm = ['=', '>', '<>', '<', '>=', '<=']; + /** + * 排序字段 + * @var ?array + */ + protected ?array $sorterKey = null; /** * 关联预载入模型 * @var array */ protected array $withModel = []; + protected array $detailWithModel = []; /** * 快速查询字段 @@ -36,6 +44,20 @@ class Controller extends BaseController * @var array */ protected array $searchField = []; + protected array $field = []; + + /** + * 权限控制 + * @var array + */ + protected array $scopeKey = []; + protected null|string|array $groupField = null; + + // /** + // * 当前控制器模型 + // * @var BaseService|null + // */ + // protected null|BaseService $service = null; /** * 当前控制器模型 @@ -63,8 +85,11 @@ class Controller extends BaseController 'page' => $params['current'] ?? 1, ]; $pk = $this->model->getPk(); - $order = [$pk => 'desc']; + $order = empty($this->sorterKey) ? [$pk => 'desc'] : $this->sorterKey; $where = []; + $whereOr = []; + $hasWhere = []; + $has = []; // 构建排序 if (isset($params['sorter']) && $params['sorter']) { @@ -77,9 +102,12 @@ class Controller extends BaseController } // 快速搜索 - $modelTable = strtolower($this->model->getTable()); - $alias[$modelTable] = parse_name(basename(str_replace('\\', '/', get_class($this->model)))); - $tableAlias = $alias[$modelTable] . '.'; + // $modelTable = strtolower($this->model->getTable()); + // $alias[$modelTable] = parse_name(basename(str_replace('\\', '/', get_class($this->model)))); + // $tableAlias = $alias[$modelTable] . '.'; + $reflection = new \ReflectionClass($this->model); + $modelClassName = $reflection->getShortName(); + $tableAlias = $modelClassName . '.'; if (isset($params['keyword']) && $params['keyword'] != '') { $quickSearchArr = $this->quickSearchField; foreach ($quickSearchArr as $k => $v) { @@ -117,9 +145,100 @@ class Controller extends BaseController $where[] = [$key, '<=', $end]; continue; } + + if (is_array($op)) { + if ($op['type'] === 'hasWhere') { + $where2 = []; + $field2 = $op['field']; + $op2 = $op['op']; + if (in_array($op2, $this->sqlTerm)) { + $where2[] = [$field2, $op2, $params[$key]]; + } else if ($op2 == 'like') { + $where2[] = [$field2, $op2, '%' . $params[$key] . '%']; + } + if (count($where2) > 0) { + $hasWhere[] = [$op['relation'], $where2]; + } + + continue; + } elseif ($op['type'] === 'has') { + $where2 = []; + $op2 = $op['op']; + if (in_array($op2, $this->sqlTerm)) { + $where2 = [$op2, $params[$key]]; + } else if ($op2 == 'like') { + $where2 = [$op2, '%' . $params[$key] . '%']; + } else if ($op2 == 'boolean') { + if ($params[$key] === true || $params[$key] === 'true') { + $where2 = ['>', 0]; + } else if ($params[$key] === false || $params[$key] === 'false') { + $where2 = ['<', 1]; + } + } + if (count($where2) > 0) { + $has[] = [$op['relation'], $where2]; + } + continue; + } elseif ($op['type'] === 'orWhere') { + $where2 = []; + $relation2 = $op['relation']; + foreach ($relation2 as $field2 => $op2) { + + if (in_array($op2, $this->sqlTerm)) { + $whereOr[] = [$field2, $op2, $params[$key]]; + continue; + } + if ($op2 == 'like') { + $whereOr[] = [$field2, $op2, '%' . $params[$key] . '%']; + continue; + } + } + continue; + } + continue; + } } } - return [$where, $paginate, $order]; + return [$where, $paginate, $order, $hasWhere, $has, $whereOr]; + } + + /** + * 基础控制器查询方法 + * @return Json + * @throws DbException + */ + #[Auth('detail'), Method('GET')] + public function detail(): Json + { + + if (!$this->model) return $this->warn('当前控制器未设置模型'); + + list($where) = $this->buildSearch(); + + $query = $this->model + ->with($this->detailWithModel); + $reflection = new \ReflectionClass($this->model); + $modelClassName = $reflection->getShortName(); + $query->alias($modelClassName); + + + + $newWhere = []; + foreach ($where as $value) { + if (!str_contains($value[0], '.')) { + $newWhere[] = [$modelClassName . '.' . $value[0], $value[1], $value[2]]; + } else { + $newWhere[] = $value; + } + } + + + $res = $query->where($newWhere) + ->find(); + if ($res) { + return $this->success($res->toArray()); + } + return $this->error('数据为空'); } /** @@ -130,14 +249,90 @@ class Controller extends BaseController #[Auth('list'), Method('GET')] public function list(): Json { - if(!$this->model) return $this->warn('当前控制器未设置模型'); - list($where, $paginate, $order) = $this->buildSearch(); - $list = $this->model - ->with($this->withModel) - ->where($where) - ->order($order) - ->paginate($paginate) + if (!$this->model) return $this->warn('当前控制器未设置模型'); + list($where, $paginate, $order, $hasWhere, $has, $whereOr) = $this->buildSearch(); + $query = $this->model + ->with($this->withModel); + + $reflection = new \ReflectionClass($this->model); + $modelClassName = $reflection->getShortName(); + $query->alias($modelClassName); + + $role = Auth::getRole(); + if ($role !== 'Admin') { + foreach ($this->scopeKey as $scopeKey) { + $query->scope($scopeKey); + } + } + + foreach ($hasWhere as $value) { + $query->hasWhere($value[0], $value[1]); + } + foreach ($has as $value) { + $query->has($value[0], $value[1][0], $value[1][1]); + } + $newWhere = []; + foreach ($where as $value) { + if (!str_contains($value[0], '.')) { + $newWhere[] = [$modelClassName . '.' . $value[0], $value[1], $value[2]]; + } else { + $newWhere[] = $value; + } + } + $query + ->where($newWhere); + + $newWhereOr = []; + foreach ($whereOr as $value) { + if (!str_contains($value[0], '.')) { + $newWhereOr[] = [$modelClassName . '.' . $value[0], $value[1], $value[2]]; + } else { + $newWhereOr[] = $value; + } + } + if (count($newWhereOr) > 0) { + $query + ->whereOr(field: $newWhereOr); + } + // throw new DbException(json_encode($newWhere)); + + $field = $this->field; + if (count($field) === 0) { + $field = [$modelClassName . '.' . '*']; + } else { + foreach ($field as $key => $value) { + if (!str_contains($value, '.')) { + $field[$key] = $modelClassName . '.' . $value; + } + } + } + + $query->field($field); + + $groupField = $this->groupField; + if ($groupField) { + if (!is_array($groupField)) { + $groupField = [$groupField]; + } + foreach ($groupField as $key => $value) { + if (!str_contains($value, '.')) { + $groupField[$key] = $modelClassName . '.' . $value; + } + } + } + if ($role !== 'Admin' && count($this->scopeKey) > 0) { + $query->group($this->groupField ? $this->groupField : $modelClassName . '.' . 'id'); + } + + $order2 = []; + foreach ($order as $key => $value) { + if (!str_contains($value, '.')) { + $order2[$modelClassName . '.' . $key] = $value; + } + } + $list = $query->order($order2)->paginate($paginate) ->toArray(); + return $this->success($list); } @@ -148,8 +343,8 @@ class Controller extends BaseController #[Auth('add'), Method('POST')] public function add(): Json { - if(!$this->model) return $this->warn('当前控制器未设置模型'); - if(!$this->validate) return $this->warn('当前控制器未设置验证器'); + if (!$this->model) return $this->warn('当前控制器未设置模型'); + if (!$this->validate) return $this->warn('当前控制器未设置验证器'); $data = $this->request->post(); if (!$this->validate->scene('add')->check($data)) { return $this->error($this->validate->getError()); @@ -165,8 +360,8 @@ class Controller extends BaseController #[Auth('edit'), Method('PUT')] public function edit(): Json { - if(!$this->model) return $this->warn('当前控制器未设置模型'); - if(!$this->validate) return $this->warn('当前控制器未设置验证器'); + if (!$this->model) return $this->warn('当前控制器未设置模型'); + if (!$this->validate) return $this->warn('当前控制器未设置验证器'); $data = $this->request->param(); if (!$this->validate->scene('edit')->check($data)) { return $this->warn($this->validate->getError()); @@ -182,7 +377,7 @@ class Controller extends BaseController #[Auth('delete'), Method('DELETE')] public function delete(): Json { - if(!$this->model) return $this->warn('当前控制器未设置模型'); + if (!$this->model) return $this->warn('当前控制器未设置模型'); $data = $this->request->param(); if (!isset($data['ids'])) { return $this->error('请选择ID'); @@ -196,6 +391,4 @@ class Controller extends BaseController return $this->warn('没有删除任何数据'); } } - - -} \ No newline at end of file +} diff --git a/app/admin/controller/DeviceController.php b/app/admin/controller/DeviceController.php new file mode 100644 index 0000000000000000000000000000000000000000..e1d56a7d7178ef33b74788c4d0935c80424e86a4 --- /dev/null +++ b/app/admin/controller/DeviceController.php @@ -0,0 +1,108 @@ + 'desc' + // ]; + protected array $field = [ + 'DeviceModel.*', + ]; + protected array $withModel = [ + // 'flanges' + ]; + protected array $detailWithModel = [ + // 'flanges' + ]; + protected array $searchField = [ + 'project_id' => '=', + 'id' => '=', + 'name' => 'like', + 'flange_code' => [ + 'type' => 'hasWhere', + 'relation' => 'flanges', + 'field' => 'code', + 'op' => 'like', + ], + // 'has_flange' => [ + // 'type' => 'has', + // 'relation' => 'flanges', + // 'op' => 'boolean', + // ], + ]; + + protected DeviceService $service; + + public function initialize(): void + { + parent::initialize(); + $this->model = new DeviceModel(); + $this->service = new DeviceService(); + $this->validate = new DeviceValidate(); + } + + /** + * 添加装置 + * @return Json + */ + public function add(): Json + { + $param = $this->request->param(); + + try { + validate(DeviceValidate::class) + ->scene('add') + ->check($param); + } catch (ValidateException $e) { + return $this->error($e->getMessage()); + } + + try { + $result = $this->service->add($param); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 编辑装置 + * @return Json + */ + public function edit(): Json + { + $param = $this->request->param(); + + try { + validate(DeviceValidate::class) + ->scene('edit') + ->check($param); + } catch (ValidateException $e) { + return $this->error($e->getMessage()); + } + + try { + $result = $this->service->edit($param['id'], $param); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } +} diff --git a/app/admin/controller/FeedbackController.php b/app/admin/controller/FeedbackController.php new file mode 100644 index 0000000000000000000000000000000000000000..7a7932141132ea03d6b0a0aa14f537f791153294 --- /dev/null +++ b/app/admin/controller/FeedbackController.php @@ -0,0 +1,103 @@ + '=', + 'name' => 'like' + ]; + + protected FeedbackService $service; + + public function initialize(): void + { + parent::initialize(); + $this->model = new FeedbackModel(); + $this->service = new FeedbackService(); + $this->validate = new FeedbackValidate(); + } + + + + /** + * 添加反馈 + * @return Json + */ + public function add(): Json + { + $param = $this->request->param(); + + try { + validate(FeedbackValidate::class) + ->scene('add') + ->check($param); + } catch (ValidateException $e) { + return $this->error($e->getMessage()); + } + + try { + $result = $this->service->add($param); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 添加反馈 + * @return Json + */ + public function addReply(): Json + { + $param = $this->request->param(); + + try { + validate(FeedbackValidate::class) + ->scene('add') + ->check($param); + } catch (ValidateException $e) { + return $this->error($e->getMessage()); + } + + try { + $result = $this->service->addReply($param); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 添加反馈 + * @return Json + */ + public function getItemList(): Json + { + $param = $this->request->param(); + + try { + $result = $this->service->getItemList($param); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + +} diff --git a/app/admin/controller/FlangeController.php b/app/admin/controller/FlangeController.php new file mode 100644 index 0000000000000000000000000000000000000000..559234ec6311ec66bd73debe9ddbed252300de56 --- /dev/null +++ b/app/admin/controller/FlangeController.php @@ -0,0 +1,193 @@ + '=', + 'name' => 'like', + 'location' => 'like', + 'project_id' => '=', + 'device_id' => '=', + 'code' => 'like', + // 'keyword' => [ + // 'type' => 'orWhere', + // 'relation' => [ + // 'name' => 'like', + // 'code' => 'like', + // ], + // ], + // 'flange_code' => [ + // 'type' => 'hasWhere', + // 'relation' => 'flanges', + // 'field' => 'code', + // 'op' => 'like', + // ], + // 'has_flange' => [ + // 'type' => 'has', + // 'relation' => 'flanges', + // 'op' => 'boolean', + // ], + ]; + + protected FlangeService $service; + + public function initialize(): void + { + parent::initialize(); + $this->model = new FlangeModel(); + $this->service = new FlangeService(); + $this->validate = new FlangeValidate(); + } + /** + * 获取法兰参数列表 + */ + public function getParams(): Json + { + try { + $result = FlangeParamModel::order('index', 'desc')->select()->toArray(); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 添加法兰 + */ + public function add(): Json + { + $param = $this->request->param(); + + try { + validate(FlangeValidate::class) + ->scene('add') + ->check($param); + } catch (ValidateException $e) { + return $this->error($e->getMessage()); + } + + try { + $result = (new FlangeService())->add($param); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 编辑法兰 + */ + public function edit(): Json + { + $param = $this->request->param(); + + try { + validate(FlangeValidate::class) + ->scene('edit') + ->check($param); + } catch (ValidateException $e) { + return $this->error($e->getMessage()); + } + + try { + $result = (new FlangeService())->edit($param['id'], $param); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 法兰 + */ + public function finish(): Json + { + $param = $this->request->param(); + + try { + validate(FlangeValidate::class) + ->scene('edit') + ->check($param); + } catch (ValidateException $e) { + return $this->error($e->getMessage()); + } + + try { + $result = (new FlangeService())->finish($param['id'], $param); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 获取法兰参数模板 + */ + public function getParamTemplates() + { + try { + (new FlangeService())->getParamTemplates(); + return $this->success([]); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 从模版导入法兰 + */ + public function batchImportFromExcel() + { + // try { + $param = $this->request->param(); + $files = request()->file(); + $file = array_values($files)[0]; + $excelFilePath = app()->getRuntimePath() . 'storage/' . \think\facade\Filesystem::disk('runtime')->putFile('flange_import', $file); + + $result = (new FlangeService())->batchImportFromExcel($param['device_id'], $excelFilePath); + return $this->success($result); + // } catch (\Exception $e) { + // return $this->error($e->getMessage()); + // } + } + + /** + * 导出法兰 + */ + public function exportExcelFile() + { + // try { + $param = $this->request->param(); + $ids = $param['ids']; + + (new FlangeService())->exportExcelFile($ids); + return $this->success([]); + // } catch (\Exception $e) { + // return $this->error($e->getMessage()); + // } + } +} diff --git a/app/admin/controller/FlangeParamController.php b/app/admin/controller/FlangeParamController.php new file mode 100644 index 0000000000000000000000000000000000000000..364960c10df82fa9cbe247ac069bae5674802897 --- /dev/null +++ b/app/admin/controller/FlangeParamController.php @@ -0,0 +1,40 @@ + 'desc']; + protected array $searchField = [ + 'id' => '=', + 'code' => 'like', + 'name' => 'like', + 'type' => '=', + 'show_table' => '=', + 'is_param' => '=', + 'is_tpl' => '=', + 'group_name' => 'like', + ]; + + protected FlangeParamService $service; + + public function initialize(): void + { + parent::initialize(); + $this->model = new FlangeParamModel(); + $this->service = new FlangeParamService(); + $this->validate = new FlangeParamValidate(); + } +} diff --git a/app/admin/controller/FlangeQrcodeController.php b/app/admin/controller/FlangeQrcodeController.php new file mode 100644 index 0000000000000000000000000000000000000000..064b6414bd699f3d2999a960ef025321210eb3b6 --- /dev/null +++ b/app/admin/controller/FlangeQrcodeController.php @@ -0,0 +1,149 @@ + '=', + 'code' => 'like', + 'flange_code' => 'like', + 'status' => '=', + ]; + + protected FlangeQrcodeService $service; + + public function initialize(): void + { + parent::initialize(); + $this->model = new FlangeQrcodeModel(); + $this->service = new FlangeQrcodeService(); + $this->validate = new FlangeQrcodeValidate(); + } + + /** + * 生成二维码 + */ + public function generate() + { + $param = $this->request->param(); + + try { + validate(FlangeQrcodeValidate::class) + ->scene('generate') + ->check($param); + } catch (ValidateException $e) { + return $this->error($e->getMessage()); + } + + try { + $result = (new FlangeQrcodeService())->generate($param); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 批量生成二维码 + */ + public function batchGenerate() + { + $param = $this->request->param(); + + try { + validate(FlangeQrcodeValidate::class) + ->scene('batchGenerate') + ->check($param); + } catch (ValidateException $e) { + return $this->error($e->getMessage()); + } + + try { + $result = (new FlangeQrcodeService())->batchGenerate( + $param['count'], + $param['batch_name'] ?? null + ); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 绑定法兰 + */ + public function bindFlange() + { + $param = $this->request->param(); + + try { + validate(FlangeQrcodeValidate::class) + ->scene('bind') + ->check($param); + } catch (ValidateException $e) { + return $this->error($e->getMessage()); + } + + try { + $result = (new FlangeQrcodeService())->bindFlange( + $param['qrParam'], + $param['flangeParam'] + ); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 解绑法兰 + */ + public function unbindFlange() + { + $id = $this->request->param('id/d'); + if (empty($id)) { + return $this->error('参数错误'); + } + + try { + $result = (new FlangeQrcodeService())->unbindFlange($id); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 导出 + */ + public function exportByIds() + { + $param = $this->request->param(); + + + try { + (new FlangeQrcodeService())->exportByIds( + $param['ids'], + ); + return $this->success([]); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } +} diff --git a/app/admin/controller/IndexController.php b/app/admin/controller/IndexController.php index 4b153d095710ea2c1a02a985c65e85a957c6dabd..d07b7b4f5946d87c87139a0335d2079a9c29d551 100644 --- a/app/admin/controller/IndexController.php +++ b/app/admin/controller/IndexController.php @@ -42,8 +42,9 @@ class IndexController extends Controller $Token = new Token; $Token->delete($token); $user_id = $Token->get($reToken)['user_id']; + $user_role = $Token->get($reToken)['user_role']; $token = md5(random_bytes(10)); - $Token->set($token, 'admin', $user_id); + $Token->set($token, 'admin', $user_id, $user_role); return $this->success(compact('token')); } else { return $this->error('请先登录!'); @@ -99,7 +100,6 @@ class IndexController extends Controller } return $this->warn('请选择登录方式!'); - } /** @@ -143,5 +143,4 @@ class IndexController extends Controller $menus = $this->getTreeData($menus); return $this->success(compact('menus', 'access', 'info')); } - -} \ No newline at end of file +} diff --git a/app/admin/controller/LogController.php b/app/admin/controller/LogController.php new file mode 100644 index 0000000000000000000000000000000000000000..97336a1ebaf82d0a71bff4276105121921dedab5 --- /dev/null +++ b/app/admin/controller/LogController.php @@ -0,0 +1,66 @@ + '=', + 'project_id' => '=', + 'device_id' => '=', + 'flange_id' => '=', + ]; + + protected LogService $service; + + public function initialize(): void + { + parent::initialize(); + $this->model = new LogModel(); + $this->service = new LogService(); + $this->validate = new LogValidate(); + } + public function getList(): Json + { + try { + $param = $this->request->param(); + $where = []; + foreach ($this->searchField as $field => $op) { + $condition = $param[$field] ?? false; + if ($condition) { + $where[] = [$field, $op, $condition]; + } + } + if (count($where) === 0) { + throw new \Exception('非法请求'); + } + $paginate = [ + 'list_rows' => $param['pageSize'] ?? 10, + 'page' => $param['current'] ?? 1, + ]; + $result = $this->model->where($where)->order('create_time', 'desc')->paginate($paginate) + ->toArray(); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } +} diff --git a/app/admin/controller/ProjectController.php b/app/admin/controller/ProjectController.php new file mode 100644 index 0000000000000000000000000000000000000000..50533f7a44d466e7176e66756e445780280f5d02 --- /dev/null +++ b/app/admin/controller/ProjectController.php @@ -0,0 +1,184 @@ + '=', + 'name' => 'like' + ]; + + protected ProjectService $service; + + public function initialize(): void + { + parent::initialize(); + $this->model = new ProjectModel(); + $this->service = new ProjectService(); + $this->validate = new ProjectValidate(); + } + + + + /** + * 添加项目 + * @return Json + */ + public function add(): Json + { + $param = $this->request->param(); + + try { + validate(ProjectValidate::class) + ->scene('add') + ->check($param); + } catch (ValidateException $e) { + return $this->error($e->getMessage()); + } + + try { + $result = $this->service->add($param); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * 编辑项目 + * @return Json + */ + public function edit(): Json + { + $param = $this->request->param(); + + try { + validate(ProjectValidate::class) + ->scene('edit') + ->check($param); + } catch (ValidateException $e) { + return $this->error($e->getMessage()); + } + + try { + $result = $this->service->edit($param['id'], $param); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + + /** + * 获取项目统计信息 + * @return Json + */ + public function statistics(): Json + { + $param = $this->request->param(); + + try { + $result = $this->service->getStatistics($param); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + public function analysis(): Json + { + + try { + $result = $this->service->getAnalysis(); + return $this->success($result); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + public function getAddressBook(): Json + { + try { + $user_id = Auth::getAdminId(); + $projectRelationModel = new ProjectRelationModel(); + $project_ids = $projectRelationModel->getAuthProjectIds($user_id); + $user_projects = $projectRelationModel->getAuthUserProjects($project_ids); + $user_ids = array_keys($user_projects); + + $users = (new AdminModel())->where('id', 'in', $user_ids)->select()->toArray(); + + $project_names = $this->model->where('id', 'in', $project_ids)->column(['name'], 'id'); + foreach ($users as &$user) { + $user_id = $user['id']; + $user['projects'] = []; + foreach ($user_projects[$user_id] as $project_id) { + $user['projects'][] = [ + 'id' => $project_id, + 'name' => $project_names[$project_id] + ]; + } + } + + return $this->success($users); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + public function feedbackRelations(): Json + { + try { + $param = $this->request->param(); + $paginate = [ + 'list_rows' => $param['pageSize'] ?? 10, + 'page' => $param['current'] ?? 1, + ]; + + $user_id = Auth::getAdminId(); + $projectRelationModel = new ProjectRelationModel(); + $project_ids = $projectRelationModel->getAuthProjectIds($user_id); + + $feedbackRelationModel = new FeedbackRelationModel(); + $feedbackRelations = $feedbackRelationModel + ->alias('FeedbackRelationModel') + ->join('feedback FeedbackModel', 'FeedbackRelationModel.feedback_id = FeedbackModel.id') + ->join('project ProjectModel', 'FeedbackModel.project_id = ProjectModel.id') + ->where([ + ['FeedbackModel.project_id', 'in', $project_ids] + ]) + ->order([ + 'create_time' => 'desc' + ]) + ->field([ + 'FeedbackRelationModel.*', + 'FeedbackModel.flange_name', + 'FeedbackModel.flange_code', + 'ProjectModel.name as project_name' + ]) + ->paginate($paginate) + ->toArray(); + + return $this->success($feedbackRelations); + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } +} diff --git a/app/admin/controller/PublicController.php b/app/admin/controller/PublicController.php new file mode 100644 index 0000000000000000000000000000000000000000..02ed75f63f31c798423b9575881ea62b49047dae --- /dev/null +++ b/app/admin/controller/PublicController.php @@ -0,0 +1,53 @@ +request->param(); + $where = []; + if (isset($params['id'])) { + $where[] = ['id', '=', $params['id']]; + } else if (isset($params['code'])) { + $where[] = ['code', '=', $params['code']]; + } + $result = FlangeModel::where($where)->findOrEmpty()->toArray(); + return $this->success($result); + } + public function flangeQrcode(): Json + { + $params = $this->request->param(); + $where = []; + if (isset($params['id'])) { + $where[] = ['id', '=', $params['id']]; + } else if (isset($params['code'])) { + $where[] = ['code', '=', $params['code']]; + } + $result = FlangeQrcodeModel::where($where)->findOrEmpty()->toArray(); + return $this->success($result); + } + public function flangeParamList(): Json + { + $params = $this->request->param(); + $result = FlangeParamModel::select()->toArray(); + return $this->success($result); + } + public function projectList(): Json + { + return $this->success([]); + } + public function deviceList(): Json + { + return $this->success([]); + } +} diff --git a/app/admin/model/admin/AdminModel.php b/app/admin/model/admin/AdminModel.php index c0d0e6686b410fd6a20e5f8b8a64d99ca1bf65c0..d624bea1117df6e3885cd5cda2f2fd0e82910745 100644 --- a/app/admin/model/admin/AdminModel.php +++ b/app/admin/model/admin/AdminModel.php @@ -4,6 +4,7 @@ namespace app\admin\model\admin; use app\common\library\token\Token; use app\common\model\admin\AdminModel as BaseAdminModel; +use app\common\model\admin\AdminGroupModel; use app\common\model\file\FileModel; use Exception; use think\db\exception\DbException; @@ -20,7 +21,7 @@ class AdminModel extends BaseAdminModel */ public function login(string $username, string $password): bool|array { - try { + // try { $user = $this->where('username', $username)->find(); if (!$user) { $this->setErrorMsg('用户不存在'); @@ -42,20 +43,18 @@ class AdminModel extends BaseAdminModel $data['token'] = md5(random_bytes(10)); $data['id'] = $user['id']; if ( - $token->set($data['token'], 'admin', $user['id'], 86400) && - $token->set($data['refresh_token'], 'admin-refresh', $user['id'], 2592000) + $token->set($data['token'], 'admin', $user['id'], $user['role'], expire: 365 * 86400) && + $token->set($data['refresh_token'], 'admin-refresh', $user['id'], $user['role'], 2592000) ) { return $data; } else { $this->setErrorMsg('token 生成失败'); return false; } - - } catch (Exception $e) { - $this->setErrorMsg($e->getMessage()); - return false; - } - + // } catch (Exception $e) { + // $this->setErrorMsg($e->getMessage()); + // return false; + // } } /** @@ -107,4 +106,13 @@ class AdminModel extends BaseAdminModel ->bind(['avatar_url' => 'preview_url']); } -} \ No newline at end of file + public function getRoleAttr() + { + $role = $this->hasOne(AdminGroupModel::class, 'id', 'group_id')->field('code')->find()->toArray(); + return $role['code']; + } + // public function userRole(): HasOne + // { + // return $this->hasOne(AdminGroupModel::class, 'id', 'group_id')->bind(['role' => 'code']); + // } +} diff --git a/app/admin/model/core/DeviceModel.php b/app/admin/model/core/DeviceModel.php new file mode 100644 index 0000000000000000000000000000000000000000..54690b6b9aec9408ba0fbd0513cb73c4abaf08b6 --- /dev/null +++ b/app/admin/model/core/DeviceModel.php @@ -0,0 +1,76 @@ + 'integer', + // 'project_id' => 'integer', + // 'is_public' => 'integer', + // 'status' => 'integer', + // 'create_time' => 'integer', + // 'update_time' => 'integer' + ]; + + // 自动写入时间戳 + protected $autoWriteTimestamp = true; + + public function scopeAuth($query) + { + // $user_id = Auth::getAdminId(); + // $query->hasWhere('powers', function ($query) use ($user_id) { + // $query->where('user_id', $user_id); + // }); + // // $query->with(['powers']); + + $user_id = Auth::getAdminId(); + // $query->hasWhere('powers', function ($query) use ($user_id) { + // $query->where('user_id', $user_id); + // }); + // $query->group('project_id'); // Add this line to group by project_id + + + $query->join('flims_project_relation ProjectRelationModel', 'DeviceModel.project_id = ProjectRelationModel.project_id') + ->where('ProjectRelationModel.user_id', $user_id); + } + /** + * 关联负责人 + */ + public function powers() + { + return $this->hasMany(ProjectRelationModel::class, 'project_id', 'project_id'); + } + + /** + * 关联项目 + */ + public function project() + { + return $this->belongsTo(ProjectModel::class, 'project_id', 'id')->scope(['powers']); + } + + /** + * 关联法兰 + */ + public function flanges() + { + return $this->hasMany(FlangeModel::class, 'device_id', 'id'); + } + + /** + * 关联反馈 + */ + public function feedbacks() + { + return $this->hasMany(FeedbackModel::class, 'device_id', 'id'); + } +} diff --git a/app/admin/model/core/FeedbackModel.php b/app/admin/model/core/FeedbackModel.php new file mode 100644 index 0000000000000000000000000000000000000000..84628d1d7e0963adc0995dcef9f712e65ef410d9 --- /dev/null +++ b/app/admin/model/core/FeedbackModel.php @@ -0,0 +1,72 @@ + 'integer', + // 'flange_id' => 'integer', + // 'project_id' => 'integer', + // 'device_id' => 'integer', + // 'create_time' => 'integer', + // 'update_time' => 'integer' + ]; + + // 自动写入时间戳 + protected $autoWriteTimestamp = true; + + public function scopeAuth($query) + { + $user_id = Auth::getAdminId(); + $query->join('flims_project_relation ProjectRelationModel', 'FeedbackModel.project_id = ProjectRelationModel.project_id') + ->where('ProjectRelationModel.user_id', $user_id); + } + + /** + * 关联法兰 + */ + public function flange() + { + return $this->belongsTo(FlangeModel::class, 'flange_id', 'id'); + } + public function flangeCode() + { + return $this->belongsTo(FlangeModel::class, 'flange_id', 'id')->field('code'); + } + + /** + * 关联项目 + */ + public function project() + { + return $this->belongsTo(ProjectModel::class, 'project_id', 'id'); + } + public function projectName() + { + return $this->belongsTo(ProjectModel::class, 'project_id', 'id')->field('name'); + } + + /** + * 关联装置 + */ + public function device() + { + return $this->belongsTo(DeviceModel::class, 'device_id', 'id'); + } + + /** + * 关联反馈关系 + */ + public function relations() + { + return $this->hasMany(FeedbackRelationModel::class, 'feedback_id', 'id')->with(['replies']); + } +} \ No newline at end of file diff --git a/app/admin/model/core/FeedbackRelationModel.php b/app/admin/model/core/FeedbackRelationModel.php new file mode 100644 index 0000000000000000000000000000000000000000..217cb6ee27b7f10953ec4d0f2d8f071926f42aab --- /dev/null +++ b/app/admin/model/core/FeedbackRelationModel.php @@ -0,0 +1,71 @@ + 'integer', + // // 'feedback_id' => 'integer', + // // 'user_id' => 'integer', + // 'imgs' => 'json', + // // 'create_time' => 'integer', + // // 'update_time' => 'integer' + // ]; + + // https://doc.thinkphp.cn/v8_0/model_json_fields.html + // 设置JSON字段 + protected $json = ['imgs']; + protected $jsonAssoc = true; + + + // 自动写入时间戳 + protected $autoWriteTimestamp = true; + + /** + * 关联反馈 + */ + public function feedback() + { + return $this->belongsTo(FeedbackModel::class, 'feedback_id', 'id'); + } + + /** + * 关联反馈 + */ + public function stat() + { + return $this->belongsTo(FeedbackModel::class, 'feedback_id', 'id')->with(['flangeCode', 'projectName']); + } + /** + * 关联回复 + */ + public function replies() + { + return $this->hasMany(FeedbackReplyModel::class, 'feedback_relation_id', 'id'); + } + + /** + * 图片获取器 + */ + // public function getImgsAttr($value) + // { + // // return empty($value) ? [] : json_decode($value, true); + // } + + /** + * 图片修改器 + */ + // public function setImgsAttr($value) + // { + // return empty($value) ? '' : json_encode($value); + // } +} diff --git a/app/admin/model/core/FeedbackReplyModel.php b/app/admin/model/core/FeedbackReplyModel.php new file mode 100644 index 0000000000000000000000000000000000000000..ba1b647dad323004def948845597b2c136a9800a --- /dev/null +++ b/app/admin/model/core/FeedbackReplyModel.php @@ -0,0 +1,37 @@ + 'integer', + // 'feedback_id' => 'integer', + // 'user_id' => 'integer', + // 'imgs' => 'json', + // 'create_time' => 'integer', + // 'update_time' => 'integer' + ]; + + // 设置JSON字段 + protected $json = ['imgs']; + + // 自动写入时间戳 + protected $autoWriteTimestamp = true; + + /** + * 关联反馈 + */ + public function feedback_relation() + { + return $this->belongsTo(FeedbackRelationModel::class, 'feedback_relation_id', 'id'); + } + +} \ No newline at end of file diff --git a/app/admin/model/core/FlangeModel.php b/app/admin/model/core/FlangeModel.php new file mode 100644 index 0000000000000000000000000000000000000000..9cbb335343b60f3ca9f10b7c4d55d5e4f1d5e406 --- /dev/null +++ b/app/admin/model/core/FlangeModel.php @@ -0,0 +1,75 @@ + 'integer', + // 'project_id' => 'integer', + // 'device_id' => 'integer', + // 'type' => 'integer', + // 'status' => 'integer', + // 'create_time' => 'integer', + // 'update_time' => 'integer', + // 'data' => 'json' + ]; + protected $json = ['data']; + + // 自动写入时间戳 + protected $autoWriteTimestamp = true; + + public function scopeAuth($query) + { + $user_id = Auth::getAdminId(); + $query->join('flims_project_relation ProjectRelationModel', 'FlangeModel.project_id = ProjectRelationModel.project_id') + ->where('ProjectRelationModel.user_id', $user_id); + } + + /** + * 关联项目 + */ + public function project() + { + return $this->belongsTo(ProjectModel::class, 'project_id', 'id'); + } + + /** + * 关联装置 + */ + public function device() + { + return $this->belongsTo(DeviceModel::class, 'device_id', 'id'); + } + + /** + * 关联反馈 + */ + public function feedbacks() + { + return $this->hasMany(FeedbackModel::class, 'flange_id', 'id'); + } + + /** + * 获取参数值 + */ + public function getParamValue($code) + { + if (empty($this->data['params'])) { + return null; + } + foreach ($this->data['params'] as $param) { + if ($param['code'] === $code) { + return $param['value']; + } + } + return null; + } +} \ No newline at end of file diff --git a/app/admin/model/core/FlangeParamModel.php b/app/admin/model/core/FlangeParamModel.php new file mode 100644 index 0000000000000000000000000000000000000000..74c1519615b93200d8fce568fd9b33cd06b21ff4 --- /dev/null +++ b/app/admin/model/core/FlangeParamModel.php @@ -0,0 +1,94 @@ + 'integer', + // 'unit_list' => 'json', + // 'item_list' => 'json', + // 'index' => 'integer', + // 'create_time' => 'integer', + // 'update_time' => 'integer' + ]; + protected $json = ['unit_list', 'item_list']; + protected $jsonAssoc = true; + + + // 自动写入时间戳 + protected $autoWriteTimestamp = true; + + /** + * 获取参数配置列表 + * @return \think\Collection + */ + public static function getParamConfigs() + { + return self::order('index', 'desc')->select(); + } + /** + * 获取参数配置列表Map + * @return array + */ + public static function getParamConfigsMap() + { + $list = self::getParamConfigs(); + $result = []; + foreach ($list as $item) { + $result[$item['code']] = $item; + } + return $result; + } + + /** + * 获取指定code的参数配置 + */ + public static function getParamConfig($code) + { + return self::where('code', $code)->find(); + } + + /** + * 获取指定分组的参数配置 + */ + public static function getGroupParamConfigs($group_name) + { + return self::where('group_name', $group_name) + ->order('index', 'asc') + ->select(); + } +} diff --git a/app/admin/model/core/FlangeQrcodeModel.php b/app/admin/model/core/FlangeQrcodeModel.php new file mode 100644 index 0000000000000000000000000000000000000000..2fb0ffa7079bf153d1db5f0b4b0934ac3a7c8b7e --- /dev/null +++ b/app/admin/model/core/FlangeQrcodeModel.php @@ -0,0 +1,41 @@ + 'integer', + // 'flange_id' => 'integer', + // 'device_id' => 'integer', + // 'status' => 'integer', + // 'create_time' => 'integer', + // 'update_time' => 'integer', + // 'batch_name' => 'json' + ]; + + // 自动写入时间戳 + protected $autoWriteTimestamp = true; + + /** + * 关联法兰 + */ + public function flange() + { + return $this->belongsTo(FlangeModel::class, 'flange_id', 'id'); + } + + /** + * 关联装置 + */ + public function device() + { + return $this->belongsTo(DeviceModel::class, 'device_id', 'id'); + } +} \ No newline at end of file diff --git a/app/admin/model/core/LogModel.php b/app/admin/model/core/LogModel.php new file mode 100644 index 0000000000000000000000000000000000000000..947a7f0c9a3131b9637145952d14b7248b2a7964 --- /dev/null +++ b/app/admin/model/core/LogModel.php @@ -0,0 +1,50 @@ +join('flims_project_relation ProjectRelationModel', 'LogModel.project_id = ProjectRelationModel.project_id') + ->where('ProjectRelationModel.user_id', $user_id); + } + + /** + * 关联法兰 + */ + public function flange() + { + return $this->belongsTo(FlangeModel::class, 'flange_id', 'id'); + } + + /** + * 关联项目 + */ + public function project() + { + return $this->belongsTo(ProjectModel::class, 'project_id', 'id'); + } + + /** + * 关联装置 + */ + public function device() + { + return $this->belongsTo(DeviceModel::class, 'device_id', 'id'); + } +} \ No newline at end of file diff --git a/app/admin/model/core/ProjectModel.php b/app/admin/model/core/ProjectModel.php new file mode 100644 index 0000000000000000000000000000000000000000..c9c8afd22a7788b099a325b994ee9352ffd17e92 --- /dev/null +++ b/app/admin/model/core/ProjectModel.php @@ -0,0 +1,140 @@ + 'integer', + // 'is_public' => 'integer', + // 'status' => 'integer', + // 'create_time' => 'integer', + // 'update_time' => 'integer' + ]; + + // 自动写入时间戳 + protected $autoWriteTimestamp = true; + // 追加的字段 + protected $append = [ + 'image', + 'leaders', + 'leader_ids', + 'operators', + 'operator_ids' + ]; + + public function scopeAuth($query) + { + $user_id = Auth::getAdminId(); + $query->hasWhere('powers', ['user_id' => $user_id]); + } + /** + * 关联负责人 + */ + public function powers() + { + return $this->hasMany(ProjectRelationModel::class, 'project_id', 'id'); + } + + /** + * 关联装置 + */ + public function devices() + { + return $this->hasMany(DeviceModel::class, 'project_id', 'id'); + } + + /** + * 关联法兰 + */ + public function flanges() + { + return $this->hasMany(FlangeModel::class, 'project_id', 'id'); + } + + /** + * 关联项目关系 + */ + public function relations() + { + return $this->hasMany(ProjectRelationModel::class, 'project_id', 'id'); + } + + /** + * 关联图片 + */ + public function getImageAttr($value, $data) + { + $result = $this->hasOne(ProjectRelationModel::class, 'project_id', 'id')->where(['type' => 'image'])->findOrEmpty()->toArray(); + if (is_array($result) && !empty($result['image'])) { + return [ + 'image_id' => $result['image']['image_id'], + 'image_url' => $result['image']['image_url'], + ]; + } + return [ + 'image_id' => null, + 'image_url' => null, + ]; + } + + + /** + * 关联负责人 + */ + public function getLeadersAttr() + { + $res = $this->hasMany(ProjectRelationModel::class, 'project_id', 'id')->where('type', '=', 'leader')->select()->toArray(); + $result = []; + foreach ($res as $key => $value) { + $result[] = $value['user']; + } + return $result; + } + /** + * 关联负责人Ids + */ + public function getLeaderIdsAttr() + { + $res = $this->hasMany(ProjectRelationModel::class, 'project_id', 'id')->where('type', '=', 'leader')->select()->toArray(); + $result = []; + foreach ($res as $key => $value) { + $result[] = $value['user']['user_id']; + } + return $result; + } + + /** + * 关联操作员 + */ + public function getOperatorsAttr() + { + $res = $this->hasMany(ProjectRelationModel::class, 'project_id', 'id')->where('type', '=', 'operator')->select()->toArray(); + $result = []; + foreach ($res as $key => $value) { + $result[] = $value['user']; + } + return $result; + } + + /** + * 关联操作员Ids + */ + public function getOperatorIdsAttr() + { + $res = $this->hasMany(ProjectRelationModel::class, 'project_id', 'id')->where('type', '=', 'operator')->select()->toArray(); + $result = []; + foreach ($res as $key => $value) { + $result[] = $value['user']['user_id']; + } + return $result; + } +} diff --git a/app/admin/model/core/ProjectRelationModel.php b/app/admin/model/core/ProjectRelationModel.php new file mode 100644 index 0000000000000000000000000000000000000000..31457b9393179b696fa6d2a50ff0bf366c12e5c8 --- /dev/null +++ b/app/admin/model/core/ProjectRelationModel.php @@ -0,0 +1,118 @@ + 'integer', + // 'project_id' => 'integer', + // 'relation_id' => 'integer', + // 'relation_label' => 'integer', + // 'create_time' => 'integer', + // 'update_time' => 'integer' + ]; + + // 自动写入时间戳 + protected $autoWriteTimestamp = true; + + // 追加的字段 + protected $append = [ + 'image', + 'user' + ]; + public function getAuthProjectIds($user_id) + { + return $this->where([ + [ + 'user_id', + '=', + $user_id + ] + ])->group('project_id')->column('project_id'); + } + public function getAuthUserIds($project_ids) + { + return $this->where([ + [ + 'project_id', + 'in', + $project_ids + ] + ])->whereNotNull('user_id')->group('user_id')->column('user_id'); + } + public function getAuthUserProjects($project_ids) + { + $list = $this->where([ + [ + 'project_id', + 'in', + $project_ids + ] + ])->whereNotNull('user_id')->select(); + $result = []; + foreach ($list as $item) { + $user_id = $item['user_id']; + if(!isset($result[$user_id])) { + $result[$user_id] = []; + } + $result[$user_id][] = $item['project_id']; + } + foreach ($result as $key => $value) { + $result[$key] = array_unique($value); + } + + return $result; + } + + /** + * 关联项目 + */ + public function project() + { + return $this->belongsTo(ProjectModel::class, 'project_id', 'id'); + } + + /** + * 关联用户 + */ + public function getUserAttr($value, $data) + { + if (!$data) { + return null; + } + if (!$data['user_id']) { + return null; + } + $result = $this->belongsTo(AdminModel::class, 'user_id', 'id')->field(['id' => 'user_id', 'nickname'])->findOrEmpty(['id' => $data['user_id']]); + return $result; + } + + + /** + * 关联用户 + */ + public function getImageAttr($value, $data) + { + if (!$data) { + return null; + } + if (!$data['file_id']) { + return null; + } + $imageUrl = $this->belongsTo(FileModel::class, 'file_id', 'file_id')->findOrEmpty(['file_id' => $data['file_id']])->getAttr('preview_url'); + return [ + 'image_id' => $data['file_id'], + 'image_url' => $imageUrl, + ]; + } +} diff --git a/app/admin/model/core/StatModel.php b/app/admin/model/core/StatModel.php new file mode 100644 index 0000000000000000000000000000000000000000..190aa0c4be1755d496b2f8671d37dfdbe4a9f11a --- /dev/null +++ b/app/admin/model/core/StatModel.php @@ -0,0 +1,50 @@ +join('flims_project_relation ProjectRelationModel', 'StatModel.project_id = ProjectRelationModel.project_id') + ->where('ProjectRelationModel.user_id', $user_id); + } + + /** + * 关联法兰 + */ + public function flange() + { + return $this->belongsTo(FlangeModel::class, 'flange_id', 'id'); + } + + /** + * 关联项目 + */ + public function project() + { + return $this->belongsTo(ProjectModel::class, 'project_id', 'id'); + } + + /** + * 关联装置 + */ + public function device() + { + return $this->belongsTo(DeviceModel::class, 'device_id', 'id'); + } +} \ No newline at end of file diff --git a/app/admin/service/BaseService.php b/app/admin/service/BaseService.php new file mode 100644 index 0000000000000000000000000000000000000000..b2733043f674d573c39ccbb0cf6b26bfcba75290 --- /dev/null +++ b/app/admin/service/BaseService.php @@ -0,0 +1,72 @@ +getMessage()); + } + } + + /** + * 统一的数据检查 + */ + protected function checkExists($model, $id, $message = '数据不存在') + { + $data = $model::find($id); + if (!$data) { + throw new Exception($message); + } + return $data; + } + + /** + * 统一的关联数据处理 + */ + protected function handleRelations($model, $id, $relations, $callback) + { + if (isset($relations)) { + // 删除原有关联 + $model::where('id', $id)->delete(); + // 添加新关联 + foreach ($relations as $relation) { + $callback($relation); + } + } + } + + /** + * 统一的分页查询 + */ + protected function paginate($query, $param) + { + return $query->paginate([ + 'list_rows' => $param['pageSize'] ?? 20, + 'page' => $param['page'] ?? 1 + ]); + } +} \ No newline at end of file diff --git a/app/admin/service/DeviceService.php b/app/admin/service/DeviceService.php new file mode 100644 index 0000000000000000000000000000000000000000..2543a317dddb6d6d98f4ea3faa38f2bb5d70f13d --- /dev/null +++ b/app/admin/service/DeviceService.php @@ -0,0 +1,454 @@ +where('name', 'like', '%' . $param['name'] . '%'); + } + if (!empty($param['code'])) { + $query->where('code', 'like', '%' . $param['code'] . '%'); + } + if (!empty($param['project_id'])) { + $query->where('project_id', $param['project_id']); + } + if (isset($param['status'])) { + $query->where('status', $param['status']); + } + + // 排序 + $query->order('id', 'desc'); + + // 分页 + return $query->paginate([ + 'list_rows' => $param['pageSize'] ?? 20, + 'page' => $param['page'] ?? 1 + ]); + } + + /** + * 获取装置详情 + */ + public function getDetail($id) + { + $detail = DeviceModel::with(['project', 'flanges', 'feedbacks'])->find($id); + if (!$detail) { + throw new Exception('装置不存在'); + } + return $detail; + } + + /** + * 添加装置 + */ + public function add($param) + { + // 检查项目是否存在 + $project = ProjectModel::find($param['project_id']); + if (!$project) { + throw new Exception('项目不存在'); + } + + Db::startTrans(); + try { + $useInfo = Auth::getAdminInfo(); + $data = [ + 'name' => $param['name'], + 'description' => $param['description'] ?? '', + 'type' => $param['type'], + 'project_id' => $param['project_id'], + 'project_name' => $project->name, + 'is_public' => $param['is_public'] ?? 0, + 'creator_id' => $useInfo['id'], + 'creator_name' => $useInfo['nickname'], + // 'status' => $param['status'], + ]; + // 创建装置 + $device = DeviceModel::create($data); + + Db::commit(); + return $device->toArray(); + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 编辑装置 + */ + public function edit($id, $param) + { + $device = DeviceModel::find($id); + if (!$device) { + throw new Exception('装置不存在'); + } + + $data = [ + 'id' => $id, + 'name' => $param['name'], + 'description' => $param['description'] ?? '', + 'type' => $param['type'], + 'is_public' => $param['is_public'] ?? 0, + // 'status' => $param['status'], + ]; + // 如果修改了项目,检查新项目是否存在 + if (!empty($param['project_id']) && $param['project_id'] != $device->project_id) { + $project = ProjectModel::find($param['project_id']); + if (!$project) { + throw new Exception('项目不存在'); + } + $data['project_id'] = $param['project_id']; + $data['project_name'] = $project->name; + } + + Db::startTrans(); + try { + // 更新装置 + $device->save($data); + + Db::commit(); + return $device->toArray(); + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 删除装置 + */ + public function delete($id) + { + $device = DeviceModel::find($id); + if (!$device) { + throw new Exception('装置不存在'); + } + + // 检查是否存在关联的法兰 + $flange_count = FlangeModel::where('device_id', $id)->count(); + if ($flange_count > 0) { + throw new Exception('装置下存在法兰,不能删除'); + } + + Db::startTrans(); + try { + // 删除装置 + $device->delete(); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 获取装置统计信息 + */ + public function getStatistics($id) + { + $device = DeviceModel::find($id); + if (!$device) { + throw new Exception('装置不存在'); + } + + // 获取法兰统计 + $flange_stats = FlangeModel::where('device_id', $id) + ->group('status') + ->column('count(*)', 'status'); + + // 获取反馈统计 + $feedback_stats = FeedbackModel::where('device_id', $id) + ->group('status') + ->column('count(*)', 'status'); + + // 获取最近的反馈 + $recent_feedbacks = FeedbackModel::where('device_id', $id) + ->with(['relations']) + ->order('create_time', 'desc') + ->limit(5) + ->select(); + + // 计算健康评分 + $health_score = $this->calculateHealthScore($id); + + return [ + 'flange_stats' => $flange_stats, + 'feedback_stats' => $feedback_stats, + 'recent_feedbacks' => $recent_feedbacks, + 'health_score' => $health_score, + 'last_inspection_time' => $device->last_inspection_time, + 'next_inspection_time' => $this->calculateNextInspectionTime($id) + ]; + } + + /** + * 计算装置健康评分 + */ + protected function calculateHealthScore($id) + { + // 获取装置下所有法兰 + $flanges = FlangeModel::where('device_id', $id)->select(); + + if ($flanges->isEmpty()) { + return 100; + } + + $total_score = 0; + $total_weight = 0; + + foreach ($flanges as $flange) { + // 基础权重 + $weight = 1; + + // 根据法兰类型调整权重 + switch ($flange->type) { + case 1: // 重要法兰 + $weight *= 2; + break; + case 2: // 关键法兰 + $weight *= 1.5; + break; + } + + // 根据法兰级别调整权重 + $weight *= (1 + $flange->level * 0.1); + + // 计算基础得分 + $score = 100; + + // 根据状态扣分 + if ($flange->status == 0) { // 未检查 + $score -= 20; + } elseif ($flange->status == 2) { // 异常 + $score -= 40; + } + + // 根据检查时间扣分 + if ($flange->next_inspection_time && $flange->next_inspection_time < time()) { + $score -= 30; + } + + // 根据反馈情况扣分 + $feedback_count = FeedbackModel::where('flange_id', $flange->id) + ->where('status', 'in', [0, 1]) // 未处理和处理中的反馈 + ->count(); + $score -= $feedback_count * 10; + + // 确保分数在0-100之间 + $score = max(0, min(100, $score)); + + $total_score += $weight * $score; + $total_weight += $weight; + } + + return round($total_weight > 0 ? $total_score / $total_weight : 100, 2); + } + + /** + * 计算下次检查时间 + */ + protected function calculateNextInspectionTime($id) + { + $device = DeviceModel::find($id); + if (!$device || !$device->last_inspection_time) { + return null; + } + + // 获取装置下所有法兰的最短检查周期 + $min_cycle = FlangeModel::where('device_id', $id) + ->min('inspection_cycle'); + + if (!$min_cycle) { + return null; + } + + return $device->last_inspection_time + ($min_cycle * 86400); // 转换为秒 + } + + /** + * 更新装置状态 + */ + public function updateStatus($id, $status) + { + $device = DeviceModel::find($id); + if (!$device) { + throw new Exception('装置不存在'); + } + + Db::startTrans(); + try { + $device->save([ + 'status' => $status, + 'update_time' => time() + ]); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 批量导入装置 + */ + public function batchImport($project_id, $devices) + { + // 检查项目是否存在 + $project = ProjectModel::find($project_id); + if (!$project) { + throw new Exception('项目不存在'); + } + + Db::startTrans(); + try { + foreach ($devices as $item) { + // 创建装置 + DeviceModel::create([ + 'name' => $item['name'], + 'code' => $item['code'], + 'project_id' => $project_id, + 'project_name' => $project->name, + 'description' => $item['description'] ?? '', + 'location' => $item['location'] ?? '', + 'equipment_code' => $item['equipment_code'] ?? '', + 'equipment_name' => $item['equipment_name'] ?? '', + 'status' => $item['status'] ?? 0, + 'remark' => $item['remark'] ?? '' + ]); + } + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 复制装置 + */ + public function copy($id) + { + $device = DeviceModel::find($id); + if (!$device) { + throw new Exception('装置不存在'); + } + + Db::startTrans(); + try { + // 复制装置基本信息 + $new_device = DeviceModel::create([ + 'name' => $device->name . '_复制', + 'code' => $this->generateDeviceCode($device->project_id), + 'project_id' => $device->project_id, + 'project_name' => $device->project_name, + 'description' => $device->description, + 'location' => $device->location, + 'equipment_code' => $device->equipment_code, + 'equipment_name' => $device->equipment_name, + 'status' => 0, // 新装置默认为未启用状态 + 'remark' => $device->remark + ]); + + Db::commit(); + return $new_device; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 批量删除装置 + */ + public function batchDelete($ids) + { + if (empty($ids)) { + throw new Exception('参数错误'); + } + + // 检查是否存在关联的法兰 + $flange_count = FlangeModel::where('device_id', 'in', $ids)->count(); + if ($flange_count > 0) { + throw new Exception('选中的装置中存在关联的法兰,不能删除'); + } + + Db::startTrans(); + try { + // 删除装置 + DeviceModel::where('id', 'in', $ids)->delete(); + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 批量更新装置状态 + */ + public function batchUpdateStatus($ids, $status) + { + if (empty($ids)) { + throw new Exception('参数错误'); + } + + Db::startTrans(); + try { + DeviceModel::where('id', 'in', $ids)->update(['status' => $status]); + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 生成装置编号 + */ + protected function generateDeviceCode($project_id) + { + $project = ProjectModel::find($project_id); + $prefix = $project->code . 'D'; + + $max_code = DeviceModel::where('code', 'like', $prefix . '%') + ->where('project_id', $project_id) + ->order('code', 'desc') + ->value('code'); + + if ($max_code) { + $serial = (int)substr($max_code, -4) + 1; + } else { + $serial = 1; + } + + return $prefix . str_pad((string)$serial, 4, '0', STR_PAD_LEFT); + } +} diff --git a/app/admin/service/FeedbackService.php b/app/admin/service/FeedbackService.php new file mode 100644 index 0000000000000000000000000000000000000000..1e14b7f2c097c92320fddb04a8e8c282a55e2051 --- /dev/null +++ b/app/admin/service/FeedbackService.php @@ -0,0 +1,149 @@ + $param["flange_id"]])->findOrEmpty(); + + if (empty($feedback->flange_id)) { + // 创建反馈 + $feedback = FeedbackModel::create([ + 'project_id' => $flange->project_id, + 'project_name' => $flange->project_name, + 'device_id' => $flange->device_id, + 'device_name' => $flange->device_name, + 'flange_id' => $param['flange_id'], + 'flange_name' => $flange->name, + 'flange_code' => $flange->code, + ]); + } + + $relations = empty($param['relations']) ? [] : $param['relations']; + if (!empty($param['relation'])) { + $relations[] = $param['relation']; + } + $user_id = Auth::getAdminId(); + $user = AdminModel::where(['id' => $user_id])->findOrEmpty(); + // 添加反馈关联 + if (!empty($relations)) { + foreach ($relations as $relation) { + FeedbackRelationModel::create(data: [ + 'feedback_id' => $feedback->id, + 'code' => $relation['code'], // 法兰参数code + 'name' => $relation['name'] ?? '', // 法兰参数名 + 'content' => $relation['content'], + // 'imgs' => json_encode($relation['imgs'] ?? []), + 'imgs' => $relation['imgs'], + 'user_id' => $user_id, + 'user_name' => $user->nickname, + ]); + } + } + + Db::commit(); + return $feedback->toArray(); + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + /** + * 添加反馈 + */ + public function addReply($param) + { + + + // 检查法兰是否存在 + $feedback_relation = FeedbackRelationModel::find($param['feedback_relation_id']); + if (!$feedback_relation) { + throw new Exception('反馈不存在'); + } + + + Db::startTrans(); + try { + $user_id = Auth::getAdminId(); + $user = AdminModel::where(['id' => $user_id])->findOrEmpty(); + $feedback_reply = FeedbackReplyModel::create([ + 'feedback_relation_id' => $param['feedback_relation_id'], + 'content' => $param['content'], + 'user_id' => $user_id, + 'user_name' => $user->nickname, + ]); + + Db::commit(); + return $feedback_reply->toArray(); + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + /** + * 添加反馈 + */ + public function getItemList($param) + { + + $feedback = FeedbackModel::where(["flange_id" => $param["flange_id"]])->findOrEmpty(); + if (empty($feedback->id)) { + return []; + } + + $where = [ + [ + "feedback_id", + '=', + $feedback->id + ] + ]; + if (!empty($param['code'])) { + $where[] = [ + "code", + '=', + $param['code'] + ]; + } + if (!empty($param['codes'])) { + $where[] = [ + "code", + 'in', + $param['codes'] + ]; + } + // 检查法兰是否存在 + $feedback_relation = FeedbackRelationModel::where($where)->with(['replies'])->select()->toArray(); + return $feedback_relation; + } +} diff --git a/app/admin/service/FlangeParamService.php b/app/admin/service/FlangeParamService.php new file mode 100644 index 0000000000000000000000000000000000000000..75e03702fed1476be126099e9fa79bb369827041 --- /dev/null +++ b/app/admin/service/FlangeParamService.php @@ -0,0 +1,15 @@ +generateQrcode(); + + // 创建二维码记录 + $qrcode = FlangeQrcodeModel::create([ + 'code' => $code, + 'batch_name' => $param['batch_name'] ?? null, + 'status' => 0 + ]); + + Db::commit(); + return $qrcode->toArray(); + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 批量生成二维码 + */ + public function batchGenerate($count, $batch_name = null) + { + Db::startTrans(); + try { + $codes = []; + for ($i = 0; $i < $count; $i++) { + $code = $this->generateQrcode(); + $codes[] = [ + 'code' => $code, + 'batch_name' => $batch_name, + 'status' => 0, + 'create_time' => time(), + 'update_time' => time() + ]; + } + + // 批量插入 + Db::name('flange_qrcode')->insertAll($codes); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 绑定法兰 + */ + public function bindFlange($qrParam, $flangeParam) + { + if (is_numeric($qrParam)) { + $qrcode = FlangeQrcodeModel::where(['id' => $qrParam])->findOrEmpty(); + } else { + $qrcode = FlangeQrcodeModel::where(['code' => $qrParam])->findOrEmpty(); + } + if (!$qrcode) { + throw new Exception('二维码不存在'); + } + + if ($qrcode->status == 1) { + throw new Exception('二维码已被绑定'); + } + + if (is_numeric($flangeParam)) { + $flange = FlangeQrcodeModel::where(['id' => $flangeParam])->findOrEmpty(); + } else { + $flange = FlangeQrcodeModel::where(['code' => $flangeParam])->findOrEmpty(); + } + + if (!$flange) { + throw new Exception('法兰不存在'); + } + + Db::startTrans(); + try { + $qrcode->save([ + 'flange_id' => $flange->id, + 'flange_code' => $flange->code, + 'flange_name' => $flange->name, + 'device_id' => $flange->device_id, + 'device_name' => $flange->device_name, + 'status' => 1 + ]); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 解绑法兰 + */ + public function unbindFlange($id) + { + $qrcode = FlangeQrcodeModel::find($id); + if (!$qrcode) { + throw new Exception('二维码不存在'); + } + + if ($qrcode->status == 0) { + throw new Exception('二维码未绑定'); + } + + Db::startTrans(); + try { + $qrcode->save([ + 'flange_id' => null, + 'flange_code' => null, + 'flange_name' => null, + 'device_id' => null, + 'device_name' => null, + 'status' => 0 + ]); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 生成唯一二维码编号 + */ + protected function generateQrcode() + { + $prefix = 'FL'; + $date = date('YmdHis'); + $random = mt_rand(10000, 99999); + + $code = $prefix . $date . $random; + + // 检查编号是否已存在 + while (FlangeQrcodeModel::where('code', $code)->find()) { + $random = mt_rand(10000, 99999); + $code = $prefix . $date . $random; + } + + return $code; + } + + /** + * 获取法兰参数模板 + */ + public function exportByIds(string $ids) + { + $raw = FlangeQrcodeModel::where([['id', 'in', $ids]])->select()->toArray(); + + // 创建Excel对象 + $spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet(); + $sheet = $spreadsheet->getActiveSheet(); + + // 设置表头 + $sheet->setCellValue('A1', 'QRCODE编号'); + $sheet->setCellValue('B1', '法兰编号'); + $sheet->setCellValue('C1', '装置名称'); + $sheet->setCellValue('D1', '批次'); + $sheet->setCellValue('E1', '状态'); + $sheet->setCellValue('F1', '更新时间'); + $sheet->setCellValue('G1', '二维码'); + + // 美化表头样式 + $headerStyle = [ + 'font' => [ + 'bold' => true, + 'color' => ['rgb' => 'FFFFFF'], + ], + 'fill' => [ + 'fillType' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID, + 'startColor' => ['rgb' => '4472C4'], + ], + 'alignment' => [ + 'horizontal' => \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER, + 'vertical' => \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER, + ], + ]; + $sheet->getStyle('A1:G1')->applyFromArray($headerStyle); + $sheet->getRowDimension(1)->setRowHeight(30); + + // 写入数据 + $row = 2; + foreach ($raw as $item) { + // 设置行高为110 + $sheet->getRowDimension($row)->setRowHeight(130); + + $sheet->setCellValue('A' . $row, $item['code']); + $sheet->setCellValue('B' . $row, $item['flange_code']); + $sheet->setCellValue('C' . $row, $item['device_name']); + $sheet->setCellValue('D' . $row, $item['batch_name']); + $sheet->setCellValue('E' . $row, $item['status'] ? '已绑定' : '未绑定'); + $sheet->setCellValue('F' . $row, $item['update_time']); + // $sheet->setCellValue('G' . $row, $item['update_time']); + + // 设置状态列的文字颜色 + $statusColor = $item['status'] ? '008000' : 'FF6B6B'; // 绿色 : 浅红色 + $sheet->getStyle('E' . $row)->applyFromArray([ + 'font' => [ + 'color' => ['rgb' => $statusColor] + ] + ]); + + + + // 生成二维码 + $qrCode = QrCode::create(env('H5_DOMAIN') . "/#/pages/flange/detail/detail?qrcode=" . $item['code']) + ->setEncoding(new Encoding('UTF-8')) + ->setSize(120); + + // 使用PngWriter生成二维码 + $writer = new PngWriter(); + $result = $writer->write($qrCode); + + // 保存二维码到临时文件 + $tempDir = sys_get_temp_dir(); + $qrCodePath = $tempDir . '/qrcode_' . $item['code'] . '.png'; + $result->saveToFile($qrCodePath); + + // 插入二维码到G列 + $drawing = new Drawing(); + $drawing->setName('QR Code'); + $drawing->setDescription('QR Code'); + $drawing->setPath($qrCodePath); + $drawing->setCoordinates('G' . $row); + $drawing->setOffsetX(12); + $drawing->setOffsetY(13); + $drawing->setWidth(width: 150); + $drawing->setHeight(150); + $drawing->setWorksheet($sheet); + + // 设置图片水平和垂直居中 + $sheet->getStyle('G' . $row)->getAlignment()->setHorizontal(\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER); + $sheet->getStyle('G' . $row)->getAlignment()->setVertical(\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER); + + $row++; + } + + // 设置数据区域样式 + $dataRange = 'A2:G' . ($row - 1); + $dataStyle = [ + 'alignment' => [ + 'horizontal' => \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER, + 'vertical' => \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER, + ], + 'borders' => [ + 'allBorders' => [ + 'borderStyle' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THIN, + 'color' => ['rgb' => '000000'], + ], + ], + ]; + $sheet->getStyle('A1:G' . ($row - 1))->applyFromArray($dataStyle); + + // 设置自动换行 + $sheet->getStyle($dataRange)->getAlignment()->setWrapText(true); + + // 设置列宽 + $sheet->getColumnDimension('A')->setWidth(30); + $sheet->getColumnDimension('B')->setWidth(30); + $sheet->getColumnDimension('C')->setWidth(20); + $sheet->getColumnDimension('D')->setWidth(20); + $sheet->getColumnDimension('E')->setWidth(10); + $sheet->getColumnDimension('F')->setWidth(20); + $sheet->getColumnDimension('G')->setWidth(width: 20); + + // 设置冻结窗格 + $sheet->freezePane('A2'); + + // 设置输出头 + header('content-type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); + $filename = urlencode('法兰二维码_') . date('YmdHis') . '.xlsx'; + header('content-disposition: attachment;filename=' . $filename); + header('cache-control: max-age=0'); + + // 创建Excel写入器并直接输出到浏览器 + $writer = new \PhpOffice\PhpSpreadsheet\Writer\Xlsx($spreadsheet); + $writer->save('php://output'); + exit; + } +} diff --git a/app/admin/service/FlangeService.php b/app/admin/service/FlangeService.php new file mode 100644 index 0000000000000000000000000000000000000000..226fd1143efeacf0e9f49ed79bcc81dd4e898e17 --- /dev/null +++ b/app/admin/service/FlangeService.php @@ -0,0 +1,979 @@ + ['no' => '1-2', 'image' => true], + '8-2' => ['no' => '1-3-2-4', 'image' => true], + '8-4' => ['no' => '1-2', 'image' => true], + '12-2' => ['no' => '1-3-5-2-4-6', 'image' => true], + '12-4' => ['no' => '1-2-3', 'image' => true], + '16-2' => ['no' => '1-5-3-7-2-6-4-8', 'image' => true], + '16-4' => ['no' => '1-3-2-4', 'image' => true], + '20-2' => ['no' => '1-7-3-9-5-2-8-4-10-6', 'image' => true], + '20-4' => ['no' => '1-4-2-5-3', 'image' => true], + '24-2' => ['no' => '1-5-9-3-7-11-2-6-10-4-8-12', 'image' => true], + '24-4' => ['no' => '1-3-5-2-4-6', 'image' => true], + '28-2' => ['no' => '1-7-13-3-9-5-11-2-8-14-4-10-6-12', 'image' => true], + '28-4' => ['no' => '1-4-7-2-5-3-6', 'image' => true], + '32-2' => ['no' => '1-9-5-13-3-11-7-15-2-10-6-14-4-12-8-16', 'image' => true], + '32-4' => ['no' => '1-5-3-7-2-6-4-8', 'image' => true], + '36-2' => ['no' => '1-13-7-15-3-9-17-5-11-2-14-8-18-4-12-6-16-10', 'image' => true], + '36-4' => ['no' => '1-9-3-5-7-2-8-4-6', 'image' => true], + '40-4' => ['no' => '1-6-10-4-8-2-5-7-3-9', 'image' => true], + '44-4' => ['no' => '1-10-5-3-7-9-2-11-4-6-8', 'image' => true], + '48-4' => ['no' => '1-8-6-4-12-10-2-7-5-3-9-11', 'image' => true], + '52-4' => ['no' => '1-4-7-10-13-5-2-8-11-3-6-9-12', 'image' => true], + '56-4' => ['no' => '1-6-14-3-11-8-5-2-9-12-4-7-13-10', 'image' => true], + '60-4' => ['no' => '1-12-15-4-7-10-13-2-5-8-11-3-14-6-9', 'image' => true], + '64-4' => ['no' => '1-15-5-9-3-13-7-11-2-16-6-10-4-14-8-12', 'image' => true], + '68-4' => ['no' => '1-16-13-10-4-7-15-12-2-9-6-17-3-14-11-8-5', 'image' => true], + '72-4' => ['no' => '1-17-13-5-9-3-15-7-11-2-18-14-6-10-4-16-8-12', 'image' => false], + '76-4' => ['no' => '1-17-13-5-9-3-15-7-11-2-18-14-6-10-4-16-8-12-19', 'image' => false], + '80-4' => ['no' => '1-5-8-18-15-3-12-9-6-19-2-16-13-10-7-4-20-17-14-11', 'image' => true], + ]; + + public function initialize(): void + { + // $this->feedbackService = new FeedbackService(); + } + public function log(array $flange, $param, $options = []) + { + $name = $param['name'] ?? ""; + $content = $param['content'] ?? ""; + $logService = new LogService(); + + $logService->add([ + 'project_id' => $flange['project_id'], + 'device_id' => $flange['device_id'], + 'flange_id' => $flange['id'], + 'name' => $name, + 'content' => $content, + ], 'flange', $options); + } + + /** + * 添加法兰 + */ + public function add($param) + { + + // 检查装置是否存在 + $device = DeviceModel::find($param['device_id']); + if (!$device) { + throw new Exception('装置不存在'); + } + $code = $param['code'] ?? self::generateUUID($device->name); + // 检查装置是否存在 + $codeModel = FlangeModel::where([['code', '=', $code]])->find(); + if ($codeModel) { + throw new Exception('法兰已存在'); + } + + if ($param['qrcode'] ?? false) { + $qrcodeModel = FlangeQrcodeModel::where([['code', '=', $param['qrcode']]])->find(); + if ($qrcodeModel) { + throw new Exception('二维码已绑定'); + } + } + + Db::startTrans(); + try { + $useInfo = Auth::getAdminInfo(); + // 创建法兰 + $flange = FlangeModel::create([ + 'name' => $param['name'], + 'code' => $code, + 'project_id' => $device->project_id, + 'project_name' => $device->project_name, + 'device_id' => $param['device_id'], + 'device_name' => $device->name, + 'type' => $param['type'] ?? 1, + 'status' => $param['status'] ?? 0, + 'location' => $param['location'] ?? '', + 'equipment_code' => $param['equipment_code'] ?? '', + 'equipment_name' => $param['equipment_name'] ?? '', + 'data' => $param['data'] ?? [], + 'creator_id' => $useInfo['id'], + 'creator_name' => $useInfo['nickname'], + ]); + if ($param['qrcode'] ?? false) { + FlangeQrcodeModel::where([['code', '=', $param['qrcode']]])->save([ + 'flange_id' => $flange->id, + 'flange_name' => $flange->name, + 'flange_code' => $flange->code, + 'device_id' => $flange->device_id, + 'device_name' => $flange->device_name, + ]); + } + $statService = new StatService(); + $statService->plus([ + 'device_id' => $device->id, + 'count' => 1, + ], 'added'); + $flange = $flange->toArray(); + $this->log($flange, [ + 'name' => "创建法兰", + 'content' => "", + ]); + + Db::commit(); + return $flange; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 编辑法兰 + */ + public function edit($id, $param) + { + $flange = FlangeModel::find($id); + if (!$flange) { + throw new Exception('法兰不存在'); + } + Db::startTrans(); + try { + $saveData = []; + $logData = []; + $resetFinishFlag = false; + + // 更新data字段数据 + if (!empty($param['data'])) { + $data = $flange->data ? get_object_vars($flange->data) : []; + foreach ($param['data'] as $key => $value) { + $oldValue = $data[$key] ?? ''; + $data[$key] = $value; + $logData[] = [ + 'code' => $key, + 'oldValue' => $oldValue, + 'newValue' => $value, + ]; + + if (isset($value['check'])) { + // if ($value['check'] === 'fail') { + $feedbackService = new FeedbackService(); + $feedbackService->add([ + 'flange_id' => $param["id"], + 'relations' => [ + [ + 'code' => $key, // 法兰参数code + 'name' => $value['name'], // 法兰参数名 + 'check' => $value['check'], + 'content' => $value['check'] === 'success' ? '合格' : $value['content'], + 'imgs' => $value['imgs'] ?? [], + ] + ] + ]); + $resetFinishFlag = true; + // } + } + } + $saveData['data'] = $data; + } + $keys = [ + 'code', + 'name', + 'type', + 'status', + 'location', + 'equipment_code', + 'equipment_name', + ]; + foreach ($keys as $key) { + if (isset($param[$key])) { + $oldValue = $flange->$key ?? "空"; + $value = $param[$key]; + $logData[] = [ + 'code' => $key, + 'oldValue' => $oldValue, + 'newValue' => $value, + ]; + + $saveData[$key] = $value; + if ($saveData[$key] === "") { + $resetFinishFlag = true; + } + } + } + if ($resetFinishFlag && $flange->torque_final_check === 1) { + $saveData['torque_final_check'] = 0; + $saveData['tfc_remark'] = ""; + } + + // 更新法兰 + $flange->save($saveData); + + $flange = $flange->toArray(); + + // 获取参数配置 + + foreach ($logData as $log) { + $code = $log['code']; + $oldValue = $log['oldValue']; + if (is_array($oldValue)) { + if (isset($oldValue['check'])) { + $oldValue = $oldValue['check'] === 'success' ? '合格' : '不合格'; + } else { + $oldValue = json_encode($oldValue); + } + } + $newValue = $log['newValue']; + if (is_array($newValue)) { + if (isset($newValue['check'])) { + $newValue = $newValue['check'] === 'success' ? '合格' : '不合格'; + } else { + $newValue = json_encode($newValue); + } + } + $config = FlangeParamModel::getParamConfig($code)->toArray(); + $name = $config['name']; + $this->log($flange, [ + 'name' => $name, + 'content' => "修改值 `{$oldValue}` 为 `{$newValue}`", + ]); + } + + Db::commit(); + return $flange; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + public function isEmpty($param) + { + return $param === null || $param === ""; + } + + /** + * 法兰 + */ + public function finish($id, $param) + { + $flange = FlangeModel::find($id); + if (!$flange) { + throw new Exception('法兰不存在'); + } + $torque_final_check = $param['torque_final_check'] ?? 0; + $tfc_remark = $param['tfc_remark'] ?? ""; + if ($torque_final_check !== 1 || empty($tfc_remark)) { + throw new Exception(message: '参数不合法'); + } + if ($flange->torque_final_check === 1) { + throw new Exception('法兰已完成'); + } + + Db::startTrans(); + try { + $flangeParams = FlangeParamModel::getParamConfigsMap(); + $validateFailArr = []; + + $data = $flange->data ? get_object_vars($flange->data) : []; + foreach ($flangeParams as $key => $flangeParam) { + if ($flangeParam['is_param'] === 0) { + continue; + } + if ($flangeParam['type'] !== 'check') { + continue; + } + if (!isset($data[$key]) || $this->isEmpty($data[$key])) { + $validateFailArr[] = $flangeParam['name']; + } elseif ((!isset($data[$key]['check']) || $data[$key]['check'] !== 'success')) { + $validateFailArr[] = $flangeParam['name']; + } + } + if (count($validateFailArr) > 0) { + throw new Exception(message: '请完善以下数据:' . implode(', ', $validateFailArr)); + } + + $saveData = [ + 'torque_final_check' => $torque_final_check, + 'tfc_remark' => $tfc_remark, + ]; + + // 更新法兰 + $flange->save($saveData); + $statService = new StatService(); + $statService->plus([ + 'flange_id' => $id, + 'device_id' => $flange->device_id, + 'count' => 1, + ], 'finished'); + + $flange = $flange->toArray(); + $this->log($flange, [ + 'name' => "力矩值最终校验完成", + 'content' => $tfc_remark, + ]); + Db::commit(); + return $flange; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 获取法兰参数模板 + */ + public function getParamTemplates() + { + // 获取参数配置 + $rawConfigs = FlangeParamModel::getParamConfigs()->toArray(); + $configs = []; + foreach ($rawConfigs as $config) { + if ($config['type'] !== 'custom' && $config['type'] !== 'check' && $config['is_tpl'] === 1) { + $configs[] = $config; + } + } + + // 创建Excel对象 + $spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet(); + $sheet = $spreadsheet->getActiveSheet(); + + // 设置表头样式 + $headerStyle = [ + 'font' => [ + 'bold' => true, + 'color' => ['rgb' => 'FFFFFF'], + ], + 'fill' => [ + 'fillType' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID, + 'startColor' => ['rgb' => '4472C4'], + ], + 'alignment' => [ + 'horizontal' => \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER, + 'vertical' => \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER, + ], + ]; + + // 生成表头 + foreach ($configs as $index => $config) { + $column = \PhpOffice\PhpSpreadsheet\Cell\Coordinate::stringFromColumnIndex($index + 1); + + // 生成标题(如果有单位,则添加单位后缀) + $title = $config['name']; + if (!empty($config['unit_list']) && is_array($config['unit_list'])) { + $title .= '(' . $config['unit_list'][0] . ')'; + } + + // 设置单元格值和样式 + $sheet->setCellValue($column . '1', $title); + $sheet->getColumnDimension($column)->setWidth(20); + + // 如果存在item_list,添加数据验证 + if (!empty($config['item_list']) && is_array($config['item_list'])) { + $item_list = $config['item_list']; + $item_list_label = array_map(function ($item) { + return $item['label']; + }, $item_list); + + // 创建数据验证 + $validation = $sheet->getCell($column . '2')->getDataValidation(); + $validation->setType(\PhpOffice\PhpSpreadsheet\Cell\DataValidation::TYPE_LIST); + $validation->setErrorStyle(\PhpOffice\PhpSpreadsheet\Cell\DataValidation::STYLE_STOP); // 改为STOP级别 + $validation->setAllowBlank(true); // 不允许为空 + $validation->setShowInputMessage(true); + $validation->setShowErrorMessage(true); + $validation->setShowDropDown(true); + $validation->setErrorTitle('无效输入'); + $validation->setError('只能从下拉列表中选择预设的值'); + $validation->setPromptTitle($config['name']); + $validation->setPrompt('请从下拉列表中选择:' . implode('、', $item_list_label)); + + // 使用隐藏工作表存储选项列表 + $listSheet = $spreadsheet->createSheet(); + $listSheetIndex = $spreadsheet->getSheetCount(); + $listSheet->setTitle('ValidList_' . $index); + + // 在隐藏工作表中写入选项 + foreach ($item_list_label as $key => $value) { + $listSheet->setCellValue('A' . ($key + 1), $value); + } + + // 隐藏工作表 + $listSheet->setSheetState(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet::SHEETSTATE_HIDDEN); + + // 使用工作表引用而不是直接的字符串列表 + $validation->setFormula1('ValidList_' . $index . '!$A$1:$A$' . count($item_list_label)); + + // 将验证规则应用到整列 + $sheet->setDataValidation( + $column . '2:' . $column . '1000', + $validation + ); + } + } + + // 应用表头样式 + $lastColumn = \PhpOffice\PhpSpreadsheet\Cell\Coordinate::stringFromColumnIndex(count($configs)); + $sheet->getStyle('A1:' . $lastColumn . '1')->applyFromArray($headerStyle); + $sheet->getRowDimension(1)->setRowHeight(30); + + // 设置冻结窗格 + $sheet->freezePane('A2'); + + // 设置输出头 + header('content-type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); + + $filename = urlencode('法兰模版_') . date('YmdHis') . '.xlsx'; + header('content-disposition: attachment;filename=' . $filename); + header('cache-control: max-age=0'); + + // 创建Excel写入器并输出 + $writer = new \PhpOffice\PhpSpreadsheet\Writer\Xlsx($spreadsheet); + $writer->save('php://output'); + exit; + } + + private static function generateUUID($device_name): string + { + $pinyin = new Pinyin(); + + $abbr = substr(strtoupper($pinyin->abbr($device_name)->join()), 0, 2); + return "$abbr-" . sprintf( + '%04x%04x-%04x-%04x-%04x-%04x%04x%04x', + mt_rand(0, 0xffff), + mt_rand(0, 0xffff), + mt_rand(0, 0xffff), + mt_rand(0, 0x0fff) | 0x4000, + mt_rand(0, 0x3fff) | 0x8000, + mt_rand(0, 0xffff), + mt_rand(0, 0xffff), + mt_rand(0, 0xffff) + ); + } + + /** + * 从Excel批量导入法兰 + * @param int $device_id + * @param string $excelFilePath + * @throws Exception + */ + public function batchImportFromExcel($device_id, $excelFilePath) + { + // 检查装置是否存在 + $device = DeviceModel::find($device_id); + if (!$device) { + throw new Exception('装置不存在'); + } + + $useInfo = Auth::getAdminInfo(); + + // 获取参数配置 + $configs = FlangeParamModel::getParamConfigs()->toArray(); + $configMap = []; + foreach ($configs as $config) { + $configMap[$config['name']] = $config; + } + + // 读取Excel文件 + $spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($excelFilePath); + $sheet = $spreadsheet->getActiveSheet(); + $header = $sheet->rangeToArray('A1:' . $sheet->getHighestColumn() . '1')[0]; + + Db::startTrans(); + $list = []; + // try { + $rows = $sheet->rangeToArray('A2:' . $sheet->getHighestColumn() . $sheet->getHighestRow()); + foreach ($rows as $row) { + $data = [ + 'data' => [] + ]; + $valid = false; + foreach ($header as $index => $name) { + $arr = explode('(', $name); + $unit = ''; + $name2 = $arr[0]; + if(count($arr) > 1) { + $unit = substr($arr[1], 0, -1); + } + if (isset($configMap[$name]) || isset($configMap[$name2])) { + if(isset($configMap[$name])) { + $config = $configMap[$name]; + } else if(isset($configMap[$name2])) { + $config = $configMap[$name2]; + } + $code = $config['code']; + $value = $row[$index]; + if (!empty($config['item_list']) && is_array($config['item_list'])) { + $item = array_filter($config['item_list'], function ($item) use ($value) { + return $item['label'] === $value; + }); + if (!empty($item)) { + $value = array_values($item)[0]['value']; + } else { + // TODO 异常处理 + continue; + } + } + if ($this->isEmpty($value)) { + continue; + } + if (!$valid) { + $valid = true; + } + if ($config['is_param'] === 1) { + $data['data'][$code] = $value; + } else { + $data[$code] = $value; + } + } + } + if ($valid) { + + $list[] = [ + 'name' => $data['name'] ?? '', + 'code' => $data['code'] ?? $this->generateUUID($device->name), + 'project_id' => $device->project_id, + 'project_name' => $device->project_name, + 'device_id' => $device_id, + 'device_name' => $device->name, + 'type' => $data['type'] ?? 1, + 'status' => 0, + 'location' => $data['location'] ?? '', + 'equipment_code' => $data['equipment_code'] ?? '', + 'equipment_name' => $data['equipment_name'] ?? '', + 'data' => $data['data'] ?? [], + 'creator_id' => $useInfo['id'], + 'creator_name' => $useInfo['nickname'], + ]; + } + } + $flanges = new FlangeModel; + $result = $flanges->saveAll($list); + $count = count($list); + if ($count > 0) { + $statService = new StatService(); + $statService->plus([ + 'device_id' => $device_id, + 'count' => $count, + ], 'added'); + } + $result = $result->toArray(); + + $logService = new LogService(); + $ip = Request::ip(); + $host = Request::host(); + $options = [ + 'useInfo' => Auth::getAdminInfo(), + 'controller' => Request::controller(), + 'action' => Request::action(), + 'ip' => $ip, + 'host' => $host, + 'address' => $ip ? $logService->getMethod($ip) : '', + ]; + foreach ($result as $flange) { + $this->log($flange, [ + 'name' => "创建法兰", + 'content' => "", + ], $options); + } + + Db::commit(); + return $result; + // } catch (\Exception $e) { + // Db::rollback(); + // throw new Exception($e->getMessage()); + // } + } + + /** + * 导出法兰装配Excel模板(图片样式,优化版) + */ + public function exportExcelFile(string $ids): never + { + $FastenerConfig = $this->FastenerConfig; + $flanges = FlangeModel::where([['id', 'in', $ids]])->select()->toArray(); + + $configs = FlangeParamModel::getParamConfigs()->toArray(); + $configMap = []; + foreach ($configs as $config) { + $configMap[$config['code']] = $config; + } + + $spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet(); + $sheet = $spreadsheet->getActiveSheet(); + + // 设置列宽 + $sheet->getColumnDimension('A')->setWidth(14); + $sheet->getColumnDimension('B')->setWidth(28); + $sheet->getColumnDimension('C')->setWidth(36); + $sheet->getColumnDimension('D')->setWidth(18); + + // 表头字段 + $fields = [ + 'device_name', + 'equipment_name', + 'equipment_code', + 'location', + 'bolt_specification', + 'nut_across_flats', + 'bolt_number', + '推荐扭矩', + 'fastening_method', + ]; + $exFields = [ + '螺栓组编号', + '润滑脂', + ]; + + // 创建富文本对象 + // $richText2 = new RichText(); + // $richText2->createText('2、调至'); + // $redText2 = $richText2->createTextRun('30%'); + // $redText2->getFont()->getColor()->setRGB('FF0000'); // 设置为红色 + // $richText2->createText('扭矩,紧固螺栓组'); + // $redText2 = $richText2->createTextRun('_______'); + // $redText2->getFont()->getColor()->setRGB('FF0000'); // 设置为红色 + // $richText2->createText(',测量法兰间隙,调整法兰平行度'); + + + // $richText3 = new RichText(); + // $richText3->createText('3、调至'); + // $redText3 = $richText3->createTextRun('60%'); + // $redText3->getFont()->getColor()->setRGB('FF0000'); // 设置为红色 + // $richText3->createText('扭矩,紧固螺栓组'); + // $redText3 = $richText3->createTextRun('_______'); + // $redText3->getFont()->getColor()->setRGB('FF0000'); // 设置为红色 + // $richText3->createText(',测量法兰间隙,调整法兰平行度'); + + + // $richText4 = new RichText(); + // $richText4->createText('4、调至'); + // $redText4 = $richText4->createTextRun('100%'); + // $redText4->getFont()->getColor()->setRGB('FF0000'); // 设置为红色 + // $richText4->createText('扭矩,紧固螺栓组'); + // $redText4 = $richText4->createTextRun('_______'); + // $redText4->getFont()->getColor()->setRGB('FF0000'); // 设置为红色 + // $richText4->createText(',然后顺时针紧固所有螺栓不再转动'); + + // $endField = [ + // 'name' => '紧固步骤', + // 'content' => [ + // '1、法兰对中,手动或呆扳手预紧螺栓,调整螺栓露头 1-3 牙距,调整法兰平行度;', + // $richText2, + // $richText3, + // $richText4, + // // '2、调至30%扭矩,紧固螺栓组_______,测量法兰间隙,调整法兰平行度;', + // // '3、调至60%扭矩,紧固螺栓组_______,测量法兰间隙,调整法兰平行度;', + // // '4、调至100%扭矩,紧固螺栓组_______,然后顺时针紧固所有螺栓不再转动', + // ] + // ]; + + $richText = new RichText(); + + // 添加第一行 + $richText->createText('1、法兰对中,手动或呆扳手预紧螺栓,调整螺栓露头 1-3 牙距,调整法兰平行度;'); + + // 添加换行符 + $richText->createText("\n"); + + // 添加第二行 + $richText->createText('2、调至'); + $redText2 = $richText->createTextRun('30%'); + $redText2->getFont()->getColor()->setRGB('FF0000'); // 设置为红色 + $richText->createText('扭矩,紧固螺栓组'); + $redText2 = $richText->createTextRun('_______'); + $redText2->getFont()->getColor()->setRGB('FF0000'); // 设置为红色 + $richText->createText(',测量法兰间隙,调整法兰平行度'); + + // 添加换行符 + $richText->createText("\n"); + + // 添加第三行 + $richText->createText('3、调至'); + $redText3 = $richText->createTextRun('60%'); + $redText3->getFont()->getColor()->setRGB('FF0000'); // 设置为红色 + $richText->createText('扭矩,紧固螺栓组'); + $redText3 = $richText->createTextRun('_______'); + $redText3->getFont()->getColor()->setRGB('FF0000'); // 设置为红色 + $richText->createText(',测量法兰间隙,调整法兰平行度'); + + // 添加换行符 + $richText->createText("\n"); + + // 添加第四行 + $richText->createText('4、调至'); + $redText4 = $richText->createTextRun('100%'); + $redText4->getFont()->getColor()->setRGB('FF0000'); // 设置为红色 + $richText->createText('扭矩,紧固螺栓组'); + $redText4 = $richText->createTextRun('_______'); + $redText4->getFont()->getColor()->setRGB('FF0000'); // 设置为红色 + $richText->createText(',然后顺时针紧固所有螺栓不再转动'); + + $endField = [ + 'name' => '紧固步骤', + 'content' => $richText + ]; + + + $fieldsCount = count($fields); + + + + // 每个装置一组表格 + $groupCount = count($flanges); + $startRow = 1; + for ($i = 0; $i < $groupCount; $i++) { + $flange = $flanges[$i]; + $data = is_array($flange['data']) ? $flange['data'] : get_object_vars($flange['data']); + $flange['data'] = $data; + + $fasteningItem = [ + 'no' => '', + 'image' => false + ]; + $fasteningKey = ''; + $fastening_method = $data['fastening_method'] ?? ''; + $bolt_number = $data['bolt_number'] ?? ''; + if ($fastening_method && $bolt_number) { + $num = 0; + if ( + strpos($fastening_method, '二') !== false || + strpos($fastening_method, '两') !== false || + strpos($fastening_method, '2') !== false + ) { + $num = 2; + } elseif ( + strpos($fastening_method, '四') !== false || + strpos($fastening_method, '4') !== false + ) { + $num = 4; + } + if ($num) { + $fasteningKey = $bolt_number . '-' . $num; + + if (isset($FastenerConfig[$fasteningKey])) { + $fasteningItem = $FastenerConfig[$fasteningKey]; + } + } + } + // 字段 + for ($j = 0; $j < $fieldsCount; $j++) { + $currentRow = $startRow + $j; + $code = $fields[$j]; + $name = $code; + $value = ''; + if (isset($configMap[$code])) { + $configItem = $configMap[$code]; + $name = $configItem['name']; + if ($configItem['is_param'] == 1) { + $value = $flange['data'][$code] ?? ''; + } else { + $value = $flange[$code] ?? ''; + } + } + + + + $sheet->getRowDimension($currentRow)->setRowHeight(28); + $sheet->setCellValue("A" . ($currentRow), $name); + $sheet->setCellValue("B" . ($currentRow), $value); + // 设置A列和B列的垂直居中 + $sheet->getStyle("A" . ($currentRow))->getAlignment()->setVertical(\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER)->setHorizontal(\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER); + $sheet->getStyle("B" . ($currentRow))->getAlignment()->setVertical(\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER)->setHorizontal(\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_LEFT)->setWrapText(true); + if ($j == 0) { + $sheet->mergeCells("C" . ($currentRow) . ":D" . ($currentRow)); + $code = $exFields[0]; + $name = $code; + $value = ''; + if (isset($configMap[$code])) { + $configItem = $configMap[$code]; + $name = $configItem['name']; + if ($configItem['is_param'] == 1) { + $value = $flange['data'][$code] ?? ''; + } else { + $value = $flange[$code] ?? ''; + } + } + if (empty($value)) { + $value = $fasteningItem['no']; + } + + $sheet->setCellValue("C" . ($currentRow), "{$name}:{$value}"); + $sheet->getStyle("C" . ($currentRow))->getAlignment()->setVertical(\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER)->setWrapText(true); + } else if ($j == ($fieldsCount - 1)) { + $sheet->mergeCells("C" . ($currentRow) . ":D" . ($currentRow)); + $code = $exFields[1]; + $name = $code; + $value = '250℃以下涂抹二硫化钼,250℃以上涂抹高温抗咬合剂'; + $sheet->setCellValue("C" . ($currentRow), "{$name}:{$value}"); + $sheet->getStyle("C" . ($currentRow))->getAlignment()->setVertical(\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER)->setWrapText(true); + } + } + + // 插入示意图(如有图片,可替换路径) + $imgRow = $startRow + 1; + $imgEndRow = $startRow + $fieldsCount - 2; + $sheet->mergeCells("C" . ($imgRow) . ":D" . ($imgEndRow)); + + if ($fasteningItem['image']) { + $drawing = new \PhpOffice\PhpSpreadsheet\Worksheet\Drawing(); + $drawing->setName('示意图'); + $drawing->setDescription('示意图'); + $drawing->setPath(app()->getRootPath() . 'public/static/flange/sop/' . $fasteningKey . '.jpg'); // 图片路径 + $drawing->setHeight(220); + $drawing->setCoordinates("C{$imgRow}"); + // 居中对齐 + $drawing->setOffsetX(90); // 可根据实际宽度调整 + $drawing->setOffsetY(20); + $drawing->setWorksheet($sheet); + } + + // 紧固步骤 + $appendRow = $startRow + $fieldsCount; + $sheet->getRowDimension($appendRow)->setRowHeight(117); + $sheet->mergeCells("B" . ($appendRow) . ":C" . ($appendRow)); + $sheet->setCellValue("A" . ($appendRow), $endField['name']); + // $sheet->setCellValue("B" . ($appendRow), implode("\n", $endField['content'])); + $sheet->setCellValue("B" . ($appendRow), $endField['content']); + // 设置A列和B列的垂直居中 + $sheet->getStyle("A" . ($appendRow))->getAlignment()->setVertical(\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER)->setHorizontal(\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER); + $sheet->getStyle("B" . ($appendRow))->getAlignment()->setVertical(\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER)->setHorizontal(\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_LEFT)->setWrapText(true); + + + + // 生成二维码 + $qrCode = QrCode::create(env('H5_DOMAIN') . "/#/pages/flange/detail/detail?flange_id=" . $flange['id']) + ->setEncoding(new Encoding('UTF-8')) + ->setSize(100); + + // 使用PngWriter生成二维码 + $writer = new PngWriter(); + $result = $writer->write($qrCode); + + // 保存二维码到临时文件 + $tempDir = sys_get_temp_dir(); + $qrCodePath = $tempDir . '/qrcode_' . $flange['code'] . '.png'; + $result->saveToFile($qrCodePath); + + // 插入二维码到D列 + $drawing = new Drawing(); + $drawing->setName('QR Code'); + $drawing->setDescription('QR Code'); + $drawing->setPath($qrCodePath); + $drawing->setCoordinates('D' . $appendRow); + $drawing->setOffsetX(6); + $drawing->setOffsetY(6); + $drawing->setWidth(width: 132); + $drawing->setHeight(132); + $drawing->setWorksheet($sheet); + + // 设置图片水平和垂直居中 + $sheet->getStyle('D' . $appendRow)->getAlignment()->setHorizontal(\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER); + $sheet->getStyle('D' . $appendRow)->getAlignment()->setVertical(\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER); + + + $lubRow = $startRow + $fieldsCount; + + // 只对本组表格区域设置边框(不包括组间空白) + $borderEndRow = $lubRow; + $styleArray = [ + 'borders' => [ + 'allBorders' => [ + 'borderStyle' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THIN, + 'color' => ['argb' => 'FF000000'], + ], + ], + ]; + $sheet->getStyle("A{$startRow}:B{$borderEndRow}")->applyFromArray($styleArray); + + // === 新增:C列边框设置 === + $cStart = $startRow; + $cEnd = $borderEndRow; + // C列左右边框 + $sheet->getStyle("C{$cStart}:D{$cEnd}")->applyFromArray([ + 'borders' => [ + 'left' => [ + 'borderStyle' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THIN, + 'color' => ['argb' => 'FF000000'], + ], + 'right' => [ + 'borderStyle' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THIN, + 'color' => ['argb' => 'FF000000'], + ], + ], + ]); + // C列首行上边框 + $sheet->getStyle("C{$cStart}:D{$cStart}")->applyFromArray([ + 'borders' => [ + 'top' => [ + 'borderStyle' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THIN, + 'color' => ['argb' => 'FF000000'], + ], + ], + ]); + // C列末行上下边框 + $sheet->getStyle("C{$cEnd}:D{$cEnd}")->applyFromArray([ + 'borders' => [ + 'top' => [ + 'borderStyle' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THIN, + 'color' => ['argb' => 'FF000000'], + ], + 'bottom' => [ + 'borderStyle' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THIN, + 'color' => ['argb' => 'FF000000'], + ], + ], + ]); + // === 新增结束 === + + if ($i < $groupCount - 1) { + $sheet->getRowDimension($borderEndRow + 1)->setRowHeight(50); + // 组间空一行,不设置边框 + $startRow = $borderEndRow + 2; + } + } + + // // 监理单位 + // $sheet->mergeCells("A" . ($startRow) . ":C" . ($startRow)); + // $sheet->setCellValue("A" . ($startRow), "监理单位:上海舜诺机械有限公司"); + // $sheet->getStyle("A" . ($startRow))->getFont()->getColor()->setRGB('FF0000'); + + // 输出Excel + header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); + + $filename = urlencode('法兰挂牌_') . date('YmdHis') . '.xlsx'; + header('content-disposition: attachment;filename=' . $filename); + header('Cache-Control: max-age=0'); + $writer = new \PhpOffice\PhpSpreadsheet\Writer\Xlsx($spreadsheet); + $writer->save('php://output'); + exit; + } +} diff --git a/app/admin/service/LogService.php b/app/admin/service/LogService.php new file mode 100644 index 0000000000000000000000000000000000000000..54d6d506aef6cc17d1ab8c123967da0eea50a4df --- /dev/null +++ b/app/admin/service/LogService.php @@ -0,0 +1,133 @@ +where('project_id', 'in', $param['project_ids']); + } + if (!empty($param['device_ids'])) { + $query->where('device_id', 'in', $param['device_ids']); + } + if (!empty($param['flange_ids'])) { + $query->where('flange_id', 'in', $param['flange_ids']); + } + if (!empty($param['name'])) { + $query->where('name', 'like', '%' . $param['name'] . '%'); + } + if (!empty($param['start_time'])) { + $query->where('create_time', '>=', strtotime($param['start_time'])); + } + if (!empty($param['end_time'])) { + $query->where('create_time', '<=', strtotime($param['end_time'])); + } + + // 排序 + $query->order('id', 'desc'); + + // 分页 + return $query->paginate([ + 'list_rows' => $param['pageSize'] ?? 10, + 'page' => $param['page'] ?? 1 + ]); + } + + /** + * 添加 + */ + public function add($param, $type, $options = []) + { + Db::startTrans(); + try { + $useInfo = $options['useInfo'] ?? Auth::getAdminInfo(); + $controller = $options['controller'] ?? Request::controller(); + $action = $options['action'] ?? Request::action(); + $ip = $options['ip'] ?? ''; // Request::ip(); + $host = $options['host'] ?? ''; // Request::host(); + $address = $options['address'] ?? ''; // $this->getMethod($ip) + // $type = $param['type']; + $project_id = $param['project_id'] ?? null; + $device_id = $param['device_id'] ?? null; + $flange_id = $param['flange_id'] ?? null; + $name = $param['name'] ?? null; + $content = $param['content'] ?? null; + if (($project_id === null || $device_id === null) && $flange_id !== null) { + $flangeInfo = FlangeModel::find($flange_id)->toArray(); + $project_id = $flangeInfo['project_id']; + $device_id = $flangeInfo['device_id']; + } + if (($project_id === null) && $device_id !== null) { + $deviceInfo = DeviceModel::find($device_id)->toArray(); + $project_id = $deviceInfo['project_id']; + } + + // 创建项目 + $log = LogModel::create([ + 'type' => $type, + 'project_id' => $project_id, + 'device_id' => $device_id, + 'flange_id' => $flange_id, + 'name' => $name, + 'content' => $content, + + 'controller' => $controller, + 'action' => $action, + 'ip' => $ip, + 'host' => $host, + 'address' => $address, + 'creator_id' => $useInfo['id'], + 'creator_name' => $useInfo['nickname'], + // 'create_time' => time(), + // 'update_time' => time(), + ]); + + + Db::commit(); + return $log->toArray(); + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 获取请求IP省市县 + */ + public function getMethod($ip): string + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, 'http://ip-api.com/json/' . $ip . '?lang=zh-CN'); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + $header[] = 'user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36'; + curl_setopt($ch, CURLOPT_HTTPHEADER, $header); + $response = curl_exec($ch); + curl_close($ch); + $resData = json_decode($response, true); + if (!empty($resData['status']) && $resData['status'] == 'success') { + return $resData['country'] . $resData['regionName'] . $resData['city']; + } else { + return '未知'; + } + } +} diff --git a/app/admin/service/ProjectService.php b/app/admin/service/ProjectService.php new file mode 100644 index 0000000000000000000000000000000000000000..61aa6685662b6ea5439cff010a6ddbc33e52feae --- /dev/null +++ b/app/admin/service/ProjectService.php @@ -0,0 +1,493 @@ +where('name', 'like', '%' . $param['name'] . '%'); + } + if (!empty($param['code'])) { + $query->where('code', 'like', '%' . $param['code'] . '%'); + } + if (isset($param['status'])) { + $query->where('status', $param['status']); + } + if (!empty($param['start_time'])) { + $query->where('start_time', '>=', strtotime($param['start_time'])); + } + if (!empty($param['end_time'])) { + $query->where('end_time', '<=', strtotime($param['end_time'])); + } + + // 排序 + $query->order('id', 'desc'); + + // 分页 + return $query->paginate([ + 'list_rows' => $param['pageSize'] ?? 20, + 'page' => $param['page'] ?? 1 + ]); + } + + /** + * 获取项目详情 + */ + public function getDetail($id) + { + $detail = ProjectModel::with(['relations', 'devices', 'flanges', 'feedbacks'])->find($id); + if (!$detail) { + throw new Exception('项目不存在'); + } + + // 处理关联数据 + $relations = []; + foreach ($detail->relations as $relation) { + $relations[$relation->type][] = $relation; + } + $detail->relations = $relations; + + return $detail; + } + + /** + * 添加项目 + */ + public function add($param) + { + Db::startTrans(); + try { + $useInfo = Auth::getAdminInfo(); + + // 创建项目 + $project = ProjectModel::create([ + 'name' => $param['name'], + 'description' => $param['description'] ?? '', + 'is_public' => $param['is_public'] ?? 0, + 'status' => $param['status'] ?? null, + 'creator_id' => $useInfo['id'], + 'creator_name' => $useInfo['nickname'], + // 'create_time' => time(), + // 'update_time' => time(), + ]); + + $relations = []; + // 添加项目关联 + if (!empty($param['image']) && !empty($param['image']['image_id'])) { + $relations[] = [ + 'project_id' => $project->id, + 'type' => 'image', + 'file_id' => $param['image']['image_id'], + 'user_id' => null, + 'relation_label' => '' + ]; + } + if (!empty($param['leader_ids'])) { + foreach ($param['leader_ids'] as $leaderId) { + $relations[] = [ + 'project_id' => $project->id, + 'type' => 'leader', + 'file_id' => null, + 'user_id' => $leaderId, + // 'user_id' => $leader['user_id'], + // 'relation_label' => $leader['nickname'] + ]; + } + } + if (!empty($param['operator_ids'])) { + foreach ($param['operator_ids'] as $operatorId) { + $relations[] = [ + 'project_id' => $project->id, + 'type' => 'operator', + 'file_id' => null, + 'user_id' => $operatorId, + // 'user_id' => $operator['user_id'], + // 'relation_label' => $operator['nickname'] + ]; + } + } + + foreach ($relations as $relation) { + ProjectRelationModel::create($relation); + } + + Db::commit(); + return $project->toArray(); + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 编辑项目 + */ + public function edit($id, $param) + { + $project = ProjectModel::find($id); + if (!$project) { + throw new Exception('项目不存在'); + } + + Db::startTrans(); + try { + // 更新项目 + $project->save([ + 'name' => $param['name'], + 'description' => $param['description'] ?? '', + 'is_public' => $param['is_public'] ?? 0, + 'status' => $param['status'] ?? null, + 'update_time' => time() + ]); + + // 更新项目关联 + + $relations = []; + ProjectRelationModel::destroy(['project_id' => $project->id]); + // 添加项目关联 + if (!empty($param['image']) && !empty($param['image']['image_id'])) { + $relations[] = [ + 'project_id' => $project->id, + 'type' => 'image', + 'file_id' => $param['image']['image_id'], + 'user_id' => null, + 'relation_label' => '' + ]; + } + if (!empty($param['leader_ids'])) { + foreach ($param['leader_ids'] as $leaderId) { + $relations[] = [ + 'project_id' => $project->id, + 'type' => 'leader', + 'file_id' => null, + 'user_id' => $leaderId, + // 'user_id' => $leader['user_id'], + // 'relation_label' => $leader['nickname'] + ]; + } + } + if (!empty($param['operator_ids'])) { + foreach ($param['operator_ids'] as $operatorId) { + $relations[] = [ + 'project_id' => $project->id, + 'type' => 'operator', + 'file_id' => null, + 'user_id' => $operatorId, + // 'user_id' => $operator['user_id'], + // 'relation_label' => $operator['nickname'] + ]; + } + } + + foreach ($relations as $relation) { + ProjectRelationModel::create($relation); + } + + Db::commit(); + return $project->toArray(); + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 删除项目 + */ + public function delete($id) + { + $project = ProjectModel::find($id); + if (!$project) { + throw new Exception('项目不存在'); + } + + Db::startTrans(); + try { + // 删除项目关联 + ProjectRelationModel::where('project_id', $id)->delete(); + // 删除项目 + $project->delete(); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 获取项目统计信息 + */ + public function getStatistics($param) + { + $type = $param['type']; + $startTime = $param['startTime']; + $endTime = $param['endTime']; + $flag = $param['flag'] ?? 'finished'; + + + $user_id = Auth::getAdminId(); + $projectIds = ProjectRelationModel::where('user_id', $user_id)->group('project_id')->column('project_id'); + + $stat = StatModel::where([ + ['project_id', 'in', $projectIds], + ['type', '=', $type], + ['flag', '=', $flag], + ['date_unix', '>=', $startTime], + ['date_unix', '<=', $endTime], + ])->field(['type', 'project_id', 'device_id', 'device_type', 'count', 'date_unix', 'date_str', 'flag'])->select()->toArray(); + // $result = []; + // foreach ($stat as $key => $value) { + // $result[$value['project_id']][] = $value; + // } + return $stat; + } + public function getAnalysis() + { + $result = []; + + $user_id = Auth::getAdminId(); + $projectIds = ProjectRelationModel::where('user_id', $user_id)->group('project_id')->column('project_id'); + + $result['flange'] = $this->getFlangeCountAnalysis($projectIds); + + $result['flangeFinished'] = $this->getFlangeFinishedCountAnalysis($projectIds); + + $result['flangeDayAdded'] = $this->getFlangeDayAddCountAnalysis($projectIds); + + $result['flangeUnFinished'] = $this->getFlangeUnFinishedCountAnalysis($projectIds); + + return $result; + } + public function getFlangeCountAnalysis($projectIds) + { + $result = []; + + $flangeCount = FlangeModel::where([ + ['project_id', 'in', $projectIds], + ])->count(); + $result['total'] = $flangeCount; + + // 获取当前日期 + $currentDate = date('Y-m-d'); + + // 获取当前周的开始时间(周一 00:00:00) + $currentWeekStart = strtotime('this week monday 00:00:00', strtotime($currentDate)); + + // 获取当前周的结束时间(周日 23:59:59) + $currentWeekEnd = strtotime('this week sunday 23:59:59', strtotime($currentDate)); + + $thisWeekFlangeCount = FlangeModel::where([ + ['project_id', 'in', $projectIds], + ['create_time', '>=', $currentWeekStart], + ['create_time', '<=', $currentWeekEnd], + ])->count(); + $result['thisWeek'] = $thisWeekFlangeCount; + + // 获取上一周的开始时间(周一 00:00:00) + $lastWeekStart = strtotime('last week monday 00:00:00', strtotime($currentDate)); + + // 获取上一周的结束时间(周日 23:59:59) + $lastWeekEnd = strtotime('last week sunday 23:59:59', strtotime($currentDate)); + + $lastWeekFlangeCount = FlangeModel::where([ + ['project_id', 'in', $projectIds], + ['create_time', '>=', $lastWeekStart], + ['create_time', '<=', $lastWeekEnd], + ])->count(); + $result['lastWeek'] = $lastWeekFlangeCount; + + + + // 获取今天的开始时间(00:00:00)和结束时间(23:59:59) + $todayStart = strtotime('today 00:00:00'); + $todayEnd = strtotime('today 23:59:59'); + + $todayFlangeCount = FlangeModel::where([ + ['project_id', 'in', $projectIds], + ['create_time', '>=', $todayStart], + ['create_time', '<=', $todayEnd], + ])->count(); + $result['today'] = $todayFlangeCount; + + + // 获取昨天的开始时间(00:00:00)和结束时间(23:59:59) + $yesterdayStart = strtotime('yesterday 00:00:00'); + $yesterdayEnd = strtotime('yesterday 23:59:59'); + + $yesterdayFlangeCount = FlangeModel::where([ + ['project_id', 'in', $projectIds], + ['create_time', '>=', $yesterdayStart], + ['create_time', '<=', $yesterdayEnd], + ])->count(); + $result['yesterday'] = $yesterdayFlangeCount; + + $firstDayData = StatModel::where([ + ['project_id', 'in', $projectIds], + ['type', '=', 'project'], + ['flag', '=', 'finished'], + ])->field(['date_unix'])->order(['date_unix' => 'asc'])->limit(0, 1)->select()->toArray(); + $firstDay = $todayStart; + if (count($firstDayData) > 0) { + $firstDay = $firstDayData[0]['date_unix']; + } + + $today = $todayStart; + $diff = ($today - $firstDay) / 86400 + 1; + if ($diff < 1) { + $diff = 1; + } + // $result['avg'] = round($flangeCount / $diff, 0); + $result['avg'] = floor($flangeCount / $diff); + + return $result; + } + public function getFlangeFinishedCountAnalysis($projectIds) + { + $result = []; + + $tmp = StatModel::where([ + ['project_id', 'in', $projectIds], + ['type', '=', 'project'], + ['flag', '=', 'finished'], + ])->field(['date_unix', 'date_str', 'count'])->order(['date_unix' => 'asc'])->select()->toArray(); + + $tmp2 = []; + $total = 0; + foreach ($tmp as $value) { + if (isset($tmp2[$value['date_str']])) { + $value['count'] += $tmp2[$value['date_str']]['count']; + } + $tmp2[$value['date_str']] = $value; + $total += $value['count']; + } + $result['total'] = $total; + $result['data'] = array_values($tmp2); + + $currentDate = date('Y-m-d'); + $tmp3 = StatModel::where([ + ['project_id', 'in', $projectIds], + ['type', '=', 'project'], + ['date_str', '=', $currentDate], + ['flag', '=', 'finished'], + ])->field(['date_unix', 'date_str', 'count'])->order(['date_unix' => 'asc'])->select()->toArray(); + $today = 0; + if (count($tmp3) > 0) { + $today = $tmp3[0]['count']; + } + $result['today'] = $today; + + + return $result; + } + public function getFlangeDayAddCountAnalysis($projectIds) + { + $result = []; + + $tmp = StatModel::where([ + ['project_id', 'in', $projectIds], + ['type', '=', 'project'], + ['flag', '=', 'added'], + ])->field(['date_unix', 'date_str', 'count'])->order(['date_unix' => 'asc'])->select()->toArray(); + + $tmp2 = []; + $total = 0; + foreach ($tmp as $value) { + if (isset($tmp2[$value['date_str']])) { + $value['count'] += $tmp2[$value['date_str']]['count']; + } + $tmp2[$value['date_str']] = $value; + $total += $value['count']; + } + $result['total'] = $total; + $result['data'] = array_values($tmp2); + + $currentDate = date('Y-m-d'); + $tmp3 = StatModel::where([ + ['project_id', 'in', $projectIds], + ['type', '=', 'project'], + ['date_str', '=', $currentDate], + ['flag', '=', 'added'], + ])->field(['date_unix', 'date_str', 'count'])->order(['date_unix' => 'asc'])->select()->toArray(); + $today = 0; + if (count($tmp3) > 0) { + $today = $tmp3[0]['count']; + } + $result['today'] = $today; + + + return $result; + } + public function getFlangeUnFinishedCountAnalysis($projectIds) + { + $result = []; + + $flangeCount = FlangeModel::where([ + ['project_id', 'in', $projectIds], + ])->count(); + $result['total'] = $flangeCount; + + $flangeUnFinishedCount = FlangeModel::where([ + ['project_id', 'in', $projectIds], + ['torque_final_check', '=', 0], + ])->count(); + $result['unFinished'] = $flangeUnFinishedCount; + + return $result; + } + + + /** + * 生成项目编号 + */ + protected function generateProjectCode(): string + { + // 生成当前日期的前缀,格式为 YYYYMMDD + $prefix = date('Ymd'); + + // 查找数据库中以当前日期前缀开头的最大项目编号 + $max_code = ProjectModel::where('code', 'like', $prefix . '%') + ->order('code', 'desc') + ->value('code'); + + // 如果存在最大项目编号,则提取最后四位数字并加1 + if ($max_code) { + // 提取最后四位字符 + $last_four_chars = substr($max_code, -4); + // 确保提取的字符是数字 + if (is_numeric($last_four_chars)) { + $serial = intval($last_four_chars) + 1; + } else { + // 如果提取的字符不是数字,设置为1 + $serial = 1; + } + } else { + // 如果不存在最大项目编号,则从1开始 + $serial = 1; + } + + // 将序列号填充为4位数字字符串,并与前缀连接 + return $prefix . str_pad($serial . "", 4, '0', STR_PAD_LEFT); + } +} diff --git a/app/admin/service/StatService.php b/app/admin/service/StatService.php new file mode 100644 index 0000000000000000000000000000000000000000..24dea8ffdf0f4b20d89f42710f9e45623d428df3 --- /dev/null +++ b/app/admin/service/StatService.php @@ -0,0 +1,175 @@ +where('type', '=', $param['type']); + } + if (!empty($param['project_ids'])) { + $query->where('project_id', 'in', $param['project_ids']); + } + if (!empty($param['device_ids'])) { + $query->where('device_id', 'in', $param['device_ids']); + } + if (!empty($param['device_types'])) { + $query->where('device_type', 'in', $param['device_types']); + } + if (!empty($param['start_time'])) { + $query->where('create_time', '>=', strtotime($param['start_time'])); + } + if (!empty($param['end_time'])) { + $query->where('create_time', '<=', strtotime($param['end_time'])); + } + + // 排序 + $query->order('id', 'desc'); + + // 分页 + return $query->select()->toArray(); + } + + /** + * 添加 + * + * @param array $param 包含以下字段: + * - project_id: int|null 项目ID + * - device_id: int|null 设备ID + * - device_type: string|null 设备类型 + * - flange_id: int|null 法兰ID + * - count: int|null 法兰ID + * @return array + */ + public function plus($param, $flag) + { + Db::startTrans(); + try { + $project_id = $param['project_id'] ?? null; + $device_id = $param['device_id'] ?? null; + $device_type = $param['device_type'] ?? null; + $flange_id = $param['flange_id'] ?? null; + $count = $param['count'] ?? 1; + if (($project_id === null || $device_id === null) && $flange_id !== null) { + $flangeInfo = FlangeModel::find($flange_id)->toArray(); + $project_id = $flangeInfo['project_id']; + $device_id = $flangeInfo['device_id']; + } + if (($project_id === null || $device_type === null) && $device_id !== null) { + $deviceInfo = DeviceModel::find($device_id)->toArray(); + $project_id = $deviceInfo['project_id']; + $device_type = $deviceInfo['type']; + } + $date = date('Y-m-d 00:00:00'); + $date_str = date('Y-m-d'); + $date_unix = strtotime('today'); + + $statProject = StatModel::where([ + ['project_id', '=', $project_id], + ['type', '=', 'project'], + ['date_str', '=', $date_str], + ['flag', '=', $flag], + ])->findOrEmpty(); + if ($statProject->isEmpty()) { + $statProject = StatModel::create([ + 'type' => 'project', + 'project_id' => $project_id, + 'date' => $date, + 'date_unix' => $date_unix, + 'date_str' => $date_str, + 'count' => 0, + 'flag' => $flag, + ]); + }; + $statProject->inc('count', $count)->save(); + + $statDevice = StatModel::where([ + ['device_id', '=', $device_id], + ['type', '=', 'device'], + ['date_str', '=', $date_str], + ['flag', '=', $flag], + ])->findOrEmpty(); + if ($statDevice->isEmpty()) { + $statDevice = StatModel::create([ + 'type' =>'device', + 'project_id' => $project_id, + 'device_id' => $device_id, + 'device_type' => $device_type, + 'date' => $date, + 'date_unix' => $date_unix, + 'date_str' => $date_str, + 'count' => 0, + 'flag' => $flag, + ]); + }; + $statDevice->inc('count', $count)->save(); + + $statDeviceType = StatModel::where([ + ['project_id', '=', $project_id], + ['device_type', '=', $device_type], + ['type', '=', 'deviceType'], + ['date_str', '=', $date_str], + ['flag', '=', $flag], + ])->findOrEmpty(); + if ($statDeviceType->isEmpty()) { + $statDeviceType = StatModel::create([ + 'type' =>'deviceType', + 'project_id' => $project_id, + 'device_type' => $device_type, + 'date' => $date, + 'date_unix' => $date_unix, + 'date_str' => $date_str, + 'count' => 0, + 'flag' => $flag, + ]); + }; + $statDeviceType->inc('count', $count)->save(); + + Db::commit(); + return []; + } catch (\Exception $e) { + Db::rollback(); + throw new Exception($e->getMessage()); + } + } + + /** + * 获取请求IP省市县 + */ + public function getMethod($ip): string + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, 'http://ip-api.com/json/' . $ip . '?lang=zh-CN'); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + $header[] = 'user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36'; + curl_setopt($ch, CURLOPT_HTTPHEADER, $header); + $response = curl_exec($ch); + curl_close($ch); + $resData = json_decode($response, true); + if (!empty($resData['status']) && $resData['status'] == 'success') { + return $resData['country'] . $resData['regionName'] . $resData['city']; + } else { + return '未知'; + } + } +} diff --git a/app/admin/service/config/FlangeConfig.php b/app/admin/service/config/FlangeConfig.php new file mode 100644 index 0000000000000000000000000000000000000000..804c7ee86deeb0fafcca340bf83b717c472d9c3e --- /dev/null +++ b/app/admin/service/config/FlangeConfig.php @@ -0,0 +1,34 @@ + ['no' => '1-2', 'image' => true], + '8-2' => ['no' => '1-3-2-4', 'image' => true], + '8-4' => ['no' => '1-2', 'image' => true], + '12-2' => ['no' => '1-3-5-2-4-6', 'image' => true], + '12-4' => ['no' => '1-2-3', 'image' => true], + '16-2' => ['no' => '1-5-3-7-2-6-4-8', 'image' => true], + '16-4' => ['no' => '1-3-2-4', 'image' => true], + '20-2' => ['no' => '1-7-3-9-5-2-8-4-10-6', 'image' => true], + '20-4' => ['no' => '1-4-2-5-3', 'image' => true], + '24-2' => ['no' => '1-5-9-3-7-11-2-6-10-4-8-12', 'image' => true], + '24-4' => ['no' => '1-3-5-2-4-6', 'image' => true], + '28-2' => ['no' => '1-7-13-3-9-5-11-2-8-14-4-10-6-12', 'image' => true], + '28-4' => ['no' => '1-4-7-2-5-3-6', 'image' => true], + '32-2' => ['no' => '1-9-5-13-3-11-7-15-2-10-6-14-4-12-8-16', 'image' => true], + '32-4' => ['no' => '1-5-3-7-2-6-4-8', 'image' => true], + '36-2' => ['no' => '1-13-7-15-3-9-17-5-11-2-14-8-18-4-12-6-16-10', 'image' => true], + '36-4' => ['no' => '1-9-3-5-7-2-8-4-6', 'image' => true], + '40-4' => ['no' => '1-6-10-4-8-2-5-7-3-9', 'image' => true], + '44-4' => ['no' => '1-10-5-3-7-9-2-11-4-6-8', 'image' => true], + '48-4' => ['no' => '1-8-6-4-12-10-2-7-5-3-9-11', 'image' => true], + '52-4' => ['no' => '1-4-7-10-13-5-2-8-11-3-6-9-12', 'image' => true], + '56-4' => ['no' => '1-6-14-3-11-8-5-2-9-12-4-7-13-10', 'image' => true], + '60-4' => ['no' => '1-12-15-4-7-10-13-2-5-8-11-3-14-6-9', 'image' => true], + '64-4' => ['no' => '1-15-5-9-3-13-7-11-2-16-6-10-4-14-8-12', 'image' => true], + '68-4' => ['no' => '1-16-13-10-4-7-15-12-2-9-6-17-3-14-11-8-5', 'image' => true], + '72-4' => ['no' => '1-17-13-5-9-3-15-7-11-2-18-14-6-10-4-16-8-12', 'image' => false], + '76-4' => ['no' => '1-17-13-5-9-3-15-7-11-2-18-14-6-10-4-16-8-12-19', 'image' => false], + '80-4' => ['no' => '1-5-8-18-15-3-12-9-6-19-2-16-13-10-7-4-20-17-14-11', 'image' => true], +]; diff --git a/app/admin/validate/Admin.php b/app/admin/validate/Admin.php index db1f73bc154459ec454be39239c64157b53f0622..be62a815a2e83a0f9cd109379b82a4e9f94977d7 100644 --- a/app/admin/validate/Admin.php +++ b/app/admin/validate/Admin.php @@ -8,13 +8,13 @@ class Admin extends Validate { protected $rule = [ 'id' => 'require|max:10|number', - 'username' => 'require|max:10|alphaDash', - 'password' => 'require|max:10|graph', + 'username' => 'require|max:50|alphaDash', + 'password' => 'require|max:60|graph', 'autoLogin' => 'boolean', 'mobile' => 'require|mobile', 'captcha' => 'require|max:4', 'nickname' => 'require', - 'sex' => 'max:1|string', + 'sex' => 'require|max:1', 'rePassword'=>'require|confirm:password', 'group_id' => 'require|number', 'status' => 'require|number' diff --git a/app/admin/validate/DeviceValidate.php b/app/admin/validate/DeviceValidate.php new file mode 100644 index 0000000000000000000000000000000000000000..b11e974adfa9a25b5245f42b521a47228269a5c5 --- /dev/null +++ b/app/admin/validate/DeviceValidate.php @@ -0,0 +1,77 @@ + 'require|number', + // 'name' => 'require|max:50', + // 'code' => 'require|max:20|alphaDash', + // 'project_id' => 'require|number', + // 'description' => 'max:500', + // 'location' => 'max:100', + // 'equipment_code' => 'max:50', + // 'equipment_name' => 'max:50', + // 'status' => 'number|in:0,1,2', + // 'remark' => 'max:500', + // 'ids' => 'require|array', + // 'devices' => 'require|array', + // 'devices.*.name' => 'require|max:50', + // 'devices.*.code' => 'require|max:20|alphaDash', + // 'devices.*.description' => 'max:500', + // 'devices.*.location' => 'max:100', + // 'devices.*.equipment_code' => 'max:50', + // 'devices.*.equipment_name' => 'max:50', + // 'devices.*.status' => 'number|in:0,1,2', + // 'devices.*.remark' => 'max:500' + ]; + + protected $message = [ + // 'id.require' => 'ID不能为空', + // 'id.number' => 'ID必须为数字', + // 'name.require' => '装置名称不能为空', + // 'name.max' => '装置名称最多50个字符', + // 'code.require' => '装置编号不能为空', + // 'code.max' => '装置编号最多20个字符', + // 'code.alphaDash' => '装置编号只能是字母、数字和下划线_及破折号-', + // 'project_id.require' => '项目ID不能为空', + // 'project_id.number' => '项目ID必须为数字', + // 'description.max' => '装置描述最多500个字符', + // 'location.max' => '位置信息最多100个字符', + // 'equipment_code.max' => '设备编号最多50个字符', + // 'equipment_name.max' => '设备名称最多50个字符', + // 'status.number' => '状态必须为数字', + // 'status.in' => '状态值不正确', + // 'remark.max' => '备注最多500个字符', + // 'ids.require' => 'ID列表不能为空', + // 'ids.array' => 'ID列表格式不正确', + // 'devices.require' => '装置数据不能为空', + // 'devices.array' => '装置数据必须是数组', + // 'devices.*.name.require' => '装置名称不能为空', + // 'devices.*.name.max' => '装置名称最多50个字符', + // 'devices.*.code.require' => '装置编号不能为空', + // 'devices.*.code.max' => '装置编号最多20个字符', + // 'devices.*.code.alphaDash' => '装置编号只能是字母、数字和下划线_及破折号-', + // 'devices.*.description.max' => '装置描述最多500个字符', + // 'devices.*.location.max' => '位置信息最多100个字符', + // 'devices.*.equipment_code.max' => '设备编号最多50个字符', + // 'devices.*.equipment_name.max' => '设备名称最多50个字符', + // 'devices.*.status.number' => '状态必须为数字', + // 'devices.*.status.in' => '状态值不正确', + // 'devices.*.remark.max' => '备注最多500个字符' + ]; + + protected $scene = [ + 'add' => ['name', 'code', 'project_id', 'description', 'location', 'equipment_code', 'equipment_name', 'status', 'remark'], + 'edit' => ['id', 'name', 'code', 'description', 'location', 'equipment_code', 'equipment_name', 'status', 'remark'], + 'delete' => ['id'], + 'status' => ['id', 'status'], + 'batchImport' => ['project_id', 'devices'], + 'batchDelete' => ['ids'], + 'batchStatus' => ['ids', 'status'] + ]; +} \ No newline at end of file diff --git a/app/admin/validate/FeedbackRelationValidate.php b/app/admin/validate/FeedbackRelationValidate.php new file mode 100644 index 0000000000000000000000000000000000000000..a9d03365980d946729b8e7fcf65aa56f996584de --- /dev/null +++ b/app/admin/validate/FeedbackRelationValidate.php @@ -0,0 +1,41 @@ + 'require|number', + // 'code' => 'require|max:50', + // 'name' => 'require|max:50', + // 'content' => 'require|max:512', + // 'imgs' => 'array', + // 'user_id' => 'require|number', + // 'user_name' => 'require|max:50' + ]; + + protected $message = [ + // 'feedback_id.require' => '反馈ID不能为空', + // 'feedback_id.number' => '反馈ID必须为数字', + // 'code.require' => '反馈项编号不能为空', + // 'code.max' => '反馈项编号最多不能超过50个字符', + // 'name.require' => '反馈项名称不能为空', + // 'name.max' => '反馈项名称最多不能超过50个字符', + // 'content.require' => '反馈内容不能为空', + // 'content.max' => '反馈内容最多不能超过512个字符', + // 'imgs.array' => '反馈图片必须为数组格式', + // 'user_id.require' => '反馈人ID不能为空', + // 'user_id.number' => '反馈人ID必须为数字', + // 'user_name.require' => '反馈人名称不能为空', + // 'user_name.max' => '反馈人名称最多不能超过50个字符' + ]; + + protected $scene = [ + 'add' => ['feedback_id', 'code', 'name', 'content', 'imgs', 'user_id', 'user_name'], + 'edit' => ['code', 'name', 'content', 'imgs', 'user_id', 'user_name'], + 'batch_add' => ['code', 'name', 'content', 'imgs', 'user_id', 'user_name'] + ]; +} \ No newline at end of file diff --git a/app/admin/validate/FeedbackValidate.php b/app/admin/validate/FeedbackValidate.php new file mode 100644 index 0000000000000000000000000000000000000000..ddea29e8ee20f54d3f28b07f3a563eb9c674998e --- /dev/null +++ b/app/admin/validate/FeedbackValidate.php @@ -0,0 +1,82 @@ + 'require|number', + // 'code' => 'require|alphaDash|max:50', + // 'title' => 'require|chsDash|max:100', + // 'project_id' => 'require|number', + // 'device_id' => 'require|number', + // 'flange_id' => 'require|number', + // 'type' => 'in:0,1,2', + // 'level' => 'in:0,1,2', + // 'description' => 'require|max:1000', + // 'solution' => 'max:1000', + // 'status' => 'in:0,1,2', + // 'remark' => 'max:500', + // 'create_user' => 'number', + // 'create_user_name' => 'chsDash|max:50', + // 'handle_user' => 'number', + // 'handle_user_name' => 'chsDash|max:50', + // 'handle_time' => 'number', + // 'relations' => 'array', + // 'relations.*.type' => 'require|in:1,2,3', + // 'relations.*.name' => 'max:100', + // 'relations.*.path' => 'require|max:255', + // 'relations.*.size' => 'number', + // 'relations.*.sort' => 'number', + // 'relations.*.status' => 'in:0,1' + ]; + + protected $message = [ + // 'id.require' => 'ID不能为空', + // 'id.number' => 'ID必须为数字', + // 'code.require' => '反馈编号不能为空', + // 'code.alphaDash' => '反馈编号只能是字母、数字和下划线_及破折号-', + // 'code.max' => '反馈编号最多不能超过50个字符', + // 'title.require' => '反馈标题不能为空', + // 'title.chsDash' => '反馈标题只能是汉字、字母、数字和下划线_及破折号-', + // 'title.max' => '反馈标题最多不能超过100个字符', + // 'project_id.require' => '项目ID不能为空', + // 'project_id.number' => '项目ID必须为数字', + // 'device_id.require' => '装置ID不能为空', + // 'device_id.number' => '装置ID必须为数字', + // 'flange_id.require' => '法兰ID不能为空', + // 'flange_id.number' => '法兰ID必须为数字', + // 'type.in' => '类型值不正确', + // 'level.in' => '等级值不正确', + // 'description.require' => '问题描述不能为空', + // 'description.max' => '问题描述最多不能超过1000个字符', + // 'solution.max' => '解决方案最多不能超过1000个字符', + // 'status.in' => '状态值不正确', + // 'remark.max' => '备注最多不能超过500个字符', + // 'create_user.number' => '创建用户ID必须为数字', + // 'create_user_name.chsDash' => '创建用户名只能是汉字、字母、数字和下划线_及破折号-', + // 'create_user_name.max' => '创建用户名最多不能超过50个字符', + // 'handle_user.number' => '处理用户ID必须为数字', + // 'handle_user_name.chsDash' => '处理用户名只能是汉字、字母、数字和下划线_及破折号-', + // 'handle_user_name.max' => '处理用户名最多不能超过50个字符', + // 'handle_time.number' => '处理时间格式不正确', + // 'relations.array' => '关联数据必须是数组', + // 'relations.*.type.require' => '关联类型不能为空', + // 'relations.*.type.in' => '关联类型不正确', + // 'relations.*.name.max' => '关联名称最多不能超过100个字符', + // 'relations.*.path.require' => '关联路径不能为空', + // 'relations.*.path.max' => '关联路径最多不能超过255个字符', + // 'relations.*.size.number' => '关联大小必须为数字', + // 'relations.*.sort.number' => '关联排序必须为数字', + // 'relations.*.status.in' => '关联状态值不正确' + ]; + + protected $scene = [ + 'add' => ['title', 'project_id', 'device_id', 'flange_id', 'type', 'level', 'description', 'status', 'remark', 'create_user', 'create_user_name', 'relations'], + 'edit' => ['id', 'title', 'project_id', 'device_id', 'flange_id', 'type', 'level', 'description', 'solution', 'status', 'remark', 'handle_user', 'handle_user_name', 'handle_time', 'relations'], + 'status' => ['id', 'status', 'solution', 'handle_user', 'handle_user_name'] + ]; +} \ No newline at end of file diff --git a/app/admin/validate/FlangeParamValidate.php b/app/admin/validate/FlangeParamValidate.php new file mode 100644 index 0000000000000000000000000000000000000000..1cbfa5e1d2c72d8a75d632d389eb0562467f1c5b --- /dev/null +++ b/app/admin/validate/FlangeParamValidate.php @@ -0,0 +1,47 @@ + 'require|number', + // 'code' => 'require|alphaDash|length:14', + // 'flange_id' => 'require|number', + // 'flange_code' => 'alphaDash|max:50', + // 'flange_name' => 'chsDash|max:20', + // 'device_id' => 'number', + // 'device_name' => 'chsDash|max:50', + // 'batch_name' => 'array', + // 'status' => 'in:0,1', + // 'count' => 'require|number|between:1,1000' + ]; + + protected $message = [ + // 'id.require' => 'ID不能为空', + // 'id.number' => 'ID必须为数字', + // 'code.require' => '二维码编号不能为空', + // 'code.alphaDash' => '二维码编号只能是字母、数字和下划线_及破折号-', + // 'code.length' => '二维码编号必须是14个字符', + // 'flange_id.require' => '法兰ID不能为空', + // 'flange_id.number' => '法兰ID必须为数字', + // 'flange_code.alphaDash' => '法兰编号只能是字母、数字和下划线_及破折号-', + // 'flange_name.chsDash' => '法兰名称只能是汉字、字母、数字和下划线_及破折号-', + // 'device_id.number' => '装置ID必须为数字', + // 'device_name.chsDash' => '装置名称只能是汉字、字母、数字和下划线_及破折号-', + // 'batch_name.array' => '批次名称必须是数组', + // 'status.in' => '状态值只能是0或1', + // 'count.require' => '生成数量不能为空', + // 'count.number' => '生成数量必须为数字', + // 'count.between' => '生成数量必须在1-1000之间' + ]; + + protected $scene = [ + 'generate' => ['batch_name'], + 'batchGenerate' => ['count', 'batch_name'], + 'bind' => ['id', 'flange_id'] + ]; +} \ No newline at end of file diff --git a/app/admin/validate/FlangeQrcodeValidate.php b/app/admin/validate/FlangeQrcodeValidate.php new file mode 100644 index 0000000000000000000000000000000000000000..634a4d82b7051dc7c22a2734f8a0691ba121e1b7 --- /dev/null +++ b/app/admin/validate/FlangeQrcodeValidate.php @@ -0,0 +1,47 @@ + 'require|number', + // 'code' => 'require|alphaDash|length:14', + // 'flange_id' => 'require|number', + // 'flange_code' => 'alphaDash|max:50', + // 'flange_name' => 'chsDash|max:20', + // 'device_id' => 'number', + // 'device_name' => 'chsDash|max:50', + // 'batch_name' => 'array', + // 'status' => 'in:0,1', + // 'count' => 'require|number|between:1,1000' + ]; + + protected $message = [ + // 'id.require' => 'ID不能为空', + // 'id.number' => 'ID必须为数字', + // 'code.require' => '二维码编号不能为空', + // 'code.alphaDash' => '二维码编号只能是字母、数字和下划线_及破折号-', + // 'code.length' => '二维码编号必须是14个字符', + // 'flange_id.require' => '法兰ID不能为空', + // 'flange_id.number' => '法兰ID必须为数字', + // 'flange_code.alphaDash' => '法兰编号只能是字母、数字和下划线_及破折号-', + // 'flange_name.chsDash' => '法兰名称只能是汉字、字母、数字和下划线_及破折号-', + // 'device_id.number' => '装置ID必须为数字', + // 'device_name.chsDash' => '装置名称只能是汉字、字母、数字和下划线_及破折号-', + // 'batch_name.array' => '批次名称必须是数组', + // 'status.in' => '状态值只能是0或1', + // 'count.require' => '生成数量不能为空', + // 'count.number' => '生成数量必须为数字', + // 'count.between' => '生成数量必须在1-1000之间' + ]; + + protected $scene = [ + 'generate' => ['batch_name'], + 'batchGenerate' => ['count', 'batch_name'], + 'bind' => ['id', 'flange_id'] + ]; +} \ No newline at end of file diff --git a/app/admin/validate/FlangeValidate.php b/app/admin/validate/FlangeValidate.php new file mode 100644 index 0000000000000000000000000000000000000000..910b4f598baba2afecb57471a5c53b1b75c6845f --- /dev/null +++ b/app/admin/validate/FlangeValidate.php @@ -0,0 +1,84 @@ + 'require|number', + // 'name' => 'require|max:50', + // 'code' => 'require|max:50', + // 'project_id' => 'require|number', + // 'device_id' => 'require|number', + // 'type' => 'number|in:0,1,2', + // 'status' => 'number|in:0,1,2', + // 'location' => 'max:50', + // 'equipment_code' => 'max:50', + // 'equipment_name' => 'max:50', + // 'data' => 'array', + // 'data.level' => 'number|in:0,1,2,3,4,5', + // 'data.inspection_cycle' => 'number|between:7,365', + // 'data.params' => 'array', + // 'data.params.*.code' => 'require|max:50', + // 'data.params.*.name' => 'require|max:50', + // 'data.params.*.value' => 'require|max:100', + // 'data.params.*.unit' => 'max:20', + // 'ids' => 'require|array', + // 'flanges' => 'require|array', + // 'flanges.*.name' => 'require|max:50', + // 'flanges.*.code' => 'require|max:50', + // 'flanges.*.type' => 'number|in:0,1,2', + // 'flanges.*.location' => 'max:50', + // 'flanges.*.equipment_code' => 'max:50', + // 'flanges.*.equipment_name' => 'max:50', + // 'flanges.*.data' => 'array', + // 'flanges.*.data.level' => 'number|in:0,1,2,3,4,5', + // 'flanges.*.data.params' => 'array' + ]; + + protected $message = [ + // 'id.require' => 'ID不能为空', + // 'id.number' => 'ID必须是数字', + // 'name.require' => '名称不能为空', + // 'name.max' => '名称最多不能超过50个字符', + // 'code.require' => '编号不能为空', + // 'code.max' => '编号最多不能超过50个字符', + // 'project_id.require' => '项目不能为空', + // 'project_id.number' => '项目ID必须是数字', + // 'device_id.require' => '装置不能为空', + // 'device_id.number' => '装置ID必须是数字', + // 'type.number' => '类型必须是数字', + // 'type.in' => '类型值不正确', + // 'status.number' => '状态必须是数字', + // 'status.in' => '状态值不正确', + // 'location.max' => '位置最多不能超过50个字符', + // 'equipment_code.max' => '设备位号最多不能超过50个字符', + // 'equipment_name.max' => '设备名称最多不能超过50个字符', + // 'data.array' => '数据必须是数组', + // 'data.level.number' => '级别必须是数字', + // 'data.level.in' => '级别值不正确', + // 'data.inspection_cycle.number' => '检查周期必须是数字', + // 'data.inspection_cycle.between' => '检查周期必须在7-365之间', + // 'data.params.array' => '参数必须是数组', + // 'data.params.*.code.require' => '参数编号不能为空', + // 'data.params.*.code.max' => '参数编号最多不能超过50个字符', + // 'data.params.*.name.require' => '参数名称不能为空', + // 'data.params.*.name.max' => '参数名称最多不能超过50个字符', + // 'data.params.*.value.require' => '参数值不能为空', + // 'data.params.*.value.max' => '参数值最多不能超过100个字符', + // 'data.params.*.unit.max' => '参数单位最多不能超过20个字符' + ]; + + protected $scene = [ + // 'add' => ['name', 'code', 'project_id', 'device_id', 'type', 'status', 'location', 'equipment_code', 'equipment_name', 'data'], + // 'edit' => ['id', 'name', 'code', 'type', 'status', 'location', 'equipment_code', 'equipment_name', 'data'], + // 'delete' => ['id'], + // 'status' => ['id', 'status'], + // 'batchImport' => ['device_id', 'flanges'], + // 'batchDelete' => ['ids'], + // 'batchStatus' => ['ids', 'status'] + ]; +} \ No newline at end of file diff --git a/app/admin/validate/LogValidate.php b/app/admin/validate/LogValidate.php new file mode 100644 index 0000000000000000000000000000000000000000..2aadd75b88fb134493980107a4fd39813c0f6724 --- /dev/null +++ b/app/admin/validate/LogValidate.php @@ -0,0 +1,25 @@ + [], + 'edit' => [], + 'delete' => [], + 'status' => [], + 'batchImport' => [], + 'batchDelete' => [], + 'batchStatus' => [] + ]; +} \ No newline at end of file diff --git a/app/admin/validate/ProjectValidate.php b/app/admin/validate/ProjectValidate.php new file mode 100644 index 0000000000000000000000000000000000000000..a72e893936af33dee5db7c69829f1b93b506044a --- /dev/null +++ b/app/admin/validate/ProjectValidate.php @@ -0,0 +1,65 @@ + 'require|number', + // 'name' => 'require|max:50', + // 'code' => 'require|max:20|alphaDash', + // 'description' => 'max:500', + // 'start_time' => 'date', + // 'end_time' => 'date', + // 'status' => 'number|in:0,1,2', + // 'remark' => 'max:500', + // 'relations' => 'array', + // 'relations.*.id' => 'number', + // 'relations.*.type' => 'require|in:1,2,3', + // 'relations.*.relation_id' => 'number', + // 'relations.*.name' => 'max:50', + // 'relations.*.value' => 'max:255', + // 'relations.*.sort' => 'number', + // 'relations.*.status' => 'in:0,1', + // 'ids' => 'require|array' + ]; + + protected $message = [ + // 'id.require' => 'ID不能为空', + // 'id.number' => 'ID必须为数字', + // 'name.require' => '项目名称不能为空', + // 'name.max' => '项目名称最多50个字符', + // 'code.require' => '项目编号不能为空', + // 'code.max' => '项目编号最多20个字符', + // 'code.alphaDash' => '项目编号只能是字母、数字和下划线_及破折号-', + // 'description.max' => '项目描述最多500个字符', + // 'start_time.date' => '开始时间格式不正确', + // 'end_time.date' => '结束时间格式不正确', + // 'status.number' => '状态必须为数字', + // 'status.in' => '状态值不正确', + // 'remark.max' => '备注最多500个字符', + // 'relations.array' => '关联数据必须是数组', + // 'relations.*.type.require' => '关联类型不能为空', + // 'relations.*.type.in' => '关联类型不正确', + // 'relations.*.relation_id.number' => '关联ID必须为数字', + // 'relations.*.name.max' => '关联名称最多不能超过50个字符', + // 'relations.*.value.max' => '关联值最多不能超过255个字符', + // 'relations.*.sort.number' => '排序必须为数字', + // 'relations.*.status.in' => '关联状态值不正确', + // 'ids.require' => 'ID列表不能为空', + // 'ids.array' => 'ID列表格式不正确' + ]; + + protected $scene = [ + 'add' => ['name', 'description', 'status', 'image', 'leaders', 'operators'], + 'edit' => ['id', 'name', 'description', 'status', 'image', 'leaders', 'operators'], + 'delete' => ['id'], + 'status' => ['id', 'status'], + 'batchDelete' => ['ids'], + 'batchStatus' => ['ids', 'status'] + ]; +} diff --git a/app/api/controller/UserController.php b/app/api/controller/UserController.php index 5eeb7205118f2d1ef296ae7478ac5b8e91b7b935..d7c82a18245c9b817408c4c736b8a0b32ca8eea1 100644 --- a/app/api/controller/UserController.php +++ b/app/api/controller/UserController.php @@ -66,7 +66,7 @@ class UserController extends BaseController $Token->delete($token); $user_id = $Token->get($reToken)['user_id']; $token = md5(random_bytes(10)); - $Token->set($token, 'user', $user_id); + $Token->set($token, 'user', $user_id, 'user'); return $this->success(compact('token')); } else { return $this->error('请先登录!'); diff --git a/app/common/attribute/Auth.php b/app/common/attribute/Auth.php index 054b34a005808a1bbaf9f0912a390d40e8f7aade..f838aec35427622b01681cd8dde4161108a34657 100644 --- a/app/common/attribute/Auth.php +++ b/app/common/attribute/Auth.php @@ -34,10 +34,10 @@ class Auth */ public function __construct(string $key = '') { - if(!function_exists('app')) return; + if (!function_exists('app')) return; // 获取权限标识 $rules = self::getRules(); - if(empty($key)) return; + if (empty($key)) return; // 使用反射机制获取当前控制器的 AuthName $appName = app('http')->getName(); $controllerName = request()->controller(); @@ -50,8 +50,8 @@ class Auth $authKey = strtolower($authName . '.' . $key); // 权限不存在添加权限 $authList = (new AdminRuleModel)->column('key'); - $authList = array_map('strtolower',$authList); - if(!in_array($authKey, $authList)) { + $authList = array_map('strtolower', $authList); + if (!in_array($authKey, $authList)) { self::addAuth($key, $authName); } if (!in_array($authKey, $rules)) { @@ -59,7 +59,11 @@ class Auth 'success' => false, 'msg' => '暂无权限', 'showType' => ShowType::WARN_NOTIFICATION->value, - 'description' => '请联系管理员获取权限,如果你是管理员请检查权限菜单中是否有本接口的权限!' + 'description' => '请联系管理员获取权限,如果你是管理员请检查权限菜单中是否有本接口的权限!', + 'extra' => [ + 'authKey' => $authKey, + 'rules' => $rules, + ] ]; $response = Response::create($data, 'json'); throw new HttpResponseException($response); @@ -109,6 +113,17 @@ class Auth return $tokenData['user_id']; } + /** + * 获取角色 + * @return string + */ + static public function getRole(): string + { + $token = self::getToken(); + $tokenData = self::getTokenData($token); + return $tokenData['user_role']; + } + /** * 获取管理员信息(管理端)未登录抛出错误 * @return array @@ -145,6 +160,9 @@ class Auth { $token = request()->header('x-token'); if (!$token) { + if (env('DEV_TOKEN')) { + return env('DEV_TOKEN'); + } self::throwError('请先登录!'); } return $token; @@ -171,7 +189,7 @@ class Auth static private function getRules(): array { $appName = app('http')->getName(); - if ( $appName == 'admin' ) { + if ($appName == 'admin') { $token = self::getToken(); } else { $token = self::getUserToken(); @@ -183,14 +201,14 @@ class Auth if (!$userInfo['status']) self::throwError('账户已被禁用!'); $group = (new UserGroupModel())->where('id', $userInfo['group_id'])->findOrEmpty(); $rules = (new UserRuleModel())->where('id', 'in', $group->rules)->column('key'); - $rules = array_map('strtolower',$rules); - }else if($tokenData['type'] == 'admin' && $appName == 'admin') { + $rules = array_map('strtolower', $rules); + } else if ($tokenData['type'] == 'admin' && $appName == 'admin') { $adminInfo = self::getAdminInfo(); if (!$adminInfo['status']) self::throwError('账户已被禁用!'); $group = (new AdminGroupModel())->where('id', $adminInfo['group_id'])->findOrEmpty(); $rules = (new AdminRuleModel())->where('id', 'in', $group->rules)->column('key'); - $rules = array_map('strtolower',$rules); - }else { + $rules = array_map('strtolower', $rules); + } else { self::throwError('Token 类型错误!'); } return $rules; @@ -218,7 +236,7 @@ class Auth { $model = new AdminRuleModel(); $p_auth = $model->where('key', $authName)->findOrEmpty(); - if($p_auth->isEmpty()){ + if ($p_auth->isEmpty()) { return; } $model->insert([ @@ -237,4 +255,4 @@ class Auth $response = Response::create($data, 'json'); throw new HttpResponseException($response); } -} \ No newline at end of file +} diff --git a/app/common/library/token/Token.php b/app/common/library/token/Token.php index 2af5ad2bcbc4dee7b7066cb7b3f5e2a90c0dda25..3762133b7717b5bbbf041d5e61f0759c08cf49d9 100644 --- a/app/common/library/token/Token.php +++ b/app/common/library/token/Token.php @@ -80,9 +80,9 @@ class Token * @param int|null $expire * @return bool */ - public function set(string $token, string $type, int $user_id, int $expire = null): bool + public function set(string $token, string $type, int $user_id, string $user_role, int $expire = null): bool { - return $this->getDriver()->set($token, $type, $user_id, $expire); + return $this->getDriver()->set($token, $type, $user_id, $user_role, $expire); } /** @@ -104,9 +104,9 @@ class Token * @param bool $expirationException * @return bool */ - public function check(string $token, string $type, int $user_id, bool $expirationException = true): bool + public function check(string $token, string $type, int $user_id, string $user_role, bool $expirationException = true): bool { - return $this->getDriver()->check($token, $type, $user_id, $expirationException); + return $this->getDriver()->check($token, $type, $user_id, $user_role, $expirationException); } /** @@ -129,4 +129,4 @@ class Token { return $this->getDriver()->clear($type, $user_id); } -} \ No newline at end of file +} diff --git a/app/common/library/token/driver/Driver.php b/app/common/library/token/driver/Driver.php index dda95856fcef126d6f7a5a330d5468ca050674a9..9c58b08fd9b526668bd6eab1b7a87531df1c3db7 100644 --- a/app/common/library/token/driver/Driver.php +++ b/app/common/library/token/driver/Driver.php @@ -27,7 +27,7 @@ abstract class Driver * @param int $expire 过期时间 * @return bool */ - abstract function set(string $token, string $type, int $user_id, int $expire = 0): bool; + abstract function set(string $token, string $type, int $user_id, string $user_role, int $expire = 0): bool; /** * 获取 token 的数据 @@ -45,7 +45,7 @@ abstract class Driver * @param bool $expirationException * @return bool */ - abstract function check(string $token, string $type, int $user_id, bool $expirationException = true): bool; + abstract function check(string $token, string $type, int $user_id, string $user_role, bool $expirationException = true): bool; /** * 删除一个token diff --git a/app/common/library/token/driver/Mysql.php b/app/common/library/token/driver/Mysql.php index 866df779ab8d26604c658c1310703f719d093674..b5065fcab490df8bf85891c45780a752dcb0316d 100644 --- a/app/common/library/token/driver/Mysql.php +++ b/app/common/library/token/driver/Mysql.php @@ -35,14 +35,14 @@ class Mysql extends Driver } } - public function set(string $token, string $type, int $user_id, int $expire = null): bool + public function set(string $token, string $type, int $user_id, string $user_role, int $expire = null): bool { if (is_null($expire)) { $expire = $this->options['expire']; } $expire_time = $expire !== 0 ? time() + $expire : 0; $token = $this->getEncryptedToken($token); - $this->handler->insert(['token' => $token, 'type' => $type, 'user_id' => $user_id, 'create_time' => time(), 'expire_time' => $expire_time]); + $this->handler->insert(['token' => $token, 'type' => $type, 'user_id' => $user_id, 'create_time' => time(), 'user_role' => $user_role, 'expire_time' => $expire_time]); // 每隔48小时清理一次过期缓存 $time = time(); @@ -66,22 +66,22 @@ class Mysql extends Driver $data['expires_in'] = $this->getExpiredIn($data['expire_time'] ?? 0); // token过期-触发前端刷新token if ($data['expire_time'] && $data['expire_time'] <= time() && $expirationException) { - if($data['type'] == 'user-refresh' || $data['type'] == 'admin-refresh') { + if ($data['type'] == 'user-refresh' || $data['type'] == 'admin-refresh') { // 刷新 Token 过期重新登录 - $response = Response::create([ 'msg' => 'logout' ], 'json', 401); + $response = Response::create(['msg' => 'logout'], 'json', 401); throw new HttpResponseException($response); } - $response = Response::create([ 'msg' => 'Refresh Token' ], 'json', 202); + $response = Response::create(['msg' => 'Refresh Token'], 'json', 202); throw new HttpResponseException($response); } return $data; } - public function check(string $token, string $type, int $user_id, bool $expirationException = true): bool + public function check(string $token, string $type, int $user_id, string $user_role, bool $expirationException = true): bool { $data = $this->get($token, $expirationException); if (!$data || (!$expirationException && $data['expire_time'] && $data['expire_time'] <= time())) return false; - return $data['type'] == $type && $data['user_id'] == $user_id; + return $data['type'] == $type && $data['user_id'] == $user_id && $data['user_role'] == $user_role; } public function delete(string $token): bool @@ -95,5 +95,4 @@ class Mysql extends Driver $this->handler->where('type', $type)->where('user_id', $user_id)->delete(); return true; } - -} \ No newline at end of file +} diff --git a/app/common/library/token/driver/Redis.php b/app/common/library/token/driver/Redis.php index 2fbb914d94f6e529224f59a167e0ea825ee8d88c..fae9df75ee941c46b1915e71d93d87b61068685b 100644 --- a/app/common/library/token/driver/Redis.php +++ b/app/common/library/token/driver/Redis.php @@ -50,7 +50,7 @@ class Redis extends Driver } } - public function set(string $token, string $type, int $user_id, int $expire = null): bool + public function set(string $token, string $type, int $user_id, string $user_role, int $expire = null): bool { if (is_null($expire)) { $expire = $this->options['expire']; @@ -61,6 +61,7 @@ class Redis extends Driver 'token' => $token, 'type' => $type, 'user_id' => $user_id, + 'user_role' => $user_role, 'createtime' => time(), 'expiretime' => $expiretime, ]; @@ -99,11 +100,11 @@ class Redis extends Driver return $data; } - public function check(string $token, string $type, int $user_id, bool $expirationException = true): bool + public function check(string $token, string $type, int $user_id, string $user_role, bool $expirationException = true): bool { $data = $this->get($token, $expirationException); if (!$data || (!$expirationException && $data['expiretime'] && $data['expiretime'] <= time())) return false; - return $data['type'] == $type && $data['user_id'] == $user_id; + return $data['type'] == $type && $data['user_id'] == $user_id && $data['user_role'] == $user_role; } public function delete(string $token): bool diff --git a/app/common/trait/RequestJson.php b/app/common/trait/RequestJson.php index 86c92b6ec3805956b16f5410f95a59e6eba3bbea..621eae2ed15baa624716baac62b62052a5e115f3 100644 --- a/app/common/trait/RequestJson.php +++ b/app/common/trait/RequestJson.php @@ -16,14 +16,16 @@ trait RequestJson /** * 成功响应 - * @param string|array $data 响应数据 + * @param bool|string|array $data 响应数据 * @param string $message 响应内容 * @return Json */ - protected function success(string | array $data = [], string $message = 'ok'): Json + protected function success(bool |string | array $data = [], string $message = 'ok'): Json { - if(is_array($data)) { + if (is_array($data)) { return self::renderJson(true, $data, $message); + } else if (is_bool($data)) { + return self::renderJson(true, [$data], $message); } return self::renderJson(true, [], $data); } @@ -36,7 +38,7 @@ trait RequestJson */ protected function throwSuccess(string | array $data = [], string $message = 'ok'): void { - if(is_array($data)) { + if (is_array($data)) { self::renderThrow(true, $data, $message); } self::renderThrow(true, [], $data); @@ -50,7 +52,7 @@ trait RequestJson */ protected function error(string | array $data = [], string $message = ''): Json { - if(is_array($data)) { + if (is_array($data)) { return self::renderJson(false, $data, $message, ShopTypeEnum::ERROR_MESSAGE); } return self::renderJson(false, [], $data, ShopTypeEnum::ERROR_MESSAGE); @@ -64,7 +66,7 @@ trait RequestJson */ protected function throwError(string | array $data = [], string $message = ''): void { - if(is_array($data)) { + if (is_array($data)) { self::renderThrow(false, $data, $message, ShopTypeEnum::ERROR_MESSAGE); } self::renderThrow(false, [], $data, ShopTypeEnum::ERROR_MESSAGE); @@ -78,7 +80,7 @@ trait RequestJson */ protected function warn(string | array $data = [], string $message = ''): Json { - if(is_array($data)) { + if (is_array($data)) { return self::renderJson(false, $data, $message, ShopTypeEnum::WARN_MESSAGE); } return self::renderJson(false, [], $data, ShopTypeEnum::WARN_MESSAGE); @@ -92,7 +94,7 @@ trait RequestJson */ protected function throwWarn(string | array $data = [], string $message = ''): void { - if(is_array($data)) { + if (is_array($data)) { self::renderThrow(false, $data, $message, ShopTypeEnum::WARN_MESSAGE); } self::renderThrow(false, [], $data, ShopTypeEnum::WARN_MESSAGE); @@ -111,8 +113,7 @@ trait RequestJson string $description, ShopTypeEnum $showTypeEnum = ShopTypeEnum::SUCCESS_NOTIFICATION, string $placement = 'topLeft' - ): Json - { + ): Json { $showType = $showTypeEnum->value; $success = false; return json(compact('description', 'success', 'msg', 'showType', 'placement')); @@ -131,8 +132,7 @@ trait RequestJson array $data = [], string $msg = '', ShopTypeEnum $showTypeEnum = ShopTypeEnum::SUCCESS_MESSAGE - ): Json - { + ): Json { $showType = $showTypeEnum->value; return json(compact('data', 'success', 'msg', 'showType')); } @@ -149,10 +149,9 @@ trait RequestJson array $data = [], string $msg = '', ShopTypeEnum $showTypeEnum = ShopTypeEnum::SUCCESS_MESSAGE - ){ + ) { $showType = $showTypeEnum->value; $response = Response::create(compact('data', 'success', 'msg', 'showType'), 'json'); throw new HttpResponseException($response); } - } diff --git a/composer.json b/composer.json index 9f3826515ab0871e576e2ece3a43cc4e123f801a..7fdda07c5bbfb88e4bddf95926ac8a244e9a81cd 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,10 @@ "topthink/think-multi-app": "^1.0", "topthink/think-migration": "^3.1", "topthink/think-view": "^2.0", - "phpmailer/phpmailer": "^6.9" + "phpmailer/phpmailer": "^6.9", + "phpoffice/phpspreadsheet": "^4.0", + "endroid/qr-code": "^5.1", + "overtrue/pinyin": "^5.3" }, "require-dev": { "symfony/var-dumper": ">=4.2", diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000000000000000000000000000000000000..c6944dd285e74cf51a505b729bbc3baf5d30cc85 --- /dev/null +++ b/composer.lock @@ -0,0 +1,2196 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "b27df3324e54942516634f77e739f8e3", + "packages": [ + { + "name": "bacon/bacon-qr-code", + "version": "v3.0.0", + "source": { + "type": "git", + "url": "https://github.com/Bacon/BaconQrCode.git", + "reference": "510de6eca6248d77d31b339d62437cc995e2fb41" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Bacon/BaconQrCode/zipball/510de6eca6248d77d31b339d62437cc995e2fb41", + "reference": "510de6eca6248d77d31b339d62437cc995e2fb41", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "dasprid/enum": "^1.0.3", + "ext-iconv": "*", + "php": "^8.1" + }, + "require-dev": { + "phly/keep-a-changelog": "^2.12", + "phpunit/phpunit": "^10.5.11 || 11.0.4", + "spatie/phpunit-snapshot-assertions": "^5.1.5", + "squizlabs/php_codesniffer": "^3.9" + }, + "suggest": { + "ext-imagick": "to generate QR code images" + }, + "type": "library", + "autoload": { + "psr-4": { + "BaconQrCode\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Ben Scholzen 'DASPRiD'", + "email": "mail@dasprids.de", + "homepage": "https://dasprids.de/", + "role": "Developer" + } + ], + "description": "BaconQrCode is a QR code generator for PHP.", + "homepage": "https://github.com/Bacon/BaconQrCode", + "support": { + "issues": "https://github.com/Bacon/BaconQrCode/issues", + "source": "https://github.com/Bacon/BaconQrCode/tree/v3.0.0" + }, + "time": "2024-04-18T11:16:25+00:00" + }, + { + "name": "composer/pcre", + "version": "3.3.2", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<1.11.10" + }, + "require-dev": { + "phpstan/phpstan": "^1.12 || ^2", + "phpstan/phpstan-strict-rules": "^1 || ^2", + "phpunit/phpunit": "^8 || ^9" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/3.3.2" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-11-12T16:29:46+00:00" + }, + { + "name": "dasprid/enum", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/DASPRiD/Enum.git", + "reference": "6faf451159fb8ba4126b925ed2d78acfce0dc016" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/DASPRiD/Enum/zipball/6faf451159fb8ba4126b925ed2d78acfce0dc016", + "reference": "6faf451159fb8ba4126b925ed2d78acfce0dc016", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.1 <9.0" + }, + "require-dev": { + "phpunit/phpunit": "^7 | ^8 | ^9", + "squizlabs/php_codesniffer": "*" + }, + "type": "library", + "autoload": { + "psr-4": { + "DASPRiD\\Enum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Ben Scholzen 'DASPRiD'", + "email": "mail@dasprids.de", + "homepage": "https://dasprids.de/", + "role": "Developer" + } + ], + "description": "PHP 7.1 enum implementation", + "keywords": [ + "enum", + "map" + ], + "support": { + "issues": "https://github.com/DASPRiD/Enum/issues", + "source": "https://github.com/DASPRiD/Enum/tree/1.0.5" + }, + "time": "2023-08-25T16:18:39+00:00" + }, + { + "name": "endroid/qr-code", + "version": "5.1.0", + "source": { + "type": "git", + "url": "https://github.com/endroid/qr-code.git", + "reference": "393fec6c4cbdc1bd65570ac9d245704428010122" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/endroid/qr-code/zipball/393fec6c4cbdc1bd65570ac9d245704428010122", + "reference": "393fec6c4cbdc1bd65570ac9d245704428010122", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "bacon/bacon-qr-code": "^3.0", + "php": "^8.1" + }, + "require-dev": { + "endroid/quality": "dev-main", + "ext-gd": "*", + "khanamiryan/qrcode-detector-decoder": "^2.0.2", + "setasign/fpdf": "^1.8.2" + }, + "suggest": { + "ext-gd": "Enables you to write PNG images", + "khanamiryan/qrcode-detector-decoder": "Enables you to use the image validator", + "roave/security-advisories": "Makes sure package versions with known security issues are not installed", + "setasign/fpdf": "Enables you to use the PDF writer" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "Endroid\\QrCode\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jeroen van den Enden", + "email": "info@endroid.nl" + } + ], + "description": "Endroid QR Code", + "homepage": "https://github.com/endroid/qr-code", + "keywords": [ + "code", + "endroid", + "php", + "qr", + "qrcode" + ], + "support": { + "issues": "https://github.com/endroid/qr-code/issues", + "source": "https://github.com/endroid/qr-code/tree/5.1.0" + }, + "funding": [ + { + "url": "https://github.com/endroid", + "type": "github" + } + ], + "time": "2024-09-08T08:52:55+00:00" + }, + { + "name": "league/flysystem", + "version": "1.1.10", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "3239285c825c152bcc315fe0e87d6b55f5972ed1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/3239285c825c152bcc315fe0e87d6b55f5972ed1", + "reference": "3239285c825c152bcc315fe0e87d6b55f5972ed1", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-fileinfo": "*", + "league/mime-type-detection": "^1.3", + "php": "^7.2.5 || ^8.0" + }, + "conflict": { + "league/flysystem-sftp": "<1.0.6" + }, + "require-dev": { + "phpspec/prophecy": "^1.11.1", + "phpunit/phpunit": "^8.5.8" + }, + "suggest": { + "ext-ftp": "Allows you to use FTP server storage", + "ext-openssl": "Allows you to use FTPS server storage", + "league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2", + "league/flysystem-aws-s3-v3": "Allows you to use S3 storage with AWS SDK v3", + "league/flysystem-azure": "Allows you to use Windows Azure Blob storage", + "league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching", + "league/flysystem-eventable-filesystem": "Allows you to use EventableFilesystem", + "league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files", + "league/flysystem-sftp": "Allows you to use SFTP server storage via phpseclib", + "league/flysystem-webdav": "Allows you to use WebDAV storage", + "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter", + "spatie/flysystem-dropbox": "Allows you to use Dropbox storage", + "srmklive/flysystem-dropbox-v2": "Allows you to use Dropbox storage for PHP 5 applications" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frenky.net" + } + ], + "description": "Filesystem abstraction: Many filesystems, one API.", + "keywords": [ + "Cloud Files", + "WebDAV", + "abstraction", + "aws", + "cloud", + "copy.com", + "dropbox", + "file systems", + "files", + "filesystem", + "filesystems", + "ftp", + "rackspace", + "remote", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/1.1.10" + }, + "funding": [ + { + "url": "https://offset.earth/frankdejonge", + "type": "other" + } + ], + "time": "2022-10-04T09:16:37+00:00" + }, + { + "name": "league/flysystem-cached-adapter", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem-cached-adapter.git", + "reference": "d1925efb2207ac4be3ad0c40b8277175f99ffaff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem-cached-adapter/zipball/d1925efb2207ac4be3ad0c40b8277175f99ffaff", + "reference": "d1925efb2207ac4be3ad0c40b8277175f99ffaff", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "league/flysystem": "~1.0", + "psr/cache": "^1.0.0" + }, + "require-dev": { + "mockery/mockery": "~0.9", + "phpspec/phpspec": "^3.4", + "phpunit/phpunit": "^5.7", + "predis/predis": "~1.0", + "tedivm/stash": "~0.12" + }, + "suggest": { + "ext-phpredis": "Pure C implemented extension for PHP" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\Cached\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "frankdejonge", + "email": "info@frenky.net" + } + ], + "description": "An adapter decorator to enable meta-data caching.", + "support": { + "issues": "https://github.com/thephpleague/flysystem-cached-adapter/issues", + "source": "https://github.com/thephpleague/flysystem-cached-adapter/tree/master" + }, + "time": "2020-07-25T15:56:04+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.15.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "ce0f4d1e8a6f4eb0ddff33f57c69c50fd09f4301" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/ce0f4d1e8a6f4eb0ddff33f57c69c50fd09f4301", + "reference": "ce0f4d1e8a6f4eb0ddff33f57c69c50fd09f4301", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "phpstan/phpstan": "^0.12.68", + "phpunit/phpunit": "^8.5.8 || ^9.3 || ^10.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\MimeTypeDetection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Mime-type detection for Flysystem", + "support": { + "issues": "https://github.com/thephpleague/mime-type-detection/issues", + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.15.0" + }, + "funding": [ + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2024-01-28T23:22:08+00:00" + }, + { + "name": "maennchen/zipstream-php", + "version": "3.1.2", + "source": { + "type": "git", + "url": "https://github.com/maennchen/ZipStream-PHP.git", + "reference": "aeadcf5c412332eb426c0f9b4485f6accba2a99f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/aeadcf5c412332eb426c0f9b4485f6accba2a99f", + "reference": "aeadcf5c412332eb426c0f9b4485f6accba2a99f", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-mbstring": "*", + "ext-zlib": "*", + "php-64bit": "^8.2" + }, + "require-dev": { + "brianium/paratest": "^7.7", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.16", + "guzzlehttp/guzzle": "^7.5", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.5", + "phpunit/phpunit": "^11.0", + "vimeo/psalm": "^6.0" + }, + "suggest": { + "guzzlehttp/psr7": "^2.4", + "psr/http-message": "^2.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZipStream\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paul Duncan", + "email": "pabs@pablotron.org" + }, + { + "name": "Jonatan Männchen", + "email": "jonatan@maennchen.ch" + }, + { + "name": "Jesse Donat", + "email": "donatj@gmail.com" + }, + { + "name": "András Kolesár", + "email": "kolesar@kolesar.hu" + } + ], + "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", + "keywords": [ + "stream", + "zip" + ], + "support": { + "issues": "https://github.com/maennchen/ZipStream-PHP/issues", + "source": "https://github.com/maennchen/ZipStream-PHP/tree/3.1.2" + }, + "funding": [ + { + "url": "https://github.com/maennchen", + "type": "github" + } + ], + "time": "2025-01-27T12:07:53+00:00" + }, + { + "name": "markbaker/complex", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPComplex.git", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPComplex/zipball/95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Complex\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@lange.demon.co.uk" + } + ], + "description": "PHP Class for working with complex numbers", + "homepage": "https://github.com/MarkBaker/PHPComplex", + "keywords": [ + "complex", + "mathematics" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPComplex/issues", + "source": "https://github.com/MarkBaker/PHPComplex/tree/3.0.2" + }, + "time": "2022-12-06T16:21:08+00:00" + }, + { + "name": "markbaker/matrix", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPMatrix.git", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/728434227fe21be27ff6d86621a1b13107a2562c", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpdocumentor/phpdocumentor": "2.*", + "phploc/phploc": "^4.0", + "phpmd/phpmd": "2.*", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "sebastian/phpcpd": "^4.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Matrix\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@demon-angel.eu" + } + ], + "description": "PHP Class for working with matrices", + "homepage": "https://github.com/MarkBaker/PHPMatrix", + "keywords": [ + "mathematics", + "matrix", + "vector" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPMatrix/issues", + "source": "https://github.com/MarkBaker/PHPMatrix/tree/3.0.1" + }, + "time": "2022-12-02T22:17:43+00:00" + }, + { + "name": "overtrue/pinyin", + "version": "5.3.3", + "source": { + "type": "git", + "url": "https://github.com/overtrue/pinyin.git", + "reference": "bff15b27cf3e1cc416464b678576f4da9899692e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/overtrue/pinyin/zipball/bff15b27cf3e1cc416464b678576f4da9899692e", + "reference": "bff15b27cf3e1cc416464b678576f4da9899692e", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=8.0.2" + }, + "require-dev": { + "brainmaestro/composer-git-hooks": "^3.0", + "friendsofphp/php-cs-fixer": "^3.2", + "laravel/pint": "^1.10", + "nunomaduro/termwind": "^1.0|^2.0", + "phpunit/phpunit": "^10.0|^11.2" + }, + "bin": [ + "bin/pinyin" + ], + "type": "library", + "extra": { + "hooks": { + "pre-push": [ + "composer pint", + "composer test" + ], + "pre-commit": [ + "composer pint", + "composer test" + ] + } + }, + "autoload": { + "psr-4": { + "Overtrue\\Pinyin\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "overtrue", + "email": "anzhengchao@gmail.com", + "homepage": "http://github.com/overtrue" + } + ], + "description": "Chinese to pinyin translator.", + "homepage": "https://github.com/overtrue/pinyin", + "keywords": [ + "Chinese", + "Pinyin", + "cn2pinyin" + ], + "support": { + "issues": "https://github.com/overtrue/pinyin/issues", + "source": "https://github.com/overtrue/pinyin/tree/5.3.3" + }, + "funding": [ + { + "url": "https://github.com/overtrue", + "type": "github" + } + ], + "time": "2024-08-01T08:19:06+00:00" + }, + { + "name": "phpmailer/phpmailer", + "version": "v6.9.1", + "source": { + "type": "git", + "url": "https://github.com/PHPMailer/PHPMailer.git", + "reference": "039de174cd9c17a8389754d3b877a2ed22743e18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/039de174cd9c17a8389754d3b877a2ed22743e18", + "reference": "039de174cd9c17a8389754d3b877a2ed22743e18", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "php": ">=5.5.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "doctrine/annotations": "^1.2.6 || ^1.13.3", + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcompatibility/php-compatibility": "^9.3.5", + "roave/security-advisories": "dev-latest", + "squizlabs/php_codesniffer": "^3.7.2", + "yoast/phpunit-polyfills": "^1.0.4" + }, + "suggest": { + "decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication", + "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", + "ext-openssl": "Needed for secure SMTP sending and DKIM signing", + "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication", + "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", + "league/oauth2-google": "Needed for Google XOAUTH2 authentication", + "psr/log": "For optional PSR-3 debug logging", + "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)", + "thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPMailer\\PHPMailer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-only" + ], + "authors": [ + { + "name": "Marcus Bointon", + "email": "phpmailer@synchromedia.co.uk" + }, + { + "name": "Jim Jagielski", + "email": "jimjag@gmail.com" + }, + { + "name": "Andy Prevost", + "email": "codeworxtech@users.sourceforge.net" + }, + { + "name": "Brent R. Matzelle" + } + ], + "description": "PHPMailer is a full-featured email creation and transfer class for PHP", + "support": { + "issues": "https://github.com/PHPMailer/PHPMailer/issues", + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.9.1" + }, + "funding": [ + { + "url": "https://github.com/Synchro", + "type": "github" + } + ], + "time": "2023-11-25T22:23:28+00:00" + }, + { + "name": "phpoffice/phpspreadsheet", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/PHPOffice/PhpSpreadsheet.git", + "reference": "2d4b9f3582102aafb6b1378fff8a20eeeacfb31c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/2d4b9f3582102aafb6b1378fff8a20eeeacfb31c", + "reference": "2d4b9f3582102aafb6b1378fff8a20eeeacfb31c", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "composer/pcre": "^1||^2||^3", + "ext-ctype": "*", + "ext-dom": "*", + "ext-fileinfo": "*", + "ext-gd": "*", + "ext-iconv": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-simplexml": "*", + "ext-xml": "*", + "ext-xmlreader": "*", + "ext-xmlwriter": "*", + "ext-zip": "*", + "ext-zlib": "*", + "maennchen/zipstream-php": "^2.1 || ^3.0", + "markbaker/complex": "^3.0", + "markbaker/matrix": "^3.0", + "php": "^8.1", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-main", + "dompdf/dompdf": "^2.0 || ^3.0", + "friendsofphp/php-cs-fixer": "^3.2", + "mitoteam/jpgraph": "^10.3", + "mpdf/mpdf": "^8.1.1", + "phpcompatibility/php-compatibility": "^9.3", + "phpstan/phpstan": "^1.1", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^10.5", + "squizlabs/php_codesniffer": "^3.7", + "tecnickcom/tcpdf": "^6.5" + }, + "suggest": { + "dompdf/dompdf": "Option for rendering PDF with PDF Writer", + "ext-intl": "PHP Internationalization Functions", + "mitoteam/jpgraph": "Option for rendering charts, or including charts with PDF or HTML Writers", + "mpdf/mpdf": "Option for rendering PDF with PDF Writer", + "tecnickcom/tcpdf": "Option for rendering PDF with PDF Writer" + }, + "type": "library", + "autoload": { + "psr-4": { + "PhpOffice\\PhpSpreadsheet\\": "src/PhpSpreadsheet" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Maarten Balliauw", + "homepage": "https://blog.maartenballiauw.be" + }, + { + "name": "Mark Baker", + "homepage": "https://markbakeruk.net" + }, + { + "name": "Franck Lefevre", + "homepage": "https://rootslabs.net" + }, + { + "name": "Erik Tilt" + }, + { + "name": "Adrien Crivelli" + } + ], + "description": "PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine", + "homepage": "https://github.com/PHPOffice/PhpSpreadsheet", + "keywords": [ + "OpenXML", + "excel", + "gnumeric", + "ods", + "php", + "spreadsheet", + "xls", + "xlsx" + ], + "support": { + "issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues", + "source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/4.0.0" + }, + "time": "2025-02-08T02:28:25+00:00" + }, + { + "name": "psr/cache", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/cache.git", + "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", + "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for caching libraries", + "keywords": [ + "cache", + "psr", + "psr-6" + ], + "support": { + "source": "https://github.com/php-fig/cache/tree/master" + }, + "time": "2016-08-06T20:24:11+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "e616d01114759c4c489f93b099585439f795fe35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", + "reference": "e616d01114759c4c489f93b099585439f795fe35", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.0.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/1.0.2" + }, + "time": "2023-04-10T20:10:41+00:00" + }, + { + "name": "psr/http-message", + "version": "1.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba", + "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/1.1" + }, + "time": "2023-04-04T09:50:52+00:00" + }, + { + "name": "psr/log", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "79dff0b268932c640297f5208d6298f71855c03e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/79dff0b268932c640297f5208d6298f71855c03e", + "reference": "79dff0b268932c640297f5208d6298f71855c03e", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.1" + }, + "time": "2024-08-21T13:31:24+00:00" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "time": "2021-10-29T13:26:27+00:00" + }, + { + "name": "topthink/framework", + "version": "v8.1.2", + "source": { + "type": "git", + "url": "https://github.com/top-think/framework.git", + "reference": "8faec5c9b7a7f2a66ca3140a57e81bd6cd37567c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/framework/zipball/8faec5c9b7a7f2a66ca3140a57e81bd6cd37567c", + "reference": "8faec5c9b7a7f2a66ca3140a57e81bd6cd37567c", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-ctype": "*", + "ext-json": "*", + "ext-mbstring": "*", + "php": ">=8.0.0", + "psr/http-message": "^1.0", + "psr/log": "^1.0|^2.0|^3.0", + "psr/simple-cache": "^1.0|^2.0|^3.0", + "topthink/think-container": "^3.0", + "topthink/think-helper": "^3.1", + "topthink/think-orm": "^3.0|^4.0", + "topthink/think-validate": "^3.0" + }, + "require-dev": { + "guzzlehttp/psr7": "^2.1.0", + "mikey179/vfsstream": "^1.6", + "mockery/mockery": "^1.2", + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "autoload": { + "files": [], + "psr-4": { + "think\\": "src/think/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "liu21st", + "email": "liu21st@gmail.com" + }, + { + "name": "yunwuxin", + "email": "448901948@qq.com" + } + ], + "description": "The ThinkPHP Framework.", + "homepage": "http://thinkphp.cn/", + "keywords": [ + "framework", + "orm", + "thinkphp" + ], + "support": { + "issues": "https://github.com/top-think/framework/issues", + "source": "https://github.com/top-think/framework/tree/v8.1.2" + }, + "time": "2025-01-14T08:04:03+00:00" + }, + { + "name": "topthink/think-container", + "version": "v3.0.1", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-container.git", + "reference": "a24d442a02fb2a4716de232ff1a4f006c178a370" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-container/zipball/a24d442a02fb2a4716de232ff1a4f006c178a370", + "reference": "a24d442a02fb2a4716de232ff1a4f006c178a370", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=8.0", + "psr/container": "^2.0", + "topthink/think-helper": "^3.1" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "autoload": { + "files": [], + "psr-4": { + "think\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "liu21st", + "email": "liu21st@gmail.com" + } + ], + "description": "PHP Container & Facade Manager", + "support": { + "issues": "https://github.com/top-think/think-container/issues", + "source": "https://github.com/top-think/think-container/tree/v3.0.1" + }, + "time": "2025-01-07T08:19:23+00:00" + }, + { + "name": "topthink/think-filesystem", + "version": "v2.0.3", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-filesystem.git", + "reference": "e8e51adb9f3a3f3aac2aa3ef73b7b439100f777d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-filesystem/zipball/e8e51adb9f3a3f3aac2aa3ef73b7b439100f777d", + "reference": "e8e51adb9f3a3f3aac2aa3ef73b7b439100f777d", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "league/flysystem": "^1.1.4", + "league/flysystem-cached-adapter": "^1.0", + "php": ">=7.2.5", + "topthink/framework": "^6.1|^8.0" + }, + "require-dev": { + "mikey179/vfsstream": "^1.6", + "mockery/mockery": "^1.2", + "phpunit/phpunit": "^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "think\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "yunwuxin", + "email": "448901948@qq.com" + } + ], + "description": "The ThinkPHP6.1 Filesystem Package", + "support": { + "issues": "https://github.com/top-think/think-filesystem/issues", + "source": "https://github.com/top-think/think-filesystem/tree/v2.0.3" + }, + "time": "2024-10-16T03:37:24+00:00" + }, + { + "name": "topthink/think-helper", + "version": "v3.1.10", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-helper.git", + "reference": "ac66cc0859a12cd5d73258f50f338aadc95e9b46" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-helper/zipball/ac66cc0859a12cd5d73258f50f338aadc95e9b46", + "reference": "ac66cc0859a12cd5d73258f50f338aadc95e9b46", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.1.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/helper.php" + ], + "psr-4": { + "think\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "yunwuxin", + "email": "448901948@qq.com" + } + ], + "description": "The ThinkPHP6 Helper Package", + "support": { + "issues": "https://github.com/top-think/think-helper/issues", + "source": "https://github.com/top-think/think-helper/tree/v3.1.10" + }, + "time": "2024-11-21T01:47:51+00:00" + }, + { + "name": "topthink/think-migration", + "version": "v3.1.1", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-migration.git", + "reference": "22c44058e1454f3af1d346e7f6524fbe654de7fb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-migration/zipball/22c44058e1454f3af1d346e7f6524fbe654de7fb", + "reference": "22c44058e1454f3af1d346e7f6524fbe654de7fb", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.2", + "topthink/framework": "^6.0 || ^8.0", + "topthink/think-helper": "^3.0.3" + }, + "require-dev": { + "composer/composer": "^2.5.8", + "fzaninotto/faker": "^1.8", + "robmorgan/phinx": "^0.13.4" + }, + "suggest": { + "fzaninotto/faker": "Required to use the factory builder (^1.8)." + }, + "type": "library", + "extra": { + "think": { + "services": [ + "think\\migration\\Service" + ] + } + }, + "autoload": { + "psr-4": { + "Phinx\\": "phinx", + "think\\migration\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "yunwuxin", + "email": "448901948@qq.com" + } + ], + "support": { + "issues": "https://github.com/top-think/think-migration/issues", + "source": "https://github.com/top-think/think-migration/tree/v3.1.1" + }, + "time": "2023-09-14T05:51:31+00:00" + }, + { + "name": "topthink/think-multi-app", + "version": "v1.1.1", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-multi-app.git", + "reference": "f93c604d5cfac2b613756273224ee2f88e457b88" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-multi-app/zipball/f93c604d5cfac2b613756273224ee2f88e457b88", + "reference": "f93c604d5cfac2b613756273224ee2f88e457b88", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.1.0", + "topthink/framework": "^6.0|^8.0" + }, + "type": "library", + "extra": { + "think": { + "services": [ + "think\\app\\Service" + ] + } + }, + "autoload": { + "psr-4": { + "think\\app\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "liu21st", + "email": "liu21st@gmail.com" + } + ], + "description": "thinkphp multi app support", + "support": { + "issues": "https://github.com/top-think/think-multi-app/issues", + "source": "https://github.com/top-think/think-multi-app/tree/v1.1.1" + }, + "time": "2024-11-25T08:52:44+00:00" + }, + { + "name": "topthink/think-orm", + "version": "v3.0.18", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-orm.git", + "reference": "16401dd97d593867cf8c78cb8804458b03fb5241" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-orm/zipball/16401dd97d593867cf8c78cb8804458b03fb5241", + "reference": "16401dd97d593867cf8c78cb8804458b03fb5241", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-json": "*", + "ext-pdo": "*", + "php": ">=8.0.0", + "psr/log": ">=1.0", + "psr/simple-cache": ">=1.0", + "topthink/think-helper": "^3.1" + }, + "require-dev": { + "phpunit/phpunit": "^9.6|^10" + }, + "suggest": { + "ext-mongodb": "provide mongodb support" + }, + "type": "library", + "autoload": { + "files": [ + "stubs/load_stubs.php" + ], + "psr-4": { + "think\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "liu21st", + "email": "liu21st@gmail.com" + } + ], + "description": "the PHP Database&ORM Framework", + "keywords": [ + "database", + "orm" + ], + "support": { + "issues": "https://github.com/top-think/think-orm/issues", + "source": "https://github.com/top-think/think-orm/tree/v3.0.18" + }, + "time": "2024-07-31T08:49:10+00:00" + }, + { + "name": "topthink/think-template", + "version": "v3.0.2", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-template.git", + "reference": "0b88bd449f0f7626dd75b05f557c8bc208c08b0c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-template/zipball/0b88bd449f0f7626dd75b05f557c8bc208c08b0c", + "reference": "0b88bd449f0f7626dd75b05f557c8bc208c08b0c", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=8.0.0", + "psr/simple-cache": ">=1.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "think\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "liu21st", + "email": "liu21st@gmail.com" + } + ], + "description": "the php template engine", + "support": { + "issues": "https://github.com/top-think/think-template/issues", + "source": "https://github.com/top-think/think-template/tree/v3.0.2" + }, + "time": "2024-10-16T03:41:06+00:00" + }, + { + "name": "topthink/think-validate", + "version": "v3.0.3", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-validate.git", + "reference": "2729f938952a01e9d0e1a17d742b07fcf960ae31" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-validate/zipball/2729f938952a01e9d0e1a17d742b07fcf960ae31", + "reference": "2729f938952a01e9d0e1a17d742b07fcf960ae31", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=8.0", + "topthink/think-container": ">=3.0" + }, + "type": "library", + "autoload": { + "files": [ + "src/helper.php" + ], + "psr-4": { + "think\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "liu21st", + "email": "liu21st@gmail.com" + } + ], + "description": "think validate", + "support": { + "issues": "https://github.com/top-think/think-validate/issues", + "source": "https://github.com/top-think/think-validate/tree/v3.0.3" + }, + "time": "2025-01-07T08:18:42+00:00" + }, + { + "name": "topthink/think-view", + "version": "v2.0.0", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-view.git", + "reference": "d2a076011c96d2edd8016703a827fb54b2683c62" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-view/zipball/d2a076011c96d2edd8016703a827fb54b2683c62", + "reference": "d2a076011c96d2edd8016703a827fb54b2683c62", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=8.0.0", + "topthink/think-template": "^3.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "think\\view\\driver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "liu21st", + "email": "liu21st@gmail.com" + } + ], + "description": "thinkphp template driver", + "support": { + "issues": "https://github.com/top-think/think-view/issues", + "source": "https://github.com/top-think/think-view/tree/v2.0.0" + }, + "time": "2023-02-25T12:18:09+00:00" + } + ], + "packages-dev": [ + { + "name": "symfony/polyfill-mbstring", + "version": "v1.31.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", + "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v7.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "c6a22929407dec8765d6e2b6ff85b800b245879c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/c6a22929407dec8765d6e2b6ff85b800b245879c", + "reference": "c6a22929407dec8765d6e2b6ff85b800b245879c", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "ext-iconv": "*", + "symfony/console": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0", + "symfony/uid": "^6.4|^7.0", + "twig/twig": "^3.12" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v7.2.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-11-08T15:48:14+00:00" + }, + { + "name": "topthink/think-trace", + "version": "v1.6", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-trace.git", + "reference": "136cd5d97e8bdb780e4b5c1637c588ed7ca3e142" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-trace/zipball/136cd5d97e8bdb780e4b5c1637c588ed7ca3e142", + "reference": "136cd5d97e8bdb780e4b5c1637c588ed7ca3e142", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.1.0", + "topthink/framework": "^6.0|^8.0" + }, + "type": "library", + "extra": { + "think": { + "config": { + "trace": "src/config.php" + }, + "services": [ + "think\\trace\\Service" + ] + } + }, + "autoload": { + "psr-4": { + "think\\trace\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "liu21st", + "email": "liu21st@gmail.com" + } + ], + "description": "thinkphp debug trace", + "support": { + "issues": "https://github.com/top-think/think-trace/issues", + "source": "https://github.com/top-think/think-trace/tree/v1.6" + }, + "time": "2023-02-07T08:36:32+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=8.2.0", + "ext-pdo": "*" + }, + "platform-dev": [], + "plugin-api-version": "2.3.0" +} diff --git a/config/filesystem.php b/config/filesystem.php index be2ef234f25b45cfcea9197d7a3f1ee142dbcca3..af27c90eadd6a152bf53c3f313f201c3a38cd14e 100644 --- a/config/filesystem.php +++ b/config/filesystem.php @@ -23,6 +23,12 @@ return [ // 磁盘路径 'root' => app()->getRootPath() . 'storage', ], + 'runtime' => [ + // 磁盘类型 + 'type' => 'local', + // 磁盘路径 + 'root' => app()->getRuntimePath() . 'admin/storage', + ], ], ]; diff --git a/excel/10.txt b/excel/10.txt new file mode 100644 index 0000000000000000000000000000000000000000..5dfb0129871539fbed1e3164ba94f5c053c1b719 --- /dev/null +++ b/excel/10.txt @@ -0,0 +1,147 @@ +三江化工轻烃利用装置定力矩紧固法兰清单 +序号 区域 设备位号/管线号 设备名称 工作介质 法兰名称 法兰编号 设计温度 设计压力 法兰规格 压力等级 密封形式 密封垫 螺栓信息 目标扭矩 法兰紧固状态 紧固方式 备注 + NPS PN/Class 类型 材质 螺栓材质 螺栓规格 螺栓数量 螺母对边 +1 10区 101-P1111157 / 裂解气 管道法兰 101-P1111157-14 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +2 10区 101-P1111157 / 裂解气 管道法兰 101-P1111157-13 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 A182-F22 Cl.3 ASTM A193-B7/ASTM A194-2H 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 +3 10区 101-P1111158 / 裂解气 管道法兰 101-P1111158-15 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +4 10区 101-P1111158 / 裂解气 管道法兰 101-P1111158-14 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 +5 10区 101-P1111171 / 裂解气 管道法兰 101-P1111171-22 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +6 10区 101-P1111171 / 裂解气 管道法兰 101-P1111171-21 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 +7 10区 101-P1111172 / 裂解气 管道法兰 101-P1111172-21 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +8 10区 101-P1111172 / 裂解气 管道法兰 101-P1111172-20 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 +9 10区 101-SS1111109 / 超高压蒸汽 管道法兰 101-SS1111109-24 -11/540 FV/12.5 4 CL2500 RJ 八角垫 A182-F22 Cl.3 ASTM A193-B16/ASTM A194-4 1-1/2" 8 S60 2291NM 未检查已紧固 液压力矩扳手 +10 10区 102-P1111257 / 裂解气 管道法兰 102-P1111257-14 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +11 10区 102-P1111257 / 裂解气 管道法兰 102-P1111257-13 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 +12 10区 102-P1111258 / 裂解气 管道法兰 102-P1111258-15 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +13 10区 102-P1111258 / 裂解气 管道法兰 102-P1111258-14 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 +14 10区 102-P1111271 / 裂解气 管道法兰 102-P1111271-22 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +15 10区 102-P1111271 / 裂解气 管道法兰 102-P1111271-21 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 +16 10区 102-P1111272 / 裂解气 管道法兰 102-P1111272-22 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +17 10区 102-P1111272 / 裂解气 管道法兰 102-P1111272-21 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 +18 10区 102-SS1111209 / 超高压蒸汽 管道法兰 102-SS1111209-24 -11/540 FV/12.5 4 CL2500 RJ 八角垫 A182-F22 Cl.3 ASTM A193-B16/ASTM A194-4 1-1/2" 8 S60 2291NM 未检查已紧固 液压力矩扳手 +19 10区 103-P1111357 / 裂解气 管道法兰 103-P1111357-14 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +20 10区 103-P1111357 / 裂解气 管道法兰 103-P1111357-13 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 S75 4620NM 未检查已紧固 液压力矩扳手 +21 10区 103-P1111358 / 裂解气 管道法兰 103-P1111358-15 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +22 10区 103-P1111358 / 裂解气 管道法兰 103-P1111358-14 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 S75 4620NM 未检查已紧固 液压力矩扳手 +23 10区 103-P1111371 / 裂解气 管道法兰 103-P1111371-22 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +24 10区 103-P1111371 / 裂解气 管道法兰 103-P1111371-21 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-7/8" 28 S75 4620NM 未检查已紧固 液压力矩扳手 +25 10区 103-P1111372 / 裂解气 管道法兰 103-P1111372-22 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +26 10区 103-P1111372 / 裂解气 管道法兰 103-P1111372-21 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-7/8" 28 S75 4620NM 未检查已紧固 液压力矩扳手 +27 10区 103-P1111994 / 清焦气 管道法兰 103-P1111994-16 -11/400 0.4 48 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 40 S75 4620NM 未检查已紧固 液压力矩扳手 +28 10区 103-P1111998 / 清焦气 管道法兰 103-P1111998-13 -11/400 0.4 48 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 40 S75 4620NM 未检查已紧固 液压力矩扳手 +29 10区 103-SS1111309 / 超高压蒸汽 管道法兰 103-SS1111309-24 -11/540 FV/12.5 4 CL2500 RJ 八角垫 A182-F22 Cl.3 ASTM A193-B16/ASTM A194-4 1-1/2" 8 S60 2291NM 未检查已紧固 液压力矩扳手 +30 10区 104-P1111455 / 裂解气 管道法兰 104-P1111455-10 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +31 10区 104-P1111455 / 裂解气 管道法兰 104-P1111455-19 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +32 10区 104-P1111455 / 裂解气 管道法兰 104-P1111455-18 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 2-1/4" 28 S90 8198NM 未检查已紧固 液压力矩扳手 +33 10区 104-P1111456 / 裂解气 管道法兰 104-P1111456-10 -11/565 HV/0.59 30 CL300 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +34 10区 104-P1111457 / 裂解气 管道法兰 104-P1111457-16 -11/405 HV/0.59 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +35 10区 104-P1111457 / 裂解气 管道法兰 104-P1111457-15 -11/405 HV/0.59 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 S90 8198NM 未检查已紧固 液压力矩扳手 +36 10区 104-SS1111409 / 超高压蒸汽 管道法兰 104-SS1111409-21 -11/540 FV/12.5 4 CL2500 RJ 八角垫 A182-F22 Cl.3 ASTM A193-B16/ASTM A194-4 1-1/2" 8 S60 2291NM 未检查已紧固 液压力矩扳手 +37 10区 105-P1111555 / 裂解气 管道法兰 105-P1111555-10 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +38 10区 105-P1111555 / 裂解气 管道法兰 105-P1111555-19 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +39 10区 105-P1111555 / 裂解气 管道法兰 105-P1111555-18 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 2-1/4" 28 S90 8198NM 已检查已紧固 液压力矩扳手 +40 10区 105-P1111556 / 裂解气 管道法兰 105-P1111556-10 -11/565 HV/0.59 30 CL300 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +41 10区 105-P1111557 / 裂解气 管道法兰 105-P1111557-16 -11/405 HV/0.59 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +42 10区 105-P1111557 / 裂解气 管道法兰 105-P1111557-15 -11/405 HV/0.59 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 S90 8198NM 已检查已紧固 液压力矩扳手 +43 10区 105-P1111993 / 清焦气 管道法兰 105-P1111993-17 -11/400 0.4 48 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 40 S75 4620NM 未检查已紧固 液压力矩扳手 +44 10区 105-P1111999 / 清焦气 管道法兰 105-P1111999-17 -11/400 0.4 48 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 40 S75 4620NM 未检查已紧固 液压力矩扳手 +45 10区 105-SS1111509 / 超高压蒸汽 管道法兰 105-SS1111509-19 -11/540 FV/12.5 4 CL2500 RJ 八角垫 A182-F22 Cl.3 ASTM A193-B16/ASTM A194-4 1-1/2" 8 S60 2291NM 未检查已紧固 液压力矩扳手 +46 10区 106-P1111655 / 裂解气 管道法兰 106-P1111655-10 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +47 10区 106-P1111655 / 裂解气 管道法兰 106-P1111655-19 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +48 10区 106-P1111655 / 裂解气 管道法兰 106-P1111655-18 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 2-1/4" 28 S90 8198NM 已检查已紧固 液压力矩扳手 +49 10区 106-P1111656 / 裂解气 管道法兰 106-P1111656-10 -11/565 HV/0.59 30 CL300 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +50 10区 106-P1111657 / 裂解气 管道法兰 106-P1111657-16 -11/405 HV/0.59 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +51 10区 106-P1111657 / 裂解气 管道法兰 106-P1111657-15 -11/405 HV/0.59 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 S90 8198NM 已检查已紧固 液压力矩扳手 +52 10区 106-SS1111609 / 超高压蒸汽 管道法兰 106-SS1111609-19 -11/540 FV/12.5 4 CL2500 RJ 八角垫 A182-F22 Cl.3 ASTM A193-B16/ASTM A194-4 1-1/2" 8 S60 2291NM 未检查已紧固 液压力矩扳手 +53 10区 107-P1111755 / 裂解气 管道法兰 107-P1111755-10 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +54 10区 107-P1111755 / 裂解气 管道法兰 107-P1111755-19 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +55 10区 107-P1111755 / 裂解气 管道法兰 107-P1111755-18 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 2-1/4" 28 S90 8198NM 已检查已紧固 液压力矩扳手 +56 10区 107-P1111756 / 裂解气 管道法兰 107-P1111756-10 -11/565 HV/0.59 30 CL300 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +57 10区 107-P1111757 / 裂解气 管道法兰 107-P1111757-16 -11/405 HV/0.59 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +58 10区 107-P1111757 / 裂解气 管道法兰 107-P1111757-15 -11/405 HV/0.59 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 S90 8198NM 已检查已紧固 液压力矩扳手 +59 10区 107-SS1111709 / 超高压蒸汽 管道法兰 107-SS1111709-19 -11/540 FV/12.5 4 CL2500 RJ 八角垫 A182-F22 Cl.3 ASTM A193-B16/ASTM A194-4 1-1/2" 8 S60 2291NM 未检查已紧固 液压力矩扳手 +62 10区 108-P1110008 / 乙烷 管道法兰 108-P1110008-18 -11/120 3.0 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +63 10区 108-P1111157 / 裂解气 管道法兰 108-P1111157-20 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 +64 10区 108-P1111157 / 裂解气 管道法兰 108-P1111157-21 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 +65 10区 108-P1111157 / 裂解气 管道法兰 108-P1111157-19 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 已检查已紧固 液压力矩扳手 +66 10区 108-P1111158 / 裂解气 管道法兰 108-P1111158-20 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +67 10区 108-P1111158 / 裂解气 管道法兰 108-P1111158-20 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 0 S55 1734NM 未检查已紧固 液压力矩扳手 +68 10区 108-P1111158 / 裂解气 管道法兰 108-P1111158-19 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +69 10区 108-P1111159 / 裂解气 管道法兰 108-P1111159-21 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 +70 10区 108-P1111159 / 裂解气 管道法兰 108-P1111159-22 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 +71 10区 108-P1111160 / 裂解气 管道法兰 108-P1111160-20 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 +72 10区 108-P1111160 / 裂解气 管道法兰 108-P1111160-21 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 +73 10区 108-P1111257 / 裂解气 管道法兰 108-P1111257-20 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 +74 10区 108-P1111257 / 裂解气 管道法兰 108-P1111257-21 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 +75 10区 108-P1111257 / 裂解气 管道法兰 108-P1111257-19 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +76 10区 108-P1111258 / 裂解气 管道法兰 108-P1111258-20 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 +77 10区 108-P1111258 / 裂解气 管道法兰 108-P1111258-21 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 +78 10区 108-P1111258 / 裂解气 管道法兰 108-P1111258-19 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 已检查已紧固 液压力矩扳手 +79 10区 108-P1111259 / 裂解气 管道法兰 108-P1111259-21 -11/425 HV/0.55 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +80 10区 108-P1111259 / 裂解气 管道法兰 108-P1111259-22 -11/425 HV/0.55 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +81 10区 108-P1111260 / 裂解气 管道法兰 108-P1111260-21 -11/425 HV/0.55 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +82 10区 108-P1111260 / 裂解气 管道法兰 108-P1111260-22 -11/425 HV/0.55 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +83 10区 108-P1111357 / 裂解气 管道法兰 108-P1111357-20 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +84 10区 108-P1111357 / 裂解气 管道法兰 108-P1111357-21 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +85 10区 108-P1111357 / 裂解气 管道法兰 108-P1111357-19 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +86 10区 108-P1111358 / 裂解气 管道法兰 108-P1111358-20 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +87 10区 108-P1111358 / 裂解气 管道法兰 108-P1111358-21 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +88 10区 108-P1111358 / 裂解气 管道法兰 108-P1111358-19 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +89 10区 108-P1111359 / 裂解气 管道法兰 108-P1111359-21 -11/425 HV/0.55 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +90 10区 108-P1111359 / 裂解气 管道法兰 108-P1111359-22 -11/425 HV/0.55 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +91 10区 108-P1111360 / 裂解气 管道法兰 108-P1111360-21 -11/425 HV/0.55 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +92 10区 108-P1111360 / 裂解气 管道法兰 108-P1111360-22 -11/425 HV/0.55 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 未检查已紧固 液压力矩扳手 +93 10区 108-P1111457 / 裂解气 管道法兰 108-P1111457-10 -11/405 HV/0.59 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 48 S60 2291NM 未检查已紧固 液压力矩扳手 +94 10区 108-P1111457 / 裂解气 管道法兰 108-P1111457-15 -11/405 HV/0.59 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +95 10区 108-P1111459 / 裂解气 管道法兰 108-P1111459-21 -11/405 HV/0.55 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +96 10区 108-P1111459 / 裂解气 管道法兰 108-P1111459-22 -11/405 HV/0.59 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +97 10区 108-P1111557 / 裂解气 管道法兰 108-P1111557-10 -11/405 HV/0.59 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 48 S60 2291NM 未检查已紧固 液压力矩扳手 +98 10区 108-P1111557 / 裂解气 管道法兰 108-P1111557-15 -11/405 HV/0.59 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +99 10区 108-P1111559 / 裂解气 管道法兰 108-P1111559-21 -11/405 HV/0.55 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +100 10区 108-P1111559 / 裂解气 管道法兰 108-P1111559-22 -11/405 HV/0.55 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +101 10区 108-P1111657 / 裂解气 管道法兰 108-P1111657-10 -11/405 HV/0.59 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 48 S60 2291NM 未检查已紧固 液压力矩扳手 +102 10区 108-P1111657 / 裂解气 管道法兰 108-P1111657-15 -11/405 HV/0.59 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +103 10区 108-P1111659 / 裂解气 管道法兰 108-P1111659-21 -11/405 HV/0.55 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +104 10区 108-P1111659 / 裂解气 管道法兰 108-P1111659-22 -11/405 HV/0.55 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +105 10区 108-P1111757 / 裂解气 管道法兰 108-P1111757-10 -11/405 HV/0.59 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 48 S60 2291NM 未检查已紧固 液压力矩扳手 +106 10区 108-P1111757 / 裂解气 管道法兰 108-P1111757-15 -11/405 HV/0.59 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +107 10区 108-P1111759 / 裂解气 管道法兰 108-P1111759-21 -11/405 HV/0.59 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +108 10区 108-P1111759 / 裂解气 管道法兰 108-P1111759-22 -11/405 HV/0.59 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 S65 2957NM 未检查已紧固 液压力矩扳手 +109 10区 108-P1111169 再生气 管道法兰 108-P1111169-14 -11/405 1.0 24 CL300 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +110 10区 108-P1111169 再生气 管道法兰 108-P1111169-15 -11/405 1.0 24 CL300 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +111 10区 108-P1111169 再生气 管道法兰 108-P1111169-10 -11/405 1.0 24 CL300 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +112 10区 108-P1111170 再生气 管道法兰 108-P1111170-14 -11/405 1.0 24 CL300 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-1/2" 48 S60 2291NM 未检查已紧固 液压力矩扳手 +113 10区 108-P1111269 再生气 管道法兰 108-P1111269-19 -11/405 1.0 24 CL300 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +114 10区 108-P1111269 再生气 管道法兰 108-P1111269-9 -11/405 1.0 24 CL300 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-1/2" 24 S60 2291NM 未检查已紧固 液压力矩扳手 +115 10区 108-P1111270 再生气 管道法兰 108-P1111270-14 -11/405 1.0 24 CL300 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-1/2" 48 S60 2291NM 未检查已紧固 液压力矩扳手 +"注:1.若法兰为管线上的法兰,法兰编号以管线号-焊口号进行命名(若是两个法兰焊口,则选择数字小的焊口号);若法兰为设备法兰,法兰编号以设备位号-设备口编号进行命名; +2.管道与设备连接的法兰名称定义为管道法兰; +3.螺栓规格按图纸填写,英制螺栓规格直接填写数字(英寸)X长度,公制螺栓填写M+数字(毫米)X长度,如M36 +4.金属缠绕垫-SPIRAL WOUND;八角垫-RJ GASKET(OCTAGON)" +打压紧固 +2 10区 101-P1111157 / 裂解气 管道法兰 101-P1111157-13 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 A182-F22 Cl.3 ASTM A193-B7/ASTM A194-2H 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +4 10区 101-P1111158 / 裂解气 管道法兰 101-P1111158-14 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +6 10区 101-P1111171 / 裂解气 管道法兰 101-P1111171-21 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +8 10区 101-P1111172 / 裂解气 管道法兰 101-P1111172-20 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +11 10区 102-P1111257 / 裂解气 管道法兰 102-P1111257-13 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +13 10区 102-P1111258 / 裂解气 管道法兰 102-P1111258-14 -11/425 HV/0.59 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +15 10区 102-P1111271 / 裂解气 管道法兰 102-P1111271-21 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +17 10区 102-P1111272 / 裂解气 管道法兰 102-P1111272-21 -11/566 HV/0.59 30 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 1-7/8" 28 S75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +39 10区 105-P1111555 / 裂解气 管道法兰 105-P1111555-18 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 2-1/4" 28 S90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +42 10区 105-P1111557 / 裂解气 管道法兰 105-P1111557-15 -11/405 HV/0.59 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 S90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +48 10区 106-P1111655 / 裂解气 管道法兰 106-P1111655-18 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 2-1/4" 28 S90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +51 10区 106-P1111657 / 裂解气 管道法兰 106-P1111657-15 -11/405 HV/0.59 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 S90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +55 10区 107-P1111755 / 裂解气 管道法兰 107-P1111755-18 -11/565 HV/0.59 36 CL600 RF 金属缠绕垫 347HS.S/HIGH TEMPERATURE MATERIAL(I.R-347HS.S,O.R-347HS.S) ASTM A193-B16/ASTM A194-7 2-1/4" 28 S90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +58 10区 107-P1111757 / 裂解气 管道法兰 107-P1111757-15 -11/405 HV/0.59 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 S90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +63 10区 108-P1111157 / 裂解气 管道法兰 108-P1111157-20 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 打压紧固 +64 10区 108-P1111157 / 裂解气 管道法兰 108-P1111157-21 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 打压紧固 +65 10区 108-P1111157 / 裂解气 管道法兰 108-P1111157-19 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 已检查已紧固 液压力矩扳手 打压紧固 +69 10区 108-P1111159 / 裂解气 管道法兰 108-P1111159-21 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 打压紧固 +70 10区 108-P1111159 / 裂解气 管道法兰 108-P1111159-22 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 打压紧固 +71 10区 108-P1111160 / 裂解气 管道法兰 108-P1111160-20 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 打压紧固 +72 10区 108-P1111160 / 裂解气 管道法兰 108-P1111160-21 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 打压紧固 +73 10区 108-P1111257 / 裂解气 管道法兰 108-P1111257-20 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 打压紧固 +74 10区 108-P1111257 / 裂解气 管道法兰 108-P1111257-21 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 打压紧固 +76 10区 108-P1111258 / 裂解气 管道法兰 108-P1111258-20 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 打压紧固 +77 10区 108-P1111258 / 裂解气 管道法兰 108-P1111258-21 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 S55 1734NM 已检查已紧固 液压力矩扳手 打压紧固 +78 10区 108-P1111258 / 裂解气 管道法兰 108-P1111258-19 -11/425 HV/0.59 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 S60 2291NM 已检查已紧固 液压力矩扳手 打压紧固 diff --git a/excel/20.txt b/excel/20.txt new file mode 100644 index 0000000000000000000000000000000000000000..6bdca3504e35eebe228a0474242195c5b792b39a --- /dev/null +++ b/excel/20.txt @@ -0,0 +1,211 @@ +三江化工轻烃利用装置定力矩紧固法兰清单 +序号 区域 设备位号/管线号 设备名称 工作介质 法兰名称 法兰编号 设计温度 设计压力 法兰规格 压力等级 密封形式 密封垫 螺栓信息 目标扭矩 法兰紧固状态 紧固方式 + NPS PN/Class 类型 材质 螺栓材质 螺栓规格 螺栓数量 螺母对边 +1 20区 203-P1112003 T-1250 裂解气 管道法兰 203-P1112003-1 -11~145 0.6 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +2 20区 203-P1112136 T-1250 裂解汽油 管道法兰 203-P1112136-1 -11~145 0.6 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +3 20区 203-P1112137 T-1250 裂解汽油 管道法兰 203-P1112137-20 -11~145 0.6 12 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +4 20区 203-P1112139 T-1250 裂解汽油 管道法兰 203-P1112139-1 -11~145 0.6 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +5 20区 203-P1112159 T-1260 水蒸气 管道法兰 203-P1112159-1 -11~200 0.6 14 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1" 12 41 622NM 未检查已紧固 手动力矩扳手 +6 20区 203-P1112205Z / 水 管道法兰 203-P1112205Z-1 -11~65 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +7 20区 203-P1112206Z / 水 管道法兰 203-P1112206Z-1 -11~65 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +8 20区 203-CWR1112425 / 冷却水回水 管道法兰 203-CWR1112425-1 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +9 20区 203-CWR1112425 / 冷却水回水 管道法兰 203-CWR1112425-4 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +10 20区 203-CWR1112425 / 冷却水回水 管道法兰 203-CWR1112425-5 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +11 20区 203-CWR1112425 / 冷却水回水 管道法兰 203-CWR1112425-6 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +12 20区 203-CWR1112425 / 冷却水回水 管道法兰 203-CWR1112425-7 -11~65 1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +13 20区 203-CWR1112427 E-1224B 冷却水回水 管道法兰 203-CWR1112427-1 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +14 20区 203-CWR1112427 / 冷却水回水 管道法兰 203-CWR1112427-4 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +15 20区 203-CWR1112427 / 冷却水回水 管道法兰 203-CWR1112427-5 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +16 20区 203-CWR1112427 / 冷却水回水 管道法兰 203-CWR1112427-6 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +17 20区 203-CWR1112427 / 冷却水回水 管道法兰 203-CWR1112427-7 -11~65 1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +18 20区 203-CWR1112429 E-1224C 冷却水回水 管道法兰 203-CWR1112429-1 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +19 20区 203-CWR1112429 / 冷却水回水 管道法兰 203-CWR1112429-4 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +20 20区 203-CWR1112429 / 冷却水回水 管道法兰 203-CWR1112429-5 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +21 20区 203-CWR1112429 / 冷却水回水 管道法兰 203-CWR1112429-6 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +22 20区 203-CWR1112429 / 冷却水回水 管道法兰 203-CWR1112429-7 -11~65 1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +23 20区 203-CWR1112431 E-1224D 冷却水回水 管道法兰 203-CWR1112431-1 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +24 20区 203-CWR1112431 / 冷却水回水 管道法兰 203-CWR1112431-4 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +25 20区 203-CWR1112431 / 冷却水回水 管道法兰 203-CWR1112431-5 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +26 20区 203-CWR1112431 / 冷却水回水 管道法兰 203-CWR1112431-6 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +27 20区 203-CWR1112431 / 冷却水回水 管道法兰 203-CWR1112431-7 -11~65 1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +28 20区 203-CWR1112433 E-1224S 冷却水回水 管道法兰 203-CWR1112433-1 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +29 20区 203-CWR1112433 / 冷却水回水 管道法兰 203-CWR1112433-4 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +30 20区 203-CWR1112433 / 冷却水回水 管道法兰 203-CWR1112433-5 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +31 20区 203-CWR1112433 / 冷却水回水 管道法兰 203-CWR1112433-6 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +32 20区 203-CWR1112433 / 冷却水回水 管道法兰 203-CWR1112433-7 -11~65 1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +33 20区 203-CWR1112435 E-1224E 冷却水回水 管道法兰 203-CWR1112435-1 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +34 20区 203-CWR1112435 / 冷却水回水 管道法兰 203-CWR1112435-4 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +35 20区 203-CWR1112435 / 冷却水回水 管道法兰 203-CWR1112435-5 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +36 20区 203-CWR1112435 / 冷却水回水 管道法兰 203-CWR1112435-6 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +37 20区 203-CWR1112435 / 冷却水回水 管道法兰 203-CWR1112435-7 -11~65 1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +38 20区 203-CWS1112424 E-1224A 冷却水给水 管道法兰 203-CWS1112424-3 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +39 20区 203-CWS1112424 / 冷却水给水 管道法兰 203-CWS1112424-2 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +40 20区 203-CWS1112424 / 冷却水给水 管道法兰 203-CWS1112424-1 -11~65 1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +41 20区 203-CWS1112426 E-1224B 冷却水给水 管道法兰 203-CWS1112426-3 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +42 20区 203-CWS1112426 / 冷却水给水 管道法兰 203-CWS1112426-2 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +43 20区 203-CWS1112426 / 冷却水给水 管道法兰 203-CWS1112426-1 -11~65 1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +44 20区 203-CWS1112428 E-1224C 冷却水给水 管道法兰 203-CWS1112428-3 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +45 20区 203-CWS1112428 / 冷却水给水 管道法兰 203-CWS1112428-2 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +46 20区 203-CWS1112428 / 冷却水给水 管道法兰 203-CWS1112428-1 -11~65 1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +47 20区 203-CWS1112430 E-1224D 冷却水给水 管道法兰 203-CWS1112430-3 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +48 20区 203-CWS1112430 / 冷却水给水 管道法兰 203-CWS1112430-2 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +49 20区 203-CWS1112430 / 冷却水给水 管道法兰 203-CWS1112430-1 -11~65 1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +50 20区 203-CWS1112432 E-1224S 冷却水给水 管道法兰 203-CWS1112432-3 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +51 20区 203-CWS1112432 / 冷却水给水 管道法兰 203-CWS1112432-2 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +52 20区 203-CWS1112432 / 冷却水给水 管道法兰 203-CWS1112432-1 -11~65 1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +53 20区 203-CWS1112434 E-1224E 冷却水给水 管道法兰 203-CWS1112434-3 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +54 20区 203-CWS1112434 / 冷却水给水 管道法兰 203-CWS1112434-2 -11~65 2.24 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +55 20区 203-CWS1112434 / 冷却水给水 管道法兰 203-CWS1112434-1 -11~65 1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +56 20区 203-DS1112183 T-1260 稀释蒸汽 管道法兰 203-DS1112183-9 -11~340 0.6 16 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1" 16 41 622NM 未检查已紧固 手动力矩扳手 +57 20区 203-DS1112256 E-1271A 稀释蒸汽 管道法兰 203-DS1112256-1 -11~225 1.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +58 20区 203-DS1112256 / 稀释蒸汽 管道法兰 203-DS1112256-8 -11~225 1.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +59 20区 203-DS1112256 / 稀释蒸汽 管道法兰 203-DS1112256-9 -11~225 1.27 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +60 20区 203-DS1112259 E-1271C 稀释蒸汽 管道法兰 203-DS1112259-1 -11~225 1.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +61 20区 203-DS1112259 / 稀释蒸汽 管道法兰 203-DS1112259-8 -11~225 1.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +62 20区 203-DS1112259 / 稀释蒸汽 管道法兰 203-DS1112259-9 -11~225 1.27 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +63 20区 203-DS1112260 / 稀释蒸汽 管道法兰 203-DS1112260-9 -11~225 1.27 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +64 20区 203-DS1112260 / 稀释蒸汽 管道法兰 203-DS1112260-8 -11~225 1.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +65 20区 203-DS1112260 E-1271B 稀释蒸汽 管道法兰 203-DS1112260-1 -11~225 1.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +66 20区 203-DS1112262 / 稀释蒸汽 管道法兰 203-DS1112262-9 -11~225 1.27 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +67 20区 203-DS1112262 / 稀释蒸汽 管道法兰 203-DS1112262-8 -11~225 1.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +68 20区 203-DS1112262 E-1271D 稀释蒸汽 管道法兰 203-DS1112262-1 -11~225 1.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +69 20区 203-DS1112263 / 稀释蒸汽 管道法兰 203-DS1112263-9 -11~225 1.27 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +70 20区 203-DS1112263 / 稀释蒸汽 管道法兰 203-DS1112263-8 -11~225 1.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +71 20区 203-DS1112263 / 稀释蒸汽 管道法兰 203-DS1112263-1 -11~225 1.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +72 20区 203-PW1112058 T-1260 工艺水 管道法兰 203-PW1112058-1 -11~200 0.7 8 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +73 20区 203-PW1112100Z T-1260 工艺水 管道法兰 203-PW1112100Z-4 -11~125 2.8 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +74 20区 203-PW1112101 T-1260 工艺水 管道法兰 203-PW1112101-1 -11~200 0.6 12 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +75 20区 203-PW1112101 T-1260 工艺水 管道法兰 203-PW1112101-20 -11~200 0.6 6 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 12 32 261NM 未检查已紧固 手动力矩扳手 +76 20区 201-MS1112826 中压蒸汽 管道法兰 201-MS1112826-13 -11~340 FV~1.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +77 20区 201-MS1112826 中压蒸汽 管道法兰 201-MS1112826-12 -11~340 FV~1.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +78 20区 201-MS1112826 中压蒸汽 管道法兰 201-MS1112826-11 -11~340 FV~1.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +79 20区 201-MS1112826 中压蒸汽 管道法兰 201-MS1112826-10 -11~340 FV~1.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +80 20区 201-MS1112830 中压蒸汽 管道法兰 201-MS1112830-11 -11~340 FV~1.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +81 20区 201-MS1112830 中压蒸汽 管道法兰 201-MS1112830-12 -11~340 FV~1.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +82 20区 201-MS1112830 中压蒸汽 管道法兰 201-MS1112830-13 -11~340 FV~1.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +83 20区 201-MS1112830 中压蒸汽 管道法兰 201-MS1112830-14 -11~340 FV~1.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +84 20区 201-MS1112830 中压蒸汽 管道法兰 201-MS1112830-24 -11~340 FV~1.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +85 20区 201-MS1112830 中压蒸汽 管道法兰 201-MS1112830-25 -11~340 FV~1.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +86 20区 201-MS1119020 中压蒸汽 管道法兰 201-MS1119020-27 -11~340 FV~1.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +87 20区 201-QW1112197 急冷水 管道法兰 201-QW1112197-9 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +88 20区 201-QW1112197 急冷水 管道法兰 201-QW1112197-10 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +89 20区 201-QW1112197 急冷水 管道法兰 201-QW1112197-18 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +90 20区 201-QW1112197 急冷水 管道法兰 201-QW1112197-19 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +91 20区 201-QW1112198 急冷水 管道法兰 201-QW1112198-29 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +92 20区 201-QW1112198 急冷水 管道法兰 201-QW1112198-33 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +93 20区 201-QW1112198 急冷水 管道法兰 201-QW1112198-34 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +94 20区 201-QW1112198 急冷水 管道法兰 201-QW1112198-27 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +95 20区 201-QW1112209 急冷水 管道法兰 201-QW1112209-7 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +96 20区 201-QW1112209 急冷水 管道法兰 201-QW1112209-8 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +97 20区 201-QW1112209 急冷水 管道法兰 201-QW1112209-5 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +98 20区 201-QW1112209 急冷水 管道法兰 201-QW1112209-6 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +99 20区 A-1250 汽油汽提塔进料聚结器 烃 设备法兰 A-1250-M25 -11~145 1.5 20 PN25 RF 金属缠绕垫 35CrMoA/30CrMoA M33 24 S50 1550nm 未检查已紧固 液压力矩扳手 +100 20区 A-1250 汽油汽提塔进料聚结器 烃 设备法兰 A-1250-M25 -11~145 1.5 20 PN25 RF 35CrMoA/30CrMoA M33 24 S50 1550nm 未检查已紧固 液压力矩扳手 +101 20区 A-1261 工艺水汽提塔进料聚结器 烃 设备法兰 A-1261-MH1 -11~125 FV~2.8 20 PN40 RF 金属缠绕垫 35CrMoA/30CrMoA M33 24 S50 1550nm 未检查已紧固 液压力矩扳手 +102 20区 A-1261 工艺水汽提塔进料聚结器 烃 设备法兰 A-1261-MH1 -11~125 FV~2.8 20 PN40 RF 35CrMoA/30CrMoA M33 24 S50 1550nm 未检查已紧固 液压力矩扳手 +103 20区 V-1261 工艺水汽提塔再沸器凝液罐 蒸汽凝液 设备法兰 V-1261-M25 -11~265 0.1~0.8 18 PN16 RF 35CrMoA/30CrMoA M27 20 S46 950nm 未检查已紧固 液压力矩扳手 +104 20区 V-1270 稀释蒸汽发生器 工艺水 设备法兰 V1270-M25 -11~225 FV~1.27 24 PN25 RF ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +105 20区 V-1270 稀释蒸汽发生器 工艺水 设备法兰 V-1270-M25 -11~225 FV~1.27 24 PN25 RF ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +106 20区 V-1201 急冷油排放罐 急冷油 设备法兰 V-1201-M25A -11~200 FV~0.52 36 PN16 RF 金属缠绕垫 ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +107 20区 V-1201 急冷油排放罐 急冷油 设备法兰 V-1201-M25B -11~200 FV~0.52 28 CL150 RF 金属缠绕垫 ASTM A193-B7/ASTM A194-2H 1-3/4" 28 70 3740NM 未检查已紧固 液压力矩扳手 +108 20区 V-1201 急冷油排放罐 急冷油 设备法兰 V-1201-M25C -11~200 FV~0.52 28 CL150 RF 金属缠绕垫 ASTM A193-B7/ASTM A194-2H 1-3/4" 28 70 3740NM 未检查已紧固 液压力矩扳手 +109 20区 V-1201 急冷油排放罐 急冷油 设备法兰 V-1201-M25D -11~200 FV~0.52 36 PN16 RF 金属缠绕垫 ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +110 20区 V-1202 急冷水排放罐 急冷水 设备法兰 V-1202-M25A -11~125 FV~0.52 36 PN16 RF 金属缠绕垫 ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +111 20区 V-1202 急冷水排放罐 急冷水 设备法兰 V-1202-M25B -11~125 FV~0.52 36 PN16 RF 金属缠绕垫 ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +112 20区 202-QW1112113Z 急冷水 管道法兰 202-QW1112113Z-3 -11/125 2.8 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +113 20区 202-QO1112006Z 急冷油 管道法兰 202-QO1112006Z-3 -11/150 0.35 3 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +114 20区 202-QO1112010 急冷油 管道法兰 202-QO1112010-1 -11/200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +115 20区 202-QO1112016 急冷油 管道法兰 202-QO1112016-17 -11/200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +116 20区 202-QO1112017 急冷油 管道法兰 202-QO1112017-17 -11/200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +117 20区 202-QO1112104 急冷油 管道法兰 202-QO1112104-15 -11/200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +118 20区 202-QO1112105 急冷油 管道法兰 202-QO1112105-15 -11/200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +119 20区 202-QO1112131A 急冷油 管道法兰 202-QO1112131A-1 -11/200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +120 20区 202-QO1112131Z 急冷油 管道法兰 202-QO1112131Z-4 -11/200 2.8 24 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/4" 20 50 1288NM 未检查已紧固 液压力矩扳手 +121 20区 202-QO1112132 急冷油 管道法兰 202-QO1112132-1 -11/200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +122 20区 202-QO1112712 急冷油 管道法兰 202-QO1112712-14 -11/200 HV/0.55 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +123 20区 202-QO1112713 急冷油 管道法兰 202-QO1112713-1 -11/200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +124 20区 202-QO1112714 急冷油 管道法兰 202-QO1112714-13 -11/200 HV/0.55 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +125 20区 202-QO1112715 急冷油 管道法兰 202-QO1112715-1 -11/200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +126 20区 202-QO1112784 急冷油 管道法兰 202-QO1112784-23 -11/200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +127 20区 202-QO1112787 急冷油 管道法兰 202-QO1112787-13 -11/200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +128 20区 202-QW1112064 急冷水 管道法兰 202-QW1112064-11 -11/125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +129 20区 202-QW1112066 急冷水 管道法兰 202-QW1112066-1 -11/125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +130 20区 202-QW1112067 急冷水 管道法兰 202-QW1112067-1 -11/125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +131 20区 202-QW1112097Z 急冷水 管道法兰 202-QW1112097Z-8 -11/125 2.8 24 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/4" 20 50 1288NM 未检查已紧固 液压力矩扳手 +132 20区 202-QW1112113Z 急冷水 管道法兰 202-QW1112113Z-3 -11/125 2.8 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +133 20区 202-QW1112198Z 急冷水 管道法兰 202-QW1112198Z-7 -11/125 2.8 36 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 44 36 400NM 未检查已紧固 手动力矩扳手 +134 20区 202-P1112003Z 裂解气 管道法兰 202-P1112003Z-5 -11/265 FV/2.24 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +135 20区 202-P1112007 裂解气 管道法兰 202-P1112007-1 -11/200 HV/0.6 14 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1" 12 41 622NM 未检查已紧固 手动力矩扳手 +136 20区 202-P1112007Z 裂解气 管道法兰 202-P1112007Z-1 -11/200 HV/0.6 14 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1" 12 41 622NM 未检查已紧固 手动力矩扳手 +137 20区 202-P1112038Z 裂解汽油 管道法兰 202-P1112038Z-1 -11/145 HV/0.52 12 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +138 20区 202-P1112041Z 裂解汽油 管道法兰 202-P1112041Z-1 -11/125 1.5 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +139 20区 202-P1112159Z 水蒸气 管道法兰 202-P1112159Z-4 -11/125 1.5 16 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1" 16 41 622NM 未检查已紧固 手动力矩扳手 +140 20区 T-1210 202-P1112201 水 管道法兰 T-1210-V1 -11/125 1.5 4 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +141 20区 T-1220 202-P1112202 水 管道法兰 T-1220-V1 -11/125 1.5 4 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +142 20区 T-1240 202-P1112204 水 管道法兰 T-1240-V1 -11/125 1.5 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +143 20区 T-1240 202-P1112214 裂解气 管道法兰 T-1240-K31 -11/125 1.5 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +144 20区 202-P1112800Z 轻燃料油 管道法兰 202-P1112800Z-1 -11/125 1.5 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +145 20区 202-P1112800Z 轻燃料油 管道法兰 202-P1112800Z-13 -11/125 1.5 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +146 20区 202-P1112003Z 裂解气 管道法兰 202-P1112003Z-5 -11~145 HV~0.6 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +147 20区 202-P1112007 裂解气 管道法兰 202-P1112007-1 -11~200 HV~0.6 14 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1" 12 41 622NM 未检查已紧固 手动力矩扳手 +148 20区 202-P1112007Z 裂解气 管道法兰 202-P1112007Z-1G -11~200 HV~0.6 14 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1" 12 41 622NM 未检查已紧固 手动力矩扳手 +149 20区 202-P1112038Z 裂解汽油 管道法兰 202-P1112038Z-1 -11~145 HV~0.52 12 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +150 20区 202-P1112041Z 裂解汽油 管道法兰 202-P1112041Z-1G -11~125 1.5 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +151 20区 202-P1112159Z 水蒸气 管道法兰 202-P1112159Z-4 -11~200 HV~0.6 16 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1" 16 41 622NM 未检查已紧固 手动力矩扳手 +152 20区 202-P1112201 水 管道法兰 202-P1112201-1 -11~65 1 4 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +153 20区 202-P1112202 水 管道法兰 202-P1112202-14 -11~65 1 4 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +154 20区 202-P1112204 水 管道法兰 202-P1112204-1 -11~65 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +155 20区 202-P1112214 裂解气 管道法兰 202-P1112214-1 -11~200 HV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +156 20区 202-P1112800Z 轻燃料油 管道法兰 202-P1112800Z-1 -11~200 HV~1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +157 20区 202-P1112800Z 轻燃料油 管道法兰 202-P1112800Z-13 -11~200 HV~1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +158 20区 202-QW1112113Z 急冷水 管道法兰 202-QW1112113Z-3 -11~125 HV~0.52 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +159 20区 202-QO1112009 急冷油 管道法兰 202-QO1112009-14 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +160 20区 202-QO1112009 急冷油 管道法兰 202-QO1112009-13 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +161 20区 202-QO1112009 急冷油 管道法兰 202-QO1112009-12 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +162 20区 202-QO1112010 急冷油 管道法兰 202-QO1112010-1 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +163 20区 202-QO1112016 急冷油 管道法兰 202-QO1112016-17 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +164 20区 202-QO1112017 急冷油 管道法兰 202-QO1112017-17 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +165 20区 202-QO1112104 急冷油 管道法兰 202-QO1112104-15 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +166 20区 202-QO1112105 急冷油 管道法兰 202-QO1112105-15 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +167 20区 202-QO1112131A 急冷油 管道法兰 202-QO1112131A -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +168 20区 202-QO1112132 急冷油 管道法兰 202-QO1112132-1 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +169 20区 202-QO1112712 急冷油 管道法兰 202-QO1112712-14 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +170 20区 202-QO1112712 急冷油 管道法兰 202-QO1112712-13 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +171 20区 202-QO1112712 急冷油 管道法兰 202-QO1112712-12 -11~200 HV~0.55 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +172 20区 202-QO1112713 急冷油 管道法兰 202-QO1112713-1 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +173 20区 202-QO1112714 急冷油 管道法兰 202-QO1112714-13 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +174 20区 202-QO1112714 急冷油 管道法兰 202-QO1112714-12 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +175 20区 202-QO1112714 急冷油 管道法兰 202-QO1112714-11 -11~200 HV~0.55 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +176 20区 202-QO1112715 急冷油 管道法兰 202-QO1112715-1 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +177 20区 202-QO1112784 急冷油 管道法兰 202-QO1112784-23 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +178 20区 202-QO1112787 急冷油 管道法兰 202-QO1112787-13 -11~200 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +179 20区 202-QW1112064 急冷水 管道法兰 202-QW1112064-11 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +180 20区 202-QW1112064 急冷水 管道法兰 202-QW1112064-8 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +181 20区 202-QW1112064 急冷水 管道法兰 202-QW1112064-7 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +182 20区 202-QW1112067 急冷水 管道法兰 202-QW1112067-1 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +183 20区 202-QW1112067 急冷水 管道法兰 202-QW1112067-8 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +184 20区 202-QW1112046 急冷水 管道法兰 202-QW1112046-6 -11~125 HV~0.52 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +185 20区 202-QW1112201 急冷水 管道法兰 202-QW1112201-6 -11~125 HV~0.52 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +186 T1260 人孔M25A T1260人孔M25A 24 PN25 35CrMoA/30CrMoA 1-1/4" 20 55 1288NM 已检查已紧固 液压力矩扳手 +187 T1260 人孔M25B T1260人孔M25B 24 PN25 35CrMoA/30CrMoA 1-1/4" 20 55 1288NM 已检查已紧固 液压力矩扳手 +188 T1250 人孔M25A T1250人孔M25A 20 PN25 35CrMoA/30CrMoA 1-1/4" 20 55 1288NM 已检查已紧固 液压力矩扳手 +189 T1250 人孔M25B T1250人孔M25B 20 PN25 35CrMoA/30CrMoA 1-1/4" 20 55 1288NM 已检查已紧固 液压力矩扳手 +190 T1250 人孔M25C T1250人孔M25C 20 PN25 35CrMoA/30CrMoA 1-1/4" 20 55 1288NM 已检查已紧固 液压力矩扳手 +191 T1240 人孔M25A T1240人孔M25A 20 PN25 35CrMoA/30CrMoA 1-1/4" 20 55 1288NM 已检查已紧固 液压力矩扳手 +192 T1240 人孔M25B T1240人孔M25B 20 PN25 35CrMoA/30CrMoA 1-1/4" 20 55 1288NM 已检查已紧固 液压力矩扳手 +193 T1220 设备人孔M25A T1220设备人孔M25A 36 PN16 35CrMoA/30CrMoA M24 44 41 600nm 未检查已紧固 手动力矩扳手 +194 T1220 设备人孔M25B T1220设备人孔M25B 24 PN16 35CrMoA/30CrMoA M33 20 55 1550nm 未检查已紧固 液压力矩扳手 +195 T1220 设备人孔M25C T1220设备人孔M25C 42 PN16 35CrMoA/30CrMoA M27 48 46 950nm 未检查已紧固 液压力矩扳手 +196 T1220 设备人孔M25D T1220设备人孔M25D 24 PN16 35CrMoA/30CrMoA M33 20 55 1550nm 未检查已紧固 液压力矩扳手 +197 T1220 设备人孔M25E T1220设备人孔M25E 24 PN16 35CrMoA/30CrMoA M33 20 50 1550nm 未检查已紧固 液压力矩扳手 +198 T1220 设备人孔M25F T1220设备人孔M25F 24 PN16 35CrMoA/30CrMoA M33 20 50 1550nm 未检查已紧固 液压力矩扳手 +199 T1220 设备人孔M25G T1220设备人孔M25G 24 PN16 35CrMoA/30CrMoA M33 20 50 1550nm 未检查已紧固 液压力矩扳手 +200 T1220 设备人孔M25H T1220设备人孔M25H 24 PN16 35CrMoA/30CrMoA M33 20 50 1550nm 未检查已紧固 液压力矩扳手 +201 T1210 人孔M25A T1210人孔M25A 24 PN16 35CrMoA/30CrMoA M33 20 50 1550nm 未检查已紧固 液压力矩扳手 +202 T1210 人孔M25C T1210人孔M25C 24 PN16 35CrMoA/30CrMoA M33 20 50 1550nm 未检查已紧固 液压力矩扳手 +203 T1210 人孔M25D T1210人孔M25D 24 PN16 35CrMoA/30CrMoA M33 20 50 1550nm 未检查已紧固 液压力矩扳手 +204 T1210 人孔M25B T1210人孔M25B 36 PN16 35CrMoA/30CrMoA M24 44 41 600nm 未检查已紧固 手动力矩扳手 +"注:1.若法兰为管线上的法兰,法兰编号以管线号-焊口号进行命名(若是两个法兰焊口,则选择数字小的焊口号);若法兰为设备法兰,法兰编号以设备位号-设备口编号进行命名; +2.管道与设备连接的法兰名称定义为管道法兰; +3.螺栓规格按图纸填写,英制螺栓规格直接填写数字(英寸)X长度,公制螺栓填写M+数字(毫米)X长度,如M36 +4.金属缠绕垫-SPIRAL WOUND;八角垫-RJ GASKET(OCTAGON)" diff --git a/excel/30.txt b/excel/30.txt new file mode 100644 index 0000000000000000000000000000000000000000..2c645c949c2c5a74502d143fb6ef2633b01cc263 --- /dev/null +++ b/excel/30.txt @@ -0,0 +1,395 @@ +三江化工轻烃利用装置定力矩紧固法兰清单 +序号 区域 设备位号/管线号 设备名称 工作介质 法兰名称 法兰编号 设计温度 设计压力 法兰规格 压力等级 密封形式 密封垫 螺栓信息 目标扭矩 法兰紧固状态 紧固方式 备注 + NPS PN/Class 类型 材质 螺栓材质 螺栓规格 螺栓数量 螺母对边 +1 30区 301-HFL1113423 裂解气 管道法兰 301-HFL1113423-15 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +2 30区 301-HFL1113423 裂解气 管道法兰 301-HFL1113423-14Z1 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +3 30区 301-HFL1113423 裂解气 管道法兰 301-HFL1113423-14 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +4 30区 301-HFL1113423 裂解气 管道法兰 301-HFL1113423-11 -11~415 4.62 14 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 20 75 4620NM 未检查已紧固 液压力矩扳手 +5 30区 301-HFL1113423 裂解气 管道法兰 301-HFL1113423-10 -11~415 4.62 14 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 20 75 4620NM 未检查已紧固 液压力矩扳手 +6 30区 301-HFL1113423 裂解气 管道法兰 301-HFL1113423-9 -11~415 4.62 14 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 20 55 1734NM 未检查已紧固 液压力矩扳手 +7 30区 301-HFL1113423 裂解气 管道法兰 301-HFL1113423-8 -11~415 4.62 14 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 20 55 1734NM 未检查已紧固 液压力矩扳手 +8 30区 301-HFL1113423 裂解气 管道法兰 301-HFL1113423-7 -11~415 4.62 14 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 20 55 1734NM 未检查已紧固 液压力矩扳手 +9 30区 301-HFL1113423 裂解气 管道法兰 301-HFL1113423-6 -11~415 4.62 14 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 20 55 1734NM 未检查已紧固 液压力矩扳手 +10 30区 301-P1113011 裂解气 管道法兰 301-P1113011-4 -11~90 1.48 48 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 40 75 4620NM 未检查已紧固 液压力矩扳手 +11 30区 301-P1113011 裂解气 管道法兰 301-P1113011-5 -11~90 2.69 48 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 40 75 4620NM 未检查已紧固 液压力矩扳手 +12 30区 301-P1113011 裂解气 管道法兰 301-P1113011-7 -11~90 2.69 48 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 40 75 4620NM 未检查已紧固 液压力矩扳手 +13 30区 301-P1113011 裂解气 管道法兰 301-P1113011-8 -11~90 2.69 48 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 40 75 4620NM 未检查已紧固 液压力矩扳手 +14 30区 301-P1113018 裂解气 管道法兰 301-P1113018-6 -11~90 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +15 30区 301-P1113018 裂解气 管道法兰 301-P1113018-5 -11~90 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +16 30区 301-P1113018 裂解气 管道法兰 301-P1113018-4 -11~90 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +17 30区 301-P1113018 裂解气 管道法兰 301-P1113018-3 -11~90 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +18 30区 301-P1113071 裂解气 管道法兰 301-P1113071-15 -11~90 2.69 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +19 30区 301-P1113071 裂解气 管道法兰 301-P1113071-16 -11~90 2.69 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +20 30区 302-HS1113901 高压蒸汽 管道法兰 302-HS1113901-24 -11-450 4.7 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-304S.S) ASTM A193-B16/ASTM A194-4 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +21 30区 302-HS1119030 高压蒸汽 管道法兰 302-HS1119030-1 -11-450 4.7 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-304S.S) ASTM A193-B16/ASTM A194-4 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +22 30区 302-HS1119030 高压蒸汽 管道法兰 302-HS1119030-16 -11-450 4.7 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-304S.S) ASTM A193-B16/ASTM A194-4 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +23 30区 302-HS1119030 高压蒸汽 管道法兰 302-HS1119030-15 -11-450 4.7 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-304S.S) ASTM A193-B16/ASTM A194-4 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +24 30区 302-HS1119030A 高压蒸汽 管道法兰 302-HS1119030A-1 -11-450 4.7 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-304S.S) ASTM A193-B16/ASTM A194-4 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +25 30区 302-HS1119030A 高压蒸汽 管道法兰 302-HS1119030A-10 -11-450 4.7 16 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-304S.S) ASTM A193-B16/ASTM A194-4 1-1/2" 20 60 2291NM 未检查已紧固 液压力矩扳手 +26 30区 302-P1113000A 裂解气 管道法兰 302-P1113000A-1 -11~90 0.55 54 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 48 75 4620NM 未检查已紧固 液压力矩扳手 +27 30区 302-P1113000B 裂解气 管道法兰 302-P1113000B-1 -11~90 0.55 54 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 48 75 4620NM 未检查已紧固 液压力矩扳手 +28 30区 302-P1113001 裂解气 管道法兰 302-P1113001-1 -11~150 0.55 54 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 48 75 4620NM 未检查已紧固 液压力矩扳手 +29 30区 302-P1113003 裂解气 管道法兰 302-P1113003-1 -11~90 0.55 54 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 48 75 4620NM 未检查已紧固 液压力矩扳手 +30 30区 302-P1113004 裂解气 管道法兰 302-P1113004-1 -11~65 0.86 42 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 36 70 3740NM 未检查已紧固 液压力矩扳手 +31 30区 302-P1113006 裂解气 管道法兰 302-P1113006-1 -11~90 0.86 42 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 36 70 3740NM 未检查已紧固 液压力矩扳手 +32 30区 302-P1113007 裂解气 管道法兰 302-P1113007-1 -11~150 1.48 32 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 32 60 2291NM 未检查已紧固 液压力矩扳手 +33 30区 302-P1113011 裂解气 管道法兰 302-P1113011-1 -11~90 2.69 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +34 30区 302-P1113011 裂解气 管道法兰 302-P1113011-2 -11~90 2.69 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +35 30区 302-P1113011 裂解气 管道法兰 302-P1113011-4 -11~90 2.69 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +36 30区 302-P1113013 裂解气 管道法兰 302-P1113013-1 -11~150 2.69 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +37 30区 302-P1113013 裂解气 管道法兰 302-P1113013-2 -11~150 2.69 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +38 30区 302-P1113013 裂解气 管道法兰 302-P1113013-4 -11~150 2.69 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +39 30区 302-P1113013 裂解气 管道法兰 302-P1113013-14 -11~150 2.69 42 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 36 70 3740NM 未检查已紧固 液压力矩扳手 +40 30区 302-P1113013 裂解气 管道法兰 302-P1113013-15 -11~150 2.69 42 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 36 70 3740NM 未检查已紧固 液压力矩扳手 +41 30区 302-P1113017 裂解气/凝液 管道法兰 302-P1113017-1 -11~90 2.69 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +42 30区 302-P1113017 裂解气/凝液 管道法兰 302-P1113017-7 -11~90 2.69 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +43 30区 302-P1113018 裂解气 管道法兰 302-P1113018-1 -11~90 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +44 30区 302-P1113018A 裂解气 管道法兰 302-P1113018A-1 -11~90 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +45 30区 302-P1113018A 裂解气 管道法兰 302-P1113018A-2 -11~90 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +46 30区 302-P1113018A 裂解气 管道法兰 302-P1113018A-11 -11~90 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +47 30区 302-P1113018A 裂解气 管道法兰 302-P1113018A-12 -11~90 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +48 30区 302-P1113018A 裂解气 管道法兰 302-P1113018A-13 -11~90 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +49 30区 302-P1113018A 裂解气 管道法兰 302-P1113018A-14 -11~90 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +50 30区 302-P1113020 再生气 管道法兰 302-P1113020-1 -11~270 1.03 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +51 30区 302-P1113020 再生气 管道法兰 302-P1113020-2 -11~270 1.03 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +52 30区 302-P1113020 再生气 管道法兰 302-P1113020-11 -11~270 1.03 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +53 30区 302-P1113020 再生气 管道法兰 302-P1113020-12 -11~270 1.03 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +54 30区 302-P1113020 再生气 管道法兰 302-P1113020-13 -11~270 1.03 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +55 30区 302-P1113020 再生气 管道法兰 302-P1113020-14 -11~270 1.03 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +56 30区 302-P1113021 再生气 管道法兰 302-P1113021-1 -11~270 1.03 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +57 30区 302-P1113021 再生气 管道法兰 302-P1113021-7 -11~270 1.03 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +58 30区 302-P1113021 再生气 管道法兰 302-P1113021-8 -11~270 1.03 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +59 30区 302-P1113021 再生气 管道法兰 302-P1113021-9 -11~270 1.03 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +60 30区 302-P1113021 再生气 管道法兰 302-P1113021-10 -11~270 1.03 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +61 30区 302-P1113024 裂解气 管道法兰 302-P1113024-1 -45~65 3.2 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +62 30区 302-P1113024 裂解气 管道法兰 302-P1113024-2 -45~65 3.2 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +63 30区 302-P1113024 裂解气 管道法兰 302-P1113024-3 -45~65 3.2 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +64 30区 302-P1113024 裂解气 管道法兰 302-P1113024-9 -45~65 3.2 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +65 30区 302-P1113025 裂解气 管道法兰 302-P1113025-1 -11~150 4.62 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +66 30区 302-P1113025 裂解气 管道法兰 302-P1113025-2 -11~150 4.62 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +67 30区 302-P1113025 裂解气 管道法兰 302-P1113025-4 -11~150 4.62 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +68 30区 302-P1113025 裂解气 管道法兰 302-P1113025-15 -11~150 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +69 30区 302-P1113025 裂解气 管道法兰 302-P1113025-16 -11~150 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +70 30区 302-P1113025 裂解气 管道法兰 302-P1113025-17 -11~150 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +71 30区 302-P1113029 冲洗水 管道法兰 302-P1113029-1 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +72 30区 302-P1113029 冲洗水 管道法兰 302-P1113029-2 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +73 30区 302-P1113029 冲洗水 管道法兰 302-P1113029-16 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +74 30区 302-P1113029 冲洗水 管道法兰 302-P1113029-17 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +75 30区 302-P1113029 冲洗水 管道法兰 302-P1113029-33 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +76 30区 302-P1113029 冲洗水 管道法兰 302-P1113029-34 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +77 30区 302-P1113029 冲洗水 管道法兰 302-P1113029-35 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +78 30区 302-P1113029 冲洗水 管道法兰 302-P1113029-50 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +79 30区 302-P1113030 裂解气 管道法兰 302-P1113030-1 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +80 30区 302-P1113030 裂解气 管道法兰 302-P1113030-10 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +81 30区 302-P1113030 裂解气 管道法兰 302-P1113030-19 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +82 30区 302-P1113030 裂解气 管道法兰 302-P1113030-20 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +83 30区 302-P1113030 裂解气 管道法兰 302-P1113030-9 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +84 30区 302-P1113030 裂解气 管道法兰 302-P1113030-32 -11~415 4.62 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +85 30区 302-P1113030 裂解气 管道法兰 302-P1113030-36 -11~415 4.62 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +86 30区 302-P1113031 裂解气 管道法兰 302-P1113031-1 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +87 30区 302-P1113031 裂解气 管道法兰 302-P1113031-2 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +88 30区 302-P1113031 裂解气 管道法兰 302-P1113031-14 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +89 30区 302-P1113031 裂解气 管道法兰 302-P1113031-15 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +90 30区 302-P1113031 裂解气 管道法兰 302-P1113031-29 -11~415 4.62 28 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 28 70 3740NM 未检查已紧固 液压力矩扳手 +91 30区 302-P1113032 裂解气 管道法兰 302-P1113032-1 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +92 30区 302-P1113032 裂解气 管道法兰 302-P1113032-8 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +93 30区 302-P1113032 裂解气 管道法兰 302-P1113032-25 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +94 30区 302-P1113032 裂解气 管道法兰 302-P1113032-14 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +95 30区 302-P1113032 裂解气 管道法兰 302-P1113032-23 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +96 30区 302-P1113032 裂解气 管道法兰 302-P1113032-13 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +97 30区 302-P1113032 裂解气 管道法兰 302-P1113032-39 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +98 30区 302-P1113032 裂解气 管道法兰 302-P1113032-33 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +99 30区 302-P1113033 裂解气 管道法兰 302-P1113033-1 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +100 30区 302-P1113033 裂解气 管道法兰 302-P1113033-2 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +101 30区 302-P1113033 裂解气 管道法兰 302-P1113033-13 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +102 30区 302-P1113033 裂解气 管道法兰 302-P1113033-38 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +103 30区 302-P1113033 裂解气 管道法兰 302-P1113033-43 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +104 30区 302-P1113035 裂解气 管道法兰 302-P1113035-1 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +105 30区 302-P1113035 裂解气 管道法兰 302-P1113035-5 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +106 30区 302-P1113035 裂解气 管道法兰 302-P1113035-6 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +107 30区 302-P1113035 裂解气 管道法兰 302-P1113035-8 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +108 30区 302-P1113035 裂解气 管道法兰 302-P1113035-9 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +109 30区 302-P1113035 裂解气 管道法兰 302-P1113035-19 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +110 30区 302-P1113035 裂解气 管道法兰 302-P1113035-20 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +111 30区 302-P1113035 裂解气 管道法兰 302-P1113035-21 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +112 30区 302-P1113035 裂解气 管道法兰 302-P1113035-22 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +113 30区 302-P1113035 裂解气 管道法兰 302-P1113035-49 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +114 30区 302-P1113035 裂解气 管道法兰 302-P1113035-50 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +115 30区 302-P1113035 裂解气 管道法兰 302-P1113035-52 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +116 30区 302-P1113035 裂解气 管道法兰 302-P1113035-53 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +117 30区 302-P1113035 裂解气 管道法兰 302-P1113035-81 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +118 30区 302-P1113035 裂解气 管道法兰 302-P1113035-86 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +119 30区 302-P1113037 裂解气 管道法兰 302-P1113037-1 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +120 30区 302-P1113037 裂解气 管道法兰 302-P1113037-6 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +121 30区 302-P1113037 裂解气 管道法兰 302-P1113037-7 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +122 30区 302-P1113067 裂解气 管道法兰 302-P1113067-1 -11~90 2.69 42 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 36 70 3740NM 未检查已紧固 液压力矩扳手 +123 30区 302-P1113068 裂解气 管道法兰 302-P1113068-1 -11~90 2.69 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +124 30区 302-P1113068 裂解气 管道法兰 302-P1113068-3 -11~90 2.69 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +125 30区 302-P1113068Z 裂解气 管道法兰 302-P1113068Z-1 -11~90 2.69 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +126 30区 302-P1113114 裂解气 管道法兰 302-P1113114-10 -11~415 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +127 30区 302-P1113114 裂解气 管道法兰 302-P1113114-11 -11~415 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +128 30区 302-P1113114 裂解气 管道法兰 302-P1113114-12 -11~415 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +129 30区 302-P1113114 裂解气 管道法兰 302-P1113114-13 -11~415 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +130 30区 302-P1113115 裂解气 管道法兰 302-P1113115-8 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +131 30区 302-P1113115 裂解气 管道法兰 302-P1113115-9 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +132 30区 302-P1113115 裂解气 管道法兰 302-P1113115-12 -11~415 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +133 30区 302-P1113115 裂解气 管道法兰 302-P1113115-13 -11~415 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +134 30区 302-P1113117 裂解气 管道法兰 302-P1113117-6 -11~415 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +135 30区 302-P1113117 裂解气 管道法兰 302-P1113117-7 -11~415 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +136 30区 302-P1113117 裂解气 管道法兰 302-P1113117-10 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +137 30区 302-P1113140 裂解气 管道法兰 302-P1113140-1 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +138 30区 302-P1113140 裂解气 管道法兰 302-P1113140-14 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +139 30区 302-P1113140 裂解气 管道法兰 302-P1113140-20 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +140 30区 302-P1113215 裂解气 管道法兰 302-P1113215-1 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +141 30区 302-P1113215 裂解气 管道法兰 302-P1113215-7 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +142 30区 302-P1113215 裂解气 管道法兰 302-P1113215-8 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +143 30区 302-P1113215 裂解气 管道法兰 302-P1113215-9 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +144 30区 302-P1113215 裂解气 管道法兰 302-P1113215-10 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +145 30区 302-P1113215 裂解气 管道法兰 302-P1113215-22 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +146 30区 302-P1113215 裂解气 管道法兰 302-P1113215-23 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +147 30区 302-P1113215 裂解气 管道法兰 302-P1113215-24 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +148 30区 302-P1113215 裂解气 管道法兰 302-P1113215-28 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +149 30区 302-P1113215 裂解气 管道法兰 302-P1113215-29 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +150 30区 302-P1113215 裂解气 管道法兰 302-P1113215-30 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +151 30区 302-P1113215A 裂解气 管道法兰 302-P1113215A-1 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +152 30区 302-P1113215A 裂解气 管道法兰 302-P1113215A-2 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +153 30区 302-P1113215A 裂解气 管道法兰 302-P1113215A-3 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +154 30区 302-P1113215A 裂解气 管道法兰 302-P1113215A-8 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +155 30区 302-P1113215A 裂解气 管道法兰 302-P1113215A-9 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +156 30区 302-P1113215A 裂解气 管道法兰 302-P1113215A-10 -11~270 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +157 30区 302-P1113265 裂解气/凝液 管道法兰 302-P1113265-1 -11~90 2.69 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +158 30区 302-P1113265 裂解气/凝液 管道法兰 302-P1113265-6 -11~90 2.69 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +159 30区 302-SS1113901 超高压蒸汽 管道法兰 302-SS1113901-15 -11-540 12.5 6 CL2500 RJ 八角垫 ASME B16.20,5Cr-0.5Mo ASTMA 193-B16/ASTM A194-4 2" 16 80 5664NM 未检查已紧固 液压力矩扳手 +160 30区 303-P1113014 裂解气/凝液 管道法兰 303-P1113014-1 -11~90 2.69 42 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 36 70 3740NM 未检查已紧固 液压力矩扳手 +161 30区 303-P1113014 裂解气/凝液 管道法兰 303-P1113014-7 -11~90 2.69 42 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 36 70 3740NM 未检查已紧固 液压力矩扳手 +162 30区 303-P1113022 裂解气/凝液 管道法兰 303-P1113022-1 -45~65 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +163 30区 303-P1113023 裂解气 管道法兰 303-P1113023-1 -45~150 3.2 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +164 30区 303-P1113023 裂解气 管道法兰 303-P1113023-27 -45~150 3.2 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +165 30区 303-P1113024 裂解气 管道法兰 303-P1113024-9 -45~65 3.2 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +166 30区 303-P1113024 裂解气 管道法兰 303-P1113024-19 -45~65 3.2 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +167 30区 303-P1113025 裂解气 管道法兰 303-P1113025-11 -45~150 4.62 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +168 30区 303-P1113025 裂解气 管道法兰 303-P1113025-16 -45~150 4.62 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +169 30区 303-P1113026 裂解气 管道法兰 303-P1113026-1 -11~150 4.62 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +170 30区 303-P1113026 裂解气 管道法兰 303-P1113026-2 -11~150 4.62 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +171 30区 303-P1113026 裂解气 管道法兰 303-P1113026-13 -11~150 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +172 30区 303-P1113026 裂解气 管道法兰 303-P1113026-14 -11~150 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +173 30区 303-P1113029 裂解气 管道法兰 303-P1113029-1 -11~160 4.62 32 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2" 28 80 5664NM 未检查已紧固 液压力矩扳手 +174 30区 303-P1113029 裂解气 管道法兰 303-P1113029-7 -11~160 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +175 30区 303-P1113029 裂解气 管道法兰 303-P1113029-9 -11~160 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +176 30区 303-P1113029 裂解气 管道法兰 303-P1113029-10 -11~160 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +177 30区 303-P1113029 裂解气 管道法兰 303-P1113029-11 -11~160 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +178 30区 303-P1113037 裂解气 管道法兰 303-P1113037-1 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +179 30区 303-P1113037 裂解气 管道法兰 303-P1113037-2 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +180 30区 303-P1113037 裂解气 管道法兰 303-P1113037-15 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +181 30区 303-P1113037 裂解气 管道法兰 303-P1113037-18 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +182 30区 303-P1113037 裂解气 管道法兰 303-P1113037-19 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +183 30区 303-P1113037 裂解气 管道法兰 303-P1113037-20 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +184 30区 303-P1113038 裂解气 管道法兰 303-P1113038-1 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +185 30区 303-P1113038 裂解气 管道法兰 303-P1113038-13 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +186 30区 303-P1113038 裂解气 管道法兰 303-P1113038-14 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +187 30区 303-P1113038 裂解气 管道法兰 303-P1113038-15 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +188 30区 303-P1113038 裂解气 管道法兰 303-P1113038-16 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +189 30区 303-P1113066 裂解气 管道法兰 303-P1113066-1 -11~90 2.69 42 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 36 70 3740NM 未检查已紧固 液压力矩扳手 +190 30区 303-P1113113 裂解气 管道法兰 303-P1113113-12 -11~160 4.62 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +191 30区 303-P1113113 裂解气 管道法兰 303-P1113113-13 -11~160 4.62 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +192 30区 303-P1113113 裂解气 管道法兰 303-P1113113-14 -11~160 4.62 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +193 30区 303-P1113113 裂解气 管道法兰 303-P1113113-15 -11~160 4.62 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +194 30区 303-P1113123 裂解气 管道法兰 303-P1113123-1 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 未检查已紧固 液压力矩扳手 +195 30区 303-P1113123 裂解气 管道法兰 303-P1113123-2 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +196 30区 303-P1113123 裂解气 管道法兰 303-P1113123-14 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +197 30区 303-P1113123 裂解气 管道法兰 303-P1113123-15 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +198 30区 303-P1113123 裂解气 管道法兰 303-P1113123-16 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +199 30区 303-P1113144 裂解气 管道法兰 303-P1113144-1 -11~270 3.8 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +200 30区 303-P1113144 裂解气 管道法兰 303-P1113144-5 -11~270 3.8 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +201 30区 303-P1113160 裂解气 管道法兰 303-P1113160-12 -11~160 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +202 30区 303-P1113160 裂解气 管道法兰 303-P1113160-17 -11~160 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +203 30区 303-P1113160 裂解气 管道法兰 303-P1113160-18 -11~160 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +204 30区 303-P1113160 裂解气 管道法兰 303-P1113160-25 -11~160 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +205 30区 303-P1113165 裂解气 管道法兰 303-P1113165-10 -11~150 4.62 16 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-1/2" 20 60 2291NM 未检查已紧固 液压力矩扳手 +206 30区 303-P1113165 裂解气 管道法兰 303-P1113165-11 -11~150 4.62 16 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-1/2" 20 60 2291NM 未检查已紧固 液压力矩扳手 +207 30区 303-P1113165 裂解气 管道法兰 303-P1113165-16 -11~150 4.62 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +208 30区 303-P1113165 裂解气 管道法兰 303-P1113165-17 -11~150 4.62 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +209 30区 303-P1113215B 裂解气 管道法兰 303-P1113215B-9 -11~65 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +210 30区 303-P1113215B 裂解气 管道法兰 303-P1113215B-6 -11~65 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +211 30区 303-P1113215B 裂解气 管道法兰 303-P1113215B-5 -11~65 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +212 30区 303-P1113215B 裂解气 管道法兰 303-P1113215B-4 -11~65 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +213 30区 303-P1113215B 裂解气 管道法兰 303-P1113215B-3 -11~65 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +214 30区 303-P1113256 裂解气 管道法兰 303-P1113256-1 -11~90 4.62 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +215 30区 303-P1113256 裂解气 管道法兰 303-P1113256-6 -11~90 4.62 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +216 30区 303-P1113256 裂解气 管道法兰 303-P1113256-7 -11~90 4.62 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +217 30区 303-P1113256 裂解气 管道法兰 303-P1113256-8 -11~90 4.62 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +218 30区 303-P1113256 裂解气 管道法兰 303-P1113256-9 -11~90 4.62 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +219 30区 303-P1113256 裂解气 管道法兰 303-P1113256-21 -11~90 4.62 32 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2" 28 80 5664NM 未检查已紧固 液压力矩扳手 +220 30区 303-P1113257 裂解气 管道法兰 303-P1113257-11 -11~150 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +221 30区 303-P1113257 裂解气 管道法兰 303-P1113257-12 -11~150 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +222 30区 303-P1113257 裂解气 管道法兰 303-P1113257-13 -11~150 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +223 30区 303-P1113257 裂解气 管道法兰 303-P1113257-14 -11~150 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +224 30区 303-P1113258 再生气 管道法兰 303-P1113258-8 -11~270 3.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +225 30区 303-P1113258 再生气 管道法兰 303-P1113258-20 -11~270 3.8 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +226 30区 303-P1113261 裂解气 管道法兰 303-P1113261-1 -11~65 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +227 30区 303-P1113261 裂解气 管道法兰 303-P1113261-6 -11~65 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 +228 30区 303-P1113924 裂解气 管道法兰 303-P1113924-1 -11~270 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +229 30区 303-P1113924 裂解气 管道法兰 303-P1113924-14 -11~270 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +230 30区 303-P1113924 裂解气 管道法兰 303-P1113924-15 -11~270 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +231 30区 303-P1113924 裂解气 管道法兰 303-P1113924-16 -11~270 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 +233 30区 8"-CA1113866-B54AS-E T-1340 碱液 管道法兰 302-CA1113866Z-1 -11~90 2.9 8 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +234 30区 8"-CA1113009-B54AS-E T-1340 碱液 管道法兰 302-CA1113009Z-1 -11~90 2.98 8 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +235 30区 8"-P1113205-B54AS-H T-1340 冲洗水 管道法兰 302-P1113205Z-1 -11~90 2.69 8 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +236 30区 2"-P1113015-A54AS-E T-1340 黄油 管道法兰 302-P1113015Z-1 -11~90 2.69 3 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +237 30区 6"-CA1113867-B54AS-E T-1340 碱液 管道法兰 302-CA1113867Z-1 -11~90 3.43 8 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +238 30区 6"-CA1113013-B54AS-E T-1340 碱液 管道法兰 302-CA1113013Z-1 -11~90 3.61 8 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +239 30区 6"-CA1113010-B54AS-E T-1340 碱液 管道法兰 302-CA1113010Z-1 -11~90 3.64 6 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +240 30区 6"-P1113209-B54AS-H T-1340 冲洗水 管道法兰 302-P1113209Z-1 -11~90 3.78 6 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +241 30区 4"-CA1113001-B54AS-E T-1340 碱液 管道法兰 302-CA1113001Z-1 -11~90 2.69 4 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +242 30区 4"-CA1113001-B54AS-E T-1340 碱液 管道法兰 302-CA1113001Z-9 -11~90 2.69 4 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +243 30区 4"-CA1113865-B54AS-W T-1340 碱液 管道法兰 302-CA1113865Z-1 -11~90 2.69 4 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +244 30区 4"-CA1113865-B54AS-W T-1340 碱液 管道法兰 302-CA1113865Z-9 -11~90 2.69 4 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +245 30区 2"-P1113251-A54AS-E T-1340 黄油 管道法兰 302-P1113251-1 -11~90 2.69 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +246 30区 3"-CA1113007-B54AS-E T-1340 碱液 管道法兰 302-CA1113007-1 -11~90 2.69 3 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +247 30区 8"-CA1113005-B54AS-E T-1340 碱液 管道法兰 302-CA1113005-1 -11~90 2.75 8 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +248 30区 42"-P1113067-B33A-H T-1340 裂解气 管道法兰 302-P1113067-1 -11~90 2.69 42 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 36 70 3740NM 未检查已紧固 液压力矩扳手 +249 30区 塔顶放空导淋 T-1340 管道法兰 T-1340塔顶放空导淋 3 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +250 30区 冲洗水集液槽排液导淋 T-1340 管道法兰 T-1340冲洗水集液槽排液导淋 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 已检查已紧固 手动力矩扳手 +251 30区 强碱段集液槽排液导淋 T-1340 管道法兰 T-1340强碱段集液槽排液导淋 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 已检查已紧固 手动力矩扳手 +252 30区 中碱段集液槽排液导淋 T-1340 管道法兰 T-1340中碱段集液槽排液导淋 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 已检查已紧固 手动力矩扳手 +253 30区 塔底黄油格室排液导淋 T-1340 管道法兰 T-1340塔底黄油格室排液导淋 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 已检查已紧固 手动力矩扳手 +254 30区 塔底废碱格室排液导淋 T-1340 管道法兰 T-1340塔底废碱格室排液导淋 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 已检查已紧固 手动力矩扳手 +255 30区 塔底弱碱格室排液导淋 T-1340 管道法兰 T-1340塔底弱碱格室排液导淋 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 已检查已紧固 手动力矩扳手 +256 30区 LG13017上部连接口 T-1340 管道法兰 T-1340LG13017上部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +257 30区 LG13017下部连接口 T-1340 管道法兰 T-1340LG13017下部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +258 30区 LT13017上部连接口 T-1340 管道法兰 T-1340LT13017上部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +259 30区 LT13017下部连接口 T-1340 管道法兰 T-1340LT13017下部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +260 30区 TI13023连接口 T-1340 管道法兰 T-1340TI13023连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +261 30区 塔底黄油线排空导淋 T-1340 管道法兰 T-1340塔底黄油线排空导淋 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 已检查已紧固 手动力矩扳手 +262 30区 塔底废碱线排空导淋 T-1340 管道法兰 T-1340塔底废碱线排空导淋 4 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +263 30区 塔底弱碱线排空导淋 T-1340 管道法兰 T-1340塔底弱碱线排空导淋 4 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +264 30区 LG13018上部连接口 T-1340 管道法兰 T-1340LG13018上部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +265 30区 LG13018下部连接口 T-1340 管道法兰 T-1340LG13018下部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +266 30区 LT13018上部连接口 T-1340 管道法兰 T-1340LT13018上部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +267 30区 LT13018下部连接口 T-1340 管道法兰 T-1340LT13018下部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +268 30区 LG13019上部连接口 T-1340 管道法兰 T-1340LG13019上部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +269 30区 LG13019下部连接口 T-1340 管道法兰 T-1340LG13019下部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +270 30区 LT13019上部连接口 T-1340 管道法兰 T-1340LT13019上部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +271 30区 LT13019下部连接口 T-1340 管道法兰 T-1340LT13019下部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +272 30区 PDE13014A连接口 T-1340 管道法兰 T-1340PDE13014A连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +273 30区 PDE13014B连接口 T-1340 管道法兰 T-1340PDE13014B连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +274 30区 PDT13014D连接口 T-1340 管道法兰 T-1340PDT13014D连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +275 30区 LG13015上部连接口 T-1340 管道法兰 T-1340LG13015上部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +276 30区 LG13015下部连接口 T-1340 管道法兰 T-1340LG13015下部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +277 30区 LT13015上部连接口 T-1340 管道法兰 T-1340LT13015上部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +278 30区 LT13015下部连接口 T-1340 管道法兰 T-1340LT13015下部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +279 30区 LG13020上部连接口 T-1340 管道法兰 T-1340LG13020上部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +280 30区 LG13020下部连接口 T-1340 管道法兰 T-1340LG13020下部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +281 30区 LT13020上部连接口 T-1340 管道法兰 T-1340LT13020上部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +282 30区 LT13020下部连接口 T-1340 管道法兰 T-1340LT13020下部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +283 30区 LG13020A上部连接口 T-1340 管道法兰 T-1340LG13020A上部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +284 30区 LG13020A下部连接口 T-1340 管道法兰 T-1340LG13020A下部连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 已检查已紧固 手动力矩扳手 +285 30区 30"-P1113023-B35B-C T-1365 裂解气 管道法兰 303-P1113023Z-1 -45~150 3.2 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +286 30区 8"-P1113131-B35B-C T-1365 液烃 管道法兰 303-P1113131Z-1 -45~65 4.62 8 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +287 30区 36"-P1113022-B35B-C T-1365 裂解气/凝液 管道法兰 303-P1113022Z-1 -45~65 3.2 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +288 30区 3"-P1113101-B35B-C T-1365 液烃 管道法兰 303-P1113101Z-1 -45~65 3.4 4 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +289 30区 16"-P1113109-B35B-H T-1365 碳三加 管道法兰 303-P1113109-1 -45~150 3.3 16 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-1/4" 20 50 1288NM 未检查已紧固 液压力矩扳手 +290 30区 14"-P1113108-B35B-H T-1365 碳三加 管道法兰 303-P1113108-1 -45~150 3.3 14 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-1/8" 20 46 915NM 未检查已紧固 液压力矩扳手 +291 30区 6"-P1113045-B35B-PP T-1365 碳三加 管道法兰 303-P1113045-1 -45~150 3.3 8 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +292 30区 2"-P1113601-B33A-C T-1365 混合碳三 管道法兰 303-P1113601-1 -45~150 3.75 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +293 30区 PT13025连接口 T-1365 管道法兰 T-1365PT13025连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +294 30区 TI13057连接口 T-1365 管道法兰 T-1365TI13057连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +295 30区 PDE13026A连接口 T-1365 管道法兰 T-1365PDE13026A连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +296 30区 TI13058连接口 T-1365 管道法兰 T-1365TI13058连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +297 30区 PDE13026B连接口 T-1365 管道法兰 T-1365PDE13026B连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +298 30区 LT13028上连接口 T-1365 管道法兰 T-1365LT13028上连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +299 30区 LT13028下连接口 T-1365 管道法兰 T-1365LT13028下连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +300 30区 LG13028上连接口 T-1365 管道法兰 T-1365LG13028上连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +301 30区 LG13028下连接口 T-1365 管道法兰 T-1365LG13028下连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +302 30区 塔底出料线导淋 T-1365 管道法兰 T-1365塔底出料线导淋 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +303 30区 塔釜排空导淋 T-1365 管道法兰 T-1365塔釜排空导淋 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +304 30区 LT13055上连接口 T-1365 管道法兰 T-1365LT13055上连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +305 30区 LT13055下连接口 T-1365 管道法兰 T-1365LT13055下连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +306 30区 TI13061连接口 T-1365 管道法兰 T-1365TI13061连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +307 30区 TI13366连接口 T-1365 管道法兰 T-1365TI13366连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +308 30区 TIC13059连接口 T-1365 管道法兰 T-1365TIC13059连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +310 30区 11100-T-1340 碱洗塔 裂解气/碱液 设备法兰 T-1340-M25A -11/90 2.69 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +311 30区 11100-T-1340 碱洗塔 裂解气/碱液 设备法兰 T-1340-M25C -11/90 2.69 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +312 30区 11100-T-1340 碱洗塔 裂解气/碱液 设备法兰 T-1340-M25D -11/90 2.69 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +313 30区 11100-T-1340 碱洗塔 裂解气/碱液 设备法兰 T-1340-M25E -11/90 2.69 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +314 30区 11100-T-1340 碱洗塔 裂解气/碱液 设备法兰 T-1340-M25G -11/90 2.69 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +315 30区 11100-T-1340 碱洗塔 裂解气/碱液 设备法兰 T-1340-M25J -11/90 2.69 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +316 30区 11100-T-1340 碱洗塔 裂解气/碱液 设备法兰 T-1340-M25L -11/90 2.69 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +317 30区 11100-T-1340 碱洗塔 裂解气/碱液 设备法兰 T-1340-M25B -11/90 2.69 30 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M36 36 55 1950NM 已检查已紧固 液压力矩扳手 +318 30区 11100-T-1340 碱洗塔 裂解气/碱液 设备法兰 T-1340-M25F -11/90 2.69 30 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M36 36 55 1950NM 已检查已紧固 液压力矩扳手 +319 30区 11100-T-1340 碱洗塔 裂解气/碱液 设备法兰 T-1340-M25H -11/90 2.69 30 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M36 36 55 1950NM 已检查已紧固 液压力矩扳手 +320 30区 11100-T-1340 碱洗塔 裂解气/碱液 设备法兰 T-1340-M25K -11/90 2.69 42 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M45 36 70 3800NM 已检查已紧固 液压力矩扳手 +321 30区 11100-T-1365 高压脱丙烷塔 碳氢化合物 设备法兰 T-1365-M25A -45/150 3.2 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +322 30区 11100-T-1365 高压脱丙烷塔 碳氢化合物 设备法兰 T-1365-M25B -45/150 3.2 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +323 30区 11100-T-1365 高压脱丙烷塔 碳氢化合物 设备法兰 T-1365-M25C -45/150 3.2 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +324 30区 11100-T-1365 高压脱丙烷塔 碳氢化合物 设备法兰 T-1365-M25D -45/150 3.2 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +325 30区 11100-T-1365 高压脱丙烷塔 碳氢化合物 设备法兰 T-1365-M25E -45/150 3.2 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +326 30区 11100-D-1370A 裂解气干燥器 裂解气/再生气 设备法兰 D-1370A-M25A -11/270 3.2 42 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M45 36 70 3800 已检查已紧固 液压力矩扳手 +327 30区 11100-D-1370A 裂解气干燥器 裂解气/再生气 设备法兰 D-1370A-M25B -11/270 3.2 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +328 30区 11100-D-1370A 裂解气干燥器 裂解气/再生气 设备法兰 D-1370A-M25C -11/270 3.2 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +329 30区 11100-D-1370S 裂解气干燥器 裂解气/再生气 设备法兰 D-1370S-M25A -11/270 3.2 42 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M45 36 70 3800 已检查已紧固 液压力矩扳手 +330 30区 11100-D-1370S 裂解气干燥器 裂解气/再生气 设备法兰 D-1370S-M25B -11/270 3.2 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +331 30区 11100-D-1370S 裂解气干燥器 裂解气/再生气 设备法兰 D-1370S-M25C -11/270 3.2 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +332 30区 11100-D-1375A 裂解气第二干燥器 裂解气/再生气 设备法兰 D-1375A-M25A -11/270 4.62 42 CL600 RF 缠绕垫 S30408+柔性石墨 35CrMoA/30CrMoA M64 28 95 10500NM 未检查已紧固 液压力矩扳手 +333 30区 11100-D-1375A 裂解气第二干燥器 裂解气/再生气 设备法兰 D-1375A-M25B -11/270 4.62 24 CL600 RF 缠绕垫 S30408+柔性石墨 35CrMoA/30CrMoA M48 24 75 4500NM 已检查已紧固 液压力矩扳手 +334 30区 11100-D-1375A 裂解气第二干燥器 裂解气/再生气 设备法兰 D-1375A-M25C -11/270 4.62 24 CL600 RF 缠绕垫 S30408+柔性石墨 35CrMoA/30CrMoA M48 24 75 4500NM 已检查已紧固 液压力矩扳手 +335 30区 11100-D-137S 裂解气第二干燥器 裂解气/再生气 设备法兰 D-1375S-M25A -11/270 4.62 42 CL600 RF 缠绕垫 S30408+柔性石墨 35CrMoA/30CrMoA M64 28 95 10500NM 未检查已紧固 液压力矩扳手 +336 30区 11100-D-1375S 裂解气第二干燥器 裂解气/再生气 设备法兰 D-1375S-M25B -11/270 4.62 24 CL600 RF 缠绕垫 S30408+柔性石墨 35CrMoA/30CrMoA M48 24 75 4500NM 已检查已紧固 液压力矩扳手 +337 30区 11100-D-1375S 裂解气第二干燥器 裂解气/再生气 设备法兰 D-1375S-M25C -11/270 4.62 24 CL600 RF 缠绕垫 S30408+柔性石墨 35CrMoA/30CrMoA M48 24 75 4500NM 已检查已紧固 液压力矩扳手 +338 30区 11100-D-1380A 液烃干燥器 液烃 设备法兰 D-1380A-M25A -11/270 3.4 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +339 30区 11100-D-1380A 液烃干燥器 液烃 设备法兰 D-1380A-M25B -11/270 3.4 20 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M33 24 50 1550NM 已检查已紧固 液压力矩扳手 +340 30区 11100-D-1380S 液烃干燥器 液烃 设备法兰 D-1380S-M25A -11/270 3.4 24 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +341 30区 11100-D-1380S 液烃干燥器 液烃 设备法兰 D-1380S-M25B -11/270 3.4 20 CL300 RF 金属缠绕垫 2222 35CrMoA/30CrMoA M33 24 50 1550NM 已检查已紧固 液压力矩扳手 +342 30区 11100-R-1360A 碳二加氢反应器 裂解气 设备法兰 R-1360A-M25A -11/415 4.62 44 CL600 RF S30408+柔性石墨 35CrMoA/30CrMoA M48 40 75 4500NM 已检查已紧固 液压力矩扳手 +343 30区 11100-R-1360A 碳二加氢反应器 裂解气 设备法兰 R-1360A-M25B -11/415 4.62 24 CL600 RF 缠绕垫 S30408+柔性石墨 35CrMoA/30CrMoA M48 24 75 4500NM 已检查已紧固 液压力矩扳手 +344 30区 11100-R-1360A 碳二加氢反应器 裂解气 设备法兰 R-1360A-M25C -11/415 4.62 24 CL600 RF 缠绕垫 S30408+柔性石墨 35CrMoA/30CrMoA M48 24 75 4500NM 已检查已紧固 液压力矩扳手 +345 30区 11100-R-1360B 碳二加氢反应器 裂解气 设备法兰 R-1360B-M25A -11/415 4.62 44 CL600 RF S30408+柔性石墨 35CrMoA/30CrMoA M48 40 75 4500NM 已检查已紧固 液压力矩扳手 +346 30区 11100-R-1360B 碳二加氢反应器 裂解气 设备法兰 R-1360B-M25B -11/415 4.62 24 CL600 RF 缠绕垫 S30408+柔性石墨 35CrMoA/30CrMoA M48 24 75 4500NM 已检查已紧固 液压力矩扳手 +347 30区 11100-R-1360B 碳二加氢反应器 裂解气 设备法兰 R-1360B-M25C -11/415 4.62 24 CL600 RF 缠绕垫 S30408+柔性石墨 35CrMoA/30CrMoA M48 24 75 4500NM 已检查已紧固 液压力矩扳手 +348 30区 11100-R-1360C 碳二加氢反应器 裂解气 设备法兰 R-1360C-M25A -11/415 4.62 44 CL600 RF S30408+柔性石墨 35CrMoA/30CrMoA M48 40 75 4500NM 已检查已紧固 液压力矩扳手 +349 30区 11100-R-1360C 碳二加氢反应器 裂解气 设备法兰 R-1360C-M25B -11/415 4.62 24 CL600 RF 缠绕垫 S30408+柔性石墨 35CrMoA/30CrMoA M48 24 75 4500NM 已检查已紧固 液压力矩扳手 +350 30区 11100-R-1360C 碳二加氢反应器 裂解气 设备法兰 R-1360C-M25C -11/415 4.62 24 CL600 RF 缠绕垫 S30408+柔性石墨 35CrMoA/30CrMoA M48 24 75 4500NM 已检查已紧固 液压力矩扳手 +351 30区 11100-R-1350 碳二加氢脱坤保护床 裂解气 设备法兰 R-1350-M25A -11/99 4.62 42 CL300 RF 缠绕垫2222 S30408+柔性石墨 35CrMoA/30CrMoA M45 36 70 3800 已检查已紧固 液压力矩扳手 +352 30区 11100-R-1350 碳二加氢脱坤保护床 裂解气 设备法兰 R-1350-M25B -11/99 4.62 24 CL300 RF 缠绕垫2222 S30408+柔性石墨 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +353 30区 11100-R-1350 碳二加氢脱坤保护床 裂解气 设备法兰 R-1350-M25C -11/99 4.62 24 CL300 RF 缠绕垫2222 S30408+柔性石墨 35CrMoA/30CrMoA M39 24 60 2450NM 已检查已紧固 液压力矩扳手 +354 30区 11100-V-1363 裂解气第二干燥器裂解罐 裂解气 设备法兰 V-1363-M25A 33/105 4.62 24 CL600 RF 缠绕垫 2222 35CrMoA/30CrMoA M48 24 75 4500NM 未检查已紧固 液压力矩扳手 +355 30区 11100-V-1363 裂解气第二干燥器裂解罐 裂解气 设备法兰 V-1363-M25B 33/105 4.62 24 CL600 RF 缠绕垫 2222 35CrMoA/30CrMoA M48 24 75 4500NM 未检查已紧固 液压力矩扳手 +356 30区 11100-V-1310 裂解气压缩机一段吸入罐 裂解气 设备法兰 V-1310-M25A -11/90 HV/0.55 24 PN25 RF 缠绕垫 2222 35CrMoA/30CrMoA M36 20 55 1950NM 未检查已紧固 液压力矩扳手 +357 30区 11100-V-1320 裂解气压缩机二段吸入罐 裂解气 设备法兰 V-1320-M25A -11/90 0.55 24 PN25 RF 缠绕垫 2222 35CrMoA/30CrMoA M36 20 55 1950NM 未检查已紧固 液压力矩扳手 +358 30区 11100-V-1330 裂解气压缩机三段吸入罐 裂解气 设备法兰 V-1330-M25 -11/90 0.86 24 PN25 RF 缠绕垫 2222 35CrMoA/30CrMoA M36 20 55 1950NM 未检查已紧固 液压力矩扳手 +359 30区 11100-V-1335 裂解气压缩机三段排除罐 裂解气 设备法兰 V-1335-M25 -11/90 1.48 24 PN25 RF 缠绕垫 2222 35CrMoA/30CrMoA M36 20 55 1950NM 已检查已紧固 液压力矩扳手 +360 30区 11100-V-1340 裂解气压缩机四段排除罐 裂解气 设备法兰 V-1340-M25 -11/90 2.69 24 PN40 RF 缠绕垫 2222 35CrMoA/30CrMoA M45 20 70 3800 已检查已紧固 液压力矩扳手 +361 30区 11100-V-1342 废碱除油罐 汽油/废碱 设备法兰 V-1342-M25A -11/80 2.69 24 PN40 RF 缠绕垫 2222 35CrMoA/30CrMoA M45 20 70 3800 未检查已紧固 液压力矩扳手 +362 30区 11100-V-1342 废碱除油罐 汽油/废碱 设备法兰 V-1342-M25B -11/80 2.69 24 PN40 RF 缠绕垫 2222 35CrMoA/30CrMoA M45 20 70 3800 未检查已紧固 液压力矩扳手 +363 30区 11100-V-1343 废碱脱气罐 废碱 设备法兰 V-1343-M25 -11/80 0.52 24 CL150 RF 缠绕垫 2222 35CrMoA/30CrMoA M33 20 50 1550NM 未检查已紧固 液压力矩扳手 +364 30区 11100-V-1346 裂解气压缩机四段分离罐 裂解气 设备法兰 V-1346-M25 -11/90 2.69 24 PN40 RF 缠绕垫 2222 35CrMoA/30CrMoA M45 20 70 3800 未检查已紧固 液压力矩扳手 +365 30区 11100-V-1347 黄油灌 黄油/废碱 设备法兰 V-1347-M25 -11/90 0.7 24 PN16 RF 缠绕垫 2222 35CrMoA/30CrMoA M33 20 50 1550NM 未检查已紧固 液压力矩扳手 +366 30区 11100-V-1350 再生分离罐 燃料气 设备法兰 V-1350-M25 -11/150 1.03 24 PN16 RF 缠绕垫 2222 35CrMoA/30CrMoA M33 20 50 1550NM 未检查已紧固 液压力矩扳手 +367 30区 11100-V-1358 高压脱丙烷再沸器凝液收集罐 蒸汽凝液 设备法兰 V-1358-M25 -11/200 0.8/FV 18 PN16 RF 缠绕垫 2222 35CrMoA/30CrMoA M27 20 S46 950NM 未检查已紧固 液压力矩扳手 +368 30区 302-P1113018A 裂解气 管道法兰 302-P1113018A-2 -11~90 3.2 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 打压紧固 +369 30区 302-P1113020 再生气 管道法兰 302-P1113020-2 -11~270 1.03 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 打压紧固 +370 30区 302-P1113029 冲洗水 管道法兰 302-P1113029-2 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +371 30区 302-P1113030 裂解气 管道法兰 302-P1113030-1 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +372 30区 302-P1113030 裂解气 管道法兰 302-P1113030-32 -11~415 4.62 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 24 65 2957NM 已检查已紧固 液压力矩扳手 打压紧固 +373 30区 302-P1113030 裂解气 管道法兰 302-P1113030-36 -11~415 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 24 65 2957NM 已检查已紧固 液压力矩扳手 打压紧固 +374 30区 302-P1113031 裂解气 管道法兰 302-P1113031-2 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +375 30区 302-P1113031 裂解气 管道法兰 302-P1113031-29 -11~415 4.62 28 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 28 70 3740NM 已检查已紧固 液压力矩扳手 打压紧固 +376 30区 302-P1113032 裂解气 管道法兰 302-P1113032-1 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +377 30区 302-P1113032 裂解气 管道法兰 302-P1113032-39 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +378 30区 302-P1113032 裂解气 管道法兰 302-P1113032-33 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +379 30区 302-P1113033 裂解气 管道法兰 302-P1113033-2 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +380 30区 302-P1113033 裂解气 管道法兰 302-P1113033-38 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +381 30区 302-P1113033 裂解气 管道法兰 302-P1113033-43 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +382 30区 302-P1113114 裂解气 管道法兰 302-P1113114-12 -11~415 4.62 30 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +383 30区 302-P1113140 裂解气 管道法兰 302-P1113140-1 -11~415 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +384 30区 302-P1113140 裂解气 管道法兰 302-P1113140-14 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +385 30区 302-P1113140 裂解气 管道法兰 302-P1113140-20 -11~415 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 已检查已紧固 液压力矩扳手 打压紧固 +386 30区 303-P1113026 裂解气 管道法兰 303-P1113026-2 -11~150 4.62 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 打压紧固 +387 30区 303-P1113037 裂解气 管道法兰 303-P1113037-2 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +388 30区 303-P1113038 裂解气 管道法兰 303-P1113038-1 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +389 30区 303-P1113123 裂解气 管道法兰 303-P1113123-2 -11~120 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +390 30区 303-P1113256 裂解气 管道法兰 303-P1113256-1 -11~90 4.62 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 未检查已紧固 液压力矩扳手 打压紧固 +391 30区 303-P1113924 裂解气 管道法兰 303-P1113924-1 -11~270 4.62 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 2-1/4" 28 90 8198NM 已检查已紧固 液压力矩扳手 打压紧固 +392 30区 42"-P1113067-B33A-H T-1340 裂解气 管道法兰 302-P1113067-1 -11~90 2.69 42 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 36 70 3740NM 已检查已紧固 液压力矩扳手 打压紧固 +393 30区 30"-P1113023-B35B-C T-1365 裂解气 管道法兰 303-P1113023Z-1 -45~150 3.2 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 打压紧固 +394 30区 36"-P1113022-B35B-C T-1365 裂解气/凝液 管道法兰 303-P1113022Z-1 -45~65 3.2 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 打压紧固 diff --git a/excel/40.txt b/excel/40.txt new file mode 100644 index 0000000000000000000000000000000000000000..8704377c705879bc028bc9129953f835b536d12d --- /dev/null +++ b/excel/40.txt @@ -0,0 +1,672 @@ +三江化工轻烃利用装置定力矩紧固法兰清单 +序号 区域 设备位号/管线号 设备名称 工作介质 法兰名称 法兰编号 设计温度 设计压力 法兰规格 压力等级 密封形式 密封垫 螺栓信息 目标扭矩 法兰紧固状态 + NPS PN/Class 类型 材质 螺栓材质 螺栓规格 螺栓数量 螺母对边 +1 40区 V-1685 / 乙烯 设备法兰 V-1685-N11 -65 2.3 24 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 24 60 2048NM 未检查已紧固 +2 40区 V-1411 / 裂解气 设备法兰 V-1411-N1 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +3 40区 402-P1114001 / 裂解气 管道法兰 402-P1114001-13 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +4 40区 E-1402 / 裂解气 设备法兰 E-1402-N2 -65 4.6 20 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-5/8" 24 65 2642NM 未检查已紧固 +5 40区 V-1414 / 裂解气 设备法兰 V-1414-N1 -160 4.6 18 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-5/8" 20 65 2642NM 未检查已紧固 +6 40区 C-1600 / 丙烯 管道法兰 C-1600-G-103 -20 1.6 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A194-2H 1-5/8" 24 65 2957NM 未检查已紧固 +7 40区 V-1610 / 丙烯 管道法兰 V-1610-N2 -46 1.6 32 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-L7/ASTM 1-1/2" 32 60 2291NM 未检查已紧固 +8 40区 C-1650 / 高压蒸汽 设备法兰 C-1650-Ta1 -11 4.7 10 CL600 RF 金属八角垫 ASME B16.20, 5Cr-0.5Mo A193-B16/ASTM 1-7/8" 12 75 4620NM 未检查已紧固 +9 40区 C-1650 / 高压蒸汽 管道法兰 C-1650-Ta2 -11 4.7 10 CL600 RF 金属八角垫 ASME B16.20, 5Cr-0.5Mo A193-B16/ASTM 1-7/8" 12 75 4620NM 未检查已紧固 +10 40区 403-HS1119060 / 高压蒸汽 管道法兰 403-HS1119060-28 -11 4.7 18 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A193-B16/ASTM 1-5/8" 20 65 2957NM 未检查已紧固 +11 40区 403-HS1119060 / 高压蒸汽 管道法兰 403-HS1119060-29 -11 4.7 18 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A193-B16/ASTM 1-5/8" 20 65 2957NM 未检查已紧固 +12 40区 403-HS1119060 / 高压蒸汽 管道法兰 403-HS1119060-30 -11 4.7 18 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A193-B16/ASTM 1-5/8" 20 65 2957NM 未检查已紧固 +13 40区 403-HS1119060 / 高压蒸汽 管道法兰 403-HS1119060-31 -11 4.7 18 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A193-B16/ASTM 1-5/8" 20 65 2957NM 未检查已紧固 +14 40区 C-1600 / 丙烯 设备法兰 C-1600-G-106 -11 2.1 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 +15 40区 C-1600 / 丙烯 设备法兰 C-1600-G-104 -11 1.6 16 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A194-2H 1-1/2" 20 60 2291NM 未检查已紧固 +16 40区 C-1600 / 丙烯 设备法兰 C-1600-G-102 -35 1.6 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A320-L7/ASTM 1-7/8" 24 75 4620NM 未检查已紧固 +17 40区 V-1412 / 裂解气 设备法兰 V-1412-N1 -90 4.6 20 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-5/8" 24 65 2642NM 未检查已紧固 +18 40区 402-P1114290 / 裂解气 管道法兰 402-P1114290-2 -90 4.6 20 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-5/8" 24 65 2642NM 未检查已紧固 +19 40区 402-P1114290 / 裂解气 管道法兰 402-P1114290-19 -90 4.6 20 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-5/8" 20 65 2642NM 未检查已紧固 +20 40区 402-P1114291 / 裂解气 管道法兰 402-P1114291-21 -90 4.6 12 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-5/8" 20 65 2642NM 未检查已紧固 +21 40区 C-1650 / 乙烯 设备法兰 C-1650-G-101 -115 1.1 16 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 20 60 2048NM 未检查已紧固 +22 40区 V-1680 / 乙烯 设备法兰 V-1680-N2 -75 1.1 42 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +23 40区 C-1650 / 乙烯 设备法兰 C-1650-G-103 -75 1.1 30 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 28 75 4130NM 未检查已紧固 +24 40区 401-CFL1113711 / 低温烃类 管道法兰 401-CFL1113711-8 -101 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +25 40区 401-CFL1113711 / 低温烃类 管道法兰 401-CFL1113711-9 -101 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +26 40区 401-CFL1113711 / 低温烃类 管道法兰 401-CFL1113711-12 -101 4.6 16 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 20 60 2048NM 未检查已紧固 +27 40区 401-CFL1113711 / 低温烃类 管道法兰 401-CFL1113711-13 -101 4.6 16 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 20 60 2048NM 未检查已紧固 +28 40区 401-CFL1113711 / 低温烃类 管道法兰 401-CFL1113711-14 -101 4.6 16 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 20 60 2048NM 未检查已紧固 +29 40区 401-CFL1113711 / 低温烃类 管道法兰 401-CFL1113711-15 -101 4.6 16 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 20 60 2048NM 未检查已紧固 +30 40区 401-P1113043 / 低温烃类 管道法兰 401-P1113043-8 -65 4.6 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-L7/ASTM 1-1/2" 24 60 2291NM 未检查已紧固 +31 40区 401-P1113043 / 低温烃类 管道法兰 401-P1113043-9 -65 4.6 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-L7/ASTM 1-1/2" 24 60 2291NM 未检查已紧固 +32 40区 402-P1113040 / 裂解气 管道法兰 402-P1113040-2 -90 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 未检查已紧固 +33 40区 402-P1113040 / 裂解气 管道法兰 402-P1113040-10 -90 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 已检查已紧固 +34 40区 402-P1113040 / 裂解气 管道法兰 402-P1113040-11 -90 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 已检查已紧固 +35 40区 402-P1113040 / 裂解气 管道法兰 402-P1113040-12 -90 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 已检查已紧固 +36 40区 402-P1113040 / 裂解气 管道法兰 402-P1113040-15 -90 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 已检查已紧固 +37 40区 402-P1113040 / 裂解气 管道法兰 402-P1113040-16 -90 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 已检查已紧固 +38 40区 402-P1113040 / 裂解气 管道法兰 402-P1113040-17 -90 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 已检查已紧固 +39 40区 402-P1113040A / 裂解气 管道法兰 402-P1113040A-1 -90 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 未检查已紧固 +40 40区 402-P1113040B / 裂解气 管道法兰 402-P1113040B-1 -90 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 未检查已紧固 +41 40区 402-P1113040A / 裂解气 管道法兰 402-P1113040A-2 -90 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 已检查已紧固 +42 40区 402-P1113040B / 裂解气 管道法兰 402-P1113040B-2 -90 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 已检查已紧固 +43 40区 402-P1114946 / 裂解气 管道法兰 402-P1114946-2 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +44 40区 402-P1114946 / 裂解气 管道法兰 402-P1114946-18 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +45 40区 403-LS1119061 / 低压蒸汽 管道法兰 403-LS1119061-1 -11 0.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7/ASTM 1-1/2" 24 60 2291NM 已检查已紧固 +46 40区 403-LS1119061 / 低压蒸汽 管道法兰 403-LS1119061-10 -11 0.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7/ASTM 1-1/2" 24 60 2291NM 已检查已紧固 +47 40区 403-LS1119061 / 低压蒸汽 管道法兰 403-LS1119061-11 -11 0.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7/ASTM 1-1/2" 24 60 2291NM 已检查已紧固 +48 40区 C-1600 / 高压蒸汽 设备法兰 C-1600-Ta1 -11 4.7 10 CL600 RF 金属八角垫 ASME B16.20, 5Cr-0.5Mo A193-B16/ASTM 1-7/8" 12 75 4620NM 已检查已紧固 +49 40区 C-1600 / 高压蒸汽 设备法兰 C-1600-Ta2 -11 4.7 10 CL600 RF 金属八角垫 ASME B16.20, 5Cr-0.5Mo A193-B16/ASTM 1-7/8" 12 75 4620NM 已检查已紧固 +50 40区 403-HS1119061 / 高压蒸汽 管道法兰 403-HS1119061-28 -11 4.7 10 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A193-B16/ASTM 1-5/8" 24 65 2957NM 已检查已紧固 +51 40区 403-HS1119061 / 高压蒸汽 管道法兰 403-HS1119061-29 -11 4.7 10 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A193-B16/ASTM 1-5/8" 24 65 2957NM 已检查已紧固 +52 40区 403-HS1119061 / 高压蒸汽 管道法兰 403-HS1119061-30 -11 4.7 10 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A193-B16/ASTM 1-5/8" 24 65 2957NM 已检查已紧固 +53 40区 403-HS1119061 / 高压蒸汽 管道法兰 403-HS1119061-31 -11 4.7 10 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A193-B16/ASTM 1-5/8" 24 65 2957NM 已检查已紧固 +54 40区 E-1440 / 乙烯 设备法兰 E-1440-N1 -65 2.3 30 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/8" 36 55 1550NM 未检查已紧固 +55 40区 402-RE1116005 / 乙烯 管道法兰 402-RE1116005-2 -65 2.3 30 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/8" 36 55 1550NM 未检查已紧固 +56 40区 402-RE1116005 / 乙烯 管道法兰 402-RE1116005-4 -65 2.3 30 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/8" 36 55 1550NM 未检查已紧固 +57 40区 403-P1114103 / 乙烯 管道法兰 403-P1114103-1 -75 1.1 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +58 40区 C-1650 / 乙烯 设备法兰 C-1650-G-105 -60 2.3 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +59 40区 403-RE1116001 / 乙烯 管道法兰 403-RE1116001-16 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +60 40区 403-RE1116001 / 乙烯 管道法兰 403-RE1116001-17 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +61 40区 403-RE1116001 / 乙烯 管道法兰 403-RE1116001-18 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +62 40区 403-RE1116001 / 乙烯 管道法兰 403-RE1116001-19 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +63 40区 V-1690 / 乙烯 设备法兰 V-1690-N1 -65 2.3 30 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/8" 36 55 1550NM 未检查已紧固 +64 40区 V-1610 / 丙烯 设备法兰 V-1610-N16 -46 1.6 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A320-L7/ASTM 1-5/8" 32 65 2957NM 未检查已紧固 +65 40区 V-1365 / 丙烯 设备法兰 V-1365-N1 -90 4.6 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A320-L7/ASTM 2-1/4" 28 90 8198NM 未检查已紧固 +66 40区 E-1647 / 乙烯 设备法兰 E-1647-T1 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +67 40区 E-1647 / 乙烯 设备法兰 E-1647-T2 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +68 40区 403-RE1116003 / 乙烯 管道法兰 403-RE1116003-11 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +69 40区 403-RE1116003 / 乙烯 管道法兰 403-RE1116003-13 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 已检查已紧固 +70 40区 403-RE1116003 / 乙烯 管道法兰 403-RE1116003-14 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 已检查已紧固 +71 40区 403-RE1116003 / 乙烯 管道法兰 403-RE1116003-17 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 已检查已紧固 +72 40区 403-RE1116003 / 乙烯 管道法兰 403-RE1116003-18 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 已检查已紧固 +73 40区 403-RE1116003 / 乙烯 管道法兰 403-RE1116003-21 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 已检查已紧固 +74 40区 403-RE1116003 / 乙烯 管道法兰 403-RE1116003-22 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 已检查已紧固 +75 40区 403-RE1116003 / 乙烯 管道法兰 403-RE1116003-25 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 已检查已紧固 +76 40区 403-RE1116003 / 乙烯 管道法兰 403-RE1116003-34 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 已检查已紧固 +77 40区 E-1648 / 乙烯 设备法兰 E-1648-N4 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +78 40区 V-1690 / 乙烯 设备法兰 V-1690-N4 -65 2.3 24 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 24 60 2048NM 未检查已紧固 +79 40区 402-P1113038 / 裂解气 管道法兰 402-P1113038-1 -11 4.6 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7/ASTM 2-1/4" 28 90 8198NM 未检查已紧固 +80 40区 402-P1113038 / 裂解气 管道法兰 402-P1113038-2 -11 4.6 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7/ASTM 2-1/4" 28 90 8198NM 未检查已紧固 +81 40区 402-P1113038 / 裂解气 管道法兰 402-P1113038-3 -11 4.6 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7/ASTM 2-1/4" 28 90 8198NM 未检查已紧固 +82 40区 402-P1113038 / 裂解气 管道法兰 402-P1113038-6 -11 4.6 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7/ASTM 2-1/4" 28 90 8198NM 未检查已紧固 +83 40区 402-P1113038 / 裂解气 管道法兰 402-P1113038-7 -11 4.6 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7/ASTM 2-1/4" 28 90 8198NM 未检查已紧固 +84 40区 402-P1113038 / 裂解气 管道法兰 402-P1113038-8 -11 4.6 36 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7/ASTM 2-1/4" 28 90 8198NM 未检查已紧固 +85 40区 402-P1113043 / 低温烃类 管道法兰 402-P1113043-2 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +86 40区 402-P1113043 / 低温烃类 管道法兰 402-P1113043-7 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +87 40区 402-P1113043 / 低温烃类 管道法兰 402-P1113043-8 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +88 40区 402-P1113043 / 低温烃类 管道法兰 402-P1113043-10 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +89 40区 402-P1113043 / 低温烃类 管道法兰 402-P1113043-11 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +90 40区 402-P1113043 / 低温烃类 管道法兰 402-P1113043-18 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +91 40区 402-P1113043 / 低温烃类 管道法兰 402-P1113043-19 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +92 40区 402-P1113043 / 低温烃类 管道法兰 402-P1113043-21 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +93 40区 402-P1113043 / 低温烃类 管道法兰 402-P1113043-22 -65 4.6 24 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-7/8" 24 75 4130NM 未检查已紧固 +94 40区 V-1414 / 裂解气 设备法兰 V-1414-N2 -95 4.6 16 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 20 60 2048NM 未检查已紧固 +95 40区 402-P1114005 / 裂解气 管道法兰 402-P1114005-2 -175 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 未检查已紧固 +96 40区 402-P1114005 / 裂解气 管道法兰 402-P1114005-12 -175 4.6 36 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 2-1/4" 28 90 7328NM 未检查已紧固 +97 40区 E-1648 / 乙烯 设备法兰 E-1648-N8 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +98 40区 403-RE1116004 / 乙烯 管道法兰 403-RE1116004-2 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +99 40区 403-RE1116004 / 乙烯 管道法兰 403-RE1116004-10 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +100 40区 403-RE1116004 / 乙烯 管道法兰 403-RE1116004-11 -60 2.3 42 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/4" 36 70 3343NM 未检查已紧固 +101 40区 V-1680 / 乙烯 设备法兰 V-1680-N13 -75 1.6 36 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-5/8" 32 65 2642NM 未检查已紧固 +102 40区 C-1650 / 乙烯 设备法兰 C-1650-G-104 -70 1.6 14 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-3/8" 20 55 1550NM 未检查已紧固 +103 40区 V-1610 / 丙烯 设备法兰 V-1610-N11 -45 1.7 42 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A320-L7/ASTM 1-3/4" 36 70 3343NM 未检查已紧固 +104 40区 C-1600 / 丙烯 设备法兰 C-1600-G-101 -46 1.6 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A320-L7/ASTM 1-7/8" 24 75 4620NM 未检查已紧固 +105 40区 404-P1113043 / 低温烃类 管道法兰 404-P1113043-8 -45 4.6 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A320-L7/ASTM 1-1/2" 24 60 2291NM 未检查已紧固 +106 40区 404-P1113043 / 低温烃类 管道法兰 404-P1113043-9 -45 4.6 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) A320-L7/ASTM 1-1/2" 24 60 2291NM 未检查已紧固 +107 40区 V-1411 / 裂解气 设备法兰 V-1411-N2 -90 4.6 20 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-5/8" 24 65 2642NM 未检查已紧固 +108 40区 402-P1114002 / 裂解气 管道法兰 402-P1114002-19 -90 4.6 18 CL600 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-5/8" 20 65 2642NM 未检查已紧固 +109 40区 E-1440 / 乙烯 设备法兰 E-1440-N2 -75 2.3 24 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 24 60 2048NM 未检查已紧固 +110 40区 402-RE1114357 / 乙烯 管道法兰 402-RE1114357-2 -75 2.3 24 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 24 60 2048NM 未检查已紧固 +111 40区 402-RE1114357 / 乙烯 管道法兰 402-RE1114357-18 -75 2.3 24 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 24 60 2048NM 未检查已紧固 +112 40区 402-RE1114357 / 乙烯 管道法兰 402-RE1114357-19 -75 2.3 24 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 24 60 2048NM 未检查已紧固 +113 40区 402-RE1114357 / 乙烯 管道法兰 402-RE1114357-37 -75 2.3 24 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 24 60 2048NM 未检查已紧固 +114 40区 402-RE1114357 / 乙烯 管道法兰 402-RE1114357-38 -75 2.3 24 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 24 60 2048NM 未检查已紧固 +2 40区 E-1415 预脱甲烷塔冷凝器 预脱甲烷塔塔 顶气相 设备法兰 E-1415-N1 -75 3.7 10 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 7/8" 12 36 350NM 未检查已紧固 +3 40区 E-1415 预脱甲烷塔冷凝器 低压尾气 设备法兰 E-1415-N4 -75 2.35 6 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 12 32 216NM 未检查已紧固 +4 40区 E-1415 预脱甲烷塔冷凝器 乙烯冷剂-46℃ 设备法兰 E-1415-N3 -75 2.35 4 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 未检查已紧固 +5 40区 E-1415 预脱甲烷塔冷凝器 V-1415进料 设备法兰 E-1415-N2 -75 3.7 8 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 7/8" 12 36 350NM 未检查已紧固 +6 40区 E-1415 预脱甲烷塔冷凝器 V-1415进料 设备法兰 E-1415-N13 -75 3.7 10 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1" 16 41 556NM 未检查已紧固 +7 40区 V-1415 预脱甲烷塔回流罐 氢气 设备法兰 V-1415-N15 -75 3.7 6 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 16 32 216NM 未检查已紧固 +8 40区 T-1410 预脱甲烷塔塔 氢气 设备法兰 T-1410-N3 -75 3.7 4 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 未检查已紧固 +9 40区 T-1410 预脱甲烷塔塔 E-1410返回预 脱甲烷塔 设备法兰 T-1410-N5 -75 3.75 24 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 24 60 2048NM 未检查已紧固 +10 40区 T-1410 预脱甲烷塔塔 预脱甲烷塔塔 底物料去E-1410 设备法兰 T-1410-N6 -75 3.75 24 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/2" 24 60 2048NM 未检查已紧固 +11 40区 T-1410 预脱甲烷塔塔 预脱甲烷塔塔 底物料 设备法兰 T-1410-N4 -75 3.8 14 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/8" 20 46 818NM 未检查已紧固 +12 40区 T-1410 预脱甲烷塔塔 液烃 设备法兰 T-1410-N12 -75 4.62 6 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 12 32 216NM 未检查已紧固 +13 40区 T-1410 预脱甲烷塔塔 预脱甲烷塔进 料来自1号分离 设备法兰 T-1410-N11 -60 3.7 6 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 12 32 216NM 未检查已紧固 +14 40区 T-1410 预脱甲烷塔塔 预脱甲烷塔顶 部进料 设备法兰 T-1410-N1 -90 3.7 8 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 7/8" 12 36 350NM 未检查已紧固 +15 40区 V-1415 预脱甲烷塔回流罐 氮气 设备法兰 V-1415-N8E -20 1.2 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7 3/4" 4 32 261NM 已检查已紧固 +16 40区 V-1415 预脱甲烷塔回流罐 预脱甲烷塔回 流罐顶部气相 设备法兰 V-1415-N14 -75 3.7 8 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 7/8" 12 36 350NM 已检查已紧固 +17 40区 T-1410 预脱甲烷塔塔 氮气 设备法兰 T-1410-N8D -20 1.2 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7 3/4" 4 32 261NM 已检查已紧固 +18 40区 E-1415 / 乙烯冷剂-46℃ 设备法兰 E-1415-D1 -75 2.35 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +19 40区 冷凝器放空导淋 T-1410冷凝器放空导淋 3 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +20 40区 冷凝器排液导淋 T-1410冷凝器排液导淋 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +21 40区 回流罐顶气相线放空导淋 T-1410回流罐顶气相线放空导淋 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +22 40区 回流罐底导淋 T-1410回流罐底导淋 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +23 40区 PT14013连接口 T-1410PT14013连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +24 40区 PDE14015A连接口 T-1410PDE14015A连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +25 40区 PT14017连接口 T-1410PT14017连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +26 40区 PI14019连接口 T-1410PI14019连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +27 40区 PDE14015B连接口 T-1410PDE14015B连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +28 40区 PG14009连接口 T-1410PG14009连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +29 40区 LT14006上连接口 T-1410LT14006上连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +30 40区 LT14006下连接口 T-1410LT14006下连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +31 40区 LG14006上连接口 T-1410LG14006上连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +32 40区 LG14006下连接口 T-1410LG14006下连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +33 40区 再沸物料出塔线导淋 T-1410再沸物料出塔线导淋 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +34 40区 塔底再沸侧格室排空导淋 T-1410塔底再沸侧格室排空导淋 4 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +35 40区 塔底出料线导淋 T-1410塔底出料线导淋 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +36 40区 塔底出料侧格室排空导淋 T-1410塔底出料侧格室排空导淋 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +37 40区 TI14020连接口 T-1410TI14020连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +38 40区 TIC14018连接口 T-1410TIC14018连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +39 40区 TI14016连接口 T-1410TI14016连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +40 40区 TI14014连接口 T-1410TI14014连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +41 40区 LT14007上连接口 T-1410LT14007上连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +42 40区 LT14007下连接口 T-1410LT14007下连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +43 40区 LG14007上连接口 T-1410LG14007上连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +44 40区 LG14007下连接口 T-1410LG14007下连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +45 40区 LT14005上连接口 T-1410LT14005上连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +46 40区 LT14005下连接口 T-1410LT14005下连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +47 40区 LG14005上连接口 T-1410LG14005上连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +48 40区 LG14005下连接口 T-1410LG14005下连接口 2 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +49 40区 T-1420 脱甲烷塔 脱甲烷塔塔顶 气相 设备法兰 T-1420-N2 -120 3.6 12 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/8" 16 46 818NM 未检查已紧固 +50 40区 E-1425 / 脱甲烷塔塔顶 气相 设备法兰 E-1425-N1 -120 3.6 8 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 7/8" 12 36 350NM 未检查已紧固 +51 40区 E-1425 / "乙烯冷剂-101 +℃" 设备法兰 E-1425-N4 -120 1.15 20 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/8" 20 46 818NM 未检查已紧固 +52 40区 E-1425 乙烯 设备法兰 E-1425-N3 -120 1.15 4 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 6 32 216NM 未检查已紧固 +54 40区 V-1425 V-1425进料 设备法兰 V-1425-N13 -120 3.5 6 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 12 32 216NM 未检查已紧固 +55 40区 V-1425 脱甲烷塔回流 设备法兰 V-1425-N15 -120 3.6 8 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 7/8" 12 36 350NM 未检查已紧固 +56 40区 T-1420 脱甲烷塔 脱甲烷塔回流 设备法兰 T-1420-N3 -120 3.6 8 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 10 32 216NM 未检查已紧固 +57 40区 T-1420 脱甲烷塔 脱甲烷塔塔底 设备法兰 T-1420-N5 -95 3.7 20 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/8" 24 46 818NM 未检查已紧固 +58 40区 T-1420 脱甲烷塔 脱甲烷塔塔底 设备法兰 T-1420-N6 -95 3.7 20 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1-1/8" 24 46 818NM 未检查已紧固 +59 40区 T-1420 脱甲烷塔 脱甲烷塔塔底 设备法兰 T-1420-N4 -95 3.7 10 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 1" 16 41 556NM 未检查已紧固 +60 40区 T-1420 脱甲烷塔 脱甲烷塔塔底 设备法兰 T-1420-N11 -95 3.8 8 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 7/8" 12 36 350NM 未检查已紧固 +61 40区 T-1420 脱甲烷塔 P-1435A放空 设备法兰 T-1420-N12 -95 3.8 8 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 7/8" 12 36 350NM 未检查已紧固 +62 40区 T-1420 脱甲烷塔 脱甲烷塔下进 料 设备法兰 T-1420-N1 -95 4.2 8 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 7/8" 12 36 350NM 未检查已紧固 +63 40区 T-1420 脱甲烷塔 氮气 设备法兰 T-1420-N8D -20 1.2 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7 3/4" 4 32 261NM 已检查已紧固 +64 40区 V-1425 脱甲烷塔回流罐 V-1425罐顶气 相 设备法兰 V-1425-N14 -120 3.6 8 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 7/8" 12 36 350NM 已检查已紧固 +65 40区 T-1420 脱甲烷塔 氮气 设备法兰 T-1420-N8C -20 1.2 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7 3/4" 4 32 261NM 已检查已紧固 +66 40区 E-1425 脱甲烷塔冷凝器 氮气 设备法兰 E-1425-D1 -120 1.15 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 6 32 216NM 已检查已紧固 +67 40区 塔底排空导淋 T-1420塔底排空导淋 3 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +68 40区 冷凝器放空导淋 T-1420冷凝器放空导淋 3 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +69 40区 冷凝器排液导淋 T-1420冷凝器排液导淋 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +70 40区 回流罐顶气相线放空导淋 T-1420回流罐顶气相线放空导淋 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +71 40区 回流罐底导淋 T-1420回流罐底导淋 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +72 40区 塔底出料线导淋 T-1420塔底出料线导淋 4 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-304S.S, OR-304S.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +73 40区 LT14065上连接口 T-1420LT14065上连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +74 40区 LT14065下连接口 T-1420LT14065下连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +75 40区 LG14065上连接口 T-1420LG14065上连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +76 40区 LG14065下连接口 T-1420LG14065下连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +77 40区 LT14075上连接口 T-1420LT14075上连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +78 40区 LT14075下连接口 T-1420LT14075下连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +79 40区 LG14075上连接口 T-1420LG14075上连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +80 40区 LG14075下连接口 T-1420LG14075下连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +81 40区 TI14063连接口 T-1420TI14063连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +82 40区 PT14066连接口 T-1420PT14066连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +83 40区 PDE14065A连接口 T-1420PDE14065A连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +84 40区 TI14065连接口 T-1420TI14065连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +85 40区 TI14066连接口 T-1420TI14066连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +86 40区 PDE14065B连接口 T-1420PDE14065B连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +87 40区 TI14068连接口 T-1420TI14068连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +88 40区 TI14070连接口 T-1420TI14070连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +89 40区 TI14067连接口 T-1420TI14067连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +90 40区 PDE14065C连接口 T-1420PDE14065C连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +91 40区 TI14071连接口 T-1420TI14071连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +92 40区 LT14070上连接口 T-1420LT14070上连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +93 40区 LT14070下连接口 T-1420LT14070下连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +94 40区 LG14070上连接口 T-1420LG14070上连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +95 40区 LG14070下连接口 T-1420LG14070下连接口 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +96 40区 V-1413 尾气精馏塔回流罐 尾气精馏塔塔 顶气相 设备法兰 V-1413-N2 -160 4.62 10 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1-1/8" 16 46 818NM 未检查已紧固 +97 40区 V-1413 尾气精馏塔回流罐 尾气精馏塔塔 顶 设备法兰 V-1413-N1 -175 4.62 10 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1-1/8" 16 46 818NM 未检查已紧固 +98 40区 V-1413 尾气精馏塔回流罐 尾气精馏塔塔 顶 设备法兰 V-1413-N8B -20 1.2 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A193-B7 3/4" 4 32 261NM 未检查已紧固 +99 40区 V-1413 尾气精馏塔回流罐 尾气精馏塔回 流 设备法兰 V-1413-N4 -160 4.62 4 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 7/8" 8 36 350NM 未检查已紧固 +100 40区 T-1413 尾气精馏塔 尾气精馏塔塔 顶 设备法兰 T-1413-N2 -175 4.62 12 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1-1/8" 20 46 818NM 未检查已紧固 +101 40区 T-1413 尾气精馏塔 裂解气 设备法兰 T-1413-N1 -175 4.62 12 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1-1/8" 20 46 818NM 未检查已紧固 +102 40区 T-1413 尾气精馏塔 裂解气 设备法兰 T-1413-N11 -150 4.62 8 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1-1/8" 12 46 818NM 未检查已紧固 +103 40区 T-1413 尾气精馏塔 尾气精馏塔塔 底物料 设备法兰 T-1413-N4 -150 5.02 6 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1" 12 41 556NM 未检查已紧固 +104 40区 塔底出料线导淋 T-1413塔底出料线导淋 3 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 未检查已紧固 +105 40区 塔釜排空导淋 T-1413塔釜排空导淋 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +106 40区 回流罐顶排空导淋 T-1413回流罐顶排空导淋 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +107 40区 LT14043上连接口 T-1413LT14043上连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +108 40区 LT14043下连接口 T-1413LT14043下连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +109 40区 LG14043上连接口 T-1413LG14043上连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +110 40区 LG14043下连接口 T-1413LG14043下连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +111 40区 PDT14045A连接口 T-1413PDT14045A连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +112 40区 PDT14045B连接口 T-1413PDT14045B连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +113 40区 PDT14045C连接口 T-1413PDT14045C连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +114 40区 TI14051连接口 T-1413TI14051连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +115 40区 TI14050连接口 T-1413TI14050连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +116 40区 TI14048连接口 T-1413TI14048连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +117 40区 LT14049上连接口 T-1413LT14049上连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +118 40区 LT14049下连接口 T-1413LT14049下连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +119 40区 LG14049上连接口 T-1413LG14049上连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +120 40区 LG14049下连接口 T-1413LG14049下连接口 2 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +121 40区 T-1430 脱乙烷塔 脱乙烷塔顶气 相 设备法兰 T-1430-N2 -75 1.1 24 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1-1/8" 20 46 818NM 未检查已紧固 +122 40区 T-1430 脱乙烷塔 脱乙烷塔回流 设备法兰 T-1430-N3 -75 1.1 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 未检查已紧固 +123 40区 T-1430 脱乙烷塔 脱乙烷塔回流 设备法兰 T-1430-N1 -75 1.1 8 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 未检查已紧固 +124 40区 T-1430 脱乙烷塔 脱乙烷塔下部 进料 设备法兰 T-1430-N11 -65 1.1 16 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1" 16 41 556NM 未检查已紧固 +125 40区 T-1430 脱乙烷塔 脱乙烷塔再沸 器返回 设备法兰 T-1430-N5 -50 1.3 18 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1-1/8" 16 46 818NM 未检查已紧固 +126 40区 T-1430 脱乙烷塔 脱乙烷塔底物 料 设备法兰 T-1430-N6 -75 1.1 16 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1" 16 41 556NM 未检查已紧固 +127 40区 T-1430 脱乙烷塔 "P-1436A/S最小 +回流" 设备法兰 T-1430-N12 -75 1.1 3 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 未检查已紧固 +128 40区 T-1430 脱乙烷塔 脱乙烷塔底物 料 设备法兰 T-1430-N4 -75 1.1 8 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 未检查已紧固 +129 40区 塔顶放空导淋 T-1430塔顶放空导淋 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +130 40区 塔釜排空导淋 T-1430塔釜排空导淋 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +131 40区 塔底物料线排空导淋 T-1430塔底物料线排空导淋 4 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 已检查已紧固 +132 40区 TI14141连接口 T-1430TI14141连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +133 40区 TI14145连接口 T-1430TI14145连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +134 40区 TIC14149连接口 T-1430TIC14149连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +135 40区 TI14153连接口 T-1430TI14153连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +136 40区 PDE14148A连接口 T-1430PDE14148A连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +137 40区 PDE14148B连接口 T-1430PDE14148B连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +138 40区 PDE14148C连接口 T-1430PDE14148C连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +139 40区 TI14148连接口 T-1430TI14148连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +140 40区 PG14148连接口 T-1430PG14148连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +141 40区 LT14140上连接口 T-1430LT14140上连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +142 40区 LT14140下连接口 T-1430LT14140下连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +143 40区 LG14140上连接口 T-1430LG14140上连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +144 40区 LG14140下连接口 T-1430LG14140下连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +145 40区 T-1440 乙烯塔 乙烯 设备法兰 T-1440-N2 -75 1.1 42 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1" 48 41 556NM 未检查已紧固 +146 40区 T-1440 乙烯塔 乙烯 设备法兰 T-1440-N3 -75 1.6 18 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1-1/8" 16 46 818NM 未检查已紧固 +147 40区 T-1440 乙烯塔 脱甲烷塔塔底 设备法兰 T-1440-N1 -75 1.1 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 7/8" 12 36 350NM 未检查已紧固 +148 40区 T-1440 乙烯塔 脱乙烷塔顶气 相 设备法兰 T-1440-N11 -75 1.1 24 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 1-1/8" 20 46 818NM 未检查已紧固 +149 40区 T-1440 乙烯塔 乙烷 设备法兰 T-1440-N4 -75 1.4 36 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 7/8" 44 36 350NM 未检查已紧固 +150 40区 T-1440 乙烯塔 乙烷 设备法兰 T-1440-N6 -75 1.4 30 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 44 32 216NM 未检查已紧固 +151 40区 T-1440 乙烯塔 乙烷 设备法兰 T-1440-N4 -75 1.1 8 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 未检查已紧固 +152 40区 T-1440 乙烯塔 乙烷 设备法兰 T-1440-N14 -75 1.4 4 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 未检查已紧固 +153 40区 塔顶放空导淋 T-1440塔顶放空导淋 3 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 未检查已紧固 +154 40区 塔底物料线排空导淋 T-1440塔底物料线排空导淋 4 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 8 32 216NM 未检查已紧固 +155 40区 PDE14170A连接口 T-1440PDE14170A连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +156 40区 PDE14170B连接口 T-1440PDE14170B连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +157 40区 PDE14170C连接口 T-1440PDE14170C连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +158 40区 TI14179连接口 T-1440TI14179连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +159 40区 PG14156连接口 T-1440PG14156连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +160 40区 LT14170上连接口 T-1440LT14170上连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +161 40区 LT14170下连接口 T-1440LT14170下连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +162 40区 LG14170上连接口 T-1440LG14170上连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +163 40区 LG14170下连接口 T-1440LG14170下连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +164 40区 TI14172连接口 T-1440TI14172连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +165 40区 TI14174连接口 T-1440TI14174连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +166 40区 TI14176连接口 T-1440TI14176连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +167 40区 TI14178连接口 T-1440TI14178连接口 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) A320-B8M 3/4" 4 32 216NM 已检查已紧固 +1 40区 EA-1405 1#冷箱 设备法兰 402-P1114002-N1 -90 65 4.62MPa 18 CL 600 RF 金属缠绕垫 304/304L ASTM A320-B8M CL.2/ASTM A194-8M 1-5/8" 20 65 2642NM 未检查已紧固 +2 40区 EA-1405 1#冷箱 设备法兰 402-P1114290-N2 -90 65 4.62MPa 18 CL 600 RF 金属缠绕垫 304/304L ASTM A320-B8M CL.2/ASTM A194-8M 1-5/8" 20 65 2642NM 未检查已紧固 +3 40区 EA-1405 1#冷箱 设备法兰 402-P1114291-N3 -90 65 4.62MPa 12 CL 600 RF 金属缠绕垫 304/304L ASTM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +4 40区 EA-1405 1#冷箱 设备法兰 402-P1114003-N4 -160 65 4.62MPa 12 CL 600 RF 金属缠绕垫 304/304L ASTM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +5 40区 EA-1405 1#冷箱 设备法兰 402-P1114155-N5 -90 65 3.7MPa 10 CL 300 RF 金属缠绕垫 304/304L ASTM A320-B8M CL.2/ASTM A194-8M 1" 16 41 556NM 未检查已紧固 +6 40区 EA-1405 1#冷箱 设备法兰 402-P1114158-N6 -90 65 3.7MPa 12 CL 300 RF 金属缠绕垫 304/304L ASTM A320-B8M CL.2/ASTM A194-8M 1-1/8" 16 46 818NM 未检查已紧固 +7 40区 EA-1405 1#冷箱 设备法兰 402-P1114254-N7 -175 65 1.03MPa 6 CL 150 RF 金属缠绕垫 304/304L ASTM A320-B8M CL.2/ASTM A194-8M 3/4" 16 32 216NM 未检查已紧固 +8 40区 EA-1405 1#冷箱 设备法兰 402-P1114271-N8 -90 65 1.03MPa 6 CL 150 RF 金属缠绕垫 304/304L ASTM A320-B8M CL.2/ASTM A194-8M 3/4" 16 32 216NM 未检查已紧固 +9 40区 EA-1405 1#冷箱 设备法兰 402-P1114937-N9 -175 65 1.03MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +10 40区 EA-1405 1#冷箱 设备法兰 402-P1114270-N10 -90 65 1.03MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +11 40区 EA-1405 1#冷箱 设备法兰 402-P1114253-N11 -175 65 4.62MPa 8 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 12 46 818NM 未检查已紧固 +12 40区 EA-1405 1#冷箱 设备法兰 402-P1114272-N12 -90 65 4.62MPa 8 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 12 46 818NM 未检查已紧固 +13 40区 EA-1405 1#冷箱 设备法兰 402-P1114255-N13 -175 65 1.03MPa 20 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 20 46 818NM 未检查已紧固 +14 40区 EA-1405 1#冷箱 设备法兰 402-P1114273-N14 -90 65 1.03MPa 24 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +15 40区 EA-1405 1#冷箱 设备法兰 402-P1110001-N15 -101 62 3MPa 6 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +16 40区 EA-1405 1#冷箱 设备法兰 402-P1114925-N16 -90 65 3MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +17 40区 EA-1405 1#冷箱 设备法兰 402-RE1116034-N17 -75 65 1.1MPa 6 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 16 32 216NM 未检查已紧固 +18 40区 EA-1405 1#冷箱 设备法兰 402-RE1116128-N18 -70 65 1.6MPa 6 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 16 22 65NM 未检查已紧固 +19 40区 EA-1405 1#冷箱 设备法兰 402-RE1116125A-N19 -90 65 1.65MPa 4 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +20 40区 EA-1405 1#冷箱 设备法兰 402-P1114939-N20 -90 65 1.03MPa 14 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 12 41 556NM 未检查已紧固 +21 40区 EA-1405 1#冷箱 设备法兰 402-P1114938-N21 -90 65 1.03MPa 14 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 12 41 556NM 未检查已紧固 +22 40区 EA-1405 1#冷箱 设备法兰 402-RE1114391-N22 -90 65 1.65MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +23 40区 EA-1405 1#冷箱 设备法兰 402-RE1114396-N23 -90 65 1.15MPa 12 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +24 40区 EA-1405 1#冷箱 设备法兰 402-RE1114390-N24 -90 65 1.15MPa 12 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +25 40区 EA-1405 1#冷箱 设备法兰 1100-V1405A-V1 -90 65 1.65MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +26 40区 EA-1405 1#冷箱 设备法兰 1100-V1405B-V2 -90 65 1.15MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +27 40区 EA-1405 1#冷箱 设备法兰 1100-V1405C-V3 -160 65 1.15MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +28 40区 EA-1405 1#冷箱 设备法兰 CBD1114575-D1 -90 65 1.65MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 6 32 216NM 已检查已紧固 +29 40区 EA-1405 1#冷箱 设备法兰 CBD1114633-D2 -90 65 1.15MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +30 40区 EA-1405 1#冷箱 设备法兰 CBD1114576-D3 -160 65 1.15MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +31 40区 EA-1413 2#冷箱 设备法兰 402-P1114004-N1 -175 65 4.62MPa 16 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/2" 20 60 2048NM 未检查已紧固 +32 40区 EA-1413 2#冷箱 设备法兰 402-P1114007-N2 -175 65 4.62MPa 12 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +33 40区 EA-1413 2#冷箱 设备法兰 402-RE1116037-N3 -175 65 1.15MPa 6 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +34 40区 EA-1413 2#冷箱 设备法兰 402-RE1114351-N4 -175 65 1.15MPa 12 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +35 40区 EA-1413 2#冷箱 设备法兰 402-P1114008-N5 -175 65 4.62MPa 12 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +36 40区 EA-1413 2#冷箱 设备法兰 402-P1114009-N6 -175 65 4.62MPa 10 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 16 50 1151NM 未检查已紧固 +37 40区 EA-1413 2#冷箱 设备法兰 402-P1114016-N7 -175 65 4.62MPa 8 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 12 46 818NM 未检查已紧固 +38 40区 EA-1413 2#冷箱 设备法兰 402-P1114253-N8 -175 65 4.62MPa 8 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 12 46 818NM 未检查已紧固 +39 40区 EA-1413 2#冷箱 设备法兰 402-P1114015-N9 -175 65 1.03/HV 3 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 未检查已紧固 +40 40区 EA-1413 2#冷箱 设备法兰 402-P1114254-N10 -175 65 1.03/HV 6 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +41 40区 EA-1413 2#冷箱 设备法兰 402-P1114076-N11 -175 65 1.03MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +42 40区 EA-1413 2#冷箱 设备法兰 402-P1114252-N12 -175 65 1.03MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +43 40区 EA-1413 2#冷箱 设备法兰 402-P1114941-N13 -175 65 1.03MPa 16 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 16 41 556NM 未检查已紧固 +44 40区 EA-1413 2#冷箱 设备法兰 402-P1114255-N14 -175 65 1.03MPa 16 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 16 41 556NM 未检查已紧固 +45 40区 EA-1413 2#冷箱 设备法兰 402-P1114942-N15 -175 65 1.03MPa 4 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +46 40区 EA-1413 2#冷箱 设备法兰 402-P1114937-N16 -175 65 1.03MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +47 40区 EA-1413 2#冷箱 设备法兰 402-P1114940-N17 -175 65 1.60MPa 16 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 16 41 556NM 未检查已紧固 +48 40区 EA-1413 2#冷箱 设备法兰 402-P1114297-N18 -175 65 1.60MPa 16 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 16 41 556NM 未检查已紧固 +49 40区 EA-1413 2#冷箱 设备法兰 402-N1114809-N30 65 150 1.2MPa 0.75 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +50 40区 EA-1413 2#冷箱 设备法兰 402-CBD1114535-D1 -175 65 1.15/HV 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +51 40区 EA-1413 2#冷箱 设备法兰 402-CBD1114573-D1 -175 65 1.03/HV 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +52 40区 EA-1413 2#冷箱 设备法兰 LG-14053A-K1A -175 65 1.15/HV 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +53 40区 EA-1413 2#冷箱 设备法兰 LG-14053A-K1B -175 65 1.15/HV 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +54 40区 EA-1413 2#冷箱 设备法兰 LT-14053A-K2A -175 65 1.15/HV 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +55 40区 EA-1413 2#冷箱 设备法兰 LT-14053A-K2B -175 65 1.15/HV 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +56 40区 EA-1401 3#冷箱 设备法兰 402-P1113043-N1 -65 65 4.62MPa 24 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-7/8" 24 75 4130NM 未检查已紧固 +57 40区 EA-1401 3#冷箱 设备法兰 402-P1114946-N2 -65 65 4.62MPa 24 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-7/8" 24 75 4130NM 未检查已紧固 +58 40区 EA-1401 3#冷箱 设备法兰 402-P1114952-N3 -65 65 1.1MPa 12 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +59 40区 EA-1401 3#冷箱 设备法兰 402-P1114929-N14 -65 65 1.1MPa 16 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 16 41 556NM 未检查已紧固 +60 40区 EA-1401 3#冷箱 设备法兰 402-N1114832-N30 65 150 1.2MPa 0.75 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +61 40区 EA-1401 3#冷箱 设备法兰 1100-V1491-V1 65 1.2MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +62 40区 EA-1401 3#冷箱 设备法兰 CBD1114655-D1 -65 65 1.1MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +63 40区 EA-1418 4#冷箱 设备法兰 402-P1114203-N1 -95 65 3.8MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +64 40区 EA-1418 4#冷箱 设备法兰 402-P1114113-N2 -95 65 3.8MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +65 40区 EA-1418 4#冷箱 设备法兰 402-P1114166-N3 -95 65 4.62MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 12 41 556NM 未检查已紧固 +66 40区 EA-1418 4#冷箱 设备法兰 402-P1114208-N4 -95 65 4.62MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +67 40区 EA-1418 4#冷箱 设备法兰 402-RE1116035-N5 -95 65 1.15MPa 4 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +68 40区 EA-1418 4#冷箱 设备法兰 402-RE1114354-N6 -95 65 1.15MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +69 40区 EA-1418 4#冷箱 设备法兰 402-RE1116129-N7 -95 65 1.15MPa 3 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 未检查已紧固 +70 40区 EA-1418 4#冷箱 设备法兰 402-RE1114353-N8 -95 65 1.15MPa 3 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +71 40区 EA-1418 4#冷箱 设备法兰 402-N1114833-N30 65 1.2MPa 0.75 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +72 40区 EA-1418 4#冷箱 设备法兰 V1418A-V1 -95 65 1.15MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +73 40区 EA-1418 4#冷箱 设备法兰 V1418B-V2 -95 65 1.15MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +74 40区 EA-1418 4#冷箱 设备法兰 402-CBD1114510-D2 -95 65 1.15MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 8 22 65NM 已检查已紧固 +75 40区 EA-1418 4#冷箱 设备法兰 402-CBD1114511-D1 -95 65 1.15MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 8 22 65NM 已检查已紧固 +76 40区 EA-1418 4#冷箱 设备法兰 V1418A-K1A -95 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +77 40区 EA-1418 4#冷箱 设备法兰 V1418A-K1B -95 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +78 40区 EA-1418 4#冷箱 设备法兰 V1418A-K2A -95 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +79 40区 EA-1418 4#冷箱 设备法兰 V1418A-K2B -95 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +80 40区 EA-1418 4#冷箱 设备法兰 V1418B-K3A -95 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +81 40区 EA-1418 4#冷箱 设备法兰 V1418B-K3B -95 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +82 40区 EA-1418 4#冷箱 设备法兰 V1418B-K4A -95 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +83 40区 EA-1418 4#冷箱 设备法兰 V1418B-K4B -95 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +84 40区 EA-1652 5#冷箱 设备法兰 403-RP1116591-N1 -65 65 1.6MPa 6 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +85 40区 EA-1652 5#冷箱 设备法兰 403-RP1116107-N2 -65 65 1.6MPa 14 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 12 41 556NM 未检查已紧固 +86 40区 EA-1652 5#冷箱 设备法兰 403-P1116201-N3 -65 65 3.15MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +87 40区 EA-1652 5#冷箱 设备法兰 403-RE1116086-N4 -65 65 3.15MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +88 40区 EA-1652 5#冷箱 设备法兰 403-RE1116137-N5 -65 65 3.85MPa 10 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 16 41 556NM 未检查已紧固 +89 40区 EA-1652 5#冷箱 设备法兰 403-RE1116110-N6 -65 65 3.85MPa 10 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 16 41 556NM 未检查已紧固 +90 40区 EA-1652 5#冷箱 设备法兰 5#冷箱N30 65 1.2MPa 0.75 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M M14 4 22 89NM 已检查已紧固 +91 40区 EA-1652 5#冷箱 设备法兰 V1652-V1 -65 65 1.60MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M M14 4 22 89NM 已检查已紧固 +92 40区 EA-1652 5#冷箱 设备法兰 403-CBD1116536-D1 -65 65 1.60MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +93 40区 EA-1652 5#冷箱 设备法兰 LG16065-K1A -65 65 1.60MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M M16 8 24 141NM 已检查已紧固 +94 40区 EA-1652 5#冷箱 设备法兰 LG16065-K1B -65 65 1.60MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M M16 8 24 141NM 已检查已紧固 +95 40区 EA-1652 5#冷箱 设备法兰 LG16065-K2A -65 65 1.60MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M M16 8 24 141NM 已检查已紧固 +96 40区 EA-1652 5#冷箱 设备法兰 LG16065-K2B -65 65 1.60MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M M16 8 24 141NM 已检查已紧固 +97 40区 EA-1658 6#冷箱 设备法兰 403-P1116596-N1 -115 65 2.3MPa 10 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 16 41 556NM 未检查已紧固 +98 40区 EA-1658 6#冷箱 设备法兰 403-P1116597-N2 -115 65 2.3MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +99 40区 EA-1658 6#冷箱 设备法兰 403-RE1116141-N3 -115 65 1.65MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +100 40区 EA-1658 6#冷箱 设备法兰 403-RE1116612-N4 -115 65 1.65MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +101 40区 EA-1658 6#冷箱 设备法兰 403-RE1116146-N5 -115 65 1.15MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +102 40区 EA-1658 6#冷箱 设备法兰 403-RE1116075-N6 -115 65 1.15MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +103 40区 EA-1658 6#冷箱 设备法兰 403-RE1116072-N7 -115 65 1.15MPa 12 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +104 40区 EA-1658 6#冷箱 设备法兰 403-RE1116144-N8 -115 65 1.15MPa 6 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +105 40区 EA-1658 6#冷箱 设备法兰 403-RE1116051-N9 -115 65 1.15MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +106 40区 EA-1658 6#冷箱 设备法兰 403-RE1116076-N10 -115 65 1.15MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +107 40区 EA-1658 6#冷箱 设备法兰 403-RE1116144-N11 -115 65 1.15MPa 4 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +108 40区 EA-1658 6#冷箱 设备法兰 403-RE1116051-N12 -115 65 1.15MPa 4 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +109 40区 EA-1658 6#冷箱 设备法兰 403-RE1116076-N13 -115 65 1.15MPa 3 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 未检查已紧固 +111 40区 EA-1658 6#冷箱 设备法兰 6#冷箱1100-V1658A -115 65 1.65MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +112 40区 EA-1658 6#冷箱 设备法兰 6#冷箱1100-V1658B -115 65 1.15MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +113 40区 EA-1658 6#冷箱 设备法兰 6#冷箱1100-V1658C -115 65 1.15MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +114 40区 EA-1658 6#冷箱 设备法兰 6#冷箱1100-V1658D -115 65 1.15MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +115 40区 EA-1658 6#冷箱 设备法兰 403-CBD1116575-D1 -115 65 1.65MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +116 40区 EA-1658 6#冷箱 设备法兰 403-CBD1116566-D2 -115 65 1.15MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +117 40区 EA-1658 6#冷箱 设备法兰 403-CBD1116562-D3 -115 65 1.15MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +118 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LT1658A液位计变送上口 -115 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +119 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LT1658A液位计变送下口 -115 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +120 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LG1658A液位计上口 -115 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +121 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LG1658A液位计下口 -115 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +122 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LT1658B液位计变送上口 -115 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +123 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LT1658B液位计变送下口 -115 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +124 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LG1658B液位计上口 -115 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +125 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LG1658B液位计下口 -115 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +126 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LT1658C液位计变送上口 -115 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +127 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LT1658C液位计变送下口 -115 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +128 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LG1658C液位计上口 -115 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +129 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LG1658C液位计下口 -115 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +130 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LT1658D液位计变送上口 -115 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +131 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LT1658D液位计变送下口 -115 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +132 40区 EA-1658 6#冷箱 设备法兰 6#冷箱LG1658D液位计上口 -115 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +133 40区 EA-1361 7#冷箱 设备法兰 6#冷箱LG1658D液位计下口 -115 65 1.15MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +134 40区 EA-1361 7#冷箱 设备法兰 402-P1113040-N1 -90 65 4.62MPa 36 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 2-1/4" 28 90 7328NM 未检查已紧固 +135 40区 EA-1361 7#冷箱 设备法兰 402-P1114005-N2 -90 65 4.62MPa 36 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 2-1/4" 28 90 7328NM 未检查已紧固 +136 40区 EA-1361 7#冷箱 设备法兰 402-P1116094-N3 -90 65 3MPa 20 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 24 50 1151NM 未检查已紧固 +137 40区 EA-1361 7#冷箱 设备法兰 402-P1114310-N4 -90 65 3MPa 20 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 24 50 1151NM 未检查已紧固 +138 40区 EA-1361 7#冷箱 设备法兰 402-P1114328-N5 -90 65 1.03MPa 24 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +139 40区 EA-1361 7#冷箱 设备法兰 402-P1114281-N6 -90 65 1.03MPa 24 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +140 40区 EA-1361 7#冷箱 设备法兰 402-P1114272-N7 -90 65 4.62MPa 8 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 12 46 818NM 未检查已紧固 +141 40区 EA-1361 7#冷箱 设备法兰 402-P1114280-N8 -90 65 4.62MPa 8 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 12 46 818NM 未检查已紧固 +142 40区 EA-1361 7#冷箱 设备法兰 402-P1114271-N9 -90 65 1.03MPa 6 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +143 40区 EA-1361 7#冷箱 设备法兰 402-P1114276-N10 -90 65 1.03MPa 6 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +144 40区 EA-1361 7#冷箱 设备法兰 402-P1114270-N11 -90 65 1.03MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +145 40区 EA-1361 7#冷箱 设备法兰 402-P1114275-N12 -90 65 1.03MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +146 40区 EA-1361 7#冷箱 设备法兰 402-P1114939-N13 -90 65 1.03MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +147 40区 EA-1361 7#冷箱 设备法兰 402-P1114944-N14 -90 65 1.03MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +148 40区 EA-1361 7#冷箱 设备法兰 402-P1116009-N15 -90 65 2.25MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +149 40区 EA-1361 7#冷箱 设备法兰 402-RE1114395-N16 -90 65 2.25MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +150 40区 EA-1361 7#冷箱 设备法兰 402-RP1116605-N17 -90 65 1.60MPa 4 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +151 40区 EA-1361 7#冷箱 设备法兰 402-RP1114811-N18 -90 65 1.60MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +152 40区 EA-1361 7#冷箱 设备法兰 402-RP1116598-N19 -90 65 1.60MPa 4 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +153 40区 EA-1361 7#冷箱 设备法兰 402-RP1114604-N20 -90 65 1.60MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +154 40区 EA-1361 7#冷箱 设备法兰 402-RP1116537-N21 -90 65 1.65MPa 6 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +155 40区 EA-1361 7#冷箱 设备法兰 402-RP1114806-N22 -90 65 1.65MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +156 40区 EA-1361 7#冷箱 设备法兰 402-RP1116534-N23 -90 65 1.65MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +157 40区 EA-1361 7#冷箱 设备法兰 402-RP1114810-N24 -90 65 1.65MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +158 40区 EA-1361 7#冷箱 设备法兰 7#冷箱氮气入口-N29 65 1.2MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +159 40区 EA-1361 7#冷箱 设备法兰 7#冷箱氮气入口-N30 65 1.2MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +160 40区 EA-1361 7#冷箱 设备法兰 1100-V1361A气相放空口-V1 -90 65 1.60MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +161 40区 EA-1361 7#冷箱 设备法兰 1100-V1361B气相放空口-V2 -90 65 1.60MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +162 40区 EA-1361 7#冷箱 设备法兰 1100-V1361C气相放空口-V3 -90 65 1.60MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +163 40区 EA-1361 7#冷箱 设备法兰 1100-V1361D气相放空口-V4 -90 65 1.60MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +164 40区 EA-1361 7#冷箱 设备法兰 402-RP1114614-D1 -90 65 1.60MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +165 40区 EA-1361 7#冷箱 设备法兰 402-RP1114586-D2 -90 65 1.60MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +166 40区 EA-1361 7#冷箱 设备法兰 402--RP1114585-D3 -90 65 1.60MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +167 40区 EA-1361 7#冷箱 设备法兰 402-RP1114584-D4 -90 65 1.60MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +168 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LT-14121A-K1A -90 65 1.60MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +169 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LT-14121A-K1B -90 65 1.60MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +170 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LG-14121A-K2A -90 65 1.60MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +171 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LG-14121A-K2B -90 65 1.60MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +172 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LT-14121B-K3A -90 65 1.60MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +173 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LT-14121B-K3B -90 65 1.60MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +174 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LG-14121B-K4A -90 65 1.60MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +175 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LG-14121B-K4B -90 65 1.60MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +176 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LT-14121C-K5A -90 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +177 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LT-14121C-K5B -90 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +178 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LG-14121C-K6A -90 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +179 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LG-14121C-K6B -90 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +180 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LT-14121D-K7A -90 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +181 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LT-14121D-K7B -90 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +182 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LG-14121D-K8A -90 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +183 40区 EA-1361 7#冷箱 设备法兰 7#冷箱LG-14121D-K8B -90 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +184 40区 EA-11426&27 8#冷箱 设备法兰 402-P1114010-N1 -175 65 4.62MPa 10 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 16 50 1151NM 未检查已紧固 +185 40区 EA-11426&27 8#冷箱 设备法兰 402-P1114073--N2 -175 65 4.62MPa 3 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +186 40区 EA-11426&27 8#冷箱 设备法兰 402-P1114071-N3 -175 65 4.62MPa 3 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +187 40区 EA-11426&27 8#冷箱 设备法兰 402-P1114016-N4 -175 65 4.62MPa 8 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 12 46 818NM 未检查已紧固 +188 40区 EA-11426&27 8#冷箱 设备法兰 402-P1114061-N5 -175 65 4.62MPa 4 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 8 36 350NM 未检查已紧固 +189 40区 EA-11426&27 8#冷箱 设备法兰 402-P1114062-N6 -175 65 1.03MPa 4 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +190 40区 EA-11426&27 8#冷箱 设备法兰 402-P1114076-N7 -175 65 1.03MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +191 40区 EA-11426&27 8#冷箱 设备法兰 402-P1114072-N8 -175 65 1.03MPa 10 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +193 40区 EA-11426&27 8#冷箱 设备法兰 V1493-V1 -175 65 1.03MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +194 40区 EA-11426&27 8#冷箱 设备法兰 V1492-V2 -175 65 1.03MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +195 40区 EA-11426&27 8#冷箱 设备法兰 V1492-V3 -175 65 4.62MPa 2 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +196 40区 EA-11426&27 8#冷箱 设备法兰 V1422-V4 -175 65 4.62MPa 2 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 已检查已紧固 +197 40区 EA-11426&27 8#冷箱 设备法兰 402-CBD1114656-D1 -175 65 1.03MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +198 40区 EA-11426&27 8#冷箱 设备法兰 402-CBD1114657-D2 -175 65 1.03MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +199 40区 EA-11426&27 8#冷箱 设备法兰 402-CBD1114523-D3 -175 65 4.62MPa 1.5 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +200 40区 EA-11426&27 8#冷箱 设备法兰 8#冷箱D4(V1422液相排净口)-D4 -175 65 4.62MPa 1.5 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +201 40区 EA-11426&27 8#冷箱 设备法兰 8#冷箱LT-14081-K1A -175 65 4.62MPa 2 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +202 40区 EA-11426&27 8#冷箱 设备法兰 8#冷箱LT-14081-K1B -175 65 4.62MPa 2 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +203 40区 EA-11426&27 8#冷箱 设备法兰 8#冷箱LG-14081-K2A -175 65 4.62MPa 2 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +204 40区 EA-11426&27 8#冷箱 设备法兰 8#冷箱LG-14081-K2B -175 65 4.62MPa 2 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +205 40区 EA-11426&27 8#冷箱 设备法兰 8#冷箱LT-14081-K3A -175 65 4.62MPa 2 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +206 40区 EA-11426&27 8#冷箱 设备法兰 8#冷箱LT-14081-K3B -175 65 4.62MPa 2 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +207 40区 EA-11426&27 8#冷箱 设备法兰 8#冷箱LG-14081-K4A -175 65 4.62MPa 2 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +208 40区 EA-11426&27 8#冷箱 设备法兰 8#冷箱LG-14081-K4B -175 65 4.62MPa 2 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +209 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 402-P1114946-N1 -65 65 4.62MPa 20 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-5/8" 24 65 2642NM 未检查已紧固 +210 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 402-P1114001-N2 -65 65 4.62MPa 20 CL 600 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-5/8" 24 65 2642NM 未检查已紧固 +211 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 402-RP1116544-N3 -65 65 HV/1.65MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +212 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 402-RP1114602-N4A -65 65 HV/1.65MPa 12 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +213 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 402-RP1114602-N4B -65 65 HV/1.65MPa 12 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +214 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 E-1402LT14002-K1A -65 65 HV/1.65MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +215 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 E-1402LT14002-K1B -65 65 HV/1.65MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +216 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 E-1402LG14002-K2A -65 65 HV/1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +217 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 E-1402LG14002-K2B -65 65 HV/1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +218 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 E-1402LT14001-K3A -65 65 HV/1.65MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +219 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 E-1402LT14001-K3B -65 65 HV/1.65MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +220 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 E-1402M1 -65 65 HV/1.65MPa 24 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +221 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 E-1402N8 -65 65 HV/1.65MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +222 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 E-1402V1 -65 65 HV/1.65MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 未检查已紧固 +223 40区 预脱甲烷塔2#进料冷却器E-1402 E-1402 设备法兰 402-CBD1114301-D1 -65 65 HV/1.65MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 未检查已紧固 +224 40区 脱甲烷塔底冷却器E-1404 E-1404 设备法兰 402-P1114948-N1 -95 65 3.7MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +225 40区 脱甲烷塔底冷却器E-1404 E-1404 设备法兰 402-RP11116549-N2 -65 65 HV/1.7MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 12 46 818NM 未检查已紧固 +226 40区 脱甲烷塔底冷却器E-1404 E-1404 设备法兰 402-P1114169-N3 -95 65 3.7MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 12 46 818NM 未检查已紧固 +227 40区 脱甲烷塔底冷却器E-1404 E-1404 设备法兰 402-RP11114308-N4 -65 65 HV/1.65MPa 16 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 16 41 556NM 未检查已紧固 +228 40区 脱甲烷塔底冷却器E-1404 E-1404 设备法兰 402-P1114957-N5 -95 65 3.7MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +229 40区 脱甲烷塔底冷却器E-1404 E-1404 设备法兰 402-P1114171-N6 -95 65 3.7MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +230 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 402-P1114202-N1 -75 65 3.7MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +231 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 402-P1114225-N2 -75 65 3.7MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +232 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 402-RE1116124-N3 -75 65 2.35MPa 4 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +233 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 402-RE1114281-N4 -75 65 2.35MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +234 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 E-1415N5 -75 65 2.35MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +235 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 LT-14005-K32A -75 65 2.35MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +236 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 LT-14005-K32B -75 65 2.35MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +237 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 LG-14005-K34A -75 65 2.35MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +238 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 LG-14005-K34B -75 65 2.35MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +239 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 E-1415M1 -75 65 2.35MPa 24 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +240 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 E-1415V1 -75 65 2.35MPa 3 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +241 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 E-1415V2 -75 65 2.35MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 已检查已紧固 +242 40区 预脱甲烷塔冷凝器E-1415 E-1415 设备法兰 402-CBD1114565-D1 -75 65 2.35MPa 1 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +243 40区 中压乙烯产品2#加热器E-1696 E-1696 设备法兰 402-P1116623-N1 -50 65 4.5MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +244 40区 中压乙烯产品2#加热器E-1696 E-1696 设备法兰 402-P1116622-N2 -50 65 3MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +245 40区 中压乙烯产品2#加热器E-1696 E-1696 设备法兰 402-P1114212-N3 -50 65 3.75MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 10 32 216NM 未检查已紧固 +246 40区 中压乙烯产品2#加热器E-1696 E-1696 设备法兰 402-RP1116503-N4 -50 65 2.25MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +247 40区 中压乙烯产品2#加热器E-1696 E-1696 设备法兰 402-P1116600-N5 -50 65 4.5MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +248 40区 中压乙烯产品2#加热器E-1696 E-1696 设备法兰 402-P1116598-N6 -50 65 3.75MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +249 40区 中压乙烯产品2#加热器E-1696 E-1696 设备法兰 402-P1116606-N7 -50 65 3MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +250 40区 中压乙烯产品2#加热器E-1696 E-1696 设备法兰 402-RP1116597-N8 -50 65 2.25MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +251 40区 中压乙烯产品2#加热器E-1695 E-1695 设备法兰 402-P1116603-N1 -45 65 3MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +252 40区 中压乙烯产品2#加热器E-1695 E-1695 设备法兰 402-P1116623-N2 -45 65 4.5MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +253 40区 中压乙烯产品2#加热器E-1695 E-1695 设备法兰 402-RP1116596-N3 -45 65 1.60MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +254 40区 中压乙烯产品2#加热器E-1695 E-1695 设备法兰 402-P1116622-N4 -45 65 3MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +255 40区 中压乙烯产品2#加热器E-1695 E-1695 设备法兰 402-RP1116595-N5 -45 65 1.60MPa 3 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 4 32 216NM 未检查已紧固 +256 40区 乙烷进料气化器E-1651 E-1651 设备法兰 403-RE1116067-N1 -90 65 2.25MPa 20 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 24 50 1151NM 未检查已紧固 +257 40区 乙烷进料气化器E-1651 E-1651 设备法兰 403-RE1116068-N2 -90 65 2.25MPa 20 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +258 40区 乙烷进料气化器E-1651 E-1651 设备法兰 403-P1114306-N3 -90 65 3.1MPa 10 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 16 41 556NM 未检查已紧固 +259 40区 乙烷进料气化器E-1651 E-1651 设备法兰 403-P1116094-N4A -90 65 3.1MPa 16 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +260 40区 乙烷进料气化器E-1651 E-1651 设备法兰 403-P1116094-N4B -90 65 3.1MPa 16 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +261 40区 乙烷进料气化器E-1651 E-1651 设备法兰 E-1651LT16062-K1A -90 65 3.1MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +262 40区 乙烷进料气化器E-1651 E-1651 设备法兰 E-1651LT16062-K1B -90 65 3.1MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +263 40区 乙烷进料气化器E-1651 E-1651 设备法兰 E-1651LT16062-K2A -90 65 3.1MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +264 40区 乙烷进料气化器E-1651 E-1651 设备法兰 E-1651LT16062-K2B -90 65 3.1MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +265 40区 乙烷进料气化器E-1651 E-1651 设备法兰 E-1651LT16068-K3A -90 65 3.1MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +266 40区 乙烷进料气化器E-1651 E-1651 设备法兰 E-1651LT16068-K3B -90 65 3.1MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +267 40区 中压乙烯产品2#加热器E-1695 E-1695 设备法兰 E-1695M1 -90 65 3.1MPa 24 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +268 40区 中压乙烯产品2#加热器E-1695 E-1695 设备法兰 E-1695N4 -90 65 3.1MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +269 40区 中压乙烯产品2#加热器E-1695 E-1695 设备法兰 E-1695V1 -90 65 3.1MPa 3 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +270 40区 中压乙烯产品2#加热器E-1695 E-1695 设备法兰 403-CBD1116095-D1 -90 65 3.1MPa 3 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +271 40区 乙烯冷凝器工程图E-1649 E-1649 设备法兰 403-RE1116145-N1 -65 65 2.25MPa 12 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 16 46 818NM 未检查已紧固 +272 40区 乙烯冷凝器工程图E-1649 E-1649 设备法兰 403-RP1116487A-N2 -65 65 1.65MPa 36 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 44 36 350NM 未检查已紧固 +273 40区 乙烯冷凝器工程图E-1649 E-1649 设备法兰 403-P1116592-N3 -65 65 4.5MPa 4 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +274 40区 乙烯冷凝器工程图E-1649 E-1649 设备法兰 403-RE1116148A-N4 -65 65 3.85MPa 12 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 16 46 818NM 未检查已紧固 +275 40区 乙烯冷凝器工程图E-1649 E-1649 设备法兰 403-P1116602-N5 -65 65 3MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +276 40区 乙烯冷凝器工程图E-1649 E-1649 设备法兰 E-1649N6 -65 65 2.25MPa 16 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +277 40区 乙烯冷凝器工程图E-1649 E-1649 设备法兰 403-P1116604-N7 -65 65 4.5MPa 4 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +278 40区 乙烯冷凝器工程图E-1649 E-1649 设备法兰 E-1649N8 -65 65 3MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +279 40区 乙烯冷凝器工程图E-1649 E-1649 设备法兰 403-RP1116593-N9 -65 65 1.65MPa 16 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 16 46 818NM 未检查已紧固 +280 40区 乙烯冷凝器工程图E-1649 E-1649 设备法兰 403-RE1116149-N10 -65 65 3.85MPa 12 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 16 50 1151NM 未检查已紧固 +281 40区 2#乙烯冷却器E-1648 E-1648 设备法兰 E-1648RP1116485-N1 -65 65 1.65MPa 18 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 16 50 1151NM 未检查已紧固 +282 40区 2#乙烯冷却器E-1648 E-1648 设备法兰 E-1648RP1116485-N2 -65 65 3MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +283 40区 2#乙烯冷却器E-1648 E-1648 设备法兰 E-1648P1116593-N3 -65 65 4.5MPa 6 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 12 46 818NM 未检查已紧固 +284 40区 2#乙烯冷却器E-1648 E-1648 设备法兰 E-1648P1116593-N4 -65 65 2.25MPa 42 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-7/8" 36 75 4130NM 未检查已紧固 +285 40区 2#乙烯冷却器E-1648 E-1648 设备法兰 E-1648P1116603-N5 -65 65 3MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +286 40区 2#乙烯冷却器E-1648 E-1648 设备法兰 E-1648P1116604-N6 -65 65 1.65MPa 6 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +287 40区 2#乙烯冷却器E-1648 E-1648 设备法兰 E-1648RP1116542-N7 -65 65 1.65MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +288 40区 2#乙烯冷却器E-1648 E-1648 设备法兰 E-1648RE1116604-N8 -65 65 2.25MPa 42 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-7/8" 36 75 4130NM 未检查已紧固 +289 40区 乙烯精馏塔底再沸器E-1440 E-1440 设备法兰 E-1440RE1116005-N1 -95 65 2.25MPa 30 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 36 50 1151NM 未检查已紧固 +290 40区 乙烯精馏塔底再沸器E-1440 E-1440 设备法兰 E-1440RE1114357-N2 -95 65 2.25MPa 24 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/2" 24 60 2048NM 未检查已紧固 +291 40区 乙烯精馏塔底再沸器E-1440 E-1440 设备法兰 E-1440P11114182-N3 -95 65 1.4MPa 30 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 44 32 216NM 未检查已紧固 +292 40区 乙烯精馏塔底再沸器E-1440 E-1440 设备法兰 P1114183-N4 -95 65 1.4MPa 36 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 44 36 350NM 未检查已紧固 +293 40区 脱乙烷塔冷凝器E-1435 E-1435 设备法兰 402-P1114209A-N1 -75 65 1.1MPa 24 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +294 40区 脱乙烷塔冷凝器E-1435 E-1435 设备法兰 402-P1114210-N2 -75 65 1.1MPa 24 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +295 40区 脱乙烷塔冷凝器E-1435 E-1435 设备法兰 402-RE1116127-N3 -75 65 1.65MPa 8 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +296 40区 脱乙烷塔冷凝器E-1435 E-1435 设备法兰 402-RE1114398-N4 -75 65 1.65MPa 14 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 24 41 556NM 未检查已紧固 +297 40区 脱乙烷塔冷凝器E-1435 E-1435 设备法兰 E-1435LT14155-K1A -75 65 1.65MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +298 40区 脱乙烷塔冷凝器E-1435 E-1435 设备法兰 E-1435LT14155-K1B -75 65 1.65MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +299 40区 脱乙烷塔冷凝器E-1435 E-1435 设备法兰 E-1435LG14155-K2A -75 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +300 40区 脱乙烷塔冷凝器E-1435 E-1435 设备法兰 E-1435LG14155-K2B -75 65 1.65MPa 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +301 40区 脱乙烷塔冷凝器E-1435 E-1435 设备法兰 E-1435M1 -75 65 1.65MPa 24 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 20 50 1151NM 未检查已紧固 +302 40区 脱乙烷塔冷凝器E-1435 E-1435 设备法兰 E-1435N8 -75 65 1.65MPa 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +303 40区 脱乙烷塔冷凝器E-1435 E-1435 设备法兰 E-1435V1 -75 65 1.65MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 未检查已紧固 +304 40区 脱乙烷塔冷凝器E-1435 E-1435 设备法兰 E-1435D1 -75 65 1.65MPa 1.5 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1/2" 4 22 65NM 未检查已紧固 +305 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 402-P1114117-N1 -120 65 3.6MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +306 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 402-P1114049-N2 -120 65 3.6MPa 8 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 +307 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 402-RE1116074-N3 -120 65 1.15/HV 4 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 12 32 216NM 未检查已紧固 +308 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 RE1114356-N4 -120 65 1.15/HV 20 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 20 46 818NM 未检查已紧固 +309 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 E-1425N5 -120 65 1.15/HV 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +310 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 E-1425LT-14065-K32A -120 65 1.15/HV 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +311 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 E-1425LT-14065-K32B -120 65 1.15/HV 2 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +312 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 E-1425LG-14065-K34A -120 65 1.15/HV 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +313 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 E-1425LG-14065-K34B -120 65 1.15/HV 2 CL 300 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 已检查已紧固 +314 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 E-1425M1 -120 65 1.15/HV 20 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 20 46 818NM 未检查已紧固 +315 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 E-1425V1 -120 65 1.15/HV 3 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +316 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 E-1425V2 -120 65 1.15/HV 3 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +317 40区 脱甲烷塔冷凝器E-1425 E-1425 设备法兰 E-1425D1 -120 65 1.15/HV 3 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 +318 40区 脱甲烷塔再沸器E-1420 E-1420 设备法兰 402-RP1116524-N1 -95 65 1.60MPa 16 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1" 16 41 556NM 未检查已紧固 +319 40区 脱甲烷塔再沸器E-1420 E-1420 设备法兰 402-P1114174-N2 -95 65 3.7MPa 20 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 24 50 1151NM 未检查已紧固 +320 40区 脱甲烷塔再沸器E-1420 E-1420 设备法兰 402-RP11114307-N3 -95 65 1.6MPa 6 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/8" 12 46 818NM 未检查已紧固 +321 40区 脱甲烷塔再沸器E-1420 E-1420 设备法兰 402-P1114173-N4 -95 65 3.7MPa 20 CL 150 RF 金属缠绕垫 304/304L STM A320-B8M CL.2/ASTM A194-8M 1-1/4" 16 50 1151NM 未检查已紧固 +1 40区 1100-R-1480 甲烷化反应器 甲烷 设备法兰 1100-R-1480-M25A 320 4.62 20 CL600 RF 缠绕式垫片 D3323 35CrMoA/30CrMo M42 24 65 3150NM 已检查已紧固 +2 40区 1100-R-1480 甲烷化反应器 甲烷 设备法兰 1100-R-1480-M25B 320 4.62 20 CL600 RF 缠绕式垫片 D3323 35CrMoA/30CrMo M42 24 65 3150NM 已检查已紧固 +3 40区 1100-D-1481A 氢气干燥器 氢气 设备法兰 1100-D-1481A-M25B -11/65 4.62 20 CL300 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M33 24 55 1550NM 已检查已紧固 +4 40区 1100-D-1481A 氢气干燥器 氢气 设备法兰 1100-D-1481A-M25C -11/65 4.62 20 CL300 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M33 24 55 1550NM 已检查已紧固 +5 40区 1100-D-1481S 氢气干燥器 氢气 设备法兰 1100-D-1481S-M25B -11/65 4.62 20 CL300 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M33 24 55 1550NM 已检查已紧固 +6 40区 1100-D-1481S 氢气干燥器 氢气 设备法兰 1100-D-1481S-M25C -11/65 4.62 20 CL300 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M33 24 55 1550NM 已检查已紧固 +7 40区 1100-E-1402 预脱甲烷塔进料冷却器NO.2 甲烷 设备法兰 1100-E-1402-M1 -65/65 4.62 24 CL300 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M39 24 65 2450NM 未检查已紧固 +8 40区 1100-E-1415 预脱甲烷塔冷凝器 甲烷 设备法兰 1100-E-1415-M1 -75/65 3.7 24 CL300 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M39 24 65 2450NM 未检查已紧固 +9 40区 1100-E-1425 脱甲烷塔冷凝器 甲烷 设备法兰 1100-E-1425-M1 -120/65 3.6 20 CL150 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M30 20 50 1200NM 未检查已紧固 +10 40区 1100-E-1435 脱乙烷塔冷凝器 乙烷 设备法兰 1100-E-1435-M1 -75/65 1.1 24 CL150 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M33 20 55 1550NM 未检查已紧固 +11 40区 1100-E-1651 乙烷进料气化器 乙烷 设备法兰 1100-E-1651-M1 -90/65 3.1 24 CL300 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 +12 40区 1100-V-1365 高压脱丙烷塔回流罐 裂解气 设备法兰 1100-V-1365-M25 -45/65 4.62 24 CL600 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M48 24 75 4500NM 未检查已紧固 +14 40区 1100-V-1411 预脱甲烷塔1#进料分离罐 甲烷 设备法兰 1100-V-1411-M25 -60/65 4.62 24 CL600 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M48 24 75 4500NM 已检查已紧固 +15 40区 1100-V-1412 预脱甲烷塔2#进料分离罐 甲烷 设备法兰 1100-V-1412-M25 -75/65 4.62 24 CL600 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M48 24 75 4500NM 已检查已紧固 +16 40区 1100-V-1414 脱甲烷塔进料分离罐 甲烷 设备法兰 1100-V-1414-M25 -95/65 4.62 20 CL600 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M42 24 65 3150NM 已检查已紧固 +17 40区 1100-V-1420 膨胀机吸入罐 甲烷 设备法兰 1100-V-1420-M25 -160/65 3.6 24 CL600 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 +18 40区 1100-V-1423 膨胀机一段出口分离罐 甲烷 设备法兰 1100-V-1423-M25 -175/65 1.6 24 PN25 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M36 20 60 1950NM 未检查已紧固 +19 40区 1100-V-1426 膨胀机排出罐 甲烷 设备法兰 1100-V-1426-M25 -175/65 1.03 24 PN16 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M33 20 55 1550NM 已检查已紧固 +20 40区 1100-V-1435 脱乙烷塔回流罐 乙烷 设备法兰 1100-V-1435-M25 -75/65 1.1 24 PN16 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M33 20 55 1550NM 已检查已紧固 +21 40区 1100-V-1610 丙烯压缩机一段吸入罐 丙烯 设备法兰 1100-V-1610-M25 -45/65 1.6 24 CL300 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M39 20 65 2450NM 已检查已紧固 +22 40区 1100-V-1620 丙烯压缩机二段吸入罐 丙烯 设备法兰 1100-V-1620-M25 -35/65 1.6 24 PN25 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 +23 40区 1100-V-1625 丙烯压缩机三段吸入罐 丙烯 设备法兰 1100-V-1625-M25 -19.9/65 1.6 24 PN25 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 +24 40区 1100-V-1630 丙烯压缩机四段吸入罐 丙烯 设备法兰 1100-V-1630-M25 -11/65 1.6 24 PN25 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 +25 40区 1100-V-1640 丙烯冷剂收集罐 丙烯 设备法兰 1100-V-1640-M25A -11/75 2.1 36 CL300 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M42 64 65 3150NM 未检查已紧固 +26 40区 1100-V-1640 丙烯冷剂收集罐 丙烯 设备法兰 1100-V-1640-M25B -11/75 2.1 36 CL300 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M42 64 65 3150NM 未检查已紧固 +27 40区 1100-V-1660 乙烯压缩机一段吸入罐 乙烯 设备法兰 1100-V-1660-M25 -115/65 1.1 20 PN16 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M30 20 50 1200NM 已检查已紧固 +28 40区 1100-V-1670 乙烯压缩机二段吸入罐 乙烯 设备法兰 1100-V-1670-M25 -95/65 1.1 20 PN16 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M30 20 50 1200NM 已检查已紧固 +29 40区 1100-V-1680 乙烯压缩机三段吸入罐 乙烯 设备法兰 1100-V-1680-M25 -75/65 1.1 24 PN25 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 +30 40区 1100-V-1685 乙烯压缩机四段吸入罐 乙烯 设备法兰 1100-V-1685-M25 -70/65 1.6 24 PN25 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 +31 40区 1100-V-1690 乙烯冷剂缓冲罐 乙烯 设备法兰 1100-V-1690-M25 -65/65 2.25 24 PN40 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M45 20 70 3800NM 未检查已紧固 +32 40区 1100-V-1415 预脱甲烷塔回流罐 甲烷 设备法兰 1100-V-1415-M25 -160/65 4.62 24 CL600 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M48 24 75 4500NM 已检查已紧固 +33 40区 1100-V-1413 尾气精馏塔回流罐 甲烷 设备法兰 1100-V-1413-M25H -75/65 3.7 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 +34 40区 1100-V-1413 尾气精馏塔回流罐 甲烷 设备法兰 1100-V-1413-M25I -75/65 3.7 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 +35 40区 1100-V-1425 脱甲烷塔回流罐 甲烷 设备法兰 1100-V-1425-M25J -120/65 3.6 24 CL150 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M33 20 55 1550NM 已检查已紧固 +36 40区 1100-V-1425 脱甲烷塔回流罐 甲烷 设备法兰 1100-V-1425-M25H -120/65 3.6 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 +37 40区 1100-T-1430 脱乙烷塔 乙烷 设备法兰 1100-T-1430-M25A -75/65 1.1 24 PN25 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 +38 40区 1100-T-1430 脱乙烷塔 乙烷 设备法兰 1100-T-1430-M25B -75/65 1.1 24 PN25 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 +39 40区 1100-T-1430 脱乙烷塔 乙烷 设备法兰 1100-T-1430-M25C -75/65 1.1 24 PN25 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 +40 40区 1100-T-1430 脱乙烷塔 乙烷 设备法兰 1100-T-1430-M25D -75/65 1.1 24 PN25 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 +41 40区 1100-T-1430 脱乙烷塔 乙烷 设备法兰 1100-T-1430-M25E -75/65 1.1 24 PN25 RF 缠绕式垫片 D2222 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 +42 40区 1100-T-1440 乙烯塔 乙烯 设备法兰 1100-T-1440-M25-A -75/65 1.1 24 CL150 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M24 44 41 600NM 已检查已紧固 +43 40区 1100-T-1440 乙烯塔 乙烯 设备法兰 1100-T-1440-M25-B -75/65 1.1 24 CL150 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M24 44 41 600NM 已检查已紧固 +44 40区 1100-T-1440 乙烯塔 乙烯 设备法兰 1100-T-1440-M25-C -75/65 1.1 24 CL150 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M24 44 41 600NM 已检查已紧固 +45 40区 1100-T-1440 乙烯塔 乙烯 设备法兰 1100-T-1440-M25-D -75/65 1.1 24 CL150 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M24 44 41 600NM 已检查已紧固 +46 40区 1100-T-1440 乙烯塔 乙烯 设备法兰 1100-T-1440-M25-E -75/65 1.1 24 CL150 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M24 44 41 600NM 已检查已紧固 +47 40区 1100-T-1440 乙烯塔 乙烯 设备法兰 1100-T-1440-M25-F -75/65 1.1 24 CL150 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M24 44 41 600NM 已检查已紧固 +48 40区 1100-T-1440 乙烯塔 乙烯 设备法兰 1100-T-1440-M25B-E -75/65 1.1 24 PN16 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M33 20 55 1550NM 已检查已紧固 +49 40区 1100-T-1440 乙烯塔 乙烯 设备法兰 1100-T-1440-M25B-F -75/65 1.1 24 PN16 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M33 20 55 1550NM 已检查已紧固 +50 40区 1100-T-1440 乙烯塔 乙烯 设备法兰 1100-T-1440-M25B-G -75/65 1.1 24 PN16 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M33 20 55 1550NM 已检查已紧固 +51 40区 1100-T-1410 预脱甲烷塔 甲烷 设备法兰 1100-T-1410-M25A -75/65 3.7 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 48 65 2450NM 已检查已紧固 +52 40区 1100-T-1410 预脱甲烷塔 甲烷 设备法兰 1100-T-1410-M25B -75/65 3.7 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 48 65 2450NM 已检查已紧固 +53 40区 1100-T-1410 预脱甲烷塔 甲烷 设备法兰 1100-T-1410-M25C -75/65 3.7 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 +54 40区 1100-T-1410 预脱甲烷塔 甲烷 设备法兰 1100-T-1410-M25D -75/65 3.7 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 96 65 2450NM 已检查已紧固 +55 40区 1100-T-1410 预脱甲烷塔 甲烷 设备法兰 1100-T-1410-M25E -75/65 3.7 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 96 65 2450NM 已检查已紧固 +56 40区 1100-T-1410 预脱甲烷塔 甲烷 设备法兰 1100-T-1410-M25F -75/65 3.7 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 96 65 2450NM 已检查已紧固 +57 40区 1100-T-1410 预脱甲烷塔 甲烷 设备法兰 1100-T-1410-M25G -75/65 3.7 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 96 65 2450NM 已检查已紧固 +58 40区 1100-T-1413 尾气精馏塔 甲烷 设备法兰 1100-T-1413-M25A -150/65 4.62 24 CL600 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M48 72 75 4500NM 已检查已紧固 +59 40区 1100-T-1413 尾气精馏塔 甲烷 设备法兰 1100-T-1413-M25B -150/65 4.62 24 CL600 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M48 72 75 4500NM 已检查已紧固 +60 40区 1100-T-1413 尾气精馏塔 甲烷 设备法兰 1100-T-1413-M25C -150/65 4.62 24 CL600 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M48 72 75 4500NM 已检查已紧固 +61 40区 1100-T-1413 尾气精馏塔 甲烷 设备法兰 1100-T-1413-M25D -150/65 4.62 24 CL600 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M48 72 75 4500NM 已检查已紧固 +62 40区 1100-T-1420 脱甲烷塔 甲烷 设备法兰 1100-T-1420-M25-A -120/65 3.6 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 +63 40区 1100-T-1420 脱甲烷塔 甲烷 设备法兰 1100-T-1420-M25-B -120/65 3.6 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 +64 40区 1100-T-1420 脱甲烷塔 甲烷 设备法兰 1100-T-1420-M25-C -120/65 3.6 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 +65 40区 1100-T-1420 脱甲烷塔 甲烷 设备法兰 1100-T-1420-M25-D -120/65 3.6 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 +66 40区 1100-T-1420 脱甲烷塔 甲烷 设备法兰 1100-T-1420-M25-E -120/65 3.6 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 +67 40区 1100-T-1420 脱甲烷塔 甲烷 设备法兰 1100-T-1420-M25-F -120/65 3.6 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 +68 40区 1100-T-1420 脱甲烷塔 甲烷 设备法兰 1100-T-1420-M25-G -120/65 3.6 24 CL300 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 +69 40区 1100-T-1420 脱甲烷塔 甲烷 设备法兰 1100-T-1420-M25-I -120/65 3.6 24 CL150 RF 缠绕式垫片 S30408 35CrMoA/30CrMo M33 20 55 1550NM 已检查已紧固 + diff --git a/excel/50.txt b/excel/50.txt new file mode 100644 index 0000000000000000000000000000000000000000..cbecb1de4db222ad8ea7767261e11664cd4f0b4d --- /dev/null +++ b/excel/50.txt @@ -0,0 +1,260 @@ +三江化工轻烃利用装置定力矩紧固法兰清单 +序号 区域 设备位号/管线号 设备名称 工作介质 法兰名称 法兰编号 设计温度 设计压力 法兰规格 压力等级 密封形式 密封垫 螺栓信息 目标扭矩 法兰紧固状态 紧固方式 + NPS PN/Class 类型 材质 螺栓材质 螺栓规格 螺栓数量 螺母对边 +1 50区 503-P1115907 E-1570S/T2 C5+ 管道法兰 503-P1115907-1 -11~200 1.44 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +2 50区 503-P1115907 C5+ 管道法兰 503-P1115907-10 -11~200 1.44 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +3 50区 503-P1115909 C5+ 管道法兰 503-P1115909-1 -11~200 1.44 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +4 50区 503-P1115909 C5+ 管道法兰 503-P1115909-9Z -11~200 1.44 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +5 50区 503-P1115909 C5+ 管道法兰 503-P1115909-10 -11~200 1.44 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +6 50区 503-P1115909 C5+ 管道法兰 503-P1115909-11 -11~200 1.44 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +7 50区 502-P1115018A 丙烯 管道法兰 502-P1115018A-1 -11~80 2.38 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +8 50区 502-P1115018A 丙烯 管道法兰 502-P1115018A-7 -11~80 2.38 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +9 50区 502-P1115018A 丙烯 管道法兰 502-P1115018A-7 -11~80 2.38 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +10 50区 502-P1115018A 丙烯 管道法兰 502-P1115018A-1 -11~80 2.38 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +11 50区 501-P1115001 C3 管道法兰 501-P1115001-9 -11~80 2.5 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +12 50区 501-P1115001 C3 管道法兰 501-P1115001-10 -11~80 2.5 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +13 50区 501-QW1115002 急冷水 管道法兰 501-QW1115002-20 -11~125 2.8 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 已检查已紧固 液压力矩扳手 +14 50区 501-QW1115002 急冷水 管道法兰 501-QW1115002-26 -11~125 2.8 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 已检查已紧固 液压力矩扳手 +15 50区 501-QW1115002 急冷水 管道法兰 501-QW1115002-31 -11~125 2.8 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 已检查已紧固 液压力矩扳手 +16 50区 501-QW1115002 急冷水 管道法兰 501-QW1115002-28 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +17 50区 501-QW1115002 急冷水 管道法兰 501-QW1115002-29 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +18 50区 501-QW1115002 急冷水 管道法兰 501-QW1115002-36 -11~125 2.8 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 已检查已紧固 液压力矩扳手 +19 50区 501-QW1115002 急冷水 管道法兰 501-QW1115002-38 -11~125 2.8 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 已检查已紧固 液压力矩扳手 +20 50区 501-QW1115002 急冷水 管道法兰 501-QW1115002-39 -11~125 2.8 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 已检查已紧固 液压力矩扳手 +21 50区 501-QW1115002 急冷水 管道法兰 501-QW1115002-40 -11~125 2.8 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 已检查已紧固 液压力矩扳手 +22 50区 501-QW1115002 急冷水 管道法兰 501-QW1115002-41 -11~125 2.8 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 已检查已紧固 液压力矩扳手 +23 50区 501-QW1115002 急冷水 管道法兰 501-QW1115002-32 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +24 50区 501-QW1115002 急冷水 管道法兰 501-QW1115002-25 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +25 50区 501-QW1115007 急冷水 管道法兰 501-QW1115007-23 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +26 50区 501-QW1115007 急冷水 管道法兰 501-QW1115007-17 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +27 50区 501-QW1115007 急冷水 管道法兰 501-QW1115007-18 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +28 50区 501-QW1115007 急冷水 管道法兰 501-QW1115007-20 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +29 50区 501-QW1115007 急冷水 管道法兰 501-QW1115007-21 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +30 50区 501-QW1115007 急冷水 管道法兰 501-QW1115007-27 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +31 50区 501-QW1115007 急冷水 管道法兰 501-QW1115007-29 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +32 50区 501-QW1115007 急冷水 管道法兰 501-QW1115007-30 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +33 50区 501-QW1115007 急冷水 管道法兰 501-QW1115007-31 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +34 50区 501-QW1115007 急冷水 管道法兰 501-QW1115007-24 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +35 50区 501-QW1115007 急冷水 管道法兰 501-QW1115007-14 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +36 50区 501-QW1115007 急冷水 管道法兰 501-QW1115007-32 -11~125 2.8 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-5/8" 32 65 2957NM 已检查已紧固 液压力矩扳手 +37 50区 501-QW1115008 急冷水 管道法兰 501-QW1115008-17 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +38 50区 501-QW1115008 急冷水 管道法兰 501-QW1115008-18 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +39 50区 501-QW1115008 急冷水 管道法兰 501-QW1115008-23 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +40 50区 501-QW1115008 急冷水 管道法兰 501-QW1115008-31 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +41 50区 501-QW1115009 急冷水 管道法兰 501-QW1115009-13 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +42 50区 501-QW1115009 急冷水 管道法兰 501-QW1115009-14 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +43 50区 501-QW1115009 急冷水 管道法兰 501-QW1115009-19 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +44 50区 501-QW1115009 急冷水 管道法兰 501-QW1115009-31 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +45 50区 503-P1115002 C3 管道法兰 503-P1115002-5 -11~80 2.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +46 50区 503-P1115002 C3 管道法兰 503-P1115002-6 -11~80 2.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +47 50区 503-P1115006 丙烷 管道法兰 503-P1115006-3 -11~80 3 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +48 50区 503-P1115006 丙烷 管道法兰 503-P1115006-4 -11~80 3 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +49 50区 503-P1115007 丙烷 管道法兰 503-P1115007-22 -11~80 3 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +50 50区 503-P1115007 丙烷 管道法兰 503-P1115007-23 -11~80 3 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +51 50区 503-P1115009 C3 管道法兰 503-P1115009-5 -11~80 2.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +52 50区 503-P1115009 C3 管道法兰 503-P1115009-5 -11~80 2.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +53 50区 503-P1115050 丙烷 管道法兰 503-P1115050-6 -11~80 3 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +54 50区 503-P1115050 丙烷 管道法兰 503-P1115050-7 -11~80 3 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +55 50区 503-P1115230 丙烷 管道法兰 503-P1115230-6 -11~80 3 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +56 50区 503-P1115230 丙烷 管道法兰 503-P1115230-7 -11~80 3 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +57 50区 503-QW1112066 急冷水 管道法兰 503-QW1112066-1 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +58 50区 503-QW1112066 急冷水 管道法兰 503-QW1112066-7 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +59 50区 503-QW1112066 急冷水 管道法兰 503-QW1112066-6 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +60 50区 503-QW1115002 急冷水 管道法兰 503-QW1115002-1 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +61 50区 503-QW1115002 急冷水 管道法兰 503-QW1115002-7 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +62 50区 503-QW1115002 急冷水 管道法兰 503-QW1115002-6 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +63 50区 503-QW1115002A 急冷水 管道法兰 503-QW1115002A-1 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +64 50区 503-QW1115002A 急冷水 管道法兰 503-QW1115002A-6 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +65 50区 503-QW1115002A 急冷水 管道法兰 503-QW1115002A-5 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +66 50区 503-QW1115007 急冷水 管道法兰 503-QW1115007-1 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +67 50区 503-QW1115007 急冷水 管道法兰 503-QW1115007-6 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +68 50区 503-QW1115007 急冷水 管道法兰 503-QW1115007-5 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +69 50区 503-QW1115102 急冷水 管道法兰 503-QW1115102-1 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +70 50区 503-QW1115102 急冷水 管道法兰 503-QW1115102-7 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +71 50区 503-QW1115102 急冷水 管道法兰 503-QW1115102-6 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +72 50区 503-QW1115107 急冷水 管道法兰 503-QW1115107-1 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +73 50区 503-QW1115107 急冷水 管道法兰 503-QW1115107-6 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +74 50区 503-QW1115107 急冷水 管道法兰 503-QW1115107-5 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +75 50区 503-QW1115166 急冷水 管道法兰 503-QW1115166-1 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +76 50区 503-QW1115166 急冷水 管道法兰 503-QW1115166-7 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +77 50区 503-QW1115166 急冷水 管道法兰 503-QW1115166-6 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +78 50区 503-QW1115167 急冷水 管道法兰 503-QW1115167-1 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +79 50区 503-QW1115167 急冷水 管道法兰 503-QW1115167-6 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +80 50区 503-QW1115167 急冷水 管道法兰 503-QW1115167-5 -11~125 2.8 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 已检查已紧固 液压力矩扳手 +81 50区 502-P1115018 丙烯 管道法兰 502-P1115018-7 -11~80 2.38 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +82 50区 502-P1115018 丙烯 管道法兰 502-P1115018-8 -11~80 2.38 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +83 50区 502-P1115019 丙烯 管道法兰 502-P1115019-3 -11~80 2.38 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +84 50区 502-P1115019 丙烯 管道法兰 502-P1115019-4 -11~80 2.38 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +85 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 28"-P1115001Z-B33A-H -11~80 2.5 28 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 28 70 3740NM 未检查已紧固 液压力矩扳手 +86 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 16"-P1115015Z-B33A-H -11~80 2.5 16 CL300 RF 金属缠绕垫 ASTM A193-B16/ASTM A194-4 1-1/2" 20 60 2291NM 未检查已紧固 液压力矩扳手 +87 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 24"-P1115007A-B33A-H -11~80 2.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 已检查已紧固 液压力矩扳手 +88 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 24"-P1115006-B33A-H -11~80 2.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 已检查已紧固 液压力矩扳手 +89 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 28"-P1115231-B33A-H -11~80 2.5 28 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 28 70 3740NM 已检查已紧固 液压力矩扳手 +90 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 24"-P1115230-B33A-H -11~80 2.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 已检查已紧固 液压力矩扳手 +91 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 28"-P1115051-B33A-H -11~80 2.5 28 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 28 70 3740NM 已检查已紧固 液压力矩扳手 +92 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 24"-P1115050-B33A-H -11~80 2.5 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 已检查已紧固 液压力矩扳手 +93 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 6"-P1115004-B33A-H -11~80 2.5 6 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +94 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 1/2"-P1115353-B33A-H -11~80 2.5 1/2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +95 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 1/2"-P1115352-B33A-H -11~80 2.5 1/2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +96 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 塔顶放空导淋 -11~80 2.5 3 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +97 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 塔釜排空导淋 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +98 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 E1531物料出塔线导淋 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +99 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 E1530A物料出塔线导淋 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +100 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 E1530B物料出塔线导淋 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +101 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 塔底物料线排空导淋 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +102 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 TI15020连接口 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +103 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 TI15021连接口 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +104 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 PG15010连接口 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +105 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 PT15034连接口 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +106 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 PDE15009连接口 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +107 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 LT15010上连接口 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +108 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 LT15010下连接口 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +109 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 LG15010上连接口 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +110 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 LG15010下连接口 -11~80 2.5 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +111 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 T-1530-M25A -11~80 2.5 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +112 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 T-1530-M25B -11~80 2.5 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +113 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 T-1530-M25C -11~80 2.5 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +114 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 T-1530-M25D -11~80 2.5 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +115 50区 T-1530 丙烯汽提塔 丙烯、丙烷 设备法兰 T-1530-M25E -11~80 2.5 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +116 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 30"-P1115010Z-B33A-N -11~80 2.31 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 未检查已紧固 液压力矩扳手 +117 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 24"-P1115017Z-B33A-N -11~80 2.31 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +118 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 8"-P1115033Z-B33A-N -11~80 2.31 8 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +119 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 2"-P1115029Z-B33A-N -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +120 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 6"-P1115073Z-B33A-N -11~80 2.31 6 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +121 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 6"-P1115073Z-B33A-N -11~80 2.31 6 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +122 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 6"-P1115073Z-B33A-N -11~80 2.31 6 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +123 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 6"-P1115073Z-B33A-N -11~80 2.31 6 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +124 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 30"-P1115001A-B33A-H -11~80 2.31 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 28 75 4620NM 已检查已紧固 液压力矩扳手 +125 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 8"-P1115172A-B33A-H -11~80 2.31 8 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 7/8" 12 36 400NM 已检查已紧固 手动力矩扳手 +126 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 28"-P1115008-B33A-H -11~80 2.31 28 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 28 70 3740NM 已检查已紧固 液压力矩扳手 +127 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 24"-P1115009-B33A-H -11~80 2.31 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 已检查已紧固 液压力矩扳手 +128 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 28"-P1115003-B33A-H -11~80 2.31 28 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/4" 28 70 3740NM 已检查已紧固 液压力矩扳手 +129 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 24"-P1115002-B33A-H -11~80 2.31 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 已检查已紧固 液压力矩扳手 +130 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 20"-P1115011-B33A-H -11~80 2.31 20 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B16/ASTM A194-4 1-5/8" 24 65 2957NM 已检查已紧固 液压力矩扳手 +131 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 塔顶放空导淋 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +132 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 E1530A物料出塔线导淋 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +133 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 E1530B物料出塔线导淋 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +134 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 塔底物料线排空导淋 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +135 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 塔釜排空导淋 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +136 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 LT15008上连接口 -11~80 2.31 3 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +137 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 LT15008下连接口 -11~80 2.31 3 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +138 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 LG15008上连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +139 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 LG15008下连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +140 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 PG15016连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +141 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 TI15030连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +142 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 TI15049连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +143 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 TI15047连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +144 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 TI15048连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +145 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 TI15029连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +146 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 TI15032连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +147 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 PDE15014A连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +148 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 PDE15014B连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +149 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 PDE15014C连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +150 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 PDE15014D连接口 -11~80 2.31 2 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +151 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 T-1540-M25A -11~80 2.31 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +152 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 T-1540-M25B -11~80 2.31 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +153 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 T-1540-M25C -11~80 2.31 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +154 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 T-1540-M25D -11~80 2.31 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +155 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 T-1540-M25E -11~80 2.31 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +156 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 T-1540-M25F -11~80 2.31 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +157 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 T-1540-M25G -11~80 2.31 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +158 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 T-1540-M25L -11~80 2.31 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +159 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 T-1540-M25H -11~80 2.31 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +160 50区 T-1540 丙烯精馏塔 碳氢化合物 设备法兰 T-1540-M25K -11~80 2.31 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M45 20 70 3800NM 已检查已紧固 液压力矩扳手 +161 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 14"-P1115026Z-A52AB-N -11~155 0.52 14 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1" 12 41 622NM 未检查已紧固 手动力矩扳手 +162 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 3"-P1115030Z-A52AB-N -11~155 0.52 3 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +163 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 10"-P1113051Z-A33A-H -11~155 0.52 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +164 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 24"-P1115024-A52AB-H -11~155 0.52 24 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +165 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 14"-P1115025-A52AB-H -11~155 0.52 14 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1" 12 41 622NM 未检查已紧固 手动力矩扳手 +166 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 6"-P1115208A-A52AB-H -11~155 0.52 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +167 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 2"-P1115209-A52AB-H -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +168 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560塔顶放空导淋 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +169 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560塔底再沸侧格室排空导淋 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +170 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560塔底出料线导淋 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +171 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560塔底出料侧格室排空导淋 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +172 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560再沸物料出塔线导淋 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +173 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560TI15036连接口 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +174 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560PDE15020A连接口 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +175 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560PDE15020B连接口 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +176 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560PG15012连接口 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +177 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560TI15041连接口 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +178 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560TI15038连接口 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +179 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560LT15011上连接口 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +180 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560LT15011下连接口 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +181 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560LG15011上连接口 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +182 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560LG15011下连接口 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +183 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560TIC15037连接口 -11~155 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +184 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560-M25A -11~155 0.52 24 PN25 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 液压力矩扳手 +185 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560-M25B -11~155 0.52 24 PN25 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 液压力矩扳手 +186 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560-M25C -11~155 0.52 24 PN25 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 液压力矩扳手 +187 50区 T-1560 脱丁烷塔 碳四及以上组分 设备法兰 T-1560-M25D -11~155 0.52 24 PN25 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 液压力矩扳手 +188 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 16"-P1115908Z-A33A-PP -11~200 0.52 14 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1" 12 41 622NM 未检查已紧固 手动力矩扳手 +189 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 4"-P1115929Z-A33A-H -11~200 0.52 3 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +190 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 4"-P1115103Z-B52AB-H -11~200 0.52 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +191 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 30"-P1115909-A52AB-H -11~200 0.52 24 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +192 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 16"-P1115905-A52AB-H -11~200 0.52 14 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 1" 12 41 622NM 未检查已紧固 手动力矩扳手 +193 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 6"-P1115912-A52AB-H -11~200 0.52 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +194 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 2"-P1115904-A52AB-H -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +195 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570塔顶放空导淋 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +196 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570塔釜排空导淋(低) -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +197 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570塔釜排空导淋(高) -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +198 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570塔底出料线导淋 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +199 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570再沸物料出塔线导淋 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +200 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570PDE15122A连接口 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +201 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570PDE15122B连接口 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +202 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570TI15225连接口 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +203 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570TT15223连接口 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +204 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570TI15224连接口 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +205 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570TI15227连接口 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +206 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570LT15221上连接口 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +207 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570LT15221下连接口 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +208 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570LG15221上连接口 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +209 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570LG15221下连接口 -11~200 0.52 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +210 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570-M25A -11~200 0.52 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M33 20 55 1550NM 已检查已紧固 液压力矩扳手 +211 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570-M25B -11~200 0.52 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M33 20 55 1550NM 已检查已紧固 液压力矩扳手 +212 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570-M25C -11~200 0.52 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M33 20 55 1550NM 已检查已紧固 液压力矩扳手 +213 50区 T-1570 脱戊烷塔 粗芳烃 设备法兰 T-1570-M25D -11~200 0.52 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M33 20 55 1550NM 已检查已紧固 液压力矩扳手 +214 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 10"-P1113047-A33A-C -11~120 1 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +215 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 3"-P1113139-A33A-C -11~120 1 3 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +216 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 6"-P1113046-A33A-N -11~120 1 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +217 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 18"-P1113134-A33A-H -11~120 1 18 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M27 20 S46 950NM 未检查已紧固 液压力矩扳手 +218 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 12"-P1113133-A33A-H -11~120 1 12 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +219 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 8"-P1113051-A33A-H -11~120 1 8 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 7/8" 12 36 400NM 未检查已紧固 手动力矩扳手 +220 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 3"-P1115211-B33A-N -11~120 1 3 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +221 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360再沸物料出塔线导淋 -11~120 1 4 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +222 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360塔底再沸侧格室排空导淋 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +223 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360塔底出料线导淋 -11~120 1 4 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A320-L7/ASTM A194-7 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +224 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360塔底出料侧格室排空导淋 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +225 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360TI13104连接口 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +226 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360TI13101连接口 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +227 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360TIC13102连接口 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +228 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360TI13103连接口 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +229 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360LT13041上连接口 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +230 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360LT13041下连接口 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +231 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360LG13041上连接口 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +232 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360LG13041下连接口 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +233 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360PG13399连接口 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +234 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360PDE13040B连接口 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +235 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360PDE13040A连接口 -11~120 1 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +236 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360-M25A -11~120 1 24 PN25 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 液压力矩扳手 +237 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360-M25B -11~120 1 24 PN25 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 液压力矩扳手 +238 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360-M25C -11~120 1 24 PN25 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 液压力矩扳手 +239 50区 T-1360 低压脱丙烷塔 碳三及以上组分 设备法兰 T-1360-M25D -11~120 1 24 PN25 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M36 20 60 1950NM 已检查已紧固 液压力矩扳手 +240 50区 D-1540 丙烯产品脱甲醇保护床 丙烯/再生气(甲烷、氢) 设备法兰 D-1540-M25A -11~355 3.1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M39 24 65 2450NM 未检查已紧固 液压力矩扳手 +241 50区 D-1540 丙烯产品脱甲醇保护床 丙烯/再生气(甲烷、氢) 设备法兰 D-1540-M25B -11~355 3.1 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M39 24 65 2450NM 未检查已紧固 液压力矩扳手 +242 50区 V-1366 低压脱丙烷塔回流罐 混合碳三 设备法兰 V-1366-M25 -11~65 0.698 20 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M30 20 50 1200NM 未检查已紧固 液压力矩扳手 +243 50区 V-1520 碳三加氢循环罐 丙烯、丙烷、氢气 设备法兰 V-1520-M25A -45~80 3.7 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M39 24 65 2450NM 未检查已紧固 液压力矩扳手 +244 50区 V-1520 碳三加氢循环罐 丙烯、丙烷、氢气 设备法兰 V-1520-M25B -45~80 3.7 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M39 24 65 2450NM 未检查已紧固 液压力矩扳手 +245 50区 V-1555 丙烯精馏塔回流罐 丙烯、丙烷、氢气 设备法兰 V-1555-M25A -11~80 2.31 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M42 64 65 3150NM 未检查已紧固 液压力矩扳手 +246 50区 V-1555 丙烯精馏塔回流罐 丙烯、丙烷、氢气 设备法兰 V-1555-M25B -11~80 2.31 36 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M42 64 65 3150NM 未检查已紧固 液压力矩扳手 +247 50区 V-1560 脱丁烷塔再沸器凝液罐 低压蒸汽凝液 设备法兰 V-1560-M25 -11~265 0.8 18 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M27 20 46 950NM 未检查已紧固 液压力矩扳手 +248 50区 V-1565 脱丁烷塔回流罐 混合碳四 设备法兰 V-1565-M25 -11~95 0.52 20 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M30 20 50 1200NM 未检查已紧固 液压力矩扳手 +249 50区 V-1570 脱戊烷塔回流罐 混合碳五 设备法兰 V-1570-M25 -11~200 0.52 24 PN25 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M36 20 60 1950NM 未检查已紧固 液压力矩扳手 +250 50区 V-1901 冷火炬分液罐 火炬气/凝液 设备法兰 V-1901-M25A -165~160 0.35 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M33 20 55 1550NM 未检查已紧固 液压力矩扳手 +251 50区 V-1901 冷火炬分液罐 火炬气/凝液 设备法兰 V-1901-M25B -165~160 0.35 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M33 20 55 1550NM 未检查已紧固 液压力矩扳手 +252 50区 V-1902 冷火炬分液罐 火炬气/烃类凝液 设备法兰 V-1902-M25A -11~1250 0.35 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M33 20 55 1550NM 未检查已紧固 液压力矩扳手 +253 50区 V-1902 冷火炬分液罐 火炬气/烃类凝液 设备法兰 V-1902-M25B -11~1250 0.35 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M33 20 55 1550NM 未检查已紧固 液压力矩扳手 +254 50区 R-1510 碳三加氢脱呻保护床 丙烯、丙烷 设备法兰 R-1510-M25A -45~65 3.75 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 液压力矩扳手 +255 50区 R-1510 碳三加氢脱呻保护床 丙烯、丙烷 设备法兰 R-1510-M25B -45~65 3.75 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M39 24 65 2450NM 已检查已紧固 液压力矩扳手 +256 50区 R-1520 碳三加氢反应器 丙烯、丙烷、氢气 设备法兰 R-1520-M25A -45~150 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M48 24 75 4500NM 已检查已紧固 液压力矩扳手 +257 50区 R-1520 碳三加氢反应器 丙烯、丙烷、氢气 设备法兰 R-1520-M25B -45~150 4.62 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMo M48 24 75 4500NM 已检查已紧固 液压力矩扳手 diff --git a/excel/70.txt b/excel/70.txt new file mode 100644 index 0000000000000000000000000000000000000000..26517354aa030cdfa5915f66707429c80ce73577 --- /dev/null +++ b/excel/70.txt @@ -0,0 +1,147 @@ +三江化工轻烃利用装置定力矩紧固法兰清单 +序号 区域 设备位号/管线号 设备名称 工作介质 法兰名称 法兰编号 设计温度 设计压力 法兰规格 压力等级 密封形式 密封垫 螺栓信息 目标扭矩 法兰紧固状态 紧固方式 + NPS PN/Class 类型 材质 螺栓材质 螺栓规格 螺栓数量 螺母对边 +1 70区 702-CA1117006 碱液 管道法兰 702-CA1117006-43 -11~160 1.15 3 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-316L S.S, OR-316LS.S) ASTM A193-B8MCL.2/ASTM A194-8M 5/8" 4 27 136NM 未检查已紧固 手动力矩扳手 +2 70区 702-CA1117010 碱液 管道法兰 702-CA1117010-28 -11~180 2.15 2 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-316L S.S, OR-316LS.S) ASTM A193-B8MCL.2/ASTM A194-8M 5/8" 4 27 136NM 未检查已紧固 手动力矩扳手 +3 70区 702-CA1117016 碱液 管道法兰 702-CA1117016-22 -11~180 2.15 2 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-316L S.S, OR-316LS.S) ASTM A193-B8MCL.2/ASTM A194-8M 5/8" 4 27 136NM 未检查已紧固 手动力矩扳手 +4 70区 702-CA1117030 碱液 管道法兰 702-CA1117030-1 -11~180 0.8 4 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-316L S.S, OR-316LS.S) ASTM A193-B8MCL.2/ASTM A194-8M 5/8" 8 27 136NM 未检查已紧固 手动力矩扳手 +5 70区 702-CA1117098 碱液 管道法兰 702-CA1117098-40 -11~160 1.15 3 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +6 70区 702-CA1117101 碱液 管道法兰 702-CA1117101-1 -11~180 FV0.60 4 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-316L S.S, OR-316LS.S) ASTM A193-B8MCL.2/ASTM A194-8M 5/8" 4 27 136NM 未检查已紧固 手动力矩扳手 +7 70区 702-CA1117208 碱液 管道法兰 702-CA1117208-11 -11~180 2.15 2 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-316L S.S, OR-316LS.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +8 70区 702-CA1117209 碱液 管道法兰 702-CA1117209-1 -11~180 0.6 4 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-316L S.S, OR-316LS.S) ASTM A193-B7/ASTM A194-2H 5/8" 8 27 152NM 未检查已紧固 手动力矩扳手 +9 70区 702-P1117002 水蒸气 管道法兰 702-P1117002-1 -11/200 FV/0.6 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +10 70区 702-P1117006 放空气 管道法兰 702-P1117006-73 -11/180 2.69 6 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-316L S.S, OR-316LS.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +11 70区 702-P1117012 空气/水蒸气 管道法兰 702-P1117012-1 -11/200 FV/0.6 8 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +12 70区 702-P1117016 蒸汽凝液 管道法兰 702-P1117016-25 -11/180 FV/0.6 2 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-316L S.S, OR-316LS.S) ASTM A193-B8MCL.2/ASTM A194-8M 5/8" 4 27 136NM 未检查已紧固 手动力矩扳手 +13 70区 702-P1117018 水蒸气 管道法兰 702-P1117018-1 -11/200 FV/0.6 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B8MCL.2/ASTM A194-8M 3/4" 8 32 216NM 未检查已紧固 手动力矩扳手 +14 70区 702-P1117020 蒸汽凝液 管道法兰 702-P1117020-24 -11/180 FV/0.6 2 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-316L S.S, OR-316LS.S) ASTM A193-B8MCL.2/ASTM A194-8M 5/8" 4 27 136NM 未检查已紧固 手动力矩扳手 +15 70区 702-P1117022 废碱氧化废气 管道法兰 702-P1117022-28 -11/180 2.69 6 CL300 RF 金属缠绕垫 316LS.S/GRAP.(IR-316L S.S, OR-316LS.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +16 70区 702-P1117024 空气/水蒸气 管道法兰 702-P1117024-1 -11/200 FV/0.6 8 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +17 70区 702-P1117101 蒸汽凝液 管道法兰 702-P1117101-8 -11/180 FV/0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B8MCL.2/ASTM A194-8M 5/8" 4 27 136NM 未检查已紧固 手动力矩扳手 +18 70区 702-P1117102 水蒸气 管道法兰 702-P1117102-1 -11/200 FV/0.6 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B8MCL.2/ASTM A194-8M 5/8" 8 27 136NM 未检查已紧固 手动力矩扳手 +19 70区 702-LS1117004 低压蒸汽 管道法兰 702-LS1117004-8 -11/265 FV/0.8 10 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B8MCL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 手动力矩扳手 +20 70区 702-LS1117010 低压蒸汽 管道法兰 702-LS1117010-15 -11/265 FV/0.8 10 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B8MCL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 手动力矩扳手 +21 70区 702-LS1117070 低压蒸汽 管道法兰 702-LS1117070-14 -11/265 FV/0.8 10 CL150 RF 金属缠绕垫 316LS.S/GRAP.(IR-316L S.S, OR-316LS.S) ASTM A193-B8MCL.2/ASTM A194-8M 7/8" 12 36 350NM 未检查已紧固 手动力矩扳手 +22 70区 T1722A 702-P1117181 水/废碱氧化气 管道法兰 T1722A-V1 -11/65 1 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B8MCL.2/ASTM A194-8M 5/8" 4 27 136NM 未检查已紧固 手动力矩扳手 +23 70区 T1722S 702-P1117182 水/废碱氧化气 管道法兰 T1722S-V1 -11/65 1 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B8MCL.2/ASTM A194-8M 5/8" 4 27 136NM 未检查已紧固 手动力矩扳手 +24 70区 T1722B 702-P1117182 水/废碱氧化气 管道法兰 T1722B-V1 -11/65 1 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B8MCL.2/ASTM A194-8M 5/8" 4 27 136NM 未检查已紧固 手动力矩扳手 +25 70区 702-PW1117007 工艺水 管道法兰 702-PW1117007-1 -11/180 1.1 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +26 70区 702-PW1117009 工艺水 管道法兰 702-PW1117009-50 -11/180 1.1 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +27 70区 702-PW1117010 工艺水 管道法兰 702-PW1117010-1 -11/180 1.1 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +28 70区 702-PW1117013 工艺水 管道法兰 702-PW1117013-44 -11/180 1.1 6 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 3/4" 8 32 261NM 未检查已紧固 手动力矩扳手 +29 70区 R-1731A 废碱氧化反应器 废碱液 设备法兰 R1731A-M25A -11/180 2.69 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 已检查已紧固 液压力矩扳手 +30 70区 R-1731A 废碱氧化反应器 废碱液 设备法兰 R1731A-M25B -11/180 2.69 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 已检查已紧固 液压力矩扳手 +31 70区 R-1731A 废碱氧化反应器 废碱液 设备法兰 R1731A-M25C -11/180 2.69 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 已检查已紧固 液压力矩扳手 +32 70区 R-1731A 废碱氧化反应器 废碱液 设备法兰 R1731A-M25D -11/180 2.69 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 已检查已紧固 液压力矩扳手 +33 70区 R-1731B 废碱氧化反应器 废碱液 设备法兰 R1731B-M25A -11/180 2.69 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 已检查已紧固 液压力矩扳手 +34 70区 R-1731B 废碱氧化反应器 废碱液 设备法兰 R1731B-M25B -11/180 2.69 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 已检查已紧固 液压力矩扳手 +35 70区 R-1731B 废碱氧化反应器 废碱液 设备法兰 R1731B-M25C -11/180 2.69 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 已检查已紧固 液压力矩扳手 +36 70区 R-1731B 废碱氧化反应器 废碱液 设备法兰 R1731B-M25D -11/180 2.69 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 已检查已紧固 液压力矩扳手 +37 70区 R-1731C 废碱氧化反应器 废碱液 设备法兰 R1731C-M25A -11/180 2.69 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 已检查已紧固 液压力矩扳手 +38 70区 R-1731C 废碱氧化反应器 废碱液 设备法兰 R1731C-M25B -11/180 2.69 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 已检查已紧固 液压力矩扳手 +39 70区 R-1731C 废碱氧化反应器 废碱液 设备法兰 R1731C-M25C -11/180 2.69 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 已检查已紧固 液压力矩扳手 +40 70区 R-1731C 废碱氧化反应器 废碱液 设备法兰 R1731C-M25D -11/180 2.69 24 PN40 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 已检查已紧固 液压力矩扳手 +41 70区 T-1722A 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722A-K31A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +42 70区 T-1722A 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722A-K31B -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +43 70区 T-1722A 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722A-K32A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +44 70区 T-1722A 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722A-K32B -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +45 70区 T-1722A 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722A-K34A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +46 70区 T-1722A 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722A-K34B -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +47 70区 T-1722A 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722A-N8 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +48 70区 T-1722A 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722A-M25A -11/180 FV~0.6 20 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M33 24 50 1550NM 未检查已紧固 液压力矩扳手 +49 70区 T-1722A 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722A-M25B -11/180 FV~0.6 20 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M33 24 50 1550NM 未检查已紧固 液压力矩扳手 +50 70区 T-1722A 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722A-M25C -11/180 FV~0.6 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 未检查已紧固 液压力矩扳手 +51 70区 T-1722B 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722B-K30 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +52 70区 T-1722B 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722B-K31A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +53 70区 T-1722B 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722B-K31B -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +54 70区 T-1722B 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722B-K32A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +55 70区 T-1722B 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722B-K32B -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +56 70区 T-1722B 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722B-K34A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +57 70区 T-1722B 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722B-N8 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +58 70区 T-1722S 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722S-K30 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +59 70区 T-1722S 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722S-K31A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +60 70区 T-1722S 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722S-K31B -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +61 70区 T-1722S 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722S-K32A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +62 70区 T-1722S 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722S-K32B -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +63 70区 T-1722S 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722S-K34A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +64 70区 T-1722S 废碱氧化脱烃塔 废碱 蒸汽 设备法兰 T1722S-N8 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +65 70区 T-1732A 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732A-D1 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 316S.S/GRAP.(IR-316S.S, OR-316S.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +66 70区 T-1732A 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732A-K31 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +67 70区 T-1732A 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732A-K32A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +68 70区 T-1732A 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732A-K32B -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +69 70区 T-1732A 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732A-K34A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +70 70区 T-1732A 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732A-K34B -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +71 70区 T-1732A 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732A-N8 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +72 70区 T-1732A 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732A-V1 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +73 70区 T-1732A 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732A-M25A -11/180 FV~0.6 20 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M33 24 50 1550NM 未检查已紧固 液压力矩扳手 +74 70区 T-1732A 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732A-M25B -11/180 FV~0.6 20 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M33 24 50 1550NM 未检查已紧固 液压力矩扳手 +75 70区 T-1732B 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732B-D1 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +76 70区 T-1732B 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732B-K31 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +77 70区 T-1732B 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732B-K32A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +78 70区 T-1732B 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732B-K32B -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +79 70区 T-1732B 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732B-K34A -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +80 70区 T-1732B 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732B-K34B -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +81 70区 T-1732B 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732B-N8 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +82 70区 T-1732B 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732B-V1 -11/180 FV~0.6 2 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) ASTM A193-B7/ASTM A194-2H 5/8" 4 27 152NM 未检查已紧固 手动力矩扳手 +83 70区 T-1732B 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732B-M25A -11/180 FV~0.6 20 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M33 24 50 1550NM 未检查已紧固 液压力矩扳手 +84 70区 T-1732B 废碱氧化水洗塔 废碱 蒸汽 设备法兰 T1732B-M25B -11/180 FV~0.6 20 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M33 24 50 1550NM 未检查已紧固 液压力矩扳手 +85 70区 V-1728A 氧化后废碱闪蒸罐 含碱废水 设备法兰 V1728A-M25 -11/180 0.7 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 未检查已紧固 液压力矩扳手 +86 70区 V-1728B 氧化后废碱闪蒸罐 含碱废水 设备法兰 V1728B-M25 -11/180 0.7 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 未检查已紧固 液压力矩扳手 +87 70区 V-1730 废碱排放罐 废碱液 设备法兰 V1730-M25A -11/80 FV~0.35 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 未检查已紧固 液压力矩扳手 +88 70区 V-1730 废碱排放罐 废碱液 设备法兰 V1730-M25B -11/80 FV~0.35 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 未检查已紧固 液压力矩扳手 +89 70区 V-1747 撇油罐 撇油/废碱液 设备法兰 V1747-M25A -11/80 FV~0.35 28 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M39 24 60 2450NM 未检查已紧固 液压力矩扳手 +90 70区 V-1747 撇油罐 撇油/废碱液 设备法兰 V1747-M25B -11/80 FV~0.35 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 未检查已紧固 液压力矩扳手 +91 70区 V-1747 撇油罐 撇油/废碱液 设备法兰 V1747-M25C -11/80 FV~0.35 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 未检查已紧固 液压力矩扳手 +92 70区 V-1747 撇油罐 撇油/废碱液 设备法兰 V1747-M25D -11/80 FV~0.35 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 未检查已紧固 液压力矩扳手 +93 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +94 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +95 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +96 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +97 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +98 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +99 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +100 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +101 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +102 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +103 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +104 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +105 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +106 70区 T1722A T1722A手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +107 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +108 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +109 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +110 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +111 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +112 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +113 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +114 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +115 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +116 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +117 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +118 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +119 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +120 70区 T1722B T1722B手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +121 70区 T1722B T1722B人孔M25A 20 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M33 24 50 1550NM 未检查已紧固 液压力矩扳手 +122 70区 T1722B T1722B人孔M25B 20 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M33 24 50 1550NM 未检查已紧固 液压力矩扳手 +123 70区 T1722B T1722B人孔M25C 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 未检查已紧固 液压力矩扳手 +124 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +125 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +126 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +127 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +128 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +129 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +130 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +131 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +132 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +133 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +134 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +135 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +136 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +137 70区 T1722S T1722S手孔 10 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) 35CrMoA/30CrMoA 1" 8 41 622NM 未检查已紧固 手动力矩扳手 +138 70区 T1722S T1722S人孔M25A 20 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M33 24 50 1550NM 未检查已紧固 液压力矩扳手 +139 70区 T1722S T1722S人孔M25B 20 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M33 24 50 1550NM 未检查已紧固 液压力矩扳手 +140 70区 T1722S T1722S人孔M25C 24 PN16 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S,OR-C.S) 35CrMoA/30CrMoA M36 24 55 1950NM 未检查已紧固 液压力矩扳手 +"注:1.若法兰为管线上的法兰,法兰编号以管线号-焊口号进行命名(若是两个法兰焊口,则选择数字小的焊口号);若法兰为设备法兰,法兰编号以设备位号-设备口编号进行命名; +2.管道与设备连接的法兰名称定义为管道法兰; +3.螺栓规格按图纸填写,英制螺栓规格直接填写数字(英寸)X长度,公制螺栓填写M+数字(毫米)X长度,如M36 +4.金属缠绕垫-SPIRAL WOUND;八角垫-RJ GASKET(OCTAGON)" diff --git a/excel/90.txt b/excel/90.txt new file mode 100644 index 0000000000000000000000000000000000000000..60679e972745492695cba808dcd38368e58ca276 --- /dev/null +++ b/excel/90.txt @@ -0,0 +1,25 @@ +三江化工轻烃利用装置定力矩紧固法兰清单 +序号 区域 设备位号/管线号 设备名称 工作介质 法兰名称 法兰编号 设计温度 设计压力 法兰规格 压力等级 密封形式 密封垫 螺栓信息 目标扭矩 法兰紧固状态 紧固方式 + NPS PN/Class 类型 材质 螺栓材质 螺栓规格 螺栓数量 螺母对边 +1 903 BFW1119021 管道法兰 BFW1119021-20 -11/165 FV/0.7 10 CL1500 WN-RJ RJ GASKET SOFT IRON A193-B7/ASTM A194-2H 1-7/8" 12 75 4620NM 未检查已紧固 液压力矩扳手 +2 903 BFW1119022 管道法兰 BFW1119022-20 -11/165 FV/0.7 10 CL1500 WN-RJ RJ GASKET SOFT IRON A193-B7/ASTM A194-2H 1-7/8" 12 75 4620NM 未检查已紧固 液压力矩扳手 +3 903 BFW1119023 管道法兰 BFW1119023-20 -11/165 FV/0.7 10 CL1500 WN-RJ RJ GASKET SOFT IRON A193-B7/ASTM A194-2H 1-7/8" 12 75 4620NM 未检查已紧固 液压力矩扳手 +4 903 BFW1119024 管道法兰 BFW1119024-1 -11/165 20.50 6 CL1500 WN-RJ RJ GASKET SOFT IRON A193-B7/ASTM A194-2H 1-3/8" 12 55 1734NM 已检查已紧固 液压力矩扳手 +5 903 BFW1119025 管道法兰 BFW1119025-1 -11/165 20.50 6 CL1500 WN-RJ RJ GASKET SOFT IRON A193-B7/ASTM A194-2H 1-3/8" 12 55 1734NM 已检查已紧固 液压力矩扳手 +6 903 BFW1119026 管道法兰 BFW1119026-1 -11/165 20.50 6 CL1500 WN-RJ RJ GASKET SOFT IRON A193-B7/ASTM A194-2H 1-3/8" 12 55 1734NM 已检查已紧固 液压力矩扳手 +7 911 BFW1119028 管道法兰 BFW1119028-14 -11/165 20.50 6 CL1500 WN-RJ RJ GASKET SOFT IRON A193-B7/ASTM A194-2H 1-3/8" 12 55 1734NM 已检查已紧固 液压力矩扳手 +8 911 BFW1119028 管道法兰 BFW1119028-18 -11/165 20.50 6 CL1500 WN-RJ RJ GASKET SOFT IRON A193-B7/ASTM A194-2H 1-3/8" 12 55 1734NM 已检查已紧固 液压力矩扳手 +9 911 BFW1119567 管道法兰 BFW1119567-14 -11/165 20.50 6 CL1500 WN-RJ RJ GASKET SOFT IRON A193-B7/ASTM A194-2H 1-3/8" 12 55 1734NM 已检查已紧固 液压力矩扳手 +10 911 BFW1119567 管道法兰 BFW1119567-18 -11/165 20.50 6 CL1500 WN-RJ RJ GASKET SOFT IRON A193-B7/ASTM A194-2H 1-3/8" 12 55 1734NM 已检查已紧固 液压力矩扳手 +11 911 BFW1119568 管道法兰 BFW1119568-15 -11/165 20.50 6 CL1500 WN-RJ RJ GASKET SOFT IRON A193-B7/ASTM A194-2H 1-3/8" 12 55 1734NM 已检查已紧固 液压力矩扳手 +12 911 BFW1119568 管道法兰 BFW1119568-19 -11/165 20.50 6 CL1500 WN-RJ RJ GASKET SOFT IRON A193-B7/ASTM A194-2H 1-3/8" 12 55 1734NM 已检查已紧固 液压力矩扳手 +13 911 CFL1110033 管道法兰 CFL1110033-25 -11/120 3.00 30 CL300 WN-RF SPIRAL WOUND 316LS A194-8M 1-3/8" 36 55 1550NM 已检查已紧固 液压力矩扳手 +14 911 CFL1110033 管道法兰 CFL1110033-26 -11/120 3.00 30 CL300 WN-RF SPIRAL WOUND 316LS A194-8M 1-3/8" 36 55 1550NM 已检查已紧固 液压力矩扳手 +15 911 HS1119001 管道法兰 HS1119001-145 -11/450 FV/4.7 16 CL600 WN-RF SPIRAL WOUND 304S A193-B16/ASTM A194-4 1-1/2" 20 60 2291NM 未检查已紧固 液压力矩扳手 +16 911 MS1119001 管道法兰 MS1119001-1 -11/340 FV/1.8 24 CL300 WN-RF SPIRAL WOUND 304S A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +17 903 P1110008 管道法兰 P1110008-1 -11/120 3.00 24 CL300 WN-RF SPIRAL WOUND 304S A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +18 902 SBD1111006 管道法兰 SBD1111006-8 -11/165 FV/0.35 24 CL300 WN-RF SPIRAL WOUND 304S A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +"注:1.若法兰为管线上的法兰,法兰编号以管线号-焊口号进行命名(若是两个法兰焊口,则选择数字小的焊口号);若法兰为设备法兰,法兰编号以设备位号-设备口编号进行命名; +2.管道与设备连接的法兰名称定义为管道法兰; +3.螺栓规格按图纸填写,英制螺栓规格直接填写数字(英寸)X长度,公制螺栓填写M+数字(毫米)X长度,如M36 +4.金属缠绕垫-SPIRAL WOUND;八角垫-RJ GASKET(OCTAGON)" diff --git a/excel/91.txt b/excel/91.txt new file mode 100644 index 0000000000000000000000000000000000000000..c28482af28996c0729fe2a09ee685745d14bdc94 --- /dev/null +++ b/excel/91.txt @@ -0,0 +1,21 @@ +三江化工轻烃利用装置定力矩紧固法兰清单 +序号 区域 设备位号/管线号 设备名称 工作介质 法兰名称 法兰编号 设计温度 设计压力 法兰规格 压力等级 密封形式 密封垫 螺栓信息 目标扭矩 法兰紧固状态 紧固方式 + NPS PN/Class 类型 材质 螺栓材质 螺栓规格 螺栓数量 螺母对边 +1 91区 911-HS1119001 / 高压蒸汽 管道法兰 911-HS1119001-213 -11/405 FV/4.7 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) ASTM A193-B16/ASTM A194-4 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +1 91区 911-HS1119001 / 高压蒸汽 管道法兰 911-HS1119001-214 -11/405 FV/4.7 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) ASTM A193-B16/ASTM A194-4 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +2 91区 911-HS1119001 / 高压蒸汽 管道法兰 911-HS1119001-222 -11/405 FV/4.7 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) ASTM A193-B16/ASTM A194-4 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +2 91区 911-HS1119001 / 高压蒸汽 管道法兰 911-HS1119001-223 -11/405 FV/4.7 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) ASTM A193-B16/ASTM A194-4 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +3 91区 911-HS1119025 / 高压蒸汽 管道法兰 911-HS1119025-4 -11/405 FV/4.7 16 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) ASTM A193-B16/ASTM A194-4 1-1/2" 20 60 2291NM 未检查已紧固 液压力矩扳手 +3 91区 911-HS1119025 / 高压蒸汽 管道法兰 911-HS1119025-7 -11/405 FV/4.7 16 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) ASTM A193-B16/ASTM A194-4 1-1/2" 20 60 2291NM 未检查已紧固 液压力矩扳手 +4 91区 911-HS1119071 / 高压蒸汽 管道法兰 911-HS1119071-22 -11/405 FV/4.7 20 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) ASTM A193-B16/ASTM A194-4 1-5/8" 24 65 2957NM 未检查已紧固 液压力矩扳手 +5 91区 911-LS1119003 / 低压蒸汽 管道法兰 911-LS1119003-1 -11/405 FV/1.8 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +5 91区 911-LS1119003 / 低压蒸汽 管道法兰 911-LS1119003-2 -11/405 FV/1.8 30 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-3/8" 36 55 1734NM 未检查已紧固 液压力矩扳手 +6 91区 911-MS1119003 / 中压蒸汽 管道法兰 911-MS1119003-26 -11/405 FV/4.7 24 CL300 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-C.S) ASTM A193-B7/ASTM A194-2H 1-1/2" 24 60 2291NM 未检查已紧固 液压力矩扳手 +7 91区 911-MS1119012 / 中压蒸汽 管道法兰 911-MS1119012-1 -11/405 FV/4.7 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) ASTM A193-B16/ASTM A194-4 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +7 91区 911-MS1119012 / 中压蒸汽 管道法兰 911-MS1119012-2 -11/405 FV/4.7 24 CL600 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) ASTM A193-B16/ASTM A194-4 1-7/8" 24 75 4620NM 未检查已紧固 液压力矩扳手 +10 91区 911-HFL1119009 68寸界区阀 火炬气 管道法兰 911-HFL1119009-1 88 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) ASTM A193-B7/ASTM A194-2H 1" 114 41 622NM 未检查已紧固 液压力矩扳手 +11 91区 911-HFL1119009 68寸界区阀 火炬气 管道法兰 911-HFL1119009-6 88 CL150 RF 金属缠绕垫 304S.S/GRAP.(IR-304S.S, OR-304S.S) ASTM A193-B7/ASTM A194-2H 1" 114 41 622NM 未检查已紧固 液压力矩扳手 +"注:1.若法兰为管线上的法兰,法兰编号以管线号-焊口号进行命名(若是两个法兰焊口,则选择数字小的焊口号);若法兰为设备法兰,法兰编号以设备位号-设备口编号进行命名; +2.管道与设备连接的法兰名称定义为管道法兰; +3.螺栓规格按图纸填写,英制螺栓规格直接填写数字(英寸)X长度,公制螺栓填写M+数字(毫米)X长度,如M36 +4.金属缠绕垫-SPIRAL WOUND;八角垫-RJ GASKET(OCTAGON)" diff --git a/public/.htaccess b/public/.htaccess index cbc786893a070c031adbbd5f9cfb3ec3051bdf0b..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,8 +0,0 @@ - - Options +FollowSymlinks -Multiviews - RewriteEngine On - - RewriteCond %{REQUEST_FILENAME} !-d - RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] - diff --git a/public/nginx.htaccess b/public/nginx.htaccess new file mode 100644 index 0000000000000000000000000000000000000000..da0a607ba558629b4fec707a13e42ff2c2895a74 --- /dev/null +++ b/public/nginx.htaccess @@ -0,0 +1,6 @@ + +location / { + if (!-e $request_filename){ + rewrite ^(.*)$ /index.php?s=$1 last; break; + } +} \ No newline at end of file diff --git a/public/static/flange/sop/12-2.jpg b/public/static/flange/sop/12-2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..482bd09acd4841fdb395d13a5a357e0a7cede744 Binary files /dev/null and b/public/static/flange/sop/12-2.jpg differ diff --git a/public/static/flange/sop/12-4.jpg b/public/static/flange/sop/12-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..98d21fe5e39d9bdb8179670f806fb32e7529a318 Binary files /dev/null and b/public/static/flange/sop/12-4.jpg differ diff --git a/public/static/flange/sop/16-2.jpg b/public/static/flange/sop/16-2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..add1b273d9f50baf90c5440d42dc8119021c1382 Binary files /dev/null and b/public/static/flange/sop/16-2.jpg differ diff --git a/public/static/flange/sop/16-4.jpg b/public/static/flange/sop/16-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b42d8392308177a83b45fc638440f0eae9d5736a Binary files /dev/null and b/public/static/flange/sop/16-4.jpg differ diff --git a/public/static/flange/sop/20-2.jpg b/public/static/flange/sop/20-2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a0b25470c23c5b34b11067fe421d776cab45ebd1 Binary files /dev/null and b/public/static/flange/sop/20-2.jpg differ diff --git a/public/static/flange/sop/20-4.jpg b/public/static/flange/sop/20-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f4810bc40123673a84c7259cb8ea97f47f5fbfec Binary files /dev/null and b/public/static/flange/sop/20-4.jpg differ diff --git a/public/static/flange/sop/24-2.jpg b/public/static/flange/sop/24-2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..42f71a31af9e7cc2f0f9306cad2a2237f3d40d9d Binary files /dev/null and b/public/static/flange/sop/24-2.jpg differ diff --git a/public/static/flange/sop/24-4.jpg b/public/static/flange/sop/24-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..dfee5aa86b8ed47d9689c125f1f159740be5ed17 Binary files /dev/null and b/public/static/flange/sop/24-4.jpg differ diff --git a/public/static/flange/sop/28-2.jpg b/public/static/flange/sop/28-2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f6baf7330bb6f2ed77f3e8b8da4f93c223615435 Binary files /dev/null and b/public/static/flange/sop/28-2.jpg differ diff --git a/public/static/flange/sop/28-4.jpg b/public/static/flange/sop/28-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d2f8dbaf80bdfd89b3ad68249df27fea79e8f6b5 Binary files /dev/null and b/public/static/flange/sop/28-4.jpg differ diff --git a/public/static/flange/sop/32-2.jpg b/public/static/flange/sop/32-2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..65e5ab843a28d5a3e777a825864bb1aba1b47a66 Binary files /dev/null and b/public/static/flange/sop/32-2.jpg differ diff --git a/public/static/flange/sop/32-4.jpg b/public/static/flange/sop/32-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2550d034e13125840ed7eab3c8fc47143822f912 Binary files /dev/null and b/public/static/flange/sop/32-4.jpg differ diff --git a/public/static/flange/sop/36-2.jpg b/public/static/flange/sop/36-2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..dde01f6c4d89831de1ced760d9e18bf80434e989 Binary files /dev/null and b/public/static/flange/sop/36-2.jpg differ diff --git a/public/static/flange/sop/36-4.jpg b/public/static/flange/sop/36-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d3782e487f0a6cab10bab552144ab035212a0898 Binary files /dev/null and b/public/static/flange/sop/36-4.jpg differ diff --git a/public/static/flange/sop/4-2.jpg b/public/static/flange/sop/4-2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ef8101ce7d8f399aafa016904c2c9aa30d5870ba Binary files /dev/null and b/public/static/flange/sop/4-2.jpg differ diff --git a/public/static/flange/sop/40-4.jpg b/public/static/flange/sop/40-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e4bbffcaaf8a35b114c6621e959a1f41e53e12c9 Binary files /dev/null and b/public/static/flange/sop/40-4.jpg differ diff --git a/public/static/flange/sop/44-4.jpg b/public/static/flange/sop/44-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8786b8dfbb2de00da440b9072c7ba9b092584196 Binary files /dev/null and b/public/static/flange/sop/44-4.jpg differ diff --git a/public/static/flange/sop/48-4.jpg b/public/static/flange/sop/48-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f543620a0abe27255077ab2c67c9f153078632d5 Binary files /dev/null and b/public/static/flange/sop/48-4.jpg differ diff --git a/public/static/flange/sop/52-4.jpg b/public/static/flange/sop/52-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..aaacbdd2765ae8cae41b45a62aa4a1d377c4546a Binary files /dev/null and b/public/static/flange/sop/52-4.jpg differ diff --git a/public/static/flange/sop/56-4.jpg b/public/static/flange/sop/56-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..916c9a663dfaec3a27b4576c7de04bdfc17ca892 Binary files /dev/null and b/public/static/flange/sop/56-4.jpg differ diff --git a/public/static/flange/sop/60-4.jpg b/public/static/flange/sop/60-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..268d45220b2a0202ee265cf1e24c62113cc928b0 Binary files /dev/null and b/public/static/flange/sop/60-4.jpg differ diff --git a/public/static/flange/sop/64-4.jpg b/public/static/flange/sop/64-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9852f6dd8a63f2ecd2924637484539ef65923fcd Binary files /dev/null and b/public/static/flange/sop/64-4.jpg differ diff --git a/public/static/flange/sop/68-4.jpg b/public/static/flange/sop/68-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ca6b352cd19981f9a889961268c455998a7d9591 Binary files /dev/null and b/public/static/flange/sop/68-4.jpg differ diff --git a/public/static/flange/sop/8-2.jpg b/public/static/flange/sop/8-2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b6e588d3cd1460826b7b6053c97bff378d1bb2f8 Binary files /dev/null and b/public/static/flange/sop/8-2.jpg differ diff --git a/public/static/flange/sop/8-4.jpg b/public/static/flange/sop/8-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7effaab6bb7351ae84f7907c8156697b448df70a Binary files /dev/null and b/public/static/flange/sop/8-4.jpg differ diff --git a/public/static/flange/sop/80-4.jpg b/public/static/flange/sop/80-4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..60d7c0fb9bbcdb6fcd909407213d8cba9c0d6aba Binary files /dev/null and b/public/static/flange/sop/80-4.jpg differ diff --git a/public/static/flange/tpl.png b/public/static/flange/tpl.png new file mode 100644 index 0000000000000000000000000000000000000000..a33610106fca71fb4ac707012d27ddfbab2707a2 Binary files /dev/null and b/public/static/flange/tpl.png differ diff --git a/public/storage/20250311/20b808dab5c27c40f240f596ed086abc.png b/public/storage/20250311/20b808dab5c27c40f240f596ed086abc.png new file mode 100644 index 0000000000000000000000000000000000000000..358d5f30041614ebb073146e96a5f35603a8b3c7 Binary files /dev/null and b/public/storage/20250311/20b808dab5c27c40f240f596ed086abc.png differ diff --git a/public/storage/20250312/04f2662f2bb9fb69e371747c1749d94a.png b/public/storage/20250312/04f2662f2bb9fb69e371747c1749d94a.png new file mode 100644 index 0000000000000000000000000000000000000000..824dfc4039eadeb694199c88f9fd899592803193 Binary files /dev/null and b/public/storage/20250312/04f2662f2bb9fb69e371747c1749d94a.png differ diff --git a/public/storage/20250312/11b5b3830864ab1e1d3dbb4a11654c9c.png b/public/storage/20250312/11b5b3830864ab1e1d3dbb4a11654c9c.png new file mode 100644 index 0000000000000000000000000000000000000000..824dfc4039eadeb694199c88f9fd899592803193 Binary files /dev/null and b/public/storage/20250312/11b5b3830864ab1e1d3dbb4a11654c9c.png differ diff --git a/public/storage/20250312/17d57149e207b81dae2216bbbb23a6ce.png b/public/storage/20250312/17d57149e207b81dae2216bbbb23a6ce.png new file mode 100644 index 0000000000000000000000000000000000000000..824dfc4039eadeb694199c88f9fd899592803193 Binary files /dev/null and b/public/storage/20250312/17d57149e207b81dae2216bbbb23a6ce.png differ diff --git a/public/storage/20250312/3e00b645d8db0c0bb87d1370b2e06b61.png b/public/storage/20250312/3e00b645d8db0c0bb87d1370b2e06b61.png new file mode 100644 index 0000000000000000000000000000000000000000..824dfc4039eadeb694199c88f9fd899592803193 Binary files /dev/null and b/public/storage/20250312/3e00b645d8db0c0bb87d1370b2e06b61.png differ diff --git a/public/storage/20250312/48c3be4782fc0861a805f6fe2ab73405.jpeg b/public/storage/20250312/48c3be4782fc0861a805f6fe2ab73405.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..805d923d33ab5864ca3a6480aaf69274a7f31f8d Binary files /dev/null and b/public/storage/20250312/48c3be4782fc0861a805f6fe2ab73405.jpeg differ diff --git a/public/storage/20250312/5821d56fdc46acd97661379d19f23c14.png b/public/storage/20250312/5821d56fdc46acd97661379d19f23c14.png new file mode 100644 index 0000000000000000000000000000000000000000..7b2d90e1988d8b73bdabe9556873385ef0fc4880 Binary files /dev/null and b/public/storage/20250312/5821d56fdc46acd97661379d19f23c14.png differ diff --git a/public/storage/20250312/790f6b32930d2556b6f707794fe57ecd.png b/public/storage/20250312/790f6b32930d2556b6f707794fe57ecd.png new file mode 100644 index 0000000000000000000000000000000000000000..7b2d90e1988d8b73bdabe9556873385ef0fc4880 Binary files /dev/null and b/public/storage/20250312/790f6b32930d2556b6f707794fe57ecd.png differ diff --git a/public/storage/20250312/80bb86a821c6b6122f3d150794dae1d3.png b/public/storage/20250312/80bb86a821c6b6122f3d150794dae1d3.png new file mode 100644 index 0000000000000000000000000000000000000000..105bf6d608f3c584e9430c48410d98285f661cb2 Binary files /dev/null and b/public/storage/20250312/80bb86a821c6b6122f3d150794dae1d3.png differ diff --git a/public/storage/20250312/f5c22809cc3eac735e83de3ce46b7885.png b/public/storage/20250312/f5c22809cc3eac735e83de3ce46b7885.png new file mode 100644 index 0000000000000000000000000000000000000000..824dfc4039eadeb694199c88f9fd899592803193 Binary files /dev/null and b/public/storage/20250312/f5c22809cc3eac735e83de3ce46b7885.png differ diff --git a/public/storage/20250312/f945ab3cf2aa1f58d39621e74dc8661d.png b/public/storage/20250312/f945ab3cf2aa1f58d39621e74dc8661d.png new file mode 100644 index 0000000000000000000000000000000000000000..5856f5ca592adb0f4e0947cd29d3b11aee411823 Binary files /dev/null and b/public/storage/20250312/f945ab3cf2aa1f58d39621e74dc8661d.png differ diff --git a/public/storage/20250315/df00df45545d4df4ab5cff5482c15f3c.png b/public/storage/20250315/df00df45545d4df4ab5cff5482c15f3c.png new file mode 100644 index 0000000000000000000000000000000000000000..824dfc4039eadeb694199c88f9fd899592803193 Binary files /dev/null and b/public/storage/20250315/df00df45545d4df4ab5cff5482c15f3c.png differ diff --git a/public/storage/20250316/41b0f3a2181db149d0d2d5021b4caacf.png b/public/storage/20250316/41b0f3a2181db149d0d2d5021b4caacf.png new file mode 100644 index 0000000000000000000000000000000000000000..7b2d90e1988d8b73bdabe9556873385ef0fc4880 Binary files /dev/null and b/public/storage/20250316/41b0f3a2181db149d0d2d5021b4caacf.png differ diff --git a/public/storage/20250317/4bace320db7d3e0ef9b5f78fed906b7d.jpeg b/public/storage/20250317/4bace320db7d3e0ef9b5f78fed906b7d.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..393562e525823f623be19d9169fa2f0e5e921123 Binary files /dev/null and b/public/storage/20250317/4bace320db7d3e0ef9b5f78fed906b7d.jpeg differ diff --git a/public/storage/20250401/23aef05bd9a6a2cabf2a6b7b5c76a37d.png b/public/storage/20250401/23aef05bd9a6a2cabf2a6b7b5c76a37d.png new file mode 100644 index 0000000000000000000000000000000000000000..6c155f6b278c65e2430356cb6ab7db4a681e6308 Binary files /dev/null and b/public/storage/20250401/23aef05bd9a6a2cabf2a6b7b5c76a37d.png differ diff --git a/public/storage/20250401/c0fb3d5a69ea7417973478feddbca88c.png b/public/storage/20250401/c0fb3d5a69ea7417973478feddbca88c.png new file mode 100644 index 0000000000000000000000000000000000000000..a7715bc0930dc12eb052d62c5f81fcde9d09f2aa Binary files /dev/null and b/public/storage/20250401/c0fb3d5a69ea7417973478feddbca88c.png differ diff --git a/public/storage/20250401/d44627a44058528da0874b51b51a6dc7.png b/public/storage/20250401/d44627a44058528da0874b51b51a6dc7.png new file mode 100644 index 0000000000000000000000000000000000000000..a7715bc0930dc12eb052d62c5f81fcde9d09f2aa Binary files /dev/null and b/public/storage/20250401/d44627a44058528da0874b51b51a6dc7.png differ diff --git a/public/storage/20250406/4c8077138563280cc459c930d0ab4336.png b/public/storage/20250406/4c8077138563280cc459c930d0ab4336.png new file mode 100644 index 0000000000000000000000000000000000000000..890515fbc36ae79547d631b8520ef61b7d3dea8c Binary files /dev/null and b/public/storage/20250406/4c8077138563280cc459c930d0ab4336.png differ diff --git a/public/storage/20250409/c341a854483752c15fd8a8016f3d43c6.jpg b/public/storage/20250409/c341a854483752c15fd8a8016f3d43c6.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e9a83e3f6a4500f76ed96fe8e0b85243efea7bf2 Binary files /dev/null and b/public/storage/20250409/c341a854483752c15fd8a8016f3d43c6.jpg differ diff --git a/public/storage/20250515/1e043428a119272e82d6c8aa94a477a7.jpeg b/public/storage/20250515/1e043428a119272e82d6c8aa94a477a7.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..aa988976bd537776b354eaedb6b0b62243b42e74 Binary files /dev/null and b/public/storage/20250515/1e043428a119272e82d6c8aa94a477a7.jpeg differ diff --git a/public/storage/20250515/483beb3f8b21cbe75cd57698888a5734.jpeg b/public/storage/20250515/483beb3f8b21cbe75cd57698888a5734.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..aa988976bd537776b354eaedb6b0b62243b42e74 Binary files /dev/null and b/public/storage/20250515/483beb3f8b21cbe75cd57698888a5734.jpeg differ diff --git a/public/storage/20250515/bd5d03f98730eddda6560f00e1154cb3.jpeg b/public/storage/20250515/bd5d03f98730eddda6560f00e1154cb3.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..aa988976bd537776b354eaedb6b0b62243b42e74 Binary files /dev/null and b/public/storage/20250515/bd5d03f98730eddda6560f00e1154cb3.jpeg differ diff --git a/web/.gitignore b/web/.gitignore index 31ce814cf0e80cdf251a38a22116a1c5d72618a5..66df583161338f642d6e9f1ef16eb1402fdd84a2 100644 --- a/web/.gitignore +++ b/web/.gitignore @@ -8,3 +8,4 @@ src/.umi-test .mfsu .swc /pnpm-lock.yaml +.user.ini \ No newline at end of file diff --git a/web/.npmrc b/web/.npmrc index 297bfce7e7bcbc91643aab0823985c9a21fcaae6..3acac410c3786b0200385dc4aa7f9c2285a8fbb4 100644 --- a/web/.npmrc +++ b/web/.npmrc @@ -1,5 +1,4 @@ shamefully-hoist=true auto-install-peers=true strict-peer-dependencies=false -registry=https://registry.npmmirror.com -@aie:registry = http://192.168.162.22:4873 +registry=https://registry.npmmirror.com \ No newline at end of file diff --git a/web/config/config.ts b/web/config/config.ts index 43b40c8e4059832166a25794c7731c3edb1a75e7..5dd7a976650a59aacd258f4dad76c5493457f790 100644 --- a/web/config/config.ts +++ b/web/config/config.ts @@ -1,11 +1,16 @@ import { defineConfig } from '@umijs/max'; +import sassDts from 'vite-plugin-sass-dts'; export default defineConfig({ hash: true, model: {}, initialState: {}, layout: {}, - locale: {}, + locale: { + default: 'zh-CN', // 默认语言 + baseNavigator: true, // 从浏览器设置中获取语言 + antd: true, // 是否开启 antd 的国际化 + }, antd: {}, request: {}, access: {}, @@ -18,7 +23,9 @@ export default defineConfig({ mfsu: { strategy: 'normal', }, - vite: {}, + vite: { + plugins: [sassDts()], + }, // mako: {}, esbuildMinifyIIFE: true, npmClient: 'pnpm', @@ -33,7 +40,7 @@ export default defineConfig({ }, proxy: { '/api': { - target: 'http://flims.local.10000.wiki/', + target: 'http://flims.local.10000.wiki', changeOrigin: true, pathRewrite: { '^/api': '' }, }, diff --git a/web/dist/assets/ACard-fe84a303.js b/web/dist/assets/ACard-af46c9c2.js similarity index 81% rename from web/dist/assets/ACard-fe84a303.js rename to web/dist/assets/ACard-af46c9c2.js index 1860eaaa1b49d2186b99fd6523565990a274acbb..cec3a15985fd750f6bc74209bf6f91c88d718801 100644 --- a/web/dist/assets/ACard-fe84a303.js +++ b/web/dist/assets/ACard-af46c9c2.js @@ -1 +1 @@ -import{j as t}from"./umi-2ee4055f.js";import{S as A}from"./index-7b54423a.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-426be59b.js";const s={display:"block",width:42,height:42},l=()=>t.jsxs(A.Group,{direction:"row",children:[t.jsx(A,{statistic:{title:"支付金额",value:2176356,icon:t.jsx("img",{style:s,src:"https://gw.alipayobjects.com/mdn/rms_7bc6d8/afts/img/A*dr_0RKvVzVwAAAAAAAAAAABkARQnAQ",alt:"icon"})}}),t.jsx(A,{statistic:{title:"访客数",value:3001568,icon:t.jsx("img",{style:s,src:"https://gw.alipayobjects.com/mdn/rms_7bc6d8/afts/img/A*-jVKQJgA1UgAAAAAAAAAAABkARQnAQ",alt:"icon"})}}),t.jsx(A,{statistic:{title:"成功订单数",value:12305,icon:t.jsx("img",{style:s,src:"https://gw.alipayobjects.com/mdn/rms_7bc6d8/afts/img/A*FPlYQoTNlBEAAAAAAAAAAABkARQnAQ",alt:"icon"})}}),t.jsx(A,{statistic:{title:"浏览量",value:9644561232,icon:t.jsx("img",{style:s,src:"https://gw.alipayobjects.com/mdn/rms_7bc6d8/afts/img/A*pUkAQpefcx8AAAAAAAAAAABkARQnAQ",alt:"icon"})}})]});export{l as default}; +import{j as t}from"./umi-5f6aeac9.js";import{S as A}from"./index-7b6639e6.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-e3aca980.js";const s={display:"block",width:42,height:42},l=()=>t.jsxs(A.Group,{direction:"row",children:[t.jsx(A,{statistic:{title:"支付金额",value:2176356,icon:t.jsx("img",{style:s,src:"https://gw.alipayobjects.com/mdn/rms_7bc6d8/afts/img/A*dr_0RKvVzVwAAAAAAAAAAABkARQnAQ",alt:"icon"})}}),t.jsx(A,{statistic:{title:"访客数",value:3001568,icon:t.jsx("img",{style:s,src:"https://gw.alipayobjects.com/mdn/rms_7bc6d8/afts/img/A*-jVKQJgA1UgAAAAAAAAAAABkARQnAQ",alt:"icon"})}}),t.jsx(A,{statistic:{title:"成功订单数",value:12305,icon:t.jsx("img",{style:s,src:"https://gw.alipayobjects.com/mdn/rms_7bc6d8/afts/img/A*FPlYQoTNlBEAAAAAAAAAAABkARQnAQ",alt:"icon"})}}),t.jsx(A,{statistic:{title:"浏览量",value:9644561232,icon:t.jsx("img",{style:s,src:"https://gw.alipayobjects.com/mdn/rms_7bc6d8/afts/img/A*pUkAQpefcx8AAAAAAAAAAABkARQnAQ",alt:"icon"})}})]});export{l as default}; diff --git a/web/dist/assets/ActionButton-a9da0b15.js b/web/dist/assets/ActionButton-ff803f23.js similarity index 47% rename from web/dist/assets/ActionButton-a9da0b15.js rename to web/dist/assets/ActionButton-ff803f23.js index 66406aacb6ef806c80f1e00450762a82b5d076c8..08bab29569f9ee2fc8ec238b211bac61e625c89e 100644 --- a/web/dist/assets/ActionButton-a9da0b15.js +++ b/web/dist/assets/ActionButton-ff803f23.js @@ -1 +1 @@ -import{r as s,y as k,B as x,z as B}from"./umi-2ee4055f.js";function a(r){return!!(r!=null&&r.then)}const E=r=>{const{type:d,children:v,prefixCls:p,buttonProps:m,close:u,autoFocus:g,emitEvent:h,isSilent:i,quitOnNullishReturnValue:y,actionFn:o}=r,n=s.useRef(!1),f=s.useRef(null),[C,c]=k(!1),l=function(){u==null||u.apply(void 0,arguments)};s.useEffect(()=>{let t=null;return g&&(t=setTimeout(()=>{var e;(e=f.current)===null||e===void 0||e.focus({preventScroll:!0})})),()=>{t&&clearTimeout(t)}},[]);const R=t=>{a(t)&&(c(!0),t.then(function(){c(!1,!0),l.apply(void 0,arguments),n.current=!1},e=>{if(c(!1,!0),n.current=!1,!(i!=null&&i()))return Promise.reject(e)}))},b=t=>{if(n.current)return;if(n.current=!0,!o){l();return}let e;if(h){if(e=o(t),y&&!a(e)){n.current=!1,l(t);return}}else if(o.length)e=o(u),n.current=!1;else if(e=o(),!a(e)){l();return}R(e)};return s.createElement(x,Object.assign({},B(d),{onClick:b,loading:C,prefixCls:p},m,{ref:f}),v)},P=E;export{P as A}; +import{b as s,p as x,B as y,q as B}from"./umi-5f6aeac9.js";function a(r){return!!(r!=null&&r.then)}const E=r=>{const{type:d,children:p,prefixCls:v,buttonProps:m,close:u,autoFocus:g,emitEvent:b,isSilent:i,quitOnNullishReturnValue:h,actionFn:o}=r,n=s.useRef(!1),f=s.useRef(null),[C,c]=x(!1),l=function(){u==null||u.apply(void 0,arguments)};s.useEffect(()=>{let t=null;return g&&(t=setTimeout(()=>{var e;(e=f.current)===null||e===void 0||e.focus({preventScroll:!0})})),()=>{t&&clearTimeout(t)}},[]);const R=t=>{a(t)&&(c(!0),t.then(function(){c(!1,!0),l.apply(void 0,arguments),n.current=!1},e=>{if(c(!1,!0),n.current=!1,!(i!=null&&i()))return Promise.reject(e)}))},k=t=>{if(n.current)return;if(n.current=!0,!o){l();return}let e;if(b){if(e=o(t),h&&!a(e)){n.current=!1,l(t);return}}else if(o.length)e=o(u),n.current=!1;else if(e=o(),!a(e)){l();return}R(e)};return s.createElement(y,Object.assign({},B(d),{onClick:k,loading:C,prefixCls:v},m,{ref:f}),p)},P=E;export{P as A}; diff --git a/web/dist/assets/AddGroup-324fd85c.js b/web/dist/assets/AddGroup-324fd85c.js deleted file mode 100644 index 9a293e869537bdf5efde810ca6e7cbbe3b1c481e..0000000000000000000000000000000000000000 --- a/web/dist/assets/AddGroup-324fd85c.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,ad as a,V as o}from"./umi-2ee4055f.js";import{A as s}from"./group-832bb4bd.js";import{B as m}from"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";const F=t=>{const r=[{title:"分组名称",dataIndex:"name",initialValue:"必填",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}},{title:"父节点",dataIndex:"parent_id",valueType:"treeSelect",initialValue:"0",fieldProps:{options:t.parentNode,fieldNames:{label:"name",value:"group_id",children:"children"}},formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}},{title:"排序",dataIndex:"sort",valueType:"digit"}];return e.jsx(e.Fragment,{children:e.jsx(m,{trigger:e.jsx(a,{}),layoutType:"ModalForm",modalProps:{width:500},initialValues:{},onFinish:async i=>(await s(i),o.success("添加成功"),await t.getGroupList(),!0),columns:r})})};export{F as default}; diff --git a/web/dist/assets/AddGroup-83161c89.js b/web/dist/assets/AddGroup-83161c89.js new file mode 100644 index 0000000000000000000000000000000000000000..031d3af828ddca8821537ad7f895feeb75ab6e9d --- /dev/null +++ b/web/dist/assets/AddGroup-83161c89.js @@ -0,0 +1 @@ +import{j as e,aj as a,a1 as o}from"./umi-5f6aeac9.js";import{A as s}from"./group-d8dc7c8e.js";import{B as m}from"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";const F=t=>{const r=[{title:"分组名称",dataIndex:"name",initialValue:"必填",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}},{title:"父节点",dataIndex:"parent_id",valueType:"treeSelect",initialValue:"0",fieldProps:{options:t.parentNode,fieldNames:{label:"name",value:"group_id",children:"children"}},formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}},{title:"排序",dataIndex:"sort",valueType:"digit"}];return e.jsx(e.Fragment,{children:e.jsx(m,{trigger:e.jsx(a,{}),layoutType:"ModalForm",modalProps:{width:500},initialValues:{},onFinish:async i=>(await s(i),o.success("添加成功"),await t.getGroupList(),!0),columns:r})})};export{F as default}; diff --git a/web/dist/assets/AddMoneyLog-a8e141bb.js b/web/dist/assets/AddMoneyLog-a8e141bb.js new file mode 100644 index 0000000000000000000000000000000000000000..465b3f985eeecf5bbaf24dcae27582bf814ed4b2 --- /dev/null +++ b/web/dist/assets/AddMoneyLog-a8e141bb.js @@ -0,0 +1 @@ +import{r as c,b as t,j as e,B as g,a1 as y,P as f,a0 as j,a5 as S,a6 as l}from"./umi-5f6aeac9.js";import{S as u}from"./index-e3aca980.js";import{T as n}from"./index-d4ea9132.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import{P as b}from"./index-872d0bf8.js";import{P as M}from"./index-f4ebd759.js";import{P as v}from"./index-34d06e04.js";import{M as P}from"./index-0da8d099.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";const m={vagueSearchApi:"/admin/user.user/vagueSearch",upUserMoneyApi:"/admin/user.userMoneyLog/add"};async function w(s){return c(m.vagueSearchApi,{method:"get",params:s})}async function A(s){return c(m.upUserMoneyApi,{method:"post",data:s})}const D=()=>{const[s,d]=t.useState(),[o,p]=t.useState(),[i,h]=t.useState(0),x=async()=>{let{data:a}=await w({search:s});return a.data.map(r=>({label:e.jsxs(j,{children:[e.jsx(S,{src:r.avatar,style:{backgroundColor:"#87d068"},icon:e.jsx(l,{}),size:24}),e.jsxs(n,{icon:e.jsx(l,{}),color:"geekblue",children:["ID:",r.id]}),r.username?e.jsxs(n,{color:"purple",children:["Name:",r.username]}):"",r.mobile?e.jsxs(n,{color:"magenta",children:["Mobile:",r.mobile]}):""]}),value:r.id,data:r}))};return e.jsx(e.Fragment,{children:e.jsx(P,{trigger:e.jsx(g,{type:"primary",children:"修改用户余额"}),onFinish:async a=>(await A(a),y.success("更新成功!"),!0),children:e.jsxs(f.Group,{children:[e.jsx(b,{width:"xl",name:"id",label:"选择用户(id,用户名,手机号模糊搜索)",rules:[{required:!0,message:"请选择用户!"}],debounceTime:2,params:{search:s},fieldProps:{showSearch:!0,onSearch:a=>{d(a)},filterOption:!1,allowClear:!0,onSelect:(a,r)=>{console.log(r.data),p(r.data)}},request:x}),e.jsx(M,{width:"md",name:"money",label:"变更金额",fieldProps:{onChange:a=>{h(a)}},placeholder:"请输入变更金额",rules:[{required:!0,message:"请输入变动金额!"}]}),e.jsx(u,{title:"用户余额",value:o==null?void 0:o.money,precision:2,suffix:"¥"}),e.jsx(u,{title:"修改后余额",value:o&&o.money&&i?Number(o.money)+i:0,precision:2,suffix:"¥"}),e.jsx(v,{width:"xl",name:"remark",label:"备注",rules:[{required:!0,message:"请输入管理员备注"}],placeholder:"请输入备注"})]})})})};export{D as default}; diff --git a/web/dist/assets/AddMoneyLog-d85337dd.js b/web/dist/assets/AddMoneyLog-d85337dd.js deleted file mode 100644 index 5ec0613c55f5fc9049849c36f19e1f77e1c2f0e7..0000000000000000000000000000000000000000 --- a/web/dist/assets/AddMoneyLog-d85337dd.js +++ /dev/null @@ -1 +0,0 @@ -import{X as c,r as t,j as e,B as g,V as y,P as f,S as j,A as S,$ as l}from"./umi-2ee4055f.js";import{S as u}from"./index-426be59b.js";import{T as n}from"./index-9456f6ef.js";import"./index-8ec65540.js";import"./index-e10ebcfa.js";import"./index-d81f4240.js";import{P as b}from"./index-ca47b438.js";import{P as M}from"./index-f4422a84.js";import{P as v}from"./index-8a5a2994.js";import{M as P}from"./index-5259f52c.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";const m={vagueSearchApi:"/admin/user.user/vagueSearch",upUserMoneyApi:"/admin/user.userMoneyLog/add"};async function A(a){return c(m.vagueSearchApi,{method:"get",params:a})}async function w(a){return c(m.upUserMoneyApi,{method:"post",data:a})}const D=()=>{const[a,d]=t.useState(),[o,p]=t.useState(),[i,h]=t.useState(0),x=async()=>{let{data:s}=await A({search:a});return s.data.map(r=>({label:e.jsxs(j,{children:[e.jsx(S,{src:r.avatar,style:{backgroundColor:"#87d068"},icon:e.jsx(l,{}),size:24}),e.jsxs(n,{icon:e.jsx(l,{}),color:"geekblue",children:["ID:",r.id]}),r.username?e.jsxs(n,{color:"purple",children:["Name:",r.username]}):"",r.mobile?e.jsxs(n,{color:"magenta",children:["Mobile:",r.mobile]}):""]}),value:r.id,data:r}))};return e.jsx(e.Fragment,{children:e.jsx(P,{trigger:e.jsx(g,{type:"primary",children:"修改用户余额"}),onFinish:async s=>(await w(s),y.success("更新成功!"),!0),children:e.jsxs(f.Group,{children:[e.jsx(b,{width:"xl",name:"id",label:"选择用户(id,用户名,手机号模糊搜索)",rules:[{required:!0,message:"请选择用户!"}],debounceTime:2,params:{search:a},fieldProps:{showSearch:!0,onSearch:s=>{d(s)},filterOption:!1,allowClear:!0,onSelect:(s,r)=>{console.log(r.data),p(r.data)}},request:x}),e.jsx(M,{width:"md",name:"money",label:"变更金额",fieldProps:{onChange:s=>{h(s)}},placeholder:"请输入变更金额",rules:[{required:!0,message:"请输入变动金额!"}]}),e.jsx(u,{title:"用户余额",value:o==null?void 0:o.money,precision:2,suffix:"¥"}),e.jsx(u,{title:"修改后余额",value:o&&o.money&&i?Number(o.money)+i:0,precision:2,suffix:"¥"}),e.jsx(v,{width:"xl",name:"remark",label:"备注",rules:[{required:!0,message:"请输入管理员备注"}],placeholder:"请输入备注"})]})})})};export{D as default}; diff --git a/web/dist/assets/AddSettingGroup-dfbefacf.js b/web/dist/assets/AddSettingGroup-dfbefacf.js deleted file mode 100644 index 4bb84a82f2df3bfce508185993100a98f5f628f4..0000000000000000000000000000000000000000 --- a/web/dist/assets/AddSettingGroup-dfbefacf.js +++ /dev/null @@ -1 +0,0 @@ -import{O as o,j as e,B as a,Q as u,U as i,V as l,W as r}from"./umi-2ee4055f.js";import{M as m}from"./index-5259f52c.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";const x=()=>{const[s]=o.useForm();return e.jsxs(m,{title:"新建分组",trigger:e.jsx(a,{type:"primary",icon:e.jsx(u,{}),block:!0,children:"新增分组"}),form:s,autoFocusFirstInput:!0,modalProps:{destroyOnClose:!0,width:400},submitTimeout:2e3,onFinish:async t=>(await i(t),l.success("新建成功"),!0),children:[e.jsx(r,{name:"title",label:"分组标题",tooltip:"最长为 24 位",rules:[{required:!0,message:"此项为必填项"}],placeholder:"请输入标题"}),e.jsx(r,{name:"key",label:"分组 KEY",placeholder:"请输入KEY",rules:[{required:!0,message:"此项为必填项"}]})]})};export{x as default}; diff --git a/web/dist/assets/AddSettingGroup-f4d5b703.js b/web/dist/assets/AddSettingGroup-f4d5b703.js new file mode 100644 index 0000000000000000000000000000000000000000..a9f4700f919842be328aba3175679189dd67addf --- /dev/null +++ b/web/dist/assets/AddSettingGroup-f4d5b703.js @@ -0,0 +1 @@ +import{H as o,j as e,B as a,Q as u,a2 as i,a1 as l,a3 as r}from"./umi-5f6aeac9.js";import{M as m}from"./index-0da8d099.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";const x=()=>{const[s]=o.useForm();return e.jsxs(m,{title:"新建分组",trigger:e.jsx(a,{type:"primary",icon:e.jsx(u,{}),block:!0,children:"新增分组"}),form:s,autoFocusFirstInput:!0,modalProps:{destroyOnClose:!0,width:400},submitTimeout:2e3,onFinish:async t=>(await i(t),l.success("新建成功"),!0),children:[e.jsx(r,{name:"title",label:"分组标题",tooltip:"最长为 24 位",rules:[{required:!0,message:"此项为必填项"}],placeholder:"请输入标题"}),e.jsx(r,{name:"key",label:"分组 KEY",placeholder:"请输入KEY",rules:[{required:!0,message:"此项为必填项"}]})]})};export{x as default}; diff --git a/web/dist/assets/BCard-89fbc3cc.js b/web/dist/assets/BCard-8df239e2.js similarity index 79% rename from web/dist/assets/BCard-89fbc3cc.js rename to web/dist/assets/BCard-8df239e2.js index 7a7053ba4f524f4b83bcfaf78879557f14878f76..1a366bb99f57578f9ea17288c338a740cf89195c 100644 --- a/web/dist/assets/BCard-89fbc3cc.js +++ b/web/dist/assets/BCard-8df239e2.js @@ -1 +1 @@ -import{j as t}from"./umi-2ee4055f.js";import{P as s}from"./ProCard-cee316ff.js";import{S as i}from"./index-7b54423a.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-426be59b.js";const{Statistic:e}=i,d=()=>t.jsxs(s,{title:"数据概览",extra:"2019年9月28日 星期五",split:"vertical",headerBordered:!0,children:[t.jsxs(s,{split:"horizontal",children:[t.jsxs(s,{split:"horizontal",children:[t.jsxs(s,{split:"vertical",children:[t.jsx(i,{statistic:{title:"昨日全部流量",value:234,description:t.jsx(e,{title:"较本月平均流量",value:"8.04%",trend:"down"})}}),t.jsx(i,{statistic:{title:"本月累计流量",value:234,description:t.jsx(e,{title:"月同比",value:"8.04%",trend:"up"})}})]}),t.jsxs(s,{split:"vertical",children:[t.jsx(i,{statistic:{title:"运行中实验",value:"12/56",suffix:"个"}}),t.jsx(i,{statistic:{title:"历史实验总数",value:"134",suffix:"个"}})]})]}),t.jsx(i,{title:"流量走势",chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/_dZIob2NB/zhuzhuangtu.svg",width:"100%"})})]}),t.jsx(i,{title:"流量占用情况",chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/qoYmFMxWY/jieping2021-03-29%252520xiawu4.32.34.png",alt:"大盘",width:"100%"})})]});export{d as default}; +import{j as t}from"./umi-5f6aeac9.js";import{P as s}from"./ProCard-a8f5c5a9.js";import{S as i}from"./index-7b6639e6.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-e3aca980.js";const{Statistic:e}=i,d=()=>t.jsxs(s,{title:"数据概览",extra:"2019年9月28日 星期五",split:"vertical",headerBordered:!0,children:[t.jsxs(s,{split:"horizontal",children:[t.jsxs(s,{split:"horizontal",children:[t.jsxs(s,{split:"vertical",children:[t.jsx(i,{statistic:{title:"昨日全部流量",value:234,description:t.jsx(e,{title:"较本月平均流量",value:"8.04%",trend:"down"})}}),t.jsx(i,{statistic:{title:"本月累计流量",value:234,description:t.jsx(e,{title:"月同比",value:"8.04%",trend:"up"})}})]}),t.jsxs(s,{split:"vertical",children:[t.jsx(i,{statistic:{title:"运行中实验",value:"12/56",suffix:"个"}}),t.jsx(i,{statistic:{title:"历史实验总数",value:"134",suffix:"个"}})]})]}),t.jsx(i,{title:"流量走势",chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/_dZIob2NB/zhuzhuangtu.svg",width:"100%"})})]}),t.jsx(i,{title:"流量占用情况",chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/qoYmFMxWY/jieping2021-03-29%252520xiawu4.32.34.png",alt:"大盘",width:"100%"})})]});export{d as default}; diff --git a/web/dist/assets/CCard-84ec098e.js b/web/dist/assets/CCard-84ec098e.js new file mode 100644 index 0000000000000000000000000000000000000000..1d7ccd6a92c0bdcaa88e7aad1460f91deab21f74 --- /dev/null +++ b/web/dist/assets/CCard-84ec098e.js @@ -0,0 +1 @@ +import{j as t}from"./umi-5f6aeac9.js";import{R as s}from"./index-85806890.js";import{P as d}from"./ProCard-a8f5c5a9.js";import{S as e}from"./index-7b6639e6.js";import{T as p,a as l}from"./index-04808238.js";import"./createLoading-e07c13ae.js";import"./react-content-loader.es-3bd9b17f.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-e3aca980.js";const{Statistic:i}=e,w=()=>{const a={height:100,autoFit:!0,padding:0,data:[264,417,438,887,309,397,550,575,563,430],smooth:!0},n={height:100,autoFit:!0,data:[274,337,81,497,666,219,269],tooltip:{customContent:function(c,u){var o,r;return`NO.${c}: ${(r=(o=u[0])==null?void 0:o.data2)==null?void 0:r.y.toFixed(2)}`}},color:"#1890ff"};return t.jsxs(d,{split:"horizontal",children:[t.jsx(e,{colSpan:6,title:"财年业绩目标",statistic:{value:82.6,suffix:"亿",description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"up"})},chart:t.jsxs("div",{style:{display:"flex",justifyContent:"space-around"},children:[t.jsx(s,{size:80,title:"增长率",percent:.7098}),t.jsx(s,{size:80,title:"完成率",percent:.8698}),t.jsx(s,{size:80,title:"业绩",percent:.8898})]}),footer:t.jsxs(t.Fragment,{children:[t.jsx(i,{value:"70.98%",title:"财年业绩完成率",layout:"horizontal"}),t.jsx(i,{value:"86.98%",title:"去年同期业绩完成率",layout:"horizontal"}),t.jsx(i,{value:"88.98%",title:"前年同期业绩完成率",layout:"horizontal"})]})}),t.jsx(e,{statistic:{title:"财年总收入",value:601987768,description:t.jsx(i,{title:"日同比",value:"6.15%",trend:"up"})},chart:t.jsx(p,{...n}),children:t.jsx(i,{title:"大盘总收入",value:1982312,layout:"vertical",description:t.jsx(i,{title:"日同比",value:"6.15%",trend:"down"})})}),t.jsx(e,{statistic:{title:"当日排名",value:6,description:t.jsx(i,{title:"日同比",value:"3.85%",trend:"down"})},chart:t.jsx(l,{...a}),children:t.jsx(i,{title:"近7日收入",value:17458,layout:"vertical",description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"up"})})}),t.jsx(e,{statistic:{title:"财年业绩收入排名",value:2,description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"up"})},chart:t.jsx(l,{...a}),children:t.jsx(i,{title:"月付费个数",value:601,layout:"vertical",description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"down"})})})]})};export{w as default}; diff --git a/web/dist/assets/CCard-c2c5347c.js b/web/dist/assets/CCard-c2c5347c.js deleted file mode 100644 index 3cf61768108e14126a4961966463b9533cb4bc4b..0000000000000000000000000000000000000000 --- a/web/dist/assets/CCard-c2c5347c.js +++ /dev/null @@ -1 +0,0 @@ -import{j as t}from"./umi-2ee4055f.js";import{R as s}from"./index-883cb62c.js";import{P as d}from"./ProCard-cee316ff.js";import{S as e}from"./index-7b54423a.js";import{T as p}from"./index-c02d95b0.js";import{T as l}from"./index-9f6163bb.js";import"./createLoading-2160f924.js";import"./react-content-loader.es-7f7b682d.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-426be59b.js";const{Statistic:i}=e,w=()=>{const a={height:100,autoFit:!0,padding:0,data:[264,417,438,887,309,397,550,575,563,430],smooth:!0},n={height:100,autoFit:!0,data:[274,337,81,497,666,219,269],tooltip:{customContent:function(c,u){var o,r;return`NO.${c}: ${(r=(o=u[0])==null?void 0:o.data2)==null?void 0:r.y.toFixed(2)}`}},color:"#1890ff"};return t.jsxs(d,{split:"horizontal",children:[t.jsx(e,{colSpan:6,title:"财年业绩目标",statistic:{value:82.6,suffix:"亿",description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"up"})},chart:t.jsxs("div",{style:{display:"flex",justifyContent:"space-around"},children:[t.jsx(s,{size:80,title:"增长率",percent:.7098}),t.jsx(s,{size:80,title:"完成率",percent:.8698}),t.jsx(s,{size:80,title:"业绩",percent:.8898})]}),footer:t.jsxs(t.Fragment,{children:[t.jsx(i,{value:"70.98%",title:"财年业绩完成率",layout:"horizontal"}),t.jsx(i,{value:"86.98%",title:"去年同期业绩完成率",layout:"horizontal"}),t.jsx(i,{value:"88.98%",title:"前年同期业绩完成率",layout:"horizontal"})]})}),t.jsx(e,{statistic:{title:"财年总收入",value:601987768,description:t.jsx(i,{title:"日同比",value:"6.15%",trend:"up"})},chart:t.jsx(p,{...n}),children:t.jsx(i,{title:"大盘总收入",value:1982312,layout:"vertical",description:t.jsx(i,{title:"日同比",value:"6.15%",trend:"down"})})}),t.jsx(e,{statistic:{title:"当日排名",value:6,description:t.jsx(i,{title:"日同比",value:"3.85%",trend:"down"})},chart:t.jsx(l,{...a}),children:t.jsx(i,{title:"近7日收入",value:17458,layout:"vertical",description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"up"})})}),t.jsx(e,{statistic:{title:"财年业绩收入排名",value:2,description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"up"})},chart:t.jsx(l,{...a}),children:t.jsx(i,{title:"月付费个数",value:601,layout:"vertical",description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"down"})})})]})};export{w as default}; diff --git a/web/dist/assets/ColumnsFrom-5b592932.js b/web/dist/assets/ColumnsFrom-5b592932.js new file mode 100644 index 0000000000000000000000000000000000000000..2f39408b415499666f9fae71a9dff6d9b3cdf593 --- /dev/null +++ b/web/dist/assets/ColumnsFrom-5b592932.js @@ -0,0 +1 @@ +import{b as r,Y as C,j as t,V as S,B as s,Z as V,$ as h,a0 as q,a1 as x}from"./umi-5f6aeac9.js";import p from"./defaultSql-5ae6b172.js";import F from"./TableConfigContext-596283a5.js";import{F as P}from"./index-6613242c.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./styleChecker-68f8791b.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-25e4c7e3.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";const B={width:"100vw",height:"100vh",position:"fixed",top:0,left:0,zIndex:9999,background:"#fff",paddingBottom:100,overflow:"auto"},E={padding:20,background:"#fff",width:"100%",zIndex:100,flexDirection:"row-reverse"};function se(){const{tableConfig:o,setTableConfig:g}=r.useContext(F),{getDictionaryData:c,dictEnum:y}=C("dictModel"),[I,u]=r.useState(!1),[n,a]=r.useState([]),[f,m]=r.useState([]),w=["select","checkbox","radio","radioButton"],v=[{title:"基本配置",children:[{title:"表单类型",dataIndex:"valueType",valueType:"select",align:"center",tooltip:"生成CRUD表单的类型",valueEnum:y.get("valueType"),fieldProps:(e,{rowKey:i})=>({onChange:l=>{p.hasOwnProperty(l)&&e.setFieldValue(i,{...p[l],...e.getFieldValue(i)})}}),formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},fixed:"left",width:160},{title:"字段名",dataIndex:"dataIndex",tooltip:"作为数据库字段名和列索引",valueType:"text",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},width:160,align:"center",fixed:"left"},{title:"字段备注",dataIndex:"title",valueType:"text",tooltip:"作为表格表头和表单项名称",width:160,align:"center",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},fixed:"left"}]},{title:"生成设置",children:[{title:"查询方式",align:"center",dataIndex:"select",request:async()=>await c("select"),valueType:"text",width:140},{title:"验证规则",dataIndex:"validation",valueType:"select",request:async()=>await c("validation"),align:"center",fieldProps:{mode:"multiple"},tooltip:"内置部分验证规则,需要自定义验证规则请看文档",width:140},{title:"搜索隐藏",dataIndex:"hideInSearch",valueType:"switch",width:100,align:"center"},{title:"表格隐藏",dataIndex:"hideInTable",valueType:"switch",width:100,align:"center"},{title:"表单隐藏",dataIndex:"hideInForm",valueType:"switch",width:100,align:"center"},{title:"数据枚举",dataIndex:"enum",valueType:"textarea",tooltip:"key:label 格式,以换行分割",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},width:160,align:"center",fieldProps:(e,{rowKey:i})=>{let l=e==null?void 0:e.getFieldValue([i,"valueType"]),d=e==null?void 0:e.getFieldValue([i,"isDict"]);return w.includes(l)&&!d?{disabled:!1,autoSize:!0}:{disabled:!0,autoSize:!0}}}]},{title:"数据库配置",children:[{title:"字段类型",dataIndex:"sqlType",valueType:"text",initialValue:"null",tooltip:"请输入正确的数据库类型!",align:"center",width:160},{title:"字段长度",dataIndex:"sqlLength",valueType:"digit",align:"center",width:120},{title:"字段默认值",dataIndex:"defaultValue",valueType:"text",initialValue:"null",tooltip:"支持 null(NULL) 和 empty string(EMPTY STRING) 以及其它非空字符串",align:"center",width:160},{title:"是否主键",dataIndex:"isKey",valueType:"switch",tooltip:"主键只能有一个",initialValue:!1,width:100,align:"center"},{title:"不为空",dataIndex:"null",valueType:"switch",initialValue:!1,width:100,align:"center"},{title:"自动递增",dataIndex:"autoIncrement",valueType:"switch",initialValue:!1,width:100,align:"center"},{title:"无符号",dataIndex:"unsign",valueType:"switch",width:100,align:"center"}]},{title:"Mock 模拟数据",dataIndex:"mock",valueType:"text",align:"center",tooltip:t.jsxs(t.Fragment,{children:["模拟数据格式,请查看文档 ",t.jsx("a",{href:"http://mockjs.com/examples.html",rel:"noreferrer",target:"_blank",children:"Mock"})," "]}),initialValue:"@string",width:220},{title:"操作",valueType:"option",width:100,align:"center",fixed:"right"}],T=()=>{if(n.some((i,l)=>n.some((d,j)=>l!==j&&i.dataIndex===d.dataIndex&&i.title===d.title))){x.warning("字段种存在相同字段名或字段备注!");return}g({...o,columns:n}),x.success("保存字段成功!"),u(!1)},b=S(async e=>{a(e)},200),k=e=>{let i=[...n,{key:e.dataIndex+Date.now().toString(),valueType:e.valueType,title:e.title+n.length,dataIndex:e.dataIndex+n.length,select:e.select,validation:e.validation,hideInForm:e.hideInForm,hideInSearch:e.hideInSearch,hideInTable:e.hideInTable,enum:e.enum,defaultValue:e.defaultValue,isKey:e.isKey,null:e.null,autoIncrement:e.autoIncrement,unsign:e.unsign,mock:e.mock,sqlLength:e.sqlLength,sqlType:e.sqlType}];a(i),m(i.map(l=>l.key))};return t.jsxs(t.Fragment,{children:[t.jsx(s,{onClick:()=>{a(o.columns),m(o.columns.map(e=>e.key)),u(!0)},type:"primary",block:!0,style:{marginTop:10},children:"编辑字段"}),I&&t.jsxs("div",{style:B,children:[t.jsxs(V,{style:{padding:20},children:[t.jsx(h,{span:20,children:p.map((e,i)=>t.jsx("div",{style:{padding:"0 20px",marginBottom:10},children:t.jsxs(q,{wrap:!0,children:[t.jsxs("span",{children:[e.title,":"]}),e.component.map(l=>t.jsx(s,{type:"dashed",onClick:()=>k(l),children:l.title},l.title))]})},i))}),t.jsxs(h,{span:4,style:E,children:[t.jsx(s,{onClick:()=>u(!1),danger:!0,type:"primary",children:"取消保存并返回"}),t.jsx(s,{style:{marginLeft:10},onClick:T,type:"primary",children:"保存并返回"})]})]}),t.jsx(P,{columns:v,rowKey:"key",scroll:{x:1600},value:n,bordered:!0,recordCreatorProps:!1,size:"middle",editable:{type:"multiple",editableKeys:f,actionRender:e=>[t.jsx("a",{onClick:()=>{console.log(123),a(n.filter(i=>i.dataIndex!==e.dataIndex))},children:"删除"},"delete")],onValuesChange:(e,i)=>{b.run(i)}}})]})]})}export{se as default}; diff --git a/web/dist/assets/ColumnsFrom-ac6d1d17.js b/web/dist/assets/ColumnsFrom-ac6d1d17.js deleted file mode 100644 index f12e0a894af5c7ee30a9c280db18e9b358b5e42f..0000000000000000000000000000000000000000 --- a/web/dist/assets/ColumnsFrom-ac6d1d17.js +++ /dev/null @@ -1 +0,0 @@ -import{P as de,j as l,_ as d,O as ue,aZ as M,r as h,R as L,a_ as se,k as O,o as ce,l as ve,aX as D,a$ as A,K as fe,b0 as me,a2 as z,B as $,Q as he,b1 as ge,b2 as ye,w as xe,x as U,Y as we,i as be,e as pe,f as G,S as Te,V as H}from"./umi-2ee4055f.js";import K from"./defaultSql-5ae6b172.js";import Ie from"./TableConfigContext-e116ad0a.js";import"./index-8ec65540.js";import"./index-e10ebcfa.js";import"./index-d81f4240.js";import{P as Ce}from"./Table-3849f584.js";import"./Table-0e254f81.js";import"./styleChecker-0860b7b3.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./index-8b7fb289.js";import"./index-ea2ed5fc.js";import"./ActionButton-a9da0b15.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";var Re=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],Ve=["record","position","creatorButtonText","newRecordType","parentKey","style"],W=L.createContext(void 0);function Y(e){var w=e.children,p=e.record,C=e.position,R=e.newRecordType,g=e.parentKey,c=h.useContext(W);return L.cloneElement(w,d(d({},w.props),{},{onClick:function(){var y=xe(U().mark(function V(j){var b,T,v,k;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(b=(T=w.props).onClick)===null||b===void 0?void 0:b.call(T,j);case 2:if(k=t.sent,k!==!1){t.next=5;break}return t.abrupt("return");case 5:c==null||(v=c.current)===null||v===void 0||v.addEditRecord(p,{position:C,newRecordType:R,parentKey:g});case 6:case"end":return t.stop()}},V)}));function F(V){return y.apply(this,arguments)}return F}()}))}function J(e){var w,p,C=se(),R=e.onTableChange,g=e.maxLength;e.formItemProps;var c=e.recordCreatorProps,y=e.rowKey;e.controlled;var F=e.defaultValue;e.onChange;var V=e.editableFormRef,j=O(e,Re),b=h.useRef(void 0),T=h.useRef(),v=h.useRef();h.useImperativeHandle(j.actionRef,function(){return T.current},[T.current]);var k=ce(function(){return e.value||F||[]},{value:e.value,onChange:e.onChange}),n=ve(k,2),t=n[0],f=n[1],x=L.useMemo(function(){return typeof y=="function"?y:function(a,s){return a[y]||s}},[y]),P=D(function(a){if(typeof a=="number"&&!e.name){if(a>=t.length)return a;var s=t&&t[a];return x==null?void 0:x(s,a)}if((typeof a=="string"||a>=t.length)&&e.name){var i=t.findIndex(function(r,o){var u;return(x==null||(u=x(r,o))===null||u===void 0?void 0:u.toString())===(a==null?void 0:a.toString())});if(i!==-1)return i}return a});h.useImperativeHandle(V,function(){var a=function(r){var o,u;if(r==null)throw new Error("rowIndex is required");var m=P(r),I=[e.name,(o=m==null?void 0:m.toString())!==null&&o!==void 0?o:""].flat(1).filter(Boolean);return(u=v.current)===null||u===void 0?void 0:u.getFieldValue(I)},s=function(){var r,o=[e.name].flat(1).filter(Boolean);if(Array.isArray(o)&&o.length===0){var u,m=(u=v.current)===null||u===void 0?void 0:u.getFieldsValue();return Array.isArray(m)?m:Object.keys(m).map(function(I){return m[I]})}return(r=v.current)===null||r===void 0?void 0:r.getFieldValue(o)};return d(d({},v.current),{},{getRowData:a,getRowsData:s,setRowData:function(r,o){var u,m;if(r==null)throw new Error("rowIndex is required");var I=P(r),E=[e.name,(u=I==null?void 0:I.toString())!==null&&u!==void 0?u:""].flat(1).filter(Boolean),re=Object.assign({},d(d({},a(r)),o||{})),oe=A({},E,re);return(m=v.current)===null||m===void 0||m.setFieldsValue(oe),!0}})},[P,e.name,v.current]),h.useEffect(function(){e.controlled&&(t||[]).forEach(function(a,s){var i;(i=v.current)===null||i===void 0||i.setFieldsValue(fe({},"".concat(x(a,s)),a))},{})},[me(t),e.controlled]),h.useEffect(function(){if(e.name){var a;v.current=e==null||(a=e.editable)===null||a===void 0?void 0:a.form}},[(w=e.editable)===null||w===void 0?void 0:w.form,e.name]);var S=c||{},X=S.record,q=S.position,Z=S.creatorButtonText,ee=S.newRecordType,te=S.parentKey,ne=S.style,le=O(S,Ve),N=q==="top",_=h.useMemo(function(){return typeof g=="number"&&g<=(t==null?void 0:t.length)?!1:c!==!1&&l.jsx(Y,{record:z(X,t==null?void 0:t.length,t)||{},position:q,parentKey:z(te,t==null?void 0:t.length,t),newRecordType:ee,children:l.jsx($,d(d({type:"dashed",style:d({display:"block",margin:"10px 0",width:"100%"},ne),icon:l.jsx(he,{})},le),{},{children:Z||C.getMessage("editableTable.action.add","添加一行数据")}))})},[c,g,t==null?void 0:t.length]),ae=h.useMemo(function(){return _?N?{components:{header:{wrapper:function(s){var i,r=s.className,o=s.children;return l.jsxs("thead",{className:r,children:[o,l.jsxs("tr",{style:{position:"relative"},children:[l.jsx("td",{colSpan:0,style:{visibility:"hidden"},children:_}),l.jsx("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(i=j.columns)===null||i===void 0?void 0:i.length,children:_})]})]})}}}}:{tableViewRender:function(s,i){var r,o;return l.jsxs(l.Fragment,{children:[(r=(o=e.tableViewRender)===null||o===void 0?void 0:o.call(e,s,i))!==null&&r!==void 0?r:i,_]})}}:{}},[N,_]),B=d({},e.editable),ie=D(function(a,s){var i,r,o;if((i=e.editable)===null||i===void 0||(r=i.onValuesChange)===null||r===void 0||r.call(i,a,s),(o=e.onValuesChange)===null||o===void 0||o.call(e,s,a),e.controlled){var u;e==null||(u=e.onChange)===null||u===void 0||u.call(e,s)}});return(e!=null&&e.onValuesChange||(p=e.editable)!==null&&p!==void 0&&p.onValuesChange||e.controlled&&e!==null&&e!==void 0&&e.onChange)&&(B.onValuesChange=ie),l.jsxs(l.Fragment,{children:[l.jsx(W.Provider,{value:T,children:l.jsx(Ce,d(d(d({search:!1,options:!1,pagination:!1,rowKey:y,revalidateOnFocus:!1},j),ae),{},{tableLayout:"fixed",actionRef:T,onChange:R,editable:d(d({},B),{},{formProps:d({formRef:v},B.formProps)}),dataSource:t,onDataSourceChange:function(s){if(f(s),e.name&&q==="top"){var i,r=A({},[e.name].flat(1).filter(Boolean),s);(i=v.current)===null||i===void 0||i.setFieldsValue(r)}}}))}),e.name?l.jsx(ge,{name:[e.name],children:function(s){var i,r;if(!b.current)return b.current=t,null;var o=M(s,[e.name].flat(1)),u=o==null?void 0:o.find(function(m,I){var E;return!ye(m,(E=b.current)===null||E===void 0?void 0:E[I])});return b.current=t,u&&(e==null||(i=e.editable)===null||i===void 0||(r=i.onValuesChange)===null||r===void 0||r.call(i,u,o)),null}}):null]})}function Q(e){var w=de.useFormInstance();return e.name?l.jsx(ue.Item,d(d({style:{maxWidth:"100%"},shouldUpdate:function(C,R){var g=[e.name].flat(1);try{return JSON.stringify(M(C,g))!==JSON.stringify(M(R,g))}catch{return!0}}},e==null?void 0:e.formItemProps),{},{name:e.name,children:l.jsx(J,d(d({tableLayout:"fixed",scroll:{x:"max-content"}},e),{},{editable:d(d({},e.editable),{},{form:w})}))})):l.jsx(J,d({tableLayout:"fixed",scroll:{x:"max-content"}},e))}Q.RecordCreator=Y;const je={width:"100vw",height:"100vh",position:"fixed",top:0,left:0,zIndex:9999,background:"#fff",paddingBottom:100,overflow:"auto"},Se={padding:20,background:"#fff",width:"100%",zIndex:100,flexDirection:"row-reverse"};function nt(){const{tableConfig:e,setTableConfig:w}=h.useContext(Ie),{getDictionaryData:p,dictEnum:C}=we("dictModel"),[R,g]=h.useState(!1),[c,y]=h.useState([]),[F,V]=h.useState([]),j=["select","checkbox","radio","radioButton"],b=[{title:"基本配置",children:[{title:"表单类型",dataIndex:"valueType",valueType:"select",align:"center",tooltip:"生成CRUD表单的类型",valueEnum:C.get("valueType"),fieldProps:(n,{rowKey:t})=>({onChange:f=>{K.hasOwnProperty(f)&&n.setFieldValue(t,{...K[f],...n.getFieldValue(t)})}}),formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},fixed:"left",width:160},{title:"字段名",dataIndex:"dataIndex",tooltip:"作为数据库字段名和列索引",valueType:"text",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},width:160,align:"center",fixed:"left"},{title:"字段备注",dataIndex:"title",valueType:"text",tooltip:"作为表格表头和表单项名称",width:160,align:"center",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},fixed:"left"}]},{title:"生成设置",children:[{title:"查询方式",align:"center",dataIndex:"select",request:async()=>await p("select"),valueType:"text",width:140},{title:"验证规则",dataIndex:"validation",valueType:"select",request:async()=>await p("validation"),align:"center",fieldProps:{mode:"multiple"},tooltip:"内置部分验证规则,需要自定义验证规则请看文档",width:140},{title:"搜索隐藏",dataIndex:"hideInSearch",valueType:"switch",width:100,align:"center"},{title:"表格隐藏",dataIndex:"hideInTable",valueType:"switch",width:100,align:"center"},{title:"表单隐藏",dataIndex:"hideInForm",valueType:"switch",width:100,align:"center"},{title:"数据枚举",dataIndex:"enum",valueType:"textarea",tooltip:"key:label 格式,以换行分割",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},width:160,align:"center",fieldProps:(n,{rowKey:t})=>{let f=n==null?void 0:n.getFieldValue([t,"valueType"]),x=n==null?void 0:n.getFieldValue([t,"isDict"]);return j.includes(f)&&!x?{disabled:!1,autoSize:!0}:{disabled:!0,autoSize:!0}}}]},{title:"数据库配置",children:[{title:"字段类型",dataIndex:"sqlType",valueType:"text",initialValue:"null",tooltip:"请输入正确的数据库类型!",align:"center",width:160},{title:"字段长度",dataIndex:"sqlLength",valueType:"digit",align:"center",width:120},{title:"字段默认值",dataIndex:"defaultValue",valueType:"text",initialValue:"null",tooltip:"支持 null(NULL) 和 empty string(EMPTY STRING) 以及其它非空字符串",align:"center",width:160},{title:"是否主键",dataIndex:"isKey",valueType:"switch",tooltip:"主键只能有一个",initialValue:!1,width:100,align:"center"},{title:"不为空",dataIndex:"null",valueType:"switch",initialValue:!1,width:100,align:"center"},{title:"自动递增",dataIndex:"autoIncrement",valueType:"switch",initialValue:!1,width:100,align:"center"},{title:"无符号",dataIndex:"unsign",valueType:"switch",width:100,align:"center"}]},{title:"Mock 模拟数据",dataIndex:"mock",valueType:"text",align:"center",tooltip:l.jsxs(l.Fragment,{children:["模拟数据格式,请查看文档 ",l.jsx("a",{href:"http://mockjs.com/examples.html",rel:"noreferrer",target:"_blank",children:"Mock"})," "]}),initialValue:"@string",width:220},{title:"操作",valueType:"option",width:100,align:"center",fixed:"right"}],T=()=>{if(c.some((t,f)=>c.some((x,P)=>f!==P&&t.dataIndex===x.dataIndex&&t.title===x.title))){H.warning("字段种存在相同字段名或字段备注!");return}w({...e,columns:c}),H.success("保存字段成功!"),g(!1)},v=be(async n=>{y(n)},200),k=n=>{let t=[...c,{key:n.dataIndex+Date.now().toString(),valueType:n.valueType,title:n.title+c.length,dataIndex:n.dataIndex+c.length,select:n.select,validation:n.validation,hideInForm:n.hideInForm,hideInSearch:n.hideInSearch,hideInTable:n.hideInTable,enum:n.enum,defaultValue:n.defaultValue,isKey:n.isKey,null:n.null,autoIncrement:n.autoIncrement,unsign:n.unsign,mock:n.mock,sqlLength:n.sqlLength,sqlType:n.sqlType}];y(t),V(t.map(f=>f.key))};return l.jsxs(l.Fragment,{children:[l.jsx($,{onClick:()=>{y(e.columns),V(e.columns.map(n=>n.key)),g(!0)},type:"primary",block:!0,style:{marginTop:10},children:"编辑字段"}),R&&l.jsxs("div",{style:je,children:[l.jsxs(pe,{style:{padding:20},children:[l.jsx(G,{span:20,children:K.map((n,t)=>l.jsx("div",{style:{padding:"0 20px",marginBottom:10},children:l.jsxs(Te,{wrap:!0,children:[l.jsxs("span",{children:[n.title,":"]}),n.component.map(f=>l.jsx($,{type:"dashed",onClick:()=>k(f),children:f.title},f.title))]})},t))}),l.jsxs(G,{span:4,style:Se,children:[l.jsx($,{onClick:()=>g(!1),danger:!0,type:"primary",children:"取消保存并返回"}),l.jsx($,{style:{marginLeft:10},onClick:T,type:"primary",children:"保存并返回"})]})]}),l.jsx(Q,{columns:b,rowKey:"key",scroll:{x:1600},value:c,bordered:!0,recordCreatorProps:!1,size:"middle",editable:{type:"multiple",editableKeys:F,actionRender:n=>[l.jsx("a",{onClick:()=>{console.log(123),y(c.filter(t=>t.dataIndex!==n.dataIndex))},children:"删除"},"delete")],onValuesChange:(n,t)=>{v.run(t)}}})]})]})}export{nt as default}; diff --git a/web/dist/assets/CrudFrom-6a26468a.js b/web/dist/assets/CrudFrom-1ef18330.js similarity index 79% rename from web/dist/assets/CrudFrom-6a26468a.js rename to web/dist/assets/CrudFrom-1ef18330.js index b55b7b6702d47f139503e71f067aef8bd97ca0ee..2036aff99c36a8423cf9d31048053528b1b62ab6 100644 --- a/web/dist/assets/CrudFrom-6a26468a.js +++ b/web/dist/assets/CrudFrom-1ef18330.js @@ -1 +1 @@ -import{r as l,j as t}from"./umi-2ee4055f.js";import p from"./TableConfigContext-e116ad0a.js";import{B as d}from"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";const i=[{title:"数据表名称",dataIndex:"sqlTableName",valueType:"text",fieldProps:{placeholder:"请输入数据表名称"},tooltip:"必填,不带数据表前缀,生成自动添加"},{title:"数据库备注",dataIndex:"sqlTableRemark",valueType:"text"},{title:"生成文件名",dataIndex:"name",valueType:"text",tooltip:"请使用大驼峰命名"},{title:"控制器目录",dataIndex:"controllerPath",valueType:"text",fieldProps:{placeholder:"请输入路径",addonBefore:"app/admin/controller/"},tooltip:"将生成(app/admin/controller/ + 输入路径 + 文件名 + Controller.php)文件, 如果在控制器根目录则省略不填"},{title:"模型目录",dataIndex:"modelPath",valueType:"text",fieldProps:{placeholder:"请输入模型路径",addonBefore:"app/admin/model/"},tooltip:"将生成(app/admin/model/ + 输入路径 + 文件名 + Model.php)文件, 如果在模型根目录则省略不填"},{title:"验证器目录",dataIndex:"validatePath",valueType:"text",fieldProps:{placeholder:"请输入验证器路径",addonBefore:"app/admin/validate/"},tooltip:"将生成(app/admin/validate/ + 输入路径 + 文件名 + .php)文件, 如果在验证器根目录则省略不填"},{title:"前端页面目录",dataIndex:"pagePath",valueType:"text",fieldProps:{placeholder:"请输入前端页面目录",addonBefore:"src/pages/backend/"},tooltip:"将生成(web/admin/src/pages/backend/ + 输入路径 + 文件夹(文件名) + .tsx)文件, 如果在前端页面根目录则省略不填,如果自行迁移前端项目路径请在 .env 文件中修改路径"},{valueType:"switch",title:"开启软删除",dataIndex:"autoDeletetime",fieldProps:{style:{width:"200px"}}}],y=()=>{const{tableConfig:a,setTableConfig:r}=l.useContext(p),o=l.useRef();return l.useEffect(()=>{var e;a&&((e=o.current)==null||e.setFieldsValue(a.crudConfig))},[a]),t.jsx(t.Fragment,{children:t.jsx(d,{onValuesChange:()=>{var e;return r({...a,crudConfig:(e=o.current)==null?void 0:e.getFieldsValue()})},layoutType:"Form",layout:"inline",colProps:{span:8},labelCol:{span:7},grid:!0,initialValues:{name:"TableName",controllerPath:"",modelPath:"",validatePath:"",pagePath:""},formRef:o,columns:i,submitter:{render:()=>t.jsx(t.Fragment,{})}})})};export{y as default}; +import{b as l,j as t}from"./umi-5f6aeac9.js";import p from"./TableConfigContext-596283a5.js";import{B as d}from"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";const i=[{title:"数据表名称",dataIndex:"sqlTableName",valueType:"text",fieldProps:{placeholder:"请输入数据表名称"},tooltip:"必填,不带数据表前缀,生成自动添加"},{title:"数据库备注",dataIndex:"sqlTableRemark",valueType:"text"},{title:"生成文件名",dataIndex:"name",valueType:"text",tooltip:"请使用大驼峰命名"},{title:"控制器目录",dataIndex:"controllerPath",valueType:"text",fieldProps:{placeholder:"请输入路径",addonBefore:"app/admin/controller/"},tooltip:"将生成(app/admin/controller/ + 输入路径 + 文件名 + Controller.php)文件, 如果在控制器根目录则省略不填"},{title:"模型目录",dataIndex:"modelPath",valueType:"text",fieldProps:{placeholder:"请输入模型路径",addonBefore:"app/admin/model/"},tooltip:"将生成(app/admin/model/ + 输入路径 + 文件名 + Model.php)文件, 如果在模型根目录则省略不填"},{title:"验证器目录",dataIndex:"validatePath",valueType:"text",fieldProps:{placeholder:"请输入验证器路径",addonBefore:"app/admin/validate/"},tooltip:"将生成(app/admin/validate/ + 输入路径 + 文件名 + .php)文件, 如果在验证器根目录则省略不填"},{title:"前端页面目录",dataIndex:"pagePath",valueType:"text",fieldProps:{placeholder:"请输入前端页面目录",addonBefore:"src/pages/backend/"},tooltip:"将生成(web/admin/src/pages/backend/ + 输入路径 + 文件夹(文件名) + .tsx)文件, 如果在前端页面根目录则省略不填,如果自行迁移前端项目路径请在 .env 文件中修改路径"},{valueType:"switch",title:"开启软删除",dataIndex:"autoDeletetime",fieldProps:{style:{width:"200px"}}}],b=()=>{const{tableConfig:a,setTableConfig:r}=l.useContext(p),o=l.useRef();return l.useEffect(()=>{var e;a&&((e=o.current)==null||e.setFieldsValue(a.crudConfig))},[a]),t.jsx(t.Fragment,{children:t.jsx(d,{onValuesChange:()=>{var e;return r({...a,crudConfig:(e=o.current)==null?void 0:e.getFieldsValue()})},layoutType:"Form",layout:"inline",colProps:{span:8},labelCol:{span:7},grid:!0,initialValues:{name:"TableName",controllerPath:"",modelPath:"",validatePath:"",pagePath:""},formRef:o,columns:i,submitter:{render:()=>t.jsx(t.Fragment,{})}})})};export{b as default}; diff --git a/web/dist/assets/DragSort-b8e643ec.js b/web/dist/assets/DragSort-2a7a6ccd.js similarity index 87% rename from web/dist/assets/DragSort-b8e643ec.js rename to web/dist/assets/DragSort-2a7a6ccd.js index dcf6aac689c1d9123f09bcee0ebb4c9c169a307e..9643e0697dd5f683193d6d1b8b08ac13e109f157 100644 --- a/web/dist/assets/DragSort-b8e643ec.js +++ b/web/dist/assets/DragSort-2a7a6ccd.js @@ -1,5 +1,5 @@ -import{r as a,R as B,q as Ne,aX as kt,j as P,_ as O,cq as En,k as Je,aU as In,K as Mn,C as Tn,o as An,l as On,bz as Nn,w as Ln,x as zt,V as kn}from"./umi-2ee4055f.js";import zn from"./TableConfigContext-e116ad0a.js";import{P as Pn}from"./Table-3849f584.js";import"./Table-0e254f81.js";import"./styleChecker-0860b7b3.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-8ec65540.js";import"./index-e10ebcfa.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./index-8b7fb289.js";import"./index-ea2ed5fc.js";import"./ActionButton-a9da0b15.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";function jn(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(o=>o(r))},t)}const nt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function xe(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function bt(e){return"nodeType"in e}function F(e){var t,n;return e?xe(e)?e:bt(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function mt(e){const{Document:t}=F(e);return e instanceof t}function Ke(e){return xe(e)?!1:e instanceof F(e).HTMLElement}function qt(e){return e instanceof F(e).SVGElement}function Se(e){return e?xe(e)?e.document:bt(e)?mt(e)?e:Ke(e)||qt(e)?e.ownerDocument:document:document:document}const ee=nt?a.useLayoutEffect:a.useEffect;function yt(e){const t=a.useRef(e);return ee(()=>{t.current=e}),a.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=a.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Pe(e,t){t===void 0&&(t=[e]);const n=a.useRef(e);return ee(()=>{n.current!==e&&(n.current=e)},t),n}function $e(e,t){const n=a.useRef();return a.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Qe(e){const t=yt(e),n=a.useRef(null),r=a.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function ft(e){const t=a.useRef();return a.useEffect(()=>{t.current=e},[e]),t.current}let lt={};function Fe(e,t){return a.useMemo(()=>{if(t)return t;const n=lt[e]==null?0:lt[e]+1;return lt[e]=n,e+"-"+n},[e,t])}function Gt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{const l=Object.entries(s);for(const[c,u]of l){const d=i[c];d!=null&&(i[c]=d+e*u)}return i},{...t})}}const we=Gt(1),Ze=Gt(-1);function Kn(e){return"clientX"in e&&"clientY"in e}function wt(e){if(!e)return!1;const{KeyboardEvent:t}=F(e.target);return t&&e instanceof t}function $n(e){if(!e)return!1;const{TouchEvent:t}=F(e.target);return t&&e instanceof t}function gt(e){if($n(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Kn(e)?{x:e.clientX,y:e.clientY}:null}const je=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[je.Translate.toString(e),je.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Pt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Fn(e){return e.matches(Pt)?e:e.querySelector(Pt)}const Xn={display:"none"};function _n(e){let{id:t,value:n}=e;return B.createElement("div",{id:t,style:Xn},n)}function Yn(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return B.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Un(){const[e,t]=a.useState("");return{announce:a.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Jt=a.createContext(null);function Wn(e){const t=a.useContext(Jt);a.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function Hn(){const[e]=a.useState(()=>new Set),t=a.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[a.useCallback(r=>{let{type:o,event:i}=r;e.forEach(s=>{var l;return(l=s[o])==null?void 0:l.call(s,i)})},[e]),t]}const Vn={draggable:` +import{b as a,R as B,z as Ne,L as kt,j as P,_ as O,cG as En,s as Je,b2 as In,k as Mn,C as Tn,x as An,w as On,bV as Nn,E as Ln,F as zt,a1 as kn}from"./umi-5f6aeac9.js";import zn from"./TableConfigContext-596283a5.js";import{P as Pn}from"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./styleChecker-68f8791b.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-25e4c7e3.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";function jn(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(o=>o(r))},t)}const nt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function xe(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function bt(e){return"nodeType"in e}function $(e){var t,n;return e?xe(e)?e:bt(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function mt(e){const{Document:t}=$(e);return e instanceof t}function Ke(e){return xe(e)?!1:e instanceof $(e).HTMLElement}function qt(e){return e instanceof $(e).SVGElement}function Se(e){return e?xe(e)?e.document:bt(e)?mt(e)?e:Ke(e)||qt(e)?e.ownerDocument:document:document:document}const ee=nt?a.useLayoutEffect:a.useEffect;function yt(e){const t=a.useRef(e);return ee(()=>{t.current=e}),a.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=a.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Pe(e,t){t===void 0&&(t=[e]);const n=a.useRef(e);return ee(()=>{n.current!==e&&(n.current=e)},t),n}function Fe(e,t){const n=a.useRef();return a.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Qe(e){const t=yt(e),n=a.useRef(null),r=a.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function ft(e){const t=a.useRef();return a.useEffect(()=>{t.current=e},[e]),t.current}let lt={};function $e(e,t){return a.useMemo(()=>{if(t)return t;const n=lt[e]==null?0:lt[e]+1;return lt[e]=n,e+"-"+n},[e,t])}function Gt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{const l=Object.entries(s);for(const[c,u]of l){const d=i[c];d!=null&&(i[c]=d+e*u)}return i},{...t})}}const we=Gt(1),Ze=Gt(-1);function Kn(e){return"clientX"in e&&"clientY"in e}function wt(e){if(!e)return!1;const{KeyboardEvent:t}=$(e.target);return t&&e instanceof t}function Fn(e){if(!e)return!1;const{TouchEvent:t}=$(e.target);return t&&e instanceof t}function gt(e){if(Fn(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Kn(e)?{x:e.clientX,y:e.clientY}:null}const je=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[je.Translate.toString(e),je.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Pt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function $n(e){return e.matches(Pt)?e:e.querySelector(Pt)}const _n={display:"none"};function Xn(e){let{id:t,value:n}=e;return B.createElement("div",{id:t,style:_n},n)}function Yn(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return B.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Un(){const[e,t]=a.useState("");return{announce:a.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Jt=a.createContext(null);function Wn(e){const t=a.useContext(Jt);a.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function Hn(){const[e]=a.useState(()=>new Set),t=a.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[a.useCallback(r=>{let{type:o,event:i}=r;e.forEach(s=>{var l;return(l=s[o])==null?void 0:l.call(s,i)})},[e]),t]}const Vn={draggable:` To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel. - `},qn={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Gn(e){let{announcements:t=qn,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Vn}=e;const{announce:i,announcement:s}=Un(),l=Fe("DndLiveRegion"),[c,u]=a.useState(!1);if(a.useEffect(()=>{u(!0)},[]),Wn(a.useMemo(()=>({onDragStart(f){let{active:p}=f;i(t.onDragStart({active:p}))},onDragMove(f){let{active:p,over:g}=f;t.onDragMove&&i(t.onDragMove({active:p,over:g}))},onDragOver(f){let{active:p,over:g}=f;i(t.onDragOver({active:p,over:g}))},onDragEnd(f){let{active:p,over:g}=f;i(t.onDragEnd({active:p,over:g}))},onDragCancel(f){let{active:p,over:g}=f;i(t.onDragCancel({active:p,over:g}))}}),[i,t])),!c)return null;const d=B.createElement(B.Fragment,null,B.createElement(_n,{id:r,value:o.draggable}),B.createElement(Yn,{id:l,announcement:s}));return n?Ne.createPortal(d,n):d}var N;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(N||(N={}));function et(){}function jt(e,t){return a.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Jn(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(r=>r!=null),[...t])}const q=Object.freeze({x:0,y:0});function Qn(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Zn(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function er(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function tr(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function Bt(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const nr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Bt(t,t.left,t.top),i=[];for(const s of r){const{id:l}=s,c=n.get(l);if(c){const u=Qn(Bt(c),o);i.push({id:l,data:{droppableContainer:s,value:u}})}}return i.sort(Zn)};function rr(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=o-r,l=i-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:s}=i,l=n.get(s);if(l){const c=rr(l,t);c>0&&o.push({id:s,data:{droppableContainer:i,value:c}})}}return o.sort(er)};function ir(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Qt(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:q}function sr(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i({...s,top:s.top+e*l.y,bottom:s.bottom+e*l.y,left:s.left+e*l.x,right:s.right+e*l.x}),{...n})}}const ar=sr(1);function lr(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function cr(e,t,n){const r=lr(t);if(!r)return e;const{scaleX:o,scaleY:i,x:s,y:l}=r,c=e.left-s-(1-o)*parseFloat(n),u=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=o?e.width/o:e.width,f=i?e.height/i:e.height;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c}}const ur={ignoreTransform:!1};function De(e,t){t===void 0&&(t=ur);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:d}=F(e).getComputedStyle(e);u&&(n=cr(n,u,d))}const{top:r,left:o,width:i,height:s,bottom:l,right:c}=n;return{top:r,left:o,width:i,height:s,bottom:l,right:c}}function Kt(e){return De(e,{ignoreTransform:!0})}function dr(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function fr(e,t){return t===void 0&&(t=F(e).getComputedStyle(e)),t.position==="fixed"}function gr(e,t){t===void 0&&(t=F(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function xt(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(mt(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Ke(o)||qt(o)||n.includes(o))return n;const i=F(e).getComputedStyle(o);return o!==e&&gr(o,i)&&n.push(o),fr(o,i)?n:r(o.parentNode)}return e?r(e):n}function Zt(e){const[t]=xt(e,1);return t??null}function ct(e){return!nt||!e?null:xe(e)?e:bt(e)?mt(e)||e===Se(e).scrollingElement?window:Ke(e)?e:null:null}function en(e){return xe(e)?e.scrollX:e.scrollLeft}function tn(e){return xe(e)?e.scrollY:e.scrollTop}function ht(e){return{x:en(e),y:tn(e)}}var k;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(k||(k={}));function nn(e){return!nt||!e?!1:e===document.scrollingElement}function rn(e){const t={x:0,y:0},n=nn(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:l,maxScroll:r,minScroll:t}}const hr={x:.2,y:.2};function vr(e,t,n,r,o){let{top:i,left:s,right:l,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=hr);const{isTop:u,isBottom:d,isLeft:f,isRight:p}=rn(e),g={x:0,y:0},b={x:0,y:0},h={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+h.height?(g.y=k.Backward,b.y=r*Math.abs((t.top+h.height-i)/h.height)):!d&&c>=t.bottom-h.height&&(g.y=k.Forward,b.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!p&&l>=t.right-h.width?(g.x=k.Forward,b.x=r*Math.abs((t.right-h.width-l)/h.width)):!f&&s<=t.left+h.width&&(g.x=k.Backward,b.x=r*Math.abs((t.left+h.width-s)/h.width)),{direction:g,speed:b}}function pr(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function on(e){return e.reduce((t,n)=>we(t,ht(n)),q)}function br(e){return e.reduce((t,n)=>t+en(n),0)}function mr(e){return e.reduce((t,n)=>t+tn(n),0)}function yr(e,t){if(t===void 0&&(t=De),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);Zt(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const wr=[["x",["left","right"],br],["y",["top","bottom"],mr]];class St{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=xt(n),o=on(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,s,l]of wr)for(const c of s)Object.defineProperty(this,c,{get:()=>{const u=l(r),d=o[i]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Le{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function xr(e){const{EventTarget:t}=F(e);return e instanceof t?e:Se(e)}function ut(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var V;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(V||(V={}));function $t(e){e.preventDefault()}function Sr(e){e.stopPropagation()}var I;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(I||(I={}));const sn={start:[I.Space,I.Enter],cancel:[I.Esc],end:[I.Space,I.Enter,I.Tab]},Dr=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case I.Right:return{...n,x:n.x+25};case I.Left:return{...n,x:n.x-25};case I.Down:return{...n,y:n.y+25};case I.Up:return{...n,y:n.y-25}}};class an{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Le(Se(n)),this.windowListeners=new Le(F(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(V.Resize,this.handleCancel),this.windowListeners.add(V.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(V.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&yr(r),n(q)}handleKeyDown(t){if(wt(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=sn,coordinateGetter:s=Dr,scrollBehavior:l="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,d=u?{x:u.left,y:u.top}:q;this.referenceCoordinates||(this.referenceCoordinates=d);const f=s(t,{active:n,context:r.current,currentCoordinates:d});if(f){const p=Ze(f,d),g={x:0,y:0},{scrollableAncestors:b}=r.current;for(const h of b){const v=t.code,{isTop:y,isRight:w,isLeft:x,isBottom:E,maxScroll:R,minScroll:M}=rn(h),D=pr(h),S={x:Math.min(v===I.Right?D.right-D.width/2:D.right,Math.max(v===I.Right?D.left:D.left+D.width/2,f.x)),y:Math.min(v===I.Down?D.bottom-D.height/2:D.bottom,Math.max(v===I.Down?D.top:D.top+D.height/2,f.y))},m=v===I.Right&&!w||v===I.Left&&!x,A=v===I.Down&&!E||v===I.Up&&!y;if(m&&S.x!==f.x){const C=h.scrollLeft+p.x,K=v===I.Right&&C<=R.x||v===I.Left&&C>=M.x;if(K&&!p.y){h.scrollTo({left:C,behavior:l});return}K?g.x=h.scrollLeft-C:g.x=v===I.Right?h.scrollLeft-R.x:h.scrollLeft-M.x,g.x&&h.scrollBy({left:-g.x,behavior:l});break}else if(A&&S.y!==f.y){const C=h.scrollTop+p.y,K=v===I.Down&&C<=R.y||v===I.Up&&C>=M.y;if(K&&!p.x){h.scrollTo({top:C,behavior:l});return}K?g.y=h.scrollTop-C:g.y=v===I.Down?h.scrollTop-R.y:h.scrollTop-M.y,g.y&&h.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,we(Ze(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}an.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=sn,onActivation:o}=t,{active:i}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const l=i.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function Ft(e){return!!(e&&"distance"in e)}function Xt(e){return!!(e&&"delay"in e)}class Dt{constructor(t,n,r){var o;r===void 0&&(r=xr(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=Se(s),this.documentListeners=new Le(this.document),this.listeners=new Le(r),this.windowListeners=new Le(F(s)),this.initialCoordinates=(o=gt(i))!=null?o:q,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(V.Resize,this.handleCancel),this.windowListeners.add(V.DragStart,$t),this.windowListeners.add(V.VisibilityChange,this.handleCancel),this.windowListeners.add(V.ContextMenu,$t),this.documentListeners.add(V.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Xt(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Ft(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(V.Click,Sr,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(V.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:l}}=i;if(!o)return;const c=(n=gt(t))!=null?n:q,u=Ze(o,c);if(!r&&l){if(Ft(l)){if(l.tolerance!=null&&ut(u,l.tolerance))return this.handleCancel();if(ut(u,l.distance))return this.handleStart()}if(Xt(l)&&ut(u,l.tolerance))return this.handleCancel();this.handlePending(l,u);return}t.cancelable&&t.preventDefault(),s(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===I.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Cr={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Ct extends Dt{constructor(t){const{event:n}=t,r=Se(n.target);super(t,Cr,r)}}Ct.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Rr={move:{name:"mousemove"},end:{name:"mouseup"}};var vt;(function(e){e[e.RightClick=2]="RightClick"})(vt||(vt={}));class ln extends Dt{constructor(t){super(t,Rr,Se(t.event.target))}}ln.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===vt.RightClick?!1:(r==null||r({event:n}),!0)}}];const dt={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Er extends Dt{constructor(t){super(t,dt)}static setup(){return window.addEventListener(dt.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(dt.move.name,t)};function t(){}}}Er.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var ke;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ke||(ke={}));var tt;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(tt||(tt={}));function Ir(e){let{acceleration:t,activator:n=ke.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:l=tt.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const g=Tr({delta:f,disabled:!i}),[b,h]=Bn(),v=a.useRef({x:0,y:0}),y=a.useRef({x:0,y:0}),w=a.useMemo(()=>{switch(n){case ke.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case ke.DraggableRect:return o}},[n,o,c]),x=a.useRef(null),E=a.useCallback(()=>{const M=x.current;if(!M)return;const D=v.current.x*y.current.x,S=v.current.y*y.current.y;M.scrollBy(D,S)},[]),R=a.useMemo(()=>l===tt.TreeOrder?[...u].reverse():u,[l,u]);a.useEffect(()=>{if(!i||!u.length||!w){h();return}for(const M of R){if((r==null?void 0:r(M))===!1)continue;const D=u.indexOf(M),S=d[D];if(!S)continue;const{direction:m,speed:A}=vr(M,S,w,t,p);for(const C of["x","y"])g[C][m[C]]||(A[C]=0,m[C]=0);if(A.x>0||A.y>0){h(),x.current=M,b(E,s),v.current=A,y.current=m;return}}v.current={x:0,y:0},y.current={x:0,y:0},h()},[t,E,r,h,i,s,JSON.stringify(w),JSON.stringify(g),b,u,R,d,JSON.stringify(p)])}const Mr={x:{[k.Backward]:!1,[k.Forward]:!1},y:{[k.Backward]:!1,[k.Forward]:!1}};function Tr(e){let{delta:t,disabled:n}=e;const r=ft(t);return $e(o=>{if(n||!r||!o)return Mr;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[k.Backward]:o.x[k.Backward]||i.x===-1,[k.Forward]:o.x[k.Forward]||i.x===1},y:{[k.Backward]:o.y[k.Backward]||i.y===-1,[k.Forward]:o.y[k.Forward]||i.y===1}}},[n,t,r])}function Ar(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return $e(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function Or(e,t){return a.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...i]},[]),[e,t])}var Be;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Be||(Be={}));var pt;(function(e){e.Optimized="optimized"})(pt||(pt={}));const _t=new Map;function Nr(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,s]=a.useState(null),{frequency:l,measure:c,strategy:u}=o,d=a.useRef(e),f=v(),p=Pe(f),g=a.useCallback(function(y){y===void 0&&(y=[]),!p.current&&s(w=>w===null?y:w.concat(y.filter(x=>!w.includes(x))))},[p]),b=a.useRef(null),h=$e(y=>{if(f&&!n)return _t;if(!y||y===_t||d.current!==e||i!=null){const w=new Map;for(let x of e){if(!x)continue;if(i&&i.length>0&&!i.includes(x.id)&&x.rect.current){w.set(x.id,x.rect.current);continue}const E=x.node.current,R=E?new St(c(E),E):null;x.rect.current=R,R&&w.set(x.id,R)}return w}return y},[e,i,n,f,c]);return a.useEffect(()=>{d.current=e},[e]),a.useEffect(()=>{f||g()},[n,f]),a.useEffect(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),a.useEffect(()=>{f||typeof l!="number"||b.current!==null||(b.current=setTimeout(()=>{g(),b.current=null},l))},[l,f,g,...r]),{droppableRects:h,measureDroppableContainers:g,measuringScheduled:i!=null};function v(){switch(u){case Be.Always:return!1;case Be.BeforeDragging:return n;default:return!n}}}function cn(e,t){return $e(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Lr(e,t){return cn(e,t)}function kr(e){let{callback:t,disabled:n}=e;const r=yt(t),o=a.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return a.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function rt(e){let{callback:t,disabled:n}=e;const r=yt(t),o=a.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return a.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function zr(e){return new St(De(e),e)}function Yt(e,t,n){t===void 0&&(t=zr);const[r,o]=a.useState(null);function i(){o(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}const d=t(e);return JSON.stringify(c)===JSON.stringify(d)?c:d})}const s=kr({callback(c){if(e)for(const u of c){const{type:d,target:f}=u;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),l=rt({callback:i});return ee(()=>{i(),e?(l==null||l.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),s==null||s.disconnect())},[e]),r}function Pr(e){const t=cn(e);return Qt(e,t)}const Ut=[];function jr(e){const t=a.useRef(e),n=$e(r=>e?r&&r!==Ut&&e&&t.current&&e.parentNode===t.current.parentNode?r:xt(e):Ut,[e]);return a.useEffect(()=>{t.current=e},[e]),n}function Br(e){const[t,n]=a.useState(null),r=a.useRef(e),o=a.useCallback(i=>{const s=ct(i.target);s&&n(l=>l?(l.set(s,ht(s)),new Map(l)):null)},[]);return a.useEffect(()=>{const i=r.current;if(e!==i){s(i);const l=e.map(c=>{const u=ct(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,ht(u)]):null}).filter(c=>c!=null);n(l.length?new Map(l):null),r.current=e}return()=>{s(e),s(i)};function s(l){l.forEach(c=>{const u=ct(c);u==null||u.removeEventListener("scroll",o)})}},[o,e]),a.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>we(i,s),q):on(e):q,[e,t])}function Wt(e,t){t===void 0&&(t=[]);const n=a.useRef(null);return a.useEffect(()=>{n.current=null},t),a.useEffect(()=>{const r=e!==q;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Ze(e,n.current):q}function Kr(e){a.useEffect(()=>{if(!nt)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function $r(e,t){return a.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=s=>{i(s,t)},n},{}),[e,t])}function un(e){return a.useMemo(()=>e?dr(e):null,[e])}const Ht=[];function Fr(e,t){t===void 0&&(t=De);const[n]=e,r=un(n?F(n):null),[o,i]=a.useState(Ht);function s(){i(()=>e.length?e.map(c=>nn(c)?r:new St(t(c),c)):Ht)}const l=rt({callback:s});return ee(()=>{l==null||l.disconnect(),s(),e.forEach(c=>l==null?void 0:l.observe(c))},[e]),o}function Xr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ke(t)?t:e}function _r(e){let{measure:t}=e;const[n,r]=a.useState(null),o=a.useCallback(u=>{for(const{target:d}of u)if(Ke(d)){r(f=>{const p=t(d);return f?{...f,width:p.width,height:p.height}:p});break}},[t]),i=rt({callback:o}),s=a.useCallback(u=>{const d=Xr(u);i==null||i.disconnect(),d&&(i==null||i.observe(d)),r(d?t(d):null)},[t,i]),[l,c]=Qe(s);return a.useMemo(()=>({nodeRef:l,rect:n,setRef:c}),[n,l,c])}const Yr=[{sensor:Ct,options:{}},{sensor:an,options:{}}],Ur={current:{}},Ge={draggable:{measure:Kt},droppable:{measure:Kt,strategy:Be.WhileDragging,frequency:pt.Optimized},dragOverlay:{measure:De}};class ze extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Wr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ze,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:et},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ge,measureDroppableContainers:et,windowRect:null,measuringScheduled:!1},Hr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:et,draggableNodes:new Map,over:null,measureDroppableContainers:et},ot=a.createContext(Hr),dn=a.createContext(Wr);function Vr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ze}}}function qr(e,t){switch(t.type){case N.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case N.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case N.DragEnd:case N.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case N.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new ze(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case N.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new ze(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case N.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new ze(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Gr(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=a.useContext(ot),i=ft(r),s=ft(n==null?void 0:n.id);return a.useEffect(()=>{if(!t&&!r&&i&&s!=null){if(!wt(i)||document.activeElement===i.target)return;const l=o.get(s);if(!l)return;const{activatorNode:c,node:u}=l;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const f=Fn(d);if(f){f.focus();break}}})}},[r,t,o,s,i]),null}function Jr(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Qr(e){return a.useMemo(()=>({draggable:{...Ge.draggable,...e==null?void 0:e.draggable},droppable:{...Ge.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Ge.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function Zr(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=a.useRef(!1),{x:s,y:l}=typeof o=="boolean"?{x:o,y:o}:o;ee(()=>{if(!s&&!l||!t){i.current=!1;return}if(i.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const d=n(u),f=Qt(d,r);if(s||(f.x=0),l||(f.y=0),i.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const p=Zt(u);p&&p.scrollBy({top:f.y,left:f.x})}},[t,s,l,r,n])}const fn=a.createContext({...q,scaleX:1,scaleY:1});var fe;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(fe||(fe={}));const eo=a.memo(function(t){var n,r,o,i;let{id:s,accessibility:l,autoScroll:c=!0,children:u,sensors:d=Yr,collisionDetection:f=or,measuring:p,modifiers:g,...b}=t;const h=a.useReducer(qr,void 0,Vr),[v,y]=h,[w,x]=Hn(),[E,R]=a.useState(fe.Uninitialized),M=E===fe.Initialized,{draggable:{active:D,nodes:S,translate:m},droppable:{containers:A}}=v,C=D!=null?S.get(D):null,K=a.useRef({initial:null,translated:null}),L=a.useMemo(()=>{var j;return D!=null?{id:D,data:(j=C==null?void 0:C.data)!=null?j:Ur,rect:K}:null},[D,C]),G=a.useRef(null),[Ce,Xe]=a.useState(null),[X,_e]=a.useState(null),te=Pe(b,Object.values(b)),Re=Fe("DndDescribedBy",s),Ye=a.useMemo(()=>A.getEnabled(),[A]),$=Qr(p),{droppableRects:ne,measureDroppableContainers:ge,measuringScheduled:Ee}=Nr(Ye,{dragging:M,dependencies:[m.x,m.y],config:$.droppable}),W=Ar(S,D),Ue=a.useMemo(()=>X?gt(X):null,[X]),se=Rn(),re=Lr(W,$.draggable.measure);Zr({activeNode:D!=null?S.get(D):null,config:se.layoutShiftCompensation,initialRect:re,measure:$.draggable.measure});const T=Yt(W,$.draggable.measure,re),Ie=Yt(W?W.parentElement:null),J=a.useRef({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:ne,draggableNodes:S,draggingNode:null,draggingNodeRect:null,droppableContainers:A,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),he=A.getNodeFor((n=J.current.over)==null?void 0:n.id),oe=_r({measure:$.dragOverlay.measure}),ve=(r=oe.nodeRef.current)!=null?r:W,pe=M?(o=oe.rect)!=null?o:T:null,Et=!!(oe.nodeRef.current&&oe.rect),It=Pr(Et?null:T),it=un(ve?F(ve):null),ae=jr(M?he??W:null),We=Fr(ae),He=Jr(g,{transform:{x:m.x-It.x,y:m.y-It.y,scaleX:1,scaleY:1},activatorEvent:X,active:L,activeNodeRect:T,containerNodeRect:Ie,draggingNodeRect:pe,over:J.current.over,overlayNodeRect:oe.rect,scrollableAncestors:ae,scrollableAncestorRects:We,windowRect:it}),Mt=Ue?we(Ue,m):null,Tt=Br(ae),mn=Wt(Tt),yn=Wt(Tt,[T]),be=we(He,mn),me=pe?ar(pe,He):null,Me=L&&me?f({active:L,collisionRect:me,droppableRects:ne,droppableContainers:Ye,pointerCoordinates:Mt}):null,At=tr(Me,"id"),[le,Ot]=a.useState(null),wn=Et?He:we(He,yn),xn=ir(wn,(i=le==null?void 0:le.rect)!=null?i:null,T),st=a.useRef(null),Nt=a.useCallback((j,_)=>{let{sensor:Y,options:ce}=_;if(G.current==null)return;const H=S.get(G.current);if(!H)return;const U=j.nativeEvent,Q=new Y({active:G.current,activeNode:H,event:U,options:ce,context:J,onAbort(z){if(!S.get(z))return;const{onDragAbort:Z}=te.current,ie={id:z};Z==null||Z(ie),w({type:"onDragAbort",event:ie})},onPending(z,ue,Z,ie){if(!S.get(z))return;const{onDragPending:Ae}=te.current,de={id:z,constraint:ue,initialCoordinates:Z,offset:ie};Ae==null||Ae(de),w({type:"onDragPending",event:de})},onStart(z){const ue=G.current;if(ue==null)return;const Z=S.get(ue);if(!Z)return;const{onDragStart:ie}=te.current,Te={activatorEvent:U,active:{id:ue,data:Z.data,rect:K}};Ne.unstable_batchedUpdates(()=>{ie==null||ie(Te),R(fe.Initializing),y({type:N.DragStart,initialCoordinates:z,active:ue}),w({type:"onDragStart",event:Te}),Xe(st.current),_e(U)})},onMove(z){y({type:N.DragMove,coordinates:z})},onEnd:ye(N.DragEnd),onCancel:ye(N.DragCancel)});st.current=Q;function ye(z){return async function(){const{active:Z,collisions:ie,over:Te,scrollAdjustedTranslate:Ae}=J.current;let de=null;if(Z&&Ae){const{cancelDrop:Oe}=te.current;de={activatorEvent:U,active:Z,collisions:ie,delta:Ae,over:Te},z===N.DragEnd&&typeof Oe=="function"&&await Promise.resolve(Oe(de))&&(z=N.DragCancel)}G.current=null,Ne.unstable_batchedUpdates(()=>{y({type:z}),R(fe.Uninitialized),Ot(null),Xe(null),_e(null),st.current=null;const Oe=z===N.DragEnd?"onDragEnd":"onDragCancel";if(de){const at=te.current[Oe];at==null||at(de),w({type:Oe,event:de})}})}}},[S]),Sn=a.useCallback((j,_)=>(Y,ce)=>{const H=Y.nativeEvent,U=S.get(ce);if(G.current!==null||!U||H.dndKit||H.defaultPrevented)return;const Q={active:U};j(Y,_.options,Q)===!0&&(H.dndKit={capturedBy:_.sensor},G.current=ce,Nt(Y,_))},[S,Nt]),Lt=Or(d,Sn);Kr(d),ee(()=>{T&&E===fe.Initializing&&R(fe.Initialized)},[T,E]),a.useEffect(()=>{const{onDragMove:j}=te.current,{active:_,activatorEvent:Y,collisions:ce,over:H}=J.current;if(!_||!Y)return;const U={active:_,activatorEvent:Y,collisions:ce,delta:{x:be.x,y:be.y},over:H};Ne.unstable_batchedUpdates(()=>{j==null||j(U),w({type:"onDragMove",event:U})})},[be.x,be.y]),a.useEffect(()=>{const{active:j,activatorEvent:_,collisions:Y,droppableContainers:ce,scrollAdjustedTranslate:H}=J.current;if(!j||G.current==null||!_||!H)return;const{onDragOver:U}=te.current,Q=ce.get(At),ye=Q&&Q.rect.current?{id:Q.id,rect:Q.rect.current,data:Q.data,disabled:Q.disabled}:null,z={active:j,activatorEvent:_,collisions:Y,delta:{x:H.x,y:H.y},over:ye};Ne.unstable_batchedUpdates(()=>{Ot(ye),U==null||U(z),w({type:"onDragOver",event:z})})},[At]),ee(()=>{J.current={activatorEvent:X,active:L,activeNode:W,collisionRect:me,collisions:Me,droppableRects:ne,draggableNodes:S,draggingNode:ve,draggingNodeRect:pe,droppableContainers:A,over:le,scrollableAncestors:ae,scrollAdjustedTranslate:be},K.current={initial:pe,translated:me}},[L,W,Me,me,S,ve,pe,ne,A,le,ae,be]),Ir({...se,delta:m,draggingRect:me,pointerCoordinates:Mt,scrollableAncestors:ae,scrollableAncestorRects:We});const Dn=a.useMemo(()=>({active:L,activeNode:W,activeNodeRect:T,activatorEvent:X,collisions:Me,containerNodeRect:Ie,dragOverlay:oe,draggableNodes:S,droppableContainers:A,droppableRects:ne,over:le,measureDroppableContainers:ge,scrollableAncestors:ae,scrollableAncestorRects:We,measuringConfiguration:$,measuringScheduled:Ee,windowRect:it}),[L,W,T,X,Me,Ie,oe,S,A,ne,le,ge,ae,We,$,Ee,it]),Cn=a.useMemo(()=>({activatorEvent:X,activators:Lt,active:L,activeNodeRect:T,ariaDescribedById:{draggable:Re},dispatch:y,draggableNodes:S,over:le,measureDroppableContainers:ge}),[X,Lt,L,T,y,Re,S,le,ge]);return B.createElement(Jt.Provider,{value:x},B.createElement(ot.Provider,{value:Cn},B.createElement(dn.Provider,{value:Dn},B.createElement(fn.Provider,{value:xn},u)),B.createElement(Gr,{disabled:(l==null?void 0:l.restoreFocus)===!1})),B.createElement(Gn,{...l,hiddenTextDescribedById:Re}));function Rn(){const j=(Ce==null?void 0:Ce.autoScrollEnabled)===!1,_=typeof c=="object"?c.enabled===!1:c===!1,Y=M&&!j&&!_;return typeof c=="object"?{...c,enabled:Y}:{enabled:Y}}}),to=a.createContext(null),Vt="button",no="Draggable";function ro(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=Fe(no),{activators:s,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=a.useContext(ot),{role:g=Vt,roleDescription:b="draggable",tabIndex:h=0}=o??{},v=(c==null?void 0:c.id)===t,y=a.useContext(v?fn:to),[w,x]=Qe(),[E,R]=Qe(),M=$r(s,t),D=Pe(n);ee(()=>(f.set(t,{id:t,key:i,node:w,activatorNode:E,data:D}),()=>{const m=f.get(t);m&&m.key===i&&f.delete(t)}),[f,t]);const S=a.useMemo(()=>({role:g,tabIndex:h,"aria-disabled":r,"aria-pressed":v&&g===Vt?!0:void 0,"aria-roledescription":b,"aria-describedby":d.draggable}),[r,g,h,v,b,d.draggable]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:S,isDragging:v,listeners:r?void 0:M,node:w,over:p,setNodeRef:x,setActivatorNodeRef:R,transform:y}}function oo(){return a.useContext(dn)}const io="Droppable",so={timeout:25};function ao(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=Fe(io),{active:s,dispatch:l,over:c,measureDroppableContainers:u}=a.useContext(ot),d=a.useRef({disabled:n}),f=a.useRef(!1),p=a.useRef(null),g=a.useRef(null),{disabled:b,updateMeasurementsFor:h,timeout:v}={...so,...o},y=Pe(h??r),w=a.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),g.current=null},v)},[v]),x=rt({callback:w,disabled:b||!s}),E=a.useCallback((S,m)=>{x&&(m&&(x.unobserve(m),f.current=!1),S&&x.observe(S))},[x]),[R,M]=Qe(E),D=Pe(t);return a.useEffect(()=>{!x||!R.current||(x.disconnect(),f.current=!1,x.observe(R.current))},[R,x]),a.useEffect(()=>(l({type:N.RegisterDroppable,element:{id:r,key:i,disabled:n,node:R,rect:p,data:D}}),()=>l({type:N.UnregisterDroppable,key:i,id:r})),[r]),a.useEffect(()=>{n!==d.current.disabled&&(l({type:N.SetDroppableDisabled,id:r,key:i,disabled:n}),d.current.disabled=n)},[r,i,n,l]),{active:s,rect:p,isOver:(c==null?void 0:c.id)===r,node:R,over:c,setNodeRef:M}}const lo=e=>{let{transform:t}=e;return{...t,x:0}};function Rt(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function co(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function Ve(e){return e!==null&&e>=0}function uo(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=Rt(t,r,n),s=t[o],l=i[o];return!l||!s?null:{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}},qe={scaleX:1,scaleY:1},go=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:s}=e;const l=(t=i[n])!=null?t:r;if(!l)return null;if(o===n){const u=i[s];return u?{x:0,y:nn&&o<=s?{x:0,y:-l.height-c,...qe}:o=s?{x:0,y:l.height+c,...qe}:{x:0,y:0,...qe}};function ho(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?nr.map(M=>typeof M=="object"&&"id"in M?M.id:M),[r]),b=s!=null,h=s?g.indexOf(s.id):-1,v=u?g.indexOf(u.id):-1,y=a.useRef(g),w=!uo(g,y.current),x=v!==-1&&h===-1||w,E=fo(i);ee(()=>{w&&b&&d(g)},[w,g,b,d]),a.useEffect(()=>{y.current=g},[g]);const R=a.useMemo(()=>({activeIndex:h,containerId:f,disabled:E,disableTransforms:x,items:g,overIndex:v,useDragOverlay:p,sortedRects:co(g,c),strategy:o}),[h,f,E.draggable,E.droppable,x,g,v,c,p,o]);return B.createElement(vn.Provider,{value:R},t)}const po=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Rt(n,r,o).indexOf(t)},bo=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:s,previousItems:l,previousContainerId:c,transition:u}=e;return!u||!r||l!==i&&o===s?!1:n?!0:s!==o&&t===c},mo={duration:200,easing:"ease"},pn="transform",yo=je.Transition.toString({property:pn,duration:0,easing:"linear"}),wo={roleDescription:"sortable"};function xo(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,s]=a.useState(null),l=a.useRef(n);return ee(()=>{if(!t&&n!==l.current&&r.current){const c=o.current;if(c){const u=De(r.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&s(d)}}n!==l.current&&(l.current=n)},[t,n,r,o]),a.useEffect(()=>{i&&s(null)},[i]),i}function So(e){let{animateLayoutChanges:t=bo,attributes:n,disabled:r,data:o,getNewIndex:i=po,id:s,strategy:l,resizeObserverConfig:c,transition:u=mo}=e;const{items:d,containerId:f,activeIndex:p,disabled:g,disableTransforms:b,sortedRects:h,overIndex:v,useDragOverlay:y,strategy:w}=a.useContext(vn),x=Do(r,g),E=d.indexOf(s),R=a.useMemo(()=>({sortable:{containerId:f,index:E,items:d},...o}),[f,o,E,d]),M=a.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:D,node:S,isOver:m,setNodeRef:A}=ao({id:s,data:R,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:M,...c}}),{active:C,activatorEvent:K,activeNodeRect:L,attributes:G,setNodeRef:Ce,listeners:Xe,isDragging:X,over:_e,setActivatorNodeRef:te,transform:Re}=ro({id:s,data:R,attributes:{...wo,...n},disabled:x.draggable}),Ye=jn(A,Ce),$=!!C,ne=$&&!b&&Ve(p)&&Ve(v),ge=!y&&X,Ee=ge&&ne?Re:null,Ue=ne?Ee??(l??w)({rects:h,activeNodeRect:L,activeIndex:p,overIndex:v,index:E}):null,se=Ve(p)&&Ve(v)?i({id:s,items:d,activeIndex:p,overIndex:v}):E,re=C==null?void 0:C.id,T=a.useRef({activeId:re,items:d,newIndex:se,containerId:f}),Ie=d!==T.current.items,J=t({active:C,containerId:f,isDragging:X,isSorting:$,id:s,index:E,items:d,newIndex:T.current.newIndex,previousItems:T.current.items,previousContainerId:T.current.containerId,transition:u,wasDragging:T.current.activeId!=null}),he=xo({disabled:!J,index:E,node:S,rect:D});return a.useEffect(()=>{$&&T.current.newIndex!==se&&(T.current.newIndex=se),f!==T.current.containerId&&(T.current.containerId=f),d!==T.current.items&&(T.current.items=d)},[$,se,f,d]),a.useEffect(()=>{if(re===T.current.activeId)return;if(re&&!T.current.activeId){T.current.activeId=re;return}const ve=setTimeout(()=>{T.current.activeId=re},50);return()=>clearTimeout(ve)},[re]),{active:C,activeIndex:p,attributes:G,data:R,rect:D,index:E,newIndex:se,items:d,isOver:m,isSorting:$,isDragging:X,listeners:Xe,node:S,overIndex:v,over:_e,setNodeRef:Ye,setActivatorNodeRef:te,setDroppableNodeRef:A,setDraggableNodeRef:Ce,transform:he??Ue,transition:oe()};function oe(){if(he||Ie&&T.current.newIndex===E)return yo;if(!(ge&&!wt(K)||!u)&&($||J))return je.Transition.toString({...u,property:pn})}}function Do(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}I.Down,I.Right,I.Up,I.Left;var Co=["DragHandle","dragSortKey"],Ro=["dragSortKey"],bn=a.createContext({handle:null}),Eo=function(t){var n=So({id:t.id}),r=n.attributes,o=n.listeners,i=n.setNodeRef,s=n.transform,l=n.transition,c=O({transform:je.Transform.toString(s),transition:l},t==null?void 0:t.style),u=t.DragHandle,d=t.dragSortKey,f=Je(t,Co);if(d){var p=[];return B.Children.forEach(f.children,function(g,b){if(g.key===d){var h,v;p.push(P.jsx(bn.Provider,{value:{handle:P.jsx(u,O(O({rowData:g==null||(h=g.props)===null||h===void 0?void 0:h.record,index:g==null||(v=g.props)===null||v===void 0?void 0:v.index},o),r))},children:g},g.key||b));return}p.push(g)}),P.jsx("tr",O(O({},f),{},{ref:i,style:c,children:p}))}return P.jsx("tr",O(O(O({},f),{},{ref:i,style:c},r),o))},Io=B.memo(function(e){e.dragSortKey;var t=Je(e,Ro),n=a.useContext(bn),r=n.handle;return r?P.jsx("td",O(O({},t),{},{children:P.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[r," ",t.children]})})):P.jsx("td",O({},t))}),Mo=function(t){return P.jsx("tbody",O({},t))};function To(e){var t=e.dataSource,n=t===void 0?[]:t,r=e.onDragSortEnd,o=e.DragHandle,i=e.dragSortKey,s=Jn(jt(Ct),jt(ln)),l=a.useCallback(function(g){var b,h=g.active,v=g.over;if(v!=null&&(b=v.id)!==null&&b!==void 0&&b.toString()&&h.id!==(v==null?void 0:v.id)){var y=Rt(n||[],parseInt(h.id),parseInt(v.id));r==null||r(parseInt(h.id),parseInt(v.id),y||[])}},[n,r]),c=kt(function(g){return P.jsx(vo,{items:n.map(function(b,h){return h==null?void 0:h.toString()}),strategy:go,children:P.jsx(Mo,O({},g))})}),u=kt(function(g){var b,h=Object.assign({},(En(g),g)),v=(b=n.findIndex(function(y){var w;return y[(w=e.rowKey)!==null&&w!==void 0?w:"index"]===h["data-row-key"]}))===null||b===void 0?void 0:b.toString();return P.jsx(Eo,O({id:v,dragSortKey:i,DragHandle:o},h),v)}),d=e.components||{};if(i){var f;d.body=O({wrapper:c,row:u,cell:Io},((f=e.components)===null||f===void 0?void 0:f.body)||{})}var p=a.useMemo(function(){return function(g){return P.jsx(eo,{modifiers:[lo],sensors:s,collisionDetection:nr,onDragEnd:l,children:g.children})}},[l,s]);return{DndContext:p,components:d}}var Ao=function(t){return Mn({},t.componentCls,{"&-icon":{marginInlineEnd:8,color:t.colorTextSecondary,cursor:"grab !important",padding:4,fontSize:12,borderRadius:t.borderRadius,"&:hover":{color:t.colorText,backgroundColor:t.colorInfoBg}}})};function Oo(e){return In("DragSortTable",function(t){var n=O(O({},t),{},{componentCls:".".concat(e)});return[Ao(n)]})}var No=["rowKey","dragSortKey","dragSortHandlerRender","onDragSortEnd","onDataSourceChange","defaultData","dataSource","onLoad"],Lo=["rowData","index","className"];function ko(e){var t,n=e.rowKey,r=e.dragSortKey,o=e.dragSortHandlerRender,i=e.onDragSortEnd,s=e.onDataSourceChange,l=e.defaultData,c=e.dataSource,u=e.onLoad,d=Je(e,No),f=a.useContext(Tn.ConfigContext),p=f.getPrefixCls,g=An(function(){return l||[]},{value:c,onChange:s}),b=On(g,2),h=b[0],v=b[1],y=Oo(p("pro-table-drag")),w=y.wrapSSR,x=y.hashId,E=a.useMemo(function(){return function(m){m.rowData,m.index;var A=m.className,C=Je(m,Lo),K=P.jsx(Nn,O(O({},C),{},{className:"".concat(p("pro-table-drag-icon")," ").concat(A||""," ").concat(x||"").trim()})),L=o?o(m==null?void 0:m.rowData,m==null?void 0:m.index):K;return P.jsx("div",O(O({},C),{},{children:L}))}},[p]),R=To({dataSource:h==null?void 0:h.slice(),dragSortKey:r,onDragSortEnd:i,components:e.components,rowKey:n,DragHandle:E}),M=R.components,D=R.DndContext,S=function(){var m=Ln(zt().mark(function A(C){return zt().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return v(C),L.abrupt("return",u==null?void 0:u(C));case 2:case"end":return L.stop()}},A)}));return function(C){return m.apply(this,arguments)}}();return w(P.jsx(Pn,O(O({},d),{},{columns:(t=d.columns)===null||t===void 0?void 0:t.map(function(m){return(m.dataIndex==r||m.key===r)&&(m.render||(m.render=function(){return null})),m}),onLoad:S,rowKey:n,tableViewRender:function(A,C){return P.jsx(D,{children:C})},dataSource:h,components:M,onDataSourceChange:s})))}const zo=[{title:"排序",dataIndex:"sort",width:60,className:"drag-visible"},{title:"字段名",dataIndex:"dataIndex"},{title:"字段备注",dataIndex:"title"}],li=()=>{const{tableConfig:e,setTableConfig:t}=a.useContext(zn),n=(r,o,i)=>{t({...e,columns:i}),kn.success("修改列表排序成功")};return P.jsx(ko,{headerTitle:null,columns:zo,options:!1,search:!1,rowKey:"key",pagination:!1,dataSource:e.columns,dragSortKey:"sort",cardProps:{bodyStyle:{padding:0}},onDragSortEnd:n})};export{li as default}; + `},qn={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Gn(e){let{announcements:t=qn,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Vn}=e;const{announce:i,announcement:s}=Un(),l=$e("DndLiveRegion"),[c,u]=a.useState(!1);if(a.useEffect(()=>{u(!0)},[]),Wn(a.useMemo(()=>({onDragStart(f){let{active:p}=f;i(t.onDragStart({active:p}))},onDragMove(f){let{active:p,over:g}=f;t.onDragMove&&i(t.onDragMove({active:p,over:g}))},onDragOver(f){let{active:p,over:g}=f;i(t.onDragOver({active:p,over:g}))},onDragEnd(f){let{active:p,over:g}=f;i(t.onDragEnd({active:p,over:g}))},onDragCancel(f){let{active:p,over:g}=f;i(t.onDragCancel({active:p,over:g}))}}),[i,t])),!c)return null;const d=B.createElement(B.Fragment,null,B.createElement(Xn,{id:r,value:o.draggable}),B.createElement(Yn,{id:l,announcement:s}));return n?Ne.createPortal(d,n):d}var N;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(N||(N={}));function et(){}function jt(e,t){return a.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Jn(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(r=>r!=null),[...t])}const q=Object.freeze({x:0,y:0});function Qn(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Zn(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function er(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function tr(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function Bt(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const nr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Bt(t,t.left,t.top),i=[];for(const s of r){const{id:l}=s,c=n.get(l);if(c){const u=Qn(Bt(c),o);i.push({id:l,data:{droppableContainer:s,value:u}})}}return i.sort(Zn)};function rr(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=o-r,l=i-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:s}=i,l=n.get(s);if(l){const c=rr(l,t);c>0&&o.push({id:s,data:{droppableContainer:i,value:c}})}}return o.sort(er)};function ir(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Qt(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:q}function sr(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i({...s,top:s.top+e*l.y,bottom:s.bottom+e*l.y,left:s.left+e*l.x,right:s.right+e*l.x}),{...n})}}const ar=sr(1);function lr(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function cr(e,t,n){const r=lr(t);if(!r)return e;const{scaleX:o,scaleY:i,x:s,y:l}=r,c=e.left-s-(1-o)*parseFloat(n),u=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=o?e.width/o:e.width,f=i?e.height/i:e.height;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c}}const ur={ignoreTransform:!1};function De(e,t){t===void 0&&(t=ur);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:d}=$(e).getComputedStyle(e);u&&(n=cr(n,u,d))}const{top:r,left:o,width:i,height:s,bottom:l,right:c}=n;return{top:r,left:o,width:i,height:s,bottom:l,right:c}}function Kt(e){return De(e,{ignoreTransform:!0})}function dr(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function fr(e,t){return t===void 0&&(t=$(e).getComputedStyle(e)),t.position==="fixed"}function gr(e,t){t===void 0&&(t=$(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function xt(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(mt(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Ke(o)||qt(o)||n.includes(o))return n;const i=$(e).getComputedStyle(o);return o!==e&&gr(o,i)&&n.push(o),fr(o,i)?n:r(o.parentNode)}return e?r(e):n}function Zt(e){const[t]=xt(e,1);return t??null}function ct(e){return!nt||!e?null:xe(e)?e:bt(e)?mt(e)||e===Se(e).scrollingElement?window:Ke(e)?e:null:null}function en(e){return xe(e)?e.scrollX:e.scrollLeft}function tn(e){return xe(e)?e.scrollY:e.scrollTop}function ht(e){return{x:en(e),y:tn(e)}}var k;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(k||(k={}));function nn(e){return!nt||!e?!1:e===document.scrollingElement}function rn(e){const t={x:0,y:0},n=nn(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:l,maxScroll:r,minScroll:t}}const hr={x:.2,y:.2};function vr(e,t,n,r,o){let{top:i,left:s,right:l,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=hr);const{isTop:u,isBottom:d,isLeft:f,isRight:p}=rn(e),g={x:0,y:0},b={x:0,y:0},h={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+h.height?(g.y=k.Backward,b.y=r*Math.abs((t.top+h.height-i)/h.height)):!d&&c>=t.bottom-h.height&&(g.y=k.Forward,b.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!p&&l>=t.right-h.width?(g.x=k.Forward,b.x=r*Math.abs((t.right-h.width-l)/h.width)):!f&&s<=t.left+h.width&&(g.x=k.Backward,b.x=r*Math.abs((t.left+h.width-s)/h.width)),{direction:g,speed:b}}function pr(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function on(e){return e.reduce((t,n)=>we(t,ht(n)),q)}function br(e){return e.reduce((t,n)=>t+en(n),0)}function mr(e){return e.reduce((t,n)=>t+tn(n),0)}function yr(e,t){if(t===void 0&&(t=De),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);Zt(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const wr=[["x",["left","right"],br],["y",["top","bottom"],mr]];class St{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=xt(n),o=on(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,s,l]of wr)for(const c of s)Object.defineProperty(this,c,{get:()=>{const u=l(r),d=o[i]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Le{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function xr(e){const{EventTarget:t}=$(e);return e instanceof t?e:Se(e)}function ut(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var V;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(V||(V={}));function Ft(e){e.preventDefault()}function Sr(e){e.stopPropagation()}var I;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(I||(I={}));const sn={start:[I.Space,I.Enter],cancel:[I.Esc],end:[I.Space,I.Enter,I.Tab]},Dr=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case I.Right:return{...n,x:n.x+25};case I.Left:return{...n,x:n.x-25};case I.Down:return{...n,y:n.y+25};case I.Up:return{...n,y:n.y-25}}};class an{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Le(Se(n)),this.windowListeners=new Le($(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(V.Resize,this.handleCancel),this.windowListeners.add(V.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(V.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&yr(r),n(q)}handleKeyDown(t){if(wt(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=sn,coordinateGetter:s=Dr,scrollBehavior:l="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,d=u?{x:u.left,y:u.top}:q;this.referenceCoordinates||(this.referenceCoordinates=d);const f=s(t,{active:n,context:r.current,currentCoordinates:d});if(f){const p=Ze(f,d),g={x:0,y:0},{scrollableAncestors:b}=r.current;for(const h of b){const v=t.code,{isTop:y,isRight:w,isLeft:x,isBottom:E,maxScroll:R,minScroll:M}=rn(h),D=pr(h),S={x:Math.min(v===I.Right?D.right-D.width/2:D.right,Math.max(v===I.Right?D.left:D.left+D.width/2,f.x)),y:Math.min(v===I.Down?D.bottom-D.height/2:D.bottom,Math.max(v===I.Down?D.top:D.top+D.height/2,f.y))},m=v===I.Right&&!w||v===I.Left&&!x,A=v===I.Down&&!E||v===I.Up&&!y;if(m&&S.x!==f.x){const C=h.scrollLeft+p.x,K=v===I.Right&&C<=R.x||v===I.Left&&C>=M.x;if(K&&!p.y){h.scrollTo({left:C,behavior:l});return}K?g.x=h.scrollLeft-C:g.x=v===I.Right?h.scrollLeft-R.x:h.scrollLeft-M.x,g.x&&h.scrollBy({left:-g.x,behavior:l});break}else if(A&&S.y!==f.y){const C=h.scrollTop+p.y,K=v===I.Down&&C<=R.y||v===I.Up&&C>=M.y;if(K&&!p.x){h.scrollTo({top:C,behavior:l});return}K?g.y=h.scrollTop-C:g.y=v===I.Down?h.scrollTop-R.y:h.scrollTop-M.y,g.y&&h.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,we(Ze(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}an.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=sn,onActivation:o}=t,{active:i}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const l=i.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function $t(e){return!!(e&&"distance"in e)}function _t(e){return!!(e&&"delay"in e)}class Dt{constructor(t,n,r){var o;r===void 0&&(r=xr(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=Se(s),this.documentListeners=new Le(this.document),this.listeners=new Le(r),this.windowListeners=new Le($(s)),this.initialCoordinates=(o=gt(i))!=null?o:q,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(V.Resize,this.handleCancel),this.windowListeners.add(V.DragStart,Ft),this.windowListeners.add(V.VisibilityChange,this.handleCancel),this.windowListeners.add(V.ContextMenu,Ft),this.documentListeners.add(V.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(_t(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if($t(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(V.Click,Sr,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(V.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:l}}=i;if(!o)return;const c=(n=gt(t))!=null?n:q,u=Ze(o,c);if(!r&&l){if($t(l)){if(l.tolerance!=null&&ut(u,l.tolerance))return this.handleCancel();if(ut(u,l.distance))return this.handleStart()}if(_t(l)&&ut(u,l.tolerance))return this.handleCancel();this.handlePending(l,u);return}t.cancelable&&t.preventDefault(),s(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===I.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Cr={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Ct extends Dt{constructor(t){const{event:n}=t,r=Se(n.target);super(t,Cr,r)}}Ct.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Rr={move:{name:"mousemove"},end:{name:"mouseup"}};var vt;(function(e){e[e.RightClick=2]="RightClick"})(vt||(vt={}));class ln extends Dt{constructor(t){super(t,Rr,Se(t.event.target))}}ln.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===vt.RightClick?!1:(r==null||r({event:n}),!0)}}];const dt={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Er extends Dt{constructor(t){super(t,dt)}static setup(){return window.addEventListener(dt.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(dt.move.name,t)};function t(){}}}Er.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var ke;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ke||(ke={}));var tt;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(tt||(tt={}));function Ir(e){let{acceleration:t,activator:n=ke.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:l=tt.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const g=Tr({delta:f,disabled:!i}),[b,h]=Bn(),v=a.useRef({x:0,y:0}),y=a.useRef({x:0,y:0}),w=a.useMemo(()=>{switch(n){case ke.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case ke.DraggableRect:return o}},[n,o,c]),x=a.useRef(null),E=a.useCallback(()=>{const M=x.current;if(!M)return;const D=v.current.x*y.current.x,S=v.current.y*y.current.y;M.scrollBy(D,S)},[]),R=a.useMemo(()=>l===tt.TreeOrder?[...u].reverse():u,[l,u]);a.useEffect(()=>{if(!i||!u.length||!w){h();return}for(const M of R){if((r==null?void 0:r(M))===!1)continue;const D=u.indexOf(M),S=d[D];if(!S)continue;const{direction:m,speed:A}=vr(M,S,w,t,p);for(const C of["x","y"])g[C][m[C]]||(A[C]=0,m[C]=0);if(A.x>0||A.y>0){h(),x.current=M,b(E,s),v.current=A,y.current=m;return}}v.current={x:0,y:0},y.current={x:0,y:0},h()},[t,E,r,h,i,s,JSON.stringify(w),JSON.stringify(g),b,u,R,d,JSON.stringify(p)])}const Mr={x:{[k.Backward]:!1,[k.Forward]:!1},y:{[k.Backward]:!1,[k.Forward]:!1}};function Tr(e){let{delta:t,disabled:n}=e;const r=ft(t);return Fe(o=>{if(n||!r||!o)return Mr;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[k.Backward]:o.x[k.Backward]||i.x===-1,[k.Forward]:o.x[k.Forward]||i.x===1},y:{[k.Backward]:o.y[k.Backward]||i.y===-1,[k.Forward]:o.y[k.Forward]||i.y===1}}},[n,t,r])}function Ar(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Fe(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function Or(e,t){return a.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...i]},[]),[e,t])}var Be;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Be||(Be={}));var pt;(function(e){e.Optimized="optimized"})(pt||(pt={}));const Xt=new Map;function Nr(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,s]=a.useState(null),{frequency:l,measure:c,strategy:u}=o,d=a.useRef(e),f=v(),p=Pe(f),g=a.useCallback(function(y){y===void 0&&(y=[]),!p.current&&s(w=>w===null?y:w.concat(y.filter(x=>!w.includes(x))))},[p]),b=a.useRef(null),h=Fe(y=>{if(f&&!n)return Xt;if(!y||y===Xt||d.current!==e||i!=null){const w=new Map;for(let x of e){if(!x)continue;if(i&&i.length>0&&!i.includes(x.id)&&x.rect.current){w.set(x.id,x.rect.current);continue}const E=x.node.current,R=E?new St(c(E),E):null;x.rect.current=R,R&&w.set(x.id,R)}return w}return y},[e,i,n,f,c]);return a.useEffect(()=>{d.current=e},[e]),a.useEffect(()=>{f||g()},[n,f]),a.useEffect(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),a.useEffect(()=>{f||typeof l!="number"||b.current!==null||(b.current=setTimeout(()=>{g(),b.current=null},l))},[l,f,g,...r]),{droppableRects:h,measureDroppableContainers:g,measuringScheduled:i!=null};function v(){switch(u){case Be.Always:return!1;case Be.BeforeDragging:return n;default:return!n}}}function cn(e,t){return Fe(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Lr(e,t){return cn(e,t)}function kr(e){let{callback:t,disabled:n}=e;const r=yt(t),o=a.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return a.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function rt(e){let{callback:t,disabled:n}=e;const r=yt(t),o=a.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return a.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function zr(e){return new St(De(e),e)}function Yt(e,t,n){t===void 0&&(t=zr);const[r,o]=a.useState(null);function i(){o(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}const d=t(e);return JSON.stringify(c)===JSON.stringify(d)?c:d})}const s=kr({callback(c){if(e)for(const u of c){const{type:d,target:f}=u;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),l=rt({callback:i});return ee(()=>{i(),e?(l==null||l.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),s==null||s.disconnect())},[e]),r}function Pr(e){const t=cn(e);return Qt(e,t)}const Ut=[];function jr(e){const t=a.useRef(e),n=Fe(r=>e?r&&r!==Ut&&e&&t.current&&e.parentNode===t.current.parentNode?r:xt(e):Ut,[e]);return a.useEffect(()=>{t.current=e},[e]),n}function Br(e){const[t,n]=a.useState(null),r=a.useRef(e),o=a.useCallback(i=>{const s=ct(i.target);s&&n(l=>l?(l.set(s,ht(s)),new Map(l)):null)},[]);return a.useEffect(()=>{const i=r.current;if(e!==i){s(i);const l=e.map(c=>{const u=ct(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,ht(u)]):null}).filter(c=>c!=null);n(l.length?new Map(l):null),r.current=e}return()=>{s(e),s(i)};function s(l){l.forEach(c=>{const u=ct(c);u==null||u.removeEventListener("scroll",o)})}},[o,e]),a.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>we(i,s),q):on(e):q,[e,t])}function Wt(e,t){t===void 0&&(t=[]);const n=a.useRef(null);return a.useEffect(()=>{n.current=null},t),a.useEffect(()=>{const r=e!==q;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Ze(e,n.current):q}function Kr(e){a.useEffect(()=>{if(!nt)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function Fr(e,t){return a.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=s=>{i(s,t)},n},{}),[e,t])}function un(e){return a.useMemo(()=>e?dr(e):null,[e])}const Ht=[];function $r(e,t){t===void 0&&(t=De);const[n]=e,r=un(n?$(n):null),[o,i]=a.useState(Ht);function s(){i(()=>e.length?e.map(c=>nn(c)?r:new St(t(c),c)):Ht)}const l=rt({callback:s});return ee(()=>{l==null||l.disconnect(),s(),e.forEach(c=>l==null?void 0:l.observe(c))},[e]),o}function _r(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ke(t)?t:e}function Xr(e){let{measure:t}=e;const[n,r]=a.useState(null),o=a.useCallback(u=>{for(const{target:d}of u)if(Ke(d)){r(f=>{const p=t(d);return f?{...f,width:p.width,height:p.height}:p});break}},[t]),i=rt({callback:o}),s=a.useCallback(u=>{const d=_r(u);i==null||i.disconnect(),d&&(i==null||i.observe(d)),r(d?t(d):null)},[t,i]),[l,c]=Qe(s);return a.useMemo(()=>({nodeRef:l,rect:n,setRef:c}),[n,l,c])}const Yr=[{sensor:Ct,options:{}},{sensor:an,options:{}}],Ur={current:{}},Ge={draggable:{measure:Kt},droppable:{measure:Kt,strategy:Be.WhileDragging,frequency:pt.Optimized},dragOverlay:{measure:De}};class ze extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Wr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ze,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:et},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ge,measureDroppableContainers:et,windowRect:null,measuringScheduled:!1},Hr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:et,draggableNodes:new Map,over:null,measureDroppableContainers:et},ot=a.createContext(Hr),dn=a.createContext(Wr);function Vr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ze}}}function qr(e,t){switch(t.type){case N.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case N.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case N.DragEnd:case N.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case N.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new ze(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case N.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new ze(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case N.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new ze(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Gr(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=a.useContext(ot),i=ft(r),s=ft(n==null?void 0:n.id);return a.useEffect(()=>{if(!t&&!r&&i&&s!=null){if(!wt(i)||document.activeElement===i.target)return;const l=o.get(s);if(!l)return;const{activatorNode:c,node:u}=l;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const f=$n(d);if(f){f.focus();break}}})}},[r,t,o,s,i]),null}function Jr(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Qr(e){return a.useMemo(()=>({draggable:{...Ge.draggable,...e==null?void 0:e.draggable},droppable:{...Ge.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Ge.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function Zr(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=a.useRef(!1),{x:s,y:l}=typeof o=="boolean"?{x:o,y:o}:o;ee(()=>{if(!s&&!l||!t){i.current=!1;return}if(i.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const d=n(u),f=Qt(d,r);if(s||(f.x=0),l||(f.y=0),i.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const p=Zt(u);p&&p.scrollBy({top:f.y,left:f.x})}},[t,s,l,r,n])}const fn=a.createContext({...q,scaleX:1,scaleY:1});var fe;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(fe||(fe={}));const eo=a.memo(function(t){var n,r,o,i;let{id:s,accessibility:l,autoScroll:c=!0,children:u,sensors:d=Yr,collisionDetection:f=or,measuring:p,modifiers:g,...b}=t;const h=a.useReducer(qr,void 0,Vr),[v,y]=h,[w,x]=Hn(),[E,R]=a.useState(fe.Uninitialized),M=E===fe.Initialized,{draggable:{active:D,nodes:S,translate:m},droppable:{containers:A}}=v,C=D!=null?S.get(D):null,K=a.useRef({initial:null,translated:null}),L=a.useMemo(()=>{var j;return D!=null?{id:D,data:(j=C==null?void 0:C.data)!=null?j:Ur,rect:K}:null},[D,C]),G=a.useRef(null),[Ce,_e]=a.useState(null),[_,Xe]=a.useState(null),te=Pe(b,Object.values(b)),Re=$e("DndDescribedBy",s),Ye=a.useMemo(()=>A.getEnabled(),[A]),F=Qr(p),{droppableRects:ne,measureDroppableContainers:ge,measuringScheduled:Ee}=Nr(Ye,{dragging:M,dependencies:[m.x,m.y],config:F.droppable}),W=Ar(S,D),Ue=a.useMemo(()=>_?gt(_):null,[_]),se=Rn(),re=Lr(W,F.draggable.measure);Zr({activeNode:D!=null?S.get(D):null,config:se.layoutShiftCompensation,initialRect:re,measure:F.draggable.measure});const T=Yt(W,F.draggable.measure,re),Ie=Yt(W?W.parentElement:null),J=a.useRef({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:ne,draggableNodes:S,draggingNode:null,draggingNodeRect:null,droppableContainers:A,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),he=A.getNodeFor((n=J.current.over)==null?void 0:n.id),oe=Xr({measure:F.dragOverlay.measure}),ve=(r=oe.nodeRef.current)!=null?r:W,pe=M?(o=oe.rect)!=null?o:T:null,Et=!!(oe.nodeRef.current&&oe.rect),It=Pr(Et?null:T),it=un(ve?$(ve):null),ae=jr(M?he??W:null),We=$r(ae),He=Jr(g,{transform:{x:m.x-It.x,y:m.y-It.y,scaleX:1,scaleY:1},activatorEvent:_,active:L,activeNodeRect:T,containerNodeRect:Ie,draggingNodeRect:pe,over:J.current.over,overlayNodeRect:oe.rect,scrollableAncestors:ae,scrollableAncestorRects:We,windowRect:it}),Mt=Ue?we(Ue,m):null,Tt=Br(ae),mn=Wt(Tt),yn=Wt(Tt,[T]),be=we(He,mn),me=pe?ar(pe,He):null,Me=L&&me?f({active:L,collisionRect:me,droppableRects:ne,droppableContainers:Ye,pointerCoordinates:Mt}):null,At=tr(Me,"id"),[le,Ot]=a.useState(null),wn=Et?He:we(He,yn),xn=ir(wn,(i=le==null?void 0:le.rect)!=null?i:null,T),st=a.useRef(null),Nt=a.useCallback((j,X)=>{let{sensor:Y,options:ce}=X;if(G.current==null)return;const H=S.get(G.current);if(!H)return;const U=j.nativeEvent,Q=new Y({active:G.current,activeNode:H,event:U,options:ce,context:J,onAbort(z){if(!S.get(z))return;const{onDragAbort:Z}=te.current,ie={id:z};Z==null||Z(ie),w({type:"onDragAbort",event:ie})},onPending(z,ue,Z,ie){if(!S.get(z))return;const{onDragPending:Ae}=te.current,de={id:z,constraint:ue,initialCoordinates:Z,offset:ie};Ae==null||Ae(de),w({type:"onDragPending",event:de})},onStart(z){const ue=G.current;if(ue==null)return;const Z=S.get(ue);if(!Z)return;const{onDragStart:ie}=te.current,Te={activatorEvent:U,active:{id:ue,data:Z.data,rect:K}};Ne.unstable_batchedUpdates(()=>{ie==null||ie(Te),R(fe.Initializing),y({type:N.DragStart,initialCoordinates:z,active:ue}),w({type:"onDragStart",event:Te}),_e(st.current),Xe(U)})},onMove(z){y({type:N.DragMove,coordinates:z})},onEnd:ye(N.DragEnd),onCancel:ye(N.DragCancel)});st.current=Q;function ye(z){return async function(){const{active:Z,collisions:ie,over:Te,scrollAdjustedTranslate:Ae}=J.current;let de=null;if(Z&&Ae){const{cancelDrop:Oe}=te.current;de={activatorEvent:U,active:Z,collisions:ie,delta:Ae,over:Te},z===N.DragEnd&&typeof Oe=="function"&&await Promise.resolve(Oe(de))&&(z=N.DragCancel)}G.current=null,Ne.unstable_batchedUpdates(()=>{y({type:z}),R(fe.Uninitialized),Ot(null),_e(null),Xe(null),st.current=null;const Oe=z===N.DragEnd?"onDragEnd":"onDragCancel";if(de){const at=te.current[Oe];at==null||at(de),w({type:Oe,event:de})}})}}},[S]),Sn=a.useCallback((j,X)=>(Y,ce)=>{const H=Y.nativeEvent,U=S.get(ce);if(G.current!==null||!U||H.dndKit||H.defaultPrevented)return;const Q={active:U};j(Y,X.options,Q)===!0&&(H.dndKit={capturedBy:X.sensor},G.current=ce,Nt(Y,X))},[S,Nt]),Lt=Or(d,Sn);Kr(d),ee(()=>{T&&E===fe.Initializing&&R(fe.Initialized)},[T,E]),a.useEffect(()=>{const{onDragMove:j}=te.current,{active:X,activatorEvent:Y,collisions:ce,over:H}=J.current;if(!X||!Y)return;const U={active:X,activatorEvent:Y,collisions:ce,delta:{x:be.x,y:be.y},over:H};Ne.unstable_batchedUpdates(()=>{j==null||j(U),w({type:"onDragMove",event:U})})},[be.x,be.y]),a.useEffect(()=>{const{active:j,activatorEvent:X,collisions:Y,droppableContainers:ce,scrollAdjustedTranslate:H}=J.current;if(!j||G.current==null||!X||!H)return;const{onDragOver:U}=te.current,Q=ce.get(At),ye=Q&&Q.rect.current?{id:Q.id,rect:Q.rect.current,data:Q.data,disabled:Q.disabled}:null,z={active:j,activatorEvent:X,collisions:Y,delta:{x:H.x,y:H.y},over:ye};Ne.unstable_batchedUpdates(()=>{Ot(ye),U==null||U(z),w({type:"onDragOver",event:z})})},[At]),ee(()=>{J.current={activatorEvent:_,active:L,activeNode:W,collisionRect:me,collisions:Me,droppableRects:ne,draggableNodes:S,draggingNode:ve,draggingNodeRect:pe,droppableContainers:A,over:le,scrollableAncestors:ae,scrollAdjustedTranslate:be},K.current={initial:pe,translated:me}},[L,W,Me,me,S,ve,pe,ne,A,le,ae,be]),Ir({...se,delta:m,draggingRect:me,pointerCoordinates:Mt,scrollableAncestors:ae,scrollableAncestorRects:We});const Dn=a.useMemo(()=>({active:L,activeNode:W,activeNodeRect:T,activatorEvent:_,collisions:Me,containerNodeRect:Ie,dragOverlay:oe,draggableNodes:S,droppableContainers:A,droppableRects:ne,over:le,measureDroppableContainers:ge,scrollableAncestors:ae,scrollableAncestorRects:We,measuringConfiguration:F,measuringScheduled:Ee,windowRect:it}),[L,W,T,_,Me,Ie,oe,S,A,ne,le,ge,ae,We,F,Ee,it]),Cn=a.useMemo(()=>({activatorEvent:_,activators:Lt,active:L,activeNodeRect:T,ariaDescribedById:{draggable:Re},dispatch:y,draggableNodes:S,over:le,measureDroppableContainers:ge}),[_,Lt,L,T,y,Re,S,le,ge]);return B.createElement(Jt.Provider,{value:x},B.createElement(ot.Provider,{value:Cn},B.createElement(dn.Provider,{value:Dn},B.createElement(fn.Provider,{value:xn},u)),B.createElement(Gr,{disabled:(l==null?void 0:l.restoreFocus)===!1})),B.createElement(Gn,{...l,hiddenTextDescribedById:Re}));function Rn(){const j=(Ce==null?void 0:Ce.autoScrollEnabled)===!1,X=typeof c=="object"?c.enabled===!1:c===!1,Y=M&&!j&&!X;return typeof c=="object"?{...c,enabled:Y}:{enabled:Y}}}),to=a.createContext(null),Vt="button",no="Draggable";function ro(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=$e(no),{activators:s,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=a.useContext(ot),{role:g=Vt,roleDescription:b="draggable",tabIndex:h=0}=o??{},v=(c==null?void 0:c.id)===t,y=a.useContext(v?fn:to),[w,x]=Qe(),[E,R]=Qe(),M=Fr(s,t),D=Pe(n);ee(()=>(f.set(t,{id:t,key:i,node:w,activatorNode:E,data:D}),()=>{const m=f.get(t);m&&m.key===i&&f.delete(t)}),[f,t]);const S=a.useMemo(()=>({role:g,tabIndex:h,"aria-disabled":r,"aria-pressed":v&&g===Vt?!0:void 0,"aria-roledescription":b,"aria-describedby":d.draggable}),[r,g,h,v,b,d.draggable]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:S,isDragging:v,listeners:r?void 0:M,node:w,over:p,setNodeRef:x,setActivatorNodeRef:R,transform:y}}function oo(){return a.useContext(dn)}const io="Droppable",so={timeout:25};function ao(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=$e(io),{active:s,dispatch:l,over:c,measureDroppableContainers:u}=a.useContext(ot),d=a.useRef({disabled:n}),f=a.useRef(!1),p=a.useRef(null),g=a.useRef(null),{disabled:b,updateMeasurementsFor:h,timeout:v}={...so,...o},y=Pe(h??r),w=a.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),g.current=null},v)},[v]),x=rt({callback:w,disabled:b||!s}),E=a.useCallback((S,m)=>{x&&(m&&(x.unobserve(m),f.current=!1),S&&x.observe(S))},[x]),[R,M]=Qe(E),D=Pe(t);return a.useEffect(()=>{!x||!R.current||(x.disconnect(),f.current=!1,x.observe(R.current))},[R,x]),a.useEffect(()=>(l({type:N.RegisterDroppable,element:{id:r,key:i,disabled:n,node:R,rect:p,data:D}}),()=>l({type:N.UnregisterDroppable,key:i,id:r})),[r]),a.useEffect(()=>{n!==d.current.disabled&&(l({type:N.SetDroppableDisabled,id:r,key:i,disabled:n}),d.current.disabled=n)},[r,i,n,l]),{active:s,rect:p,isOver:(c==null?void 0:c.id)===r,node:R,over:c,setNodeRef:M}}const lo=e=>{let{transform:t}=e;return{...t,x:0}};function Rt(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function co(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function Ve(e){return e!==null&&e>=0}function uo(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=Rt(t,r,n),s=t[o],l=i[o];return!l||!s?null:{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}},qe={scaleX:1,scaleY:1},go=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:s}=e;const l=(t=i[n])!=null?t:r;if(!l)return null;if(o===n){const u=i[s];return u?{x:0,y:nn&&o<=s?{x:0,y:-l.height-c,...qe}:o=s?{x:0,y:l.height+c,...qe}:{x:0,y:0,...qe}};function ho(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?nr.map(M=>typeof M=="object"&&"id"in M?M.id:M),[r]),b=s!=null,h=s?g.indexOf(s.id):-1,v=u?g.indexOf(u.id):-1,y=a.useRef(g),w=!uo(g,y.current),x=v!==-1&&h===-1||w,E=fo(i);ee(()=>{w&&b&&d(g)},[w,g,b,d]),a.useEffect(()=>{y.current=g},[g]);const R=a.useMemo(()=>({activeIndex:h,containerId:f,disabled:E,disableTransforms:x,items:g,overIndex:v,useDragOverlay:p,sortedRects:co(g,c),strategy:o}),[h,f,E.draggable,E.droppable,x,g,v,c,p,o]);return B.createElement(vn.Provider,{value:R},t)}const po=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Rt(n,r,o).indexOf(t)},bo=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:s,previousItems:l,previousContainerId:c,transition:u}=e;return!u||!r||l!==i&&o===s?!1:n?!0:s!==o&&t===c},mo={duration:200,easing:"ease"},pn="transform",yo=je.Transition.toString({property:pn,duration:0,easing:"linear"}),wo={roleDescription:"sortable"};function xo(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,s]=a.useState(null),l=a.useRef(n);return ee(()=>{if(!t&&n!==l.current&&r.current){const c=o.current;if(c){const u=De(r.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&s(d)}}n!==l.current&&(l.current=n)},[t,n,r,o]),a.useEffect(()=>{i&&s(null)},[i]),i}function So(e){let{animateLayoutChanges:t=bo,attributes:n,disabled:r,data:o,getNewIndex:i=po,id:s,strategy:l,resizeObserverConfig:c,transition:u=mo}=e;const{items:d,containerId:f,activeIndex:p,disabled:g,disableTransforms:b,sortedRects:h,overIndex:v,useDragOverlay:y,strategy:w}=a.useContext(vn),x=Do(r,g),E=d.indexOf(s),R=a.useMemo(()=>({sortable:{containerId:f,index:E,items:d},...o}),[f,o,E,d]),M=a.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:D,node:S,isOver:m,setNodeRef:A}=ao({id:s,data:R,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:M,...c}}),{active:C,activatorEvent:K,activeNodeRect:L,attributes:G,setNodeRef:Ce,listeners:_e,isDragging:_,over:Xe,setActivatorNodeRef:te,transform:Re}=ro({id:s,data:R,attributes:{...wo,...n},disabled:x.draggable}),Ye=jn(A,Ce),F=!!C,ne=F&&!b&&Ve(p)&&Ve(v),ge=!y&&_,Ee=ge&&ne?Re:null,Ue=ne?Ee??(l??w)({rects:h,activeNodeRect:L,activeIndex:p,overIndex:v,index:E}):null,se=Ve(p)&&Ve(v)?i({id:s,items:d,activeIndex:p,overIndex:v}):E,re=C==null?void 0:C.id,T=a.useRef({activeId:re,items:d,newIndex:se,containerId:f}),Ie=d!==T.current.items,J=t({active:C,containerId:f,isDragging:_,isSorting:F,id:s,index:E,items:d,newIndex:T.current.newIndex,previousItems:T.current.items,previousContainerId:T.current.containerId,transition:u,wasDragging:T.current.activeId!=null}),he=xo({disabled:!J,index:E,node:S,rect:D});return a.useEffect(()=>{F&&T.current.newIndex!==se&&(T.current.newIndex=se),f!==T.current.containerId&&(T.current.containerId=f),d!==T.current.items&&(T.current.items=d)},[F,se,f,d]),a.useEffect(()=>{if(re===T.current.activeId)return;if(re&&!T.current.activeId){T.current.activeId=re;return}const ve=setTimeout(()=>{T.current.activeId=re},50);return()=>clearTimeout(ve)},[re]),{active:C,activeIndex:p,attributes:G,data:R,rect:D,index:E,newIndex:se,items:d,isOver:m,isSorting:F,isDragging:_,listeners:_e,node:S,overIndex:v,over:Xe,setNodeRef:Ye,setActivatorNodeRef:te,setDroppableNodeRef:A,setDraggableNodeRef:Ce,transform:he??Ue,transition:oe()};function oe(){if(he||Ie&&T.current.newIndex===E)return yo;if(!(ge&&!wt(K)||!u)&&(F||J))return je.Transition.toString({...u,property:pn})}}function Do(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}I.Down,I.Right,I.Up,I.Left;var Co=["DragHandle","dragSortKey"],Ro=["dragSortKey"],bn=a.createContext({handle:null}),Eo=function(t){var n=So({id:t.id}),r=n.attributes,o=n.listeners,i=n.setNodeRef,s=n.transform,l=n.transition,c=O({transform:je.Transform.toString(s),transition:l},t==null?void 0:t.style),u=t.DragHandle,d=t.dragSortKey,f=Je(t,Co);if(d){var p=[];return B.Children.forEach(f.children,function(g,b){if(g.key===d){var h,v;p.push(P.jsx(bn.Provider,{value:{handle:P.jsx(u,O(O({rowData:g==null||(h=g.props)===null||h===void 0?void 0:h.record,index:g==null||(v=g.props)===null||v===void 0?void 0:v.index},o),r))},children:g},g.key||b));return}p.push(g)}),P.jsx("tr",O(O({},f),{},{ref:i,style:c,children:p}))}return P.jsx("tr",O(O(O({},f),{},{ref:i,style:c},r),o))},Io=B.memo(function(e){e.dragSortKey;var t=Je(e,Ro),n=a.useContext(bn),r=n.handle;return r?P.jsx("td",O(O({},t),{},{children:P.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[r," ",t.children]})})):P.jsx("td",O({},t))}),Mo=function(t){return P.jsx("tbody",O({},t))};function To(e){var t=e.dataSource,n=t===void 0?[]:t,r=e.onDragSortEnd,o=e.DragHandle,i=e.dragSortKey,s=Jn(jt(Ct),jt(ln)),l=a.useCallback(function(g){var b,h=g.active,v=g.over;if(v!=null&&(b=v.id)!==null&&b!==void 0&&b.toString()&&h.id!==(v==null?void 0:v.id)){var y=Rt(n||[],parseInt(h.id),parseInt(v.id));r==null||r(parseInt(h.id),parseInt(v.id),y||[])}},[n,r]),c=kt(function(g){return P.jsx(vo,{items:n.map(function(b,h){return h==null?void 0:h.toString()}),strategy:go,children:P.jsx(Mo,O({},g))})}),u=kt(function(g){var b,h=Object.assign({},(En(g),g)),v=(b=n.findIndex(function(y){var w;return y[(w=e.rowKey)!==null&&w!==void 0?w:"index"]===h["data-row-key"]}))===null||b===void 0?void 0:b.toString();return P.jsx(Eo,O({id:v,dragSortKey:i,DragHandle:o},h),v)}),d=e.components||{};if(i){var f;d.body=O({wrapper:c,row:u,cell:Io},((f=e.components)===null||f===void 0?void 0:f.body)||{})}var p=a.useMemo(function(){return function(g){return P.jsx(eo,{modifiers:[lo],sensors:s,collisionDetection:nr,onDragEnd:l,children:g.children})}},[l,s]);return{DndContext:p,components:d}}var Ao=function(t){return Mn({},t.componentCls,{"&-icon":{marginInlineEnd:8,color:t.colorTextSecondary,cursor:"grab !important",padding:4,fontSize:12,borderRadius:t.borderRadius,"&:hover":{color:t.colorText,backgroundColor:t.colorInfoBg}}})};function Oo(e){return In("DragSortTable",function(t){var n=O(O({},t),{},{componentCls:".".concat(e)});return[Ao(n)]})}var No=["rowKey","dragSortKey","dragSortHandlerRender","onDragSortEnd","onDataSourceChange","defaultData","dataSource","onLoad"],Lo=["rowData","index","className"];function ko(e){var t,n=e.rowKey,r=e.dragSortKey,o=e.dragSortHandlerRender,i=e.onDragSortEnd,s=e.onDataSourceChange,l=e.defaultData,c=e.dataSource,u=e.onLoad,d=Je(e,No),f=a.useContext(Tn.ConfigContext),p=f.getPrefixCls,g=An(function(){return l||[]},{value:c,onChange:s}),b=On(g,2),h=b[0],v=b[1],y=Oo(p("pro-table-drag")),w=y.wrapSSR,x=y.hashId,E=a.useMemo(function(){return function(m){m.rowData,m.index;var A=m.className,C=Je(m,Lo),K=P.jsx(Nn,O(O({},C),{},{className:"".concat(p("pro-table-drag-icon")," ").concat(A||""," ").concat(x||"").trim()})),L=o?o(m==null?void 0:m.rowData,m==null?void 0:m.index):K;return P.jsx("div",O(O({},C),{},{children:L}))}},[p]),R=To({dataSource:h==null?void 0:h.slice(),dragSortKey:r,onDragSortEnd:i,components:e.components,rowKey:n,DragHandle:E}),M=R.components,D=R.DndContext,S=function(){var m=Ln(zt().mark(function A(C){return zt().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return v(C),L.abrupt("return",u==null?void 0:u(C));case 2:case"end":return L.stop()}},A)}));return function(C){return m.apply(this,arguments)}}();return w(P.jsx(Pn,O(O({},d),{},{columns:(t=d.columns)===null||t===void 0?void 0:t.map(function(m){return(m.dataIndex==r||m.key===r)&&(m.render||(m.render=function(){return null})),m}),onLoad:S,rowKey:n,tableViewRender:function(A,C){return P.jsx(D,{children:C})},dataSource:h,components:M,onDataSourceChange:s})))}const zo=[{title:"排序",dataIndex:"sort",width:60,className:"drag-visible"},{title:"字段名",dataIndex:"dataIndex"},{title:"字段备注",dataIndex:"title"}],li=()=>{const{tableConfig:e,setTableConfig:t}=a.useContext(zn),n=(r,o,i)=>{t({...e,columns:i}),kn.success("修改列表排序成功")};return P.jsx(ko,{headerTitle:null,columns:zo,options:!1,search:!1,rowKey:"key",pagination:!1,dataSource:e.columns,dragSortKey:"sort",cardProps:{bodyStyle:{padding:0}},onDragSortEnd:n})};export{li as default}; diff --git a/web/dist/assets/EditGroup-2d63834b.js b/web/dist/assets/EditGroup-2d63834b.js new file mode 100644 index 0000000000000000000000000000000000000000..95a8610cb715475a29af1f5edc265726635c86fa --- /dev/null +++ b/web/dist/assets/EditGroup-2d63834b.js @@ -0,0 +1 @@ +import{b as o,j as r,ah as u,a1 as l}from"./umi-5f6aeac9.js";import{E as n}from"./group-d8dc7c8e.js";import{B as c}from"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";const w=i=>{const{parentNode:s,defaultData:e,getGroupList:m}=i,p=[{title:"分组名称",dataIndex:"name",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}},{title:"父节点",dataIndex:"parent_id",valueType:"treeSelect",fieldProps:{options:s,fieldNames:{label:"name",value:"group_id",children:"children"}},formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}},{title:"排序",dataIndex:"sort",valueType:"digit"}],a=o.useRef();return o.useEffect(()=>{var t;(t=a.current)==null||t.setFieldsValue(e)},[e]),r.jsx(r.Fragment,{children:r.jsx(c,{trigger:r.jsx(u,{}),layoutType:"ModalForm",modalProps:{width:500},initialValues:e,formRef:a,onFinish:async t=>{let d={group_id:e.group_id,...t};return await n(d),l.success("编辑成功"),await m(),!0},columns:p})})};export{w as default}; diff --git a/web/dist/assets/EditGroup-52db762b.js b/web/dist/assets/EditGroup-52db762b.js deleted file mode 100644 index 3be218997a10aec0fc251b07176be40f2133ca6b..0000000000000000000000000000000000000000 --- a/web/dist/assets/EditGroup-52db762b.js +++ /dev/null @@ -1 +0,0 @@ -import{r as o,j as r,ab as u,V as l}from"./umi-2ee4055f.js";import{E as n}from"./group-832bb4bd.js";import{B as c}from"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";const w=i=>{const{parentNode:s,defaultData:e,getGroupList:m}=i,p=[{title:"分组名称",dataIndex:"name",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}},{title:"父节点",dataIndex:"parent_id",valueType:"treeSelect",fieldProps:{options:s,fieldNames:{label:"name",value:"group_id",children:"children"}},formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}},{title:"排序",dataIndex:"sort",valueType:"digit"}],a=o.useRef();return o.useEffect(()=>{var t;(t=a.current)==null||t.setFieldsValue(e)},[e]),r.jsx(r.Fragment,{children:r.jsx(c,{trigger:r.jsx(u,{}),layoutType:"ModalForm",modalProps:{width:500},initialValues:e,formRef:a,onFinish:async t=>{let d={group_id:e.group_id,...t};return await n(d),l.success("编辑成功"),await m(),!0},columns:p})})};export{w as default}; diff --git a/web/dist/assets/GroupData-d6c7f461.js b/web/dist/assets/GroupData-d6c7f461.js deleted file mode 100644 index d746d1fdd7ceab93077682b218128520de5e709d..0000000000000000000000000000000000000000 --- a/web/dist/assets/GroupData-d6c7f461.js +++ /dev/null @@ -1 +0,0 @@ -import{r as i,j as e,S as j,ac as x,a5 as G,V as n}from"./umi-2ee4055f.js";import{T as h}from"./index-6395135c.js";import D from"./AddGroup-324fd85c.js";import _ from"./EditGroup-52db762b.js";import{G as w,D as y}from"./group-832bb4bd.js";import{P as E}from"./ProCard-cee316ff.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";const{DirectoryTree:S}=h,p=e.jsx(G,{type:"icon-wenjianjia",className:"icon-wenjianjia"}),J=c=>{const{selectGroup:r,setSelectGroup:s}=c,[a,d]=i.useState([{name:"root",group_id:0,selectable:!1}]),o=async()=>{let t=await w();d([{name:"root",group_id:0,children:t.data}])};i.useEffect(()=>{o().then(()=>{})},[]);const m=(t,{selectedNodes:f})=>{let g=f[0];s(g)},u=async()=>{let t=await y({group_id:r.group_id});t.success?(n.success(t.msg),await o(),s({name:"root",group_id:0,parent_id:0,sort:0})):n.warning(t.msg)},l=[e.jsxs(e.Fragment,{children:[p," ",r.name]}),e.jsxs(j,{children:[r.group_id===0?"":e.jsx(_,{getGroupList:o,parentNode:a,defaultData:r}),r.group_id===0?"":e.jsx(x,{onClick:u}),e.jsx(D,{getGroupList:o,parentNode:a})]},"option")];return e.jsx(E,{actions:l,bordered:!0,headerBordered:!0,title:"文件分组",children:e.jsx(S,{showLine:!0,fieldNames:{title:"name",key:"group_id",children:"children"},icon:p,defaultExpandAll:!0,autoExpandParent:!0,onSelect:m,treeData:a})})};export{J as default}; diff --git a/web/dist/assets/GroupData-fbe7935a.js b/web/dist/assets/GroupData-fbe7935a.js new file mode 100644 index 0000000000000000000000000000000000000000..56d9850751b3d876e3e38d3ad9def421b73d07c7 --- /dev/null +++ b/web/dist/assets/GroupData-fbe7935a.js @@ -0,0 +1 @@ +import{b as i,j as e,a0 as j,ai as x,aa as G,a1 as n}from"./umi-5f6aeac9.js";import{T as h}from"./index-0c4a636b.js";import D from"./AddGroup-83161c89.js";import _ from"./EditGroup-2d63834b.js";import{G as w,D as y}from"./group-d8dc7c8e.js";import{P as E}from"./ProCard-a8f5c5a9.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./index-46da21dc.js";import"./index-55505f41.js";const{DirectoryTree:N}=h,p=e.jsx(G,{type:"icon-wenjianjia",className:"icon-wenjianjia"}),K=c=>{const{selectGroup:r,setSelectGroup:s}=c,[a,d]=i.useState([{name:"root",group_id:0,selectable:!1}]),o=async()=>{let t=await w();d([{name:"root",group_id:0,children:t.data}])};i.useEffect(()=>{o().then(()=>{})},[]);const m=(t,{selectedNodes:f})=>{let g=f[0];s(g)},u=async()=>{let t=await y({group_id:r.group_id});t.success?(n.success(t.msg),await o(),s({name:"root",group_id:0,parent_id:0,sort:0})):n.warning(t.msg)},l=[e.jsxs(e.Fragment,{children:[p," ",r.name]}),e.jsxs(j,{children:[r.group_id===0?"":e.jsx(_,{getGroupList:o,parentNode:a,defaultData:r}),r.group_id===0?"":e.jsx(x,{onClick:u}),e.jsx(D,{getGroupList:o,parentNode:a})]},"option")];return e.jsx(E,{actions:l,bordered:!0,headerBordered:!0,title:"文件分组",children:e.jsx(N,{showLine:!0,fieldNames:{title:"name",key:"group_id",children:"children"},icon:p,defaultExpandAll:!0,autoExpandParent:!0,onSelect:m,treeData:a})})};export{K as default}; diff --git a/web/dist/assets/GroupRule-006e51b8.js b/web/dist/assets/GroupRule-006e51b8.js new file mode 100644 index 0000000000000000000000000000000000000000..db433b85f0e55effc5af1fb5c3f098c251a3efc3 --- /dev/null +++ b/web/dist/assets/GroupRule-006e51b8.js @@ -0,0 +1 @@ +import{ab as y,b as l,j as e,a4 as m,a0 as k,B as x,a1 as C}from"./umi-5f6aeac9.js";import{T as j}from"./index-0c4a636b.js";import{s as K}from"./auth-13ead763.js";const w=i=>{const{record:t,treeData:a}=i,[d,c]=y(!1),[o,r]=l.useState([]),[h,u]=l.useState([]);l.useEffect(()=>{r(t.rules)},[t]);const f=(s,n)=>{Array.isArray(s)?r(s):r(s.checked),u(n.halfCheckedKeys?n.halfCheckedKeys:[])},p=async()=>{let s={id:t.id,rule_ids:[...o,...h]};await K(s),C.success("保存成功")};return e.jsxs(e.Fragment,{children:[e.jsx("a",{onClick:()=>c.setTrue(),children:"编辑权限"}),e.jsx(m,{title:t.name,width:520,onClose:()=>c.setFalse(),open:d,styles:{body:{paddingBottom:80}},extra:e.jsx(k,{children:e.jsx(x,{onClick:p,type:"primary",children:"保存"})}),children:(a==null?void 0:a.length)>1&&e.jsx(j,{checkable:!0,defaultExpandAll:!0,blockNode:!1,treeData:a,fieldNames:{title:"name",key:"id",children:"children"},showLine:!0,checkStrictly:!0,onCheck:f,checkedKeys:o})})]})};export{w as default}; diff --git a/web/dist/assets/GroupRule-924796bd.js b/web/dist/assets/GroupRule-924796bd.js deleted file mode 100644 index f21ae0f3c6b19e8ecf4173604d1bace09acb4f36..0000000000000000000000000000000000000000 --- a/web/dist/assets/GroupRule-924796bd.js +++ /dev/null @@ -1 +0,0 @@ -import{a6 as m,r as l,j as e,Z as y,S as x,B as k,V as C}from"./umi-2ee4055f.js";import{T as j}from"./index-6395135c.js";import{s as K}from"./userAuth-60d2e4f0.js";const B=d=>{const{record:t,treeData:a}=d,[i,o]=m(!1),[n,r]=l.useState([]),[h,u]=l.useState([]);l.useEffect(()=>{r(t.rules)},[t]);const f=(s,c)=>{Array.isArray(s)?r(s):r(s.checked),u(c.halfCheckedKeys?c.halfCheckedKeys:[])},p=async()=>{let s={id:t.id,rule_ids:[...n,...h]};await K(s),C.success("保存成功")};return e.jsxs(e.Fragment,{children:[e.jsx("a",{onClick:()=>o.setTrue(),children:"编辑权限"}),e.jsx(y,{title:t.name,width:520,onClose:()=>o.setFalse(),open:i,styles:{body:{paddingBottom:80}},extra:e.jsx(x,{children:e.jsx(k,{onClick:p,type:"primary",children:"保存"})}),children:(a==null?void 0:a.length)>1&&e.jsx(j,{checkable:!0,defaultExpandAll:!0,blockNode:!1,treeData:a,fieldNames:{title:"name",key:"id",children:"children"},showLine:!0,onCheck:f,checkedKeys:n})})]})};export{B as default}; diff --git a/web/dist/assets/GroupRule-a818447f.js b/web/dist/assets/GroupRule-a818447f.js new file mode 100644 index 0000000000000000000000000000000000000000..d6291a208e647b1686021803a0595a27b1e4e2d5 --- /dev/null +++ b/web/dist/assets/GroupRule-a818447f.js @@ -0,0 +1 @@ +import{ab as m,b as l,j as e,a4 as y,a0 as x,B as k,a1 as C}from"./umi-5f6aeac9.js";import{T as j}from"./index-0c4a636b.js";import{s as K}from"./userAuth-e0a25413.js";const B=d=>{const{record:t,treeData:a}=d,[i,o]=m(!1),[n,r]=l.useState([]),[h,u]=l.useState([]);l.useEffect(()=>{r(t.rules)},[t]);const f=(s,c)=>{Array.isArray(s)?r(s):r(s.checked),u(c.halfCheckedKeys?c.halfCheckedKeys:[])},p=async()=>{let s={id:t.id,rule_ids:[...n,...h]};await K(s),C.success("保存成功")};return e.jsxs(e.Fragment,{children:[e.jsx("a",{onClick:()=>o.setTrue(),children:"编辑权限"}),e.jsx(y,{title:t.name,width:520,onClose:()=>o.setFalse(),open:i,styles:{body:{paddingBottom:80}},extra:e.jsx(x,{children:e.jsx(k,{onClick:p,type:"primary",children:"保存"})}),children:(a==null?void 0:a.length)>1&&e.jsx(j,{checkable:!0,defaultExpandAll:!0,blockNode:!1,treeData:a,fieldNames:{title:"name",key:"id",children:"children"},showLine:!0,onCheck:f,checkedKeys:n})})]})};export{B as default}; diff --git a/web/dist/assets/GroupRule-af67b542.js b/web/dist/assets/GroupRule-af67b542.js deleted file mode 100644 index 47cd19f3b4d7e89e54add2bd425d46aed508b5a7..0000000000000000000000000000000000000000 --- a/web/dist/assets/GroupRule-af67b542.js +++ /dev/null @@ -1 +0,0 @@ -import{a6 as m,r as l,j as e,Z as y,S as x,B as k,V as C}from"./umi-2ee4055f.js";import{T as j}from"./index-6395135c.js";import{s as K}from"./auth-11568536.js";const B=d=>{const{record:t,treeData:a}=d,[i,o]=m(!1),[n,r]=l.useState([]),[h,u]=l.useState([]);l.useEffect(()=>{r(t.rules)},[t]);const f=(s,c)=>{Array.isArray(s)?r(s):r(s.checked),u(c.halfCheckedKeys?c.halfCheckedKeys:[])},p=async()=>{let s={id:t.id,rule_ids:[...n,...h]};await K(s),C.success("保存成功")};return e.jsxs(e.Fragment,{children:[e.jsx("a",{onClick:()=>o.setTrue(),children:"编辑权限"}),e.jsx(y,{title:t.name,width:520,onClose:()=>o.setFalse(),open:i,styles:{body:{paddingBottom:80}},extra:e.jsx(x,{children:e.jsx(k,{onClick:p,type:"primary",children:"保存"})}),children:(a==null?void 0:a.length)>1&&e.jsx(j,{checkable:!0,defaultExpandAll:!0,blockNode:!1,treeData:a,fieldNames:{title:"name",key:"id",children:"children"},showLine:!0,onCheck:f,checkedKeys:n})})]})};export{B as default}; diff --git a/web/dist/assets/Layout-eb89b00e.js b/web/dist/assets/Layout-1acd97f0.js similarity index 85% rename from web/dist/assets/Layout-eb89b00e.js rename to web/dist/assets/Layout-1acd97f0.js index 2fc445dc6506dfdb2a42446ab2b9f097e79cfd2e..d7e2c3d38baa842556caff3d548b3050fc09bf70 100644 --- a/web/dist/assets/Layout-eb89b00e.js +++ b/web/dist/assets/Layout-1acd97f0.js @@ -1,4 +1,4 @@ -import{r as b,dH as Xt,dI as qt,cl as ct,d8 as Zt,_ as d,aY as ut,l as F,k as ae,j as r,dJ as dt,cd as Qe,aU as J,K as s,R as ve,s as mt,aM as Qt,aV as P,b3 as vt,dK as ht,bq as ue,o as Be,dL as zn,b5 as on,bl as Yt,aC as _e,H as Jt,J as eo,T as no,dM as xe,A as dn,S as to,C as oe,i as oo,br as ao,w as ft,x as ze,dN as mn,dO as vn,dP as ro,dQ as Ye,dR as gt,dS as io,dT as Je,bk as lo,b8 as pt,Z as so,cc as me,aW as co,bR as an,ae as uo,dU as mo,dV as vo,dW as ho,dX as fo,dY as go,ct as yt,N as po,B as yo,b4 as xo,dZ as Te,d_ as Co,d$ as bo,e0 as So,e1 as Io,a3 as Mo,e2 as jo,bT as Ro,aN as To,e3 as wo,Y as Fn,e4 as Bo,e5 as _o,av as Wn,e6 as On}from"./umi-2ee4055f.js";import{c as Lo}from"./camelCase-e5a219bd.js";import{E as No}from"./index-e7147cef.js";import{R as Gn}from"./RouteContext-8fa10ad2.js";function $o(){const o=b.useContext(Xt);return qt(o),o}function xt(o){if(ct(Zt(),"5.6.0")<0)return o;var e={colorGroupTitle:"groupTitleColor",radiusItem:"itemBorderRadius",radiusSubMenuItem:"subMenuItemBorderRadius",colorItemText:"itemColor",colorItemTextHover:"itemHoverColor",colorItemTextHoverHorizontal:"horizontalItemHoverColor",colorItemTextSelected:"itemSelectedColor",colorItemTextSelectedHorizontal:"horizontalItemSelectedColor",colorItemTextDisabled:"itemDisabledColor",colorDangerItemText:"dangerItemColor",colorDangerItemTextHover:"dangerItemHoverColor",colorDangerItemTextSelected:"dangerItemSelectedColor",colorDangerItemBgActive:"dangerItemActiveBg",colorDangerItemBgSelected:"dangerItemSelectedBg",colorItemBg:"itemBg",colorItemBgHover:"itemHoverBg",colorSubItemBg:"subMenuItemBg",colorItemBgActive:"itemActiveBg",colorItemBgSelected:"itemSelectedBg",colorItemBgSelectedHorizontal:"horizontalItemSelectedBg",colorActiveBarWidth:"activeBarWidth",colorActiveBarHeight:"activeBarHeight",colorActiveBarBorderSize:"activeBarBorderWidth"},n=d({},o);return Object.keys(e).forEach(function(t){n[t]!==void 0&&(n[e[t]]=n[t],delete n[t])}),n}function Ho(o,e){var n=typeof o.pageName=="string"?o.title:e;b.useEffect(function(){ut()&&n&&(document.title=n)},[o.title,n])}function Po(o){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(o)}var hn=function(e){if(!e||!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch{return!1}};function ye(o){var e=typeof window>"u",n=b.useState(function(){return e?!1:window.matchMedia(o).matches}),t=F(n,2),a=t[0],i=t[1];return b.useLayoutEffect(function(){if(!e){var l=window.matchMedia(o),c=function(v){return i(v.matches)};return l.addListener(c),function(){return l.removeListener(c)}}},[o]),a}var ce={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},Ao=function(){var e=void 0;if(typeof window>"u")return e;var n=Object.keys(ce).find(function(t){var a=ce[t].matchMedia;return!!window.matchMedia(a).matches});return e=n,e},ko=function(){var e=ye(ce.md.matchMedia),n=ye(ce.lg.matchMedia),t=ye(ce.xxl.matchMedia),a=ye(ce.xl.matchMedia),i=ye(ce.sm.matchMedia),l=ye(ce.xs.matchMedia),c=b.useState(Ao()),u=F(c,2),v=u[0],m=u[1];return b.useEffect(function(){if(t){m("xxl");return}if(a){m("xl");return}if(n){m("lg");return}if(e){m("md");return}if(i){m("sm");return}if(l){m("xs");return}m("md")},[e,n,t,a,i,l]),v},Do=["isLoading","pastDelay","timedOut","error","retry"],Eo=function(e){e.isLoading,e.pastDelay,e.timedOut,e.error,e.retry;var n=ae(e,Do);return r.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:r.jsx(dt,d({size:"large"},n))})},zo=function(){return r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},Fo=function o(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return r.jsx("div",{className:"".concat(t,"-content ").concat(a).trim(),children:r.jsx("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(l,c){var u;return l!=null&&(u=l.children)!==null&&u!==void 0&&u.length?r.jsxs("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[r.jsx("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:l.title}),r.jsx(o,{hashId:a,itemClick:i,appList:l==null?void 0:l.children,baseClassName:t})]},c):r.jsx("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(m){m.stopPropagation(),i==null||i(l)},children:r.jsxs("a",{href:i?void 0:l.url,target:l.target,rel:"noreferrer",children:[fn(l.icon),r.jsxs("div",{children:[r.jsx("div",{children:l.title}),l.desc?r.jsx("span",{children:l.desc}):null]})]})},c)})})})},Wo=function(e,n){if(e&&typeof e=="string"&&hn(e))return r.jsx("img",{src:e,alt:"logo"});if(typeof e=="function")return e();if(e&&typeof e=="string")return r.jsx("div",{id:"avatarLogo",children:e});if(!e&&n&&typeof n=="string"){var t=n.substring(0,1);return r.jsx("div",{id:"avatarLogo",children:t})}return e},Oo=function o(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return r.jsx("div",{className:"".concat(t,"-content ").concat(a).trim(),children:r.jsx("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(l,c){var u;return l!=null&&(u=l.children)!==null&&u!==void 0&&u.length?r.jsxs("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[r.jsx("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:l.title}),r.jsx(o,{hashId:a,itemClick:i,appList:l==null?void 0:l.children,baseClassName:t})]},c):r.jsx("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(m){m.stopPropagation(),i==null||i(l)},children:r.jsxs("a",{href:i?"javascript:;":l.url,target:l.target,rel:"noreferrer",children:[Wo(l.icon,l.title),r.jsx("div",{children:r.jsx("div",{children:l.title})})]})},c)})})})},Go=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":Qe===null||Qe===void 0?void 0:Qe(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},Ko=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},Uo=function(e){var n,t,a,i,l;return s({},e.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=e.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:(t=e.layout)===null||t===void 0?void 0:t.colorTextAppListIconHover,backgroundColor:(a=e.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover},"&-active":{color:(i=e.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:(l=e.layout)===null||l===void 0?void 0:l.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":s({},"".concat(e.antCls,"-popover-arrow"),{display:"none"}),"&-simple":Ko(e),"&-default":Go(e)})};function Vo(o){return J("AppsLogoComponents",function(e){var n=d(d({},e),{},{componentCls:".".concat(o)});return[Uo(n)]})}var fn=function(e){return typeof e=="string"?r.jsx("img",{width:"auto",height:22,src:e,alt:"logo"}):typeof e=="function"?e():e},gn=function(e){var n,t=e.appList,a=e.appListRender,i=e.prefixCls,l=i===void 0?"ant-pro":i,c=e.onItemClick,u=ve.useRef(null),v=ve.useRef(null),m="".concat(l,"-layout-apps"),h=Vo(m),p=h.wrapSSR,C=h.hashId,M=b.useState(!1),y=F(M,2),x=y[0],_=y[1],w=function(L){c==null||c(L,v)},B=b.useMemo(function(){var f=t==null?void 0:t.some(function(L){return!(L!=null&&L.desc)});return f?r.jsx(Oo,{hashId:C,appList:t,itemClick:c?w:void 0,baseClassName:"".concat(m,"-simple")}):r.jsx(Fo,{hashId:C,appList:t,itemClick:c?w:void 0,baseClassName:"".concat(m,"-default")})},[t,m,C]);if(!(e!=null&&(n=e.appList)!==null&&n!==void 0&&n.length))return null;var I=a?a(e==null?void 0:e.appList,B):B,R=mt(void 0,function(f){return _(f)});return p(r.jsxs(r.Fragment,{children:[r.jsx("div",{ref:u,onClick:function(L){L.stopPropagation(),L.preventDefault()}}),r.jsx(Qt,d(d({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},R),{},{overlayClassName:"".concat(m,"-popover ").concat(C).trim(),content:I,getPopupContainer:function(){return u.current||document.body},children:r.jsx("span",{ref:v,onClick:function(L){L.stopPropagation()},className:P("".concat(m,"-icon"),C,s({},"".concat(m,"-icon-active"),x)),children:r.jsx(zo,{})})}))]}))};function Xo(){return r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var qo=function(e){var n,t,a;return s({},e.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function Zo(o){return J("SiderMenuCollapsedIcon",function(e){var n=d(d({},e),{},{componentCls:".".concat(o)});return[qo(n)]})}var Qo=["isMobile","collapsed"],Yo=function(e){var n=e.isMobile,t=e.collapsed,a=ae(e,Qo),i=Zo(e.className),l=i.wrapSSR,c=i.hashId;return n&&t?null:l(r.jsx("div",d(d({},a),{},{className:P(e.className,c,s(s({},"".concat(e.className,"-collapsed"),t),"".concat(e.className,"-is-mobile"),n)),children:r.jsx(Xo,{})})))},Jo=function(e,n){var t,a,i=n.includes("horizontal")?(t=e.layout)===null||t===void 0?void 0:t.header:(a=e.layout)===null||a===void 0?void 0:a.sider;return d(d(s({},"".concat(e.componentCls),s(s(s(s(s(s(s(s(s({background:"transparent",color:i==null?void 0:i.colorTextMenu,border:"none"},"".concat(e.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(e.componentCls,"-submenu-has-icon"),s({},"> ".concat(e.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(e.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(e.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(e.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",s(s(s({},"".concat(e.antCls,`-menu-item, +import{b,dW as Xt,dX as qt,cq as ct,dr as Zt,_ as d,b6 as ut,w as F,s as ae,j as r,bu as dt,cn as Qe,b2 as J,k as s,R as ve,A as mt,aU as Qt,b3 as P,b8 as vt,dY as ht,bC as ue,x as Be,dZ as zn,bk as on,bj as Yt,aH as _e,h as Jt,i as eo,T as no,d_ as xe,a5 as dn,a0 as to,C as oe,V as oo,bD as ao,E as ft,F as ze,d$ as mn,e0 as vn,e1 as ro,e2 as Ye,e3 as gt,e4 as io,e5 as Je,bi as lo,bb as pt,a4 as so,cm as me,b5 as co,bP as an,ak as uo,e6 as mo,e7 as vo,e8 as ho,e9 as fo,ea as go,cL as yt,n as po,B as yo,b0 as xo,eb as Te,ec as Co,ed as bo,ee as So,ef as Io,a8 as Mo,eg as jo,bt as Ro,aV as To,eh as wo,Y as Fn,ei as Bo,ej as _o,aC as Wn,ek as On}from"./umi-5f6aeac9.js";import{c as Lo}from"./camelCase-d2af58d5.js";import{E as No}from"./index-9fe95bc6.js";import{R as Gn}from"./RouteContext-4a26a6ad.js";function $o(){const o=b.useContext(Xt);return qt(o),o}function xt(o){if(ct(Zt(),"5.6.0")<0)return o;var e={colorGroupTitle:"groupTitleColor",radiusItem:"itemBorderRadius",radiusSubMenuItem:"subMenuItemBorderRadius",colorItemText:"itemColor",colorItemTextHover:"itemHoverColor",colorItemTextHoverHorizontal:"horizontalItemHoverColor",colorItemTextSelected:"itemSelectedColor",colorItemTextSelectedHorizontal:"horizontalItemSelectedColor",colorItemTextDisabled:"itemDisabledColor",colorDangerItemText:"dangerItemColor",colorDangerItemTextHover:"dangerItemHoverColor",colorDangerItemTextSelected:"dangerItemSelectedColor",colorDangerItemBgActive:"dangerItemActiveBg",colorDangerItemBgSelected:"dangerItemSelectedBg",colorItemBg:"itemBg",colorItemBgHover:"itemHoverBg",colorSubItemBg:"subMenuItemBg",colorItemBgActive:"itemActiveBg",colorItemBgSelected:"itemSelectedBg",colorItemBgSelectedHorizontal:"horizontalItemSelectedBg",colorActiveBarWidth:"activeBarWidth",colorActiveBarHeight:"activeBarHeight",colorActiveBarBorderSize:"activeBarBorderWidth"},n=d({},o);return Object.keys(e).forEach(function(t){n[t]!==void 0&&(n[e[t]]=n[t],delete n[t])}),n}function Ho(o,e){var n=typeof o.pageName=="string"?o.title:e;b.useEffect(function(){ut()&&n&&(document.title=n)},[o.title,n])}function Po(o){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(o)}var hn=function(e){if(!e||!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch{return!1}};function ye(o){var e=typeof window>"u",n=b.useState(function(){return e?!1:window.matchMedia(o).matches}),t=F(n,2),a=t[0],i=t[1];return b.useLayoutEffect(function(){if(!e){var l=window.matchMedia(o),c=function(v){return i(v.matches)};return l.addListener(c),function(){return l.removeListener(c)}}},[o]),a}var ce={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},Ao=function(){var e=void 0;if(typeof window>"u")return e;var n=Object.keys(ce).find(function(t){var a=ce[t].matchMedia;return!!window.matchMedia(a).matches});return e=n,e},ko=function(){var e=ye(ce.md.matchMedia),n=ye(ce.lg.matchMedia),t=ye(ce.xxl.matchMedia),a=ye(ce.xl.matchMedia),i=ye(ce.sm.matchMedia),l=ye(ce.xs.matchMedia),c=b.useState(Ao()),u=F(c,2),v=u[0],m=u[1];return b.useEffect(function(){if(t){m("xxl");return}if(a){m("xl");return}if(n){m("lg");return}if(e){m("md");return}if(i){m("sm");return}if(l){m("xs");return}m("md")},[e,n,t,a,i,l]),v},Do=["isLoading","pastDelay","timedOut","error","retry"],Eo=function(e){e.isLoading,e.pastDelay,e.timedOut,e.error,e.retry;var n=ae(e,Do);return r.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:r.jsx(dt,d({size:"large"},n))})},zo=function(){return r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},Fo=function o(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return r.jsx("div",{className:"".concat(t,"-content ").concat(a).trim(),children:r.jsx("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(l,c){var u;return l!=null&&(u=l.children)!==null&&u!==void 0&&u.length?r.jsxs("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[r.jsx("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:l.title}),r.jsx(o,{hashId:a,itemClick:i,appList:l==null?void 0:l.children,baseClassName:t})]},c):r.jsx("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(m){m.stopPropagation(),i==null||i(l)},children:r.jsxs("a",{href:i?void 0:l.url,target:l.target,rel:"noreferrer",children:[fn(l.icon),r.jsxs("div",{children:[r.jsx("div",{children:l.title}),l.desc?r.jsx("span",{children:l.desc}):null]})]})},c)})})})},Wo=function(e,n){if(e&&typeof e=="string"&&hn(e))return r.jsx("img",{src:e,alt:"logo"});if(typeof e=="function")return e();if(e&&typeof e=="string")return r.jsx("div",{id:"avatarLogo",children:e});if(!e&&n&&typeof n=="string"){var t=n.substring(0,1);return r.jsx("div",{id:"avatarLogo",children:t})}return e},Oo=function o(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return r.jsx("div",{className:"".concat(t,"-content ").concat(a).trim(),children:r.jsx("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(l,c){var u;return l!=null&&(u=l.children)!==null&&u!==void 0&&u.length?r.jsxs("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[r.jsx("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:l.title}),r.jsx(o,{hashId:a,itemClick:i,appList:l==null?void 0:l.children,baseClassName:t})]},c):r.jsx("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(m){m.stopPropagation(),i==null||i(l)},children:r.jsxs("a",{href:i?"javascript:;":l.url,target:l.target,rel:"noreferrer",children:[Wo(l.icon,l.title),r.jsx("div",{children:r.jsx("div",{children:l.title})})]})},c)})})})},Go=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":Qe===null||Qe===void 0?void 0:Qe(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},Ko=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},Uo=function(e){var n,t,a,i,l;return s({},e.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=e.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:(t=e.layout)===null||t===void 0?void 0:t.colorTextAppListIconHover,backgroundColor:(a=e.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover},"&-active":{color:(i=e.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:(l=e.layout)===null||l===void 0?void 0:l.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":s({},"".concat(e.antCls,"-popover-arrow"),{display:"none"}),"&-simple":Ko(e),"&-default":Go(e)})};function Vo(o){return J("AppsLogoComponents",function(e){var n=d(d({},e),{},{componentCls:".".concat(o)});return[Uo(n)]})}var fn=function(e){return typeof e=="string"?r.jsx("img",{width:"auto",height:22,src:e,alt:"logo"}):typeof e=="function"?e():e},gn=function(e){var n,t=e.appList,a=e.appListRender,i=e.prefixCls,l=i===void 0?"ant-pro":i,c=e.onItemClick,u=ve.useRef(null),v=ve.useRef(null),m="".concat(l,"-layout-apps"),h=Vo(m),p=h.wrapSSR,C=h.hashId,M=b.useState(!1),y=F(M,2),x=y[0],_=y[1],w=function(L){c==null||c(L,v)},B=b.useMemo(function(){var f=t==null?void 0:t.some(function(L){return!(L!=null&&L.desc)});return f?r.jsx(Oo,{hashId:C,appList:t,itemClick:c?w:void 0,baseClassName:"".concat(m,"-simple")}):r.jsx(Fo,{hashId:C,appList:t,itemClick:c?w:void 0,baseClassName:"".concat(m,"-default")})},[t,m,C]);if(!(e!=null&&(n=e.appList)!==null&&n!==void 0&&n.length))return null;var I=a?a(e==null?void 0:e.appList,B):B,R=mt(void 0,function(f){return _(f)});return p(r.jsxs(r.Fragment,{children:[r.jsx("div",{ref:u,onClick:function(L){L.stopPropagation(),L.preventDefault()}}),r.jsx(Qt,d(d({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},R),{},{overlayClassName:"".concat(m,"-popover ").concat(C).trim(),content:I,getPopupContainer:function(){return u.current||document.body},children:r.jsx("span",{ref:v,onClick:function(L){L.stopPropagation()},className:P("".concat(m,"-icon"),C,s({},"".concat(m,"-icon-active"),x)),children:r.jsx(zo,{})})}))]}))};function Xo(){return r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var qo=function(e){var n,t,a;return s({},e.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function Zo(o){return J("SiderMenuCollapsedIcon",function(e){var n=d(d({},e),{},{componentCls:".".concat(o)});return[qo(n)]})}var Qo=["isMobile","collapsed"],Yo=function(e){var n=e.isMobile,t=e.collapsed,a=ae(e,Qo),i=Zo(e.className),l=i.wrapSSR,c=i.hashId;return n&&t?null:l(r.jsx("div",d(d({},a),{},{className:P(e.className,c,s(s({},"".concat(e.className,"-collapsed"),t),"".concat(e.className,"-is-mobile"),n)),children:r.jsx(Xo,{})})))},Jo=function(e,n){var t,a,i=n.includes("horizontal")?(t=e.layout)===null||t===void 0?void 0:t.header:(a=e.layout)===null||a===void 0?void 0:a.sider;return d(d(s({},"".concat(e.componentCls),s(s(s(s(s(s(s(s(s({background:"transparent",color:i==null?void 0:i.colorTextMenu,border:"none"},"".concat(e.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(e.componentCls,"-submenu-has-icon"),s({},"> ".concat(e.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(e.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(e.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(e.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",s(s(s({},"".concat(e.antCls,`-menu-item, `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,`-menu-item, `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu > ").concat(e.antCls,`-menu-submenu-title, `).concat(e.antCls,"-menu-submenu > ").concat(e.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,`-menu-submenu-title, diff --git a/web/dist/assets/LightFilter-ccb5168f.js b/web/dist/assets/LightFilter-9321bc66.js similarity index 76% rename from web/dist/assets/LightFilter-ccb5168f.js rename to web/dist/assets/LightFilter-9321bc66.js index febb1ed34924e49f42516d296369bdab725a00de..895098ea8f376b15430cd0e1e62b579280d5cce4 100644 --- a/web/dist/assets/LightFilter-ccb5168f.js +++ b/web/dist/assets/LightFilter-9321bc66.js @@ -1 +1 @@ -import{R as d,k as m,r as c,a0 as g,j as e,a1 as p,_ as o,a7 as y,h as x,aq as u,an as D,ap as L,W as P}from"./umi-2ee4055f.js";import{L as $,P as z}from"./index-84d5661b.js";import{a as N,P as M}from"./index-c4cacd6a.js";import{P as h}from"./index-37bb2b91.js";import{P as E}from"./index-25021ef3.js";import{P as H}from"./index-9900fa87.js";import{P as O}from"./index-dfb59d56.js";import{P as F}from"./index-ca47b438.js";var W=["fieldProps","proFieldProps"],f="dateTime",V=d.forwardRef(function(r,l){var a=r.fieldProps,i=r.proFieldProps,t=m(r,W),s=c.useContext(g);return e.jsx(p,o({ref:l,fieldProps:o({getPopupContainer:s.getPopupContainer},a),valueType:f,proFieldProps:i,filedConfig:{valueType:f,customLightMode:!0}},t))});const Y=V;var A=["fieldProps","proFieldProps"],j="dateTimeRange",B=d.forwardRef(function(r,l){var a=r.fieldProps,i=r.proFieldProps,t=m(r,A),s=c.useContext(g);return e.jsx(p,o({ref:l,fieldProps:o({getPopupContainer:s.getPopupContainer},a),valueType:j,proFieldProps:i,filedConfig:{valueType:j,customLightMode:!0,lightFilterLabelFormatter:function(n){return y(n,"YYYY-MM-DD HH:mm:ss")}}},t))});const G=B;var q=["fieldProps","proFieldProps","min","max","step","marks","vertical","range"],I=d.forwardRef(function(r,l){var a=r.fieldProps,i=r.proFieldProps,t=r.min,s=r.max,v=r.step,n=r.marks,R=r.vertical,S=r.range,w=m(r,q);return e.jsx(p,o({valueType:"slider",fieldProps:o(o({},a),{},{min:t,max:s,step:v,marks:n,vertical:R,range:S,style:a==null?void 0:a.style}),ref:l,proFieldProps:i,filedConfig:{ignoreWidth:!0}},w))});const b=I;var J=["fieldProps","proFieldProps"],Z=["fieldProps","proFieldProps"],C="time",K=d.forwardRef(function(r,l){var a=r.fieldProps,i=r.proFieldProps,t=m(r,J),s=c.useContext(g);return e.jsx(p,o({ref:l,fieldProps:o({getPopupContainer:s.getPopupContainer},a),valueType:"timeRange",proFieldProps:i,filedConfig:{valueType:"timeRange",customLightMode:!0,lightFilterLabelFormatter:function(n){return y(n,"HH:mm:ss")}}},t))}),Q=function(l){var a=l.fieldProps,i=l.proFieldProps,t=m(l,Z),s=c.useContext(g);return e.jsx(p,o({fieldProps:o({getPopupContainer:s.getPopupContainer},a),valueType:C,proFieldProps:i,filedConfig:{customLightMode:!0,valueType:C}},t))},T=Q;T.RangePicker=K;const k=T,U=[{title:"Node1",value:"0-0",key:"0-0",children:[{title:"Child Node1",value:"0-0-0",key:"0-0-0"}]},{title:"Node2",value:"0-1",key:"0-1",children:[{title:"Child Node3",value:"0-1-0",key:"0-1-0"},{title:"Child Node4",value:"0-1-1",key:"0-1-1"},{title:"Child Node5",value:"0-1-2",key:"0-1-2"}]}],te=()=>{const[r,l]=d.useState("middle");return e.jsxs("div",{children:[e.jsxs(x.Group,{value:r,onChange:a=>{l(a.target.value)},children:[e.jsx(x.Button,{value:"middle",children:"Middle"}),e.jsx(x.Button,{value:"small",children:"Small"})]}),e.jsx("br",{}),e.jsx("br",{}),e.jsxs($,{initialValues:{name1:"yutingzhao1991",name3:"2020-08-19",range:[20,80],slider:20,sex:[{value:"open1",label:"打开"},{value:"closed2",label:"关闭"}],datetimeRanger:[u("2019-11-16 12:50:26").add(-1,"d").valueOf(),u("2019-11-16 12:50:26").valueOf()],timeRanger:[u("2019-11-16 12:50:26").add(-1,"d").valueOf(),u("2019-11-16 12:50:26").valueOf()]},size:r,onFinish:async a=>console.log(a.sex),children:[e.jsx(F,{name:"sex",label:"性别",showSearch:!0,allowClear:!1,fieldProps:{labelInValue:!0},valueEnum:{man:"男",woman:"女"}}),e.jsx(F,{name:"area",label:"地区",mode:"multiple",valueEnum:{beijing:"北京",shanghai:"上海",hangzhou:"杭州",long:"这是一个很长的用来测试溢出的项目"}}),e.jsx(D.Group,{name:"checkbox-group",label:"Checkbox.Group",options:["A","B","C","D","E","F"]}),e.jsx(N,{initialValue:["0-0","0-1"],label:"树形下拉选择器",fieldProps:{fieldNames:{label:"title"},treeData:U,treeCheckable:!0,showCheckedStrategy:L.SHOW_PARENT,placeholder:"Please select"},name:"treeSelect"}),e.jsx(M,{width:"md",request:async()=>[{value:"zhejiang",label:"浙江",children:[{value:"hangzhou",label:"杭州",children:[{value:"xihu",label:"西湖"}]}]},{value:"jiangsu",label:"Jiangsu",children:[{value:"nanjing",label:"Nanjing",children:[{value:"zhonghuamen",label:"Zhong Hua Men"}]}]}],name:"area",label:"区域",initialValue:["zhejiang","hangzhou","xihu"]}),e.jsx(h,{name:"open",label:"开关"}),e.jsx(E,{name:"count",label:"数量"}),e.jsx(b,{name:"range",label:"范围",range:!0}),e.jsx(b,{name:"slider",label:"范围"}),e.jsx(P,{name:"name1",label:"名称"}),e.jsx(h,{name:"open",label:"开关",secondary:!0}),e.jsx(P,{name:"name2",label:"地址",secondary:!0}),e.jsx(H,{name:"name3",label:"不能清空的日期",allowClear:!1}),e.jsx(O,{name:"date",label:"日期范围"}),e.jsx(Y,{name:"datetime",label:"日期时间"}),e.jsx(G,{name:"datetimeRanger",label:"日期时间范围"}),e.jsx(k,{name:"time",label:"时间"}),e.jsx(k.RangePicker,{name:"timeRanger",label:"时间范围"}),e.jsxs(z,{name:"name",label:"姓名",children:[e.jsx(P,{}),e.jsx(P,{})]})]})]})};export{te as default}; +import{R as d,s as m,b as c,a7 as v,j as e,G as p,_ as o,ac as y,aO as x,d as u,at as D,av as L,a3 as P}from"./umi-5f6aeac9.js";import{L as $,P as z}from"./index-168af0e9.js";import{a as N,P as M}from"./index-9e8f4f3a.js";import{P as h}from"./index-9c418926.js";import{P as E}from"./index-120e4de8.js";import{P as H}from"./index-98ecdc4c.js";import{P as O}from"./index-5035f938.js";import{P as F}from"./index-872d0bf8.js";var G=["fieldProps","proFieldProps"],f="dateTime",V=d.forwardRef(function(r,l){var a=r.fieldProps,i=r.proFieldProps,t=m(r,G),s=c.useContext(v);return e.jsx(p,o({ref:l,fieldProps:o({getPopupContainer:s.getPopupContainer},a),valueType:f,proFieldProps:i,filedConfig:{valueType:f,customLightMode:!0}},t))});const W=V;var Y=["fieldProps","proFieldProps"],j="dateTimeRange",A=d.forwardRef(function(r,l){var a=r.fieldProps,i=r.proFieldProps,t=m(r,Y),s=c.useContext(v);return e.jsx(p,o({ref:l,fieldProps:o({getPopupContainer:s.getPopupContainer},a),valueType:j,proFieldProps:i,filedConfig:{valueType:j,customLightMode:!0,lightFilterLabelFormatter:function(n){return y(n,"YYYY-MM-DD HH:mm:ss")}}},t))});const B=A;var q=["fieldProps","proFieldProps","min","max","step","marks","vertical","range"],I=d.forwardRef(function(r,l){var a=r.fieldProps,i=r.proFieldProps,t=r.min,s=r.max,g=r.step,n=r.marks,R=r.vertical,S=r.range,w=m(r,q);return e.jsx(p,o({valueType:"slider",fieldProps:o(o({},a),{},{min:t,max:s,step:g,marks:n,vertical:R,range:S,style:a==null?void 0:a.style}),ref:l,proFieldProps:i,filedConfig:{ignoreWidth:!0}},w))});const b=I;var J=["fieldProps","proFieldProps"],Z=["fieldProps","proFieldProps"],C="time",K=d.forwardRef(function(r,l){var a=r.fieldProps,i=r.proFieldProps,t=m(r,J),s=c.useContext(v);return e.jsx(p,o({ref:l,fieldProps:o({getPopupContainer:s.getPopupContainer},a),valueType:"timeRange",proFieldProps:i,filedConfig:{valueType:"timeRange",customLightMode:!0,lightFilterLabelFormatter:function(n){return y(n,"HH:mm:ss")}}},t))}),Q=function(l){var a=l.fieldProps,i=l.proFieldProps,t=m(l,Z),s=c.useContext(v);return e.jsx(p,o({fieldProps:o({getPopupContainer:s.getPopupContainer},a),valueType:C,proFieldProps:i,filedConfig:{customLightMode:!0,valueType:C}},t))},T=Q;T.RangePicker=K;const k=T,U=[{title:"Node1",value:"0-0",key:"0-0",children:[{title:"Child Node1",value:"0-0-0",key:"0-0-0"}]},{title:"Node2",value:"0-1",key:"0-1",children:[{title:"Child Node3",value:"0-1-0",key:"0-1-0"},{title:"Child Node4",value:"0-1-1",key:"0-1-1"},{title:"Child Node5",value:"0-1-2",key:"0-1-2"}]}],te=()=>{const[r,l]=d.useState("middle");return e.jsxs("div",{children:[e.jsxs(x.Group,{value:r,onChange:a=>{l(a.target.value)},children:[e.jsx(x.Button,{value:"middle",children:"Middle"}),e.jsx(x.Button,{value:"small",children:"Small"})]}),e.jsx("br",{}),e.jsx("br",{}),e.jsxs($,{initialValues:{name1:"yutingzhao1991",name3:"2020-08-19",range:[20,80],slider:20,sex:[{value:"open1",label:"打开"},{value:"closed2",label:"关闭"}],datetimeRanger:[u("2019-11-16 12:50:26").add(-1,"d").valueOf(),u("2019-11-16 12:50:26").valueOf()],timeRanger:[u("2019-11-16 12:50:26").add(-1,"d").valueOf(),u("2019-11-16 12:50:26").valueOf()]},size:r,onFinish:async a=>console.log(a.sex),children:[e.jsx(F,{name:"sex",label:"性别",showSearch:!0,allowClear:!1,fieldProps:{labelInValue:!0},valueEnum:{man:"男",woman:"女"}}),e.jsx(F,{name:"area",label:"地区",mode:"multiple",valueEnum:{beijing:"北京",shanghai:"上海",hangzhou:"杭州",long:"这是一个很长的用来测试溢出的项目"}}),e.jsx(D.Group,{name:"checkbox-group",label:"Checkbox.Group",options:["A","B","C","D","E","F"]}),e.jsx(N,{initialValue:["0-0","0-1"],label:"树形下拉选择器",fieldProps:{fieldNames:{label:"title"},treeData:U,treeCheckable:!0,showCheckedStrategy:L.SHOW_PARENT,placeholder:"Please select"},name:"treeSelect"}),e.jsx(M,{width:"md",request:async()=>[{value:"zhejiang",label:"浙江",children:[{value:"hangzhou",label:"杭州",children:[{value:"xihu",label:"西湖"}]}]},{value:"jiangsu",label:"Jiangsu",children:[{value:"nanjing",label:"Nanjing",children:[{value:"zhonghuamen",label:"Zhong Hua Men"}]}]}],name:"area",label:"区域",initialValue:["zhejiang","hangzhou","xihu"]}),e.jsx(h,{name:"open",label:"开关"}),e.jsx(E,{name:"count",label:"数量"}),e.jsx(b,{name:"range",label:"范围",range:!0}),e.jsx(b,{name:"slider",label:"范围"}),e.jsx(P,{name:"name1",label:"名称"}),e.jsx(h,{name:"open",label:"开关",secondary:!0}),e.jsx(P,{name:"name2",label:"地址",secondary:!0}),e.jsx(H,{name:"name3",label:"不能清空的日期",allowClear:!1}),e.jsx(O,{name:"date",label:"日期范围"}),e.jsx(W,{name:"datetime",label:"日期时间"}),e.jsx(B,{name:"datetimeRanger",label:"日期时间范围"}),e.jsx(k,{name:"time",label:"时间"}),e.jsx(k.RangePicker,{name:"timeRanger",label:"时间范围"}),e.jsxs(z,{name:"name",label:"姓名",children:[e.jsx(P,{}),e.jsx(P,{})]})]})]})};export{te as default}; diff --git a/web/dist/assets/LoginForm-2a910d1d.js b/web/dist/assets/LoginForm-2a910d1d.js deleted file mode 100644 index 7d2282af5f433af8cfa205aa84c8b3e8d9db4ace..0000000000000000000000000000000000000000 --- a/web/dist/assets/LoginForm-2a910d1d.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,ae as d,r as x,af as u,ag as g,B as p,ah as h,S as m,ai as b,aj as j,ak as y,a8 as t,W as a,$ as f,al as l,am as A,V as P,an as T}from"./umi-2ee4055f.js";import{P as v}from"./index-77afe57c.js";const i={color:"rgba(0, 0, 0, 0.2)",fontSize:"18px",verticalAlign:"middle",cursor:"pointer"},k=()=>{const[o,n]=x.useState("phone"),{token:r}=u.useToken();return e.jsx("div",{style:{backgroundColor:"white",height:"100vh"},children:e.jsxs(g,{backgroundImageUrl:"https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*y0ZTS6WLwvgAAAAAAAAAAAAADml6AQ/fmt.webp",logo:"https://github.githubassets.com/images/modules/logos_page/Octocat.png",backgroundVideoUrl:"https://gw.alipayobjects.com/v/huamei_gcee1x/afts/video/jXRBRK_VAwoAAAAAAAAAAAAAK4eUAQBr",title:"Github",containerStyle:{backgroundColor:"rgba(0, 0, 0,0.65)",backdropFilter:"blur(4px)"},subTitle:"全球最大的代码托管平台",activityConfig:{style:{boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.2)",color:r.colorTextHeading,borderRadius:8,backgroundColor:"rgba(255,255,255,0.25)",backdropFilter:"blur(4px)"},title:"活动标题,可配置图片",subTitle:"活动介绍说明文字",action:e.jsx(p,{size:"large",style:{borderRadius:20,background:r.colorBgElevated,color:r.colorPrimary,width:120},children:"去看看"})},actions:e.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[e.jsx(h,{plain:!0,children:e.jsx("span",{style:{color:r.colorTextPlaceholder,fontWeight:"normal",fontSize:14},children:"其他登录方式"})}),e.jsxs(m,{align:"center",size:24,children:[e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:40,width:40,border:"1px solid "+r.colorPrimaryBorder,borderRadius:"50%"},children:e.jsx(b,{style:{...i,color:"#1677FF"}})}),e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:40,width:40,border:"1px solid "+r.colorPrimaryBorder,borderRadius:"50%"},children:e.jsx(j,{style:{...i,color:"#FF6A10"}})}),e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:40,width:40,border:"1px solid "+r.colorPrimaryBorder,borderRadius:"50%"},children:e.jsx(y,{style:{...i,color:"#1890ff"}})})]})]}),children:[e.jsxs(t,{centered:!0,activeKey:o,onChange:s=>n(s),children:[e.jsx(t.TabPane,{tab:"账号密码登录"},"account"),e.jsx(t.TabPane,{tab:"手机号登录"},"phone")]}),o==="account"&&e.jsxs(e.Fragment,{children:[e.jsx(a,{name:"username",fieldProps:{size:"large",prefix:e.jsx(f,{style:{color:r.colorText},className:"prefixIcon"})},placeholder:"用户名: admin or user",rules:[{required:!0,message:"请输入用户名!"}]}),e.jsx(a.Password,{name:"password",fieldProps:{size:"large",prefix:e.jsx(l,{style:{color:r.colorText},className:"prefixIcon"})},placeholder:"密码: ant.design",rules:[{required:!0,message:"请输入密码!"}]})]}),o==="phone"&&e.jsxs(e.Fragment,{children:[e.jsx(a,{fieldProps:{size:"large",prefix:e.jsx(A,{style:{color:r.colorText},className:"prefixIcon"})},name:"mobile",placeholder:"手机号",rules:[{required:!0,message:"请输入手机号!"},{pattern:/^1\d{10}$/,message:"手机号格式错误!"}]}),e.jsx(v,{fieldProps:{size:"large",prefix:e.jsx(l,{style:{color:r.colorText},className:"prefixIcon"})},captchaProps:{size:"large"},placeholder:"请输入验证码",captchaTextRender:(s,c)=>s?`${c} 获取验证码`:"获取验证码",name:"captcha",rules:[{required:!0,message:"请输入验证码!"}],onGetCaptcha:async()=>{P.success("获取验证码成功!验证码为:1234")}})]}),e.jsxs("div",{style:{marginBlockEnd:24},children:[e.jsx(T,{noStyle:!0,name:"autoLogin",children:"自动登录"}),e.jsx("a",{style:{float:"right"},children:"忘记密码"})]})]})})},w=()=>e.jsx(d,{dark:!0,children:e.jsx(k,{})});export{w as default}; diff --git a/web/dist/assets/LoginForm-f8f829ea.js b/web/dist/assets/LoginForm-f8f829ea.js new file mode 100644 index 0000000000000000000000000000000000000000..244ec6d54da035d457caecec62c41020fb423623 --- /dev/null +++ b/web/dist/assets/LoginForm-f8f829ea.js @@ -0,0 +1 @@ +import{j as e,ak as d,b as x,al as u,am as g,B as p,an as m,a0 as h,ao as b,ap as y,aq as j,ae as a,a3 as t,a6 as f,ar as i,as as A,a1 as P,at as T}from"./umi-5f6aeac9.js";import{P as v}from"./index-2c4aebf3.js";const l={color:"rgba(0, 0, 0, 0.2)",fontSize:"18px",verticalAlign:"middle",cursor:"pointer"},k=()=>{const[o,n]=x.useState("phone"),{token:r}=u.useToken();return e.jsx("div",{style:{backgroundColor:"white",height:"100vh"},children:e.jsxs(g,{backgroundImageUrl:"https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*y0ZTS6WLwvgAAAAAAAAAAAAADml6AQ/fmt.webp",logo:"https://github.githubassets.com/images/modules/logos_page/Octocat.png",backgroundVideoUrl:"https://gw.alipayobjects.com/v/huamei_gcee1x/afts/video/jXRBRK_VAwoAAAAAAAAAAAAAK4eUAQBr",title:"Github",containerStyle:{backgroundColor:"rgba(0, 0, 0,0.65)",backdropFilter:"blur(4px)"},subTitle:"全球最大的代码托管平台",activityConfig:{style:{boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.2)",color:r.colorTextHeading,borderRadius:8,backgroundColor:"rgba(255,255,255,0.25)",backdropFilter:"blur(4px)"},title:"活动标题,可配置图片",subTitle:"活动介绍说明文字",action:e.jsx(p,{size:"large",style:{borderRadius:20,background:r.colorBgElevated,color:r.colorPrimary,width:120},children:"去看看"})},actions:e.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[e.jsx(m,{plain:!0,children:e.jsx("span",{style:{color:r.colorTextPlaceholder,fontWeight:"normal",fontSize:14},children:"其他登录方式"})}),e.jsxs(h,{align:"center",size:24,children:[e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:40,width:40,border:"1px solid "+r.colorPrimaryBorder,borderRadius:"50%"},children:e.jsx(b,{style:{...l,color:"#1677FF"}})}),e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:40,width:40,border:"1px solid "+r.colorPrimaryBorder,borderRadius:"50%"},children:e.jsx(y,{style:{...l,color:"#FF6A10"}})}),e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:40,width:40,border:"1px solid "+r.colorPrimaryBorder,borderRadius:"50%"},children:e.jsx(j,{style:{...l,color:"#1890ff"}})})]})]}),children:[e.jsxs(a,{centered:!0,activeKey:o,onChange:s=>n(s),children:[e.jsx(a.TabPane,{tab:"账号密码登录"},"account"),e.jsx(a.TabPane,{tab:"手机号登录"},"phone")]}),o==="account"&&e.jsxs(e.Fragment,{children:[e.jsx(t,{name:"username",fieldProps:{size:"large",prefix:e.jsx(f,{style:{color:r.colorText},className:"prefixIcon"})},placeholder:"用户名: admin or user",rules:[{required:!0,message:"请输入用户名!"}]}),e.jsx(t.Password,{name:"password",fieldProps:{size:"large",prefix:e.jsx(i,{style:{color:r.colorText},className:"prefixIcon"})},placeholder:"密码: ant.design",rules:[{required:!0,message:"请输入密码!"}]})]}),o==="phone"&&e.jsxs(e.Fragment,{children:[e.jsx(t,{fieldProps:{size:"large",prefix:e.jsx(A,{style:{color:r.colorText},className:"prefixIcon"})},name:"mobile",placeholder:"手机号",rules:[{required:!0,message:"请输入手机号!"},{pattern:/^1\d{10}$/,message:"手机号格式错误!"}]}),e.jsx(v,{fieldProps:{size:"large",prefix:e.jsx(i,{style:{color:r.colorText},className:"prefixIcon"})},captchaProps:{size:"large"},placeholder:"请输入验证码",captchaTextRender:(s,c)=>s?`${c} 获取验证码`:"获取验证码",name:"captcha",rules:[{required:!0,message:"请输入验证码!"}],onGetCaptcha:async()=>{P.success("获取验证码成功!验证码为:1234")}})]}),e.jsxs("div",{style:{marginBlockEnd:24},children:[e.jsx(T,{noStyle:!0,name:"autoLogin",children:"自动登录"}),e.jsx("a",{style:{float:"right"},children:"忘记密码"})]})]})})},w=()=>e.jsx(d,{dark:!0,children:e.jsx(k,{})});export{w as default}; diff --git a/web/dist/assets/MiniCard-1e5c36ed.js b/web/dist/assets/MiniCard-1e5c36ed.js new file mode 100644 index 0000000000000000000000000000000000000000..aaf39ce0f87cfebb73b75c45267afd6b8b9c41fa --- /dev/null +++ b/web/dist/assets/MiniCard-1e5c36ed.js @@ -0,0 +1 @@ +import{b as d,R as u,j as e,Z as w,$ as o,an as p}from"./umi-5f6aeac9.js";import{S as f}from"./index-e3aca980.js";import{C as b}from"./index-971c7a18.js";import{R as y}from"./index-85806890.js";import{u as T,W as z,g as R,E,a as F}from"./createLoading-e07c13ae.js";import{P as i}from"./ProCard-a8f5c5a9.js";import{a as O,T as g}from"./index-04808238.js";import"./react-content-loader.es-3bd9b17f.js";import"./index-46da21dc.js";import"./index-55505f41.js";var S=globalThis&&globalThis.__rest||function(t,l){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&l.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(t);s{const l={data:[{type:"家具家电",sales:38},{type:"粮油副食",sales:52},{type:"生鲜水果",sales:61},{type:"美容洗护",sales:145},{type:"母婴用品",sales:48},{type:"进口食品",sales:38},{type:"食品饮料",sales:38},{type:"家庭清洁",sales:38}],xField:"type",yField:"sales",xAxis:{label:{autoHide:!0,autoRotate:!1}},meta:{type:{alias:"类别"},sales:{alias:"销售额"}},color:"#1890ff",minColumnWidth:20,maxColumnWidth:20};return e.jsx("div",{style:{width:"100%",height:"100%"},children:e.jsx(b,{...l})})},D=t=>{const{size:l}=t,[n,a]=d.useState([]),s=()=>{fetch("https://gw.alipayobjects.com/os/antvdemo/assets/data/antv-keywords.json").then(r=>r.json()).then(r=>a(r)).catch(r=>{console.log("fetch data failed",r)})};d.useEffect(()=>{s()},[]);const c={data:n,wordField:"name",weightField:"value",colorField:"name",wordStyle:{fontFamily:"Verdana",fontSize:[8,32],rotation:0},random:()=>.5};return e.jsx("div",{style:{height:l,width:l},children:e.jsx(W,{...c})})},U=()=>{const l={height:100,autoFit:!1,padding:0,data:[264,417,438,887,309,397,550,575,563,430],smooth:!0,areaStyle:{fill:"#1890ff"},color:"#1890ff"},a={height:100,autoFit:!1,data:[274,337,81,497,666,219,269],tooltip:{customContent:function(c,r){var h,m;return`NO.${c}: ${(m=(h=r[0])==null?void 0:h.data2)==null?void 0:m.y.toFixed(2)}`}},color:"#1890ff"},s={width:"100%",height:"160px"};return e.jsxs(w,{gutter:[16,16],children:[e.jsx(o,{span:24,children:e.jsxs(i.Group,{title:"核心指标",direction:"row",children:[e.jsx(i,{children:e.jsx(f,{title:"今日UV",value:79,precision:2})}),e.jsx(p,{type:"vertical"}),e.jsx(i,{children:e.jsx(f,{title:"冻结金额",value:112893,precision:2})}),e.jsx(p,{type:"vertical"}),e.jsx(i,{children:e.jsx(f,{title:"信息完整度",value:93,suffix:"/ 100"})}),e.jsx(p,{type:"vertical"}),e.jsx(i,{children:e.jsx(f,{title:"冻结金额",value:112893})})]})}),e.jsx(o,{span:6,children:e.jsx(i,{style:s,size:"small",title:"用户增长趋势",children:e.jsx(O,{...l})})}),e.jsx(o,{span:6,children:e.jsx(i,{style:s,size:"small",title:"用户来源",children:e.jsxs("div",{style:{display:"flex",justifyContent:"space-around"},children:[e.jsx(y,{size:90,title:"百度",percent:.8}),e.jsx(y,{size:90,title:"谷歌",percent:.4}),e.jsx(y,{size:90,title:"阿里",percent:.2})]})})}),e.jsx(o,{span:6,children:e.jsx(i,{style:s,title:"业绩记录",size:"small",children:e.jsx(g,{...a})})}),e.jsx(o,{span:6,children:e.jsx(i,{style:s,title:"提成记录",size:"small",children:e.jsx(g,{...a})})}),e.jsx(o,{span:12,children:e.jsx(i,{style:{width:"100%",height:"600px"},size:"small",title:"Ant Design 词图",children:e.jsx("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"space-around",alignContent:"center"},children:e.jsx(D,{size:500})})})}),e.jsx(o,{span:12,children:e.jsx(i,{style:{width:"100%",height:"600px"},size:"small",title:"行业热度",children:e.jsx("div",{style:{width:"100%",height:"100%"},children:e.jsx(_,{})})})})]})};export{U as default}; diff --git a/web/dist/assets/MiniCard-bf820d68.js b/web/dist/assets/MiniCard-bf820d68.js deleted file mode 100644 index d3b6f87968b21edebd4f6c5244d849aec52865c6..0000000000000000000000000000000000000000 --- a/web/dist/assets/MiniCard-bf820d68.js +++ /dev/null @@ -1 +0,0 @@ -import{r as d,R as u,j as e,e as w,f as o,ah as p}from"./umi-2ee4055f.js";import{S as f}from"./index-426be59b.js";import{C as T}from"./index-c4f19093.js";import{R as y}from"./index-883cb62c.js";import{u as b,W as z,g as R,E,C as F}from"./createLoading-2160f924.js";import{P as i}from"./ProCard-cee316ff.js";import{T as O}from"./index-9f6163bb.js";import{T as g}from"./index-c02d95b0.js";import"./react-content-loader.es-7f7b682d.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";var S=globalThis&&globalThis.__rest||function(t,l){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&l.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(t);a{const l={data:[{type:"家具家电",sales:38},{type:"粮油副食",sales:52},{type:"生鲜水果",sales:61},{type:"美容洗护",sales:145},{type:"母婴用品",sales:48},{type:"进口食品",sales:38},{type:"食品饮料",sales:38},{type:"家庭清洁",sales:38}],xField:"type",yField:"sales",xAxis:{label:{autoHide:!0,autoRotate:!1}},meta:{type:{alias:"类别"},sales:{alias:"销售额"}},color:"#1890ff",minColumnWidth:20,maxColumnWidth:20};return e.jsx("div",{style:{width:"100%",height:"100%"},children:e.jsx(T,{...l})})},D=t=>{const{size:l}=t,[n,s]=d.useState([]),a=()=>{fetch("https://gw.alipayobjects.com/os/antvdemo/assets/data/antv-keywords.json").then(r=>r.json()).then(r=>s(r)).catch(r=>{console.log("fetch data failed",r)})};d.useEffect(()=>{a()},[]);const c={data:n,wordField:"name",weightField:"value",colorField:"name",wordStyle:{fontFamily:"Verdana",fontSize:[8,32],rotation:0},random:()=>.5};return e.jsx("div",{style:{height:l,width:l},children:e.jsx(W,{...c})})},q=()=>{const l={height:100,autoFit:!1,padding:0,data:[264,417,438,887,309,397,550,575,563,430],smooth:!0,areaStyle:{fill:"#1890ff"},color:"#1890ff"},s={height:100,autoFit:!1,data:[274,337,81,497,666,219,269],tooltip:{customContent:function(c,r){var h,m;return`NO.${c}: ${(m=(h=r[0])==null?void 0:h.data2)==null?void 0:m.y.toFixed(2)}`}},color:"#1890ff"},a={width:"100%",height:"160px"};return e.jsxs(w,{gutter:[16,16],children:[e.jsx(o,{span:24,children:e.jsxs(i.Group,{title:"核心指标",direction:"row",children:[e.jsx(i,{children:e.jsx(f,{title:"今日UV",value:79,precision:2})}),e.jsx(p,{type:"vertical"}),e.jsx(i,{children:e.jsx(f,{title:"冻结金额",value:112893,precision:2})}),e.jsx(p,{type:"vertical"}),e.jsx(i,{children:e.jsx(f,{title:"信息完整度",value:93,suffix:"/ 100"})}),e.jsx(p,{type:"vertical"}),e.jsx(i,{children:e.jsx(f,{title:"冻结金额",value:112893})})]})}),e.jsx(o,{span:6,children:e.jsx(i,{style:a,size:"small",title:"用户增长趋势",children:e.jsx(O,{...l})})}),e.jsx(o,{span:6,children:e.jsx(i,{style:a,size:"small",title:"用户来源",children:e.jsxs("div",{style:{display:"flex",justifyContent:"space-around"},children:[e.jsx(y,{size:90,title:"百度",percent:.8}),e.jsx(y,{size:90,title:"谷歌",percent:.4}),e.jsx(y,{size:90,title:"阿里",percent:.2})]})})}),e.jsx(o,{span:6,children:e.jsx(i,{style:a,title:"业绩记录",size:"small",children:e.jsx(g,{...s})})}),e.jsx(o,{span:6,children:e.jsx(i,{style:a,title:"提成记录",size:"small",children:e.jsx(g,{...s})})}),e.jsx(o,{span:12,children:e.jsx(i,{style:{width:"100%",height:"600px"},size:"small",title:"Ant Design 词图",children:e.jsx("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"space-around",alignContent:"center"},children:e.jsx(D,{size:500})})})}),e.jsx(o,{span:12,children:e.jsx(i,{style:{width:"100%",height:"600px"},size:"small",title:"行业热度",children:e.jsx("div",{style:{width:"100%",height:"100%"},children:e.jsx(_,{})})})})]})};export{q as default}; diff --git a/web/dist/assets/ModalForm-5f34b614.js b/web/dist/assets/ModalForm-5f34b614.js new file mode 100644 index 0000000000000000000000000000000000000000..e9708eb1bbcd7cb315830ec892bf17244ab5c254 --- /dev/null +++ b/web/dist/assets/ModalForm-5f34b614.js @@ -0,0 +1 @@ +import{H as u,j as e,B as o,Q as i,a1 as n,P as s,a3 as a}from"./umi-5f6aeac9.js";import{D as c}from"./index-25d65b6e.js";import{M as x}from"./index-0da8d099.js";import{P as m}from"./index-5035f938.js";import{P as t}from"./index-872d0bf8.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";const d=(l=100)=>new Promise(r=>{setTimeout(()=>{r(!0)},l)}),y=()=>{const[l]=u.useForm();return e.jsxs(e.Fragment,{children:[e.jsxs(x,{title:"新建Model表单",trigger:e.jsxs(o,{type:"primary",style:{marginRight:20},children:[e.jsx(i,{}),"新建 Model 表单"]}),form:l,autoFocusFirstInput:!0,modalProps:{destroyOnClose:!0,onCancel:()=>console.log("run")},submitTimeout:2e3,onFinish:async r=>(await d(2e3),console.log(r.name),n.success("提交成功"),!0),children:[e.jsxs(s.Group,{children:[e.jsx(a,{width:"md",name:"name",label:"签约客户名称",tooltip:"最长为 24 位",placeholder:"请输入名称"}),e.jsx(a,{width:"md",name:"company",label:"我方公司名称",placeholder:"请输入名称"})]}),e.jsxs(s.Group,{children:[e.jsx(a,{width:"md",name:"contract",label:"合同名称",placeholder:"请输入名称"}),e.jsx(m,{name:"contractTime",label:"合同生效时间"})]}),e.jsxs(s.Group,{children:[e.jsx(t,{request:async()=>[{value:"chapter",label:"盖章后生效"}],width:"xs",name:"useMode",label:"合同约定生效方式"}),e.jsx(t,{width:"xs",options:[{value:"time",label:"履行完终止"}],name:"unusedMode",label:"合同约定失效效方式"})]}),e.jsx(a,{width:"sm",name:"id",label:"主合同编号"}),e.jsx(a,{name:"project",disabled:!0,label:"项目名称",initialValue:"xxxx项目"}),e.jsx(a,{width:"xs",name:"mangerName",disabled:!0,label:"商务经理",initialValue:"启途"})]}),e.jsxs(c,{title:"新建Drawer表单",resize:{onResize(){console.log("resize!")},maxWidth:window.innerWidth*.8,minWidth:300},form:l,trigger:e.jsxs(o,{type:"primary",children:[e.jsx(i,{}),"新建 Drawer 表单"]}),autoFocusFirstInput:!0,drawerProps:{destroyOnClose:!0},submitTimeout:2e3,onFinish:async r=>(await d(2e3),console.log(r.name),n.success("提交成功"),!0),children:[e.jsxs(s.Group,{children:[e.jsx(a,{name:"name",width:"md",label:"签约客户名称",tooltip:"最长为 24 位",placeholder:"请输入名称"}),e.jsx(a,{rules:[{required:!0}],width:"md",name:"company",label:"我方公司名称",placeholder:"请输入名称"})]}),e.jsxs(s.Group,{children:[e.jsx(a,{width:"md",name:"contract",label:"合同名称",placeholder:"请输入名称"}),e.jsx(m,{name:"contractTime",label:"合同生效时间"})]}),e.jsxs(s.Group,{children:[e.jsx(t,{options:[{value:"chapter",label:"盖章后生效"}],width:"xs",name:"useMode",label:"合同约定生效方式"}),e.jsx(t,{width:"xs",options:[{value:"time",label:"履行完终止"}],formItemProps:{style:{margin:0}},name:"unusedMode",label:"合同约定失效效方式"})]}),e.jsx(a,{width:"sm",name:"id",label:"主合同编号"}),e.jsx(a,{name:"project",disabled:!0,label:"项目名称",initialValue:"xxxx项目"}),e.jsx(a,{width:"xs",name:"mangerName",disabled:!0,label:"商务经理",initialValue:"启途"})]})]})};export{y as default}; diff --git a/web/dist/assets/ModalForm-ceddc203.js b/web/dist/assets/ModalForm-ceddc203.js deleted file mode 100644 index 7302de2caf4c8b755a5173264135bd86d3e2e543..0000000000000000000000000000000000000000 --- a/web/dist/assets/ModalForm-ceddc203.js +++ /dev/null @@ -1 +0,0 @@ -import{O as u,j as e,B as o,Q as i,V as n,P as a,W as s}from"./umi-2ee4055f.js";import{D as c}from"./index-cd6d59f9.js";import{M as x}from"./index-5259f52c.js";import{P as m}from"./index-dfb59d56.js";import{P as t}from"./index-ca47b438.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";const d=(l=100)=>new Promise(r=>{setTimeout(()=>{r(!0)},l)}),y=()=>{const[l]=u.useForm();return e.jsxs(e.Fragment,{children:[e.jsxs(x,{title:"新建Model表单",trigger:e.jsxs(o,{type:"primary",style:{marginRight:20},children:[e.jsx(i,{}),"新建 Model 表单"]}),form:l,autoFocusFirstInput:!0,modalProps:{destroyOnClose:!0,onCancel:()=>console.log("run")},submitTimeout:2e3,onFinish:async r=>(await d(2e3),console.log(r.name),n.success("提交成功"),!0),children:[e.jsxs(a.Group,{children:[e.jsx(s,{width:"md",name:"name",label:"签约客户名称",tooltip:"最长为 24 位",placeholder:"请输入名称"}),e.jsx(s,{width:"md",name:"company",label:"我方公司名称",placeholder:"请输入名称"})]}),e.jsxs(a.Group,{children:[e.jsx(s,{width:"md",name:"contract",label:"合同名称",placeholder:"请输入名称"}),e.jsx(m,{name:"contractTime",label:"合同生效时间"})]}),e.jsxs(a.Group,{children:[e.jsx(t,{request:async()=>[{value:"chapter",label:"盖章后生效"}],width:"xs",name:"useMode",label:"合同约定生效方式"}),e.jsx(t,{width:"xs",options:[{value:"time",label:"履行完终止"}],name:"unusedMode",label:"合同约定失效效方式"})]}),e.jsx(s,{width:"sm",name:"id",label:"主合同编号"}),e.jsx(s,{name:"project",disabled:!0,label:"项目名称",initialValue:"xxxx项目"}),e.jsx(s,{width:"xs",name:"mangerName",disabled:!0,label:"商务经理",initialValue:"启途"})]}),e.jsxs(c,{title:"新建Drawer表单",resize:{onResize(){console.log("resize!")},maxWidth:window.innerWidth*.8,minWidth:300},form:l,trigger:e.jsxs(o,{type:"primary",children:[e.jsx(i,{}),"新建 Drawer 表单"]}),autoFocusFirstInput:!0,drawerProps:{destroyOnClose:!0},submitTimeout:2e3,onFinish:async r=>(await d(2e3),console.log(r.name),n.success("提交成功"),!0),children:[e.jsxs(a.Group,{children:[e.jsx(s,{name:"name",width:"md",label:"签约客户名称",tooltip:"最长为 24 位",placeholder:"请输入名称"}),e.jsx(s,{rules:[{required:!0}],width:"md",name:"company",label:"我方公司名称",placeholder:"请输入名称"})]}),e.jsxs(a.Group,{children:[e.jsx(s,{width:"md",name:"contract",label:"合同名称",placeholder:"请输入名称"}),e.jsx(m,{name:"contractTime",label:"合同生效时间"})]}),e.jsxs(a.Group,{children:[e.jsx(t,{options:[{value:"chapter",label:"盖章后生效"}],width:"xs",name:"useMode",label:"合同约定生效方式"}),e.jsx(t,{width:"xs",options:[{value:"time",label:"履行完终止"}],formItemProps:{style:{margin:0}},name:"unusedMode",label:"合同约定失效效方式"})]}),e.jsx(s,{width:"sm",name:"id",label:"主合同编号"}),e.jsx(s,{name:"project",disabled:!0,label:"项目名称",initialValue:"xxxx项目"}),e.jsx(s,{width:"xs",name:"mangerName",disabled:!0,label:"商务经理",initialValue:"启途"})]})]})};export{y as default}; diff --git a/web/dist/assets/Preview-7dabcd9c.js b/web/dist/assets/Preview-9cf6f4dd.js similarity index 98% rename from web/dist/assets/Preview-7dabcd9c.js rename to web/dist/assets/Preview-9cf6f4dd.js index 4ae32daa745789449c373f77ceb8a7e5a9eefebb..dd24b09240c4abc5afe122481ba675db073677f4 100644 --- a/web/dist/assets/Preview-7dabcd9c.js +++ b/web/dist/assets/Preview-9cf6f4dd.js @@ -1,4 +1,4 @@ -import{bj as commonjsGlobal,r as reactExports,j as jsxRuntimeExports}from"./umi-2ee4055f.js";import TableConfigContext from"./TableConfigContext-e116ad0a.js";import{buildColumns}from"./utils-b63e8c97.js";import{X as XinTable}from"./index-1c416090.js";import"./index-ea2ed5fc.js";import"./ActionButton-a9da0b15.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./table-c83b9d9d.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./Table-3849f584.js";import"./Table-0e254f81.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./RouteContext-8fa10ad2.js";var mock={exports:{}};(function(module,exports){(function(x,n){module.exports=n()})(commonjsGlobal,function(){return function(l){var x={};function n(u){if(x[u])return x[u].exports;var a=x[u]={exports:{},id:u,loaded:!1};return l[u].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}return n.m=l,n.c=x,n.p="",n(0)}([function(l,x,n){var u=n(1),a=n(3),s=n(5),c=n(20),p=n(23),f=n(25),o;typeof window<"u"&&(o=n(27));/*! +import{bs as commonjsGlobal,b as reactExports,j as jsxRuntimeExports}from"./umi-5f6aeac9.js";import TableConfigContext from"./TableConfigContext-596283a5.js";import{buildColumns}from"./utils-b63e8c97.js";import{X as XinTable}from"./index-109f15ec.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./table-0fa6c309.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";var mock={exports:{}};(function(module,exports){(function(x,n){module.exports=n()})(commonjsGlobal,function(){return function(l){var x={};function n(u){if(x[u])return x[u].exports;var a=x[u]={exports:{},id:u,loaded:!1};return l[u].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}return n.m=l,n.c=x,n.p="",n(0)}([function(l,x,n){var u=n(1),a=n(3),s=n(5),c=n(20),p=n(23),f=n(25),o;typeof window<"u"&&(o=n(27));/*! Mock - 模拟请求 & 模拟数据 https://github.com/nuysoft/Mock 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com diff --git a/web/dist/assets/ProCard-cee316ff.js b/web/dist/assets/ProCard-a8f5c5a9.js similarity index 45% rename from web/dist/assets/ProCard-cee316ff.js rename to web/dist/assets/ProCard-a8f5c5a9.js index 88ae1cb0e4cf3acc73209b76540cb616c736dd87..86b6b57431bf4d0f32e105744328c295d99d9ef5 100644 --- a/web/dist/assets/ProCard-cee316ff.js +++ b/web/dist/assets/ProCard-a8f5c5a9.js @@ -1 +1 @@ -import{j as e,_ as s}from"./umi-2ee4055f.js";import{C as a,D as t,T as d}from"./index-3f6ddb76.js";var i=function(o){return e.jsx(a,s({bodyStyle:{padding:0}},o))},r=a;r.isProCard=!0;r.Divider=t;r.TabPane=d;r.Group=i;const P=r;export{P}; +import{j as e,_ as s}from"./umi-5f6aeac9.js";import{C as a,D as t,T as d}from"./index-46da21dc.js";var i=function(o){return e.jsx(a,s({bodyStyle:{padding:0}},o))},r=a;r.isProCard=!0;r.Divider=t;r.TabPane=d;r.Group=i;const P=r;export{P}; diff --git a/web/dist/assets/ProForm-72582326.js b/web/dist/assets/ProForm-72582326.js new file mode 100644 index 0000000000000000000000000000000000000000..7ca161662a801183edda9954d9df3781414d8f36 --- /dev/null +++ b/web/dist/assets/ProForm-72582326.js @@ -0,0 +1 @@ +import{b as j,j as e,P as l,a1 as p,a3 as r,av as b,d as n,aw as i}from"./umi-5f6aeac9.js";import{P}from"./index-120e4de8.js";import{P as F}from"./index-5035f938.js";import{P as c}from"./index-872d0bf8.js";import{P as f}from"./index-f4ebd759.js";import{P as g}from"./index-34d06e04.js";import{P as v,a as w}from"./index-9e8f4f3a.js";import{P as s}from"./index-98ecdc4c.js";const h=(t=100)=>new Promise(a=>{setTimeout(()=>{a(!0)},t)}),y=[{title:"Node1",value:"0-0",key:"0-0",children:[{title:"Child Node1",value:"0-0-0",key:"0-0-0"}]},{title:"Node2",value:"0-1",key:"0-1",children:[{title:"Child Node3",value:"0-1-0",key:"0-1-0"},{title:"Child Node4",value:"0-1-1",key:"0-1-1"},{title:"Child Node5",value:"0-1-2",key:"0-1-2"}]}],V=()=>{const t=j.useRef();return e.jsxs(l,{onFinish:async a=>{var m,o,u;await h(2e3),console.log(a);const d=await((m=t.current)==null?void 0:m.validateFields());console.log("validateFields:",d);const x=await((u=(o=t.current)==null?void 0:o.validateFieldsReturnFormatValue)==null?void 0:u.call(o));console.log("validateFieldsReturnFormatValue:",x),p.success("提交成功")},formRef:t,params:{id:"100"},formKey:"base-form-use-demo",dateFormatter:(a,d)=>(console.log("---->",a,d),a.format("YYYY/MM/DD HH:mm:ss")),request:async()=>(await h(1e3),{name:"蚂蚁设计有限公司",useMode:"chapter"}),autoFocusFirstInput:!0,children:[e.jsxs(l.Group,{children:[e.jsx(r,{width:"md",name:"name",required:!0,dependencies:[["contract","name"]],addonBefore:e.jsx("a",{children:"客户名称应该怎么获得?"}),addonAfter:e.jsx("a",{children:"点击查看更多"}),label:"签约客户名称",tooltip:"最长为 24 位",placeholder:"请输入名称",rules:[{required:!0,message:"这是必填项"}]}),e.jsx(r,{width:"md",name:"company",label:"我方公司名称",placeholder:"请输入名称"})]}),e.jsx(l.Group,{children:e.jsx(P,{name:"count",label:"人数",width:"lg"})}),e.jsxs(l.Group,{children:[e.jsx(r,{name:["contract","name"],width:"md",label:"合同名称",placeholder:"请输入名称"}),e.jsx(F,{width:"md",name:["contract","createTime"],label:"合同生效时间"})]}),e.jsxs(l.Group,{children:[e.jsx(c,{options:[{value:"chapter",label:"盖章后生效"}],readonly:!0,width:"xs",cacheForSwr:!0,name:"useMode",label:"合同约定生效方式"}),e.jsx(c.SearchSelect,{width:"xs",options:[{value:"time",label:"履行完终止",type:"time",options:[{value:"time1",label:"履行完终止1"},{value:"time2",label:"履行完终止2"}]}],name:"unusedMode",label:"合同约定失效方式"}),e.jsx(f,{width:"md",name:"money",label:"合同约定金额",fieldProps:{numberPopoverRender:!0}})]}),e.jsx(r,{width:"sm",name:"id",label:"主合同编号"}),e.jsx(r,{name:"project",width:"md",disabled:!0,label:"项目名称",initialValue:"xxxx项目"}),e.jsx(g,{colProps:{span:24},name:"address",label:"详细的工作地址或家庭住址"}),e.jsx(r,{width:"xs",name:"mangerName",disabled:!0,label:"商务经理",initialValue:"启途"}),e.jsx(v,{width:"md",request:async()=>[{value:"zhejiang",label:"浙江",children:[{value:"hangzhou",label:"杭州",children:[{value:"xihu",label:"西湖"}]}]},{value:"jiangsu",label:"Jiangsu",children:[{value:"nanjing",label:"Nanjing",children:[{value:"zhonghuamen",label:"Zhong Hua Men"}]}]}],name:"areaList",label:"区域",initialValue:["zhejiang","hangzhou","xihu"],addonAfter:"qixian"}),e.jsx(w,{initialValue:["0-0-0"],label:"树形下拉选择器",width:600,fieldProps:{fieldNames:{label:"title"},treeData:y,treeCheckable:!0,showCheckedStrategy:b.SHOW_PARENT,placeholder:"Please select"}}),e.jsx(s,{name:"date",transform:a=>({date:n(a).unix()})}),e.jsx(i,{name:"datas",children:()=>e.jsxs(e.Fragment,{children:[e.jsx(s,{name:"date",transform:a=>({date:n(a).unix()})}),e.jsx(i,{name:"innerDatas",children:()=>e.jsxs(e.Fragment,{children:[e.jsx(s,{name:"date",transform:a=>({date:n(a).unix()})}),e.jsx(i,{name:"innerDatas",children:()=>e.jsxs(e.Fragment,{children:[e.jsx(s,{name:"date",transform:a=>({date:n(a).unix()})}),e.jsx(i,{name:"innerDatas",children:()=>e.jsx(e.Fragment,{children:e.jsx(s,{name:"date",transform:a=>({date:n(a).unix()})})})})]})})]})})]})})]})};export{V as default}; diff --git a/web/dist/assets/ProForm-7316c755.js b/web/dist/assets/ProForm-7316c755.js deleted file mode 100644 index cd1515632c560ba85e74218b29d49d6fe11a8aa6..0000000000000000000000000000000000000000 --- a/web/dist/assets/ProForm-7316c755.js +++ /dev/null @@ -1 +0,0 @@ -import{r as j,j as e,P as l,V as p,W as r,ap as b,aq as n,ar as i}from"./umi-2ee4055f.js";import{P}from"./index-25021ef3.js";import{P as F}from"./index-dfb59d56.js";import{P as c}from"./index-ca47b438.js";import{P as f}from"./index-f4422a84.js";import{P as g}from"./index-8a5a2994.js";import{P as v,a as w}from"./index-c4cacd6a.js";import{P as s}from"./index-9900fa87.js";const h=(t=100)=>new Promise(a=>{setTimeout(()=>{a(!0)},t)}),y=[{title:"Node1",value:"0-0",key:"0-0",children:[{title:"Child Node1",value:"0-0-0",key:"0-0-0"}]},{title:"Node2",value:"0-1",key:"0-1",children:[{title:"Child Node3",value:"0-1-0",key:"0-1-0"},{title:"Child Node4",value:"0-1-1",key:"0-1-1"},{title:"Child Node5",value:"0-1-2",key:"0-1-2"}]}],V=()=>{const t=j.useRef();return e.jsxs(l,{onFinish:async a=>{var m,o,u;await h(2e3),console.log(a);const d=await((m=t.current)==null?void 0:m.validateFields());console.log("validateFields:",d);const x=await((u=(o=t.current)==null?void 0:o.validateFieldsReturnFormatValue)==null?void 0:u.call(o));console.log("validateFieldsReturnFormatValue:",x),p.success("提交成功")},formRef:t,params:{id:"100"},formKey:"base-form-use-demo",dateFormatter:(a,d)=>(console.log("---->",a,d),a.format("YYYY/MM/DD HH:mm:ss")),request:async()=>(await h(1e3),{name:"蚂蚁设计有限公司",useMode:"chapter"}),autoFocusFirstInput:!0,children:[e.jsxs(l.Group,{children:[e.jsx(r,{width:"md",name:"name",required:!0,dependencies:[["contract","name"]],addonBefore:e.jsx("a",{children:"客户名称应该怎么获得?"}),addonAfter:e.jsx("a",{children:"点击查看更多"}),label:"签约客户名称",tooltip:"最长为 24 位",placeholder:"请输入名称",rules:[{required:!0,message:"这是必填项"}]}),e.jsx(r,{width:"md",name:"company",label:"我方公司名称",placeholder:"请输入名称"})]}),e.jsx(l.Group,{children:e.jsx(P,{name:"count",label:"人数",width:"lg"})}),e.jsxs(l.Group,{children:[e.jsx(r,{name:["contract","name"],width:"md",label:"合同名称",placeholder:"请输入名称"}),e.jsx(F,{width:"md",name:["contract","createTime"],label:"合同生效时间"})]}),e.jsxs(l.Group,{children:[e.jsx(c,{options:[{value:"chapter",label:"盖章后生效"}],readonly:!0,width:"xs",cacheForSwr:!0,name:"useMode",label:"合同约定生效方式"}),e.jsx(c.SearchSelect,{width:"xs",options:[{value:"time",label:"履行完终止",type:"time",options:[{value:"time1",label:"履行完终止1"},{value:"time2",label:"履行完终止2"}]}],name:"unusedMode",label:"合同约定失效方式"}),e.jsx(f,{width:"md",name:"money",label:"合同约定金额",fieldProps:{numberPopoverRender:!0}})]}),e.jsx(r,{width:"sm",name:"id",label:"主合同编号"}),e.jsx(r,{name:"project",width:"md",disabled:!0,label:"项目名称",initialValue:"xxxx项目"}),e.jsx(g,{colProps:{span:24},name:"address",label:"详细的工作地址或家庭住址"}),e.jsx(r,{width:"xs",name:"mangerName",disabled:!0,label:"商务经理",initialValue:"启途"}),e.jsx(v,{width:"md",request:async()=>[{value:"zhejiang",label:"浙江",children:[{value:"hangzhou",label:"杭州",children:[{value:"xihu",label:"西湖"}]}]},{value:"jiangsu",label:"Jiangsu",children:[{value:"nanjing",label:"Nanjing",children:[{value:"zhonghuamen",label:"Zhong Hua Men"}]}]}],name:"areaList",label:"区域",initialValue:["zhejiang","hangzhou","xihu"],addonAfter:"qixian"}),e.jsx(w,{initialValue:["0-0-0"],label:"树形下拉选择器",width:600,fieldProps:{fieldNames:{label:"title"},treeData:y,treeCheckable:!0,showCheckedStrategy:b.SHOW_PARENT,placeholder:"Please select"}}),e.jsx(s,{name:"date",transform:a=>({date:n(a).unix()})}),e.jsx(i,{name:"datas",children:()=>e.jsxs(e.Fragment,{children:[e.jsx(s,{name:"date",transform:a=>({date:n(a).unix()})}),e.jsx(i,{name:"innerDatas",children:()=>e.jsxs(e.Fragment,{children:[e.jsx(s,{name:"date",transform:a=>({date:n(a).unix()})}),e.jsx(i,{name:"innerDatas",children:()=>e.jsxs(e.Fragment,{children:[e.jsx(s,{name:"date",transform:a=>({date:n(a).unix()})}),e.jsx(i,{name:"innerDatas",children:()=>e.jsx(e.Fragment,{children:e.jsx(s,{name:"date",transform:a=>({date:n(a).unix()})})})})]})})]})})]})})]})};export{V as default}; diff --git a/web/dist/assets/QueryFilter-69dda768.js b/web/dist/assets/QueryFilter-69dda768.js deleted file mode 100644 index ad1a12090ea1f1089ffa4082406eb9a62f0c2259..0000000000000000000000000000000000000000 --- a/web/dist/assets/QueryFilter-69dda768.js +++ /dev/null @@ -1 +0,0 @@ -import{r,j as e,b as m,a8 as j,a9 as y,aa as f,P as n,W as i}from"./umi-2ee4055f.js";import{Q as b}from"./index-6430ced5.js";import{P as g}from"./index-9900fa87.js";const v=o=>{const{onSearch:s,onTypeChange:c,defaultType:h="articles",onFilterChange:d}=o,[p,l]=r.useState(),[t,x]=r.useState(!0),u=["小程序开发","入驻","ISV 权限"];return e.jsxs("div",{children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[e.jsx(m.Search,{placeholder:"请输入",enterButton:"搜索",value:p,onChange:a=>{l(a.target.value)},onSearch:s,style:{maxWidth:522,width:"100%"}}),e.jsx("div",{style:{display:"flex",gap:12},children:u.map(a=>e.jsx("a",{onClick:()=>{l(a),s&&s(a)},children:a},a))})]}),e.jsx(j,{defaultActiveKey:h,onChange:c,tabBarExtraContent:e.jsxs("a",{style:{display:"flex",gap:4},onClick:()=>{x(!t)},children:["高级筛选 ",t?e.jsx(y,{}):e.jsx(f,{})]}),items:[{key:"articles",label:"文章"},{key:"projects",label:"项目"},{key:"applications",label:"应用"}]}),t?e.jsxs(b,{submitter:!1,span:24,labelWidth:"auto",split:!0,onChange:d,children:[e.jsx(n.Group,{title:"姓名",children:e.jsx(i,{name:"name"})}),e.jsxs(n.Group,{title:"详情",children:[e.jsx(i,{name:"age",label:"年龄"}),e.jsx(g,{name:"birth",label:"生日"})]})]}):null]})};export{v as default}; diff --git a/web/dist/assets/QueryFilter-d541fbf9.js b/web/dist/assets/QueryFilter-d541fbf9.js new file mode 100644 index 0000000000000000000000000000000000000000..e94e378e0fb621e23a9230226d78e05ffc348c8c --- /dev/null +++ b/web/dist/assets/QueryFilter-d541fbf9.js @@ -0,0 +1 @@ +import{b as r,j as e,ad as m,ae as j,af as y,ag as f,P as n,a3 as i}from"./umi-5f6aeac9.js";import{Q as b}from"./index-6a3ca2c0.js";import{P as g}from"./index-98ecdc4c.js";const v=o=>{const{onSearch:s,onTypeChange:c,defaultType:d="articles",onFilterChange:h}=o,[p,l]=r.useState(),[t,x]=r.useState(!0),u=["小程序开发","入驻","ISV 权限"];return e.jsxs("div",{children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[e.jsx(m.Search,{placeholder:"请输入",enterButton:"搜索",value:p,onChange:a=>{l(a.target.value)},onSearch:s,style:{maxWidth:522,width:"100%"}}),e.jsx("div",{style:{display:"flex",gap:12},children:u.map(a=>e.jsx("a",{onClick:()=>{l(a),s&&s(a)},children:a},a))})]}),e.jsx(j,{defaultActiveKey:d,onChange:c,tabBarExtraContent:e.jsxs("a",{style:{display:"flex",gap:4},onClick:()=>{x(!t)},children:["高级筛选 ",t?e.jsx(y,{}):e.jsx(f,{})]}),items:[{key:"articles",label:"文章"},{key:"projects",label:"项目"},{key:"applications",label:"应用"}]}),t?e.jsxs(b,{submitter:!1,span:24,labelWidth:"auto",split:!0,onChange:h,children:[e.jsx(n.Group,{title:"姓名",children:e.jsx(i,{name:"name"})}),e.jsxs(n.Group,{title:"详情",children:[e.jsx(i,{name:"age",label:"年龄"}),e.jsx(g,{name:"birth",label:"生日"})]})]}):null]})};export{v as default}; diff --git a/web/dist/assets/RouteContext-4a26a6ad.js b/web/dist/assets/RouteContext-4a26a6ad.js new file mode 100644 index 0000000000000000000000000000000000000000..33f502a8728bc4404c19981308371f146d7f66df --- /dev/null +++ b/web/dist/assets/RouteContext-4a26a6ad.js @@ -0,0 +1 @@ +import{b as t}from"./umi-5f6aeac9.js";var o=t.createContext({});export{o as R}; diff --git a/web/dist/assets/RouteContext-8fa10ad2.js b/web/dist/assets/RouteContext-8fa10ad2.js deleted file mode 100644 index 51dc40eb00611b83a03dcddc327ad4ce6e0eccd9..0000000000000000000000000000000000000000 --- a/web/dist/assets/RouteContext-8fa10ad2.js +++ /dev/null @@ -1 +0,0 @@ -import{r as t}from"./umi-2ee4055f.js";var e=t.createContext({});export{e as R}; diff --git a/web/dist/assets/SettingForm-c87018e0.js b/web/dist/assets/SettingForm-c87018e0.js new file mode 100644 index 0000000000000000000000000000000000000000..7b18c4a138b04070e620ebc0334a9ab7f525f6db --- /dev/null +++ b/web/dist/assets/SettingForm-c87018e0.js @@ -0,0 +1 @@ +import{b as n,j as u,a1 as r}from"./umi-5f6aeac9.js";import{e as m,a as c}from"./table-0fa6c309.js";import{B as g}from"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";const F=s=>{const{settingGroup:a,children:o,id:e,defaultData:i={},getSetting:p}=s,l=n.useRef(),d=[{title:"设置标题",dataIndex:"title",valueType:"text",formItemProps:{rules:[{required:!0,message:"设置标题必填"}]},colProps:{span:6}},{title:"设置Key",dataIndex:"key",valueType:"text",formItemProps:{rules:[{required:!0,message:"设置Key必填"}]},tooltip:"推荐设置key格式为小写字母和下划线_",colProps:{span:6}},{title:"设置分组",dataIndex:"group_id",valueType:"select",formItemProps:{rules:[{required:!0,message:"设置分组必填"}]},fieldProps:{options:a,fieldNames:{label:"label",value:"id"}},colProps:{span:6}},{title:"设置类型",dataIndex:"type",valueType:"text",valueEnum:new Map([["input","输入框"],["password","密码框"],["textarea","文本域"],["number","数字输入框"],["radio","单选框"],["rate","星级组件"],["checkout","多选框"],["color","颜色选择器"],["date","日期选择器"],["time","时间选择器"],["switch","开关"],["slider","滑动输入条"],["select","选择器"]]),formItemProps:{rules:[{required:!0,message:"设置类型必填"}]},colProps:{span:6}},{title:"设置选项",dataIndex:"options",valueType:"textarea",tooltip:"当设置类型为单选框、多选、选择器的时候需要填入设置选项",colProps:{span:12}},{title:"表单项配置",dataIndex:"props",valueType:"textarea",tooltip:"表单项的配置,支持 Ant Design 所有非表达式的值,无需引号,比如:placeholder=Error 或 visibilityToggle=false",colProps:{span:12}},{title:"设置提示",dataIndex:"describe",valueType:"textarea",tooltip:"设置下方的提示信息",colProps:{span:12}},{title:"排序",dataIndex:"sort",valueType:"digit",tooltip:"数字越大越靠前",colProps:{span:12}}];return u.jsx(g,{title:e?"编辑设置项":"新增设置项",formRef:l,layoutType:"ModalForm",trigger:o,columns:d,initialValues:i,grid:!0,onFinish:async t=>(e?(await m("/system.setting/edit",{id:e,...t}),r.success("编辑成功")):(await c("/system.setting/add",t),r.success("添加成功")),await p(t.group_id),!0)})};export{F as default}; diff --git a/web/dist/assets/SettingForm-ce557f9d.js b/web/dist/assets/SettingForm-ce557f9d.js deleted file mode 100644 index 1f5899b91509dc7ce8de61e93164f53fdf301730..0000000000000000000000000000000000000000 --- a/web/dist/assets/SettingForm-ce557f9d.js +++ /dev/null @@ -1 +0,0 @@ -import{r as n,j as u,V as r}from"./umi-2ee4055f.js";import{e as m,a as c}from"./table-c83b9d9d.js";import{B as g}from"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";const F=s=>{const{settingGroup:a,children:o,id:e,defaultData:i={},getSetting:p}=s,l=n.useRef(),d=[{title:"设置标题",dataIndex:"title",valueType:"text",formItemProps:{rules:[{required:!0,message:"设置标题必填"}]},colProps:{span:6}},{title:"设置Key",dataIndex:"key",valueType:"text",formItemProps:{rules:[{required:!0,message:"设置Key必填"}]},tooltip:"推荐设置key格式为小写字母和下划线_",colProps:{span:6}},{title:"设置分组",dataIndex:"group_id",valueType:"select",formItemProps:{rules:[{required:!0,message:"设置分组必填"}]},fieldProps:{options:a,fieldNames:{label:"label",value:"id"}},colProps:{span:6}},{title:"设置类型",dataIndex:"type",valueType:"text",valueEnum:new Map([["input","输入框"],["password","密码框"],["textarea","文本域"],["number","数字输入框"],["radio","单选框"],["rate","星级组件"],["checkout","多选框"],["color","颜色选择器"],["date","日期选择器"],["time","时间选择器"],["switch","开关"],["slider","滑动输入条"],["select","选择器"]]),formItemProps:{rules:[{required:!0,message:"设置类型必填"}]},colProps:{span:6}},{title:"设置选项",dataIndex:"options",valueType:"textarea",tooltip:"当设置类型为单选框、多选、选择器的时候需要填入设置选项",colProps:{span:12}},{title:"表单项配置",dataIndex:"props",valueType:"textarea",tooltip:"表单项的配置,支持 Ant Design 所有非表达式的值,无需引号,比如:placeholder=Error 或 visibilityToggle=false",colProps:{span:12}},{title:"设置提示",dataIndex:"describe",valueType:"textarea",tooltip:"设置下方的提示信息",colProps:{span:12}},{title:"排序",dataIndex:"sort",valueType:"digit",tooltip:"数字越大越靠前",colProps:{span:12}}];return u.jsx(g,{title:e?"编辑设置项":"新增设置项",formRef:l,layoutType:"ModalForm",trigger:o,columns:d,initialValues:i,grid:!0,onFinish:async t=>(e?(await m("/system.setting/edit",{id:e,...t}),r.success("编辑成功")):(await c("/system.setting/add",t),r.success("添加成功")),await p(t.group_id),!0)})};export{F as default}; diff --git a/web/dist/assets/StepsForm-9f2ab97f.js b/web/dist/assets/StepsForm-9f2ab97f.js new file mode 100644 index 0000000000000000000000000000000000000000..ede5908a4c4e9df4a5dc4a28cedbdee1ccc5ee82 --- /dev/null +++ b/web/dist/assets/StepsForm-9f2ab97f.js @@ -0,0 +1 @@ +import{b as n,j as e,a1 as p,a3 as t,at as s,P as c}from"./umi-5f6aeac9.js";import{S as a}from"./index-5a53c961.js";import{P as u}from"./ProCard-a8f5c5a9.js";import{P as l}from"./index-98ecdc4c.js";import{P as d}from"./index-5035f938.js";import{P as x}from"./index-34d06e04.js";import{P as i}from"./index-872d0bf8.js";import"./index-9d3aa6d1.js";import"./index-46da21dc.js";import"./index-55505f41.js";const m=(o=100)=>new Promise(r=>{setTimeout(()=>{r(!0)},o)}),v=()=>{const o=n.useRef();return e.jsx(u,{children:e.jsxs(a,{formRef:o,onFinish:async()=>{await m(1e3),p.success("提交成功")},formProps:{validateMessages:{required:"此项为必填项"}},children:[e.jsxs(a.StepForm,{name:"base",title:"创建实验",stepProps:{description:"这里填入的都是基本信息"},onFinish:async()=>{var r;return console.log((r=o.current)==null?void 0:r.getFieldsValue()),await m(2e3),!0},children:[e.jsx(t,{name:"name",label:"实验名称",width:"md",tooltip:"最长为 24 位,用于标定的唯一 id",placeholder:"请输入名称",rules:[{required:!0}]}),e.jsx(l,{name:"date",label:"日期"}),e.jsx(d,{name:"dateTime",label:"时间区间"}),e.jsx(x,{name:"remark",label:"备注",width:"lg",placeholder:"请输入备注"})]}),e.jsxs(a.StepForm,{name:"checkbox",title:"设置参数",stepProps:{description:"这里填入运维参数"},onFinish:async()=>{var r;return console.log((r=o.current)==null?void 0:r.getFieldsValue()),!0},children:[e.jsx(s.Group,{name:"checkbox",label:"迁移类型",width:"lg",options:["结构迁移","全量迁移","增量迁移","全量校验"]}),e.jsxs(c.Group,{children:[e.jsx(t,{name:"dbname",label:"业务 DB 用户名"}),e.jsx(l,{name:"datetime",label:"记录保存时间",width:"sm"}),e.jsx(s.Group,{name:"checkbox",label:"迁移类型",options:["完整 LOB","不同步 LOB","受限制 LOB"]})]})]}),e.jsxs(a.StepForm,{name:"time",title:"发布实验",stepProps:{description:"这里填入发布判断"},children:[e.jsx(s.Group,{name:"checkbox",label:"部署单元",rules:[{required:!0}],options:["部署单元1","部署单元2","部署单元3"]}),e.jsx(i,{label:"部署分组策略",name:"remark",rules:[{required:!0}],initialValue:"1",options:[{value:"1",label:"策略一"},{value:"2",label:"策略二"}]}),e.jsx(i,{label:"Pod 调度策略",name:"remark2",initialValue:"2",options:[{value:"1",label:"策略一"},{value:"2",label:"策略二"}]})]})]})})};export{v as default}; diff --git a/web/dist/assets/StepsForm-bec998aa.js b/web/dist/assets/StepsForm-bec998aa.js deleted file mode 100644 index 1d72e8b4f74cdab8b6ef624e92d5cc3c50b301d6..0000000000000000000000000000000000000000 --- a/web/dist/assets/StepsForm-bec998aa.js +++ /dev/null @@ -1 +0,0 @@ -import{r as n,j as e,V as p,W as t,an as s,P as c}from"./umi-2ee4055f.js";import{S as a}from"./index-e7fd596a.js";import{P as u}from"./ProCard-cee316ff.js";import{P as l}from"./index-9900fa87.js";import{P as d}from"./index-dfb59d56.js";import{P as x}from"./index-8a5a2994.js";import{P as i}from"./index-ca47b438.js";import"./index-e10ebcfa.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";const m=(o=100)=>new Promise(r=>{setTimeout(()=>{r(!0)},o)}),v=()=>{const o=n.useRef();return e.jsx(u,{children:e.jsxs(a,{formRef:o,onFinish:async()=>{await m(1e3),p.success("提交成功")},formProps:{validateMessages:{required:"此项为必填项"}},children:[e.jsxs(a.StepForm,{name:"base",title:"创建实验",stepProps:{description:"这里填入的都是基本信息"},onFinish:async()=>{var r;return console.log((r=o.current)==null?void 0:r.getFieldsValue()),await m(2e3),!0},children:[e.jsx(t,{name:"name",label:"实验名称",width:"md",tooltip:"最长为 24 位,用于标定的唯一 id",placeholder:"请输入名称",rules:[{required:!0}]}),e.jsx(l,{name:"date",label:"日期"}),e.jsx(d,{name:"dateTime",label:"时间区间"}),e.jsx(x,{name:"remark",label:"备注",width:"lg",placeholder:"请输入备注"})]}),e.jsxs(a.StepForm,{name:"checkbox",title:"设置参数",stepProps:{description:"这里填入运维参数"},onFinish:async()=>{var r;return console.log((r=o.current)==null?void 0:r.getFieldsValue()),!0},children:[e.jsx(s.Group,{name:"checkbox",label:"迁移类型",width:"lg",options:["结构迁移","全量迁移","增量迁移","全量校验"]}),e.jsxs(c.Group,{children:[e.jsx(t,{name:"dbname",label:"业务 DB 用户名"}),e.jsx(l,{name:"datetime",label:"记录保存时间",width:"sm"}),e.jsx(s.Group,{name:"checkbox",label:"迁移类型",options:["完整 LOB","不同步 LOB","受限制 LOB"]})]})]}),e.jsxs(a.StepForm,{name:"time",title:"发布实验",stepProps:{description:"这里填入发布判断"},children:[e.jsx(s.Group,{name:"checkbox",label:"部署单元",rules:[{required:!0}],options:["部署单元1","部署单元2","部署单元3"]}),e.jsx(i,{label:"部署分组策略",name:"remark",rules:[{required:!0}],initialValue:"1",options:[{value:"1",label:"策略一"},{value:"2",label:"策略二"}]}),e.jsx(i,{label:"Pod 调度策略",name:"remark2",initialValue:"2",options:[{value:"1",label:"策略一"},{value:"2",label:"策略二"}]})]})]})})};export{v as default}; diff --git a/web/dist/assets/Table-0e254f81.js b/web/dist/assets/Table-1c2e5828.js similarity index 83% rename from web/dist/assets/Table-0e254f81.js rename to web/dist/assets/Table-1c2e5828.js index 90edc09e1462884d5cf2e6c77f3761ba8663c7bf..a79f0c7a25c8be4ca96ac2766ea0711615f42d5b 100644 --- a/web/dist/assets/Table-0e254f81.js +++ b/web/dist/assets/Table-1c2e5828.js @@ -1,4 +1,4 @@ -import{bS as wt,cE as lt,r as o,l as we,d5 as er,cF as $t,q as Wr,e7 as Nn,cg as Oe,e8 as tr,aZ as ln,bR as dt,aV as se,K as le,_ as z,k as ut,br as an,e9 as Pn,b5 as ve,b6 as Vr,d as Xr,ea as nr,eb as On,ec as Bn,ed as qr,ee as Mn,bU as Hn,ef as Ur,o as Gr,bG as Yr,eg as Xt,aE as Bt,eh as sn,a3 as rr,aa as Zr,h as or,ei as Jr,ej as Qr,bV as eo,ek as to,el as no,ch as lr,bc as ar,B as _n,em as ir,ca as Fn,aC as ro,en as oo,eo as lo,ep as ao,eq as io,T as Ln,u as D,t as so,er as co,a as sr,g as uo,m as fo,c as mo,bX as St,ce as po,b8 as vo,bp as go,by as ho,cK as xo,es as bo,dJ as Co,bf as yo,cb as So}from"./umi-2ee4055f.js";import{i as wo}from"./styleChecker-0860b7b3.js";import{T as Eo}from"./index-6395135c.js";import{u as $o}from"./useLazyKVMap-d8c68a12.js";function Gt(e){return e!=null&&e===e.window}const Ro=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return Gt(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!Gt(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r},ko=Ro;function Io(e,t,n,r){const l=n-t;return e/=r/2,e<1?l/2*e*e*e+t:l/2*((e-=2)*e*e+2)+t}function To(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:l=450}=t,a=n(),s=ko(a),i=Date.now(),c=()=>{const v=Date.now()-i,u=Io(v>l?l:v,s,e,l);Gt(a)?a.scrollTo(window.pageXOffset,u):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=u:a.scrollTop=u,v=n}function Lo(e,t){return He(Ae,function(n){var r=Fo(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var zo=function(t){var n=t.ellipsis,r=t.rowType,l=t.children,a,s=n===!0?{showTitle:!0}:n;return s&&(s.showTitle||r==="header")&&(typeof l=="string"||typeof l=="number"?a=l.toString():o.isValidElement(l)&&typeof l.props.children=="string"&&(a=l.props.children)),a};function Ko(e){var t,n,r,l,a,s,i,c,d=e.component,v=e.children,u=e.ellipsis,m=e.scope,f=e.prefixCls,p=e.className,h=e.align,g=e.record,C=e.render,b=e.dataIndex,x=e.renderIndex,E=e.shouldCellUpdate,R=e.index,N=e.rowType,k=e.colSpan,W=e.rowSpan,M=e.fixLeft,_=e.fixRight,K=e.firstFixLeft,I=e.lastFixLeft,T=e.firstFixRight,w=e.lastFixRight,y=e.appendNode,$=e.additionalProps,O=$===void 0?{}:$,B=e.isSticky,S="".concat(f,"-cell"),X=He(Ae,["supportSticky","allColumnsFixedLeft","rowHoverable"]),q=X.supportSticky,ge=X.allColumnsFixedLeft,ie=X.rowHoverable,Ee=_o(g,b,x,v,C,E),xe=we(Ee,2),Pe=xe[0],V=xe[1],Z={},be=typeof M=="number"&&q,de=typeof _=="number"&&q;be&&(Z.position="sticky",Z.left=M),de&&(Z.position="sticky",Z.right=_);var A=(t=(n=(r=V==null?void 0:V.colSpan)!==null&&r!==void 0?r:O.colSpan)!==null&&n!==void 0?n:k)!==null&&t!==void 0?t:1,j=(l=(a=(s=V==null?void 0:V.rowSpan)!==null&&s!==void 0?s:O.rowSpan)!==null&&a!==void 0?a:W)!==null&&l!==void 0?l:1,P=Lo(R,j),F=we(P,2),J=F[0],te=F[1],Q=lt(function(ue){var ce;g&&te(R,R+j-1),O==null||(ce=O.onMouseEnter)===null||ce===void 0||ce.call(O,ue)}),Ce=lt(function(ue){var ce;g&&te(-1,-1),O==null||(ce=O.onMouseLeave)===null||ce===void 0||ce.call(O,ue)});if(A===0||j===0)return null;var Ue=(i=O.title)!==null&&i!==void 0?i:zo({rowType:N,ellipsis:u,children:Pe}),Te=se(S,p,(c={},le(le(le(le(le(le(le(le(le(le(c,"".concat(S,"-fix-left"),be&&q),"".concat(S,"-fix-left-first"),K&&q),"".concat(S,"-fix-left-last"),I&&q),"".concat(S,"-fix-left-all"),I&&ge&&q),"".concat(S,"-fix-right"),de&&q),"".concat(S,"-fix-right-first"),T&&q),"".concat(S,"-fix-right-last"),w&&q),"".concat(S,"-ellipsis"),u),"".concat(S,"-with-append"),y),"".concat(S,"-fix-sticky"),(be||de)&&B&&q),le(c,"".concat(S,"-row-hover"),!V&&J)),O.className,V==null?void 0:V.className),H={};h&&(H.textAlign=h);var L=z(z(z(z({},V==null?void 0:V.style),Z),H),O.style),re=Pe;return dt(re)==="object"&&!Array.isArray(re)&&!o.isValidElement(re)&&(re=null),u&&(I||T)&&(re=o.createElement("span",{className:"".concat(S,"-content")},re)),o.createElement(d,Oe({},V,O,{className:Te,style:L,title:Ue,scope:m,onMouseEnter:ie?Q:void 0,onMouseLeave:ie?Ce:void 0,colSpan:A!==1?A:null,rowSpan:j!==1?j:null}),y,re)}const xt=o.memo(Ko);function un(e,t,n,r,l){var a=n[e]||{},s=n[t]||{},i,c;a.fixed==="left"?i=r.left[l==="rtl"?t:e]:s.fixed==="right"&&(c=r.right[l==="rtl"?e:t]);var d=!1,v=!1,u=!1,m=!1,f=n[t+1],p=n[e-1],h=f&&!f.fixed||p&&!p.fixed||n.every(function(E){return E.fixed==="left"});if(l==="rtl"){if(i!==void 0){var g=p&&p.fixed==="left";m=!g&&h}else if(c!==void 0){var C=f&&f.fixed==="right";u=!C&&h}}else if(i!==void 0){var b=f&&f.fixed==="left";d=!b&&h}else if(c!==void 0){var x=p&&p.fixed==="right";v=!x&&h}return{fixLeft:i,fixRight:c,lastFixLeft:d,firstFixRight:v,lastFixRight:u,firstFixLeft:m,isSticky:r.isSticky}}var ur=o.createContext({});function Do(e){var t=e.className,n=e.index,r=e.children,l=e.colSpan,a=l===void 0?1:l,s=e.rowSpan,i=e.align,c=He(Ae,["prefixCls","direction"]),d=c.prefixCls,v=c.direction,u=o.useContext(ur),m=u.scrollColumnIndex,f=u.stickyOffsets,p=u.flattenColumns,h=n+a-1,g=h+1===m?a+1:a,C=un(n,n+g-1,p,f,v);return o.createElement(xt,Oe({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:i,colSpan:g,rowSpan:s,render:function(){return r}},C))}var jo=["children"];function Ao(e){var t=e.children,n=ut(e,jo);return o.createElement("tr",n,t)}function _t(e){var t=e.children;return t}_t.Row=Ao;_t.Cell=Do;function Wo(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,l=He(Ae,"prefixCls"),a=r.length-1,s=r[a],i=o.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:s!=null&&s.scrollbar?a:null}},[s,r,a,n]);return o.createElement(ur.Provider,{value:i},o.createElement("tfoot",{className:"".concat(l,"-summary")},t))}const Pt=ht(Wo);var fr=_t;function Vo(e){return null}function Xo(e){return null}function mr(e,t,n,r,l,a,s){e.push({record:t,indent:n,index:s});var i=a(t),c=l==null?void 0:l.has(i);if(t&&Array.isArray(t[r])&&c)for(var d=0;d1?K-1:0),T=1;T=1)),style:z(z({},n),C==null?void 0:C.style)}),p.map(function(M,_){var K=M.render,I=M.dataIndex,T=M.className,w=xr(m,M,_,c,l),y=w.key,$=w.fixedInfo,O=w.appendCellNode,B=w.additionalCellProps;return o.createElement(xt,Oe({className:T,ellipsis:M.ellipsis,align:M.align,scope:M.rowScope,component:M.rowScope?u:v,prefixCls:f,key:y,record:r,index:l,renderIndex:a,dataIndex:I,render:K,shouldCellUpdate:M.shouldCellUpdate},$,{appendNode:O,additionalProps:B}))})),k;if(x&&(E.current||b)){var W=g(r,l,c+1,b);k=o.createElement(gr,{expanded:b,className:se("".concat(f,"-expanded-row"),"".concat(f,"-expanded-row-level-").concat(c+1),R),prefixCls:f,component:d,cellComponent:v,colSpan:p.length,isEmpty:!1},W)}return o.createElement(o.Fragment,null,N,k)}const Yo=ht(Go);function Zo(e){var t=e.columnKey,n=e.onColumnResize,r=o.useRef();return o.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),o.createElement(an,{data:t},o.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function Jo(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return o.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},o.createElement(an.Collection,{onBatchResize:function(a){a.forEach(function(s){var i=s.data,c=s.size;r(i,c.offsetWidth)})}},n.map(function(l){return o.createElement(Zo,{key:l,columnKey:l,onColumnResize:r})})))}function Qo(e){var t=e.data,n=e.measureColumnWidth,r=He(Ae,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),l=r.prefixCls,a=r.getComponent,s=r.onColumnResize,i=r.flattenColumns,c=r.getRowKey,d=r.expandedKeys,v=r.childrenColumnName,u=r.emptyNode,m=pr(t,v,d,c),f=o.useRef({renderWithProps:!1}),p=a(["body","wrapper"],"tbody"),h=a(["body","row"],"tr"),g=a(["body","cell"],"td"),C=a(["body","cell"],"th"),b;t.length?b=m.map(function(E,R){var N=E.record,k=E.indent,W=E.index,M=c(N,R);return o.createElement(Yo,{key:M,rowKey:M,record:N,index:R,renderIndex:W,rowComponent:h,cellComponent:g,scopeCellComponent:C,indent:k})}):b=o.createElement(gr,{expanded:!0,className:"".concat(l,"-placeholder"),prefixCls:l,component:h,cellComponent:g,colSpan:i.length,isEmpty:!0},u);var x=Ht(i);return o.createElement(dr.Provider,{value:f.current},o.createElement(p,{className:"".concat(l,"-tbody")},n&&o.createElement(Jo,{prefixCls:l,columnsKey:x,onColumnResize:s}),b))}const el=ht(Qo);var tl=["expandable"],Et="RC_TABLE_INTERNAL_COL_DEFINE";function nl(e){var t=e.expandable,n=ut(e,tl),r;return"expandable"in e?r=z(z({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var rl=["columnType"];function br(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,l=He(Ae,["tableLayout"]),a=l.tableLayout,s=[],i=r||n.length,c=!1,d=i-1;d>=0;d-=1){var v=t[d],u=n&&n[d],m=void 0,f=void 0;if(u&&(m=u[Et],a==="auto"&&(f=u.minWidth)),v||f||m||c){var p=m||{};p.columnType;var h=ut(p,rl);s.unshift(o.createElement("col",Oe({key:d,style:{width:v,minWidth:f}},h))),c=!0}}return o.createElement("colgroup",null,s)}var ol=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ll(e,t){return o.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:g.ellipsis,align:g.align,component:s,prefixCls:v,key:f[h]},C,{additionalProps:b,rowType:"header"}))}))};function sl(e){var t=[];function n(s,i){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var d=i,v=s.filter(Boolean).map(function(u){var m={key:u.key,className:u.className||"",children:u.title,column:u,colStart:d},f=1,p=u.children;return p&&p.length>0&&(f=n(p,d,c+1).reduce(function(h,g){return h+g},0),m.hasSubColumns=!0),"colSpan"in u&&(f=u.colSpan),"rowSpan"in u&&(m.rowSpan=u.rowSpan),m.colSpan=f,m.colEnd=m.colStart+f-1,t[c].push(m),d+=f,f});return v}n(e,0);for(var r=t.length,l=function(i){t[i].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-i)})},a=0;a1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function dl(e,t,n){return o.useMemo(function(){if(t&&t>0){var r=0,l=0;e.forEach(function(m){var f=Dn(t,m.width);f?r+=f:l+=1});var a=Math.max(t,n),s=Math.max(a-r,l),i=l,c=s/l,d=0,v=e.map(function(m){var f=z({},m),p=Dn(t,f.width);if(p)f.width=p;else{var h=Math.floor(c);f.width=i===1?s:h,s-=h,i-=1}return d+=f.width,f});if(d0?z(z({},t),{},{children:Cr(n)}):t})}function Zt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&dt(n)==="object"}).reduce(function(n,r,l){var a=r.fixed,s=a===!0?"left":a,i="".concat(t,"-").concat(l),c=r.children;return c&&c.length>0?[].concat(ve(n),ve(Zt(c,i).map(function(d){return z({fixed:s},d)}))):[].concat(ve(n),[z(z({key:i},r),{},{fixed:s})])},[])}function ml(e){return e.map(function(t){var n=t.fixed,r=ut(t,fl),l=n;return n==="left"?l="right":n==="right"&&(l="left"),z({fixed:l},r)})}function pl(e,t){var n=e.prefixCls,r=e.columns,l=e.children,a=e.expandable,s=e.expandedKeys,i=e.columnTitle,c=e.getRowKey,d=e.onTriggerExpand,v=e.expandIcon,u=e.rowExpandable,m=e.expandIconColumnIndex,f=e.direction,p=e.expandRowByClick,h=e.columnWidth,g=e.fixed,C=e.scrollWidth,b=e.clientWidth,x=o.useMemo(function(){var I=r||fn(l)||[];return Cr(I.slice())},[r,l]),E=o.useMemo(function(){if(a){var I=x.slice();if(!I.includes(et)){var T=m||0;T>=0&&(T||g==="left"||!g)&&I.splice(T,0,et),g==="right"&&I.splice(x.length,0,et)}var w=I.indexOf(et);I=I.filter(function(B,S){return B!==et||S===w});var y=x[w],$;g?$=g:$=y?y.fixed:null;var O=le(le(le(le(le(le({},Et,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",i),"fixed",$),"className","".concat(n,"-row-expand-icon-cell")),"width",h),"render",function(S,X,q){var ge=c(X,q),ie=s.has(ge),Ee=u?u(X):!0,xe=v({prefixCls:n,expanded:ie,expandable:Ee,record:X,onExpand:d});return p?o.createElement("span",{onClick:function(V){return V.stopPropagation()}},xe):xe});return I.map(function(B){return B===et?O:B})}return x.filter(function(B){return B!==et})},[a,x,c,s,v,f]),R=o.useMemo(function(){var I=E;return t&&(I=t(I)),I.length||(I=[{render:function(){return null}}]),I},[t,E,f]),N=o.useMemo(function(){return f==="rtl"?ml(Zt(R)):Zt(R)},[R,f,C]),k=o.useMemo(function(){for(var I=-1,T=N.length-1;T>=0;T-=1){var w=N[T].fixed;if(w==="left"||w===!0){I=T;break}}if(I>=0)for(var y=0;y<=I;y+=1){var $=N[y].fixed;if($!=="left"&&$!==!0)return!0}var O=N.findIndex(function(X){var q=X.fixed;return q==="right"});if(O>=0)for(var B=O;B=O-i?b(function(B){return z(z({},B),{},{isHiddenScrollBar:!0})}):b(function(B){return z(z({},B),{},{isHiddenScrollBar:!1})})}})},T=function(y){b(function($){return z(z({},$),{},{scrollLeft:y/u*m||0})})};return o.useImperativeHandle(n,function(){return{setScrollLeft:T,checkScrollBarVisible:I}}),o.useEffect(function(){var w=On(document.body,"mouseup",M,!1),y=On(document.body,"mousemove",K,!1);return I(),function(){w.remove(),y.remove()}},[f,N]),o.useEffect(function(){if(a.current){for(var w=[],y=a.current;y;)w.push(y),y=y.parentElement;return w.forEach(function($){return $.addEventListener("scroll",I,!1)}),window.addEventListener("resize",I,!1),window.addEventListener("scroll",I,!1),c.addEventListener("scroll",I,!1),function(){w.forEach(function($){return $.removeEventListener("scroll",I)}),window.removeEventListener("resize",I),window.removeEventListener("scroll",I),c.removeEventListener("scroll",I)}}},[c]),o.useEffect(function(){C.isHiddenScrollBar||b(function(w){var y=a.current;return y?z(z({},w),{},{scrollLeft:y.scrollLeft/y.scrollWidth*y.clientWidth}):w})},[C.isHiddenScrollBar]),u<=m||!f||C.isHiddenScrollBar?null:o.createElement("div",{style:{height:Bn(),width:m,bottom:i},className:"".concat(v,"-sticky-scroll")},o.createElement("div",{onMouseDown:_,ref:p,className:se("".concat(v,"-sticky-scroll-bar"),le({},"".concat(v,"-sticky-scroll-bar-active"),N)),style:{width:"".concat(f,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))};const Sl=o.forwardRef(yl);var Sr="rc-table",wl=[],El={};function $l(){return"No Data"}function Rl(e,t){var n=z({rowKey:"key",prefixCls:Sr,emptyText:$l},e),r=n.prefixCls,l=n.className,a=n.rowClassName,s=n.style,i=n.data,c=n.rowKey,d=n.scroll,v=n.tableLayout,u=n.direction,m=n.title,f=n.footer,p=n.summary,h=n.caption,g=n.id,C=n.showHeader,b=n.components,x=n.emptyText,E=n.onRow,R=n.onHeaderRow,N=n.onScroll,k=n.internalHooks,W=n.transformColumns,M=n.internalRefs,_=n.tailor,K=n.getContainerWidth,I=n.sticky,T=n.rowHoverable,w=T===void 0?!0:T,y=i||wl,$=!!y.length,O=k===Rt,B=o.useCallback(function(Y,ee){return ln(b,Y)||ee},[b]),S=o.useMemo(function(){return typeof c=="function"?c:function(Y){var ee=Y&&Y[c];return ee}},[c]),X=B(["body"]),q=xl(),ge=we(q,3),ie=ge[0],Ee=ge[1],xe=ge[2],Pe=vl(n,y,S),V=we(Pe,6),Z=V[0],be=V[1],de=V[2],A=V[3],j=V[4],P=V[5],F=d==null?void 0:d.x,J=o.useState(0),te=we(J,2),Q=te[0],Ce=te[1],Ue=pl(z(z(z({},n),Z),{},{expandable:!!Z.expandedRowRender,columnTitle:Z.columnTitle,expandedKeys:de,getRowKey:S,onTriggerExpand:P,expandIcon:A,expandIconColumnIndex:Z.expandIconColumnIndex,direction:u,scrollWidth:O&&_&&typeof F=="number"?F:null,clientWidth:Q}),O?W:null),Te=we(Ue,4),H=Te[0],L=Te[1],re=Te[2],ue=Te[3],ce=re??F,he=o.useMemo(function(){return{columns:H,flattenColumns:L}},[H,L]),_e=o.useRef(),Qe=o.useRef(),fe=o.useRef(),oe=o.useRef();o.useImperativeHandle(t,function(){return{nativeElement:_e.current,scrollTo:function(ee){var Be;if(fe.current instanceof HTMLElement){var Ye=ee.index,Me=ee.top,vt=ee.key;if(Mo(Me)){var st;(st=fe.current)===null||st===void 0||st.scrollTo({top:Me})}else{var ct,yt=vt??S(y[Ye]);(ct=fe.current.querySelector('[data-row-key="'.concat(yt,'"]')))===null||ct===void 0||ct.scrollIntoView()}}else(Be=fe.current)!==null&&Be!==void 0&&Be.scrollTo&&fe.current.scrollTo(ee)}}});var me=o.useRef(),pe=o.useState(!1),Ie=we(pe,2),Re=Ie[0],ne=Ie[1],$e=o.useState(!1),ae=we($e,2),ke=ae[0],We=ae[1],Ke=yr(new Map),nt=we(Ke,2),ye=nt[0],ft=nt[1],mt=Ht(L),De=mt.map(function(Y){return ye.get(Y)}),Ze=o.useMemo(function(){return De},[De.join("_")]),Xe=Cl(Ze,L,u),je=d&&Yt(d.y),Fe=d&&Yt(ce)||!!Z.fixed,Ve=Fe&&L.some(function(Y){var ee=Y.fixed;return ee}),it=o.useRef(),rt=bl(I,r),Je=rt.isSticky,Lt=rt.offsetHeader,zt=rt.offsetSummary,kt=rt.offsetScroll,Kt=rt.stickyClassName,U=rt.container,G=o.useMemo(function(){return p==null?void 0:p(y)},[p,y]),Se=(je||Je)&&o.isValidElement(G)&&G.type===_t&&G.props.fixed,Ne,Le,qe;je&&(Le={overflowY:$?"scroll":"auto",maxHeight:d.y}),Fe&&(Ne={overflowX:"auto"},je||(Le={overflowY:"hidden"}),qe={width:ce===!0?"auto":ce,minWidth:"100%"});var Ge=o.useCallback(function(Y,ee){qr(_e.current)&&ft(function(Be){if(Be.get(Y)!==ee){var Ye=new Map(Be);return Ye.set(Y,ee),Ye}return Be})},[]),ze=hl(null),pn=we(ze,2),Mr=pn[0],vn=pn[1];function It(Y,ee){ee&&(typeof ee=="function"?ee(Y):ee.scrollLeft!==Y&&(ee.scrollLeft=Y,ee.scrollLeft!==Y&&setTimeout(function(){ee.scrollLeft=Y},0)))}var pt=lt(function(Y){var ee=Y.currentTarget,Be=Y.scrollLeft,Ye=u==="rtl",Me=typeof Be=="number"?Be:ee.scrollLeft,vt=ee||El;if(!vn()||vn()===vt){var st;Mr(vt),It(Me,Qe.current),It(Me,fe.current),It(Me,me.current),It(Me,(st=it.current)===null||st===void 0?void 0:st.setScrollLeft)}var ct=ee||Qe.current;if(ct){var yt=O&&_&&typeof ce=="number"?ce:ct.scrollWidth,Vt=ct.clientWidth;if(yt===Vt){ne(!1),We(!1);return}Ye?(ne(-Me0)):(ne(Me>0),We(Me1?g-w:0,$=z(z(z({},W),d),{},{flex:"0 0 ".concat(w,"px"),width:"".concat(w,"px"),marginRight:y,pointerEvents:"auto"}),O=o.useMemo(function(){return u?I<=1:_===0||I===0||I>1},[I,_,u]);O?$.visibility="hidden":u&&($.height=m==null?void 0:m(I));var B=O?function(){return null}:f,S={};return(I===0||_===0)&&(S.rowSpan=1,S.colSpan=1),o.createElement(xt,Oe({className:se(h,v),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:s,prefixCls:t.prefixCls,key:E,record:c,index:a,renderIndex:i,dataIndex:p,render:B,shouldCellUpdate:n.shouldCellUpdate},R,{appendNode:N,additionalProps:z(z({},k),{},{style:$},S)}))}var Nl=["data","index","className","rowKey","style","extra","getHeight"],Pl=o.forwardRef(function(e,t){var n=e.data,r=e.index,l=e.className,a=e.rowKey,s=e.style,i=e.extra,c=e.getHeight,d=ut(e,Nl),v=n.record,u=n.indent,m=n.index,f=He(Ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=f.scrollX,h=f.flattenColumns,g=f.prefixCls,C=f.fixColumn,b=f.componentWidth,x=He(mn,["getComponent"]),E=x.getComponent,R=vr(v,a,r,u),N=E(["body","row"],"div"),k=E(["body","cell"],"div"),W=R.rowSupportExpand,M=R.expanded,_=R.rowProps,K=R.expandedRowRender,I=R.expandedRowClassName,T;if(W&&M){var w=K(v,r,u+1,M),y=hr(I,v,r,u),$={};C&&($={style:le({},"--virtual-width","".concat(b,"px"))});var O="".concat(g,"-expanded-row-cell");T=o.createElement(N,{className:se("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(u+1),y)},o.createElement(xt,{component:k,prefixCls:g,className:se(O,le({},"".concat(O,"-fixed"),C)),additionalProps:$},w))}var B=z(z({},s),{},{width:p});i&&(B.position="absolute",B.pointerEvents="none");var S=o.createElement(N,Oe({},_,d,{"data-row-key":a,ref:W?null:t,className:se(l,"".concat(g,"-row"),_==null?void 0:_.className,le({},"".concat(g,"-row-extra"),i)),style:z(z({},B),_==null?void 0:_.style)}),h.map(function(X,q){return o.createElement(Tl,{key:q,component:k,rowInfo:R,column:X,colIndex:q,indent:u,index:r,renderIndex:m,record:v,inverse:i,getHeight:c})}));return W?o.createElement("div",{ref:t},S,T):S}),Vn=ht(Pl),Ol=o.forwardRef(function(e,t){var n=e.data,r=e.onScroll,l=He(Ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=l.flattenColumns,s=l.onColumnResize,i=l.getRowKey,c=l.expandedKeys,d=l.prefixCls,v=l.childrenColumnName,u=l.scrollX,m=l.direction,f=He(mn),p=f.sticky,h=f.scrollY,g=f.listItemHeight,C=f.getComponent,b=f.onScroll,x=o.useRef(),E=pr(n,v,c,i),R=o.useMemo(function(){var T=0;return a.map(function(w){var y=w.width,$=w.key;return T+=y,[$,y,T]})},[a]),N=o.useMemo(function(){return R.map(function(T){return T[2]})},[R]);o.useEffect(function(){R.forEach(function(T){var w=we(T,2),y=w[0],$=w[1];s(y,$)})},[R]),o.useImperativeHandle(t,function(){var T,w={scrollTo:function($){var O;(O=x.current)===null||O===void 0||O.scrollTo($)},nativeElement:(T=x.current)===null||T===void 0?void 0:T.nativeElement};return Object.defineProperty(w,"scrollLeft",{get:function(){var $;return(($=x.current)===null||$===void 0?void 0:$.getScrollInfo().x)||0},set:function($){var O;(O=x.current)===null||O===void 0||O.scrollTo({left:$})}}),w});var k=function(w,y){var $,O=($=E[y])===null||$===void 0?void 0:$.record,B=w.onCell;if(B){var S,X=B(O,y);return(S=X==null?void 0:X.rowSpan)!==null&&S!==void 0?S:1}return 1},W=function(w){var y=w.start,$=w.end,O=w.getSize,B=w.offsetY;if($<0)return null;for(var S=a.filter(function(A){return k(A,y)===0}),X=y,q=function(j){if(S=S.filter(function(P){return k(P,j)===0}),!S.length)return X=j,1},ge=y;ge>=0&&!q(ge);ge-=1);for(var ie=a.filter(function(A){return k(A,$)!==1}),Ee=$,xe=function(j){if(ie=ie.filter(function(P){return k(P,j)!==1}),!ie.length)return Ee=Math.max(j-1,$),1},Pe=$;Pe1})&&V.push(j)},be=X;be<=Ee;be+=1)Z(be);var de=V.map(function(A){var j=E[A],P=i(j.record,A),F=function(Q){var Ce=A+Q-1,Ue=i(E[Ce].record,Ce),Te=O(P,Ue);return Te.bottom-Te.top},J=O(P);return o.createElement(Vn,{key:A,data:j,rowKey:P,index:A,style:{top:-B+J.top},extra:!0,getHeight:F})});return de},M=o.useMemo(function(){return{columnsOffset:N}},[N]),_="".concat(d,"-tbody"),K=C(["body","wrapper"]),I={};return p&&(I.position="sticky",I.bottom=0,dt(p)==="object"&&p.offsetScroll&&(I.bottom=p.offsetScroll)),o.createElement(Er.Provider,{value:M},o.createElement(Ur,{fullHeight:!1,ref:x,prefixCls:"".concat(_,"-virtual"),styles:{horizontalScrollBar:I},className:_,height:h,itemHeight:g||24,data:E,itemKey:function(w){return i(w.record)},component:K,scrollWidth:u,direction:m,onVirtualScroll:function(w){var y,$=w.x;r({currentTarget:(y=x.current)===null||y===void 0?void 0:y.nativeElement,scrollLeft:$})},onScroll:b,extraRender:W},function(T,w,y){var $=i(T.record,w);return o.createElement(Vn,{data:T,rowKey:$,index:w,style:y.style})}))}),Bl=ht(Ol),Ml=function(t,n){var r=n.ref,l=n.onScroll;return o.createElement(Bl,{ref:r,data:t,onScroll:l})};function Hl(e,t){var n=e.data,r=e.columns,l=e.scroll,a=e.sticky,s=e.prefixCls,i=s===void 0?Sr:s,c=e.className,d=e.listItemHeight,v=e.components,u=e.onScroll,m=l||{},f=m.x,p=m.y;typeof f!="number"&&(f=1),typeof p!="number"&&(p=500);var h=lt(function(b,x){return ln(v,b)||x}),g=lt(u),C=o.useMemo(function(){return{sticky:a,scrollY:p,listItemHeight:d,getComponent:h,onScroll:g}},[a,p,d,h,g]);return o.createElement(mn.Provider,{value:C},o.createElement(bt,Oe({},e,{className:se(c,"".concat(i,"-virtual")),scroll:z(z({},l),{},{x:f}),components:z(z({},v),{},{body:n!=null&&n.length?Ml:void 0}),columns:r,internalHooks:Rt,tailor:!0,ref:t})))}var _l=o.forwardRef(Hl);function $r(e){return cr(_l,e)}$r();const Fl=e=>null,Ll=Fl,zl=e=>null,Kl=zl;function Dl(e){const[t,n]=o.useState(null);return[o.useCallback((a,s,i)=>{const c=t??a,d=Math.min(c||0,a),v=Math.max(c||0,a),u=s.slice(d,v+1).map(p=>e(p)),m=u.some(p=>!i.has(p)),f=[];return u.forEach(p=>{m?(i.has(p)||f.push(p),i.add(p)):(i.delete(p),f.push(p))}),n(m?v:null),f},[t]),a=>{n(a)}]}const ot={},Jt="SELECT_ALL",Qt="SELECT_INVERT",en="SELECT_NONE",Xn=[],Rr=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(ve(n),ve(Rr(e,r[e]))))}),n},jl=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:l,getCheckboxProps:a,onChange:s,onSelect:i,onSelectAll:c,onSelectInvert:d,onSelectNone:v,onSelectMultiple:u,columnWidth:m,type:f,selections:p,fixed:h,renderCell:g,hideSelectAll:C,checkStrictly:b=!0}=t||{},{prefixCls:x,data:E,pageData:R,getRecordByKey:N,getRowKey:k,expandType:W,childrenColumnName:M,locale:_,getPopupContainer:K}=e,I=sn(),[T,w]=Dl(A=>A),[y,$]=Gr(r||l||Xn,{value:r}),O=o.useRef(new Map),B=o.useCallback(A=>{if(n){const j=new Map;A.forEach(P=>{let F=N(P);!F&&O.current.has(P)&&(F=O.current.get(P)),j.set(P,F)}),O.current=j}},[N,n]);o.useEffect(()=>{B(y)},[y]);const S=o.useMemo(()=>Rr(M,R),[M,R]),{keyEntities:X}=o.useMemo(()=>{if(b)return{keyEntities:null};let A=E;if(n){const j=new Set(S.map((F,J)=>k(F,J))),P=Array.from(O.current).reduce((F,J)=>{let[te,Q]=J;return j.has(te)?F:F.concat(Q)},[]);A=[].concat(ve(A),ve(P))}return Yr(A,{externalGetKey:k,childrenPropName:M})},[E,k,b,M,n,S]),q=o.useMemo(()=>{const A=new Map;return S.forEach((j,P)=>{const F=k(j,P),J=(a?a(j):null)||{};A.set(F,J)}),A},[S,k,a]),ge=o.useCallback(A=>{const j=k(A);let P;return q.has(j)?P=q.get(k(A)):P=a?a(A):void 0,!!(P!=null&&P.disabled)},[q,k]),[ie,Ee]=o.useMemo(()=>{if(b)return[y||[],[]];const{checkedKeys:A,halfCheckedKeys:j}=Xt(y,!0,X,ge);return[A||[],j]},[y,b,X,ge]),xe=o.useMemo(()=>{const A=f==="radio"?ie.slice(0,1):ie;return new Set(A)},[ie,f]),Pe=o.useMemo(()=>f==="radio"?new Set:new Set(Ee),[Ee,f]);o.useEffect(()=>{t||$(Xn)},[!!t]);const V=o.useCallback((A,j)=>{let P,F;B(A),n?(P=A,F=A.map(J=>O.current.get(J))):(P=[],F=[],A.forEach(J=>{const te=N(J);te!==void 0&&(P.push(J),F.push(te))})),$(P),s==null||s(P,F,{type:j})},[$,N,s,n]),Z=o.useCallback((A,j,P,F)=>{if(i){const J=P.map(te=>N(te));i(N(A),j,J,F)}V(P,"single")},[i,N,V]),be=o.useMemo(()=>!p||C?null:(p===!0?[Jt,Qt,en]:p).map(j=>j===Jt?{key:"all",text:_.selectionAll,onSelect(){V(E.map((P,F)=>k(P,F)).filter(P=>{const F=q.get(P);return!(F!=null&&F.disabled)||xe.has(P)}),"all")}}:j===Qt?{key:"invert",text:_.selectInvert,onSelect(){const P=new Set(xe);R.forEach((J,te)=>{const Q=k(J,te),Ce=q.get(Q);Ce!=null&&Ce.disabled||(P.has(Q)?P.delete(Q):P.add(Q))});const F=Array.from(P);d&&(I.deprecated(!1,"onSelectInvert","onChange"),d(F)),V(F,"invert")}}:j===en?{key:"none",text:_.selectNone,onSelect(){v==null||v(),V(Array.from(xe).filter(P=>{const F=q.get(P);return F==null?void 0:F.disabled}),"none")}}:j).map(j=>Object.assign(Object.assign({},j),{onSelect:function(){for(var P,F,J=arguments.length,te=new Array(J),Q=0;Q{var j;if(!t)return A.filter(oe=>oe!==ot);let P=ve(A);const F=new Set(xe),J=S.map(k).filter(oe=>!q.get(oe).disabled),te=J.every(oe=>F.has(oe)),Q=J.some(oe=>F.has(oe)),Ce=()=>{const oe=[];te?J.forEach(pe=>{F.delete(pe),oe.push(pe)}):J.forEach(pe=>{F.has(pe)||(F.add(pe),oe.push(pe))});const me=Array.from(F);c==null||c(!te,me.map(pe=>N(pe)),oe.map(pe=>N(pe))),V(me,"all"),w(null)};let Ue,Te;if(f!=="radio"){let oe;if(be){const ne={getPopupContainer:K,items:be.map(($e,ae)=>{const{key:ke,text:We,onSelect:Ke}=$e;return{key:ke??ae,onClick:()=>{Ke==null||Ke(J)},label:We}})};oe=o.createElement("div",{className:`${x}-selection-extra`},o.createElement(rr,{menu:ne,getPopupContainer:K},o.createElement("span",null,o.createElement(Zr,null))))}const me=S.map((ne,$e)=>{const ae=k(ne,$e),ke=q.get(ae)||{};return Object.assign({checked:F.has(ae)},ke)}).filter(ne=>{let{disabled:$e}=ne;return $e}),pe=!!me.length&&me.length===S.length,Ie=pe&&me.every(ne=>{let{checked:$e}=ne;return $e}),Re=pe&&me.some(ne=>{let{checked:$e}=ne;return $e});Te=o.createElement(Bt,{checked:pe?Ie:!!S.length&&te,indeterminate:pe?!Ie&&Re:!te&&Q,onChange:Ce,disabled:S.length===0||pe,"aria-label":oe?"Custom selection":"Select all",skipGroup:!0}),Ue=!C&&o.createElement("div",{className:`${x}-selection`},Te,oe)}let H;f==="radio"?H=(oe,me,pe)=>{const Ie=k(me,pe),Re=F.has(Ie),ne=q.get(Ie);return{node:o.createElement(or,Object.assign({},ne,{checked:Re,onClick:$e=>{var ae;$e.stopPropagation(),(ae=ne==null?void 0:ne.onClick)===null||ae===void 0||ae.call(ne,$e)},onChange:$e=>{var ae;F.has(Ie)||Z(Ie,!0,[Ie],$e.nativeEvent),(ae=ne==null?void 0:ne.onChange)===null||ae===void 0||ae.call(ne,$e)}})),checked:Re}}:H=(oe,me,pe)=>{var Ie;const Re=k(me,pe),ne=F.has(Re),$e=Pe.has(Re),ae=q.get(Re);let ke;return W==="nest"?ke=$e:ke=(Ie=ae==null?void 0:ae.indeterminate)!==null&&Ie!==void 0?Ie:$e,{node:o.createElement(Bt,Object.assign({},ae,{indeterminate:ke,checked:ne,skipGroup:!0,onClick:We=>{var Ke;We.stopPropagation(),(Ke=ae==null?void 0:ae.onClick)===null||Ke===void 0||Ke.call(ae,We)},onChange:We=>{var Ke;const{nativeEvent:nt}=We,{shiftKey:ye}=nt,ft=J.findIndex(De=>De===Re),mt=ie.some(De=>J.includes(De));if(ye&&b&&mt){const De=T(ft,J,F),Ze=Array.from(F);u==null||u(!ne,Ze.map(Xe=>N(Xe)),De.map(Xe=>N(Xe))),V(Ze,"multiple")}else{const De=ie;if(b){const Ze=ne?Jr(De,Re):Qr(De,Re);Z(Re,!ne,Ze,nt)}else{const Ze=Xt([].concat(ve(De),[Re]),!0,X,ge),{checkedKeys:Xe,halfCheckedKeys:je}=Ze;let Fe=Xe;if(ne){const Ve=new Set(Xe);Ve.delete(Re),Fe=Xt(Array.from(Ve),{checked:!1,halfCheckedKeys:je},X,ge).checkedKeys}Z(Re,!ne,Fe,nt)}}w(ne?null:ft),(Ke=ae==null?void 0:ae.onChange)===null||Ke===void 0||Ke.call(ae,We)}})),checked:ne}};const L=(oe,me,pe)=>{const{node:Ie,checked:Re}=H(oe,me,pe);return g?g(Re,me,pe,Ie):Ie};if(!P.includes(ot))if(P.findIndex(oe=>{var me;return((me=oe[Et])===null||me===void 0?void 0:me.columnType)==="EXPAND_COLUMN"})===0){const[oe,...me]=P;P=[oe,ot].concat(ve(me))}else P=[ot].concat(ve(P));const re=P.indexOf(ot);P=P.filter((oe,me)=>oe!==ot||me===re);const ue=P[re-1],ce=P[re+1];let he=h;he===void 0&&((ce==null?void 0:ce.fixed)!==void 0?he=ce.fixed:(ue==null?void 0:ue.fixed)!==void 0&&(he=ue.fixed)),he&&ue&&((j=ue[Et])===null||j===void 0?void 0:j.columnType)==="EXPAND_COLUMN"&&ue.fixed===void 0&&(ue.fixed=he);const _e=se(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:p&&f==="checkbox"}),Qe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Te):t.columnTitle:Ue,fe={fixed:he,width:m,className:`${x}-selection-column`,title:Qe(),render:L,onCell:t.onCell,[Et]:{className:_e}};return P.map(oe=>oe===ot?fe:oe)},[k,S,t,ie,xe,Pe,m,be,W,q,u,Z,ge]),xe]};function Al(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function Wl(e,t){return o.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(l,a){return n[a]?n[a]:Reflect.get(l,a)}}):Al(r,n)})}function Vl(e){return t=>{const{prefixCls:n,onExpand:r,record:l,expanded:a,expandable:s}=t,i=`${n}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:c=>{r(l,c),c.stopPropagation()},className:se(i,{[`${i}-spaced`]:!s,[`${i}-expanded`]:s&&a,[`${i}-collapsed`]:s&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function Xl(e){return(n,r)=>{const l=n.querySelector(`.${e}-container`);let a=r;if(l){const s=getComputedStyle(l),i=parseInt(s.borderLeftWidth,10),c=parseInt(s.borderRightWidth,10);a=r-i-c}return a}}const at=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Ct(e,t){return t?`${t}-${e}`:`${e}`}const Ft=(e,t)=>typeof e=="function"?e(t):e,ql=(e,t)=>{const n=Ft(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function Ul(e){const t=o.useRef(e),n=eo();return[()=>t.current,r=>{t.current=r,n()}]}const Gl=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:l,onChange:a}=e;return n?o.createElement("div",{className:`${r}-filter-dropdown-search`},o.createElement(to,{prefix:o.createElement(no,null),placeholder:l.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},qn=Gl,Yl=e=>{const{keyCode:t}=e;t===lr.ENTER&&e.stopPropagation()},Zl=o.forwardRef((e,t)=>o.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:Yl,ref:t},e.children)),Jl=Zl;function gt(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:l}=n;t.push(r),l&&(t=[].concat(ve(t),ve(gt(l))))}),t}function Ql(e){return e.some(t=>{let{children:n}=t;return n})}function kr(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Ir(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:l,searchValue:a,filterSearch:s}=e;return t.map((i,c)=>{const d=String(i.value);if(i.children)return{key:d||c,label:i.text,popupClassName:`${n}-dropdown-submenu`,children:Ir({filters:i.children,prefixCls:n,filteredKeys:r,filterMultiple:l,searchValue:a,filterSearch:s})};const v=l?Bt:or,u={key:i.value!==void 0?d:c,label:o.createElement(o.Fragment,null,o.createElement(v,{checked:r.includes(d)}),o.createElement("span",null,i.text))};return a.trim()?typeof s=="function"?s(a,i)?u:null:kr(a,i.text)?u:null:u})}function qt(e){return e||[]}const ea=e=>{var t,n,r,l;const{tablePrefixCls:a,prefixCls:s,column:i,dropdownPrefixCls:c,columnKey:d,filterOnClose:v,filterMultiple:u,filterMode:m="menu",filterSearch:f=!1,filterState:p,triggerFilter:h,locale:g,children:C,getPopupContainer:b,rootClassName:x}=e,{filterResetToDefaultFilteredValue:E,defaultFilteredValue:R,filterDropdownProps:N={},filterDropdownOpen:k,filterDropdownVisible:W,onFilterDropdownVisibleChange:M,onFilterDropdownOpenChange:_}=i,[K,I]=o.useState(!1),T=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),w=H=>{var L;I(H),(L=N.onOpenChange)===null||L===void 0||L.call(N,H),_==null||_(H),M==null||M(H)},y=(l=(r=(n=N.open)!==null&&n!==void 0?n:k)!==null&&r!==void 0?r:W)!==null&&l!==void 0?l:K,$=p==null?void 0:p.filteredKeys,[O,B]=Ul(qt($)),S=H=>{let{selectedKeys:L}=H;B(L)},X=(H,L)=>{let{node:re,checked:ue}=L;S(u?{selectedKeys:H}:{selectedKeys:ue&&re.key?[re.key]:[]})};o.useEffect(()=>{K&&S({selectedKeys:qt($)})},[$]);const[q,ge]=o.useState([]),ie=H=>{ge(H)},[Ee,xe]=o.useState(""),Pe=H=>{const{value:L}=H.target;xe(L)};o.useEffect(()=>{K||xe("")},[K]);const V=H=>{const L=H!=null&&H.length?H:null;if(L===null&&(!p||!p.filteredKeys)||$t(L,p==null?void 0:p.filteredKeys,!0))return null;h({column:i,key:d,filteredKeys:L})},Z=()=>{w(!1),V(O())},be=function(){let{confirm:H,closeDropdown:L}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};H&&V([]),L&&w(!1),xe(""),B(E?(R||[]).map(re=>String(re)):[])},de=function(){let{closeDropdown:H}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};H&&w(!1),V(O())},A=(H,L)=>{L.source==="trigger"&&(H&&$!==void 0&&B(qt($)),w(H),!H&&!i.filterDropdown&&v&&Z())},j=se({[`${c}-menu-without-submenu`]:!Ql(i.filters||[])}),P=H=>{if(H.target.checked){const L=gt(i==null?void 0:i.filters).map(re=>String(re));B(L)}else B([])},F=H=>{let{filters:L}=H;return(L||[]).map((re,ue)=>{const ce=String(re.value),he={title:re.text,key:re.value!==void 0?ce:String(ue)};return re.children&&(he.children=F({filters:re.children})),he})},J=H=>{var L;return Object.assign(Object.assign({},H),{text:H.title,value:H.key,children:((L=H.children)===null||L===void 0?void 0:L.map(re=>J(re)))||[]})};let te;const{direction:Q,renderEmpty:Ce}=o.useContext(ar);if(typeof i.filterDropdown=="function")te=i.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:H=>S({selectedKeys:H}),selectedKeys:O(),confirm:de,clearFilters:be,filters:i.filters,visible:y,close:()=>{w(!1)}});else if(i.filterDropdown)te=i.filterDropdown;else{const H=O()||[],L=()=>{var ue,ce;const he=(ue=Ce==null?void 0:Ce("Table.filter"))!==null&&ue!==void 0?ue:o.createElement(Fn,{image:Fn.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((i.filters||[]).length===0)return he;if(m==="tree")return o.createElement(o.Fragment,null,o.createElement(qn,{filterSearch:f,value:Ee,onChange:Pe,tablePrefixCls:a,locale:g}),o.createElement("div",{className:`${a}-filter-dropdown-tree`},u?o.createElement(Bt,{checked:H.length===gt(i.filters).length,indeterminate:H.length>0&&H.lengthtypeof f=="function"?f(Ee,J(fe)):kr(Ee,fe.title):void 0})));const _e=Ir({filters:i.filters||[],filterSearch:f,prefixCls:s,filteredKeys:O(),filterMultiple:u,searchValue:Ee}),Qe=_e.every(fe=>fe===null);return o.createElement(o.Fragment,null,o.createElement(qn,{filterSearch:f,value:Ee,onChange:Pe,tablePrefixCls:a,locale:g}),Qe?he:o.createElement(ro,{selectable:!0,multiple:u,prefixCls:`${c}-menu`,className:j,onSelect:S,onDeselect:S,selectedKeys:H,getPopupContainer:b,openKeys:q,onOpenChange:ie,items:_e}))},re=()=>E?$t((R||[]).map(ue=>String(ue)),H,!0):H.length===0;te=o.createElement(o.Fragment,null,L(),o.createElement("div",{className:`${s}-dropdown-btns`},o.createElement(_n,{type:"link",size:"small",disabled:re(),onClick:()=>be()},g.filterReset),o.createElement(_n,{type:"primary",size:"small",onClick:Z},g.filterConfirm)))}i.filterDropdown&&(te=o.createElement(oo,{selectable:void 0},te)),te=o.createElement(Jl,{className:`${s}-dropdown`},te);const Te=ir({trigger:["click"],placement:Q==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let H;return typeof i.filterIcon=="function"?H=i.filterIcon(T):i.filterIcon?H=i.filterIcon:H=o.createElement(lo,null),o.createElement("span",{role:"button",tabIndex:-1,className:se(`${s}-trigger`,{active:T}),onClick:L=>{L.stopPropagation()}},H)})(),getPopupContainer:b},Object.assign(Object.assign({},N),{rootClassName:se(x,N.rootClassName),open:y,onOpenChange:A,dropdownRender:()=>typeof(N==null?void 0:N.dropdownRender)=="function"?N.dropdownRender(te):te}));return o.createElement("div",{className:`${s}-column`},o.createElement("span",{className:`${a}-column-title`},C),o.createElement(rr,Object.assign({},Te)))},tn=(e,t,n)=>{let r=[];return(e||[]).forEach((l,a)=>{var s;const i=Ct(a,n);if(l.filters||"filterDropdown"in l||"onFilter"in l)if("filteredValue"in l){let c=l.filteredValue;"filterDropdown"in l||(c=(s=c==null?void 0:c.map(String))!==null&&s!==void 0?s:c),r.push({column:l,key:at(l,i),filteredKeys:c,forceFiltered:l.filtered})}else r.push({column:l,key:at(l,i),filteredKeys:t&&l.defaultFilteredValue?l.defaultFilteredValue:void 0,forceFiltered:l.filtered});"children"in l&&(r=[].concat(ve(r),ve(tn(l.children,t,i))))}),r};function Tr(e,t,n,r,l,a,s,i,c){return n.map((d,v)=>{const u=Ct(v,i),{filterOnClose:m=!0,filterMultiple:f=!0,filterMode:p,filterSearch:h}=d;let g=d;if(g.filters||g.filterDropdown){const C=at(g,u),b=r.find(x=>{let{key:E}=x;return C===E});g=Object.assign(Object.assign({},g),{title:x=>o.createElement(ea,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:C,filterState:b,filterOnClose:m,filterMultiple:f,filterMode:p,filterSearch:h,triggerFilter:a,locale:l,getPopupContainer:s,rootClassName:c},Ft(d.title,x))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:Tr(e,t,g.children,r,l,a,s,u,c)})),g})}const Un=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:l,column:a}=n;const s=r,{filters:i,filterDropdown:c}=a;if(c)t[s]=l||null;else if(Array.isArray(l)){const d=gt(i);t[s]=d.filter(v=>l.includes(String(v)))}else t[s]=null}),t},nn=(e,t,n)=>t.reduce((l,a)=>{const{column:{onFilter:s,filters:i},filteredKeys:c}=a;return s&&c&&c.length?l.map(d=>Object.assign({},d)).filter(d=>c.some(v=>{const u=gt(i),m=u.findIndex(p=>String(p)===String(v)),f=m!==-1?u[m]:v;return d[n]&&(d[n]=nn(d[n],t,n)),s(f,d)})):l},e),Nr=e=>e.flatMap(t=>"children"in t?[t].concat(ve(Nr(t.children||[]))):[t]),ta=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:l,getPopupContainer:a,locale:s,rootClassName:i}=e;sn();const c=o.useMemo(()=>Nr(r||[]),[r]),[d,v]=o.useState(()=>tn(c,!0)),u=o.useMemo(()=>{const h=tn(c,!1);if(h.length===0)return h;let g=!0;if(h.forEach(C=>{let{filteredKeys:b}=C;b!==void 0&&(g=!1)}),g){const C=(c||[]).map((b,x)=>at(b,Ct(x)));return d.filter(b=>{let{key:x}=b;return C.includes(x)}).map(b=>{const x=c[C.findIndex(E=>E===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),x),forceFiltered:x.filtered})})}return h},[c,d]),m=o.useMemo(()=>Un(u),[u]),f=h=>{const g=u.filter(C=>{let{key:b}=C;return b!==h.key});g.push(h),v(g),l(Un(g),g)};return[h=>Tr(t,n,h,u,s,f,a,void 0,i),u,m]},na=ta;var ra=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const a=e[l];typeof a!="function"&&(n[l]=a)}),n}function la(e,t,n){const r=n&&typeof n=="object"?n:{},{total:l=0}=r,a=ra(r,["total"]),[s,i]=o.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:Pr})),c=ir(s,a,{total:l>0?l:e}),d=Math.ceil((l||e)/c.pageSize);c.current>d&&(c.current=d||1);const v=(m,f)=>{i({current:m??1,pageSize:f||c.pageSize})},u=(m,f)=>{var p;n&&((p=n.onChange)===null||p===void 0||p.call(n,m,f)),v(m,f),t(m,f||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:u}),v]}const Ot="ascend",Ut="descend",Mt=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,Gn=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,aa=(e,t)=>t?e[e.indexOf(t)+1]:e[0],rn=(e,t,n)=>{let r=[];const l=(a,s)=>{r.push({column:a,key:at(a,s),multiplePriority:Mt(a),sortOrder:a.sortOrder})};return(e||[]).forEach((a,s)=>{const i=Ct(s,n);a.children?("sortOrder"in a&&l(a,i),r=[].concat(ve(r),ve(rn(a.children,t,i)))):a.sorter&&("sortOrder"in a?l(a,i):t&&a.defaultSortOrder&&r.push({column:a,key:at(a,i),multiplePriority:Mt(a),sortOrder:a.defaultSortOrder}))}),r},Or=(e,t,n,r,l,a,s,i)=>(t||[]).map((d,v)=>{const u=Ct(v,i);let m=d;if(m.sorter){const f=m.sortDirections||l,p=m.showSorterTooltip===void 0?s:m.showSorterTooltip,h=at(m,u),g=n.find(M=>{let{key:_}=M;return _===h}),C=g?g.sortOrder:null,b=aa(f,C);let x;if(d.sortIcon)x=d.sortIcon({sortOrder:C});else{const M=f.includes(Ot)&&o.createElement(ao,{className:se(`${e}-column-sorter-up`,{active:C===Ot})}),_=f.includes(Ut)&&o.createElement(io,{className:se(`${e}-column-sorter-down`,{active:C===Ut})});x=o.createElement("span",{className:se(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(M&&_)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},M,_))}const{cancelSort:E,triggerAsc:R,triggerDesc:N}=a||{};let k=E;b===Ut?k=N:b===Ot&&(k=R);const W=typeof p=="object"?Object.assign({title:k},p):{title:k};m=Object.assign(Object.assign({},m),{className:se(m.className,{[`${e}-column-sort`]:C}),title:M=>{const _=`${e}-column-sorters`,K=o.createElement("span",{className:`${e}-column-title`},Ft(d.title,M)),I=o.createElement("div",{className:_},K,x);return p?typeof p!="boolean"&&(p==null?void 0:p.target)==="sorter-icon"?o.createElement("div",{className:`${_} ${e}-column-sorters-tooltip-target-sorter`},K,o.createElement(Ln,Object.assign({},W),x)):o.createElement(Ln,Object.assign({},W),I):I},onHeaderCell:M=>{var _;const K=((_=d.onHeaderCell)===null||_===void 0?void 0:_.call(d,M))||{},I=K.onClick,T=K.onKeyDown;K.onClick=$=>{r({column:d,key:h,sortOrder:b,multiplePriority:Mt(d)}),I==null||I($)},K.onKeyDown=$=>{$.keyCode===lr.ENTER&&(r({column:d,key:h,sortOrder:b,multiplePriority:Mt(d)}),T==null||T($))};const w=ql(d.title,{}),y=w==null?void 0:w.toString();return C&&(K["aria-sort"]=C==="ascend"?"ascending":"descending"),K["aria-label"]=y||"",K.className=se(K.className,`${e}-column-has-sorters`),K.tabIndex=0,d.ellipsis&&(K.title=(w??"").toString()),K}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:Or(e,m.children,n,r,l,a,s,u)})),m}),Yn=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Zn=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(Yn);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},Yn(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},on=(e,t,n)=>{const r=t.slice().sort((s,i)=>i.multiplePriority-s.multiplePriority),l=e.slice(),a=r.filter(s=>{let{column:{sorter:i},sortOrder:c}=s;return Gn(i)&&c});return a.length?l.sort((s,i)=>{for(let c=0;c{const i=s[n];return i?Object.assign(Object.assign({},s),{[n]:on(i,t,n)}):s}):l},ia=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:l,showSorterTooltip:a,onSorterChange:s}=e,[i,c]=o.useState(rn(n,!0)),d=(h,g)=>{const C=[];return h.forEach((b,x)=>{const E=Ct(x,g);if(C.push(at(b,E)),Array.isArray(b.children)){const R=d(b.children,E);C.push.apply(C,ve(R))}}),C},v=o.useMemo(()=>{let h=!0;const g=rn(n,!1);if(!g.length){const E=d(n);return i.filter(R=>{let{key:N}=R;return E.includes(N)})}const C=[];function b(E){h?C.push(E):C.push(Object.assign(Object.assign({},E),{sortOrder:null}))}let x=null;return g.forEach(E=>{x===null?(b(E),E.sortOrder&&(E.multiplePriority===!1?h=!1:x=!0)):(x&&E.multiplePriority!==!1||(h=!1),b(E))}),C},[n,i]),u=o.useMemo(()=>{var h,g;const C=v.map(b=>{let{column:x,sortOrder:E}=b;return{column:x,order:E}});return{sortColumns:C,sortColumn:(h=C[0])===null||h===void 0?void 0:h.column,sortOrder:(g=C[0])===null||g===void 0?void 0:g.order}},[v]),m=h=>{let g;h.multiplePriority===!1||!v.length||v[0].multiplePriority===!1?g=[h]:g=[].concat(ve(v.filter(C=>{let{key:b}=C;return b!==h.key})),[h]),c(g),s(Zn(g),g)};return[h=>Or(t,h,v,m,r,l,a),v,u,()=>Zn(v)]},sa=ia,Br=(e,t)=>e.map(r=>{const l=Object.assign({},r);return l.title=Ft(r.title,t),"children"in l&&(l.children=Br(l.children,t)),l}),ca=e=>[o.useCallback(n=>Br(n,e),[e])],da=ca,ua=wr((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),fa=ua,ma=$r((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),pa=ma,va=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:l,tableHeaderBg:a,tablePaddingVertical:s,tablePaddingHorizontal:i,calc:c}=e,d=`${D(n)} ${r} ${l}`,v=(u,m,f)=>({[`&${t}-${u}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${D(c(m).mul(-1).equal())} +import{c4 as wt,cW as lt,b as o,w as we,dn as er,cX as $t,z as Wr,el as Nn,cr as Oe,em as tr,J as ln,bP as dt,b3 as se,k as le,_ as z,s as ut,bD as an,en as Pn,bk as ve,bn as Vr,o as Xr,eo as nr,ep as On,eq as Bn,er as qr,es as Hn,c7 as Mn,et as Ur,x as Gr,c0 as Yr,eu as Xt,aK as Bt,ev as sn,a8 as rr,ag as Jr,aO as or,ew as Zr,ex as Qr,c8 as eo,ey as to,ez as no,cs as lr,b9 as ar,B as _n,eA as ir,by as Fn,aH as ro,eB as oo,eC as lo,eD as ao,eE as io,T as Ln,u as D,t as so,eF as co,a as sr,g as uo,m as fo,c as mo,cd as St,co as po,bb as vo,bB as go,bU as ho,d0 as xo,eG as bo,bu as Co,be as yo,bz as So}from"./umi-5f6aeac9.js";import{i as wo}from"./styleChecker-68f8791b.js";import{T as Eo}from"./index-0c4a636b.js";import{u as $o}from"./useLazyKVMap-f8dc5f3f.js";function Gt(e){return e!=null&&e===e.window}const Ro=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return Gt(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!Gt(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r},ko=Ro;function Io(e,t,n,r){const l=n-t;return e/=r/2,e<1?l/2*e*e*e+t:l/2*((e-=2)*e*e+2)+t}function To(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:l=450}=t,a=n(),s=ko(a),i=Date.now(),c=()=>{const v=Date.now()-i,u=Io(v>l?l:v,s,e,l);Gt(a)?a.scrollTo(window.pageXOffset,u):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=u:a.scrollTop=u,v=n}function Lo(e,t){return Me(Ae,function(n){var r=Fo(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var zo=function(t){var n=t.ellipsis,r=t.rowType,l=t.children,a,s=n===!0?{showTitle:!0}:n;return s&&(s.showTitle||r==="header")&&(typeof l=="string"||typeof l=="number"?a=l.toString():o.isValidElement(l)&&typeof l.props.children=="string"&&(a=l.props.children)),a};function Ko(e){var t,n,r,l,a,s,i,c,d=e.component,v=e.children,u=e.ellipsis,m=e.scope,f=e.prefixCls,p=e.className,h=e.align,g=e.record,C=e.render,b=e.dataIndex,x=e.renderIndex,E=e.shouldCellUpdate,R=e.index,N=e.rowType,k=e.colSpan,W=e.rowSpan,H=e.fixLeft,_=e.fixRight,K=e.firstFixLeft,I=e.lastFixLeft,T=e.firstFixRight,w=e.lastFixRight,y=e.appendNode,$=e.additionalProps,O=$===void 0?{}:$,B=e.isSticky,S="".concat(f,"-cell"),X=Me(Ae,["supportSticky","allColumnsFixedLeft","rowHoverable"]),q=X.supportSticky,ge=X.allColumnsFixedLeft,ie=X.rowHoverable,Ee=_o(g,b,x,v,C,E),xe=we(Ee,2),Pe=xe[0],V=xe[1],J={},be=typeof H=="number"&&q,de=typeof _=="number"&&q;be&&(J.position="sticky",J.left=H),de&&(J.position="sticky",J.right=_);var A=(t=(n=(r=V==null?void 0:V.colSpan)!==null&&r!==void 0?r:O.colSpan)!==null&&n!==void 0?n:k)!==null&&t!==void 0?t:1,j=(l=(a=(s=V==null?void 0:V.rowSpan)!==null&&s!==void 0?s:O.rowSpan)!==null&&a!==void 0?a:W)!==null&&l!==void 0?l:1,P=Lo(R,j),F=we(P,2),Z=F[0],te=F[1],Q=lt(function(ue){var ce;g&&te(R,R+j-1),O==null||(ce=O.onMouseEnter)===null||ce===void 0||ce.call(O,ue)}),Ce=lt(function(ue){var ce;g&&te(-1,-1),O==null||(ce=O.onMouseLeave)===null||ce===void 0||ce.call(O,ue)});if(A===0||j===0)return null;var Ue=(i=O.title)!==null&&i!==void 0?i:zo({rowType:N,ellipsis:u,children:Pe}),Te=se(S,p,(c={},le(le(le(le(le(le(le(le(le(le(c,"".concat(S,"-fix-left"),be&&q),"".concat(S,"-fix-left-first"),K&&q),"".concat(S,"-fix-left-last"),I&&q),"".concat(S,"-fix-left-all"),I&&ge&&q),"".concat(S,"-fix-right"),de&&q),"".concat(S,"-fix-right-first"),T&&q),"".concat(S,"-fix-right-last"),w&&q),"".concat(S,"-ellipsis"),u),"".concat(S,"-with-append"),y),"".concat(S,"-fix-sticky"),(be||de)&&B&&q),le(c,"".concat(S,"-row-hover"),!V&&Z)),O.className,V==null?void 0:V.className),M={};h&&(M.textAlign=h);var L=z(z(z(z({},V==null?void 0:V.style),J),M),O.style),re=Pe;return dt(re)==="object"&&!Array.isArray(re)&&!o.isValidElement(re)&&(re=null),u&&(I||T)&&(re=o.createElement("span",{className:"".concat(S,"-content")},re)),o.createElement(d,Oe({},V,O,{className:Te,style:L,title:Ue,scope:m,onMouseEnter:ie?Q:void 0,onMouseLeave:ie?Ce:void 0,colSpan:A!==1?A:null,rowSpan:j!==1?j:null}),y,re)}const xt=o.memo(Ko);function un(e,t,n,r,l){var a=n[e]||{},s=n[t]||{},i,c;a.fixed==="left"?i=r.left[l==="rtl"?t:e]:s.fixed==="right"&&(c=r.right[l==="rtl"?e:t]);var d=!1,v=!1,u=!1,m=!1,f=n[t+1],p=n[e-1],h=f&&!f.fixed||p&&!p.fixed||n.every(function(E){return E.fixed==="left"});if(l==="rtl"){if(i!==void 0){var g=p&&p.fixed==="left";m=!g&&h}else if(c!==void 0){var C=f&&f.fixed==="right";u=!C&&h}}else if(i!==void 0){var b=f&&f.fixed==="left";d=!b&&h}else if(c!==void 0){var x=p&&p.fixed==="right";v=!x&&h}return{fixLeft:i,fixRight:c,lastFixLeft:d,firstFixRight:v,lastFixRight:u,firstFixLeft:m,isSticky:r.isSticky}}var ur=o.createContext({});function Do(e){var t=e.className,n=e.index,r=e.children,l=e.colSpan,a=l===void 0?1:l,s=e.rowSpan,i=e.align,c=Me(Ae,["prefixCls","direction"]),d=c.prefixCls,v=c.direction,u=o.useContext(ur),m=u.scrollColumnIndex,f=u.stickyOffsets,p=u.flattenColumns,h=n+a-1,g=h+1===m?a+1:a,C=un(n,n+g-1,p,f,v);return o.createElement(xt,Oe({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:i,colSpan:g,rowSpan:s,render:function(){return r}},C))}var jo=["children"];function Ao(e){var t=e.children,n=ut(e,jo);return o.createElement("tr",n,t)}function _t(e){var t=e.children;return t}_t.Row=Ao;_t.Cell=Do;function Wo(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,l=Me(Ae,"prefixCls"),a=r.length-1,s=r[a],i=o.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:s!=null&&s.scrollbar?a:null}},[s,r,a,n]);return o.createElement(ur.Provider,{value:i},o.createElement("tfoot",{className:"".concat(l,"-summary")},t))}const Pt=ht(Wo);var fr=_t;function Vo(e){return null}function Xo(e){return null}function mr(e,t,n,r,l,a,s){e.push({record:t,indent:n,index:s});var i=a(t),c=l==null?void 0:l.has(i);if(t&&Array.isArray(t[r])&&c)for(var d=0;d1?K-1:0),T=1;T=1)),style:z(z({},n),C==null?void 0:C.style)}),p.map(function(H,_){var K=H.render,I=H.dataIndex,T=H.className,w=xr(m,H,_,c,l),y=w.key,$=w.fixedInfo,O=w.appendCellNode,B=w.additionalCellProps;return o.createElement(xt,Oe({className:T,ellipsis:H.ellipsis,align:H.align,scope:H.rowScope,component:H.rowScope?u:v,prefixCls:f,key:y,record:r,index:l,renderIndex:a,dataIndex:I,render:K,shouldCellUpdate:H.shouldCellUpdate},$,{appendNode:O,additionalProps:B}))})),k;if(x&&(E.current||b)){var W=g(r,l,c+1,b);k=o.createElement(gr,{expanded:b,className:se("".concat(f,"-expanded-row"),"".concat(f,"-expanded-row-level-").concat(c+1),R),prefixCls:f,component:d,cellComponent:v,colSpan:p.length,isEmpty:!1},W)}return o.createElement(o.Fragment,null,N,k)}const Yo=ht(Go);function Jo(e){var t=e.columnKey,n=e.onColumnResize,r=o.useRef();return o.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),o.createElement(an,{data:t},o.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function Zo(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return o.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},o.createElement(an.Collection,{onBatchResize:function(a){a.forEach(function(s){var i=s.data,c=s.size;r(i,c.offsetWidth)})}},n.map(function(l){return o.createElement(Jo,{key:l,columnKey:l,onColumnResize:r})})))}function Qo(e){var t=e.data,n=e.measureColumnWidth,r=Me(Ae,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),l=r.prefixCls,a=r.getComponent,s=r.onColumnResize,i=r.flattenColumns,c=r.getRowKey,d=r.expandedKeys,v=r.childrenColumnName,u=r.emptyNode,m=pr(t,v,d,c),f=o.useRef({renderWithProps:!1}),p=a(["body","wrapper"],"tbody"),h=a(["body","row"],"tr"),g=a(["body","cell"],"td"),C=a(["body","cell"],"th"),b;t.length?b=m.map(function(E,R){var N=E.record,k=E.indent,W=E.index,H=c(N,R);return o.createElement(Yo,{key:H,rowKey:H,record:N,index:R,renderIndex:W,rowComponent:h,cellComponent:g,scopeCellComponent:C,indent:k})}):b=o.createElement(gr,{expanded:!0,className:"".concat(l,"-placeholder"),prefixCls:l,component:h,cellComponent:g,colSpan:i.length,isEmpty:!0},u);var x=Mt(i);return o.createElement(dr.Provider,{value:f.current},o.createElement(p,{className:"".concat(l,"-tbody")},n&&o.createElement(Zo,{prefixCls:l,columnsKey:x,onColumnResize:s}),b))}const el=ht(Qo);var tl=["expandable"],Et="RC_TABLE_INTERNAL_COL_DEFINE";function nl(e){var t=e.expandable,n=ut(e,tl),r;return"expandable"in e?r=z(z({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var rl=["columnType"];function br(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,l=Me(Ae,["tableLayout"]),a=l.tableLayout,s=[],i=r||n.length,c=!1,d=i-1;d>=0;d-=1){var v=t[d],u=n&&n[d],m=void 0,f=void 0;if(u&&(m=u[Et],a==="auto"&&(f=u.minWidth)),v||f||m||c){var p=m||{};p.columnType;var h=ut(p,rl);s.unshift(o.createElement("col",Oe({key:d,style:{width:v,minWidth:f}},h))),c=!0}}return o.createElement("colgroup",null,s)}var ol=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ll(e,t){return o.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:g.ellipsis,align:g.align,component:s,prefixCls:v,key:f[h]},C,{additionalProps:b,rowType:"header"}))}))};function sl(e){var t=[];function n(s,i){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var d=i,v=s.filter(Boolean).map(function(u){var m={key:u.key,className:u.className||"",children:u.title,column:u,colStart:d},f=1,p=u.children;return p&&p.length>0&&(f=n(p,d,c+1).reduce(function(h,g){return h+g},0),m.hasSubColumns=!0),"colSpan"in u&&(f=u.colSpan),"rowSpan"in u&&(m.rowSpan=u.rowSpan),m.colSpan=f,m.colEnd=m.colStart+f-1,t[c].push(m),d+=f,f});return v}n(e,0);for(var r=t.length,l=function(i){t[i].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-i)})},a=0;a1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function dl(e,t,n){return o.useMemo(function(){if(t&&t>0){var r=0,l=0;e.forEach(function(m){var f=Dn(t,m.width);f?r+=f:l+=1});var a=Math.max(t,n),s=Math.max(a-r,l),i=l,c=s/l,d=0,v=e.map(function(m){var f=z({},m),p=Dn(t,f.width);if(p)f.width=p;else{var h=Math.floor(c);f.width=i===1?s:h,s-=h,i-=1}return d+=f.width,f});if(d0?z(z({},t),{},{children:Cr(n)}):t})}function Jt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&dt(n)==="object"}).reduce(function(n,r,l){var a=r.fixed,s=a===!0?"left":a,i="".concat(t,"-").concat(l),c=r.children;return c&&c.length>0?[].concat(ve(n),ve(Jt(c,i).map(function(d){return z({fixed:s},d)}))):[].concat(ve(n),[z(z({key:i},r),{},{fixed:s})])},[])}function ml(e){return e.map(function(t){var n=t.fixed,r=ut(t,fl),l=n;return n==="left"?l="right":n==="right"&&(l="left"),z({fixed:l},r)})}function pl(e,t){var n=e.prefixCls,r=e.columns,l=e.children,a=e.expandable,s=e.expandedKeys,i=e.columnTitle,c=e.getRowKey,d=e.onTriggerExpand,v=e.expandIcon,u=e.rowExpandable,m=e.expandIconColumnIndex,f=e.direction,p=e.expandRowByClick,h=e.columnWidth,g=e.fixed,C=e.scrollWidth,b=e.clientWidth,x=o.useMemo(function(){var I=r||fn(l)||[];return Cr(I.slice())},[r,l]),E=o.useMemo(function(){if(a){var I=x.slice();if(!I.includes(et)){var T=m||0;T>=0&&(T||g==="left"||!g)&&I.splice(T,0,et),g==="right"&&I.splice(x.length,0,et)}var w=I.indexOf(et);I=I.filter(function(B,S){return B!==et||S===w});var y=x[w],$;g?$=g:$=y?y.fixed:null;var O=le(le(le(le(le(le({},Et,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",i),"fixed",$),"className","".concat(n,"-row-expand-icon-cell")),"width",h),"render",function(S,X,q){var ge=c(X,q),ie=s.has(ge),Ee=u?u(X):!0,xe=v({prefixCls:n,expanded:ie,expandable:Ee,record:X,onExpand:d});return p?o.createElement("span",{onClick:function(V){return V.stopPropagation()}},xe):xe});return I.map(function(B){return B===et?O:B})}return x.filter(function(B){return B!==et})},[a,x,c,s,v,f]),R=o.useMemo(function(){var I=E;return t&&(I=t(I)),I.length||(I=[{render:function(){return null}}]),I},[t,E,f]),N=o.useMemo(function(){return f==="rtl"?ml(Jt(R)):Jt(R)},[R,f,C]),k=o.useMemo(function(){for(var I=-1,T=N.length-1;T>=0;T-=1){var w=N[T].fixed;if(w==="left"||w===!0){I=T;break}}if(I>=0)for(var y=0;y<=I;y+=1){var $=N[y].fixed;if($!=="left"&&$!==!0)return!0}var O=N.findIndex(function(X){var q=X.fixed;return q==="right"});if(O>=0)for(var B=O;B=O-i?b(function(B){return z(z({},B),{},{isHiddenScrollBar:!0})}):b(function(B){return z(z({},B),{},{isHiddenScrollBar:!1})})}})},T=function(y){b(function($){return z(z({},$),{},{scrollLeft:y/u*m||0})})};return o.useImperativeHandle(n,function(){return{setScrollLeft:T,checkScrollBarVisible:I}}),o.useEffect(function(){var w=On(document.body,"mouseup",H,!1),y=On(document.body,"mousemove",K,!1);return I(),function(){w.remove(),y.remove()}},[f,N]),o.useEffect(function(){if(a.current){for(var w=[],y=a.current;y;)w.push(y),y=y.parentElement;return w.forEach(function($){return $.addEventListener("scroll",I,!1)}),window.addEventListener("resize",I,!1),window.addEventListener("scroll",I,!1),c.addEventListener("scroll",I,!1),function(){w.forEach(function($){return $.removeEventListener("scroll",I)}),window.removeEventListener("resize",I),window.removeEventListener("scroll",I),c.removeEventListener("scroll",I)}}},[c]),o.useEffect(function(){C.isHiddenScrollBar||b(function(w){var y=a.current;return y?z(z({},w),{},{scrollLeft:y.scrollLeft/y.scrollWidth*y.clientWidth}):w})},[C.isHiddenScrollBar]),u<=m||!f||C.isHiddenScrollBar?null:o.createElement("div",{style:{height:Bn(),width:m,bottom:i},className:"".concat(v,"-sticky-scroll")},o.createElement("div",{onMouseDown:_,ref:p,className:se("".concat(v,"-sticky-scroll-bar"),le({},"".concat(v,"-sticky-scroll-bar-active"),N)),style:{width:"".concat(f,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))};const Sl=o.forwardRef(yl);var Sr="rc-table",wl=[],El={};function $l(){return"No Data"}function Rl(e,t){var n=z({rowKey:"key",prefixCls:Sr,emptyText:$l},e),r=n.prefixCls,l=n.className,a=n.rowClassName,s=n.style,i=n.data,c=n.rowKey,d=n.scroll,v=n.tableLayout,u=n.direction,m=n.title,f=n.footer,p=n.summary,h=n.caption,g=n.id,C=n.showHeader,b=n.components,x=n.emptyText,E=n.onRow,R=n.onHeaderRow,N=n.onScroll,k=n.internalHooks,W=n.transformColumns,H=n.internalRefs,_=n.tailor,K=n.getContainerWidth,I=n.sticky,T=n.rowHoverable,w=T===void 0?!0:T,y=i||wl,$=!!y.length,O=k===Rt,B=o.useCallback(function(Y,ee){return ln(b,Y)||ee},[b]),S=o.useMemo(function(){return typeof c=="function"?c:function(Y){var ee=Y&&Y[c];return ee}},[c]),X=B(["body"]),q=xl(),ge=we(q,3),ie=ge[0],Ee=ge[1],xe=ge[2],Pe=vl(n,y,S),V=we(Pe,6),J=V[0],be=V[1],de=V[2],A=V[3],j=V[4],P=V[5],F=d==null?void 0:d.x,Z=o.useState(0),te=we(Z,2),Q=te[0],Ce=te[1],Ue=pl(z(z(z({},n),J),{},{expandable:!!J.expandedRowRender,columnTitle:J.columnTitle,expandedKeys:de,getRowKey:S,onTriggerExpand:P,expandIcon:A,expandIconColumnIndex:J.expandIconColumnIndex,direction:u,scrollWidth:O&&_&&typeof F=="number"?F:null,clientWidth:Q}),O?W:null),Te=we(Ue,4),M=Te[0],L=Te[1],re=Te[2],ue=Te[3],ce=re??F,he=o.useMemo(function(){return{columns:M,flattenColumns:L}},[M,L]),_e=o.useRef(),Qe=o.useRef(),fe=o.useRef(),oe=o.useRef();o.useImperativeHandle(t,function(){return{nativeElement:_e.current,scrollTo:function(ee){var Be;if(fe.current instanceof HTMLElement){var Ye=ee.index,He=ee.top,vt=ee.key;if(Ho(He)){var st;(st=fe.current)===null||st===void 0||st.scrollTo({top:He})}else{var ct,yt=vt??S(y[Ye]);(ct=fe.current.querySelector('[data-row-key="'.concat(yt,'"]')))===null||ct===void 0||ct.scrollIntoView()}}else(Be=fe.current)!==null&&Be!==void 0&&Be.scrollTo&&fe.current.scrollTo(ee)}}});var me=o.useRef(),pe=o.useState(!1),Ie=we(pe,2),Re=Ie[0],ne=Ie[1],$e=o.useState(!1),ae=we($e,2),ke=ae[0],We=ae[1],Ke=yr(new Map),nt=we(Ke,2),ye=nt[0],ft=nt[1],mt=Mt(L),De=mt.map(function(Y){return ye.get(Y)}),Je=o.useMemo(function(){return De},[De.join("_")]),Xe=Cl(Je,L,u),je=d&&Yt(d.y),Fe=d&&Yt(ce)||!!J.fixed,Ve=Fe&&L.some(function(Y){var ee=Y.fixed;return ee}),it=o.useRef(),rt=bl(I,r),Ze=rt.isSticky,Lt=rt.offsetHeader,zt=rt.offsetSummary,kt=rt.offsetScroll,Kt=rt.stickyClassName,U=rt.container,G=o.useMemo(function(){return p==null?void 0:p(y)},[p,y]),Se=(je||Ze)&&o.isValidElement(G)&&G.type===_t&&G.props.fixed,Ne,Le,qe;je&&(Le={overflowY:$?"scroll":"auto",maxHeight:d.y}),Fe&&(Ne={overflowX:"auto"},je||(Le={overflowY:"hidden"}),qe={width:ce===!0?"auto":ce,minWidth:"100%"});var Ge=o.useCallback(function(Y,ee){qr(_e.current)&&ft(function(Be){if(Be.get(Y)!==ee){var Ye=new Map(Be);return Ye.set(Y,ee),Ye}return Be})},[]),ze=hl(null),pn=we(ze,2),Hr=pn[0],vn=pn[1];function It(Y,ee){ee&&(typeof ee=="function"?ee(Y):ee.scrollLeft!==Y&&(ee.scrollLeft=Y,ee.scrollLeft!==Y&&setTimeout(function(){ee.scrollLeft=Y},0)))}var pt=lt(function(Y){var ee=Y.currentTarget,Be=Y.scrollLeft,Ye=u==="rtl",He=typeof Be=="number"?Be:ee.scrollLeft,vt=ee||El;if(!vn()||vn()===vt){var st;Hr(vt),It(He,Qe.current),It(He,fe.current),It(He,me.current),It(He,(st=it.current)===null||st===void 0?void 0:st.setScrollLeft)}var ct=ee||Qe.current;if(ct){var yt=O&&_&&typeof ce=="number"?ce:ct.scrollWidth,Vt=ct.clientWidth;if(yt===Vt){ne(!1),We(!1);return}Ye?(ne(-He0)):(ne(He>0),We(He1?g-w:0,$=z(z(z({},W),d),{},{flex:"0 0 ".concat(w,"px"),width:"".concat(w,"px"),marginRight:y,pointerEvents:"auto"}),O=o.useMemo(function(){return u?I<=1:_===0||I===0||I>1},[I,_,u]);O?$.visibility="hidden":u&&($.height=m==null?void 0:m(I));var B=O?function(){return null}:f,S={};return(I===0||_===0)&&(S.rowSpan=1,S.colSpan=1),o.createElement(xt,Oe({className:se(h,v),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:s,prefixCls:t.prefixCls,key:E,record:c,index:a,renderIndex:i,dataIndex:p,render:B,shouldCellUpdate:n.shouldCellUpdate},R,{appendNode:N,additionalProps:z(z({},k),{},{style:$},S)}))}var Nl=["data","index","className","rowKey","style","extra","getHeight"],Pl=o.forwardRef(function(e,t){var n=e.data,r=e.index,l=e.className,a=e.rowKey,s=e.style,i=e.extra,c=e.getHeight,d=ut(e,Nl),v=n.record,u=n.indent,m=n.index,f=Me(Ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=f.scrollX,h=f.flattenColumns,g=f.prefixCls,C=f.fixColumn,b=f.componentWidth,x=Me(mn,["getComponent"]),E=x.getComponent,R=vr(v,a,r,u),N=E(["body","row"],"div"),k=E(["body","cell"],"div"),W=R.rowSupportExpand,H=R.expanded,_=R.rowProps,K=R.expandedRowRender,I=R.expandedRowClassName,T;if(W&&H){var w=K(v,r,u+1,H),y=hr(I,v,r,u),$={};C&&($={style:le({},"--virtual-width","".concat(b,"px"))});var O="".concat(g,"-expanded-row-cell");T=o.createElement(N,{className:se("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(u+1),y)},o.createElement(xt,{component:k,prefixCls:g,className:se(O,le({},"".concat(O,"-fixed"),C)),additionalProps:$},w))}var B=z(z({},s),{},{width:p});i&&(B.position="absolute",B.pointerEvents="none");var S=o.createElement(N,Oe({},_,d,{"data-row-key":a,ref:W?null:t,className:se(l,"".concat(g,"-row"),_==null?void 0:_.className,le({},"".concat(g,"-row-extra"),i)),style:z(z({},B),_==null?void 0:_.style)}),h.map(function(X,q){return o.createElement(Tl,{key:q,component:k,rowInfo:R,column:X,colIndex:q,indent:u,index:r,renderIndex:m,record:v,inverse:i,getHeight:c})}));return W?o.createElement("div",{ref:t},S,T):S}),Vn=ht(Pl),Ol=o.forwardRef(function(e,t){var n=e.data,r=e.onScroll,l=Me(Ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=l.flattenColumns,s=l.onColumnResize,i=l.getRowKey,c=l.expandedKeys,d=l.prefixCls,v=l.childrenColumnName,u=l.scrollX,m=l.direction,f=Me(mn),p=f.sticky,h=f.scrollY,g=f.listItemHeight,C=f.getComponent,b=f.onScroll,x=o.useRef(),E=pr(n,v,c,i),R=o.useMemo(function(){var T=0;return a.map(function(w){var y=w.width,$=w.key;return T+=y,[$,y,T]})},[a]),N=o.useMemo(function(){return R.map(function(T){return T[2]})},[R]);o.useEffect(function(){R.forEach(function(T){var w=we(T,2),y=w[0],$=w[1];s(y,$)})},[R]),o.useImperativeHandle(t,function(){var T,w={scrollTo:function($){var O;(O=x.current)===null||O===void 0||O.scrollTo($)},nativeElement:(T=x.current)===null||T===void 0?void 0:T.nativeElement};return Object.defineProperty(w,"scrollLeft",{get:function(){var $;return(($=x.current)===null||$===void 0?void 0:$.getScrollInfo().x)||0},set:function($){var O;(O=x.current)===null||O===void 0||O.scrollTo({left:$})}}),w});var k=function(w,y){var $,O=($=E[y])===null||$===void 0?void 0:$.record,B=w.onCell;if(B){var S,X=B(O,y);return(S=X==null?void 0:X.rowSpan)!==null&&S!==void 0?S:1}return 1},W=function(w){var y=w.start,$=w.end,O=w.getSize,B=w.offsetY;if($<0)return null;for(var S=a.filter(function(A){return k(A,y)===0}),X=y,q=function(j){if(S=S.filter(function(P){return k(P,j)===0}),!S.length)return X=j,1},ge=y;ge>=0&&!q(ge);ge-=1);for(var ie=a.filter(function(A){return k(A,$)!==1}),Ee=$,xe=function(j){if(ie=ie.filter(function(P){return k(P,j)!==1}),!ie.length)return Ee=Math.max(j-1,$),1},Pe=$;Pe1})&&V.push(j)},be=X;be<=Ee;be+=1)J(be);var de=V.map(function(A){var j=E[A],P=i(j.record,A),F=function(Q){var Ce=A+Q-1,Ue=i(E[Ce].record,Ce),Te=O(P,Ue);return Te.bottom-Te.top},Z=O(P);return o.createElement(Vn,{key:A,data:j,rowKey:P,index:A,style:{top:-B+Z.top},extra:!0,getHeight:F})});return de},H=o.useMemo(function(){return{columnsOffset:N}},[N]),_="".concat(d,"-tbody"),K=C(["body","wrapper"]),I={};return p&&(I.position="sticky",I.bottom=0,dt(p)==="object"&&p.offsetScroll&&(I.bottom=p.offsetScroll)),o.createElement(Er.Provider,{value:H},o.createElement(Ur,{fullHeight:!1,ref:x,prefixCls:"".concat(_,"-virtual"),styles:{horizontalScrollBar:I},className:_,height:h,itemHeight:g||24,data:E,itemKey:function(w){return i(w.record)},component:K,scrollWidth:u,direction:m,onVirtualScroll:function(w){var y,$=w.x;r({currentTarget:(y=x.current)===null||y===void 0?void 0:y.nativeElement,scrollLeft:$})},onScroll:b,extraRender:W},function(T,w,y){var $=i(T.record,w);return o.createElement(Vn,{data:T,rowKey:$,index:w,style:y.style})}))}),Bl=ht(Ol),Hl=function(t,n){var r=n.ref,l=n.onScroll;return o.createElement(Bl,{ref:r,data:t,onScroll:l})};function Ml(e,t){var n=e.data,r=e.columns,l=e.scroll,a=e.sticky,s=e.prefixCls,i=s===void 0?Sr:s,c=e.className,d=e.listItemHeight,v=e.components,u=e.onScroll,m=l||{},f=m.x,p=m.y;typeof f!="number"&&(f=1),typeof p!="number"&&(p=500);var h=lt(function(b,x){return ln(v,b)||x}),g=lt(u),C=o.useMemo(function(){return{sticky:a,scrollY:p,listItemHeight:d,getComponent:h,onScroll:g}},[a,p,d,h,g]);return o.createElement(mn.Provider,{value:C},o.createElement(bt,Oe({},e,{className:se(c,"".concat(i,"-virtual")),scroll:z(z({},l),{},{x:f}),components:z(z({},v),{},{body:n!=null&&n.length?Hl:void 0}),columns:r,internalHooks:Rt,tailor:!0,ref:t})))}var _l=o.forwardRef(Ml);function $r(e){return cr(_l,e)}$r();const Fl=e=>null,Ll=Fl,zl=e=>null,Kl=zl;function Dl(e){const[t,n]=o.useState(null);return[o.useCallback((a,s,i)=>{const c=t??a,d=Math.min(c||0,a),v=Math.max(c||0,a),u=s.slice(d,v+1).map(p=>e(p)),m=u.some(p=>!i.has(p)),f=[];return u.forEach(p=>{m?(i.has(p)||f.push(p),i.add(p)):(i.delete(p),f.push(p))}),n(m?v:null),f},[t]),a=>{n(a)}]}const ot={},Zt="SELECT_ALL",Qt="SELECT_INVERT",en="SELECT_NONE",Xn=[],Rr=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(ve(n),ve(Rr(e,r[e]))))}),n},jl=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:l,getCheckboxProps:a,onChange:s,onSelect:i,onSelectAll:c,onSelectInvert:d,onSelectNone:v,onSelectMultiple:u,columnWidth:m,type:f,selections:p,fixed:h,renderCell:g,hideSelectAll:C,checkStrictly:b=!0}=t||{},{prefixCls:x,data:E,pageData:R,getRecordByKey:N,getRowKey:k,expandType:W,childrenColumnName:H,locale:_,getPopupContainer:K}=e,I=sn(),[T,w]=Dl(A=>A),[y,$]=Gr(r||l||Xn,{value:r}),O=o.useRef(new Map),B=o.useCallback(A=>{if(n){const j=new Map;A.forEach(P=>{let F=N(P);!F&&O.current.has(P)&&(F=O.current.get(P)),j.set(P,F)}),O.current=j}},[N,n]);o.useEffect(()=>{B(y)},[y]);const S=o.useMemo(()=>Rr(H,R),[H,R]),{keyEntities:X}=o.useMemo(()=>{if(b)return{keyEntities:null};let A=E;if(n){const j=new Set(S.map((F,Z)=>k(F,Z))),P=Array.from(O.current).reduce((F,Z)=>{let[te,Q]=Z;return j.has(te)?F:F.concat(Q)},[]);A=[].concat(ve(A),ve(P))}return Yr(A,{externalGetKey:k,childrenPropName:H})},[E,k,b,H,n,S]),q=o.useMemo(()=>{const A=new Map;return S.forEach((j,P)=>{const F=k(j,P),Z=(a?a(j):null)||{};A.set(F,Z)}),A},[S,k,a]),ge=o.useCallback(A=>{const j=k(A);let P;return q.has(j)?P=q.get(k(A)):P=a?a(A):void 0,!!(P!=null&&P.disabled)},[q,k]),[ie,Ee]=o.useMemo(()=>{if(b)return[y||[],[]];const{checkedKeys:A,halfCheckedKeys:j}=Xt(y,!0,X,ge);return[A||[],j]},[y,b,X,ge]),xe=o.useMemo(()=>{const A=f==="radio"?ie.slice(0,1):ie;return new Set(A)},[ie,f]),Pe=o.useMemo(()=>f==="radio"?new Set:new Set(Ee),[Ee,f]);o.useEffect(()=>{t||$(Xn)},[!!t]);const V=o.useCallback((A,j)=>{let P,F;B(A),n?(P=A,F=A.map(Z=>O.current.get(Z))):(P=[],F=[],A.forEach(Z=>{const te=N(Z);te!==void 0&&(P.push(Z),F.push(te))})),$(P),s==null||s(P,F,{type:j})},[$,N,s,n]),J=o.useCallback((A,j,P,F)=>{if(i){const Z=P.map(te=>N(te));i(N(A),j,Z,F)}V(P,"single")},[i,N,V]),be=o.useMemo(()=>!p||C?null:(p===!0?[Zt,Qt,en]:p).map(j=>j===Zt?{key:"all",text:_.selectionAll,onSelect(){V(E.map((P,F)=>k(P,F)).filter(P=>{const F=q.get(P);return!(F!=null&&F.disabled)||xe.has(P)}),"all")}}:j===Qt?{key:"invert",text:_.selectInvert,onSelect(){const P=new Set(xe);R.forEach((Z,te)=>{const Q=k(Z,te),Ce=q.get(Q);Ce!=null&&Ce.disabled||(P.has(Q)?P.delete(Q):P.add(Q))});const F=Array.from(P);d&&(I.deprecated(!1,"onSelectInvert","onChange"),d(F)),V(F,"invert")}}:j===en?{key:"none",text:_.selectNone,onSelect(){v==null||v(),V(Array.from(xe).filter(P=>{const F=q.get(P);return F==null?void 0:F.disabled}),"none")}}:j).map(j=>Object.assign(Object.assign({},j),{onSelect:function(){for(var P,F,Z=arguments.length,te=new Array(Z),Q=0;Q{var j;if(!t)return A.filter(oe=>oe!==ot);let P=ve(A);const F=new Set(xe),Z=S.map(k).filter(oe=>!q.get(oe).disabled),te=Z.every(oe=>F.has(oe)),Q=Z.some(oe=>F.has(oe)),Ce=()=>{const oe=[];te?Z.forEach(pe=>{F.delete(pe),oe.push(pe)}):Z.forEach(pe=>{F.has(pe)||(F.add(pe),oe.push(pe))});const me=Array.from(F);c==null||c(!te,me.map(pe=>N(pe)),oe.map(pe=>N(pe))),V(me,"all"),w(null)};let Ue,Te;if(f!=="radio"){let oe;if(be){const ne={getPopupContainer:K,items:be.map(($e,ae)=>{const{key:ke,text:We,onSelect:Ke}=$e;return{key:ke??ae,onClick:()=>{Ke==null||Ke(Z)},label:We}})};oe=o.createElement("div",{className:`${x}-selection-extra`},o.createElement(rr,{menu:ne,getPopupContainer:K},o.createElement("span",null,o.createElement(Jr,null))))}const me=S.map((ne,$e)=>{const ae=k(ne,$e),ke=q.get(ae)||{};return Object.assign({checked:F.has(ae)},ke)}).filter(ne=>{let{disabled:$e}=ne;return $e}),pe=!!me.length&&me.length===S.length,Ie=pe&&me.every(ne=>{let{checked:$e}=ne;return $e}),Re=pe&&me.some(ne=>{let{checked:$e}=ne;return $e});Te=o.createElement(Bt,{checked:pe?Ie:!!S.length&&te,indeterminate:pe?!Ie&&Re:!te&&Q,onChange:Ce,disabled:S.length===0||pe,"aria-label":oe?"Custom selection":"Select all",skipGroup:!0}),Ue=!C&&o.createElement("div",{className:`${x}-selection`},Te,oe)}let M;f==="radio"?M=(oe,me,pe)=>{const Ie=k(me,pe),Re=F.has(Ie),ne=q.get(Ie);return{node:o.createElement(or,Object.assign({},ne,{checked:Re,onClick:$e=>{var ae;$e.stopPropagation(),(ae=ne==null?void 0:ne.onClick)===null||ae===void 0||ae.call(ne,$e)},onChange:$e=>{var ae;F.has(Ie)||J(Ie,!0,[Ie],$e.nativeEvent),(ae=ne==null?void 0:ne.onChange)===null||ae===void 0||ae.call(ne,$e)}})),checked:Re}}:M=(oe,me,pe)=>{var Ie;const Re=k(me,pe),ne=F.has(Re),$e=Pe.has(Re),ae=q.get(Re);let ke;return W==="nest"?ke=$e:ke=(Ie=ae==null?void 0:ae.indeterminate)!==null&&Ie!==void 0?Ie:$e,{node:o.createElement(Bt,Object.assign({},ae,{indeterminate:ke,checked:ne,skipGroup:!0,onClick:We=>{var Ke;We.stopPropagation(),(Ke=ae==null?void 0:ae.onClick)===null||Ke===void 0||Ke.call(ae,We)},onChange:We=>{var Ke;const{nativeEvent:nt}=We,{shiftKey:ye}=nt,ft=Z.findIndex(De=>De===Re),mt=ie.some(De=>Z.includes(De));if(ye&&b&&mt){const De=T(ft,Z,F),Je=Array.from(F);u==null||u(!ne,Je.map(Xe=>N(Xe)),De.map(Xe=>N(Xe))),V(Je,"multiple")}else{const De=ie;if(b){const Je=ne?Zr(De,Re):Qr(De,Re);J(Re,!ne,Je,nt)}else{const Je=Xt([].concat(ve(De),[Re]),!0,X,ge),{checkedKeys:Xe,halfCheckedKeys:je}=Je;let Fe=Xe;if(ne){const Ve=new Set(Xe);Ve.delete(Re),Fe=Xt(Array.from(Ve),{checked:!1,halfCheckedKeys:je},X,ge).checkedKeys}J(Re,!ne,Fe,nt)}}w(ne?null:ft),(Ke=ae==null?void 0:ae.onChange)===null||Ke===void 0||Ke.call(ae,We)}})),checked:ne}};const L=(oe,me,pe)=>{const{node:Ie,checked:Re}=M(oe,me,pe);return g?g(Re,me,pe,Ie):Ie};if(!P.includes(ot))if(P.findIndex(oe=>{var me;return((me=oe[Et])===null||me===void 0?void 0:me.columnType)==="EXPAND_COLUMN"})===0){const[oe,...me]=P;P=[oe,ot].concat(ve(me))}else P=[ot].concat(ve(P));const re=P.indexOf(ot);P=P.filter((oe,me)=>oe!==ot||me===re);const ue=P[re-1],ce=P[re+1];let he=h;he===void 0&&((ce==null?void 0:ce.fixed)!==void 0?he=ce.fixed:(ue==null?void 0:ue.fixed)!==void 0&&(he=ue.fixed)),he&&ue&&((j=ue[Et])===null||j===void 0?void 0:j.columnType)==="EXPAND_COLUMN"&&ue.fixed===void 0&&(ue.fixed=he);const _e=se(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:p&&f==="checkbox"}),Qe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Te):t.columnTitle:Ue,fe={fixed:he,width:m,className:`${x}-selection-column`,title:Qe(),render:L,onCell:t.onCell,[Et]:{className:_e}};return P.map(oe=>oe===ot?fe:oe)},[k,S,t,ie,xe,Pe,m,be,W,q,u,J,ge]),xe]};function Al(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function Wl(e,t){return o.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(l,a){return n[a]?n[a]:Reflect.get(l,a)}}):Al(r,n)})}function Vl(e){return t=>{const{prefixCls:n,onExpand:r,record:l,expanded:a,expandable:s}=t,i=`${n}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:c=>{r(l,c),c.stopPropagation()},className:se(i,{[`${i}-spaced`]:!s,[`${i}-expanded`]:s&&a,[`${i}-collapsed`]:s&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function Xl(e){return(n,r)=>{const l=n.querySelector(`.${e}-container`);let a=r;if(l){const s=getComputedStyle(l),i=parseInt(s.borderLeftWidth,10),c=parseInt(s.borderRightWidth,10);a=r-i-c}return a}}const at=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Ct(e,t){return t?`${t}-${e}`:`${e}`}const Ft=(e,t)=>typeof e=="function"?e(t):e,ql=(e,t)=>{const n=Ft(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function Ul(e){const t=o.useRef(e),n=eo();return[()=>t.current,r=>{t.current=r,n()}]}const Gl=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:l,onChange:a}=e;return n?o.createElement("div",{className:`${r}-filter-dropdown-search`},o.createElement(to,{prefix:o.createElement(no,null),placeholder:l.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},qn=Gl,Yl=e=>{const{keyCode:t}=e;t===lr.ENTER&&e.stopPropagation()},Jl=o.forwardRef((e,t)=>o.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:Yl,ref:t},e.children)),Zl=Jl;function gt(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:l}=n;t.push(r),l&&(t=[].concat(ve(t),ve(gt(l))))}),t}function Ql(e){return e.some(t=>{let{children:n}=t;return n})}function kr(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Ir(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:l,searchValue:a,filterSearch:s}=e;return t.map((i,c)=>{const d=String(i.value);if(i.children)return{key:d||c,label:i.text,popupClassName:`${n}-dropdown-submenu`,children:Ir({filters:i.children,prefixCls:n,filteredKeys:r,filterMultiple:l,searchValue:a,filterSearch:s})};const v=l?Bt:or,u={key:i.value!==void 0?d:c,label:o.createElement(o.Fragment,null,o.createElement(v,{checked:r.includes(d)}),o.createElement("span",null,i.text))};return a.trim()?typeof s=="function"?s(a,i)?u:null:kr(a,i.text)?u:null:u})}function qt(e){return e||[]}const ea=e=>{var t,n,r,l;const{tablePrefixCls:a,prefixCls:s,column:i,dropdownPrefixCls:c,columnKey:d,filterOnClose:v,filterMultiple:u,filterMode:m="menu",filterSearch:f=!1,filterState:p,triggerFilter:h,locale:g,children:C,getPopupContainer:b,rootClassName:x}=e,{filterResetToDefaultFilteredValue:E,defaultFilteredValue:R,filterDropdownProps:N={},filterDropdownOpen:k,filterDropdownVisible:W,onFilterDropdownVisibleChange:H,onFilterDropdownOpenChange:_}=i,[K,I]=o.useState(!1),T=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),w=M=>{var L;I(M),(L=N.onOpenChange)===null||L===void 0||L.call(N,M),_==null||_(M),H==null||H(M)},y=(l=(r=(n=N.open)!==null&&n!==void 0?n:k)!==null&&r!==void 0?r:W)!==null&&l!==void 0?l:K,$=p==null?void 0:p.filteredKeys,[O,B]=Ul(qt($)),S=M=>{let{selectedKeys:L}=M;B(L)},X=(M,L)=>{let{node:re,checked:ue}=L;S(u?{selectedKeys:M}:{selectedKeys:ue&&re.key?[re.key]:[]})};o.useEffect(()=>{K&&S({selectedKeys:qt($)})},[$]);const[q,ge]=o.useState([]),ie=M=>{ge(M)},[Ee,xe]=o.useState(""),Pe=M=>{const{value:L}=M.target;xe(L)};o.useEffect(()=>{K||xe("")},[K]);const V=M=>{const L=M!=null&&M.length?M:null;if(L===null&&(!p||!p.filteredKeys)||$t(L,p==null?void 0:p.filteredKeys,!0))return null;h({column:i,key:d,filteredKeys:L})},J=()=>{w(!1),V(O())},be=function(){let{confirm:M,closeDropdown:L}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};M&&V([]),L&&w(!1),xe(""),B(E?(R||[]).map(re=>String(re)):[])},de=function(){let{closeDropdown:M}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};M&&w(!1),V(O())},A=(M,L)=>{L.source==="trigger"&&(M&&$!==void 0&&B(qt($)),w(M),!M&&!i.filterDropdown&&v&&J())},j=se({[`${c}-menu-without-submenu`]:!Ql(i.filters||[])}),P=M=>{if(M.target.checked){const L=gt(i==null?void 0:i.filters).map(re=>String(re));B(L)}else B([])},F=M=>{let{filters:L}=M;return(L||[]).map((re,ue)=>{const ce=String(re.value),he={title:re.text,key:re.value!==void 0?ce:String(ue)};return re.children&&(he.children=F({filters:re.children})),he})},Z=M=>{var L;return Object.assign(Object.assign({},M),{text:M.title,value:M.key,children:((L=M.children)===null||L===void 0?void 0:L.map(re=>Z(re)))||[]})};let te;const{direction:Q,renderEmpty:Ce}=o.useContext(ar);if(typeof i.filterDropdown=="function")te=i.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:M=>S({selectedKeys:M}),selectedKeys:O(),confirm:de,clearFilters:be,filters:i.filters,visible:y,close:()=>{w(!1)}});else if(i.filterDropdown)te=i.filterDropdown;else{const M=O()||[],L=()=>{var ue,ce;const he=(ue=Ce==null?void 0:Ce("Table.filter"))!==null&&ue!==void 0?ue:o.createElement(Fn,{image:Fn.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((i.filters||[]).length===0)return he;if(m==="tree")return o.createElement(o.Fragment,null,o.createElement(qn,{filterSearch:f,value:Ee,onChange:Pe,tablePrefixCls:a,locale:g}),o.createElement("div",{className:`${a}-filter-dropdown-tree`},u?o.createElement(Bt,{checked:M.length===gt(i.filters).length,indeterminate:M.length>0&&M.lengthtypeof f=="function"?f(Ee,Z(fe)):kr(Ee,fe.title):void 0})));const _e=Ir({filters:i.filters||[],filterSearch:f,prefixCls:s,filteredKeys:O(),filterMultiple:u,searchValue:Ee}),Qe=_e.every(fe=>fe===null);return o.createElement(o.Fragment,null,o.createElement(qn,{filterSearch:f,value:Ee,onChange:Pe,tablePrefixCls:a,locale:g}),Qe?he:o.createElement(ro,{selectable:!0,multiple:u,prefixCls:`${c}-menu`,className:j,onSelect:S,onDeselect:S,selectedKeys:M,getPopupContainer:b,openKeys:q,onOpenChange:ie,items:_e}))},re=()=>E?$t((R||[]).map(ue=>String(ue)),M,!0):M.length===0;te=o.createElement(o.Fragment,null,L(),o.createElement("div",{className:`${s}-dropdown-btns`},o.createElement(_n,{type:"link",size:"small",disabled:re(),onClick:()=>be()},g.filterReset),o.createElement(_n,{type:"primary",size:"small",onClick:J},g.filterConfirm)))}i.filterDropdown&&(te=o.createElement(oo,{selectable:void 0},te)),te=o.createElement(Zl,{className:`${s}-dropdown`},te);const Te=ir({trigger:["click"],placement:Q==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let M;return typeof i.filterIcon=="function"?M=i.filterIcon(T):i.filterIcon?M=i.filterIcon:M=o.createElement(lo,null),o.createElement("span",{role:"button",tabIndex:-1,className:se(`${s}-trigger`,{active:T}),onClick:L=>{L.stopPropagation()}},M)})(),getPopupContainer:b},Object.assign(Object.assign({},N),{rootClassName:se(x,N.rootClassName),open:y,onOpenChange:A,dropdownRender:()=>typeof(N==null?void 0:N.dropdownRender)=="function"?N.dropdownRender(te):te}));return o.createElement("div",{className:`${s}-column`},o.createElement("span",{className:`${a}-column-title`},C),o.createElement(rr,Object.assign({},Te)))},tn=(e,t,n)=>{let r=[];return(e||[]).forEach((l,a)=>{var s;const i=Ct(a,n);if(l.filters||"filterDropdown"in l||"onFilter"in l)if("filteredValue"in l){let c=l.filteredValue;"filterDropdown"in l||(c=(s=c==null?void 0:c.map(String))!==null&&s!==void 0?s:c),r.push({column:l,key:at(l,i),filteredKeys:c,forceFiltered:l.filtered})}else r.push({column:l,key:at(l,i),filteredKeys:t&&l.defaultFilteredValue?l.defaultFilteredValue:void 0,forceFiltered:l.filtered});"children"in l&&(r=[].concat(ve(r),ve(tn(l.children,t,i))))}),r};function Tr(e,t,n,r,l,a,s,i,c){return n.map((d,v)=>{const u=Ct(v,i),{filterOnClose:m=!0,filterMultiple:f=!0,filterMode:p,filterSearch:h}=d;let g=d;if(g.filters||g.filterDropdown){const C=at(g,u),b=r.find(x=>{let{key:E}=x;return C===E});g=Object.assign(Object.assign({},g),{title:x=>o.createElement(ea,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:C,filterState:b,filterOnClose:m,filterMultiple:f,filterMode:p,filterSearch:h,triggerFilter:a,locale:l,getPopupContainer:s,rootClassName:c},Ft(d.title,x))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:Tr(e,t,g.children,r,l,a,s,u,c)})),g})}const Un=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:l,column:a}=n;const s=r,{filters:i,filterDropdown:c}=a;if(c)t[s]=l||null;else if(Array.isArray(l)){const d=gt(i);t[s]=d.filter(v=>l.includes(String(v)))}else t[s]=null}),t},nn=(e,t,n)=>t.reduce((l,a)=>{const{column:{onFilter:s,filters:i},filteredKeys:c}=a;return s&&c&&c.length?l.map(d=>Object.assign({},d)).filter(d=>c.some(v=>{const u=gt(i),m=u.findIndex(p=>String(p)===String(v)),f=m!==-1?u[m]:v;return d[n]&&(d[n]=nn(d[n],t,n)),s(f,d)})):l},e),Nr=e=>e.flatMap(t=>"children"in t?[t].concat(ve(Nr(t.children||[]))):[t]),ta=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:l,getPopupContainer:a,locale:s,rootClassName:i}=e;sn();const c=o.useMemo(()=>Nr(r||[]),[r]),[d,v]=o.useState(()=>tn(c,!0)),u=o.useMemo(()=>{const h=tn(c,!1);if(h.length===0)return h;let g=!0;if(h.forEach(C=>{let{filteredKeys:b}=C;b!==void 0&&(g=!1)}),g){const C=(c||[]).map((b,x)=>at(b,Ct(x)));return d.filter(b=>{let{key:x}=b;return C.includes(x)}).map(b=>{const x=c[C.findIndex(E=>E===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),x),forceFiltered:x.filtered})})}return h},[c,d]),m=o.useMemo(()=>Un(u),[u]),f=h=>{const g=u.filter(C=>{let{key:b}=C;return b!==h.key});g.push(h),v(g),l(Un(g),g)};return[h=>Tr(t,n,h,u,s,f,a,void 0,i),u,m]},na=ta;var ra=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const a=e[l];typeof a!="function"&&(n[l]=a)}),n}function la(e,t,n){const r=n&&typeof n=="object"?n:{},{total:l=0}=r,a=ra(r,["total"]),[s,i]=o.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:Pr})),c=ir(s,a,{total:l>0?l:e}),d=Math.ceil((l||e)/c.pageSize);c.current>d&&(c.current=d||1);const v=(m,f)=>{i({current:m??1,pageSize:f||c.pageSize})},u=(m,f)=>{var p;n&&((p=n.onChange)===null||p===void 0||p.call(n,m,f)),v(m,f),t(m,f||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:u}),v]}const Ot="ascend",Ut="descend",Ht=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,Gn=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,aa=(e,t)=>t?e[e.indexOf(t)+1]:e[0],rn=(e,t,n)=>{let r=[];const l=(a,s)=>{r.push({column:a,key:at(a,s),multiplePriority:Ht(a),sortOrder:a.sortOrder})};return(e||[]).forEach((a,s)=>{const i=Ct(s,n);a.children?("sortOrder"in a&&l(a,i),r=[].concat(ve(r),ve(rn(a.children,t,i)))):a.sorter&&("sortOrder"in a?l(a,i):t&&a.defaultSortOrder&&r.push({column:a,key:at(a,i),multiplePriority:Ht(a),sortOrder:a.defaultSortOrder}))}),r},Or=(e,t,n,r,l,a,s,i)=>(t||[]).map((d,v)=>{const u=Ct(v,i);let m=d;if(m.sorter){const f=m.sortDirections||l,p=m.showSorterTooltip===void 0?s:m.showSorterTooltip,h=at(m,u),g=n.find(H=>{let{key:_}=H;return _===h}),C=g?g.sortOrder:null,b=aa(f,C);let x;if(d.sortIcon)x=d.sortIcon({sortOrder:C});else{const H=f.includes(Ot)&&o.createElement(ao,{className:se(`${e}-column-sorter-up`,{active:C===Ot})}),_=f.includes(Ut)&&o.createElement(io,{className:se(`${e}-column-sorter-down`,{active:C===Ut})});x=o.createElement("span",{className:se(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(H&&_)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},H,_))}const{cancelSort:E,triggerAsc:R,triggerDesc:N}=a||{};let k=E;b===Ut?k=N:b===Ot&&(k=R);const W=typeof p=="object"?Object.assign({title:k},p):{title:k};m=Object.assign(Object.assign({},m),{className:se(m.className,{[`${e}-column-sort`]:C}),title:H=>{const _=`${e}-column-sorters`,K=o.createElement("span",{className:`${e}-column-title`},Ft(d.title,H)),I=o.createElement("div",{className:_},K,x);return p?typeof p!="boolean"&&(p==null?void 0:p.target)==="sorter-icon"?o.createElement("div",{className:`${_} ${e}-column-sorters-tooltip-target-sorter`},K,o.createElement(Ln,Object.assign({},W),x)):o.createElement(Ln,Object.assign({},W),I):I},onHeaderCell:H=>{var _;const K=((_=d.onHeaderCell)===null||_===void 0?void 0:_.call(d,H))||{},I=K.onClick,T=K.onKeyDown;K.onClick=$=>{r({column:d,key:h,sortOrder:b,multiplePriority:Ht(d)}),I==null||I($)},K.onKeyDown=$=>{$.keyCode===lr.ENTER&&(r({column:d,key:h,sortOrder:b,multiplePriority:Ht(d)}),T==null||T($))};const w=ql(d.title,{}),y=w==null?void 0:w.toString();return C&&(K["aria-sort"]=C==="ascend"?"ascending":"descending"),K["aria-label"]=y||"",K.className=se(K.className,`${e}-column-has-sorters`),K.tabIndex=0,d.ellipsis&&(K.title=(w??"").toString()),K}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:Or(e,m.children,n,r,l,a,s,u)})),m}),Yn=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Jn=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(Yn);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},Yn(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},on=(e,t,n)=>{const r=t.slice().sort((s,i)=>i.multiplePriority-s.multiplePriority),l=e.slice(),a=r.filter(s=>{let{column:{sorter:i},sortOrder:c}=s;return Gn(i)&&c});return a.length?l.sort((s,i)=>{for(let c=0;c{const i=s[n];return i?Object.assign(Object.assign({},s),{[n]:on(i,t,n)}):s}):l},ia=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:l,showSorterTooltip:a,onSorterChange:s}=e,[i,c]=o.useState(rn(n,!0)),d=(h,g)=>{const C=[];return h.forEach((b,x)=>{const E=Ct(x,g);if(C.push(at(b,E)),Array.isArray(b.children)){const R=d(b.children,E);C.push.apply(C,ve(R))}}),C},v=o.useMemo(()=>{let h=!0;const g=rn(n,!1);if(!g.length){const E=d(n);return i.filter(R=>{let{key:N}=R;return E.includes(N)})}const C=[];function b(E){h?C.push(E):C.push(Object.assign(Object.assign({},E),{sortOrder:null}))}let x=null;return g.forEach(E=>{x===null?(b(E),E.sortOrder&&(E.multiplePriority===!1?h=!1:x=!0)):(x&&E.multiplePriority!==!1||(h=!1),b(E))}),C},[n,i]),u=o.useMemo(()=>{var h,g;const C=v.map(b=>{let{column:x,sortOrder:E}=b;return{column:x,order:E}});return{sortColumns:C,sortColumn:(h=C[0])===null||h===void 0?void 0:h.column,sortOrder:(g=C[0])===null||g===void 0?void 0:g.order}},[v]),m=h=>{let g;h.multiplePriority===!1||!v.length||v[0].multiplePriority===!1?g=[h]:g=[].concat(ve(v.filter(C=>{let{key:b}=C;return b!==h.key})),[h]),c(g),s(Jn(g),g)};return[h=>Or(t,h,v,m,r,l,a),v,u,()=>Jn(v)]},sa=ia,Br=(e,t)=>e.map(r=>{const l=Object.assign({},r);return l.title=Ft(r.title,t),"children"in l&&(l.children=Br(l.children,t)),l}),ca=e=>[o.useCallback(n=>Br(n,e),[e])],da=ca,ua=wr((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),fa=ua,ma=$r((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),pa=ma,va=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:l,tableHeaderBg:a,tablePaddingVertical:s,tablePaddingHorizontal:i,calc:c}=e,d=`${D(n)} ${r} ${l}`,v=(u,m,f)=>({[`&${t}-${u}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${D(c(m).mul(-1).equal())} ${D(c(c(f).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:d,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:d,borderTop:d,[` > ${t}-content, > ${t}-header, @@ -10,7 +10,7 @@ import{bS as wt,cE as lt,r as o,l as we,d5 as er,cF as $t,q as Wr,e7 as Nn,cg as `]:{"> th, > td":{borderInlineEnd:0}}}}}},v("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),v("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:d,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${D(n)} 0 ${D(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:d}}}},ga=va,ha=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},so),{wordBreak:"keep-all",[` &${t}-cell-fix-left-last, &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},xa=ha,ba=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Ca=ba,ya=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:l,paddingXS:a,lineType:s,tableBorderColor:i,tableExpandIconBg:c,tableExpandColumnWidth:d,borderRadius:v,tablePaddingVertical:u,tablePaddingHorizontal:m,tableExpandedRowBg:f,paddingXXS:p,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:C,expandIconScale:b,calc:x}=e,E=`${D(l)} ${s} ${i}`,R=x(p).sub(l).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:d},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},co(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:D(g),background:c,border:E,borderRadius:v,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:C,insetInlineEnd:R,insetInlineStart:R,height:l},"&::after":{top:R,bottom:R,insetInlineStart:C,width:l,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${D(x(u).mul(-1).equal())} ${D(x(m).mul(-1).equal())}`,padding:`${D(u)} ${D(m)}`}}}},Sa=ya,wa=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:a,paddingXXS:s,paddingXS:i,colorText:c,lineWidth:d,lineType:v,tableBorderColor:u,headerIconColor:m,fontSizeSM:f,tablePaddingHorizontal:p,borderRadius:h,motionDurationSlow:g,colorTextDescription:C,colorPrimary:b,tableHeaderFilterActiveBg:x,colorTextDisabled:E,tableFilterDropdownBg:R,tableFilterDropdownHeight:N,controlItemBgHover:k,controlItemBgActive:W,boxShadowSecondary:M,filterDropdownMenuBg:_,calc:K}=e,I=`${n}-dropdown`,T=`${t}-filter-dropdown`,w=`${n}-tree`,y=`${D(d)} ${v} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:K(s).mul(-1).equal(),marginInline:`${D(s)} ${D(K(p).div(2).mul(-1).equal())}`,padding:`0 ${D(s)}`,color:m,fontSize:f,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:C,background:x},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[T]:Object.assign(Object.assign({},sr(e)),{minWidth:l,backgroundColor:R,borderRadius:h,boxShadow:M,overflow:"hidden",[`${I}-menu`]:{maxHeight:N,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:_,"&:empty::after":{display:"block",padding:`${D(i)} 0`,color:E,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${T}-tree`]:{paddingBlock:`${D(i)} 0`,paddingInline:i,[w]:{padding:0},[`${w}-treenode ${w}-node-content-wrapper:hover`]:{backgroundColor:k},[`${w}-treenode-checkbox-checked ${w}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:W}}},[`${T}-search`]:{padding:i,borderBottom:y,"&-input":{input:{minWidth:a},[r]:{color:E}}},[`${T}-checkall`]:{width:"100%",marginBottom:s,marginInlineStart:s},[`${T}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${D(K(i).sub(d).equal())} ${D(i)}`,overflow:"hidden",borderTop:y}})}},{[`${n}-dropdown ${T}, ${T}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:i,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ea=wa,$a=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:l,zIndexTableFixed:a,tableBg:s,zIndexTableSticky:i,calc:c}=e,d=r;return{[`${t}-wrapper`]:{[` + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},xa=ha,ba=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Ca=ba,ya=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:l,paddingXS:a,lineType:s,tableBorderColor:i,tableExpandIconBg:c,tableExpandColumnWidth:d,borderRadius:v,tablePaddingVertical:u,tablePaddingHorizontal:m,tableExpandedRowBg:f,paddingXXS:p,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:C,expandIconScale:b,calc:x}=e,E=`${D(l)} ${s} ${i}`,R=x(p).sub(l).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:d},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},co(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:D(g),background:c,border:E,borderRadius:v,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:C,insetInlineEnd:R,insetInlineStart:R,height:l},"&::after":{top:R,bottom:R,insetInlineStart:C,width:l,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${D(x(u).mul(-1).equal())} ${D(x(m).mul(-1).equal())}`,padding:`${D(u)} ${D(m)}`}}}},Sa=ya,wa=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:a,paddingXXS:s,paddingXS:i,colorText:c,lineWidth:d,lineType:v,tableBorderColor:u,headerIconColor:m,fontSizeSM:f,tablePaddingHorizontal:p,borderRadius:h,motionDurationSlow:g,colorTextDescription:C,colorPrimary:b,tableHeaderFilterActiveBg:x,colorTextDisabled:E,tableFilterDropdownBg:R,tableFilterDropdownHeight:N,controlItemBgHover:k,controlItemBgActive:W,boxShadowSecondary:H,filterDropdownMenuBg:_,calc:K}=e,I=`${n}-dropdown`,T=`${t}-filter-dropdown`,w=`${n}-tree`,y=`${D(d)} ${v} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:K(s).mul(-1).equal(),marginInline:`${D(s)} ${D(K(p).div(2).mul(-1).equal())}`,padding:`0 ${D(s)}`,color:m,fontSize:f,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:C,background:x},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[T]:Object.assign(Object.assign({},sr(e)),{minWidth:l,backgroundColor:R,borderRadius:h,boxShadow:H,overflow:"hidden",[`${I}-menu`]:{maxHeight:N,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:_,"&:empty::after":{display:"block",padding:`${D(i)} 0`,color:E,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${T}-tree`]:{paddingBlock:`${D(i)} 0`,paddingInline:i,[w]:{padding:0},[`${w}-treenode ${w}-node-content-wrapper:hover`]:{backgroundColor:k},[`${w}-treenode-checkbox-checked ${w}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:W}}},[`${T}-search`]:{padding:i,borderBottom:y,"&-input":{input:{minWidth:a},[r]:{color:E}}},[`${T}-checkall`]:{width:"100%",marginBottom:s,marginInlineStart:s},[`${T}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${D(K(i).sub(d).equal())} ${D(i)}`,overflow:"hidden",borderTop:y}})}},{[`${n}-dropdown ${T}, ${T}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:i,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ea=wa,$a=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:l,zIndexTableFixed:a,tableBg:s,zIndexTableSticky:i,calc:c}=e,d=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:a,background:s},[` @@ -34,7 +34,7 @@ import{bS as wt,cE as lt,r as o,l as we,d5 as er,cF as $t,q as Wr,e7 as Nn,cg as table tr th${t}-selection-column, table tr td${t}-selection-column, ${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:p(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:D(p(f).div(4).equal()),[r]:{color:i,fontSize:l,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:v,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},Ma=Ba,Ha=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,l=(a,s,i,c)=>({[`${t}${t}-${a}`]:{fontSize:c,[` + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:p(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:D(p(f).div(4).equal()),[r]:{color:i,fontSize:l,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:v,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},Ha=Ba,Ma=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,l=(a,s,i,c)=>({[`${t}${t}-${a}`]:{fontSize:c,[` ${t}-title, ${t}-footer, ${t}-cell, @@ -43,10 +43,10 @@ import{bS as wt,cE as lt,r as o,l as we,d5 as er,cF as $t,q as Wr,e7 as Nn,cg as ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${D(s)} ${D(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:D(r(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${D(r(s).mul(-1).equal())} ${D(r(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:D(r(s).mul(-1).equal()),marginInline:`${D(r(n).sub(i).equal())} ${D(r(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:D(r(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},l("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),l("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},_a=Ha,Fa=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:l,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + `]:{padding:`${D(s)} ${D(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:D(r(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${D(r(s).mul(-1).equal())} ${D(r(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:D(r(s).mul(-1).equal()),marginInline:`${D(r(n).sub(i).equal())} ${D(r(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:D(r(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},l("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),l("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},_a=Ma,Fa=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:l,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},La=Fa,za=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollThumbSize:a,tableScrollBg:s,zIndexTableSticky:i,stickyScrollBarBorderRadius:c,lineWidth:d,lineType:v,tableBorderColor:u}=e,m=`${D(d)} ${v} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:i,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${D(a)} !important`,zIndex:i,display:"flex",alignItems:"center",background:s,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},Ka=za,Da=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:l}=e,a=`${D(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${D(l(n).mul(-1).equal())} 0 ${r}`}}}},Jn=Da,ja=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:l,tableBorderColor:a,calc:s}=e,i=`${D(r)} ${l} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},La=Fa,za=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollThumbSize:a,tableScrollBg:s,zIndexTableSticky:i,stickyScrollBarBorderRadius:c,lineWidth:d,lineType:v,tableBorderColor:u}=e,m=`${D(d)} ${v} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:i,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${D(a)} !important`,zIndex:i,display:"flex",alignItems:"center",background:s,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},Ka=za,Da=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:l}=e,a=`${D(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${D(l(n).mul(-1).equal())} 0 ${r}`}}}},Zn=Da,ja=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:l,tableBorderColor:a,calc:s}=e,i=`${D(r)} ${l} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` & > ${t}-row, & > div:not(${t}-row) > ${t}-row `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:i,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${D(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:i,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:i,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:s(r).mul(-1).equal(),borderInlineStart:i}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:i,borderBottom:i}}}}}},Aa=ja,Wa=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:l,tableExpandColumnWidth:a,lineWidth:s,lineType:i,tableBorderColor:c,tableFontSize:d,tableBg:v,tableRadius:u,tableHeaderTextColor:m,motionDurationMid:f,tableHeaderBg:p,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:C,calc:b}=e,x=`${D(s)} ${i} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},mo()),{[t]:Object.assign(Object.assign({},sr(e)),{fontSize:d,background:v,borderRadius:`${D(u)} ${D(u)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${D(u)} ${D(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` @@ -60,4 +60,4 @@ import{bS as wt,cE as lt,r as o,l as we,d5 as er,cF as $t,q as Wr,e7 as Nn,cg as > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:D(b(r).mul(-1).equal()),marginInline:`${D(b(a).sub(l).equal())} - ${D(b(l).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:p,borderBottom:x,transition:`background ${f} ease`}}},[`${t}-footer`]:{padding:`${D(r)} ${D(l)}`,color:g,background:C}})}},Va=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:l,colorFillContent:a,controlItemBgActive:s,controlItemBgActiveHover:i,padding:c,paddingSM:d,paddingXS:v,colorBorderSecondary:u,borderRadiusLG:m,controlHeight:f,colorTextPlaceholder:p,fontSize:h,fontSizeSM:g,lineHeight:C,lineWidth:b,colorIcon:x,colorIconHover:E,opacityLoading:R,controlInteractiveSize:N}=e,k=new St(l).onBackground(n).toHexString(),W=new St(a).onBackground(n).toHexString(),M=new St(t).onBackground(n).toHexString(),_=new St(x),K=new St(E),I=N/2-b,T=I*2+b*3;return{headerBg:M,headerColor:r,headerSortActiveBg:k,headerSortHoverBg:W,bodySortBg:M,rowHoverBg:M,rowSelectedBg:s,rowSelectedHoverBg:i,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:d,cellPaddingInlineMD:v,cellPaddingBlockSM:v,cellPaddingInlineSM:v,borderColor:u,headerBorderRadius:m,footerBg:M,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:u,fixedHeaderSortActiveBg:k,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:f,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*C-b*3)/2-Math.ceil((g*1.4-b*3)/2),headerIconColor:_.clone().setA(_.a*R).toRgbString(),headerIconHoverColor:K.clone().setA(K.a*R).toRgbString(),expandIconHalfInner:I,expandIconSize:T,expandIconScale:N/T}},Qn=2,Xa=uo("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:l,headerBg:a,headerColor:s,headerSortActiveBg:i,headerSortHoverBg:c,bodySortBg:d,rowHoverBg:v,rowSelectedBg:u,rowSelectedHoverBg:m,rowExpandedBg:f,cellPaddingBlock:p,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:C,cellPaddingBlockSM:b,cellPaddingInlineSM:x,borderColor:E,footerBg:R,footerColor:N,headerBorderRadius:k,cellFontSize:W,cellFontSizeMD:M,cellFontSizeSM:_,headerSplitColor:K,fixedHeaderSortActiveBg:I,headerFilterHoverBg:T,filterDropdownBg:w,expandIconBg:y,selectionColumnWidth:$,stickyScrollBarBg:O,calc:B}=e,S=fo(e,{tableFontSize:W,tableBg:r,tableRadius:k,tablePaddingVertical:p,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:C,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:x,tableBorderColor:E,tableHeaderTextColor:s,tableHeaderBg:a,tableFooterTextColor:N,tableFooterBg:R,tableHeaderCellSplitColor:K,tableHeaderSortBg:i,tableHeaderSortHoverBg:c,tableBodySortBg:d,tableFixedHeaderSortActiveBg:I,tableHeaderFilterActiveBg:T,tableFilterDropdownBg:w,tableRowHoverBg:v,tableSelectedRowBg:u,tableSelectedRowHoverBg:m,zIndexTableFixed:Qn,zIndexTableSticky:B(Qn).add(1).equal({unit:!1}),tableFontSizeMiddle:M,tableFontSizeSmall:_,tableSelectionColumnWidth:$,tableExpandIconBg:y,tableExpandColumnWidth:B(l).add(B(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:O,tableScrollThumbBgHover:t,tableScrollBg:n});return[Wa(S),Ia(S),Jn(S),La(S),Ea(S),ga(S),Na(S),Sa(S),Jn(S),Ca(S),Ma(S),Ra(S),Ka(S),xa(S),_a(S),Oa(S),Aa(S)]},Va,{unitless:{expandIconScale:!0}}),qa=[],Ua=(e,t)=>{var n,r;const{prefixCls:l,className:a,rootClassName:s,style:i,size:c,bordered:d,dropdownPrefixCls:v,dataSource:u,pagination:m,rowSelection:f,rowKey:p="key",rowClassName:h,columns:g,children:C,childrenColumnName:b,onChange:x,getPopupContainer:E,loading:R,expandIcon:N,expandable:k,expandedRowRender:W,expandIconColumnIndex:M,indentSize:_,scroll:K,sortDirections:I,locale:T,showSorterTooltip:w={target:"full-header"},virtual:y}=e;sn();const $=o.useMemo(()=>g||fn(C),[g,C]),O=o.useMemo(()=>$.some(U=>U.responsive),[$]),B=po(O),S=o.useMemo(()=>{const U=new Set(Object.keys(B).filter(G=>B[G]));return $.filter(G=>!G.responsive||G.responsive.some(Se=>U.has(Se)))},[$,B]),X=vo(e,["className","style","columns"]),{locale:q=yo,direction:ge,table:ie,renderEmpty:Ee,getPrefixCls:xe,getPopupContainer:Pe}=o.useContext(ar),V=go(c),Z=Object.assign(Object.assign({},q.Table),T),be=u||qa,de=xe("table",l),A=xe("dropdown",v),[,j]=ho(),P=xo(de),[F,J,te]=Xa(de,P),Q=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:M},k),{expandIcon:(n=k==null?void 0:k.expandIcon)!==null&&n!==void 0?n:(r=ie==null?void 0:ie.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Ce="children"}=Q,Ue=o.useMemo(()=>be.some(U=>U==null?void 0:U[Ce])?"nest":W||k!=null&&k.expandedRowRender?"row":null,[be]),Te={body:o.useRef(null)},H=Xl(de),L=o.useRef(null),re=o.useRef(null);Wl(t,()=>Object.assign(Object.assign({},re.current),{nativeElement:L.current}));const ue=o.useMemo(()=>typeof p=="function"?p:U=>U==null?void 0:U[p],[p]),[ce]=$o(be,Ce,ue),he={},_e=function(U,G){let Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ne,Le,qe,Ge;const ze=Object.assign(Object.assign({},he),U);Se&&((Ne=he.resetPagination)===null||Ne===void 0||Ne.call(he),!((Le=ze.pagination)===null||Le===void 0)&&Le.current&&(ze.pagination.current=1),m&&((qe=m.onChange)===null||qe===void 0||qe.call(m,1,(Ge=ze.pagination)===null||Ge===void 0?void 0:Ge.pageSize))),K&&K.scrollToFirstRowOnChange!==!1&&Te.body.current&&To(0,{getContainer:()=>Te.body.current}),x==null||x(ze.pagination,ze.filters,ze.sorter,{currentDataSource:nn(on(be,ze.sorterStates,Ce),ze.filterStates,Ce),action:G})},Qe=(U,G)=>{_e({sorter:U,sorterStates:G},"sort",!1)},[fe,oe,me,pe]=sa({prefixCls:de,mergedColumns:S,onSorterChange:Qe,sortDirections:I||["ascend","descend"],tableLocale:Z,showSorterTooltip:w}),Ie=o.useMemo(()=>on(be,oe,Ce),[be,oe]);he.sorter=pe(),he.sorterStates=oe;const Re=(U,G)=>{_e({filters:U,filterStates:G},"filter",!0)},[ne,$e,ae]=na({prefixCls:de,locale:Z,dropdownPrefixCls:A,mergedColumns:S,onFilterChange:Re,getPopupContainer:E||Pe,rootClassName:se(s,P)}),ke=nn(Ie,$e,Ce);he.filters=ae,he.filterStates=$e;const We=o.useMemo(()=>{const U={};return Object.keys(ae).forEach(G=>{ae[G]!==null&&(U[G]=ae[G])}),Object.assign(Object.assign({},me),{filters:U})},[me,ae]),[Ke]=da(We),nt=(U,G)=>{_e({pagination:Object.assign(Object.assign({},he.pagination),{current:U,pageSize:G})},"paginate")},[ye,ft]=la(ke.length,nt,m);he.pagination=m===!1?{}:oa(ye,m),he.resetPagination=ft;const mt=o.useMemo(()=>{if(m===!1||!ye.pageSize)return ke;const{current:U=1,total:G,pageSize:Se=Pr}=ye;return ke.lengthSe?ke.slice((U-1)*Se,U*Se):ke:ke.slice((U-1)*Se,U*Se)},[!!m,ke,ye==null?void 0:ye.current,ye==null?void 0:ye.pageSize,ye==null?void 0:ye.total]),[De,Ze]=jl({prefixCls:de,data:ke,pageData:mt,getRowKey:ue,getRecordByKey:ce,expandType:Ue,childrenColumnName:Ce,locale:Z,getPopupContainer:E||Pe},f),Xe=(U,G,Se)=>{let Ne;return typeof h=="function"?Ne=se(h(U,G,Se)):Ne=se(h),se({[`${de}-row-selected`]:Ze.has(ue(U,G))},Ne)};Q.__PARENT_RENDER_ICON__=Q.expandIcon,Q.expandIcon=Q.expandIcon||N||Vl(Z),Ue==="nest"&&Q.expandIconColumnIndex===void 0?Q.expandIconColumnIndex=f?1:0:Q.expandIconColumnIndex>0&&f&&(Q.expandIconColumnIndex-=1),typeof Q.indentSize!="number"&&(Q.indentSize=typeof _=="number"?_:15);const je=o.useCallback(U=>Ke(De(ne(fe(U)))),[fe,ne,De]);let Fe,Ve;if(m!==!1&&(ye!=null&&ye.total)){let U;ye.size?U=ye.size:U=V==="small"||V==="middle"?"small":void 0;const G=Le=>o.createElement(So,Object.assign({},ye,{className:se(`${de}-pagination ${de}-pagination-${Le}`,ye.className),size:U})),Se=ge==="rtl"?"left":"right",{position:Ne}=ye;if(Ne!==null&&Array.isArray(Ne)){const Le=Ne.find(ze=>ze.includes("top")),qe=Ne.find(ze=>ze.includes("bottom")),Ge=Ne.every(ze=>`${ze}`=="none");!Le&&!qe&&!Ge&&(Ve=G(Se)),Le&&(Fe=G(Le.toLowerCase().replace("top",""))),qe&&(Ve=G(qe.toLowerCase().replace("bottom","")))}else Ve=G(Se)}let it;typeof R=="boolean"?it={spinning:R}:typeof R=="object"&&(it=Object.assign({spinning:!0},R));const rt=se(te,P,`${de}-wrapper`,ie==null?void 0:ie.className,{[`${de}-wrapper-rtl`]:ge==="rtl"},a,s,J),Je=Object.assign(Object.assign({},ie==null?void 0:ie.style),i),Lt=typeof(T==null?void 0:T.emptyText)<"u"?T.emptyText:(Ee==null?void 0:Ee("Table"))||o.createElement(bo,{componentName:"Table"}),zt=y?pa:fa,kt={},Kt=o.useMemo(()=>{const{fontSize:U,lineHeight:G,lineWidth:Se,padding:Ne,paddingXS:Le,paddingSM:qe}=j,Ge=Math.floor(U*G);switch(V){case"middle":return qe*2+Ge+Se;case"small":return Le*2+Ge+Se;default:return Ne*2+Ge+Se}},[j,V]);return y&&(kt.listItemHeight=Kt),F(o.createElement("div",{ref:L,className:rt,style:Je},o.createElement(Co,Object.assign({spinning:!1},it),Fe,o.createElement(zt,Object.assign({},kt,X,{ref:re,columns:S,direction:ge,expandable:Q,prefixCls:de,className:se({[`${de}-middle`]:V==="middle",[`${de}-small`]:V==="small",[`${de}-bordered`]:d,[`${de}-empty`]:be.length===0},te,P,J),data:mt,rowKey:ue,rowClassName:Xe,emptyText:Lt,internalHooks:Rt,internalRefs:Te,transformColumns:je,getContainerWidth:H})),Ve)))},Ga=o.forwardRef(Ua),Ya=(e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(Ga,Object.assign({},e,{ref:t,_renderTimes:n.current}))},tt=o.forwardRef(Ya);tt.SELECTION_COLUMN=ot;tt.EXPAND_COLUMN=et;tt.SELECTION_ALL=Jt;tt.SELECTION_INVERT=Qt;tt.SELECTION_NONE=en;tt.Column=Ll;tt.ColumnGroup=Kl;tt.Summary=fr;const ti=tt;export{ti as T,jl as a,la as u}; + ${D(b(l).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:p,borderBottom:x,transition:`background ${f} ease`}}},[`${t}-footer`]:{padding:`${D(r)} ${D(l)}`,color:g,background:C}})}},Va=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:l,colorFillContent:a,controlItemBgActive:s,controlItemBgActiveHover:i,padding:c,paddingSM:d,paddingXS:v,colorBorderSecondary:u,borderRadiusLG:m,controlHeight:f,colorTextPlaceholder:p,fontSize:h,fontSizeSM:g,lineHeight:C,lineWidth:b,colorIcon:x,colorIconHover:E,opacityLoading:R,controlInteractiveSize:N}=e,k=new St(l).onBackground(n).toHexString(),W=new St(a).onBackground(n).toHexString(),H=new St(t).onBackground(n).toHexString(),_=new St(x),K=new St(E),I=N/2-b,T=I*2+b*3;return{headerBg:H,headerColor:r,headerSortActiveBg:k,headerSortHoverBg:W,bodySortBg:H,rowHoverBg:H,rowSelectedBg:s,rowSelectedHoverBg:i,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:d,cellPaddingInlineMD:v,cellPaddingBlockSM:v,cellPaddingInlineSM:v,borderColor:u,headerBorderRadius:m,footerBg:H,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:u,fixedHeaderSortActiveBg:k,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:f,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*C-b*3)/2-Math.ceil((g*1.4-b*3)/2),headerIconColor:_.clone().setA(_.a*R).toRgbString(),headerIconHoverColor:K.clone().setA(K.a*R).toRgbString(),expandIconHalfInner:I,expandIconSize:T,expandIconScale:N/T}},Qn=2,Xa=uo("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:l,headerBg:a,headerColor:s,headerSortActiveBg:i,headerSortHoverBg:c,bodySortBg:d,rowHoverBg:v,rowSelectedBg:u,rowSelectedHoverBg:m,rowExpandedBg:f,cellPaddingBlock:p,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:C,cellPaddingBlockSM:b,cellPaddingInlineSM:x,borderColor:E,footerBg:R,footerColor:N,headerBorderRadius:k,cellFontSize:W,cellFontSizeMD:H,cellFontSizeSM:_,headerSplitColor:K,fixedHeaderSortActiveBg:I,headerFilterHoverBg:T,filterDropdownBg:w,expandIconBg:y,selectionColumnWidth:$,stickyScrollBarBg:O,calc:B}=e,S=fo(e,{tableFontSize:W,tableBg:r,tableRadius:k,tablePaddingVertical:p,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:C,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:x,tableBorderColor:E,tableHeaderTextColor:s,tableHeaderBg:a,tableFooterTextColor:N,tableFooterBg:R,tableHeaderCellSplitColor:K,tableHeaderSortBg:i,tableHeaderSortHoverBg:c,tableBodySortBg:d,tableFixedHeaderSortActiveBg:I,tableHeaderFilterActiveBg:T,tableFilterDropdownBg:w,tableRowHoverBg:v,tableSelectedRowBg:u,tableSelectedRowHoverBg:m,zIndexTableFixed:Qn,zIndexTableSticky:B(Qn).add(1).equal({unit:!1}),tableFontSizeMiddle:H,tableFontSizeSmall:_,tableSelectionColumnWidth:$,tableExpandIconBg:y,tableExpandColumnWidth:B(l).add(B(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:O,tableScrollThumbBgHover:t,tableScrollBg:n});return[Wa(S),Ia(S),Zn(S),La(S),Ea(S),ga(S),Na(S),Sa(S),Zn(S),Ca(S),Ha(S),Ra(S),Ka(S),xa(S),_a(S),Oa(S),Aa(S)]},Va,{unitless:{expandIconScale:!0}}),qa=[],Ua=(e,t)=>{var n,r;const{prefixCls:l,className:a,rootClassName:s,style:i,size:c,bordered:d,dropdownPrefixCls:v,dataSource:u,pagination:m,rowSelection:f,rowKey:p="key",rowClassName:h,columns:g,children:C,childrenColumnName:b,onChange:x,getPopupContainer:E,loading:R,expandIcon:N,expandable:k,expandedRowRender:W,expandIconColumnIndex:H,indentSize:_,scroll:K,sortDirections:I,locale:T,showSorterTooltip:w={target:"full-header"},virtual:y}=e;sn();const $=o.useMemo(()=>g||fn(C),[g,C]),O=o.useMemo(()=>$.some(U=>U.responsive),[$]),B=po(O),S=o.useMemo(()=>{const U=new Set(Object.keys(B).filter(G=>B[G]));return $.filter(G=>!G.responsive||G.responsive.some(Se=>U.has(Se)))},[$,B]),X=vo(e,["className","style","columns"]),{locale:q=yo,direction:ge,table:ie,renderEmpty:Ee,getPrefixCls:xe,getPopupContainer:Pe}=o.useContext(ar),V=go(c),J=Object.assign(Object.assign({},q.Table),T),be=u||qa,de=xe("table",l),A=xe("dropdown",v),[,j]=ho(),P=xo(de),[F,Z,te]=Xa(de,P),Q=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:H},k),{expandIcon:(n=k==null?void 0:k.expandIcon)!==null&&n!==void 0?n:(r=ie==null?void 0:ie.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Ce="children"}=Q,Ue=o.useMemo(()=>be.some(U=>U==null?void 0:U[Ce])?"nest":W||k!=null&&k.expandedRowRender?"row":null,[be]),Te={body:o.useRef(null)},M=Xl(de),L=o.useRef(null),re=o.useRef(null);Wl(t,()=>Object.assign(Object.assign({},re.current),{nativeElement:L.current}));const ue=o.useMemo(()=>typeof p=="function"?p:U=>U==null?void 0:U[p],[p]),[ce]=$o(be,Ce,ue),he={},_e=function(U,G){let Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ne,Le,qe,Ge;const ze=Object.assign(Object.assign({},he),U);Se&&((Ne=he.resetPagination)===null||Ne===void 0||Ne.call(he),!((Le=ze.pagination)===null||Le===void 0)&&Le.current&&(ze.pagination.current=1),m&&((qe=m.onChange)===null||qe===void 0||qe.call(m,1,(Ge=ze.pagination)===null||Ge===void 0?void 0:Ge.pageSize))),K&&K.scrollToFirstRowOnChange!==!1&&Te.body.current&&To(0,{getContainer:()=>Te.body.current}),x==null||x(ze.pagination,ze.filters,ze.sorter,{currentDataSource:nn(on(be,ze.sorterStates,Ce),ze.filterStates,Ce),action:G})},Qe=(U,G)=>{_e({sorter:U,sorterStates:G},"sort",!1)},[fe,oe,me,pe]=sa({prefixCls:de,mergedColumns:S,onSorterChange:Qe,sortDirections:I||["ascend","descend"],tableLocale:J,showSorterTooltip:w}),Ie=o.useMemo(()=>on(be,oe,Ce),[be,oe]);he.sorter=pe(),he.sorterStates=oe;const Re=(U,G)=>{_e({filters:U,filterStates:G},"filter",!0)},[ne,$e,ae]=na({prefixCls:de,locale:J,dropdownPrefixCls:A,mergedColumns:S,onFilterChange:Re,getPopupContainer:E||Pe,rootClassName:se(s,P)}),ke=nn(Ie,$e,Ce);he.filters=ae,he.filterStates=$e;const We=o.useMemo(()=>{const U={};return Object.keys(ae).forEach(G=>{ae[G]!==null&&(U[G]=ae[G])}),Object.assign(Object.assign({},me),{filters:U})},[me,ae]),[Ke]=da(We),nt=(U,G)=>{_e({pagination:Object.assign(Object.assign({},he.pagination),{current:U,pageSize:G})},"paginate")},[ye,ft]=la(ke.length,nt,m);he.pagination=m===!1?{}:oa(ye,m),he.resetPagination=ft;const mt=o.useMemo(()=>{if(m===!1||!ye.pageSize)return ke;const{current:U=1,total:G,pageSize:Se=Pr}=ye;return ke.lengthSe?ke.slice((U-1)*Se,U*Se):ke:ke.slice((U-1)*Se,U*Se)},[!!m,ke,ye==null?void 0:ye.current,ye==null?void 0:ye.pageSize,ye==null?void 0:ye.total]),[De,Je]=jl({prefixCls:de,data:ke,pageData:mt,getRowKey:ue,getRecordByKey:ce,expandType:Ue,childrenColumnName:Ce,locale:J,getPopupContainer:E||Pe},f),Xe=(U,G,Se)=>{let Ne;return typeof h=="function"?Ne=se(h(U,G,Se)):Ne=se(h),se({[`${de}-row-selected`]:Je.has(ue(U,G))},Ne)};Q.__PARENT_RENDER_ICON__=Q.expandIcon,Q.expandIcon=Q.expandIcon||N||Vl(J),Ue==="nest"&&Q.expandIconColumnIndex===void 0?Q.expandIconColumnIndex=f?1:0:Q.expandIconColumnIndex>0&&f&&(Q.expandIconColumnIndex-=1),typeof Q.indentSize!="number"&&(Q.indentSize=typeof _=="number"?_:15);const je=o.useCallback(U=>Ke(De(ne(fe(U)))),[fe,ne,De]);let Fe,Ve;if(m!==!1&&(ye!=null&&ye.total)){let U;ye.size?U=ye.size:U=V==="small"||V==="middle"?"small":void 0;const G=Le=>o.createElement(So,Object.assign({},ye,{className:se(`${de}-pagination ${de}-pagination-${Le}`,ye.className),size:U})),Se=ge==="rtl"?"left":"right",{position:Ne}=ye;if(Ne!==null&&Array.isArray(Ne)){const Le=Ne.find(ze=>ze.includes("top")),qe=Ne.find(ze=>ze.includes("bottom")),Ge=Ne.every(ze=>`${ze}`=="none");!Le&&!qe&&!Ge&&(Ve=G(Se)),Le&&(Fe=G(Le.toLowerCase().replace("top",""))),qe&&(Ve=G(qe.toLowerCase().replace("bottom","")))}else Ve=G(Se)}let it;typeof R=="boolean"?it={spinning:R}:typeof R=="object"&&(it=Object.assign({spinning:!0},R));const rt=se(te,P,`${de}-wrapper`,ie==null?void 0:ie.className,{[`${de}-wrapper-rtl`]:ge==="rtl"},a,s,Z),Ze=Object.assign(Object.assign({},ie==null?void 0:ie.style),i),Lt=typeof(T==null?void 0:T.emptyText)<"u"?T.emptyText:(Ee==null?void 0:Ee("Table"))||o.createElement(bo,{componentName:"Table"}),zt=y?pa:fa,kt={},Kt=o.useMemo(()=>{const{fontSize:U,lineHeight:G,lineWidth:Se,padding:Ne,paddingXS:Le,paddingSM:qe}=j,Ge=Math.floor(U*G);switch(V){case"middle":return qe*2+Ge+Se;case"small":return Le*2+Ge+Se;default:return Ne*2+Ge+Se}},[j,V]);return y&&(kt.listItemHeight=Kt),F(o.createElement("div",{ref:L,className:rt,style:Ze},o.createElement(Co,Object.assign({spinning:!1},it),Fe,o.createElement(zt,Object.assign({},kt,X,{ref:re,columns:S,direction:ge,expandable:Q,prefixCls:de,className:se({[`${de}-middle`]:V==="middle",[`${de}-small`]:V==="small",[`${de}-bordered`]:d,[`${de}-empty`]:be.length===0},te,P,Z),data:mt,rowKey:ue,rowClassName:Xe,emptyText:Lt,internalHooks:Rt,internalRefs:Te,transformColumns:je,getContainerWidth:M})),Ve)))},Ga=o.forwardRef(Ua),Ya=(e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(Ga,Object.assign({},e,{ref:t,_renderTimes:n.current}))},tt=o.forwardRef(Ya);tt.SELECTION_COLUMN=ot;tt.EXPAND_COLUMN=et;tt.SELECTION_ALL=Zt;tt.SELECTION_INVERT=Qt;tt.SELECTION_NONE=en;tt.Column=Ll;tt.ColumnGroup=Kl;tt.Summary=fr;const ti=tt;export{ti as T,jl as a,la as u}; diff --git a/web/dist/assets/Table-1cf08bb2.js b/web/dist/assets/Table-1cf08bb2.js new file mode 100644 index 0000000000000000000000000000000000000000..e78fddd9dbebe9db3ddbacd85207881de6964daf --- /dev/null +++ b/web/dist/assets/Table-1cf08bb2.js @@ -0,0 +1 @@ +import{cq as wn,dr as Pt,j as d,aH as Mt,_ as u,b5 as Ie,ds as Nt,dt as Zn,du as en,dv as nn,dw as Oe,X as Yn,dx as vn,dy as et,dz as Xe,dA as mn,dB as nt,dC as jt,dD as Ft,dE as Bn,dF as Et,dG as Ln,dH as Kt,dI as un,W as An,bP as we,E as ye,F as ie,b as S,w as de,x as be,dJ as On,v as $n,b2 as tn,k as R,cZ as Bt,K as Re,C as $e,a0 as Rn,bC as Ue,b3 as Se,bb as Fe,e as tt,f as rt,i as at,l as xe,U as lt,h as ot,R as fe,L as Ne,aU as Lt,aK as At,T as Ee,dK as Ot,bk as je,O as _e,s as Ke,dL as $t,dM as kt,dN as Dt,ae as Qe,cm as it,a8 as ut,ag as zt,bl as Je,ad as _t,cp as Ze,bD as Ut,dO as qt,b6 as Wt,dP as Ht,dQ as Vt,cJ as Gt,bi as Jt,bN as sn,z as kn,V as Xt,dR as gn,G as st,dS as Qt,P as dt,H as Zt,J as hn,dT as Yt,dU as er,ak as nr,N as Ve,bM as tr,dV as rr}from"./umi-5f6aeac9.js";import{T as Ae}from"./Table-1c2e5828.js";import{P as ar}from"./ProCard-a8f5c5a9.js";import"./index-13cae3f4.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import{E as lr}from"./index-9fe95bc6.js";import{a as pn,I as or,g as ir,u as ur,r as sr,e as dr}from"./index-98c3b3d6.js";import{B as cr}from"./index-cc6b0338.js";import{T as fr}from"./index-0c4a636b.js";import{T as vr}from"./index-25e4c7e3.js";import{o as mr}from"./index-6a3ca2c0.js";var ct=function(e){var r=wn(Pt(),"4.24.0")>-1?{menu:e}:{overlay:d.jsx(Mt,u({},e))};return Ie(r)},gr=function(e){var r={};return Object.keys(e||{}).forEach(function(t){var l;Array.isArray(e[t])&&((l=e[t])===null||l===void 0?void 0:l.length)===0||e[t]!==void 0&&(r[t]=e[t])}),r},hr=Nt(Object.keys,Object);const pr=hr;var yr=Object.prototype,br=yr.hasOwnProperty;function ft(n){if(!Zn(n))return pr(n);var e=[];for(var r in Object(n))br.call(n,r)&&r!="constructor"&&e.push(r);return e}var Sr=en(nn,"DataView");const yn=Sr;var Cr=en(nn,"Promise");const bn=Cr;var xr=en(nn,"Set");const Sn=xr;var wr=en(nn,"WeakMap");const Cn=wr;var Dn="[object Map]",Rr="[object Object]",zn="[object Promise]",_n="[object Set]",Un="[object WeakMap]",qn="[object DataView]",Tr=Oe(yn),Ir=Oe(vn),Pr=Oe(bn),Mr=Oe(Sn),Nr=Oe(Cn),Me=Yn;(yn&&Me(new yn(new ArrayBuffer(1)))!=qn||vn&&Me(new vn)!=Dn||bn&&Me(bn.resolve())!=zn||Sn&&Me(new Sn)!=_n||Cn&&Me(new Cn)!=Un)&&(Me=function(n){var e=Yn(n),r=e==Rr?n.constructor:void 0,t=r?Oe(r):"";if(t)switch(t){case Tr:return qn;case Ir:return Dn;case Pr:return zn;case Mr:return _n;case Nr:return Un}return e});const xn=Me;var jr="[object Map]",Fr="[object Set]",Er=Object.prototype,Kr=Er.hasOwnProperty;function Br(n){if(n==null)return!0;if(et(n)&&(Xe(n)||typeof n=="string"||typeof n.splice=="function"||mn(n)||nt(n)||jt(n)))return!n.length;var e=xn(n);if(e==jr||e==Fr)return!n.size;if(Zn(n))return!ft(n).length;for(var r in n)if(Kr.call(n,r))return!1;return!0}var Lr="__lodash_hash_undefined__";function Ar(n){return this.__data__.set(n,Lr),this}function Or(n){return this.__data__.has(n)}function Ye(n){var e=-1,r=n==null?0:n.length;for(this.__data__=new Ft;++eo))return!1;var f=i.get(n),g=i.get(e);if(f&&g)return f==e&&g==n;var c=-1,p=!0,y=r&zr?new Ye:void 0;for(i.set(n,e),i.set(e,n);++c0&&arguments[0]!==void 0?arguments[0]:{},o=S.useRef(),s=S.useRef(null),f=S.useRef(),g=S.useRef(),c=S.useState(""),p=de(c,2),y=p[0],v=p[1],w=S.useRef([]),x=be(function(){return a.size||a.defaultSize||"middle"},{value:a.size,onChange:a.onSizeChange}),C=de(x,2),m=C[0],E=C[1],K=S.useMemo(function(){var h,b;if(a!=null&&(h=a.columnsState)!==null&&h!==void 0&&h.defaultValue)return a.columnsState.defaultValue;var k={};return(b=a.columns)===null||b===void 0||b.forEach(function(I,A){var B=I.key,L=I.dataIndex,O=I.fixed,_=I.disable,q=ke(B??L,A);q&&(k[q]={show:!0,fixed:O,disable:_})}),k},[a.columns]),D=be(function(){var h,b,k=a.columnsState||{},I=k.persistenceType,A=k.persistenceKey;if(A&&I&&typeof window<"u"){var B=window[I];try{var L=B==null?void 0:B.getItem(A);if(L){var O;if(a!=null&&(O=a.columnsState)!==null&&O!==void 0&&O.defaultValue){var _;return On({},a==null||(_=a.columnsState)===null||_===void 0?void 0:_.defaultValue,JSON.parse(L))}return JSON.parse(L)}}catch(q){console.warn(q)}}return a.columnsStateMap||((h=a.columnsState)===null||h===void 0?void 0:h.value)||((b=a.columnsState)===null||b===void 0?void 0:b.defaultValue)||K},{value:((n=a.columnsState)===null||n===void 0?void 0:n.value)||a.columnsStateMap,onChange:((e=a.columnsState)===null||e===void 0?void 0:e.onChange)||a.onColumnsStateChange}),G=de(D,2),M=G[0],N=G[1];S.useEffect(function(){var h=a.columnsState||{},b=h.persistenceType,k=h.persistenceKey;if(k&&b&&typeof window<"u"){var I=window[b];try{var A=I==null?void 0:I.getItem(k);if(A){var B;if(a!=null&&(B=a.columnsState)!==null&&B!==void 0&&B.defaultValue){var L;N(On({},a==null||(L=a.columnsState)===null||L===void 0?void 0:L.defaultValue,JSON.parse(A)))}else N(JSON.parse(A))}else N(K)}catch(O){console.warn(O)}}},[(r=a.columnsState)===null||r===void 0?void 0:r.persistenceKey,(t=a.columnsState)===null||t===void 0?void 0:t.persistenceType,K]),$n(!a.columnsStateMap,"columnsStateMap已经废弃,请使用 columnsState.value 替换"),$n(!a.columnsStateMap,"columnsStateMap has been discarded, please use columnsState.value replacement");var j=S.useCallback(function(){var h=a.columnsState||{},b=h.persistenceType,k=h.persistenceKey;if(!(!k||!b||typeof window>"u")){var I=window[b];try{I==null||I.removeItem(k)}catch(A){console.warn(A)}}},[a.columnsState]);S.useEffect(function(){var h,b;if(!(!((h=a.columnsState)!==null&&h!==void 0&&h.persistenceKey)||!((b=a.columnsState)!==null&&b!==void 0&&b.persistenceType))&&!(typeof window>"u")){var k=a.columnsState,I=k.persistenceType,A=k.persistenceKey,B=window[I];try{B==null||B.setItem(A,JSON.stringify(M))}catch(L){console.warn(L),j()}}},[(l=a.columnsState)===null||l===void 0?void 0:l.persistenceKey,M,(i=a.columnsState)===null||i===void 0?void 0:i.persistenceType]);var P={action:o.current,setAction:function(b){o.current=b},sortKeyColumns:w.current,setSortKeyColumns:function(b){w.current=b},propsRef:g,columnsMap:M,keyWords:y,setKeyWords:function(b){return v(b)},setTableSize:E,tableSize:m,prefixName:f.current,setPrefixName:function(b){f.current=b},setColumnsMap:N,columns:a.columns,rootDomRef:s,clearPersistenceStorage:j,defaultColumnKeyMap:K};return Object.defineProperty(P,"prefixName",{get:function(){return f.current}}),Object.defineProperty(P,"sortKeyColumns",{get:function(){return w.current}}),Object.defineProperty(P,"action",{get:function(){return o.current}}),P}var Pe=S.createContext({}),Ma=function(e){var r=Pa(e.initValue);return d.jsx(Pe.Provider,{value:r,children:e.children})},Na=function(e){return R({},e.componentCls,{marginBlockEnd:16,backgroundColor:Bt(e.colorTextBase,.02),borderRadius:e.borderRadius,border:"none","&-container":{paddingBlock:e.paddingSM,paddingInline:e.paddingLG},"&-info":{display:"flex",alignItems:"center",transition:"all 0.3s",color:e.colorTextTertiary,"&-content":{flex:1},"&-option":{minWidth:48,paddingInlineStart:16}}})};function ja(n){return tn("ProTableAlert",function(e){var r=u(u({},e),{},{componentCls:".".concat(n)});return[Na(r)]})}var Fa=function(e){var r=e.intl,t=e.onCleanSelected;return[d.jsx("a",{onClick:t,children:r.getMessage("alert.clear","清空")},"0")]};function Ea(n){var e=n.selectedRowKeys,r=e===void 0?[]:e,t=n.onCleanSelected,l=n.alwaysShowAlert,i=n.selectedRows,a=n.alertInfoRender,o=a===void 0?function(E){var K=E.intl;return d.jsxs(Rn,{children:[K.getMessage("alert.selected","已选择"),r.length,K.getMessage("alert.item","项"),"  "]})}:a,s=n.alertOptionRender,f=s===void 0?Fa:s,g=Re(),c=f&&f({onCleanSelected:t,selectedRowKeys:r,selectedRows:i,intl:g}),p=S.useContext($e.ConfigContext),y=p.getPrefixCls,v=y("pro-table-alert"),w=ja(v),x=w.wrapSSR,C=w.hashId;if(o===!1)return null;var m=o({intl:g,selectedRowKeys:r,selectedRows:i,onCleanSelected:t});return m===!1||r.length<1&&!l?null:x(d.jsx("div",{className:"".concat(v," ").concat(C).trim(),children:d.jsx("div",{className:"".concat(v,"-container ").concat(C).trim(),children:d.jsxs("div",{className:"".concat(v,"-info ").concat(C).trim(),children:[d.jsx("div",{className:"".concat(v,"-info-content ").concat(C).trim(),children:m}),c?d.jsx("div",{className:"".concat(v,"-info-option ").concat(C).trim(),children:c}):null]})})}))}function Ka(n){var e=n.replace(/[A-Z]/g,function(r){return"-".concat(r.toLowerCase())});return e.startsWith("-")&&(e=e.slice(1)),e}var Ba=function(e,r){return!e&&r!==!1?(r==null?void 0:r.filterType)==="light"?"LightFilter":"QueryFilter":"Form"},La=function(e,r,t){return!e&&t==="LightFilter"?Fe(u({},r),["labelWidth","defaultCollapsed","filterType"]):e?{}:Fe(u({labelWidth:r?r==null?void 0:r.labelWidth:void 0,defaultCollapsed:!0},r),["filterType"])},Aa=function(e,r){return e?Fe(r,["ignoreRules"]):u({ignoreRules:!0},r)},Oa=function(e){var r=e.onSubmit,t=e.formRef,l=e.dateFormatter,i=l===void 0?"string":l,a=e.type,o=e.columns,s=e.action,f=e.ghost,g=e.manualRequest,c=e.onReset,p=e.submitButtonLoading,y=e.search,v=e.form,w=e.bordered,x=S.useContext(Ue),C=x.hashId,m=a==="form",E=function(){var h=ye(ie().mark(function b(k,I){return ie().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:r&&r(k,I);case 1:case"end":return B.stop()}},b)}));return function(k,I){return h.apply(this,arguments)}}(),K=S.useContext($e.ConfigContext),D=K.getPrefixCls,G=S.useMemo(function(){return o.filter(function(h){return!(h===Ae.EXPAND_COLUMN||h===Ae.SELECTION_COLUMN||(h.hideInSearch||h.search===!1)&&a!=="form"||a==="form"&&h.hideInForm)}).map(function(h){var b,k=!h.valueType||["textarea","jsonCode","code"].includes(h==null?void 0:h.valueType)&&a==="table"?"text":h==null?void 0:h.valueType,I=(h==null?void 0:h.key)||(h==null||(b=h.dataIndex)===null||b===void 0?void 0:b.toString());return u(u(u({},h),{},{width:void 0},h.search&&we(h.search)==="object"?h.search:{}),{},{valueType:k,proFieldProps:u(u({},h.proFieldProps),{},{proFieldKey:I?"table-field-".concat(I):void 0})})})},[o,a]),M=D("pro-table-search"),N=D("pro-table-form"),j=S.useMemo(function(){return Ba(m,y)},[y,m]),P=S.useMemo(function(){return{submitter:{submitButtonProps:{loading:p}}}},[p]);return d.jsx("div",{className:Se(C,R(R(R(R(R(R(R(R(R({},D("pro-card"),!0),"".concat(D("pro-card"),"-border"),!!w),"".concat(D("pro-card"),"-bordered"),!!w),"".concat(D("pro-card"),"-ghost"),!!f),M,!0),N,m),D("pro-table-search-".concat(Ka(j))),!0),"".concat(M,"-ghost"),f),y==null?void 0:y.className,y!==!1&&(y==null?void 0:y.className))),children:d.jsx(cr,u(u(u(u({layoutType:j,columns:G,type:a},P),La(m,y,j)),Aa(m,v||{})),{},{formRef:t,action:s,dateFormatter:i,onInit:function(b,k){if(t.current=k,a!=="form"){var I,A,B,L=(I=s.current)===null||I===void 0?void 0:I.pageInfo,O=b,_=O.current,q=_===void 0?L==null?void 0:L.current:_,Y=O.pageSize,ae=Y===void 0?L==null?void 0:L.pageSize:Y;if((A=s.current)===null||A===void 0||(B=A.setPageInfo)===null||B===void 0||B.call(A,u(u({},L),{},{current:parseInt(q,10),pageSize:parseInt(ae,10)})),g)return;E(b,!0)}},onReset:function(b){c==null||c(b)},onFinish:function(b){E(b,!1)},initialValues:v==null?void 0:v.initialValues}))})};const $a=Oa;var ka=function(n){tt(r,n);var e=rt(r);function r(){var t;at(this,r);for(var l=arguments.length,i=new Array(l),a=0;a span":{"> span.anticon":{color:e.colorPrimary}},"> span + span":{marginInlineStart:4}}}))};function _a(n){return tn("ColumnSetting",function(e){var r=u(u({},e),{},{componentCls:".".concat(n)});return[za(r)]})}var Ua=["key","dataIndex","children"],qa=["disabled"],cn=function(e){var r=e.title,t=e.show,l=e.children,i=e.columnKey,a=e.fixed,o=S.useContext(Pe),s=o.columnsMap,f=o.setColumnsMap;return t?d.jsx(Ee,{title:r,children:d.jsx("span",{onClick:function(c){c.stopPropagation(),c.preventDefault();var p=s[i]||{},y=u(u({},s),{},R({},i,u(u({},p),{},{fixed:a})));f(y)},children:l})}):null},Wa=function(e){var r=e.columnKey,t=e.isLeaf,l=e.title,i=e.className,a=e.fixed,o=e.showListItemOption,s=Re(),f=S.useContext(Ue),g=f.hashId,c=d.jsxs("span",{className:"".concat(i,"-list-item-option ").concat(g).trim(),children:[d.jsx(cn,{columnKey:r,fixed:"left",title:s.getMessage("tableToolBar.leftPin","固定在列首"),show:a!=="left",children:d.jsx($t,{})}),d.jsx(cn,{columnKey:r,fixed:void 0,title:s.getMessage("tableToolBar.noPin","不固定"),show:!!a,children:d.jsx(kt,{})}),d.jsx(cn,{columnKey:r,fixed:"right",title:s.getMessage("tableToolBar.rightPin","固定在列尾"),show:a!=="right",children:d.jsx(Dt,{})})]});return d.jsxs("span",{className:"".concat(i,"-list-item ").concat(g).trim(),children:[d.jsx("div",{className:"".concat(i,"-list-item-title ").concat(g).trim(),children:l}),o&&!t?c:null]},r)},fn=function(e){var r,t,l,i=e.list,a=e.draggable,o=e.checkable,s=e.showListItemOption,f=e.className,g=e.showTitle,c=g===void 0?!0:g,p=e.title,y=e.listHeight,v=y===void 0?280:y,w=S.useContext(Ue),x=w.hashId,C=S.useContext(Pe),m=C.columnsMap,E=C.setColumnsMap,K=C.sortKeyColumns,D=C.setSortKeyColumns,G=i&&i.length>0,M=S.useMemo(function(){if(!G)return{};var h=[],b=new Map,k=function I(A,B){return A.map(function(L){var O,_=L.key;L.dataIndex;var q=L.children,Y=Ke(L,Ua),ae=ke(_,[B==null?void 0:B.columnKey,Y.index].filter(Boolean).join("-")),J=m[ae||"null"]||{show:!0};J.show!==!1&&!q&&h.push(ae);var ne=u(u({key:ae},Fe(Y,["className"])),{},{selectable:!1,disabled:J.disable===!0,disableCheckbox:typeof J.disable=="boolean"?J.disable:(O=J.disable)===null||O===void 0?void 0:O.checkbox,isLeaf:B?!0:void 0});if(q){var W;ne.children=I(q,u(u({},J),{},{columnKey:ae})),(W=ne.children)!==null&&W!==void 0&&W.every(function(z){return h==null?void 0:h.includes(z.key)})&&h.push(ae)}return b.set(_,ne),ne})};return{list:k(i),keys:h,map:b}},[m,i,G]),N=Ne(function(h,b,k){var I=u({},m),A=je(K),B=A.findIndex(function(q){return q===h}),L=A.findIndex(function(q){return q===b}),O=k>=B;if(!(B<0)){var _=A[B];A.splice(B,1),k===0?A.unshift(_):A.splice(O?L:L+1,0,_),A.forEach(function(q,Y){I[q]=u(u({},I[q]||{}),{},{order:Y})}),E(I),D(A)}}),j=Ne(function(h){var b=u({},m),k=function I(A){var B,L=u({},b[A]);if(L.show=h.checked,(B=M.map)!==null&&B!==void 0&&(B=B.get(A))!==null&&B!==void 0&&B.children){var O;(O=M.map.get(A))===null||O===void 0||(O=O.children)===null||O===void 0||O.forEach(function(_){return I(_.key)})}b[A]=L};k(h.node.key),E(u({},b))});if(!G)return null;var P=d.jsx(fr,{itemHeight:24,draggable:a&&!!((r=M.list)!==null&&r!==void 0&&r.length)&&((t=M.list)===null||t===void 0?void 0:t.length)>1,checkable:o,onDrop:function(b){var k=b.node.key,I=b.dragNode.key,A=b.dropPosition,B=b.dropToGap,L=A===-1||!B?A+1:A;N(I,k,L)},blockNode:!0,onCheck:function(b,k){return j(k)},checkedKeys:M.keys,showLine:!1,titleRender:function(b){var k=u(u({},b),{},{children:void 0});if(!k.title)return null;var I=_e(k.title,k),A=d.jsx(vr.Text,{style:{width:80},ellipsis:{tooltip:I},children:I});return d.jsx(Wa,u(u({className:f},Fe(k,["key"])),{},{showListItemOption:s,title:A,columnKey:k.key}))},height:v,treeData:(l=M.list)===null||l===void 0?void 0:l.map(function(h){h.disabled;var b=Ke(h,qa);return b})});return d.jsxs(d.Fragment,{children:[c&&d.jsx("span",{className:"".concat(f,"-list-title ").concat(x).trim(),children:p}),P]})},Ha=function(e){var r=e.localColumns,t=e.className,l=e.draggable,i=e.checkable,a=e.showListItemOption,o=e.listsHeight,s=S.useContext(Ue),f=s.hashId,g=[],c=[],p=[],y=Re();r.forEach(function(x){if(!x.hideInSetting){var C=x.fixed;if(C==="left"){c.push(x);return}if(C==="right"){g.push(x);return}p.push(x)}});var v=g&&g.length>0,w=c&&c.length>0;return d.jsxs("div",{className:Se("".concat(t,"-list"),f,R({},"".concat(t,"-list-group"),v||w)),children:[d.jsx(fn,{title:y.getMessage("tableToolBar.leftFixedTitle","固定在左侧"),list:c,draggable:l,checkable:i,showListItemOption:a,className:t,listHeight:o}),d.jsx(fn,{list:p,draggable:l,checkable:i,showListItemOption:a,title:y.getMessage("tableToolBar.noFixedTitle","不固定"),showTitle:w||v,className:t,listHeight:o}),d.jsx(fn,{title:y.getMessage("tableToolBar.rightFixedTitle","固定在右侧"),list:g,draggable:l,checkable:i,showListItemOption:a,className:t,listHeight:o})]})};function Va(n){var e,r,t,l,i=S.useRef(null),a=S.useContext(Pe),o=n.columns,s=n.checkedReset,f=s===void 0?!0:s,g=a.columnsMap,c=a.setColumnsMap,p=a.clearPersistenceStorage;S.useEffect(function(){var j;if((j=a.propsRef.current)!==null&&j!==void 0&&(j=j.columnsState)!==null&&j!==void 0&&j.value){var P;i.current=JSON.parse(JSON.stringify(((P=a.propsRef.current)===null||P===void 0||(P=P.columnsState)===null||P===void 0?void 0:P.value)||{}))}},[]);var y=Ne(function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,P={},h=function b(k){k.forEach(function(I){var A=I.key,B=I.fixed,L=I.index,O=I.children,_=I.disable,q=ke(A,L);if(q){var Y,ae;P[q]={show:_?(Y=g[q])===null||Y===void 0?void 0:Y.show:j,fixed:B,disable:_,order:(ae=g[q])===null||ae===void 0?void 0:ae.order}}O&&b(O)})};h(o),c(P)}),v=Ne(function(j){j.target.checked?y():y(!1)}),w=Ne(function(){var j;p==null||p(),c(((j=a.propsRef.current)===null||j===void 0||(j=j.columnsState)===null||j===void 0?void 0:j.defaultValue)||i.current||a.defaultColumnKeyMap)}),x=Object.values(g).filter(function(j){return!j||j.show===!1}),C=x.length>0&&x.length!==o.length,m=Re(),E=S.useContext($e.ConfigContext),K=E.getPrefixCls,D=K("pro-table-column-setting"),G=_a(D),M=G.wrapSSR,N=G.hashId;return M(d.jsx(Lt,{arrow:!1,title:d.jsxs("div",{className:"".concat(D,"-title ").concat(N).trim(),children:[n.checkable===!1?d.jsx("div",{}):d.jsx(At,{indeterminate:C,checked:x.length===0&&x.length!==o.length,onChange:function(P){v(P)},children:m.getMessage("tableToolBar.columnDisplay","列展示")}),f?d.jsx("a",{onClick:w,className:"".concat(D,"-action-rest-button ").concat(N).trim(),children:m.getMessage("tableToolBar.reset","重置")}):null,n!=null&&n.extra?d.jsx(Rn,{size:12,align:"center",children:n.extra}):null]}),overlayClassName:"".concat(D,"-overlay ").concat(N).trim(),trigger:"click",placement:"bottomRight",content:d.jsx(Ha,{checkable:(e=n.checkable)!==null&&e!==void 0?e:!0,draggable:(r=n.draggable)!==null&&r!==void 0?r:!0,showListItemOption:(t=n.showListItemOption)!==null&&t!==void 0?t:!0,className:D,localColumns:o,listsHeight:n.listsHeight}),children:n.children||d.jsx(Ee,{title:m.getMessage("tableToolBar.columnSetting","列设置"),children:(l=n.settingIcon)!==null&&l!==void 0?l:d.jsx(Ot,{})})}))}var Ga=function(e){var r=S.useContext(Ue),t=r.hashId,l=e.items,i=l===void 0?[]:l,a=e.type,o=a===void 0?"inline":a,s=e.prefixCls,f=e.activeKey,g=e.defaultActiveKey,c=be(f||g,{value:f,onChange:e.onChange}),p=de(c,2),y=p[0],v=p[1];if(i.length<1)return null;var w=i.find(function(C){return C.key===y})||i[0];if(o==="inline")return d.jsx("div",{className:Se("".concat(s,"-menu"),"".concat(s,"-inline-menu"),t),children:i.map(function(C,m){return d.jsx("div",{onClick:function(){v(C.key)},className:Se("".concat(s,"-inline-menu-item"),w.key===C.key?"".concat(s,"-inline-menu-item-active"):void 0,t),children:C.label},C.key||m)})});if(o==="tab")return d.jsx(Qe,{items:i.map(function(C){var m;return u(u({},C),{},{key:(m=C.key)===null||m===void 0?void 0:m.toString()})}),activeKey:w.key,onTabClick:function(m){return v(m)},children:wn(it,"4.23.0")<0?i==null?void 0:i.map(function(C,m){return S.createElement(Qe.TabPane,u(u({},C),{},{key:C.key||m,tab:C.label}))}):null});var x=ct({selectedKeys:[w.key],onClick:function(m){v(m.key)},items:i.map(function(C,m){return{key:C.key||m,disabled:C.disabled,label:C.label}})});return d.jsx("div",{className:Se("".concat(s,"-menu"),"".concat(s,"-dropdownmenu")),children:d.jsx(ut,u(u({trigger:["click"]},x),{},{children:d.jsxs(Rn,{className:"".concat(s,"-dropdownmenu-label"),children:[w.label,d.jsx(zt,{})]})}))})};const Ja=Ga;var Xa=function(e){return R({},e.componentCls,R(R(R({lineHeight:"1","&-container":{display:"flex",justifyContent:"space-between",paddingBlock:e.padding,paddingInline:0,"&-mobile":{flexDirection:"column"}},"&-title":{display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSizeLG},"&-search:not(:last-child)":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"&-setting-item":{marginBlock:0,marginInline:4,color:e.colorIconHover,fontSize:e.fontSizeLG,cursor:"pointer","> span":{display:"block",width:"100%",height:"100%"},"&:hover":{color:e.colorPrimary}},"&-left":R(R({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.marginXS,justifyContent:"flex-start",maxWidth:"calc(100% - 200px)"},"".concat(e.antCls,"-tabs"),{width:"100%"}),"&-has-tabs",{overflow:"hidden"}),"&-right":{flex:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:e.marginXS},"&-extra-line":{marginBlockEnd:e.margin},"&-setting-items":{display:"flex",gap:e.marginXS,lineHeight:"32px",alignItems:"center"},"&-filter":R({"&:not(:last-child)":{marginInlineEnd:e.margin},display:"flex",alignItems:"center"},"div$".concat(e.antCls,"-pro-table-search"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0}),"&-inline-menu-item":{display:"inline-block",marginInlineEnd:e.marginLG,cursor:"pointer",opacity:"0.75","&-active":{fontWeight:"bold",opacity:"1"}}},"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),R({marginBlockEnd:0,"&::before":{borderBlockEnd:0}},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:0,"${token.antCls}-tabs-tab":{paddingBlockStart:0}})),"&-dropdownmenu-label",{fontWeight:"bold",fontSize:e.fontSizeIcon,textAlign:"center",cursor:"pointer"}),"@media (max-width: 768px)",R({},e.componentCls,{"&-container":{display:"flex",flexWrap:"wrap",flexDirection:"column"},"&-left":{marginBlockEnd:"16px",maxWidth:"100%"}})))};function Qa(n){return tn("ProTableListToolBar",function(e){var r=u(u({},e),{},{componentCls:".".concat(n)});return[Xa(r)]})}function Za(n){if(fe.isValidElement(n))return n;if(n){var e=n,r=e.icon,t=e.tooltip,l=e.onClick,i=e.key;return r&&t?d.jsx(Ee,{title:t,children:d.jsx("span",{onClick:function(){l&&l(i)},children:r},i)}):d.jsx("span",{onClick:function(){l&&l(i)},children:r},i)}return null}var Ya=function(e){var r,t=e.prefixCls,l=e.tabs,i=e.multipleLine,a=e.filtersNode;return i?d.jsx("div",{className:"".concat(t,"-extra-line"),children:l!=null&&l.items&&l!==null&&l!==void 0&&l.items.length?d.jsx(Qe,{style:{width:"100%"},defaultActiveKey:l.defaultActiveKey,activeKey:l.activeKey,items:l.items.map(function(o,s){var f;return u(u({label:o.tab},o),{},{key:((f=o.key)===null||f===void 0?void 0:f.toString())||(s==null?void 0:s.toString())})}),onChange:l.onChange,tabBarExtraContent:a,children:(r=l.items)===null||r===void 0?void 0:r.map(function(o,s){return wn(it,"4.23.0")<0?S.createElement(Qe.TabPane,u(u({},o),{},{key:o.key||s,tab:o.tab})):null})}):a}):null},el=function(e){var r=e.prefixCls,t=e.title,l=e.subTitle,i=e.tooltip,a=e.className,o=e.style,s=e.search,f=e.onSearch,g=e.multipleLine,c=g===void 0?!1:g,p=e.filter,y=e.actions,v=y===void 0?[]:y,w=e.settings,x=w===void 0?[]:w,C=e.tabs,m=e.menu,E=S.useContext($e.ConfigContext),K=E.getPrefixCls,D=Je.useToken(),G=D.token,M=K("pro-table-list-toolbar",r),N=Qa(M),j=N.wrapSSR,P=N.hashId,h=Re(),b=S.useState(!1),k=de(b,2),I=k[0],A=k[1],B=h.getMessage("tableForm.inputPlaceholder","请输入"),L=S.useMemo(function(){return s?fe.isValidElement(s)?s:d.jsx(_t.Search,u(u({style:{width:200},placeholder:B},s),{},{onSearch:ye(ie().mark(function z(){var $,U,Q,Z,te,H,ce=arguments;return ie().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:for(Q=ce.length,Z=new Array(Q),te=0;tea":{fontSize:e.fontSize}}),"".concat(e.antCls,"-table").concat(e.antCls,"-table-tbody").concat(e.antCls,"-table-wrapper:only-child").concat(e.antCls,"-table"),{marginBlock:0,marginInline:0}),"".concat(e.antCls,"-table").concat(e.antCls,"-table-middle ").concat(e.componentCls),R({marginBlock:0,marginInline:-8},"".concat(e.proComponentsCls,"-card"),{backgroundColor:"initial"})),"& &-search",R(R(R(R({marginBlockEnd:"16px",background:e.colorBgContainer,"&-ghost":{background:"transparent"}},"&".concat(e.componentCls,"-form"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:16,overflow:"unset"}),"&-light-filter",{marginBlockEnd:0,paddingBlock:0,paddingInline:0}),"&-form-option",R(R(R({},"".concat(e.antCls,"-form-item"),{}),"".concat(e.antCls,"-form-item-label"),{}),"".concat(e.antCls,"-form-item-control-input"),{})),"@media (max-width: 575px)",R({},e.componentCls,R({height:"auto !important",paddingBlockEnd:"24px"},"".concat(e.antCls,"-form-item-label"),{minWidth:"80px",textAlign:"start"})))),"&-toolbar",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"64px",paddingInline:24,paddingBlock:0,"&-option":{display:"flex",alignItems:"center",justifyContent:"flex-end"},"&-title":{flex:"1",color:e.colorTextLabel,fontWeight:"500",fontSize:"16px",lineHeight:"24px",opacity:"0.85"}})),"@media (max-width: ".concat(e.screenXS,")px"),R({},e.componentCls,R({},"".concat(e.antCls,"-table"),{width:"100%",overflowX:"auto","&-thead > tr,&-tbody > tr":{"> th,> td":{whiteSpace:"pre",">span":{display:"block"}}}}))),"@media (max-width: 575px)",R({},"".concat(e.componentCls,"-toolbar"),{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",height:"auto",marginBlockEnd:"16px",marginInlineStart:"16px",paddingBlock:8,paddingInline:8,paddingBlockStart:"16px",lineHeight:"normal","&-title":{marginBlockEnd:16},"&-option":{display:"flex",justifyContent:"space-between",width:"100%"},"&-default-option":{display:"flex",flex:"1",alignItems:"center",justifyContent:"flex-end"}}))};function vl(n){return tn("ProTable",function(e){var r=u(u({},e),{},{componentCls:".".concat(n)});return[fl(r)]})}var ml=["data","success","total"],gl=function(e){var r=e.pageInfo;if(r){var t=r.current,l=r.defaultCurrent,i=r.pageSize,a=r.defaultPageSize;return{current:t||l||1,total:0,pageSize:i||a||20}}return{current:1,total:0,pageSize:20}},hl=function(e,r,t){var l,i=S.useRef(!1),a=S.useRef(null),o=t||{},s=o.onLoad,f=o.manual,g=o.polling,c=o.onRequestError,p=o.debounceTime,y=p===void 0?20:p,v=o.effects,w=v===void 0?[]:v,x=S.useRef(f),C=S.useRef(),m=be(r,{value:t==null?void 0:t.dataSource,onChange:t==null?void 0:t.onDataSourceChange}),E=de(m,2),K=E[0],D=E[1],G=be(!1,{value:we(t==null?void 0:t.loading)==="object"?t==null||(l=t.loading)===null||l===void 0?void 0:l.spinning:t==null?void 0:t.loading,onChange:t==null?void 0:t.onLoadingChange}),M=de(G,2),N=M[0],j=M[1],P=be(function(){return gl(t)},{onChange:t==null?void 0:t.onPageInfoChange}),h=de(P,2),b=h[0],k=h[1],I=Ne(function($){($.current!==b.current||$.pageSize!==b.pageSize||$.total!==b.total)&&k($)}),A=be(!1),B=de(A,2),L=B[0],O=B[1],_=function(U,Q){kn.unstable_batchedUpdates(function(){D(U),(b==null?void 0:b.total)!==Q&&I(u(u({},b),{},{total:Q||U.length}))})},q=sn(b==null?void 0:b.current),Y=sn(b==null?void 0:b.pageSize),ae=sn(g),J=Ne(function(){kn.unstable_batchedUpdates(function(){j(!1),O(!1)})}),ne=function(){var $=ye(ie().mark(function U(Q){var Z,te,H,ce,X,le,ge,se,he,ve,Te,Be;return ie().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(!x.current){ee.next=3;break}return x.current=!1,ee.abrupt("return");case 3:return Q?O(!0):j(!0),Z=b||{},te=Z.pageSize,H=Z.current,ee.prev=5,ce=(t==null?void 0:t.pageInfo)!==!1?{current:H,pageSize:te}:void 0,ee.next=9,e==null?void 0:e(ce);case 9:if(ee.t0=ee.sent,ee.t0){ee.next=12;break}ee.t0={};case 12:if(X=ee.t0,le=X.data,ge=le===void 0?[]:le,se=X.success,he=X.total,ve=he===void 0?0:he,Te=Ke(X,ml),se!==!1){ee.next=21;break}return ee.abrupt("return",[]);case 21:return Be=wa(ge,[t.postData].filter(function(De){return De})),_(Be,ve),s==null||s(Be,Te),ee.abrupt("return",Be);case 27:if(ee.prev=27,ee.t1=ee.catch(5),c!==void 0){ee.next=31;break}throw new Error(ee.t1);case 31:K===void 0&&D([]),c(ee.t1);case 33:return ee.prev=33,J(),ee.finish(33);case 36:return ee.abrupt("return",[]);case 37:case"end":return ee.stop()}},U,null,[[5,27,33,36]])}));return function(Q){return $.apply(this,arguments)}}(),W=Xt(function(){var $=ye(ie().mark(function U(Q){var Z,te,H;return ie().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(C.current&&clearTimeout(C.current),e){X.next=3;break}return X.abrupt("return");case 3:return Z=new AbortController,a.current=Z,X.prev=5,X.next=8,Promise.race([ne(Q),new Promise(function(le,ge){var se,he;(se=a.current)===null||se===void 0||(se=se.signal)===null||se===void 0||(he=se.addEventListener)===null||he===void 0||he.call(se,"abort",function(){ge("aborted"),W.cancel(),J()})})]);case 8:if(te=X.sent,!Z.signal.aborted){X.next=11;break}return X.abrupt("return");case 11:return H=_e(g,te),H&&!i.current&&(C.current=setTimeout(function(){W.run(H)},Math.max(H,2e3))),X.abrupt("return",te);case 16:if(X.prev=16,X.t0=X.catch(5),X.t0!=="aborted"){X.next=20;break}return X.abrupt("return");case 20:throw X.t0;case 21:case"end":return X.stop()}},U,null,[[5,16]])}));return function(U){return $.apply(this,arguments)}}(),y||30),z=function(){var U;(U=a.current)===null||U===void 0||U.abort(),W.cancel(),J()};return S.useEffect(function(){return g||clearTimeout(C.current),!ae&&g&&W.run(!0),function(){clearTimeout(C.current)}},[g]),S.useEffect(function(){return i.current=!1,function(){i.current=!0}},[]),S.useEffect(function(){var $=b||{},U=$.current,Q=$.pageSize;(!q||q===U)&&(!Y||Y===Q)||t.pageInfo&&K&&(K==null?void 0:K.length)>Q||U!==void 0&&K&&K.length<=Q&&(z(),W.run(!1))},[b==null?void 0:b.current]),S.useEffect(function(){Y&&(z(),W.run(!1))},[b==null?void 0:b.pageSize]),gn(function(){return z(),W.run(!1),f||(x.current=!1),function(){z()}},[].concat(je(w),[f])),{dataSource:K,setDataSource:D,loading:we(t==null?void 0:t.loading)==="object"?u(u({},t==null?void 0:t.loading),{},{spinning:N}):N,reload:function(){var $=ye(ie().mark(function Q(){return ie().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return z(),te.abrupt("return",W.run(!1));case 2:case"end":return te.stop()}},Q)}));function U(){return $.apply(this,arguments)}return U}(),pageInfo:b,pollingLoading:L,reset:function(){var $=ye(ie().mark(function Q(){var Z,te,H,ce,X,le,ge,se;return ie().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:Z=t||{},te=Z.pageInfo,H=te||{},ce=H.defaultCurrent,X=ce===void 0?1:ce,le=H.defaultPageSize,ge=le===void 0?20:le,se={current:X,total:0,pageSize:ge},I(se);case 4:case"end":return ve.stop()}},Q)}));function U(){return $.apply(this,arguments)}return U}(),setPageInfo:function(){var $=ye(ie().mark(function Q(Z){return ie().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:I(u(u({},b),Z));case 1:case"end":return H.stop()}},Q)}));function U(Q){return $.apply(this,arguments)}return U}()}};const pl=hl;var yl=function(e){return function(r,t){var l,i,a=r.fixed,o=r.index,s=t.fixed,f=t.index;if(a==="left"&&s!=="left"||s==="right"&&a!=="right")return-2;if(s==="left"&&a!=="left"||a==="right"&&s!=="right")return 2;var g=r.key||"".concat(o),c=t.key||"".concat(f);if((l=e[g])!==null&&l!==void 0&&l.order||(i=e[c])!==null&&i!==void 0&&i.order){var p,y;return(((p=e[g])===null||p===void 0?void 0:p.order)||0)-(((y=e[c])===null||y===void 0?void 0:y.order)||0)}return(r.index||0)-(t.index||0)}},bl=["children"],Sl=["",null,void 0],Qn=function(){for(var e=arguments.length,r=new Array(e),t=0;tH.length?(H.push($),H):(H.splice((o==null?void 0:o.current)*(o==null?void 0:o.pageSize)-1,0,$),H)}return[].concat(je(l.dataSource),[$])},I=function(){return u(u({},j),{},{size:f,rowSelection:s===!1?void 0:s,className:r,style:g,columns:h,loading:l.loading,dataSource:M.newLineRecord?k(l.dataSource):l.dataSource,pagination:o,onChange:function(W,z,$,U){var Q;if((Q=j.onChange)===null||Q===void 0||Q.call(j,W,z,$,U),b||m(Ie(z)),Array.isArray($)){var Z=$.reduce(function(X,le){return u(u({},X),{},R({},"".concat(le.field),le.order))},{});C(Ie(Z))}else{var te,H=(te=$.column)===null||te===void 0?void 0:te.sorter,ce=(H==null?void 0:H.toString())===H;C(Ie(R({},"".concat(ce?H:$.field),$.order)))}}})},A=S.useMemo(function(){return n.search===!1&&!n.headerTitle&&n.toolBarRender===!1},[]),B=d.jsx(rr.Provider,{value:{grid:!1,colProps:void 0,rowProps:void 0},children:d.jsx(Ae,u(u({},I()),{},{rowKey:e}))}),L=n.tableViewRender?n.tableViewRender(u(u({},I()),{},{rowSelection:s!==!1?s:void 0}),B):B,O=S.useMemo(function(){if(n.editable&&!n.name){var J,ne,W;return d.jsxs(d.Fragment,{children:[c,x,S.createElement(dt,u(u({},(J=n.editable)===null||J===void 0?void 0:J.formProps),{},{formRef:(ne=n.editable)===null||ne===void 0||(ne=ne.formProps)===null||ne===void 0?void 0:ne.formRef,component:!1,form:(W=n.editable)===null||W===void 0?void 0:W.form,onValuesChange:M.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:n.dateFormatter}),L)]})}return d.jsxs(d.Fragment,{children:[c,x,L]})},[x,n.loading,!!n.editable,L,c]),_=S.useMemo(function(){return w===!1||A===!0||n.name?{}:p?{padding:0}:c?{paddingBlockStart:0}:c&&o===!1?{paddingBlockStart:0}:{padding:0}},[A,o,n.name,w,c,p]),q=w===!1||A===!0||n.name?O:d.jsx(ar,u(u({ghost:n.ghost,bordered:gt("table",G),bodyStyle:_},w),{},{children:O})),Y=function(){return n.tableRender?n.tableRender(n,q,{toolbar:c||void 0,alert:x||void 0,table:L||void 0}):q},ae=d.jsxs("div",{className:Se(D,R({},"".concat(t,"-polling"),l.pollingLoading)),style:v,ref:P.rootDomRef,children:[K?null:y,a!=="form"&&n.tableExtraRender&&d.jsx("div",{className:Se(D,"".concat(t,"-extra")),children:n.tableExtraRender(n,l.dataSource||[])}),a!=="form"&&Y()]});return!E||!(E!=null&&E.fullScreen)?ae:d.jsx($e,{getPopupContainer:function(){return P.rootDomRef.current||document.body},children:ae})}var Nl={},jl=function(e){var r;e.cardBordered;var t=e.request,l=e.className,i=e.params,a=i===void 0?Nl:i,o=e.defaultData,s=e.headerTitle,f=e.postData,g=e.ghost,c=e.pagination,p=e.actionRef,y=e.columns,v=y===void 0?[]:y,w=e.toolBarRender,x=e.optionsRender,C=e.onLoad,m=e.onRequestError;e.style,e.cardProps,e.tableStyle,e.tableClassName,e.columnsStateMap,e.onColumnsStateChange;var E=e.options,K=e.search,D=e.name,G=e.onLoadingChange,M=e.rowSelection,N=M===void 0?!1:M,j=e.beforeSearchSubmit,P=e.tableAlertRender,h=e.defaultClassName,b=e.formRef,k=e.type,I=k===void 0?"table":k,A=e.columnEmptyText,B=A===void 0?"-":A,L=e.toolbar,O=e.rowKey,_=e.manualRequest,q=e.polling,Y=e.tooltip,ae=e.revalidateOnFocus,J=ae===void 0?!1:ae,ne=e.searchFormRender,W=Ke(e,Pl),z=vl(e.defaultClassName),$=z.wrapSSR,U=z.hashId,Q=Se(h,l,U),Z=S.useRef(),te=S.useRef(),H=b||te;S.useImperativeHandle(p,function(){return Z.current});var ce=be(N?(N==null?void 0:N.defaultSelectedRowKeys)||[]:void 0,{value:N?N.selectedRowKeys:void 0}),X=de(ce,2),le=X[0],ge=X[1],se=be(function(){if(!(_||K!==!1))return{}}),he=de(se,2),ve=he[0],Te=he[1],Be=be({}),rn=de(Be,2),ee=rn[0],De=rn[1],St=be({}),Tn=de(St,2),qe=Tn[0],an=Tn[1];S.useEffect(function(){var T=Ia(v),F=T.sort,V=T.filter;De(V),an(F)},[]);var In=Re(),Ct=we(c)==="object"?c:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},ue=S.useContext(Pe),Pn=S.useMemo(function(){if(t)return function(){var T=ye(ie().mark(function F(V){var oe,me;return ie().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return oe=u(u(u({},V||{}),ve),a),delete oe._timestamp,pe.next=4,t(oe,qe,ee);case 4:return me=pe.sent,pe.abrupt("return",me);case 6:case"end":return pe.stop()}},F)}));return function(F){return T.apply(this,arguments)}}()},[ve,a,ee,qe,t]),re=pl(Pn,o,{pageInfo:c===!1?!1:Ct,loading:e.loading,dataSource:e.dataSource,onDataSourceChange:e.onDataSourceChange,onLoad:C,onLoadingChange:G,onRequestError:m,postData:f,revalidateOnFocus:J,manual:ve===void 0,polling:q,effects:[Ve(a),Ve(ve),Ve(ee),Ve(qe)],debounceTime:e.debounceTime,onPageInfoChange:function(F){var V,oe;!c||!Pn||(c==null||(V=c.onChange)===null||V===void 0||V.call(c,F.current,F.pageSize),c==null||(oe=c.onShowSizeChange)===null||oe===void 0||oe.call(c,F.current,F.pageSize))}});S.useEffect(function(){var T;if(!(e.manualRequest||!e.request||!J||(T=e.form)!==null&&T!==void 0&&T.ignoreRules)){var F=function(){document.visibilityState==="visible"&&re.reload()};return document.addEventListener("visibilitychange",F),function(){return document.removeEventListener("visibilitychange",F)}}},[]);var Mn=fe.useRef(new Map),We=fe.useMemo(function(){return typeof O=="function"?O:function(T,F){var V;return F===-1?T==null?void 0:T[O]:e.name?F==null?void 0:F.toString():(V=T==null?void 0:T[O])!==null&&V!==void 0?V:F==null?void 0:F.toString()}},[e.name,O]);S.useMemo(function(){var T;if((T=re.dataSource)!==null&&T!==void 0&&T.length){var F=re.dataSource.map(function(V){var oe=We(V,-1);return Mn.current.set(oe,V),oe});return F}return[]},[re.dataSource,We]);var ln=S.useMemo(function(){var T=c===!1?!1:u({},c),F=u(u({},re.pageInfo),{},{setPageInfo:function(oe){var me=oe.pageSize,Ce=oe.current,pe=re.pageInfo;if(me===pe.pageSize||pe.current===1){re.setPageInfo({pageSize:me,current:Ce});return}t&&re.setDataSource([]),re.setPageInfo({pageSize:me,current:I==="list"?Ce:1})}});return t&&T&&(delete T.onChange,delete T.onShowSizeChange),Ca(T,F,In)},[c,re,In]);gn(function(){var T;e.request&&!Br(a)&&re.dataSource&&!Sa(re.dataSource,o)&&(re==null||(T=re.pageInfo)===null||T===void 0?void 0:T.current)!==1&&re.setPageInfo({current:1})},[a]),ue.setPrefixName(e.name);var on=S.useCallback(function(){N&&N.onChange&&N.onChange([],[],{type:"none"}),ge([])},[N,ge]);ue.propsRef.current=e;var ze=ur(u(u({},e.editable),{},{tableName:e.name,getRowKey:We,childrenColumnName:((r=e.expandable)===null||r===void 0?void 0:r.childrenColumnName)||"children",dataSource:re.dataSource||[],setDataSource:function(F){var V,oe;(V=e.editable)===null||V===void 0||(oe=V.onValuesChange)===null||oe===void 0||oe.call(V,void 0,F),re.setDataSource(F)}})),xt=Je===null||Je===void 0?void 0:Je.useToken(),wt=xt.token;xa(Z,re,{fullScreen:function(){var F;if(!(!((F=ue.rootDomRef)!==null&&F!==void 0&&F.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var V;(V=ue.rootDomRef)===null||V===void 0||V.current.requestFullscreen()}},onCleanSelected:function(){on()},resetAll:function(){var F;on(),De({}),an({}),ue.setKeyWords(void 0),re.setPageInfo({current:1}),H==null||(F=H.current)===null||F===void 0||F.resetFields(),Te({})},editableUtils:ze}),ue.setAction(Z.current);var Le=S.useMemo(function(){var T;return yt({columns:v,counter:ue,columnEmptyText:B,type:I,marginSM:wt.marginSM,editableUtils:ze,rowKey:O,childrenColumnName:(T=e.expandable)===null||T===void 0?void 0:T.childrenColumnName}).sort(yl(ue.columnsMap))},[v,ue==null?void 0:ue.sortKeyColumns,ue==null?void 0:ue.columnsMap,B,I,ze.editableKeys&&ze.editableKeys.join(",")]);tr(function(){if(Le&&Le.length>0){var T=Le.map(function(F){return ke(F.key,F.index)});ue.setSortKeyColumns(T)}},[Le],["render","renderFormItem"],100),gn(function(){var T=re.pageInfo,F=c||{},V=F.current,oe=V===void 0?T==null?void 0:T.current:V,me=F.pageSize,Ce=me===void 0?T==null?void 0:T.pageSize:me;c&&(oe||Ce)&&(Ce!==(T==null?void 0:T.pageSize)||oe!==(T==null?void 0:T.current))&&re.setPageInfo({pageSize:Ce||T.pageSize,current:oe||T.current})},[c&&c.pageSize,c&&c.current]);var Rt=u(u({selectedRowKeys:le},N),{},{onChange:function(F,V,oe){N&&N.onChange&&N.onChange(F,V,oe),ge(F)}}),He=K!==!1&&(K==null?void 0:K.filterType)==="light",Nn=S.useCallback(function(T){if(E&&E.search){var F,V,oe=E.search===!0?{}:E.search,me=oe.name,Ce=me===void 0?"keyword":me,pe=(F=E.search)===null||F===void 0||(V=F.onSearch)===null||V===void 0?void 0:V.call(F,ue.keyWords);if(pe!==!1){Te(u(u({},T),{},R({},Ce,ue.keyWords)));return}}Te(T)},[ue.keyWords,E,Te]),jn=S.useMemo(function(){if(we(re.loading)==="object"){var T;return((T=re.loading)===null||T===void 0?void 0:T.spinning)||!1}return re.loading},[re.loading]),Fn=S.useMemo(function(){var T=K===!1&&I!=="form"?null:d.jsx(Da,{pagination:ln,beforeSearchSubmit:j,action:Z,columns:v,onFormSearchSubmit:function(V){Nn(V)},ghost:g,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!jn,manualRequest:_,search:K,form:e.form,formRef:H,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter});return ne&&T?d.jsx(d.Fragment,{children:ne(e,T)}):T},[j,H,g,jn,_,Nn,ln,e,v,K,ne,I]),En=S.useMemo(function(){return le==null?void 0:le.map(function(T){var F;return(F=Mn.current)===null||F===void 0?void 0:F.get(T)})},[re.dataSource,le]),Kn=S.useMemo(function(){return E===!1&&!s&&!w&&!L&&!He},[E,s,w,L,He]),Tt=w===!1?null:d.jsx(dl,{headerTitle:s,hideToolbar:Kn,selectedRows:En,selectedRowKeys:le,tableColumn:Le,tooltip:Y,toolbar:L,onFormSearchSubmit:function(F){Te(u(u({},ve),F))},searchNode:He?Fn:null,options:E,optionsRender:x,actionRef:Z,toolBarRender:w}),It=N!==!1?d.jsx(Ea,{selectedRowKeys:le,selectedRows:En,onCleanSelected:on,alertOptionRender:W.tableAlertOptionRender,alertInfoRender:P,alwaysShowAlert:N==null?void 0:N.alwaysShowAlert}):null;return $(d.jsx(Ml,u(u({},e),{},{name:D,defaultClassName:h,size:ue.tableSize,onSizeChange:ue.setTableSize,pagination:ln,searchNode:Fn,rowSelection:N!==!1?Rt:void 0,className:Q,tableColumn:Le,isLightFilter:He,action:re,alertDom:It,toolbarDom:Tt,hideToolbar:Kn,onSortChange:function(F){qe!==F&&an(F??{})},onFilterChange:function(F){F!==ee&&De(F)},editableUtils:ze,getRowKey:We})))},bt=function(e){var r=S.useContext($e.ConfigContext),t=r.getPrefixCls,l=e.ErrorBoundary===!1?fe.Fragment:e.ErrorBoundary||lr;return d.jsx(Ma,{initValue:e,children:d.jsx(nr,{needDeps:!0,children:d.jsx(l,{children:d.jsx(jl,u({defaultClassName:"".concat(t("pro-table"))},e))})})})};bt.Summary=Ae.Summary;const ql=bt;export{ql as P}; diff --git a/web/dist/assets/Table-3849f584.js b/web/dist/assets/Table-3849f584.js deleted file mode 100644 index e4b63b0197190cf83c1a980fa36bd1cbe0f8a0fa..0000000000000000000000000000000000000000 --- a/web/dist/assets/Table-3849f584.js +++ /dev/null @@ -1 +0,0 @@ -import{cl as wn,d8 as Pt,j as d,aC as Mt,_ as u,aW as Ie,d9 as jt,da as Zn,db as en,dc as nn,dd as Oe,de as Qn,df as vn,dg as et,dh as Xe,di as mn,dj as nt,dk as Nt,dl as Ft,dm as Bn,dn as Et,dp as Ln,dq as Kt,dr as un,ds as An,bR as we,w as ye,x as ie,r as S,l as de,o as be,dt as On,n as $n,aU as tn,K as R,cH as Bt,a_ as Re,C as $e,S as Rn,bq as qe,aV as Se,b8 as Fe,E as tt,G as rt,J as at,M as xe,b2 as lt,H as ot,R as fe,aX as je,aM as Lt,aE as At,T as Ee,du as Ot,b5 as Ne,a2 as _e,k as Ke,dv as $t,dw as kt,dx as Dt,a8 as Ye,cc as it,a3 as ut,aa as zt,bm as Je,b as _t,cf as Ze,br as qt,dy as Ut,aY as Wt,dz as Ht,dA as Vt,dB as Gt,bk as Jt,bO as sn,q as kn,i as Xt,dC as gn,a1 as st,dD as Yt,P as dt,O as Zt,aZ as hn,dE as Qt,dF as er,ae as nr,b0 as Ve,bN as tr,dG as rr}from"./umi-2ee4055f.js";import{T as Ae}from"./Table-0e254f81.js";import{P as ar}from"./ProCard-cee316ff.js";import"./index-275c5384.js";import"./index-8ec65540.js";import"./index-e10ebcfa.js";import"./index-d81f4240.js";import{E as lr}from"./index-e7147cef.js";import{a as pn,I as or,g as ir,u as ur,r as sr,e as dr}from"./index-ff6ac5e9.js";import{B as cr}from"./index-c10be21a.js";import{T as fr}from"./index-6395135c.js";import{T as vr}from"./index-8b7fb289.js";import{o as mr}from"./index-6430ced5.js";var ct=function(e){var r=wn(Pt(),"4.24.0")>-1?{menu:e}:{overlay:d.jsx(Mt,u({},e))};return Ie(r)},gr=function(e){var r={};return Object.keys(e||{}).forEach(function(t){var l;Array.isArray(e[t])&&((l=e[t])===null||l===void 0?void 0:l.length)===0||e[t]!==void 0&&(r[t]=e[t])}),r},hr=jt(Object.keys,Object);const pr=hr;var yr=Object.prototype,br=yr.hasOwnProperty;function ft(n){if(!Zn(n))return pr(n);var e=[];for(var r in Object(n))br.call(n,r)&&r!="constructor"&&e.push(r);return e}var Sr=en(nn,"DataView");const yn=Sr;var Cr=en(nn,"Promise");const bn=Cr;var xr=en(nn,"Set");const Sn=xr;var wr=en(nn,"WeakMap");const Cn=wr;var Dn="[object Map]",Rr="[object Object]",zn="[object Promise]",_n="[object Set]",qn="[object WeakMap]",Un="[object DataView]",Tr=Oe(yn),Ir=Oe(vn),Pr=Oe(bn),Mr=Oe(Sn),jr=Oe(Cn),Me=Qn;(yn&&Me(new yn(new ArrayBuffer(1)))!=Un||vn&&Me(new vn)!=Dn||bn&&Me(bn.resolve())!=zn||Sn&&Me(new Sn)!=_n||Cn&&Me(new Cn)!=qn)&&(Me=function(n){var e=Qn(n),r=e==Rr?n.constructor:void 0,t=r?Oe(r):"";if(t)switch(t){case Tr:return Un;case Ir:return Dn;case Pr:return zn;case Mr:return _n;case jr:return qn}return e});const xn=Me;var Nr="[object Map]",Fr="[object Set]",Er=Object.prototype,Kr=Er.hasOwnProperty;function Br(n){if(n==null)return!0;if(et(n)&&(Xe(n)||typeof n=="string"||typeof n.splice=="function"||mn(n)||nt(n)||Nt(n)))return!n.length;var e=xn(n);if(e==Nr||e==Fr)return!n.size;if(Zn(n))return!ft(n).length;for(var r in n)if(Kr.call(n,r))return!1;return!0}var Lr="__lodash_hash_undefined__";function Ar(n){return this.__data__.set(n,Lr),this}function Or(n){return this.__data__.has(n)}function Qe(n){var e=-1,r=n==null?0:n.length;for(this.__data__=new Ft;++eo))return!1;var f=i.get(n),g=i.get(e);if(f&&g)return f==e&&g==n;var c=-1,p=!0,y=r&zr?new Qe:void 0;for(i.set(n,e),i.set(e,n);++c0&&arguments[0]!==void 0?arguments[0]:{},o=S.useRef(),s=S.useRef(null),f=S.useRef(),g=S.useRef(),c=S.useState(""),p=de(c,2),y=p[0],v=p[1],w=S.useRef([]),x=be(function(){return a.size||a.defaultSize||"middle"},{value:a.size,onChange:a.onSizeChange}),C=de(x,2),m=C[0],E=C[1],K=S.useMemo(function(){var h,b;if(a!=null&&(h=a.columnsState)!==null&&h!==void 0&&h.defaultValue)return a.columnsState.defaultValue;var k={};return(b=a.columns)===null||b===void 0||b.forEach(function(I,A){var B=I.key,L=I.dataIndex,O=I.fixed,_=I.disable,U=ke(B??L,A);U&&(k[U]={show:!0,fixed:O,disable:_})}),k},[a.columns]),D=be(function(){var h,b,k=a.columnsState||{},I=k.persistenceType,A=k.persistenceKey;if(A&&I&&typeof window<"u"){var B=window[I];try{var L=B==null?void 0:B.getItem(A);if(L){var O;if(a!=null&&(O=a.columnsState)!==null&&O!==void 0&&O.defaultValue){var _;return On({},a==null||(_=a.columnsState)===null||_===void 0?void 0:_.defaultValue,JSON.parse(L))}return JSON.parse(L)}}catch(U){console.warn(U)}}return a.columnsStateMap||((h=a.columnsState)===null||h===void 0?void 0:h.value)||((b=a.columnsState)===null||b===void 0?void 0:b.defaultValue)||K},{value:((n=a.columnsState)===null||n===void 0?void 0:n.value)||a.columnsStateMap,onChange:((e=a.columnsState)===null||e===void 0?void 0:e.onChange)||a.onColumnsStateChange}),G=de(D,2),M=G[0],j=G[1];S.useEffect(function(){var h=a.columnsState||{},b=h.persistenceType,k=h.persistenceKey;if(k&&b&&typeof window<"u"){var I=window[b];try{var A=I==null?void 0:I.getItem(k);if(A){var B;if(a!=null&&(B=a.columnsState)!==null&&B!==void 0&&B.defaultValue){var L;j(On({},a==null||(L=a.columnsState)===null||L===void 0?void 0:L.defaultValue,JSON.parse(A)))}else j(JSON.parse(A))}else j(K)}catch(O){console.warn(O)}}},[(r=a.columnsState)===null||r===void 0?void 0:r.persistenceKey,(t=a.columnsState)===null||t===void 0?void 0:t.persistenceType,K]),$n(!a.columnsStateMap,"columnsStateMap已经废弃,请使用 columnsState.value 替换"),$n(!a.columnsStateMap,"columnsStateMap has been discarded, please use columnsState.value replacement");var N=S.useCallback(function(){var h=a.columnsState||{},b=h.persistenceType,k=h.persistenceKey;if(!(!k||!b||typeof window>"u")){var I=window[b];try{I==null||I.removeItem(k)}catch(A){console.warn(A)}}},[a.columnsState]);S.useEffect(function(){var h,b;if(!(!((h=a.columnsState)!==null&&h!==void 0&&h.persistenceKey)||!((b=a.columnsState)!==null&&b!==void 0&&b.persistenceType))&&!(typeof window>"u")){var k=a.columnsState,I=k.persistenceType,A=k.persistenceKey,B=window[I];try{B==null||B.setItem(A,JSON.stringify(M))}catch(L){console.warn(L),N()}}},[(l=a.columnsState)===null||l===void 0?void 0:l.persistenceKey,M,(i=a.columnsState)===null||i===void 0?void 0:i.persistenceType]);var P={action:o.current,setAction:function(b){o.current=b},sortKeyColumns:w.current,setSortKeyColumns:function(b){w.current=b},propsRef:g,columnsMap:M,keyWords:y,setKeyWords:function(b){return v(b)},setTableSize:E,tableSize:m,prefixName:f.current,setPrefixName:function(b){f.current=b},setColumnsMap:j,columns:a.columns,rootDomRef:s,clearPersistenceStorage:N,defaultColumnKeyMap:K};return Object.defineProperty(P,"prefixName",{get:function(){return f.current}}),Object.defineProperty(P,"sortKeyColumns",{get:function(){return w.current}}),Object.defineProperty(P,"action",{get:function(){return o.current}}),P}var Pe=S.createContext({}),Ma=function(e){var r=Pa(e.initValue);return d.jsx(Pe.Provider,{value:r,children:e.children})},ja=function(e){return R({},e.componentCls,{marginBlockEnd:16,backgroundColor:Bt(e.colorTextBase,.02),borderRadius:e.borderRadius,border:"none","&-container":{paddingBlock:e.paddingSM,paddingInline:e.paddingLG},"&-info":{display:"flex",alignItems:"center",transition:"all 0.3s",color:e.colorTextTertiary,"&-content":{flex:1},"&-option":{minWidth:48,paddingInlineStart:16}}})};function Na(n){return tn("ProTableAlert",function(e){var r=u(u({},e),{},{componentCls:".".concat(n)});return[ja(r)]})}var Fa=function(e){var r=e.intl,t=e.onCleanSelected;return[d.jsx("a",{onClick:t,children:r.getMessage("alert.clear","清空")},"0")]};function Ea(n){var e=n.selectedRowKeys,r=e===void 0?[]:e,t=n.onCleanSelected,l=n.alwaysShowAlert,i=n.selectedRows,a=n.alertInfoRender,o=a===void 0?function(E){var K=E.intl;return d.jsxs(Rn,{children:[K.getMessage("alert.selected","已选择"),r.length,K.getMessage("alert.item","项"),"  "]})}:a,s=n.alertOptionRender,f=s===void 0?Fa:s,g=Re(),c=f&&f({onCleanSelected:t,selectedRowKeys:r,selectedRows:i,intl:g}),p=S.useContext($e.ConfigContext),y=p.getPrefixCls,v=y("pro-table-alert"),w=Na(v),x=w.wrapSSR,C=w.hashId;if(o===!1)return null;var m=o({intl:g,selectedRowKeys:r,selectedRows:i,onCleanSelected:t});return m===!1||r.length<1&&!l?null:x(d.jsx("div",{className:"".concat(v," ").concat(C).trim(),children:d.jsx("div",{className:"".concat(v,"-container ").concat(C).trim(),children:d.jsxs("div",{className:"".concat(v,"-info ").concat(C).trim(),children:[d.jsx("div",{className:"".concat(v,"-info-content ").concat(C).trim(),children:m}),c?d.jsx("div",{className:"".concat(v,"-info-option ").concat(C).trim(),children:c}):null]})})}))}function Ka(n){var e=n.replace(/[A-Z]/g,function(r){return"-".concat(r.toLowerCase())});return e.startsWith("-")&&(e=e.slice(1)),e}var Ba=function(e,r){return!e&&r!==!1?(r==null?void 0:r.filterType)==="light"?"LightFilter":"QueryFilter":"Form"},La=function(e,r,t){return!e&&t==="LightFilter"?Fe(u({},r),["labelWidth","defaultCollapsed","filterType"]):e?{}:Fe(u({labelWidth:r?r==null?void 0:r.labelWidth:void 0,defaultCollapsed:!0},r),["filterType"])},Aa=function(e,r){return e?Fe(r,["ignoreRules"]):u({ignoreRules:!0},r)},Oa=function(e){var r=e.onSubmit,t=e.formRef,l=e.dateFormatter,i=l===void 0?"string":l,a=e.type,o=e.columns,s=e.action,f=e.ghost,g=e.manualRequest,c=e.onReset,p=e.submitButtonLoading,y=e.search,v=e.form,w=e.bordered,x=S.useContext(qe),C=x.hashId,m=a==="form",E=function(){var h=ye(ie().mark(function b(k,I){return ie().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:r&&r(k,I);case 1:case"end":return B.stop()}},b)}));return function(k,I){return h.apply(this,arguments)}}(),K=S.useContext($e.ConfigContext),D=K.getPrefixCls,G=S.useMemo(function(){return o.filter(function(h){return!(h===Ae.EXPAND_COLUMN||h===Ae.SELECTION_COLUMN||(h.hideInSearch||h.search===!1)&&a!=="form"||a==="form"&&h.hideInForm)}).map(function(h){var b,k=!h.valueType||["textarea","jsonCode","code"].includes(h==null?void 0:h.valueType)&&a==="table"?"text":h==null?void 0:h.valueType,I=(h==null?void 0:h.key)||(h==null||(b=h.dataIndex)===null||b===void 0?void 0:b.toString());return u(u(u({},h),{},{width:void 0},h.search&&we(h.search)==="object"?h.search:{}),{},{valueType:k,proFieldProps:u(u({},h.proFieldProps),{},{proFieldKey:I?"table-field-".concat(I):void 0})})})},[o,a]),M=D("pro-table-search"),j=D("pro-table-form"),N=S.useMemo(function(){return Ba(m,y)},[y,m]),P=S.useMemo(function(){return{submitter:{submitButtonProps:{loading:p}}}},[p]);return d.jsx("div",{className:Se(C,R(R(R(R(R(R(R(R(R({},D("pro-card"),!0),"".concat(D("pro-card"),"-border"),!!w),"".concat(D("pro-card"),"-bordered"),!!w),"".concat(D("pro-card"),"-ghost"),!!f),M,!0),j,m),D("pro-table-search-".concat(Ka(N))),!0),"".concat(M,"-ghost"),f),y==null?void 0:y.className,y!==!1&&(y==null?void 0:y.className))),children:d.jsx(cr,u(u(u(u({layoutType:N,columns:G,type:a},P),La(m,y,N)),Aa(m,v||{})),{},{formRef:t,action:s,dateFormatter:i,onInit:function(b,k){if(t.current=k,a!=="form"){var I,A,B,L=(I=s.current)===null||I===void 0?void 0:I.pageInfo,O=b,_=O.current,U=_===void 0?L==null?void 0:L.current:_,Q=O.pageSize,ae=Q===void 0?L==null?void 0:L.pageSize:Q;if((A=s.current)===null||A===void 0||(B=A.setPageInfo)===null||B===void 0||B.call(A,u(u({},L),{},{current:parseInt(U,10),pageSize:parseInt(ae,10)})),g)return;E(b,!0)}},onReset:function(b){c==null||c(b)},onFinish:function(b){E(b,!1)},initialValues:v==null?void 0:v.initialValues}))})};const $a=Oa;var ka=function(n){tt(r,n);var e=rt(r);function r(){var t;at(this,r);for(var l=arguments.length,i=new Array(l),a=0;a span":{"> span.anticon":{color:e.colorPrimary}},"> span + span":{marginInlineStart:4}}}))};function _a(n){return tn("ColumnSetting",function(e){var r=u(u({},e),{},{componentCls:".".concat(n)});return[za(r)]})}var qa=["key","dataIndex","children"],Ua=["disabled"],cn=function(e){var r=e.title,t=e.show,l=e.children,i=e.columnKey,a=e.fixed,o=S.useContext(Pe),s=o.columnsMap,f=o.setColumnsMap;return t?d.jsx(Ee,{title:r,children:d.jsx("span",{onClick:function(c){c.stopPropagation(),c.preventDefault();var p=s[i]||{},y=u(u({},s),{},R({},i,u(u({},p),{},{fixed:a})));f(y)},children:l})}):null},Wa=function(e){var r=e.columnKey,t=e.isLeaf,l=e.title,i=e.className,a=e.fixed,o=e.showListItemOption,s=Re(),f=S.useContext(qe),g=f.hashId,c=d.jsxs("span",{className:"".concat(i,"-list-item-option ").concat(g).trim(),children:[d.jsx(cn,{columnKey:r,fixed:"left",title:s.getMessage("tableToolBar.leftPin","固定在列首"),show:a!=="left",children:d.jsx($t,{})}),d.jsx(cn,{columnKey:r,fixed:void 0,title:s.getMessage("tableToolBar.noPin","不固定"),show:!!a,children:d.jsx(kt,{})}),d.jsx(cn,{columnKey:r,fixed:"right",title:s.getMessage("tableToolBar.rightPin","固定在列尾"),show:a!=="right",children:d.jsx(Dt,{})})]});return d.jsxs("span",{className:"".concat(i,"-list-item ").concat(g).trim(),children:[d.jsx("div",{className:"".concat(i,"-list-item-title ").concat(g).trim(),children:l}),o&&!t?c:null]},r)},fn=function(e){var r,t,l,i=e.list,a=e.draggable,o=e.checkable,s=e.showListItemOption,f=e.className,g=e.showTitle,c=g===void 0?!0:g,p=e.title,y=e.listHeight,v=y===void 0?280:y,w=S.useContext(qe),x=w.hashId,C=S.useContext(Pe),m=C.columnsMap,E=C.setColumnsMap,K=C.sortKeyColumns,D=C.setSortKeyColumns,G=i&&i.length>0,M=S.useMemo(function(){if(!G)return{};var h=[],b=new Map,k=function I(A,B){return A.map(function(L){var O,_=L.key;L.dataIndex;var U=L.children,Q=Ke(L,qa),ae=ke(_,[B==null?void 0:B.columnKey,Q.index].filter(Boolean).join("-")),J=m[ae||"null"]||{show:!0};J.show!==!1&&!U&&h.push(ae);var ne=u(u({key:ae},Fe(Q,["className"])),{},{selectable:!1,disabled:J.disable===!0,disableCheckbox:typeof J.disable=="boolean"?J.disable:(O=J.disable)===null||O===void 0?void 0:O.checkbox,isLeaf:B?!0:void 0});if(U){var W;ne.children=I(U,u(u({},J),{},{columnKey:ae})),(W=ne.children)!==null&&W!==void 0&&W.every(function(z){return h==null?void 0:h.includes(z.key)})&&h.push(ae)}return b.set(_,ne),ne})};return{list:k(i),keys:h,map:b}},[m,i,G]),j=je(function(h,b,k){var I=u({},m),A=Ne(K),B=A.findIndex(function(U){return U===h}),L=A.findIndex(function(U){return U===b}),O=k>=B;if(!(B<0)){var _=A[B];A.splice(B,1),k===0?A.unshift(_):A.splice(O?L:L+1,0,_),A.forEach(function(U,Q){I[U]=u(u({},I[U]||{}),{},{order:Q})}),E(I),D(A)}}),N=je(function(h){var b=u({},m),k=function I(A){var B,L=u({},b[A]);if(L.show=h.checked,(B=M.map)!==null&&B!==void 0&&(B=B.get(A))!==null&&B!==void 0&&B.children){var O;(O=M.map.get(A))===null||O===void 0||(O=O.children)===null||O===void 0||O.forEach(function(_){return I(_.key)})}b[A]=L};k(h.node.key),E(u({},b))});if(!G)return null;var P=d.jsx(fr,{itemHeight:24,draggable:a&&!!((r=M.list)!==null&&r!==void 0&&r.length)&&((t=M.list)===null||t===void 0?void 0:t.length)>1,checkable:o,onDrop:function(b){var k=b.node.key,I=b.dragNode.key,A=b.dropPosition,B=b.dropToGap,L=A===-1||!B?A+1:A;j(I,k,L)},blockNode:!0,onCheck:function(b,k){return N(k)},checkedKeys:M.keys,showLine:!1,titleRender:function(b){var k=u(u({},b),{},{children:void 0});if(!k.title)return null;var I=_e(k.title,k),A=d.jsx(vr.Text,{style:{width:80},ellipsis:{tooltip:I},children:I});return d.jsx(Wa,u(u({className:f},Fe(k,["key"])),{},{showListItemOption:s,title:A,columnKey:k.key}))},height:v,treeData:(l=M.list)===null||l===void 0?void 0:l.map(function(h){h.disabled;var b=Ke(h,Ua);return b})});return d.jsxs(d.Fragment,{children:[c&&d.jsx("span",{className:"".concat(f,"-list-title ").concat(x).trim(),children:p}),P]})},Ha=function(e){var r=e.localColumns,t=e.className,l=e.draggable,i=e.checkable,a=e.showListItemOption,o=e.listsHeight,s=S.useContext(qe),f=s.hashId,g=[],c=[],p=[],y=Re();r.forEach(function(x){if(!x.hideInSetting){var C=x.fixed;if(C==="left"){c.push(x);return}if(C==="right"){g.push(x);return}p.push(x)}});var v=g&&g.length>0,w=c&&c.length>0;return d.jsxs("div",{className:Se("".concat(t,"-list"),f,R({},"".concat(t,"-list-group"),v||w)),children:[d.jsx(fn,{title:y.getMessage("tableToolBar.leftFixedTitle","固定在左侧"),list:c,draggable:l,checkable:i,showListItemOption:a,className:t,listHeight:o}),d.jsx(fn,{list:p,draggable:l,checkable:i,showListItemOption:a,title:y.getMessage("tableToolBar.noFixedTitle","不固定"),showTitle:w||v,className:t,listHeight:o}),d.jsx(fn,{title:y.getMessage("tableToolBar.rightFixedTitle","固定在右侧"),list:g,draggable:l,checkable:i,showListItemOption:a,className:t,listHeight:o})]})};function Va(n){var e,r,t,l,i=S.useRef(null),a=S.useContext(Pe),o=n.columns,s=n.checkedReset,f=s===void 0?!0:s,g=a.columnsMap,c=a.setColumnsMap,p=a.clearPersistenceStorage;S.useEffect(function(){var N;if((N=a.propsRef.current)!==null&&N!==void 0&&(N=N.columnsState)!==null&&N!==void 0&&N.value){var P;i.current=JSON.parse(JSON.stringify(((P=a.propsRef.current)===null||P===void 0||(P=P.columnsState)===null||P===void 0?void 0:P.value)||{}))}},[]);var y=je(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,P={},h=function b(k){k.forEach(function(I){var A=I.key,B=I.fixed,L=I.index,O=I.children,_=I.disable,U=ke(A,L);if(U){var Q,ae;P[U]={show:_?(Q=g[U])===null||Q===void 0?void 0:Q.show:N,fixed:B,disable:_,order:(ae=g[U])===null||ae===void 0?void 0:ae.order}}O&&b(O)})};h(o),c(P)}),v=je(function(N){N.target.checked?y():y(!1)}),w=je(function(){var N;p==null||p(),c(((N=a.propsRef.current)===null||N===void 0||(N=N.columnsState)===null||N===void 0?void 0:N.defaultValue)||i.current||a.defaultColumnKeyMap)}),x=Object.values(g).filter(function(N){return!N||N.show===!1}),C=x.length>0&&x.length!==o.length,m=Re(),E=S.useContext($e.ConfigContext),K=E.getPrefixCls,D=K("pro-table-column-setting"),G=_a(D),M=G.wrapSSR,j=G.hashId;return M(d.jsx(Lt,{arrow:!1,title:d.jsxs("div",{className:"".concat(D,"-title ").concat(j).trim(),children:[n.checkable===!1?d.jsx("div",{}):d.jsx(At,{indeterminate:C,checked:x.length===0&&x.length!==o.length,onChange:function(P){v(P)},children:m.getMessage("tableToolBar.columnDisplay","列展示")}),f?d.jsx("a",{onClick:w,className:"".concat(D,"-action-rest-button ").concat(j).trim(),children:m.getMessage("tableToolBar.reset","重置")}):null,n!=null&&n.extra?d.jsx(Rn,{size:12,align:"center",children:n.extra}):null]}),overlayClassName:"".concat(D,"-overlay ").concat(j).trim(),trigger:"click",placement:"bottomRight",content:d.jsx(Ha,{checkable:(e=n.checkable)!==null&&e!==void 0?e:!0,draggable:(r=n.draggable)!==null&&r!==void 0?r:!0,showListItemOption:(t=n.showListItemOption)!==null&&t!==void 0?t:!0,className:D,localColumns:o,listsHeight:n.listsHeight}),children:n.children||d.jsx(Ee,{title:m.getMessage("tableToolBar.columnSetting","列设置"),children:(l=n.settingIcon)!==null&&l!==void 0?l:d.jsx(Ot,{})})}))}var Ga=function(e){var r=S.useContext(qe),t=r.hashId,l=e.items,i=l===void 0?[]:l,a=e.type,o=a===void 0?"inline":a,s=e.prefixCls,f=e.activeKey,g=e.defaultActiveKey,c=be(f||g,{value:f,onChange:e.onChange}),p=de(c,2),y=p[0],v=p[1];if(i.length<1)return null;var w=i.find(function(C){return C.key===y})||i[0];if(o==="inline")return d.jsx("div",{className:Se("".concat(s,"-menu"),"".concat(s,"-inline-menu"),t),children:i.map(function(C,m){return d.jsx("div",{onClick:function(){v(C.key)},className:Se("".concat(s,"-inline-menu-item"),w.key===C.key?"".concat(s,"-inline-menu-item-active"):void 0,t),children:C.label},C.key||m)})});if(o==="tab")return d.jsx(Ye,{items:i.map(function(C){var m;return u(u({},C),{},{key:(m=C.key)===null||m===void 0?void 0:m.toString()})}),activeKey:w.key,onTabClick:function(m){return v(m)},children:wn(it,"4.23.0")<0?i==null?void 0:i.map(function(C,m){return S.createElement(Ye.TabPane,u(u({},C),{},{key:C.key||m,tab:C.label}))}):null});var x=ct({selectedKeys:[w.key],onClick:function(m){v(m.key)},items:i.map(function(C,m){return{key:C.key||m,disabled:C.disabled,label:C.label}})});return d.jsx("div",{className:Se("".concat(s,"-menu"),"".concat(s,"-dropdownmenu")),children:d.jsx(ut,u(u({trigger:["click"]},x),{},{children:d.jsxs(Rn,{className:"".concat(s,"-dropdownmenu-label"),children:[w.label,d.jsx(zt,{})]})}))})};const Ja=Ga;var Xa=function(e){return R({},e.componentCls,R(R(R({lineHeight:"1","&-container":{display:"flex",justifyContent:"space-between",paddingBlock:e.padding,paddingInline:0,"&-mobile":{flexDirection:"column"}},"&-title":{display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSizeLG},"&-search:not(:last-child)":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"&-setting-item":{marginBlock:0,marginInline:4,color:e.colorIconHover,fontSize:e.fontSizeLG,cursor:"pointer","> span":{display:"block",width:"100%",height:"100%"},"&:hover":{color:e.colorPrimary}},"&-left":R(R({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.marginXS,justifyContent:"flex-start",maxWidth:"calc(100% - 200px)"},"".concat(e.antCls,"-tabs"),{width:"100%"}),"&-has-tabs",{overflow:"hidden"}),"&-right":{flex:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:e.marginXS},"&-extra-line":{marginBlockEnd:e.margin},"&-setting-items":{display:"flex",gap:e.marginXS,lineHeight:"32px",alignItems:"center"},"&-filter":R({"&:not(:last-child)":{marginInlineEnd:e.margin},display:"flex",alignItems:"center"},"div$".concat(e.antCls,"-pro-table-search"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0}),"&-inline-menu-item":{display:"inline-block",marginInlineEnd:e.marginLG,cursor:"pointer",opacity:"0.75","&-active":{fontWeight:"bold",opacity:"1"}}},"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),R({marginBlockEnd:0,"&::before":{borderBlockEnd:0}},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:0,"${token.antCls}-tabs-tab":{paddingBlockStart:0}})),"&-dropdownmenu-label",{fontWeight:"bold",fontSize:e.fontSizeIcon,textAlign:"center",cursor:"pointer"}),"@media (max-width: 768px)",R({},e.componentCls,{"&-container":{display:"flex",flexWrap:"wrap",flexDirection:"column"},"&-left":{marginBlockEnd:"16px",maxWidth:"100%"}})))};function Ya(n){return tn("ProTableListToolBar",function(e){var r=u(u({},e),{},{componentCls:".".concat(n)});return[Xa(r)]})}function Za(n){if(fe.isValidElement(n))return n;if(n){var e=n,r=e.icon,t=e.tooltip,l=e.onClick,i=e.key;return r&&t?d.jsx(Ee,{title:t,children:d.jsx("span",{onClick:function(){l&&l(i)},children:r},i)}):d.jsx("span",{onClick:function(){l&&l(i)},children:r},i)}return null}var Qa=function(e){var r,t=e.prefixCls,l=e.tabs,i=e.multipleLine,a=e.filtersNode;return i?d.jsx("div",{className:"".concat(t,"-extra-line"),children:l!=null&&l.items&&l!==null&&l!==void 0&&l.items.length?d.jsx(Ye,{style:{width:"100%"},defaultActiveKey:l.defaultActiveKey,activeKey:l.activeKey,items:l.items.map(function(o,s){var f;return u(u({label:o.tab},o),{},{key:((f=o.key)===null||f===void 0?void 0:f.toString())||(s==null?void 0:s.toString())})}),onChange:l.onChange,tabBarExtraContent:a,children:(r=l.items)===null||r===void 0?void 0:r.map(function(o,s){return wn(it,"4.23.0")<0?S.createElement(Ye.TabPane,u(u({},o),{},{key:o.key||s,tab:o.tab})):null})}):a}):null},el=function(e){var r=e.prefixCls,t=e.title,l=e.subTitle,i=e.tooltip,a=e.className,o=e.style,s=e.search,f=e.onSearch,g=e.multipleLine,c=g===void 0?!1:g,p=e.filter,y=e.actions,v=y===void 0?[]:y,w=e.settings,x=w===void 0?[]:w,C=e.tabs,m=e.menu,E=S.useContext($e.ConfigContext),K=E.getPrefixCls,D=Je.useToken(),G=D.token,M=K("pro-table-list-toolbar",r),j=Ya(M),N=j.wrapSSR,P=j.hashId,h=Re(),b=S.useState(!1),k=de(b,2),I=k[0],A=k[1],B=h.getMessage("tableForm.inputPlaceholder","请输入"),L=S.useMemo(function(){return s?fe.isValidElement(s)?s:d.jsx(_t.Search,u(u({style:{width:200},placeholder:B},s),{},{onSearch:ye(ie().mark(function z(){var $,q,Y,Z,te,H,ce=arguments;return ie().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:for(Y=ce.length,Z=new Array(Y),te=0;tea":{fontSize:e.fontSize}}),"".concat(e.antCls,"-table").concat(e.antCls,"-table-tbody").concat(e.antCls,"-table-wrapper:only-child").concat(e.antCls,"-table"),{marginBlock:0,marginInline:0}),"".concat(e.antCls,"-table").concat(e.antCls,"-table-middle ").concat(e.componentCls),R({marginBlock:0,marginInline:-8},"".concat(e.proComponentsCls,"-card"),{backgroundColor:"initial"})),"& &-search",R(R(R(R({marginBlockEnd:"16px",background:e.colorBgContainer,"&-ghost":{background:"transparent"}},"&".concat(e.componentCls,"-form"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:16,overflow:"unset"}),"&-light-filter",{marginBlockEnd:0,paddingBlock:0,paddingInline:0}),"&-form-option",R(R(R({},"".concat(e.antCls,"-form-item"),{}),"".concat(e.antCls,"-form-item-label"),{}),"".concat(e.antCls,"-form-item-control-input"),{})),"@media (max-width: 575px)",R({},e.componentCls,R({height:"auto !important",paddingBlockEnd:"24px"},"".concat(e.antCls,"-form-item-label"),{minWidth:"80px",textAlign:"start"})))),"&-toolbar",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"64px",paddingInline:24,paddingBlock:0,"&-option":{display:"flex",alignItems:"center",justifyContent:"flex-end"},"&-title":{flex:"1",color:e.colorTextLabel,fontWeight:"500",fontSize:"16px",lineHeight:"24px",opacity:"0.85"}})),"@media (max-width: ".concat(e.screenXS,")px"),R({},e.componentCls,R({},"".concat(e.antCls,"-table"),{width:"100%",overflowX:"auto","&-thead > tr,&-tbody > tr":{"> th,> td":{whiteSpace:"pre",">span":{display:"block"}}}}))),"@media (max-width: 575px)",R({},"".concat(e.componentCls,"-toolbar"),{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",height:"auto",marginBlockEnd:"16px",marginInlineStart:"16px",paddingBlock:8,paddingInline:8,paddingBlockStart:"16px",lineHeight:"normal","&-title":{marginBlockEnd:16},"&-option":{display:"flex",justifyContent:"space-between",width:"100%"},"&-default-option":{display:"flex",flex:"1",alignItems:"center",justifyContent:"flex-end"}}))};function vl(n){return tn("ProTable",function(e){var r=u(u({},e),{},{componentCls:".".concat(n)});return[fl(r)]})}var ml=["data","success","total"],gl=function(e){var r=e.pageInfo;if(r){var t=r.current,l=r.defaultCurrent,i=r.pageSize,a=r.defaultPageSize;return{current:t||l||1,total:0,pageSize:i||a||20}}return{current:1,total:0,pageSize:20}},hl=function(e,r,t){var l,i=S.useRef(!1),a=S.useRef(null),o=t||{},s=o.onLoad,f=o.manual,g=o.polling,c=o.onRequestError,p=o.debounceTime,y=p===void 0?20:p,v=o.effects,w=v===void 0?[]:v,x=S.useRef(f),C=S.useRef(),m=be(r,{value:t==null?void 0:t.dataSource,onChange:t==null?void 0:t.onDataSourceChange}),E=de(m,2),K=E[0],D=E[1],G=be(!1,{value:we(t==null?void 0:t.loading)==="object"?t==null||(l=t.loading)===null||l===void 0?void 0:l.spinning:t==null?void 0:t.loading,onChange:t==null?void 0:t.onLoadingChange}),M=de(G,2),j=M[0],N=M[1],P=be(function(){return gl(t)},{onChange:t==null?void 0:t.onPageInfoChange}),h=de(P,2),b=h[0],k=h[1],I=je(function($){($.current!==b.current||$.pageSize!==b.pageSize||$.total!==b.total)&&k($)}),A=be(!1),B=de(A,2),L=B[0],O=B[1],_=function(q,Y){kn.unstable_batchedUpdates(function(){D(q),(b==null?void 0:b.total)!==Y&&I(u(u({},b),{},{total:Y||q.length}))})},U=sn(b==null?void 0:b.current),Q=sn(b==null?void 0:b.pageSize),ae=sn(g),J=je(function(){kn.unstable_batchedUpdates(function(){N(!1),O(!1)})}),ne=function(){var $=ye(ie().mark(function q(Y){var Z,te,H,ce,X,le,ge,se,he,ve,Te,Be;return ie().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(!x.current){ee.next=3;break}return x.current=!1,ee.abrupt("return");case 3:return Y?O(!0):N(!0),Z=b||{},te=Z.pageSize,H=Z.current,ee.prev=5,ce=(t==null?void 0:t.pageInfo)!==!1?{current:H,pageSize:te}:void 0,ee.next=9,e==null?void 0:e(ce);case 9:if(ee.t0=ee.sent,ee.t0){ee.next=12;break}ee.t0={};case 12:if(X=ee.t0,le=X.data,ge=le===void 0?[]:le,se=X.success,he=X.total,ve=he===void 0?0:he,Te=Ke(X,ml),se!==!1){ee.next=21;break}return ee.abrupt("return",[]);case 21:return Be=wa(ge,[t.postData].filter(function(De){return De})),_(Be,ve),s==null||s(Be,Te),ee.abrupt("return",Be);case 27:if(ee.prev=27,ee.t1=ee.catch(5),c!==void 0){ee.next=31;break}throw new Error(ee.t1);case 31:K===void 0&&D([]),c(ee.t1);case 33:return ee.prev=33,J(),ee.finish(33);case 36:return ee.abrupt("return",[]);case 37:case"end":return ee.stop()}},q,null,[[5,27,33,36]])}));return function(Y){return $.apply(this,arguments)}}(),W=Xt(function(){var $=ye(ie().mark(function q(Y){var Z,te,H;return ie().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(C.current&&clearTimeout(C.current),e){X.next=3;break}return X.abrupt("return");case 3:return Z=new AbortController,a.current=Z,X.prev=5,X.next=8,Promise.race([ne(Y),new Promise(function(le,ge){var se,he;(se=a.current)===null||se===void 0||(se=se.signal)===null||se===void 0||(he=se.addEventListener)===null||he===void 0||he.call(se,"abort",function(){ge("aborted"),W.cancel(),J()})})]);case 8:if(te=X.sent,!Z.signal.aborted){X.next=11;break}return X.abrupt("return");case 11:return H=_e(g,te),H&&!i.current&&(C.current=setTimeout(function(){W.run(H)},Math.max(H,2e3))),X.abrupt("return",te);case 16:if(X.prev=16,X.t0=X.catch(5),X.t0!=="aborted"){X.next=20;break}return X.abrupt("return");case 20:throw X.t0;case 21:case"end":return X.stop()}},q,null,[[5,16]])}));return function(q){return $.apply(this,arguments)}}(),y||30),z=function(){var q;(q=a.current)===null||q===void 0||q.abort(),W.cancel(),J()};return S.useEffect(function(){return g||clearTimeout(C.current),!ae&&g&&W.run(!0),function(){clearTimeout(C.current)}},[g]),S.useEffect(function(){return i.current=!1,function(){i.current=!0}},[]),S.useEffect(function(){var $=b||{},q=$.current,Y=$.pageSize;(!U||U===q)&&(!Q||Q===Y)||t.pageInfo&&K&&(K==null?void 0:K.length)>Y||q!==void 0&&K&&K.length<=Y&&(z(),W.run(!1))},[b==null?void 0:b.current]),S.useEffect(function(){Q&&(z(),W.run(!1))},[b==null?void 0:b.pageSize]),gn(function(){return z(),W.run(!1),f||(x.current=!1),function(){z()}},[].concat(Ne(w),[f])),{dataSource:K,setDataSource:D,loading:we(t==null?void 0:t.loading)==="object"?u(u({},t==null?void 0:t.loading),{},{spinning:j}):j,reload:function(){var $=ye(ie().mark(function Y(){return ie().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return z(),te.abrupt("return",W.run(!1));case 2:case"end":return te.stop()}},Y)}));function q(){return $.apply(this,arguments)}return q}(),pageInfo:b,pollingLoading:L,reset:function(){var $=ye(ie().mark(function Y(){var Z,te,H,ce,X,le,ge,se;return ie().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:Z=t||{},te=Z.pageInfo,H=te||{},ce=H.defaultCurrent,X=ce===void 0?1:ce,le=H.defaultPageSize,ge=le===void 0?20:le,se={current:X,total:0,pageSize:ge},I(se);case 4:case"end":return ve.stop()}},Y)}));function q(){return $.apply(this,arguments)}return q}(),setPageInfo:function(){var $=ye(ie().mark(function Y(Z){return ie().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:I(u(u({},b),Z));case 1:case"end":return H.stop()}},Y)}));function q(Y){return $.apply(this,arguments)}return q}()}};const pl=hl;var yl=function(e){return function(r,t){var l,i,a=r.fixed,o=r.index,s=t.fixed,f=t.index;if(a==="left"&&s!=="left"||s==="right"&&a!=="right")return-2;if(s==="left"&&a!=="left"||a==="right"&&s!=="right")return 2;var g=r.key||"".concat(o),c=t.key||"".concat(f);if((l=e[g])!==null&&l!==void 0&&l.order||(i=e[c])!==null&&i!==void 0&&i.order){var p,y;return(((p=e[g])===null||p===void 0?void 0:p.order)||0)-(((y=e[c])===null||y===void 0?void 0:y.order)||0)}return(r.index||0)-(t.index||0)}},bl=["children"],Sl=["",null,void 0],Yn=function(){for(var e=arguments.length,r=new Array(e),t=0;tH.length?(H.push($),H):(H.splice((o==null?void 0:o.current)*(o==null?void 0:o.pageSize)-1,0,$),H)}return[].concat(Ne(l.dataSource),[$])},I=function(){return u(u({},N),{},{size:f,rowSelection:s===!1?void 0:s,className:r,style:g,columns:h,loading:l.loading,dataSource:M.newLineRecord?k(l.dataSource):l.dataSource,pagination:o,onChange:function(W,z,$,q){var Y;if((Y=N.onChange)===null||Y===void 0||Y.call(N,W,z,$,q),b||m(Ie(z)),Array.isArray($)){var Z=$.reduce(function(X,le){return u(u({},X),{},R({},"".concat(le.field),le.order))},{});C(Ie(Z))}else{var te,H=(te=$.column)===null||te===void 0?void 0:te.sorter,ce=(H==null?void 0:H.toString())===H;C(Ie(R({},"".concat(ce?H:$.field),$.order)))}}})},A=S.useMemo(function(){return n.search===!1&&!n.headerTitle&&n.toolBarRender===!1},[]),B=d.jsx(rr.Provider,{value:{grid:!1,colProps:void 0,rowProps:void 0},children:d.jsx(Ae,u(u({},I()),{},{rowKey:e}))}),L=n.tableViewRender?n.tableViewRender(u(u({},I()),{},{rowSelection:s!==!1?s:void 0}),B):B,O=S.useMemo(function(){if(n.editable&&!n.name){var J,ne,W;return d.jsxs(d.Fragment,{children:[c,x,S.createElement(dt,u(u({},(J=n.editable)===null||J===void 0?void 0:J.formProps),{},{formRef:(ne=n.editable)===null||ne===void 0||(ne=ne.formProps)===null||ne===void 0?void 0:ne.formRef,component:!1,form:(W=n.editable)===null||W===void 0?void 0:W.form,onValuesChange:M.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:n.dateFormatter}),L)]})}return d.jsxs(d.Fragment,{children:[c,x,L]})},[x,n.loading,!!n.editable,L,c]),_=S.useMemo(function(){return w===!1||A===!0||n.name?{}:p?{padding:0}:c?{paddingBlockStart:0}:c&&o===!1?{paddingBlockStart:0}:{padding:0}},[A,o,n.name,w,c,p]),U=w===!1||A===!0||n.name?O:d.jsx(ar,u(u({ghost:n.ghost,bordered:gt("table",G),bodyStyle:_},w),{},{children:O})),Q=function(){return n.tableRender?n.tableRender(n,U,{toolbar:c||void 0,alert:x||void 0,table:L||void 0}):U},ae=d.jsxs("div",{className:Se(D,R({},"".concat(t,"-polling"),l.pollingLoading)),style:v,ref:P.rootDomRef,children:[K?null:y,a!=="form"&&n.tableExtraRender&&d.jsx("div",{className:Se(D,"".concat(t,"-extra")),children:n.tableExtraRender(n,l.dataSource||[])}),a!=="form"&&Q()]});return!E||!(E!=null&&E.fullScreen)?ae:d.jsx($e,{getPopupContainer:function(){return P.rootDomRef.current||document.body},children:ae})}var jl={},Nl=function(e){var r;e.cardBordered;var t=e.request,l=e.className,i=e.params,a=i===void 0?jl:i,o=e.defaultData,s=e.headerTitle,f=e.postData,g=e.ghost,c=e.pagination,p=e.actionRef,y=e.columns,v=y===void 0?[]:y,w=e.toolBarRender,x=e.optionsRender,C=e.onLoad,m=e.onRequestError;e.style,e.cardProps,e.tableStyle,e.tableClassName,e.columnsStateMap,e.onColumnsStateChange;var E=e.options,K=e.search,D=e.name,G=e.onLoadingChange,M=e.rowSelection,j=M===void 0?!1:M,N=e.beforeSearchSubmit,P=e.tableAlertRender,h=e.defaultClassName,b=e.formRef,k=e.type,I=k===void 0?"table":k,A=e.columnEmptyText,B=A===void 0?"-":A,L=e.toolbar,O=e.rowKey,_=e.manualRequest,U=e.polling,Q=e.tooltip,ae=e.revalidateOnFocus,J=ae===void 0?!1:ae,ne=e.searchFormRender,W=Ke(e,Pl),z=vl(e.defaultClassName),$=z.wrapSSR,q=z.hashId,Y=Se(h,l,q),Z=S.useRef(),te=S.useRef(),H=b||te;S.useImperativeHandle(p,function(){return Z.current});var ce=be(j?(j==null?void 0:j.defaultSelectedRowKeys)||[]:void 0,{value:j?j.selectedRowKeys:void 0}),X=de(ce,2),le=X[0],ge=X[1],se=be(function(){if(!(_||K!==!1))return{}}),he=de(se,2),ve=he[0],Te=he[1],Be=be({}),rn=de(Be,2),ee=rn[0],De=rn[1],St=be({}),Tn=de(St,2),Ue=Tn[0],an=Tn[1];S.useEffect(function(){var T=Ia(v),F=T.sort,V=T.filter;De(V),an(F)},[]);var In=Re(),Ct=we(c)==="object"?c:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},ue=S.useContext(Pe),Pn=S.useMemo(function(){if(t)return function(){var T=ye(ie().mark(function F(V){var oe,me;return ie().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return oe=u(u(u({},V||{}),ve),a),delete oe._timestamp,pe.next=4,t(oe,Ue,ee);case 4:return me=pe.sent,pe.abrupt("return",me);case 6:case"end":return pe.stop()}},F)}));return function(F){return T.apply(this,arguments)}}()},[ve,a,ee,Ue,t]),re=pl(Pn,o,{pageInfo:c===!1?!1:Ct,loading:e.loading,dataSource:e.dataSource,onDataSourceChange:e.onDataSourceChange,onLoad:C,onLoadingChange:G,onRequestError:m,postData:f,revalidateOnFocus:J,manual:ve===void 0,polling:U,effects:[Ve(a),Ve(ve),Ve(ee),Ve(Ue)],debounceTime:e.debounceTime,onPageInfoChange:function(F){var V,oe;!c||!Pn||(c==null||(V=c.onChange)===null||V===void 0||V.call(c,F.current,F.pageSize),c==null||(oe=c.onShowSizeChange)===null||oe===void 0||oe.call(c,F.current,F.pageSize))}});S.useEffect(function(){var T;if(!(e.manualRequest||!e.request||!J||(T=e.form)!==null&&T!==void 0&&T.ignoreRules)){var F=function(){document.visibilityState==="visible"&&re.reload()};return document.addEventListener("visibilitychange",F),function(){return document.removeEventListener("visibilitychange",F)}}},[]);var Mn=fe.useRef(new Map),We=fe.useMemo(function(){return typeof O=="function"?O:function(T,F){var V;return F===-1?T==null?void 0:T[O]:e.name?F==null?void 0:F.toString():(V=T==null?void 0:T[O])!==null&&V!==void 0?V:F==null?void 0:F.toString()}},[e.name,O]);S.useMemo(function(){var T;if((T=re.dataSource)!==null&&T!==void 0&&T.length){var F=re.dataSource.map(function(V){var oe=We(V,-1);return Mn.current.set(oe,V),oe});return F}return[]},[re.dataSource,We]);var ln=S.useMemo(function(){var T=c===!1?!1:u({},c),F=u(u({},re.pageInfo),{},{setPageInfo:function(oe){var me=oe.pageSize,Ce=oe.current,pe=re.pageInfo;if(me===pe.pageSize||pe.current===1){re.setPageInfo({pageSize:me,current:Ce});return}t&&re.setDataSource([]),re.setPageInfo({pageSize:me,current:I==="list"?Ce:1})}});return t&&T&&(delete T.onChange,delete T.onShowSizeChange),Ca(T,F,In)},[c,re,In]);gn(function(){var T;e.request&&!Br(a)&&re.dataSource&&!Sa(re.dataSource,o)&&(re==null||(T=re.pageInfo)===null||T===void 0?void 0:T.current)!==1&&re.setPageInfo({current:1})},[a]),ue.setPrefixName(e.name);var on=S.useCallback(function(){j&&j.onChange&&j.onChange([],[],{type:"none"}),ge([])},[j,ge]);ue.propsRef.current=e;var ze=ur(u(u({},e.editable),{},{tableName:e.name,getRowKey:We,childrenColumnName:((r=e.expandable)===null||r===void 0?void 0:r.childrenColumnName)||"children",dataSource:re.dataSource||[],setDataSource:function(F){var V,oe;(V=e.editable)===null||V===void 0||(oe=V.onValuesChange)===null||oe===void 0||oe.call(V,void 0,F),re.setDataSource(F)}})),xt=Je===null||Je===void 0?void 0:Je.useToken(),wt=xt.token;xa(Z,re,{fullScreen:function(){var F;if(!(!((F=ue.rootDomRef)!==null&&F!==void 0&&F.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var V;(V=ue.rootDomRef)===null||V===void 0||V.current.requestFullscreen()}},onCleanSelected:function(){on()},resetAll:function(){var F;on(),De({}),an({}),ue.setKeyWords(void 0),re.setPageInfo({current:1}),H==null||(F=H.current)===null||F===void 0||F.resetFields(),Te({})},editableUtils:ze}),ue.setAction(Z.current);var Le=S.useMemo(function(){var T;return yt({columns:v,counter:ue,columnEmptyText:B,type:I,marginSM:wt.marginSM,editableUtils:ze,rowKey:O,childrenColumnName:(T=e.expandable)===null||T===void 0?void 0:T.childrenColumnName}).sort(yl(ue.columnsMap))},[v,ue==null?void 0:ue.sortKeyColumns,ue==null?void 0:ue.columnsMap,B,I,ze.editableKeys&&ze.editableKeys.join(",")]);tr(function(){if(Le&&Le.length>0){var T=Le.map(function(F){return ke(F.key,F.index)});ue.setSortKeyColumns(T)}},[Le],["render","renderFormItem"],100),gn(function(){var T=re.pageInfo,F=c||{},V=F.current,oe=V===void 0?T==null?void 0:T.current:V,me=F.pageSize,Ce=me===void 0?T==null?void 0:T.pageSize:me;c&&(oe||Ce)&&(Ce!==(T==null?void 0:T.pageSize)||oe!==(T==null?void 0:T.current))&&re.setPageInfo({pageSize:Ce||T.pageSize,current:oe||T.current})},[c&&c.pageSize,c&&c.current]);var Rt=u(u({selectedRowKeys:le},j),{},{onChange:function(F,V,oe){j&&j.onChange&&j.onChange(F,V,oe),ge(F)}}),He=K!==!1&&(K==null?void 0:K.filterType)==="light",jn=S.useCallback(function(T){if(E&&E.search){var F,V,oe=E.search===!0?{}:E.search,me=oe.name,Ce=me===void 0?"keyword":me,pe=(F=E.search)===null||F===void 0||(V=F.onSearch)===null||V===void 0?void 0:V.call(F,ue.keyWords);if(pe!==!1){Te(u(u({},T),{},R({},Ce,ue.keyWords)));return}}Te(T)},[ue.keyWords,E,Te]),Nn=S.useMemo(function(){if(we(re.loading)==="object"){var T;return((T=re.loading)===null||T===void 0?void 0:T.spinning)||!1}return re.loading},[re.loading]),Fn=S.useMemo(function(){var T=K===!1&&I!=="form"?null:d.jsx(Da,{pagination:ln,beforeSearchSubmit:N,action:Z,columns:v,onFormSearchSubmit:function(V){jn(V)},ghost:g,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!Nn,manualRequest:_,search:K,form:e.form,formRef:H,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter});return ne&&T?d.jsx(d.Fragment,{children:ne(e,T)}):T},[N,H,g,Nn,_,jn,ln,e,v,K,ne,I]),En=S.useMemo(function(){return le==null?void 0:le.map(function(T){var F;return(F=Mn.current)===null||F===void 0?void 0:F.get(T)})},[re.dataSource,le]),Kn=S.useMemo(function(){return E===!1&&!s&&!w&&!L&&!He},[E,s,w,L,He]),Tt=w===!1?null:d.jsx(dl,{headerTitle:s,hideToolbar:Kn,selectedRows:En,selectedRowKeys:le,tableColumn:Le,tooltip:Q,toolbar:L,onFormSearchSubmit:function(F){Te(u(u({},ve),F))},searchNode:He?Fn:null,options:E,optionsRender:x,actionRef:Z,toolBarRender:w}),It=j!==!1?d.jsx(Ea,{selectedRowKeys:le,selectedRows:En,onCleanSelected:on,alertOptionRender:W.tableAlertOptionRender,alertInfoRender:P,alwaysShowAlert:j==null?void 0:j.alwaysShowAlert}):null;return $(d.jsx(Ml,u(u({},e),{},{name:D,defaultClassName:h,size:ue.tableSize,onSizeChange:ue.setTableSize,pagination:ln,searchNode:Fn,rowSelection:j!==!1?Rt:void 0,className:Y,tableColumn:Le,isLightFilter:He,action:re,alertDom:It,toolbarDom:Tt,hideToolbar:Kn,onSortChange:function(F){Ue!==F&&an(F??{})},onFilterChange:function(F){F!==ee&&De(F)},editableUtils:ze,getRowKey:We})))},bt=function(e){var r=S.useContext($e.ConfigContext),t=r.getPrefixCls,l=e.ErrorBoundary===!1?fe.Fragment:e.ErrorBoundary||lr;return d.jsx(Ma,{initValue:e,children:d.jsx(nr,{needDeps:!0,children:d.jsx(l,{children:d.jsx(Nl,u({defaultClassName:"".concat(t("pro-table"))},e))})})})};bt.Summary=Ae.Summary;const Ul=bt;export{Ul as P}; diff --git a/web/dist/assets/TableConfigContext-e116ad0a.js b/web/dist/assets/TableConfigContext-596283a5.js similarity index 31% rename from web/dist/assets/TableConfigContext-e116ad0a.js rename to web/dist/assets/TableConfigContext-596283a5.js index 693e24e75ab267757213c0eae24ebcb37fe6b787..58487f8e28c764a79e739f59015080755ce85e41 100644 --- a/web/dist/assets/TableConfigContext-e116ad0a.js +++ b/web/dist/assets/TableConfigContext-596283a5.js @@ -1 +1 @@ -import{r as t}from"./umi-2ee4055f.js";const o=t.createContext(null),n=o;export{n as default}; +import{b as t}from"./umi-5f6aeac9.js";const o=t.createContext(null),n=o;export{n as default}; diff --git a/web/dist/assets/TableEditor-0d731bc8.js b/web/dist/assets/TableEditor-0d731bc8.js new file mode 100644 index 0000000000000000000000000000000000000000..95bc49613b79d7e284cf77cd607cac4a023a8679 --- /dev/null +++ b/web/dist/assets/TableEditor-0d731bc8.js @@ -0,0 +1 @@ +import{b as s,j as o,B as g,G as x}from"./umi-5f6aeac9.js";import{F as y}from"./index-6613242c.js";import{P as b}from"./ProCard-a8f5c5a9.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./styleChecker-68f8791b.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./index-13cae3f4.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-25e4c7e3.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-46da21dc.js";import"./index-55505f41.js";const F=()=>new Array(2).fill(1).map((i,e)=>({id:e+Math.random(),label:"",value:""})),Q=i=>{var l,p;const{form:e,code:a}=i,r=s.useRef(((p=(l=e.getFieldValue(a))==null?void 0:l.map)==null?void 0:p.call(l,(t,n)=>({...t,id:n+Math.random()})))||F()),d=t=>{r.current=t,e.setFieldsValue({[a]:m(r.current)})},[u,c]=s.useState(()=>r.current.map(({id:t})=>t)),f=[{title:"名称",dataIndex:"label",width:"30%"},{title:"值",dataIndex:"value",formItemProps:{rules:[{required:!0,whitespace:!0,message:"此项是必填项"}]}},{title:"操作",valueType:"option",render:()=>null}];return o.jsxs(o.Fragment,{children:[o.jsx(y,{columns:f,rowKey:"id",value:r.current,onChange:d,recordCreatorProps:{newRecordType:"dataSource",record:()=>({id:r.current.length+Math.random(),label:"",value:""})},toolBarRender:()=>[o.jsx(g,{type:"primary",onClick:()=>{e.setFieldsValue({[a]:m(r.current)})},children:"保存数据"},"save")],editable:{type:"multiple",editableKeys:u,actionRender:(t,n,h)=>[h.delete],onValuesChange:(t,n)=>{d(n)},onChange:c}}),o.jsx(b,{title:"数据",headerBordered:!0,collapsible:!0,defaultCollapsed:!0,children:o.jsx(x,{ignoreFormItem:!0,fieldProps:{style:{width:"100%"}},mode:"read",valueType:"jsonCode",text:JSON.stringify(m(r.current))})})]})};function m(i=[]){return i.filter(({value:e})=>e!==void 0&&e!=="").map(({value:e,label:a})=>({value:e,label:a}))}export{Q as TableEditor}; diff --git a/web/dist/assets/TableSetting-c5f56375.js b/web/dist/assets/TableSetting-0a0a2439.js similarity index 88% rename from web/dist/assets/TableSetting-c5f56375.js rename to web/dist/assets/TableSetting-0a0a2439.js index 1460dbd3a46b9ab37f0b5e941941119758310dc4..ea9126160ba799bd707d2a19f3f346e59c1edc08 100644 --- a/web/dist/assets/TableSetting-c5f56375.js +++ b/web/dist/assets/TableSetting-0a0a2439.js @@ -1 +1 @@ -import{r as o,i as p,j as a}from"./umi-2ee4055f.js";import{T as l}from"./index-8b7fb289.js";import d from"./TableConfigContext-e116ad0a.js";import{B as u}from"./index-c10be21a.js";import"./styleChecker-0860b7b3.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";const c={bordered:!1,size:"middle",showHeader:!1,rowSelectionShow:!1,addShow:!1,deleteShow:!1,editShow:!1,optionsShow:!0,options:{density:!0,search:!1,fullScreen:!1,setting:!0,reload:!0},headerTitle:"表格标题",tooltip:"表格 tooltip",searchShow:!0,search:{searchText:"查询",resetText:"重置",span:6,layout:"vertical",filterType:"query"},paginationShow:!0,pagination:{size:"default"}},h=[{valueType:"text",renderFormItem:()=>a.jsx(l.Title,{level:5,style:{margin:0},children:"表格设置"})},{title:"表格标题",valueType:"text",dataIndex:"headerTitle"},{title:"表格提示",valueType:"text",dataIndex:"tooltip"},{title:"表格尺寸",valueType:"radio",dataIndex:"size",valueEnum:new Map([["default","大"],["middle","中"],["small","小"]])},{valueType:"text",renderFormItem:()=>a.jsx(l.Title,{level:5,style:{margin:0},children:"功能开关"})},{title:"表格多选",valueType:"switch",dataIndex:"rowSelectionShow",colProps:{span:8}},{title:"表格新增",valueType:"switch",dataIndex:"addShow",colProps:{span:8}},{title:"表格删除",valueType:"switch",dataIndex:"deleteShow",colProps:{span:8}},{title:"表格编辑",valueType:"switch",dataIndex:"editShow",colProps:{span:8}},{title:"表格边框",valueType:"switch",dataIndex:"bordered",colProps:{span:8}},{title:"显示标题",valueType:"switch",dataIndex:"showHeader",colProps:{span:8}},{valueType:"text",renderFormItem:()=>a.jsx(l.Title,{level:5,style:{margin:0},children:"查询配置"})},{title:"表格查询",valueType:"switch",dataIndex:"searchShow",colProps:{span:8}},{valueType:"dependency",name:["searchShow"],columns:({searchShow:t})=>t===!1?[]:[{title:"重置按钮文案",valueType:"text",dataIndex:["search","resetText"]},{title:"查询按钮文案",valueType:"text",dataIndex:["search","searchText"]},{title:"表单栅格",valueType:"radio",dataIndex:["search","span"],valueEnum:new Map([[24,24],[12,12],[8,8],[6,6]])},{title:"表单布局",valueType:"radioButton",dataIndex:["search","layout"],fieldProps:{size:"small"},valueEnum:new Map([["vertical","垂直"],["horizontal","水平"]]),colProps:{span:12}},{title:"表单类型",valueType:"radioButton",dataIndex:["search","filterType"],valueEnum:new Map([["query","默认"],["light","轻量"]]),fieldProps:{size:"small"},colProps:{span:12}}]},{valueType:"text",renderFormItem:()=>a.jsx(l.Title,{level:5,style:{margin:0},children:"操作栏配置"})},{title:"启用状态",valueType:"switch",dataIndex:"optionsShow",colProps:{span:8}},{valueType:"dependency",name:["optionsShow"],columns:({optionsShow:t})=>t===!1?[]:[{title:"刷新按钮",valueType:"switch",dataIndex:["options","reload"],colProps:{span:8}},{title:"密度按钮",valueType:"switch",dataIndex:["options","density"],colProps:{span:8}},{title:"一键搜索",valueType:"switch",dataIndex:["options","search"],colProps:{span:8}},{title:"全屏按钮",valueType:"switch",dataIndex:["options","fullScreen"],colProps:{span:8}},{title:"列设置",valueType:"switch",dataIndex:["options","setting"],colProps:{span:8}}]},{valueType:"text",renderFormItem:()=>a.jsx(l.Title,{level:5,style:{margin:0},children:"分页配置"})},{title:"启用状态",valueType:"switch",dataIndex:"paginationShow",colProps:{span:12}},{valueType:"dependency",name:["paginationShow"],columns:({paginationShow:t})=>t===!1?[]:[{title:"分页尺寸",valueType:"radioButton",dataIndex:["pagination","size"],valueEnum:new Map([["default","默认"],["small","小"]]),fieldProps:{size:"small"},colProps:{span:12}},{title:"简介分页",valueType:"switch",dataIndex:["pagination","simple"],colProps:{span:12}}]}],z=()=>{const{tableConfig:t,setTableConfig:i}=o.useContext(d),s=p(async e=>{e.searchShow||(e.search=!1),e.optionsShow||(e.options=!1),e.paginationShow||(e.pagination=!1),i({...t,tableSetting:e})},300),n=o.useRef();return o.useEffect(()=>{var e;(e=n.current)==null||e.setFieldsValue(t.tableSetting)},[t]),a.jsx(u,{layout:"inline",layoutType:"Form",formRef:n,grid:!0,onValuesChange:(e,r)=>s.run(r),initialValues:c,columns:h,submitter:{render:()=>[]}})};export{z as default,c as defaultTableSetting}; +import{b as o,V as p,j as a}from"./umi-5f6aeac9.js";import{T as l}from"./index-25e4c7e3.js";import d from"./TableConfigContext-596283a5.js";import{B as u}from"./index-cc6b0338.js";import"./styleChecker-68f8791b.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";const c={bordered:!1,size:"middle",showHeader:!1,rowSelectionShow:!1,addShow:!1,deleteShow:!1,editShow:!1,optionsShow:!0,options:{density:!0,search:!1,fullScreen:!1,setting:!0,reload:!0},headerTitle:"表格标题",tooltip:"表格 tooltip",searchShow:!0,search:{searchText:"查询",resetText:"重置",span:6,layout:"vertical",filterType:"query"},paginationShow:!0,pagination:{size:"default"}},h=[{valueType:"text",renderFormItem:()=>a.jsx(l.Title,{level:5,style:{margin:0},children:"表格设置"})},{title:"表格标题",valueType:"text",dataIndex:"headerTitle"},{title:"表格提示",valueType:"text",dataIndex:"tooltip"},{title:"表格尺寸",valueType:"radio",dataIndex:"size",valueEnum:new Map([["default","大"],["middle","中"],["small","小"]])},{valueType:"text",renderFormItem:()=>a.jsx(l.Title,{level:5,style:{margin:0},children:"功能开关"})},{title:"表格多选",valueType:"switch",dataIndex:"rowSelectionShow",colProps:{span:8}},{title:"表格新增",valueType:"switch",dataIndex:"addShow",colProps:{span:8}},{title:"表格删除",valueType:"switch",dataIndex:"deleteShow",colProps:{span:8}},{title:"表格编辑",valueType:"switch",dataIndex:"editShow",colProps:{span:8}},{title:"表格边框",valueType:"switch",dataIndex:"bordered",colProps:{span:8}},{title:"显示标题",valueType:"switch",dataIndex:"showHeader",colProps:{span:8}},{valueType:"text",renderFormItem:()=>a.jsx(l.Title,{level:5,style:{margin:0},children:"查询配置"})},{title:"表格查询",valueType:"switch",dataIndex:"searchShow",colProps:{span:8}},{valueType:"dependency",name:["searchShow"],columns:({searchShow:t})=>t===!1?[]:[{title:"重置按钮文案",valueType:"text",dataIndex:["search","resetText"]},{title:"查询按钮文案",valueType:"text",dataIndex:["search","searchText"]},{title:"表单栅格",valueType:"radio",dataIndex:["search","span"],valueEnum:new Map([[24,24],[12,12],[8,8],[6,6]])},{title:"表单布局",valueType:"radioButton",dataIndex:["search","layout"],fieldProps:{size:"small"},valueEnum:new Map([["vertical","垂直"],["horizontal","水平"]]),colProps:{span:12}},{title:"表单类型",valueType:"radioButton",dataIndex:["search","filterType"],valueEnum:new Map([["query","默认"],["light","轻量"]]),fieldProps:{size:"small"},colProps:{span:12}}]},{valueType:"text",renderFormItem:()=>a.jsx(l.Title,{level:5,style:{margin:0},children:"操作栏配置"})},{title:"启用状态",valueType:"switch",dataIndex:"optionsShow",colProps:{span:8}},{valueType:"dependency",name:["optionsShow"],columns:({optionsShow:t})=>t===!1?[]:[{title:"刷新按钮",valueType:"switch",dataIndex:["options","reload"],colProps:{span:8}},{title:"密度按钮",valueType:"switch",dataIndex:["options","density"],colProps:{span:8}},{title:"一键搜索",valueType:"switch",dataIndex:["options","search"],colProps:{span:8}},{title:"全屏按钮",valueType:"switch",dataIndex:["options","fullScreen"],colProps:{span:8}},{title:"列设置",valueType:"switch",dataIndex:["options","setting"],colProps:{span:8}}]},{valueType:"text",renderFormItem:()=>a.jsx(l.Title,{level:5,style:{margin:0},children:"分页配置"})},{title:"启用状态",valueType:"switch",dataIndex:"paginationShow",colProps:{span:12}},{valueType:"dependency",name:["paginationShow"],columns:({paginationShow:t})=>t===!1?[]:[{title:"分页尺寸",valueType:"radioButton",dataIndex:["pagination","size"],valueEnum:new Map([["default","默认"],["small","小"]]),fieldProps:{size:"small"},colProps:{span:12}},{title:"简介分页",valueType:"switch",dataIndex:["pagination","simple"],colProps:{span:12}}]}],z=()=>{const{tableConfig:t,setTableConfig:i}=o.useContext(d),s=p(async e=>{e.searchShow||(e.search=!1),e.optionsShow||(e.options=!1),e.paginationShow||(e.pagination=!1),i({...t,tableSetting:e})},300),n=o.useRef();return o.useEffect(()=>{var e;(e=n.current)==null||e.setFieldsValue(t.tableSetting)},[t]),a.jsx(u,{layout:"inline",layoutType:"Form",formRef:n,grid:!0,onValuesChange:(e,r)=>s.run(r),initialValues:c,columns:h,submitter:{render:()=>[]}})};export{z as default,c as defaultTableSetting}; diff --git a/web/dist/assets/UpdatePassword-8d946009.js b/web/dist/assets/UpdatePassword-8d946009.js deleted file mode 100644 index beecb4438db42ca1658ea44bb7ed3bf763a0da85..0000000000000000000000000000000000000000 --- a/web/dist/assets/UpdatePassword-8d946009.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,S as p,A as u,$ as i,V as m}from"./umi-2ee4055f.js";import{T as t}from"./index-9456f6ef.js";import{e as c}from"./table-c83b9d9d.js";import{B as x}from"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";const S=d=>{const{record:r}=d,n=[{title:"管理员",dataIndex:"id",valueType:"text",renderFormItem:()=>e.jsxs(p,{children:[e.jsx(u,{src:r.avatar,style:{backgroundColor:"#87d068"},icon:e.jsx(i,{}),size:24}),e.jsxs(t,{icon:e.jsx(i,{}),color:"geekblue",children:["ID:",r.id]}),r.username?e.jsxs(t,{color:"purple",children:["Name:",r.username]}):"",r.mobile?e.jsxs(t,{color:"magenta",children:["Mobile:",r.mobile]}):""]})},{title:"密码",dataIndex:"password",valueType:"password",formItemProps:{rules:[{required:!0,message:"该项为必填"}]}},{title:"确认密码",dataIndex:"rePassword",valueType:"password",formItemProps:{rules:[{required:!0,message:"该项为必填"},({getFieldValue:o})=>({validator(a,s){return!s||o("password")===s?Promise.resolve():Promise.reject(new Error("两次输入的密码不同"))}})]}}],l=async o=>{const a=m.loading("正在更新");return c("/admin/updatePassword",Object.assign({id:r.id},o)).then(s=>s.success?(m.success("更新成功!"),!0):!1).finally(()=>{a()})};return e.jsx(x,{trigger:e.jsx("a",{children:"修改密码"}),title:"修改管理员密码",layoutType:"ModalForm",rowProps:{gutter:[16,16]},colProps:{span:24},grid:!0,onFinish:l,columns:n})};export{S as default}; diff --git a/web/dist/assets/UpdatePassword-f0efdcbb.js b/web/dist/assets/UpdatePassword-f0efdcbb.js new file mode 100644 index 0000000000000000000000000000000000000000..fbe5766c234f9d3582e0a6d9868a7aff8a01926e --- /dev/null +++ b/web/dist/assets/UpdatePassword-f0efdcbb.js @@ -0,0 +1 @@ +import{j as e,B as p,a0 as u,a5 as c,a6 as i,a1 as m}from"./umi-5f6aeac9.js";import{T as o}from"./index-d4ea9132.js";import{e as x}from"./table-0fa6c309.js";import{B as g}from"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";const U=n=>{const{record:r}=n,d=[{title:"管理员",dataIndex:"id",valueType:"text",renderFormItem:()=>e.jsxs(u,{children:[e.jsx(c,{src:r.avatar,style:{backgroundColor:"#87d068"},icon:e.jsx(i,{}),size:24}),e.jsxs(o,{icon:e.jsx(i,{}),color:"geekblue",children:["ID:",r.id]}),r.username?e.jsxs(o,{color:"purple",children:["Name:",r.username]}):"",r.mobile?e.jsxs(o,{color:"magenta",children:["Mobile:",r.mobile]}):""]})},{title:"密码",dataIndex:"password",valueType:"password",formItemProps:{rules:[{required:!0,message:"该项为必填"}]}},{title:"确认密码",dataIndex:"rePassword",valueType:"password",formItemProps:{rules:[{required:!0,message:"该项为必填"},({getFieldValue:t})=>({validator(a,s){return!s||t("password")===s?Promise.resolve():Promise.reject(new Error("两次输入的密码不同"))}})]}}],l=async t=>{const a=m.loading("正在更新");return x("/admin/updatePassword",Object.assign({id:r.id},t)).then(s=>s.success?(m.success("更新成功!"),!0):!1).finally(()=>{a()})};return e.jsx(g,{trigger:e.jsx(p,{type:"link",children:"修改密码"}),title:"修改管理员密码",layoutType:"ModalForm",rowProps:{gutter:[16,16]},colProps:{span:24},grid:!0,onFinish:l,columns:d})};export{U as default}; diff --git a/web/dist/assets/UploadFile-2f1fc42e.js b/web/dist/assets/UploadFile-2f1fc42e.js deleted file mode 100644 index a5d149f18d73ae9b6694e1fc361b0ff3727d6abd..0000000000000000000000000000000000000000 --- a/web/dist/assets/UploadFile-2f1fc42e.js +++ /dev/null @@ -1 +0,0 @@ -import{j as i,a3 as c,B as r,a4 as j,a5 as x,V as s}from"./umi-2ee4055f.js";import{g as n,U as f}from"./utils-b0233852.js";import"./index-d81f4240.js";const y=t=>{const{selectGroup:a,getFileList:p}=t,u=async e=>{e.file.status!=="uploading"&&console.log(e.file,e.fileList),e.file.status==="done"?e.file.response.success?(s.success(`${e.file.name} 文件上传成功`),await p(a.group_id)):s.error(e.file.response.msg):e.file.status==="error"&&s.error(`${e.file.name} 文件上传失败,${e.file.response.msg}`)},l=(e,o,d,m)=>i.jsx(i.Fragment,{children:i.jsx(f,{name:"file",action:e,headers:{"X-Token":localStorage.getItem("x-token")},onChange:u,multiple:!0,accept:m,itemRender:()=>i.jsx(i.Fragment,{}),children:i.jsx(r,{type:"link",block:!0,icon:i.jsx(x,{type:o,className:o}),children:d})})}),g=[{label:l(n("/admin/file.upload/image?group_id="+a.group_id),"icon-wenjianleixing-suolvetu-tupianwenjian","上传图片文件",".jpg,.jpeg,.png,.bmp,.gif,.avif,.webp"),key:"0"},{label:l(n("/admin/file.upload/zip?group_id="+a.group_id),"icon-wenjianleixing-suolvetu-yasuowenjian","上传压缩文件",".zip,.rar"),key:"2"},{label:l(n("/admin/file.upload/mp3?group_id="+a.group_id),"icon-wenjianleixing-suolvetu-shengyinwenjian","上传音频文件",".mp3,.wma,.wav,.ape,.flac,.ogg,.aac"),key:"3"},{label:l(n("/admin/file.upload/video?group_id="+a.group_id),"icon-wenjianleixing-suolvetu-shipinwenjian","上传视频文件",".mp4,.mov,.wmv,.flv,.avl,.webm,.mkv"),key:"4"},{label:l(n("/admin/file.upload/annex?group_id="+a.group_id),"icon-wenjianleixing-suolvetu-weizhiwenjian","上传其它文件","*"),key:"5"}];return i.jsx(i.Fragment,{children:i.jsx(c,{menu:{items:g},trigger:["click"],children:i.jsx(r,{shape:"round",icon:i.jsx(j,{}),type:"primary",children:"上传文件"})})})};export{y as default}; diff --git a/web/dist/assets/UploadFile-dcc6b08a.js b/web/dist/assets/UploadFile-dcc6b08a.js new file mode 100644 index 0000000000000000000000000000000000000000..469a4ac14635793845f878b50917405124159f73 --- /dev/null +++ b/web/dist/assets/UploadFile-dcc6b08a.js @@ -0,0 +1 @@ +import{j as i,a8 as c,B as r,a9 as j,aa as f,a1 as s}from"./umi-5f6aeac9.js";import{U as x}from"./index-04ced7f2.js";import{g as n}from"./utils-a0a2291f.js";import"./index-032ff5a9.js";const k=t=>{const{selectGroup:a,getFileList:p}=t,u=async e=>{e.file.status!=="uploading"&&console.log(e.file,e.fileList),e.file.status==="done"?e.file.response.success?(s.success(`${e.file.name} 文件上传成功`),await p(a.group_id)):s.error(e.file.response.msg):e.file.status==="error"&&s.error(`${e.file.name} 文件上传失败,${e.file.response.msg}`)},l=(e,o,d,m)=>i.jsx(i.Fragment,{children:i.jsx(x,{name:"file",action:e,headers:{"X-Token":localStorage.getItem("x-token")},onChange:u,multiple:!0,accept:m,itemRender:()=>i.jsx(i.Fragment,{}),children:i.jsx(r,{type:"link",block:!0,icon:i.jsx(f,{type:o,className:o}),children:d})})}),g=[{label:l(n("/admin/file.upload/image?group_id="+a.group_id),"icon-wenjianleixing-suolvetu-tupianwenjian","上传图片文件",".jpg,.jpeg,.png,.bmp,.gif,.avif,.webp"),key:"0"},{label:l(n("/admin/file.upload/zip?group_id="+a.group_id),"icon-wenjianleixing-suolvetu-yasuowenjian","上传压缩文件",".zip,.rar"),key:"2"},{label:l(n("/admin/file.upload/mp3?group_id="+a.group_id),"icon-wenjianleixing-suolvetu-shengyinwenjian","上传音频文件",".mp3,.wma,.wav,.ape,.flac,.ogg,.aac"),key:"3"},{label:l(n("/admin/file.upload/video?group_id="+a.group_id),"icon-wenjianleixing-suolvetu-shipinwenjian","上传视频文件",".mp4,.mov,.wmv,.flv,.avl,.webm,.mkv"),key:"4"},{label:l(n("/admin/file.upload/annex?group_id="+a.group_id),"icon-wenjianleixing-suolvetu-weizhiwenjian","上传其它文件","*"),key:"5"}];return i.jsx(i.Fragment,{children:i.jsx(c,{menu:{items:g},trigger:["click"],children:i.jsx(r,{shape:"round",icon:i.jsx(j,{}),type:"primary",children:"上传文件"})})})};export{k as default}; diff --git a/web/dist/assets/auth-11568536.js b/web/dist/assets/auth-13ead763.js similarity index 43% rename from web/dist/assets/auth-11568536.js rename to web/dist/assets/auth-13ead763.js index a9466b9f459ca232fb8f43cd2d46d8a8b44201e8..782557558ff76f425f7713f1ad108c70ec342927 100644 --- a/web/dist/assets/auth-11568536.js +++ b/web/dist/assets/auth-13ead763.js @@ -1 +1 @@ -import{X as e}from"./umi-2ee4055f.js";const t={getRulePidApi:"/admin/adminRule/getRulePid",setGroupRuleApi:"/admin/adminGroup/setGroupRule"};async function o(){return e(t.getRulePidApi,{method:"get"})}async function n(u){return e(t.setGroupRuleApi,{method:"post",data:u})}export{o as g,n as s}; +import{r as e}from"./umi-5f6aeac9.js";const t={getRulePidApi:"/admin/adminRule/getRulePid",setGroupRuleApi:"/admin/adminGroup/setGroupRule"};async function o(){return e(t.getRulePidApi,{method:"get"})}async function r(u){return e(t.setGroupRuleApi,{method:"post",data:u})}export{o as g,r as s}; diff --git a/web/dist/assets/camelCase-e5a219bd.js b/web/dist/assets/camelCase-d2af58d5.js similarity index 71% rename from web/dist/assets/camelCase-e5a219bd.js rename to web/dist/assets/camelCase-d2af58d5.js index 5eee12cb759035b68ba1c32b086722135b1fbd20..7ab22a4ed776d2c23c97f322231d2dcdf73377f6 100644 --- a/web/dist/assets/camelCase-e5a219bd.js +++ b/web/dist/assets/camelCase-d2af58d5.js @@ -1 +1 @@ -import{d6 as s,cm as v}from"./umi-2ee4055f.js";function Z(u,r,e){var o=-1,a=u.length;r<0&&(r=-r>a?0:a+r),e=e>a?a:e,e<0&&(e+=a),a=r>e?0:e-r>>>0,r>>>=0;for(var n=Array(a);++o=o?u:w(u,r,e)}var F=D,I="\\ud800-\\udfff",H="\\u0300-\\u036f",N="\\ufe20-\\ufe2f",J="\\u20d0-\\u20ff",P=H+N+J,V="\\ufe0e\\ufe0f",G="\\u200d",Y=RegExp("["+G+I+P+V+"]");function q(u){return Y.test(u)}var $=q;function B(u){return u.split("")}var K=B,l="\\ud800-\\udfff",Q="\\u0300-\\u036f",X="\\ufe20-\\ufe2f",uu="\\u20d0-\\u20ff",ru=Q+X+uu,eu="\\ufe0e\\ufe0f",au="["+l+"]",d="["+ru+"]",c="\\ud83c[\\udffb-\\udfff]",ou="(?:"+d+"|"+c+")",g="[^"+l+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",R="[\\ud800-\\udbff][\\udc00-\\udfff]",fu="\\u200d",C=ou+"?",m="["+eu+"]?",nu="(?:"+fu+"(?:"+[g,p,R].join("|")+")"+m+C+")*",su=m+C+nu,du="(?:"+[g+d+"?",d,p,R,au].join("|")+")",cu=RegExp(c+"(?="+c+")|"+du+su,"g");function iu(u){return u.match(cu)||[]}var xu=iu,tu=K,bu=$,vu=xu;function $u(u){return bu(u)?vu(u):tu(u)}var lu=$u,gu=F,pu=$,Ru=lu,Cu=s;function mu(u){return function(r){r=Cu(r);var e=pu(r)?Ru(r):void 0,o=e?e[0]:r.charAt(0),a=e?gu(e,1).join(""):r.slice(1);return o[u]()+a}}var Au=mu,hu=Au,Su=hu("toUpperCase"),A=Su;const Hr=v(A);var Uu=s,Ou=A;function _u(u){return Ou(Uu(u).toLowerCase())}var Lu=_u;function yu(u,r,e,o){var a=-1,n=u==null?0:u.length;for(o&&n&&(e=u[++a]);++aa?0:a+r),e=e>a?a:e,e<0&&(e+=a),a=r>e?0:e-r>>>0,r>>>=0;for(var n=Array(a);++o=o?u:w(u,r,e)}var F=D,I="\\ud800-\\udfff",H="\\u0300-\\u036f",N="\\ufe20-\\ufe2f",J="\\u20d0-\\u20ff",P=H+N+J,V="\\ufe0e\\ufe0f",G="\\u200d",Y=RegExp("["+G+I+P+V+"]");function q(u){return Y.test(u)}var $=q;function B(u){return u.split("")}var K=B,l="\\ud800-\\udfff",Q="\\u0300-\\u036f",X="\\ufe20-\\ufe2f",uu="\\u20d0-\\u20ff",ru=Q+X+uu,eu="\\ufe0e\\ufe0f",au="["+l+"]",d="["+ru+"]",c="\\ud83c[\\udffb-\\udfff]",ou="(?:"+d+"|"+c+")",p="[^"+l+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",R="[\\ud800-\\udbff][\\udc00-\\udfff]",fu="\\u200d",C=ou+"?",m="["+eu+"]?",nu="(?:"+fu+"(?:"+[p,g,R].join("|")+")"+m+C+")*",su=m+C+nu,du="(?:"+[p+d+"?",d,g,R,au].join("|")+")",cu=RegExp(c+"(?="+c+")|"+du+su,"g");function iu(u){return u.match(cu)||[]}var xu=iu,tu=K,bu=$,vu=xu;function $u(u){return bu(u)?vu(u):tu(u)}var lu=$u,pu=F,gu=$,Ru=lu,Cu=s;function mu(u){return function(r){r=Cu(r);var e=gu(r)?Ru(r):void 0,o=e?e[0]:r.charAt(0),a=e?pu(e,1).join(""):r.slice(1);return o[u]()+a}}var Au=mu,hu=Au,Su=hu("toUpperCase"),A=Su;const Hr=v(A);var Uu=s,Ou=A;function _u(u){return Ou(Uu(u).toLowerCase())}var Eu=_u;function Lu(u,r,e,o){var a=-1,n=u==null?0:u.length;for(o&&n&&(e=u[++a]);++a31||a>>>o)throw new RangeError("Value out of range");for(var t=o-1;t>=0;t--)e.push(a>>>t&1)}function _(a,o){return(a>>>o&1)!=0}function I(a){if(!a)throw new Error("Assertion error")}var B=function(){function a(o,e){Z(this,a),v(this,"modeBits",void 0),v(this,"numBitsCharCount",void 0),this.modeBits=o,this.numBitsCharCount=e}return x(a,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),a}();G=B;v(B,"NUMERIC",new G(1,[10,12,14]));v(B,"ALPHANUMERIC",new G(2,[9,11,13]));v(B,"BYTE",new G(4,[8,16,16]));v(B,"KANJI",new G(8,[8,10,12]));v(B,"ECI",new G(7,[0,0,0]));var O=x(function a(o,e){Z(this,a),v(this,"ordinal",void 0),v(this,"formatBits",void 0),this.ordinal=o,this.formatBits=e});Y=O;v(O,"LOW",new Y(0,1));v(O,"MEDIUM",new Y(1,0));v(O,"QUARTILE",new Y(2,3));v(O,"HIGH",new Y(3,2));var Q=function(){function a(o,e,t){if(Z(this,a),v(this,"mode",void 0),v(this,"numChars",void 0),v(this,"bitData",void 0),this.mode=o,this.numChars=e,this.bitData=t,e<0)throw new RangeError("Invalid argument");this.bitData=t.slice()}return x(a,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(e){var t=[],r=H(e),n;try{for(r.s();!(n=r.n()).done;){var i=n.value;b(i,8,t)}}catch(s){r.e(s)}finally{r.f()}return new a(B.BYTE,e.length,t)}},{key:"makeNumeric",value:function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r=1<a.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=o*4+17;for(var i=[],s=0;s>>9)*1335;var i=(t<<10|r)^21522;I(i>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,_(i,s));this.setFunctionModule(8,7,_(i,6)),this.setFunctionModule(8,8,_(i,7)),this.setFunctionModule(7,8,_(i,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,_(i,l));for(var d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,_(i,d));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,_(i,u));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;I(r>>>18==0);for(var n=0;n<18;n++){var i=_(r,n),s=this.size-11+n%3,l=Math.floor(n/3);this.setFunctionModule(s,l,i),this.setFunctionModule(l,s,i)}}}},{key:"drawFinderPattern",value:function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var i=Math.max(Math.abs(n),Math.abs(r)),s=e+n,l=t+r;0<=s&&s=l)&&c.push(S[C])})},p=0;p=1;r-=2){r==6&&(r=5);for(var n=0;n>>3],7-(t&7)),t++)}}I(t==e.length*8)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][s],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*a.PENALTY_N3}for(var l=0;l5&&e++):(this.finderPenaltyAddHistory(u,m),d||(e+=this.finderPenaltyCountPatterns(m)*a.PENALTY_N3),d=this.modules[h][l],u=1);e+=this.finderPenaltyTerminateAndCount(d,u,m)*a.PENALTY_N3}for(var g=0;g0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,r){var n=t;return e&&(this.finderPenaltyAddHistory(n,r),n=0),n+=this.size,this.finderPenaltyAddHistory(n,r),this.finderPenaltyCountPatterns(r)}},{key:"finderPenaltyAddHistory",value:function(e,t){var r=e;t[0]==0&&(r+=this.size),t.pop(),t.unshift(r)}}],[{key:"encodeText",value:function(e,t){var r=Q.makeSegments(e);return a.encodeSegments(r,t)}},{key:"encodeBinary",value:function(e,t){var r=Q.makeBytes(e);return a.encodeSegments([r],t)}},{key:"encodeSegments",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(a.MIN_VERSION<=r&&r<=n&&n<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var l,d;for(l=r;;l++){var u=a.getNumDataCodewords(l,t)*8,m=Q.getTotalBits(e,l);if(m<=u){d=m;break}if(l>=n)throw new RangeError("Data too long")}for(var h=t,g=0,f=[O.MEDIUM,O.QUARTILE,O.HIGH];g>>3]|=P<<7-(L&7)}),new a(l,h,z,i)}},{key:"getNumRawDataModules",value:function(e){if(ea.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return I(208<=t&&t<=29648),t}},{key:"getNumDataCodewords",value:function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]}},{key:"reedSolomonComputeDivisor",value:function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return I(r>>>8==0),r}}]),a}();v(U,"MIN_VERSION",1);v(U,"MAX_VERSION",40);v(U,"PENALTY_N1",3);v(U,"PENALTY_N2",3);v(U,"PENALTY_N3",40);v(U,"PENALTY_N4",10);v(U,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);v(U,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var Be={L:O.LOW,M:O.MEDIUM,Q:O.QUARTILE,H:O.HIGH},ae=128,oe="L",ie="#FFFFFF",se="#000000",le=!1,ue=1,Te=4,_e=0,De=.1;function ce(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=[];return a.forEach(function(t,r){var n=null;t.forEach(function(i,s){if(!i&&n!==null){e.push("M".concat(n+o," ").concat(r+o,"h").concat(s-n,"v1H").concat(n+o,"z")),n=null;return}if(s===t.length-1){if(!i)return;n===null?e.push("M".concat(s+o,",").concat(r+o," h1v1H").concat(s+o,"z")):e.push("M".concat(n+o,",").concat(r+o," h").concat(s+1-n,"v1H").concat(n+o,"z"));return}i&&n===null&&(n=s)})}),e.join("")}function de(a,o){return a.slice().map(function(e,t){return t=o.y+o.h?e:e.map(function(r,n){return n=o.x+o.w?r:!1})})}function Ue(a,o,e,t){if(t==null)return null;var r=a.length+e*2,n=Math.floor(o*De),i=r/o,s=(t.width||n)*i,l=(t.height||n)*i,d=t.x==null?a.length/2-s/2:t.x*i,u=t.y==null?a.length/2-l/2:t.y*i,m=t.opacity==null?1:t.opacity,h=null;if(t.excavate){var g=Math.floor(d),f=Math.floor(u),M=Math.ceil(s+d-g),c=Math.ceil(l+u-f);h={x:g,y:f,w:M,h:c}}var R=t.crossOrigin;return{x:d,y:u,h:l,w:s,excavation:h,opacity:m,crossOrigin:R}}function Ve(a,o){return o!=null?Math.floor(o):a?Te:_e}var Qe=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function ve(a){var o=a.value,e=a.level,t=a.minVersion,r=a.includeMargin,n=a.marginSize,i=a.imageSettings,s=a.size,l=D.useMemo(function(){var f=Q.makeSegments(o);return U.encodeSegments(f,Be[e],t)},[o,e,t]),d=D.useMemo(function(){var f=l.getModules(),M=Ve(r,n),c=f.length+M*2,R=Ue(f,s,M,i);return{cells:f,margin:M,numCells:c,calculatedImageSettings:R}},[l,s,i,r,n]),u=d.cells,m=d.margin,h=d.numCells,g=d.calculatedImageSettings;return{qrcode:l,margin:m,cells:u,numCells:h,calculatedImageSettings:g}}var $e=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],he=E.forwardRef(function(o,e){var t=o.value,r=o.size,n=r===void 0?ae:r,i=o.level,s=i===void 0?oe:i,l=o.bgColor,d=l===void 0?ie:l,u=o.fgColor,m=u===void 0?se:u,h=o.includeMargin,g=h===void 0?le:h,f=o.minVersion,M=f===void 0?ue:f,c=o.marginSize,R=o.style,p=o.imageSettings,k=re(o,$e),C=p==null?void 0:p.src,S=D.useRef(null),y=D.useRef(null),N=D.useCallback(function(F){S.current=F,typeof e=="function"?e(F):e&&(e.current=F)},[e]),w=D.useState(!1),z=Re(w,2),P=z[1],L=ve({value:t,level:s,minVersion:M,includeMargin:g,marginSize:c,imageSettings:p,size:n}),V=L.margin,$=L.cells,W=L.numCells,A=L.calculatedImageSettings;D.useEffect(function(){if(S.current!=null){var F=S.current,T=F.getContext("2d");if(!T)return;var X=$,K=y.current,J=A!=null&&K!==null&&K.complete&&K.naturalHeight!==0&&K.naturalWidth!==0;J&&A.excavation!=null&&(X=de($,A.excavation));var ee=window.devicePixelRatio||1;F.height=F.width=n*ee;var te=n/W*ee;T.scale(te,te),T.fillStyle=d,T.fillRect(0,0,W,W),T.fillStyle=m,Qe?T.fill(new Path2D(ce(X,V))):$.forEach(function(me,ge){me.forEach(function(Ce,Ee){Ce&&T.fillRect(Ee+V,ge+V,1,1)})}),A&&(T.globalAlpha=A.opacity),J&&T.drawImage(K,A.x+V,A.y+V,A.w,A.h)}}),D.useEffect(function(){P(!1)},[C]);var q=Me({height:n,width:n},R),j=null;return C!=null&&(j=E.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:function(){P(!0)},ref:y,crossOrigin:A==null?void 0:A.crossOrigin})),E.createElement(E.Fragment,null,E.createElement("canvas",ne({style:q,height:n,width:n,ref:N,role:"img"},k)),j)});he.displayName="QRCodeCanvas";var He=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],fe=E.forwardRef(function(o,e){var t=o.value,r=o.size,n=r===void 0?ae:r,i=o.level,s=i===void 0?oe:i,l=o.bgColor,d=l===void 0?ie:l,u=o.fgColor,m=u===void 0?se:u,h=o.includeMargin,g=h===void 0?le:h,f=o.minVersion,M=f===void 0?ue:f,c=o.title,R=o.marginSize,p=o.imageSettings,k=re(o,He),C=ve({value:t,level:s,minVersion:M,includeMargin:g,marginSize:R,imageSettings:p,size:n}),S=C.margin,y=C.cells,N=C.numCells,w=C.calculatedImageSettings,z=y,P=null;p!=null&&w!=null&&(w.excavation!=null&&(z=de(y,w.excavation)),P=E.createElement("image",{href:p.src,height:w.h,width:w.w,x:w.x+S,y:w.y+S,preserveAspectRatio:"none",opacity:w.opacity,crossOrigin:w.crossOrigin}));var L=ce(z,S);return E.createElement("svg",ne({height:n,width:n,viewBox:"0 0 ".concat(N," ").concat(N),ref:e,role:"img"},k),!!c&&E.createElement("title",null,c),E.createElement("path",{fill:d,d:"M0,0 h".concat(N,"v").concat(N,"H0z"),shapeRendering:"crispEdges"}),E.createElement("path",{fill:m,d:L,shapeRendering:"crispEdges"}),P)});fe.displayName="QRCodeSVG";const Ge=E.createElement(Se,null);function We(a){let{prefixCls:o,locale:e,onRefresh:t,statusRender:r,status:n}=a;const i=E.createElement(E.Fragment,null,E.createElement("p",{className:`${o}-expired`},e==null?void 0:e.expired),t&&E.createElement(pe,{type:"link",icon:E.createElement(we,null),onClick:t},e==null?void 0:e.refresh)),s=E.createElement("p",{className:`${o}-scanned`},e==null?void 0:e.scanned),l={expired:i,loading:Ge,scanned:s};return(r??(m=>l[m.status]))({status:n,locale:e,onRefresh:t})}const Ke=a=>{const{componentCls:o,lineWidth:e,lineType:t,colorSplit:r}=a;return{[o]:Object.assign(Object.assign({},Ne(a)),{display:"flex",justifyContent:"center",alignItems:"center",padding:a.paddingSM,backgroundColor:a.colorWhite,borderRadius:a.borderRadiusLG,border:`${be(e)} ${t} ${r}`,position:"relative",overflow:"hidden",[`& > ${o}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:a.colorText,lineHeight:a.lineHeight,background:a.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${o}-expired, & > ${o}-scanned`]:{color:a.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:a.marginXS,fontSize:a.controlHeight}}),[`${o}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},Ye=a=>({QRCodeMaskBackgroundColor:new ke(a.colorBgContainer).setA(.96).toRgbString()}),je=ye("QRCode",a=>{const o=Ae(a,{QRCodeTextColor:a.colorText});return Ke(o)},Ye);var xe=globalThis&&globalThis.__rest||function(a,o){var e={};for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&o.indexOf(t)<0&&(e[t]=a[t]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(a);r{var o,e,t,r;const[,n]=Pe(),{value:i,type:s="canvas",icon:l="",size:d=160,iconSize:u,color:m=n.colorText,errorLevel:h="M",status:g="active",bordered:f=!0,onRefresh:M,style:c,className:R,rootClassName:p,prefixCls:k,bgColor:C="transparent",statusRender:S}=a,y=xe(a,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:N}=D.useContext(Ie),w=N("qrcode",k),[z,P,L]=je(w),V={src:l,x:void 0,y:void 0,height:typeof u=="number"?u:(o=u==null?void 0:u.height)!==null&&o!==void 0?o:40,width:typeof u=="number"?u:(e=u==null?void 0:u.width)!==null&&e!==void 0?e:40,excavate:!0,crossOrigin:"anonymous"},$=Oe(y,!0),W=ze(y,Object.keys($)),A=Object.assign({value:i,size:d,level:h,bgColor:C,fgColor:m,style:{width:c==null?void 0:c.width,height:c==null?void 0:c.height},imageSettings:l?V:void 0},$),[q]=Le("QRCode");if(!i)return null;const j=Fe(w,R,p,P,L,{[`${w}-borderless`]:!f}),F=Object.assign(Object.assign({backgroundColor:C},c),{width:(t=c==null?void 0:c.width)!==null&&t!==void 0?t:d,height:(r=c==null?void 0:c.height)!==null&&r!==void 0?r:d});return z(E.createElement("div",Object.assign({},W,{className:j,style:F}),g!=="active"&&E.createElement("div",{className:`${w}-mask`},E.createElement(We,{prefixCls:w,locale:q,status:g,onRefresh:M,statusRender:S})),s==="canvas"?E.createElement(he,Object.assign({},A)):E.createElement(fe,Object.assign({},A))))},Xe=Ze,Je="/assets/logo-e0210994.png",et=()=>"https://flimsm.demo.10000.wiki";export{Je as I,Xe as Q,et as g}; diff --git a/web/dist/assets/constants-723e3af0.js b/web/dist/assets/constants-723e3af0.js new file mode 100644 index 0000000000000000000000000000000000000000..b9fd3fca54190025c624f33f8a33143dec14a5d4 --- /dev/null +++ b/web/dist/assets/constants-723e3af0.js @@ -0,0 +1 @@ +import{d as r}from"./umi-5f6aeac9.js";const I=[{title:"人员",dataIndex:"nickname",hideInForm:!0,hideInSearch:!0},{title:"资质",dataIndex:"qualification",hideInForm:!0,hideInSearch:!0},{title:"工作年限",dataIndex:"join_date",hideInForm:!0,hideInSearch:!0,renderText(d,e,i,a){return e.join_date?r().diff(r.unix(e.join_date),"year")+"年":void 0}},{title:"电话",dataIndex:"mobile",hideInForm:!0,hideInSearch:!0},{title:"邮箱",dataIndex:"email",hideInForm:!0,hideInSearch:!0},{title:"项目",dataIndex:"projects",hideInForm:!0,hideInSearch:!0,renderText(d,e,i,a){var t,n;return(n=(t=e.projects)==null?void 0:t.map)==null?void 0:n.call(t,o=>o.name).join(", ")}}];export{I as AddressBookColumns}; diff --git a/web/dist/assets/constants-7fd6898b.js b/web/dist/assets/constants-7fd6898b.js new file mode 100644 index 0000000000000000000000000000000000000000..b9fd3fca54190025c624f33f8a33143dec14a5d4 --- /dev/null +++ b/web/dist/assets/constants-7fd6898b.js @@ -0,0 +1 @@ +import{d as r}from"./umi-5f6aeac9.js";const I=[{title:"人员",dataIndex:"nickname",hideInForm:!0,hideInSearch:!0},{title:"资质",dataIndex:"qualification",hideInForm:!0,hideInSearch:!0},{title:"工作年限",dataIndex:"join_date",hideInForm:!0,hideInSearch:!0,renderText(d,e,i,a){return e.join_date?r().diff(r.unix(e.join_date),"year")+"年":void 0}},{title:"电话",dataIndex:"mobile",hideInForm:!0,hideInSearch:!0},{title:"邮箱",dataIndex:"email",hideInForm:!0,hideInSearch:!0},{title:"项目",dataIndex:"projects",hideInForm:!0,hideInSearch:!0,renderText(d,e,i,a){var t,n;return(n=(t=e.projects)==null?void 0:t.map)==null?void 0:n.call(t,o=>o.name).join(", ")}}];export{I as AddressBookColumns}; diff --git a/web/dist/assets/constants-8b327417.js b/web/dist/assets/constants-8b327417.js new file mode 100644 index 0000000000000000000000000000000000000000..71db6f37bd557566a6ef33f9abc510cc88f13f46 --- /dev/null +++ b/web/dist/assets/constants-8b327417.js @@ -0,0 +1 @@ +import{FlangeTypeMap as a}from"./constants-bc9b0dd9.js";const n=[{title:"法兰编号",dataIndex:"code"},{title:"法兰名称",dataIndex:"name"},{title:"法兰分类",dataIndex:"type",valueType:"select",valueEnum:a},{title:"管线号/设备位号",dataIndex:"equipment_code"},{title:"管线/设备名称",dataIndex:"equipment_name"},{title:"法兰位置",dataIndex:"location"},{title:"创建时间",dataIndex:"name"},{title:"创建人",dataIndex:"name"}],i=n.reduce((e,t)=>(e[t.dataIndex]=!0,e),{code:!0}),r=[{title:"操作类型",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"操作内容",dataIndex:"content",hideInForm:!0,hideInSearch:!0},{title:"用户",dataIndex:"creator_name",hideInForm:!0,hideInSearch:!0},{title:"操作时间",dataIndex:"create_time",hideInForm:!0,hideInSearch:!0}];export{n as BasicColumns,i as BasicColumnsKeys,r as FlangeLogColumns}; diff --git a/web/dist/assets/constants-ad7b57d0.js b/web/dist/assets/constants-ad7b57d0.js new file mode 100644 index 0000000000000000000000000000000000000000..02964664f5936d0cd9a7347f34e437649116ebd8 --- /dev/null +++ b/web/dist/assets/constants-ad7b57d0.js @@ -0,0 +1 @@ +const t=new Map([["input",{text:"输入框"}],["number",{text:"数字框"}],["textarea",{text:"文本域"}],["select",{text:"下拉列表"}],["check",{text:"检查"}],["calc",{text:"计算"}],["custom",{text:"自定义"}]]),e=new Map([[1,{text:"是"}],[0,{text:"否"}]]);export{e as FlangeParamBooleanMap,t as FlangeParamTypeMap}; diff --git a/web/dist/assets/constants-bc9b0dd9.js b/web/dist/assets/constants-bc9b0dd9.js new file mode 100644 index 0000000000000000000000000000000000000000..6a35aa051c362912ee940cad6dbfb4c48eecd1a1 --- /dev/null +++ b/web/dist/assets/constants-bc9b0dd9.js @@ -0,0 +1 @@ +const e=new Map([[1,"一般法兰"],[2,"关键法兰"]]),a=new Map([["success","成功"],["fail","失败"]]),n=new Map([[0,void 0],[1,"合格"]]);export{a as FlangeCheckMap,n as FlangeTorqueFinalCheckMap,e as FlangeTypeMap}; diff --git a/web/dist/assets/createLoading-2160f924.js b/web/dist/assets/createLoading-e07c13ae.js similarity index 79% rename from web/dist/assets/createLoading-2160f924.js rename to web/dist/assets/createLoading-e07c13ae.js index 8fa5e9683b0c25135e188810e2d2fde8876d0ad0..b01d9eff89c0453d9001d6416c55fa40a12322cd 100644 --- a/web/dist/assets/createLoading-2160f924.js +++ b/web/dist/assets/createLoading-e07c13ae.js @@ -1,9 +1,9 @@ -import{cn as E,d7 as Bo,co as m,eW as Z,cp as gt,eU as ht,eV as q,bs as Kn,bt as Jn,dh as qx,cm as Ux,eX as jx,r as Gi,R as ee}from"./umi-2ee4055f.js";import{P as He,y as S,K as _,Q as B,L as R,R as fi,w as K,S as ss,T as fp,G as mt,M as rt,U as $a,C as Ku,V as Kl,F as jr,D as Pt,W as Zx,n as vp,b as Qx,X as $t,Y as Ht,h as vi,Z as re,_ as tn,a as je,N as ye,g as A,$ as Kx,a0 as Aa,a1 as ta,s as Jx,a2 as Hi,a3 as tw,d as H,J as Ju,x as Kt,z as Br,B as dp,H as en,l as vn,a4 as tc,I as oi,O as ew}from"./react-content-loader.es-7f7b682d.js";const ls=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Xe},get Circle(){return KF},get Ellipse(){return JF},get Image(){return tT},get Line(){return eT},get Marker(){return iT},get Path(){return Wc},get Polygon(){return cT},get Polyline(){return hT},get Rect(){return dT},get Text(){return pT}},Symbol.toStringTag,{value:"Module"})),us=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return De},get Circle(){return CT},get Dom(){return ST},get Ellipse(){return MT},get Image(){return AT},get Line(){return FT},get Marker(){return TT},get Path(){return ET},get Polygon(){return kT},get Polyline(){return LT},get Rect(){return PT},get Text(){return RT}},Symbol.toStringTag,{value:"Module"}));var ni=function(r,e){return He(r)?r.indexOf(e)>-1:!1},qt=function(r,e){if(!He(r))return r;for(var t=[],i=0;ia[s])return 1;if(n[s]t?t:r},ul=function(r,e){var t=e.toString(),i=t.indexOf(".");if(i===-1)return Math.round(r);var n=t.substr(i+1).length;return n>20&&(n=20),parseFloat(r.toFixed(n))},cw=1e-5;function Xt(r,e,t){return t===void 0&&(t=cw),Math.abs(r-e)i&&(t=a,i=o)}return t}},hw=function(r,e){if(R(r)){for(var t,i=1/0,n=0;ne?(i&&(clearTimeout(i),i=null),s=c,o=r.apply(n,a),i||(n=a=null)):!i&&t.trailing!==!1&&(i=setTimeout(l,h)),o};return u.cancel=function(){clearTimeout(i),s=0,i=n=a=null},u},Sw=function(r){return He(r)?Array.prototype.slice.call(r):[]},Pr=function(){};function Vt(r){return B(r)?0:He(r)?r.length:Object.keys(r).length}const Mw=function(r,e,t,i){i===void 0&&(i="...");var n=16,a=$a(i,t),o=K(r)?r:ss(r),s=e,l=[],u,c;if($a(r,t)<=e)return r;for(;u=o.substr(0,n),c=$a(u,t),!(c+a>s&&c>s);)if(l.push(u),s-=c,o=o.substr(n),!o)return l.join("");for(;u=o.substr(0,1),c=$a(u,t),!(c+a>s);)if(l.push(u),s-=c,o=o.substr(1),!o)return l.join("");return""+l.join("")+i};var It;(function(r){r.FORE="fore",r.MID="mid",r.BG="bg"})(It||(It={}));var G;(function(r){r.TOP="top",r.TOP_LEFT="top-left",r.TOP_RIGHT="top-right",r.RIGHT="right",r.RIGHT_TOP="right-top",r.RIGHT_BOTTOM="right-bottom",r.LEFT="left",r.LEFT_TOP="left-top",r.LEFT_BOTTOM="left-bottom",r.BOTTOM="bottom",r.BOTTOM_LEFT="bottom-left",r.BOTTOM_RIGHT="bottom-right",r.RADIUS="radius",r.CIRCLE="circle",r.NONE="none"})(G||(G={}));var Gt;(function(r){r.AXIS="axis",r.GRID="grid",r.LEGEND="legend",r.TOOLTIP="tooltip",r.ANNOTATION="annotation",r.SLIDER="slider",r.SCROLLBAR="scrollbar",r.OTHER="other"})(Gt||(Gt={}));var qi={FORE:3,MID:2,BG:1},ot;(function(r){r.BEFORE_RENDER="beforerender",r.AFTER_RENDER="afterrender",r.BEFORE_PAINT="beforepaint",r.AFTER_PAINT="afterpaint",r.BEFORE_CHANGE_DATA="beforechangedata",r.AFTER_CHANGE_DATA="afterchangedata",r.BEFORE_CLEAR="beforeclear",r.AFTER_CLEAR="afterclear",r.BEFORE_DESTROY="beforedestroy",r.BEFORE_CHANGE_SIZE="beforechangesize",r.AFTER_CHANGE_SIZE="afterchangesize"})(ot||(ot={}));var Rr;(function(r){r.BEFORE_DRAW_ANIMATE="beforeanimate",r.AFTER_DRAW_ANIMATE="afteranimate",r.BEFORE_RENDER_LABEL="beforerenderlabel",r.AFTER_RENDER_LABEL="afterrenderlabel"})(Rr||(Rr={}));var ae;(function(r){r.MOUSE_ENTER="plot:mouseenter",r.MOUSE_DOWN="plot:mousedown",r.MOUSE_MOVE="plot:mousemove",r.MOUSE_UP="plot:mouseup",r.MOUSE_LEAVE="plot:mouseleave",r.TOUCH_START="plot:touchstart",r.TOUCH_MOVE="plot:touchmove",r.TOUCH_END="plot:touchend",r.TOUCH_CANCEL="plot:touchcancel",r.CLICK="plot:click",r.DBLCLICK="plot:dblclick",r.CONTEXTMENU="plot:contextmenu",r.LEAVE="plot:leave",r.ENTER="plot:enter"})(ae||(ae={}));var Ro;(function(r){r.ACTIVE="active",r.INACTIVE="inactive",r.SELECTED="selected",r.DEFAULT="default"})(Ro||(Ro={}));var Xi=["color","shape","size"],bt="_origin",Yh=1,$h=1,Hh=.25,Mp={};function Aw(r){var e=Mp[r];if(!e)throw new Error("G engine '".concat(r,"' is not exist, please register it at first."));return e}function Ap(r,e){Mp[r]=e}function Bi(r,e,t){if(r){if(typeof r.addEventListener=="function")return r.addEventListener(e,t,!1),{remove:function(){r.removeEventListener(e,t,!1)}};if(typeof r.attachEvent=="function")return r.attachEvent("on"+e,t),{remove:function(){r.detachEvent("on"+e,t)}}}}function ue(r,e,t){var i;try{i=window.getComputedStyle?window.getComputedStyle(r,null)[e]:r.style[e]}catch{}finally{i=i===void 0?t:i}return i}function Fw(r,e){var t=ue(r,"height",e);return t==="auto"&&(t=r.offsetHeight),parseFloat(t)}function Tw(r,e){var t=Fw(r,e),i=parseFloat(ue(r,"borderTopWidth"))||0,n=parseFloat(ue(r,"paddingTop"))||0,a=parseFloat(ue(r,"paddingBottom"))||0,o=parseFloat(ue(r,"borderBottomWidth"))||0,s=parseFloat(ue(r,"marginTop"))||0,l=parseFloat(ue(r,"marginBottom"))||0;return t+i+o+n+a+s+l}function Ew(r,e){var t=ue(r,"width",e);return t==="auto"&&(t=r.offsetWidth),parseFloat(t)}function kw(r,e){var t=Ew(r,e),i=parseFloat(ue(r,"borderLeftWidth"))||0,n=parseFloat(ue(r,"paddingLeft"))||0,a=parseFloat(ue(r,"paddingRight"))||0,o=parseFloat(ue(r,"borderRightWidth"))||0,s=parseFloat(ue(r,"marginRight"))||0,l=parseFloat(ue(r,"marginLeft"))||0;return t+i+o+n+a+l+s}function Lw(r){var e=getComputedStyle(r);return{width:(r.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(r.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function Xh(r){return typeof r=="number"&&!isNaN(r)}function Wh(r,e,t,i){var n=t,a=i;if(e){var o=Lw(r);n=o.width?o.width:n,a=o.height?o.height:a}return{width:Math.max(Xh(n)?n:Yh,Yh),height:Math.max(Xh(a)?a:$h,$h)}}function Iw(r){var e=r.parentNode;e&&e.removeChild(r)}var ac=function(r){E(e,r);function e(t){var i=r.call(this)||this;i.destroyed=!1;var n=t.visible,a=n===void 0?!0:n;return i.visible=a,i}return e.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},e.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(Ku),$n=` -\v\f\r   ᠎              \u2028\u2029`,Pw=new RegExp("([a-z])["+$n+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+$n+"]*,?["+$n+"]*)+)","ig"),Dw=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+$n+"]*,?["+$n+"]*","ig"),Wi=function(r){if(!r)return null;if(R(r))return r;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(r).replace(Pw,function(i,n,a){var o=[],s=n.toLowerCase();if(a.replace(Dw,function(l,u){u&&o.push(+u)}),s==="m"&&o.length>2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=e[s]&&(t.push([n].concat(o.splice(0,e[s]))),!!e[s]););return r}),t},Jl=function(r,e){for(var t=[],i=0,n=r.length;n-2*!e>i;i+=2){var a=[{x:+r[i-2],y:+r[i-1]},{x:+r[i],y:+r[i+1]},{x:+r[i+2],y:+r[i+3]},{x:+r[i+4],y:+r[i+5]}];e?i?n-4===i?a[3]={x:+r[0],y:+r[1]}:n-2===i&&(a[2]={x:+r[0],y:+r[1]},a[3]={x:+r[2],y:+r[3]}):a[0]={x:+r[n-2],y:+r[n-1]}:n-4===i?a[3]=a[2]:i||(a[0]={x:+r[i],y:+r[i+1]}),t.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return t},Ha=function(r,e,t,i,n){var a=[];if(n===null&&i===null&&(i=t),r=+r,e=+e,t=+t,i=+i,n!==null){var o=Math.PI/180,s=r+t*Math.cos(-i*o),l=r+t*Math.cos(-n*o),u=e+t*Math.sin(-i*o),c=e+t*Math.sin(-n*o);a=[["M",s,u],["A",t,t,0,+(n-i>180),0,l,c]]}else a=[["M",r,e],["m",0,-i],["a",t,i,0,1,1,0,2*i],["a",t,i,0,1,1,0,-2*i],["z"]];return a},tu=function(r){if(r=Wi(r),!r||!r.length)return[["M",0,0]];var e=[],t=0,i=0,n=0,a=0,o=0,s,l;r[0][0]==="M"&&(t=+r[0][1],i=+r[0][2],n=t,a=i,o++,e[0]=["M",t,i]);for(var u=r.length===3&&r[0][0]==="M"&&r[1][0].toUpperCase()==="R"&&r[2][0].toUpperCase()==="Z",c=void 0,h=void 0,f=o,v=r.length;f1&&(C=Math.sqrt(C),t=C*t,i=C*i);var M=t*t,F=i*i,T=(a===o?-1:1)*Math.sqrt(Math.abs((M*F-M*w*w-F*b*b)/(M*w*w+F*b*b)));g=T*t*w/i+(r+s)/2,y=T*-i*b/t+(e+l)/2,d=Math.asin(((e-y)/i).toFixed(9)),p=Math.asin(((l-y)/i).toFixed(9)),d=rp&&(d=d-Math.PI*2),!o&&p>d&&(p=p-Math.PI*2)}var L=p-d;if(Math.abs(L)>c){var k=p,P=s,O=l;p=d+c*(o&&p>d?1:-1),s=g+t*Math.cos(p),l=y+i*Math.sin(p),f=Fp(s,l,t,i,n,0,o,P,O,[p,k,g,y])}L=p-d;var N=Math.cos(d),V=Math.sin(d),U=Math.cos(p),D=Math.sin(p),z=Math.tan(L/4),X=4/3*t*z,$=4/3*i*z,Y=[r,e],W=[r+X*V,e-$*N],et=[s+X*D,l-$*U],at=[s,l];if(W[0]=2*Y[0]-W[0],W[1]=2*Y[1]-W[1],u)return[W,et,at].concat(f);f=[W,et,at].concat(f).join().split(",");for(var Q=[],tt=0,pt=f.length;tt7){b[w].shift();for(var C=b[w];C.length;)o[w]="A",i&&(s[w]="A"),b.splice(w++,0,["C"].concat(C.splice(0,6)));b.splice(w,1),c=Math.max(t.length,i&&i.length||0)}},v=function(b,w,C,M,F){b&&w&&b[F][0]==="M"&&w[F][0]!=="M"&&(w.splice(F,0,["M",M.x,M.y]),C.bx=0,C.by=0,C.x=b[F][1],C.y=b[F][2],c=Math.max(t.length,i&&i.length||0))};c=Math.max(t.length,i&&i.length||0);for(var d=0;d1?1:l<0?0:l;for(var u=l/2,c=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],v=0,d=0;d0&&v<1&&l.push(v);continue}var p=h*h-4*f*c,g=Math.sqrt(p);if(!(p<0)){var y=(-h+g)/(2*c);y>0&&y<1&&l.push(y);var x=(-h-g)/(2*c);x>0&&x<1&&l.push(x)}}for(var b=l.length,w=b,C;b--;)v=l[b],C=1-v,u[0][b]=C*C*C*r+3*C*C*v*t+3*C*v*v*n+v*v*v*o,u[1][b]=C*C*C*e+3*C*C*v*i+3*C*v*v*a+v*v*v*s;return u[0][w]=r,u[1][w]=e,u[0][w+1]=o,u[1][w+1]=s,u[0].length=u[1].length=w+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},Rw=function(r,e,t,i,n,a,o,s){if(!(Math.max(r,t)Math.max(n,o)||Math.max(e,i)Math.max(a,s))){var l=(r*i-e*t)*(n-o)-(r-t)*(n*s-a*o),u=(r*i-e*t)*(a-s)-(e-i)*(n*s-a*o),c=(r-t)*(a-s)-(e-i)*(n-o);if(c){var h=l/c,f=u/c,v=+h.toFixed(2),d=+f.toFixed(2);if(!(v<+Math.min(r,t).toFixed(2)||v>+Math.max(r,t).toFixed(2)||v<+Math.min(n,o).toFixed(2)||v>+Math.max(n,o).toFixed(2)||d<+Math.min(e,i).toFixed(2)||d>+Math.max(e,i).toFixed(2)||d<+Math.min(a,s).toFixed(2)||d>+Math.max(a,s).toFixed(2)))return{x:h,y:f}}}},Sr=function(r,e,t){return e>=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},Ep=function(r,e,t,i,n){if(n)return[["M",+r+ +n,e],["l",t-n*2,0],["a",n,n,0,0,1,n,n],["l",0,i-n*2],["a",n,n,0,0,1,-n,n],["l",n*2-t,0],["a",n,n,0,0,1,-n,-n],["l",0,n*2-i],["a",n,n,0,0,1,n,-n],["z"]];var a=[["M",r,e],["l",t,0],["l",0,i],["l",-t,0],["z"]];return a.parsePathArray=Tp,a},ru=function(r,e,t,i){return r===null&&(r=e=t=i=0),e===null&&(e=r.y,t=r.width,i=r.height,r=r.x),{x:r,y:e,width:t,w:t,height:i,h:i,x2:r+t,y2:e+i,cx:r+t/2,cy:e+i/2,r1:Math.min(t,i)/2,r2:Math.max(t,i)/2,r0:Math.sqrt(t*t+i*i)/2,path:Ep(r,e,t,i),vb:[r,e,t,i].join(" ")}},Nw=function(r,e){return r=ru(r),e=ru(e),Sr(e,r.x,r.y)||Sr(e,r.x2,r.y)||Sr(e,r.x,r.y2)||Sr(e,r.x2,r.y2)||Sr(r,e.x,e.y)||Sr(r,e.x2,e.y)||Sr(r,e.x,e.y2)||Sr(r,e.x2,e.y2)||(r.xe.x||e.xr.x)&&(r.ye.y||e.yr.y)},jh=function(r,e,t,i,n,a,o,s){R(r)||(r=[r,e,t,i,n,a,o,s]);var l=Bw.apply(null,r);return ru(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Zh=function(r,e,t,i,n,a,o,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),f=l*l,v=f*l,d=c*r+h*3*l*t+u*3*l*l*n+v*o,p=c*e+h*3*l*i+u*3*l*l*a+v*s,g=r+2*l*(t-r)+f*(n-2*t+r),y=e+2*l*(i-e)+f*(a-2*i+e),x=t+2*l*(n-t)+f*(o-2*n+t),b=i+2*l*(a-i)+f*(s-2*a+i),w=u*r+l*t,C=u*e+l*i,M=u*n+l*o,F=u*a+l*s,T=90-Math.atan2(g-x,y-b)*180/Math.PI;return{x:d,y:p,m:{x:g,y},n:{x,y:b},start:{x:w,y:C},end:{x:M,y:F},alpha:T}},zw=function(r,e,t){var i=jh(r),n=jh(e);if(!Nw(i,n))return t?0:[];for(var a=Uh.apply(0,r),o=Uh.apply(0,e),s=~~(a/8),l=~~(o/8),u=[],c=[],h={},f=t?0:[],v=0;v=0&&F<=1&&T>=0&&T<=1&&(t?f+=1:f.push({x:M.x,y:M.y,t1:F,t2:T}))}}return f},Gw=function(r,e,t){r=eu(r),e=eu(e);for(var i,n,a,o,s,l,u,c,h,f,v=t?0:[],d=0,p=r.length;d=3&&(h.length===3&&f.push("Q"),f=f.concat(h[1])),h.length===2&&f.push("L"),f=f.concat(h[h.length-1]),f});return c}var Hw=function(r,e,t){if(t===1)return[[].concat(r)];var i=[];if(e[0]==="L"||e[0]==="C"||e[0]==="Q")i=i.concat($w(r,e,t));else{var n=[].concat(r);n[0]==="M"&&(n[0]="L");for(var a=0;a<=t-1;a++)i.push(n)}return i},Xw=function(r,e){if(r.length===1)return r;var t=r.length-1,i=e.length-1,n=t/i,a=[];if(r.length===1&&r[0][0]==="M"){for(var o=0;o=0;l--)o=a[l].index,a[l].type==="add"?r.splice(o,0,[].concat(r[o])):r.splice(o,1)}i=r.length;var h=n-i;if(i0)t=hl(t,r[i-1],1);else{r[i]=e[i];break}r[i]=["Q"].concat(t.reduce(function(n,a){return n.concat(a)},[]));break;case"T":r[i]=["T"].concat(t[0]);break;case"C":if(t.length<3)if(i>0)t=hl(t,r[i-1],2);else{r[i]=e[i];break}r[i]=["C"].concat(t.reduce(function(n,a){return n.concat(a)},[]));break;case"S":if(t.length<2)if(i>0)t=hl(t,r[i-1],1);else{r[i]=e[i];break}r[i]=["S"].concat(t.reduce(function(n,a){return n.concat(a)},[]));break;default:r[i]=e[i]}return r};const oc=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:Jl,fillPath:Xw,fillPathByDiff:kp,formatPath:iu,intersection:Vw,parsePathArray:Tp,parsePathString:Wi,pathToAbsolute:tu,pathToCurve:eu,rectPath:Ep},Symbol.toStringTag,{value:"Module"}));var Fa=function(){function r(e,t){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=e,this.name=e,this.originalEvent=t,this.timeStamp=t.timeStamp}return r.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},r.prototype.stopPropagation=function(){this.propagationStopped=!0},r.prototype.toString=function(){var e=this.type;return"[Event (type="+e+")]"},r.prototype.save=function(){},r.prototype.restore=function(){},r}();function Ip(r,e){var t=r.indexOf(e);t!==-1&&r.splice(t,1)}var Qh=typeof window<"u"&&typeof window.document<"u";function Pp(r,e){if(r.isCanvas())return!0;for(var t=e.getParent(),i=!1;t;){if(t===r){i=!0;break}t=t.getParent()}return i}function ea(r){return r.cfg.visible&&r.cfg.capture}var fs=function(r){E(e,r);function e(t){var i=r.call(this)||this;i.destroyed=!1;var n=i.getDefaultCfg();return i.cfg=yt(n,t),i}return e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,i){this.cfg[t]=i},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(Ku),Kh=globalThis&&globalThis.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var i=0,n=e.length,a;i"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Kw:typeof navigator<"u"?ef(navigator.userAgent):n1()}function r1(r){return r!==""&&e1.reduce(function(e,t){var i=t[0],n=t[1];if(e)return e;var a=n.exec(r);return!!a&&[i,a]},!1)}function ef(r){var e=r1(r);if(!e)return null;var t=e[0],i=e[1];if(t==="searchbot")return new Qw;var n=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);n?n.length=0;return t?n?Math.PI*2-i:i:n?i:Math.PI*2-i}function rf(r,e){var t=[],i=r[0],n=r[1],a=r[2],o=r[3],s=r[4],l=r[5],u=r[6],c=r[7],h=r[8],f=e[0],v=e[1],d=e[2],p=e[3],g=e[4],y=e[5],x=e[6],b=e[7],w=e[8];return t[0]=f*i+v*o+d*u,t[1]=f*n+v*s+d*c,t[2]=f*a+v*l+d*h,t[3]=p*i+g*o+y*u,t[4]=p*n+g*s+y*c,t[5]=p*a+g*l+y*h,t[6]=x*i+b*o+w*u,t[7]=x*n+b*s+w*c,t[8]=x*a+b*l+w*h,t}function hr(r,e){var t=[],i=e[0],n=e[1];return t[0]=r[0]*i+r[3]*n+r[6],t[1]=r[1]*i+r[4]*n+r[7],t}function ds(r){var e=[],t=r[0],i=r[1],n=r[2],a=r[3],o=r[4],s=r[5],l=r[6],u=r[7],c=r[8],h=c*o-s*u,f=-c*a+s*l,v=u*a-o*l,d=t*h+i*f+n*v;return d?(d=1/d,e[0]=h*d,e[1]=(-c*i+n*u)*d,e[2]=(s*i-n*o)*d,e[3]=f*d,e[4]=(c*t-n*l)*d,e[5]=(-s*t+n*a)*d,e[6]=v*d,e[7]=(-u*t+i*l)*d,e[8]=(o*t-i*a)*d,e):null}var An=Rt,fl="matrix",f1=["zIndex","capture","visible","type"],v1=["repeat"],d1=":",p1="*";function g1(r){for(var e=[],t=0;to.delay&&S(e.toAttrs,function(s,l){a.call(o.toAttrs,l)&&(delete o.toAttrs[l],delete o.fromAttrs[l])})}),r}var Bp=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.attrs={};var n=i.getDefaultAttrs();return yt(n,t.attrs),i.attrs=n,i.initAttrs(n),i.initAnimate(),i}return e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,i=[],n=0;n0?a=x1(a,w):n.addAnimator(this),a.push(w),this.set("animations",a),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var i=this;t===void 0&&(t=!0);var n=this.get("animations");S(n,function(a){t&&(a.onFrame?i.attr(a.onFrame(1)):i.attr(a.toAttrs)),a.callback&&a.callback()}),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),i=this.get("animations"),n=t.getTime();return S(i,function(a){a._paused=!0,a._pauseTime=n,a.pauseCallback&&a.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),i=t.getTime(),n=this.get("animations"),a=this.get("_pause").pauseTime;return S(n,function(o){o.startTime=o.startTime+(i-a),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,i){var n=this,a=i.propagationPath;this.getEvents();var o;t==="mouseenter"?o=i.fromShape:t==="mouseleave"&&(o=i.toShape);for(var s=function(h){var f=a[h],v=f.get("name");if(v){if((f.isGroup()||f.isCanvas&&f.isCanvas())&&o&&Pp(f,o))return"break";R(v)?S(v,function(d){n.emitDelegateEvent(f,d,i)}):l.emitDelegateEvent(f,v,i)}},l=this,u=0;u0)});o.length>0?S(o,function(l){var u=l.getBBox(),c=u.minX,h=u.maxX,f=u.minY,v=u.maxY;ci&&(i=h),fa&&(a=v)}):(t=0,i=0,n=0,a=0);var s={x:t,y:n,minX:t,minY:n,maxX:i,maxY:a,width:i-t,height:a-n};return s},e.prototype.getCanvasBBox=function(){var t=1/0,i=-1/0,n=1/0,a=-1/0,o=this.getChildren().filter(function(l){return l.get("visible")&&(!l.isGroup()||l.isGroup()&&l.getChildren().length>0)});o.length>0?S(o,function(l){var u=l.getCanvasBBox(),c=u.minX,h=u.maxX,f=u.minY,v=u.maxY;ci&&(i=h),fa&&(a=v)}):(t=0,i=0,n=0,a=0);var s={x:t,y:n,minX:t,minY:n,maxX:i,maxY:a,width:i-t,height:a-n};return s},e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return t.children=[],t},e.prototype.onAttrChange=function(t,i,n){if(r.prototype.onAttrChange.call(this,t,i,n),t==="matrix"){var a=this.getTotalMatrix();this._applyChildrenMarix(a)}},e.prototype.applyMatrix=function(t){var i=this.getTotalMatrix();r.prototype.applyMatrix.call(this,t);var n=this.getTotalMatrix();n!==i&&this._applyChildrenMarix(n)},e.prototype._applyChildrenMarix=function(t){var i=this.getChildren();S(i,function(n){n.applyMatrix(t)})},e.prototype.addShape=function(){for(var t=[],i=0;i=0;s--){var l=t[s];if(ea(l)&&(l.isGroup()?o=l.getShape(i,n,a):l.isHit(i,n)&&(o=l)),o)break}return o},e.prototype.add=function(t){var i=this.getCanvas(),n=this.getChildren(),a=this.get("timeline"),o=t.getParent();o&&w1(o,t,!1),t.set("parent",this),i&&Rp(t,i),a&&Np(t,a),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var i=this.getTotalMatrix();i&&t.applyMatrix(i)},e.prototype.getChildren=function(){return this.get("children")||[]},e.prototype.sort=function(){var t=this.getChildren();S(t,function(i,n){return i[nu]=n,i}),t.sort(b1(function(i,n){return i.get("zIndex")-n.get("zIndex")})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),i=t.length-1;i>=0;i--)t[i].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),r.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var i=this.getChildren();return i[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var i=this.getChildren();return i.indexOf(t)>-1},e.prototype.removeChild=function(t,i){i===void 0&&(i=!0),this.contain(t)&&t.remove(i)},e.prototype.findAll=function(t){var i=[],n=this.getChildren();return S(n,function(a){t(a)&&i.push(a),a.isGroup()&&(i=i.concat(a.findAll(t)))}),i},e.prototype.find=function(t){var i=null,n=this.getChildren();return S(n,function(a){if(t(a)?i=a:a.isGroup()&&(i=a.find(t)),i)return!1}),i},e.prototype.findById=function(t){return this.find(function(i){return i.get("id")===t})},e.prototype.findByClassName=function(t){return this.find(function(i){return i.get("className")===t})},e.prototype.findAllByName=function(t){return this.findAll(function(i){return i.get("name")===t})},e}(Bp),rn=0,Bn=0,Fn=0,Gp=1e3,No,Rn,zo=0,Ci=0,ps=0,ra=typeof performance=="object"&&performance.now?performance:Date,Vp=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function Yp(){return Ci||(Vp(C1),Ci=ra.now()+ps)}function C1(){Ci=0}function au(){this._call=this._time=this._next=null}au.prototype=$p.prototype={constructor:au,restart:function(r,e,t){if(typeof r!="function")throw new TypeError("callback is not a function");t=(t==null?Yp():+t)+(e==null?0:+e),!this._next&&Rn!==this&&(Rn?Rn._next=this:No=this,Rn=this),this._call=r,this._time=t,ou()},stop:function(){this._call&&(this._call=null,this._time=1/0,ou())}};function $p(r,e,t){var i=new au;return i.restart(r,e,t),i}function S1(){Yp(),++rn;for(var r=No,e;r;)(e=Ci-r._time)>=0&&r._call.call(null,e),r=r._next;--rn}function af(){Ci=(zo=ra.now())+ps,rn=Bn=0;try{S1()}finally{rn=0,A1(),Ci=0}}function M1(){var r=ra.now(),e=r-zo;e>Gp&&(ps-=e,zo=r)}function A1(){for(var r,e=No,t,i=1/0;e;)e._call?(i>e._time&&(i=e._time),r=e,e=e._next):(t=e._next,e._next=null,e=r?r._next=t:No=t);Rn=r,ou(i)}function ou(r){if(!rn){Bn&&(Bn=clearTimeout(Bn));var e=r-Ci;e>24?(r<1/0&&(Bn=setTimeout(af,r-ra.now()-ps)),Fn&&(Fn=clearInterval(Fn))):(Fn||(zo=ra.now(),Fn=setInterval(M1,Gp)),rn=1,Vp(af))}}function uc(r,e,t){r.prototype=e.prototype=t,t.constructor=r}function Hp(r,e){var t=Object.create(r.prototype);for(var i in e)t[i]=e[i];return t}function Ta(){}var ia=.7,Go=1/ia,Ui="\\s*([+-]?\\d+)\\s*",na="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",F1=/^#([0-9a-f]{3,8})$/,T1=new RegExp(`^rgb\\(${Ui},${Ui},${Ui}\\)$`),E1=new RegExp(`^rgb\\(${Qe},${Qe},${Qe}\\)$`),k1=new RegExp(`^rgba\\(${Ui},${Ui},${Ui},${na}\\)$`),L1=new RegExp(`^rgba\\(${Qe},${Qe},${Qe},${na}\\)$`),I1=new RegExp(`^hsl\\(${na},${Qe},${Qe}\\)$`),P1=new RegExp(`^hsla\\(${na},${Qe},${Qe},${na}\\)$`),of={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};uc(Ta,aa,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:sf,formatHex:sf,formatHex8:D1,formatHsl:O1,formatRgb:lf,toString:lf});function sf(){return this.rgb().formatHex()}function D1(){return this.rgb().formatHex8()}function O1(){return Xp(this).formatHsl()}function lf(){return this.rgb().formatRgb()}function aa(r){var e,t;return r=(r+"").trim().toLowerCase(),(e=F1.exec(r))?(t=e[1].length,e=parseInt(e[1],16),t===6?uf(e):t===3?new he(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?Wa(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?Wa(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=T1.exec(r))?new he(e[1],e[2],e[3],1):(e=E1.exec(r))?new he(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=k1.exec(r))?Wa(e[1],e[2],e[3],e[4]):(e=L1.exec(r))?Wa(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=I1.exec(r))?ff(e[1],e[2]/100,e[3]/100,1):(e=P1.exec(r))?ff(e[1],e[2]/100,e[3]/100,e[4]):of.hasOwnProperty(r)?uf(of[r]):r==="transparent"?new he(NaN,NaN,NaN,0):null}function uf(r){return new he(r>>16&255,r>>8&255,r&255,1)}function Wa(r,e,t,i){return i<=0&&(r=e=t=NaN),new he(r,e,t,i)}function B1(r){return r instanceof Ta||(r=aa(r)),r?(r=r.rgb(),new he(r.r,r.g,r.b,r.opacity)):new he}function su(r,e,t,i){return arguments.length===1?B1(r):new he(r,e,t,i??1)}function he(r,e,t,i){this.r=+r,this.g=+e,this.b=+t,this.opacity=+i}uc(he,su,Hp(Ta,{brighter(r){return r=r==null?Go:Math.pow(Go,r),new he(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?ia:Math.pow(ia,r),new he(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new he(di(this.r),di(this.g),di(this.b),Vo(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cf,formatHex:cf,formatHex8:R1,formatRgb:hf,toString:hf}));function cf(){return`#${si(this.r)}${si(this.g)}${si(this.b)}`}function R1(){return`#${si(this.r)}${si(this.g)}${si(this.b)}${si((isNaN(this.opacity)?1:this.opacity)*255)}`}function hf(){const r=Vo(this.opacity);return`${r===1?"rgb(":"rgba("}${di(this.r)}, ${di(this.g)}, ${di(this.b)}${r===1?")":`, ${r})`}`}function Vo(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function di(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function si(r){return r=di(r),(r<16?"0":"")+r.toString(16)}function ff(r,e,t,i){return i<=0?r=e=t=NaN:t<=0||t>=1?r=e=NaN:e<=0&&(r=NaN),new Ne(r,e,t,i)}function Xp(r){if(r instanceof Ne)return new Ne(r.h,r.s,r.l,r.opacity);if(r instanceof Ta||(r=aa(r)),!r)return new Ne;if(r instanceof Ne)return r;r=r.rgb();var e=r.r/255,t=r.g/255,i=r.b/255,n=Math.min(e,t,i),a=Math.max(e,t,i),o=NaN,s=a-n,l=(a+n)/2;return s?(e===a?o=(t-i)/s+(t0&&l<1?0:o,new Ne(o,s,l,r.opacity)}function N1(r,e,t,i){return arguments.length===1?Xp(r):new Ne(r,e,t,i??1)}function Ne(r,e,t,i){this.h=+r,this.s=+e,this.l=+t,this.opacity=+i}uc(Ne,N1,Hp(Ta,{brighter(r){return r=r==null?Go:Math.pow(Go,r),new Ne(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?ia:Math.pow(ia,r),new Ne(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,e=isNaN(r)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*e,n=2*t-i;return new he(vl(r>=240?r-240:r+120,n,i),vl(r,n,i),vl(r<120?r+240:r-120,n,i),this.opacity)},clamp(){return new Ne(vf(this.h),_a(this.s),_a(this.l),Vo(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const r=Vo(this.opacity);return`${r===1?"hsl(":"hsla("}${vf(this.h)}, ${_a(this.s)*100}%, ${_a(this.l)*100}%${r===1?")":`, ${r})`}`}}));function vf(r){return r=(r||0)%360,r<0?r+360:r}function _a(r){return Math.max(0,Math.min(1,r||0))}function vl(r,e,t){return(r<60?e+(t-e)*r/60:r<180?t:r<240?e+(t-e)*(240-r)/60:e)*255}const cc=r=>()=>r;function z1(r,e){return function(t){return r+t*e}}function G1(r,e,t){return r=Math.pow(r,t),e=Math.pow(e,t)-r,t=1/t,function(i){return Math.pow(r+i*e,t)}}function V1(r){return(r=+r)==1?Wp:function(e,t){return t-e?G1(e,t,r):cc(isNaN(e)?t:e)}}function Wp(r,e){var t=e-r;return t?z1(r,t):cc(isNaN(r)?e:r)}const df=function r(e){var t=V1(e);function i(n,a){var o=t((n=su(n)).r,(a=su(a)).r),s=t(n.g,a.g),l=t(n.b,a.b),u=Wp(n.opacity,a.opacity);return function(c){return n.r=o(c),n.g=s(c),n.b=l(c),n.opacity=u(c),n+""}}return i.gamma=r,i}(1);function _p(r,e){e||(e=[]);var t=r?Math.min(e.length,r.length):0,i=e.slice(),n;return function(a){for(n=0;nt&&(a=e.slice(t,a),s[o]?s[o]+=a:s[++o]=a),(i=i[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:lu(i,n)})),t=dl.lastIndex;return tu.length?(l=Wi(a[s]),u=Wi(n[s]),u=kp(u,l),u=iu(u,l),e.fromAttrs.path=u,e.toAttrs.path=l):e.pathFormatted||(l=Wi(a[s]),u=Wi(n[s]),u=iu(u,l),e.fromAttrs.path=u,e.toAttrs.path=l,e.pathFormatted=!0),i[s]=[];for(var c=0;c0){for(var s=e.animators.length-1;s>=0;s--){if(i=e.animators[s],i.destroyed){e.removeAnimator(s);continue}if(!i.isAnimatePaused()){n=i.get("animations");for(var l=n.length-1;l>=0;l--)a=n[l],t=Ab(i,a,o),t&&(n.splice(l,1),t=!1,a.callback&&a.callback())}n.length===0&&e.removeAnimator(s)}var u=e.canvas.get("autoDraw");u||e.canvas.draw()}})},r.prototype.addAnimator=function(e){this.animators.push(e)},r.prototype.removeAnimator=function(e){this.animators.splice(e,1)},r.prototype.isAnimating=function(){return!!this.animators.length},r.prototype.stop=function(){this.timer&&this.timer.stop()},r.prototype.stopAllAnimations=function(e){e===void 0&&(e=!0),this.animators.forEach(function(t){t.stopAnimate(e)}),this.animators=[],this.canvas.draw()},r.prototype.getTime=function(){return this.current},r}(),Tb=40,Mf=0,Af=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Ff(r,e,t){t.name=e,t.target=r,t.currentTarget=r,t.delegateTarget=r,r.emit(e,t)}function Eb(r,e,t){if(t.bubbles){var i=void 0,n=!1;if(e==="mouseenter"?(i=t.fromShape,n=!0):e==="mouseleave"&&(n=!0,i=t.toShape),r.isCanvas()&&n)return;if(i&&Pp(r,i)){t.bubbles=!1;return}t.name=e,t.currentTarget=r,t.delegateTarget=r,r.emit(e,t)}}var kb=function(){function r(e){var t=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(i){var n=i.type;t._triggerEvent(n,i)},this._onDocumentMove=function(i){var n=t.canvas,a=n.get("el");if(a!==i.target&&(t.dragging||t.currentShape)){var o=t._getPointInfo(i);t.dragging&&t._emitEvent("drag",i,o,t.draggingShape)}},this._onDocumentMouseUp=function(i){var n=t.canvas,a=n.get("el");if(a!==i.target&&t.dragging){var o=t._getPointInfo(i);t.draggingShape&&t._emitEvent("drop",i,o,null),t._emitEvent("dragend",i,o,t.draggingShape),t._afterDrag(t.draggingShape,o,i)}},this.canvas=e.canvas}return r.prototype.init=function(){this._bindEvents()},r.prototype._bindEvents=function(){var e=this,t=this.canvas.get("el");S(Af,function(i){t.addEventListener(i,e._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},r.prototype._clearEvents=function(){var e=this,t=this.canvas.get("el");S(Af,function(i){t.removeEventListener(i,e._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},r.prototype._getEventObj=function(e,t,i,n,a,o){var s=new Fa(e,t);return s.fromShape=a,s.toShape=o,s.x=i.x,s.y=i.y,s.clientX=i.clientX,s.clientY=i.clientY,s.propagationPath.push(n),s},r.prototype._getShape=function(e,t){return this.canvas.getShape(e.x,e.y,t)},r.prototype._getPointInfo=function(e){var t=this.canvas,i=t.getClientByEvent(e),n=t.getPointByEvent(e);return{x:n.x,y:n.y,clientX:i.x,clientY:i.y}},r.prototype._triggerEvent=function(e,t){var i=this._getPointInfo(t),n=this._getShape(i,t),a=this["_on"+e],o=!1;if(a)a.call(this,i,n,t);else{var s=this.currentShape;e==="mouseenter"||e==="dragenter"||e==="mouseover"?(this._emitEvent(e,t,i,null,null,n),n&&this._emitEvent(e,t,i,n,null,n),e==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",t,i,null)):e==="mouseleave"||e==="dragleave"||e==="mouseout"?(o=!0,s&&this._emitEvent(e,t,i,s,s,null),this._emitEvent(e,t,i,null,s,null),e==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",t,i,null)):this._emitEvent(e,t,i,n,null,null)}if(o||(this.currentShape=n),n&&!n.get("destroyed")){var l=this.canvas,u=l.get("el");u.style.cursor=n.attr("cursor")||l.get("cursor")}},r.prototype._onmousedown=function(e,t,i){i.button===Mf&&(this.mousedownShape=t,this.mousedownPoint=e,this.mousedownTimeStamp=i.timeStamp),this._emitEvent("mousedown",i,e,t,null,null)},r.prototype._emitMouseoverEvents=function(e,t,i,n){var a=this.canvas.get("el");i!==n&&(i&&(this._emitEvent("mouseout",e,t,i,i,n),this._emitEvent("mouseleave",e,t,i,i,n),(!n||n.get("destroyed"))&&(a.style.cursor=this.canvas.get("cursor"))),n&&(this._emitEvent("mouseover",e,t,n,i,n),this._emitEvent("mouseenter",e,t,n,i,n)))},r.prototype._emitDragoverEvents=function(e,t,i,n,a){n?(n!==i&&(i&&this._emitEvent("dragleave",e,t,i,i,n),this._emitEvent("dragenter",e,t,n,i,n)),a||this._emitEvent("dragover",e,t,n)):i&&this._emitEvent("dragleave",e,t,i,i,n),a&&this._emitEvent("dragover",e,t,n)},r.prototype._afterDrag=function(e,t,i){e&&(e.set("capture",!0),this.draggingShape=null),this.dragging=!1;var n=this._getShape(t,i);n!==e&&this._emitMouseoverEvents(i,t,e,n),this.currentShape=n},r.prototype._onmouseup=function(e,t,i){if(i.button===Mf){var n=this.draggingShape;this.dragging?(n&&this._emitEvent("drop",i,e,t),this._emitEvent("dragend",i,e,n),this._afterDrag(n,e,i)):(this._emitEvent("mouseup",i,e,t),t===this.mousedownShape&&this._emitEvent("click",i,e,t),this.mousedownShape=null,this.mousedownPoint=null)}},r.prototype._ondragover=function(e,t,i){i.preventDefault();var n=this.currentShape;this._emitDragoverEvents(i,e,n,t,!0)},r.prototype._onmousemove=function(e,t,i){var n=this.canvas,a=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(i,e,a,t,!1),this._emitEvent("drag",i,e,o);else{var s=this.mousedownPoint;if(s){var l=this.mousedownShape,u=i.timeStamp,c=u-this.mousedownTimeStamp,h=s.clientX-e.clientX,f=s.clientY-e.clientY,v=h*h+f*f;c>120||v>Tb?l&&l.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",i,e,o),this.mousedownShape=null,this.mousedownPoint=null):!l&&n.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",i,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(i,e,a,t),this._emitEvent("mousemove",i,e,t)):(this._emitMouseoverEvents(i,e,a,t),this._emitEvent("mousemove",i,e,t))}else this._emitMouseoverEvents(i,e,a,t),this._emitEvent("mousemove",i,e,t)}},r.prototype._emitEvent=function(e,t,i,n,a,o){var s=this._getEventObj(e,t,i,n,a,o);if(n){s.shape=n,Ff(n,e,s);for(var l=n.getParent();l;)l.emitDelegation(e,s),s.propagationStopped||Eb(l,e,s),s.propagationPath.push(l),l=l.getParent()}else{var u=this.canvas;Ff(u,e,s)}},r.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},r}(),Tf="px",Ef=Dp(),Lb=Ef&&Ef.name==="firefox",gs=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.initContainer(),i.initDom(),i.initEvents(),i.initTimeline(),i}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},e.prototype.initContainer=function(){var t=this.get("container");K(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var i=this.get("container");i.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new kb({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Fb(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,i){var n=this.get("el");Qh&&(n.style.width=t+Tf,n.style.height=i+Tf)},e.prototype.changeSize=function(t,i){this.setDOMSize(t,i),this.set("width",t),this.set("height",i),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var i=this.get("el");Qh&&i&&(i.style.cursor=t)},e.prototype.getPointByEvent=function(t){var i=this.get("supportCSSTransform");if(i){if(Lb&&!B(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!B(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),a=n.x,o=n.y;return this.getPointByClient(a,o)},e.prototype.getClientByEvent=function(t){var i=t;return t.touches&&(t.type==="touchend"?i=t.changedTouches[0]:i=t.touches[0]),{x:i.clientX,y:i.clientY}},e.prototype.getPointByClient=function(t,i){var n=this.get("el"),a=n.getBoundingClientRect();return{x:t-a.left,y:i-a.top}},e.prototype.getClientByPoint=function(t,i){var n=this.get("el"),a=n.getBoundingClientRect();return{x:t+a.left,y:i+a.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),r.prototype.destroy.call(this))},e}(zp),ys=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var t=r.prototype.clone.call(this),i=this.getChildren(),n=0;n=t&&n.minY<=i&&n.maxY>=i},e.prototype.afterAttrsChange=function(t){r.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(t){r.prototype.applyMatrix.call(this,t),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),i=this.getTotalMatrix(),n=t.minX,a=t.minY,o=t.maxX,s=t.maxY;if(i){var l=hr(i,[t.minX,t.minY]),u=hr(i,[t.maxX,t.minY]),c=hr(i,[t.minX,t.maxY]),h=hr(i,[t.maxX,t.maxY]);n=Math.min(l[0],u[0],c[0],h[0]),o=Math.max(l[0],u[0],c[0],h[0]),a=Math.min(l[1],u[1],c[1],h[1]),s=Math.max(l[1],u[1],c[1],h[1])}var f=this.attrs;if(f.shadowColor){var v=f.shadowBlur,d=v===void 0?0:v,p=f.shadowOffsetX,g=p===void 0?0:p,y=f.shadowOffsetY,x=y===void 0?0:y,b=n-d+g,w=o+d+g,C=a-d+x,M=s+d+x;n=Math.min(n,b),o=Math.max(o,w),a=Math.min(a,C),s=Math.max(s,M)}return{x:n,y:a,minX:n,minY:a,maxX:o,maxY:s,width:o-n,height:s-a}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,i){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,i){var n=this.get("startArrowShape"),a=this.get("endArrowShape"),o=[t,i,1];o=this.invertFromMatrix(o);var s=o[0],l=o[1],u=this._isInBBox(s,l);return this.isOnlyHitBox()?u:!!(u&&!this.isClipped(s,l)&&(this.isInShape(s,l)||n&&n.isHit(s,l)||a&&a.isHit(s,l)))},e}(Bp),Jp=new Map;function Pe(r,e){Jp.set(r,e)}function xs(r){return Jp.get(r)}function tg(r){var e=r.attr(),t=e.x,i=e.y,n=e.width,a=e.height;return{x:t,y:i,width:n,height:a}}function eg(r){var e=r.attr(),t=e.x,i=e.y,n=e.r;return{x:t-n,y:i-n,width:n*2,height:n*2}}function te(r,e,t,i){var n=r-t,a=e-i;return Math.sqrt(n*n+a*a)}function Mo(r,e){return Math.abs(r-e)<.001}function pn(r,e){var t=Le(r),i=Le(e),n=be(r),a=be(e);return{x:t,y:i,width:n-t,height:a-i}}function ws(r){return(r+Math.PI*2)%(Math.PI*2)}const Wt={box:function(r,e,t,i){return pn([r,t],[e,i])},length:function(r,e,t,i){return te(r,e,t,i)},pointAt:function(r,e,t,i,n){return{x:(1-n)*r+n*t,y:(1-n)*e+n*i}},pointDistance:function(r,e,t,i,n,a){var o=(t-r)*(n-r)+(i-e)*(a-e);if(o<0)return te(r,e,n,a);var s=(t-r)*(t-r)+(i-e)*(i-e);return o>s?te(t,i,n,a):this.pointToLine(r,e,t,i,n,a)},pointToLine:function(r,e,t,i,n,a){var o=[t-r,i-e];if(Zx(o,[0,0]))return Math.sqrt((n-r)*(n-r)+(a-e)*(a-e));var s=[-o[1],o[0]];vp(s,s);var l=[n-r,a-e];return Math.abs(Qx(l,s))},tangentAngle:function(r,e,t,i){return Math.atan2(i-e,t-r)}};var Ib=1e-4;function rg(r,e,t,i,n,a){var o,s=1/0,l=[t,i],u=20;a&&a>200&&(u=a/10);for(var c=1/u,h=c/10,f=0;f<=u;f++){var v=f*c,d=[n.apply(null,r.concat([v])),n.apply(null,e.concat([v]))],p=te(l[0],l[1],d[0],d[1]);p=0&&p=0?[n]:[]}function Lf(r,e,t,i){return 2*(1-i)*(e-r)+2*i*(t-e)}function ig(r,e,t,i,n,a,o){var s=Er(r,t,n,o),l=Er(e,i,a,o),u=Wt.pointAt(r,e,t,i,o),c=Wt.pointAt(t,i,n,a,o);return[[r,e,u.x,u.y,s,l],[s,l,c.x,c.y,n,a]]}function hu(r,e,t,i,n,a,o){if(o===0)return(te(r,e,t,i)+te(t,i,n,a)+te(r,e,n,a))/2;var s=ig(r,e,t,i,n,a,.5),l=s[0],u=s[1];return l.push(o-1),u.push(o-1),hu.apply(null,l)+hu.apply(null,u)}const ng={box:function(r,e,t,i,n,a){var o=kf(r,t,n)[0],s=kf(e,i,a)[0],l=[r,n],u=[e,a];return o!==void 0&&l.push(Er(r,t,n,o)),s!==void 0&&u.push(Er(e,i,a,s)),pn(l,u)},length:function(r,e,t,i,n,a){return hu(r,e,t,i,n,a,3)},nearestPoint:function(r,e,t,i,n,a,o,s){return rg([r,t,n],[e,i,a],o,s,Er)},pointDistance:function(r,e,t,i,n,a,o,s){var l=this.nearestPoint(r,e,t,i,n,a,o,s);return te(l.x,l.y,o,s)},interpolationAt:Er,pointAt:function(r,e,t,i,n,a,o){return{x:Er(r,t,n,o),y:Er(e,i,a,o)}},divide:function(r,e,t,i,n,a,o){return ig(r,e,t,i,n,a,o)},tangentAngle:function(r,e,t,i,n,a,o){var s=Lf(r,t,n,o),l=Lf(e,i,a,o),u=Math.atan2(l,s);return ws(u)}};function kr(r,e,t,i,n){var a=1-n;return a*a*a*r+3*e*n*a*a+3*t*n*n*a+i*n*n*n}function If(r,e,t,i,n){var a=1-n;return 3*(a*a*(e-r)+2*a*n*(t-e)+n*n*(i-t))}function pl(r,e,t,i){var n=-3*r+9*e-9*t+3*i,a=6*r-12*e+6*t,o=3*e-3*r,s=[],l,u,c;if(Mo(n,0))Mo(a,0)||(l=-o/a,l>=0&&l<=1&&s.push(l));else{var h=a*a-4*n*o;Mo(h,0)?s.push(-a/(2*n)):h>0&&(c=Math.sqrt(h),l=(-a+c)/(2*n),u=(-a-c)/(2*n),l>=0&&l<=1&&s.push(l),u>=0&&u<=1&&s.push(u))}return s}function ag(r,e,t,i,n,a,o,s,l){var u=kr(r,t,n,o,l),c=kr(e,i,a,s,l),h=Wt.pointAt(r,e,t,i,l),f=Wt.pointAt(t,i,n,a,l),v=Wt.pointAt(n,a,o,s,l),d=Wt.pointAt(h.x,h.y,f.x,f.y,l),p=Wt.pointAt(f.x,f.y,v.x,v.y,l);return[[r,e,h.x,h.y,d.x,d.y,u,c],[u,c,p.x,p.y,v.x,v.y,o,s]]}function fu(r,e,t,i,n,a,o,s,l){if(l===0)return Pb([r,t,n,o],[e,i,a,s]);var u=ag(r,e,t,i,n,a,o,s,.5),c=u[0],h=u[1];return c.push(l-1),h.push(l-1),fu.apply(null,c)+fu.apply(null,h)}const Hn={extrema:pl,box:function(r,e,t,i,n,a,o,s){for(var l=[r,o],u=[e,s],c=pl(r,t,n,o),h=pl(e,i,a,s),f=0;f0?t:t*-1}const Db={box:function(r,e,t,i){return{x:r-t,y:e-i,width:t*2,height:i*2}},length:function(r,e,t,i){return Math.PI*(3*(t+i)-Math.sqrt((3*t+i)*(t+3*i)))},nearestPoint:function(r,e,t,i,n,a){var o=t,s=i;if(o===0||s===0)return{x:r,y:e};for(var l=n-r,u=a-e,c=Math.abs(l),h=Math.abs(u),f=o*o,v=s*s,d=Math.PI/4,p,g,y=0;y<4;y++){p=o*Math.cos(d),g=s*Math.sin(d);var x=(f-v)*Math.pow(Math.cos(d),3)/o,b=(v-f)*Math.pow(Math.sin(d),3)/s,w=p-x,C=g-b,M=c-x,F=h-b,T=Math.hypot(C,w),L=Math.hypot(F,M),k=T*Math.asin((w*F-C*M)/(T*L)),P=k/Math.sqrt(f+v-p*p-g*g);d+=P,d=Math.min(Math.PI/2,Math.max(0,d))}return{x:r+Pf(p,l),y:e+Pf(g,u)}},pointDistance:function(r,e,t,i,n,a){var o=this.nearestPoint(r,e,t,i,n,a);return te(o.x,o.y,n,a)},pointAt:function(r,e,t,i,n){var a=2*Math.PI*n;return{x:r+t*Math.cos(a),y:e+i*Math.sin(a)}},tangentAngle:function(r,e,t,i,n){var a=2*Math.PI*n,o=Math.atan2(i*Math.cos(a),-t*Math.sin(a));return ws(o)}};function Ob(r,e,t,i,n,a,o,s){return-1*t*Math.cos(n)*Math.sin(s)-i*Math.sin(n)*Math.cos(s)}function Bb(r,e,t,i,n,a,o,s){return-1*t*Math.sin(n)*Math.sin(s)+i*Math.cos(n)*Math.cos(s)}function Rb(r,e,t){return Math.atan(-e/r*Math.tan(t))}function Nb(r,e,t){return Math.atan(e/(r*Math.tan(t)))}function Df(r,e,t,i,n,a){return t*Math.cos(n)*Math.cos(a)-i*Math.sin(n)*Math.sin(a)+r}function Of(r,e,t,i,n,a){return t*Math.sin(n)*Math.cos(a)+i*Math.cos(n)*Math.sin(a)+e}function zb(r,e,t,i){var n=Math.atan2(i*r,t*e);return(n+Math.PI*2)%(Math.PI*2)}function Bf(r,e,t){return{x:r*Math.cos(t),y:e*Math.sin(t)}}function Rf(r,e,t){var i=Math.cos(t),n=Math.sin(t);return[r*i-e*n,r*n+e*i]}const Gb={box:function(r,e,t,i,n,a,o){for(var s=Rb(t,i,n),l=1/0,u=-1/0,c=[a,o],h=-Math.PI*2;h<=Math.PI*2;h+=Math.PI){var f=s+h;au&&(u=v)}for(var d=Nb(t,i,n),p=1/0,g=-1/0,y=[a,o],h=-Math.PI*2;h<=Math.PI*2;h+=Math.PI){var x=d+h;ag&&(g=b)}return{x:l,y:p,width:u-l,height:g-p}},length:function(r,e,t,i,n,a,o){},nearestPoint:function(r,e,t,i,n,a,o,s,l){var u=Rf(s-r,l-e,-n),c=u[0],h=u[1],f=Db.nearestPoint(0,0,t,i,c,h),v=zb(t,i,f.x,f.y);vo&&(f=Bf(t,i,o));var d=Rf(f.x,f.y,n);return{x:d[0]+r,y:d[1]+e}},pointDistance:function(r,e,t,i,n,a,o,s,l){var u=this.nearestPoint(r,e,t,i,s,l);return te(u.x,u.y,s,l)},pointAt:function(r,e,t,i,n,a,o,s){var l=(o-a)*s+a;return{x:Df(r,e,t,i,n,l),y:Of(r,e,t,i,n,l)}},tangentAngle:function(r,e,t,i,n,a,o,s){var l=(o-a)*s+a,u=Ob(r,e,t,i,n,a,o,l),c=Bb(r,e,t,i,n,a,o,l);return ws(Math.atan2(c,u))}};function og(r){for(var e=0,t=[],i=0;i1||e<0||r.length<2)return null;var t=og(r),i=t.segments,n=t.totalLength;if(n===0)return{x:r[0][0],y:r[0][1]};for(var a=0,o=null,s=0;s=a&&e<=a+h){var f=(e-a)/h;o=Wt.pointAt(u[0],u[1],c[0],c[1],f);break}a+=h}return o}function $b(r,e){if(e>1||e<0||r.length<2)return 0;for(var t=og(r),i=t.segments,n=t.totalLength,a=0,o=0,s=0;s=a&&e<=a+h){o=Math.atan2(c[1]-u[1],c[0]-u[0]);break}a+=h}return o}function Hb(r,e,t){for(var i=1/0,n=0;n-1:!1},qt=function(r,e){if(!He(r))return r;for(var t=[],i=0;ia[s])return 1;if(n[s]t?t:r},ul=function(r,e){var t=e.toString(),i=t.indexOf(".");if(i===-1)return Math.round(r);var n=t.substr(i+1).length;return n>20&&(n=20),parseFloat(r.toFixed(n))},cw=1e-5;function Xt(r,e,t){return t===void 0&&(t=cw),Math.abs(r-e)i&&(t=a,i=o)}return t}},hw=function(r,e){if(R(r)){for(var t,i=1/0,n=0;ne?(i&&(clearTimeout(i),i=null),s=c,o=r.apply(n,a),i||(n=a=null)):!i&&t.trailing!==!1&&(i=setTimeout(l,h)),o};return u.cancel=function(){clearTimeout(i),s=0,i=n=a=null},u},Sw=function(r){return He(r)?Array.prototype.slice.call(r):[]},Pr=function(){};function Vt(r){return B(r)?0:He(r)?r.length:Object.keys(r).length}const Mw=function(r,e,t,i){i===void 0&&(i="...");var n=16,a=$a(i,t),o=K(r)?r:ss(r),s=e,l=[],u,c;if($a(r,t)<=e)return r;for(;u=o.substr(0,n),c=$a(u,t),!(c+a>s&&c>s);)if(l.push(u),s-=c,o=o.substr(n),!o)return l.join("");for(;u=o.substr(0,1),c=$a(u,t),!(c+a>s);)if(l.push(u),s-=c,o=o.substr(1),!o)return l.join("");return""+l.join("")+i};var It;(function(r){r.FORE="fore",r.MID="mid",r.BG="bg"})(It||(It={}));var G;(function(r){r.TOP="top",r.TOP_LEFT="top-left",r.TOP_RIGHT="top-right",r.RIGHT="right",r.RIGHT_TOP="right-top",r.RIGHT_BOTTOM="right-bottom",r.LEFT="left",r.LEFT_TOP="left-top",r.LEFT_BOTTOM="left-bottom",r.BOTTOM="bottom",r.BOTTOM_LEFT="bottom-left",r.BOTTOM_RIGHT="bottom-right",r.RADIUS="radius",r.CIRCLE="circle",r.NONE="none"})(G||(G={}));var Gt;(function(r){r.AXIS="axis",r.GRID="grid",r.LEGEND="legend",r.TOOLTIP="tooltip",r.ANNOTATION="annotation",r.SLIDER="slider",r.SCROLLBAR="scrollbar",r.OTHER="other"})(Gt||(Gt={}));var qi={FORE:3,MID:2,BG:1},ot;(function(r){r.BEFORE_RENDER="beforerender",r.AFTER_RENDER="afterrender",r.BEFORE_PAINT="beforepaint",r.AFTER_PAINT="afterpaint",r.BEFORE_CHANGE_DATA="beforechangedata",r.AFTER_CHANGE_DATA="afterchangedata",r.BEFORE_CLEAR="beforeclear",r.AFTER_CLEAR="afterclear",r.BEFORE_DESTROY="beforedestroy",r.BEFORE_CHANGE_SIZE="beforechangesize",r.AFTER_CHANGE_SIZE="afterchangesize"})(ot||(ot={}));var Rr;(function(r){r.BEFORE_DRAW_ANIMATE="beforeanimate",r.AFTER_DRAW_ANIMATE="afteranimate",r.BEFORE_RENDER_LABEL="beforerenderlabel",r.AFTER_RENDER_LABEL="afterrenderlabel"})(Rr||(Rr={}));var ae;(function(r){r.MOUSE_ENTER="plot:mouseenter",r.MOUSE_DOWN="plot:mousedown",r.MOUSE_MOVE="plot:mousemove",r.MOUSE_UP="plot:mouseup",r.MOUSE_LEAVE="plot:mouseleave",r.TOUCH_START="plot:touchstart",r.TOUCH_MOVE="plot:touchmove",r.TOUCH_END="plot:touchend",r.TOUCH_CANCEL="plot:touchcancel",r.CLICK="plot:click",r.DBLCLICK="plot:dblclick",r.CONTEXTMENU="plot:contextmenu",r.LEAVE="plot:leave",r.ENTER="plot:enter"})(ae||(ae={}));var Ro;(function(r){r.ACTIVE="active",r.INACTIVE="inactive",r.SELECTED="selected",r.DEFAULT="default"})(Ro||(Ro={}));var Xi=["color","shape","size"],bt="_origin",Yh=1,$h=1,Hh=.25,Mp={};function Aw(r){var e=Mp[r];if(!e)throw new Error("G engine '".concat(r,"' is not exist, please register it at first."));return e}function Ap(r,e){Mp[r]=e}function Bi(r,e,t){if(r){if(typeof r.addEventListener=="function")return r.addEventListener(e,t,!1),{remove:function(){r.removeEventListener(e,t,!1)}};if(typeof r.attachEvent=="function")return r.attachEvent("on"+e,t),{remove:function(){r.detachEvent("on"+e,t)}}}}function ue(r,e,t){var i;try{i=window.getComputedStyle?window.getComputedStyle(r,null)[e]:r.style[e]}catch{}finally{i=i===void 0?t:i}return i}function Fw(r,e){var t=ue(r,"height",e);return t==="auto"&&(t=r.offsetHeight),parseFloat(t)}function Tw(r,e){var t=Fw(r,e),i=parseFloat(ue(r,"borderTopWidth"))||0,n=parseFloat(ue(r,"paddingTop"))||0,a=parseFloat(ue(r,"paddingBottom"))||0,o=parseFloat(ue(r,"borderBottomWidth"))||0,s=parseFloat(ue(r,"marginTop"))||0,l=parseFloat(ue(r,"marginBottom"))||0;return t+i+o+n+a+s+l}function Ew(r,e){var t=ue(r,"width",e);return t==="auto"&&(t=r.offsetWidth),parseFloat(t)}function kw(r,e){var t=Ew(r,e),i=parseFloat(ue(r,"borderLeftWidth"))||0,n=parseFloat(ue(r,"paddingLeft"))||0,a=parseFloat(ue(r,"paddingRight"))||0,o=parseFloat(ue(r,"borderRightWidth"))||0,s=parseFloat(ue(r,"marginRight"))||0,l=parseFloat(ue(r,"marginLeft"))||0;return t+i+o+n+a+l+s}function Lw(r){var e=getComputedStyle(r);return{width:(r.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(r.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function Xh(r){return typeof r=="number"&&!isNaN(r)}function Wh(r,e,t,i){var n=t,a=i;if(e){var o=Lw(r);n=o.width?o.width:n,a=o.height?o.height:a}return{width:Math.max(Xh(n)?n:Yh,Yh),height:Math.max(Xh(a)?a:$h,$h)}}function Iw(r){var e=r.parentNode;e&&e.removeChild(r)}var ac=function(r){E(e,r);function e(t){var i=r.call(this)||this;i.destroyed=!1;var n=t.visible,a=n===void 0?!0:n;return i.visible=a,i}return e.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},e.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(Ku),$n=` +\v\f\r   ᠎              \u2028\u2029`,Pw=new RegExp("([a-z])["+$n+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+$n+"]*,?["+$n+"]*)+)","ig"),Dw=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+$n+"]*,?["+$n+"]*","ig"),Wi=function(r){if(!r)return null;if(R(r))return r;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(r).replace(Pw,function(i,n,a){var o=[],s=n.toLowerCase();if(a.replace(Dw,function(l,u){u&&o.push(+u)}),s==="m"&&o.length>2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=e[s]&&(t.push([n].concat(o.splice(0,e[s]))),!!e[s]););return r}),t},Jl=function(r,e){for(var t=[],i=0,n=r.length;n-2*!e>i;i+=2){var a=[{x:+r[i-2],y:+r[i-1]},{x:+r[i],y:+r[i+1]},{x:+r[i+2],y:+r[i+3]},{x:+r[i+4],y:+r[i+5]}];e?i?n-4===i?a[3]={x:+r[0],y:+r[1]}:n-2===i&&(a[2]={x:+r[0],y:+r[1]},a[3]={x:+r[2],y:+r[3]}):a[0]={x:+r[n-2],y:+r[n-1]}:n-4===i?a[3]=a[2]:i||(a[0]={x:+r[i],y:+r[i+1]}),t.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return t},Ha=function(r,e,t,i,n){var a=[];if(n===null&&i===null&&(i=t),r=+r,e=+e,t=+t,i=+i,n!==null){var o=Math.PI/180,s=r+t*Math.cos(-i*o),l=r+t*Math.cos(-n*o),u=e+t*Math.sin(-i*o),c=e+t*Math.sin(-n*o);a=[["M",s,u],["A",t,t,0,+(n-i>180),0,l,c]]}else a=[["M",r,e],["m",0,-i],["a",t,i,0,1,1,0,2*i],["a",t,i,0,1,1,0,-2*i],["z"]];return a},tu=function(r){if(r=Wi(r),!r||!r.length)return[["M",0,0]];var e=[],t=0,i=0,n=0,a=0,o=0,s,l;r[0][0]==="M"&&(t=+r[0][1],i=+r[0][2],n=t,a=i,o++,e[0]=["M",t,i]);for(var u=r.length===3&&r[0][0]==="M"&&r[1][0].toUpperCase()==="R"&&r[2][0].toUpperCase()==="Z",c=void 0,h=void 0,f=o,v=r.length;f1&&(C=Math.sqrt(C),t=C*t,i=C*i);var M=t*t,F=i*i,T=(a===o?-1:1)*Math.sqrt(Math.abs((M*F-M*b*b-F*w*w)/(M*b*b+F*w*w)));g=T*t*b/i+(r+s)/2,y=T*-i*w/t+(e+l)/2,d=Math.asin(((e-y)/i).toFixed(9)),p=Math.asin(((l-y)/i).toFixed(9)),d=rp&&(d=d-Math.PI*2),!o&&p>d&&(p=p-Math.PI*2)}var L=p-d;if(Math.abs(L)>c){var k=p,I=s,O=l;p=d+c*(o&&p>d?1:-1),s=g+t*Math.cos(p),l=y+i*Math.sin(p),f=Fp(s,l,t,i,n,0,o,I,O,[p,k,g,y])}L=p-d;var N=Math.cos(d),Y=Math.sin(d),q=Math.cos(p),D=Math.sin(p),z=Math.tan(L/4),X=4/3*t*z,$=4/3*i*z,V=[r,e],W=[r+X*Y,e-$*N],et=[s+X*D,l-$*q],at=[s,l];if(W[0]=2*V[0]-W[0],W[1]=2*V[1]-W[1],u)return[W,et,at].concat(f);f=[W,et,at].concat(f).join().split(",");for(var Q=[],tt=0,pt=f.length;tt7){w[b].shift();for(var C=w[b];C.length;)o[b]="A",i&&(s[b]="A"),w.splice(b++,0,["C"].concat(C.splice(0,6)));w.splice(b,1),c=Math.max(t.length,i&&i.length||0)}},v=function(w,b,C,M,F){w&&b&&w[F][0]==="M"&&b[F][0]!=="M"&&(b.splice(F,0,["M",M.x,M.y]),C.bx=0,C.by=0,C.x=w[F][1],C.y=w[F][2],c=Math.max(t.length,i&&i.length||0))};c=Math.max(t.length,i&&i.length||0);for(var d=0;d1?1:l<0?0:l;for(var u=l/2,c=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],v=0,d=0;d0&&v<1&&l.push(v);continue}var p=h*h-4*f*c,g=Math.sqrt(p);if(!(p<0)){var y=(-h+g)/(2*c);y>0&&y<1&&l.push(y);var x=(-h-g)/(2*c);x>0&&x<1&&l.push(x)}}for(var w=l.length,b=w,C;w--;)v=l[w],C=1-v,u[0][w]=C*C*C*r+3*C*C*v*t+3*C*v*v*n+v*v*v*o,u[1][w]=C*C*C*e+3*C*C*v*i+3*C*v*v*a+v*v*v*s;return u[0][b]=r,u[1][b]=e,u[0][b+1]=o,u[1][b+1]=s,u[0].length=u[1].length=b+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},Rw=function(r,e,t,i,n,a,o,s){if(!(Math.max(r,t)Math.max(n,o)||Math.max(e,i)Math.max(a,s))){var l=(r*i-e*t)*(n-o)-(r-t)*(n*s-a*o),u=(r*i-e*t)*(a-s)-(e-i)*(n*s-a*o),c=(r-t)*(a-s)-(e-i)*(n-o);if(c){var h=l/c,f=u/c,v=+h.toFixed(2),d=+f.toFixed(2);if(!(v<+Math.min(r,t).toFixed(2)||v>+Math.max(r,t).toFixed(2)||v<+Math.min(n,o).toFixed(2)||v>+Math.max(n,o).toFixed(2)||d<+Math.min(e,i).toFixed(2)||d>+Math.max(e,i).toFixed(2)||d<+Math.min(a,s).toFixed(2)||d>+Math.max(a,s).toFixed(2)))return{x:h,y:f}}}},Sr=function(r,e,t){return e>=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},Ep=function(r,e,t,i,n){if(n)return[["M",+r+ +n,e],["l",t-n*2,0],["a",n,n,0,0,1,n,n],["l",0,i-n*2],["a",n,n,0,0,1,-n,n],["l",n*2-t,0],["a",n,n,0,0,1,-n,-n],["l",0,n*2-i],["a",n,n,0,0,1,n,-n],["z"]];var a=[["M",r,e],["l",t,0],["l",0,i],["l",-t,0],["z"]];return a.parsePathArray=Tp,a},ru=function(r,e,t,i){return r===null&&(r=e=t=i=0),e===null&&(e=r.y,t=r.width,i=r.height,r=r.x),{x:r,y:e,width:t,w:t,height:i,h:i,x2:r+t,y2:e+i,cx:r+t/2,cy:e+i/2,r1:Math.min(t,i)/2,r2:Math.max(t,i)/2,r0:Math.sqrt(t*t+i*i)/2,path:Ep(r,e,t,i),vb:[r,e,t,i].join(" ")}},Nw=function(r,e){return r=ru(r),e=ru(e),Sr(e,r.x,r.y)||Sr(e,r.x2,r.y)||Sr(e,r.x,r.y2)||Sr(e,r.x2,r.y2)||Sr(r,e.x,e.y)||Sr(r,e.x2,e.y)||Sr(r,e.x,e.y2)||Sr(r,e.x2,e.y2)||(r.xe.x||e.xr.x)&&(r.ye.y||e.yr.y)},jh=function(r,e,t,i,n,a,o,s){R(r)||(r=[r,e,t,i,n,a,o,s]);var l=Bw.apply(null,r);return ru(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Zh=function(r,e,t,i,n,a,o,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),f=l*l,v=f*l,d=c*r+h*3*l*t+u*3*l*l*n+v*o,p=c*e+h*3*l*i+u*3*l*l*a+v*s,g=r+2*l*(t-r)+f*(n-2*t+r),y=e+2*l*(i-e)+f*(a-2*i+e),x=t+2*l*(n-t)+f*(o-2*n+t),w=i+2*l*(a-i)+f*(s-2*a+i),b=u*r+l*t,C=u*e+l*i,M=u*n+l*o,F=u*a+l*s,T=90-Math.atan2(g-x,y-w)*180/Math.PI;return{x:d,y:p,m:{x:g,y},n:{x,y:w},start:{x:b,y:C},end:{x:M,y:F},alpha:T}},zw=function(r,e,t){var i=jh(r),n=jh(e);if(!Nw(i,n))return t?0:[];for(var a=Uh.apply(0,r),o=Uh.apply(0,e),s=~~(a/8),l=~~(o/8),u=[],c=[],h={},f=t?0:[],v=0;v=0&&F<=1&&T>=0&&T<=1&&(t?f+=1:f.push({x:M.x,y:M.y,t1:F,t2:T}))}}return f},Gw=function(r,e,t){r=eu(r),e=eu(e);for(var i,n,a,o,s,l,u,c,h,f,v=t?0:[],d=0,p=r.length;d=3&&(h.length===3&&f.push("Q"),f=f.concat(h[1])),h.length===2&&f.push("L"),f=f.concat(h[h.length-1]),f});return c}var Hw=function(r,e,t){if(t===1)return[[].concat(r)];var i=[];if(e[0]==="L"||e[0]==="C"||e[0]==="Q")i=i.concat($w(r,e,t));else{var n=[].concat(r);n[0]==="M"&&(n[0]="L");for(var a=0;a<=t-1;a++)i.push(n)}return i},Xw=function(r,e){if(r.length===1)return r;var t=r.length-1,i=e.length-1,n=t/i,a=[];if(r.length===1&&r[0][0]==="M"){for(var o=0;o=0;l--)o=a[l].index,a[l].type==="add"?r.splice(o,0,[].concat(r[o])):r.splice(o,1)}i=r.length;var h=n-i;if(i0)t=hl(t,r[i-1],1);else{r[i]=e[i];break}r[i]=["Q"].concat(t.reduce(function(n,a){return n.concat(a)},[]));break;case"T":r[i]=["T"].concat(t[0]);break;case"C":if(t.length<3)if(i>0)t=hl(t,r[i-1],2);else{r[i]=e[i];break}r[i]=["C"].concat(t.reduce(function(n,a){return n.concat(a)},[]));break;case"S":if(t.length<2)if(i>0)t=hl(t,r[i-1],1);else{r[i]=e[i];break}r[i]=["S"].concat(t.reduce(function(n,a){return n.concat(a)},[]));break;default:r[i]=e[i]}return r};const oc=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:Jl,fillPath:Xw,fillPathByDiff:kp,formatPath:iu,intersection:Vw,parsePathArray:Tp,parsePathString:Wi,pathToAbsolute:tu,pathToCurve:eu,rectPath:Ep},Symbol.toStringTag,{value:"Module"}));var Fa=function(){function r(e,t){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=e,this.name=e,this.originalEvent=t,this.timeStamp=t.timeStamp}return r.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},r.prototype.stopPropagation=function(){this.propagationStopped=!0},r.prototype.toString=function(){var e=this.type;return"[Event (type="+e+")]"},r.prototype.save=function(){},r.prototype.restore=function(){},r}();function Ip(r,e){var t=r.indexOf(e);t!==-1&&r.splice(t,1)}var Qh=typeof window<"u"&&typeof window.document<"u";function Pp(r,e){if(r.isCanvas())return!0;for(var t=e.getParent(),i=!1;t;){if(t===r){i=!0;break}t=t.getParent()}return i}function ea(r){return r.cfg.visible&&r.cfg.capture}var fs=function(r){E(e,r);function e(t){var i=r.call(this)||this;i.destroyed=!1;var n=i.getDefaultCfg();return i.cfg=yt(n,t),i}return e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,i){this.cfg[t]=i},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(Ku),Kh=globalThis&&globalThis.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var i=0,n=e.length,a;i"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Kw:typeof navigator<"u"?ef(navigator.userAgent):n1()}function r1(r){return r!==""&&e1.reduce(function(e,t){var i=t[0],n=t[1];if(e)return e;var a=n.exec(r);return!!a&&[i,a]},!1)}function ef(r){var e=r1(r);if(!e)return null;var t=e[0],i=e[1];if(t==="searchbot")return new Qw;var n=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);n?n.length=0;return t?n?Math.PI*2-i:i:n?i:Math.PI*2-i}function rf(r,e){var t=[],i=r[0],n=r[1],a=r[2],o=r[3],s=r[4],l=r[5],u=r[6],c=r[7],h=r[8],f=e[0],v=e[1],d=e[2],p=e[3],g=e[4],y=e[5],x=e[6],w=e[7],b=e[8];return t[0]=f*i+v*o+d*u,t[1]=f*n+v*s+d*c,t[2]=f*a+v*l+d*h,t[3]=p*i+g*o+y*u,t[4]=p*n+g*s+y*c,t[5]=p*a+g*l+y*h,t[6]=x*i+w*o+b*u,t[7]=x*n+w*s+b*c,t[8]=x*a+w*l+b*h,t}function hr(r,e){var t=[],i=e[0],n=e[1];return t[0]=r[0]*i+r[3]*n+r[6],t[1]=r[1]*i+r[4]*n+r[7],t}function ds(r){var e=[],t=r[0],i=r[1],n=r[2],a=r[3],o=r[4],s=r[5],l=r[6],u=r[7],c=r[8],h=c*o-s*u,f=-c*a+s*l,v=u*a-o*l,d=t*h+i*f+n*v;return d?(d=1/d,e[0]=h*d,e[1]=(-c*i+n*u)*d,e[2]=(s*i-n*o)*d,e[3]=f*d,e[4]=(c*t-n*l)*d,e[5]=(-s*t+n*a)*d,e[6]=v*d,e[7]=(-u*t+i*l)*d,e[8]=(o*t-i*a)*d,e):null}var An=Rt,fl="matrix",f1=["zIndex","capture","visible","type"],v1=["repeat"],d1=":",p1="*";function g1(r){for(var e=[],t=0;to.delay&&S(e.toAttrs,function(s,l){a.call(o.toAttrs,l)&&(delete o.toAttrs[l],delete o.fromAttrs[l])})}),r}var Bp=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.attrs={};var n=i.getDefaultAttrs();return yt(n,t.attrs),i.attrs=n,i.initAttrs(n),i.initAnimate(),i}return e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,i=[],n=0;n0?a=x1(a,b):n.addAnimator(this),a.push(b),this.set("animations",a),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var i=this;t===void 0&&(t=!0);var n=this.get("animations");S(n,function(a){t&&(a.onFrame?i.attr(a.onFrame(1)):i.attr(a.toAttrs)),a.callback&&a.callback()}),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),i=this.get("animations"),n=t.getTime();return S(i,function(a){a._paused=!0,a._pauseTime=n,a.pauseCallback&&a.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),i=t.getTime(),n=this.get("animations"),a=this.get("_pause").pauseTime;return S(n,function(o){o.startTime=o.startTime+(i-a),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,i){var n=this,a=i.propagationPath;this.getEvents();var o;t==="mouseenter"?o=i.fromShape:t==="mouseleave"&&(o=i.toShape);for(var s=function(h){var f=a[h],v=f.get("name");if(v){if((f.isGroup()||f.isCanvas&&f.isCanvas())&&o&&Pp(f,o))return"break";R(v)?S(v,function(d){n.emitDelegateEvent(f,d,i)}):l.emitDelegateEvent(f,v,i)}},l=this,u=0;u0)});o.length>0?S(o,function(l){var u=l.getBBox(),c=u.minX,h=u.maxX,f=u.minY,v=u.maxY;ci&&(i=h),fa&&(a=v)}):(t=0,i=0,n=0,a=0);var s={x:t,y:n,minX:t,minY:n,maxX:i,maxY:a,width:i-t,height:a-n};return s},e.prototype.getCanvasBBox=function(){var t=1/0,i=-1/0,n=1/0,a=-1/0,o=this.getChildren().filter(function(l){return l.get("visible")&&(!l.isGroup()||l.isGroup()&&l.getChildren().length>0)});o.length>0?S(o,function(l){var u=l.getCanvasBBox(),c=u.minX,h=u.maxX,f=u.minY,v=u.maxY;ci&&(i=h),fa&&(a=v)}):(t=0,i=0,n=0,a=0);var s={x:t,y:n,minX:t,minY:n,maxX:i,maxY:a,width:i-t,height:a-n};return s},e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return t.children=[],t},e.prototype.onAttrChange=function(t,i,n){if(r.prototype.onAttrChange.call(this,t,i,n),t==="matrix"){var a=this.getTotalMatrix();this._applyChildrenMarix(a)}},e.prototype.applyMatrix=function(t){var i=this.getTotalMatrix();r.prototype.applyMatrix.call(this,t);var n=this.getTotalMatrix();n!==i&&this._applyChildrenMarix(n)},e.prototype._applyChildrenMarix=function(t){var i=this.getChildren();S(i,function(n){n.applyMatrix(t)})},e.prototype.addShape=function(){for(var t=[],i=0;i=0;s--){var l=t[s];if(ea(l)&&(l.isGroup()?o=l.getShape(i,n,a):l.isHit(i,n)&&(o=l)),o)break}return o},e.prototype.add=function(t){var i=this.getCanvas(),n=this.getChildren(),a=this.get("timeline"),o=t.getParent();o&&w1(o,t,!1),t.set("parent",this),i&&Rp(t,i),a&&Np(t,a),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var i=this.getTotalMatrix();i&&t.applyMatrix(i)},e.prototype.getChildren=function(){return this.get("children")||[]},e.prototype.sort=function(){var t=this.getChildren();S(t,function(i,n){return i[nu]=n,i}),t.sort(b1(function(i,n){return i.get("zIndex")-n.get("zIndex")})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),i=t.length-1;i>=0;i--)t[i].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),r.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var i=this.getChildren();return i[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var i=this.getChildren();return i.indexOf(t)>-1},e.prototype.removeChild=function(t,i){i===void 0&&(i=!0),this.contain(t)&&t.remove(i)},e.prototype.findAll=function(t){var i=[],n=this.getChildren();return S(n,function(a){t(a)&&i.push(a),a.isGroup()&&(i=i.concat(a.findAll(t)))}),i},e.prototype.find=function(t){var i=null,n=this.getChildren();return S(n,function(a){if(t(a)?i=a:a.isGroup()&&(i=a.find(t)),i)return!1}),i},e.prototype.findById=function(t){return this.find(function(i){return i.get("id")===t})},e.prototype.findByClassName=function(t){return this.find(function(i){return i.get("className")===t})},e.prototype.findAllByName=function(t){return this.findAll(function(i){return i.get("name")===t})},e}(Bp),rn=0,Bn=0,Fn=0,Gp=1e3,No,Rn,zo=0,Ci=0,ps=0,ra=typeof performance=="object"&&performance.now?performance:Date,Vp=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function Yp(){return Ci||(Vp(C1),Ci=ra.now()+ps)}function C1(){Ci=0}function au(){this._call=this._time=this._next=null}au.prototype=$p.prototype={constructor:au,restart:function(r,e,t){if(typeof r!="function")throw new TypeError("callback is not a function");t=(t==null?Yp():+t)+(e==null?0:+e),!this._next&&Rn!==this&&(Rn?Rn._next=this:No=this,Rn=this),this._call=r,this._time=t,ou()},stop:function(){this._call&&(this._call=null,this._time=1/0,ou())}};function $p(r,e,t){var i=new au;return i.restart(r,e,t),i}function S1(){Yp(),++rn;for(var r=No,e;r;)(e=Ci-r._time)>=0&&r._call.call(null,e),r=r._next;--rn}function af(){Ci=(zo=ra.now())+ps,rn=Bn=0;try{S1()}finally{rn=0,A1(),Ci=0}}function M1(){var r=ra.now(),e=r-zo;e>Gp&&(ps-=e,zo=r)}function A1(){for(var r,e=No,t,i=1/0;e;)e._call?(i>e._time&&(i=e._time),r=e,e=e._next):(t=e._next,e._next=null,e=r?r._next=t:No=t);Rn=r,ou(i)}function ou(r){if(!rn){Bn&&(Bn=clearTimeout(Bn));var e=r-Ci;e>24?(r<1/0&&(Bn=setTimeout(af,r-ra.now()-ps)),Fn&&(Fn=clearInterval(Fn))):(Fn||(zo=ra.now(),Fn=setInterval(M1,Gp)),rn=1,Vp(af))}}function uc(r,e,t){r.prototype=e.prototype=t,t.constructor=r}function Hp(r,e){var t=Object.create(r.prototype);for(var i in e)t[i]=e[i];return t}function Ta(){}var ia=.7,Go=1/ia,Ui="\\s*([+-]?\\d+)\\s*",na="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",F1=/^#([0-9a-f]{3,8})$/,T1=new RegExp(`^rgb\\(${Ui},${Ui},${Ui}\\)$`),E1=new RegExp(`^rgb\\(${Qe},${Qe},${Qe}\\)$`),k1=new RegExp(`^rgba\\(${Ui},${Ui},${Ui},${na}\\)$`),L1=new RegExp(`^rgba\\(${Qe},${Qe},${Qe},${na}\\)$`),I1=new RegExp(`^hsl\\(${na},${Qe},${Qe}\\)$`),P1=new RegExp(`^hsla\\(${na},${Qe},${Qe},${na}\\)$`),of={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};uc(Ta,aa,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:sf,formatHex:sf,formatHex8:D1,formatHsl:O1,formatRgb:lf,toString:lf});function sf(){return this.rgb().formatHex()}function D1(){return this.rgb().formatHex8()}function O1(){return Xp(this).formatHsl()}function lf(){return this.rgb().formatRgb()}function aa(r){var e,t;return r=(r+"").trim().toLowerCase(),(e=F1.exec(r))?(t=e[1].length,e=parseInt(e[1],16),t===6?uf(e):t===3?new he(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?Wa(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?Wa(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=T1.exec(r))?new he(e[1],e[2],e[3],1):(e=E1.exec(r))?new he(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=k1.exec(r))?Wa(e[1],e[2],e[3],e[4]):(e=L1.exec(r))?Wa(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=I1.exec(r))?ff(e[1],e[2]/100,e[3]/100,1):(e=P1.exec(r))?ff(e[1],e[2]/100,e[3]/100,e[4]):of.hasOwnProperty(r)?uf(of[r]):r==="transparent"?new he(NaN,NaN,NaN,0):null}function uf(r){return new he(r>>16&255,r>>8&255,r&255,1)}function Wa(r,e,t,i){return i<=0&&(r=e=t=NaN),new he(r,e,t,i)}function B1(r){return r instanceof Ta||(r=aa(r)),r?(r=r.rgb(),new he(r.r,r.g,r.b,r.opacity)):new he}function su(r,e,t,i){return arguments.length===1?B1(r):new he(r,e,t,i??1)}function he(r,e,t,i){this.r=+r,this.g=+e,this.b=+t,this.opacity=+i}uc(he,su,Hp(Ta,{brighter(r){return r=r==null?Go:Math.pow(Go,r),new he(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?ia:Math.pow(ia,r),new he(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new he(di(this.r),di(this.g),di(this.b),Vo(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cf,formatHex:cf,formatHex8:R1,formatRgb:hf,toString:hf}));function cf(){return`#${si(this.r)}${si(this.g)}${si(this.b)}`}function R1(){return`#${si(this.r)}${si(this.g)}${si(this.b)}${si((isNaN(this.opacity)?1:this.opacity)*255)}`}function hf(){const r=Vo(this.opacity);return`${r===1?"rgb(":"rgba("}${di(this.r)}, ${di(this.g)}, ${di(this.b)}${r===1?")":`, ${r})`}`}function Vo(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function di(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function si(r){return r=di(r),(r<16?"0":"")+r.toString(16)}function ff(r,e,t,i){return i<=0?r=e=t=NaN:t<=0||t>=1?r=e=NaN:e<=0&&(r=NaN),new Ne(r,e,t,i)}function Xp(r){if(r instanceof Ne)return new Ne(r.h,r.s,r.l,r.opacity);if(r instanceof Ta||(r=aa(r)),!r)return new Ne;if(r instanceof Ne)return r;r=r.rgb();var e=r.r/255,t=r.g/255,i=r.b/255,n=Math.min(e,t,i),a=Math.max(e,t,i),o=NaN,s=a-n,l=(a+n)/2;return s?(e===a?o=(t-i)/s+(t0&&l<1?0:o,new Ne(o,s,l,r.opacity)}function N1(r,e,t,i){return arguments.length===1?Xp(r):new Ne(r,e,t,i??1)}function Ne(r,e,t,i){this.h=+r,this.s=+e,this.l=+t,this.opacity=+i}uc(Ne,N1,Hp(Ta,{brighter(r){return r=r==null?Go:Math.pow(Go,r),new Ne(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?ia:Math.pow(ia,r),new Ne(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,e=isNaN(r)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*e,n=2*t-i;return new he(vl(r>=240?r-240:r+120,n,i),vl(r,n,i),vl(r<120?r+240:r-120,n,i),this.opacity)},clamp(){return new Ne(vf(this.h),_a(this.s),_a(this.l),Vo(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const r=Vo(this.opacity);return`${r===1?"hsl(":"hsla("}${vf(this.h)}, ${_a(this.s)*100}%, ${_a(this.l)*100}%${r===1?")":`, ${r})`}`}}));function vf(r){return r=(r||0)%360,r<0?r+360:r}function _a(r){return Math.max(0,Math.min(1,r||0))}function vl(r,e,t){return(r<60?e+(t-e)*r/60:r<180?t:r<240?e+(t-e)*(240-r)/60:e)*255}const cc=r=>()=>r;function z1(r,e){return function(t){return r+t*e}}function G1(r,e,t){return r=Math.pow(r,t),e=Math.pow(e,t)-r,t=1/t,function(i){return Math.pow(r+i*e,t)}}function V1(r){return(r=+r)==1?Wp:function(e,t){return t-e?G1(e,t,r):cc(isNaN(e)?t:e)}}function Wp(r,e){var t=e-r;return t?z1(r,t):cc(isNaN(r)?e:r)}const df=function r(e){var t=V1(e);function i(n,a){var o=t((n=su(n)).r,(a=su(a)).r),s=t(n.g,a.g),l=t(n.b,a.b),u=Wp(n.opacity,a.opacity);return function(c){return n.r=o(c),n.g=s(c),n.b=l(c),n.opacity=u(c),n+""}}return i.gamma=r,i}(1);function _p(r,e){e||(e=[]);var t=r?Math.min(e.length,r.length):0,i=e.slice(),n;return function(a){for(n=0;nt&&(a=e.slice(t,a),s[o]?s[o]+=a:s[++o]=a),(i=i[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:lu(i,n)})),t=dl.lastIndex;return tu.length?(l=Wi(a[s]),u=Wi(n[s]),u=kp(u,l),u=iu(u,l),e.fromAttrs.path=u,e.toAttrs.path=l):e.pathFormatted||(l=Wi(a[s]),u=Wi(n[s]),u=iu(u,l),e.fromAttrs.path=u,e.toAttrs.path=l,e.pathFormatted=!0),i[s]=[];for(var c=0;c0){for(var s=e.animators.length-1;s>=0;s--){if(i=e.animators[s],i.destroyed){e.removeAnimator(s);continue}if(!i.isAnimatePaused()){n=i.get("animations");for(var l=n.length-1;l>=0;l--)a=n[l],t=Ab(i,a,o),t&&(n.splice(l,1),t=!1,a.callback&&a.callback())}n.length===0&&e.removeAnimator(s)}var u=e.canvas.get("autoDraw");u||e.canvas.draw()}})},r.prototype.addAnimator=function(e){this.animators.push(e)},r.prototype.removeAnimator=function(e){this.animators.splice(e,1)},r.prototype.isAnimating=function(){return!!this.animators.length},r.prototype.stop=function(){this.timer&&this.timer.stop()},r.prototype.stopAllAnimations=function(e){e===void 0&&(e=!0),this.animators.forEach(function(t){t.stopAnimate(e)}),this.animators=[],this.canvas.draw()},r.prototype.getTime=function(){return this.current},r}(),Tb=40,Mf=0,Af=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Ff(r,e,t){t.name=e,t.target=r,t.currentTarget=r,t.delegateTarget=r,r.emit(e,t)}function Eb(r,e,t){if(t.bubbles){var i=void 0,n=!1;if(e==="mouseenter"?(i=t.fromShape,n=!0):e==="mouseleave"&&(n=!0,i=t.toShape),r.isCanvas()&&n)return;if(i&&Pp(r,i)){t.bubbles=!1;return}t.name=e,t.currentTarget=r,t.delegateTarget=r,r.emit(e,t)}}var kb=function(){function r(e){var t=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(i){var n=i.type;t._triggerEvent(n,i)},this._onDocumentMove=function(i){var n=t.canvas,a=n.get("el");if(a!==i.target&&(t.dragging||t.currentShape)){var o=t._getPointInfo(i);t.dragging&&t._emitEvent("drag",i,o,t.draggingShape)}},this._onDocumentMouseUp=function(i){var n=t.canvas,a=n.get("el");if(a!==i.target&&t.dragging){var o=t._getPointInfo(i);t.draggingShape&&t._emitEvent("drop",i,o,null),t._emitEvent("dragend",i,o,t.draggingShape),t._afterDrag(t.draggingShape,o,i)}},this.canvas=e.canvas}return r.prototype.init=function(){this._bindEvents()},r.prototype._bindEvents=function(){var e=this,t=this.canvas.get("el");S(Af,function(i){t.addEventListener(i,e._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},r.prototype._clearEvents=function(){var e=this,t=this.canvas.get("el");S(Af,function(i){t.removeEventListener(i,e._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},r.prototype._getEventObj=function(e,t,i,n,a,o){var s=new Fa(e,t);return s.fromShape=a,s.toShape=o,s.x=i.x,s.y=i.y,s.clientX=i.clientX,s.clientY=i.clientY,s.propagationPath.push(n),s},r.prototype._getShape=function(e,t){return this.canvas.getShape(e.x,e.y,t)},r.prototype._getPointInfo=function(e){var t=this.canvas,i=t.getClientByEvent(e),n=t.getPointByEvent(e);return{x:n.x,y:n.y,clientX:i.x,clientY:i.y}},r.prototype._triggerEvent=function(e,t){var i=this._getPointInfo(t),n=this._getShape(i,t),a=this["_on"+e],o=!1;if(a)a.call(this,i,n,t);else{var s=this.currentShape;e==="mouseenter"||e==="dragenter"||e==="mouseover"?(this._emitEvent(e,t,i,null,null,n),n&&this._emitEvent(e,t,i,n,null,n),e==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",t,i,null)):e==="mouseleave"||e==="dragleave"||e==="mouseout"?(o=!0,s&&this._emitEvent(e,t,i,s,s,null),this._emitEvent(e,t,i,null,s,null),e==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",t,i,null)):this._emitEvent(e,t,i,n,null,null)}if(o||(this.currentShape=n),n&&!n.get("destroyed")){var l=this.canvas,u=l.get("el");u.style.cursor=n.attr("cursor")||l.get("cursor")}},r.prototype._onmousedown=function(e,t,i){i.button===Mf&&(this.mousedownShape=t,this.mousedownPoint=e,this.mousedownTimeStamp=i.timeStamp),this._emitEvent("mousedown",i,e,t,null,null)},r.prototype._emitMouseoverEvents=function(e,t,i,n){var a=this.canvas.get("el");i!==n&&(i&&(this._emitEvent("mouseout",e,t,i,i,n),this._emitEvent("mouseleave",e,t,i,i,n),(!n||n.get("destroyed"))&&(a.style.cursor=this.canvas.get("cursor"))),n&&(this._emitEvent("mouseover",e,t,n,i,n),this._emitEvent("mouseenter",e,t,n,i,n)))},r.prototype._emitDragoverEvents=function(e,t,i,n,a){n?(n!==i&&(i&&this._emitEvent("dragleave",e,t,i,i,n),this._emitEvent("dragenter",e,t,n,i,n)),a||this._emitEvent("dragover",e,t,n)):i&&this._emitEvent("dragleave",e,t,i,i,n),a&&this._emitEvent("dragover",e,t,n)},r.prototype._afterDrag=function(e,t,i){e&&(e.set("capture",!0),this.draggingShape=null),this.dragging=!1;var n=this._getShape(t,i);n!==e&&this._emitMouseoverEvents(i,t,e,n),this.currentShape=n},r.prototype._onmouseup=function(e,t,i){if(i.button===Mf){var n=this.draggingShape;this.dragging?(n&&this._emitEvent("drop",i,e,t),this._emitEvent("dragend",i,e,n),this._afterDrag(n,e,i)):(this._emitEvent("mouseup",i,e,t),t===this.mousedownShape&&this._emitEvent("click",i,e,t),this.mousedownShape=null,this.mousedownPoint=null)}},r.prototype._ondragover=function(e,t,i){i.preventDefault();var n=this.currentShape;this._emitDragoverEvents(i,e,n,t,!0)},r.prototype._onmousemove=function(e,t,i){var n=this.canvas,a=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(i,e,a,t,!1),this._emitEvent("drag",i,e,o);else{var s=this.mousedownPoint;if(s){var l=this.mousedownShape,u=i.timeStamp,c=u-this.mousedownTimeStamp,h=s.clientX-e.clientX,f=s.clientY-e.clientY,v=h*h+f*f;c>120||v>Tb?l&&l.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",i,e,o),this.mousedownShape=null,this.mousedownPoint=null):!l&&n.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",i,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(i,e,a,t),this._emitEvent("mousemove",i,e,t)):(this._emitMouseoverEvents(i,e,a,t),this._emitEvent("mousemove",i,e,t))}else this._emitMouseoverEvents(i,e,a,t),this._emitEvent("mousemove",i,e,t)}},r.prototype._emitEvent=function(e,t,i,n,a,o){var s=this._getEventObj(e,t,i,n,a,o);if(n){s.shape=n,Ff(n,e,s);for(var l=n.getParent();l;)l.emitDelegation(e,s),s.propagationStopped||Eb(l,e,s),s.propagationPath.push(l),l=l.getParent()}else{var u=this.canvas;Ff(u,e,s)}},r.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},r}(),Tf="px",Ef=Dp(),Lb=Ef&&Ef.name==="firefox",gs=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.initContainer(),i.initDom(),i.initEvents(),i.initTimeline(),i}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},e.prototype.initContainer=function(){var t=this.get("container");K(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var i=this.get("container");i.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new kb({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Fb(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,i){var n=this.get("el");Qh&&(n.style.width=t+Tf,n.style.height=i+Tf)},e.prototype.changeSize=function(t,i){this.setDOMSize(t,i),this.set("width",t),this.set("height",i),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var i=this.get("el");Qh&&i&&(i.style.cursor=t)},e.prototype.getPointByEvent=function(t){var i=this.get("supportCSSTransform");if(i){if(Lb&&!B(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!B(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),a=n.x,o=n.y;return this.getPointByClient(a,o)},e.prototype.getClientByEvent=function(t){var i=t;return t.touches&&(t.type==="touchend"?i=t.changedTouches[0]:i=t.touches[0]),{x:i.clientX,y:i.clientY}},e.prototype.getPointByClient=function(t,i){var n=this.get("el"),a=n.getBoundingClientRect();return{x:t-a.left,y:i-a.top}},e.prototype.getClientByPoint=function(t,i){var n=this.get("el"),a=n.getBoundingClientRect();return{x:t+a.left,y:i+a.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),r.prototype.destroy.call(this))},e}(zp),ys=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var t=r.prototype.clone.call(this),i=this.getChildren(),n=0;n=t&&n.minY<=i&&n.maxY>=i},e.prototype.afterAttrsChange=function(t){r.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(t){r.prototype.applyMatrix.call(this,t),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),i=this.getTotalMatrix(),n=t.minX,a=t.minY,o=t.maxX,s=t.maxY;if(i){var l=hr(i,[t.minX,t.minY]),u=hr(i,[t.maxX,t.minY]),c=hr(i,[t.minX,t.maxY]),h=hr(i,[t.maxX,t.maxY]);n=Math.min(l[0],u[0],c[0],h[0]),o=Math.max(l[0],u[0],c[0],h[0]),a=Math.min(l[1],u[1],c[1],h[1]),s=Math.max(l[1],u[1],c[1],h[1])}var f=this.attrs;if(f.shadowColor){var v=f.shadowBlur,d=v===void 0?0:v,p=f.shadowOffsetX,g=p===void 0?0:p,y=f.shadowOffsetY,x=y===void 0?0:y,w=n-d+g,b=o+d+g,C=a-d+x,M=s+d+x;n=Math.min(n,w),o=Math.max(o,b),a=Math.min(a,C),s=Math.max(s,M)}return{x:n,y:a,minX:n,minY:a,maxX:o,maxY:s,width:o-n,height:s-a}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,i){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,i){var n=this.get("startArrowShape"),a=this.get("endArrowShape"),o=[t,i,1];o=this.invertFromMatrix(o);var s=o[0],l=o[1],u=this._isInBBox(s,l);return this.isOnlyHitBox()?u:!!(u&&!this.isClipped(s,l)&&(this.isInShape(s,l)||n&&n.isHit(s,l)||a&&a.isHit(s,l)))},e}(Bp),Jp=new Map;function Pe(r,e){Jp.set(r,e)}function xs(r){return Jp.get(r)}function tg(r){var e=r.attr(),t=e.x,i=e.y,n=e.width,a=e.height;return{x:t,y:i,width:n,height:a}}function eg(r){var e=r.attr(),t=e.x,i=e.y,n=e.r;return{x:t-n,y:i-n,width:n*2,height:n*2}}function te(r,e,t,i){var n=r-t,a=e-i;return Math.sqrt(n*n+a*a)}function Mo(r,e){return Math.abs(r-e)<.001}function pn(r,e){var t=Le(r),i=Le(e),n=be(r),a=be(e);return{x:t,y:i,width:n-t,height:a-i}}function ws(r){return(r+Math.PI*2)%(Math.PI*2)}const Wt={box:function(r,e,t,i){return pn([r,t],[e,i])},length:function(r,e,t,i){return te(r,e,t,i)},pointAt:function(r,e,t,i,n){return{x:(1-n)*r+n*t,y:(1-n)*e+n*i}},pointDistance:function(r,e,t,i,n,a){var o=(t-r)*(n-r)+(i-e)*(a-e);if(o<0)return te(r,e,n,a);var s=(t-r)*(t-r)+(i-e)*(i-e);return o>s?te(t,i,n,a):this.pointToLine(r,e,t,i,n,a)},pointToLine:function(r,e,t,i,n,a){var o=[t-r,i-e];if(Zx(o,[0,0]))return Math.sqrt((n-r)*(n-r)+(a-e)*(a-e));var s=[-o[1],o[0]];vp(s,s);var l=[n-r,a-e];return Math.abs(Qx(l,s))},tangentAngle:function(r,e,t,i){return Math.atan2(i-e,t-r)}};var Ib=1e-4;function rg(r,e,t,i,n,a){var o,s=1/0,l=[t,i],u=20;a&&a>200&&(u=a/10);for(var c=1/u,h=c/10,f=0;f<=u;f++){var v=f*c,d=[n.apply(null,r.concat([v])),n.apply(null,e.concat([v]))],p=te(l[0],l[1],d[0],d[1]);p=0&&p=0?[n]:[]}function Lf(r,e,t,i){return 2*(1-i)*(e-r)+2*i*(t-e)}function ig(r,e,t,i,n,a,o){var s=Er(r,t,n,o),l=Er(e,i,a,o),u=Wt.pointAt(r,e,t,i,o),c=Wt.pointAt(t,i,n,a,o);return[[r,e,u.x,u.y,s,l],[s,l,c.x,c.y,n,a]]}function hu(r,e,t,i,n,a,o){if(o===0)return(te(r,e,t,i)+te(t,i,n,a)+te(r,e,n,a))/2;var s=ig(r,e,t,i,n,a,.5),l=s[0],u=s[1];return l.push(o-1),u.push(o-1),hu.apply(null,l)+hu.apply(null,u)}const ng={box:function(r,e,t,i,n,a){var o=kf(r,t,n)[0],s=kf(e,i,a)[0],l=[r,n],u=[e,a];return o!==void 0&&l.push(Er(r,t,n,o)),s!==void 0&&u.push(Er(e,i,a,s)),pn(l,u)},length:function(r,e,t,i,n,a){return hu(r,e,t,i,n,a,3)},nearestPoint:function(r,e,t,i,n,a,o,s){return rg([r,t,n],[e,i,a],o,s,Er)},pointDistance:function(r,e,t,i,n,a,o,s){var l=this.nearestPoint(r,e,t,i,n,a,o,s);return te(l.x,l.y,o,s)},interpolationAt:Er,pointAt:function(r,e,t,i,n,a,o){return{x:Er(r,t,n,o),y:Er(e,i,a,o)}},divide:function(r,e,t,i,n,a,o){return ig(r,e,t,i,n,a,o)},tangentAngle:function(r,e,t,i,n,a,o){var s=Lf(r,t,n,o),l=Lf(e,i,a,o),u=Math.atan2(l,s);return ws(u)}};function kr(r,e,t,i,n){var a=1-n;return a*a*a*r+3*e*n*a*a+3*t*n*n*a+i*n*n*n}function If(r,e,t,i,n){var a=1-n;return 3*(a*a*(e-r)+2*a*n*(t-e)+n*n*(i-t))}function pl(r,e,t,i){var n=-3*r+9*e-9*t+3*i,a=6*r-12*e+6*t,o=3*e-3*r,s=[],l,u,c;if(Mo(n,0))Mo(a,0)||(l=-o/a,l>=0&&l<=1&&s.push(l));else{var h=a*a-4*n*o;Mo(h,0)?s.push(-a/(2*n)):h>0&&(c=Math.sqrt(h),l=(-a+c)/(2*n),u=(-a-c)/(2*n),l>=0&&l<=1&&s.push(l),u>=0&&u<=1&&s.push(u))}return s}function ag(r,e,t,i,n,a,o,s,l){var u=kr(r,t,n,o,l),c=kr(e,i,a,s,l),h=Wt.pointAt(r,e,t,i,l),f=Wt.pointAt(t,i,n,a,l),v=Wt.pointAt(n,a,o,s,l),d=Wt.pointAt(h.x,h.y,f.x,f.y,l),p=Wt.pointAt(f.x,f.y,v.x,v.y,l);return[[r,e,h.x,h.y,d.x,d.y,u,c],[u,c,p.x,p.y,v.x,v.y,o,s]]}function fu(r,e,t,i,n,a,o,s,l){if(l===0)return Pb([r,t,n,o],[e,i,a,s]);var u=ag(r,e,t,i,n,a,o,s,.5),c=u[0],h=u[1];return c.push(l-1),h.push(l-1),fu.apply(null,c)+fu.apply(null,h)}const Hn={extrema:pl,box:function(r,e,t,i,n,a,o,s){for(var l=[r,o],u=[e,s],c=pl(r,t,n,o),h=pl(e,i,a,s),f=0;f0?t:t*-1}const Db={box:function(r,e,t,i){return{x:r-t,y:e-i,width:t*2,height:i*2}},length:function(r,e,t,i){return Math.PI*(3*(t+i)-Math.sqrt((3*t+i)*(t+3*i)))},nearestPoint:function(r,e,t,i,n,a){var o=t,s=i;if(o===0||s===0)return{x:r,y:e};for(var l=n-r,u=a-e,c=Math.abs(l),h=Math.abs(u),f=o*o,v=s*s,d=Math.PI/4,p,g,y=0;y<4;y++){p=o*Math.cos(d),g=s*Math.sin(d);var x=(f-v)*Math.pow(Math.cos(d),3)/o,w=(v-f)*Math.pow(Math.sin(d),3)/s,b=p-x,C=g-w,M=c-x,F=h-w,T=Math.hypot(C,b),L=Math.hypot(F,M),k=T*Math.asin((b*F-C*M)/(T*L)),I=k/Math.sqrt(f+v-p*p-g*g);d+=I,d=Math.min(Math.PI/2,Math.max(0,d))}return{x:r+Pf(p,l),y:e+Pf(g,u)}},pointDistance:function(r,e,t,i,n,a){var o=this.nearestPoint(r,e,t,i,n,a);return te(o.x,o.y,n,a)},pointAt:function(r,e,t,i,n){var a=2*Math.PI*n;return{x:r+t*Math.cos(a),y:e+i*Math.sin(a)}},tangentAngle:function(r,e,t,i,n){var a=2*Math.PI*n,o=Math.atan2(i*Math.cos(a),-t*Math.sin(a));return ws(o)}};function Ob(r,e,t,i,n,a,o,s){return-1*t*Math.cos(n)*Math.sin(s)-i*Math.sin(n)*Math.cos(s)}function Bb(r,e,t,i,n,a,o,s){return-1*t*Math.sin(n)*Math.sin(s)+i*Math.cos(n)*Math.cos(s)}function Rb(r,e,t){return Math.atan(-e/r*Math.tan(t))}function Nb(r,e,t){return Math.atan(e/(r*Math.tan(t)))}function Df(r,e,t,i,n,a){return t*Math.cos(n)*Math.cos(a)-i*Math.sin(n)*Math.sin(a)+r}function Of(r,e,t,i,n,a){return t*Math.sin(n)*Math.cos(a)+i*Math.cos(n)*Math.sin(a)+e}function zb(r,e,t,i){var n=Math.atan2(i*r,t*e);return(n+Math.PI*2)%(Math.PI*2)}function Bf(r,e,t){return{x:r*Math.cos(t),y:e*Math.sin(t)}}function Rf(r,e,t){var i=Math.cos(t),n=Math.sin(t);return[r*i-e*n,r*n+e*i]}const Gb={box:function(r,e,t,i,n,a,o){for(var s=Rb(t,i,n),l=1/0,u=-1/0,c=[a,o],h=-Math.PI*2;h<=Math.PI*2;h+=Math.PI){var f=s+h;au&&(u=v)}for(var d=Nb(t,i,n),p=1/0,g=-1/0,y=[a,o],h=-Math.PI*2;h<=Math.PI*2;h+=Math.PI){var x=d+h;ag&&(g=w)}return{x:l,y:p,width:u-l,height:g-p}},length:function(r,e,t,i,n,a,o){},nearestPoint:function(r,e,t,i,n,a,o,s,l){var u=Rf(s-r,l-e,-n),c=u[0],h=u[1],f=Db.nearestPoint(0,0,t,i,c,h),v=zb(t,i,f.x,f.y);vo&&(f=Bf(t,i,o));var d=Rf(f.x,f.y,n);return{x:d[0]+r,y:d[1]+e}},pointDistance:function(r,e,t,i,n,a,o,s,l){var u=this.nearestPoint(r,e,t,i,s,l);return te(u.x,u.y,s,l)},pointAt:function(r,e,t,i,n,a,o,s){var l=(o-a)*s+a;return{x:Df(r,e,t,i,n,l),y:Of(r,e,t,i,n,l)}},tangentAngle:function(r,e,t,i,n,a,o,s){var l=(o-a)*s+a,u=Ob(r,e,t,i,n,a,o,l),c=Bb(r,e,t,i,n,a,o,l);return ws(Math.atan2(c,u))}};function og(r){for(var e=0,t=[],i=0;i1||e<0||r.length<2)return null;var t=og(r),i=t.segments,n=t.totalLength;if(n===0)return{x:r[0][0],y:r[0][1]};for(var a=0,o=null,s=0;s=a&&e<=a+h){var f=(e-a)/h;o=Wt.pointAt(u[0],u[1],c[0],c[1],f);break}a+=h}return o}function $b(r,e){if(e>1||e<0||r.length<2)return 0;for(var t=og(r),i=t.segments,n=t.totalLength,a=0,o=0,s=0;s=a&&e<=a+h){o=Math.atan2(c[1]-u[1],c[0]-u[0]);break}a+=h}return o}function Hb(r,e,t){for(var i=1/0,n=0;n1){var n=_b(e,t);return e*i+n*(i-1)}return e}function _b(r,e){return e?e-r:r*.14}function qb(r,e){var t=bs(),i=0;if(B(r)||r==="")return i;if(t.save(),t.font=e,K(r)&&r.includes(` `)){var n=r.split(` -`);S(n,function(a){var o=t.measureText(a).width;i1){var n=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=n}S(t,function(a,o){isNaN(a)||(t[o]=+a)}),e[i]=t}),e}function Kb(r,e,t,i){var n=[],a=!!i,o,s,l,u,c,h,f;if(a){l=i[0],u=i[1];for(var v=0,d=r.length;v2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=e[s]&&(t.push([n].concat(o.splice(0,e[s]))),!!e[s]););return""}),t}var rC=/[a-z]/;function zf(r,e){return[e[0]+(e[0]-r[0]),e[1]+(e[1]-r[1])]}function ug(r){var e=lg(r);if(!e||!e.length)return[["M",0,0]];for(var t=!1,i=0;i=0){t=!0;break}}if(!t)return e;var a=[],o=0,s=0,l=0,u=0,c=0,h=e[0];(h[0]==="M"||h[0]==="m")&&(o=+h[1],s=+h[2],l=o,u=s,c++,a[0]=["M",o,s]);for(var i=c,f=e.length;i1&&(t*=Math.sqrt(v),i*=Math.sqrt(v));var d=t*t*(f*f)+i*i*(h*h),p=d?Math.sqrt((t*t*(i*i)-d)/d):1;a===o&&(p*=-1),isNaN(p)&&(p=0);var g=i?p*t*f/i:0,y=t?p*-i*h/t:0,x=(s+u)/2+Math.cos(n)*g-Math.sin(n)*y,b=(l+c)/2+Math.sin(n)*g+Math.cos(n)*y,w=[(h-g)/t,(f-y)/i],C=[(-1*h-g)/t,(-1*f-y)/i],M=Gf([1,0],w),F=Gf(w,C);return vu(w,C)<=-1&&(F=Math.PI),vu(w,C)>=1&&(F=0),o===0&&F>0&&(F=F-2*Math.PI),o===1&&F<0&&(F=F+2*Math.PI),{cx:x,cy:b,rx:du(r,[u,c])?0:t,ry:du(r,[u,c])?0:i,startAngle:M,endAngle:M+F,xRotation:n,arcFlag:a,sweepFlag:o}}function Vf(r,e){return[e[0]+(e[0]-r[0]),e[1]+(e[1]-r[1])]}function cg(r){r=Qb(r);for(var e=[],t=null,i=null,n=null,a=0,o=r.length,s=0;s=e&&r<=t};function nC(r,e,t,i){var n=.001,a={x:t.x-r.x,y:t.y-r.y},o={x:e.x-r.x,y:e.y-r.y},s={x:i.x-t.x,y:i.y-t.y},l=o.x*s.y-o.y*s.x,u=l*l,c=o.x*o.x+o.y*o.y,h=s.x*s.x+s.y*s.y,f=null;if(u>n*c*h){var v=(a.x*s.y-a.y*s.x)/l,d=(a.x*o.y-a.y*o.x)/l;Yf(v,0,1)&&Yf(d,0,1)&&(f={x:r.x+v*o.x,y:r.y+v*o.y})}return f}var aC=1e-6;function yl(r){return Math.abs(r)0!=yl(s[1]-t)>0&&yl(e-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}function Hf(r){for(var e=[],t=r.length,i=0;i1){var o=r[0],s=r[t-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function sC(r,e){var t=!1;return S(r,function(i){if(nC(i.from,i.to,e.from,e.to))return t=!0,!1}),t}function Xf(r){var e=r.map(function(i){return i[0]}),t=r.map(function(i){return i[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,t),maxY:Math.max.apply(null,t)}}function lC(r,e){return!(e.minX>r.maxX||e.maxXr.maxY||e.maxYMath.PI/2?Math.PI-u:u,c=c>Math.PI/2?Math.PI-c:c;var h={xExtra:Math.cos(l/2-u)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(c-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0};return h}function hC(r){var e=r.attr(),t=e.path,i=e.stroke,n=i?e.lineWidth:0,a=r.get("segments")||cg(t),o=cC(a,n),s=o.x,l=o.y,u=o.width,c=o.height,h={minX:s,minY:l,maxX:s+u,maxY:l+c};return h=pc(r,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}function fC(r){var e=r.attr(),t=e.x1,i=e.y1,n=e.x2,a=e.y2,o=Math.min(t,n),s=Math.max(t,n),l=Math.min(i,a),u=Math.max(i,a),c={minX:o,maxX:s,minY:l,maxY:u};return c=pc(r,c),{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}}function vC(r){var e=r.attr(),t=e.x,i=e.y,n=e.rx,a=e.ry;return{x:t-n,y:i-a,width:n*2,height:a*2}}Pe("rect",tg);Pe("image",tg);Pe("circle",eg);Pe("marker",eg);Pe("polyline",Xb);Pe("polygon",Wb);Pe("text",Ub);Pe("path",hC);Pe("line",fC);Pe("ellipse",vC);var Wf=0,dC=1/2,pC=1/2,gC=.05,Ms=function(){function r(e){var t=e.xField,i=e.yField,n=e.adjustNames,a=n===void 0?["x","y"]:n,o=e.dimValuesMap;this.adjustNames=a,this.xField=t,this.yField=i,this.dimValuesMap=o}return r.prototype.isAdjust=function(e){return this.adjustNames.indexOf(e)>=0},r.prototype.getAdjustRange=function(e,t,i){var n=this.yField,a=i.indexOf(t),o=i.length,s,l;return!n&&this.isAdjust("y")?(s=0,l=1):o>1?(s=i[a===0?0:a-1],l=i[a===o-1?o-1:a+1],a!==0?s+=(t-s)/2:s-=(l-t)/2,a!==o-1?l-=(l-t)/2:l+=(t-i[o-2])/2):(s=t===0?0:t-.5,l=t===0?1:t+.5),{pre:s,next:l}},r.prototype.adjustData=function(e,t){var i=this,n=this.getDimValues(t);S(e,function(a,o){S(n,function(s,l){i.adjustDim(l,s,a,o)})})},r.prototype.groupData=function(e,t){return S(e,function(i){i[t]===void 0&&(i[t]=Wf)}),xe(e,t)},r.prototype.adjustDim=function(e,t,i,n){},r.prototype.getDimValues=function(e){var t=this,i=t.xField,n=t.yField,a=yt({},this.dimValuesMap),o=[];if(i&&this.isAdjust("x")&&o.push(i),n&&this.isAdjust("y")&&o.push(n),o.forEach(function(l){a&&a[l]||(a[l]=Ve(e,l).sort(function(u,c){return u-c}))}),!n&&this.isAdjust("y")){var s="y";a[s]=[Wf,1]}return a},r}(),hg={},fg=function(r){return hg[r.toLowerCase()]},As=function(r,e){if(fg(r))throw new Error("Adjust type '"+r+"' existed.");hg[r.toLowerCase()]=e};/*! ***************************************************************************** +`);S(n,function(a){var o=t.measureText(a).width;i1){var n=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=n}S(t,function(a,o){isNaN(a)||(t[o]=+a)}),e[i]=t}),e}function Kb(r,e,t,i){var n=[],a=!!i,o,s,l,u,c,h,f;if(a){l=i[0],u=i[1];for(var v=0,d=r.length;v2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=e[s]&&(t.push([n].concat(o.splice(0,e[s]))),!!e[s]););return""}),t}var rC=/[a-z]/;function zf(r,e){return[e[0]+(e[0]-r[0]),e[1]+(e[1]-r[1])]}function ug(r){var e=lg(r);if(!e||!e.length)return[["M",0,0]];for(var t=!1,i=0;i=0){t=!0;break}}if(!t)return e;var a=[],o=0,s=0,l=0,u=0,c=0,h=e[0];(h[0]==="M"||h[0]==="m")&&(o=+h[1],s=+h[2],l=o,u=s,c++,a[0]=["M",o,s]);for(var i=c,f=e.length;i1&&(t*=Math.sqrt(v),i*=Math.sqrt(v));var d=t*t*(f*f)+i*i*(h*h),p=d?Math.sqrt((t*t*(i*i)-d)/d):1;a===o&&(p*=-1),isNaN(p)&&(p=0);var g=i?p*t*f/i:0,y=t?p*-i*h/t:0,x=(s+u)/2+Math.cos(n)*g-Math.sin(n)*y,w=(l+c)/2+Math.sin(n)*g+Math.cos(n)*y,b=[(h-g)/t,(f-y)/i],C=[(-1*h-g)/t,(-1*f-y)/i],M=Gf([1,0],b),F=Gf(b,C);return vu(b,C)<=-1&&(F=Math.PI),vu(b,C)>=1&&(F=0),o===0&&F>0&&(F=F-2*Math.PI),o===1&&F<0&&(F=F+2*Math.PI),{cx:x,cy:w,rx:du(r,[u,c])?0:t,ry:du(r,[u,c])?0:i,startAngle:M,endAngle:M+F,xRotation:n,arcFlag:a,sweepFlag:o}}function Vf(r,e){return[e[0]+(e[0]-r[0]),e[1]+(e[1]-r[1])]}function cg(r){r=Qb(r);for(var e=[],t=null,i=null,n=null,a=0,o=r.length,s=0;s=e&&r<=t};function nC(r,e,t,i){var n=.001,a={x:t.x-r.x,y:t.y-r.y},o={x:e.x-r.x,y:e.y-r.y},s={x:i.x-t.x,y:i.y-t.y},l=o.x*s.y-o.y*s.x,u=l*l,c=o.x*o.x+o.y*o.y,h=s.x*s.x+s.y*s.y,f=null;if(u>n*c*h){var v=(a.x*s.y-a.y*s.x)/l,d=(a.x*o.y-a.y*o.x)/l;Yf(v,0,1)&&Yf(d,0,1)&&(f={x:r.x+v*o.x,y:r.y+v*o.y})}return f}var aC=1e-6;function yl(r){return Math.abs(r)0!=yl(s[1]-t)>0&&yl(e-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}function Hf(r){for(var e=[],t=r.length,i=0;i1){var o=r[0],s=r[t-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function sC(r,e){var t=!1;return S(r,function(i){if(nC(i.from,i.to,e.from,e.to))return t=!0,!1}),t}function Xf(r){var e=r.map(function(i){return i[0]}),t=r.map(function(i){return i[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,t),maxY:Math.max.apply(null,t)}}function lC(r,e){return!(e.minX>r.maxX||e.maxXr.maxY||e.maxYMath.PI/2?Math.PI-u:u,c=c>Math.PI/2?Math.PI-c:c;var h={xExtra:Math.cos(l/2-u)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(c-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0};return h}function hC(r){var e=r.attr(),t=e.path,i=e.stroke,n=i?e.lineWidth:0,a=r.get("segments")||cg(t),o=cC(a,n),s=o.x,l=o.y,u=o.width,c=o.height,h={minX:s,minY:l,maxX:s+u,maxY:l+c};return h=pc(r,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}function fC(r){var e=r.attr(),t=e.x1,i=e.y1,n=e.x2,a=e.y2,o=Math.min(t,n),s=Math.max(t,n),l=Math.min(i,a),u=Math.max(i,a),c={minX:o,maxX:s,minY:l,maxY:u};return c=pc(r,c),{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}}function vC(r){var e=r.attr(),t=e.x,i=e.y,n=e.rx,a=e.ry;return{x:t-n,y:i-a,width:n*2,height:a*2}}Pe("rect",tg);Pe("image",tg);Pe("circle",eg);Pe("marker",eg);Pe("polyline",Xb);Pe("polygon",Wb);Pe("text",Ub);Pe("path",hC);Pe("line",fC);Pe("ellipse",vC);var Wf=0,dC=1/2,pC=1/2,gC=.05,Ms=function(){function r(e){var t=e.xField,i=e.yField,n=e.adjustNames,a=n===void 0?["x","y"]:n,o=e.dimValuesMap;this.adjustNames=a,this.xField=t,this.yField=i,this.dimValuesMap=o}return r.prototype.isAdjust=function(e){return this.adjustNames.indexOf(e)>=0},r.prototype.getAdjustRange=function(e,t,i){var n=this.yField,a=i.indexOf(t),o=i.length,s,l;return!n&&this.isAdjust("y")?(s=0,l=1):o>1?(s=i[a===0?0:a-1],l=i[a===o-1?o-1:a+1],a!==0?s+=(t-s)/2:s-=(l-t)/2,a!==o-1?l-=(l-t)/2:l+=(t-i[o-2])/2):(s=t===0?0:t-.5,l=t===0?1:t+.5),{pre:s,next:l}},r.prototype.adjustData=function(e,t){var i=this,n=this.getDimValues(t);S(e,function(a,o){S(n,function(s,l){i.adjustDim(l,s,a,o)})})},r.prototype.groupData=function(e,t){return S(e,function(i){i[t]===void 0&&(i[t]=Wf)}),xe(e,t)},r.prototype.adjustDim=function(e,t,i,n){},r.prototype.getDimValues=function(e){var t=this,i=t.xField,n=t.yField,a=yt({},this.dimValuesMap),o=[];if(i&&this.isAdjust("x")&&o.push(i),n&&this.isAdjust("y")&&o.push(n),o.forEach(function(l){a&&a[l]||(a[l]=Ve(e,l).sort(function(u,c){return u-c}))}),!n&&this.isAdjust("y")){var s="y";a[s]=[Wf,1]}return a},r}(),hg={},fg=function(r){return hg[r.toLowerCase()]},As=function(r,e){if(fg(r))throw new Error("Adjust type '"+r+"' existed.");hg[r.toLowerCase()]=e};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -16,18 +16,18 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var pu=function(r,e){return pu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},pu(r,e)};function Fs(r,e){pu(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ze=function(){return Ze=Object.assign||function(e){for(var t,i=1,n=arguments.length;i=0){var d=this.getIntervalOnlyOffset(n,i);v=c+d}else if(!B(u)&&B(l)&&u>=0){var d=this.getDodgeOnlyOffset(n,i);v=c+d}else if(!B(l)&&!B(u)&&l>=0&&u>=0){var d=this.getIntervalAndDodgeOffset(n,i);v=c+d}else{var p=f*o/n,g=s*p,d=1/2*(f-n*p-(n-1)*g)+((i+1)*p+i*g)-1/2*p-1/2*f;v=(c+h)/2+d}return v},e.prototype.getIntervalOnlyOffset=function(t,i){var n=this,a=n.defaultSize,o=n.intervalPadding,s=n.xDimensionLegenth,l=n.groupNum,u=n.dodgeRatio,c=n.maxColumnWidth,h=n.minColumnWidth,f=n.columnWidthRatio,v=o/s,d=(1-(l-1)*v)/l*u/(t-1),p=((1-v*(l-1))/l-d*(t-1))/t;if(p=B(f)?p:1/l/t*f,!B(c)){var g=c/s;p=Math.min(p,g)}if(!B(h)){var y=h/s;p=Math.max(p,y)}p=a?a/s:p,d=((1-(l-1)*v)/l-t*p)/(t-1);var x=((1/2+i)*p+i*d+1/2*v)*l-v/2;return x},e.prototype.getDodgeOnlyOffset=function(t,i){var n=this,a=n.defaultSize,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,u=n.marginRatio,c=n.maxColumnWidth,h=n.minColumnWidth,f=n.columnWidthRatio,v=o/s,d=1*u/(l-1),p=((1-d*(l-1))/l-v*(t-1))/t;if(p=f?1/l/t*f:p,!B(c)){var g=c/s;p=Math.min(p,g)}if(!B(h)){var y=h/s;p=Math.max(p,y)}p=a?a/s:p,d=(1-(p*t+v*(t-1))*l)/(l-1);var x=((1/2+i)*p+i*v+1/2*d)*l-d/2;return x},e.prototype.getIntervalAndDodgeOffset=function(t,i){var n=this,a=n.intervalPadding,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,u=a/s,c=o/s,h=((1-u*(l-1))/l-c*(t-1))/t,f=((1/2+i)*h+i*c+1/2*u)*l-u/2;return f},e.prototype.getDistribution=function(t){var i=this.adjustDataArray,n=this.cacheMap,a=n[t];return a||(a={},S(i,function(o,s){var l=Ve(o,t);l.length||l.push(0),S(l,function(u){a[u]||(a[u]=[]),a[u].push(s)})}),n[t]=a),a},e}(Ms);function mC(r,e){return(e-r)*Math.random()+r}var xC=function(r){Fs(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.process=function(t){var i=ye(t),n=we(i);return this.adjustData(i,n),i},e.prototype.adjustDim=function(t,i,n){var a=this,o=this.groupData(n,t);return S(o,function(s,l){return a.adjustGroup(s,t,parseFloat(l),i)})},e.prototype.getAdjustOffset=function(t){var i=t.pre,n=t.next,a=(n-i)*gC;return mC(i+a,n-a)},e.prototype.adjustGroup=function(t,i,n,a){var o=this,s=this.getAdjustRange(i,n,a);return S(t,function(l){l[i]=o.getAdjustOffset(s)}),t},e}(Ms),ml=Kx,wC=function(r){Fs(e,r);function e(t){var i=r.call(this,t)||this,n=t.adjustNames,a=n===void 0?["y"]:n,o=t.height,s=o===void 0?NaN:o,l=t.size,u=l===void 0?10:l,c=t.reverseOrder,h=c===void 0?!1:c;return i.adjustNames=a,i.height=s,i.size=u,i.reverseOrder=h,i}return e.prototype.process=function(t){var i=this,n=i.yField,a=i.reverseOrder,o=n?this.processStack(t):this.processOneDimStack(t);return a?this.reverse(o):o},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var i=this,n=i.xField,a=i.yField,o=i.reverseOrder,s=o?this.reverse(t):t,l=new ml,u=new ml;return s.map(function(c){return c.map(function(h){var f,v=A(h,n,0),d=A(h,[a]),p=v.toString();if(d=R(d)?d[1]:d,!B(d)){var g=d>=0?l:u;g.has(p)||g.set(p,0);var y=g.get(p),x=d+y;return g.set(p,x),Ze(Ze({},h),(f={},f[a]=[y,x],f))}return h})})},e.prototype.processOneDimStack=function(t){var i=this,n=this,a=n.xField,o=n.height,s=n.reverseOrder,l="y",u=s?this.reverse(t):t,c=new ml;return u.map(function(h){return h.map(function(f){var v,d=i.size,p=f[a],g=d*2/o;c.has(p)||c.set(p,g/2);var y=c.get(p);return c.set(p,y+g),Ze(Ze({},f),(v={},v[l]=y,v))})})},e}(Ms),bC=function(r){Fs(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.process=function(t){var i=we(t),n=this,a=n.xField,o=n.yField,s=this.getXValuesMaxMap(i),l=Math.max.apply(Math,Object.keys(s).map(function(u){return s[u]}));return Mt(t,function(u){return Mt(u,function(c){var h,f,v=c[o],d=c[a];if(R(v)){var p=(l-s[d])/2;return Ze(Ze({},c),(h={},h[o]=Mt(v,function(y){return p+y}),h))}var g=(l-v)/2;return Ze(Ze({},c),(f={},f[o]=[g,v+g],f))})})},e.prototype.getXValuesMaxMap=function(t){var i=this,n=this,a=n.xField,o=n.yField,s=xe(t,function(l){return l[a]});return Cw(s,function(l){return i.getDimMaxValue(l,o)})},e.prototype.getDimMaxValue=function(t,i){var n=Mt(t,function(o){return A(o,i,[])}),a=we(n);return Math.max.apply(Math,a)},e}(Ms);As("Dodge",yC);As("Jitter",xC);As("Stack",wC);As("Symmetric",bC);var _f=function(r,e){return K(e)?e:r.invert(r.scale(e))},Ea=function(){function r(e){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(e)}return r.prototype.mapping=function(){for(var e=this,t=[],i=0;i1?1:Number(e),i=r.length-1,n=Math.floor(i*t),a=i*t-n,o=r[n],s=n===i?o:r[n+1];return vg([xl(o,s,a,0),xl(o,s,a,1),xl(o,s,a,2)])},Za,pg=function(r){if(r[0]==="#"&&r.length===7)return r;Za||(Za=TC()),Za.style.color=r;var e=document.defaultView.getComputedStyle(Za,"").getPropertyValue("color"),t=CC.exec(e),i=t[1].split(/\s*,\s*/).map(function(n){return Number(n)});return e=vg(i),e},kC=function(r){var e=K(r)?r.split("-"):r,t=Mt(e,function(i){return dg(i.indexOf("#")===-1?pg(i):i)});return function(i){return EC(t,i)}},LC=function(r){if(FC(r)){var e,t=void 0;if(r[0]==="l"){var i=SC.exec(r),n=+i[1]+90;t=i[2],e="linear-gradient("+n+"deg, "}else if(r[0]==="r"){e="radial-gradient(";var i=MC.exec(r);t=i[4]}var a=t.match(AC);return S(a,function(o,s){var l=o.split(":");e+=l[1]+" "+l[0]*100+"%",s!==a.length-1&&(e+=", ")}),e+=")",e}return r};const Nr={rgb2arr:dg,gradient:kC,toRGB:Aa(pg),toCSSGradient:LC};var IC=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="color",i.names=["color"],K(i.values)&&(i.linear=!0),i.gradient=Nr.gradient(i.values),i}return e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(Ea),PC=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="opacity",i.names=["opacity"],i}return e}(Ea),DC=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.names=["x","y"],i.type="position",i}return e.prototype.mapping=function(t,i){var n=this.scales,a=n[0],o=n[1];return B(t)||B(i)?[]:[R(t)?t.map(function(s){return a.scale(s)}):a.scale(t),R(i)?i.map(function(s){return o.scale(s)}):o.scale(i)]},e}(Ea),OC=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="shape",i.names=["shape"],i}return e.prototype.getLinearValue=function(t){var i=Math.round((this.values.length-1)*t);return this.values[i]},e}(Ea),BC=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="size",i.names=["size"],i}return e}(Ea),gg={};function RC(r){return gg[r]}function rr(r,e){gg[r]=e}var gc=function(){function r(e){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=e,this.initCfg(),this.init()}return r.prototype.translate=function(e){return e},r.prototype.change=function(e){yt(this.__cfg__,e),this.init()},r.prototype.clone=function(){return this.constructor(this.__cfg__)},r.prototype.getTicks=function(){var e=this;return Mt(this.ticks,function(t,i){return mt(t)?t:{text:e.getText(t,i),tickValue:t,value:e.scale(t)}})},r.prototype.getText=function(e,t){var i=this.formatter,n=i?i(e,t):e;return B(n)||!_(n.toString)?"":n.toString()},r.prototype.getConfig=function(e){return this.__cfg__[e]},r.prototype.init=function(){yt(this,this.__cfg__),this.setDomain(),fe(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},r.prototype.initCfg=function(){},r.prototype.setDomain=function(){},r.prototype.calculateTicks=function(){var e=this.tickMethod,t=[];if(K(e)){var i=RC(e);if(!i)throw new Error("There is no method to to calculate ticks!");t=i(this)}else _(e)&&(t=e(this));return t},r.prototype.rangeMin=function(){return this.range[0]},r.prototype.rangeMax=function(){return this.range[1]},r.prototype.calcPercent=function(e,t,i){return rt(e)?(e-t)/(i-t):NaN},r.prototype.calcValue=function(e,t,i){return t+e*(i-t)},r}(),Ts=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cat",t.isCategory=!0,t}return e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;tthis.max?NaN:this.values[a]},e.prototype.getText=function(t){for(var i=[],n=1;n1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(gc),yg=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Tr="\\d\\d?",Mr="\\d\\d",NC="\\d{3}",zC="\\d{4}",Wn="[^\\s]+",mg=/\[([^]*?)\]/gm;function xg(r,e){for(var t=[],i=0,n=r.length;i-1?n:null}};function $r(r){for(var e=[],t=1;t3?0:(r-r%10!==10?1:0)*r%10]}},$o=$r({},yc),Cg=function(r){return $o=$r($o,r)},Uf=function(r){return r.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},ne=function(r,e){for(e===void 0&&(e=2),r=String(r);r.length0?"-":"+")+ne(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(r){var e=r.getTimezoneOffset();return(e>0?"-":"+")+ne(Math.floor(Math.abs(e)/60),2)+":"+ne(Math.abs(e)%60,2)}},jf=function(r){return+r-1},Zf=[null,Tr],Qf=[null,Wn],Kf=["isPm",Wn,function(r,e){var t=r.toLowerCase();return t===e.amPm[0]?0:t===e.amPm[1]?1:null}],Jf=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(r){var e=(r+"").match(/([+-]|\d\d)/gi);if(e){var t=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?t:-t}return 0}],$C={D:["day",Tr],DD:["day",Mr],Do:["day",Tr+Wn,function(r){return parseInt(r,10)}],M:["month",Tr,jf],MM:["month",Mr,jf],YY:["year",Mr,function(r){var e=new Date,t=+(""+e.getFullYear()).substr(0,2);return+(""+(+r>68?t-1:t)+r)}],h:["hour",Tr,void 0,"isPm"],hh:["hour",Mr,void 0,"isPm"],H:["hour",Tr],HH:["hour",Mr],m:["minute",Tr],mm:["minute",Mr],s:["second",Tr],ss:["second",Mr],YYYY:["year",zC],S:["millisecond","\\d",function(r){return+r*100}],SS:["millisecond",Mr,function(r){return+r*10}],SSS:["millisecond",NC],d:Zf,dd:Zf,ddd:Qf,dddd:Qf,MMM:["month",Wn,qf("monthNamesShort")],MMMM:["month",Wn,qf("monthNames")],a:Kf,A:Kf,ZZ:Jf,Z:Jf},Ho={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Sg=function(r){return $r(Ho,r)},Mg=function(r,e,t){if(e===void 0&&(e=Ho.default),t===void 0&&(t={}),typeof r=="number"&&(r=new Date(r)),Object.prototype.toString.call(r)!=="[object Date]"||isNaN(r.getTime()))throw new Error("Invalid Date pass to format");e=Ho[e]||e;var i=[];e=e.replace(mg,function(a,o){return i.push(o),"@@@"});var n=$r($r({},$o),t);return e=e.replace(yg,function(a){return YC[a](r,n)}),e.replace(/@@@/g,function(){return i.shift()})};function Ag(r,e,t){if(t===void 0&&(t={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=Ho[e]||e,r.length>1e3)return null;var i=new Date,n={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],s=e.replace(mg,function(w,C){return o.push(Uf(C)),"@@@"}),l={},u={};s=Uf(s).replace(yg,function(w){var C=$C[w],M=C[0],F=C[1],T=C[3];if(l[M])throw new Error("Invalid format. "+M+" specified twice in format");return l[M]=!0,T&&(u[T]=!0),a.push(C),"("+F+")"}),Object.keys(u).forEach(function(w){if(!l[w])throw new Error("Invalid format. "+w+" is required in specified format")}),s=s.replace(/@@@/g,function(){return o.shift()});var c=r.match(new RegExp(s,"i"));if(!c)return null;for(var h=$r($r({},$o),t),f=1;f11||n.month<0||n.day>31||n.day<1||n.hour>23||n.hour<0||n.minute>59||n.minute<0||n.second>59||n.second<0)return null;return y}var Fg={format:Mg,parse:Ag,defaultI18n:yc,setGlobalDateI18n:Cg,setGlobalDateMasks:Sg};const HC=Object.freeze(Object.defineProperty({__proto__:null,assign:$r,default:Fg,defaultI18n:yc,format:Mg,parse:Ag,setGlobalDateI18n:Cg,setGlobalDateMasks:Sg},Symbol.toStringTag,{value:"Module"}));function XC(r){return function(e,t,i,n){for(var a=B(i)?0:i,o=B(n)?e.length:n;a>>1;r(e[s])>t?o=s:a=s+1}return a}}var tv="format";function Tg(r,e){var t=HC[tv]||Fg[tv];return t(r,e)}function Xo(r){return K(r)&&(r.indexOf("T")>0?r=new Date(r).getTime():r=new Date(r.replace(/-/gi,"/")).getTime()),wp(r)&&(r=r.getTime()),r}var Re=1e3,pi=60*Re,gi=60*pi,fr=24*gi,_n=fr*31,ev=fr*365,Tn=[["HH:mm:ss",Re],["HH:mm:ss",Re*10],["HH:mm:ss",Re*30],["HH:mm",pi],["HH:mm",pi*10],["HH:mm",pi*30],["HH",gi],["HH",gi*6],["HH",gi*12],["YYYY-MM-DD",fr],["YYYY-MM-DD",fr*4],["YYYY-WW",fr*7],["YYYY-MM",_n],["YYYY-MM",_n*4],["YYYY-MM",_n*6],["YYYY",fr*380]];function WC(r,e,t){var i=(e-r)/t,n=XC(function(o){return o[1]})(Tn,i)-1,a=Tn[n];return n<0?a=Tn[0]:n>=Tn.length&&(a=Nt(Tn)),a}var _C=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="timeCat",t}return e.prototype.translate=function(t){t=Xo(t);var i=this.values.indexOf(t);return i===-1&&(rt(t)&&t-1){var a=this.values[n],o=this.formatter;return a=o?o(a,i):Tg(a,this.mask),a}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var t=this.values;S(t,function(i,n){t[n]=Xo(i)}),t.sort(function(i,n){return i-n}),r.prototype.setDomain.call(this)},e}(Ts),Es=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.isContinuous=!0,t}return e.prototype.scale=function(t){if(B(t))return NaN;var i=this.rangeMin(),n=this.rangeMax(),a=this.max,o=this.min;if(a===o)return i;var s=this.getScalePercent(t);return i+s*(n-i)},e.prototype.init=function(){r.prototype.init.call(this);var t=this.ticks,i=me(t),n=Nt(t);ithis.max&&(this.max=n),B(this.minLimit)||(this.min=i),B(this.maxLimit)||(this.max=n)},e.prototype.setDomain=function(){var t=yp(this.values),i=t.min,n=t.max;B(this.min)&&(this.min=i),B(this.max)&&(this.max=n),this.min>this.max&&(this.min=i,this.max=n)},e.prototype.calculateTicks=function(){var t=this,i=r.prototype.calculateTicks.call(this);return this.nice||(i=qt(i,function(n){return n>=t.min&&n<=t.max})),i},e.prototype.getScalePercent=function(t){var i=this.max,n=this.min;return(t-n)/(i-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(gc),ks=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return e.prototype.invert=function(t){var i=this.getInvertPercent(t);return this.min+i*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(Es);function Lr(r,e){var t=Math.E,i;return e>=0?i=Math.pow(t,Math.log(e)/r):i=Math.pow(t,Math.log(-e)/r)*-1,i}function Te(r,e){return r===1?1:Math.log(e)/Math.log(r)}function Eg(r,e,t){B(t)&&(t=Math.max.apply(null,r));var i=t;return S(r,function(n){n>0&&n1&&(i=1),i}var qC=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t}return e.prototype.invert=function(t){var i=this.base,n=Te(i,this.max),a=this.rangeMin(),o=this.rangeMax()-a,s,l=this.positiveMin;if(l){if(t===0)return 0;s=Te(i,l/i);var u=1/(n-s)*o;if(t=0?1:-1;return Math.pow(s,n)*l},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var i=this.max,n=this.min;if(i===n)return 0;var a=this.exponent,o=(Lr(a,t)-Lr(a,n))/(Lr(a,i)-Lr(a,n));return o},e}(Es),jC=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="time",t}return e.prototype.getText=function(t,i){var n=this.translate(t),a=this.formatter;return a?a(n,i):Tg(n,this.mask)},e.prototype.scale=function(t){var i=t;return(K(i)||wp(i))&&(i=this.translate(i)),r.prototype.scale.call(this,i)},e.prototype.translate=function(t){return Xo(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,i=this.getConfig("min"),n=this.getConfig("max");if((!B(i)||!rt(i))&&(this.min=this.translate(this.min)),(!B(n)||!rt(n))&&(this.max=this.translate(this.max)),t&&t.length){var a=[],o=1/0,s=o,l=0;S(t,function(u){var c=Xo(u);if(isNaN(c))throw new TypeError("Invalid Time: "+u+" in time scale!");o>c?(s=o,o=c):s>c&&(s=c),l1&&(this.minTickInterval=s-o),B(i)&&(this.min=o),B(n)&&(this.max=l)}},e}(ks),kg=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="quantize",t}return e.prototype.invert=function(t){var i=this.ticks,n=i.length,a=this.getInvertPercent(t),o=Math.floor(a*(n-1));if(o>=n-1)return Nt(i);if(o<0)return me(i);var s=i[o],l=i[o+1],u=o/(n-1),c=(o+1)/(n-1);return s+(a-u)/(c-u)*(l-s)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var t=r.prototype.calculateTicks.call(this);return this.nice||(Nt(t)!==this.max&&t.push(this.max),me(t)!==this.min&&t.unshift(this.min)),t},e.prototype.getScalePercent=function(t){var i=this.ticks;if(tNt(i))return 1;var n=0;return S(i,function(a,o){if(t>=a)n=o;else return!1}),n/(i.length-1)},e}(Es),ZC=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="quantile",t}return e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(kg),Lg={};function gu(r){return Lg[r]}function ir(r,e){if(gu(r))throw new Error("type '"+r+"' existed.");Lg[r]=e}var QC=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&rt(t)?t:this.range[0]},e.prototype.invert=function(t){var i=this.range;return ti[1]?NaN:this.values[0]},e}(gc);function Ig(r){var e=r.values,t=r.tickInterval,i=r.tickCount,n=r.showLast;if(rt(t)){var a=qt(e,function(d,p){return p%t===0}),o=Nt(e);return n&&Nt(a)!==o&&a.push(o),a}var s=e.length,l=r.min,u=r.max;if(B(l)&&(l=0),B(u)&&(u=e.length-1),!rt(i)||i>=s)return e.slice(l,u+1);if(i<=0||u<=0)return[];for(var c=i===1?s:Math.floor(s/(i-1)),h=[],f=l,v=0;v=u);v++)f=Math.min(l+v*c,u),v===i-1&&n?h.push(e[u]):h.push(e[f]);return h}function KC(r){var e=r.min,t=r.max,i=r.nice,n=r.tickCount,a=new JC;return a.domain([e,t]),i&&a.nice(n),a.ticks(n)}var bl=5,rv=Math.sqrt(50),iv=Math.sqrt(10),nv=Math.sqrt(2),JC=function(){function r(){this._domain=[0,1]}return r.prototype.domain=function(e){return e?(this._domain=Array.from(e,Number),this):this._domain.slice()},r.prototype.nice=function(e){var t,i;e===void 0&&(e=bl);var n=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],l=this._domain[o],u;return l0?(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,u=Ao(s,l,e)):u<0&&(s=Math.ceil(s*u)/u,l=Math.floor(l*u)/u,u=Ao(s,l,e)),u>0?(n[a]=Math.floor(s/u)*u,n[o]=Math.ceil(l/u)*u,this.domain(n)):u<0&&(n[a]=Math.ceil(s*u)/u,n[o]=Math.floor(l*u)/u,this.domain(n)),this},r.prototype.ticks=function(e){return e===void 0&&(e=bl),tS(this._domain[0],this._domain[this._domain.length-1],e||bl)},r}();function tS(r,e,t){var i,n=-1,a,o,s;if(e=+e,r=+r,t=+t,r===e&&t>0)return[r];if((i=e0)for(r=Math.ceil(r/s),e=Math.floor(e/s),o=new Array(a=Math.ceil(e-r+1));++n=0?(a>=rv?10:a>=iv?5:a>=nv?2:1)*Math.pow(10,n):-Math.pow(10,-n)/(a>=rv?10:a>=iv?5:a>=nv?2:1)}function av(r,e,t){var i;return t==="ceil"?i=Math.ceil(r/e):t==="floor"?i=Math.floor(r/e):i=Math.round(r/e),i*e}function mc(r,e,t){var i=av(r,t,"floor"),n=av(e,t,"ceil");i=ul(i,t),n=ul(n,t);for(var a=[],o=Math.max((n-i)/(Math.pow(2,12)-1),t),s=i;s<=n;s=s+o){var l=ul(s,o);a.push(l)}return{min:i,max:n,ticks:a}}function xc(r,e,t){var i,n=r.minLimit,a=r.maxLimit,o=r.min,s=r.max,l=r.tickCount,u=l===void 0?5:l,c=B(n)?B(e)?o:e:n,h=B(a)?B(t)?s:t:a;if(c>h&&(i=[c,h],h=i[0],c=i[1]),u<=2)return[c,h];for(var f=(h-c)/(u-1),v=[],d=0;d=0&&(l=1),1-s/(o-1)-t+l}function oS(r,e,t){var i=Vt(e),n=Sp(e,r),a=1;return 1-n/(i-1)-t+a}function sS(r,e,t,i,n,a){var o=(r-1)/(a-n),s=(e-1)/(Math.max(a,i)-Math.min(t,n));return 2-Math.max(o/s,s/o)}function lS(r,e){return r>=e?2-(r-1)/(e-1):1}function uS(r,e,t,i){var n=e-r;return 1-.5*(Math.pow(e-i,2)+Math.pow(r-t,2))/Math.pow(.1*n,2)}function cS(r,e,t){var i=e-r;if(t>i){var n=(t-i)/2;return 1-Math.pow(n,2)/Math.pow(.1*i,2)}return 1}function hS(){return 1}function fS(r,e,t,i,n,a){t===void 0&&(t=5),i===void 0&&(i=!0),n===void 0&&(n=rS),a===void 0&&(a=[.25,.2,.5,.05]);var o=t<0?0:Math.round(t);if(Number.isNaN(r)||Number.isNaN(e)||typeof r!="number"||typeof e!="number"||!o)return{min:0,max:0,ticks:[]};if(e-r<1e-15||o===1)return{min:r,max:e,ticks:[r]};if(e-r>1e148){var s=t||5,l=(e-r)/s;return{min:r,max:e,ticks:Array(s).fill(null).map(function(W,et){return ri(r+l*et)})}}for(var u={score:-2,lmin:0,lmax:0,lstep:0},c=1;c<1/0;){for(var h=0;hu.score&&(!i||T<=r&&L>=e)&&(u.lmin=T,u.lmax=L,u.lstep=k,u.score=U)}y+=1}d+=1}}c+=1}var D=ri(u.lmax),z=ri(u.lmin),X=ri(u.lstep),$=Math.floor(nS((D-z)/X))+1,Y=new Array($);Y[0]=ri(z);for(var h=1;h<$;h++)Y[h]=ri(Y[h-1]+X);return{min:Math.min(r,me(Y)),max:Math.max(e,Nt(Y)),ticks:Y}}function vS(r){var e=r.min,t=r.max,i=r.tickCount,n=r.nice,a=r.tickInterval,o=r.minLimit,s=r.maxLimit,l=fS(e,t,i,n).ticks;return!B(o)||!B(s)?xc(r,me(l),Nt(l)):a?mc(e,t,a).ticks:l}function dS(r){var e=r.base,t=r.tickCount,i=r.min,n=r.max,a=r.values,o,s=Te(e,n);if(i>0)o=Math.floor(Te(e,i));else{var l=Eg(a,e,n);o=Math.floor(Te(e,l))}for(var u=s-o,c=Math.ceil(u/t),h=[],f=o;f=0?1:-1;return Math.pow(o,e)*s})}function gS(r,e){var t=r.length*e;return e===1?r[r.length-1]:e===0?r[0]:t%1!==0?r[Math.ceil(t)-1]:r.length%2===0?(r[t-1]+r[t])/2:r[t]}function yS(r){var e=r.tickCount,t=r.values;if(!t||!t.length)return[];for(var i=t.slice().sort(function(s,l){return s-l}),n=[],a=0;a1&&(n=n*Math.ceil(s)),i&&nev)for(var l=Wo(t),u=Math.ceil(a/ev),c=s;c<=l+u;c=c+u)o.push(bS(c));else if(a>_n)for(var h=Math.ceil(a/_n),f=yu(e),v=CS(e,t),c=0;c<=v+h;c=c+h)o.push(SS(s,c+f));else if(a>fr)for(var d=new Date(e),p=d.getFullYear(),g=d.getMonth(),y=d.getDate(),x=Math.ceil(a/fr),b=MS(e,t),c=0;cgi)for(var d=new Date(e),p=d.getFullYear(),g=d.getMonth(),x=d.getDate(),w=d.getHours(),C=Math.ceil(a/gi),M=AS(e,t),c=0;c<=M+C;c=c+C)o.push(new Date(p,g,x,w+c).getTime());else if(a>pi)for(var F=FS(e,t),T=Math.ceil(a/pi),c=0;c<=F+T;c=c+T)o.push(e+c*pi);else{var L=a;L=512&&console.warn("Notice: current ticks length("+o.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+a+") is too small, increase the value to solve the problem!"),o}rr("cat",Ig);rr("time-cat",wS);rr("wilkinson-extended",vS);rr("r-pretty",mS);rr("time",xS);rr("time-pretty",TS);rr("log",dS);rr("pow",pS);rr("quantile",yS);rr("d3-linear",eS);ir("cat",Ts);ir("category",Ts);ir("identity",QC);ir("linear",ks);ir("log",qC);ir("pow",UC);ir("time",jC);ir("timeCat",_C);ir("quantize",kg);ir("quantile",ZC);var Dg={},Og=function(r){return Dg[r.toLowerCase()]},ka=function(r,e){if(Og(r))throw new Error("Attribute type '".concat(r,"' existed."));Dg[r.toLowerCase()]=e};ka("Color",IC);ka("Opacity",PC);ka("Position",DC);ka("Shape",OC);ka("Size",BC);var wc=function(){function r(e){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=e.start,i=e.end,n=e.matrix,a=n===void 0?[1,0,0,0,1,0,0,0,1]:n,o=e.isTransposed,s=o===void 0?!1:o;this.start=t,this.end=i,this.matrix=a,this.originalMatrix=Z([],a),this.isTransposed=s}return r.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},r.prototype.update=function(e){yt(this,e),this.initial()},r.prototype.convertDim=function(e,t){var i,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(i=[o,a],a=i[0],o=i[1]),a+e*(o-a)},r.prototype.invertDim=function(e,t){var i,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(i=[o,a],a=i[0],o=i[1]),(e-a)/(o-a)},r.prototype.applyMatrix=function(e,t,i){i===void 0&&(i=0);var n=this.matrix,a=[e,t,i];return ta(a,a,n),a},r.prototype.invertMatrix=function(e,t,i){i===void 0&&(i=0);var n=this.matrix,a=o1([0,0,0,0,0,0,0,0,0],n),o=[e,t,i];return a&&ta(o,o,a),o},r.prototype.convert=function(e){var t=this.convertPoint(e),i=t.x,n=t.y,a=this.applyMatrix(i,n,1);return{x:a[0],y:a[1]}},r.prototype.invert=function(e){var t=this.invertMatrix(e.x,e.y,1);return this.invertPoint({x:t[0],y:t[1]})},r.prototype.rotate=function(e){var t=this.matrix,i=this.center;return Vi(t,t,[-i.x,-i.y]),sc(t,t,e),Vi(t,t,[i.x,i.y]),this},r.prototype.reflect=function(e){return e==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},r.prototype.scale=function(e,t){var i=this.matrix,n=this.center;return Vi(i,i,[-n.x,-n.y]),Op(i,i,[e,t]),Vi(i,i,[n.x,n.y]),this},r.prototype.translate=function(e,t){var i=this.matrix;return Vi(i,i,[e,t]),this},r.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},r.prototype.getCenter=function(){return this.center},r.prototype.getWidth=function(){return this.width},r.prototype.getHeight=function(){return this.height},r.prototype.getRadius=function(){return this.radius},r.prototype.isReflect=function(e){return e==="x"?this.isReflectX:this.isReflectY},r.prototype.resetMatrix=function(e){this.matrix=e||Z([],this.originalMatrix)},r}(),Bg=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.isRect=!0,i.type="cartesian",i.initial(),i}return e.prototype.initial=function(){r.prototype.initial.call(this);var t=this.start,i=this.end;this.x={start:t.x,end:i.x},this.y={start:t.y,end:i.y}},e.prototype.convertPoint=function(t){var i,n=t.x,a=t.y;return this.isTransposed&&(i=[a,n],n=i[0],a=i[1]),{x:this.convertDim(n,"x"),y:this.convertDim(a,"y")}},e.prototype.invertPoint=function(t){var i,n=this.invertDim(t.x,"x"),a=this.invertDim(t.y,"y");return this.isTransposed&&(i=[a,n],n=i[0],a=i[1]),{x:n,y:a}},e}(wc),ES=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.isHelix=!0,i.type="helix";var n=t.startAngle,a=n===void 0?1.25*Math.PI:n,o=t.endAngle,s=o===void 0?7.25*Math.PI:o,l=t.innerRadius,u=l===void 0?0:l,c=t.radius;return i.startAngle=a,i.endAngle=s,i.innerRadius=u,i.radius=c,i.initial(),i}return e.prototype.initial=function(){r.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,i=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(i=i*this.radius),this.d=Math.floor(i*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+this.d*.99}},e.prototype.convertPoint=function(t){var i,n=t.x,a=t.y;this.isTransposed&&(i=[a,n],n=i[0],a=i[1]);var o=this.convertDim(n,"x"),s=this.a*o,l=this.convertDim(a,"y");return{x:this.center.x+Math.cos(o)*(s+l),y:this.center.y+Math.sin(o)*(s+l)}},e.prototype.invertPoint=function(t){var i,n=this.d+this.y.start,a=Jx([0,0],[t.x,t.y],[this.center.x,this.center.y]),o=lc(a,[1,0],!0),s=o*this.a;Hi(a)this.width/i?(s=this.width/i,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*s*n}):(s=this.height/n,this.circleCenter={x:this.center.x-(.5-a)*s*i,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=s*this.radius:(this.radius<=0||this.radius>s)&&(this.polarRadius=s):this.polarRadius=s,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var i,n=this.getCenter(),a=t.x,o=t.y;return this.isTransposed&&(i=[o,a],a=i[0],o=i[1]),a=this.convertDim(a,"x"),o=this.convertDim(o,"y"),{x:n.x+Math.cos(a)*o,y:n.y+Math.sin(a)*o}},e.prototype.invertPoint=function(t){var i,n=this.getCenter(),a=[t.x-n.x,t.y-n.y],o=this,s=o.startAngle,l=o.endAngle;this.isReflect("x")&&(i=[l,s],s=i[0],l=i[1]);var u=[1,0,0,0,1,0,0,0,1];sc(u,u,s);var c=[1,0,0];ta(c,c,u);var h=[c[0],c[1]],f=lc(h,a,l0?d:-d;var p=this.invertDim(v,"y"),g={x:0,y:0};return g.x=this.isTransposed?p:d,g.y=this.isTransposed?d:p,g},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,i=this.endAngle;if(Math.abs(i-t)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(i)],a=[0,Math.sin(t),Math.sin(i)],o=Math.min(t,i);o=0;i--)r.removeChild(e[i])}function DS(r,e){return!!r.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function sa(r){var e=r.start,t=r.end,i=Math.min(e.x,t.x),n=Math.min(e.y,t.y),a=Math.max(e.x,t.x),o=Math.max(e.y,t.y);return{x:i,y:n,minX:i,minY:n,maxX:a,maxY:o,width:a-i,height:o-n}}function OS(r){var e=r.map(function(s){return s.x}),t=r.map(function(s){return s.y}),i=Math.min.apply(Math,e),n=Math.min.apply(Math,t),a=Math.max.apply(Math,e),o=Math.max.apply(Math,t);return{x:i,y:n,minX:i,minY:n,maxX:a,maxY:o,width:a-i,height:o-n}}function Is(r,e,t,i){var n=r+t,a=e+i;return{x:r,y:e,width:t,height:i,minX:r,minY:e,maxX:isNaN(n)?0:n,maxY:isNaN(a)?0:a}}function yi(r,e,t){return(1-t)*r+e*t}function ji(r,e,t){return{x:r.x+Math.cos(t)*e,y:r.y+Math.sin(t)*e}}function BS(r,e){var t=e.x-r.x,i=e.y-r.y;return Math.sqrt(t*t+i*i)}var qo=function(r,e,t){return t===void 0&&(t=Math.pow(Number.EPSILON,.5)),[r,e].includes(1/0)?Math.abs(r)===Math.abs(e):Math.abs(r-e)0?S(l,function(u){if(u.get("visible")){if(u.isGroup()&&u.get("children").length===0)return!0;var c=Vg(u),h=u.applyToMatrix([c.minX,c.minY,1]),f=u.applyToMatrix([c.minX,c.maxY,1]),v=u.applyToMatrix([c.maxX,c.minY,1]),d=u.applyToMatrix([c.maxX,c.maxY,1]),p=Math.min(h[0],f[0],v[0],d[0]),g=Math.max(h[0],f[0],v[0],d[0]),y=Math.min(h[1],f[1],v[1],d[1]),x=Math.max(h[1],f[1],v[1],d[1]);pa&&(a=g),ys&&(s=x)}}):(n=0,a=0,o=0,s=0),i=Is(n,o,a-n,s-o)}return t?RS(i,t):i}function NS(r,e){if(!(!r.getClip()&&!e.getClip())){var t=e.getClip();if(!t){r.setClip(null);return}var i={type:t.get("type"),attrs:t.attr()};r.setClip(i)}}function se(r){return r+"px"}function Yg(r,e,t,i){var n=BS(r,e),a=i/n,o=0;return t==="start"?o=0-a:t==="end"&&(o=1+a),{x:yi(r.x,e.x,o),y:yi(r.y,e.y,o)}}var zS={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},$g=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.initCfg(),i}return e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var i=this,n=this.get("defaultCfg")||{};S(t,function(a,o){var s=i.get(o),l=a;s!==a&&(mt(a)&&n[o]&&(l=H({},n[o],a)),i.set(o,l))}),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Vr(t,"visible")&&(t.visible?this.show():this.hide()),Vr(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,i){this.update({offsetX:t,offsetY:i})},e.prototype.setLocation=function(t){var i=m({},t);this.update(i)},e.prototype.getLocation=function(){var t=this,i={},n=this.get("locationType"),a=zS[n];return S(a,function(o){i[o]=t.get(o)}),i},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,i=this.get("defaultCfg");S(i,function(n,a){var o=t.get(a);if(mt(o)){var s=H({},n,o);t.set(a,s)}})},e}(fs),ti="update_status",GS=["visible","tip","delegateObject"],VS=["container","group","shapesMap","isRegister","isUpdating","destroyed"],Qt=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},e.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var i=this.getElementById(t),n=i&&i.get("component");return n},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var i=this.getElementId(t);return this.getElementById(i)},e.prototype.getElementsByName=function(t){var i=[];return S(this.get("shapesMap"),function(n){n.get("name")===t&&i.push(n)}),i},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var i=this.get("group");this.updateElements(t,i),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var i=this.get("group");i.set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),r.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),i=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(i=PS(n,i)),i},e.prototype.on=function(t,i,n){var a=this.get("group");return a.on(t,i,n),this},e.prototype.off=function(t,i){var n=this.get("group");return n&&n.off(t,i),this},e.prototype.emit=function(t,i){var n=this.get("group");n.emit(t,i)},e.prototype.init=function(){r.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,i){var n=this.get("group");i.target=n,n.emit(t,i),Ng(n,t,i)},e.prototype.createOffScreenGroup=function(){var t=this.get("group"),i=t.getGroupBase(),n=new i({delegateObject:this.getDelegateObject()});return n},e.prototype.applyOffset=function(){var t=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:i})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Vg(t)),t},e.prototype.addGroup=function(t,i){this.appendDelegateObject(t,i);var n=t.addGroup(i);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,i){this.appendDelegateObject(t,i);var n=t.addShape(i);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,i){var n=i.id,a=i.component,o=gt(i,["id","component"]),s=new a(m(m({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return s.init(),s.render(),this.get("isRegister")&&this.registerElement(s.get("group")),s},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){var t=this.get("group");t.off()},e.prototype.getElementId=function(t){var i=this.get("id"),n=this.get("name");return i+"-"+n+"-"+t},e.prototype.registerElement=function(t){var i=t.get("id");this.get("shapesMap")[i]=t},e.prototype.unregisterElement=function(t){var i=t.get("id");delete this.get("shapesMap")[i]},e.prototype.moveElementTo=function(t,i){var n=bc(i);t.attr("matrix",n)},e.prototype.addAnimation=function(t,i,n){var a=i.attr("opacity");B(a)&&(a=1),i.attr("opacity",0),i.animate({opacity:a},n)},e.prototype.removeAnimation=function(t,i,n){i.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,i,n,a){i.animate(n,a)},e.prototype.updateElements=function(t,i){var n=this,a=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0),l;S(s,function(u){var c=u.get("id"),h=n.getElementById(c),f=u.get("name");if(h)if(u.get("isComponent")){var v=u.get("component"),d=h.get("component"),p=Ju(v.cfg,rw(dn(v.cfg),VS));d.update(p),h.set(ti,"update")}else{var g=n.getReplaceAttrs(h,u);a&&o.update?n.updateAnimation(f,h,g,o.update):h.attr(g),u.isGroup()&&n.updateElements(u,h),S(GS,function(w){h.set(w,u.get(w))}),NS(h,u),l=h,h.set(ti,"update")}else{i.add(u);var y=i.getChildren();if(y.splice(y.length-1,1),l){var x=y.indexOf(l);y.splice(x+1,0,u)}else y.unshift(u);if(n.registerElement(u),u.set(ti,"add"),u.get("isComponent")){var v=u.get("component");v.set("container",i)}else u.isGroup()&&n.registerNewGroup(u);if(l=u,a){var b=n.get("isInit")?o.appear:o.enter;b&&n.addAnimation(f,u,b)}}})},e.prototype.clearUpdateStatus=function(t){var i=t.getChildren();S(i,function(n){n.set(ti,null)})},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t,i=this.get("name"),n=(t={},t[i]=this,t.component=this,t);return n},e.prototype.appendDelegateObject=function(t,i){var n=t.get("delegateObject");i.delegateObject||(i.delegateObject={}),yt(i.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,i){var n=t.attr(),a=i.attr();return S(n,function(o,s){a[s]===void 0&&(a[s]=void 0)}),a},e.prototype.registerNewGroup=function(t){var i=this,n=t.getChildren();S(n,function(a){i.registerElement(a),a.set(ti,"add"),a.isGroup()&&i.registerNewGroup(a)})},e.prototype.deleteElements=function(){var t=this,i=this.get("shapesMap"),n=[];S(i,function(s,l){!s.get(ti)||s.destroyed?n.push([l,s]):s.set(ti,null)});var a=this.get("animate"),o=this.get("animateOption");S(n,function(s){var l=s[0],u=s[1];if(!u.destroyed){var c=u.get("name");if(a&&o.leave){var h=yt({callback:function(){t.removeElement(u)}},o.leave);t.removeAnimation(c,u,h)}else t.removeElement(u)}delete i[l]})},e.prototype.removeElement=function(t){if(t.get("isGroup")){var i=t.get("component");i&&i.destroy()}t.remove()},e}($g),Cl="…";function YS(r){for(var e=0,t=0;t0&&r.charCodeAt(e)<128?1:2}function $S(r,e,t){t===void 0&&(t="tail");var i=r.length,n="";if(t==="tail"){for(var a=0,o=0;a=19968&&s<=40869?a+=2:a+=1}a>t&&(t=a,i=n)}return r[i].getBBox().width}function mu(r){if(r.length>WS)return _S(r);var e=0;return S(r,function(t){var i=t.getBBox(),n=i.width;e=0?f=$S(a,h,i):f=HS,f&&(e.attr("text",f),c=!0)}return c?e.set("tip",a):e.set("tip",null),c}function Ps(r,e){var t=e.x,i=e.y,n=e.content,a=e.style,o=e.id,s=e.name,l=e.rotate,u=e.maxLength,c=e.autoEllipsis,h=e.isVertical,f=e.ellipsisPosition,v=e.background,d=r.addGroup({id:o+"-group",name:s+"-group",attrs:{x:t,y:i}}),p=d.addShape({type:"text",id:o,name:s,attrs:m({x:0,y:0,text:n},a)}),g=_o(A(v,"padding",0));if(u&&c){var y=u-(g[1]+g[3]);qn(!h,p,y,f)}if(v){var x=A(v,"style",{}),b=p.getCanvasBBox(),w=b.minX,C=b.minY,M=b.width,F=b.height,T=d.addShape("rect",{id:o+"-bg",name:o+"-bg",attrs:m({x:w-g[3],y:C-g[0],width:M+g[1]+g[3],height:F+g[0]+g[2]},x)});T.toBack()}Cc(d,t,i),Gg(d,l,t,i)}const lt={fontFamily:` +***************************************************************************** */var pu=function(r,e){return pu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},pu(r,e)};function Fs(r,e){pu(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ze=function(){return Ze=Object.assign||function(e){for(var t,i=1,n=arguments.length;i=0){var d=this.getIntervalOnlyOffset(n,i);v=c+d}else if(!B(u)&&B(l)&&u>=0){var d=this.getDodgeOnlyOffset(n,i);v=c+d}else if(!B(l)&&!B(u)&&l>=0&&u>=0){var d=this.getIntervalAndDodgeOffset(n,i);v=c+d}else{var p=f*o/n,g=s*p,d=1/2*(f-n*p-(n-1)*g)+((i+1)*p+i*g)-1/2*p-1/2*f;v=(c+h)/2+d}return v},e.prototype.getIntervalOnlyOffset=function(t,i){var n=this,a=n.defaultSize,o=n.intervalPadding,s=n.xDimensionLegenth,l=n.groupNum,u=n.dodgeRatio,c=n.maxColumnWidth,h=n.minColumnWidth,f=n.columnWidthRatio,v=o/s,d=(1-(l-1)*v)/l*u/(t-1),p=((1-v*(l-1))/l-d*(t-1))/t;if(p=B(f)?p:1/l/t*f,!B(c)){var g=c/s;p=Math.min(p,g)}if(!B(h)){var y=h/s;p=Math.max(p,y)}p=a?a/s:p,d=((1-(l-1)*v)/l-t*p)/(t-1);var x=((1/2+i)*p+i*d+1/2*v)*l-v/2;return x},e.prototype.getDodgeOnlyOffset=function(t,i){var n=this,a=n.defaultSize,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,u=n.marginRatio,c=n.maxColumnWidth,h=n.minColumnWidth,f=n.columnWidthRatio,v=o/s,d=1*u/(l-1),p=((1-d*(l-1))/l-v*(t-1))/t;if(p=f?1/l/t*f:p,!B(c)){var g=c/s;p=Math.min(p,g)}if(!B(h)){var y=h/s;p=Math.max(p,y)}p=a?a/s:p,d=(1-(p*t+v*(t-1))*l)/(l-1);var x=((1/2+i)*p+i*v+1/2*d)*l-d/2;return x},e.prototype.getIntervalAndDodgeOffset=function(t,i){var n=this,a=n.intervalPadding,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,u=a/s,c=o/s,h=((1-u*(l-1))/l-c*(t-1))/t,f=((1/2+i)*h+i*c+1/2*u)*l-u/2;return f},e.prototype.getDistribution=function(t){var i=this.adjustDataArray,n=this.cacheMap,a=n[t];return a||(a={},S(i,function(o,s){var l=Ve(o,t);l.length||l.push(0),S(l,function(u){a[u]||(a[u]=[]),a[u].push(s)})}),n[t]=a),a},e}(Ms);function mC(r,e){return(e-r)*Math.random()+r}var xC=function(r){Fs(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.process=function(t){var i=ye(t),n=we(i);return this.adjustData(i,n),i},e.prototype.adjustDim=function(t,i,n){var a=this,o=this.groupData(n,t);return S(o,function(s,l){return a.adjustGroup(s,t,parseFloat(l),i)})},e.prototype.getAdjustOffset=function(t){var i=t.pre,n=t.next,a=(n-i)*gC;return mC(i+a,n-a)},e.prototype.adjustGroup=function(t,i,n,a){var o=this,s=this.getAdjustRange(i,n,a);return S(t,function(l){l[i]=o.getAdjustOffset(s)}),t},e}(Ms),ml=Kx,wC=function(r){Fs(e,r);function e(t){var i=r.call(this,t)||this,n=t.adjustNames,a=n===void 0?["y"]:n,o=t.height,s=o===void 0?NaN:o,l=t.size,u=l===void 0?10:l,c=t.reverseOrder,h=c===void 0?!1:c;return i.adjustNames=a,i.height=s,i.size=u,i.reverseOrder=h,i}return e.prototype.process=function(t){var i=this,n=i.yField,a=i.reverseOrder,o=n?this.processStack(t):this.processOneDimStack(t);return a?this.reverse(o):o},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var i=this,n=i.xField,a=i.yField,o=i.reverseOrder,s=o?this.reverse(t):t,l=new ml,u=new ml;return s.map(function(c){return c.map(function(h){var f,v=A(h,n,0),d=A(h,[a]),p=v.toString();if(d=R(d)?d[1]:d,!B(d)){var g=d>=0?l:u;g.has(p)||g.set(p,0);var y=g.get(p),x=d+y;return g.set(p,x),Ze(Ze({},h),(f={},f[a]=[y,x],f))}return h})})},e.prototype.processOneDimStack=function(t){var i=this,n=this,a=n.xField,o=n.height,s=n.reverseOrder,l="y",u=s?this.reverse(t):t,c=new ml;return u.map(function(h){return h.map(function(f){var v,d=i.size,p=f[a],g=d*2/o;c.has(p)||c.set(p,g/2);var y=c.get(p);return c.set(p,y+g),Ze(Ze({},f),(v={},v[l]=y,v))})})},e}(Ms),bC=function(r){Fs(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.process=function(t){var i=we(t),n=this,a=n.xField,o=n.yField,s=this.getXValuesMaxMap(i),l=Math.max.apply(Math,Object.keys(s).map(function(u){return s[u]}));return Mt(t,function(u){return Mt(u,function(c){var h,f,v=c[o],d=c[a];if(R(v)){var p=(l-s[d])/2;return Ze(Ze({},c),(h={},h[o]=Mt(v,function(y){return p+y}),h))}var g=(l-v)/2;return Ze(Ze({},c),(f={},f[o]=[g,v+g],f))})})},e.prototype.getXValuesMaxMap=function(t){var i=this,n=this,a=n.xField,o=n.yField,s=xe(t,function(l){return l[a]});return Cw(s,function(l){return i.getDimMaxValue(l,o)})},e.prototype.getDimMaxValue=function(t,i){var n=Mt(t,function(o){return A(o,i,[])}),a=we(n);return Math.max.apply(Math,a)},e}(Ms);As("Dodge",yC);As("Jitter",xC);As("Stack",wC);As("Symmetric",bC);var _f=function(r,e){return K(e)?e:r.invert(r.scale(e))},Ea=function(){function r(e){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(e)}return r.prototype.mapping=function(){for(var e=this,t=[],i=0;i1?1:Number(e),i=r.length-1,n=Math.floor(i*t),a=i*t-n,o=r[n],s=n===i?o:r[n+1];return vg([xl(o,s,a,0),xl(o,s,a,1),xl(o,s,a,2)])},Za,pg=function(r){if(r[0]==="#"&&r.length===7)return r;Za||(Za=TC()),Za.style.color=r;var e=document.defaultView.getComputedStyle(Za,"").getPropertyValue("color"),t=CC.exec(e),i=t[1].split(/\s*,\s*/).map(function(n){return Number(n)});return e=vg(i),e},kC=function(r){var e=K(r)?r.split("-"):r,t=Mt(e,function(i){return dg(i.indexOf("#")===-1?pg(i):i)});return function(i){return EC(t,i)}},LC=function(r){if(FC(r)){var e,t=void 0;if(r[0]==="l"){var i=SC.exec(r),n=+i[1]+90;t=i[2],e="linear-gradient("+n+"deg, "}else if(r[0]==="r"){e="radial-gradient(";var i=MC.exec(r);t=i[4]}var a=t.match(AC);return S(a,function(o,s){var l=o.split(":");e+=l[1]+" "+l[0]*100+"%",s!==a.length-1&&(e+=", ")}),e+=")",e}return r};const Nr={rgb2arr:dg,gradient:kC,toRGB:Aa(pg),toCSSGradient:LC};var IC=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="color",i.names=["color"],K(i.values)&&(i.linear=!0),i.gradient=Nr.gradient(i.values),i}return e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(Ea),PC=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="opacity",i.names=["opacity"],i}return e}(Ea),DC=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.names=["x","y"],i.type="position",i}return e.prototype.mapping=function(t,i){var n=this.scales,a=n[0],o=n[1];return B(t)||B(i)?[]:[R(t)?t.map(function(s){return a.scale(s)}):a.scale(t),R(i)?i.map(function(s){return o.scale(s)}):o.scale(i)]},e}(Ea),OC=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="shape",i.names=["shape"],i}return e.prototype.getLinearValue=function(t){var i=Math.round((this.values.length-1)*t);return this.values[i]},e}(Ea),BC=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="size",i.names=["size"],i}return e}(Ea),gg={};function RC(r){return gg[r]}function rr(r,e){gg[r]=e}var gc=function(){function r(e){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=e,this.initCfg(),this.init()}return r.prototype.translate=function(e){return e},r.prototype.change=function(e){yt(this.__cfg__,e),this.init()},r.prototype.clone=function(){return this.constructor(this.__cfg__)},r.prototype.getTicks=function(){var e=this;return Mt(this.ticks,function(t,i){return mt(t)?t:{text:e.getText(t,i),tickValue:t,value:e.scale(t)}})},r.prototype.getText=function(e,t){var i=this.formatter,n=i?i(e,t):e;return B(n)||!_(n.toString)?"":n.toString()},r.prototype.getConfig=function(e){return this.__cfg__[e]},r.prototype.init=function(){yt(this,this.__cfg__),this.setDomain(),fe(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},r.prototype.initCfg=function(){},r.prototype.setDomain=function(){},r.prototype.calculateTicks=function(){var e=this.tickMethod,t=[];if(K(e)){var i=RC(e);if(!i)throw new Error("There is no method to to calculate ticks!");t=i(this)}else _(e)&&(t=e(this));return t},r.prototype.rangeMin=function(){return this.range[0]},r.prototype.rangeMax=function(){return this.range[1]},r.prototype.calcPercent=function(e,t,i){return rt(e)?(e-t)/(i-t):NaN},r.prototype.calcValue=function(e,t,i){return t+e*(i-t)},r}(),Ts=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cat",t.isCategory=!0,t}return e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;tthis.max?NaN:this.values[a]},e.prototype.getText=function(t){for(var i=[],n=1;n1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(gc),yg=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Tr="\\d\\d?",Mr="\\d\\d",NC="\\d{3}",zC="\\d{4}",Wn="[^\\s]+",mg=/\[([^]*?)\]/gm;function xg(r,e){for(var t=[],i=0,n=r.length;i-1?n:null}};function $r(r){for(var e=[],t=1;t3?0:(r-r%10!==10?1:0)*r%10]}},$o=$r({},yc),Cg=function(r){return $o=$r($o,r)},Uf=function(r){return r.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},ne=function(r,e){for(e===void 0&&(e=2),r=String(r);r.length0?"-":"+")+ne(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(r){var e=r.getTimezoneOffset();return(e>0?"-":"+")+ne(Math.floor(Math.abs(e)/60),2)+":"+ne(Math.abs(e)%60,2)}},jf=function(r){return+r-1},Zf=[null,Tr],Qf=[null,Wn],Kf=["isPm",Wn,function(r,e){var t=r.toLowerCase();return t===e.amPm[0]?0:t===e.amPm[1]?1:null}],Jf=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(r){var e=(r+"").match(/([+-]|\d\d)/gi);if(e){var t=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?t:-t}return 0}],$C={D:["day",Tr],DD:["day",Mr],Do:["day",Tr+Wn,function(r){return parseInt(r,10)}],M:["month",Tr,jf],MM:["month",Mr,jf],YY:["year",Mr,function(r){var e=new Date,t=+(""+e.getFullYear()).substr(0,2);return+(""+(+r>68?t-1:t)+r)}],h:["hour",Tr,void 0,"isPm"],hh:["hour",Mr,void 0,"isPm"],H:["hour",Tr],HH:["hour",Mr],m:["minute",Tr],mm:["minute",Mr],s:["second",Tr],ss:["second",Mr],YYYY:["year",zC],S:["millisecond","\\d",function(r){return+r*100}],SS:["millisecond",Mr,function(r){return+r*10}],SSS:["millisecond",NC],d:Zf,dd:Zf,ddd:Qf,dddd:Qf,MMM:["month",Wn,qf("monthNamesShort")],MMMM:["month",Wn,qf("monthNames")],a:Kf,A:Kf,ZZ:Jf,Z:Jf},Ho={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Sg=function(r){return $r(Ho,r)},Mg=function(r,e,t){if(e===void 0&&(e=Ho.default),t===void 0&&(t={}),typeof r=="number"&&(r=new Date(r)),Object.prototype.toString.call(r)!=="[object Date]"||isNaN(r.getTime()))throw new Error("Invalid Date pass to format");e=Ho[e]||e;var i=[];e=e.replace(mg,function(a,o){return i.push(o),"@@@"});var n=$r($r({},$o),t);return e=e.replace(yg,function(a){return YC[a](r,n)}),e.replace(/@@@/g,function(){return i.shift()})};function Ag(r,e,t){if(t===void 0&&(t={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=Ho[e]||e,r.length>1e3)return null;var i=new Date,n={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],s=e.replace(mg,function(b,C){return o.push(Uf(C)),"@@@"}),l={},u={};s=Uf(s).replace(yg,function(b){var C=$C[b],M=C[0],F=C[1],T=C[3];if(l[M])throw new Error("Invalid format. "+M+" specified twice in format");return l[M]=!0,T&&(u[T]=!0),a.push(C),"("+F+")"}),Object.keys(u).forEach(function(b){if(!l[b])throw new Error("Invalid format. "+b+" is required in specified format")}),s=s.replace(/@@@/g,function(){return o.shift()});var c=r.match(new RegExp(s,"i"));if(!c)return null;for(var h=$r($r({},$o),t),f=1;f11||n.month<0||n.day>31||n.day<1||n.hour>23||n.hour<0||n.minute>59||n.minute<0||n.second>59||n.second<0)return null;return y}var Fg={format:Mg,parse:Ag,defaultI18n:yc,setGlobalDateI18n:Cg,setGlobalDateMasks:Sg};const HC=Object.freeze(Object.defineProperty({__proto__:null,assign:$r,default:Fg,defaultI18n:yc,format:Mg,parse:Ag,setGlobalDateI18n:Cg,setGlobalDateMasks:Sg},Symbol.toStringTag,{value:"Module"}));function XC(r){return function(e,t,i,n){for(var a=B(i)?0:i,o=B(n)?e.length:n;a>>1;r(e[s])>t?o=s:a=s+1}return a}}var tv="format";function Tg(r,e){var t=HC[tv]||Fg[tv];return t(r,e)}function Xo(r){return K(r)&&(r.indexOf("T")>0?r=new Date(r).getTime():r=new Date(r.replace(/-/gi,"/")).getTime()),wp(r)&&(r=r.getTime()),r}var Re=1e3,pi=60*Re,gi=60*pi,fr=24*gi,_n=fr*31,ev=fr*365,Tn=[["HH:mm:ss",Re],["HH:mm:ss",Re*10],["HH:mm:ss",Re*30],["HH:mm",pi],["HH:mm",pi*10],["HH:mm",pi*30],["HH",gi],["HH",gi*6],["HH",gi*12],["YYYY-MM-DD",fr],["YYYY-MM-DD",fr*4],["YYYY-WW",fr*7],["YYYY-MM",_n],["YYYY-MM",_n*4],["YYYY-MM",_n*6],["YYYY",fr*380]];function WC(r,e,t){var i=(e-r)/t,n=XC(function(o){return o[1]})(Tn,i)-1,a=Tn[n];return n<0?a=Tn[0]:n>=Tn.length&&(a=Nt(Tn)),a}var _C=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="timeCat",t}return e.prototype.translate=function(t){t=Xo(t);var i=this.values.indexOf(t);return i===-1&&(rt(t)&&t-1){var a=this.values[n],o=this.formatter;return a=o?o(a,i):Tg(a,this.mask),a}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var t=this.values;S(t,function(i,n){t[n]=Xo(i)}),t.sort(function(i,n){return i-n}),r.prototype.setDomain.call(this)},e}(Ts),Es=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.isContinuous=!0,t}return e.prototype.scale=function(t){if(B(t))return NaN;var i=this.rangeMin(),n=this.rangeMax(),a=this.max,o=this.min;if(a===o)return i;var s=this.getScalePercent(t);return i+s*(n-i)},e.prototype.init=function(){r.prototype.init.call(this);var t=this.ticks,i=me(t),n=Nt(t);ithis.max&&(this.max=n),B(this.minLimit)||(this.min=i),B(this.maxLimit)||(this.max=n)},e.prototype.setDomain=function(){var t=yp(this.values),i=t.min,n=t.max;B(this.min)&&(this.min=i),B(this.max)&&(this.max=n),this.min>this.max&&(this.min=i,this.max=n)},e.prototype.calculateTicks=function(){var t=this,i=r.prototype.calculateTicks.call(this);return this.nice||(i=qt(i,function(n){return n>=t.min&&n<=t.max})),i},e.prototype.getScalePercent=function(t){var i=this.max,n=this.min;return(t-n)/(i-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(gc),ks=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return e.prototype.invert=function(t){var i=this.getInvertPercent(t);return this.min+i*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(Es);function Lr(r,e){var t=Math.E,i;return e>=0?i=Math.pow(t,Math.log(e)/r):i=Math.pow(t,Math.log(-e)/r)*-1,i}function Te(r,e){return r===1?1:Math.log(e)/Math.log(r)}function Eg(r,e,t){B(t)&&(t=Math.max.apply(null,r));var i=t;return S(r,function(n){n>0&&n1&&(i=1),i}var qC=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t}return e.prototype.invert=function(t){var i=this.base,n=Te(i,this.max),a=this.rangeMin(),o=this.rangeMax()-a,s,l=this.positiveMin;if(l){if(t===0)return 0;s=Te(i,l/i);var u=1/(n-s)*o;if(t=0?1:-1;return Math.pow(s,n)*l},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var i=this.max,n=this.min;if(i===n)return 0;var a=this.exponent,o=(Lr(a,t)-Lr(a,n))/(Lr(a,i)-Lr(a,n));return o},e}(Es),jC=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="time",t}return e.prototype.getText=function(t,i){var n=this.translate(t),a=this.formatter;return a?a(n,i):Tg(n,this.mask)},e.prototype.scale=function(t){var i=t;return(K(i)||wp(i))&&(i=this.translate(i)),r.prototype.scale.call(this,i)},e.prototype.translate=function(t){return Xo(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,i=this.getConfig("min"),n=this.getConfig("max");if((!B(i)||!rt(i))&&(this.min=this.translate(this.min)),(!B(n)||!rt(n))&&(this.max=this.translate(this.max)),t&&t.length){var a=[],o=1/0,s=o,l=0;S(t,function(u){var c=Xo(u);if(isNaN(c))throw new TypeError("Invalid Time: "+u+" in time scale!");o>c?(s=o,o=c):s>c&&(s=c),l1&&(this.minTickInterval=s-o),B(i)&&(this.min=o),B(n)&&(this.max=l)}},e}(ks),kg=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="quantize",t}return e.prototype.invert=function(t){var i=this.ticks,n=i.length,a=this.getInvertPercent(t),o=Math.floor(a*(n-1));if(o>=n-1)return Nt(i);if(o<0)return me(i);var s=i[o],l=i[o+1],u=o/(n-1),c=(o+1)/(n-1);return s+(a-u)/(c-u)*(l-s)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var t=r.prototype.calculateTicks.call(this);return this.nice||(Nt(t)!==this.max&&t.push(this.max),me(t)!==this.min&&t.unshift(this.min)),t},e.prototype.getScalePercent=function(t){var i=this.ticks;if(tNt(i))return 1;var n=0;return S(i,function(a,o){if(t>=a)n=o;else return!1}),n/(i.length-1)},e}(Es),ZC=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="quantile",t}return e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(kg),Lg={};function gu(r){return Lg[r]}function ir(r,e){if(gu(r))throw new Error("type '"+r+"' existed.");Lg[r]=e}var QC=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&rt(t)?t:this.range[0]},e.prototype.invert=function(t){var i=this.range;return ti[1]?NaN:this.values[0]},e}(gc);function Ig(r){var e=r.values,t=r.tickInterval,i=r.tickCount,n=r.showLast;if(rt(t)){var a=qt(e,function(d,p){return p%t===0}),o=Nt(e);return n&&Nt(a)!==o&&a.push(o),a}var s=e.length,l=r.min,u=r.max;if(B(l)&&(l=0),B(u)&&(u=e.length-1),!rt(i)||i>=s)return e.slice(l,u+1);if(i<=0||u<=0)return[];for(var c=i===1?s:Math.floor(s/(i-1)),h=[],f=l,v=0;v=u);v++)f=Math.min(l+v*c,u),v===i-1&&n?h.push(e[u]):h.push(e[f]);return h}function KC(r){var e=r.min,t=r.max,i=r.nice,n=r.tickCount,a=new JC;return a.domain([e,t]),i&&a.nice(n),a.ticks(n)}var bl=5,rv=Math.sqrt(50),iv=Math.sqrt(10),nv=Math.sqrt(2),JC=function(){function r(){this._domain=[0,1]}return r.prototype.domain=function(e){return e?(this._domain=Array.from(e,Number),this):this._domain.slice()},r.prototype.nice=function(e){var t,i;e===void 0&&(e=bl);var n=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],l=this._domain[o],u;return l0?(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,u=Ao(s,l,e)):u<0&&(s=Math.ceil(s*u)/u,l=Math.floor(l*u)/u,u=Ao(s,l,e)),u>0?(n[a]=Math.floor(s/u)*u,n[o]=Math.ceil(l/u)*u,this.domain(n)):u<0&&(n[a]=Math.ceil(s*u)/u,n[o]=Math.floor(l*u)/u,this.domain(n)),this},r.prototype.ticks=function(e){return e===void 0&&(e=bl),tS(this._domain[0],this._domain[this._domain.length-1],e||bl)},r}();function tS(r,e,t){var i,n=-1,a,o,s;if(e=+e,r=+r,t=+t,r===e&&t>0)return[r];if((i=e0)for(r=Math.ceil(r/s),e=Math.floor(e/s),o=new Array(a=Math.ceil(e-r+1));++n=0?(a>=rv?10:a>=iv?5:a>=nv?2:1)*Math.pow(10,n):-Math.pow(10,-n)/(a>=rv?10:a>=iv?5:a>=nv?2:1)}function av(r,e,t){var i;return t==="ceil"?i=Math.ceil(r/e):t==="floor"?i=Math.floor(r/e):i=Math.round(r/e),i*e}function mc(r,e,t){var i=av(r,t,"floor"),n=av(e,t,"ceil");i=ul(i,t),n=ul(n,t);for(var a=[],o=Math.max((n-i)/(Math.pow(2,12)-1),t),s=i;s<=n;s=s+o){var l=ul(s,o);a.push(l)}return{min:i,max:n,ticks:a}}function xc(r,e,t){var i,n=r.minLimit,a=r.maxLimit,o=r.min,s=r.max,l=r.tickCount,u=l===void 0?5:l,c=B(n)?B(e)?o:e:n,h=B(a)?B(t)?s:t:a;if(c>h&&(i=[c,h],h=i[0],c=i[1]),u<=2)return[c,h];for(var f=(h-c)/(u-1),v=[],d=0;d=0&&(l=1),1-s/(o-1)-t+l}function oS(r,e,t){var i=Vt(e),n=Sp(e,r),a=1;return 1-n/(i-1)-t+a}function sS(r,e,t,i,n,a){var o=(r-1)/(a-n),s=(e-1)/(Math.max(a,i)-Math.min(t,n));return 2-Math.max(o/s,s/o)}function lS(r,e){return r>=e?2-(r-1)/(e-1):1}function uS(r,e,t,i){var n=e-r;return 1-.5*(Math.pow(e-i,2)+Math.pow(r-t,2))/Math.pow(.1*n,2)}function cS(r,e,t){var i=e-r;if(t>i){var n=(t-i)/2;return 1-Math.pow(n,2)/Math.pow(.1*i,2)}return 1}function hS(){return 1}function fS(r,e,t,i,n,a){t===void 0&&(t=5),i===void 0&&(i=!0),n===void 0&&(n=rS),a===void 0&&(a=[.25,.2,.5,.05]);var o=t<0?0:Math.round(t);if(Number.isNaN(r)||Number.isNaN(e)||typeof r!="number"||typeof e!="number"||!o)return{min:0,max:0,ticks:[]};if(e-r<1e-15||o===1)return{min:r,max:e,ticks:[r]};if(e-r>1e148){var s=t||5,l=(e-r)/s;return{min:r,max:e,ticks:Array(s).fill(null).map(function(W,et){return ri(r+l*et)})}}for(var u={score:-2,lmin:0,lmax:0,lstep:0},c=1;c<1/0;){for(var h=0;hu.score&&(!i||T<=r&&L>=e)&&(u.lmin=T,u.lmax=L,u.lstep=k,u.score=q)}y+=1}d+=1}}c+=1}var D=ri(u.lmax),z=ri(u.lmin),X=ri(u.lstep),$=Math.floor(nS((D-z)/X))+1,V=new Array($);V[0]=ri(z);for(var h=1;h<$;h++)V[h]=ri(V[h-1]+X);return{min:Math.min(r,me(V)),max:Math.max(e,Nt(V)),ticks:V}}function vS(r){var e=r.min,t=r.max,i=r.tickCount,n=r.nice,a=r.tickInterval,o=r.minLimit,s=r.maxLimit,l=fS(e,t,i,n).ticks;return!B(o)||!B(s)?xc(r,me(l),Nt(l)):a?mc(e,t,a).ticks:l}function dS(r){var e=r.base,t=r.tickCount,i=r.min,n=r.max,a=r.values,o,s=Te(e,n);if(i>0)o=Math.floor(Te(e,i));else{var l=Eg(a,e,n);o=Math.floor(Te(e,l))}for(var u=s-o,c=Math.ceil(u/t),h=[],f=o;f=0?1:-1;return Math.pow(o,e)*s})}function gS(r,e){var t=r.length*e;return e===1?r[r.length-1]:e===0?r[0]:t%1!==0?r[Math.ceil(t)-1]:r.length%2===0?(r[t-1]+r[t])/2:r[t]}function yS(r){var e=r.tickCount,t=r.values;if(!t||!t.length)return[];for(var i=t.slice().sort(function(s,l){return s-l}),n=[],a=0;a1&&(n=n*Math.ceil(s)),i&&nev)for(var l=Wo(t),u=Math.ceil(a/ev),c=s;c<=l+u;c=c+u)o.push(bS(c));else if(a>_n)for(var h=Math.ceil(a/_n),f=yu(e),v=CS(e,t),c=0;c<=v+h;c=c+h)o.push(SS(s,c+f));else if(a>fr)for(var d=new Date(e),p=d.getFullYear(),g=d.getMonth(),y=d.getDate(),x=Math.ceil(a/fr),w=MS(e,t),c=0;cgi)for(var d=new Date(e),p=d.getFullYear(),g=d.getMonth(),x=d.getDate(),b=d.getHours(),C=Math.ceil(a/gi),M=AS(e,t),c=0;c<=M+C;c=c+C)o.push(new Date(p,g,x,b+c).getTime());else if(a>pi)for(var F=FS(e,t),T=Math.ceil(a/pi),c=0;c<=F+T;c=c+T)o.push(e+c*pi);else{var L=a;L=512&&console.warn("Notice: current ticks length("+o.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+a+") is too small, increase the value to solve the problem!"),o}rr("cat",Ig);rr("time-cat",wS);rr("wilkinson-extended",vS);rr("r-pretty",mS);rr("time",xS);rr("time-pretty",TS);rr("log",dS);rr("pow",pS);rr("quantile",yS);rr("d3-linear",eS);ir("cat",Ts);ir("category",Ts);ir("identity",QC);ir("linear",ks);ir("log",qC);ir("pow",UC);ir("time",jC);ir("timeCat",_C);ir("quantize",kg);ir("quantile",ZC);var Dg={},Og=function(r){return Dg[r.toLowerCase()]},ka=function(r,e){if(Og(r))throw new Error("Attribute type '".concat(r,"' existed."));Dg[r.toLowerCase()]=e};ka("Color",IC);ka("Opacity",PC);ka("Position",DC);ka("Shape",OC);ka("Size",BC);var wc=function(){function r(e){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=e.start,i=e.end,n=e.matrix,a=n===void 0?[1,0,0,0,1,0,0,0,1]:n,o=e.isTransposed,s=o===void 0?!1:o;this.start=t,this.end=i,this.matrix=a,this.originalMatrix=Z([],a),this.isTransposed=s}return r.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},r.prototype.update=function(e){yt(this,e),this.initial()},r.prototype.convertDim=function(e,t){var i,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(i=[o,a],a=i[0],o=i[1]),a+e*(o-a)},r.prototype.invertDim=function(e,t){var i,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(i=[o,a],a=i[0],o=i[1]),(e-a)/(o-a)},r.prototype.applyMatrix=function(e,t,i){i===void 0&&(i=0);var n=this.matrix,a=[e,t,i];return ta(a,a,n),a},r.prototype.invertMatrix=function(e,t,i){i===void 0&&(i=0);var n=this.matrix,a=o1([0,0,0,0,0,0,0,0,0],n),o=[e,t,i];return a&&ta(o,o,a),o},r.prototype.convert=function(e){var t=this.convertPoint(e),i=t.x,n=t.y,a=this.applyMatrix(i,n,1);return{x:a[0],y:a[1]}},r.prototype.invert=function(e){var t=this.invertMatrix(e.x,e.y,1);return this.invertPoint({x:t[0],y:t[1]})},r.prototype.rotate=function(e){var t=this.matrix,i=this.center;return Vi(t,t,[-i.x,-i.y]),sc(t,t,e),Vi(t,t,[i.x,i.y]),this},r.prototype.reflect=function(e){return e==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},r.prototype.scale=function(e,t){var i=this.matrix,n=this.center;return Vi(i,i,[-n.x,-n.y]),Op(i,i,[e,t]),Vi(i,i,[n.x,n.y]),this},r.prototype.translate=function(e,t){var i=this.matrix;return Vi(i,i,[e,t]),this},r.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},r.prototype.getCenter=function(){return this.center},r.prototype.getWidth=function(){return this.width},r.prototype.getHeight=function(){return this.height},r.prototype.getRadius=function(){return this.radius},r.prototype.isReflect=function(e){return e==="x"?this.isReflectX:this.isReflectY},r.prototype.resetMatrix=function(e){this.matrix=e||Z([],this.originalMatrix)},r}(),Bg=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.isRect=!0,i.type="cartesian",i.initial(),i}return e.prototype.initial=function(){r.prototype.initial.call(this);var t=this.start,i=this.end;this.x={start:t.x,end:i.x},this.y={start:t.y,end:i.y}},e.prototype.convertPoint=function(t){var i,n=t.x,a=t.y;return this.isTransposed&&(i=[a,n],n=i[0],a=i[1]),{x:this.convertDim(n,"x"),y:this.convertDim(a,"y")}},e.prototype.invertPoint=function(t){var i,n=this.invertDim(t.x,"x"),a=this.invertDim(t.y,"y");return this.isTransposed&&(i=[a,n],n=i[0],a=i[1]),{x:n,y:a}},e}(wc),ES=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.isHelix=!0,i.type="helix";var n=t.startAngle,a=n===void 0?1.25*Math.PI:n,o=t.endAngle,s=o===void 0?7.25*Math.PI:o,l=t.innerRadius,u=l===void 0?0:l,c=t.radius;return i.startAngle=a,i.endAngle=s,i.innerRadius=u,i.radius=c,i.initial(),i}return e.prototype.initial=function(){r.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,i=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(i=i*this.radius),this.d=Math.floor(i*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+this.d*.99}},e.prototype.convertPoint=function(t){var i,n=t.x,a=t.y;this.isTransposed&&(i=[a,n],n=i[0],a=i[1]);var o=this.convertDim(n,"x"),s=this.a*o,l=this.convertDim(a,"y");return{x:this.center.x+Math.cos(o)*(s+l),y:this.center.y+Math.sin(o)*(s+l)}},e.prototype.invertPoint=function(t){var i,n=this.d+this.y.start,a=Jx([0,0],[t.x,t.y],[this.center.x,this.center.y]),o=lc(a,[1,0],!0),s=o*this.a;Hi(a)this.width/i?(s=this.width/i,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*s*n}):(s=this.height/n,this.circleCenter={x:this.center.x-(.5-a)*s*i,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=s*this.radius:(this.radius<=0||this.radius>s)&&(this.polarRadius=s):this.polarRadius=s,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var i,n=this.getCenter(),a=t.x,o=t.y;return this.isTransposed&&(i=[o,a],a=i[0],o=i[1]),a=this.convertDim(a,"x"),o=this.convertDim(o,"y"),{x:n.x+Math.cos(a)*o,y:n.y+Math.sin(a)*o}},e.prototype.invertPoint=function(t){var i,n=this.getCenter(),a=[t.x-n.x,t.y-n.y],o=this,s=o.startAngle,l=o.endAngle;this.isReflect("x")&&(i=[l,s],s=i[0],l=i[1]);var u=[1,0,0,0,1,0,0,0,1];sc(u,u,s);var c=[1,0,0];ta(c,c,u);var h=[c[0],c[1]],f=lc(h,a,l0?d:-d;var p=this.invertDim(v,"y"),g={x:0,y:0};return g.x=this.isTransposed?p:d,g.y=this.isTransposed?d:p,g},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,i=this.endAngle;if(Math.abs(i-t)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(i)],a=[0,Math.sin(t),Math.sin(i)],o=Math.min(t,i);o=0;i--)r.removeChild(e[i])}function DS(r,e){return!!r.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function sa(r){var e=r.start,t=r.end,i=Math.min(e.x,t.x),n=Math.min(e.y,t.y),a=Math.max(e.x,t.x),o=Math.max(e.y,t.y);return{x:i,y:n,minX:i,minY:n,maxX:a,maxY:o,width:a-i,height:o-n}}function OS(r){var e=r.map(function(s){return s.x}),t=r.map(function(s){return s.y}),i=Math.min.apply(Math,e),n=Math.min.apply(Math,t),a=Math.max.apply(Math,e),o=Math.max.apply(Math,t);return{x:i,y:n,minX:i,minY:n,maxX:a,maxY:o,width:a-i,height:o-n}}function Is(r,e,t,i){var n=r+t,a=e+i;return{x:r,y:e,width:t,height:i,minX:r,minY:e,maxX:isNaN(n)?0:n,maxY:isNaN(a)?0:a}}function yi(r,e,t){return(1-t)*r+e*t}function ji(r,e,t){return{x:r.x+Math.cos(t)*e,y:r.y+Math.sin(t)*e}}function BS(r,e){var t=e.x-r.x,i=e.y-r.y;return Math.sqrt(t*t+i*i)}var qo=function(r,e,t){return t===void 0&&(t=Math.pow(Number.EPSILON,.5)),[r,e].includes(1/0)?Math.abs(r)===Math.abs(e):Math.abs(r-e)0?S(l,function(u){if(u.get("visible")){if(u.isGroup()&&u.get("children").length===0)return!0;var c=Vg(u),h=u.applyToMatrix([c.minX,c.minY,1]),f=u.applyToMatrix([c.minX,c.maxY,1]),v=u.applyToMatrix([c.maxX,c.minY,1]),d=u.applyToMatrix([c.maxX,c.maxY,1]),p=Math.min(h[0],f[0],v[0],d[0]),g=Math.max(h[0],f[0],v[0],d[0]),y=Math.min(h[1],f[1],v[1],d[1]),x=Math.max(h[1],f[1],v[1],d[1]);pa&&(a=g),ys&&(s=x)}}):(n=0,a=0,o=0,s=0),i=Is(n,o,a-n,s-o)}return t?RS(i,t):i}function NS(r,e){if(!(!r.getClip()&&!e.getClip())){var t=e.getClip();if(!t){r.setClip(null);return}var i={type:t.get("type"),attrs:t.attr()};r.setClip(i)}}function se(r){return r+"px"}function Yg(r,e,t,i){var n=BS(r,e),a=i/n,o=0;return t==="start"?o=0-a:t==="end"&&(o=1+a),{x:yi(r.x,e.x,o),y:yi(r.y,e.y,o)}}var zS={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},$g=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.initCfg(),i}return e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var i=this,n=this.get("defaultCfg")||{};S(t,function(a,o){var s=i.get(o),l=a;s!==a&&(mt(a)&&n[o]&&(l=H({},n[o],a)),i.set(o,l))}),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Vr(t,"visible")&&(t.visible?this.show():this.hide()),Vr(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,i){this.update({offsetX:t,offsetY:i})},e.prototype.setLocation=function(t){var i=m({},t);this.update(i)},e.prototype.getLocation=function(){var t=this,i={},n=this.get("locationType"),a=zS[n];return S(a,function(o){i[o]=t.get(o)}),i},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,i=this.get("defaultCfg");S(i,function(n,a){var o=t.get(a);if(mt(o)){var s=H({},n,o);t.set(a,s)}})},e}(fs),ti="update_status",GS=["visible","tip","delegateObject"],VS=["container","group","shapesMap","isRegister","isUpdating","destroyed"],Qt=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},e.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var i=this.getElementById(t),n=i&&i.get("component");return n},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var i=this.getElementId(t);return this.getElementById(i)},e.prototype.getElementsByName=function(t){var i=[];return S(this.get("shapesMap"),function(n){n.get("name")===t&&i.push(n)}),i},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var i=this.get("group");this.updateElements(t,i),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var i=this.get("group");i.set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),r.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),i=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(i=PS(n,i)),i},e.prototype.on=function(t,i,n){var a=this.get("group");return a.on(t,i,n),this},e.prototype.off=function(t,i){var n=this.get("group");return n&&n.off(t,i),this},e.prototype.emit=function(t,i){var n=this.get("group");n.emit(t,i)},e.prototype.init=function(){r.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,i){var n=this.get("group");i.target=n,n.emit(t,i),Ng(n,t,i)},e.prototype.createOffScreenGroup=function(){var t=this.get("group"),i=t.getGroupBase(),n=new i({delegateObject:this.getDelegateObject()});return n},e.prototype.applyOffset=function(){var t=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:i})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Vg(t)),t},e.prototype.addGroup=function(t,i){this.appendDelegateObject(t,i);var n=t.addGroup(i);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,i){this.appendDelegateObject(t,i);var n=t.addShape(i);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,i){var n=i.id,a=i.component,o=gt(i,["id","component"]),s=new a(m(m({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return s.init(),s.render(),this.get("isRegister")&&this.registerElement(s.get("group")),s},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){var t=this.get("group");t.off()},e.prototype.getElementId=function(t){var i=this.get("id"),n=this.get("name");return i+"-"+n+"-"+t},e.prototype.registerElement=function(t){var i=t.get("id");this.get("shapesMap")[i]=t},e.prototype.unregisterElement=function(t){var i=t.get("id");delete this.get("shapesMap")[i]},e.prototype.moveElementTo=function(t,i){var n=bc(i);t.attr("matrix",n)},e.prototype.addAnimation=function(t,i,n){var a=i.attr("opacity");B(a)&&(a=1),i.attr("opacity",0),i.animate({opacity:a},n)},e.prototype.removeAnimation=function(t,i,n){i.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,i,n,a){i.animate(n,a)},e.prototype.updateElements=function(t,i){var n=this,a=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0),l;S(s,function(u){var c=u.get("id"),h=n.getElementById(c),f=u.get("name");if(h)if(u.get("isComponent")){var v=u.get("component"),d=h.get("component"),p=Ju(v.cfg,rw(dn(v.cfg),VS));d.update(p),h.set(ti,"update")}else{var g=n.getReplaceAttrs(h,u);a&&o.update?n.updateAnimation(f,h,g,o.update):h.attr(g),u.isGroup()&&n.updateElements(u,h),S(GS,function(b){h.set(b,u.get(b))}),NS(h,u),l=h,h.set(ti,"update")}else{i.add(u);var y=i.getChildren();if(y.splice(y.length-1,1),l){var x=y.indexOf(l);y.splice(x+1,0,u)}else y.unshift(u);if(n.registerElement(u),u.set(ti,"add"),u.get("isComponent")){var v=u.get("component");v.set("container",i)}else u.isGroup()&&n.registerNewGroup(u);if(l=u,a){var w=n.get("isInit")?o.appear:o.enter;w&&n.addAnimation(f,u,w)}}})},e.prototype.clearUpdateStatus=function(t){var i=t.getChildren();S(i,function(n){n.set(ti,null)})},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t,i=this.get("name"),n=(t={},t[i]=this,t.component=this,t);return n},e.prototype.appendDelegateObject=function(t,i){var n=t.get("delegateObject");i.delegateObject||(i.delegateObject={}),yt(i.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,i){var n=t.attr(),a=i.attr();return S(n,function(o,s){a[s]===void 0&&(a[s]=void 0)}),a},e.prototype.registerNewGroup=function(t){var i=this,n=t.getChildren();S(n,function(a){i.registerElement(a),a.set(ti,"add"),a.isGroup()&&i.registerNewGroup(a)})},e.prototype.deleteElements=function(){var t=this,i=this.get("shapesMap"),n=[];S(i,function(s,l){!s.get(ti)||s.destroyed?n.push([l,s]):s.set(ti,null)});var a=this.get("animate"),o=this.get("animateOption");S(n,function(s){var l=s[0],u=s[1];if(!u.destroyed){var c=u.get("name");if(a&&o.leave){var h=yt({callback:function(){t.removeElement(u)}},o.leave);t.removeAnimation(c,u,h)}else t.removeElement(u)}delete i[l]})},e.prototype.removeElement=function(t){if(t.get("isGroup")){var i=t.get("component");i&&i.destroy()}t.remove()},e}($g),Cl="…";function YS(r){for(var e=0,t=0;t0&&r.charCodeAt(e)<128?1:2}function $S(r,e,t){t===void 0&&(t="tail");var i=r.length,n="";if(t==="tail"){for(var a=0,o=0;a=19968&&s<=40869?a+=2:a+=1}a>t&&(t=a,i=n)}return r[i].getBBox().width}function mu(r){if(r.length>WS)return _S(r);var e=0;return S(r,function(t){var i=t.getBBox(),n=i.width;e=0?f=$S(a,h,i):f=HS,f&&(e.attr("text",f),c=!0)}return c?e.set("tip",a):e.set("tip",null),c}function Ps(r,e){var t=e.x,i=e.y,n=e.content,a=e.style,o=e.id,s=e.name,l=e.rotate,u=e.maxLength,c=e.autoEllipsis,h=e.isVertical,f=e.ellipsisPosition,v=e.background,d=r.addGroup({id:o+"-group",name:s+"-group",attrs:{x:t,y:i}}),p=d.addShape({type:"text",id:o,name:s,attrs:m({x:0,y:0,text:n},a)}),g=_o(A(v,"padding",0));if(u&&c){var y=u-(g[1]+g[3]);qn(!h,p,y,f)}if(v){var x=A(v,"style",{}),w=p.getCanvasBBox(),b=w.minX,C=w.minY,M=w.width,F=w.height,T=d.addShape("rect",{id:o+"-bg",name:o+"-bg",attrs:m({x:b-g[3],y:C-g[0],width:M+g[1]+g[3],height:F+g[0]+g[2]},x)});T.toBack()}Cc(d,t,i),Gg(d,l,t,i)}const lt={fontFamily:` BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", - SimSun, "sans-serif"`,textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"};var US=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:lt.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:lt.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:lt.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var i=this.get("start"),n=this.get("end"),a=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:m({x1:i.x,y1:i.y,x2:n.x,y2:n.y},a)})},e.prototype.getLabelPoint=function(t,i,n){var a;return n==="start"?a=0:n==="center"?a=.5:K(n)&&n.indexOf("%")!==-1?a=parseInt(n,10)/100:rt(n)?a=n:a=1,(a>1||a<0)&&(a=1),{x:yi(t.x,i.x,a),y:yi(t.y,i.y,a)}},e.prototype.renderLabel=function(t){var i=this.get("text"),n=this.get("start"),a=this.get("end"),o=i.position,s=i.content,l=i.style,u=i.offsetX,c=i.offsetY,h=i.autoRotate,f=i.maxLength,v=i.autoEllipsis,d=i.ellipsisPosition,p=i.background,g=i.isVertical,y=g===void 0?!1:g,x=this.getLabelPoint(n,a,o),b=x.x+u,w=x.y+c,C={id:this.getElementId("line-text"),name:"annotation-line-text",x:b,y:w,content:s,style:l,maxLength:f,autoEllipsis:v,ellipsisPosition:d,background:p,isVertical:y};if(h){var M=[a.x-n.x,a.y-n.y];C.rotate=Math.atan2(M[1],M[0])}Ps(t,C)},e}(Qt),jS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:lt.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:lt.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var i=this.getLocation(),n=i.x,a=i.y,o=this.get("content"),s=this.get("style"),l=this.getElementId("text"),u=this.get("name")+"-text",c=this.get("maxLength"),h=this.get("autoEllipsis"),f=this.get("isVertical"),v=this.get("ellipsisPosition"),d=this.get("background"),p=this.get("rotate"),g={id:l,name:u,x:n,y:a,content:o,style:s,maxLength:c,autoEllipsis:h,isVertical:f,ellipsisPosition:v,background:d,rotate:p};Ps(t,g)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var i=this.getLocation(),n=i.x,a=i.y,o=this.get("rotate");Cc(t,n,a),Gg(t,o,n,a)}},e}(Qt),ZS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),i=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=ji(i,n,a),l=ji(i,n,o),u=o-a>Math.PI?1:0,c=[["M",s.x,s.y]];if(o-a===Math.PI*2){var h=ji(i,n,a+Math.PI);c.push(["A",n,n,0,u,1,h.x,h.y]),c.push(["A",n,n,0,u,1,l.x,l.y])}else c.push(["A",n,n,0,u,1,l.x,l.y]);return c},e.prototype.renderArc=function(t){var i=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:m({path:i},n)})},e}(Qt),QS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:lt.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var i=this.get("start"),n=this.get("end"),a=this.get("style"),o=sa({start:i,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:m({x:o.x,y:o.y,width:o.width,height:o.height},a)})},e}(Qt),KS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),i=this.get("end"),n=this.get("style"),a=sa({start:t,end:i}),o=this.get("src");return m({x:a.x,y:a.y,img:o,width:a.width,height:a.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(Qt),JS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:lt.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:lt.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:lt.fontFamily}}}})},e.prototype.renderInner=function(t){A(this.get("line"),"display")&&this.renderLine(t),A(this.get("text"),"display")&&this.renderText(t),A(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var i=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:i})},e.prototype.renderLine=function(t){var i=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:i})},e.prototype.renderText=function(t){var i=this.getShapeAttrs().text,n=i.x,a=i.y,o=i.text,s=gt(i,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,h=l.autoEllipsis,f=l.isVertival,v=l.ellipsisPosition,d={x:n,y:a,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:u,maxLength:c,autoEllipsis:h,isVertival:f,ellipsisPosition:v};Ps(t,d)},e.prototype.autoAdjust=function(t){var i=this.get("direction"),n=this.get("x"),a=this.get("y"),o=A(this.get("line"),"length",0),s=this.get("coordinateBBox"),l=t.getBBox(),u=l.minX,c=l.maxX,h=l.minY,f=l.maxY,v=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),p=t.findById(this.getElementId("line"));if(s&&v){var g=v.attr("x"),y=v.attr("y"),x=d.getCanvasBBox(),b=x.width,w=x.height,C=0,M=0;if(n+u<=s.minX)if(i==="leftward")C=1;else{var F=s.minX-(n+u);g=v.attr("x")+F}else if(n+c>=s.maxX)if(i==="rightward")C=-1;else{var F=n+c-s.maxX;g=v.attr("x")-F}if(C&&(p&&p.attr("path",[["M",0,0],["L",o*C,0]]),g=(o+2+b)*C),a+h<=s.minY)if(i==="upward")M=1;else{var F=s.minY-(a+h);y=v.attr("y")+F}else if(a+f>=s.maxY)if(i==="downward")M=-1;else{var F=a+f-s.maxY;y=v.attr("y")-F}M&&(p&&p.attr("path",[["M",0,0],["L",0,o*M]]),y=(o+2+w)*M),(g!==v.attr("x")||y!==v.attr("y"))&&Cc(v,g,y)}},e.prototype.getShapeAttrs=function(){var t=A(this.get("line"),"display"),i=A(this.get("point"),"style",{}),n=A(this.get("line"),"style",{}),a=A(this.get("text"),"style",{}),o=this.get("direction"),s=t?A(this.get("line"),"length",0):0,l=0,u=0,c="top",h="start";switch(o){case"upward":u=-1,c="bottom";break;case"downward":u=1,c="top";break;case"leftward":l=-1,h="end";break;case"rightward":l=1,h="start";break}return{point:m({x:0,y:0},i),line:m({path:[["M",0,0],["L",s*l,s*u]]},n),text:m({x:(s+2)*l,y:(s+2)*u,text:A(this.get("text"),"content",""),textBaseline:c,textAlign:h},a)}},e}(Qt),tM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:lt.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:lt.textColor,fontFamily:lt.fontFamily}}}})},e.prototype.renderInner=function(t){var i=A(this.get("region"),"style",{});A(this.get("text"),"style",{});var n=this.get("lineLength")||0,a=this.get("points");if(a.length){var o=OS(a),s=[];s.push(["M",a[0].x,o.minY-n]),a.forEach(function(u){s.push(["L",u.x,u.y])}),s.push(["L",a[a.length-1].x,a[a.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:m({path:s},i)});var l=m({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));Ps(t,l)}},e}(Qt),eM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var i=this,n=this.get("start"),a=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});S(this.get("shapes"),function(l,u){var c=l.get("type"),h=ye(l.attr());i.adjustShapeAttrs(h),i.addShape(o,{id:i.getElementId("shape-"+c+"-"+u),capture:!1,type:c,attrs:h})});var s=sa({start:n,end:a});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},e.prototype.adjustShapeAttrs=function(t){var i=this.get("color");t.fill&&(t.fill=t.fillStyle=i),t.stroke=t.strokeStyle=i},e}(Qt),rM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"shape",draw:Pr})},e.prototype.renderInner=function(t){var i=this.get("render");_(i)&&i(t)},e}(Qt),Mc=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{container:null,containerTpl:"
",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var i=this.getContainer(),n=t?"auto":"none";i.style.pointerEvents=n,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),i=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Is(i,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Sc(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),r.prototype.destroy.call(this)},e.prototype.init=function(){r.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(B(t)){t=this.createDom();var i=this.get("parent");K(i)&&(i=document.getElementById(i),this.set("parent",i)),i.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else K(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),i=this.get("defaultStyles");t?t=H({},i,t):t=i,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var i=this.getContainer();this.applyChildrenStyles(i,t);var n=this.get("containerClassName");if(n&&DS(i,n)){var a=t[n];Kt(i,a)}}},e.prototype.applyChildrenStyles=function(t,i){S(i,function(n,a){var o=t.getElementsByClassName(a);S(o,function(s){Kt(s,n)})})},e.prototype.applyStyle=function(t,i){var n=this.get("domStyles");Kt(i,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Br(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Vr(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}($g),iM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),i=this.get("html");Sc(t);var n=_(i)?i(t):i;if(bp(n))t.appendChild(n);else if(K(n)||rt(n)){var a=Br(""+n);a&&t.appendChild(a)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),i=this.getLocation(),n=i.x,a=i.y,o=this.get("alignX"),s=this.get("alignY"),l=this.get("offsetX"),u=this.get("offsetY"),c=kw(t),h=Tw(t),f={x:n,y:a};o==="middle"?f.x-=Math.round(c/2):o==="right"&&(f.x-=Math.round(c)),s==="middle"?f.y-=Math.round(h/2):s==="bottom"&&(f.y-=Math.round(h)),l&&(f.x+=l),u&&(f.y+=u),Kt(t,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},e}(Mc);const nM=Object.freeze(Object.defineProperty({__proto__:null,Arc:ZS,DataMarker:JS,DataRegion:tM,Html:iM,Image:KS,Line:US,Region:QS,RegionFilter:eM,Shape:rM,Text:jS},Symbol.toStringTag,{value:"Module"}));function Nn(r,e,t){var i=e+"Style",n=null;return S(t,function(a,o){r[o]&&a[i]&&(n||(n={}),yt(n,a[i]))}),n}var Hg=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:lt.lineColor}},tickLine:{style:{lineWidth:1,stroke:lt.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:lt.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:lt.textColor,fontFamily:lt.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:lt.textColor,textBaseline:"middle",fontFamily:lt.fontFamily,textAlign:"center"},iconStyle:{fill:lt.descriptionIconFill,stroke:lt.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:lt.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,i){yt(t,i),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,i,n){t[i]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,i){return!!t[i]},e.prototype.getItemStates=function(t){var i=this.get("tickStates"),n=[];return S(i,function(a,o){t[o]&&n.push(o)}),n},e.prototype.clearItemsState=function(t){var i=this,n=this.getItemsByState(t);S(n,function(a){i.setItemState(a,t,!1)})},e.prototype.getItemsByState=function(t){var i=this,n=this.getItems();return qt(n,function(a){return i.hasState(a,t)})},e.prototype.getSidePoint=function(t,i){var n=this,a=n.getSideVector(i,t);return{x:t.x+a[0],y:t.y+a[1]}},e.prototype.getTextAnchor=function(t){var i;return Xt(t[0],0)?i="center":t[0]>0?i="start":t[0]<0&&(i="end"),i},e.prototype.getTextBaseline=function(t){var i;return Xt(t[1],0)?i="middle":t[1]>0?i="top":t[1]<0&&(i="bottom"),i},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var i=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:yt({path:i},n.style)})},e.prototype.getTickLineItems=function(t){var i=this,n=[],a=this.get("tickLine"),o=a.alignTick,s=a.length,l=1,u=t.length;return u>=2&&(l=t[1].value-t[0].value),S(t,function(c){var h=c.point;o||(h=i.getTickPoint(c.value-l/2));var f=i.getSidePoint(h,s);n.push({startPoint:h,tickValue:c.value,endPoint:f,tickId:c.id,id:"tickline-"+c.id})}),n},e.prototype.getSubTickLineItems=function(t){var i=[],n=this.get("subTickLine"),a=n.count,o=t.length;if(o>=2)for(var s=0;s0){var n=Vt(i);if(n>t.threshold){var a=Math.ceil(n/t.threshold),o=i.filter(function(s,l){return l%a===0});this.set("ticks",o),this.set("originalTicks",i)}}},e.prototype.getLabelAttrs=function(t,i,n){var a=this.get("label"),o=a.offset,s=a.offsetX,l=a.offsetY,u=a.rotate,c=a.formatter,h=this.getSidePoint(t.point,o),f=this.getSideVector(o,h),v=c?c(t.name,t,i):t.name,d=a.style;d=_(d)?A(this.get("theme"),["label","style"],{}):d;var p=yt({x:h.x+s,y:h.y+l,text:v,textAlign:this.getTextAnchor(f),textBaseline:this.getTextBaseline(f)},d);return u&&(p.matrix=Si(h,u)),p},e.prototype.drawLabels=function(t){var i=this,n=this.get("ticks"),a=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});S(n,function(f,v){i.addShape(a,{type:"text",name:"axis-label",id:i.getElementId("label-"+f.id),attrs:i.getLabelAttrs(f,v,n),delegateObject:{tick:f,item:f,index:v}})}),this.processOverlap(a);var o=a.getChildren(),s=A(this.get("theme"),["label","style"],{}),l=this.get("label"),u=l.style,c=l.formatter;if(_(u)){var h=o.map(function(f){return A(f.get("delegateObject"),"tick")});S(o,function(f,v){var d=f.get("delegateObject").tick,p=c?c(d.name,d,v):d.name,g=yt({},s,u(p,v,h));f.attr(g)})}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),i=t.style,n=t.position,a=t.offset,o=t.spacing,s=o===void 0?0:o,l=t.autoRotate,u=i.fontSize,c=.5;n==="start"?c=0:n==="end"&&(c=1);var h=this.getTickPoint(c),f=this.getSidePoint(h,a||s+u/2),v=yt({x:f.x,y:f.y,text:t.text},i),d=t.rotate,p=d;if(B(d)&&l){var g=this.getAxisVector(h),y=[1,0];p=lc(g,y,!0)}if(p){var x=Si(f,p);v.matrix=x}return v},e.prototype.drawTitle=function(t){var i,n=this.getTitleAttrs(),a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});!((i=this.get("title"))===null||i===void 0)&&i.description&&this.drawDescriptionIcon(t,a,n.matrix)},e.prototype.drawDescriptionIcon=function(t,i,n){var a=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),o=i.getBBox(),s=o.maxX,l=o.maxY,u=o.height,c=this.get("title").iconStyle,h=4,f=u/2,v=f/6,d=s+h,p=l-u/2,g=[d+f,p-f],y=g[0],x=g[1],b=[y+f,x+f],w=b[0],C=b[1],M=[y,C+f],F=M[0],T=M[1],L=[d,x+f],k=L[0],P=L[1],O=[d+f,p-u/4],N=O[0],V=O[1],U=[N,V+v],D=U[0],z=U[1],X=[D,z+v],$=X[0],Y=X[1],W=[$,Y+f*3/4],et=W[0],at=W[1];this.addShape(a,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:m({path:[["M",y,x],["A",f,f,0,0,1,w,C],["A",f,f,0,0,1,F,T],["A",f,f,0,0,1,k,P],["A",f,f,0,0,1,y,x],["M",N,V],["L",D,z],["M",$,Y],["L",et,at]],lineWidth:v,matrix:n},c)}),this.addShape(a,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:d,y:p-u/2,width:u,height:u,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,i){var n=this.getItemStates(t);if(n.length){var a=this.get("tickStates"),o=this.getElementId("label-"+t.id),s=i.findById(o);if(s){var l=Nn(t,"label",a);l&&s.attr(l)}var u=this.getElementId("tickline-"+t.id),c=i.findById(u);if(c){var h=Nn(t,"tickLine",a);h&&c.attr(h)}}},e.prototype.updateTickStates=function(t){var i=this.getItemStates(t),n=this.get("tickStates"),a=this.get("label"),o=this.getElementByLocalId("label-"+t.id),s=this.get("tickLine"),l=this.getElementByLocalId("tickline-"+t.id);if(i.length){if(o){var u=Nn(t,"label",n);u&&o.attr(u)}if(l){var c=Nn(t,"tickLine",n);c&&l.attr(c)}}else o&&o.attr(a.style),l&&l.attr(s.style)},e}(Qt);function Ac(r,e,t,i){var n=e.getChildren(),a=!1;return S(n,function(o){var s=qn(r,o,t,i);a=a||s}),a}function aM(){return Xg}function oM(r,e,t){return Ac(r,e,t,"head")}function Xg(r,e,t){return Ac(r,e,t,"tail")}function sM(r,e,t){return Ac(r,e,t,"middle")}const lM=Object.freeze(Object.defineProperty({__proto__:null,ellipsisHead:oM,ellipsisMiddle:sM,ellipsisTail:Xg,getDefault:aM},Symbol.toStringTag,{value:"Module"}));function uM(r){var e=r.attr("matrix");return e&&e[0]!==1}function Wg(r){var e=uM(r)?IS(r.attr("matrix")):0;return e%360}function xu(r,e,t,i){var n=!1,a=Wg(e),o=Math.abs(r?t.attr("y")-e.attr("y"):t.attr("x")-e.attr("x")),s=(r?t.attr("y")>e.attr("y"):t.attr("x")>e.attr("x"))?e.getBBox():t.getBBox();if(r){var l=Math.abs(Math.cos(a));qo(l,0,Math.PI/180)?n=s.width+i>o:n=s.height/l+i>o}else{var l=Math.abs(Math.sin(a));qo(l,0,Math.PI/180)?n=s.width+i>o:n=s.height/l+i>o}return n}function la(r,e,t,i){var n=(i==null?void 0:i.minGap)||0,a=e.getChildren().slice().filter(function(v){return v.get("visible")});if(!a.length)return!1;var o=!1;t&&a.reverse();for(var s=a.length,l=a[0],u=l,c=1;c1){f=Math.ceil(f);for(var p=0;p2){var o=n[0],s=n[n.length-1];o.get("visible")||(o.show(),la(r,e,!1,i)&&(a=!0)),s.get("visible")||(s.show(),la(r,e,!0,i)&&(a=!0))}return a}const pM=Object.freeze(Object.defineProperty({__proto__:null,equidistance:qg,equidistanceWithReverseBoth:dM,getDefault:cM,reserveBoth:vM,reserveFirst:hM,reserveLast:fM},Symbol.toStringTag,{value:"Module"}));function gM(r,e){S(r,function(t){var i=t.attr("x"),n=t.attr("y"),a=Si({x:i,y:n},e);t.attr("matrix",a)})}function Ug(r,e,t,i){var n=e.getChildren();if(!n.length||!r&&n.length<2)return!1;var a=mu(n),o=!1;if(r)o=!!t&&a>t;else{var s=Math.abs(n[1].attr("x")-n[0].attr("x"));o=a>s}if(o){var l=i(t,a);gM(n,l)}return o}function yM(){return jg}function jg(r,e,t,i){return Ug(r,e,t,function(){return rt(i)?i:r?lt.verticalAxisRotate:lt.horizontalAxisRotate})}function mM(r,e,t){return Ug(r,e,t,function(i,n){if(!i)return r?lt.verticalAxisRotate:lt.horizontalAxisRotate;if(r)return-Math.acos(i/n);var a=0;return i>n?a=Math.PI/4:(a=Math.asin(i/n),a>Math.PI/4&&(a=Math.PI/4)),a})}const xM=Object.freeze(Object.defineProperty({__proto__:null,fixedAngle:jg,getDefault:yM,unfixedAngle:mM},Symbol.toStringTag,{value:"Module"})),Zg=Object.freeze(Object.defineProperty({__proto__:null,autoEllipsis:lM,autoHide:pM,autoRotate:xM},Symbol.toStringTag,{value:"Module"}));var wM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),i=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",i.x,i.y]),n},e.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),i=this.get("end"),n=r.prototype.getInnerLayoutBBox.call(this),a=Math.min(t.x,i.x,n.x),o=Math.min(t.y,i.y,n.y),s=Math.max(t.x,i.x,n.maxX),l=Math.max(t.y,i.y,n.maxY);return{x:a,y:o,minX:a,minY:o,maxX:s,maxY:l,width:s-a,height:l-o}},e.prototype.isVertical=function(){var t=this.get("start"),i=this.get("end");return Xt(t.x,i.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),i=this.get("end");return Xt(t.y,i.y)},e.prototype.getTickPoint=function(t){var i=this,n=i.get("start"),a=i.get("end"),o=a.x-n.x,s=a.y-n.y;return{x:n.x+o*t,y:n.y+s*t}},e.prototype.getSideVector=function(t){var i=this.getAxisVector(),n=vp([0,0],i),a=this.get("verticalFactor"),o=[n[1],n[0]*-1];return re([0,0],o,t*a)},e.prototype.getAxisVector=function(){var t=this.get("start"),i=this.get("end");return[i.x-t.x,i.y-t.y]},e.prototype.processOverlap=function(t){var i=this,n=this.isVertical(),a=this.isHorizontal();if(!(!n&&!a)){var o=this.get("label"),s=this.get("title"),l=this.get("verticalLimitLength"),u=o.offset,c=l,h=0,f=0;s&&(h=s.style.fontSize,f=s.spacing),c&&(c=c-u-f-h);var v=this.get("overlapOrder");if(S(v,function(g){o[g]&&i.canProcessOverlap(g)&&i.autoProcessOverlap(g,o[g],t,c)}),s&&B(s.offset)){var d=t.getCanvasBBox(),p=n?d.width:d.height;s.offset=u+p+f+h/2}}},e.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?B(i.rotate):!0},e.prototype.autoProcessOverlap=function(t,i,n,a){var o=this,s=this.isVertical(),l=!1,u=Zg[t];if(i===!0)this.get("label"),l=u.getDefault()(s,n,a);else if(_(i))l=i(s,n,a);else if(mt(i)){var c=i;u[c.type]&&(l=u[c.type](s,n,a,c.cfg))}else u[i]&&(l=u[i](s,n,a));if(t==="autoRotate"){if(l){var h=n.getChildren(),f=this.get("verticalFactor");S(h,function(d){var p=d.attr("textAlign");if(p==="center"){var g=f>0?"end":"start";d.attr("textAlign",g)}})}}else if(t==="autoHide"){var v=n.getChildren().slice(0);S(v,function(d){d.get("visible")||(o.get("isRegister")&&o.unregisterElement(d),d.remove())})}},e}(Hg),bM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},e.prototype.getLinePath=function(){var t=this.get("center"),i=t.x,n=t.y,a=this.get("radius"),o=a,s=this.get("startAngle"),l=this.get("endAngle"),u=[];if(Math.abs(l-s)===Math.PI*2)u=[["M",i,n-o],["A",a,o,0,1,1,i,n+o],["A",a,o,0,1,1,i,n-o],["Z"]];else{var c=this.getCirclePoint(s),h=this.getCirclePoint(l),f=Math.abs(l-s)>Math.PI?1:0,v=s>l?0:1;u=[["M",i,n],["L",c.x,c.y],["A",a,o,0,f,v,h.x,h.y],["L",i,n]]}return u},e.prototype.getTickPoint=function(t){var i=this.get("startAngle"),n=this.get("endAngle"),a=i+(n-i)*t;return this.getCirclePoint(a)},e.prototype.getSideVector=function(t,i){var n=this.get("center"),a=[i.x-n.x,i.y-n.y],o=this.get("verticalFactor"),s=Hi(a);return re(a,a,o*t/s),a},e.prototype.getAxisVector=function(t){var i=this.get("center"),n=[t.x-i.x,t.y-i.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,i){var n=this.get("center");return i=i||this.get("radius"),{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},e.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?B(i.rotate):!0},e.prototype.processOverlap=function(t){var i=this,n=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=n.offset,l=o,u=0,c=0;a&&(u=a.style.fontSize,c=a.spacing),l&&(l=l-s-c-u);var h=this.get("overlapOrder");if(S(h,function(v){n[v]&&i.canProcessOverlap(v)&&i.autoProcessOverlap(v,n[v],t,l)}),a&&B(a.offset)){var f=t.getCanvasBBox().height;a.offset=s+f+c+u/2}},e.prototype.autoProcessOverlap=function(t,i,n,a){var o=this,s=!1,l=Zg[t];if(a>0)if(i===!0)s=l.getDefault()(!1,n,a);else if(_(i))s=i(!1,n,a);else if(mt(i)){var u=i;l[u.type]&&(s=l[u.type](!1,n,a,u.cfg))}else l[i]&&(s=l[i](!1,n,a));if(t==="autoRotate"){if(s){var c=n.getChildren(),h=this.get("verticalFactor");S(c,function(v){var d=v.attr("textAlign");if(d==="center"){var p=h>0?"end":"start";v.attr("textAlign",p)}})}}else if(t==="autoHide"){var f=n.getChildren().slice(0);S(f,function(v){v.get("visible")||(o.get("isRegister")&&o.unregisterElement(v),v.remove())})}},e}(Hg),Fc=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:lt.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:lt.textColor,textAlign:"center",textBaseline:"middle",fontFamily:lt.fontFamily}},textBackground:{padding:5,style:{stroke:lt.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var i=this.get("text"),n=i.style,a=i.autoRotate,o=i.content;if(!B(o)){var s=this.getTextPoint(),l=null;if(a){var u=this.getRotateAngle();l=Si(s,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:m(m(m({},s),{text:o,matrix:l}),n)})}},e.prototype.renderLine=function(t){var i=this.getLinePath(),n=this.get("line"),a=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:m({path:i},a)})},e.prototype.renderBackground=function(t){var i=this.getElementId("text"),n=t.findById(i),a=this.get("textBackground");if(a&&n){var o=n.getBBox(),s=_o(a.padding),l=a.style,u=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:m({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:n.attr("matrix")},l)});u.toBack()}},e}(Qt),Qg=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text").position,o=Math.atan2(n.y-i.y,n.x-i.x),s=a==="start"?o-Math.PI/2:o+Math.PI/2;return s},e.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return Yg(i,n,o,s)},e.prototype.getLinePath=function(){var t=this.getLocation(),i=t.start,n=t.end;return[["M",i.x,i.y],["L",n.x,n.y]]},e}(Fc),CM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.startAngle,n=t.endAngle,a=this.get("text").position,o=a==="start"?i+Math.PI/2:n-Math.PI/2;return o},e.prototype.getTextPoint=function(){var t=this.get("text"),i=t.position,n=t.offset,a=this.getLocation(),o=a.center,s=a.radius,l=a.startAngle,u=a.endAngle,c=i==="start"?l:u,h=this.getRotateAngle()-Math.PI,f=ji(o,s,c),v=Math.cos(h)*n,d=Math.sin(h)*n;return{x:f.x+v,y:f.y+d}},e.prototype.getLinePath=function(){var t=this.getLocation(),i=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=null;if(o-a===Math.PI*2){var l=i.x,u=i.y;s=[["M",l,u-n],["A",n,n,0,1,1,l,u+n],["A",n,n,0,1,1,l,u-n],["Z"]]}else{var c=ji(i,n,a),h=ji(i,n,o),f=Math.abs(o-a)>Math.PI?1:0,v=a>o?0:1;s=[["M",c.x,c.y],["A",n,n,0,f,v,h.x,h.y]]}return s},e}(Fc),ua="g2-crosshair",wu=ua+"-line",bu=ua+"-text",En;const SM=(En={},En[""+ua]={position:"relative"},En[""+wu]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},En[""+bu]={position:"absolute",color:lt.textColor,fontFamily:lt.fontFamily},En);var MM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
',crosshairTpl:'
',textTpl:'{content}',domStyles:null,containerClassName:ua,defaultStyles:SM,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),i=this.get("crosshairTpl"),n=Br(i);t.appendChild(n),this.applyStyle(wu,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return Yg(i,n,o,s)},e.prototype.resetText=function(){var t=this.get("text"),i=this.get("textEl");if(t){var n=t.content;if(!i){var a=this.getContainer(),o=dp(this.get("textTpl"),t);i=Br(o),a.appendChild(i),this.applyStyle(bu,i),this.set("textEl",i)}i.innerHTML=n}else i&&i.remove()},e.prototype.isVertical=function(t,i){return t.x===i.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var i=this.get("start"),n=this.get("end"),a=Math.min(i.x,n.x),o=Math.min(i.y,n.y);this.isVertical(i,n)?Kt(t,{width:"1px",height:se(Math.abs(n.y-i.y))}):Kt(t,{height:"1px",width:se(Math.abs(n.x-i.x))}),Kt(t,{top:se(o),left:se(a)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var i=this.get("text").align,n=t.clientWidth,a=this.getTextPoint();switch(i){case"center":a.x=a.x-n/2;break;case"right":a.x=a.x-n}Kt(t,{top:se(a.y),left:se(a.x)})}},e.prototype.updateInner=function(t){Vr(t,"text")&&this.resetText(),r.prototype.updateInner.call(this,t)},e}(Mc);const sv=Object.freeze(Object.defineProperty({__proto__:null,Base:Fc,Circle:CM,Html:MM,Line:Qg},Symbol.toStringTag,{value:"Module"}));var Kg=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:lt.lineColor}}}})},e.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,i){var n=this.getGridPath(t),a=i.slice(0).reverse(),o=this.getGridPath(a,!0),s=this.get("closed");return s?n=n.concat(o):(o[0][0]="L",n=n.concat(o),n.push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var i=this,n=this.get("line"),a=this.get("items"),o=this.get("alternateColor"),s=null;S(a,function(l,u){var c=l.id||u;if(n){var h=i.getPathStyle();h=_(h)?h(l,u,a):h;var f=i.getElementId("line-"+c),v=i.getGridPath(l.points);i.addShape(t,{type:"path",name:"grid-line",id:f,attrs:yt({path:v},h)})}if(o&&u>0){var d=i.getElementId("region-"+c),p=u%2===0;if(K(o))p&&i.drawAlternateRegion(d,t,s.points,l.points,o);else{var g=p?o[1]:o[0];i.drawAlternateRegion(d,t,s.points,l.points,g)}}s=l})},e.prototype.drawAlternateRegion=function(t,i,n,a,o){var s=this.getAlternatePath(n,a);this.addShape(i,{type:"path",id:t,name:"grid-region",attrs:{path:s,fill:o}})},e}(Qt);function AM(r,e,t,i){var n=t-r,a=i-e;return Math.sqrt(n*n+a*a)}var FM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,i){var n=this.getLineType(),a=this.get("closed"),o=[];if(t.length)if(n==="circle"){var s=this.get("center"),l=t[0],u=AM(s.x,s.y,l.x,l.y),c=i?0:1;a?(o.push(["M",s.x,s.y-u]),o.push(["A",u,u,0,0,c,s.x,s.y+u]),o.push(["A",u,u,0,0,c,s.x,s.y-u]),o.push(["Z"])):S(t,function(h,f){f===0?o.push(["M",h.x,h.y]):o.push(["A",u,u,0,0,c,h.x,h.y])})}else S(t,function(h,f){f===0?o.push(["M",h.x,h.y]):o.push(["L",h.x,h.y])}),a&&o.push(["Z"]);return o},e}(Kg),TM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"line"})},e.prototype.getGridPath=function(t){var i=[];return S(t,function(n,a){a===0?i.push(["M",n.x,n.y]):i.push(["L",n.x,n.y])}),i},e}(Kg),Jg=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var t=r.prototype.getLayoutBBox.call(this),i=this.get("maxWidth"),n=this.get("maxHeight"),a=t.width,o=t.height;return i&&(a=Math.min(a,i)),n&&(o=Math.min(o,n)),Is(t.minX,t.minY,a,o)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),i=this.get("y"),n=this.get("offsetX"),a=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:i+a})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var i=this.get("background"),n=t.getBBox(),a=_o(i.padding),o=m({x:0,y:0,width:n.width+a[1]+a[3],height:n.height+a[0]+a[2]},i.style),s=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});s.toBack()},e.prototype.drawTitle=function(t){var i=this.get("currentPoint"),n=this.get("title"),a=n.spacing,o=n.style,s=n.text,l=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:m({text:s,x:i.x,y:i.y},o)}),u=l.getBBox();this.set("currentPoint",{x:i.x,y:u.maxY+a})},e.prototype.resetDraw=function(){var t=this.get("background"),i={x:0,y:0};if(t){var n=_o(t.padding);i.x=n[3],i.y=n[0]}this.set("currentPoint",i)},e}(Qt),Sl={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Ka={fill:lt.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:lt.fontFamily,fontWeight:"normal",lineHeight:12},Ml="navigation-arrow-right",Al="navigation-arrow-left",lv={right:90*Math.PI/180,left:(360-90)*Math.PI/180,up:0,down:180*Math.PI/180},EM=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get("animate")?i.animate({matrix:n},100):i.attr({matrix:n})}},t.onNavigationAfter=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndexg&&(g=F),v==="horizontal"?(y&&yu}if(s==="horizontal"){var T=this.get("maxRow")||1,L=v+(T===1?0:M),k=u-f-g.width-g.minX;this.pageHeight=L*T,this.pageWidth=k,S(l,function(O){var N=O.getBBox(),V=h||N.width;(b&&bw&&(w=N.width)}),C=w,w+=f,u&&(w=Math.min(u,w),C=Math.min(u,C)),this.pageWidth=w,this.pageHeight=c-Math.max(g.height,v+M);var P=Math.floor(this.pageHeight/(v+M));S(l,function(O,N){N!==0&&N%P===0&&(x+=1,y.x+=w,y.y=o),n.moveElementTo(O,y),O.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:w,height:v}}),y.y+=v+M}),this.totalPagesCnt=x,this.moveElementTo(p,{x:a+C/2-g.width/2-g.minX,y:c-g.height-g.minY})}this.pageHeight&&this.pageWidth&&i.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),s==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(x/this.get("maxRow")):this.totalPagesCnt=x,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(p),i.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,i,n,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=A(a.marker,"style",{}),u=l.size,c=u===void 0?12:u,h=gt(l,["size"]),f=this.drawArrow(s,o,Al,i==="horizontal"?"up":"left",c,h);f.on("click",this.onNavigationBack);var v=f.getBBox();o.x+=v.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:m({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},A(a.text,"style"))}),p=d.getBBox();o.x+=p.width+2;var g=this.drawArrow(s,o,Ml,i==="horizontal"?"down":"right",c,h);return g.on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var i=H({},Sl,this.get("pageNavigator")),n=i.marker.style,a=n.fill,o=n.opacity,s=n.inactiveFill,l=n.inactiveOpacity,u=this.currentPageIndex+"/"+this.totalPagesCnt,c=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),h=t?t.findById(this.getElementId(Al)):this.getElementByLocalId(Al),f=t?t.findById(this.getElementId(Ml)):this.getElementByLocalId(Ml);c.attr("text",u),h.attr("opacity",this.currentPageIndex===1?l:o),h.attr("fill",this.currentPageIndex===1?s:a),h.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),f.attr("opacity",this.currentPageIndex===this.totalPagesCnt?l:o),f.attr("fill",this.currentPageIndex===this.totalPagesCnt?s:a),f.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var v=h.getBBox().maxX+2;c.attr("x",v),v+=c.getBBox().width+2,this.updateArrowPath(f,{x:v,y:0})},e.prototype.drawArrow=function(t,i,n,a,o,s){var l=i.x,u=i.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:m({size:o,direction:a,path:[["M",l+o/2,u],["L",l,u+o],["L",l+o,u+o],["Z"]],cursor:"pointer"},s)});return c.attr("matrix",Si({x:l+o/2,y:u+o/2},lv[a])),c},e.prototype.updateArrowPath=function(t,i){var n=i.x,a=i.y,o=t.attr(),s=o.size,l=o.direction,u=Si({x:n+s/2,y:a+s/2},lv[l]);t.attr("path",[["M",n+s/2,a],["L",n,a+s],["L",n+s,a+s],["Z"]]),t.attr("matrix",u)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,i=t.currentPageIndex,n=t.pageWidth,a=t.pageHeight,o=this.get("layout"),s=o==="horizontal"?{x:0,y:a*(1-i)}:{x:n*(1-i),y:0};return bc(s)},e.prototype.applyItemStates=function(t,i){var n=this.getItemStates(t),a=n.length>0;if(a){var o=i.getChildren(),s=this.get("itemStates");S(o,function(l){var u=l.get("name"),c=u.split("-")[2],h=Nn(t,c,s);h&&(l.attr(h),c==="marker"&&!(l.get("isStroke")&&l.get("isFill"))&&(l.get("isStroke")&&l.attr("fill",null),l.get("isFill")&&l.attr("stroke",null)))})}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),i=this.get("maxItemWidth");return i?t&&(i=t<=i?t:i):t&&(i=t),i},e}(Jg),kM=1.4,uv=.4,LM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:lt.textColor,textBaseline:"middle",fontFamily:lt.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:lt.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,i){this.update({min:t,max:i})},e.prototype.setValue=function(t){var i=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:i,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var i=this;t.on("legend-handler-min:drag",function(n){var a=i.getValueByCanvasPoint(n.x,n.y),o=i.getCurrentValue(),s=o[1];sa&&(s=a),i.setValue([s,a])})},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var i=this,n=null;t.on("legend-track:dragstart",function(a){n={x:a.x,y:a.y}}),t.on("legend-track:drag",function(a){if(n){var o=i.getValueByCanvasPoint(n.x,n.y),s=i.getValueByCanvasPoint(a.x,a.y),l=i.getCurrentValue(),u=l[1]-l[0],c=i.getRange(),h=s-o;h<0?l[0]+h>c.min?i.setValue([l[0]+h,l[1]+h]):i.setValue([c.min,c.min+u]):h>0&&(h>0&&l[1]+ho&&(h=o),h0&&this.changeRailLength(a,s,n[s]-v)}},e.prototype.changeRailLength=function(t,i,n){var a=t.getBBox(),o;i==="height"?o=this.getRailPath(a.x,a.y,a.width,n):o=this.getRailPath(a.x,a.y,n,a.height),t.attr("path",o)},e.prototype.changeRailPosition=function(t,i,n){var a=t.getBBox(),o=this.getRailPath(i,n,a.width,a.height);t.attr("path",o)},e.prototype.fixedHorizontal=function(t,i,n,a){var o=this.get("label"),s=o.align,l=o.spacing,u=n.getBBox(),c=t.getBBox(),h=i.getBBox(),f=u.height;this.fitRailLength(c,h,u,n),u=n.getBBox(),s==="rail"?(t.attr({x:a.x,y:a.y+f/2}),this.changeRailPosition(n,a.x+c.width+l,a.y),i.attr({x:a.x+c.width+u.width+l*2,y:a.y+f/2})):s==="top"?(t.attr({x:a.x,y:a.y}),i.attr({x:a.x+u.width,y:a.y}),this.changeRailPosition(n,a.x,a.y+c.height+l)):(this.changeRailPosition(n,a.x,a.y),t.attr({x:a.x,y:a.y+u.height+l}),i.attr({x:a.x+u.width,y:a.y+u.height+l}))},e.prototype.fixedVertail=function(t,i,n,a){var o=this.get("label"),s=o.align,l=o.spacing,u=n.getBBox(),c=t.getBBox(),h=i.getBBox();if(this.fitRailLength(c,h,u,n),u=n.getBBox(),s==="rail")t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x,a.y+c.height+l),i.attr({x:a.x,y:a.y+c.height+u.height+l*2});else if(s==="right")t.attr({x:a.x+u.width+l,y:a.y}),this.changeRailPosition(n,a.x,a.y),i.attr({x:a.x+u.width+l,y:a.y+u.height});else{var f=Math.max(c.width,h.width);t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x+f+l,a.y),i.attr({x:a.x,y:a.y+u.height})}},e}(Jg),mr="g2-tooltip",xr="g2-tooltip-title",ca="g2-tooltip-list",Ds="g2-tooltip-list-item",Os="g2-tooltip-marker",Bs="g2-tooltip-value",ty="g2-tooltip-name",Tc="g2-tooltip-crosshair-x",Ec="g2-tooltip-crosshair-y";const IM=Object.freeze(Object.defineProperty({__proto__:null,CONTAINER_CLASS:mr,CROSSHAIR_X:Tc,CROSSHAIR_Y:Ec,LIST_CLASS:ca,LIST_ITEM_CLASS:Ds,MARKER_CLASS:Os,NAME_CLASS:ty,TITLE_CLASS:xr,VALUE_CLASS:Bs},Symbol.toStringTag,{value:"Module"}));var _e;const PM=(_e={},_e[""+mr]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:lt.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},_e[""+xr]={marginBottom:"4px"},_e[""+ca]={margin:"0px",listStyleType:"none",padding:"0px"},_e[""+Ds]={listStyleType:"none",marginBottom:"4px"},_e[""+Os]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},_e[""+Bs]={display:"inline-block",float:"right",marginLeft:"30px"},_e[""+Tc]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},_e[""+Ec]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},_e);function DM(r,e,t,i,n){var a={left:rn.x+n.width,top:en.y+n.height};return a}function OM(r,e,t,i,n,a){var o=r,s=e;switch(a){case"left":o=r-i-t,s=e-n/2;break;case"right":o=r+t,s=e-n/2;break;case"top":o=r-i/2,s=e-n-t;break;case"bottom":o=r-i/2,s=e+t;break;default:o=r+t,s=e-n-t;break}return{x:o,y:s}}function BM(r,e,t,i,n,a,o){var s=OM(r,e,t,i,n,a);if(o){var l=DM(s.x,s.y,i,n,o);a==="auto"?(l.right&&(s.x=Math.max(0,r-i-t)),l.top&&(s.y=Math.max(0,e-n-t))):a==="top"||a==="bottom"?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-i),a==="top"&&l.top&&(s.y=e+t),a==="bottom"&&l.bottom&&(s.y=e-n-t)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-n),a==="left"&&l.left&&(s.x=r+t),a==="right"&&l.right&&(s.x=r-i-t))}return s}function RM(r,e){var t=!1;return S(e,function(i){if(Vr(r,i))return t=!0,!1}),t}var NM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • + SimSun, "sans-serif"`,textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"};var US=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:lt.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:lt.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:lt.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var i=this.get("start"),n=this.get("end"),a=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:m({x1:i.x,y1:i.y,x2:n.x,y2:n.y},a)})},e.prototype.getLabelPoint=function(t,i,n){var a;return n==="start"?a=0:n==="center"?a=.5:K(n)&&n.indexOf("%")!==-1?a=parseInt(n,10)/100:rt(n)?a=n:a=1,(a>1||a<0)&&(a=1),{x:yi(t.x,i.x,a),y:yi(t.y,i.y,a)}},e.prototype.renderLabel=function(t){var i=this.get("text"),n=this.get("start"),a=this.get("end"),o=i.position,s=i.content,l=i.style,u=i.offsetX,c=i.offsetY,h=i.autoRotate,f=i.maxLength,v=i.autoEllipsis,d=i.ellipsisPosition,p=i.background,g=i.isVertical,y=g===void 0?!1:g,x=this.getLabelPoint(n,a,o),w=x.x+u,b=x.y+c,C={id:this.getElementId("line-text"),name:"annotation-line-text",x:w,y:b,content:s,style:l,maxLength:f,autoEllipsis:v,ellipsisPosition:d,background:p,isVertical:y};if(h){var M=[a.x-n.x,a.y-n.y];C.rotate=Math.atan2(M[1],M[0])}Ps(t,C)},e}(Qt),jS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:lt.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:lt.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var i=this.getLocation(),n=i.x,a=i.y,o=this.get("content"),s=this.get("style"),l=this.getElementId("text"),u=this.get("name")+"-text",c=this.get("maxLength"),h=this.get("autoEllipsis"),f=this.get("isVertical"),v=this.get("ellipsisPosition"),d=this.get("background"),p=this.get("rotate"),g={id:l,name:u,x:n,y:a,content:o,style:s,maxLength:c,autoEllipsis:h,isVertical:f,ellipsisPosition:v,background:d,rotate:p};Ps(t,g)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var i=this.getLocation(),n=i.x,a=i.y,o=this.get("rotate");Cc(t,n,a),Gg(t,o,n,a)}},e}(Qt),ZS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),i=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=ji(i,n,a),l=ji(i,n,o),u=o-a>Math.PI?1:0,c=[["M",s.x,s.y]];if(o-a===Math.PI*2){var h=ji(i,n,a+Math.PI);c.push(["A",n,n,0,u,1,h.x,h.y]),c.push(["A",n,n,0,u,1,l.x,l.y])}else c.push(["A",n,n,0,u,1,l.x,l.y]);return c},e.prototype.renderArc=function(t){var i=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:m({path:i},n)})},e}(Qt),QS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:lt.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var i=this.get("start"),n=this.get("end"),a=this.get("style"),o=sa({start:i,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:m({x:o.x,y:o.y,width:o.width,height:o.height},a)})},e}(Qt),KS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),i=this.get("end"),n=this.get("style"),a=sa({start:t,end:i}),o=this.get("src");return m({x:a.x,y:a.y,img:o,width:a.width,height:a.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(Qt),JS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:lt.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:lt.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:lt.fontFamily}}}})},e.prototype.renderInner=function(t){A(this.get("line"),"display")&&this.renderLine(t),A(this.get("text"),"display")&&this.renderText(t),A(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var i=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:i})},e.prototype.renderLine=function(t){var i=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:i})},e.prototype.renderText=function(t){var i=this.getShapeAttrs().text,n=i.x,a=i.y,o=i.text,s=gt(i,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,h=l.autoEllipsis,f=l.isVertival,v=l.ellipsisPosition,d={x:n,y:a,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:u,maxLength:c,autoEllipsis:h,isVertival:f,ellipsisPosition:v};Ps(t,d)},e.prototype.autoAdjust=function(t){var i=this.get("direction"),n=this.get("x"),a=this.get("y"),o=A(this.get("line"),"length",0),s=this.get("coordinateBBox"),l=t.getBBox(),u=l.minX,c=l.maxX,h=l.minY,f=l.maxY,v=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),p=t.findById(this.getElementId("line"));if(s&&v){var g=v.attr("x"),y=v.attr("y"),x=d.getCanvasBBox(),w=x.width,b=x.height,C=0,M=0;if(n+u<=s.minX)if(i==="leftward")C=1;else{var F=s.minX-(n+u);g=v.attr("x")+F}else if(n+c>=s.maxX)if(i==="rightward")C=-1;else{var F=n+c-s.maxX;g=v.attr("x")-F}if(C&&(p&&p.attr("path",[["M",0,0],["L",o*C,0]]),g=(o+2+w)*C),a+h<=s.minY)if(i==="upward")M=1;else{var F=s.minY-(a+h);y=v.attr("y")+F}else if(a+f>=s.maxY)if(i==="downward")M=-1;else{var F=a+f-s.maxY;y=v.attr("y")-F}M&&(p&&p.attr("path",[["M",0,0],["L",0,o*M]]),y=(o+2+b)*M),(g!==v.attr("x")||y!==v.attr("y"))&&Cc(v,g,y)}},e.prototype.getShapeAttrs=function(){var t=A(this.get("line"),"display"),i=A(this.get("point"),"style",{}),n=A(this.get("line"),"style",{}),a=A(this.get("text"),"style",{}),o=this.get("direction"),s=t?A(this.get("line"),"length",0):0,l=0,u=0,c="top",h="start";switch(o){case"upward":u=-1,c="bottom";break;case"downward":u=1,c="top";break;case"leftward":l=-1,h="end";break;case"rightward":l=1,h="start";break}return{point:m({x:0,y:0},i),line:m({path:[["M",0,0],["L",s*l,s*u]]},n),text:m({x:(s+2)*l,y:(s+2)*u,text:A(this.get("text"),"content",""),textBaseline:c,textAlign:h},a)}},e}(Qt),tM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:lt.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:lt.textColor,fontFamily:lt.fontFamily}}}})},e.prototype.renderInner=function(t){var i=A(this.get("region"),"style",{});A(this.get("text"),"style",{});var n=this.get("lineLength")||0,a=this.get("points");if(a.length){var o=OS(a),s=[];s.push(["M",a[0].x,o.minY-n]),a.forEach(function(u){s.push(["L",u.x,u.y])}),s.push(["L",a[a.length-1].x,a[a.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:m({path:s},i)});var l=m({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));Ps(t,l)}},e}(Qt),eM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var i=this,n=this.get("start"),a=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});S(this.get("shapes"),function(l,u){var c=l.get("type"),h=ye(l.attr());i.adjustShapeAttrs(h),i.addShape(o,{id:i.getElementId("shape-"+c+"-"+u),capture:!1,type:c,attrs:h})});var s=sa({start:n,end:a});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},e.prototype.adjustShapeAttrs=function(t){var i=this.get("color");t.fill&&(t.fill=t.fillStyle=i),t.stroke=t.strokeStyle=i},e}(Qt),rM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"shape",draw:Pr})},e.prototype.renderInner=function(t){var i=this.get("render");_(i)&&i(t)},e}(Qt),Mc=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{container:null,containerTpl:"
    ",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var i=this.getContainer(),n=t?"auto":"none";i.style.pointerEvents=n,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),i=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Is(i,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Sc(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),r.prototype.destroy.call(this)},e.prototype.init=function(){r.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(B(t)){t=this.createDom();var i=this.get("parent");K(i)&&(i=document.getElementById(i),this.set("parent",i)),i.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else K(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),i=this.get("defaultStyles");t?t=H({},i,t):t=i,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var i=this.getContainer();this.applyChildrenStyles(i,t);var n=this.get("containerClassName");if(n&&DS(i,n)){var a=t[n];Kt(i,a)}}},e.prototype.applyChildrenStyles=function(t,i){S(i,function(n,a){var o=t.getElementsByClassName(a);S(o,function(s){Kt(s,n)})})},e.prototype.applyStyle=function(t,i){var n=this.get("domStyles");Kt(i,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Br(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Vr(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}($g),iM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
    ',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),i=this.get("html");Sc(t);var n=_(i)?i(t):i;if(bp(n))t.appendChild(n);else if(K(n)||rt(n)){var a=Br(""+n);a&&t.appendChild(a)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),i=this.getLocation(),n=i.x,a=i.y,o=this.get("alignX"),s=this.get("alignY"),l=this.get("offsetX"),u=this.get("offsetY"),c=kw(t),h=Tw(t),f={x:n,y:a};o==="middle"?f.x-=Math.round(c/2):o==="right"&&(f.x-=Math.round(c)),s==="middle"?f.y-=Math.round(h/2):s==="bottom"&&(f.y-=Math.round(h)),l&&(f.x+=l),u&&(f.y+=u),Kt(t,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},e}(Mc);const nM=Object.freeze(Object.defineProperty({__proto__:null,Arc:ZS,DataMarker:JS,DataRegion:tM,Html:iM,Image:KS,Line:US,Region:QS,RegionFilter:eM,Shape:rM,Text:jS},Symbol.toStringTag,{value:"Module"}));function Nn(r,e,t){var i=e+"Style",n=null;return S(t,function(a,o){r[o]&&a[i]&&(n||(n={}),yt(n,a[i]))}),n}var Hg=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:lt.lineColor}},tickLine:{style:{lineWidth:1,stroke:lt.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:lt.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:lt.textColor,fontFamily:lt.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:lt.textColor,textBaseline:"middle",fontFamily:lt.fontFamily,textAlign:"center"},iconStyle:{fill:lt.descriptionIconFill,stroke:lt.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:lt.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,i){yt(t,i),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,i,n){t[i]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,i){return!!t[i]},e.prototype.getItemStates=function(t){var i=this.get("tickStates"),n=[];return S(i,function(a,o){t[o]&&n.push(o)}),n},e.prototype.clearItemsState=function(t){var i=this,n=this.getItemsByState(t);S(n,function(a){i.setItemState(a,t,!1)})},e.prototype.getItemsByState=function(t){var i=this,n=this.getItems();return qt(n,function(a){return i.hasState(a,t)})},e.prototype.getSidePoint=function(t,i){var n=this,a=n.getSideVector(i,t);return{x:t.x+a[0],y:t.y+a[1]}},e.prototype.getTextAnchor=function(t){var i;return Xt(t[0],0)?i="center":t[0]>0?i="start":t[0]<0&&(i="end"),i},e.prototype.getTextBaseline=function(t){var i;return Xt(t[1],0)?i="middle":t[1]>0?i="top":t[1]<0&&(i="bottom"),i},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var i=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:yt({path:i},n.style)})},e.prototype.getTickLineItems=function(t){var i=this,n=[],a=this.get("tickLine"),o=a.alignTick,s=a.length,l=1,u=t.length;return u>=2&&(l=t[1].value-t[0].value),S(t,function(c){var h=c.point;o||(h=i.getTickPoint(c.value-l/2));var f=i.getSidePoint(h,s);n.push({startPoint:h,tickValue:c.value,endPoint:f,tickId:c.id,id:"tickline-"+c.id})}),n},e.prototype.getSubTickLineItems=function(t){var i=[],n=this.get("subTickLine"),a=n.count,o=t.length;if(o>=2)for(var s=0;s0){var n=Vt(i);if(n>t.threshold){var a=Math.ceil(n/t.threshold),o=i.filter(function(s,l){return l%a===0});this.set("ticks",o),this.set("originalTicks",i)}}},e.prototype.getLabelAttrs=function(t,i,n){var a=this.get("label"),o=a.offset,s=a.offsetX,l=a.offsetY,u=a.rotate,c=a.formatter,h=this.getSidePoint(t.point,o),f=this.getSideVector(o,h),v=c?c(t.name,t,i):t.name,d=a.style;d=_(d)?A(this.get("theme"),["label","style"],{}):d;var p=yt({x:h.x+s,y:h.y+l,text:v,textAlign:this.getTextAnchor(f),textBaseline:this.getTextBaseline(f)},d);return u&&(p.matrix=Si(h,u)),p},e.prototype.drawLabels=function(t){var i=this,n=this.get("ticks"),a=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});S(n,function(f,v){i.addShape(a,{type:"text",name:"axis-label",id:i.getElementId("label-"+f.id),attrs:i.getLabelAttrs(f,v,n),delegateObject:{tick:f,item:f,index:v}})}),this.processOverlap(a);var o=a.getChildren(),s=A(this.get("theme"),["label","style"],{}),l=this.get("label"),u=l.style,c=l.formatter;if(_(u)){var h=o.map(function(f){return A(f.get("delegateObject"),"tick")});S(o,function(f,v){var d=f.get("delegateObject").tick,p=c?c(d.name,d,v):d.name,g=yt({},s,u(p,v,h));f.attr(g)})}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),i=t.style,n=t.position,a=t.offset,o=t.spacing,s=o===void 0?0:o,l=t.autoRotate,u=i.fontSize,c=.5;n==="start"?c=0:n==="end"&&(c=1);var h=this.getTickPoint(c),f=this.getSidePoint(h,a||s+u/2),v=yt({x:f.x,y:f.y,text:t.text},i),d=t.rotate,p=d;if(B(d)&&l){var g=this.getAxisVector(h),y=[1,0];p=lc(g,y,!0)}if(p){var x=Si(f,p);v.matrix=x}return v},e.prototype.drawTitle=function(t){var i,n=this.getTitleAttrs(),a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});!((i=this.get("title"))===null||i===void 0)&&i.description&&this.drawDescriptionIcon(t,a,n.matrix)},e.prototype.drawDescriptionIcon=function(t,i,n){var a=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),o=i.getBBox(),s=o.maxX,l=o.maxY,u=o.height,c=this.get("title").iconStyle,h=4,f=u/2,v=f/6,d=s+h,p=l-u/2,g=[d+f,p-f],y=g[0],x=g[1],w=[y+f,x+f],b=w[0],C=w[1],M=[y,C+f],F=M[0],T=M[1],L=[d,x+f],k=L[0],I=L[1],O=[d+f,p-u/4],N=O[0],Y=O[1],q=[N,Y+v],D=q[0],z=q[1],X=[D,z+v],$=X[0],V=X[1],W=[$,V+f*3/4],et=W[0],at=W[1];this.addShape(a,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:m({path:[["M",y,x],["A",f,f,0,0,1,b,C],["A",f,f,0,0,1,F,T],["A",f,f,0,0,1,k,I],["A",f,f,0,0,1,y,x],["M",N,Y],["L",D,z],["M",$,V],["L",et,at]],lineWidth:v,matrix:n},c)}),this.addShape(a,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:d,y:p-u/2,width:u,height:u,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,i){var n=this.getItemStates(t);if(n.length){var a=this.get("tickStates"),o=this.getElementId("label-"+t.id),s=i.findById(o);if(s){var l=Nn(t,"label",a);l&&s.attr(l)}var u=this.getElementId("tickline-"+t.id),c=i.findById(u);if(c){var h=Nn(t,"tickLine",a);h&&c.attr(h)}}},e.prototype.updateTickStates=function(t){var i=this.getItemStates(t),n=this.get("tickStates"),a=this.get("label"),o=this.getElementByLocalId("label-"+t.id),s=this.get("tickLine"),l=this.getElementByLocalId("tickline-"+t.id);if(i.length){if(o){var u=Nn(t,"label",n);u&&o.attr(u)}if(l){var c=Nn(t,"tickLine",n);c&&l.attr(c)}}else o&&o.attr(a.style),l&&l.attr(s.style)},e}(Qt);function Ac(r,e,t,i){var n=e.getChildren(),a=!1;return S(n,function(o){var s=qn(r,o,t,i);a=a||s}),a}function aM(){return Xg}function oM(r,e,t){return Ac(r,e,t,"head")}function Xg(r,e,t){return Ac(r,e,t,"tail")}function sM(r,e,t){return Ac(r,e,t,"middle")}const lM=Object.freeze(Object.defineProperty({__proto__:null,ellipsisHead:oM,ellipsisMiddle:sM,ellipsisTail:Xg,getDefault:aM},Symbol.toStringTag,{value:"Module"}));function uM(r){var e=r.attr("matrix");return e&&e[0]!==1}function Wg(r){var e=uM(r)?IS(r.attr("matrix")):0;return e%360}function xu(r,e,t,i){var n=!1,a=Wg(e),o=Math.abs(r?t.attr("y")-e.attr("y"):t.attr("x")-e.attr("x")),s=(r?t.attr("y")>e.attr("y"):t.attr("x")>e.attr("x"))?e.getBBox():t.getBBox();if(r){var l=Math.abs(Math.cos(a));qo(l,0,Math.PI/180)?n=s.width+i>o:n=s.height/l+i>o}else{var l=Math.abs(Math.sin(a));qo(l,0,Math.PI/180)?n=s.width+i>o:n=s.height/l+i>o}return n}function la(r,e,t,i){var n=(i==null?void 0:i.minGap)||0,a=e.getChildren().slice().filter(function(v){return v.get("visible")});if(!a.length)return!1;var o=!1;t&&a.reverse();for(var s=a.length,l=a[0],u=l,c=1;c1){f=Math.ceil(f);for(var p=0;p2){var o=n[0],s=n[n.length-1];o.get("visible")||(o.show(),la(r,e,!1,i)&&(a=!0)),s.get("visible")||(s.show(),la(r,e,!0,i)&&(a=!0))}return a}const pM=Object.freeze(Object.defineProperty({__proto__:null,equidistance:qg,equidistanceWithReverseBoth:dM,getDefault:cM,reserveBoth:vM,reserveFirst:hM,reserveLast:fM},Symbol.toStringTag,{value:"Module"}));function gM(r,e){S(r,function(t){var i=t.attr("x"),n=t.attr("y"),a=Si({x:i,y:n},e);t.attr("matrix",a)})}function Ug(r,e,t,i){var n=e.getChildren();if(!n.length||!r&&n.length<2)return!1;var a=mu(n),o=!1;if(r)o=!!t&&a>t;else{var s=Math.abs(n[1].attr("x")-n[0].attr("x"));o=a>s}if(o){var l=i(t,a);gM(n,l)}return o}function yM(){return jg}function jg(r,e,t,i){return Ug(r,e,t,function(){return rt(i)?i:r?lt.verticalAxisRotate:lt.horizontalAxisRotate})}function mM(r,e,t){return Ug(r,e,t,function(i,n){if(!i)return r?lt.verticalAxisRotate:lt.horizontalAxisRotate;if(r)return-Math.acos(i/n);var a=0;return i>n?a=Math.PI/4:(a=Math.asin(i/n),a>Math.PI/4&&(a=Math.PI/4)),a})}const xM=Object.freeze(Object.defineProperty({__proto__:null,fixedAngle:jg,getDefault:yM,unfixedAngle:mM},Symbol.toStringTag,{value:"Module"})),Zg=Object.freeze(Object.defineProperty({__proto__:null,autoEllipsis:lM,autoHide:pM,autoRotate:xM},Symbol.toStringTag,{value:"Module"}));var wM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),i=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",i.x,i.y]),n},e.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),i=this.get("end"),n=r.prototype.getInnerLayoutBBox.call(this),a=Math.min(t.x,i.x,n.x),o=Math.min(t.y,i.y,n.y),s=Math.max(t.x,i.x,n.maxX),l=Math.max(t.y,i.y,n.maxY);return{x:a,y:o,minX:a,minY:o,maxX:s,maxY:l,width:s-a,height:l-o}},e.prototype.isVertical=function(){var t=this.get("start"),i=this.get("end");return Xt(t.x,i.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),i=this.get("end");return Xt(t.y,i.y)},e.prototype.getTickPoint=function(t){var i=this,n=i.get("start"),a=i.get("end"),o=a.x-n.x,s=a.y-n.y;return{x:n.x+o*t,y:n.y+s*t}},e.prototype.getSideVector=function(t){var i=this.getAxisVector(),n=vp([0,0],i),a=this.get("verticalFactor"),o=[n[1],n[0]*-1];return re([0,0],o,t*a)},e.prototype.getAxisVector=function(){var t=this.get("start"),i=this.get("end");return[i.x-t.x,i.y-t.y]},e.prototype.processOverlap=function(t){var i=this,n=this.isVertical(),a=this.isHorizontal();if(!(!n&&!a)){var o=this.get("label"),s=this.get("title"),l=this.get("verticalLimitLength"),u=o.offset,c=l,h=0,f=0;s&&(h=s.style.fontSize,f=s.spacing),c&&(c=c-u-f-h);var v=this.get("overlapOrder");if(S(v,function(g){o[g]&&i.canProcessOverlap(g)&&i.autoProcessOverlap(g,o[g],t,c)}),s&&B(s.offset)){var d=t.getCanvasBBox(),p=n?d.width:d.height;s.offset=u+p+f+h/2}}},e.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?B(i.rotate):!0},e.prototype.autoProcessOverlap=function(t,i,n,a){var o=this,s=this.isVertical(),l=!1,u=Zg[t];if(i===!0)this.get("label"),l=u.getDefault()(s,n,a);else if(_(i))l=i(s,n,a);else if(mt(i)){var c=i;u[c.type]&&(l=u[c.type](s,n,a,c.cfg))}else u[i]&&(l=u[i](s,n,a));if(t==="autoRotate"){if(l){var h=n.getChildren(),f=this.get("verticalFactor");S(h,function(d){var p=d.attr("textAlign");if(p==="center"){var g=f>0?"end":"start";d.attr("textAlign",g)}})}}else if(t==="autoHide"){var v=n.getChildren().slice(0);S(v,function(d){d.get("visible")||(o.get("isRegister")&&o.unregisterElement(d),d.remove())})}},e}(Hg),bM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},e.prototype.getLinePath=function(){var t=this.get("center"),i=t.x,n=t.y,a=this.get("radius"),o=a,s=this.get("startAngle"),l=this.get("endAngle"),u=[];if(Math.abs(l-s)===Math.PI*2)u=[["M",i,n-o],["A",a,o,0,1,1,i,n+o],["A",a,o,0,1,1,i,n-o],["Z"]];else{var c=this.getCirclePoint(s),h=this.getCirclePoint(l),f=Math.abs(l-s)>Math.PI?1:0,v=s>l?0:1;u=[["M",i,n],["L",c.x,c.y],["A",a,o,0,f,v,h.x,h.y],["L",i,n]]}return u},e.prototype.getTickPoint=function(t){var i=this.get("startAngle"),n=this.get("endAngle"),a=i+(n-i)*t;return this.getCirclePoint(a)},e.prototype.getSideVector=function(t,i){var n=this.get("center"),a=[i.x-n.x,i.y-n.y],o=this.get("verticalFactor"),s=Hi(a);return re(a,a,o*t/s),a},e.prototype.getAxisVector=function(t){var i=this.get("center"),n=[t.x-i.x,t.y-i.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,i){var n=this.get("center");return i=i||this.get("radius"),{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},e.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?B(i.rotate):!0},e.prototype.processOverlap=function(t){var i=this,n=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=n.offset,l=o,u=0,c=0;a&&(u=a.style.fontSize,c=a.spacing),l&&(l=l-s-c-u);var h=this.get("overlapOrder");if(S(h,function(v){n[v]&&i.canProcessOverlap(v)&&i.autoProcessOverlap(v,n[v],t,l)}),a&&B(a.offset)){var f=t.getCanvasBBox().height;a.offset=s+f+c+u/2}},e.prototype.autoProcessOverlap=function(t,i,n,a){var o=this,s=!1,l=Zg[t];if(a>0)if(i===!0)s=l.getDefault()(!1,n,a);else if(_(i))s=i(!1,n,a);else if(mt(i)){var u=i;l[u.type]&&(s=l[u.type](!1,n,a,u.cfg))}else l[i]&&(s=l[i](!1,n,a));if(t==="autoRotate"){if(s){var c=n.getChildren(),h=this.get("verticalFactor");S(c,function(v){var d=v.attr("textAlign");if(d==="center"){var p=h>0?"end":"start";v.attr("textAlign",p)}})}}else if(t==="autoHide"){var f=n.getChildren().slice(0);S(f,function(v){v.get("visible")||(o.get("isRegister")&&o.unregisterElement(v),v.remove())})}},e}(Hg),Fc=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:lt.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:lt.textColor,textAlign:"center",textBaseline:"middle",fontFamily:lt.fontFamily}},textBackground:{padding:5,style:{stroke:lt.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var i=this.get("text"),n=i.style,a=i.autoRotate,o=i.content;if(!B(o)){var s=this.getTextPoint(),l=null;if(a){var u=this.getRotateAngle();l=Si(s,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:m(m(m({},s),{text:o,matrix:l}),n)})}},e.prototype.renderLine=function(t){var i=this.getLinePath(),n=this.get("line"),a=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:m({path:i},a)})},e.prototype.renderBackground=function(t){var i=this.getElementId("text"),n=t.findById(i),a=this.get("textBackground");if(a&&n){var o=n.getBBox(),s=_o(a.padding),l=a.style,u=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:m({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:n.attr("matrix")},l)});u.toBack()}},e}(Qt),Qg=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text").position,o=Math.atan2(n.y-i.y,n.x-i.x),s=a==="start"?o-Math.PI/2:o+Math.PI/2;return s},e.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return Yg(i,n,o,s)},e.prototype.getLinePath=function(){var t=this.getLocation(),i=t.start,n=t.end;return[["M",i.x,i.y],["L",n.x,n.y]]},e}(Fc),CM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.startAngle,n=t.endAngle,a=this.get("text").position,o=a==="start"?i+Math.PI/2:n-Math.PI/2;return o},e.prototype.getTextPoint=function(){var t=this.get("text"),i=t.position,n=t.offset,a=this.getLocation(),o=a.center,s=a.radius,l=a.startAngle,u=a.endAngle,c=i==="start"?l:u,h=this.getRotateAngle()-Math.PI,f=ji(o,s,c),v=Math.cos(h)*n,d=Math.sin(h)*n;return{x:f.x+v,y:f.y+d}},e.prototype.getLinePath=function(){var t=this.getLocation(),i=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=null;if(o-a===Math.PI*2){var l=i.x,u=i.y;s=[["M",l,u-n],["A",n,n,0,1,1,l,u+n],["A",n,n,0,1,1,l,u-n],["Z"]]}else{var c=ji(i,n,a),h=ji(i,n,o),f=Math.abs(o-a)>Math.PI?1:0,v=a>o?0:1;s=[["M",c.x,c.y],["A",n,n,0,f,v,h.x,h.y]]}return s},e}(Fc),ua="g2-crosshair",wu=ua+"-line",bu=ua+"-text",En;const SM=(En={},En[""+ua]={position:"relative"},En[""+wu]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},En[""+bu]={position:"absolute",color:lt.textColor,fontFamily:lt.fontFamily},En);var MM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
    ',crosshairTpl:'
    ',textTpl:'{content}',domStyles:null,containerClassName:ua,defaultStyles:SM,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),i=this.get("crosshairTpl"),n=Br(i);t.appendChild(n),this.applyStyle(wu,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return Yg(i,n,o,s)},e.prototype.resetText=function(){var t=this.get("text"),i=this.get("textEl");if(t){var n=t.content;if(!i){var a=this.getContainer(),o=dp(this.get("textTpl"),t);i=Br(o),a.appendChild(i),this.applyStyle(bu,i),this.set("textEl",i)}i.innerHTML=n}else i&&i.remove()},e.prototype.isVertical=function(t,i){return t.x===i.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var i=this.get("start"),n=this.get("end"),a=Math.min(i.x,n.x),o=Math.min(i.y,n.y);this.isVertical(i,n)?Kt(t,{width:"1px",height:se(Math.abs(n.y-i.y))}):Kt(t,{height:"1px",width:se(Math.abs(n.x-i.x))}),Kt(t,{top:se(o),left:se(a)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var i=this.get("text").align,n=t.clientWidth,a=this.getTextPoint();switch(i){case"center":a.x=a.x-n/2;break;case"right":a.x=a.x-n}Kt(t,{top:se(a.y),left:se(a.x)})}},e.prototype.updateInner=function(t){Vr(t,"text")&&this.resetText(),r.prototype.updateInner.call(this,t)},e}(Mc);const sv=Object.freeze(Object.defineProperty({__proto__:null,Base:Fc,Circle:CM,Html:MM,Line:Qg},Symbol.toStringTag,{value:"Module"}));var Kg=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:lt.lineColor}}}})},e.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,i){var n=this.getGridPath(t),a=i.slice(0).reverse(),o=this.getGridPath(a,!0),s=this.get("closed");return s?n=n.concat(o):(o[0][0]="L",n=n.concat(o),n.push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var i=this,n=this.get("line"),a=this.get("items"),o=this.get("alternateColor"),s=null;S(a,function(l,u){var c=l.id||u;if(n){var h=i.getPathStyle();h=_(h)?h(l,u,a):h;var f=i.getElementId("line-"+c),v=i.getGridPath(l.points);i.addShape(t,{type:"path",name:"grid-line",id:f,attrs:yt({path:v},h)})}if(o&&u>0){var d=i.getElementId("region-"+c),p=u%2===0;if(K(o))p&&i.drawAlternateRegion(d,t,s.points,l.points,o);else{var g=p?o[1]:o[0];i.drawAlternateRegion(d,t,s.points,l.points,g)}}s=l})},e.prototype.drawAlternateRegion=function(t,i,n,a,o){var s=this.getAlternatePath(n,a);this.addShape(i,{type:"path",id:t,name:"grid-region",attrs:{path:s,fill:o}})},e}(Qt);function AM(r,e,t,i){var n=t-r,a=i-e;return Math.sqrt(n*n+a*a)}var FM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,i){var n=this.getLineType(),a=this.get("closed"),o=[];if(t.length)if(n==="circle"){var s=this.get("center"),l=t[0],u=AM(s.x,s.y,l.x,l.y),c=i?0:1;a?(o.push(["M",s.x,s.y-u]),o.push(["A",u,u,0,0,c,s.x,s.y+u]),o.push(["A",u,u,0,0,c,s.x,s.y-u]),o.push(["Z"])):S(t,function(h,f){f===0?o.push(["M",h.x,h.y]):o.push(["A",u,u,0,0,c,h.x,h.y])})}else S(t,function(h,f){f===0?o.push(["M",h.x,h.y]):o.push(["L",h.x,h.y])}),a&&o.push(["Z"]);return o},e}(Kg),TM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"line"})},e.prototype.getGridPath=function(t){var i=[];return S(t,function(n,a){a===0?i.push(["M",n.x,n.y]):i.push(["L",n.x,n.y])}),i},e}(Kg),Jg=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var t=r.prototype.getLayoutBBox.call(this),i=this.get("maxWidth"),n=this.get("maxHeight"),a=t.width,o=t.height;return i&&(a=Math.min(a,i)),n&&(o=Math.min(o,n)),Is(t.minX,t.minY,a,o)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),i=this.get("y"),n=this.get("offsetX"),a=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:i+a})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var i=this.get("background"),n=t.getBBox(),a=_o(i.padding),o=m({x:0,y:0,width:n.width+a[1]+a[3],height:n.height+a[0]+a[2]},i.style),s=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});s.toBack()},e.prototype.drawTitle=function(t){var i=this.get("currentPoint"),n=this.get("title"),a=n.spacing,o=n.style,s=n.text,l=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:m({text:s,x:i.x,y:i.y},o)}),u=l.getBBox();this.set("currentPoint",{x:i.x,y:u.maxY+a})},e.prototype.resetDraw=function(){var t=this.get("background"),i={x:0,y:0};if(t){var n=_o(t.padding);i.x=n[3],i.y=n[0]}this.set("currentPoint",i)},e}(Qt),Sl={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Ka={fill:lt.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:lt.fontFamily,fontWeight:"normal",lineHeight:12},Ml="navigation-arrow-right",Al="navigation-arrow-left",lv={right:90*Math.PI/180,left:(360-90)*Math.PI/180,up:0,down:180*Math.PI/180},EM=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get("animate")?i.animate({matrix:n},100):i.attr({matrix:n})}},t.onNavigationAfter=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndexg&&(g=F),v==="horizontal"?(y&&yu}if(s==="horizontal"){var T=this.get("maxRow")||1,L=v+(T===1?0:M),k=u-f-g.width-g.minX;this.pageHeight=L*T,this.pageWidth=k,S(l,function(O){var N=O.getBBox(),Y=h||N.width;(w&&wb&&(b=N.width)}),C=b,b+=f,u&&(b=Math.min(u,b),C=Math.min(u,C)),this.pageWidth=b,this.pageHeight=c-Math.max(g.height,v+M);var I=Math.floor(this.pageHeight/(v+M));S(l,function(O,N){N!==0&&N%I===0&&(x+=1,y.x+=b,y.y=o),n.moveElementTo(O,y),O.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:b,height:v}}),y.y+=v+M}),this.totalPagesCnt=x,this.moveElementTo(p,{x:a+C/2-g.width/2-g.minX,y:c-g.height-g.minY})}this.pageHeight&&this.pageWidth&&i.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),s==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(x/this.get("maxRow")):this.totalPagesCnt=x,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(p),i.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,i,n,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=A(a.marker,"style",{}),u=l.size,c=u===void 0?12:u,h=gt(l,["size"]),f=this.drawArrow(s,o,Al,i==="horizontal"?"up":"left",c,h);f.on("click",this.onNavigationBack);var v=f.getBBox();o.x+=v.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:m({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},A(a.text,"style"))}),p=d.getBBox();o.x+=p.width+2;var g=this.drawArrow(s,o,Ml,i==="horizontal"?"down":"right",c,h);return g.on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var i=H({},Sl,this.get("pageNavigator")),n=i.marker.style,a=n.fill,o=n.opacity,s=n.inactiveFill,l=n.inactiveOpacity,u=this.currentPageIndex+"/"+this.totalPagesCnt,c=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),h=t?t.findById(this.getElementId(Al)):this.getElementByLocalId(Al),f=t?t.findById(this.getElementId(Ml)):this.getElementByLocalId(Ml);c.attr("text",u),h.attr("opacity",this.currentPageIndex===1?l:o),h.attr("fill",this.currentPageIndex===1?s:a),h.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),f.attr("opacity",this.currentPageIndex===this.totalPagesCnt?l:o),f.attr("fill",this.currentPageIndex===this.totalPagesCnt?s:a),f.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var v=h.getBBox().maxX+2;c.attr("x",v),v+=c.getBBox().width+2,this.updateArrowPath(f,{x:v,y:0})},e.prototype.drawArrow=function(t,i,n,a,o,s){var l=i.x,u=i.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:m({size:o,direction:a,path:[["M",l+o/2,u],["L",l,u+o],["L",l+o,u+o],["Z"]],cursor:"pointer"},s)});return c.attr("matrix",Si({x:l+o/2,y:u+o/2},lv[a])),c},e.prototype.updateArrowPath=function(t,i){var n=i.x,a=i.y,o=t.attr(),s=o.size,l=o.direction,u=Si({x:n+s/2,y:a+s/2},lv[l]);t.attr("path",[["M",n+s/2,a],["L",n,a+s],["L",n+s,a+s],["Z"]]),t.attr("matrix",u)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,i=t.currentPageIndex,n=t.pageWidth,a=t.pageHeight,o=this.get("layout"),s=o==="horizontal"?{x:0,y:a*(1-i)}:{x:n*(1-i),y:0};return bc(s)},e.prototype.applyItemStates=function(t,i){var n=this.getItemStates(t),a=n.length>0;if(a){var o=i.getChildren(),s=this.get("itemStates");S(o,function(l){var u=l.get("name"),c=u.split("-")[2],h=Nn(t,c,s);h&&(l.attr(h),c==="marker"&&!(l.get("isStroke")&&l.get("isFill"))&&(l.get("isStroke")&&l.attr("fill",null),l.get("isFill")&&l.attr("stroke",null)))})}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),i=this.get("maxItemWidth");return i?t&&(i=t<=i?t:i):t&&(i=t),i},e}(Jg),kM=1.4,uv=.4,LM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:lt.textColor,textBaseline:"middle",fontFamily:lt.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:lt.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,i){this.update({min:t,max:i})},e.prototype.setValue=function(t){var i=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:i,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var i=this;t.on("legend-handler-min:drag",function(n){var a=i.getValueByCanvasPoint(n.x,n.y),o=i.getCurrentValue(),s=o[1];sa&&(s=a),i.setValue([s,a])})},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var i=this,n=null;t.on("legend-track:dragstart",function(a){n={x:a.x,y:a.y}}),t.on("legend-track:drag",function(a){if(n){var o=i.getValueByCanvasPoint(n.x,n.y),s=i.getValueByCanvasPoint(a.x,a.y),l=i.getCurrentValue(),u=l[1]-l[0],c=i.getRange(),h=s-o;h<0?l[0]+h>c.min?i.setValue([l[0]+h,l[1]+h]):i.setValue([c.min,c.min+u]):h>0&&(h>0&&l[1]+ho&&(h=o),h0&&this.changeRailLength(a,s,n[s]-v)}},e.prototype.changeRailLength=function(t,i,n){var a=t.getBBox(),o;i==="height"?o=this.getRailPath(a.x,a.y,a.width,n):o=this.getRailPath(a.x,a.y,n,a.height),t.attr("path",o)},e.prototype.changeRailPosition=function(t,i,n){var a=t.getBBox(),o=this.getRailPath(i,n,a.width,a.height);t.attr("path",o)},e.prototype.fixedHorizontal=function(t,i,n,a){var o=this.get("label"),s=o.align,l=o.spacing,u=n.getBBox(),c=t.getBBox(),h=i.getBBox(),f=u.height;this.fitRailLength(c,h,u,n),u=n.getBBox(),s==="rail"?(t.attr({x:a.x,y:a.y+f/2}),this.changeRailPosition(n,a.x+c.width+l,a.y),i.attr({x:a.x+c.width+u.width+l*2,y:a.y+f/2})):s==="top"?(t.attr({x:a.x,y:a.y}),i.attr({x:a.x+u.width,y:a.y}),this.changeRailPosition(n,a.x,a.y+c.height+l)):(this.changeRailPosition(n,a.x,a.y),t.attr({x:a.x,y:a.y+u.height+l}),i.attr({x:a.x+u.width,y:a.y+u.height+l}))},e.prototype.fixedVertail=function(t,i,n,a){var o=this.get("label"),s=o.align,l=o.spacing,u=n.getBBox(),c=t.getBBox(),h=i.getBBox();if(this.fitRailLength(c,h,u,n),u=n.getBBox(),s==="rail")t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x,a.y+c.height+l),i.attr({x:a.x,y:a.y+c.height+u.height+l*2});else if(s==="right")t.attr({x:a.x+u.width+l,y:a.y}),this.changeRailPosition(n,a.x,a.y),i.attr({x:a.x+u.width+l,y:a.y+u.height});else{var f=Math.max(c.width,h.width);t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x+f+l,a.y),i.attr({x:a.x,y:a.y+u.height})}},e}(Jg),mr="g2-tooltip",xr="g2-tooltip-title",ca="g2-tooltip-list",Ds="g2-tooltip-list-item",Os="g2-tooltip-marker",Bs="g2-tooltip-value",ty="g2-tooltip-name",Tc="g2-tooltip-crosshair-x",Ec="g2-tooltip-crosshair-y";const IM=Object.freeze(Object.defineProperty({__proto__:null,CONTAINER_CLASS:mr,CROSSHAIR_X:Tc,CROSSHAIR_Y:Ec,LIST_CLASS:ca,LIST_ITEM_CLASS:Ds,MARKER_CLASS:Os,NAME_CLASS:ty,TITLE_CLASS:xr,VALUE_CLASS:Bs},Symbol.toStringTag,{value:"Module"}));var _e;const PM=(_e={},_e[""+mr]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:lt.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},_e[""+xr]={marginBottom:"4px"},_e[""+ca]={margin:"0px",listStyleType:"none",padding:"0px"},_e[""+Ds]={listStyleType:"none",marginBottom:"4px"},_e[""+Os]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},_e[""+Bs]={display:"inline-block",float:"right",marginLeft:"30px"},_e[""+Tc]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},_e[""+Ec]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},_e);function DM(r,e,t,i,n){var a={left:rn.x+n.width,top:en.y+n.height};return a}function OM(r,e,t,i,n,a){var o=r,s=e;switch(a){case"left":o=r-i-t,s=e-n/2;break;case"right":o=r+t,s=e-n/2;break;case"top":o=r-i/2,s=e-n-t;break;case"bottom":o=r-i/2,s=e+t;break;default:o=r+t,s=e-n-t;break}return{x:o,y:s}}function BM(r,e,t,i,n,a,o){var s=OM(r,e,t,i,n,a);if(o){var l=DM(s.x,s.y,i,n,o);a==="auto"?(l.right&&(s.x=Math.max(0,r-i-t)),l.top&&(s.y=Math.max(0,e-n-t))):a==="top"||a==="bottom"?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-i),a==="top"&&l.top&&(s.y=e+t),a==="bottom"&&l.bottom&&(s.y=e-n-t)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-n),a==="left"&&l.left&&(s.x=r+t),a==="right"&&l.right&&(s.x=r-i-t))}return s}function RM(r,e){var t=!1;return S(e,function(i){if(Vr(r,i))return t=!0,!1}),t}var NM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
      ',itemTpl:'
    • {name}: {value} -
    • `,xCrosshairTpl:'
      ',yCrosshairTpl:'
      ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:mr,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:PM})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!0),Kt(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!1),Kt(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var i=t?"":"none",n=this.get("xCrosshairDom"),a=this.get("yCrosshairDom");n&&Kt(n,{display:i}),a&&Kt(a,{display:i})},e.prototype.initContainer=function(){if(r.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(RM(t,["title","showTitle"])&&this.resetTitle(),Vr(t,"items")&&this.renderItems()),r.prototype.updateInner.call(this,t)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){r.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t=this.get("x"),i=this.get("y"),n=this.get("offset"),a=this.getOffset(),o=a.offsetX,s=a.offsetY,l=this.get("position"),u=this.get("region"),c=this.getContainer(),h=this.getBBox(),f=h.width,v=h.height,d;u&&(d=sa(u));var p=BM(t,i,n,f,v,l,d);Kt(c,{left:se(p.x+o),top:se(p.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),i=this.get("parent"),n=this.get("container");n&&n.parentNode===i?i.replaceChild(t,n):i.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,i=this.get("customContent");if(i){var n=i(this.get("title"),this.get("items"));bp(n)?t=n:t=Br(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),i=t.getElementsByClassName(xr)[0],n=t.getElementsByClassName(ca)[0];this.set("titleDom",i),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title"),i=this.get("showTitle");i&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var i=this.get("titleDom");i&&(i.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),i=this.get("crosshairs");if(!t||!i)this.clearCrosshairs();else{var n=sa(t),a=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");i==="x"?(this.resetCrosshair("x",n),o&&(o.remove(),this.set("yCrosshairDom",null))):i==="y"?(this.resetCrosshair("y",n),a&&(a.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}},e.prototype.resetCrosshair=function(t,i){var n=this.checkCrosshair(t),a=this.get(t);t==="x"?Kt(n,{left:se(a),top:se(i.y),height:se(i.height)}):Kt(n,{top:se(a),left:se(i.x),width:se(i.width)})},e.prototype.checkCrosshair=function(t){var i=t+"CrosshairDom",n=t+"CrosshairTpl",a="CROSSHAIR_"+t.toUpperCase(),o=IM[a],s=this.get(i),l=this.get("parent");return s||(s=Br(this.get(n)),this.applyStyle(o,s),l.appendChild(s),this.set(i,s)),s},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),i=this.get("itemTpl"),n=this.get("listDom");n&&(S(t,function(a){var o=Nr.toCSSGradient(a.color),s=m(m({},a),{color:o}),l=dp(i,s),u=Br(l);n.appendChild(u)}),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Sc(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");t&&t.remove(),i&&i.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(Mc),zM={opacity:0},GM={stroke:"#C5C5C5",strokeOpacity:.85},VM={fill:"#CACED4",opacity:.85};function YM(r){return Mt(r,function(e,t){var i=t===0?"M":"L",n=e[0],a=e[1];return[i,n,a]})}function ey(r){return YM(r)}function $M(r){if(r.length<=2)return ey(r);var e=[];S(r,function(o){Pt(o,e.slice(e.length-2))||e.push(o[0],o[1])});var t=Jb(e,!1),i=me(r),n=i[0],a=i[1];return t.unshift(["M",n,a]),t}function HM(r,e,t,i){i===void 0&&(i=!0);var n=new ks({values:r}),a=new Ts({values:Mt(r,function(s,l){return l})}),o=Mt(r,function(s,l){return[a.scale(l)*e,t-n.scale(s)*t]});return i?$M(o):ey(o)}function XM(r,e){var t=new ks({values:r}),i=t.max<0?t.max:Math.max(0,t.min);return e-t.scale(i)*e}function WM(r,e,t,i){var n=Bo(r),a=XM(i,t);return n.push(["L",e,a]),n.push(["L",0,a]),n.push(["Z"]),n}var _M=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:zM,lineStyle:GM,areaStyle:VM})},e.prototype.renderInner=function(t){var i=this.cfg,n=i.width,a=i.height,o=i.data,s=i.smooth,l=i.isArea,u=i.backgroundStyle,c=i.lineStyle,h=i.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:m({x:0,y:0,width:n,height:a},u)});var f=HM(o,n,a,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:m({path:f},c)}),l){var v=WM(f,n,a,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:m({path:v},h)})}},e.prototype.applyOffset=function(){var t=this.cfg,i=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:i,y:n})},e}(Qt),ry={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},cv=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"handler",x:0,y:0,width:10,height:24,style:ry})},e.prototype.renderInner=function(t){var i=this.cfg,n=i.width,a=i.height,o=i.style,s=o.fill,l=o.stroke,u=o.radius,c=o.opacity,h=o.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:a,fill:s,stroke:l,radius:u,opacity:c,cursor:h}});var f=1/3*n,v=2/3*n,d=1/4*a,p=3/4*a;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:f,y1:d,x2:f,y2:p,stroke:l,cursor:h}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:v,y1:d,x2:v,y2:p,stroke:l,cursor:h}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",function(){var i=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",i),t.draw()}),this.get("group").on("mouseleave",function(){var i=t.get("style").fill;t.getElementByLocalId("background").attr("fill",i),t.draw()})},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(Qt),qM={fill:"#416180",opacity:.05},UM={fill:"#5B8FF9",opacity:.15,cursor:"move"},Fo=10,jM={width:Fo,height:24},ZM={textBaseline:"middle",fill:"#000",opacity:.45},QM="sliderchange",KM=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.onMouseDown=function(i){return function(n){t.currentTarget=i;var a=n.originalEvent;a.stopPropagation(),a.preventDefault(),t.prevX=A(a,"touches.0.pageX",a.pageX),t.prevY=A(a,"touches.0.pageY",a.pageY);var o=t.getContainerDOM();o.addEventListener("mousemove",t.onMouseMove),o.addEventListener("mouseup",t.onMouseUp),o.addEventListener("mouseleave",t.onMouseUp),o.addEventListener("touchmove",t.onMouseMove),o.addEventListener("touchend",t.onMouseUp),o.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(i){var n=t.cfg.width,a=[t.get("start"),t.get("end")];i.stopPropagation(),i.preventDefault();var o=A(i,"touches.0.pageX",i.pageX),s=A(i,"touches.0.pageY",i.pageY),l=o-t.prevX,u=t.adjustOffsetRange(l/n);t.updateStartEnd(u),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=o,t.prevY=s,t.draw(),t.emit(QM,[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:a,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var i=t.getContainerDOM();i&&(i.removeEventListener("mousemove",t.onMouseMove),i.removeEventListener("mouseup",t.onMouseUp),i.removeEventListener("mouseleave",t.onMouseUp),i.removeEventListener("touchmove",t.onMouseMove),i.removeEventListener("touchend",t.onMouseUp),i.removeEventListener("touchcancel",t.onMouseUp))},t}return e.prototype.setRange=function(t,i){this.set("minLimit",t),this.set("maxLimit",i);var n=this.get("start"),a=this.get("end"),o=St(n,t,i),s=St(a,t,i);!this.get("isInit")&&(n!==o||a!==s)&&this.setValue([o,s])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var i=this.getRange();if(R(t)&&t.length===2){var n=[this.get("start"),this.get("end")];this.update({start:St(t[0],i.min,i.max),end:St(t[1],i.min,i.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:qM,foregroundStyle:UM,handlerStyle:jM,textStyle:ZM}})},e.prototype.update=function(t){var i=t.start,n=t.end,a=m({},t);B(i)||(a.start=St(i,0,1)),B(n)||(a.end=St(n,0,1)),r.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",St(this.get("start"),0,1)),this.set("end",St(this.get("end"),0,1)),r.prototype.init.call(this)},e.prototype.render=function(){r.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var i=this.cfg;i.start,i.end;var n=i.width,a=i.height,o=i.trendCfg,s=o===void 0?{}:o,l=i.minText,u=i.maxText,c=i.backgroundStyle,h=c===void 0?{}:c,f=i.foregroundStyle,v=f===void 0?{}:f,d=i.textStyle,p=d===void 0?{}:d,g=H({},ry,this.cfg.handlerStyle);Vt(A(s,"data"))&&(this.trend=this.addComponent(t,m({component:_M,id:this.getElementId("trend"),x:0,y:0,width:n,height:a},s))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:m({x:0,y:0,width:n,height:a},h)}),this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:m({y:a/2,textAlign:"right",text:l,silent:!1},p)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:m({y:a/2,textAlign:"left",text:u,silent:!1},p)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:m({y:0,height:a},v)});var y=A(g,"width",Fo),x=A(g,"height",24);this.minHandler=this.addComponent(t,{component:cv,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(a-x)/2,width:y,height:x,cursor:"ew-resize",style:g}),this.maxHandler=this.addComponent(t,{component:cv,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(a-x)/2,width:y,height:x,cursor:"ew-resize",style:g})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,i,n){var a=this.cfg,o=a.start,s=a.end,l=a.width,u=a.minText,c=a.maxText,h=a.handlerStyle,f=a.height,v=o*l,d=s*l;this.trend&&(this.trend.update({width:l,height:f}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",v),t.attr("width",d-v);var p=A(h,"width",Fo);i.attr("text",u),n.attr("text",c);var g=this._dodgeText([v,d],i,n),y=g[0],x=g[1];this.minHandler&&(this.minHandler.update({x:v-p/2}),this.get("updateAutoRender")||this.minHandler.render()),S(y,function(b,w){return i.attr(w,b)}),this.maxHandler&&(this.maxHandler.update({x:d-p/2}),this.get("updateAutoRender")||this.maxHandler.render()),S(x,function(b,w){return n.attr(w,b)})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var i=t.findById(this.getElementId("foreground"));i.on("mousedown",this.onMouseDown("foreground")),i.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var i=this.cfg,n=i.start,a=i.end;switch(this.currentTarget){case"minHandler":{var o=0-n,s=1-n;return Math.min(s,Math.max(o,t))}case"maxHandler":{var o=0-a,s=1-a;return Math.min(s,Math.max(o,t))}case"foreground":{var o=0-n,s=1-a;return Math.min(s,Math.max(o,t))}}},e.prototype.updateStartEnd=function(t){var i=this.cfg,n=i.start,a=i.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":a+=t;break;case"foreground":n+=t,a+=t;break}this.set("start",n),this.set("end",a)},e.prototype._dodgeText=function(t,i,n){var a,o,s=this.cfg,l=s.handlerStyle,u=s.width,c=2,h=A(l,"width",Fo),f=t[0],v=t[1],d=!1;f>v&&(a=[v,f],f=a[0],v=a[1],o=[n,i],i=o[0],n=o[1],d=!0);var p=i.getBBox(),g=n.getBBox(),y=p.width>f-c?{x:f+h/2+c,textAlign:"left"}:{x:f-h/2-c,textAlign:"right"},x=g.width>u-v-c?{x:v-h/2-c,textAlign:"right"}:{x:v+h/2+c,textAlign:"left"};return d?[x,y]:[y,x]},e.prototype.draw=function(){var t=this.get("container"),i=t&&t.get("canvas");i&&i.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),i=t&&t.get("canvas");return i&&i.get("container")},e}(Qt),JM={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},Fl={default:JM,hover:{thumbColor:"rgba(0,0,0,0.2)"}},tA=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.clearEvents=Pr,t.onStartEvent=function(i){return function(n){t.isMobile=i,n.originalEvent.preventDefault();var a=i?A(n.originalEvent,"touches.0.clientX"):n.clientX,o=i?A(n.originalEvent,"touches.0.clientY"):n.clientY;t.startPos=t.cfg.isHorizontal?a:o,t.bindLaterEvent()}},t.bindLaterEvent=function(){var i=t.getContainerDOM(),n=[];t.isMobile?n=[Bi(i,"touchmove",t.onMouseMove),Bi(i,"touchend",t.onMouseUp),Bi(i,"touchcancel",t.onMouseUp)]:n=[Bi(i,"mousemove",t.onMouseMove),Bi(i,"mouseup",t.onMouseUp),Bi(i,"mouseleave",t.onMouseUp)],t.clearEvents=function(){n.forEach(function(a){a.remove()})}},t.onMouseMove=function(i){var n=t.cfg,a=n.isHorizontal,o=n.thumbOffset;i.preventDefault();var s=t.isMobile?A(i,"touches.0.clientX"):i.clientX,l=t.isMobile?A(i,"touches.0.clientY"):i.clientY,u=a?s:l,c=u-t.startPos;t.startPos=u,t.updateThumbOffset(o+c)},t.onMouseUp=function(i){i.preventDefault(),t.clearEvents()},t.onTrackClick=function(i){var n=t.cfg,a=n.isHorizontal,o=n.x,s=n.y,l=n.thumbLen,u=t.getContainerDOM(),c=u.getBoundingClientRect(),h=i.clientX,f=i.clientY,v=a?h-c.left-o-l/2:f-c.top-s-l/2,d=t.validateRange(v);t.updateThumbOffset(d)},t.onThumbMouseOver=function(){var i=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",i),t.draw()},t.onThumbMouseOut=function(){var i=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",i),t.draw()},t}return e.prototype.setRange=function(t,i){this.set("minLimit",t),this.set("maxLimit",i);var n=this.getValue(),a=St(n,t,i);n!==a&&!this.get("isInit")&&this.setValue(a)},e.prototype.getRange=function(){var t=this.get("minLimit")||0,i=this.get("maxLimit")||1;return{min:t,max:i}},e.prototype.setValue=function(t){var i=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*St(t,i.min,i.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return St(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:Fl})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var i=this.cfg,n=i.trackLen,a=i.theme,o=a===void 0?{default:{}}:a,s=H({},Fl,o).default,l=s.lineCap,u=s.trackColor,c=s.size,h=A(this.cfg,"size",c),f=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:n-h/2,y2:h/2,lineWidth:h,stroke:u,lineCap:l}:{x1:h/2,y1:0+h/2,x2:h/2,y2:n-h/2,lineWidth:h,stroke:u,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},e.prototype.renderThumbShape=function(t){var i=this.cfg,n=i.thumbOffset,a=i.thumbLen,o=i.theme,s=H({},Fl,o).default,l=s.size,u=s.lineCap,c=s.thumbColor,h=A(this.cfg,"size",l),f=this.get("isHorizontal")?{x1:n+h/2,y1:h/2,x2:n+a-h/2,y2:h/2,lineWidth:h,stroke:c,lineCap:u,cursor:"default"}:{x1:h/2,y1:n+h/2,x2:h/2,y2:n+a-h/2,lineWidth:h,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:f})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var i=t.findById(this.getElementId("track"));i.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),i=t&&t.get("canvas");return i&&i.get("container")},e.prototype.validateRange=function(t){var i=this.cfg,n=i.thumbLen,a=i.trackLen,o=t;return t+n>a?o=a-n:t+na.x?a.x:e,t=ta.y?a.y:i,n=n=i&&r<=n}function lA(r,e,t){if(K(r))return r.padEnd(e,t);if(R(r)){var i=r.length;if(i=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.add=function(){for(var e=[],t=0;te.minX&&this.minYe.minY},r.prototype.size=function(){return this.width*this.height},r.prototype.isPointIn=function(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY},r}();function uA(r){return[[r.minX,r.minY],[r.maxX,r.minY],[r.maxX,r.maxY],[r.minX,r.maxY]]}function La(r){if(r.isPolar&&!r.isTransposed)return(r.endAngle-r.startAngle)*r.getRadius();var e=r.convert({x:0,y:0}),t=r.convert({x:1,y:0});return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function cA(r){if(r.isPolar){var e=r.startAngle,t=r.endAngle;return t-e===Math.PI*2}return!1}function Ns(r,e){var t=r.getCenter();return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function hA(r,e){var t=!1;if(r)if(r.type==="theta"){var i=r.start,n=r.end;t=_i(e.x,i.x,n.x)&&_i(e.y,i.y,n.y)}else{var a=r.invert(e);t=_i(a.x,0,1)&&_i(a.y,0,1)}return t}function an(r,e){var t=r.getCenter();return Math.atan2(e.y-t.y,e.x-t.x)}function kc(r,e){e===void 0&&(e=0);var t=r.start,i=r.end,n=r.getWidth(),a=r.getHeight();if(r.isPolar){var o=r.startAngle,s=r.endAngle,l=r.getCenter(),u=r.getRadius();return{type:"path",startState:{path:zr(l.x,l.y,u+e,o,o)},endState:function(h){var f=(s-o)*h+o,v=zr(l.x,l.y,u+e,o,f);return{path:v}},attrs:{path:zr(l.x,l.y,u+e,o,s)}}}var c;return r.isTransposed?c={height:a+e*2}:c={width:n+e*2},{type:"rect",startState:{x:t.x-e,y:i.y-e,width:r.isTransposed?n+e*2:0,height:r.isTransposed?0:a+e*2},endState:c,attrs:{x:t.x-e,y:i.y-e,width:n+e*2,height:a+e*2}}}function fA(r,e){e===void 0&&(e=0);var t=r.start,i=r.end,n=r.getWidth(),a=r.getHeight(),o=Math.min(t.x,i.x),s=Math.min(t.y,i.y);return ie.fromRange(o-e,s-e,o+n+e,s+a+e)}var vA=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function dA(r){var e="linear";return vA.test(r)?e="timeCat":K(r)&&(e="cat"),e}function ay(r,e,t,i){return e===void 0&&(e={}),e.type?e.type:r.type!=="identity"&&Xi.includes(t)&&["interval"].includes(i)||r.isCategory?"cat":r.type}function pA(r,e,t){var i=e||[];if(rt(r)||B(iw(i,r))&&fe(t)){var n=gu("identity");return new n({field:r.toString(),values:[r]})}var a=Ve(i,r),o=A(t,"type",dA(a[0])),s=gu(o);return new s(m({field:r,values:a},t))}function gA(r,e){if(r.type!=="identity"&&e.type!=="identity"){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);r.change(t)}}function fa(r){return r.alias||r.field}function oy(r,e,t){var i=r.values,n=i.length,a;if(n===1)a=[.5,1];else{var o=1,s=0;cA(e)?e.isTransposed?(o=A(t,"widthRatio.multiplePie",1/1.3),s=1/n*o,a=[s/2,1-s/2]):a=[0,1-1/n]:(s=1/n/2,a=[s,1-s])}return a}function yA(r){var e=r.values.filter(function(t){return!B(t)&&!isNaN(t)});return Math.max.apply(Math,Z(Z([],q(e),!1),[B(r.max)?-1/0:r.max],!1))}function mA(r){var e,t;switch(r){case G.TOP:e={x:0,y:1},t={x:1,y:1};break;case G.RIGHT:e={x:1,y:0},t={x:1,y:1};break;case G.BOTTOM:e={x:0,y:0},t={x:1,y:0};break;case G.LEFT:e={x:0,y:0},t={x:0,y:1};break;default:e=t={x:0,y:0}}return{start:e,end:t}}function xA(r){var e,t;return r.isTransposed?(e={x:0,y:0},t={x:1,y:0}):(e={x:0,y:0},t={x:0,y:1}),{start:e,end:t}}function Ja(r,e){var t={start:{x:0,y:0},end:{x:0,y:0}};r.isRect?t=mA(e):r.isPolar&&(t=xA(r));var i=t.start,n=t.end;return{start:r.convert(i),end:r.convert(n)}}function sy(r){var e=r.start,t=r.end;return e.x===t.x}function dv(r,e){var t=r.start,i=r.end,n=sy(r);return n?(t.y-i.y)*(e.x-t.x)>0?1:-1:(i.x-t.x)*(t.y-e.y)>0?-1:1}function to(r,e){var t=A(r,["components","axis"],{});return H({},A(t,["common"],{}),H({},A(t,[e],{})))}function pv(r,e,t){var i=A(r,["components","axis"],{});return H({},A(i,["common","title"],{}),H({},A(i,[e,"title"],{})),t)}function Tl(r){var e=r.x,t=r.y,i=r.circleCenter,n=t.start>t.end,a=r.isTransposed?r.convert({x:n?0:1,y:0}):r.convert({x:0,y:n?0:1}),o=[a.x-i.x,a.y-i.y],s=[1,0],l=a.y>i.y?Kl(o,s):Kl(o,s)*-1,u=l+(e.end-e.start),c=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2));return{center:i,radius:c,startAngle:l,endAngle:u}}function Uo(r,e){return en(r)?r===!1?!1:{}:A(r,[e])}function gv(r,e){return A(r,"position",e)}function yv(r,e){return A(e,["title","text"],fa(r))}var gn=function(){function r(e,t){this.destroyed=!1,this.facets=[],this.view=e,this.cfg=H({},this.getDefaultCfg(),t)}return r.prototype.init=function(){this.container||(this.container=this.createContainer());var e=this.view.getData();this.facets=this.generateFacets(e)},r.prototype.render=function(){this.renderViews()},r.prototype.update=function(){},r.prototype.clear=function(){this.clearFacetViews()},r.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},r.prototype.facetToView=function(e){var t=e.region,i=e.data,n=e.padding,a=n===void 0?this.cfg.padding:n,o=this.view.createView({region:t,padding:a});o.data(i||[]),e.view=o,this.beforeEachView(o,e);var s=this.cfg.eachView;return s&&s(o,e),this.afterEachView(o,e),o},r.prototype.createContainer=function(){var e=this.view.getLayer(It.FORE);return e.addGroup()},r.prototype.renderViews=function(){this.createFacetViews()},r.prototype.createFacetViews=function(){var e=this;return this.facets.map(function(t){return e.facetToView(t)})},r.prototype.clearFacetViews=function(){var e=this;S(this.facets,function(t){t.view&&(e.view.removeView(t.view),t.view=void 0)})},r.prototype.parseSpacing=function(){var e=this.view.viewBBox,t=e.width,i=e.height,n=this.cfg.spacing;return n.map(function(a,o){return rt(a)?a/(o===0?t:i):parseFloat(a)/100})},r.prototype.getFieldValues=function(e,t){var i=[],n={};return S(e,function(a){var o=a[t];!B(o)&&!n[o]&&(i.push(o),n[o]=!0)}),i},r.prototype.getRegion=function(e,t,i,n){var a=q(this.parseSpacing(),2),o=a[0],s=a[1],l=(1+o)/(t===0?1:t)-o,u=(1+s)/(e===0?1:e)-s,c={x:(l+o)*i,y:(u+s)*n},h={x:c.x+l,y:c.y+u};return{start:c,end:h}},r.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},r.prototype.getDefaultTitleCfg=function(){var e=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:e}}},r.prototype.processAxis=function(e,t){var i=e.getOptions(),n=i.coordinate,a=e.geometries,o=A(n,"type","rect");if(o==="rect"&&a.length){B(i.axes)&&(i.axes={});var s=i.axes,l=q(a[0].getXYFields(),2),u=l[0],c=l[1],h=Uo(s,u),f=Uo(s,c);h!==!1&&(i.axes[u]=this.getXAxisOption(u,s,h,t)),f!==!1&&(i.axes[c]=this.getYAxisOption(c,s,f,t))}},r.prototype.getFacetDataFilter=function(e){return function(t){return ec(e,function(i){var n=i.field,a=i.value;return!B(a)&&n?t[n]===a:!0})}},r}(),ly={},wA=function(r){return ly[vn(r)]},yn=function(r,e){ly[vn(r)]=e},Ct=function(){function r(e,t){this.context=e,this.cfg=t,e.addAction(this)}return r.prototype.applyCfg=function(e){yt(this,e)},r.prototype.init=function(){this.applyCfg(this.cfg)},r.prototype.destroy=function(){this.context.removeAction(this),this.context=null},r}(),bA=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.callback=null},e}(Ct),Lc={};function CA(r,e){var t=Lc[r],i=null;if(t){var n=t.ActionClass,a=t.cfg;i=new n(e,a),i.name=r,i.init()}return i}function zs(r){var e=Lc[r];return A(e,"ActionClass")}function j(r,e,t){Lc[r]={ActionClass:e,cfg:t}}function SA(r,e){var t=new bA(e);return t.callback=r,t.name="callback",t}function MA(r,e){var t=[];if(r.length){t.push(["M",r[0].x,r[0].y]);for(var i=1,n=r.length;i=o[u]?1:0,f=c>Math.PI?1:0,v=t.convert(s),d=Ns(t,v);if(d>=.5)if(c===Math.PI*2){var p={x:(s.x+o.x)/2,y:(s.y+o.y)/2},g=t.convert(p);l.push(["A",d,d,0,f,h,g.x,g.y]),l.push(["A",d,d,0,f,h,v.x,v.y])}else l.push(["A",d,d,0,f,h,v.x,v.y]);return l}function FA(r){S(r,function(e,t){var i=e;if(i[0].toLowerCase()==="a"){var n=r[t-1],a=r[t+1];a&&a[0].toLowerCase()==="a"?n&&n[0].toLowerCase()==="l"&&(n[0]="M"):n&&n[0].toLowerCase()==="a"&&a&&a[0].toLowerCase()==="l"&&(a[0]="M")}})}var TA=function(r,e,t,i){var n,a=[],o=!!i,s,l,u,c,h,f,v;if(o){n=q(i,2),u=n[0],c=n[1];for(var d=0,p=r.length;d0&&n>0&&(i>=e||n>=e)}function vy(r,e){var t=r.getCanvasBBox();return fy(r,e)?t:null}function dy(r,e){var t=r.event.maskShapes;return t.map(function(i){return vy(i,e)}).filter(function(i){return!!i})}function LA(r,e){var t=r.event,i=t.target;return py(i,e)}function py(r,e){return fy(r,e)?r.attr("path"):null}function IA(r,e){var t=r.event.maskShapes;return t.map(function(i){return py(i,e)})}function Hr(r){var e=r.event,t,i=e.target;return i&&(t=i.get("element")),t}function Mi(r){var e=r.event,t=e.target,i;return t&&(i=t.get("delegateObject")),i}function gy(r){var e=r.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function va(r){return r&&r.component&&r.component.isList()}function yy(r){return r&&r.component&&r.component.isSlider()}function da(r){var e=r.event,t=e.target;return t&&(t==null?void 0:t.get("name"))==="mask"||Gs(r)}function Gs(r){var e;return((e=r.event.target)===null||e===void 0?void 0:e.get("name"))==="multi-mask"}function Ic(r,e){var t=r.event.target;if(Gs(r))return PA(r,e);if(t.get("type")==="path"){var i=LA(r,e);return i?by(r.view,i):void 0}var n=hy(r,e);return n?Vs(r.view,n):null}function PA(r,e){var t=r.event.target;if(t.get("type")==="path"){var i=IA(r,e);return i.length>0?i.flatMap(function(a){return by(r.view,a)}):null}var n=dy(r,e);return n.length>0?n.flatMap(function(a){return Vs(r.view,a)}):null}function my(r,e,t){if(Gs(r))return DA(r,e,t);var i=hy(r,t);return i?xy(i,r,e):null}function xy(r,e,t){var i=e.view,n=Su(i,t,{x:r.x,y:r.y}),a=Su(i,t,{x:r.maxX,y:r.maxY}),o={minX:n.x,minY:n.y,maxX:a.x,maxY:a.y};return Vs(t,o)}function DA(r,e,t){var i=dy(r,t);return i.length>0?i.flatMap(function(n){return xy(n,r,e)}):null}function _t(r){var e=r.geometries,t=[];return S(e,function(i){var n=i.elements;t=t.concat(n)}),r.views&&r.views.length&&S(r.views,function(i){t=t.concat(_t(i))}),t}function OA(r,e,t){var i=_t(r);return i.filter(function(n){return Ye(n,e)===t})}function wy(r,e){var t=r.geometries,i=[];return S(t,function(n){var a=n.getElementsBy(function(o){return o.hasState(e)});i=i.concat(a)}),i}function Ye(r,e){var t=r.getModel(),i=t.data,n;return R(i)?n=i[0][e]:n=i[e],n}function BA(r,e){return!(e.minX>r.maxX||e.maxXr.maxY||e.maxY=e.x&&r.y<=e.y&&r.maxY>e.y}function Ke(r){var e=r.parent,t=null;return e&&(t=e.views.filter(function(i){return i!==r})),t}function NA(r,e){var t=r.getCoordinate();return t.invert(e)}function Su(r,e,t){var i=NA(r,t);return e.getCoordinate().convert(i)}function Sy(r,e,t,i){var n=!1;return S(r,function(a){if(a[t]===e[t]&&a[i]===e[i])return n=!0,!1}),n}function on(r,e){var t=r.getScaleByField(e);return!t&&r.views&&S(r.views,function(i){if(t=on(i,e),t)return!1}),t}var zA=function(){function r(e){this.actions=[],this.event=null,this.cacheMap={},this.view=e}return r.prototype.cache=function(){for(var e=[],t=0;t=0&&t.splice(i,1)},r.prototype.getCurrentPoint=function(){var e=this.event;if(e)if(e.target instanceof HTMLElement){var t=this.view.getCanvas(),i=t.getPointByClient(e.clientX,e.clientY);return i}else return{x:e.x,y:e.y};return null},r.prototype.getCurrentShape=function(){return A(this.event,["gEvent","shape"])},r.prototype.isInPlot=function(){var e=this.getCurrentPoint();return e?this.view.isPointInPlot(e):!1},r.prototype.isInShape=function(e){var t=this.getCurrentShape();return t?t.get("name")===e:!1},r.prototype.isInComponent=function(e){var t=Cy(this.view),i=this.getCurrentPoint();return i?!!t.find(function(n){var a=n.getBBox();return e?n.get("name")===e&&xv(a,i):xv(a,i)}):!1},r.prototype.destroy=function(){S(this.actions.slice(),function(e){e.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},r}(),GA=function(){function r(e,t){this.view=e,this.cfg=t}return r.prototype.init=function(){this.initEvents()},r.prototype.initEvents=function(){},r.prototype.clearEvents=function(){},r.prototype.destroy=function(){this.clearEvents()},r}();function wv(r,e,t){var i=r.split(":"),n=i[0],a=e.getAction(n)||CA(n,e);if(!a)throw new Error("There is no action named ".concat(n));var o=i[1];return{action:a,methodName:o,arg:t}}function bv(r){var e=r.action,t=r.methodName,i=r.arg;if(e[t])e[t](i);else throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(t))}var ge={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},VA=function(r){E(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.callbackCaches={},n.emitCaches={},n.steps=i,n}return e.prototype.init=function(){this.initContext(),r.prototype.init.call(this)},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;S(this.steps,function(i,n){S(i,function(a){var o=t.getActionCallback(n,a);o&&t.bindEvent(a.trigger,o)})})},e.prototype.clearEvents=function(){var t=this;S(this.steps,function(i,n){S(i,function(a){var o=t.getActionCallback(n,a);o&&t.offEvent(a.trigger,o)})})},e.prototype.initContext=function(){var t=this.view,i=new zA(t);this.context=i;var n=this.steps;S(n,function(a){S(a,function(o){if(_(o.action))o.actionObject={action:SA(o.action,i),methodName:"execute"};else if(K(o.action))o.actionObject=wv(o.action,i,o.arg);else if(R(o.action)){var s=o.action,l=R(o.arg)?o.arg:[o.arg];o.actionObject=[],S(s,function(u,c){o.actionObject.push(wv(u,i,l[c]))})}})})},e.prototype.isAllowStep=function(t){var i=this.currentStepName,n=this.steps;if(i===t||t===ge.SHOW_ENABLE)return!0;if(t===ge.PROCESSING)return i===ge.START;if(t===ge.START)return i!==ge.PROCESSING;if(t===ge.END)return i===ge.PROCESSING||i===ge.START;if(t===ge.ROLLBACK){if(n[ge.END])return i===ge.END;if(i===ge.START)return!0}return!1},e.prototype.isAllowExecute=function(t,i){if(this.isAllowStep(t)){var n=this.getKey(t,i);return i.once&&this.emitCaches[n]?!1:i.isEnable?i.isEnable(this.context):!0}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,i){t!==ge.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,i);this.emitCaches[n]=!0},e.prototype.getKey=function(t,i){return t+i.trigger+i.action},e.prototype.getActionCallback=function(t,i){var n=this,a=this.context,o=this.callbackCaches,s=i.actionObject;if(i.action&&s){var l=this.getKey(t,i);if(!o[l]){var u=function(c){a.event=c,n.isAllowExecute(t,i)?(R(s)?S(s,function(h){a.event=c,bv(h)}):(a.event=c,bv(s)),n.afterExecute(t,i),i.callback&&(a.event=c,i.callback(a))):a.event=null};i.debounce?o[l]=Cp(u,i.debounce.wait,i.debounce.immediate):i.throttle?o[l]=nc(u,i.throttle.wait,{leading:i.throttle.leading,trailing:i.throttle.trailing}):o[l]=u}return o[l]}return null},e.prototype.bindEvent=function(t,i){var n=t.split(":");n[0]==="window"?window.addEventListener(n[1],i):n[0]==="document"?document.addEventListener(n[1],i):this.view.on(t,i)},e.prototype.offEvent=function(t,i){var n=t.split(":");n[0]==="window"?window.removeEventListener(n[1],i):n[0]==="document"?document.removeEventListener(n[1],i):this.view.off(t,i)},e}(GA),My={};function YA(r){return My[vn(r)]}function it(r,e){My[vn(r)]=e}function $A(r,e,t){var i=YA(r);if(!i)return null;if(fi(i)){var n=yt(ye(i),t);return new VA(e,n)}else{var a=i;return new a(e,t)}}function HA(r){return{title:{autoRotate:!0,position:"center",spacing:r.axisTitleSpacing,style:{fill:r.axisTitleTextFillColor,fontSize:r.axisTitleTextFontSize,lineHeight:r.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:r.fontFamily},iconStyle:{fill:r.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:r.axisLabelOffset,style:{fill:r.axisLabelFillColor,fontSize:r.axisLabelFontSize,lineHeight:r.axisLabelLineHeight,fontFamily:r.fontFamily}},line:{style:{lineWidth:r.axisLineBorder,stroke:r.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:r.axisGridBorderColor,lineWidth:r.axisGridBorder,lineDash:r.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:r.axisTickLineBorder,stroke:r.axisTickLineBorderColor},alignTick:!0,length:r.axisTickLineLength},subTickLine:null,animate:!0}}function XA(r){return{title:null,marker:{symbol:"circle",spacing:r.legendMarkerSpacing,style:{r:r.legendCircleMarkerSize,fill:r.legendMarkerColor}},itemName:{spacing:5,style:{fill:r.legendItemNameFillColor,fontFamily:r.fontFamily,fontSize:r.legendItemNameFontSize,lineHeight:r.legendItemNameLineHeight,fontWeight:r.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:r.legendPageNavigatorMarkerSize,inactiveFill:r.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:r.legendPageNavigatorMarkerInactiveFillOpacity,fill:r.legendPageNavigatorMarkerFillColor,opacity:r.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:r.legendPageNavigatorTextFillColor,fontSize:r.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:r.legendItemSpacing,itemMarginBottom:r.legendItemMarginBottom,padding:r.legendPadding}}function Ay(r){var e,t={point:{default:{fill:r.pointFillColor,r:r.pointSize,stroke:r.pointBorderColor,lineWidth:r.pointBorder,fillOpacity:r.pointFillOpacity},active:{stroke:r.pointActiveBorderColor,lineWidth:r.pointActiveBorder},selected:{stroke:r.pointSelectedBorderColor,lineWidth:r.pointSelectedBorder},inactive:{fillOpacity:r.pointInactiveFillOpacity,strokeOpacity:r.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:r.hollowPointFillColor,lineWidth:r.hollowPointBorder,stroke:r.hollowPointBorderColor,strokeOpacity:r.hollowPointBorderOpacity,r:r.hollowPointSize},active:{stroke:r.hollowPointActiveBorderColor,strokeOpacity:r.hollowPointActiveBorderOpacity},selected:{lineWidth:r.hollowPointSelectedBorder,stroke:r.hollowPointSelectedBorderColor,strokeOpacity:r.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:r.hollowPointInactiveBorderOpacity}},area:{default:{fill:r.areaFillColor,fillOpacity:r.areaFillOpacity,stroke:null},active:{fillOpacity:r.areaActiveFillOpacity},selected:{fillOpacity:r.areaSelectedFillOpacity},inactive:{fillOpacity:r.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:r.hollowAreaBorderColor,lineWidth:r.hollowAreaBorder,strokeOpacity:r.hollowAreaBorderOpacity},active:{fill:null,lineWidth:r.hollowAreaActiveBorder},selected:{fill:null,lineWidth:r.hollowAreaSelectedBorder},inactive:{strokeOpacity:r.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:r.intervalFillColor,fillOpacity:r.intervalFillOpacity},active:{stroke:r.intervalActiveBorderColor,lineWidth:r.intervalActiveBorder},selected:{stroke:r.intervalSelectedBorderColor,lineWidth:r.intervalSelectedBorder},inactive:{fillOpacity:r.intervalInactiveFillOpacity,strokeOpacity:r.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:r.hollowIntervalFillColor,stroke:r.hollowIntervalBorderColor,lineWidth:r.hollowIntervalBorder,strokeOpacity:r.hollowIntervalBorderOpacity},active:{stroke:r.hollowIntervalActiveBorderColor,lineWidth:r.hollowIntervalActiveBorder,strokeOpacity:r.hollowIntervalActiveBorderOpacity},selected:{stroke:r.hollowIntervalSelectedBorderColor,lineWidth:r.hollowIntervalSelectedBorder,strokeOpacity:r.hollowIntervalSelectedBorderOpacity},inactive:{stroke:r.hollowIntervalInactiveBorderColor,lineWidth:r.hollowIntervalInactiveBorder,strokeOpacity:r.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:r.lineBorderColor,lineWidth:r.lineBorder,strokeOpacity:r.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:r.lineActiveBorder},selected:{lineWidth:r.lineSelectedBorder},inactive:{strokeOpacity:r.lineInactiveBorderOpacity}}},i=HA(r),n=XA(r);return{background:r.backgroundColor,defaultColor:r.brandColor,subColor:r.subColor,semanticRed:r.paletteSemanticRed,semanticGreen:r.paletteSemanticGreen,padding:"auto",fontFamily:r.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:r.paletteQualitative10,colors20:r.paletteQualitative20,sequenceColors:r.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:function(a){var o=a.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=ha(a.getModel(),o),l=s.startAngle,u=s.endAngle,c=(l+u)/2,h=7.5,f=h*Math.cos(c),v=h*Math.sin(c);return{matrix:Rt(null,[["t",f,v]])}}return t.interval.selected}}},"hollow-rect":{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},line:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},tick:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},funnel:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}},pyramid:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},line:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},dot:{default:{style:m(m({},t.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:m(m({},t.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:m(m({},t.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:m(m({},t.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:m(m({},t.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:m(m({},t.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:m(m({},t.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:m(m({},t.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hvh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},polygon:{polygon:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},point:{circle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},square:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},bowtie:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},diamond:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},hexagon:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},triangle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"triangle-down":{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"hollow-circle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-square":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-bowtie":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-diamond":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-hexagon":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle-down":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},cross:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},tick:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},plus:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},hyphen:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},line:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}}},area:{area:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},smooth:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},line:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"smooth-line":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}},schema:{candle:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},box:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}}},edge:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},arc:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},violin:{violin:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hollow:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"hollow-smooth":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}}},components:{axis:{common:i,top:{position:"top",grid:null,title:null,verticalLimitLength:1/2},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:1/2},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:H({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:H({},i.grid,{line:{type:"circle"}})}},legend:{common:n,right:{layout:"vertical",padding:r.legendVerticalPadding},left:{layout:"vertical",padding:r.legendVerticalPadding},top:{layout:"horizontal",padding:r.legendHorizontalPadding},bottom:{layout:"horizontal",padding:r.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:r.sliderRailHeight,defaultLength:r.sliderRailWidth,style:{fill:r.sliderRailFillColor,stroke:r.sliderRailBorderColor,lineWidth:r.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:r.sliderLabelTextFillColor,fontSize:r.sliderLabelTextFontSize,lineHeight:r.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:r.fontFamily}},handler:{size:r.sliderHandlerWidth,style:{fill:r.sliderHandlerFillColor,stroke:r.sliderHandlerBorderColor}},slidable:!0,padding:n.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:r.tooltipCrosshairsBorderColor,lineWidth:r.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(mr)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:r.tooltipContainerFillColor,opacity:r.tooltipContainerFillOpacity,boxShadow:r.tooltipContainerShadow,borderRadius:"".concat(r.tooltipContainerBorderRadius,"px"),color:r.tooltipTextFillColor,fontSize:"".concat(r.tooltipTextFontSize,"px"),fontFamily:r.fontFamily,lineHeight:"".concat(r.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(xr)]={marginBottom:"12px",marginTop:"12px"},e["".concat(ca)]={margin:0,listStyleType:"none",padding:0},e["".concat(Ds)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(Os)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(Bs)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:r.annotationArcBorderColor,lineWidth:r.annotationArcBorder},animate:!0},line:{style:{stroke:r.annotationLineBorderColor,lineDash:r.annotationLineDash,lineWidth:r.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:r.annotationTextFillColor,stroke:r.annotationTextBorderColor,lineWidth:r.annotationTextBorder,fontSize:r.annotationTextFontSize,textAlign:"start",fontFamily:r.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:r.annotationTextFillColor,stroke:r.annotationTextBorderColor,lineWidth:r.annotationTextBorder,fontSize:r.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:r.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:r.annotationRegionBorder,stroke:r.annotationRegionBorderColor,fill:r.annotationRegionFillColor,fillOpacity:r.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:r.brandColor,lineWidth:2}},line:{style:{stroke:r.annotationLineBorderColor,lineWidth:r.annotationLineBorder},length:r.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:r.annotationTextFillColor,stroke:r.annotationTextBorderColor,lineWidth:r.annotationTextBorder,fontSize:r.annotationTextFontSize,fontFamily:r.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:r.annotationRegionFillColor,fillOpacity:r.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:r.annotationTextFillColor,stroke:r.annotationTextBorderColor,lineWidth:r.annotationTextBorder,fontSize:r.annotationTextFontSize,fontFamily:r.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:r.cSliderBackgroundFillColor,opacity:r.cSliderBackgroundFillOpacity},foregroundStyle:{fill:r.cSliderForegroundFillColor,opacity:r.cSliderForegroundFillOpacity},handlerStyle:{width:r.cSliderHandlerWidth,height:r.cSliderHandlerHeight,fill:r.cSliderHandlerFillColor,opacity:r.cSliderHandlerFillOpacity,stroke:r.cSliderHandlerBorderColor,lineWidth:r.cSliderHandlerBorder,radius:r.cSliderHandlerBorderRadius,highLightFill:r.cSliderHandlerHighlightFillColor},textStyle:{fill:r.cSliderTextFillColor,opacity:r.cSliderTextFillOpacity,fontSize:r.cSliderTextFontSize,lineHeight:r.cSliderTextLineHeight,fontWeight:r.cSliderTextFontWeight,stroke:r.cSliderTextBorderColor,lineWidth:r.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:r.scrollbarTrackFillColor,thumbColor:r.scrollbarThumbFillColor}},hover:{style:{thumbColor:r.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:r.labelFillColor,fontSize:r.labelFontSize,fontFamily:r.fontFamily,stroke:r.labelBorderColor,lineWidth:r.labelBorder},fillColorDark:r.labelFillColorDark,fillColorLight:r.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:r.innerLabelFillColor,fontSize:r.innerLabelFontSize,fontFamily:r.fontFamily,stroke:r.innerLabelBorderColor,lineWidth:r.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:r.overflowLabelFillColor,fontSize:r.overflowLabelFontSize,fontFamily:r.fontFamily,stroke:r.overflowLabelBorderColor,lineWidth:r.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:r.labelLineBorder}},autoRotate:!0}}}var vt={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Ri={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},WA=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],_A=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],qA=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Fy=function(r){r===void 0&&(r={});var e=r.paletteQualitative10,t=e===void 0?WA:e,i=r.paletteQualitative20,n=i===void 0?_A:i,a=r.brandColor,o=a===void 0?t[0]:a,s={backgroundColor:"transparent",brandColor:o,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:t,paletteQualitative20:n,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:qA,fontFamily:`"Segoe UI", Roboto, "Helvetica Neue", Arial, + `,xCrosshairTpl:'
      ',yCrosshairTpl:'
      ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:mr,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:PM})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!0),Kt(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!1),Kt(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var i=t?"":"none",n=this.get("xCrosshairDom"),a=this.get("yCrosshairDom");n&&Kt(n,{display:i}),a&&Kt(a,{display:i})},e.prototype.initContainer=function(){if(r.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(RM(t,["title","showTitle"])&&this.resetTitle(),Vr(t,"items")&&this.renderItems()),r.prototype.updateInner.call(this,t)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){r.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t=this.get("x"),i=this.get("y"),n=this.get("offset"),a=this.getOffset(),o=a.offsetX,s=a.offsetY,l=this.get("position"),u=this.get("region"),c=this.getContainer(),h=this.getBBox(),f=h.width,v=h.height,d;u&&(d=sa(u));var p=BM(t,i,n,f,v,l,d);Kt(c,{left:se(p.x+o),top:se(p.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),i=this.get("parent"),n=this.get("container");n&&n.parentNode===i?i.replaceChild(t,n):i.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,i=this.get("customContent");if(i){var n=i(this.get("title"),this.get("items"));bp(n)?t=n:t=Br(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),i=t.getElementsByClassName(xr)[0],n=t.getElementsByClassName(ca)[0];this.set("titleDom",i),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title"),i=this.get("showTitle");i&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var i=this.get("titleDom");i&&(i.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),i=this.get("crosshairs");if(!t||!i)this.clearCrosshairs();else{var n=sa(t),a=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");i==="x"?(this.resetCrosshair("x",n),o&&(o.remove(),this.set("yCrosshairDom",null))):i==="y"?(this.resetCrosshair("y",n),a&&(a.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}},e.prototype.resetCrosshair=function(t,i){var n=this.checkCrosshair(t),a=this.get(t);t==="x"?Kt(n,{left:se(a),top:se(i.y),height:se(i.height)}):Kt(n,{top:se(a),left:se(i.x),width:se(i.width)})},e.prototype.checkCrosshair=function(t){var i=t+"CrosshairDom",n=t+"CrosshairTpl",a="CROSSHAIR_"+t.toUpperCase(),o=IM[a],s=this.get(i),l=this.get("parent");return s||(s=Br(this.get(n)),this.applyStyle(o,s),l.appendChild(s),this.set(i,s)),s},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),i=this.get("itemTpl"),n=this.get("listDom");n&&(S(t,function(a){var o=Nr.toCSSGradient(a.color),s=m(m({},a),{color:o}),l=dp(i,s),u=Br(l);n.appendChild(u)}),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Sc(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");t&&t.remove(),i&&i.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(Mc),zM={opacity:0},GM={stroke:"#C5C5C5",strokeOpacity:.85},VM={fill:"#CACED4",opacity:.85};function YM(r){return Mt(r,function(e,t){var i=t===0?"M":"L",n=e[0],a=e[1];return[i,n,a]})}function ey(r){return YM(r)}function $M(r){if(r.length<=2)return ey(r);var e=[];S(r,function(o){Pt(o,e.slice(e.length-2))||e.push(o[0],o[1])});var t=Jb(e,!1),i=me(r),n=i[0],a=i[1];return t.unshift(["M",n,a]),t}function HM(r,e,t,i){i===void 0&&(i=!0);var n=new ks({values:r}),a=new Ts({values:Mt(r,function(s,l){return l})}),o=Mt(r,function(s,l){return[a.scale(l)*e,t-n.scale(s)*t]});return i?$M(o):ey(o)}function XM(r,e){var t=new ks({values:r}),i=t.max<0?t.max:Math.max(0,t.min);return e-t.scale(i)*e}function WM(r,e,t,i){var n=Bo(r),a=XM(i,t);return n.push(["L",e,a]),n.push(["L",0,a]),n.push(["Z"]),n}var _M=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:zM,lineStyle:GM,areaStyle:VM})},e.prototype.renderInner=function(t){var i=this.cfg,n=i.width,a=i.height,o=i.data,s=i.smooth,l=i.isArea,u=i.backgroundStyle,c=i.lineStyle,h=i.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:m({x:0,y:0,width:n,height:a},u)});var f=HM(o,n,a,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:m({path:f},c)}),l){var v=WM(f,n,a,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:m({path:v},h)})}},e.prototype.applyOffset=function(){var t=this.cfg,i=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:i,y:n})},e}(Qt),ry={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},cv=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"handler",x:0,y:0,width:10,height:24,style:ry})},e.prototype.renderInner=function(t){var i=this.cfg,n=i.width,a=i.height,o=i.style,s=o.fill,l=o.stroke,u=o.radius,c=o.opacity,h=o.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:a,fill:s,stroke:l,radius:u,opacity:c,cursor:h}});var f=1/3*n,v=2/3*n,d=1/4*a,p=3/4*a;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:f,y1:d,x2:f,y2:p,stroke:l,cursor:h}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:v,y1:d,x2:v,y2:p,stroke:l,cursor:h}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",function(){var i=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",i),t.draw()}),this.get("group").on("mouseleave",function(){var i=t.get("style").fill;t.getElementByLocalId("background").attr("fill",i),t.draw()})},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(Qt),qM={fill:"#416180",opacity:.05},UM={fill:"#5B8FF9",opacity:.15,cursor:"move"},Fo=10,jM={width:Fo,height:24},ZM={textBaseline:"middle",fill:"#000",opacity:.45},QM="sliderchange",KM=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.onMouseDown=function(i){return function(n){t.currentTarget=i;var a=n.originalEvent;a.stopPropagation(),a.preventDefault(),t.prevX=A(a,"touches.0.pageX",a.pageX),t.prevY=A(a,"touches.0.pageY",a.pageY);var o=t.getContainerDOM();o.addEventListener("mousemove",t.onMouseMove),o.addEventListener("mouseup",t.onMouseUp),o.addEventListener("mouseleave",t.onMouseUp),o.addEventListener("touchmove",t.onMouseMove),o.addEventListener("touchend",t.onMouseUp),o.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(i){var n=t.cfg.width,a=[t.get("start"),t.get("end")];i.stopPropagation(),i.preventDefault();var o=A(i,"touches.0.pageX",i.pageX),s=A(i,"touches.0.pageY",i.pageY),l=o-t.prevX,u=t.adjustOffsetRange(l/n);t.updateStartEnd(u),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=o,t.prevY=s,t.draw(),t.emit(QM,[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:a,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var i=t.getContainerDOM();i&&(i.removeEventListener("mousemove",t.onMouseMove),i.removeEventListener("mouseup",t.onMouseUp),i.removeEventListener("mouseleave",t.onMouseUp),i.removeEventListener("touchmove",t.onMouseMove),i.removeEventListener("touchend",t.onMouseUp),i.removeEventListener("touchcancel",t.onMouseUp))},t}return e.prototype.setRange=function(t,i){this.set("minLimit",t),this.set("maxLimit",i);var n=this.get("start"),a=this.get("end"),o=St(n,t,i),s=St(a,t,i);!this.get("isInit")&&(n!==o||a!==s)&&this.setValue([o,s])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var i=this.getRange();if(R(t)&&t.length===2){var n=[this.get("start"),this.get("end")];this.update({start:St(t[0],i.min,i.max),end:St(t[1],i.min,i.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:qM,foregroundStyle:UM,handlerStyle:jM,textStyle:ZM}})},e.prototype.update=function(t){var i=t.start,n=t.end,a=m({},t);B(i)||(a.start=St(i,0,1)),B(n)||(a.end=St(n,0,1)),r.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",St(this.get("start"),0,1)),this.set("end",St(this.get("end"),0,1)),r.prototype.init.call(this)},e.prototype.render=function(){r.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var i=this.cfg;i.start,i.end;var n=i.width,a=i.height,o=i.trendCfg,s=o===void 0?{}:o,l=i.minText,u=i.maxText,c=i.backgroundStyle,h=c===void 0?{}:c,f=i.foregroundStyle,v=f===void 0?{}:f,d=i.textStyle,p=d===void 0?{}:d,g=H({},ry,this.cfg.handlerStyle);Vt(A(s,"data"))&&(this.trend=this.addComponent(t,m({component:_M,id:this.getElementId("trend"),x:0,y:0,width:n,height:a},s))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:m({x:0,y:0,width:n,height:a},h)}),this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:m({y:a/2,textAlign:"right",text:l,silent:!1},p)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:m({y:a/2,textAlign:"left",text:u,silent:!1},p)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:m({y:0,height:a},v)});var y=A(g,"width",Fo),x=A(g,"height",24);this.minHandler=this.addComponent(t,{component:cv,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(a-x)/2,width:y,height:x,cursor:"ew-resize",style:g}),this.maxHandler=this.addComponent(t,{component:cv,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(a-x)/2,width:y,height:x,cursor:"ew-resize",style:g})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,i,n){var a=this.cfg,o=a.start,s=a.end,l=a.width,u=a.minText,c=a.maxText,h=a.handlerStyle,f=a.height,v=o*l,d=s*l;this.trend&&(this.trend.update({width:l,height:f}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",v),t.attr("width",d-v);var p=A(h,"width",Fo);i.attr("text",u),n.attr("text",c);var g=this._dodgeText([v,d],i,n),y=g[0],x=g[1];this.minHandler&&(this.minHandler.update({x:v-p/2}),this.get("updateAutoRender")||this.minHandler.render()),S(y,function(w,b){return i.attr(b,w)}),this.maxHandler&&(this.maxHandler.update({x:d-p/2}),this.get("updateAutoRender")||this.maxHandler.render()),S(x,function(w,b){return n.attr(b,w)})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var i=t.findById(this.getElementId("foreground"));i.on("mousedown",this.onMouseDown("foreground")),i.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var i=this.cfg,n=i.start,a=i.end;switch(this.currentTarget){case"minHandler":{var o=0-n,s=1-n;return Math.min(s,Math.max(o,t))}case"maxHandler":{var o=0-a,s=1-a;return Math.min(s,Math.max(o,t))}case"foreground":{var o=0-n,s=1-a;return Math.min(s,Math.max(o,t))}}},e.prototype.updateStartEnd=function(t){var i=this.cfg,n=i.start,a=i.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":a+=t;break;case"foreground":n+=t,a+=t;break}this.set("start",n),this.set("end",a)},e.prototype._dodgeText=function(t,i,n){var a,o,s=this.cfg,l=s.handlerStyle,u=s.width,c=2,h=A(l,"width",Fo),f=t[0],v=t[1],d=!1;f>v&&(a=[v,f],f=a[0],v=a[1],o=[n,i],i=o[0],n=o[1],d=!0);var p=i.getBBox(),g=n.getBBox(),y=p.width>f-c?{x:f+h/2+c,textAlign:"left"}:{x:f-h/2-c,textAlign:"right"},x=g.width>u-v-c?{x:v-h/2-c,textAlign:"right"}:{x:v+h/2+c,textAlign:"left"};return d?[x,y]:[y,x]},e.prototype.draw=function(){var t=this.get("container"),i=t&&t.get("canvas");i&&i.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),i=t&&t.get("canvas");return i&&i.get("container")},e}(Qt),JM={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},Fl={default:JM,hover:{thumbColor:"rgba(0,0,0,0.2)"}},tA=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.clearEvents=Pr,t.onStartEvent=function(i){return function(n){t.isMobile=i,n.originalEvent.preventDefault();var a=i?A(n.originalEvent,"touches.0.clientX"):n.clientX,o=i?A(n.originalEvent,"touches.0.clientY"):n.clientY;t.startPos=t.cfg.isHorizontal?a:o,t.bindLaterEvent()}},t.bindLaterEvent=function(){var i=t.getContainerDOM(),n=[];t.isMobile?n=[Bi(i,"touchmove",t.onMouseMove),Bi(i,"touchend",t.onMouseUp),Bi(i,"touchcancel",t.onMouseUp)]:n=[Bi(i,"mousemove",t.onMouseMove),Bi(i,"mouseup",t.onMouseUp),Bi(i,"mouseleave",t.onMouseUp)],t.clearEvents=function(){n.forEach(function(a){a.remove()})}},t.onMouseMove=function(i){var n=t.cfg,a=n.isHorizontal,o=n.thumbOffset;i.preventDefault();var s=t.isMobile?A(i,"touches.0.clientX"):i.clientX,l=t.isMobile?A(i,"touches.0.clientY"):i.clientY,u=a?s:l,c=u-t.startPos;t.startPos=u,t.updateThumbOffset(o+c)},t.onMouseUp=function(i){i.preventDefault(),t.clearEvents()},t.onTrackClick=function(i){var n=t.cfg,a=n.isHorizontal,o=n.x,s=n.y,l=n.thumbLen,u=t.getContainerDOM(),c=u.getBoundingClientRect(),h=i.clientX,f=i.clientY,v=a?h-c.left-o-l/2:f-c.top-s-l/2,d=t.validateRange(v);t.updateThumbOffset(d)},t.onThumbMouseOver=function(){var i=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",i),t.draw()},t.onThumbMouseOut=function(){var i=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",i),t.draw()},t}return e.prototype.setRange=function(t,i){this.set("minLimit",t),this.set("maxLimit",i);var n=this.getValue(),a=St(n,t,i);n!==a&&!this.get("isInit")&&this.setValue(a)},e.prototype.getRange=function(){var t=this.get("minLimit")||0,i=this.get("maxLimit")||1;return{min:t,max:i}},e.prototype.setValue=function(t){var i=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*St(t,i.min,i.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return St(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:Fl})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var i=this.cfg,n=i.trackLen,a=i.theme,o=a===void 0?{default:{}}:a,s=H({},Fl,o).default,l=s.lineCap,u=s.trackColor,c=s.size,h=A(this.cfg,"size",c),f=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:n-h/2,y2:h/2,lineWidth:h,stroke:u,lineCap:l}:{x1:h/2,y1:0+h/2,x2:h/2,y2:n-h/2,lineWidth:h,stroke:u,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},e.prototype.renderThumbShape=function(t){var i=this.cfg,n=i.thumbOffset,a=i.thumbLen,o=i.theme,s=H({},Fl,o).default,l=s.size,u=s.lineCap,c=s.thumbColor,h=A(this.cfg,"size",l),f=this.get("isHorizontal")?{x1:n+h/2,y1:h/2,x2:n+a-h/2,y2:h/2,lineWidth:h,stroke:c,lineCap:u,cursor:"default"}:{x1:h/2,y1:n+h/2,x2:h/2,y2:n+a-h/2,lineWidth:h,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:f})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var i=t.findById(this.getElementId("track"));i.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),i=t&&t.get("canvas");return i&&i.get("container")},e.prototype.validateRange=function(t){var i=this.cfg,n=i.thumbLen,a=i.trackLen,o=t;return t+n>a?o=a-n:t+na.x?a.x:e,t=ta.y?a.y:i,n=n=i&&r<=n}function lA(r,e,t){if(K(r))return r.padEnd(e,t);if(R(r)){var i=r.length;if(i=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.add=function(){for(var e=[],t=0;te.minX&&this.minYe.minY},r.prototype.size=function(){return this.width*this.height},r.prototype.isPointIn=function(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY},r}();function uA(r){return[[r.minX,r.minY],[r.maxX,r.minY],[r.maxX,r.maxY],[r.minX,r.maxY]]}function La(r){if(r.isPolar&&!r.isTransposed)return(r.endAngle-r.startAngle)*r.getRadius();var e=r.convert({x:0,y:0}),t=r.convert({x:1,y:0});return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function cA(r){if(r.isPolar){var e=r.startAngle,t=r.endAngle;return t-e===Math.PI*2}return!1}function Ns(r,e){var t=r.getCenter();return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function hA(r,e){var t=!1;if(r)if(r.type==="theta"){var i=r.start,n=r.end;t=_i(e.x,i.x,n.x)&&_i(e.y,i.y,n.y)}else{var a=r.invert(e);t=_i(a.x,0,1)&&_i(a.y,0,1)}return t}function an(r,e){var t=r.getCenter();return Math.atan2(e.y-t.y,e.x-t.x)}function kc(r,e){e===void 0&&(e=0);var t=r.start,i=r.end,n=r.getWidth(),a=r.getHeight();if(r.isPolar){var o=r.startAngle,s=r.endAngle,l=r.getCenter(),u=r.getRadius();return{type:"path",startState:{path:zr(l.x,l.y,u+e,o,o)},endState:function(h){var f=(s-o)*h+o,v=zr(l.x,l.y,u+e,o,f);return{path:v}},attrs:{path:zr(l.x,l.y,u+e,o,s)}}}var c;return r.isTransposed?c={height:a+e*2}:c={width:n+e*2},{type:"rect",startState:{x:t.x-e,y:i.y-e,width:r.isTransposed?n+e*2:0,height:r.isTransposed?0:a+e*2},endState:c,attrs:{x:t.x-e,y:i.y-e,width:n+e*2,height:a+e*2}}}function fA(r,e){e===void 0&&(e=0);var t=r.start,i=r.end,n=r.getWidth(),a=r.getHeight(),o=Math.min(t.x,i.x),s=Math.min(t.y,i.y);return ie.fromRange(o-e,s-e,o+n+e,s+a+e)}var vA=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function dA(r){var e="linear";return vA.test(r)?e="timeCat":K(r)&&(e="cat"),e}function ay(r,e,t,i){return e===void 0&&(e={}),e.type?e.type:r.type!=="identity"&&Xi.includes(t)&&["interval"].includes(i)||r.isCategory?"cat":r.type}function pA(r,e,t){var i=e||[];if(rt(r)||B(iw(i,r))&&fe(t)){var n=gu("identity");return new n({field:r.toString(),values:[r]})}var a=Ve(i,r),o=A(t,"type",dA(a[0])),s=gu(o);return new s(m({field:r,values:a},t))}function gA(r,e){if(r.type!=="identity"&&e.type!=="identity"){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);r.change(t)}}function fa(r){return r.alias||r.field}function oy(r,e,t){var i=r.values,n=i.length,a;if(n===1)a=[.5,1];else{var o=1,s=0;cA(e)?e.isTransposed?(o=A(t,"widthRatio.multiplePie",1/1.3),s=1/n*o,a=[s/2,1-s/2]):a=[0,1-1/n]:(s=1/n/2,a=[s,1-s])}return a}function yA(r){var e=r.values.filter(function(t){return!B(t)&&!isNaN(t)});return Math.max.apply(Math,Z(Z([],U(e),!1),[B(r.max)?-1/0:r.max],!1))}function mA(r){var e,t;switch(r){case G.TOP:e={x:0,y:1},t={x:1,y:1};break;case G.RIGHT:e={x:1,y:0},t={x:1,y:1};break;case G.BOTTOM:e={x:0,y:0},t={x:1,y:0};break;case G.LEFT:e={x:0,y:0},t={x:0,y:1};break;default:e=t={x:0,y:0}}return{start:e,end:t}}function xA(r){var e,t;return r.isTransposed?(e={x:0,y:0},t={x:1,y:0}):(e={x:0,y:0},t={x:0,y:1}),{start:e,end:t}}function Ja(r,e){var t={start:{x:0,y:0},end:{x:0,y:0}};r.isRect?t=mA(e):r.isPolar&&(t=xA(r));var i=t.start,n=t.end;return{start:r.convert(i),end:r.convert(n)}}function sy(r){var e=r.start,t=r.end;return e.x===t.x}function dv(r,e){var t=r.start,i=r.end,n=sy(r);return n?(t.y-i.y)*(e.x-t.x)>0?1:-1:(i.x-t.x)*(t.y-e.y)>0?-1:1}function to(r,e){var t=A(r,["components","axis"],{});return H({},A(t,["common"],{}),H({},A(t,[e],{})))}function pv(r,e,t){var i=A(r,["components","axis"],{});return H({},A(i,["common","title"],{}),H({},A(i,[e,"title"],{})),t)}function Tl(r){var e=r.x,t=r.y,i=r.circleCenter,n=t.start>t.end,a=r.isTransposed?r.convert({x:n?0:1,y:0}):r.convert({x:0,y:n?0:1}),o=[a.x-i.x,a.y-i.y],s=[1,0],l=a.y>i.y?Kl(o,s):Kl(o,s)*-1,u=l+(e.end-e.start),c=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2));return{center:i,radius:c,startAngle:l,endAngle:u}}function Uo(r,e){return en(r)?r===!1?!1:{}:A(r,[e])}function gv(r,e){return A(r,"position",e)}function yv(r,e){return A(e,["title","text"],fa(r))}var gn=function(){function r(e,t){this.destroyed=!1,this.facets=[],this.view=e,this.cfg=H({},this.getDefaultCfg(),t)}return r.prototype.init=function(){this.container||(this.container=this.createContainer());var e=this.view.getData();this.facets=this.generateFacets(e)},r.prototype.render=function(){this.renderViews()},r.prototype.update=function(){},r.prototype.clear=function(){this.clearFacetViews()},r.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},r.prototype.facetToView=function(e){var t=e.region,i=e.data,n=e.padding,a=n===void 0?this.cfg.padding:n,o=this.view.createView({region:t,padding:a});o.data(i||[]),e.view=o,this.beforeEachView(o,e);var s=this.cfg.eachView;return s&&s(o,e),this.afterEachView(o,e),o},r.prototype.createContainer=function(){var e=this.view.getLayer(It.FORE);return e.addGroup()},r.prototype.renderViews=function(){this.createFacetViews()},r.prototype.createFacetViews=function(){var e=this;return this.facets.map(function(t){return e.facetToView(t)})},r.prototype.clearFacetViews=function(){var e=this;S(this.facets,function(t){t.view&&(e.view.removeView(t.view),t.view=void 0)})},r.prototype.parseSpacing=function(){var e=this.view.viewBBox,t=e.width,i=e.height,n=this.cfg.spacing;return n.map(function(a,o){return rt(a)?a/(o===0?t:i):parseFloat(a)/100})},r.prototype.getFieldValues=function(e,t){var i=[],n={};return S(e,function(a){var o=a[t];!B(o)&&!n[o]&&(i.push(o),n[o]=!0)}),i},r.prototype.getRegion=function(e,t,i,n){var a=U(this.parseSpacing(),2),o=a[0],s=a[1],l=(1+o)/(t===0?1:t)-o,u=(1+s)/(e===0?1:e)-s,c={x:(l+o)*i,y:(u+s)*n},h={x:c.x+l,y:c.y+u};return{start:c,end:h}},r.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},r.prototype.getDefaultTitleCfg=function(){var e=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:e}}},r.prototype.processAxis=function(e,t){var i=e.getOptions(),n=i.coordinate,a=e.geometries,o=A(n,"type","rect");if(o==="rect"&&a.length){B(i.axes)&&(i.axes={});var s=i.axes,l=U(a[0].getXYFields(),2),u=l[0],c=l[1],h=Uo(s,u),f=Uo(s,c);h!==!1&&(i.axes[u]=this.getXAxisOption(u,s,h,t)),f!==!1&&(i.axes[c]=this.getYAxisOption(c,s,f,t))}},r.prototype.getFacetDataFilter=function(e){return function(t){return ec(e,function(i){var n=i.field,a=i.value;return!B(a)&&n?t[n]===a:!0})}},r}(),ly={},wA=function(r){return ly[vn(r)]},yn=function(r,e){ly[vn(r)]=e},Ct=function(){function r(e,t){this.context=e,this.cfg=t,e.addAction(this)}return r.prototype.applyCfg=function(e){yt(this,e)},r.prototype.init=function(){this.applyCfg(this.cfg)},r.prototype.destroy=function(){this.context.removeAction(this),this.context=null},r}(),bA=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.callback=null},e}(Ct),Lc={};function CA(r,e){var t=Lc[r],i=null;if(t){var n=t.ActionClass,a=t.cfg;i=new n(e,a),i.name=r,i.init()}return i}function zs(r){var e=Lc[r];return A(e,"ActionClass")}function j(r,e,t){Lc[r]={ActionClass:e,cfg:t}}function SA(r,e){var t=new bA(e);return t.callback=r,t.name="callback",t}function MA(r,e){var t=[];if(r.length){t.push(["M",r[0].x,r[0].y]);for(var i=1,n=r.length;i=o[u]?1:0,f=c>Math.PI?1:0,v=t.convert(s),d=Ns(t,v);if(d>=.5)if(c===Math.PI*2){var p={x:(s.x+o.x)/2,y:(s.y+o.y)/2},g=t.convert(p);l.push(["A",d,d,0,f,h,g.x,g.y]),l.push(["A",d,d,0,f,h,v.x,v.y])}else l.push(["A",d,d,0,f,h,v.x,v.y]);return l}function FA(r){S(r,function(e,t){var i=e;if(i[0].toLowerCase()==="a"){var n=r[t-1],a=r[t+1];a&&a[0].toLowerCase()==="a"?n&&n[0].toLowerCase()==="l"&&(n[0]="M"):n&&n[0].toLowerCase()==="a"&&a&&a[0].toLowerCase()==="l"&&(a[0]="M")}})}var TA=function(r,e,t,i){var n,a=[],o=!!i,s,l,u,c,h,f,v;if(o){n=U(i,2),u=n[0],c=n[1];for(var d=0,p=r.length;d0&&n>0&&(i>=e||n>=e)}function vy(r,e){var t=r.getCanvasBBox();return fy(r,e)?t:null}function dy(r,e){var t=r.event.maskShapes;return t.map(function(i){return vy(i,e)}).filter(function(i){return!!i})}function LA(r,e){var t=r.event,i=t.target;return py(i,e)}function py(r,e){return fy(r,e)?r.attr("path"):null}function IA(r,e){var t=r.event.maskShapes;return t.map(function(i){return py(i,e)})}function Hr(r){var e=r.event,t,i=e.target;return i&&(t=i.get("element")),t}function Mi(r){var e=r.event,t=e.target,i;return t&&(i=t.get("delegateObject")),i}function gy(r){var e=r.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function va(r){return r&&r.component&&r.component.isList()}function yy(r){return r&&r.component&&r.component.isSlider()}function da(r){var e=r.event,t=e.target;return t&&(t==null?void 0:t.get("name"))==="mask"||Gs(r)}function Gs(r){var e;return((e=r.event.target)===null||e===void 0?void 0:e.get("name"))==="multi-mask"}function Ic(r,e){var t=r.event.target;if(Gs(r))return PA(r,e);if(t.get("type")==="path"){var i=LA(r,e);return i?by(r.view,i):void 0}var n=hy(r,e);return n?Vs(r.view,n):null}function PA(r,e){var t=r.event.target;if(t.get("type")==="path"){var i=IA(r,e);return i.length>0?i.flatMap(function(a){return by(r.view,a)}):null}var n=dy(r,e);return n.length>0?n.flatMap(function(a){return Vs(r.view,a)}):null}function my(r,e,t){if(Gs(r))return DA(r,e,t);var i=hy(r,t);return i?xy(i,r,e):null}function xy(r,e,t){var i=e.view,n=Su(i,t,{x:r.x,y:r.y}),a=Su(i,t,{x:r.maxX,y:r.maxY}),o={minX:n.x,minY:n.y,maxX:a.x,maxY:a.y};return Vs(t,o)}function DA(r,e,t){var i=dy(r,t);return i.length>0?i.flatMap(function(n){return xy(n,r,e)}):null}function _t(r){var e=r.geometries,t=[];return S(e,function(i){var n=i.elements;t=t.concat(n)}),r.views&&r.views.length&&S(r.views,function(i){t=t.concat(_t(i))}),t}function OA(r,e,t){var i=_t(r);return i.filter(function(n){return Ye(n,e)===t})}function wy(r,e){var t=r.geometries,i=[];return S(t,function(n){var a=n.getElementsBy(function(o){return o.hasState(e)});i=i.concat(a)}),i}function Ye(r,e){var t=r.getModel(),i=t.data,n;return R(i)?n=i[0][e]:n=i[e],n}function BA(r,e){return!(e.minX>r.maxX||e.maxXr.maxY||e.maxY=e.x&&r.y<=e.y&&r.maxY>e.y}function Ke(r){var e=r.parent,t=null;return e&&(t=e.views.filter(function(i){return i!==r})),t}function NA(r,e){var t=r.getCoordinate();return t.invert(e)}function Su(r,e,t){var i=NA(r,t);return e.getCoordinate().convert(i)}function Sy(r,e,t,i){var n=!1;return S(r,function(a){if(a[t]===e[t]&&a[i]===e[i])return n=!0,!1}),n}function on(r,e){var t=r.getScaleByField(e);return!t&&r.views&&S(r.views,function(i){if(t=on(i,e),t)return!1}),t}var zA=function(){function r(e){this.actions=[],this.event=null,this.cacheMap={},this.view=e}return r.prototype.cache=function(){for(var e=[],t=0;t=0&&t.splice(i,1)},r.prototype.getCurrentPoint=function(){var e=this.event;if(e)if(e.target instanceof HTMLElement){var t=this.view.getCanvas(),i=t.getPointByClient(e.clientX,e.clientY);return i}else return{x:e.x,y:e.y};return null},r.prototype.getCurrentShape=function(){return A(this.event,["gEvent","shape"])},r.prototype.isInPlot=function(){var e=this.getCurrentPoint();return e?this.view.isPointInPlot(e):!1},r.prototype.isInShape=function(e){var t=this.getCurrentShape();return t?t.get("name")===e:!1},r.prototype.isInComponent=function(e){var t=Cy(this.view),i=this.getCurrentPoint();return i?!!t.find(function(n){var a=n.getBBox();return e?n.get("name")===e&&xv(a,i):xv(a,i)}):!1},r.prototype.destroy=function(){S(this.actions.slice(),function(e){e.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},r}(),GA=function(){function r(e,t){this.view=e,this.cfg=t}return r.prototype.init=function(){this.initEvents()},r.prototype.initEvents=function(){},r.prototype.clearEvents=function(){},r.prototype.destroy=function(){this.clearEvents()},r}();function wv(r,e,t){var i=r.split(":"),n=i[0],a=e.getAction(n)||CA(n,e);if(!a)throw new Error("There is no action named ".concat(n));var o=i[1];return{action:a,methodName:o,arg:t}}function bv(r){var e=r.action,t=r.methodName,i=r.arg;if(e[t])e[t](i);else throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(t))}var ge={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},VA=function(r){E(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.callbackCaches={},n.emitCaches={},n.steps=i,n}return e.prototype.init=function(){this.initContext(),r.prototype.init.call(this)},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;S(this.steps,function(i,n){S(i,function(a){var o=t.getActionCallback(n,a);o&&t.bindEvent(a.trigger,o)})})},e.prototype.clearEvents=function(){var t=this;S(this.steps,function(i,n){S(i,function(a){var o=t.getActionCallback(n,a);o&&t.offEvent(a.trigger,o)})})},e.prototype.initContext=function(){var t=this.view,i=new zA(t);this.context=i;var n=this.steps;S(n,function(a){S(a,function(o){if(_(o.action))o.actionObject={action:SA(o.action,i),methodName:"execute"};else if(K(o.action))o.actionObject=wv(o.action,i,o.arg);else if(R(o.action)){var s=o.action,l=R(o.arg)?o.arg:[o.arg];o.actionObject=[],S(s,function(u,c){o.actionObject.push(wv(u,i,l[c]))})}})})},e.prototype.isAllowStep=function(t){var i=this.currentStepName,n=this.steps;if(i===t||t===ge.SHOW_ENABLE)return!0;if(t===ge.PROCESSING)return i===ge.START;if(t===ge.START)return i!==ge.PROCESSING;if(t===ge.END)return i===ge.PROCESSING||i===ge.START;if(t===ge.ROLLBACK){if(n[ge.END])return i===ge.END;if(i===ge.START)return!0}return!1},e.prototype.isAllowExecute=function(t,i){if(this.isAllowStep(t)){var n=this.getKey(t,i);return i.once&&this.emitCaches[n]?!1:i.isEnable?i.isEnable(this.context):!0}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,i){t!==ge.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,i);this.emitCaches[n]=!0},e.prototype.getKey=function(t,i){return t+i.trigger+i.action},e.prototype.getActionCallback=function(t,i){var n=this,a=this.context,o=this.callbackCaches,s=i.actionObject;if(i.action&&s){var l=this.getKey(t,i);if(!o[l]){var u=function(c){a.event=c,n.isAllowExecute(t,i)?(R(s)?S(s,function(h){a.event=c,bv(h)}):(a.event=c,bv(s)),n.afterExecute(t,i),i.callback&&(a.event=c,i.callback(a))):a.event=null};i.debounce?o[l]=Cp(u,i.debounce.wait,i.debounce.immediate):i.throttle?o[l]=nc(u,i.throttle.wait,{leading:i.throttle.leading,trailing:i.throttle.trailing}):o[l]=u}return o[l]}return null},e.prototype.bindEvent=function(t,i){var n=t.split(":");n[0]==="window"?window.addEventListener(n[1],i):n[0]==="document"?document.addEventListener(n[1],i):this.view.on(t,i)},e.prototype.offEvent=function(t,i){var n=t.split(":");n[0]==="window"?window.removeEventListener(n[1],i):n[0]==="document"?document.removeEventListener(n[1],i):this.view.off(t,i)},e}(GA),My={};function YA(r){return My[vn(r)]}function it(r,e){My[vn(r)]=e}function $A(r,e,t){var i=YA(r);if(!i)return null;if(fi(i)){var n=yt(ye(i),t);return new VA(e,n)}else{var a=i;return new a(e,t)}}function HA(r){return{title:{autoRotate:!0,position:"center",spacing:r.axisTitleSpacing,style:{fill:r.axisTitleTextFillColor,fontSize:r.axisTitleTextFontSize,lineHeight:r.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:r.fontFamily},iconStyle:{fill:r.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:r.axisLabelOffset,style:{fill:r.axisLabelFillColor,fontSize:r.axisLabelFontSize,lineHeight:r.axisLabelLineHeight,fontFamily:r.fontFamily}},line:{style:{lineWidth:r.axisLineBorder,stroke:r.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:r.axisGridBorderColor,lineWidth:r.axisGridBorder,lineDash:r.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:r.axisTickLineBorder,stroke:r.axisTickLineBorderColor},alignTick:!0,length:r.axisTickLineLength},subTickLine:null,animate:!0}}function XA(r){return{title:null,marker:{symbol:"circle",spacing:r.legendMarkerSpacing,style:{r:r.legendCircleMarkerSize,fill:r.legendMarkerColor}},itemName:{spacing:5,style:{fill:r.legendItemNameFillColor,fontFamily:r.fontFamily,fontSize:r.legendItemNameFontSize,lineHeight:r.legendItemNameLineHeight,fontWeight:r.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:r.legendPageNavigatorMarkerSize,inactiveFill:r.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:r.legendPageNavigatorMarkerInactiveFillOpacity,fill:r.legendPageNavigatorMarkerFillColor,opacity:r.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:r.legendPageNavigatorTextFillColor,fontSize:r.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:r.legendItemSpacing,itemMarginBottom:r.legendItemMarginBottom,padding:r.legendPadding}}function Ay(r){var e,t={point:{default:{fill:r.pointFillColor,r:r.pointSize,stroke:r.pointBorderColor,lineWidth:r.pointBorder,fillOpacity:r.pointFillOpacity},active:{stroke:r.pointActiveBorderColor,lineWidth:r.pointActiveBorder},selected:{stroke:r.pointSelectedBorderColor,lineWidth:r.pointSelectedBorder},inactive:{fillOpacity:r.pointInactiveFillOpacity,strokeOpacity:r.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:r.hollowPointFillColor,lineWidth:r.hollowPointBorder,stroke:r.hollowPointBorderColor,strokeOpacity:r.hollowPointBorderOpacity,r:r.hollowPointSize},active:{stroke:r.hollowPointActiveBorderColor,strokeOpacity:r.hollowPointActiveBorderOpacity},selected:{lineWidth:r.hollowPointSelectedBorder,stroke:r.hollowPointSelectedBorderColor,strokeOpacity:r.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:r.hollowPointInactiveBorderOpacity}},area:{default:{fill:r.areaFillColor,fillOpacity:r.areaFillOpacity,stroke:null},active:{fillOpacity:r.areaActiveFillOpacity},selected:{fillOpacity:r.areaSelectedFillOpacity},inactive:{fillOpacity:r.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:r.hollowAreaBorderColor,lineWidth:r.hollowAreaBorder,strokeOpacity:r.hollowAreaBorderOpacity},active:{fill:null,lineWidth:r.hollowAreaActiveBorder},selected:{fill:null,lineWidth:r.hollowAreaSelectedBorder},inactive:{strokeOpacity:r.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:r.intervalFillColor,fillOpacity:r.intervalFillOpacity},active:{stroke:r.intervalActiveBorderColor,lineWidth:r.intervalActiveBorder},selected:{stroke:r.intervalSelectedBorderColor,lineWidth:r.intervalSelectedBorder},inactive:{fillOpacity:r.intervalInactiveFillOpacity,strokeOpacity:r.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:r.hollowIntervalFillColor,stroke:r.hollowIntervalBorderColor,lineWidth:r.hollowIntervalBorder,strokeOpacity:r.hollowIntervalBorderOpacity},active:{stroke:r.hollowIntervalActiveBorderColor,lineWidth:r.hollowIntervalActiveBorder,strokeOpacity:r.hollowIntervalActiveBorderOpacity},selected:{stroke:r.hollowIntervalSelectedBorderColor,lineWidth:r.hollowIntervalSelectedBorder,strokeOpacity:r.hollowIntervalSelectedBorderOpacity},inactive:{stroke:r.hollowIntervalInactiveBorderColor,lineWidth:r.hollowIntervalInactiveBorder,strokeOpacity:r.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:r.lineBorderColor,lineWidth:r.lineBorder,strokeOpacity:r.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:r.lineActiveBorder},selected:{lineWidth:r.lineSelectedBorder},inactive:{strokeOpacity:r.lineInactiveBorderOpacity}}},i=HA(r),n=XA(r);return{background:r.backgroundColor,defaultColor:r.brandColor,subColor:r.subColor,semanticRed:r.paletteSemanticRed,semanticGreen:r.paletteSemanticGreen,padding:"auto",fontFamily:r.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:r.paletteQualitative10,colors20:r.paletteQualitative20,sequenceColors:r.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:function(a){var o=a.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=ha(a.getModel(),o),l=s.startAngle,u=s.endAngle,c=(l+u)/2,h=7.5,f=h*Math.cos(c),v=h*Math.sin(c);return{matrix:Rt(null,[["t",f,v]])}}return t.interval.selected}}},"hollow-rect":{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},line:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},tick:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},funnel:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}},pyramid:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},line:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},dot:{default:{style:m(m({},t.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:m(m({},t.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:m(m({},t.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:m(m({},t.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:m(m({},t.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:m(m({},t.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:m(m({},t.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:m(m({},t.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hvh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},polygon:{polygon:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},point:{circle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},square:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},bowtie:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},diamond:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},hexagon:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},triangle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"triangle-down":{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"hollow-circle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-square":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-bowtie":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-diamond":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-hexagon":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle-down":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},cross:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},tick:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},plus:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},hyphen:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},line:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}}},area:{area:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},smooth:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},line:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"smooth-line":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}},schema:{candle:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},box:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}}},edge:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},arc:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},violin:{violin:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hollow:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"hollow-smooth":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}}},components:{axis:{common:i,top:{position:"top",grid:null,title:null,verticalLimitLength:1/2},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:1/2},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:H({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:H({},i.grid,{line:{type:"circle"}})}},legend:{common:n,right:{layout:"vertical",padding:r.legendVerticalPadding},left:{layout:"vertical",padding:r.legendVerticalPadding},top:{layout:"horizontal",padding:r.legendHorizontalPadding},bottom:{layout:"horizontal",padding:r.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:r.sliderRailHeight,defaultLength:r.sliderRailWidth,style:{fill:r.sliderRailFillColor,stroke:r.sliderRailBorderColor,lineWidth:r.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:r.sliderLabelTextFillColor,fontSize:r.sliderLabelTextFontSize,lineHeight:r.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:r.fontFamily}},handler:{size:r.sliderHandlerWidth,style:{fill:r.sliderHandlerFillColor,stroke:r.sliderHandlerBorderColor}},slidable:!0,padding:n.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:r.tooltipCrosshairsBorderColor,lineWidth:r.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(mr)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:r.tooltipContainerFillColor,opacity:r.tooltipContainerFillOpacity,boxShadow:r.tooltipContainerShadow,borderRadius:"".concat(r.tooltipContainerBorderRadius,"px"),color:r.tooltipTextFillColor,fontSize:"".concat(r.tooltipTextFontSize,"px"),fontFamily:r.fontFamily,lineHeight:"".concat(r.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(xr)]={marginBottom:"12px",marginTop:"12px"},e["".concat(ca)]={margin:0,listStyleType:"none",padding:0},e["".concat(Ds)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(Os)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(Bs)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:r.annotationArcBorderColor,lineWidth:r.annotationArcBorder},animate:!0},line:{style:{stroke:r.annotationLineBorderColor,lineDash:r.annotationLineDash,lineWidth:r.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:r.annotationTextFillColor,stroke:r.annotationTextBorderColor,lineWidth:r.annotationTextBorder,fontSize:r.annotationTextFontSize,textAlign:"start",fontFamily:r.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:r.annotationTextFillColor,stroke:r.annotationTextBorderColor,lineWidth:r.annotationTextBorder,fontSize:r.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:r.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:r.annotationRegionBorder,stroke:r.annotationRegionBorderColor,fill:r.annotationRegionFillColor,fillOpacity:r.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:r.brandColor,lineWidth:2}},line:{style:{stroke:r.annotationLineBorderColor,lineWidth:r.annotationLineBorder},length:r.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:r.annotationTextFillColor,stroke:r.annotationTextBorderColor,lineWidth:r.annotationTextBorder,fontSize:r.annotationTextFontSize,fontFamily:r.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:r.annotationRegionFillColor,fillOpacity:r.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:r.annotationTextFillColor,stroke:r.annotationTextBorderColor,lineWidth:r.annotationTextBorder,fontSize:r.annotationTextFontSize,fontFamily:r.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:r.cSliderBackgroundFillColor,opacity:r.cSliderBackgroundFillOpacity},foregroundStyle:{fill:r.cSliderForegroundFillColor,opacity:r.cSliderForegroundFillOpacity},handlerStyle:{width:r.cSliderHandlerWidth,height:r.cSliderHandlerHeight,fill:r.cSliderHandlerFillColor,opacity:r.cSliderHandlerFillOpacity,stroke:r.cSliderHandlerBorderColor,lineWidth:r.cSliderHandlerBorder,radius:r.cSliderHandlerBorderRadius,highLightFill:r.cSliderHandlerHighlightFillColor},textStyle:{fill:r.cSliderTextFillColor,opacity:r.cSliderTextFillOpacity,fontSize:r.cSliderTextFontSize,lineHeight:r.cSliderTextLineHeight,fontWeight:r.cSliderTextFontWeight,stroke:r.cSliderTextBorderColor,lineWidth:r.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:r.scrollbarTrackFillColor,thumbColor:r.scrollbarThumbFillColor}},hover:{style:{thumbColor:r.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:r.labelFillColor,fontSize:r.labelFontSize,fontFamily:r.fontFamily,stroke:r.labelBorderColor,lineWidth:r.labelBorder},fillColorDark:r.labelFillColorDark,fillColorLight:r.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:r.innerLabelFillColor,fontSize:r.innerLabelFontSize,fontFamily:r.fontFamily,stroke:r.innerLabelBorderColor,lineWidth:r.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:r.overflowLabelFillColor,fontSize:r.overflowLabelFontSize,fontFamily:r.fontFamily,stroke:r.overflowLabelBorderColor,lineWidth:r.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:r.labelLineBorder}},autoRotate:!0}}}var vt={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Ri={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},WA=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],_A=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],qA=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Fy=function(r){r===void 0&&(r={});var e=r.paletteQualitative10,t=e===void 0?WA:e,i=r.paletteQualitative20,n=i===void 0?_A:i,a=r.brandColor,o=a===void 0?t[0]:a,s={backgroundColor:"transparent",brandColor:o,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:t,paletteQualitative20:n,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:qA,fontFamily:`"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", - "Noto Color Emoji"`,axisLineBorderColor:vt[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:vt[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Ri[85],axisTickLineBorderColor:vt[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:vt[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:vt[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:vt[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:vt[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:o,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:vt[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:vt[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:vt[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:vt[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:vt[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:vt[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:vt[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:vt[25],annotationArcBorderColor:vt[15],annotationArcBorder:1,annotationLineBorderColor:vt[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:vt[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:vt[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:vt[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:vt[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:vt[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Ri[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:vt[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Ri[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:vt[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:o,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Ri[100],pointBorderOpacity:1,pointActiveBorderColor:vt[100],pointSelectedBorder:2,pointSelectedBorderColor:vt[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:o,hollowPointBorderOpacity:.95,hollowPointFillColor:Ri[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:vt[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:vt[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:o,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:o,areaFillOpacity:.25,areaActiveFillColor:o,areaActiveFillOpacity:.5,areaSelectedFillColor:o,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:o,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:vt[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:vt[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:o,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:vt[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:vt[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:o,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Ri[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:vt[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:vt[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return m(m({},s),r)};Fy();function Zo(r){var e=r.styleSheet,t=e===void 0?{}:e,i=gt(r,["styleSheet"]),n=Fy(t);return H({},Ay(n),i)}var UA=Zo({}),Mu={default:UA};function Un(r){return A(Mu,vn(r),Mu.default)}function jA(r,e){Mu[vn(r)]=Zo(e)}function Cv(r,e,t){var i=t.translate(r),n=t.translate(e);return Xt(i,n)}function ZA(r,e){var t=e.coordinate,i=e.getXScale(),n=i.range,a=n[n.length-1],o=n[0],s=t.invert(r),l=s.x;return t.isPolar&&l>(1+a)/2&&(l=o),i.translate(i.invert(l))}function Sv(r,e,t){var i=t.coordinate,n=t.getYScale(),a=n.field,o=i.invert(e),s=n.invert(o.y),l=ze(r,function(u){var c=u[bt];return c[a][0]<=s&&c[a][1]>=s});return l||r[r.length-1]}var QA=Aa(function(r){if(r.isCategory)return 1;for(var e=r.values,t=e.length,i=r.translate(e[0]),n=i,a=0;an&&(n=s)}return(n-i)/(t-1)});function KA(r,e,t){var i=e.getAttribute("position"),n=i.getFields(),a=e.scales,o=_(t)||!t?n[0]:t,s=a[o],l=s?s.getText(r[o]):r[o]||o;return _(t)?t(l,r):l}function JA(r){var e=tc(r.attributes);return qt(e,function(t){return ni(Xi,t.type)})}function Ty(r){var e,t,i=JA(r),n;try{for(var a=ht(i),o=a.next();!o.done;o=a.next()){var s=o.value,l=s.getScale(s.type);if(l&&l.isLinear){var u=A(r.scaleDefs,l.field),c=ay(l,u,s.type,r.type);if(c!=="cat"){n=l;break}}}}catch(v){e={error:v}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}var h=r.getXScale(),f=r.getYScale();return n||f||h}function tF(r,e){var t=e.field,i=r[t];if(R(i)){var n=i.map(function(a){return e.getText(a)});return n.join("-")}return e.getText(i)}function eF(r,e){var t,i=e.getGroupScales();if(i.length&&(t=i[0]),t){var n=t.field;return t.getText(r[n])}var a=Ty(e);return fa(a)}function Ey(r,e,t){if(e.length===0)return null;var i=t.type,n=t.getXScale(),a=t.getYScale(),o=n.field,s=a.field,l=null;if(i==="heatmap"||i==="point"){for(var u=t.coordinate,c=u.invert(r),h=n.invert(c.x),f=a.invert(c.y),v=1/0,d=0;d=w)if(T)R(l)||(l=[]),l.push(L);else{l=L;break}}R(l)&&(l=Sv(l,r,t))}else{var k=void 0;if(!n.isLinear&&n.type!=="timeCat"){for(var d=0;dn.translate(F)||wn.max||wMath.abs(n.translate(k[bt][o])-w)&&(b=k)}var U=QA(t.getXScale());return!l&&Math.abs(n.translate(b[bt][o])-w)<=U/2&&(l=b),l}function Dc(r,e,t,i){var n,a;t===void 0&&(t=""),i===void 0&&(i=!1);var o=r[bt],s=KA(o,e,t),l=e.tooltipOption,u=e.theme.defaultColor,c=[],h,f;function v(L,k){if(i||!B(k)&&k!==""){var P={title:s,data:o,mappingData:r,name:L,value:k,color:r.color||u,marker:!0};c.push(P)}}if(mt(l)){var d=l.fields,p=l.callback;if(p){var g=d.map(function(L){return r[bt][L]}),y=p.apply(void 0,Z([],q(g),!1)),x=m({data:r[bt],mappingData:r,title:s,color:r.color||u,marker:!0},y);c.push(x)}else{var b=e.scales;try{for(var w=ht(d),C=w.next();!C.done;C=w.next()){var M=C.value;if(!B(o[M])){var F=b[M];h=fa(F),f=F.getText(o[M]),v(h,f)}}}catch(L){n={error:L}}finally{try{C&&!C.done&&(a=w.return)&&a.call(w)}finally{if(n)throw n.error}}}}else{var T=Ty(e);f=tF(o,T),h=eF(o,e),v(h,f)}return c}function Mv(r,e,t,i){var n,a,o=i.showNil,s=[],l=r.dataArray;if(!fe(l)){r.sort(l);try{for(var u=ht(l),c=u.next();!c.done;c=u.next()){var h=c.value,f=Ey(e,h,r);if(f){var v=r.getElementId(f),d=r.elementsMap[v];if(r.type==="heatmap"||d.visible){var p=Dc(f,r,t,o);p.length&&s.push(p)}}}}catch(g){n={error:g}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}}return s}function Av(r,e,t,i){var n=i.showNil,a=[],o=r.container,s=o.getShape(e.x,e.y);if(s&&s.get("visible")&&s.get("origin")){var l=s.get("origin").mappingData,u=Dc(l,r,t,n);u.length&&a.push(u)}return a}function Au(r,e,t){var i,n,a=[],o=r.geometries,s=t.shared,l=t.title,u=t.reversed;try{for(var c=ht(o),h=c.next();!h.done;h=c.next()){var f=h.value;if(f.visible&&f.tooltipOption!==!1){var v=f.type,d=void 0;["point","edge","polygon"].includes(v)?d=Av(f,e,l,t):["area","line","path","heatmap"].includes(v)||s!==!1?d=Mv(f,e,l,t):d=Av(f,e,l,t),d.length&&(u&&d.reverse(),a.push(d))}}}catch(p){i={error:p}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}return a}function rF(r,e,t){var i,n,a=Au(r,e,t);try{for(var o=ht(r.views),s=o.next();!s.done;s=o.next()){var l=s.value;a=a.concat(Au(l,e,t))}}catch(u){i={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function iF(r){return!rt(r)&&!R(r)}function Oc(r){r===void 0&&(r=0);var e=R(r)?r:[r];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=Z(Z([],q(e),!1),q(e),!1);break;case 3:e=Z(Z([],q(e),!1),[e[1]],!1);break;default:e=e.slice(0,4);break}return e}var Bc={};function Li(r,e){Bc[r]=e}function nF(){return Object.keys(Bc)}function aF(r){return Bc[r]}var oF=function(){function r(e){this.option=this.wrapperOption(e)}return r.prototype.update=function(e){return this.option=this.wrapperOption(e),this},r.prototype.hasAction=function(e){var t=this.option.actions;return cs(t,function(i){return i[0]===e})},r.prototype.create=function(e,t){var i=this.option,n=i.type,a=i.cfg,o=n==="theta",s=m({start:e,end:t},a),l=LS(o?"polar":n);return this.coordinate=new l(s),this.coordinate.type=n,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},r.prototype.adjust=function(e,t){return this.coordinate.update({start:e,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},r.prototype.rotate=function(e){return this.option.actions.push(["rotate",e]),this},r.prototype.reflect=function(e){return this.option.actions.push(["reflect",e]),this},r.prototype.scale=function(e,t){return this.option.actions.push(["scale",e,t]),this},r.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},r.prototype.getOption=function(){return this.option},r.prototype.getCoordinate=function(){return this.coordinate},r.prototype.wrapperOption=function(e){return m({type:"rect",actions:[],cfg:{}},e)},r.prototype.execActions=function(e){var t=this,i=this.option.actions;S(i,function(n){var a,o=q(n),s=o[0],l=o.slice(1),u=B(e)?!0:e.includes(s);u&&(a=t.coordinate)[s].apply(a,Z([],q(l),!1))})},r}(),Tt=function(){function r(e,t,i){this.view=e,this.gEvent=t,this.data=i,this.type=t.type}return r.fromData=function(e,t,i){return new r(e,new Fa(t,{}),i)},Object.defineProperty(r.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),r.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},r.prototype.clone=function(){return new r(this.view,this.gEvent,this.data)},r}();function sF(r){var e=r.getController("axis"),t=r.getController("legend"),i=r.getController("annotation"),n=r.getController("slider"),a=r.getController("scrollbar");[e,n,a,t,i].forEach(function(o){o&&o.layout()})}var lF=function(){function r(){this.scales=new Map,this.syncScales=new Map}return r.prototype.createScale=function(e,t,i,n){var a=i,o=this.getScaleMeta(n);if(t.length===0&&o){var s=o.scale,l={type:s.type};s.isCategory&&(l.values=s.values),a=H(l,o.scaleDef,i)}var u=pA(e,t,a);return this.cacheScale(u,i,n),u},r.prototype.sync=function(e,t){var i=this;this.syncScales.forEach(function(n,a){var o=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,l=[];S(n,function(u){var c=i.getScale(u);s=rt(c.max)?Math.max(s,c.max):s,o=rt(c.min)?Math.min(o,c.min):o,S(c.values,function(h){l.includes(h)||l.push(h)})}),S(n,function(u){var c=i.getScale(u);if(c.isContinuous)c.change({min:o,max:s,values:l});else if(c.isCategory){var h=c.range,f=i.getScaleMeta(u);l&&!A(f,["scaleDef","range"])&&(h=oy(H({},c,{values:l}),e,t)),c.change({values:l,range:h})}})})},r.prototype.cacheScale=function(e,t,i){var n=this.getScaleMeta(i);n&&n.scale.type===e.type?(gA(n.scale,e),n.scaleDef=t):(n={key:i,scale:e,scaleDef:t},this.scales.set(i,n));var a=this.getSyncKey(n);if(n.syncKey=a,this.removeFromSyncScales(i),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(i)}},r.prototype.getScale=function(e){var t=this.getScaleMeta(e);if(!t){var i=Nt(e.split("-")),n=this.syncScales.get(i);n&&n.length&&(t=this.getScaleMeta(n[0]))}return t&&t.scale},r.prototype.deleteScale=function(e){var t=this.getScaleMeta(e);if(t){var i=t.syncKey,n=this.syncScales.get(i);if(n&&n.length){var a=n.indexOf(e);a!==-1&&n.splice(a,1)}}this.scales.delete(e)},r.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},r.prototype.removeFromSyncScales=function(e){var t=this;this.syncScales.forEach(function(i,n){var a=i.indexOf(e);if(a!==-1)return i.splice(a,1),i.length===0&&t.syncScales.delete(n),!1})},r.prototype.getSyncKey=function(e){var t=e.scale,i=e.scaleDef,n=t.field,a=A(i,["sync"]);return a===!0?n:a===!1?void 0:a},r.prototype.getScaleMeta=function(e){return this.scales.get(e)},r}(),To=function(){function r(e,t,i,n){e===void 0&&(e=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),this.top=e,this.right=t,this.bottom=i,this.left=n}return r.instance=function(e,t,i,n){return e===void 0&&(e=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),new r(e,t,i,n)},r.prototype.max=function(e){var t=q(e,4),i=t[0],n=t[1],a=t[2],o=t[3];return this.top=Math.max(this.top,i),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,a),this.left=Math.max(this.left,o),this},r.prototype.shrink=function(e){var t=q(e,4),i=t[0],n=t[1],a=t[2],o=t[3];return this.top+=i,this.right+=n,this.bottom+=a,this.left+=o,this},r.prototype.inc=function(e,t){var i=e.width,n=e.height;switch(t){case G.TOP:case G.TOP_LEFT:case G.TOP_RIGHT:this.top+=n;break;case G.RIGHT:case G.RIGHT_TOP:case G.RIGHT_BOTTOM:this.right+=i;break;case G.BOTTOM:case G.BOTTOM_LEFT:case G.BOTTOM_RIGHT:this.bottom+=n;break;case G.LEFT:case G.LEFT_TOP:case G.LEFT_BOTTOM:this.left+=i;break}return this},r.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},r.prototype.clone=function(){return new(r.bind.apply(r,Z([void 0],q(this.getPadding()),!1)))},r}();function uF(r){var e=r.padding;if(!iF(e))return new(To.bind.apply(To,Z([void 0],q(Oc(e)),!1)));var t=r.viewBBox,i=new To,n=[],a=[],o=[];return S(r.getComponents(),function(s){var l=s.type;l===Gt.AXIS?n.push(s):[Gt.LEGEND,Gt.SLIDER,Gt.SCROLLBAR].includes(l)?a.push(s):l!==Gt.GRID&&l!==Gt.TOOLTIP&&o.push(s)}),S(n,function(s){var l=s.component,u=l.getLayoutBBox(),c=new ie(u.x,u.y,u.width,u.height),h=c.exceed(t);i.max(h)}),S(a,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),h=l.get("padding"),f=new ie(c.x,c.y,c.width,c.height).expand(h);i.inc(f,u)}),S(o,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),h=new ie(c.x,c.y,c.width,c.height);i.inc(h,u)}),i}function cF(r,e,t){var i=t.instance();e.forEach(function(n){n.autoPadding=i.max(n.autoPadding.getPadding())})}var ky=function(r){E(e,r);function e(t){var i=r.call(this,{visible:t.visible})||this;i.views=[],i.geometries=[],i.controllers=[],i.interactions={},i.limitInPlot=!1,i.options={data:[],animate:!0},i.usedControllers=nF(),i.scalePool=new lF,i.layoutFunc=sF,i.isPreMouseInPlot=!1,i.isDataChanged=!1,i.isCoordinateChanged=!1,i.createdScaleKeys=new Map,i.onCanvasEvent=function(b){var w=b.name;if(!w.includes(":")){var C=i.createViewEvent(b);i.doPlotEvent(C),i.emit(w,C)}},i.onDelegateEvents=function(b){var w=b.name;if(w.includes(":")){var C=i.createViewEvent(b);i.emit(w,C)}};var n=t.id,a=n===void 0?jr("view"):n,o=t.parent,s=t.canvas,l=t.backgroundGroup,u=t.middleGroup,c=t.foregroundGroup,h=t.region,f=h===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:h,v=t.padding,d=t.appendPadding,p=t.theme,g=t.options,y=t.limitInPlot,x=t.syncViewPadding;return i.parent=o,i.canvas=s,i.backgroundGroup=l,i.middleGroup=u,i.foregroundGroup=c,i.region=f,i.padding=v,i.appendPadding=d,i.options=m(m({},i.options),g),i.limitInPlot=y,i.id=a,i.syncViewPadding=x,i.themeObject=mt(p)?H({},Un("default"),Zo(p)):Un(p),i.init(),i}return e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,i){t===void 0&&(t=!1),this.emit(ot.BEFORE_RENDER,Tt.fromData(this,ot.BEFORE_RENDER,i)),this.paint(t),this.emit(ot.AFTER_RENDER,Tt.fromData(this,ot.AFTER_RENDER,i)),this.visible===!1&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(ot.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var i=this.geometries,n=0;n');k.appendChild(P);var O=Wh(k,l,a,o),N=Aw(f),V=new N.Canvas(m({container:P,pixelRatio:v,localRefresh:p,supportCSSTransform:b},O));return i=r.call(this,{parent:null,canvas:V,backgroundGroup:V.addGroup({zIndex:qi.BG}),middleGroup:V.addGroup({zIndex:qi.MID}),foregroundGroup:V.addGroup({zIndex:qi.FORE}),padding:u,appendPadding:c,visible:y,options:M,limitInPlot:F,theme:T,syncViewPadding:L})||this,i.onResize=Cp(function(){i.forceFit()},300),i.ele=k,i.canvas=V,i.width=O.width,i.height=O.height,i.autoFit=l,i.localRefresh=p,i.renderer=f,i.wrapperElement=P,i.updateCanvasStyle(),i.bindAutoFit(),i.initDefaultInteractions(C),i}return e.prototype.initDefaultInteractions=function(t){var i=this;S(t,function(n){i.interaction(n)})},e.prototype.aria=function(t){var i="aria-label";t===!1?this.ele.removeAttribute(i):this.ele.setAttribute(i,t.label)},e.prototype.changeSize=function(t,i){return this.width===t&&this.height===i?this:(this.emit(ot.BEFORE_CHANGE_SIZE),this.width=t,this.height=i,this.canvas.changeSize(t,i),this.render(!0),this.emit(ot.AFTER_CHANGE_SIZE),this)},e.prototype.clear=function(){r.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),Iw(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(t){return r.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=Wh(this.ele,!0,this.width,this.height),i=t.width,n=t.height;this.changeSize(i,n)}},e.prototype.updateCanvasStyle=function(){Kt(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(ky),mn=function(){function r(e){this.visible=!0,this.components=[],this.view=e}return r.prototype.clear=function(e){S(this.components,function(t){t.component.destroy()}),this.components=[]},r.prototype.destroy=function(){this.clear()},r.prototype.getComponents=function(){return this.components},r.prototype.changeVisible=function(e){this.visible!==e&&(this.components.forEach(function(t){e?t.component.show():t.component.hide()}),this.visible=e)},r}();function fF(r){for(var e=[],t=function(n){var a=r[n],o=ze(e,function(s){return s.color===a.color&&s.name===a.name&&s.value===a.value&&s.title===a.title});o||e.push(a)},i=0;i1){var w=u[0],C=Math.abs(t.y-w[0].y);try{for(var M=ht(u),F=M.next();!F.done;F=M.next()){var T=F.value,L=Math.abs(t.y-T[0].y);L<=C&&(w=T,C=L)}}catch(k){s={error:k}}finally{try{F&&!F.done&&(l=M.return)&&l.call(M)}finally{if(s)throw s.error}}u=[w]}return fF(we(u))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var i=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(i&&n){var a=i.getBoundingClientRect(),o=a.x,s=a.y,l=a.width,u=a.height;return new ie(o,s,l,u).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,i=t.getOptions().tooltip,n=this.processCustomContent(i),a=t.getTheme(),o=A(a,["components","tooltip"],{}),s=A(n,"enterable",o.enterable);return H({},o,n,{capture:!!(s||this.isLocked)})},e.prototype.processCustomContent=function(t){if(en(t)||!A(t,"customContent"))return t;var i=t.customContent,n=function(a,o){var s=i(a,o)||"";return K(s)?'
      '+s+"
      ":s};return m(m({},t),{customContent:n})},e.prototype.getTitle=function(t){var i=t[0].title||t[0].name;return this.title=i,i},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),i={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),a=new Rs(m(m({parent:t.get("el").parentNode,region:i},n),{visible:!1,crosshairs:null}));a.init(),this.tooltip=a},e.prototype.renderTooltipMarkers=function(t,i){var n,a,o=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var u=ht(t),c=u.next();!c.done;c=u.next()){var h=c.value,f=h.x,v=h.y;if(l||o!=null&&o.getClip()){var d=kc(s.getCoordinate()),p=d.type,g=d.attrs;o==null||o.setClip({type:p,attrs:g})}else o==null||o.setClip(void 0);var y=this.view.getTheme(),x=A(y,["components","tooltip","marker"],{}),b=m(m({fill:h.color,symbol:"circle",shadowColor:h.color},_(i)?m(m({},x),i(h)):i),{x:f,y:v});o.addShape("marker",{attrs:b})}}catch(w){n={error:w}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,i){var n=A(i,["crosshairs","type"],"x");n==="x"?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,i)):n==="y"?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,i)):n==="xy"&&(this.renderXCrosshairs(t,i),this.renderYCrosshairs(t,i))},e.prototype.renderXCrosshairs=function(t,i){var n=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(n.isRect)n.isTransposed?(a={x:n.start.x,y:t.y},o={x:n.end.x,y:t.y}):(a={x:t.x,y:n.end.y},o={x:t.x,y:n.start.y});else{var s=an(n,t),l=n.getCenter(),u=n.getRadius();o=Ot(l.x,l.y,u,s),a=l}var c=H({start:a,end:o,container:this.getTooltipCrosshairsGroup()},A(i,"crosshairs",{}),this.getCrosshairsText("x",t,i));delete c.type;var h=this.xCrosshair;h?h.update(c):(h=new Qg(c),h.init()),h.render(),h.show(),this.xCrosshair=h},e.prototype.renderYCrosshairs=function(t,i){var n=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(n.isRect){var s=void 0,l=void 0;n.isTransposed?(s={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y}):(s={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}),a={start:s,end:l},o="Line"}else a={center:n.getCenter(),radius:Ns(n,t),startAngle:n.startAngle,endAngle:n.endAngle},o="Circle";a=H({container:this.getTooltipCrosshairsGroup()},a,A(i,"crosshairs",{}),this.getCrosshairsText("y",t,i)),delete a.type;var u=this.yCrosshair;u?n.isRect&&u.get("type")==="circle"||!n.isRect&&u.get("type")==="line"?(u=new sv[o](a),u.init()):u.update(a):(u=new sv[o](a),u.init()),u.render(),u.show(),this.yCrosshair=u},e.prototype.getCrosshairsText=function(t,i,n){var a=A(n,["crosshairs","text"]),o=A(n,["crosshairs","follow"]),s=this.items;if(a){var l=this.getViewWithGeometry(this.view),u=s[0],c=l.getXScale(),h=l.getYScales()[0],f=void 0,v=void 0;if(o){var d=this.view.getCoordinate().invert(i);f=c.invert(d.x),v=h.invert(d.y)}else f=u.data[c.field],v=u.data[h.field];var p=t==="x"?f:v;return _(a)?a=a(t,p,s,i):a.content=p,{text:a}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,i){var n,a;if(t.getOptions().tooltip===!1)return[];var o=this.getTooltipCfg(),s=Au(t,i,o);try{for(var l=ht(t.views),u=l.next();!u.done;u=l.next()){var c=u.value;s=s.concat(this.findItemsFromView(c,i))}}catch(h){n={error:h}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}return s},e.prototype.getViewWithGeometry=function(t){var i=this;return t.geometries.length?t:ze(t.views,function(n){return i.getViewWithGeometry(n)})},e.prototype.getItemsAfterProcess=function(t){var i=this.getTooltipCfg().customItems,n=i||function(a){return a};return n(t)},e}(mn),Iy={};function Py(r){return Iy[r.toLowerCase()]}function Ce(r,e){Iy[r.toLowerCase()]=e}var sn={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},vF={interval:function(r){return{enter:{animation:r.isRect?r.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:r.isPolar&&r.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Fv={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(r){var e;return r.isRect?e=r.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",r.isPolar&&r.isTransposed&&(e="wave-in")),{animation:e}},schema:function(r){var e;return r.isRect?e=r.isTransposed?"grow-in-x":"grow-in-y":e="grow-in-xy",{animation:e}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function dF(r,e){return{delay:_(r.delay)?r.delay(e):r.delay,easing:_(r.easing)?r.easing(e):r.easing,duration:_(r.duration)?r.duration(e):r.duration,callback:r.callback,repeat:r.repeat}}function Dy(r,e,t){var i=vF[r];return i&&(_(i)&&(i=i(e)),i=H({},sn,i),t)?i[t]:i}function Zi(r,e,t){var i=A(r.get("origin"),"data",bt),n=e.animation,a=dF(e,i);if(n){var o=Py(n);o&&o(r,a,t)}else r.animate(t.toAttrs,a)}function pF(r,e,t,i,n){if(Fv[t]){var a=Fv[t](i),o=Py(A(a,"animation",""));if(o){var s=m(m(m({},sn.appear),a),e);r.stopAnimate(),o(r,s,{coordinate:i,minYPoint:n,toAttrs:null})}}}var Rc="element-background",Oy=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.labelShape=[],i.states=[];var n=t.shapeFactory,a=t.container,o=t.offscreenGroup,s=t.elementIndex,l=t.visible,u=l===void 0?!0:l;return i.shapeFactory=n,i.container=a,i.offscreenGroup=o,i.visible=u,i.elementIndex=s,i}return e.prototype.draw=function(t,i){i===void 0&&(i=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,i),this.visible===!1&&this.changeVisible(!1)},e.prototype.update=function(t){var i=this,n=i.shapeFactory,a=i.shape;if(a){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(a,t);var o=this.getOffscreenGroup(),s=n.drawShape(this.shapeType,t,o);s.cfg.data=this.data,s.cfg.origin=t,s.cfg.element=this,this.syncShapeStyle(a,s,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var t=this,i=t.shapeFactory,n=t.shape;if(n){var a=this.getAnimateCfg("leave");a?Zi(n,a,{coordinate:i.coordinate,toAttrs:m({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,r.prototype.destroy.call(this)},e.prototype.changeVisible=function(t){r.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(i){i.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(i){i.hide()}))},e.prototype.setState=function(t,i){var n=this,a=n.states,o=n.shapeFactory,s=n.model,l=n.shape,u=n.shapeType,c=a.indexOf(t);if(i){if(c>-1)return;a.push(t),(t==="active"||t==="selected")&&(l==null||l.toFront())}else{if(c===-1)return;if(a.splice(c,1),t==="active"||t==="selected"){var h=this.geometry,f=h.sortZIndex,v=h.zIndexReversed,d=v?this.geometry.elements.length-this.elementIndex:this.elementIndex;f?l.setZIndex(d):l.set("zIndex",d)}}var p=o.drawShape(u,s,this.getOffscreenGroup());a.length?this.syncShapeStyle(l,p,a,null):this.syncShapeStyle(l,p,["reset"],null),p.remove(!0);var g={state:t,stateStatus:i,element:this,target:this.container};this.container.emit("statechange",g),Ng(this.shape,"statechange",g)},e.prototype.clearStates=function(){var t=this,i=this.states;S(i,function(n){t.setState(n,!1)}),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this,i=t.shape,n=t.labelShape,a={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return i&&(a=i.getCanvasBBox()),n&&n.forEach(function(o){var s=o.getCanvasBBox();a.x=Math.min(s.x,a.x),a.y=Math.min(s.y,a.y),a.minX=Math.min(s.minX,a.minX),a.minY=Math.min(s.minY,a.minY),a.maxX=Math.max(s.maxX,a.maxX),a.maxY=Math.max(s.maxY,a.maxY)}),a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,i=t.shapeType,n=t.geometry,a=t.shapeFactory,o=n.stateOption,s=a.defaultShapeType,l=a.theme[i]||a.theme[s];this.statesStyle=H({},l,o)}return this.statesStyle},e.prototype.getStateStyle=function(t,i){var n=this.getStatesStyle(),a=A(n,[t,"style"],{}),o=a[i]||a;return _(o)?o(this):o},e.prototype.getAnimateCfg=function(t){var i=this,n=this.animate;if(n){var a=n[t];return a&&m(m({},a),{callback:function(){var o;_(a.callback)&&a.callback(),(o=i.geometry)===null||o===void 0||o.emit(Rr.AFTER_DRAW_ANIMATE)}})}return null},e.prototype.drawShape=function(t,i){var n;i===void 0&&(i=!1);var a=this,o=a.shapeFactory,s=a.container,l=a.shapeType;if(this.shape=o.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var u=this.shape.cfg.name;u?K(u)&&(this.shape.cfg.name=["element",u]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var c=i?"enter":"appear",h=this.getAnimateCfg(c);h&&((n=this.geometry)===null||n===void 0||n.emit(Rr.BEFORE_DRAW_ANIMATE),Zi(this.shape,h,{coordinate:o.coordinate,toAttrs:m({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,i){var n=this;if(t.cfg.origin=i,t.cfg.element=this,t.isGroup()){var a=t.get("children");a.forEach(function(o){n.setShapeInfo(o,i)})}},e.prototype.syncShapeStyle=function(t,i,n,a,o){var s=this,l;if(n===void 0&&(n=[]),o===void 0&&(o=0),!(!t||!i)){var u=t.get("clipShape"),c=i.get("clipShape");if(this.syncShapeStyle(u,c,n,a),t.isGroup())for(var h=t.get("children"),f=i.get("children"),v=0;v=0?a=i:n<=0?a=n:a=0,a},e.prototype.createAttrOption=function(t,i,n){if(B(i)||mt(i))mt(i)&&Pt(Object.keys(i),["values"])?Bt(this.attributeOption,t,{fields:i.values}):Bt(this.attributeOption,t,i);else{var a={};rt(i)?a.values=[i]:a.fields=kn(i),n&&(_(n)?a.callback=n:a.values=n),Bt(this.attributeOption,t,a)}},e.prototype.initAttributes=function(){var t=this,i=this,n=i.attributes,a=i.attributeOption,o=i.theme,s=i.shapeType;this.groupScales=[];var l={},u=function(f){if(a.hasOwnProperty(f)){var v=a[f];if(!v)return{value:void 0};var d=m({},v),p=d.callback,g=d.values,y=d.fields,x=y===void 0?[]:y,b=x.map(function(C){var M=t.scales[C];if(!l[C]&&Xi.includes(f)){var F=ay(M,A(t.scaleDefs,C),f,t.type);F==="cat"&&(t.groupScales.push(M),l[C]=!0)}return M});d.scales=b,f!=="position"&&b.length===1&&b[0].type==="identity"?d.values=b[0].values:!p&&!g&&(f==="size"?d.values=o.sizes:f==="shape"?d.values=o.shapes[s]||[]:f==="color"&&(b.length?d.values=b[0].values.length<=10?o.colors10:o.colors20:d.values=o.colors10));var w=Og(f);n[f]=new w(d)}};for(var c in a){var h=u(c);if(typeof h=="object")return h.value}},e.prototype.processData=function(t){var i,n;this.hasSorted=!1;for(var a=this.getAttribute("position").scales,o=a.filter(function(F){return F.isCategory}),s=this.groupData(t),l=[],u=0,c=s.length;us&&(s=h)}var f=this.scaleDefs,v={};ot.max&&!A(f,[a,"max"])&&(v.max=s),t.change(v)},e.prototype.beforeMapping=function(t){var i=t;if(this.sortable&&this.sort(i),this.generatePoints)for(var n=0,a=i.length;n1)for(var f=0;f0})}function Vy(r,e,t){var i=t.data,n=t.origin,a=t.animateCfg,o=t.coordinate,s=A(a,"update");r.set("data",i),r.set("origin",n),r.set("animateCfg",a),r.set("coordinate",o),r.set("visible",e.get("visible")),(r.getChildren()||[]).forEach(function(l,u){var c=e.getChildByIndex(u);if(!c)r.removeChild(l),l.remove(!0);else{l.set("data",i),l.set("origin",n),l.set("animateCfg",a),l.set("coordinate",o);var h=ny(l,c);s?Zi(l,s,{toAttrs:h,coordinate:o}):l.attr(h),c.isGroup()&&Vy(l,c,t)}}),S(e.getChildren(),function(l,u){R(r.getChildren())&&u>=r.getCount()&&(l.destroyed||r.add(l))})}var AF=function(){function r(e){this.shapesMap={};var t=e.layout,i=e.container;this.layout=t,this.container=i}return r.prototype.render=function(e,t,i){return i===void 0&&(i=!1),Kn(this,void 0,void 0,function(){var n,a,o,s,l,u,c,h,f=this;return Jn(this,function(v){switch(v.label){case 0:if(n={},a=this.createOffscreenGroup(),!e.length)return[3,2];try{for(o=ht(e),s=o.next();!s.done;s=o.next())l=s.value,l&&(n[l.id]=this.renderLabel(l,a))}catch(d){c={error:d}}finally{try{s&&!s.done&&(h=o.return)&&h.call(o)}finally{if(c)throw c.error}}return[4,this.doLayout(e,t,n)];case 1:v.sent(),this.renderLabelLine(e,n),this.renderLabelBackground(e,n),this.adjustLabel(e,n),v.label=2;case 2:return u=this.shapesMap,S(n,function(d,p){if(d.destroyed)delete n[p];else{if(u[p]){var g=d.get("data"),y=d.get("origin"),x=d.get("coordinate"),b=d.get("animateCfg"),w=u[p];Vy(w,n[p],{data:g,origin:y,animateCfg:b,coordinate:x}),n[p]=w}else{if(f.container.destroyed)return;f.container.add(d);var C=A(d.get("animateCfg"),i?"enter":"appear");C&&Zi(d,C,{toAttrs:m({},d.attr()),coordinate:d.get("coordinate")})}delete u[p]}}),S(u,function(d){var p=A(d.get("animateCfg"),"leave");p?Zi(d,p,{toAttrs:null,coordinate:d.get("coordinate")}):d.remove(!0)}),this.shapesMap=n,a.destroy(),[2]}})})},r.prototype.clear=function(){this.container.clear(),this.shapesMap={}},r.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},r.prototype.renderLabel=function(e,t){var i=e.id,n=e.elementId,a=e.data,o=e.mappingData,s=e.coordinate,l=e.animate,u=e.content,c=e.capture,h={id:i,elementId:n,capture:c,data:a,origin:m(m({},o),{data:o[bt]}),coordinate:s},f=t.addGroup(m({name:"label",animateCfg:this.animate===!1||l===null||l===!1?!1:H({},this.animate,l)},h)),v;if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var d=u.getCanvasBBox(),p=d.width,g=d.height,y=A(e,"textAlign","left"),x=e.x,b=e.y-g/2;y==="center"?x=x-p/2:(y==="right"||y==="end")&&(x=x-p),Da(u,x,b),v=u,f.add(u)}else{var w=A(e,["style","fill"]);v=f.addShape("text",m({attrs:m(m({x:e.x,y:e.y,textAlign:e.textAlign,textBaseline:A(e,"textBaseline","middle"),text:e.content},e.style),{fill:pw(w)?e.color:w})},h))}return e.rotate&&zc(v,e.rotate),f},r.prototype.doLayout=function(e,t,i){return Kn(this,void 0,void 0,function(){var n,a=this;return Jn(this,function(o){switch(o.label){case 0:return this.layout?(n=R(this.layout)?this.layout:[this.layout],[4,Promise.all(n.map(function(s){var l=yF(A(s,"type",""));if(l){var u=[],c=[];return S(i,function(h,f){u.push(h),c.push(t[h.get("elementId")])}),l(e,u,c,a.region,s.cfg)}}))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},r.prototype.renderLabelLine=function(e,t){S(e,function(i){var n=A(i,"coordinate");if(!(!i||!n)){var a=n.getCenter(),o=n.getRadius();if(i.labelLine){var s=A(i,"labelLine",{}),l=i.id,u=s.path;if(!u){var c=Ot(a.x,a.y,o,i.angle);u=[["M",c.x,c.y],["L",i.x,i.y]]}var h=t[l];h.destroyed||h.addShape("path",{capture:!1,attrs:m({path:u,stroke:i.color?i.color:A(i,["style","fill"],"#000"),fill:null},s.style),id:l,origin:i.mappingData,data:i.data,coordinate:i.coordinate})}}})},r.prototype.renderLabelBackground=function(e,t){S(e,function(i){var n=A(i,"coordinate"),a=A(i,"background");if(!(!a||!n)){var o=i.id,s=t[o];if(!s.destroyed){var l=s.getChildren()[0];if(l){var u=Gy(s,i,a.padding),c=u.rotation,h=gt(u,["rotation"]),f=s.addShape("rect",{attrs:m(m({},h),a.style||{}),id:o,origin:i.mappingData,data:i.data,coordinate:i.coordinate});if(f.setZIndex(-1),c){var v=l.getMatrix();f.setMatrix(v)}}}}})},r.prototype.createOffscreenGroup=function(){var e=this.container,t=e.getGroupBase(),i=new t({});return i},r.prototype.adjustLabel=function(e,t){S(e,function(i){if(i){var n=i.id,a=t[n];if(!a.destroyed){var o=a.findAll(function(s){return s.get("type")!=="path"});S(o,function(s){s&&(i.offsetX&&s.attr("x",s.attr("x")+i.offsetX),i.offsetY&&s.attr("y",s.attr("y")+i.offsetY))})}}})},r}();function Ev(r){var e=0;return S(r,function(t){e+=t}),e/r.length}var $s=function(){function r(e){this.geometry=e}return r.prototype.getLabelItems=function(e){var t=this,i=[],n=this.getLabelCfgs(e);return S(e,function(a,o){var s=n[o];if(!s||B(a.x)||B(a.y)){i.push(null);return}var l=R(s.content)?s.content:[s.content];s.content=l;var u=l.length;S(l,function(c,h){if(B(c)||c===""){i.push(null);return}var f=m(m({},s),t.getLabelPoint(s,a,h));f.textAlign||(f.textAlign=t.getLabelAlign(f,h,u)),f.offset<=0&&(f.labelLine=null),i.push(f)})}),i},r.prototype.render=function(e,t){return t===void 0&&(t=!1),Kn(this,void 0,void 0,function(){var i,n,a;return Jn(this,function(o){switch(o.label){case 0:return i=this.getLabelItems(e),n=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,n.render(i,a,t)];case 1:return o.sent(),[2]}})})},r.prototype.clear=function(){var e=this.labelsRenderer;e&&e.clear()},r.prototype.destroy=function(){var e=this.labelsRenderer;e&&e.destroy(),this.labelsRenderer=null},r.prototype.getCoordinate=function(){return this.geometry.coordinate},r.prototype.getDefaultLabelCfg=function(e,t){var i=this.geometry,n=i.type,a=i.theme;return n==="polygon"||n==="interval"&&t==="middle"||e<0&&!["line","point","path"].includes(n)?A(a,"innerLabels",{}):A(a,"labels",{})},r.prototype.getThemedLabelCfg=function(e){var t=this.geometry,i=this.getDefaultLabelCfg(),n=t.type,a=t.theme,o;return n==="polygon"||e.offset<0&&!["line","point","path"].includes(n)?o=H({},i,a.innerLabels,e):o=H({},i,a.labels,e),o},r.prototype.setLabelPosition=function(e,t,i,n){},r.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),i=this.getOffsetVector(e);return t.isTransposed?i[0]:i[1]},r.prototype.getLabelOffsetPoint=function(e,t,i){var n=e.offset,a=this.getCoordinate(),o=a.isTransposed,s=o?"x":"y",l=o?1:-1,u={x:0,y:0};return t>0||i===1?u[s]=n*l:u[s]=n*l*-1,u},r.prototype.getLabelPoint=function(e,t,i){var n=this.getCoordinate(),a=e.content.length;function o(g,y,x){x===void 0&&(x=!1);var b=g;return R(b)&&(e.content.length===1?x?b=Ev(b):b.length<=2?b=b[g.length-1]:b=Ev(b):b=b[y]),b}var s={content:e.content[i],x:0,y:0,start:{x:0,y:0},color:"#fff"},l=R(t.shape)?t.shape[0]:t.shape,u=l==="funnel"||l==="pyramid";if(this.geometry.type==="polygon"){var c=sA(t.x,t.y);s.x=c[0],s.y=c[1]}else this.geometry.type==="interval"&&!u?(s.x=o(t.x,i,!0),s.y=o(t.y,i)):(s.x=o(t.x,i),s.y=o(t.y,i));if(u){var h=A(t,"nextPoints"),f=A(t,"points");if(h){var v=n.convert(f[1]),d=n.convert(h[1]);s.x=(v.x+d.x)/2,s.y=(v.y+d.y)/2}else if(l==="pyramid"){var v=n.convert(f[1]),d=n.convert(f[2]);s.x=(v.x+d.x)/2,s.y=(v.y+d.y)/2}}e.position&&this.setLabelPosition(s,t,i,e.position);var p=this.getLabelOffsetPoint(e,i,a);return s.start={x:s.x,y:s.y},s.x+=p.x,s.y+=p.y,s.color=t.color,s},r.prototype.getLabelAlign=function(e,t,i){var n="center",a=this.getCoordinate();if(a.isTransposed){var o=e.offset;o<0?n="right":o===0?n="center":n="left",i>1&&t===0&&(n==="right"?n="left":n==="left"&&(n="right"))}return n},r.prototype.getLabelId=function(e){var t=this.geometry,i=t.type,n=t.getXScale(),a=t.getYScale(),o=e[bt],s=t.getElementId(e);return i==="line"||i==="area"?s+=" ".concat(o[n.field]):i==="path"&&(s+=" ".concat(o[n.field],"-").concat(o[a.field])),s},r.prototype.getLabelsRenderer=function(){var e=this.geometry,t=e.labelsContainer,i=e.labelOption,n=e.canvasRegion,a=e.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new AF({container:t,layout:A(i,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=n,s.animate=a?Dy("label",o):!1,s},r.prototype.getLabelCfgs=function(e){var t=this,i=this.geometry,n=i.labelOption,a=i.scales,o=i.coordinate,s=n,l=s.fields,u=s.callback,c=s.cfg,h=l.map(function(v){return a[v]}),f=[];return S(e,function(v,d){var p=v[bt],g=t.getLabelText(p,h),y;if(u){var x=l.map(function(F){return p[F]});if(y=u.apply(void 0,Z([],q(x),!1)),B(y)){f.push(null);return}}var b=m(m({id:t.getLabelId(v),elementId:t.geometry.getElementId(v),data:p,mappingData:v,coordinate:o},c),y);_(b.position)&&(b.position=b.position(p,v,d));var w=t.getLabelOffset(b.offset||0),C=t.getDefaultLabelCfg(w,b.position);b=H({},C,b),b.offset=t.getLabelOffset(b.offset||0);var M=b.content;_(M)?b.content=M(p,v,d):oi(M)&&(b.content=g[0]),f.push(b)}),f},r.prototype.getLabelText=function(e,t){var i=[];return S(t,function(n){var a=e[n.field];R(a)?a=a.map(function(o){return n.getText(o)}):a=n.getText(a),B(a)||a===""?i.push(null):i.push(a)}),i},r.prototype.getOffsetVector=function(e){e===void 0&&(e=0);var t=this.getCoordinate(),i=0;return rt(e)&&(i=e),t.isTransposed?t.applyMatrix(i,0):t.applyMatrix(0,i)},r.prototype.getGeometryShapes=function(){var e=this.geometry,t={};return S(e.elementsMap,function(i,n){t[n]=i.shape}),S(e.getOffscreenGroup().getChildren(),function(i){var n=e.getElementId(i.get("origin").mappingData);t[n]=i}),t},r}();function Fu(r,e,t){if(!r)return t;var i;if(r.callback&&r.callback.length>1){var n=Array(r.callback.length-1).fill("");i=r.mapping.apply(r,Z([e],q(n),!1)).join("")}else i=r.mapping(e).join("");return i||t}var Ai={hexagon:function(r,e,t){var i=t/2*Math.sqrt(3);return[["M",r,e-t],["L",r+i,e-t/2],["L",r+i,e+t/2],["L",r,e+t],["L",r-i,e+t/2],["L",r-i,e-t/2],["Z"]]},bowtie:function(r,e,t){var i=t-1.5;return[["M",r-t,e-i],["L",r+t,e+i],["L",r+t,e-i],["L",r-t,e+i],["Z"]]},cross:function(r,e,t){return[["M",r-t,e-t],["L",r+t,e+t],["M",r+t,e-t],["L",r-t,e+t]]},tick:function(r,e,t){return[["M",r-t/2,e-t],["L",r+t/2,e-t],["M",r,e-t],["L",r,e+t],["M",r-t/2,e+t],["L",r+t/2,e+t]]},plus:function(r,e,t){return[["M",r-t,e],["L",r+t,e],["M",r,e-t],["L",r,e+t]]},hyphen:function(r,e,t){return[["M",r-t,e],["L",r+t,e]]},line:function(r,e,t){return[["M",r,e-t],["L",r,e+t]]}},FF=["line","cross","tick","plus","hyphen"];function TF(r,e){return _(e)?e(r):H({},r,e)}function EF(r,e){var t=r.symbol;if(K(t)&&FF.indexOf(t)!==-1){var i=A(r,"style",{}),n=A(i,"lineWidth",1),a=i.stroke||i.fill||e;r.style=H({},r.style,{lineWidth:n,stroke:a,fill:null})}}function Yy(r){var e=r.symbol;K(e)&&Ai[e]&&(r.symbol=Ai[e])}function El(r){return r.startsWith(G.LEFT)||r.startsWith(G.RIGHT)?"vertical":"horizontal"}function $y(r,e,t,i,n){var a=t.getScale(t.type);if(a.isCategory){var o=a.field,s=e.getAttribute("color"),l=e.getAttribute("shape"),u=r.getTheme().defaultColor,c=e.coordinate.isPolar;return a.getTicks().map(function(h,f){var v,d=h.text,p=h.value,g=d,y=a.invert(p),x=r.filterFieldData(o,[(v={},v[o]=y,v)]).length===0;S(r.views,function(F){var T;F.filterFieldData(o,[(T={},T[o]=y,T)]).length||(x=!0)});var b=Fu(s,y,u),w=Fu(l,y,"point"),C=e.getShapeMarker(w,{color:b,isInPolar:c}),M=n;return _(M)&&(M=M(g,f,m({name:g,value:y},H({},i,C)))),C=H({},i,C,le(m({},M),["style"])),EF(C,b),M&&M.style&&(C.style=TF(C.style,M.style)),Yy(C),{id:y,name:g,value:y,marker:C,unchecked:x}})}return[]}function kF(r,e,t){return t.map(function(i,n){var a=e;_(a)&&(a=a(i.name,n,H({},r,i)));var o=_(i.marker)?i.marker(i.name,n,H({},r,i)):i.marker,s=H({},r,a,o);return Yy(s),i.marker=s,i})}function kv(r,e){var t=A(r,["components","legend"],{});return H({},A(t,["common"],{}),H({},A(t,[e],{})))}function kl(r){return r?!1:r==null||isNaN(r)}function Lv(r){if(R(r))return kl(r[1].y);var e=r.y;return R(e)?kl(e[0]):kl(e)}function Hs(r,e,t){if(e===void 0&&(e=!1),t===void 0&&(t=!0),!r.length||r.length===1&&!t)return[];if(e){for(var i=[],n=0,a=r.length;n(1+a)/2&&(l=o),i.translate(i.invert(l))}function Sv(r,e,t){var i=t.coordinate,n=t.getYScale(),a=n.field,o=i.invert(e),s=n.invert(o.y),l=ze(r,function(u){var c=u[bt];return c[a][0]<=s&&c[a][1]>=s});return l||r[r.length-1]}var QA=Aa(function(r){if(r.isCategory)return 1;for(var e=r.values,t=e.length,i=r.translate(e[0]),n=i,a=0;an&&(n=s)}return(n-i)/(t-1)});function KA(r,e,t){var i=e.getAttribute("position"),n=i.getFields(),a=e.scales,o=_(t)||!t?n[0]:t,s=a[o],l=s?s.getText(r[o]):r[o]||o;return _(t)?t(l,r):l}function JA(r){var e=tc(r.attributes);return qt(e,function(t){return ni(Xi,t.type)})}function Ty(r){var e,t,i=JA(r),n;try{for(var a=ht(i),o=a.next();!o.done;o=a.next()){var s=o.value,l=s.getScale(s.type);if(l&&l.isLinear){var u=A(r.scaleDefs,l.field),c=ay(l,u,s.type,r.type);if(c!=="cat"){n=l;break}}}}catch(v){e={error:v}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}var h=r.getXScale(),f=r.getYScale();return n||f||h}function tF(r,e){var t=e.field,i=r[t];if(R(i)){var n=i.map(function(a){return e.getText(a)});return n.join("-")}return e.getText(i)}function eF(r,e){var t,i=e.getGroupScales();if(i.length&&(t=i[0]),t){var n=t.field;return t.getText(r[n])}var a=Ty(e);return fa(a)}function Ey(r,e,t){if(e.length===0)return null;var i=t.type,n=t.getXScale(),a=t.getYScale(),o=n.field,s=a.field,l=null;if(i==="heatmap"||i==="point"){for(var u=t.coordinate,c=u.invert(r),h=n.invert(c.x),f=a.invert(c.y),v=1/0,d=0;d=b)if(T)R(l)||(l=[]),l.push(L);else{l=L;break}}R(l)&&(l=Sv(l,r,t))}else{var k=void 0;if(!n.isLinear&&n.type!=="timeCat"){for(var d=0;dn.translate(F)||bn.max||bMath.abs(n.translate(k[bt][o])-b)&&(w=k)}var q=QA(t.getXScale());return!l&&Math.abs(n.translate(w[bt][o])-b)<=q/2&&(l=w),l}function Dc(r,e,t,i){var n,a;t===void 0&&(t=""),i===void 0&&(i=!1);var o=r[bt],s=KA(o,e,t),l=e.tooltipOption,u=e.theme.defaultColor,c=[],h,f;function v(L,k){if(i||!B(k)&&k!==""){var I={title:s,data:o,mappingData:r,name:L,value:k,color:r.color||u,marker:!0};c.push(I)}}if(mt(l)){var d=l.fields,p=l.callback;if(p){var g=d.map(function(L){return r[bt][L]}),y=p.apply(void 0,Z([],U(g),!1)),x=m({data:r[bt],mappingData:r,title:s,color:r.color||u,marker:!0},y);c.push(x)}else{var w=e.scales;try{for(var b=ht(d),C=b.next();!C.done;C=b.next()){var M=C.value;if(!B(o[M])){var F=w[M];h=fa(F),f=F.getText(o[M]),v(h,f)}}}catch(L){n={error:L}}finally{try{C&&!C.done&&(a=b.return)&&a.call(b)}finally{if(n)throw n.error}}}}else{var T=Ty(e);f=tF(o,T),h=eF(o,e),v(h,f)}return c}function Mv(r,e,t,i){var n,a,o=i.showNil,s=[],l=r.dataArray;if(!fe(l)){r.sort(l);try{for(var u=ht(l),c=u.next();!c.done;c=u.next()){var h=c.value,f=Ey(e,h,r);if(f){var v=r.getElementId(f),d=r.elementsMap[v];if(r.type==="heatmap"||d.visible){var p=Dc(f,r,t,o);p.length&&s.push(p)}}}}catch(g){n={error:g}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}}return s}function Av(r,e,t,i){var n=i.showNil,a=[],o=r.container,s=o.getShape(e.x,e.y);if(s&&s.get("visible")&&s.get("origin")){var l=s.get("origin").mappingData,u=Dc(l,r,t,n);u.length&&a.push(u)}return a}function Au(r,e,t){var i,n,a=[],o=r.geometries,s=t.shared,l=t.title,u=t.reversed;try{for(var c=ht(o),h=c.next();!h.done;h=c.next()){var f=h.value;if(f.visible&&f.tooltipOption!==!1){var v=f.type,d=void 0;["point","edge","polygon"].includes(v)?d=Av(f,e,l,t):["area","line","path","heatmap"].includes(v)||s!==!1?d=Mv(f,e,l,t):d=Av(f,e,l,t),d.length&&(u&&d.reverse(),a.push(d))}}}catch(p){i={error:p}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}return a}function rF(r,e,t){var i,n,a=Au(r,e,t);try{for(var o=ht(r.views),s=o.next();!s.done;s=o.next()){var l=s.value;a=a.concat(Au(l,e,t))}}catch(u){i={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function iF(r){return!rt(r)&&!R(r)}function Oc(r){r===void 0&&(r=0);var e=R(r)?r:[r];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=Z(Z([],U(e),!1),U(e),!1);break;case 3:e=Z(Z([],U(e),!1),[e[1]],!1);break;default:e=e.slice(0,4);break}return e}var Bc={};function Li(r,e){Bc[r]=e}function nF(){return Object.keys(Bc)}function aF(r){return Bc[r]}var oF=function(){function r(e){this.option=this.wrapperOption(e)}return r.prototype.update=function(e){return this.option=this.wrapperOption(e),this},r.prototype.hasAction=function(e){var t=this.option.actions;return cs(t,function(i){return i[0]===e})},r.prototype.create=function(e,t){var i=this.option,n=i.type,a=i.cfg,o=n==="theta",s=m({start:e,end:t},a),l=LS(o?"polar":n);return this.coordinate=new l(s),this.coordinate.type=n,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},r.prototype.adjust=function(e,t){return this.coordinate.update({start:e,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},r.prototype.rotate=function(e){return this.option.actions.push(["rotate",e]),this},r.prototype.reflect=function(e){return this.option.actions.push(["reflect",e]),this},r.prototype.scale=function(e,t){return this.option.actions.push(["scale",e,t]),this},r.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},r.prototype.getOption=function(){return this.option},r.prototype.getCoordinate=function(){return this.coordinate},r.prototype.wrapperOption=function(e){return m({type:"rect",actions:[],cfg:{}},e)},r.prototype.execActions=function(e){var t=this,i=this.option.actions;S(i,function(n){var a,o=U(n),s=o[0],l=o.slice(1),u=B(e)?!0:e.includes(s);u&&(a=t.coordinate)[s].apply(a,Z([],U(l),!1))})},r}(),Tt=function(){function r(e,t,i){this.view=e,this.gEvent=t,this.data=i,this.type=t.type}return r.fromData=function(e,t,i){return new r(e,new Fa(t,{}),i)},Object.defineProperty(r.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),r.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},r.prototype.clone=function(){return new r(this.view,this.gEvent,this.data)},r}();function sF(r){var e=r.getController("axis"),t=r.getController("legend"),i=r.getController("annotation"),n=r.getController("slider"),a=r.getController("scrollbar");[e,n,a,t,i].forEach(function(o){o&&o.layout()})}var lF=function(){function r(){this.scales=new Map,this.syncScales=new Map}return r.prototype.createScale=function(e,t,i,n){var a=i,o=this.getScaleMeta(n);if(t.length===0&&o){var s=o.scale,l={type:s.type};s.isCategory&&(l.values=s.values),a=H(l,o.scaleDef,i)}var u=pA(e,t,a);return this.cacheScale(u,i,n),u},r.prototype.sync=function(e,t){var i=this;this.syncScales.forEach(function(n,a){var o=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,l=[];S(n,function(u){var c=i.getScale(u);s=rt(c.max)?Math.max(s,c.max):s,o=rt(c.min)?Math.min(o,c.min):o,S(c.values,function(h){l.includes(h)||l.push(h)})}),S(n,function(u){var c=i.getScale(u);if(c.isContinuous)c.change({min:o,max:s,values:l});else if(c.isCategory){var h=c.range,f=i.getScaleMeta(u);l&&!A(f,["scaleDef","range"])&&(h=oy(H({},c,{values:l}),e,t)),c.change({values:l,range:h})}})})},r.prototype.cacheScale=function(e,t,i){var n=this.getScaleMeta(i);n&&n.scale.type===e.type?(gA(n.scale,e),n.scaleDef=t):(n={key:i,scale:e,scaleDef:t},this.scales.set(i,n));var a=this.getSyncKey(n);if(n.syncKey=a,this.removeFromSyncScales(i),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(i)}},r.prototype.getScale=function(e){var t=this.getScaleMeta(e);if(!t){var i=Nt(e.split("-")),n=this.syncScales.get(i);n&&n.length&&(t=this.getScaleMeta(n[0]))}return t&&t.scale},r.prototype.deleteScale=function(e){var t=this.getScaleMeta(e);if(t){var i=t.syncKey,n=this.syncScales.get(i);if(n&&n.length){var a=n.indexOf(e);a!==-1&&n.splice(a,1)}}this.scales.delete(e)},r.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},r.prototype.removeFromSyncScales=function(e){var t=this;this.syncScales.forEach(function(i,n){var a=i.indexOf(e);if(a!==-1)return i.splice(a,1),i.length===0&&t.syncScales.delete(n),!1})},r.prototype.getSyncKey=function(e){var t=e.scale,i=e.scaleDef,n=t.field,a=A(i,["sync"]);return a===!0?n:a===!1?void 0:a},r.prototype.getScaleMeta=function(e){return this.scales.get(e)},r}(),To=function(){function r(e,t,i,n){e===void 0&&(e=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),this.top=e,this.right=t,this.bottom=i,this.left=n}return r.instance=function(e,t,i,n){return e===void 0&&(e=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),new r(e,t,i,n)},r.prototype.max=function(e){var t=U(e,4),i=t[0],n=t[1],a=t[2],o=t[3];return this.top=Math.max(this.top,i),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,a),this.left=Math.max(this.left,o),this},r.prototype.shrink=function(e){var t=U(e,4),i=t[0],n=t[1],a=t[2],o=t[3];return this.top+=i,this.right+=n,this.bottom+=a,this.left+=o,this},r.prototype.inc=function(e,t){var i=e.width,n=e.height;switch(t){case G.TOP:case G.TOP_LEFT:case G.TOP_RIGHT:this.top+=n;break;case G.RIGHT:case G.RIGHT_TOP:case G.RIGHT_BOTTOM:this.right+=i;break;case G.BOTTOM:case G.BOTTOM_LEFT:case G.BOTTOM_RIGHT:this.bottom+=n;break;case G.LEFT:case G.LEFT_TOP:case G.LEFT_BOTTOM:this.left+=i;break}return this},r.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},r.prototype.clone=function(){return new(r.bind.apply(r,Z([void 0],U(this.getPadding()),!1)))},r}();function uF(r){var e=r.padding;if(!iF(e))return new(To.bind.apply(To,Z([void 0],U(Oc(e)),!1)));var t=r.viewBBox,i=new To,n=[],a=[],o=[];return S(r.getComponents(),function(s){var l=s.type;l===Gt.AXIS?n.push(s):[Gt.LEGEND,Gt.SLIDER,Gt.SCROLLBAR].includes(l)?a.push(s):l!==Gt.GRID&&l!==Gt.TOOLTIP&&o.push(s)}),S(n,function(s){var l=s.component,u=l.getLayoutBBox(),c=new ie(u.x,u.y,u.width,u.height),h=c.exceed(t);i.max(h)}),S(a,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),h=l.get("padding"),f=new ie(c.x,c.y,c.width,c.height).expand(h);i.inc(f,u)}),S(o,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),h=new ie(c.x,c.y,c.width,c.height);i.inc(h,u)}),i}function cF(r,e,t){var i=t.instance();e.forEach(function(n){n.autoPadding=i.max(n.autoPadding.getPadding())})}var ky=function(r){E(e,r);function e(t){var i=r.call(this,{visible:t.visible})||this;i.views=[],i.geometries=[],i.controllers=[],i.interactions={},i.limitInPlot=!1,i.options={data:[],animate:!0},i.usedControllers=nF(),i.scalePool=new lF,i.layoutFunc=sF,i.isPreMouseInPlot=!1,i.isDataChanged=!1,i.isCoordinateChanged=!1,i.createdScaleKeys=new Map,i.onCanvasEvent=function(w){var b=w.name;if(!b.includes(":")){var C=i.createViewEvent(w);i.doPlotEvent(C),i.emit(b,C)}},i.onDelegateEvents=function(w){var b=w.name;if(b.includes(":")){var C=i.createViewEvent(w);i.emit(b,C)}};var n=t.id,a=n===void 0?jr("view"):n,o=t.parent,s=t.canvas,l=t.backgroundGroup,u=t.middleGroup,c=t.foregroundGroup,h=t.region,f=h===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:h,v=t.padding,d=t.appendPadding,p=t.theme,g=t.options,y=t.limitInPlot,x=t.syncViewPadding;return i.parent=o,i.canvas=s,i.backgroundGroup=l,i.middleGroup=u,i.foregroundGroup=c,i.region=f,i.padding=v,i.appendPadding=d,i.options=m(m({},i.options),g),i.limitInPlot=y,i.id=a,i.syncViewPadding=x,i.themeObject=mt(p)?H({},Un("default"),Zo(p)):Un(p),i.init(),i}return e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,i){t===void 0&&(t=!1),this.emit(ot.BEFORE_RENDER,Tt.fromData(this,ot.BEFORE_RENDER,i)),this.paint(t),this.emit(ot.AFTER_RENDER,Tt.fromData(this,ot.AFTER_RENDER,i)),this.visible===!1&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(ot.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var i=this.geometries,n=0;n');k.appendChild(I);var O=Wh(k,l,a,o),N=Aw(f),Y=new N.Canvas(m({container:I,pixelRatio:v,localRefresh:p,supportCSSTransform:w},O));return i=r.call(this,{parent:null,canvas:Y,backgroundGroup:Y.addGroup({zIndex:qi.BG}),middleGroup:Y.addGroup({zIndex:qi.MID}),foregroundGroup:Y.addGroup({zIndex:qi.FORE}),padding:u,appendPadding:c,visible:y,options:M,limitInPlot:F,theme:T,syncViewPadding:L})||this,i.onResize=Cp(function(){i.forceFit()},300),i.ele=k,i.canvas=Y,i.width=O.width,i.height=O.height,i.autoFit=l,i.localRefresh=p,i.renderer=f,i.wrapperElement=I,i.updateCanvasStyle(),i.bindAutoFit(),i.initDefaultInteractions(C),i}return e.prototype.initDefaultInteractions=function(t){var i=this;S(t,function(n){i.interaction(n)})},e.prototype.aria=function(t){var i="aria-label";t===!1?this.ele.removeAttribute(i):this.ele.setAttribute(i,t.label)},e.prototype.changeSize=function(t,i){return this.width===t&&this.height===i?this:(this.emit(ot.BEFORE_CHANGE_SIZE),this.width=t,this.height=i,this.canvas.changeSize(t,i),this.render(!0),this.emit(ot.AFTER_CHANGE_SIZE),this)},e.prototype.clear=function(){r.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),Iw(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(t){return r.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=Wh(this.ele,!0,this.width,this.height),i=t.width,n=t.height;this.changeSize(i,n)}},e.prototype.updateCanvasStyle=function(){Kt(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(ky),mn=function(){function r(e){this.visible=!0,this.components=[],this.view=e}return r.prototype.clear=function(e){S(this.components,function(t){t.component.destroy()}),this.components=[]},r.prototype.destroy=function(){this.clear()},r.prototype.getComponents=function(){return this.components},r.prototype.changeVisible=function(e){this.visible!==e&&(this.components.forEach(function(t){e?t.component.show():t.component.hide()}),this.visible=e)},r}();function fF(r){for(var e=[],t=function(n){var a=r[n],o=ze(e,function(s){return s.color===a.color&&s.name===a.name&&s.value===a.value&&s.title===a.title});o||e.push(a)},i=0;i1){var b=u[0],C=Math.abs(t.y-b[0].y);try{for(var M=ht(u),F=M.next();!F.done;F=M.next()){var T=F.value,L=Math.abs(t.y-T[0].y);L<=C&&(b=T,C=L)}}catch(k){s={error:k}}finally{try{F&&!F.done&&(l=M.return)&&l.call(M)}finally{if(s)throw s.error}}u=[b]}return fF(we(u))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var i=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(i&&n){var a=i.getBoundingClientRect(),o=a.x,s=a.y,l=a.width,u=a.height;return new ie(o,s,l,u).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,i=t.getOptions().tooltip,n=this.processCustomContent(i),a=t.getTheme(),o=A(a,["components","tooltip"],{}),s=A(n,"enterable",o.enterable);return H({},o,n,{capture:!!(s||this.isLocked)})},e.prototype.processCustomContent=function(t){if(en(t)||!A(t,"customContent"))return t;var i=t.customContent,n=function(a,o){var s=i(a,o)||"";return K(s)?'
      '+s+"
      ":s};return m(m({},t),{customContent:n})},e.prototype.getTitle=function(t){var i=t[0].title||t[0].name;return this.title=i,i},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),i={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),a=new Rs(m(m({parent:t.get("el").parentNode,region:i},n),{visible:!1,crosshairs:null}));a.init(),this.tooltip=a},e.prototype.renderTooltipMarkers=function(t,i){var n,a,o=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var u=ht(t),c=u.next();!c.done;c=u.next()){var h=c.value,f=h.x,v=h.y;if(l||o!=null&&o.getClip()){var d=kc(s.getCoordinate()),p=d.type,g=d.attrs;o==null||o.setClip({type:p,attrs:g})}else o==null||o.setClip(void 0);var y=this.view.getTheme(),x=A(y,["components","tooltip","marker"],{}),w=m(m({fill:h.color,symbol:"circle",shadowColor:h.color},_(i)?m(m({},x),i(h)):i),{x:f,y:v});o.addShape("marker",{attrs:w})}}catch(b){n={error:b}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,i){var n=A(i,["crosshairs","type"],"x");n==="x"?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,i)):n==="y"?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,i)):n==="xy"&&(this.renderXCrosshairs(t,i),this.renderYCrosshairs(t,i))},e.prototype.renderXCrosshairs=function(t,i){var n=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(n.isRect)n.isTransposed?(a={x:n.start.x,y:t.y},o={x:n.end.x,y:t.y}):(a={x:t.x,y:n.end.y},o={x:t.x,y:n.start.y});else{var s=an(n,t),l=n.getCenter(),u=n.getRadius();o=Ot(l.x,l.y,u,s),a=l}var c=H({start:a,end:o,container:this.getTooltipCrosshairsGroup()},A(i,"crosshairs",{}),this.getCrosshairsText("x",t,i));delete c.type;var h=this.xCrosshair;h?h.update(c):(h=new Qg(c),h.init()),h.render(),h.show(),this.xCrosshair=h},e.prototype.renderYCrosshairs=function(t,i){var n=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(n.isRect){var s=void 0,l=void 0;n.isTransposed?(s={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y}):(s={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}),a={start:s,end:l},o="Line"}else a={center:n.getCenter(),radius:Ns(n,t),startAngle:n.startAngle,endAngle:n.endAngle},o="Circle";a=H({container:this.getTooltipCrosshairsGroup()},a,A(i,"crosshairs",{}),this.getCrosshairsText("y",t,i)),delete a.type;var u=this.yCrosshair;u?n.isRect&&u.get("type")==="circle"||!n.isRect&&u.get("type")==="line"?(u=new sv[o](a),u.init()):u.update(a):(u=new sv[o](a),u.init()),u.render(),u.show(),this.yCrosshair=u},e.prototype.getCrosshairsText=function(t,i,n){var a=A(n,["crosshairs","text"]),o=A(n,["crosshairs","follow"]),s=this.items;if(a){var l=this.getViewWithGeometry(this.view),u=s[0],c=l.getXScale(),h=l.getYScales()[0],f=void 0,v=void 0;if(o){var d=this.view.getCoordinate().invert(i);f=c.invert(d.x),v=h.invert(d.y)}else f=u.data[c.field],v=u.data[h.field];var p=t==="x"?f:v;return _(a)?a=a(t,p,s,i):a.content=p,{text:a}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,i){var n,a;if(t.getOptions().tooltip===!1)return[];var o=this.getTooltipCfg(),s=Au(t,i,o);try{for(var l=ht(t.views),u=l.next();!u.done;u=l.next()){var c=u.value;s=s.concat(this.findItemsFromView(c,i))}}catch(h){n={error:h}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}return s},e.prototype.getViewWithGeometry=function(t){var i=this;return t.geometries.length?t:ze(t.views,function(n){return i.getViewWithGeometry(n)})},e.prototype.getItemsAfterProcess=function(t){var i=this.getTooltipCfg().customItems,n=i||function(a){return a};return n(t)},e}(mn),Iy={};function Py(r){return Iy[r.toLowerCase()]}function Ce(r,e){Iy[r.toLowerCase()]=e}var sn={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},vF={interval:function(r){return{enter:{animation:r.isRect?r.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:r.isPolar&&r.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Fv={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(r){var e;return r.isRect?e=r.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",r.isPolar&&r.isTransposed&&(e="wave-in")),{animation:e}},schema:function(r){var e;return r.isRect?e=r.isTransposed?"grow-in-x":"grow-in-y":e="grow-in-xy",{animation:e}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function dF(r,e){return{delay:_(r.delay)?r.delay(e):r.delay,easing:_(r.easing)?r.easing(e):r.easing,duration:_(r.duration)?r.duration(e):r.duration,callback:r.callback,repeat:r.repeat}}function Dy(r,e,t){var i=vF[r];return i&&(_(i)&&(i=i(e)),i=H({},sn,i),t)?i[t]:i}function Zi(r,e,t){var i=A(r.get("origin"),"data",bt),n=e.animation,a=dF(e,i);if(n){var o=Py(n);o&&o(r,a,t)}else r.animate(t.toAttrs,a)}function pF(r,e,t,i,n){if(Fv[t]){var a=Fv[t](i),o=Py(A(a,"animation",""));if(o){var s=m(m(m({},sn.appear),a),e);r.stopAnimate(),o(r,s,{coordinate:i,minYPoint:n,toAttrs:null})}}}var Rc="element-background",Oy=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.labelShape=[],i.states=[];var n=t.shapeFactory,a=t.container,o=t.offscreenGroup,s=t.elementIndex,l=t.visible,u=l===void 0?!0:l;return i.shapeFactory=n,i.container=a,i.offscreenGroup=o,i.visible=u,i.elementIndex=s,i}return e.prototype.draw=function(t,i){i===void 0&&(i=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,i),this.visible===!1&&this.changeVisible(!1)},e.prototype.update=function(t){var i=this,n=i.shapeFactory,a=i.shape;if(a){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(a,t);var o=this.getOffscreenGroup(),s=n.drawShape(this.shapeType,t,o);s.cfg.data=this.data,s.cfg.origin=t,s.cfg.element=this,this.syncShapeStyle(a,s,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var t=this,i=t.shapeFactory,n=t.shape;if(n){var a=this.getAnimateCfg("leave");a?Zi(n,a,{coordinate:i.coordinate,toAttrs:m({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,r.prototype.destroy.call(this)},e.prototype.changeVisible=function(t){r.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(i){i.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(i){i.hide()}))},e.prototype.setState=function(t,i){var n=this,a=n.states,o=n.shapeFactory,s=n.model,l=n.shape,u=n.shapeType,c=a.indexOf(t);if(i){if(c>-1)return;a.push(t),(t==="active"||t==="selected")&&(l==null||l.toFront())}else{if(c===-1)return;if(a.splice(c,1),t==="active"||t==="selected"){var h=this.geometry,f=h.sortZIndex,v=h.zIndexReversed,d=v?this.geometry.elements.length-this.elementIndex:this.elementIndex;f?l.setZIndex(d):l.set("zIndex",d)}}var p=o.drawShape(u,s,this.getOffscreenGroup());a.length?this.syncShapeStyle(l,p,a,null):this.syncShapeStyle(l,p,["reset"],null),p.remove(!0);var g={state:t,stateStatus:i,element:this,target:this.container};this.container.emit("statechange",g),Ng(this.shape,"statechange",g)},e.prototype.clearStates=function(){var t=this,i=this.states;S(i,function(n){t.setState(n,!1)}),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this,i=t.shape,n=t.labelShape,a={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return i&&(a=i.getCanvasBBox()),n&&n.forEach(function(o){var s=o.getCanvasBBox();a.x=Math.min(s.x,a.x),a.y=Math.min(s.y,a.y),a.minX=Math.min(s.minX,a.minX),a.minY=Math.min(s.minY,a.minY),a.maxX=Math.max(s.maxX,a.maxX),a.maxY=Math.max(s.maxY,a.maxY)}),a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,i=t.shapeType,n=t.geometry,a=t.shapeFactory,o=n.stateOption,s=a.defaultShapeType,l=a.theme[i]||a.theme[s];this.statesStyle=H({},l,o)}return this.statesStyle},e.prototype.getStateStyle=function(t,i){var n=this.getStatesStyle(),a=A(n,[t,"style"],{}),o=a[i]||a;return _(o)?o(this):o},e.prototype.getAnimateCfg=function(t){var i=this,n=this.animate;if(n){var a=n[t];return a&&m(m({},a),{callback:function(){var o;_(a.callback)&&a.callback(),(o=i.geometry)===null||o===void 0||o.emit(Rr.AFTER_DRAW_ANIMATE)}})}return null},e.prototype.drawShape=function(t,i){var n;i===void 0&&(i=!1);var a=this,o=a.shapeFactory,s=a.container,l=a.shapeType;if(this.shape=o.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var u=this.shape.cfg.name;u?K(u)&&(this.shape.cfg.name=["element",u]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var c=i?"enter":"appear",h=this.getAnimateCfg(c);h&&((n=this.geometry)===null||n===void 0||n.emit(Rr.BEFORE_DRAW_ANIMATE),Zi(this.shape,h,{coordinate:o.coordinate,toAttrs:m({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,i){var n=this;if(t.cfg.origin=i,t.cfg.element=this,t.isGroup()){var a=t.get("children");a.forEach(function(o){n.setShapeInfo(o,i)})}},e.prototype.syncShapeStyle=function(t,i,n,a,o){var s=this,l;if(n===void 0&&(n=[]),o===void 0&&(o=0),!(!t||!i)){var u=t.get("clipShape"),c=i.get("clipShape");if(this.syncShapeStyle(u,c,n,a),t.isGroup())for(var h=t.get("children"),f=i.get("children"),v=0;v=0?a=i:n<=0?a=n:a=0,a},e.prototype.createAttrOption=function(t,i,n){if(B(i)||mt(i))mt(i)&&Pt(Object.keys(i),["values"])?Bt(this.attributeOption,t,{fields:i.values}):Bt(this.attributeOption,t,i);else{var a={};rt(i)?a.values=[i]:a.fields=kn(i),n&&(_(n)?a.callback=n:a.values=n),Bt(this.attributeOption,t,a)}},e.prototype.initAttributes=function(){var t=this,i=this,n=i.attributes,a=i.attributeOption,o=i.theme,s=i.shapeType;this.groupScales=[];var l={},u=function(f){if(a.hasOwnProperty(f)){var v=a[f];if(!v)return{value:void 0};var d=m({},v),p=d.callback,g=d.values,y=d.fields,x=y===void 0?[]:y,w=x.map(function(C){var M=t.scales[C];if(!l[C]&&Xi.includes(f)){var F=ay(M,A(t.scaleDefs,C),f,t.type);F==="cat"&&(t.groupScales.push(M),l[C]=!0)}return M});d.scales=w,f!=="position"&&w.length===1&&w[0].type==="identity"?d.values=w[0].values:!p&&!g&&(f==="size"?d.values=o.sizes:f==="shape"?d.values=o.shapes[s]||[]:f==="color"&&(w.length?d.values=w[0].values.length<=10?o.colors10:o.colors20:d.values=o.colors10));var b=Og(f);n[f]=new b(d)}};for(var c in a){var h=u(c);if(typeof h=="object")return h.value}},e.prototype.processData=function(t){var i,n;this.hasSorted=!1;for(var a=this.getAttribute("position").scales,o=a.filter(function(F){return F.isCategory}),s=this.groupData(t),l=[],u=0,c=s.length;us&&(s=h)}var f=this.scaleDefs,v={};ot.max&&!A(f,[a,"max"])&&(v.max=s),t.change(v)},e.prototype.beforeMapping=function(t){var i=t;if(this.sortable&&this.sort(i),this.generatePoints)for(var n=0,a=i.length;n1)for(var f=0;f0})}function Vy(r,e,t){var i=t.data,n=t.origin,a=t.animateCfg,o=t.coordinate,s=A(a,"update");r.set("data",i),r.set("origin",n),r.set("animateCfg",a),r.set("coordinate",o),r.set("visible",e.get("visible")),(r.getChildren()||[]).forEach(function(l,u){var c=e.getChildByIndex(u);if(!c)r.removeChild(l),l.remove(!0);else{l.set("data",i),l.set("origin",n),l.set("animateCfg",a),l.set("coordinate",o);var h=ny(l,c);s?Zi(l,s,{toAttrs:h,coordinate:o}):l.attr(h),c.isGroup()&&Vy(l,c,t)}}),S(e.getChildren(),function(l,u){R(r.getChildren())&&u>=r.getCount()&&(l.destroyed||r.add(l))})}var AF=function(){function r(e){this.shapesMap={};var t=e.layout,i=e.container;this.layout=t,this.container=i}return r.prototype.render=function(e,t,i){return i===void 0&&(i=!1),Kn(this,void 0,void 0,function(){var n,a,o,s,l,u,c,h,f=this;return Jn(this,function(v){switch(v.label){case 0:if(n={},a=this.createOffscreenGroup(),!e.length)return[3,2];try{for(o=ht(e),s=o.next();!s.done;s=o.next())l=s.value,l&&(n[l.id]=this.renderLabel(l,a))}catch(d){c={error:d}}finally{try{s&&!s.done&&(h=o.return)&&h.call(o)}finally{if(c)throw c.error}}return[4,this.doLayout(e,t,n)];case 1:v.sent(),this.renderLabelLine(e,n),this.renderLabelBackground(e,n),this.adjustLabel(e,n),v.label=2;case 2:return u=this.shapesMap,S(n,function(d,p){if(d.destroyed)delete n[p];else{if(u[p]){var g=d.get("data"),y=d.get("origin"),x=d.get("coordinate"),w=d.get("animateCfg"),b=u[p];Vy(b,n[p],{data:g,origin:y,animateCfg:w,coordinate:x}),n[p]=b}else{if(f.container.destroyed)return;f.container.add(d);var C=A(d.get("animateCfg"),i?"enter":"appear");C&&Zi(d,C,{toAttrs:m({},d.attr()),coordinate:d.get("coordinate")})}delete u[p]}}),S(u,function(d){var p=A(d.get("animateCfg"),"leave");p?Zi(d,p,{toAttrs:null,coordinate:d.get("coordinate")}):d.remove(!0)}),this.shapesMap=n,a.destroy(),[2]}})})},r.prototype.clear=function(){this.container.clear(),this.shapesMap={}},r.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},r.prototype.renderLabel=function(e,t){var i=e.id,n=e.elementId,a=e.data,o=e.mappingData,s=e.coordinate,l=e.animate,u=e.content,c=e.capture,h={id:i,elementId:n,capture:c,data:a,origin:m(m({},o),{data:o[bt]}),coordinate:s},f=t.addGroup(m({name:"label",animateCfg:this.animate===!1||l===null||l===!1?!1:H({},this.animate,l)},h)),v;if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var d=u.getCanvasBBox(),p=d.width,g=d.height,y=A(e,"textAlign","left"),x=e.x,w=e.y-g/2;y==="center"?x=x-p/2:(y==="right"||y==="end")&&(x=x-p),Da(u,x,w),v=u,f.add(u)}else{var b=A(e,["style","fill"]);v=f.addShape("text",m({attrs:m(m({x:e.x,y:e.y,textAlign:e.textAlign,textBaseline:A(e,"textBaseline","middle"),text:e.content},e.style),{fill:pw(b)?e.color:b})},h))}return e.rotate&&zc(v,e.rotate),f},r.prototype.doLayout=function(e,t,i){return Kn(this,void 0,void 0,function(){var n,a=this;return Jn(this,function(o){switch(o.label){case 0:return this.layout?(n=R(this.layout)?this.layout:[this.layout],[4,Promise.all(n.map(function(s){var l=yF(A(s,"type",""));if(l){var u=[],c=[];return S(i,function(h,f){u.push(h),c.push(t[h.get("elementId")])}),l(e,u,c,a.region,s.cfg)}}))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},r.prototype.renderLabelLine=function(e,t){S(e,function(i){var n=A(i,"coordinate");if(!(!i||!n)){var a=n.getCenter(),o=n.getRadius();if(i.labelLine){var s=A(i,"labelLine",{}),l=i.id,u=s.path;if(!u){var c=Ot(a.x,a.y,o,i.angle);u=[["M",c.x,c.y],["L",i.x,i.y]]}var h=t[l];h.destroyed||h.addShape("path",{capture:!1,attrs:m({path:u,stroke:i.color?i.color:A(i,["style","fill"],"#000"),fill:null},s.style),id:l,origin:i.mappingData,data:i.data,coordinate:i.coordinate})}}})},r.prototype.renderLabelBackground=function(e,t){S(e,function(i){var n=A(i,"coordinate"),a=A(i,"background");if(!(!a||!n)){var o=i.id,s=t[o];if(!s.destroyed){var l=s.getChildren()[0];if(l){var u=Gy(s,i,a.padding),c=u.rotation,h=gt(u,["rotation"]),f=s.addShape("rect",{attrs:m(m({},h),a.style||{}),id:o,origin:i.mappingData,data:i.data,coordinate:i.coordinate});if(f.setZIndex(-1),c){var v=l.getMatrix();f.setMatrix(v)}}}}})},r.prototype.createOffscreenGroup=function(){var e=this.container,t=e.getGroupBase(),i=new t({});return i},r.prototype.adjustLabel=function(e,t){S(e,function(i){if(i){var n=i.id,a=t[n];if(!a.destroyed){var o=a.findAll(function(s){return s.get("type")!=="path"});S(o,function(s){s&&(i.offsetX&&s.attr("x",s.attr("x")+i.offsetX),i.offsetY&&s.attr("y",s.attr("y")+i.offsetY))})}}})},r}();function Ev(r){var e=0;return S(r,function(t){e+=t}),e/r.length}var $s=function(){function r(e){this.geometry=e}return r.prototype.getLabelItems=function(e){var t=this,i=[],n=this.getLabelCfgs(e);return S(e,function(a,o){var s=n[o];if(!s||B(a.x)||B(a.y)){i.push(null);return}var l=R(s.content)?s.content:[s.content];s.content=l;var u=l.length;S(l,function(c,h){if(B(c)||c===""){i.push(null);return}var f=m(m({},s),t.getLabelPoint(s,a,h));f.textAlign||(f.textAlign=t.getLabelAlign(f,h,u)),f.offset<=0&&(f.labelLine=null),i.push(f)})}),i},r.prototype.render=function(e,t){return t===void 0&&(t=!1),Kn(this,void 0,void 0,function(){var i,n,a;return Jn(this,function(o){switch(o.label){case 0:return i=this.getLabelItems(e),n=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,n.render(i,a,t)];case 1:return o.sent(),[2]}})})},r.prototype.clear=function(){var e=this.labelsRenderer;e&&e.clear()},r.prototype.destroy=function(){var e=this.labelsRenderer;e&&e.destroy(),this.labelsRenderer=null},r.prototype.getCoordinate=function(){return this.geometry.coordinate},r.prototype.getDefaultLabelCfg=function(e,t){var i=this.geometry,n=i.type,a=i.theme;return n==="polygon"||n==="interval"&&t==="middle"||e<0&&!["line","point","path"].includes(n)?A(a,"innerLabels",{}):A(a,"labels",{})},r.prototype.getThemedLabelCfg=function(e){var t=this.geometry,i=this.getDefaultLabelCfg(),n=t.type,a=t.theme,o;return n==="polygon"||e.offset<0&&!["line","point","path"].includes(n)?o=H({},i,a.innerLabels,e):o=H({},i,a.labels,e),o},r.prototype.setLabelPosition=function(e,t,i,n){},r.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),i=this.getOffsetVector(e);return t.isTransposed?i[0]:i[1]},r.prototype.getLabelOffsetPoint=function(e,t,i){var n=e.offset,a=this.getCoordinate(),o=a.isTransposed,s=o?"x":"y",l=o?1:-1,u={x:0,y:0};return t>0||i===1?u[s]=n*l:u[s]=n*l*-1,u},r.prototype.getLabelPoint=function(e,t,i){var n=this.getCoordinate(),a=e.content.length;function o(g,y,x){x===void 0&&(x=!1);var w=g;return R(w)&&(e.content.length===1?x?w=Ev(w):w.length<=2?w=w[g.length-1]:w=Ev(w):w=w[y]),w}var s={content:e.content[i],x:0,y:0,start:{x:0,y:0},color:"#fff"},l=R(t.shape)?t.shape[0]:t.shape,u=l==="funnel"||l==="pyramid";if(this.geometry.type==="polygon"){var c=sA(t.x,t.y);s.x=c[0],s.y=c[1]}else this.geometry.type==="interval"&&!u?(s.x=o(t.x,i,!0),s.y=o(t.y,i)):(s.x=o(t.x,i),s.y=o(t.y,i));if(u){var h=A(t,"nextPoints"),f=A(t,"points");if(h){var v=n.convert(f[1]),d=n.convert(h[1]);s.x=(v.x+d.x)/2,s.y=(v.y+d.y)/2}else if(l==="pyramid"){var v=n.convert(f[1]),d=n.convert(f[2]);s.x=(v.x+d.x)/2,s.y=(v.y+d.y)/2}}e.position&&this.setLabelPosition(s,t,i,e.position);var p=this.getLabelOffsetPoint(e,i,a);return s.start={x:s.x,y:s.y},s.x+=p.x,s.y+=p.y,s.color=t.color,s},r.prototype.getLabelAlign=function(e,t,i){var n="center",a=this.getCoordinate();if(a.isTransposed){var o=e.offset;o<0?n="right":o===0?n="center":n="left",i>1&&t===0&&(n==="right"?n="left":n==="left"&&(n="right"))}return n},r.prototype.getLabelId=function(e){var t=this.geometry,i=t.type,n=t.getXScale(),a=t.getYScale(),o=e[bt],s=t.getElementId(e);return i==="line"||i==="area"?s+=" ".concat(o[n.field]):i==="path"&&(s+=" ".concat(o[n.field],"-").concat(o[a.field])),s},r.prototype.getLabelsRenderer=function(){var e=this.geometry,t=e.labelsContainer,i=e.labelOption,n=e.canvasRegion,a=e.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new AF({container:t,layout:A(i,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=n,s.animate=a?Dy("label",o):!1,s},r.prototype.getLabelCfgs=function(e){var t=this,i=this.geometry,n=i.labelOption,a=i.scales,o=i.coordinate,s=n,l=s.fields,u=s.callback,c=s.cfg,h=l.map(function(v){return a[v]}),f=[];return S(e,function(v,d){var p=v[bt],g=t.getLabelText(p,h),y;if(u){var x=l.map(function(F){return p[F]});if(y=u.apply(void 0,Z([],U(x),!1)),B(y)){f.push(null);return}}var w=m(m({id:t.getLabelId(v),elementId:t.geometry.getElementId(v),data:p,mappingData:v,coordinate:o},c),y);_(w.position)&&(w.position=w.position(p,v,d));var b=t.getLabelOffset(w.offset||0),C=t.getDefaultLabelCfg(b,w.position);w=H({},C,w),w.offset=t.getLabelOffset(w.offset||0);var M=w.content;_(M)?w.content=M(p,v,d):oi(M)&&(w.content=g[0]),f.push(w)}),f},r.prototype.getLabelText=function(e,t){var i=[];return S(t,function(n){var a=e[n.field];R(a)?a=a.map(function(o){return n.getText(o)}):a=n.getText(a),B(a)||a===""?i.push(null):i.push(a)}),i},r.prototype.getOffsetVector=function(e){e===void 0&&(e=0);var t=this.getCoordinate(),i=0;return rt(e)&&(i=e),t.isTransposed?t.applyMatrix(i,0):t.applyMatrix(0,i)},r.prototype.getGeometryShapes=function(){var e=this.geometry,t={};return S(e.elementsMap,function(i,n){t[n]=i.shape}),S(e.getOffscreenGroup().getChildren(),function(i){var n=e.getElementId(i.get("origin").mappingData);t[n]=i}),t},r}();function Fu(r,e,t){if(!r)return t;var i;if(r.callback&&r.callback.length>1){var n=Array(r.callback.length-1).fill("");i=r.mapping.apply(r,Z([e],U(n),!1)).join("")}else i=r.mapping(e).join("");return i||t}var Ai={hexagon:function(r,e,t){var i=t/2*Math.sqrt(3);return[["M",r,e-t],["L",r+i,e-t/2],["L",r+i,e+t/2],["L",r,e+t],["L",r-i,e+t/2],["L",r-i,e-t/2],["Z"]]},bowtie:function(r,e,t){var i=t-1.5;return[["M",r-t,e-i],["L",r+t,e+i],["L",r+t,e-i],["L",r-t,e+i],["Z"]]},cross:function(r,e,t){return[["M",r-t,e-t],["L",r+t,e+t],["M",r+t,e-t],["L",r-t,e+t]]},tick:function(r,e,t){return[["M",r-t/2,e-t],["L",r+t/2,e-t],["M",r,e-t],["L",r,e+t],["M",r-t/2,e+t],["L",r+t/2,e+t]]},plus:function(r,e,t){return[["M",r-t,e],["L",r+t,e],["M",r,e-t],["L",r,e+t]]},hyphen:function(r,e,t){return[["M",r-t,e],["L",r+t,e]]},line:function(r,e,t){return[["M",r,e-t],["L",r,e+t]]}},FF=["line","cross","tick","plus","hyphen"];function TF(r,e){return _(e)?e(r):H({},r,e)}function EF(r,e){var t=r.symbol;if(K(t)&&FF.indexOf(t)!==-1){var i=A(r,"style",{}),n=A(i,"lineWidth",1),a=i.stroke||i.fill||e;r.style=H({},r.style,{lineWidth:n,stroke:a,fill:null})}}function Yy(r){var e=r.symbol;K(e)&&Ai[e]&&(r.symbol=Ai[e])}function El(r){return r.startsWith(G.LEFT)||r.startsWith(G.RIGHT)?"vertical":"horizontal"}function $y(r,e,t,i,n){var a=t.getScale(t.type);if(a.isCategory){var o=a.field,s=e.getAttribute("color"),l=e.getAttribute("shape"),u=r.getTheme().defaultColor,c=e.coordinate.isPolar;return a.getTicks().map(function(h,f){var v,d=h.text,p=h.value,g=d,y=a.invert(p),x=r.filterFieldData(o,[(v={},v[o]=y,v)]).length===0;S(r.views,function(F){var T;F.filterFieldData(o,[(T={},T[o]=y,T)]).length||(x=!0)});var w=Fu(s,y,u),b=Fu(l,y,"point"),C=e.getShapeMarker(b,{color:w,isInPolar:c}),M=n;return _(M)&&(M=M(g,f,m({name:g,value:y},H({},i,C)))),C=H({},i,C,le(m({},M),["style"])),EF(C,w),M&&M.style&&(C.style=TF(C.style,M.style)),Yy(C),{id:y,name:g,value:y,marker:C,unchecked:x}})}return[]}function kF(r,e,t){return t.map(function(i,n){var a=e;_(a)&&(a=a(i.name,n,H({},r,i)));var o=_(i.marker)?i.marker(i.name,n,H({},r,i)):i.marker,s=H({},r,a,o);return Yy(s),i.marker=s,i})}function kv(r,e){var t=A(r,["components","legend"],{});return H({},A(t,["common"],{}),H({},A(t,[e],{})))}function kl(r){return r?!1:r==null||isNaN(r)}function Lv(r){if(R(r))return kl(r[1].y);var e=r.y;return R(e)?kl(e[0]):kl(e)}function Hs(r,e,t){if(e===void 0&&(e=!1),t===void 0&&(t=!0),!r.length||r.length===1&&!t)return[];if(e){for(var i=[],n=0,a=r.length;n=r&&n<=r+t&&a>=e&&a<=e+i}function pa(r,e){return!(e.minX>r.maxX||e.maxXr.maxY||e.maxY=0&&n<1/2*Math.PI?(s={x:o.minX,y:o.minY},l={x:o.maxX,y:o.maxY}):1/2*Math.PI<=n&&n1&&(t*=Math.sqrt(v),i*=Math.sqrt(v));var d=t*t*(f*f)+i*i*(h*h),p=d?Math.sqrt((t*t*(i*i)-d)/d):1;a===o&&(p*=-1),isNaN(p)&&(p=0);var g=i?p*t*f/i:0,y=t?p*-i*h/t:0,x=(s+u)/2+Math.cos(n)*g-Math.sin(n)*y,b=(l+c)/2+Math.sin(n)*g+Math.cos(n)*y,w=[(h-g)/t,(f-y)/i],C=[(-1*h-g)/t,(-1*f-y)/i],M=Pv([1,0],w),F=Pv(w,C);return Eu(w,C)<=-1&&(F=Math.PI),Eu(w,C)>=1&&(F=0),o===0&&F>0&&(F=F-2*Math.PI),o===1&&F<0&&(F=F+2*Math.PI),{cx:x,cy:b,rx:Iv(r,[u,c])?0:t,ry:Iv(r,[u,c])?0:i,startAngle:M,endAngle:M+F,xRotation:n,arcFlag:a,sweepFlag:o}}var Ko=Math.sin,Jo=Math.cos,Vc=Math.atan2,ro=Math.PI;function Qy(r,e,t,i,n,a,o){var s=e.stroke,l=e.lineWidth,u=t-n,c=i-a,h=Vc(c,u),f=new Wc({type:"path",canvas:r.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Jo(ro/6)+","+10*Ko(ro/6)+" L0,0 L"+10*Jo(ro/6)+",-"+10*Ko(ro/6),stroke:s,lineWidth:l}});f.translate(n,a),f.rotateAtPoint(n,a,h),r.set(o?"startArrowShape":"endArrowShape",f)}function Ky(r,e,t,i,n,a,o){var s=e.startArrow,l=e.endArrow,u=e.stroke,c=e.lineWidth,h=o?s:l,f=h.d,v=h.fill,d=h.stroke,p=h.lineWidth,g=gt(h,["d","fill","stroke","lineWidth"]),y=t-n,x=i-a,b=Vc(x,y);f&&(n=n-Jo(b)*f,a=a-Ko(b)*f);var w=new Wc({type:"path",canvas:r.get("canvas"),isArrowShape:!0,attrs:m(m({},g),{stroke:d||u,lineWidth:p||c,fill:v})});w.translate(n,a),w.rotateAtPoint(n,a,b),r.set(o?"startArrowShape":"endArrowShape",w)}function mi(r,e,t,i,n){var a=Vc(i-e,t-r);return{dx:Jo(a)*n,dy:Ko(a)*n}}function Yc(r,e,t,i,n,a){typeof e.startArrow=="object"?Ky(r,e,t,i,n,a,!0):e.startArrow?Qy(r,e,t,i,n,a,!0):r.set("startArrowShape",null)}function $c(r,e,t,i,n,a){typeof e.endArrow=="object"?Ky(r,e,t,i,n,a,!1):e.endArrow?Qy(r,e,t,i,n,a,!1):r.set("startArrowShape",null)}var Dv={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function ln(r,e){var t=e.attr();for(var i in t){var n=t[i],a=Dv[i]?Dv[i]:i;a==="matrix"&&n?r.transform(n[0],n[1],n[3],n[4],n[6],n[7]):a==="lineDash"&&r.setLineDash?R(n)&&r.setLineDash(n):(a==="strokeStyle"||a==="fillStyle"?n=WF(r,e,n):a==="globalAlpha"&&(n=n*r.globalAlpha),r[a]=n)}}function ku(r,e,t){for(var i=0;iC?w:C,P=w>C?1:w/C,O=w>C?C/w:1;e.translate(x,b),e.rotate(T),e.scale(P,O),e.arc(0,0,k,M,F,1-L),e.scale(1/P,1/O),e.rotate(-T),e.translate(-x,-b)}break}case"Z":e.closePath();break}if(f==="Z")s=l;else{var N=h.length;s=[h[N-2],h[N-1]]}}}}function em(r,e){var t=r.get("canvas");t&&(e==="remove"&&(r._cacheCanvasBBox=r.get("cacheCanvasBBox")),r.get("hasChanged")||(r.set("hasChanged",!0),r.cfg.parent&&r.cfg.parent.get("hasChanged")||(t.refreshElement(r,e,t),t.get("autoDraw")&&t.draw())))}function jF(r){var e;if(r.destroyed)e=r._cacheCanvasBBox;else{var t=r.get("cacheCanvasBBox"),i=t&&!!(t.width&&t.height),n=r.getCanvasBBox(),a=n&&!!(n.width&&n.height);i&&a?e=zF(t,n):i?e=t:a&&(e=n)}return e}function ZF(r){if(!r.length)return null;var e=[],t=[],i=[],n=[];return S(r,function(a){var o=jF(a);o&&(e.push(o.minX),t.push(o.minY),i.push(o.maxX),n.push(o.maxY))}),{minX:Le(e),minY:Le(t),maxX:be(i),maxY:be(n)}}function QF(r,e){return!r||!e||!pa(r,e)?null:{minX:Math.max(r.minX,e.minX),minY:Math.max(r.minY,e.minY),maxX:Math.min(r.maxX,e.maxX),maxY:Math.min(r.maxY,e.maxY)}}var Xc=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onCanvasChange=function(t){em(this,t)},e.prototype.getShapeBase=function(){return ls},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,i){i&&(t.save(),ln(t,i),i.createPath(t),t.restore(),t.clip(),i._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,i=[],n=[];S(t,function(f){var v=f.cfg.cacheCanvasBBox;v&&f.cfg.isInView&&(i.push(v.minX,v.maxX),n.push(v.minY,v.maxY))});var a=null;if(i.length){var o=Le(i),s=be(i),l=Le(n),u=be(n);a={minX:o,minY:l,x:o,y:l,maxX:s,maxY:u,width:s-o,height:u-l};var c=this.cfg.canvas;if(c){var h=c.getViewRange();this.set("isInView",pa(a,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",a)},e.prototype.draw=function(t,i){var n=this.cfg.children,a=i?this.cfg.refresh:!0;n.length&&a&&(t.save(),ln(t,this),this._applyClip(t,this.getClip()),ku(t,n,i),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(ys),Xe=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return ls},e.prototype.getGroupBase=function(){return Xc},e.prototype.onCanvasChange=function(t){em(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),i=this.getHitLineWidth(),n=xs(t),a=n(this),o=i/2,s=a.x-o,l=a.y-o,u=a.x+a.width+o,c=a.y+a.height+o;return{x:s,minX:s,y:l,minY:l,width:a.width+i,height:a.height+i,maxX:u,maxY:c}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,i){i&&(t.save(),ln(t,i),i.createPath(t),t.restore(),t.clip(),i._afterDraw())},e.prototype.draw=function(t,i){var n=this.cfg.clipShape;if(i){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var a=this.getCanvasBBox();if(!pa(i,a)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}t.save(),ln(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var i=this.getCanvasBBox(),n=pa(i,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",i):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var i=this.attrs,n=i.lineWidth,a=i.opacity,o=i.strokeOpacity,s=i.fillOpacity;this.isFill()&&(!B(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=a):this.fill(t)),this.isStroke()&&n>0&&(!B(o)&&o!==1&&(t.globalAlpha=o),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,i){var n=this.isStroke(),a=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(t,i,n,a,o)},e.prototype.isInStrokeOrPath=function(t,i,n,a,o){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(ms),KF=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,i,n,a,o){var s=this.attr(),l=s.x,u=s.y,c=s.r,h=o/2,f=Uy(l,u,t,i);return a&&n?f<=c+h:a?f<=c:n?f>=c-h&&f<=c+h:!1},e.prototype.createPath=function(t){var i=this.attr(),n=i.x,a=i.y,o=i.r;t.beginPath(),t.arc(n,a,o,0,Math.PI*2,!1),t.closePath()},e}(Xe);function io(r,e,t,i){return r/(t*t)+e/(i*i)}var JF=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,i,n,a,o){var s=this.attr(),l=o/2,u=s.x,c=s.y,h=s.rx,f=s.ry,v=(t-u)*(t-u),d=(i-c)*(i-c);return a&&n?io(v,d,h+l,f+l)<=1:a?io(v,d,h,f)<=1:n?io(v,d,h-l,f-l)>=1&&io(v,d,h+l,f+l)<=1:!1},e.prototype.createPath=function(t){var i=this.attr(),n=i.x,a=i.y,o=i.rx,s=i.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,a,o,s,0,0,Math.PI*2,!1);else{var l=o>s?o:s,u=o>s?1:o/s,c=o>s?s/o:1;t.save(),t.translate(n,a),t.scale(u,c),t.arc(0,0,l,0,Math.PI*2),t.restore(),t.closePath()}},e}(Xe);function Ov(r){return r instanceof HTMLElement&&K(r.nodeName)&&r.nodeName.toUpperCase()==="CANVAS"}var tT=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var i=this,n=this.attrs;if(K(t)){var a=new Image;a.onload=function(){if(i.destroyed)return!1;i.attr("img",a),i.set("loading",!1),i._afterLoading();var o=i.get("callback");o&&o.call(i)},a.crossOrigin="Anonymous",a.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):Ov(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(t,i,n){r.prototype.onAttrChange.call(this,t,i,n),t==="img"&&this._setImage(i)},e.prototype.createPath=function(t){if(this.get("loading")){this.set("toDraw",!0),this.set("context",t);return}var i=this.attr(),n=i.x,a=i.y,o=i.width,s=i.height,l=i.sx,u=i.sy,c=i.swidth,h=i.sheight,f=i.img;(f instanceof Image||Ov(f))&&(!B(l)&&!B(u)&&!B(c)&&!B(h)?t.drawImage(f,l,u,c,h,n,a,o,s):t.drawImage(f,n,a,o,s))},e}(Xe);function Dr(r,e,t,i,n,a,o){var s=Math.min(r,t),l=Math.max(r,t),u=Math.min(e,i),c=Math.max(e,i),h=n/2;return a>=s-h&&a<=l+h&&o>=u-h&&o<=c+h?Wt.pointToLine(r,e,t,i,a,o)<=n/2:!1}var eT=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(t,i,n){r.prototype.onAttrChange.call(this,t,i,n),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),i=t.x1,n=t.y1,a=t.x2,o=t.y2,s=t.startArrow,l=t.endArrow;s&&Yc(this,t,a,o,i,n),l&&$c(this,t,i,n,a,o)},e.prototype.isInStrokeOrPath=function(t,i,n,a,o){if(!n||!o)return!1;var s=this.attr(),l=s.x1,u=s.y1,c=s.x2,h=s.y2;return Dr(l,u,c,h,o,t,i)},e.prototype.createPath=function(t){var i=this.attr(),n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.startArrow,u=i.endArrow,c={dx:0,dy:0},h={dx:0,dy:0};l&&l.d&&(c=mi(n,a,o,s,i.startArrow.d)),u&&u.d&&(h=mi(n,a,o,s,i.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,a+c.dy),t.lineTo(o-h.dx,s-h.dy)},e.prototype.afterDrawPath=function(t){var i=this.get("startArrowShape"),n=this.get("endArrowShape");i&&i.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),i=t.x1,n=t.y1,a=t.x2,o=t.y2;return Wt.length(i,n,a,o)},e.prototype.getPoint=function(t){var i=this.attr(),n=i.x1,a=i.y1,o=i.x2,s=i.y2;return Wt.pointAt(n,a,o,s,t)},e}(Xe),rT={circle:function(r,e,t){return[["M",r-t,e],["A",t,t,0,1,0,r+t,e],["A",t,t,0,1,0,r-t,e]]},square:function(r,e,t){return[["M",r-t,e-t],["L",r+t,e-t],["L",r+t,e+t],["L",r-t,e+t],["Z"]]},diamond:function(r,e,t){return[["M",r-t,e],["L",r,e-t],["L",r+t,e],["L",r,e+t],["Z"]]},triangle:function(r,e,t){var i=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e+i],["L",r,e-i],["L",r+t,e+i],["Z"]]},"triangle-down":function(r,e,t){var i=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e-i],["L",r+t,e-i],["L",r,e+i],["Z"]]}},iT=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(t,i,n){r.prototype.onAttrChange.call(this,t,i,n),["symbol","x","y","r","radius"].indexOf(t)!==-1&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return B(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t=this.attr(),i=t.x,n=t.y,a=t.symbol||"circle",o=this._getR(t),s,l;if(_(a))s=a,l=s(i,n,o),l=ug(l);else{if(s=e.Symbols[a],!s)return console.warn(a+" marker is not supported."),null;l=s(i,n,o)}return l},e.prototype.createPath=function(t){var i=this._getPath(),n=this.get("paramsCache");tm(this,t,{path:i},n)},e.Symbols=rT,e}(Xe);function rm(r,e,t){var i=bs();return r.createPath(i),i.isPointInPath(e,t)}var nT=1e-6;function Ll(r){return Math.abs(r)0!=Ll(s[1]-t)>0&&Ll(e-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}function zn(r,e,t,i,n,a,o,s){var l=(Math.atan2(s-e,o-r)+Math.PI*2)%(Math.PI*2);if(ln)return!1;var u={x:r+t*Math.cos(l),y:e+t*Math.sin(l)};return Uy(u.x,u.y,o,s)<=a/2}var oT=Rt;function sT(r){for(var e=!1,t=r.length,i=0;ib?x:b,L=x>b?1:x/b,k=x>b?b/x:1,P=oT(null,[["t",-g,-y],["r",-M],["s",1/L,1/k]]);ta(F,F,P),a=zn(0,0,T,w,C,e,F[0],F[1]);break}if(a)break}}return a}function uT(r){for(var e=r.length,t=[],i=[],n=[],a=0;a0&&i.push(n),{polygons:t,polylines:i}}const no=m({hasArc:sT,extractPolygons:uT,isPointInStroke:lT},oc);function Bv(r,e,t){for(var i=!1,n=0;n=c[0]&&t<=c[1]&&(n=(t-c[0])/(c[1]-c[0]),a=h)});var s=o[a];if(B(s)||B(a))return null;var l=s.length,u=o[a+1];return Hn.pointAt(s[l-2],s[l-1],u[1],u[2],u[3],u[4],u[5],u[6],n)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",no.pathToCurve(t))},e.prototype._setTcache=function(){var t=0,i=0,n=[],a,o,s,l,u=this.get("curve");if(u){if(S(u,function(c,h){s=u[h+1],l=c.length,s&&(t+=Hn.length(c[l-2],c[l-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",t),t===0){this.set("tCache",[]);return}S(u,function(c,h){s=u[h+1],l=c.length,s&&(a=[],a[0]=i/t,o=Hn.length(c[l-2],c[l-1],s[1],s[2],s[3],s[4],s[5],s[6]),i+=o||0,a[1]=i/t,n.push(a))}),this.set("tCache",n)}},e.prototype.getStartTangent=function(){var t=this.getSegments(),i;if(t.length>1){var n=t[0].currentPoint,a=t[1].currentPoint,o=t[1].startTangent;i=[],o?(i.push([n[0]-o[0],n[1]-o[1]]),i.push([n[0],n[1]])):(i.push([a[0],a[1]]),i.push([n[0],n[1]]))}return i},e.prototype.getEndTangent=function(){var t=this.getSegments(),i=t.length,n;if(i>1){var a=t[i-2].currentPoint,o=t[i-1].currentPoint,s=t[i-1].endTangent;n=[],s?(n.push([o[0]-s[0],o[1]-s[1]]),n.push([o[0],o[1]])):(n.push([a[0],a[1]]),n.push([o[0],o[1]]))}return n},e}(Xe);function nm(r,e,t,i,n){var a=r.length;if(a<2)return!1;for(var o=0;o=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),Wt.pointAt(i[o][0],i[o][1],i[o+1][0],i[o+1][1],a)},e.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var i=this.getTotalLength();if(!(i<=0)){var n=0,a=[],o,s;S(t,function(l,u){t[u+1]&&(o=[],o[0]=n/i,s=Wt.length(l[0],l[1],t[u+1][0],t[u+1][1]),n+=s,o[1]=n/i,a.push(o))}),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,i=[];return i.push([t[1][0],t[1][1]]),i.push([t[0][0],t[0][1]]),i},e.prototype.getEndTangent=function(){var t=this.attr().points,i=t.length-1,n=[];return n.push([t[i-1][0],t[i-1][1]]),n.push([t[i][0],t[i][1]]),n},e}(Xe);function fT(r,e,t,i,n,a,o){var s=n/2;return li(r-s,e-s,t,n,a,o)||li(r+t-s,e-s,n,i,a,o)||li(r+s,e+i-s,t,n,a,o)||li(r-s,e+s,n,i,a,o)}function vT(r,e,t,i,n,a,o,s){return Dr(r+n,e,r+t-n,e,a,o,s)||Dr(r+t,e+n,r+t,e+i-n,a,o,s)||Dr(r+t-n,e+i,r+n,e+i,a,o,s)||Dr(r,e+i-n,r,e+n,a,o,s)||zn(r+t-n,e+n,n,1.5*Math.PI,2*Math.PI,a,o,s)||zn(r+t-n,e+i-n,n,0,.5*Math.PI,a,o,s)||zn(r+n,e+i-n,n,.5*Math.PI,Math.PI,a,o,s)||zn(r+n,e+n,n,Math.PI,1.5*Math.PI,a,o,s)}var dT=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,i,n,a,o){var s=this.attr(),l=s.x,u=s.y,c=s.width,h=s.height,f=s.radius;if(f){var d=!1;return n&&(d=vT(l,u,c,h,f,o,t,i)),!d&&a&&(d=rm(this,t,i)),d}else{var v=o/2;if(a&&n)return li(l-v,u-v,c+v,h+v,t,i);if(a)return li(l,u,c,h,t,i);if(n)return fT(l,u,c,h,o,t,i)}},e.prototype.createPath=function(t){var i=this.attr(),n=i.x,a=i.y,o=i.width,s=i.height,l=i.radius;if(t.beginPath(),l===0)t.rect(n,a,o,s);else{var u=_F(l),c=u[0],h=u[1],f=u[2],v=u[3];t.moveTo(n+c,a),t.lineTo(n+o-h,a),h!==0&&t.arc(n+o-h,a+h,h,-Math.PI/2,0),t.lineTo(n+o,a+s-f),f!==0&&t.arc(n+o-f,a+s-f,f,0,Math.PI/2),t.lineTo(n+v,a+s),v!==0&&t.arc(n+v,a+s-v,v,Math.PI/2,Math.PI),t.lineTo(n,a+c),c!==0&&t.arc(n+c,a+c,c,Math.PI,Math.PI*1.5),t.closePath()}},e}(Xe),pT=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Ss(t)},e.prototype._setText=function(t){var i=null;K(t)&&t.indexOf(` + "Noto Color Emoji"`,axisLineBorderColor:wt[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:wt[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Ar[85],axisTickLineBorderColor:wt[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:wt[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:wt[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:wt[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:wt[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:Be[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:wt[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:wt[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:wt[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:wt[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:wt[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:wt[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Ar[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Ar[25],annotationArcBorderColor:wt[15],annotationArcBorder:1,annotationLineBorderColor:wt[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:wt[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:wt[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:wt[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:wt[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:wt[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Ar[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:wt[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Ar[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:wt[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:Be[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Ar[100],pointBorderOpacity:1,pointActiveBorderColor:wt[100],pointSelectedBorder:2,pointSelectedBorderColor:wt[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:Be[0],hollowPointBorderOpacity:.95,hollowPointFillColor:Ar[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:wt[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:wt[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:Be[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:Be[0],areaFillOpacity:.25,areaActiveFillColor:Be[0],areaActiveFillOpacity:.5,areaSelectedFillColor:Be[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:Be[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:wt[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:wt[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:Be[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:wt[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:wt[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:Be[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Ar[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:wt[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:wt[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return m(m({},s),r)},RF=BF();function NF(){return window?window.devicePixelRatio:1}function Uy(r,e,t,i){var n=r-t,a=e-i;return Math.sqrt(n*n+a*a)}function li(r,e,t,i,n,a){return n>=r&&n<=r+t&&a>=e&&a<=e+i}function pa(r,e){return!(e.minX>r.maxX||e.maxXr.maxY||e.maxY=0&&n<1/2*Math.PI?(s={x:o.minX,y:o.minY},l={x:o.maxX,y:o.maxY}):1/2*Math.PI<=n&&n1&&(t*=Math.sqrt(v),i*=Math.sqrt(v));var d=t*t*(f*f)+i*i*(h*h),p=d?Math.sqrt((t*t*(i*i)-d)/d):1;a===o&&(p*=-1),isNaN(p)&&(p=0);var g=i?p*t*f/i:0,y=t?p*-i*h/t:0,x=(s+u)/2+Math.cos(n)*g-Math.sin(n)*y,w=(l+c)/2+Math.sin(n)*g+Math.cos(n)*y,b=[(h-g)/t,(f-y)/i],C=[(-1*h-g)/t,(-1*f-y)/i],M=Pv([1,0],b),F=Pv(b,C);return Eu(b,C)<=-1&&(F=Math.PI),Eu(b,C)>=1&&(F=0),o===0&&F>0&&(F=F-2*Math.PI),o===1&&F<0&&(F=F+2*Math.PI),{cx:x,cy:w,rx:Iv(r,[u,c])?0:t,ry:Iv(r,[u,c])?0:i,startAngle:M,endAngle:M+F,xRotation:n,arcFlag:a,sweepFlag:o}}var Ko=Math.sin,Jo=Math.cos,Vc=Math.atan2,ro=Math.PI;function Qy(r,e,t,i,n,a,o){var s=e.stroke,l=e.lineWidth,u=t-n,c=i-a,h=Vc(c,u),f=new Wc({type:"path",canvas:r.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Jo(ro/6)+","+10*Ko(ro/6)+" L0,0 L"+10*Jo(ro/6)+",-"+10*Ko(ro/6),stroke:s,lineWidth:l}});f.translate(n,a),f.rotateAtPoint(n,a,h),r.set(o?"startArrowShape":"endArrowShape",f)}function Ky(r,e,t,i,n,a,o){var s=e.startArrow,l=e.endArrow,u=e.stroke,c=e.lineWidth,h=o?s:l,f=h.d,v=h.fill,d=h.stroke,p=h.lineWidth,g=gt(h,["d","fill","stroke","lineWidth"]),y=t-n,x=i-a,w=Vc(x,y);f&&(n=n-Jo(w)*f,a=a-Ko(w)*f);var b=new Wc({type:"path",canvas:r.get("canvas"),isArrowShape:!0,attrs:m(m({},g),{stroke:d||u,lineWidth:p||c,fill:v})});b.translate(n,a),b.rotateAtPoint(n,a,w),r.set(o?"startArrowShape":"endArrowShape",b)}function mi(r,e,t,i,n){var a=Vc(i-e,t-r);return{dx:Jo(a)*n,dy:Ko(a)*n}}function Yc(r,e,t,i,n,a){typeof e.startArrow=="object"?Ky(r,e,t,i,n,a,!0):e.startArrow?Qy(r,e,t,i,n,a,!0):r.set("startArrowShape",null)}function $c(r,e,t,i,n,a){typeof e.endArrow=="object"?Ky(r,e,t,i,n,a,!1):e.endArrow?Qy(r,e,t,i,n,a,!1):r.set("startArrowShape",null)}var Dv={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function ln(r,e){var t=e.attr();for(var i in t){var n=t[i],a=Dv[i]?Dv[i]:i;a==="matrix"&&n?r.transform(n[0],n[1],n[3],n[4],n[6],n[7]):a==="lineDash"&&r.setLineDash?R(n)&&r.setLineDash(n):(a==="strokeStyle"||a==="fillStyle"?n=WF(r,e,n):a==="globalAlpha"&&(n=n*r.globalAlpha),r[a]=n)}}function ku(r,e,t){for(var i=0;iC?b:C,I=b>C?1:b/C,O=b>C?C/b:1;e.translate(x,w),e.rotate(T),e.scale(I,O),e.arc(0,0,k,M,F,1-L),e.scale(1/I,1/O),e.rotate(-T),e.translate(-x,-w)}break}case"Z":e.closePath();break}if(f==="Z")s=l;else{var N=h.length;s=[h[N-2],h[N-1]]}}}}function em(r,e){var t=r.get("canvas");t&&(e==="remove"&&(r._cacheCanvasBBox=r.get("cacheCanvasBBox")),r.get("hasChanged")||(r.set("hasChanged",!0),r.cfg.parent&&r.cfg.parent.get("hasChanged")||(t.refreshElement(r,e,t),t.get("autoDraw")&&t.draw())))}function jF(r){var e;if(r.destroyed)e=r._cacheCanvasBBox;else{var t=r.get("cacheCanvasBBox"),i=t&&!!(t.width&&t.height),n=r.getCanvasBBox(),a=n&&!!(n.width&&n.height);i&&a?e=zF(t,n):i?e=t:a&&(e=n)}return e}function ZF(r){if(!r.length)return null;var e=[],t=[],i=[],n=[];return S(r,function(a){var o=jF(a);o&&(e.push(o.minX),t.push(o.minY),i.push(o.maxX),n.push(o.maxY))}),{minX:Le(e),minY:Le(t),maxX:be(i),maxY:be(n)}}function QF(r,e){return!r||!e||!pa(r,e)?null:{minX:Math.max(r.minX,e.minX),minY:Math.max(r.minY,e.minY),maxX:Math.min(r.maxX,e.maxX),maxY:Math.min(r.maxY,e.maxY)}}var Xc=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onCanvasChange=function(t){em(this,t)},e.prototype.getShapeBase=function(){return ls},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,i){i&&(t.save(),ln(t,i),i.createPath(t),t.restore(),t.clip(),i._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,i=[],n=[];S(t,function(f){var v=f.cfg.cacheCanvasBBox;v&&f.cfg.isInView&&(i.push(v.minX,v.maxX),n.push(v.minY,v.maxY))});var a=null;if(i.length){var o=Le(i),s=be(i),l=Le(n),u=be(n);a={minX:o,minY:l,x:o,y:l,maxX:s,maxY:u,width:s-o,height:u-l};var c=this.cfg.canvas;if(c){var h=c.getViewRange();this.set("isInView",pa(a,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",a)},e.prototype.draw=function(t,i){var n=this.cfg.children,a=i?this.cfg.refresh:!0;n.length&&a&&(t.save(),ln(t,this),this._applyClip(t,this.getClip()),ku(t,n,i),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(ys),Xe=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return ls},e.prototype.getGroupBase=function(){return Xc},e.prototype.onCanvasChange=function(t){em(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),i=this.getHitLineWidth(),n=xs(t),a=n(this),o=i/2,s=a.x-o,l=a.y-o,u=a.x+a.width+o,c=a.y+a.height+o;return{x:s,minX:s,y:l,minY:l,width:a.width+i,height:a.height+i,maxX:u,maxY:c}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,i){i&&(t.save(),ln(t,i),i.createPath(t),t.restore(),t.clip(),i._afterDraw())},e.prototype.draw=function(t,i){var n=this.cfg.clipShape;if(i){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var a=this.getCanvasBBox();if(!pa(i,a)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}t.save(),ln(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var i=this.getCanvasBBox(),n=pa(i,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",i):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var i=this.attrs,n=i.lineWidth,a=i.opacity,o=i.strokeOpacity,s=i.fillOpacity;this.isFill()&&(!B(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=a):this.fill(t)),this.isStroke()&&n>0&&(!B(o)&&o!==1&&(t.globalAlpha=o),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,i){var n=this.isStroke(),a=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(t,i,n,a,o)},e.prototype.isInStrokeOrPath=function(t,i,n,a,o){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(ms),KF=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,i,n,a,o){var s=this.attr(),l=s.x,u=s.y,c=s.r,h=o/2,f=Uy(l,u,t,i);return a&&n?f<=c+h:a?f<=c:n?f>=c-h&&f<=c+h:!1},e.prototype.createPath=function(t){var i=this.attr(),n=i.x,a=i.y,o=i.r;t.beginPath(),t.arc(n,a,o,0,Math.PI*2,!1),t.closePath()},e}(Xe);function io(r,e,t,i){return r/(t*t)+e/(i*i)}var JF=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,i,n,a,o){var s=this.attr(),l=o/2,u=s.x,c=s.y,h=s.rx,f=s.ry,v=(t-u)*(t-u),d=(i-c)*(i-c);return a&&n?io(v,d,h+l,f+l)<=1:a?io(v,d,h,f)<=1:n?io(v,d,h-l,f-l)>=1&&io(v,d,h+l,f+l)<=1:!1},e.prototype.createPath=function(t){var i=this.attr(),n=i.x,a=i.y,o=i.rx,s=i.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,a,o,s,0,0,Math.PI*2,!1);else{var l=o>s?o:s,u=o>s?1:o/s,c=o>s?s/o:1;t.save(),t.translate(n,a),t.scale(u,c),t.arc(0,0,l,0,Math.PI*2),t.restore(),t.closePath()}},e}(Xe);function Ov(r){return r instanceof HTMLElement&&K(r.nodeName)&&r.nodeName.toUpperCase()==="CANVAS"}var tT=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var i=this,n=this.attrs;if(K(t)){var a=new Image;a.onload=function(){if(i.destroyed)return!1;i.attr("img",a),i.set("loading",!1),i._afterLoading();var o=i.get("callback");o&&o.call(i)},a.crossOrigin="Anonymous",a.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):Ov(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(t,i,n){r.prototype.onAttrChange.call(this,t,i,n),t==="img"&&this._setImage(i)},e.prototype.createPath=function(t){if(this.get("loading")){this.set("toDraw",!0),this.set("context",t);return}var i=this.attr(),n=i.x,a=i.y,o=i.width,s=i.height,l=i.sx,u=i.sy,c=i.swidth,h=i.sheight,f=i.img;(f instanceof Image||Ov(f))&&(!B(l)&&!B(u)&&!B(c)&&!B(h)?t.drawImage(f,l,u,c,h,n,a,o,s):t.drawImage(f,n,a,o,s))},e}(Xe);function Dr(r,e,t,i,n,a,o){var s=Math.min(r,t),l=Math.max(r,t),u=Math.min(e,i),c=Math.max(e,i),h=n/2;return a>=s-h&&a<=l+h&&o>=u-h&&o<=c+h?Wt.pointToLine(r,e,t,i,a,o)<=n/2:!1}var eT=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(t,i,n){r.prototype.onAttrChange.call(this,t,i,n),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),i=t.x1,n=t.y1,a=t.x2,o=t.y2,s=t.startArrow,l=t.endArrow;s&&Yc(this,t,a,o,i,n),l&&$c(this,t,i,n,a,o)},e.prototype.isInStrokeOrPath=function(t,i,n,a,o){if(!n||!o)return!1;var s=this.attr(),l=s.x1,u=s.y1,c=s.x2,h=s.y2;return Dr(l,u,c,h,o,t,i)},e.prototype.createPath=function(t){var i=this.attr(),n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.startArrow,u=i.endArrow,c={dx:0,dy:0},h={dx:0,dy:0};l&&l.d&&(c=mi(n,a,o,s,i.startArrow.d)),u&&u.d&&(h=mi(n,a,o,s,i.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,a+c.dy),t.lineTo(o-h.dx,s-h.dy)},e.prototype.afterDrawPath=function(t){var i=this.get("startArrowShape"),n=this.get("endArrowShape");i&&i.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),i=t.x1,n=t.y1,a=t.x2,o=t.y2;return Wt.length(i,n,a,o)},e.prototype.getPoint=function(t){var i=this.attr(),n=i.x1,a=i.y1,o=i.x2,s=i.y2;return Wt.pointAt(n,a,o,s,t)},e}(Xe),rT={circle:function(r,e,t){return[["M",r-t,e],["A",t,t,0,1,0,r+t,e],["A",t,t,0,1,0,r-t,e]]},square:function(r,e,t){return[["M",r-t,e-t],["L",r+t,e-t],["L",r+t,e+t],["L",r-t,e+t],["Z"]]},diamond:function(r,e,t){return[["M",r-t,e],["L",r,e-t],["L",r+t,e],["L",r,e+t],["Z"]]},triangle:function(r,e,t){var i=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e+i],["L",r,e-i],["L",r+t,e+i],["Z"]]},"triangle-down":function(r,e,t){var i=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e-i],["L",r+t,e-i],["L",r,e+i],["Z"]]}},iT=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(t,i,n){r.prototype.onAttrChange.call(this,t,i,n),["symbol","x","y","r","radius"].indexOf(t)!==-1&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return B(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t=this.attr(),i=t.x,n=t.y,a=t.symbol||"circle",o=this._getR(t),s,l;if(_(a))s=a,l=s(i,n,o),l=ug(l);else{if(s=e.Symbols[a],!s)return console.warn(a+" marker is not supported."),null;l=s(i,n,o)}return l},e.prototype.createPath=function(t){var i=this._getPath(),n=this.get("paramsCache");tm(this,t,{path:i},n)},e.Symbols=rT,e}(Xe);function rm(r,e,t){var i=bs();return r.createPath(i),i.isPointInPath(e,t)}var nT=1e-6;function Ll(r){return Math.abs(r)0!=Ll(s[1]-t)>0&&Ll(e-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}function zn(r,e,t,i,n,a,o,s){var l=(Math.atan2(s-e,o-r)+Math.PI*2)%(Math.PI*2);if(ln)return!1;var u={x:r+t*Math.cos(l),y:e+t*Math.sin(l)};return Uy(u.x,u.y,o,s)<=a/2}var oT=Rt;function sT(r){for(var e=!1,t=r.length,i=0;iw?x:w,L=x>w?1:x/w,k=x>w?w/x:1,I=oT(null,[["t",-g,-y],["r",-M],["s",1/L,1/k]]);ta(F,F,I),a=zn(0,0,T,b,C,e,F[0],F[1]);break}if(a)break}}return a}function uT(r){for(var e=r.length,t=[],i=[],n=[],a=0;a0&&i.push(n),{polygons:t,polylines:i}}const no=m({hasArc:sT,extractPolygons:uT,isPointInStroke:lT},oc);function Bv(r,e,t){for(var i=!1,n=0;n=c[0]&&t<=c[1]&&(n=(t-c[0])/(c[1]-c[0]),a=h)});var s=o[a];if(B(s)||B(a))return null;var l=s.length,u=o[a+1];return Hn.pointAt(s[l-2],s[l-1],u[1],u[2],u[3],u[4],u[5],u[6],n)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",no.pathToCurve(t))},e.prototype._setTcache=function(){var t=0,i=0,n=[],a,o,s,l,u=this.get("curve");if(u){if(S(u,function(c,h){s=u[h+1],l=c.length,s&&(t+=Hn.length(c[l-2],c[l-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",t),t===0){this.set("tCache",[]);return}S(u,function(c,h){s=u[h+1],l=c.length,s&&(a=[],a[0]=i/t,o=Hn.length(c[l-2],c[l-1],s[1],s[2],s[3],s[4],s[5],s[6]),i+=o||0,a[1]=i/t,n.push(a))}),this.set("tCache",n)}},e.prototype.getStartTangent=function(){var t=this.getSegments(),i;if(t.length>1){var n=t[0].currentPoint,a=t[1].currentPoint,o=t[1].startTangent;i=[],o?(i.push([n[0]-o[0],n[1]-o[1]]),i.push([n[0],n[1]])):(i.push([a[0],a[1]]),i.push([n[0],n[1]]))}return i},e.prototype.getEndTangent=function(){var t=this.getSegments(),i=t.length,n;if(i>1){var a=t[i-2].currentPoint,o=t[i-1].currentPoint,s=t[i-1].endTangent;n=[],s?(n.push([o[0]-s[0],o[1]-s[1]]),n.push([o[0],o[1]])):(n.push([a[0],a[1]]),n.push([o[0],o[1]]))}return n},e}(Xe);function nm(r,e,t,i,n){var a=r.length;if(a<2)return!1;for(var o=0;o=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),Wt.pointAt(i[o][0],i[o][1],i[o+1][0],i[o+1][1],a)},e.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var i=this.getTotalLength();if(!(i<=0)){var n=0,a=[],o,s;S(t,function(l,u){t[u+1]&&(o=[],o[0]=n/i,s=Wt.length(l[0],l[1],t[u+1][0],t[u+1][1]),n+=s,o[1]=n/i,a.push(o))}),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,i=[];return i.push([t[1][0],t[1][1]]),i.push([t[0][0],t[0][1]]),i},e.prototype.getEndTangent=function(){var t=this.attr().points,i=t.length-1,n=[];return n.push([t[i-1][0],t[i-1][1]]),n.push([t[i][0],t[i][1]]),n},e}(Xe);function fT(r,e,t,i,n,a,o){var s=n/2;return li(r-s,e-s,t,n,a,o)||li(r+t-s,e-s,n,i,a,o)||li(r+s,e+i-s,t,n,a,o)||li(r-s,e+s,n,i,a,o)}function vT(r,e,t,i,n,a,o,s){return Dr(r+n,e,r+t-n,e,a,o,s)||Dr(r+t,e+n,r+t,e+i-n,a,o,s)||Dr(r+t-n,e+i,r+n,e+i,a,o,s)||Dr(r,e+i-n,r,e+n,a,o,s)||zn(r+t-n,e+n,n,1.5*Math.PI,2*Math.PI,a,o,s)||zn(r+t-n,e+i-n,n,0,.5*Math.PI,a,o,s)||zn(r+n,e+i-n,n,.5*Math.PI,Math.PI,a,o,s)||zn(r+n,e+n,n,Math.PI,1.5*Math.PI,a,o,s)}var dT=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,i,n,a,o){var s=this.attr(),l=s.x,u=s.y,c=s.width,h=s.height,f=s.radius;if(f){var d=!1;return n&&(d=vT(l,u,c,h,f,o,t,i)),!d&&a&&(d=rm(this,t,i)),d}else{var v=o/2;if(a&&n)return li(l-v,u-v,c+v,h+v,t,i);if(a)return li(l,u,c,h,t,i);if(n)return fT(l,u,c,h,o,t,i)}},e.prototype.createPath=function(t){var i=this.attr(),n=i.x,a=i.y,o=i.width,s=i.height,l=i.radius;if(t.beginPath(),l===0)t.rect(n,a,o,s);else{var u=_F(l),c=u[0],h=u[1],f=u[2],v=u[3];t.moveTo(n+c,a),t.lineTo(n+o-h,a),h!==0&&t.arc(n+o-h,a+h,h,-Math.PI/2,0),t.lineTo(n+o,a+s-f),f!==0&&t.arc(n+o-f,a+s-f,f,0,Math.PI/2),t.lineTo(n+v,a+s),v!==0&&t.arc(n+v,a+s-v,v,Math.PI/2,Math.PI),t.lineTo(n,a+c),c!==0&&t.arc(n+c,a+c,c,Math.PI,Math.PI*1.5),t.closePath()}},e}(Xe),pT=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Ss(t)},e.prototype._setText=function(t){var i=null;K(t)&&t.indexOf(` `)!==-1&&(i=t.split(` `)),this.set("textArr",i)},e.prototype.onAttrChange=function(t,i,n){r.prototype.onAttrChange.call(this,t,i,n),t.startsWith("font")&&this._assembleFont(),t==="text"&&this._setText(i)},e.prototype._getSpaceingY=function(){var t=this.attrs,i=t.lineHeight,n=t.fontSize*1;return i?i-n:n*.14},e.prototype._drawTextArr=function(t,i,n){var a=this.attrs,o=a.textBaseline,s=a.x,l=a.y,u=a.fontSize*1,c=this._getSpaceingY(),h=Cs(a.text,a.fontSize,a.lineHeight),f;S(i,function(v,d){f=l+d*(c+u)-h+u,o==="middle"&&(f+=h-u-(h-u)/2),o==="top"&&(f+=h-u),B(v)||(n?t.fillText(v,s,f):t.strokeText(v,s,f))})},e.prototype._drawText=function(t,i){var n=this.attr(),a=n.x,o=n.y,s=this.get("textArr");if(s)this._drawTextArr(t,s,i);else{var l=n.text;B(l)||(i?t.fillText(l,a,o):t.strokeText(l,a,o))}},e.prototype.strokeAndFill=function(t){var i=this.attrs,n=i.lineWidth,a=i.opacity,o=i.strokeOpacity,s=i.fillOpacity;this.isStroke()&&n>0&&(!B(o)&&o!==1&&(t.globalAlpha=a),this.stroke(t)),this.isFill()&&(!B(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=a):this.fill(t)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(Xe);function gT(r,e){if(e){var t=ds(e);return hr(t,r)}return r}function am(r,e,t){var i=r.getTotalMatrix();if(i){var n=gT([e,t,1],i),a=n[0],o=n[1];return[a,o]}return[e,t]}function Rv(r,e,t){if(r.isCanvas&&r.isCanvas())return!0;if(!ea(r)||r.cfg.isInView===!1)return!1;if(r.cfg.clipShape){var i=am(r,e,t),n=i[0],a=i[1];if(r.isClipped(n,a))return!1}var o=r.cfg.cacheCanvasBBox||r.getCanvasBBox();return e>=o.minX&&e<=o.maxX&&t>=o.minY&&t<=o.maxY}function om(r,e,t){if(!Rv(r,e,t))return null;for(var i=null,n=r.getChildren(),a=n.length,o=a-1;o>=0;o--){var s=n[o];if(s.isGroup())i=om(s,e,t);else if(Rv(s,e,t)){var l=s,u=am(s,e,t),c=u[0],h=u[1];l.isInShape(c,h)&&(i=s)}if(i)break}return i}var yT=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},e.prototype.onCanvasChange=function(t){(t==="attr"||t==="sort"||t==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return ls},e.prototype.getGroupBase=function(){return Xc},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||NF();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),i=t.getContext("2d");return this.set("context",i),t},e.prototype.setDOMSize=function(t,i){r.prototype.setDOMSize.call(this,t,i);var n=this.get("context"),a=this.get("el"),o=this.getPixelRatio();a.width=o*t,a.height=o*i,o>1&&n.scale(o,o)},e.prototype.clear=function(){r.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),i=this.get("el");t.clearRect(0,0,i.width,i.height)},e.prototype.getShape=function(t,i){var n;return this.get("quickHit")?n=om(this,t,i):n=r.prototype.getShape.call(this,t,i,null),n},e.prototype._getRefreshRegion=function(){var t=this.get("refreshElements"),i=this.getViewRange(),n;if(t.length&&t[0]===this)n=i;else if(n=ZF(t),n){n.minX=Math.floor(n.minX),n.minY=Math.floor(n.minY),n.maxX=Math.ceil(n.maxX),n.maxY=Math.ceil(n.maxY),n.maxY+=1;var a=this.get("clipView");a&&(n=QF(n,i))}return n},e.prototype.refreshElement=function(t){var i=this.get("refreshElements");i.push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(xw(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),i=this.get("el"),n=this.getChildren();t.clearRect(0,0,i.width,i.height),ln(t,this),ku(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),i=this.get("refreshElements"),n=this.getChildren(),a=this._getRefreshRegion();a?(t.clearRect(a.minX,a.minY,a.maxX-a.minX,a.maxY-a.minY),t.save(),t.beginPath(),t.rect(a.minX,a.minY,a.maxX-a.minX,a.maxY-a.minY),t.clip(),ln(t,this),qF(this,n,a),ku(t,n,a),t.restore()):i.length&&Jy(i),S(i,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,i=this.get("drawFrame"),n=this.get("drawFrameCallback");i||(i=mw(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null),n&&n()}),this.set("drawFrame",i))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(gs),mT="0.5.12";const xT=Object.freeze(Object.defineProperty({__proto__:null,AbstractCanvas:gs,AbstractGroup:ys,AbstractShape:ms,Base:fs,Canvas:yT,Event:Fa,Group:Xc,PathUtil:oc,Shape:ls,assembleFont:Ss,getArcParams:Qo,getBBoxMethod:xs,getOffScreenContext:bs,getTextHeight:Cs,invert:ds,isAllowCapture:ea,multiplyVec2:hr,registerBBox:Pe,registerEasing:Kp,version:mT},Symbol.toStringTag,{value:"Module"}));var Iu={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},ct={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function Ie(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function sm(r){var e=Iu[r.type],t=r.getParent();if(!e)throw new Error("the type "+r.type+" is not supported by svg");var i=Ie(e);if(r.get("id")&&(i.id=r.get("id")),r.set("el",i),r.set("attrs",{}),t){var n=t.get("el");n||(n=t.createDom(),t.set("el",n)),n.appendChild(i)}return i}function lm(r,e){var t=r.get("el"),i=Sw(t.children).sort(e),n=document.createDocumentFragment();i.forEach(function(a){n.appendChild(a)}),t.appendChild(n)}function wT(r,e){var t=r.parentNode,i=Array.from(t.childNodes).filter(function(s){return s.nodeType===1&&s.nodeName.toLowerCase()!=="defs"}),n=i[e],a=i.indexOf(r);if(n){if(a>e)t.insertBefore(r,n);else if(a0&&(i?"stroke"in n?this._setColor(t,"stroke",s):"strokeStyle"in n&&this._setColor(t,"stroke",l):this._setColor(t,"stroke",s||l),c&&f.setAttribute(ct.strokeOpacity,c),h&&f.setAttribute(ct.lineWidth,h))},e.prototype._setColor=function(t,i,n){var a=this.get("el");if(!n){a.setAttribute(ct[i],"none");return}if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var o=t.find("gradient",n);o||(o=t.addGradient(n)),a.setAttribute(ct[i],"url(#"+o+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=t.find("pattern",n);o||(o=t.addPattern(n)),a.setAttribute(ct[i],"url(#"+o+")")}else a.setAttribute(ct[i],n)},e.prototype.shadow=function(t,i){var n=this.attr(),a=i||n,o=a.shadowOffsetX,s=a.shadowOffsetY,l=a.shadowBlur,u=a.shadowColor;(o||s||l||u)&&bT(this,t)},e.prototype.transform=function(t){var i=this.attr(),n=(t||i).matrix;n&&Oa(this)},e.prototype.isInShape=function(t,i){return this.isPointInPath(t,i)},e.prototype.isPointInPath=function(t,i){var n=this.get("el"),a=this.get("canvas"),o=a.get("el").getBoundingClientRect(),s=t+o.left,l=i+o.top,u=document.elementFromPoint(s,l);return!!(u&&u.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,i=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?i+n:0},e}(ms),CT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,r:0})},e.prototype.createPath=function(t,i){var n=this.attr(),a=this.get("el");S(i||n,function(o,s){s==="x"||s==="y"?a.setAttribute("c"+s,o):ct[s]&&a.setAttribute(ct[s],o)})},e}(De),ST=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return e.prototype.createPath=function(t,i){var n=this.attr(),a=this.get("el");if(S(i||n,function(u,c){ct[c]&&a.setAttribute(ct[c],u)}),typeof n.html=="function"){var o=n.html.call(this,n);if(o instanceof Element||o instanceof HTMLDocument){for(var s=a.childNodes,l=s.length-1;l>=0;l--)a.removeChild(s[l]);a.appendChild(o)}else a.innerHTML=o}else a.innerHTML=n.html},e}(De),MT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,i){var n=this.attr(),a=this.get("el");S(i||n,function(o,s){s==="x"||s==="y"?a.setAttribute("c"+s,o):ct[s]&&a.setAttribute(ct[s],o)})},e}(De),AT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,i){var n=this,a=this.attr(),o=this.get("el");S(i||a,function(s,l){l==="img"?n._setImage(a.img):ct[l]&&o.setAttribute(ct[l],s)})},e.prototype.setAttr=function(t,i){this.attrs[t]=i,t==="img"&&this._setImage(i)},e.prototype._setImage=function(t){var i=this.attr(),n=this.get("el");if(K(t))n.setAttribute("href",t);else if(t instanceof window.Image)i.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),i.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&K(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS")n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",""+t.width),a.setAttribute("height",""+t.height),a.getContext("2d").putImageData(t,0,0),i.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),i.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",a.toDataURL())}},e}(De),FT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,i){var n=this.attr(),a=this.get("el");S(i||n,function(o,s){if(s==="startArrow"||s==="endArrow")if(o){var l=mt(o)?t.addArrow(n,ct[s]):t.getDefaultArrow(n,ct[s]);a.setAttribute(ct[s],"url(#"+l+")")}else a.removeAttribute(ct[s]);else ct[s]&&a.setAttribute(ct[s],o)})},e.prototype.getTotalLength=function(){var t=this.attr(),i=t.x1,n=t.y1,a=t.x2,o=t.y2;return Wt.length(i,n,a,o)},e.prototype.getPoint=function(t){var i=this.attr(),n=i.x1,a=i.y1,o=i.x2,s=i.y2;return Wt.pointAt(n,a,o,s,t)},e}(De),ao={circle:function(r,e,t){return[["M",r,e],["m",-t,0],["a",t,t,0,1,0,t*2,0],["a",t,t,0,1,0,-t*2,0]]},square:function(r,e,t){return[["M",r-t,e-t],["L",r+t,e-t],["L",r+t,e+t],["L",r-t,e+t],["Z"]]},diamond:function(r,e,t){return[["M",r-t,e],["L",r,e-t],["L",r+t,e],["L",r,e+t],["Z"]]},triangle:function(r,e,t){var i=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e+i],["L",r,e-i],["L",r+t,e+i],["z"]]},triangleDown:function(r,e,t){var i=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e-i],["L",r+t,e-i],["L",r,e+i],["Z"]]}};const Nv={get:function(r){return ao[r]},register:function(r,e){ao[r]=e},remove:function(r){delete ao[r]},getAll:function(){return ao}};var TT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return e.prototype.createPath=function(t){var i=this.get("el");i.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return R(t)?t.map(function(i){return i.join(" ")}).join(""):t},e.prototype._getPath=function(){var t=this.attr(),i=t.x,n=t.y,a=t.r||t.radius,o=t.symbol||"circle",s;return _(o)?s=o:s=Nv.get(o),s?s(i,n,a):(console.warn(s+" symbol is not exist."),null)},e.symbolsFactory=Nv,e}(De),ET=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,i){var n=this,a=this.attr(),o=this.get("el");S(i||a,function(s,l){if(l==="path"&&R(s))o.setAttribute("d",n._formatPath(s));else if(l==="startArrow"||l==="endArrow")if(s){var u=mt(s)?t.addArrow(a,ct[l]):t.getDefaultArrow(a,ct[l]);o.setAttribute(ct[l],"url(#"+u+")")}else o.removeAttribute(ct[l]);else ct[l]&&o.setAttribute(ct[l],s)})},e.prototype._formatPath=function(t){var i=t.map(function(n){return n.join(" ")}).join("");return~i.indexOf("NaN")?"":i},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var i=this.get("el"),n=this.getTotalLength();if(n===0)return null;var a=i?i.getPointAtLength(t*n):null;return a?{x:a.x,y:a.y}:null},e}(De),kT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return e.prototype.createPath=function(t,i){var n=this.attr(),a=this.get("el");S(i||n,function(o,s){s==="points"&&R(o)&&o.length>=2?a.setAttribute("points",o.map(function(l){return l[0]+","+l[1]}).join(" ")):ct[s]&&a.setAttribute(ct[s],o)})},e}(De),LT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(t,i,n){r.prototype.onAttrChange.call(this,t,i,n),["points"].indexOf(t)!==-1&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,i){var n=this.attr(),a=this.get("el");S(i||n,function(o,s){s==="points"&&R(o)&&o.length>=2?a.setAttribute("points",o.map(function(l){return l[0]+","+l[1]}).join(" ")):ct[s]&&a.setAttribute(ct[s],o)})},e.prototype.getTotalLength=function(){var t=this.attr().points,i=this.get("totalLength");return B(i)?(this.set("totalLength",sg.length(t)),this.get("totalLength")):i},e.prototype.getPoint=function(t){var i=this.attr().points,n=this.get("tCache");n||(this._setTcache(),n=this.get("tCache"));var a,o;return S(n,function(s,l){t>=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),Wt.pointAt(i[o][0],i[o][1],i[o+1][0],i[o+1][1],a)},e.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var i=this.getTotalLength();if(!(i<=0)){var n=0,a=[],o,s;S(t,function(l,u){t[u+1]&&(o=[],o[0]=n/i,s=Wt.length(l[0],l[1],t[u+1][0],t[u+1][1]),n+=s,o[1]=n/i,a.push(o))}),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,i=[];return i.push([t[1][0],t[1][1]]),i.push([t[0][0],t[0][1]]),i},e.prototype.getEndTangent=function(){var t=this.attr().points,i=t.length-1,n=[];return n.push([t[i-1][0],t[i-1][1]]),n.push([t[i][0],t[i][1]]),n},e}(De);function IT(r){var e=0,t=0,i=0,n=0;return R(r)?r.length===1?e=t=i=n=r[0]:r.length===2?(e=i=r[0],t=n=r[1]):r.length===3?(e=r[0],t=n=r[1],i=r[2]):(e=r[0],t=r[1],i=r[2],n=r[3]):e=t=i=n=r,{r1:e,r2:t,r3:i,r4:n}}var PT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,i){var n=this,a=this.attr(),o=this.get("el"),s=!1,l=["x","y","width","height","radius"];S(i||a,function(u,c){l.indexOf(c)!==-1&&!s?(o.setAttribute("d",n._assembleRect(a)),s=!0):l.indexOf(c)===-1&&ct[c]&&o.setAttribute(ct[c],u)})},e.prototype._assembleRect=function(t){var i=t.x,n=t.y,a=t.width,o=t.height,s=t.radius;if(!s)return"M "+i+","+n+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var l=IT(s);R(s)?s.length===1?l.r1=l.r2=l.r3=l.r4=s[0]:s.length===2?(l.r1=l.r3=s[0],l.r2=l.r4=s[1]):s.length===3?(l.r1=s[0],l.r2=l.r4=s[1],l.r3=s[2]):(l.r1=s[0],l.r2=s[1],l.r3=s[2],l.r4=s[3]):l.r1=l.r2=l.r3=l.r4=s;var u=[["M "+(i+l.r1)+","+n],["l "+(a-l.r1-l.r2)+",0"],["a "+l.r2+","+l.r2+",0,0,1,"+l.r2+","+l.r2],["l 0,"+(o-l.r2-l.r3)],["a "+l.r3+","+l.r3+",0,0,1,"+-l.r3+","+l.r3],["l "+(l.r3+l.r4-a)+",0"],["a "+l.r4+","+l.r4+",0,0,1,"+-l.r4+","+-l.r4],["l 0,"+(l.r4+l.r1-o)],["a "+l.r1+","+l.r1+",0,0,1,"+l.r1+","+-l.r1],["z"]];return u.join(" ")},e}(De),zv=.3,DT={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},OT={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},BT={left:"left",start:"left",center:"middle",right:"end",end:"end"},RT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,i){var n=this,a=this.attr(),o=this.get("el");this._setFont(),S(i||a,function(s,l){l==="text"?n._setText(""+s):l==="matrix"&&s?Oa(n):ct[l]&&o.setAttribute(ct[l],s)}),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),i=this.attr(),n=i.textBaseline,a=i.textAlign,o=Dp();o&&o.name==="firefox"?t.setAttribute("dominant-baseline",OT[n]||"alphabetic"):t.setAttribute("alignment-baseline",DT[n]||"baseline"),t.setAttribute("text-anchor",BT[a]||"left")},e.prototype._setText=function(t){var i=this.get("el"),n=this.attr(),a=n.x,o=n.textBaseline,s=o===void 0?"bottom":o;if(!t)i.innerHTML="";else if(~t.indexOf(` `)){var l=t.split(` @@ -37,18 +37,18 @@ PERFORMANCE OF THIS SOFTWARE. stdDeviation="`+(e.blur?e.blur/10:0)+`" flood-color="`+(e.color?e.color:"#000")+`" flood-opacity="`+(e.opacity?e.opacity:1)+`" - />`;t.innerHTML=i},r}(),Gv=function(){function r(e,t){this.cfg={};var i=Ie("marker"),n=jr("marker_");i.setAttribute("id",n);var a=Ie("path");a.setAttribute("stroke",e.stroke||"none"),a.setAttribute("fill",e.fill||"none"),i.appendChild(a),i.setAttribute("overflow","visible"),i.setAttribute("orient","auto-start-reverse"),this.el=i,this.child=a,this.id=n;var o=e[t==="marker-start"?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",o===!0?this._setDefaultPath(t,a):(this.cfg=o,this._setMarker(e.lineWidth,a)),this}return r.prototype.match=function(){return!1},r.prototype._setDefaultPath=function(e,t){var i=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),i.setAttribute("refX",""+10*Math.cos(Math.PI/6)),i.setAttribute("refY","5")},r.prototype._setMarker=function(e,t){var i=this.el,n=this.cfg.path,a=this.cfg.d;R(n)&&(n=n.map(function(o){return o.join(" ")}).join("")),t.setAttribute("d",n),i.appendChild(t),a&&i.setAttribute("refX",""+a/e)},r.prototype.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},r}(),_T=function(){function r(e){this.type="clip",this.cfg={};var t=Ie("clipPath");this.el=t,this.id=jr("clip_"),t.id=this.id;var i=e.cfg.el;return t.appendChild(i),this.cfg=e,this}return r.prototype.match=function(){return!1},r.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},r}(),qT=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,UT=function(){function r(e){this.cfg={};var t=Ie("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var i=Ie("image");t.appendChild(i);var n=jr("pattern_");t.id=n,this.el=t,this.id=n,this.cfg=e;var a=qT.exec(e),o=a[2];i.setAttribute("href",o);var s=new Image;o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o;function l(){t.setAttribute("width",""+s.width),t.setAttribute("height",""+s.height)}return s.complete?l():(s.onload=l,s.src=s.src),this}return r.prototype.match=function(e,t){return this.cfg===t},r}(),jT=function(){function r(e){var t=Ie("defs"),i=jr("defs_");t.id=i,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return r.prototype.find=function(e,t){for(var i=this.children,n=null,a=0;a0&&(v[0][0]="L")),a=a.concat(v)}),a.push(["Z"])}return a}function Xs(r,e,t,i,n){for(var a=Dt(r,e,!e,"lineWidth"),o=r.connectNulls,s=r.isInCircle,l=r.points,u=r.showSinglePoint,c=Hs(l,o,u),h=[],f=0,v=c.length;fo&&(o=l),l=i[0]}));var g=this.scales[d];try{for(var y=ht(t),x=y.next();!x.done;x=y.next()){var b=x.value,w=this.getDrawCfg(b),C=w.x,M=w.y,F=g.scale(b[bt][d]);this.drawGrayScaleBlurredCircle(C-u.x,M-c.y,n+a,F,p)}}catch(k){o={error:k}}finally{try{x&&!x.done&&(s=y.return)&&s.call(y)}finally{if(o)throw o.error}}var T=p.getImageData(0,0,h,f);this.clearShadowCanvasCtx(),this.colorize(T),p.putImageData(T,0,0);var L=this.getImageShape();L.attr("x",u.x),L.attr("y",c.y),L.attr("width",h),L.attr("height",f),L.attr("img",p.canvas),L.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),i=this.coordinate;return Math.min(i.getWidth()/(t.scales[0].ticks.length*4),i.getHeight()/(t.scales[1].ticks.length*4))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,i,n,a,o){var s=this.getGrayScaleBlurredCanvas();o.globalAlpha=a,o.drawImage(s,t-n,i-n)},e.prototype.colorize=function(t){for(var i=this.getAttribute("color"),n=t.data,a=this.paletteCache,o=3;oe&&(t=t?e/(1+i/t):0,i=e-t),n+a>e&&(n=n?e/(1+a/n):0,a=e-n),[t||0,i||0,n||0,a||0]}function dm(r,e,t){var i=[];if(t.isRect){var n=t.isTransposed?{x:t.start.x,y:e[0].y}:{x:e[0].x,y:t.start.y},a=t.isTransposed?{x:t.end.x,y:e[2].y}:{x:e[3].x,y:t.end.y},o=A(r,["background","style","radius"]);if(o){var s=t.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,l=t.isTransposed?t.getWidth():t.getHeight(),u=q(vm(o,Math.min(s,l)),4),c=u[0],h=u[1],f=u[2],v=u[3],d=t.isTransposed&&t.isReflect("y"),p=d?0:1,g=function(M){return d?-M:M};i.push(["M",n.x,a.y+g(c)]),c!==0&&i.push(["A",c,c,0,0,p,n.x+c,a.y]),i.push(["L",a.x-h,a.y]),h!==0&&i.push(["A",h,h,0,0,p,a.x,a.y+g(h)]),i.push(["L",a.x,n.y-g(f)]),f!==0&&i.push(["A",f,f,0,0,p,a.x-f,n.y]),i.push(["L",n.x+v,n.y]),v!==0&&i.push(["A",v,v,0,0,p,n.x,n.y-g(v)])}else i.push(["M",n.x,n.y]),i.push(["L",a.x,n.y]),i.push(["L",a.x,a.y]),i.push(["L",n.x,a.y]),i.push(["L",n.x,n.y]);i.push(["z"])}if(t.isPolar){var y=t.getCenter(),x=ha(r,t),b=x.startAngle,w=x.endAngle;if(t.type!=="theta"&&!t.isTransposed)i=zr(y.x,y.y,t.getRadius(),b,w);else{var C=function(T){return Math.pow(T,2)},c=Math.sqrt(C(y.x-e[0].x)+C(y.y-e[0].y)),h=Math.sqrt(C(y.x-e[2].x)+C(y.y-e[2].y));i=zr(y.x,y.y,c,t.startAngle,t.endAngle,h)}}return i}function iE(r,e,t){var i=t.getWidth(),n=t.getHeight(),a=t.type==="rect",o=[],s=(r[2].x-r[1].x)/2,l=t.isTransposed?s*n/i:s*i/n;return e==="round"?(a?(o.push(["M",r[0].x,r[0].y+l]),o.push(["L",r[1].x,r[1].y-l]),o.push(["A",s,s,0,0,1,r[2].x,r[2].y-l]),o.push(["L",r[3].x,r[3].y+l]),o.push(["A",s,s,0,0,1,r[0].x,r[0].y+l])):(o.push(["M",r[0].x,r[0].y]),o.push(["L",r[1].x,r[1].y]),o.push(["A",s,s,0,0,1,r[2].x,r[2].y]),o.push(["L",r[3].x,r[3].y]),o.push(["A",s,s,0,0,1,r[0].x,r[0].y])),o.push(["z"])):o=jc(r),o}function pm(r,e,t){var i=[];return B(e)?t?i.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",(r[2].x+r[3].x)/2,(r[2].y+r[3].y)/2],["Z"]):i.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",r[2].x,r[2].y],["L",r[3].x,r[3].y],["Z"]):i.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),i}function Ln(r,e){return[e,r]}function nE(r,e,t){var i,n,a,o,s,l,u,c=q(Z([],q(r),!1),4),h=c[0],f=c[1],v=c[2],d=c[3],p=q(typeof t=="number"?Array(4).fill(t):t,4),g=p[0],y=p[1],x=p[2],b=p[3];e.isTransposed&&(i=q(Ln(f,d),2),f=i[0],d=i[1]),e.isReflect("y")&&(n=q(Ln(h,f),2),h=n[0],f=n[1],a=q(Ln(v,d),2),v=a[0],d=a[1]),e.isReflect("x")&&(o=q(Ln(h,d),2),h=o[0],d=o[1],s=q(Ln(f,v),2),f=s[0],v=s[1]);var w=[],C=function(M){return Math.abs(M)};return l=q(vm([g,y,x,b],Math.min(C(d.x-h.x),C(f.y-h.y))).map(function(M){return C(M)}),4),g=l[0],y=l[1],x=l[2],b=l[3],e.isTransposed&&(u=q([b,g,y,x],4),g=u[0],y=u[1],x=u[2],b=u[3]),h.yo&&(n=o)}return n}function oE(r,e){if(e){var t=we(r),i=Ve(t,e);return i.length}return r.length}function Zc(r){var e=r.theme,t=r.coordinate,i=r.getXScale(),n=i.values,a=r.beforeMappingData,o=n.length,s=La(r.coordinate),l=r.intervalPadding,u=r.dodgePadding,c=r.maxColumnWidth||e.maxColumnWidth,h=r.minColumnWidth||e.minColumnWidth,f=r.columnWidthRatio||e.columnWidthRatio,v=r.multiplePieWidthRatio||e.multiplePieWidthRatio,d=r.roseWidthRatio||e.roseWidthRatio;if(i.isLinear&&n.length>1){n.sort();var p=aE(n,i);o=(i.max-i.min)/p,n.length>o&&(o=n.length)}var g=i.range,y=1/o,x=1;if(t.isPolar?t.isTransposed&&o>1?x=v:x=d:(i.isLinear&&(y*=g[1]-g[0]),x=f),!B(l)&&l>=0){var b=l/s;y=(1-(o-1)*b)/o}else y*=x;if(r.getAdjust("dodge")){var w=r.getAdjust("dodge"),C=w.dodgeBy,M=oE(a,C);if(!B(u)&&u>=0){var F=u/s;y=(y-F*(M-1))/M}else!B(l)&&l>=0&&(y*=x),y=y/M;y=y>=0?y:0}if(!B(c)&&c>=0){var T=c/s;y>T&&(y=T)}if(!B(h)&&h>=0){var L=h/s;y0&&!A(i,[n,"min"])&&t.change({min:0}),o<=0&&!A(i,[n,"max"])&&t.change({max:0}))}},e.prototype.getDrawCfg=function(t){var i=r.prototype.getDrawCfg.call(this,t);return i.background=this.background,i},e}(Qr),lE=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.type="line";var n=t.sortable,a=n===void 0?!1:n;return i.sortable=a,i}return e}(qc),gm=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],uE=["cross","tick","plus","hyphen","line"];function Qc(r,e,t,i,n){var a,o,s=Dt(e,n,!n,"r"),l=r.parsePoints(e.points),u=l[0];if(e.isStack)u=l[1];else if(l.length>1){var c=t.addGroup();try{for(var h=ht(l),f=h.next();!f.done;f=h.next()){var v=f.value;c.addShape({type:"marker",attrs:m(m(m({},s),{symbol:Ai[i]||i}),v)})}}catch(d){a={error:d}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}return c}return t.addShape({type:"marker",attrs:m(m(m({},s),{symbol:Ai[i]||i}),u)})}Zr("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(r){return Gc(r)}});S(gm,function(r){ft("point","hollow-".concat(r),{draw:function(e,t){return Qc(this,e,t,r,!0)},getMarker:function(e){var t=e.color;return{symbol:Ai[r]||r,style:{r:4.5,stroke:t,fill:null}}}})});var cE=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return e.prototype.getDrawCfg=function(t){var i=r.prototype.getDrawCfg.call(this,t);return m(m({},i),{isStack:!!this.getAdjust("stack")})},e}(Qr);function hE(r){for(var e=r[0],t=1,i=[["M",e.x,e.y]];t2?"weight":"normal",a;if(r.isInCircle){var o={x:0,y:1};return n==="normal"?a=gE(i[0],i[1],o):(t.fill=t.stroke,a=yE(i,o)),a=this.parsePath(a),e.addShape("path",{attrs:m(m({},t),{path:a})})}else{if(n==="normal")return i=this.parsePoints(i),a=iy((i[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,Math.PI*2),e.addShape("path",{attrs:m(m({},t),{path:a})});var s=Pu(i[1],i[3]),l=Pu(i[2],i[0]);return a=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],s,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],l,["Z"]],a=this.parsePath(a),t.fill=t.stroke,e.addShape("path",{attrs:m(m({},t),{path:a})})}},getMarker:function(r){return{symbol:"circle",style:{r:4.5,fill:r.color}}}});function mE(r,e){var t=Pu(r,e),i=[["M",r.x,r.y]];return i.push(t),i}ft("edge","smooth",{draw:function(r,e){var t=Dt(r,!0,!1,"lineWidth"),i=r.points,n=this.parsePath(mE(i[0],i[1]));return e.addShape("path",{attrs:m(m({},t),{path:n})})},getMarker:function(r){return{symbol:"circle",style:{r:4.5,fill:r.color}}}});var oo=1/3;function xE(r,e){var t=[];t.push({x:r.x,y:r.y*(1-oo)+e.y*oo}),t.push({x:e.x,y:r.y*(1-oo)+e.y*oo}),t.push(e);var i=[["M",r.x,r.y]];return S(t,function(n){i.push(["L",n.x,n.y])}),i}ft("edge","vhv",{draw:function(r,e){var t=Dt(r,!0,!1,"lineWidth"),i=r.points,n=this.parsePath(xE(i[0],i[1]));return e.addShape("path",{attrs:m(m({},t),{path:n})})},getMarker:function(r){return{symbol:"circle",style:{r:4.5,fill:r.color}}}});ft("interval","funnel",{getPoints:function(r){return r.size=r.size*2,Uc(r)},draw:function(r,e){var t=Dt(r,!1,!0),i=this.parsePath(pm(r.points,r.nextPoints,!1)),n=e.addShape("path",{attrs:m(m({},t),{path:i}),name:"interval"});return n},getMarker:function(r){var e=r.color;return{symbol:"square",style:{r:4,fill:e}}}});ft("interval","hollow-rect",{draw:function(r,e){var t=Dt(r,!0,!1),i=e,n=r==null?void 0:r.background;if(n){i=e.addGroup();var a=Wy(r),o=dm(r,this.parsePoints(r.points),this.coordinate);i.addShape("path",{attrs:m(m({},a),{path:o}),capture:!1,zIndex:-1,name:Rc})}var s=this.parsePath(jc(r.points)),l=i.addShape("path",{attrs:m(m({},t),{path:s}),name:"interval"});return n?i:l},getMarker:function(r){var e=r.color,t=r.isInPolar;return t?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}});function wE(r){var e=r.x,t=r.y,i=r.y0;return R(t)?t.map(function(n,a){return{x:R(e)?e[a]:e,y:n}}):[{x:e,y:i},{x:e,y:t}]}ft("interval","line",{getPoints:function(r){return wE(r)},draw:function(r,e){var t=Dt(r,!0,!1,"lineWidth"),i=le(m({},t),["fill"]),n=this.parsePath(jc(r.points,!1)),a=e.addShape("path",{attrs:m(m({},i),{path:n}),name:"interval"});return a},getMarker:function(r){var e=r.color;return{symbol:function(t,i,n){return[["M",t,i-n],["L",t,i+n]]},style:{r:5,stroke:e}}}});ft("interval","pyramid",{getPoints:function(r){return r.size=r.size*2,Uc(r)},draw:function(r,e){var t=Dt(r,!1,!0),i=this.parsePath(pm(r.points,r.nextPoints,!0)),n=e.addShape("path",{attrs:m(m({},t),{path:i}),name:"interval"});return n},getMarker:function(r){var e=r.color;return{symbol:"square",style:{r:4,fill:e}}}});function bE(r){var e,t=r.x,i=r.y,n=r.y0,a=r.size,o,s;R(i)?(e=q(i,2),o=e[0],s=e[1]):(o=n,s=i);var l=t+a/2,u=t-a/2;return[{x:t,y:o},{x:t,y:s},{x:u,y:o},{x:l,y:o},{x:u,y:s},{x:l,y:s}]}function CE(r){return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y]]}ft("interval","tick",{getPoints:function(r){return bE(r)},draw:function(r,e){var t=Dt(r,!0,!1),i=this.parsePath(CE(r.points)),n=e.addShape("path",{attrs:m(m({},t),{path:i}),name:"interval"});return n},getMarker:function(r){var e=r.color;return{symbol:function(t,i,n){return[["M",t-n/2,i-n],["L",t+n/2,i-n],["M",t,i-n],["L",t,i+n],["M",t-n/2,i+n],["L",t+n/2,i+n]]},style:{r:5,stroke:e}}}});var SE=function(r,e,t){var i=r.x,n=r.y,a=e.x,o=e.y,s;switch(t){case"hv":s=[{x:a,y:n}];break;case"vh":s=[{x:i,y:o}];break;case"hvh":var l=(a+i)/2;s=[{x:l,y:n},{x:l,y:o}];break;case"vhv":var u=(n+o)/2;s=[{x:i,y:u},{x:a,y:u}];break}return s};function ME(r,e){var t=[];return S(r,function(i,n){var a=r[n+1];if(t.push(i),a){var o=SE(i,a,e);t=t.concat(o)}}),t}function AE(r){return r.map(function(e,t){return t===0?["M",e.x,e.y]:["L",e.x,e.y]})}function FE(r,e){var t=Hs(r.points,r.connectNulls,r.showSinglePoint),i=[];return S(t,function(n){var a=ME(n,e);i=i.concat(AE(a))}),m(m({},Dt(r,!0,!1,"lineWidth")),{path:i})}S(["hv","vh","hvh","vhv"],function(r){ft("line",r,{draw:function(e,t){var i=FE(e,r),n=t.addShape({type:"path",attrs:i,name:"line"});return n},getMarker:function(e){return _y(e,r)}})});S(uE,function(r){ft("point",r,{draw:function(e,t){return Qc(this,e,t,r,!0)},getMarker:function(e){var t=e.color;return{symbol:Ai[r],style:{r:4.5,stroke:t,fill:null}}}})});ft("point","image",{draw:function(r,e){var t,i,n=Dt(r,!1,!1,"r").r,a=this.parsePoints(r.points),o=a[0];if(r.isStack)o=a[1];else if(a.length>1){var s=e.addGroup();try{for(var l=ht(a),u=l.next();!u.done;u=l.next()){var c=u.value;s.addShape("image",{attrs:{x:c.x-n/2,y:c.y-n,width:n,height:n,img:r.shape[1]}})}}catch(h){t={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}return s}return e.addShape("image",{attrs:{x:o.x-n/2,y:o.y-n,width:n,height:n,img:r.shape[1]}})},getMarker:function(r){var e=r.color;return{symbol:"circle",style:{r:4.5,fill:e}}}});S(gm,function(r){ft("point",r,{draw:function(e,t){return Qc(this,e,t,r,!1)},getMarker:function(e){var t=e.color;return{symbol:Ai[r]||r,style:{r:4.5,fill:t}}}})});function Vv(r){var e=R(r)?r:[r],t=e[0],i=e[e.length-1],n=e.length>1?e[1]:t,a=e.length>3?e[3]:i,o=e.length>2?e[2]:n;return{min:t,max:i,min1:n,max1:a,median:o}}function Yv(r,e,t){var i=t/2,n;if(R(e)){var a=Vv(e),o=a.min,s=a.max,l=a.median,u=a.min1,c=a.max1,h=r-i,f=r+i;n=[[h,s],[f,s],[r,s],[r,c],[h,u],[h,c],[f,c],[f,u],[r,u],[r,o],[h,o],[f,o],[h,l],[f,l]]}else{e=B(e)?.5:e;var v=Vv(r),o=v.min,s=v.max,l=v.median,u=v.min1,c=v.max1,d=e-i,p=e+i;n=[[o,d],[o,p],[o,e],[u,e],[u,d],[u,p],[c,p],[c,d],[c,e],[s,e],[s,d],[s,p],[l,d],[l,p]]}return n.map(function(g){return{x:g[0],y:g[1]}})}function TE(r){return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x,r[10].y],["L",r[11].x,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]}ft("schema","box",{getPoints:function(r){var e=r.x,t=r.y,i=r.size;return Yv(e,t,i)},draw:function(r,e){var t=Dt(r,!0,!1),i=this.parsePath(TE(r.points)),n=e.addShape("path",{attrs:m(m({},t),{path:i,name:"schema"})});return n},getMarker:function(r){var e=r.color;return{symbol:function(t,i,n){var a=[i-6,i-3,i,i+3,i+6],o=Yv(t,a,n);return[["M",o[0].x+1,o[0].y],["L",o[1].x-1,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y],["L",o[6].x,o[6].y],["L",o[7].x,o[7].y],["L",o[4].x,o[4].y],["Z"],["M",o[8].x,o[8].y],["L",o[9].x,o[9].y],["M",o[10].x+1,o[10].y],["L",o[11].x-1,o[11].y],["M",o[12].x,o[12].y],["L",o[13].x,o[13].y]]},style:{r:6,lineWidth:1,stroke:e}}}});function EE(r){var e=R(r)?r:[r],t=e.sort(function(i,n){return n-i});return lA(t,4,t[t.length-1])}function $v(r,e,t){var i=EE(e);return[{x:r,y:i[0]},{x:r,y:i[1]},{x:r-t/2,y:i[2]},{x:r-t/2,y:i[1]},{x:r+t/2,y:i[1]},{x:r+t/2,y:i[2]},{x:r,y:i[2]},{x:r,y:i[3]}]}function kE(r){return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]}ft("schema","candle",{getPoints:function(r){var e=r.x,t=r.y,i=r.size;return $v(e,t,i)},draw:function(r,e){var t=Dt(r,!0,!0),i=this.parsePath(kE(r.points)),n=e.addShape("path",{attrs:m(m({},t),{path:i,name:"schema"})});return n},getMarker:function(r){var e=r.color;return{symbol:function(t,i,n){var a=[i+7.5,i+3,i-3,i-7.5],o=$v(t,a,n);return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["L",o[4].x,o[4].y],["L",o[5].x,o[5].y],["Z"],["M",o[6].x,o[6].y],["L",o[7].x,o[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}});function LE(r,e){var t=Math.abs(r[0].x-r[2].x),i=Math.abs(r[0].y-r[2].y),n=Math.min(t,i);e&&(n=St(e,0,Math.min(t,i))),n=n/2;var a=(r[0].x+r[2].x)/2,o=(r[0].y+r[2].y)/2;return{x:a-n,y:o-n,width:n*2,height:n*2}}ft("polygon","square",{draw:function(r,e){if(!fe(r.points)){var t=Dt(r,!0,!0),i=this.parsePoints(r.points);return e.addShape("rect",{attrs:m(m({},t),LE(i,r.size)),name:"polygon"})}},getMarker:function(r){var e=r.color;return{symbol:"square",style:{r:4,fill:e}}}});ft("violin","smooth",{draw:function(r,e){var t=Dt(r,!0,!0),i=this.parsePath(Xy(r.points));return e.addShape("path",{attrs:m(m({},t),{path:i})})},getMarker:function(r){var e=r.color;return{symbol:"circle",style:{stroke:null,r:4,fill:e}}}});ft("violin","hollow",{draw:function(r,e){var t=Dt(r,!0,!1),i=this.parsePath(Hy(r.points));return e.addShape("path",{attrs:m(m({},t),{path:i})})},getMarker:function(r){var e=r.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}});ft("violin","hollow-smooth",{draw:function(r,e){var t=Dt(r,!0,!1),i=this.parsePath(Xy(r.points));return e.addShape("path",{attrs:m(m({},t),{path:i})})},getMarker:function(r){var e=r.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}});var IE=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getLabelValueDir=function(t){var i="y",n=t.points;return n[0][i]<=n[2][i]?1:-1},e.prototype.getLabelOffsetPoint=function(t,i,n,a){var o,s=r.prototype.getLabelOffsetPoint.call(this,t,i,n),l=this.getCoordinate(),u=l.isTransposed,c=u?"x":"y",h=this.getLabelValueDir(t.mappingData);return s=m(m({},s),(o={},o[c]=s[c]*h,o)),l.isReflect("x")&&(s=m(m({},s),{x:s.x*-1})),l.isReflect("y")&&(s=m(m({},s),{y:s.y*-1})),s},e.prototype.getThemedLabelCfg=function(t){var i=this.geometry,n=this.getDefaultLabelCfg(),a=i.theme;return H({},n,a.labels,t.position==="middle"?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,i,n,a){var o=this.getCoordinate(),s=o.isTransposed,l=i.points,u=o.convert(l[0]),c=o.convert(l[2]),h=this.getLabelValueDir(i),f,v,d,p,g=R(i.shape)?i.shape[0]:i.shape;if(g==="funnel"||g==="pyramid"){var y=A(i,"nextPoints"),x=A(i,"points");if(y){var b=o.convert(x[0]),w=o.convert(x[1]),C=o.convert(y[0]),M=o.convert(y[1]);s?(f=Math.min(C.y,b.y),d=Math.max(C.y,b.y),v=(w.x+M.x)/2,p=(b.x+C.x)/2):(f=Math.min((w.y+M.y)/2,(b.y+C.y)/2),d=Math.max((w.y+M.y)/2,(b.y+C.y)/2),v=M.x,p=b.x)}else f=Math.min(c.y,u.y),d=Math.max(c.y,u.y),v=c.x,p=u.x}else f=Math.min(c.y,u.y),d=Math.max(c.y,u.y),v=c.x,p=u.x;switch(a){case"right":t.x=v,t.y=(f+d)/2,t.textAlign=A(t,"textAlign",h>0?"left":"right");break;case"left":t.x=p,t.y=(f+d)/2,t.textAlign=A(t,"textAlign",h>0?"left":"right");break;case"bottom":s&&(t.x=(v+p)/2),t.y=d,t.textAlign=A(t,"textAlign","center"),t.textBaseline=A(t,"textBaseline",h>0?"bottom":"top");break;case"middle":s&&(t.x=(v+p)/2),t.y=(f+d)/2,t.textAlign=A(t,"textAlign","center"),t.textBaseline=A(t,"textBaseline","middle");break;case"top":s&&(t.x=(v+p)/2),t.y=f,t.textAlign=A(t,"textAlign","center"),t.textBaseline=A(t,"textBaseline",h>0?"bottom":"top");break}},e}($s),so=Math.PI/2,ym=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getLabelOffset=function(t){var i=this.getCoordinate(),n=0;if(rt(t))n=t;else if(K(t)&&t.indexOf("%")!==-1){var a=i.getRadius();i.innerRadius>0&&(a=a*(1-i.innerRadius)),n=parseFloat(t)*.01*a}return n},e.prototype.getLabelItems=function(t){var i=r.prototype.getLabelItems.call(this,t),n=this.geometry.getYScale();return Mt(i,function(a){if(a&&n){var o=n.scale(A(a.data,n.field));return m(m({},a),{percent:o})}return a})},e.prototype.getLabelAlign=function(t){var i=this.getCoordinate(),n;if(t.labelEmit)n=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(!i.isTransposed)n="center";else{var a=i.getCenter(),o=t.offset;Math.abs(t.x-a.x)<1?n="center":t.angle>Math.PI||t.angle<=0?n=o>0?"left":"right":n=o>0?"right":"left"}return n},e.prototype.getLabelPoint=function(t,i,n){var a=1,o,s=t.content[n];this.isToMiddle(i)?o=this.getMiddlePoint(i.points):(t.content.length===1&&n===0?n=1:n===0&&(a=-1),o=this.getArcPoint(i,n));var l=t.offset*a,u=this.getPointAngle(o),c=t.labelEmit,h=this.getCirclePoint(u,l,o,c);return h.r===0?h.content="":(h.content=s,h.angle=u,h.color=i.color),h.rotate=t.autoRotate?this.getLabelRotate(u,l,c):t.rotate,h.start={x:o.x,y:o.y},h},e.prototype.getArcPoint=function(t,i){return i===void 0&&(i=0),!R(t.x)&&!R(t.y)?{x:t.x,y:t.y}:{x:R(t.x)?t.x[i]:t.x,y:R(t.y)?t.y[i]:t.y}},e.prototype.getPointAngle=function(t){return an(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,i,n,a){var o=this.getCoordinate(),s=o.getCenter(),l=Ns(o,n);if(l===0)return m(m({},s),{r:l});var u=t;if(o.isTransposed&&l>i&&!a){var c=Math.asin(i/(2*l));u=t+c*2}else l=l+i;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},e.prototype.getLabelRotate=function(t,i,n){var a=t+so;return n&&(a-=so),a&&(a>so?a=a-Math.PI:a<-so&&(a=a+Math.PI)),a},e.prototype.getMiddlePoint=function(t){var i=this.getCoordinate(),n=t.length,a={x:0,y:0};return S(t,function(o){a.x+=o.x,a.y+=o.y}),a.x/=n,a.y/=n,a=i.convert(a),a},e.prototype.isToMiddle=function(t){return t.x.length>2},e}($s),PE=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return e.prototype.getDefaultLabelCfg=function(t,i){var n=r.prototype.getDefaultLabelCfg.call(this,t,i);return H({},n,A(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(t){return r.prototype.getLabelOffset.call(this,t)||0},e.prototype.getLabelRotate=function(t,i,n){var a;return i<0&&(a=t,a>Math.PI/2&&(a=a-Math.PI),a<-Math.PI/2&&(a=a+Math.PI)),a},e.prototype.getLabelAlign=function(t){var i=this.getCoordinate(),n=i.getCenter(),a;return t.angle<=Math.PI/2&&t.x>=n.x?a="left":a="right",t.offset<=0&&(a==="right"?a="left":a="right"),a},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var i=this.getCoordinate(),n={x:R(t.x)?t.x[0]:t.x,y:t.y[0]},a={x:R(t.x)?t.x[1]:t.x,y:t.y[1]},o,s=an(i,n);if(t.points&&t.points[0].y===t.points[1].y)o=s;else{var l=an(i,a);s>=l&&(l=l+Math.PI*2),o=s+(l-s)/2}return o},e.prototype.getCirclePoint=function(t,i){var n=this.getCoordinate(),a=n.getCenter(),o=n.getRadius()+i;return m(m({},Ot(a.x,a.y,o,t)),{angle:t,r:o})},e}(ym),Hv=4;function DE(r,e,t,i,n,a){var o,s,l=!0,u=i.start,c=i.end,h=Math.min(u.y,c.y),f=Math.abs(u.y-c.y),v,d=0,p=Number.MIN_VALUE,g=e.map(function(F){return F.y>d&&(d=F.y),F.yf&&(f=d-h);l;)for(g.forEach(function(F){var T=(Math.min.apply(p,F.targets)+Math.max.apply(p,F.targets))/2;F.pos=Math.min(Math.max(p,T-F.size/2),f-F.size)}),l=!1,v=g.length;v--;)if(v>0){var y=g[v-1],x=g[v];y.pos+y.size>x.pos&&(y.size+=x.size,y.targets=y.targets.concat(x.targets),y.pos+y.size>f&&(y.pos=f-y.size),g.splice(v,1),l=!0)}v=0,g.forEach(function(F){var T=h+t/2;F.targets.forEach(function(){e[v].y=F.pos+T,T+=t,v++})});var b={};try{for(var w=ht(r),C=w.next();!C.done;C=w.next()){var M=C.value;b[M.get("id")]=M}}catch(F){o={error:F}}finally{try{C&&!C.done&&(s=w.return)&&s.call(w)}finally{if(o)throw o.error}}e.forEach(function(F){var T=F.r*F.r,L=Math.pow(Math.abs(F.y-n.y),2);if(T0){var l=14,u=o+n,c=u*2+l*2,h={start:a.start,end:a.end},f=[[],[]];r.forEach(function(v){v&&(v.textAlign==="right"?f[0].push(v):f[1].push(v))}),f.forEach(function(v,d){var p=c/l;v.length>p&&(v.sort(function(g,y){return y["..percent"]-g["..percent"]}),v.splice(p,v.length-p)),v.sort(function(g,y){return g.y-y.y}),DE(e,v,l,h,s,d)})}S(r,function(v){if(v&&v.labelLine){var d=v.offset,p=v.angle,g=Ot(s.x,s.y,o,p),y=Ot(s.x,s.y,o+d/2,p),x=v.x+A(v,"offsetX",0),b=v.y+A(v,"offsetY",0),w={x:x-Math.cos(p)*Hv,y:b-Math.sin(p)*Hv};mt(v.labelLine)||(v.labelLine={}),v.labelLine.path=["M ".concat(g.x),"".concat(g.y," Q").concat(y.x),"".concat(y.y," ").concat(w.x),w.y].join(",")}})}}function mm(r,e,t){var i=r.filter(function(d){return!d.invisible});i.sort(function(d,p){return d.y-p.y});var n=!0,a=t.minY,o=t.maxY,s=Math.abs(a-o),l,u=0,c=Number.MIN_VALUE,h=i.map(function(d){return d.y>u&&(u=d.y),d.ys&&(s=u-a);n;)for(h.forEach(function(d){var p=(Math.min.apply(c,d.targets)+Math.max.apply(c,d.targets))/2;d.pos=Math.min(Math.max(c,p-d.size/2),s-d.size),d.pos=Math.max(0,d.pos)}),n=!1,l=h.length;l--;)if(l>0){var f=h[l-1],v=h[l];f.pos+f.size>v.pos&&(f.size+=v.size,f.targets=f.targets.concat(v.targets),f.pos+f.size>s&&(f.pos=s-f.size),h.splice(l,1),n=!0)}l=0,h.forEach(function(d){var p=a+e/2;d.targets.forEach(function(){i[l].y=d.pos+p,p+=e,l++})})}var Xv=4;function BE(r,e){var t=e.getCenter(),i=e.getRadius();if(r&&r.labelLine){var n=r.angle,a=r.offset,o=Ot(t.x,t.y,i,n),s=r.x+A(r,"offsetX",0)*(Math.cos(n)>0?1:-1),l=r.y+A(r,"offsetY",0)*(Math.sin(n)>0?1:-1),u={x:s-Math.cos(n)*Xv,y:l-Math.sin(n)*Xv},c=r.labelLine.smooth,h=[],f=u.x-t.x,v=u.y-t.y,d=Math.atan(v/f);if(f<0&&(d+=Math.PI),c===!1){mt(r.labelLine)||(r.labelLine={});var p=0;(n<0&&n>-Math.PI/2||n>Math.PI*1.5)&&u.y>o.y&&(p=1),n>=0&&no.y&&(p=1),n>=Math.PI/2&&nu.y&&(p=1),(n<-Math.PI/2||n>=Math.PI&&nu.y&&(p=1);var g=a/2>4?4:Math.max(a/2-1,0),y=Ot(t.x,t.y,i+g,n),x=Ot(t.x,t.y,i+a/2,d),b=0;h.push("M ".concat(o.x," ").concat(o.y)),h.push("L ".concat(y.x," ").concat(y.y)),h.push("A ".concat(t.x," ").concat(t.y," 0 ").concat(b," ").concat(p," ").concat(x.x," ").concat(x.y)),h.push("L ".concat(u.x," ").concat(u.y))}else{var y=Ot(t.x,t.y,i+(a/2>4?4:Math.max(a/2-1,0)),n),w=o.xMath.pow(Math.E,-16)&&h.push.apply(h,["C",u.x+w*4,u.y,2*y.x-o.x,2*y.y-o.y,o.x,o.y]),h.push("L ".concat(o.x," ").concat(o.y))}r.labelLine.path=h.join(" ")}}function RE(r,e,t,i){var n,a,o=qt(r,function(T){return!B(T)}),s=e[0]&&e[0].get("coordinate");if(s){var l=s.getCenter(),u=s.getRadius(),c={};try{for(var h=ht(e),f=h.next();!f.done;f=h.next()){var v=f.value;c[v.get("id")]=v}}catch(T){n={error:T}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(n)throw n.error}}var d=A(o[0],"labelHeight",14),p=A(o[0],"offset",0);if(!(p<=0)){var g="left",y="right",x=xe(o,function(T){return T.xk&&(T.sort(function(P,O){return O.percent-P.percent}),S(T,function(P,O){O+1>k&&(c[P.id].set("visible",!1),P.invisible=!0)})),mm(T,d,F)}),S(x,function(T,L){S(T,function(k){var P=L===y,O=c[k.id],N=O.getChildByIndex(0);if(N){var V=u+p,U=k.y-l.y,D=Math.pow(V,2),z=Math.pow(U,2),X=D-z>0?D-z:0,$=Math.sqrt(X),Y=Math.abs(Math.cos(k.angle)*V);P?k.x=l.x+Math.max($,Y):k.x=l.x-Math.max($,Y)}N&&(N.attr("y",k.y),N.attr("x",k.x)),BE(k,s)})})}}}var Ou=4,NE=4,Wv=4;function zE(r,e,t){var i=e.getCenter(),n=e.getRadius(),a={x:r.x-(t?Wv:-Wv),y:r.y},o=Ot(i.x,i.y,n+Ou,r.angle),s={x:a.x,y:a.y},l={x:o.x,y:o.y},u=Ot(i.x,i.y,n,r.angle),c="";if(a.y!==o.y){var h=t?4:-4;s.y=a.y,r.angle<0&&r.angle>=-Math.PI/2&&(s.x=Math.max(o.x,a.x-h),a.y0&&r.angleo.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-h))),r.angle>Math.PI/2&&(s.x=Math.min(o.x,a.x-h),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-h))),r.angle<-Math.PI/2&&(s.x=Math.min(o.x,a.x-h),a.ys.x||T.x===s.x&&T.y>s.y,P=B(T.offsetX)?NE:T.offsetX,O=Ot(s.x,s.y,l+Ou,T.angle),N=d+P;T.x=s.x+(k?1:-1)*(l+N),T.y=O.y}}});var p=o.start,g=o.end,y="left",x="right",b=xe(r,function(T){return T.xw&&(w=Math.min(L,Math.abs(p.y-g.y)))});var C={minX:p.x,maxX:g.x,minY:s.y-w/2,maxY:s.y+w/2};S(b,function(T,L){var k=w/v;T.length>k&&(T.sort(function(P,O){return O.percent-P.percent}),S(T,function(P,O){O>k&&(u[P.id].set("visible",!1),P.invisible=!0)})),mm(T,v,C)});var M=C.minY,F=C.maxY;S(b,function(T,L){var k=L===x;S(T,function(P){var O=A(u,P&&[P.id]);if(O){if(P.yF){O.set("visible",!1);return}var N=O.getChildByIndex(0),V=N.getCanvasBBox(),U={x:k?V.x:V.maxX,y:V.y+V.height/2};Da(N,P.x-U.x,P.y-U.y),P.labelLine&&zE(P,o,k)}})})}}function VE(r,e,t,i){S(e,function(n){var a=i.minX,o=i.minY,s=i.maxX,l=i.maxY,u=n.getCanvasBBox(),c=u.minX,h=u.minY,f=u.maxX,v=u.maxY,d=u.x,p=u.y,g=u.width,y=u.height,x=d,b=p;(cs?x=s-g:f>s&&(x=x-(f-s)),h>l?b=l-y:v>l&&(b=b-(v-l)),(x!==d||b!==p)&&Da(n,x-d,b-p)})}function YE(r,e,t,i){S(e,function(n,a){var o=n.getCanvasBBox(),s=t[a].getBBox();(o.minXs.maxX||o.maxY>s.maxY)&&n.remove(!0)})}var $E=100,xm=function(){function r(e){e===void 0&&(e={}),this.bitmap={};var t=e.xGap,i=t===void 0?1:t,n=e.yGap,a=n===void 0?8:n;this.xGap=i,this.yGap=a}return r.prototype.hasGap=function(e){for(var t=!0,i=this.bitmap,n=Math.round(e.minX),a=Math.round(e.maxX),o=Math.round(e.minY),s=Math.round(e.maxY),l=n;l<=a;l+=1){if(!i[l]){i[l]={};continue}if(l===n||l===a){for(var u=o;u<=s;u++)if(i[l][u]){t=!1;break}}else if(i[l][o]||i[l][s]){t=!1;break}}return t},r.prototype.fillGap=function(e){for(var t=this.bitmap,i=Math.round(e.minX),n=Math.round(e.maxX),a=Math.round(e.minY),o=Math.round(e.maxY),s=i;s<=n;s+=1)t[s]||(t[s]={});for(var s=i;s<=n;s+=this.xGap){for(var l=a;l<=o;l+=this.yGap)t[s][l]=!0;t[s][o]=!0}if(this.yGap!==1)for(var s=a;s<=o;s+=1)t[i][s]=!0,t[n][s]=!0;if(this.xGap!==1)for(var s=i;s<=n;s+=1)t[s][a]=!0,t[s][o]=!0},r.prototype.destroy=function(){this.bitmap={}},r}();function HE(r,e,t){t===void 0&&(t=$E);var i=-1,n=r.attr(),a=n.x,o=n.y,s=r.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u,c=-i,h=0,f=0,v=function(y){var x=y*.1;return[x*Math.cos(x),x*Math.sin(x)]};if(e.hasGap(s))return e.fillGap(s),!0;for(var d=!1,p=0,g={};Math.min(Math.abs(h),Math.abs(f))4)return[];var e=function(n,a){return[a.x-n.x,a.y-n.y]},t=e(r[0],r[1]),i=e(r[1],r[2]);return[t,i]}function lo(r,e,t){e===void 0&&(e=0),t===void 0&&(t={x:0,y:0});var i=r.x,n=r.y;return{x:(i-t.x)*Math.cos(-e)+(n-t.y)*Math.sin(-e)+t.x,y:(t.x-i)*Math.sin(-e)+(n-t.y)*Math.cos(-e)+t.y}}function qv(r){var e=[{x:r.x,y:r.y},{x:r.x+r.width,y:r.y},{x:r.x+r.width,y:r.y+r.height},{x:r.x,y:r.y+r.height}],t=r.rotation;return t?[lo(e[0],t,e[0]),lo(e[1],t,e[0]),lo(e[2],t,e[0]),lo(e[3],t,e[0])]:e}function Uv(r,e){if(r.length>4)return{min:0,max:0};var t=[];return r.forEach(function(i){t.push(qE([i.x,i.y],e))}),{min:Math.min.apply(Math,Z([],q(t),!1)),max:Math.max.apply(Math,Z([],q(t),!1))}}function UE(r,e){return r.max>e.min&&r.minr.x+r.width+t||e.x+e.widthr.y+r.height+t||e.y+e.height"u")){var e;try{e=new Blob([r.toString()],{type:"application/javascript"})}catch{e=new window.BlobBuilder,e.append(r.toString()),e=e.getBlob()}return new KE(URL.createObjectURL(e))}}var t2=function(r){function e(){function u(b,w){return(b[0]||0)*(w[0]||0)+(b[1]||0)*(w[1]||0)+(b[2]||0)*(w[2]||0)}function c(b){if(b.length>4)return[];var w=function(F,T){return[T.x-F.x,T.y-F.y]},C=w(b[0],b[1]),M=w(b[1],b[2]);return[C,M]}function h(b,w,C){w===void 0&&(w=0),C===void 0&&(C={x:0,y:0});var M=b.x,F=b.y;return{x:(M-C.x)*Math.cos(-w)+(F-C.y)*Math.sin(-w)+C.x,y:(C.x-M)*Math.sin(-w)+(F-C.y)*Math.cos(-w)+C.y}}function f(b){var w=[{x:b.x,y:b.y},{x:b.x+b.width,y:b.y},{x:b.x+b.width,y:b.y+b.height},{x:b.x,y:b.y+b.height}],C=b.rotation;return C?[h(w[0],C,w[0]),h(w[1],C,w[0]),h(w[2],C,w[0]),h(w[3],C,w[0])]:w}function v(b,w){if(b.length>4)return{min:0,max:0};var C=[];return b.forEach(function(M){C.push(u([M.x,M.y],w))}),{min:Math.min.apply(null,C),max:Math.max.apply(null,C)}}function d(b,w){return b.max>w.min&&b.minb.x+b.width+C||w.x+w.widthb.y+b.height+C||w.y+w.height`;t.innerHTML=i},r}(),Gv=function(){function r(e,t){this.cfg={};var i=Ie("marker"),n=jr("marker_");i.setAttribute("id",n);var a=Ie("path");a.setAttribute("stroke",e.stroke||"none"),a.setAttribute("fill",e.fill||"none"),i.appendChild(a),i.setAttribute("overflow","visible"),i.setAttribute("orient","auto-start-reverse"),this.el=i,this.child=a,this.id=n;var o=e[t==="marker-start"?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",o===!0?this._setDefaultPath(t,a):(this.cfg=o,this._setMarker(e.lineWidth,a)),this}return r.prototype.match=function(){return!1},r.prototype._setDefaultPath=function(e,t){var i=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),i.setAttribute("refX",""+10*Math.cos(Math.PI/6)),i.setAttribute("refY","5")},r.prototype._setMarker=function(e,t){var i=this.el,n=this.cfg.path,a=this.cfg.d;R(n)&&(n=n.map(function(o){return o.join(" ")}).join("")),t.setAttribute("d",n),i.appendChild(t),a&&i.setAttribute("refX",""+a/e)},r.prototype.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},r}(),_T=function(){function r(e){this.type="clip",this.cfg={};var t=Ie("clipPath");this.el=t,this.id=jr("clip_"),t.id=this.id;var i=e.cfg.el;return t.appendChild(i),this.cfg=e,this}return r.prototype.match=function(){return!1},r.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},r}(),qT=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,UT=function(){function r(e){this.cfg={};var t=Ie("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var i=Ie("image");t.appendChild(i);var n=jr("pattern_");t.id=n,this.el=t,this.id=n,this.cfg=e;var a=qT.exec(e),o=a[2];i.setAttribute("href",o);var s=new Image;o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o;function l(){t.setAttribute("width",""+s.width),t.setAttribute("height",""+s.height)}return s.complete?l():(s.onload=l,s.src=s.src),this}return r.prototype.match=function(e,t){return this.cfg===t},r}(),jT=function(){function r(e){var t=Ie("defs"),i=jr("defs_");t.id=i,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return r.prototype.find=function(e,t){for(var i=this.children,n=null,a=0;a0&&(v[0][0]="L")),a=a.concat(v)}),a.push(["Z"])}return a}function Xs(r,e,t,i,n){for(var a=Dt(r,e,!e,"lineWidth"),o=r.connectNulls,s=r.isInCircle,l=r.points,u=r.showSinglePoint,c=Hs(l,o,u),h=[],f=0,v=c.length;fo&&(o=l),l=i[0]}));var g=this.scales[d];try{for(var y=ht(t),x=y.next();!x.done;x=y.next()){var w=x.value,b=this.getDrawCfg(w),C=b.x,M=b.y,F=g.scale(w[bt][d]);this.drawGrayScaleBlurredCircle(C-u.x,M-c.y,n+a,F,p)}}catch(k){o={error:k}}finally{try{x&&!x.done&&(s=y.return)&&s.call(y)}finally{if(o)throw o.error}}var T=p.getImageData(0,0,h,f);this.clearShadowCanvasCtx(),this.colorize(T),p.putImageData(T,0,0);var L=this.getImageShape();L.attr("x",u.x),L.attr("y",c.y),L.attr("width",h),L.attr("height",f),L.attr("img",p.canvas),L.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),i=this.coordinate;return Math.min(i.getWidth()/(t.scales[0].ticks.length*4),i.getHeight()/(t.scales[1].ticks.length*4))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,i,n,a,o){var s=this.getGrayScaleBlurredCanvas();o.globalAlpha=a,o.drawImage(s,t-n,i-n)},e.prototype.colorize=function(t){for(var i=this.getAttribute("color"),n=t.data,a=this.paletteCache,o=3;oe&&(t=t?e/(1+i/t):0,i=e-t),n+a>e&&(n=n?e/(1+a/n):0,a=e-n),[t||0,i||0,n||0,a||0]}function dm(r,e,t){var i=[];if(t.isRect){var n=t.isTransposed?{x:t.start.x,y:e[0].y}:{x:e[0].x,y:t.start.y},a=t.isTransposed?{x:t.end.x,y:e[2].y}:{x:e[3].x,y:t.end.y},o=A(r,["background","style","radius"]);if(o){var s=t.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,l=t.isTransposed?t.getWidth():t.getHeight(),u=U(vm(o,Math.min(s,l)),4),c=u[0],h=u[1],f=u[2],v=u[3],d=t.isTransposed&&t.isReflect("y"),p=d?0:1,g=function(M){return d?-M:M};i.push(["M",n.x,a.y+g(c)]),c!==0&&i.push(["A",c,c,0,0,p,n.x+c,a.y]),i.push(["L",a.x-h,a.y]),h!==0&&i.push(["A",h,h,0,0,p,a.x,a.y+g(h)]),i.push(["L",a.x,n.y-g(f)]),f!==0&&i.push(["A",f,f,0,0,p,a.x-f,n.y]),i.push(["L",n.x+v,n.y]),v!==0&&i.push(["A",v,v,0,0,p,n.x,n.y-g(v)])}else i.push(["M",n.x,n.y]),i.push(["L",a.x,n.y]),i.push(["L",a.x,a.y]),i.push(["L",n.x,a.y]),i.push(["L",n.x,n.y]);i.push(["z"])}if(t.isPolar){var y=t.getCenter(),x=ha(r,t),w=x.startAngle,b=x.endAngle;if(t.type!=="theta"&&!t.isTransposed)i=zr(y.x,y.y,t.getRadius(),w,b);else{var C=function(T){return Math.pow(T,2)},c=Math.sqrt(C(y.x-e[0].x)+C(y.y-e[0].y)),h=Math.sqrt(C(y.x-e[2].x)+C(y.y-e[2].y));i=zr(y.x,y.y,c,t.startAngle,t.endAngle,h)}}return i}function iE(r,e,t){var i=t.getWidth(),n=t.getHeight(),a=t.type==="rect",o=[],s=(r[2].x-r[1].x)/2,l=t.isTransposed?s*n/i:s*i/n;return e==="round"?(a?(o.push(["M",r[0].x,r[0].y+l]),o.push(["L",r[1].x,r[1].y-l]),o.push(["A",s,s,0,0,1,r[2].x,r[2].y-l]),o.push(["L",r[3].x,r[3].y+l]),o.push(["A",s,s,0,0,1,r[0].x,r[0].y+l])):(o.push(["M",r[0].x,r[0].y]),o.push(["L",r[1].x,r[1].y]),o.push(["A",s,s,0,0,1,r[2].x,r[2].y]),o.push(["L",r[3].x,r[3].y]),o.push(["A",s,s,0,0,1,r[0].x,r[0].y])),o.push(["z"])):o=jc(r),o}function pm(r,e,t){var i=[];return B(e)?t?i.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",(r[2].x+r[3].x)/2,(r[2].y+r[3].y)/2],["Z"]):i.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",r[2].x,r[2].y],["L",r[3].x,r[3].y],["Z"]):i.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),i}function Ln(r,e){return[e,r]}function nE(r,e,t){var i,n,a,o,s,l,u,c=U(Z([],U(r),!1),4),h=c[0],f=c[1],v=c[2],d=c[3],p=U(typeof t=="number"?Array(4).fill(t):t,4),g=p[0],y=p[1],x=p[2],w=p[3];e.isTransposed&&(i=U(Ln(f,d),2),f=i[0],d=i[1]),e.isReflect("y")&&(n=U(Ln(h,f),2),h=n[0],f=n[1],a=U(Ln(v,d),2),v=a[0],d=a[1]),e.isReflect("x")&&(o=U(Ln(h,d),2),h=o[0],d=o[1],s=U(Ln(f,v),2),f=s[0],v=s[1]);var b=[],C=function(M){return Math.abs(M)};return l=U(vm([g,y,x,w],Math.min(C(d.x-h.x),C(f.y-h.y))).map(function(M){return C(M)}),4),g=l[0],y=l[1],x=l[2],w=l[3],e.isTransposed&&(u=U([w,g,y,x],4),g=u[0],y=u[1],x=u[2],w=u[3]),h.yo&&(n=o)}return n}function oE(r,e){if(e){var t=we(r),i=Ve(t,e);return i.length}return r.length}function Zc(r){var e=r.theme,t=r.coordinate,i=r.getXScale(),n=i.values,a=r.beforeMappingData,o=n.length,s=La(r.coordinate),l=r.intervalPadding,u=r.dodgePadding,c=r.maxColumnWidth||e.maxColumnWidth,h=r.minColumnWidth||e.minColumnWidth,f=r.columnWidthRatio||e.columnWidthRatio,v=r.multiplePieWidthRatio||e.multiplePieWidthRatio,d=r.roseWidthRatio||e.roseWidthRatio;if(i.isLinear&&n.length>1){n.sort();var p=aE(n,i);o=(i.max-i.min)/p,n.length>o&&(o=n.length)}var g=i.range,y=1/o,x=1;if(t.isPolar?t.isTransposed&&o>1?x=v:x=d:(i.isLinear&&(y*=g[1]-g[0]),x=f),!B(l)&&l>=0){var w=l/s;y=(1-(o-1)*w)/o}else y*=x;if(r.getAdjust("dodge")){var b=r.getAdjust("dodge"),C=b.dodgeBy,M=oE(a,C);if(!B(u)&&u>=0){var F=u/s;y=(y-F*(M-1))/M}else!B(l)&&l>=0&&(y*=x),y=y/M;y=y>=0?y:0}if(!B(c)&&c>=0){var T=c/s;y>T&&(y=T)}if(!B(h)&&h>=0){var L=h/s;y0&&!A(i,[n,"min"])&&t.change({min:0}),o<=0&&!A(i,[n,"max"])&&t.change({max:0}))}},e.prototype.getDrawCfg=function(t){var i=r.prototype.getDrawCfg.call(this,t);return i.background=this.background,i},e}(Qr),lE=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.type="line";var n=t.sortable,a=n===void 0?!1:n;return i.sortable=a,i}return e}(qc),gm=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],uE=["cross","tick","plus","hyphen","line"];function Qc(r,e,t,i,n){var a,o,s=Dt(e,n,!n,"r"),l=r.parsePoints(e.points),u=l[0];if(e.isStack)u=l[1];else if(l.length>1){var c=t.addGroup();try{for(var h=ht(l),f=h.next();!f.done;f=h.next()){var v=f.value;c.addShape({type:"marker",attrs:m(m(m({},s),{symbol:Ai[i]||i}),v)})}}catch(d){a={error:d}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}return c}return t.addShape({type:"marker",attrs:m(m(m({},s),{symbol:Ai[i]||i}),u)})}Zr("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(r){return Gc(r)}});S(gm,function(r){ft("point","hollow-".concat(r),{draw:function(e,t){return Qc(this,e,t,r,!0)},getMarker:function(e){var t=e.color;return{symbol:Ai[r]||r,style:{r:4.5,stroke:t,fill:null}}}})});var cE=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return e.prototype.getDrawCfg=function(t){var i=r.prototype.getDrawCfg.call(this,t);return m(m({},i),{isStack:!!this.getAdjust("stack")})},e}(Qr);function hE(r){for(var e=r[0],t=1,i=[["M",e.x,e.y]];t2?"weight":"normal",a;if(r.isInCircle){var o={x:0,y:1};return n==="normal"?a=gE(i[0],i[1],o):(t.fill=t.stroke,a=yE(i,o)),a=this.parsePath(a),e.addShape("path",{attrs:m(m({},t),{path:a})})}else{if(n==="normal")return i=this.parsePoints(i),a=iy((i[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,Math.PI*2),e.addShape("path",{attrs:m(m({},t),{path:a})});var s=Pu(i[1],i[3]),l=Pu(i[2],i[0]);return a=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],s,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],l,["Z"]],a=this.parsePath(a),t.fill=t.stroke,e.addShape("path",{attrs:m(m({},t),{path:a})})}},getMarker:function(r){return{symbol:"circle",style:{r:4.5,fill:r.color}}}});function mE(r,e){var t=Pu(r,e),i=[["M",r.x,r.y]];return i.push(t),i}ft("edge","smooth",{draw:function(r,e){var t=Dt(r,!0,!1,"lineWidth"),i=r.points,n=this.parsePath(mE(i[0],i[1]));return e.addShape("path",{attrs:m(m({},t),{path:n})})},getMarker:function(r){return{symbol:"circle",style:{r:4.5,fill:r.color}}}});var oo=1/3;function xE(r,e){var t=[];t.push({x:r.x,y:r.y*(1-oo)+e.y*oo}),t.push({x:e.x,y:r.y*(1-oo)+e.y*oo}),t.push(e);var i=[["M",r.x,r.y]];return S(t,function(n){i.push(["L",n.x,n.y])}),i}ft("edge","vhv",{draw:function(r,e){var t=Dt(r,!0,!1,"lineWidth"),i=r.points,n=this.parsePath(xE(i[0],i[1]));return e.addShape("path",{attrs:m(m({},t),{path:n})})},getMarker:function(r){return{symbol:"circle",style:{r:4.5,fill:r.color}}}});ft("interval","funnel",{getPoints:function(r){return r.size=r.size*2,Uc(r)},draw:function(r,e){var t=Dt(r,!1,!0),i=this.parsePath(pm(r.points,r.nextPoints,!1)),n=e.addShape("path",{attrs:m(m({},t),{path:i}),name:"interval"});return n},getMarker:function(r){var e=r.color;return{symbol:"square",style:{r:4,fill:e}}}});ft("interval","hollow-rect",{draw:function(r,e){var t=Dt(r,!0,!1),i=e,n=r==null?void 0:r.background;if(n){i=e.addGroup();var a=Wy(r),o=dm(r,this.parsePoints(r.points),this.coordinate);i.addShape("path",{attrs:m(m({},a),{path:o}),capture:!1,zIndex:-1,name:Rc})}var s=this.parsePath(jc(r.points)),l=i.addShape("path",{attrs:m(m({},t),{path:s}),name:"interval"});return n?i:l},getMarker:function(r){var e=r.color,t=r.isInPolar;return t?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}});function wE(r){var e=r.x,t=r.y,i=r.y0;return R(t)?t.map(function(n,a){return{x:R(e)?e[a]:e,y:n}}):[{x:e,y:i},{x:e,y:t}]}ft("interval","line",{getPoints:function(r){return wE(r)},draw:function(r,e){var t=Dt(r,!0,!1,"lineWidth"),i=le(m({},t),["fill"]),n=this.parsePath(jc(r.points,!1)),a=e.addShape("path",{attrs:m(m({},i),{path:n}),name:"interval"});return a},getMarker:function(r){var e=r.color;return{symbol:function(t,i,n){return[["M",t,i-n],["L",t,i+n]]},style:{r:5,stroke:e}}}});ft("interval","pyramid",{getPoints:function(r){return r.size=r.size*2,Uc(r)},draw:function(r,e){var t=Dt(r,!1,!0),i=this.parsePath(pm(r.points,r.nextPoints,!0)),n=e.addShape("path",{attrs:m(m({},t),{path:i}),name:"interval"});return n},getMarker:function(r){var e=r.color;return{symbol:"square",style:{r:4,fill:e}}}});function bE(r){var e,t=r.x,i=r.y,n=r.y0,a=r.size,o,s;R(i)?(e=U(i,2),o=e[0],s=e[1]):(o=n,s=i);var l=t+a/2,u=t-a/2;return[{x:t,y:o},{x:t,y:s},{x:u,y:o},{x:l,y:o},{x:u,y:s},{x:l,y:s}]}function CE(r){return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y]]}ft("interval","tick",{getPoints:function(r){return bE(r)},draw:function(r,e){var t=Dt(r,!0,!1),i=this.parsePath(CE(r.points)),n=e.addShape("path",{attrs:m(m({},t),{path:i}),name:"interval"});return n},getMarker:function(r){var e=r.color;return{symbol:function(t,i,n){return[["M",t-n/2,i-n],["L",t+n/2,i-n],["M",t,i-n],["L",t,i+n],["M",t-n/2,i+n],["L",t+n/2,i+n]]},style:{r:5,stroke:e}}}});var SE=function(r,e,t){var i=r.x,n=r.y,a=e.x,o=e.y,s;switch(t){case"hv":s=[{x:a,y:n}];break;case"vh":s=[{x:i,y:o}];break;case"hvh":var l=(a+i)/2;s=[{x:l,y:n},{x:l,y:o}];break;case"vhv":var u=(n+o)/2;s=[{x:i,y:u},{x:a,y:u}];break}return s};function ME(r,e){var t=[];return S(r,function(i,n){var a=r[n+1];if(t.push(i),a){var o=SE(i,a,e);t=t.concat(o)}}),t}function AE(r){return r.map(function(e,t){return t===0?["M",e.x,e.y]:["L",e.x,e.y]})}function FE(r,e){var t=Hs(r.points,r.connectNulls,r.showSinglePoint),i=[];return S(t,function(n){var a=ME(n,e);i=i.concat(AE(a))}),m(m({},Dt(r,!0,!1,"lineWidth")),{path:i})}S(["hv","vh","hvh","vhv"],function(r){ft("line",r,{draw:function(e,t){var i=FE(e,r),n=t.addShape({type:"path",attrs:i,name:"line"});return n},getMarker:function(e){return _y(e,r)}})});S(uE,function(r){ft("point",r,{draw:function(e,t){return Qc(this,e,t,r,!0)},getMarker:function(e){var t=e.color;return{symbol:Ai[r],style:{r:4.5,stroke:t,fill:null}}}})});ft("point","image",{draw:function(r,e){var t,i,n=Dt(r,!1,!1,"r").r,a=this.parsePoints(r.points),o=a[0];if(r.isStack)o=a[1];else if(a.length>1){var s=e.addGroup();try{for(var l=ht(a),u=l.next();!u.done;u=l.next()){var c=u.value;s.addShape("image",{attrs:{x:c.x-n/2,y:c.y-n,width:n,height:n,img:r.shape[1]}})}}catch(h){t={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}return s}return e.addShape("image",{attrs:{x:o.x-n/2,y:o.y-n,width:n,height:n,img:r.shape[1]}})},getMarker:function(r){var e=r.color;return{symbol:"circle",style:{r:4.5,fill:e}}}});S(gm,function(r){ft("point",r,{draw:function(e,t){return Qc(this,e,t,r,!1)},getMarker:function(e){var t=e.color;return{symbol:Ai[r]||r,style:{r:4.5,fill:t}}}})});function Vv(r){var e=R(r)?r:[r],t=e[0],i=e[e.length-1],n=e.length>1?e[1]:t,a=e.length>3?e[3]:i,o=e.length>2?e[2]:n;return{min:t,max:i,min1:n,max1:a,median:o}}function Yv(r,e,t){var i=t/2,n;if(R(e)){var a=Vv(e),o=a.min,s=a.max,l=a.median,u=a.min1,c=a.max1,h=r-i,f=r+i;n=[[h,s],[f,s],[r,s],[r,c],[h,u],[h,c],[f,c],[f,u],[r,u],[r,o],[h,o],[f,o],[h,l],[f,l]]}else{e=B(e)?.5:e;var v=Vv(r),o=v.min,s=v.max,l=v.median,u=v.min1,c=v.max1,d=e-i,p=e+i;n=[[o,d],[o,p],[o,e],[u,e],[u,d],[u,p],[c,p],[c,d],[c,e],[s,e],[s,d],[s,p],[l,d],[l,p]]}return n.map(function(g){return{x:g[0],y:g[1]}})}function TE(r){return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x,r[10].y],["L",r[11].x,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]}ft("schema","box",{getPoints:function(r){var e=r.x,t=r.y,i=r.size;return Yv(e,t,i)},draw:function(r,e){var t=Dt(r,!0,!1),i=this.parsePath(TE(r.points)),n=e.addShape("path",{attrs:m(m({},t),{path:i,name:"schema"})});return n},getMarker:function(r){var e=r.color;return{symbol:function(t,i,n){var a=[i-6,i-3,i,i+3,i+6],o=Yv(t,a,n);return[["M",o[0].x+1,o[0].y],["L",o[1].x-1,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y],["L",o[6].x,o[6].y],["L",o[7].x,o[7].y],["L",o[4].x,o[4].y],["Z"],["M",o[8].x,o[8].y],["L",o[9].x,o[9].y],["M",o[10].x+1,o[10].y],["L",o[11].x-1,o[11].y],["M",o[12].x,o[12].y],["L",o[13].x,o[13].y]]},style:{r:6,lineWidth:1,stroke:e}}}});function EE(r){var e=R(r)?r:[r],t=e.sort(function(i,n){return n-i});return lA(t,4,t[t.length-1])}function $v(r,e,t){var i=EE(e);return[{x:r,y:i[0]},{x:r,y:i[1]},{x:r-t/2,y:i[2]},{x:r-t/2,y:i[1]},{x:r+t/2,y:i[1]},{x:r+t/2,y:i[2]},{x:r,y:i[2]},{x:r,y:i[3]}]}function kE(r){return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]}ft("schema","candle",{getPoints:function(r){var e=r.x,t=r.y,i=r.size;return $v(e,t,i)},draw:function(r,e){var t=Dt(r,!0,!0),i=this.parsePath(kE(r.points)),n=e.addShape("path",{attrs:m(m({},t),{path:i,name:"schema"})});return n},getMarker:function(r){var e=r.color;return{symbol:function(t,i,n){var a=[i+7.5,i+3,i-3,i-7.5],o=$v(t,a,n);return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["L",o[4].x,o[4].y],["L",o[5].x,o[5].y],["Z"],["M",o[6].x,o[6].y],["L",o[7].x,o[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}});function LE(r,e){var t=Math.abs(r[0].x-r[2].x),i=Math.abs(r[0].y-r[2].y),n=Math.min(t,i);e&&(n=St(e,0,Math.min(t,i))),n=n/2;var a=(r[0].x+r[2].x)/2,o=(r[0].y+r[2].y)/2;return{x:a-n,y:o-n,width:n*2,height:n*2}}ft("polygon","square",{draw:function(r,e){if(!fe(r.points)){var t=Dt(r,!0,!0),i=this.parsePoints(r.points);return e.addShape("rect",{attrs:m(m({},t),LE(i,r.size)),name:"polygon"})}},getMarker:function(r){var e=r.color;return{symbol:"square",style:{r:4,fill:e}}}});ft("violin","smooth",{draw:function(r,e){var t=Dt(r,!0,!0),i=this.parsePath(Xy(r.points));return e.addShape("path",{attrs:m(m({},t),{path:i})})},getMarker:function(r){var e=r.color;return{symbol:"circle",style:{stroke:null,r:4,fill:e}}}});ft("violin","hollow",{draw:function(r,e){var t=Dt(r,!0,!1),i=this.parsePath(Hy(r.points));return e.addShape("path",{attrs:m(m({},t),{path:i})})},getMarker:function(r){var e=r.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}});ft("violin","hollow-smooth",{draw:function(r,e){var t=Dt(r,!0,!1),i=this.parsePath(Xy(r.points));return e.addShape("path",{attrs:m(m({},t),{path:i})})},getMarker:function(r){var e=r.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}});var IE=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getLabelValueDir=function(t){var i="y",n=t.points;return n[0][i]<=n[2][i]?1:-1},e.prototype.getLabelOffsetPoint=function(t,i,n,a){var o,s=r.prototype.getLabelOffsetPoint.call(this,t,i,n),l=this.getCoordinate(),u=l.isTransposed,c=u?"x":"y",h=this.getLabelValueDir(t.mappingData);return s=m(m({},s),(o={},o[c]=s[c]*h,o)),l.isReflect("x")&&(s=m(m({},s),{x:s.x*-1})),l.isReflect("y")&&(s=m(m({},s),{y:s.y*-1})),s},e.prototype.getThemedLabelCfg=function(t){var i=this.geometry,n=this.getDefaultLabelCfg(),a=i.theme;return H({},n,a.labels,t.position==="middle"?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,i,n,a){var o=this.getCoordinate(),s=o.isTransposed,l=i.points,u=o.convert(l[0]),c=o.convert(l[2]),h=this.getLabelValueDir(i),f,v,d,p,g=R(i.shape)?i.shape[0]:i.shape;if(g==="funnel"||g==="pyramid"){var y=A(i,"nextPoints"),x=A(i,"points");if(y){var w=o.convert(x[0]),b=o.convert(x[1]),C=o.convert(y[0]),M=o.convert(y[1]);s?(f=Math.min(C.y,w.y),d=Math.max(C.y,w.y),v=(b.x+M.x)/2,p=(w.x+C.x)/2):(f=Math.min((b.y+M.y)/2,(w.y+C.y)/2),d=Math.max((b.y+M.y)/2,(w.y+C.y)/2),v=M.x,p=w.x)}else f=Math.min(c.y,u.y),d=Math.max(c.y,u.y),v=c.x,p=u.x}else f=Math.min(c.y,u.y),d=Math.max(c.y,u.y),v=c.x,p=u.x;switch(a){case"right":t.x=v,t.y=(f+d)/2,t.textAlign=A(t,"textAlign",h>0?"left":"right");break;case"left":t.x=p,t.y=(f+d)/2,t.textAlign=A(t,"textAlign",h>0?"left":"right");break;case"bottom":s&&(t.x=(v+p)/2),t.y=d,t.textAlign=A(t,"textAlign","center"),t.textBaseline=A(t,"textBaseline",h>0?"bottom":"top");break;case"middle":s&&(t.x=(v+p)/2),t.y=(f+d)/2,t.textAlign=A(t,"textAlign","center"),t.textBaseline=A(t,"textBaseline","middle");break;case"top":s&&(t.x=(v+p)/2),t.y=f,t.textAlign=A(t,"textAlign","center"),t.textBaseline=A(t,"textBaseline",h>0?"bottom":"top");break}},e}($s),so=Math.PI/2,ym=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getLabelOffset=function(t){var i=this.getCoordinate(),n=0;if(rt(t))n=t;else if(K(t)&&t.indexOf("%")!==-1){var a=i.getRadius();i.innerRadius>0&&(a=a*(1-i.innerRadius)),n=parseFloat(t)*.01*a}return n},e.prototype.getLabelItems=function(t){var i=r.prototype.getLabelItems.call(this,t),n=this.geometry.getYScale();return Mt(i,function(a){if(a&&n){var o=n.scale(A(a.data,n.field));return m(m({},a),{percent:o})}return a})},e.prototype.getLabelAlign=function(t){var i=this.getCoordinate(),n;if(t.labelEmit)n=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(!i.isTransposed)n="center";else{var a=i.getCenter(),o=t.offset;Math.abs(t.x-a.x)<1?n="center":t.angle>Math.PI||t.angle<=0?n=o>0?"left":"right":n=o>0?"right":"left"}return n},e.prototype.getLabelPoint=function(t,i,n){var a=1,o,s=t.content[n];this.isToMiddle(i)?o=this.getMiddlePoint(i.points):(t.content.length===1&&n===0?n=1:n===0&&(a=-1),o=this.getArcPoint(i,n));var l=t.offset*a,u=this.getPointAngle(o),c=t.labelEmit,h=this.getCirclePoint(u,l,o,c);return h.r===0?h.content="":(h.content=s,h.angle=u,h.color=i.color),h.rotate=t.autoRotate?this.getLabelRotate(u,l,c):t.rotate,h.start={x:o.x,y:o.y},h},e.prototype.getArcPoint=function(t,i){return i===void 0&&(i=0),!R(t.x)&&!R(t.y)?{x:t.x,y:t.y}:{x:R(t.x)?t.x[i]:t.x,y:R(t.y)?t.y[i]:t.y}},e.prototype.getPointAngle=function(t){return an(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,i,n,a){var o=this.getCoordinate(),s=o.getCenter(),l=Ns(o,n);if(l===0)return m(m({},s),{r:l});var u=t;if(o.isTransposed&&l>i&&!a){var c=Math.asin(i/(2*l));u=t+c*2}else l=l+i;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},e.prototype.getLabelRotate=function(t,i,n){var a=t+so;return n&&(a-=so),a&&(a>so?a=a-Math.PI:a<-so&&(a=a+Math.PI)),a},e.prototype.getMiddlePoint=function(t){var i=this.getCoordinate(),n=t.length,a={x:0,y:0};return S(t,function(o){a.x+=o.x,a.y+=o.y}),a.x/=n,a.y/=n,a=i.convert(a),a},e.prototype.isToMiddle=function(t){return t.x.length>2},e}($s),PE=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return e.prototype.getDefaultLabelCfg=function(t,i){var n=r.prototype.getDefaultLabelCfg.call(this,t,i);return H({},n,A(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(t){return r.prototype.getLabelOffset.call(this,t)||0},e.prototype.getLabelRotate=function(t,i,n){var a;return i<0&&(a=t,a>Math.PI/2&&(a=a-Math.PI),a<-Math.PI/2&&(a=a+Math.PI)),a},e.prototype.getLabelAlign=function(t){var i=this.getCoordinate(),n=i.getCenter(),a;return t.angle<=Math.PI/2&&t.x>=n.x?a="left":a="right",t.offset<=0&&(a==="right"?a="left":a="right"),a},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var i=this.getCoordinate(),n={x:R(t.x)?t.x[0]:t.x,y:t.y[0]},a={x:R(t.x)?t.x[1]:t.x,y:t.y[1]},o,s=an(i,n);if(t.points&&t.points[0].y===t.points[1].y)o=s;else{var l=an(i,a);s>=l&&(l=l+Math.PI*2),o=s+(l-s)/2}return o},e.prototype.getCirclePoint=function(t,i){var n=this.getCoordinate(),a=n.getCenter(),o=n.getRadius()+i;return m(m({},Ot(a.x,a.y,o,t)),{angle:t,r:o})},e}(ym),Hv=4;function DE(r,e,t,i,n,a){var o,s,l=!0,u=i.start,c=i.end,h=Math.min(u.y,c.y),f=Math.abs(u.y-c.y),v,d=0,p=Number.MIN_VALUE,g=e.map(function(F){return F.y>d&&(d=F.y),F.yf&&(f=d-h);l;)for(g.forEach(function(F){var T=(Math.min.apply(p,F.targets)+Math.max.apply(p,F.targets))/2;F.pos=Math.min(Math.max(p,T-F.size/2),f-F.size)}),l=!1,v=g.length;v--;)if(v>0){var y=g[v-1],x=g[v];y.pos+y.size>x.pos&&(y.size+=x.size,y.targets=y.targets.concat(x.targets),y.pos+y.size>f&&(y.pos=f-y.size),g.splice(v,1),l=!0)}v=0,g.forEach(function(F){var T=h+t/2;F.targets.forEach(function(){e[v].y=F.pos+T,T+=t,v++})});var w={};try{for(var b=ht(r),C=b.next();!C.done;C=b.next()){var M=C.value;w[M.get("id")]=M}}catch(F){o={error:F}}finally{try{C&&!C.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}e.forEach(function(F){var T=F.r*F.r,L=Math.pow(Math.abs(F.y-n.y),2);if(T0){var l=14,u=o+n,c=u*2+l*2,h={start:a.start,end:a.end},f=[[],[]];r.forEach(function(v){v&&(v.textAlign==="right"?f[0].push(v):f[1].push(v))}),f.forEach(function(v,d){var p=c/l;v.length>p&&(v.sort(function(g,y){return y["..percent"]-g["..percent"]}),v.splice(p,v.length-p)),v.sort(function(g,y){return g.y-y.y}),DE(e,v,l,h,s,d)})}S(r,function(v){if(v&&v.labelLine){var d=v.offset,p=v.angle,g=Ot(s.x,s.y,o,p),y=Ot(s.x,s.y,o+d/2,p),x=v.x+A(v,"offsetX",0),w=v.y+A(v,"offsetY",0),b={x:x-Math.cos(p)*Hv,y:w-Math.sin(p)*Hv};mt(v.labelLine)||(v.labelLine={}),v.labelLine.path=["M ".concat(g.x),"".concat(g.y," Q").concat(y.x),"".concat(y.y," ").concat(b.x),b.y].join(",")}})}}function mm(r,e,t){var i=r.filter(function(d){return!d.invisible});i.sort(function(d,p){return d.y-p.y});var n=!0,a=t.minY,o=t.maxY,s=Math.abs(a-o),l,u=0,c=Number.MIN_VALUE,h=i.map(function(d){return d.y>u&&(u=d.y),d.ys&&(s=u-a);n;)for(h.forEach(function(d){var p=(Math.min.apply(c,d.targets)+Math.max.apply(c,d.targets))/2;d.pos=Math.min(Math.max(c,p-d.size/2),s-d.size),d.pos=Math.max(0,d.pos)}),n=!1,l=h.length;l--;)if(l>0){var f=h[l-1],v=h[l];f.pos+f.size>v.pos&&(f.size+=v.size,f.targets=f.targets.concat(v.targets),f.pos+f.size>s&&(f.pos=s-f.size),h.splice(l,1),n=!0)}l=0,h.forEach(function(d){var p=a+e/2;d.targets.forEach(function(){i[l].y=d.pos+p,p+=e,l++})})}var Xv=4;function BE(r,e){var t=e.getCenter(),i=e.getRadius();if(r&&r.labelLine){var n=r.angle,a=r.offset,o=Ot(t.x,t.y,i,n),s=r.x+A(r,"offsetX",0)*(Math.cos(n)>0?1:-1),l=r.y+A(r,"offsetY",0)*(Math.sin(n)>0?1:-1),u={x:s-Math.cos(n)*Xv,y:l-Math.sin(n)*Xv},c=r.labelLine.smooth,h=[],f=u.x-t.x,v=u.y-t.y,d=Math.atan(v/f);if(f<0&&(d+=Math.PI),c===!1){mt(r.labelLine)||(r.labelLine={});var p=0;(n<0&&n>-Math.PI/2||n>Math.PI*1.5)&&u.y>o.y&&(p=1),n>=0&&no.y&&(p=1),n>=Math.PI/2&&nu.y&&(p=1),(n<-Math.PI/2||n>=Math.PI&&nu.y&&(p=1);var g=a/2>4?4:Math.max(a/2-1,0),y=Ot(t.x,t.y,i+g,n),x=Ot(t.x,t.y,i+a/2,d),w=0;h.push("M ".concat(o.x," ").concat(o.y)),h.push("L ".concat(y.x," ").concat(y.y)),h.push("A ".concat(t.x," ").concat(t.y," 0 ").concat(w," ").concat(p," ").concat(x.x," ").concat(x.y)),h.push("L ".concat(u.x," ").concat(u.y))}else{var y=Ot(t.x,t.y,i+(a/2>4?4:Math.max(a/2-1,0)),n),b=o.xMath.pow(Math.E,-16)&&h.push.apply(h,["C",u.x+b*4,u.y,2*y.x-o.x,2*y.y-o.y,o.x,o.y]),h.push("L ".concat(o.x," ").concat(o.y))}r.labelLine.path=h.join(" ")}}function RE(r,e,t,i){var n,a,o=qt(r,function(T){return!B(T)}),s=e[0]&&e[0].get("coordinate");if(s){var l=s.getCenter(),u=s.getRadius(),c={};try{for(var h=ht(e),f=h.next();!f.done;f=h.next()){var v=f.value;c[v.get("id")]=v}}catch(T){n={error:T}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(n)throw n.error}}var d=A(o[0],"labelHeight",14),p=A(o[0],"offset",0);if(!(p<=0)){var g="left",y="right",x=xe(o,function(T){return T.xk&&(T.sort(function(I,O){return O.percent-I.percent}),S(T,function(I,O){O+1>k&&(c[I.id].set("visible",!1),I.invisible=!0)})),mm(T,d,F)}),S(x,function(T,L){S(T,function(k){var I=L===y,O=c[k.id],N=O.getChildByIndex(0);if(N){var Y=u+p,q=k.y-l.y,D=Math.pow(Y,2),z=Math.pow(q,2),X=D-z>0?D-z:0,$=Math.sqrt(X),V=Math.abs(Math.cos(k.angle)*Y);I?k.x=l.x+Math.max($,V):k.x=l.x-Math.max($,V)}N&&(N.attr("y",k.y),N.attr("x",k.x)),BE(k,s)})})}}}var Ou=4,NE=4,Wv=4;function zE(r,e,t){var i=e.getCenter(),n=e.getRadius(),a={x:r.x-(t?Wv:-Wv),y:r.y},o=Ot(i.x,i.y,n+Ou,r.angle),s={x:a.x,y:a.y},l={x:o.x,y:o.y},u=Ot(i.x,i.y,n,r.angle),c="";if(a.y!==o.y){var h=t?4:-4;s.y=a.y,r.angle<0&&r.angle>=-Math.PI/2&&(s.x=Math.max(o.x,a.x-h),a.y0&&r.angleo.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-h))),r.angle>Math.PI/2&&(s.x=Math.min(o.x,a.x-h),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-h))),r.angle<-Math.PI/2&&(s.x=Math.min(o.x,a.x-h),a.ys.x||T.x===s.x&&T.y>s.y,I=B(T.offsetX)?NE:T.offsetX,O=Ot(s.x,s.y,l+Ou,T.angle),N=d+I;T.x=s.x+(k?1:-1)*(l+N),T.y=O.y}}});var p=o.start,g=o.end,y="left",x="right",w=xe(r,function(T){return T.xb&&(b=Math.min(L,Math.abs(p.y-g.y)))});var C={minX:p.x,maxX:g.x,minY:s.y-b/2,maxY:s.y+b/2};S(w,function(T,L){var k=b/v;T.length>k&&(T.sort(function(I,O){return O.percent-I.percent}),S(T,function(I,O){O>k&&(u[I.id].set("visible",!1),I.invisible=!0)})),mm(T,v,C)});var M=C.minY,F=C.maxY;S(w,function(T,L){var k=L===x;S(T,function(I){var O=A(u,I&&[I.id]);if(O){if(I.yF){O.set("visible",!1);return}var N=O.getChildByIndex(0),Y=N.getCanvasBBox(),q={x:k?Y.x:Y.maxX,y:Y.y+Y.height/2};Da(N,I.x-q.x,I.y-q.y),I.labelLine&&zE(I,o,k)}})})}}function VE(r,e,t,i){S(e,function(n){var a=i.minX,o=i.minY,s=i.maxX,l=i.maxY,u=n.getCanvasBBox(),c=u.minX,h=u.minY,f=u.maxX,v=u.maxY,d=u.x,p=u.y,g=u.width,y=u.height,x=d,w=p;(cs?x=s-g:f>s&&(x=x-(f-s)),h>l?w=l-y:v>l&&(w=w-(v-l)),(x!==d||w!==p)&&Da(n,x-d,w-p)})}function YE(r,e,t,i){S(e,function(n,a){var o=n.getCanvasBBox(),s=t[a].getBBox();(o.minXs.maxX||o.maxY>s.maxY)&&n.remove(!0)})}var $E=100,xm=function(){function r(e){e===void 0&&(e={}),this.bitmap={};var t=e.xGap,i=t===void 0?1:t,n=e.yGap,a=n===void 0?8:n;this.xGap=i,this.yGap=a}return r.prototype.hasGap=function(e){for(var t=!0,i=this.bitmap,n=Math.round(e.minX),a=Math.round(e.maxX),o=Math.round(e.minY),s=Math.round(e.maxY),l=n;l<=a;l+=1){if(!i[l]){i[l]={};continue}if(l===n||l===a){for(var u=o;u<=s;u++)if(i[l][u]){t=!1;break}}else if(i[l][o]||i[l][s]){t=!1;break}}return t},r.prototype.fillGap=function(e){for(var t=this.bitmap,i=Math.round(e.minX),n=Math.round(e.maxX),a=Math.round(e.minY),o=Math.round(e.maxY),s=i;s<=n;s+=1)t[s]||(t[s]={});for(var s=i;s<=n;s+=this.xGap){for(var l=a;l<=o;l+=this.yGap)t[s][l]=!0;t[s][o]=!0}if(this.yGap!==1)for(var s=a;s<=o;s+=1)t[i][s]=!0,t[n][s]=!0;if(this.xGap!==1)for(var s=i;s<=n;s+=1)t[s][a]=!0,t[s][o]=!0},r.prototype.destroy=function(){this.bitmap={}},r}();function HE(r,e,t){t===void 0&&(t=$E);var i=-1,n=r.attr(),a=n.x,o=n.y,s=r.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u,c=-i,h=0,f=0,v=function(y){var x=y*.1;return[x*Math.cos(x),x*Math.sin(x)]};if(e.hasGap(s))return e.fillGap(s),!0;for(var d=!1,p=0,g={};Math.min(Math.abs(h),Math.abs(f))4)return[];var e=function(n,a){return[a.x-n.x,a.y-n.y]},t=e(r[0],r[1]),i=e(r[1],r[2]);return[t,i]}function lo(r,e,t){e===void 0&&(e=0),t===void 0&&(t={x:0,y:0});var i=r.x,n=r.y;return{x:(i-t.x)*Math.cos(-e)+(n-t.y)*Math.sin(-e)+t.x,y:(t.x-i)*Math.sin(-e)+(n-t.y)*Math.cos(-e)+t.y}}function qv(r){var e=[{x:r.x,y:r.y},{x:r.x+r.width,y:r.y},{x:r.x+r.width,y:r.y+r.height},{x:r.x,y:r.y+r.height}],t=r.rotation;return t?[lo(e[0],t,e[0]),lo(e[1],t,e[0]),lo(e[2],t,e[0]),lo(e[3],t,e[0])]:e}function Uv(r,e){if(r.length>4)return{min:0,max:0};var t=[];return r.forEach(function(i){t.push(qE([i.x,i.y],e))}),{min:Math.min.apply(Math,Z([],U(t),!1)),max:Math.max.apply(Math,Z([],U(t),!1))}}function UE(r,e){return r.max>e.min&&r.minr.x+r.width+t||e.x+e.widthr.y+r.height+t||e.y+e.height"u")){var e;try{e=new Blob([r.toString()],{type:"application/javascript"})}catch{e=new window.BlobBuilder,e.append(r.toString()),e=e.getBlob()}return new KE(URL.createObjectURL(e))}}var t2=function(r){function e(){function u(w,b){return(w[0]||0)*(b[0]||0)+(w[1]||0)*(b[1]||0)+(w[2]||0)*(b[2]||0)}function c(w){if(w.length>4)return[];var b=function(F,T){return[T.x-F.x,T.y-F.y]},C=b(w[0],w[1]),M=b(w[1],w[2]);return[C,M]}function h(w,b,C){b===void 0&&(b=0),C===void 0&&(C={x:0,y:0});var M=w.x,F=w.y;return{x:(M-C.x)*Math.cos(-b)+(F-C.y)*Math.sin(-b)+C.x,y:(C.x-M)*Math.sin(-b)+(F-C.y)*Math.cos(-b)+C.y}}function f(w){var b=[{x:w.x,y:w.y},{x:w.x+w.width,y:w.y},{x:w.x+w.width,y:w.y+w.height},{x:w.x,y:w.y+w.height}],C=w.rotation;return C?[h(b[0],C,b[0]),h(b[1],C,b[0]),h(b[2],C,b[0]),h(b[3],C,b[0])]:b}function v(w,b){if(w.length>4)return{min:0,max:0};var C=[];return w.forEach(function(M){C.push(u([M.x,M.y],b))}),{min:Math.min.apply(null,C),max:Math.max.apply(null,C)}}function d(w,b){return w.max>b.min&&w.minw.x+w.width+C||b.x+b.widthw.y+w.height+C||b.y+b.height=a.height:o.width>=a.width}function o2(r,e,t){var i=!!r.getAdjust("stack");return i||e.every(function(n,a){var o=t[a];return a2(r,n,o)})}function s2(r,e,t){var i=r.coordinate,n=ie.fromObject(t.getBBox()),a=Xr(e);i.isTransposed?a.attr({x:n.minX+n.width/2,textAlign:"center"}):a.attr({y:n.minY+n.height/2,textBaseline:"middle"})}function l2(r,e,t){var i;if(t.length!==0){var n=(i=t[0])===null||i===void 0?void 0:i.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=o2(a,e,t);o&&t.forEach(function(s,l){var u=e[l];s2(a,u,s)})}}}function u2(r){var e=500,t=[],i=Math.max(Math.floor(r.length/e),1);return S(r,function(n,a){a%i===0?t.push(n):n.set("visible",!1)}),t}function c2(r,e,t){var i;if(t.length!==0){var n=(i=t[0])===null||i===void 0?void 0:i.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=u2(e),s=q(a.getXYFields(),1),l=s[0],u=[],c=[],h=xe(o,function(g){return g.get("data")[l]}),f=bi(Mt(o,function(g){return g.get("data")[l]})),v;o.forEach(function(g){g.set("visible",!0)});var d=function(g){g&&(g.length&&c.push(g.pop()),c.push.apply(c,Z([],q(g),!1)))};for(Vt(f)>0&&(v=f.shift(),d(h[v])),Vt(f)>0&&(v=f.pop(),d(h[v])),S(f.reverse(),function(g){d(h[g])});c.length>0;){var p=c.shift();p.get("visible")&&(MF(p,u)?p.set("visible",!1):u.push(p))}}}}function h2(r,e){var t=r.getXYFields()[1],i=[],n=e.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&i.push(n.shift()),n.length>0&&i.push(n.pop()),i.push.apply(i,Z([],q(n),!1)),i}function wm(r,e,t){return r.some(function(i){return t(i,e)})}function f2(r,e,t){t===void 0&&(t=0);var i=Math.max(0,Math.min(r.x+r.width+t,e.x+e.width+t)-Math.max(r.x-t,e.x-t)),n=Math.max(0,Math.min(r.y+r.height+t,e.y+e.height+t)-Math.max(r.y-t,e.y-t));return i*n}function Kv(r,e){return wm(r,e,function(t,i){var n=Xr(t),a=Xr(i);return f2(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function v2(r,e,t,i,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||l.type!=="point")){var u=q(l.getXYFields(),2),c=u[0],h=u[1],f=xe(e,function(p){return p.get("data")[c]}),v=[],d=n&&n.offset||((o=r[0])===null||o===void 0?void 0:o.offset)||12;Mt(dn(f).reverse(),function(p){for(var g=h2(l,f[p]);g.length;){var y=g.shift(),x=Xr(y);if(wm(v,y,function(C,M){return C.get("data")[c]===M.get("data")[c]&&C.get("data")[h]===M.get("data")[h]})){x.set("visible",!1);continue}var b=Kv(v,y),w=!1;if(b&&(x.attr("y",x.attr("y")+2*d),w=Kv(v,y)),w){x.set("visible",!1);continue}v.push(y)}})}}}function d2(r,e){var t=r.getXYFields()[1],i=[],n=e.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&i.push(n.shift()),n.length>0&&i.push(n.pop()),i.push.apply(i,Z([],q(n),!1)),i}function bm(r,e,t){return r.some(function(i){return t(i,e)})}function p2(r,e,t){t===void 0&&(t=0);var i=Math.max(0,Math.min(r.x+r.width+t,e.x+e.width+t)-Math.max(r.x-t,e.x-t)),n=Math.max(0,Math.min(r.y+r.height+t,e.y+e.height+t)-Math.max(r.y-t,e.y-t));return i*n}function Jv(r,e){return bm(r,e,function(t,i){var n=Xr(t),a=Xr(i);return p2(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function g2(r,e,t,i,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||["path","line","area"].indexOf(l.type)<0)){var u=q(l.getXYFields(),2),c=u[0],h=u[1],f=xe(e,function(p){return p.get("data")[c]}),v=[],d=n&&n.offset||((o=r[0])===null||o===void 0?void 0:o.offset)||12;Mt(dn(f).reverse(),function(p){for(var g=d2(l,f[p]);g.length;){var y=g.shift(),x=Xr(y);if(bm(v,y,function(C,M){return C.get("data")[c]===M.get("data")[c]&&C.get("data")[h]===M.get("data")[h]})){x.set("visible",!1);continue}var b=Jv(v,y),w=!1;if(b&&(x.attr("y",x.attr("y")+2*d),w=Jv(v,y)),w){x.set("visible",!1);continue}v.push(y)}})}}}var Dl;function y2(){return Dl||(Dl=document.createElement("canvas").getContext("2d")),Dl}var uo=Aa(function(r,e){e===void 0&&(e={});var t=e.fontSize,i=e.fontFamily,n=e.fontWeight,a=e.fontStyle,o=e.fontVariant,s=y2();return s.font=[a,o,n,"".concat(t,"px"),i].join(" "),s.measureText(K(r)?r:"").width},function(r,e){return e===void 0&&(e={}),Z([r],q(tc(e)),!1).join("")}),m2=function(r,e,t){var i=16,n=uo("...",t),a;K(r)?a=r:a=ss(r);var o=e,s=[],l,u;if(uo(r,t)<=e)return r;for(;l=a.substr(0,i),u=uo(l,t),!(u+n>o&&u>o);)if(s.push(l),o-=u,a=a.substr(i),!a)return s.join("");for(;l=a.substr(0,1),u=uo(l,t),!(u+n>o);)if(s.push(l),o-=u,a=a.substr(1),!a)return s.join("");return"".concat(s.join(""),"...")};function x2(r,e,t,i,n){if(!(e.length<=0)){var a=(n==null?void 0:n.direction)||["top","right","bottom","left"],o=(n==null?void 0:n.action)||"translate",s=(n==null?void 0:n.margin)||0,l=e[0].get("coordinate");if(l){var u=fA(l,s),c=u.minX,h=u.minY,f=u.maxX,v=u.maxY;S(e,function(d){var p=d.getCanvasBBox(),g=p.minX,y=p.minY,x=p.maxX,b=p.maxY,w=p.x,C=p.y,M=p.width,F=p.height,T=w,L=C;if(a.indexOf("left")>=0&&(g=0&&(y=0&&(g>f?T=f-M:x>f&&(T=T-(x-f))),a.indexOf("bottom")>=0&&(y>v?L=v-F:b>v&&(L=L-(b-v))),T!==w||L!==C){var k=T-w;if(o==="translate")Da(d,k,L-C);else if(o==="ellipsis"){var P=d.findAll(function(O){return O.get("type")==="text"});P.forEach(function(O){var N=Ju(O.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),V=O.getCanvasBBox(),U=m2(O.attr("text"),V.width-Math.abs(k),N);O.attr("text",U)})}else d.hide()}})}}}function w2(r,e,t){var i={fillOpacity:B(r.attr("fillOpacity"))?1:r.attr("fillOpacity"),strokeOpacity:B(r.attr("strokeOpacity"))?1:r.attr("strokeOpacity"),opacity:B(r.attr("opacity"))?1:r.attr("opacity")};r.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),r.animate(i,e)}function b2(r,e,t){var i={fillOpacity:0,strokeOpacity:0,opacity:0},n=e.easing,a=e.duration,o=e.delay;r.animate(i,a,n,function(){r.remove(!0)},o)}function C2(r,e,t){var i,n=q(e,2),a=n[0],o=n[1];return r.applyToMatrix([a,o,1]),t==="x"?(r.setMatrix(Rt(r.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),i=Rt(r.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):t==="y"?(r.setMatrix(Rt(r.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),i=Rt(r.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):t==="xy"&&(r.setMatrix(Rt(r.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),i=Rt(r.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),i}function Kc(r,e,t,i,n){var a=t.start,o=t.end,s=t.getWidth(),l=t.getHeight(),u,c;n==="y"?(u=a.x+s/2,c=i.ya.x?i.x:a.x,c=a.y+l/2):n==="xy"&&(t.isPolar?(u=t.getCenter().x,c=t.getCenter().y):(u=(a.x+o.x)/2,c=(a.y+o.y)/2));var h=C2(r,[u,c],n);r.animate({matrix:h},e)}function S2(r,e,t){var i=t.coordinate,n=t.minYPoint;Kc(r,e,i,n,"x")}function M2(r,e,t){var i=t.coordinate,n=t.minYPoint;Kc(r,e,i,n,"y")}function A2(r,e,t){var i=t.coordinate,n=t.minYPoint;Kc(r,e,i,n,"xy")}function F2(r,e,t){var i=r.getTotalLength();r.attr("lineDash",[i]),r.animate(function(n){return{lineDashOffset:(1-n)*i}},e)}function T2(r,e,t){var i=t.toAttrs,n=i.x,a=i.y;delete i.x,delete i.y,r.attr(i),r.animate({x:n,y:a},e)}function E2(r,e,t){var i=r.getBBox(),n=r.get("origin").mappingData,a=n.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;r.applyToMatrix([o,s,1]);var l=Rt(r.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);r.setMatrix(l),r.animate({matrix:Rt(r.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)}function k2(r,e,t){var i=r.getBBox(),n=r.get("origin").mappingData,a=(i.minX+i.maxX)/2,o=n.points,s=o[0].y-o[1].y<=0?i.maxY:i.minY;r.applyToMatrix([a,s,1]);var l=Rt(r.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);r.setMatrix(l),r.animate({matrix:Rt(r.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},e)}function td(r,e){var t,i=Qo(r,e),n=i.startAngle,a=i.endAngle;return!Xt(n,-Math.PI*.5)&&n<-Math.PI*.5&&(n+=Math.PI*2),!Xt(a,-Math.PI*.5)&&a<-Math.PI*.5&&(a+=Math.PI*2),e[5]===0&&(t=q([a,n],2),n=t[0],a=t[1]),Xt(n,Math.PI*1.5)&&(n=Math.PI*-.5),Xt(a,Math.PI*-.5)&&!Xt(n,a)&&(a=Math.PI*1.5),{startAngle:n,endAngle:a}}function ed(r){var e;return r[0]==="M"||r[0]==="L"?e=[r[1],r[2]]:(r[0]==="a"||r[0]==="A"||r[0]==="C")&&(e=[r[r.length-2],r[r.length-1]]),e}function rd(r){var e,t,i,n=r.filter(function(b){return b[0]==="A"||b[0]==="a"});if(n.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=n[0],o=n.length>1?n[1]:n[0],s=r.indexOf(a),l=r.indexOf(o),u=ed(r[s-1]),c=ed(r[l-1]),h=td(u,a),f=h.startAngle,v=h.endAngle,d=td(c,o),p=d.startAngle,g=d.endAngle;Xt(f,p)&&Xt(v,g)?(t=f,i=v):(t=Math.min(f,p),i=Math.max(v,g));var y=a[1],x=n[n.length-1][1];return y=0;u--){var c=this.getFacetsByLevel(t,u);try{for(var h=(i=void 0,ht(c)),f=h.next();!f.done;f=h.next()){var v=f.value;this.isLeaf(v)||(v.originColIndex=v.columnIndex,v.columnIndex=this.getRegionIndex(v.children),v.columnValuesLength=o.length)}}catch(d){i={error:d}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}}},e.prototype.getFacetsByLevel=function(t,i){var n=[];return t.forEach(function(a){a.rowIndex===i&&n.push(a)}),n},e.prototype.getRegionIndex=function(t){var i=t[0],n=t[t.length-1];return(n.columnIndex-i.columnIndex)/2+i.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,i,n){var a=this,o=this.cfg.fields,s=o.length;if(!(s=v){var g=n.parsePosition([d[l],d[s.field]]);g&&f.push(g)}if(d[l]===h)return!1}),f},e.prototype.parsePercentPosition=function(t){var i=parseFloat(t[0])/100,n=parseFloat(t[1])/100,a=this.view.getCoordinate(),o=a.start,s=a.end,l={x:Math.min(o.x,s.x),y:Math.min(o.y,s.y)},u=a.getWidth()*i+l.x,c=a.getHeight()*n+l.y;return{x:u,y:c}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),i=t.start,n=t.end,a=t.getWidth(),o=t.getHeight(),s={x:Math.min(i.x,n.x),y:Math.min(i.y,n.y)};return{x:s.x,y:s.y,minX:s.x,minY:s.y,maxX:s.x+a,maxY:s.y+o,width:a,height:o}},e.prototype.getAnnotationCfg=function(t,i,n){var a=this,o=this.view.getCoordinate(),s=this.view.getCanvas(),l={};if(B(i))return null;var u=i.start,c=i.end,h=i.position,f=this.parsePosition(u),v=this.parsePosition(c),d=this.parsePosition(h);if(["arc","image","line","region","regionFilter"].includes(t)&&(!f||!v))return null;if(["text","dataMarker","html"].includes(t)&&!d)return null;if(t==="arc"){var p=i;p.start,p.end;var g=gt(p,["start","end"]),y=an(o,f),x=an(o,v);y>x&&(x=Math.PI*2+x),l=m(m({},g),{center:o.getCenter(),radius:Ns(o,f),startAngle:y,endAngle:x})}else if(t==="image"){var b=i;b.start,b.end;var g=gt(b,["start","end"]);l=m(m({},g),{start:f,end:v,src:i.src})}else if(t==="line"){var w=i;w.start,w.end;var g=gt(w,["start","end"]);l=m(m({},g),{start:f,end:v,text:A(i,"text",null)})}else if(t==="region"){var C=i;C.start,C.end;var g=gt(C,["start","end"]);l=m(m({},g),{start:f,end:v})}else if(t==="text"){var M=this.view.getData(),F=i;F.position;var T=F.content,g=gt(F,["position","content"]),L=T;_(T)&&(L=T(M)),l=m(m(m({},d),g),{content:L})}else if(t==="dataMarker"){var k=i;k.position;var P=k.point,O=k.line,N=k.text,V=k.autoAdjust,U=k.direction,g=gt(k,["position","point","line","text","autoAdjust","direction"]);l=m(m(m({},g),d),{coordinateBBox:this.getCoordinateBBox(),point:P,line:O,text:N,autoAdjust:V,direction:U})}else if(t==="dataRegion"){var D=i,z=D.start,X=D.end,$=D.region,N=D.text,Y=D.lineLength,g=gt(D,["start","end","region","text","lineLength"]);l=m(m({},g),{points:this.getRegionPoints(z,X),region:$,text:N,lineLength:Y})}else if(t==="regionFilter"){var W=i;W.start,W.end;var et=W.apply,at=W.color,g=gt(W,["start","end","apply","color"]),Q=this.view.geometries,tt=[],pt=function(We){We&&(We.isGroup()?We.getChildren().forEach(function(Mn){return pt(Mn)}):tt.push(We))};S(Q,function(We){et?ni(et,We.type)&&S(We.elements,function(Mn){pt(Mn.shape)}):S(We.elements,function(Mn){pt(Mn.shape)})}),l=m(m({},g),{color:at,shapes:tt,start:f,end:v})}else if(t==="shape"){var Ft=i,kt=Ft.render,Ut=gt(Ft,["render"]),ar=function(_x){if(_(i.render))return kt(_x,a.view,{parsePosition:a.parsePosition.bind(a)})};l=m(m({},Ut),{render:ar})}else if(t==="html"){var or=i,sr=or.html;or.position;var Ut=gt(or,["html","position"]),Jr=function(We){return _(sr)?sr(We,a.view):sr};l=m(m(m({},Ut),d),{parent:s.get("el").parentNode,html:Jr})}var Cr=H({},n,m(m({},l),{top:i.top,style:i.style,offsetX:i.offsetX,offsetY:i.offsetY}));return t!=="html"&&(Cr.container=this.getComponentContainer(Cr)),Cr.animate=this.view.getOptions().animate&&Cr.animate&&A(i,"animate",Cr.animate),Cr.animateOption=H({},sn,Cr.animateOption,i.animateOption),Cr},e.prototype.isTop=function(t){return A(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return A(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var i=this.cache.get(this.getCacheKey(t));if(i){var n=t.type,a=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,a);o&&le(o,["container"]),i.component.update(m(m({},o||{}),{visible:!!o})),ni(ho,t.type)&&i.component.render()}else i=this.createAnnotation(t),i&&(i.component.init(),ni(ho,t.type)&&i.component.render());return i},e.prototype.syncCache=function(t){var i=this,n=new Map(this.cache);return t.forEach(function(a,o){n.set(o,a)}),n.forEach(function(a,o){ze(i.option,function(s){return o===i.getCacheKey(s)})||(a.component.destroy(),n.delete(o))}),n},e.prototype.getCacheKey=function(t){return t},e}(mn);function nd(r,e){var t=H({},A(r,["components","axis","common"]),A(r,["components","axis",e]));return A(t,["grid"],{})}function fo(r,e,t,i){var n=[],a=e.getTicks();return r.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce(function(o,s,l){var u=s.value;if(i)n.push({points:[r.convert(t==="y"?{x:0,y:u}:{x:u,y:0}),r.convert(t==="y"?{x:1,y:u}:{x:u,y:1})]});else if(l){var c=o.value,h=(c+u)/2;n.push({points:[r.convert(t==="y"?{x:0,y:h}:{x:h,y:0}),r.convert(t==="y"?{x:1,y:h}:{x:h,y:1})]})}return s},a[0]),n}function Bl(r,e,t,i,n){var a=e.values.length,o=[],s=t.getTicks();return s.reduce(function(l,u){var c=l?l.value:u.value,h=u.value,f=(c+h)/2;return n==="x"?o.push({points:[r.convert({x:i?h:f,y:0}),r.convert({x:i?h:f,y:1})]}):o.push({points:Mt(Array(a+1),function(v,d){return r.convert({x:d/a,y:i?h:f})})}),u},s[0]),o}function ad(r,e){var t=A(e,"grid");if(t===null)return!1;var i=A(r,"grid");return!(t===void 0&&i===null)}var Fr=["container"],od=m(m({},sn),{appear:null}),$2=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.cache=new Map,i.gridContainer=i.view.getLayer(It.BG).addGroup(),i.gridForeContainer=i.view.getLayer(It.FORE).addGroup(),i.axisContainer=i.view.getLayer(It.BG).addGroup(),i.axisForeContainer=i.view.getLayer(It.FORE).addGroup(),i}return Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,i=this.view.getCoordinate();S(this.getComponents(),function(n){var a=n.component,o=n.direction,s=n.type,l=n.extra,u=l.dim,c=l.scale,h=l.alignTick,f;if(s===Gt.AXIS)i.isPolar?u==="x"?f=i.isTransposed?Ja(i,o):Tl(i):u==="y"&&(f=i.isTransposed?Tl(i):Ja(i,o)):f=Ja(i,o);else if(s===Gt.GRID)if(i.isPolar){var v=void 0;i.isTransposed?v=u==="x"?Bl(i,t.view.getYScales()[0],c,h,u):fo(i,c,u,h):v=u==="x"?fo(i,c,u,h):Bl(i,t.view.getXScale(),c,h,u),f={items:v,center:t.view.getCoordinate().getCenter()}}else f={items:fo(i,c,u,h)};a.update(f)})},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var i=new Map;this.cache.forEach(function(n,a){t.has(a)?i.set(a,n):n.component.destroy()}),this.cache=i},e.prototype.clear=function(){r.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(i){t.push(i)}),t},e.prototype.updateXAxes=function(t){var i=this.view.getXScale();if(!(!i||i.isIdentity)){var n=Uo(this.option,i.field);if(n!==!1){var a=gv(n,G.BOTTOM),o=It.BG,s="x",l=this.view.getCoordinate(),u=this.getId("axis",i.field),c=this.getId("grid",i.field);if(l.isRect){var h=this.cache.get(u);if(h){var f=this.getLineAxisCfg(i,n,a);le(f,Fr),h.component.update(f),t.set(u,h)}else h=this.createLineAxis(i,n,o,a,s),this.cache.set(u,h),t.set(u,h);var v=this.cache.get(c);if(v){var f=this.getLineGridCfg(i,n,a,s);le(f,Fr),v.component.update(f),t.set(c,v)}else v=this.createLineGrid(i,n,o,a,s),v&&(this.cache.set(c,v),t.set(c,v))}else if(l.isPolar){var h=this.cache.get(u);if(h){var f=l.isTransposed?this.getLineAxisCfg(i,n,G.RADIUS):this.getCircleAxisCfg(i,n,a);le(f,Fr),h.component.update(f),t.set(u,h)}else{if(l.isTransposed){if(oi(n))return;h=this.createLineAxis(i,n,o,G.RADIUS,s)}else h=this.createCircleAxis(i,n,o,a,s);this.cache.set(u,h),t.set(u,h)}var v=this.cache.get(c);if(v){var f=l.isTransposed?this.getCircleGridCfg(i,n,G.RADIUS,s):this.getLineGridCfg(i,n,G.CIRCLE,s);le(f,Fr),v.component.update(f),t.set(c,v)}else{if(l.isTransposed){if(oi(n))return;v=this.createCircleGrid(i,n,o,G.RADIUS,s)}else v=this.createLineGrid(i,n,o,G.CIRCLE,s);v&&(this.cache.set(c,v),t.set(c,v))}}}}},e.prototype.updateYAxes=function(t){var i=this,n=this.view.getYScales();S(n,function(a,o){if(!(!a||a.isIdentity)){var s=a.field,l=Uo(i.option,s);if(l!==!1){var u=It.BG,c="y",h=i.getId("axis",s),f=i.getId("grid",s),v=i.view.getCoordinate();if(v.isRect){var d=gv(l,o===0?G.LEFT:G.RIGHT),p=i.cache.get(h);if(p){var g=i.getLineAxisCfg(a,l,d);le(g,Fr),p.component.update(g),t.set(h,p)}else p=i.createLineAxis(a,l,u,d,c),i.cache.set(h,p),t.set(h,p);var y=i.cache.get(f);if(y){var g=i.getLineGridCfg(a,l,d,c);le(g,Fr),y.component.update(g),t.set(f,y)}else y=i.createLineGrid(a,l,u,d,c),y&&(i.cache.set(f,y),t.set(f,y))}else if(v.isPolar){var p=i.cache.get(h);if(p){var g=v.isTransposed?i.getCircleAxisCfg(a,l,G.CIRCLE):i.getLineAxisCfg(a,l,G.RADIUS);le(g,Fr),p.component.update(g),t.set(h,p)}else{if(v.isTransposed){if(oi(l))return;p=i.createCircleAxis(a,l,u,G.CIRCLE,c)}else p=i.createLineAxis(a,l,u,G.RADIUS,c);i.cache.set(h,p),t.set(h,p)}var y=i.cache.get(f);if(y){var g=v.isTransposed?i.getLineGridCfg(a,l,G.CIRCLE,c):i.getCircleGridCfg(a,l,G.RADIUS,c);le(g,Fr),y.component.update(g),t.set(f,y)}else{if(v.isTransposed){if(oi(l))return;y=i.createLineGrid(a,l,u,G.CIRCLE,c)}else y=i.createCircleGrid(a,l,u,G.RADIUS,c);y&&(i.cache.set(f,y),t.set(f,y))}}}}})},e.prototype.createLineAxis=function(t,i,n,a,o){var s={component:new eA(this.getLineAxisCfg(t,i,a)),layer:n,direction:a===G.RADIUS?G.NONE:a,type:Gt.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,i,n,a,o){var s=this.getLineGridCfg(t,i,a,o);if(s){var l={component:new iA(s),layer:n,direction:G.NONE,type:Gt.GRID,extra:{dim:o,scale:t,alignTick:A(s,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,i,n,a,o){var s={component:new rA(this.getCircleAxisCfg(t,i,a)),layer:n,direction:a,type:Gt.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createCircleGrid=function(t,i,n,a,o){var s=this.getCircleGridCfg(t,i,a,o);if(s){var l={component:new nA(s),layer:n,direction:G.NONE,type:Gt.GRID,extra:{dim:o,scale:t,alignTick:A(s,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,i,n){var a=A(i,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=Ja(o,n),l=yv(t,i),u=to(this.view.getTheme(),n),c=A(i,["title"])?H({title:{style:{text:l}}},{title:pv(this.view.getTheme(),n,i.title)},i):i,h=H(m(m({container:a},s),{ticks:t.getTicks().map(function(b){return{id:"".concat(b.tickValue),name:b.text,value:b.value}}),verticalFactor:o.isPolar?dv(s,o.getCenter())*-1:dv(s,o.getCenter()),theme:u}),u,c),f=this.getAnimateCfg(h),v=f.animate,d=f.animateOption;h.animateOption=d,h.animate=v;var p=sy(s),g=A(h,"verticalLimitLength",p?1/3:1/2);if(g<=1){var y=this.view.getCanvas().get("width"),x=this.view.getCanvas().get("height");h.verticalLimitLength=g*(p?y:x)}return h},e.prototype.getLineGridCfg=function(t,i,n,a){if(ad(to(this.view.getTheme(),n),i)){var o=nd(this.view.getTheme(),n),s=H({container:A(i,["top"])?this.gridForeContainer:this.gridContainer},o,A(i,"grid"),this.getAnimateCfg(i));return s.items=fo(this.view.getCoordinate(),t,a,A(s,"alignTick",!0)),s}},e.prototype.getCircleAxisCfg=function(t,i,n){var a=A(i,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=t.getTicks().map(function(p){return{id:"".concat(p.tickValue),name:p.text,value:p.value}});!t.isCategory&&Math.abs(o.endAngle-o.startAngle)===Math.PI*2&&s.length&&(s[s.length-1].name="");var l=yv(t,i),u=to(this.view.getTheme(),G.CIRCLE),c=A(i,["title"])?H({title:{style:{text:l}}},{title:pv(this.view.getTheme(),n,i.title)},i):i,h=H(m(m({container:a},Tl(this.view.getCoordinate())),{ticks:s,verticalFactor:1,theme:u}),u,c),f=this.getAnimateCfg(h),v=f.animate,d=f.animateOption;return h.animate=v,h.animateOption=d,h},e.prototype.getCircleGridCfg=function(t,i,n,a){if(ad(to(this.view.getTheme(),n),i)){var o=nd(this.view.getTheme(),G.RADIUS),s=H({container:A(i,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,A(i,"grid"),this.getAnimateCfg(i)),l=A(s,"alignTick",!0),u=a==="x"?this.view.getYScales()[0]:this.view.getXScale();return s.items=Bl(this.view.getCoordinate(),u,t,l,a),s}},e.prototype.getId=function(t,i){var n=this.view.getCoordinate();return"".concat(t,"-").concat(i,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&A(t,"animate"),animateOption:t&&t.animateOption?H({},od,t.animateOption):od}},e}(mn);function Or(r,e,t){return t===G.TOP?[r.minX+r.width/2-e.width/2,r.minY]:t===G.BOTTOM?[r.minX+r.width/2-e.width/2,r.maxY-e.height]:t===G.LEFT?[r.minX,r.minY+r.height/2-e.height/2]:t===G.RIGHT?[r.maxX-e.width,r.minY+r.height/2-e.height/2]:t===G.TOP_LEFT||t===G.LEFT_TOP?[r.tl.x,r.tl.y]:t===G.TOP_RIGHT||t===G.RIGHT_TOP?[r.tr.x-e.width,r.tr.y]:t===G.BOTTOM_LEFT||t===G.LEFT_BOTTOM?[r.bl.x,r.bl.y-e.height]:t===G.BOTTOM_RIGHT||t===G.RIGHT_BOTTOM?[r.br.x-e.width,r.br.y-e.height]:[0,0]}function sd(r,e){return en(r)?r===!1?!1:{}:A(r,[e],r)}function vo(r){return A(r,"position",G.BOTTOM)}var H2=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.container=i.view.getLayer(It.FORE).addGroup(),i}return Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,S(this.components,function(i){var n=i.component,a=i.direction,o=El(a),s=n.get("maxWidthRatio"),l=n.get("maxHeightRatio"),u=t.getCategoryLegendSizeCfg(o,s,l),c=n.get("maxWidth"),h=n.get("maxHeight");n.update({maxWidth:Math.min(u.maxWidth,c||0),maxHeight:Math.min(u.maxHeight,h||0)});var f=n.get("padding"),v=n.getLayoutBBox(),d=new ie(v.x,v.y,v.width,v.height).expand(f),p=q(Or(t.view.viewBBox,d,a),2),g=p[0],y=p[1],x=q(Or(t.layoutBBox,d,a),2),b=x[0],w=x[1],C=0,M=0;a.startsWith("top")||a.startsWith("bottom")?(C=g,M=w):(C=b,M=y),n.setLocation({x:C+f[3],y:M+f[0]}),t.layoutBBox=t.layoutBBox.cut(d,a)})},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var i={},n=function(f,v,d){var p=t.getId(d.field),g=t.getComponentById(p);if(g){var y=void 0,x=sd(t.option,d.field);x!==!1&&(A(x,"custom")?y=t.getCategoryCfg(f,v,d,x,!0):d.isLinear?y=t.getContinuousCfg(f,v,d,x):d.isCategory&&(y=t.getCategoryCfg(f,v,d,x))),y&&(le(y,["container"]),g.direction=vo(x),g.component.update(y),i[p]=!0)}else{var b=t.createFieldLegend(f,v,d);b&&(b.component.init(),t.components.push(b),i[p]=!0)}};if(A(this.option,"custom")){var a="global-custom",o=this.getComponentById(a);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);le(s,["container"]),o.component.update(s),i[a]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var u=It.FORE,c=vo(this.option);this.components.push({id:a,component:l,layer:u,direction:c,type:Gt.LEGEND,extra:void 0}),i[a]=!0}}}else this.loopLegends(n);var h=[];S(this.getComponents(),function(f){i[f.id]?h.push(f):f.component.destroy()}),this.components=h},e.prototype.clear=function(){r.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var i=this,n=t.geometries;return S(t.views,function(a){n=n.concat(i.getGeometries(a))}),n},e.prototype.loopLegends=function(t){var i=this.view.getRootView()===this.view;if(i){var n=this.getGeometries(this.view),a={};S(n,function(o){var s=o.getGroupAttributes();S(s,function(l){var u=l.getScale(l.type);!u||u.type==="identity"||a[u.field]||(t(o,l,u),a[u.field]=!0)})})}},e.prototype.createFieldLegend=function(t,i,n){var a,o=sd(this.option,n.field),s=It.FORE,l=vo(o);if(o!==!1&&(A(o,"custom")?a=this.createCustomLegend(t,i,n,o):n.isLinear?a=this.createContinuousLegend(t,i,n,o):n.isCategory&&(a=this.createCategoryLegend(t,i,n,o))),a)return a.set("field",n.field),{id:this.getId(n.field),component:a,layer:s,direction:l,type:Gt.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,i,n,a){var o=this.getCategoryCfg(t,i,n,a,!0);return new hv(o)},e.prototype.createContinuousLegend=function(t,i,n,a){var o=this.getContinuousCfg(t,i,n,le(a,["value"]));return new aA(o)},e.prototype.createCategoryLegend=function(t,i,n,a){var o=this.getCategoryCfg(t,i,n,a);return new hv(o)},e.prototype.getContinuousCfg=function(t,i,n,a){var o=n.getTicks(),s=ze(o,function(p){return p.value===0}),l=ze(o,function(p){return p.value===1}),u=o.map(function(p){var g=p.value,y=p.tickValue,x=i.mapping(n.invert(g)).join("");return{value:y,attrValue:x,color:x,scaleValue:g}});s||u.push({value:n.min,attrValue:i.mapping(n.invert(0)).join(""),color:i.mapping(n.invert(0)).join(""),scaleValue:0}),l||u.push({value:n.max,attrValue:i.mapping(n.invert(1)).join(""),color:i.mapping(n.invert(1)).join(""),scaleValue:1}),u.sort(function(p,g){return p.value-g.value});var c={min:me(u).value,max:Nt(u).value,colors:[],rail:{type:i.type},track:{}};i.type==="size"&&(c.track={style:{fill:i.type==="size"?this.view.getTheme().defaultColor:void 0}}),i.type==="color"&&(c.colors=u.map(function(p){return p.attrValue}));var h=this.container,f=vo(a),v=El(f),d=A(a,"title");return d&&(d=H({text:fa(n)},d)),c.container=h,c.layout=v,c.title=d,c.animateOption=sn,this.mergeLegendCfg(c,a,"continuous")},e.prototype.getCategoryCfg=function(t,i,n,a,o){var s=this.container,l=A(a,"position",G.BOTTOM),u=kv(this.view.getTheme(),l),c=A(u,["marker"]),h=A(a,"marker"),f=El(l),v=A(u,["pageNavigator"]),d=A(a,"pageNavigator"),p=o?kF(c,h,a.items):$y(this.view,t,i,c,h),g=A(a,"title");g&&(g=H({text:n?fa(n):""},g));var y=A(a,"maxWidthRatio"),x=A(a,"maxHeightRatio"),b=this.getCategoryLegendSizeCfg(f,y,x);b.container=s,b.layout=f,b.items=p,b.title=g,b.animateOption=sn,b.pageNavigator=H({},v,d);var w=this.mergeLegendCfg(b,a,l);w.reversed&&w.items.reverse();var C=A(w,"maxItemWidth");return C&&C<=1&&(w.maxItemWidth=this.view.viewBBox.width*C),w},e.prototype.mergeLegendCfg=function(t,i,n){var a=n.split("-")[0],o=kv(this.view.getTheme(),a);return H({},o,t,i)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return ze(this.components,function(i){return i.id===t})},e.prototype.getCategoryLegendSizeCfg=function(t,i,n){i===void 0&&(i=Hh),n===void 0&&(n=Hh);var a=this.view.viewBBox,o=a.width,s=a.height;return t==="vertical"?{maxWidth:o*i,maxHeight:s}:{maxWidth:o,maxHeight:s*n}},e}(mn),X2=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.onChangeFn=Pr,i.resetMeasure=function(){i.clear()},i.onValueChange=function(n){var a=q(n,2),o=a[0],s=a[1];i.start=o,i.end=s,i.changeViewData(o,s)},i.container=i.view.getLayer(It.FORE).addGroup(),i.onChangeFn=nc(i.onValueChange,20,{leading:!0}),i.width=0,i.view.on(ot.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(ot.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){r.prototype.destroy.call(this),this.view.off(ot.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(ot.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),i=t.start,n=t.end;B(this.start)&&(this.start=i,this.end=n);var a=this.view.getOptions().data;this.option&&!fe(a)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.start,t.end)},0)),this.slider){var i=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),a=q(n,4),o=a[0];a[1],a[2];var s=a[3],l=this.slider.component.getLayoutBBox(),u=new ie(l.x,l.y,Math.min(l.width,i),l.height).expand(n),c=this.getMinMaxText(this.start,this.end),h=c.minText,f=c.maxText,v=q(Or(this.view.viewBBox,u,G.BOTTOM),2);v[0];var d=v[1],p=q(Or(this.view.coordinateBBox,u,G.BOTTOM),2),g=p[0];p[1],this.slider.component.update(m(m({},this.getSliderCfg()),{x:g+s,y:d+o,width:this.width,start:this.start,end:this.end,minText:h,maxText:f})),this.view.viewBBox=this.view.viewBBox.cut(u,G.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),i=new KM(m({container:this.container},t));return i.init(),{component:i,layer:It.FORE,direction:G.BOTTOM,type:Gt.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var i=this.getMinMaxText(this.start,this.end),n=i.minText,a=i.maxText;t=m(m({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:a})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(mt(this.option)){var i=m({data:this.getData()},A(this.option,"trendCfg",{}));t=H({},t,this.getThemeOptions(),this.option),t=m(m({},t),{trendCfg:i})}return t.start=St(Math.min(B(t.start)?0:t.start,B(t.end)?1:t.end),0,1),t.end=St(Math.max(B(t.start)?0:t.start,B(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,i=q(this.view.getYScales(),1),n=i[0],a=this.view.getGroupScales();if(a.length){var o=a[0],s=o.field,l=o.ticks;return t.reduce(function(u,c){return c[s]===l[0]&&u.push(c[n.field]),u},[])}return t.map(function(u){return u[n.field]||0})},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return A(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,i){var n=this.view.getOptions().data,a=this.view.getXScale(),o=Ve(n,a.field);a.isLinear&&(o=o.sort());var s=o,l=Vt(n);if(!a||!l)return{};var u=Vt(s),c=Math.round(t*(u-1)),h=Math.round(i*(u-1)),f=A(s,[c]),v=A(s,[h]),d=this.getSliderCfg().formatter;return d&&(f=d(f,n[c],c),v=d(v,n[h],h)),{minText:f,maxText:v}},e.prototype.changeViewData=function(t,i){var n=this.view.getOptions().data,a=this.view.getXScale(),o=Vt(n);if(!(!a||!o)){var s=Ve(n,a.field),l=this.view.getXScale().isLinear?s.sort(function(v,d){return Number(v)-Number(d)}):s,u=l,c=Vt(u),h=Math.round(t*(c-1)),f=Math.round(i*(c-1));this.view.filter(a.field,function(v,d){var p=u.indexOf(v);return p>-1?_i(p,h,f):!0}),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(mn),po=0,ld=8,W2=32,_2=20,q2=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.onChangeFn=Pr,i.resetMeasure=function(){i.clear()},i.onValueChange=function(n){var a=n.ratio,o=i.getValidScrollbarCfg().animate;i.ratio=St(a,0,1);var s=i.view.getOptions().animate;o||i.view.animate(!1),i.changeViewData(i.getScrollRange(),!0),i.view.animate(s)},i.container=i.view.getLayer(It.FORE).addGroup(),i.onChangeFn=nc(i.onValueChange,20,{leading:!0}),i.trackLen=0,i.thumbLen=0,i.ratio=0,i.view.on(ot.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(ot.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){r.prototype.destroy.call(this),this.view.off(ot.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(ot.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var i=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),a=this.scrollbar.component.getLayoutBBox(),o=new ie(a.x,a.y,Math.min(a.width,i),a.height).expand(n),s=this.getScrollbarComponentCfg(),l=void 0,u=void 0;if(s.isHorizontal){var c=q(Or(this.view.viewBBox,o,G.BOTTOM),2);c[0];var h=c[1],f=q(Or(this.view.coordinateBBox,o,G.BOTTOM),2),v=f[0];f[1],l=v,u=h}else{var d=q(Or(this.view.viewBBox,o,G.RIGHT),2);d[0];var h=d[1],p=q(Or(this.view.viewBBox,o,G.RIGHT),2),v=p[0];p[1],l=v,u=h}l+=n[3],u+=n[0],this.trackLen?this.scrollbar.component.update(m(m({},s),{x:l,y:u,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(m(m({},s),{x:l,y:u})),this.view.viewBBox=this.view.viewBBox.cut(o,s.isHorizontal?G.BOTTOM:G.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return A(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var i=A(this.view.getTheme(),["components","scrollbar"]),n=t||{},a=n.thumbHighlightColor,o=gt(n,["thumbHighlightColor"]);return{default:H({},A(i,["default","style"],{}),o),hover:H({},A(i,["hover","style"],{}),{thumbColor:a})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),i=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),a=n.trackLen,o=n.thumbLen;this.trackLen=a,this.thumbLen=o,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=i},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*St(this.ratio,0,1)),i=Math.min(t+this.step-1,this.cnt-1);return[t,i]},e.prototype.changeViewData=function(t,i){var n=this,a=q(t,2),o=a[0],s=a[1],l=this.getValidScrollbarCfg().type,u=l!=="vertical",c=Ve(this.data,this.xScaleCfg.field),h=this.view.getXScale().isLinear?c.sort(function(v,d){return Number(v)-Number(d)}):c,f=u?h:h.reverse();this.yScalesCfg.forEach(function(v){n.view.scale(v.field,{formatter:v.formatter,type:v.type,min:v.min,max:v.max,tickMethod:v.tickMethod})}),this.view.filter(this.xScaleCfg.field,function(v){var d=f.indexOf(v);return d>-1?_i(d,o,s):!0}),this.view.render(!0)},e.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,i=t!=="vertical",n=new tA(m(m({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:It.FORE,direction:i?G.BOTTOM:G.RIGHT,type:Gt.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),i=this.trackLen?m(m({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):m({},t);return this.scrollbar.component.update(i),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,i=this.getValidScrollbarCfg(),n=i.type,a=i.categorySize,o=n!=="vertical";return Math.floor((o?t.width:t.height)/a)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),i=this.getScrollbarData(),n=Ve(i,t.field);return Vt(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,i=t.coordinateBBox,n=t.viewBBox,a=this.getValidScrollbarCfg(),o=a.type,s=a.padding,l=a.width,u=a.height,c=a.style,h=o!=="vertical",f=q(s,4),v=f[0],d=f[1],p=f[2],g=f[3],y=h?{x:i.minX+g,y:n.maxY-u-p}:{x:n.maxX-l-d,y:i.minY+v},x=this.getStep(),b=this.getCnt(),w=h?i.width-g-d:i.height-v-p,C=Math.max(w*St(x/b,0,1),_2);return m(m({},this.getThemeOptions()),{x:y.x,y:y.y,size:h?u:l,isHorizontal:h,trackLen:w,thumbLen:C,thumbOffset:0,theme:this.getScrollbarTheme(c)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:W2,width:ld,height:ld,padding:[0,0,0,0],animate:!0,style:{}};return mt(this.option)&&(t=m(m({},t),this.option)),(!mt(this.option)||!this.option.padding)&&(t.padding=t.type==="horizontal"?[po,0,po,0]:[0,po,0,po]),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),i=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&i.type==="vertical"&&(n=Z([],q(n),!1).reverse()),n},e}(mn),U2={fill:"#CCD6EC",opacity:.3};function j2(r,e,t){var i,n,a,o,s,l,u=rF(r,e,t);if(u.length){u=we(u);try{for(var c=ht(u),h=c.next();!h.done;h=c.next()){var f=h.value;try{for(var v=(a=void 0,ht(f)),d=v.next();!d.done;d=v.next()){var p=d.value,g=p.mappingData,y=g.x,x=g.y;p.x=R(y)?y[y.length-1]:y,p.y=R(x)?x[x.length-1]:x}}catch(k){a={error:k}}finally{try{d&&!d.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}}}catch(k){i={error:k}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}var b=t.shared;if(b===!1&&u.length>1){var w=u[0],C=Math.abs(e.y-w[0].y);try{for(var M=ht(u),F=M.next();!F.done;F=M.next()){var T=F.value,L=Math.abs(e.y-T[0].y);L<=C&&(w=T,C=L)}}catch(k){s={error:k}}finally{try{F&&!F.done&&(l=M.return)&&l.call(M)}finally{if(s)throw s.error}}u=[w]}return bi(we(u))}return[]}var Z2=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.show=function(t){var i=this.context.view,n=this.context.event,a=i.getController("tooltip").getTooltipCfg(),o=j2(i,{x:n.x,y:n.y},a);if(!Pt(o,this.items)&&(this.items=o,o.length)){var s=i.getXScale().field,l=o[0].data[s],u=[],c=i.geometries;if(S(c,function(X){if(X.type==="interval"||X.type==="schema"){var $=X.getElementsBy(function(Y){var W=Y.getData();return W[s]===l});u=u.concat($)}}),u.length){var h=i.getCoordinate(),f=u[0].shape.getCanvasBBox(),v=u[0].shape.getCanvasBBox(),d=f;S(u,function(X){var $=X.shape.getCanvasBBox();h.isTransposed?($.minYv.maxY&&(v=$)):($.minXv.maxX&&(v=$)),d.x=Math.min($.minX,d.minX),d.y=Math.min($.minY,d.minY),d.width=Math.max($.maxX,d.maxX)-d.x,d.height=Math.max($.maxY,d.maxY)-d.y});var p=i.backgroundGroup,g=i.coordinateBBox,y=void 0;if(h.isRect){var x=i.getXScale(),b=t||{},w=b.appendRatio,C=b.appendWidth;B(C)&&(w=B(w)?x.isLinear?0:.25:w,C=h.isTransposed?w*v.height:w*f.width);var M=void 0,F=void 0,T=void 0,L=void 0;h.isTransposed?(M=g.minX,F=Math.min(v.minY,f.minY)-C,T=g.width,L=d.height+C*2):(M=Math.min(f.minX,v.minX)-C,F=g.minY,T=d.width+C*2,L=g.height),y=[["M",M,F],["L",M+T,F],["L",M+T,F+L],["L",M,F+L],["Z"]]}else{var k=me(u),P=Nt(u),O=ha(k.getModel(),h).startAngle,N=ha(P.getModel(),h).endAngle,V=h.getCenter(),U=h.getRadius(),D=h.innerRadius*U;y=zr(V.x,V.y,U,O,N,D)}if(this.regionPath)this.regionPath.attr("path",y),this.regionPath.show();else{var z=A(t,"style",U2);this.regionPath=p.addShape({type:"path",name:"active-region",capture:!1,attrs:m(m({},z),{path:y})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),r.prototype.destroy.call(this)},e}(Ct),Cm=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.timeStamp=0,t}return e.prototype.show=function(){var t=this.context,i=t.event,n=t.view,a=n.isTooltipLocked();if(!a){var o=this.timeStamp,s=+new Date,l=A(t.view.getOptions(),"tooltip.showDelay",16);if(s-o>l){var u=this.location,c={x:i.x,y:i.y};(!u||!Pt(u,c))&&this.showTooltip(n,c),this.timeStamp=s,this.location=c}}},e.prototype.hide=function(){var t=this.context.view,i=t.getController("tooltip"),n=this.context.event,a=n.clientX,o=n.clientY;i.isCursorEntered({x:a,y:o})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,i){t.showTooltip(i)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(Ct),Q2=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.showTooltip=function(t,i){var n=Ke(t);S(n,function(a){var o=Su(t,a,i);a.showTooltip(o)})},e.prototype.hideTooltip=function(t){var i=Ke(t);S(i,function(n){n.hideTooltip()})},e}(Cm),K2=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.timeStamp=0,t}return e.prototype.destroy=function(){r.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context,i=t.event,n=this.timeStamp,a=+new Date;if(a-n>16){var o=this.location,s={x:i.x,y:i.y};(!o||!Pt(o,s))&&this.showTooltip(s),this.timeStamp=a,this.location=s}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var i=this.context,n=i.event,a=n.target;if(a&&a.get("tip")){if(!this.tooltip)this.renderTooltip();else{var o=i.view,s=o.canvas,l={start:{x:0,y:0},end:{x:s.get("width"),y:s.get("height")}};this.tooltip.set("region",l)}var u=a.get("tip");this.tooltip.update(m({title:u},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,i=this.context.view,n=i.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},o=i.getTheme(),s=A(o,["components","tooltip","domStyles"],{}),l=new Rs({parent:n.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:m({},H({},s,(t={},t[mr]={"max-width":"50%"},t[xr]={"word-break":"break-all"},t)))});l.init(),l.setCapture(!1),this.tooltip=l},e}(Ct),th=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="",t}return e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,i){t.setState(this.stateName,i)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var i=this,n=wy(t,this.stateName);S(n,function(a){i.setElementState(a,!1)})},e}(Ct);function ud(r){return A(r.get("delegateObject"),"item")}var eh=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return e.prototype.isItemIgnore=function(t,i){var n=this.ignoreListItemStates,a=n.filter(function(o){return i.hasState(t,o)});return!!a.length},e.prototype.setStateByComponent=function(t,i,n){var a=this.context.view,o=t.get("field"),s=_t(a);this.setElementsStateByItem(s,o,i,n)},e.prototype.setStateByElement=function(t,i){this.setElementState(t,i)},e.prototype.isMathItem=function(t,i,n){var a=this.context.view,o=on(a,i),s=Ye(t,i);return!B(s)&&n.name===o.getText(s)},e.prototype.setElementsStateByItem=function(t,i,n,a){var o=this;S(t,function(s){o.isMathItem(s,i,n)&&s.setState(o.stateName,a)})},e.prototype.setStateEnable=function(t){var i=Hr(this.context);if(i)gy(this.context)&&this.setStateByElement(i,t);else{var n=Mi(this.context);if(va(n)){var a=n.item,o=n.component;if(a&&o&&!this.isItemIgnore(a,o)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&ud(s.fromShape)===ud(s.toShape))return;this.setStateByComponent(o,a,t)}}}},e.prototype.toggle=function(){var t=Hr(this.context);if(t){var i=t.hasState(this.stateName);this.setElementState(t,!i)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(th),J2=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="active",t}return e.prototype.active=function(){this.setState()},e}(eh),tk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.cache={},t}return e.prototype.getColorScale=function(t,i){var n=i.geometry.getAttribute("color");if(!n)return null;var a=t.getScaleByField(n.getFields()[0]);return a},e.prototype.getLinkPath=function(t,i){var n=this.context.view,a=n.getCoordinate().isTransposed,o=t.shape.getCanvasBBox(),s=i.shape.getCanvasBBox(),l=a?[["M",o.minX,o.minY],["L",s.minX,s.maxY],["L",s.maxX,s.maxY],["L",o.maxX,o.minY],["Z"]]:[["M",o.maxX,o.minY],["L",s.minX,s.minY],["L",s.minX,s.maxY],["L",o.maxX,o.maxY],["Z"]];return l},e.prototype.addLinkShape=function(t,i,n,a){var o={opacity:.4,fill:i.shape.attr("fill")};t.addShape({type:"path",attrs:m(m({},H({},o,_(a)?a(o,i):a)),{path:this.getLinkPath(i,n)})})},e.prototype.linkByElement=function(t,i){var n=this,a=this.context.view,o=this.getColorScale(a,t);if(o){var s=Ye(t,o.field);if(!this.cache[s]){var l=OA(a,o.field,s),u=this.linkGroup,c=u.addGroup();this.cache[s]=c;var h=l.length;S(l,function(f,v){if(v=0},i)},e}(rh),ak=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="active",t}return e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,i){var n=this.context.view,a=_t(n);Sm(a,function(o){return t===o},i)},e.prototype.clear=function(){var t=this.context.view;nh(t)},e}(ih),ok=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="selected",t}return e.prototype.selected=function(){this.setState()},e}(rh),sk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="selected",t}return e.prototype.selected=function(){this.setState()},e}(eh),lk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="selected",t}return e.prototype.selected=function(){this.setState()},e}(ih),Ii=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return e.prototype.getTriggerListInfo=function(){var t=Mi(this.context),i=null;return va(t)&&(i={item:t.item,list:t.component}),i},e.prototype.getAllowComponents=function(){var t=this,i=this.context.view,n=Cy(i),a=[];return S(n,function(o){o.isList()&&t.allowSetStateByElement(o)&&a.push(o)}),a},e.prototype.hasState=function(t,i){return t.hasState(i,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,i=this.getAllowComponents();S(i,function(n){n.clearItemsState(t.stateName)})},e.prototype.allowSetStateByElement=function(t){var i=t.get("field");if(!i)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(this.cfg.componentNames.indexOf(n)===-1)return!1}var a=this.context.view,o=on(a,i);return o&&o.isCategory},e.prototype.allowSetStateByItem=function(t,i){var n=this.ignoreItemStates;if(n.length){var a=n.filter(function(o){return i.hasState(t,o)});return a.length===0}return!0},e.prototype.setStateByElement=function(t,i,n){var a=t.get("field"),o=this.context.view,s=on(o,a),l=Ye(i,a),u=s.getText(l);this.setItemsState(t,u,n)},e.prototype.setStateEnable=function(t){var i=this,n=Hr(this.context);if(n){var a=this.getAllowComponents();S(a,function(u){i.setStateByElement(u,n,t)})}else{var o=Mi(this.context);if(va(o)){var s=o.item,l=o.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(s,l)&&this.setItemState(l,s,t)}}},e.prototype.setItemsState=function(t,i,n){var a=this,o=t.getItems();S(o,function(s){s.name===i&&a.setItemState(t,s,n)})},e.prototype.setItemState=function(t,i,n){t.setItemState(i,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var i=t.list,n=t.item,a=this.hasState(i,n);this.setItemState(i,n,!a)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(Ct),uk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="active",t}return e.prototype.active=function(){this.setState()},e}(Ii),cd="inactive",hd="active";function ck(r){var e=r.getItems();S(e,function(t){r.hasState(t,hd)&&r.setItemState(t,hd,!1),r.hasState(t,cd)&&r.setItemState(t,cd,!1)})}var In="inactive",ei="active",oh=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName=ei,t.ignoreItemStates=["unchecked"],t}return e.prototype.setItemsState=function(t,i,n){this.setHighlightBy(t,function(a){return a.name===i},n)},e.prototype.setItemState=function(t,i,n){t.getItems(),this.setHighlightBy(t,function(a){return a===i},n)},e.prototype.setHighlightBy=function(t,i,n){var a=t.getItems();if(n)S(a,function(l){i(l)?(t.hasState(l,In)&&t.setItemState(l,In,!1),t.setItemState(l,ei,!0)):t.hasState(l,ei)||t.setItemState(l,In,!0)});else{var o=t.getItemsByState(ei),s=!0;S(o,function(l){if(!i(l))return s=!1,!1}),s?this.clear():S(a,function(l){i(l)&&(t.hasState(l,ei)&&t.setItemState(l,ei,!1),t.setItemState(l,In,!0))})}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)ck(t.list);else{var i=this.getAllowComponents();S(i,function(n){n.clearItemsState(ei),n.clearItemsState(In)})}},e}(Ii),hk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="selected",t}return e.prototype.selected=function(){this.setState()},e}(Ii),fk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="unchecked",t}return e.prototype.unchecked=function(){this.setState()},e}(Ii),Ni="unchecked",go="checked",vk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName=go,t}return e.prototype.setItemState=function(t,i,n){this.setCheckedBy(t,function(a){return a===i},n)},e.prototype.setCheckedBy=function(t,i,n){var a=t.getItems();n&&S(a,function(o){i(o)?(t.hasState(o,Ni)&&t.setItemState(o,Ni,!1),t.setItemState(o,go,!0)):t.hasState(o,go)||t.setItemState(o,Ni,!0)})},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var i=t.list,n=t.item,a=!cs(i.getItems(),function(o){return i.hasState(o,Ni)});a||i.hasState(n,Ni)?this.setItemState(i,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();S(t,function(i){i.clearItemsState(go),i.clearItemsState(Ni)})},e}(Ii),zi="unchecked",dk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.toggle=function(){var t,i,n,a,o,s,l,u,c=this.getTriggerListInfo();if(c!=null&&c.item){var h=c.list,f=c.item,v=h.getItems(),d=v.filter(function(k){return!h.hasState(k,zi)}),p=v.filter(function(k){return h.hasState(k,zi)}),g=d[0];if(v.length===d.length)try{for(var y=ht(v),x=y.next();!x.done;x=y.next()){var b=x.value;h.setItemState(b,zi,b.id!==f.id)}}catch(k){t={error:k}}finally{try{x&&!x.done&&(i=y.return)&&i.call(y)}finally{if(t)throw t.error}}else if(v.length-p.length===1)if(g.id===f.id)try{for(var w=ht(v),C=w.next();!C.done;C=w.next()){var b=C.value;h.setItemState(b,zi,!1)}}catch(k){n={error:k}}finally{try{C&&!C.done&&(a=w.return)&&a.call(w)}finally{if(n)throw n.error}}else try{for(var M=ht(v),F=M.next();!F.done;F=M.next()){var b=F.value;h.setItemState(b,zi,b.id!==f.id)}}catch(k){o={error:k}}finally{try{F&&!F.done&&(s=M.return)&&s.call(M)}finally{if(o)throw o.error}}else try{for(var T=ht(v),L=T.next();!L.done;L=T.next()){var b=L.value;h.setItemState(b,zi,b.id!==f.id)}}catch(k){l={error:k}}finally{try{L&&!L.done&&(u=T.return)&&u.call(T)}finally{if(l)throw l.error}}}},e}(Ii),fd="showRadio",Rl="legend-radio-tip",pk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.timeStamp=0,t}return e.prototype.show=function(){var t=this.getTriggerListInfo();if(t!=null&&t.item){var i=t.list,n=t.item;i.setItemState(n,fd,!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(t!=null&&t.item){var i=t.list,n=t.item;i.setItemState(n,fd,!1)}},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context,i=t.event,n=this.timeStamp,a=+new Date,o=this.context.event.target;if(a-n>16&&o.get("name")==="legend-item-radio"){var s=this.location,l={x:i.x,y:i.y};this.timeStamp=a,this.location=l,(!s||!Pt(s,l))&&this.showTooltip(l)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var i=this.context,n=i.event,a=n.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=i.view.getCanvas().get("el").getBoundingClientRect(),s=o.x,l=o.y;this.tooltip.update(m(m({title:a.get("tip")},t),{x:t.x+s,y:t.y+l})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,i=(t={},t[mr]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[xr]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(Rl)&&document.body.removeChild(document.getElementById(Rl));var n=new Rs({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:i,containerId:Rl});n.init(),n.setCapture(!1),this.tooltip=n},e}(Ii),sh=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var i="mask:".concat(t),n=this.context.view,a=this.context.event;n.emit(i,{target:this.maskShape,shape:this.maskShape,points:this.points,x:a.x,y:a.y})},e.prototype.createMask=function(){var t=this.context.view,i=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:m({fill:"#C5D4EB",opacity:.3},i)});return n},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(!(!this.moving||!this.maskShape)){var t=this.getCurrentPoint(),i=this.preMovePoint,n=t.x-i.x,a=t.y-i.y,o=this.points;S(o,function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var i=H({},this.getMaskAttrs(),t);this.maskShape.attr(i)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,r.prototype.destroy.call(this)},e}(Ct);function Am(r){var e=Nt(r),t=0,i=0,n=0;if(r.length){var a=r[0];t=Pc(a,e)/2,i=(e.x+a.x)/2,n=(e.y+a.y)/2}return{x:i,y:n,r:t}}var gk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.shapeType="circle",t}return e.prototype.getMaskAttrs=function(){return Am(this.points)},e}(sh);function Fm(r){return{start:me(r),end:Nt(r)}}function Tm(r,e){var t=Math.min(r.x,e.x),i=Math.min(r.y,e.y),n=Math.abs(e.x-r.x),a=Math.abs(e.y-r.y);return{x:t,y:i,width:n,height:a}}var Em=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.shapeType="rect",t}return e.prototype.getRegion=function(){return Fm(this.points)},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),i=t.start,n=t.end;return Tm(i,n)},e}(sh);function vd(r){r.x=St(r.x,0,1),r.y=St(r.y,0,1)}function km(r,e,t,i){var n=null,a=null,o=i.invert(me(r)),s=i.invert(Nt(r));return t&&(vd(o),vd(s)),e==="x"?(n=i.convert({x:o.x,y:0}),a=i.convert({x:s.x,y:1})):(n=i.convert({x:0,y:o.y}),a=i.convert({x:1,y:s.y})),{start:n,end:a}}var Lm=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return e.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return km(this.points,this.dim,this.inPlot,t)},e}(Em);function lh(r){var e=[];return r.length&&(S(r,function(t,i){i===0?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])}),e.push(["L",r[0].x,r[0].y])),e}function Im(r){return{path:lh(r)}}var Pm=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getMaskPath=function(){return lh(this.points)},e.prototype.getMaskAttrs=function(){return Im(this.points)},e.prototype.addPoint=function(){this.resize()},e}(sh);function uh(r){return RA(r,!0)}function Dm(r){return{path:uh(r)}}var yk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getMaskPath=function(){return uh(this.points)},e.prototype.getMaskAttrs=function(){return Dm(this.points)},e}(Pm),ch=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.maskShapes=[],t.starting=!1,t.moving=!1,t.recordPoints=null,t.preMovePoint=null,t.shapeType="path",t.maskType="multi-mask",t}return e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var i="".concat(this.maskType,":").concat(t),n=this.context.view,a=this.context.event,o={type:this.shapeType,name:this.maskType,get:function(s){return o.hasOwnProperty(s)?o[s]:void 0}};n.emit(i,{target:o,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:a.x,y:a.y})},e.prototype.createMask=function(t){var i=this.context.view,n=this.recordPoints[t],a=this.getMaskAttrs(n),o=i.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:m({fill:"#C5D4EB",opacity:.3},a)});this.maskShapes.push(o)},e.prototype.getMaskPath=function(t){return[]},e.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.show()}),this.emitEvent("show"))},e.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var i=this.recordPoints.length-1;this.createMask(i),this.updateShapesCapture(!1),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},e.prototype.move=function(){if(!(!this.moving||this.maskShapes.length===0)){var t=this.getCurrentPoint(),i=this.preMovePoint,n=t.x-i.x,a=t.y-i.y,o=this.getCurMaskShapeIndex();o>-1&&(this.recordPoints[o].forEach(function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},e.prototype.updateMask=function(t){var i=this;this.recordPoints.forEach(function(n,a){var o=H({},i.getMaskAttrs(n),t);i.maskShapes[a].attr(o)})},e.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},e.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.hide()}),this.emitEvent("hide"))},e.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},e.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach(function(t){return t.remove()}),this.maskShapes=[],this.preMovePoint=null},e.prototype.clear=function(){var t=this.getCurMaskShapeIndex();t===-1?(this.recordPointClear(),this.maskShapes.forEach(function(i){return i.remove()}),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},e.prototype.destroy=function(){this.clear(),r.prototype.destroy.call(this)},e.prototype.getRecordPoints=function(){var t;return Z([],q((t=this.recordPoints)!==null&&t!==void 0?t:[]),!1)},e.prototype.recordPointStart=function(){var t=this.getRecordPoints(),i=this.getCurrentPoint();this.recordPoints=Z(Z([],q(t),!1),[[i]],!1)},e.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),i=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(i),this.recordPoints=Z(Z([],q(t),!1),[n],!1)},e.prototype.recordPointClear=function(){this.recordPoints=[]},e.prototype.updateShapesCapture=function(t){this.maskShapes.forEach(function(i){return i.set("capture",t)})},e.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex(function(i){var n=i.attrs,a=n.width,o=n.height,s=n.r,l=a===0||o===0||s===0;return!l&&i.isHit(t.x,t.y)})},e}(Ct),Om=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.shapeType="rect",t}return e.prototype.getRegion=function(t){return Fm(t)},e.prototype.getMaskAttrs=function(t){var i=this.getRegion(t),n=i.start,a=i.end;return Tm(n,a)},e}(ch),Bm=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return e.prototype.getRegion=function(t){var i=this.context.view.getCoordinate();return km(t,this.dim,this.inPlot,i)},e}(Om),mk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.shapeType="circle",t.getMaskAttrs=Am,t}return e}(ch),Rm=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.getMaskPath=lh,t.getMaskAttrs=Im,t}return e.prototype.addPoint=function(){this.resize()},e}(ch),xk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.getMaskPath=uh,t.getMaskAttrs=Dm,t}return e}(Rm),wk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.setCursor=function(t){var i=this.context.view;i.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e.prototype.zoomIn=function(){this.setCursor("zoom-in")},e.prototype.zoomOut=function(){this.setCursor("zoom-out")},e}(Ct),bk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.filterView=function(t,i,n){var a=this;t.getScaleByField(i)&&t.filter(i,n),t.views&&t.views.length&&S(t.views,function(o){a.filterView(o,i,n)})},e.prototype.filter=function(){var t=Mi(this.context);if(t){var i=this.context.view,n=t.component,a=n.get("field");if(va(t)){if(a){var o=n.getItemsByState("unchecked"),s=on(i,a),l=o.map(function(v){return v.name});l.length?this.filterView(i,a,function(v){var d=s.getText(v);return!l.includes(d)}):this.filterView(i,a,null),i.render(!0)}}else if(yy(t)){var u=n.getValue(),c=q(u,2),h=c[0],f=c[1];this.filterView(i,a,function(v){return v>=h&&v<=f}),i.render(!0)}}},e}(Ct);function dd(r,e,t,i){var n=Math.min(t[e],i[e]),a=Math.max(t[e],i[e]),o=q(r.range,2),s=o[0],l=o[1];if(nl&&(a=l),n===l&&a===l)return null;var u=r.invert(n),c=r.invert(a);if(r.isCategory){var h=r.values.indexOf(u),f=r.values.indexOf(c),v=r.values.slice(h,f+1);return function(d){return v.includes(d)}}else return function(d){return d>=u&&d<=c}}var oe;(function(r){r.FILTER="brush-filter-processing",r.RESET="brush-filter-reset",r.BEFORE_FILTER="brush-filter:beforefilter",r.AFTER_FILTER="brush-filter:afterfilter",r.BEFORE_RESET="brush-filter:beforereset",r.AFTER_RESET="brush-filter:afterreset"})(oe||(oe={}));var Ws=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,i;if(da(this.context)){var n=this.context.event.target,a=n.getCanvasBBox();t={x:a.x,y:a.y},i={x:a.maxX,y:a.maxY}}else{if(!this.isStarted)return;t=this.startPoint,i=this.context.getCurrentPoint()}if(!(Math.abs(t.x-i.x)<5||Math.abs(t.x-i.y)<5)){var o=this.context,s=o.view,l=o.event,u={view:s,event:l,dims:this.dims};s.emit(oe.BEFORE_FILTER,Tt.fromData(s,oe.BEFORE_FILTER,u));var c=s.getCoordinate(),h=c.invert(i),f=c.invert(t);if(this.hasDim("x")){var v=s.getXScale(),d=dd(v,"x",h,f);this.filterView(s,v.field,d)}if(this.hasDim("y")){var p=s.getYScales()[0],d=dd(p,"y",h,f);this.filterView(s,p.field,d)}this.reRender(s,{source:oe.FILTER}),s.emit(oe.AFTER_FILTER,Tt.fromData(s,oe.AFTER_FILTER,u))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(oe.BEFORE_RESET,Tt.fromData(t,oe.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var i=t.getXScale();this.filterView(t,i.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:oe.RESET}),t.emit(oe.AFTER_RESET,Tt.fromData(t,oe.AFTER_RESET,{}))},e.prototype.filterView=function(t,i,n){t.filter(i,n)},e.prototype.reRender=function(t,i){t.render(!0,i)},e}(Ct),hh=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.filterView=function(t,i,n){var a=Ke(t);S(a,function(o){o.filter(i,n)})},e.prototype.reRender=function(t){var i=Ke(t);S(i,function(n){n.render(!0)})},e}(Ws),Ck=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.filter=function(){var t=Mi(this.context),i=this.context.view,n=_t(i);if(da(this.context)){var a=Ic(this.context,10);a&&S(n,function(p){a.includes(p)?p.show():p.hide()})}else if(t){var o=t.component,s=o.get("field");if(va(t)){if(s){var l=o.getItemsByState("unchecked"),u=on(i,s),c=l.map(function(p){return p.name});S(n,function(p){var g=Ye(p,s),y=u.getText(g);c.indexOf(y)>=0?p.hide():p.show()})}}else if(yy(t)){var h=o.getValue(),f=q(h,2),v=f[0],d=f[1];S(n,function(p){var g=Ye(p,s);g>=v&&g<=d?p.show():p.hide()})}}},e.prototype.clear=function(){var t=_t(this.context.view);S(t,function(i){i.show()})},e.prototype.reset=function(){this.clear()},e}(Ct),Nm=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.byRecord=!1,t}return e.prototype.filter=function(){da(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,i=Ic(this.context,10);if(i){var n=t.getXScale().field,a=t.getYScales()[0].field,o=i.map(function(l){return l.getModel().data}),s=Ke(t);S(s,function(l){var u=_t(l);S(u,function(c){var h=c.getModel().data;Sy(o,h,n,a)?c.show():c.hide()})})}},e.prototype.filterByBBox=function(){var t=this,i=this.context.view,n=Ke(i);S(n,function(a){var o=my(t.context,a,10),s=_t(a);o&&S(s,function(l){o.includes(l)?l.show():l.hide()})})},e.prototype.reset=function(){var t=Ke(this.context.view);S(t,function(i){var n=_t(i);S(n,function(a){a.show()})})},e}(Ct),Sk=10,Mk=5,Ak=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return e.prototype.getButtonCfg=function(){return H(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),i=this.context.view.foregroundGroup.addGroup({name:t.name}),n=i.addShape({type:"text",name:"button-text",attrs:m({text:t.text},t.textStyle)}),a=n.getBBox(),o=Oc(t.padding),s=i.addShape({type:"rect",name:"button-rect",attrs:m({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2]},t.style)});s.toBack(),i.on("mouseenter",function(){s.attr(t.activeStyle)}),i.on("mouseleave",function(){s.attr(t.style)}),this.buttonGroup=i},e.prototype.resetPosition=function(){var t=this.context.view,i=t.getCoordinate(),n=i.convert({x:1,y:1}),a=this.buttonGroup,o=a.getBBox(),s=Rt(null,[["t",n.x-o.width-Sk,n.y+o.height+Mk]]);a.setMatrix(s)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),r.prototype.destroy.call(this)},e}(Ct),Fk=4,Tk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),i=this.context.view,n=this.context.event;this.dragStart?i.emit("drag",{target:n.target,x:n.x,y:n.y}):Pc(t,this.startPoint)>Fk&&(i.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,i=this.context.event;t.emit("dragend",{target:i.target,x:i.x,y:i.y})}this.starting=!1,this.dragStart=!1},e}(Ct),Ek=5,kk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,i=this.context.getCurrentPoint(),n=Pc(t,i);if(n>Ek&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var a=this.context.view,o=Rt(this.startMatrix,[["t",i.x-t.x,i.y-t.y]]);a.backgroundGroup.setMatrix(o),a.foregroundGroup.setMatrix(o),a.middleGroup.setMatrix(o)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(Ct),pd="x",gd="y",zm=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.dims=[pd,gd],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var i=this.context.view;return t==="x"?i.getXScale():i.getYScales()[0]},e.prototype.resetDim=function(t){var i=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);i.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim(pd),this.resetDim(gd);var t=this.context.view;t.render(!0)},e}(Ct),Lk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var i=this.dims;S(i,function(n){var a=t.getScale(n),o=a.min,s=a.max,l=a.values;t.startCache[n]={min:o,max:s,values:l}})},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var i=this.startPoint,n=this.context.view.getCoordinate(),a=this.context.getCurrentPoint(),o=n.invert(i),s=n.invert(a),l=s.x-o.x,u=s.y-o.y,c=this.context.view,h=this.dims;S(h,function(f){t.translateDim(f,{x:l*-1,y:u*-1})}),c.render(!0)}},e.prototype.translateDim=function(t,i){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,i)}},e.prototype.translateLinear=function(t,i,n){var a=this.context.view,o=this.startCache[t],s=o.min,l=o.max,u=l-s,c=n[t]*u;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:i.nice,min:s,max:l}),a.scale(i.field,{nice:!1,min:s+c,max:l+c})},e.prototype.reset=function(){r.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(zm),Ik=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.zoomRatio=.05,t}return e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var i=this,n=this.dims;S(n,function(a){i.zoomDim(a,t)}),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,i){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,i)}},e.prototype.zoomLinear=function(t,i,n){var a=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:i.nice,min:i.min,max:i.max});var o=this.cacheScaleDefs[t],s=o.max-o.min,l=i.min,u=i.max,c=n*s,h=l-c,f=u+c,v=f-h,d=v/s;f>h&&d<100&&d>.01&&a.scale(i.field,{nice:!1,min:l-c,max:u+c})},e}(zm);function Pk(r){var e=r.gEvent.originalEvent;return e.deltaY>0}var Dk=1,Ok=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.scroll=function(t){var i=this.context,n=i.view,a=i.event;if(n.getOptions().scrollbar){var o=(t==null?void 0:t.wheelDelta)||Dk,s=n.getController("scrollbar"),l=n.getXScale(),u=n.getOptions().data,c=Vt(Ve(u,l.field)),h=Vt(l.values),f=s.getValue(),v=Math.floor((c-h)*f),d=v+(Pk(a)?o:-o),p=o/(c-h)/1e4,g=St(d/(c-h)+p,0,1);s.setValue(g)}},e}(Ct),Bk="aixs-description-tooltip",Rk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.show=function(){var t=this.context,i=Mi(t).axis,n=i.cfg.title,a=n.description,o=n.text,s=n.descriptionTooltipStyle,l=t.event,u=l.x,c=l.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:o||"",customContent:function(){return` +`),Il=function(r){for(var e=r.slice(),t=0;t=a.height:o.width>=a.width}function o2(r,e,t){var i=!!r.getAdjust("stack");return i||e.every(function(n,a){var o=t[a];return a2(r,n,o)})}function s2(r,e,t){var i=r.coordinate,n=ie.fromObject(t.getBBox()),a=Xr(e);i.isTransposed?a.attr({x:n.minX+n.width/2,textAlign:"center"}):a.attr({y:n.minY+n.height/2,textBaseline:"middle"})}function l2(r,e,t){var i;if(t.length!==0){var n=(i=t[0])===null||i===void 0?void 0:i.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=o2(a,e,t);o&&t.forEach(function(s,l){var u=e[l];s2(a,u,s)})}}}function u2(r){var e=500,t=[],i=Math.max(Math.floor(r.length/e),1);return S(r,function(n,a){a%i===0?t.push(n):n.set("visible",!1)}),t}function c2(r,e,t){var i;if(t.length!==0){var n=(i=t[0])===null||i===void 0?void 0:i.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=u2(e),s=U(a.getXYFields(),1),l=s[0],u=[],c=[],h=xe(o,function(g){return g.get("data")[l]}),f=bi(Mt(o,function(g){return g.get("data")[l]})),v;o.forEach(function(g){g.set("visible",!0)});var d=function(g){g&&(g.length&&c.push(g.pop()),c.push.apply(c,Z([],U(g),!1)))};for(Vt(f)>0&&(v=f.shift(),d(h[v])),Vt(f)>0&&(v=f.pop(),d(h[v])),S(f.reverse(),function(g){d(h[g])});c.length>0;){var p=c.shift();p.get("visible")&&(MF(p,u)?p.set("visible",!1):u.push(p))}}}}function h2(r,e){var t=r.getXYFields()[1],i=[],n=e.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&i.push(n.shift()),n.length>0&&i.push(n.pop()),i.push.apply(i,Z([],U(n),!1)),i}function wm(r,e,t){return r.some(function(i){return t(i,e)})}function f2(r,e,t){t===void 0&&(t=0);var i=Math.max(0,Math.min(r.x+r.width+t,e.x+e.width+t)-Math.max(r.x-t,e.x-t)),n=Math.max(0,Math.min(r.y+r.height+t,e.y+e.height+t)-Math.max(r.y-t,e.y-t));return i*n}function Kv(r,e){return wm(r,e,function(t,i){var n=Xr(t),a=Xr(i);return f2(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function v2(r,e,t,i,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||l.type!=="point")){var u=U(l.getXYFields(),2),c=u[0],h=u[1],f=xe(e,function(p){return p.get("data")[c]}),v=[],d=n&&n.offset||((o=r[0])===null||o===void 0?void 0:o.offset)||12;Mt(dn(f).reverse(),function(p){for(var g=h2(l,f[p]);g.length;){var y=g.shift(),x=Xr(y);if(wm(v,y,function(C,M){return C.get("data")[c]===M.get("data")[c]&&C.get("data")[h]===M.get("data")[h]})){x.set("visible",!1);continue}var w=Kv(v,y),b=!1;if(w&&(x.attr("y",x.attr("y")+2*d),b=Kv(v,y)),b){x.set("visible",!1);continue}v.push(y)}})}}}function d2(r,e){var t=r.getXYFields()[1],i=[],n=e.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&i.push(n.shift()),n.length>0&&i.push(n.pop()),i.push.apply(i,Z([],U(n),!1)),i}function bm(r,e,t){return r.some(function(i){return t(i,e)})}function p2(r,e,t){t===void 0&&(t=0);var i=Math.max(0,Math.min(r.x+r.width+t,e.x+e.width+t)-Math.max(r.x-t,e.x-t)),n=Math.max(0,Math.min(r.y+r.height+t,e.y+e.height+t)-Math.max(r.y-t,e.y-t));return i*n}function Jv(r,e){return bm(r,e,function(t,i){var n=Xr(t),a=Xr(i);return p2(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function g2(r,e,t,i,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||["path","line","area"].indexOf(l.type)<0)){var u=U(l.getXYFields(),2),c=u[0],h=u[1],f=xe(e,function(p){return p.get("data")[c]}),v=[],d=n&&n.offset||((o=r[0])===null||o===void 0?void 0:o.offset)||12;Mt(dn(f).reverse(),function(p){for(var g=d2(l,f[p]);g.length;){var y=g.shift(),x=Xr(y);if(bm(v,y,function(C,M){return C.get("data")[c]===M.get("data")[c]&&C.get("data")[h]===M.get("data")[h]})){x.set("visible",!1);continue}var w=Jv(v,y),b=!1;if(w&&(x.attr("y",x.attr("y")+2*d),b=Jv(v,y)),b){x.set("visible",!1);continue}v.push(y)}})}}}var Dl;function y2(){return Dl||(Dl=document.createElement("canvas").getContext("2d")),Dl}var uo=Aa(function(r,e){e===void 0&&(e={});var t=e.fontSize,i=e.fontFamily,n=e.fontWeight,a=e.fontStyle,o=e.fontVariant,s=y2();return s.font=[a,o,n,"".concat(t,"px"),i].join(" "),s.measureText(K(r)?r:"").width},function(r,e){return e===void 0&&(e={}),Z([r],U(tc(e)),!1).join("")}),m2=function(r,e,t){var i=16,n=uo("...",t),a;K(r)?a=r:a=ss(r);var o=e,s=[],l,u;if(uo(r,t)<=e)return r;for(;l=a.substr(0,i),u=uo(l,t),!(u+n>o&&u>o);)if(s.push(l),o-=u,a=a.substr(i),!a)return s.join("");for(;l=a.substr(0,1),u=uo(l,t),!(u+n>o);)if(s.push(l),o-=u,a=a.substr(1),!a)return s.join("");return"".concat(s.join(""),"...")};function x2(r,e,t,i,n){if(!(e.length<=0)){var a=(n==null?void 0:n.direction)||["top","right","bottom","left"],o=(n==null?void 0:n.action)||"translate",s=(n==null?void 0:n.margin)||0,l=e[0].get("coordinate");if(l){var u=fA(l,s),c=u.minX,h=u.minY,f=u.maxX,v=u.maxY;S(e,function(d){var p=d.getCanvasBBox(),g=p.minX,y=p.minY,x=p.maxX,w=p.maxY,b=p.x,C=p.y,M=p.width,F=p.height,T=b,L=C;if(a.indexOf("left")>=0&&(g=0&&(y=0&&(g>f?T=f-M:x>f&&(T=T-(x-f))),a.indexOf("bottom")>=0&&(y>v?L=v-F:w>v&&(L=L-(w-v))),T!==b||L!==C){var k=T-b;if(o==="translate")Da(d,k,L-C);else if(o==="ellipsis"){var I=d.findAll(function(O){return O.get("type")==="text"});I.forEach(function(O){var N=Ju(O.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),Y=O.getCanvasBBox(),q=m2(O.attr("text"),Y.width-Math.abs(k),N);O.attr("text",q)})}else d.hide()}})}}}function w2(r,e,t){var i={fillOpacity:B(r.attr("fillOpacity"))?1:r.attr("fillOpacity"),strokeOpacity:B(r.attr("strokeOpacity"))?1:r.attr("strokeOpacity"),opacity:B(r.attr("opacity"))?1:r.attr("opacity")};r.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),r.animate(i,e)}function b2(r,e,t){var i={fillOpacity:0,strokeOpacity:0,opacity:0},n=e.easing,a=e.duration,o=e.delay;r.animate(i,a,n,function(){r.remove(!0)},o)}function C2(r,e,t){var i,n=U(e,2),a=n[0],o=n[1];return r.applyToMatrix([a,o,1]),t==="x"?(r.setMatrix(Rt(r.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),i=Rt(r.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):t==="y"?(r.setMatrix(Rt(r.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),i=Rt(r.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):t==="xy"&&(r.setMatrix(Rt(r.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),i=Rt(r.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),i}function Kc(r,e,t,i,n){var a=t.start,o=t.end,s=t.getWidth(),l=t.getHeight(),u,c;n==="y"?(u=a.x+s/2,c=i.ya.x?i.x:a.x,c=a.y+l/2):n==="xy"&&(t.isPolar?(u=t.getCenter().x,c=t.getCenter().y):(u=(a.x+o.x)/2,c=(a.y+o.y)/2));var h=C2(r,[u,c],n);r.animate({matrix:h},e)}function S2(r,e,t){var i=t.coordinate,n=t.minYPoint;Kc(r,e,i,n,"x")}function M2(r,e,t){var i=t.coordinate,n=t.minYPoint;Kc(r,e,i,n,"y")}function A2(r,e,t){var i=t.coordinate,n=t.minYPoint;Kc(r,e,i,n,"xy")}function F2(r,e,t){var i=r.getTotalLength();r.attr("lineDash",[i]),r.animate(function(n){return{lineDashOffset:(1-n)*i}},e)}function T2(r,e,t){var i=t.toAttrs,n=i.x,a=i.y;delete i.x,delete i.y,r.attr(i),r.animate({x:n,y:a},e)}function E2(r,e,t){var i=r.getBBox(),n=r.get("origin").mappingData,a=n.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;r.applyToMatrix([o,s,1]);var l=Rt(r.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);r.setMatrix(l),r.animate({matrix:Rt(r.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)}function k2(r,e,t){var i=r.getBBox(),n=r.get("origin").mappingData,a=(i.minX+i.maxX)/2,o=n.points,s=o[0].y-o[1].y<=0?i.maxY:i.minY;r.applyToMatrix([a,s,1]);var l=Rt(r.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);r.setMatrix(l),r.animate({matrix:Rt(r.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},e)}function td(r,e){var t,i=Qo(r,e),n=i.startAngle,a=i.endAngle;return!Xt(n,-Math.PI*.5)&&n<-Math.PI*.5&&(n+=Math.PI*2),!Xt(a,-Math.PI*.5)&&a<-Math.PI*.5&&(a+=Math.PI*2),e[5]===0&&(t=U([a,n],2),n=t[0],a=t[1]),Xt(n,Math.PI*1.5)&&(n=Math.PI*-.5),Xt(a,Math.PI*-.5)&&!Xt(n,a)&&(a=Math.PI*1.5),{startAngle:n,endAngle:a}}function ed(r){var e;return r[0]==="M"||r[0]==="L"?e=[r[1],r[2]]:(r[0]==="a"||r[0]==="A"||r[0]==="C")&&(e=[r[r.length-2],r[r.length-1]]),e}function rd(r){var e,t,i,n=r.filter(function(w){return w[0]==="A"||w[0]==="a"});if(n.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=n[0],o=n.length>1?n[1]:n[0],s=r.indexOf(a),l=r.indexOf(o),u=ed(r[s-1]),c=ed(r[l-1]),h=td(u,a),f=h.startAngle,v=h.endAngle,d=td(c,o),p=d.startAngle,g=d.endAngle;Xt(f,p)&&Xt(v,g)?(t=f,i=v):(t=Math.min(f,p),i=Math.max(v,g));var y=a[1],x=n[n.length-1][1];return y=0;u--){var c=this.getFacetsByLevel(t,u);try{for(var h=(i=void 0,ht(c)),f=h.next();!f.done;f=h.next()){var v=f.value;this.isLeaf(v)||(v.originColIndex=v.columnIndex,v.columnIndex=this.getRegionIndex(v.children),v.columnValuesLength=o.length)}}catch(d){i={error:d}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}}},e.prototype.getFacetsByLevel=function(t,i){var n=[];return t.forEach(function(a){a.rowIndex===i&&n.push(a)}),n},e.prototype.getRegionIndex=function(t){var i=t[0],n=t[t.length-1];return(n.columnIndex-i.columnIndex)/2+i.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,i,n){var a=this,o=this.cfg.fields,s=o.length;if(!(s=v){var g=n.parsePosition([d[l],d[s.field]]);g&&f.push(g)}if(d[l]===h)return!1}),f},e.prototype.parsePercentPosition=function(t){var i=parseFloat(t[0])/100,n=parseFloat(t[1])/100,a=this.view.getCoordinate(),o=a.start,s=a.end,l={x:Math.min(o.x,s.x),y:Math.min(o.y,s.y)},u=a.getWidth()*i+l.x,c=a.getHeight()*n+l.y;return{x:u,y:c}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),i=t.start,n=t.end,a=t.getWidth(),o=t.getHeight(),s={x:Math.min(i.x,n.x),y:Math.min(i.y,n.y)};return{x:s.x,y:s.y,minX:s.x,minY:s.y,maxX:s.x+a,maxY:s.y+o,width:a,height:o}},e.prototype.getAnnotationCfg=function(t,i,n){var a=this,o=this.view.getCoordinate(),s=this.view.getCanvas(),l={};if(B(i))return null;var u=i.start,c=i.end,h=i.position,f=this.parsePosition(u),v=this.parsePosition(c),d=this.parsePosition(h);if(["arc","image","line","region","regionFilter"].includes(t)&&(!f||!v))return null;if(["text","dataMarker","html"].includes(t)&&!d)return null;if(t==="arc"){var p=i;p.start,p.end;var g=gt(p,["start","end"]),y=an(o,f),x=an(o,v);y>x&&(x=Math.PI*2+x),l=m(m({},g),{center:o.getCenter(),radius:Ns(o,f),startAngle:y,endAngle:x})}else if(t==="image"){var w=i;w.start,w.end;var g=gt(w,["start","end"]);l=m(m({},g),{start:f,end:v,src:i.src})}else if(t==="line"){var b=i;b.start,b.end;var g=gt(b,["start","end"]);l=m(m({},g),{start:f,end:v,text:A(i,"text",null)})}else if(t==="region"){var C=i;C.start,C.end;var g=gt(C,["start","end"]);l=m(m({},g),{start:f,end:v})}else if(t==="text"){var M=this.view.getData(),F=i;F.position;var T=F.content,g=gt(F,["position","content"]),L=T;_(T)&&(L=T(M)),l=m(m(m({},d),g),{content:L})}else if(t==="dataMarker"){var k=i;k.position;var I=k.point,O=k.line,N=k.text,Y=k.autoAdjust,q=k.direction,g=gt(k,["position","point","line","text","autoAdjust","direction"]);l=m(m(m({},g),d),{coordinateBBox:this.getCoordinateBBox(),point:I,line:O,text:N,autoAdjust:Y,direction:q})}else if(t==="dataRegion"){var D=i,z=D.start,X=D.end,$=D.region,N=D.text,V=D.lineLength,g=gt(D,["start","end","region","text","lineLength"]);l=m(m({},g),{points:this.getRegionPoints(z,X),region:$,text:N,lineLength:V})}else if(t==="regionFilter"){var W=i;W.start,W.end;var et=W.apply,at=W.color,g=gt(W,["start","end","apply","color"]),Q=this.view.geometries,tt=[],pt=function(We){We&&(We.isGroup()?We.getChildren().forEach(function(Mn){return pt(Mn)}):tt.push(We))};S(Q,function(We){et?ni(et,We.type)&&S(We.elements,function(Mn){pt(Mn.shape)}):S(We.elements,function(Mn){pt(Mn.shape)})}),l=m(m({},g),{color:at,shapes:tt,start:f,end:v})}else if(t==="shape"){var Ft=i,kt=Ft.render,Ut=gt(Ft,["render"]),ar=function(_x){if(_(i.render))return kt(_x,a.view,{parsePosition:a.parsePosition.bind(a)})};l=m(m({},Ut),{render:ar})}else if(t==="html"){var or=i,sr=or.html;or.position;var Ut=gt(or,["html","position"]),Jr=function(We){return _(sr)?sr(We,a.view):sr};l=m(m(m({},Ut),d),{parent:s.get("el").parentNode,html:Jr})}var Cr=H({},n,m(m({},l),{top:i.top,style:i.style,offsetX:i.offsetX,offsetY:i.offsetY}));return t!=="html"&&(Cr.container=this.getComponentContainer(Cr)),Cr.animate=this.view.getOptions().animate&&Cr.animate&&A(i,"animate",Cr.animate),Cr.animateOption=H({},sn,Cr.animateOption,i.animateOption),Cr},e.prototype.isTop=function(t){return A(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return A(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var i=this.cache.get(this.getCacheKey(t));if(i){var n=t.type,a=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,a);o&&le(o,["container"]),i.component.update(m(m({},o||{}),{visible:!!o})),ni(ho,t.type)&&i.component.render()}else i=this.createAnnotation(t),i&&(i.component.init(),ni(ho,t.type)&&i.component.render());return i},e.prototype.syncCache=function(t){var i=this,n=new Map(this.cache);return t.forEach(function(a,o){n.set(o,a)}),n.forEach(function(a,o){ze(i.option,function(s){return o===i.getCacheKey(s)})||(a.component.destroy(),n.delete(o))}),n},e.prototype.getCacheKey=function(t){return t},e}(mn);function nd(r,e){var t=H({},A(r,["components","axis","common"]),A(r,["components","axis",e]));return A(t,["grid"],{})}function fo(r,e,t,i){var n=[],a=e.getTicks();return r.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce(function(o,s,l){var u=s.value;if(i)n.push({points:[r.convert(t==="y"?{x:0,y:u}:{x:u,y:0}),r.convert(t==="y"?{x:1,y:u}:{x:u,y:1})]});else if(l){var c=o.value,h=(c+u)/2;n.push({points:[r.convert(t==="y"?{x:0,y:h}:{x:h,y:0}),r.convert(t==="y"?{x:1,y:h}:{x:h,y:1})]})}return s},a[0]),n}function Bl(r,e,t,i,n){var a=e.values.length,o=[],s=t.getTicks();return s.reduce(function(l,u){var c=l?l.value:u.value,h=u.value,f=(c+h)/2;return n==="x"?o.push({points:[r.convert({x:i?h:f,y:0}),r.convert({x:i?h:f,y:1})]}):o.push({points:Mt(Array(a+1),function(v,d){return r.convert({x:d/a,y:i?h:f})})}),u},s[0]),o}function ad(r,e){var t=A(e,"grid");if(t===null)return!1;var i=A(r,"grid");return!(t===void 0&&i===null)}var Fr=["container"],od=m(m({},sn),{appear:null}),$2=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.cache=new Map,i.gridContainer=i.view.getLayer(It.BG).addGroup(),i.gridForeContainer=i.view.getLayer(It.FORE).addGroup(),i.axisContainer=i.view.getLayer(It.BG).addGroup(),i.axisForeContainer=i.view.getLayer(It.FORE).addGroup(),i}return Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,i=this.view.getCoordinate();S(this.getComponents(),function(n){var a=n.component,o=n.direction,s=n.type,l=n.extra,u=l.dim,c=l.scale,h=l.alignTick,f;if(s===Gt.AXIS)i.isPolar?u==="x"?f=i.isTransposed?Ja(i,o):Tl(i):u==="y"&&(f=i.isTransposed?Tl(i):Ja(i,o)):f=Ja(i,o);else if(s===Gt.GRID)if(i.isPolar){var v=void 0;i.isTransposed?v=u==="x"?Bl(i,t.view.getYScales()[0],c,h,u):fo(i,c,u,h):v=u==="x"?fo(i,c,u,h):Bl(i,t.view.getXScale(),c,h,u),f={items:v,center:t.view.getCoordinate().getCenter()}}else f={items:fo(i,c,u,h)};a.update(f)})},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var i=new Map;this.cache.forEach(function(n,a){t.has(a)?i.set(a,n):n.component.destroy()}),this.cache=i},e.prototype.clear=function(){r.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(i){t.push(i)}),t},e.prototype.updateXAxes=function(t){var i=this.view.getXScale();if(!(!i||i.isIdentity)){var n=Uo(this.option,i.field);if(n!==!1){var a=gv(n,G.BOTTOM),o=It.BG,s="x",l=this.view.getCoordinate(),u=this.getId("axis",i.field),c=this.getId("grid",i.field);if(l.isRect){var h=this.cache.get(u);if(h){var f=this.getLineAxisCfg(i,n,a);le(f,Fr),h.component.update(f),t.set(u,h)}else h=this.createLineAxis(i,n,o,a,s),this.cache.set(u,h),t.set(u,h);var v=this.cache.get(c);if(v){var f=this.getLineGridCfg(i,n,a,s);le(f,Fr),v.component.update(f),t.set(c,v)}else v=this.createLineGrid(i,n,o,a,s),v&&(this.cache.set(c,v),t.set(c,v))}else if(l.isPolar){var h=this.cache.get(u);if(h){var f=l.isTransposed?this.getLineAxisCfg(i,n,G.RADIUS):this.getCircleAxisCfg(i,n,a);le(f,Fr),h.component.update(f),t.set(u,h)}else{if(l.isTransposed){if(oi(n))return;h=this.createLineAxis(i,n,o,G.RADIUS,s)}else h=this.createCircleAxis(i,n,o,a,s);this.cache.set(u,h),t.set(u,h)}var v=this.cache.get(c);if(v){var f=l.isTransposed?this.getCircleGridCfg(i,n,G.RADIUS,s):this.getLineGridCfg(i,n,G.CIRCLE,s);le(f,Fr),v.component.update(f),t.set(c,v)}else{if(l.isTransposed){if(oi(n))return;v=this.createCircleGrid(i,n,o,G.RADIUS,s)}else v=this.createLineGrid(i,n,o,G.CIRCLE,s);v&&(this.cache.set(c,v),t.set(c,v))}}}}},e.prototype.updateYAxes=function(t){var i=this,n=this.view.getYScales();S(n,function(a,o){if(!(!a||a.isIdentity)){var s=a.field,l=Uo(i.option,s);if(l!==!1){var u=It.BG,c="y",h=i.getId("axis",s),f=i.getId("grid",s),v=i.view.getCoordinate();if(v.isRect){var d=gv(l,o===0?G.LEFT:G.RIGHT),p=i.cache.get(h);if(p){var g=i.getLineAxisCfg(a,l,d);le(g,Fr),p.component.update(g),t.set(h,p)}else p=i.createLineAxis(a,l,u,d,c),i.cache.set(h,p),t.set(h,p);var y=i.cache.get(f);if(y){var g=i.getLineGridCfg(a,l,d,c);le(g,Fr),y.component.update(g),t.set(f,y)}else y=i.createLineGrid(a,l,u,d,c),y&&(i.cache.set(f,y),t.set(f,y))}else if(v.isPolar){var p=i.cache.get(h);if(p){var g=v.isTransposed?i.getCircleAxisCfg(a,l,G.CIRCLE):i.getLineAxisCfg(a,l,G.RADIUS);le(g,Fr),p.component.update(g),t.set(h,p)}else{if(v.isTransposed){if(oi(l))return;p=i.createCircleAxis(a,l,u,G.CIRCLE,c)}else p=i.createLineAxis(a,l,u,G.RADIUS,c);i.cache.set(h,p),t.set(h,p)}var y=i.cache.get(f);if(y){var g=v.isTransposed?i.getLineGridCfg(a,l,G.CIRCLE,c):i.getCircleGridCfg(a,l,G.RADIUS,c);le(g,Fr),y.component.update(g),t.set(f,y)}else{if(v.isTransposed){if(oi(l))return;y=i.createLineGrid(a,l,u,G.CIRCLE,c)}else y=i.createCircleGrid(a,l,u,G.RADIUS,c);y&&(i.cache.set(f,y),t.set(f,y))}}}}})},e.prototype.createLineAxis=function(t,i,n,a,o){var s={component:new eA(this.getLineAxisCfg(t,i,a)),layer:n,direction:a===G.RADIUS?G.NONE:a,type:Gt.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,i,n,a,o){var s=this.getLineGridCfg(t,i,a,o);if(s){var l={component:new iA(s),layer:n,direction:G.NONE,type:Gt.GRID,extra:{dim:o,scale:t,alignTick:A(s,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,i,n,a,o){var s={component:new rA(this.getCircleAxisCfg(t,i,a)),layer:n,direction:a,type:Gt.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createCircleGrid=function(t,i,n,a,o){var s=this.getCircleGridCfg(t,i,a,o);if(s){var l={component:new nA(s),layer:n,direction:G.NONE,type:Gt.GRID,extra:{dim:o,scale:t,alignTick:A(s,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,i,n){var a=A(i,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=Ja(o,n),l=yv(t,i),u=to(this.view.getTheme(),n),c=A(i,["title"])?H({title:{style:{text:l}}},{title:pv(this.view.getTheme(),n,i.title)},i):i,h=H(m(m({container:a},s),{ticks:t.getTicks().map(function(w){return{id:"".concat(w.tickValue),name:w.text,value:w.value}}),verticalFactor:o.isPolar?dv(s,o.getCenter())*-1:dv(s,o.getCenter()),theme:u}),u,c),f=this.getAnimateCfg(h),v=f.animate,d=f.animateOption;h.animateOption=d,h.animate=v;var p=sy(s),g=A(h,"verticalLimitLength",p?1/3:1/2);if(g<=1){var y=this.view.getCanvas().get("width"),x=this.view.getCanvas().get("height");h.verticalLimitLength=g*(p?y:x)}return h},e.prototype.getLineGridCfg=function(t,i,n,a){if(ad(to(this.view.getTheme(),n),i)){var o=nd(this.view.getTheme(),n),s=H({container:A(i,["top"])?this.gridForeContainer:this.gridContainer},o,A(i,"grid"),this.getAnimateCfg(i));return s.items=fo(this.view.getCoordinate(),t,a,A(s,"alignTick",!0)),s}},e.prototype.getCircleAxisCfg=function(t,i,n){var a=A(i,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=t.getTicks().map(function(p){return{id:"".concat(p.tickValue),name:p.text,value:p.value}});!t.isCategory&&Math.abs(o.endAngle-o.startAngle)===Math.PI*2&&s.length&&(s[s.length-1].name="");var l=yv(t,i),u=to(this.view.getTheme(),G.CIRCLE),c=A(i,["title"])?H({title:{style:{text:l}}},{title:pv(this.view.getTheme(),n,i.title)},i):i,h=H(m(m({container:a},Tl(this.view.getCoordinate())),{ticks:s,verticalFactor:1,theme:u}),u,c),f=this.getAnimateCfg(h),v=f.animate,d=f.animateOption;return h.animate=v,h.animateOption=d,h},e.prototype.getCircleGridCfg=function(t,i,n,a){if(ad(to(this.view.getTheme(),n),i)){var o=nd(this.view.getTheme(),G.RADIUS),s=H({container:A(i,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,A(i,"grid"),this.getAnimateCfg(i)),l=A(s,"alignTick",!0),u=a==="x"?this.view.getYScales()[0]:this.view.getXScale();return s.items=Bl(this.view.getCoordinate(),u,t,l,a),s}},e.prototype.getId=function(t,i){var n=this.view.getCoordinate();return"".concat(t,"-").concat(i,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&A(t,"animate"),animateOption:t&&t.animateOption?H({},od,t.animateOption):od}},e}(mn);function Or(r,e,t){return t===G.TOP?[r.minX+r.width/2-e.width/2,r.minY]:t===G.BOTTOM?[r.minX+r.width/2-e.width/2,r.maxY-e.height]:t===G.LEFT?[r.minX,r.minY+r.height/2-e.height/2]:t===G.RIGHT?[r.maxX-e.width,r.minY+r.height/2-e.height/2]:t===G.TOP_LEFT||t===G.LEFT_TOP?[r.tl.x,r.tl.y]:t===G.TOP_RIGHT||t===G.RIGHT_TOP?[r.tr.x-e.width,r.tr.y]:t===G.BOTTOM_LEFT||t===G.LEFT_BOTTOM?[r.bl.x,r.bl.y-e.height]:t===G.BOTTOM_RIGHT||t===G.RIGHT_BOTTOM?[r.br.x-e.width,r.br.y-e.height]:[0,0]}function sd(r,e){return en(r)?r===!1?!1:{}:A(r,[e],r)}function vo(r){return A(r,"position",G.BOTTOM)}var H2=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.container=i.view.getLayer(It.FORE).addGroup(),i}return Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,S(this.components,function(i){var n=i.component,a=i.direction,o=El(a),s=n.get("maxWidthRatio"),l=n.get("maxHeightRatio"),u=t.getCategoryLegendSizeCfg(o,s,l),c=n.get("maxWidth"),h=n.get("maxHeight");n.update({maxWidth:Math.min(u.maxWidth,c||0),maxHeight:Math.min(u.maxHeight,h||0)});var f=n.get("padding"),v=n.getLayoutBBox(),d=new ie(v.x,v.y,v.width,v.height).expand(f),p=U(Or(t.view.viewBBox,d,a),2),g=p[0],y=p[1],x=U(Or(t.layoutBBox,d,a),2),w=x[0],b=x[1],C=0,M=0;a.startsWith("top")||a.startsWith("bottom")?(C=g,M=b):(C=w,M=y),n.setLocation({x:C+f[3],y:M+f[0]}),t.layoutBBox=t.layoutBBox.cut(d,a)})},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var i={},n=function(f,v,d){var p=t.getId(d.field),g=t.getComponentById(p);if(g){var y=void 0,x=sd(t.option,d.field);x!==!1&&(A(x,"custom")?y=t.getCategoryCfg(f,v,d,x,!0):d.isLinear?y=t.getContinuousCfg(f,v,d,x):d.isCategory&&(y=t.getCategoryCfg(f,v,d,x))),y&&(le(y,["container"]),g.direction=vo(x),g.component.update(y),i[p]=!0)}else{var w=t.createFieldLegend(f,v,d);w&&(w.component.init(),t.components.push(w),i[p]=!0)}};if(A(this.option,"custom")){var a="global-custom",o=this.getComponentById(a);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);le(s,["container"]),o.component.update(s),i[a]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var u=It.FORE,c=vo(this.option);this.components.push({id:a,component:l,layer:u,direction:c,type:Gt.LEGEND,extra:void 0}),i[a]=!0}}}else this.loopLegends(n);var h=[];S(this.getComponents(),function(f){i[f.id]?h.push(f):f.component.destroy()}),this.components=h},e.prototype.clear=function(){r.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var i=this,n=t.geometries;return S(t.views,function(a){n=n.concat(i.getGeometries(a))}),n},e.prototype.loopLegends=function(t){var i=this.view.getRootView()===this.view;if(i){var n=this.getGeometries(this.view),a={};S(n,function(o){var s=o.getGroupAttributes();S(s,function(l){var u=l.getScale(l.type);!u||u.type==="identity"||a[u.field]||(t(o,l,u),a[u.field]=!0)})})}},e.prototype.createFieldLegend=function(t,i,n){var a,o=sd(this.option,n.field),s=It.FORE,l=vo(o);if(o!==!1&&(A(o,"custom")?a=this.createCustomLegend(t,i,n,o):n.isLinear?a=this.createContinuousLegend(t,i,n,o):n.isCategory&&(a=this.createCategoryLegend(t,i,n,o))),a)return a.set("field",n.field),{id:this.getId(n.field),component:a,layer:s,direction:l,type:Gt.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,i,n,a){var o=this.getCategoryCfg(t,i,n,a,!0);return new hv(o)},e.prototype.createContinuousLegend=function(t,i,n,a){var o=this.getContinuousCfg(t,i,n,le(a,["value"]));return new aA(o)},e.prototype.createCategoryLegend=function(t,i,n,a){var o=this.getCategoryCfg(t,i,n,a);return new hv(o)},e.prototype.getContinuousCfg=function(t,i,n,a){var o=n.getTicks(),s=ze(o,function(p){return p.value===0}),l=ze(o,function(p){return p.value===1}),u=o.map(function(p){var g=p.value,y=p.tickValue,x=i.mapping(n.invert(g)).join("");return{value:y,attrValue:x,color:x,scaleValue:g}});s||u.push({value:n.min,attrValue:i.mapping(n.invert(0)).join(""),color:i.mapping(n.invert(0)).join(""),scaleValue:0}),l||u.push({value:n.max,attrValue:i.mapping(n.invert(1)).join(""),color:i.mapping(n.invert(1)).join(""),scaleValue:1}),u.sort(function(p,g){return p.value-g.value});var c={min:me(u).value,max:Nt(u).value,colors:[],rail:{type:i.type},track:{}};i.type==="size"&&(c.track={style:{fill:i.type==="size"?this.view.getTheme().defaultColor:void 0}}),i.type==="color"&&(c.colors=u.map(function(p){return p.attrValue}));var h=this.container,f=vo(a),v=El(f),d=A(a,"title");return d&&(d=H({text:fa(n)},d)),c.container=h,c.layout=v,c.title=d,c.animateOption=sn,this.mergeLegendCfg(c,a,"continuous")},e.prototype.getCategoryCfg=function(t,i,n,a,o){var s=this.container,l=A(a,"position",G.BOTTOM),u=kv(this.view.getTheme(),l),c=A(u,["marker"]),h=A(a,"marker"),f=El(l),v=A(u,["pageNavigator"]),d=A(a,"pageNavigator"),p=o?kF(c,h,a.items):$y(this.view,t,i,c,h),g=A(a,"title");g&&(g=H({text:n?fa(n):""},g));var y=A(a,"maxWidthRatio"),x=A(a,"maxHeightRatio"),w=this.getCategoryLegendSizeCfg(f,y,x);w.container=s,w.layout=f,w.items=p,w.title=g,w.animateOption=sn,w.pageNavigator=H({},v,d);var b=this.mergeLegendCfg(w,a,l);b.reversed&&b.items.reverse();var C=A(b,"maxItemWidth");return C&&C<=1&&(b.maxItemWidth=this.view.viewBBox.width*C),b},e.prototype.mergeLegendCfg=function(t,i,n){var a=n.split("-")[0],o=kv(this.view.getTheme(),a);return H({},o,t,i)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return ze(this.components,function(i){return i.id===t})},e.prototype.getCategoryLegendSizeCfg=function(t,i,n){i===void 0&&(i=Hh),n===void 0&&(n=Hh);var a=this.view.viewBBox,o=a.width,s=a.height;return t==="vertical"?{maxWidth:o*i,maxHeight:s}:{maxWidth:o,maxHeight:s*n}},e}(mn),X2=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.onChangeFn=Pr,i.resetMeasure=function(){i.clear()},i.onValueChange=function(n){var a=U(n,2),o=a[0],s=a[1];i.start=o,i.end=s,i.changeViewData(o,s)},i.container=i.view.getLayer(It.FORE).addGroup(),i.onChangeFn=nc(i.onValueChange,20,{leading:!0}),i.width=0,i.view.on(ot.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(ot.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){r.prototype.destroy.call(this),this.view.off(ot.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(ot.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),i=t.start,n=t.end;B(this.start)&&(this.start=i,this.end=n);var a=this.view.getOptions().data;this.option&&!fe(a)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.start,t.end)},0)),this.slider){var i=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),a=U(n,4),o=a[0];a[1],a[2];var s=a[3],l=this.slider.component.getLayoutBBox(),u=new ie(l.x,l.y,Math.min(l.width,i),l.height).expand(n),c=this.getMinMaxText(this.start,this.end),h=c.minText,f=c.maxText,v=U(Or(this.view.viewBBox,u,G.BOTTOM),2);v[0];var d=v[1],p=U(Or(this.view.coordinateBBox,u,G.BOTTOM),2),g=p[0];p[1],this.slider.component.update(m(m({},this.getSliderCfg()),{x:g+s,y:d+o,width:this.width,start:this.start,end:this.end,minText:h,maxText:f})),this.view.viewBBox=this.view.viewBBox.cut(u,G.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),i=new KM(m({container:this.container},t));return i.init(),{component:i,layer:It.FORE,direction:G.BOTTOM,type:Gt.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var i=this.getMinMaxText(this.start,this.end),n=i.minText,a=i.maxText;t=m(m({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:a})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(mt(this.option)){var i=m({data:this.getData()},A(this.option,"trendCfg",{}));t=H({},t,this.getThemeOptions(),this.option),t=m(m({},t),{trendCfg:i})}return t.start=St(Math.min(B(t.start)?0:t.start,B(t.end)?1:t.end),0,1),t.end=St(Math.max(B(t.start)?0:t.start,B(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,i=U(this.view.getYScales(),1),n=i[0],a=this.view.getGroupScales();if(a.length){var o=a[0],s=o.field,l=o.ticks;return t.reduce(function(u,c){return c[s]===l[0]&&u.push(c[n.field]),u},[])}return t.map(function(u){return u[n.field]||0})},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return A(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,i){var n=this.view.getOptions().data,a=this.view.getXScale(),o=Ve(n,a.field);a.isLinear&&(o=o.sort());var s=o,l=Vt(n);if(!a||!l)return{};var u=Vt(s),c=Math.round(t*(u-1)),h=Math.round(i*(u-1)),f=A(s,[c]),v=A(s,[h]),d=this.getSliderCfg().formatter;return d&&(f=d(f,n[c],c),v=d(v,n[h],h)),{minText:f,maxText:v}},e.prototype.changeViewData=function(t,i){var n=this.view.getOptions().data,a=this.view.getXScale(),o=Vt(n);if(!(!a||!o)){var s=Ve(n,a.field),l=this.view.getXScale().isLinear?s.sort(function(v,d){return Number(v)-Number(d)}):s,u=l,c=Vt(u),h=Math.round(t*(c-1)),f=Math.round(i*(c-1));this.view.filter(a.field,function(v,d){var p=u.indexOf(v);return p>-1?_i(p,h,f):!0}),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(mn),po=0,ld=8,W2=32,_2=20,q2=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.onChangeFn=Pr,i.resetMeasure=function(){i.clear()},i.onValueChange=function(n){var a=n.ratio,o=i.getValidScrollbarCfg().animate;i.ratio=St(a,0,1);var s=i.view.getOptions().animate;o||i.view.animate(!1),i.changeViewData(i.getScrollRange(),!0),i.view.animate(s)},i.container=i.view.getLayer(It.FORE).addGroup(),i.onChangeFn=nc(i.onValueChange,20,{leading:!0}),i.trackLen=0,i.thumbLen=0,i.ratio=0,i.view.on(ot.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(ot.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){r.prototype.destroy.call(this),this.view.off(ot.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(ot.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var i=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),a=this.scrollbar.component.getLayoutBBox(),o=new ie(a.x,a.y,Math.min(a.width,i),a.height).expand(n),s=this.getScrollbarComponentCfg(),l=void 0,u=void 0;if(s.isHorizontal){var c=U(Or(this.view.viewBBox,o,G.BOTTOM),2);c[0];var h=c[1],f=U(Or(this.view.coordinateBBox,o,G.BOTTOM),2),v=f[0];f[1],l=v,u=h}else{var d=U(Or(this.view.viewBBox,o,G.RIGHT),2);d[0];var h=d[1],p=U(Or(this.view.viewBBox,o,G.RIGHT),2),v=p[0];p[1],l=v,u=h}l+=n[3],u+=n[0],this.trackLen?this.scrollbar.component.update(m(m({},s),{x:l,y:u,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(m(m({},s),{x:l,y:u})),this.view.viewBBox=this.view.viewBBox.cut(o,s.isHorizontal?G.BOTTOM:G.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return A(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var i=A(this.view.getTheme(),["components","scrollbar"]),n=t||{},a=n.thumbHighlightColor,o=gt(n,["thumbHighlightColor"]);return{default:H({},A(i,["default","style"],{}),o),hover:H({},A(i,["hover","style"],{}),{thumbColor:a})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),i=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),a=n.trackLen,o=n.thumbLen;this.trackLen=a,this.thumbLen=o,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=i},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*St(this.ratio,0,1)),i=Math.min(t+this.step-1,this.cnt-1);return[t,i]},e.prototype.changeViewData=function(t,i){var n=this,a=U(t,2),o=a[0],s=a[1],l=this.getValidScrollbarCfg().type,u=l!=="vertical",c=Ve(this.data,this.xScaleCfg.field),h=this.view.getXScale().isLinear?c.sort(function(v,d){return Number(v)-Number(d)}):c,f=u?h:h.reverse();this.yScalesCfg.forEach(function(v){n.view.scale(v.field,{formatter:v.formatter,type:v.type,min:v.min,max:v.max,tickMethod:v.tickMethod})}),this.view.filter(this.xScaleCfg.field,function(v){var d=f.indexOf(v);return d>-1?_i(d,o,s):!0}),this.view.render(!0)},e.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,i=t!=="vertical",n=new tA(m(m({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:It.FORE,direction:i?G.BOTTOM:G.RIGHT,type:Gt.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),i=this.trackLen?m(m({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):m({},t);return this.scrollbar.component.update(i),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,i=this.getValidScrollbarCfg(),n=i.type,a=i.categorySize,o=n!=="vertical";return Math.floor((o?t.width:t.height)/a)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),i=this.getScrollbarData(),n=Ve(i,t.field);return Vt(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,i=t.coordinateBBox,n=t.viewBBox,a=this.getValidScrollbarCfg(),o=a.type,s=a.padding,l=a.width,u=a.height,c=a.style,h=o!=="vertical",f=U(s,4),v=f[0],d=f[1],p=f[2],g=f[3],y=h?{x:i.minX+g,y:n.maxY-u-p}:{x:n.maxX-l-d,y:i.minY+v},x=this.getStep(),w=this.getCnt(),b=h?i.width-g-d:i.height-v-p,C=Math.max(b*St(x/w,0,1),_2);return m(m({},this.getThemeOptions()),{x:y.x,y:y.y,size:h?u:l,isHorizontal:h,trackLen:b,thumbLen:C,thumbOffset:0,theme:this.getScrollbarTheme(c)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:W2,width:ld,height:ld,padding:[0,0,0,0],animate:!0,style:{}};return mt(this.option)&&(t=m(m({},t),this.option)),(!mt(this.option)||!this.option.padding)&&(t.padding=t.type==="horizontal"?[po,0,po,0]:[0,po,0,po]),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),i=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&i.type==="vertical"&&(n=Z([],U(n),!1).reverse()),n},e}(mn),U2={fill:"#CCD6EC",opacity:.3};function j2(r,e,t){var i,n,a,o,s,l,u=rF(r,e,t);if(u.length){u=we(u);try{for(var c=ht(u),h=c.next();!h.done;h=c.next()){var f=h.value;try{for(var v=(a=void 0,ht(f)),d=v.next();!d.done;d=v.next()){var p=d.value,g=p.mappingData,y=g.x,x=g.y;p.x=R(y)?y[y.length-1]:y,p.y=R(x)?x[x.length-1]:x}}catch(k){a={error:k}}finally{try{d&&!d.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}}}catch(k){i={error:k}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}var w=t.shared;if(w===!1&&u.length>1){var b=u[0],C=Math.abs(e.y-b[0].y);try{for(var M=ht(u),F=M.next();!F.done;F=M.next()){var T=F.value,L=Math.abs(e.y-T[0].y);L<=C&&(b=T,C=L)}}catch(k){s={error:k}}finally{try{F&&!F.done&&(l=M.return)&&l.call(M)}finally{if(s)throw s.error}}u=[b]}return bi(we(u))}return[]}var Z2=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.show=function(t){var i=this.context.view,n=this.context.event,a=i.getController("tooltip").getTooltipCfg(),o=j2(i,{x:n.x,y:n.y},a);if(!Pt(o,this.items)&&(this.items=o,o.length)){var s=i.getXScale().field,l=o[0].data[s],u=[],c=i.geometries;if(S(c,function(X){if(X.type==="interval"||X.type==="schema"){var $=X.getElementsBy(function(V){var W=V.getData();return W[s]===l});u=u.concat($)}}),u.length){var h=i.getCoordinate(),f=u[0].shape.getCanvasBBox(),v=u[0].shape.getCanvasBBox(),d=f;S(u,function(X){var $=X.shape.getCanvasBBox();h.isTransposed?($.minYv.maxY&&(v=$)):($.minXv.maxX&&(v=$)),d.x=Math.min($.minX,d.minX),d.y=Math.min($.minY,d.minY),d.width=Math.max($.maxX,d.maxX)-d.x,d.height=Math.max($.maxY,d.maxY)-d.y});var p=i.backgroundGroup,g=i.coordinateBBox,y=void 0;if(h.isRect){var x=i.getXScale(),w=t||{},b=w.appendRatio,C=w.appendWidth;B(C)&&(b=B(b)?x.isLinear?0:.25:b,C=h.isTransposed?b*v.height:b*f.width);var M=void 0,F=void 0,T=void 0,L=void 0;h.isTransposed?(M=g.minX,F=Math.min(v.minY,f.minY)-C,T=g.width,L=d.height+C*2):(M=Math.min(f.minX,v.minX)-C,F=g.minY,T=d.width+C*2,L=g.height),y=[["M",M,F],["L",M+T,F],["L",M+T,F+L],["L",M,F+L],["Z"]]}else{var k=me(u),I=Nt(u),O=ha(k.getModel(),h).startAngle,N=ha(I.getModel(),h).endAngle,Y=h.getCenter(),q=h.getRadius(),D=h.innerRadius*q;y=zr(Y.x,Y.y,q,O,N,D)}if(this.regionPath)this.regionPath.attr("path",y),this.regionPath.show();else{var z=A(t,"style",U2);this.regionPath=p.addShape({type:"path",name:"active-region",capture:!1,attrs:m(m({},z),{path:y})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),r.prototype.destroy.call(this)},e}(Ct),Cm=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.timeStamp=0,t}return e.prototype.show=function(){var t=this.context,i=t.event,n=t.view,a=n.isTooltipLocked();if(!a){var o=this.timeStamp,s=+new Date,l=A(t.view.getOptions(),"tooltip.showDelay",16);if(s-o>l){var u=this.location,c={x:i.x,y:i.y};(!u||!Pt(u,c))&&this.showTooltip(n,c),this.timeStamp=s,this.location=c}}},e.prototype.hide=function(){var t=this.context.view,i=t.getController("tooltip"),n=this.context.event,a=n.clientX,o=n.clientY;i.isCursorEntered({x:a,y:o})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,i){t.showTooltip(i)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(Ct),Q2=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.showTooltip=function(t,i){var n=Ke(t);S(n,function(a){var o=Su(t,a,i);a.showTooltip(o)})},e.prototype.hideTooltip=function(t){var i=Ke(t);S(i,function(n){n.hideTooltip()})},e}(Cm),K2=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.timeStamp=0,t}return e.prototype.destroy=function(){r.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context,i=t.event,n=this.timeStamp,a=+new Date;if(a-n>16){var o=this.location,s={x:i.x,y:i.y};(!o||!Pt(o,s))&&this.showTooltip(s),this.timeStamp=a,this.location=s}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var i=this.context,n=i.event,a=n.target;if(a&&a.get("tip")){if(!this.tooltip)this.renderTooltip();else{var o=i.view,s=o.canvas,l={start:{x:0,y:0},end:{x:s.get("width"),y:s.get("height")}};this.tooltip.set("region",l)}var u=a.get("tip");this.tooltip.update(m({title:u},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,i=this.context.view,n=i.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},o=i.getTheme(),s=A(o,["components","tooltip","domStyles"],{}),l=new Rs({parent:n.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:m({},H({},s,(t={},t[mr]={"max-width":"50%"},t[xr]={"word-break":"break-all"},t)))});l.init(),l.setCapture(!1),this.tooltip=l},e}(Ct),th=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="",t}return e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,i){t.setState(this.stateName,i)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var i=this,n=wy(t,this.stateName);S(n,function(a){i.setElementState(a,!1)})},e}(Ct);function ud(r){return A(r.get("delegateObject"),"item")}var eh=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return e.prototype.isItemIgnore=function(t,i){var n=this.ignoreListItemStates,a=n.filter(function(o){return i.hasState(t,o)});return!!a.length},e.prototype.setStateByComponent=function(t,i,n){var a=this.context.view,o=t.get("field"),s=_t(a);this.setElementsStateByItem(s,o,i,n)},e.prototype.setStateByElement=function(t,i){this.setElementState(t,i)},e.prototype.isMathItem=function(t,i,n){var a=this.context.view,o=on(a,i),s=Ye(t,i);return!B(s)&&n.name===o.getText(s)},e.prototype.setElementsStateByItem=function(t,i,n,a){var o=this;S(t,function(s){o.isMathItem(s,i,n)&&s.setState(o.stateName,a)})},e.prototype.setStateEnable=function(t){var i=Hr(this.context);if(i)gy(this.context)&&this.setStateByElement(i,t);else{var n=Mi(this.context);if(va(n)){var a=n.item,o=n.component;if(a&&o&&!this.isItemIgnore(a,o)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&ud(s.fromShape)===ud(s.toShape))return;this.setStateByComponent(o,a,t)}}}},e.prototype.toggle=function(){var t=Hr(this.context);if(t){var i=t.hasState(this.stateName);this.setElementState(t,!i)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(th),J2=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="active",t}return e.prototype.active=function(){this.setState()},e}(eh),tk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.cache={},t}return e.prototype.getColorScale=function(t,i){var n=i.geometry.getAttribute("color");if(!n)return null;var a=t.getScaleByField(n.getFields()[0]);return a},e.prototype.getLinkPath=function(t,i){var n=this.context.view,a=n.getCoordinate().isTransposed,o=t.shape.getCanvasBBox(),s=i.shape.getCanvasBBox(),l=a?[["M",o.minX,o.minY],["L",s.minX,s.maxY],["L",s.maxX,s.maxY],["L",o.maxX,o.minY],["Z"]]:[["M",o.maxX,o.minY],["L",s.minX,s.minY],["L",s.minX,s.maxY],["L",o.maxX,o.maxY],["Z"]];return l},e.prototype.addLinkShape=function(t,i,n,a){var o={opacity:.4,fill:i.shape.attr("fill")};t.addShape({type:"path",attrs:m(m({},H({},o,_(a)?a(o,i):a)),{path:this.getLinkPath(i,n)})})},e.prototype.linkByElement=function(t,i){var n=this,a=this.context.view,o=this.getColorScale(a,t);if(o){var s=Ye(t,o.field);if(!this.cache[s]){var l=OA(a,o.field,s),u=this.linkGroup,c=u.addGroup();this.cache[s]=c;var h=l.length;S(l,function(f,v){if(v=0},i)},e}(rh),ak=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="active",t}return e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,i){var n=this.context.view,a=_t(n);Sm(a,function(o){return t===o},i)},e.prototype.clear=function(){var t=this.context.view;nh(t)},e}(ih),ok=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="selected",t}return e.prototype.selected=function(){this.setState()},e}(rh),sk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="selected",t}return e.prototype.selected=function(){this.setState()},e}(eh),lk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="selected",t}return e.prototype.selected=function(){this.setState()},e}(ih),Ii=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return e.prototype.getTriggerListInfo=function(){var t=Mi(this.context),i=null;return va(t)&&(i={item:t.item,list:t.component}),i},e.prototype.getAllowComponents=function(){var t=this,i=this.context.view,n=Cy(i),a=[];return S(n,function(o){o.isList()&&t.allowSetStateByElement(o)&&a.push(o)}),a},e.prototype.hasState=function(t,i){return t.hasState(i,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,i=this.getAllowComponents();S(i,function(n){n.clearItemsState(t.stateName)})},e.prototype.allowSetStateByElement=function(t){var i=t.get("field");if(!i)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(this.cfg.componentNames.indexOf(n)===-1)return!1}var a=this.context.view,o=on(a,i);return o&&o.isCategory},e.prototype.allowSetStateByItem=function(t,i){var n=this.ignoreItemStates;if(n.length){var a=n.filter(function(o){return i.hasState(t,o)});return a.length===0}return!0},e.prototype.setStateByElement=function(t,i,n){var a=t.get("field"),o=this.context.view,s=on(o,a),l=Ye(i,a),u=s.getText(l);this.setItemsState(t,u,n)},e.prototype.setStateEnable=function(t){var i=this,n=Hr(this.context);if(n){var a=this.getAllowComponents();S(a,function(u){i.setStateByElement(u,n,t)})}else{var o=Mi(this.context);if(va(o)){var s=o.item,l=o.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(s,l)&&this.setItemState(l,s,t)}}},e.prototype.setItemsState=function(t,i,n){var a=this,o=t.getItems();S(o,function(s){s.name===i&&a.setItemState(t,s,n)})},e.prototype.setItemState=function(t,i,n){t.setItemState(i,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var i=t.list,n=t.item,a=this.hasState(i,n);this.setItemState(i,n,!a)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(Ct),uk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="active",t}return e.prototype.active=function(){this.setState()},e}(Ii),cd="inactive",hd="active";function ck(r){var e=r.getItems();S(e,function(t){r.hasState(t,hd)&&r.setItemState(t,hd,!1),r.hasState(t,cd)&&r.setItemState(t,cd,!1)})}var In="inactive",ei="active",oh=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName=ei,t.ignoreItemStates=["unchecked"],t}return e.prototype.setItemsState=function(t,i,n){this.setHighlightBy(t,function(a){return a.name===i},n)},e.prototype.setItemState=function(t,i,n){t.getItems(),this.setHighlightBy(t,function(a){return a===i},n)},e.prototype.setHighlightBy=function(t,i,n){var a=t.getItems();if(n)S(a,function(l){i(l)?(t.hasState(l,In)&&t.setItemState(l,In,!1),t.setItemState(l,ei,!0)):t.hasState(l,ei)||t.setItemState(l,In,!0)});else{var o=t.getItemsByState(ei),s=!0;S(o,function(l){if(!i(l))return s=!1,!1}),s?this.clear():S(a,function(l){i(l)&&(t.hasState(l,ei)&&t.setItemState(l,ei,!1),t.setItemState(l,In,!0))})}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)ck(t.list);else{var i=this.getAllowComponents();S(i,function(n){n.clearItemsState(ei),n.clearItemsState(In)})}},e}(Ii),hk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="selected",t}return e.prototype.selected=function(){this.setState()},e}(Ii),fk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName="unchecked",t}return e.prototype.unchecked=function(){this.setState()},e}(Ii),Ni="unchecked",go="checked",vk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.stateName=go,t}return e.prototype.setItemState=function(t,i,n){this.setCheckedBy(t,function(a){return a===i},n)},e.prototype.setCheckedBy=function(t,i,n){var a=t.getItems();n&&S(a,function(o){i(o)?(t.hasState(o,Ni)&&t.setItemState(o,Ni,!1),t.setItemState(o,go,!0)):t.hasState(o,go)||t.setItemState(o,Ni,!0)})},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var i=t.list,n=t.item,a=!cs(i.getItems(),function(o){return i.hasState(o,Ni)});a||i.hasState(n,Ni)?this.setItemState(i,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();S(t,function(i){i.clearItemsState(go),i.clearItemsState(Ni)})},e}(Ii),zi="unchecked",dk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.toggle=function(){var t,i,n,a,o,s,l,u,c=this.getTriggerListInfo();if(c!=null&&c.item){var h=c.list,f=c.item,v=h.getItems(),d=v.filter(function(k){return!h.hasState(k,zi)}),p=v.filter(function(k){return h.hasState(k,zi)}),g=d[0];if(v.length===d.length)try{for(var y=ht(v),x=y.next();!x.done;x=y.next()){var w=x.value;h.setItemState(w,zi,w.id!==f.id)}}catch(k){t={error:k}}finally{try{x&&!x.done&&(i=y.return)&&i.call(y)}finally{if(t)throw t.error}}else if(v.length-p.length===1)if(g.id===f.id)try{for(var b=ht(v),C=b.next();!C.done;C=b.next()){var w=C.value;h.setItemState(w,zi,!1)}}catch(k){n={error:k}}finally{try{C&&!C.done&&(a=b.return)&&a.call(b)}finally{if(n)throw n.error}}else try{for(var M=ht(v),F=M.next();!F.done;F=M.next()){var w=F.value;h.setItemState(w,zi,w.id!==f.id)}}catch(k){o={error:k}}finally{try{F&&!F.done&&(s=M.return)&&s.call(M)}finally{if(o)throw o.error}}else try{for(var T=ht(v),L=T.next();!L.done;L=T.next()){var w=L.value;h.setItemState(w,zi,w.id!==f.id)}}catch(k){l={error:k}}finally{try{L&&!L.done&&(u=T.return)&&u.call(T)}finally{if(l)throw l.error}}}},e}(Ii),fd="showRadio",Rl="legend-radio-tip",pk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.timeStamp=0,t}return e.prototype.show=function(){var t=this.getTriggerListInfo();if(t!=null&&t.item){var i=t.list,n=t.item;i.setItemState(n,fd,!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(t!=null&&t.item){var i=t.list,n=t.item;i.setItemState(n,fd,!1)}},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context,i=t.event,n=this.timeStamp,a=+new Date,o=this.context.event.target;if(a-n>16&&o.get("name")==="legend-item-radio"){var s=this.location,l={x:i.x,y:i.y};this.timeStamp=a,this.location=l,(!s||!Pt(s,l))&&this.showTooltip(l)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var i=this.context,n=i.event,a=n.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=i.view.getCanvas().get("el").getBoundingClientRect(),s=o.x,l=o.y;this.tooltip.update(m(m({title:a.get("tip")},t),{x:t.x+s,y:t.y+l})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,i=(t={},t[mr]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[xr]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(Rl)&&document.body.removeChild(document.getElementById(Rl));var n=new Rs({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:i,containerId:Rl});n.init(),n.setCapture(!1),this.tooltip=n},e}(Ii),sh=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var i="mask:".concat(t),n=this.context.view,a=this.context.event;n.emit(i,{target:this.maskShape,shape:this.maskShape,points:this.points,x:a.x,y:a.y})},e.prototype.createMask=function(){var t=this.context.view,i=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:m({fill:"#C5D4EB",opacity:.3},i)});return n},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(!(!this.moving||!this.maskShape)){var t=this.getCurrentPoint(),i=this.preMovePoint,n=t.x-i.x,a=t.y-i.y,o=this.points;S(o,function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var i=H({},this.getMaskAttrs(),t);this.maskShape.attr(i)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,r.prototype.destroy.call(this)},e}(Ct);function Am(r){var e=Nt(r),t=0,i=0,n=0;if(r.length){var a=r[0];t=Pc(a,e)/2,i=(e.x+a.x)/2,n=(e.y+a.y)/2}return{x:i,y:n,r:t}}var gk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.shapeType="circle",t}return e.prototype.getMaskAttrs=function(){return Am(this.points)},e}(sh);function Fm(r){return{start:me(r),end:Nt(r)}}function Tm(r,e){var t=Math.min(r.x,e.x),i=Math.min(r.y,e.y),n=Math.abs(e.x-r.x),a=Math.abs(e.y-r.y);return{x:t,y:i,width:n,height:a}}var Em=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.shapeType="rect",t}return e.prototype.getRegion=function(){return Fm(this.points)},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),i=t.start,n=t.end;return Tm(i,n)},e}(sh);function vd(r){r.x=St(r.x,0,1),r.y=St(r.y,0,1)}function km(r,e,t,i){var n=null,a=null,o=i.invert(me(r)),s=i.invert(Nt(r));return t&&(vd(o),vd(s)),e==="x"?(n=i.convert({x:o.x,y:0}),a=i.convert({x:s.x,y:1})):(n=i.convert({x:0,y:o.y}),a=i.convert({x:1,y:s.y})),{start:n,end:a}}var Lm=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return e.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return km(this.points,this.dim,this.inPlot,t)},e}(Em);function lh(r){var e=[];return r.length&&(S(r,function(t,i){i===0?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])}),e.push(["L",r[0].x,r[0].y])),e}function Im(r){return{path:lh(r)}}var Pm=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getMaskPath=function(){return lh(this.points)},e.prototype.getMaskAttrs=function(){return Im(this.points)},e.prototype.addPoint=function(){this.resize()},e}(sh);function uh(r){return RA(r,!0)}function Dm(r){return{path:uh(r)}}var yk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getMaskPath=function(){return uh(this.points)},e.prototype.getMaskAttrs=function(){return Dm(this.points)},e}(Pm),ch=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.maskShapes=[],t.starting=!1,t.moving=!1,t.recordPoints=null,t.preMovePoint=null,t.shapeType="path",t.maskType="multi-mask",t}return e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var i="".concat(this.maskType,":").concat(t),n=this.context.view,a=this.context.event,o={type:this.shapeType,name:this.maskType,get:function(s){return o.hasOwnProperty(s)?o[s]:void 0}};n.emit(i,{target:o,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:a.x,y:a.y})},e.prototype.createMask=function(t){var i=this.context.view,n=this.recordPoints[t],a=this.getMaskAttrs(n),o=i.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:m({fill:"#C5D4EB",opacity:.3},a)});this.maskShapes.push(o)},e.prototype.getMaskPath=function(t){return[]},e.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.show()}),this.emitEvent("show"))},e.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var i=this.recordPoints.length-1;this.createMask(i),this.updateShapesCapture(!1),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},e.prototype.move=function(){if(!(!this.moving||this.maskShapes.length===0)){var t=this.getCurrentPoint(),i=this.preMovePoint,n=t.x-i.x,a=t.y-i.y,o=this.getCurMaskShapeIndex();o>-1&&(this.recordPoints[o].forEach(function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},e.prototype.updateMask=function(t){var i=this;this.recordPoints.forEach(function(n,a){var o=H({},i.getMaskAttrs(n),t);i.maskShapes[a].attr(o)})},e.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},e.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.hide()}),this.emitEvent("hide"))},e.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},e.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach(function(t){return t.remove()}),this.maskShapes=[],this.preMovePoint=null},e.prototype.clear=function(){var t=this.getCurMaskShapeIndex();t===-1?(this.recordPointClear(),this.maskShapes.forEach(function(i){return i.remove()}),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},e.prototype.destroy=function(){this.clear(),r.prototype.destroy.call(this)},e.prototype.getRecordPoints=function(){var t;return Z([],U((t=this.recordPoints)!==null&&t!==void 0?t:[]),!1)},e.prototype.recordPointStart=function(){var t=this.getRecordPoints(),i=this.getCurrentPoint();this.recordPoints=Z(Z([],U(t),!1),[[i]],!1)},e.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),i=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(i),this.recordPoints=Z(Z([],U(t),!1),[n],!1)},e.prototype.recordPointClear=function(){this.recordPoints=[]},e.prototype.updateShapesCapture=function(t){this.maskShapes.forEach(function(i){return i.set("capture",t)})},e.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex(function(i){var n=i.attrs,a=n.width,o=n.height,s=n.r,l=a===0||o===0||s===0;return!l&&i.isHit(t.x,t.y)})},e}(Ct),Om=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.shapeType="rect",t}return e.prototype.getRegion=function(t){return Fm(t)},e.prototype.getMaskAttrs=function(t){var i=this.getRegion(t),n=i.start,a=i.end;return Tm(n,a)},e}(ch),Bm=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return e.prototype.getRegion=function(t){var i=this.context.view.getCoordinate();return km(t,this.dim,this.inPlot,i)},e}(Om),mk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.shapeType="circle",t.getMaskAttrs=Am,t}return e}(ch),Rm=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.getMaskPath=lh,t.getMaskAttrs=Im,t}return e.prototype.addPoint=function(){this.resize()},e}(ch),xk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.getMaskPath=uh,t.getMaskAttrs=Dm,t}return e}(Rm),wk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.setCursor=function(t){var i=this.context.view;i.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e.prototype.zoomIn=function(){this.setCursor("zoom-in")},e.prototype.zoomOut=function(){this.setCursor("zoom-out")},e}(Ct),bk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.filterView=function(t,i,n){var a=this;t.getScaleByField(i)&&t.filter(i,n),t.views&&t.views.length&&S(t.views,function(o){a.filterView(o,i,n)})},e.prototype.filter=function(){var t=Mi(this.context);if(t){var i=this.context.view,n=t.component,a=n.get("field");if(va(t)){if(a){var o=n.getItemsByState("unchecked"),s=on(i,a),l=o.map(function(v){return v.name});l.length?this.filterView(i,a,function(v){var d=s.getText(v);return!l.includes(d)}):this.filterView(i,a,null),i.render(!0)}}else if(yy(t)){var u=n.getValue(),c=U(u,2),h=c[0],f=c[1];this.filterView(i,a,function(v){return v>=h&&v<=f}),i.render(!0)}}},e}(Ct);function dd(r,e,t,i){var n=Math.min(t[e],i[e]),a=Math.max(t[e],i[e]),o=U(r.range,2),s=o[0],l=o[1];if(nl&&(a=l),n===l&&a===l)return null;var u=r.invert(n),c=r.invert(a);if(r.isCategory){var h=r.values.indexOf(u),f=r.values.indexOf(c),v=r.values.slice(h,f+1);return function(d){return v.includes(d)}}else return function(d){return d>=u&&d<=c}}var oe;(function(r){r.FILTER="brush-filter-processing",r.RESET="brush-filter-reset",r.BEFORE_FILTER="brush-filter:beforefilter",r.AFTER_FILTER="brush-filter:afterfilter",r.BEFORE_RESET="brush-filter:beforereset",r.AFTER_RESET="brush-filter:afterreset"})(oe||(oe={}));var Ws=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,i;if(da(this.context)){var n=this.context.event.target,a=n.getCanvasBBox();t={x:a.x,y:a.y},i={x:a.maxX,y:a.maxY}}else{if(!this.isStarted)return;t=this.startPoint,i=this.context.getCurrentPoint()}if(!(Math.abs(t.x-i.x)<5||Math.abs(t.x-i.y)<5)){var o=this.context,s=o.view,l=o.event,u={view:s,event:l,dims:this.dims};s.emit(oe.BEFORE_FILTER,Tt.fromData(s,oe.BEFORE_FILTER,u));var c=s.getCoordinate(),h=c.invert(i),f=c.invert(t);if(this.hasDim("x")){var v=s.getXScale(),d=dd(v,"x",h,f);this.filterView(s,v.field,d)}if(this.hasDim("y")){var p=s.getYScales()[0],d=dd(p,"y",h,f);this.filterView(s,p.field,d)}this.reRender(s,{source:oe.FILTER}),s.emit(oe.AFTER_FILTER,Tt.fromData(s,oe.AFTER_FILTER,u))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(oe.BEFORE_RESET,Tt.fromData(t,oe.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var i=t.getXScale();this.filterView(t,i.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:oe.RESET}),t.emit(oe.AFTER_RESET,Tt.fromData(t,oe.AFTER_RESET,{}))},e.prototype.filterView=function(t,i,n){t.filter(i,n)},e.prototype.reRender=function(t,i){t.render(!0,i)},e}(Ct),hh=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.filterView=function(t,i,n){var a=Ke(t);S(a,function(o){o.filter(i,n)})},e.prototype.reRender=function(t){var i=Ke(t);S(i,function(n){n.render(!0)})},e}(Ws),Ck=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.filter=function(){var t=Mi(this.context),i=this.context.view,n=_t(i);if(da(this.context)){var a=Ic(this.context,10);a&&S(n,function(p){a.includes(p)?p.show():p.hide()})}else if(t){var o=t.component,s=o.get("field");if(va(t)){if(s){var l=o.getItemsByState("unchecked"),u=on(i,s),c=l.map(function(p){return p.name});S(n,function(p){var g=Ye(p,s),y=u.getText(g);c.indexOf(y)>=0?p.hide():p.show()})}}else if(yy(t)){var h=o.getValue(),f=U(h,2),v=f[0],d=f[1];S(n,function(p){var g=Ye(p,s);g>=v&&g<=d?p.show():p.hide()})}}},e.prototype.clear=function(){var t=_t(this.context.view);S(t,function(i){i.show()})},e.prototype.reset=function(){this.clear()},e}(Ct),Nm=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.byRecord=!1,t}return e.prototype.filter=function(){da(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,i=Ic(this.context,10);if(i){var n=t.getXScale().field,a=t.getYScales()[0].field,o=i.map(function(l){return l.getModel().data}),s=Ke(t);S(s,function(l){var u=_t(l);S(u,function(c){var h=c.getModel().data;Sy(o,h,n,a)?c.show():c.hide()})})}},e.prototype.filterByBBox=function(){var t=this,i=this.context.view,n=Ke(i);S(n,function(a){var o=my(t.context,a,10),s=_t(a);o&&S(s,function(l){o.includes(l)?l.show():l.hide()})})},e.prototype.reset=function(){var t=Ke(this.context.view);S(t,function(i){var n=_t(i);S(n,function(a){a.show()})})},e}(Ct),Sk=10,Mk=5,Ak=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return e.prototype.getButtonCfg=function(){return H(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),i=this.context.view.foregroundGroup.addGroup({name:t.name}),n=i.addShape({type:"text",name:"button-text",attrs:m({text:t.text},t.textStyle)}),a=n.getBBox(),o=Oc(t.padding),s=i.addShape({type:"rect",name:"button-rect",attrs:m({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2]},t.style)});s.toBack(),i.on("mouseenter",function(){s.attr(t.activeStyle)}),i.on("mouseleave",function(){s.attr(t.style)}),this.buttonGroup=i},e.prototype.resetPosition=function(){var t=this.context.view,i=t.getCoordinate(),n=i.convert({x:1,y:1}),a=this.buttonGroup,o=a.getBBox(),s=Rt(null,[["t",n.x-o.width-Sk,n.y+o.height+Mk]]);a.setMatrix(s)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),r.prototype.destroy.call(this)},e}(Ct),Fk=4,Tk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),i=this.context.view,n=this.context.event;this.dragStart?i.emit("drag",{target:n.target,x:n.x,y:n.y}):Pc(t,this.startPoint)>Fk&&(i.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,i=this.context.event;t.emit("dragend",{target:i.target,x:i.x,y:i.y})}this.starting=!1,this.dragStart=!1},e}(Ct),Ek=5,kk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,i=this.context.getCurrentPoint(),n=Pc(t,i);if(n>Ek&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var a=this.context.view,o=Rt(this.startMatrix,[["t",i.x-t.x,i.y-t.y]]);a.backgroundGroup.setMatrix(o),a.foregroundGroup.setMatrix(o),a.middleGroup.setMatrix(o)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(Ct),pd="x",gd="y",zm=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.dims=[pd,gd],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var i=this.context.view;return t==="x"?i.getXScale():i.getYScales()[0]},e.prototype.resetDim=function(t){var i=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);i.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim(pd),this.resetDim(gd);var t=this.context.view;t.render(!0)},e}(Ct),Lk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var i=this.dims;S(i,function(n){var a=t.getScale(n),o=a.min,s=a.max,l=a.values;t.startCache[n]={min:o,max:s,values:l}})},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var i=this.startPoint,n=this.context.view.getCoordinate(),a=this.context.getCurrentPoint(),o=n.invert(i),s=n.invert(a),l=s.x-o.x,u=s.y-o.y,c=this.context.view,h=this.dims;S(h,function(f){t.translateDim(f,{x:l*-1,y:u*-1})}),c.render(!0)}},e.prototype.translateDim=function(t,i){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,i)}},e.prototype.translateLinear=function(t,i,n){var a=this.context.view,o=this.startCache[t],s=o.min,l=o.max,u=l-s,c=n[t]*u;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:i.nice,min:s,max:l}),a.scale(i.field,{nice:!1,min:s+c,max:l+c})},e.prototype.reset=function(){r.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(zm),Ik=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.zoomRatio=.05,t}return e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var i=this,n=this.dims;S(n,function(a){i.zoomDim(a,t)}),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,i){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,i)}},e.prototype.zoomLinear=function(t,i,n){var a=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:i.nice,min:i.min,max:i.max});var o=this.cacheScaleDefs[t],s=o.max-o.min,l=i.min,u=i.max,c=n*s,h=l-c,f=u+c,v=f-h,d=v/s;f>h&&d<100&&d>.01&&a.scale(i.field,{nice:!1,min:l-c,max:u+c})},e}(zm);function Pk(r){var e=r.gEvent.originalEvent;return e.deltaY>0}var Dk=1,Ok=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.scroll=function(t){var i=this.context,n=i.view,a=i.event;if(n.getOptions().scrollbar){var o=(t==null?void 0:t.wheelDelta)||Dk,s=n.getController("scrollbar"),l=n.getXScale(),u=n.getOptions().data,c=Vt(Ve(u,l.field)),h=Vt(l.values),f=s.getValue(),v=Math.floor((c-h)*f),d=v+(Pk(a)?o:-o),p=o/(c-h)/1e4,g=St(d/(c-h)+p,0,1);s.setValue(g)}},e}(Ct),Bk="aixs-description-tooltip",Rk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.show=function(){var t=this.context,i=Mi(t).axis,n=i.cfg.title,a=n.description,o=n.text,s=n.descriptionTooltipStyle,l=t.event,u=l.x,c=l.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:o||"",customContent:function(){return`
      字段说明:`).concat(a,`
      - `)},x:u,y:c}),this.tooltip.show()},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,i=this.context.view,n=i.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},o=new Rs({parent:n.get("el").parentNode,region:a,visible:!1,containerId:Bk,domStyles:m({},H({},(t={},t[mr]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[xr]={"word-break":"break-all","margin-bottom":"3px"},t)))});o.init(),o.setCapture(!1),this.tooltip=o},e}(Ct);jA("dark",Ay(RF));Ap("canvas",xT);Ap("svg",KT);nr("Polygon",fE);nr("Interval",sE);nr("Schema",vE);nr("Path",qc);nr("Point",cE);nr("Line",lE);nr("Area",tE);nr("Edge",eE);nr("Heatmap",rE);nr("Violin",pE);Pa("base",$s);Pa("interval",IE);Pa("pie",PE);Pa("polar",ym);de("overlap",_E);de("distribute",OE);de("fixed-overlap",WE);de("hide-overlap",r2);de("limit-in-shape",YE);de("limit-in-canvas",VE);de("limit-in-plot",x2);de("pie-outer",RE);de("adjust-color",n2);de("interval-adjust-position",l2);de("interval-hide-overlap",c2);de("point-adjust-position",v2);de("pie-spider",GE);de("path-adjust-position",g2);Ce("fade-in",w2);Ce("fade-out",b2);Ce("grow-in-x",S2);Ce("grow-in-xy",A2);Ce("grow-in-y",M2);Ce("scale-in-x",E2);Ce("scale-in-y",k2);Ce("wave-in",I2);Ce("zoom-in",P2);Ce("zoom-out",D2);Ce("position-update",T2);Ce("sector-path-update",L2);Ce("path-in",F2);yn("rect",z2);yn("mirror",N2);yn("list",B2);yn("matrix",R2);yn("circle",O2);yn("tree",G2);Li("axis",$2);Li("legend",H2);Li("tooltip",Ly);Li("annotation",Y2);Li("slider",X2);Li("scrollbar",q2);j("tooltip",Cm);j("sibling-tooltip",Q2);j("ellipsis-text",K2);j("element-active",J2);j("element-single-active",rk);j("element-range-active",ek);j("element-highlight",ah);j("element-highlight-by-x",nk);j("element-highlight-by-color",ik);j("element-single-highlight",ak);j("element-range-highlight",Mm);j("element-sibling-highlight",Mm,{effectSiblings:!0,effectByRecord:!0});j("element-selected",sk);j("element-single-selected",lk);j("element-range-selected",ok);j("element-link-by-color",tk);j("active-region",Z2);j("list-active",uk);j("list-selected",hk);j("list-highlight",oh);j("list-unchecked",fk);j("list-checked",vk);j("list-focus",dk);j("list-radio",pk);j("legend-item-highlight",oh,{componentNames:["legend"]});j("axis-label-highlight",oh,{componentNames:["axis"]});j("axis-description",Rk);j("rect-mask",Em);j("x-rect-mask",Lm,{dim:"x"});j("y-rect-mask",Lm,{dim:"y"});j("circle-mask",gk);j("path-mask",Pm);j("smooth-path-mask",yk);j("rect-multi-mask",Om);j("x-rect-multi-mask",Bm,{dim:"x"});j("y-rect-multi-mask",Bm,{dim:"y"});j("circle-multi-mask",mk);j("path-multi-mask",Rm);j("smooth-path-multi-mask",xk);j("cursor",wk);j("data-filter",bk);j("brush",Ws);j("brush-x",Ws,{dims:["x"]});j("brush-y",Ws,{dims:["y"]});j("sibling-filter",hh);j("sibling-x-filter",hh,{dims:"x"});j("sibling-y-filter",hh,{dims:"y"});j("element-filter",Ck);j("element-sibling-filter",Nm);j("element-sibling-filter-record",Nm,{byRecord:!0});j("view-drag",Tk);j("view-move",kk);j("scale-translate",Lk);j("scale-zoom",Ik);j("reset-button",Ak,{name:"reset-button",text:"reset"});j("mousewheel-scroll",Ok);function pr(r){return r.isInPlot()}it("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]});it("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]});it("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]});it("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]});it("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]});it("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]});it("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]});it("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]});it("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]});it("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]});it("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]});it("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(r){return!r.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(r){return!r.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]});it("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:pr,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:pr,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:pr,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]});it("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]});it("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:pr,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:pr,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:pr,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]});it("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:pr,action:"path-mask:start"},{trigger:"mousedown",isEnable:pr,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]});it("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:pr,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(r){return!Gs(r)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]});it("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]});it("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(r){return!r.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]});it("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]});it("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]});it("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]});it("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]});it("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]});function yd(r){return r.gEvent.preventDefault(),r.gEvent.originalEvent.deltaY>0}it("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(r){return yd(r.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(r){return!yd(r.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]});it("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]});it("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var ce=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],$e;(function(r){r.ERROR="error",r.WARN="warn",r.INFO="log"})($e||($e={}));var Nk="AntV/G2Plot";function zk(r){for(var e=[],t=1;t=0}),n=t.every(function(a){return A(a,[e])<=0});return i?{min:0}:n?{max:0}:{}}function Gm(r,e,t,i,n){if(n===void 0&&(n=[]),!Array.isArray(r))return{nodes:[],links:[]};var a=[],o={},s=-1;return r.forEach(function(l){var u=l[e],c=l[t],h=l[i],f=dt(l,n);o[u]||(o[u]=m({id:++s,name:u},f)),o[c]||(o[c]=m({id:++s,name:c},f)),a.push(m({source:o[u].id,target:o[c].id,value:h},f))}),{nodes:Object.values(o).sort(function(l,u){return l.id-u.id}),links:a}}function un(r,e){var t=qt(r,function(i){var n=i[e];return n===null||typeof n=="number"&&!isNaN(n)});return br($e.WARN,t.length===r.length,"illegal data existed in chart data."),t}var Gk=5,Vk={}.toString,Vm=function(r,e){return Vk.call(r)==="[object "+e+"]"},Yk=function(r){return Vm(r,"Array")},$k=function(r){return typeof r=="object"&&r!==null},md=function(r){if(!$k(r)||!Vm(r,"Object"))return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e},Ym=function(r,e,t,i){t=t||0,i=i||Gk;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=e[n];a?md(a)?(md(r[n])||(r[n]={}),t=i&&r<=n}function Wr(r){if(rt(r))return[r,r,r,r];if(R(r)){var e=r.length;if(e===1)return[r[0],r[0],r[0],r[0]];if(e===2)return[r[0],r[1],r[0],r[1]];if(e===3)return[r[0],r[1],r[2],r[1]];if(e===4)return r}return[0,0,0,0]}function _s(r,e,t){e===void 0&&(e="bottom"),t===void 0&&(t=25);var i=Wr(r),n=[e.startsWith("top")?t:0,e.startsWith("right")?t:0,e.startsWith("bottom")?t:0,e.startsWith("left")?t:0];return[i[0]+n[0],i[1]+n[1],i[2]+n[2],i[3]+n[3]]}function vh(r){var e=r.map(function(i){return Wr(i)}),t=[0,0,0,0];return e.length>0&&(t=t.map(function(i,n){return e.forEach(function(a,o){i+=e[o][n]}),i})),t}function _k(r,e){var t=[];if(r.length){t.push(["M",r[0].x,r[0].y]);for(var i=1,n=r.length;i"},key:"".concat(l===0?"top":"bottom","-statistic")},dt(s,["offsetX","offsetY","rotate","style","formatter"])))}})},Zk=function(r,e,t){var i=e.statistic,n=i.title,a=i.content;[n,a].forEach(function(o){if(o){var s=_(o.style)?o.style(t):o.style;r.annotation().html(m({position:["50%","100%"],html:function(l,u){var c=u.getCoordinate(),h=u.views[0].getCoordinate(),f=h.getCenter(),v=h.getRadius(),d=Math.max(Math.sin(h.startAngle),Math.sin(h.endAngle))*v,p=f.y+d-c.y.start-parseFloat(A(s,"fontSize",0)),g=c.getRadius()*c.innerRadius*2;Hm(l,m({width:"".concat(g,"px"),transform:"translate(-50%, ".concat(p,"px)")},$m(s)));var y=u.getData();if(o.customHtml)return o.customHtml(l,u,t,y);var x=o.content;return o.formatter&&(x=o.formatter(t,y)),x?K(x)?x:"".concat(x):"
      "}},dt(o,["offsetX","offsetY","rotate","style","formatter"])))}})};function Xm(r,e){return e?Jt(e,function(t,i,n){return t.replace(new RegExp("{\\s*".concat(n,"\\s*}"),"g"),i)},r):r}function st(r,e){return r.views.find(function(t){return t.id===e})}function Gn(r){var e=r.parent;return e?e.views:[]}function wd(r){return Gn(r).filter(function(e){return e!==r})}function Ba(r,e,t){t===void 0&&(t=r.geometries),typeof e=="boolean"?r.animate(e):r.animate(!0),S(t,function(i){var n;_(e)?n=e(i.type||i.shapeType,i)||!0:n=e,i.animate(n)})}function Us(){return typeof window=="object"?window==null?void 0:window.devicePixelRatio:2}function dh(r,e){e===void 0&&(e=r);var t=document.createElement("canvas"),i=Us();t.width=r*i,t.height=e*i,t.style.width="".concat(r,"px"),t.style.height="".concat(e,"px");var n=t.getContext("2d");return n.scale(i,i),t}function ph(r,e,t,i){i===void 0&&(i=t);var n=e.backgroundColor,a=e.opacity;r.globalAlpha=a,r.fillStyle=n,r.beginPath(),r.fillRect(0,0,t,i),r.closePath()}function Wm(r,e,t){var i=r+e;return t?i*2:i}function _m(r,e){var t=e?[[r*.25,r*.25],[r*.75,r*.75]]:[[r*.5,r*.5]];return t}function gh(r,e){var t=e*Math.PI/180,i={a:Math.cos(t)*(1/r),b:Math.sin(t)*(1/r),c:-Math.sin(t)*(1/r),d:Math.cos(t)*(1/r),e:0,f:0};return i}var Qk={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function Kk(r,e,t,i){var n=e.size,a=e.fill,o=e.lineWidth,s=e.stroke,l=e.fillOpacity;r.beginPath(),r.globalAlpha=l,r.fillStyle=a,r.strokeStyle=s,r.lineWidth=o,r.arc(t,i,n/2,0,2*Math.PI,!1),r.fill(),o&&r.stroke(),r.closePath()}function Jk(r){var e=I({},Qk,r),t=e.size,i=e.padding,n=e.isStagger,a=e.rotation,o=Wm(t,i,n),s=_m(o,n),l=dh(o,o),u=l.getContext("2d");ph(u,e,o);for(var c=0,h=s;c0}it("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(r){return yd(r.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(r){return!yd(r.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]});it("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]});it("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var ce=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],$e;(function(r){r.ERROR="error",r.WARN="warn",r.INFO="log"})($e||($e={}));var Nk="AntV/G2Plot";function zk(r){for(var e=[],t=1;t=0}),n=t.every(function(a){return A(a,[e])<=0});return i?{min:0}:n?{max:0}:{}}function Gm(r,e,t,i,n){if(n===void 0&&(n=[]),!Array.isArray(r))return{nodes:[],links:[]};var a=[],o={},s=-1;return r.forEach(function(l){var u=l[e],c=l[t],h=l[i],f=dt(l,n);o[u]||(o[u]=m({id:++s,name:u},f)),o[c]||(o[c]=m({id:++s,name:c},f)),a.push(m({source:o[u].id,target:o[c].id,value:h},f))}),{nodes:Object.values(o).sort(function(l,u){return l.id-u.id}),links:a}}function un(r,e){var t=qt(r,function(i){var n=i[e];return n===null||typeof n=="number"&&!isNaN(n)});return br($e.WARN,t.length===r.length,"illegal data existed in chart data."),t}var Gk=5,Vk={}.toString,Vm=function(r,e){return Vk.call(r)==="[object "+e+"]"},Yk=function(r){return Vm(r,"Array")},$k=function(r){return typeof r=="object"&&r!==null},md=function(r){if(!$k(r)||!Vm(r,"Object"))return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e},Ym=function(r,e,t,i){t=t||0,i=i||Gk;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=e[n];a?md(a)?(md(r[n])||(r[n]={}),t=i&&r<=n}function Wr(r){if(rt(r))return[r,r,r,r];if(R(r)){var e=r.length;if(e===1)return[r[0],r[0],r[0],r[0]];if(e===2)return[r[0],r[1],r[0],r[1]];if(e===3)return[r[0],r[1],r[2],r[1]];if(e===4)return r}return[0,0,0,0]}function _s(r,e,t){e===void 0&&(e="bottom"),t===void 0&&(t=25);var i=Wr(r),n=[e.startsWith("top")?t:0,e.startsWith("right")?t:0,e.startsWith("bottom")?t:0,e.startsWith("left")?t:0];return[i[0]+n[0],i[1]+n[1],i[2]+n[2],i[3]+n[3]]}function vh(r){var e=r.map(function(i){return Wr(i)}),t=[0,0,0,0];return e.length>0&&(t=t.map(function(i,n){return e.forEach(function(a,o){i+=e[o][n]}),i})),t}function _k(r,e){var t=[];if(r.length){t.push(["M",r[0].x,r[0].y]);for(var i=1,n=r.length;i"},key:"".concat(l===0?"top":"bottom","-statistic")},dt(s,["offsetX","offsetY","rotate","style","formatter"])))}})},Zk=function(r,e,t){var i=e.statistic,n=i.title,a=i.content;[n,a].forEach(function(o){if(o){var s=_(o.style)?o.style(t):o.style;r.annotation().html(m({position:["50%","100%"],html:function(l,u){var c=u.getCoordinate(),h=u.views[0].getCoordinate(),f=h.getCenter(),v=h.getRadius(),d=Math.max(Math.sin(h.startAngle),Math.sin(h.endAngle))*v,p=f.y+d-c.y.start-parseFloat(A(s,"fontSize",0)),g=c.getRadius()*c.innerRadius*2;Hm(l,m({width:"".concat(g,"px"),transform:"translate(-50%, ".concat(p,"px)")},$m(s)));var y=u.getData();if(o.customHtml)return o.customHtml(l,u,t,y);var x=o.content;return o.formatter&&(x=o.formatter(t,y)),x?K(x)?x:"".concat(x):"
      "}},dt(o,["offsetX","offsetY","rotate","style","formatter"])))}})};function Xm(r,e){return e?Jt(e,function(t,i,n){return t.replace(new RegExp("{\\s*".concat(n,"\\s*}"),"g"),i)},r):r}function st(r,e){return r.views.find(function(t){return t.id===e})}function Gn(r){var e=r.parent;return e?e.views:[]}function wd(r){return Gn(r).filter(function(e){return e!==r})}function Ba(r,e,t){t===void 0&&(t=r.geometries),typeof e=="boolean"?r.animate(e):r.animate(!0),S(t,function(i){var n;_(e)?n=e(i.type||i.shapeType,i)||!0:n=e,i.animate(n)})}function Us(){return typeof window=="object"?window==null?void 0:window.devicePixelRatio:2}function dh(r,e){e===void 0&&(e=r);var t=document.createElement("canvas"),i=Us();t.width=r*i,t.height=e*i,t.style.width="".concat(r,"px"),t.style.height="".concat(e,"px");var n=t.getContext("2d");return n.scale(i,i),t}function ph(r,e,t,i){i===void 0&&(i=t);var n=e.backgroundColor,a=e.opacity;r.globalAlpha=a,r.fillStyle=n,r.beginPath(),r.fillRect(0,0,t,i),r.closePath()}function Wm(r,e,t){var i=r+e;return t?i*2:i}function _m(r,e){var t=e?[[r*.25,r*.25],[r*.75,r*.75]]:[[r*.5,r*.5]];return t}function gh(r,e){var t=e*Math.PI/180,i={a:Math.cos(t)*(1/r),b:Math.sin(t)*(1/r),c:-Math.sin(t)*(1/r),d:Math.cos(t)*(1/r),e:0,f:0};return i}var Qk={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function Kk(r,e,t,i){var n=e.size,a=e.fill,o=e.lineWidth,s=e.stroke,l=e.fillOpacity;r.beginPath(),r.globalAlpha=l,r.fillStyle=a,r.strokeStyle=s,r.lineWidth=o,r.arc(t,i,n/2,0,2*Math.PI,!1),r.fill(),o&&r.stroke(),r.closePath()}function Jk(r){var e=P({},Qk,r),t=e.size,i=e.padding,n=e.isStagger,a=e.rotation,o=Wm(t,i,n),s=_m(o,n),l=dh(o,o),u=l.getContext("2d");ph(u,e,o);for(var c=0,h=s;c1&&arguments[1]!==void 0?arguments[1]:60,a=null;return function(){for(var o=this,s=arguments.length,l=new Array(s),u=0;ub){var C=w/p.length,M=Math.max(1,Math.ceil(b/C)-1),F="".concat(p.slice(0,M),"...");x.attr("text",F)}}}}function QL(r,e,t){jL(r,e,t),ZL(r,e,t)}function KL(r,e,t){return e===void 0&&(e=!0),t===void 0&&(t=!1),function(i){var n=i.options,a=i.chart,o=n.conversionTag,s=n.theme;return o&&!t&&(a.theme(I({},mt(s)?s:Un(s),{columnWidthRatio:1/3})),a.annotation().shape({render:function(l,u){var c=l.addGroup({id:"".concat(a.id,"-conversion-tag-group"),name:"conversion-tag-group"}),h=ze(a.geometries,function(d){return d.type==="interval"}),f={view:u,geometry:h,group:c,field:r,horizontal:e,options:UL(o,e)},v=h.elements;S(v,function(d,p){p>0&&QL(f,v[p-1],d)})}})),i}}function JL(r){var e=r.options,t=e.legend,i=e.seriesField,n=e.isStack;return i?t!==!1&&(t=m({position:n?"right-top":"top-left"},t)):t=!1,r.options.legend=t,r}function tI(r){var e=r.chart,t=r.options,i=t.data,n=t.columnStyle,a=t.color,o=t.columnWidthRatio,s=t.isPercent,l=t.isGroup,u=t.isStack,c=t.xField,h=t.yField,f=t.seriesField,v=t.groupField,d=t.tooltip,p=t.shape,g=s&&l&&u?DL(i,h,[c,v],h):Na(i,h,c,h,s),y=[];u&&f&&!l?g.forEach(function(w){var C=y.find(function(M){return M[c]===w[c]&&M[f]===w[f]});C?C[h]+=w[h]||0:y.push(m({},w))}):y=g,e.data(y);var x=s?m({formatter:function(w){var C;return{name:l&&u?"".concat(w[f]," - ").concat(w[v]):(C=w[f])!==null&&C!==void 0?C:w[c],value:(Number(w[h])*100).toFixed(2)+"%"}}},d):d,b=I({},r,{options:{data:y,widthRatio:o,tooltip:x,interval:{shape:p,style:n,color:a}}});return Zt(b),b}function bh(r){var e,t,i=r.options,n=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,l=i.data,u=i.isPercent,c=u?{max:1,min:0,minLimit:0,maxLimit:1}:{};return J(Lt((e={},e[o]=n,e[s]=a,e),(t={},t[o]={type:"cat"},t[s]=m(m({},fh(l,s)),c),t)))(r)}function eI(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?e.axis(a,!1):e.axis(a,i),n===!1?e.axis(o,!1):e.axis(o,n),r}function rI(r){var e=r.chart,t=r.options,i=t.legend,n=t.seriesField;return i&&n?e.legend(n,i):i===!1&&e.legend(!1),r}function iI(r){var e=r.chart,t=r.options,i=t.label,n=t.yField,a=t.isRange,o=jt(e,"interval");if(!i)o.label(!1);else{var s=i.callback,l=gt(i,["callback"]);o.label({fields:[n],callback:s,cfg:m({layout:l!=null&&l.position?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Yt(a?m({content:function(u){var c;return(c=u[n])===null||c===void 0?void 0:c.join("-")}},l):l))})}return r}function nI(r){var e=r.chart,t=r.options,i=t.tooltip,n=t.isGroup,a=t.isStack,o=t.groupField,s=t.data,l=t.xField,u=t.yField,c=t.seriesField;if(i===!1)e.tooltip(!1);else{var h=i;if(n&&a){var f=h.customItems,v=(h==null?void 0:h.formatter)||function(d){return{name:"".concat(d[c]," - ").concat(d[o]),value:d[u]}};h=m(m({},h),{customItems:function(d){var p=[];return S(d,function(g){var y=qt(s,function(x){return pp(x,dt(g.data,[l,c]))});y.forEach(function(x){p.push(m(m(m({},g),{value:x[u],data:x,mappingData:{_origin:x}}),v(x)))})}),f?f(p):p}})}e.tooltip(h)}return r}function rl(r,e){e===void 0&&(e=!1);var t=r.options,i=t.seriesField;return J(JL,ut,Se("columnStyle"),Kr,qm("rect"),tI,bh,eI,rI,nI,Ra,yh,iI,a0,At,xt,Et(),KL(t.yField,!e,!!i),qL(!t.isStack),Ti)(r)}function aI(r){var e=r.options,t=e.xField,i=e.yField,n=e.xAxis,a=e.yAxis,o={left:"bottom",right:"top",top:"left",bottom:"right"},s=a!==!1?m({position:o[(a==null?void 0:a.position)||"left"]},a):!1,l=n!==!1?m({position:o[(n==null?void 0:n.position)||"bottom"]},n):!1;return m(m({},r),{options:m(m({},e),{xField:i,yField:t,xAxis:s,yAxis:l})})}function oI(r){var e=r.options,t=e.label;return t&&!t.position&&(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),I({},r,{options:{label:t}})}function sI(r){var e=r.options,t=e.seriesField,i=e.isStack,n=e.legend;return t?n!==!1&&(n=m({position:i?"top-left":"right-top"},n||{})):n=!1,I({},r,{options:{legend:n}})}function lI(r){var e=r.options,t=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return I({},r,{options:{coordinate:t}})}function uI(r){var e=r.chart,t=r.options,i=t.barStyle,n=t.barWidthRatio,a=t.minBarWidth,o=t.maxBarWidth,s=t.barBackground;return rl({chart:e,options:m(m({},t),{columnStyle:i,columnWidthRatio:n,minColumnWidth:a,maxColumnWidth:o,columnBackground:s})},!0)}function s0(r){return J(aI,oI,sI,zt,lI,uI)(r)}var cI=I({},nt.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),hI=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="bar",t}return e.getDefaultOptions=function(){return cI},e.prototype.changeData=function(t){var i,n;this.updateOption({data:t});var a=this,o=a.chart,s=a.options,l=s.isPercent,u=s.xField,c=s.yField,h=s.xAxis,f=s.yAxis;i=[c,u],u=i[0],c=i[1],n=[f,h],h=n[0],f=n[1];var v=m(m({},s),{xField:u,yField:c,yAxis:f,xAxis:h});bh({chart:o,options:v}),o.changeData(Na(t,u,c,u,l))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s0},e}(nt),fI=I({},nt.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),vI=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="column",t}return e.getDefaultOptions=function(){return fI},e.prototype.changeData=function(t){this.updateOption({data:t});var i=this.options,n=i.yField,a=i.xField,o=i.isPercent,s=this,l=s.chart,u=s.options;bh({chart:l,options:u}),this.chart.changeData(Na(t,n,a,n,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return rl},e}(nt),Gl,_r="$$percentage$$",qr="$$mappingValue$$",gr="$$conversion$$",zu="$$totalPercentage$$",ma="$$x$$",xa="$$y$$",dI={appendPadding:[0,80],minSize:0,maxSize:1,meta:(Gl={},Gl[qr]={min:0,max:1,nice:!1},Gl),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},l0="CONVERSION_TAG_NAME";function Ch(r,e,t){var i=[],n=t.yField,a=t.maxSize,o=t.minSize,s=A(xp(e,n),[n]),l=rt(a)?a:1,u=rt(o)?o:0;return i=Mt(r,function(c,h){var f=(c[n]||0)/s;return c[_r]=f,c[qr]=(l-u)*f+u,c[gr]=[A(r,[h-1,n]),c[n]],c}),i}function Sh(r){return function(e){var t=e.chart,i=e.options,n=i.conversionTag,a=i.filteredData,o=a||t.getOptions().data;if(n){var s=n.formatter;o.forEach(function(l,u){if(!(u<=0||Number.isNaN(l[qr]))){var c=r(l,u,o,{top:!0,name:l0,text:{content:_(s)?s(l,o):s,offsetX:n.offsetX,offsetY:n.offsetY,position:"end",autoRotate:!1,style:m({textAlign:"start",textBaseline:"middle"},n.style)}});t.annotation().line(c)}})}return e}}function pI(r){var e=r.chart,t=r.options,i=t.data,n=i===void 0?[]:i,a=t.yField,o=t.maxSize,s=t.minSize,l=Ch(n,n,{yField:a,maxSize:o,minSize:s});return e.data(l),r}function gI(r){var e=r.chart,t=r.options,i=t.xField,n=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.shape,u=l===void 0?"funnel":l,c=t.funnelStyle,h=t.state,f=Oe(o,[i,n]),v=f.fields,d=f.formatter;pe({chart:e,options:{type:"interval",xField:i,yField:qr,colorField:i,tooltipFields:R(v)&&v.concat([_r,gr]),mapping:{shape:u,tooltip:d,color:a,style:c},label:s,state:h}});var p=jt(r.chart,"interval");return p.adjust("symmetric"),r}function yI(r){var e=r.chart,t=r.options,i=t.isTransposed;return e.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),r}function u0(r){var e=r.options,t=r.chart,i=e.maxSize,n=A(t,["geometries","0","dataArray"],[]),a=A(t,["options","data","length"]),o=Mt(n,function(l){return A(l,["0","nextPoints","0","x"])*a-.5}),s=function(l,u,c,h){var f=i-(i-l[qr])/2;return m(m({},h),{start:[o[u-1]||u-.5,f],end:[o[u-1]||u-.5,f+.05]})};return Sh(s)(r),r}function c0(r){return J(pI,gI,yI,u0)(r)}function mI(r){var e,t=r.chart,i=r.options,n=i.data,a=n===void 0?[]:n,o=i.yField;return t.data(a),t.scale((e={},e[o]={sync:!0},e)),r}function xI(r){var e=r.chart,t=r.options,i=t.data,n=t.xField,a=t.yField,o=t.color,s=t.compareField,l=t.isTransposed,u=t.tooltip,c=t.maxSize,h=t.minSize,f=t.label,v=t.funnelStyle,d=t.state,p=t.showFacetTitle;return e.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:p,eachView:function(g,y){var x=l?y.rowIndex:y.columnIndex;l||g.coordinate({type:"rect",actions:[["transpose"],["scale",x===0?-1:1,-1]]});var b=Ch(y.data,i,{yField:a,maxSize:c,minSize:h});g.data(b);var w=Oe(u,[n,a,s]),C=w.fields,M=w.formatter,F=l?{offset:x===0?10:-23,position:x===0?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:x===0?"end":"start"}};pe({chart:g,options:{type:"interval",xField:n,yField:qr,colorField:n,tooltipFields:R(C)&&C.concat([_r,gr]),mapping:{shape:"funnel",tooltip:M,color:o,style:v},label:f===!1?!1:I({},F,f),state:d}})}}),r}function h0(r){var e=r.chart,t=r.index,i=r.options,n=i.conversionTag,a=i.isTransposed;(rt(t)?[e]:e.views).forEach(function(o,s){var l=A(o,["geometries","0","dataArray"],[]),u=A(o,["options","data","length"]),c=Mt(l,function(f){return A(f,["0","nextPoints","0","x"])*u-.5}),h=function(f,v,d,p){var g=(t||s)===0?-1:1;return I({},p,{start:[c[v-1]||v-.5,f[qr]],end:[c[v-1]||v-.5,f[qr]+.05],text:a?{style:{textAlign:"start"}}:{offsetX:n!==!1?g*n.offsetX:0,style:{textAlign:(t||s)===0?"end":"start"}}})};Sh(h)(I({},{chart:o,options:i}))})}function wI(r){var e=r.chart;return e.once("beforepaint",function(){return h0(r)}),r}function bI(r){return J(mI,xI,wI)(r)}function CI(r){var e=r.chart,t=r.options,i=t.data,n=i===void 0?[]:i,a=t.yField,o=Jt(n,function(u,c){return u+(c[a]||0)},0),s=xp(n,a)[a],l=Mt(n,function(u,c){var h=[],f=[];if(u[zu]=(u[a]||0)/o,c){var v=n[c-1][ma],d=n[c-1][xa];h[0]=v[3],f[0]=d[3],h[1]=v[2],f[1]=d[2]}else h[0]=-.5,f[0]=1,h[1]=.5,f[1]=1;return f[2]=f[1]-u[zu],h[2]=(f[2]+1)/4,f[3]=f[2],h[3]=-h[2],u[ma]=h,u[xa]=f,u[_r]=(u[a]||0)/s,u[gr]=[A(n,[c-1,a]),u[a]],u});return e.data(l),r}function SI(r){var e=r.chart,t=r.options,i=t.xField,n=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.funnelStyle,u=t.state,c=Oe(o,[i,n]),h=c.fields,f=c.formatter;return pe({chart:e,options:{type:"polygon",xField:ma,yField:xa,colorField:i,tooltipFields:R(h)&&h.concat([_r,gr]),label:s,state:u,mapping:{tooltip:f,color:a,style:l}}}),r}function MI(r){var e=r.chart,t=r.options,i=t.isTransposed;return e.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),r}function AI(r){var e=function(t,i,n,a){return m(m({},a),{start:[t[ma][1],t[xa][1]],end:[t[ma][1]+.05,t[xa][1]]})};return Sh(e)(r),r}function FI(r){return J(CI,SI,MI,AI)(r)}function TI(r){var e,t=r.chart,i=r.options,n=i.data,a=n===void 0?[]:n,o=i.yField;return t.data(a),t.scale((e={},e[o]={sync:!0},e)),r}function EI(r){var e=r.chart,t=r.options,i=t.seriesField,n=t.isTransposed,a=t.showFacetTitle;return e.facet("rect",{fields:[i],padding:[n?0:32,10,0,10],showTitle:a,eachView:function(o,s){c0(I({},r,{chart:o,options:{data:s.data}}))}}),r}function kI(r){return J(TI,EI)(r)}var LI=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.rendering=!1,t}return e.prototype.change=function(t){var i=this;if(!this.rendering){var n=t.seriesField,a=t.compareField,o=a?h0:u0,s=this.context.view,l=n||a?s.views:[s];Mt(l,function(u,c){var h=u.getController("annotation"),f=qt(A(h,["option"],[]),function(d){var p=d.name;return p!==l0});h.clear(!0),S(f,function(d){typeof d=="object"&&u.annotation()[d.type](d)});var v=A(u,["filteredData"],u.getOptions().data);o({chart:u,index:c,options:m(m({},t),{filteredData:Ch(v,v,t)})}),u.filterData(v),i.rendering=!0,u.render(!0)})}this.rendering=!1},e}(Ct),f0="funnel-conversion-tag",Gu="funnel-afterrender",v0={trigger:"afterrender",action:"".concat(f0,":change")};j(f0,LI);it(Gu,{start:[v0]});function II(r){var e=r.options,t=e.compareField,i=e.xField,n=e.yField,a=e.locale,o=e.funnelStyle,s=e.data,l=js(a),u={label:t?{fields:[i,n,t,_r,gr],formatter:function(h){return"".concat(h[n])}}:{fields:[i,n,_r,gr],offset:0,position:"middle",formatter:function(h){return"".concat(h[i]," ").concat(h[n])}},tooltip:{title:i,formatter:function(h){return{name:h[i],value:h[n]}}},conversionTag:{formatter:function(h){return"".concat(l.get(["conversionTag","label"]),": ").concat(o0.apply(void 0,h[gr]))}}},c;return(t||o)&&(c=function(h){return I({},t&&{lineWidth:1,stroke:"#fff"},_(o)?o(h):o)}),I({options:u},r,{options:{funnelStyle:c,data:ye(s)}})}function PI(r){var e=r.options,t=e.compareField,i=e.dynamicHeight,n=e.seriesField;return n?kI(r):t?bI(r):i?FI(r):c0(r)}function DI(r){var e,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return J(Lt((e={},e[a]=i,e[o]=n,e)))(r)}function OI(r){var e=r.chart;return e.axis(!1),r}function BI(r){var e=r.chart,t=r.options,i=t.legend;return i===!1?e.legend(!1):e.legend(i),r}function RI(r){var e=r.chart,t=r.options,i=t.interactions,n=t.dynamicHeight;return S(i,function(a){a.enable===!1?e.removeInteraction(a.type):e.interaction(a.type,a.cfg||{})}),n?e.removeInteraction(Gu):e.interaction(Gu,{start:[m(m({},v0),{arg:t})]}),r}function d0(r){return J(II,PI,DI,OI,zt,RI,BI,xt,ut,Et())(r)}var NI=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="funnel",t}return e.getDefaultOptions=function(){return dI},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return d0},e.prototype.setState=function(t,i,n){n===void 0&&(n=!0);var a=ya(this.chart);S(a,function(o){i(o.getData())&&o.setState(t,n)})},e.prototype.getStates=function(){var t=ya(this.chart),i=[];return S(t,function(n){var a=n.getData(),o=n.getStates();S(o,function(s){i.push({data:a,state:s,geometry:n.geometry,element:n})})}),i},e.CONVERSATION_FIELD=gr,e.PERCENT_FIELD=_r,e.TOTAL_PERCENT_FIELD=zu,e}(nt),mo,Mh="range",p0="type",vr="percent",zI="#f0f0f0",g0="indicator-view",y0="range-view",GI={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(mo={},mo[Mh]={sync:"v"},mo[vr]={sync:"v",tickCount:5,tickInterval:.2},mo),animation:!1};function VI(r,e){return r.map(function(t,i){var n;return n={},n[Mh]=t-(r[i-1]||0),n[p0]="".concat(i),n[vr]=e,n})}function m0(r){var e;return[(e={},e[vr]=St(r,0,1),e)]}function x0(r,e){var t=A(e,["ticks"],[]),i=Vt(t)?bi(t):[0,St(r,0,1),1];return i[0]||i.shift(),VI(i,r)}function YI(r){var e=r.chart,t=r.options,i=t.percent,n=t.range,a=t.radius,o=t.innerRadius,s=t.startAngle,l=t.endAngle,u=t.axis,c=t.indicator,h=t.gaugeStyle,f=t.type,v=t.meter,d=n.color,p=n.width;if(c){var g=m0(i),y=e.createView({id:g0});y.data(g),y.point().position("".concat(vr,"*1")).shape(c.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:c}),y.coordinate("polar",{startAngle:s,endAngle:l,radius:o*a}),y.axis(vr,u),y.scale(vr,dt(u,ce))}var x=x0(i,t.range),b=e.createView({id:y0});b.data(x);var w=K(d)?[d,zI]:d,C=Zt({chart:b,options:{xField:"1",yField:Mh,seriesField:p0,rawFields:[vr],isStack:!0,interval:{color:w,style:h,shape:f==="meter"?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:p,maxColumnWidth:p}}).ext,M=C.geometry;return M.customInfo({meter:v}),b.coordinate("polar",{innerRadius:o,radius:a,startAngle:s,endAngle:l}).transpose(),r}function $I(r){var e;return J(Lt((e={range:{min:0,max:1,maxLimit:1,minLimit:0}},e[vr]={},e)))(r)}function w0(r,e){var t=r.chart,i=r.options,n=i.statistic,a=i.percent;if(t.getController("annotation").clear(!0),n){var o=n.content,s=void 0;o&&(s=I({},{content:"".concat((a*100).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},o)),Zk(t,{statistic:m(m({},n),{content:s})},{percent:a})}return e&&t.render(!0),r}function HI(r){var e=r.chart,t=r.options,i=t.tooltip;return i?e.tooltip(I({showTitle:!1,showMarkers:!1,containerTpl:'
      ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(n,a){var o=A(a,[0,"data",vr],0);return"".concat((o*100).toFixed(2),"%")}},i)):e.tooltip(!1),r}function XI(r){var e=r.chart;return e.legend(!1),r}function b0(r){return J(ut,xt,YI,$I,HI,w0,At,Et(),XI)(r)}ft("point","gauge-indicator",{draw:function(r,e){var t=r.customInfo,i=t.indicator,n=t.defaultColor,a=i,o=a.pointer,s=a.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return o&&l.addShape("line",{name:"pointer",attrs:m({x1:u.x,y1:u.y,x2:r.x,y2:r.y,stroke:n},o.style)}),s&&l.addShape("circle",{name:"pin",attrs:m({x:u.x,y:u.y,stroke:n},s.style)}),l}});ft("interval","meter-gauge",{draw:function(r,e){var t=r.customInfo.meter,i=t===void 0?{}:t,n=i.steps,a=n===void 0?50:n,o=i.stepRatio,s=o===void 0?.5:o;a=a<1?1:a,s=St(s,0,1);var l=this.coordinate,u=l.startAngle,c=l.endAngle,h=0;if(s>0&&s<1){var f=c-u;h=f/a/(s/(1-s)+1-1/a)}for(var v=h/(1-s)*s,d=e.addGroup(),p=this.coordinate.getCenter(),g=this.coordinate.getRadius(),y=ve.getAngle(r,this.coordinate),x=y.startAngle,b=y.endAngle,w=x;w1?l/(i-1):s.max),!t&&!i){var c=_I(o);u=l/c}var h={},f=xe(a,n);fe(f)?S(a,function(d){var p=d[e],g=Sd(p,u,i),y="".concat(g[0],"-").concat(g[1]);Vr(h,y)||(h[y]={range:g,count:0}),h[y].count+=1}):Object.keys(f).forEach(function(d){S(f[d],function(p){var g=p[e],y=Sd(g,u,i),x="".concat(y[0],"-").concat(y[1]),b="".concat(x,"-").concat(d);Vr(h,b)||(h[b]={range:y,count:0},h[b][n]=d),h[b].count+=1})});var v=[];return S(h,function(d){v.push(d)}),v}var rs="range",wa="count",qI=I({},nt.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function UI(r){var e=r.chart,t=r.options,i=t.data,n=t.binField,a=t.binNumber,o=t.binWidth,s=t.color,l=t.stackField,u=t.legend,c=t.columnStyle,h=C0(i,n,o,a,l);e.data(h);var f=I({},r,{options:{xField:rs,yField:wa,seriesField:l,isStack:!0,interval:{color:s,style:c}}});return Zt(f),u&&l?e.legend(l,u):e.legend(!1),r}function jI(r){var e,t=r.options,i=t.xAxis,n=t.yAxis;return J(Lt((e={},e[rs]=i,e[wa]=n,e)))(r)}function ZI(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis;return i===!1?e.axis(rs,!1):e.axis(rs,i),n===!1?e.axis(wa,!1):e.axis(wa,n),r}function QI(r){var e=r.chart,t=r.options,i=t.label,n=jt(e,"interval");if(!i)n.label(!1);else{var a=i.callback,o=gt(i,["callback"]);n.label({fields:[wa],callback:a,cfg:Yt(o)})}return r}function S0(r){return J(ut,Se("columnStyle"),UI,jI,ZI,Kr,QI,zt,At,xt)(r)}var KI=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="histogram",t}return e.getDefaultOptions=function(){return qI},e.prototype.changeData=function(t){this.updateOption({data:t});var i=this.options,n=i.binField,a=i.binNumber,o=i.binWidth,s=i.stackField;this.chart.changeData(C0(t,n,o,a,s))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return S0},e}(nt),JI=I({},nt.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),tP=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.active=function(){var t=this.getView(),i=this.context.event;if(i.data){var n=i.data.items,a=t.geometries.filter(function(o){return o.type==="point"});S(a,function(o){S(o.elements,function(s){var l=gp(n,function(u){return u.data===s.data})!==-1;s.setState("active",l)})})}},e.prototype.reset=function(){var t=this.getView(),i=t.geometries.filter(function(n){return n.type==="point"});S(i,function(n){S(n.elements,function(a){a.setState("active",!1)})})},e.prototype.getView=function(){return this.context.view},e}(Ct);j("marker-active",tP);it("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var eP=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="line",t}return e.getDefaultOptions=function(){return JI},e.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;el({chart:n,options:a}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return i0},e}(nt),M0=I({},nt.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),rP=[1,0,0,0,1,0,0,0,1];function Vu(r,e){var t=e?Z([],e,!0):Z([],rP,!0);return ve.transform(t,r)}var iP=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getActiveElements=function(){var t=ve.getDelegationObject(this.context);if(t){var i=this.context.view,n=t.component,a=t.item,o=n.get("field");if(o){var s=i.geometries[0].elements;return s.filter(function(l){return l.getModel().data[o]===a.value})}}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,i=this.getActiveElements(),n=t.geometries[0].labelsContainer.getChildren();return n.filter(function(a){return i.find(function(o){return Pt(o.getData(),a.get("data"))})})},e.prototype.transfrom=function(t){t===void 0&&(t=7.5);var i=this.getActiveElements(),n=this.getActiveElementLabels();i.forEach(function(a,o){var s=n[o],l=a.geometry.coordinate;if(l.isPolar&&l.isTransposed){var u=ve.getAngle(a.getModel(),l),c=u.startAngle,h=u.endAngle,f=(c+h)/2,v=t,d=v*Math.cos(f),p=v*Math.sin(f);a.shape.setMatrix(Vu([["t",d,p]])),s.setMatrix(Vu([["t",d,p]]))}})},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(Ct);function nP(r){var e=r.event,t,i=e.target;return i&&(t=i.get("element")),t}var aP=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getAnnotations=function(t){var i=t||this.context.view;return i.getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,i=this.context.view;i.removeInteraction("tooltip"),i.on("afterchangesize",function(){var n=t.getAnnotations(i);t.initialAnnotation=n})},e.prototype.change=function(t){var i=this.context,n=i.view,a=i.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var o=A(a,["data","data"]);if(a.type.match("legend-item")){var s=ve.getDelegationObject(this.context),l=n.getGroupedFields()[0];if(s&&l){var u=s.item;o=n.getData().find(function(v){return v[l]===u.value})}}if(o){var c=A(t,"annotations",[]),h=A(t,"statistic",{});n.getController("annotation").clear(!0),S(c,function(v){typeof v=="object"&&n.annotation()[v.type](v)}),qs(n,{statistic:h,plotType:"pie"},o),n.render(!0)}var f=nP(this.context);f&&f.shape.toFront()},e.prototype.reset=function(){var t=this.context.view,i=t.getController("annotation");i.clear(!0);var n=this.getInitialAnnotation();S(n,function(a){t.annotation()[a.type](a)}),t.render(!0)},e}(Ct),A0="pie-statistic";j(A0,aP);it("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]});j("pie-legend",iP);it("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});function oP(r,e){var t=null;return S(r,function(i){typeof i[e]=="number"&&(t+=i[e])}),t}function sP(r,e){var t;switch(r){case"inner":return t="-30%",K(e)&&e.endsWith("%")?parseFloat(e)*.01>0?t:e:e<0?e:t;case"outer":return t=12,K(e)&&e.endsWith("%")?parseFloat(e)*.01<0?t:e:e>0?e:t;default:return e}}function is(r,e){return ec(un(r,e),function(t){return t[e]===0})}function lP(r){var e=r.chart,t=r.options,i=t.data,n=t.angleField,a=t.colorField,o=t.color,s=t.pieStyle,l=t.shape,u=un(i,n);if(is(u,n)){var c="$$percentage$$";u=u.map(function(f){var v;return m(m({},f),(v={},v[c]=1/u.length,v))}),e.data(u);var h=I({},r,{options:{xField:"1",yField:c,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Zt(h)}else{e.data(u);var h=I({},r,{options:{xField:"1",yField:n,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Zt(h)}return r}function uP(r){var e,t=r.chart,i=r.options,n=i.meta,a=i.colorField,o=I({},n);return t.scale(o,(e={},e[a]={type:"cat"},e)),r}function cP(r){var e=r.chart,t=r.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return e.coordinate({type:"theta",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}),r}function hP(r){var e=r.chart,t=r.options,i=t.label,n=t.colorField,a=t.angleField,o=e.geometries[0];if(!i)o.label(!1);else{var s=i.callback,l=gt(i,["callback"]),u=Yt(l);if(u.content){var c=u.content;u.content=function(d,p,g){var y=d[n],x=d[a],b=e.getScaleByField(a),w=b==null?void 0:b.scale(x);return _(c)?c(m(m({},d),{percent:w}),p,g):K(c)?Xm(c,{value:x,name:y,percentage:rt(w)&&!B(x)?"".concat((w*100).toFixed(2),"%"):null}):c}}var h={inner:"",outer:"pie-outer",spider:"pie-spider"},f=u.type?h[u.type]:"pie-outer",v=u.layout?R(u.layout)?u.layout:[u.layout]:[];u.layout=(f?[{type:f}]:[]).concat(v),o.label({fields:n?[a,n]:[a],callback:s,cfg:m(m({},u),{offset:sP(u.type,u.offset),type:"pie"})})}return r}function F0(r){var e=r.innerRadius,t=r.statistic,i=r.angleField,n=r.colorField,a=r.meta,o=r.locale,s=js(o);if(e&&t){var l=I({},M0.statistic,t),u=l.title,c=l.content;return u!==!1&&(u=I({},{formatter:function(h){var f=h?h[n]:B(u.content)?s.get(["statistic","total"]):u.content,v=A(a,[n,"formatter"])||function(d){return d};return v(f)}},u)),c!==!1&&(c=I({},{formatter:function(h,f){var v=h?h[i]:oP(f,i),d=A(a,[i,"formatter"])||function(p){return p};return h||B(c.content)?d(v):c.content}},c)),I({},{statistic:{title:u,content:c}},r)}return r}function T0(r){var e=r.chart,t=r.options,i=F0(t),n=i.innerRadius,a=i.statistic;return e.getController("annotation").clear(!0),J(Et())(r),n&&a&&qs(e,{statistic:a,plotType:"pie"}),r}function fP(r){var e=r.chart,t=r.options,i=t.tooltip,n=t.colorField,a=t.angleField,o=t.data;if(i===!1)e.tooltip(i);else if(e.tooltip(I({},i,{shared:!1})),is(o,a)){var s=A(i,"fields"),l=A(i,"formatter");fe(A(i,"fields"))&&(s=[n,a],l=l||function(u){return{name:u[n],value:ss(u[a])}}),e.geometries[0].tooltip(s.join("*"),Yi(s,l))}return r}function vP(r){var e=r.chart,t=r.options,i=F0(t),n=i.interactions,a=i.statistic,o=i.annotations;return S(n,function(s){var l,u;if(s.enable===!1)e.removeInteraction(s.type);else if(s.type==="pie-statistic-active"){var c=[];!((l=s.cfg)===null||l===void 0)&&l.start||(c=[{trigger:"element:mouseenter",action:"".concat(A0,":change"),arg:{statistic:a,annotations:o}}]),S((u=s.cfg)===null||u===void 0?void 0:u.start,function(h){c.push(m(m({},h),{arg:{statistic:a,annotations:o}}))}),e.interaction(s.type,I({},s.cfg,{start:c}))}else e.interaction(s.type,s.cfg||{})}),r}function E0(r){return J(Se("pieStyle"),lP,uP,ut,cP,xn,fP,hP,Kr,T0,vP,xt)(r)}var dP=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="pie",t}return e.getDefaultOptions=function(){return M0},e.prototype.changeData=function(t){this.chart.emit(ot.BEFORE_CHANGE_DATA,Tt.fromData(this.chart,ot.BEFORE_CHANGE_DATA,null));var i=this.options,n=this.options.angleField,a=un(i.data,n),o=un(t,n);is(a,n)||is(o,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),T0({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(ot.AFTER_CHANGE_DATA,Tt.fromData(this.chart,ot.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return E0},e}(nt),k0=["#FAAD14","#E8EDF3"],pP={percent:.2,color:k0,animation:{}};function Ah(r){var e=St(Fi(r)?r:0,0,1);return[{current:"".concat(e),type:"current",percent:e},{current:"".concat(e),type:"target",percent:1}]}function L0(r){var e=r.chart,t=r.options,i=t.percent,n=t.progressStyle,a=t.color,o=t.barWidthRatio;e.data(Ah(i));var s=I({},r,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:o,interval:{style:n,color:K(a)?[a,k0[1]]:a},args:{zIndexReversed:!0,sortZIndex:!0}}});return Zt(s),e.tooltip(!1),e.axis(!1),e.legend(!1),r}function gP(r){var e=r.chart;return e.coordinate("rect").transpose(),r}function I0(r){return J(L0,Lt({}),gP,xt,ut,Et())(r)}var yP=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="process",t}return e.getDefaultOptions=function(){return pP},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Ah(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return I0},e}(nt);function mP(r){var e=r.chart,t=r.options,i=t.innerRadius,n=t.radius;return e.coordinate("theta",{innerRadius:i,radius:n}),r}function P0(r,e){var t=r.chart,i=r.options,n=i.innerRadius,a=i.statistic,o=i.percent,s=i.meta;if(t.getController("annotation").clear(!0),n&&a){var l=A(s,["percent","formatter"])||function(c){return"".concat((c*100).toFixed(2),"%")},u=a.content;u&&(u=I({},u,{content:B(u.content)?l(o):u.content})),qs(t,{statistic:m(m({},a),{content:u}),plotType:"ring-progress"},{percent:o})}return e&&t.render(!0),r}function D0(r){return J(L0,Lt({}),mP,P0,xt,ut,Et())(r)}var xP={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},wP=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="ring-process",t}return e.getDefaultOptions=function(){return xP},e.prototype.changeData=function(t){this.chart.emit(ot.BEFORE_CHANGE_DATA,Tt.fromData(this.chart,ot.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Ah(t)),P0({chart:this.chart,options:this.options},!0),this.chart.emit(ot.AFTER_CHANGE_DATA,Tt.fromData(this.chart,ot.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return D0},e}(nt);function Ur(r,e){return bP(r)||CP(r,e)||SP()}function bP(r){if(Array.isArray(r))return r}function CP(r,e){var t=[],i=!0,n=!1,a=void 0;try{for(var o=r[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(t.push(s.value),!(e&&t.length===e));i=!0);}catch(l){n=!0,a=l}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw a}}return t}function SP(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Fh(r,e,t,i){r=r.filter(function(d,p){var g=e(d,p),y=t(d,p);return g!=null&&isFinite(g)&&y!=null&&isFinite(y)}),i&&r.sort(function(d,p){return e(d)-e(p)});for(var n=r.length,a=new Float64Array(n),o=new Float64Array(n),s=0,l=0,u,c,h,f=0;fn&&(c.splice(v+1,0,y),f=!0)}return f}}function Ga(r,e,t,i){var n=i-r*r,a=Math.abs(n)<1e-24?0:(t-r*e)/n,o=e-a*r;return[o,a]}function AP(){var r=function(a){return a[0]},e=function(a){return a[1]},t;function i(n){var a=0,o=0,s=0,l=0,u=0,c=0,h=t?+t[0]:1/0,f=t?+t[1]:-1/0;Di(n,r,e,function(b,w){var C=Math.log(w),M=b*w;++a,o+=(w-o)/a,l+=(M-l)/a,c+=(b*M-c)/a,s+=(w*C-s)/a,u+=(M*C-u)/a,t||(bf&&(f=b))});var v=Ga(l/o,s/o,u/o,c/o),d=Ur(v,2),p=d[0],g=d[1];p=Math.exp(p);var y=function(w){return p*Math.exp(g*w)},x=za(h,f,y);return x.a=p,x.b=g,x.predict=y,x.rSquared=bn(n,r,e,o,y),x}return i.domain=function(n){return arguments.length?(t=n,i):t},i.x=function(n){return arguments.length?(r=n,i):r},i.y=function(n){return arguments.length?(e=n,i):e},i}function O0(){var r=function(a){return a[0]},e=function(a){return a[1]},t;function i(n){var a=0,o=0,s=0,l=0,u=0,c=t?+t[0]:1/0,h=t?+t[1]:-1/0;Di(n,r,e,function(x,b){++a,o+=(x-o)/a,s+=(b-s)/a,l+=(x*b-l)/a,u+=(x*x-u)/a,t||(xh&&(h=x))});var f=Ga(o,s,l,u),v=Ur(f,2),d=v[0],p=v[1],g=function(b){return p*b+d},y=[[c,g(c)],[h,g(h)]];return y.a=p,y.b=d,y.predict=g,y.rSquared=bn(n,r,e,s,g),y}return i.domain=function(n){return arguments.length?(t=n,i):t},i.x=function(n){return arguments.length?(r=n,i):r},i.y=function(n){return arguments.length?(e=n,i):e},i}function FP(r){r.sort(function(t,i){return t-i});var e=r.length/2;return e%1===0?(r[e-1]+r[e])/2:r[Math.floor(e)]}var Ad=2,Fd=1e-12;function TP(){var r=function(a){return a[0]},e=function(a){return a[1]},t=.3;function i(n){for(var a=Fh(n,r,e,!0),o=Ur(a,4),s=o[0],l=o[1],u=o[2],c=o[3],h=s.length,f=Math.max(2,~~(t*h)),v=new Float64Array(h),d=new Float64Array(h),p=new Float64Array(h).fill(1),g=-1;++g<=Ad;){for(var y=[0,f-1],x=0;xs[C]-b?w:C,F=0,T=0,L=0,k=0,P=0,O=1/Math.abs(s[M]-b||1),N=w;N<=C;++N){var V=s[N],U=l[N],D=EP(Math.abs(b-V)*O)*p[N],z=V*D;F+=D,T+=z,L+=U*D,k+=U*z,P+=V*z}var X=Ga(T/F,L/F,k/F,P/F),$=Ur(X,2),Y=$[0],W=$[1];v[x]=Y+W*b,d[x]=Math.abs(l[x]-v[x]),kP(s,x+1,y)}if(g===Ad)break;var et=FP(d);if(Math.abs(et)=1?Fd:(tt=1-Q*Q)*tt}return LP(s,v,u,c)}return i.bandwidth=function(n){return arguments.length?(t=n,i):t},i.x=function(n){return arguments.length?(r=n,i):r},i.y=function(n){return arguments.length?(e=n,i):e},i}function EP(r){return(r=1-r*r*r)*r*r}function kP(r,e,t){var i=r[e],n=t[0],a=t[1]+1;if(!(a>=r.length))for(;e>n&&r[a]-i<=i-r[n];)t[0]=++n,t[1]=a,++a}function LP(r,e,t,i){for(var n=r.length,a=[],o=0,s=0,l=[],u;of&&(f=w))});var d=Ga(s,l,u,c),p=Ur(d,2),g=p[0],y=p[1],x=function(C){return y*Math.log(C)/v+g},b=za(h,f,x);return b.a=y,b.b=g,b.predict=x,b.rSquared=bn(a,r,e,l,x),b}return n.domain=function(a){return arguments.length?(i=a,n):i},n.x=function(a){return arguments.length?(r=a,n):r},n.y=function(a){return arguments.length?(e=a,n):e},n.base=function(a){return arguments.length?(t=a,n):t},n}function B0(){var r=function(a){return a[0]},e=function(a){return a[1]},t;function i(n){var a=Fh(n,r,e),o=Ur(a,4),s=o[0],l=o[1],u=o[2],c=o[3],h=s.length,f=0,v=0,d=0,p=0,g=0,y,x,b,w;for(y=0;yT&&(T=D))});var L=d-f*f,k=f*L-v*v,P=(g*f-p*v)/k,O=(p*L-g*v)/k,N=-P*f,V=function(z){return z=z-u,P*z*z+O*z+N+c},U=za(F,T,V);return U.a=P,U.b=O-2*P*u,U.c=N-O*u+P*u*u+c,U.predict=V,U.rSquared=bn(n,r,e,C,V),U}return i.domain=function(n){return arguments.length?(t=n,i):t},i.x=function(n){return arguments.length?(r=n,i):r},i.y=function(n){return arguments.length?(e=n,i):e},i}function PP(){var r=function(o){return o[0]},e=function(o){return o[1]},t=3,i;function n(a){if(t===1){var o=O0().x(r).y(e).domain(i)(a);return o.coefficients=[o.b,o.a],delete o.a,delete o.b,o}if(t===2){var s=B0().x(r).y(e).domain(i)(a);return s.coefficients=[s.c,s.b,s.a],delete s.a,delete s.b,delete s.c,s}var l=Fh(a,r,e),u=Ur(l,4),c=u[0],h=u[1],f=u[2],v=u[3],d=c.length,p=[],g=[],y=t+1,x=0,b=0,w=i?+i[0]:1/0,C=i?+i[1]:-1/0;Di(a,r,e,function(V,U){++b,x+=(U-x)/b,i||(VC&&(C=V))});var M,F,T,L,k;for(M=0;M=0;--a)for(s=e[a],l=1,n[a]+=s,o=1;o<=a;++o)l*=(a+1-o)/o,n[a-o]+=s*Math.pow(t,o)*l;return n[0]+=i,n}function OP(r){var e=r.length-1,t=[],i,n,a,o,s;for(i=0;iMath.abs(r[i][o])&&(o=n);for(a=i;a=i;a--)r[a][n]-=r[a][i]*r[i][n]/r[i][i]}for(n=e-1;n>=0;--n){for(s=0,a=n+1;af&&(f=b))});var v=Ga(o,s,l,u),d=Ur(v,2),p=d[0],g=d[1];p=Math.exp(p);var y=function(w){return p*Math.pow(w,g)},x=za(h,f,y);return x.a=p,x.b=g,x.predict=y,x.rSquared=bn(n,r,e,c,y),x}return i.domain=function(n){return arguments.length?(t=n,i):t},i.x=function(n){return arguments.length?(r=n,i):r},i.y=function(n){return arguments.length?(e=n,i):e},i}var RP={exp:AP,linear:O0,loess:TP,log:IP,poly:PP,pow:BP,quad:B0};function NP(r,e){var t=10,i={regionStyle:[{position:{start:[r,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[r,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[r,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[r,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-t,offsetY:-t,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:t,offsetY:-t,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:t,offsetY:t,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-t,offsetY:t,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]};return i}var zP=function(r,e){var t=e.view,i=e.options,n=i.xField,a=i.yField,o=t.getScaleByField(n),s=t.getScaleByField(a),l=r.map(function(u){return t.getCoordinate().convert({x:o.scale(u[0]),y:s.scale(u[1])})});return jk(l,!1)},GP=function(r){var e=r.options,t=e.xField,i=e.yField,n=e.data,a=e.regressionLine,o=a.type,s=o===void 0?"linear":o,l=a.algorithm,u=a.equation,c,h=null;if(l)c=R(l)?l:l(n),h=u;else{var f=RP[s]().x(function(v){return v[t]}).y(function(v){return v[i]});c=f(n),h=YP(s,c)}return[zP(c,r),h]},VP=function(r){var e,t=r.meta,i=t===void 0?{}:t,n=r.xField,a=r.yField,o=r.data,s=o[0][n],l=o[0][a],u=s>0,c=l>0;function h(f,v){var d=A(i,[f]);function p(y){return A(d,y)}var g={};return v==="x"?(rt(s)&&(rt(p("min"))||(g.min=u?0:s*2),rt(p("max"))||(g.max=u?s*2:0)),g):(rt(l)&&(rt(p("min"))||(g.min=c?0:l*2),rt(p("max"))||(g.max=c?l*2:0)),g)}return m(m({},i),(e={},e[n]=m(m({},i[n]),h(n,"x")),e[a]=m(m({},i[a]),h(a,"y")),e))};function YP(r,e){var t,i,n,a=function(u,c){return c===void 0&&(c=4),Math.round(u*Math.pow(10,c))/Math.pow(10,c)},o=function(u){return Number.isFinite(u)?a(u):"?"};switch(r){case"linear":return"y = ".concat(o(e.a),"x + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"exp":return"y = ".concat(o(e.a),"e^(").concat(o(e.b),"x), R^2 = ").concat(o(e.rSquared));case"log":return"y = ".concat(o(e.a),"ln(x) + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"quad":return"y = ".concat(o(e.a),"x^2 + ").concat(o(e.b),"x + ").concat(o(e.c),", R^2 = ").concat(o(e.rSquared));case"poly":for(var s="y = ".concat(o((t=e.coefficients)===null||t===void 0?void 0:t[0])," + ").concat(o((i=e.coefficients)===null||i===void 0?void 0:i[1]),"x + ").concat(o((n=e.coefficients)===null||n===void 0?void 0:n[2]),"x^2"),l=3;l
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},aD={appendPadding:2,tooltip:m({},$0),animation:{}};function oD(r){var e=r.chart,t=r.options,i=t.data,n=t.color,a=t.areaStyle,o=t.point,s=t.line,l=o==null?void 0:o.state,u=Oi(i);e.data(u);var c=I({},r,{options:{xField:Ca,yField:Ki,area:{color:n,style:a},line:s,point:o}}),h=I({},c,{options:{tooltip:!1}}),f=I({},c,{options:{tooltip:!1,state:l}});return Zs(c),wn(h),Me(f),e.axis(!1),e.legend(!1),r}function Cn(r){var e,t,i=r.options,n=i.xAxis,a=i.yAxis,o=i.data,s=Oi(o);return J(Lt((e={},e[Ca]=n,e[Ki]=a,e),(t={},t[Ca]={type:"cat"},t[Ki]=fh(s,Ki),t)))(r)}function H0(r){return J(Se("areaStyle"),oD,Cn,zt,ut,xt,Et())(r)}var sD={appendPadding:2,tooltip:m({},$0),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},lD=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="tiny-area",t}return e.getDefaultOptions=function(){return sD},e.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Cn({chart:n,options:a}),n.changeData(Oi(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return H0},e}(nt);function uD(r){var e=r.chart,t=r.options,i=t.data,n=t.color,a=t.columnStyle,o=t.columnWidthRatio,s=Oi(i);e.data(s);var l=I({},r,{options:{xField:Ca,yField:Ki,widthRatio:o,interval:{style:a,color:n}}});return Zt(l),e.axis(!1),e.legend(!1),e.interaction("element-active"),r}function X0(r){return J(ut,Se("columnStyle"),uD,Cn,zt,xt,Et())(r)}var cD={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(r,e){return"".concat(A(e,[0,"data","y"],0))},containerTpl:'
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},hD={appendPadding:2,tooltip:m({},cD),animation:{}},fD=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="tiny-column",t}return e.getDefaultOptions=function(){return hD},e.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Cn({chart:n,options:a}),n.changeData(Oi(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return X0},e}(nt);function vD(r){var e=r.chart,t=r.options,i=t.data,n=t.color,a=t.lineStyle,o=t.point,s=o==null?void 0:o.state,l=Oi(i);e.data(l);var u=I({},r,{options:{xField:Ca,yField:Ki,line:{color:n,style:a},point:o}}),c=I({},u,{options:{tooltip:!1,state:s}});return wn(u),Me(c),e.axis(!1),e.legend(!1),r}function W0(r){return J(vD,Cn,ut,zt,xt,Et())(r)}var dD=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="tiny-line",t}return e.getDefaultOptions=function(){return aD},e.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Cn({chart:n,options:a}),n.changeData(Oi(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return W0},e}(nt),pD={line:i0,pie:E0,column:rl,bar:s0,area:n0,gauge:b0,"tiny-line":W0,"tiny-column":X0,"tiny-area":H0,"ring-progress":D0,progress:I0,scatter:N0,histogram:S0,funnel:d0,stock:Y0},gD={line:eP,pie:dP,column:vI,bar:hI,area:$L,gauge:WI,"tiny-line":dD,"tiny-column":fD,"tiny-area":lD,"ring-progress":wP,progress:yP,scatter:ZP,histogram:KI,funnel:NI,stock:nD},yD={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function Yu(r,e,t){var i=gD[r];if(!i){console.error("could not find ".concat(r," plot"));return}var n=pD[r];n({chart:e,options:I({},i.getDefaultOptions(),A(yD,r,{}),t)})}function mD(r){var e=r.chart,t=r.options,i=t.views,n=t.legend;return S(i,function(a){var o=a.region,s=a.data,l=a.meta,u=a.axes,c=a.coordinate,h=a.interactions,f=a.annotations,v=a.tooltip,d=a.geometries,p=e.createView({region:o});p.data(s);var g={};u&&S(u,function(y,x){g[x]=dt(y,ce)}),g=I({},l,g),p.scale(g),u?S(u,function(y,x){p.axis(x,y)}):p.axis(!1),p.coordinate(c),S(d,function(y){var x=pe({chart:p,options:y}).ext,b=y.adjust;b&&x.geometry.adjust(b)}),S(h,function(y){y.enable===!1?p.removeInteraction(y.type):p.interaction(y.type,y.cfg)}),S(f,function(y){p.annotation()[y.type](m({},y))}),typeof a.animation=="boolean"?p.animate(!1):(p.animate(!0),S(p.geometries,function(y){y.animate(a.animation)})),v&&(p.interaction("tooltip"),p.tooltip(v))}),n?S(n,function(a,o){e.legend(o,a)}):e.legend(!1),e.tooltip(t.tooltip),r}function xD(r){var e=r.chart,t=r.options,i=t.plots,n=t.data,a=n===void 0?[]:n;return S(i,function(o){var s=o.type,l=o.region,u=o.options,c=u===void 0?{}:u,h=o.top,f=c.tooltip;if(h){Yu(s,e,m(m({},c),{data:a}));return}var v=e.createView(m({region:l},dt(c,Jm)));f&&v.interaction("tooltip"),Yu(s,v,m({data:a},c))}),r}function wD(r){var e=r.chart,t=r.options;return e.option("slider",t.slider),r}function bD(r){return J(xt,mD,xD,At,xt,ut,zt,wD,Et())(r)}function CD(r,e){var t=r.getModel(),i=t.data,n;return R(i)?n=i[0][e]:n=i[e],n}function SD(r){var e=ts(r);S(e,function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)})}var MD=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getAssociationItems=function(t,i){var n,a=this.context.event,o=i||{},s=o.linkField,l=o.dim,u=[];if(!((n=a.data)===null||n===void 0)&&n.data){var c=a.data.data;S(t,function(h){var f,v,d=s;if(l==="x"?d=h.getXScale().field:l==="y"?d=(f=h.getYScales().find(function(g){return g.field===d}))===null||f===void 0?void 0:f.field:d||(d=(v=h.getGroupScales()[0])===null||v===void 0?void 0:v.field),!!d){var p=Mt(ts(h),function(g){var y=!1,x=!1,b=R(c)?A(c[0],d):A(c,d);return CD(g,d)===b?y=!0:x=!0,{element:g,view:h,active:y,inactive:x}});u.push.apply(u,p)}})}return u},e.prototype.showTooltip=function(t){var i=wd(this.context.view),n=this.getAssociationItems(i,t);S(n,function(a){if(a.active){var o=a.element.shape.getCanvasBBox();a.view.showTooltip({x:o.minX+o.width/2,y:o.minY+o.height/2})}})},e.prototype.hideTooltip=function(){var t=wd(this.context.view);S(t,function(i){i.hideTooltip()})},e.prototype.active=function(t){var i=Gn(this.context.view),n=this.getAssociationItems(i,t);S(n,function(a){var o=a.active,s=a.element;o&&s.setState("active",!0)})},e.prototype.selected=function(t){var i=Gn(this.context.view),n=this.getAssociationItems(i,t);S(n,function(a){var o=a.active,s=a.element;o&&s.setState("selected",!0)})},e.prototype.highlight=function(t){var i=Gn(this.context.view),n=this.getAssociationItems(i,t);S(n,function(a){var o=a.inactive,s=a.element;o&&s.setState("inactive",!0)})},e.prototype.reset=function(){var t=Gn(this.context.view);S(t,function(i){SD(i)})},e}(Ct);j("association",MD);it("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]});it("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]});it("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]});it("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="mix",t}return e.prototype.getSchemaAdaptor=function(){return bD},e})(nt);var Td;(function(r){r.DEV="DEV",r.BETA="BETA",r.STABLE="STABLE"})(Td||(Td={}));var tr="first-axes-view",er="second-axes-view",ci="series-field-key";function _0(r,e,t,i,n){var a=[];e.forEach(function(h){i.forEach(function(f){var v,d=(v={},v[r]=f[r],v[t]=h,v[h]=f[h],v);a.push(d)})});var o=Object.values(xe(a,t)),s=o[0],l=s===void 0?[]:s,u=o[1],c=u===void 0?[]:u;return n?[l.reverse(),c.reverse()]:[l,c]}function dr(r){return r!=="vertical"}function AD(r,e,t){var i=e[0],n=e[1],a=i.autoPadding,o=n.autoPadding,s=r.__axisPosition,l=s.layout,u=s.position;if(dr(l)&&u==="top"&&(i.autoPadding=t.instance(a.top,0,a.bottom,a.left),n.autoPadding=t.instance(o.top,a.left,o.bottom,0)),dr(l)&&u==="bottom"&&(i.autoPadding=t.instance(a.top,a.right/2+5,a.bottom,a.left),n.autoPadding=t.instance(o.top,o.right,o.bottom,a.right/2+5)),!dr(l)&&u==="bottom"){var c=a.left>=o.left?a.left:o.left;i.autoPadding=t.instance(a.top,a.right,a.bottom/2+5,c),n.autoPadding=t.instance(a.bottom/2+5,o.right,o.bottom,c)}if(!dr(l)&&u==="top"){var c=a.left>=o.left?a.left:o.left;i.autoPadding=t.instance(a.top,a.right,0,c),n.autoPadding=t.instance(0,o.right,a.top,c)}}function FD(r){var e=r.chart,t=r.options,i=t.data,n=t.xField,a=t.yField,o=t.color,s=t.barStyle,l=t.widthRatio,u=t.legend,c=t.layout,h=_0(n,a,ci,i,dr(c));u?e.legend(ci,u):u===!1&&e.legend(!1);var f,v,d=h[0],p=h[1];dr(c)?(f=e.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:tr}),f.coordinate().transpose().reflect("x"),v=e.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:er}),v.coordinate().transpose(),f.data(d),v.data(p)):(f=e.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:tr}),v=e.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:er}),v.coordinate().reflect("y"),f.data(d),v.data(p));var g=I({},r,{chart:f,options:{widthRatio:l,xField:n,yField:a[0],seriesField:ci,interval:{color:o,style:s}}});Zt(g);var y=I({},r,{chart:v,options:{xField:n,yField:a[1],seriesField:ci,widthRatio:l,interval:{color:o,style:s}}});return Zt(y),r}function TD(r){var e,t,i,n=r.options,a=r.chart,o=n.xAxis,s=n.yAxis,l=n.xField,u=n.yField,c=st(a,tr),h=st(a,er),f={};return dn((n==null?void 0:n.meta)||{}).map(function(v){A(n==null?void 0:n.meta,[v,"alias"])&&(f[v]=n.meta[v].alias)}),a.scale((e={},e[ci]={sync:!0,formatter:function(v){return A(f,v,v)}},e)),Lt((t={},t[l]=o,t[u[0]]=s[u[0]],t))(I({},r,{chart:c})),Lt((i={},i[l]=o,i[u[1]]=s[u[1]],i))(I({},r,{chart:h})),r}function ED(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField,s=t.layout,l=st(e,tr),u=st(e,er);return(i==null?void 0:i.position)==="bottom"?u.axis(a,m(m({},i),{label:{formatter:function(){return""}}})):u.axis(a,!1),i===!1?l.axis(a,!1):l.axis(a,m({position:dr(s)?"top":"bottom"},i)),n===!1?(l.axis(o[0],!1),u.axis(o[1],!1)):(l.axis(o[0],n[o[0]]),u.axis(o[1],n[o[1]])),e.__axisPosition={position:l.getOptions().axes[a].position,layout:s},r}function kD(r){var e=r.chart;return At(I({},r,{chart:st(e,tr)})),At(I({},r,{chart:st(e,er)})),r}function LD(r){var e=r.chart,t=r.options,i=t.yField,n=t.yAxis;return Ti(I({},r,{chart:st(e,tr),options:{yAxis:n[i[0]]}})),Ti(I({},r,{chart:st(e,er),options:{yAxis:n[i[1]]}})),r}function ID(r){var e=r.chart;return ut(I({},r,{chart:st(e,tr)})),ut(I({},r,{chart:st(e,er)})),ut(r),r}function PD(r){var e=r.chart;return xt(I({},r,{chart:st(e,tr)})),xt(I({},r,{chart:st(e,er)})),r}function DD(r){var e=this,t,i,n=r.chart,a=r.options,o=a.label,s=a.yField,l=a.layout,u=st(n,tr),c=st(n,er),h=jt(u,"interval"),f=jt(c,"interval");if(!o)h.label(!1),f.label(!1);else{var v=o.callback,d=gt(o,["callback"]);d.position||(d.position="middle"),d.offset===void 0&&(d.offset=2);var p=m({},d);if(dr(l)){var g=((t=p.style)===null||t===void 0?void 0:t.textAlign)||(d.position==="middle"?"center":"left");d.style=I({},d.style,{textAlign:g});var y={left:"right",right:"left",center:"center"};p.style=I({},p.style,{textAlign:y[g]})}else{var x={top:"bottom",bottom:"top",middle:"middle"};typeof d.position=="string"?d.position=x[d.position]:typeof d.position=="function"&&(d.position=function(){for(var C=[],M=0;M1?"".concat(e,"_").concat(t):"".concat(e)}function j0(r){var e=r.data,t=r.xField,i=r.measureField,n=r.rangeField,a=r.targetField,o=r.layout,s=[],l=[];e.forEach(function(h,f){var v=[h[n]].flat();v.sort(function(g,y){return g-y}),v.forEach(function(g,y){var x,b=y===0?g:v[y]-v[y-1];s.push((x={rKey:"".concat(n,"_").concat(y)},x[t]=t?h[t]:String(f),x[n]=b,x))});var d=[h[i]].flat();d.forEach(function(g,y){var x;s.push((x={mKey:Ed(d,i,y)},x[t]=t?h[t]:String(f),x[i]=g,x))});var p=[h[a]].flat();p.forEach(function(g,y){var x;s.push((x={tKey:Ed(p,a,y)},x[t]=t?h[t]:String(f),x[a]=g,x))}),l.push(h[n],h[i],h[a])});var u=Math.min.apply(Math,l.flat(1/0)),c=Math.max.apply(Math,l.flat(1/0));return u=u>0?0:u,o==="vertical"&&s.reverse(),{min:u,max:c,ds:s}}function XD(r){var e=r.chart,t=r.options,i=t.bulletStyle,n=t.targetField,a=t.rangeField,o=t.measureField,s=t.xField,l=t.color,u=t.layout,c=t.size,h=t.label,f=j0(t),v=f.min,d=f.max,p=f.ds;e.data(p);var g=I({},r,{options:{xField:s,yField:a,seriesField:"rKey",isStack:!0,label:A(h,"range"),interval:{color:A(l,"range"),style:A(i,"range"),size:A(c,"range")}}});Zt(g),e.geometries[0].tooltip(!1);var y=I({},r,{options:{xField:s,yField:o,seriesField:"mKey",isStack:!0,label:A(h,"measure"),interval:{color:A(l,"measure"),style:A(i,"measure"),size:A(c,"measure")}}});Zt(y);var x=I({},r,{options:{xField:s,yField:n,seriesField:"tKey",label:A(h,"target"),point:{color:A(l,"target"),style:A(i,"target"),size:_(A(c,"target"))?function(b){return A(c,"target")(b)/2}:A(c,"target")/2,shape:u==="horizontal"?"line":"hyphen"}}});return Me(x),u==="horizontal"&&e.coordinate().transpose(),m(m({},r),{ext:{data:{min:v,max:d}}})}function Z0(r){var e,t,i=r.options,n=r.ext,a=i.xAxis,o=i.yAxis,s=i.targetField,l=i.rangeField,u=i.measureField,c=i.xField,h=n.data;return J(Lt((e={},e[c]=a,e[u]=o,e),(t={},t[u]={min:h==null?void 0:h.min,max:h==null?void 0:h.max,sync:!0},t[s]={sync:"".concat(u)},t[l]={sync:"".concat(u)},t)))(r)}function WD(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.measureField,s=t.rangeField,l=t.targetField;return e.axis("".concat(s),!1),e.axis("".concat(l),!1),i===!1?e.axis("".concat(a),!1):e.axis("".concat(a),i),n===!1?e.axis("".concat(o),!1):e.axis("".concat(o),n),r}function _D(r){var e=r.chart,t=r.options,i=t.legend;return e.removeInteraction("legend-filter"),e.legend(i),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),r}function qD(r){var e=r.chart,t=r.options,i=t.label,n=t.measureField,a=t.targetField,o=t.rangeField,s=e.geometries,l=s[0],u=s[1],c=s[2];return A(i,"range")?l.label("".concat(o),m({layout:[{type:"limit-in-plot"}]},Yt(i.range))):l.label(!1),A(i,"measure")?u.label("".concat(n),m({layout:[{type:"limit-in-plot"}]},Yt(i.measure))):u.label(!1),A(i,"target")?c.label("".concat(a),m({layout:[{type:"limit-in-plot"}]},Yt(i.target))):c.label(!1),r}function UD(r){J(XD,Z0,WD,_D,ut,qD,zt,At,xt)(r)}var jD=I({},nt.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}});(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="bullet",t}return e.getDefaultOptions=function(){return jD},e.prototype.changeData=function(t){this.updateOption({data:t});var i=j0(this.options),n=i.min,a=i.max,o=i.ds;Z0({options:this.options,ext:{data:{min:n,max:a}},chart:this.chart}),this.chart.changeData(o)},e.prototype.getSchemaAdaptor=function(){return UD},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e})(nt);var ZD={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(r){return r.id},source:function(r){return r.source},target:function(r){return r.target},sourceWeight:function(r){return r.value||1},targetWeight:function(r){return r.value||1},sortBy:null};function QD(r,e,t){S(r,function(i,n){i.inEdges=e.filter(function(a){return"".concat(t.target(a))==="".concat(n)}),i.outEdges=e.filter(function(a){return"".concat(t.source(a))==="".concat(n)}),i.edges=i.outEdges.concat(i.inEdges),i.frequency=i.edges.length,i.value=0,i.inEdges.forEach(function(a){i.value+=t.targetWeight(a)}),i.outEdges.forEach(function(a){i.value+=t.sourceWeight(a)})})}function KD(r,e){var t={weight:function(n,a){return a.value-n.value},frequency:function(n,a){return a.frequency-n.frequency},id:function(n,a){return"".concat(e.id(n)).localeCompare("".concat(e.id(a)))}},i=t[e.sortBy];!i&&_(e.sortBy)&&(i=e.sortBy),i&&r.sort(i)}function JD(r,e){var t=r.length;if(!t)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var i=e.nodePaddingRatio;if(i<0||i>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var n=i/(2*t),a=e.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;r.forEach(function(l){o+=l.value}),r.forEach(function(l){l.weight=l.value/o,l.width=l.weight*(1-i),l.height=a}),r.forEach(function(l,u){for(var c=0,h=u-1;h>=0;h--)c+=r[h].width+2*n;var f=l.minX=n+c,v=l.maxX=l.minX+l.width,d=l.minY=e.y-a/2,p=l.maxY=d+a;l.x=[f,v,v,f],l.y=[d,d,p,p]})}else{var s=1/t;r.forEach(function(l,u){l.x=(u+.5)*s,l.y=e.y})}return r}function tO(r,e,t){if(t.weight){var i={};S(r,function(n,a){i[a]=n.value}),e.forEach(function(n){var a=t.source(n),o=t.target(n),s=r[a],l=r[o];if(s&&l){var u=i[a],c=t.sourceWeight(n),h=s.minX+(s.value-u)/s.value*s.width,f=h+c/s.value*s.width;i[a]-=c;var v=i[o],d=t.targetWeight(n),p=l.minX+(l.value-v)/l.value*l.width,g=p+d/l.value*l.width;i[o]-=d;var y=t.y;n.x=[h,f,p,g],n.y=[y,y,y,y],n.source=s,n.target=l}})}else e.forEach(function(n){var a=r[t.source(n)],o=r[t.target(n)];a&&o&&(n.x=[a.x,o.x],n.y=[a.y,o.y],n.source=a,n.target=o)});return e}function eO(r){return yt({},ZD,r)}function rO(r,e){var t=eO(r),i={},n=e.nodes,a=e.links;n.forEach(function(l){var u=t.id(l);i[u]=l}),QD(i,a,t),KD(n,t);var o=JD(n,t),s=tO(i,a,t);return{nodes:o,links:s}}var Q0="x",K0="y",J0="name",tx="source",iO={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(r,e){var t=(r[0]+r[1])/2,i=t>.5?-4:4;return{offsetX:i,content:e}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(r){return!A(r,[0,"data","isNode"])},formatter:function(r){var e=r.source,t=r.target,i=r.value;return{name:"".concat(e," -> ").concat(t),value:i}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function nO(r){var e=r.options,t=e.data,i=e.sourceField,n=e.targetField,a=e.weightField,o=e.nodePaddingRatio,s=e.nodeWidthRatio,l=e.rawFields,u=l===void 0?[]:l,c=Gm(t,i,n,a),h=rO({weight:!0,nodePaddingRatio:o,nodeWidthRatio:s},c),f=h.nodes,v=h.links,d=f.map(function(g){return m(m({},dt(g,Z(["id","x","y","name"],u,!0))),{isNode:!0})}),p=v.map(function(g){return m(m({source:g.source.name,target:g.target.name,name:g.source.name||g.target.name},dt(g,Z(["x","y","value"],u,!0))),{isNode:!1})});return m(m({},r),{ext:m(m({},r.ext),{chordData:{nodesData:d,edgesData:p}})})}function aO(r){var e,t=r.chart;return t.scale((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},e[J0]={sync:"color"},e[tx]={sync:"color"},e)),r}function oO(r){var e=r.chart;return e.axis(!1),r}function sO(r){var e=r.chart;return e.legend(!1),r}function lO(r){var e=r.chart,t=r.options,i=t.tooltip;return e.tooltip(i),r}function uO(r){var e=r.chart;return e.coordinate("polar").reflect("y"),r}function cO(r){var e=r.chart,t=r.options,i=r.ext.chordData.nodesData,n=t.nodeStyle,a=t.label,o=t.tooltip,s=e.createView();return s.data(i),Qs({chart:s,options:{xField:Q0,yField:K0,seriesField:J0,polygon:{style:n},label:a,tooltip:o}}),r}function hO(r){var e=r.chart,t=r.options,i=r.ext.chordData.edgesData,n=t.edgeStyle,a=t.tooltip,o=e.createView();o.data(i);var s={xField:Q0,yField:K0,seriesField:tx,edge:{style:n,shape:"arc"},tooltip:a};return jm({chart:o,options:s}),r}function fO(r){var e=r.chart,t=r.options,i=t.animation;return Ba(e,i,Hk(e)),r}function vO(r){return J(ut,nO,uO,aO,oO,sO,lO,hO,cO,At,Kr,fO)(r)}var J5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="chord",t}return e.getDefaultOptions=function(){return iO},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return vO},e}(nt),dO=["x","y","r","name","value","path","depth"],pO={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},kd=4,gO=0,Ld=5,Id="drilldown-bread-crumb",yO={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},Sa="hierarchy-data-transform-params",mO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=yO,t}return e.prototype.click=function(){var t=A(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),i=this.breadCrumbGroup,n=i.getBBox(),a=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(n.height+Ld*2)};t.isPolar&&(o={x:0,y:0}),a==="bottom-left"&&(o={x:t.start.x,y:t.start.y});var s=ve.transform(null,[["t",o.x+gO,o.y+n.height+Ld]]);i.setMatrix(s)}},e.prototype.back=function(){Vt(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var i=this.context.view,n=A(i,["interactions","drill-down","cfg","transformData"],function(u){return u}),a=n(m({data:t.data},t[Sa]));i.changeData(a);for(var o=[],s=t;s;){var l=s.data;o.unshift({id:"".concat(l.name,"_").concat(s.height,"_").concat(s.depth),name:l.name,children:n(m({data:l},t[Sa]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},e.prototype.backTo=function(t){if(!(!t||t.length<=0)){var i=this.context.view,n=Nt(t).children;i.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,i=A(t,["interactions","drill-down","cfg","drillDownConfig"]);return I(this.breadCrumbCfg,i==null?void 0:i.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,i=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:Id});var a=0;n.forEach(function(o,s){var l=t.breadCrumbGroup.addShape({type:"text",id:o.id,name:"".concat(Id,"_").concat(o.name,"_text"),attrs:m(m({text:s===0&&!B(i.rootText)?i.rootText:o.name},i.textStyle),{x:a,y:0})}),u=l.getBBox();if(a+=u.width+kd,l.on("click",function(f){var v,d=f.target.get("id");if(d!==((v=Nt(n))===null||v===void 0?void 0:v.id)){var p=n.slice(0,n.findIndex(function(g){return g.id===d})+1);t.backTo(p)}}),l.on("mouseenter",function(f){var v,d=f.target.get("id");d!==((v=Nt(n))===null||v===void 0?void 0:v.id)?l.attr(i.activeTextStyle):l.attr({cursor:"default"})}),l.on("mouseleave",function(){l.attr(i.textStyle)}),s=0;)e+=t[i].value;r.value=e}function EO(){return this.eachAfter(TO)}function kO(r,e){let t=-1;for(const i of this)r.call(e,i,++t,this);return this}function LO(r,e){for(var t=this,i=[t],n,a,o=-1;t=i.pop();)if(r.call(e,t,++o,this),n=t.children)for(a=n.length-1;a>=0;--a)i.push(n[a]);return this}function IO(r,e){for(var t=this,i=[t],n=[],a,o,s,l=-1;t=i.pop();)if(n.push(t),a=t.children)for(o=0,s=a.length;o=0;)t+=i[n].value;e.value=t})}function OO(r){return this.eachBefore(function(e){e.children&&e.children.sort(r)})}function BO(r){for(var e=this,t=RO(e,r),i=[e];e!==t;)e=e.parent,i.push(e);for(var n=i.length;r!==t;)i.splice(n,0,r),r=r.parent;return i}function RO(r,e){if(r===e)return r;var t=r.ancestors(),i=e.ancestors(),n=null;for(r=t.pop(),e=i.pop();r===e;)n=r,r=t.pop(),e=i.pop();return n}function NO(){for(var r=this,e=[r];r=r.parent;)e.push(r);return e}function zO(){return Array.from(this)}function GO(){var r=[];return this.eachBefore(function(e){e.children||r.push(e)}),r}function VO(){var r=this,e=[];return r.each(function(t){t!==r&&e.push({source:t.parent,target:t})}),e}function*YO(){var r=this,e,t=[r],i,n,a;do for(e=t.reverse(),t=[];r=e.pop();)if(yield r,i=r.children)for(n=0,a=i.length;n=0;--s)n.push(a=o[s]=new hn(o[s])),a.parent=i,a.depth=i.depth+1;return t.eachBefore(ex)}function $O(){return Sn(this).eachBefore(WO)}function HO(r){return r.children}function XO(r){return Array.isArray(r)?r[1]:null}function WO(r){r.data.value!==void 0&&(r.value=r.data.value),r.data=r.data.data}function ex(r){var e=0;do r.height=e;while((r=r.parent)&&r.height<++e)}function hn(r){this.data=r,this.depth=this.height=0,this.parent=null}hn.prototype=Sn.prototype={constructor:hn,count:EO,each:kO,eachAfter:IO,eachBefore:LO,find:PO,sum:DO,sort:OO,path:BO,ancestors:NO,descendants:zO,leaves:GO,links:VO,copy:$O,[Symbol.iterator]:YO};function _O(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}function qO(r){for(var e=r.length,t,i;e;)i=Math.random()*e--|0,t=r[e],r[e]=r[i],r[i]=t;return r}function rx(r){for(var e=0,t=(r=qO(Array.from(r))).length,i=[],n,a;e0&&t*t>i*i+n*n}function Yl(r,e){for(var t=0;tl?(n=(u+l-a)/(2*u),s=Math.sqrt(Math.max(0,l/u-n*n)),t.x=r.x-n*i-s*o,t.y=r.y-n*o+s*i):(n=(u+a-l)/(2*u),s=Math.sqrt(Math.max(0,a/u-n*n)),t.x=e.x+n*i-s*o,t.y=e.y+n*o+s*i)):(t.x=e.x+t.r,t.y=e.y)}function Dd(r,e){var t=r.r+e.r-1e-6,i=e.x-r.x,n=e.y-r.y;return t>0&&t*t>i*i+n*n}function Od(r){var e=r._,t=r.next._,i=e.r+t.r,n=(e.x*t.r+t.x*e.r)/i,a=(e.y*t.r+t.y*e.r)/i;return n*n+a*a}function wo(r){this._=r,this.next=null,this.previous=null}function ax(r){if(!(n=(r=_O(r)).length))return 0;var e,t,i,n,a,o,s,l,u,c,h;if(e=r[0],e.x=0,e.y=0,!(n>1))return e.r;if(t=r[1],e.x=-t.r,t.x=e.r,t.y=0,!(n>2))return e.r+t.r;Pd(t,e,i=r[2]),e=new wo(e),t=new wo(t),i=new wo(i),e.next=i.previous=t,t.next=e.previous=i,i.next=t.previous=e;t:for(s=3;s0)throw new Error("cycle");return l}return t.id=function(i){return arguments.length?(r=ns(i),t):r},t.parentId=function(i){return arguments.length?(e=ns(i),t):e},t}function nB(r,e){return r.parent===e.parent?1:2}function Hl(r){var e=r.children;return e?e[0]:r.t}function Xl(r){var e=r.children;return e?e[e.length-1]:r.t}function aB(r,e,t){var i=t/(e.i-r.i);e.c-=i,e.s+=t,r.c+=i,e.z+=t,e.m+=t}function oB(r){for(var e=0,t=0,i=r.children,n=i.length,a;--n>=0;)a=i[n],a.z+=e,a.m+=e,e+=a.s+(t+=a.c)}function sB(r,e,t){return r.a.parent===e.parent?r.a:t}function Lo(r,e){this._=r,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Lo.prototype=Object.create(hn.prototype);function lB(r){for(var e=new Lo(r,0),t,i=[e],n,a,o,s;t=i.pop();)if(a=t._.children)for(t.children=new Array(s=a.length),o=s-1;o>=0;--o)i.push(n=t.children[o]=new Lo(a[o],o)),n.parent=t;return(e.parent=new Lo(null,0)).children=[e],e}function uB(){var r=nB,e=1,t=1,i=null;function n(u){var c=lB(u);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),i)u.eachBefore(l);else{var h=u,f=u,v=u;u.eachBefore(function(x){x.xf.x&&(f=x),x.depth>v.depth&&(v=x)});var d=h===f?1:r(h,f)/2,p=d-h.x,g=e/(f.x+d+p),y=t/(v.depth||1);u.eachBefore(function(x){x.x=(x.x+p)*g,x.y=x.depth*y})}return u}function a(u){var c=u.children,h=u.parent.children,f=u.i?h[u.i-1]:null;if(c){oB(u);var v=(c[0].z+c[c.length-1].z)/2;f?(u.z=f.z+r(u._,f._),u.m=u.z-v):u.z=v}else f&&(u.z=f.z+r(u._,f._));u.parent.A=s(u,f,u.parent.A||h[0])}function o(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function s(u,c,h){if(c){for(var f=u,v=u,d=c,p=f.parent.children[0],g=f.m,y=v.m,x=d.m,b=p.m,w;d=Xl(d),f=Hl(f),d&&f;)p=Hl(p),v=Xl(v),v.a=u,w=d.z+x-f.z-g+r(d._,f._),w>0&&(aB(sB(d,u,h),u,w),g+=w,y+=w),x+=d.m,g+=f.m,b+=p.m,y+=v.m;d&&!Xl(v)&&(v.t=d,v.m+=x-y),f&&!Hl(p)&&(p.t=f,p.m+=g-b,h=u)}return h}function l(u){u.x*=e,u.y=u.depth*t}return n.separation=function(u){return arguments.length?(r=u,n):r},n.size=function(u){return arguments.length?(i=!1,e=+u[0],t=+u[1],n):i?null:[e,t]},n.nodeSize=function(u){return arguments.length?(i=!0,e=+u[0],t=+u[1],n):i?[e,t]:null},n}function nl(r,e,t,i,n){for(var a=r.children,o,s=-1,l=a.length,u=r.value&&(n-t)/r.value;++sx&&(x=u),M=g*g*C,b=Math.max(x/M,M/y),b>w){g-=u;break}w=b}o.push(l={value:g,dice:v1?i:1)},t}(ux);function fx(){var r=hx,e=!1,t=1,i=1,n=[0],a=ai,o=ai,s=ai,l=ai,u=ai;function c(f){return f.x0=f.y0=0,f.x1=t,f.y1=i,f.eachBefore(h),n=[0],e&&f.eachBefore(sx),f}function h(f){var v=n[f.depth],d=f.x0+v,p=f.y0+v,g=f.x1-v,y=f.y1-v;g=f-1){var x=a[h];x.x0=d,x.y0=p,x.x1=g,x.y1=y;return}for(var b=u[h],w=v/2+b,C=h+1,M=f-1;C>>1;u[F]y-p){var k=v?(d*L+g*T)/v:g;c(h,C,T,d,p,k,y),c(C,f,L,k,p,g,y)}else{var P=v?(p*L+y*T)/v:y;c(h,C,T,d,p,g,P),c(C,f,L,d,P,g,y)}}}function hB(r,e,t,i,n){(r.depth&1?nl:Va)(r,e,t,i,n)}const fB=function r(e){function t(i,n,a,o,s){if((l=i._squarify)&&l.ratio===e)for(var l,u,c,h,f=-1,v,d=l.length,p=i.value;++f1?i:1)},t}(ux),zd=Object.freeze(Object.defineProperty({__proto__:null,cluster:FO,hierarchy:Sn,pack:ox,packEnclose:rx,packSiblings:QO,partition:lx,stratify:iB,tree:uB,treemap:fx,treemapBinary:cB,treemapDice:Va,treemapResquarify:fB,treemapSlice:nl,treemapSliceDice:hB,treemapSquarify:hx},Symbol.toStringTag,{value:"Module"}));var vx="nodeIndex",dx="childNodeCount",Th="nodeAncestor",Wl="Invalid field: it must be a string!";function Eh(r,e){var t=r.field,i=r.fields;if(K(t))return t;if(R(t))return console.warn(Wl),t[0];if(console.warn("".concat(Wl," will try to get fields instead.")),K(i))return i;if(R(i)&&i.length)return i[0];if(e)return e;throw new TypeError(Wl)}function kh(r){var e=[];if(r&&r.each){var t,i;r.each(function(n){var a,o;n.parent!==t?(t=n.parent,i=0):i+=1;var s=qt((((a=n.ancestors)===null||a===void 0?void 0:a.call(n))||[]).map(function(l){return e.find(function(u){return u.name===l.name})||l}),function(l){var u=l.depth;return u>0&&u1;)c="".concat((u=h.parent.data)===null||u===void 0?void 0:u.name," / ").concat(c),h=h.parent;if(a&&l.depth>2)return null;var f=I({},l.data,m(m(m({},dt(l.data,n)),{path:c}),l));f.ext=t,f[Sa]={hierarchyConfig:t,rawFields:n,enableDrillDown:a},s.push(f)}),s}function gx(r,e,t){var i=vh([r,e]),n=i[0],a=i[1],o=i[2],s=i[3],l=t.width,u=t.height,c=l-(s+a),h=u-(n+o),f=Math.min(c,h),v=(c-f)/2,d=(h-f)/2,p=n+d,g=a+v,y=o+d,x=s+v,b=[p,g,y,x],w=f<0?0:f;return{finalPadding:b,finalSize:w}}function pB(r){var e=r.chart,t=Math.min(e.viewBBox.width,e.viewBBox.height);return I({options:{size:function(i){var n=i.r;return n*t}}},r)}function gB(r){var e=r.options,t=r.chart,i=t.viewBBox,n=e.padding,a=e.appendPadding,o=e.drilldown,s=a;if(o!=null&&o.enabled){var l=_s(t.appendPadding,A(o,["breadCrumb","position"]));s=vh([l,a])}var u=gx(n,s,i).finalPadding;return t.padding=u,t.appendPadding=0,r}function yB(r){var e=r.chart,t=r.options,i=e.padding,n=e.appendPadding,a=t.color,o=t.colorField,s=t.pointStyle,l=t.hierarchyConfig,u=t.sizeField,c=t.rawFields,h=c===void 0?[]:c,f=t.drilldown,v=px({data:t.data,hierarchyConfig:l,enableDrillDown:f==null?void 0:f.enabled,rawFields:h});e.data(v);var d=e.viewBBox,p=gx(i,n,d).finalSize,g=function(y){var x=y.r;return x*p};return u&&(g=function(y){return y[u]*p}),Me(I({},r,{options:{xField:"x",yField:"y",seriesField:o,sizeField:u,rawFields:Z(Z([],dO,!0),h,!0),point:{color:a,style:s,shape:"circle",size:g}}})),r}function mB(r){return J(Lt({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(r)}function xB(r){var e=r.chart,t=r.options,i=t.tooltip;if(i===!1)e.tooltip(!1);else{var n=i;A(i,"fields")||(n=I({},{customItems:function(a){return a.map(function(o){var s=A(e.getOptions(),"scales"),l=A(s,["name","formatter"],function(c){return c}),u=A(s,["value","formatter"],function(c){return c});return m(m({},o),{name:l(o.data.name),value:u(o.data.value)})})}},n)),e.tooltip(n)}return r}function wB(r){var e=r.chart;return e.axis(!1),r}function bB(r){var e=r.drilldown,t=r.interactions,i=t===void 0?[]:t;return e!=null&&e.enabled?I({},r,{interactions:Z(Z([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:px,enableDrillDown:!0}}],!1)}):r}function CB(r){var e=r.chart,t=r.options;return At({chart:e,options:bB(t)}),r}function SB(r){return J(Se("pointStyle"),pB,gB,ut,mB,yB,wB,xn,xB,CB,xt,Et())(r)}function Gd(r){var e=A(r,["event","data","data"],{});return R(e.children)&&e.children.length>0}function Vd(r){var e=r.view.getCoordinate(),t=e.innerRadius;if(t){var i=r.event,n=i.x,a=i.y,o=e.center,s=o.x,l=o.y,u=e.getRadius()*t,c=Math.sqrt(Math.pow(s-n,2)+Math.pow(l-a,2));return c-1?Wk(v,c,h):!0}),r.getRootView().render(!0)}};function TB(r){var e,t=r.options,i=t.geometryOptions,n=i===void 0?[]:i,a=t.xField,o=t.yField,s=ec(n,function(l){var u=l.geometry;return u===Ei.Line||u===void 0});return I({},{options:{geometryOptions:[],meta:(e={},e[a]={type:"cat",sync:!0,range:s?[0,1]:void 0},e),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},r,{options:{yAxis:$d(o,t.yAxis),geometryOptions:[Yd(a,o[0],n[0]),Yd(a,o[1],n[1])],annotations:$d(o,t.annotations)}})}function EB(r){var e,t,i=r.chart,n=r.options,a=n.geometryOptions,o={line:0,column:1},s=[{type:(e=a[0])===null||e===void 0?void 0:e.geometry,id:Ae},{type:(t=a[1])===null||t===void 0?void 0:t.geometry,id:Fe}];return s.sort(function(l,u){return-o[l.type]+o[u.type]}).forEach(function(l){return i.createView({id:l.id})}),r}function kB(r){var e=r.chart,t=r.options,i=t.xField,n=t.yField,a=t.geometryOptions,o=t.data,s=t.tooltip,l=[m(m({},a[0]),{id:Ae,data:o[0],yField:n[0]}),m(m({},a[1]),{id:Fe,data:o[1],yField:n[1]})];return l.forEach(function(u){var c=u.id,h=u.data,f=u.yField,v=Lh(u)&&u.isPercent,d=v?t0(h,f,i,f):h,p=st(e,c).data(d),g=v?m({formatter:function(y){return{name:y[u.seriesField]||f,value:(Number(y[f])*100).toFixed(2)+"%"}}},s):s;FB({chart:p,options:{xField:i,yField:f,tooltip:g,geometryOption:u}})}),r}function LB(r){var e,t=r.chart,i=r.options,n=i.geometryOptions,a=((e=t.getTheme())===null||e===void 0?void 0:e.colors10)||[],o=0;return t.once("beforepaint",function(){S(n,function(s,l){var u=st(t,l===0?Ae:Fe);if(!s.color){var c=u.getGroupScales(),h=A(c,[0,"values","length"],1),f=a.slice(o,o+h).concat(l===0?[]:a);u.geometries.forEach(function(v){s.seriesField?v.color(s.seriesField,f):v.color(f[0])}),o+=h}}),t.render(!0)}),r}function IB(r){var e,t,i=r.chart,n=r.options,a=n.xAxis,o=n.yAxis,s=n.xField,l=n.yField;return Lt((e={},e[s]=a,e[l[0]]=o[0],e))(I({},r,{chart:st(i,Ae)})),Lt((t={},t[s]=a,t[l[1]]=o[1],t))(I({},r,{chart:st(i,Fe)})),r}function PB(r){var e=r.chart,t=r.options,i=st(e,Ae),n=st(e,Fe),a=t.xField,o=t.yField,s=t.xAxis,l=t.yAxis;return e.axis(a,!1),e.axis(o[0],!1),e.axis(o[1],!1),i.axis(a,s),i.axis(o[0],Hd(l[0],fn.Left)),n.axis(a,!1),n.axis(o[1],Hd(l[1],fn.Right)),r}function DB(r){var e=r.chart,t=r.options,i=t.tooltip,n=st(e,Ae),a=st(e,Fe);return e.tooltip(i),n.tooltip({shared:!0}),a.tooltip({shared:!0}),r}function OB(r){var e=r.chart;return At(I({},r,{chart:st(e,Ae)})),At(I({},r,{chart:st(e,Fe)})),r}function BB(r){var e=r.chart,t=r.options,i=t.annotations,n=A(i,[0]),a=A(i,[1]);return Et(n)(I({},r,{chart:st(e,Ae),options:{annotations:n}})),Et(a)(I({},r,{chart:st(e,Fe),options:{annotations:a}})),r}function RB(r){var e=r.chart;return ut(I({},r,{chart:st(e,Ae)})),ut(I({},r,{chart:st(e,Fe)})),ut(r),r}function NB(r){var e=r.chart;return xt(I({},r,{chart:st(e,Ae)})),xt(I({},r,{chart:st(e,Fe)})),r}function zB(r){var e=r.chart,t=r.options,i=t.yAxis;return Ti(I({},r,{chart:st(e,Ae),options:{yAxis:i[0]}})),Ti(I({},r,{chart:st(e,Fe),options:{yAxis:i[1]}})),r}function GB(r){var e=r.chart,t=r.options,i=t.legend,n=t.geometryOptions,a=t.yField,o=t.data,s=st(e,Ae),l=st(e,Fe);if(i===!1)e.legend(!1);else if(mt(i)&&i.custom===!0)e.legend(i);else{var u=A(n,[0,"legend"],i),c=A(n,[1,"legend"],i);e.once("beforepaint",function(){var h=o[0].length?Xd({view:s,geometryOption:n[0],yField:a[0],legend:u}):[],f=o[1].length?Xd({view:l,geometryOption:n[1],yField:a[1],legend:c}):[];e.legend(I({},i,{custom:!0,items:h.concat(f)}))}),n[0].seriesField&&s.legend(n[0].seriesField,u),n[1].seriesField&&l.legend(n[1].seriesField,c),e.on("legend-item:click",function(h){var f=A(h,"gEvent.delegateObject",{});if(f&&f.item){var v=f.item,d=v.value,p=v.isGeometry,g=v.viewId;if(p){var y=gp(a,function(w){return w===d});if(y>-1){var x=A(st(e,g),"geometries");S(x,function(w){w.changeVisible(!f.item.unchecked)})}}else{var b=A(e.getController("legend"),"option.items",[]);S(e.views,function(w){var C=w.getGroupScales();S(C,function(M){M.values&&M.values.indexOf(d)>-1&&w.filter(M.field,function(F){var T=ze(b,function(L){return L.value===F});return!T.unchecked})}),e.render(!0)})}}})}return r}function VB(r){var e=r.chart,t=r.options,i=t.slider,n=st(e,Ae),a=st(e,Fe);return i&&(n.option("slider",i),n.on("slider:valuechanged",function(o){var s=o.event,l=s.value,u=s.originValue;Pt(l,u)||Wd(a,l)}),e.once("afterpaint",function(){if(!en(i)){var o=i.start,s=i.end;(o||s)&&Wd(a,[o,s])}})),r}function YB(r){return J(TB,EB,RB,kB,IB,PB,zB,DB,OB,BB,NB,LB,GB,VB)(r)}(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dual-axes",t}return e.prototype.getDefaultOptions=function(){return I({},r.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return YB},e})(nt);function $B(r,e){var t=e.data,i=e.coordinate,n=e.interactions,a=e.annotations,o=e.animation,s=e.tooltip,l=e.axes,u=e.meta,c=e.geometries;t&&r.data(t);var h={};l&&S(l,function(f,v){h[v]=dt(f,ce)}),h=I({},u,h),r.scale(h),i&&r.coordinate(i),l===!1?r.axis(!1):S(l,function(f,v){r.axis(v,f)}),S(c,function(f){var v=pe({chart:r,options:f}).ext,d=f.adjust;d&&v.geometry.adjust(d)}),S(n,function(f){f.enable===!1?r.removeInteraction(f.type):r.interaction(f.type,f.cfg)}),S(a,function(f){r.annotation()[f.type](m({},f))}),Ba(r,o),s?(r.interaction("tooltip"),r.tooltip(s)):s===!1&&r.removeInteraction("tooltip")}function HB(r){var e=r.chart,t=r.options,i=t.type,n=t.data,a=t.fields,o=t.eachView,s=hs(t,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(n),e.facet(i,m(m({},s),{fields:a,eachView:function(l,u){var c=o(l,u);if(c.geometries)$B(l,c);else{var h=c,f=h.options;f.tooltip&&l.interaction("tooltip"),Yu(h.type,l,f)}}})),r}function XB(r){var e=r.chart,t=r.options,i=t.axes,n=t.meta,a=t.tooltip,o=t.coordinate,s=t.theme,l=t.legend,u=t.interactions,c=t.annotations,h={};return i&&S(i,function(f,v){h[v]=dt(f,ce)}),h=I({},n,h),e.scale(h),e.coordinate(o),i?S(i,function(f,v){e.axis(v,f)}):e.axis(!1),a?(e.interaction("tooltip"),e.tooltip(a)):a===!1&&e.removeInteraction("tooltip"),e.legend(l),s&&e.theme(s),S(u,function(f){f.enable===!1?e.removeInteraction(f.type):e.interaction(f.type,f.cfg)}),S(c,function(f){e.annotation()[f.type](m({},f))}),r}function WB(r){return J(ut,HB,XB)(r)}var _B={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="area",t}return e.getDefaultOptions=function(){return _B},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return WB},e})(nt);function qB(r){var e=r.chart,t=r.options,i=t.data,n=t.type,a=t.xField,o=t.yField,s=t.colorField,l=t.sizeField,u=t.sizeRatio,c=t.shape,h=t.color,f=t.tooltip,v=t.heatmapStyle,d=t.meta;e.data(i);var p="polygon";n==="density"&&(p="heatmap");var g=Oe(f,[a,o,s]),y=g.fields,x=g.formatter,b=1;return(u||u===0)&&(!c&&!l?console.warn("sizeRatio is not in effect: Must define shape or sizeField first"):u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):b=u),pe(I({},r,{options:{type:p,colorField:s,tooltipFields:y,shapeField:l||"",label:void 0,mapping:{tooltip:x,shape:c&&(l?function(w){var C=i.map(function(L){return L[l]}),M=(d==null?void 0:d[l])||{},F=M.min,T=M.max;return F=rt(F)?F:Math.min.apply(Math,C),T=rt(T)?T:Math.max.apply(Math,C),[c,(A(w,l)-F)/(T-F),b]}:function(){return[c,1,b]}),color:h||s&&e.getTheme().sequenceColors.join("-"),style:v}}})),r}function UB(r){var e,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return J(Lt((e={},e[a]=i,e[o]=n,e)))(r)}function jB(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?e.axis(a,!1):e.axis(a,i),n===!1?e.axis(o,!1):e.axis(o,n),r}function ZB(r){var e=r.chart,t=r.options,i=t.legend,n=t.colorField,a=t.sizeField,o=t.sizeLegend,s=i!==!1;return n&&e.legend(n,s?i:!1),a&&e.legend(a,o===void 0?i:o),!s&&!o&&e.legend(!1),r}function QB(r){var e=r.chart,t=r.options,i=t.label,n=t.colorField,a=t.type,o=jt(e,a==="density"?"heatmap":"polygon");if(!i)o.label(!1);else if(n){var s=i.callback,l=gt(i,["callback"]);o.label({fields:[n],callback:s,cfg:Yt(l)})}return r}function KB(r){var e,t,i=r.chart,n=r.options,a=n.coordinate,o=n.reflect,s=I({actions:[]},a??{type:"rect"});return o&&((t=(e=s.actions)===null||e===void 0?void 0:e.push)===null||t===void 0||t.call(e,["reflect",o])),i.coordinate(s),r}function JB(r){return J(ut,Se("heatmapStyle"),UB,KB,qB,jB,ZB,zt,QB,Et(),At,xt,Kr)(r)}var tR=I({},nt.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});ft("polygon","circle",{draw:function(r,e){var t,i,n=r.x,a=r.y,o=this.parsePoints(r.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l)/2,c=Number(r.shape[1]),h=Number(r.shape[2]),f=Math.sqrt(h),v=u*f*Math.sqrt(c),d=((t=r.style)===null||t===void 0?void 0:t.fill)||r.color||((i=r.defaultStyle)===null||i===void 0?void 0:i.fill),p=e.addShape("circle",{attrs:m(m(m({x:n,y:a,r:v},r.defaultStyle),r.style),{fill:d})});return p}});ft("polygon","square",{draw:function(r,e){var t,i,n=r.x,a=r.y,o=this.parsePoints(r.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l),c=Number(r.shape[1]),h=Number(r.shape[2]),f=Math.sqrt(h),v=u*f*Math.sqrt(c),d=((t=r.style)===null||t===void 0?void 0:t.fill)||r.color||((i=r.defaultStyle)===null||i===void 0?void 0:i.fill),p=e.addShape("rect",{attrs:m(m(m({x:n-v/2,y:a-v/2,width:v,height:v},r.defaultStyle),r.style),{fill:d})});return p}});(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="heatmap",t}return e.getDefaultOptions=function(){return tR},e.prototype.getSchemaAdaptor=function(){return JB},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e})(nt);var eR="liquid";function mx(r){return[{percent:r,type:eR}]}function rR(r){var e=r.chart,t=r.options,i=t.percent,n=t.liquidStyle,a=t.radius,o=t.outline,s=t.wave,l=t.shape,u=t.shapeStyle,c=t.animation;e.scale({percent:{min:0,max:1}}),e.data(mx(i));var h=t.color||e.getTheme().defaultColor,f=I({},r,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:h,style:n,shape:"liquid-fill-gauge"}}}),v=Zt(f).ext,d=v.geometry,p=e.getTheme().background,g={percent:i,radius:a,outline:o,wave:s,shape:l,shapeStyle:u,background:p,animation:c};return d.customInfo(g),e.legend(!1),e.axis(!1),e.tooltip(!1),r}function xx(r,e){var t=r.chart,i=r.options,n=i.statistic,a=i.percent,o=i.meta;t.getController("annotation").clear(!0);var s=A(o,["percent","formatter"])||function(u){return"".concat((u*100).toFixed(2),"%")},l=n.content;return l&&(l=I({},l,{content:B(l.content)?s(a):l.content})),qs(t,{statistic:m(m({},n),{content:l}),plotType:"liquid"},{percent:a}),e&&t.render(!0),r}function iR(r){return J(ut,Se("liquidStyle"),rR,xx,Lt({}),xt,At)(r)}var nR={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},_d=5e3;function qd(r,e,t){return r+(e-r)*t}function aR(r){var e=m({opacity:1},r.style);return r.color&&!e.fill&&(e.fill=r.color),e}function oR(r){var e={fill:"#fff",fillOpacity:0,lineWidth:4},t=yt({},e,r.style);return r.color&&!t.stroke&&(t.stroke=r.color),rt(r.opacity)&&(t.opacity=t.strokeOpacity=r.opacity),t}function sR(r,e,t,i){return e===0?[[r+1/2*t/Math.PI/2,i/2],[r+1/2*t/Math.PI,i],[r+t/4,i]]:e===1?[[r+1/2*t/Math.PI/2*(Math.PI-2),i],[r+1/2*t/Math.PI/2*(Math.PI-1),i/2],[r+t/4,0]]:e===2?[[r+1/2*t/Math.PI/2,-i/2],[r+1/2*t/Math.PI,-i],[r+t/4,-i]]:[[r+1/2*t/Math.PI/2*(Math.PI-2),-i],[r+1/2*t/Math.PI/2*(Math.PI-1),-i/2],[r+t/4,0]]}function lR(r,e,t,i,n,a,o){for(var s=Math.ceil(2*r/t*4)*4,l=[],u=i;u<-Math.PI*2;)u+=Math.PI*2;for(;u>0;)u-=Math.PI*2;u=u/Math.PI/2*t;var c=a-r+u-r*2;l.push(["M",c,e]);for(var h=0,f=0;f1&&arguments[1]!==void 0?arguments[1]:60,a=null;return function(){for(var o=this,s=arguments.length,l=new Array(s),u=0;uw){var C=b/p.length,M=Math.max(1,Math.ceil(w/C)-1),F="".concat(p.slice(0,M),"...");x.attr("text",F)}}}}function QL(r,e,t){jL(r,e,t),ZL(r,e,t)}function KL(r,e,t){return e===void 0&&(e=!0),t===void 0&&(t=!1),function(i){var n=i.options,a=i.chart,o=n.conversionTag,s=n.theme;return o&&!t&&(a.theme(P({},mt(s)?s:Un(s),{columnWidthRatio:1/3})),a.annotation().shape({render:function(l,u){var c=l.addGroup({id:"".concat(a.id,"-conversion-tag-group"),name:"conversion-tag-group"}),h=ze(a.geometries,function(d){return d.type==="interval"}),f={view:u,geometry:h,group:c,field:r,horizontal:e,options:UL(o,e)},v=h.elements;S(v,function(d,p){p>0&&QL(f,v[p-1],d)})}})),i}}function JL(r){var e=r.options,t=e.legend,i=e.seriesField,n=e.isStack;return i?t!==!1&&(t=m({position:n?"right-top":"top-left"},t)):t=!1,r.options.legend=t,r}function tI(r){var e=r.chart,t=r.options,i=t.data,n=t.columnStyle,a=t.color,o=t.columnWidthRatio,s=t.isPercent,l=t.isGroup,u=t.isStack,c=t.xField,h=t.yField,f=t.seriesField,v=t.groupField,d=t.tooltip,p=t.shape,g=s&&l&&u?DL(i,h,[c,v],h):Na(i,h,c,h,s),y=[];u&&f&&!l?g.forEach(function(b){var C=y.find(function(M){return M[c]===b[c]&&M[f]===b[f]});C?C[h]+=b[h]||0:y.push(m({},b))}):y=g,e.data(y);var x=s?m({formatter:function(b){var C;return{name:l&&u?"".concat(b[f]," - ").concat(b[v]):(C=b[f])!==null&&C!==void 0?C:b[c],value:(Number(b[h])*100).toFixed(2)+"%"}}},d):d,w=P({},r,{options:{data:y,widthRatio:o,tooltip:x,interval:{shape:p,style:n,color:a}}});return Zt(w),w}function bh(r){var e,t,i=r.options,n=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,l=i.data,u=i.isPercent,c=u?{max:1,min:0,minLimit:0,maxLimit:1}:{};return J(Lt((e={},e[o]=n,e[s]=a,e),(t={},t[o]={type:"cat"},t[s]=m(m({},fh(l,s)),c),t)))(r)}function eI(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?e.axis(a,!1):e.axis(a,i),n===!1?e.axis(o,!1):e.axis(o,n),r}function rI(r){var e=r.chart,t=r.options,i=t.legend,n=t.seriesField;return i&&n?e.legend(n,i):i===!1&&e.legend(!1),r}function iI(r){var e=r.chart,t=r.options,i=t.label,n=t.yField,a=t.isRange,o=jt(e,"interval");if(!i)o.label(!1);else{var s=i.callback,l=gt(i,["callback"]);o.label({fields:[n],callback:s,cfg:m({layout:l!=null&&l.position?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Yt(a?m({content:function(u){var c;return(c=u[n])===null||c===void 0?void 0:c.join("-")}},l):l))})}return r}function nI(r){var e=r.chart,t=r.options,i=t.tooltip,n=t.isGroup,a=t.isStack,o=t.groupField,s=t.data,l=t.xField,u=t.yField,c=t.seriesField;if(i===!1)e.tooltip(!1);else{var h=i;if(n&&a){var f=h.customItems,v=(h==null?void 0:h.formatter)||function(d){return{name:"".concat(d[c]," - ").concat(d[o]),value:d[u]}};h=m(m({},h),{customItems:function(d){var p=[];return S(d,function(g){var y=qt(s,function(x){return pp(x,dt(g.data,[l,c]))});y.forEach(function(x){p.push(m(m(m({},g),{value:x[u],data:x,mappingData:{_origin:x}}),v(x)))})}),f?f(p):p}})}e.tooltip(h)}return r}function rl(r,e){e===void 0&&(e=!1);var t=r.options,i=t.seriesField;return J(JL,ut,Se("columnStyle"),Kr,qm("rect"),tI,bh,eI,rI,nI,Ra,yh,iI,a0,At,xt,Et(),KL(t.yField,!e,!!i),qL(!t.isStack),Ti)(r)}function aI(r){var e=r.options,t=e.xField,i=e.yField,n=e.xAxis,a=e.yAxis,o={left:"bottom",right:"top",top:"left",bottom:"right"},s=a!==!1?m({position:o[(a==null?void 0:a.position)||"left"]},a):!1,l=n!==!1?m({position:o[(n==null?void 0:n.position)||"bottom"]},n):!1;return m(m({},r),{options:m(m({},e),{xField:i,yField:t,xAxis:s,yAxis:l})})}function oI(r){var e=r.options,t=e.label;return t&&!t.position&&(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),P({},r,{options:{label:t}})}function sI(r){var e=r.options,t=e.seriesField,i=e.isStack,n=e.legend;return t?n!==!1&&(n=m({position:i?"top-left":"right-top"},n||{})):n=!1,P({},r,{options:{legend:n}})}function lI(r){var e=r.options,t=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return P({},r,{options:{coordinate:t}})}function uI(r){var e=r.chart,t=r.options,i=t.barStyle,n=t.barWidthRatio,a=t.minBarWidth,o=t.maxBarWidth,s=t.barBackground;return rl({chart:e,options:m(m({},t),{columnStyle:i,columnWidthRatio:n,minColumnWidth:a,maxColumnWidth:o,columnBackground:s})},!0)}function s0(r){return J(aI,oI,sI,zt,lI,uI)(r)}var cI=P({},nt.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),hI=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="bar",t}return e.getDefaultOptions=function(){return cI},e.prototype.changeData=function(t){var i,n;this.updateOption({data:t});var a=this,o=a.chart,s=a.options,l=s.isPercent,u=s.xField,c=s.yField,h=s.xAxis,f=s.yAxis;i=[c,u],u=i[0],c=i[1],n=[f,h],h=n[0],f=n[1];var v=m(m({},s),{xField:u,yField:c,yAxis:f,xAxis:h});bh({chart:o,options:v}),o.changeData(Na(t,u,c,u,l))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s0},e}(nt),fI=P({},nt.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),vI=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="column",t}return e.getDefaultOptions=function(){return fI},e.prototype.changeData=function(t){this.updateOption({data:t});var i=this.options,n=i.yField,a=i.xField,o=i.isPercent,s=this,l=s.chart,u=s.options;bh({chart:l,options:u}),this.chart.changeData(Na(t,n,a,n,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return rl},e}(nt),Gl,_r="$$percentage$$",qr="$$mappingValue$$",gr="$$conversion$$",zu="$$totalPercentage$$",ma="$$x$$",xa="$$y$$",dI={appendPadding:[0,80],minSize:0,maxSize:1,meta:(Gl={},Gl[qr]={min:0,max:1,nice:!1},Gl),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},l0="CONVERSION_TAG_NAME";function Ch(r,e,t){var i=[],n=t.yField,a=t.maxSize,o=t.minSize,s=A(xp(e,n),[n]),l=rt(a)?a:1,u=rt(o)?o:0;return i=Mt(r,function(c,h){var f=(c[n]||0)/s;return c[_r]=f,c[qr]=(l-u)*f+u,c[gr]=[A(r,[h-1,n]),c[n]],c}),i}function Sh(r){return function(e){var t=e.chart,i=e.options,n=i.conversionTag,a=i.filteredData,o=a||t.getOptions().data;if(n){var s=n.formatter;o.forEach(function(l,u){if(!(u<=0||Number.isNaN(l[qr]))){var c=r(l,u,o,{top:!0,name:l0,text:{content:_(s)?s(l,o):s,offsetX:n.offsetX,offsetY:n.offsetY,position:"end",autoRotate:!1,style:m({textAlign:"start",textBaseline:"middle"},n.style)}});t.annotation().line(c)}})}return e}}function pI(r){var e=r.chart,t=r.options,i=t.data,n=i===void 0?[]:i,a=t.yField,o=t.maxSize,s=t.minSize,l=Ch(n,n,{yField:a,maxSize:o,minSize:s});return e.data(l),r}function gI(r){var e=r.chart,t=r.options,i=t.xField,n=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.shape,u=l===void 0?"funnel":l,c=t.funnelStyle,h=t.state,f=Oe(o,[i,n]),v=f.fields,d=f.formatter;pe({chart:e,options:{type:"interval",xField:i,yField:qr,colorField:i,tooltipFields:R(v)&&v.concat([_r,gr]),mapping:{shape:u,tooltip:d,color:a,style:c},label:s,state:h}});var p=jt(r.chart,"interval");return p.adjust("symmetric"),r}function yI(r){var e=r.chart,t=r.options,i=t.isTransposed;return e.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),r}function u0(r){var e=r.options,t=r.chart,i=e.maxSize,n=A(t,["geometries","0","dataArray"],[]),a=A(t,["options","data","length"]),o=Mt(n,function(l){return A(l,["0","nextPoints","0","x"])*a-.5}),s=function(l,u,c,h){var f=i-(i-l[qr])/2;return m(m({},h),{start:[o[u-1]||u-.5,f],end:[o[u-1]||u-.5,f+.05]})};return Sh(s)(r),r}function c0(r){return J(pI,gI,yI,u0)(r)}function mI(r){var e,t=r.chart,i=r.options,n=i.data,a=n===void 0?[]:n,o=i.yField;return t.data(a),t.scale((e={},e[o]={sync:!0},e)),r}function xI(r){var e=r.chart,t=r.options,i=t.data,n=t.xField,a=t.yField,o=t.color,s=t.compareField,l=t.isTransposed,u=t.tooltip,c=t.maxSize,h=t.minSize,f=t.label,v=t.funnelStyle,d=t.state,p=t.showFacetTitle;return e.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:p,eachView:function(g,y){var x=l?y.rowIndex:y.columnIndex;l||g.coordinate({type:"rect",actions:[["transpose"],["scale",x===0?-1:1,-1]]});var w=Ch(y.data,i,{yField:a,maxSize:c,minSize:h});g.data(w);var b=Oe(u,[n,a,s]),C=b.fields,M=b.formatter,F=l?{offset:x===0?10:-23,position:x===0?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:x===0?"end":"start"}};pe({chart:g,options:{type:"interval",xField:n,yField:qr,colorField:n,tooltipFields:R(C)&&C.concat([_r,gr]),mapping:{shape:"funnel",tooltip:M,color:o,style:v},label:f===!1?!1:P({},F,f),state:d}})}}),r}function h0(r){var e=r.chart,t=r.index,i=r.options,n=i.conversionTag,a=i.isTransposed;(rt(t)?[e]:e.views).forEach(function(o,s){var l=A(o,["geometries","0","dataArray"],[]),u=A(o,["options","data","length"]),c=Mt(l,function(f){return A(f,["0","nextPoints","0","x"])*u-.5}),h=function(f,v,d,p){var g=(t||s)===0?-1:1;return P({},p,{start:[c[v-1]||v-.5,f[qr]],end:[c[v-1]||v-.5,f[qr]+.05],text:a?{style:{textAlign:"start"}}:{offsetX:n!==!1?g*n.offsetX:0,style:{textAlign:(t||s)===0?"end":"start"}}})};Sh(h)(P({},{chart:o,options:i}))})}function wI(r){var e=r.chart;return e.once("beforepaint",function(){return h0(r)}),r}function bI(r){return J(mI,xI,wI)(r)}function CI(r){var e=r.chart,t=r.options,i=t.data,n=i===void 0?[]:i,a=t.yField,o=Jt(n,function(u,c){return u+(c[a]||0)},0),s=xp(n,a)[a],l=Mt(n,function(u,c){var h=[],f=[];if(u[zu]=(u[a]||0)/o,c){var v=n[c-1][ma],d=n[c-1][xa];h[0]=v[3],f[0]=d[3],h[1]=v[2],f[1]=d[2]}else h[0]=-.5,f[0]=1,h[1]=.5,f[1]=1;return f[2]=f[1]-u[zu],h[2]=(f[2]+1)/4,f[3]=f[2],h[3]=-h[2],u[ma]=h,u[xa]=f,u[_r]=(u[a]||0)/s,u[gr]=[A(n,[c-1,a]),u[a]],u});return e.data(l),r}function SI(r){var e=r.chart,t=r.options,i=t.xField,n=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.funnelStyle,u=t.state,c=Oe(o,[i,n]),h=c.fields,f=c.formatter;return pe({chart:e,options:{type:"polygon",xField:ma,yField:xa,colorField:i,tooltipFields:R(h)&&h.concat([_r,gr]),label:s,state:u,mapping:{tooltip:f,color:a,style:l}}}),r}function MI(r){var e=r.chart,t=r.options,i=t.isTransposed;return e.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),r}function AI(r){var e=function(t,i,n,a){return m(m({},a),{start:[t[ma][1],t[xa][1]],end:[t[ma][1]+.05,t[xa][1]]})};return Sh(e)(r),r}function FI(r){return J(CI,SI,MI,AI)(r)}function TI(r){var e,t=r.chart,i=r.options,n=i.data,a=n===void 0?[]:n,o=i.yField;return t.data(a),t.scale((e={},e[o]={sync:!0},e)),r}function EI(r){var e=r.chart,t=r.options,i=t.seriesField,n=t.isTransposed,a=t.showFacetTitle;return e.facet("rect",{fields:[i],padding:[n?0:32,10,0,10],showTitle:a,eachView:function(o,s){c0(P({},r,{chart:o,options:{data:s.data}}))}}),r}function kI(r){return J(TI,EI)(r)}var LI=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.rendering=!1,t}return e.prototype.change=function(t){var i=this;if(!this.rendering){var n=t.seriesField,a=t.compareField,o=a?h0:u0,s=this.context.view,l=n||a?s.views:[s];Mt(l,function(u,c){var h=u.getController("annotation"),f=qt(A(h,["option"],[]),function(d){var p=d.name;return p!==l0});h.clear(!0),S(f,function(d){typeof d=="object"&&u.annotation()[d.type](d)});var v=A(u,["filteredData"],u.getOptions().data);o({chart:u,index:c,options:m(m({},t),{filteredData:Ch(v,v,t)})}),u.filterData(v),i.rendering=!0,u.render(!0)})}this.rendering=!1},e}(Ct),f0="funnel-conversion-tag",Gu="funnel-afterrender",v0={trigger:"afterrender",action:"".concat(f0,":change")};j(f0,LI);it(Gu,{start:[v0]});function II(r){var e=r.options,t=e.compareField,i=e.xField,n=e.yField,a=e.locale,o=e.funnelStyle,s=e.data,l=js(a),u={label:t?{fields:[i,n,t,_r,gr],formatter:function(h){return"".concat(h[n])}}:{fields:[i,n,_r,gr],offset:0,position:"middle",formatter:function(h){return"".concat(h[i]," ").concat(h[n])}},tooltip:{title:i,formatter:function(h){return{name:h[i],value:h[n]}}},conversionTag:{formatter:function(h){return"".concat(l.get(["conversionTag","label"]),": ").concat(o0.apply(void 0,h[gr]))}}},c;return(t||o)&&(c=function(h){return P({},t&&{lineWidth:1,stroke:"#fff"},_(o)?o(h):o)}),P({options:u},r,{options:{funnelStyle:c,data:ye(s)}})}function PI(r){var e=r.options,t=e.compareField,i=e.dynamicHeight,n=e.seriesField;return n?kI(r):t?bI(r):i?FI(r):c0(r)}function DI(r){var e,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return J(Lt((e={},e[a]=i,e[o]=n,e)))(r)}function OI(r){var e=r.chart;return e.axis(!1),r}function BI(r){var e=r.chart,t=r.options,i=t.legend;return i===!1?e.legend(!1):e.legend(i),r}function RI(r){var e=r.chart,t=r.options,i=t.interactions,n=t.dynamicHeight;return S(i,function(a){a.enable===!1?e.removeInteraction(a.type):e.interaction(a.type,a.cfg||{})}),n?e.removeInteraction(Gu):e.interaction(Gu,{start:[m(m({},v0),{arg:t})]}),r}function d0(r){return J(II,PI,DI,OI,zt,RI,BI,xt,ut,Et())(r)}var NI=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="funnel",t}return e.getDefaultOptions=function(){return dI},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return d0},e.prototype.setState=function(t,i,n){n===void 0&&(n=!0);var a=ya(this.chart);S(a,function(o){i(o.getData())&&o.setState(t,n)})},e.prototype.getStates=function(){var t=ya(this.chart),i=[];return S(t,function(n){var a=n.getData(),o=n.getStates();S(o,function(s){i.push({data:a,state:s,geometry:n.geometry,element:n})})}),i},e.CONVERSATION_FIELD=gr,e.PERCENT_FIELD=_r,e.TOTAL_PERCENT_FIELD=zu,e}(nt),mo,Mh="range",p0="type",vr="percent",zI="#f0f0f0",g0="indicator-view",y0="range-view",GI={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(mo={},mo[Mh]={sync:"v"},mo[vr]={sync:"v",tickCount:5,tickInterval:.2},mo),animation:!1};function VI(r,e){return r.map(function(t,i){var n;return n={},n[Mh]=t-(r[i-1]||0),n[p0]="".concat(i),n[vr]=e,n})}function m0(r){var e;return[(e={},e[vr]=St(r,0,1),e)]}function x0(r,e){var t=A(e,["ticks"],[]),i=Vt(t)?bi(t):[0,St(r,0,1),1];return i[0]||i.shift(),VI(i,r)}function YI(r){var e=r.chart,t=r.options,i=t.percent,n=t.range,a=t.radius,o=t.innerRadius,s=t.startAngle,l=t.endAngle,u=t.axis,c=t.indicator,h=t.gaugeStyle,f=t.type,v=t.meter,d=n.color,p=n.width;if(c){var g=m0(i),y=e.createView({id:g0});y.data(g),y.point().position("".concat(vr,"*1")).shape(c.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:c}),y.coordinate("polar",{startAngle:s,endAngle:l,radius:o*a}),y.axis(vr,u),y.scale(vr,dt(u,ce))}var x=x0(i,t.range),w=e.createView({id:y0});w.data(x);var b=K(d)?[d,zI]:d,C=Zt({chart:w,options:{xField:"1",yField:Mh,seriesField:p0,rawFields:[vr],isStack:!0,interval:{color:b,style:h,shape:f==="meter"?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:p,maxColumnWidth:p}}).ext,M=C.geometry;return M.customInfo({meter:v}),w.coordinate("polar",{innerRadius:o,radius:a,startAngle:s,endAngle:l}).transpose(),r}function $I(r){var e;return J(Lt((e={range:{min:0,max:1,maxLimit:1,minLimit:0}},e[vr]={},e)))(r)}function w0(r,e){var t=r.chart,i=r.options,n=i.statistic,a=i.percent;if(t.getController("annotation").clear(!0),n){var o=n.content,s=void 0;o&&(s=P({},{content:"".concat((a*100).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},o)),Zk(t,{statistic:m(m({},n),{content:s})},{percent:a})}return e&&t.render(!0),r}function HI(r){var e=r.chart,t=r.options,i=t.tooltip;return i?e.tooltip(P({showTitle:!1,showMarkers:!1,containerTpl:'
      ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(n,a){var o=A(a,[0,"data",vr],0);return"".concat((o*100).toFixed(2),"%")}},i)):e.tooltip(!1),r}function XI(r){var e=r.chart;return e.legend(!1),r}function b0(r){return J(ut,xt,YI,$I,HI,w0,At,Et(),XI)(r)}ft("point","gauge-indicator",{draw:function(r,e){var t=r.customInfo,i=t.indicator,n=t.defaultColor,a=i,o=a.pointer,s=a.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return o&&l.addShape("line",{name:"pointer",attrs:m({x1:u.x,y1:u.y,x2:r.x,y2:r.y,stroke:n},o.style)}),s&&l.addShape("circle",{name:"pin",attrs:m({x:u.x,y:u.y,stroke:n},s.style)}),l}});ft("interval","meter-gauge",{draw:function(r,e){var t=r.customInfo.meter,i=t===void 0?{}:t,n=i.steps,a=n===void 0?50:n,o=i.stepRatio,s=o===void 0?.5:o;a=a<1?1:a,s=St(s,0,1);var l=this.coordinate,u=l.startAngle,c=l.endAngle,h=0;if(s>0&&s<1){var f=c-u;h=f/a/(s/(1-s)+1-1/a)}for(var v=h/(1-s)*s,d=e.addGroup(),p=this.coordinate.getCenter(),g=this.coordinate.getRadius(),y=ve.getAngle(r,this.coordinate),x=y.startAngle,w=y.endAngle,b=x;b1?l/(i-1):s.max),!t&&!i){var c=_I(o);u=l/c}var h={},f=xe(a,n);fe(f)?S(a,function(d){var p=d[e],g=Sd(p,u,i),y="".concat(g[0],"-").concat(g[1]);Vr(h,y)||(h[y]={range:g,count:0}),h[y].count+=1}):Object.keys(f).forEach(function(d){S(f[d],function(p){var g=p[e],y=Sd(g,u,i),x="".concat(y[0],"-").concat(y[1]),w="".concat(x,"-").concat(d);Vr(h,w)||(h[w]={range:y,count:0},h[w][n]=d),h[w].count+=1})});var v=[];return S(h,function(d){v.push(d)}),v}var rs="range",wa="count",qI=P({},nt.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function UI(r){var e=r.chart,t=r.options,i=t.data,n=t.binField,a=t.binNumber,o=t.binWidth,s=t.color,l=t.stackField,u=t.legend,c=t.columnStyle,h=C0(i,n,o,a,l);e.data(h);var f=P({},r,{options:{xField:rs,yField:wa,seriesField:l,isStack:!0,interval:{color:s,style:c}}});return Zt(f),u&&l?e.legend(l,u):e.legend(!1),r}function jI(r){var e,t=r.options,i=t.xAxis,n=t.yAxis;return J(Lt((e={},e[rs]=i,e[wa]=n,e)))(r)}function ZI(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis;return i===!1?e.axis(rs,!1):e.axis(rs,i),n===!1?e.axis(wa,!1):e.axis(wa,n),r}function QI(r){var e=r.chart,t=r.options,i=t.label,n=jt(e,"interval");if(!i)n.label(!1);else{var a=i.callback,o=gt(i,["callback"]);n.label({fields:[wa],callback:a,cfg:Yt(o)})}return r}function S0(r){return J(ut,Se("columnStyle"),UI,jI,ZI,Kr,QI,zt,At,xt)(r)}var KI=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="histogram",t}return e.getDefaultOptions=function(){return qI},e.prototype.changeData=function(t){this.updateOption({data:t});var i=this.options,n=i.binField,a=i.binNumber,o=i.binWidth,s=i.stackField;this.chart.changeData(C0(t,n,o,a,s))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return S0},e}(nt),JI=P({},nt.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),tP=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.active=function(){var t=this.getView(),i=this.context.event;if(i.data){var n=i.data.items,a=t.geometries.filter(function(o){return o.type==="point"});S(a,function(o){S(o.elements,function(s){var l=gp(n,function(u){return u.data===s.data})!==-1;s.setState("active",l)})})}},e.prototype.reset=function(){var t=this.getView(),i=t.geometries.filter(function(n){return n.type==="point"});S(i,function(n){S(n.elements,function(a){a.setState("active",!1)})})},e.prototype.getView=function(){return this.context.view},e}(Ct);j("marker-active",tP);it("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var eP=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="line",t}return e.getDefaultOptions=function(){return JI},e.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;el({chart:n,options:a}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return i0},e}(nt),M0=P({},nt.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),rP=[1,0,0,0,1,0,0,0,1];function Vu(r,e){var t=e?Z([],e,!0):Z([],rP,!0);return ve.transform(t,r)}var iP=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getActiveElements=function(){var t=ve.getDelegationObject(this.context);if(t){var i=this.context.view,n=t.component,a=t.item,o=n.get("field");if(o){var s=i.geometries[0].elements;return s.filter(function(l){return l.getModel().data[o]===a.value})}}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,i=this.getActiveElements(),n=t.geometries[0].labelsContainer.getChildren();return n.filter(function(a){return i.find(function(o){return Pt(o.getData(),a.get("data"))})})},e.prototype.transfrom=function(t){t===void 0&&(t=7.5);var i=this.getActiveElements(),n=this.getActiveElementLabels();i.forEach(function(a,o){var s=n[o],l=a.geometry.coordinate;if(l.isPolar&&l.isTransposed){var u=ve.getAngle(a.getModel(),l),c=u.startAngle,h=u.endAngle,f=(c+h)/2,v=t,d=v*Math.cos(f),p=v*Math.sin(f);a.shape.setMatrix(Vu([["t",d,p]])),s.setMatrix(Vu([["t",d,p]]))}})},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(Ct);function nP(r){var e=r.event,t,i=e.target;return i&&(t=i.get("element")),t}var aP=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getAnnotations=function(t){var i=t||this.context.view;return i.getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,i=this.context.view;i.removeInteraction("tooltip"),i.on("afterchangesize",function(){var n=t.getAnnotations(i);t.initialAnnotation=n})},e.prototype.change=function(t){var i=this.context,n=i.view,a=i.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var o=A(a,["data","data"]);if(a.type.match("legend-item")){var s=ve.getDelegationObject(this.context),l=n.getGroupedFields()[0];if(s&&l){var u=s.item;o=n.getData().find(function(v){return v[l]===u.value})}}if(o){var c=A(t,"annotations",[]),h=A(t,"statistic",{});n.getController("annotation").clear(!0),S(c,function(v){typeof v=="object"&&n.annotation()[v.type](v)}),qs(n,{statistic:h,plotType:"pie"},o),n.render(!0)}var f=nP(this.context);f&&f.shape.toFront()},e.prototype.reset=function(){var t=this.context.view,i=t.getController("annotation");i.clear(!0);var n=this.getInitialAnnotation();S(n,function(a){t.annotation()[a.type](a)}),t.render(!0)},e}(Ct),A0="pie-statistic";j(A0,aP);it("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]});j("pie-legend",iP);it("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});function oP(r,e){var t=null;return S(r,function(i){typeof i[e]=="number"&&(t+=i[e])}),t}function sP(r,e){var t;switch(r){case"inner":return t="-30%",K(e)&&e.endsWith("%")?parseFloat(e)*.01>0?t:e:e<0?e:t;case"outer":return t=12,K(e)&&e.endsWith("%")?parseFloat(e)*.01<0?t:e:e>0?e:t;default:return e}}function is(r,e){return ec(un(r,e),function(t){return t[e]===0})}function lP(r){var e=r.chart,t=r.options,i=t.data,n=t.angleField,a=t.colorField,o=t.color,s=t.pieStyle,l=t.shape,u=un(i,n);if(is(u,n)){var c="$$percentage$$";u=u.map(function(f){var v;return m(m({},f),(v={},v[c]=1/u.length,v))}),e.data(u);var h=P({},r,{options:{xField:"1",yField:c,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Zt(h)}else{e.data(u);var h=P({},r,{options:{xField:"1",yField:n,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Zt(h)}return r}function uP(r){var e,t=r.chart,i=r.options,n=i.meta,a=i.colorField,o=P({},n);return t.scale(o,(e={},e[a]={type:"cat"},e)),r}function cP(r){var e=r.chart,t=r.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return e.coordinate({type:"theta",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}),r}function hP(r){var e=r.chart,t=r.options,i=t.label,n=t.colorField,a=t.angleField,o=e.geometries[0];if(!i)o.label(!1);else{var s=i.callback,l=gt(i,["callback"]),u=Yt(l);if(u.content){var c=u.content;u.content=function(d,p,g){var y=d[n],x=d[a],w=e.getScaleByField(a),b=w==null?void 0:w.scale(x);return _(c)?c(m(m({},d),{percent:b}),p,g):K(c)?Xm(c,{value:x,name:y,percentage:rt(b)&&!B(x)?"".concat((b*100).toFixed(2),"%"):null}):c}}var h={inner:"",outer:"pie-outer",spider:"pie-spider"},f=u.type?h[u.type]:"pie-outer",v=u.layout?R(u.layout)?u.layout:[u.layout]:[];u.layout=(f?[{type:f}]:[]).concat(v),o.label({fields:n?[a,n]:[a],callback:s,cfg:m(m({},u),{offset:sP(u.type,u.offset),type:"pie"})})}return r}function F0(r){var e=r.innerRadius,t=r.statistic,i=r.angleField,n=r.colorField,a=r.meta,o=r.locale,s=js(o);if(e&&t){var l=P({},M0.statistic,t),u=l.title,c=l.content;return u!==!1&&(u=P({},{formatter:function(h){var f=h?h[n]:B(u.content)?s.get(["statistic","total"]):u.content,v=A(a,[n,"formatter"])||function(d){return d};return v(f)}},u)),c!==!1&&(c=P({},{formatter:function(h,f){var v=h?h[i]:oP(f,i),d=A(a,[i,"formatter"])||function(p){return p};return h||B(c.content)?d(v):c.content}},c)),P({},{statistic:{title:u,content:c}},r)}return r}function T0(r){var e=r.chart,t=r.options,i=F0(t),n=i.innerRadius,a=i.statistic;return e.getController("annotation").clear(!0),J(Et())(r),n&&a&&qs(e,{statistic:a,plotType:"pie"}),r}function fP(r){var e=r.chart,t=r.options,i=t.tooltip,n=t.colorField,a=t.angleField,o=t.data;if(i===!1)e.tooltip(i);else if(e.tooltip(P({},i,{shared:!1})),is(o,a)){var s=A(i,"fields"),l=A(i,"formatter");fe(A(i,"fields"))&&(s=[n,a],l=l||function(u){return{name:u[n],value:ss(u[a])}}),e.geometries[0].tooltip(s.join("*"),Yi(s,l))}return r}function vP(r){var e=r.chart,t=r.options,i=F0(t),n=i.interactions,a=i.statistic,o=i.annotations;return S(n,function(s){var l,u;if(s.enable===!1)e.removeInteraction(s.type);else if(s.type==="pie-statistic-active"){var c=[];!((l=s.cfg)===null||l===void 0)&&l.start||(c=[{trigger:"element:mouseenter",action:"".concat(A0,":change"),arg:{statistic:a,annotations:o}}]),S((u=s.cfg)===null||u===void 0?void 0:u.start,function(h){c.push(m(m({},h),{arg:{statistic:a,annotations:o}}))}),e.interaction(s.type,P({},s.cfg,{start:c}))}else e.interaction(s.type,s.cfg||{})}),r}function E0(r){return J(Se("pieStyle"),lP,uP,ut,cP,xn,fP,hP,Kr,T0,vP,xt)(r)}var dP=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="pie",t}return e.getDefaultOptions=function(){return M0},e.prototype.changeData=function(t){this.chart.emit(ot.BEFORE_CHANGE_DATA,Tt.fromData(this.chart,ot.BEFORE_CHANGE_DATA,null));var i=this.options,n=this.options.angleField,a=un(i.data,n),o=un(t,n);is(a,n)||is(o,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),T0({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(ot.AFTER_CHANGE_DATA,Tt.fromData(this.chart,ot.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return E0},e}(nt),k0=["#FAAD14","#E8EDF3"],pP={percent:.2,color:k0,animation:{}};function Ah(r){var e=St(Fi(r)?r:0,0,1);return[{current:"".concat(e),type:"current",percent:e},{current:"".concat(e),type:"target",percent:1}]}function L0(r){var e=r.chart,t=r.options,i=t.percent,n=t.progressStyle,a=t.color,o=t.barWidthRatio;e.data(Ah(i));var s=P({},r,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:o,interval:{style:n,color:K(a)?[a,k0[1]]:a},args:{zIndexReversed:!0,sortZIndex:!0}}});return Zt(s),e.tooltip(!1),e.axis(!1),e.legend(!1),r}function gP(r){var e=r.chart;return e.coordinate("rect").transpose(),r}function I0(r){return J(L0,Lt({}),gP,xt,ut,Et())(r)}var yP=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="process",t}return e.getDefaultOptions=function(){return pP},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Ah(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return I0},e}(nt);function mP(r){var e=r.chart,t=r.options,i=t.innerRadius,n=t.radius;return e.coordinate("theta",{innerRadius:i,radius:n}),r}function P0(r,e){var t=r.chart,i=r.options,n=i.innerRadius,a=i.statistic,o=i.percent,s=i.meta;if(t.getController("annotation").clear(!0),n&&a){var l=A(s,["percent","formatter"])||function(c){return"".concat((c*100).toFixed(2),"%")},u=a.content;u&&(u=P({},u,{content:B(u.content)?l(o):u.content})),qs(t,{statistic:m(m({},a),{content:u}),plotType:"ring-progress"},{percent:o})}return e&&t.render(!0),r}function D0(r){return J(L0,Lt({}),mP,P0,xt,ut,Et())(r)}var xP={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},wP=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="ring-process",t}return e.getDefaultOptions=function(){return xP},e.prototype.changeData=function(t){this.chart.emit(ot.BEFORE_CHANGE_DATA,Tt.fromData(this.chart,ot.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Ah(t)),P0({chart:this.chart,options:this.options},!0),this.chart.emit(ot.AFTER_CHANGE_DATA,Tt.fromData(this.chart,ot.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return D0},e}(nt);function Ur(r,e){return bP(r)||CP(r,e)||SP()}function bP(r){if(Array.isArray(r))return r}function CP(r,e){var t=[],i=!0,n=!1,a=void 0;try{for(var o=r[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(t.push(s.value),!(e&&t.length===e));i=!0);}catch(l){n=!0,a=l}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw a}}return t}function SP(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Fh(r,e,t,i){r=r.filter(function(d,p){var g=e(d,p),y=t(d,p);return g!=null&&isFinite(g)&&y!=null&&isFinite(y)}),i&&r.sort(function(d,p){return e(d)-e(p)});for(var n=r.length,a=new Float64Array(n),o=new Float64Array(n),s=0,l=0,u,c,h,f=0;fn&&(c.splice(v+1,0,y),f=!0)}return f}}function Ga(r,e,t,i){var n=i-r*r,a=Math.abs(n)<1e-24?0:(t-r*e)/n,o=e-a*r;return[o,a]}function AP(){var r=function(a){return a[0]},e=function(a){return a[1]},t;function i(n){var a=0,o=0,s=0,l=0,u=0,c=0,h=t?+t[0]:1/0,f=t?+t[1]:-1/0;Di(n,r,e,function(w,b){var C=Math.log(b),M=w*b;++a,o+=(b-o)/a,l+=(M-l)/a,c+=(w*M-c)/a,s+=(b*C-s)/a,u+=(M*C-u)/a,t||(wf&&(f=w))});var v=Ga(l/o,s/o,u/o,c/o),d=Ur(v,2),p=d[0],g=d[1];p=Math.exp(p);var y=function(b){return p*Math.exp(g*b)},x=za(h,f,y);return x.a=p,x.b=g,x.predict=y,x.rSquared=bn(n,r,e,o,y),x}return i.domain=function(n){return arguments.length?(t=n,i):t},i.x=function(n){return arguments.length?(r=n,i):r},i.y=function(n){return arguments.length?(e=n,i):e},i}function O0(){var r=function(a){return a[0]},e=function(a){return a[1]},t;function i(n){var a=0,o=0,s=0,l=0,u=0,c=t?+t[0]:1/0,h=t?+t[1]:-1/0;Di(n,r,e,function(x,w){++a,o+=(x-o)/a,s+=(w-s)/a,l+=(x*w-l)/a,u+=(x*x-u)/a,t||(xh&&(h=x))});var f=Ga(o,s,l,u),v=Ur(f,2),d=v[0],p=v[1],g=function(w){return p*w+d},y=[[c,g(c)],[h,g(h)]];return y.a=p,y.b=d,y.predict=g,y.rSquared=bn(n,r,e,s,g),y}return i.domain=function(n){return arguments.length?(t=n,i):t},i.x=function(n){return arguments.length?(r=n,i):r},i.y=function(n){return arguments.length?(e=n,i):e},i}function FP(r){r.sort(function(t,i){return t-i});var e=r.length/2;return e%1===0?(r[e-1]+r[e])/2:r[Math.floor(e)]}var Ad=2,Fd=1e-12;function TP(){var r=function(a){return a[0]},e=function(a){return a[1]},t=.3;function i(n){for(var a=Fh(n,r,e,!0),o=Ur(a,4),s=o[0],l=o[1],u=o[2],c=o[3],h=s.length,f=Math.max(2,~~(t*h)),v=new Float64Array(h),d=new Float64Array(h),p=new Float64Array(h).fill(1),g=-1;++g<=Ad;){for(var y=[0,f-1],x=0;xs[C]-w?b:C,F=0,T=0,L=0,k=0,I=0,O=1/Math.abs(s[M]-w||1),N=b;N<=C;++N){var Y=s[N],q=l[N],D=EP(Math.abs(w-Y)*O)*p[N],z=Y*D;F+=D,T+=z,L+=q*D,k+=q*z,I+=Y*z}var X=Ga(T/F,L/F,k/F,I/F),$=Ur(X,2),V=$[0],W=$[1];v[x]=V+W*w,d[x]=Math.abs(l[x]-v[x]),kP(s,x+1,y)}if(g===Ad)break;var et=FP(d);if(Math.abs(et)=1?Fd:(tt=1-Q*Q)*tt}return LP(s,v,u,c)}return i.bandwidth=function(n){return arguments.length?(t=n,i):t},i.x=function(n){return arguments.length?(r=n,i):r},i.y=function(n){return arguments.length?(e=n,i):e},i}function EP(r){return(r=1-r*r*r)*r*r}function kP(r,e,t){var i=r[e],n=t[0],a=t[1]+1;if(!(a>=r.length))for(;e>n&&r[a]-i<=i-r[n];)t[0]=++n,t[1]=a,++a}function LP(r,e,t,i){for(var n=r.length,a=[],o=0,s=0,l=[],u;of&&(f=b))});var d=Ga(s,l,u,c),p=Ur(d,2),g=p[0],y=p[1],x=function(C){return y*Math.log(C)/v+g},w=za(h,f,x);return w.a=y,w.b=g,w.predict=x,w.rSquared=bn(a,r,e,l,x),w}return n.domain=function(a){return arguments.length?(i=a,n):i},n.x=function(a){return arguments.length?(r=a,n):r},n.y=function(a){return arguments.length?(e=a,n):e},n.base=function(a){return arguments.length?(t=a,n):t},n}function B0(){var r=function(a){return a[0]},e=function(a){return a[1]},t;function i(n){var a=Fh(n,r,e),o=Ur(a,4),s=o[0],l=o[1],u=o[2],c=o[3],h=s.length,f=0,v=0,d=0,p=0,g=0,y,x,w,b;for(y=0;yT&&(T=D))});var L=d-f*f,k=f*L-v*v,I=(g*f-p*v)/k,O=(p*L-g*v)/k,N=-I*f,Y=function(z){return z=z-u,I*z*z+O*z+N+c},q=za(F,T,Y);return q.a=I,q.b=O-2*I*u,q.c=N-O*u+I*u*u+c,q.predict=Y,q.rSquared=bn(n,r,e,C,Y),q}return i.domain=function(n){return arguments.length?(t=n,i):t},i.x=function(n){return arguments.length?(r=n,i):r},i.y=function(n){return arguments.length?(e=n,i):e},i}function PP(){var r=function(o){return o[0]},e=function(o){return o[1]},t=3,i;function n(a){if(t===1){var o=O0().x(r).y(e).domain(i)(a);return o.coefficients=[o.b,o.a],delete o.a,delete o.b,o}if(t===2){var s=B0().x(r).y(e).domain(i)(a);return s.coefficients=[s.c,s.b,s.a],delete s.a,delete s.b,delete s.c,s}var l=Fh(a,r,e),u=Ur(l,4),c=u[0],h=u[1],f=u[2],v=u[3],d=c.length,p=[],g=[],y=t+1,x=0,w=0,b=i?+i[0]:1/0,C=i?+i[1]:-1/0;Di(a,r,e,function(Y,q){++w,x+=(q-x)/w,i||(YC&&(C=Y))});var M,F,T,L,k;for(M=0;M=0;--a)for(s=e[a],l=1,n[a]+=s,o=1;o<=a;++o)l*=(a+1-o)/o,n[a-o]+=s*Math.pow(t,o)*l;return n[0]+=i,n}function OP(r){var e=r.length-1,t=[],i,n,a,o,s;for(i=0;iMath.abs(r[i][o])&&(o=n);for(a=i;a=i;a--)r[a][n]-=r[a][i]*r[i][n]/r[i][i]}for(n=e-1;n>=0;--n){for(s=0,a=n+1;af&&(f=w))});var v=Ga(o,s,l,u),d=Ur(v,2),p=d[0],g=d[1];p=Math.exp(p);var y=function(b){return p*Math.pow(b,g)},x=za(h,f,y);return x.a=p,x.b=g,x.predict=y,x.rSquared=bn(n,r,e,c,y),x}return i.domain=function(n){return arguments.length?(t=n,i):t},i.x=function(n){return arguments.length?(r=n,i):r},i.y=function(n){return arguments.length?(e=n,i):e},i}var RP={exp:AP,linear:O0,loess:TP,log:IP,poly:PP,pow:BP,quad:B0};function NP(r,e){var t=10,i={regionStyle:[{position:{start:[r,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[r,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[r,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[r,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-t,offsetY:-t,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:t,offsetY:-t,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:t,offsetY:t,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-t,offsetY:t,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]};return i}var zP=function(r,e){var t=e.view,i=e.options,n=i.xField,a=i.yField,o=t.getScaleByField(n),s=t.getScaleByField(a),l=r.map(function(u){return t.getCoordinate().convert({x:o.scale(u[0]),y:s.scale(u[1])})});return jk(l,!1)},GP=function(r){var e=r.options,t=e.xField,i=e.yField,n=e.data,a=e.regressionLine,o=a.type,s=o===void 0?"linear":o,l=a.algorithm,u=a.equation,c,h=null;if(l)c=R(l)?l:l(n),h=u;else{var f=RP[s]().x(function(v){return v[t]}).y(function(v){return v[i]});c=f(n),h=YP(s,c)}return[zP(c,r),h]},VP=function(r){var e,t=r.meta,i=t===void 0?{}:t,n=r.xField,a=r.yField,o=r.data,s=o[0][n],l=o[0][a],u=s>0,c=l>0;function h(f,v){var d=A(i,[f]);function p(y){return A(d,y)}var g={};return v==="x"?(rt(s)&&(rt(p("min"))||(g.min=u?0:s*2),rt(p("max"))||(g.max=u?s*2:0)),g):(rt(l)&&(rt(p("min"))||(g.min=c?0:l*2),rt(p("max"))||(g.max=c?l*2:0)),g)}return m(m({},i),(e={},e[n]=m(m({},i[n]),h(n,"x")),e[a]=m(m({},i[a]),h(a,"y")),e))};function YP(r,e){var t,i,n,a=function(u,c){return c===void 0&&(c=4),Math.round(u*Math.pow(10,c))/Math.pow(10,c)},o=function(u){return Number.isFinite(u)?a(u):"?"};switch(r){case"linear":return"y = ".concat(o(e.a),"x + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"exp":return"y = ".concat(o(e.a),"e^(").concat(o(e.b),"x), R^2 = ").concat(o(e.rSquared));case"log":return"y = ".concat(o(e.a),"ln(x) + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"quad":return"y = ".concat(o(e.a),"x^2 + ").concat(o(e.b),"x + ").concat(o(e.c),", R^2 = ").concat(o(e.rSquared));case"poly":for(var s="y = ".concat(o((t=e.coefficients)===null||t===void 0?void 0:t[0])," + ").concat(o((i=e.coefficients)===null||i===void 0?void 0:i[1]),"x + ").concat(o((n=e.coefficients)===null||n===void 0?void 0:n[2]),"x^2"),l=3;l
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},aD={appendPadding:2,tooltip:m({},$0),animation:{}};function oD(r){var e=r.chart,t=r.options,i=t.data,n=t.color,a=t.areaStyle,o=t.point,s=t.line,l=o==null?void 0:o.state,u=Oi(i);e.data(u);var c=P({},r,{options:{xField:Ca,yField:Ki,area:{color:n,style:a},line:s,point:o}}),h=P({},c,{options:{tooltip:!1}}),f=P({},c,{options:{tooltip:!1,state:l}});return Zs(c),wn(h),Me(f),e.axis(!1),e.legend(!1),r}function Cn(r){var e,t,i=r.options,n=i.xAxis,a=i.yAxis,o=i.data,s=Oi(o);return J(Lt((e={},e[Ca]=n,e[Ki]=a,e),(t={},t[Ca]={type:"cat"},t[Ki]=fh(s,Ki),t)))(r)}function H0(r){return J(Se("areaStyle"),oD,Cn,zt,ut,xt,Et())(r)}var sD={appendPadding:2,tooltip:m({},$0),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},lD=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="tiny-area",t}return e.getDefaultOptions=function(){return sD},e.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Cn({chart:n,options:a}),n.changeData(Oi(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return H0},e}(nt);function uD(r){var e=r.chart,t=r.options,i=t.data,n=t.color,a=t.columnStyle,o=t.columnWidthRatio,s=Oi(i);e.data(s);var l=P({},r,{options:{xField:Ca,yField:Ki,widthRatio:o,interval:{style:a,color:n}}});return Zt(l),e.axis(!1),e.legend(!1),e.interaction("element-active"),r}function X0(r){return J(ut,Se("columnStyle"),uD,Cn,zt,xt,Et())(r)}var cD={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(r,e){return"".concat(A(e,[0,"data","y"],0))},containerTpl:'
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},hD={appendPadding:2,tooltip:m({},cD),animation:{}},fD=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="tiny-column",t}return e.getDefaultOptions=function(){return hD},e.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Cn({chart:n,options:a}),n.changeData(Oi(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return X0},e}(nt);function vD(r){var e=r.chart,t=r.options,i=t.data,n=t.color,a=t.lineStyle,o=t.point,s=o==null?void 0:o.state,l=Oi(i);e.data(l);var u=P({},r,{options:{xField:Ca,yField:Ki,line:{color:n,style:a},point:o}}),c=P({},u,{options:{tooltip:!1,state:s}});return wn(u),Me(c),e.axis(!1),e.legend(!1),r}function W0(r){return J(vD,Cn,ut,zt,xt,Et())(r)}var dD=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="tiny-line",t}return e.getDefaultOptions=function(){return aD},e.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Cn({chart:n,options:a}),n.changeData(Oi(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return W0},e}(nt),pD={line:i0,pie:E0,column:rl,bar:s0,area:n0,gauge:b0,"tiny-line":W0,"tiny-column":X0,"tiny-area":H0,"ring-progress":D0,progress:I0,scatter:N0,histogram:S0,funnel:d0,stock:Y0},gD={line:eP,pie:dP,column:vI,bar:hI,area:$L,gauge:WI,"tiny-line":dD,"tiny-column":fD,"tiny-area":lD,"ring-progress":wP,progress:yP,scatter:ZP,histogram:KI,funnel:NI,stock:nD},yD={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function Yu(r,e,t){var i=gD[r];if(!i){console.error("could not find ".concat(r," plot"));return}var n=pD[r];n({chart:e,options:P({},i.getDefaultOptions(),A(yD,r,{}),t)})}function mD(r){var e=r.chart,t=r.options,i=t.views,n=t.legend;return S(i,function(a){var o=a.region,s=a.data,l=a.meta,u=a.axes,c=a.coordinate,h=a.interactions,f=a.annotations,v=a.tooltip,d=a.geometries,p=e.createView({region:o});p.data(s);var g={};u&&S(u,function(y,x){g[x]=dt(y,ce)}),g=P({},l,g),p.scale(g),u?S(u,function(y,x){p.axis(x,y)}):p.axis(!1),p.coordinate(c),S(d,function(y){var x=pe({chart:p,options:y}).ext,w=y.adjust;w&&x.geometry.adjust(w)}),S(h,function(y){y.enable===!1?p.removeInteraction(y.type):p.interaction(y.type,y.cfg)}),S(f,function(y){p.annotation()[y.type](m({},y))}),typeof a.animation=="boolean"?p.animate(!1):(p.animate(!0),S(p.geometries,function(y){y.animate(a.animation)})),v&&(p.interaction("tooltip"),p.tooltip(v))}),n?S(n,function(a,o){e.legend(o,a)}):e.legend(!1),e.tooltip(t.tooltip),r}function xD(r){var e=r.chart,t=r.options,i=t.plots,n=t.data,a=n===void 0?[]:n;return S(i,function(o){var s=o.type,l=o.region,u=o.options,c=u===void 0?{}:u,h=o.top,f=c.tooltip;if(h){Yu(s,e,m(m({},c),{data:a}));return}var v=e.createView(m({region:l},dt(c,Jm)));f&&v.interaction("tooltip"),Yu(s,v,m({data:a},c))}),r}function wD(r){var e=r.chart,t=r.options;return e.option("slider",t.slider),r}function bD(r){return J(xt,mD,xD,At,xt,ut,zt,wD,Et())(r)}function CD(r,e){var t=r.getModel(),i=t.data,n;return R(i)?n=i[0][e]:n=i[e],n}function SD(r){var e=ts(r);S(e,function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)})}var MD=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getAssociationItems=function(t,i){var n,a=this.context.event,o=i||{},s=o.linkField,l=o.dim,u=[];if(!((n=a.data)===null||n===void 0)&&n.data){var c=a.data.data;S(t,function(h){var f,v,d=s;if(l==="x"?d=h.getXScale().field:l==="y"?d=(f=h.getYScales().find(function(g){return g.field===d}))===null||f===void 0?void 0:f.field:d||(d=(v=h.getGroupScales()[0])===null||v===void 0?void 0:v.field),!!d){var p=Mt(ts(h),function(g){var y=!1,x=!1,w=R(c)?A(c[0],d):A(c,d);return CD(g,d)===w?y=!0:x=!0,{element:g,view:h,active:y,inactive:x}});u.push.apply(u,p)}})}return u},e.prototype.showTooltip=function(t){var i=wd(this.context.view),n=this.getAssociationItems(i,t);S(n,function(a){if(a.active){var o=a.element.shape.getCanvasBBox();a.view.showTooltip({x:o.minX+o.width/2,y:o.minY+o.height/2})}})},e.prototype.hideTooltip=function(){var t=wd(this.context.view);S(t,function(i){i.hideTooltip()})},e.prototype.active=function(t){var i=Gn(this.context.view),n=this.getAssociationItems(i,t);S(n,function(a){var o=a.active,s=a.element;o&&s.setState("active",!0)})},e.prototype.selected=function(t){var i=Gn(this.context.view),n=this.getAssociationItems(i,t);S(n,function(a){var o=a.active,s=a.element;o&&s.setState("selected",!0)})},e.prototype.highlight=function(t){var i=Gn(this.context.view),n=this.getAssociationItems(i,t);S(n,function(a){var o=a.inactive,s=a.element;o&&s.setState("inactive",!0)})},e.prototype.reset=function(){var t=Gn(this.context.view);S(t,function(i){SD(i)})},e}(Ct);j("association",MD);it("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]});it("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]});it("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]});it("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="mix",t}return e.prototype.getSchemaAdaptor=function(){return bD},e})(nt);var Td;(function(r){r.DEV="DEV",r.BETA="BETA",r.STABLE="STABLE"})(Td||(Td={}));var tr="first-axes-view",er="second-axes-view",ci="series-field-key";function _0(r,e,t,i,n){var a=[];e.forEach(function(h){i.forEach(function(f){var v,d=(v={},v[r]=f[r],v[t]=h,v[h]=f[h],v);a.push(d)})});var o=Object.values(xe(a,t)),s=o[0],l=s===void 0?[]:s,u=o[1],c=u===void 0?[]:u;return n?[l.reverse(),c.reverse()]:[l,c]}function dr(r){return r!=="vertical"}function AD(r,e,t){var i=e[0],n=e[1],a=i.autoPadding,o=n.autoPadding,s=r.__axisPosition,l=s.layout,u=s.position;if(dr(l)&&u==="top"&&(i.autoPadding=t.instance(a.top,0,a.bottom,a.left),n.autoPadding=t.instance(o.top,a.left,o.bottom,0)),dr(l)&&u==="bottom"&&(i.autoPadding=t.instance(a.top,a.right/2+5,a.bottom,a.left),n.autoPadding=t.instance(o.top,o.right,o.bottom,a.right/2+5)),!dr(l)&&u==="bottom"){var c=a.left>=o.left?a.left:o.left;i.autoPadding=t.instance(a.top,a.right,a.bottom/2+5,c),n.autoPadding=t.instance(a.bottom/2+5,o.right,o.bottom,c)}if(!dr(l)&&u==="top"){var c=a.left>=o.left?a.left:o.left;i.autoPadding=t.instance(a.top,a.right,0,c),n.autoPadding=t.instance(0,o.right,a.top,c)}}function FD(r){var e=r.chart,t=r.options,i=t.data,n=t.xField,a=t.yField,o=t.color,s=t.barStyle,l=t.widthRatio,u=t.legend,c=t.layout,h=_0(n,a,ci,i,dr(c));u?e.legend(ci,u):u===!1&&e.legend(!1);var f,v,d=h[0],p=h[1];dr(c)?(f=e.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:tr}),f.coordinate().transpose().reflect("x"),v=e.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:er}),v.coordinate().transpose(),f.data(d),v.data(p)):(f=e.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:tr}),v=e.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:er}),v.coordinate().reflect("y"),f.data(d),v.data(p));var g=P({},r,{chart:f,options:{widthRatio:l,xField:n,yField:a[0],seriesField:ci,interval:{color:o,style:s}}});Zt(g);var y=P({},r,{chart:v,options:{xField:n,yField:a[1],seriesField:ci,widthRatio:l,interval:{color:o,style:s}}});return Zt(y),r}function TD(r){var e,t,i,n=r.options,a=r.chart,o=n.xAxis,s=n.yAxis,l=n.xField,u=n.yField,c=st(a,tr),h=st(a,er),f={};return dn((n==null?void 0:n.meta)||{}).map(function(v){A(n==null?void 0:n.meta,[v,"alias"])&&(f[v]=n.meta[v].alias)}),a.scale((e={},e[ci]={sync:!0,formatter:function(v){return A(f,v,v)}},e)),Lt((t={},t[l]=o,t[u[0]]=s[u[0]],t))(P({},r,{chart:c})),Lt((i={},i[l]=o,i[u[1]]=s[u[1]],i))(P({},r,{chart:h})),r}function ED(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField,s=t.layout,l=st(e,tr),u=st(e,er);return(i==null?void 0:i.position)==="bottom"?u.axis(a,m(m({},i),{label:{formatter:function(){return""}}})):u.axis(a,!1),i===!1?l.axis(a,!1):l.axis(a,m({position:dr(s)?"top":"bottom"},i)),n===!1?(l.axis(o[0],!1),u.axis(o[1],!1)):(l.axis(o[0],n[o[0]]),u.axis(o[1],n[o[1]])),e.__axisPosition={position:l.getOptions().axes[a].position,layout:s},r}function kD(r){var e=r.chart;return At(P({},r,{chart:st(e,tr)})),At(P({},r,{chart:st(e,er)})),r}function LD(r){var e=r.chart,t=r.options,i=t.yField,n=t.yAxis;return Ti(P({},r,{chart:st(e,tr),options:{yAxis:n[i[0]]}})),Ti(P({},r,{chart:st(e,er),options:{yAxis:n[i[1]]}})),r}function ID(r){var e=r.chart;return ut(P({},r,{chart:st(e,tr)})),ut(P({},r,{chart:st(e,er)})),ut(r),r}function PD(r){var e=r.chart;return xt(P({},r,{chart:st(e,tr)})),xt(P({},r,{chart:st(e,er)})),r}function DD(r){var e=this,t,i,n=r.chart,a=r.options,o=a.label,s=a.yField,l=a.layout,u=st(n,tr),c=st(n,er),h=jt(u,"interval"),f=jt(c,"interval");if(!o)h.label(!1),f.label(!1);else{var v=o.callback,d=gt(o,["callback"]);d.position||(d.position="middle"),d.offset===void 0&&(d.offset=2);var p=m({},d);if(dr(l)){var g=((t=p.style)===null||t===void 0?void 0:t.textAlign)||(d.position==="middle"?"center":"left");d.style=P({},d.style,{textAlign:g});var y={left:"right",right:"left",center:"center"};p.style=P({},p.style,{textAlign:y[g]})}else{var x={top:"bottom",bottom:"top",middle:"middle"};typeof d.position=="string"?d.position=x[d.position]:typeof d.position=="function"&&(d.position=function(){for(var C=[],M=0;M1?"".concat(e,"_").concat(t):"".concat(e)}function j0(r){var e=r.data,t=r.xField,i=r.measureField,n=r.rangeField,a=r.targetField,o=r.layout,s=[],l=[];e.forEach(function(h,f){var v=[h[n]].flat();v.sort(function(g,y){return g-y}),v.forEach(function(g,y){var x,w=y===0?g:v[y]-v[y-1];s.push((x={rKey:"".concat(n,"_").concat(y)},x[t]=t?h[t]:String(f),x[n]=w,x))});var d=[h[i]].flat();d.forEach(function(g,y){var x;s.push((x={mKey:Ed(d,i,y)},x[t]=t?h[t]:String(f),x[i]=g,x))});var p=[h[a]].flat();p.forEach(function(g,y){var x;s.push((x={tKey:Ed(p,a,y)},x[t]=t?h[t]:String(f),x[a]=g,x))}),l.push(h[n],h[i],h[a])});var u=Math.min.apply(Math,l.flat(1/0)),c=Math.max.apply(Math,l.flat(1/0));return u=u>0?0:u,o==="vertical"&&s.reverse(),{min:u,max:c,ds:s}}function XD(r){var e=r.chart,t=r.options,i=t.bulletStyle,n=t.targetField,a=t.rangeField,o=t.measureField,s=t.xField,l=t.color,u=t.layout,c=t.size,h=t.label,f=j0(t),v=f.min,d=f.max,p=f.ds;e.data(p);var g=P({},r,{options:{xField:s,yField:a,seriesField:"rKey",isStack:!0,label:A(h,"range"),interval:{color:A(l,"range"),style:A(i,"range"),size:A(c,"range")}}});Zt(g),e.geometries[0].tooltip(!1);var y=P({},r,{options:{xField:s,yField:o,seriesField:"mKey",isStack:!0,label:A(h,"measure"),interval:{color:A(l,"measure"),style:A(i,"measure"),size:A(c,"measure")}}});Zt(y);var x=P({},r,{options:{xField:s,yField:n,seriesField:"tKey",label:A(h,"target"),point:{color:A(l,"target"),style:A(i,"target"),size:_(A(c,"target"))?function(w){return A(c,"target")(w)/2}:A(c,"target")/2,shape:u==="horizontal"?"line":"hyphen"}}});return Me(x),u==="horizontal"&&e.coordinate().transpose(),m(m({},r),{ext:{data:{min:v,max:d}}})}function Z0(r){var e,t,i=r.options,n=r.ext,a=i.xAxis,o=i.yAxis,s=i.targetField,l=i.rangeField,u=i.measureField,c=i.xField,h=n.data;return J(Lt((e={},e[c]=a,e[u]=o,e),(t={},t[u]={min:h==null?void 0:h.min,max:h==null?void 0:h.max,sync:!0},t[s]={sync:"".concat(u)},t[l]={sync:"".concat(u)},t)))(r)}function WD(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.measureField,s=t.rangeField,l=t.targetField;return e.axis("".concat(s),!1),e.axis("".concat(l),!1),i===!1?e.axis("".concat(a),!1):e.axis("".concat(a),i),n===!1?e.axis("".concat(o),!1):e.axis("".concat(o),n),r}function _D(r){var e=r.chart,t=r.options,i=t.legend;return e.removeInteraction("legend-filter"),e.legend(i),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),r}function qD(r){var e=r.chart,t=r.options,i=t.label,n=t.measureField,a=t.targetField,o=t.rangeField,s=e.geometries,l=s[0],u=s[1],c=s[2];return A(i,"range")?l.label("".concat(o),m({layout:[{type:"limit-in-plot"}]},Yt(i.range))):l.label(!1),A(i,"measure")?u.label("".concat(n),m({layout:[{type:"limit-in-plot"}]},Yt(i.measure))):u.label(!1),A(i,"target")?c.label("".concat(a),m({layout:[{type:"limit-in-plot"}]},Yt(i.target))):c.label(!1),r}function UD(r){J(XD,Z0,WD,_D,ut,qD,zt,At,xt)(r)}var jD=P({},nt.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}});(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="bullet",t}return e.getDefaultOptions=function(){return jD},e.prototype.changeData=function(t){this.updateOption({data:t});var i=j0(this.options),n=i.min,a=i.max,o=i.ds;Z0({options:this.options,ext:{data:{min:n,max:a}},chart:this.chart}),this.chart.changeData(o)},e.prototype.getSchemaAdaptor=function(){return UD},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e})(nt);var ZD={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(r){return r.id},source:function(r){return r.source},target:function(r){return r.target},sourceWeight:function(r){return r.value||1},targetWeight:function(r){return r.value||1},sortBy:null};function QD(r,e,t){S(r,function(i,n){i.inEdges=e.filter(function(a){return"".concat(t.target(a))==="".concat(n)}),i.outEdges=e.filter(function(a){return"".concat(t.source(a))==="".concat(n)}),i.edges=i.outEdges.concat(i.inEdges),i.frequency=i.edges.length,i.value=0,i.inEdges.forEach(function(a){i.value+=t.targetWeight(a)}),i.outEdges.forEach(function(a){i.value+=t.sourceWeight(a)})})}function KD(r,e){var t={weight:function(n,a){return a.value-n.value},frequency:function(n,a){return a.frequency-n.frequency},id:function(n,a){return"".concat(e.id(n)).localeCompare("".concat(e.id(a)))}},i=t[e.sortBy];!i&&_(e.sortBy)&&(i=e.sortBy),i&&r.sort(i)}function JD(r,e){var t=r.length;if(!t)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var i=e.nodePaddingRatio;if(i<0||i>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var n=i/(2*t),a=e.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;r.forEach(function(l){o+=l.value}),r.forEach(function(l){l.weight=l.value/o,l.width=l.weight*(1-i),l.height=a}),r.forEach(function(l,u){for(var c=0,h=u-1;h>=0;h--)c+=r[h].width+2*n;var f=l.minX=n+c,v=l.maxX=l.minX+l.width,d=l.minY=e.y-a/2,p=l.maxY=d+a;l.x=[f,v,v,f],l.y=[d,d,p,p]})}else{var s=1/t;r.forEach(function(l,u){l.x=(u+.5)*s,l.y=e.y})}return r}function tO(r,e,t){if(t.weight){var i={};S(r,function(n,a){i[a]=n.value}),e.forEach(function(n){var a=t.source(n),o=t.target(n),s=r[a],l=r[o];if(s&&l){var u=i[a],c=t.sourceWeight(n),h=s.minX+(s.value-u)/s.value*s.width,f=h+c/s.value*s.width;i[a]-=c;var v=i[o],d=t.targetWeight(n),p=l.minX+(l.value-v)/l.value*l.width,g=p+d/l.value*l.width;i[o]-=d;var y=t.y;n.x=[h,f,p,g],n.y=[y,y,y,y],n.source=s,n.target=l}})}else e.forEach(function(n){var a=r[t.source(n)],o=r[t.target(n)];a&&o&&(n.x=[a.x,o.x],n.y=[a.y,o.y],n.source=a,n.target=o)});return e}function eO(r){return yt({},ZD,r)}function rO(r,e){var t=eO(r),i={},n=e.nodes,a=e.links;n.forEach(function(l){var u=t.id(l);i[u]=l}),QD(i,a,t),KD(n,t);var o=JD(n,t),s=tO(i,a,t);return{nodes:o,links:s}}var Q0="x",K0="y",J0="name",tx="source",iO={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(r,e){var t=(r[0]+r[1])/2,i=t>.5?-4:4;return{offsetX:i,content:e}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(r){return!A(r,[0,"data","isNode"])},formatter:function(r){var e=r.source,t=r.target,i=r.value;return{name:"".concat(e," -> ").concat(t),value:i}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function nO(r){var e=r.options,t=e.data,i=e.sourceField,n=e.targetField,a=e.weightField,o=e.nodePaddingRatio,s=e.nodeWidthRatio,l=e.rawFields,u=l===void 0?[]:l,c=Gm(t,i,n,a),h=rO({weight:!0,nodePaddingRatio:o,nodeWidthRatio:s},c),f=h.nodes,v=h.links,d=f.map(function(g){return m(m({},dt(g,Z(["id","x","y","name"],u,!0))),{isNode:!0})}),p=v.map(function(g){return m(m({source:g.source.name,target:g.target.name,name:g.source.name||g.target.name},dt(g,Z(["x","y","value"],u,!0))),{isNode:!1})});return m(m({},r),{ext:m(m({},r.ext),{chordData:{nodesData:d,edgesData:p}})})}function aO(r){var e,t=r.chart;return t.scale((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},e[J0]={sync:"color"},e[tx]={sync:"color"},e)),r}function oO(r){var e=r.chart;return e.axis(!1),r}function sO(r){var e=r.chart;return e.legend(!1),r}function lO(r){var e=r.chart,t=r.options,i=t.tooltip;return e.tooltip(i),r}function uO(r){var e=r.chart;return e.coordinate("polar").reflect("y"),r}function cO(r){var e=r.chart,t=r.options,i=r.ext.chordData.nodesData,n=t.nodeStyle,a=t.label,o=t.tooltip,s=e.createView();return s.data(i),Qs({chart:s,options:{xField:Q0,yField:K0,seriesField:J0,polygon:{style:n},label:a,tooltip:o}}),r}function hO(r){var e=r.chart,t=r.options,i=r.ext.chordData.edgesData,n=t.edgeStyle,a=t.tooltip,o=e.createView();o.data(i);var s={xField:Q0,yField:K0,seriesField:tx,edge:{style:n,shape:"arc"},tooltip:a};return jm({chart:o,options:s}),r}function fO(r){var e=r.chart,t=r.options,i=t.animation;return Ba(e,i,Hk(e)),r}function vO(r){return J(ut,nO,uO,aO,oO,sO,lO,hO,cO,At,Kr,fO)(r)}var J5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="chord",t}return e.getDefaultOptions=function(){return iO},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return vO},e}(nt),dO=["x","y","r","name","value","path","depth"],pO={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},kd=4,gO=0,Ld=5,Id="drilldown-bread-crumb",yO={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},Sa="hierarchy-data-transform-params",mO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=yO,t}return e.prototype.click=function(){var t=A(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),i=this.breadCrumbGroup,n=i.getBBox(),a=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(n.height+Ld*2)};t.isPolar&&(o={x:0,y:0}),a==="bottom-left"&&(o={x:t.start.x,y:t.start.y});var s=ve.transform(null,[["t",o.x+gO,o.y+n.height+Ld]]);i.setMatrix(s)}},e.prototype.back=function(){Vt(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var i=this.context.view,n=A(i,["interactions","drill-down","cfg","transformData"],function(u){return u}),a=n(m({data:t.data},t[Sa]));i.changeData(a);for(var o=[],s=t;s;){var l=s.data;o.unshift({id:"".concat(l.name,"_").concat(s.height,"_").concat(s.depth),name:l.name,children:n(m({data:l},t[Sa]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},e.prototype.backTo=function(t){if(!(!t||t.length<=0)){var i=this.context.view,n=Nt(t).children;i.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,i=A(t,["interactions","drill-down","cfg","drillDownConfig"]);return P(this.breadCrumbCfg,i==null?void 0:i.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,i=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:Id});var a=0;n.forEach(function(o,s){var l=t.breadCrumbGroup.addShape({type:"text",id:o.id,name:"".concat(Id,"_").concat(o.name,"_text"),attrs:m(m({text:s===0&&!B(i.rootText)?i.rootText:o.name},i.textStyle),{x:a,y:0})}),u=l.getBBox();if(a+=u.width+kd,l.on("click",function(f){var v,d=f.target.get("id");if(d!==((v=Nt(n))===null||v===void 0?void 0:v.id)){var p=n.slice(0,n.findIndex(function(g){return g.id===d})+1);t.backTo(p)}}),l.on("mouseenter",function(f){var v,d=f.target.get("id");d!==((v=Nt(n))===null||v===void 0?void 0:v.id)?l.attr(i.activeTextStyle):l.attr({cursor:"default"})}),l.on("mouseleave",function(){l.attr(i.textStyle)}),s=0;)e+=t[i].value;r.value=e}function EO(){return this.eachAfter(TO)}function kO(r,e){let t=-1;for(const i of this)r.call(e,i,++t,this);return this}function LO(r,e){for(var t=this,i=[t],n,a,o=-1;t=i.pop();)if(r.call(e,t,++o,this),n=t.children)for(a=n.length-1;a>=0;--a)i.push(n[a]);return this}function IO(r,e){for(var t=this,i=[t],n=[],a,o,s,l=-1;t=i.pop();)if(n.push(t),a=t.children)for(o=0,s=a.length;o=0;)t+=i[n].value;e.value=t})}function OO(r){return this.eachBefore(function(e){e.children&&e.children.sort(r)})}function BO(r){for(var e=this,t=RO(e,r),i=[e];e!==t;)e=e.parent,i.push(e);for(var n=i.length;r!==t;)i.splice(n,0,r),r=r.parent;return i}function RO(r,e){if(r===e)return r;var t=r.ancestors(),i=e.ancestors(),n=null;for(r=t.pop(),e=i.pop();r===e;)n=r,r=t.pop(),e=i.pop();return n}function NO(){for(var r=this,e=[r];r=r.parent;)e.push(r);return e}function zO(){return Array.from(this)}function GO(){var r=[];return this.eachBefore(function(e){e.children||r.push(e)}),r}function VO(){var r=this,e=[];return r.each(function(t){t!==r&&e.push({source:t.parent,target:t})}),e}function*YO(){var r=this,e,t=[r],i,n,a;do for(e=t.reverse(),t=[];r=e.pop();)if(yield r,i=r.children)for(n=0,a=i.length;n=0;--s)n.push(a=o[s]=new hn(o[s])),a.parent=i,a.depth=i.depth+1;return t.eachBefore(ex)}function $O(){return Sn(this).eachBefore(WO)}function HO(r){return r.children}function XO(r){return Array.isArray(r)?r[1]:null}function WO(r){r.data.value!==void 0&&(r.value=r.data.value),r.data=r.data.data}function ex(r){var e=0;do r.height=e;while((r=r.parent)&&r.height<++e)}function hn(r){this.data=r,this.depth=this.height=0,this.parent=null}hn.prototype=Sn.prototype={constructor:hn,count:EO,each:kO,eachAfter:IO,eachBefore:LO,find:PO,sum:DO,sort:OO,path:BO,ancestors:NO,descendants:zO,leaves:GO,links:VO,copy:$O,[Symbol.iterator]:YO};function _O(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}function qO(r){for(var e=r.length,t,i;e;)i=Math.random()*e--|0,t=r[e],r[e]=r[i],r[i]=t;return r}function rx(r){for(var e=0,t=(r=qO(Array.from(r))).length,i=[],n,a;e0&&t*t>i*i+n*n}function Yl(r,e){for(var t=0;tl?(n=(u+l-a)/(2*u),s=Math.sqrt(Math.max(0,l/u-n*n)),t.x=r.x-n*i-s*o,t.y=r.y-n*o+s*i):(n=(u+a-l)/(2*u),s=Math.sqrt(Math.max(0,a/u-n*n)),t.x=e.x+n*i-s*o,t.y=e.y+n*o+s*i)):(t.x=e.x+t.r,t.y=e.y)}function Dd(r,e){var t=r.r+e.r-1e-6,i=e.x-r.x,n=e.y-r.y;return t>0&&t*t>i*i+n*n}function Od(r){var e=r._,t=r.next._,i=e.r+t.r,n=(e.x*t.r+t.x*e.r)/i,a=(e.y*t.r+t.y*e.r)/i;return n*n+a*a}function wo(r){this._=r,this.next=null,this.previous=null}function ax(r){if(!(n=(r=_O(r)).length))return 0;var e,t,i,n,a,o,s,l,u,c,h;if(e=r[0],e.x=0,e.y=0,!(n>1))return e.r;if(t=r[1],e.x=-t.r,t.x=e.r,t.y=0,!(n>2))return e.r+t.r;Pd(t,e,i=r[2]),e=new wo(e),t=new wo(t),i=new wo(i),e.next=i.previous=t,t.next=e.previous=i,i.next=t.previous=e;t:for(s=3;s0)throw new Error("cycle");return l}return t.id=function(i){return arguments.length?(r=ns(i),t):r},t.parentId=function(i){return arguments.length?(e=ns(i),t):e},t}function nB(r,e){return r.parent===e.parent?1:2}function Hl(r){var e=r.children;return e?e[0]:r.t}function Xl(r){var e=r.children;return e?e[e.length-1]:r.t}function aB(r,e,t){var i=t/(e.i-r.i);e.c-=i,e.s+=t,r.c+=i,e.z+=t,e.m+=t}function oB(r){for(var e=0,t=0,i=r.children,n=i.length,a;--n>=0;)a=i[n],a.z+=e,a.m+=e,e+=a.s+(t+=a.c)}function sB(r,e,t){return r.a.parent===e.parent?r.a:t}function Lo(r,e){this._=r,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Lo.prototype=Object.create(hn.prototype);function lB(r){for(var e=new Lo(r,0),t,i=[e],n,a,o,s;t=i.pop();)if(a=t._.children)for(t.children=new Array(s=a.length),o=s-1;o>=0;--o)i.push(n=t.children[o]=new Lo(a[o],o)),n.parent=t;return(e.parent=new Lo(null,0)).children=[e],e}function uB(){var r=nB,e=1,t=1,i=null;function n(u){var c=lB(u);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),i)u.eachBefore(l);else{var h=u,f=u,v=u;u.eachBefore(function(x){x.xf.x&&(f=x),x.depth>v.depth&&(v=x)});var d=h===f?1:r(h,f)/2,p=d-h.x,g=e/(f.x+d+p),y=t/(v.depth||1);u.eachBefore(function(x){x.x=(x.x+p)*g,x.y=x.depth*y})}return u}function a(u){var c=u.children,h=u.parent.children,f=u.i?h[u.i-1]:null;if(c){oB(u);var v=(c[0].z+c[c.length-1].z)/2;f?(u.z=f.z+r(u._,f._),u.m=u.z-v):u.z=v}else f&&(u.z=f.z+r(u._,f._));u.parent.A=s(u,f,u.parent.A||h[0])}function o(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function s(u,c,h){if(c){for(var f=u,v=u,d=c,p=f.parent.children[0],g=f.m,y=v.m,x=d.m,w=p.m,b;d=Xl(d),f=Hl(f),d&&f;)p=Hl(p),v=Xl(v),v.a=u,b=d.z+x-f.z-g+r(d._,f._),b>0&&(aB(sB(d,u,h),u,b),g+=b,y+=b),x+=d.m,g+=f.m,w+=p.m,y+=v.m;d&&!Xl(v)&&(v.t=d,v.m+=x-y),f&&!Hl(p)&&(p.t=f,p.m+=g-w,h=u)}return h}function l(u){u.x*=e,u.y=u.depth*t}return n.separation=function(u){return arguments.length?(r=u,n):r},n.size=function(u){return arguments.length?(i=!1,e=+u[0],t=+u[1],n):i?null:[e,t]},n.nodeSize=function(u){return arguments.length?(i=!0,e=+u[0],t=+u[1],n):i?[e,t]:null},n}function nl(r,e,t,i,n){for(var a=r.children,o,s=-1,l=a.length,u=r.value&&(n-t)/r.value;++sx&&(x=u),M=g*g*C,w=Math.max(x/M,M/y),w>b){g-=u;break}b=w}o.push(l={value:g,dice:v1?i:1)},t}(ux);function fx(){var r=hx,e=!1,t=1,i=1,n=[0],a=ai,o=ai,s=ai,l=ai,u=ai;function c(f){return f.x0=f.y0=0,f.x1=t,f.y1=i,f.eachBefore(h),n=[0],e&&f.eachBefore(sx),f}function h(f){var v=n[f.depth],d=f.x0+v,p=f.y0+v,g=f.x1-v,y=f.y1-v;g=f-1){var x=a[h];x.x0=d,x.y0=p,x.x1=g,x.y1=y;return}for(var w=u[h],b=v/2+w,C=h+1,M=f-1;C>>1;u[F]y-p){var k=v?(d*L+g*T)/v:g;c(h,C,T,d,p,k,y),c(C,f,L,k,p,g,y)}else{var I=v?(p*L+y*T)/v:y;c(h,C,T,d,p,g,I),c(C,f,L,d,I,g,y)}}}function hB(r,e,t,i,n){(r.depth&1?nl:Va)(r,e,t,i,n)}const fB=function r(e){function t(i,n,a,o,s){if((l=i._squarify)&&l.ratio===e)for(var l,u,c,h,f=-1,v,d=l.length,p=i.value;++f1?i:1)},t}(ux),zd=Object.freeze(Object.defineProperty({__proto__:null,cluster:FO,hierarchy:Sn,pack:ox,packEnclose:rx,packSiblings:QO,partition:lx,stratify:iB,tree:uB,treemap:fx,treemapBinary:cB,treemapDice:Va,treemapResquarify:fB,treemapSlice:nl,treemapSliceDice:hB,treemapSquarify:hx},Symbol.toStringTag,{value:"Module"}));var vx="nodeIndex",dx="childNodeCount",Th="nodeAncestor",Wl="Invalid field: it must be a string!";function Eh(r,e){var t=r.field,i=r.fields;if(K(t))return t;if(R(t))return console.warn(Wl),t[0];if(console.warn("".concat(Wl," will try to get fields instead.")),K(i))return i;if(R(i)&&i.length)return i[0];if(e)return e;throw new TypeError(Wl)}function kh(r){var e=[];if(r&&r.each){var t,i;r.each(function(n){var a,o;n.parent!==t?(t=n.parent,i=0):i+=1;var s=qt((((a=n.ancestors)===null||a===void 0?void 0:a.call(n))||[]).map(function(l){return e.find(function(u){return u.name===l.name})||l}),function(l){var u=l.depth;return u>0&&u1;)c="".concat((u=h.parent.data)===null||u===void 0?void 0:u.name," / ").concat(c),h=h.parent;if(a&&l.depth>2)return null;var f=P({},l.data,m(m(m({},dt(l.data,n)),{path:c}),l));f.ext=t,f[Sa]={hierarchyConfig:t,rawFields:n,enableDrillDown:a},s.push(f)}),s}function gx(r,e,t){var i=vh([r,e]),n=i[0],a=i[1],o=i[2],s=i[3],l=t.width,u=t.height,c=l-(s+a),h=u-(n+o),f=Math.min(c,h),v=(c-f)/2,d=(h-f)/2,p=n+d,g=a+v,y=o+d,x=s+v,w=[p,g,y,x],b=f<0?0:f;return{finalPadding:w,finalSize:b}}function pB(r){var e=r.chart,t=Math.min(e.viewBBox.width,e.viewBBox.height);return P({options:{size:function(i){var n=i.r;return n*t}}},r)}function gB(r){var e=r.options,t=r.chart,i=t.viewBBox,n=e.padding,a=e.appendPadding,o=e.drilldown,s=a;if(o!=null&&o.enabled){var l=_s(t.appendPadding,A(o,["breadCrumb","position"]));s=vh([l,a])}var u=gx(n,s,i).finalPadding;return t.padding=u,t.appendPadding=0,r}function yB(r){var e=r.chart,t=r.options,i=e.padding,n=e.appendPadding,a=t.color,o=t.colorField,s=t.pointStyle,l=t.hierarchyConfig,u=t.sizeField,c=t.rawFields,h=c===void 0?[]:c,f=t.drilldown,v=px({data:t.data,hierarchyConfig:l,enableDrillDown:f==null?void 0:f.enabled,rawFields:h});e.data(v);var d=e.viewBBox,p=gx(i,n,d).finalSize,g=function(y){var x=y.r;return x*p};return u&&(g=function(y){return y[u]*p}),Me(P({},r,{options:{xField:"x",yField:"y",seriesField:o,sizeField:u,rawFields:Z(Z([],dO,!0),h,!0),point:{color:a,style:s,shape:"circle",size:g}}})),r}function mB(r){return J(Lt({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(r)}function xB(r){var e=r.chart,t=r.options,i=t.tooltip;if(i===!1)e.tooltip(!1);else{var n=i;A(i,"fields")||(n=P({},{customItems:function(a){return a.map(function(o){var s=A(e.getOptions(),"scales"),l=A(s,["name","formatter"],function(c){return c}),u=A(s,["value","formatter"],function(c){return c});return m(m({},o),{name:l(o.data.name),value:u(o.data.value)})})}},n)),e.tooltip(n)}return r}function wB(r){var e=r.chart;return e.axis(!1),r}function bB(r){var e=r.drilldown,t=r.interactions,i=t===void 0?[]:t;return e!=null&&e.enabled?P({},r,{interactions:Z(Z([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:px,enableDrillDown:!0}}],!1)}):r}function CB(r){var e=r.chart,t=r.options;return At({chart:e,options:bB(t)}),r}function SB(r){return J(Se("pointStyle"),pB,gB,ut,mB,yB,wB,xn,xB,CB,xt,Et())(r)}function Gd(r){var e=A(r,["event","data","data"],{});return R(e.children)&&e.children.length>0}function Vd(r){var e=r.view.getCoordinate(),t=e.innerRadius;if(t){var i=r.event,n=i.x,a=i.y,o=e.center,s=o.x,l=o.y,u=e.getRadius()*t,c=Math.sqrt(Math.pow(s-n,2)+Math.pow(l-a,2));return c-1?Wk(v,c,h):!0}),r.getRootView().render(!0)}};function TB(r){var e,t=r.options,i=t.geometryOptions,n=i===void 0?[]:i,a=t.xField,o=t.yField,s=ec(n,function(l){var u=l.geometry;return u===Ei.Line||u===void 0});return P({},{options:{geometryOptions:[],meta:(e={},e[a]={type:"cat",sync:!0,range:s?[0,1]:void 0},e),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},r,{options:{yAxis:$d(o,t.yAxis),geometryOptions:[Yd(a,o[0],n[0]),Yd(a,o[1],n[1])],annotations:$d(o,t.annotations)}})}function EB(r){var e,t,i=r.chart,n=r.options,a=n.geometryOptions,o={line:0,column:1},s=[{type:(e=a[0])===null||e===void 0?void 0:e.geometry,id:Ae},{type:(t=a[1])===null||t===void 0?void 0:t.geometry,id:Fe}];return s.sort(function(l,u){return-o[l.type]+o[u.type]}).forEach(function(l){return i.createView({id:l.id})}),r}function kB(r){var e=r.chart,t=r.options,i=t.xField,n=t.yField,a=t.geometryOptions,o=t.data,s=t.tooltip,l=[m(m({},a[0]),{id:Ae,data:o[0],yField:n[0]}),m(m({},a[1]),{id:Fe,data:o[1],yField:n[1]})];return l.forEach(function(u){var c=u.id,h=u.data,f=u.yField,v=Lh(u)&&u.isPercent,d=v?t0(h,f,i,f):h,p=st(e,c).data(d),g=v?m({formatter:function(y){return{name:y[u.seriesField]||f,value:(Number(y[f])*100).toFixed(2)+"%"}}},s):s;FB({chart:p,options:{xField:i,yField:f,tooltip:g,geometryOption:u}})}),r}function LB(r){var e,t=r.chart,i=r.options,n=i.geometryOptions,a=((e=t.getTheme())===null||e===void 0?void 0:e.colors10)||[],o=0;return t.once("beforepaint",function(){S(n,function(s,l){var u=st(t,l===0?Ae:Fe);if(!s.color){var c=u.getGroupScales(),h=A(c,[0,"values","length"],1),f=a.slice(o,o+h).concat(l===0?[]:a);u.geometries.forEach(function(v){s.seriesField?v.color(s.seriesField,f):v.color(f[0])}),o+=h}}),t.render(!0)}),r}function IB(r){var e,t,i=r.chart,n=r.options,a=n.xAxis,o=n.yAxis,s=n.xField,l=n.yField;return Lt((e={},e[s]=a,e[l[0]]=o[0],e))(P({},r,{chart:st(i,Ae)})),Lt((t={},t[s]=a,t[l[1]]=o[1],t))(P({},r,{chart:st(i,Fe)})),r}function PB(r){var e=r.chart,t=r.options,i=st(e,Ae),n=st(e,Fe),a=t.xField,o=t.yField,s=t.xAxis,l=t.yAxis;return e.axis(a,!1),e.axis(o[0],!1),e.axis(o[1],!1),i.axis(a,s),i.axis(o[0],Hd(l[0],fn.Left)),n.axis(a,!1),n.axis(o[1],Hd(l[1],fn.Right)),r}function DB(r){var e=r.chart,t=r.options,i=t.tooltip,n=st(e,Ae),a=st(e,Fe);return e.tooltip(i),n.tooltip({shared:!0}),a.tooltip({shared:!0}),r}function OB(r){var e=r.chart;return At(P({},r,{chart:st(e,Ae)})),At(P({},r,{chart:st(e,Fe)})),r}function BB(r){var e=r.chart,t=r.options,i=t.annotations,n=A(i,[0]),a=A(i,[1]);return Et(n)(P({},r,{chart:st(e,Ae),options:{annotations:n}})),Et(a)(P({},r,{chart:st(e,Fe),options:{annotations:a}})),r}function RB(r){var e=r.chart;return ut(P({},r,{chart:st(e,Ae)})),ut(P({},r,{chart:st(e,Fe)})),ut(r),r}function NB(r){var e=r.chart;return xt(P({},r,{chart:st(e,Ae)})),xt(P({},r,{chart:st(e,Fe)})),r}function zB(r){var e=r.chart,t=r.options,i=t.yAxis;return Ti(P({},r,{chart:st(e,Ae),options:{yAxis:i[0]}})),Ti(P({},r,{chart:st(e,Fe),options:{yAxis:i[1]}})),r}function GB(r){var e=r.chart,t=r.options,i=t.legend,n=t.geometryOptions,a=t.yField,o=t.data,s=st(e,Ae),l=st(e,Fe);if(i===!1)e.legend(!1);else if(mt(i)&&i.custom===!0)e.legend(i);else{var u=A(n,[0,"legend"],i),c=A(n,[1,"legend"],i);e.once("beforepaint",function(){var h=o[0].length?Xd({view:s,geometryOption:n[0],yField:a[0],legend:u}):[],f=o[1].length?Xd({view:l,geometryOption:n[1],yField:a[1],legend:c}):[];e.legend(P({},i,{custom:!0,items:h.concat(f)}))}),n[0].seriesField&&s.legend(n[0].seriesField,u),n[1].seriesField&&l.legend(n[1].seriesField,c),e.on("legend-item:click",function(h){var f=A(h,"gEvent.delegateObject",{});if(f&&f.item){var v=f.item,d=v.value,p=v.isGeometry,g=v.viewId;if(p){var y=gp(a,function(b){return b===d});if(y>-1){var x=A(st(e,g),"geometries");S(x,function(b){b.changeVisible(!f.item.unchecked)})}}else{var w=A(e.getController("legend"),"option.items",[]);S(e.views,function(b){var C=b.getGroupScales();S(C,function(M){M.values&&M.values.indexOf(d)>-1&&b.filter(M.field,function(F){var T=ze(w,function(L){return L.value===F});return!T.unchecked})}),e.render(!0)})}}})}return r}function VB(r){var e=r.chart,t=r.options,i=t.slider,n=st(e,Ae),a=st(e,Fe);return i&&(n.option("slider",i),n.on("slider:valuechanged",function(o){var s=o.event,l=s.value,u=s.originValue;Pt(l,u)||Wd(a,l)}),e.once("afterpaint",function(){if(!en(i)){var o=i.start,s=i.end;(o||s)&&Wd(a,[o,s])}})),r}function YB(r){return J(TB,EB,RB,kB,IB,PB,zB,DB,OB,BB,NB,LB,GB,VB)(r)}(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dual-axes",t}return e.prototype.getDefaultOptions=function(){return P({},r.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return YB},e})(nt);function $B(r,e){var t=e.data,i=e.coordinate,n=e.interactions,a=e.annotations,o=e.animation,s=e.tooltip,l=e.axes,u=e.meta,c=e.geometries;t&&r.data(t);var h={};l&&S(l,function(f,v){h[v]=dt(f,ce)}),h=P({},u,h),r.scale(h),i&&r.coordinate(i),l===!1?r.axis(!1):S(l,function(f,v){r.axis(v,f)}),S(c,function(f){var v=pe({chart:r,options:f}).ext,d=f.adjust;d&&v.geometry.adjust(d)}),S(n,function(f){f.enable===!1?r.removeInteraction(f.type):r.interaction(f.type,f.cfg)}),S(a,function(f){r.annotation()[f.type](m({},f))}),Ba(r,o),s?(r.interaction("tooltip"),r.tooltip(s)):s===!1&&r.removeInteraction("tooltip")}function HB(r){var e=r.chart,t=r.options,i=t.type,n=t.data,a=t.fields,o=t.eachView,s=hs(t,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(n),e.facet(i,m(m({},s),{fields:a,eachView:function(l,u){var c=o(l,u);if(c.geometries)$B(l,c);else{var h=c,f=h.options;f.tooltip&&l.interaction("tooltip"),Yu(h.type,l,f)}}})),r}function XB(r){var e=r.chart,t=r.options,i=t.axes,n=t.meta,a=t.tooltip,o=t.coordinate,s=t.theme,l=t.legend,u=t.interactions,c=t.annotations,h={};return i&&S(i,function(f,v){h[v]=dt(f,ce)}),h=P({},n,h),e.scale(h),e.coordinate(o),i?S(i,function(f,v){e.axis(v,f)}):e.axis(!1),a?(e.interaction("tooltip"),e.tooltip(a)):a===!1&&e.removeInteraction("tooltip"),e.legend(l),s&&e.theme(s),S(u,function(f){f.enable===!1?e.removeInteraction(f.type):e.interaction(f.type,f.cfg)}),S(c,function(f){e.annotation()[f.type](m({},f))}),r}function WB(r){return J(ut,HB,XB)(r)}var _B={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="area",t}return e.getDefaultOptions=function(){return _B},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return WB},e})(nt);function qB(r){var e=r.chart,t=r.options,i=t.data,n=t.type,a=t.xField,o=t.yField,s=t.colorField,l=t.sizeField,u=t.sizeRatio,c=t.shape,h=t.color,f=t.tooltip,v=t.heatmapStyle,d=t.meta;e.data(i);var p="polygon";n==="density"&&(p="heatmap");var g=Oe(f,[a,o,s]),y=g.fields,x=g.formatter,w=1;return(u||u===0)&&(!c&&!l?console.warn("sizeRatio is not in effect: Must define shape or sizeField first"):u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):w=u),pe(P({},r,{options:{type:p,colorField:s,tooltipFields:y,shapeField:l||"",label:void 0,mapping:{tooltip:x,shape:c&&(l?function(b){var C=i.map(function(L){return L[l]}),M=(d==null?void 0:d[l])||{},F=M.min,T=M.max;return F=rt(F)?F:Math.min.apply(Math,C),T=rt(T)?T:Math.max.apply(Math,C),[c,(A(b,l)-F)/(T-F),w]}:function(){return[c,1,w]}),color:h||s&&e.getTheme().sequenceColors.join("-"),style:v}}})),r}function UB(r){var e,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return J(Lt((e={},e[a]=i,e[o]=n,e)))(r)}function jB(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?e.axis(a,!1):e.axis(a,i),n===!1?e.axis(o,!1):e.axis(o,n),r}function ZB(r){var e=r.chart,t=r.options,i=t.legend,n=t.colorField,a=t.sizeField,o=t.sizeLegend,s=i!==!1;return n&&e.legend(n,s?i:!1),a&&e.legend(a,o===void 0?i:o),!s&&!o&&e.legend(!1),r}function QB(r){var e=r.chart,t=r.options,i=t.label,n=t.colorField,a=t.type,o=jt(e,a==="density"?"heatmap":"polygon");if(!i)o.label(!1);else if(n){var s=i.callback,l=gt(i,["callback"]);o.label({fields:[n],callback:s,cfg:Yt(l)})}return r}function KB(r){var e,t,i=r.chart,n=r.options,a=n.coordinate,o=n.reflect,s=P({actions:[]},a??{type:"rect"});return o&&((t=(e=s.actions)===null||e===void 0?void 0:e.push)===null||t===void 0||t.call(e,["reflect",o])),i.coordinate(s),r}function JB(r){return J(ut,Se("heatmapStyle"),UB,KB,qB,jB,ZB,zt,QB,Et(),At,xt,Kr)(r)}var tR=P({},nt.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});ft("polygon","circle",{draw:function(r,e){var t,i,n=r.x,a=r.y,o=this.parsePoints(r.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l)/2,c=Number(r.shape[1]),h=Number(r.shape[2]),f=Math.sqrt(h),v=u*f*Math.sqrt(c),d=((t=r.style)===null||t===void 0?void 0:t.fill)||r.color||((i=r.defaultStyle)===null||i===void 0?void 0:i.fill),p=e.addShape("circle",{attrs:m(m(m({x:n,y:a,r:v},r.defaultStyle),r.style),{fill:d})});return p}});ft("polygon","square",{draw:function(r,e){var t,i,n=r.x,a=r.y,o=this.parsePoints(r.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l),c=Number(r.shape[1]),h=Number(r.shape[2]),f=Math.sqrt(h),v=u*f*Math.sqrt(c),d=((t=r.style)===null||t===void 0?void 0:t.fill)||r.color||((i=r.defaultStyle)===null||i===void 0?void 0:i.fill),p=e.addShape("rect",{attrs:m(m(m({x:n-v/2,y:a-v/2,width:v,height:v},r.defaultStyle),r.style),{fill:d})});return p}});(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="heatmap",t}return e.getDefaultOptions=function(){return tR},e.prototype.getSchemaAdaptor=function(){return JB},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e})(nt);var eR="liquid";function mx(r){return[{percent:r,type:eR}]}function rR(r){var e=r.chart,t=r.options,i=t.percent,n=t.liquidStyle,a=t.radius,o=t.outline,s=t.wave,l=t.shape,u=t.shapeStyle,c=t.animation;e.scale({percent:{min:0,max:1}}),e.data(mx(i));var h=t.color||e.getTheme().defaultColor,f=P({},r,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:h,style:n,shape:"liquid-fill-gauge"}}}),v=Zt(f).ext,d=v.geometry,p=e.getTheme().background,g={percent:i,radius:a,outline:o,wave:s,shape:l,shapeStyle:u,background:p,animation:c};return d.customInfo(g),e.legend(!1),e.axis(!1),e.tooltip(!1),r}function xx(r,e){var t=r.chart,i=r.options,n=i.statistic,a=i.percent,o=i.meta;t.getController("annotation").clear(!0);var s=A(o,["percent","formatter"])||function(u){return"".concat((u*100).toFixed(2),"%")},l=n.content;return l&&(l=P({},l,{content:B(l.content)?s(a):l.content})),qs(t,{statistic:m(m({},n),{content:l}),plotType:"liquid"},{percent:a}),e&&t.render(!0),r}function iR(r){return J(ut,Se("liquidStyle"),rR,xx,Lt({}),xt,At)(r)}var nR={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},_d=5e3;function qd(r,e,t){return r+(e-r)*t}function aR(r){var e=m({opacity:1},r.style);return r.color&&!e.fill&&(e.fill=r.color),e}function oR(r){var e={fill:"#fff",fillOpacity:0,lineWidth:4},t=yt({},e,r.style);return r.color&&!t.stroke&&(t.stroke=r.color),rt(r.opacity)&&(t.opacity=t.strokeOpacity=r.opacity),t}function sR(r,e,t,i){return e===0?[[r+1/2*t/Math.PI/2,i/2],[r+1/2*t/Math.PI,i],[r+t/4,i]]:e===1?[[r+1/2*t/Math.PI/2*(Math.PI-2),i],[r+1/2*t/Math.PI/2*(Math.PI-1),i/2],[r+t/4,0]]:e===2?[[r+1/2*t/Math.PI/2,-i/2],[r+1/2*t/Math.PI,-i],[r+t/4,-i]]:[[r+1/2*t/Math.PI/2*(Math.PI-2),-i],[r+1/2*t/Math.PI/2*(Math.PI-1),-i/2],[r+t/4,0]]}function lR(r,e,t,i,n,a,o){for(var s=Math.ceil(2*r/t*4)*4,l=[],u=i;u<-Math.PI*2;)u+=Math.PI*2;for(;u>0;)u-=Math.PI*2;u=u/Math.PI/2*t;var c=a-r+u-r*2;l.push(["M",c,e]);for(var h=0,f=0;f0){var O=e.addGroup({name:"waves"}),N=O.setClip({type:"path",attrs:{path:P}});uR(b.x,b.y,1-r.points[1].y,g,F,O,N,M*2,y,h)}return e.addShape("path",{name:"distance",attrs:{path:P,fill:"transparent",lineWidth:d+p*2,stroke:c==="transparent"?"#fff":c}}),e.addShape("path",{name:"wrap",attrs:yt(T,{path:P,fill:"transparent",lineWidth:d})}),e}});var tG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="liquid",t}return e.getDefaultOptions=function(){return nR},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(ot.BEFORE_CHANGE_DATA,Tt.fromData(this.chart,ot.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(mx(t)),xx({chart:this.chart,options:this.options},!0),this.chart.emit(ot.AFTER_CHANGE_DATA,Tt.fromData(this.chart,ot.AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return iR},e}(nt);function pR(r){var e=r.chart,t=r.options,i=t.data,n=t.lineStyle,a=t.color,o=t.point,s=t.area;e.data(i);var l=I({},r,{options:{line:{style:n,color:a},point:o&&m({color:a},o),area:s&&m({color:a},s),label:void 0}}),u=I({},l,{options:{tooltip:!1}}),c=(o==null?void 0:o.state)||t.state,h=I({},l,{options:{tooltip:!1,state:c}});return wn(l),Me(h),Zs(u),r}function gR(r){var e,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return J(Lt((e={},e[a]=i,e[o]=n,e)))(r)}function yR(r){var e=r.chart,t=r.options,i=t.radius,n=t.startAngle,a=t.endAngle;return e.coordinate("polar",{radius:i,startAngle:n,endAngle:a}),r}function mR(r){var e=r.chart,t=r.options,i=t.xField,n=t.xAxis,a=t.yField,o=t.yAxis;return e.axis(i,n),e.axis(a,o),r}function xR(r){var e=r.chart,t=r.options,i=t.label,n=t.yField,a=jt(e,"line");if(!i)a.label(!1);else{var o=i.fields,s=i.callback,l=gt(i,["fields","callback"]);a.label({fields:o||[n],callback:s,cfg:Yt(l)})}return r}function wR(r){return J(pR,gR,ut,yR,mR,xn,zt,xR,At,xt,Et())(r)}var bR=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(t){var i=this.getTooltipCfg(),n=i.shared,a=i.title,o=r.prototype.getTooltipItems.call(this,t);if(o.length>0){var s=this.view.geometries[0],l=s.dataArray,u=o[0].name,c=[];return l.forEach(function(h){h.forEach(function(f){var v=ve.getTooltipItems(f,s),d=v[0];if(!n&&d&&d.name===u){var p=B(a)?u:a;c.push(m(m({},d),{name:d.title,title:p}))}else if(n&&d){var p=B(a)?d.name||u:a;c.push(m(m({},d),{name:d.title,title:p}))}})}),c}return[]},e}(Ly);Li("radar-tooltip",bR);var CR=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=this.context.view;t.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event,i=this.getTooltipController();i.showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){var t=this.getTooltipController();t.hideTooltip()},e.prototype.getTooltipController=function(){var t=this.context.view;return t.getController("radar-tooltip")},e}(Ct);j("radar-tooltip",CR);it("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="radar",t}return e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return I({},r.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return wR},e})(nt);function SR(r,e,t){var i=t.map(function(o){return o[e]}).filter(function(o){return o!==void 0}),n=i.length>0?Math.max.apply(Math,i):0,a=Math.abs(r)%360;return a?n*360/a:n}function MR(r,e,t){var i=[];return r.forEach(function(n){var a=i.find(function(o){return o[e]===n[e]});a?a[t]+=n[t]||null:i.push(m({},n))}),i}function AR(r){var e=r.chart,t=r.options,i=t.barStyle,n=t.color,a=t.tooltip,o=t.colorField,s=t.type,l=t.xField,u=t.yField,c=t.data,h=t.shape,f=un(c,u);e.data(f);var v=I({},r,{options:{tooltip:a,seriesField:o,interval:{style:i,color:n,shape:h||(s==="line"?"line":"intervel")},minColumnWidth:t.minBarWidth,maxColumnWidth:t.maxBarWidth,columnBackground:t.barBackground}});return Zt(v),s==="line"&&Me({chart:e,options:{xField:l,yField:u,seriesField:o,point:{shape:"circle",color:n}}}),r}function wx(r){var e,t=r.options,i=t.yField,n=t.xField,a=t.data,o=t.isStack,s=t.isGroup,l=t.colorField,u=t.maxAngle,c=o&&!s&&l?MR(a,n,i):a,h=un(c,i);return J(Lt((e={},e[i]={min:0,max:SR(u,i,h)},e)))(r)}function FR(r){var e=r.chart,t=r.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}).transpose(),r}function TR(r){var e=r.chart,t=r.options,i=t.xField,n=t.xAxis;return e.axis(i,n),r}function ER(r){var e=r.chart,t=r.options,i=t.label,n=t.yField,a=jt(e,"interval");if(!i)a.label(!1);else{var o=i.callback,s=gt(i,["callback"]);a.label({fields:[n],callback:o,cfg:m(m({},Yt(s)),{type:"polar"})})}return r}function kR(r){return J(Se("barStyle"),AR,wx,TR,FR,At,xt,ut,zt,xn,Et(),ER)(r)}var LR=I({},nt.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="radial-bar",t}return e.getDefaultOptions=function(){return LR},e.prototype.changeData=function(t){this.updateOption({data:t}),wx({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return kR},e})(nt);function IR(r){var e=r.chart,t=r.options,i=t.data,n=t.sectorStyle,a=t.shape,o=t.color;return e.data(i),J(Zt)(I({},r,{options:{marginRatio:1,interval:{style:n,color:o,shape:a}}})),r}function PR(r){var e=r.chart,t=r.options,i=t.label,n=t.xField,a=jt(e,"interval");if(i===!1)a.label(!1);else if(mt(i)){var o=i.callback,s=i.fields,l=gt(i,["callback","fields"]),u=l.offset,c=l.layout;(u===void 0||u>=0)&&(c=c?R(c)?c:[c]:[],l.layout=qt(c,function(h){return h.type!=="limit-in-shape"}),l.layout.length||delete l.layout),a.label({fields:s||[n],callback:o,cfg:Yt(l)})}else br($e.WARN,i===null,"the label option must be an Object."),a.label({fields:[n]});return r}function DR(r){var e=r.chart,t=r.options,i=t.legend,n=t.seriesField;return i===!1?e.legend(!1):n&&e.legend(n,i),r}function OR(r){var e=r.chart,t=r.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}),r}function BR(r){var e,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return J(Lt((e={},e[a]=i,e[o]=n,e)))(r)}function RR(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i?e.axis(a,i):e.axis(a,!1),n?e.axis(o,n):e.axis(o,!1),r}function NR(r){J(Se("sectorStyle"),IR,BR,PR,OR,RR,DR,zt,At,xt,ut,Et(),Kr)(r)}var zR=I({},nt.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="rose",t}return e.getDefaultOptions=function(){return zR},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return NR},e})(nt);var jd="x",Zd="y",Qd="name",al="nodes",ol="edges";function GR(r,e,t){var i=[];return r.forEach(function(n){var a=n[e],o=n[t];i.includes(a)||i.push(a),i.includes(o)||i.push(o)}),i}function VR(r,e,t,i){var n={};return e.forEach(function(a){n[a]={},e.forEach(function(o){n[a][o]=0})}),r.forEach(function(a){n[a[t]][a[i]]=1}),n}function YR(r,e,t){if(!R(r))return[];var i=[],n=GR(r,e,t),a=VR(r,n,e,t),o={};n.forEach(function(l){o[l]=0});function s(l){o[l]=1,n.forEach(function(u){if(a[l][u]!=0)if(o[u]==1)i.push("".concat(l,"_").concat(u));else{if(o[u]==-1)return;s(u)}}),o[l]=-1}return n.forEach(function(l){o[l]!=-1&&s(l)}),i.length!==0&&console.warn("sankey data contains circle, ".concat(i.length," records removed."),i),r.filter(function(l){return i.findIndex(function(u){return u==="".concat(l[e],"_").concat(l[t])})<0})}function $R(r){return r.target.depth}function HR(r){return r.depth}function XR(r,e){return e-1-r.height}function Ih(r,e){return r.sourceLinks.length?r.depth:e-1}function WR(r){return r.targetLinks.length?r.depth:r.sourceLinks.length?hw(r.sourceLinks,$R)-1:0}function bo(r){return function(){return r}}function _l(r,e){for(var t=0,i=0;iX)throw new Error("circular link");$=Y,Y=new Set}if(u)for(var et=Math.max(ql(z,function(tt){return tt.depth})+1,0),at=void 0,Q=0;QX)throw new Error("circular link");$=Y,Y=new Set}}function w(D){for(var z=D.nodes,X=Math.max(ql(z,function(kt){return kt.depth})+1,0),$=(t-r-n)/(X-1),Y=new Array(X).fill(0).map(function(){return[]}),W=0,et=z;W0){var Jr=(tt/pt-Q.y0)*z;Q.y0+=Jr,Q.y1+=Jr,O(Q)}}c===void 0&&W.sort(as),W.length&&L(W,X)}}function T(D,z,X){for(var $=D.length,Y=$-2;Y>=0;--Y){for(var W=D[Y],et=0,at=W;et0){var Jr=(tt/pt-Q.y0)*z;Q.y0+=Jr,Q.y1+=Jr,O(Q)}}c===void 0&&W.sort(as),W.length&&L(W,X)}}function L(D,z){var X=D.length>>1,$=D[X];P(D,$.y0-o,X-1,z),k(D,$.y1+o,X+1,z),P(D,i,D.length-1,z),k(D,e,0,z)}function k(D,z,X,$){for(;X1e-6&&(Y.y0+=W,Y.y1+=W),z=Y.y1+o}}function P(D,z,X,$){for(;X>=0;--X){var Y=D[X],W=(Y.y1-z)*$;W>1e-6&&(Y.y0-=W,Y.y1-=W),z=Y.y0-o}}function O(D){var z=D.sourceLinks,X=D.targetLinks;if(h===void 0){for(var $=0,Y=X;$ "+n,value:a}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var i=bx(this.options,this.chart.width,this.chart.height),n=i.nodes,a=i.edges,o=st(this.chart,al),s=st(this.chart,ol);o.changeData(n),s.changeData(a)},e.prototype.getSchemaAdaptor=function(){return cN},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e})(nt);var Ph="ancestor-node",Cx="value",Ma="path",fN=[Ma,vx,Th,dx,"name","depth","height"],vN=I({},nt.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}}),dN={field:"value",size:[1,1],round:!1,padding:0,sort:function(r,e){return e.value-r.value},as:["x","y"],ignoreParentValue:!0};function pN(r,e){e=yt({},dN,e);var t=e.as;if(!R(t)||t.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var i;try{i=Eh(e)}catch(l){console.warn(l)}var n=function(l){return lx().size(e.size).round(e.round).padding(e.padding)(Sn(l).sum(function(u){return Vt(u.children)?e.ignoreParentValue?0:u[i]-Jt(u.children,function(c,h){return c+h[i]},0):u[i]}).sort(e.sort))},a=n(r),o=t[0],s=t[1];return a.each(function(l){var u,c;l[o]=[l.x0,l.x1,l.x1,l.x0],l[s]=[l.y1,l.y1,l.y0,l.y0],l.name=l.name||((u=l.data)===null||u===void 0?void 0:u.name)||((c=l.data)===null||c===void 0?void 0:c.label),l.data.name=l.name,["x0","x1","y0","y1"].forEach(function(h){t.indexOf(h)===-1&&delete l[h]})}),kh(a)}var gN={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(r,e){return e.value-r.value},ratio:.5*(1+Math.sqrt(5))};function yN(r,e){return r==="treemapSquarify"?zd[r].ratio(e):zd[r]}function Sx(r,e){e=yt({},gN,e);var t=e.as;if(!R(t)||t.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var i;try{i=Eh(e)}catch(u){console.warn(u)}var n=yN(e.tile,e.ratio),a=function(u){return fx().tile(n).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(Sn(u).sum(function(c){return e.ignoreParentValue&&c.children?0:c[i]}).sort(e.sort))},o=a(r),s=t[0],l=t[1];return o.each(function(u){u[s]=[u.x0,u.x1,u.x1,u.x0],u[l]=[u.y1,u.y1,u.y0,u.y0],["x0","x1","y0","y1"].forEach(function(c){t.indexOf(c)===-1&&delete u[c]})}),kh(o)}function Mx(r){var e=r.data,t=r.colorField,i=r.rawFields,n=r.hierarchyConfig,a=n===void 0?{}:n,o=a.activeDepth,s={partition:pN,treemap:Sx},l=r.seriesField,u=r.type||"partition",c=s[u](e,m(m({field:l||"value"},hs(a,["activeDepth"])),{type:"hierarchy.".concat(u),as:["x","y"]})),h=[];return c.forEach(function(f){var v,d,p,g,y,x;if(f.depth===0||o>0&&f.depth>o)return null;for(var b=f.data.name,w=m({},f);w.depth>1;)b="".concat((d=w.parent.data)===null||d===void 0?void 0:d.name," / ").concat(b),w=w.parent;var C=m(m(m({},dt(f.data,Z(Z([],i||[],!0),[a.field],!1))),(v={},v[Ma]=b,v[Ph]=w.data.name,v)),f);l&&(C[l]=f.data[l]||((g=(p=f.parent)===null||p===void 0?void 0:p.data)===null||g===void 0?void 0:g[l])),t&&(C[t]=f.data[t]||((x=(y=f.parent)===null||y===void 0?void 0:y.data)===null||x===void 0?void 0:x[t])),C.ext=a,C[Sa]={hierarchyConfig:a,colorField:t,rawFields:i},h.push(C)}),h}function mN(r){var e=r.chart,t=r.options,i=t.color,n=t.colorField,a=n===void 0?Ph:n,o=t.sunburstStyle,s=t.rawFields,l=s===void 0?[]:s,u=t.shape,c=Mx(t);e.data(c);var h;return o&&(h=function(f){return I({},{fillOpacity:Math.pow(.85,f.depth)},_(o)?o(f):o)}),Qs(I({},r,{options:{xField:"x",yField:"y",seriesField:a,rawFields:bi(Z(Z([],fN,!0),l,!0)),polygon:{color:i,style:h,shape:u}}})),r}function xN(r){var e=r.chart;return e.axis(!1),r}function wN(r){var e=r.chart,t=r.options,i=t.label,n=jt(e,"polygon");if(!i)n.label(!1);else{var a=i.fields,o=a===void 0?["name"]:a,s=i.callback,l=gt(i,["fields","callback"]);n.label({fields:o,callback:s,cfg:Yt(l)})}return r}function bN(r){var e=r.chart,t=r.options,i=t.innerRadius,n=t.radius,a=t.reflect,o=e.coordinate({type:"polar",cfg:{innerRadius:i,radius:n}});return a&&o.reflect(a),r}function CN(r){var e,t=r.options,i=t.hierarchyConfig,n=t.meta;return J(Lt({},(e={},e[Cx]=A(n,A(i,["field"],"value")),e)))(r)}function SN(r){var e=r.chart,t=r.options,i=t.tooltip;if(i===!1)e.tooltip(!1);else{var n=i;A(i,"fields")||(n=I({},{customItems:function(a){return a.map(function(o){var s=A(e.getOptions(),"scales"),l=A(s,[Ma,"formatter"],function(c){return c}),u=A(s,[Cx,"formatter"],function(c){return c});return m(m({},o),{name:l(o.data[Ma]),value:u(o.data.value)})})}},n)),e.tooltip(n)}return r}function MN(r){var e=r.drilldown,t=r.interactions,i=t===void 0?[]:t;return e!=null&&e.enabled?I({},r,{interactions:Z(Z([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:Mx}}],!1)}):r}function AN(r){var e=r.chart,t=r.options,i=t.drilldown;return At({chart:e,options:MN(t)}),i!=null&&i.enabled&&(e.appendPadding=_s(e.appendPadding,A(i,["breadCrumb","position"]))),r}function FN(r){return J(ut,Se("sunburstStyle"),mN,xN,CN,xn,bN,SN,wN,AN,xt,Et())(r)}(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="sunburst",t}return e.getDefaultOptions=function(){return vN},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return FN},e.SUNBURST_ANCESTOR_FIELD=Ph,e.SUNBURST_PATH_FIELD=Ma,e.NODE_ANCESTORS_FIELD=Th,e})(nt);function Ax(r,e){if(R(r))return r.find(function(t){return t.type===e})}function Fx(r,e){var t=Ax(r,e);return t&&t.enable!==!1}function Dh(r){var e=r.interactions,t=r.drilldown;return A(t,"enabled")||Fx(e,"treemap-drill-down")}function TN(r){var e=r.interactions["drill-down"];if(e){var t=e.context.actions.find(function(i){return i.name==="drill-down-action"});t.reset()}}function Oh(r){var e=r.data,t=r.colorField,i=r.enableDrillDown,n=r.hierarchyConfig,a=Sx(e,m(m({},n),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),o=[];return a.forEach(function(s){if(s.depth===0||i&&s.depth!==1||!i&&s.children)return null;var l=s.ancestors().map(function(f){return{data:f.data,height:f.height,value:f.value}}),u=i&&R(e.path)?l.concat(e.path.slice(1)):l,c=Object.assign({},s.data,m({x:s.x,y:s.y,depth:s.depth,value:s.value,path:u},s));if(!s.data[t]&&s.parent){var h=s.ancestors().find(function(f){return f.data[t]});c[t]=h==null?void 0:h.data[t]}else c[t]=s.data[t];c[Sa]={hierarchyConfig:n,colorField:t,enableDrillDown:i},o.push(c)}),o}function EN(r){var e=r.options,t=e.colorField;return I({options:{rawFields:["value"],tooltip:{fields:["name","value",t,"path"],formatter:function(i){return{name:i.name,value:i.value}}}}},r)}function kN(r){var e=r.chart,t=r.options,i=t.color,n=t.colorField,a=t.rectStyle,o=t.hierarchyConfig,s=t.rawFields,l=Oh({data:t.data,colorField:t.colorField,enableDrillDown:Dh(t),hierarchyConfig:o});return e.data(l),Qs(I({},r,{options:{xField:"x",yField:"y",seriesField:n,rawFields:s,polygon:{color:i,style:a}}})),e.coordinate().reflect("y"),r}function LN(r){var e=r.chart;return e.axis(!1),r}function IN(r){var e=r.drilldown,t=r.interactions,i=t===void 0?[]:t,n=Dh(r);return n?I({},r,{interactions:Z(Z([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:Oh}}],!1)}):r}function PN(r){var e=r.chart,t=r.options,i=t.interactions,n=t.drilldown;At({chart:e,options:IN(t)});var a=Ax(i,"view-zoom");a&&(a.enable!==!1?e.getCanvas().on("mousewheel",function(s){s.preventDefault()}):e.getCanvas().off("mousewheel"));var o=Dh(t);return o&&(e.appendPadding=_s(e.appendPadding,A(n,["breadCrumb","position"]))),r}function DN(r){return J(EN,ut,Se("rectStyle"),kN,LN,xn,zt,PN,xt,Et())(r)}var ON={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}};(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="treemap",t}return e.getDefaultOptions=function(){return ON},e.prototype.changeData=function(t){var i=this.options,n=i.colorField,a=i.interactions,o=i.hierarchyConfig;this.updateOption({data:t});var s=Oh({data:t,colorField:n,enableDrillDown:Fx(a,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),TN(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return DN},e})(nt);var yr="id",Hu="path",BN={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(r){return{name:r.id,value:r.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function sl(r){if(r){var e=r.geometries[0].elements;e.forEach(function(t){t.shape.toFront()})}}var RN=zs("element-active"),NN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.syncElementsPos=function(){sl(this.context.view)},e.prototype.active=function(){r.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){r.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){r.prototype.reset.call(this),this.syncElementsPos()},e}(RN),zN=zs("element-highlight"),GN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.syncElementsPos=function(){sl(this.context.view)},e.prototype.highlight=function(){r.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){r.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){r.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){r.prototype.reset.call(this),this.syncElementsPos()},e}(zN),VN=zs("element-selected"),YN=zs("element-single-selected"),$N=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.syncElementsPos=function(){sl(this.context.view)},e.prototype.selected=function(){r.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){r.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){r.prototype.reset.call(this),this.syncElementsPos()},e}(VN),HN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.syncElementsPos=function(){sl(this.context.view)},e.prototype.selected=function(){r.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){r.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){r.prototype.reset.call(this),this.syncElementsPos()},e}(YN);j("venn-element-active",NN);j("venn-element-highlight",GN);j("venn-element-selected",$N);j("venn-element-single-selected",HN);it("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]});it("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]});it("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]});it("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]});it("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]});it("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var XN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getLabelPoint=function(t,i,n){var a=t.data,o=a.x,s=a.y,l=t.customLabelInfo,u=l.offsetX,c=l.offsetY;return{content:t.content[n],x:o+u,y:s+c}},e}($s);Pa("venn",XN);var Qn=` -\v\f\r   ᠎              \u2028\u2029`,WN=new RegExp("([a-z])["+Qn+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Qn+"]*,?["+Qn+"]*)+)","ig"),_N=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Qn+"]*,?["+Qn+"]*","ig");function qN(r){if(!r)return null;if(qx(r))return r;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(r).replace(WN,function(i,n,a){var o=[],s=n.toLowerCase();if(a.replace(_N,function(l,u){u&&o.push(+u)}),s==="m"&&o.length>2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=e[s]&&(t.push([n].concat(o.splice(0,e[s]))),!!e[s]););return""}),t}function UN(r){return I({},r.defaultStyle,{fill:r.color},r.style)}ft("schema","venn",{draw:function(r,e){var t=r.data,i=qN(t[Hu]),n=UN(r),a=e.addGroup({name:"venn-shape"});a.addShape("path",{attrs:m(m({},n),{path:i}),name:"venn-path"});var o=r.customInfo,s=o.offsetX,l=o.offsetY,u=ve.transform(null,[["t",s,l]]);return a.setMatrix(u),a},getMarker:function(r){var e=r.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var jN=function(r){return function(e,t){var i=[];return i[0]=r(e[0],t[0]),i[1]=r(e[1],t[1]),i[2]=r(e[2],t[2]),i}},rp={normal:function(r){return r},multiply:function(r,e){return r*e/255},screen:function(r,e){return 255*(1-(1-r/255)*(1-e/255))},overlay:function(r,e){return e<128?2*r*e/255:255*(1-2*(1-r/255)*(1-e/255))},darken:function(r,e){return r>e?e:r},lighten:function(r,e){return r>e?r:e},dodge:function(r,e){return r===255?255:(r=255*(e/255)/(1-r/255),r>255?255:r)},burn:function(r,e){return e===255?255:r===0?0:255*(1-Math.min(1,(1-e/255)/(r/255)))}},ZN=function(r){if(!rp[r])throw new Error("unknown blend mode "+r);return rp[r]};function QN(r,e,t){t===void 0&&(t="normal");var i=jN(ZN(t))(Co(r),Co(e)),n=Co(r),a=n[0],o=n[1],s=n[2],l=n[3],u=Co(e),c=u[0],h=u[1],f=u[2],v=u[3],d=Number((l+v*(1-l)).toFixed(2)),p=Math.round((l*(1-v)*(a/255)+l*v*(i[0]/255)+(1-l)*v*(c/255))/d*255),g=Math.round((l*(1-v)*(o/255)+l*v*(i[1]/255)+(1-l)*v*(h/255))/d*255),y=Math.round((l*(1-v)*(s/255)+l*v*(i[2]/255)+(1-l)*v*(f/255))/d*255);return"rgba(".concat(p,", ").concat(g,", ").concat(y,", ").concat(d,")")}function Co(r){var e=r.replace("/s+/g",""),t;return typeof e=="string"&&!e.startsWith("rgba")&&!e.startsWith("#")?t=Nr.rgb2arr(Nr.toRGB(e)).concat([1]):(e.startsWith("rgba")&&(t=e.replace("rgba(","").replace(")","").split(",")),e.startsWith("#")&&(t=Nr.rgb2arr(e).concat([1])),t.map(function(i,n){return n===3?Number(i):i|0}))}function KN(r,e,t,i){i=i||{};var n=i.maxIterations||100,a=i.tolerance||1e-10,o=r(e),s=r(t),l=t-e;if(o*s>0)throw"Initial bisect points must have opposite signs";if(o===0)return e;if(s===0)return t;for(var u=0;u=0&&(e=c),Math.abs(l)=d[v-1].fx){var P=!1;if(w.fx>k.fx?(cr(C,1+c,b,-c,k),C.fx=r(C),C.fx=1)break;for(p=1;ps+a*n*l||u>=y)g=n;else{if(Math.abs(h)<=-o*l)return n;h*(g-p)>=0&&(g=p),p=n,y=u}return 0}for(var d=0;d<10;++d){if(cr(i.x,1,t.x,n,e),u=i.fx=r(i.x,i.fxprime),h=Ji(i.fxprime,e),u>s+a*n*l||d&&u>=c)return v(f,n,c);if(Math.abs(h)<=-o*l)return n;if(h>=0)return v(n,f,u);c=u,f=n,n*=2}return n}function tz(r,e,t){var i={x:e.slice(),fx:0,fxprime:e.slice()},n={x:e.slice(),fx:0,fxprime:e.slice()},a=e.slice(),o,s,l=1,u;t=t||{},u=t.maxIterations||e.length*20,i.fx=r(i.x,i.fxprime),o=i.fxprime.slice(),_u(o,i.fxprime,-1);for(var c=0;c1){var l=Ix(i);for(o=0;o-1){var p=r[h.parentIndex[d]],g=Math.atan2(h.x-p.x,h.y-p.y),y=Math.atan2(c.x-p.x,c.y-p.y),x=y-g;x<0&&(x+=2*Math.PI);var b=y-x/2,w=Ge(f,{x:p.x+p.radius*Math.sin(b),y:p.y+p.radius*Math.cos(b)});w>p.radius*2&&(w=p.radius*2),(v===null||v.width>w)&&(v={circle:p,width:w,p1:h,p2:c})}v!==null&&(s.push(v),n+=qu(v.circle.radius,v.width),c=h)}}else{var C=r[0];for(o=1;oMath.abs(C.radius-r[o].radius)){M=!0;break}M?n=a=0:(n=C.radius*C.radius*Math.PI,s.push({circle:C,p1:{x:C.x,y:C.y+C.radius},p2:{x:C.x-Ex,y:C.y+C.radius},width:C.radius*2}))}return a/=2,e&&(e.area=n+a,e.arcArea=n,e.polygonArea=a,e.arcs=s,e.innerPoints=i,e.intersectionPoints=t),n+a}function ez(r,e){for(var t=0;te[t].radius+Ex)return!1;return!0}function rz(r){for(var e=[],t=0;t=r+e)return 0;if(t<=Math.abs(r-e))return Math.PI*Math.min(r,e)*Math.min(r,e);var i=r-(t*t-e*e+r*r)/(2*t),n=e-(t*t-r*r+e*e)/(2*t);return qu(r,i)+qu(e,n)}function Lx(r,e){var t=Ge(r,e),i=r.radius,n=e.radius;if(t>=i+n||t<=Math.abs(i-n))return[];var a=(i*i-n*n+t*t)/(2*t),o=Math.sqrt(i*i-a*a),s=r.x+a*(e.x-r.x)/t,l=r.y+a*(e.y-r.y)/t,u=-(e.y-r.y)*(o/t),c=-(e.x-r.x)*(o/t);return[{x:s+u,y:l-c},{x:s-u,y:l+c}]}function Ix(r){for(var e={x:0,y:0},t=0;t=o&&(a=t[i],o=s)}var l=Tx(function(f){return-1*jl({x:f[0],y:f[1]},r,e)},[a.x,a.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:l[0],y:l[1]},c=!0;for(i=0;ir[i].radius){c=!1;break}for(i=0;i0&&console.log("WARNING: area "+a+" not represented on screen")}return t}function az(r,e,t){var i=[],n=r-t,a=e;return i.push("M",n,a),i.push("A",t,t,0,1,0,n+2*t,a),i.push("A",t,t,0,1,0,n,a),i.join(" ")}function oz(r){var e={};Bh(r,e);var t=e.arcs;if(t.length===0)return"M 0 0";if(t.length==1){var i=t[0].circle;return az(i.x,i.y,i.radius)}else{for(var n=[` + `)}var Ud={pin:cR,circle:hR,diamond:fR,triangle:vR,rect:dR};ft("interval","liquid-fill-gauge",{draw:function(r,e){var t=.5,i=.5,n=r.customInfo,a=n,o=a.percent,s=a.radius,l=a.shape,u=a.shapeStyle,c=a.background,h=a.animation,f=n.outline,v=n.wave,d=f.border,p=f.distance,g=v.count,y=v.length,x=Jt(r.points,function(Y,q){return Math.min(Y,q.x)},1/0),w=this.parsePoint({x:t,y:i}),b=this.parsePoint({x,y:i}),C=w.x-b.x,M=Math.min(C,b.y*s),F=aR(r),T=oR(yt({},r,f)),L=M-d/2,k=typeof l=="function"?l:Ud[l]||Ud.circle,I=k(w.x,w.y,L*2,L*2);if(u&&e.addShape("path",{name:"shape",attrs:m({path:I},u)}),o>0){var O=e.addGroup({name:"waves"}),N=O.setClip({type:"path",attrs:{path:I}});uR(w.x,w.y,1-r.points[1].y,g,F,O,N,M*2,y,h)}return e.addShape("path",{name:"distance",attrs:{path:I,fill:"transparent",lineWidth:d+p*2,stroke:c==="transparent"?"#fff":c}}),e.addShape("path",{name:"wrap",attrs:yt(T,{path:I,fill:"transparent",lineWidth:d})}),e}});var tG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="liquid",t}return e.getDefaultOptions=function(){return nR},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(ot.BEFORE_CHANGE_DATA,Tt.fromData(this.chart,ot.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(mx(t)),xx({chart:this.chart,options:this.options},!0),this.chart.emit(ot.AFTER_CHANGE_DATA,Tt.fromData(this.chart,ot.AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return iR},e}(nt);function pR(r){var e=r.chart,t=r.options,i=t.data,n=t.lineStyle,a=t.color,o=t.point,s=t.area;e.data(i);var l=P({},r,{options:{line:{style:n,color:a},point:o&&m({color:a},o),area:s&&m({color:a},s),label:void 0}}),u=P({},l,{options:{tooltip:!1}}),c=(o==null?void 0:o.state)||t.state,h=P({},l,{options:{tooltip:!1,state:c}});return wn(l),Me(h),Zs(u),r}function gR(r){var e,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return J(Lt((e={},e[a]=i,e[o]=n,e)))(r)}function yR(r){var e=r.chart,t=r.options,i=t.radius,n=t.startAngle,a=t.endAngle;return e.coordinate("polar",{radius:i,startAngle:n,endAngle:a}),r}function mR(r){var e=r.chart,t=r.options,i=t.xField,n=t.xAxis,a=t.yField,o=t.yAxis;return e.axis(i,n),e.axis(a,o),r}function xR(r){var e=r.chart,t=r.options,i=t.label,n=t.yField,a=jt(e,"line");if(!i)a.label(!1);else{var o=i.fields,s=i.callback,l=gt(i,["fields","callback"]);a.label({fields:o||[n],callback:s,cfg:Yt(l)})}return r}function wR(r){return J(pR,gR,ut,yR,mR,xn,zt,xR,At,xt,Et())(r)}var bR=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(t){var i=this.getTooltipCfg(),n=i.shared,a=i.title,o=r.prototype.getTooltipItems.call(this,t);if(o.length>0){var s=this.view.geometries[0],l=s.dataArray,u=o[0].name,c=[];return l.forEach(function(h){h.forEach(function(f){var v=ve.getTooltipItems(f,s),d=v[0];if(!n&&d&&d.name===u){var p=B(a)?u:a;c.push(m(m({},d),{name:d.title,title:p}))}else if(n&&d){var p=B(a)?d.name||u:a;c.push(m(m({},d),{name:d.title,title:p}))}})}),c}return[]},e}(Ly);Li("radar-tooltip",bR);var CR=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=this.context.view;t.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event,i=this.getTooltipController();i.showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){var t=this.getTooltipController();t.hideTooltip()},e.prototype.getTooltipController=function(){var t=this.context.view;return t.getController("radar-tooltip")},e}(Ct);j("radar-tooltip",CR);it("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="radar",t}return e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return P({},r.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return wR},e})(nt);function SR(r,e,t){var i=t.map(function(o){return o[e]}).filter(function(o){return o!==void 0}),n=i.length>0?Math.max.apply(Math,i):0,a=Math.abs(r)%360;return a?n*360/a:n}function MR(r,e,t){var i=[];return r.forEach(function(n){var a=i.find(function(o){return o[e]===n[e]});a?a[t]+=n[t]||null:i.push(m({},n))}),i}function AR(r){var e=r.chart,t=r.options,i=t.barStyle,n=t.color,a=t.tooltip,o=t.colorField,s=t.type,l=t.xField,u=t.yField,c=t.data,h=t.shape,f=un(c,u);e.data(f);var v=P({},r,{options:{tooltip:a,seriesField:o,interval:{style:i,color:n,shape:h||(s==="line"?"line":"intervel")},minColumnWidth:t.minBarWidth,maxColumnWidth:t.maxBarWidth,columnBackground:t.barBackground}});return Zt(v),s==="line"&&Me({chart:e,options:{xField:l,yField:u,seriesField:o,point:{shape:"circle",color:n}}}),r}function wx(r){var e,t=r.options,i=t.yField,n=t.xField,a=t.data,o=t.isStack,s=t.isGroup,l=t.colorField,u=t.maxAngle,c=o&&!s&&l?MR(a,n,i):a,h=un(c,i);return J(Lt((e={},e[i]={min:0,max:SR(u,i,h)},e)))(r)}function FR(r){var e=r.chart,t=r.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}).transpose(),r}function TR(r){var e=r.chart,t=r.options,i=t.xField,n=t.xAxis;return e.axis(i,n),r}function ER(r){var e=r.chart,t=r.options,i=t.label,n=t.yField,a=jt(e,"interval");if(!i)a.label(!1);else{var o=i.callback,s=gt(i,["callback"]);a.label({fields:[n],callback:o,cfg:m(m({},Yt(s)),{type:"polar"})})}return r}function kR(r){return J(Se("barStyle"),AR,wx,TR,FR,At,xt,ut,zt,xn,Et(),ER)(r)}var LR=P({},nt.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="radial-bar",t}return e.getDefaultOptions=function(){return LR},e.prototype.changeData=function(t){this.updateOption({data:t}),wx({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return kR},e})(nt);function IR(r){var e=r.chart,t=r.options,i=t.data,n=t.sectorStyle,a=t.shape,o=t.color;return e.data(i),J(Zt)(P({},r,{options:{marginRatio:1,interval:{style:n,color:o,shape:a}}})),r}function PR(r){var e=r.chart,t=r.options,i=t.label,n=t.xField,a=jt(e,"interval");if(i===!1)a.label(!1);else if(mt(i)){var o=i.callback,s=i.fields,l=gt(i,["callback","fields"]),u=l.offset,c=l.layout;(u===void 0||u>=0)&&(c=c?R(c)?c:[c]:[],l.layout=qt(c,function(h){return h.type!=="limit-in-shape"}),l.layout.length||delete l.layout),a.label({fields:s||[n],callback:o,cfg:Yt(l)})}else br($e.WARN,i===null,"the label option must be an Object."),a.label({fields:[n]});return r}function DR(r){var e=r.chart,t=r.options,i=t.legend,n=t.seriesField;return i===!1?e.legend(!1):n&&e.legend(n,i),r}function OR(r){var e=r.chart,t=r.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}),r}function BR(r){var e,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return J(Lt((e={},e[a]=i,e[o]=n,e)))(r)}function RR(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i?e.axis(a,i):e.axis(a,!1),n?e.axis(o,n):e.axis(o,!1),r}function NR(r){J(Se("sectorStyle"),IR,BR,PR,OR,RR,DR,zt,At,xt,ut,Et(),Kr)(r)}var zR=P({},nt.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="rose",t}return e.getDefaultOptions=function(){return zR},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return NR},e})(nt);var jd="x",Zd="y",Qd="name",al="nodes",ol="edges";function GR(r,e,t){var i=[];return r.forEach(function(n){var a=n[e],o=n[t];i.includes(a)||i.push(a),i.includes(o)||i.push(o)}),i}function VR(r,e,t,i){var n={};return e.forEach(function(a){n[a]={},e.forEach(function(o){n[a][o]=0})}),r.forEach(function(a){n[a[t]][a[i]]=1}),n}function YR(r,e,t){if(!R(r))return[];var i=[],n=GR(r,e,t),a=VR(r,n,e,t),o={};n.forEach(function(l){o[l]=0});function s(l){o[l]=1,n.forEach(function(u){if(a[l][u]!=0)if(o[u]==1)i.push("".concat(l,"_").concat(u));else{if(o[u]==-1)return;s(u)}}),o[l]=-1}return n.forEach(function(l){o[l]!=-1&&s(l)}),i.length!==0&&console.warn("sankey data contains circle, ".concat(i.length," records removed."),i),r.filter(function(l){return i.findIndex(function(u){return u==="".concat(l[e],"_").concat(l[t])})<0})}function $R(r){return r.target.depth}function HR(r){return r.depth}function XR(r,e){return e-1-r.height}function Ih(r,e){return r.sourceLinks.length?r.depth:e-1}function WR(r){return r.targetLinks.length?r.depth:r.sourceLinks.length?hw(r.sourceLinks,$R)-1:0}function bo(r){return function(){return r}}function _l(r,e){for(var t=0,i=0;iX)throw new Error("circular link");$=V,V=new Set}if(u)for(var et=Math.max(ql(z,function(tt){return tt.depth})+1,0),at=void 0,Q=0;QX)throw new Error("circular link");$=V,V=new Set}}function b(D){for(var z=D.nodes,X=Math.max(ql(z,function(kt){return kt.depth})+1,0),$=(t-r-n)/(X-1),V=new Array(X).fill(0).map(function(){return[]}),W=0,et=z;W0){var Jr=(tt/pt-Q.y0)*z;Q.y0+=Jr,Q.y1+=Jr,O(Q)}}c===void 0&&W.sort(as),W.length&&L(W,X)}}function T(D,z,X){for(var $=D.length,V=$-2;V>=0;--V){for(var W=D[V],et=0,at=W;et0){var Jr=(tt/pt-Q.y0)*z;Q.y0+=Jr,Q.y1+=Jr,O(Q)}}c===void 0&&W.sort(as),W.length&&L(W,X)}}function L(D,z){var X=D.length>>1,$=D[X];I(D,$.y0-o,X-1,z),k(D,$.y1+o,X+1,z),I(D,i,D.length-1,z),k(D,e,0,z)}function k(D,z,X,$){for(;X1e-6&&(V.y0+=W,V.y1+=W),z=V.y1+o}}function I(D,z,X,$){for(;X>=0;--X){var V=D[X],W=(V.y1-z)*$;W>1e-6&&(V.y0-=W,V.y1-=W),z=V.y0-o}}function O(D){var z=D.sourceLinks,X=D.targetLinks;if(h===void 0){for(var $=0,V=X;$ "+n,value:a}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var i=bx(this.options,this.chart.width,this.chart.height),n=i.nodes,a=i.edges,o=st(this.chart,al),s=st(this.chart,ol);o.changeData(n),s.changeData(a)},e.prototype.getSchemaAdaptor=function(){return cN},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e})(nt);var Ph="ancestor-node",Cx="value",Ma="path",fN=[Ma,vx,Th,dx,"name","depth","height"],vN=P({},nt.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}}),dN={field:"value",size:[1,1],round:!1,padding:0,sort:function(r,e){return e.value-r.value},as:["x","y"],ignoreParentValue:!0};function pN(r,e){e=yt({},dN,e);var t=e.as;if(!R(t)||t.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var i;try{i=Eh(e)}catch(l){console.warn(l)}var n=function(l){return lx().size(e.size).round(e.round).padding(e.padding)(Sn(l).sum(function(u){return Vt(u.children)?e.ignoreParentValue?0:u[i]-Jt(u.children,function(c,h){return c+h[i]},0):u[i]}).sort(e.sort))},a=n(r),o=t[0],s=t[1];return a.each(function(l){var u,c;l[o]=[l.x0,l.x1,l.x1,l.x0],l[s]=[l.y1,l.y1,l.y0,l.y0],l.name=l.name||((u=l.data)===null||u===void 0?void 0:u.name)||((c=l.data)===null||c===void 0?void 0:c.label),l.data.name=l.name,["x0","x1","y0","y1"].forEach(function(h){t.indexOf(h)===-1&&delete l[h]})}),kh(a)}var gN={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(r,e){return e.value-r.value},ratio:.5*(1+Math.sqrt(5))};function yN(r,e){return r==="treemapSquarify"?zd[r].ratio(e):zd[r]}function Sx(r,e){e=yt({},gN,e);var t=e.as;if(!R(t)||t.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var i;try{i=Eh(e)}catch(u){console.warn(u)}var n=yN(e.tile,e.ratio),a=function(u){return fx().tile(n).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(Sn(u).sum(function(c){return e.ignoreParentValue&&c.children?0:c[i]}).sort(e.sort))},o=a(r),s=t[0],l=t[1];return o.each(function(u){u[s]=[u.x0,u.x1,u.x1,u.x0],u[l]=[u.y1,u.y1,u.y0,u.y0],["x0","x1","y0","y1"].forEach(function(c){t.indexOf(c)===-1&&delete u[c]})}),kh(o)}function Mx(r){var e=r.data,t=r.colorField,i=r.rawFields,n=r.hierarchyConfig,a=n===void 0?{}:n,o=a.activeDepth,s={partition:pN,treemap:Sx},l=r.seriesField,u=r.type||"partition",c=s[u](e,m(m({field:l||"value"},hs(a,["activeDepth"])),{type:"hierarchy.".concat(u),as:["x","y"]})),h=[];return c.forEach(function(f){var v,d,p,g,y,x;if(f.depth===0||o>0&&f.depth>o)return null;for(var w=f.data.name,b=m({},f);b.depth>1;)w="".concat((d=b.parent.data)===null||d===void 0?void 0:d.name," / ").concat(w),b=b.parent;var C=m(m(m({},dt(f.data,Z(Z([],i||[],!0),[a.field],!1))),(v={},v[Ma]=w,v[Ph]=b.data.name,v)),f);l&&(C[l]=f.data[l]||((g=(p=f.parent)===null||p===void 0?void 0:p.data)===null||g===void 0?void 0:g[l])),t&&(C[t]=f.data[t]||((x=(y=f.parent)===null||y===void 0?void 0:y.data)===null||x===void 0?void 0:x[t])),C.ext=a,C[Sa]={hierarchyConfig:a,colorField:t,rawFields:i},h.push(C)}),h}function mN(r){var e=r.chart,t=r.options,i=t.color,n=t.colorField,a=n===void 0?Ph:n,o=t.sunburstStyle,s=t.rawFields,l=s===void 0?[]:s,u=t.shape,c=Mx(t);e.data(c);var h;return o&&(h=function(f){return P({},{fillOpacity:Math.pow(.85,f.depth)},_(o)?o(f):o)}),Qs(P({},r,{options:{xField:"x",yField:"y",seriesField:a,rawFields:bi(Z(Z([],fN,!0),l,!0)),polygon:{color:i,style:h,shape:u}}})),r}function xN(r){var e=r.chart;return e.axis(!1),r}function wN(r){var e=r.chart,t=r.options,i=t.label,n=jt(e,"polygon");if(!i)n.label(!1);else{var a=i.fields,o=a===void 0?["name"]:a,s=i.callback,l=gt(i,["fields","callback"]);n.label({fields:o,callback:s,cfg:Yt(l)})}return r}function bN(r){var e=r.chart,t=r.options,i=t.innerRadius,n=t.radius,a=t.reflect,o=e.coordinate({type:"polar",cfg:{innerRadius:i,radius:n}});return a&&o.reflect(a),r}function CN(r){var e,t=r.options,i=t.hierarchyConfig,n=t.meta;return J(Lt({},(e={},e[Cx]=A(n,A(i,["field"],"value")),e)))(r)}function SN(r){var e=r.chart,t=r.options,i=t.tooltip;if(i===!1)e.tooltip(!1);else{var n=i;A(i,"fields")||(n=P({},{customItems:function(a){return a.map(function(o){var s=A(e.getOptions(),"scales"),l=A(s,[Ma,"formatter"],function(c){return c}),u=A(s,[Cx,"formatter"],function(c){return c});return m(m({},o),{name:l(o.data[Ma]),value:u(o.data.value)})})}},n)),e.tooltip(n)}return r}function MN(r){var e=r.drilldown,t=r.interactions,i=t===void 0?[]:t;return e!=null&&e.enabled?P({},r,{interactions:Z(Z([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:Mx}}],!1)}):r}function AN(r){var e=r.chart,t=r.options,i=t.drilldown;return At({chart:e,options:MN(t)}),i!=null&&i.enabled&&(e.appendPadding=_s(e.appendPadding,A(i,["breadCrumb","position"]))),r}function FN(r){return J(ut,Se("sunburstStyle"),mN,xN,CN,xn,bN,SN,wN,AN,xt,Et())(r)}(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="sunburst",t}return e.getDefaultOptions=function(){return vN},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return FN},e.SUNBURST_ANCESTOR_FIELD=Ph,e.SUNBURST_PATH_FIELD=Ma,e.NODE_ANCESTORS_FIELD=Th,e})(nt);function Ax(r,e){if(R(r))return r.find(function(t){return t.type===e})}function Fx(r,e){var t=Ax(r,e);return t&&t.enable!==!1}function Dh(r){var e=r.interactions,t=r.drilldown;return A(t,"enabled")||Fx(e,"treemap-drill-down")}function TN(r){var e=r.interactions["drill-down"];if(e){var t=e.context.actions.find(function(i){return i.name==="drill-down-action"});t.reset()}}function Oh(r){var e=r.data,t=r.colorField,i=r.enableDrillDown,n=r.hierarchyConfig,a=Sx(e,m(m({},n),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),o=[];return a.forEach(function(s){if(s.depth===0||i&&s.depth!==1||!i&&s.children)return null;var l=s.ancestors().map(function(f){return{data:f.data,height:f.height,value:f.value}}),u=i&&R(e.path)?l.concat(e.path.slice(1)):l,c=Object.assign({},s.data,m({x:s.x,y:s.y,depth:s.depth,value:s.value,path:u},s));if(!s.data[t]&&s.parent){var h=s.ancestors().find(function(f){return f.data[t]});c[t]=h==null?void 0:h.data[t]}else c[t]=s.data[t];c[Sa]={hierarchyConfig:n,colorField:t,enableDrillDown:i},o.push(c)}),o}function EN(r){var e=r.options,t=e.colorField;return P({options:{rawFields:["value"],tooltip:{fields:["name","value",t,"path"],formatter:function(i){return{name:i.name,value:i.value}}}}},r)}function kN(r){var e=r.chart,t=r.options,i=t.color,n=t.colorField,a=t.rectStyle,o=t.hierarchyConfig,s=t.rawFields,l=Oh({data:t.data,colorField:t.colorField,enableDrillDown:Dh(t),hierarchyConfig:o});return e.data(l),Qs(P({},r,{options:{xField:"x",yField:"y",seriesField:n,rawFields:s,polygon:{color:i,style:a}}})),e.coordinate().reflect("y"),r}function LN(r){var e=r.chart;return e.axis(!1),r}function IN(r){var e=r.drilldown,t=r.interactions,i=t===void 0?[]:t,n=Dh(r);return n?P({},r,{interactions:Z(Z([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:Oh}}],!1)}):r}function PN(r){var e=r.chart,t=r.options,i=t.interactions,n=t.drilldown;At({chart:e,options:IN(t)});var a=Ax(i,"view-zoom");a&&(a.enable!==!1?e.getCanvas().on("mousewheel",function(s){s.preventDefault()}):e.getCanvas().off("mousewheel"));var o=Dh(t);return o&&(e.appendPadding=_s(e.appendPadding,A(n,["breadCrumb","position"]))),r}function DN(r){return J(EN,ut,Se("rectStyle"),kN,LN,xn,zt,PN,xt,Et())(r)}var ON={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}};(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="treemap",t}return e.getDefaultOptions=function(){return ON},e.prototype.changeData=function(t){var i=this.options,n=i.colorField,a=i.interactions,o=i.hierarchyConfig;this.updateOption({data:t});var s=Oh({data:t,colorField:n,enableDrillDown:Fx(a,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),TN(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return DN},e})(nt);var yr="id",Hu="path",BN={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(r){return{name:r.id,value:r.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function sl(r){if(r){var e=r.geometries[0].elements;e.forEach(function(t){t.shape.toFront()})}}var RN=zs("element-active"),NN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.syncElementsPos=function(){sl(this.context.view)},e.prototype.active=function(){r.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){r.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){r.prototype.reset.call(this),this.syncElementsPos()},e}(RN),zN=zs("element-highlight"),GN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.syncElementsPos=function(){sl(this.context.view)},e.prototype.highlight=function(){r.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){r.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){r.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){r.prototype.reset.call(this),this.syncElementsPos()},e}(zN),VN=zs("element-selected"),YN=zs("element-single-selected"),$N=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.syncElementsPos=function(){sl(this.context.view)},e.prototype.selected=function(){r.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){r.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){r.prototype.reset.call(this),this.syncElementsPos()},e}(VN),HN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.syncElementsPos=function(){sl(this.context.view)},e.prototype.selected=function(){r.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){r.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){r.prototype.reset.call(this),this.syncElementsPos()},e}(YN);j("venn-element-active",NN);j("venn-element-highlight",GN);j("venn-element-selected",$N);j("venn-element-single-selected",HN);it("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]});it("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]});it("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]});it("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]});it("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]});it("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var XN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getLabelPoint=function(t,i,n){var a=t.data,o=a.x,s=a.y,l=t.customLabelInfo,u=l.offsetX,c=l.offsetY;return{content:t.content[n],x:o+u,y:s+c}},e}($s);Pa("venn",XN);var Qn=` +\v\f\r   ᠎              \u2028\u2029`,WN=new RegExp("([a-z])["+Qn+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Qn+"]*,?["+Qn+"]*)+)","ig"),_N=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Qn+"]*,?["+Qn+"]*","ig");function qN(r){if(!r)return null;if(qx(r))return r;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(r).replace(WN,function(i,n,a){var o=[],s=n.toLowerCase();if(a.replace(_N,function(l,u){u&&o.push(+u)}),s==="m"&&o.length>2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=e[s]&&(t.push([n].concat(o.splice(0,e[s]))),!!e[s]););return""}),t}function UN(r){return P({},r.defaultStyle,{fill:r.color},r.style)}ft("schema","venn",{draw:function(r,e){var t=r.data,i=qN(t[Hu]),n=UN(r),a=e.addGroup({name:"venn-shape"});a.addShape("path",{attrs:m(m({},n),{path:i}),name:"venn-path"});var o=r.customInfo,s=o.offsetX,l=o.offsetY,u=ve.transform(null,[["t",s,l]]);return a.setMatrix(u),a},getMarker:function(r){var e=r.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var jN=function(r){return function(e,t){var i=[];return i[0]=r(e[0],t[0]),i[1]=r(e[1],t[1]),i[2]=r(e[2],t[2]),i}},rp={normal:function(r){return r},multiply:function(r,e){return r*e/255},screen:function(r,e){return 255*(1-(1-r/255)*(1-e/255))},overlay:function(r,e){return e<128?2*r*e/255:255*(1-2*(1-r/255)*(1-e/255))},darken:function(r,e){return r>e?e:r},lighten:function(r,e){return r>e?r:e},dodge:function(r,e){return r===255?255:(r=255*(e/255)/(1-r/255),r>255?255:r)},burn:function(r,e){return e===255?255:r===0?0:255*(1-Math.min(1,(1-e/255)/(r/255)))}},ZN=function(r){if(!rp[r])throw new Error("unknown blend mode "+r);return rp[r]};function QN(r,e,t){t===void 0&&(t="normal");var i=jN(ZN(t))(Co(r),Co(e)),n=Co(r),a=n[0],o=n[1],s=n[2],l=n[3],u=Co(e),c=u[0],h=u[1],f=u[2],v=u[3],d=Number((l+v*(1-l)).toFixed(2)),p=Math.round((l*(1-v)*(a/255)+l*v*(i[0]/255)+(1-l)*v*(c/255))/d*255),g=Math.round((l*(1-v)*(o/255)+l*v*(i[1]/255)+(1-l)*v*(h/255))/d*255),y=Math.round((l*(1-v)*(s/255)+l*v*(i[2]/255)+(1-l)*v*(f/255))/d*255);return"rgba(".concat(p,", ").concat(g,", ").concat(y,", ").concat(d,")")}function Co(r){var e=r.replace("/s+/g",""),t;return typeof e=="string"&&!e.startsWith("rgba")&&!e.startsWith("#")?t=Nr.rgb2arr(Nr.toRGB(e)).concat([1]):(e.startsWith("rgba")&&(t=e.replace("rgba(","").replace(")","").split(",")),e.startsWith("#")&&(t=Nr.rgb2arr(e).concat([1])),t.map(function(i,n){return n===3?Number(i):i|0}))}function KN(r,e,t,i){i=i||{};var n=i.maxIterations||100,a=i.tolerance||1e-10,o=r(e),s=r(t),l=t-e;if(o*s>0)throw"Initial bisect points must have opposite signs";if(o===0)return e;if(s===0)return t;for(var u=0;u=0&&(e=c),Math.abs(l)=d[v-1].fx){var I=!1;if(b.fx>k.fx?(cr(C,1+c,w,-c,k),C.fx=r(C),C.fx=1)break;for(p=1;ps+a*n*l||u>=y)g=n;else{if(Math.abs(h)<=-o*l)return n;h*(g-p)>=0&&(g=p),p=n,y=u}return 0}for(var d=0;d<10;++d){if(cr(i.x,1,t.x,n,e),u=i.fx=r(i.x,i.fxprime),h=Ji(i.fxprime,e),u>s+a*n*l||d&&u>=c)return v(f,n,c);if(Math.abs(h)<=-o*l)return n;if(h>=0)return v(n,f,u);c=u,f=n,n*=2}return n}function tz(r,e,t){var i={x:e.slice(),fx:0,fxprime:e.slice()},n={x:e.slice(),fx:0,fxprime:e.slice()},a=e.slice(),o,s,l=1,u;t=t||{},u=t.maxIterations||e.length*20,i.fx=r(i.x,i.fxprime),o=i.fxprime.slice(),_u(o,i.fxprime,-1);for(var c=0;c1){var l=Ix(i);for(o=0;o-1){var p=r[h.parentIndex[d]],g=Math.atan2(h.x-p.x,h.y-p.y),y=Math.atan2(c.x-p.x,c.y-p.y),x=y-g;x<0&&(x+=2*Math.PI);var w=y-x/2,b=Ge(f,{x:p.x+p.radius*Math.sin(w),y:p.y+p.radius*Math.cos(w)});b>p.radius*2&&(b=p.radius*2),(v===null||v.width>b)&&(v={circle:p,width:b,p1:h,p2:c})}v!==null&&(s.push(v),n+=qu(v.circle.radius,v.width),c=h)}}else{var C=r[0];for(o=1;oMath.abs(C.radius-r[o].radius)){M=!0;break}M?n=a=0:(n=C.radius*C.radius*Math.PI,s.push({circle:C,p1:{x:C.x,y:C.y+C.radius},p2:{x:C.x-Ex,y:C.y+C.radius},width:C.radius*2}))}return a/=2,e&&(e.area=n+a,e.arcArea=n,e.polygonArea=a,e.arcs=s,e.innerPoints=i,e.intersectionPoints=t),n+a}function ez(r,e){for(var t=0;te[t].radius+Ex)return!1;return!0}function rz(r){for(var e=[],t=0;t=r+e)return 0;if(t<=Math.abs(r-e))return Math.PI*Math.min(r,e)*Math.min(r,e);var i=r-(t*t-e*e+r*r)/(2*t),n=e-(t*t-r*r+e*e)/(2*t);return qu(r,i)+qu(e,n)}function Lx(r,e){var t=Ge(r,e),i=r.radius,n=e.radius;if(t>=i+n||t<=Math.abs(i-n))return[];var a=(i*i-n*n+t*t)/(2*t),o=Math.sqrt(i*i-a*a),s=r.x+a*(e.x-r.x)/t,l=r.y+a*(e.y-r.y)/t,u=-(e.y-r.y)*(o/t),c=-(e.x-r.x)*(o/t);return[{x:s+u,y:l-c},{x:s-u,y:l+c}]}function Ix(r){for(var e={x:0,y:0},t=0;t=o&&(a=t[i],o=s)}var l=Tx(function(f){return-1*jl({x:f[0],y:f[1]},r,e)},[a.x,a.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:l[0],y:l[1]},c=!0;for(i=0;ir[i].radius){c=!1;break}for(i=0;i0&&console.log("WARNING: area "+a+" not represented on screen")}return t}function az(r,e,t){var i=[],n=r-t,a=e;return i.push("M",n,a),i.push("A",t,t,0,1,0,n+2*t,a),i.push("A",t,t,0,1,0,n,a),i.join(" ")}function oz(r){var e={};Bh(r,e);var t=e.arcs;if(t.length===0)return"M 0 0";if(t.length==1){var i=t[0].circle;return az(i.x,i.y,i.radius)}else{for(var n=[` M`,t[0].p2.x,t[0].p2.y],a=0;as;n.push(` -A`,s,s,0,l?1:0,1,o.p1.x,o.p1.y)}return n.join(" ")}}function sz(r,e){e=e||{},e.maxIterations=e.maxIterations||500;var t=e.initialLayout||hz,i=e.lossFunction||Rh;r=lz(r);var n=t(r,e),a=[],o=[],s;for(s in n)n.hasOwnProperty(s)&&(a.push(n[s].x),a.push(n[s].y),o.push(s));for(var l=Tx(function(h){for(var f={},v=0;vu?1:-1}),i=0;i=Math.min(e[o].size,e[s].size)?h=1:a.size<=1e-10&&(h=-1),n[o][s]=n[s][o]=h}),{distances:i,constraints:n}}function cz(r,e,t,i){var n=0,a;for(a=0;a0&&d<=h||f<0&&d>=h||(n+=2*p*p,e[2*a]+=4*p*(o-u),e[2*a+1]+=4*p*(s-c),e[2*l]+=4*p*(u-o),e[2*l+1]+=4*p*(c-s))}return n}function hz(r,e){var t=vz(r,e),i=e.lossFunction||Rh;if(r.length>=8){var n=fz(r,e),a=i(n,r),o=i(t,r);a+1e-8=Math.min(i[c].size,i[h].size)&&(u=0),n[c].push({set:h,size:l.size,weight:u}),n[h].push({set:c,size:l.size,weight:u})}var f=[];for(a in n)if(n.hasOwnProperty(a)){for(var v=0,o=0;o=y.length)){var N=Math.max(O-h,0),V=O,U=Math.min(O+h,y.length-1),D=N-(O-h),z=O+h-U,X=w[-h-1+D]||0,$=w[-h-1+z]||0,Y=C/(C-X-$);D>0&&(F+=Y*(D-1)*M);var W=Math.max(0,O-h+1);a.inside(0,y.length-1,W)&&(y[W].y+=Y*1*M),a.inside(0,y.length-1,V+1)&&(y[V+1].y-=Y*2*M),a.inside(0,y.length-1,U+1)&&(y[U+1].y+=Y*1*M)}});var T=F,L=0,k=0;return y.forEach(function(P){L+=P.y,T+=L,P.y=T,k+=T}),k>0&&y.forEach(function(P){P.y/=k}),y};function s(l,u){for(var c={},h=0,f=-u;f<=u;f++)h+=l(f/u),c[f]=h;return c}r.exports.getExpectedValueFromPdf=function(l){if(!(!l||l.length===0)){var u=0;return l.forEach(function(c){u+=c.x*c.y}),u}},r.exports.getXWithLeftTailArea=function(l,u){if(!(!l||l.length===0)){for(var c=0,h=0,f=0;f=u));f++);return l[h].x}},r.exports.getPerplexity=function(l){if(!(!l||l.length===0)){var u=0;return l.forEach(function(c){var h=Math.log(c.y);isFinite(h)&&(u+=c.y*h)}),u=-u/i,Math.pow(2,u)}}})(zx);var Bz=zx.exports;const Rz=Ux(Bz);function np(r,e){var t=r.length*e;if(r.length===0)throw new Error("quantile requires at least one data point.");if(e<0||e>1)throw new Error("quantiles must be between 0 and 1");return e===1?r[r.length-1]:e===0?r[0]:t%1!==0?r[Math.ceil(t)-1]:r.length%2===0?(r[t-1]+r[t])/2:r[t]}function Pn(r,e,t){var i=r[e];r[e]=r[t],r[t]=i}function Io(r,e,t,i){for(t=t||0,i=i||r.length-1;i>t;){if(i-t>600){var n=i-t+1,a=e-t+1,o=Math.log(n),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(n-s)/n);a-n/2<0&&(l*=-1);var u=Math.max(t,Math.floor(e-a*s/n+l)),c=Math.min(i,Math.floor(e+(n-a)*s/n+l));Io(r,e,u,c)}var h=r[e],f=t,v=i;for(Pn(r,t,e),r[i]>h&&Pn(r,t,i);fh;)v--}r[t]===h?Pn(r,t,v):(v++,Pn(r,v,i)),v<=e&&(t=v+1),e<=v&&(i=v-1)}}function Dn(r,e){var t=r.slice();if(Array.isArray(e)){Nz(t,e);for(var i=[],n=0;n0?c:h},g=I({},r,{options:{xField:n,yField:ke,seriesField:n,rawFields:[a,ll,ju,ke],widthRatio:l,interval:{style:u,shape:v||"waterfall",color:p}}}),y=Zt(g).ext,x=y.geometry;return x.customInfo(m(m({},d),{leaderLine:s})),r}function t5(r){var e,t,i=r.options,n=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,l=i.meta,u=I({},{alias:s},A(l,s));return J(Lt((e={},e[o]=n,e[s]=a,e[ke]=a,e),I({},l,(t={},t[ke]=u,t[ll]=u,t[zh]=u,t))))(r)}function e5(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?e.axis(a,!1):e.axis(a,i),n===!1?(e.axis(o,!1),e.axis(ke,!1)):(e.axis(o,n),e.axis(ke,n)),r}function r5(r){var e=r.chart,t=r.options,i=t.legend,n=t.total,a=t.risingFill,o=t.fallingFill,s=t.locale,l=js(s);if(i===!1)e.legend(!1);else{var u=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:o}}}];n&&u.push({name:n.label||"",value:"total",marker:{symbol:"square",style:I({},{r:5},A(n,"style"))}}),e.legend(I({},{custom:!0,position:"top",items:u},i)),e.removeInteraction("legend-filter")}return r}function i5(r){var e=r.chart,t=r.options,i=t.label,n=t.labelMode,a=t.xField,o=jt(e,"interval");if(!i)o.label(!1);else{var s=i.callback,l=gt(i,["callback"]);o.label({fields:n==="absolute"?[zh,a]:[ll,a],callback:s,cfg:Yt(l)})}return r}function n5(r){var e=r.chart,t=r.options,i=t.tooltip,n=t.xField,a=t.yField;if(i!==!1){e.tooltip(m({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},i));var o=e.geometries[0];i!=null&&i.formatter?o.tooltip("".concat(n,"*").concat(a),i.formatter):o.tooltip(a)}else e.tooltip(!1);return r}function a5(r){return J(Kz,ut,Jz,t5,e5,r5,n5,i5,Kr,At,xt,Et())(r)}(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="waterfall",t}return e.getDefaultOptions=function(){return Uz},e.prototype.changeData=function(t){var i=this.options,n=i.xField,a=i.yField,o=i.total;this.updateOption({data:t}),this.chart.changeData(Hx(t,n,a,o))},e.prototype.getSchemaAdaptor=function(){return a5},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e})(nt);var Gh="color",o5=I({},nt.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",Gh],formatter:function(r){return{name:r.text,value:r.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),s5={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function l5(r,e){return e=yt({},s5,e),u5(r,e)}function u5(r,e){var t=C5();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(l){B(e[l])||t[l](e[l])}),t.words(r),e.imageMask&&t.createMask(e.imageMask);var i=t.start(),n=i._tags;n.forEach(function(l){l.x+=e.size[0]/2,l.y+=e.size[1]/2});var a=e.size,o=a[0],s=a[1];return n.push({text:"",value:0,x:0,y:0,opacity:0}),n.push({text:"",value:0,x:o,y:s,opacity:0}),n}var Zl=Math.PI/180,Yn=64,Oo=2048;function c5(r){return r.text}function h5(){return"serif"}function sp(){return"normal"}function f5(r){return r.value}function v5(){return~~(Math.random()*2)*90}function d5(){return 1}function p5(r,e,t,i){if(!e.sprite){var n=r.context,a=r.ratio;n.clearRect(0,0,(Yn<<5)/a,Oo/a);var o=0,s=0,l=0,u=t.length;for(--i;++i>5<<5,h=~~Math.max(Math.abs(p+g),Math.abs(p-g))}else c=c+31>>5<<5;if(h>l&&(l=h),o+c>=Yn<<5&&(o=0,s+=l,l=0),s+h>=Oo)break;n.translate((o+(c>>1))/a,(s+(h>>1))/a),e.rotate&&n.rotate(e.rotate*Zl),n.fillText(e.text,0,0),e.padding&&(n.lineWidth=2*e.padding,n.strokeText(e.text,0,0)),n.restore(),e.width=c,e.height=h,e.xoff=o,e.yoff=s,e.x1=c>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=c}for(var x=n.getImageData(0,0,(Yn<<5)/a,Oo/a).data,b=[];--i>=0;)if(e=t[i],!!e.hasText){for(var c=e.width,w=c>>5,h=e.y1-e.y0,C=0;C>5),k=x[(s+T)*(Yn<<5)+(o+C)<<2]?1<<31-C%32:0;b[L]|=k,M|=k}M?F=T:(e.y0++,h--,T--,s++)}e.y1=e.y0+F,e.sprite=b.slice(0,(e.y1-e.y0)*w)}}}function g5(r,e,t){t>>=5;for(var i=r.sprite,n=r.width>>5,a=r.x-(n<<4),o=a&127,s=32-o,l=r.y1-r.y0,u=(r.y+r.y0)*t+(a>>5),c,h=0;h>>o:0))&e[u+f])return!0;u+=t}return!1}function y5(r,e){var t=r[0],i=r[1];e.x+e.x0i.x&&(i.x=e.x+e.x1),e.y+e.y1>i.y&&(i.y=e.y+e.y1)}function m5(r,e){return r.x+r.x1>e[0].x&&r.x+r.x0e[0].y&&r.y+r.y0>5)*r[1]),w=l.length,C=[],M=l.map(function(k,P,O){return k.text=c.call(this,k,P,O),k.font=e.call(this,k,P,O),k.style=h.call(this,k,P,O),k.weight=i.call(this,k,P,O),k.rotate=n.call(this,k,P,O),k.size=~~t.call(this,k,P,O),k.padding=a.call(this,k,P,O),k}).sort(function(k,P){return P.size-k.size}),F=-1,T=v.board?[{x:0,y:0},{x:g,y}]:null;L();function L(){for(var k=Date.now();Date.now()-k>1,P.y=y*(s()+.5)>>1,p5(x,P,M,F),P.hasText&&p(b,P,T)&&(C.push(P),T?v.hasImage||y5(T,P):T=[{x:P.x+P.x0,y:P.y+P.y0},{x:P.x+P.x1,y:P.y+P.y1}],P.x-=r[0]>>1,P.y-=r[1]>>1)}v._tags=C,v._bounds=T}return v};function d(g){g.width=g.height=1;var y=Math.sqrt(g.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);g.width=(Yn<<5)/y,g.height=Oo/y;var x=g.getContext("2d",{willReadFrequently:!0});return x.fillStyle=x.strokeStyle="red",x.textAlign="center",{context:x,ratio:y}}function p(g,y,x){for(var b=y.x,w=y.y,C=Math.sqrt(r[0]*r[0]+r[1]*r[1]),M=o(r),F=s()<.5?1:-1,T,L=-F,k,P;(T=M(L+=F))&&(k=~~T[0],P=~~T[1],!(Math.min(Math.abs(k),Math.abs(P))>=C));)if(y.x=b+k,y.y=w+P,!(y.x+y.x0<0||y.y+y.y0<0||y.x+y.x1>r[0]||y.y+y.y1>r[1])&&(!x||!g5(y,g,r[0]))&&(!x||m5(y,x))){for(var O=y.sprite,N=y.width>>5,V=r[0]>>5,U=y.x-(N<<4),D=U&127,z=32-D,X=y.y1-y.y0,$=void 0,Y=(y.y+y.y0)*V+(U>>5),W=0;W>>D:0);Y+=V}return delete y.sprite,!0}return!1}return v.createMask=function(g){var y=document.createElement("canvas"),x=r[0],b=r[1];if(!(!x||!b)){var w=x>>5,C=lp((x>>5)*b);y.width=x,y.height=b;var M=y.getContext("2d");M.drawImage(g,0,0,g.width,g.height,0,0,x,b);for(var F=M.getImageData(0,0,x,b).data,T=0;T>5),P=T*x+L<<2,O=F[P]>=250&&F[P+1]>=250&&F[P+2]>=250,N=O?1<<31-L%32:0;C[k]|=N}v.board=C,v.hasImage=!0}},v.timeInterval=function(g){u=g??1/0},v.words=function(g){l=g},v.size=function(g){r=[+g[0],+g[1]]},v.font=function(g){e=Ue(g)},v.fontWeight=function(g){i=Ue(g)},v.rotate=function(g){n=Ue(g)},v.spiral=function(g){o=b5[g]||g},v.fontSize=function(g){t=Ue(g)},v.padding=function(g){a=Ue(g)},v.random=function(g){s=Ue(g)},v}function Wx(r){var e=r.options,t=r.chart,i=t,n=i.width,a=i.height,o=i.padding,s=i.appendPadding,l=i.ele,u=e.data,c=e.imageMask,h=e.wordField,f=e.weightField,v=e.colorField,d=e.wordStyle,p=e.timeInterval,g=e.random,y=e.spiral,x=e.autoFit,b=x===void 0?!0:x,w=e.placementStrategy;if(!u||!u.length)return[];var C=d.fontFamily,M=d.fontWeight,F=d.padding,T=d.fontSize,L=T5(u,f),k=[L5(L),I5(L)],P=u.map(function(V){return{text:V[h],value:V[f],color:V[v],datum:V}}),O={imageMask:c,font:C,fontSize:F5(T,k),fontWeight:M,size:S5({width:n,height:a,padding:o,appendPadding:s,autoFit:b,container:l}),padding:F,timeInterval:p,random:g,spiral:y,rotate:E5(e)};if(_(w)){var N=P.map(function(V,U,D){return m(m(m({},V),{hasText:!!V.text,font:Ue(O.font)(V,U,D),weight:Ue(O.fontWeight)(V,U,D),rotate:Ue(O.rotate)(V,U,D),size:Ue(O.fontSize)(V,U,D),style:"normal"}),w.call(t,V,U,D))});return N.push({text:"",value:0,x:0,y:0,opacity:0}),N.push({text:"",value:0,x:O.size[0],y:O.size[1],opacity:0}),N}return l5(P,O)}function S5(r){var e=r.width,t=r.height,i=r.container,n=r.autoFit,a=r.padding,o=r.appendPadding;if(n){var s=Bu(i);e=s.width,t=s.height}e=e||400,t=t||400;var l=M5({padding:a,appendPadding:o}),u=l[0],c=l[1],h=l[2],f=l[3],v=[e-(f+c),t-(u+h)];return v}function M5(r){var e=Wr(r.padding),t=Wr(r.appendPadding),i=e[0]+t[0],n=e[1]+t[1],a=e[2]+t[2],o=e[3]+t[3];return[i,n,a,o]}function A5(r){return new Promise(function(e,t){if(r instanceof HTMLImageElement){e(r);return}if(K(r)){var i=new Image;i.crossOrigin="anonymous",i.src=r,i.onload=function(){e(i)},i.onerror=function(){br($e.ERROR,!1,"image %s load failed !!!",r),t()};return}br($e.WARN,r===void 0,"The type of imageMask option must be String or HTMLImageElement."),t()})}function F5(r,e){if(_(r))return r;if(R(r)){var t=r[0],i=r[1];if(!e)return function(){return(i+t)/2};var n=e[0],a=e[1];return a===n?function(){return(i+t)/2}:function(s){var l=s.value;return(i-t)/(a-n)*(l-n)+t}}return function(){return r}}function T5(r,e){return r.map(function(t){return t[e]}).filter(function(t){return typeof t=="number"&&!isNaN(t)})}function E5(r){var e=k5(r),t=e.rotation,i=e.rotationSteps;if(!R(t))return t;var n=t[0],a=t[1],o=i===1?0:(a-n)/(i-1);return function(){return a===n?a:Math.floor(Math.random()*i)*o}}function k5(r){var e=r.wordStyle.rotationSteps;return e<1&&(br($e.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:r.wordStyle.rotation,rotationSteps:e}}function L5(r){return Math.min.apply(Math,r)}function I5(r){return Math.max.apply(Math,r)}function P5(r){var e=r.chart,t=r.options,i=t.colorField,n=t.color,a=Wx(r);e.data(a);var o=I({},r,{options:{xField:"x",yField:"y",seriesField:i&&Gh,rawFields:_(n)&&Z(Z([],A(t,"rawFields",[]),!0),["datum"],!1),point:{color:n,shape:"word-cloud"}}}),s=Me(o).ext;return s.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),r}function D5(r){return J(Lt({x:{nice:!1},y:{nice:!1}}))(r)}function O5(r){var e=r.chart,t=r.options,i=t.legend,n=t.colorField;return i===!1?e.legend(!1):n&&e.legend(Gh,i),r}function B5(r){J(P5,D5,zt,O5,At,xt,ut,Kr)(r)}ft("point","word-cloud",{draw:function(r,e){var t=r.x,i=r.y,n=e.addShape("text",{attrs:m(m({},R5(r)),{x:t,y:i})}),a=r.data.rotate;return typeof a=="number"&&ve.rotate(n,a*Math.PI/180),n}});function R5(r){return{fontSize:r.data.size,text:r.data.text,textAlign:"center",fontFamily:r.data.font,fontWeight:r.data.weight,fill:r.color||r.defaultStyle.stroke,textBaseline:"alphabetic"}}var eG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="word-cloud",t}return e.getDefaultOptions=function(){return o5},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(Wx({chart:this.chart,options:this.options}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){var t=this;return new Promise(function(i){var n=t.options.imageMask;if(!n){r.prototype.render.call(t),i();return}var a=function(o){t.options=m(m({},t.options),{imageMask:o||null}),r.prototype.render.call(t),i()};A5(n).then(a).catch(a)})},e.prototype.getSchemaAdaptor=function(){return B5},e.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){r.prototype.triggerResize.call(t)}))},e}(nt);(function(r){E(e,r);function e(t,i,n,a){var o=r.call(this,t,I({},a,i))||this;return o.type="g2-plot",o.defaultOptions=a,o.adaptor=n,o}return e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor},e})(nt);Um("en-US",lL);Um("zh-CN",uL);var Zu=globalThis&&globalThis.__assign||function(){return Zu=Object.assign||function(r){for(var e,t=1,i=arguments.length;t=18&&(Vh=Ya.createRoot)}catch{}function up(r){var e=Ya.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&typeof e=="object"&&(e.usingClientEntryPoint=r)}var cp="__rc_react_root__";function V5(r,e){up(!0);var t=e[cp]||Vh(e);up(!1),t.render(r),e[cp]=t}function Y5(r,e){z5(r,e)}function $5(r,e){if(Vh){V5(r,e);return}Y5(r,e)}var Ql=new Map,H5=function(r,e,t){var i=document.createElement("div");return e==="tooltip"&&(i.setAttribute("data-uuid",t),Ql.has(t)?i=Ql.get(t):Ql.set(t,i),i.className="g2-tooltip"),$5(r,i),i};const X5=H5;var So=function(r,e){var t={}.toString;return t.call(r)==="[object ".concat(e,"]")},W5=function(r){if(!r)return r;var e={};for(var t in r)e[t]=r[t];return e},os=function(r){if(!r||typeof r!="object")return r;var e;return Array.isArray(r)?e=r.map(function(t){return os(t)}):(e={},Object.keys(r).forEach(function(t){return e[t]=os(r[t])})),e},On=function(r,e){for(var t=r,i=0;iu?1:-1}),i=0;i=Math.min(e[o].size,e[s].size)?h=1:a.size<=1e-10&&(h=-1),n[o][s]=n[s][o]=h}),{distances:i,constraints:n}}function cz(r,e,t,i){var n=0,a;for(a=0;a0&&d<=h||f<0&&d>=h||(n+=2*p*p,e[2*a]+=4*p*(o-u),e[2*a+1]+=4*p*(s-c),e[2*l]+=4*p*(u-o),e[2*l+1]+=4*p*(c-s))}return n}function hz(r,e){var t=vz(r,e),i=e.lossFunction||Rh;if(r.length>=8){var n=fz(r,e),a=i(n,r),o=i(t,r);a+1e-8=Math.min(i[c].size,i[h].size)&&(u=0),n[c].push({set:h,size:l.size,weight:u}),n[h].push({set:c,size:l.size,weight:u})}var f=[];for(a in n)if(n.hasOwnProperty(a)){for(var v=0,o=0;o=y.length)){var N=Math.max(O-h,0),Y=O,q=Math.min(O+h,y.length-1),D=N-(O-h),z=O+h-q,X=b[-h-1+D]||0,$=b[-h-1+z]||0,V=C/(C-X-$);D>0&&(F+=V*(D-1)*M);var W=Math.max(0,O-h+1);a.inside(0,y.length-1,W)&&(y[W].y+=V*1*M),a.inside(0,y.length-1,Y+1)&&(y[Y+1].y-=V*2*M),a.inside(0,y.length-1,q+1)&&(y[q+1].y+=V*1*M)}});var T=F,L=0,k=0;return y.forEach(function(I){L+=I.y,T+=L,I.y=T,k+=T}),k>0&&y.forEach(function(I){I.y/=k}),y};function s(l,u){for(var c={},h=0,f=-u;f<=u;f++)h+=l(f/u),c[f]=h;return c}r.exports.getExpectedValueFromPdf=function(l){if(!(!l||l.length===0)){var u=0;return l.forEach(function(c){u+=c.x*c.y}),u}},r.exports.getXWithLeftTailArea=function(l,u){if(!(!l||l.length===0)){for(var c=0,h=0,f=0;f=u));f++);return l[h].x}},r.exports.getPerplexity=function(l){if(!(!l||l.length===0)){var u=0;return l.forEach(function(c){var h=Math.log(c.y);isFinite(h)&&(u+=c.y*h)}),u=-u/i,Math.pow(2,u)}}})(zx);var Bz=zx.exports;const Rz=Ux(Bz);function np(r,e){var t=r.length*e;if(r.length===0)throw new Error("quantile requires at least one data point.");if(e<0||e>1)throw new Error("quantiles must be between 0 and 1");return e===1?r[r.length-1]:e===0?r[0]:t%1!==0?r[Math.ceil(t)-1]:r.length%2===0?(r[t-1]+r[t])/2:r[t]}function Pn(r,e,t){var i=r[e];r[e]=r[t],r[t]=i}function Io(r,e,t,i){for(t=t||0,i=i||r.length-1;i>t;){if(i-t>600){var n=i-t+1,a=e-t+1,o=Math.log(n),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(n-s)/n);a-n/2<0&&(l*=-1);var u=Math.max(t,Math.floor(e-a*s/n+l)),c=Math.min(i,Math.floor(e+(n-a)*s/n+l));Io(r,e,u,c)}var h=r[e],f=t,v=i;for(Pn(r,t,e),r[i]>h&&Pn(r,t,i);fh;)v--}r[t]===h?Pn(r,t,v):(v++,Pn(r,v,i)),v<=e&&(t=v+1),e<=v&&(i=v-1)}}function Dn(r,e){var t=r.slice();if(Array.isArray(e)){Nz(t,e);for(var i=[],n=0;n0?c:h},g=P({},r,{options:{xField:n,yField:ke,seriesField:n,rawFields:[a,ll,ju,ke],widthRatio:l,interval:{style:u,shape:v||"waterfall",color:p}}}),y=Zt(g).ext,x=y.geometry;return x.customInfo(m(m({},d),{leaderLine:s})),r}function t5(r){var e,t,i=r.options,n=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,l=i.meta,u=P({},{alias:s},A(l,s));return J(Lt((e={},e[o]=n,e[s]=a,e[ke]=a,e),P({},l,(t={},t[ke]=u,t[ll]=u,t[zh]=u,t))))(r)}function e5(r){var e=r.chart,t=r.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?e.axis(a,!1):e.axis(a,i),n===!1?(e.axis(o,!1),e.axis(ke,!1)):(e.axis(o,n),e.axis(ke,n)),r}function r5(r){var e=r.chart,t=r.options,i=t.legend,n=t.total,a=t.risingFill,o=t.fallingFill,s=t.locale,l=js(s);if(i===!1)e.legend(!1);else{var u=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:o}}}];n&&u.push({name:n.label||"",value:"total",marker:{symbol:"square",style:P({},{r:5},A(n,"style"))}}),e.legend(P({},{custom:!0,position:"top",items:u},i)),e.removeInteraction("legend-filter")}return r}function i5(r){var e=r.chart,t=r.options,i=t.label,n=t.labelMode,a=t.xField,o=jt(e,"interval");if(!i)o.label(!1);else{var s=i.callback,l=gt(i,["callback"]);o.label({fields:n==="absolute"?[zh,a]:[ll,a],callback:s,cfg:Yt(l)})}return r}function n5(r){var e=r.chart,t=r.options,i=t.tooltip,n=t.xField,a=t.yField;if(i!==!1){e.tooltip(m({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},i));var o=e.geometries[0];i!=null&&i.formatter?o.tooltip("".concat(n,"*").concat(a),i.formatter):o.tooltip(a)}else e.tooltip(!1);return r}function a5(r){return J(Kz,ut,Jz,t5,e5,r5,n5,i5,Kr,At,xt,Et())(r)}(function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="waterfall",t}return e.getDefaultOptions=function(){return Uz},e.prototype.changeData=function(t){var i=this.options,n=i.xField,a=i.yField,o=i.total;this.updateOption({data:t}),this.chart.changeData(Hx(t,n,a,o))},e.prototype.getSchemaAdaptor=function(){return a5},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e})(nt);var Gh="color",o5=P({},nt.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",Gh],formatter:function(r){return{name:r.text,value:r.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),s5={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function l5(r,e){return e=yt({},s5,e),u5(r,e)}function u5(r,e){var t=C5();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(l){B(e[l])||t[l](e[l])}),t.words(r),e.imageMask&&t.createMask(e.imageMask);var i=t.start(),n=i._tags;n.forEach(function(l){l.x+=e.size[0]/2,l.y+=e.size[1]/2});var a=e.size,o=a[0],s=a[1];return n.push({text:"",value:0,x:0,y:0,opacity:0}),n.push({text:"",value:0,x:o,y:s,opacity:0}),n}var Zl=Math.PI/180,Yn=64,Oo=2048;function c5(r){return r.text}function h5(){return"serif"}function sp(){return"normal"}function f5(r){return r.value}function v5(){return~~(Math.random()*2)*90}function d5(){return 1}function p5(r,e,t,i){if(!e.sprite){var n=r.context,a=r.ratio;n.clearRect(0,0,(Yn<<5)/a,Oo/a);var o=0,s=0,l=0,u=t.length;for(--i;++i>5<<5,h=~~Math.max(Math.abs(p+g),Math.abs(p-g))}else c=c+31>>5<<5;if(h>l&&(l=h),o+c>=Yn<<5&&(o=0,s+=l,l=0),s+h>=Oo)break;n.translate((o+(c>>1))/a,(s+(h>>1))/a),e.rotate&&n.rotate(e.rotate*Zl),n.fillText(e.text,0,0),e.padding&&(n.lineWidth=2*e.padding,n.strokeText(e.text,0,0)),n.restore(),e.width=c,e.height=h,e.xoff=o,e.yoff=s,e.x1=c>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=c}for(var x=n.getImageData(0,0,(Yn<<5)/a,Oo/a).data,w=[];--i>=0;)if(e=t[i],!!e.hasText){for(var c=e.width,b=c>>5,h=e.y1-e.y0,C=0;C>5),k=x[(s+T)*(Yn<<5)+(o+C)<<2]?1<<31-C%32:0;w[L]|=k,M|=k}M?F=T:(e.y0++,h--,T--,s++)}e.y1=e.y0+F,e.sprite=w.slice(0,(e.y1-e.y0)*b)}}}function g5(r,e,t){t>>=5;for(var i=r.sprite,n=r.width>>5,a=r.x-(n<<4),o=a&127,s=32-o,l=r.y1-r.y0,u=(r.y+r.y0)*t+(a>>5),c,h=0;h>>o:0))&e[u+f])return!0;u+=t}return!1}function y5(r,e){var t=r[0],i=r[1];e.x+e.x0i.x&&(i.x=e.x+e.x1),e.y+e.y1>i.y&&(i.y=e.y+e.y1)}function m5(r,e){return r.x+r.x1>e[0].x&&r.x+r.x0e[0].y&&r.y+r.y0>5)*r[1]),b=l.length,C=[],M=l.map(function(k,I,O){return k.text=c.call(this,k,I,O),k.font=e.call(this,k,I,O),k.style=h.call(this,k,I,O),k.weight=i.call(this,k,I,O),k.rotate=n.call(this,k,I,O),k.size=~~t.call(this,k,I,O),k.padding=a.call(this,k,I,O),k}).sort(function(k,I){return I.size-k.size}),F=-1,T=v.board?[{x:0,y:0},{x:g,y}]:null;L();function L(){for(var k=Date.now();Date.now()-k>1,I.y=y*(s()+.5)>>1,p5(x,I,M,F),I.hasText&&p(w,I,T)&&(C.push(I),T?v.hasImage||y5(T,I):T=[{x:I.x+I.x0,y:I.y+I.y0},{x:I.x+I.x1,y:I.y+I.y1}],I.x-=r[0]>>1,I.y-=r[1]>>1)}v._tags=C,v._bounds=T}return v};function d(g){g.width=g.height=1;var y=Math.sqrt(g.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);g.width=(Yn<<5)/y,g.height=Oo/y;var x=g.getContext("2d",{willReadFrequently:!0});return x.fillStyle=x.strokeStyle="red",x.textAlign="center",{context:x,ratio:y}}function p(g,y,x){for(var w=y.x,b=y.y,C=Math.sqrt(r[0]*r[0]+r[1]*r[1]),M=o(r),F=s()<.5?1:-1,T,L=-F,k,I;(T=M(L+=F))&&(k=~~T[0],I=~~T[1],!(Math.min(Math.abs(k),Math.abs(I))>=C));)if(y.x=w+k,y.y=b+I,!(y.x+y.x0<0||y.y+y.y0<0||y.x+y.x1>r[0]||y.y+y.y1>r[1])&&(!x||!g5(y,g,r[0]))&&(!x||m5(y,x))){for(var O=y.sprite,N=y.width>>5,Y=r[0]>>5,q=y.x-(N<<4),D=q&127,z=32-D,X=y.y1-y.y0,$=void 0,V=(y.y+y.y0)*Y+(q>>5),W=0;W>>D:0);V+=Y}return delete y.sprite,!0}return!1}return v.createMask=function(g){var y=document.createElement("canvas"),x=r[0],w=r[1];if(!(!x||!w)){var b=x>>5,C=lp((x>>5)*w);y.width=x,y.height=w;var M=y.getContext("2d");M.drawImage(g,0,0,g.width,g.height,0,0,x,w);for(var F=M.getImageData(0,0,x,w).data,T=0;T>5),I=T*x+L<<2,O=F[I]>=250&&F[I+1]>=250&&F[I+2]>=250,N=O?1<<31-L%32:0;C[k]|=N}v.board=C,v.hasImage=!0}},v.timeInterval=function(g){u=g??1/0},v.words=function(g){l=g},v.size=function(g){r=[+g[0],+g[1]]},v.font=function(g){e=Ue(g)},v.fontWeight=function(g){i=Ue(g)},v.rotate=function(g){n=Ue(g)},v.spiral=function(g){o=b5[g]||g},v.fontSize=function(g){t=Ue(g)},v.padding=function(g){a=Ue(g)},v.random=function(g){s=Ue(g)},v}function Wx(r){var e=r.options,t=r.chart,i=t,n=i.width,a=i.height,o=i.padding,s=i.appendPadding,l=i.ele,u=e.data,c=e.imageMask,h=e.wordField,f=e.weightField,v=e.colorField,d=e.wordStyle,p=e.timeInterval,g=e.random,y=e.spiral,x=e.autoFit,w=x===void 0?!0:x,b=e.placementStrategy;if(!u||!u.length)return[];var C=d.fontFamily,M=d.fontWeight,F=d.padding,T=d.fontSize,L=T5(u,f),k=[L5(L),I5(L)],I=u.map(function(Y){return{text:Y[h],value:Y[f],color:Y[v],datum:Y}}),O={imageMask:c,font:C,fontSize:F5(T,k),fontWeight:M,size:S5({width:n,height:a,padding:o,appendPadding:s,autoFit:w,container:l}),padding:F,timeInterval:p,random:g,spiral:y,rotate:E5(e)};if(_(b)){var N=I.map(function(Y,q,D){return m(m(m({},Y),{hasText:!!Y.text,font:Ue(O.font)(Y,q,D),weight:Ue(O.fontWeight)(Y,q,D),rotate:Ue(O.rotate)(Y,q,D),size:Ue(O.fontSize)(Y,q,D),style:"normal"}),b.call(t,Y,q,D))});return N.push({text:"",value:0,x:0,y:0,opacity:0}),N.push({text:"",value:0,x:O.size[0],y:O.size[1],opacity:0}),N}return l5(I,O)}function S5(r){var e=r.width,t=r.height,i=r.container,n=r.autoFit,a=r.padding,o=r.appendPadding;if(n){var s=Bu(i);e=s.width,t=s.height}e=e||400,t=t||400;var l=M5({padding:a,appendPadding:o}),u=l[0],c=l[1],h=l[2],f=l[3],v=[e-(f+c),t-(u+h)];return v}function M5(r){var e=Wr(r.padding),t=Wr(r.appendPadding),i=e[0]+t[0],n=e[1]+t[1],a=e[2]+t[2],o=e[3]+t[3];return[i,n,a,o]}function A5(r){return new Promise(function(e,t){if(r instanceof HTMLImageElement){e(r);return}if(K(r)){var i=new Image;i.crossOrigin="anonymous",i.src=r,i.onload=function(){e(i)},i.onerror=function(){br($e.ERROR,!1,"image %s load failed !!!",r),t()};return}br($e.WARN,r===void 0,"The type of imageMask option must be String or HTMLImageElement."),t()})}function F5(r,e){if(_(r))return r;if(R(r)){var t=r[0],i=r[1];if(!e)return function(){return(i+t)/2};var n=e[0],a=e[1];return a===n?function(){return(i+t)/2}:function(s){var l=s.value;return(i-t)/(a-n)*(l-n)+t}}return function(){return r}}function T5(r,e){return r.map(function(t){return t[e]}).filter(function(t){return typeof t=="number"&&!isNaN(t)})}function E5(r){var e=k5(r),t=e.rotation,i=e.rotationSteps;if(!R(t))return t;var n=t[0],a=t[1],o=i===1?0:(a-n)/(i-1);return function(){return a===n?a:Math.floor(Math.random()*i)*o}}function k5(r){var e=r.wordStyle.rotationSteps;return e<1&&(br($e.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:r.wordStyle.rotation,rotationSteps:e}}function L5(r){return Math.min.apply(Math,r)}function I5(r){return Math.max.apply(Math,r)}function P5(r){var e=r.chart,t=r.options,i=t.colorField,n=t.color,a=Wx(r);e.data(a);var o=P({},r,{options:{xField:"x",yField:"y",seriesField:i&&Gh,rawFields:_(n)&&Z(Z([],A(t,"rawFields",[]),!0),["datum"],!1),point:{color:n,shape:"word-cloud"}}}),s=Me(o).ext;return s.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),r}function D5(r){return J(Lt({x:{nice:!1},y:{nice:!1}}))(r)}function O5(r){var e=r.chart,t=r.options,i=t.legend,n=t.colorField;return i===!1?e.legend(!1):n&&e.legend(Gh,i),r}function B5(r){J(P5,D5,zt,O5,At,xt,ut,Kr)(r)}ft("point","word-cloud",{draw:function(r,e){var t=r.x,i=r.y,n=e.addShape("text",{attrs:m(m({},R5(r)),{x:t,y:i})}),a=r.data.rotate;return typeof a=="number"&&ve.rotate(n,a*Math.PI/180),n}});function R5(r){return{fontSize:r.data.size,text:r.data.text,textAlign:"center",fontFamily:r.data.font,fontWeight:r.data.weight,fill:r.color||r.defaultStyle.stroke,textBaseline:"alphabetic"}}var eG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="word-cloud",t}return e.getDefaultOptions=function(){return o5},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(Wx({chart:this.chart,options:this.options}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){var t=this;return new Promise(function(i){var n=t.options.imageMask;if(!n){r.prototype.render.call(t),i();return}var a=function(o){t.options=m(m({},t.options),{imageMask:o||null}),r.prototype.render.call(t),i()};A5(n).then(a).catch(a)})},e.prototype.getSchemaAdaptor=function(){return B5},e.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){r.prototype.triggerResize.call(t)}))},e}(nt);(function(r){E(e,r);function e(t,i,n,a){var o=r.call(this,t,P({},a,i))||this;return o.type="g2-plot",o.defaultOptions=a,o.adaptor=n,o}return e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor},e})(nt);Um("en-US",lL);Um("zh-CN",uL);var Zu=globalThis&&globalThis.__assign||function(){return Zu=Object.assign||function(r){for(var e,t=1,i=arguments.length;t=18&&(Vh=Ya.createRoot)}catch{}function up(r){var e=Ya.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&typeof e=="object"&&(e.usingClientEntryPoint=r)}var cp="__rc_react_root__";function V5(r,e){up(!0);var t=e[cp]||Vh(e);up(!1),t.render(r),e[cp]=t}function Y5(r,e){z5(r,e)}function $5(r,e){if(Vh){V5(r,e);return}Y5(r,e)}var Ql=new Map,H5=function(r,e,t){var i=document.createElement("div");return e==="tooltip"&&(i.setAttribute("data-uuid",t),Ql.has(t)?i=Ql.get(t):Ql.set(t,i),i.className="g2-tooltip"),$5(r,i),i};const X5=H5;var So=function(r,e){var t={}.toString;return t.call(r)==="[object ".concat(e,"]")},W5=function(r){if(!r)return r;var e={};for(var t in r)e[t]=r[t];return e},os=function(r){if(!r||typeof r!="object")return r;var e;return Array.isArray(r)?e=r.map(function(t){return os(t)}):(e={},Object.keys(r).forEach(function(t){return e[t]=os(r[t])})),e},On=function(r,e){for(var t=r,i=0;i{t&&t.length>0&&(!e||JSON.stringify(t)!==JSON.stringify(e))&&n(t)},[t]),{flangeParams:e,flangeParamsLoading:f}}export{K as useFlangeParams}; diff --git a/web/dist/assets/index-d81f4240.js b/web/dist/assets/index-032ff5a9.js similarity index 98% rename from web/dist/assets/index-d81f4240.js rename to web/dist/assets/index-032ff5a9.js index f83a35d28f7ebe4923e8c49fedb9deec8b929ed1..efc04c52138c6e871b72370532ca144975225ba8 100644 --- a/web/dist/assets/index-d81f4240.js +++ b/web/dist/assets/index-032ff5a9.js @@ -1,4 +1,4 @@ -import{u as c,c as g,t as $,bk as d,c5 as u,c6 as p,g as m,m as h,c7 as b,a as S}from"./umi-2ee4055f.js";const y=i=>{const{componentCls:o,iconCls:e}=i;return{[`${o}-wrapper`]:{[`${o}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:i.colorFillAlter,border:`${c(i.lineWidth)} dashed ${i.colorBorder}`,borderRadius:i.borderRadiusLG,cursor:"pointer",transition:`border-color ${i.motionDurationSlow}`,[o]:{padding:i.padding},[`${o}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:i.borderRadiusLG,"&:focus-visible":{outline:`${c(i.lineWidthFocus)} solid ${i.colorPrimaryBorder}`}},[`${o}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` +import{u as c,c as g,t as $,bi as d,ca as u,cb as p,g as m,m as h,cc as b,a as S}from"./umi-5f6aeac9.js";const y=i=>{const{componentCls:o,iconCls:e}=i;return{[`${o}-wrapper`]:{[`${o}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:i.colorFillAlter,border:`${c(i.lineWidth)} dashed ${i.colorBorder}`,borderRadius:i.borderRadiusLG,cursor:"pointer",transition:`border-color ${i.motionDurationSlow}`,[o]:{padding:i.padding},[`${o}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:i.borderRadiusLG,"&:focus-visible":{outline:`${c(i.lineWidthFocus)} solid ${i.colorPrimaryBorder}`}},[`${o}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${o}-disabled):hover, &-hover:not(${o}-disabled) `]:{borderColor:i.colorPrimaryHover},[`p${o}-drag-icon`]:{marginBottom:i.margin,[e]:{color:i.colorPrimary,fontSize:i.uploadThumbnailSize}},[`p${o}-text`]:{margin:`0 0 ${c(i.marginXXS)}`,color:i.colorTextHeading,fontSize:i.fontSizeLG},[`p${o}-hint`]:{color:i.colorTextDescription,fontSize:i.fontSize},[`&${o}-disabled`]:{[`p${o}-drag-icon ${e}, diff --git a/web/dist/assets/index-04808238.js b/web/dist/assets/index-04808238.js new file mode 100644 index 0000000000000000000000000000000000000000..e2bcefa9e2dbc0cf6ed5cf622fa2701d52c9ec6c --- /dev/null +++ b/web/dist/assets/index-04808238.js @@ -0,0 +1 @@ +import{b as o,R as c}from"./umi-5f6aeac9.js";import{u as g,T as v,g as d,E as T,a as b,b as O}from"./createLoading-e07c13ae.js";var E=globalThis&&globalThis.__rest||function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r0&&(s.percent=s.loaded/s.total*100),r.onProgress(s)});var n=new FormData;r.data&&Object.keys(r.data).forEach(function(a){var s=r.data[a];if(Array.isArray(s)){s.forEach(function(u){n.append("".concat(a,"[]"),u)});return}n.append(a,s)}),r.file instanceof Blob?n.append(r.filename,r.file,r.file.name):n.append(r.filename,r.file),o.onerror=function(s){r.onError(s)},o.onload=function(){return o.status<200||o.status>=300?r.onError(kt(r,o),Te(o)):r.onSuccess(Te(o),o)},o.open(r.method,r.action,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);var t=r.headers||{};return t["X-Requested-With"]!==null&&o.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(t).forEach(function(a){t[a]!==null&&o.setRequestHeader(a,t[a])}),o.send(n),{abort:function(){o.abort()}}}var $t=function(){var r=pe(z().mark(function o(n,t){var a,s,u,e,m,c,d,p;return z().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:c=function(){return c=pe(z().mark(function y(C){return z().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",new Promise(function($){C.file(function(I){t(I)?(C.fullPath&&!I.webkitRelativePath&&(Object.defineProperties(I,{webkitRelativePath:{writable:!0}}),I.webkitRelativePath=C.fullPath.replace(/^\//,""),Object.defineProperties(I,{webkitRelativePath:{writable:!1}})),$(I)):$(null)})}));case 1:case"end":return E.stop()}},y)})),c.apply(this,arguments)},m=function(y){return c.apply(this,arguments)},e=function(){return e=pe(z().mark(function y(C){var O,E,$,I,l;return z().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:O=C.createReader(),E=[];case 2:return F.next=5,new Promise(function(T){O.readEntries(T,function(){return T([])})});case 5:if($=F.sent,I=$.length,I){F.next=9;break}return F.abrupt("break",12);case 9:for(l=0;l{let{uid:s}=a;return s===r.uid});return t===-1?n.push(r):n[t]=r,n}function Fe(r,o){const n=r.uid!==void 0?"uid":"name";return o.filter(t=>t[n]===r[n])[0]}function xt(r,o){const n=r.uid!==void 0?"uid":"name",t=o.filter(a=>a[n]!==r[n]);return t.length===o.length?null:t}const Ut=function(){const o=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),t=o[o.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]},ze=r=>r.indexOf("image/")===0,jt=r=>{if(r.type&&!r.thumbUrl)return ze(r.type);const o=r.thumbUrl||r.url||"",n=Ut(o);return/^data:image\//.test(o)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(o)||n)},te=200;function St(r){return new Promise(o=>{if(!r.type||!ze(r.type)){o("");return}const n=document.createElement("canvas");n.width=te,n.height=te,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${te}px; height: ${te}px; z-index: 9999; display: none;`,document.body.appendChild(n);const t=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:s,height:u}=a;let e=te,m=te,c=0,d=0;s>u?(m=u*(te/s),d=-(m-e)/2):(e=s*(te/u),c=-(e-m)/2),t.drawImage(a,c,d,e,m);const p=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),o(p)},a.crossOrigin="anonymous",r.type.startsWith("image/svg+xml")){const s=new FileReader;s.onload=()=>{s.result&&typeof s.result=="string"&&(a.src=s.result)},s.readAsDataURL(r)}else if(r.type.startsWith("image/gif")){const s=new FileReader;s.onload=()=>{s.result&&o(s.result)},s.readAsDataURL(r)}else a.src=window.URL.createObjectURL(r)})}const Lt=i.forwardRef((r,o)=>{let{prefixCls:n,className:t,style:a,locale:s,listType:u,file:e,items:m,progress:c,iconRender:d,actionIconRender:p,itemRender:g,isImgUrl:w,showPreviewIcon:h,showRemoveIcon:y,showDownloadIcon:C,previewIcon:O,removeIcon:E,downloadIcon:$,extra:I,onPreview:l,onDownload:j,onClose:F}=r;var T,K;const{status:H}=e,[L,J]=i.useState(H);i.useEffect(()=>{H!=="removed"&&J(H)},[H]);const[ne,ae]=i.useState(!1);i.useEffect(()=>{const N=setTimeout(()=>{ae(!0)},300);return()=>{clearTimeout(N)}},[]);const se=d(e);let B=i.createElement("div",{className:`${n}-icon`},se);if(u==="picture"||u==="picture-card"||u==="picture-circle")if(L==="uploading"||!e.thumbUrl&&!e.url){const N=q(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:L!=="uploading"});B=i.createElement("div",{className:N},se)}else{const N=w!=null&&w(e)?i.createElement("img",{src:e.thumbUrl||e.url,alt:e.name,className:`${n}-list-item-image`,crossOrigin:e.crossOrigin}):se,R=q(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:w&&!w(e)});B=i.createElement("a",{className:R,onClick:X=>l(e,X),href:e.url||e.thumbUrl,target:"_blank",rel:"noopener noreferrer"},N)}const U=q(`${n}-list-item`,`${n}-list-item-${L}`),Y=typeof e.linkProps=="string"?JSON.parse(e.linkProps):e.linkProps,oe=(typeof y=="function"?y(e):y)?p((typeof E=="function"?E(e):E)||i.createElement(lt,null),()=>F(e),n,s.removeFile,!0):null,ue=(typeof C=="function"?C(e):C)&&L==="done"?p((typeof $=="function"?$(e):$)||i.createElement(ct,null),()=>j(e),n,s.downloadFile):null,Z=u!=="picture-card"&&u!=="picture-circle"&&i.createElement("span",{key:"download-delete",className:q(`${n}-list-item-actions`,{picture:u==="picture"})},ue,oe),V=typeof I=="function"?I(e):I,f=V&&i.createElement("span",{className:`${n}-list-item-extra`},V),x=q(`${n}-list-item-name`),W=e.url?i.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:x,title:e.name},Y,{href:e.url,onClick:N=>l(e,N)}),e.name,f):i.createElement("span",{key:"view",className:x,onClick:N=>l(e,N),title:e.name},e.name,f),A=(typeof h=="function"?h(e):h)&&(e.url||e.thumbUrl)?i.createElement("a",{href:e.url||e.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:N=>l(e,N),title:s.previewFile},typeof O=="function"?O(e):O||i.createElement(ut,null)):null,Q=(u==="picture-card"||u==="picture-circle")&&L!=="uploading"&&i.createElement("span",{className:`${n}-list-item-actions`},A,L==="done"&&ue,oe),{getPrefixCls:ee}=i.useContext(De),fe=ee(),G=i.createElement("div",{className:U},B,W,Z,Q,ne&&i.createElement(We,{motionName:`${fe}-fade`,visible:L==="uploading",motionDeadline:2e3},N=>{let{className:R}=N;const X="percent"in e?i.createElement(pt,Object.assign({},c,{type:"line",percent:e.percent,"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"]})):null;return i.createElement("div",{className:q(`${n}-list-item-progress`,R)},X)})),ie=e.response&&typeof e.response=="string"?e.response:((T=e.error)===null||T===void 0?void 0:T.statusText)||((K=e.error)===null||K===void 0?void 0:K.message)||s.uploadError,me=L==="error"?i.createElement(dt,{title:ie,getPopupContainer:N=>N.parentNode},G):G;return i.createElement("div",{className:q(`${n}-list-item-container`,t),style:a,ref:o},g?g(me,e,m,{download:j.bind(null,e),preview:l.bind(null,e),remove:F.bind(null,e)}):me)}),Mt=Lt,Tt=(r,o)=>{const{listType:n="text",previewFile:t=St,onPreview:a,onDownload:s,onRemove:u,locale:e,iconRender:m,isImageUrl:c=jt,prefixCls:d,items:p=[],showPreviewIcon:g=!0,showRemoveIcon:w=!0,showDownloadIcon:h=!1,removeIcon:y,previewIcon:C,downloadIcon:O,extra:E,progress:$={size:[-1,2],showInfo:!1},appendAction:I,appendActionVisible:l=!0,itemRender:j,disabled:F}=r,T=ft(),[K,H]=i.useState(!1),L=["picture-card","picture-circle"].includes(n);i.useEffect(()=>{n.startsWith("picture")&&(p||[]).forEach(f=>{!(f.originFileObj instanceof File||f.originFileObj instanceof Blob)||f.thumbUrl!==void 0||(f.thumbUrl="",t==null||t(f.originFileObj).then(x=>{f.thumbUrl=x||"",T()}))})},[n,p,t]),i.useEffect(()=>{H(!0)},[]);const J=(f,x)=>{if(a)return x==null||x.preventDefault(),a(f)},ne=f=>{typeof s=="function"?s(f):f.url&&window.open(f.url)},ae=f=>{u==null||u(f)},se=f=>{if(m)return m(f,n);const x=f.status==="uploading";if(n.startsWith("picture")){const W=n==="picture"?i.createElement(Se,null):e.uploading,A=c!=null&&c(f)?i.createElement(ht,null):i.createElement(bt,null);return x?W:A}return x?i.createElement(Se,null):i.createElement(wt,null)},B=(f,x,W,A,Q)=>{const ee={type:"text",size:"small",title:A,onClick:fe=>{var G,ie;x(),i.isValidElement(f)&&((ie=(G=f.props).onClick)===null||ie===void 0||ie.call(G,fe))},className:`${W}-list-item-action`};return Q&&(ee.disabled=F),i.isValidElement(f)?i.createElement(Le,Object.assign({},ee,{icon:je(f,Object.assign(Object.assign({},f.props),{onClick:()=>{}}))})):i.createElement(Le,Object.assign({},ee),i.createElement("span",null,f))};i.useImperativeHandle(o,()=>({handlePreview:J,handleDownload:ne}));const{getPrefixCls:U}=i.useContext(De),Y=U("upload",d),oe=U(),ue=q(`${Y}-list`,`${Y}-list-${n}`),Z=i.useMemo(()=>mt(vt(oe),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[oe]),V=Object.assign(Object.assign({},L?{}:Z),{motionDeadline:2e3,motionName:`${Y}-${L?"animate-inline":"animate"}`,keys:re(p.map(f=>({key:f.uid,file:f}))),motionAppear:K});return i.createElement("div",{className:ue},i.createElement(gt,Object.assign({},V,{component:!1}),f=>{let{key:x,file:W,className:A,style:Q}=f;return i.createElement(Mt,{key:x,locale:e,prefixCls:Y,className:A,style:Q,file:W,items:p,progress:$,listType:n,isImgUrl:c,showPreviewIcon:g,showRemoveIcon:w,showDownloadIcon:h,removeIcon:y,previewIcon:C,downloadIcon:O,extra:E,iconRender:se,actionIconRender:B,itemRender:j,onPreview:J,onDownload:ne,onClose:ae})}),I&&i.createElement(We,Object.assign({},V,{visible:l,forceRender:!0}),f=>{let{className:x,style:W}=f;return je(I,A=>({className:q(A.className,x),style:Object.assign(Object.assign(Object.assign({},W),{pointerEvents:x?"none":void 0}),A.style)}))}))},At=i.forwardRef(Tt),_t=At;var qt=globalThis&&globalThis.__awaiter||function(r,o,n,t){function a(s){return s instanceof n?s:new n(function(u){u(s)})}return new(n||(n=Promise))(function(s,u){function e(d){try{c(t.next(d))}catch(p){u(p)}}function m(d){try{c(t.throw(d))}catch(p){u(p)}}function c(d){d.done?s(d.value):a(d.value).then(e,m)}c((t=t.apply(r,o||[])).next())})};const ve=`__LIST_IGNORE_${Date.now()}__`,Bt=(r,o)=>{const{fileList:n,defaultFileList:t,onRemove:a,showUploadList:s=!0,listType:u="text",onPreview:e,onDownload:m,onChange:c,onDrop:d,previewFile:p,disabled:g,locale:w,iconRender:h,isImageUrl:y,progress:C,prefixCls:O,className:E,type:$="select",children:I,style:l,itemRender:j,maxCount:F,data:T={},multiple:K=!1,hasControlInside:H=!0,action:L="",accept:J="",supportServerRender:ne=!0,rootClassName:ae}=r,se=i.useContext(yt),B=g??se,[U,Y]=Ct(t||[],{value:n,postState:v=>v??[]}),[oe,ue]=i.useState("drop"),Z=i.useRef(null),V=i.useRef(null);i.useMemo(()=>{const v=Date.now();(n||[]).forEach((k,P)=>{!k.uid&&!Object.isFrozen(k)&&(k.uid=`__AUTO__${v}_${P}__`)})},[n]);const f=(v,k,P)=>{let b=re(k),D=!1;F===1?b=b.slice(-1):F&&(D=b.length>F,b=b.slice(0,F)),Me.flushSync(()=>{Y(b)});const M={file:v,fileList:b};P&&(M.event=P),(!D||v.status==="removed"||b.some(le=>le.uid===v.uid))&&Me.flushSync(()=>{c==null||c(M)})},x=(v,k)=>qt(void 0,void 0,void 0,function*(){const{beforeUpload:P,transformFile:b}=r;let D=v;if(P){const M=yield P(v,k);if(M===!1)return!1;if(delete v[ve],M===ve)return Object.defineProperty(v,ve,{value:!0,configurable:!0}),!1;typeof M=="object"&&M&&(D=M)}return b&&(D=yield b(D)),D}),W=v=>{const k=v.filter(D=>!D.file[ve]);if(!k.length)return;const P=k.map(D=>ge(D.file));let b=re(U);P.forEach(D=>{b=he(D,b)}),P.forEach((D,M)=>{let le=D;if(k[M].parsedFile)D.status="uploading";else{const{originFileObj:de}=D;let ce;try{ce=new File([de],de.name,{type:de.type})}catch{ce=new Blob([de],{type:de.type}),ce.name=de.name,ce.lastModifiedDate=new Date,ce.lastModified=new Date().getTime()}ce.uid=D.uid,le=ce}f(le,b)})},A=(v,k,P)=>{try{typeof v=="string"&&(v=JSON.parse(v))}catch{}if(!Fe(k,U))return;const b=ge(k);b.status="done",b.percent=100,b.response=v,b.xhr=P;const D=he(b,U);f(b,D)},Q=(v,k)=>{if(!Fe(k,U))return;const P=ge(k);P.status="uploading",P.percent=v.percent;const b=he(P,U);f(P,b,v)},ee=(v,k,P)=>{if(!Fe(P,U))return;const b=ge(P);b.error=v,b.response=k,b.status="error";const D=he(b,U);f(b,D)},fe=v=>{let k;Promise.resolve(typeof a=="function"?a(v):a).then(P=>{var b;if(P===!1)return;const D=xt(v,U);D&&(k=Object.assign(Object.assign({},v),{status:"removed"}),U==null||U.forEach(M=>{const le=k.uid!==void 0?"uid":"name";M[le]===k[le]&&!Object.isFrozen(M)&&(M.status="removed")}),(b=Z.current)===null||b===void 0||b.abort(k),f(k,D))})},G=v=>{ue(v.type),v.type==="drop"&&(d==null||d(v))};i.useImperativeHandle(o,()=>({onBatchStart:W,onSuccess:A,onProgress:Q,onError:ee,fileList:U,upload:Z.current,nativeElement:V.current}));const{getPrefixCls:ie,direction:me,upload:N}=i.useContext(De),R=ie("upload",O),X=Object.assign(Object.assign({onBatchStart:W,onError:ee,onProgress:Q,onSuccess:A},r),{data:T,multiple:K,action:L,accept:J,supportServerRender:ne,prefixCls:R,disabled:B,beforeUpload:x,onChange:void 0,hasControlInside:H});delete X.className,delete X.style,(!I||B)&&delete X.id;const Ne=`${R}-wrapper`,[be,Pe,Ve]=Ft(R,Ne),[Ke]=Et("Upload",It.Upload),{showRemoveIcon:xe,showPreviewIcon:Ge,showDownloadIcon:Xe,removeIcon:Je,previewIcon:Ye,downloadIcon:Ze,extra:Qe}=typeof s=="boolean"?{}:s,et=typeof xe>"u"?!B:xe,we=(v,k)=>s?i.createElement(_t,{prefixCls:R,listType:u,items:U,previewFile:p,onPreview:e,onDownload:m,onRemove:fe,showRemoveIcon:et,showPreviewIcon:Ge,showDownloadIcon:Xe,removeIcon:Je,previewIcon:Ye,downloadIcon:Ze,iconRender:h,extra:Qe,locale:Object.assign(Object.assign({},Ke),w),isImageUrl:y,progress:C,appendAction:v,appendActionVisible:k,itemRender:j,disabled:B}):v,ye=q(Ne,E,ae,Pe,Ve,N==null?void 0:N.className,{[`${R}-rtl`]:me==="rtl",[`${R}-picture-card-wrapper`]:u==="picture-card",[`${R}-picture-circle-wrapper`]:u==="picture-circle"}),tt=Object.assign(Object.assign({},N==null?void 0:N.style),l);if($==="drag"){const v=q(Pe,R,`${R}-drag`,{[`${R}-drag-uploading`]:U.some(k=>k.status==="uploading"),[`${R}-drag-hover`]:oe==="dragover",[`${R}-disabled`]:B,[`${R}-rtl`]:me==="rtl"});return be(i.createElement("span",{className:ye,ref:V},i.createElement("div",{className:v,style:tt,onDrop:G,onDragOver:G,onDragLeave:G},i.createElement($e,Object.assign({},X,{ref:Z,className:`${R}-btn`}),i.createElement("div",{className:`${R}-drag-container`},I))),we()))}const rt=q(R,`${R}-select`,{[`${R}-disabled`]:B,[`${R}-hidden`]:!I}),Ue=i.createElement("div",{className:rt},i.createElement($e,Object.assign({},X,{ref:Z})));return be(u==="picture-card"||u==="picture-circle"?i.createElement("span",{className:ye,ref:V},we(Ue,!!I)):i.createElement("span",{className:ye,ref:V},Ue,we()))},Wt=i.forwardRef(Bt),He=Wt;var zt=globalThis&&globalThis.__rest||function(r,o){var n={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&o.indexOf(t)<0&&(n[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(r);a{var{style:n,height:t,hasControlInside:a=!1}=r,s=zt(r,["style","height","hasControlInside"]);return i.createElement(He,Object.assign({ref:o,hasControlInside:a},s,{type:"drag",style:Object.assign(Object.assign({},n),{height:t})}))}),Vt=Ht,Re=He;Re.Dragger=Vt;Re.LIST_IGNORE=ve;const Jt=Re;function Yt(r){return`/api${r}`}export{Jt as U,Yt as g}; +import{cL as nt,E as pe,F as z,bk as re,e as _e,f as Ae,i as qe,k as S,l as A,h as Be,s as at,b3 as q,R as ke,cr as Oe,c7 as st,_ as ot,b as i,bP as it,ai as lt,cM as ct,cN as ut,b9 as De,T as dt,cO as We,b1 as pt,c8 as ft,bb as mt,bS as vt,cP as ht,c9 as Ue,bL as Se,cQ as gt,cR as bt,cS as wt,B as Le,cT as yt,x as Ct,bd as Et,be as It,z as Te}from"./umi-5f6aeac9.js";import{u as Ft}from"./index-032ff5a9.js";const Ce=function(r,o){if(r&&o){var n=Array.isArray(o)?o:o.split(","),t=r.name||"",a=r.type||"",s=a.replace(/\/.*$/,"");return n.some(function(u){var e=u.trim();if(/^\*(\/\*)?$/.test(u))return!0;if(e.charAt(0)==="."){var m=t.toLowerCase(),c=e.toLowerCase(),d=[c];return(c===".jpg"||c===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(p){return m.endsWith(p)})}return/\/\*$/.test(e)?s===e.replace(/\/.*$/,""):a===e?!0:/^\w+$/.test(e)?(nt(!1,"Upload takes an invalidate 'accept' type '".concat(e,"'.Skip for check.")),!0):!1})}return!0};function kt(r,o){var n="cannot ".concat(r.method," ").concat(r.action," ").concat(o.status,"'"),t=new Error(n);return t.status=o.status,t.method=r.method,t.url=r.action,t}function Me(r){var o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}function Ot(r){var o=new XMLHttpRequest;r.onProgress&&o.upload&&(o.upload.onprogress=function(s){s.total>0&&(s.percent=s.loaded/s.total*100),r.onProgress(s)});var n=new FormData;r.data&&Object.keys(r.data).forEach(function(a){var s=r.data[a];if(Array.isArray(s)){s.forEach(function(u){n.append("".concat(a,"[]"),u)});return}n.append(a,s)}),r.file instanceof Blob?n.append(r.filename,r.file,r.file.name):n.append(r.filename,r.file),o.onerror=function(s){r.onError(s)},o.onload=function(){return o.status<200||o.status>=300?r.onError(kt(r,o),Me(o)):r.onSuccess(Me(o),o)},o.open(r.method,r.action,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);var t=r.headers||{};return t["X-Requested-With"]!==null&&o.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(t).forEach(function(a){t[a]!==null&&o.setRequestHeader(a,t[a])}),o.send(n),{abort:function(){o.abort()}}}var $t=function(){var r=pe(z().mark(function o(n,t){var a,s,u,e,m,c,d,p;return z().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:c=function(){return c=pe(z().mark(function y(C){return z().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",new Promise(function($){C.file(function(I){t(I)?(C.fullPath&&!I.webkitRelativePath&&(Object.defineProperties(I,{webkitRelativePath:{writable:!0}}),I.webkitRelativePath=C.fullPath.replace(/^\//,""),Object.defineProperties(I,{webkitRelativePath:{writable:!1}})),$(I)):$(null)})}));case 1:case"end":return E.stop()}},y)})),c.apply(this,arguments)},m=function(y){return c.apply(this,arguments)},e=function(){return e=pe(z().mark(function y(C){var O,E,$,I,l;return z().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:O=C.createReader(),E=[];case 2:return F.next=5,new Promise(function(M){O.readEntries(M,function(){return M([])})});case 5:if($=F.sent,I=$.length,I){F.next=9;break}return F.abrupt("break",12);case 9:for(l=0;l{let{uid:s}=a;return s===r.uid});return t===-1?n.push(r):n[t]=r,n}function Fe(r,o){const n=r.uid!==void 0?"uid":"name";return o.filter(t=>t[n]===r[n])[0]}function xt(r,o){const n=r.uid!==void 0?"uid":"name",t=o.filter(a=>a[n]!==r[n]);return t.length===o.length?null:t}const jt=function(){const o=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),t=o[o.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]},ze=r=>r.indexOf("image/")===0,Ut=r=>{if(r.type&&!r.thumbUrl)return ze(r.type);const o=r.thumbUrl||r.url||"",n=jt(o);return/^data:image\//.test(o)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(o)||n)},te=200;function St(r){return new Promise(o=>{if(!r.type||!ze(r.type)){o("");return}const n=document.createElement("canvas");n.width=te,n.height=te,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${te}px; height: ${te}px; z-index: 9999; display: none;`,document.body.appendChild(n);const t=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:s,height:u}=a;let e=te,m=te,c=0,d=0;s>u?(m=u*(te/s),d=-(m-e)/2):(e=s*(te/u),c=-(e-m)/2),t.drawImage(a,c,d,e,m);const p=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),o(p)},a.crossOrigin="anonymous",r.type.startsWith("image/svg+xml")){const s=new FileReader;s.onload=()=>{s.result&&typeof s.result=="string"&&(a.src=s.result)},s.readAsDataURL(r)}else if(r.type.startsWith("image/gif")){const s=new FileReader;s.onload=()=>{s.result&&o(s.result)},s.readAsDataURL(r)}else a.src=window.URL.createObjectURL(r)})}const Lt=i.forwardRef((r,o)=>{let{prefixCls:n,className:t,style:a,locale:s,listType:u,file:e,items:m,progress:c,iconRender:d,actionIconRender:p,itemRender:h,isImgUrl:w,showPreviewIcon:g,showRemoveIcon:y,showDownloadIcon:C,previewIcon:O,removeIcon:E,downloadIcon:$,extra:I,onPreview:l,onDownload:U,onClose:F}=r;var M,V;const{status:H}=e,[L,J]=i.useState(H);i.useEffect(()=>{H!=="removed"&&J(H)},[H]);const[ne,ae]=i.useState(!1);i.useEffect(()=>{const P=setTimeout(()=>{ae(!0)},300);return()=>{clearTimeout(P)}},[]);const se=d(e);let B=i.createElement("div",{className:`${n}-icon`},se);if(u==="picture"||u==="picture-card"||u==="picture-circle")if(L==="uploading"||!e.thumbUrl&&!e.url){const P=q(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:L!=="uploading"});B=i.createElement("div",{className:P},se)}else{const P=w!=null&&w(e)?i.createElement("img",{src:e.thumbUrl||e.url,alt:e.name,className:`${n}-list-item-image`,crossOrigin:e.crossOrigin}):se,R=q(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:w&&!w(e)});B=i.createElement("a",{className:R,onClick:X=>l(e,X),href:e.url||e.thumbUrl,target:"_blank",rel:"noopener noreferrer"},P)}const j=q(`${n}-list-item`,`${n}-list-item-${L}`),Q=typeof e.linkProps=="string"?JSON.parse(e.linkProps):e.linkProps,oe=(typeof y=="function"?y(e):y)?p((typeof E=="function"?E(e):E)||i.createElement(lt,null),()=>F(e),n,s.removeFile,!0):null,ue=(typeof C=="function"?C(e):C)&&L==="done"?p((typeof $=="function"?$(e):$)||i.createElement(ct,null),()=>U(e),n,s.downloadFile):null,Y=u!=="picture-card"&&u!=="picture-circle"&&i.createElement("span",{key:"download-delete",className:q(`${n}-list-item-actions`,{picture:u==="picture"})},ue,oe),K=typeof I=="function"?I(e):I,f=K&&i.createElement("span",{className:`${n}-list-item-extra`},K),x=q(`${n}-list-item-name`),W=e.url?i.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:x,title:e.name},Q,{href:e.url,onClick:P=>l(e,P)}),e.name,f):i.createElement("span",{key:"view",className:x,onClick:P=>l(e,P),title:e.name},e.name,f),_=(typeof g=="function"?g(e):g)&&(e.url||e.thumbUrl)?i.createElement("a",{href:e.url||e.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:P=>l(e,P),title:s.previewFile},typeof O=="function"?O(e):O||i.createElement(ut,null)):null,Z=(u==="picture-card"||u==="picture-circle")&&L!=="uploading"&&i.createElement("span",{className:`${n}-list-item-actions`},_,L==="done"&&ue,oe),{getPrefixCls:ee}=i.useContext(De),fe=ee(),G=i.createElement("div",{className:j},B,W,Y,Z,ne&&i.createElement(We,{motionName:`${fe}-fade`,visible:L==="uploading",motionDeadline:2e3},P=>{let{className:R}=P;const X="percent"in e?i.createElement(pt,Object.assign({},c,{type:"line",percent:e.percent,"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"]})):null;return i.createElement("div",{className:q(`${n}-list-item-progress`,R)},X)})),ie=e.response&&typeof e.response=="string"?e.response:((M=e.error)===null||M===void 0?void 0:M.statusText)||((V=e.error)===null||V===void 0?void 0:V.message)||s.uploadError,me=L==="error"?i.createElement(dt,{title:ie,getPopupContainer:P=>P.parentNode},G):G;return i.createElement("div",{className:q(`${n}-list-item-container`,t),style:a,ref:o},h?h(me,e,m,{download:U.bind(null,e),preview:l.bind(null,e),remove:F.bind(null,e)}):me)}),Tt=Lt,Mt=(r,o)=>{const{listType:n="text",previewFile:t=St,onPreview:a,onDownload:s,onRemove:u,locale:e,iconRender:m,isImageUrl:c=Ut,prefixCls:d,items:p=[],showPreviewIcon:h=!0,showRemoveIcon:w=!0,showDownloadIcon:g=!1,removeIcon:y,previewIcon:C,downloadIcon:O,extra:E,progress:$={size:[-1,2],showInfo:!1},appendAction:I,appendActionVisible:l=!0,itemRender:U,disabled:F}=r,M=ft(),[V,H]=i.useState(!1),L=["picture-card","picture-circle"].includes(n);i.useEffect(()=>{n.startsWith("picture")&&(p||[]).forEach(f=>{!(f.originFileObj instanceof File||f.originFileObj instanceof Blob)||f.thumbUrl!==void 0||(f.thumbUrl="",t==null||t(f.originFileObj).then(x=>{f.thumbUrl=x||"",M()}))})},[n,p,t]),i.useEffect(()=>{H(!0)},[]);const J=(f,x)=>{if(a)return x==null||x.preventDefault(),a(f)},ne=f=>{typeof s=="function"?s(f):f.url&&window.open(f.url)},ae=f=>{u==null||u(f)},se=f=>{if(m)return m(f,n);const x=f.status==="uploading";if(n.startsWith("picture")){const W=n==="picture"?i.createElement(Se,null):e.uploading,_=c!=null&&c(f)?i.createElement(gt,null):i.createElement(bt,null);return x?W:_}return x?i.createElement(Se,null):i.createElement(wt,null)},B=(f,x,W,_,Z)=>{const ee={type:"text",size:"small",title:_,onClick:fe=>{var G,ie;x(),i.isValidElement(f)&&((ie=(G=f.props).onClick)===null||ie===void 0||ie.call(G,fe))},className:`${W}-list-item-action`};return Z&&(ee.disabled=F),i.isValidElement(f)?i.createElement(Le,Object.assign({},ee,{icon:Ue(f,Object.assign(Object.assign({},f.props),{onClick:()=>{}}))})):i.createElement(Le,Object.assign({},ee),i.createElement("span",null,f))};i.useImperativeHandle(o,()=>({handlePreview:J,handleDownload:ne}));const{getPrefixCls:j}=i.useContext(De),Q=j("upload",d),oe=j(),ue=q(`${Q}-list`,`${Q}-list-${n}`),Y=i.useMemo(()=>mt(vt(oe),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[oe]),K=Object.assign(Object.assign({},L?{}:Y),{motionDeadline:2e3,motionName:`${Q}-${L?"animate-inline":"animate"}`,keys:re(p.map(f=>({key:f.uid,file:f}))),motionAppear:V});return i.createElement("div",{className:ue},i.createElement(ht,Object.assign({},K,{component:!1}),f=>{let{key:x,file:W,className:_,style:Z}=f;return i.createElement(Tt,{key:x,locale:e,prefixCls:Q,className:_,style:Z,file:W,items:p,progress:$,listType:n,isImgUrl:c,showPreviewIcon:h,showRemoveIcon:w,showDownloadIcon:g,removeIcon:y,previewIcon:C,downloadIcon:O,extra:E,iconRender:se,actionIconRender:B,itemRender:U,onPreview:J,onDownload:ne,onClose:ae})}),I&&i.createElement(We,Object.assign({},K,{visible:l,forceRender:!0}),f=>{let{className:x,style:W}=f;return Ue(I,_=>({className:q(_.className,x),style:Object.assign(Object.assign(Object.assign({},W),{pointerEvents:x?"none":void 0}),_.style)}))}))},_t=i.forwardRef(Mt),At=_t;var qt=globalThis&&globalThis.__awaiter||function(r,o,n,t){function a(s){return s instanceof n?s:new n(function(u){u(s)})}return new(n||(n=Promise))(function(s,u){function e(d){try{c(t.next(d))}catch(p){u(p)}}function m(d){try{c(t.throw(d))}catch(p){u(p)}}function c(d){d.done?s(d.value):a(d.value).then(e,m)}c((t=t.apply(r,o||[])).next())})};const ve=`__LIST_IGNORE_${Date.now()}__`,Bt=(r,o)=>{const{fileList:n,defaultFileList:t,onRemove:a,showUploadList:s=!0,listType:u="text",onPreview:e,onDownload:m,onChange:c,onDrop:d,previewFile:p,disabled:h,locale:w,iconRender:g,isImageUrl:y,progress:C,prefixCls:O,className:E,type:$="select",children:I,style:l,itemRender:U,maxCount:F,data:M={},multiple:V=!1,hasControlInside:H=!0,action:L="",accept:J="",supportServerRender:ne=!0,rootClassName:ae}=r,se=i.useContext(yt),B=h??se,[j,Q]=Ct(t||[],{value:n,postState:v=>v??[]}),[oe,ue]=i.useState("drop"),Y=i.useRef(null),K=i.useRef(null);i.useMemo(()=>{const v=Date.now();(n||[]).forEach((k,N)=>{!k.uid&&!Object.isFrozen(k)&&(k.uid=`__AUTO__${v}_${N}__`)})},[n]);const f=(v,k,N)=>{let b=re(k),D=!1;F===1?b=b.slice(-1):F&&(D=b.length>F,b=b.slice(0,F)),Te.flushSync(()=>{Q(b)});const T={file:v,fileList:b};N&&(T.event=N),(!D||v.status==="removed"||b.some(le=>le.uid===v.uid))&&Te.flushSync(()=>{c==null||c(T)})},x=(v,k)=>qt(void 0,void 0,void 0,function*(){const{beforeUpload:N,transformFile:b}=r;let D=v;if(N){const T=yield N(v,k);if(T===!1)return!1;if(delete v[ve],T===ve)return Object.defineProperty(v,ve,{value:!0,configurable:!0}),!1;typeof T=="object"&&T&&(D=T)}return b&&(D=yield b(D)),D}),W=v=>{const k=v.filter(D=>!D.file[ve]);if(!k.length)return;const N=k.map(D=>he(D.file));let b=re(j);N.forEach(D=>{b=ge(D,b)}),N.forEach((D,T)=>{let le=D;if(k[T].parsedFile)D.status="uploading";else{const{originFileObj:de}=D;let ce;try{ce=new File([de],de.name,{type:de.type})}catch{ce=new Blob([de],{type:de.type}),ce.name=de.name,ce.lastModifiedDate=new Date,ce.lastModified=new Date().getTime()}ce.uid=D.uid,le=ce}f(le,b)})},_=(v,k,N)=>{try{typeof v=="string"&&(v=JSON.parse(v))}catch{}if(!Fe(k,j))return;const b=he(k);b.status="done",b.percent=100,b.response=v,b.xhr=N;const D=ge(b,j);f(b,D)},Z=(v,k)=>{if(!Fe(k,j))return;const N=he(k);N.status="uploading",N.percent=v.percent;const b=ge(N,j);f(N,b,v)},ee=(v,k,N)=>{if(!Fe(N,j))return;const b=he(N);b.error=v,b.response=k,b.status="error";const D=ge(b,j);f(b,D)},fe=v=>{let k;Promise.resolve(typeof a=="function"?a(v):a).then(N=>{var b;if(N===!1)return;const D=xt(v,j);D&&(k=Object.assign(Object.assign({},v),{status:"removed"}),j==null||j.forEach(T=>{const le=k.uid!==void 0?"uid":"name";T[le]===k[le]&&!Object.isFrozen(T)&&(T.status="removed")}),(b=Y.current)===null||b===void 0||b.abort(k),f(k,D))})},G=v=>{ue(v.type),v.type==="drop"&&(d==null||d(v))};i.useImperativeHandle(o,()=>({onBatchStart:W,onSuccess:_,onProgress:Z,onError:ee,fileList:j,upload:Y.current,nativeElement:K.current}));const{getPrefixCls:ie,direction:me,upload:P}=i.useContext(De),R=ie("upload",O),X=Object.assign(Object.assign({onBatchStart:W,onError:ee,onProgress:Z,onSuccess:_},r),{data:M,multiple:V,action:L,accept:J,supportServerRender:ne,prefixCls:R,disabled:B,beforeUpload:x,onChange:void 0,hasControlInside:H});delete X.className,delete X.style,(!I||B)&&delete X.id;const Pe=`${R}-wrapper`,[be,Ne,Ke]=Ft(R,Pe),[Ve]=Et("Upload",It.Upload),{showRemoveIcon:xe,showPreviewIcon:Ge,showDownloadIcon:Xe,removeIcon:Je,previewIcon:Qe,downloadIcon:Ye,extra:Ze}=typeof s=="boolean"?{}:s,et=typeof xe>"u"?!B:xe,we=(v,k)=>s?i.createElement(At,{prefixCls:R,listType:u,items:j,previewFile:p,onPreview:e,onDownload:m,onRemove:fe,showRemoveIcon:et,showPreviewIcon:Ge,showDownloadIcon:Xe,removeIcon:Je,previewIcon:Qe,downloadIcon:Ye,iconRender:g,extra:Ze,locale:Object.assign(Object.assign({},Ve),w),isImageUrl:y,progress:C,appendAction:v,appendActionVisible:k,itemRender:U,disabled:B}):v,ye=q(Pe,E,ae,Ne,Ke,P==null?void 0:P.className,{[`${R}-rtl`]:me==="rtl",[`${R}-picture-card-wrapper`]:u==="picture-card",[`${R}-picture-circle-wrapper`]:u==="picture-circle"}),tt=Object.assign(Object.assign({},P==null?void 0:P.style),l);if($==="drag"){const v=q(Ne,R,`${R}-drag`,{[`${R}-drag-uploading`]:j.some(k=>k.status==="uploading"),[`${R}-drag-hover`]:oe==="dragover",[`${R}-disabled`]:B,[`${R}-rtl`]:me==="rtl"});return be(i.createElement("span",{className:ye,ref:K},i.createElement("div",{className:v,style:tt,onDrop:G,onDragOver:G,onDragLeave:G},i.createElement($e,Object.assign({},X,{ref:Y,className:`${R}-btn`}),i.createElement("div",{className:`${R}-drag-container`},I))),we()))}const rt=q(R,`${R}-select`,{[`${R}-disabled`]:B,[`${R}-hidden`]:!I}),je=i.createElement("div",{className:rt},i.createElement($e,Object.assign({},X,{ref:Y})));return be(u==="picture-card"||u==="picture-circle"?i.createElement("span",{className:ye,ref:K},we(je,!!I)):i.createElement("span",{className:ye,ref:K},je,we()))},Wt=i.forwardRef(Bt),He=Wt;var zt=globalThis&&globalThis.__rest||function(r,o){var n={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&o.indexOf(t)<0&&(n[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(r);a{var{style:n,height:t,hasControlInside:a=!1}=r,s=zt(r,["style","height","hasControlInside"]);return i.createElement(He,Object.assign({ref:o,hasControlInside:a},s,{type:"drag",style:Object.assign(Object.assign({},n),{height:t})}))}),Kt=Ht,Re=He;Re.Dragger=Kt;Re.LIST_IGNORE=ve;const Jt=Re;export{Jt as U}; diff --git a/web/dist/assets/index-06928581.js b/web/dist/assets/index-06928581.js new file mode 100644 index 0000000000000000000000000000000000000000..acaf8d5ee1bc8d5fd44aa8016792ad4f935a19b9 --- /dev/null +++ b/web/dist/assets/index-06928581.js @@ -0,0 +1 @@ +import{r as f,b as r,ab as _,j as e,a0 as F,B as u,ai as b,aa as v,aK as C,bv as N,by as P,bz as z,a1 as g}from"./umi-5f6aeac9.js";import{F as D}from"./index-aed57eca.js";import{P as k}from"./index-3fcbb702.js";import B from"./GroupData-fbe7935a.js";import E from"./UploadFile-dcc6b08a.js";import{P as c}from"./ProCard-a8f5c5a9.js";import"./ActionButton-ff803f23.js";import"./index-0c4a636b.js";import"./AddGroup-83161c89.js";import"./group-d8dc7c8e.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./EditGroup-2d63834b.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-04ced7f2.js";import"./index-032ff5a9.js";import"./utils-a0a2291f.js";const x={list:"/admin/file.file/list",add:"/admin/file.group/add",edit:"/admin/file.group/edit",delete:"/admin/file.file/delete"};async function L(i){return f(x.list,{method:"get",params:i})}async function G(i){return f(x.delete,{method:"delete",params:i})}const ne=()=>{const[i,h]=r.useState({name:"root",group_id:0,parent_id:0,sort:0}),[m,j]=r.useState([]),[o,y]=r.useState({page:1,total:0}),[a,n]=r.useState([]),[l,w]=_(),s=async(t=0,p=1)=>{let d=await L({pageSize:50,current:p,group_id:t});j(d.data.data),y({page:d.data.current_page,total:d.data.total})},S=async()=>{if(a.length===0){g.warning("请选择文件!");return}await G({ids:a.join(",")}),await s(i.group_id,o.page),n([]),g.success("删除成功!")};return r.useEffect(()=>{s(i.group_id,1).then(()=>{})},[i]),e.jsxs(c,{ghost:!0,gutter:20,wrap:!1,children:[e.jsx(c,{ghost:!0,colSpan:"260px",children:e.jsx(B,{selectGroup:i,setSelectGroup:h})}),e.jsxs(c,{bordered:!0,headerBordered:!0,colSpan:"auto",title:"文件列表",extra:e.jsxs(F,{children:[l&&e.jsx(k,{title:"删除",description:`你确定要删除这 ${a.length} 个文件吗?`,onConfirm:S,children:e.jsx(u,{type:"primary",icon:e.jsx(b,{}),shape:"round",danger:!0,children:"批量删除"})}),e.jsx(u,{onClick:()=>w.toggle(),type:"primary",shape:"round",icon:e.jsx(v,{type:"icon-piliangxuanze",className:"icon-piliangxuanze"}),children:l?"取消选择":"批量选择"}),e.jsx(E,{getFileList:s,selectGroup:i})]}),style:{width:"100%"},children:[e.jsx("div",{style:{minHeight:"500px"},children:m.length>0?e.jsx(D,{wrap:"wrap",gap:"middle",children:m.map(t=>e.jsxs("div",{className:"image-card",children:[l&&e.jsx("div",{className:"card",onClick:()=>{a!=null&&a.includes(t.file_id)?n(a.filter(p=>p!==t.file_id)):n([...a,t.file_id])},children:e.jsx(C,{checked:a.includes(t.file_id)})}),e.jsxs("div",{className:"wrapper",children:[e.jsx(N,{height:60,preview:t.file_type===10?{}:!1,className:"file-icon",src:t.preview_url}),e.jsx("p",{className:"gi-line-1 file-name",children:t.file_name})]})]},t.file_id))}):e.jsx(P,{})}),e.jsx(z,{style:{textAlign:"right"},current:o.page,total:o.total,pageSize:50,onChange:async t=>{await s(i.group_id,t)}})]})]})};export{ne as default}; diff --git a/web/dist/assets/index-0bcae376.css b/web/dist/assets/index-0bcae376.css new file mode 100644 index 0000000000000000000000000000000000000000..4d87ba1ef6fc53a8a24e36994b653be03d2e7166 --- /dev/null +++ b/web/dist/assets/index-0bcae376.css @@ -0,0 +1 @@ +.page-feedback-detail .my-card{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px}.page-feedback-detail .my-card .left{flex:1;display:flex;align-items:center;gap:8px;overflow:auto}.page-feedback-detail .my-card .left .img-box{border:1px solid #e8e8e8;padding:12px}.page-feedback-detail .my-card .left .img-box>.ant-image:not(:first-child){display:none}.page-feedback-detail .my-card .left .info{height:60px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.page-feedback-detail .my-card .right{flex-shrink:0;height:60px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;overflow:hidden;white-space:nowrap} diff --git a/web/dist/assets/index-6395135c.js b/web/dist/assets/index-0c4a636b.js similarity index 50% rename from web/dist/assets/index-6395135c.js rename to web/dist/assets/index-0c4a636b.js index 9debe3eb8a41b1ba1f3773f80335594530c68485..c42d34e92452434cbc45767e19b21d5b6eaa2e32 100644 --- a/web/dist/assets/index-6395135c.js +++ b/web/dist/assets/index-0c4a636b.js @@ -1 +1 @@ -import{R as g,bc as X,bw as Z,bx as ee,by as te,bz as ne,bA as se,aV as q,bB as oe,bC as Q,b5 as F,r as f,bD as re,bE as ce,bF as le,bG as ae,bH as ie,bI as de,bJ as fe}from"./umi-2ee4055f.js";const z=4;function ue(n){const{dropPosition:c,dropLevelOffset:r,prefixCls:t,indent:s,direction:e="ltr"}=n,o=e==="ltr"?"left":"right",l=e==="ltr"?"right":"left",a={[o]:-r*s+z,[l]:0};switch(c){case-1:a.top=-3;break;case 1:a.bottom=-3;break;default:a.bottom=-3,a[o]=s+z;break}return g.createElement("div",{style:a,className:`${t}-drop-indicator`})}const pe=g.forwardRef((n,c)=>{var r;const{getPrefixCls:t,direction:s,virtual:e,tree:o}=g.useContext(X),{prefixCls:l,className:a,showIcon:d=!1,showLine:v,switcherIcon:T,switcherLoadingIcon:S,blockNode:P=!1,children:I,checkable:O=!1,selectable:C=!0,draggable:m,motion:w,style:k}=n,y=t("tree",l),R=t(),N=w??Object.assign(Object.assign({},Z(R)),{motionAppear:!1}),$=Object.assign(Object.assign({},n),{checkable:O,selectable:C,showIcon:d,motion:N,blockNode:P,showLine:!!v,dropIndicatorRender:ue}),[x,u,h]=ee(y),[,K]=te(),E=K.paddingXS/2+(((r=K.Tree)===null||r===void 0?void 0:r.titleHeight)||K.controlHeightSM),A=g.useMemo(()=>{if(!m)return!1;let i={};switch(typeof m){case"function":i.nodeDraggable=m;break;case"object":i=Object.assign({},m);break}return i.icon!==!1&&(i.icon=i.icon||g.createElement(ne,null)),i},[m]),p=i=>g.createElement(oe,{prefixCls:y,switcherIcon:T,switcherLoadingIcon:S,treeNodeProps:i,showLine:v});return x(g.createElement(se,Object.assign({itemHeight:E,ref:c,virtual:e},$,{style:Object.assign(Object.assign({},o==null?void 0:o.style),k),prefixCls:y,className:q({[`${y}-icon-hide`]:!d,[`${y}-block-node`]:P,[`${y}-unselectable`]:!C,[`${y}-rtl`]:s==="rtl"},o==null?void 0:o.className,a,u,h),direction:s,checkable:O&&g.createElement("span",{className:`${y}-checkbox-inner`}),selectable:C,switcherIcon:p,draggable:A}),I))}),U=pe,V=0,_=1,B=2;function H(n,c,r){const{key:t,children:s}=r;function e(o){const l=o[t],a=o[s];c(l,o)!==!1&&H(a||[],c,r)}n.forEach(e)}function ye(n){let{treeData:c,expandedKeys:r,startKey:t,endKey:s,fieldNames:e}=n;const o=[];let l=V;if(t&&t===s)return[t];if(!t||!s)return[];function a(d){return d===t||d===s}return H(c,d=>{if(l===B)return!1;if(a(d)){if(o.push(d),l===V)l=_;else if(l===_)return l=B,!1}else l===_&&o.push(d);return r.includes(d)},Q(e)),o}function L(n,c,r){const t=F(c),s=[];return H(n,(e,o)=>{const l=t.indexOf(e);return l!==-1&&(s.push(o),t.splice(l,1)),!!t.length},Q(r)),s}var G=globalThis&&globalThis.__rest||function(n,c){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&c.indexOf(t)<0&&(r[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(n);s{var{defaultExpandAll:r,defaultExpandParent:t,defaultExpandedKeys:s}=n,e=G(n,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=f.useRef(null),l=f.useRef(null),a=()=>{const{keyEntities:x}=ae(J(e));let u;return r?u=Object.keys(x):t?u=ie(e.expandedKeys||s||[],x):u=e.expandedKeys||s||[],u},[d,v]=f.useState(e.selectedKeys||e.defaultSelectedKeys||[]),[T,S]=f.useState(()=>a());f.useEffect(()=>{"selectedKeys"in e&&v(e.selectedKeys)},[e.selectedKeys]),f.useEffect(()=>{"expandedKeys"in e&&S(e.expandedKeys)},[e.expandedKeys]);const P=(x,u)=>{var h;return"expandedKeys"in e||S(x),(h=e.onExpand)===null||h===void 0?void 0:h.call(e,x,u)},I=(x,u)=>{var h;const{multiple:K,fieldNames:E}=e,{node:A,nativeEvent:p}=u,{key:i=""}=A,D=J(e),j=Object.assign(Object.assign({},u),{selected:!0}),W=(p==null?void 0:p.ctrlKey)||(p==null?void 0:p.metaKey),Y=p==null?void 0:p.shiftKey;let b;K&&W?(b=x,o.current=i,l.current=b,j.selectedNodes=L(D,b,E)):K&&Y?(b=Array.from(new Set([].concat(F(l.current||[]),F(ye({treeData:D,expandedKeys:T,startKey:i,endKey:o.current,fieldNames:E}))))),j.selectedNodes=L(D,b,E)):(b=[i],o.current=i,l.current=b,j.selectedNodes=L(D,b,E)),(h=e.onSelect)===null||h===void 0||h.call(e,b,j),"selectedKeys"in e||v(b)},{getPrefixCls:O,direction:C}=f.useContext(X),{prefixCls:m,className:w,showIcon:k=!0,expandAction:y="click"}=e,R=G(e,["prefixCls","className","showIcon","expandAction"]),N=O("tree",m),$=q(`${N}-directory`,{[`${N}-directory-rtl`]:C==="rtl"},w);return f.createElement(U,Object.assign({icon:be,ref:c,blockNode:!0},R,{showIcon:k,expandAction:y,prefixCls:N,className:$,expandedKeys:T,selectedKeys:d,onSelect:I,onExpand:P}))},he=f.forwardRef(xe),ge=he,M=U;M.DirectoryTree=ge;M.TreeNode=fe;const Ke=M;export{Ke as T}; +import{R as g,b9 as W,bS as Q,bT as ee,bU as te,bV as ne,bW as se,b3 as Y,bX as oe,bY as Z,bk as F,b as f,bZ as re,b_ as ce,b$ as le,c0 as ae,c1 as ie,c2 as de,c3 as fe}from"./umi-5f6aeac9.js";const V=4;function ue(n){const{dropPosition:c,dropLevelOffset:r,prefixCls:t,indent:s,direction:e="ltr"}=n,o=e==="ltr"?"left":"right",l=e==="ltr"?"right":"left",a={[o]:-r*s+V,[l]:0};switch(c){case-1:a.top=-3;break;case 1:a.bottom=-3;break;default:a.bottom=-3,a[o]=s+V;break}return g.createElement("div",{style:a,className:`${t}-drop-indicator`})}const pe=g.forwardRef((n,c)=>{var r;const{getPrefixCls:t,direction:s,virtual:e,tree:o}=g.useContext(W),{prefixCls:l,className:a,showIcon:d=!1,showLine:v,switcherIcon:T,switcherLoadingIcon:S,blockNode:P=!1,children:D,checkable:O=!1,selectable:C=!0,draggable:m,motion:w,style:I}=n,y=t("tree",l),R=t(),N=w??Object.assign(Object.assign({},Q(R)),{motionAppear:!1}),$=Object.assign(Object.assign({},n),{checkable:O,selectable:C,showIcon:d,motion:N,blockNode:P,showLine:!!v,dropIndicatorRender:ue}),[x,u,h]=ee(y),[,K]=te(),E=K.paddingXS/2+(((r=K.Tree)===null||r===void 0?void 0:r.titleHeight)||K.controlHeightSM),_=g.useMemo(()=>{if(!m)return!1;let i={};switch(typeof m){case"function":i.nodeDraggable=m;break;case"object":i=Object.assign({},m);break}return i.icon!==!1&&(i.icon=i.icon||g.createElement(ne,null)),i},[m]),p=i=>g.createElement(oe,{prefixCls:y,switcherIcon:T,switcherLoadingIcon:S,treeNodeProps:i,showLine:v});return x(g.createElement(se,Object.assign({itemHeight:E,ref:c,virtual:e},$,{style:Object.assign(Object.assign({},o==null?void 0:o.style),I),prefixCls:y,className:Y({[`${y}-icon-hide`]:!d,[`${y}-block-node`]:P,[`${y}-unselectable`]:!C,[`${y}-rtl`]:s==="rtl"},o==null?void 0:o.className,a,u,h),direction:s,checkable:O&&g.createElement("span",{className:`${y}-checkbox-inner`}),selectable:C,switcherIcon:p,draggable:_}),D))}),q=pe,z=0,A=1,X=2;function H(n,c,r){const{key:t,children:s}=r;function e(o){const l=o[t],a=o[s];c(l,o)!==!1&&H(a||[],c,r)}n.forEach(e)}function ye(n){let{treeData:c,expandedKeys:r,startKey:t,endKey:s,fieldNames:e}=n;const o=[];let l=z;if(t&&t===s)return[t];if(!t||!s)return[];function a(d){return d===t||d===s}return H(c,d=>{if(l===X)return!1;if(a(d)){if(o.push(d),l===z)l=A;else if(l===A)return l=X,!1}else l===A&&o.push(d);return r.includes(d)},Z(e)),o}function L(n,c,r){const t=F(c),s=[];return H(n,(e,o)=>{const l=t.indexOf(e);return l!==-1&&(s.push(o),t.splice(l,1)),!!t.length},Z(r)),s}var B=globalThis&&globalThis.__rest||function(n,c){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&c.indexOf(t)<0&&(r[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(n);s{var{defaultExpandAll:r,defaultExpandParent:t,defaultExpandedKeys:s}=n,e=B(n,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=f.useRef(null),l=f.useRef(null),a=()=>{const{keyEntities:x}=ae(U(e));let u;return r?u=Object.keys(x):t?u=ie(e.expandedKeys||s||[],x):u=e.expandedKeys||s||[],u},[d,v]=f.useState(e.selectedKeys||e.defaultSelectedKeys||[]),[T,S]=f.useState(()=>a());f.useEffect(()=>{"selectedKeys"in e&&v(e.selectedKeys)},[e.selectedKeys]),f.useEffect(()=>{"expandedKeys"in e&&S(e.expandedKeys)},[e.expandedKeys]);const P=(x,u)=>{var h;return"expandedKeys"in e||S(x),(h=e.onExpand)===null||h===void 0?void 0:h.call(e,x,u)},D=(x,u)=>{var h;const{multiple:K,fieldNames:E}=e,{node:_,nativeEvent:p}=u,{key:i=""}=_,j=U(e),k=Object.assign(Object.assign({},u),{selected:!0}),G=(p==null?void 0:p.ctrlKey)||(p==null?void 0:p.metaKey),J=p==null?void 0:p.shiftKey;let b;K&&G?(b=x,o.current=i,l.current=b,k.selectedNodes=L(j,b,E)):K&&J?(b=Array.from(new Set([].concat(F(l.current||[]),F(ye({treeData:j,expandedKeys:T,startKey:i,endKey:o.current,fieldNames:E}))))),k.selectedNodes=L(j,b,E)):(b=[i],o.current=i,l.current=b,k.selectedNodes=L(j,b,E)),(h=e.onSelect)===null||h===void 0||h.call(e,b,k),"selectedKeys"in e||v(b)},{getPrefixCls:O,direction:C}=f.useContext(W),{prefixCls:m,className:w,showIcon:I=!0,expandAction:y="click"}=e,R=B(e,["prefixCls","className","showIcon","expandAction"]),N=O("tree",m),$=Y(`${N}-directory`,{[`${N}-directory-rtl`]:C==="rtl"},w);return f.createElement(q,Object.assign({icon:be,ref:c,blockNode:!0},R,{showIcon:I,expandAction:y,prefixCls:N,className:$,expandedKeys:T,selectedKeys:d,onSelect:D,onExpand:P}))},he=f.forwardRef(xe),ge=he,M=q;M.DirectoryTree=ge;M.TreeNode=fe;const Ke=M;export{Ke as T}; diff --git a/web/dist/assets/index-5259f52c.js b/web/dist/assets/index-0da8d099.js similarity index 62% rename from web/dist/assets/index-5259f52c.js rename to web/dist/assets/index-0da8d099.js index e2c8e8c18f7b16f640846c7bae6b9c832f3b98a0..750138b3e50ec2f981c66387128123aeb3b14459 100644 --- a/web/dist/assets/index-5259f52c.js +++ b/web/dist/assets/index-0da8d099.js @@ -1 +1 @@ -import{k as Z,n as ee,r as a,C as ne,l as S,o as re,R as V,_ as v,p as oe,j as f,q as le,s as te,v as ie,w as O,x as g}from"./umi-2ee4055f.js";import{M as ae}from"./index-705e7852.js";var se=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function de(s){var m,p,D=s.children,h=s.trigger,_=s.onVisibleChange,k=s.onOpenChange,e=s.modalProps,$=s.onFinish,C=s.submitTimeout,B=s.title,H=s.width,R=s.visible,P=s.open,i=Z(s,se);ee(!i.footer||!(e!=null&&e.footer),"ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var T=a.useContext(ne.ConfigContext),q=a.useState([]),A=S(q,2),G=A[1],L=a.useState(!1),E=S(L,2),w=E[0],y=E[1],U=re(!!R,{value:P||R,onChange:k||_}),I=S(U,2),F=I[0],d=I[1],M=a.useRef(null),W=a.useCallback(function(o){M.current===null&&o&&G([]),M.current=o},[]),b=a.useRef(),z=a.useCallback(function(){var o,n,r,t=(o=(n=i.form)!==null&&n!==void 0?n:(r=i.formRef)===null||r===void 0?void 0:r.current)!==null&&o!==void 0?o:b.current;t&&e!==null&&e!==void 0&&e.destroyOnClose&&t.resetFields()},[e==null?void 0:e.destroyOnClose,i.form,i.formRef]);a.useImperativeHandle(i.formRef,function(){return b.current},[b.current]),a.useEffect(function(){(P||R)&&(k==null||k(!0),_==null||_(!0))},[R,P]);var J=a.useMemo(function(){return h?V.cloneElement(h,v(v({key:"trigger"},h.props),{},{onClick:function(){var o=O(g().mark(function r(t){var u,l;return g().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:d(!F),(u=h.props)===null||u===void 0||(l=u.onClick)===null||l===void 0||l.call(u,t);case 2:case"end":return c.stop()}},r)}));function n(r){return o.apply(this,arguments)}return n}()})):null},[d,h,F]),K=a.useMemo(function(){var o,n,r,t,u,l,x;return i.submitter===!1?!1:oe({searchConfig:{submitText:(o=(n=e==null?void 0:e.okText)!==null&&n!==void 0?n:(r=T.locale)===null||r===void 0||(r=r.Modal)===null||r===void 0?void 0:r.okText)!==null&&o!==void 0?o:"确认",resetText:(t=(u=e==null?void 0:e.cancelText)!==null&&u!==void 0?u:(l=T.locale)===null||l===void 0||(l=l.Modal)===null||l===void 0?void 0:l.cancelText)!==null&&t!==void 0?t:"取消"},resetButtonProps:{preventDefault:!0,disabled:C?w:void 0,onClick:function(Y){var j;d(!1),e==null||(j=e.onCancel)===null||j===void 0||j.call(e,Y)}}},(x=i.submitter)!==null&&x!==void 0?x:{})},[(m=T.locale)===null||m===void 0||(m=m.Modal)===null||m===void 0?void 0:m.cancelText,(p=T.locale)===null||p===void 0||(p=p.Modal)===null||p===void 0?void 0:p.okText,e,i.submitter,d,w,C]),N=a.useCallback(function(o,n){return f.jsxs(f.Fragment,{children:[o,M.current&&n?f.jsx(V.Fragment,{children:le.createPortal(n,M.current)},"submitter"):n]})},[]),Q=a.useCallback(function(){var o=O(g().mark(function n(r){var t,u,l;return g().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return t=$==null?void 0:$(r),C&&t instanceof Promise&&(y(!0),u=setTimeout(function(){return y(!1)},C),t.finally(function(){clearTimeout(u),y(!1)})),c.next=4,t;case 4:return l=c.sent,l&&d(!1),c.abrupt("return",l);case 7:case"end":return c.stop()}},n)}));return function(n){return o.apply(this,arguments)}}(),[$,d,C]),X=te(F);return f.jsxs(f.Fragment,{children:[f.jsx(ae,v(v(v({title:B,width:H||800},e),X),{},{onCancel:function(n){var r;C&&w||(d(!1),e==null||(r=e.onCancel)===null||r===void 0||r.call(e,n))},afterClose:function(){var n;z(),F&&d(!1),e==null||(n=e.afterClose)===null||n===void 0||n.call(e)},footer:i.submitter!==!1?f.jsx("div",{ref:W,style:{display:"flex",justifyContent:"flex-end"}}):null,children:f.jsx(ie,v(v({formComponentType:"ModalForm",layout:"vertical"},i),{},{onInit:function(n,r){var t;i.formRef&&(i.formRef.current=r),i==null||(t=i.onInit)===null||t===void 0||t.call(i,n,r),b.current=r},formRef:b,submitter:K,onFinish:function(){var o=O(g().mark(function n(r){var t;return g().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Q(r);case 2:return t=l.sent,l.abrupt("return",t);case 4:case"end":return l.stop()}},n)}));return function(n){return o.apply(this,arguments)}}(),contentRender:N,children:D}))})),J]})}export{de as M}; +import{s as Z,v as ee,b as a,C as ne,w as S,x as re,R as I,_ as v,y as oe,j as f,z as le,A as te,D as ie,E as O,F as g}from"./umi-5f6aeac9.js";import{M as ae}from"./index-d045d7e9.js";var se=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function de(s){var m,p,V=s.children,h=s.trigger,_=s.onVisibleChange,$=s.onOpenChange,e=s.modalProps,k=s.onFinish,C=s.submitTimeout,A=s.title,B=s.width,R=s.visible,M=s.open,i=Z(s,se);ee(!i.footer||!(e!=null&&e.footer),"ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var T=a.useContext(ne.ConfigContext),H=a.useState([]),z=S(H,2),G=z[1],L=a.useState(!1),E=S(L,2),P=E[0],w=E[1],U=re(!!R,{value:M||R,onChange:$||_}),D=S(U,2),F=D[0],d=D[1],y=a.useRef(null),W=a.useCallback(function(o){y.current===null&&o&&G([]),y.current=o},[]),b=a.useRef(),q=a.useCallback(function(){var o,n,r,t=(o=(n=i.form)!==null&&n!==void 0?n:(r=i.formRef)===null||r===void 0?void 0:r.current)!==null&&o!==void 0?o:b.current;t&&e!==null&&e!==void 0&&e.destroyOnClose&&t.resetFields()},[e==null?void 0:e.destroyOnClose,i.form,i.formRef]);a.useImperativeHandle(i.formRef,function(){return b.current},[b.current]),a.useEffect(function(){(M||R)&&($==null||$(!0),_==null||_(!0))},[R,M]);var J=a.useMemo(function(){return h?I.cloneElement(h,v(v({key:"trigger"},h.props),{},{onClick:function(){var o=O(g().mark(function r(t){var u,l;return g().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:d(!F),(u=h.props)===null||u===void 0||(l=u.onClick)===null||l===void 0||l.call(u,t);case 2:case"end":return c.stop()}},r)}));function n(r){return o.apply(this,arguments)}return n}()})):null},[d,h,F]),K=a.useMemo(function(){var o,n,r,t,u,l,x;return i.submitter===!1?!1:oe({searchConfig:{submitText:(o=(n=e==null?void 0:e.okText)!==null&&n!==void 0?n:(r=T.locale)===null||r===void 0||(r=r.Modal)===null||r===void 0?void 0:r.okText)!==null&&o!==void 0?o:"确认",resetText:(t=(u=e==null?void 0:e.cancelText)!==null&&u!==void 0?u:(l=T.locale)===null||l===void 0||(l=l.Modal)===null||l===void 0?void 0:l.cancelText)!==null&&t!==void 0?t:"取消"},resetButtonProps:{preventDefault:!0,disabled:C?P:void 0,onClick:function(Y){var j;d(!1),e==null||(j=e.onCancel)===null||j===void 0||j.call(e,Y)}}},(x=i.submitter)!==null&&x!==void 0?x:{})},[(m=T.locale)===null||m===void 0||(m=m.Modal)===null||m===void 0?void 0:m.cancelText,(p=T.locale)===null||p===void 0||(p=p.Modal)===null||p===void 0?void 0:p.okText,e,i.submitter,d,P,C]),N=a.useCallback(function(o,n){return f.jsxs(f.Fragment,{children:[o,y.current&&n?f.jsx(I.Fragment,{children:le.createPortal(n,y.current)},"submitter"):n]})},[]),Q=a.useCallback(function(){var o=O(g().mark(function n(r){var t,u,l;return g().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return t=k==null?void 0:k(r),C&&t instanceof Promise&&(w(!0),u=setTimeout(function(){return w(!1)},C),t.finally(function(){clearTimeout(u),w(!1)})),c.next=4,t;case 4:return l=c.sent,l&&d(!1),c.abrupt("return",l);case 7:case"end":return c.stop()}},n)}));return function(n){return o.apply(this,arguments)}}(),[k,d,C]),X=te(F);return f.jsxs(f.Fragment,{children:[f.jsx(ae,v(v(v({title:A,width:B||800},e),X),{},{onCancel:function(n){var r;C&&P||(d(!1),e==null||(r=e.onCancel)===null||r===void 0||r.call(e,n))},afterClose:function(){var n;q(),F&&d(!1),e==null||(n=e.afterClose)===null||n===void 0||n.call(e)},footer:i.submitter!==!1?f.jsx("div",{ref:W,style:{display:"flex",justifyContent:"flex-end"}}):null,children:f.jsx(ie,v(v({formComponentType:"ModalForm",layout:"vertical"},i),{},{onInit:function(n,r){var t;i.formRef&&(i.formRef.current=r),i==null||(t=i.onInit)===null||t===void 0||t.call(i,n,r),b.current=r},formRef:b,submitter:K,onFinish:function(){var o=O(g().mark(function n(r){var t;return g().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Q(r);case 2:return t=l.sent,l.abrupt("return",t);case 4:case"end":return l.stop()}},n)}));return function(n){return o.apply(this,arguments)}}(),contentRender:N,children:V}))})),J]})}export{de as M}; diff --git a/web/dist/assets/index-5c18ae40.js b/web/dist/assets/index-0f57638d.js similarity index 69% rename from web/dist/assets/index-5c18ae40.js rename to web/dist/assets/index-0f57638d.js index 150f15e26916154bcd19002ef09116fe2fc38ccb..3a2dbc551e12139985760476a8120601c5c24bc3 100644 --- a/web/dist/assets/index-5c18ae40.js +++ b/web/dist/assets/index-0f57638d.js @@ -1,4 +1,4 @@ -import{cm as nt,cn as it,r as u,co as E,j as f,aJ as ve,B as at,bs as se,cp as st,V as ct}from"./umi-2ee4055f.js";import{U as Ce,g as Te}from"./utils-b0233852.js";import{M as lt}from"./index-705e7852.js";var Ne=!1,q,xe,ye,pe,de,Be,ue,be,Re,Se,He,_e,Ee,Xe,$e;function D(){if(!Ne){Ne=!0;var n=navigator.userAgent,r=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(n),e=/(Mac OS X)|(Windows)|(Linux)/.exec(n);if(_e=/\b(iPhone|iP[ao]d)/.exec(n),Ee=/\b(iP[ao]d)/.exec(n),Se=/Android/i.exec(n),Xe=/FBAN\/\w+;/i.exec(n),$e=/Mobile/i.exec(n),He=!!/Win64/.exec(n),r){q=r[1]?parseFloat(r[1]):r[5]?parseFloat(r[5]):NaN,q&&document&&document.documentMode&&(q=document.documentMode);var t=/(?:Trident\/(\d+.\d+))/.exec(n);Be=t?parseFloat(t[1])+4:q,xe=r[2]?parseFloat(r[2]):NaN,ye=r[3]?parseFloat(r[3]):NaN,pe=r[4]?parseFloat(r[4]):NaN,pe?(r=/(?:Chrome\/(\d+\.\d+))/.exec(n),de=r&&r[1]?parseFloat(r[1]):NaN):de=NaN}else q=xe=ye=de=pe=NaN;if(e){if(e[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(n);ue=o?parseFloat(o[1].replace("_",".")):!0}else ue=!1;be=!!e[2],Re=!!e[3]}else ue=be=Re=!1}}var De={ie:function(){return D()||q},ieCompatibilityMode:function(){return D()||Be>q},ie64:function(){return De.ie()&&He},firefox:function(){return D()||xe},opera:function(){return D()||ye},webkit:function(){return D()||pe},safari:function(){return De.webkit()},chrome:function(){return D()||de},windows:function(){return D()||be},osx:function(){return D()||ue},linux:function(){return D()||Re},iphone:function(){return D()||_e},mobile:function(){return D()||_e||Ee||Se||$e},nativeApp:function(){return D()||Xe},android:function(){return D()||Se},ipad:function(){return D()||Ee}},pt=De,ce=!!(typeof window<"u"&&window.document&&window.document.createElement),dt={canUseDOM:ce,canUseWorkers:typeof Worker<"u",canUseEventListeners:ce&&!!(window.addEventListener||window.attachEvent),canUseViewport:ce&&!!window.screen,isInWorker:!ce},ut=dt,Ge=ut,Ye;Ge.canUseDOM&&(Ye=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/** +import{bE as nt,cD as it,b as d,cE as E,j as f,aR as ve,B as at,bG as se,cF as st,Q as ct,a1 as lt}from"./umi-5f6aeac9.js";import{U as Ce}from"./index-04ced7f2.js";import{M as pt}from"./index-d045d7e9.js";import{g as Te}from"./utils-a0a2291f.js";var Ne=!1,q,xe,ye,pe,ue,Be,de,be,Re,Se,He,_e,Ee,Ge,Xe;function D(){if(!Ne){Ne=!0;var n=navigator.userAgent,r=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(n),e=/(Mac OS X)|(Windows)|(Linux)/.exec(n);if(_e=/\b(iPhone|iP[ao]d)/.exec(n),Ee=/\b(iP[ao]d)/.exec(n),Se=/Android/i.exec(n),Ge=/FBAN\/\w+;/i.exec(n),Xe=/Mobile/i.exec(n),He=!!/Win64/.exec(n),r){q=r[1]?parseFloat(r[1]):r[5]?parseFloat(r[5]):NaN,q&&document&&document.documentMode&&(q=document.documentMode);var t=/(?:Trident\/(\d+.\d+))/.exec(n);Be=t?parseFloat(t[1])+4:q,xe=r[2]?parseFloat(r[2]):NaN,ye=r[3]?parseFloat(r[3]):NaN,pe=r[4]?parseFloat(r[4]):NaN,pe?(r=/(?:Chrome\/(\d+\.\d+))/.exec(n),ue=r&&r[1]?parseFloat(r[1]):NaN):ue=NaN}else q=xe=ye=ue=pe=NaN;if(e){if(e[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(n);de=o?parseFloat(o[1].replace("_",".")):!0}else de=!1;be=!!e[2],Re=!!e[3]}else de=be=Re=!1}}var De={ie:function(){return D()||q},ieCompatibilityMode:function(){return D()||Be>q},ie64:function(){return De.ie()&&He},firefox:function(){return D()||xe},opera:function(){return D()||ye},webkit:function(){return D()||pe},safari:function(){return De.webkit()},chrome:function(){return D()||ue},windows:function(){return D()||be},osx:function(){return D()||de},linux:function(){return D()||Re},iphone:function(){return D()||_e},mobile:function(){return D()||_e||Ee||Se||Xe},nativeApp:function(){return D()||Ge},android:function(){return D()||Se},ipad:function(){return D()||Ee}},ut=De,ce=!!(typeof window<"u"&&window.document&&window.document.createElement),dt={canUseDOM:ce,canUseWorkers:typeof Worker<"u",canUseEventListeners:ce&&!!(window.addEventListener||window.attachEvent),canUseViewport:ce&&!!window.screen,isInWorker:!ce},ht=dt,$e=ht,Ye;$e.canUseDOM&&(Ye=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, @@ -11,7 +11,7 @@ import{cm as nt,cn as it,r as u,co as E,j as f,aJ as ve,B as at,bs as se,cp as s * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT - */function ht(n,r){if(!Ge.canUseDOM||r&&!("addEventListener"in document))return!1;var e="on"+n,t=e in document;if(!t){var o=document.createElement("div");o.setAttribute(e,"return;"),t=typeof o[e]=="function"}return!t&&Ye&&n==="wheel"&&(t=document.implementation.hasFeature("Events.wheel","3.0")),t}var ft=ht,mt=pt,vt=ft,Ie=10,Oe=40,We=800;function qe(n){var r=0,e=0,t=0,o=0;return"detail"in n&&(e=n.detail),"wheelDelta"in n&&(e=-n.wheelDelta/120),"wheelDeltaY"in n&&(e=-n.wheelDeltaY/120),"wheelDeltaX"in n&&(r=-n.wheelDeltaX/120),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(r=e,e=0),t=r*Ie,o=e*Ie,"deltaY"in n&&(o=n.deltaY),"deltaX"in n&&(t=n.deltaX),(t||o)&&n.deltaMode&&(n.deltaMode==1?(t*=Oe,o*=Oe):(t*=We,o*=We)),t&&!r&&(r=t<1?-1:1),o&&!e&&(e=o<1?-1:1),{spinX:r,spinY:e,pixelX:t,pixelY:o}}qe.getEventType=function(){return mt.firefox()?"DOMMouseScroll":vt("wheel")?"wheel":"mousewheel"};var gt=qe,wt=gt;const Ct=nt(wt);function xt(n,r,e,t,o,i){i===void 0&&(i=0);var a=J(n,r,i),s=a.width,c=a.height,l=Math.min(s,e),d=Math.min(c,t);return l>d*o?{width:d*o,height:d}:{width:l,height:l/o}}function yt(n){return n.width>n.height?n.width/n.naturalWidth:n.height/n.naturalHeight}function oe(n,r,e,t,o){o===void 0&&(o=0);var i=J(r.width,r.height,o),a=i.width,s=i.height;return{x:je(n.x,a,e.width,t),y:je(n.y,s,e.height,t)}}function je(n,r,e,t){var o=r*t/2-e/2;return fe(n,-o,o)}function Fe(n,r){return Math.sqrt(Math.pow(n.y-r.y,2)+Math.pow(n.x-r.x,2))}function ke(n,r){return Math.atan2(r.y-n.y,r.x-n.x)*180/Math.PI}function bt(n,r,e,t,o,i,a){i===void 0&&(i=0),a===void 0&&(a=!0);var s=a?Rt:St,c=J(r.width,r.height,i),l=J(r.naturalWidth,r.naturalHeight,i),d={x:s(100,((c.width-e.width/o)/2-n.x/o)/c.width*100),y:s(100,((c.height-e.height/o)/2-n.y/o)/c.height*100),width:s(100,e.width/c.width*100/o),height:s(100,e.height/c.height*100/o)},p=Math.round(s(l.width,d.width*l.width/100)),h=Math.round(s(l.height,d.height*l.height/100)),x=l.width>=l.height*t,v=x?{width:Math.round(h*t),height:h}:{width:p,height:Math.round(p/t)},b=E(E({},v),{x:Math.round(s(l.width-v.width,d.x*l.width/100)),y:Math.round(s(l.height-v.height,d.y*l.height/100))});return{croppedAreaPercentages:d,croppedAreaPixels:b}}function Rt(n,r){return Math.min(n,Math.max(0,r))}function St(n,r){return r}function _t(n,r,e,t,o,i){var a=J(r.width,r.height,e),s=fe(t.width/a.width*(100/n.width),o,i),c={x:s*a.width/2-t.width/2-a.width*s*(n.x/100),y:s*a.height/2-t.height/2-a.height*s*(n.y/100)};return{crop:c,zoom:s}}function Et(n,r,e){var t=yt(r);return e.height>e.width?e.height/(n.height*t):e.width/(n.width*t)}function Dt(n,r,e,t,o,i){e===void 0&&(e=0);var a=J(r.naturalWidth,r.naturalHeight,e),s=fe(Et(n,r,t),o,i),c=t.height>t.width?t.height/n.height:t.width/n.width,l={x:((a.width-n.width)/2-n.x)*c,y:((a.height-n.height)/2-n.y)*c};return{crop:l,zoom:s}}function Ze(n,r){return{x:(r.x+n.x)/2,y:(r.y+n.y)/2}}function Pt(n){return n*Math.PI/180}function J(n,r,e){var t=Pt(e);return{width:Math.abs(Math.cos(t)*n)+Math.abs(Math.sin(t)*r),height:Math.abs(Math.sin(t)*n)+Math.abs(Math.cos(t)*r)}}function fe(n,r,e){return Math.min(Math.max(n,r),e)}function le(){for(var n=[],r=0;r0}).join(" ").trim()}var Mt=`.reactEasyCrop_Container { + */function ft(n,r){if(!$e.canUseDOM||r&&!("addEventListener"in document))return!1;var e="on"+n,t=e in document;if(!t){var o=document.createElement("div");o.setAttribute(e,"return;"),t=typeof o[e]=="function"}return!t&&Ye&&n==="wheel"&&(t=document.implementation.hasFeature("Events.wheel","3.0")),t}var mt=ft,vt=ut,gt=mt,Oe=10,Ie=40,We=800;function qe(n){var r=0,e=0,t=0,o=0;return"detail"in n&&(e=n.detail),"wheelDelta"in n&&(e=-n.wheelDelta/120),"wheelDeltaY"in n&&(e=-n.wheelDeltaY/120),"wheelDeltaX"in n&&(r=-n.wheelDeltaX/120),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(r=e,e=0),t=r*Oe,o=e*Oe,"deltaY"in n&&(o=n.deltaY),"deltaX"in n&&(t=n.deltaX),(t||o)&&n.deltaMode&&(n.deltaMode==1?(t*=Ie,o*=Ie):(t*=We,o*=We)),t&&!r&&(r=t<1?-1:1),o&&!e&&(e=o<1?-1:1),{spinX:r,spinY:e,pixelX:t,pixelY:o}}qe.getEventType=function(){return vt.firefox()?"DOMMouseScroll":gt("wheel")?"wheel":"mousewheel"};var wt=qe,Ct=wt;const xt=nt(Ct);function yt(n,r,e,t,o,i){i===void 0&&(i=0);var a=J(n,r,i),s=a.width,c=a.height,l=Math.min(s,e),u=Math.min(c,t);return l>u*o?{width:u*o,height:u}:{width:l,height:l/o}}function bt(n){return n.width>n.height?n.width/n.naturalWidth:n.height/n.naturalHeight}function oe(n,r,e,t,o){o===void 0&&(o=0);var i=J(r.width,r.height,o),a=i.width,s=i.height;return{x:je(n.x,a,e.width,t),y:je(n.y,s,e.height,t)}}function je(n,r,e,t){var o=r*t/2-e/2;return fe(n,-o,o)}function Fe(n,r){return Math.sqrt(Math.pow(n.y-r.y,2)+Math.pow(n.x-r.x,2))}function ke(n,r){return Math.atan2(r.y-n.y,r.x-n.x)*180/Math.PI}function Rt(n,r,e,t,o,i,a){i===void 0&&(i=0),a===void 0&&(a=!0);var s=a?St:_t,c=J(r.width,r.height,i),l=J(r.naturalWidth,r.naturalHeight,i),u={x:s(100,((c.width-e.width/o)/2-n.x/o)/c.width*100),y:s(100,((c.height-e.height/o)/2-n.y/o)/c.height*100),width:s(100,e.width/c.width*100/o),height:s(100,e.height/c.height*100/o)},p=Math.round(s(l.width,u.width*l.width/100)),h=Math.round(s(l.height,u.height*l.height/100)),x=l.width>=l.height*t,v=x?{width:Math.round(h*t),height:h}:{width:p,height:Math.round(p/t)},b=E(E({},v),{x:Math.round(s(l.width-v.width,u.x*l.width/100)),y:Math.round(s(l.height-v.height,u.y*l.height/100))});return{croppedAreaPercentages:u,croppedAreaPixels:b}}function St(n,r){return Math.min(n,Math.max(0,r))}function _t(n,r){return r}function Et(n,r,e,t,o,i){var a=J(r.width,r.height,e),s=fe(t.width/a.width*(100/n.width),o,i),c={x:s*a.width/2-t.width/2-a.width*s*(n.x/100),y:s*a.height/2-t.height/2-a.height*s*(n.y/100)};return{crop:c,zoom:s}}function Dt(n,r,e){var t=bt(r);return e.height>e.width?e.height/(n.height*t):e.width/(n.width*t)}function Pt(n,r,e,t,o,i){e===void 0&&(e=0);var a=J(r.naturalWidth,r.naturalHeight,e),s=fe(Dt(n,r,t),o,i),c=t.height>t.width?t.height/n.height:t.width/n.width,l={x:((a.width-n.width)/2-n.x)*c,y:((a.height-n.height)/2-n.y)*c};return{crop:l,zoom:s}}function Ze(n,r){return{x:(r.x+n.x)/2,y:(r.y+n.y)/2}}function Mt(n){return n*Math.PI/180}function J(n,r,e){var t=Mt(e);return{width:Math.abs(Math.cos(t)*n)+Math.abs(Math.sin(t)*r),height:Math.abs(Math.sin(t)*n)+Math.abs(Math.cos(t)*r)}}function fe(n,r,e){return Math.min(Math.max(n,r),e)}function le(){for(var n=[],r=0;r0}).join(" ").trim()}var zt=`.reactEasyCrop_Container { position: absolute; top: 0; left: 0; @@ -91,4 +91,4 @@ import{cm as nt,cn as it,r as u,co as E,j as f,aJ as ve,B as at,bs as se,cp as s border-left: 0; border-right: 0; } -`,zt=1,At=3,Tt=1,Nt=function(n){it(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.imageRef=u.createRef(),e.videoRef=u.createRef(),e.containerPosition={x:0,y:0},e.containerRef=null,e.styleRef=null,e.containerRect=null,e.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},e.dragStartPosition={x:0,y:0},e.dragStartCrop={x:0,y:0},e.gestureZoomStart=0,e.gestureRotationStart=0,e.isTouching=!1,e.lastPinchDistance=0,e.lastPinchRotation=0,e.rafDragTimeout=null,e.rafPinchTimeout=null,e.wheelTimer=null,e.currentDoc=typeof document<"u"?document:null,e.currentWindow=typeof window<"u"?window:null,e.resizeObserver=null,e.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},e.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!e.containerRef)){var t=!0;e.resizeObserver=new window.ResizeObserver(function(o){if(t){t=!1;return}e.computeSizes()}),e.resizeObserver.observe(e.containerRef)}},e.preventZoomSafari=function(t){return t.preventDefault()},e.cleanEvents=function(){e.currentDoc&&(e.currentDoc.removeEventListener("mousemove",e.onMouseMove),e.currentDoc.removeEventListener("mouseup",e.onDragStopped),e.currentDoc.removeEventListener("touchmove",e.onTouchMove),e.currentDoc.removeEventListener("touchend",e.onDragStopped),e.currentDoc.removeEventListener("gesturemove",e.onGestureMove),e.currentDoc.removeEventListener("gestureend",e.onGestureEnd),e.currentDoc.removeEventListener("scroll",e.onScroll))},e.clearScrollEvent=function(){e.containerRef&&e.containerRef.removeEventListener("wheel",e.onWheel),e.wheelTimer&&clearTimeout(e.wheelTimer)},e.onMediaLoad=function(){var t=e.computeSizes();t&&(e.emitCropData(),e.setInitialCrop(t)),e.props.onMediaLoaded&&e.props.onMediaLoaded(e.mediaSize)},e.setInitialCrop=function(t){if(e.props.initialCroppedAreaPercentages){var o=_t(e.props.initialCroppedAreaPercentages,e.mediaSize,e.props.rotation,t,e.props.minZoom,e.props.maxZoom),i=o.crop,a=o.zoom;e.props.onCropChange(i),e.props.onZoomChange&&e.props.onZoomChange(a)}else if(e.props.initialCroppedAreaPixels){var s=Dt(e.props.initialCroppedAreaPixels,e.mediaSize,e.props.rotation,t,e.props.minZoom,e.props.maxZoom),i=s.crop,a=s.zoom;e.props.onCropChange(i),e.props.onZoomChange&&e.props.onZoomChange(a)}},e.computeSizes=function(){var t,o,i,a,s,c,l=e.imageRef.current||e.videoRef.current;if(l&&e.containerRef){e.containerRect=e.containerRef.getBoundingClientRect(),e.saveContainerPosition();var d=e.containerRect.width/e.containerRect.height,p=((t=e.imageRef.current)===null||t===void 0?void 0:t.naturalWidth)||((o=e.videoRef.current)===null||o===void 0?void 0:o.videoWidth)||0,h=((i=e.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((a=e.videoRef.current)===null||a===void 0?void 0:a.videoHeight)||0,x=l.offsetWidthv?{width:e.containerRect.height*v,height:e.containerRect.height}:{width:e.containerRect.width,height:e.containerRect.width/v};break;case"horizontal-cover":b={width:e.containerRect.width,height:e.containerRect.width/v};break;case"vertical-cover":b={width:e.containerRect.height*v,height:e.containerRect.height};break}else b={width:l.offsetWidth,height:l.offsetHeight};e.mediaSize=E(E({},b),{naturalWidth:p,naturalHeight:h}),e.props.setMediaSize&&e.props.setMediaSize(e.mediaSize);var w=e.props.cropSize?e.props.cropSize:xt(e.mediaSize.width,e.mediaSize.height,e.containerRect.width,e.containerRect.height,e.props.aspect,e.props.rotation);return(((s=e.state.cropSize)===null||s===void 0?void 0:s.height)!==w.height||((c=e.state.cropSize)===null||c===void 0?void 0:c.width)!==w.width)&&e.props.onCropSizeChange&&e.props.onCropSizeChange(w),e.setState({cropSize:w},e.recomputeCropPosition),e.props.setCropSize&&e.props.setCropSize(w),w}},e.saveContainerPosition=function(){if(e.containerRef){var t=e.containerRef.getBoundingClientRect();e.containerPosition={x:t.left,y:t.top}}},e.onMouseDown=function(t){e.currentDoc&&(t.preventDefault(),e.currentDoc.addEventListener("mousemove",e.onMouseMove),e.currentDoc.addEventListener("mouseup",e.onDragStopped),e.saveContainerPosition(),e.onDragStart(r.getMousePoint(t)))},e.onMouseMove=function(t){return e.onDrag(r.getMousePoint(t))},e.onScroll=function(t){e.currentDoc&&(t.preventDefault(),e.saveContainerPosition())},e.onTouchStart=function(t){e.currentDoc&&(e.isTouching=!0,!(e.props.onTouchRequest&&!e.props.onTouchRequest(t))&&(e.currentDoc.addEventListener("touchmove",e.onTouchMove,{passive:!1}),e.currentDoc.addEventListener("touchend",e.onDragStopped),e.saveContainerPosition(),t.touches.length===2?e.onPinchStart(t):t.touches.length===1&&e.onDragStart(r.getTouchPoint(t.touches[0]))))},e.onTouchMove=function(t){t.preventDefault(),t.touches.length===2?e.onPinchMove(t):t.touches.length===1&&e.onDrag(r.getTouchPoint(t.touches[0]))},e.onGestureStart=function(t){e.currentDoc&&(t.preventDefault(),e.currentDoc.addEventListener("gesturechange",e.onGestureMove),e.currentDoc.addEventListener("gestureend",e.onGestureEnd),e.gestureZoomStart=e.props.zoom,e.gestureRotationStart=e.props.rotation)},e.onGestureMove=function(t){if(t.preventDefault(),!e.isTouching){var o=r.getMousePoint(t),i=e.gestureZoomStart-1+t.scale;if(e.setNewZoom(i,o,{shouldUpdatePosition:!0}),e.props.onRotationChange){var a=e.gestureRotationStart+t.rotation;e.props.onRotationChange(a)}}},e.onGestureEnd=function(t){e.cleanEvents()},e.onDragStart=function(t){var o,i,a=t.x,s=t.y;e.dragStartPosition={x:a,y:s},e.dragStartCrop=E({},e.props.crop),(i=(o=e.props).onInteractionStart)===null||i===void 0||i.call(o)},e.onDrag=function(t){var o=t.x,i=t.y;e.currentWindow&&(e.rafDragTimeout&&e.currentWindow.cancelAnimationFrame(e.rafDragTimeout),e.rafDragTimeout=e.currentWindow.requestAnimationFrame(function(){if(e.state.cropSize&&!(o===void 0||i===void 0)){var a=o-e.dragStartPosition.x,s=i-e.dragStartPosition.y,c={x:e.dragStartCrop.x+a,y:e.dragStartCrop.y+s},l=e.props.restrictPosition?oe(c,e.mediaSize,e.state.cropSize,e.props.zoom,e.props.rotation):c;e.props.onCropChange(l)}}))},e.onDragStopped=function(){var t,o;e.isTouching=!1,e.cleanEvents(),e.emitCropData(),(o=(t=e.props).onInteractionEnd)===null||o===void 0||o.call(t)},e.onWheel=function(t){if(e.currentWindow&&!(e.props.onWheelRequest&&!e.props.onWheelRequest(t))){t.preventDefault();var o=r.getMousePoint(t),i=Ct(t).pixelY,a=e.props.zoom-i*e.props.zoomSpeed/200;e.setNewZoom(a,o,{shouldUpdatePosition:!0}),e.state.hasWheelJustStarted||e.setState({hasWheelJustStarted:!0},function(){var s,c;return(c=(s=e.props).onInteractionStart)===null||c===void 0?void 0:c.call(s)}),e.wheelTimer&&clearTimeout(e.wheelTimer),e.wheelTimer=e.currentWindow.setTimeout(function(){return e.setState({hasWheelJustStarted:!1},function(){var s,c;return(c=(s=e.props).onInteractionEnd)===null||c===void 0?void 0:c.call(s)})},250)}},e.getPointOnContainer=function(t,o){var i=t.x,a=t.y;if(!e.containerRect)throw new Error("The Cropper is not mounted");return{x:e.containerRect.width/2-(i-o.x),y:e.containerRect.height/2-(a-o.y)}},e.getPointOnMedia=function(t){var o=t.x,i=t.y,a=e.props,s=a.crop,c=a.zoom;return{x:(o+s.x)/c,y:(i+s.y)/c}},e.setNewZoom=function(t,o,i){var a=i===void 0?{}:i,s=a.shouldUpdatePosition,c=s===void 0?!0:s;if(!(!e.state.cropSize||!e.props.onZoomChange)){var l=fe(t,e.props.minZoom,e.props.maxZoom);if(c){var d=e.getPointOnContainer(o,e.containerPosition),p=e.getPointOnMedia(d),h={x:p.x*l-d.x,y:p.y*l-d.y},x=e.props.restrictPosition?oe(h,e.mediaSize,e.state.cropSize,l,e.props.rotation):h;e.props.onCropChange(x)}e.props.onZoomChange(l)}},e.getCropData=function(){if(!e.state.cropSize)return null;var t=e.props.restrictPosition?oe(e.props.crop,e.mediaSize,e.state.cropSize,e.props.zoom,e.props.rotation):e.props.crop;return bt(t,e.mediaSize,e.state.cropSize,e.getAspect(),e.props.zoom,e.props.rotation,e.props.restrictPosition)},e.emitCropData=function(){var t=e.getCropData();if(t){var o=t.croppedAreaPercentages,i=t.croppedAreaPixels;e.props.onCropComplete&&e.props.onCropComplete(o,i),e.props.onCropAreaChange&&e.props.onCropAreaChange(o,i)}},e.emitCropAreaChange=function(){var t=e.getCropData();if(t){var o=t.croppedAreaPercentages,i=t.croppedAreaPixels;e.props.onCropAreaChange&&e.props.onCropAreaChange(o,i)}},e.recomputeCropPosition=function(){if(e.state.cropSize){var t=e.props.restrictPosition?oe(e.props.crop,e.mediaSize,e.state.cropSize,e.props.zoom,e.props.rotation):e.props.crop;e.props.onCropChange(t),e.emitCropData()}},e.onKeyDown=function(t){var o=e.props,i=o.crop,a=o.onCropChange,s=o.keyboardStep,c=o.zoom,l=o.rotation,d=s;if(e.state.cropSize){t.shiftKey&&(d*=.2);var p=E({},i);switch(t.key){case"ArrowUp":p.y-=d,t.preventDefault();break;case"ArrowDown":p.y+=d,t.preventDefault();break;case"ArrowLeft":p.x-=d,t.preventDefault();break;case"ArrowRight":p.x+=d,t.preventDefault();break;default:return}e.props.restrictPosition&&(p=oe(p,e.mediaSize,e.state.cropSize,c,l)),a(p)}},e}return r.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=Mt,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},r.prototype.componentWillUnmount=function(){var e,t;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((t=this.styleRef.parentNode)===null||t===void 0||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},r.prototype.componentDidUpdate=function(e){var t,o,i,a,s,c,l,d,p;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():((t=e.cropSize)===null||t===void 0?void 0:t.height)!==((o=this.props.cropSize)===null||o===void 0?void 0:o.height)||((i=e.cropSize)===null||i===void 0?void 0:i.width)!==((a=this.props.cropSize)===null||a===void 0?void 0:a.width)?this.computeSizes():(((s=e.crop)===null||s===void 0?void 0:s.x)!==((c=this.props.crop)===null||c===void 0?void 0:c.x)||((l=e.crop)===null||l===void 0?void 0:l.y)!==((d=this.props.crop)===null||d===void 0?void 0:d.y))&&this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&((p=this.videoRef.current)===null||p===void 0||p.load());var h=this.getObjectFit();h!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:h},this.computeSizes)},r.prototype.getAspect=function(){var e=this.props,t=e.cropSize,o=e.aspect;return t?t.width/t.height:o},r.prototype.getObjectFit=function(){var e,t,o,i;if(this.props.objectFit==="cover"){var a=this.imageRef.current||this.videoRef.current;if(a&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var s=this.containerRect.width/this.containerRect.height,c=((e=this.imageRef.current)===null||e===void 0?void 0:e.naturalWidth)||((t=this.videoRef.current)===null||t===void 0?void 0:t.videoWidth)||0,l=((o=this.imageRef.current)===null||o===void 0?void 0:o.naturalHeight)||((i=this.videoRef.current)===null||i===void 0?void 0:i.videoHeight)||0,d=c/l;return d{const{cropperRef:e,zoomSlider:t,rotationSlider:o,aspectSlider:i,showReset:a,resetBtnText:s,modalImage:c,aspect:l,minZoom:d,maxZoom:p,minAspect:h,maxAspect:x,cropShape:v,showGrid:b,cropperProps:w}=n,[A,j]=u.useState(ge),[R,P]=u.useState(he),[M,Z]=u.useState(l),V=A!==ge||R!==he||M!==l,N=()=>{j(ge),P(he),Z(l)},[$,Q]=u.useState({x:0,y:0}),I=u.useRef({width:0,height:0,x:0,y:0}),L=u.useCallback((me,ie)=>{I.current=ie},[]);u.useImperativeHandle(r,()=>({rotation:R,cropPixelsRef:I,onReset:N}));const K="[display:flex] [align-items:center] [width:60%] [margin-inline:auto]",F="[display:flex] [align-items:center] [justify-content:center] [height:32px] [width:32px] [background:transparent] [border:0] [font-family:inherit] [font-size:18px] [cursor:pointer] disabled:[opacity:20%] disabled:[cursor:default]",G="[flex:1]";return f.jsxs(f.Fragment,{children:[f.jsx(Nt,Object.assign({},w,{ref:e,image:c,crop:$,zoom:A,rotation:R,aspect:M,minZoom:d,maxZoom:p,zoomWithScroll:t,cropShape:v,showGrid:b,onCropChange:Q,onZoomChange:j,onRotationChange:P,onCropComplete:L,classes:{containerClassName:`${W}-container ![position:relative] [width:100%] [height:40vh] [&~section:first-of-type]:[margin-top:16px] [&~section:last-of-type]:[margin-bottom:16px]`,mediaClassName:`${W}-media`}})),t&&f.jsxs("section",{className:`${W}-control ${W}-control-zoom ${K}`,children:[f.jsx("button",{className:F,onClick:()=>j(+(A-re).toFixed(1)),disabled:A-rej(+(A+re).toFixed(1)),disabled:A+re>p,children:"+"})]}),o&&f.jsxs("section",{className:`${W}-control ${W}-control-rotation ${K}`,children:[f.jsx("button",{className:`${F} [font-size:16px]`,onClick:()=>P(R-we),disabled:R===Le,children:"↺"}),f.jsx(ve,{className:G,min:Le,max:Ue,step:we,value:R,onChange:P}),f.jsx("button",{className:`${F} [font-size:16px]`,onClick:()=>P(R+we),disabled:R===Ue,children:"↻"})]}),i&&f.jsxs("section",{className:`${W}-control ${W}-control-aspect ${K}`,children:[f.jsx("button",{className:F,onClick:()=>Z(+(M-ne).toFixed(2)),disabled:M-neZ(+(M+ne).toFixed(2)),disabled:M+ne>x,children:"↔"})]}),a&&(t||o||i)&&f.jsx(at,{className:"[bottom:20px] [position:absolute]",style:V?{}:{opacity:.3,pointerEvents:"none"},onClick:N,children:s})]})});var Ot=u.memo(It);function Wt(n,r){r===void 0&&(r={});var e=r.insertAt;if(!(typeof document>"u")){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",e==="top"&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}}var jt=".\\[align-items\\:center\\]{align-items:center}.\\[background\\:transparent\\]{background:transparent}.\\[border\\:0\\]{border:0}.\\[bottom\\:20px\\]{bottom:20px}.\\[cursor\\:pointer\\]{cursor:pointer}.\\[display\\:flex\\]{display:flex}.\\[flex\\:1\\]{flex:1}.\\[font-family\\:inherit\\]{font-family:inherit}.\\[font-size\\:16px\\]{font-size:16px}.\\[font-size\\:18px\\]{font-size:18px}.\\[height\\:32px\\]{height:32px}.\\[height\\:40vh\\]{height:40vh}.\\[justify-content\\:center\\]{justify-content:center}.\\[margin-inline\\:auto\\]{margin-inline:auto}.\\[position\\:absolute\\]{position:absolute}.\\!\\[position\\:relative\\]{position:relative!important}.\\[width\\:100\\%\\]{width:100%}.\\[width\\:32px\\]{width:32px}.\\[width\\:60\\%\\]{width:60%}.disabled\\:\\[cursor\\:default\\]:disabled{cursor:default}.disabled\\:\\[opacity\\:20\\%\\]:disabled{opacity:20%}.\\[\\&\\~section\\:first-of-type\\]\\:\\[margin-top\\:16px\\]~section:first-of-type{margin-top:16px}.\\[\\&\\~section\\:last-of-type\\]\\:\\[margin-bottom\\:16px\\]~section:last-of-type{margin-bottom:16px}";Wt(jt,{insertAt:"top"});const Ft=u.forwardRef((n,r)=>{const{quality:e=.4,fillColor:t="white",zoomSlider:o=!0,rotationSlider:i=!1,aspectSlider:a=!1,showReset:s=!1,resetText:c,aspect:l=1,minZoom:d=1,maxZoom:p=3,minAspect:h=.5,maxAspect:x=2,cropShape:v="rect",showGrid:b=!1,cropperProps:w,modalClassName:A,modalTitle:j,modalWidth:R,modalOk:P,modalCancel:M,onModalOk:Z,onModalCancel:V,modalProps:N,beforeCrop:$,children:Q}=n,I=u.useRef({});I.current.onModalOk=Z,I.current.onModalCancel=V,I.current.beforeCrop=$;const L=u.useRef(null),K=u.useCallback(g=>{var S;const C=document.createElement("canvas"),m=C.getContext("2d"),T=(((S=g==null?void 0:g.getRootNode)===null||S===void 0?void 0:S.call(g))||document).querySelector(`.${W}-media`),{width:y,height:_,x:B,y:H}=L.current.cropPixelsRef.current;if(i&&L.current.rotation!==he){const{naturalWidth:k,naturalHeight:Y}=T,ee=L.current.rotation*(Math.PI/180),te=Math.abs(Math.sin(ee)),X=Math.abs(Math.cos(ee)),O=k*X+Y*te,z=Y*X+k*te;C.width=O,C.height=z,m.fillStyle=t,m.fillRect(0,0,O,z);const ze=O/2,Ae=z/2;m.translate(ze,Ae),m.rotate(ee),m.translate(-ze,-Ae);const tt=(O-k)/2,ot=(z-Y)/2;m.drawImage(T,0,0,k,Y,tt,ot,k,Y);const rt=m.getImageData(0,0,O,z);C.width=y,C.height=_,m.putImageData(rt,-B,-H)}else C.width=y,C.height=_,m.fillStyle=t,m.fillRect(0,0,y,_),m.drawImage(T,B,H,y,_,0,0,y,_);return C},[t,i]),[F,G]=u.useState(""),me=u.useRef(),ie=u.useRef(),ae=u.useCallback(g=>se(void 0,[g],void 0,function*({beforeUpload:S,file:C,resolve:m,reject:U}){const T=C;if(typeof S!="function"){m(T);return}try{const y=yield S(C,[C]);m(y===!1?!1:y!==!0&&y||T)}catch(y){U(y)}}),[]),Pe=u.useCallback(g=>(S,C)=>new Promise((m,U)=>se(void 0,void 0,void 0,function*(){let T=S;if(typeof I.current.beforeCrop=="function")try{const _=yield I.current.beforeCrop(S,C);if(_===!1)return ae({beforeUpload:g,file:S,resolve:m,reject:U});_!==!0&&(T=_||S)}catch{return ae({beforeUpload:g,file:S,resolve:m,reject:U})}const y=new FileReader;y.addEventListener("load",()=>{typeof y.result=="string"&&G(y.result)}),y.readAsDataURL(T),me.current=()=>{var _,B;G(""),L.current.onReset();let H=!1;(B=(_=I.current).onModalCancel)===null||B===void 0||B.call(_,k=>{m(k),H=!0}),H||m(Ce.LIST_IGNORE)},ie.current=_=>se(void 0,void 0,void 0,function*(){G(""),L.current.onReset();const B=K(_.target),{type:H,name:k,uid:Y}=T;B.toBlob(ee=>se(void 0,void 0,void 0,function*(){const te=new File([ee],k,{type:H});Object.assign(te,{uid:Y}),ae({beforeUpload:g,file:te,resolve:X=>{var O,z;m(X),(z=(O=I.current).onModalOk)===null||z===void 0||z.call(O,X)},reject:X=>{var O,z;U(X),(z=(O=I.current).onModalOk)===null||z===void 0||z.call(O,X)}})}),H,e)})})),[K,e,ae]),Ve=u.useCallback(g=>{const S=Array.isArray(g)?g[0]:g,C=S.props,{beforeUpload:m,accept:U}=C,T=st(C,["beforeUpload","accept"]);return Object.assign(Object.assign({},S),{props:Object.assign(Object.assign({},T),{accept:U||"image/*",beforeUpload:Pe(m)})})},[Pe]),Ke=u.useMemo(()=>{const g={};return R!==void 0&&(g.width=R),P!==void 0&&(g.okText=P),M!==void 0&&(g.cancelText=M),g},[M,P,R]),Je=`${W}-modal${A?` ${A}`:""}`,Me=(typeof window>"u"?"":window.navigator.language)==="zh-CN",Qe=j||(Me?"编辑图片":"Edit image"),et=c||(Me?"重置":"Reset");return f.jsxs(f.Fragment,{children:[Ve(Q),F&&f.jsx(lt,Object.assign({},N,Ke,{open:!0,title:Qe,onCancel:me.current,onOk:ie.current,wrapClassName:Je,maskClosable:!1,destroyOnClose:!0,children:f.jsx(Ot,{ref:L,cropperRef:r,zoomSlider:o,rotationSlider:i,aspectSlider:a,showReset:s,resetBtnText:et,modalImage:F,aspect:l,minZoom:d,maxZoom:p,minAspect:h,maxAspect:x,cropShape:v,showGrid:b,cropperProps:w})}))]})}),Bt=n=>{const{form:r,dataIndex:e,api:t,maxCount:o=1,crop:i,defaultFile:a}=n,[s,c]=u.useState();u.useEffect(()=>{a&&(a instanceof Array?c(a.map((p,h)=>({uid:h.toString(),name:"",status:"done",url:p}))):c([{uid:"-1",name:"",status:"done",url:a}]))},[a]);const l=({fileList:p})=>{c(p),p.length!==0&&p[0].status==="done"&&(p[0].response.success?r.setFieldValue(e,p[0].response.data.fileInfo.file_id):(ct.warning(p[0].response.msg),c([])))},d=async p=>{let h=p.url;h||(h=await new Promise(b=>{const w=new FileReader;w.readAsDataURL(p.originFileObj),w.onload=()=>b(w.result)}));const x=new Image;x.src=h;const v=window.open(h);v==null||v.document.write(x.outerHTML)};return f.jsx(f.Fragment,{children:i?f.jsx(Ft,{rotationSlider:!0,children:f.jsx(Ce,{maxCount:o,action:Te(t),listType:"picture-card",fileList:s,onChange:l,onPreview:d,headers:{"X-Token":localStorage.getItem("x-token"),"X-User-Token":localStorage.getItem("x-user-token")},children:"+ Upload"})}):f.jsx(Ce,{maxCount:o,action:Te(t),listType:"picture-card",fileList:s,onChange:l,headers:{"X-Token":localStorage.getItem("x-token"),"X-User-Token":localStorage.getItem("x-user-token")},children:"+ Upload"})})};export{Bt as U}; +`,At=1,Tt=3,Nt=1,Ot=function(n){it(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.imageRef=d.createRef(),e.videoRef=d.createRef(),e.containerPosition={x:0,y:0},e.containerRef=null,e.styleRef=null,e.containerRect=null,e.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},e.dragStartPosition={x:0,y:0},e.dragStartCrop={x:0,y:0},e.gestureZoomStart=0,e.gestureRotationStart=0,e.isTouching=!1,e.lastPinchDistance=0,e.lastPinchRotation=0,e.rafDragTimeout=null,e.rafPinchTimeout=null,e.wheelTimer=null,e.currentDoc=typeof document<"u"?document:null,e.currentWindow=typeof window<"u"?window:null,e.resizeObserver=null,e.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},e.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!e.containerRef)){var t=!0;e.resizeObserver=new window.ResizeObserver(function(o){if(t){t=!1;return}e.computeSizes()}),e.resizeObserver.observe(e.containerRef)}},e.preventZoomSafari=function(t){return t.preventDefault()},e.cleanEvents=function(){e.currentDoc&&(e.currentDoc.removeEventListener("mousemove",e.onMouseMove),e.currentDoc.removeEventListener("mouseup",e.onDragStopped),e.currentDoc.removeEventListener("touchmove",e.onTouchMove),e.currentDoc.removeEventListener("touchend",e.onDragStopped),e.currentDoc.removeEventListener("gesturemove",e.onGestureMove),e.currentDoc.removeEventListener("gestureend",e.onGestureEnd),e.currentDoc.removeEventListener("scroll",e.onScroll))},e.clearScrollEvent=function(){e.containerRef&&e.containerRef.removeEventListener("wheel",e.onWheel),e.wheelTimer&&clearTimeout(e.wheelTimer)},e.onMediaLoad=function(){var t=e.computeSizes();t&&(e.emitCropData(),e.setInitialCrop(t)),e.props.onMediaLoaded&&e.props.onMediaLoaded(e.mediaSize)},e.setInitialCrop=function(t){if(e.props.initialCroppedAreaPercentages){var o=Et(e.props.initialCroppedAreaPercentages,e.mediaSize,e.props.rotation,t,e.props.minZoom,e.props.maxZoom),i=o.crop,a=o.zoom;e.props.onCropChange(i),e.props.onZoomChange&&e.props.onZoomChange(a)}else if(e.props.initialCroppedAreaPixels){var s=Pt(e.props.initialCroppedAreaPixels,e.mediaSize,e.props.rotation,t,e.props.minZoom,e.props.maxZoom),i=s.crop,a=s.zoom;e.props.onCropChange(i),e.props.onZoomChange&&e.props.onZoomChange(a)}},e.computeSizes=function(){var t,o,i,a,s,c,l=e.imageRef.current||e.videoRef.current;if(l&&e.containerRef){e.containerRect=e.containerRef.getBoundingClientRect(),e.saveContainerPosition();var u=e.containerRect.width/e.containerRect.height,p=((t=e.imageRef.current)===null||t===void 0?void 0:t.naturalWidth)||((o=e.videoRef.current)===null||o===void 0?void 0:o.videoWidth)||0,h=((i=e.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((a=e.videoRef.current)===null||a===void 0?void 0:a.videoHeight)||0,x=l.offsetWidthv?{width:e.containerRect.height*v,height:e.containerRect.height}:{width:e.containerRect.width,height:e.containerRect.width/v};break;case"horizontal-cover":b={width:e.containerRect.width,height:e.containerRect.width/v};break;case"vertical-cover":b={width:e.containerRect.height*v,height:e.containerRect.height};break}else b={width:l.offsetWidth,height:l.offsetHeight};e.mediaSize=E(E({},b),{naturalWidth:p,naturalHeight:h}),e.props.setMediaSize&&e.props.setMediaSize(e.mediaSize);var w=e.props.cropSize?e.props.cropSize:yt(e.mediaSize.width,e.mediaSize.height,e.containerRect.width,e.containerRect.height,e.props.aspect,e.props.rotation);return(((s=e.state.cropSize)===null||s===void 0?void 0:s.height)!==w.height||((c=e.state.cropSize)===null||c===void 0?void 0:c.width)!==w.width)&&e.props.onCropSizeChange&&e.props.onCropSizeChange(w),e.setState({cropSize:w},e.recomputeCropPosition),e.props.setCropSize&&e.props.setCropSize(w),w}},e.saveContainerPosition=function(){if(e.containerRef){var t=e.containerRef.getBoundingClientRect();e.containerPosition={x:t.left,y:t.top}}},e.onMouseDown=function(t){e.currentDoc&&(t.preventDefault(),e.currentDoc.addEventListener("mousemove",e.onMouseMove),e.currentDoc.addEventListener("mouseup",e.onDragStopped),e.saveContainerPosition(),e.onDragStart(r.getMousePoint(t)))},e.onMouseMove=function(t){return e.onDrag(r.getMousePoint(t))},e.onScroll=function(t){e.currentDoc&&(t.preventDefault(),e.saveContainerPosition())},e.onTouchStart=function(t){e.currentDoc&&(e.isTouching=!0,!(e.props.onTouchRequest&&!e.props.onTouchRequest(t))&&(e.currentDoc.addEventListener("touchmove",e.onTouchMove,{passive:!1}),e.currentDoc.addEventListener("touchend",e.onDragStopped),e.saveContainerPosition(),t.touches.length===2?e.onPinchStart(t):t.touches.length===1&&e.onDragStart(r.getTouchPoint(t.touches[0]))))},e.onTouchMove=function(t){t.preventDefault(),t.touches.length===2?e.onPinchMove(t):t.touches.length===1&&e.onDrag(r.getTouchPoint(t.touches[0]))},e.onGestureStart=function(t){e.currentDoc&&(t.preventDefault(),e.currentDoc.addEventListener("gesturechange",e.onGestureMove),e.currentDoc.addEventListener("gestureend",e.onGestureEnd),e.gestureZoomStart=e.props.zoom,e.gestureRotationStart=e.props.rotation)},e.onGestureMove=function(t){if(t.preventDefault(),!e.isTouching){var o=r.getMousePoint(t),i=e.gestureZoomStart-1+t.scale;if(e.setNewZoom(i,o,{shouldUpdatePosition:!0}),e.props.onRotationChange){var a=e.gestureRotationStart+t.rotation;e.props.onRotationChange(a)}}},e.onGestureEnd=function(t){e.cleanEvents()},e.onDragStart=function(t){var o,i,a=t.x,s=t.y;e.dragStartPosition={x:a,y:s},e.dragStartCrop=E({},e.props.crop),(i=(o=e.props).onInteractionStart)===null||i===void 0||i.call(o)},e.onDrag=function(t){var o=t.x,i=t.y;e.currentWindow&&(e.rafDragTimeout&&e.currentWindow.cancelAnimationFrame(e.rafDragTimeout),e.rafDragTimeout=e.currentWindow.requestAnimationFrame(function(){if(e.state.cropSize&&!(o===void 0||i===void 0)){var a=o-e.dragStartPosition.x,s=i-e.dragStartPosition.y,c={x:e.dragStartCrop.x+a,y:e.dragStartCrop.y+s},l=e.props.restrictPosition?oe(c,e.mediaSize,e.state.cropSize,e.props.zoom,e.props.rotation):c;e.props.onCropChange(l)}}))},e.onDragStopped=function(){var t,o;e.isTouching=!1,e.cleanEvents(),e.emitCropData(),(o=(t=e.props).onInteractionEnd)===null||o===void 0||o.call(t)},e.onWheel=function(t){if(e.currentWindow&&!(e.props.onWheelRequest&&!e.props.onWheelRequest(t))){t.preventDefault();var o=r.getMousePoint(t),i=xt(t).pixelY,a=e.props.zoom-i*e.props.zoomSpeed/200;e.setNewZoom(a,o,{shouldUpdatePosition:!0}),e.state.hasWheelJustStarted||e.setState({hasWheelJustStarted:!0},function(){var s,c;return(c=(s=e.props).onInteractionStart)===null||c===void 0?void 0:c.call(s)}),e.wheelTimer&&clearTimeout(e.wheelTimer),e.wheelTimer=e.currentWindow.setTimeout(function(){return e.setState({hasWheelJustStarted:!1},function(){var s,c;return(c=(s=e.props).onInteractionEnd)===null||c===void 0?void 0:c.call(s)})},250)}},e.getPointOnContainer=function(t,o){var i=t.x,a=t.y;if(!e.containerRect)throw new Error("The Cropper is not mounted");return{x:e.containerRect.width/2-(i-o.x),y:e.containerRect.height/2-(a-o.y)}},e.getPointOnMedia=function(t){var o=t.x,i=t.y,a=e.props,s=a.crop,c=a.zoom;return{x:(o+s.x)/c,y:(i+s.y)/c}},e.setNewZoom=function(t,o,i){var a=i===void 0?{}:i,s=a.shouldUpdatePosition,c=s===void 0?!0:s;if(!(!e.state.cropSize||!e.props.onZoomChange)){var l=fe(t,e.props.minZoom,e.props.maxZoom);if(c){var u=e.getPointOnContainer(o,e.containerPosition),p=e.getPointOnMedia(u),h={x:p.x*l-u.x,y:p.y*l-u.y},x=e.props.restrictPosition?oe(h,e.mediaSize,e.state.cropSize,l,e.props.rotation):h;e.props.onCropChange(x)}e.props.onZoomChange(l)}},e.getCropData=function(){if(!e.state.cropSize)return null;var t=e.props.restrictPosition?oe(e.props.crop,e.mediaSize,e.state.cropSize,e.props.zoom,e.props.rotation):e.props.crop;return Rt(t,e.mediaSize,e.state.cropSize,e.getAspect(),e.props.zoom,e.props.rotation,e.props.restrictPosition)},e.emitCropData=function(){var t=e.getCropData();if(t){var o=t.croppedAreaPercentages,i=t.croppedAreaPixels;e.props.onCropComplete&&e.props.onCropComplete(o,i),e.props.onCropAreaChange&&e.props.onCropAreaChange(o,i)}},e.emitCropAreaChange=function(){var t=e.getCropData();if(t){var o=t.croppedAreaPercentages,i=t.croppedAreaPixels;e.props.onCropAreaChange&&e.props.onCropAreaChange(o,i)}},e.recomputeCropPosition=function(){if(e.state.cropSize){var t=e.props.restrictPosition?oe(e.props.crop,e.mediaSize,e.state.cropSize,e.props.zoom,e.props.rotation):e.props.crop;e.props.onCropChange(t),e.emitCropData()}},e.onKeyDown=function(t){var o=e.props,i=o.crop,a=o.onCropChange,s=o.keyboardStep,c=o.zoom,l=o.rotation,u=s;if(e.state.cropSize){t.shiftKey&&(u*=.2);var p=E({},i);switch(t.key){case"ArrowUp":p.y-=u,t.preventDefault();break;case"ArrowDown":p.y+=u,t.preventDefault();break;case"ArrowLeft":p.x-=u,t.preventDefault();break;case"ArrowRight":p.x+=u,t.preventDefault();break;default:return}e.props.restrictPosition&&(p=oe(p,e.mediaSize,e.state.cropSize,c,l)),a(p)}},e}return r.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=zt,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},r.prototype.componentWillUnmount=function(){var e,t;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((t=this.styleRef.parentNode)===null||t===void 0||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},r.prototype.componentDidUpdate=function(e){var t,o,i,a,s,c,l,u,p;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():((t=e.cropSize)===null||t===void 0?void 0:t.height)!==((o=this.props.cropSize)===null||o===void 0?void 0:o.height)||((i=e.cropSize)===null||i===void 0?void 0:i.width)!==((a=this.props.cropSize)===null||a===void 0?void 0:a.width)?this.computeSizes():(((s=e.crop)===null||s===void 0?void 0:s.x)!==((c=this.props.crop)===null||c===void 0?void 0:c.x)||((l=e.crop)===null||l===void 0?void 0:l.y)!==((u=this.props.crop)===null||u===void 0?void 0:u.y))&&this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&((p=this.videoRef.current)===null||p===void 0||p.load());var h=this.getObjectFit();h!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:h},this.computeSizes)},r.prototype.getAspect=function(){var e=this.props,t=e.cropSize,o=e.aspect;return t?t.width/t.height:o},r.prototype.getObjectFit=function(){var e,t,o,i;if(this.props.objectFit==="cover"){var a=this.imageRef.current||this.videoRef.current;if(a&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var s=this.containerRect.width/this.containerRect.height,c=((e=this.imageRef.current)===null||e===void 0?void 0:e.naturalWidth)||((t=this.videoRef.current)===null||t===void 0?void 0:t.videoWidth)||0,l=((o=this.imageRef.current)===null||o===void 0?void 0:o.naturalHeight)||((i=this.videoRef.current)===null||i===void 0?void 0:i.videoHeight)||0,u=c/l;return u{const{cropperRef:e,zoomSlider:t,rotationSlider:o,aspectSlider:i,showReset:a,resetBtnText:s,modalImage:c,aspect:l,minZoom:u,maxZoom:p,minAspect:h,maxAspect:x,cropShape:v,showGrid:b,cropperProps:w}=n,[A,j]=d.useState(ge),[R,P]=d.useState(he),[M,Z]=d.useState(l),V=A!==ge||R!==he||M!==l,N=()=>{j(ge),P(he),Z(l)},[X,Q]=d.useState({x:0,y:0}),O=d.useRef({width:0,height:0,x:0,y:0}),L=d.useCallback((me,ie)=>{O.current=ie},[]);d.useImperativeHandle(r,()=>({rotation:R,cropPixelsRef:O,onReset:N}));const K="[display:flex] [align-items:center] [width:60%] [margin-inline:auto]",F="[display:flex] [align-items:center] [justify-content:center] [height:32px] [width:32px] [background:transparent] [border:0] [font-family:inherit] [font-size:18px] [cursor:pointer] disabled:[opacity:20%] disabled:[cursor:default]",$="[flex:1]";return f.jsxs(f.Fragment,{children:[f.jsx(Ot,Object.assign({},w,{ref:e,image:c,crop:X,zoom:A,rotation:R,aspect:M,minZoom:u,maxZoom:p,zoomWithScroll:t,cropShape:v,showGrid:b,onCropChange:Q,onZoomChange:j,onRotationChange:P,onCropComplete:L,classes:{containerClassName:`${W}-container ![position:relative] [width:100%] [height:40vh] [&~section:first-of-type]:[margin-top:16px] [&~section:last-of-type]:[margin-bottom:16px]`,mediaClassName:`${W}-media`}})),t&&f.jsxs("section",{className:`${W}-control ${W}-control-zoom ${K}`,children:[f.jsx("button",{className:F,onClick:()=>j(+(A-re).toFixed(1)),disabled:A-rej(+(A+re).toFixed(1)),disabled:A+re>p,children:"+"})]}),o&&f.jsxs("section",{className:`${W}-control ${W}-control-rotation ${K}`,children:[f.jsx("button",{className:`${F} [font-size:16px]`,onClick:()=>P(R-we),disabled:R===Le,children:"↺"}),f.jsx(ve,{className:$,min:Le,max:Ue,step:we,value:R,onChange:P}),f.jsx("button",{className:`${F} [font-size:16px]`,onClick:()=>P(R+we),disabled:R===Ue,children:"↻"})]}),i&&f.jsxs("section",{className:`${W}-control ${W}-control-aspect ${K}`,children:[f.jsx("button",{className:F,onClick:()=>Z(+(M-ne).toFixed(2)),disabled:M-neZ(+(M+ne).toFixed(2)),disabled:M+ne>x,children:"↔"})]}),a&&(t||o||i)&&f.jsx(at,{className:"[bottom:20px] [position:absolute]",style:V?{}:{opacity:.3,pointerEvents:"none"},onClick:N,children:s})]})});var Wt=d.memo(It);function jt(n,r){r===void 0&&(r={});var e=r.insertAt;if(!(typeof document>"u")){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",e==="top"&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}}var Ft=".\\[align-items\\:center\\]{align-items:center}.\\[background\\:transparent\\]{background:transparent}.\\[border\\:0\\]{border:0}.\\[bottom\\:20px\\]{bottom:20px}.\\[cursor\\:pointer\\]{cursor:pointer}.\\[display\\:flex\\]{display:flex}.\\[flex\\:1\\]{flex:1}.\\[font-family\\:inherit\\]{font-family:inherit}.\\[font-size\\:16px\\]{font-size:16px}.\\[font-size\\:18px\\]{font-size:18px}.\\[height\\:32px\\]{height:32px}.\\[height\\:40vh\\]{height:40vh}.\\[justify-content\\:center\\]{justify-content:center}.\\[margin-inline\\:auto\\]{margin-inline:auto}.\\[position\\:absolute\\]{position:absolute}.\\!\\[position\\:relative\\]{position:relative!important}.\\[width\\:100\\%\\]{width:100%}.\\[width\\:32px\\]{width:32px}.\\[width\\:60\\%\\]{width:60%}.disabled\\:\\[cursor\\:default\\]:disabled{cursor:default}.disabled\\:\\[opacity\\:20\\%\\]:disabled{opacity:20%}.\\[\\&\\~section\\:first-of-type\\]\\:\\[margin-top\\:16px\\]~section:first-of-type{margin-top:16px}.\\[\\&\\~section\\:last-of-type\\]\\:\\[margin-bottom\\:16px\\]~section:last-of-type{margin-bottom:16px}";jt(Ft,{insertAt:"top"});const kt=d.forwardRef((n,r)=>{const{quality:e=.4,fillColor:t="white",zoomSlider:o=!0,rotationSlider:i=!1,aspectSlider:a=!1,showReset:s=!1,resetText:c,aspect:l=1,minZoom:u=1,maxZoom:p=3,minAspect:h=.5,maxAspect:x=2,cropShape:v="rect",showGrid:b=!1,cropperProps:w,modalClassName:A,modalTitle:j,modalWidth:R,modalOk:P,modalCancel:M,onModalOk:Z,onModalCancel:V,modalProps:N,beforeCrop:X,children:Q}=n,O=d.useRef({});O.current.onModalOk=Z,O.current.onModalCancel=V,O.current.beforeCrop=X;const L=d.useRef(null),K=d.useCallback(g=>{var S;const C=document.createElement("canvas"),m=C.getContext("2d"),T=(((S=g==null?void 0:g.getRootNode)===null||S===void 0?void 0:S.call(g))||document).querySelector(`.${W}-media`),{width:y,height:_,x:B,y:H}=L.current.cropPixelsRef.current;if(i&&L.current.rotation!==he){const{naturalWidth:k,naturalHeight:Y}=T,ee=L.current.rotation*(Math.PI/180),te=Math.abs(Math.sin(ee)),G=Math.abs(Math.cos(ee)),I=k*G+Y*te,z=Y*G+k*te;C.width=I,C.height=z,m.fillStyle=t,m.fillRect(0,0,I,z);const ze=I/2,Ae=z/2;m.translate(ze,Ae),m.rotate(ee),m.translate(-ze,-Ae);const tt=(I-k)/2,ot=(z-Y)/2;m.drawImage(T,0,0,k,Y,tt,ot,k,Y);const rt=m.getImageData(0,0,I,z);C.width=y,C.height=_,m.putImageData(rt,-B,-H)}else C.width=y,C.height=_,m.fillStyle=t,m.fillRect(0,0,y,_),m.drawImage(T,B,H,y,_,0,0,y,_);return C},[t,i]),[F,$]=d.useState(""),me=d.useRef(),ie=d.useRef(),ae=d.useCallback(g=>se(void 0,[g],void 0,function*({beforeUpload:S,file:C,resolve:m,reject:U}){const T=C;if(typeof S!="function"){m(T);return}try{const y=yield S(C,[C]);m(y===!1?!1:y!==!0&&y||T)}catch(y){U(y)}}),[]),Pe=d.useCallback(g=>(S,C)=>new Promise((m,U)=>se(void 0,void 0,void 0,function*(){let T=S;if(typeof O.current.beforeCrop=="function")try{const _=yield O.current.beforeCrop(S,C);if(_===!1)return ae({beforeUpload:g,file:S,resolve:m,reject:U});_!==!0&&(T=_||S)}catch{return ae({beforeUpload:g,file:S,resolve:m,reject:U})}const y=new FileReader;y.addEventListener("load",()=>{typeof y.result=="string"&&$(y.result)}),y.readAsDataURL(T),me.current=()=>{var _,B;$(""),L.current.onReset();let H=!1;(B=(_=O.current).onModalCancel)===null||B===void 0||B.call(_,k=>{m(k),H=!0}),H||m(Ce.LIST_IGNORE)},ie.current=_=>se(void 0,void 0,void 0,function*(){$(""),L.current.onReset();const B=K(_.target),{type:H,name:k,uid:Y}=T;B.toBlob(ee=>se(void 0,void 0,void 0,function*(){const te=new File([ee],k,{type:H});Object.assign(te,{uid:Y}),ae({beforeUpload:g,file:te,resolve:G=>{var I,z;m(G),(z=(I=O.current).onModalOk)===null||z===void 0||z.call(I,G)},reject:G=>{var I,z;U(G),(z=(I=O.current).onModalOk)===null||z===void 0||z.call(I,G)}})}),H,e)})})),[K,e,ae]),Ve=d.useCallback(g=>{const S=Array.isArray(g)?g[0]:g,C=S.props,{beforeUpload:m,accept:U}=C,T=st(C,["beforeUpload","accept"]);return Object.assign(Object.assign({},S),{props:Object.assign(Object.assign({},T),{accept:U||"image/*",beforeUpload:Pe(m)})})},[Pe]),Ke=d.useMemo(()=>{const g={};return R!==void 0&&(g.width=R),P!==void 0&&(g.okText=P),M!==void 0&&(g.cancelText=M),g},[M,P,R]),Je=`${W}-modal${A?` ${A}`:""}`,Me=(typeof window>"u"?"":window.navigator.language)==="zh-CN",Qe=j||(Me?"编辑图片":"Edit image"),et=c||(Me?"重置":"Reset");return f.jsxs(f.Fragment,{children:[Ve(Q),F&&f.jsx(pt,Object.assign({},N,Ke,{open:!0,title:Qe,onCancel:me.current,onOk:ie.current,wrapClassName:Je,maskClosable:!1,destroyOnClose:!0,children:f.jsx(Wt,{ref:L,cropperRef:r,zoomSlider:o,rotationSlider:i,aspectSlider:a,showReset:s,resetBtnText:et,modalImage:F,aspect:l,minZoom:u,maxZoom:p,minAspect:h,maxAspect:x,cropShape:v,showGrid:b,cropperProps:w})}))]})}),Gt=n=>{const{form:r,dataIndex:e,api:t,maxCount:o=1,crop:i,defaultFile:a}=n,[s,c]=d.useState();d.useEffect(()=>{a&&(a instanceof Array?c(a.map((p,h)=>({uid:h.toString(),name:"",status:"done",url:p}))):c([{uid:"-1",name:"",status:"done",url:a}]))},[a]);const l=({fileList:p})=>{c(p),p.length!==0&&p[0].status==="done"&&(p[0].response.success?r.setFieldValue(e,p[0].response.data.fileInfo.file_id):(lt.warning(p[0].response.msg),c([])))},u=async p=>{let h=p.url;h||(h=await new Promise(b=>{const w=new FileReader;w.readAsDataURL(p.originFileObj),w.onload=()=>b(w.result)}));const x=new Image;x.src=h;const v=window.open(h);v==null||v.document.write(x.outerHTML)};return f.jsx(f.Fragment,{children:i?f.jsx(kt,{rotationSlider:!0,children:f.jsx(Ce,{maxCount:o,action:Te(t),listType:"picture-card",fileList:s,onChange:l,onPreview:u,headers:{"X-Token":localStorage.getItem("x-token"),"X-User-Token":localStorage.getItem("x-user-token")},children:"+ Upload"})}):f.jsxs(Ce,{maxCount:o,action:Te(t),listType:"picture-card",fileList:s,onChange:l,headers:{"X-Token":localStorage.getItem("x-token"),"X-User-Token":localStorage.getItem("x-user-token")},children:[f.jsx(ct,{})," 上传"]})})};export{Gt as U}; diff --git a/web/dist/assets/index-10167fe3.js b/web/dist/assets/index-10167fe3.js new file mode 100644 index 0000000000000000000000000000000000000000..ac5061e34f604cdf020addf45e0e8919b1ef627e --- /dev/null +++ b/web/dist/assets/index-10167fe3.js @@ -0,0 +1 @@ +import{Y as h,ax as v,b as P,j as t,ay as u,B as g,d as p,aM as y,a5 as T,a1 as d}from"./umi-5f6aeac9.js";import{P as j}from"./index-3fcbb702.js";import b from"./UpdatePassword-f0efdcbb.js";import{X as q}from"./index-53e65e71.js";import{U as _}from"./index-0f57638d.js";import{X as F}from"./index-109f15ec.js";import{l as w,d as A}from"./table-0fa6c309.js";import"./ActionButton-ff803f23.js";import"./index-d4ea9132.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./index-04ced7f2.js";import"./index-032ff5a9.js";import"./utils-a0a2291f.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const c="/admin",ue=()=>{const{getDictionaryData:x}=h("dictModel"),I=[{title:"用户ID",dataIndex:"id",hideInForm:!0,hideInTable:!0,colProps:{md:4}},{title:"用户ID",dataIndex:"id",readonly:!0,colProps:{md:4},hideInSearch:!0},{title:"用户名",dataIndex:"username",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:7}},{title:"昵称",dataIndex:"nickname",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:7}},{title:"性别",dataIndex:"sex",valueType:"radio",request:async()=>await x("sex"),render:(e,a)=>t.jsx(q,{value:a.sex,dict:"sex"}),colProps:{md:6}},{title:"邮箱",dataIndex:"email",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"角色",dataIndex:"group_id",valueType:"treeSelect",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},fieldProps:{fieldNames:{label:"name",value:"id",children:"children"}},request:async()=>(await w("/adminGroup/list")).data.data,colProps:{md:6}},{title:"状态",dataIndex:"status",valueType:"radioButton",valueEnum:{0:{text:"禁用",status:"Error"},1:{text:"启用",status:"Success"}},formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"手机号",dataIndex:"mobile",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"资质",dataIndex:"qualification",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"入职日期",dataIndex:"join_date",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6},renderText(e,a,s,r){return e?p.unix(e).format("YYYY-MM-DD"):void 0},renderFormItem:(e,a,s)=>{const r=s.getFieldValue("join_date"),o=r?p(r*1e3):void 0;return t.jsx("div",{children:t.jsx(y,{value:o,onChange:i=>{var n;s.setFieldValue("join_date",(n=i==null?void 0:i.unix)==null?void 0:n.call(i))}})})}},{title:"头像",dataIndex:"avatar_url",hideInSearch:!0,valueType:"avatar",hideInForm:!0,render:(e,a)=>t.jsx(T,{src:a.avatar_url})},{title:"头像",dataIndex:"avatar_id",hideInSearch:!0,valueType:"avatar",hideInTable:!0,renderFormItem:(e,a,s)=>t.jsx(_,{form:s,dataIndex:"avatar_id",api:"/admin/file.upload/image?group_id=14",defaultFile:s.getFieldValue("avatar_url"),crop:!0}),colProps:{md:12}},{valueType:"dependency",hideInTable:!0,hideInSearch:!0,name:["id"],columns:({id:e})=>e?[]:[{title:"密码",dataIndex:"password",valueType:"password",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"确认密码",dataIndex:"rePassword",valueType:"password",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}}]},{valueType:"date",title:"创建时间",hideInForm:!0,dataIndex:"create_time"}],l=v(),m=P.useRef(),f=async e=>{const a=d.loading("正在删除");if(!e){d.warning("请选择需要删除的节点");return}let s=e.map(r=>r.id);A(c+"/delete",{ids:s.join()||""}).then(r=>{var o,i;r.success?(d.success(r.msg),(i=(o=m.current)==null?void 0:o.reloadAndRest)==null||i.call(o)):d.warning(r.msg)}).finally(()=>a())};return t.jsx(F,{headerTitle:"用户列表",tableApi:c,columns:I,accessName:"admin.list",deleteShow:!1,actionRef:m,operateRender:e=>t.jsxs(t.Fragment,{children:[t.jsx(u,{accessible:l.buttonAccess("admin.list.updatePwd"),children:t.jsx(b,{record:e})}),e.id!==1?t.jsx(u,{accessible:l.buttonAccess("admin.list.delete"),children:t.jsx(j,{title:"删除",description:"你确定要删除这条数据吗?",onConfirm:()=>{f([e])},okText:"确认",cancelText:"取消",children:t.jsx(g,{type:"link",danger:!0,children:"删除"})})}):null]})})};export{ue as default}; diff --git a/web/dist/assets/index-109f15ec.js b/web/dist/assets/index-109f15ec.js new file mode 100644 index 0000000000000000000000000000000000000000..49f4fdc0589a951fa36fefa32a179e674349be1c --- /dev/null +++ b/web/dist/assets/index-109f15ec.js @@ -0,0 +1 @@ +import{e as Ee,f as Me,h as Te,R as D,i as We,b as j,o as Fe,cW as ge,c4 as Be,cX as Pe,bU as $e,bk as le,cY as _e,b3 as xe,b2 as ve,_ as K,k as ce,cZ as Ne,s as Ie,C as ze,j as a,bb as De,b6 as He,z as Oe,B as ae,a1 as Q,ax as Le,ay as oe,a0 as Xe,an as Ue}from"./umi-5f6aeac9.js";import{P as de}from"./index-3fcbb702.js";import{t as ye}from"./index-25e4c7e3.js";import{a as Ye,e as Ke,l as Ge,d as Ve}from"./table-0fa6c309.js";import{B as be}from"./index-cc6b0338.js";import{c as qe}from"./clsx-0839fdbe.js";import{R as Ze}from"./RouteContext-4a26a6ad.js";import{P as Je}from"./Table-1cf08bb2.js";D.Component;var Qe={subtree:!0,childList:!0,attributeFilter:["style","class"]};function et(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Qe;j.useEffect(function(){if(!(!Fe()||!t)){var s,i=Array.isArray(t)?t:[t];return"MutationObserver"in window&&(s=new MutationObserver(e),i.forEach(function(r){s.observe(r,n)})),function(){var r,o;(r=s)===null||r===void 0||r.takeRecords(),(o=s)===null||o===void 0||o.disconnect()}}},[n,t])}const Ce=3;function ie(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=document.createElement("canvas"),i=s.getContext("2d"),r=t*n,o=e*n;return s.setAttribute("width",`${r}px`),s.setAttribute("height",`${o}px`),i.save(),[i,s,r,o]}function tt(){function t(e,n,s,i,r,o,m,h){const[d,u,f,R]=ie(i,r,s);if(e instanceof HTMLImageElement)d.drawImage(e,0,0,f,R);else{const{color:N,fontSize:I,fontStyle:q,fontWeight:F,fontFamily:l,textAlign:b}=o,x=Number(I)*s;d.font=`${q} normal ${F} ${x}px/${r}px ${l}`,d.fillStyle=N,d.textAlign=b,d.textBaseline="top";const C=ye(e);C==null||C.forEach((z,se)=>{d.fillText(z??"",f/2,se*(x+Ce*s))})}const P=Math.PI/180*Number(n),g=Math.max(i,r),[H,ee,E]=ie(g,g,s);H.translate(E/2,E/2),H.rotate(P),f>0&&R>0&&H.drawImage(u,-f/2,-R/2);function c(N,I){const q=N*Math.cos(P)-I*Math.sin(P),F=N*Math.sin(P)+I*Math.cos(P);return[q,F]}let y=0,$=0,O=0,L=0;const M=f/2,w=R/2;[[0-M,0-w],[0+M,0-w],[0+M,0+w],[0-M,0+w]].forEach(N=>{let[I,q]=N;const[F,l]=c(I,q);y=Math.min(y,F),$=Math.max($,F),O=Math.min(O,l),L=Math.max(L,l)});const X=y+E/2,U=O+E/2,T=$-y,W=L-O,G=m*s,Y=h*s,_=(T+G)*2,te=W+Y,[ne,re]=ie(_,te);function V(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ne.drawImage(ee,X,U,T,W,N,I,T,W)}return V(),V(T+G,-W/2-Y/2),V(T+G,+W/2+Y/2),[re.toDataURL(),_/s,te/s]}return t}function nt(t){const e=D.useRef(!1),n=D.useRef(null),s=ge(t);return()=>{e.current||(e.current=!0,s(),n.current=Be(()=>{e.current=!1}))}}function rt(){const t=j.useRef([null,null]);return(n,s)=>{const i=n.map(r=>r instanceof HTMLElement||isNaN(r)?"":r);return Pe(t.current[0],i)||(t.current=[i,s()]),t.current[1]}}function st(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function at(t){return Object.keys(t).map(e=>`${st(e)}: ${t[e]};`).join(" ")}function ot(){return window.devicePixelRatio||1}const lt=(t,e)=>{let n=!1;return t.removedNodes.length&&(n=Array.from(t.removedNodes).some(s=>e(s))),t.type==="attributes"&&e(t.target)&&(n=!0),n},it={visibility:"visible !important"};function ct(t){const e=j.useRef(new Map);return[(r,o,m)=>{if(m){if(!e.current.get(m)){const d=document.createElement("div");e.current.set(m,d)}const h=e.current.get(m);h.setAttribute("style",at(Object.assign(Object.assign(Object.assign({},t),{backgroundImage:`url('${r}')`,backgroundSize:`${Math.floor(o)}px`}),it))),h.removeAttribute("class"),h.removeAttribute("hidden"),h.parentElement!==m&&m.append(h)}return e.current.get(m)},r=>{const o=e.current.get(r);o&&r&&r.removeChild(o),e.current.delete(r)},r=>Array.from(e.current.values()).includes(r)]}function fe(t,e){return t.size===e.size?t:e}const me=100,he=100,pe={position:"relative",overflow:"hidden"},ut=t=>{var e,n;const{zIndex:s=9,rotate:i=-22,width:r,height:o,image:m,content:h,font:d={},style:u,className:f,rootClassName:R,gap:P=[me,he],offset:g,children:H,inherit:ee=!0}=t,E=Object.assign(Object.assign({},pe),u),[,c]=$e(),{color:y=c.colorFill,fontSize:$=c.fontSizeLG,fontWeight:O="normal",fontStyle:L="normal",fontFamily:M="sans-serif",textAlign:w="center"}=d,[k=me,X=he]=P,U=k/2,T=X/2,W=(e=g==null?void 0:g[0])!==null&&e!==void 0?e:U,G=(n=g==null?void 0:g[1])!==null&&n!==void 0?n:T,Y=D.useMemo(()=>{const p={zIndex:s,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let v=W-U,S=G-T;return v>0&&(p.left=`${v}px`,p.width=`calc(100% - ${v}px)`,v=0),S>0&&(p.top=`${S}px`,p.height=`calc(100% - ${S}px)`,S=0),p.backgroundPosition=`${v}px ${S}px`,p},[s,W,U,G,T]),[_,te]=D.useState(),[ne,re]=D.useState(new Set),V=D.useMemo(()=>{const p=_?[_]:[];return[].concat(p,le(Array.from(ne)))},[_,ne]),N=p=>{let v=120,S=64;if(!m&&p.measureText){p.font=`${Number($)}px ${M}`;const Z=ye(h),J=Z.map(B=>{const A=p.measureText(B);return[A.width,A.fontBoundingBoxAscent+A.fontBoundingBoxDescent]});v=Math.ceil(Math.max.apply(Math,le(J.map(B=>B[0])))),S=Math.ceil(Math.max.apply(Math,le(J.map(B=>B[1]))))*Z.length+(Z.length-1)*Ce}return[r??v,o??S]},I=tt(),q=rt(),[F,l]=D.useState(null),x=nt(()=>{const v=document.createElement("canvas").getContext("2d");if(v){const S=ot(),[Z,J]=N(v),B=A=>{const ue=[A||"",i,S,Z,J,{color:y,fontSize:$,fontStyle:L,fontWeight:O,fontFamily:M,textAlign:w},k,X],je=q(ue,()=>I.apply(void 0,ue)),[Re,Ae]=je;l([Re,Ae])};if(m){const A=new Image;A.onload=()=>{B(A)},A.onerror=()=>{B(h)},A.crossOrigin="anonymous",A.referrerPolicy="no-referrer",A.src=m}else B(h)}}),[C,z,se]=ct(Y);j.useEffect(()=>{F&&V.forEach(p=>{C(F[0],F[1],p)})},[F,V]);const Se=ge(p=>{p.forEach(v=>{if(lt(v,se))x();else if(v.target===_&&v.attributeName==="style"){const S=Object.keys(pe);for(let Z=0;Z({add:p=>{re(v=>{const S=new Set(v);return S.add(p),fe(v,S)})},remove:p=>{z(p),re(v=>{const S=new Set(v);return S.delete(p),fe(v,S)})}}),[]),ke=ee?D.createElement(_e.Provider,{value:we},H):H;return D.createElement("div",{ref:te,className:xe(f,R),style:E},ke)},dt=ut;var ft=function(e){return ce({},e.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:Ne(e.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(e.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:e.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:e.colorText},"&-right":{color:e.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function mt(t){return ve("ProLayoutFooterToolbar",function(e){var n=K(K({},e),{},{componentCls:".".concat(t)});return[ft(n)]})}function ht(t,e){var n=e.stylish;return ve("ProLayoutFooterToolbarStylish",function(s){var i=K(K({},s),{},{componentCls:".".concat(t)});return n?[ce({},"".concat(i.componentCls),n==null?void 0:n(i))]:[]})}var pt=["children","className","extra","portalDom","style","renderContent"],gt=function(e){var n=e.children,s=e.className,i=e.extra,r=e.portalDom,o=r===void 0?!0:r,m=e.style,h=e.renderContent,d=Ie(e,pt),u=j.useContext(ze.ConfigContext),f=u.getPrefixCls,R=u.getTargetContainer,P=e.prefixCls||f("pro"),g="".concat(P,"-footer-bar"),H=mt(g),ee=H.wrapSSR,E=H.hashId,c=j.useContext(Ze),y=j.useMemo(function(){var k=c.hasSiderMenu,X=c.isMobile,U=c.siderWidth;if(k)return U?X?"100%":"calc(100% - ".concat(U,"px)"):"100%"},[c.collapsed,c.hasSiderMenu,c.isMobile,c.siderWidth]),$=j.useMemo(function(){return typeof window>"u"||typeof document>"u"?null:(R==null?void 0:R())||document.body},[]),O=ht("".concat(g,".").concat(g,"-stylish"),{stylish:e.stylish}),L=a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"".concat(g,"-left ").concat(E).trim(),children:i}),a.jsx("div",{className:"".concat(g,"-right ").concat(E).trim(),children:n})]});j.useEffect(function(){return!c||!(c!=null&&c.setHasFooterToolbar)?function(){}:(c==null||c.setHasFooterToolbar(!0),function(){var k;c==null||(k=c.setHasFooterToolbar)===null||k===void 0||k.call(c,!1)})},[]);var M=a.jsx("div",K(K({className:xe(s,E,g,ce({},"".concat(g,"-stylish"),!!e.stylish)),style:K({width:y},m)},De(d,["prefixCls"])),{},{children:h?h(K(K(K({},e),c),{},{leftWidth:y}),L):L})),w=!He()||!o||!$?M:Oe.createPortal(M,$,g);return O.wrapSSR(ee(a.jsx(D.Fragment,{children:w},g)))};function xt(t){const{columns:e,text:n="新建",api:s,tableRef:i,handleAdd:r,addBefore:o,colProps:m={span:12}}=t,h=async d=>{if(r)return r(d).finally(()=>{var u,f;(f=(u=i.current)==null?void 0:u.reload)==null||f.call(u)});{const u=Q.loading("正在添加");return Ye(s,Object.assign({},d)).then(f=>f.success?(Q.success("添加成功"),o==null||o(),!0):!1).finally(()=>{var f,R;u(),(R=(f=i.current)==null?void 0:f.reload)==null||R.call(f)})}};return a.jsx(be,{rowProps:{gutter:[16,16]},title:n,trigger:a.jsx(ae,{type:"primary",children:n}),layoutType:"ModalForm",colProps:m,modalProps:{destroyOnClose:!0},initialValues:{},grid:!0,onFinish:h,columns:e,style:{maxHeight:"calc(100vh - 250px)",overflow:"auto"}})}function vt(t){const{columns:e,values:n,id:s,api:i,tableRef:r,handleUpdate:o}=t,m=async h=>{if(o)return o(Object.assign({id:s},h)).finally(()=>{var d,u;(u=(d=r.current)==null?void 0:d.reloadAndRest)==null||u.call(d)});{const d=Q.loading("正在更新");return Ke(i,Object.assign({id:s},h)).then(u=>u.success?(Q.success("更新成功!"),!0):!1).finally(()=>{var u,f;(f=(u=r.current)==null?void 0:u.reloadAndRest)==null||f.call(u),d()})}};return a.jsx(be,{trigger:a.jsx(ae,{type:"link",children:" 编辑"}),title:"编辑",layoutType:"ModalForm",rowProps:{gutter:[16,16]},colProps:{span:12},grid:!0,initialValues:n,onFinish:m,columns:e,style:{maxHeight:"calc(100vh - 250px)",overflowY:"auto"}})}function At(t){const{className:e,tableApi:n,apiMap:s,defaultParamsMap:i,columns:r,addShow:o,addText:m,addApi:h,deleteShow:d,editShow:u,searchConfig:f,rowSelectionShow:R,operateRender:P,operateWidth:g,operateShow:H,handleUpdate:ee,handleAdd:E,addBefore:c,accessName:y,footerBarButton:$,colProps:O}=t,[L,M]=j.useState([]),w=j.useRef(),[k,X]=j.useState([]),[U,T]=j.useState([]),[W,G]=j.useState([]),Y=Le();j.useImperativeHandle(t.actionRef,()=>w.current);const _=l=>{let b=[];return l.forEach(x=>{b.push(x.id),x.children&&(b=b.concat(_(x.children)))}),b},te=async l=>{if(!l){Q.warning("请选择需要删除的节点");return}const b=Q.loading("正在删除");let x=l.map(C=>C.id);Ve(n+"/delete",{ids:x.join()||""}).then(C=>{var z,se;C.success?(Q.success("删除成功"),(se=(z=w.current)==null?void 0:z.reloadAndRest)==null||se.call(z)):Q.warning(C.msg)}).finally(()=>b())},ne=l=>a.jsx(oe,{accessible:y?Y.buttonAccess(y+".delete"):!0,children:a.jsx(de,{title:"Delete the task",description:"你确定要删除这条数据吗?",onConfirm:()=>{te([l])},okText:"确认",cancelText:"取消",children:a.jsx(ae,{type:"link",danger:!0,children:"删除"})})}),re=l=>a.jsx(oe,{accessible:y?Y.buttonAccess(y+".edit"):!0,children:a.jsx(vt,{values:l,columns:r,id:l.id,api:n+"/edit",tableRef:w,handleUpdate:ee})}),V=()=>a.jsx(oe,{accessible:y?Y.buttonAccess(y+".add"):!0,children:a.jsx(xt,{columns:r,api:h||`${n}/add`,text:m,tableRef:w,handleAdd:E,addBefore:c,colProps:O})}),N=()=>({title:"操作",dataIndex:"option",valueType:"option",fixed:"right",width:g,render:(b,x)=>a.jsxs(Xe,{split:a.jsx(Ue,{type:"vertical"}),size:0,children:[u!==!1&&re(x),d!==!1&&ne(x),P!==void 0&&P(x)]})}),I=(l,b)=>{let x=[o!==!1?V():""];return W.length&&W.length>L.length&&x.push(a.jsxs(a.Fragment,{children:[a.jsx(ae,{onClick:()=>T(W),children:"展开全部"}),a.jsx(ae,{onClick:()=>T([]),children:"折叠全部"})]})),t.toolBarRender&&x.push(t.toolBarRender(l,b)),x},q=()=>(k==null?void 0:k.length)>0&&a.jsx(gt,{extra:a.jsxs("div",{children:["已选择"," ",a.jsx("a",{style:{fontWeight:600},children:k.length})," ","项  "]}),children:a.jsxs(oe,{accessible:y?Y.buttonAccess(y+".delete"):!0,children:[a.jsx(de,{title:"删除",description:"你确定要删除选择项吗?",onConfirm:async()=>{var l,b;await te(k),X([]),(b=(l=w.current)==null?void 0:l.reloadAndRest)==null||b.call(l)},children:a.jsx(ae,{danger:!0,children:"批量删除"})}),$]})}),F={headerTitle:"查询表格",rowKey:"id",search:f,expandable:{expandedRowKeys:U,onExpandedRowsChange:l=>{T([...l])}},request:async(l,b,x)=>{const{data:C,success:z}=await Ge((s==null?void 0:s.list)??`${n}/list`,{...i==null?void 0:i.list,...l,sorter:b,filter:x});return M(C.data),G(_(C.data)),{data:(C==null?void 0:C.data)||[],success:z,total:C==null?void 0:C.total}},rowSelection:R!==!1?{onChange:(l,b)=>X(b)}:void 0,tableStyle:{minHeight:500}};return a.jsxs(dt,{children:[a.jsx(Je,{scroll:{x:"max-content"},...Object.assign(F,t),columns:H!==!1?[...r,N()]:r,toolBarRender:I,cardBordered:!0,actionRef:w,search:{defaultCollapsed:!1,defaultFormItemsNumber:6},className:qe("xin-table",e),size:"small"}),q()]})}export{At as X}; diff --git a/web/dist/assets/index-120e4de8.js b/web/dist/assets/index-120e4de8.js new file mode 100644 index 0000000000000000000000000000000000000000..277d9225dae39fc0c9a07f545c8e18c325e69fbe --- /dev/null +++ b/web/dist/assets/index-120e4de8.js @@ -0,0 +1 @@ +import{R as d,s as m,j as P,G as l,_ as o}from"./umi-5f6aeac9.js";var F=["fieldProps","min","proFieldProps","max"],n=function(r,i){var e=r.fieldProps,s=r.min,t=r.proFieldProps,a=r.max,p=m(r,F);return P.jsx(l,o({valueType:"digit",fieldProps:o({min:s,max:a},e),ref:i,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:t},p))},f=d.forwardRef(n);const c=f;export{c as P}; diff --git a/web/dist/assets/index-13b1a3c4.js b/web/dist/assets/index-13b1a3c4.js deleted file mode 100644 index b8d6cfeddc3ed5290e7d5d444df8dbe994d47084..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-13b1a3c4.js +++ /dev/null @@ -1 +0,0 @@ -import{ao as B,h as S,R,k as E,j as e,a1 as I,_ as d,a2 as L,r as w,i as G,B as N,P as p,W as r,ar as C,b1 as D,aa as W}from"./umi-2ee4055f.js";import{P}from"./index-8ec65540.js";import{P as f}from"./ProCard-cee316ff.js";import{P as A}from"./Table-3849f584.js";import{P as l}from"./index-37bb2b91.js";import{P as j}from"./index-ca47b438.js";import{P as g}from"./index-25021ef3.js";import{P as H}from"./index-8a5a2994.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./Table-0e254f81.js";import"./styleChecker-0860b7b3.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./index-275c5384.js";import"./index-e10ebcfa.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./index-8b7fb289.js";import"./index-ea2ed5fc.js";import"./ActionButton-a9da0b15.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";var J=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],M=R.forwardRef(function(a,o){var i=a.fieldProps,s=a.options,y=a.radioType,m=a.layout,u=a.proFieldProps,c=a.valueEnum,h=E(a,J);return e.jsx(I,d(d({valueType:y==="button"?"radioButton":"radio",ref:o,valueEnum:L(c,void 0)},h),{},{fieldProps:d({options:s,layout:m},i),proFieldProps:u,filedConfig:{customLightMode:!0}}))}),Y=R.forwardRef(function(a,o){var i=a.fieldProps,s=a.children;return e.jsx(S,d(d({},i),{},{ref:o,children:s}))}),$=B(Y,{valuePropName:"checked",ignoreWidth:!0}),b=$;b.Group=M;b.Button=S.Button;b.displayName="ProFormComponent";const x=b,q=["password","money","textarea","option","date","dateWeek","dateMonth","dateQuarter","dateYear","dateRange","dateTimeRange","dateTime","time","timeRange","text","select","checkbox","rate","radio","radioButton","index","indexBorder","progress","percent","digit","second","avatar","code","switch","fromNow","image","jsonCode"],F=[{title:"Name",dataIndex:"name"},{title:"time",dataIndex:"time",valueType:"date"},{title:"Address",dataIndex:"address",valueType:"select",filters:!0,onFilter:!0,valueEnum:{london:{text:"伦敦"},"New York":{text:"纽约"}}},{title:"Action",key:"action",sorter:!0,valueType:"option",render:()=>[e.jsx("a",{children:"Delete"},"delete"),e.jsxs("a",{className:"ant-dropdown-link",children:["More actions ",e.jsx(W,{})]},"link")]}],O=a=>{if(a<1)return[];const o=[];for(let i=1;i<=a;i+=1)o.push({key:i,name:"John Brown",age:i+10,time:1661136793649+i*1e3,address:i%2===0?"london":"New York",description:`My name is John Brown, I am ${i}2 years old, living in New York No. ${i} Lake Park.`});return o},T={bordered:!0,loading:!1,columns:F,pagination:{show:!0,pageSize:5,current:1,total:100},size:"small",expandable:!1,headerTitle:"高级表格",tooltip:"高级表格 tooltip",showHeader:!0,footer:!0,rowSelection:{},scroll:!1,hasData:!0,tableLayout:void 0,toolBarRender:!0,search:{show:!0,span:12,collapseRender:!0,labelWidth:80,filterType:"query",layout:"horizontal"},options:{show:!0,density:!0,fullScreen:!0,setting:!0}},ze=()=>{var m,u,c,h,z,v;const a=w.useRef(),[o,i]=w.useState(T),s=G(async t=>{i(t)},20),y=(m=o.columns||F)==null?void 0:m.map(t=>({...t,ellipsis:o.ellipsis}));return e.jsxs(f,{split:"vertical",bordered:!0,title:"高级表格",headerBordered:!0,style:{height:"80vh",overflow:"hidden"},children:[e.jsx(f,{style:{height:"100vh",overflow:"auto"},children:e.jsx(A,{...o,formRef:a,pagination:(u=o.pagination)!=null&&u.show?o.pagination:{pageSize:5},search:(c=o.search)!=null&&c.show?o.search:{},expandable:o.expandable&&{expandedRowRender:t=>e.jsx("p",{children:t.description})},options:(h=o.options)!=null&&h.show?o.options:!1,toolBarRender:o!=null&&o.toolBarRender?()=>[e.jsx(N,{type:"primary",children:"刷新"},"refresh")]:!1,footer:o.footer?()=>"Here is footer":!1,headerTitle:o.headerTitle,columns:y,dataSource:O(((z=o.pagination)==null?void 0:z.total)||10),scroll:o.scroll})}),e.jsx(p,{layout:"inline",initialValues:T,submitter:!1,colon:!1,onValuesChange:(t,n)=>s.run(n),children:e.jsx(f,{colSpan:"470px",style:{height:"100vh",overflow:"auto",top:0,right:0,width:470},tabs:{items:[{label:"基本配置",key:"tab1",children:e.jsxs(e.Fragment,{children:[e.jsxs(p.Group,{title:"表格配置",size:0,collapsible:!0,direction:"horizontal",labelLayout:"twoLine",children:[e.jsx(l,{fieldProps:{size:"small"},label:"边框",tooltip:"bordered",name:"bordered"}),e.jsx(x.Group,{tooltip:'size="middle"',radioType:"button",fieldProps:{size:"small"},label:"尺寸",options:[{label:"大",value:"default"},{label:"中",value:"middle"},{label:"小",value:"small"}],name:"size"}),e.jsx(l,{fieldProps:{size:"small"},label:"加载中",tooltip:"loading",name:"loading"}),e.jsx(l,{fieldProps:{size:"small"},label:"显示标题",tooltip:"showHeader",name:"showHeader"}),e.jsx(l,{fieldProps:{size:"small"},label:"页脚",tooltip:"footer",name:"footer"}),e.jsx(l,{fieldProps:{size:"small"},label:"支持展开",tooltip:"expandable",name:"expandable"}),e.jsx(l,{fieldProps:{size:"small"},label:"行选择",tooltip:"rowSelection",name:"rowSelection"})]}),e.jsxs(p.Group,{size:0,collapsible:!0,direction:"horizontal",labelLayout:"twoLine",tooltip:"toolBarRender={false}",title:"工具栏",extra:e.jsx(l,{fieldProps:{size:"small"},noStyle:!0,name:"toolBarRender"}),children:[e.jsx(r,{fieldProps:{size:"small"},label:"表格标题",name:"headerTitle",tooltip:"headerTitle={false}"}),e.jsx(r,{fieldProps:{size:"small"},label:"表格的tooltip",name:"tooltip",tooltip:"tooltip={false}"}),e.jsx(l,{fieldProps:{size:"small"},label:"Icon 显示",name:["options","show"],tooltip:"options={false}"}),e.jsx(l,{fieldProps:{size:"small"},label:"密度 Icon",name:["options","density"],tooltip:"options={{ density:false }}"}),e.jsx(l,{fieldProps:{size:"small"},label:"keyWords",name:["options","search"],tooltip:"options={{ search:'keyWords' }}"}),e.jsx(l,{label:"全屏 Icon",fieldProps:{size:"small"},name:["options","fullScreen"],tooltip:"options={{ fullScreen:false }}"}),e.jsx(l,{label:"列设置 Icon",fieldProps:{size:"small"},tooltip:"options={{ setting:false }}",name:["options","setting"]})]})]})},{label:"表单配置",key:"tab3",children:e.jsxs(p.Group,{title:"查询表单",size:0,collapsible:!0,tooltip:"search={false}",direction:"horizontal",labelLayout:"twoLine",extra:e.jsx(l,{fieldProps:{size:"small"},noStyle:!0,name:["search","show"]}),children:[e.jsx(r,{label:"查询按钮文案",fieldProps:{size:"small"},tooltip:'search={{searchText:"查询"}}',name:["search","searchText"]}),e.jsx(r,{label:"重置按钮文案",fieldProps:{size:"small"},tooltip:'search={{resetText:"重置"}}',name:["search","resetText"]}),e.jsx(l,{fieldProps:{size:"small"},label:"收起按钮",tooltip:"search={{collapseRender:false}}",name:["search","collapseRender"]}),e.jsx(l,{fieldProps:{size:"small"},label:"表单收起",name:["search","collapsed"],tooltip:"search={{collapsed:false}}"}),e.jsx(j,{fieldProps:{size:"small"},tooltip:"search={{span:8}}",options:[{label:"24",value:24},{label:"12",value:12},{label:"8",value:8},{label:"6",value:6}],label:"表单栅格",name:["search","span"]}),e.jsx(x.Group,{radioType:"button",fieldProps:{size:"small"},name:["search","layout"],tooltip:`search={{layout:"${(v=o.search)==null?void 0:v.layout}"}}`,options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}],label:"表单布局"}),e.jsx(x.Group,{radioType:"button",fieldProps:{size:"small"},name:["search","filterType"],tooltip:'search={{filterType:"light"}}',options:[{label:"默认",value:"query"},{label:"轻量",value:"light"}],label:"表单类型"})]})},{label:"数据配置",key:"tab2",children:e.jsxs(p.Group,{title:"分页器",size:0,collapsible:!0,tooltip:"pagination={}",direction:"horizontal",labelLayout:"twoLine",extra:e.jsx(l,{fieldProps:{size:"small"},noStyle:!0,name:["pagination","show"]}),children:[e.jsx(x.Group,{tooltip:'pagination={size:"middle"}',radioType:"button",fieldProps:{size:"small"},label:"尺寸",options:[{label:"默认",value:"default"},{label:"小",value:"small"}],name:["pagination","size"]}),e.jsx(g,{fieldProps:{size:"small"},label:"页码",tooltip:"pagination={{ current:10 }}",name:["pagination","current"]}),e.jsx(g,{fieldProps:{size:"small"},label:"每页数量",tooltip:"pagination={{ pageSize:10 }}",name:["pagination","pageSize"]}),e.jsx(g,{fieldProps:{size:"small"},label:"数据总数",tooltip:"pagination={{ total:100 }}",name:["pagination","total"]})]})},{label:"列配置",key:"tab4",children:e.jsxs(C,{name:"columns",itemRender:({listDom:t,action:n})=>e.jsxs(f,{bordered:!0,style:{marginBlockEnd:8,position:"relative"},bodyStyle:{padding:8,paddingInlineEnd:16,paddingBlockStart:16},children:[e.jsx("div",{style:{position:"absolute",top:-4,right:2},children:n}),t]}),children:[e.jsx(r,{rules:[{required:!0}],name:"title",label:"标题"}),e.jsxs(P,{style:{marginBlockStart:8},children:[e.jsx(l,{label:"过长省略",name:"ellipsis"}),e.jsx(l,{label:"复制按钮",name:"copyable"})]}),e.jsxs(P,{style:{marginBlockStart:8},size:8,children:[e.jsx(j,{label:"dataIndex",width:"xs",name:"dataIndex",valueEnum:{age:"age",address:"address",name:"name",time:"time",description:"string"}}),e.jsx(j,{width:"xs",label:"值类型",name:"valueType",fieldProps:{onChange:()=>{var t;(t=a.current)==null||t.resetFields()}},options:q.map(t=>({label:t,value:t}))})]}),e.jsx(P,{style:{marginBlockStart:8},size:8,children:e.jsx(r,{width:"xs",label:"列提示",name:"tooltip"})}),e.jsx(D,{name:["valueType","valueEnum"],children:({valueType:t,valueEnum:n})=>t!=="select"?null:e.jsx(H,{formItemProps:{style:{marginBlockStart:8}},fieldProps:{value:JSON.stringify(n)},normalize:k=>JSON.parse(k),label:"数据枚举",name:"valueEnum"})})]})}]}})})]})};export{ze as default}; diff --git a/web/dist/assets/index-275c5384.js b/web/dist/assets/index-13cae3f4.js similarity index 98% rename from web/dist/assets/index-275c5384.js rename to web/dist/assets/index-13cae3f4.js index 9f13e96172f905e6a3843db786b8861b688fde28..e4e77e1137f142b845ec3f43b45d6fefffee8060 100644 --- a/web/dist/assets/index-275c5384.js +++ b/web/dist/assets/index-13cae3f4.js @@ -1,4 +1,4 @@ -import{g,m as $,a as h,u as a,c as t,t as c}from"./umi-2ee4055f.js";const p=i=>{const{antCls:r,componentCls:d,headerHeight:o,headerPadding:e,tabsMarginBottom:n}=i;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${a(e)}`,color:i.colorTextHeading,fontWeight:i.fontWeightStrong,fontSize:i.headerFontSize,background:i.headerBg,borderBottom:`${a(i.lineWidth)} ${i.lineType} ${i.colorBorderSecondary}`,borderRadius:`${a(i.borderRadiusLG)} ${a(i.borderRadiusLG)} 0 0`},t()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},c),{[` +import{g,m as $,a as h,u as a,c as t,t as c}from"./umi-5f6aeac9.js";const p=i=>{const{antCls:r,componentCls:d,headerHeight:o,headerPadding:e,tabsMarginBottom:n}=i;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${a(e)}`,color:i.colorTextHeading,fontWeight:i.fontWeightStrong,fontSize:i.headerFontSize,background:i.headerBg,borderBottom:`${a(i.lineWidth)} ${i.lineType} ${i.colorBorderSecondary}`,borderRadius:`${a(i.borderRadiusLG)} ${a(i.borderRadiusLG)} 0 0`},t()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},c),{[` > ${d}-typography, > ${d}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${r}-tabs-top`]:{clear:"both",marginBottom:n,color:i.colorText,fontWeight:"normal",fontSize:i.fontSize,"&-bar":{borderBottom:`${a(i.lineWidth)} ${i.lineType} ${i.colorBorderSecondary}`}}})},b=i=>{const{cardPaddingBase:r,colorBorderSecondary:d,cardShadow:o,lineWidth:e}=i;return{width:"33.33%",padding:r,border:0,borderRadius:0,boxShadow:` diff --git a/web/dist/assets/index-15df7b01.js b/web/dist/assets/index-15df7b01.js deleted file mode 100644 index e0a7306b9e4c57a33cf7972916eb77cff9ea4cc0..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-15df7b01.js +++ /dev/null @@ -1 +0,0 @@ -import{bk as de,aU as ce,_ as P,K as r,j as i,ae as oe,aV as o,bl as se,r as m,k as ae,C as re,b8 as ue,o as ie,l as Y,R as ve,b5 as he,bm as fe,bn as ge,A as Ce}from"./umi-2ee4055f.js";import{A as be}from"./index-63e0f416.js";var Z=function(e){return{backgroundColor:e.colorPrimaryBg,borderColor:e.colorPrimary}},V=function(e){return r({backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},e.componentCls,{"&-description":{color:e.colorTextDisabled},"&-title":{color:e.colorTextDisabled},"&-avatar":{opacity:"0.25"}})};new de("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}});var xe=function(e){var h;return r({},e.componentCls,(h={position:"relative",display:"inline-block",width:"320px",marginInlineEnd:"16px",marginBlockEnd:"16px",color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,verticalAlign:"top",backgroundColor:e.colorBgContainer,borderRadius:e.borderRadius,overflow:"auto",cursor:"pointer",transition:"all 0.3s","&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,opacity:0,transition:"all 0.3s "+e.motionEaseInOut,borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px"),content:"''"},"&:last-child":{marginInlineEnd:0},"& + &":{marginInlineStart:"0 !important"},"&-bordered":{border:"".concat(e.lineWidth,"px solid ").concat(e.colorBorder)},"&-group":{display:"inline-block","&-sub-check-card":{display:"flex",flexDirection:"column",gap:"8px","&-title":{cursor:"pointer",paddingBlock:e.paddingXS,display:"flex",gap:4,alignItems:"center"},"&-panel":{visibility:"initial",transition:"all 0.3s",opacity:1,"&-collapse":{display:"none",visibility:"hidden",opacity:0}}}}},r(r(r(r(r(r(r(r(r(r(h,"".concat(e.componentCls,"-loading"),{overflow:"hidden",userSelect:"none","&-content":{padding:e.paddingMD}}),"&:focus",Z(e)),"&-checked",P(P({},Z(e)),{},{"&:after":{opacity:1,border:"".concat(e.borderRadius+4,"px solid ").concat(e.colorPrimary),borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px")}})),"&-disabled",V(e)),"&[disabled]",V(e)),"&-checked&-disabled",{"&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"".concat(e.borderRadius+4,"px solid ").concat(e.colorTextDisabled),borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px"),content:"''"}}),"&-lg",{width:440}),"&-sm",{width:212}),"&-cover",{paddingInline:e.paddingXXS,paddingBlock:e.paddingXXS,img:{width:"100%",height:"100%",overflow:"hidden",borderRadius:e.borderRadius}}),"&-content",{display:"flex",paddingInline:e.paddingSM,paddingBlock:e.padding}),r(r(r(r(r(r(r(r(h,"&-body",{paddingInline:e.paddingSM,paddingBlock:e.padding}),"&-avatar-header",{display:"flex",alignItems:"center"}),"&-avatar",{paddingInlineEnd:8}),"&-detail",{overflow:"hidden",width:"100%","> div:not(:last-child)":{marginBlockEnd:4}}),"&-header",{display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,"&-left":{display:"flex",alignItems:"center",gap:e.sizeSM,minWidth:0}}),"&-title",{overflow:"hidden",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSize,whiteSpace:"nowrap",textOverflow:"ellipsis",display:"flex",alignItems:"center",justifyContent:"space-between","&-with-ellipsis":{display:"inline-block"}}),"&-description",{color:e.colorTextSecondary}),"&:not(".concat(e.componentCls,"-disabled)"),{"&:hover":{borderColor:e.colorPrimary}})))};function le(x){return ce("CheckCard",function(e){var h=P(P({},e),{},{componentCls:".".concat(x)});return[xe(h)]})}var me=["prefixCls","className","style","options","loading","multiple","bordered","onChange"],Se=function(e){var h=e.prefixCls,S=e.hashId;return i.jsx("div",{className:o("".concat(h,"-loading-content"),S),children:i.jsx(se,{loading:!0,active:!0,paragraph:{rows:4},title:!1})})},ne=m.createContext(null),ye=function(e){var h=m.useState(!1),S=Y(h,2),p=S[0],j=S[1],a=fe.useToken(),I=a.hashId,y="".concat(e.prefix,"-sub-check-card");return i.jsxs("div",{className:o(y,I),children:[i.jsxs("div",{className:o("".concat(y,"-title"),I),onClick:function(){j(!p)},children:[i.jsx(ge,{style:{transform:"rotate(".concat(p?90:0,"deg)"),transition:"transform 0.3s"}}),e.title]}),i.jsx("div",{className:o("".concat(y,"-panel"),I,r({},"".concat(y,"-panel-collapse"),p)),children:e.children})]})},pe=function(e){var h=e.prefixCls,S=e.className,p=e.style,j=e.options,a=j===void 0?[]:j,I=e.loading,y=I===void 0?!1:I,$=e.multiple,B=$===void 0?!1:$,O=e.bordered,q=O===void 0?!0:O;e.onChange;var N=ae(e,me),w=m.useContext(re.ConfigContext),z=m.useCallback(function(){return a==null?void 0:a.map(function(v){return typeof v=="string"?{title:v,value:v}:v})},[a]),T=w.getPrefixCls("pro-checkcard",h),M=le(T),H=M.wrapSSR,U=M.hashId,X="".concat(T,"-group"),u=ue(N,["children","defaultValue","value","disabled","size"]),l=ie(e.defaultValue,{value:e.value,onChange:e.onChange}),A=Y(l,2),E=A[0],d=A[1],D=m.useRef(new Map),L=function(s){var c;(c=D.current)===null||c===void 0||c.set(s,!0)},G=function(s){var c;(c=D.current)===null||c===void 0||c.delete(s)},F=function(s){if(!B){var c;c=E,c===s.value?c=void 0:c=s.value,d==null||d(c)}if(B){var g,n=[],b=E,R=b==null?void 0:b.includes(s.value);n=he(b||[]),R||n.push(s.value),R&&(n=n.filter(function(t){return t!==s.value}));var k=z(),C=(g=n)===null||g===void 0||(g=g.filter(function(t){return D.current.has(t)}))===null||g===void 0?void 0:g.sort(function(t,f){var _=k.findIndex(function(Q){return Q.value===t}),J=k.findIndex(function(Q){return Q.value===f});return _-J});d(C)}},W=m.useMemo(function(){if(y)return new Array(a.length||ve.Children.toArray(e.children).length||1).fill(0).map(function(c,g){return i.jsx(ee,{loading:!0},g)});if(a&&a.length>0){var v=E,s=function c(g){return g.map(function(n){var b;if(n.children&&n.children.length>0){var R,k;return i.jsx(ye,{title:n.title,prefix:X,children:c(n.children)},((R=n.value)===null||R===void 0?void 0:R.toString())||((k=n.title)===null||k===void 0?void 0:k.toString()))}return i.jsx(ee,{disabled:n.disabled,size:(b=n.size)!==null&&b!==void 0?b:e.size,value:n.value,checked:B?v==null?void 0:v.includes(n.value):v===n.value,onChange:n.onChange,title:n.title,avatar:n.avatar,description:n.description,cover:n.cover},n.value.toString())})};return s(z())}return e.children},[z,y,B,a,e.children,e.size,E]),K=o(X,S,U);return H(i.jsx(ne.Provider,{value:{toggleOption:F,bordered:q,value:E,disabled:e.disabled,size:e.size,loading:e.loading,multiple:e.multiple,registerValue:L,cancelValue:G},children:i.jsx("div",P(P({className:K,style:p},u),{},{children:W}))}))};const je=function(x){return i.jsx(oe,{needDeps:!0,children:i.jsx(pe,P({},x))})};var Ie=["prefixCls","className","avatar","title","description","cover","extra","style"],te=function(e){var h=ie(e.defaultChecked||!1,{value:e.checked,onChange:e.onChange}),S=Y(h,2),p=S[0],j=S[1],a=m.useContext(ne),I=m.useContext(re.ConfigContext),y=I.getPrefixCls,$=function(t){var f,_;e==null||(f=e.onClick)===null||f===void 0||f.call(e,t);var J=!p;a==null||(_=a.toggleOption)===null||_===void 0||_.call(a,{value:e.value}),j==null||j(J)},B=function(t){return t==="large"?"lg":t==="small"?"sm":""};m.useEffect(function(){var C;return a==null||(C=a.registerValue)===null||C===void 0||C.call(a,e.value),function(){var t;return a==null||(t=a.cancelValue)===null||t===void 0?void 0:t.call(a,e.value)}},[e.value]);var O=e.prefixCls,q=e.className,N=e.avatar,w=e.title,z=e.description,T=e.cover,M=e.extra,H=e.style,U=H===void 0?{}:H,X=ae(e,Ie),u=P({},X),l=y("pro-checkcard",O),A=le(l),E=A.wrapSSR,d=A.hashId,D=function(t,f){return i.jsx("div",{className:o("".concat(t,"-cover"),d),children:typeof f=="string"?i.jsx("img",{src:f,alt:"checkcard"}):f})};u.checked=p;var L=!1;if(a){var G;u.disabled=e.disabled||a.disabled,u.loading=e.loading||a.loading,u.bordered=e.bordered||a.bordered,L=a.multiple;var F=a.multiple?(G=a.value)===null||G===void 0?void 0:G.includes(e.value):a.value===e.value;u.checked=u.loading?!1:F,u.size=e.size||a.size}var W=u.disabled,K=W===void 0?!1:W,v=u.size,s=u.loading,c=u.bordered,g=c===void 0?!0:c,n=u.checked,b=B(v),R=o(l,q,d,r(r(r(r(r(r(r({},"".concat(l,"-loading"),s),"".concat(l,"-").concat(b),b),"".concat(l,"-checked"),n),"".concat(l,"-multiple"),L),"".concat(l,"-disabled"),K),"".concat(l,"-bordered"),g),"".concat(l,"-ghost"),e.ghost)),k=m.useMemo(function(){if(s)return i.jsx(Se,{prefixCls:l||"",hashId:d});if(T)return D(l||"",T);var C=N?i.jsx("div",{className:o("".concat(l,"-avatar"),d),children:typeof N=="string"?i.jsx(Ce,{size:48,shape:"square",src:N}):N}):null,t=(w??M)!=null&&i.jsxs("div",{className:o("".concat(l,"-header"),d),children:[i.jsxs("div",{className:o("".concat(l,"-header-left"),d),children:[i.jsx("div",{className:o("".concat(l,"-title"),d,r({},"".concat(l,"-title-with-ellipsis"),typeof w=="string")),children:w}),e.subTitle?i.jsx("div",{className:o("".concat(l,"-subTitle"),d),children:e.subTitle}):null]}),M&&i.jsx("div",{className:o("".concat(l,"-extra"),d),children:M})]}),f=z?i.jsx("div",{className:o("".concat(l,"-description"),d),children:z}):null,_=o("".concat(l,"-content"),d,r({},"".concat(l,"-avatar-header"),C&&t&&!f));return i.jsxs("div",{className:_,children:[C,t||f?i.jsxs("div",{className:o("".concat(l,"-detail"),d),children:[t,f]}):null]})},[N,s,T,z,M,d,l,e.subTitle,w]);return E(i.jsxs("div",{className:R,style:U,onClick:function(t){!s&&!K&&$(t)},onMouseEnter:e.onMouseEnter,children:[k,e.children?i.jsx("div",{className:o("".concat(l,"-body"),d),style:e.bodyStyle,children:e.children}):null,e.actions?i.jsx(be,{actions:e.actions,prefixCls:l}):null]}))};te.Group=je;const ee=te;export{ee as C}; diff --git a/web/dist/assets/index-168af0e9.js b/web/dist/assets/index-168af0e9.js new file mode 100644 index 0000000000000000000000000000000000000000..2ddaa23cc1688b5c0fe0c4ea49f07e260d0794e8 --- /dev/null +++ b/web/dist/assets/index-168af0e9.js @@ -0,0 +1 @@ +import{a0 as D,ad as q,au as K,R as k,s as G,b as C,j as p,_ as n,L as X,bk as J,bn as Q,O as U,bo as Y,b2 as Z,k as W,C as ee,w as M,D as ne,bb as re,K as ae,b3 as le,bp as oe,bq as te,br as se}from"./umi-5f6aeac9.js";var ie=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue","lightProps"],ue=["children","space","valuePropName"],ce={space:D,group:q.Group};function de(a){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&a in e.target?e.target[a]:e}var fe=function(e){var P=e.children,x=e.value,s=x===void 0?[]:x,d=e.valuePropName,R=e.onChange,y=e.fieldProps,j=e.space,w=e.type,f=w===void 0?"space":w;e.transform,e.convertValue,e.lightProps;var H=G(e,ie),S=X(function(o,i){var l,t=J(s);t[i]=de(d||"value",o),R==null||R(t),y==null||(l=y.onChange)===null||l===void 0||l.call(y,t)}),N=-1,v=Q(U(P,s,e)).map(function(o){if(k.isValidElement(o)){var i,l,t;N+=1;var c=N,_=(o==null||(i=o.type)===null||i===void 0?void 0:i.displayName)==="ProFormComponent"||(o==null||(l=o.props)===null||l===void 0?void 0:l.readonly),V=_?n(n({key:c,ignoreFormItem:!0},o.props||{}),{},{fieldProps:n(n({},o==null||(t=o.props)===null||t===void 0?void 0:t.fieldProps),{},{onChange:function(){S(arguments.length<=0?void 0:arguments[0],c)}}),value:s==null?void 0:s[c],onChange:void 0}):n(n({key:c},o.props||{}),{},{value:s==null?void 0:s[c],onChange:function($){var A,r;S($,c),(A=(r=o.props).onChange)===null||A===void 0||A.call(r,$)}});return k.cloneElement(o,V)}return o}),I=ce[f],E=Y(H),m=E.RowWrapper,L=C.useMemo(function(){return n({},f==="group"?{compact:!0}:{})},[f]),g=C.useCallback(function(o){var i=o.children;return p.jsx(I,n(n(n({},L),j),{},{align:"start",wrap:!0,children:i}))},[I,j,L]);return p.jsx(m,{Wrapper:g,children:v})},ve=k.forwardRef(function(a,e){var P=a.children,x=a.space,s=a.valuePropName,d=G(a,ue);return C.useImperativeHandle(e,function(){return{}}),p.jsx(fe,n(n(n({space:x,valuePropName:s},d.fieldProps),{},{onChange:void 0},d),{},{children:P}))}),pe=K(ve);const ye=pe;var me=function(e){return W({},e.componentCls,{lineHeight:"30px","&::before":{display:"block",height:0,visibility:"hidden",content:"'.'"},"&-small":{lineHeight:e.lineHeight},"&-container":{display:"flex",flexWrap:"wrap",gap:e.marginXS},"&-item":W({whiteSpace:"nowrap"},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"&-line":{minWidth:"198px"},"&-line:not(:first-child)":{marginBlockStart:"16px",marginBlockEnd:8},"&-collapse-icon":{width:e.controlHeight,height:e.controlHeight,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"&-effective":W({},"".concat(e.componentCls,"-collapse-icon"),{backgroundColor:e.colorBgTextHover})})};function ge(a){return Z("LightFilter",function(e){var P=n(n({},e),{},{componentCls:".".concat(a)});return[me(P)]})}var he=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],Ce=function(e){var P=e.items,x=e.prefixCls,s=e.size,d=s===void 0?"middle":s,R=e.collapse,y=e.collapseLabel,j=e.onValuesChange,w=e.bordered,f=e.values,H=e.footerRender,S=e.placement,N=ae(),v="".concat(x,"-light-filter"),I=ge(v),E=I.wrapSSR,m=I.hashId,L=C.useState(!1),g=M(L,2),o=g[0],i=g[1],l=C.useState(function(){return n({},f)}),t=M(l,2),c=t[0],_=t[1];C.useEffect(function(){_(n({},f))},[f]);var V=C.useMemo(function(){var r=[],h=[];return P.forEach(function(b){var F=b.props||{},u=F.secondary;u||R?r.push(b):h.push(b)}),{collapseItems:r,outsideItems:h}},[e.items]),z=V.collapseItems,$=V.outsideItems,A=function(){return y||(R?p.jsx(te,{className:"".concat(v,"-collapse-icon ").concat(m).trim()}):p.jsx(se,{size:d,label:N.getMessage("form.lightFilter.more","更多筛选")}))};return E(p.jsx("div",{className:le(v,m,"".concat(v,"-").concat(d),W({},"".concat(v,"-effective"),Object.keys(f).some(function(r){return Array.isArray(f[r])?f[r].length>0:f[r]}))),children:p.jsxs("div",{className:"".concat(v,"-container ").concat(m).trim(),children:[$.map(function(r,h){if(!(r!=null&&r.props))return r;var b=r.key,F=(r==null?void 0:r.props)||{},u=F.fieldProps,B=u!=null&&u.placement?u==null?void 0:u.placement:S;return p.jsx("div",{className:"".concat(v,"-item ").concat(m).trim(),children:k.cloneElement(r,{fieldProps:n(n({},r.props.fieldProps),{},{placement:B}),proFieldProps:n(n({},r.props.proFieldProps),{},{light:!0,label:r.props.label,bordered:w}),bordered:w})},b||h)}),z.length?p.jsx("div",{className:"".concat(v,"-item ").concat(m).trim(),children:p.jsx(oe,{padding:24,open:o,onOpenChange:function(h){i(h)},placement:S,label:A(),footerRender:H,footer:{onConfirm:function(){j(n({},c)),i(!1)},onClear:function(){var h={};z.forEach(function(b){var F=b.props.name;h[F]=void 0}),j(h)}},children:z.map(function(r){var h=r.key,b=r.props,F=b.name,u=b.fieldProps,B=n(n({},u),{},{onChange:function(O){return _(n(n({},c),{},W({},F,O!=null&&O.target?O.target.value:O))),!1}});c.hasOwnProperty(F)&&(B[r.props.valuePropName||"value"]=c[F]);var T=u!=null&&u.placement?u==null?void 0:u.placement:S;return p.jsx("div",{className:"".concat(v,"-line ").concat(m).trim(),children:k.cloneElement(r,{fieldProps:n(n({},B),{},{placement:T})})},h)})})},"more"):null]})}))};function Fe(a){var e=a.size,P=a.collapse,x=a.collapseLabel,s=a.initialValues,d=a.onValuesChange,R=a.form,y=a.placement,j=a.formRef,w=a.bordered;a.ignoreRules;var f=a.footerRender,H=G(a,he),S=C.useContext(ee.ConfigContext),N=S.getPrefixCls,v=N("pro-form"),I=C.useState(function(){return n({},s)}),E=M(I,2),m=E[0],L=E[1],g=C.useRef();return C.useImperativeHandle(j,function(){return g.current},[g.current]),p.jsx(ne,n(n({size:e,initialValues:s,form:R,contentRender:function(i){return p.jsx(Ce,{prefixCls:v,items:i==null?void 0:i.flatMap(function(l){var t;return!l||!(l!=null&&l.type)?l:(l==null||(t=l.type)===null||t===void 0?void 0:t.displayName)==="ProForm-Group"?l.props.children:l}),size:e,bordered:w,collapse:P,collapseLabel:x,placement:y,values:m||{},footerRender:f,onValuesChange:function(t){var c,_,V=n(n({},m),t);L(V),(c=g.current)===null||c===void 0||c.setFieldsValue(V),(_=g.current)===null||_===void 0||_.submit(),d&&d(t,V)}})},formRef:g,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},re(H,["labelWidth"])),{},{onValuesChange:function(i,l){var t;L(l),d==null||d(i,l),(t=g.current)===null||t===void 0||t.submit()}}))}export{Fe as L,ye as P}; diff --git a/web/dist/assets/index-9ece78ec.js b/web/dist/assets/index-1af802d3.js similarity index 73% rename from web/dist/assets/index-9ece78ec.js rename to web/dist/assets/index-1af802d3.js index 46755bd2f757da957a27c5ce8f5edf1dd691cb03..a4c4ba270f6f83bdf0185e47a8b09b179a90f62c 100644 --- a/web/dist/assets/index-9ece78ec.js +++ b/web/dist/assets/index-1af802d3.js @@ -1 +1 @@ -import{j as t,C as c,T as x,I as f}from"./umi-2ee4055f.js";import{C as j}from"./index-8a549704.js";import{S as m}from"./index-426be59b.js";import"./index-275c5384.js";const h=i=>{const{title:e,actionText:o,total:r,footer:s,precision:n,children:a,loading:d,prefix:l,suffix:p}=i;return t.jsx(j,{loading:d,children:t.jsxs(c,{theme:{components:{Statistic:{contentFontSize:30}}},children:[t.jsx(m,{title:t.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[t.jsx("div",{children:e}),t.jsx(x,{title:o,children:t.jsx(f,{})})]}),value:r,precision:n,prefix:l,suffix:p}),a,t.jsx("div",{style:{borderTop:"1px solid rgba(5, 5, 5, 0.06)",marginTop:"8px",paddingTop:"9px"},children:s})]})})},v=h;export{v as default}; +import{j as t,C as c,T as x,I as f}from"./umi-5f6aeac9.js";import{C as j}from"./index-55d2ebbc.js";import{S as m}from"./index-e3aca980.js";import"./index-13cae3f4.js";const h=i=>{const{title:e,actionText:o,total:r,footer:s,precision:n,children:a,loading:d,prefix:l,suffix:p}=i;return t.jsx(j,{loading:d,children:t.jsxs(c,{theme:{components:{Statistic:{contentFontSize:30}}},children:[t.jsx(m,{title:t.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[t.jsx("div",{children:e}),t.jsx(x,{title:o,children:t.jsx(f,{})})]}),value:r,precision:n,prefix:l,suffix:p}),a,t.jsx("div",{style:{borderTop:"1px solid rgba(5, 5, 5, 0.06)",marginTop:"8px",paddingTop:"9px"},children:s})]})})},v=h;export{v as default}; diff --git a/web/dist/assets/index-1bff363d.js b/web/dist/assets/index-1bff363d.js new file mode 100644 index 0000000000000000000000000000000000000000..75c703b4ab8632a008eb1a2aeb7a715b1ca49d0f --- /dev/null +++ b/web/dist/assets/index-1bff363d.js @@ -0,0 +1 @@ +import{ax as C,H as i,b as a,al as w,aF as B,j as e,aG as F,a0 as x,ay as v,B as y,Q as E,C as G,aH as D,aI as I,a1 as j,aJ as H,ah as O,ai as R,ad as l,aK as V,aL as K,aM as M,aN as N,aO as _,aP as L,aQ as Q,aR as W,aS as z,aT as J}from"./umi-5f6aeac9.js";import{C as Y}from"./index-55d2ebbc.js";import{P as q}from"./index-3fcbb702.js";import{T as U}from"./index-25e4c7e3.js";import X from"./AddSettingGroup-f4d5b703.js";import h from"./SettingForm-c87018e0.js";import{d as Z,l as $}from"./table-0fa6c309.js";import{P as c}from"./ProCard-a8f5c5a9.js";import"./index-13cae3f4.js";import"./ActionButton-ff803f23.js";import"./styleChecker-68f8791b.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./index-46da21dc.js";import"./index-55505f41.js";const{Text:m}=U,bs=()=>{const f=C(),[n]=i.useForm(),[t,g]=a.useState([]),[k,S]=a.useState("web"),[b,P]=a.useState(3),[T,A]=a.useState(),d=w.useToken(),r=(s=3)=>{$("/system.setting/list",{group_id:s}).then(o=>{if(A(o.data),n){let p={};o.data.forEach(u=>{p[u.key]=u.values}),n.setFieldsValue(p)}})};return a.useEffect(()=>{B().then(s=>{g(s.data)}),r()},[]),e.jsxs(e.Fragment,{children:[e.jsx(F,{message:"系统设置可以方便快速的实现对后台可变参数的配置,php代码中直接粘贴用法即可获取到当前配置",type:"success",style:{marginBottom:10}}),e.jsx(Y,{title:"系统设置",styles:{body:{padding:0,paddingTop:1}},extra:e.jsxs(x,{children:[e.jsx(v,{accessible:f.buttonAccess("admin.group.rule"),children:e.jsx(X,{})}),e.jsx(h,{settingGroup:t,getSetting:r,children:e.jsx(y,{type:"primary",icon:e.jsx(E,{}),block:!0,children:"新增设置"})})]}),children:e.jsxs(c,{split:"vertical",children:[e.jsx(c,{colSpan:"160px",children:e.jsx(G,{theme:{components:{Menu:{activeBarBorderWidth:0}}},children:e.jsx(D,{onClick:s=>{let o=t==null?void 0:t.filter(p=>p.key===s.key);S(o[0].key),P(o[0].id),r(o[0].id)},defaultSelectedKeys:["web"],mode:"inline",items:t})})}),e.jsx(c,{style:{minHeight:500},children:e.jsxs(i,{form:n,onFinish:s=>{I({group_id:b,...s}).then(()=>{j.success("保存成功!")})},children:[e.jsx(H,{pagination:!1,dataSource:T,renderItem:s=>e.jsxs(e.Fragment,{children:[e.jsxs(x,{style:{marginBottom:10},children:[s.title,e.jsx(h,{getSetting:r,settingGroup:t,id:s.id,defaultData:s.defaultData,children:e.jsx(O,{style:{color:d.token.colorPrimary}})}),e.jsx(q,{title:"删除",description:"Are you sure to delete this task?",onConfirm:()=>{Z("/system.setting/delete",{ids:s.id}).then(()=>{j.success("删除成功"),r(s.group_id)})},okText:"Yes",cancelText:"No",children:e.jsx(R,{style:{color:d.token.colorError}})})]}),e.jsxs(i.Item,{name:s.key,style:{maxWidth:680,marginBottom:0},children:[s.type==="input"&&e.jsx(l,{...s.props}),s.type==="password"&&e.jsx(l.Password,{...s.props}),s.type==="textarea"&&e.jsx(l.TextArea,{...s.props}),s.type==="checkout"&&e.jsx(V.Group,{...s.props,options:s.options}),s.type==="color"&&e.jsx(K,{...s.props,defaultValue:"#1677ff",showText:!0}),s.type==="date"&&e.jsx(M,{...s.props}),s.type==="number"&&e.jsx(N,{...s.props,min:1,max:10,defaultValue:3}),s.type==="radio"&&e.jsx(_.Group,{...s.props,options:s.options}),s.type==="rate"&&e.jsx(L,{...s.props,allowHalf:!0,defaultValue:2.5}),s.type==="select"&&e.jsx(Q,{...s.props,options:s.options}),s.type==="slider"&&e.jsx(W,{...s.props}),s.type==="switch"&&e.jsx(z,{...s.props}),s.type==="time"&&e.jsx(J,{...s.props})]}),e.jsxs("div",{style:{marginBottom:20},children:[e.jsxs(m,{type:"secondary",style:{fontSize:12},children:[s.describe,",用法:"]}),e.jsx(m,{type:"secondary",copyable:!0,children:"get_setting('"+k+"."+s.key+"')"})]})]})},"key"),e.jsx(y,{type:"primary",htmlType:"submit",children:"保存设置"})]})})]})})]})};export{bs as default}; diff --git a/web/dist/assets/index-1c416090.js b/web/dist/assets/index-1c416090.js deleted file mode 100644 index 1c7cf27b52cabe495f2da8e23f14d5f546483fce..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-1c416090.js +++ /dev/null @@ -1 +0,0 @@ -import{E as Ae,G as Ee,H as Me,R as $,J as Te,r as k,d as We,cE as ge,bS as Fe,cF as Be,by as Pe,b5 as oe,cG as _e,aV as pe,aU as xe,_ as X,K as ie,cH as $e,k as Ie,C as Ne,j as l,b8 as De,aY as He,q as ze,B as ae,V,ay as Oe,aB as re,S as Le,ah as Ue}from"./umi-2ee4055f.js";import{P as Xe}from"./index-ea2ed5fc.js";import{t as ve}from"./index-8b7fb289.js";import{a as Ge,e as Ke,l as Ye,d as Ve}from"./table-c83b9d9d.js";import{B as ye}from"./index-c10be21a.js";import{P as qe}from"./Table-3849f584.js";import{R as Je}from"./RouteContext-8fa10ad2.js";$.Component;var Ze={subtree:!0,childList:!0,attributeFilter:["style","class"]};function Qe(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ze;k.useEffect(function(){if(!(!We()||!t)){var r,c=Array.isArray(t)?t:[t];return"MutationObserver"in window&&(r=new MutationObserver(e),c.forEach(function(a){r.observe(a,n)})),function(){var a,u;(a=r)===null||a===void 0||a.takeRecords(),(u=r)===null||u===void 0||u.disconnect()}}},[n,t])}const be=3;function le(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const r=document.createElement("canvas"),c=r.getContext("2d"),a=t*n,u=e*n;return r.setAttribute("width",`${a}px`),r.setAttribute("height",`${u}px`),c.save(),[c,r,a,u]}function et(){function t(e,n,r,c,a,u,m,i){const[s,p,j,P]=le(c,a,r);if(e instanceof HTMLImageElement)s.drawImage(e,0,0,j,P);else{const{color:f,fontSize:w,fontStyle:U,fontWeight:z,fontFamily:Q,textAlign:ce}=u,ee=Number(w)*r;s.font=`${U} normal ${z} ${ee}px/${a}px ${Q}`,s.fillStyle=f,s.textAlign=ce,s.textBaseline="top";const te=ve(e);te==null||te.forEach((ne,se)=>{s.fillText(ne??"",j/2,se*(ee+be*r))})}const S=Math.PI/180*Number(n),x=Math.max(c,a),[I,q,C]=le(x,x,r);I.translate(C/2,C/2),I.rotate(S),j>0&&P>0&&I.drawImage(p,-j/2,-P/2);function o(f,w){const U=f*Math.cos(S)-w*Math.sin(S),z=f*Math.sin(S)+w*Math.cos(S);return[U,z]}let E=0,_=0,M=0,T=0;const W=j/2,R=P/2;[[0-W,0-R],[0+W,0-R],[0+W,0+R],[0-W,0+R]].forEach(f=>{let[w,U]=f;const[z,Q]=o(w,U);E=Math.min(E,z),_=Math.max(_,z),M=Math.min(M,Q),T=Math.max(T,Q)});const O=E+C/2,L=M+C/2,N=_-E,D=T-M,G=m*r,J=i*r,H=(N+G)*2,Z=D+J,[d,v]=le(H,Z);function h(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;d.drawImage(q,O,L,N,D,f,w,N,D)}return h(),h(N+G,-D/2-J/2),h(N+G,+D/2+J/2),[v.toDataURL(),H/r,Z/r]}return t}function tt(t){const e=$.useRef(!1),n=$.useRef(null),r=ge(t);return()=>{e.current||(e.current=!0,r(),n.current=Fe(()=>{e.current=!1}))}}function nt(){const t=k.useRef([null,null]);return(n,r)=>{const c=n.map(a=>a instanceof HTMLElement||isNaN(a)?"":a);return Be(t.current[0],c)||(t.current=[c,r()]),t.current[1]}}function rt(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function at(t){return Object.keys(t).map(e=>`${rt(e)}: ${t[e]};`).join(" ")}function st(){return window.devicePixelRatio||1}const ot=(t,e)=>{let n=!1;return t.removedNodes.length&&(n=Array.from(t.removedNodes).some(r=>e(r))),t.type==="attributes"&&e(t.target)&&(n=!0),n},lt={visibility:"visible !important"};function it(t){const e=k.useRef(new Map);return[(a,u,m)=>{if(m){if(!e.current.get(m)){const s=document.createElement("div");e.current.set(m,s)}const i=e.current.get(m);i.setAttribute("style",at(Object.assign(Object.assign(Object.assign({},t),{backgroundImage:`url('${a}')`,backgroundSize:`${Math.floor(u)}px`}),lt))),i.removeAttribute("class"),i.removeAttribute("hidden"),i.parentElement!==m&&m.append(i)}return e.current.get(m)},a=>{const u=e.current.get(a);u&&a&&a.removeChild(u),e.current.delete(a)},a=>Array.from(e.current.values()).includes(a)]}function de(t,e){return t.size===e.size?t:e}const fe=100,me=100,he={position:"relative",overflow:"hidden"},ct=t=>{var e,n;const{zIndex:r=9,rotate:c=-22,width:a,height:u,image:m,content:i,font:s={},style:p,className:j,rootClassName:P,gap:S=[fe,me],offset:x,children:I,inherit:q=!0}=t,C=Object.assign(Object.assign({},he),p),[,o]=Pe(),{color:E=o.colorFill,fontSize:_=o.fontSizeLG,fontWeight:M="normal",fontStyle:T="normal",fontFamily:W="sans-serif",textAlign:R="center"}=s,[F=fe,O=me]=S,L=F/2,N=O/2,D=(e=x==null?void 0:x[0])!==null&&e!==void 0?e:L,G=(n=x==null?void 0:x[1])!==null&&n!==void 0?n:N,J=$.useMemo(()=>{const g={zIndex:r,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let y=D-L,b=G-N;return y>0&&(g.left=`${y}px`,g.width=`calc(100% - ${y}px)`,y=0),b>0&&(g.top=`${b}px`,g.height=`calc(100% - ${b}px)`,b=0),g.backgroundPosition=`${y}px ${b}px`,g},[r,D,L,G,N]),[H,Z]=$.useState(),[d,v]=$.useState(new Set),h=$.useMemo(()=>{const g=H?[H]:[];return[].concat(g,oe(Array.from(d)))},[H,d]),f=g=>{let y=120,b=64;if(!m&&g.measureText){g.font=`${Number(_)}px ${W}`;const K=ve(i),Y=K.map(B=>{const A=g.measureText(B);return[A.width,A.fontBoundingBoxAscent+A.fontBoundingBoxDescent]});y=Math.ceil(Math.max.apply(Math,oe(Y.map(B=>B[0])))),b=Math.ceil(Math.max.apply(Math,oe(Y.map(B=>B[1]))))*K.length+(K.length-1)*be}return[a??y,u??b]},w=et(),U=nt(),[z,Q]=$.useState(null),ee=tt(()=>{const y=document.createElement("canvas").getContext("2d");if(y){const b=st(),[K,Y]=f(y),B=A=>{const ue=[A||"",c,b,K,Y,{color:E,fontSize:_,fontStyle:T,fontWeight:M,fontFamily:W,textAlign:R},F,O],ke=U(ue,()=>w.apply(void 0,ue)),[je,Re]=ke;Q([je,Re])};if(m){const A=new Image;A.onload=()=>{B(A)},A.onerror=()=>{B(i)},A.crossOrigin="anonymous",A.referrerPolicy="no-referrer",A.src=m}else B(i)}}),[te,ne,se]=it(J);k.useEffect(()=>{z&&h.forEach(g=>{te(z[0],z[1],g)})},[z,h]);const Se=ge(g=>{g.forEach(y=>{if(ot(y,se))ee();else if(y.target===H&&y.attributeName==="style"){const b=Object.keys(he);for(let K=0;K({add:g=>{v(y=>{const b=new Set(y);return b.add(g),de(y,b)})},remove:g=>{ne(g),v(y=>{const b=new Set(y);return b.delete(g),de(y,b)})}}),[]),we=q?$.createElement(_e.Provider,{value:Ce},I):I;return $.createElement("div",{ref:Z,className:pe(j,P),style:C},we)},ut=ct;var dt=function(e){return ie({},e.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:$e(e.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(e.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:e.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:e.colorText},"&-right":{color:e.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function ft(t){return xe("ProLayoutFooterToolbar",function(e){var n=X(X({},e),{},{componentCls:".".concat(t)});return[dt(n)]})}function mt(t,e){var n=e.stylish;return xe("ProLayoutFooterToolbarStylish",function(r){var c=X(X({},r),{},{componentCls:".".concat(t)});return n?[ie({},"".concat(c.componentCls),n==null?void 0:n(c))]:[]})}var ht=["children","className","extra","portalDom","style","renderContent"],gt=function(e){var n=e.children,r=e.className,c=e.extra,a=e.portalDom,u=a===void 0?!0:a,m=e.style,i=e.renderContent,s=Ie(e,ht),p=k.useContext(Ne.ConfigContext),j=p.getPrefixCls,P=p.getTargetContainer,S=e.prefixCls||j("pro"),x="".concat(S,"-footer-bar"),I=ft(x),q=I.wrapSSR,C=I.hashId,o=k.useContext(Je),E=k.useMemo(function(){var F=o.hasSiderMenu,O=o.isMobile,L=o.siderWidth;if(F)return L?O?"100%":"calc(100% - ".concat(L,"px)"):"100%"},[o.collapsed,o.hasSiderMenu,o.isMobile,o.siderWidth]),_=k.useMemo(function(){return typeof window>"u"||typeof document>"u"?null:(P==null?void 0:P())||document.body},[]),M=mt("".concat(x,".").concat(x,"-stylish"),{stylish:e.stylish}),T=l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"".concat(x,"-left ").concat(C).trim(),children:c}),l.jsx("div",{className:"".concat(x,"-right ").concat(C).trim(),children:n})]});k.useEffect(function(){return!o||!(o!=null&&o.setHasFooterToolbar)?function(){}:(o==null||o.setHasFooterToolbar(!0),function(){var F;o==null||(F=o.setHasFooterToolbar)===null||F===void 0||F.call(o,!1)})},[]);var W=l.jsx("div",X(X({className:pe(r,C,x,ie({},"".concat(x,"-stylish"),!!e.stylish)),style:X({width:E},m)},De(s,["prefixCls"])),{},{children:i?i(X(X(X({},e),o),{},{leftWidth:E}),T):T})),R=!He()||!u||!_?W:ze.createPortal(W,_,x);return M.wrapSSR(q(l.jsx($.Fragment,{children:R},x)))};function pt(t){const{columns:e,api:n,tableRef:r,handleAdd:c,addBefore:a}=t,u=async m=>{if(c)return c(m).finally(()=>{var i,s;(s=(i=r.current)==null?void 0:i.reloadAndRest)==null||s.call(i)});{const i=V.loading("正在添加");return Ge(n,Object.assign({},m)).then(s=>s.success?(V.success("添加成功"),a==null||a(),!0):!1).finally(()=>{var s,p;i(),(p=(s=r.current)==null?void 0:s.reloadAndRest)==null||p.call(s)})}};return l.jsx(ye,{rowProps:{gutter:[16,16]},title:"新建",trigger:l.jsx(ae,{type:"primary",children:"新建"}),layoutType:"ModalForm",colProps:{span:12},modalProps:{destroyOnClose:!0},initialValues:{},grid:!0,onFinish:u,columns:e})}function xt(t){const{columns:e,values:n,id:r,api:c,tableRef:a,handleUpdate:u}=t,m=async i=>{if(u)return u(Object.assign({id:r},i)).finally(()=>{var s,p;(p=(s=a.current)==null?void 0:s.reloadAndRest)==null||p.call(s)});{const s=V.loading("正在更新");return Ke(c,Object.assign({id:r},i)).then(p=>p.success?(V.success("更新成功!"),!0):!1).finally(()=>{var p,j;(j=(p=a.current)==null?void 0:p.reloadAndRest)==null||j.call(p),s()})}};return l.jsx(ye,{trigger:l.jsx("a",{children:" 编辑"}),title:"编辑",layoutType:"ModalForm",rowProps:{gutter:[16,16]},colProps:{span:12},grid:!0,initialValues:n,onFinish:m,columns:e})}function jt(t){const{tableApi:e,columns:n,addShow:r,deleteShow:c,editShow:a,searchConfig:u,rowSelectionShow:m,operateRender:i,operateShow:s,handleUpdate:p,handleAdd:j,addBefore:P,accessName:S,footerBarButton:x}=t,[I,q]=k.useState([]),C=k.useRef(),[o,E]=k.useState([]),[_,M]=k.useState([]),[T,W]=k.useState([]),R=Oe();k.useImperativeHandle(t.actionRef,()=>C.current);const F=d=>{let v=[];return d.forEach(h=>{v.push(h.id),h.children&&(v=v.concat(F(h.children)))}),v},O=async d=>{const v=V.loading("正在删除");if(!d||c===!1){V.warning("请选择需要删除的节点");return}let h=d.map(f=>f.id);Ve(e+"/delete",{ids:h.join()||""}).then(f=>{var w,U;f.success?(V.success(f.msg),(U=(w=C.current)==null?void 0:w.reloadAndRest)==null||U.call(w)):V.warning(f.msg)}).finally(()=>v())},L=d=>l.jsx(re,{accessible:S?R.buttonAccess(S+".delete"):!0,children:l.jsx(Xe,{title:"Delete the task",description:"你确定要删除这条数据吗?",onConfirm:()=>{O([d])},okText:"确认",cancelText:"取消",children:l.jsx("a",{children:"删除"})})}),N=d=>l.jsx(re,{accessible:S?R.buttonAccess(S+".edit"):!0,children:l.jsx(xt,{values:d,columns:n,id:d.id,api:e+"/edit",tableRef:C,handleUpdate:p})}),D=()=>l.jsx(re,{accessible:S?R.buttonAccess(S+".add"):!0,children:l.jsx(pt,{columns:n,api:e+"/add",tableRef:C,handleAdd:j,addBefore:P})}),G=()=>({title:"操作",dataIndex:"option",valueType:"option",render:(v,h)=>l.jsxs(Le,{split:l.jsx(Ue,{type:"vertical"}),size:0,children:[a!==!1&&N(h),c!==!1&&L(h),i!==void 0&&i(h)]})}),J=(d,v)=>{let h=[r!==!1?D():""];return T.length&&T.length>I.length&&h.push(l.jsxs(l.Fragment,{children:[l.jsx(ae,{onClick:()=>M(T),children:"展开全部"}),l.jsx(ae,{onClick:()=>M([]),children:"折叠全部"})]})),t.toolBarRender&&h.push(t.toolBarRender(d,v)),h},H=()=>(o==null?void 0:o.length)>0&&l.jsx(gt,{extra:l.jsxs("div",{children:["已选择"," ",l.jsx("a",{style:{fontWeight:600},children:o.length})," ","项  "]}),children:l.jsxs(re,{accessible:S?R.buttonAccess(S+".delete"):!0,children:[l.jsx(ae,{danger:!0,onClick:async()=>{var d,v;await O(o),E([]),(v=(d=C.current)==null?void 0:d.reloadAndRest)==null||v.call(d)},children:"批量删除"}),x]})}),Z={headerTitle:"查询表格",rowKey:"id",search:u,expandable:{expandedRowKeys:_,onExpandedRowsChange:d=>{M([...d])}},request:async(d,v,h)=>{const{data:f,success:w}=await Ye(e+"/list",{...d,sorter:v,filter:h});return q(f.data),W(F(f.data)),{data:(f==null?void 0:f.data)||[],success:w,total:f==null?void 0:f.total}},rowSelection:m!==!1?{onChange:(d,v)=>E(v)}:void 0,tableStyle:{minHeight:500}};return l.jsxs(ut,{children:[l.jsx(qe,{...Object.assign(Z,t),columns:s!==!1?[...n,G()]:n,toolBarRender:J,cardBordered:!0,actionRef:C}),H()]})}export{jt as X}; diff --git a/web/dist/assets/index-1c79bc3d.js b/web/dist/assets/index-1c79bc3d.js deleted file mode 100644 index b14077db4572ab8d2725eefe1e75d24ac654e368..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-1c79bc3d.js +++ /dev/null @@ -1 +0,0 @@ -import{aV as b,g as I,m as L,R as j,bc as z,c8 as C,b8 as k,X as $,r as u,a6 as B,j as r,S as R,B as w,ac as T,a5 as W,aE as A,c9 as H,ca as J,cb as M,V as v}from"./umi-2ee4055f.js";import{P as X}from"./index-ea2ed5fc.js";import q from"./GroupData-d6c7f461.js";import U from"./UploadFile-2f1fc42e.js";import{P as S}from"./ProCard-cee316ff.js";import"./ActionButton-a9da0b15.js";import"./index-6395135c.js";import"./AddGroup-324fd85c.js";import"./group-832bb4bd.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./EditGroup-52db762b.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./utils-b0233852.js";import"./index-d81f4240.js";const _=["wrap","nowrap","wrap-reverse"],O=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],F=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Q=(e,t)=>{const s=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${s}`]:s&&_.includes(s)}},Y=(e,t)=>{const s={};return F.forEach(a=>{s[`${e}-align-${a}`]=t.align===a}),s[`${e}-align-stretch`]=!t.align&&!!t.vertical,s},Z=(e,t)=>{const s={};return O.forEach(a=>{s[`${e}-justify-${a}`]=t.justify===a}),s};function K(e,t){return b(Object.assign(Object.assign(Object.assign({},Q(e,t)),Y(e,t)),Z(e,t)))}const ee=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},te=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},ae=e=>{const{componentCls:t}=e,s={};return _.forEach(a=>{s[`${t}-wrap-${a}`]={flexWrap:a}}),s},se=e=>{const{componentCls:t}=e,s={};return F.forEach(a=>{s[`${t}-align-${a}`]={alignItems:a}}),s},ne=e=>{const{componentCls:t}=e,s={};return O.forEach(a=>{s[`${t}-justify-${a}`]={justifyContent:a}}),s},re=()=>({}),le=I("Flex",e=>{const{paddingXS:t,padding:s,paddingLG:a}=e,l=L(e,{flexGapSM:t,flexGap:s,flexGapLG:a});return[ee(l),te(l),ae(l),se(l),ne(l)]},re,{resetStyle:!1});var ie=globalThis&&globalThis.__rest||function(e,t){var s={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(s[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);l{const{prefixCls:s,rootClassName:a,className:l,style:x,flex:i,gap:o,children:d,vertical:g=!1,component:c="div"}=e,h=ie(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:n,direction:f,getPrefixCls:m}=j.useContext(z),p=m("flex",s),[G,P,E]=le(p),D=g??(n==null?void 0:n.vertical),V=b(l,a,n==null?void 0:n.className,p,P,E,K(p,e),{[`${p}-rtl`]:f==="rtl",[`${p}-gap-${o}`]:C(o),[`${p}-vertical`]:D}),y=Object.assign(Object.assign({},n==null?void 0:n.style),x);return i&&(y.flex=i),o&&!C(o)&&(y.gap=o),G(j.createElement(c,Object.assign({ref:t,className:V,style:y},k(h,["justify","wrap","align"])),d))}),ce=oe,N={list:"/admin/file.file/list",add:"/admin/file.group/add",edit:"/admin/file.group/edit",delete:"/admin/file.file/delete"};async function pe(e){return $(N.list,{method:"get",params:e})}async function de(e){return $(N.delete,{method:"delete",params:e})}const Ie=()=>{const[e,t]=u.useState({name:"root",group_id:0,parent_id:0,sort:0}),[s,a]=u.useState([]),[l,x]=u.useState({page:1,total:0}),[i,o]=u.useState([]),[d,g]=B(),c=async(n=0,f=1)=>{let m=await pe({pageSize:50,current:f,group_id:n});a(m.data.data),x({page:m.data.current_page,total:m.data.total})},h=async()=>{if(i.length===0){v.warning("请选择文件!");return}await de({ids:i.join(",")}),await c(e.group_id,l.page),o([]),v.success("删除成功!")};return u.useEffect(()=>{c(e.group_id,1).then(()=>{})},[e]),r.jsxs(S,{ghost:!0,gutter:20,wrap:!1,children:[r.jsx(S,{ghost:!0,colSpan:"260px",children:r.jsx(q,{selectGroup:e,setSelectGroup:t})}),r.jsxs(S,{bordered:!0,headerBordered:!0,colSpan:"auto",title:"文件列表",extra:r.jsxs(R,{children:[d&&r.jsx(X,{title:"Delete the task",description:`你确定要删除这 ${i.length} 个文件吗?`,onConfirm:h,children:r.jsx(w,{type:"primary",icon:r.jsx(T,{}),shape:"round",danger:!0,children:"批量删除"})}),r.jsx(w,{onClick:()=>g.toggle(),type:"primary",shape:"round",icon:r.jsx(W,{type:"icon-piliangxuanze",className:"icon-piliangxuanze"}),children:d?"取消选择":"批量选择"}),r.jsx(U,{getFileList:c,selectGroup:e})]}),style:{width:"100%"},children:[r.jsx("div",{style:{minHeight:"500px"},children:s.length>0?r.jsx(ce,{wrap:"wrap",gap:"middle",children:s.map(n=>r.jsxs("div",{className:"image-card",children:[d&&r.jsx("div",{className:"card",onClick:()=>{i!=null&&i.includes(n.file_id)?o(i.filter(f=>f!==n.file_id)):o([...i,n.file_id])},children:r.jsx(A,{checked:i.includes(n.file_id)})}),r.jsxs("div",{className:"wrapper",children:[r.jsx(H,{height:60,preview:n.file_type===10?{}:!1,className:"file-icon",src:n.preview_url}),r.jsx("p",{className:"gi-line-1 file-name",children:n.file_name})]})]},n.file_id))}):r.jsx(J,{})}),r.jsx(M,{style:{textAlign:"right"},current:l.page,total:l.total,pageSize:50,onChange:async n=>{await c(e.group_id,n)}})]})]})};export{Ie as default}; diff --git a/web/dist/assets/index-211dffa7.js b/web/dist/assets/index-211dffa7.js deleted file mode 100644 index 719e354a4168710341038db40c3bf1f5b5242b45..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-211dffa7.js +++ /dev/null @@ -1,2 +0,0 @@ -import{r as o,R as c,j as p}from"./umi-2ee4055f.js";import{u as g,c as h,g as v,E as b,C as T}from"./createLoading-2160f924.js";import"./react-content-loader.es-7f7b682d.js";var E=globalThis&&globalThis.__rest||function(e,r){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a{const r={appendPadding:10,data:[{type:"家用电器",value:27},{type:"食用酒水",value:25},{type:"个护健康",value:18},{type:"服饰箱包",value:15},{type:"母婴产品",value:10},{type:"其他",value:5}],angleField:"value",colorField:"type",radius:.75,label:{type:"spider",labelHeight:28,content:`{name} -{percentage}`},interactions:[{type:"element-selected"},{type:"element-active"}]};return p.jsx(P,{...r})},C=j;export{C as default}; diff --git a/web/dist/assets/index-214cf934.js b/web/dist/assets/index-214cf934.js deleted file mode 100644 index 2f507a524c52a8717c5239d02ad567c453b7ceac..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-214cf934.js +++ /dev/null @@ -1 +0,0 @@ -import{Y as a,j as e,av as i,aw as m,V as l}from"./umi-2ee4055f.js";import{C as n}from"./index-8a549704.js";import p from"./index-2e4df2d6.js";import{B as d}from"./index-c10be21a.js";import"./index-275c5384.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";const q=()=>{const{initialState:o}=a("@@initialState"),s=[{title:"旧密码",dataIndex:"oldPassword",valueType:"password",formItemProps:{rules:[{required:!0}]}},{title:"新密码",dataIndex:"newPassword",valueType:"password",formItemProps:{rules:[{required:!0}]}},{title:"重复密码",dataIndex:"rePassword",valueType:"password",formItemProps:{rules:[{required:!0},({getFieldValue:r})=>({validator(u,t){return!t||r("newPassword")===t?Promise.resolve():Promise.reject(new Error("重复密码不同!"))}})]}}];return e.jsx(p,{children:e.jsx(n,{title:"修改密码",extra:e.jsx(i,{to:"/user/userSetting",children:"编辑资料"}),children:e.jsx(d,{layoutType:"Form",onFinish:async r=>{console.log(r),await m(r),l.success("更新成功")},layout:"horizontal",labelCol:{span:2},wrapperCol:{span:6},initialValues:o.currentUser,columns:s})})})};export{q as default}; diff --git a/web/dist/assets/index-49e8f642.js b/web/dist/assets/index-21b0d826.js similarity index 56% rename from web/dist/assets/index-49e8f642.js rename to web/dist/assets/index-21b0d826.js index 97004d494edc5a3ee679973fd35999bd463344b8..fd21677a10594e0290a78616c607a0e6aa7604e6 100644 --- a/web/dist/assets/index-49e8f642.js +++ b/web/dist/assets/index-21b0d826.js @@ -1 +1 @@ -import{j as t}from"./umi-2ee4055f.js";import{C as o}from"./index-8a549704.js";import"./index-275c5384.js";const i=()=>t.jsx(o,{title:"大盘趋势",children:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/a-LN9RTYq/zhuzhuangtu.svg",alt:"柱状图",width:"100%"})});export{i as default}; +import{j as t}from"./umi-5f6aeac9.js";import{C as o}from"./index-55d2ebbc.js";import"./index-13cae3f4.js";const i=()=>t.jsx(o,{title:"大盘趋势",children:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/a-LN9RTYq/zhuzhuangtu.svg",alt:"柱状图",width:"100%"})});export{i as default}; diff --git a/web/dist/assets/index-25021ef3.js b/web/dist/assets/index-25021ef3.js deleted file mode 100644 index 71bca9b84bebb77cfc780f6a3c717abfed81a192..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-25021ef3.js +++ /dev/null @@ -1 +0,0 @@ -import{R as d,k as m,j as P,a1 as l,_ as o}from"./umi-2ee4055f.js";var F=["fieldProps","min","proFieldProps","max"],n=function(r,i){var e=r.fieldProps,a=r.min,s=r.proFieldProps,t=r.max,p=m(r,F);return P.jsx(l,o({valueType:"digit",fieldProps:o({min:a,max:t},e),ref:i,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:s},p))},f=d.forwardRef(n);const c=f;export{c as P}; diff --git a/web/dist/assets/index-250ebfc2.js b/web/dist/assets/index-250ebfc2.js deleted file mode 100644 index 521d62a28740d18cc98fba1b8769b5b3fc6da5c3..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-250ebfc2.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e,j as i}from"./umi-2ee4055f.js";import{C as d}from"./index-c4f19093.js";import"./createLoading-2160f924.js";import"./react-content-loader.es-7f7b682d.js";const r=()=>{const[o,a]=e.useState([]);e.useEffect(()=>{n()},[]);const n=()=>{fetch("https://gw.alipayobjects.com/os/antfincdn/iPY8JFnxdb/dodge-padding.json").then(t=>t.json()).then(t=>a(t)).catch(t=>{console.log("fetch data failed",t)})},s={data:o,isGroup:!0,xField:"月份",yField:"月均降雨量",seriesField:"name",dodgePadding:2,intervalPadding:20,label:{position:"middle",layout:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"}]}};return i.jsx(d,{...s})},u=r;export{u as default}; diff --git a/web/dist/assets/index-25241fc6.js b/web/dist/assets/index-25241fc6.js new file mode 100644 index 0000000000000000000000000000000000000000..ca942c9bfbcee491493e30ba20547633d6575ba7 --- /dev/null +++ b/web/dist/assets/index-25241fc6.js @@ -0,0 +1 @@ +import{aV as g,Y as h,al as f,b as j,j as e,an as y,a0 as k,aW as C,aX as S,ao as w,ae as z,a3 as n,a6 as o,ar as l,aY as b,a1 as i,aZ as I}from"./umi-5f6aeac9.js";import{L as P}from"./index-d76da286.js";import{P as T}from"./index-2c4aebf3.js";const q=()=>{const c=g(),{initialState:d}=h("@@initialState"),{token:m}=f.useToken(),[s,u]=j.useState("account"),p=async a=>{const t=await I({...a,loginType:s});localStorage.setItem("app","api"),localStorage.setItem("x-user-token",t.data.token),localStorage.setItem("x-user-refresh-token",t.data.refresh_token),i.success("登录成功!"),setTimeout(()=>{window.location.href="/"},100)},x=[{key:"account",label:"账号密码登录"},{key:"email",label:"邮箱登录"}],r=()=>{i.warning("敬请期待").then()};return e.jsx("div",{style:{backgroundColor:m.colorBgContainer,maxWidth:600,margin:"50px auto"},children:e.jsxs(P,{logo:d.webSetting.logo||"/favicon.png",title:"用户登录",subTitle:"登录平台账户,开启全新旅程!",actions:e.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[e.jsx(y,{plain:!0,children:e.jsx("span",{style:{color:"#CCC",fontWeight:"normal",fontSize:14},children:"其他登录方式"})}),e.jsxs(k,{align:"center",size:24,children:[e.jsx(C,{onClick:r,style:{fontSize:20,color:"#4cafe9"}}),e.jsx(S,{onClick:r,style:{fontSize:20,color:"rgb(0,172,132)"}}),e.jsx(w,{onClick:r,style:{fontSize:20,color:"#1677FF"}})]})]}),onFinish:p,children:[e.jsx(z,{centered:!0,activeKey:s,onChange:a=>u(a),items:x}),s==="account"&&e.jsxs(e.Fragment,{children:[e.jsx(n,{name:"username",fieldProps:{size:"large",prefix:e.jsx(o,{className:"prefixIcon"})},placeholder:"用户名: user",rules:[{required:!0,message:"请输入用户名!"}]}),e.jsx(n.Password,{name:"password",fieldProps:{size:"large",prefix:e.jsx(l,{className:"prefixIcon"})},placeholder:"密码: 123456",rules:[{required:!0,message:"请输入密码!"}]})]}),s==="email"&&e.jsxs(e.Fragment,{children:[e.jsx(n,{fieldProps:{size:"large",prefix:e.jsx(o,{className:"prefixIcon"})},name:"email",placeholder:"邮箱",rules:[{required:!0,message:"请输入邮箱!"},{pattern:/^[\w\\.-]+@[\w\\.-]+\.\w+$/,message:"邮箱格式错误!"}]}),e.jsx(T,{fieldProps:{size:"large",prefix:e.jsx(l,{className:"prefixIcon"})},phoneName:"email",captchaProps:{size:"large"},placeholder:"请输入验证码",captchaTextRender:(a,t)=>a?`${t} 获取验证码`:"获取验证码",name:"captcha",rules:[{required:!0,message:"请输入验证码!"}],onGetCaptcha:async a=>{await b({email:a}),i.success("获取验证码成功!")}})]}),e.jsxs("div",{style:{marginBlockEnd:24},children:[e.jsx("a",{onClick:()=>c("/client/reg"),children:"去注册"}),e.jsx("a",{style:{float:"right"},children:"忘记密码"})]})]})})};export{q as default}; diff --git a/web/dist/assets/index-cd6d59f9.js b/web/dist/assets/index-25d65b6e.js similarity index 57% rename from web/dist/assets/index-cd6d59f9.js rename to web/dist/assets/index-25d65b6e.js index b1a68893e6c14c2ca75595be3ae204266d0f5760..8c47e3f4aedcb39e87048d16db2413753edab30e 100644 --- a/web/dist/assets/index-cd6d59f9.js +++ b/web/dist/assets/index-25d65b6e.js @@ -1 +1 @@ -import{aU as pe,_ as p,K as U,k as he,n as ge,R as V,aW as be,r as d,C as Ce,l as $,o as we,p as xe,j as f,q as Re,aX as We,s as _e,Z as $e,aV as ze,v as Se,aY as ye,w as H,x as b}from"./umi-2ee4055f.js";var ke=function(m){return U({},m.componentCls,{"&-sidebar-dragger":{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid transparent",position:"absolute",top:0,left:0,bottom:0,zIndex:100,backgroundColor:"transparent","&-min-disabled":{cursor:"w-resize"},"&-max-disabled":{cursor:"e-resize"}}})};function Fe(s){return pe("DrawerForm",function(m){var h=p(p({},m),{},{componentCls:".".concat(s)});return[ke(h)]})}var De=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","resize","onOpenChange","visible","open"];function Pe(s){var m,h,J=s.children,C=s.trigger,w=s.onVisibleChange,i=s.drawerProps,D=s.onFinish,x=s.submitTimeout,Q=s.title,z=s.width,c=s.resize,S=s.onOpenChange,y=s.visible,B=s.open,l=he(s,De);ge(!l.footer||!(i!=null&&i.footer),"DrawerForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var t=V.useMemo(function(){var o,e,r,n={onResize:function(){},maxWidth:ye()?window.innerWidth*.8:void 0,minWidth:300};return typeof c=="boolean"?c?n:{}:be({onResize:(o=c==null?void 0:c.onResize)!==null&&o!==void 0?o:n.onResize,maxWidth:(e=c==null?void 0:c.maxWidth)!==null&&e!==void 0?e:n.maxWidth,minWidth:(r=c==null?void 0:c.minWidth)!==null&&r!==void 0?r:n.minWidth})},[c]),R=d.useContext(Ce.ConfigContext),N=R.getPrefixCls("pro-form-drawer"),X=Fe(N),ee=X.wrapSSR,q=X.hashId,M=function(e){return"".concat(N,"-").concat(e," ").concat(q)},re=d.useState([]),ne=$(re,2),te=ne[1],oe=d.useState(!1),A=$(oe,2),P=A[0],T=A[1],ie=d.useState(!1),G=$(ie,2),j=G[0],O=G[1],ae=d.useState(z||(c?t==null?void 0:t.minWidth:800)),K=$(ae,2),I=K[0],k=K[1],le=we(!!y,{value:B||y,onChange:S||w}),Y=$(le,2),W=Y[0],g=Y[1],F=d.useRef(null),se=d.useCallback(function(o){F.current===null&&o&&te([]),F.current=o},[]),_=d.useRef(),ue=d.useCallback(function(){var o,e,r,n=(o=(e=(r=l.formRef)===null||r===void 0?void 0:r.current)!==null&&e!==void 0?e:l.form)!==null&&o!==void 0?o:_.current;n&&i!==null&&i!==void 0&&i.destroyOnClose&&n.resetFields()},[i==null?void 0:i.destroyOnClose,l.form,l.formRef]);d.useEffect(function(){W&&(B||y)&&(S==null||S(!0),w==null||w(!0)),j&&k(t==null?void 0:t.minWidth)},[y,W,j]),d.useImperativeHandle(l.formRef,function(){return _.current},[_.current]);var de=d.useMemo(function(){return C?V.cloneElement(C,p(p({key:"trigger"},C.props),{},{onClick:function(){var o=H(b().mark(function r(n){var u,a;return b().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:g(!W),O(!Object.keys(t)),(u=C.props)===null||u===void 0||(a=u.onClick)===null||a===void 0||a.call(u,n);case 3:case"end":return v.stop()}},r)}));function e(r){return o.apply(this,arguments)}return e}()})):null},[g,C,W,O,j]),ce=d.useMemo(function(){var o,e,r,n,u;return l.submitter===!1?!1:xe({searchConfig:{submitText:(o=(e=R.locale)===null||e===void 0||(e=e.Modal)===null||e===void 0?void 0:e.okText)!==null&&o!==void 0?o:"确认",resetText:(r=(n=R.locale)===null||n===void 0||(n=n.Modal)===null||n===void 0?void 0:n.cancelText)!==null&&r!==void 0?r:"取消"},resetButtonProps:{preventDefault:!0,disabled:x?P:void 0,onClick:function(L){var v;g(!1),i==null||(v=i.onClose)===null||v===void 0||v.call(i,L)}}},(u=l.submitter)!==null&&u!==void 0?u:{})},[l.submitter,(m=R.locale)===null||m===void 0||(m=m.Modal)===null||m===void 0?void 0:m.okText,(h=R.locale)===null||h===void 0||(h=h.Modal)===null||h===void 0?void 0:h.cancelText,x,P,g,i]),ve=d.useCallback(function(o,e){return f.jsxs(f.Fragment,{children:[o,F.current&&e?f.jsx(V.Fragment,{children:Re.createPortal(e,F.current)},"submitter"):e]})},[]),fe=We(function(){var o=H(b().mark(function e(r){var n,u,a;return b().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return n=D==null?void 0:D(r),x&&n instanceof Promise&&(T(!0),u=setTimeout(function(){return T(!1)},x),n.finally(function(){clearTimeout(u),T(!1)})),v.next=4,n;case 4:return a=v.sent,a&&g(!1),v.abrupt("return",a);case 7:case"end":return v.stop()}},e)}));return function(e){return o.apply(this,arguments)}}()),me=_e(W,w),E=d.useCallback(function(o){var e,r,n=(document.body.offsetWidth||1e3)-(o.clientX-document.body.offsetLeft),u=(e=t==null?void 0:t.minWidth)!==null&&e!==void 0?e:z||800,a=(r=t==null?void 0:t.maxWidth)!==null&&r!==void 0?r:window.innerWidth*.8;if(na){k(a);return}k(n)},[t==null?void 0:t.maxWidth,t==null?void 0:t.minWidth,z]),Z=d.useCallback(function(){document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",Z)},[E]);return ee(f.jsxs(f.Fragment,{children:[f.jsxs($e,p(p(p({title:Q,width:I},i),me),{},{afterOpenChange:function(e){var r;e||ue(),i==null||(r=i.afterOpenChange)===null||r===void 0||r.call(i,e)},onClose:function(e){var r;x&&P||(g(!1),i==null||(r=i.onClose)===null||r===void 0||r.call(i,e))},footer:l.submitter!==!1&&f.jsx("div",{ref:se,style:{display:"flex",justifyContent:"flex-end"}}),children:[c?f.jsx("div",{className:ze(M("sidebar-dragger"),q,U(U({},M("sidebar-dragger-min-disabled"),I===(t==null?void 0:t.minWidth)),M("sidebar-dragger-max-disabled"),I===(t==null?void 0:t.maxWidth))),onMouseDown:function(e){var r;t==null||(r=t.onResize)===null||r===void 0||r.call(t),e.stopPropagation(),e.preventDefault(),document.addEventListener("mousemove",E),document.addEventListener("mouseup",Z),O(!0)}}):null,f.jsx(f.Fragment,{children:f.jsx(Se,p(p({formComponentType:"DrawerForm",layout:"vertical"},l),{},{formRef:_,onInit:function(e,r){var n;l.formRef&&(l.formRef.current=r),l==null||(n=l.onInit)===null||n===void 0||n.call(l,e,r),_.current=r},submitter:ce,onFinish:function(){var o=H(b().mark(function e(r){var n;return b().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,fe(r);case 2:return n=a.sent,a.abrupt("return",n);case 4:case"end":return a.stop()}},e)}));return function(e){return o.apply(this,arguments)}}(),contentRender:ve,children:J}))})]})),de]}))}export{Pe as D}; +import{b2 as pe,_ as p,k as B,s as he,v as ge,R as V,b5 as be,b as d,C as Ce,w as W,x as we,y as xe,j as f,z as Re,L as _e,A as $e,a4 as We,b3 as ze,D as ye,b6 as Se,E as H,F as b}from"./umi-5f6aeac9.js";var Fe=function(m){return B({},m.componentCls,{"&-sidebar-dragger":{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid transparent",position:"absolute",top:0,left:0,bottom:0,zIndex:100,backgroundColor:"transparent","&-min-disabled":{cursor:"w-resize"},"&-max-disabled":{cursor:"e-resize"}}})};function ke(s){return pe("DrawerForm",function(m){var h=p(p({},m),{},{componentCls:".".concat(s)});return[Fe(h)]})}var De=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","resize","onOpenChange","visible","open"];function Pe(s){var m,h,Y=s.children,C=s.trigger,w=s.onVisibleChange,i=s.drawerProps,D=s.onFinish,x=s.submitTimeout,Z=s.title,z=s.width,c=s.resize,y=s.onOpenChange,S=s.visible,N=s.open,l=he(s,De);ge(!l.footer||!(i!=null&&i.footer),"DrawerForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var t=V.useMemo(function(){var o,e,r,n={onResize:function(){},maxWidth:Se()?window.innerWidth*.8:void 0,minWidth:300};return typeof c=="boolean"?c?n:{}:be({onResize:(o=c==null?void 0:c.onResize)!==null&&o!==void 0?o:n.onResize,maxWidth:(e=c==null?void 0:c.maxWidth)!==null&&e!==void 0?e:n.maxWidth,minWidth:(r=c==null?void 0:c.minWidth)!==null&&r!==void 0?r:n.minWidth})},[c]),R=d.useContext(Ce.ConfigContext),U=R.getPrefixCls("pro-form-drawer"),A=ke(U),ee=A.wrapSSR,G=A.hashId,M=function(e){return"".concat(U,"-").concat(e," ").concat(G)},re=d.useState([]),ne=W(re,2),te=ne[1],oe=d.useState(!1),X=W(oe,2),P=X[0],T=X[1],ie=d.useState(!1),q=W(ie,2),j=q[0],O=q[1],ae=d.useState(z||(c?t==null?void 0:t.minWidth:800)),J=W(ae,2),I=J[0],F=J[1],le=we(!!S,{value:N||S,onChange:y||w}),K=W(le,2),_=K[0],g=K[1],k=d.useRef(null),se=d.useCallback(function(o){k.current===null&&o&&te([]),k.current=o},[]),$=d.useRef(),ue=d.useCallback(function(){var o,e,r,n=(o=(e=(r=l.formRef)===null||r===void 0?void 0:r.current)!==null&&e!==void 0?e:l.form)!==null&&o!==void 0?o:$.current;n&&i!==null&&i!==void 0&&i.destroyOnClose&&n.resetFields()},[i==null?void 0:i.destroyOnClose,l.form,l.formRef]);d.useEffect(function(){_&&(N||S)&&(y==null||y(!0),w==null||w(!0)),j&&F(t==null?void 0:t.minWidth)},[S,_,j]),d.useImperativeHandle(l.formRef,function(){return $.current},[$.current]);var de=d.useMemo(function(){return C?V.cloneElement(C,p(p({key:"trigger"},C.props),{},{onClick:function(){var o=H(b().mark(function r(n){var u,a;return b().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:g(!_),O(!Object.keys(t)),(u=C.props)===null||u===void 0||(a=u.onClick)===null||a===void 0||a.call(u,n);case 3:case"end":return v.stop()}},r)}));function e(r){return o.apply(this,arguments)}return e}()})):null},[g,C,_,O,j]),ce=d.useMemo(function(){var o,e,r,n,u;return l.submitter===!1?!1:xe({searchConfig:{submitText:(o=(e=R.locale)===null||e===void 0||(e=e.Modal)===null||e===void 0?void 0:e.okText)!==null&&o!==void 0?o:"确认",resetText:(r=(n=R.locale)===null||n===void 0||(n=n.Modal)===null||n===void 0?void 0:n.cancelText)!==null&&r!==void 0?r:"取消"},resetButtonProps:{preventDefault:!0,disabled:x?P:void 0,onClick:function(L){var v;g(!1),i==null||(v=i.onClose)===null||v===void 0||v.call(i,L)}}},(u=l.submitter)!==null&&u!==void 0?u:{})},[l.submitter,(m=R.locale)===null||m===void 0||(m=m.Modal)===null||m===void 0?void 0:m.okText,(h=R.locale)===null||h===void 0||(h=h.Modal)===null||h===void 0?void 0:h.cancelText,x,P,g,i]),ve=d.useCallback(function(o,e){return f.jsxs(f.Fragment,{children:[o,k.current&&e?f.jsx(V.Fragment,{children:Re.createPortal(e,k.current)},"submitter"):e]})},[]),fe=_e(function(){var o=H(b().mark(function e(r){var n,u,a;return b().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return n=D==null?void 0:D(r),x&&n instanceof Promise&&(T(!0),u=setTimeout(function(){return T(!1)},x),n.finally(function(){clearTimeout(u),T(!1)})),v.next=4,n;case 4:return a=v.sent,a&&g(!1),v.abrupt("return",a);case 7:case"end":return v.stop()}},e)}));return function(e){return o.apply(this,arguments)}}()),me=$e(_,w),E=d.useCallback(function(o){var e,r,n=(document.body.offsetWidth||1e3)-(o.clientX-document.body.offsetLeft),u=(e=t==null?void 0:t.minWidth)!==null&&e!==void 0?e:z||800,a=(r=t==null?void 0:t.maxWidth)!==null&&r!==void 0?r:window.innerWidth*.8;if(na){F(a);return}F(n)},[t==null?void 0:t.maxWidth,t==null?void 0:t.minWidth,z]),Q=d.useCallback(function(){document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",Q)},[E]);return ee(f.jsxs(f.Fragment,{children:[f.jsxs(We,p(p(p({title:Z,width:I},i),me),{},{afterOpenChange:function(e){var r;e||ue(),i==null||(r=i.afterOpenChange)===null||r===void 0||r.call(i,e)},onClose:function(e){var r;x&&P||(g(!1),i==null||(r=i.onClose)===null||r===void 0||r.call(i,e))},footer:l.submitter!==!1&&f.jsx("div",{ref:se,style:{display:"flex",justifyContent:"flex-end"}}),children:[c?f.jsx("div",{className:ze(M("sidebar-dragger"),G,B(B({},M("sidebar-dragger-min-disabled"),I===(t==null?void 0:t.minWidth)),M("sidebar-dragger-max-disabled"),I===(t==null?void 0:t.maxWidth))),onMouseDown:function(e){var r;t==null||(r=t.onResize)===null||r===void 0||r.call(t),e.stopPropagation(),e.preventDefault(),document.addEventListener("mousemove",E),document.addEventListener("mouseup",Q),O(!0)}}):null,f.jsx(f.Fragment,{children:f.jsx(ye,p(p({formComponentType:"DrawerForm",layout:"vertical"},l),{},{formRef:$,onInit:function(e,r){var n;l.formRef&&(l.formRef.current=r),l==null||(n=l.onInit)===null||n===void 0||n.call(l,e,r),$.current=r},submitter:ce,onFinish:function(){var o=H(b().mark(function e(r){var n;return b().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,fe(r);case 2:return n=a.sent,a.abrupt("return",n);case 4:case"end":return a.stop()}},e)}));return function(e){return o.apply(this,arguments)}}(),contentRender:ve,children:Y}))})]})),de]}))}export{Pe as D}; diff --git a/web/dist/assets/index-8b7fb289.js b/web/dist/assets/index-25e4c7e3.js similarity index 98% rename from web/dist/assets/index-8b7fb289.js rename to web/dist/assets/index-25e4c7e3.js index ea1447dac3d1a0e0aed19e574012a9e1ad0e60b2..58d576d26f31b0bbd75f55b08ad19ea64186cd18 100644 --- a/web/dist/assets/index-8b7fb289.js +++ b/web/dist/assets/index-25e4c7e3.js @@ -1 +1 @@ -import{r as s,d0 as Te,aV as Z,d1 as Ge,bW as Qe,d2 as Ye,ch as he,cm as Ze,cE as et,bi as tt,d3 as je,T as de,ci as nt,bL as st,d4 as ot,b6 as _e,d5 as K,b5 as lt,bc as rt,be as it,b8 as ke,o as Ce,br as at,ab as ct}from"./umi-2ee4055f.js";import{i as xe}from"./styleChecker-0860b7b3.js";function ut(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}const pt=e=>{const{prefixCls:n,"aria-label":o,className:t,style:l,direction:i,maxLength:f,autoSize:c=!0,value:u,onSave:d,onCancel:a,onEnd:m,component:y,enterIcon:C=s.createElement(Ye,null)}=e,T=s.useRef(null),x=s.useRef(!1),j=s.useRef(null),[g,L]=s.useState(u);s.useEffect(()=>{L(u)},[u]),s.useEffect(()=>{var b;if(!((b=T.current)===null||b===void 0)&&b.resizableTextArea){const{textArea:E}=T.current.resizableTextArea;E.focus();const{length:h}=E.value;E.setSelectionRange(h,h)}},[]);const U=b=>{let{target:E}=b;L(E.value.replace(/[\n\r]/g,""))},O=()=>{x.current=!0},S=()=>{x.current=!1},_=b=>{let{keyCode:E}=b;x.current||(j.current=E)},v=()=>{d(g.trim())},H=b=>{let{keyCode:E,ctrlKey:h,altKey:D,metaKey:R,shiftKey:P}=b;j.current!==E||x.current||h||D||R||P||(E===he.ENTER?(v(),m==null||m()):E===he.ESC&&a())},B=()=>{v()},[z,$,V]=Te(n),A=Z(n,`${n}-edit-content`,{[`${n}-rtl`]:i==="rtl",[`${n}-${y}`]:!!y},t,$,V);return z(s.createElement("div",{className:A,style:l},s.createElement(Ge,{ref:T,maxLength:f,value:g,onChange:U,onKeyDown:_,onKeyUp:H,onCompositionStart:O,onCompositionEnd:S,onBlur:B,"aria-label":o,rows:1,autoSize:c}),C!==null?Qe(C,{className:`${n}-edit-content-confirm`}):null))},dt=pt;var ft=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,o=[],t=0;t"u"){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=Oe[n.format]||Oe.default;window.clipboardData.setData(m,e)}else a.clipboardData.clearData(),a.clipboardData.setData(n.format,e);n.onCopy&&(a.preventDefault(),n.onCopy(a.clipboardData))}),document.body.appendChild(c),i.selectNodeContents(c),f.addRange(i);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");u=!0}catch(a){o&&console.error("unable to copy using execCommand: ",a),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),u=!0}catch(m){o&&console.error("unable to copy using clipboardData: ",m),o&&console.error("falling back to prompt"),t=gt("message"in n?n.message:yt),window.prompt(t,e)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(i):f.removeAllRanges()),c&&document.body.removeChild(c),l()}return u}var Et=bt;const vt=Ze(Et);var ht=globalThis&&globalThis.__awaiter||function(e,n,o,t){function l(i){return i instanceof o?i:new o(function(f){f(i)})}return new(o||(o=Promise))(function(i,f){function c(a){try{d(t.next(a))}catch(m){f(m)}}function u(a){try{d(t.throw(a))}catch(m){f(m)}}function d(a){a.done?i(a.value):l(a.value).then(c,u)}d((t=t.apply(e,n||[])).next())})};const Ct=e=>{let{copyConfig:n,children:o}=e;const[t,l]=s.useState(!1),[i,f]=s.useState(!1),c=s.useRef(null),u=()=>{c.current&&clearTimeout(c.current)},d={};n.format&&(d.format=n.format),s.useEffect(()=>u,[]);const a=et(m=>ht(void 0,void 0,void 0,function*(){var y;m==null||m.preventDefault(),m==null||m.stopPropagation(),f(!0);try{const C=typeof n.text=="function"?yield n.text():n.text;vt(C||ut(o,!0).join("")||"",d),f(!1),l(!0),u(),c.current=setTimeout(()=>{l(!1)},3e3),(y=n.onCopy)===null||y===void 0||y.call(n,m)}catch(C){throw f(!1),C}}));return{copied:t,copyLoading:i,onClick:a}},xt=Ct;function re(e,n){return s.useMemo(()=>{const o=!!e;return[o,Object.assign(Object.assign({},n),o&&typeof e=="object"?e:null)]},[e])}const Ot=e=>{const n=s.useRef(void 0);return s.useEffect(()=>{n.current=e}),n.current},St=Ot,wt=(e,n,o)=>s.useMemo(()=>e===!0?{title:n??o}:s.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:n??o},e):{title:e},[e,n,o]),Rt=wt;var Tt=globalThis&&globalThis.__rest||function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{const{prefixCls:o,component:t="article",className:l,rootClassName:i,setContentRef:f,children:c,direction:u,style:d}=e,a=Tt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:m,direction:y,className:C,style:T}=tt("typography"),x=u??y,j=f?je(n,f):n,g=m("typography",o),[L,U,O]=Te(g),S=Z(g,C,{[`${g}-rtl`]:x==="rtl"},l,i,U,O),_=Object.assign(Object.assign({},T),d);return L(s.createElement(t,Object.assign({className:S,style:_,ref:j},a),c))}),Le=jt;function Se(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function ie(e,n,o){return e===!0||e===void 0?n:e||o&&n}function _t(e){const n=document.createElement("em");e.appendChild(n);const o=e.getBoundingClientRect(),t=n.getBoundingClientRect();return e.removeChild(n),o.left>t.left||t.right>o.right||o.top>t.top||t.bottom>o.bottom}const fe=e=>["string","number"].includes(typeof e),kt=e=>{let{prefixCls:n,copied:o,locale:t,iconOnly:l,tooltips:i,icon:f,tabIndex:c,onCopy:u,loading:d}=e;const a=Se(i),m=Se(f),{copied:y,copy:C}=t??{},T=o?y:C,x=ie(a[o?1:0],T),j=typeof x=="string"?x:T;return s.createElement(de,{title:x},s.createElement("button",{type:"button",className:Z(`${n}-copy`,{[`${n}-copy-success`]:o,[`${n}-copy-icon-only`]:l}),onClick:u,"aria-label":j,tabIndex:c},o?ie(m[1],s.createElement(nt,null),!0):ie(m[0],d?s.createElement(st,null):s.createElement(ot,null),!0)))},Lt=kt,Q=s.forwardRef((e,n)=>{let{style:o,children:t}=e;const l=s.useRef(null);return s.useImperativeHandle(n,()=>({isExceed:()=>{const i=l.current;return i.scrollHeight>i.clientHeight},getHeight:()=>l.current.clientHeight})),s.createElement("span",{"aria-hidden":!0,ref:l,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},o)},t)}),Pt=e=>e.reduce((n,o)=>n+(fe(o)?String(o).length:1),0);function we(e,n){let o=0;const t=[];for(let l=0;ln){const d=n-o;return t.push(String(i).slice(0,d)),t}t.push(i),o=u}return e}const ae=0,ce=1,ue=2,pe=3,Re=4,Y={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function It(e){const{enableMeasure:n,width:o,text:t,children:l,rows:i,expanded:f,miscDeps:c,onEllipsis:u}=e,d=s.useMemo(()=>_e(t),[t]),a=s.useMemo(()=>Pt(d),[t]),m=s.useMemo(()=>l(d,!1),[t]),[y,C]=s.useState(null),T=s.useRef(null),x=s.useRef(null),j=s.useRef(null),g=s.useRef(null),L=s.useRef(null),[U,O]=s.useState(!1),[S,_]=s.useState(ae),[v,H]=s.useState(0),[B,z]=s.useState(null);K(()=>{_(n&&o&&a?ce:ae)},[o,t,i,n,d]),K(()=>{var b,E,h,D;if(S===ce){_(ue);const R=x.current&&getComputedStyle(x.current).whiteSpace;z(R)}else if(S===ue){const R=!!(!((b=j.current)===null||b===void 0)&&b.isExceed());_(R?pe:Re),C(R?[0,a]:null),O(R);const P=((E=j.current)===null||E===void 0?void 0:E.getHeight())||0,te=i===1?0:((h=g.current)===null||h===void 0?void 0:h.getHeight())||0,X=((D=L.current)===null||D===void 0?void 0:D.getHeight())||0,ne=Math.max(P,te+X);H(ne+1),u(R)}},[S]);const $=y?Math.ceil((y[0]+y[1])/2):0;K(()=>{var b;const[E,h]=y||[0,0];if(E!==h){const R=(((b=T.current)===null||b===void 0?void 0:b.getHeight())||0)>v;let P=$;h-E===1&&(P=R?E:h),C(R?[E,P]:[P,h])}},[y,$]);const V=s.useMemo(()=>{if(!n)return l(d,!1);if(S!==pe||!y||y[0]!==y[1]){const b=l(d,!1);return[Re,ae].includes(S)?b:s.createElement("span",{style:Object.assign(Object.assign({},Y),{WebkitLineClamp:i})},b)}return l(f?d:we(d,y[0]),U)},[f,S,y,d].concat(lt(c))),A={width:o,margin:0,padding:0,whiteSpace:B==="nowrap"?"normal":"inherit"};return s.createElement(s.Fragment,null,V,S===ue&&s.createElement(s.Fragment,null,s.createElement(Q,{style:Object.assign(Object.assign(Object.assign({},A),Y),{WebkitLineClamp:i}),ref:j},m),s.createElement(Q,{style:Object.assign(Object.assign(Object.assign({},A),Y),{WebkitLineClamp:i-1}),ref:g},m),s.createElement(Q,{style:Object.assign(Object.assign(Object.assign({},A),Y),{WebkitLineClamp:1}),ref:L},l([],!0))),S===pe&&y&&y[0]!==y[1]&&s.createElement(Q,{style:Object.assign(Object.assign({},A),{top:400}),ref:T},l(we(d,$),!0)),S===ce&&s.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const Nt=e=>{let{enableEllipsis:n,isEllipsis:o,children:t,tooltipProps:l}=e;return!(l!=null&&l.title)||!n?t:s.createElement(de,Object.assign({open:o?void 0:!1},l),t)},$t=Nt;var At=globalThis&&globalThis.__rest||function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{var o;const{prefixCls:t,className:l,style:i,type:f,disabled:c,children:u,ellipsis:d,editable:a,copyable:m,component:y,title:C}=e,T=At(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:j}=s.useContext(rt),[g]=it("Text"),L=s.useRef(null),U=s.useRef(null),O=x("typography",t),S=ke(T,["mark","code","delete","underline","strong","keyboard","italic"]),[_,v]=re(a),[H,B]=Ce(!1,{value:v.editing}),{triggerType:z=["icon"]}=v,$=r=>{var p;r&&((p=v.onStart)===null||p===void 0||p.call(v)),B(r)},V=St(H);K(()=>{var r;!H&&V&&((r=U.current)===null||r===void 0||r.focus())},[H]);const A=r=>{r==null||r.preventDefault(),$(!0)},b=r=>{var p;(p=v.onChange)===null||p===void 0||p.call(v,r),$(!1)},E=()=>{var r;(r=v.onCancel)===null||r===void 0||r.call(v),$(!1)},[h,D]=re(m),{copied:R,copyLoading:P,onClick:te}=xt({copyConfig:D,children:u}),[X,ne]=s.useState(!1),[me,Pe]=s.useState(!1),[ye,Ie]=s.useState(!1),[ge,Ne]=s.useState(!1),[$e,Ae]=s.useState(!0),[W,w]=re(d,{expandable:!1,symbol:r=>r?g==null?void 0:g.collapse:g==null?void 0:g.expand}),[M,De]=Ce(w.defaultExpanded||!1,{value:w.expanded}),k=W&&(!M||w.expandable==="collapsible"),{rows:F=1}=w,q=s.useMemo(()=>k&&(w.suffix!==void 0||w.onEllipsis||w.expandable||_||h),[k,w,_,h]);K(()=>{W&&!q&&(ne(xe("webkitLineClamp")),Pe(xe("textOverflow")))},[q,W]);const[I,Me]=s.useState(k),be=s.useMemo(()=>q?!1:F===1?me:X,[q,me,X]);K(()=>{Me(be&&k)},[be,k]);const Ee=k&&(I?ge:ye),Ue=k&&F===1&&I,se=k&&F>1&&I,He=(r,p)=>{var N;De(p.expanded),(N=w.onExpand)===null||N===void 0||N.call(w,r,p)},[ve,We]=s.useState(0),ze=r=>{let{offsetWidth:p}=r;We(p)},Ke=r=>{var p;Ie(r),ye!==r&&((p=w.onEllipsis)===null||p===void 0||p.call(w,r))};s.useEffect(()=>{const r=L.current;if(W&&I&&r){const p=_t(r);ge!==p&&Ne(p)}},[W,I,u,se,$e,ve]),s.useEffect(()=>{const r=L.current;if(typeof IntersectionObserver>"u"||!r||!I||!k)return;const p=new IntersectionObserver(()=>{Ae(!!r.offsetParent)});return p.observe(r),()=>{p.disconnect()}},[I,k]);const oe=Rt(w.tooltip,v.text,u),G=s.useMemo(()=>{if(!(!W||I))return[v.text,u,C,oe.title].find(fe)},[W,I,C,oe.title,Ee]);if(H)return s.createElement(dt,{value:(o=v.text)!==null&&o!==void 0?o:typeof u=="string"?u:"",onSave:b,onCancel:E,onEnd:v.onEnd,prefixCls:O,className:l,style:i,direction:j,component:y,maxLength:v.maxLength,autoSize:v.autoSize,enterIcon:v.enterIcon});const Be=()=>{const{expandable:r,symbol:p}=w;return r?s.createElement("button",{type:"button",key:"expand",className:`${O}-${M?"collapse":"expand"}`,onClick:N=>He(N,{expanded:!M}),"aria-label":M?g.collapse:g==null?void 0:g.expand},typeof p=="function"?p(M):p):null},Ve=()=>{if(!_)return;const{icon:r,tooltip:p,tabIndex:N}=v,le=_e(p)[0]||(g==null?void 0:g.edit),qe=typeof le=="string"?le:"";return z.includes("icon")?s.createElement(de,{key:"edit",title:p===!1?"":le},s.createElement("button",{type:"button",ref:U,className:`${O}-edit`,onClick:A,"aria-label":qe,tabIndex:N},r||s.createElement(ct,{role:"button"}))):null},Fe=()=>h?s.createElement(Lt,Object.assign({key:"copy"},D,{prefixCls:O,copied:R,locale:g,onCopy:te,loading:P,iconOnly:u==null})):null,Je=r=>[r&&Be(),Ve(),Fe()],Xe=r=>[r&&!M&&s.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Mt),w.suffix,Je(r)];return s.createElement(at,{onResize:ze,disabled:!k},r=>s.createElement($t,{tooltipProps:oe,enableEllipsis:k,isEllipsis:Ee},s.createElement(Le,Object.assign({className:Z({[`${O}-${f}`]:f,[`${O}-disabled`]:c,[`${O}-ellipsis`]:W,[`${O}-ellipsis-single-line`]:Ue,[`${O}-ellipsis-multiple-line`]:se},l),prefixCls:t,style:Object.assign(Object.assign({},i),{WebkitLineClamp:se?F:void 0}),component:y,ref:je(r,L,n),direction:j,onClick:z.includes("text")?A:void 0,"aria-label":G==null?void 0:G.toString(),title:C},S),s.createElement(It,{enableMeasure:k&&!I,text:u,rows:F,width:ve,onEllipsis:Ke,expanded:M,miscDeps:[R,M,P,_,h,g]},(p,N)=>Dt(e,s.createElement(s.Fragment,null,p.length>0&&N&&!M&&G?s.createElement("span",{key:"show-content","aria-hidden":!0},p):p,Xe(N)))))))}),ee=Ut;var Ht=globalThis&&globalThis.__rest||function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{var{ellipsis:o,rel:t}=e,l=Ht(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},l),{rel:t===void 0&&l.target==="_blank"?"noopener noreferrer":t});return delete i.navigate,s.createElement(ee,Object.assign({},i,{ref:n,ellipsis:!!o,component:"a"}))}),zt=Wt,Kt=s.forwardRef((e,n)=>s.createElement(ee,Object.assign({ref:n},e,{component:"div"}))),Bt=Kt;var Vt=globalThis&&globalThis.__rest||function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{var{ellipsis:o}=e,t=Vt(e,["ellipsis"]);const l=s.useMemo(()=>o&&typeof o=="object"?ke(o,["expandable","rows"]):o,[o]);return s.createElement(ee,Object.assign({ref:n},t,{ellipsis:l,component:"span"}))},Jt=s.forwardRef(Ft);var Xt=globalThis&&globalThis.__rest||function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{const{level:o=1}=e,t=Xt(e,["level"]),l=qt.includes(o)?`h${o}`:"h1";return s.createElement(ee,Object.assign({ref:n},t,{component:l}))}),Qt=Gt,J=Le;J.Text=Jt;J.Link=zt;J.Title=Qt;J.Paragraph=Bt;const en=J;export{en as T,ut as t}; +import{b as s,di as Te,b3 as Z,dj as Ge,c9 as Qe,dk as Ye,cs as he,bE as Ze,cW as et,bh as tt,dl as je,T as de,ct as nt,bL as st,dm as ot,bn as _e,dn as K,bk as lt,b9 as rt,bd as it,bb as ke,x as Ce,bD as at,ah as ct}from"./umi-5f6aeac9.js";import{i as xe}from"./styleChecker-68f8791b.js";function ut(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}const pt=e=>{const{prefixCls:n,"aria-label":o,className:t,style:l,direction:i,maxLength:f,autoSize:c=!0,value:u,onSave:d,onCancel:a,onEnd:m,component:y,enterIcon:C=s.createElement(Ye,null)}=e,T=s.useRef(null),x=s.useRef(!1),j=s.useRef(null),[g,L]=s.useState(u);s.useEffect(()=>{L(u)},[u]),s.useEffect(()=>{var b;if(!((b=T.current)===null||b===void 0)&&b.resizableTextArea){const{textArea:E}=T.current.resizableTextArea;E.focus();const{length:h}=E.value;E.setSelectionRange(h,h)}},[]);const U=b=>{let{target:E}=b;L(E.value.replace(/[\n\r]/g,""))},O=()=>{x.current=!0},S=()=>{x.current=!1},_=b=>{let{keyCode:E}=b;x.current||(j.current=E)},v=()=>{d(g.trim())},H=b=>{let{keyCode:E,ctrlKey:h,altKey:D,metaKey:R,shiftKey:P}=b;j.current!==E||x.current||h||D||R||P||(E===he.ENTER?(v(),m==null||m()):E===he.ESC&&a())},B=()=>{v()},[z,$,V]=Te(n),A=Z(n,`${n}-edit-content`,{[`${n}-rtl`]:i==="rtl",[`${n}-${y}`]:!!y},t,$,V);return z(s.createElement("div",{className:A,style:l},s.createElement(Ge,{ref:T,maxLength:f,value:g,onChange:U,onKeyDown:_,onKeyUp:H,onCompositionStart:O,onCompositionEnd:S,onBlur:B,"aria-label":o,rows:1,autoSize:c}),C!==null?Qe(C,{className:`${n}-edit-content-confirm`}):null))},dt=pt;var ft=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,o=[],t=0;t"u"){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=Oe[n.format]||Oe.default;window.clipboardData.setData(m,e)}else a.clipboardData.clearData(),a.clipboardData.setData(n.format,e);n.onCopy&&(a.preventDefault(),n.onCopy(a.clipboardData))}),document.body.appendChild(c),i.selectNodeContents(c),f.addRange(i);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");u=!0}catch(a){o&&console.error("unable to copy using execCommand: ",a),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),u=!0}catch(m){o&&console.error("unable to copy using clipboardData: ",m),o&&console.error("falling back to prompt"),t=gt("message"in n?n.message:yt),window.prompt(t,e)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(i):f.removeAllRanges()),c&&document.body.removeChild(c),l()}return u}var Et=bt;const vt=Ze(Et);var ht=globalThis&&globalThis.__awaiter||function(e,n,o,t){function l(i){return i instanceof o?i:new o(function(f){f(i)})}return new(o||(o=Promise))(function(i,f){function c(a){try{d(t.next(a))}catch(m){f(m)}}function u(a){try{d(t.throw(a))}catch(m){f(m)}}function d(a){a.done?i(a.value):l(a.value).then(c,u)}d((t=t.apply(e,n||[])).next())})};const Ct=e=>{let{copyConfig:n,children:o}=e;const[t,l]=s.useState(!1),[i,f]=s.useState(!1),c=s.useRef(null),u=()=>{c.current&&clearTimeout(c.current)},d={};n.format&&(d.format=n.format),s.useEffect(()=>u,[]);const a=et(m=>ht(void 0,void 0,void 0,function*(){var y;m==null||m.preventDefault(),m==null||m.stopPropagation(),f(!0);try{const C=typeof n.text=="function"?yield n.text():n.text;vt(C||ut(o,!0).join("")||"",d),f(!1),l(!0),u(),c.current=setTimeout(()=>{l(!1)},3e3),(y=n.onCopy)===null||y===void 0||y.call(n,m)}catch(C){throw f(!1),C}}));return{copied:t,copyLoading:i,onClick:a}},xt=Ct;function re(e,n){return s.useMemo(()=>{const o=!!e;return[o,Object.assign(Object.assign({},n),o&&typeof e=="object"?e:null)]},[e])}const Ot=e=>{const n=s.useRef(void 0);return s.useEffect(()=>{n.current=e}),n.current},St=Ot,wt=(e,n,o)=>s.useMemo(()=>e===!0?{title:n??o}:s.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:n??o},e):{title:e},[e,n,o]),Rt=wt;var Tt=globalThis&&globalThis.__rest||function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{const{prefixCls:o,component:t="article",className:l,rootClassName:i,setContentRef:f,children:c,direction:u,style:d}=e,a=Tt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:m,direction:y,className:C,style:T}=tt("typography"),x=u??y,j=f?je(n,f):n,g=m("typography",o),[L,U,O]=Te(g),S=Z(g,C,{[`${g}-rtl`]:x==="rtl"},l,i,U,O),_=Object.assign(Object.assign({},T),d);return L(s.createElement(t,Object.assign({className:S,style:_,ref:j},a),c))}),Le=jt;function Se(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function ie(e,n,o){return e===!0||e===void 0?n:e||o&&n}function _t(e){const n=document.createElement("em");e.appendChild(n);const o=e.getBoundingClientRect(),t=n.getBoundingClientRect();return e.removeChild(n),o.left>t.left||t.right>o.right||o.top>t.top||t.bottom>o.bottom}const fe=e=>["string","number"].includes(typeof e),kt=e=>{let{prefixCls:n,copied:o,locale:t,iconOnly:l,tooltips:i,icon:f,tabIndex:c,onCopy:u,loading:d}=e;const a=Se(i),m=Se(f),{copied:y,copy:C}=t??{},T=o?y:C,x=ie(a[o?1:0],T),j=typeof x=="string"?x:T;return s.createElement(de,{title:x},s.createElement("button",{type:"button",className:Z(`${n}-copy`,{[`${n}-copy-success`]:o,[`${n}-copy-icon-only`]:l}),onClick:u,"aria-label":j,tabIndex:c},o?ie(m[1],s.createElement(nt,null),!0):ie(m[0],d?s.createElement(st,null):s.createElement(ot,null),!0)))},Lt=kt,Q=s.forwardRef((e,n)=>{let{style:o,children:t}=e;const l=s.useRef(null);return s.useImperativeHandle(n,()=>({isExceed:()=>{const i=l.current;return i.scrollHeight>i.clientHeight},getHeight:()=>l.current.clientHeight})),s.createElement("span",{"aria-hidden":!0,ref:l,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},o)},t)}),Pt=e=>e.reduce((n,o)=>n+(fe(o)?String(o).length:1),0);function we(e,n){let o=0;const t=[];for(let l=0;ln){const d=n-o;return t.push(String(i).slice(0,d)),t}t.push(i),o=u}return e}const ae=0,ce=1,ue=2,pe=3,Re=4,Y={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function It(e){const{enableMeasure:n,width:o,text:t,children:l,rows:i,expanded:f,miscDeps:c,onEllipsis:u}=e,d=s.useMemo(()=>_e(t),[t]),a=s.useMemo(()=>Pt(d),[t]),m=s.useMemo(()=>l(d,!1),[t]),[y,C]=s.useState(null),T=s.useRef(null),x=s.useRef(null),j=s.useRef(null),g=s.useRef(null),L=s.useRef(null),[U,O]=s.useState(!1),[S,_]=s.useState(ae),[v,H]=s.useState(0),[B,z]=s.useState(null);K(()=>{_(n&&o&&a?ce:ae)},[o,t,i,n,d]),K(()=>{var b,E,h,D;if(S===ce){_(ue);const R=x.current&&getComputedStyle(x.current).whiteSpace;z(R)}else if(S===ue){const R=!!(!((b=j.current)===null||b===void 0)&&b.isExceed());_(R?pe:Re),C(R?[0,a]:null),O(R);const P=((E=j.current)===null||E===void 0?void 0:E.getHeight())||0,te=i===1?0:((h=g.current)===null||h===void 0?void 0:h.getHeight())||0,X=((D=L.current)===null||D===void 0?void 0:D.getHeight())||0,ne=Math.max(P,te+X);H(ne+1),u(R)}},[S]);const $=y?Math.ceil((y[0]+y[1])/2):0;K(()=>{var b;const[E,h]=y||[0,0];if(E!==h){const R=(((b=T.current)===null||b===void 0?void 0:b.getHeight())||0)>v;let P=$;h-E===1&&(P=R?E:h),C(R?[E,P]:[P,h])}},[y,$]);const V=s.useMemo(()=>{if(!n)return l(d,!1);if(S!==pe||!y||y[0]!==y[1]){const b=l(d,!1);return[Re,ae].includes(S)?b:s.createElement("span",{style:Object.assign(Object.assign({},Y),{WebkitLineClamp:i})},b)}return l(f?d:we(d,y[0]),U)},[f,S,y,d].concat(lt(c))),A={width:o,margin:0,padding:0,whiteSpace:B==="nowrap"?"normal":"inherit"};return s.createElement(s.Fragment,null,V,S===ue&&s.createElement(s.Fragment,null,s.createElement(Q,{style:Object.assign(Object.assign(Object.assign({},A),Y),{WebkitLineClamp:i}),ref:j},m),s.createElement(Q,{style:Object.assign(Object.assign(Object.assign({},A),Y),{WebkitLineClamp:i-1}),ref:g},m),s.createElement(Q,{style:Object.assign(Object.assign(Object.assign({},A),Y),{WebkitLineClamp:1}),ref:L},l([],!0))),S===pe&&y&&y[0]!==y[1]&&s.createElement(Q,{style:Object.assign(Object.assign({},A),{top:400}),ref:T},l(we(d,$),!0)),S===ce&&s.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const Nt=e=>{let{enableEllipsis:n,isEllipsis:o,children:t,tooltipProps:l}=e;return!(l!=null&&l.title)||!n?t:s.createElement(de,Object.assign({open:o?void 0:!1},l),t)},$t=Nt;var At=globalThis&&globalThis.__rest||function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{var o;const{prefixCls:t,className:l,style:i,type:f,disabled:c,children:u,ellipsis:d,editable:a,copyable:m,component:y,title:C}=e,T=At(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:j}=s.useContext(rt),[g]=it("Text"),L=s.useRef(null),U=s.useRef(null),O=x("typography",t),S=ke(T,["mark","code","delete","underline","strong","keyboard","italic"]),[_,v]=re(a),[H,B]=Ce(!1,{value:v.editing}),{triggerType:z=["icon"]}=v,$=r=>{var p;r&&((p=v.onStart)===null||p===void 0||p.call(v)),B(r)},V=St(H);K(()=>{var r;!H&&V&&((r=U.current)===null||r===void 0||r.focus())},[H]);const A=r=>{r==null||r.preventDefault(),$(!0)},b=r=>{var p;(p=v.onChange)===null||p===void 0||p.call(v,r),$(!1)},E=()=>{var r;(r=v.onCancel)===null||r===void 0||r.call(v),$(!1)},[h,D]=re(m),{copied:R,copyLoading:P,onClick:te}=xt({copyConfig:D,children:u}),[X,ne]=s.useState(!1),[me,Pe]=s.useState(!1),[ye,Ie]=s.useState(!1),[ge,Ne]=s.useState(!1),[$e,Ae]=s.useState(!0),[W,w]=re(d,{expandable:!1,symbol:r=>r?g==null?void 0:g.collapse:g==null?void 0:g.expand}),[M,De]=Ce(w.defaultExpanded||!1,{value:w.expanded}),k=W&&(!M||w.expandable==="collapsible"),{rows:F=1}=w,q=s.useMemo(()=>k&&(w.suffix!==void 0||w.onEllipsis||w.expandable||_||h),[k,w,_,h]);K(()=>{W&&!q&&(ne(xe("webkitLineClamp")),Pe(xe("textOverflow")))},[q,W]);const[I,Me]=s.useState(k),be=s.useMemo(()=>q?!1:F===1?me:X,[q,me,X]);K(()=>{Me(be&&k)},[be,k]);const Ee=k&&(I?ge:ye),Ue=k&&F===1&&I,se=k&&F>1&&I,He=(r,p)=>{var N;De(p.expanded),(N=w.onExpand)===null||N===void 0||N.call(w,r,p)},[ve,We]=s.useState(0),ze=r=>{let{offsetWidth:p}=r;We(p)},Ke=r=>{var p;Ie(r),ye!==r&&((p=w.onEllipsis)===null||p===void 0||p.call(w,r))};s.useEffect(()=>{const r=L.current;if(W&&I&&r){const p=_t(r);ge!==p&&Ne(p)}},[W,I,u,se,$e,ve]),s.useEffect(()=>{const r=L.current;if(typeof IntersectionObserver>"u"||!r||!I||!k)return;const p=new IntersectionObserver(()=>{Ae(!!r.offsetParent)});return p.observe(r),()=>{p.disconnect()}},[I,k]);const oe=Rt(w.tooltip,v.text,u),G=s.useMemo(()=>{if(!(!W||I))return[v.text,u,C,oe.title].find(fe)},[W,I,C,oe.title,Ee]);if(H)return s.createElement(dt,{value:(o=v.text)!==null&&o!==void 0?o:typeof u=="string"?u:"",onSave:b,onCancel:E,onEnd:v.onEnd,prefixCls:O,className:l,style:i,direction:j,component:y,maxLength:v.maxLength,autoSize:v.autoSize,enterIcon:v.enterIcon});const Be=()=>{const{expandable:r,symbol:p}=w;return r?s.createElement("button",{type:"button",key:"expand",className:`${O}-${M?"collapse":"expand"}`,onClick:N=>He(N,{expanded:!M}),"aria-label":M?g.collapse:g==null?void 0:g.expand},typeof p=="function"?p(M):p):null},Ve=()=>{if(!_)return;const{icon:r,tooltip:p,tabIndex:N}=v,le=_e(p)[0]||(g==null?void 0:g.edit),qe=typeof le=="string"?le:"";return z.includes("icon")?s.createElement(de,{key:"edit",title:p===!1?"":le},s.createElement("button",{type:"button",ref:U,className:`${O}-edit`,onClick:A,"aria-label":qe,tabIndex:N},r||s.createElement(ct,{role:"button"}))):null},Fe=()=>h?s.createElement(Lt,Object.assign({key:"copy"},D,{prefixCls:O,copied:R,locale:g,onCopy:te,loading:P,iconOnly:u==null})):null,Je=r=>[r&&Be(),Ve(),Fe()],Xe=r=>[r&&!M&&s.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Mt),w.suffix,Je(r)];return s.createElement(at,{onResize:ze,disabled:!k},r=>s.createElement($t,{tooltipProps:oe,enableEllipsis:k,isEllipsis:Ee},s.createElement(Le,Object.assign({className:Z({[`${O}-${f}`]:f,[`${O}-disabled`]:c,[`${O}-ellipsis`]:W,[`${O}-ellipsis-single-line`]:Ue,[`${O}-ellipsis-multiple-line`]:se},l),prefixCls:t,style:Object.assign(Object.assign({},i),{WebkitLineClamp:se?F:void 0}),component:y,ref:je(r,L,n),direction:j,onClick:z.includes("text")?A:void 0,"aria-label":G==null?void 0:G.toString(),title:C},S),s.createElement(It,{enableMeasure:k&&!I,text:u,rows:F,width:ve,onEllipsis:Ke,expanded:M,miscDeps:[R,M,P,_,h,g]},(p,N)=>Dt(e,s.createElement(s.Fragment,null,p.length>0&&N&&!M&&G?s.createElement("span",{key:"show-content","aria-hidden":!0},p):p,Xe(N)))))))}),ee=Ut;var Ht=globalThis&&globalThis.__rest||function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{var{ellipsis:o,rel:t}=e,l=Ht(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},l),{rel:t===void 0&&l.target==="_blank"?"noopener noreferrer":t});return delete i.navigate,s.createElement(ee,Object.assign({},i,{ref:n,ellipsis:!!o,component:"a"}))}),zt=Wt,Kt=s.forwardRef((e,n)=>s.createElement(ee,Object.assign({ref:n},e,{component:"div"}))),Bt=Kt;var Vt=globalThis&&globalThis.__rest||function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{var{ellipsis:o}=e,t=Vt(e,["ellipsis"]);const l=s.useMemo(()=>o&&typeof o=="object"?ke(o,["expandable","rows"]):o,[o]);return s.createElement(ee,Object.assign({ref:n},t,{ellipsis:l,component:"span"}))},Jt=s.forwardRef(Ft);var Xt=globalThis&&globalThis.__rest||function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{const{level:o=1}=e,t=Xt(e,["level"]),l=qt.includes(o)?`h${o}`:"h1";return s.createElement(ee,Object.assign({ref:n},t,{component:l}))}),Qt=Gt,J=Le;J.Text=Jt;J.Link=zt;J.Title=Qt;J.Paragraph=Bt;const en=J;export{en as T,ut as t}; diff --git a/web/dist/assets/index-2656f18d.js b/web/dist/assets/index-2656f18d.js new file mode 100644 index 0000000000000000000000000000000000000000..9b145ff8e225ff47687bffc6644e06caa403b65a --- /dev/null +++ b/web/dist/assets/index-2656f18d.js @@ -0,0 +1 @@ +import{j as e,B as i,a0 as n}from"./umi-5f6aeac9.js";import{C as a}from"./index-55d2ebbc.js";import{T as o}from"./index-d4ea9132.js";import{P as p}from"./index-e1b2522d.js";import"./index-13cae3f4.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./styleChecker-68f8791b.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-25e4c7e3.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-3f6a8b58.js";const m=[{name:"语雀的天空",image:"https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg",desc:"我是一条测试的描述"},{name:"Ant Design",image:"https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg",desc:"我是一条测试的描述"},{name:"蚂蚁金服体验科技",image:"https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg",desc:"我是一条测试的描述"},{name:"TechUI",image:"https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg",desc:"我是一条测试的描述"}],S=()=>e.jsx(a,{title:"基础列表",children:e.jsx(p,{toolBarRender:()=>[e.jsx(i,{type:"primary",children:"新建"},"add")],onRow:t=>({onMouseEnter:()=>{console.log(t)},onClick:()=>{console.log(t)}}),rowKey:"name",headerTitle:"基础列表",tooltip:"基础列表的配置",dataSource:m,showActions:"hover",showExtra:"hover",metas:{title:{dataIndex:"name"},avatar:{dataIndex:"image"},description:{dataIndex:"desc"},subTitle:{render:()=>e.jsxs(n,{size:0,children:[e.jsx(o,{color:"blue",children:"Ant Design"}),e.jsx(o,{color:"#5BD8A6",children:"TechUI"})]})},actions:{render:(t,r)=>[e.jsx("a",{href:r.html_url,target:"_blank",rel:"noopener noreferrer",children:"链路"},"link"),e.jsx("a",{href:r.html_url,target:"_blank",rel:"noopener noreferrer",children:"报警"},"warning"),e.jsx("a",{href:r.html_url,target:"_blank",rel:"noopener noreferrer",children:"查看"},"view")]}}})});export{S as default}; diff --git a/web/dist/assets/index-286e0a64.js b/web/dist/assets/index-286e0a64.js deleted file mode 100644 index 0b5f1dccfa150f274d02148ec9942d4140d35fba..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-286e0a64.js +++ /dev/null @@ -1 +0,0 @@ -import{aN as g,Y as h,af as f,r as j,j as e,ah as y,S as k,aO as C,aP as S,ai as w,a8 as z,W as i,$ as o,al as l,aQ as P,V as n,aR as I}from"./umi-2ee4055f.js";import{L as T}from"./index-bfbbbffc.js";import{P as b}from"./index-77afe57c.js";const O=()=>{const c=g(),{initialState:d}=h("@@initialState"),{token:m}=f.useToken(),[a,u]=j.useState("account"),p=async s=>{const t=await I({...s,loginType:a});localStorage.setItem("app","api"),localStorage.setItem("x-user-token",t.data.token),localStorage.setItem("x-user-refresh-token",t.data.refresh_token),n.success("登录成功!"),setTimeout(()=>{window.location.href="/"},100)},x=[{key:"account",label:"账号密码登录"},{key:"email",label:"邮箱登录"}],r=()=>{n.warning("敬请期待").then()};return e.jsx("div",{style:{backgroundColor:m.colorBgContainer,maxWidth:600,margin:"50px auto"},children:e.jsxs(T,{logo:d.webSetting.logo||"/favicon.png",title:"用户登录",subTitle:"登录平台账户,开启全新旅程!",actions:e.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[e.jsx(y,{plain:!0,children:e.jsx("span",{style:{color:"#CCC",fontWeight:"normal",fontSize:14},children:"其他登录方式"})}),e.jsxs(k,{align:"center",size:24,children:[e.jsx(C,{onClick:r,style:{fontSize:20,color:"#4cafe9"}}),e.jsx(S,{onClick:r,style:{fontSize:20,color:"rgb(0,172,132)"}}),e.jsx(w,{onClick:r,style:{fontSize:20,color:"#1677FF"}})]})]}),onFinish:p,children:[e.jsx(z,{centered:!0,activeKey:a,onChange:s=>u(s),items:x}),a==="account"&&e.jsxs(e.Fragment,{children:[e.jsx(i,{name:"username",fieldProps:{size:"large",prefix:e.jsx(o,{className:"prefixIcon"})},placeholder:"用户名: user",rules:[{required:!0,message:"请输入用户名!"}]}),e.jsx(i.Password,{name:"password",fieldProps:{size:"large",prefix:e.jsx(l,{className:"prefixIcon"})},placeholder:"密码: 123456",rules:[{required:!0,message:"请输入密码!"}]})]}),a==="email"&&e.jsxs(e.Fragment,{children:[e.jsx(i,{fieldProps:{size:"large",prefix:e.jsx(o,{className:"prefixIcon"})},name:"email",placeholder:"邮箱",rules:[{required:!0,message:"请输入邮箱!"},{pattern:/^[\w\\.-]+@[\w\\.-]+\.\w+$/,message:"邮箱格式错误!"}]}),e.jsx(b,{fieldProps:{size:"large",prefix:e.jsx(l,{className:"prefixIcon"})},phoneName:"email",captchaProps:{size:"large"},placeholder:"请输入验证码",captchaTextRender:(s,t)=>s?`${t} 获取验证码`:"获取验证码",name:"captcha",rules:[{required:!0,message:"请输入验证码!"}],onGetCaptcha:async s=>{await P({email:s}),n.success("获取验证码成功!")}})]}),e.jsxs("div",{style:{marginBlockEnd:24},children:[e.jsx("a",{onClick:()=>c("/client/reg"),children:"去注册"}),e.jsx("a",{style:{float:"right"},children:"忘记密码"})]})]})})};export{O as default}; diff --git a/web/dist/assets/index-80fd56e2.js b/web/dist/assets/index-2886ceb8.js similarity index 56% rename from web/dist/assets/index-80fd56e2.js rename to web/dist/assets/index-2886ceb8.js index e44d043eb42913ca4dcde382af0ddbb072b7cb6f..22d36e2141b46601106863be45b2f69884f073d1 100644 --- a/web/dist/assets/index-80fd56e2.js +++ b/web/dist/assets/index-2886ceb8.js @@ -1 +1 @@ -import{r as o,as as d,j as e}from"./umi-2ee4055f.js";import{C as p}from"./index-8a549704.js";import{T as c}from"./Table-0e254f81.js";import{X as u}from"./index-2f3e26df.js";import x from"./index-2e4df2d6.js";import"./index-275c5384.js";import"./styleChecker-0860b7b3.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./index-9456f6ef.js";const E=()=>{const[r,s]=o.useState({page:1,pageSize:10}),[i,n]=o.useState([]);o.useEffect(()=>{d(r).then(t=>{n(t.data.data)})},[r]);const m=[{title:"说明",dataIndex:"describe"},{title:"类型",dataIndex:"scene",render:(t,a)=>e.jsx(u,{value:a.scene,dict:"moneyLog"})},{title:"变动金额",dataIndex:"money"}];return e.jsx(x,{children:e.jsx(p,{title:"余额记录",children:e.jsx(c,{columns:m,dataSource:i,bordered:!0,rowKey:"id",pagination:{onChange:(t,a)=>{s({page:t,pageSize:a})}}})})})};export{E as default}; +import{b as o,az as d,j as e}from"./umi-5f6aeac9.js";import{C as p}from"./index-55d2ebbc.js";import{T as c}from"./Table-1c2e5828.js";import{X as u}from"./index-53e65e71.js";import x from"./index-6683018b.js";import"./index-13cae3f4.js";import"./styleChecker-68f8791b.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./index-d4ea9132.js";const E=()=>{const[r,s]=o.useState({page:1,pageSize:10}),[i,n]=o.useState([]);o.useEffect(()=>{d(r).then(t=>{n(t.data.data)})},[r]);const m=[{title:"说明",dataIndex:"describe"},{title:"类型",dataIndex:"scene",render:(t,a)=>e.jsx(u,{value:a.scene,dict:"moneyLog"})},{title:"变动金额",dataIndex:"money"}];return e.jsx(x,{children:e.jsx(p,{title:"余额记录",children:e.jsx(c,{columns:m,dataSource:i,bordered:!0,rowKey:"id",pagination:{onChange:(t,a)=>{s({page:t,pageSize:a})}}})})})};export{E as default}; diff --git a/web/dist/assets/index-2c4aebf3.js b/web/dist/assets/index-2c4aebf3.js new file mode 100644 index 0000000000000000000000000000000000000000..e39fd9ee58708dfdf4c65bc3c38b7c6dfcd82cee --- /dev/null +++ b/web/dist/assets/index-2c4aebf3.js @@ -0,0 +1 @@ +import{au as $,R as x,H as N,b as l,w as p,s as H,j as g,_ as i,ad as A,B as L,E as F,F as f}from"./umi-5f6aeac9.js";var V=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],W=x.forwardRef(function(r,w){var T=N.useFormInstance(),S=l.useState(r.countDown||60),P=p(S,2),d=P[0],k=P[1],j=l.useState(!1),b=p(j,2),o=b[0],c=b[1],I=l.useState(),y=p(I,2),D=y[0],m=y[1];r.rules,r.name;var v=r.phoneName,s=r.fieldProps,h=r.onTiming,R=r.captchaTextRender,E=R===void 0?function(a,n){return a?"".concat(n," 秒后重新获取"):"获取验证码"}:R,B=r.captchaProps,G=H(r,V),C=function(){var a=F(f().mark(function n(u){return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,m(!0),t.next=4,G.onGetCaptcha(u);case 4:m(!1),c(!0),t.next=13;break;case 8:t.prev=8,t.t0=t.catch(0),c(!1),m(!1),console.log(t.t0);case 13:case"end":return t.stop()}},n,null,[[0,8]])}));return function(u){return a.apply(this,arguments)}}();return l.useImperativeHandle(w,function(){return{startTiming:function(){return c(!0)},endTiming:function(){return c(!1)}}}),l.useEffect(function(){var a=0,n=r.countDown;return o&&(a=window.setInterval(function(){k(function(u){return u<=1?(c(!1),clearInterval(a),n||60):u-1})},1e3)),function(){return clearInterval(a)}},[o]),l.useEffect(function(){h&&h(d)},[d,h]),g.jsxs("div",{style:i(i({},s==null?void 0:s.style),{},{display:"flex",alignItems:"center"}),ref:w,children:[g.jsx(A,i(i({},s),{},{style:i({flex:1,transition:"width .3s",marginRight:8},s==null?void 0:s.style)})),g.jsx(L,i(i({style:{display:"block"},disabled:o,loading:D},B),{},{onClick:F(f().mark(function a(){var n;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!v){e.next=9;break}return e.next=4,T.validateFields([v].flat(1));case 4:return n=T.getFieldValue([v].flat(1)),e.next=7,C(n);case 7:e.next=11;break;case 9:return e.next=11,C("");case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.log(e.t0);case 16:case"end":return e.stop()}},a,null,[[0,13]])})),children:E(o,d)}))]})}),q=$(W);const J=q;export{J as P}; diff --git a/web/dist/assets/index-2c8739fc.js b/web/dist/assets/index-2c8739fc.js new file mode 100644 index 0000000000000000000000000000000000000000..44f42750f98e680cf44633a2bf6f0135070c99d7 --- /dev/null +++ b/web/dist/assets/index-2c8739fc.js @@ -0,0 +1 @@ +import{r as e,aA as i,b as a,j as r}from"./umi-5f6aeac9.js";import{C as m}from"./index-55d2ebbc.js";import{AddressBookColumns as p}from"./constants-723e3af0.js";import{P as d}from"./Table-1cf08bb2.js";import"./index-13cae3f4.js";import"./Table-1c2e5828.js";import"./styleChecker-68f8791b.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-25e4c7e3.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";async function n(){return(await e("/admin/project/getAddressBook",{method:"GET"})).data}const I=()=>{const{data:t,loading:o,runAsync:s}=i(async()=>await n(),{manual:!0});return a.useEffect(()=>{s()},[]),r.jsx("div",{className:"dashboard-address-book",children:r.jsx(m,{title:"人员通讯录",style:{width:"100%"},children:r.jsx(d,{headerTitle:null,columns:p,dataSource:t,loading:o,toolBarRender:!1,search:!1})})})};export{I as default}; diff --git a/web/dist/assets/index-2e4df2d6.js b/web/dist/assets/index-2e4df2d6.js deleted file mode 100644 index b697f1f2920723602c5965a846852614e0d863e3..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-2e4df2d6.js +++ /dev/null @@ -1 +0,0 @@ -import{bS as I,b5 as le,g as ce,R as a,bc as de,aV as B,br as M,bT as fe,aN as ue,Y as he,j as c,e as pe,f as U,S as xe,A as ge,$ as me,C as ve,aC as ye,F as z}from"./umi-2ee4055f.js";function F(e){let r;const t=s=>()=>{r=null,e.apply(void 0,le(s))},o=function(){if(r==null){for(var s=arguments.length,u=new Array(s),d=0;d{I.cancel(r),r=null},o}const Se=e=>{const{componentCls:r}=e;return{[r]:{position:"fixed",zIndex:e.zIndexPopup}}},we=e=>({zIndexPopup:e.zIndexBase+10}),be=ce("Affix",Se,we);function b(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function L(e,r,t){if(t!==void 0&&Math.round(r.top)>Math.round(e.top)-t)return t+r.top}function _(e,r,t){if(t!==void 0&&Math.round(r.bottom){var t;const{style:o,offsetTop:s,offsetBottom:u,prefixCls:d,className:K,rootClassName:W,children:X,target:p,onChange:R,onTestUpdatePosition:Ee}=e,$=Re(e,["style","offsetTop","offsetBottom","prefixCls","className","rootClassName","children","target","onChange","onTestUpdatePosition"]),{getPrefixCls:q,getTargetContainer:D}=a.useContext(de),j=q("affix",d),[Y,J]=a.useState(!1),[h,Q]=a.useState(),[Z,ee]=a.useState(),T=a.useRef(H),C=a.useRef(null),x=a.useRef(null),g=a.useRef(null),E=a.useRef(null),S=a.useRef(null),f=(t=p??D)!==null&&t!==void 0?t:Te,A=u===void 0&&s===void 0?0:s,te=()=>{if(T.current!==V||!E.current||!g.current||!f)return;const l=f();if(l){const i={status:H},n=b(g.current);if(n.top===0&&n.left===0&&n.width===0&&n.height===0)return;const v=b(l),y=L(n,v,A),N=_(n,v,u);y!==void 0?(i.affixStyle={position:"fixed",top:y,width:n.width,height:n.height},i.placeholderStyle={width:n.width,height:n.height}):N!==void 0&&(i.affixStyle={position:"fixed",bottom:N,width:n.width,height:n.height},i.placeholderStyle={width:n.width,height:n.height}),i.lastAffix=!!i.affixStyle,Y!==i.lastAffix&&(R==null||R(i.lastAffix)),T.current=i.status,Q(i.affixStyle),ee(i.placeholderStyle),J(i.lastAffix)}},P=()=>{T.current=V,te()},m=F(()=>{P()}),w=F(()=>{if(f&&h){const l=f();if(l&&g.current){const i=b(l),n=b(g.current),v=L(n,i,A),y=_(n,i,u);if(v!==void 0&&h.top===v||y!==void 0&&h.bottom===y)return}}P()}),O=()=>{const l=f==null?void 0:f();l&&(k.forEach(i=>{var n;x.current&&((n=C.current)===null||n===void 0||n.removeEventListener(i,x.current)),l==null||l.addEventListener(i,w)}),C.current=l,x.current=w)},ne=()=>{S.current&&(clearTimeout(S.current),S.current=null);const l=f==null?void 0:f();k.forEach(i=>{var n;l==null||l.removeEventListener(i,w),x.current&&((n=C.current)===null||n===void 0||n.removeEventListener(i,x.current))}),m.cancel(),w.cancel()};a.useImperativeHandle(r,()=>({updatePosition:m})),a.useEffect(()=>(S.current=setTimeout(O),()=>ne()),[]),a.useEffect(()=>{O()},[p,h]),a.useEffect(()=>{m()},[p,s,u]);const[re,oe,se]=be(j),ie=B(W,oe,j,se),ae=B({[ie]:h});return re(a.createElement(M,{onResize:m},a.createElement("div",Object.assign({style:o,className:K,ref:g},$),h&&a.createElement("div",{style:Z,"aria-hidden":"true"}),a.createElement("div",{className:ae,ref:E,style:h},a.createElement(M,{onResize:m},X)))))}),je=Ce,G=e=>{let r=e==null?void 0:e.map(t=>{if(t.children){let o=G(t.children);return{key:t.path,children:o,type:"group",label:t.locale?c.jsx(z,{id:t.locale}):t.name}}return{key:t.path,label:t.locale?c.jsx(z,{id:t.locale}):t.name}});return r||[]},Pe=e=>{const{pathname:r}=fe(),{children:t}=e;let o=ue();const{initialState:s}=he("@@initialState"),u={components:{Menu:{activeBarWidth:3,itemMarginBlock:0,itemMarginInline:0,itemBorderRadius:0}}};return c.jsxs(pe,{wrap:!1,gutter:20,style:{maxWidth:1460,width:"100%",margin:"0 auto",paddingTop:20},children:[c.jsx(U,{flex:"260px",children:c.jsx(je,{offsetTop:70,children:c.jsxs("div",{style:{background:"#fff",paddingBottom:20},children:[c.jsxs(xe,{style:{padding:20,borderBottom:"1px solid #eee",width:"100%"},children:[c.jsx(ge,{icon:c.jsx(me,{}),size:52,src:s.currentUser.avatar_url}),c.jsxs("div",{children:[c.jsx("div",{children:s.currentUser.nickname||s.currentUser.name||s.currentUser.username}),c.jsx("div",{style:{marginTop:"10px",color:"#8a919f"},children:"一个热爱开发的同学"})]})]}),c.jsx(ve,{theme:u,children:c.jsx(ye,{style:{border:"none"},mode:"inline",defaultSelectedKeys:["index"],items:G(s.menus.find(d=>d.key==="user").children),selectedKeys:[r],onSelect:d=>{o(d.key)}})})]})})}),c.jsx(U,{flex:"auto",children:t})]})};export{Pe as default}; diff --git a/web/dist/assets/index-3330558a.js b/web/dist/assets/index-3330558a.js new file mode 100644 index 0000000000000000000000000000000000000000..bc3a0ea42a16521e22524639b734e0de6f3c1270 --- /dev/null +++ b/web/dist/assets/index-3330558a.js @@ -0,0 +1 @@ +import{Y as s,j as e,aU as m,a0 as p,a5 as d,a6 as n}from"./umi-5f6aeac9.js";import l from"./AddMoneyLog-a8e141bb.js";import{X as c}from"./index-53e65e71.js";import{X as u}from"./index-109f15ec.js";import"./index-e3aca980.js";import"./index-d4ea9132.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./index-872d0bf8.js";import"./index-f4ebd759.js";import"./index-34d06e04.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./index-3fcbb702.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./table-0fa6c309.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const x="/user.userMoneyLog",W=()=>{const{getDictionaryData:o}=s("dictModel"),i=r=>e.jsxs(e.Fragment,{children:[e.jsxs("p",{children:["用户ID:",r.id]}),e.jsxs("p",{children:["用户昵称:",r.nickname]}),e.jsxs("p",{children:["用户名:",r.username]}),e.jsxs("p",{children:["用户邮箱:",r.email]}),e.jsxs("p",{children:["用户余额:",r.money," ¥"]})]}),a=[{valueType:"digit",title:"记录ID",order:99,hideInForm:!0,dataIndex:"id"},{valueType:"text",title:"用户 ID",order:98,dataIndex:"user_id",hideInForm:!0,hideInTable:!0},{valueType:"text",title:"用户",order:98,dataIndex:"user_Id",search:!1,render:(r,t)=>e.jsx(m,{placement:"left",content:i(t.user),title:t.user.nickname,children:e.jsxs(p,{style:{display:"flex"},children:[e.jsx(d,{src:t.user.avatar_url,icon:e.jsx(n,{})}),t.user.nickname]})})},{valueType:"text",title:"类型",order:93,dataIndex:"scene",request:async()=>o("moneyLog"),render:(r,t)=>e.jsx(c,{value:t.scene,dict:"moneyLog"})},{valueType:"money",title:"变动金额",order:91,dataIndex:"money",search:!1},{valueType:"text",title:"描述/备注",order:90,search:!1,dataIndex:"describe"},{valueType:"date",title:"创建时间",order:1,hideInForm:!0,dataIndex:"create_time"}];return e.jsx(u,{tableApi:x,columns:a,headerTitle:"用户余额变动记录",addShow:!1,operateShow:!0,rowSelectionShow:!0,editShow:!1,deleteShow:!0,accessName:"user.moneyLog",toolBarRender:()=>[e.jsx(l,{},"add")]})};export{W as default}; diff --git a/web/dist/assets/index-3376120c.js b/web/dist/assets/index-3376120c.js new file mode 100644 index 0000000000000000000000000000000000000000..f059ad5e35c8f7c00a7ba91c11e367bafc30bee2 --- /dev/null +++ b/web/dist/assets/index-3376120c.js @@ -0,0 +1 @@ +import{P as r}from"./umi-5f6aeac9.js";var m=r.Group;export{m as P}; diff --git a/web/dist/assets/index-34d06e04.js b/web/dist/assets/index-34d06e04.js new file mode 100644 index 0000000000000000000000000000000000000000..7765a55ae8e4bebb815ced58aaa5a4d7956a3154 --- /dev/null +++ b/web/dist/assets/index-34d06e04.js @@ -0,0 +1 @@ +import{R as a,s as p,j as i,G as P,_ as d}from"./umi-5f6aeac9.js";var l=["fieldProps","proFieldProps"],x=function(r,e){var o=r.fieldProps,s=r.proFieldProps,t=p(r,l);return i.jsx(P,d({ref:e,valueType:"textarea",fieldProps:o,proFieldProps:s},t))};const m=a.forwardRef(x);export{m as P}; diff --git a/web/dist/assets/index-35a1571f.js b/web/dist/assets/index-35a1571f.js deleted file mode 100644 index a5774972f4745af6dd27d0feea2ab61a310ef92f..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-35a1571f.js +++ /dev/null @@ -1 +0,0 @@ -import{Y as I,ay as f,r as h,j as t,aB as n,A as v,V as o}from"./umi-2ee4055f.js";import{P}from"./index-ea2ed5fc.js";import g from"./UpdatePassword-8d946009.js";import{X as y}from"./index-2f3e26df.js";import{U as T}from"./index-5c18ae40.js";import{X as j}from"./index-1c416090.js";import{g as b}from"./utils-b0233852.js";import{l as q,d as A}from"./table-c83b9d9d.js";import"./ActionButton-a9da0b15.js";import"./index-9456f6ef.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./Table-3849f584.js";import"./Table-0e254f81.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./RouteContext-8fa10ad2.js";const p="/admin",oe=()=>{const{getDictionaryData:u}=I("dictModel"),c=[{title:"用户ID",dataIndex:"id",hideInForm:!0,hideInTable:!0,colProps:{md:4}},{title:"用户ID",dataIndex:"id",readonly:!0,colProps:{md:4},hideInSearch:!0},{title:"用户名",dataIndex:"username",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:7}},{title:"昵称",dataIndex:"nickname",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:7}},{title:"性别",dataIndex:"sex",valueType:"radio",request:async()=>await u("sex"),render:(e,r)=>t.jsx(y,{value:r.sex,dict:"sex"}),colProps:{md:6}},{title:"邮箱",dataIndex:"email",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"管理员分组",dataIndex:"group_id",valueType:"treeSelect",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},fieldProps:{fieldNames:{label:"name",value:"id",children:"children"}},request:async()=>(await q("/adminGroup/list")).data.data,colProps:{md:6}},{title:"状态",dataIndex:"status",valueType:"radioButton",valueEnum:{0:{text:"禁用",status:"Error"},1:{text:"启用",status:"Success"}},formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"手机号",dataIndex:"mobile",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"头像",dataIndex:"avatar_url",hideInSearch:!0,valueType:"avatar",hideInForm:!0,render:(e,r)=>t.jsx(v,{src:r.avatar_url})},{title:"头像",dataIndex:"avatar_id",hideInSearch:!0,valueType:"avatar",hideInTable:!0,renderFormItem:(e,r,s)=>t.jsx(T,{form:s,dataIndex:"avatar_id",api:b("/admin/file.upload/image?group_id=14"),defaultFile:s.getFieldValue("avatar_url"),crop:!0}),colProps:{md:12}},{valueType:"dependency",hideInTable:!0,hideInSearch:!0,name:["id"],columns:({id:e})=>e?[]:[{title:"密码",dataIndex:"password",valueType:"password",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"确认密码",dataIndex:"rePassword",valueType:"password",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}}]},{valueType:"date",title:"创建时间",hideInForm:!0,dataIndex:"create_time"}],d=f(),m=h.useRef(),x=async e=>{const r=o.loading("正在删除");if(!e){o.warning("请选择需要删除的节点");return}let s=e.map(a=>a.id);A(p+"/delete",{ids:s.join()||""}).then(a=>{var i,l;a.success?(o.success(a.msg),(l=(i=m.current)==null?void 0:i.reloadAndRest)==null||l.call(i)):o.warning(a.msg)}).finally(()=>r())};return t.jsx(j,{headerTitle:"管理员列表",tableApi:p,columns:c,accessName:"admin.list",deleteShow:!1,actionRef:m,operateRender:e=>t.jsxs(t.Fragment,{children:[t.jsx(n,{accessible:d.buttonAccess("admin.list.updatePwd"),children:t.jsx(g,{record:e})}),e.id!==1?t.jsx(n,{accessible:d.buttonAccess("admin.list.delete"),children:t.jsx(P,{title:"Delete the task",description:"你确定要删除这条数据吗?",onConfirm:()=>{x([e])},okText:"确认",cancelText:"取消",children:t.jsx("a",{children:"删除"})})}):null]})})};export{oe as default}; diff --git a/web/dist/assets/index-37bb2b91.js b/web/dist/assets/index-37bb2b91.js deleted file mode 100644 index 6baddd3df0bfec18f0de6e45a1f237274305050f..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-37bb2b91.js +++ /dev/null @@ -1 +0,0 @@ -import{R as s,k as t,j as p,a1 as n,_ as r}from"./umi-2ee4055f.js";var a=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],u=s.forwardRef(function(e,o){var d=e.fieldProps,i=e.unCheckedChildren,c=e.checkedChildren,h=e.proFieldProps,l=t(e,a);return p.jsx(n,r({valueType:"switch",fieldProps:r({unCheckedChildren:i,checkedChildren:c},d),ref:o,valuePropName:"checked",proFieldProps:h,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},l))});const C=u;export{C as P}; diff --git a/web/dist/assets/index-3b348927.js b/web/dist/assets/index-3b348927.js new file mode 100644 index 0000000000000000000000000000000000000000..33533501f0963fa1ba0d8166a7100f79cf600b03 --- /dev/null +++ b/web/dist/assets/index-3b348927.js @@ -0,0 +1 @@ +import{ab as I,b as s,ax as T,j as e,ay as m,B as j,a1 as i}from"./umi-5f6aeac9.js";import{P as v}from"./index-3fcbb702.js";import R from"./GroupRule-a818447f.js";import{X as A}from"./index-109f15ec.js";import{l as p,d as P,t as F}from"./table-0fa6c309.js";import"./ActionButton-ff803f23.js";import"./index-0c4a636b.js";import"./userAuth-e0a25413.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const u="/user.userGroup",oe=()=>{const[c,f]=I(),[x,h]=s.useState([]);s.useEffect(()=>{p("/user.userRule/list").then(t=>{h(t.data.data)})},[]);const o=s.useRef(),b=[{title:"类型",dataIndex:"type",valueType:"radio",hideInTable:!0,initialValue:"0",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},fieldProps:{options:[{label:"根节点",value:"0"},{label:"子节点",value:"1"}]}},{title:"ID",dataIndex:"id",hideInForm:!0,hideInTable:!0},{title:"分组名",dataIndex:"name",valueType:"text"},{valueType:"dependency",name:["type"],hideInTable:!0,columns:({type:t})=>t!=="0"?[{title:"父节点",dataIndex:"pid",valueType:"treeSelect",initialValue:1,params:{ref:c},fieldProps:{fieldNames:{label:"name",value:"id"}},request:async()=>(await p(u+"/list")).data.data,formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}}]:[]},{title:"创建时间",dataIndex:"create_time",valueType:"date",hideInForm:!0},{title:"编辑时间",dataIndex:"update_time",valueType:"date",hideInForm:!0}],l=T(),g=async t=>{const n=i.loading("正在删除");let y=t.map(r=>r.id);P(F+"/delete",{ids:y.join()||""}).then(r=>{var a,d;r.success?(i.success(r.msg),(d=(a=o.current)==null?void 0:a.reloadAndRest)==null||d.call(a)):i.warning(r.msg)}).finally(()=>n())};return e.jsx(e.Fragment,{children:e.jsx(A,{tableApi:u,columns:b,search:!1,accessName:"user.group",addBefore:()=>f.toggle(),deleteShow:!1,actionRef:o,expandable:{defaultExpandedRowKeys:[]},operateRender:t=>e.jsx(e.Fragment,{children:t.id!==1&&e.jsxs(e.Fragment,{children:[e.jsx(m,{accessible:l.buttonAccess("user.group.rule"),children:e.jsx(R,{record:t,treeData:x})}),e.jsx(m,{accessible:l.buttonAccess("user.group.delete"),children:e.jsx(v,{title:"删除",description:"你确定要删除这条数据吗?",onConfirm:()=>{g([t])},okText:"确认",cancelText:"取消",children:e.jsx(j,{type:"link",danger:!0,children:"删除"})})})]})})})})};export{oe as default}; diff --git a/web/dist/assets/index-3f6a8b58.js b/web/dist/assets/index-3f6a8b58.js new file mode 100644 index 0000000000000000000000000000000000000000..b7cf062c1274c54e9d1c1472c3adb671f8e344aa --- /dev/null +++ b/web/dist/assets/index-3f6a8b58.js @@ -0,0 +1 @@ +import{bi as de,b2 as ce,_ as P,k as r,j as i,ak as se,b3 as s,bj as oe,b as m,s as ae,C as re,bb as ue,x as ie,w as Y,R as ve,bk as he,bl as fe,bm as ge,a5 as Ce}from"./umi-5f6aeac9.js";import{A as be}from"./index-55505f41.js";var Z=function(e){return{backgroundColor:e.colorPrimaryBg,borderColor:e.colorPrimary}},V=function(e){return r({backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},e.componentCls,{"&-description":{color:e.colorTextDisabled},"&-title":{color:e.colorTextDisabled},"&-avatar":{opacity:"0.25"}})};new de("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}});var xe=function(e){var h;return r({},e.componentCls,(h={position:"relative",display:"inline-block",width:"320px",marginInlineEnd:"16px",marginBlockEnd:"16px",color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,verticalAlign:"top",backgroundColor:e.colorBgContainer,borderRadius:e.borderRadius,overflow:"auto",cursor:"pointer",transition:"all 0.3s","&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,opacity:0,transition:"all 0.3s "+e.motionEaseInOut,borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px"),content:"''"},"&:last-child":{marginInlineEnd:0},"& + &":{marginInlineStart:"0 !important"},"&-bordered":{border:"".concat(e.lineWidth,"px solid ").concat(e.colorBorder)},"&-group":{display:"inline-block","&-sub-check-card":{display:"flex",flexDirection:"column",gap:"8px","&-title":{cursor:"pointer",paddingBlock:e.paddingXS,display:"flex",gap:4,alignItems:"center"},"&-panel":{visibility:"initial",transition:"all 0.3s",opacity:1,"&-collapse":{display:"none",visibility:"hidden",opacity:0}}}}},r(r(r(r(r(r(r(r(r(r(h,"".concat(e.componentCls,"-loading"),{overflow:"hidden",userSelect:"none","&-content":{padding:e.paddingMD}}),"&:focus",Z(e)),"&-checked",P(P({},Z(e)),{},{"&:after":{opacity:1,border:"".concat(e.borderRadius+4,"px solid ").concat(e.colorPrimary),borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px")}})),"&-disabled",V(e)),"&[disabled]",V(e)),"&-checked&-disabled",{"&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"".concat(e.borderRadius+4,"px solid ").concat(e.colorTextDisabled),borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px"),content:"''"}}),"&-lg",{width:440}),"&-sm",{width:212}),"&-cover",{paddingInline:e.paddingXXS,paddingBlock:e.paddingXXS,img:{width:"100%",height:"100%",overflow:"hidden",borderRadius:e.borderRadius}}),"&-content",{display:"flex",paddingInline:e.paddingSM,paddingBlock:e.padding}),r(r(r(r(r(r(r(r(h,"&-body",{paddingInline:e.paddingSM,paddingBlock:e.padding}),"&-avatar-header",{display:"flex",alignItems:"center"}),"&-avatar",{paddingInlineEnd:8}),"&-detail",{overflow:"hidden",width:"100%","> div:not(:last-child)":{marginBlockEnd:4}}),"&-header",{display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,"&-left":{display:"flex",alignItems:"center",gap:e.sizeSM,minWidth:0}}),"&-title",{overflow:"hidden",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSize,whiteSpace:"nowrap",textOverflow:"ellipsis",display:"flex",alignItems:"center",justifyContent:"space-between","&-with-ellipsis":{display:"inline-block"}}),"&-description",{color:e.colorTextSecondary}),"&:not(".concat(e.componentCls,"-disabled)"),{"&:hover":{borderColor:e.colorPrimary}})))};function le(x){return ce("CheckCard",function(e){var h=P(P({},e),{},{componentCls:".".concat(x)});return[xe(h)]})}var me=["prefixCls","className","style","options","loading","multiple","bordered","onChange"],Se=function(e){var h=e.prefixCls,S=e.hashId;return i.jsx("div",{className:s("".concat(h,"-loading-content"),S),children:i.jsx(oe,{loading:!0,active:!0,paragraph:{rows:4},title:!1})})},ne=m.createContext(null),ye=function(e){var h=m.useState(!1),S=Y(h,2),p=S[0],j=S[1],a=fe.useToken(),w=a.hashId,y="".concat(e.prefix,"-sub-check-card");return i.jsxs("div",{className:s(y,w),children:[i.jsxs("div",{className:s("".concat(y,"-title"),w),onClick:function(){j(!p)},children:[i.jsx(ge,{style:{transform:"rotate(".concat(p?90:0,"deg)"),transition:"transform 0.3s"}}),e.title]}),i.jsx("div",{className:s("".concat(y,"-panel"),w,r({},"".concat(y,"-panel-collapse"),p)),children:e.children})]})},pe=function(e){var h=e.prefixCls,S=e.className,p=e.style,j=e.options,a=j===void 0?[]:j,w=e.loading,y=w===void 0?!1:w,$=e.multiple,B=$===void 0?!1:$,O=e.bordered,K=O===void 0?!0:O;e.onChange;var N=ae(e,me),I=m.useContext(re.ConfigContext),z=m.useCallback(function(){return a==null?void 0:a.map(function(v){return typeof v=="string"?{title:v,value:v}:v})},[a]),T=I.getPrefixCls("pro-checkcard",h),M=le(T),H=M.wrapSSR,F=M.hashId,X="".concat(T,"-group"),u=ue(N,["children","defaultValue","value","disabled","size"]),l=ie(e.defaultValue,{value:e.value,onChange:e.onChange}),A=Y(l,2),E=A[0],d=A[1],D=m.useRef(new Map),L=function(o){var c;(c=D.current)===null||c===void 0||c.set(o,!0)},G=function(o){var c;(c=D.current)===null||c===void 0||c.delete(o)},J=function(o){if(!B){var c;c=E,c===o.value?c=void 0:c=o.value,d==null||d(c)}if(B){var g,n=[],b=E,k=b==null?void 0:b.includes(o.value);n=he(b||[]),k||n.push(o.value),k&&(n=n.filter(function(t){return t!==o.value}));var R=z(),C=(g=n)===null||g===void 0||(g=g.filter(function(t){return D.current.has(t)}))===null||g===void 0?void 0:g.sort(function(t,f){var _=R.findIndex(function(U){return U.value===t}),Q=R.findIndex(function(U){return U.value===f});return _-Q});d(C)}},W=m.useMemo(function(){if(y)return new Array(a.length||ve.Children.toArray(e.children).length||1).fill(0).map(function(c,g){return i.jsx(ee,{loading:!0},g)});if(a&&a.length>0){var v=E,o=function c(g){return g.map(function(n){var b;if(n.children&&n.children.length>0){var k,R;return i.jsx(ye,{title:n.title,prefix:X,children:c(n.children)},((k=n.value)===null||k===void 0?void 0:k.toString())||((R=n.title)===null||R===void 0?void 0:R.toString()))}return i.jsx(ee,{disabled:n.disabled,size:(b=n.size)!==null&&b!==void 0?b:e.size,value:n.value,checked:B?v==null?void 0:v.includes(n.value):v===n.value,onChange:n.onChange,title:n.title,avatar:n.avatar,description:n.description,cover:n.cover},n.value.toString())})};return o(z())}return e.children},[z,y,B,a,e.children,e.size,E]),q=s(X,S,F);return H(i.jsx(ne.Provider,{value:{toggleOption:J,bordered:K,value:E,disabled:e.disabled,size:e.size,loading:e.loading,multiple:e.multiple,registerValue:L,cancelValue:G},children:i.jsx("div",P(P({className:q,style:p},u),{},{children:W}))}))};const je=function(x){return i.jsx(se,{needDeps:!0,children:i.jsx(pe,P({},x))})};var we=["prefixCls","className","avatar","title","description","cover","extra","style"],te=function(e){var h=ie(e.defaultChecked||!1,{value:e.checked,onChange:e.onChange}),S=Y(h,2),p=S[0],j=S[1],a=m.useContext(ne),w=m.useContext(re.ConfigContext),y=w.getPrefixCls,$=function(t){var f,_;e==null||(f=e.onClick)===null||f===void 0||f.call(e,t);var Q=!p;a==null||(_=a.toggleOption)===null||_===void 0||_.call(a,{value:e.value}),j==null||j(Q)},B=function(t){return t==="large"?"lg":t==="small"?"sm":""};m.useEffect(function(){var C;return a==null||(C=a.registerValue)===null||C===void 0||C.call(a,e.value),function(){var t;return a==null||(t=a.cancelValue)===null||t===void 0?void 0:t.call(a,e.value)}},[e.value]);var O=e.prefixCls,K=e.className,N=e.avatar,I=e.title,z=e.description,T=e.cover,M=e.extra,H=e.style,F=H===void 0?{}:H,X=ae(e,we),u=P({},X),l=y("pro-checkcard",O),A=le(l),E=A.wrapSSR,d=A.hashId,D=function(t,f){return i.jsx("div",{className:s("".concat(t,"-cover"),d),children:typeof f=="string"?i.jsx("img",{src:f,alt:"checkcard"}):f})};u.checked=p;var L=!1;if(a){var G;u.disabled=e.disabled||a.disabled,u.loading=e.loading||a.loading,u.bordered=e.bordered||a.bordered,L=a.multiple;var J=a.multiple?(G=a.value)===null||G===void 0?void 0:G.includes(e.value):a.value===e.value;u.checked=u.loading?!1:J,u.size=e.size||a.size}var W=u.disabled,q=W===void 0?!1:W,v=u.size,o=u.loading,c=u.bordered,g=c===void 0?!0:c,n=u.checked,b=B(v),k=s(l,K,d,r(r(r(r(r(r(r({},"".concat(l,"-loading"),o),"".concat(l,"-").concat(b),b),"".concat(l,"-checked"),n),"".concat(l,"-multiple"),L),"".concat(l,"-disabled"),q),"".concat(l,"-bordered"),g),"".concat(l,"-ghost"),e.ghost)),R=m.useMemo(function(){if(o)return i.jsx(Se,{prefixCls:l||"",hashId:d});if(T)return D(l||"",T);var C=N?i.jsx("div",{className:s("".concat(l,"-avatar"),d),children:typeof N=="string"?i.jsx(Ce,{size:48,shape:"square",src:N}):N}):null,t=(I??M)!=null&&i.jsxs("div",{className:s("".concat(l,"-header"),d),children:[i.jsxs("div",{className:s("".concat(l,"-header-left"),d),children:[i.jsx("div",{className:s("".concat(l,"-title"),d,r({},"".concat(l,"-title-with-ellipsis"),typeof I=="string")),children:I}),e.subTitle?i.jsx("div",{className:s("".concat(l,"-subTitle"),d),children:e.subTitle}):null]}),M&&i.jsx("div",{className:s("".concat(l,"-extra"),d),children:M})]}),f=z?i.jsx("div",{className:s("".concat(l,"-description"),d),children:z}):null,_=s("".concat(l,"-content"),d,r({},"".concat(l,"-avatar-header"),C&&t&&!f));return i.jsxs("div",{className:_,children:[C,t||f?i.jsxs("div",{className:s("".concat(l,"-detail"),d),children:[t,f]}):null]})},[N,o,T,z,M,d,l,e.subTitle,I]);return E(i.jsxs("div",{className:k,style:F,onClick:function(t){!o&&!q&&$(t)},onMouseEnter:e.onMouseEnter,children:[R,e.children?i.jsx("div",{className:s("".concat(l,"-body"),d),style:e.bodyStyle,children:e.children}):null,e.actions?i.jsx(be,{actions:e.actions,prefixCls:l}):null]}))};te.Group=je;const ee=te;export{ee as C}; diff --git a/web/dist/assets/index-ea2ed5fc.js b/web/dist/assets/index-3fcbb702.js similarity index 91% rename from web/dist/assets/index-ea2ed5fc.js rename to web/dist/assets/index-3fcbb702.js index b47ff2dc334a611fe027181bed6ecdd9bada4787..81468520018a3861bf1cee484e12727e588879f1 100644 --- a/web/dist/assets/index-ea2ed5fc.js +++ b/web/dist/assets/index-3fcbb702.js @@ -1 +1 @@ -import{g as M,r as l,bc as T,bd as q,aV as N,be as D,bf as U,bg as E,B as Y,z as G,bh as $,bi as J,o as K,aM as Q,b8 as Z}from"./umi-2ee4055f.js";import{A as ee}from"./ActionButton-a9da0b15.js";const te=e=>{const{componentCls:n,iconCls:s,antCls:t,zIndexPopup:o,colorText:d,colorWarning:g,marginXXS:c,marginXS:i,fontSize:u,fontWeightStrong:y,colorTextHeading:b}=e;return{[n]:{zIndex:o,[`&${t}-popover`]:{fontSize:u},[`${n}-message`]:{marginBottom:i,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${n}-message-icon ${s}`]:{color:g,fontSize:u,lineHeight:1,marginInlineEnd:i},[`${n}-title`]:{fontWeight:y,color:b,"&:only-child":{fontWeight:"normal"}},[`${n}-description`]:{marginTop:c,color:d}},[`${n}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:i}}}}},ne=e=>{const{zIndexPopupBase:n}=e;return{zIndexPopup:n+60}},k=M("Popconfirm",e=>te(e),ne,{resetStyle:!1});var oe=globalThis&&globalThis.__rest||function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,okButtonProps:s,cancelButtonProps:t,title:o,description:d,cancelText:g,okText:c,okType:i="primary",icon:u=l.createElement($,null),showCancel:y=!0,close:b,onConfirm:C,onCancel:O,onPopupClick:m}=e,{getPrefixCls:p}=l.useContext(T),[f]=D("Popconfirm",U.Popconfirm),v=E(o),x=E(d);return l.createElement("div",{className:`${n}-inner-content`,onClick:m},l.createElement("div",{className:`${n}-message`},u&&l.createElement("span",{className:`${n}-message-icon`},u),l.createElement("div",{className:`${n}-message-text`},v&&l.createElement("div",{className:`${n}-title`},v),x&&l.createElement("div",{className:`${n}-description`},x))),l.createElement("div",{className:`${n}-buttons`},y&&l.createElement(Y,Object.assign({onClick:O,size:"small"},t),g||(f==null?void 0:f.cancelText)),l.createElement(ee,{buttonProps:Object.assign(Object.assign({size:"small"},G(i)),s),actionFn:C,close:b,prefixCls:p("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},c||(f==null?void 0:f.okText))))},le=e=>{const{prefixCls:n,placement:s,className:t,style:o}=e,d=oe(e,["prefixCls","placement","className","style"]),{getPrefixCls:g}=l.useContext(T),c=g("popconfirm",n),[i]=k(c);return i(l.createElement(q,{placement:s,className:N(c,t),style:o,content:l.createElement(w,Object.assign({prefixCls:c},d))}))},se=le;var ae=globalThis&&globalThis.__rest||function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{var s,t;const{prefixCls:o,placement:d="top",trigger:g="click",okType:c="primary",icon:i=l.createElement($,null),children:u,overlayClassName:y,onOpenChange:b,onVisibleChange:C,overlayStyle:O,styles:m,classNames:p}=e,f=ae(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:v,className:x,style:I,classNames:S,styles:j}=J("popconfirm"),[z,B]=K(!1,{value:(s=e.open)!==null&&s!==void 0?s:e.visible,defaultValue:(t=e.defaultOpen)!==null&&t!==void 0?t:e.defaultVisible}),P=(a,r)=>{B(a,!0),C==null||C(a),b==null||b(a,r)},V=a=>{P(!1,a)},W=a=>{var r;return(r=e.onConfirm)===null||r===void 0?void 0:r.call(globalThis,a)},L=a=>{var r;P(!1,a),(r=e.onCancel)===null||r===void 0||r.call(globalThis,a)},A=(a,r)=>{const{disabled:X=!1}=e;X||P(a,r)},h=v("popconfirm",o),F=N(h,x,y,S.root,p==null?void 0:p.root),H=N(S.body,p==null?void 0:p.body),[R]=k(h);return R(l.createElement(Q,Object.assign({},Z(f,["title"]),{trigger:g,placement:d,onOpenChange:A,open:z,ref:n,classNames:{root:F,body:H},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},j.root),I),O),m==null?void 0:m.root),body:Object.assign(Object.assign({},j.body),m==null?void 0:m.body)},content:l.createElement(w,Object.assign({okType:c,icon:i},e,{prefixCls:h,close:V,onConfirm:W,onCancel:L})),"data-popover-inject":!0}),u))}),_=re;_._InternalPanelDoNotUseOrYouWillBeFired=se;const me=_;export{me as P}; +import{g as q,b as l,b9 as T,bc as U,b3 as N,bd as D,be as M,bf as E,B as Y,q as G,bg as $,bh as J,x as K,aU as Q,bb as Z}from"./umi-5f6aeac9.js";import{A as ee}from"./ActionButton-ff803f23.js";const te=e=>{const{componentCls:n,iconCls:s,antCls:t,zIndexPopup:o,colorText:d,colorWarning:g,marginXXS:c,marginXS:i,fontSize:u,fontWeightStrong:y,colorTextHeading:b}=e;return{[n]:{zIndex:o,[`&${t}-popover`]:{fontSize:u},[`${n}-message`]:{marginBottom:i,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${n}-message-icon ${s}`]:{color:g,fontSize:u,lineHeight:1,marginInlineEnd:i},[`${n}-title`]:{fontWeight:y,color:b,"&:only-child":{fontWeight:"normal"}},[`${n}-description`]:{marginTop:c,color:d}},[`${n}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:i}}}}},ne=e=>{const{zIndexPopupBase:n}=e;return{zIndexPopup:n+60}},k=q("Popconfirm",e=>te(e),ne,{resetStyle:!1});var oe=globalThis&&globalThis.__rest||function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,okButtonProps:s,cancelButtonProps:t,title:o,description:d,cancelText:g,okText:c,okType:i="primary",icon:u=l.createElement($,null),showCancel:y=!0,close:b,onConfirm:C,onCancel:O,onPopupClick:m}=e,{getPrefixCls:p}=l.useContext(T),[f]=D("Popconfirm",M.Popconfirm),v=E(o),x=E(d);return l.createElement("div",{className:`${n}-inner-content`,onClick:m},l.createElement("div",{className:`${n}-message`},u&&l.createElement("span",{className:`${n}-message-icon`},u),l.createElement("div",{className:`${n}-message-text`},v&&l.createElement("div",{className:`${n}-title`},v),x&&l.createElement("div",{className:`${n}-description`},x))),l.createElement("div",{className:`${n}-buttons`},y&&l.createElement(Y,Object.assign({onClick:O,size:"small"},t),g||(f==null?void 0:f.cancelText)),l.createElement(ee,{buttonProps:Object.assign(Object.assign({size:"small"},G(i)),s),actionFn:C,close:b,prefixCls:p("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},c||(f==null?void 0:f.okText))))},le=e=>{const{prefixCls:n,placement:s,className:t,style:o}=e,d=oe(e,["prefixCls","placement","className","style"]),{getPrefixCls:g}=l.useContext(T),c=g("popconfirm",n),[i]=k(c);return i(l.createElement(U,{placement:s,className:N(c,t),style:o,content:l.createElement(w,Object.assign({prefixCls:c},d))}))},se=le;var ae=globalThis&&globalThis.__rest||function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{var s,t;const{prefixCls:o,placement:d="top",trigger:g="click",okType:c="primary",icon:i=l.createElement($,null),children:u,overlayClassName:y,onOpenChange:b,onVisibleChange:C,overlayStyle:O,styles:m,classNames:p}=e,f=ae(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:v,className:x,style:I,classNames:S,styles:j}=J("popconfirm"),[z,B]=K(!1,{value:(s=e.open)!==null&&s!==void 0?s:e.visible,defaultValue:(t=e.defaultOpen)!==null&&t!==void 0?t:e.defaultVisible}),P=(a,r)=>{B(a,!0),C==null||C(a),b==null||b(a,r)},V=a=>{P(!1,a)},W=a=>{var r;return(r=e.onConfirm)===null||r===void 0?void 0:r.call(globalThis,a)},L=a=>{var r;P(!1,a),(r=e.onCancel)===null||r===void 0||r.call(globalThis,a)},A=(a,r)=>{const{disabled:X=!1}=e;X||P(a,r)},h=v("popconfirm",o),F=N(h,x,y,S.root,p==null?void 0:p.root),H=N(S.body,p==null?void 0:p.body),[R]=k(h);return R(l.createElement(Q,Object.assign({},Z(f,["title"]),{trigger:g,placement:d,onOpenChange:A,open:z,ref:n,classNames:{root:F,body:H},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},j.root),I),O),m==null?void 0:m.root),body:Object.assign(Object.assign({},j.body),m==null?void 0:m.body)},content:l.createElement(w,Object.assign({okType:c,icon:i},e,{prefixCls:h,close:V,onConfirm:W,onCancel:L})),"data-popover-inject":!0}),u))}),_=re;_._InternalPanelDoNotUseOrYouWillBeFired=se;const me=_;export{me as P}; diff --git a/web/dist/assets/index-420f033e.js b/web/dist/assets/index-420f033e.js deleted file mode 100644 index aebc7d7cb946859e58371022da73926cd67c3117..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-420f033e.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,F as d,S as n,b as o,B as i}from"./umi-2ee4055f.js";import{C as l}from"./index-8a549704.js";import{T as m}from"./Table-0e254f81.js";import{T as c}from"./index-9456f6ef.js";import"./index-275c5384.js";import"./styleChecker-0860b7b3.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";const k=[{title:"Name",dataIndex:"name",key:"name",render:r=>e.jsx("a",{children:r})},{title:"Age",dataIndex:"age",key:"age"},{title:"Address",dataIndex:"address",key:"address"},{title:"Tags",key:"tags",dataIndex:"tags",render:(r,{tags:s})=>e.jsx(e.Fragment,{children:s.map(a=>{let t=a.length>5?"geekblue":"green";return a==="loser"&&(t="volcano"),e.jsx(c,{color:t,children:a.toUpperCase()},a)})})},{title:"Action",key:"action",render:(r,s)=>e.jsxs(n,{size:"middle",children:[e.jsxs("a",{children:["Invite ",s.name]}),e.jsx("a",{children:"Delete"})]})}],x=[{key:"1",name:"John Brown",age:32,address:"New York No. 1 Lake Park",tags:["nice","developer"]},{key:"2",name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["loser"]},{key:"3",name:"Joe Black",age:32,address:"Sydney No. 1 Lake Park",tags:["cool","teacher"]},{key:"4",name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["loser"]},{key:"5",name:"Joe Black",age:32,address:"Sydney No. 1 Lake Park",tags:["cool","teacher"]}],f=()=>e.jsx(l,{title:e.jsx(d,{id:"analysis.title7"}),extra:e.jsxs(n.Compact,{style:{width:"100%"},children:[e.jsx(o,{placeholder:"input value"}),e.jsx(i,{type:"primary",children:e.jsx(d,{id:"analysis.search"})})]}),children:e.jsx("div",{style:{height:400},children:e.jsx(m,{columns:k,dataSource:x})})});export{f as default}; diff --git a/web/dist/assets/index-426be59b.js b/web/dist/assets/index-426be59b.js deleted file mode 100644 index 63f40f959f0378cfda17fee7a6e6f8dec6caf072..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-426be59b.js +++ /dev/null @@ -1 +0,0 @@ -import{r as c,g as z,m as D,a as F,bi as I,aV as M,bU as P,bl as _,bV as H,bW as L}from"./umi-2ee4055f.js";const V=t=>{const{value:n,formatter:o,precision:e,decimalSeparator:a,groupSeparator:i="",prefixCls:u}=t;let r;if(typeof o=="function")r=o(n);else{const l=String(n),m=l.match(/^(-?)(\d*)(\.(\d+))?$/);if(!m||l==="-")r=l;else{const p=m[1];let f=m[2]||"0",s=m[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof e=="number"&&(s=s.padEnd(e,"0").slice(0,e>0?e:0)),s&&(s=`${a}${s}`),r=[c.createElement("span",{key:"int",className:`${u}-content-value-int`},p,f),s&&c.createElement("span",{key:"decimal",className:`${u}-content-value-decimal`},s)]}}return c.createElement("span",{className:`${u}-content-value`},r)},U=V,A=t=>{const{componentCls:n,marginXXS:o,padding:e,colorTextDescription:a,titleFontSize:i,colorTextHeading:u,contentFontSize:r,fontFamily:l}=t;return{[n]:Object.assign(Object.assign({},F(t)),{[`${n}-title`]:{marginBottom:o,color:a,fontSize:i},[`${n}-skeleton`]:{paddingTop:e},[`${n}-content`]:{color:u,fontSize:r,fontFamily:l,[`${n}-content-value`]:{display:"inline-block",direction:"ltr"},[`${n}-content-prefix, ${n}-content-suffix`]:{display:"inline-block"},[`${n}-content-prefix`]:{marginInlineEnd:o},[`${n}-content-suffix`]:{marginInlineStart:o}}})}},B=t=>{const{fontSizeHeading3:n,fontSize:o}=t;return{titleFontSize:o,contentFontSize:n}},X=z("Statistic",t=>{const n=D(t,{});return[A(n)]},B);var W=globalThis&&globalThis.__rest||function(t,n){var o={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(o[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(t);a{const{prefixCls:n,className:o,rootClassName:e,style:a,valueStyle:i,value:u=0,title:r,valueRender:l,prefix:m,suffix:p,loading:f=!1,formatter:s,precision:g,decimalSeparator:S=".",groupSeparator:b=",",onMouseEnter:x,onMouseLeave:O}=t,E=W(t,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:$,direction:C,className:h,style:N}=I("statistic"),d=$("statistic",n),[w,T,j]=X(d),v=c.createElement(U,{decimalSeparator:S,groupSeparator:b,prefixCls:d,formatter:s,precision:g,value:u}),k=M(d,{[`${d}-rtl`]:C==="rtl"},h,o,e,T,j),R=P(E,{aria:!0,data:!0});return w(c.createElement("div",Object.assign({},R,{className:k,style:Object.assign(Object.assign({},N),a),onMouseEnter:x,onMouseLeave:O}),r&&c.createElement("div",{className:`${d}-title`},r),c.createElement(_,{paragraph:!1,loading:f,className:`${d}-skeleton`},c.createElement("div",{style:i,className:`${d}-content`},m&&c.createElement("span",{className:`${d}-content-prefix`},m),l?l(v):v,p&&c.createElement("span",{className:`${d}-content-suffix`},p)))))},y=Y,q=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function G(t,n){let o=t;const e=/\[[^\]]*]/g,a=(n.match(e)||[]).map(l=>l.slice(1,-1)),i=n.replace(e,"[]"),u=q.reduce((l,m)=>{let[p,f]=m;if(l.includes(p)){const s=Math.floor(o/f);return o-=s*f,l.replace(new RegExp(`${p}+`,"g"),g=>{const S=g.length;return s.toString().padStart(S,"0")})}return l},i);let r=0;return u.replace(e,()=>{const l=a[r];return r+=1,l})}function J(t,n){const{format:o=""}=n,e=new Date(t).getTime(),a=Date.now(),i=Math.max(e-a,0);return G(i,o)}var K=globalThis&&globalThis.__rest||function(t,n){var o={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(o[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(t);a{const{value:n,format:o="HH:mm:ss",onChange:e,onFinish:a}=t,i=K(t,["value","format","onChange","onFinish"]),u=H(),r=c.useRef(null),l=()=>{a==null||a(),r.current&&(clearInterval(r.current),r.current=null)},m=()=>{const s=Z(n);s>=Date.now()&&(r.current=setInterval(()=>{u(),e==null||e(s-Date.now()),s(m(),()=>{r.current&&(clearInterval(r.current),r.current=null)}),[n]);const p=(s,g)=>J(s,Object.assign(Object.assign({},g),{format:o})),f=s=>L(s,{title:void 0});return c.createElement(y,Object.assign({},i,{value:n,valueRender:f,formatter:p}))},te=c.memo(ee);y.Countdown=te;export{y as S}; diff --git a/web/dist/assets/index-427a48d6.js b/web/dist/assets/index-427a48d6.js deleted file mode 100644 index 432bcbc943eea1aa9a636ac41d1ec3ad340b3925..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-427a48d6.js +++ /dev/null @@ -1 +0,0 @@ -import{ay as C,O as i,r as a,af as B,az as w,j as e,aA as D,S as x,aB as F,B as y,Q as E,C as v,aC as G,aD as I,V as h,L as V,ab as O,ac as H,b as l,aE as K,aF as L,D as R,aG as _,h as z,aH as M,aI as N,aJ as W,aK as J,aL as Q}from"./umi-2ee4055f.js";import{C as Y}from"./index-8a549704.js";import{P as q}from"./index-ea2ed5fc.js";import{T as U}from"./index-8b7fb289.js";import X from"./AddSettingGroup-dfbefacf.js";import j from"./SettingForm-ce557f9d.js";import{d as Z,l as $}from"./table-c83b9d9d.js";import{P as c}from"./ProCard-cee316ff.js";import"./index-275c5384.js";import"./ActionButton-a9da0b15.js";import"./styleChecker-0860b7b3.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";const{Text:m}=U,bs=()=>{const f=C(),[n]=i.useForm(),[t,g]=a.useState([]),[k,S]=a.useState("web"),[b,P]=a.useState(3),[T,A]=a.useState(),d=B.useToken(),o=(s=3)=>{$("/system.setting/list",{group_id:s}).then(r=>{if(A(r.data),n){let p={};r.data.forEach(u=>{p[u.key]=u.values}),n.setFieldsValue(p)}})};return a.useEffect(()=>{w().then(s=>{g(s.data)}),o()},[]),e.jsxs(e.Fragment,{children:[e.jsx(D,{message:"系统设置可以方便快速的实现对后台可变参数的配置,php代码中直接粘贴用法即可获取到当前配置",type:"success",style:{marginBottom:10}}),e.jsx(Y,{title:"系统设置",styles:{body:{padding:0,paddingTop:1}},extra:e.jsxs(x,{children:[e.jsx(F,{accessible:f.buttonAccess("admin.group.rule"),children:e.jsx(X,{})}),e.jsx(j,{settingGroup:t,getSetting:o,children:e.jsx(y,{type:"primary",icon:e.jsx(E,{}),block:!0,children:"新增设置"})})]}),children:e.jsxs(c,{split:"vertical",children:[e.jsx(c,{colSpan:"160px",children:e.jsx(v,{theme:{components:{Menu:{activeBarBorderWidth:0}}},children:e.jsx(G,{onClick:s=>{let r=t==null?void 0:t.filter(p=>p.key===s.key);S(r[0].key),P(r[0].id),o(r[0].id)},defaultSelectedKeys:["web"],mode:"inline",items:t})})}),e.jsx(c,{style:{minHeight:500},children:e.jsxs(i,{form:n,onFinish:s=>{I({group_id:b,...s}).then(()=>{h.success("保存成功!")})},children:[e.jsx(V,{pagination:!1,dataSource:T,renderItem:s=>e.jsxs(e.Fragment,{children:[e.jsxs(x,{style:{marginBottom:10},children:[s.title,e.jsx(j,{getSetting:o,settingGroup:t,id:s.id,defaultData:s.defaultData,children:e.jsx(O,{style:{color:d.token.colorPrimary}})}),e.jsx(q,{title:"Delete the task",description:"Are you sure to delete this task?",onConfirm:()=>{Z("/system.setting/delete",{ids:s.id}).then(()=>{h.success("删除成功"),o(s.group_id)})},okText:"Yes",cancelText:"No",children:e.jsx(H,{style:{color:d.token.colorError}})})]}),e.jsxs(i.Item,{name:s.key,style:{maxWidth:680,marginBottom:0},children:[s.type==="input"&&e.jsx(l,{...s.props}),s.type==="password"&&e.jsx(l.Password,{...s.props}),s.type==="textarea"&&e.jsx(l.TextArea,{...s.props}),s.type==="checkout"&&e.jsx(K.Group,{...s.props,options:s.options}),s.type==="color"&&e.jsx(L,{...s.props,defaultValue:"#1677ff",showText:!0}),s.type==="date"&&e.jsx(R,{...s.props}),s.type==="number"&&e.jsx(_,{...s.props,min:1,max:10,defaultValue:3}),s.type==="radio"&&e.jsx(z.Group,{...s.props,options:s.options}),s.type==="rate"&&e.jsx(M,{...s.props,allowHalf:!0,defaultValue:2.5}),s.type==="select"&&e.jsx(N,{...s.props,options:s.options}),s.type==="slider"&&e.jsx(W,{...s.props}),s.type==="switch"&&e.jsx(J,{...s.props}),s.type==="time"&&e.jsx(Q,{...s.props})]}),e.jsxs("div",{style:{marginBottom:20},children:[e.jsxs(m,{type:"secondary",style:{fontSize:12},children:[s.describe,",用法:"]}),e.jsx(m,{type:"secondary",copyable:!0,children:"get_setting('"+k+"."+s.key+"')"})]})]})},"key"),e.jsx(y,{type:"primary",htmlType:"submit",children:"保存设置"})]})})]})})]})};export{bs as default}; diff --git a/web/dist/assets/index-4317640d.js b/web/dist/assets/index-4317640d.js deleted file mode 100644 index 687a57f28c91fafb81188d7e79376b2ef934e27a..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-4317640d.js +++ /dev/null @@ -1 +0,0 @@ -import{Y as s,j as e,aM as m,S as d,A as n,$ as p}from"./umi-2ee4055f.js";import l from"./AddMoneyLog-d85337dd.js";import{X as c}from"./index-2f3e26df.js";import{X as u}from"./index-1c416090.js";import"./index-426be59b.js";import"./index-9456f6ef.js";import"./index-8ec65540.js";import"./index-e10ebcfa.js";import"./index-d81f4240.js";import"./index-ca47b438.js";import"./index-f4422a84.js";import"./index-8a5a2994.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-ea2ed5fc.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./table-c83b9d9d.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./Table-3849f584.js";import"./Table-0e254f81.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./RouteContext-8fa10ad2.js";const x="/user.userMoneyLog",Q=()=>{const{getDictionaryData:o}=s("dictModel"),i=r=>e.jsxs(e.Fragment,{children:[e.jsxs("p",{children:["用户ID:",r.id]}),e.jsxs("p",{children:["用户昵称:",r.nickname]}),e.jsxs("p",{children:["用户名:",r.username]}),e.jsxs("p",{children:["用户邮箱:",r.email]}),e.jsxs("p",{children:["用户余额:",r.money," ¥"]})]}),a=[{valueType:"digit",title:"记录ID",order:99,hideInForm:!0,dataIndex:"id"},{valueType:"text",title:"用户 ID",order:98,dataIndex:"user_id",hideInForm:!0,hideInTable:!0},{valueType:"text",title:"用户",order:98,dataIndex:"user_Id",search:!1,render:(r,t)=>e.jsx(m,{placement:"left",content:i(t.user),title:t.user.nickname,children:e.jsxs(d,{style:{display:"flex"},children:[e.jsx(n,{src:t.user.avatar_url,icon:e.jsx(p,{})}),t.user.nickname]})})},{valueType:"text",title:"类型",order:93,dataIndex:"scene",request:async()=>o("moneyLog"),render:(r,t)=>e.jsx(c,{value:t.scene,dict:"moneyLog"})},{valueType:"money",title:"变动金额",order:91,dataIndex:"money",search:!1},{valueType:"text",title:"描述/备注",order:90,search:!1,dataIndex:"describe"},{valueType:"date",title:"创建时间",order:1,hideInForm:!0,dataIndex:"create_time"}];return e.jsx(u,{tableApi:x,columns:a,headerTitle:"用户余额变动记录",addShow:!1,operateShow:!0,rowSelectionShow:!0,editShow:!1,deleteShow:!0,accessName:"user.moneyLog",toolBarRender:()=>[e.jsx(l,{},"add")]})};export{Q as default}; diff --git a/web/dist/assets/index-3f6ddb76.js b/web/dist/assets/index-46da21dc.js similarity index 71% rename from web/dist/assets/index-3f6ddb76.js rename to web/dist/assets/index-46da21dc.js index 6221bddd3332ed9ab6af2708471357f5aa319e55..52473c1b9d690596d45d2fd1b508267cac398339 100644 --- a/web/dist/assets/index-3f6ddb76.js +++ b/web/dist/assets/index-46da21dc.js @@ -1 +1 @@ -import{bk as Va,aU as J,_ as r,K as n,j as l,e as R,f as b,r as Q,C as Y,cc as Ua,k as Z,aV as w,a8 as ma,n as qa,b6 as Ja,R as N,cd as U,ce as Qa,o as Ya,l as ha,bn as Za,cf as an,b8 as xa,bR as ya}from"./umi-2ee4055f.js";import{A as nn}from"./index-63e0f416.js";var en=new Va("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),tn=function(a){return n({},a.componentCls,n(n({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(a.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(a.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:a.borderRadius,animationName:en,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};function ln(e){return J("ProCardLoading",function(a){var t=r(r({},a),{},{componentCls:".".concat(e)});return[tn(t)]})}var rn=function(a){var t=a.style,i=a.prefix,g=ln(i||"ant-pro-card"),s=g.wrapSSR;return s(l.jsxs("div",{className:"".concat(i,"-loading-content"),style:t,children:[l.jsx(R,{gutter:8,children:l.jsx(b,{span:22,children:l.jsx("div",{className:"".concat(i,"-loading-block")})})}),l.jsxs(R,{gutter:8,children:[l.jsx(b,{span:8,children:l.jsx("div",{className:"".concat(i,"-loading-block")})}),l.jsx(b,{span:15,children:l.jsx("div",{className:"".concat(i,"-loading-block")})})]}),l.jsxs(R,{gutter:8,children:[l.jsx(b,{span:6,children:l.jsx("div",{className:"".concat(i,"-loading-block")})}),l.jsx(b,{span:18,children:l.jsx("div",{className:"".concat(i,"-loading-block")})})]}),l.jsxs(R,{gutter:8,children:[l.jsx(b,{span:13,children:l.jsx("div",{className:"".concat(i,"-loading-block")})}),l.jsx(b,{span:9,children:l.jsx("div",{className:"".concat(i,"-loading-block")})})]}),l.jsxs(R,{gutter:8,children:[l.jsx(b,{span:4,children:l.jsx("div",{className:"".concat(i,"-loading-block")})}),l.jsx(b,{span:3,children:l.jsx("div",{className:"".concat(i,"-loading-block")})}),l.jsx(b,{span:16,children:l.jsx("div",{className:"".concat(i,"-loading-block")})})]})]}))};const on=rn;var cn=["tab","children"],dn=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function sn(e){return e.filter(function(a){return a})}function gn(e,a,t){if(e)return e.map(function(g){return r(r({},g),{},{children:l.jsx(q,r(r({},t==null?void 0:t.cardProps),{},{children:g.children}))})});qa(!t,"Tabs.TabPane is deprecated. Please use `items` directly.");var i=Ja(a).map(function(g){if(N.isValidElement(g)){var s=g.key,m=g.props,v=m||{},S=v.tab,h=v.children,x=Z(v,cn),j=r(r({key:String(s)},x),{},{children:l.jsx(q,r(r({},t==null?void 0:t.cardProps),{},{children:h})),label:S});return j}return null});return sn(i)}var pn=function(a){var t=Q.useContext(Y.ConfigContext),i=t.getPrefixCls;if(Ua.startsWith("5"))return l.jsx(l.Fragment,{});var g=a.key,s=a.tab,m=a.tabKey,v=a.disabled,S=a.destroyInactiveTabPane,h=a.children,x=a.className,j=a.style,B=a.cardProps,y=Z(a,dn),$=i("pro-card-tabpane"),M=w($,x);return l.jsx(ma.TabPane,r(r({tabKey:m,tab:s,className:M,style:j,disabled:v,destroyInactiveTabPane:S},y),{},{children:l.jsx(q,r(r({},B),{},{children:h}))}),g)};const In=pn;var fa=function(a){return{backgroundColor:a.controlItemBgActive,borderColor:a.controlOutline}},un=function(a){var t=a.componentCls;return n(n(n({},t,r(r({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:a.colorBgContainer,borderRadius:a.borderRadius,transition:"all 0.3s"},U===null||U===void 0?void 0:U(a)),{},n(n(n(n(n(n(n(n(n(n({"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(a.lineWidth,"px ").concat(a.lineType," ").concat(a.colorSplit)},"&-hoverable":n({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(t,"-checked:hover"),{borderColor:a.controlOutline}),"&-checked":r(r({},fa(a)),{},{"&::after":{visibility:"visible",position:"absolute",insetBlockStart:2,insetInlineEnd:2,opacity:1,width:0,height:0,border:"6px solid ".concat(a.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":r({},fa(a)),"&&-ghost":n({backgroundColor:"transparent"},"> ".concat(t),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:a.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},"".concat(t,"-body-direction-column"),{flexDirection:"column"}),"".concat(t,"-body-wrap"),{flexWrap:"wrap"}),"&&-collapse",n({},"> ".concat(t),{"&-header":{paddingBlockEnd:a.padding,borderBlockEnd:0},"&-body":{display:"none"}})),"".concat(t,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:a.paddingLG,paddingBlock:a.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:a.padding},borderBlockEnd:"".concat(a.lineWidth,"px ").concat(a.lineType," ").concat(a.colorSplit)},"&-collapsible":{cursor:"pointer"}}),"".concat(t,"-title"),{color:a.colorText,fontWeight:500,fontSize:a.fontSizeLG,lineHeight:a.lineHeight}),"".concat(t,"-extra"),{color:a.colorText}),"".concat(t,"-type-inner"),n({},"".concat(t,"-header"),{backgroundColor:a.colorFillAlter})),"".concat(t,"-collapsible-icon"),{marginInlineEnd:a.marginXS,color:a.colorIconHover,":hover":{color:a.colorPrimaryHover},"& svg":{transition:"transform ".concat(a.motionDurationMid)}}),"".concat(t,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:a.paddingLG,paddingBlock:a.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),"&&-size-small",n(n({},t,{"&-header":{paddingInline:a.paddingSM,paddingBlock:a.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:a.paddingXS}},"&-title":{fontSize:a.fontSize},"&-body":{paddingInline:a.paddingSM,paddingBlock:a.paddingSM}}),"".concat(t,"-header").concat(t,"-header-collapsible"),{paddingBlock:a.paddingXS})))),"".concat(t,"-col"),n(n({},"&".concat(t,"-split-vertical"),{borderInlineEnd:"".concat(a.lineWidth,"px ").concat(a.lineType," ").concat(a.colorSplit)}),"&".concat(t,"-split-horizontal"),{borderBlockEnd:"".concat(a.lineWidth,"px ").concat(a.lineType," ").concat(a.colorSplit)})),"".concat(t,"-tabs"),n(n(n(n(n(n({},"".concat(a.antCls,"-tabs-top > ").concat(a.antCls,"-tabs-nav"),n({marginBlockEnd:0},"".concat(a.antCls,"-tabs-nav-list"),{marginBlockStart:a.marginXS,paddingInlineStart:a.padding})),"".concat(a.antCls,"-tabs-bottom > ").concat(a.antCls,"-tabs-nav"),n({marginBlockEnd:0},"".concat(a.antCls,"-tabs-nav-list"),{paddingInlineStart:a.padding})),"".concat(a.antCls,"-tabs-left"),n({},"".concat(a.antCls,"-tabs-content-holder"),n({},"".concat(a.antCls,"-tabs-content"),n({},"".concat(a.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(a.antCls,"-tabs-left > ").concat(a.antCls,"-tabs-nav"),n({marginInlineEnd:0},"".concat(a.antCls,"-tabs-nav-list"),{paddingBlockStart:a.padding})),"".concat(a.antCls,"-tabs-right"),n({},"".concat(a.antCls,"-tabs-content-holder"),n({},"".concat(a.antCls,"-tabs-content"),n({},"".concat(a.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(a.antCls,"-tabs-right > ").concat(a.antCls,"-tabs-nav"),n({},"".concat(a.antCls,"-tabs-nav-list"),{paddingBlockStart:a.padding})))},Ca=24,vn=function(a,t){var i=t.componentCls;return a===0?n({},"".concat(i,"-col-0"),{display:"none"}):n({},"".concat(i,"-col-").concat(a),{flexShrink:0,width:"".concat(a/Ca*100,"%")})},bn=function(a){return Array(Ca+1).fill(1).map(function(t,i){return vn(i,a)})};function hn(e){return J("ProCard",function(a){var t=r(r({},a),{},{componentCls:".".concat(e)});return[un(t),bn(t)]})}var xn=["className","style","bodyStyle","headStyle","title","subTitle","extra","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","colStyle","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],yn=N.forwardRef(function(e,a){var t,i=e.className,g=e.style,s=e.bodyStyle,m=e.headStyle,v=e.title,S=e.subTitle,h=e.extra,x=e.wrap,j=x===void 0?!1:x,B=e.layout,y=e.loading,$=e.gutter,M=$===void 0?0:$,Sa=e.tooltip,_=e.split,aa=e.headerBordered,ja=aa===void 0?!1:aa,na=e.bordered,Ia=na===void 0?!1:na,ea=e.boxShadow,Pa=ea===void 0?!1:ea,W=e.children,ta=e.size,la=e.actions,ra=e.ghost,Ba=ra===void 0?!1:ra,oa=e.hoverable,Na=oa===void 0?!1:oa,wa=e.direction,ia=e.collapsed,ca=e.collapsible,_a=ca===void 0?!1:ca,da=e.collapsibleIconRender,Ta=e.colStyle,sa=e.defaultCollapsed,Ea=sa===void 0?!1:sa,za=e.onCollapse,Ra=e.checked,X=e.onChecked,I=e.tabs,O=e.type,T=Z(e,xn),$a=Q.useContext(Y.ConfigContext),Ga=$a.getPrefixCls,G=Qa()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},Da=Ya(Ea,{value:ia,onChange:za}),ga=ha(Da,2),D=ga[0],La=ga[1],L=["xxl","xl","lg","md","sm","xs"],Aa=gn(I==null?void 0:I.items,W,I),Ma=function(c){var d=[0,0],P=Array.isArray(c)?c:[c,0];return P.forEach(function(u,f){if(ya(u)==="object")for(var E=0;E=0&&f<=24)),Fa=ua(l.jsx("div",{style:r(r(r(r({},E),K(H>0,{paddingInlineEnd:H/2,paddingInlineStart:H/2})),K(k>0,{paddingBlockStart:k/2,paddingBlockEnd:k/2})),Ta),className:z,children:N.cloneElement(p)}));return N.cloneElement(Fa,{key:"pro-card-col-".concat((p==null?void 0:p.key)||c)})}return p}),Ka=w("".concat(o),i,C,(t={},n(n(n(n(n(n(n(n(n(n(t,"".concat(o,"-border"),Ia),"".concat(o,"-box-shadow"),Pa),"".concat(o,"-contain-card"),F),"".concat(o,"-loading"),y),"".concat(o,"-split"),_==="vertical"||_==="horizontal"),"".concat(o,"-ghost"),Ba),"".concat(o,"-hoverable"),Na),"".concat(o,"-size-").concat(ta),ta),"".concat(o,"-type-").concat(O),O),"".concat(o,"-collapse"),D),n(t,"".concat(o,"-checked"),Ra))),Ha=w("".concat(o,"-body"),C,n(n(n({},"".concat(o,"-body-center"),B==="center"),"".concat(o,"-body-direction-column"),_==="horizontal"||wa==="column"),"".concat(o,"-body-wrap"),j&&F)),ka=s,ba=N.isValidElement(y)?y:l.jsx(on,{prefix:o,style:(s==null?void 0:s.padding)===0||(s==null?void 0:s.padding)==="0px"?{padding:24}:void 0}),A=_a&&ia===void 0&&(da?da({collapsed:D}):l.jsx(Za,{rotate:D?void 0:90,className:"".concat(o,"-collapsible-icon ").concat(C).trim()}));return ua(l.jsxs("div",r(r({className:Ka,style:g,ref:a,onClick:function(c){var d;X==null||X(c),T==null||(d=T.onClick)===null||d===void 0||d.call(T,c)}},xa(T,["prefixCls","colSpan"])),{},{children:[(v||h||A)&&l.jsxs("div",{className:w("".concat(o,"-header"),C,n(n({},"".concat(o,"-header-border"),ja||O==="inner"),"".concat(o,"-header-collapsible"),A)),style:m,onClick:function(){A&&La(!D)},children:[l.jsxs("div",{className:"".concat(o,"-title ").concat(C).trim(),children:[A,l.jsx(an,{label:v,tooltip:Sa,subTitle:S})]}),h&&l.jsx("div",{className:"".concat(o,"-extra ").concat(C).trim(),onClick:function(c){return c.stopPropagation()},children:h})]}),I?l.jsx("div",{className:"".concat(o,"-tabs ").concat(C).trim(),children:l.jsx(ma,r(r({onChange:I.onChange},xa(I,["cardProps"])),{},{items:Aa,children:y?ba:W}))}):l.jsx("div",{className:Ha,style:ka,children:y?ba:Oa}),la?l.jsx(nn,{actions:la,prefixCls:o}):null]})))});const q=yn;var fn=function(a){var t=a.componentCls;return n({},t,{"&-divider":{flex:"none",width:a.lineWidth,marginInline:a.marginXS,marginBlock:a.marginLG,backgroundColor:a.colorSplit,"&-horizontal":{width:"initial",height:a.lineWidth,marginInline:a.marginLG,marginBlock:a.marginXS}},"&&-size-small &-divider":{marginBlock:a.marginLG,marginInline:a.marginXS,"&-horizontal":{marginBlock:a.marginXS,marginInline:a.marginLG}}})};function mn(e){return J("ProCardDivider",function(a){var t=r(r({},a),{},{componentCls:".".concat(e)});return[fn(t)]})}var Cn=function(a){var t=Q.useContext(Y.ConfigContext),i=t.getPrefixCls,g=i("pro-card"),s="".concat(g,"-divider"),m=mn(g),v=m.wrapSSR,S=m.hashId,h=a.className,x=a.style,j=x===void 0?{}:x,B=a.type,y=w(s,h,S,n({},"".concat(s,"-").concat(B),B));return v(l.jsx("div",{className:y,style:j}))};const Pn=Cn;export{q as C,Pn as D,In as T}; +import{bi as Va,b2 as q,_ as r,k as n,j as l,Z as R,$ as v,b as J,C as Q,cm as Ua,s as Y,b3 as w,ae as ma,v as Za,bn as qa,R as N,cn as U,co as Ja,x as Qa,w as ha,bm as Ya,cp as an,bb as xa,bP as ya}from"./umi-5f6aeac9.js";import{A as nn}from"./index-55505f41.js";var en=new Va("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),tn=function(a){return n({},a.componentCls,n(n({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(a.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(a.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:a.borderRadius,animationName:en,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};function ln(e){return q("ProCardLoading",function(a){var t=r(r({},a),{},{componentCls:".".concat(e)});return[tn(t)]})}var rn=function(a){var t=a.style,i=a.prefix,g=ln(i||"ant-pro-card"),s=g.wrapSSR;return s(l.jsxs("div",{className:"".concat(i,"-loading-content"),style:t,children:[l.jsx(R,{gutter:8,children:l.jsx(v,{span:22,children:l.jsx("div",{className:"".concat(i,"-loading-block")})})}),l.jsxs(R,{gutter:8,children:[l.jsx(v,{span:8,children:l.jsx("div",{className:"".concat(i,"-loading-block")})}),l.jsx(v,{span:15,children:l.jsx("div",{className:"".concat(i,"-loading-block")})})]}),l.jsxs(R,{gutter:8,children:[l.jsx(v,{span:6,children:l.jsx("div",{className:"".concat(i,"-loading-block")})}),l.jsx(v,{span:18,children:l.jsx("div",{className:"".concat(i,"-loading-block")})})]}),l.jsxs(R,{gutter:8,children:[l.jsx(v,{span:13,children:l.jsx("div",{className:"".concat(i,"-loading-block")})}),l.jsx(v,{span:9,children:l.jsx("div",{className:"".concat(i,"-loading-block")})})]}),l.jsxs(R,{gutter:8,children:[l.jsx(v,{span:4,children:l.jsx("div",{className:"".concat(i,"-loading-block")})}),l.jsx(v,{span:3,children:l.jsx("div",{className:"".concat(i,"-loading-block")})}),l.jsx(v,{span:16,children:l.jsx("div",{className:"".concat(i,"-loading-block")})})]})]}))};const on=rn;var cn=["tab","children"],dn=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function sn(e){return e.filter(function(a){return a})}function gn(e,a,t){if(e)return e.map(function(g){return r(r({},g),{},{children:l.jsx(Z,r(r({},t==null?void 0:t.cardProps),{},{children:g.children}))})});Za(!t,"Tabs.TabPane is deprecated. Please use `items` directly.");var i=qa(a).map(function(g){if(N.isValidElement(g)){var s=g.key,m=g.props,b=m||{},S=b.tab,h=b.children,x=Y(b,cn),j=r(r({key:String(s)},x),{},{children:l.jsx(Z,r(r({},t==null?void 0:t.cardProps),{},{children:h})),label:S});return j}return null});return sn(i)}var pn=function(a){var t=J.useContext(Q.ConfigContext),i=t.getPrefixCls;if(Ua.startsWith("5"))return l.jsx(l.Fragment,{});var g=a.key,s=a.tab,m=a.tabKey,b=a.disabled,S=a.destroyInactiveTabPane,h=a.children,x=a.className,j=a.style,B=a.cardProps,y=Y(a,dn),$=i("pro-card-tabpane"),M=w($,x);return l.jsx(ma.TabPane,r(r({tabKey:m,tab:s,className:M,style:j,disabled:b,destroyInactiveTabPane:S},y),{},{children:l.jsx(Z,r(r({},B),{},{children:h}))}),g)};const In=pn;var fa=function(a){return{backgroundColor:a.controlItemBgActive,borderColor:a.controlOutline}},un=function(a){var t=a.componentCls;return n(n(n({},t,r(r({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:a.colorBgContainer,borderRadius:a.borderRadius,transition:"all 0.3s"},U===null||U===void 0?void 0:U(a)),{},n(n(n(n(n(n(n(n(n(n({"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(a.lineWidth,"px ").concat(a.lineType," ").concat(a.colorSplit)},"&-hoverable":n({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(t,"-checked:hover"),{borderColor:a.controlOutline}),"&-checked":r(r({},fa(a)),{},{"&::after":{visibility:"visible",position:"absolute",insetBlockStart:2,insetInlineEnd:2,opacity:1,width:0,height:0,border:"6px solid ".concat(a.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":r({},fa(a)),"&&-ghost":n({backgroundColor:"transparent"},"> ".concat(t),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:a.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},"".concat(t,"-body-direction-column"),{flexDirection:"column"}),"".concat(t,"-body-wrap"),{flexWrap:"wrap"}),"&&-collapse",n({},"> ".concat(t),{"&-header":{paddingBlockEnd:a.padding,borderBlockEnd:0},"&-body":{display:"none"}})),"".concat(t,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:a.paddingLG,paddingBlock:a.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:a.padding},borderBlockEnd:"".concat(a.lineWidth,"px ").concat(a.lineType," ").concat(a.colorSplit)},"&-collapsible":{cursor:"pointer"}}),"".concat(t,"-title"),{color:a.colorText,fontWeight:500,fontSize:a.fontSizeLG,lineHeight:a.lineHeight}),"".concat(t,"-extra"),{color:a.colorText}),"".concat(t,"-type-inner"),n({},"".concat(t,"-header"),{backgroundColor:a.colorFillAlter})),"".concat(t,"-collapsible-icon"),{marginInlineEnd:a.marginXS,color:a.colorIconHover,":hover":{color:a.colorPrimaryHover},"& svg":{transition:"transform ".concat(a.motionDurationMid)}}),"".concat(t,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:a.paddingLG,paddingBlock:a.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),"&&-size-small",n(n({},t,{"&-header":{paddingInline:a.paddingSM,paddingBlock:a.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:a.paddingXS}},"&-title":{fontSize:a.fontSize},"&-body":{paddingInline:a.paddingSM,paddingBlock:a.paddingSM}}),"".concat(t,"-header").concat(t,"-header-collapsible"),{paddingBlock:a.paddingXS})))),"".concat(t,"-col"),n(n({},"&".concat(t,"-split-vertical"),{borderInlineEnd:"".concat(a.lineWidth,"px ").concat(a.lineType," ").concat(a.colorSplit)}),"&".concat(t,"-split-horizontal"),{borderBlockEnd:"".concat(a.lineWidth,"px ").concat(a.lineType," ").concat(a.colorSplit)})),"".concat(t,"-tabs"),n(n(n(n(n(n({},"".concat(a.antCls,"-tabs-top > ").concat(a.antCls,"-tabs-nav"),n({marginBlockEnd:0},"".concat(a.antCls,"-tabs-nav-list"),{marginBlockStart:a.marginXS,paddingInlineStart:a.padding})),"".concat(a.antCls,"-tabs-bottom > ").concat(a.antCls,"-tabs-nav"),n({marginBlockEnd:0},"".concat(a.antCls,"-tabs-nav-list"),{paddingInlineStart:a.padding})),"".concat(a.antCls,"-tabs-left"),n({},"".concat(a.antCls,"-tabs-content-holder"),n({},"".concat(a.antCls,"-tabs-content"),n({},"".concat(a.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(a.antCls,"-tabs-left > ").concat(a.antCls,"-tabs-nav"),n({marginInlineEnd:0},"".concat(a.antCls,"-tabs-nav-list"),{paddingBlockStart:a.padding})),"".concat(a.antCls,"-tabs-right"),n({},"".concat(a.antCls,"-tabs-content-holder"),n({},"".concat(a.antCls,"-tabs-content"),n({},"".concat(a.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(a.antCls,"-tabs-right > ").concat(a.antCls,"-tabs-nav"),n({},"".concat(a.antCls,"-tabs-nav-list"),{paddingBlockStart:a.padding})))},Ca=24,bn=function(a,t){var i=t.componentCls;return a===0?n({},"".concat(i,"-col-0"),{display:"none"}):n({},"".concat(i,"-col-").concat(a),{flexShrink:0,width:"".concat(a/Ca*100,"%")})},vn=function(a){return Array(Ca+1).fill(1).map(function(t,i){return bn(i,a)})};function hn(e){return q("ProCard",function(a){var t=r(r({},a),{},{componentCls:".".concat(e)});return[un(t),vn(t)]})}var xn=["className","style","bodyStyle","headStyle","title","subTitle","extra","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","colStyle","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],yn=N.forwardRef(function(e,a){var t,i=e.className,g=e.style,s=e.bodyStyle,m=e.headStyle,b=e.title,S=e.subTitle,h=e.extra,x=e.wrap,j=x===void 0?!1:x,B=e.layout,y=e.loading,$=e.gutter,M=$===void 0?0:$,Sa=e.tooltip,_=e.split,aa=e.headerBordered,ja=aa===void 0?!1:aa,na=e.bordered,Ia=na===void 0?!1:na,ea=e.boxShadow,Pa=ea===void 0?!1:ea,W=e.children,ta=e.size,la=e.actions,ra=e.ghost,Ba=ra===void 0?!1:ra,oa=e.hoverable,Na=oa===void 0?!1:oa,wa=e.direction,ia=e.collapsed,ca=e.collapsible,_a=ca===void 0?!1:ca,da=e.collapsibleIconRender,Ta=e.colStyle,sa=e.defaultCollapsed,Ea=sa===void 0?!1:sa,za=e.onCollapse,Ra=e.checked,X=e.onChecked,I=e.tabs,O=e.type,T=Y(e,xn),$a=J.useContext(Q.ConfigContext),Ga=$a.getPrefixCls,G=Ja()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},Da=Qa(Ea,{value:ia,onChange:za}),ga=ha(Da,2),D=ga[0],La=ga[1],L=["xxl","xl","lg","md","sm","xs"],Aa=gn(I==null?void 0:I.items,W,I),Ma=function(c){var d=[0,0],P=Array.isArray(c)?c:[c,0];return P.forEach(function(u,f){if(ya(u)==="object")for(var E=0;E=0&&f<=24)),ka=ua(l.jsx("div",{style:r(r(r(r({},E),H(K>0,{paddingInlineEnd:K/2,paddingInlineStart:K/2})),H(F>0,{paddingBlockStart:F/2,paddingBlockEnd:F/2})),Ta),className:z,children:N.cloneElement(p)}));return N.cloneElement(ka,{key:"pro-card-col-".concat((p==null?void 0:p.key)||c)})}return p}),Ha=w("".concat(o),i,C,(t={},n(n(n(n(n(n(n(n(n(n(t,"".concat(o,"-border"),Ia),"".concat(o,"-box-shadow"),Pa),"".concat(o,"-contain-card"),k),"".concat(o,"-loading"),y),"".concat(o,"-split"),_==="vertical"||_==="horizontal"),"".concat(o,"-ghost"),Ba),"".concat(o,"-hoverable"),Na),"".concat(o,"-size-").concat(ta),ta),"".concat(o,"-type-").concat(O),O),"".concat(o,"-collapse"),D),n(t,"".concat(o,"-checked"),Ra))),Ka=w("".concat(o,"-body"),C,n(n(n({},"".concat(o,"-body-center"),B==="center"),"".concat(o,"-body-direction-column"),_==="horizontal"||wa==="column"),"".concat(o,"-body-wrap"),j&&k)),Fa=s,va=N.isValidElement(y)?y:l.jsx(on,{prefix:o,style:(s==null?void 0:s.padding)===0||(s==null?void 0:s.padding)==="0px"?{padding:24}:void 0}),A=_a&&ia===void 0&&(da?da({collapsed:D}):l.jsx(Ya,{rotate:D?void 0:90,className:"".concat(o,"-collapsible-icon ").concat(C).trim()}));return ua(l.jsxs("div",r(r({className:Ha,style:g,ref:a,onClick:function(c){var d;X==null||X(c),T==null||(d=T.onClick)===null||d===void 0||d.call(T,c)}},xa(T,["prefixCls","colSpan"])),{},{children:[(b||h||A)&&l.jsxs("div",{className:w("".concat(o,"-header"),C,n(n({},"".concat(o,"-header-border"),ja||O==="inner"),"".concat(o,"-header-collapsible"),A)),style:m,onClick:function(){A&&La(!D)},children:[l.jsxs("div",{className:"".concat(o,"-title ").concat(C).trim(),children:[A,l.jsx(an,{label:b,tooltip:Sa,subTitle:S})]}),h&&l.jsx("div",{className:"".concat(o,"-extra ").concat(C).trim(),onClick:function(c){return c.stopPropagation()},children:h})]}),I?l.jsx("div",{className:"".concat(o,"-tabs ").concat(C).trim(),children:l.jsx(ma,r(r({onChange:I.onChange},xa(I,["cardProps"])),{},{items:Aa,children:y?va:W}))}):l.jsx("div",{className:Ka,style:Fa,children:y?va:Oa}),la?l.jsx(nn,{actions:la,prefixCls:o}):null]})))});const Z=yn;var fn=function(a){var t=a.componentCls;return n({},t,{"&-divider":{flex:"none",width:a.lineWidth,marginInline:a.marginXS,marginBlock:a.marginLG,backgroundColor:a.colorSplit,"&-horizontal":{width:"initial",height:a.lineWidth,marginInline:a.marginLG,marginBlock:a.marginXS}},"&&-size-small &-divider":{marginBlock:a.marginLG,marginInline:a.marginXS,"&-horizontal":{marginBlock:a.marginXS,marginInline:a.marginLG}}})};function mn(e){return q("ProCardDivider",function(a){var t=r(r({},a),{},{componentCls:".".concat(e)});return[fn(t)]})}var Cn=function(a){var t=J.useContext(Q.ConfigContext),i=t.getPrefixCls,g=i("pro-card"),s="".concat(g,"-divider"),m=mn(g),b=m.wrapSSR,S=m.hashId,h=a.className,x=a.style,j=x===void 0?{}:x,B=a.type,y=w(s,h,S,n({},"".concat(s,"-").concat(B),B));return b(l.jsx("div",{className:y,style:j}))};const Pn=Cn;export{Z as C,Pn as D,In as T}; diff --git a/web/dist/assets/index-4d8426f1.js b/web/dist/assets/index-4d8426f1.js new file mode 100644 index 0000000000000000000000000000000000000000..2026dff558d9b02da47d24853824dff0c84de47b --- /dev/null +++ b/web/dist/assets/index-4d8426f1.js @@ -0,0 +1 @@ +import{au as R,R as A,b,C as N,bw as D,j as a,_ as y,bx as M,Y as _,ax as $,B as f,ay as L,b0 as q,a1 as j}from"./umi-5f6aeac9.js";import{Q as E,I as S,g as U}from"./config-ac5a809b.js";import{X as B}from"./index-109f15ec.js";import{d as O}from"./table-0fa6c309.js";import{g as H}from"./device-ff507e64.js";import{a as Q,b as V}from"./flange-f16cbc3a.js";import{u as z}from"./useListAll-790074c1.js";import{M as X}from"./index-d045d7e9.js";import{P as K}from"./index-3fcbb702.js";import{c as Y}from"./clsx-0839fdbe.js";import{useFlangeParams as G}from"./hooks-3f5f605c.js";import{FlangeTorqueFinalCheckMap as J,FlangeTypeMap as W,FlangeCheckMap as Z}from"./constants-bc9b0dd9.js";import{U as ee}from"./index-04ced7f2.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./ActionButton-ff803f23.js";var te=A.forwardRef(function(n,c){var p,i=n.fieldProps,u=n.title,C=u===void 0?"单击或拖动文件到此区域进行上传":u,g=n.icon,F=g===void 0?a.jsx(M,{}):g,x=n.description,o=x===void 0?"支持单次或批量上传":x,r=n.action,l=n.accept,e=n.onChange,t=n.value,s=n.children,v=n.max,d=n.proFieldProps,T=b.useContext(N.ConfigContext),I=b.useContext(D),h=(d==null?void 0:d.mode)||I.mode||"edit",m=T.getPrefixCls("upload"),w=(v===void 0||!t||(t==null?void 0:t.length){_("dictModel");const{getListAll:n}=z({api:"/project/list"}),{flangeParams:c}=G(),p=b.useMemo(()=>{const o=[{title:"法兰ID",dataIndex:"id",hideInForm:!0,hideInTable:!0,hideInSearch:!0},{title:"项目名称",dataIndex:"project_id",hideInTable:!0,valueType:"select",formItemProps:{},fieldProps:{fieldNames:{label:"name",value:"id"},showSearch:!0},request:async()=>await n()},{title:"装置名称",dataIndex:"device_id",hideInTable:!0,valueType:"select",formItemProps:{},fieldProps:{fieldNames:{label:"name",value:"id"},showSearch:!0},request:async({project_id:r,keyWords:l})=>{const e={pageSize:9999};return r&&(e.project_id=r),l&&(e.name=l),(await H(e)).data},dependencies:["project_id"]},{title:"文件上传",dataIndex:"upload",hideInTable:!0,hideInSearch:!0,renderFormItem:(r,l,e)=>a.jsx(oe,{name:"file",max:1,accept:".xlsx",fieldProps:{customRequest({onSuccess:t}){t==null||t({})}},onChange:({file:t})=>{const s=t.status==="removed"?void 0:t.originFileObj;e.setFieldValue("file",s)}})},{title:"法兰名称",key:"name",dataIndex:"name",hideInForm:!0,hideInTable:!0},{title:"法兰位置",key:"location",dataIndex:"location",hideInForm:!0,hideInTable:!0},{title:"法兰编号",key:"code",dataIndex:"code",hideInForm:!0,hideInTable:!0}];if(c)for(const r of c){const{is_param:l,code:e,name:t,show_table:s,type:v}=r;if(!s)continue;const d=[];l===1&&d.push("data"),d.push(e),o.push({title:t,dataIndex:d,hideInForm:!0,hideInTable:s!==1,hideInSearch:!0,render:(T,I)=>{if(l!==1){const m=I[e];switch(e){case"type":return W.get(m)??"-";case"torque_final_check":return J.get(m)??"-";default:return T??"-"}}const h=I.data[e];switch(v){case"check":return h?Z.get(h.check):"-";default:return h||"-"}}})}return o.push({valueType:"dateTime",title:"更新时间",hideInForm:!0,hideInSearch:!0,dataIndex:"update_time"}),o},[c]),i=$(),u=b.useRef(),C=async o=>{const r=j.loading("正在删除");if(!o){j.warning("请选择需要删除的节点");return}let l=o.map(e=>e.id);O(k+"/delete",{ids:l.join()||""}).then(e=>{var t,s;e.success?(j.success(e.msg),(s=(t=u.current)==null?void 0:t.reloadAndRest)==null||s.call(t)):j.warning(e.msg)}).finally(()=>r())},[g,F]=X.useModal(),x=o=>{g.info({title:"二维码",icon:null,content:a.jsx(E,{errorLevel:"H",value:`${ie}/#/pages/flange/detail/detail?flange_code=${o}`,size:256,icon:S,style:{margin:"auto"}}),okText:"关闭"})};return a.jsxs(a.Fragment,{children:[a.jsx(B,{headerTitle:"法兰列表",tableApi:k,columns:p,accessName:"flange",deleteShow:!1,actionRef:u,editShow:!1,addText:"导入",addApi:"/flange/batchImportFromExcel",colProps:{span:24},className:"page-flange-list",toolBarRender:(o,r)=>[a.jsx(f,{type:"primary",onClick:()=>Q(),children:"导出模版"},"export"),a.jsx(f,{type:"primary",onClick:()=>V(r.selectedRowKeys.join(",")),children:"导出挂牌"},"export")],operateWidth:"120",operateRender:o=>a.jsx("div",{className:Y("actions",o.torque_final_check&&"is-complete"),children:a.jsxs(L,{accessible:i.buttonAccess("device.delete"),children:[a.jsx(K,{title:"删除",description:"你确定要删除这条数据吗?",onConfirm:()=>{C([o])},okText:"确认",cancelText:"取消",children:a.jsx(f,{type:"link",danger:!0,children:"删除"})}),a.jsx(f,{type:"link",onClick:()=>{q.push(`/flange/detail?id=${o.id}`)},children:"查看详情"}),a.jsx(f,{type:"link",onClick:()=>x(o.code),children:"二维码"})]})})}),F]})};export{Oe as default}; diff --git a/web/dist/assets/index-4dac56b2.js b/web/dist/assets/index-4dac56b2.js deleted file mode 100644 index 1d5b72c960cf1c2043b3f5d88170476e00dc414d..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-4dac56b2.js +++ /dev/null @@ -1 +0,0 @@ -import{ay as o,j as t,aB as a,av as m}from"./umi-2ee4055f.js";import{X as p}from"./index-1c416090.js";import"./index-ea2ed5fc.js";import"./ActionButton-a9da0b15.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./table-c83b9d9d.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./Table-3849f584.js";import"./Table-0e254f81.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./RouteContext-8fa10ad2.js";const n="/online.online_table",W=()=>{const e=o(),i=[{title:"ID",dataIndex:"id",hideInForm:!0},{title:"表格名称",dataIndex:"table_name",valueType:"text"},{title:"描述",dataIndex:"describe",valueType:"text",hideInSearch:!0},{title:"创建时间",dataIndex:"create_time",valueType:"date",hideInForm:!0},{title:"修改时间",dataIndex:"update_time",valueType:"date",hideInForm:!0}];return t.jsx(t.Fragment,{children:t.jsx(p,{tableApi:n,columns:i,operateRender:r=>t.jsx(a,{accessible:e.buttonAccess("online.table.devise"),children:t.jsx(m,{to:"/online/table/devise?id="+r.id,children:"设计页面"})})})})};export{W as default}; diff --git a/web/dist/assets/index-4f4b2ce5.js b/web/dist/assets/index-4f4b2ce5.js new file mode 100644 index 0000000000000000000000000000000000000000..797ac2a87b4b0df2a0ae05b88e6b7bd36b7607a6 --- /dev/null +++ b/web/dist/assets/index-4f4b2ce5.js @@ -0,0 +1 @@ +import{ax as o,j as t,ay as a,aC as m}from"./umi-5f6aeac9.js";import{X as p}from"./index-109f15ec.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./table-0fa6c309.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const n="/online.online_table",q=()=>{const e=o(),i=[{title:"ID",dataIndex:"id",hideInForm:!0},{title:"表格名称",dataIndex:"table_name",valueType:"text"},{title:"描述",dataIndex:"describe",valueType:"text",hideInSearch:!0},{title:"创建时间",dataIndex:"create_time",valueType:"date",hideInForm:!0},{title:"修改时间",dataIndex:"update_time",valueType:"date",hideInForm:!0}];return t.jsx(t.Fragment,{children:t.jsx(p,{tableApi:n,columns:i,operateRender:r=>t.jsx(a,{accessible:e.buttonAccess("online.table.devise"),children:t.jsx(m,{to:"/online/table/devise?id="+r.id,children:"设计页面"})})})})};export{q as default}; diff --git a/web/dist/assets/index-5035f938.js b/web/dist/assets/index-5035f938.js new file mode 100644 index 0000000000000000000000000000000000000000..4f7aacc07382d90f2ffba228ed6bc3de9db6dcf5 --- /dev/null +++ b/web/dist/assets/index-5035f938.js @@ -0,0 +1 @@ +import{R as d,s as n,b as P,a7 as u,j as F,G as c,_ as o,ac as f}from"./umi-5f6aeac9.js";var m=["fieldProps","proFieldProps"],t="dateRange",v=d.forwardRef(function(r,a){var e=r.fieldProps,i=r.proFieldProps,s=n(r,m),p=P.useContext(u);return F.jsx(c,o({ref:a,fieldProps:o({getPopupContainer:p.getPopupContainer},e),valueType:t,proFieldProps:i,filedConfig:{valueType:t,customLightMode:!0,lightFilterLabelFormatter:function(l){return f(l,(e==null?void 0:e.format)||"YYYY-MM-DD")}}},s))});const R=v;export{R as P}; diff --git a/web/dist/assets/index-2f3e26df.js b/web/dist/assets/index-53e65e71.js similarity index 45% rename from web/dist/assets/index-2f3e26df.js rename to web/dist/assets/index-53e65e71.js index ce1fc17ac6ecc26912e9826b1c9814783cdef1d2..9dd4e8b642bc1ff94f32f9dc09f3bca454a1ecf4 100644 --- a/web/dist/assets/index-2f3e26df.js +++ b/web/dist/assets/index-53e65e71.js @@ -1 +1 @@ -import{Y as c,at as u,j as e,au as l}from"./umi-2ee4055f.js";import{T as d}from"./index-9456f6ef.js";const m=(a,s,r)=>a==="badge"?e.jsx(l,{status:s,text:r}):a==="tag"?e.jsx(d,{color:s,children:r}):e.jsx(e.Fragment,{children:r}),j=a=>{const{value:s,dict:r}=a,{getDictionaryData:o}=c("dictModel"),{data:n}=u(async()=>await o(r)),t=n==null?void 0:n.filter(i=>i.value===s)[0];return e.jsx(e.Fragment,{children:t&&t.type&&t.label?m(t.type,t.status,t.label):s})};export{j as X}; +import{Y as c,aA as l,j as e,aB as u}from"./umi-5f6aeac9.js";import{T as d}from"./index-d4ea9132.js";const m=(a,s,r)=>a==="badge"?e.jsx(u,{status:s,text:r}):a==="tag"?e.jsx(d,{color:s,children:r}):e.jsx(e.Fragment,{children:r}),j=a=>{const{value:s,dict:r}=a,{getDictionaryData:o}=c("dictModel"),{data:n}=l(async()=>await o(r)),t=n==null?void 0:n.filter(i=>i.value===s)[0];return e.jsx(e.Fragment,{children:t&&t.type&&t.label?m(t.type,t.status,t.label):s})};export{j as X}; diff --git a/web/dist/assets/index-bd1f6aa3.js b/web/dist/assets/index-54d1fa42.js similarity index 92% rename from web/dist/assets/index-bd1f6aa3.js rename to web/dist/assets/index-54d1fa42.js index 56d0400f63563a080bcd2d02860c960ce2be5532..4e18b924112f5ebebe5835267a6ba038923c9ee5 100644 --- a/web/dist/assets/index-bd1f6aa3.js +++ b/web/dist/assets/index-54d1fa42.js @@ -1 +1 @@ -import{R as V,r as a,cr as R,b6 as q,aV as h,g as J,m as K,a as Q,t as Y,u as v,bi as Z,ce as k,bp as ee}from"./umi-2ee4055f.js";const te={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},ne=te,le=V.createContext({}),L=le;var oe=globalThis&&globalThis.__rest||function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);lq(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function ae(e,t,o){const n=a.useMemo(()=>t||se(o),[t,o]);return a.useMemo(()=>n.map(i=>{var{span:s}=i,g=oe(i,["span"]);return s==="filled"?Object.assign(Object.assign({},g),{filled:!0}):Object.assign(Object.assign({},g),{span:typeof s=="number"?s:R(e,s)})}),[n,e])}var ie=globalThis&&globalThis.__rest||function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);ls).forEach(s=>{const{filled:g}=s,u=ie(s,["filled"]);if(g){n.push(u),o.push(n),n=[],i=0;return}const y=t-i;i+=s.span||1,i>=t?(i>t?(l=!0,n.push(Object.assign(Object.assign({},u),{span:y}))):n.push(u),o.push(n),n=[],i=0):n.push(u)}),n.length>0&&o.push(n),o=o.map(s=>{const g=s.reduce((u,y)=>u+(y.span||1),0);if(g{const[o,n]=a.useMemo(()=>re(t,e),[t,e]);return o},de=ce,be=e=>{let{children:t}=e;return t},me=be;function _(e){return e!=null}const pe=e=>{const{itemPrefixCls:t,component:o,span:n,className:l,style:i,labelStyle:s,contentStyle:g,bordered:u,label:y,content:O,colon:x,type:b,styles:m}=e,j=o,r=a.useContext(L),{classNames:p}=r;return u?a.createElement(j,{className:h({[`${t}-item-label`]:b==="label",[`${t}-item-content`]:b==="content",[`${p==null?void 0:p.label}`]:b==="label",[`${p==null?void 0:p.content}`]:b==="content"},l),style:i,colSpan:n},_(y)&&a.createElement("span",{style:Object.assign(Object.assign({},s),m==null?void 0:m.label)},y),_(O)&&a.createElement("span",{style:Object.assign(Object.assign({},s),m==null?void 0:m.content)},O)):a.createElement(j,{className:h(`${t}-item`,l),style:i,colSpan:n},a.createElement("div",{className:`${t}-item-container`},(y||y===0)&&a.createElement("span",{className:h(`${t}-item-label`,p==null?void 0:p.label,{[`${t}-item-no-colon`]:!x}),style:Object.assign(Object.assign({},s),m==null?void 0:m.label)},y),(O||O===0)&&a.createElement("span",{className:h(`${t}-item-content`,p==null?void 0:p.content),style:Object.assign(Object.assign({},g),m==null?void 0:m.content)},O)))},T=pe;function B(e,t,o){let{colon:n,prefixCls:l,bordered:i}=t,{component:s,type:g,showLabel:u,showContent:y,labelStyle:O,contentStyle:x,styles:b}=o;return e.map((m,j)=>{let{label:r,children:p,prefixCls:c=l,className:S,style:C,labelStyle:E,contentStyle:N,span:P=1,key:f,styles:d}=m;return typeof s=="string"?a.createElement(T,{key:`${g}-${f||j}`,className:S,style:C,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},O),b==null?void 0:b.label),E),d==null?void 0:d.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},x),b==null?void 0:b.content),N),d==null?void 0:d.content)},span:P,colon:n,component:s,itemPrefixCls:c,bordered:i,label:u?r:null,content:y?p:null,type:g}):[a.createElement(T,{key:`label-${f||j}`,className:S,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},O),b==null?void 0:b.label),C),E),d==null?void 0:d.label),span:1,colon:n,component:s[0],itemPrefixCls:c,bordered:i,label:r,type:"label"}),a.createElement(T,{key:`content-${f||j}`,className:S,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},x),b==null?void 0:b.content),C),N),d==null?void 0:d.content),span:P*2-1,component:s[1],itemPrefixCls:c,bordered:i,content:p,type:"content"})]})}const ge=e=>{const t=a.useContext(L),{prefixCls:o,vertical:n,row:l,index:i,bordered:s}=e;return n?a.createElement(a.Fragment,null,a.createElement("tr",{key:`label-${i}`,className:`${o}-row`},B(l,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),a.createElement("tr",{key:`content-${i}`,className:`${o}-row`},B(l,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):a.createElement("tr",{key:i,className:`${o}-row`},B(l,e,Object.assign({component:s?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},ue=ge,ye=e=>{const{componentCls:t,labelBg:o}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${v(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${v(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${v(e.padding)} ${v(e.paddingLG)}`,borderInlineEnd:`${v(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:o,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${v(e.paddingSM)} ${v(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${v(e.paddingXS)} ${v(e.padding)}`}}}}}},fe=e=>{const{componentCls:t,extraColor:o,itemPaddingBottom:n,itemPaddingEnd:l,colonMarginRight:i,colonMarginLeft:s,titleMarginBottom:g}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Q(e)),ye(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:g},[`${t}-title`]:Object.assign(Object.assign({},Y),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:o,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:n,paddingInlineEnd:l},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${v(s)} ${v(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},ve=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),Oe=J("Descriptions",e=>{const t=K(e,{});return fe(t)},ve);var $e=globalThis&&globalThis.__rest||function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l{const{prefixCls:t,title:o,extra:n,column:l,colon:i=!0,bordered:s,layout:g,children:u,className:y,rootClassName:O,style:x,size:b,labelStyle:m,contentStyle:j,styles:r,items:p,classNames:c}=e,S=$e(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:C,direction:E,className:N,style:P,classNames:f,styles:d}=Z("descriptions"),$=C("descriptions",t),I=k(),A=a.useMemo(()=>{var w;return typeof l=="number"?l:(w=R(I,Object.assign(Object.assign({},ne),l)))!==null&&w!==void 0?w:3},[I,l]),H=ae(I,p,u),M=ee(b),W=de(A,H),[G,X,F]=Oe($),U=a.useMemo(()=>({labelStyle:m,contentStyle:j,styles:{content:Object.assign(Object.assign({},d.content),r==null?void 0:r.content),label:Object.assign(Object.assign({},d.label),r==null?void 0:r.label)},classNames:{label:h(f.label,c==null?void 0:c.label),content:h(f.content,c==null?void 0:c.content)}}),[m,j,r,c,f,d]);return G(a.createElement(L.Provider,{value:U},a.createElement("div",Object.assign({className:h($,N,f.root,c==null?void 0:c.root,{[`${$}-${M}`]:M&&M!=="default",[`${$}-bordered`]:!!s,[`${$}-rtl`]:E==="rtl"},y,O,X,F),style:Object.assign(Object.assign(Object.assign(Object.assign({},P),d.root),r==null?void 0:r.root),x)},S),(o||n)&&a.createElement("div",{className:h(`${$}-header`,f.header,c==null?void 0:c.header),style:Object.assign(Object.assign({},d.header),r==null?void 0:r.header)},o&&a.createElement("div",{className:h(`${$}-title`,f.title,c==null?void 0:c.title),style:Object.assign(Object.assign({},d.title),r==null?void 0:r.title)},o),n&&a.createElement("div",{className:h(`${$}-extra`,f.extra,c==null?void 0:c.extra),style:Object.assign(Object.assign({},d.extra),r==null?void 0:r.extra)},n)),a.createElement("div",{className:`${$}-view`},a.createElement("table",null,a.createElement("tbody",null,W.map((w,z)=>a.createElement(ue,{key:z,index:z,colon:i,prefixCls:$,vertical:g==="vertical",bordered:s,row:w}))))))))};D.Item=me;const je=D;export{je as D}; +import{R as V,b as a,cH as R,bn as q,b3 as h,g as J,m as K,a as Q,t as Y,u as v,bh as Z,co as k,bB as ee}from"./umi-5f6aeac9.js";const te={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},ne=te,le=V.createContext({}),L=le;var oe=globalThis&&globalThis.__rest||function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);lq(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function ae(e,t,o){const n=a.useMemo(()=>t||se(o),[t,o]);return a.useMemo(()=>n.map(i=>{var{span:s}=i,g=oe(i,["span"]);return s==="filled"?Object.assign(Object.assign({},g),{filled:!0}):Object.assign(Object.assign({},g),{span:typeof s=="number"?s:R(e,s)})}),[n,e])}var ie=globalThis&&globalThis.__rest||function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);ls).forEach(s=>{const{filled:g}=s,u=ie(s,["filled"]);if(g){n.push(u),o.push(n),n=[],i=0;return}const y=t-i;i+=s.span||1,i>=t?(i>t?(l=!0,n.push(Object.assign(Object.assign({},u),{span:y}))):n.push(u),o.push(n),n=[],i=0):n.push(u)}),n.length>0&&o.push(n),o=o.map(s=>{const g=s.reduce((u,y)=>u+(y.span||1),0);if(g{const[o,n]=a.useMemo(()=>re(t,e),[t,e]);return o},de=ce,be=e=>{let{children:t}=e;return t},me=be;function _(e){return e!=null}const pe=e=>{const{itemPrefixCls:t,component:o,span:n,className:l,style:i,labelStyle:s,contentStyle:g,bordered:u,label:y,content:O,colon:x,type:b,styles:m}=e,j=o,r=a.useContext(L),{classNames:p}=r;return u?a.createElement(j,{className:h({[`${t}-item-label`]:b==="label",[`${t}-item-content`]:b==="content",[`${p==null?void 0:p.label}`]:b==="label",[`${p==null?void 0:p.content}`]:b==="content"},l),style:i,colSpan:n},_(y)&&a.createElement("span",{style:Object.assign(Object.assign({},s),m==null?void 0:m.label)},y),_(O)&&a.createElement("span",{style:Object.assign(Object.assign({},s),m==null?void 0:m.content)},O)):a.createElement(j,{className:h(`${t}-item`,l),style:i,colSpan:n},a.createElement("div",{className:`${t}-item-container`},(y||y===0)&&a.createElement("span",{className:h(`${t}-item-label`,p==null?void 0:p.label,{[`${t}-item-no-colon`]:!x}),style:Object.assign(Object.assign({},s),m==null?void 0:m.label)},y),(O||O===0)&&a.createElement("span",{className:h(`${t}-item-content`,p==null?void 0:p.content),style:Object.assign(Object.assign({},g),m==null?void 0:m.content)},O)))},M=pe;function T(e,t,o){let{colon:n,prefixCls:l,bordered:i}=t,{component:s,type:g,showLabel:u,showContent:y,labelStyle:O,contentStyle:x,styles:b}=o;return e.map((m,j)=>{let{label:r,children:p,prefixCls:c=l,className:S,style:C,labelStyle:E,contentStyle:N,span:P=1,key:f,styles:d}=m;return typeof s=="string"?a.createElement(M,{key:`${g}-${f||j}`,className:S,style:C,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},O),b==null?void 0:b.label),E),d==null?void 0:d.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},x),b==null?void 0:b.content),N),d==null?void 0:d.content)},span:P,colon:n,component:s,itemPrefixCls:c,bordered:i,label:u?r:null,content:y?p:null,type:g}):[a.createElement(M,{key:`label-${f||j}`,className:S,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},O),b==null?void 0:b.label),C),E),d==null?void 0:d.label),span:1,colon:n,component:s[0],itemPrefixCls:c,bordered:i,label:r,type:"label"}),a.createElement(M,{key:`content-${f||j}`,className:S,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},x),b==null?void 0:b.content),C),N),d==null?void 0:d.content),span:P*2-1,component:s[1],itemPrefixCls:c,bordered:i,content:p,type:"content"})]})}const ge=e=>{const t=a.useContext(L),{prefixCls:o,vertical:n,row:l,index:i,bordered:s}=e;return n?a.createElement(a.Fragment,null,a.createElement("tr",{key:`label-${i}`,className:`${o}-row`},T(l,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),a.createElement("tr",{key:`content-${i}`,className:`${o}-row`},T(l,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):a.createElement("tr",{key:i,className:`${o}-row`},T(l,e,Object.assign({component:s?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},ue=ge,ye=e=>{const{componentCls:t,labelBg:o}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${v(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${v(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${v(e.padding)} ${v(e.paddingLG)}`,borderInlineEnd:`${v(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:o,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${v(e.paddingSM)} ${v(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${v(e.paddingXS)} ${v(e.padding)}`}}}}}},fe=e=>{const{componentCls:t,extraColor:o,itemPaddingBottom:n,itemPaddingEnd:l,colonMarginRight:i,colonMarginLeft:s,titleMarginBottom:g}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Q(e)),ye(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:g},[`${t}-title`]:Object.assign(Object.assign({},Y),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:o,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:n,paddingInlineEnd:l},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${v(s)} ${v(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},ve=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),Oe=J("Descriptions",e=>{const t=K(e,{});return fe(t)},ve);var $e=globalThis&&globalThis.__rest||function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l{const{prefixCls:t,title:o,extra:n,column:l,colon:i=!0,bordered:s,layout:g,children:u,className:y,rootClassName:O,style:x,size:b,labelStyle:m,contentStyle:j,styles:r,items:p,classNames:c}=e,S=$e(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:C,direction:E,className:N,style:P,classNames:f,styles:d}=Z("descriptions"),$=C("descriptions",t),I=k(),H=a.useMemo(()=>{var w;return typeof l=="number"?l:(w=R(I,Object.assign(Object.assign({},ne),l)))!==null&&w!==void 0?w:3},[I,l]),A=ae(I,p,u),B=ee(b),W=de(H,A),[G,X,F]=Oe($),U=a.useMemo(()=>({labelStyle:m,contentStyle:j,styles:{content:Object.assign(Object.assign({},d.content),r==null?void 0:r.content),label:Object.assign(Object.assign({},d.label),r==null?void 0:r.label)},classNames:{label:h(f.label,c==null?void 0:c.label),content:h(f.content,c==null?void 0:c.content)}}),[m,j,r,c,f,d]);return G(a.createElement(L.Provider,{value:U},a.createElement("div",Object.assign({className:h($,N,f.root,c==null?void 0:c.root,{[`${$}-${B}`]:B&&B!=="default",[`${$}-bordered`]:!!s,[`${$}-rtl`]:E==="rtl"},y,O,X,F),style:Object.assign(Object.assign(Object.assign(Object.assign({},P),d.root),r==null?void 0:r.root),x)},S),(o||n)&&a.createElement("div",{className:h(`${$}-header`,f.header,c==null?void 0:c.header),style:Object.assign(Object.assign({},d.header),r==null?void 0:r.header)},o&&a.createElement("div",{className:h(`${$}-title`,f.title,c==null?void 0:c.title),style:Object.assign(Object.assign({},d.title),r==null?void 0:r.title)},o),n&&a.createElement("div",{className:h(`${$}-extra`,f.extra,c==null?void 0:c.extra),style:Object.assign(Object.assign({},d.extra),r==null?void 0:r.extra)},n)),a.createElement("div",{className:`${$}-view`},a.createElement("table",null,a.createElement("tbody",null,W.map((w,z)=>a.createElement(ue,{key:z,index:z,colon:i,prefixCls:$,vertical:g==="vertical",bordered:s,row:w}))))))))};D.Item=me;const je=D;export{je as D}; diff --git a/web/dist/assets/index-63e0f416.js b/web/dist/assets/index-55505f41.js similarity index 96% rename from web/dist/assets/index-63e0f416.js rename to web/dist/assets/index-55505f41.js index 5b5a730e40d935b69242227faeaa5e9cac6d17b8..713db4b7895018efb5e4f85c6b4a28578a02d4e8 100644 --- a/web/dist/assets/index-63e0f416.js +++ b/web/dist/assets/index-55505f41.js @@ -1,2 +1,2 @@ -import{aU as h,_ as d,K as i,j as t,aV as l}from"./umi-2ee4055f.js";var y=function(o){var n=o.componentCls,r=o.antCls;return i({},"".concat(n,"-actions"),i(i({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:o.marginXS,background:o.colorBgContainer,borderBlockStart:"".concat(o.lineWidth,"px ").concat(o.lineType," ").concat(o.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:o.colorTextSecondary,transition:"color 0.3s","&:hover":{color:o.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:o.marginSM,marginInline:0,color:o.colorTextSecondary,textAlign:"center",a:{color:o.colorTextSecondary,transition:"color 0.3s","&:hover":{color:o.colorPrimaryHover}},div:i(i({position:"relative",display:"block",minWidth:32,fontSize:o.fontSize,lineHeight:o.lineHeight,cursor:"pointer","&:hover":{color:o.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(r,`-btn), +import{b2 as h,_ as d,k as i,j as t,b3 as l}from"./umi-5f6aeac9.js";var y=function(o){var n=o.componentCls,r=o.antCls;return i({},"".concat(n,"-actions"),i(i({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:o.marginXS,background:o.colorBgContainer,borderBlockStart:"".concat(o.lineWidth,"px ").concat(o.lineType," ").concat(o.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:o.colorTextSecondary,transition:"color 0.3s","&:hover":{color:o.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:o.marginSM,marginInline:0,color:o.colorTextSecondary,textAlign:"center",a:{color:o.colorTextSecondary,transition:"color 0.3s","&:hover":{color:o.colorPrimaryHover}},div:i(i({position:"relative",display:"block",minWidth:32,fontSize:o.fontSize,lineHeight:o.lineHeight,cursor:"pointer","&:hover":{color:o.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(r,`-btn), > .anticon`),{display:"inline-block",width:"100%",color:o.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:o.colorPrimaryHover}}),".anticon",{fontSize:o.cardActionIconSize,lineHeight:"22px"}),"&:not(:last-child)":{borderInlineEnd:"".concat(o.lineWidth,"px ").concat(o.lineType," ").concat(o.colorSplit)}}))};function S(c){return h("ProCardActions",function(o){var n=d(d({},o),{},{componentCls:".".concat(c),cardActionIconSize:16});return[y(n)]})}var g=function(o){var n=o.actions,r=o.prefixCls,e=S(r),s=e.wrapSSR,a=e.hashId;return Array.isArray(n)&&n!==null&&n!==void 0&&n.length?s(t.jsx("ul",{className:l("".concat(r,"-actions"),a),children:n.map(function(p,m){return t.jsx("li",{style:{width:"".concat(100/n.length,"%"),padding:0,margin:0},className:l("".concat(r,"-actions-item"),a),children:p},"action-".concat(m))})})):s(t.jsx("ul",{className:l("".concat(r,"-actions"),a),children:n}))};const x=g;export{x as A}; diff --git a/web/dist/assets/index-8a549704.js b/web/dist/assets/index-55d2ebbc.js similarity index 70% rename from web/dist/assets/index-8a549704.js rename to web/dist/assets/index-55d2ebbc.js index ad7b349ef36ff155091ae9e2bd418b14852822a7..0423143f1dd7d1b170a4cb3d8327d8cfef6d8a7f 100644 --- a/web/dist/assets/index-8a549704.js +++ b/web/dist/assets/index-55d2ebbc.js @@ -1 +1 @@ -import{r as s,bc as T,aV as b,bo as me,bp as ve,a8 as ye,b8 as ue,bl as fe}from"./umi-2ee4055f.js";import{u as ge}from"./index-275c5384.js";var pe=globalThis&&globalThis.__rest||function(t,o){var l={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(l[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(t);a{var{prefixCls:o,className:l,hoverable:e=!0}=t,a=pe(t,["prefixCls","className","hoverable"]);const{getPrefixCls:m}=s.useContext(T),d=m("card",o),f=b(`${d}-grid`,l,{[`${d}-grid-hoverable`]:e});return s.createElement("div",Object.assign({},a,{className:f}))},M=he;var I=globalThis&&globalThis.__rest||function(t,o){var l={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(l[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(t);a{const{actionClasses:o,actions:l=[],actionStyle:e}=t;return s.createElement("ul",{className:o,style:e},l.map((a,m)=>{const d=`action-${m}`;return s.createElement("li",{style:{width:`${100/l.length}%`},key:d},s.createElement("span",null,a))}))},Oe=s.forwardRef((t,o)=>{const{prefixCls:l,className:e,rootClassName:a,style:m,extra:d,headStyle:f={},bodyStyle:v={},title:g,loading:C,bordered:O,variant:x,size:S,type:_,cover:z,actions:$,tabList:p,children:N,activeTabKey:K,defaultActiveTabKey:V,tabBarExtraContent:k,hoverable:B,tabProps:L={},classNames:j,styles:E}=t,H=I(t,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:R,direction:q,card:i}=s.useContext(T),[F]=me("card",x,O),J=c=>{var r;(r=t.onTabChange)===null||r===void 0||r.call(t,c)},y=c=>{var r;return b((r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r[c],j==null?void 0:j[c])},u=c=>{var r;return Object.assign(Object.assign({},(r=i==null?void 0:i.styles)===null||r===void 0?void 0:r[c]),E==null?void 0:E[c])},Q=s.useMemo(()=>{let c=!1;return s.Children.forEach(N,r=>{(r==null?void 0:r.type)===M&&(c=!0)}),c},[N]),n=R("card",l),[U,W,X]=ge(n),Y=s.createElement(fe,{loading:!0,active:!0,paragraph:{rows:4},title:!1},N),D=K!==void 0,Z=Object.assign(Object.assign({},L),{[D?"activeKey":"defaultActiveKey"]:D?K:V,tabBarExtraContent:k});let A;const h=ve(S),ee=!h||h==="default"?"large":h,G=p?s.createElement(ye,Object.assign({size:ee},Z,{className:`${n}-head-tabs`,onChange:J,items:p.map(c=>{var{tab:r}=c,P=I(c,["tab"]);return Object.assign({label:r},P)})})):null;if(g||d||G){const c=b(`${n}-head`,y("header")),r=b(`${n}-head-title`,y("title")),P=b(`${n}-extra`,y("extra")),be=Object.assign(Object.assign({},f),u("header"));A=s.createElement("div",{className:c,style:be},s.createElement("div",{className:`${n}-head-wrapper`},g&&s.createElement("div",{className:r,style:u("title")},g),d&&s.createElement("div",{className:P,style:u("extra")},d)),G)}const te=b(`${n}-cover`,y("cover")),ae=z?s.createElement("div",{className:te,style:u("cover")},z):null,se=b(`${n}-body`,y("body")),le=Object.assign(Object.assign({},v),u("body")),re=s.createElement("div",{className:se,style:le},C?Y:N),ne=b(`${n}-actions`,y("actions")),oe=$!=null&&$.length?s.createElement(Ce,{actionClasses:ne,actionStyle:u("actions"),actions:$}):null,ce=ue(H,["onTabChange"]),ie=b(n,i==null?void 0:i.className,{[`${n}-loading`]:C,[`${n}-bordered`]:F!=="borderless",[`${n}-hoverable`]:B,[`${n}-contain-grid`]:Q,[`${n}-contain-tabs`]:p==null?void 0:p.length,[`${n}-${h}`]:h,[`${n}-type-${_}`]:!!_,[`${n}-rtl`]:q==="rtl"},e,a,W,X),de=Object.assign(Object.assign({},i==null?void 0:i.style),m);return U(s.createElement("div",Object.assign({ref:o},ce,{className:ie,style:de}),A,ae,re,oe))}),xe=Oe;var $e=globalThis&&globalThis.__rest||function(t,o){var l={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(l[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(t);a{const{prefixCls:o,className:l,avatar:e,title:a,description:m}=t,d=$e(t,["prefixCls","className","avatar","title","description"]),{getPrefixCls:f}=s.useContext(T),v=f("card",o),g=b(`${v}-meta`,l),C=e?s.createElement("div",{className:`${v}-meta-avatar`},e):null,O=a?s.createElement("div",{className:`${v}-meta-title`},a):null,x=m?s.createElement("div",{className:`${v}-meta-description`},m):null,S=O||x?s.createElement("div",{className:`${v}-meta-detail`},O,x):null;return s.createElement("div",Object.assign({},d,{className:g}),C,S)},Se=Ne,w=xe;w.Grid=M;w.Meta=Se;const Pe=w;export{Pe as C}; +import{b as s,b9 as T,b3 as b,bA as me,bB as ve,ae as ye,bb as ue,bj as fe}from"./umi-5f6aeac9.js";import{u as ge}from"./index-13cae3f4.js";var pe=globalThis&&globalThis.__rest||function(t,o){var l={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(l[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(t);a{var{prefixCls:o,className:l,hoverable:e=!0}=t,a=pe(t,["prefixCls","className","hoverable"]);const{getPrefixCls:m}=s.useContext(T),d=m("card",o),f=b(`${d}-grid`,l,{[`${d}-grid-hoverable`]:e});return s.createElement("div",Object.assign({},a,{className:f}))},I=he;var G=globalThis&&globalThis.__rest||function(t,o){var l={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(l[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(t);a{const{actionClasses:o,actions:l=[],actionStyle:e}=t;return s.createElement("ul",{className:o,style:e},l.map((a,m)=>{const d=`action-${m}`;return s.createElement("li",{style:{width:`${100/l.length}%`},key:d},s.createElement("span",null,a))}))},Oe=s.forwardRef((t,o)=>{const{prefixCls:l,className:e,rootClassName:a,style:m,extra:d,headStyle:f={},bodyStyle:v={},title:g,loading:C,bordered:O,variant:x,size:N,type:_,cover:z,actions:$,tabList:p,children:j,activeTabKey:K,defaultActiveTabKey:M,tabBarExtraContent:k,hoverable:V,tabProps:L={},classNames:S,styles:E}=t,H=G(t,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:R,direction:q,card:i}=s.useContext(T),[F]=me("card",x,O),J=c=>{var r;(r=t.onTabChange)===null||r===void 0||r.call(t,c)},y=c=>{var r;return b((r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r[c],S==null?void 0:S[c])},u=c=>{var r;return Object.assign(Object.assign({},(r=i==null?void 0:i.styles)===null||r===void 0?void 0:r[c]),E==null?void 0:E[c])},Q=s.useMemo(()=>{let c=!1;return s.Children.forEach(j,r=>{(r==null?void 0:r.type)===I&&(c=!0)}),c},[j]),n=R("card",l),[U,W,X]=ge(n),Y=s.createElement(fe,{loading:!0,active:!0,paragraph:{rows:4},title:!1},j),A=K!==void 0,Z=Object.assign(Object.assign({},L),{[A?"activeKey":"defaultActiveKey"]:A?K:M,tabBarExtraContent:k});let D;const h=ve(N),ee=!h||h==="default"?"large":h,B=p?s.createElement(ye,Object.assign({size:ee},Z,{className:`${n}-head-tabs`,onChange:J,items:p.map(c=>{var{tab:r}=c,P=G(c,["tab"]);return Object.assign({label:r},P)})})):null;if(g||d||B){const c=b(`${n}-head`,y("header")),r=b(`${n}-head-title`,y("title")),P=b(`${n}-extra`,y("extra")),be=Object.assign(Object.assign({},f),u("header"));D=s.createElement("div",{className:c,style:be},s.createElement("div",{className:`${n}-head-wrapper`},g&&s.createElement("div",{className:r,style:u("title")},g),d&&s.createElement("div",{className:P,style:u("extra")},d)),B)}const te=b(`${n}-cover`,y("cover")),ae=z?s.createElement("div",{className:te,style:u("cover")},z):null,se=b(`${n}-body`,y("body")),le=Object.assign(Object.assign({},v),u("body")),re=s.createElement("div",{className:se,style:le},C?Y:j),ne=b(`${n}-actions`,y("actions")),oe=$!=null&&$.length?s.createElement(Ce,{actionClasses:ne,actionStyle:u("actions"),actions:$}):null,ce=ue(H,["onTabChange"]),ie=b(n,i==null?void 0:i.className,{[`${n}-loading`]:C,[`${n}-bordered`]:F!=="borderless",[`${n}-hoverable`]:V,[`${n}-contain-grid`]:Q,[`${n}-contain-tabs`]:p==null?void 0:p.length,[`${n}-${h}`]:h,[`${n}-type-${_}`]:!!_,[`${n}-rtl`]:q==="rtl"},e,a,W,X),de=Object.assign(Object.assign({},i==null?void 0:i.style),m);return U(s.createElement("div",Object.assign({ref:o},ce,{className:ie,style:de}),D,ae,re,oe))}),xe=Oe;var $e=globalThis&&globalThis.__rest||function(t,o){var l={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(l[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(t);a{const{prefixCls:o,className:l,avatar:e,title:a,description:m}=t,d=$e(t,["prefixCls","className","avatar","title","description"]),{getPrefixCls:f}=s.useContext(T),v=f("card",o),g=b(`${v}-meta`,l),C=e?s.createElement("div",{className:`${v}-meta-avatar`},e):null,O=a?s.createElement("div",{className:`${v}-meta-title`},a):null,x=m?s.createElement("div",{className:`${v}-meta-description`},m):null,N=O||x?s.createElement("div",{className:`${v}-meta-detail`},O,x):null;return s.createElement("div",Object.assign({},d,{className:g}),C,N)},Ne=je,w=xe;w.Grid=I;w.Meta=Ne;const Pe=w;export{Pe as C}; diff --git a/web/dist/assets/index-e6a855a3.js b/web/dist/assets/index-588da60e.js similarity index 77% rename from web/dist/assets/index-e6a855a3.js rename to web/dist/assets/index-588da60e.js index 461c87c1e938b0e552e045c90a25e91103ecd9cf..adb07b67c24bd15c6e28c2047d8df5bebfcdf300 100644 --- a/web/dist/assets/index-e6a855a3.js +++ b/web/dist/assets/index-588da60e.js @@ -1 +1 @@ -import{j as t}from"./umi-2ee4055f.js";import{S as i}from"./index-7b54423a.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-426be59b.js";const{Statistic:s,Divider:a}=i,p=()=>t.jsxs(i.Group,{direction:"row",children:[t.jsx(i,{statistic:{title:"总流量(人次)",value:601986875}}),t.jsx(a,{type:"vertical"}),t.jsx(i,{statistic:{title:"付费流量",value:3701928,description:t.jsx(s,{title:"占比",value:"61.5%"})},chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/ShNDpDTik/huan.svg",alt:"百分比",width:"100%"}),chartPlacement:"left"}),t.jsx(i,{statistic:{title:"免费流量",value:1806062,description:t.jsx(s,{title:"占比",value:"38.5%"})},chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/6YR18tCxJ/huanlv.svg",alt:"百分比",width:"100%"}),chartPlacement:"left"})]});export{p as default}; +import{j as t}from"./umi-5f6aeac9.js";import{S as i}from"./index-7b6639e6.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-e3aca980.js";const{Statistic:s,Divider:a}=i,p=()=>t.jsxs(i.Group,{direction:"row",children:[t.jsx(i,{statistic:{title:"总流量(人次)",value:601986875}}),t.jsx(a,{type:"vertical"}),t.jsx(i,{statistic:{title:"付费流量",value:3701928,description:t.jsx(s,{title:"占比",value:"61.5%"})},chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/ShNDpDTik/huan.svg",alt:"百分比",width:"100%"}),chartPlacement:"left"}),t.jsx(i,{statistic:{title:"免费流量",value:1806062,description:t.jsx(s,{title:"占比",value:"38.5%"})},chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/6YR18tCxJ/huanlv.svg",alt:"百分比",width:"100%"}),chartPlacement:"left"})]});export{p as default}; diff --git a/web/dist/assets/index-5a53c961.js b/web/dist/assets/index-5a53c961.js new file mode 100644 index 0000000000000000000000000000000000000000..18cb23a6205bfb54a7465f1a4c5f4cf1fed2f0f0 --- /dev/null +++ b/web/dist/assets/index-5a53c961.js @@ -0,0 +1 @@ +import{s as ae,b3 as Q,k as _,_ as d,b as s,cr as se,cs as ye,R as U,bn as Pe,co as we,bh as Me,bB as ze,ct as Oe,cu as Ae,b1 as Te,T as Be,v as Le,j as m,D as We,bb as Ve,E as Re,F as ie,b2 as He,ak as Ke,H as Ne,C as qe,w as me,K as Ge,x as Ze,bk as Se,cq as Je,L as de,B as fe,a0 as Qe,Z as ve,$ as re,bR as Ue,cm as Xe}from"./umi-5f6aeac9.js";import{u as Ye}from"./index-9d3aa6d1.js";var et=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function be(e){return typeof e=="string"}function Fe(e){var a,n=e.className,t=e.prefixCls,c=e.style,N=e.active,f=e.status,r=e.iconPrefix,l=e.icon;e.wrapperStyle;var C=e.stepNumber,F=e.disabled,v=e.description,S=e.title,$=e.subTitle,P=e.progressDot,W=e.stepIcon,H=e.tailContent,g=e.icons,T=e.stepIndex,x=e.onStepClick,R=e.onClick,k=e.render,G=ae(e,et),B=!!x&&!F,h={};B&&(h.role="button",h.tabIndex=0,h.onClick=function(j){R==null||R(j),x(T)},h.onKeyDown=function(j){var D=j.which;(D===ye.ENTER||D===ye.SPACE)&&x(T)});var K=function(){var D,p,u=Q("".concat(t,"-icon"),"".concat(r,"icon"),(D={},_(D,"".concat(r,"icon-").concat(l),l&&be(l)),_(D,"".concat(r,"icon-check"),!l&&f==="finish"&&(g&&!g.finish||!g)),_(D,"".concat(r,"icon-cross"),!l&&f==="error"&&(g&&!g.error||!g)),D)),z=s.createElement("span",{className:"".concat(t,"-icon-dot")});return P?typeof P=="function"?p=s.createElement("span",{className:"".concat(t,"-icon")},P(z,{index:C-1,status:f,title:S,description:v})):p=s.createElement("span",{className:"".concat(t,"-icon")},z):l&&!be(l)?p=s.createElement("span",{className:"".concat(t,"-icon")},l):g&&g.finish&&f==="finish"?p=s.createElement("span",{className:"".concat(t,"-icon")},g.finish):g&&g.error&&f==="error"?p=s.createElement("span",{className:"".concat(t,"-icon")},g.error):l||f==="finish"||f==="error"?p=s.createElement("span",{className:u}):p=s.createElement("span",{className:"".concat(t,"-icon")},C),W&&(p=W({index:C-1,status:f,title:S,description:v,node:p})),p},O=f||"wait",V=Q("".concat(t,"-item"),"".concat(t,"-item-").concat(O),n,(a={},_(a,"".concat(t,"-item-custom"),l),_(a,"".concat(t,"-item-active"),N),_(a,"".concat(t,"-item-disabled"),F===!0),a)),w=d({},c),M=s.createElement("div",se({},G,{className:V,style:w}),s.createElement("div",se({onClick:R},h,{className:"".concat(t,"-item-container")}),s.createElement("div",{className:"".concat(t,"-item-tail")},H),s.createElement("div",{className:"".concat(t,"-item-icon")},K()),s.createElement("div",{className:"".concat(t,"-item-content")},s.createElement("div",{className:"".concat(t,"-item-title")},S,$&&s.createElement("div",{title:typeof $=="string"?$:void 0,className:"".concat(t,"-item-subtitle")},$)),v&&s.createElement("div",{className:"".concat(t,"-item-description")},v))));return k&&(M=k(M)||null),M}var tt=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function pe(e){var a,n=e.prefixCls,t=n===void 0?"rc-steps":n,c=e.style,N=c===void 0?{}:c,f=e.className;e.children;var r=e.direction,l=r===void 0?"horizontal":r,C=e.type,F=C===void 0?"default":C,v=e.labelPlacement,S=v===void 0?"horizontal":v,$=e.iconPrefix,P=$===void 0?"rc":$,W=e.status,H=W===void 0?"process":W,g=e.size,T=e.current,x=T===void 0?0:T,R=e.progressDot,k=R===void 0?!1:R,G=e.stepIcon,B=e.initial,h=B===void 0?0:B,K=e.icons,O=e.onChange,V=e.itemRender,w=e.items,M=w===void 0?[]:w,j=ae(e,tt),D=F==="navigation",p=F==="inline",u=p||k,z=p?"horizontal":l,q=p?void 0:g,X=u?"vertical":S,oe=Q(t,"".concat(t,"-").concat(z),f,(a={},_(a,"".concat(t,"-").concat(q),q),_(a,"".concat(t,"-label-").concat(X),z==="horizontal"),_(a,"".concat(t,"-dot"),!!u),_(a,"".concat(t,"-navigation"),D),_(a,"".concat(t,"-inline"),p),a)),ce=function(A){O&&x!==A&&O(A)},le=function(A,J){var E=d({},A),L=h+J;return H==="error"&&J===x-1&&(E.className="".concat(t,"-next-error")),E.status||(L===x?E.status=H:La)}function rt(e,a){if(e)return e;const n=Pe(a).map(t=>{if(s.isValidElement(t)){const{props:c}=t;return Object.assign({},c)}return null});return nt(n)}var st=globalThis&&globalThis.__rest||function(e,a){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,t=Object.getOwnPropertySymbols(e);c{const{percent:a,size:n,className:t,rootClassName:c,direction:N,items:f,responsive:r=!0,current:l=0,children:C,style:F}=e,v=st(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:S}=we(r),{getPrefixCls:$,direction:P,className:W,style:H}=Me("steps"),g=s.useMemo(()=>r&&S?"vertical":N,[S,N]),T=ze(n),x=$("steps",e.prefixCls),[R,k,G]=Ye(x),B=e.type==="inline",h=$("",e.iconPrefix),K=rt(f,C),O=B?void 0:a,V=Object.assign(Object.assign({},H),F),w=Q(W,{[`${x}-rtl`]:P==="rtl",[`${x}-with-progress`]:O!==void 0},t,c,k,G),M={finish:s.createElement(Oe,{className:`${x}-finish-icon`}),error:s.createElement(Ae,{className:`${x}-error-icon`})},j=p=>{let{node:u,status:z}=p;if(z==="process"&&O!==void 0){const q=T==="small"?32:40;return s.createElement("div",{className:`${x}-progress-icon`},s.createElement(Te,{type:"circle",percent:O,size:q,strokeWidth:4,format:()=>null}),u)}return u},D=(p,u)=>p.description?s.createElement(Be,{title:p.description},u):u;return R(s.createElement(pe,Object.assign({icons:M},v,{style:V,current:l,size:T,items:K,itemRender:B?D:void 0,stepIcon:j,direction:g,prefixCls:x,iconPrefix:h,className:w})))};ke.Step=pe.Step;const Ce=ke;var it=["onFinish","step","formRef","title","stepProps"];function at(e){var a=s.useRef(),n=s.useContext(je),t=s.useContext(Ee),c=d(d({},e),t),N=c.onFinish,f=c.step,r=c.formRef;c.title,c.stepProps;var l=ae(c,it);return Le(!l.submitter,"StepForm 不包含提交按钮,请在 StepsForm 上"),s.useImperativeHandle(r,function(){return a.current},[r==null?void 0:r.current]),s.useEffect(function(){if(c.name||c.step){var C=(c.name||c.step).toString();return n==null||n.regForm(C,c),function(){n==null||n.unRegForm(C)}}},[]),n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[f||0]=a),m.jsx(We,d({formRef:a,onFinish:function(){var C=Re(ie().mark(function F(v){var S;return ie().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(l.name&&(n==null||n.onFormFinish(l.name,v)),!N){P.next=9;break}return n==null||n.setLoading(!0),P.next=5,N==null?void 0:N(v);case 5:return S=P.sent,S&&(n==null||n.next()),n==null||n.setLoading(!1),P.abrupt("return");case 9:n!=null&&n.lastStep||n==null||n.next();case 10:case"end":return P.stop()}},F)}));return function(F){return C.apply(this,arguments)}}(),onInit:function(F,v){var S;a.current=v,n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[f||0]=a),l==null||(S=l.onInit)===null||S===void 0||S.call(l,F,v)},layout:"vertical"},Ve(l,["layoutType","columns"])))}var ot=function(a){return _({},a.componentCls,{"&-container":{width:"max-content",minWidth:"420px",maxWidth:"100%",margin:"auto"},"&-steps-container":_({maxWidth:"1160px",margin:"auto"},"".concat(a.antCls,"-steps-vertical"),{height:"100%"}),"&-step":{display:"none",marginBlockStart:"32px","&-active":{display:"block"},"> form":{maxWidth:"100%"}}})};function ct(e){return He("StepsForm",function(a){var n=d(d({},a),{},{componentCls:".".concat(e)});return[ot(n)]})}var lt=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef","layoutRender"],je=U.createContext(void 0),ut={horizontal:function(a){var n=a.stepsDom,t=a.formDom;return m.jsxs(m.Fragment,{children:[m.jsx(ve,{gutter:{xs:8,sm:16,md:24},children:m.jsx(re,{span:24,children:n})}),m.jsx(ve,{gutter:{xs:8,sm:16,md:24},children:m.jsx(re,{span:24,children:t})})]})},vertical:function(a){var n=a.stepsDom,t=a.formDom;return m.jsxs(ve,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[m.jsx(re,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:U.cloneElement(n,{style:{height:"100%"}})}),m.jsx(re,{children:m.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:t})})]})}},Ee=U.createContext(null);function mt(e){var a=s.useContext(qe.ConfigContext),n=a.getPrefixCls,t=n("pro-steps-form"),c=ct(t),N=c.wrapSSR,f=c.hashId;e.current,e.onCurrentChange;var r=e.submitter,l=e.stepsFormRender,C=e.stepsRender,F=e.stepFormRender,v=e.stepsProps,S=e.onFinish,$=e.formProps,P=e.containerStyle,W=e.formRef,H=e.formMapRef,g=e.layoutRender,T=ae(e,lt),x=s.useRef(new Map),R=s.useRef(new Map),k=s.useRef([]),G=s.useState([]),B=me(G,2),h=B[0],K=B[1],O=s.useState(!1),V=me(O,2),w=V[0],M=V[1],j=Ge(),D=Ze(0,{value:e.current,onChange:e.onCurrentChange}),p=me(D,2),u=p[0],z=p[1],q=s.useMemo(function(){return ut[(v==null?void 0:v.direction)||"horizontal"]},[v==null?void 0:v.direction]),X=s.useMemo(function(){return u===h.length-1},[h.length,u]),oe=s.useCallback(function(i,o){R.current.has(i)||K(function(b){return[].concat(Se(b),[i])}),R.current.set(i,o)},[]),ce=s.useCallback(function(i){K(function(o){return o.filter(function(b){return b!==i})}),R.current.delete(i),x.current.delete(i)},[]);s.useImperativeHandle(H,function(){return k.current},[k.current]),s.useImperativeHandle(W,function(){var i;return(i=k.current[u||0])===null||i===void 0?void 0:i.current},[u,k.current]);var le=s.useCallback(function(){var i=Re(ie().mark(function o(b,y){var te,ne;return ie().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(x.current.set(b,y),!(!X||!S)){I.next=3;break}return I.abrupt("return");case 3:return M(!0),te=Ue.apply(void 0,[{}].concat(Se(Array.from(x.current.values())))),I.prev=5,I.next=8,S(te);case 8:ne=I.sent,ne&&(z(0),k.current.forEach(function(_e){var ue;return(ue=_e.current)===null||ue===void 0?void 0:ue.resetFields()})),I.next=15;break;case 12:I.prev=12,I.t0=I.catch(5),console.log(I.t0);case 15:return I.prev=15,M(!1),I.finish(15);case 18:case"end":return I.stop()}},o,null,[[5,12,15,18]])}));return function(o,b){return i.apply(this,arguments)}}(),[X,S,M,z]),Z=s.useMemo(function(){var i=Je(Xe,"4.24.0")>-1,o=i?{items:h.map(function(b){var y=R.current.get(b);return d({key:b,title:y==null?void 0:y.title},y==null?void 0:y.stepProps)})}:{};return m.jsx("div",{className:"".concat(t,"-steps-container ").concat(f).trim(),style:{maxWidth:Math.min(h.length*320,1160)},children:m.jsx(Ce,d(d(d({},v),o),{},{current:u,onChange:void 0,children:!i&&h.map(function(b){var y=R.current.get(b);return m.jsx(Ce.Step,d({title:y==null?void 0:y.title},y==null?void 0:y.stepProps),b)})}))})},[h,f,t,u,v]),A=de(function(){var i,o=k.current[u];(i=o.current)===null||i===void 0||i.submit()}),J=de(function(){u<1||z(u-1)}),E=s.useMemo(function(){return r!==!1&&m.jsx(fe,d(d({type:"primary",loading:w},r==null?void 0:r.submitButtonProps),{},{onClick:function(){var o;r==null||(o=r.onSubmit)===null||o===void 0||o.call(r),A()},children:j.getMessage("stepsForm.next","下一步")}),"next")},[j,w,A,r]),L=s.useMemo(function(){return r!==!1&&m.jsx(fe,d(d({},r==null?void 0:r.resetButtonProps),{},{onClick:function(){var o;J(),r==null||(o=r.onReset)===null||o===void 0||o.call(r)},children:j.getMessage("stepsForm.prev","上一步")}),"pre")},[j,J,r]),Y=s.useMemo(function(){return r!==!1&&m.jsx(fe,d(d({type:"primary",loading:w},r==null?void 0:r.submitButtonProps),{},{onClick:function(){var o;r==null||(o=r.onSubmit)===null||o===void 0||o.call(r),A()},children:j.getMessage("stepsForm.submit","提交")}),"submit")},[j,w,A,r]),$e=de(function(){u>h.length-2||z(u+1)}),ee=s.useMemo(function(){var i=[],o=u||0;if(o<1?h.length===1?i.push(Y):i.push(E):o+1===h.length?i.push(L,Y):i.push(L,E),i=i.filter(U.isValidElement),r&&r.render){var b,y={form:(b=k.current[u])===null||b===void 0?void 0:b.current,onSubmit:A,step:u,onPre:J};return r.render(y,i)}return r&&(r==null?void 0:r.render)===!1?null:i},[h.length,E,A,L,J,u,Y,r]),he=s.useMemo(function(){return Pe(e.children).map(function(i,o){var b=i.props,y=b.name||"".concat(o),te=u===o,ne=te?{contentRender:F,submitter:!1}:{};return m.jsx("div",{className:Q("".concat(t,"-step"),f,_({},"".concat(t,"-step-active"),te)),children:m.jsx(Ee.Provider,{value:d(d(d(d({},ne),$),b),{},{name:y,step:o}),children:i})},y)})},[$,f,t,e.children,u,F]),ge=s.useMemo(function(){return C?C(h.map(function(i){var o;return{key:i,title:(o=R.current.get(i))===null||o===void 0?void 0:o.title}}),Z):Z},[h,Z,C]),xe=s.useMemo(function(){return m.jsxs("div",{className:"".concat(t,"-container ").concat(f).trim(),style:P,children:[he,l?null:m.jsx(Qe,{children:ee})]})},[P,he,f,t,l,ee]),De=s.useMemo(function(){var i={stepsDom:ge,formDom:xe};return l?l(g?g(i):q(i),ee):g?g(i):q(i)},[ge,xe,q,l,ee,g]);return N(m.jsx("div",{className:Q(t,f),children:m.jsx(Ne.Provider,d(d({},T),{},{children:m.jsx(je.Provider,{value:{loading:w,setLoading:M,regForm:oe,keyArray:h,next:$e,formArrayRef:k,formMapRef:R,lastStep:X,unRegForm:ce,onFormFinish:le},children:De})}))}))}function Ie(e){return m.jsx(Ke,{needDeps:!0,children:m.jsx(mt,d({},e))})}Ie.StepForm=at;Ie.useForm=Ne.useForm;export{Ie as S}; diff --git a/web/dist/assets/index-5bfa8296.js b/web/dist/assets/index-5bfa8296.js deleted file mode 100644 index f7a93414f6959c8a9511ece6d44239e875d3cba5..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-5bfa8296.js +++ /dev/null @@ -1 +0,0 @@ -import{X as f,Y as x,r as o,j as t,V as m}from"./umi-2ee4055f.js";import{U as I}from"./index-5c18ae40.js";import{g as P}from"./utils-b0233852.js";import{e as g}from"./table-c83b9d9d.js";import{B as d}from"./index-c10be21a.js";import{P as u}from"./ProCard-cee316ff.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-d81f4240.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";const v={updateAdmin:"/admin/admin/updateAdmin"};async function h(a){return f(v.updateAdmin,{method:"put",data:a})}const O=()=>{let{initialState:a}=x("@@initialState");const i=o.useRef();o.useEffect(()=>{var e;if(a){let{currentUser:r}=a;(e=i.current)==null||e.setFieldsValue({username:r.username,nickname:r.nickname,email:r.email,mobile:r.mobile,avatar_url:r.avatar_url,avatar_id:r.avatar_id})}},[]);const l=[{title:"用户名",dataIndex:"username",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},fieldProps:{disabled:!0},colProps:{md:7}},{title:"昵称",dataIndex:"nickname",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:7}},{title:"邮箱",dataIndex:"email",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"手机号",dataIndex:"mobile",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"头像",dataIndex:"avatar_url",hideInSearch:!0,valueType:"avatar",hideInForm:!0},{title:"头像",dataIndex:"avatar_id",hideInSearch:!0,valueType:"avatar",hideInTable:!0,renderFormItem:(e,r,s)=>t.jsx(I,{form:s,dataIndex:"avatar_id",api:P("/admin/file.upload/image?group_id=14"),defaultFile:s.getFieldValue("avatar_url"),crop:!0}),colProps:{md:12}}],n=async e=>{await h(e),m.success("更新成功")},p=[{title:"密码",dataIndex:"password",valueType:"password",formItemProps:{rules:[{required:!0,message:"该项为必填"}]}},{title:"确认密码",dataIndex:"rePassword",valueType:"password",formItemProps:{rules:[{required:!0,message:"该项为必填"},({getFieldValue:e})=>({validator(r,s){return!s||e("password")===s?Promise.resolve():Promise.reject(new Error("两次输入的密码不同"))}})]}}],c=async e=>{await g("/admin/updatePassword",Object.assign({id:a.currentUser.id},e)),m.success("更新成功!")};return t.jsxs(t.Fragment,{children:[t.jsx(u,{title:"用户基本信息",headerBordered:!0,style:{marginBottom:10},children:t.jsx(d,{columns:l,layoutType:"Form",formRef:i,onFinish:n})}),t.jsx(u,{title:"密码修改",headerBordered:!0,children:t.jsx(d,{title:"修改管理员密码",layoutType:"Form",rowProps:{gutter:[16,16]},colProps:{span:24},grid:!0,onFinish:c,columns:p})})]})};export{O as default}; diff --git a/web/dist/assets/index-5cc85fe2.js b/web/dist/assets/index-5cc85fe2.js deleted file mode 100644 index 90b17e2752049ac605e87ae6036b176955f6ad69..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-5cc85fe2.js +++ /dev/null @@ -1 +0,0 @@ -import{Y as T,a6 as v,j as a,aK as l,a5 as w,R as P,V as k,aT as F}from"./umi-2ee4055f.js";import{X as C}from"./index-2f3e26df.js";import{I as b}from"./index-8d411a4f.js";import{X as j}from"./index-1c416090.js";import{g as q}from"./auth-11568536.js";import{e as R}from"./table-c83b9d9d.js";import"./index-9456f6ef.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-ea2ed5fc.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./Table-3849f584.js";import"./Table-0e254f81.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./RouteContext-8fa10ad2.js";const p="/adminRule",le=()=>{const{getDictionaryData:o}=T("dictModel"),[m,u]=v(),c=({type:e})=>{const t={title:"父节点",dataIndex:"pid",valueType:"treeSelect",request:async()=>(await q()).data.data,fieldProps:{fieldNames:{label:"name",value:"id"}},params:{ref:m},formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},colProps:{span:7}},r={title:"权限标识",dataIndex:"key",valueType:"text",tooltip:'例: 路由地址 "/index/index" , 权限标识为 "index.index" , 按钮权限请加上上级路由的权限标识,如:查询按钮权限 "index.index.list" ',formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}},i={title:"路由地址",dataIndex:"path",valueType:"text",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},tooltip:"项目文件系统路径,忽略:pages 或 pages/backend 或 pages/frontend 或 index.(ts|tsx)"},y={title:"图标",dataIndex:"icon",valueType:"text",renderFormItem:(d,f,g)=>a.jsx(b,{dataIndex:d.key,form:g,value:f.value}),colProps:{span:6}},s={title:"多语言标识",dataIndex:"locale",valueType:"text",colProps:{span:6}};return e==="0"?[i,r,y,s]:e==="1"?[t,i,r,s]:e==="2"?[t,r]:[]},x=F,h=e=>typeof e=="string"&&e?e.startsWith("icon-")?a.jsx(w,{type:e,className:e}):P.createElement(x[e]):"-",n=(e,t,r)=>{console.log(e);let i={id:r};i[t]=e?1:0,R(p+"/edit",i).then(()=>{k.success("修改成功")})},I=[{title:"类型",dataIndex:"type",valueType:"radio",request:async()=>await o("ruleType"),hideInTable:!0,initialValue:"0",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},colProps:{span:10}},{title:"标题",dataIndex:"name",valueType:"text",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},width:200,colProps:{span:7},tooltip:"菜单的标题,可当作菜单栏标题,如果有多语言标识,该项会被覆盖!"},{title:"图标",dataIndex:"icon",valueType:"text",renderText:(e,t)=>t.type==="0"?h(e):"-",width:60,align:"center",hideInForm:!0},{valueType:"dependency",name:["type"],hideInTable:!0,columns:c},{title:"类型",dataIndex:"type",valueType:"radioButton",request:async()=>await o("ruleType"),render:(e,t)=>a.jsx(C,{value:t.type,dict:"ruleType"}),hideInForm:!0,align:"center",width:120},{title:"排序",dataIndex:"sort",valueType:"text",tooltip:"数字越大排序越靠前",align:"center",width:100,colProps:{span:4}},{title:"权限标识",dataIndex:"key",valueType:"text",hideInForm:!0,tooltip:'例: 路由地址 "/index/index" , 权限标识为 "index.index" , 按钮权限请加上上级路由的权限标识,如:查询按钮权限 "index.index.list" ',width:240},{title:"路由地址",dataIndex:"path",valueType:"text",hideInForm:!0,renderText:(e,t)=>t.type!=="2"?e:"-",tooltip:"项目文件系统路径,忽略:pages 或 pages/backend 或 pages/frontend 或 index.(ts|tsx)",width:200},{title:"显示状态",dataIndex:"show",valueType:"switch",tooltip:"菜单栏显示状态,控制菜单是否显示再导航中(菜单规则依然生效)",align:"center",width:120,render:(e,t)=>t.type==="2"?"-":a.jsx(l,{checkedChildren:"显示",unCheckedChildren:"隐藏",defaultValue:t.show===1,onChange:r=>n(r,"show",t.id)}),colProps:{span:4},hideInForm:!0},{title:"是否禁用",dataIndex:"status",valueType:"switch",tooltip:"权限是否禁用(将不会参与权限验证)",align:"center",width:120,render:(e,t)=>a.jsx(l,{checkedChildren:"启用",unCheckedChildren:"禁用",defaultChecked:t.status===1,onChange:r=>n(r,"status",t.id)}),colProps:{span:4},hideInForm:!0},{title:"创建时间",dataIndex:"create_time",valueType:"dateTime",hideInForm:!0,align:"center"},{title:"修改时间",dataIndex:"update_time",valueType:"dateTime",hideInForm:!0,align:"center"}];return a.jsx(j,{tableApi:p,columns:I,search:!1,pagination:!1,addBefore:()=>u.toggle(),accessName:"admin.rule",scroll:{x:1580}})};export{le as default}; diff --git a/web/dist/assets/index-6028f0a1.css b/web/dist/assets/index-6028f0a1.css new file mode 100644 index 0000000000000000000000000000000000000000..62a7375c0ddff2b5a430dda63482ccc4f12446f8 --- /dev/null +++ b/web/dist/assets/index-6028f0a1.css @@ -0,0 +1 @@ +.dashboard-pll{padding:0 12px} diff --git a/web/dist/assets/index-615ba24d.js b/web/dist/assets/index-615ba24d.js new file mode 100644 index 0000000000000000000000000000000000000000..93905396a8f7ceada28c23a4e639234467371306 --- /dev/null +++ b/web/dist/assets/index-615ba24d.js @@ -0,0 +1 @@ +import{Y as h,j as o,a4 as I,a1 as n}from"./umi-5f6aeac9.js";import{X as f}from"./index-109f15ec.js";import{a as y,l as T}from"./table-0fa6c309.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const r="/system.dictItem",g=[{title:"ID",dataIndex:"id",hideInForm:!0,hideInTable:!0},{title:"名称",dataIndex:"label",valueType:"text"},{title:"数据值",dataIndex:"value",valueType:"text"},{title:"状态类型",dataIndex:"status",valueType:"text",valueEnum:{success:{text:"success",status:"Success"},error:{text:"error",status:"Error"},default:{text:"default",status:"Default"},processing:{text:"processing",status:"Processing"},warning:{text:"warning",status:"Warning"}},initialValue:"default"},{title:"是否启用",dataIndex:"switch",valueType:"switch",initialValue:!0},{title:"创建时间",dataIndex:"create_time",valueType:"date",hideInForm:!0,hideInTable:!0},{title:"修改时间",dataIndex:"update_time",valueType:"date",hideInForm:!0,hideInTable:!0}],Q=d=>{const{open:l,onClose:m,dictData:e}=d,{refreshDict:p}=h("dictModel"),u=async i=>{const a=n.loading("正在添加");return y(r+"/add",Object.assign({dict_id:e.id},i)).then(s=>s.success?(n.success("添加成功"),p(),!0):!1).finally(()=>a())},c=async(i,a,s)=>{const{data:t,success:x}=await T(r+"/list",{...i,sorter:a,filter:s,dictId:e.id});return{data:(t==null?void 0:t.data)||[],success:x,total:t==null?void 0:t.total}};return o.jsx(I,{title:e.name,width:720,onClose:m,open:l,styles:{body:{paddingBottom:80}},children:o.jsx(f,{search:!1,headerTitle:e.name,tableApi:r,columns:g,handleAdd:u,rowSelectionShow:!1,accessName:"system.dict.item",request:c},e.id)})};export{Q as default}; diff --git a/web/dist/assets/index-62ebef15.js b/web/dist/assets/index-62ebef15.js new file mode 100644 index 0000000000000000000000000000000000000000..a2715725df95c06e888e13e21953a60c553bd1c5 --- /dev/null +++ b/web/dist/assets/index-62ebef15.js @@ -0,0 +1 @@ +import{Y as o,j as e,aC as s,aE as l,a1 as m}from"./umi-5f6aeac9.js";import{C as p}from"./index-55d2ebbc.js";import n from"./index-6683018b.js";import{U as u}from"./index-0f57638d.js";import{B as d}from"./index-cc6b0338.js";import"./index-13cae3f4.js";import"./index-04ced7f2.js";import"./index-032ff5a9.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./utils-a0a2291f.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";const _=()=>{const{initialState:r}=o("@@initialState"),i=[{title:"用户名",dataIndex:"username",valueType:"text",formItemProps:{rules:[{required:!0}]}},{title:"昵称",dataIndex:"nickname",valueType:"text",formItemProps:{rules:[{required:!0}]}},{title:"性别",dataIndex:"gender",valueType:"radio",valueEnum:new Map([["0","男"],["1","女"],["2","保密"]])},{title:"邮箱",dataIndex:"email",valueType:"text"},{title:"头像",dataIndex:"avatar_id",hideInSearch:!0,valueType:"avatar",hideInTable:!0,renderFormItem:(t,c,a)=>e.jsx(u,{form:a,dataIndex:"avatar_id",api:"/api/user/upAvatar",defaultFile:a.getFieldValue("avatar_url"),crop:!0}),colProps:{md:12}},{title:"手机号",dataIndex:"mobile",valueType:"text",formItemProps:{rules:[{required:!0},{}]}}];return e.jsx(n,{children:e.jsx(p,{title:"账户设置",extra:e.jsx(s,{to:"/user/setPassword",children:"修改密码"}),children:e.jsx(d,{layoutType:"Form",layout:"horizontal",labelCol:{span:2},wrapperCol:{span:6},onFinish:async t=>{console.log(t),await l(t),m.success("更新成功")},initialValues:r.currentUser,columns:i})})})};export{_ as default}; diff --git a/web/dist/assets/index-6613242c.js b/web/dist/assets/index-6613242c.js new file mode 100644 index 0000000000000000000000000000000000000000..ff7d232ae1a998e201485faeb15d111e12c3f99c --- /dev/null +++ b/web/dist/assets/index-6613242c.js @@ -0,0 +1 @@ +import{P as re,j as d,_ as i,H as ae,J as k,b as s,R as N,K as le,s as I,x as ie,w as oe,L as M,M as L,k as ue,N as de,O as A,B as ce,Q as ve,S as se,U as fe,E as me,F as q}from"./umi-5f6aeac9.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import{P as he}from"./Table-1cf08bb2.js";var ge=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],be=["record","position","creatorButtonText","newRecordType","parentKey","style"],J=N.createContext(void 0);function U(e){var f=e.children,C=e.record,V=e.position,j=e.newRecordType,h=e.parentKey,g=s.useContext(J);return N.cloneElement(f,i(i({},f.props),{},{onClick:function(){var y=me(q().mark(function P(F){var b,R,c,$;return q().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(b=(R=f.props).onClick)===null||b===void 0?void 0:b.call(R,F);case 2:if($=n.sent,$!==!1){n.next=5;break}return n.abrupt("return");case 5:g==null||(c=g.current)===null||c===void 0||c.addEditRecord(C,{position:V,newRecordType:j,parentKey:h});case 6:case"end":return n.stop()}},P)}));function S(P){return y.apply(this,arguments)}return S}()}))}function H(e){var f,C,V=le(),j=e.onTableChange,h=e.maxLength;e.formItemProps;var g=e.recordCreatorProps,y=e.rowKey;e.controlled;var S=e.defaultValue;e.onChange;var P=e.editableFormRef,F=I(e,ge),b=s.useRef(void 0),R=s.useRef(),c=s.useRef();s.useImperativeHandle(F.actionRef,function(){return R.current},[R.current]);var $=ie(function(){return e.value||S||[]},{value:e.value,onChange:e.onChange}),E=oe($,2),n=E[0],W=E[1],x=N.useMemo(function(){return typeof y=="function"?y:function(t,u){return t[y]||u}},[y]),D=M(function(t){if(typeof t=="number"&&!e.name){if(t>=n.length)return t;var u=n&&n[t];return x==null?void 0:x(u,t)}if((typeof t=="string"||t>=n.length)&&e.name){var r=n.findIndex(function(a,l){var o;return(x==null||(o=x(a,l))===null||o===void 0?void 0:o.toString())===(t==null?void 0:t.toString())});if(r!==-1)return r}return t});s.useImperativeHandle(P,function(){var t=function(a){var l,o;if(a==null)throw new Error("rowIndex is required");var v=D(a),m=[e.name,(l=v==null?void 0:v.toString())!==null&&l!==void 0?l:""].flat(1).filter(Boolean);return(o=c.current)===null||o===void 0?void 0:o.getFieldValue(m)},u=function(){var a,l=[e.name].flat(1).filter(Boolean);if(Array.isArray(l)&&l.length===0){var o,v=(o=c.current)===null||o===void 0?void 0:o.getFieldsValue();return Array.isArray(v)?v:Object.keys(v).map(function(m){return v[m]})}return(a=c.current)===null||a===void 0?void 0:a.getFieldValue(l)};return i(i({},c.current),{},{getRowData:t,getRowsData:u,setRowData:function(a,l){var o,v;if(a==null)throw new Error("rowIndex is required");var m=D(a),_=[e.name,(o=m==null?void 0:m.toString())!==null&&o!==void 0?o:""].flat(1).filter(Boolean),ne=Object.assign({},i(i({},t(a)),l||{})),te=L({},_,ne);return(v=c.current)===null||v===void 0||v.setFieldsValue(te),!0}})},[D,e.name,c.current]),s.useEffect(function(){e.controlled&&(n||[]).forEach(function(t,u){var r;(r=c.current)===null||r===void 0||r.setFieldsValue(ue({},"".concat(x(t,u)),t))},{})},[de(n),e.controlled]),s.useEffect(function(){if(e.name){var t;c.current=e==null||(t=e.editable)===null||t===void 0?void 0:t.form}},[(f=e.editable)===null||f===void 0?void 0:f.form,e.name]);var w=g||{},G=w.record,K=w.position,Q=w.creatorButtonText,z=w.newRecordType,X=w.parentKey,Y=w.style,Z=I(w,be),O=K==="top",T=s.useMemo(function(){return typeof h=="number"&&h<=(n==null?void 0:n.length)?!1:g!==!1&&d.jsx(U,{record:A(G,n==null?void 0:n.length,n)||{},position:K,parentKey:A(X,n==null?void 0:n.length,n),newRecordType:z,children:d.jsx(ce,i(i({type:"dashed",style:i({display:"block",margin:"10px 0",width:"100%"},Y),icon:d.jsx(ve,{})},Z),{},{children:Q||V.getMessage("editableTable.action.add","添加一行数据")}))})},[g,h,n==null?void 0:n.length]),p=s.useMemo(function(){return T?O?{components:{header:{wrapper:function(u){var r,a=u.className,l=u.children;return d.jsxs("thead",{className:a,children:[l,d.jsxs("tr",{style:{position:"relative"},children:[d.jsx("td",{colSpan:0,style:{visibility:"hidden"},children:T}),d.jsx("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(r=F.columns)===null||r===void 0?void 0:r.length,children:T})]})]})}}}}:{tableViewRender:function(u,r){var a,l;return d.jsxs(d.Fragment,{children:[(a=(l=e.tableViewRender)===null||l===void 0?void 0:l.call(e,u,r))!==null&&a!==void 0?a:r,T]})}}:{}},[O,T]),B=i({},e.editable),ee=M(function(t,u){var r,a,l;if((r=e.editable)===null||r===void 0||(a=r.onValuesChange)===null||a===void 0||a.call(r,t,u),(l=e.onValuesChange)===null||l===void 0||l.call(e,u,t),e.controlled){var o;e==null||(o=e.onChange)===null||o===void 0||o.call(e,u)}});return(e!=null&&e.onValuesChange||(C=e.editable)!==null&&C!==void 0&&C.onValuesChange||e.controlled&&e!==null&&e!==void 0&&e.onChange)&&(B.onValuesChange=ee),d.jsxs(d.Fragment,{children:[d.jsx(J.Provider,{value:R,children:d.jsx(he,i(i(i({search:!1,options:!1,pagination:!1,rowKey:y,revalidateOnFocus:!1},F),p),{},{tableLayout:"fixed",actionRef:R,onChange:j,editable:i(i({},B),{},{formProps:i({formRef:c},B.formProps)}),dataSource:n,onDataSourceChange:function(u){if(W(u),e.name&&K==="top"){var r,a=L({},[e.name].flat(1).filter(Boolean),u);(r=c.current)===null||r===void 0||r.setFieldsValue(a)}}}))}),e.name?d.jsx(se,{name:[e.name],children:function(u){var r,a;if(!b.current)return b.current=n,null;var l=k(u,[e.name].flat(1)),o=l==null?void 0:l.find(function(v,m){var _;return!fe(v,(_=b.current)===null||_===void 0?void 0:_[m])});return b.current=n,o&&(e==null||(r=e.editable)===null||r===void 0||(a=r.onValuesChange)===null||a===void 0||a.call(r,o,l)),null}}):null]})}function ye(e){var f=re.useFormInstance();return e.name?d.jsx(ae.Item,i(i({style:{maxWidth:"100%"},shouldUpdate:function(V,j){var h=[e.name].flat(1);try{return JSON.stringify(k(V,h))!==JSON.stringify(k(j,h))}catch{return!0}}},e==null?void 0:e.formItemProps),{},{name:e.name,children:d.jsx(H,i(i({tableLayout:"fixed",scroll:{x:"max-content"}},e),{},{editable:i(i({},e.editable),{},{form:f})}))})):d.jsx(H,i({tableLayout:"fixed",scroll:{x:"max-content"}},e))}ye.RecordCreator=U;export{ye as F}; diff --git a/web/dist/assets/index-6683018b.js b/web/dist/assets/index-6683018b.js new file mode 100644 index 0000000000000000000000000000000000000000..94c6048409a7a945fdd62a3e6c8aebc0196746ad --- /dev/null +++ b/web/dist/assets/index-6683018b.js @@ -0,0 +1 @@ +import{c4 as N,bk as le,g as ce,R as a,b9 as de,b3 as B,bD as M,bt as ue,aV as fe,Y as he,j as c,Z as pe,$ as U,a0 as xe,a5 as ge,a6 as me,C as ve,aH as ye,b7 as z}from"./umi-5f6aeac9.js";function L(e){let r;const t=s=>()=>{r=null,e.apply(void 0,le(s))},o=function(){if(r==null){for(var s=arguments.length,f=new Array(s),d=0;d{N.cancel(r),r=null},o}const we=e=>{const{componentCls:r}=e;return{[r]:{position:"fixed",zIndex:e.zIndexPopup}}},Se=e=>({zIndexPopup:e.zIndexBase+10}),be=ce("Affix",we,Se);function b(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function _(e,r,t){if(t!==void 0&&Math.round(r.top)>Math.round(e.top)-t)return t+r.top}function F(e,r,t){if(t!==void 0&&Math.round(r.bottom){var t;const{style:o,offsetTop:s,offsetBottom:f,prefixCls:d,className:G,rootClassName:K,children:W,target:p,onChange:R,onTestUpdatePosition:Ee}=e,X=Re(e,["style","offsetTop","offsetBottom","prefixCls","className","rootClassName","children","target","onChange","onTestUpdatePosition"]),{getPrefixCls:$,getTargetContainer:q}=a.useContext(de),j=$("affix",d),[Y,Z]=a.useState(!1),[h,J]=a.useState(),[Q,ee]=a.useState(),T=a.useRef(H),C=a.useRef(null),x=a.useRef(null),g=a.useRef(null),E=a.useRef(null),w=a.useRef(null),u=(t=p??q)!==null&&t!==void 0?t:Te,A=f===void 0&&s===void 0?0:s,te=()=>{if(T.current!==V||!E.current||!g.current||!u)return;const l=u();if(l){const i={status:H},n=b(g.current);if(n.top===0&&n.left===0&&n.width===0&&n.height===0)return;const v=b(l),y=_(n,v,A),I=F(n,v,f);y!==void 0?(i.affixStyle={position:"fixed",top:y,width:n.width,height:n.height},i.placeholderStyle={width:n.width,height:n.height}):I!==void 0&&(i.affixStyle={position:"fixed",bottom:I,width:n.width,height:n.height},i.placeholderStyle={width:n.width,height:n.height}),i.lastAffix=!!i.affixStyle,Y!==i.lastAffix&&(R==null||R(i.lastAffix)),T.current=i.status,J(i.affixStyle),ee(i.placeholderStyle),Z(i.lastAffix)}},P=()=>{T.current=V,te()},m=L(()=>{P()}),S=L(()=>{if(u&&h){const l=u();if(l&&g.current){const i=b(l),n=b(g.current),v=_(n,i,A),y=F(n,i,f);if(v!==void 0&&h.top===v||y!==void 0&&h.bottom===y)return}}P()}),O=()=>{const l=u==null?void 0:u();l&&(k.forEach(i=>{var n;x.current&&((n=C.current)===null||n===void 0||n.removeEventListener(i,x.current)),l==null||l.addEventListener(i,S)}),C.current=l,x.current=S)},ne=()=>{w.current&&(clearTimeout(w.current),w.current=null);const l=u==null?void 0:u();k.forEach(i=>{var n;l==null||l.removeEventListener(i,S),x.current&&((n=C.current)===null||n===void 0||n.removeEventListener(i,x.current))}),m.cancel(),S.cancel()};a.useImperativeHandle(r,()=>({updatePosition:m})),a.useEffect(()=>(w.current=setTimeout(O),()=>ne()),[]),a.useEffect(()=>{O()},[p,h]),a.useEffect(()=>{m()},[p,s,f]);const[re,oe,se]=be(j),ie=B(K,oe,j,se),ae=B({[ie]:h});return re(a.createElement(M,{onResize:m},a.createElement("div",Object.assign({style:o,className:G,ref:g},X),h&&a.createElement("div",{style:Q,"aria-hidden":"true"}),a.createElement("div",{className:ae,ref:E,style:h},a.createElement(M,{onResize:m},W)))))}),je=Ce,D=e=>{let r=e==null?void 0:e.map(t=>{if(t.children){let o=D(t.children);return{key:t.path,children:o,type:"group",label:t.locale?c.jsx(z,{id:t.locale}):t.name}}return{key:t.path,label:t.locale?c.jsx(z,{id:t.locale}):t.name}});return r||[]},Pe=e=>{const{pathname:r}=ue(),{children:t}=e;let o=fe();const{initialState:s}=he("@@initialState"),f={components:{Menu:{activeBarWidth:3,itemMarginBlock:0,itemMarginInline:0,itemBorderRadius:0}}};return c.jsxs(pe,{wrap:!1,gutter:20,style:{maxWidth:1460,width:"100%",margin:"0 auto",paddingTop:20},children:[c.jsx(U,{flex:"260px",children:c.jsx(je,{offsetTop:70,children:c.jsxs("div",{style:{background:"#fff",paddingBottom:20},children:[c.jsxs(xe,{style:{padding:20,borderBottom:"1px solid #eee",width:"100%"},children:[c.jsx(ge,{icon:c.jsx(me,{}),size:52,src:s.currentUser.avatar_url}),c.jsxs("div",{children:[c.jsx("div",{children:s.currentUser.nickname||s.currentUser.name||s.currentUser.username}),c.jsx("div",{style:{marginTop:"10px",color:"#8a919f"},children:"一个热爱开发的同学"})]})]}),c.jsx(ve,{theme:f,children:c.jsx(ye,{style:{border:"none"},mode:"inline",defaultSelectedKeys:["index"],items:D(s.menus.find(d=>d.key==="user").children),selectedKeys:[r],onSelect:d=>{o(d.key)}})})]})})}),c.jsx(U,{flex:"auto",children:t})]})};export{Pe as default}; diff --git a/web/dist/assets/index-69e8b757.js b/web/dist/assets/index-69e8b757.js new file mode 100644 index 0000000000000000000000000000000000000000..67448a65a8a9d0302d8b86b6c50e8210a3f8c51e --- /dev/null +++ b/web/dist/assets/index-69e8b757.js @@ -0,0 +1 @@ +import{j as e,T as l,a0 as o,a5 as d,B as s}from"./umi-5f6aeac9.js";import{X as m}from"./index-109f15ec.js";import{B as u}from"./index-cc6b0338.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./table-0fa6c309.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-6a3ca2c0.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-5a53c961.js";const p="/system.monitor",V=()=>{const i=[{title:"ID",dataIndex:"id",hideInForm:!0,sorter:!0,hideInSearch:!0},{title:"接口名称",dataIndex:"name",valueType:"text"},{title:"控制器",dataIndex:"controller",valueType:"text"},{title:"方法",dataIndex:"action",valueType:"text"},{title:"访问IP",dataIndex:"ip",valueType:"text"},{title:"访问地址",dataIndex:"address",valueType:"text"},{title:"HOST",dataIndex:"host",valueType:"text"},{title:"请求用户",dataIndex:"user",valueType:"text",hideInForm:!0,hideInSearch:!0,render:(n,t)=>{var r,a;return e.jsx(e.Fragment,{children:e.jsx(l,{title:e.jsxs(e.Fragment,{children:["ID: ",t.user_id]}),children:e.jsxs(o,{children:[e.jsx(d,{src:(r=t.user)==null?void 0:r.avatar_url}),(a=t.user)==null?void 0:a.nickname]})})})}},{title:"请求用户ID",dataIndex:"user_id",valueType:"digit",hideInForm:!0,hideInTable:!0,render:(n,t)=>{var r,a;return e.jsx(e.Fragment,{children:e.jsx(l,{title:e.jsxs(e.Fragment,{children:["ID: ",t.user_id]}),children:e.jsxs(o,{children:[e.jsx(d,{src:(r=t.user)==null?void 0:r.avatar_url}),(a=t.user)==null?void 0:a.nickname]})})})}},{title:"请求地址",dataIndex:"url",valueType:"text",hideInSearch:!0,hideInTable:!0},{title:"POST数据",dataIndex:"data",valueType:"jsonCode",hideInSearch:!0,hideInTable:!0},{title:"请求参数",dataIndex:"params",valueType:"jsonCode",hideInSearch:!0,hideInTable:!0},{title:"请求时间",dataIndex:"create_time",valueType:"fromNow"},{title:"操作",render:(n,t)=>e.jsx(u,{columns:i,readonly:!0,initialValues:t,layoutType:"ModalForm",trigger:e.jsx(s,{type:"link",children:"详情"}),layout:"horizontal",labelCol:{span:4},submitter:!1}),hideInForm:!0,hideInSearch:!0}];return e.jsx(e.Fragment,{children:e.jsx(m,{tableApi:p,columns:i,options:{density:!0,search:!0,fullScreen:!0,setting:!0},addShow:!1,operateShow:!1,accessName:"system.dict"})})};export{V as default}; diff --git a/web/dist/assets/index-6430ced5.js b/web/dist/assets/index-6a3ca2c0.js similarity index 55% rename from web/dist/assets/index-6430ced5.js rename to web/dist/assets/index-6a3ca2c0.js index e7aa17c6ebf67e68849a1d21d77bf7e341449b6c..490cd713def8eb5f8a84046c1f0a1ebee3b059b7 100644 --- a/web/dist/assets/index-6430ced5.js +++ b/web/dist/assets/index-6a3ca2c0.js @@ -1 +1 @@ -import{r as h,C as Z,a_ as ne,bq as re,j as u,S as ie,aa as ee,aU as ue,_ as m,K as M,aY as de,k as ce,o as ae,l as le,br as ve,v as me,aV as J,R,f as Y,e as fe,O as pe}from"./umi-2ee4055f.js";var he=function(e){if(e&&e!==!0)return e},Ce=function(e,c,n,s){return e?u.jsxs(u.Fragment,{children:[n.getMessage("tableForm.collapsed","展开"),s&&"(".concat(s,")"),u.jsx(ee,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]}):u.jsxs(u.Fragment,{children:[n.getMessage("tableForm.expand","收起"),u.jsx(ee,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]})},xe=function(e){var c=e.setCollapsed,n=e.collapsed,s=n===void 0?!1:n,a=e.submitter,i=e.style,T=e.hiddenNum,C=h.useContext(Z.ConfigContext),N=C.getPrefixCls,w=ne(),E=h.useContext(re),z=E.hashId,b=he(e.collapseRender)||Ce;return u.jsxs(ie,{style:i,size:16,children:[a,e.collapseRender!==!1&&u.jsx("a",{className:"".concat(N("pro-query-filter-collapse-button")," ").concat(z).trim(),onClick:function(){return c(!s)},children:b==null?void 0:b(s,e,w,T)})]})};const ge=xe;var be=function(e){return M({},e.componentCls,M(M(M(M({"&&":{padding:24}},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"".concat(e.proComponentsCls,"-form-group-title"),{marginBlock:0}),"&-row",{rowGap:24,"&-split":M(M({},"".concat(e.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:e.marginXS}),"&:last-child",{marginBlockEnd:12}),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(e.colorSplit)}}}),"&-collapse-button",{display:"flex",alignItems:"center",color:e.colorPrimary}))};function ye(t){return ue("QueryFilter",function(e){var c=m(m({},e),{},{componentCls:".".concat(t)});return[be(c)]})}var Se=["collapsed","layout","defaultCollapsed","defaultColsNumber","defaultFormItemsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],j,Re={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},te={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},Ne=function(e,c,n){if(n&&typeof n=="number")return{span:n,layout:e};var s=n?["xs","sm","md","lg","xl","xxl"].map(function(i){return[Re[i],24/n[i],"horizontal"]}):te[e||"default"],a=(s||te.default).find(function(i){return cB)&&!!o;D+=1;var se=R.isValidElement(r)&&(r.key||"".concat((S=r.props)===null||S===void 0?void 0:S.name))||o;return R.isValidElement(r)&&oe?e.preserve?{itemDom:R.cloneElement(r,{hidden:!0,key:se||o}),hidden:!0,colSpan:I}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:r,colSpan:I,hidden:!1}}),Q=H.map(function(r,o){var d,v,l=r.itemDom,S=r.colSpan,O=l==null||(d=l.props)===null||d===void 0?void 0:d.hidden;if(O)return l;var I=R.isValidElement(l)&&(l.key||"".concat((v=l.props)===null||v===void 0?void 0:v.name))||o;return 24-p%2424){var v,l;return 24-((v=(l=e.submitterColSpanProps)===null||l===void 0?void 0:l.span)!==null&&v!==void 0?v:y.span)}return 24-d},[p,p%24+((c=(n=e.submitterColSpanProps)===null||n===void 0?void 0:n.span)!==null&&c!==void 0?c:y.span),(s=e.submitterColSpanProps)===null||s===void 0?void 0:s.span]),g=h.useContext(Z.ConfigContext),L=g.getPrefixCls("pro-query-filter");return u.jsxs(fe,{gutter:A,justify:"start",className:J("".concat(L,"-row"),C),children:[Q,k&&u.jsx(Y,m(m({span:y.span,offset:U,className:J((a=e.submitterColSpanProps)===null||a===void 0?void 0:a.className)},e.submitterColSpanProps),{},{style:{textAlign:"end"},children:u.jsx(pe.Item,{label:" ",colon:!1,shouldUpdate:!1,className:"".concat(L,"-actions ").concat(C).trim(),children:u.jsx(ge,{hiddenNum:K,collapsed:b,collapseRender:G?x:!1,submitter:k,setCollapsed:$},"pro-form-query-filter-actions")})}),"submitter")]},"resize-observer-row")},_e=de()?(j=document)===null||j===void 0||(j=j.body)===null||j===void 0?void 0:j.clientWidth:1024;function Me(t){var e=t.collapsed,c=t.layout,n=t.defaultCollapsed,s=n===void 0?!0:n,a=t.defaultColsNumber,i=t.defaultFormItemsNumber,T=t.span,C=t.searchGutter,N=C===void 0?24:C;t.searchText,t.resetText;var w=t.optionRender,E=t.collapseRender,z=t.onReset,b=t.onCollapse,$=t.labelWidth,f=$===void 0?"80":$,x=t.style,V=t.split,W=t.preserve,y=W===void 0?!0:W,B=t.ignoreRules,A=t.showHiddenNum,q=A===void 0?!1:A,k=t.submitterColSpanProps,P=ce(t,Se),D=h.useContext(Z.ConfigContext),F=D.getPrefixCls("pro-query-filter"),_=ye(F),p=_.wrapSSR,H=_.hashId,Q=ae(function(){return typeof(x==null?void 0:x.width)=="number"?x==null?void 0:x.width:_e}),K=le(Q,2),G=K[0],U=K[1],g=h.useMemo(function(){return Ne(c,G+16,T)},[c,G,T]),L=h.useMemo(function(){if(i!==void 0)return i;if(a!==void 0){var o=24/g.span-1;return a>o?o:a}return Math.max(1,24/g.span-1)},[a,i,g.span]),r=h.useMemo(function(){if(f&&g.layout!=="vertical"&&f!=="auto")return{labelCol:{flex:"0 0 ".concat(f,"px")},wrapperCol:{style:{maxWidth:"calc(100% - ".concat(f,"px)")}},style:{flexWrap:"nowrap"}}},[g.layout,f]);return p(u.jsx(ve,{onResize:function(d){G!==d.width&&d.width>17&&U(d.width)},children:u.jsx(me,m(m({isKeyPressSubmit:!0,preserve:y},P),{},{className:J(F,H,P.className),onReset:z,style:x,layout:g.layout,fieldProps:{style:{width:"100%"}},formItemProps:r,groupProps:{titleStyle:{display:"inline-block",marginInlineEnd:16}},contentRender:function(d,v,l){return u.jsx(Pe,{spanSize:g,collapsed:e,form:l,submitterColSpanProps:k,collapseRender:E,defaultCollapsed:s,onCollapse:b,optionRender:w,submitter:v,items:d,split:V,baseClassName:F,resetText:t.resetText,searchText:t.searchText,searchGutter:N,preserve:y,ignoreRules:B,showLength:L,showHiddenNum:q})}}))},"resize-observer"))}export{Me as Q,he as o}; +import{b as h,C as Y,K as ne,bC as re,j as u,a0 as ie,ag as ee,b2 as ue,_ as v,k as M,b6 as de,s as ce,x as ae,w as le,bD as me,D as ve,b3 as J,R,$ as Z,Z as fe,H as pe}from"./umi-5f6aeac9.js";var he=function(e){if(e&&e!==!0)return e},Ce=function(e,c,n,s){return e?u.jsxs(u.Fragment,{children:[n.getMessage("tableForm.collapsed","展开"),s&&"(".concat(s,")"),u.jsx(ee,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]}):u.jsxs(u.Fragment,{children:[n.getMessage("tableForm.expand","收起"),u.jsx(ee,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]})},xe=function(e){var c=e.setCollapsed,n=e.collapsed,s=n===void 0?!1:n,a=e.submitter,i=e.style,T=e.hiddenNum,C=h.useContext(Y.ConfigContext),N=C.getPrefixCls,w=ne(),E=h.useContext(re),z=E.hashId,g=he(e.collapseRender)||Ce;return u.jsxs(ie,{style:i,size:16,children:[a,e.collapseRender!==!1&&u.jsx("a",{className:"".concat(N("pro-query-filter-collapse-button")," ").concat(z).trim(),onClick:function(){return c(!s)},children:g==null?void 0:g(s,e,w,T)})]})};const be=xe;var ge=function(e){return M({},e.componentCls,M(M(M(M({"&&":{padding:24}},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"".concat(e.proComponentsCls,"-form-group-title"),{marginBlock:0}),"&-row",{rowGap:24,"&-split":M(M({},"".concat(e.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:e.marginXS}),"&:last-child",{marginBlockEnd:12}),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(e.colorSplit)}}}),"&-collapse-button",{display:"flex",alignItems:"center",color:e.colorPrimary}))};function ye(t){return ue("QueryFilter",function(e){var c=v(v({},e),{},{componentCls:".".concat(t)});return[ge(c)]})}var Se=["collapsed","layout","defaultCollapsed","defaultColsNumber","defaultFormItemsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],j,Re={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},te={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},Ne=function(e,c,n){if(n&&typeof n=="number")return{span:n,layout:e};var s=n?["xs","sm","md","lg","xl","xxl"].map(function(i){return[Re[i],24/n[i],"horizontal"]}):te[e||"default"],a=(s||te.default).find(function(i){return cB)&&!!o;H+=1;var se=R.isValidElement(r)&&(r.key||"".concat((S=r.props)===null||S===void 0?void 0:S.name))||o;return R.isValidElement(r)&&oe?e.preserve?{itemDom:R.cloneElement(r,{hidden:!0,key:se||o}),hidden:!0,colSpan:I}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:r,colSpan:I,hidden:!1}}),q=k.map(function(r,o){var d,m,l=r.itemDom,S=r.colSpan,O=l==null||(d=l.props)===null||d===void 0?void 0:d.hidden;if(O)return l;var I=R.isValidElement(l)&&(l.key||"".concat((m=l.props)===null||m===void 0?void 0:m.name))||o;return 24-p%2424){var m,l;return 24-((m=(l=e.submitterColSpanProps)===null||l===void 0?void 0:l.span)!==null&&m!==void 0?m:y.span)}return 24-d},[p,p%24+((c=(n=e.submitterColSpanProps)===null||n===void 0?void 0:n.span)!==null&&c!==void 0?c:y.span),(s=e.submitterColSpanProps)===null||s===void 0?void 0:s.span]),b=h.useContext(Y.ConfigContext),L=b.getPrefixCls("pro-query-filter");return u.jsxs(fe,{gutter:D,justify:"start",className:J("".concat(L,"-row"),C),children:[q,A&&u.jsx(Z,v(v({span:y.span,offset:U,className:J((a=e.submitterColSpanProps)===null||a===void 0?void 0:a.className)},e.submitterColSpanProps),{},{style:{textAlign:"end"},children:u.jsx(pe.Item,{label:" ",colon:!1,shouldUpdate:!1,className:"".concat(L,"-actions ").concat(C).trim(),children:u.jsx(be,{hiddenNum:K,collapsed:g,collapseRender:G?x:!1,submitter:A,setCollapsed:$},"pro-form-query-filter-actions")})}),"submitter")]},"resize-observer-row")},_e=de()?(j=document)===null||j===void 0||(j=j.body)===null||j===void 0?void 0:j.clientWidth:1024;function Me(t){var e=t.collapsed,c=t.layout,n=t.defaultCollapsed,s=n===void 0?!0:n,a=t.defaultColsNumber,i=t.defaultFormItemsNumber,T=t.span,C=t.searchGutter,N=C===void 0?24:C;t.searchText,t.resetText;var w=t.optionRender,E=t.collapseRender,z=t.onReset,g=t.onCollapse,$=t.labelWidth,f=$===void 0?"80":$,x=t.style,Q=t.split,W=t.preserve,y=W===void 0?!0:W,B=t.ignoreRules,D=t.showHiddenNum,V=D===void 0?!1:D,A=t.submitterColSpanProps,P=ce(t,Se),H=h.useContext(Y.ConfigContext),F=H.getPrefixCls("pro-query-filter"),_=ye(F),p=_.wrapSSR,k=_.hashId,q=ae(function(){return typeof(x==null?void 0:x.width)=="number"?x==null?void 0:x.width:_e}),K=le(q,2),G=K[0],U=K[1],b=h.useMemo(function(){return Ne(c,G+16,T)},[c,G,T]),L=h.useMemo(function(){if(i!==void 0)return i;if(a!==void 0){var o=24/b.span-1;return a>o?o:a}return Math.max(1,24/b.span-1)},[a,i,b.span]),r=h.useMemo(function(){if(f&&b.layout!=="vertical"&&f!=="auto")return{labelCol:{flex:"0 0 ".concat(f,"px")},wrapperCol:{style:{maxWidth:"calc(100% - ".concat(f,"px)")}},style:{flexWrap:"nowrap"}}},[b.layout,f]);return p(u.jsx(me,{onResize:function(d){G!==d.width&&d.width>17&&U(d.width)},children:u.jsx(ve,v(v({isKeyPressSubmit:!0,preserve:y},P),{},{className:J(F,k,P.className),onReset:z,style:x,layout:b.layout,fieldProps:{style:{width:"100%"}},formItemProps:r,groupProps:{titleStyle:{display:"inline-block",marginInlineEnd:16}},contentRender:function(d,m,l){return u.jsx(Pe,{spanSize:b,collapsed:e,form:l,submitterColSpanProps:A,collapseRender:E,defaultCollapsed:s,onCollapse:g,optionRender:w,submitter:m,items:d,split:Q,baseClassName:F,resetText:t.resetText,searchText:t.searchText,searchGutter:N,preserve:y,ignoreRules:B,showLength:L,showHiddenNum:V})}}))},"resize-observer"))}export{Me as Q,he as o}; diff --git a/web/dist/assets/index-6ad53ab5.js b/web/dist/assets/index-6ad53ab5.js deleted file mode 100644 index 3cb12bc07deed5d4053820fa49651db347635b0f..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-6ad53ab5.js +++ /dev/null @@ -1 +0,0 @@ -import{r as l,R as c,j as d}from"./umi-2ee4055f.js";import{u as y,P as E,g as b,E as p,C as v}from"./createLoading-2160f924.js";import"./react-content-loader.es-7f7b682d.js";var T=globalThis&&globalThis.__rest||function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{const e={height:60,autoFit:!1,percent:.7,color:["#5B8FF9","#E8EDF3"]};return d.jsx(P,{...e})},C=j;export{C as default}; diff --git a/web/dist/assets/index-6bab6f7d.js b/web/dist/assets/index-6bab6f7d.js new file mode 100644 index 0000000000000000000000000000000000000000..efd9dc0588b45ff61bf055f4192125db25671947 --- /dev/null +++ b/web/dist/assets/index-6bab6f7d.js @@ -0,0 +1,21 @@ +import{j as e,B as s,d as l}from"./umi-5f6aeac9.js";import{C as a}from"./index-55d2ebbc.js";import{P as t}from"./index-9da4ac9d.js";import"./index-13cae3f4.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./useLazyKVMap-f8dc5f3f.js";import"./index-54d1fa42.js";const T=()=>e.jsx(a,{title:"高级定义列表",children:e.jsxs(t,{column:2,title:"高级定义列表",tooltip:"包含了从服务器请求,columns等功能",children:[e.jsx(t.Item,{valueType:"option",children:e.jsx(s,{type:"primary",children:"提交"},"primary")}),e.jsx(t.Item,{span:2,valueType:"text",contentStyle:{maxWidth:"80%"},renderText:r=>r+r,ellipsis:!0,label:"文本",children:"这是一段很长很长超级超级长的无意义说明文本并且重复了很多没有意义的词语,就是为了让它变得很长很长超级超级长"}),e.jsx(t.Item,{label:"金额",tooltip:"仅供参考,以实际为准",valueType:"money",children:"100"}),e.jsx(t.Item,{label:"百分比",valueType:"percent",children:"100"}),e.jsx(t.Item,{label:"选择框",valueEnum:{all:{text:"全部",status:"Default"},open:{text:"未解决",status:"Error"},closed:{text:"已解决",status:"Success"},processing:{text:"解决中",status:"Processing"}},children:"open"}),e.jsx(t.Item,{label:"远程选择框",request:async()=>[{label:"全部",value:"all"},{label:"未解决",value:"open"},{label:"已解决",value:"closed"},{label:"解决中",value:"processing"}],children:"closed"}),e.jsx(t.Item,{label:"进度条",valueType:"progress",children:"40"}),e.jsx(t.Item,{label:"日期时间",valueType:"dateTime",children:l().valueOf()}),e.jsx(t.Item,{label:"日期",valueType:"date",children:l().valueOf()}),e.jsx(t.Item,{label:"日期区间",valueType:"dateTimeRange",children:[l().add(-1,"d").valueOf(),l().valueOf()]}),e.jsx(t.Item,{label:"时间",valueType:"time",children:l().valueOf()}),e.jsx(t.Item,{label:"代码块",valueType:"code",children:` + yarn run v1.22.0 + $ eslint --format=pretty ./packages + Done in 9.70s. + `}),e.jsx(t.Item,{label:"JSON 代码块",valueType:"jsonCode",children:`{ + "compilerOptions": { + "target": "esnext", + "moduleResolution": "node", + "jsx": "preserve", + "esModuleInterop": true, + "experimentalDecorators": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noImplicitReturns": true, + "suppressImplicitAnyIndexErrors": true, + "declaration": true, + "skipLibCheck": true + }, + "include": ["**/src", "**/docs", "scripts", "**/demo", ".eslintrc.js"] + } + `})]})});export{T as default}; diff --git a/web/dist/assets/index-6bb06055.js b/web/dist/assets/index-6bb06055.js deleted file mode 100644 index dc8fc3d83828b23fedc558f27586b0638e3d7e55..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-6bb06055.js +++ /dev/null @@ -1 +0,0 @@ -import{j as r,e as s,f as o}from"./umi-2ee4055f.js";import{C as e}from"./index-8a549704.js";import i from"./index-b8baa901.js";import m from"./index-a3a55092.js";import t from"./index-e6a855a3.js";import p from"./index-9bc2873f.js";import n from"./index-08afc5ad.js";import x from"./index-49e8f642.js";import d from"./index-b7a2130f.js";import"./index-275c5384.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-7b54423a.js";import"./index-426be59b.js";import"./createLoading-2160f924.js";import"./react-content-loader.es-7f7b682d.js";import"./camelCase-e5a219bd.js";const O=()=>r.jsxs(s,{gutter:24,children:[r.jsx(o,{span:18,children:r.jsxs(s,{gutter:[24,24],children:[r.jsx(o,{span:24,children:r.jsxs(e,{title:"区域实时浏览情况",children:[r.jsx(t,{}),r.jsx("div",{style:{height:600},children:r.jsx(d,{})})]})}),r.jsx(o,{span:18,children:r.jsx(i,{})}),r.jsx(o,{span:6,children:r.jsx(p,{})})]})}),r.jsx(o,{span:6,children:r.jsxs(s,{gutter:[24,24],children:[r.jsx(o,{span:24,children:r.jsx(x,{})}),r.jsx(o,{span:24,children:r.jsx(n,{})}),r.jsx(o,{span:24,children:r.jsx(m,{})})]})})]});export{O as default}; diff --git a/web/dist/assets/index-71294a53.css b/web/dist/assets/index-71294a53.css new file mode 100644 index 0000000000000000000000000000000000000000..7ec99a358d5b0be26434e58d23cb5da1c2166a52 --- /dev/null +++ b/web/dist/assets/index-71294a53.css @@ -0,0 +1 @@ +.xin-table .ant-table-content{overflow:auto!important;max-height:calc(100vh - 236px)!important}.xin-table .ant-table-thead{position:sticky;top:0;background:#fafafa;z-index:10}.xin-table .ant-table-tbody .ant-table-cell{padding:2px 8px!important}.xin-table .ant-pro-table-search>.ant-pro-query-filter{padding:8px}.xin-table .ant-pro-table-search>.ant-pro-query-filter .ant-pro-query-filter-row{row-gap:8px}.xin-table .ant-pro-table-search>.ant-pro-query-filter .ant-pro-query-filter-collapse-button{white-space:nowrap} diff --git a/web/dist/assets/index-71324493.js b/web/dist/assets/index-71324493.js new file mode 100644 index 0000000000000000000000000000000000000000..fad0c870072898e2a1975dc8c43e267c2f78afa4 --- /dev/null +++ b/web/dist/assets/index-71324493.js @@ -0,0 +1 @@ +import{al as d,Y as m,aV as x,j as e,a3 as t,a6 as g,ar as o,aY as f,a1 as l,a_ as h}from"./umi-5f6aeac9.js";import{L as j}from"./index-d76da286.js";import{P}from"./index-2c4aebf3.js";const S=()=>{const{token:a}=d.useToken(),{initialState:c}=m("@@initialState"),u=x(),n=r=>{const s=(()=>r&&r.length>12?"ok":r&&r.length>6?"pass":"poor")();return s==="pass"?e.jsx("div",{style:{color:a.colorWarning},children:"强度:中"}):s==="ok"?e.jsx("div",{style:{color:a.colorSuccess},children:"强度:强"}):e.jsx("div",{style:{color:a.colorError},children:"强度:弱"})},p=async r=>{await h(r),l.success("注册成功,请重新登录!"),u("/client/login",{replace:!0})};return e.jsx("div",{style:{backgroundColor:a.colorBgContainer,maxWidth:600,margin:"50px auto"},children:e.jsxs(j,{logo:c.webSetting.logo||"/favicon.png",title:"用户注册",subTitle:"注册成为新用户,开启全新旅程!",onFinish:p,children:[e.jsx(t,{name:"username",fieldProps:{size:"large",prefix:e.jsx(g,{className:"prefixIcon"})},placeholder:"请输入用户名",rules:[{required:!0,message:"请输入用户名!"}]}),e.jsx(t.Password,{name:"password",fieldProps:{size:"large",prefix:e.jsx(o,{className:"prefixIcon"}),strengthText:"密码只能为字母和数字,下划线_及破折号-,且长度最小为6位",statusRender:n},placeholder:"请输入密码",rules:[{required:!0,message:"请输入密码!"}]}),e.jsx(t.Password,{name:"rePassword",fieldProps:{size:"large",prefix:e.jsx(o,{className:"prefixIcon"}),strengthText:"密码只能为字母和数字,下划线_及破折号-,且长度最小为6位",statusRender:n},placeholder:"请重复输入密码",rules:[{required:!0,message:"请重复输入密码!"},({getFieldValue:r})=>({validator(i,s){return!s||r("password")===s?Promise.resolve():Promise.reject(new Error("重复密码不同!"))}})]}),e.jsx(t,{fieldProps:{size:"large",prefix:e.jsx(o,{className:"prefixIcon"})},name:"email",placeholder:"邮箱",rules:[{required:!0,message:"请输入邮箱!"},{pattern:/^[\w\\.-]+@[\w\\.-]+\.\w+$/,message:"邮箱格式错误!"}]}),e.jsx(P,{fieldProps:{size:"large",prefix:e.jsx(o,{className:"prefixIcon"})},captchaProps:{size:"large"},phoneName:"email",placeholder:"请输入邮箱验证码",captchaTextRender:(r,i)=>r?`${i} 获取验证码`:"获取验证码",name:"captcha",rules:[{required:!0,message:"请输入验证码!"}],onGetCaptcha:async r=>{await f({email:r},{type:"reg"}),l.success("获取验证码成功!")}})]})})};export{S as default}; diff --git a/web/dist/assets/index-73f6d528.js b/web/dist/assets/index-73f6d528.js deleted file mode 100644 index d1da3dc0b57caf55a2b6f871a140193dab6a0e6b..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-73f6d528.js +++ /dev/null @@ -1 +0,0 @@ -import{j as r,e as t,f as o}from"./umi-2ee4055f.js";import s from"./ACard-fe84a303.js";import i from"./BCard-89fbc3cc.js";import m from"./CCard-c2c5347c.js";import{P as e}from"./ProCard-cee316ff.js";import"./index-7b54423a.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-426be59b.js";import"./index-883cb62c.js";import"./createLoading-2160f924.js";import"./react-content-loader.es-7f7b682d.js";import"./index-c02d95b0.js";import"./index-9f6163bb.js";const P=()=>r.jsxs(t,{gutter:[24,24],children:[r.jsx(o,{span:18,children:r.jsxs(t,{gutter:[24,24],children:[r.jsx(o,{span:24,children:r.jsx(e,{bordered:!0,children:r.jsx(s,{})})}),r.jsx(o,{span:24,children:r.jsx(e,{bordered:!0,children:r.jsx(i,{})})})]})}),r.jsx(o,{span:6,children:r.jsx(e,{bordered:!0,children:r.jsx(m,{})})})]});export{P as default}; diff --git a/web/dist/assets/index-757eb240.js b/web/dist/assets/index-757eb240.js new file mode 100644 index 0000000000000000000000000000000000000000..2b1f88706f8f45a8d03908bf3d9b1d5f92406db5 --- /dev/null +++ b/web/dist/assets/index-757eb240.js @@ -0,0 +1 @@ +import{Y as i,j as e,a5 as d,a6 as p}from"./umi-5f6aeac9.js";import{X as m}from"./index-53e65e71.js";import{X as l}from"./index-109f15ec.js";import"./index-d4ea9132.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./table-0fa6c309.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const n="/user.user",B=()=>{const{getDictionaryData:r}=i("dictModel"),a=[{valueType:"digit",title:"ID",order:99,hideInForm:!0,dataIndex:"id"},{valueType:"text",title:"手机号",order:98,dataIndex:"mobile"},{valueType:"text",title:"用户名",order:97,dataIndex:"username"},{valueType:"text",title:"用户邮箱",order:96,dataIndex:"email"},{valueType:"text",title:"昵称",order:95,dataIndex:"nickname"},{valueType:"text",title:"头像",order:94,dataIndex:"avatar_url",render:(o,t)=>e.jsx(d,{src:t.avatar_url,style:{backgroundColor:"#87d068"},icon:e.jsx(p,{})})},{valueType:"text",title:"性别",order:93,request:async()=>await r("sex"),render:(o,t)=>e.jsx(m,{value:t.gender,dict:"sex"}),dataIndex:"gender"},{valueType:"date",title:"生日",order:92,dataIndex:"birthday"},{valueType:"money",title:"余额",order:91,dataIndex:"money"},{valueType:"money",title:"积分",order:90,dataIndex:"score"},{valueType:"textarea",title:"签名",order:89,hideInSearch:!0,hideInTable:!0,dataIndex:"motto"},{valueType:"text",title:"密码",order:88,hideInSearch:!0,hideInTable:!0,hideInForm:!0,dataIndex:"password"}];return e.jsx(l,{tableApi:n,columns:a,headerTitle:"用户列表",addShow:!1,operateShow:!0,rowSelectionShow:!0,editShow:!1,deleteShow:!0,accessName:"user.list"})};export{B as default}; diff --git a/web/dist/assets/index-7649ea01.js b/web/dist/assets/index-7649ea01.js deleted file mode 100644 index 3cc3f65e41cc7f68dd4f731ca6373b2899ec1f01..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-7649ea01.js +++ /dev/null @@ -1 +0,0 @@ -import{j as a}from"./umi-2ee4055f.js";import{T as r}from"./index-c02d95b0.js";import"./createLoading-2160f924.js";import"./react-content-loader.es-7f7b682d.js";const s=()=>{const n={height:60,autoFit:!1,data:[274,337,81,497,666,219,269,163,159,86,15,66],tooltip:{customContent:function(i,m){var t,o;return`NO.${i}: ${(o=(t=m[0])==null?void 0:t.data)==null?void 0:o.y.toFixed(2)}`}}};return a.jsx(r,{...n})},l=s;export{l as default}; diff --git a/web/dist/assets/index-77afe57c.js b/web/dist/assets/index-77afe57c.js deleted file mode 100644 index 25791cf43d5a11ddf4dc57ddc4c8998af4dba95a..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-77afe57c.js +++ /dev/null @@ -1 +0,0 @@ -import{ao as G,R as $,O as N,r as l,l as p,k as A,j as g,_ as i,b as H,B as L,w as C,x as f}from"./umi-2ee4055f.js";var O=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],V=$.forwardRef(function(r,w){var T=N.useFormInstance(),S=l.useState(r.countDown||60),P=p(S,2),d=P[0],F=P[1],j=l.useState(!1),b=p(j,2),o=b[0],c=b[1],I=l.useState(),y=p(I,2),D=y[0],m=y[1];r.rules,r.name;var v=r.phoneName,s=r.fieldProps,h=r.onTiming,R=r.captchaTextRender,B=R===void 0?function(a,n){return a?"".concat(n," 秒后重新获取"):"获取验证码"}:R,E=r.captchaProps,x=A(r,O),k=function(){var a=C(f().mark(function n(u){return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,m(!0),t.next=4,x.onGetCaptcha(u);case 4:m(!1),c(!0),t.next=13;break;case 8:t.prev=8,t.t0=t.catch(0),c(!1),m(!1),console.log(t.t0);case 13:case"end":return t.stop()}},n,null,[[0,8]])}));return function(u){return a.apply(this,arguments)}}();return l.useImperativeHandle(w,function(){return{startTiming:function(){return c(!0)},endTiming:function(){return c(!1)}}}),l.useEffect(function(){var a=0,n=r.countDown;return o&&(a=window.setInterval(function(){F(function(u){return u<=1?(c(!1),clearInterval(a),n||60):u-1})},1e3)),function(){return clearInterval(a)}},[o]),l.useEffect(function(){h&&h(d)},[d,h]),g.jsxs("div",{style:i(i({},s==null?void 0:s.style),{},{display:"flex",alignItems:"center"}),ref:w,children:[g.jsx(H,i(i({},s),{},{style:i({flex:1,transition:"width .3s",marginRight:8},s==null?void 0:s.style)})),g.jsx(L,i(i({style:{display:"block"},disabled:o,loading:D},E),{},{onClick:C(f().mark(function a(){var n;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!v){e.next=9;break}return e.next=4,T.validateFields([v].flat(1));case 4:return n=T.getFieldValue([v].flat(1)),e.next=7,k(n);case 7:e.next=11;break;case 9:return e.next=11,k("");case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.log(e.t0);case 16:case"end":return e.stop()}},a,null,[[0,13]])})),children:B(o,d)}))]})}),W=G(V);const z=W;export{z as P}; diff --git a/web/dist/assets/index-79481ba8.js b/web/dist/assets/index-79481ba8.js deleted file mode 100644 index e0f0f98a6c288dde815d8eade70e310bd5efb6d1..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-79481ba8.js +++ /dev/null @@ -1 +0,0 @@ -import{j as t,S as x,B as s,F as e,C as c,e as j,f as i,L as a,A as p,D as m}from"./umi-2ee4055f.js";import{C as h}from"./index-8a549704.js";import g from"./index-250ebfc2.js";import"./index-275c5384.js";import"./index-c4f19093.js";import"./createLoading-2160f924.js";import"./react-content-loader.es-7f7b682d.js";const{RangePicker:y}=m,T=()=>{const n=[{key:"a",label:t.jsx(e,{id:"analysis.tab1"})},{key:"b",label:t.jsx(e,{id:"analysis.tab2"})}],r=[{title:"Ant Design Title 1"},{title:"Ant Design Title 2"},{title:"Ant Design Title 3"},{title:"Ant Design Title 4"}],l=t.jsxs(x,{children:[t.jsx(s,{type:"text",children:t.jsx(e,{id:"analysis.button1"})}),t.jsx(s,{type:"text",children:t.jsx(e,{id:"analysis.button2"})}),t.jsx(s,{type:"text",children:t.jsx(e,{id:"analysis.button3"})}),t.jsx(s,{type:"text",children:t.jsx(e,{id:"analysis.button4"})}),t.jsx(y,{})]});return t.jsx(c,{theme:{components:{Card:{headerHeight:100}}},children:t.jsx(h,{style:{width:"100%"},tabList:n,tabBarExtraContent:l,children:t.jsxs(j,{gutter:30,children:[t.jsx(i,{span:16,children:t.jsx(g,{})}),t.jsxs(i,{span:8,children:[t.jsx(e,{id:"analysis.title5"}),t.jsx(a,{dataSource:r,renderItem:(o,d)=>t.jsx(a.Item,{children:t.jsx(a.Item.Meta,{avatar:t.jsx(p,{src:`https://xsgames.co/randomusers/avatar.php?g=pixel&key=${d}`}),title:t.jsx("a",{href:"https://ant.design",children:o.title}),description:"Ant Design, a design language for background applications, is refined by Ant UED Team"})})})]})]})})})};export{T as default}; diff --git a/web/dist/assets/index-7b56ae8e.js b/web/dist/assets/index-7b56ae8e.js new file mode 100644 index 0000000000000000000000000000000000000000..31d13005a165203297ff0d3b26ab83c28416da40 --- /dev/null +++ b/web/dist/assets/index-7b56ae8e.js @@ -0,0 +1 @@ +import{c5 as C,Y as T,b as w,bt as v,aA as _,j as e,bu as L,ae as R}from"./umi-5f6aeac9.js";import{g as q}from"./flange-f16cbc3a.js";import{X as A}from"./index-109f15ec.js";import{useFlangeParams as B}from"./hooks-3f5f605c.js";import{FlangeTorqueFinalCheckMap as E,FlangeTypeMap as K,FlangeCheckMap as N}from"./constants-bc9b0dd9.js";import{BasicColumnsKeys as X,BasicColumns as D,FlangeLogColumns as G}from"./constants-8b327417.js";import{i as I}from"./isSymbol-2dfef6ea.js";import{P as x}from"./ProCard-a8f5c5a9.js";import{P}from"./index-9da4ac9d.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./table-0fa6c309.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-55d2ebbc.js";import"./index-54d1fa42.js";function O(t,m){return t>m}function U(t,m,p){for(var i=-1,u=t.length;++i{T("@@initialState"),w.useRef();const t=v(),m=new URLSearchParams(t.search),p=Number(m.get("id")),{data:i,loading:u,refresh:f}=_(q,{defaultParams:[p]}),{flangeParams:o}=B(),c=w.useMemo(()=>{const s={},n={};if(o)for(const r of o){const{is_param:d,code:l,name:M,show_table:$,type:F,index:k}=r;if(X[l])continue;const a=r.group_name||"其它信息";s[a]||(s[a]=[],n[a]=0),a!=="其它信息"&&(n[a]=Y([n[a],k]));const h=[];d===1&&h.push("data"),h.push(l),s[a].push({title:M,dataIndex:h,render:(y,b)=>{var j;if(d!==1){const S=b[l];switch(l){case"type":return K.get(S)??"-";case"torque_final_check":return E.get(S)??"-";default:return y??"-"}}const g=(j=b.data)==null?void 0:j[l];switch(F){case"check":return g?N.get(g.check):"-";default:return g||"-"}}})}return Object.entries(n).sort((r,d)=>d[1]-r[1]).map(([r])=>({group_name:r,columns:s[r]}))},[o]);return e.jsx(L,{spinning:u,children:e.jsxs("div",{className:"page-flange-detail",children:[e.jsx(x,{title:`法兰编号:${(i==null?void 0:i.code)??"-"}`,headerBordered:!0,children:e.jsx(P,{dataSource:i,columns:D})}),c.map(({group_name:s,columns:n})=>e.jsxs("div",{children:[e.jsx("br",{}),e.jsx("br",{}),e.jsx(x,{children:e.jsx(P,{title:s,dataSource:i,columns:n})})]},s)),e.jsx("br",{}),e.jsx("br",{}),e.jsx(x,{children:e.jsx(R,{defaultActiveKey:"log",items:[{label:"操作日志",key:"log",children:e.jsx(e.Fragment,{children:e.jsx(A,{headerTitle:null,tableApi:"/log",columns:G,apiMap:{list:"/log/getList"},defaultParamsMap:{list:{type:"flange",flange_id:p}},rowSelectionShow:!1,deleteShow:!1,editShow:!1,addShow:!1,operateShow:!1,colProps:{span:24}})})}]})})]})})};export{_e as default}; diff --git a/web/dist/assets/index-7b54423a.js b/web/dist/assets/index-7b6639e6.js similarity index 78% rename from web/dist/assets/index-7b54423a.js rename to web/dist/assets/index-7b6639e6.js index 3c213bf4c8bc74f9de8f4a5dc4aa6b721c40733b..9cf3974d6caf472a654624468372229f8be607a2 100644 --- a/web/dist/assets/index-7b54423a.js +++ b/web/dist/assets/index-7b6639e6.js @@ -1 +1 @@ -import{aU as I,_ as l,K as a,k as b,r as D,C as _,aV as o,j as n,T as H,c4 as K,au as M}from"./umi-2ee4055f.js";import{C as Q,D as U}from"./index-3f6ddb76.js";import{S as V}from"./index-426be59b.js";var q=function(t){return a({},t.componentCls,a(a(a(a(a({display:"flex",fontSize:t.fontSize,"& + &":{marginBlockStart:4},"&-tip":{marginInlineStart:4},"&-wrapper":a({display:"flex",width:"100%"},"".concat(t.componentCls,"-status"),{width:"14px"}),"&-icon":{marginInlineEnd:16},"&-trend-icon":{width:0,height:0,borderInlineEnd:"3.5px solid transparent",borderBlockEnd:"9px solid #000",borderInlineStart:"3.5px solid transparent","&-up":{transform:"rotate(0deg)"},"&-down":{transform:"rotate(180deg)"}},"&-content":a({width:"100%"},"".concat(t.antCls,"-statistic-content"),{"&-value-int":{fontSize:t.fontSizeHeading3}}),"&-description":{width:"100%"}},"".concat(t.antCls,"-statistic-title"),{color:t.colorText}),"&-trend-up",a({},"".concat(t.antCls,"-statistic-content"),a({color:"#f5222d"},"".concat(t.componentCls,"-trend-icon"),{borderBlockEndColor:"#f5222d"}))),"&-trend-down",a({},"".concat(t.antCls,"-statistic-content"),a({color:"#389e0d"},"".concat(t.componentCls,"-trend-icon"),{borderBlockEndColor:"#52c41a"}))),"& &-layout-horizontal",a(a(a({display:"flex",justifyContent:"space-between"},"".concat(t.antCls,"-statistic-title"),{marginBlockEnd:0}),"".concat(t.antCls,"-statistic-content-value"),{fontWeight:500}),"".concat(t.antCls,"-statistic-title,").concat(t.antCls,"-statistic-content,").concat(t.antCls,"-statistic-content-suffix,").concat(t.antCls,"-statistic-content-prefix,").concat(t.antCls,"-statistic-content-value-decimal"),{fontSize:t.fontSize})),"& &-layout-inline",a(a(a({display:"inline-flex",color:t.colorTextSecondary},"".concat(t.antCls,"-statistic-title"),{marginInlineEnd:"6px",marginBlockEnd:0}),"".concat(t.antCls,"-statistic-content"),{color:t.colorTextSecondary}),"".concat(t.antCls,"-statistic-title,").concat(t.antCls,"-statistic-content,").concat(t.antCls,"-statistic-content-suffix,").concat(t.antCls,"-statistic-content-prefix,").concat(t.antCls,"-statistic-content-value-decimal"),{fontSize:t.fontSizeSM})))};function A(i){return I("Statistic",function(t){var s=l(l({},t),{},{componentCls:".".concat(i)});return[q(s)]})}var J=["className","layout","style","description","children","title","tip","status","trend","prefix","icon"],X=function(t){var s=t.className,d=t.layout,p=d===void 0?"inline":d,x=t.style,m=t.description;t.children;var u=t.title,C=t.tip,h=t.status,f=t.trend,e=t.prefix,v=t.icon,N=b(t,J),g=D.useContext(_.ConfigContext),P=g.getPrefixCls,c=P("pro-card-statistic"),j=A(c),y=j.wrapSSR,r=j.hashId,w=o(c,s,r),B=o("".concat(c,"-status"),r),T=o("".concat(c,"-icon"),r),R=o("".concat(c,"-wrapper"),r),O=o("".concat(c,"-content"),r),G=o(r,a(a({},"".concat(c,"-layout-").concat(p),p),"".concat(c,"-trend-").concat(f),f)),z=C&&n.jsx(H,{title:C,children:n.jsx(K,{className:"".concat(c,"-tip ").concat(r).trim()})}),L=o("".concat(c,"-trend-icon"),r,a({},"".concat(c,"-trend-icon-").concat(f),f)),E=f&&n.jsx("div",{className:L}),W=h&&n.jsx("div",{className:B,children:n.jsx(M,{status:h,text:null})}),F=v&&n.jsx("div",{className:T,children:v});return y(n.jsxs("div",{className:w,style:x,children:[F,n.jsxs("div",{className:R,children:[W,n.jsxs("div",{className:O,children:[n.jsx(V,l({title:(u||z)&&n.jsxs(n.Fragment,{children:[u,z]}),prefix:(E||e)&&n.jsxs(n.Fragment,{children:[E,e]}),className:G},N)),m&&n.jsx("div",{className:"".concat(c,"-description ").concat(r).trim(),children:m})]})]})]}))};const $=X;var Y=function(t){return a({},t.componentCls,{display:"flex",flexDirection:"column",justifyContent:"flex-end",marginBlock:t.marginLG,marginInline:0,color:t.colorText,fontWeight:"500",fontSize:"20px",lineHeight:"38px"})};function Z(i){return I("ProCardOperation",function(t){var s=l(l({},t),{},{componentCls:".".concat(i)});return[Y(s)]})}var k=function(t){var s=t.className,d=t.style,p=d===void 0?{}:d,x=t.children,m=D.useContext(_.ConfigContext),u=m.getPrefixCls,C=u("pro-card-operation"),h=Z(C),f=h.wrapSSR,e=h.hashId,v=o(C,s,e);return f(n.jsx("div",{className:v,style:p,children:x}))};const tt=k;var at=function(t){return a({},t.componentCls,{"&-chart":{display:"flex",flexDirection:"column",marginBlockStart:8,marginBlockEnd:8,"&-left":{marginBlockStart:0,marginInlineEnd:"16px"},"&-right":{marginBlockStart:0,marginInlineStart:"16px"}},"&-content":{display:"flex",flexDirection:"column","&-horizontal":a({flexDirection:"row"},"".concat(t.componentCls,"-chart"),{alignItems:"center",alignSelf:"flex-start"})},"&-footer":{marginBlockStart:8,paddingBlockStart:"16px",borderBlockStart:"rgba(0, 0, 0, 0.08) solid ".concat(t.colorBorder)}})};function nt(i){return I("StatisticCard",function(t){var s=l(l({},t),{},{componentCls:".".concat(i)});return[at(s)]})}var ct=["children","statistic","className","chart","chartPlacement","footer"],S=function(t){var s=t.children,d=t.statistic,p=t.className,x=t.chart,m=t.chartPlacement,u=t.footer,C=b(t,ct),h=D.useContext(_.ConfigContext),f=h.getPrefixCls,e=f("pro-statistic-card"),v=nt(e),N=v.wrapSSR,g=v.hashId,P=o(e,p,g),c=d&&n.jsx($,l({layout:"vertical"},d)),j=o("".concat(e,"-chart"),g,a(a({},"".concat(e,"-chart-left"),m==="left"&&x&&d),"".concat(e,"-chart-right"),m==="right"&&x&&d)),y=x&&n.jsx("div",{className:j,children:x}),r=o("".concat(e,"-content "),g,a({},"".concat(e,"-content-horizontal"),m==="left"||m==="right")),w=(y||c)&&(m==="left"?n.jsxs("div",{className:r,children:[y,c]}):n.jsxs("div",{className:r,children:[c,y]})),B=u&&n.jsx("div",{className:"".concat(e,"-footer ").concat(g).trim(),children:u});return N(n.jsxs(Q,l(l({className:P},C),{},{children:[w,s,B]})))},et=function(t){return n.jsx(S,l({bodyStyle:{padding:0}},t))};S.Statistic=$;S.Divider=U;S.Operation=tt;S.isProCard=!0;S.Group=et;const ot=S;export{ot as S}; +import{b2 as I,_ as l,k as a,s as E,b as D,C as b,b3 as o,j as n,T as H,c6 as M,aB as Q}from"./umi-5f6aeac9.js";import{C as q,D as A}from"./index-46da21dc.js";import{S as J}from"./index-e3aca980.js";var K=function(t){return a({},t.componentCls,a(a(a(a(a({display:"flex",fontSize:t.fontSize,"& + &":{marginBlockStart:4},"&-tip":{marginInlineStart:4},"&-wrapper":a({display:"flex",width:"100%"},"".concat(t.componentCls,"-status"),{width:"14px"}),"&-icon":{marginInlineEnd:16},"&-trend-icon":{width:0,height:0,borderInlineEnd:"3.5px solid transparent",borderBlockEnd:"9px solid #000",borderInlineStart:"3.5px solid transparent","&-up":{transform:"rotate(0deg)"},"&-down":{transform:"rotate(180deg)"}},"&-content":a({width:"100%"},"".concat(t.antCls,"-statistic-content"),{"&-value-int":{fontSize:t.fontSizeHeading3}}),"&-description":{width:"100%"}},"".concat(t.antCls,"-statistic-title"),{color:t.colorText}),"&-trend-up",a({},"".concat(t.antCls,"-statistic-content"),a({color:"#f5222d"},"".concat(t.componentCls,"-trend-icon"),{borderBlockEndColor:"#f5222d"}))),"&-trend-down",a({},"".concat(t.antCls,"-statistic-content"),a({color:"#389e0d"},"".concat(t.componentCls,"-trend-icon"),{borderBlockEndColor:"#52c41a"}))),"& &-layout-horizontal",a(a(a({display:"flex",justifyContent:"space-between"},"".concat(t.antCls,"-statistic-title"),{marginBlockEnd:0}),"".concat(t.antCls,"-statistic-content-value"),{fontWeight:500}),"".concat(t.antCls,"-statistic-title,").concat(t.antCls,"-statistic-content,").concat(t.antCls,"-statistic-content-suffix,").concat(t.antCls,"-statistic-content-prefix,").concat(t.antCls,"-statistic-content-value-decimal"),{fontSize:t.fontSize})),"& &-layout-inline",a(a(a({display:"inline-flex",color:t.colorTextSecondary},"".concat(t.antCls,"-statistic-title"),{marginInlineEnd:"6px",marginBlockEnd:0}),"".concat(t.antCls,"-statistic-content"),{color:t.colorTextSecondary}),"".concat(t.antCls,"-statistic-title,").concat(t.antCls,"-statistic-content,").concat(t.antCls,"-statistic-content-suffix,").concat(t.antCls,"-statistic-content-prefix,").concat(t.antCls,"-statistic-content-value-decimal"),{fontSize:t.fontSizeSM})))};function U(i){return I("Statistic",function(t){var s=l(l({},t),{},{componentCls:".".concat(i)});return[K(s)]})}var V=["className","layout","style","description","children","title","tip","status","trend","prefix","icon"],X=function(t){var s=t.className,d=t.layout,p=d===void 0?"inline":d,x=t.style,m=t.description;t.children;var u=t.title,C=t.tip,h=t.status,f=t.trend,e=t.prefix,v=t.icon,N=E(t,V),g=D.useContext(b.ConfigContext),P=g.getPrefixCls,c=P("pro-card-statistic"),j=U(c),y=j.wrapSSR,r=j.hashId,w=o(c,s,r),B=o("".concat(c,"-status"),r),T=o("".concat(c,"-icon"),r),R=o("".concat(c,"-wrapper"),r),O=o("".concat(c,"-content"),r),G=o(r,a(a({},"".concat(c,"-layout-").concat(p),p),"".concat(c,"-trend-").concat(f),f)),_=C&&n.jsx(H,{title:C,children:n.jsx(M,{className:"".concat(c,"-tip ").concat(r).trim()})}),L=o("".concat(c,"-trend-icon"),r,a({},"".concat(c,"-trend-icon-").concat(f),f)),z=f&&n.jsx("div",{className:L}),W=h&&n.jsx("div",{className:B,children:n.jsx(Q,{status:h,text:null})}),F=v&&n.jsx("div",{className:T,children:v});return y(n.jsxs("div",{className:w,style:x,children:[F,n.jsxs("div",{className:R,children:[W,n.jsxs("div",{className:O,children:[n.jsx(J,l({title:(u||_)&&n.jsxs(n.Fragment,{children:[u,_]}),prefix:(z||e)&&n.jsxs(n.Fragment,{children:[z,e]}),className:G},N)),m&&n.jsx("div",{className:"".concat(c,"-description ").concat(r).trim(),children:m})]})]})]}))};const $=X;var Y=function(t){return a({},t.componentCls,{display:"flex",flexDirection:"column",justifyContent:"flex-end",marginBlock:t.marginLG,marginInline:0,color:t.colorText,fontWeight:"500",fontSize:"20px",lineHeight:"38px"})};function Z(i){return I("ProCardOperation",function(t){var s=l(l({},t),{},{componentCls:".".concat(i)});return[Y(s)]})}var k=function(t){var s=t.className,d=t.style,p=d===void 0?{}:d,x=t.children,m=D.useContext(b.ConfigContext),u=m.getPrefixCls,C=u("pro-card-operation"),h=Z(C),f=h.wrapSSR,e=h.hashId,v=o(C,s,e);return f(n.jsx("div",{className:v,style:p,children:x}))};const tt=k;var at=function(t){return a({},t.componentCls,{"&-chart":{display:"flex",flexDirection:"column",marginBlockStart:8,marginBlockEnd:8,"&-left":{marginBlockStart:0,marginInlineEnd:"16px"},"&-right":{marginBlockStart:0,marginInlineStart:"16px"}},"&-content":{display:"flex",flexDirection:"column","&-horizontal":a({flexDirection:"row"},"".concat(t.componentCls,"-chart"),{alignItems:"center",alignSelf:"flex-start"})},"&-footer":{marginBlockStart:8,paddingBlockStart:"16px",borderBlockStart:"rgba(0, 0, 0, 0.08) solid ".concat(t.colorBorder)}})};function nt(i){return I("StatisticCard",function(t){var s=l(l({},t),{},{componentCls:".".concat(i)});return[at(s)]})}var ct=["children","statistic","className","chart","chartPlacement","footer"],S=function(t){var s=t.children,d=t.statistic,p=t.className,x=t.chart,m=t.chartPlacement,u=t.footer,C=E(t,ct),h=D.useContext(b.ConfigContext),f=h.getPrefixCls,e=f("pro-statistic-card"),v=nt(e),N=v.wrapSSR,g=v.hashId,P=o(e,p,g),c=d&&n.jsx($,l({layout:"vertical"},d)),j=o("".concat(e,"-chart"),g,a(a({},"".concat(e,"-chart-left"),m==="left"&&x&&d),"".concat(e,"-chart-right"),m==="right"&&x&&d)),y=x&&n.jsx("div",{className:j,children:x}),r=o("".concat(e,"-content "),g,a({},"".concat(e,"-content-horizontal"),m==="left"||m==="right")),w=(y||c)&&(m==="left"?n.jsxs("div",{className:r,children:[y,c]}):n.jsxs("div",{className:r,children:[c,y]})),B=u&&n.jsx("div",{className:"".concat(e,"-footer ").concat(g).trim(),children:u});return N(n.jsxs(q,l(l({className:P},C),{},{children:[w,s,B]})))},et=function(t){return n.jsx(S,l({bodyStyle:{padding:0}},t))};S.Statistic=$;S.Divider=A;S.Operation=tt;S.isProCard=!0;S.Group=et;const ot=S;export{ot as S}; diff --git a/web/dist/assets/index-7dcb896e.css b/web/dist/assets/index-7dcb896e.css new file mode 100644 index 0000000000000000000000000000000000000000..4a61c1bb43d142d96ebe72a5807bfdbe90ab383f --- /dev/null +++ b/web/dist/assets/index-7dcb896e.css @@ -0,0 +1 @@ +.dashboard-card-one .index-dot{margin-right:10px;width:18px;height:18px;border-radius:50%;font-size:12px;display:inline-flex;align-items:center;justify-content:center;background:rgba(0,0,0,.1);color:#000}.dashboard-card-one .index-dot.filled{background:#000;color:#fff} diff --git a/web/dist/assets/index-08afc5ad.js b/web/dist/assets/index-814370b3.js similarity index 75% rename from web/dist/assets/index-08afc5ad.js rename to web/dist/assets/index-814370b3.js index 57df0cbac492a16bf39ef8f565f186166fab688e..a2195dcc79d56a6b92ec92954d3c3762478d4ed3 100644 --- a/web/dist/assets/index-08afc5ad.js +++ b/web/dist/assets/index-814370b3.js @@ -1 +1 @@ -import{r as l,R as i,j as s}from"./umi-2ee4055f.js";import{C as y}from"./index-8a549704.js";import{u as p,G as T,g as b,E as v,C as x}from"./createLoading-2160f924.js";import"./index-275c5384.js";import"./react-content-loader.es-7f7b682d.js";var D=globalThis&&globalThis.__rest||function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{const e={percent:.75,height:200,range:{ticks:[0,.3333333333333333,.6666666666666666,1],color:["#F4664A","#FAAD14","#30BF78"]},indicator:{pointer:{style:{stroke:"#D0D0D0"}},pin:{style:{stroke:"#D0D0D0"}}},statistic:{content:{style:{fontSize:"36px",lineHeight:"36px"}}}};return s.jsx(y,{title:"仪表盘(多色)",children:s.jsx(O,{...e})})},N=j;export{N as default}; +import{b as l,R as i,j as s}from"./umi-5f6aeac9.js";import{C as y}from"./index-55d2ebbc.js";import{u as p,G as b,g as T,E as v,a as x}from"./createLoading-e07c13ae.js";import"./index-13cae3f4.js";import"./react-content-loader.es-3bd9b17f.js";var D=globalThis&&globalThis.__rest||function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{const e={percent:.75,height:200,range:{ticks:[0,.3333333333333333,.6666666666666666,1],color:["#F4664A","#FAAD14","#30BF78"]},indicator:{pointer:{style:{stroke:"#D0D0D0"}},pin:{style:{stroke:"#D0D0D0"}}},statistic:{content:{style:{fontSize:"36px",lineHeight:"36px"}}}};return s.jsx(y,{title:"仪表盘(多色)",children:s.jsx(O,{...e})})},N=j;export{N as default}; diff --git a/web/dist/assets/index-834de25b.js b/web/dist/assets/index-834de25b.js deleted file mode 100644 index ebfebf65713c3f4e029201796f95e7663594ee74..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-834de25b.js +++ /dev/null @@ -1 +0,0 @@ -import{a6 as y,r as i,ay as T,j as e,aB as m,V as s}from"./umi-2ee4055f.js";import{P as j}from"./index-ea2ed5fc.js";import v from"./GroupRule-af67b542.js";import{X as R}from"./index-1c416090.js";import{l as p,d as A,t as P}from"./table-c83b9d9d.js";import"./ActionButton-a9da0b15.js";import"./index-6395135c.js";import"./auth-11568536.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./Table-3849f584.js";import"./Table-0e254f81.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./RouteContext-8fa10ad2.js";const c="/adminGroup",ie=()=>{const[u,f]=y(),[x,h]=i.useState([]);i.useEffect(()=>{p("/adminRule/list").then(t=>{h(t.data.data)})},[]);const o=i.useRef(),b=[{title:"类型",dataIndex:"type",valueType:"radio",hideInTable:!0,initialValue:"0",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},fieldProps:{options:[{label:"根节点",value:"0"},{label:"子节点",value:"1"}]}},{title:"ID",dataIndex:"id",hideInForm:!0,hideInTable:!0},{title:"分组名",dataIndex:"name",valueType:"text"},{valueType:"dependency",name:["type"],hideInTable:!0,columns:({type:t})=>t!=="0"?[{title:"父节点",dataIndex:"pid",valueType:"treeSelect",initialValue:1,params:{ref:u},fieldProps:{fieldNames:{label:"name",value:"id"}},request:async()=>(await p(c+"/list")).data.data,formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}}]:[]},{title:"创建时间",dataIndex:"create_time",valueType:"date",hideInForm:!0},{title:"编辑时间",dataIndex:"update_time",valueType:"date",hideInForm:!0}],l=T(),g=async t=>{const n=s.loading("正在删除");let I=t.map(a=>a.id);A(P+"/delete",{ids:I.join()||""}).then(a=>{var r,d;a.success?(s.success(a.msg),(d=(r=o.current)==null?void 0:r.reloadAndRest)==null||d.call(r)):s.warning(a.msg)}).finally(()=>n())};return e.jsx(e.Fragment,{children:e.jsx(R,{tableApi:c,columns:b,search:!1,accessName:"admin.group",addBefore:()=>f.toggle(),deleteShow:!1,actionRef:o,expandable:{defaultExpandedRowKeys:[]},operateRender:t=>e.jsx(e.Fragment,{children:t.id!==1&&e.jsxs(e.Fragment,{children:[e.jsx(m,{accessible:l.buttonAccess("admin.group.rule"),children:e.jsx(v,{record:t,treeData:x})}),e.jsx(m,{accessible:l.buttonAccess("admin.group.delete"),children:e.jsx(j,{title:"Delete the task",description:"你确定要删除这条数据吗?",onConfirm:()=>{g([t])},okText:"确认",cancelText:"取消",children:e.jsx("a",{children:"删除"})})})]})})})})};export{ie as default}; diff --git a/web/dist/assets/index-84d5661b.js b/web/dist/assets/index-84d5661b.js deleted file mode 100644 index f6097128206d942c08f6876eafc1af415cad438d..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-84d5661b.js +++ /dev/null @@ -1 +0,0 @@ -import{S as X,b as D,ao as K,R as $,k as G,r as C,j as p,_ as n,aX as U,b5 as q,b6 as J,a2 as Q,b7 as Y,aU as Z,K as O,C as ee,l as M,v as ne,b8 as re,a_ as ae,aV as le,b9 as oe,ba as te,bb as ie}from"./umi-2ee4055f.js";var se=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue","lightProps"],ue=["children","space","valuePropName"],ce={space:X,group:D.Group};function de(a){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&a in e.target?e.target[a]:e}var fe=function(e){var P=e.children,x=e.value,i=x===void 0?[]:x,d=e.valuePropName,R=e.onChange,y=e.fieldProps,j=e.space,I=e.type,f=I===void 0?"space":I;e.transform,e.convertValue,e.lightProps;var H=G(e,se),S=U(function(o,s){var l,t=q(i);t[s]=de(d||"value",o),R==null||R(t),y==null||(l=y.onChange)===null||l===void 0||l.call(y,t)}),L=-1,v=J(Q(P,i,e)).map(function(o){if($.isValidElement(o)){var s,l,t;L+=1;var c=L,_=(o==null||(s=o.type)===null||s===void 0?void 0:s.displayName)==="ProFormComponent"||(o==null||(l=o.props)===null||l===void 0?void 0:l.readonly),V=_?n(n({key:c,ignoreFormItem:!0},o.props||{}),{},{fieldProps:n(n({},o==null||(t=o.props)===null||t===void 0?void 0:t.fieldProps),{},{onChange:function(){S(arguments.length<=0?void 0:arguments[0],c)}}),value:i==null?void 0:i[c],onChange:void 0}):n(n({key:c},o.props||{}),{},{value:i==null?void 0:i[c],onChange:function(k){var A,r;S(k,c),(A=(r=o.props).onChange)===null||A===void 0||A.call(r,k)}});return $.cloneElement(o,V)}return o}),w=ce[f],E=Y(H),m=E.RowWrapper,N=C.useMemo(function(){return n({},f==="group"?{compact:!0}:{})},[f]),g=C.useCallback(function(o){var s=o.children;return p.jsx(w,n(n(n({},N),j),{},{align:"start",wrap:!0,children:s}))},[w,j,N]);return p.jsx(m,{Wrapper:g,children:v})},ve=$.forwardRef(function(a,e){var P=a.children,x=a.space,i=a.valuePropName,d=G(a,ue);return C.useImperativeHandle(e,function(){return{}}),p.jsx(fe,n(n(n({space:x,valuePropName:i},d.fieldProps),{},{onChange:void 0},d),{},{children:P}))}),pe=K(ve);const ye=pe;var me=function(e){return O({},e.componentCls,{lineHeight:"30px","&::before":{display:"block",height:0,visibility:"hidden",content:"'.'"},"&-small":{lineHeight:e.lineHeight},"&-container":{display:"flex",flexWrap:"wrap",gap:e.marginXS},"&-item":O({whiteSpace:"nowrap"},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"&-line":{minWidth:"198px"},"&-line:not(:first-child)":{marginBlockStart:"16px",marginBlockEnd:8},"&-collapse-icon":{width:e.controlHeight,height:e.controlHeight,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"&-effective":O({},"".concat(e.componentCls,"-collapse-icon"),{backgroundColor:e.colorBgTextHover})})};function ge(a){return Z("LightFilter",function(e){var P=n(n({},e),{},{componentCls:".".concat(a)});return[me(P)]})}var he=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],Ce=function(e){var P=e.items,x=e.prefixCls,i=e.size,d=i===void 0?"middle":i,R=e.collapse,y=e.collapseLabel,j=e.onValuesChange,I=e.bordered,f=e.values,H=e.footerRender,S=e.placement,L=ae(),v="".concat(x,"-light-filter"),w=ge(v),E=w.wrapSSR,m=w.hashId,N=C.useState(!1),g=M(N,2),o=g[0],s=g[1],l=C.useState(function(){return n({},f)}),t=M(l,2),c=t[0],_=t[1];C.useEffect(function(){_(n({},f))},[f]);var V=C.useMemo(function(){var r=[],h=[];return P.forEach(function(b){var F=b.props||{},u=F.secondary;u||R?r.push(b):h.push(b)}),{collapseItems:r,outsideItems:h}},[e.items]),z=V.collapseItems,k=V.outsideItems,A=function(){return y||(R?p.jsx(te,{className:"".concat(v,"-collapse-icon ").concat(m).trim()}):p.jsx(ie,{size:d,label:L.getMessage("form.lightFilter.more","更多筛选")}))};return E(p.jsx("div",{className:le(v,m,"".concat(v,"-").concat(d),O({},"".concat(v,"-effective"),Object.keys(f).some(function(r){return Array.isArray(f[r])?f[r].length>0:f[r]}))),children:p.jsxs("div",{className:"".concat(v,"-container ").concat(m).trim(),children:[k.map(function(r,h){if(!(r!=null&&r.props))return r;var b=r.key,F=(r==null?void 0:r.props)||{},u=F.fieldProps,B=u!=null&&u.placement?u==null?void 0:u.placement:S;return p.jsx("div",{className:"".concat(v,"-item ").concat(m).trim(),children:$.cloneElement(r,{fieldProps:n(n({},r.props.fieldProps),{},{placement:B}),proFieldProps:n(n({},r.props.proFieldProps),{},{light:!0,label:r.props.label,bordered:I}),bordered:I})},b||h)}),z.length?p.jsx("div",{className:"".concat(v,"-item ").concat(m).trim(),children:p.jsx(oe,{padding:24,open:o,onOpenChange:function(h){s(h)},placement:S,label:A(),footerRender:H,footer:{onConfirm:function(){j(n({},c)),s(!1)},onClear:function(){var h={};z.forEach(function(b){var F=b.props.name;h[F]=void 0}),j(h)}},children:z.map(function(r){var h=r.key,b=r.props,F=b.name,u=b.fieldProps,B=n(n({},u),{},{onChange:function(W){return _(n(n({},c),{},O({},F,W!=null&&W.target?W.target.value:W))),!1}});c.hasOwnProperty(F)&&(B[r.props.valuePropName||"value"]=c[F]);var T=u!=null&&u.placement?u==null?void 0:u.placement:S;return p.jsx("div",{className:"".concat(v,"-line ").concat(m).trim(),children:$.cloneElement(r,{fieldProps:n(n({},B),{},{placement:T})})},h)})})},"more"):null]})}))};function Fe(a){var e=a.size,P=a.collapse,x=a.collapseLabel,i=a.initialValues,d=a.onValuesChange,R=a.form,y=a.placement,j=a.formRef,I=a.bordered;a.ignoreRules;var f=a.footerRender,H=G(a,he),S=C.useContext(ee.ConfigContext),L=S.getPrefixCls,v=L("pro-form"),w=C.useState(function(){return n({},i)}),E=M(w,2),m=E[0],N=E[1],g=C.useRef();return C.useImperativeHandle(j,function(){return g.current},[g.current]),p.jsx(ne,n(n({size:e,initialValues:i,form:R,contentRender:function(s){return p.jsx(Ce,{prefixCls:v,items:s==null?void 0:s.flatMap(function(l){var t;return!l||!(l!=null&&l.type)?l:(l==null||(t=l.type)===null||t===void 0?void 0:t.displayName)==="ProForm-Group"?l.props.children:l}),size:e,bordered:I,collapse:P,collapseLabel:x,placement:y,values:m||{},footerRender:f,onValuesChange:function(t){var c,_,V=n(n({},m),t);N(V),(c=g.current)===null||c===void 0||c.setFieldsValue(V),(_=g.current)===null||_===void 0||_.submit(),d&&d(t,V)}})},formRef:g,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},re(H,["labelWidth"])),{},{onValuesChange:function(s,l){var t;N(l),d==null||d(s,l),(t=g.current)===null||t===void 0||t.submit()}}))}export{Fe as L,ye as P}; diff --git a/web/dist/assets/index-883cb62c.js b/web/dist/assets/index-85806890.js similarity index 77% rename from web/dist/assets/index-883cb62c.js rename to web/dist/assets/index-85806890.js index b28c8acb85663099c1cdff7fcb8b94d31d844788..35782223e3ce9df46cc69728fd94687af94a4d81 100644 --- a/web/dist/assets/index-883cb62c.js +++ b/web/dist/assets/index-85806890.js @@ -1 +1 @@ -import{r as l,R as s,j as g}from"./umi-2ee4055f.js";import{u as y,R,g as p,E as v,C as E}from"./createLoading-2160f924.js";var b=globalThis&&globalThis.__rest||function(e,a){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{const{size:a,title:n="进度",color:t="#1890ff",percent:r=.6}=e,o={height:a,width:a,autoFit:!1,percent:r,color:[t,"#E8EDF3"],innerRadius:.85,radius:.98,statistic:{title:{style:{color:"#363636",fontSize:"12px",lineHeight:"14px"},formatter:()=>n}}};return g.jsx("div",{style:{width:a,height:a},children:g.jsx(T,{...o})})},w=O;export{w as R}; +import{b as l,R as s,j as g}from"./umi-5f6aeac9.js";import{u as y,R,g as b,E as p,a as v}from"./createLoading-e07c13ae.js";var E=globalThis&&globalThis.__rest||function(e,a){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{const{size:a,title:n="进度",color:t="#1890ff",percent:r=.6}=e,o={height:a,width:a,autoFit:!1,percent:r,color:[t,"#E8EDF3"],innerRadius:.85,radius:.98,statistic:{title:{style:{color:"#363636",fontSize:"12px",lineHeight:"14px"},formatter:()=>n}}};return g.jsx("div",{style:{width:a,height:a},children:g.jsx(T,{...o})})},w=O;export{w as R}; diff --git a/web/dist/assets/index-8613c592.js b/web/dist/assets/index-8613c592.js new file mode 100644 index 0000000000000000000000000000000000000000..54396837604d83ba625b80f23988ab231fae77ad --- /dev/null +++ b/web/dist/assets/index-8613c592.js @@ -0,0 +1 @@ +import{j as r,Z as s,$ as o}from"./umi-5f6aeac9.js";import{C as i}from"./index-55d2ebbc.js";import e from"./index-908dcc9e.js";import m from"./index-c92fe1fc.js";import t from"./index-588da60e.js";import p from"./index-db4ceaf0.js";import n from"./index-814370b3.js";import x from"./index-21b0d826.js";import d from"./index-d123fa1a.js";import"./index-13cae3f4.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-7b6639e6.js";import"./index-e3aca980.js";import"./createLoading-e07c13ae.js";import"./react-content-loader.es-3bd9b17f.js";import"./camelCase-d2af58d5.js";import"./isSymbol-2dfef6ea.js";const S=()=>r.jsxs(s,{gutter:24,children:[r.jsx(o,{span:18,children:r.jsxs(s,{gutter:[24,24],children:[r.jsx(o,{span:24,children:r.jsxs(i,{title:"区域实时浏览情况",children:[r.jsx(t,{}),r.jsx("div",{style:{height:600},children:r.jsx(d,{})})]})}),r.jsx(o,{span:18,children:r.jsx(e,{})}),r.jsx(o,{span:6,children:r.jsx(p,{})})]})}),r.jsx(o,{span:6,children:r.jsxs(s,{gutter:[24,24],children:[r.jsx(o,{span:24,children:r.jsx(x,{})}),r.jsx(o,{span:24,children:r.jsx(n,{})}),r.jsx(o,{span:24,children:r.jsx(m,{})})]})})]});export{S as default}; diff --git a/web/dist/assets/index-872d0bf8.js b/web/dist/assets/index-872d0bf8.js new file mode 100644 index 0000000000000000000000000000000000000000..6ae8e3a5a59beb14e1b3c4efe69fe801a20cdbec --- /dev/null +++ b/web/dist/assets/index-872d0bf8.js @@ -0,0 +1 @@ +import{R as h,s as v,b as F,a7 as S,j as x,G as C,_ as r,O as E}from"./umi-5f6aeac9.js";var q=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],w=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],b=function(e,t){var a=e.fieldProps,s=e.children,p=e.params,l=e.proFieldProps,n=e.mode,i=e.valueEnum,u=e.request,d=e.showSearch,c=e.options,m=v(e,q),g=F.useContext(S);return x.jsx(C,r(r({valueEnum:E(i),request:u,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:r({options:c,mode:n,showSearch:d,getPopupContainer:g.getPopupContainer},a),ref:t,proFieldProps:l},m),{},{children:s}))},f=h.forwardRef(function(o,e){var t=o.fieldProps,a=o.children,s=o.params,p=o.proFieldProps,l=o.mode,n=o.valueEnum,i=o.request,u=o.options,d=v(o,w),c=r({options:u,mode:l||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},t),m=F.useContext(S);return x.jsx(C,r(r({valueEnum:E(n),request:i,params:s,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:r({getPopupContainer:m.getPopupContainer},c),ref:e,proFieldProps:p},d),{},{children:a}))}),j=h.forwardRef(b),R=f,P=j;P.SearchSelect=R;P.displayName="ProFormComponent";const L=P;export{L as P}; diff --git a/web/dist/assets/index-8a5a2994.js b/web/dist/assets/index-8a5a2994.js deleted file mode 100644 index d3243f5fd75a513812924085e65412e683622fb7..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-8a5a2994.js +++ /dev/null @@ -1 +0,0 @@ -import{R as t,k as p,j as i,a1 as P,_ as d}from"./umi-2ee4055f.js";var l=["fieldProps","proFieldProps"],x=function(r,e){var o=r.fieldProps,s=r.proFieldProps,a=p(r,l);return i.jsx(P,d({ref:e,valueType:"textarea",fieldProps:o,proFieldProps:s},a))};const m=t.forwardRef(x);export{m as P}; diff --git a/web/dist/assets/index-8a7d2378.js b/web/dist/assets/index-8a7d2378.js new file mode 100644 index 0000000000000000000000000000000000000000..1b5d041e8863ca71c53fe9a1f7fa7c007c8f4275 --- /dev/null +++ b/web/dist/assets/index-8a7d2378.js @@ -0,0 +1 @@ +import{aA as m,b as u,j as a,C as h,b1 as x}from"./umi-5f6aeac9.js";import{g as p}from"./stat-6c5b4dda.js";import{S as v}from"./index-7b6639e6.js";import"./index-13cae3f4.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-e3aca980.js";const T=()=>{const{data:o,loading:y,runAsync:f}=m(async s=>{const n=await p({flag:"added",...s}),l=await p({flag:"finished",...s}),t={};for(const i of n){const{count:r,date_str:c,date_unix:d}=i,e=i.device_type;t[e]||(t[e]={title:e,added:0,finished:0}),t[e].added+=r}for(const i of l){const{count:r,date_str:c,date_unix:d}=i,e=i.device_type;t[e]||(t[e]={title:e,added:0,finished:0}),t[e].finished+=r}return Object.values(t).map(({title:i,added:r,finished:c})=>{const d=Number(((r>0?c/r:c>0?1:0)*100).toFixed(0));return{title:i,percent:d}})},{manual:!0});return u.useEffect(()=>{f({type:"device",startTime:0,endTime:Math.ceil(Date.now()/1e3)})},[]),a.jsx(h,{theme:{components:{Card:{headerHeight:100}}},children:a.jsx("div",{className:"dashboard-dtcl",children:o&&o.map((s,n)=>a.jsx(v,{title:s.title,chartPlacement:"right",statistic:{title:"完成率",value:s.percent,suffix:"%",description:a.jsx(a.Fragment,{})},style:{width:210},chart:a.jsx(x,{type:"circle",percent:s.percent,size:80,strokeWidth:12})},n))})})};export{T as default}; diff --git a/web/dist/assets/index-8d411a4f.js b/web/dist/assets/index-8d411a4f.js deleted file mode 100644 index 5a6748fff8ccf9608bdb730085b05d9e8ee976bc..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-8d411a4f.js +++ /dev/null @@ -1 +0,0 @@ -import{aT as p,r as C,j as i,b as S,h as r,a8 as j,b3 as k,e as l,f as c,R as s}from"./umi-2ee4055f.js";import{M as y}from"./index-705e7852.js";const A=Object.keys(p).map(e=>e.replace(/(Outlined|Filled|TwoTone)$/,"")).filter((e,o,u)=>u.indexOf(e)===o),B=["StepBackward","StepForward","FastBackward","FastForward","Shrink","ArrowsAlt","Down","Up","Left","Right","CaretUp","CaretDown","CaretLeft","CaretRight","UpCircle","DownCircle","LeftCircle","RightCircle","DoubleRight","DoubleLeft","VerticalLeft","VerticalRight","VerticalAlignTop","VerticalAlignMiddle","VerticalAlignBottom","Forward","Backward","Rollback","Enter","Retweet","Swap","SwapLeft","SwapRight","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PlayCircle","UpSquare","DownSquare","LeftSquare","RightSquare","Login","Logout","MenuFold","MenuUnfold","BorderBottom","BorderHorizontal","BorderInner","BorderOuter","BorderLeft","BorderRight","BorderTop","BorderVerticle","PicCenter","PicLeft","PicRight","RadiusBottomleft","RadiusBottomright","RadiusUpleft","RadiusUpright","Fullscreen","FullscreenExit"],R=["Question","QuestionCircle","Plus","PlusCircle","Pause","PauseCircle","Minus","MinusCircle","PlusSquare","MinusSquare","Info","InfoCircle","Exclamation","ExclamationCircle","Close","CloseCircle","CloseSquare","Check","CheckCircle","CheckSquare","ClockCircle","Warning","IssuesClose","Stop"],z=["Edit","Form","Copy","Scissor","Delete","Snippets","Diff","Highlight","AlignCenter","AlignLeft","AlignRight","BgColors","Bold","Italic","Underline","Strikethrough","Redo","Undo","ZoomIn","ZoomOut","FontColors","FontSize","LineHeight","Dash","SmallDash","SortAscending","SortDescending","Drag","OrderedList","UnorderedList","RadiusSetting","ColumnWidth","ColumnHeight"],F=["AreaChart","PieChart","BarChart","DotChart","LineChart","RadarChart","HeatMap","Fall","Rise","Stock","BoxPlot","Fund","Sliders"],D=["Android","Apple","Windows","Ie","Chrome","Github","Aliwangwang","Dingding","WeiboSquare","WeiboCircle","TaobaoCircle","Html5","Weibo","Twitter","Wechat","WhatsApp","Youtube","AlipayCircle","Taobao","Dingtalk","Skype","Qq","MediumWorkmark","Gitlab","Medium","Linkedin","GooglePlus","Dropbox","Facebook","Codepen","CodeSandbox","CodeSandboxCircle","Amazon","Google","CodepenCircle","Alipay","AntDesign","AntCloud","Aliyun","Zhihu","Slack","SlackSquare","Behance","BehanceSquare","Dribbble","DribbbleSquare","Instagram","Yuque","Alibaba","Yahoo","Reddit","Sketch"],I=["icon-guanzhu","icon-hulve","icon-fuwuqi","icon-daishenhe","icon-zhongduan","icon-hexinzichan","icon-yishenhe","icon-wangluoshebei","icon-quanbuzichan","icon-gongjizhe","icon-shouhaizhe","icon-zhongwei","icon-gaowei","icon-diwei","icon-daichuzhishijianzongshu","icon-wakuang","icon-shijianzongshu","icon-shixianzhujigeshu","icon-APTshijian","icon-yichangliuliang","icon-jiangshizhuji","icon-weixieqingbao","icon-eyichengxu","icon-siyoudizhi","icon-WEBweihu","icon-zhenchagenzong","icon-wuqigoujian","icon-zaihetoudi","icon-loudongliyong","icon-anzhuangzhiru","icon-minglingyukongzhi","icon-mubiaodacheng","icon-henjiqingli"],g={direction:B,suggestion:R,editor:z,data:F,logo:D,use:I,all:A},t=p,h=e=>{let o=g[e].map(n=>n+"Filled").filter(n=>t[n]),u=g[e].map(n=>n+"Outlined").filter(n=>t[n]);return[...o,...u]};let L=k({scriptUrl:"//at.alicdn.com/t/c/font_4413039_4ep4ccllu9b.js"});const x=(e,o="icon-")=>typeof e=="string"&&e!==""&&e.startsWith(o)?i.jsx(L,{type:e,className:e}):e,q=[{key:"use",label:"自定义图标",children:i.jsx(l,{gutter:[10,10],style:{maxHeight:400,overflow:"auto"},children:g.use.map((e,o)=>i.jsx(c,{children:i.jsx(r.Button,{value:e,children:x(e)})},o))})},{key:"suggestion",label:"网站通用图标",children:i.jsx(l,{gutter:[10,10],style:{maxHeight:400,overflow:"auto"},children:h("suggestion").map((e,o)=>i.jsx(c,{children:i.jsx(r.Button,{value:e,children:s.createElement(t[e])})},o))})},{key:"direction",label:"方向性图标",children:i.jsx(l,{gutter:[10,10],style:{maxHeight:400,overflow:"auto"},children:h("direction").map((e,o)=>i.jsx(c,{children:i.jsx(r.Button,{value:e,children:s.createElement(t[e])})},o))})},{key:"editor",label:"编辑类图标",children:i.jsx(l,{gutter:[10,10],style:{maxHeight:400,overflow:"auto"},children:h("editor").map((e,o)=>i.jsx(c,{children:i.jsx(r.Button,{value:e,children:s.createElement(t[e])})},o))})},{key:"data",label:"数据类图标",children:i.jsx(l,{gutter:[10,10],style:{maxHeight:400,overflow:"auto"},children:h("data").map((e,o)=>i.jsx(c,{children:i.jsx(r.Button,{value:e,children:s.createElement(t[e])})},o))})},{key:"logo",label:"品牌和标识",children:i.jsx(l,{gutter:[10,10],style:{maxHeight:400,overflow:"auto"},children:h("logo").map((e,o)=>i.jsx(c,{children:i.jsx(r.Button,{value:e,children:s.createElement(t[e])})},o))})}],P=e=>{const{value:o,form:u,dataIndex:n}=e,[m,d]=C.useState(!1),[f,w]=C.useState(""),b=a=>t[a]?s.createElement(t[a],{onClick:()=>d(!0)}):g.use.includes(a)?i.jsx("span",{onClick:()=>d(!0),children:x(a)}):i.jsx("span",{onClick:()=>d(!0),children:"请选择"});return i.jsxs(i.Fragment,{children:[i.jsx(S,{addonAfter:b(o),value:o}),i.jsx(y,{open:m,onCancel:()=>d(!1),width:680,onOk:()=>{u.setFieldValue(n,f),d(!1)},children:i.jsx(r.Group,{optionType:"button",buttonStyle:"solid",onChange:({target:a})=>{w(a.value)},children:i.jsx(j,{defaultActiveKey:"use",items:q})})})]})};export{P as I}; diff --git a/web/dist/assets/index-8ec65540.js b/web/dist/assets/index-8ec65540.js deleted file mode 100644 index 5bcd2a158aa2184b87872fd0f35e5b33e60b04f9..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-8ec65540.js +++ /dev/null @@ -1 +0,0 @@ -import{P as r}from"./umi-2ee4055f.js";var m=r.Group;export{m as P}; diff --git a/web/dist/assets/index-8f151cc0.js b/web/dist/assets/index-8f151cc0.js new file mode 100644 index 0000000000000000000000000000000000000000..ec4dfd92d705e020c09b138be8b6b18c1e515348 --- /dev/null +++ b/web/dist/assets/index-8f151cc0.js @@ -0,0 +1 @@ +import{ax as t,j as s,Z as e,ay as i,$ as o}from"./umi-5f6aeac9.js";import{C as a}from"./index-55d2ebbc.js";import c from"./index-2c8739fc.js";import m from"./index-a8442fbc.js";import p from"./index-a87a26e8.js";import d from"./index-cd50d08e.js";import n from"./index-8a7d2378.js";import l from"./index-c883f458.js";import x from"./index-d97275d6.js";import j from"./index-e2d3468a.js";import"./index-13cae3f4.js";import"./constants-723e3af0.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./styleChecker-68f8791b.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-25e4c7e3.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./stat-6c5b4dda.js";import"./clsx-0839fdbe.js";import"./index-971c7a18.js";import"./createLoading-e07c13ae.js";import"./react-content-loader.es-3bd9b17f.js";import"./device-ff507e64.js";import"./index-7b6639e6.js";import"./index-e3aca980.js";import"./index-aed57eca.js";import"./index-e1b2522d.js";import"./index-3f6a8b58.js";import"./index-1af802d3.js";import"./index-04808238.js";const ps=()=>{const r=t();return s.jsxs(e,{gutter:[24,24],children:[s.jsx(i,{accessible:r.buttonAccess("dashboard.analysis.cards"),children:s.jsx(j,{})}),s.jsx(i,{accessible:r.buttonAccess("dashboard.analysis.feedback"),children:s.jsx(o,{span:24,children:s.jsx(l,{})})}),s.jsx(i,{accessible:r.buttonAccess("dashboard.analysis.table"),children:s.jsx(o,{span:24,children:s.jsx(m,{})})}),s.jsxs(i,{accessible:r.buttonAccess("dashboard.analysis.device"),children:[s.jsx(o,{span:12,children:s.jsx(d,{})}),s.jsx(o,{span:12,children:s.jsx(p,{})})]}),s.jsx(i,{accessible:r.buttonAccess("dashboard.analysis.deviceType")||r.buttonAccess("dashboard.analysis.line"),children:s.jsx(o,{span:24,children:s.jsx(a,{size:"small",children:s.jsxs(e,{gutter:[24,24],children:[s.jsx(i,{accessible:r.buttonAccess("dashboard.analysis.deviceType"),children:s.jsx(o,{span:24,children:s.jsx(n,{})})}),s.jsx(i,{accessible:r.buttonAccess("dashboard.analysis.line"),children:s.jsx(o,{span:24,children:s.jsx(x,{})})})]})})})}),s.jsx(i,{accessible:r.buttonAccess("dashboard.analysis.addressBook"),children:s.jsx(o,{span:24,children:s.jsx(c,{})})})]})};export{ps as default}; diff --git a/web/dist/assets/index-b8baa901.js b/web/dist/assets/index-908dcc9e.js similarity index 85% rename from web/dist/assets/index-b8baa901.js rename to web/dist/assets/index-908dcc9e.js index a0788e29e5a3a539d006b58590f7bcf87c22220f..85d8a8a8c3e83d9ad98248dc6918b9911701edf5 100644 --- a/web/dist/assets/index-b8baa901.js +++ b/web/dist/assets/index-908dcc9e.js @@ -1 +1 @@ -import{j as t}from"./umi-2ee4055f.js";import{C as a}from"./index-8a549704.js";import{P as s}from"./ProCard-cee316ff.js";import{S as e}from"./index-7b54423a.js";import"./index-275c5384.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-426be59b.js";const{Statistic:i}=e,x=()=>t.jsx(a,{children:t.jsxs(s,{split:"vertical",children:[t.jsx(e,{colSpan:6,title:"财年业绩目标",statistic:{value:82.6,suffix:"亿",description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"up"})},chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/PmKfn4qvD/mubiaowancheng-lan.svg",alt:"进度条",width:"100%"}),footer:t.jsxs(t.Fragment,{children:[t.jsx(i,{value:"70.98%",title:"财年业绩完成率",layout:"horizontal"}),t.jsx(i,{value:"86.98%",title:"去年同期业绩完成率",layout:"horizontal"}),t.jsx(i,{value:"88.98%",title:"前年同期业绩完成率",layout:"horizontal"})]})}),t.jsxs(e.Group,{colSpan:18,direction:void 0,children:[t.jsx(e,{statistic:{title:"财年总收入",value:601987768,description:t.jsx(i,{title:"日同比",value:"6.15%",trend:"up"})},chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/zevpN7Nv_/xiaozhexiantu.svg",alt:"折线图",width:"100%"}),children:t.jsx(i,{title:"大盘总收入",value:1982312,layout:"vertical",description:t.jsx(i,{title:"日同比",value:"6.15%",trend:"down"})})}),t.jsx(e,{statistic:{title:"当日排名",value:6,description:t.jsx(i,{title:"日同比",value:"3.85%",trend:"down"})},chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/zevpN7Nv_/xiaozhexiantu.svg",alt:"折线图",width:"100%"}),children:t.jsx(i,{title:"近7日收入",value:17458,layout:"vertical",description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"up"})})}),t.jsx(e,{statistic:{title:"财年业绩收入排名",value:2,description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"up"})},chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/zevpN7Nv_/xiaozhexiantu.svg",alt:"折线图",width:"100%"}),children:t.jsx(i,{title:"月付费个数",value:601,layout:"vertical",description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"down"})})})]})]})});export{x as default}; +import{j as t}from"./umi-5f6aeac9.js";import{C as a}from"./index-55d2ebbc.js";import{P as s}from"./ProCard-a8f5c5a9.js";import{S as e}from"./index-7b6639e6.js";import"./index-13cae3f4.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-e3aca980.js";const{Statistic:i}=e,x=()=>t.jsx(a,{children:t.jsxs(s,{split:"vertical",children:[t.jsx(e,{colSpan:6,title:"财年业绩目标",statistic:{value:82.6,suffix:"亿",description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"up"})},chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/PmKfn4qvD/mubiaowancheng-lan.svg",alt:"进度条",width:"100%"}),footer:t.jsxs(t.Fragment,{children:[t.jsx(i,{value:"70.98%",title:"财年业绩完成率",layout:"horizontal"}),t.jsx(i,{value:"86.98%",title:"去年同期业绩完成率",layout:"horizontal"}),t.jsx(i,{value:"88.98%",title:"前年同期业绩完成率",layout:"horizontal"})]})}),t.jsxs(e.Group,{colSpan:18,direction:void 0,children:[t.jsx(e,{statistic:{title:"财年总收入",value:601987768,description:t.jsx(i,{title:"日同比",value:"6.15%",trend:"up"})},chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/zevpN7Nv_/xiaozhexiantu.svg",alt:"折线图",width:"100%"}),children:t.jsx(i,{title:"大盘总收入",value:1982312,layout:"vertical",description:t.jsx(i,{title:"日同比",value:"6.15%",trend:"down"})})}),t.jsx(e,{statistic:{title:"当日排名",value:6,description:t.jsx(i,{title:"日同比",value:"3.85%",trend:"down"})},chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/zevpN7Nv_/xiaozhexiantu.svg",alt:"折线图",width:"100%"}),children:t.jsx(i,{title:"近7日收入",value:17458,layout:"vertical",description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"up"})})}),t.jsx(e,{statistic:{title:"财年业绩收入排名",value:2,description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"up"})},chart:t.jsx("img",{src:"https://gw.alipayobjects.com/zos/alicdn/zevpN7Nv_/xiaozhexiantu.svg",alt:"折线图",width:"100%"}),children:t.jsx(i,{title:"月付费个数",value:601,layout:"vertical",description:t.jsx(i,{title:"日同比",value:"6.47%",trend:"down"})})})]})]})});export{x as default}; diff --git a/web/dist/assets/index-914141b6.js b/web/dist/assets/index-914141b6.js new file mode 100644 index 0000000000000000000000000000000000000000..c0a539b7d875b240f87bd35468654692594b141f --- /dev/null +++ b/web/dist/assets/index-914141b6.js @@ -0,0 +1 @@ +import{Y as a,j as e,aC as i,aD as m,a1 as l}from"./umi-5f6aeac9.js";import{C as n}from"./index-55d2ebbc.js";import p from"./index-6683018b.js";import{B as d}from"./index-cc6b0338.js";import"./index-13cae3f4.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";const v=()=>{const{initialState:o}=a("@@initialState"),s=[{title:"旧密码",dataIndex:"oldPassword",valueType:"password",formItemProps:{rules:[{required:!0}]}},{title:"新密码",dataIndex:"newPassword",valueType:"password",formItemProps:{rules:[{required:!0}]}},{title:"重复密码",dataIndex:"rePassword",valueType:"password",formItemProps:{rules:[{required:!0},({getFieldValue:r})=>({validator(u,t){return!t||r("newPassword")===t?Promise.resolve():Promise.reject(new Error("重复密码不同!"))}})]}}];return e.jsx(p,{children:e.jsx(n,{title:"修改密码",extra:e.jsx(i,{to:"/user/userSetting",children:"编辑资料"}),children:e.jsx(d,{layoutType:"Form",onFinish:async r=>{console.log(r),await m(r),l.success("更新成功")},layout:"horizontal",labelCol:{span:2},wrapperCol:{span:6},initialValues:o.currentUser,columns:s})})})};export{v as default}; diff --git a/web/dist/assets/index-93348673.js b/web/dist/assets/index-93348673.js new file mode 100644 index 0000000000000000000000000000000000000000..4762a7a9335c64f3ecda257ae4b88095c8cfec1f --- /dev/null +++ b/web/dist/assets/index-93348673.js @@ -0,0 +1 @@ +import{TableEditor as A}from"./TableEditor-0d731bc8.js";import"./umi-5f6aeac9.js";import"./index-6613242c.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./styleChecker-68f8791b.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-25e4c7e3.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";export{A as TableEditor}; diff --git a/web/dist/assets/index-93a928b2.js b/web/dist/assets/index-93a928b2.js new file mode 100644 index 0000000000000000000000000000000000000000..d2d0a352faa9a7e55221d07ad67ed0e62780381c --- /dev/null +++ b/web/dist/assets/index-93a928b2.js @@ -0,0 +1 @@ +import{r as v,Y as g,b as u,j as r,d as h,aM as j,a1 as l}from"./umi-5f6aeac9.js";import{U as y}from"./index-0f57638d.js";import{e as _}from"./table-0fa6c309.js";import{B as n}from"./index-cc6b0338.js";import{P as p}from"./ProCard-a8f5c5a9.js";import"./index-04ced7f2.js";import"./index-032ff5a9.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./utils-a0a2291f.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./index-46da21dc.js";import"./index-55505f41.js";const F={updateAdmin:"/admin/admin/updateAdmin"};async function T(i){return v(F.updateAdmin,{method:"put",data:i})}const J=()=>{let{initialState:i}=g("@@initialState");const o=u.useRef();u.useEffect(()=>{var t;if(i){let{currentUser:e}=i;(t=o.current)==null||t.setFieldsValue({username:e.username,nickname:e.nickname,email:e.email,mobile:e.mobile,avatar_url:e.avatar_url,avatar_id:e.avatar_id,qualification:e.qualification,join_date:e.join_date})}},[]);const c=[{title:"用户名",dataIndex:"username",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},fieldProps:{disabled:!0},colProps:{md:7}},{title:"昵称",dataIndex:"nickname",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:7}},{title:"邮箱",dataIndex:"email",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"手机号",dataIndex:"mobile",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"资质",dataIndex:"qualification",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6}},{title:"入职日期",dataIndex:"join_date",valueType:"text",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},colProps:{md:6},renderFormItem:(t,e,a)=>{const d=a.getFieldValue("join_date"),P=d?h(d*1e3):void 0;return r.jsx("div",{children:r.jsx(j,{value:P,onChange:s=>{var m;a.setFieldValue("join_date",(m=s==null?void 0:s.unix)==null?void 0:m.call(s))}})})}},{title:"头像",dataIndex:"avatar_url",hideInSearch:!0,valueType:"avatar",hideInForm:!0},{title:"头像",dataIndex:"avatar_id",hideInSearch:!0,valueType:"avatar",hideInTable:!0,renderFormItem:(t,e,a)=>r.jsx(y,{form:a,dataIndex:"avatar_id",api:"/admin/file.upload/image?group_id=14",defaultFile:a.getFieldValue("avatar_url"),crop:!0}),colProps:{md:12}}],f=async t=>{await T(t),l.success("更新成功")},x=[{title:"密码",dataIndex:"password",valueType:"password",formItemProps:{rules:[{required:!0,message:"该项为必填"}]}},{title:"确认密码",dataIndex:"rePassword",valueType:"password",formItemProps:{rules:[{required:!0,message:"该项为必填"},({getFieldValue:t})=>({validator(e,a){return!a||t("password")===a?Promise.resolve():Promise.reject(new Error("两次输入的密码不同"))}})]}}],I=async t=>{await _("/admin/updatePassword",Object.assign({id:i.currentUser.id},t)),l.success("更新成功!")};return r.jsxs(r.Fragment,{children:[r.jsx(p,{title:"用户基本信息",headerBordered:!0,style:{marginBottom:10},children:r.jsx(n,{columns:c,layoutType:"Form",formRef:o,onFinish:f})}),r.jsx(p,{title:"密码修改",headerBordered:!0,children:r.jsx(n,{title:"修改管理员密码",layoutType:"Form",rowProps:{gutter:[16,16]},colProps:{span:24},grid:!0,onFinish:I,columns:x})})]})};export{J as default}; diff --git a/web/dist/assets/index-94e58219.js b/web/dist/assets/index-94e58219.js new file mode 100644 index 0000000000000000000000000000000000000000..1827eeb97ac53643128e8aa95c51ca252dd1aa50 --- /dev/null +++ b/web/dist/assets/index-94e58219.js @@ -0,0 +1 @@ +import{b as s,Y as d,ax as u,j as t,B as l,ay as x}from"./umi-5f6aeac9.js";import y from"./index-615ba24d.js";import{X as I}from"./index-109f15ec.js";import"./table-0fa6c309.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const f="/system.dict",h=[{title:"ID",dataIndex:"id",hideInForm:!0,sorter:!0},{title:"字典名称",dataIndex:"name",valueType:"text"},{title:"字典编码",dataIndex:"code",valueType:"text"},{title:"类型",dataIndex:"type",valueType:"select",valueEnum:{default:{text:"文字",status:"Success"},badge:{text:"徽标",status:"Success"},tag:{text:"标签",status:"Success"}},filters:!0},{title:"描述",dataIndex:"describe",valueType:"text",hideInSearch:!0},{title:"创建时间",dataIndex:"create_time",valueType:"date",hideInForm:!0},{title:"修改时间",dataIndex:"update_time",valueType:"date",hideInForm:!0}],U=()=>{const[i,e]=s.useState(!1),[o,a]=s.useState({}),{refreshDict:p}=d("dictModel"),c=u(),m=()=>e(!1);return t.jsxs(t.Fragment,{children:[t.jsx(y,{open:i,onClose:m,dictData:o}),t.jsx(I,{tableApi:f,columns:h,options:{density:!0,search:!0,fullScreen:!0,setting:!0},optionsRender:(r,n)=>[t.jsx(l,{type:"primary",onClick:()=>{p()},children:"刷新字典缓存"},"ref"),...n],operateRender:r=>t.jsx(x,{accessible:c.buttonAccess("system.dict.item.list"),children:t.jsx("a",{onClick:()=>{a(r),e(!0)},children:"字典配置"})}),accessName:"system.dict"})]})};export{U as default}; diff --git a/web/dist/assets/index-c4f19093.js b/web/dist/assets/index-971c7a18.js similarity index 88% rename from web/dist/assets/index-c4f19093.js rename to web/dist/assets/index-971c7a18.js index 622070cc01137eea23980899a38aea54df518a95..80d232b58ab4bbb2ed335c0dcd126c3592992b56 100644 --- a/web/dist/assets/index-c4f19093.js +++ b/web/dist/assets/index-971c7a18.js @@ -1 +1 @@ -import{r as o,R as c}from"./umi-2ee4055f.js";import{u as d,b as y,g as b,E as v,C as T}from"./createLoading-2160f924.js";var C=globalThis&&globalThis.__rest||function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{const{getDictionaryData:o}=T("dictModel"),[u,m]=v(),c=({type:e})=>{const t={title:"父节点",dataIndex:"pid",valueType:"treeSelect",request:async()=>(await q()).data.data,fieldProps:{fieldNames:{label:"name",value:"id"}},params:{ref:u},formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},colProps:{span:7}},r={title:"权限标识",dataIndex:"key",valueType:"text",tooltip:'例: 路由地址 "/index/index" , 权限标识为 "index.index" , 按钮权限请加上上级路由的权限标识,如:查询按钮权限 "index.index.list" ',formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}},i={title:"路由地址",dataIndex:"path",valueType:"text",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},tooltip:"项目文件系统路径,忽略:pages 或 pages/backend 或 pages/frontend 或 index.(ts|tsx)"},y={title:"图标",dataIndex:"icon",valueType:"text",renderFormItem:(d,f,g)=>a.jsx(b,{dataIndex:d.key,form:g,value:f.value}),colProps:{span:6}},s={title:"多语言标识",dataIndex:"locale",valueType:"text",colProps:{span:6}};return e==="0"?[i,r,y,s]:e==="1"?[t,i,r,s]:e==="2"?[t,r]:[]},x=F,h=e=>typeof e=="string"&&e?e.startsWith("icon-")?a.jsx(w,{type:e,className:e}):P.createElement(x[e]):"-",n=(e,t,r)=>{console.log(e);let i={id:r};i[t]=e?1:0,R(p+"/edit",i).then(()=>{k.success("修改成功")})},I=[{title:"类型",dataIndex:"type",valueType:"radio",request:async()=>await o("ruleType"),hideInTable:!0,initialValue:"0",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},colProps:{span:10}},{title:"标题",dataIndex:"name",valueType:"text",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},width:200,colProps:{span:7},tooltip:"菜单的标题,可当作菜单栏标题,如果有多语言标识,该项会被覆盖!"},{title:"图标",dataIndex:"icon",valueType:"text",renderText:(e,t)=>t.type==="0"?h(e):"-",width:60,align:"center",hideInForm:!0},{valueType:"dependency",name:["type"],hideInTable:!0,columns:c},{title:"类型",dataIndex:"type",valueType:"radioButton",request:async()=>await o("ruleType"),render:(e,t)=>a.jsx(C,{value:t.type,dict:"ruleType"}),hideInForm:!0,align:"center",width:120},{title:"排序",dataIndex:"sort",valueType:"text",tooltip:"数字越大排序越靠前",align:"center",width:100,colProps:{span:4}},{title:"权限标识",dataIndex:"key",valueType:"text",hideInForm:!0,tooltip:'例: 路由地址 "/index/index" , 权限标识为 "index.index" , 按钮权限请加上上级路由的权限标识,如:查询按钮权限 "index.index.list" ',width:240},{title:"路由地址",dataIndex:"path",valueType:"text",hideInForm:!0,renderText:(e,t)=>t.type!=="2"?e:"-",tooltip:"项目文件系统路径,忽略:pages 或 pages/backend 或 pages/frontend 或 index.(ts|tsx)",width:200},{title:"显示状态",dataIndex:"show",valueType:"switch",tooltip:"菜单栏显示状态,控制菜单是否显示再导航中(菜单规则依然生效)",align:"center",width:120,render:(e,t)=>t.type==="2"?"-":a.jsx(l,{checkedChildren:"显示",unCheckedChildren:"隐藏",defaultValue:t.show===1,onChange:r=>n(r,"show",t.id)}),colProps:{span:4},hideInForm:!0},{title:"是否禁用",dataIndex:"status",valueType:"switch",tooltip:"权限是否禁用(将不会参与权限验证)",align:"center",width:120,render:(e,t)=>a.jsx(l,{checkedChildren:"启用",unCheckedChildren:"禁用",defaultChecked:t.status===1,onChange:r=>n(r,"status",t.id)}),colProps:{span:4},hideInForm:!0},{title:"创建时间",dataIndex:"create_time",valueType:"dateTime",hideInForm:!0,align:"center"},{title:"修改时间",dataIndex:"update_time",valueType:"dateTime",hideInForm:!0,align:"center"}];return a.jsx(j,{tableApi:p,columns:I,search:!1,pagination:!1,addBefore:()=>m.toggle(),accessName:"user.rule",scroll:{x:1580}})};export{le as default}; diff --git a/web/dist/assets/index-83b40218.js b/web/dist/assets/index-97cf10a3.js similarity index 73% rename from web/dist/assets/index-83b40218.js rename to web/dist/assets/index-97cf10a3.js index 53067e062870c9d31886858122604c05c314f9d2..056562de61aaa9af5282a1c990c7ed9e0cc212ad 100644 --- a/web/dist/assets/index-83b40218.js +++ b/web/dist/assets/index-97cf10a3.js @@ -1 +1 @@ -import{O as i,r as l,j as e}from"./umi-2ee4055f.js";import{C as o}from"./index-8a549704.js";import{I as a}from"./index-8d411a4f.js";import"./index-275c5384.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";const u=()=>{const[t]=i.useForm(),n=l.useState({icon:""});return e.jsx(o,{title:"图标选择",children:e.jsxs(i,{form:t,initialValues:n,children:[e.jsx(i.Item,{label:"图标选择",name:"icon",style:{width:300},children:e.jsx(a,{form:t,dataIndex:"icon",value:t.getFieldValue("icon")})}),e.jsx(i.Item,{label:"图标选择2",name:"icon2",style:{width:300},children:e.jsx(a,{form:t,dataIndex:"icon2",value:t.getFieldValue("icon2")})}),e.jsx(i.Item,{label:"图标选择3",name:"icon3",style:{width:300},children:e.jsx(a,{form:t,dataIndex:"icon3",value:t.getFieldValue("icon3")})}),e.jsx(i.Item,{label:"图标选择4",name:"icon4",style:{width:300},children:e.jsx(a,{form:t,dataIndex:"icon4",value:t.getFieldValue("icon4")})})]})})};export{u as default}; +import{H as i,b as l,j as e}from"./umi-5f6aeac9.js";import{C as o}from"./index-55d2ebbc.js";import{I as a}from"./index-ee353394.js";import"./index-13cae3f4.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";const u=()=>{const[t]=i.useForm(),n=l.useState({icon:""});return e.jsx(o,{title:"图标选择",children:e.jsxs(i,{form:t,initialValues:n,children:[e.jsx(i.Item,{label:"图标选择",name:"icon",style:{width:300},children:e.jsx(a,{form:t,dataIndex:"icon",value:t.getFieldValue("icon")})}),e.jsx(i.Item,{label:"图标选择2",name:"icon2",style:{width:300},children:e.jsx(a,{form:t,dataIndex:"icon2",value:t.getFieldValue("icon2")})}),e.jsx(i.Item,{label:"图标选择3",name:"icon3",style:{width:300},children:e.jsx(a,{form:t,dataIndex:"icon3",value:t.getFieldValue("icon3")})}),e.jsx(i.Item,{label:"图标选择4",name:"icon4",style:{width:300},children:e.jsx(a,{form:t,dataIndex:"icon4",value:t.getFieldValue("icon4")})})]})})};export{u as default}; diff --git a/web/dist/assets/index-98c3b3d6.js b/web/dist/assets/index-98c3b3d6.js new file mode 100644 index 0000000000000000000000000000000000000000..04ccbfdba9c25a79c2eb976ee4f8cb8d2b102131 --- /dev/null +++ b/web/dist/assets/index-98c3b3d6.js @@ -0,0 +1,2 @@ +import{b2 as pe,_ as s,k as X,s as Y,j as N,H as re,J as H,b as j,w as W,C as Se,bK as Re,A as Ce,aU as Ee,bL as ae,O as Ke,K as Te,bM as Ie,x as te,bN as Me,L as z,V as xe,E as U,F,v as Pe,a1 as ue,bO as de,bk as oe,bP as Ne,bQ as Fe,M as ee,bR as Le}from"./umi-5f6aeac9.js";import{T as $e}from"./index-25e4c7e3.js";import{P as Ae}from"./index-3fcbb702.js";import{u as ke}from"./useLazyKVMap-f8dc5f3f.js";var je=function(r){var a="".concat(r.antCls,"-progress-bg");return X({},r.componentCls,{"&-multiple":{paddingBlockStart:6,paddingBlockEnd:12,paddingInline:8},"&-progress":{"&-success":X({},a,{backgroundColor:r.colorSuccess}),"&-error":X({},a,{backgroundColor:r.colorError}),"&-warning":X({},a,{backgroundColor:r.colorWarning})},"&-rule":{display:"flex",alignItems:"center","&-icon":{"&-default":{display:"flex",alignItems:"center",justifyContent:"center",width:"14px",height:"22px","&-circle":{width:"6px",height:"6px",backgroundColor:r.colorTextSecondary,borderRadius:"4px"}},"&-loading":{color:r.colorPrimary},"&-error":{color:r.colorError},"&-success":{color:r.colorSuccess}},"&-text":{color:r.colorText}}})};function Oe(e){return pe("InlineErrorFormItem",function(r){var a=s(s({},r),{},{componentCls:".".concat(e)});return[je(a)]})}var _e=["rules","name","children","popoverProps"],De=["errorType","rules","name","popoverProps","children"],se={marginBlockStart:-5,marginBlockEnd:-5,marginInlineStart:0,marginInlineEnd:0},Ve=function(r){var a=r.inputProps,f=r.input,E=r.extra,C=r.errorList,d=r.popoverProps,I=j.useState(!1),T=W(I,2),g=T[0],b=T[1],P=j.useState([]),$=W(P,2),A=$[0],K=$[1],M=j.useContext(Se.ConfigContext),w=M.getPrefixCls,o=w(),m=Re(),u=Oe("".concat(o,"-form-item-with-help")),y=u.wrapSSR,_=u.hashId;j.useEffect(function(){a.validateStatus!=="validating"&&K(a.errors)},[a.errors,a.validateStatus]);var D=Ce(A.length<1?!1:g,function(L){L!==g&&b(L)}),B=a.validateStatus==="validating";return N.jsx(Ee,s(s(s({trigger:(d==null?void 0:d.trigger)||["click"],placement:(d==null?void 0:d.placement)||"topLeft"},D),{},{getPopupContainer:d==null?void 0:d.getPopupContainer,getTooltipContainer:d==null?void 0:d.getTooltipContainer,content:y(N.jsx("div",{className:"".concat(o,"-form-item ").concat(_," ").concat(m.hashId).trim(),style:{margin:0,padding:0},children:N.jsxs("div",{className:"".concat(o,"-form-item-with-help ").concat(_," ").concat(m.hashId).trim(),children:[B?N.jsx(ae,{}):null,C]})}))},d),{},{children:N.jsxs(N.Fragment,{children:[f,E]})}),"popover")},Be=function(r){var a=r.rules,f=r.name,E=r.children,C=r.popoverProps,d=Y(r,_e);return N.jsx(re.Item,s(s({name:f,rules:a,hasFeedback:!1,shouldUpdate:function(T,g){if(T===g)return!1;var b=[f].flat(1);b.length>1&&b.pop();try{return JSON.stringify(H(T,b))!==JSON.stringify(H(g,b))}catch{return!0}},_internalItemRender:{mark:"pro_table_render",render:function(T,g){return N.jsx(Ve,s({inputProps:T,popoverProps:C},g))}}},d),{},{style:s(s({},se),d==null?void 0:d.style),children:E}))},ar=function(r){var a=r.errorType,f=r.rules,E=r.name,C=r.popoverProps,d=r.children,I=Y(r,De);return E&&f!==null&&f!==void 0&&f.length&&a==="popover"?N.jsx(Be,s(s({name:E,rules:f,popoverProps:C},I),{},{children:d})):N.jsx(re.Item,s(s({rules:f,shouldUpdate:E?function(T,g){if(T===g)return!1;var b=[E].flat(1);b.length>1&&b.pop();try{return JSON.stringify(H(T,b))!==JSON.stringify(H(g,b))}catch{return!0}}:void 0},I),{},{style:s(s({},se),I.style),name:E,children:d}))},ze=function(r){var a;return!!(r!=null&&(a=r.valueType)!==null&&a!==void 0&&a.toString().startsWith("date")||(r==null?void 0:r.valueType)==="select"||r!=null&&r.valueEnum)},Je=function(r){var a;return((a=r.ellipsis)===null||a===void 0?void 0:a.showTitle)===!1?!1:r.ellipsis},tr=function(r,a,f){if(a.copyable||a.ellipsis){var E=a.copyable&&f?{text:f,tooltips:["",""]}:void 0,C=ze(a),d=Je(a)&&f?{tooltip:(a==null?void 0:a.tooltip)!==!1&&C?N.jsx("div",{className:"pro-table-tooltip-text",children:r}):f}:!1;return N.jsx($e.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:E,ellipsis:d,children:r})}return r},lr=function(r,a,f){return a===void 0?r:Ke(r,a,f)},Ue=["map_row_parentKey"],Ge=["map_row_parentKey","map_row_key"],We=["map_row_key"],ne=function(r){return(ue.warn||ue.warning)(r)},V=function(r){return Array.isArray(r)?r.join(","):r};function Z(e,r){var a,f=e.getRowKey,E=e.row,C=e.data,d=e.childrenColumnName,I=d===void 0?"children":d,T=(a=V(e.key))===null||a===void 0?void 0:a.toString(),g=new Map;function b($,A,K){$.forEach(function(M,w){var o=(K||0)*10+w,m=f(M,o).toString();M&&Ne(M)==="object"&&I in M&&b(M[I]||[],m,o);var u=s(s({},M),{},{map_row_key:m,children:void 0,map_row_parentKey:A});delete u.children,A||delete u.map_row_parentKey,g.set(m,u)})}r==="top"&&g.set(T,s(s({},g.get(T)),E)),b(C),r==="update"&&g.set(T,s(s({},g.get(T)),E)),r==="delete"&&g.delete(T);var P=function(A){var K=new Map,M=[],w=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;A.forEach(function(u){if(u.map_row_parentKey&&!u.map_row_key){var y=u.map_row_parentKey,_=Y(u,Ue);if(K.has(y)||K.set(y,[]),m){var D;(D=K.get(y))===null||D===void 0||D.push(_)}}})};return w(r==="top"),A.forEach(function(o){if(o.map_row_parentKey&&o.map_row_key){var m,u=o.map_row_parentKey,y=o.map_row_key,_=Y(o,Ge);K.has(y)&&(_[I]=K.get(y)),K.has(u)||K.set(u,[]),(m=K.get(u))===null||m===void 0||m.push(_)}}),w(r==="update"),A.forEach(function(o){if(!o.map_row_parentKey){var m=o.map_row_key,u=Y(o,We);if(m&&K.has(m)){var y=s(s({},u),{},X({},I,K.get(m)));M.push(y);return}M.push(u)}}),M};return P(g)}function He(e,r){var a=e.recordKey,f=e.onSave,E=e.row,C=e.children,d=e.newLineConfig,I=e.editorType,T=e.tableName,g=j.useContext(de),b=re.useFormInstance(),P=te(!1),$=W(P,2),A=$[0],K=$[1],M=z(U(F().mark(function w(){var o,m,u,y,_,D,B,L,q;return F().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.prev=0,m=I==="Map",u=[T,Array.isArray(a)?a[0]:a].map(function(Q){return Q==null?void 0:Q.toString()}).flat(1).filter(Boolean),K(!0),O.next=6,b.validateFields(u,{recursive:!0});case 6:return y=(g==null||(o=g.getFieldFormatValue)===null||o===void 0?void 0:o.call(g,u))||b.getFieldValue(u),Array.isArray(a)&&a.length>1&&(_=Fe(a),D=_.slice(1),B=H(y,D),ee(y,D,B)),L=m?ee({},u,y):y,O.next=11,f==null?void 0:f(a,Le({},E,L),E,d);case 11:return q=O.sent,K(!1),O.abrupt("return",q);case 16:throw O.prev=16,O.t0=O.catch(0),console.log(O.t0),K(!1),O.t0;case 21:case"end":return O.stop()}},w,null,[[0,16]])})));return j.useImperativeHandle(r,function(){return{save:M}},[M]),N.jsxs("a",{onClick:function(){var w=U(F().mark(function o(m){return F().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return m.stopPropagation(),m.preventDefault(),y.prev=2,y.next=5,M();case 5:y.next=9;break;case 7:y.prev=7,y.t0=y.catch(2);case 9:case"end":return y.stop()}},o,null,[[2,7]])}));return function(o){return w.apply(this,arguments)}}(),children:[A?N.jsx(ae,{style:{marginInlineEnd:8}}):null,C||"保存"]},"save")}var Qe=function(r){var a=r.recordKey,f=r.onDelete,E=r.preEditRowRef,C=r.row,d=r.children,I=r.deletePopconfirmMessage,T=te(function(){return!1}),g=W(T,2),b=g[0],P=g[1],$=z(U(F().mark(function A(){var K;return F().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.prev=0,P(!0),w.next=4,f==null?void 0:f(a,C);case 4:return K=w.sent,P(!1),w.abrupt("return",K);case 9:return w.prev=9,w.t0=w.catch(0),console.log(w.t0),P(!1),w.abrupt("return",null);case 14:return w.prev=14,E&&(E.current=null),w.finish(14);case 17:case"end":return w.stop()}},A,null,[[0,9,14,17]])})));return d!==!1?N.jsx(Ae,{title:I,onConfirm:function(){return $()},children:N.jsxs("a",{children:[b?N.jsx(ae,{style:{marginInlineEnd:8}}):null,d||"删除"]})},"delete"):null},Xe=function(r){var a=r.recordKey,f=r.tableName,E=r.newLineConfig,C=r.editorType,d=r.onCancel,I=r.cancelEditable,T=r.row,g=r.cancelText,b=r.preEditRowRef,P=j.useContext(de),$=re.useFormInstance();return N.jsx("a",{onClick:function(){var A=U(F().mark(function K(M){var w,o,m,u,y,_,D;return F().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return M.stopPropagation(),M.preventDefault(),o=C==="Map",m=[f,a].flat(1).filter(Boolean),u=(P==null||(w=P.getFieldFormatValue)===null||w===void 0?void 0:w.call(P,m))||($==null?void 0:$.getFieldValue(m)),y=o?ee({},m,u):u,L.next=8,d==null?void 0:d(a,y,T,E);case 8:return _=L.sent,L.next=11,I(a);case 11:if((b==null?void 0:b.current)===null){L.next=15;break}$.setFieldsValue(ee({},m,b==null?void 0:b.current)),L.next=17;break;case 15:return L.next=17,(D=r.onDelete)===null||D===void 0?void 0:D.call(r,a,T);case 17:return b&&(b.current=null),L.abrupt("return",_);case 19:case"end":return L.stop()}},K)}));return function(K){return A.apply(this,arguments)}}(),children:g||"取消"},"cancel")};function Ye(e,r){var a=r.recordKey,f=r.newLineConfig,E=r.saveText,C=r.deleteText,d=j.forwardRef(He),I=j.createRef();return{save:N.jsx(d,s(s({},r),{},{row:e,ref:I,children:E}),"save"+a),saveRef:I,delete:(f==null?void 0:f.options.recordKey)!==a?N.jsx(Qe,s(s({},r),{},{row:e,children:C}),"delete"+a):void 0,cancel:N.jsx(Xe,s(s({},r),{},{row:e}),"cancel"+a)}}function ir(e){var r=Te(),a=j.useRef(null),f=j.useState(void 0),E=W(f,2),C=E[0],d=E[1],I=function(){var n=new Map,t=function i(l,S){l==null||l.forEach(function(R,h){var p,c=S==null?h.toString():S+"_"+h.toString();n.set(c,V(e.getRowKey(R,-1))),n.set((p=V(e.getRowKey(R,-1)))===null||p===void 0?void 0:p.toString(),c),e.childrenColumnName&&R!==null&&R!==void 0&&R[e.childrenColumnName]&&i(R[e.childrenColumnName],c)})};return t(e.dataSource),n},T=j.useMemo(function(){return I()},[]),g=j.useRef(T),b=j.useRef(void 0);Ie(function(){g.current=I()},[e.dataSource]),b.current=C;var P=e.type||"single",$=ke(e.dataSource,"children",e.getRowKey),A=W($,1),K=A[0],M=te([],{value:e.editableKeys,onChange:e.onChange?function(v){var n,t,i;e==null||(n=e.onChange)===null||n===void 0||n.call(e,(t=v==null?void 0:v.filter(function(l){return l!==void 0}))!==null&&t!==void 0?t:[],(i=v==null?void 0:v.map(function(l){return K(l)}).filter(function(l){return l!==void 0}))!==null&&i!==void 0?i:[])}:void 0}),w=W(M,2),o=w[0],m=w[1],u=j.useMemo(function(){var v=P==="single"?o==null?void 0:o.slice(0,1):o;return new Set(v)},[(o||[]).join(","),P]),y=Me(o),_=z(function(v){var n,t,i,l,S=(n=e.getRowKey(v,v.index))===null||n===void 0||(t=n.toString)===null||t===void 0?void 0:t.call(n),R=(i=e.getRowKey(v,-1))===null||i===void 0||(l=i.toString)===null||l===void 0?void 0:l.call(i),h=o==null?void 0:o.map(function(k){return k==null?void 0:k.toString()}),p=(y==null?void 0:y.map(function(k){return k==null?void 0:k.toString()}))||[],c=e.tableName&&!!(p!=null&&p.includes(R))||!!(p!=null&&p.includes(S));return{recordKey:R,isEditable:e.tableName&&(h==null?void 0:h.includes(R))||(h==null?void 0:h.includes(S)),preIsEditable:c}}),D=z(function(v,n){var t,i;return u.size>0&&P==="single"&&e.onlyOneLineEditorAlertMessage!==!1?(ne(e.onlyOneLineEditorAlertMessage||r.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1):(u.add(v),m(Array.from(u)),a.current=(t=n??((i=e.dataSource)===null||i===void 0?void 0:i.find(function(l,S){return e.getRowKey(l,S)===v})))!==null&&t!==void 0?t:null,!0)}),B=z(function(){var v=U(F().mark(function n(t,i){var l,S;return F().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(l=V(t).toString(),S=g.current.get(l),!(!u.has(l)&&S&&(i??!0)&&e.tableName)){h.next=5;break}return B(S,!1),h.abrupt("return");case 5:return C&&C.options.recordKey===t&&d(void 0),u.delete(l),u.delete(V(t)),m(Array.from(u)),h.abrupt("return",!0);case 10:case"end":return h.stop()}},n)}));return function(n,t){return v.apply(this,arguments)}}()),L=xe(U(F().mark(function v(){var n,t,i,l,S=arguments;return F().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:for(t=S.length,i=new Array(t),l=0;l0&&P==="single"&&e.onlyOneLineEditorAlertMessage!==!1)return ne(e.onlyOneLineEditorAlertMessage||r.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1;var t=e.getRowKey(v,-1);if(!t&&t!==0)throw Pe(!!t,`请设置 recordCreatorProps.record 并返回一个唯一的key + https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("请设置 recordCreatorProps.record 并返回一个唯一的key");if(u.add(t),m(Array.from(u)),(n==null?void 0:n.newRecordType)==="dataSource"||e.tableName){var i,l={data:e.dataSource,getRowKey:e.getRowKey,row:s(s({},v),{},{map_row_parentKey:n!=null&&n.parentKey?(i=V(n==null?void 0:n.parentKey))===null||i===void 0?void 0:i.toString():void 0}),key:t,childrenColumnName:e.childrenColumnName||"children"};e.setDataSource(Z(l,(n==null?void 0:n.position)==="top"?"top":"update"))}else d({defaultValue:v,options:s(s({},n),{},{recordKey:t})});return!0}),ce=(e==null?void 0:e.saveText)||r.getMessage("editableTable.action.save","保存"),ve=(e==null?void 0:e.deleteText)||r.getMessage("editableTable.action.delete","删除"),fe=(e==null?void 0:e.cancelText)||r.getMessage("editableTable.action.cancel","取消"),ge=z(function(){var v=U(F().mark(function n(t,i,l,S){var R,h,p,c,k,x,ie;return F().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,e==null||(R=e.onSave)===null||R===void 0?void 0:R.call(e,t,i,l,S);case 2:return c=J.sent,J.next=5,B(t);case 5:if(k=S||b.current||{},x=k.options,!(!(x!=null&&x.parentKey)&&(x==null?void 0:x.recordKey)===t)){J.next=9;break}return(x==null?void 0:x.position)==="top"?e.setDataSource([i].concat(oe(e.dataSource))):e.setDataSource([].concat(oe(e.dataSource),[i])),J.abrupt("return",c);case 9:return ie={data:e.dataSource,getRowKey:e.getRowKey,row:x?s(s({},i),{},{map_row_parentKey:(h=V((p=x==null?void 0:x.parentKey)!==null&&p!==void 0?p:""))===null||h===void 0?void 0:h.toString()}):i,key:t,childrenColumnName:e.childrenColumnName||"children"},e.setDataSource(Z(ie,(x==null?void 0:x.position)==="top"?"top":"update")),J.next=13,B(t);case 13:return J.abrupt("return",c);case 14:case"end":return J.stop()}},n)}));return function(n,t,i,l){return v.apply(this,arguments)}}()),me=z(function(){var v=U(F().mark(function n(t,i){var l,S,R;return F().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return S={data:e.dataSource,getRowKey:e.getRowKey,row:i,key:t,childrenColumnName:e.childrenColumnName||"children"},p.next=3,e==null||(l=e.onDelete)===null||l===void 0?void 0:l.call(e,t,i);case 3:return R=p.sent,p.next=6,B(t,!1);case 6:return e.setDataSource(Z(S,"delete")),p.abrupt("return",R);case 8:case"end":return p.stop()}},n)}));return function(n,t){return v.apply(this,arguments)}}()),ye=z(function(){var v=U(F().mark(function n(t,i,l,S){var R,h;return F().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,e==null||(R=e.onCancel)===null||R===void 0?void 0:R.call(e,t,i,l,S);case 2:return h=c.sent,c.abrupt("return",h);case 4:case"end":return c.stop()}},n)}));return function(n,t,i,l){return v.apply(this,arguments)}}()),le=e.actionRender&&typeof e.actionRender=="function",he=le?e.actionRender:function(){},be=z(he),we=function(n){var t=e.getRowKey(n,n.index),i={saveText:ce,cancelText:fe,deleteText:ve,addEditRecord:Q,recordKey:t,cancelEditable:B,index:n.index,tableName:e.tableName,newLineConfig:C,onCancel:ye,onDelete:me,onSave:ge,editableKeys:o,setEditableRowKeys:m,preEditRowRef:a,deletePopconfirmMessage:e.deletePopconfirmMessage||"".concat(r.getMessage("deleteThisLine","删除此项"),"?")},l=Ye(n,i);return e.tableName?G.current.set(g.current.get(V(t))||V(t),l.saveRef):G.current.set(V(t),l.saveRef),le?be(n,i,{save:l.save,delete:l.delete,cancel:l.cancel}):[l.save,l.delete,l.cancel]};return{editableKeys:o,setEditableRowKeys:m,isEditable:_,actionRender:we,startEditable:D,cancelEditable:B,addEditRecord:Q,saveEditable:O,newLineRecord:C,preEditableKeys:y,onValuesChange:q,getRealIndex:e.getRealIndex}}export{ar as I,lr as a,Ye as d,Z as e,tr as g,V as r,ir as u}; diff --git a/web/dist/assets/index-98ecdc4c.js b/web/dist/assets/index-98ecdc4c.js new file mode 100644 index 0000000000000000000000000000000000000000..321e296fc796a95be5572d11b0859a09f703c26a --- /dev/null +++ b/web/dist/assets/index-98ecdc4c.js @@ -0,0 +1 @@ +import{R as P,s as d,b as n,a7 as l,j as u,G as f,_ as r}from"./umi-5f6aeac9.js";var C=["proFieldProps","fieldProps"],c="date",g=P.forwardRef(function(e,o){var t=e.proFieldProps,p=e.fieldProps,a=d(e,C),i=n.useContext(l);return u.jsx(f,r({ref:o,valueType:c,fieldProps:r({getPopupContainer:i.getPopupContainer},p),proFieldProps:t,filedConfig:{valueType:c,customLightMode:!0}},a))});const y=g;var k=["proFieldProps","fieldProps"],v="dateMonth",T=P.forwardRef(function(e,o){var t=e.proFieldProps,p=e.fieldProps,a=d(e,k),i=n.useContext(l);return u.jsx(f,r({ref:o,valueType:v,fieldProps:r({getPopupContainer:i.getPopupContainer},p),proFieldProps:t,filedConfig:{valueType:v,customLightMode:!0}},a))});const $=T;var D=["fieldProps"],F="dateQuarter",h=P.forwardRef(function(e,o){var t=e.fieldProps,p=d(e,D),a=n.useContext(l);return u.jsx(f,r({ref:o,valueType:F,fieldProps:r({getPopupContainer:a.getPopupContainer},t),filedConfig:{valueType:F,customLightMode:!0}},p))});const j=h;var M=["proFieldProps","fieldProps"],x="dateWeek",R=P.forwardRef(function(e,o){var t=e.proFieldProps,p=e.fieldProps,a=d(e,M),i=n.useContext(l);return u.jsx(f,r({ref:o,valueType:x,fieldProps:r({getPopupContainer:i.getPopupContainer},p),proFieldProps:t,filedConfig:{valueType:x,customLightMode:!0}},a))});const w=R;var L=["proFieldProps","fieldProps"],m="dateYear",W=P.forwardRef(function(e,o){var t=e.proFieldProps,p=e.fieldProps,a=d(e,L),i=n.useContext(l);return u.jsx(f,r({ref:o,valueType:m,fieldProps:r({getPopupContainer:i.getPopupContainer},p),proFieldProps:t,filedConfig:{valueType:m,customLightMode:!0}},a))});const Q=W;var s=y;s.Week=w;s.Month=$;s.Quarter=j;s.Year=Q;s.displayName="ProFormComponent";const b=s;export{b as P}; diff --git a/web/dist/assets/index-9900fa87.js b/web/dist/assets/index-9900fa87.js deleted file mode 100644 index 98f184bde3510ec99f707db98c38fc9d7121575c..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-9900fa87.js +++ /dev/null @@ -1 +0,0 @@ -import{R as P,k as d,r as n,a0 as l,j as u,a1 as f,_ as r}from"./umi-2ee4055f.js";var C=["proFieldProps","fieldProps"],c="date",g=P.forwardRef(function(e,o){var t=e.proFieldProps,p=e.fieldProps,a=d(e,C),i=n.useContext(l);return u.jsx(f,r({ref:o,valueType:c,fieldProps:r({getPopupContainer:i.getPopupContainer},p),proFieldProps:t,filedConfig:{valueType:c,customLightMode:!0}},a))});const k=g;var y=["proFieldProps","fieldProps"],v="dateMonth",T=P.forwardRef(function(e,o){var t=e.proFieldProps,p=e.fieldProps,a=d(e,y),i=n.useContext(l);return u.jsx(f,r({ref:o,valueType:v,fieldProps:r({getPopupContainer:i.getPopupContainer},p),proFieldProps:t,filedConfig:{valueType:v,customLightMode:!0}},a))});const $=T;var D=["fieldProps"],F="dateQuarter",h=P.forwardRef(function(e,o){var t=e.fieldProps,p=d(e,D),a=n.useContext(l);return u.jsx(f,r({ref:o,valueType:F,fieldProps:r({getPopupContainer:a.getPopupContainer},t),filedConfig:{valueType:F,customLightMode:!0}},p))});const j=h;var M=["proFieldProps","fieldProps"],x="dateWeek",R=P.forwardRef(function(e,o){var t=e.proFieldProps,p=e.fieldProps,a=d(e,M),i=n.useContext(l);return u.jsx(f,r({ref:o,valueType:x,fieldProps:r({getPopupContainer:i.getPopupContainer},p),proFieldProps:t,filedConfig:{valueType:x,customLightMode:!0}},a))});const w=R;var L=["proFieldProps","fieldProps"],m="dateYear",W=P.forwardRef(function(e,o){var t=e.proFieldProps,p=e.fieldProps,a=d(e,L),i=n.useContext(l);return u.jsx(f,r({ref:o,valueType:m,fieldProps:r({getPopupContainer:i.getPopupContainer},p),proFieldProps:t,filedConfig:{valueType:m,customLightMode:!0}},a))});const Q=W;var s=k;s.Week=w;s.Month=$;s.Quarter=j;s.Year=Q;s.displayName="ProFormComponent";const E=s;export{E as P}; diff --git a/web/dist/assets/index-9aa99a02.js b/web/dist/assets/index-9aa99a02.js deleted file mode 100644 index 515d7344c4be49c73458650d317a3bac93a227d4..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-9aa99a02.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,e as i,f as t,S as n}from"./umi-2ee4055f.js";import{C as s}from"./index-8a549704.js";import{D as l}from"./index-bd1f6aa3.js";import"./index-275c5384.js";const r=[{key:"1",label:"系统",children:"法兰完整性管理软件"},{key:"2",label:"版本号",children:"v1.0.3"},{key:"3",label:"最后更新时间",children:"2025-02-30"}],a=[{key:"4",label:"JS框架",children:"@umijs/max: ^4.1.10"},{key:"6",label:"antd",children:"antd: ^5.16.0"},{key:"1",label:"Charts 图表",children:"@ant-design/charts: ^1.4.3"},{key:"2",label:"Icon 图标",children:"@ant-design/icons: ^5.2.6"},{key:"3",label:"组件",children:"@ant-design/pro-components: ^2.7.0"},{key:"5",label:"Hooks",children:"ahooks: ^3.7.11"},{key:"8",label:"图片剪裁",children:"antd-img-crop: ^4.21.0"},{key:"7",label:"日期库",children:"dayjs: ^1.11.10"},{key:"9",label:"数据模拟",children:"mockjs: ^1.1.0"}],c=[{key:"1",label:"types/mockjs",children:"@types/mockjs: ^1.0.7"},{key:"2",label:"types/react",children:"@types/react: ^18.2.21"},{key:"3",label:"types/react-dom",children:"@types/react-dom: ^18.2.7"},{key:"4",label:"typescript",children:"typescript: ^5.1.6"}],o=[{key:"1",label:"php",children:"php: >=8.1.0"},{key:"2",label:"topthink/framework",children:"topthink/framework: ^8.0"},{key:"3",label:"topthink/think-orm",children:"topthink/think-orm: ^3.0"},{key:"4",label:"topthink/think-filesystem",children:"topthink/think-filesystem: ^2.0"},{key:"5",label:"topthink/think-multi-app",children:"topthink/think-multi-app: ^1.0"},{key:"6",label:"topthink/think-view",children:"topthink/think-view: ^2.0"}],m=()=>e.jsxs(s,{title:"系统信息",children:[e.jsx(l,{items:r,column:3}),e.jsxs(i,{gutter:[16,16],children:[e.jsx(t,{span:"12",children:e.jsxs(n,{direction:"vertical",size:"middle",style:{display:"flex"},children:[e.jsx(l,{title:"前端生产依赖",column:1,size:"small",bordered:!0,items:a}),e.jsx(l,{title:"前端开发依赖",column:1,size:"small",bordered:!0,items:c})]})}),e.jsx(t,{span:"12",children:e.jsx(l,{title:"后端依赖",column:1,size:"small",bordered:!0,items:o})})]})]});export{m as default}; diff --git a/web/dist/assets/index-9ad591e3.js b/web/dist/assets/index-9ad591e3.js new file mode 100644 index 0000000000000000000000000000000000000000..a546b18c3d4db191b9b4c936b51a81b5149f3952 --- /dev/null +++ b/web/dist/assets/index-9ad591e3.js @@ -0,0 +1 @@ +import{Y as o,ax as d,b as m,j as e,ay as n,B as s,b0 as p}from"./umi-5f6aeac9.js";import{X as c}from"./index-109f15ec.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./table-0fa6c309.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const l="/feedback",G=()=>{o("dictModel");const t=[{title:"反馈ID",dataIndex:"id",hideInForm:!0,hideInTable:!0,hideInSearch:!0},{title:"装置名称",dataIndex:"device_name",hideInSearch:!0,hideInForm:!0},{title:"所属项目",dataIndex:"project_name",hideInForm:!0,hideInSearch:!0},{title:"法兰编号",dataIndex:"flange_code",hideInForm:!0},{title:"法兰名称",dataIndex:"flange_name",hideInSearch:!0,hideInForm:!0},{valueType:"dateTime",title:"更新时间",hideInForm:!0,hideInSearch:!0,dataIndex:"update_time"}],i=d(),r=m.useRef();return e.jsx(c,{headerTitle:"反馈列表",tableApi:l,columns:t,accessName:"feedback",deleteShow:!1,actionRef:r,addShow:!1,editShow:!1,operateRender:a=>e.jsx(e.Fragment,{children:e.jsx(n,{accessible:i.buttonAccess("feedback.detail"),children:e.jsx(s,{type:"link",onClick:()=>{p.push(`/feedback/detail?id=${a.id}`)},children:"查看详情"})})})})};export{G as default}; diff --git a/web/dist/assets/index-9c09012c.js b/web/dist/assets/index-9c09012c.js new file mode 100644 index 0000000000000000000000000000000000000000..4762a7a9335c64f3ecda257ae4b88095c8cfec1f --- /dev/null +++ b/web/dist/assets/index-9c09012c.js @@ -0,0 +1 @@ +import{TableEditor as A}from"./TableEditor-0d731bc8.js";import"./umi-5f6aeac9.js";import"./index-6613242c.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./styleChecker-68f8791b.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-25e4c7e3.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";export{A as TableEditor}; diff --git a/web/dist/assets/index-9c418926.js b/web/dist/assets/index-9c418926.js new file mode 100644 index 0000000000000000000000000000000000000000..9163928f87fc14e7f369b77e86f9ea210569d6a5 --- /dev/null +++ b/web/dist/assets/index-9c418926.js @@ -0,0 +1 @@ +import{R as l,s as t,j as p,G as n,_ as r}from"./umi-5f6aeac9.js";var a=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],u=l.forwardRef(function(e,o){var d=e.fieldProps,i=e.unCheckedChildren,c=e.checkedChildren,h=e.proFieldProps,s=t(e,a);return p.jsx(n,r({valueType:"switch",fieldProps:r({unCheckedChildren:i,checkedChildren:c},d),ref:o,valuePropName:"checked",proFieldProps:h,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},s))});const C=u;export{C as P}; diff --git a/web/dist/assets/index-e10ebcfa.js b/web/dist/assets/index-9d3aa6d1.js similarity index 99% rename from web/dist/assets/index-e10ebcfa.js rename to web/dist/assets/index-9d3aa6d1.js index b66b5a8616065cbc9f50da75103cecd9a1f8bc6d..423371913380b00ce67b24a40311ec26b4ddcf5d 100644 --- a/web/dist/assets/index-e10ebcfa.js +++ b/web/dist/assets/index-9d3aa6d1.js @@ -1 +1 @@ -import{u as l,t as p,g as S,m as h,a as u,cs as b}from"./umi-2ee4055f.js";const f=i=>{const{componentCls:t,customIconTop:e,customIconSize:n,customIconFontSize:o}=i;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:e,width:n,height:n,fontSize:o,lineHeight:l(n)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},I=f,v=i=>{const{componentCls:t}=i,e=`${t}-item`;return{[`${t}-horizontal`]:{[`${e}-tail`]:{transform:"translateY(-50%)"}}}},C=v,y=i=>{const{componentCls:t,inlineDotSize:e,inlineTitleColor:n,inlineTailColor:o}=i,r=i.calc(i.paddingXS).add(i.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:n}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${l(r)} ${l(i.paddingXXS)} 0`,margin:`0 ${l(i.calc(i.marginXXS).div(2).equal())}`,borderRadius:i.borderRadiusSM,cursor:"pointer",transition:`background-color ${i.motionDurationMid}`,"&:hover":{background:i.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:e,height:e,marginInlineStart:`calc(50% - ${l(i.calc(e).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:i.calc(i.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:i.calc(i.marginXS).sub(i.lineWidth).equal()},"&-title":{color:n,fontSize:i.fontSizeSM,lineHeight:i.lineHeightSM,fontWeight:"normal",marginBottom:i.calc(i.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:i.calc(e).div(2).add(r).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:i.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i.colorBorderBg,border:`${l(i.lineWidth)} ${i.lineType} ${o}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${l(i.lineWidth)} ${i.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:e,height:e,marginInlineStart:`calc(50% - ${l(i.calc(e).div(2).equal())})`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:n}}}}}},T=y,w=i=>{const{componentCls:t,iconSize:e,lineHeight:n,iconSizeSM:o}=i;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:i.calc(e).div(2).add(i.controlHeightLG).equal(),padding:`0 ${l(i.paddingLG)}`},"&-content":{display:"block",width:i.calc(e).div(2).add(i.controlHeightLG).mul(2).equal(),marginTop:i.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:i.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:i.marginXXS,marginInlineStart:0,lineHeight:n}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:i.calc(e).sub(o).div(2).add(i.controlHeightLG).equal()}}}}}},q=w,z=i=>{const{componentCls:t,navContentMaxWidth:e,navArrowColor:n,stepsNavActiveColor:o,motionDurationSlow:r}=i;return{[`&${t}-navigation`]:{paddingTop:i.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:i.calc(i.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:i.calc(i.margin).mul(-1).equal(),paddingBottom:i.paddingSM,textAlign:"start",transition:`opacity ${r}`,[`${t}-item-content`]:{maxWidth:e},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},p),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${l(i.calc(i.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:i.fontSizeIcon,height:i.fontSizeIcon,borderTop:`${l(i.lineWidth)} ${i.lineType} ${n}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${l(i.lineWidth)} ${i.lineType} ${n}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:i.lineWidthBold,backgroundColor:o,transition:`width ${r}, inset-inline-start ${r}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:i.calc(i.lineWidth).mul(3).equal(),height:`calc(100% - ${l(i.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:i.calc(i.controlHeight).mul(.25).equal(),height:i.calc(i.controlHeight).mul(.25).equal(),marginBottom:i.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},H=z,x=i=>{const{antCls:t,componentCls:e,iconSize:n,iconSizeSM:o,processIconColor:r,marginXXS:a,lineWidthBold:m,lineWidth:s,paddingXXS:c}=i,d=i.calc(n).add(i.calc(m).mul(4).equal()).equal(),g=i.calc(o).add(i.calc(i.lineWidth).mul(4).equal()).equal();return{[`&${e}-with-progress`]:{[`${e}-item`]:{paddingTop:c,[`&-process ${e}-item-container ${e}-item-icon ${e}-icon`]:{color:r}},[`&${e}-vertical > ${e}-item `]:{paddingInlineStart:c,[`> ${e}-item-container > ${e}-item-tail`]:{top:a,insetInlineStart:i.calc(n).div(2).sub(s).add(c).equal()}},[`&, &${e}-small`]:{[`&${e}-horizontal ${e}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${e}-small${e}-vertical > ${e}-item > ${e}-item-container > ${e}-item-tail`]:{insetInlineStart:i.calc(o).div(2).sub(s).add(c).equal()},[`&${e}-label-vertical ${e}-item ${e}-item-tail`]:{top:i.calc(n).div(2).add(c).equal()},[`${e}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${l(d)} !important`,height:`${l(d)} !important`}}},[`&${e}-small`]:{[`&${e}-label-vertical ${e}-item ${e}-item-tail`]:{top:i.calc(o).div(2).add(c).equal()},[`${e}-item-icon ${t}-progress-inner`]:{width:`${l(g)} !important`,height:`${l(g)} !important`}}}}},M=x,W=i=>{const{componentCls:t,descriptionMaxWidth:e,lineHeight:n,dotCurrentSize:o,dotSize:r,motionDurationSlow:a}=i;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:n},"&-tail":{top:i.calc(i.dotSize).sub(i.calc(i.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${l(i.calc(e).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${l(i.calc(i.marginSM).mul(2).equal())})`,height:i.calc(i.lineWidth).mul(3).equal(),marginInlineStart:i.marginSM}},"&-icon":{width:r,height:r,marginInlineStart:i.calc(i.descriptionMaxWidth).sub(r).div(2).equal(),paddingInlineEnd:0,lineHeight:l(r),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:i.calc(i.marginSM).mul(-1).equal(),insetInlineStart:i.calc(r).sub(i.calc(i.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:i.calc(i.controlHeightLG).mul(1.5).equal(),height:i.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:e},[`&-process ${t}-item-icon`]:{position:"relative",top:i.calc(r).sub(o).div(2).equal(),width:o,height:o,lineHeight:l(o),background:"none",marginInlineStart:i.calc(i.descriptionMaxWidth).sub(o).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:i.calc(i.controlHeight).sub(r).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:i.calc(i.controlHeight).sub(o).div(2).equal(),top:0,insetInlineStart:i.calc(r).sub(o).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:i.calc(i.controlHeight).sub(r).div(2).equal(),insetInlineStart:0,margin:0,padding:`${l(i.calc(r).add(i.paddingXS).equal())} 0 ${l(i.paddingXS)}`,"&::after":{marginInlineStart:i.calc(r).sub(i.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:i.calc(i.controlHeightSM).sub(r).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:i.calc(i.controlHeightSM).sub(o).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:i.calc(i.controlHeightSM).sub(r).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},B=W,X=i=>{const{componentCls:t}=i;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},O=X,D=i=>{const{componentCls:t,iconSizeSM:e,fontSizeSM:n,fontSize:o,colorTextDescription:r}=i;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:i.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:e,height:e,marginTop:0,marginBottom:0,marginInline:`0 ${l(i.marginXS)}`,fontSize:n,lineHeight:l(e),textAlign:"center",borderRadius:e},[`${t}-item-title`]:{paddingInlineEnd:i.paddingSM,fontSize:o,lineHeight:l(e),"&::after":{top:i.calc(e).div(2).equal()}},[`${t}-item-description`]:{color:r,fontSize:o},[`${t}-item-tail`]:{top:i.calc(e).div(2).sub(i.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:e,lineHeight:l(e),transform:"none"}}}}},j=D,E=i=>{const{componentCls:t,iconSizeSM:e,iconSize:n}=i;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:i.margin},[`${t}-item-content`]:{display:"block",minHeight:i.calc(i.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:l(n)},[`${t}-item-description`]:{paddingBottom:i.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i.calc(n).div(2).sub(i.lineWidth).equal(),width:i.lineWidth,height:"100%",padding:`${l(i.calc(i.marginXXS).mul(1.5).add(n).equal())} 0 ${l(i.calc(i.marginXXS).mul(1.5).equal())}`,"&::after":{width:i.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i.calc(e).div(2).sub(i.lineWidth).equal(),padding:`${l(i.calc(i.marginXXS).mul(1.5).add(e).equal())} 0 ${l(i.calc(i.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:l(e)}}}}},A=E,L="wait",P="process",R="finish",_="error",$=(i,t)=>{const e=`${t.componentCls}-item`,n=`${i}IconColor`,o=`${i}TitleColor`,r=`${i}DescriptionColor`,a=`${i}TailColor`,m=`${i}IconBgColor`,s=`${i}IconBorderColor`,c=`${i}DotColor`;return{[`${e}-${i} ${e}-icon`]:{backgroundColor:t[m],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[n],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${e}-${i}${e}-custom ${e}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${e}-${i} > ${e}-container > ${e}-content > ${e}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${e}-${i} > ${e}-container > ${e}-content > ${e}-description`]:{color:t[r]},[`${e}-${i} > ${e}-container > ${e}-tail::after`]:{backgroundColor:t[a]}}},G=i=>{const{componentCls:t,motionDurationSlow:e}=i,n=`${t}-item`,o=`${n}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${n}-container > ${n}-tail, > ${n}-container > ${n}-content > ${n}-title::after`]:{display:"none"}}},[`${n}-container`]:{outline:"none","&:focus-visible":{[o]:Object.assign({},b(i))}},[`${o}, ${n}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:i.iconSize,height:i.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:i.marginXS,fontSize:i.iconFontSize,fontFamily:i.fontFamily,lineHeight:l(i.iconSize),textAlign:"center",borderRadius:i.iconSize,border:`${l(i.lineWidth)} ${i.lineType} transparent`,transition:`background-color ${e}, border-color ${e}`,[`${t}-icon`]:{position:"relative",top:i.iconTop,color:i.colorPrimary,lineHeight:1}},[`${n}-tail`]:{position:"absolute",top:i.calc(i.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:i.lineWidth,background:i.colorSplit,borderRadius:i.lineWidth,transition:`background ${e}`,content:'""'}},[`${n}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:i.padding,color:i.colorText,fontSize:i.fontSizeLG,lineHeight:l(i.titleLineHeight),"&::after":{position:"absolute",top:i.calc(i.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:i.lineWidth,background:i.processTailColor,content:'""'}},[`${n}-subtitle`]:{display:"inline",marginInlineStart:i.marginXS,color:i.colorTextDescription,fontWeight:"normal",fontSize:i.fontSize},[`${n}-description`]:{color:i.colorTextDescription,fontSize:i.fontSize}},$(L,i)),$(P,i)),{[`${n}-process > ${n}-container > ${n}-title`]:{fontWeight:i.fontWeightStrong}}),$(R,i)),$(_,i)),{[`${n}${t}-next-error > ${t}-item-title::after`]:{background:i.colorError},[`${n}-disabled`]:{cursor:"not-allowed"}})},F=i=>{const{componentCls:t,motionDurationSlow:e}=i;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${e}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:i.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:i.colorPrimary,[`${t}-icon`]:{color:i.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:i.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:i.descriptionMaxWidth,whiteSpace:"normal"}}}}},K=i=>{const{componentCls:t}=i;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u(i)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),G(i)),F(i)),I(i)),j(i)),A(i)),C(i)),q(i)),B(i)),H(i)),O(i)),M(i)),T(i))}},N=i=>({titleLineHeight:i.controlHeight,customIconSize:i.controlHeight,customIconTop:0,customIconFontSize:i.controlHeightSM,iconSize:i.controlHeight,iconTop:-.5,iconFontSize:i.fontSize,iconSizeSM:i.fontSizeHeading3,dotSize:i.controlHeight/4,dotCurrentSize:i.controlHeightLG/4,navArrowColor:i.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:i.wireframe?i.colorTextDisabled:i.colorTextLabel,waitIconBgColor:i.wireframe?i.colorBgContainer:i.colorFillContent,waitIconBorderColor:i.wireframe?i.colorTextDisabled:"transparent",finishIconBgColor:i.wireframe?i.colorBgContainer:i.controlItemBgActive,finishIconBorderColor:i.wireframe?i.colorPrimary:i.controlItemBgActive}),Y=S("Steps",i=>{const{colorTextDisabled:t,controlHeightLG:e,colorTextLightSolid:n,colorText:o,colorPrimary:r,colorTextDescription:a,colorTextQuaternary:m,colorError:s,colorBorderSecondary:c,colorSplit:d}=i,g=h(i,{processIconColor:n,processTitleColor:o,processDescriptionColor:o,processIconBgColor:r,processIconBorderColor:r,processDotColor:r,processTailColor:d,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:d,waitDotColor:t,finishIconColor:r,finishTitleColor:o,finishDescriptionColor:a,finishTailColor:r,finishDotColor:r,errorIconColor:n,errorTitleColor:s,errorDescriptionColor:s,errorTailColor:d,errorIconBgColor:s,errorIconBorderColor:s,errorDotColor:s,stepsNavActiveColor:r,stepsProgressSize:e,inlineDotSize:6,inlineTitleColor:m,inlineTailColor:c});return[K(g)]},N);export{Y as u}; +import{u as l,t as p,g as S,m as h,a as u,cK as b}from"./umi-5f6aeac9.js";const f=i=>{const{componentCls:t,customIconTop:e,customIconSize:n,customIconFontSize:o}=i;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:e,width:n,height:n,fontSize:o,lineHeight:l(n)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},I=f,v=i=>{const{componentCls:t}=i,e=`${t}-item`;return{[`${t}-horizontal`]:{[`${e}-tail`]:{transform:"translateY(-50%)"}}}},C=v,y=i=>{const{componentCls:t,inlineDotSize:e,inlineTitleColor:n,inlineTailColor:o}=i,r=i.calc(i.paddingXS).add(i.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:n}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${l(r)} ${l(i.paddingXXS)} 0`,margin:`0 ${l(i.calc(i.marginXXS).div(2).equal())}`,borderRadius:i.borderRadiusSM,cursor:"pointer",transition:`background-color ${i.motionDurationMid}`,"&:hover":{background:i.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:e,height:e,marginInlineStart:`calc(50% - ${l(i.calc(e).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:i.calc(i.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:i.calc(i.marginXS).sub(i.lineWidth).equal()},"&-title":{color:n,fontSize:i.fontSizeSM,lineHeight:i.lineHeightSM,fontWeight:"normal",marginBottom:i.calc(i.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:i.calc(e).div(2).add(r).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:i.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i.colorBorderBg,border:`${l(i.lineWidth)} ${i.lineType} ${o}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${l(i.lineWidth)} ${i.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:e,height:e,marginInlineStart:`calc(50% - ${l(i.calc(e).div(2).equal())})`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:n}}}}}},T=y,w=i=>{const{componentCls:t,iconSize:e,lineHeight:n,iconSizeSM:o}=i;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:i.calc(e).div(2).add(i.controlHeightLG).equal(),padding:`0 ${l(i.paddingLG)}`},"&-content":{display:"block",width:i.calc(e).div(2).add(i.controlHeightLG).mul(2).equal(),marginTop:i.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:i.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:i.marginXXS,marginInlineStart:0,lineHeight:n}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:i.calc(e).sub(o).div(2).add(i.controlHeightLG).equal()}}}}}},q=w,z=i=>{const{componentCls:t,navContentMaxWidth:e,navArrowColor:n,stepsNavActiveColor:o,motionDurationSlow:r}=i;return{[`&${t}-navigation`]:{paddingTop:i.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:i.calc(i.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:i.calc(i.margin).mul(-1).equal(),paddingBottom:i.paddingSM,textAlign:"start",transition:`opacity ${r}`,[`${t}-item-content`]:{maxWidth:e},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},p),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${l(i.calc(i.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:i.fontSizeIcon,height:i.fontSizeIcon,borderTop:`${l(i.lineWidth)} ${i.lineType} ${n}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${l(i.lineWidth)} ${i.lineType} ${n}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:i.lineWidthBold,backgroundColor:o,transition:`width ${r}, inset-inline-start ${r}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:i.calc(i.lineWidth).mul(3).equal(),height:`calc(100% - ${l(i.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:i.calc(i.controlHeight).mul(.25).equal(),height:i.calc(i.controlHeight).mul(.25).equal(),marginBottom:i.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},H=z,x=i=>{const{antCls:t,componentCls:e,iconSize:n,iconSizeSM:o,processIconColor:r,marginXXS:a,lineWidthBold:m,lineWidth:s,paddingXXS:c}=i,d=i.calc(n).add(i.calc(m).mul(4).equal()).equal(),g=i.calc(o).add(i.calc(i.lineWidth).mul(4).equal()).equal();return{[`&${e}-with-progress`]:{[`${e}-item`]:{paddingTop:c,[`&-process ${e}-item-container ${e}-item-icon ${e}-icon`]:{color:r}},[`&${e}-vertical > ${e}-item `]:{paddingInlineStart:c,[`> ${e}-item-container > ${e}-item-tail`]:{top:a,insetInlineStart:i.calc(n).div(2).sub(s).add(c).equal()}},[`&, &${e}-small`]:{[`&${e}-horizontal ${e}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${e}-small${e}-vertical > ${e}-item > ${e}-item-container > ${e}-item-tail`]:{insetInlineStart:i.calc(o).div(2).sub(s).add(c).equal()},[`&${e}-label-vertical ${e}-item ${e}-item-tail`]:{top:i.calc(n).div(2).add(c).equal()},[`${e}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${l(d)} !important`,height:`${l(d)} !important`}}},[`&${e}-small`]:{[`&${e}-label-vertical ${e}-item ${e}-item-tail`]:{top:i.calc(o).div(2).add(c).equal()},[`${e}-item-icon ${t}-progress-inner`]:{width:`${l(g)} !important`,height:`${l(g)} !important`}}}}},M=x,W=i=>{const{componentCls:t,descriptionMaxWidth:e,lineHeight:n,dotCurrentSize:o,dotSize:r,motionDurationSlow:a}=i;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:n},"&-tail":{top:i.calc(i.dotSize).sub(i.calc(i.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${l(i.calc(e).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${l(i.calc(i.marginSM).mul(2).equal())})`,height:i.calc(i.lineWidth).mul(3).equal(),marginInlineStart:i.marginSM}},"&-icon":{width:r,height:r,marginInlineStart:i.calc(i.descriptionMaxWidth).sub(r).div(2).equal(),paddingInlineEnd:0,lineHeight:l(r),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:i.calc(i.marginSM).mul(-1).equal(),insetInlineStart:i.calc(r).sub(i.calc(i.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:i.calc(i.controlHeightLG).mul(1.5).equal(),height:i.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:e},[`&-process ${t}-item-icon`]:{position:"relative",top:i.calc(r).sub(o).div(2).equal(),width:o,height:o,lineHeight:l(o),background:"none",marginInlineStart:i.calc(i.descriptionMaxWidth).sub(o).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:i.calc(i.controlHeight).sub(r).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:i.calc(i.controlHeight).sub(o).div(2).equal(),top:0,insetInlineStart:i.calc(r).sub(o).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:i.calc(i.controlHeight).sub(r).div(2).equal(),insetInlineStart:0,margin:0,padding:`${l(i.calc(r).add(i.paddingXS).equal())} 0 ${l(i.paddingXS)}`,"&::after":{marginInlineStart:i.calc(r).sub(i.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:i.calc(i.controlHeightSM).sub(r).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:i.calc(i.controlHeightSM).sub(o).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:i.calc(i.controlHeightSM).sub(r).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},B=W,X=i=>{const{componentCls:t}=i;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},O=X,D=i=>{const{componentCls:t,iconSizeSM:e,fontSizeSM:n,fontSize:o,colorTextDescription:r}=i;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:i.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:e,height:e,marginTop:0,marginBottom:0,marginInline:`0 ${l(i.marginXS)}`,fontSize:n,lineHeight:l(e),textAlign:"center",borderRadius:e},[`${t}-item-title`]:{paddingInlineEnd:i.paddingSM,fontSize:o,lineHeight:l(e),"&::after":{top:i.calc(e).div(2).equal()}},[`${t}-item-description`]:{color:r,fontSize:o},[`${t}-item-tail`]:{top:i.calc(e).div(2).sub(i.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:e,lineHeight:l(e),transform:"none"}}}}},j=D,E=i=>{const{componentCls:t,iconSizeSM:e,iconSize:n}=i;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:i.margin},[`${t}-item-content`]:{display:"block",minHeight:i.calc(i.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:l(n)},[`${t}-item-description`]:{paddingBottom:i.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i.calc(n).div(2).sub(i.lineWidth).equal(),width:i.lineWidth,height:"100%",padding:`${l(i.calc(i.marginXXS).mul(1.5).add(n).equal())} 0 ${l(i.calc(i.marginXXS).mul(1.5).equal())}`,"&::after":{width:i.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i.calc(e).div(2).sub(i.lineWidth).equal(),padding:`${l(i.calc(i.marginXXS).mul(1.5).add(e).equal())} 0 ${l(i.calc(i.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:l(e)}}}}},A=E,L="wait",P="process",R="finish",_="error",$=(i,t)=>{const e=`${t.componentCls}-item`,n=`${i}IconColor`,o=`${i}TitleColor`,r=`${i}DescriptionColor`,a=`${i}TailColor`,m=`${i}IconBgColor`,s=`${i}IconBorderColor`,c=`${i}DotColor`;return{[`${e}-${i} ${e}-icon`]:{backgroundColor:t[m],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[n],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${e}-${i}${e}-custom ${e}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${e}-${i} > ${e}-container > ${e}-content > ${e}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${e}-${i} > ${e}-container > ${e}-content > ${e}-description`]:{color:t[r]},[`${e}-${i} > ${e}-container > ${e}-tail::after`]:{backgroundColor:t[a]}}},G=i=>{const{componentCls:t,motionDurationSlow:e}=i,n=`${t}-item`,o=`${n}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${n}-container > ${n}-tail, > ${n}-container > ${n}-content > ${n}-title::after`]:{display:"none"}}},[`${n}-container`]:{outline:"none","&:focus-visible":{[o]:Object.assign({},b(i))}},[`${o}, ${n}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:i.iconSize,height:i.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:i.marginXS,fontSize:i.iconFontSize,fontFamily:i.fontFamily,lineHeight:l(i.iconSize),textAlign:"center",borderRadius:i.iconSize,border:`${l(i.lineWidth)} ${i.lineType} transparent`,transition:`background-color ${e}, border-color ${e}`,[`${t}-icon`]:{position:"relative",top:i.iconTop,color:i.colorPrimary,lineHeight:1}},[`${n}-tail`]:{position:"absolute",top:i.calc(i.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:i.lineWidth,background:i.colorSplit,borderRadius:i.lineWidth,transition:`background ${e}`,content:'""'}},[`${n}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:i.padding,color:i.colorText,fontSize:i.fontSizeLG,lineHeight:l(i.titleLineHeight),"&::after":{position:"absolute",top:i.calc(i.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:i.lineWidth,background:i.processTailColor,content:'""'}},[`${n}-subtitle`]:{display:"inline",marginInlineStart:i.marginXS,color:i.colorTextDescription,fontWeight:"normal",fontSize:i.fontSize},[`${n}-description`]:{color:i.colorTextDescription,fontSize:i.fontSize}},$(L,i)),$(P,i)),{[`${n}-process > ${n}-container > ${n}-title`]:{fontWeight:i.fontWeightStrong}}),$(R,i)),$(_,i)),{[`${n}${t}-next-error > ${t}-item-title::after`]:{background:i.colorError},[`${n}-disabled`]:{cursor:"not-allowed"}})},F=i=>{const{componentCls:t,motionDurationSlow:e}=i;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${e}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:i.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:i.colorPrimary,[`${t}-icon`]:{color:i.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:i.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:i.descriptionMaxWidth,whiteSpace:"normal"}}}}},K=i=>{const{componentCls:t}=i;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u(i)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),G(i)),F(i)),I(i)),j(i)),A(i)),C(i)),q(i)),B(i)),H(i)),O(i)),M(i)),T(i))}},N=i=>({titleLineHeight:i.controlHeight,customIconSize:i.controlHeight,customIconTop:0,customIconFontSize:i.controlHeightSM,iconSize:i.controlHeight,iconTop:-.5,iconFontSize:i.fontSize,iconSizeSM:i.fontSizeHeading3,dotSize:i.controlHeight/4,dotCurrentSize:i.controlHeightLG/4,navArrowColor:i.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:i.wireframe?i.colorTextDisabled:i.colorTextLabel,waitIconBgColor:i.wireframe?i.colorBgContainer:i.colorFillContent,waitIconBorderColor:i.wireframe?i.colorTextDisabled:"transparent",finishIconBgColor:i.wireframe?i.colorBgContainer:i.controlItemBgActive,finishIconBorderColor:i.wireframe?i.colorPrimary:i.controlItemBgActive}),Y=S("Steps",i=>{const{colorTextDisabled:t,controlHeightLG:e,colorTextLightSolid:n,colorText:o,colorPrimary:r,colorTextDescription:a,colorTextQuaternary:m,colorError:s,colorBorderSecondary:c,colorSplit:d}=i,g=h(i,{processIconColor:n,processTitleColor:o,processDescriptionColor:o,processIconBgColor:r,processIconBorderColor:r,processDotColor:r,processTailColor:d,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:d,waitDotColor:t,finishIconColor:r,finishTitleColor:o,finishDescriptionColor:a,finishTailColor:r,finishDotColor:r,errorIconColor:n,errorTitleColor:s,errorDescriptionColor:s,errorTailColor:d,errorIconBgColor:s,errorIconBorderColor:s,errorDotColor:s,stepsNavActiveColor:r,stepsProgressSize:e,inlineDotSize:6,inlineTitleColor:m,inlineTailColor:c});return[K(g)]},N);export{Y as u}; diff --git a/web/dist/assets/index-9da4ac9d.js b/web/dist/assets/index-9da4ac9d.js new file mode 100644 index 0000000000000000000000000000000000000000..8f4319a6f4f10807f44f385dc1b8985e0a5d89b8 --- /dev/null +++ b/web/dist/assets/index-9da4ac9d.js @@ -0,0 +1 @@ +import{b as P,K as me,x as N,w as W,_ as s,J as ne,a1 as U,E as A,F as $,j as a,an as ye,co as X,bj as x,a0 as M,s as _,bk as V,C as xe,N as he,cp as G,cq as ie,R as Q,ah as ee,bn as pe,P as le,bl as ae,G as K,cm as se,cu as je,ct as be}from"./umi-5f6aeac9.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import{E as Se}from"./index-9fe95bc6.js";import{r as H,d as ke,g as Ee,a as O,I as we}from"./index-98c3b3d6.js";import{C as z}from"./index-55d2ebbc.js";import{D as J}from"./index-54d1fa42.js";var Ce=function(e){return(U.warn||U.warning)(e)};function Ie(n){var e=n.data,t=n.row;return s(s({},e),t)}function Te(n){var e=P.useRef(null),t=n.type||"single",r=me(),i=N([],{value:n.editableKeys,onChange:n.onChange?function(p){var f;n==null||(f=n.onChange)===null||f===void 0||f.call(n,p,n.dataSource)}:void 0}),g=W(i,2),o=g[0],m=g[1],b=P.useMemo(function(){var p=t==="single"?o==null?void 0:o.slice(0,1):o;return new Set(p)},[(o||[]).join(","),t]),h=P.useCallback(function(p){return!!(o!=null&&o.includes(H(p)))},[(o||[]).join(",")]),u=function(f,l){var c;return b.size>0&&t==="single"?(Ce(n.onlyOneLineEditorAlertMessage||r.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1):(e.current=(c=l??ne(n.dataSource,Array.isArray(f)?f:[f]))!==null&&c!==void 0?c:null,b.add(H(f)),m(Array.from(b)),!0)},k=function(f){return b.delete(H(f)),m(Array.from(b)),!0},D=function(){var p=A($().mark(function f(l,c,I,T){var E,B;return $().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,n==null||(E=n.onCancel)===null||E===void 0?void 0:E.call(n,l,c,I,T);case 2:if(B=j.sent,B!==!1){j.next=5;break}return j.abrupt("return",!1);case 5:return j.abrupt("return",!0);case 6:case"end":return j.stop()}},f)}));return function(l,c,I,T){return p.apply(this,arguments)}}(),w=function(){var p=A($().mark(function f(l,c,I){var T,E,B;return $().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,n==null||(T=n.onSave)===null||T===void 0?void 0:T.call(n,l,c,I);case 2:if(E=j.sent,E!==!1){j.next=5;break}return j.abrupt("return",!1);case 5:return j.next=7,k(l);case 7:return B={data:n.dataSource,row:c,key:l,childrenColumnName:n.childrenColumnName||"children"},n.setDataSource(Ie(B)),j.abrupt("return",!0);case 10:case"end":return j.stop()}},f)}));return function(l,c,I){return p.apply(this,arguments)}}(),R=r.getMessage("editableTable.action.save","保存"),v=r.getMessage("editableTable.action.delete","删除"),L=r.getMessage("editableTable.action.cancel","取消"),C=P.useCallback(function(p,f){var l=s({recordKey:p,cancelEditable:k,onCancel:D,onSave:w,editableKeys:o,setEditableRowKeys:m,saveText:R,cancelText:L,preEditRowRef:e,deleteText:v,deletePopconfirmMessage:"".concat(r.getMessage("deleteThisLine","删除此项"),"?"),editorType:"Map"},f),c=ke(n.dataSource,l);return n.actionRender?n.actionRender(n.dataSource,l,{save:c.save,delete:c.delete,cancel:c.cancel}):[c.save,c.delete,c.cancel]},[o&&o.join(","),n.dataSource]);return{editableKeys:o,setEditableRowKeys:m,isEditable:h,actionRender:C,startEditable:u,cancelEditable:k}}var Y=function(e){var t=e.padding;return a.jsx("div",{style:{padding:t||"0 24px"},children:a.jsx(ye,{style:{margin:0}})})},De={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},Be=function(e){var t=e.size,r=e.active,i=P.useMemo(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),g=X()||i,o=Object.keys(g).filter(function(h){return g[h]===!0})[0]||"md",m=t===void 0?De[o]||6:t,b=function(u){return u===0?0:m>2?42:16};return a.jsx(z,{bordered:!1,style:{marginBlockEnd:16},children:a.jsx("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(m).fill(null).map(function(h,u){return a.jsxs("div",{style:{borderInlineStart:m>2&&u===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingInlineStart:b(u),flex:1,marginInlineEnd:u===0?16:0},children:[a.jsx(x,{active:r,paragraph:!1,title:{width:100,style:{marginBlockStart:0}}}),a.jsx(x.Button,{active:r,style:{height:48}})]},u)})})})},Pe=function(e){var t=e.active;return a.jsxs(a.Fragment,{children:[a.jsx(z,{bordered:!1,style:{borderRadius:0},styles:{body:{padding:24}},children:a.jsxs("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsx("div",{style:{maxWidth:"100%",flex:1},children:a.jsx(x,{active:t,title:{width:100,style:{marginBlockStart:0}},paragraph:{rows:1,style:{margin:0}}})}),a.jsx(x.Button,{active:t,size:"small",style:{width:165,marginBlockStart:12}})]})}),a.jsx(Y,{})]})},Re=function(e){var t=e.size,r=e.active,i=r===void 0?!0:r,g=e.actionButton;return a.jsxs(z,{bordered:!1,styles:{body:{padding:0}},children:[new Array(t).fill(null).map(function(o,m){return a.jsx(Pe,{active:!!i},m)}),g!==!1&&a.jsx(z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},styles:{body:{display:"flex",alignItems:"center",justifyContent:"center"}},children:a.jsx(x.Button,{style:{width:102},active:i,size:"small"})})]})},Z=function(e){var t=e.active;return a.jsxs("div",{style:{marginBlockEnd:16},children:[a.jsx(x,{paragraph:!1,title:{width:185}}),a.jsx(x.Button,{active:t,size:"small"})]})},Le=function(e){var t=e.active;return a.jsx(z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},styles:{body:{paddingBlockEnd:8}},children:a.jsxs(M,{style:{width:"100%",justifyContent:"space-between"},children:[a.jsx(x.Button,{active:t,style:{width:200},size:"small"}),a.jsxs(M,{children:[a.jsx(x.Button,{active:t,size:"small",style:{width:120}}),a.jsx(x.Button,{active:t,size:"small",style:{width:80}})]})]})})},ze=function(e){var t=e.active,r=t===void 0?!0:t,i=e.statistic,g=e.actionButton,o=e.toolbar,m=e.pageHeader,b=e.list,h=b===void 0?5:b;return a.jsxs("div",{style:{width:"100%"},children:[m!==!1&&a.jsx(Z,{active:r}),i!==!1&&a.jsx(Be,{size:i,active:r}),(o!==!1||h!==!1)&&a.jsxs(z,{bordered:!1,styles:{body:{padding:0}},children:[o!==!1&&a.jsx(Le,{active:r}),h!==!1&&a.jsx(Re,{size:h,active:r,actionButton:g})]})]})};const Fe=ze;var de={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},$e=function(e){var t=e.active;return a.jsxs("div",{style:{marginBlockStart:32},children:[a.jsx(x.Button,{active:t,size:"small",style:{width:100,marginBlockEnd:16}}),a.jsxs("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[a.jsxs("div",{style:{flex:1,marginInlineEnd:24,maxWidth:300},children:[a.jsx(x,{active:t,paragraph:!1,title:{style:{marginBlockStart:0}}}),a.jsx(x,{active:t,paragraph:!1,title:{style:{marginBlockStart:8}}}),a.jsx(x,{active:t,paragraph:!1,title:{style:{marginBlockStart:8}}})]}),a.jsx("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:a.jsxs("div",{style:{maxWidth:300,margin:"auto"},children:[a.jsx(x,{active:t,paragraph:!1,title:{style:{marginBlockStart:0}}}),a.jsx(x,{active:t,paragraph:!1,title:{style:{marginBlockStart:8}}})]})})]})]})},Me=function(e){var t=e.size,r=e.active,i=P.useMemo(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),g=X()||i,o=Object.keys(g).filter(function(b){return g[b]===!0})[0]||"md",m=t===void 0?de[o]||3:t;return a.jsx("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(m).fill(null).map(function(b,h){return a.jsxs("div",{style:{flex:1,paddingInlineStart:h===0?0:24,paddingInlineEnd:h===m-1?0:24},children:[a.jsx(x,{active:r,paragraph:!1,title:{style:{marginBlockStart:0}}}),a.jsx(x,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}}),a.jsx(x,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}})]},h)})})},te=function(e){var t=e.active,r=e.header,i=r===void 0?!1:r,g=P.useMemo(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),o=X()||g,m=Object.keys(o).filter(function(h){return o[h]===!0})[0]||"md",b=de[m]||3;return a.jsxs(a.Fragment,{children:[a.jsxs("div",{style:{display:"flex",background:i?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(b).fill(null).map(function(h,u){return a.jsx("div",{style:{flex:1,paddingInlineStart:i&&u===0?0:20,paddingInlineEnd:32},children:a.jsx(x,{active:t,paragraph:!1,title:{style:{margin:0,height:24,width:i?"75px":"100%"}}})},u)}),a.jsx("div",{style:{flex:3,paddingInlineStart:32},children:a.jsx(x,{active:t,paragraph:!1,title:{style:{margin:0,height:24,width:i?"75px":"100%"}}})})]}),a.jsx(Y,{padding:"0px 0px"})]})},Ae=function(e){var t=e.active,r=e.size,i=r===void 0?4:r;return a.jsxs(z,{bordered:!1,children:[a.jsx(x.Button,{active:t,size:"small",style:{width:100,marginBlockEnd:16}}),a.jsx(te,{header:!0,active:t}),new Array(i).fill(null).map(function(g,o){return a.jsx(te,{active:t},o)}),a.jsx("div",{style:{display:"flex",justifyContent:"flex-end",paddingBlockStart:16},children:a.jsx(x,{active:t,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},qe=function(e){var t=e.active;return a.jsxs(z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},children:[a.jsx(x.Button,{active:t,size:"small",style:{width:100,marginBlockEnd:16}}),a.jsx(Me,{active:t}),a.jsx($e,{active:t})]})},Ke=function(e){var t=e.active,r=t===void 0?!0:t,i=e.pageHeader,g=e.list;return a.jsxs("div",{style:{width:"100%"},children:[i!==!1&&a.jsx(Z,{active:r}),a.jsx(qe,{active:r}),g!==!1&&a.jsx(Y,{}),g!==!1&&a.jsx(Ae,{active:r,size:g})]})};const He=Ke;var Oe=function(e){var t=e.active,r=t===void 0?!0:t,i=e.pageHeader;return a.jsxs("div",{style:{width:"100%"},children:[i!==!1&&a.jsx(Z,{active:r}),a.jsx(z,{children:a.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[a.jsx(x.Avatar,{size:64,style:{marginBlockEnd:32}}),a.jsx(x.Button,{active:r,style:{width:214,marginBlockEnd:8}}),a.jsx(x.Button,{active:r,style:{width:328},size:"small"}),a.jsxs(M,{style:{marginBlockStart:24},children:[a.jsx(x.Button,{active:r,style:{width:116}}),a.jsx(x.Button,{active:r,style:{width:116}})]})]})})]})};const Ne=Oe;var We=["type"],Ve=function(e){var t=e.type,r=t===void 0?"list":t,i=_(e,We);return r==="result"?a.jsx(Ne,s({},i)):r==="descriptions"?a.jsx(He,s({},i)):a.jsx(Fe,s({},i))};const Ge=Ve;var Qe=function(e,t){var r=t||{},i=r.onRequestError,g=r.effects,o=r.manual,m=r.dataSource,b=r.defaultDataSource,h=r.onDataSourceChange,u=N(b,{value:m,onChange:h}),k=W(u,2),D=k[0],w=k[1],R=N(t==null?void 0:t.loading,{value:t==null?void 0:t.loading,onChange:t==null?void 0:t.onLoadingChange}),v=W(R,2),L=v[0],C=v[1],p=function(c){w(c),C(!1)},f=function(){var l=A($().mark(function c(){var I,T,E;return $().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!L){d.next=2;break}return d.abrupt("return");case 2:return C(!0),d.prev=3,d.next=6,e();case 6:if(d.t0=d.sent,d.t0){d.next=9;break}d.t0={};case 9:I=d.t0,T=I.data,E=I.success,E!==!1&&p(T),d.next=23;break;case 15:if(d.prev=15,d.t1=d.catch(3),i!==void 0){d.next=21;break}throw new Error(d.t1);case 21:i(d.t1);case 22:C(!1);case 23:return d.prev=23,C(!1),d.finish(23);case 26:case"end":return d.stop()}},c,null,[[3,15,23,26]])}));return function(){return l.apply(this,arguments)}}();return P.useEffect(function(){o||f()},[].concat(V(g||[]),[o])),{dataSource:D,setDataSource:w,loading:L,reload:function(){return f()}}};const Xe=Qe;var _e=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],Je=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError","emptyText","contentStyle"],Ye=function(e,t){var r=e.dataIndex;if(r){var i=Array.isArray(r)?ne(t,r):t[r];if(i!==void 0||i!==null)return i}return e.children},re=function(e){var t,r=e.valueEnum,i=e.action,g=e.index,o=e.text,m=e.entity,b=e.mode,h=e.render,u=e.editableUtils,k=e.valueType,D=e.plain,w=e.dataIndex,R=e.request,v=e.renderFormItem,L=e.params,C=e.emptyText,p=le.useFormInstance(),f=(t=ae.useToken)===null||t===void 0?void 0:t.call(ae),l=f.token,c={text:o,valueEnum:r,mode:b||"read",proFieldProps:{emptyText:C,render:h?function(E){return h==null?void 0:h(E,m,g,i,s(s({},e),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:k,request:R,params:L,plain:D};if(b==="read"||!b||k==="option"){var I=O(e.fieldProps,void 0,s(s({},e),{},{rowKey:w,isEditable:!1}));return a.jsx(K,s(s({name:w},c),{},{fieldProps:I}))}var T=function(){var B,d=O(e.formItemProps,p,s(s({},e),{},{rowKey:w,isEditable:!0})),j=O(e.fieldProps,p,s(s({},e),{},{rowKey:w,isEditable:!0}));return a.jsxs("div",{style:{display:"flex",gap:l.marginXS,alignItems:"baseline"},children:[a.jsx(we,s(s({name:w},d),{},{style:s({margin:0},(d==null?void 0:d.style)||{}),initialValue:o||(d==null?void 0:d.initialValue),children:a.jsx(K,s(s({},c),{},{proFieldProps:s({},c.proFieldProps),renderFormItem:v?function(){return v==null?void 0:v(s(s({},e),{},{type:"descriptions"}),{isEditable:!0,recordKey:w,record:p.getFieldValue([w].flat(1)),defaultRender:function(){return a.jsx(K,s(s({},c),{},{fieldProps:j}))},type:"descriptions"},p)}:void 0,fieldProps:j}))})),a.jsx("div",{style:{display:"flex",maxHeight:l.controlHeight,alignItems:"center",gap:l.marginXS},children:u==null||(B=u.actionRender)===null||B===void 0?void 0:B.call(u,w||g,{cancelText:a.jsx(je,{}),saveText:a.jsx(be,{}),deleteText:!1})})]})};return a.jsx("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:T()})},Ze=function(e,t,r,i,g){var o,m=[],b=ie(se,"5.8.0")>=0,h=e==null||(o=e.map)===null||o===void 0?void 0:o.call(e,function(u,k){var D,w,R;if(Q.isValidElement(u))return b?{children:u}:u;var v=u;v.valueEnum,v.render;var L=v.renderText,C=v.mode;v.plain;var p=v.dataIndex;v.request,v.params;var f=v.editable,l=_(v,_e),c=(D=Ye(u,t))!==null&&D!==void 0?D:l.children,I=L?L(c,t,k,r):c,T=typeof l.title=="function"?l.title(u,"descriptions",null):l.title,E=typeof l.valueType=="function"?l.valueType(t||{},"descriptions"):l.valueType,B=i==null?void 0:i.isEditable(p||k),d=C||B?"edit":"read",j=i&&d==="read"&&f!==!1&&(f==null?void 0:f(I,t,k))!==!1,F=j?M:Q.Fragment,y=d==="edit"?I:Ee(I,u,I),S=b&&E!=="option"?s(s({},l),{},{key:l.key||((w=l.label)===null||w===void 0?void 0:w.toString())||k,label:(T||l.label||l.tooltip)&&a.jsx(G,{label:T||l.label,tooltip:l.tooltip,ellipsis:u.ellipsis}),children:a.jsxs(F,{children:[P.createElement(re,s(s({},u),{},{key:u==null?void 0:u.key,dataIndex:u.dataIndex||k,mode:d,text:y,valueType:E,entity:t,index:k,emptyText:g,action:r,editableUtils:i})),j&&a.jsx(ee,{onClick:function(){i==null||i.startEditable(p||k)}})]})}):P.createElement(J.Item,s(s({},l),{},{key:l.key||((R=l.label)===null||R===void 0?void 0:R.toString())||k,label:(T||l.label||l.tooltip)&&a.jsx(G,{label:T||l.label,tooltip:l.tooltip,ellipsis:u.ellipsis})}),a.jsxs(F,{children:[a.jsx(re,s(s({},u),{},{dataIndex:u.dataIndex||k,mode:d,text:y,valueType:E,entity:t,index:k,action:r,editableUtils:i})),j&&E!=="option"&&a.jsx(ee,{onClick:function(){i==null||i.startEditable(p||k)}})]}));return E==="option"?(m.push(S),null):S}).filter(function(u){return u});return{options:m!=null&&m.length?m:null,children:h}},oe=function(e){return a.jsx(J.Item,s(s({},e),{},{children:e.children}))};oe.displayName="ProDescriptionsItem";var Ue=function(e){return e.children},ea=function(e){var t,r=e.request,i=e.columns,g=e.params,o=e.dataSource,m=e.onDataSourceChange,b=e.formProps,h=e.editable,u=e.loading,k=e.onLoadingChange,D=e.actionRef,w=e.onRequestError;e.emptyText;var R=e.contentStyle,v=_(e,Je),L=P.useContext(xe.ConfigContext),C=Xe(A($().mark(function j(){var F;return $().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(!r){S.next=6;break}return S.next=3,r(g||{});case 3:S.t0=S.sent,S.next=7;break;case 6:S.t0={data:{}};case 7:return F=S.t0,S.abrupt("return",F);case 9:case"end":return S.stop()}},j)})),{onRequestError:w,effects:[he(g)],manual:!r,dataSource:o,loading:u,onLoadingChange:k,onDataSourceChange:m}),p=Te(s(s({},e.editable),{},{childrenColumnName:void 0,dataSource:C.dataSource,setDataSource:C.setDataSource}));if(P.useEffect(function(){D&&(D.current=s({reload:C.reload},p))},[C,D,p]),C.loading||C.loading===void 0&&r)return a.jsx(Ge,{type:"descriptions",list:!1,pageHeader:!1});var f=function(){var F=pe(e.children).filter(Boolean).map(function(y){if(!Q.isValidElement(y))return y;var S=y==null?void 0:y.props,q=S.valueEnum,ue=S.valueType,ce=S.dataIndex,ve=S.ellipsis,fe=S.copyable,ge=S.request;return!ue&&!q&&!ce&&!ge&&!ve&&!fe&&y.type.displayName!=="ProDescriptionsItem"?y:s(s({},y==null?void 0:y.props),{},{entity:o})});return[].concat(V(i||[]),V(F)).filter(function(y){return!y||y!=null&&y.valueType&&["index","indexBorder"].includes(y==null?void 0:y.valueType)?!1:!(y!=null&&y.hideInDescriptions)}).sort(function(y,S){return S.order||y.order?(S.order||0)-(y.order||0):(S.index||0)-(y.index||0)})},l=Ze(f(),C.dataSource||{},(D==null?void 0:D.current)||C,h?p:void 0,e.emptyText),c=l.options,I=l.children,T=h?le:Ue,E=null;(v.title||v.tooltip||v.tip)&&(E=a.jsx(G,{label:v.title,tooltip:v.tooltip||v.tip}));var B=L.getPrefixCls("pro-descriptions"),d=ie(se,"5.8.0")>=0;return a.jsx(Se,{children:a.jsx(T,s(s({form:(t=e.editable)===null||t===void 0?void 0:t.form,component:!1,submitter:!1},b),{},{onFinish:void 0,children:a.jsx(J,s(s({className:B},v),{},{contentStyle:s({minWidth:0},R||{}),extra:v.extra?a.jsxs(M,{children:[c,v.extra]}):c,title:E,items:d?I:void 0,children:d?null:I}))}),"form")})};ea.Item=oe;export{ea as P}; diff --git a/web/dist/assets/index-9e35fb11.js b/web/dist/assets/index-9e35fb11.js deleted file mode 100644 index 1f6f96111e33b1b1b095bffba814d5da27b347af..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-9e35fb11.js +++ /dev/null @@ -1 +0,0 @@ -import{af as d,Y as m,aN as x,j as e,W as t,$ as g,al as o,aQ as f,V as l,aS as h}from"./umi-2ee4055f.js";import{L as j}from"./index-bfbbbffc.js";import{P}from"./index-77afe57c.js";const y=()=>{const{token:a}=d.useToken(),{initialState:c}=m("@@initialState"),u=x(),n=r=>{const s=(()=>r&&r.length>12?"ok":r&&r.length>6?"pass":"poor")();return s==="pass"?e.jsx("div",{style:{color:a.colorWarning},children:"强度:中"}):s==="ok"?e.jsx("div",{style:{color:a.colorSuccess},children:"强度:强"}):e.jsx("div",{style:{color:a.colorError},children:"强度:弱"})},p=async r=>{await h(r),l.success("注册成功,请重新登录!"),u("/client/login",{replace:!0})};return e.jsx("div",{style:{backgroundColor:a.colorBgContainer,maxWidth:600,margin:"50px auto"},children:e.jsxs(j,{logo:c.webSetting.logo||"/favicon.png",title:"用户注册",subTitle:"注册成为新用户,开启全新旅程!",onFinish:p,children:[e.jsx(t,{name:"username",fieldProps:{size:"large",prefix:e.jsx(g,{className:"prefixIcon"})},placeholder:"请输入用户名",rules:[{required:!0,message:"请输入用户名!"}]}),e.jsx(t.Password,{name:"password",fieldProps:{size:"large",prefix:e.jsx(o,{className:"prefixIcon"}),strengthText:"密码只能为字母和数字,下划线_及破折号-,且长度最小为6位",statusRender:n},placeholder:"请输入密码",rules:[{required:!0,message:"请输入密码!"}]}),e.jsx(t.Password,{name:"rePassword",fieldProps:{size:"large",prefix:e.jsx(o,{className:"prefixIcon"}),strengthText:"密码只能为字母和数字,下划线_及破折号-,且长度最小为6位",statusRender:n},placeholder:"请重复输入密码",rules:[{required:!0,message:"请重复输入密码!"},({getFieldValue:r})=>({validator(i,s){return!s||r("password")===s?Promise.resolve():Promise.reject(new Error("重复密码不同!"))}})]}),e.jsx(t,{fieldProps:{size:"large",prefix:e.jsx(o,{className:"prefixIcon"})},name:"email",placeholder:"邮箱",rules:[{required:!0,message:"请输入邮箱!"},{pattern:/^[\w\\.-]+@[\w\\.-]+\.\w+$/,message:"邮箱格式错误!"}]}),e.jsx(P,{fieldProps:{size:"large",prefix:e.jsx(o,{className:"prefixIcon"})},captchaProps:{size:"large"},phoneName:"email",placeholder:"请输入邮箱验证码",captchaTextRender:(r,i)=>r?`${i} 获取验证码`:"获取验证码",name:"captcha",rules:[{required:!0,message:"请输入验证码!"}],onGetCaptcha:async r=>{await f({email:r},{type:"reg"}),l.success("获取验证码成功!")}})]})})};export{y as default}; diff --git a/web/dist/assets/index-9e8f4f3a.js b/web/dist/assets/index-9e8f4f3a.js new file mode 100644 index 0000000000000000000000000000000000000000..95b927f0ae038feab71f68b0729d68463c4081c4 --- /dev/null +++ b/web/dist/assets/index-9e8f4f3a.js @@ -0,0 +1 @@ +import{R as i,s as l,b as n,a7 as F,j as P,G as u,_ as d}from"./umi-5f6aeac9.js";var f=["fieldProps","request","params","proFieldProps"],x=function(r,e){var o=r.fieldProps,s=r.request,a=r.params,t=r.proFieldProps,p=l(r,f),m=n.useContext(F);return P.jsx(u,d({valueType:"cascader",fieldProps:d({getPopupContainer:m.getPopupContainer},o),ref:e,request:s,params:a,filedConfig:{customLightMode:!0},proFieldProps:t},p))};const j=i.forwardRef(x);var v=["fieldProps","request","params","proFieldProps"],C=function(r,e){var o=r.fieldProps,s=r.request,a=r.params,t=r.proFieldProps,p=l(r,v);return P.jsx(u,d({valueType:"treeSelect",fieldProps:o,ref:e,request:s,params:a,filedConfig:{customLightMode:!0},proFieldProps:t},p))},q=i.forwardRef(C);const S=q;export{j as P,S as a}; diff --git a/web/dist/assets/index-9f6163bb.js b/web/dist/assets/index-9f6163bb.js deleted file mode 100644 index b9f5168ca7b946e15264a3cdaa58b5a46ca8b73e..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-9f6163bb.js +++ /dev/null @@ -1 +0,0 @@ -import{r as o,R as c}from"./umi-2ee4055f.js";import{u as y,a as d,g as T,E as b,C as v}from"./createLoading-2160f924.js";var O=globalThis&&globalThis.__rest||function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r[e.jsx("a",{children:"Delete"},"delete"),e.jsxs("a",{className:"ant-dropdown-link",children:["More actions ",e.jsx(W,{})]},"link")]}],q=a=>{if(a<1)return[];const o=[];for(let i=1;i<=a;i+=1)o.push({key:i,name:"John Brown",age:i+10,time:1661136793649+i*1e3,address:i%2===0?"london":"New York",description:`My name is John Brown, I am ${i}2 years old, living in New York No. ${i} Lake Park.`});return o},T={bordered:!0,loading:!1,columns:F,pagination:{show:!0,pageSize:5,current:1,total:100},size:"small",expandable:!1,headerTitle:"高级表格",tooltip:"高级表格 tooltip",showHeader:!0,footer:!0,rowSelection:{},scroll:!1,hasData:!0,tableLayout:void 0,toolBarRender:!0,search:{show:!0,span:12,collapseRender:!0,labelWidth:80,filterType:"query",layout:"horizontal"},options:{show:!0,density:!0,fullScreen:!0,setting:!0}},ze=()=>{var m,u,c,h,z,v;const a=w.useRef(),[o,i]=w.useState(T),s=L(async t=>{i(t)},20),y=(m=o.columns||F)==null?void 0:m.map(t=>({...t,ellipsis:o.ellipsis}));return e.jsxs(f,{split:"vertical",bordered:!0,title:"高级表格",headerBordered:!0,style:{height:"80vh",overflow:"hidden"},children:[e.jsx(f,{style:{height:"100vh",overflow:"auto"},children:e.jsx(O,{...o,formRef:a,pagination:(u=o.pagination)!=null&&u.show?o.pagination:{pageSize:5},search:(c=o.search)!=null&&c.show?o.search:{},expandable:o.expandable&&{expandedRowRender:t=>e.jsx("p",{children:t.description})},options:(h=o.options)!=null&&h.show?o.options:!1,toolBarRender:o!=null&&o.toolBarRender?()=>[e.jsx(N,{type:"primary",children:"刷新"},"refresh")]:!1,footer:o.footer?()=>"Here is footer":!1,headerTitle:o.headerTitle,columns:y,dataSource:q(((z=o.pagination)==null?void 0:z.total)||10),scroll:o.scroll})}),e.jsx(p,{layout:"inline",initialValues:T,submitter:!1,colon:!1,onValuesChange:(t,n)=>s.run(n),children:e.jsx(f,{colSpan:"470px",style:{height:"100vh",overflow:"auto",top:0,right:0,width:470},tabs:{items:[{label:"基本配置",key:"tab1",children:e.jsxs(e.Fragment,{children:[e.jsxs(p.Group,{title:"表格配置",size:0,collapsible:!0,direction:"horizontal",labelLayout:"twoLine",children:[e.jsx(l,{fieldProps:{size:"small"},label:"边框",tooltip:"bordered",name:"bordered"}),e.jsx(x.Group,{tooltip:'size="middle"',radioType:"button",fieldProps:{size:"small"},label:"尺寸",options:[{label:"大",value:"default"},{label:"中",value:"middle"},{label:"小",value:"small"}],name:"size"}),e.jsx(l,{fieldProps:{size:"small"},label:"加载中",tooltip:"loading",name:"loading"}),e.jsx(l,{fieldProps:{size:"small"},label:"显示标题",tooltip:"showHeader",name:"showHeader"}),e.jsx(l,{fieldProps:{size:"small"},label:"页脚",tooltip:"footer",name:"footer"}),e.jsx(l,{fieldProps:{size:"small"},label:"支持展开",tooltip:"expandable",name:"expandable"}),e.jsx(l,{fieldProps:{size:"small"},label:"行选择",tooltip:"rowSelection",name:"rowSelection"})]}),e.jsxs(p.Group,{size:0,collapsible:!0,direction:"horizontal",labelLayout:"twoLine",tooltip:"toolBarRender={false}",title:"工具栏",extra:e.jsx(l,{fieldProps:{size:"small"},noStyle:!0,name:"toolBarRender"}),children:[e.jsx(r,{fieldProps:{size:"small"},label:"表格标题",name:"headerTitle",tooltip:"headerTitle={false}"}),e.jsx(r,{fieldProps:{size:"small"},label:"表格的tooltip",name:"tooltip",tooltip:"tooltip={false}"}),e.jsx(l,{fieldProps:{size:"small"},label:"Icon 显示",name:["options","show"],tooltip:"options={false}"}),e.jsx(l,{fieldProps:{size:"small"},label:"密度 Icon",name:["options","density"],tooltip:"options={{ density:false }}"}),e.jsx(l,{fieldProps:{size:"small"},label:"keyWords",name:["options","search"],tooltip:"options={{ search:'keyWords' }}"}),e.jsx(l,{label:"全屏 Icon",fieldProps:{size:"small"},name:["options","fullScreen"],tooltip:"options={{ fullScreen:false }}"}),e.jsx(l,{label:"列设置 Icon",fieldProps:{size:"small"},tooltip:"options={{ setting:false }}",name:["options","setting"]})]})]})},{label:"表单配置",key:"tab3",children:e.jsxs(p.Group,{title:"查询表单",size:0,collapsible:!0,tooltip:"search={false}",direction:"horizontal",labelLayout:"twoLine",extra:e.jsx(l,{fieldProps:{size:"small"},noStyle:!0,name:["search","show"]}),children:[e.jsx(r,{label:"查询按钮文案",fieldProps:{size:"small"},tooltip:'search={{searchText:"查询"}}',name:["search","searchText"]}),e.jsx(r,{label:"重置按钮文案",fieldProps:{size:"small"},tooltip:'search={{resetText:"重置"}}',name:["search","resetText"]}),e.jsx(l,{fieldProps:{size:"small"},label:"收起按钮",tooltip:"search={{collapseRender:false}}",name:["search","collapseRender"]}),e.jsx(l,{fieldProps:{size:"small"},label:"表单收起",name:["search","collapsed"],tooltip:"search={{collapsed:false}}"}),e.jsx(j,{fieldProps:{size:"small"},tooltip:"search={{span:8}}",options:[{label:"24",value:24},{label:"12",value:12},{label:"8",value:8},{label:"6",value:6}],label:"表单栅格",name:["search","span"]}),e.jsx(x.Group,{radioType:"button",fieldProps:{size:"small"},name:["search","layout"],tooltip:`search={{layout:"${(v=o.search)==null?void 0:v.layout}"}}`,options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}],label:"表单布局"}),e.jsx(x.Group,{radioType:"button",fieldProps:{size:"small"},name:["search","filterType"],tooltip:'search={{filterType:"light"}}',options:[{label:"默认",value:"query"},{label:"轻量",value:"light"}],label:"表单类型"})]})},{label:"数据配置",key:"tab2",children:e.jsxs(p.Group,{title:"分页器",size:0,collapsible:!0,tooltip:"pagination={}",direction:"horizontal",labelLayout:"twoLine",extra:e.jsx(l,{fieldProps:{size:"small"},noStyle:!0,name:["pagination","show"]}),children:[e.jsx(x.Group,{tooltip:'pagination={size:"middle"}',radioType:"button",fieldProps:{size:"small"},label:"尺寸",options:[{label:"默认",value:"default"},{label:"小",value:"small"}],name:["pagination","size"]}),e.jsx(g,{fieldProps:{size:"small"},label:"页码",tooltip:"pagination={{ current:10 }}",name:["pagination","current"]}),e.jsx(g,{fieldProps:{size:"small"},label:"每页数量",tooltip:"pagination={{ pageSize:10 }}",name:["pagination","pageSize"]}),e.jsx(g,{fieldProps:{size:"small"},label:"数据总数",tooltip:"pagination={{ total:100 }}",name:["pagination","total"]})]})},{label:"列配置",key:"tab4",children:e.jsxs(C,{name:"columns",itemRender:({listDom:t,action:n})=>e.jsxs(f,{bordered:!0,style:{marginBlockEnd:8,position:"relative"},bodyStyle:{padding:8,paddingInlineEnd:16,paddingBlockStart:16},children:[e.jsx("div",{style:{position:"absolute",top:-4,right:2},children:n}),t]}),children:[e.jsx(r,{rules:[{required:!0}],name:"title",label:"标题"}),e.jsxs(P,{style:{marginBlockStart:8},children:[e.jsx(l,{label:"过长省略",name:"ellipsis"}),e.jsx(l,{label:"复制按钮",name:"copyable"})]}),e.jsxs(P,{style:{marginBlockStart:8},size:8,children:[e.jsx(j,{label:"dataIndex",width:"xs",name:"dataIndex",valueEnum:{age:"age",address:"address",name:"name",time:"time",description:"string"}}),e.jsx(j,{width:"xs",label:"值类型",name:"valueType",fieldProps:{onChange:()=>{var t;(t=a.current)==null||t.resetFields()}},options:$.map(t=>({label:t,value:t}))})]}),e.jsx(P,{style:{marginBlockStart:8},size:8,children:e.jsx(r,{width:"xs",label:"列提示",name:"tooltip"})}),e.jsx(D,{name:["valueType","valueEnum"],children:({valueType:t,valueEnum:n})=>t!=="select"?null:e.jsx(A,{formItemProps:{style:{marginBlockStart:8}},fieldProps:{value:JSON.stringify(n)},normalize:k=>JSON.parse(k),label:"数据枚举",name:"valueEnum"})})]})}]}})})]})};export{ze as default}; diff --git a/web/dist/assets/index-a43454f7.js b/web/dist/assets/index-a43454f7.js new file mode 100644 index 0000000000000000000000000000000000000000..199a94c093dae4dbb53d3f5ec14eafb920b3deec --- /dev/null +++ b/web/dist/assets/index-a43454f7.js @@ -0,0 +1 @@ +import{j as t}from"./umi-5f6aeac9.js";const s=()=>t.jsx("div",{});export{s as default}; diff --git a/web/dist/assets/index-a8442fbc.js b/web/dist/assets/index-a8442fbc.js new file mode 100644 index 0000000000000000000000000000000000000000..3f325331ffaa1fe2b87663773f92a5daccc0b280 --- /dev/null +++ b/web/dist/assets/index-a8442fbc.js @@ -0,0 +1 @@ +import{bs as L,bE as R,b,j as s,a0 as F,B as I,aA as _,C as B,Z as P,$ as k,aJ as D,aM as z,d as i,bF as A}from"./umi-5f6aeac9.js";import{C as N}from"./index-55d2ebbc.js";import{T as W}from"./index-25e4c7e3.js";import{g as Z}from"./stat-6c5b4dda.js";import{c as q}from"./clsx-0839fdbe.js";import{C as G}from"./index-971c7a18.js";import"./createLoading-e07c13ae.js";import"./index-13cae3f4.js";import"./styleChecker-68f8791b.js";import"./react-content-loader.es-3bd9b17f.js";var U={exports:{}};(function(u,T){(function(o,h){u.exports=h()})(L,function(){var o="minute",h=/[+-]\d\d(?::?\d\d)?/g,x=/([+-]|\d\d)/g;return function(l,$,f){var e=$.prototype;f.utc=function(t){var a={date:t,utc:!0,args:arguments};return new $(a)},e.utc=function(t){var a=f(this.toDate(),{locale:this.$L,utc:!0});return t?a.add(this.utcOffset(),o):a},e.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var m=e.parse;e.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),m.call(this,t)};var p=e.init;e.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else p.call(this)};var v=e.utcOffset;e.utcOffset=function(t,a){var d=this.$utils().u;if(d(t))return this.$u?0:d(this.$offset)?v.call(this):this.$offset;if(typeof t=="string"&&(t=function(C){C===void 0&&(C="");var M=C.match(h);if(!M)return null;var j=(""+M[0]).match(x)||["-",0,0],H=j[0],O=60*+j[1]+ +j[2];return O===0?0:H==="+"?O:-O}(t),t===null))return this;var n=Math.abs(t)<=16?60*t:t,c=this;if(a)return c.$offset=n,c.$u=t===0,c;if(t!==0){var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(c=this.local().add(n+S,o)).$offset=n,c.$x.$localOffset=S}else c=this.utc();return c};var g=e.format;e.format=function(t){var a=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,a)},e.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},e.isUTC=function(){return!!this.$u},e.toISOString=function(){return this.toDate().toISOString()},e.toString=function(){return this.toDate().toUTCString()};var y=e.toDate;e.toDate=function(t){return t==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var r=e.diff;e.diff=function(t,a,d){if(t&&this.$u===t.$u)return r.call(this,t,a,d);var n=this.local(),c=f(t).local();return r.call(n,c,a,d)}}})})(U);var J=U.exports;const K=R(J),{Title:Q}=W,{RangePicker:V}=z;i.extend(A);i.extend(K);const X=i().startOf("day"),tt=i().endOf("day"),et=i().startOf("week"),st=i().endOf("week"),Y=i().startOf("month"),w=i().endOf("month"),at=i().startOf("year"),nt=i().endOf("year"),it=[{label:"今日",value:[X,tt]},{label:"本周",value:[et,st]},{label:"本月",value:[Y,w]},{label:"本年",value:[at,nt]}],E=[{key:"added",label:"大修量"},{key:"finished",label:"完成量"}],ot={xField:"date",yField:"count",maxColumnWidth:28,label:{position:"middle",layout:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"}]},tooltip:{formatter:u=>({name:"数量",value:u.count})}},xt=()=>{const[u,T]=b.useState(E[0].key),[o,h]=b.useState([Y,w]),x=s.jsxs(F,{children:[it.map(e=>s.jsx(I,{type:"text",onClick:()=>h(e.value),children:e.label},e.label)),s.jsx(V,{value:o,onChange:e=>h(e)})]}),{data:l,loading:$,runAsync:f}=_(async e=>{const m=await Z(e),p={},v={};for(const r of m){const{count:t,date_str:a,date_unix:d}=r,n=r.device_type;p[n]||(p[n]={title:n,count:0}),p[n].count+=t,v[a]||(v[a]={date:a,count:0,unix:d}),v[a].count+=t}const g=Object.values(p).sort((r,t)=>t.count-r.count),y=Object.values(v).sort((r,t)=>r.unix-t.unix);return{typeData:g,dateData:y}},{manual:!0});return b.useEffect(()=>{!u||!o.length||f({type:"deviceType",startTime:o[0].unix(),endTime:o[1].unix(),flag:u})},[u,o]),s.jsx(B,{theme:{components:{Card:{headerHeight:100}}},children:s.jsx("div",{className:"dashboard-card-one",children:s.jsx(N,{style:{width:"100%"},tabList:E,tabBarExtraContent:x,onTabChange:e=>T(e),children:s.jsxs(P,{gutter:30,children:[s.jsx(k,{span:16,children:s.jsx(G,{...ot,data:(l==null?void 0:l.dateData)??[]})}),s.jsxs(k,{span:8,children:[s.jsx(Q,{level:5,children:"节点整改情况"}),s.jsx(D,{dataSource:l==null?void 0:l.typeData,renderItem:(e,m)=>s.jsx(D.Item,{actions:[s.jsx("span",{children:e.count},0)],children:s.jsx(D.Item.Meta,{title:s.jsxs("span",{children:[s.jsx("span",{className:q(["index-dot",m<3?"filled":null]),children:m+1}),e.title]})})})})]})]})})})})};export{xt as default}; diff --git a/web/dist/assets/index-a87a26e8.js b/web/dist/assets/index-a87a26e8.js new file mode 100644 index 0000000000000000000000000000000000000000..5fe2744c6ad236070f5422afdfaea61cb48eabaf --- /dev/null +++ b/web/dist/assets/index-a87a26e8.js @@ -0,0 +1 @@ +import{b as c,R as m,aA as p,j as u}from"./umi-5f6aeac9.js";import{g as v}from"./device-ff507e64.js";import{g as y}from"./stat-6c5b4dda.js";import{C as b}from"./index-55d2ebbc.js";import{u as T,d as j,g as x,E,a as O}from"./createLoading-e07c13ae.js";import"./index-13cae3f4.js";import"./react-content-loader.es-3bd9b17f.js";var R=globalThis&&globalThis.__rest||function(e,s){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&s.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);ae*.8+.1}},legend:{position:"top",flipPage:!0,maxRow:2,pageNavigator:{marker:{style:{fill:"rgba(0,0,0,0.65)"}}}},interactions:[{type:"element-selected"},{type:"element-active"}]},k=()=>{const{data:e,loading:s,runAsync:o}=p(async t=>{const a=await y(t),d=(await v({current:1,pageSize:9999})).data.reduce((r,n)=>(r[n.id]=n.name,r),{}),l={};for(const r of a){const{count:n}=r,i=r.device_id;l[i]||(l[i]={name:d[i],count:0}),l[i].count+=n}return Object.values(l).sort((r,n)=>n.count-r.count)},{manual:!0});return c.useEffect(()=>{o({type:"device",startTime:0,endTime:Math.ceil(Date.now()/1e3),flag:"finished"})},[]),u.jsx(b,{title:"装置占比",children:u.jsx("div",{style:{height:400},children:u.jsx(w,{..._,data:e??[]})})})};export{k as default}; diff --git a/web/dist/assets/index-abef5900.js b/web/dist/assets/index-abef5900.js new file mode 100644 index 0000000000000000000000000000000000000000..22ab2b57e2215496444ac7df8b489b4bc5c6718d --- /dev/null +++ b/web/dist/assets/index-abef5900.js @@ -0,0 +1 @@ +import{b as u,bG as S,bH as v,bI as j,r as p,aV as C,bJ as w,j as e,a0 as _,B as g,Z as N,$ as b,ae as J,a1 as c}from"./umi-5f6aeac9.js";import{C as O}from"./index-55d2ebbc.js";import T from"./ColumnsFrom-5b592932.js";import D from"./CrudFrom-1ef18330.js";import P from"./DragSort-2a7a6ccd.js";import I from"./Preview-9cf6f4dd.js";import k from"./TableConfigContext-596283a5.js";import F,{defaultTableSetting as A}from"./TableSetting-0a0a2439.js";import{buildColumns as E}from"./utils-b63e8c97.js";import"./index-13cae3f4.js";import"./defaultSql-5ae6b172.js";import"./index-6613242c.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./styleChecker-68f8791b.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-25e4c7e3.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-109f15ec.js";import"./table-0fa6c309.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";function B(n){return j(n[Symbol.asyncIterator])}function G(n,d){u.useEffect(function(){var a=n(),t=!1;function l(){return S(this,void 0,void 0,function(){var s;return v(this,function(i){switch(i.label){case 0:if(!B(a))return[3,4];i.label=1;case 1:return[4,a.next()];case 2:return s=i.sent(),s.done||t?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,a];case 5:i.sent(),i.label=6;case 6:return[2]}})})}return l(),function(){t=!0}},d)}async function K(n){return p("/admin/online.online_table/saveData",{method:"post",data:n})}async function R(n){return p("/admin/online.online_table/getData",{method:"get",params:n})}async function q(n){return p("/admin/online.online_table/crud",{method:"post",data:n})}const Oe=()=>{const n=C(),[d]=w(),a=d.get("id");if(!a){n("/online/table",{replace:!0});return}const[t,l]=u.useState({tableSetting:A,crudConfig:{name:"TableName",controllerPath:"",modelPath:"",validatePath:"",pagePath:""},columns:[],id:a});G(async()=>{let{data:{data:r}}=await R({id:t.id}),o,m,f;if(typeof r.columns=="string"&&typeof r.table_config=="string"&&typeof r.crud_config=="string")try{o=JSON.parse(r.columns),m=JSON.parse(r.table_config),f=JSON.parse(r.crud_config),l({...t,columns:E(o),tableSetting:m,crudConfig:f})}catch{c.warning("数据不是有效 JSON")}else c.warning("数据不是有效 JSON")},[]);const s=()=>{if(!t.id){c.warning("在线开发ID不存在");return}let r={id:t.id,columns:JSON.stringify(t.columns),table_config:JSON.stringify(t.tableSetting),crud_config:JSON.stringify(t.crudConfig)};K(r).then(o=>{o.success&&c.success("保存成功!")})},i=()=>{s();let r={...t.tableSetting};delete r.paginationShow,delete r.searchShow,delete r.optionsShow;let o={id:t.id,columns:t.columns,table_config:r,crud_config:t.crudConfig};q(o).then(m=>{m.success&&c.success("代码生成成功!")})},[h,x]=u.useState("1"),y=[{key:"1",label:"表格配置",children:e.jsx(F,{})},{key:"2",label:"字段配置",children:e.jsxs(e.Fragment,{children:[e.jsx(P,{}),e.jsx(T,{})]})}];return e.jsx(k.Provider,{value:{tableConfig:t,setTableConfig:l},children:e.jsx(O,{title:"表格开发",styles:{body:{padding:0}},extra:e.jsx(e.Fragment,{children:e.jsxs(_,{children:[e.jsx(g,{onClick:s,type:"primary",children:"保存编辑"}),e.jsx(g,{onClick:i,type:"primary",children:"保存并生成代码"})]})}),children:e.jsxs(N,{children:[e.jsx(b,{span:6,style:{padding:"10px 20px"},children:e.jsx(J,{defaultActiveKey:"1",style:{marginBottom:32},items:y,activeKey:h,onChange:x})}),e.jsxs(b,{span:18,style:{overflow:"auto"},children:[e.jsxs("div",{style:{padding:"20px 20px",borderLeft:"1px solid #efefef"},children:[e.jsx(D,{}),e.jsx("div",{style:{marginTop:10,display:"flex",flexDirection:"row-reverse"}})]}),e.jsx("div",{style:{padding:20,background:"#efefef"},children:e.jsx(I,{})})]})]})})})};export{Oe as default}; diff --git a/web/dist/assets/index-ad4dacd3.js b/web/dist/assets/index-ad4dacd3.js deleted file mode 100644 index 8a2d83ff69dcfdfe5806dff788c3c340884087e8..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-ad4dacd3.js +++ /dev/null @@ -1 +0,0 @@ -import{a6 as y,r as s,ay as T,j as e,aB as m,V as i}from"./umi-2ee4055f.js";import{P as j}from"./index-ea2ed5fc.js";import v from"./GroupRule-924796bd.js";import{X as R}from"./index-1c416090.js";import{l as p,d as A,t as P}from"./table-c83b9d9d.js";import"./ActionButton-a9da0b15.js";import"./index-6395135c.js";import"./userAuth-60d2e4f0.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./Table-3849f584.js";import"./Table-0e254f81.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./RouteContext-8fa10ad2.js";const u="/user.userGroup",se=()=>{const[c,f]=y(),[x,h]=s.useState([]);s.useEffect(()=>{p("/user.userRule/list").then(t=>{h(t.data.data)})},[]);const o=s.useRef(),b=[{title:"类型",dataIndex:"type",valueType:"radio",hideInTable:!0,initialValue:"0",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},fieldProps:{options:[{label:"根节点",value:"0"},{label:"子节点",value:"1"}]}},{title:"ID",dataIndex:"id",hideInForm:!0,hideInTable:!0},{title:"分组名",dataIndex:"name",valueType:"text"},{valueType:"dependency",name:["type"],hideInTable:!0,columns:({type:t})=>t!=="0"?[{title:"父节点",dataIndex:"pid",valueType:"treeSelect",initialValue:1,params:{ref:c},fieldProps:{fieldNames:{label:"name",value:"id"}},request:async()=>(await p(u+"/list")).data.data,formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}}]:[]},{title:"创建时间",dataIndex:"create_time",valueType:"date",hideInForm:!0},{title:"编辑时间",dataIndex:"update_time",valueType:"date",hideInForm:!0}],l=T(),g=async t=>{const n=i.loading("正在删除");let I=t.map(r=>r.id);A(P+"/delete",{ids:I.join()||""}).then(r=>{var a,d;r.success?(i.success(r.msg),(d=(a=o.current)==null?void 0:a.reloadAndRest)==null||d.call(a)):i.warning(r.msg)}).finally(()=>n())};return e.jsx(e.Fragment,{children:e.jsx(R,{tableApi:u,columns:b,search:!1,accessName:"user.group",addBefore:()=>f.toggle(),deleteShow:!1,actionRef:o,expandable:{defaultExpandedRowKeys:[]},operateRender:t=>e.jsx(e.Fragment,{children:t.id!==1&&e.jsxs(e.Fragment,{children:[e.jsx(m,{accessible:l.buttonAccess("user.group.rule"),children:e.jsx(v,{record:t,treeData:x})}),e.jsx(m,{accessible:l.buttonAccess("user.group.delete"),children:e.jsx(j,{title:"Delete the task",description:"你确定要删除这条数据吗?",onConfirm:()=>{g([t])},okText:"确认",cancelText:"取消",children:e.jsx("a",{children:"删除"})})})]})})})})};export{se as default}; diff --git a/web/dist/assets/index-aed57eca.js b/web/dist/assets/index-aed57eca.js new file mode 100644 index 0000000000000000000000000000000000000000..b3495e2b4ffb4aa2b767ee7fe2c8f3f186d685be --- /dev/null +++ b/web/dist/assets/index-aed57eca.js @@ -0,0 +1 @@ +import{b3 as m,g as F,m as N,R as f,b9 as E,ba as p,bb as P}from"./umi-5f6aeac9.js";const d=["wrap","nowrap","wrap-reverse"],u=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],x=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],V=(e,t)=>{const l=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${l}`]:l&&d.includes(l)}},I=(e,t)=>{const l={};return x.forEach(n=>{l[`${e}-align-${n}`]=t.align===n}),l[`${e}-align-stretch`]=!t.align&&!!t.vertical,l},T=(e,t)=>{const l={};return u.forEach(n=>{l[`${e}-justify-${n}`]=t.justify===n}),l};function W(e,t){return m(Object.assign(Object.assign(Object.assign({},V(e,t)),I(e,t)),T(e,t)))}const _=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},L=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},R=e=>{const{componentCls:t}=e,l={};return d.forEach(n=>{l[`${t}-wrap-${n}`]={flexWrap:n}}),l},z=e=>{const{componentCls:t}=e,l={};return x.forEach(n=>{l[`${t}-align-${n}`]={alignItems:n}}),l},A=e=>{const{componentCls:t}=e,l={};return u.forEach(n=>{l[`${t}-justify-${n}`]={justifyContent:n}}),l},D=()=>({}),J=F("Flex",e=>{const{paddingXS:t,padding:l,paddingLG:n}=e,s=N(e,{flexGapSM:t,flexGap:l,flexGapLG:n});return[_(s),L(s),R(s),z(s),A(s)]},D,{resetStyle:!1});var M=globalThis&&globalThis.__rest||function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(l[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s{const{prefixCls:l,rootClassName:n,className:s,style:y,flex:g,gap:o,children:C,vertical:c=!1,component:b="div"}=e,S=M(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:a,direction:h,getPrefixCls:j}=f.useContext(E),r=j("flex",l),[$,v,w]=J(r),O=c??(a==null?void 0:a.vertical),G=m(s,n,a==null?void 0:a.className,r,v,w,W(r,e),{[`${r}-rtl`]:h==="rtl",[`${r}-gap-${o}`]:p(o),[`${r}-vertical`]:O}),i=Object.assign(Object.assign({},a==null?void 0:a.style),y);return g&&(i.flex=g),o&&!p(o)&&(i.gap=o),$(f.createElement(b,Object.assign({ref:t,className:G,style:i},P(S,["justify","wrap","align"])),C))}),q=H;export{q as F}; diff --git a/web/dist/assets/index-b0973895.css b/web/dist/assets/index-b0973895.css new file mode 100644 index 0000000000000000000000000000000000000000..3a33da0abea20f4849144350b5f32a269257cdfe --- /dev/null +++ b/web/dist/assets/index-b0973895.css @@ -0,0 +1 @@ +.dashboard-feedback-list .ant-pro-checkcard-header{gap:4px}.dashboard-feedback-list .ant-list-item-meta-title{overflow:hidden}.dashboard-feedback-list .ant-pro-checkcard-body{padding:0 12px 12px!important} diff --git a/web/dist/assets/index-b0f985d7.js b/web/dist/assets/index-b0f985d7.js deleted file mode 100644 index 4ad664be8a42a2d00dd4c23480b97c80339c20b0..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-b0f985d7.js +++ /dev/null @@ -1 +0,0 @@ -import{r as a,j as r}from"./umi-2ee4055f.js";import{C as s}from"./index-8a549704.js";import l from"./LightFilter-ccb5168f.js";import n from"./LoginForm-2a910d1d.js";import F from"./ModalForm-ceddc203.js";import b from"./ProForm-7316c755.js";import c from"./QueryFilter-69dda768.js";import x from"./StepsForm-bec998aa.js";import"./index-275c5384.js";import"./index-84d5661b.js";import"./index-c4cacd6a.js";import"./index-37bb2b91.js";import"./index-25021ef3.js";import"./index-9900fa87.js";import"./index-dfb59d56.js";import"./index-ca47b438.js";import"./index-77afe57c.js";import"./index-cd6d59f9.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-f4422a84.js";import"./index-8a5a2994.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";const N=()=>{const t={ProForm:r.jsx(b,{}),LightFilter:r.jsx(l,{}),QueryFilter:r.jsx(c,{}),ModalForm:r.jsx(F,{}),StepsForm:r.jsx(x,{}),LoginForm:r.jsx(n,{})},[o,i]=a.useState("LightFilter"),m=p=>{i(p)},e=[{key:"ProForm",label:"高级表单"},{key:"LightFilter",label:"筛选表单"},{key:"QueryFilter",label:"搜索表单"},{key:"ModalForm",label:"浮层表单"},{key:"StepsForm",label:"分步表单"},{key:"LoginForm",label:"登录表单"}];return r.jsx(s,{title:"高级表单",activeTabKey:o,onTabChange:m,tabList:e,children:t[o]})};export{N as default}; diff --git a/web/dist/assets/index-b18eea33.js b/web/dist/assets/index-b18eea33.js deleted file mode 100644 index 2924ae7ba2aa3c14a840aad994748d5abe38fb1a..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-b18eea33.js +++ /dev/null @@ -1 +0,0 @@ -import{Y as o,j as e,av as s,ax as l,V as m}from"./umi-2ee4055f.js";import{C as n}from"./index-8a549704.js";import p from"./index-2e4df2d6.js";import{U as u}from"./index-5c18ae40.js";import{B as d}from"./index-c10be21a.js";import"./index-275c5384.js";import"./utils-b0233852.js";import"./index-d81f4240.js";import"./index-705e7852.js";import"./ActionButton-a9da0b15.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";const V=()=>{const{initialState:r}=o("@@initialState"),i=[{title:"用户名",dataIndex:"username",valueType:"text",formItemProps:{rules:[{required:!0}]}},{title:"昵称",dataIndex:"nickname",valueType:"text",formItemProps:{rules:[{required:!0}]}},{title:"性别",dataIndex:"gender",valueType:"radio",valueEnum:new Map([["0","男"],["1","女"],["2","保密"]])},{title:"邮箱",dataIndex:"email",valueType:"text"},{title:"头像",dataIndex:"avatar_id",hideInSearch:!0,valueType:"avatar",hideInTable:!0,renderFormItem:(t,x,a)=>e.jsx(u,{form:a,dataIndex:"avatar_id",api:"api/user/upAvatar",defaultFile:a.getFieldValue("avatar_url"),crop:!0}),colProps:{md:12}},{title:"手机号",dataIndex:"mobile",valueType:"text",formItemProps:{rules:[{required:!0},{}]}}];return e.jsx(p,{children:e.jsx(n,{title:"账户设置",extra:e.jsx(s,{to:"/user/setPassword",children:"修改密码"}),children:e.jsx(d,{layoutType:"Form",layout:"horizontal",labelCol:{span:2},wrapperCol:{span:6},onFinish:async t=>{console.log(t),await l(t),m.success("更新成功")},initialValues:r.currentUser,columns:i})})})};export{V as default}; diff --git a/web/dist/assets/index-b19e0f77.js b/web/dist/assets/index-b19e0f77.js deleted file mode 100644 index 8f872b0ef36fd849e7d0450614a417fd0eb51832..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-b19e0f77.js +++ /dev/null @@ -1,21 +0,0 @@ -import{r as P,a_ as ye,o as V,l as Q,_ as s,aZ as ie,V as te,w as O,x as M,j as e,ah as he,ce as J,bl as y,S as q,k as Z,b5 as X,C as pe,b0 as je,cf as _,cl as se,R as G,ab as ae,b6 as be,P as de,bm as re,a1 as H,cc as oe,cj as Se,ci as ke,B as Ie,aq as A}from"./umi-2ee4055f.js";import{C as $}from"./index-8a549704.js";import"./index-8ec65540.js";import"./index-e10ebcfa.js";import"./index-d81f4240.js";import{E as Te}from"./index-e7147cef.js";import{r as N,d as Ee,g as Ce,a as W,I as we}from"./index-ff6ac5e9.js";import{D as Y}from"./index-bd1f6aa3.js";import"./index-275c5384.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./index-ea2ed5fc.js";import"./ActionButton-a9da0b15.js";import"./useLazyKVMap-d8c68a12.js";var De=function(t){return(te.warn||te.warning)(t)};function Be(n){var t=n.data,a=n.row;return s(s({},t),a)}function Re(n){var t=P.useRef(null),a=n.type||"single",r=ye(),l=V([],{value:n.editableKeys,onChange:n.onChange?function(p){var f;n==null||(f=n.onChange)===null||f===void 0||f.call(n,p,n.dataSource)}:void 0}),m=Q(l,2),o=m[0],g=m[1],b=P.useMemo(function(){var p=a==="single"?o==null?void 0:o.slice(0,1):o;return new Set(p)},[(o||[]).join(","),a]),h=P.useCallback(function(p){return!!(o!=null&&o.includes(N(p)))},[(o||[]).join(",")]),u=function(f,i){var c;return b.size>0&&a==="single"?(De(n.onlyOneLineEditorAlertMessage||r.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1):(t.current=(c=i??ie(n.dataSource,Array.isArray(f)?f:[f]))!==null&&c!==void 0?c:null,b.add(N(f)),g(Array.from(b)),!0)},k=function(f){return b.delete(N(f)),g(Array.from(b)),!0},D=function(){var p=O(M().mark(function f(i,c,C,w){var I,R;return M().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,n==null||(I=n.onCancel)===null||I===void 0?void 0:I.call(n,i,c,C,w);case 2:if(R=j.sent,R!==!1){j.next=5;break}return j.abrupt("return",!1);case 5:return j.abrupt("return",!0);case 6:case"end":return j.stop()}},f)}));return function(i,c,C,w){return p.apply(this,arguments)}}(),T=function(){var p=O(M().mark(function f(i,c,C){var w,I,R;return M().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,n==null||(w=n.onSave)===null||w===void 0?void 0:w.call(n,i,c,C);case 2:if(I=j.sent,I!==!1){j.next=5;break}return j.abrupt("return",!1);case 5:return j.next=7,k(i);case 7:return R={data:n.dataSource,row:c,key:i,childrenColumnName:n.childrenColumnName||"children"},n.setDataSource(Be(R)),j.abrupt("return",!0);case 10:case"end":return j.stop()}},f)}));return function(i,c,C){return p.apply(this,arguments)}}(),L=r.getMessage("editableTable.action.save","保存"),v=r.getMessage("editableTable.action.delete","删除"),z=r.getMessage("editableTable.action.cancel","取消"),E=P.useCallback(function(p,f){var i=s({recordKey:p,cancelEditable:k,onCancel:D,onSave:T,editableKeys:o,setEditableRowKeys:g,saveText:L,cancelText:z,preEditRowRef:t,deleteText:v,deletePopconfirmMessage:"".concat(r.getMessage("deleteThisLine","删除此项"),"?"),editorType:"Map"},f),c=Ee(n.dataSource,i);return n.actionRender?n.actionRender(n.dataSource,i,{save:c.save,delete:c.delete,cancel:c.cancel}):[c.save,c.delete,c.cancel]},[o&&o.join(","),n.dataSource]);return{editableKeys:o,setEditableRowKeys:g,isEditable:h,actionRender:E,startEditable:u,cancelEditable:k}}var U=function(t){var a=t.padding;return e.jsx("div",{style:{padding:a||"0 24px"},children:e.jsx(he,{style:{margin:0}})})},Pe={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},Le=function(t){var a=t.size,r=t.active,l=P.useMemo(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),m=J()||l,o=Object.keys(m).filter(function(h){return m[h]===!0})[0]||"md",g=a===void 0?Pe[o]||6:a,b=function(u){return u===0?0:g>2?42:16};return e.jsx($,{bordered:!1,style:{marginBlockEnd:16},children:e.jsx("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(g).fill(null).map(function(h,u){return e.jsxs("div",{style:{borderInlineStart:g>2&&u===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingInlineStart:b(u),flex:1,marginInlineEnd:u===0?16:0},children:[e.jsx(y,{active:r,paragraph:!1,title:{width:100,style:{marginBlockStart:0}}}),e.jsx(y.Button,{active:r,style:{height:48}})]},u)})})})},ze=function(t){var a=t.active;return e.jsxs(e.Fragment,{children:[e.jsx($,{bordered:!1,style:{borderRadius:0},styles:{body:{padding:24}},children:e.jsxs("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsx("div",{style:{maxWidth:"100%",flex:1},children:e.jsx(y,{active:a,title:{width:100,style:{marginBlockStart:0}},paragraph:{rows:1,style:{margin:0}}})}),e.jsx(y.Button,{active:a,size:"small",style:{width:165,marginBlockStart:12}})]})}),e.jsx(U,{})]})},$e=function(t){var a=t.size,r=t.active,l=r===void 0?!0:r,m=t.actionButton;return e.jsxs($,{bordered:!1,styles:{body:{padding:0}},children:[new Array(a).fill(null).map(function(o,g){return e.jsx(ze,{active:!!l},g)}),m!==!1&&e.jsx($,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},styles:{body:{display:"flex",alignItems:"center",justifyContent:"center"}},children:e.jsx(y.Button,{style:{width:102},active:l,size:"small"})})]})},ee=function(t){var a=t.active;return e.jsxs("div",{style:{marginBlockEnd:16},children:[e.jsx(y,{paragraph:!1,title:{width:185}}),e.jsx(y.Button,{active:a,size:"small"})]})},Fe=function(t){var a=t.active;return e.jsx($,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},styles:{body:{paddingBlockEnd:8}},children:e.jsxs(q,{style:{width:"100%",justifyContent:"space-between"},children:[e.jsx(y.Button,{active:a,style:{width:200},size:"small"}),e.jsxs(q,{children:[e.jsx(y.Button,{active:a,size:"small",style:{width:120}}),e.jsx(y.Button,{active:a,size:"small",style:{width:80}})]})]})})},Me=function(t){var a=t.active,r=a===void 0?!0:a,l=t.statistic,m=t.actionButton,o=t.toolbar,g=t.pageHeader,b=t.list,h=b===void 0?5:b;return e.jsxs("div",{style:{width:"100%"},children:[g!==!1&&e.jsx(ee,{active:r}),l!==!1&&e.jsx(Le,{size:l,active:r}),(o!==!1||h!==!1)&&e.jsxs($,{bordered:!1,styles:{body:{padding:0}},children:[o!==!1&&e.jsx(Fe,{active:r}),h!==!1&&e.jsx($e,{size:h,active:r,actionButton:m})]})]})};const Ae=Me;var ue={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},qe=function(t){var a=t.active;return e.jsxs("div",{style:{marginBlockStart:32},children:[e.jsx(y.Button,{active:a,size:"small",style:{width:100,marginBlockEnd:16}}),e.jsxs("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[e.jsxs("div",{style:{flex:1,marginInlineEnd:24,maxWidth:300},children:[e.jsx(y,{active:a,paragraph:!1,title:{style:{marginBlockStart:0}}}),e.jsx(y,{active:a,paragraph:!1,title:{style:{marginBlockStart:8}}}),e.jsx(y,{active:a,paragraph:!1,title:{style:{marginBlockStart:8}}})]}),e.jsx("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:e.jsxs("div",{style:{maxWidth:300,margin:"auto"},children:[e.jsx(y,{active:a,paragraph:!1,title:{style:{marginBlockStart:0}}}),e.jsx(y,{active:a,paragraph:!1,title:{style:{marginBlockStart:8}}})]})})]})]})},Oe=function(t){var a=t.size,r=t.active,l=P.useMemo(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),m=J()||l,o=Object.keys(m).filter(function(b){return m[b]===!0})[0]||"md",g=a===void 0?ue[o]||3:a;return e.jsx("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(g).fill(null).map(function(b,h){return e.jsxs("div",{style:{flex:1,paddingInlineStart:h===0?0:24,paddingInlineEnd:h===g-1?0:24},children:[e.jsx(y,{active:r,paragraph:!1,title:{style:{marginBlockStart:0}}}),e.jsx(y,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}}),e.jsx(y,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}})]},h)})})},ne=function(t){var a=t.active,r=t.header,l=r===void 0?!1:r,m=P.useMemo(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),o=J()||m,g=Object.keys(o).filter(function(h){return o[h]===!0})[0]||"md",b=ue[g]||3;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{display:"flex",background:l?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(b).fill(null).map(function(h,u){return e.jsx("div",{style:{flex:1,paddingInlineStart:l&&u===0?0:20,paddingInlineEnd:32},children:e.jsx(y,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:l?"75px":"100%"}}})},u)}),e.jsx("div",{style:{flex:3,paddingInlineStart:32},children:e.jsx(y,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:l?"75px":"100%"}}})})]}),e.jsx(U,{padding:"0px 0px"})]})},Ke=function(t){var a=t.active,r=t.size,l=r===void 0?4:r;return e.jsxs($,{bordered:!1,children:[e.jsx(y.Button,{active:a,size:"small",style:{width:100,marginBlockEnd:16}}),e.jsx(ne,{header:!0,active:a}),new Array(l).fill(null).map(function(m,o){return e.jsx(ne,{active:a},o)}),e.jsx("div",{style:{display:"flex",justifyContent:"flex-end",paddingBlockStart:16},children:e.jsx(y,{active:a,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},He=function(t){var a=t.active;return e.jsxs($,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},children:[e.jsx(y.Button,{active:a,size:"small",style:{width:100,marginBlockEnd:16}}),e.jsx(Oe,{active:a}),e.jsx(qe,{active:a})]})},Ne=function(t){var a=t.active,r=a===void 0?!0:a,l=t.pageHeader,m=t.list;return e.jsxs("div",{style:{width:"100%"},children:[l!==!1&&e.jsx(ee,{active:r}),e.jsx(He,{active:r}),m!==!1&&e.jsx(U,{}),m!==!1&&e.jsx(Ke,{active:r,size:m})]})};const We=Ne;var Ve=function(t){var a=t.active,r=a===void 0?!0:a,l=t.pageHeader;return e.jsxs("div",{style:{width:"100%"},children:[l!==!1&&e.jsx(ee,{active:r}),e.jsx($,{children:e.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[e.jsx(y.Avatar,{size:64,style:{marginBlockEnd:32}}),e.jsx(y.Button,{active:r,style:{width:214,marginBlockEnd:8}}),e.jsx(y.Button,{active:r,style:{width:328},size:"small"}),e.jsxs(q,{style:{marginBlockStart:24},children:[e.jsx(y.Button,{active:r,style:{width:116}}),e.jsx(y.Button,{active:r,style:{width:116}})]})]})})]})};const Qe=Ve;var Xe=["type"],_e=function(t){var a=t.type,r=a===void 0?"list":a,l=Z(t,Xe);return r==="result"?e.jsx(Qe,s({},l)):r==="descriptions"?e.jsx(We,s({},l)):e.jsx(Ae,s({},l))};const Ge=_e;var Je=function(t,a){var r=a||{},l=r.onRequestError,m=r.effects,o=r.manual,g=r.dataSource,b=r.defaultDataSource,h=r.onDataSourceChange,u=V(b,{value:g,onChange:h}),k=Q(u,2),D=k[0],T=k[1],L=V(a==null?void 0:a.loading,{value:a==null?void 0:a.loading,onChange:a==null?void 0:a.onLoadingChange}),v=Q(L,2),z=v[0],E=v[1],p=function(c){T(c),E(!1)},f=function(){var i=O(M().mark(function c(){var C,w,I;return M().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!z){d.next=2;break}return d.abrupt("return");case 2:return E(!0),d.prev=3,d.next=6,t();case 6:if(d.t0=d.sent,d.t0){d.next=9;break}d.t0={};case 9:C=d.t0,w=C.data,I=C.success,I!==!1&&p(w),d.next=23;break;case 15:if(d.prev=15,d.t1=d.catch(3),l!==void 0){d.next=21;break}throw new Error(d.t1);case 21:l(d.t1);case 22:E(!1);case 23:return d.prev=23,E(!1),d.finish(23);case 26:case"end":return d.stop()}},c,null,[[3,15,23,26]])}));return function(){return i.apply(this,arguments)}}();return P.useEffect(function(){o||f()},[].concat(X(m||[]),[o])),{dataSource:D,setDataSource:T,loading:z,reload:function(){return f()}}};const Ze=Je;var Ye=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],Ue=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError","emptyText","contentStyle"],et=function(t,a){var r=t.dataIndex;if(r){var l=Array.isArray(r)?ie(a,r):a[r];if(l!==void 0||l!==null)return l}return t.children},le=function(t){var a,r=t.valueEnum,l=t.action,m=t.index,o=t.text,g=t.entity,b=t.mode,h=t.render,u=t.editableUtils,k=t.valueType,D=t.plain,T=t.dataIndex,L=t.request,v=t.renderFormItem,z=t.params,E=t.emptyText,p=de.useFormInstance(),f=(a=re.useToken)===null||a===void 0?void 0:a.call(re),i=f.token,c={text:o,valueEnum:r,mode:b||"read",proFieldProps:{emptyText:E,render:h?function(I){return h==null?void 0:h(I,g,m,l,s(s({},t),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:k,request:L,params:z,plain:D};if(b==="read"||!b||k==="option"){var C=W(t.fieldProps,void 0,s(s({},t),{},{rowKey:T,isEditable:!1}));return e.jsx(H,s(s({name:T},c),{},{fieldProps:C}))}var w=function(){var R,d=W(t.formItemProps,p,s(s({},t),{},{rowKey:T,isEditable:!0})),j=W(t.fieldProps,p,s(s({},t),{},{rowKey:T,isEditable:!0}));return e.jsxs("div",{style:{display:"flex",gap:i.marginXS,alignItems:"baseline"},children:[e.jsx(we,s(s({name:T},d),{},{style:s({margin:0},(d==null?void 0:d.style)||{}),initialValue:o||(d==null?void 0:d.initialValue),children:e.jsx(H,s(s({},c),{},{proFieldProps:s({},c.proFieldProps),renderFormItem:v?function(){return v==null?void 0:v(s(s({},t),{},{type:"descriptions"}),{isEditable:!0,recordKey:T,record:p.getFieldValue([T].flat(1)),defaultRender:function(){return e.jsx(H,s(s({},c),{},{fieldProps:j}))},type:"descriptions"},p)}:void 0,fieldProps:j}))})),e.jsx("div",{style:{display:"flex",maxHeight:i.controlHeight,alignItems:"center",gap:i.marginXS},children:u==null||(R=u.actionRender)===null||R===void 0?void 0:R.call(u,T||m,{cancelText:e.jsx(Se,{}),saveText:e.jsx(ke,{}),deleteText:!1})})]})};return e.jsx("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:w()})},tt=function(t,a,r,l,m){var o,g=[],b=se(oe,"5.8.0")>=0,h=t==null||(o=t.map)===null||o===void 0?void 0:o.call(t,function(u,k){var D,T,L;if(G.isValidElement(u))return b?{children:u}:u;var v=u;v.valueEnum,v.render;var z=v.renderText,E=v.mode;v.plain;var p=v.dataIndex;v.request,v.params;var f=v.editable,i=Z(v,Ye),c=(D=et(u,a))!==null&&D!==void 0?D:i.children,C=z?z(c,a,k,r):c,w=typeof i.title=="function"?i.title(u,"descriptions",null):i.title,I=typeof i.valueType=="function"?i.valueType(a||{},"descriptions"):i.valueType,R=l==null?void 0:l.isEditable(p||k),d=E||R?"edit":"read",j=l&&d==="read"&&f!==!1&&(f==null?void 0:f(C,a,k))!==!1,F=j?q:G.Fragment,x=d==="edit"?C:Ce(C,u,C),S=b&&I!=="option"?s(s({},i),{},{key:i.key||((T=i.label)===null||T===void 0?void 0:T.toString())||k,label:(w||i.label||i.tooltip)&&e.jsx(_,{label:w||i.label,tooltip:i.tooltip,ellipsis:u.ellipsis}),children:e.jsxs(F,{children:[P.createElement(le,s(s({},u),{},{key:u==null?void 0:u.key,dataIndex:u.dataIndex||k,mode:d,text:x,valueType:I,entity:a,index:k,emptyText:m,action:r,editableUtils:l})),j&&e.jsx(ae,{onClick:function(){l==null||l.startEditable(p||k)}})]})}):P.createElement(Y.Item,s(s({},i),{},{key:i.key||((L=i.label)===null||L===void 0?void 0:L.toString())||k,label:(w||i.label||i.tooltip)&&e.jsx(_,{label:w||i.label,tooltip:i.tooltip,ellipsis:u.ellipsis})}),e.jsxs(F,{children:[e.jsx(le,s(s({},u),{},{dataIndex:u.dataIndex||k,mode:d,text:x,valueType:I,entity:a,index:k,action:r,editableUtils:l})),j&&I!=="option"&&e.jsx(ae,{onClick:function(){l==null||l.startEditable(p||k)}})]}));return I==="option"?(g.push(S),null):S}).filter(function(u){return u});return{options:g!=null&&g.length?g:null,children:h}},ce=function(t){return e.jsx(Y.Item,s(s({},t),{},{children:t.children}))};ce.displayName="ProDescriptionsItem";var at=function(t){return t.children},B=function(t){var a,r=t.request,l=t.columns,m=t.params,o=t.dataSource,g=t.onDataSourceChange,b=t.formProps,h=t.editable,u=t.loading,k=t.onLoadingChange,D=t.actionRef,T=t.onRequestError;t.emptyText;var L=t.contentStyle,v=Z(t,Ue),z=P.useContext(pe.ConfigContext),E=Ze(O(M().mark(function j(){var F;return M().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(!r){S.next=6;break}return S.next=3,r(m||{});case 3:S.t0=S.sent,S.next=7;break;case 6:S.t0={data:{}};case 7:return F=S.t0,S.abrupt("return",F);case 9:case"end":return S.stop()}},j)})),{onRequestError:T,effects:[je(m)],manual:!r,dataSource:o,loading:u,onLoadingChange:k,onDataSourceChange:g}),p=Re(s(s({},t.editable),{},{childrenColumnName:void 0,dataSource:E.dataSource,setDataSource:E.setDataSource}));if(P.useEffect(function(){D&&(D.current=s({reload:E.reload},p))},[E,D,p]),E.loading||E.loading===void 0&&r)return e.jsx(Ge,{type:"descriptions",list:!1,pageHeader:!1});var f=function(){var F=be(t.children).filter(Boolean).map(function(x){if(!G.isValidElement(x))return x;var S=x==null?void 0:x.props,K=S.valueEnum,ve=S.valueType,fe=S.dataIndex,me=S.ellipsis,ge=S.copyable,xe=S.request;return!ve&&!K&&!fe&&!xe&&!me&&!ge&&x.type.displayName!=="ProDescriptionsItem"?x:s(s({},x==null?void 0:x.props),{},{entity:o})});return[].concat(X(l||[]),X(F)).filter(function(x){return!x||x!=null&&x.valueType&&["index","indexBorder"].includes(x==null?void 0:x.valueType)?!1:!(x!=null&&x.hideInDescriptions)}).sort(function(x,S){return S.order||x.order?(S.order||0)-(x.order||0):(S.index||0)-(x.index||0)})},i=tt(f(),E.dataSource||{},(D==null?void 0:D.current)||E,h?p:void 0,t.emptyText),c=i.options,C=i.children,w=h?de:at,I=null;(v.title||v.tooltip||v.tip)&&(I=e.jsx(_,{label:v.title,tooltip:v.tooltip||v.tip}));var R=z.getPrefixCls("pro-descriptions"),d=se(oe,"5.8.0")>=0;return e.jsx(Te,{children:e.jsx(w,s(s({form:(a=t.editable)===null||a===void 0?void 0:a.form,component:!1,submitter:!1},b),{},{onFinish:void 0,children:e.jsx(Y,s(s({className:R},v),{},{contentStyle:s({minWidth:0},L||{}),extra:v.extra?e.jsxs(q,{children:[c,v.extra]}):c,title:I,items:d?C:void 0,children:d?null:C}))}),"form")})};B.Item=ce;const yt=()=>e.jsx($,{title:"高级定义列表",children:e.jsxs(B,{column:2,title:"高级定义列表",tooltip:"包含了从服务器请求,columns等功能",children:[e.jsx(B.Item,{valueType:"option",children:e.jsx(Ie,{type:"primary",children:"提交"},"primary")}),e.jsx(B.Item,{span:2,valueType:"text",contentStyle:{maxWidth:"80%"},renderText:n=>n+n,ellipsis:!0,label:"文本",children:"这是一段很长很长超级超级长的无意义说明文本并且重复了很多没有意义的词语,就是为了让它变得很长很长超级超级长"}),e.jsx(B.Item,{label:"金额",tooltip:"仅供参考,以实际为准",valueType:"money",children:"100"}),e.jsx(B.Item,{label:"百分比",valueType:"percent",children:"100"}),e.jsx(B.Item,{label:"选择框",valueEnum:{all:{text:"全部",status:"Default"},open:{text:"未解决",status:"Error"},closed:{text:"已解决",status:"Success"},processing:{text:"解决中",status:"Processing"}},children:"open"}),e.jsx(B.Item,{label:"远程选择框",request:async()=>[{label:"全部",value:"all"},{label:"未解决",value:"open"},{label:"已解决",value:"closed"},{label:"解决中",value:"processing"}],children:"closed"}),e.jsx(B.Item,{label:"进度条",valueType:"progress",children:"40"}),e.jsx(B.Item,{label:"日期时间",valueType:"dateTime",children:A().valueOf()}),e.jsx(B.Item,{label:"日期",valueType:"date",children:A().valueOf()}),e.jsx(B.Item,{label:"日期区间",valueType:"dateTimeRange",children:[A().add(-1,"d").valueOf(),A().valueOf()]}),e.jsx(B.Item,{label:"时间",valueType:"time",children:A().valueOf()}),e.jsx(B.Item,{label:"代码块",valueType:"code",children:` - yarn run v1.22.0 - $ eslint --format=pretty ./packages - Done in 9.70s. - `}),e.jsx(B.Item,{label:"JSON 代码块",valueType:"jsonCode",children:`{ - "compilerOptions": { - "target": "esnext", - "moduleResolution": "node", - "jsx": "preserve", - "esModuleInterop": true, - "experimentalDecorators": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noImplicitReturns": true, - "suppressImplicitAnyIndexErrors": true, - "declaration": true, - "skipLibCheck": true - }, - "include": ["**/src", "**/docs", "scripts", "**/demo", ".eslintrc.js"] - } - `})]})});export{yt as default}; diff --git a/web/dist/assets/index-b1f4cdd2.js b/web/dist/assets/index-b1f4cdd2.js new file mode 100644 index 0000000000000000000000000000000000000000..e64e34373cdce9e3649b7be8b7f69631dc130d3b --- /dev/null +++ b/web/dist/assets/index-b1f4cdd2.js @@ -0,0 +1 @@ +import{Y as h,ax as I,b as x,j as t,ay as f,B as g,a1 as o}from"./umi-5f6aeac9.js";import{P as T}from"./index-3fcbb702.js";import{U as j}from"./index-0f57638d.js";import{X as b}from"./index-109f15ec.js";import{d as y}from"./table-0fa6c309.js";import{u as v}from"./useListAll-790074c1.js";import"./ActionButton-ff803f23.js";import"./index-04ced7f2.js";import"./index-032ff5a9.js";import"./index-d045d7e9.js";import"./utils-a0a2291f.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const l="/project",ie=()=>{h("dictModel");const{getListAll:m}=v({api:"/admin/list"}),p=[{title:"项目ID",dataIndex:"id",hideInForm:!0,hideInTable:!0,hideInSearch:!0},{title:"项目名称",dataIndex:"name",formItemProps:{rules:[{required:!0,message:"该项为必填"}]}},{title:"项目描述",dataIndex:"description",hideInTable:!0,hideInSearch:!0,valueType:"textarea"},{title:"上传图片",dataIndex:["image","image_id"],hideInSearch:!0,hideInTable:!0,valueType:"image",renderFormItem:(e,a,r)=>t.jsx(j,{form:r,dataIndex:["image","image_id"],api:"/admin/file.upload/image?group_id=14",defaultFile:r.getFieldValue(["image","image_url"]),crop:!1})},{title:"目标公开",dataIndex:"is_public",hideInSearch:!0,valueType:"radio",valueEnum:new Map([[1,{text:"公开"}],[0,{text:"不公开"}]]),formItemProps:{rules:[{required:!0,message:"该项为必填"}]}},{title:"负责人",dataIndex:"leader_ids",hideInSearch:!0,valueType:"select",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},fieldProps:{fieldNames:{label:"nickname",value:"id"},mode:"multiple"},request:async()=>await m()},{title:"操作员",dataIndex:"operator_ids",hideInSearch:!0,valueType:"select",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},fieldProps:{fieldNames:{label:"nickname",value:"id"},mode:"multiple"},request:async()=>await m(),renderText(e,a){return a.operators.map(r=>r.nickname).join(",")}},{valueType:"dateTime",title:"更新时间",hideInForm:!0,hideInSearch:!0,dataIndex:"update_time"}],u=I(),n=x.useRef(),c=async e=>{const a=o.loading("正在删除");if(!e){o.warning("请选择需要删除的节点");return}let r=e.map(i=>i.id);y(l+"/delete",{ids:r.join()||""}).then(i=>{var s,d;i.success?(o.success(i.msg),(d=(s=n.current)==null?void 0:s.reloadAndRest)==null||d.call(s)):o.warning(i.msg)}).finally(()=>a())};return t.jsx(b,{headerTitle:"项目列表",tableApi:l,columns:p,accessName:"project",deleteShow:!1,actionRef:n,operateRender:e=>t.jsx(t.Fragment,{children:t.jsx(f,{accessible:u.buttonAccess("project.delete"),children:t.jsx(T,{title:"删除",description:"你确定要删除这条数据吗?",onConfirm:()=>{c([e])},okText:"确认",cancelText:"取消",children:t.jsx(g,{type:"link",danger:!0,children:"删除"})})})})})};export{ie as default}; diff --git a/web/dist/assets/index-b460a037.js b/web/dist/assets/index-b460a037.js new file mode 100644 index 0000000000000000000000000000000000000000..33e3cb5b0fbebbaaa117643814672c6ce5ff1819 --- /dev/null +++ b/web/dist/assets/index-b460a037.js @@ -0,0 +1 @@ +import{b as a,j as o}from"./umi-5f6aeac9.js";import{C as s}from"./index-55d2ebbc.js";import l from"./LightFilter-9321bc66.js";import n from"./LoginForm-f8f829ea.js";import F from"./ModalForm-5f34b614.js";import b from"./ProForm-72582326.js";import c from"./QueryFilter-d541fbf9.js";import x from"./StepsForm-9f2ab97f.js";import"./index-13cae3f4.js";import"./index-168af0e9.js";import"./index-9e8f4f3a.js";import"./index-9c418926.js";import"./index-120e4de8.js";import"./index-98ecdc4c.js";import"./index-5035f938.js";import"./index-872d0bf8.js";import"./index-2c4aebf3.js";import"./index-25d65b6e.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./index-f4ebd759.js";import"./index-34d06e04.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";const N=()=>{const t={ProForm:o.jsx(b,{}),LightFilter:o.jsx(l,{}),QueryFilter:o.jsx(c,{}),ModalForm:o.jsx(F,{}),StepsForm:o.jsx(x,{}),LoginForm:o.jsx(n,{})},[r,i]=a.useState("LightFilter"),m=p=>{i(p)},e=[{key:"ProForm",label:"高级表单"},{key:"LightFilter",label:"筛选表单"},{key:"QueryFilter",label:"搜索表单"},{key:"ModalForm",label:"浮层表单"},{key:"StepsForm",label:"分步表单"},{key:"LoginForm",label:"登录表单"}];return o.jsx(s,{title:"高级表单",activeTabKey:r,onTabChange:m,tabList:e,children:t[r]})};export{N as default}; diff --git a/web/dist/assets/index-b8191348.js b/web/dist/assets/index-b8191348.js new file mode 100644 index 0000000000000000000000000000000000000000..0db60b3414c620bb8d7d1840e8001b04380190ff --- /dev/null +++ b/web/dist/assets/index-b8191348.js @@ -0,0 +1 @@ +import{j as r,Z as s,$ as o}from"./umi-5f6aeac9.js";import t from"./ACard-af46c9c2.js";import i from"./BCard-8df239e2.js";import d from"./CCard-84ec098e.js";import{P as e}from"./ProCard-a8f5c5a9.js";import"./index-7b6639e6.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-e3aca980.js";import"./index-85806890.js";import"./createLoading-e07c13ae.js";import"./react-content-loader.es-3bd9b17f.js";import"./index-04808238.js";const g=()=>r.jsxs(s,{gutter:[24,24],children:[r.jsx(o,{span:18,children:r.jsxs(s,{gutter:[24,24],children:[r.jsx(o,{span:24,children:r.jsx(e,{bordered:!0,children:r.jsx(t,{})})}),r.jsx(o,{span:24,children:r.jsx(e,{bordered:!0,children:r.jsx(i,{})})})]})}),r.jsx(o,{span:6,children:r.jsx(e,{bordered:!0,children:r.jsx(d,{})})})]});export{g as default}; diff --git a/web/dist/assets/index-b87e7977.js b/web/dist/assets/index-b87e7977.js new file mode 100644 index 0000000000000000000000000000000000000000..a7987328483061a5cddb5c50cf6707f643383aa2 --- /dev/null +++ b/web/dist/assets/index-b87e7977.js @@ -0,0 +1 @@ +import{Y as T,ab as v,j as a,aS as l,aa as w,R as P,a1 as k,a$ as F}from"./umi-5f6aeac9.js";import{X as b}from"./index-53e65e71.js";import{I as C}from"./index-ee353394.js";import{X as j}from"./index-109f15ec.js";import{g as q}from"./userAuth-e0a25413.js";import{e as R}from"./table-0fa6c309.js";import"./index-d4ea9132.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./index-3fcbb702.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const p="/user.userRule",pe=()=>{const{getDictionaryData:o}=T("dictModel"),[u,m]=v(),c=({type:e})=>{const t={title:"父节点",dataIndex:"pid",valueType:"treeSelect",request:async()=>(await q()).data.data,fieldProps:{fieldNames:{label:"name",value:"id"}},params:{ref:u},formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},colProps:{span:7}},r={title:"权限标识",dataIndex:"key",valueType:"text",tooltip:'例: 路由地址 "/index/index" , 权限标识为 "index.index" , 按钮权限请加上上级路由的权限标识,如:查询按钮权限 "index.index.list" ',formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}},i={title:"路由地址",dataIndex:"path",valueType:"text",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},tooltip:"项目文件系统路径,忽略:pages 或 pages/backend 或 pages/frontend 或 index.(ts|tsx)"},y={title:"图标",dataIndex:"icon",valueType:"text",renderFormItem:(d,f,g)=>a.jsx(C,{dataIndex:d.key,form:g,value:f.value}),colProps:{span:6}},s={title:"多语言标识",dataIndex:"locale",valueType:"text",colProps:{span:6}};return e==="0"?[i,r,y,s]:e==="1"?[t,i,r,s]:e==="2"?[t,r]:[]},x=F,h=e=>typeof e=="string"&&e?e.startsWith("icon-")?a.jsx(w,{type:e,className:e}):P.createElement(x[e]):"-",n=(e,t,r)=>{console.log(e);let i={id:r};i[t]=e?1:0,R(p+"/edit",i).then(()=>{k.success("修改成功")})},I=[{title:"类型",dataIndex:"type",valueType:"radio",request:async()=>await o("ruleType"),hideInTable:!0,initialValue:"0",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},colProps:{span:10}},{title:"标题",dataIndex:"name",valueType:"text",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},width:200,colProps:{span:7},tooltip:"菜单的标题,可当作菜单栏标题,如果有多语言标识,该项会被覆盖!"},{title:"图标",dataIndex:"icon",valueType:"text",renderText:(e,t)=>t.type==="0"?h(e):"-",width:60,align:"center",hideInForm:!0},{valueType:"dependency",name:["type"],hideInTable:!0,columns:c},{title:"类型",dataIndex:"type",valueType:"radioButton",request:async()=>await o("ruleType"),render:(e,t)=>a.jsx(b,{value:t.type,dict:"ruleType"}),hideInForm:!0,align:"center",width:120},{title:"排序",dataIndex:"sort",valueType:"text",tooltip:"数字越大排序越靠前",align:"center",width:100,colProps:{span:4}},{title:"权限标识",dataIndex:"key",valueType:"text",hideInForm:!0,tooltip:'例: 路由地址 "/index/index" , 权限标识为 "index.index" , 按钮权限请加上上级路由的权限标识,如:查询按钮权限 "index.index.list" ',width:240},{title:"路由地址",dataIndex:"path",valueType:"text",hideInForm:!0,renderText:(e,t)=>t.type!=="2"?e:"-",tooltip:"项目文件系统路径,忽略:pages 或 pages/backend 或 pages/frontend 或 index.(ts|tsx)",width:200},{title:"显示状态",dataIndex:"show",valueType:"switch",tooltip:"菜单栏显示状态,控制菜单是否显示再导航中(菜单规则依然生效)",align:"center",width:120,render:(e,t)=>t.type==="2"?"-":a.jsx(l,{checkedChildren:"显示",unCheckedChildren:"隐藏",defaultValue:t.show===1,onChange:r=>n(r,"show",t.id)}),colProps:{span:4},hideInForm:!0},{title:"是否禁用",dataIndex:"status",valueType:"switch",tooltip:"权限是否禁用(将不会参与权限验证)",align:"center",width:120,render:(e,t)=>a.jsx(l,{checkedChildren:"启用",unCheckedChildren:"禁用",defaultChecked:t.status===1,onChange:r=>n(r,"status",t.id)}),colProps:{span:4},hideInForm:!0},{title:"创建时间",dataIndex:"create_time",valueType:"dateTime",hideInForm:!0,align:"center"},{title:"修改时间",dataIndex:"update_time",valueType:"dateTime",hideInForm:!0,align:"center"}];return a.jsx(j,{tableApi:p,columns:I,search:!1,pagination:!1,addBefore:()=>m.toggle(),accessName:"user.rule",scroll:{x:1580}})};export{pe as default}; diff --git a/web/dist/assets/index-b9cd40b8.css b/web/dist/assets/index-b9cd40b8.css new file mode 100644 index 0000000000000000000000000000000000000000..04901477f6f941f6d0714e09351c1853e1f912ed --- /dev/null +++ b/web/dist/assets/index-b9cd40b8.css @@ -0,0 +1 @@ +.page-flange-list .actions{display:flex;align-items:center;gap:8px}.page-flange-list .actions.is-complete{background-color:#f0f8ff} diff --git a/web/dist/assets/index-bc1c5cb7.js b/web/dist/assets/index-bc1c5cb7.js deleted file mode 100644 index e1084ea2382167841e52fd592777d3d12b89d1f0..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-bc1c5cb7.js +++ /dev/null @@ -1 +0,0 @@ -import{Y as h,j as o,Z as I,V as n}from"./umi-2ee4055f.js";import{X as f}from"./index-1c416090.js";import{a as y,l as T}from"./table-c83b9d9d.js";import"./index-ea2ed5fc.js";import"./ActionButton-a9da0b15.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./Table-3849f584.js";import"./Table-0e254f81.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./RouteContext-8fa10ad2.js";const r="/system.dictItem",g=[{title:"ID",dataIndex:"id",hideInForm:!0,hideInTable:!0},{title:"名称",dataIndex:"label",valueType:"text"},{title:"数据值",dataIndex:"value",valueType:"text"},{title:"状态类型",dataIndex:"status",valueType:"text",valueEnum:{success:{text:"success",status:"Success"},error:{text:"error",status:"Error"},default:{text:"default",status:"Default"},processing:{text:"processing",status:"Processing"},warning:{text:"warning",status:"Warning"}},initialValue:"default"},{title:"是否启用",dataIndex:"switch",valueType:"switch",initialValue:!0},{title:"创建时间",dataIndex:"create_time",valueType:"date",hideInForm:!0,hideInTable:!0},{title:"修改时间",dataIndex:"update_time",valueType:"date",hideInForm:!0,hideInTable:!0}],K=d=>{const{open:l,onClose:m,dictData:e}=d,{refreshDict:p}=h("dictModel"),u=async i=>{const a=n.loading("正在添加");return y(r+"/add",Object.assign({dict_id:e.id},i)).then(s=>s.success?(n.success("添加成功"),p(),!0):!1).finally(()=>a())},c=async(i,a,s)=>{const{data:t,success:x}=await T(r+"/list",{...i,sorter:a,filter:s,dictId:e.id});return{data:(t==null?void 0:t.data)||[],success:x,total:t==null?void 0:t.total}};return o.jsx(I,{title:e.name,width:720,onClose:m,open:l,bodyStyle:{paddingBottom:80},children:o.jsx(f,{search:!1,headerTitle:e.name,tableApi:r,columns:g,handleAdd:u,rowSelectionShow:!1,accessName:"system.dict.item",request:c},e.id)})};export{K as default}; diff --git a/web/dist/assets/index-bcee78b6.js b/web/dist/assets/index-bcee78b6.js deleted file mode 100644 index 423cdbe72a4e1eae669d126b02dc601e60cb16da..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-bcee78b6.js +++ /dev/null @@ -1 +0,0 @@ -import{Y as i,j as e,A as d,$ as p}from"./umi-2ee4055f.js";import{X as l}from"./index-2f3e26df.js";import{X as m}from"./index-1c416090.js";import"./index-9456f6ef.js";import"./index-ea2ed5fc.js";import"./ActionButton-a9da0b15.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./table-c83b9d9d.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./Table-3849f584.js";import"./Table-0e254f81.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./RouteContext-8fa10ad2.js";const n="/user.user",$=()=>{const{getDictionaryData:r}=i("dictModel"),a=[{valueType:"digit",title:"ID",order:99,hideInForm:!0,dataIndex:"id"},{valueType:"text",title:"手机号",order:98,dataIndex:"mobile"},{valueType:"text",title:"用户名",order:97,dataIndex:"username"},{valueType:"text",title:"用户邮箱",order:96,dataIndex:"email"},{valueType:"text",title:"昵称",order:95,dataIndex:"nickname"},{valueType:"text",title:"头像",order:94,dataIndex:"avatar_url",render:(o,t)=>e.jsx(d,{src:t.avatar_url,style:{backgroundColor:"#87d068"},icon:e.jsx(p,{})})},{valueType:"text",title:"性别",order:93,request:async()=>await r("sex"),render:(o,t)=>e.jsx(l,{value:t.gender,dict:"sex"}),dataIndex:"gender"},{valueType:"date",title:"生日",order:92,dataIndex:"birthday"},{valueType:"money",title:"余额",order:91,dataIndex:"money"},{valueType:"money",title:"积分",order:90,dataIndex:"score"},{valueType:"textarea",title:"签名",order:89,hideInSearch:!0,hideInTable:!0,dataIndex:"motto"},{valueType:"text",title:"密码",order:88,hideInSearch:!0,hideInTable:!0,hideInForm:!0,dataIndex:"password"}];return e.jsx(m,{tableApi:n,columns:a,headerTitle:"用户列表",addShow:!1,operateShow:!0,rowSelectionShow:!0,editShow:!1,deleteShow:!0,accessName:"user.list"})};export{$ as default}; diff --git a/web/dist/assets/index-bfbbbffc.js b/web/dist/assets/index-bfbbbffc.js deleted file mode 100644 index c3bf877731b2f1003ad76c0cb2f83a378e37b368..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-bfbbbffc.js +++ /dev/null @@ -1 +0,0 @@ -import{aU as E,_ as r,K as x,k as F,a_ as L,r as y,C as R,j as i,aV as W,P as _}from"./umi-2ee4055f.js";var A=function(t){return x(x({},t.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:t.colorTextSecondary,fontSize:t.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",x({},"".concat(t.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function D(e){return E("LoginForm",function(t){var l=r(r({},t),{},{componentCls:".".concat(e)});return[A(l)]})}var H=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function M(e){var t,l=e.logo,b=e.message,j=e.contentStyle,s=e.title,h=e.subTitle,v=e.actions,C=e.children,k=e.containerStyle,B=e.otherStyle,n=F(e,H),N=L(),w=n.submitter===!1?!1:r(r({searchConfig:{submitText:N.getMessage("loginForm.submitText","登录")}},n.submitter),{},{submitButtonProps:r({size:"large",style:{width:"100%"}},(t=n.submitter)===null||t===void 0?void 0:t.submitButtonProps),render:function(u,p){var g,z=p.pop();if(typeof(n==null||(g=n.submitter)===null||g===void 0?void 0:g.render)=="function"){var a,m;return n==null||(a=n.submitter)===null||a===void 0||(m=a.render)===null||m===void 0?void 0:m.call(a,u,p)}return z}}),P=y.useContext(R.ConfigContext),f=P.getPrefixCls("pro-form-login"),S=D(f),I=S.wrapSSR,c=S.hashId,o=function(u){return"".concat(f,"-").concat(u," ").concat(c)},d=y.useMemo(function(){return l?typeof l=="string"?i.jsx("img",{src:l}):l:null},[l]);return I(i.jsxs("div",{className:W(o("container"),c),style:k,children:[i.jsxs("div",{className:"".concat(o("top")," ").concat(c).trim(),children:[s||d?i.jsxs("div",{className:"".concat(o("header")),children:[d?i.jsx("span",{className:o("logo"),children:d}):null,s?i.jsx("span",{className:o("title"),children:s}):null]}):null,h?i.jsx("div",{className:o("desc"),children:h}):null]}),i.jsxs("div",{className:o("main"),style:r({width:328},j),children:[i.jsxs(_,r(r({isKeyPressSubmit:!0},n),{},{submitter:w,children:[b,C]})),v?i.jsx("div",{className:o("main-other"),style:B,children:v}):null]})]}))}export{M as L}; diff --git a/web/dist/assets/index-c02d95b0.js b/web/dist/assets/index-c02d95b0.js deleted file mode 100644 index 85cd1685b05d442a02a0cd0d1e57cbde36637278..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-c02d95b0.js +++ /dev/null @@ -1 +0,0 @@ -import{r as o,R as c}from"./umi-2ee4055f.js";import{u as y,T as d,g as T,E as b,C as v}from"./createLoading-2160f924.js";var O=globalThis&&globalThis.__rest||function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r*{flex-shrink:0} diff --git a/web/dist/assets/index-c79ab027.js b/web/dist/assets/index-c79ab027.js new file mode 100644 index 0000000000000000000000000000000000000000..2b45721e75cf870145755a013127ca19c597b943 --- /dev/null +++ b/web/dist/assets/index-c79ab027.js @@ -0,0 +1 @@ +import{r as g,Y as T,b as l,bt as I,aA as _,ab as B,j as e,bu as L,an as j,bv as y,B as c,a1 as M}from"./umi-5f6aeac9.js";import{C as q}from"./index-55d2ebbc.js";import{F as z}from"./index-aed57eca.js";import{T as E}from"./index-25e4c7e3.js";import{P as O}from"./ProCard-a8f5c5a9.js";import{P as V}from"./index-9da4ac9d.js";import{M as A}from"./index-0da8d099.js";import{P as D}from"./index-34d06e04.js";import{P as G}from"./index-e1b2522d.js";import"./index-13cae3f4.js";import"./styleChecker-68f8791b.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./useLazyKVMap-f8dc5f3f.js";import"./index-54d1fa42.js";import"./index-d045d7e9.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-3f6a8b58.js";async function H(s){return(await g(`/admin/feedback/detail?id=${s}`,{method:"GET"})).data}async function K(s){return(await g("/admin/feedback/addReply",{method:"POST",data:s})).data}const{Paragraph:Ce,Text:o}=E,Re=()=>{var x;T("@@initialState");const s=l.useRef(),i=l.useRef(null),[m,d]=l.useState(!1),b=I(),v=new URLSearchParams(b.search),P=Number(v.get("id")),{data:n,loading:F,refresh:U}=_(H,{defaultParams:[P]}),k=l.useRef(),C=[{title:"法兰Code",dataIndex:"flange_code"},{title:"法兰名称",dataIndex:"flange_name"}],[p,{setTrue:R,setFalse:u}]=B(),w=async()=>{var t,r;if(!p){R();try{await s.current.validateFields();const a=await K({feedback_relation_id:i.current.id,content:s.current.getFieldValue("content")});i.current.replies.push(a),M.success("提交成功"),u(),(r=(t=s.current)==null?void 0:t.resetFields)==null||r.call(t)}catch(a){console.error(a),u()}}};return e.jsx(L,{spinning:F,children:e.jsxs("div",{className:"page-feedback-detail",children:[e.jsxs(O,{title:"问题反馈",headerBordered:!0,children:[e.jsx("div",{children:e.jsx(V,{actionRef:k,title:"基本信息",dataSource:n,columns:C})}),e.jsx("div",{children:(n==null?void 0:n.relations)&&n.relations.map((t,r)=>{var a,h,f;return e.jsxs("div",{children:[e.jsx(j,{}),e.jsx("div",{children:e.jsxs("div",{title:t.name,children:[e.jsx("div",{className:"my-card-title",children:e.jsx(o,{strong:!0,children:t.name})}),e.jsx("br",{}),e.jsxs("div",{className:"my-card",children:[e.jsxs("div",{className:"left",children:[(a=t.imgs)!=null&&a.length?e.jsx("div",{className:"img-box",children:e.jsx(y.PreviewGroup,{children:t.imgs.map((N,S)=>e.jsx(y,{width:80,src:N.url},S))})}):null,e.jsxs("div",{className:"info",children:[e.jsx("div",{className:"text",children:e.jsx(o,{ellipsis:!0,children:t.content})}),e.jsx("div",{className:"reply",children:e.jsx(o,{ellipsis:!0,type:"danger",children:((f=(h=t.replies)==null?void 0:h[0])==null?void 0:f.content)||""})})]})]}),e.jsxs("div",{className:"right",children:[e.jsxs(o,{type:"secondary",children:[" ",t.create_time," "]}),e.jsx(c,{type:"link",onClick:()=>{i.current=t,d(!0)},children:"反馈"})]})]})]})})]},r)})})]}),e.jsxs(A,{title:"反馈",formRef:s,autoFocusFirstInput:!0,modalProps:{destroyOnClose:!0,afterClose:()=>{var t,r;(r=(t=s.current)==null?void 0:t.resetFields)==null||r.call(t)},styles:{body:{maxHeight:"60vh",overflow:"auto"}}},width:600,open:m,onOpenChange:d,layout:"horizontal",submitter:{render:()=>[e.jsx(c,{onClick:()=>{d(!1)},children:"关闭"},"close")]},children:[e.jsxs("div",{style:{position:"sticky",top:0,zIndex:10,background:"#fff"},children:[e.jsx(D,{name:"content",label:"反馈内容",placeholder:"请输入反馈内容",rules:[{required:!0,message:"请输入反馈内容"}]}),e.jsx(z,{style:{},justify:"flex-end",align:"center",children:e.jsx(c,{type:"primary",loading:p,onClick:w,children:"提交"})}),e.jsx(j,{})]}),m&&e.jsx(q,{title:"反馈记录",size:"small",children:e.jsx(G,{rowKey:"id",dataSource:(x=i.current)==null?void 0:x.replies,metas:{title:{dataIndex:"user_name"},description:{dataIndex:"content"},subTitle:{render:(t,r)=>e.jsxs(o,{type:"secondary",children:[" ",r.create_time," "]})}}})})]})]})})};export{Re as default}; diff --git a/web/dist/assets/index-c7bc2120.js b/web/dist/assets/index-c7bc2120.js deleted file mode 100644 index a50dd41a00ed3b225799647075115e4ee563b22f..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-c7bc2120.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,T as l,S as d,A as o}from"./umi-2ee4055f.js";import{X as s}from"./index-1c416090.js";import{B as m}from"./index-c10be21a.js";import"./index-ea2ed5fc.js";import"./ActionButton-a9da0b15.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./table-c83b9d9d.js";import"./Table-3849f584.js";import"./Table-0e254f81.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-8ec65540.js";import"./index-e10ebcfa.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./index-6430ced5.js";import"./RouteContext-8fa10ad2.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-e7fd596a.js";const u="/system.monitor",M=()=>{const i=[{title:"ID",dataIndex:"id",hideInForm:!0,sorter:!0,hideInSearch:!0},{title:"接口名称",dataIndex:"name",valueType:"text"},{title:"控制器",dataIndex:"controller",valueType:"text"},{title:"方法",dataIndex:"action",valueType:"text"},{title:"访问IP",dataIndex:"ip",valueType:"text"},{title:"访问地址",dataIndex:"address",valueType:"text"},{title:"HOST",dataIndex:"host",valueType:"text"},{title:"请求用户",dataIndex:"user",valueType:"text",hideInForm:!0,hideInSearch:!0,render:(n,t)=>{var r,a;return e.jsx(e.Fragment,{children:e.jsx(l,{title:e.jsxs(e.Fragment,{children:["ID: ",t.user_id]}),children:e.jsxs(d,{children:[e.jsx(o,{src:(r=t.user)==null?void 0:r.avatar_url}),(a=t.user)==null?void 0:a.nickname]})})})}},{title:"请求用户ID",dataIndex:"user_id",valueType:"digit",hideInForm:!0,hideInTable:!0,render:(n,t)=>{var r,a;return e.jsx(e.Fragment,{children:e.jsx(l,{title:e.jsxs(e.Fragment,{children:["ID: ",t.user_id]}),children:e.jsxs(d,{children:[e.jsx(o,{src:(r=t.user)==null?void 0:r.avatar_url}),(a=t.user)==null?void 0:a.nickname]})})})}},{title:"请求地址",dataIndex:"url",valueType:"text",hideInSearch:!0,hideInTable:!0},{title:"POST数据",dataIndex:"data",valueType:"jsonCode",hideInSearch:!0,hideInTable:!0},{title:"请求参数",dataIndex:"params",valueType:"jsonCode",hideInSearch:!0,hideInTable:!0},{title:"请求时间",dataIndex:"create_time",valueType:"fromNow"},{title:"操作",render:(n,t)=>e.jsx(m,{columns:i,readonly:!0,initialValues:t,layoutType:"ModalForm",trigger:e.jsx("a",{children:"详情"}),layout:"horizontal",labelCol:{span:4},submitter:!1}),hideInForm:!0,hideInSearch:!0}];return e.jsx(e.Fragment,{children:e.jsx(s,{tableApi:u,columns:i,options:{density:!0,search:!0,fullScreen:!0,setting:!0},addShow:!1,operateShow:!1,accessName:"system.dict"})})};export{M as default}; diff --git a/web/dist/assets/index-c84374c2.js b/web/dist/assets/index-c84374c2.js new file mode 100644 index 0000000000000000000000000000000000000000..9e5bd4127283dc79a09514f5deefee41731ac323 --- /dev/null +++ b/web/dist/assets/index-c84374c2.js @@ -0,0 +1 @@ +import{Y as h,ax as f,b as x,j as e,ay as T,B as g,a1 as d}from"./umi-5f6aeac9.js";import{P as v}from"./index-3fcbb702.js";import{X as y}from"./index-109f15ec.js";import{d as P}from"./table-0fa6c309.js";import{TableEditor as b}from"./TableEditor-0d731bc8.js";import{FlangeParamTypeMap as s,FlangeParamBooleanMap as t}from"./constants-ad7b57d0.js";import"./ActionButton-ff803f23.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-6613242c.js";const m="/flangeParam",ae=()=>{h("dictModel");const p=[{title:"法兰参数ID",dataIndex:"id",hideInForm:!0,hideInTable:!0,hideInSearch:!0},{title:"参数Code",dataIndex:"code",formItemProps:{rules:[{required:!0,message:"该项为必填"}]}},{title:"参数名称",dataIndex:"name",formItemProps:{rules:[{required:!0,message:"该项为必填"}]}},{title:"参数类型",dataIndex:"type",valueType:"radio",valueEnum:s,formItemProps:{rules:[{required:!0,message:"该项为必填"}]},hideInForm:!0,hideInTable:!0},{title:"参数类型",dataIndex:"type",valueType:"radio",valueEnum:s,formItemProps:{rules:[{required:!0,message:"该项为必填"}]},hideInSearch:!0,fieldProps:{defaultValue:"input"}},{title:"分组名称",dataIndex:"group_name"},{title:"排序",dataIndex:"index",hideInTable:!0,hideInSearch:!0,fieldProps:{}},{title:"列表展示",dataIndex:"show_table",valueType:"radio",valueEnum:t,hideInForm:!0,hideInTable:!0},{title:"列表展示",dataIndex:"show_table",valueType:"radio",valueEnum:t,hideInSearch:!0,fieldProps:{defaultValue:1}},{title:"模版导出",dataIndex:"is_tpl",valueType:"radio",valueEnum:t,hideInForm:!0,hideInTable:!0},{title:"模版导出",dataIndex:"is_tpl",valueType:"radio",valueEnum:t,hideInSearch:!0,fieldProps:{defaultValue:0}},{title:"是否JSON DATA参数",dataIndex:"is_param",valueType:"radio",valueEnum:t,hideInForm:!0,hideInTable:!0},{title:"是否JSON DATA参数",dataIndex:"is_param",valueType:"radio",valueEnum:t,hideInSearch:!0,fieldProps:{defaultValue:1}},{title:"是否安装检修参数",dataIndex:"is_check",hideInSearch:!0,valueType:"radio",valueEnum:t,fieldProps:{defaultValue:0}},{title:"后缀",dataIndex:"unit_list",hideInTable:!0,hideInSearch:!0,valueType:"jsonCode",fieldProps:{defaultValue:"[]",lang:"json",language:"json"}},{title:"列表项",dataIndex:"item_list",hideInTable:!0,hideInSearch:!0,valueType:"jsonCode",fieldProps:{defaultValue:[]},renderFormItem:(a,n,l)=>e.jsx(b,{form:l,code:a.dataIndex}),colProps:{span:24}},{valueType:"dateTime",title:"更新时间",hideInForm:!0,hideInSearch:!0,dataIndex:"update_time"}],c=f(),o=x.useRef(),I=async a=>{const n=d.loading("正在删除");if(!a){d.warning("请选择需要删除的节点");return}let l=a.map(r=>r.id);P(m+"/delete",{ids:l.join()||""}).then(r=>{var i,u;r.success?(d.success(r.msg),(u=(i=o.current)==null?void 0:i.reloadAndRest)==null||u.call(i)):d.warning(r.msg)}).finally(()=>n())};return e.jsx(y,{headerTitle:"法兰参数列表",tableApi:m,columns:p,accessName:"flange.param",deleteShow:!1,actionRef:o,operateRender:a=>e.jsx(e.Fragment,{children:e.jsx(T,{accessible:c.buttonAccess("flange.param.delete"),children:e.jsx(v,{title:"删除",description:"你确定要删除这条数据吗?",onConfirm:()=>{I([a])},okText:"确认",cancelText:"取消",children:e.jsx(g,{type:"link",danger:!0,children:"删除"})})})})})};export{ae as default}; diff --git a/web/dist/assets/index-c883f458.js b/web/dist/assets/index-c883f458.js new file mode 100644 index 0000000000000000000000000000000000000000..eb6ea05752eeb0bd0f74d25461e2935cdecb429a --- /dev/null +++ b/web/dist/assets/index-c883f458.js @@ -0,0 +1 @@ +import{aA as l,b as p,j as e,B as c,b0 as s,a0 as d,d as a,b4 as m}from"./umi-5f6aeac9.js";import{C as u}from"./index-55d2ebbc.js";import{F as h}from"./index-aed57eca.js";import{T as x}from"./index-25e4c7e3.js";import{a as y}from"./stat-6c5b4dda.js";import{P as j}from"./index-e1b2522d.js";import"./index-13cae3f4.js";import"./styleChecker-68f8791b.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-3376120c.js";import"./index-9d3aa6d1.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";import"./index-3fcbb702.js";import"./ActionButton-ff803f23.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-3f6a8b58.js";const{Title:V,Text:r}=x;a.extend(m);const W=()=>{const{data:o,loading:f,runAsync:n}=l(async i=>(await y(i)).data,{manual:!0});return p.useEffect(()=>{n({current:1,pageSize:6})},[]),e.jsx("div",{className:"dashboard-feedback-list",children:e.jsx(u,{title:"反馈信息",style:{width:"100%"},extra:e.jsx(c,{type:"link",onClick:()=>{s.push("/feedback")},children:"全部反馈信息"}),children:e.jsx(j,{ghost:!0,itemCardProps:{ghost:!0},pagination:{defaultPageSize:8,showSizeChanger:!1},showActions:"hover",rowSelection:{},grid:{gutter:16,column:3},onItem:i=>({onClick:()=>{s.push(`/feedback/detail?id=${i.feedback_id}`)}}),metas:{title:{dataIndex:"flange_code",render:(i,t)=>e.jsxs(r,{ellipsis:!0,children:[e.jsx(r,{type:"secondary",children:"法兰编号:"}),t.flange_code]})},actions:{cardActionProps:"extra",render:(i,t)=>e.jsxs(r,{style:{whiteSpace:"nowrap"},children:[e.jsx(r,{type:"secondary",children:"项目:"}),t.project_name]})},subTitle:{},content:{dataIndex:"content",render:(i,t)=>e.jsxs(d,{direction:"vertical",size:"small",style:{width:"100%"},children:[e.jsx(r,{ellipsis:!0,children:t.name}),e.jsx(r,{ellipsis:!0,children:t.create_time}),e.jsx(r,{ellipsis:!0,type:"secondary",children:t.content}),e.jsxs(h,{justify:"space-between",align:"center",children:[e.jsx(r,{ellipsis:!0,type:"secondary",children:t.user_name}),e.jsx(r,{ellipsis:!0,type:"secondary",children:a(t.create_time).fromNow()})]})]})}},headerTitle:null,dataSource:o})})})};export{W as default}; diff --git a/web/dist/assets/index-a3a55092.js b/web/dist/assets/index-c92fe1fc.js similarity index 76% rename from web/dist/assets/index-a3a55092.js rename to web/dist/assets/index-c92fe1fc.js index 2e0537cd03e5fc3a8a8259aa68e26599803ca07b..65730e0cff1715bea4ccea60f6b6f409f82af147 100644 --- a/web/dist/assets/index-a3a55092.js +++ b/web/dist/assets/index-c92fe1fc.js @@ -1 +1 @@ -import{r as i,R as l,j as m}from"./umi-2ee4055f.js";import{C as y}from"./index-8a549704.js";import{u as p,L as b,g as v,E as T,C as E}from"./createLoading-2160f924.js";import"./index-275c5384.js";import"./react-content-loader.es-7f7b682d.js";var O=globalThis&&globalThis.__rest||function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{const e={percent:.25,height:200,outline:{border:4,distance:8},wave:{length:128}};return m.jsx(y,{title:"水波图",children:m.jsx(x,{...e})})},N=C;export{N as default}; +import{b as i,R as l,j as m}from"./umi-5f6aeac9.js";import{C as y}from"./index-55d2ebbc.js";import{u as b,L as p,g as v,E as T,a as E}from"./createLoading-e07c13ae.js";import"./index-13cae3f4.js";import"./react-content-loader.es-3bd9b17f.js";var O=globalThis&&globalThis.__rest||function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{const e={percent:.25,height:200,outline:{border:4,distance:8},wave:{length:128}};return m.jsx(y,{title:"水波图",children:m.jsx(x,{...e})})},N=C;export{N as default}; diff --git a/web/dist/assets/index-ca47b438.js b/web/dist/assets/index-ca47b438.js deleted file mode 100644 index 433c3492f3a1fb64080f436bd4db8a2da5c9887c..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-ca47b438.js +++ /dev/null @@ -1 +0,0 @@ -import{R as h,k as v,r as F,a0 as S,j as x,a1 as C,_ as r,a2 as E}from"./umi-2ee4055f.js";var q=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],w=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],f=function(e,t){var a=e.fieldProps,s=e.children,p=e.params,l=e.proFieldProps,n=e.mode,i=e.valueEnum,u=e.request,d=e.showSearch,c=e.options,m=v(e,q),g=F.useContext(S);return x.jsx(C,r(r({valueEnum:E(i),request:u,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:r({options:c,mode:n,showSearch:d,getPopupContainer:g.getPopupContainer},a),ref:t,proFieldProps:l},m),{},{children:s}))},j=h.forwardRef(function(o,e){var t=o.fieldProps,a=o.children,s=o.params,p=o.proFieldProps,l=o.mode,n=o.valueEnum,i=o.request,u=o.options,d=v(o,w),c=r({options:u,mode:l||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},t),m=F.useContext(S);return x.jsx(C,r(r({valueEnum:E(n),request:i,params:s,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:r({getPopupContainer:m.getPopupContainer},c),ref:e,proFieldProps:p},d),{},{children:a}))}),b=h.forwardRef(f),R=j,P=b;P.SearchSelect=R;P.displayName="ProFormComponent";const L=P;export{L as P}; diff --git a/web/dist/assets/index-cc6b0338.js b/web/dist/assets/index-cc6b0338.js new file mode 100644 index 0000000000000000000000000000000000000000..9d6112a7da043fa1526945c3067510ed1036502f --- /dev/null +++ b/web/dist/assets/index-cc6b0338.js @@ -0,0 +1 @@ +import{b as s,w,j as k,s as V,cU as B,_ as o,v as L,S as N,an as Y,bb as Z,b5 as O,G as U,aw as rr,P as W,H as I,L as er,cV as g,N as M,O as C,cp as nr}from"./umi-5f6aeac9.js";import{D as or}from"./index-25d65b6e.js";import{P as ur,L as ar}from"./index-168af0e9.js";import{M as lr}from"./index-0da8d099.js";import{Q as tr}from"./index-6a3ca2c0.js";import{S as Q}from"./index-5a53c961.js";import{P as dr}from"./index-3376120c.js";function sr(){var t=s.useState(!0),r=w(t,2),n=r[1],u=s.useCallback(function(){return n(function(a){return!a})},[]);return u}function cr(t,r){var n=s.useMemo(function(){var u={current:r};return new Proxy(u,{set:function(l,d,v){return Object.is(l[d],v)||(l[d]=v,t(n)),!0}})},[]);return n}function vr(t){var r=sr(),n=cr(r,t);return n}var fr=function(r){var n=r.children;return k.jsx(k.Fragment,{children:n})};const pr=fr;var ir=["steps","columns","forceUpdate","grid"],yr=function(r){var n=r.steps,u=r.columns,a=r.forceUpdate,l=r.grid,d=V(r,ir),v=B(d),S=s.useCallback(function(c){var f,p;(f=(p=v.current).onCurrentChange)===null||f===void 0||f.call(p,c),a([])},[a,v]),y=s.useMemo(function(){return n==null?void 0:n.map(function(c,f){return s.createElement(Vr,o(o({grid:l},c),{},{key:f,layoutType:"StepForm",columns:u[f]}))})},[u,l,n]);return k.jsx(Q,o(o({},d),{},{onCurrentChange:S,children:y}))};const Fr=yr;var mr=function(r,n){if(r.valueType==="dependency"){var u,a,l,d=(u=r.getFieldProps)===null||u===void 0?void 0:u.call(r);return L(Array.isArray((a=r.name)!==null&&a!==void 0?a:d==null?void 0:d.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),L(typeof r.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((l=r.name)!==null&&l!==void 0?l:d==null?void 0:d.name)?s.createElement(N,o(o({name:r.name},d),{},{key:r.key}),function(v){return!r.columns||typeof r.columns!="function"?null:n.genItems(r.columns(v))}):null}return!0},Pr=function(r){if(r.valueType==="divider"){var n;return s.createElement(Y,o(o({},(n=r.getFieldProps)===null||n===void 0?void 0:n.call(r)),{},{key:r.key}))}return!0},hr=["key"],xr=function(r,n){var u=n.action,a=n.formRef,l=n.type,d=n.originItem,v=o(o({},Z(r,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:r.name||r.key||r.dataIndex,width:r.width,render:r!=null&&r.render?function(f,p,m){var F,P,h,T;return r==null||(F=r.render)===null||F===void 0?void 0:F.call(r,f,p,m,u==null?void 0:u.current,o(o({type:l},r),{},{key:(P=r.key)===null||P===void 0?void 0:P.toString(),formItemProps:(h=r.getFormItemProps)===null||h===void 0?void 0:h.call(r),fieldProps:(T=r.getFieldProps)===null||T===void 0?void 0:T.call(r)}))}:void 0}),S=function(){var p=v.key,m=V(v,hr);return k.jsx(U,o(o({},m),{},{ignoreFormItem:!0}),p)},y=r!=null&&r.renderFormItem?function(f,p){var m,F,P,h,T=O(o(o({},p),{},{onChange:void 0}));return r==null||(m=r.renderFormItem)===null||m===void 0?void 0:m.call(r,o(o({type:l},r),{},{key:(F=r.key)===null||F===void 0?void 0:F.toString(),formItemProps:(P=r.getFormItemProps)===null||P===void 0?void 0:P.call(r),fieldProps:(h=r.getFieldProps)===null||h===void 0?void 0:h.call(r),originProps:d}),o(o({},T),{},{defaultRender:S,type:l}),a.current)}:void 0,c=function(){if(r!=null&&r.renderFormItem){var p=y==null?void 0:y(null,{});if(!p||r.ignoreFormItem)return p}return s.createElement(U,o(o({},v),{},{key:[r.key,r.index||0].join("-"),renderFormItem:y}))};return r.dependencies?k.jsx(N,{name:r.dependencies||[],children:c},r.key):c()},Sr=function(r,n){var u=n.genItems;if(r.valueType==="formList"&&r.dataIndex){var a,l;return!r.columns||!Array.isArray(r.columns)?null:s.createElement(rr,o(o({},(a=r.getFormItemProps)===null||a===void 0?void 0:a.call(r)),{},{key:r.key,name:r.dataIndex,label:r.label,initialValue:r.initialValue,colProps:r.colProps,rowProps:r.rowProps},(l=r.getFieldProps)===null||l===void 0?void 0:l.call(r)),u(r.columns))}return!0},kr=function(r,n){var u=n.genItems;if(r.valueType==="formSet"&&r.dataIndex){var a,l;return!r.columns||!Array.isArray(r.columns)?null:s.createElement(ur,o(o({},(a=r.getFormItemProps)===null||a===void 0?void 0:a.call(r)),{},{key:r.key,initialValue:r.initialValue,name:r.dataIndex,label:r.label,colProps:r.colProps,rowProps:r.rowProps},(l=r.getFieldProps)===null||l===void 0?void 0:l.call(r)),u(r.columns))}return!0},Tr=function(r,n){var u=n.genItems;if(r.valueType==="group"){var a;return!r.columns||!Array.isArray(r.columns)?null:k.jsx(dr,o(o({label:r.label,colProps:r.colProps,rowProps:r.rowProps},(a=r.getFieldProps)===null||a===void 0?void 0:a.call(r)),{},{children:u(r.columns)}),r.key)}return!0},br=function(r){return r.valueType&&typeof r.valueType=="string"&&["index","indexBorder","option"].includes(r==null?void 0:r.valueType)?null:!0},_=[br,Tr,Sr,kr,Pr,mr],Rr=function(r,n){for(var u=0;u<_.length;u++){var a=_[u],l=a(r,n);if(l!==!0)return l}return xr(r,n)},Cr=["columns","layoutType","type","action","shouldUpdate","formRef"],wr={DrawerForm:or,QueryFilter:tr,LightFilter:ar,StepForm:Q.StepForm,StepsForm:Fr,ModalForm:lr,Embed:pr,Form:W};function Vr(t){var r=t.columns,n=t.layoutType,u=n===void 0?"Form":n,a=t.type,l=a===void 0?"form":a,d=t.action,v=t.shouldUpdate,S=v===void 0?function(b,e){return M(b)!==M(e)}:v,y=t.formRef,c=V(t,Cr),f=wr[u]||W,p=I.useForm(),m=w(p,1),F=m[0],P=I.useFormInstance(),h=s.useState([]),T=w(h,2),$=T[1],q=s.useState(function(){return[]}),E=w(q,2),z=E[0],G=E[1],x=vr(t.form||P||F),j=s.useRef(),A=B(t),D=er(function(b){return b.filter(function(e){return!(e.hideInForm&&l==="form")}).sort(function(e,i){return i.order||e.order?(i.order||0)-(e.order||0):(i.index||0)-(e.index||0)}).map(function(e,i){var R=C(e.title,e,"form",k.jsx(nr,{label:e.title,tooltip:e.tooltip||e.tip})),X=O({title:R,label:R,name:e.name,valueType:C(e.valueType,{}),key:e.key||e.dataIndex||i,columns:e.columns,valueEnum:e.valueEnum,dataIndex:e.dataIndex||e.key,initialValue:e.initialValue,width:e.width,index:e.index,readonly:e.readonly,colSize:e.colSize,colProps:e.colProps,rowProps:e.rowProps,className:e.className,tooltip:e.tooltip||e.tip,dependencies:e.dependencies,proFieldProps:e.proFieldProps,ignoreFormItem:e.ignoreFormItem,getFieldProps:e.fieldProps?function(){return C(e.fieldProps,x.current,e)}:void 0,getFormItemProps:e.formItemProps?function(){return C(e.formItemProps,x.current,e)}:void 0,render:e.render,renderFormItem:e.renderFormItem,renderText:e.renderText,request:e.request,params:e.params,transform:e.transform,convertValue:e.convertValue,debounceTime:e.debounceTime,defaultKeyWords:e.defaultKeyWords});return Rr(X,{action:d,type:l,originItem:e,formRef:x,genItems:D})}).filter(function(e){return!!e})}),H=s.useCallback(function(b,e){var i=A.current.onValuesChange;(S===!0||typeof S=="function"&&S(e,j.current))&&G([]),j.current=e,i==null||i(b,e)},[A,S]),K=g(function(){if(x.current&&!(r.length&&Array.isArray(r[0])))return D(r)},[r,c==null?void 0:c.open,d,l,z,!!x.current]),J=g(function(){return u==="StepsForm"?{forceUpdate:$,columns:r}:{}},[r,u]);return s.useImperativeHandle(y,function(){return x.current},[x.current]),k.jsx(f,o(o(o({},J),c),{},{onInit:function(e,i){var R;y&&(y.current=i),c==null||(R=c.onInit)===null||R===void 0||R.call(c,e,i),x.current=i},form:t.form||F,formRef:x,onValuesChange:H,children:K}))}export{Vr as B}; diff --git a/web/dist/assets/index-cd50d08e.js b/web/dist/assets/index-cd50d08e.js new file mode 100644 index 0000000000000000000000000000000000000000..77a519c949d0d33f1f688586086b7277c8956071 --- /dev/null +++ b/web/dist/assets/index-cd50d08e.js @@ -0,0 +1 @@ +import{b as c,R as u,aA as p,d as f,j as h}from"./umi-5f6aeac9.js";import{g as x}from"./stat-6c5b4dda.js";import{C as T}from"./index-55d2ebbc.js";import{u as b,A as v,g as j,E as O,a as E}from"./createLoading-e07c13ae.js";import"./index-13cae3f4.js";import"./react-content-loader.es-3bd9b17f.js";var C=globalThis&&globalThis.__rest||function(e,s){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&s.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a{const{data:e=[],loading:s,runAsync:n}=p(async t=>{const a=await x(t),l=[],d=a.reduce((r,o)=>(r[o.date_str]=o.count,r),{});let i=t.startTime;for(;i<=t.endTime;){const r=f.unix(i).format("YYYY-MM-DD");l.push({日期:r,数量:d[r]||0}),i+=86400}return Object.values(l).sort((r,o)=>o.数量-r.数量)},{manual:!0});return c.useEffect(()=>{n({type:"project",startTime:f().subtract(7,"day").startOf("day").unix(),endTime:f().startOf("day").unix(),flag:"finished"})},[]),h.jsx(T,{title:"法兰管控完成量",children:h.jsx("div",{style:{height:400},children:h.jsx(_,{...w,data:e})})})};export{I as default}; diff --git a/web/dist/assets/index-cecc9dfd.js b/web/dist/assets/index-cecc9dfd.js new file mode 100644 index 0000000000000000000000000000000000000000..ceeb2cdff98a04142e21f03cf29d628ca940a79a --- /dev/null +++ b/web/dist/assets/index-cecc9dfd.js @@ -0,0 +1 @@ +import{j as e,Z as i,$ as t,a0 as n}from"./umi-5f6aeac9.js";import{C as s}from"./index-55d2ebbc.js";import{D as l}from"./index-54d1fa42.js";import"./index-13cae3f4.js";const r=[{key:"1",label:"系统",children:"法兰完整性管理软件"},{key:"2",label:"版本号",children:"v1.0.3"},{key:"3",label:"最后更新时间",children:"2025-02-30"}],a=[{key:"4",label:"JS框架",children:"@umijs/max: ^4.1.10"},{key:"6",label:"antd",children:"antd: ^5.16.0"},{key:"1",label:"Charts 图表",children:"@ant-design/charts: ^1.4.3"},{key:"2",label:"Icon 图标",children:"@ant-design/icons: ^5.2.6"},{key:"3",label:"组件",children:"@ant-design/pro-components: ^2.7.0"},{key:"5",label:"Hooks",children:"ahooks: ^3.7.11"},{key:"8",label:"图片剪裁",children:"antd-img-crop: ^4.21.0"},{key:"7",label:"日期库",children:"dayjs: ^1.11.10"},{key:"9",label:"数据模拟",children:"mockjs: ^1.1.0"}],c=[{key:"1",label:"types/mockjs",children:"@types/mockjs: ^1.0.7"},{key:"2",label:"types/react",children:"@types/react: ^18.2.21"},{key:"3",label:"types/react-dom",children:"@types/react-dom: ^18.2.7"},{key:"4",label:"typescript",children:"typescript: ^5.1.6"}],o=[{key:"1",label:"php",children:"php: >=8.1.0"},{key:"2",label:"topthink/framework",children:"topthink/framework: ^8.0"},{key:"3",label:"topthink/think-orm",children:"topthink/think-orm: ^3.0"},{key:"4",label:"topthink/think-filesystem",children:"topthink/think-filesystem: ^2.0"},{key:"5",label:"topthink/think-multi-app",children:"topthink/think-multi-app: ^1.0"},{key:"6",label:"topthink/think-view",children:"topthink/think-view: ^2.0"}],m=()=>e.jsxs(s,{title:"系统信息",children:[e.jsx(l,{items:r,column:3}),e.jsxs(i,{gutter:[16,16],children:[e.jsx(t,{span:"12",children:e.jsxs(n,{direction:"vertical",size:"middle",style:{display:"flex"},children:[e.jsx(l,{title:"前端生产依赖",column:1,size:"small",bordered:!0,items:a}),e.jsx(l,{title:"前端开发依赖",column:1,size:"small",bordered:!0,items:c})]})}),e.jsx(t,{span:"12",children:e.jsx(l,{title:"后端依赖",column:1,size:"small",bordered:!0,items:o})})]})]});export{m as default}; diff --git a/web/dist/assets/index-705e7852.js b/web/dist/assets/index-d045d7e9.js similarity index 49% rename from web/dist/assets/index-705e7852.js rename to web/dist/assets/index-d045d7e9.js index 9d131bfa93598ead114a020e7676456b8a95500b..4efcafff7966c4bff558eb1da389a42c409e46a4 100644 --- a/web/dist/assets/index-705e7852.js +++ b/web/dist/assets/index-d045d7e9.js @@ -1,2 +1,2 @@ -import{r as l,b5 as N,R as y,d as Ie,B as ee,z as ke,cj as te,be as _,cI as ne,cJ as Fe,bc as A,cK as oe,cL as le,aV as w,c0 as Me,c1 as X,cM as Be,cN as Re,cO as Le,cP as ze,cQ as Ae,cR as z,bl as We,bY as _e,cS as Ve,cT as De,c as He,u as Y,bh as qe,cU as Qe,cV as Xe,cW as Ye,C as se,by as Ze,cX as Ge,cY as Ue,cZ as Je,bf as Ke,c_ as et,c$ as tt}from"./umi-2ee4055f.js";import{A as re}from"./ActionButton-a9da0b15.js";function nt(){const[e,n]=l.useState([]),s=l.useCallback(t=>(n(o=>[].concat(N(o),[t])),()=>{n(o=>o.filter(c=>c!==t))}),[]);return[e,s]}const M=y.createContext({}),{Provider:ce}=M,ot=()=>{const{autoFocusButton:e,cancelButtonProps:n,cancelTextLocale:s,isSilent:t,mergedOkCancel:o,rootPrefixCls:c,close:x,onCancel:i,onConfirm:a}=l.useContext(M);return o?y.createElement(re,{isSilent:t,actionFn:i,close:function(){x==null||x.apply(void 0,arguments),a==null||a(!1)},autoFocus:e==="cancel",buttonProps:n,prefixCls:`${c}-btn`},s):null},Z=ot,lt=()=>{const{autoFocusButton:e,close:n,isSilent:s,okButtonProps:t,rootPrefixCls:o,okTextLocale:c,okType:x,onConfirm:i,onOk:a}=l.useContext(M);return y.createElement(re,{isSilent:s,type:x||"primary",actionFn:a,close:function(){n==null||n.apply(void 0,arguments),i==null||i(!0)},autoFocus:e==="ok",buttonProps:t,prefixCls:`${o}-btn`},c)},G=lt,st=()=>Ie()&&window.document.documentElement,rt=()=>{const{cancelButtonProps:e,cancelTextLocale:n,onCancel:s}=l.useContext(M);return y.createElement(ee,Object.assign({onClick:s},e),n)},U=rt,ct=()=>{const{confirmLoading:e,okButtonProps:n,okType:s,okTextLocale:t,onOk:o}=l.useContext(M);return y.createElement(ee,Object.assign({},ke(s),{loading:e,onClick:o},n),t)},J=ct;function ae(e,n){return y.createElement("span",{className:`${e}-close-x`},n||y.createElement(te,{className:`${e}-close-icon`}))}const ie=e=>{const{okText:n,okType:s="primary",cancelText:t,confirmLoading:o,onOk:c,onCancel:x,okButtonProps:i,cancelButtonProps:a,footer:v}=e,[r]=_("Modal",ne()),m=n||(r==null?void 0:r.okText),u=t||(r==null?void 0:r.cancelText),C={confirmLoading:o,okButtonProps:i,cancelButtonProps:a,okTextLocale:m,cancelTextLocale:u,okType:s,onOk:c,onCancel:x},p=y.useMemo(()=>C,N(Object.values(C)));let f;return typeof v=="function"||typeof v>"u"?(f=y.createElement(y.Fragment,null,y.createElement(U,null),y.createElement(J,null)),typeof v=="function"&&(f=v(f,{OkBtn:J,CancelBtn:U})),f=y.createElement(ce,{value:p},f)):f=v,y.createElement(Fe,{disabled:!1},f)};var at=globalThis&&globalThis.__rest||function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{W={x:e.pageX,y:e.pageY},setTimeout(()=>{W=null},100)};st()&&document.documentElement.addEventListener("click",it,!0);const ut=e=>{var n;const{getPopupContainer:s,getPrefixCls:t,direction:o,modal:c}=l.useContext(A),x=T=>{const{onCancel:E}=e;E==null||E(T)},i=T=>{const{onOk:E}=e;E==null||E(T)},{prefixCls:a,className:v,rootClassName:r,open:m,wrapClassName:u,centered:C,getContainer:p,focusTriggerAfterClose:f=!0,style:g,visible:b,width:d=520,footer:P,classNames:O,styles:j,children:k,loading:F}=e,S=at(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=t("modal",a),V=t(),D=oe($),[Oe,H,he]=le($,D),Pe=w(u,{[`${$}-centered`]:C??(c==null?void 0:c.centered),[`${$}-wrap-rtl`]:o==="rtl"}),$e=P!==null&&!F?l.createElement(ie,Object.assign({},e,{onOk:i,onCancel:x})):null,[q,Q,Ee]=Me(X(e),X(c),{closable:!0,closeIcon:l.createElement(te,{className:`${$}-close-icon`}),closeIconRender:T=>ae($,T)}),je=Be(`.${$}-content`),[Te,we]=Re("Modal",S.zIndex),[Ne,R]=l.useMemo(()=>d&&typeof d=="object"?[void 0,d]:[d,void 0],[d]),Se=l.useMemo(()=>{const T={};return R&&Object.keys(R).forEach(E=>{const L=R[E];L!==void 0&&(T[`--${$}-${E}-width`]=typeof L=="number"?`${L}px`:L)}),T},[R]);return Oe(l.createElement(Le,{form:!0,space:!0},l.createElement(ze.Provider,{value:we},l.createElement(Ae,Object.assign({width:Ne},S,{zIndex:Te,getContainer:p===void 0?s:p,prefixCls:$,rootClassName:w(H,r,he,D),footer:$e,visible:m??b,mousePosition:(n=S.mousePosition)!==null&&n!==void 0?n:W,onClose:x,closable:q&&{disabled:Ee,closeIcon:Q},closeIcon:Q,focusTriggerAfterClose:f,transitionName:z(V,"zoom",e.transitionName),maskTransitionName:z(V,"fade",e.maskTransitionName),className:w(H,v,c==null?void 0:c.className),style:Object.assign(Object.assign(Object.assign({},c==null?void 0:c.style),g),Se),classNames:Object.assign(Object.assign(Object.assign({},c==null?void 0:c.classNames),O),{wrapper:w(Pe,O==null?void 0:O.wrapper)}),styles:Object.assign(Object.assign({},c==null?void 0:c.styles),j),panelRef:je}),F?l.createElement(We,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):k))))},ue=ut,ft=e=>{const{componentCls:n,titleFontSize:s,titleLineHeight:t,modalConfirmIconSize:o,fontSize:c,lineHeight:x,modalTitleHeight:i,fontHeight:a,confirmBodyPadding:v}=e,r=`${n}-confirm`;return{[r]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${r}-body-wrapper`]:Object.assign({},He()),[`&${n} ${n}-body`]:{padding:v},[`${r}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(a).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(i).sub(o).equal()).div(2).equal()}},[`${r}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Y(e.marginSM)})`},[`${e.iconCls} + ${r}-paragraph`]:{maxWidth:`calc(100% - ${Y(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${r}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:s,lineHeight:t},[`${r}-content`]:{color:e.colorText,fontSize:c,lineHeight:x},[`${r}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${r}-error ${r}-body > ${e.iconCls}`]:{color:e.colorError},[`${r}-warning ${r}-body > ${e.iconCls}, - ${r}-confirm ${r}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${r}-info ${r}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${r}-success ${r}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},dt=_e(["Modal","confirm"],e=>{const n=Ve(e);return[ft(n)]},De,{order:-1e3});var mt=globalThis&&globalThis.__rest||function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);od,N(Object.values(d))),O=l.createElement(l.Fragment,null,l.createElement(Z,null),l.createElement(G,null)),j=e.title!==void 0&&e.title!==null,k=`${c}-body`;return l.createElement("div",{className:`${c}-body-wrapper`},l.createElement("div",{className:w(k,{[`${k}-has-title`]:j})},m,l.createElement("div",{className:`${c}-paragraph`},j&&l.createElement("span",{className:`${c}-title`},e.title),l.createElement("div",{className:`${c}-content`},e.content))),a===void 0||typeof a=="function"?l.createElement(ce,{value:P},l.createElement("div",{className:`${c}-btns`},typeof a=="function"?a(O,{OkBtn:G,CancelBtn:Z}):O)):a,l.createElement(dt,{prefixCls:n}))}const Ct=e=>{const{close:n,zIndex:s,maskStyle:t,direction:o,prefixCls:c,wrapClassName:x,rootPrefixCls:i,bodyStyle:a,closable:v=!1,onConfirm:r,styles:m}=e,u=`${c}-confirm`,C=e.width||416,p=e.style||{},f=e.mask===void 0?!0:e.mask,g=e.maskClosable===void 0?!1:e.maskClosable,b=w(u,`${u}-${e.type}`,{[`${u}-rtl`]:o==="rtl"},e.className),[,d]=Ze(),P=l.useMemo(()=>s!==void 0?s:d.zIndexPopupBase+Ge,[s,d]);return l.createElement(ue,Object.assign({},e,{className:b,wrapClassName:w({[`${u}-centered`]:!!e.centered},x),onCancel:()=>{n==null||n({triggerCancel:!0}),r==null||r(!1)},title:"",footer:null,transitionName:z(i||"","zoom",e.transitionName),maskTransitionName:z(i||"","fade",e.maskTransitionName),mask:f,maskClosable:g,style:p,styles:Object.assign({body:a,mask:t},m),width:C,zIndex:P,closable:v}),l.createElement(fe,Object.assign({},e,{confirmPrefixCls:u})))},de=e=>{const{rootPrefixCls:n,iconPrefixCls:s,direction:t,theme:o}=e;return l.createElement(se,{prefixCls:n,iconPrefixCls:s,direction:t,theme:o},l.createElement(Ct,Object.assign({},e)))},gt=[],I=gt;let me="";function Ce(){return me}const bt=e=>{var n,s;const{prefixCls:t,getContainer:o,direction:c}=e,x=ne(),i=l.useContext(A),a=Ce()||i.getPrefixCls(),v=t||`${a}-modal`;let r=o;return r===!1&&(r=void 0),y.createElement(de,Object.assign({},e,{rootPrefixCls:a,prefixCls:v,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:c??i.direction,locale:(s=(n=i.locale)===null||n===void 0?void 0:n.Modal)!==null&&s!==void 0?s:x,getContainer:r}))};function B(e){const n=Je(),s=document.createDocumentFragment();let t=Object.assign(Object.assign({},e),{close:a,open:!0}),o,c;function x(){for(var r,m=arguments.length,u=new Array(m),C=0;Cg==null?void 0:g.triggerCancel)){var f;(r=e.onCancel)===null||r===void 0||(f=r).call.apply(f,[e,()=>{}].concat(N(u.slice(1))))}for(let g=0;g{const m=n.getPrefixCls(void 0,Ce()),u=n.getIconPrefixCls(),C=n.getTheme(),p=y.createElement(bt,Object.assign({},r));c=Ue()(y.createElement(se,{prefixCls:m,iconPrefixCls:u,theme:C},n.holderRender?n.holderRender(p):p),s)})}function a(){for(var r=arguments.length,m=new Array(r),u=0;u{typeof e.afterClose=="function"&&e.afterClose(),x.apply(this,m)}}),t.visible&&delete t.visible,i(t)}function v(r){typeof r=="function"?t=r(t):t=Object.assign(Object.assign({},t),r),i(t)}return i(t),I.push(a),{destroy:a,update:v}}function ge(e){return Object.assign(Object.assign({},e),{type:"warning"})}function be(e){return Object.assign(Object.assign({},e),{type:"info"})}function xe(e){return Object.assign(Object.assign({},e),{type:"success"})}function ve(e){return Object.assign(Object.assign({},e),{type:"error"})}function pe(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function xt(e){let{rootPrefixCls:n}=e;me=n}var vt=globalThis&&globalThis.__rest||function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{var s,{afterClose:t,config:o}=e,c=vt(e,["afterClose","config"]);const[x,i]=l.useState(!0),[a,v]=l.useState(o),{direction:r,getPrefixCls:m}=l.useContext(A),u=m("modal"),C=m(),p=()=>{var d;t(),(d=a.afterClose)===null||d===void 0||d.call(a)},f=function(){var d;i(!1);for(var P=arguments.length,O=new Array(P),j=0;jS==null?void 0:S.triggerCancel)){var F;(d=a.onCancel)===null||d===void 0||(F=d).call.apply(F,[a,()=>{}].concat(N(O.slice(1))))}};l.useImperativeHandle(n,()=>({destroy:f,update:d=>{v(P=>Object.assign(Object.assign({},P),d))}}));const g=(s=a.okCancel)!==null&&s!==void 0?s:a.type==="confirm",[b]=_("Modal",Ke.Modal);return l.createElement(de,Object.assign({prefixCls:u,rootPrefixCls:C},a,{close:f,open:x,afterClose:p,okText:a.okText||(g?b==null?void 0:b.okText:b==null?void 0:b.justOkText),direction:a.direction||r,cancelText:a.cancelText||(b==null?void 0:b.cancelText)},c))},yt=l.forwardRef(pt);let K=0;const Ot=l.memo(l.forwardRef((e,n)=>{const[s,t]=nt();return l.useImperativeHandle(n,()=>({patchElement:t}),[]),l.createElement(l.Fragment,null,s)}));function ht(){const e=l.useRef(null),[n,s]=l.useState([]);l.useEffect(()=>{n.length&&(N(n).forEach(x=>{x()}),s([]))},[n]);const t=l.useCallback(c=>function(i){var a;K+=1;const v=l.createRef();let r;const m=new Promise(g=>{r=g});let u=!1,C;const p=l.createElement(yt,{key:`modal-${K}`,config:c(i),ref:v,afterClose:()=>{C==null||C()},isSilent:()=>u,onConfirm:g=>{r(g)}});return C=(a=e.current)===null||a===void 0?void 0:a.patchElement(p),C&&I.push(C),{destroy:()=>{function g(){var b;(b=v.current)===null||b===void 0||b.destroy()}v.current?g():s(b=>[].concat(N(b),[g]))},update:g=>{function b(){var d;(d=v.current)===null||d===void 0||d.update(g)}v.current?b():s(d=>[].concat(N(d),[b]))},then:g=>(u=!0,m.then(g))}},[]);return[l.useMemo(()=>({info:t(be),success:t(xe),error:t(ve),warning:t(ge),confirm:t(pe)}),[]),l.createElement(Ot,{key:"modal-holder",ref:e})]}var Pt=globalThis&&globalThis.__rest||function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:s,closeIcon:t,closable:o,type:c,title:x,children:i,footer:a}=e,v=Pt(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:r}=l.useContext(A),m=r(),u=n||r("modal"),C=oe(m),[p,f,g]=le(u,C),b=`${u}-confirm`;let d={};return c?d={closable:o??!1,title:"",footer:"",children:l.createElement(fe,Object.assign({},e,{prefixCls:u,confirmPrefixCls:b,rootPrefixCls:m,content:i}))}:d={closable:o??!0,title:x,footer:a!==null&&l.createElement(ie,Object.assign({},e)),children:i},p(l.createElement(tt,Object.assign({prefixCls:u,className:w(f,`${u}-pure-panel`,c&&b,c&&`${b}-${c}`,s,g,C)},v,{closeIcon:ae(u,t),closable:o},d)))},Et=et($t);function ye(e){return B(ge(e))}const h=ue;h.useModal=ht;h.info=function(n){return B(be(n))};h.success=function(n){return B(xe(n))};h.error=function(n){return B(ve(n))};h.warning=ye;h.warn=ye;h.confirm=function(n){return B(pe(n))};h.destroyAll=function(){for(;I.length;){const n=I.pop();n&&n()}};h.config=xt;h._InternalPanelDoNotUseOrYouWillBeFired=Et;const wt=h;export{wt as M}; +import{b as l,bk as N,R as y,o as Ie,B as ee,q as ke,cu as te,bd as W,c_ as ne,c$ as Fe,b9 as A,d0 as oe,d1 as le,b3 as w,ci as Me,cj as X,d2 as Be,d3 as Re,d4 as Le,d5 as ze,d6 as Ae,d7 as z,bj as _e,ce as We,d8 as De,d9 as He,c as Ve,u as G,bg as qe,da as Qe,db as Xe,dc as Ge,C as se,bU as Ue,dd as Ze,de as Ye,df as Je,be as Ke,dg as et,dh as tt}from"./umi-5f6aeac9.js";import{A as re}from"./ActionButton-ff803f23.js";function nt(){const[e,n]=l.useState([]),s=l.useCallback(t=>(n(o=>[].concat(N(o),[t])),()=>{n(o=>o.filter(a=>a!==t))}),[]);return[e,s]}const M=y.createContext({}),{Provider:ae}=M,ot=()=>{const{autoFocusButton:e,cancelButtonProps:n,cancelTextLocale:s,isSilent:t,mergedOkCancel:o,rootPrefixCls:a,close:x,onCancel:i,onConfirm:c}=l.useContext(M);return o?y.createElement(re,{isSilent:t,actionFn:i,close:function(){x==null||x.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:n,prefixCls:`${a}-btn`},s):null},U=ot,lt=()=>{const{autoFocusButton:e,close:n,isSilent:s,okButtonProps:t,rootPrefixCls:o,okTextLocale:a,okType:x,onConfirm:i,onOk:c}=l.useContext(M);return y.createElement(re,{isSilent:s,type:x||"primary",actionFn:c,close:function(){n==null||n.apply(void 0,arguments),i==null||i(!0)},autoFocus:e==="ok",buttonProps:t,prefixCls:`${o}-btn`},a)},Z=lt,st=()=>Ie()&&window.document.documentElement,rt=()=>{const{cancelButtonProps:e,cancelTextLocale:n,onCancel:s}=l.useContext(M);return y.createElement(ee,Object.assign({onClick:s},e),n)},Y=rt,at=()=>{const{confirmLoading:e,okButtonProps:n,okType:s,okTextLocale:t,onOk:o}=l.useContext(M);return y.createElement(ee,Object.assign({},ke(s),{loading:e,onClick:o},n),t)},J=at;function ce(e,n){return y.createElement("span",{className:`${e}-close-x`},n||y.createElement(te,{className:`${e}-close-icon`}))}const ie=e=>{const{okText:n,okType:s="primary",cancelText:t,confirmLoading:o,onOk:a,onCancel:x,okButtonProps:i,cancelButtonProps:c,footer:v}=e,[r]=W("Modal",ne()),m=n||(r==null?void 0:r.okText),u=t||(r==null?void 0:r.cancelText),C={confirmLoading:o,okButtonProps:i,cancelButtonProps:c,okTextLocale:m,cancelTextLocale:u,okType:s,onOk:a,onCancel:x},p=y.useMemo(()=>C,N(Object.values(C)));let d;return typeof v=="function"||typeof v>"u"?(d=y.createElement(y.Fragment,null,y.createElement(Y,null),y.createElement(J,null)),typeof v=="function"&&(d=v(d,{OkBtn:J,CancelBtn:Y})),d=y.createElement(ae,{value:p},d)):d=v,y.createElement(Fe,{disabled:!1},d)};var ct=globalThis&&globalThis.__rest||function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{_={x:e.pageX,y:e.pageY},setTimeout(()=>{_=null},100)};st()&&document.documentElement.addEventListener("click",it,!0);const ut=e=>{var n;const{getPopupContainer:s,getPrefixCls:t,direction:o,modal:a}=l.useContext(A),x=T=>{const{onCancel:E}=e;E==null||E(T)},i=T=>{const{onOk:E}=e;E==null||E(T)},{prefixCls:c,className:v,rootClassName:r,open:m,wrapClassName:u,centered:C,getContainer:p,focusTriggerAfterClose:d=!0,style:g,visible:b,width:f=520,footer:P,classNames:O,styles:j,children:k,loading:F}=e,S=ct(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=t("modal",c),D=t(),H=oe($),[Oe,V,he]=le($,H),Pe=w(u,{[`${$}-centered`]:C??(a==null?void 0:a.centered),[`${$}-wrap-rtl`]:o==="rtl"}),$e=P!==null&&!F?l.createElement(ie,Object.assign({},e,{onOk:i,onCancel:x})):null,[q,Q,Ee]=Me(X(e),X(a),{closable:!0,closeIcon:l.createElement(te,{className:`${$}-close-icon`}),closeIconRender:T=>ce($,T)}),je=Be(`.${$}-content`),[Te,we]=Re("Modal",S.zIndex),[Ne,R]=l.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),Se=l.useMemo(()=>{const T={};return R&&Object.keys(R).forEach(E=>{const L=R[E];L!==void 0&&(T[`--${$}-${E}-width`]=typeof L=="number"?`${L}px`:L)}),T},[R]);return Oe(l.createElement(Le,{form:!0,space:!0},l.createElement(ze.Provider,{value:we},l.createElement(Ae,Object.assign({width:Ne},S,{zIndex:Te,getContainer:p===void 0?s:p,prefixCls:$,rootClassName:w(V,r,he,H),footer:$e,visible:m??b,mousePosition:(n=S.mousePosition)!==null&&n!==void 0?n:_,onClose:x,closable:q&&{disabled:Ee,closeIcon:Q},closeIcon:Q,focusTriggerAfterClose:d,transitionName:z(D,"zoom",e.transitionName),maskTransitionName:z(D,"fade",e.maskTransitionName),className:w(V,v,a==null?void 0:a.className),style:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.style),g),Se),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),O),{wrapper:w(Pe,O==null?void 0:O.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),j),panelRef:je}),F?l.createElement(_e,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):k))))},ue=ut,dt=e=>{const{componentCls:n,titleFontSize:s,titleLineHeight:t,modalConfirmIconSize:o,fontSize:a,lineHeight:x,modalTitleHeight:i,fontHeight:c,confirmBodyPadding:v}=e,r=`${n}-confirm`;return{[r]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${r}-body-wrapper`]:Object.assign({},Ve()),[`&${n} ${n}-body`]:{padding:v},[`${r}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(i).sub(o).equal()).div(2).equal()}},[`${r}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${G(e.marginSM)})`},[`${e.iconCls} + ${r}-paragraph`]:{maxWidth:`calc(100% - ${G(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${r}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:s,lineHeight:t},[`${r}-content`]:{color:e.colorText,fontSize:a,lineHeight:x},[`${r}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${r}-error ${r}-body > ${e.iconCls}`]:{color:e.colorError},[`${r}-warning ${r}-body > ${e.iconCls}, + ${r}-confirm ${r}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${r}-info ${r}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${r}-success ${r}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},ft=We(["Modal","confirm"],e=>{const n=De(e);return[dt(n)]},He,{order:-1e3});var mt=globalThis&&globalThis.__rest||function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);of,N(Object.values(f))),O=l.createElement(l.Fragment,null,l.createElement(U,null),l.createElement(Z,null)),j=e.title!==void 0&&e.title!==null,k=`${a}-body`;return l.createElement("div",{className:`${a}-body-wrapper`},l.createElement("div",{className:w(k,{[`${k}-has-title`]:j})},m,l.createElement("div",{className:`${a}-paragraph`},j&&l.createElement("span",{className:`${a}-title`},e.title),l.createElement("div",{className:`${a}-content`},e.content))),c===void 0||typeof c=="function"?l.createElement(ae,{value:P},l.createElement("div",{className:`${a}-btns`},typeof c=="function"?c(O,{OkBtn:Z,CancelBtn:U}):O)):c,l.createElement(ft,{prefixCls:n}))}const Ct=e=>{const{close:n,zIndex:s,maskStyle:t,direction:o,prefixCls:a,wrapClassName:x,rootPrefixCls:i,bodyStyle:c,closable:v=!1,onConfirm:r,styles:m}=e,u=`${a}-confirm`,C=e.width||416,p=e.style||{},d=e.mask===void 0?!0:e.mask,g=e.maskClosable===void 0?!1:e.maskClosable,b=w(u,`${u}-${e.type}`,{[`${u}-rtl`]:o==="rtl"},e.className),[,f]=Ue(),P=l.useMemo(()=>s!==void 0?s:f.zIndexPopupBase+Ze,[s,f]);return l.createElement(ue,Object.assign({},e,{className:b,wrapClassName:w({[`${u}-centered`]:!!e.centered},x),onCancel:()=>{n==null||n({triggerCancel:!0}),r==null||r(!1)},title:"",footer:null,transitionName:z(i||"","zoom",e.transitionName),maskTransitionName:z(i||"","fade",e.maskTransitionName),mask:d,maskClosable:g,style:p,styles:Object.assign({body:c,mask:t},m),width:C,zIndex:P,closable:v}),l.createElement(de,Object.assign({},e,{confirmPrefixCls:u})))},fe=e=>{const{rootPrefixCls:n,iconPrefixCls:s,direction:t,theme:o}=e;return l.createElement(se,{prefixCls:n,iconPrefixCls:s,direction:t,theme:o},l.createElement(Ct,Object.assign({},e)))},gt=[],I=gt;let me="";function Ce(){return me}const bt=e=>{var n,s;const{prefixCls:t,getContainer:o,direction:a}=e,x=ne(),i=l.useContext(A),c=Ce()||i.getPrefixCls(),v=t||`${c}-modal`;let r=o;return r===!1&&(r=void 0),y.createElement(fe,Object.assign({},e,{rootPrefixCls:c,prefixCls:v,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:a??i.direction,locale:(s=(n=i.locale)===null||n===void 0?void 0:n.Modal)!==null&&s!==void 0?s:x,getContainer:r}))};function B(e){const n=Je(),s=document.createDocumentFragment();let t=Object.assign(Object.assign({},e),{close:c,open:!0}),o,a;function x(){for(var r,m=arguments.length,u=new Array(m),C=0;Cg==null?void 0:g.triggerCancel)){var d;(r=e.onCancel)===null||r===void 0||(d=r).call.apply(d,[e,()=>{}].concat(N(u.slice(1))))}for(let g=0;g{const m=n.getPrefixCls(void 0,Ce()),u=n.getIconPrefixCls(),C=n.getTheme(),p=y.createElement(bt,Object.assign({},r));a=Ye()(y.createElement(se,{prefixCls:m,iconPrefixCls:u,theme:C},n.holderRender?n.holderRender(p):p),s)})}function c(){for(var r=arguments.length,m=new Array(r),u=0;u{typeof e.afterClose=="function"&&e.afterClose(),x.apply(this,m)}}),t.visible&&delete t.visible,i(t)}function v(r){typeof r=="function"?t=r(t):t=Object.assign(Object.assign({},t),r),i(t)}return i(t),I.push(c),{destroy:c,update:v}}function ge(e){return Object.assign(Object.assign({},e),{type:"warning"})}function be(e){return Object.assign(Object.assign({},e),{type:"info"})}function xe(e){return Object.assign(Object.assign({},e),{type:"success"})}function ve(e){return Object.assign(Object.assign({},e),{type:"error"})}function pe(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function xt(e){let{rootPrefixCls:n}=e;me=n}var vt=globalThis&&globalThis.__rest||function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{var s,{afterClose:t,config:o}=e,a=vt(e,["afterClose","config"]);const[x,i]=l.useState(!0),[c,v]=l.useState(o),{direction:r,getPrefixCls:m}=l.useContext(A),u=m("modal"),C=m(),p=()=>{var f;t(),(f=c.afterClose)===null||f===void 0||f.call(c)},d=function(){var f;i(!1);for(var P=arguments.length,O=new Array(P),j=0;jS==null?void 0:S.triggerCancel)){var F;(f=c.onCancel)===null||f===void 0||(F=f).call.apply(F,[c,()=>{}].concat(N(O.slice(1))))}};l.useImperativeHandle(n,()=>({destroy:d,update:f=>{v(P=>Object.assign(Object.assign({},P),f))}}));const g=(s=c.okCancel)!==null&&s!==void 0?s:c.type==="confirm",[b]=W("Modal",Ke.Modal);return l.createElement(fe,Object.assign({prefixCls:u,rootPrefixCls:C},c,{close:d,open:x,afterClose:p,okText:c.okText||(g?b==null?void 0:b.okText:b==null?void 0:b.justOkText),direction:c.direction||r,cancelText:c.cancelText||(b==null?void 0:b.cancelText)},a))},yt=l.forwardRef(pt);let K=0;const Ot=l.memo(l.forwardRef((e,n)=>{const[s,t]=nt();return l.useImperativeHandle(n,()=>({patchElement:t}),[]),l.createElement(l.Fragment,null,s)}));function ht(){const e=l.useRef(null),[n,s]=l.useState([]);l.useEffect(()=>{n.length&&(N(n).forEach(x=>{x()}),s([]))},[n]);const t=l.useCallback(a=>function(i){var c;K+=1;const v=l.createRef();let r;const m=new Promise(g=>{r=g});let u=!1,C;const p=l.createElement(yt,{key:`modal-${K}`,config:a(i),ref:v,afterClose:()=>{C==null||C()},isSilent:()=>u,onConfirm:g=>{r(g)}});return C=(c=e.current)===null||c===void 0?void 0:c.patchElement(p),C&&I.push(C),{destroy:()=>{function g(){var b;(b=v.current)===null||b===void 0||b.destroy()}v.current?g():s(b=>[].concat(N(b),[g]))},update:g=>{function b(){var f;(f=v.current)===null||f===void 0||f.update(g)}v.current?b():s(f=>[].concat(N(f),[b]))},then:g=>(u=!0,m.then(g))}},[]);return[l.useMemo(()=>({info:t(be),success:t(xe),error:t(ve),warning:t(ge),confirm:t(pe)}),[]),l.createElement(Ot,{key:"modal-holder",ref:e})]}var Pt=globalThis&&globalThis.__rest||function(e,n){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:s,closeIcon:t,closable:o,type:a,title:x,children:i,footer:c}=e,v=Pt(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:r}=l.useContext(A),m=r(),u=n||r("modal"),C=oe(m),[p,d,g]=le(u,C),b=`${u}-confirm`;let f={};return a?f={closable:o??!1,title:"",footer:"",children:l.createElement(de,Object.assign({},e,{prefixCls:u,confirmPrefixCls:b,rootPrefixCls:m,content:i}))}:f={closable:o??!0,title:x,footer:c!==null&&l.createElement(ie,Object.assign({},e)),children:i},p(l.createElement(tt,Object.assign({prefixCls:u,className:w(d,`${u}-pure-panel`,a&&b,a&&`${b}-${a}`,s,g,C)},v,{closeIcon:ce(u,t),closable:o},f)))},Et=et($t);function ye(e){return B(ge(e))}const h=ue;h.useModal=ht;h.info=function(n){return B(be(n))};h.success=function(n){return B(xe(n))};h.error=function(n){return B(ve(n))};h.warning=ye;h.warn=ye;h.confirm=function(n){return B(pe(n))};h.destroyAll=function(){for(;I.length;){const n=I.pop();n&&n()}};h.config=xt;h._InternalPanelDoNotUseOrYouWillBeFired=Et;const wt=h;export{wt as M}; diff --git a/web/dist/assets/index-b7a2130f.js b/web/dist/assets/index-d123fa1a.js similarity index 92% rename from web/dist/assets/index-b7a2130f.js rename to web/dist/assets/index-d123fa1a.js index acc5fa130b12ca95364c45ec3598e78b11ff1242..d24c7cea1f9b2fc2544e07fa0aa6ef89f8888d15 100644 --- a/web/dist/assets/index-b7a2130f.js +++ b/web/dist/assets/index-d123fa1a.js @@ -1,4 +1,4 @@ -import{ds as R9,de as I9,dm as B4,dh as Dv,et as F4,dl as S8,dc as M9,cm as Co,eu as w8,ev as C8,ew as P9,ex as R8,ey as O9,ez as L9,cp as e1,eA as D9,eB as B9,eC as F9,eD as N9,eE as k9,eF as U9,eG as z9,eH as V9,d6 as H9,eI as j9,eJ as X9,eK as W9,eL as G9,eM as Z9,eN as $9,eO as q9,eP as Y9,eQ as K9,eR as Q9,K as I,_ as _t,w as bt,k as fu,bj as $m,l as lu,H as I8,J as M8,E as J9,eS as eT,eT as tT,M as g0,cn as po,eU as qh,co as zo,bs as up,bt as cp,eV as Lu,eW as pd,r as Du,R as Va,j as rT}from"./umi-2ee4055f.js";import{A as J1,E as ps,d as Yh,g as nT,l as iT,f as Ig,c as Al,a as X1,n as cm,s as N4,b as Mg,e as V_,h as P8,i as oT,j as v0,k as Rs,m as k4,o as aT,p as Ud,q as U4,t as y0,r as sT,u as lT,v as uT,w as nu,x as Is,y as z4,z as cT,B as Bv,C as qm,D as Ca,F as Fv,G as zd,H as O8,I as Qc,J as hm,K as V1,L as dd,M as hT,N as H_,O as fT}from"./react-content-loader.es-7f7b682d.js";import{u as pT,c as dT}from"./camelCase-e5a219bd.js";function mT(){var t=new J1(4);return J1!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function _T(t,e,r){var n=e[0],a=e[1],l=e[2],o=e[3],p=Math.sin(r),m=Math.cos(r);return t[0]=n*m+l*p,t[1]=a*m+o*p,t[2]=n*-p+l*m,t[3]=a*-p+o*m,t}function A3(){var t=new J1(16);return J1!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function gT(t,e,r,n,a,l,o,p,m,v,E,b,A,R,O,D){var N=new J1(16);return N[0]=t,N[1]=e,N[2]=r,N[3]=n,N[4]=a,N[5]=l,N[6]=o,N[7]=p,N[8]=m,N[9]=v,N[10]=E,N[11]=b,N[12]=A,N[13]=R,N[14]=O,N[15]=D,N}function V4(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function fm(t,e){var r=e[0],n=e[1],a=e[2],l=e[3],o=e[4],p=e[5],m=e[6],v=e[7],E=e[8],b=e[9],A=e[10],R=e[11],O=e[12],D=e[13],N=e[14],W=e[15],G=r*p-n*o,Y=r*m-a*o,Q=r*v-l*o,J=n*m-a*p,Se=n*v-l*p,ce=a*v-l*m,ke=E*D-b*O,ct=E*N-A*O,Ve=E*W-R*O,Te=b*N-A*D,Fe=b*W-R*D,He=A*W-R*N,nt=G*He-Y*Fe+Q*Te+J*Ve-Se*ct+ce*ke;return nt?(nt=1/nt,t[0]=(p*He-m*Fe+v*Te)*nt,t[1]=(a*Fe-n*He-l*Te)*nt,t[2]=(D*ce-N*Se+W*J)*nt,t[3]=(A*Se-b*ce-R*J)*nt,t[4]=(m*Ve-o*He-v*ct)*nt,t[5]=(r*He-a*Ve+l*ct)*nt,t[6]=(N*Q-O*ce-W*Y)*nt,t[7]=(E*ce-A*Q+R*Y)*nt,t[8]=(o*Fe-p*Ve+v*ke)*nt,t[9]=(n*Ve-r*Fe-l*ke)*nt,t[10]=(O*Se-D*Q+W*G)*nt,t[11]=(b*Q-E*Se-R*G)*nt,t[12]=(p*ct-o*Te-m*ke)*nt,t[13]=(r*Te-n*ct+a*ke)*nt,t[14]=(D*Y-O*J-N*G)*nt,t[15]=(E*J-b*Y+A*G)*nt,t):null}function Y1(t,e,r){var n=e[0],a=e[1],l=e[2],o=e[3],p=e[4],m=e[5],v=e[6],E=e[7],b=e[8],A=e[9],R=e[10],O=e[11],D=e[12],N=e[13],W=e[14],G=e[15],Y=r[0],Q=r[1],J=r[2],Se=r[3];return t[0]=Y*n+Q*p+J*b+Se*D,t[1]=Y*a+Q*m+J*A+Se*N,t[2]=Y*l+Q*v+J*R+Se*W,t[3]=Y*o+Q*E+J*O+Se*G,Y=r[4],Q=r[5],J=r[6],Se=r[7],t[4]=Y*n+Q*p+J*b+Se*D,t[5]=Y*a+Q*m+J*A+Se*N,t[6]=Y*l+Q*v+J*R+Se*W,t[7]=Y*o+Q*E+J*O+Se*G,Y=r[8],Q=r[9],J=r[10],Se=r[11],t[8]=Y*n+Q*p+J*b+Se*D,t[9]=Y*a+Q*m+J*A+Se*N,t[10]=Y*l+Q*v+J*R+Se*W,t[11]=Y*o+Q*E+J*O+Se*G,Y=r[12],Q=r[13],J=r[14],Se=r[15],t[12]=Y*n+Q*p+J*b+Se*D,t[13]=Y*a+Q*m+J*A+Se*N,t[14]=Y*l+Q*v+J*R+Se*W,t[15]=Y*o+Q*E+J*O+Se*G,t}function ou(t,e,r){var n=r[0],a=r[1],l=r[2],o,p,m,v,E,b,A,R,O,D,N,W;return e===t?(t[12]=e[0]*n+e[4]*a+e[8]*l+e[12],t[13]=e[1]*n+e[5]*a+e[9]*l+e[13],t[14]=e[2]*n+e[6]*a+e[10]*l+e[14],t[15]=e[3]*n+e[7]*a+e[11]*l+e[15]):(o=e[0],p=e[1],m=e[2],v=e[3],E=e[4],b=e[5],A=e[6],R=e[7],O=e[8],D=e[9],N=e[10],W=e[11],t[0]=o,t[1]=p,t[2]=m,t[3]=v,t[4]=E,t[5]=b,t[6]=A,t[7]=R,t[8]=O,t[9]=D,t[10]=N,t[11]=W,t[12]=o*n+E*a+O*l+e[12],t[13]=p*n+b*a+D*l+e[13],t[14]=m*n+A*a+N*l+e[14],t[15]=v*n+R*a+W*l+e[15]),t}function au(t,e,r){var n=r[0],a=r[1],l=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*l,t[9]=e[9]*l,t[10]=e[10]*l,t[11]=e[11]*l,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Dp(t,e,r){var n=Math.sin(r),a=Math.cos(r),l=e[4],o=e[5],p=e[6],m=e[7],v=e[8],E=e[9],b=e[10],A=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=l*a+v*n,t[5]=o*a+E*n,t[6]=p*a+b*n,t[7]=m*a+A*n,t[8]=v*a-l*n,t[9]=E*a-o*n,t[10]=b*a-p*n,t[11]=A*a-m*n,t}function Ym(t,e,r){var n=Math.sin(r),a=Math.cos(r),l=e[0],o=e[1],p=e[2],m=e[3],v=e[8],E=e[9],b=e[10],A=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=l*a-v*n,t[1]=o*a-E*n,t[2]=p*a-b*n,t[3]=m*a-A*n,t[8]=l*n+v*a,t[9]=o*n+E*a,t[10]=p*n+b*a,t[11]=m*n+A*a,t}function S3(t,e,r){var n=Math.sin(r),a=Math.cos(r),l=e[0],o=e[1],p=e[2],m=e[3],v=e[4],E=e[5],b=e[6],A=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=l*a+v*n,t[1]=o*a+E*n,t[2]=p*a+b*n,t[3]=m*a+A*n,t[4]=v*a-l*n,t[5]=E*a-o*n,t[6]=b*a-p*n,t[7]=A*a-m*n,t}function vT(t,e,r,n,a){var l=1/Math.tan(e/2),o;return t[0]=l/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,a!=null&&a!==1/0?(o=1/(n-a),t[10]=(a+n)*o,t[14]=2*a*n*o):(t[10]=-1,t[14]=-2*n),t}var L8=vT;function H4(t,e){var r=t[0],n=t[1],a=t[2],l=t[3],o=t[4],p=t[5],m=t[6],v=t[7],E=t[8],b=t[9],A=t[10],R=t[11],O=t[12],D=t[13],N=t[14],W=t[15],G=e[0],Y=e[1],Q=e[2],J=e[3],Se=e[4],ce=e[5],ke=e[6],ct=e[7],Ve=e[8],Te=e[9],Fe=e[10],He=e[11],nt=e[12],Ut=e[13],$t=e[14],Ht=e[15];return Math.abs(r-G)<=ps*Math.max(1,Math.abs(r),Math.abs(G))&&Math.abs(n-Y)<=ps*Math.max(1,Math.abs(n),Math.abs(Y))&&Math.abs(a-Q)<=ps*Math.max(1,Math.abs(a),Math.abs(Q))&&Math.abs(l-J)<=ps*Math.max(1,Math.abs(l),Math.abs(J))&&Math.abs(o-Se)<=ps*Math.max(1,Math.abs(o),Math.abs(Se))&&Math.abs(p-ce)<=ps*Math.max(1,Math.abs(p),Math.abs(ce))&&Math.abs(m-ke)<=ps*Math.max(1,Math.abs(m),Math.abs(ke))&&Math.abs(v-ct)<=ps*Math.max(1,Math.abs(v),Math.abs(ct))&&Math.abs(E-Ve)<=ps*Math.max(1,Math.abs(E),Math.abs(Ve))&&Math.abs(b-Te)<=ps*Math.max(1,Math.abs(b),Math.abs(Te))&&Math.abs(A-Fe)<=ps*Math.max(1,Math.abs(A),Math.abs(Fe))&&Math.abs(R-He)<=ps*Math.max(1,Math.abs(R),Math.abs(He))&&Math.abs(O-nt)<=ps*Math.max(1,Math.abs(O),Math.abs(nt))&&Math.abs(D-Ut)<=ps*Math.max(1,Math.abs(D),Math.abs(Ut))&&Math.abs(N-$t)<=ps*Math.max(1,Math.abs(N),Math.abs($t))&&Math.abs(W-Ht)<=ps*Math.max(1,Math.abs(W),Math.abs(Ht))}function D8(){var t=new J1(4);return J1!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function yT(t,e,r,n){var a=new J1(4);return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a}function xT(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function W1(t,e,r){var n=e[0],a=e[1],l=e[2],o=e[3];return t[0]=r[0]*n+r[4]*a+r[8]*l+r[12]*o,t[1]=r[1]*n+r[5]*a+r[9]*l+r[13]*o,t[2]=r[2]*n+r[6]*a+r[10]*l+r[14]*o,t[3]=r[3]*n+r[7]*a+r[11]*l+r[15]*o,t}(function(){var t=D8();return function(e,r,n,a,l,o){var p,m;for(r||(r=4),n||(n=0),a?m=Math.min(a*r+n,e.length):m=e.length,p=n;p-1}var gA=_A;function vA(t,e,r){for(var n=-1,a=t==null?0:t.length;++n=LA){var v=e?null:PA(t);if(v)return OA(v);o=!1,a=MA,m=new CA}else m=e?[]:p;e:for(;++nr?r:t};const NA=FA;function ip(t){return typeof t=="number"}var kA=w8,UA=C8,zA="[object Number]";function VA(t){return typeof t=="number"||UA(t)&&kA(t)==zA}var HA=VA;const jA=Co(HA),q4=new Map,Y4=new Map,K4=new Map;var jh={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ITEM_TPL=t.CONTAINER_TPL=t.VALUE_CLASS=t.NAME_CLASS=t.LIST_ITEM_CLASS=t.LIST_CLASS=t.TITLE_CLASS=t.CONTAINER_CLASS=void 0,t.CONTAINER_CLASS="l7plot-tooltip",t.TITLE_CLASS="l7plot-tooltip__title",t.LIST_CLASS="l7plot-tooltip__list",t.LIST_ITEM_CLASS="l7plot-tooltip__list-item",t.NAME_CLASS="l7plot-tooltip__name",t.VALUE_CLASS="l7plot-tooltip__value",t.CONTAINER_TPL=`
      +import{dE as B4,dz as Dv,eH as F4,dD as S8,dv as R9,bE as Co,eI as w8,eJ as C8,eK as I9,eL as R8,eM as M9,eN as P9,cF as e1,eO as O9,eP as L9,eQ as D9,eR as B9,eS as F9,eT as N9,eU as k9,eV as U9,dp as z9,eW as V9,eX as H9,eY as j9,eZ as X9,e_ as W9,e$ as G9,f0 as Z9,f1 as $9,f2 as q9,f3 as Y9,k as I,_ as _t,E as bt,s as fu,bs as $m,w as lu,h as I8,i as M8,e as K9,f4 as Q9,f5 as J9,l as g0,cD as po,f6 as qh,cE as zo,bG as up,bH as cp,cz as Lu,f7 as pd,b as Du,R as Va,j as eT}from"./umi-5f6aeac9.js";import{A as J1,E as ps,d as Yh,g as tT,l as rT,f as Ig,c as Al,a as X1,n as cm,s as N4,b as Mg,e as V_,h as P8,i as nT,j as v0,k as Rs,m as k4,o as iT,p as Ud,q as U4,t as y0,r as oT,u as aT,v as sT,w as nu,x as Is,y as z4,z as lT,B as Bv,C as qm,D as Ca,F as Fv,G as zd,H as O8,I as Qc,J as hm,K as V1,L as dd,M as uT,N as H_,O as cT}from"./react-content-loader.es-3bd9b17f.js";import{u as hT,c as fT}from"./camelCase-d2af58d5.js";import{i as Ym}from"./isSymbol-2dfef6ea.js";function pT(){var t=new J1(4);return J1!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function dT(t,e,r){var n=e[0],a=e[1],l=e[2],o=e[3],p=Math.sin(r),m=Math.cos(r);return t[0]=n*m+l*p,t[1]=a*m+o*p,t[2]=n*-p+l*m,t[3]=a*-p+o*m,t}function A3(){var t=new J1(16);return J1!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function mT(t,e,r,n,a,l,o,p,m,v,E,b,A,R,O,D){var N=new J1(16);return N[0]=t,N[1]=e,N[2]=r,N[3]=n,N[4]=a,N[5]=l,N[6]=o,N[7]=p,N[8]=m,N[9]=v,N[10]=E,N[11]=b,N[12]=A,N[13]=R,N[14]=O,N[15]=D,N}function V4(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function fm(t,e){var r=e[0],n=e[1],a=e[2],l=e[3],o=e[4],p=e[5],m=e[6],v=e[7],E=e[8],b=e[9],A=e[10],R=e[11],O=e[12],D=e[13],N=e[14],W=e[15],G=r*p-n*o,Y=r*m-a*o,Q=r*v-l*o,J=n*m-a*p,Se=n*v-l*p,ce=a*v-l*m,ke=E*D-b*O,ct=E*N-A*O,Ve=E*W-R*O,Te=b*N-A*D,Fe=b*W-R*D,He=A*W-R*N,nt=G*He-Y*Fe+Q*Te+J*Ve-Se*ct+ce*ke;return nt?(nt=1/nt,t[0]=(p*He-m*Fe+v*Te)*nt,t[1]=(a*Fe-n*He-l*Te)*nt,t[2]=(D*ce-N*Se+W*J)*nt,t[3]=(A*Se-b*ce-R*J)*nt,t[4]=(m*Ve-o*He-v*ct)*nt,t[5]=(r*He-a*Ve+l*ct)*nt,t[6]=(N*Q-O*ce-W*Y)*nt,t[7]=(E*ce-A*Q+R*Y)*nt,t[8]=(o*Fe-p*Ve+v*ke)*nt,t[9]=(n*Ve-r*Fe-l*ke)*nt,t[10]=(O*Se-D*Q+W*G)*nt,t[11]=(b*Q-E*Se-R*G)*nt,t[12]=(p*ct-o*Te-m*ke)*nt,t[13]=(r*Te-n*ct+a*ke)*nt,t[14]=(D*Y-O*J-N*G)*nt,t[15]=(E*J-b*Y+A*G)*nt,t):null}function Y1(t,e,r){var n=e[0],a=e[1],l=e[2],o=e[3],p=e[4],m=e[5],v=e[6],E=e[7],b=e[8],A=e[9],R=e[10],O=e[11],D=e[12],N=e[13],W=e[14],G=e[15],Y=r[0],Q=r[1],J=r[2],Se=r[3];return t[0]=Y*n+Q*p+J*b+Se*D,t[1]=Y*a+Q*m+J*A+Se*N,t[2]=Y*l+Q*v+J*R+Se*W,t[3]=Y*o+Q*E+J*O+Se*G,Y=r[4],Q=r[5],J=r[6],Se=r[7],t[4]=Y*n+Q*p+J*b+Se*D,t[5]=Y*a+Q*m+J*A+Se*N,t[6]=Y*l+Q*v+J*R+Se*W,t[7]=Y*o+Q*E+J*O+Se*G,Y=r[8],Q=r[9],J=r[10],Se=r[11],t[8]=Y*n+Q*p+J*b+Se*D,t[9]=Y*a+Q*m+J*A+Se*N,t[10]=Y*l+Q*v+J*R+Se*W,t[11]=Y*o+Q*E+J*O+Se*G,Y=r[12],Q=r[13],J=r[14],Se=r[15],t[12]=Y*n+Q*p+J*b+Se*D,t[13]=Y*a+Q*m+J*A+Se*N,t[14]=Y*l+Q*v+J*R+Se*W,t[15]=Y*o+Q*E+J*O+Se*G,t}function ou(t,e,r){var n=r[0],a=r[1],l=r[2],o,p,m,v,E,b,A,R,O,D,N,W;return e===t?(t[12]=e[0]*n+e[4]*a+e[8]*l+e[12],t[13]=e[1]*n+e[5]*a+e[9]*l+e[13],t[14]=e[2]*n+e[6]*a+e[10]*l+e[14],t[15]=e[3]*n+e[7]*a+e[11]*l+e[15]):(o=e[0],p=e[1],m=e[2],v=e[3],E=e[4],b=e[5],A=e[6],R=e[7],O=e[8],D=e[9],N=e[10],W=e[11],t[0]=o,t[1]=p,t[2]=m,t[3]=v,t[4]=E,t[5]=b,t[6]=A,t[7]=R,t[8]=O,t[9]=D,t[10]=N,t[11]=W,t[12]=o*n+E*a+O*l+e[12],t[13]=p*n+b*a+D*l+e[13],t[14]=m*n+A*a+N*l+e[14],t[15]=v*n+R*a+W*l+e[15]),t}function au(t,e,r){var n=r[0],a=r[1],l=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*l,t[9]=e[9]*l,t[10]=e[10]*l,t[11]=e[11]*l,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Dp(t,e,r){var n=Math.sin(r),a=Math.cos(r),l=e[4],o=e[5],p=e[6],m=e[7],v=e[8],E=e[9],b=e[10],A=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=l*a+v*n,t[5]=o*a+E*n,t[6]=p*a+b*n,t[7]=m*a+A*n,t[8]=v*a-l*n,t[9]=E*a-o*n,t[10]=b*a-p*n,t[11]=A*a-m*n,t}function Km(t,e,r){var n=Math.sin(r),a=Math.cos(r),l=e[0],o=e[1],p=e[2],m=e[3],v=e[8],E=e[9],b=e[10],A=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=l*a-v*n,t[1]=o*a-E*n,t[2]=p*a-b*n,t[3]=m*a-A*n,t[8]=l*n+v*a,t[9]=o*n+E*a,t[10]=p*n+b*a,t[11]=m*n+A*a,t}function S3(t,e,r){var n=Math.sin(r),a=Math.cos(r),l=e[0],o=e[1],p=e[2],m=e[3],v=e[4],E=e[5],b=e[6],A=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=l*a+v*n,t[1]=o*a+E*n,t[2]=p*a+b*n,t[3]=m*a+A*n,t[4]=v*a-l*n,t[5]=E*a-o*n,t[6]=b*a-p*n,t[7]=A*a-m*n,t}function _T(t,e,r,n,a){var l=1/Math.tan(e/2),o;return t[0]=l/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,a!=null&&a!==1/0?(o=1/(n-a),t[10]=(a+n)*o,t[14]=2*a*n*o):(t[10]=-1,t[14]=-2*n),t}var L8=_T;function H4(t,e){var r=t[0],n=t[1],a=t[2],l=t[3],o=t[4],p=t[5],m=t[6],v=t[7],E=t[8],b=t[9],A=t[10],R=t[11],O=t[12],D=t[13],N=t[14],W=t[15],G=e[0],Y=e[1],Q=e[2],J=e[3],Se=e[4],ce=e[5],ke=e[6],ct=e[7],Ve=e[8],Te=e[9],Fe=e[10],He=e[11],nt=e[12],Ut=e[13],$t=e[14],Ht=e[15];return Math.abs(r-G)<=ps*Math.max(1,Math.abs(r),Math.abs(G))&&Math.abs(n-Y)<=ps*Math.max(1,Math.abs(n),Math.abs(Y))&&Math.abs(a-Q)<=ps*Math.max(1,Math.abs(a),Math.abs(Q))&&Math.abs(l-J)<=ps*Math.max(1,Math.abs(l),Math.abs(J))&&Math.abs(o-Se)<=ps*Math.max(1,Math.abs(o),Math.abs(Se))&&Math.abs(p-ce)<=ps*Math.max(1,Math.abs(p),Math.abs(ce))&&Math.abs(m-ke)<=ps*Math.max(1,Math.abs(m),Math.abs(ke))&&Math.abs(v-ct)<=ps*Math.max(1,Math.abs(v),Math.abs(ct))&&Math.abs(E-Ve)<=ps*Math.max(1,Math.abs(E),Math.abs(Ve))&&Math.abs(b-Te)<=ps*Math.max(1,Math.abs(b),Math.abs(Te))&&Math.abs(A-Fe)<=ps*Math.max(1,Math.abs(A),Math.abs(Fe))&&Math.abs(R-He)<=ps*Math.max(1,Math.abs(R),Math.abs(He))&&Math.abs(O-nt)<=ps*Math.max(1,Math.abs(O),Math.abs(nt))&&Math.abs(D-Ut)<=ps*Math.max(1,Math.abs(D),Math.abs(Ut))&&Math.abs(N-$t)<=ps*Math.max(1,Math.abs(N),Math.abs($t))&&Math.abs(W-Ht)<=ps*Math.max(1,Math.abs(W),Math.abs(Ht))}function D8(){var t=new J1(4);return J1!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function gT(t,e,r,n){var a=new J1(4);return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a}function vT(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function W1(t,e,r){var n=e[0],a=e[1],l=e[2],o=e[3];return t[0]=r[0]*n+r[4]*a+r[8]*l+r[12]*o,t[1]=r[1]*n+r[5]*a+r[9]*l+r[13]*o,t[2]=r[2]*n+r[6]*a+r[10]*l+r[14]*o,t[3]=r[3]*n+r[7]*a+r[11]*l+r[15]*o,t}(function(){var t=D8();return function(e,r,n,a,l,o){var p,m;for(r||(r=4),n||(n=0),a?m=Math.min(a*r+n,e.length):m=e.length,p=n;p-1}var dA=pA;function mA(t,e,r){for(var n=-1,a=t==null?0:t.length;++n=MA){var v=e?null:RA(t);if(v)return IA(v);o=!1,a=CA,m=new AA}else m=e?[]:p;e:for(;++nr?r:t};const DA=LA;function ip(t){return typeof t=="number"}var BA=w8,FA=C8,NA="[object Number]";function kA(t){return typeof t=="number"||FA(t)&&BA(t)==NA}var UA=kA;const zA=Co(UA),q4=new Map,Y4=new Map,K4=new Map;var jh={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ITEM_TPL=t.CONTAINER_TPL=t.VALUE_CLASS=t.NAME_CLASS=t.LIST_ITEM_CLASS=t.LIST_CLASS=t.TITLE_CLASS=t.CONTAINER_CLASS=void 0,t.CONTAINER_CLASS="l7plot-tooltip",t.TITLE_CLASS="l7plot-tooltip__title",t.LIST_CLASS="l7plot-tooltip__list",t.LIST_ITEM_CLASS="l7plot-tooltip__list-item",t.NAME_CLASS="l7plot-tooltip__name",t.VALUE_CLASS="l7plot-tooltip__value",t.CONTAINER_TPL=`
        `,t.ITEM_TPL=`
      • @@ -17,51 +17,51 @@ import{ds as R9,de as I9,dm as B4,dh as Dv,et as F4,dl as S8,dc as M9,cm as Co,e {min}
        {max} -
      • `})(tp);function k8(t){const e={point:{default:{fill:t.pointFillColor,size:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{fill:t.pointActiveFillColor},selected:{fill:t.pointSelectedFillColor}}};return{mapStyle:t.mapStyle,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,fontFamily:t.fontFamily,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["circle","square"],line:["line"]},sizes:[1,10],geometries:{point:{circle:{default:{style:e.point.default},active:{style:e.point.active},selected:{style:e.point.selected}}},line:{},polygon:{}},components:{legend:{category:{domStyles:{[Xh.CONTAINER_CLASS]:{visibility:"visible",zIndex:1,backgroundColor:t.legendContainerFillColor,boxShadow:t.legendContainerShadow,borderRadius:`${t.legendContainerBorderRadius}px`,color:t.legendTextFillColor,fontFamily:t.fontFamily,padding:"10px",lineHeight:"1",fontSize:`${t.legendTextFontSize}px`},[Xh.TITLE_CLASS]:{fontSize:"13px",lineHeight:"19px",marginBottom:"8px"},[Xh.LIST_CLASS]:{margin:"0px",padding:"0px"},[Xh.LIST_ITEM_CLASS]:{marginBottom:"2px"},[Xh.MARKER_CLASS]:{width:"10px",height:"10px"},[Xh.VALUE_CLASS]:{paddingLeft:"8px"}}},continue:{domStyles:{[tp.CONTAINER_CLASS]:{visibility:"visible",zIndex:1,backgroundColor:t.legendContainerFillColor,boxShadow:t.legendContainerShadow,borderRadius:`${t.legendContainerBorderRadius}px`,color:t.legendTextFillColor,fontFamily:t.fontFamily,padding:"10px",lineHeight:1,fontSize:`${t.legendTextFontSize}px`},[tp.TITLE_CLASS]:{fontSize:"13px",lineHeight:"19px",marginBottom:"8px"},[tp.RIBBON_CLASS]:{display:"flex",alignItems:"center"},[tp.GRADIENT_BAR_CLASS]:{width:"140px",height:"14px",margin:"0px 5px"},[tp.VALUE_RANGE_CLASS]:{padding:"0px"}}}},tooltip:{domStyles:{[jh.CONTAINER_CLASS]:{visibility:"visible",zIndex:999,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:t.tooltipContainerFillColor,boxShadow:t.tooltipContainerShadow,borderRadius:`${t.tooltipContainerBorderRadius}px`,color:t.tooltipTextFillColor,fontSize:`${t.tooltipTextFontSize}px`,fontFamily:t.fontFamily,lineHeight:t.tooltipTextLineHeight},[jh.TITLE_CLASS]:{marginBottom:"4px"},[jh.LIST_CLASS]:{margin:"0px",padding:"0px"},[jh.LIST_ITEM_CLASS]:{marginBottom:"4px"},[jh.NAME_CLASS]:{color:t.tooltipItemNameFillColor},[jh.VALUE_CLASS]:{color:t.tooltipItemValueFillColor,marginLeft:"30px"}}},label:{style:{textAnchor:"center",textOffset:[0,0],fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight}}}}}const Fh={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},XA={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},WA=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],GA=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],ZA=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],U8=(t={})=>{const{mapStyle:e="light",subColor:r="rgba(0,0,0,0.05)",paletteQualitative10:n=WA,paletteQualitative20:a=GA,paletteSemanticRed:l="#F4664A",paletteSemanticGreen:o="#30BF78",paletteSemanticYellow:p="#FAAD14",paletteSequence:m=ZA,fontFamily:v=`"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial, +`})(tp);function k8(t){const e={point:{default:{fill:t.pointFillColor,size:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{fill:t.pointActiveFillColor},selected:{fill:t.pointSelectedFillColor}}};return{mapStyle:t.mapStyle,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,fontFamily:t.fontFamily,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["circle","square"],line:["line"]},sizes:[1,10],geometries:{point:{circle:{default:{style:e.point.default},active:{style:e.point.active},selected:{style:e.point.selected}}},line:{},polygon:{}},components:{legend:{category:{domStyles:{[Xh.CONTAINER_CLASS]:{visibility:"visible",zIndex:1,backgroundColor:t.legendContainerFillColor,boxShadow:t.legendContainerShadow,borderRadius:`${t.legendContainerBorderRadius}px`,color:t.legendTextFillColor,fontFamily:t.fontFamily,padding:"10px",lineHeight:"1",fontSize:`${t.legendTextFontSize}px`},[Xh.TITLE_CLASS]:{fontSize:"13px",lineHeight:"19px",marginBottom:"8px"},[Xh.LIST_CLASS]:{margin:"0px",padding:"0px"},[Xh.LIST_ITEM_CLASS]:{marginBottom:"2px"},[Xh.MARKER_CLASS]:{width:"10px",height:"10px"},[Xh.VALUE_CLASS]:{paddingLeft:"8px"}}},continue:{domStyles:{[tp.CONTAINER_CLASS]:{visibility:"visible",zIndex:1,backgroundColor:t.legendContainerFillColor,boxShadow:t.legendContainerShadow,borderRadius:`${t.legendContainerBorderRadius}px`,color:t.legendTextFillColor,fontFamily:t.fontFamily,padding:"10px",lineHeight:1,fontSize:`${t.legendTextFontSize}px`},[tp.TITLE_CLASS]:{fontSize:"13px",lineHeight:"19px",marginBottom:"8px"},[tp.RIBBON_CLASS]:{display:"flex",alignItems:"center"},[tp.GRADIENT_BAR_CLASS]:{width:"140px",height:"14px",margin:"0px 5px"},[tp.VALUE_RANGE_CLASS]:{padding:"0px"}}}},tooltip:{domStyles:{[jh.CONTAINER_CLASS]:{visibility:"visible",zIndex:999,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:t.tooltipContainerFillColor,boxShadow:t.tooltipContainerShadow,borderRadius:`${t.tooltipContainerBorderRadius}px`,color:t.tooltipTextFillColor,fontSize:`${t.tooltipTextFontSize}px`,fontFamily:t.fontFamily,lineHeight:t.tooltipTextLineHeight},[jh.TITLE_CLASS]:{marginBottom:"4px"},[jh.LIST_CLASS]:{margin:"0px",padding:"0px"},[jh.LIST_ITEM_CLASS]:{marginBottom:"4px"},[jh.NAME_CLASS]:{color:t.tooltipItemNameFillColor},[jh.VALUE_CLASS]:{color:t.tooltipItemValueFillColor,marginLeft:"30px"}}},label:{style:{textAnchor:"center",textOffset:[0,0],fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight}}}}}const Fh={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},VA={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},HA=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],jA=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],XA=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],U8=(t={})=>{const{mapStyle:e="light",subColor:r="rgba(0,0,0,0.05)",paletteQualitative10:n=HA,paletteQualitative20:a=jA,paletteSemanticRed:l="#F4664A",paletteSemanticGreen:o="#30BF78",paletteSemanticYellow:p="#FAAD14",paletteSequence:m=XA,fontFamily:v=`"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", - "Noto Color Emoji"`}=t,{brandColor:E=n[0]}=t;return{mapStyle:e,brandColor:E,subColor:r,paletteQualitative10:n,paletteQualitative20:a,paletteSemanticRed:l,paletteSemanticGreen:o,paletteSemanticYellow:p,paletteSequence:m,fontFamily:v,legendContainerFillColor:"rgba(255, 255, 255, 0.85)",legendContainerShadow:"0 2px 8px 0 rgba(166, 166, 166, 0.20)",legendContainerBorderRadius:2,legendTextFillColor:Fh[65],legendTextFontSize:12,tooltipContainerFillColor:"rgba(255, 255, 255, 0.9)",tooltipContainerShadow:"rgb(0 0 0 / 16%) 0px 6px 12px 0px",tooltipContainerBorderRadius:2,tooltipTextFillColor:Fh[65],tooltipItemNameFillColor:Fh[65],tooltipItemValueFillColor:Fh[65],tooltipTextFontSize:12,tooltipTextLineHeight:"20px",labelFillColor:Fh[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,pointFillColor:E,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:XA[100],pointActiveBorderColor:Fh[100],pointSelectedBorderColor:Fh[100]}};U8();const $A={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Nh={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},Q4=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],qA=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],YA=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],z8=(t={})=>{const{mapStyle:e="dark",subColor:r="rgba(255,255,255,0.05)",paletteQualitative10:n=Q4,paletteQualitative20:a=qA,paletteSemanticRed:l="#F4664A",paletteSemanticGreen:o="#30BF78",paletteSemanticYellow:p="#FAAD14",paletteSequence:m=YA,fontFamily:v=`"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial, + "Noto Color Emoji"`}=t,{brandColor:E=n[0]}=t;return{mapStyle:e,brandColor:E,subColor:r,paletteQualitative10:n,paletteQualitative20:a,paletteSemanticRed:l,paletteSemanticGreen:o,paletteSemanticYellow:p,paletteSequence:m,fontFamily:v,legendContainerFillColor:"rgba(255, 255, 255, 0.85)",legendContainerShadow:"0 2px 8px 0 rgba(166, 166, 166, 0.20)",legendContainerBorderRadius:2,legendTextFillColor:Fh[65],legendTextFontSize:12,tooltipContainerFillColor:"rgba(255, 255, 255, 0.9)",tooltipContainerShadow:"rgb(0 0 0 / 16%) 0px 6px 12px 0px",tooltipContainerBorderRadius:2,tooltipTextFillColor:Fh[65],tooltipItemNameFillColor:Fh[65],tooltipItemValueFillColor:Fh[65],tooltipTextFontSize:12,tooltipTextLineHeight:"20px",labelFillColor:Fh[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,pointFillColor:E,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:VA[100],pointActiveBorderColor:Fh[100],pointSelectedBorderColor:Fh[100]}};U8();const WA={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Nh={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},Q4=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],GA=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],ZA=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],z8=(t={})=>{const{mapStyle:e="dark",subColor:r="rgba(255,255,255,0.05)",paletteQualitative10:n=Q4,paletteQualitative20:a=GA,paletteSemanticRed:l="#F4664A",paletteSemanticGreen:o="#30BF78",paletteSemanticYellow:p="#FAAD14",paletteSequence:m=ZA,fontFamily:v=`"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", - "Noto Color Emoji"`}=t,{brandColor:E=n[0]}=t;return{mapStyle:e,brandColor:E,subColor:r,paletteQualitative10:n,paletteQualitative20:a,paletteSemanticRed:l,paletteSemanticGreen:o,paletteSemanticYellow:p,paletteSequence:m,fontFamily:v,legendContainerFillColor:"rgba(31, 31, 31, 0.85)",legendContainerShadow:"0 2px 8px 0 rgba(166, 166, 166, 0.20)",legendContainerBorderRadius:2,legendTextFillColor:Nh[65],legendTextFontSize:12,tooltipContainerFillColor:"rgba(31, 31, 31, 0.9)",tooltipContainerShadow:"0px 2px 4px rgba(0, 0, 0, 0.5)",tooltipContainerBorderRadius:2,tooltipTextFillColor:Nh[65],tooltipItemNameFillColor:Nh[65],tooltipItemValueFillColor:Nh[65],tooltipTextFontSize:12,tooltipTextLineHeight:"20px",labelFillColor:Nh[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,pointFillColor:Q4[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:$A[100],pointActiveBorderColor:Nh[100],pointSelectedBorderColor:Nh[100]}};z8();function V8(t){const{styleSheet:e={}}=t,r=e1(t,["styleSheet"]),n=U8(e);return Yh({},k8(n),r)}function KA(t){const{styleSheet:e={}}=t,r=e1(t,["styleSheet"]),n=z8(e);return Yh({},k8(n),r)}const J4=V8({}),QA=KA({}),ey={default:J4,light:J4,dark:QA};function Og(t="default"){return nT(ey,iT(t),ey.default)}var ty;(function(t){t[t.solid=0]="solid",t[t.dash=1]="dash"})(ty||(ty={}));var Lg;(function(t){t.TextLayer="textLayer",t.DotLayer="dotLayer",t.IconLayer="iconLayer",t.DotDensity="dotDensityLayer",t.ColumnLayer="columnLayer",t.HeatmapLayer="heatmapLayer",t.GridLayer="gridLayer",t.HexbinLayer="hexbinLayer",t.LinesLayer="linesLayer",t.PathLayer="pathLayer",t.ArcLayer="arcLayer",t.AreaLayer="areaLayer",t.PrismLayer="prismLayer"})(Lg||(Lg={}));var Ou;(function(t){t.Map="map",t.Amap="amap",t.AmapV1="amapv1",t.AmapV2="amapv2",t.Mapbox="mapbox"})(Ou||(Ou={}));var Dg;(function(t){t.Dot="dot",t.DotDensity="dotDensity",t.Heatmap="heatmap",t.Grid="grid",t.Hexbin="hexbin",t.Path="path",t.Flow="flow",t.Area="area",t.Choropleth="choropleth"})(Dg||(Dg={}));var H8={},j8={},ry=t=>j8[t],Cl=(t,e)=>{j8[t]=e},JA=t=>H8[t],Bp=(t,e)=>{H8[t]=e},ny={},X_={},W_=34,md=10,G_=13;function X8(t){return new Function("d","return {"+t.map(function(e,r){return JSON.stringify(e)+": d["+r+'] || ""'}).join(",")+"}")}function eS(t,e){var r=X8(t);return function(n,a){return e(r(n),a,t)}}function iy(t){var e=Object.create(null),r=[];return t.forEach(function(n){for(var a in n)a in e||r.push(e[a]=a)}),r}function Ks(t,e){var r=t+"",n=r.length;return n9999?"+"+Ks(t,6):Ks(t,4)}function rS(t){var e=t.getUTCHours(),r=t.getUTCMinutes(),n=t.getUTCSeconds(),a=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":tS(t.getUTCFullYear())+"-"+Ks(t.getUTCMonth()+1,2)+"-"+Ks(t.getUTCDate(),2)+(a?"T"+Ks(e,2)+":"+Ks(r,2)+":"+Ks(n,2)+"."+Ks(a,3)+"Z":n?"T"+Ks(e,2)+":"+Ks(r,2)+":"+Ks(n,2)+"Z":r||e?"T"+Ks(e,2)+":"+Ks(r,2)+"Z":"")}function nS(t){var e=new RegExp('["'+t+` -\r]`),r=t.charCodeAt(0);function n(b,A){var R,O,D=a(b,function(N,W){if(R)return R(N,W-1);O=N,R=A?eS(N,A):X8(N)});return D.columns=O||[],D}function a(b,A){var R=[],O=b.length,D=0,N=0,W,G=O<=0,Y=!1;b.charCodeAt(O-1)===md&&--O,b.charCodeAt(O-1)===G_&&--O;function Q(){if(G)return X_;if(Y)return Y=!1,ny;var Se,ce=D,ke;if(b.charCodeAt(ce)===W_){for(;D++=O?G=!0:(ke=b.charCodeAt(D++))===md?Y=!0:ke===G_&&(Y=!0,b.charCodeAt(D)===md&&++D),b.slice(ce+1,Se-1).replace(/""/g,'"')}for(;Dj8[t],Cl=(t,e)=>{j8[t]=e},YA=t=>H8[t],Bp=(t,e)=>{H8[t]=e},ny={},X_={},W_=34,md=10,G_=13;function X8(t){return new Function("d","return {"+t.map(function(e,r){return JSON.stringify(e)+": d["+r+'] || ""'}).join(",")+"}")}function KA(t,e){var r=X8(t);return function(n,a){return e(r(n),a,t)}}function iy(t){var e=Object.create(null),r=[];return t.forEach(function(n){for(var a in n)a in e||r.push(e[a]=a)}),r}function Ks(t,e){var r=t+"",n=r.length;return n9999?"+"+Ks(t,6):Ks(t,4)}function JA(t){var e=t.getUTCHours(),r=t.getUTCMinutes(),n=t.getUTCSeconds(),a=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":QA(t.getUTCFullYear())+"-"+Ks(t.getUTCMonth()+1,2)+"-"+Ks(t.getUTCDate(),2)+(a?"T"+Ks(e,2)+":"+Ks(r,2)+":"+Ks(n,2)+"."+Ks(a,3)+"Z":n?"T"+Ks(e,2)+":"+Ks(r,2)+":"+Ks(n,2)+"Z":r||e?"T"+Ks(e,2)+":"+Ks(r,2)+"Z":"")}function eS(t){var e=new RegExp('["'+t+` +\r]`),r=t.charCodeAt(0);function n(b,A){var R,O,D=a(b,function(N,W){if(R)return R(N,W-1);O=N,R=A?KA(N,A):X8(N)});return D.columns=O||[],D}function a(b,A){var R=[],O=b.length,D=0,N=0,W,G=O<=0,Y=!1;b.charCodeAt(O-1)===md&&--O,b.charCodeAt(O-1)===G_&&--O;function Q(){if(G)return X_;if(Y)return Y=!1,ny;var Se,ce=D,ke;if(b.charCodeAt(ce)===W_){for(;D++=O?G=!0:(ke=b.charCodeAt(D++))===md?Y=!0:ke===G_&&(Y=!0,b.charCodeAt(D)===md&&++D),b.slice(ce+1,Se-1).replace(/""/g,'"')}for(;De in t?fS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Uv=(t,e)=>{for(var r in e||(e={}))mS.call(e,r)&&sy(t,r,e[r]);if(ay)for(var r of ay(e))_S.call(e,r)&&sy(t,r,e[r]);return t},zv=(t,e)=>pS(t,dS(e)),Vv=t=>$0.REGISTERED_PROTOCOLS[t.substring(0,t.indexOf("://"))],gS=class extends Error{constructor(t,e,r,n){super(`AJAXError: ${e} (${t}): ${r}`),this.status=t,this.statusText=e,this.url=r,this.body=n}};function $8(t,e){const r=new XMLHttpRequest,n=Array.isArray(t.url)?t.url[0]:t.url;r.open(t.method||"GET",n,!0),t.type==="arrayBuffer"&&(r.responseType="arraybuffer");for(const a in t.headers)t.headers.hasOwnProperty(a)&&r.setRequestHeader(a,t.headers[a]);return t.type==="json"&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials=t.credentials==="include",r.onerror=()=>{e(new Error(r.statusText))},r.onload=()=>{if((r.status>=200&&r.status<300||r.status===0)&&r.response!==null){let a=r.response;if(t.type==="json")try{a=JSON.parse(r.response)}catch(l){return e(l)}e(null,a,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"),r)}else{const a=new Blob([r.response],{type:r.getResponseHeader("Content-Type")});e(new gS(r.status,r.statusText,n.toString(),a))}},r.cancel=r.abort,r.send(t.body),r}function vS(t){return new Promise((e,r)=>{$8(t,(n,a,l,o,p)=>{n?r({err:n,data:null,xhr:p}):e({err:null,data:a,cacheControl:l,expires:o,xhr:p})})})}function Hv(t,e){return $8(t,e)}var yS=(t,e)=>(Vv(t.url)||Hv)(zv(Uv({},t),{type:"json"}),e),jv=(t,e)=>(Vv(t.url)||Hv)(zv(Uv({},t),{type:"arrayBuffer"}),e),xS=(t,e)=>Hv(zv(Uv({},t),{method:"GET"}),e),ly="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function q8(t,e){const r=new window.Image,n=window.URL||window.webkitURL;r.crossOrigin="anonymous",r.onload=()=>{e(null,r),n.revokeObjectURL(r.src),r.onload=null,window.requestAnimationFrame(()=>{r.src=ly})},r.onerror=()=>e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const a=new Blob([new Uint8Array(t)],{type:"image/png"});r.src=t.byteLength?n.createObjectURL(a):ly}function Y8(t,e){const r=new Blob([new Uint8Array(t)],{type:"image/png"});createImageBitmap(r).then(n=>{e(null,n)}).catch(n=>{e(new Error(`Could not load image because of ${n.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}var Bg=(t,e,r)=>{const n=(a,l)=>{if(a)e(a);else if(l){const o=typeof createImageBitmap=="function",p=r?r(l):l;o?Y8(p,e):q8(p,e)}};return t.type==="json"?yS(t,n):jv(t,n)},bS=(t,e)=>{typeof createImageBitmap=="function"?Y8(t,e):q8(t,e)},Xv=(t=>(t.CENTER="center",t.TOP="top",t["TOP-LEFT"]="top-left",t["TOP-RIGHT"]="top-right",t.BOTTOM="bottom",t["BOTTOM-LEFT"]="bottom-left",t["BOTTOM-RIGHT"]="bottom-right",t.LEFT="left",t.RIGHT="right",t))(Xv||{}),Fg={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ES(t,e,r){const n=t.classList;for(const a in Fg)Fg.hasOwnProperty(a)&&n.remove(`l7-${r}-anchor-${a}`);n.add(`l7-${r}-anchor-${e}`)}function Wv(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function K8(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function w3(){}var a3=.7,pm=1/a3,hp="\\s*([+-]?\\d+)\\s*",s3="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gc="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",TS=/^#([0-9a-f]{3,8})$/,AS=new RegExp("^rgb\\("+[hp,hp,hp]+"\\)$"),SS=new RegExp("^rgb\\("+[gc,gc,gc]+"\\)$"),wS=new RegExp("^rgba\\("+[hp,hp,hp,s3]+"\\)$"),CS=new RegExp("^rgba\\("+[gc,gc,gc,s3]+"\\)$"),RS=new RegExp("^hsl\\("+[s3,gc,gc]+"\\)$"),IS=new RegExp("^hsla\\("+[s3,gc,gc,s3]+"\\)$"),uy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Wv(w3,vp,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:cy,formatHex:cy,formatHsl:MS,formatRgb:hy,toString:hy});function cy(){return this.rgb().formatHex()}function MS(){return Q8(this).formatHsl()}function hy(){return this.rgb().formatRgb()}function vp(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=TS.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?fy(e):r===3?new wl(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?b0(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?b0(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=AS.exec(t))?new wl(e[1],e[2],e[3],1):(e=SS.exec(t))?new wl(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=wS.exec(t))?b0(e[1],e[2],e[3],e[4]):(e=CS.exec(t))?b0(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=RS.exec(t))?_y(e[1],e[2]/100,e[3]/100,1):(e=IS.exec(t))?_y(e[1],e[2]/100,e[3]/100,e[4]):uy.hasOwnProperty(t)?fy(uy[t]):t==="transparent"?new wl(NaN,NaN,NaN,0):null}function fy(t){return new wl(t>>16&255,t>>8&255,t&255,1)}function b0(t,e,r,n){return n<=0&&(t=e=r=NaN),new wl(t,e,r,n)}function PS(t){return t instanceof w3||(t=vp(t)),t?(t=t.rgb(),new wl(t.r,t.g,t.b,t.opacity)):new wl}function dm(t,e,r,n){return arguments.length===1?PS(t):new wl(t,e,r,n??1)}function wl(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Wv(wl,dm,K8(w3,{brighter:function(t){return t=t==null?pm:Math.pow(pm,t),new wl(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?a3:Math.pow(a3,t),new wl(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:py,formatHex:py,formatRgb:dy,toString:dy}));function py(){return"#"+Z_(this.r)+Z_(this.g)+Z_(this.b)}function dy(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Z_(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function _y(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new dc(t,e,r,n)}function Q8(t){if(t instanceof dc)return new dc(t.h,t.s,t.l,t.opacity);if(t instanceof w3||(t=vp(t)),!t)return new dc;if(t instanceof dc)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),l=Math.max(e,r,n),o=NaN,p=l-a,m=(l+a)/2;return p?(e===l?o=(r-n)/p+(r0&&m<1?0:o,new dc(o,p,m,t.opacity)}function OS(t,e,r,n){return arguments.length===1?Q8(t):new dc(t,e,r,n??1)}function dc(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Wv(dc,OS,K8(w3,{brighter:function(t){return t=t==null?pm:Math.pow(pm,t),new dc(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?a3:Math.pow(a3,t),new dc(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,a=2*r-n;return new wl($_(t>=240?t-240:t+120,a,n),$_(t,a,n),$_(t<120?t+240:t-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function $_(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function Fi(t){const e=vp(t),r=[0,0,0,0];return e!=null&&(r[0]=e.r/255,r[1]=e.g/255,r[2]=e.b/255,r[3]=e.opacity),r}function Zh(t){const e=t&&t[0],r=t&&t[1],n=t&&t[2];return e+r*256+n*65536-1}function yp(t){return[t+1&255,t+1>>8&255,t+1>>8>>8&255]}function LS(t){let e=window.document.createElement("canvas"),r=e.getContext("2d");e.width=256,e.height=1;let n=null;const a=r.createLinearGradient(0,0,256,1),l=t.positions[0],o=t.positions[t.positions.length-1];for(let p=0;p{const o=Fi(t.colors[l]);n.data[a*4+0]=o[0]*255,n.data[a*4+1]=o[1]*255,n.data[a*4+2]=o[2]*255,n.data[a*4+3]=o[3]*255}),e=null,r=null,n}function FS(t){let e=window.document.createElement("canvas"),r=e.getContext("2d");r.globalAlpha=1,e.width=256,e.height=1;const n=256/t.colors.length;for(let o=0;o=e?t:e)),t}var US=kS,zS=US,q_=D9;function VS(t,e,r){return r===void 0&&(r=e,e=void 0),r!==void 0&&(r=q_(r),r=r===r?r:0),e!==void 0&&(e=q_(e),e=e===e?e:0),zS(q_(t),e,r)}var HS=VS;const jS=Co(HS);var XS=B9;function WS(t,e){return XS(t,e)}var GS=WS;const ZS=Co(GS);function $S(t){return t==null}var qS=$S;const YS=Co(qS);var KS=N9,QS=F9,JS=QS(function(t,e,r,n){KS(t,e,r,n)}),ew=JS;const tw=Co(ew);function rw(t,e,r,n){for(var a=r-1,l=t.length;++a-1;)p!==t&&gy.call(p,m,1),gy.call(t,m,1);return t}var hw=cw,fw=hw;function pw(t,e){return t&&t.length&&e&&e.length?fw(t,e):t}var dw=pw,mw=V9,_w=dw,gw=mw(_w),vw=gw;const yw=Co(vw);var xw=BA;function bw(t){return t&&t.length?xw(t):[]}var Ew=bw;const Tw=Co(Ew);function Aw(t){return t===void 0}var Sw=Aw;const ww=Co(Sw);var Cw=H9,Rw=0;function Iw(t){var e=++Rw;return Cw(t)+e}var Mw=Iw;const Pw=Co(Mw);var Ko={isNil:YS,merge:j9,throttle:X9,isString:W9,debounce:G9,pull:yw,isTypedArray:Z9,isPlainObject:$9,isNumber:jA,isBoolean:iA,isEqual:ZS,cloneDeep:q9,uniq:Tw,clamp:jS,upperFirst:pT,get:Y9,mergeWith:tw,isFunction:K9,isObject:Q9,isUndefined:ww,camelCase:dT,uniqueId:Pw};function Ow(t){let e=t;return typeof t=="string"&&(e=window.document.getElementById(t)),e}function J8(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function e7(t){return J8(t).split(/\s+/)}function Lw(t){var e;const r=(e=document==null?void 0:document.documentElement)==null?void 0:e.style;if(!r)return t[0];for(const n in t)if(t[n]&&t[n]in r)return t[n];return t[0]}function _a(t,e,r){const n=window.document.createElement(t);return e&&(n.className=e||""),r&&r.appendChild(n),n}function xp(t){const e=t.parentNode;e&&e.removeChild(t)}function fp(t,e){if(t.classList!==void 0){const r=e7(e);for(let n=0,a=r.length;n{t.classList.remove(n)}):t7(t,J8((" "+$v(t)+" ").replace(" "+e+" "," ")))}function Dw(t,e){if(t.classList!==void 0)return t.classList.contains(e);const r=$v(t);return r.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(r)}function t7(t,e){t instanceof HTMLElement?t.className=e:t.className.baseVal=e}function $v(t){return t instanceof SVGElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}var Bw=Lw(["transform","WebkitTransform"]);function Fw(t,e){t.style[Bw]=e}function Nw(){var t;const e=window.document.querySelector('meta[name="viewport"]');if(!e)return 1;const n=((t=e.content)==null?void 0:t.split(",")).find(a=>{const[l]=a.split("=");return l==="initial-scale"});return n?n.split("=")[1]*1:1}var Qs=Nw()<1?1:window.devicePixelRatio;function r7(t,e){t.setAttribute("style",`${t.style.cssText}${e}`)}function kw(t){return Object.entries(t).map(([e,r])=>`${e}: ${r}`).join(";")}function Uw(t,e){return{left:t.left-e.left,top:t.top-e.top,right:e.left+e.width-t.left-t.width,bottom:e.top+e.height-t.top-t.height}}function Qm(t){t.innerHTML=""}function zw(t){t.setAttribute("draggable","false")}function Vw(t,e){var r;const n=Array.isArray(e)?e:[e];let a=t;for(;a instanceof Element&&a!==window.document.body;){if(n.find(l=>a==null?void 0:a.matches(l)))return a;a=(r=a==null?void 0:a.parentElement)!=null?r:null}}function Hw(t){return typeof ImageBitmap<"u"&&t instanceof ImageBitmap}var mm=navigator==null?void 0:navigator.userAgent;mm.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);mm.indexOf("Android")>-1||mm.indexOf("Adr")>-1;function jw(){const t=mm,e=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"];let r=!0;for(const n of e)if(t.indexOf(n)>0){r=!1;break}return r}function Xw(t,e){t.forEach(r=>{e[r]&&(e[r]=e[r].bind(e))})}function kg(t){var e=[1/0,1/0,-1/0,-1/0];return G8(t,function(r){e[0]>r[0]&&(e[0]=r[0]),e[1]>r[1]&&(e[1]=r[1]),e[2]r&&t.lng<=a&&t.lat>n&&t.lat<=l}function Gw(t){const e=[1/0,1/0,-1/0,-1/0];return t.forEach(r=>{const{coordinates:n}=r;n7(e,n)}),e}function n7(t,e){return Array.isArray(e[0])?e.forEach(r=>{n7(t,r)}):(t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]180||t<-180)&&(t=t%360,t>180&&(t=-360+t),t<-180&&(t=360+t),t===0&&(t=0)),t}function $w(t){if(t==null)throw new Error("lat is required");return(t>90||t<-90)&&(t=t%180,t>90&&(t=-180+t),t<-90&&(t=180+t),t===0&&(t=0)),t}function qw(t,e){if(e===!1)return t;const r=Zw(t[0]);let n=$w(t[1]);return n>85&&(n=85),n<-85&&(n=-85),t.length===3?[r,n,t[2]]:[r,n]}function su(t){const e=85.0511287798,r=Math.max(Math.min(e,t[1]),-e),n=256<<20;let a=Math.PI/180,l=t[0]*a,o=r*a;o=Math.log(Math.tan(Math.PI/4+o/2));const p=.5/Math.PI,m=.5,v=-.5/Math.PI;return a=.5,l=n*(p*l+m),o=n*(v*o+a),[Math.floor(l),Math.floor(o)]}function K_(t,e){const r=85.0511287798,n=Math.PI/180,a=6378137;return e=Math.max(Math.min(r,e),-r),t*=n,e*=n,e=Math.log(Math.tan(Math.PI/4+e/2)),[t*a,e*a]}function Yw(t,e,r){const n=x0(e[1]-t[1]),a=x0(e[0]-t[0]),l=x0(t[1]),o=x0(e[1]),p=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(l)*Math.cos(o);return cS(2*Math.atan2(Math.sqrt(p),Math.sqrt(1-p)),"meters")}function qv(t,e){const r=Math.abs(t[1][1]-t[0][1])*e,n=Math.abs(t[1][0]-t[0][0])*e;return[[t[0][0]-n,t[0][1]-r],[t[1][0]+n,t[1][1]+r]]}function i7(t,e){return t[0][0]<=e[0][0]&&t[0][1]<=e[0][1]&&t[1][0]>=e[1][0]&&t[1][1]>=e[1][1]}function _m(t){return[[t[0],t[1]],[t[2],t[3]]]}function Kw(t){const e=Qw(t,[0,0]);return[t[0]/e,t[1]/e]}function Qw(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function Kh(t){if(Y_(t[0]))return t;if(Y_(t[0][0]))throw new Error("当前数据不支持标注");if(Y_(t[0][0][0])){const e=t;let r=0,n=0,a=0;return e.forEach(l=>{l.forEach(o=>{r+=o[0],n+=o[1],a++})}),[r/a,n/a,0]}else throw new Error("当前数据不支持标注")}function Jw(t){let e=t[0],r=t[1],n=t[0],a=t[1],l=0,o=0,p=0;for(let m=0;m{const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var rC=class{constructor(t=50,e){this.limit=t,this.destroy=e||this.defaultDestroy,this.order=[],this.clear()}clear(){this.order.forEach(t=>{this.delete(t)}),this.cache={},this.order=[]}get(t){const e=this.cache[t];return e&&(this.deleteOrder(t),this.appendOrder(t)),e}set(t,e){this.cache[t]?(this.delete(t),this.cache[t]=e,this.appendOrder(t)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[t]=e,this.appendOrder(t))}delete(t){const e=this.cache[t];e&&(this.deleteCache(t),this.deleteOrder(t),this.destroy(e,t))}deleteCache(t){delete this.cache[t]}deleteOrder(t){const e=this.order.findIndex(r=>r===t);e>=0&&this.order.splice(e,1)}appendOrder(t){this.order.push(t)}defaultDestroy(t,e){return null}};function nC(t){if(t.length===0)throw new Error("max requires at least one data point");let e=t[0];for(let r=1;re&&(e=t[r]);return e*1}function iC(t){if(t.length===0)throw new Error("min requires at least one data point");let e=t[0];for(let r=1;rn&&(n=a,r=e),a=1,e=t[l]):a++;return r*1}var a7={min:iC,max:nC,mean:oC,sum:o7,mode:aC};function s7(t,e){return t.map(r=>r[e])}function sC(t,e){e===void 0&&(e={});var r=Number(t[0]),n=Number(t[1]),a=Number(t[2]),l=Number(t[3]);if(t.length===6)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var o=[r,n],p=[r,l],m=[a,l],v=[a,n];return kv([[o,v,m,p,o]],e.properties,{bbox:t,id:e.id})}var l7={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(m,v,E){this.fn=m,this.context=v,this.once=E||!1}function l(m,v,E,b,A){if(typeof E!="function")throw new TypeError("The listener must be a function");var R=new a(E,b||m,A),O=r?r+v:v;return m._events[O]?m._events[O].fn?m._events[O]=[m._events[O],R]:m._events[O].push(R):(m._events[O]=R,m._eventsCount++),m}function o(m,v){--m._eventsCount===0?m._events=new n:delete m._events[v]}function p(){this._events=new n,this._eventsCount=0}p.prototype.eventNames=function(){var v=[],E,b;if(this._eventsCount===0)return v;for(b in E=this._events)e.call(E,b)&&v.push(r?b.slice(1):b);return Object.getOwnPropertySymbols?v.concat(Object.getOwnPropertySymbols(E)):v},p.prototype.listeners=function(v){var E=r?r+v:v,b=this._events[E];if(!b)return[];if(b.fn)return[b.fn];for(var A=0,R=b.length,O=new Array(R);A(t.Realtime="realtime",t.Overlap="overlap",t.Replace="replace",t))(Kd||{}),eu=(t=>(t.Loading="Loading",t.Loaded="Loaded",t.Failure="Failure",t.Cancelled="Cancelled",t))(eu||{}),u7=0,yy=1,Jm=2;function lC(t){t.forEach(e=>{e.isCurrent&&(e.isVisible=e.isLoaded)})}function uC(t){t.forEach(e=>{e.properties.state=u7}),t.forEach(e=>{e.isCurrent&&!c7(e)&&Kv(e)}),t.forEach(e=>{e.isVisible=!!(e.properties.state&Jm)})}function cC(t){t.forEach(r=>{r.properties.state=u7}),t.forEach(r=>{r.isCurrent&&c7(r)}),t.slice().sort((r,n)=>r.z-n.z).forEach(r=>{r.isVisible=!!(r.properties.state&Jm),r.children.length&&(r.isVisible||r.properties.state&yy)?r.children.forEach(n=>{n.properties.state=yy}):r.isCurrent&&Kv(r)})}function c7(t){for(;t;){if(t.isLoaded)return t.properties.state|=Jm,!0;t=t.parent}return!1}function Kv(t){t.children.forEach(e=>{e.isLoaded?e.properties.state|=Jm:Kv(e)})}var h7=[-1/0,-1/0,1/0,1/0],hC=.2,fC=5,pC={[Kd.Realtime]:lC,[Kd.Overlap]:uC,[Kd.Replace]:cC},dC=()=>{};function Ug(t,e,r){const n=Math.floor((t+180)/360*Math.pow(2,r)),a=Math.floor((1-Math.log(Math.tan(e*Math.PI/180)+1/Math.cos(e*Math.PI/180))/Math.PI)/2*Math.pow(2,r));return[n,a]}function xy(t,e,r){const n=t/Math.pow(2,r)*360-180,a=Math.PI-2*Math.PI*e/Math.pow(2,r),l=180/Math.PI*Math.atan(.5*(Math.exp(a)-Math.exp(-a)));return[n,l]}var f7=(t,e,r)=>{const[n,a]=xy(t,e,r),[l,o]=xy(t+1,e+1,r);return[n,o,l,a]};function mC({zoom:t,latLonBounds:e,maxZoom:r=1/0,minZoom:n=0,zoomOffset:a=0,extent:l=h7}){let o=Math.ceil(t)+a;if(Number.isFinite(n)&&or&&(o=r);const[p,m,v,E]=e,b=[Math.max(p,l[0]),Math.max(m,l[1]),Math.min(v,l[2]),Math.min(E,l[3])],A=[],[R,O]=Ug(b[0],b[1],o),[D,N]=Ug(b[2],b[3],o);for(let Q=R;Q<=D;Q++)for(let J=N;J<=O;J++)A.push({x:Q,y:J,z:o});const W=(D+R)/2,G=(O+N)/2,Y=(Q,J)=>Math.abs(Q-W)+Math.abs(J-G);return A.sort((Q,J)=>Y(Q.x,Q.y)-Y(J.x,J.y)),A}var _C=(t,e,r,n=!0)=>{const a=Math.pow(2,r),l=a-1,o=a;let p=t;const m=e;return n&&(p<0?p=p+o:p>l&&(p=p%o)),{warpX:p,warpY:m}},gC=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),vC=class extends Ps.EventEmitter{constructor(t){super(),this.tileSize=256,this.isVisible=!1,this.isCurrent=!1,this.isVisibleChange=!1,this.loadedLayers=0,this.isLayerLoaded=!1,this.isLoad=!1,this.isChildLoad=!1,this.parent=null,this.children=[],this.data=null,this.properties={},this.loadDataId=0;const{x:e,y:r,z:n,tileSize:a,warp:l=!0}=t;this.x=e,this.y=r,this.z=n,this.warp=l||!0,this.tileSize=a}get isLoading(){return this.loadStatus===eu.Loading}get isLoaded(){return this.loadStatus===eu.Loaded}get isFailure(){return this.loadStatus===eu.Failure}setTileLayerLoaded(){this.isLayerLoaded=!0}get isCancelled(){return this.loadStatus===eu.Cancelled}get isDone(){return[eu.Loaded,eu.Cancelled,eu.Failure].includes(this.loadStatus)}get bounds(){return f7(this.x,this.y,this.z)}get bboxPolygon(){const[t,e,r,n]=this.bounds,a=[(r-t)/2,(n-e)/2];return sC(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:a,meta:` +`)}function v(b){return b.map(E).join(t)}function E(b){return b==null?"":b instanceof Date?JA(b):e.test(b+="")?'"'+b.replace(/"/g,'""')+'"':b}return{parse:n,parseRows:a,format:o,formatBody:p,formatRows:m,formatRow:v,formatValue:E}}var tS=eS(","),rS=tS.parse,Ys=63710088e-1,nS={centimeters:Ys*100,centimetres:Ys*100,degrees:Ys/111325,feet:Ys*3.28084,inches:Ys*39.37,kilometers:Ys/1e3,kilometres:Ys/1e3,meters:Ys,metres:Ys,miles:Ys/1609.344,millimeters:Ys*1e3,millimetres:Ys*1e3,nauticalmiles:Ys/1852,radians:1,yards:Ys*1.0936};function o3(t,e,r){r===void 0&&(r={});var n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function kv(t,e,r){r===void 0&&(r={});for(var n=0,a=t;ne in t?uS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Uv=(t,e)=>{for(var r in e||(e={}))fS.call(e,r)&&sy(t,r,e[r]);if(ay)for(var r of ay(e))pS.call(e,r)&&sy(t,r,e[r]);return t},zv=(t,e)=>cS(t,hS(e)),Vv=t=>$0.REGISTERED_PROTOCOLS[t.substring(0,t.indexOf("://"))],dS=class extends Error{constructor(t,e,r,n){super(`AJAXError: ${e} (${t}): ${r}`),this.status=t,this.statusText=e,this.url=r,this.body=n}};function $8(t,e){const r=new XMLHttpRequest,n=Array.isArray(t.url)?t.url[0]:t.url;r.open(t.method||"GET",n,!0),t.type==="arrayBuffer"&&(r.responseType="arraybuffer");for(const a in t.headers)t.headers.hasOwnProperty(a)&&r.setRequestHeader(a,t.headers[a]);return t.type==="json"&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials=t.credentials==="include",r.onerror=()=>{e(new Error(r.statusText))},r.onload=()=>{if((r.status>=200&&r.status<300||r.status===0)&&r.response!==null){let a=r.response;if(t.type==="json")try{a=JSON.parse(r.response)}catch(l){return e(l)}e(null,a,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"),r)}else{const a=new Blob([r.response],{type:r.getResponseHeader("Content-Type")});e(new dS(r.status,r.statusText,n.toString(),a))}},r.cancel=r.abort,r.send(t.body),r}function mS(t){return new Promise((e,r)=>{$8(t,(n,a,l,o,p)=>{n?r({err:n,data:null,xhr:p}):e({err:null,data:a,cacheControl:l,expires:o,xhr:p})})})}function Hv(t,e){return $8(t,e)}var _S=(t,e)=>(Vv(t.url)||Hv)(zv(Uv({},t),{type:"json"}),e),jv=(t,e)=>(Vv(t.url)||Hv)(zv(Uv({},t),{type:"arrayBuffer"}),e),gS=(t,e)=>Hv(zv(Uv({},t),{method:"GET"}),e),ly="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function q8(t,e){const r=new window.Image,n=window.URL||window.webkitURL;r.crossOrigin="anonymous",r.onload=()=>{e(null,r),n.revokeObjectURL(r.src),r.onload=null,window.requestAnimationFrame(()=>{r.src=ly})},r.onerror=()=>e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const a=new Blob([new Uint8Array(t)],{type:"image/png"});r.src=t.byteLength?n.createObjectURL(a):ly}function Y8(t,e){const r=new Blob([new Uint8Array(t)],{type:"image/png"});createImageBitmap(r).then(n=>{e(null,n)}).catch(n=>{e(new Error(`Could not load image because of ${n.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}var Bg=(t,e,r)=>{const n=(a,l)=>{if(a)e(a);else if(l){const o=typeof createImageBitmap=="function",p=r?r(l):l;o?Y8(p,e):q8(p,e)}};return t.type==="json"?_S(t,n):jv(t,n)},vS=(t,e)=>{typeof createImageBitmap=="function"?Y8(t,e):q8(t,e)},Xv=(t=>(t.CENTER="center",t.TOP="top",t["TOP-LEFT"]="top-left",t["TOP-RIGHT"]="top-right",t.BOTTOM="bottom",t["BOTTOM-LEFT"]="bottom-left",t["BOTTOM-RIGHT"]="bottom-right",t.LEFT="left",t.RIGHT="right",t))(Xv||{}),Fg={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function yS(t,e,r){const n=t.classList;for(const a in Fg)Fg.hasOwnProperty(a)&&n.remove(`l7-${r}-anchor-${a}`);n.add(`l7-${r}-anchor-${e}`)}function Wv(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function K8(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function w3(){}var a3=.7,pm=1/a3,hp="\\s*([+-]?\\d+)\\s*",s3="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gc="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xS=/^#([0-9a-f]{3,8})$/,bS=new RegExp("^rgb\\("+[hp,hp,hp]+"\\)$"),ES=new RegExp("^rgb\\("+[gc,gc,gc]+"\\)$"),TS=new RegExp("^rgba\\("+[hp,hp,hp,s3]+"\\)$"),AS=new RegExp("^rgba\\("+[gc,gc,gc,s3]+"\\)$"),SS=new RegExp("^hsl\\("+[s3,gc,gc]+"\\)$"),wS=new RegExp("^hsla\\("+[s3,gc,gc,s3]+"\\)$"),uy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Wv(w3,vp,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:cy,formatHex:cy,formatHsl:CS,formatRgb:hy,toString:hy});function cy(){return this.rgb().formatHex()}function CS(){return Q8(this).formatHsl()}function hy(){return this.rgb().formatRgb()}function vp(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=xS.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?fy(e):r===3?new wl(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?b0(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?b0(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=bS.exec(t))?new wl(e[1],e[2],e[3],1):(e=ES.exec(t))?new wl(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=TS.exec(t))?b0(e[1],e[2],e[3],e[4]):(e=AS.exec(t))?b0(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=SS.exec(t))?_y(e[1],e[2]/100,e[3]/100,1):(e=wS.exec(t))?_y(e[1],e[2]/100,e[3]/100,e[4]):uy.hasOwnProperty(t)?fy(uy[t]):t==="transparent"?new wl(NaN,NaN,NaN,0):null}function fy(t){return new wl(t>>16&255,t>>8&255,t&255,1)}function b0(t,e,r,n){return n<=0&&(t=e=r=NaN),new wl(t,e,r,n)}function RS(t){return t instanceof w3||(t=vp(t)),t?(t=t.rgb(),new wl(t.r,t.g,t.b,t.opacity)):new wl}function dm(t,e,r,n){return arguments.length===1?RS(t):new wl(t,e,r,n??1)}function wl(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Wv(wl,dm,K8(w3,{brighter:function(t){return t=t==null?pm:Math.pow(pm,t),new wl(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?a3:Math.pow(a3,t),new wl(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:py,formatHex:py,formatRgb:dy,toString:dy}));function py(){return"#"+Z_(this.r)+Z_(this.g)+Z_(this.b)}function dy(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Z_(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function _y(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new dc(t,e,r,n)}function Q8(t){if(t instanceof dc)return new dc(t.h,t.s,t.l,t.opacity);if(t instanceof w3||(t=vp(t)),!t)return new dc;if(t instanceof dc)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),l=Math.max(e,r,n),o=NaN,p=l-a,m=(l+a)/2;return p?(e===l?o=(r-n)/p+(r0&&m<1?0:o,new dc(o,p,m,t.opacity)}function IS(t,e,r,n){return arguments.length===1?Q8(t):new dc(t,e,r,n??1)}function dc(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Wv(dc,IS,K8(w3,{brighter:function(t){return t=t==null?pm:Math.pow(pm,t),new dc(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?a3:Math.pow(a3,t),new dc(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,a=2*r-n;return new wl($_(t>=240?t-240:t+120,a,n),$_(t,a,n),$_(t<120?t+240:t-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function $_(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function Fi(t){const e=vp(t),r=[0,0,0,0];return e!=null&&(r[0]=e.r/255,r[1]=e.g/255,r[2]=e.b/255,r[3]=e.opacity),r}function Zh(t){const e=t&&t[0],r=t&&t[1],n=t&&t[2];return e+r*256+n*65536-1}function yp(t){return[t+1&255,t+1>>8&255,t+1>>8>>8&255]}function MS(t){let e=window.document.createElement("canvas"),r=e.getContext("2d");e.width=256,e.height=1;let n=null;const a=r.createLinearGradient(0,0,256,1),l=t.positions[0],o=t.positions[t.positions.length-1];for(let p=0;p{const o=Fi(t.colors[l]);n.data[a*4+0]=o[0]*255,n.data[a*4+1]=o[1]*255,n.data[a*4+2]=o[2]*255,n.data[a*4+3]=o[3]*255}),e=null,r=null,n}function LS(t){let e=window.document.createElement("canvas"),r=e.getContext("2d");r.globalAlpha=1,e.width=256,e.height=1;const n=256/t.colors.length;for(let o=0;o=e?t:e)),t}var FS=BS,NS=FS,q_=O9;function kS(t,e,r){return r===void 0&&(r=e,e=void 0),r!==void 0&&(r=q_(r),r=r===r?r:0),e!==void 0&&(e=q_(e),e=e===e?e:0),NS(q_(t),e,r)}var US=kS;const zS=Co(US);var VS=L9;function HS(t,e){return VS(t,e)}var jS=HS;const XS=Co(jS);function WS(t){return t==null}var GS=WS;const ZS=Co(GS);var $S=B9,qS=D9,YS=qS(function(t,e,r,n){$S(t,e,r,n)}),KS=YS;const QS=Co(KS);function JS(t,e,r,n){for(var a=r-1,l=t.length;++a-1;)p!==t&&gy.call(p,m,1),gy.call(t,m,1);return t}var lw=sw,uw=lw;function cw(t,e){return t&&t.length&&e&&e.length?uw(t,e):t}var hw=cw,fw=U9,pw=hw,dw=fw(pw),mw=dw;const _w=Co(mw);var gw=OA;function vw(t){return t&&t.length?gw(t):[]}var yw=vw;const xw=Co(yw);function bw(t){return t===void 0}var Ew=bw;const Tw=Co(Ew);var Aw=z9,Sw=0;function ww(t){var e=++Sw;return Aw(t)+e}var Cw=ww;const Rw=Co(Cw);var Ko={isNil:ZS,merge:V9,throttle:H9,isString:j9,debounce:X9,pull:_w,isTypedArray:W9,isPlainObject:G9,isNumber:zA,isBoolean:tA,isEqual:XS,cloneDeep:Z9,uniq:xw,clamp:zS,upperFirst:hT,get:$9,mergeWith:QS,isFunction:q9,isObject:Y9,isUndefined:Tw,camelCase:fT,uniqueId:Rw};function Iw(t){let e=t;return typeof t=="string"&&(e=window.document.getElementById(t)),e}function J8(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function e7(t){return J8(t).split(/\s+/)}function Mw(t){var e;const r=(e=document==null?void 0:document.documentElement)==null?void 0:e.style;if(!r)return t[0];for(const n in t)if(t[n]&&t[n]in r)return t[n];return t[0]}function _a(t,e,r){const n=window.document.createElement(t);return e&&(n.className=e||""),r&&r.appendChild(n),n}function xp(t){const e=t.parentNode;e&&e.removeChild(t)}function fp(t,e){if(t.classList!==void 0){const r=e7(e);for(let n=0,a=r.length;n{t.classList.remove(n)}):t7(t,J8((" "+$v(t)+" ").replace(" "+e+" "," ")))}function Pw(t,e){if(t.classList!==void 0)return t.classList.contains(e);const r=$v(t);return r.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(r)}function t7(t,e){t instanceof HTMLElement?t.className=e:t.className.baseVal=e}function $v(t){return t instanceof SVGElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}var Ow=Mw(["transform","WebkitTransform"]);function Lw(t,e){t.style[Ow]=e}function Dw(){var t;const e=window.document.querySelector('meta[name="viewport"]');if(!e)return 1;const n=((t=e.content)==null?void 0:t.split(",")).find(a=>{const[l]=a.split("=");return l==="initial-scale"});return n?n.split("=")[1]*1:1}var Qs=Dw()<1?1:window.devicePixelRatio;function r7(t,e){t.setAttribute("style",`${t.style.cssText}${e}`)}function Bw(t){return Object.entries(t).map(([e,r])=>`${e}: ${r}`).join(";")}function Fw(t,e){return{left:t.left-e.left,top:t.top-e.top,right:e.left+e.width-t.left-t.width,bottom:e.top+e.height-t.top-t.height}}function Qm(t){t.innerHTML=""}function Nw(t){t.setAttribute("draggable","false")}function kw(t,e){var r;const n=Array.isArray(e)?e:[e];let a=t;for(;a instanceof Element&&a!==window.document.body;){if(n.find(l=>a==null?void 0:a.matches(l)))return a;a=(r=a==null?void 0:a.parentElement)!=null?r:null}}function Uw(t){return typeof ImageBitmap<"u"&&t instanceof ImageBitmap}var mm=navigator==null?void 0:navigator.userAgent;mm.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);mm.indexOf("Android")>-1||mm.indexOf("Adr")>-1;function zw(){const t=mm,e=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"];let r=!0;for(const n of e)if(t.indexOf(n)>0){r=!1;break}return r}function Vw(t,e){t.forEach(r=>{e[r]&&(e[r]=e[r].bind(e))})}function kg(t){var e=[1/0,1/0,-1/0,-1/0];return G8(t,function(r){e[0]>r[0]&&(e[0]=r[0]),e[1]>r[1]&&(e[1]=r[1]),e[2]r&&t.lng<=a&&t.lat>n&&t.lat<=l}function jw(t){const e=[1/0,1/0,-1/0,-1/0];return t.forEach(r=>{const{coordinates:n}=r;n7(e,n)}),e}function n7(t,e){return Array.isArray(e[0])?e.forEach(r=>{n7(t,r)}):(t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]180||t<-180)&&(t=t%360,t>180&&(t=-360+t),t<-180&&(t=360+t),t===0&&(t=0)),t}function Ww(t){if(t==null)throw new Error("lat is required");return(t>90||t<-90)&&(t=t%180,t>90&&(t=-180+t),t<-90&&(t=180+t),t===0&&(t=0)),t}function Gw(t,e){if(e===!1)return t;const r=Xw(t[0]);let n=Ww(t[1]);return n>85&&(n=85),n<-85&&(n=-85),t.length===3?[r,n,t[2]]:[r,n]}function su(t){const e=85.0511287798,r=Math.max(Math.min(e,t[1]),-e),n=256<<20;let a=Math.PI/180,l=t[0]*a,o=r*a;o=Math.log(Math.tan(Math.PI/4+o/2));const p=.5/Math.PI,m=.5,v=-.5/Math.PI;return a=.5,l=n*(p*l+m),o=n*(v*o+a),[Math.floor(l),Math.floor(o)]}function K_(t,e){const r=85.0511287798,n=Math.PI/180,a=6378137;return e=Math.max(Math.min(r,e),-r),t*=n,e*=n,e=Math.log(Math.tan(Math.PI/4+e/2)),[t*a,e*a]}function Zw(t,e,r){const n=x0(e[1]-t[1]),a=x0(e[0]-t[0]),l=x0(t[1]),o=x0(e[1]),p=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(l)*Math.cos(o);return sS(2*Math.atan2(Math.sqrt(p),Math.sqrt(1-p)),"meters")}function qv(t,e){const r=Math.abs(t[1][1]-t[0][1])*e,n=Math.abs(t[1][0]-t[0][0])*e;return[[t[0][0]-n,t[0][1]-r],[t[1][0]+n,t[1][1]+r]]}function i7(t,e){return t[0][0]<=e[0][0]&&t[0][1]<=e[0][1]&&t[1][0]>=e[1][0]&&t[1][1]>=e[1][1]}function _m(t){return[[t[0],t[1]],[t[2],t[3]]]}function $w(t){const e=qw(t,[0,0]);return[t[0]/e,t[1]/e]}function qw(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function Kh(t){if(Y_(t[0]))return t;if(Y_(t[0][0]))throw new Error("当前数据不支持标注");if(Y_(t[0][0][0])){const e=t;let r=0,n=0,a=0;return e.forEach(l=>{l.forEach(o=>{r+=o[0],n+=o[1],a++})}),[r/a,n/a,0]}else throw new Error("当前数据不支持标注")}function Yw(t){let e=t[0],r=t[1],n=t[0],a=t[1],l=0,o=0,p=0;for(let m=0;m{const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Jw=class{constructor(t=50,e){this.limit=t,this.destroy=e||this.defaultDestroy,this.order=[],this.clear()}clear(){this.order.forEach(t=>{this.delete(t)}),this.cache={},this.order=[]}get(t){const e=this.cache[t];return e&&(this.deleteOrder(t),this.appendOrder(t)),e}set(t,e){this.cache[t]?(this.delete(t),this.cache[t]=e,this.appendOrder(t)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[t]=e,this.appendOrder(t))}delete(t){const e=this.cache[t];e&&(this.deleteCache(t),this.deleteOrder(t),this.destroy(e,t))}deleteCache(t){delete this.cache[t]}deleteOrder(t){const e=this.order.findIndex(r=>r===t);e>=0&&this.order.splice(e,1)}appendOrder(t){this.order.push(t)}defaultDestroy(t,e){return null}};function eC(t){if(t.length===0)throw new Error("max requires at least one data point");let e=t[0];for(let r=1;re&&(e=t[r]);return e*1}function tC(t){if(t.length===0)throw new Error("min requires at least one data point");let e=t[0];for(let r=1;rn&&(n=a,r=e),a=1,e=t[l]):a++;return r*1}var a7={min:tC,max:eC,mean:rC,sum:o7,mode:nC};function s7(t,e){return t.map(r=>r[e])}function iC(t,e){e===void 0&&(e={});var r=Number(t[0]),n=Number(t[1]),a=Number(t[2]),l=Number(t[3]);if(t.length===6)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var o=[r,n],p=[r,l],m=[a,l],v=[a,n];return kv([[o,v,m,p,o]],e.properties,{bbox:t,id:e.id})}var l7={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(m,v,E){this.fn=m,this.context=v,this.once=E||!1}function l(m,v,E,b,A){if(typeof E!="function")throw new TypeError("The listener must be a function");var R=new a(E,b||m,A),O=r?r+v:v;return m._events[O]?m._events[O].fn?m._events[O]=[m._events[O],R]:m._events[O].push(R):(m._events[O]=R,m._eventsCount++),m}function o(m,v){--m._eventsCount===0?m._events=new n:delete m._events[v]}function p(){this._events=new n,this._eventsCount=0}p.prototype.eventNames=function(){var v=[],E,b;if(this._eventsCount===0)return v;for(b in E=this._events)e.call(E,b)&&v.push(r?b.slice(1):b);return Object.getOwnPropertySymbols?v.concat(Object.getOwnPropertySymbols(E)):v},p.prototype.listeners=function(v){var E=r?r+v:v,b=this._events[E];if(!b)return[];if(b.fn)return[b.fn];for(var A=0,R=b.length,O=new Array(R);A(t.Realtime="realtime",t.Overlap="overlap",t.Replace="replace",t))(Kd||{}),eu=(t=>(t.Loading="Loading",t.Loaded="Loaded",t.Failure="Failure",t.Cancelled="Cancelled",t))(eu||{}),u7=0,yy=1,Jm=2;function oC(t){t.forEach(e=>{e.isCurrent&&(e.isVisible=e.isLoaded)})}function aC(t){t.forEach(e=>{e.properties.state=u7}),t.forEach(e=>{e.isCurrent&&!c7(e)&&Kv(e)}),t.forEach(e=>{e.isVisible=!!(e.properties.state&Jm)})}function sC(t){t.forEach(r=>{r.properties.state=u7}),t.forEach(r=>{r.isCurrent&&c7(r)}),t.slice().sort((r,n)=>r.z-n.z).forEach(r=>{r.isVisible=!!(r.properties.state&Jm),r.children.length&&(r.isVisible||r.properties.state&yy)?r.children.forEach(n=>{n.properties.state=yy}):r.isCurrent&&Kv(r)})}function c7(t){for(;t;){if(t.isLoaded)return t.properties.state|=Jm,!0;t=t.parent}return!1}function Kv(t){t.children.forEach(e=>{e.isLoaded?e.properties.state|=Jm:Kv(e)})}var h7=[-1/0,-1/0,1/0,1/0],lC=.2,uC=5,cC={[Kd.Realtime]:oC,[Kd.Overlap]:aC,[Kd.Replace]:sC},hC=()=>{};function Ug(t,e,r){const n=Math.floor((t+180)/360*Math.pow(2,r)),a=Math.floor((1-Math.log(Math.tan(e*Math.PI/180)+1/Math.cos(e*Math.PI/180))/Math.PI)/2*Math.pow(2,r));return[n,a]}function xy(t,e,r){const n=t/Math.pow(2,r)*360-180,a=Math.PI-2*Math.PI*e/Math.pow(2,r),l=180/Math.PI*Math.atan(.5*(Math.exp(a)-Math.exp(-a)));return[n,l]}var f7=(t,e,r)=>{const[n,a]=xy(t,e,r),[l,o]=xy(t+1,e+1,r);return[n,o,l,a]};function fC({zoom:t,latLonBounds:e,maxZoom:r=1/0,minZoom:n=0,zoomOffset:a=0,extent:l=h7}){let o=Math.ceil(t)+a;if(Number.isFinite(n)&&or&&(o=r);const[p,m,v,E]=e,b=[Math.max(p,l[0]),Math.max(m,l[1]),Math.min(v,l[2]),Math.min(E,l[3])],A=[],[R,O]=Ug(b[0],b[1],o),[D,N]=Ug(b[2],b[3],o);for(let Q=R;Q<=D;Q++)for(let J=N;J<=O;J++)A.push({x:Q,y:J,z:o});const W=(D+R)/2,G=(O+N)/2,Y=(Q,J)=>Math.abs(Q-W)+Math.abs(J-G);return A.sort((Q,J)=>Y(Q.x,Q.y)-Y(J.x,J.y)),A}var pC=(t,e,r,n=!0)=>{const a=Math.pow(2,r),l=a-1,o=a;let p=t;const m=e;return n&&(p<0?p=p+o:p>l&&(p=p%o)),{warpX:p,warpY:m}},dC=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),mC=class extends Ps.EventEmitter{constructor(t){super(),this.tileSize=256,this.isVisible=!1,this.isCurrent=!1,this.isVisibleChange=!1,this.loadedLayers=0,this.isLayerLoaded=!1,this.isLoad=!1,this.isChildLoad=!1,this.parent=null,this.children=[],this.data=null,this.properties={},this.loadDataId=0;const{x:e,y:r,z:n,tileSize:a,warp:l=!0}=t;this.x=e,this.y=r,this.z=n,this.warp=l||!0,this.tileSize=a}get isLoading(){return this.loadStatus===eu.Loading}get isLoaded(){return this.loadStatus===eu.Loaded}get isFailure(){return this.loadStatus===eu.Failure}setTileLayerLoaded(){this.isLayerLoaded=!0}get isCancelled(){return this.loadStatus===eu.Cancelled}get isDone(){return[eu.Loaded,eu.Cancelled,eu.Failure].includes(this.loadStatus)}get bounds(){return f7(this.x,this.y,this.z)}get bboxPolygon(){const[t,e,r,n]=this.bounds,a=[(r-t)/2,(n-e)/2];return iC(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:a,meta:` ${this.key} - `}})}get key(){return`${this.x}_${this.y}_${this.z}`}layerLoad(){this.loadedLayers++,this.emit("layerLoaded")}loadData(t){return gC(this,arguments,function*({getData:e,onLoad:r,onError:n}){this.loadDataId++;const a=this.loadDataId;this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=eu.Loading;let l=null,o;try{const{x:p,y:m,z:v,bounds:E,tileSize:b,warp:A}=this,{warpX:R,warpY:O}=_C(p,m,v,A),{signal:D}=this.abortController;l=yield e({x:R,y:O,z:v,bounds:E,tileSize:b,signal:D,warp:A},this)}catch(p){o=p}if(a===this.loadDataId&&!(this.isCancelled&&!l)){if(o||!l){this.loadStatus=eu.Failure,n(o,this);return}this.loadStatus=eu.Loaded,this.data=l,r(this)}})}reloadData(t){this.isLoading&&this.abortLoad(),this.loadData(t)}abortLoad(){this.isLoaded||this.isCancelled||(this.loadStatus=eu.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}},yC=(t,e)=>{const r=_m(t),n=qv(r,e),a=360*3-180,l=85.0511287798065;return[Math.max(n[0][0],-a),Math.max(n[0][1],-l),Math.min(n[1][0],a),Math.min(n[1][1],l)]},xC=(t,e)=>{const r=_m(t),n=_m(e);return i7(r,n)},bC=Object.defineProperty,EC=Object.defineProperties,TC=Object.getOwnPropertyDescriptors,by=Object.getOwnPropertySymbols,AC=Object.prototype.hasOwnProperty,SC=Object.prototype.propertyIsEnumerable,Ey=(t,e,r)=>e in t?bC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ty=(t,e)=>{for(var r in e||(e={}))AC.call(e,r)&&Ey(t,r,e[r]);if(by)for(var r of by(e))SC.call(e,r)&&Ey(t,r,e[r]);return t},wC=(t,e)=>EC(t,TC(e)),{throttle:CC}=Ko,RC=class extends Yv{constructor(t){super(),this.currentTiles=[],this.cacheTiles=new Map,this.throttleUpdate=CC((e,r)=>{this.update(e,r)},16),this.onTileLoad=e=>{this.emit("tile-loaded",e),this.updateTileVisible(),this.loadFinished()},this.onTileError=(e,r)=>{this.emit("tile-error",{error:e,tile:r}),this.updateTileVisible(),this.loadFinished()},this.onTileUnload=e=>{this.emit("tile-unload",e),this.loadFinished()},this.options={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0,extent:h7,getTileData:dC,warp:!0,updateStrategy:Kd.Replace},this.updateOptions(t)}get isLoaded(){return this.currentTiles.every(t=>t.isDone)}get tiles(){return Array.from(this.cacheTiles.values()).sort((e,r)=>e.z-r.z)}updateOptions(t){const e=t.minZoom===void 0?this.options.minZoom:Math.ceil(t.minZoom),r=t.maxZoom===void 0?this.options.maxZoom:Math.floor(t.maxZoom);this.options=wC(Ty(Ty({},this.options),t),{minZoom:e,maxZoom:r})}update(t,e){const r=Math.max(0,Math.ceil(t));if(this.lastViewStates&&this.lastViewStates.zoom===r&&xC(this.lastViewStates.latLonBoundsBuffer,e))return;const n=yC(e,hC);this.lastViewStates={zoom:r,latLonBounds:e,latLonBoundsBuffer:n},this.currentZoom=r;let a=!1;const l=this.getTileIndices(r,n).filter(o=>this.options.warp||o.x>=0&&o.x{let v=this.getTile(o,p,m);return v?(((v==null?void 0:v.isFailure)||(v==null?void 0:v.isCancelled))&&v.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),v):(v=this.createTile(o,p,m),a=!0,v)}),a&&this.resizeCacheTiles(),this.updateTileVisible(),this.pruneRequests()}reloadAll(){for(const[t,e]of this.cacheTiles){if(!this.currentTiles.includes(e)){this.cacheTiles.delete(t),this.onTileUnload(e);return}this.onTileUnload(e),e.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError})}}reloadTileById(t,e,r){const n=this.cacheTiles.get(`${e},${r},${t}`);n&&(this.onTileUnload(n),n.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}))}reloadTileByLnglat(t,e,r){const n=this.getTileByLngLat(t,e,r);n&&this.reloadTileById(n.z,n.x,n.y)}reloadTileByExtent(t,e){this.getTileIndices(e,t).forEach(n=>{this.reloadTileById(n.z,n.x,n.y)})}pruneRequests(){const t=[];for(const e of this.cacheTiles.values())e.isLoading&&!e.isCurrent&&!e.isVisible&&t.push(e);for(;t.length>0;)t.shift().abortLoad()}getTileByLngLat(t,e,r){const{zoomOffset:n}=this.options,a=Math.ceil(r)+n,l=Ug(t,e,a);return this.tiles.filter(p=>p.key===`${l[0]}_${l[1]}_${a}`)[0]}getTileExtent(t,e){return this.getTileIndices(e,t)}getTileByZXY(t,e,r){return this.tiles.filter(a=>a.key===`${e}_${r}_${t}`)[0]}clear(){for(const t of this.cacheTiles.values())t.isLoading?t.abortLoad():this.onTileUnload(t);this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}destroy(){this.clear(),this.removeAllListeners()}updateTileVisible(){const t=this.options.updateStrategy,e=new Map;for(const a of this.cacheTiles.values())e.set(a.key,a.isVisible),a.isCurrent=!1,a.isVisible=!1;for(const a of this.currentTiles)a.isCurrent=!0,a.isVisible=!0;const r=Array.from(this.cacheTiles.values());typeof t=="function"?t(r):pC[t](r);let n=!1;Array.from(this.cacheTiles.values()).forEach(a=>{a.isVisible!==e.get(a.key)?(a.isVisibleChange=!0,n=!0):a.isVisibleChange=!1}),n&&this.emit("tile-update")}getTileIndices(t,e){const{tileSize:r,extent:n,zoomOffset:a}=this.options,l=Math.floor(this.options.maxZoom),o=Math.ceil(this.options.minZoom);return mC({maxZoom:l,minZoom:o,zoomOffset:a,tileSize:r,zoom:t,latLonBounds:e,extent:n})}getTileId(t,e,r){return`${t},${e},${r}`}loadFinished(){const t=!this.currentTiles.some(e=>!e.isDone);return t&&this.emit("tiles-load-finished"),t}getTile(t,e,r){const n=this.getTileId(t,e,r);return this.cacheTiles.get(n)}createTile(t,e,r){const n=this.getTileId(t,e,r),a=new vC({x:t,y:e,z:r,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(n,a),a.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),a}resizeCacheTiles(){const t=fC*this.currentTiles.length;if(this.cacheTiles.size>t){for(const[r,n]of this.cacheTiles)if(!n.isVisible&&!this.currentTiles.includes(n)&&(this.cacheTiles.delete(r),this.onTileUnload(n)),this.cacheTiles.size<=t)break}this.rebuildTileTree()}rebuildTileTree(){for(const t of this.cacheTiles.values())t.parent=null,t.children.length=0;for(const t of this.cacheTiles.values()){const e=this.getNearestAncestor(t.x,t.y,t.z);t.parent=e,e!=null&&e.children&&e.children.push(t)}}getNearestAncestor(t,e,r){for(;r>this.options.minZoom;){t=Math.floor(t/2),e=Math.floor(e/2),r=r-1;const n=this.getTile(t,e,r);if(n)return n}return null}};function p7(t){const e=[];let r=/\{([a-z])-([a-z])\}/.exec(t);if(r){const n=r[1].charCodeAt(0),a=r[2].charCodeAt(0);let l;for(l=n;l<=a;++l)e.push(t.replace(r[0],String.fromCharCode(l)));return e}if(r=/\{(\d+)-(\d+)\}/.exec(t),r){const n=parseInt(r[2],10);for(let a=parseInt(r[1],10);a<=n;a++)e.push(t.replace(r[0],a.toString()));return e}return e.push(t),e}function pp(t,e){if(!t||!t.length)throw new Error("url is not allowed to be empty");const{x:r,y:n,z:a}=e,l=p7(t),o=Math.abs(r+n)%l.length;return(Vv(l[o])?`${l[o]}/{z}/{x}/{y}`:l[o]).replace(/\{x\}/g,r.toString()).replace(/\{y\}/g,n.toString()).replace(/\{z\}/g,a.toString()).replace(/\{bbox\}/g,f7(r,n,a).join(",")).replace(/\{-y\}/g,(Math.pow(2,a)-n-1).toString())}function IC(t,e){const{x:r,y:n,z:a,layer:l,version:o="1.0.0",style:p="default",format:m,service:v="WMTS",tileMatrixset:E}=e,b=p7(t),A=Math.abs(r+n)%b.length;return`${b[A]}&SERVICE=${v}&REQUEST=GetTile&VERSION=${o}&LAYER=${l}&STYLE=${p}&TILEMATRIXSET=${E}&FORMAT=${m}&TILECOL=${r}&TILEROW=${n}&TILEMATRIX=${a}`}function _d(t,e){return t??e}var MC=Y0;function Y0(t,e){var r=t&&t.type,n;if(r==="FeatureCollection")for(n=0;n=Math.abs(p)?r-m+p:p-m+r,r=m}r+n>=0!=!!e&&t.reverse()}const PC=Co(MC);function OC(t,e){return t.map(r=>r[e]*1)}function d7(t){return Array.isArray(t)?t.length===0||typeof t[0]=="number":!1}function zg(t){const e=Object.isFrozen(t)?Ko.cloneDeep(t):t;return PC(e,!0),e}function Fp(t,e){return t||[[e[0],e[3]],[e[2],e[3]],[e[2],e[1]],[e[0],e[1]]]}var LC=Object.defineProperty,DC=Object.defineProperties,BC=Object.getOwnPropertyDescriptors,wy=Object.getOwnPropertySymbols,FC=Object.prototype.hasOwnProperty,NC=Object.prototype.propertyIsEnumerable,Cy=(t,e,r)=>e in t?LC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ry=(t,e)=>{for(var r in e||(e={}))FC.call(e,r)&&Cy(t,r,e[r]);if(wy)for(var r of wy(e))NC.call(e,r)&&Cy(t,r,e[r]);return t},Iy=(t,e)=>DC(t,BC(e));function m7(t,e){const{x:r,y:n,x1:a,y1:l,coordinates:o,geometry:p}=e,m=[];if(!Array.isArray(t))return{dataArray:[]};if(p)return t.filter(v=>v[p]&&v[p].type&&v[p].coordinates&&v[p].coordinates.length>0).forEach((v,E)=>{const b=zg(v[p]);Z8(b,A=>{const R=W8(A),O=Iy(Ry({},v),{_id:E,coordinates:R});m.push(O)})}),{dataArray:m};for(let v=0;ve in t?UC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,XC=(t,e)=>{for(var r in e||(e={}))HC.call(e,r)&&Py(t,r,e[r]);if(My)for(var r of My(e))jC.call(e,r)&&Py(t,r,e[r]);return t},WC=(t,e)=>zC(t,VC(e));function GC(t){const e=t.toString();let r=5381,n=e.length;for(;n;)r=r*33^e.charCodeAt(--n);return r>>>0}function ZC(t,e){return e===void 0?null:typeof(t.properties[e]*1)=="number"?t.properties[e]*1:t.properties&&t.properties[e]?GC(t.properties[e]+"")%1000019:null}function $C(t,e){const r=[],n={};return t.features?(t.features=t.features.filter(a=>{const l=a.geometry;return a!=null&&l&&l.type&&l.coordinates&&l.coordinates.length>0}),t=zg(t),t.features.length===0?{dataArray:[],featureKeys:n}:(Z8(t,(a,l)=>{let o=ZC(a,e==null?void 0:e.featureId);o===null&&(o=l);const p=o,m=W8(a),v=WC(XC({},a.properties),{coordinates:m,_id:p});r.push(v)}),{dataArray:r,featureKeys:n})):(t.features=[],{dataArray:[]})}function Vg(t,e,r,n){for(var a=n,l=r-e>>1,o=r-e,p,m=t[e],v=t[e+1],E=t[r],b=t[r+1],A=e+3;Aa)p=A,a=R;else if(R===a){var O=Math.abs(A-l);On&&(p-e>3&&Vg(t,e,p,n),t[p+2]=a,r-p>3&&Vg(t,p,r,n))}function qC(t,e,r,n,a,l){var o=a-r,p=l-n;if(o!==0||p!==0){var m=((t-r)*o+(e-n)*p)/(o*o+p*p);m>1?(r=a,n=l):m>0&&(r+=o*m,n+=p*m)}return o=t-r,p=e-n,o*o+p*p}function l3(t,e,r,n){var a={id:typeof t>"u"?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return YC(a),a}function YC(t){var e=t.geometry,r=t.type;if(r==="Point"||r==="MultiPoint"||r==="LineString")Q_(t,e);else if(r==="Polygon"||r==="MultiLineString")for(var n=0;n0&&(n?o+=(a*v-m*l)/2:o+=Math.sqrt(Math.pow(m-a,2)+Math.pow(v-l,2))),a=m,l=v}var E=e.length-3;e[2]=1,Vg(e,0,E,r),e[E+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function J_(t,e,r,n){for(var a=0;a1?1:r}function Yc(t,e,r,n,a,l,o,p){if(r/=e,n/=e,l>=r&&o=n)return null;for(var m=[],v=0;v=r&&O=n)continue;var D=[];if(A==="Point"||A==="MultiPoint")QC(b,D,r,n,a);else if(A==="LineString")v7(b,D,r,n,a,!1,p.lineMetrics);else if(A==="MultiLineString")eg(b,D,r,n,a,!1);else if(A==="Polygon")eg(b,D,r,n,a,!0);else if(A==="MultiPolygon")for(var N=0;N=r&&o<=n&&(e.push(t[l]),e.push(t[l+1]),e.push(t[l+2]))}}function v7(t,e,r,n,a,l,o){for(var p=Ly(t),m=a===0?JC:eR,v=t.start,E,b,A=0;Ar&&(b=m(p,R,O,N,W,r),o&&(p.start=v+E*b)):G>n?Y=r&&(b=m(p,R,O,N,W,r),Q=!0),Y>n&&G<=n&&(b=m(p,R,O,N,W,n),Q=!0),!l&&Q&&(o&&(p.end=v+E*b),e.push(p),p=Ly(t)),o&&(v+=E)}var J=t.length-3;R=t[J],O=t[J+1],D=t[J+2],G=a===0?R:O,G>=r&&G<=n&&tg(p,R,O,D),J=p.length-3,l&&J>=3&&(p[J]!==p[0]||p[J+1]!==p[1])&&tg(p,p[0],p[1],p[2]),p.length&&e.push(p)}function Ly(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function eg(t,e,r,n,a,l){for(var o=0;oo.maxX&&(o.maxX=E),b>o.maxY&&(o.maxY=b)}return o}function nR(t,e,r,n){var a=e.geometry,l=e.type,o=[];if(l==="Point"||l==="MultiPoint")for(var p=0;p0&&e.size<(a?o:n)){r.numPoints+=e.length/3;return}for(var p=[],m=0;mo)&&(r.numSimplified++,p.push(e[m]),p.push(e[m+1])),r.numPoints++;a&&iR(p,l),t.push(p)}function iR(t,e){for(var r=0,n=0,a=t.length,l=a-2;n0===e)for(n=0,a=t.length;n24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var n=KC(t,e);this.tiles={},this.tileCoords=[],r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),n=tR(n,e),n.length&&this.splitTile(n,0,0,0),r&&(n.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}e_.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0};e_.prototype.splitTile=function(t,e,r,n,a,l,o){for(var p=[t,e,r,n],m=this.options,v=m.debug;p.length;){n=p.pop(),r=p.pop(),e=p.pop(),t=p.pop();var E=1<1&&console.time("creation"),A=this.tiles[b]=rR(t,e,r,n,m),this.tileCoords.push({z:e,x:r,y:n}),v)){v>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,n,A.numFeatures,A.numPoints,A.numSimplified),console.timeEnd("creation"));var R="z"+e;this.stats[R]=(this.stats[R]||0)+1,this.total++}if(A.source=t,a){if(e===m.maxZoom||e===a)continue;var O=1<1&&console.time("clipping");var D=.5*m.buffer/m.extent,N=.5-D,W=.5+D,G=1+D,Y,Q,J,Se,ce,ke;Y=Q=J=Se=null,ce=Yc(t,E,r-D,r+W,0,A.minX,A.maxX,m),ke=Yc(t,E,r+N,r+G,0,A.minX,A.maxX,m),t=null,ce&&(Y=Yc(ce,E,n-D,n+W,1,A.minY,A.maxY,m),Q=Yc(ce,E,n+N,n+G,1,A.minY,A.maxY,m),ce=null),ke&&(J=Yc(ke,E,n-D,n+W,1,A.minY,A.maxY,m),Se=Yc(ke,E,n+N,n+G,1,A.minY,A.maxY,m),ke=null),v>1&&console.timeEnd("clipping"),p.push(Y||[],e+1,r*2,n*2),p.push(Q||[],e+1,r*2,n*2+1),p.push(J||[],e+1,r*2+1,n*2),p.push(Se||[],e+1,r*2+1,n*2+1)}}};e_.prototype.getTile=function(t,e,r){var n=this.options,a=n.extent,l=n.debug;if(t<0||t>24)return null;var o=1<1&&console.log("drilling down to z%d-%d-%d",t,e,r);for(var m=t,v=e,E=r,b;!b&&m>0;)m--,v=Math.floor(v/2),E=Math.floor(E/2),b=this.tiles[jg(m,v,E)];return!b||!b.source?null:(l>1&&console.log("found parent tile z%d-%d-%d",m,v,E),l>1&&console.time("drilling down"),this.splitTile(b.source,m,v,E,t,e,r),l>1&&console.timeEnd("drilling down"),this.tiles[p]?By(this.tiles[p],a):null)};function jg(t,e,r){return((1<e in t?sR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,gm=(t,e)=>{for(var r in e||(e={}))cR.call(e,r)&&ky(t,r,e[r]);if(Ny)for(var r of Ny(e))hR.call(e,r)&&ky(t,r,e[r]);return t},fR=(t,e)=>lR(t,uR(e)),pR=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),dR={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0};function mR(t){let e=0;for(let r=0,n=t.length,a=n-1,l,o;rpR(void 0,null,function*(){return new Promise(a=>{const l=e.getTile(t.z,t.x,t.y),p={layers:{defaultLayer:{features:l?l.features.map(v=>vR(n,r.x,r.y,r.z,v)):[]}}},m=new Vd(p,t.x,t.y,t.z);a(m)})});function xR(t){const e={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!0,debug:0};return t===void 0||typeof t.geojsonvtOptions>"u"?e:gm(gm({},e),t.geojsonvtOptions)}function bR(t,e){const r=xR(e),n=r.extent||4096,a=oR(t,r),l=(p,m)=>yR(m,a,p,n),o=fR(gm(gm({},dR),e),{getTileData:l});return{data:t,dataArray:[],tilesetOptions:o,isTile:!0}}var ER=Object.defineProperty,TR=Object.defineProperties,AR=Object.getOwnPropertyDescriptors,Uy=Object.getOwnPropertySymbols,SR=Object.prototype.hasOwnProperty,wR=Object.prototype.propertyIsEnumerable,zy=(t,e,r)=>e in t?ER(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Vy=(t,e)=>{for(var r in e||(e={}))SR.call(e,r)&&zy(t,r,e[r]);if(Uy)for(var r of Uy(e))wR.call(e,r)&&zy(t,r,e[r]);return t},Hy=(t,e)=>TR(t,AR(e));function y7(t,e){const{extent:r=[121.168,30.2828,121.384,30.4219],coordinates:n,requestParameters:a={}}=e,l=new Promise(m=>{t instanceof HTMLImageElement||Hw(t)?m([t]):CR(t,a,v=>{m(v)})}),o=Fp(n,r);return{originData:t,images:l,_id:1,dataArray:[{_id:0,coordinates:o}]}}function CR(t,e,r){const n=[];if(typeof t=="string")Bg(Hy(Vy({},e),{url:t}),(a,l)=>{l&&(n.push(l),r(n))});else{const a=t.length;let l=0;t.forEach(o=>{Bg(Hy(Vy({},e),{url:o}),(p,m)=>{l++,m&&n.push(m),l===a&&r(n)})})}return y7}var RR=Object.defineProperty,IR=Object.defineProperties,MR=Object.getOwnPropertyDescriptors,jy=Object.getOwnPropertySymbols,PR=Object.prototype.hasOwnProperty,OR=Object.prototype.propertyIsEnumerable,Xy=(t,e,r)=>e in t?RR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x7=(t,e)=>{for(var r in e||(e={}))PR.call(e,r)&&Xy(t,r,e[r]);if(jy)for(var r of jy(e))OR.call(e,r)&&Xy(t,r,e[r]);return t},b7=(t,e)=>IR(t,MR(e)),LR=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),DR=(t,e,r,n)=>LR(void 0,null,function*(){const a={x:e.x,y:e.y,z:e.z},l=pp(t,a);return new Promise(o=>{n?n(a,(p,m)=>{if(p||!m){const v={layers:{defaultLayer:{features:[]}}},E=new Vd(v,e.x,e.y,e.z);o(E)}else{const v={layers:{defaultLayer:{features:m.features}}},E=new Vd(v,e.x,e.y,e.z);o(E)}}):xS(b7(x7({},r),{url:l}),(p,m)=>{if(p||!m){const v={layers:{defaultLayer:{features:[]}}},E=new Vd(v,e.x,e.y,e.z);o(E)}else{const E={layers:{defaultLayer:{features:JSON.parse(m)}}},b=new Vd(E,e.x,e.y,e.z);o(b)}})})});function BR(t,e){const r=(a,l)=>DR(t,l,e==null?void 0:e.requestParameters,e.getCustomData),n=b7(x7({},e),{getTileData:r});return{dataArray:[],tilesetOptions:n,isTile:!0}}var E7=dp;function dp(t,e){this.x=t,this.y=e}dp.prototype={clone:function(){return new dp(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,a=r*this.x+e*this.y;return this.x=n,this.y=a,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),a=e.x+r*(this.x-e.x)-n*(this.y-e.y),l=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=a,this.y=l,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}};dp.convert=function(t){return t instanceof dp?t:Array.isArray(t)?new dp(t[0],t[1]):t};const oi=Co(E7);var FR=E7,NR=bp;function bp(t,e,r,n,a){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=a,t.readFields(kR,this,e)}function kR(t,e,r){t==1?e.id=r.readVarint():t==2?UR(r,e):t==3?e.type=r.readVarint():t==4&&(e._geometry=r.pos)}function UR(t,e){for(var r=t.readVarint()+t.pos;t.pos>3}if(n--,r===1||r===2)a+=t.readSVarint(),l+=t.readSVarint(),r===1&&(p&&o.push(p),p=[]),p.push(new FR(a,l));else if(r===7)p&&p.push(p[0].clone());else throw new Error("unknown command "+r)}return p&&o.push(p),o};bp.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,a=0,l=0,o=1/0,p=-1/0,m=1/0,v=-1/0;t.pos>3}if(n--,r===1||r===2)a+=t.readSVarint(),l+=t.readSVarint(),ap&&(p=a),lv&&(v=l);else if(r!==7)throw new Error("unknown command "+r)}return[o,m,p,v]};bp.prototype.toGeoJSON=function(t,e,r){var n=this.extent*Math.pow(2,r),a=this.extent*t,l=this.extent*e,o=this.loadGeometry(),p=bp.types[this.type],m,v;function E(R){for(var O=0;O>3;e=n===1?t.readString():n===2?t.readFloat():n===3?t.readDouble():n===4?t.readVarint64():n===5?t.readVarint():n===6?t.readSVarint():n===7?t.readBoolean():null}return e}T7.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new HR(this._pbf,e,this.extent,this._keys,this._values)};var GR=jR,ZR=$R;function $R(t,e){this.layers=t.readFields(qR,{},e)}function qR(t,e,r){if(t===3){var n=new GR(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n)}}var YR=ZR,Qv={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Qv.read=function(t,e,r,n,a){var l,o,p=a*8-n-1,m=(1<>1,E=-7,b=r?a-1:0,A=r?-1:1,R=t[e+b];for(b+=A,l=R&(1<<-E)-1,R>>=-E,E+=p;E>0;l=l*256+t[e+b],b+=A,E-=8);for(o=l&(1<<-E)-1,l>>=-E,E+=n;E>0;o=o*256+t[e+b],b+=A,E-=8);if(l===0)l=1-v;else{if(l===m)return o?NaN:(R?-1:1)*(1/0);o=o+Math.pow(2,n),l=l-v}return(R?-1:1)*o*Math.pow(2,l-n)};Qv.write=function(t,e,r,n,a,l){var o,p,m,v=l*8-a-1,E=(1<>1,A=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=n?0:l-1,O=n?1:-1,D=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,o=E):(o=Math.floor(Math.log(e)/Math.LN2),e*(m=Math.pow(2,-o))<1&&(o--,m*=2),o+b>=1?e+=A/m:e+=A*Math.pow(2,1-b),e*m>=2&&(o++,m/=2),o+b>=E?(p=0,o=E):o+b>=1?(p=(e*m-1)*Math.pow(2,a),o=o+b):(p=e*Math.pow(2,b-1)*Math.pow(2,a),o=0));a>=8;t[r+R]=p&255,R+=O,p/=256,a-=8);for(o=o<0;t[r+R]=o&255,R+=O,o/=256,v-=8);t[r+R-O]|=D*128};var KR=Ti,E0=Qv;function Ti(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Ti.Varint=0;Ti.Fixed64=1;Ti.Bytes=2;Ti.Fixed32=5;var Xg=65536*65536,Wy=1/Xg,QR=12,A7=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");Ti.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos>3,l=this.pos;this.type=n&7,t(a,e,this),this.pos===l&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=T0(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=Zy(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=T0(this.buf,this.pos)+T0(this.buf,this.pos+4)*Xg;return this.pos+=8,t},readSFixed64:function(){var t=T0(this.buf,this.pos)+Zy(this.buf,this.pos+4)*Xg;return this.pos+=8,t},readFloat:function(){var t=E0.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=E0.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e=this.buf,r,n;return n=e[this.pos++],r=n&127,n<128||(n=e[this.pos++],r|=(n&127)<<7,n<128)||(n=e[this.pos++],r|=(n&127)<<14,n<128)||(n=e[this.pos++],r|=(n&127)<<21,n<128)?r:(n=e[this.pos],r|=(n&15)<<28,JR(r,t,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2===1?(t+1)/-2:t/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=QR&&A7?pI(this.buf,e,t):fI(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Ti.Bytes)return t.push(this.readVarint(e));var r=$c(this);for(t=t||[];this.pos127;);else if(e===Ti.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Ti.Fixed32)this.pos+=4;else if(e===Ti.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+e)},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e268435455||t<0){eI(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))},writeSVarint:function(t){this.writeVarint(t<0?-t*2-1:t*2)},writeBoolean:function(t){this.writeVarint(!!t)},writeString:function(t){t=String(t),this.realloc(t.length*4),this.pos++;var e=this.pos;this.pos=dI(this.buf,t,this.pos);var r=this.pos-e;r>=128&&Gy(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),E0.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),E0.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r=128&&Gy(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,Ti.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,nI,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,iI,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,sI,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,oI,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,aI,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,lI,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,uI,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,cI,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,hI,e)},writeBytesField:function(t,e){this.writeTag(t,Ti.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Ti.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Ti.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Ti.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Ti.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Ti.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Ti.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Ti.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Ti.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Ti.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,!!e)}};function JR(t,e,r){var n=r.buf,a,l;if(l=n[r.pos++],a=(l&112)>>4,l<128||(l=n[r.pos++],a|=(l&127)<<3,l<128)||(l=n[r.pos++],a|=(l&127)<<10,l<128)||(l=n[r.pos++],a|=(l&127)<<17,l<128)||(l=n[r.pos++],a|=(l&127)<<24,l<128)||(l=n[r.pos++],a|=(l&1)<<31,l<128))return Wf(t,a,e);throw new Error("Expected varint not more than 10 bytes")}function $c(t){return t.type===Ti.Bytes?t.readVarint()+t.pos:t.pos+1}function Wf(t,e,r){return r?e*4294967296+(t>>>0):(e>>>0)*4294967296+(t>>>0)}function eI(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(r=~(-t%4294967296),n=~(-t/4294967296),r^4294967295?r=r+1|0:(r=0,n=n+1|0)),t>=18446744073709552e3||t<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),tI(r,n,e),rI(n,e)}function tI(t,e,r){r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos]=t&127}function rI(t,e){var r=(t&7)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127)))))}function Gy(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));r.realloc(n);for(var a=r.pos-1;a>=t;a--)r.buf[a+n]=r.buf[a]}function nI(t,e){for(var r=0;r>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function Zy(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function fI(t,e,r){for(var n="",a=e;a239?4:l>223?3:l>191?2:1;if(a+p>r)break;var m,v,E;p===1?l<128&&(o=l):p===2?(m=t[a+1],(m&192)===128&&(o=(l&31)<<6|m&63,o<=127&&(o=null))):p===3?(m=t[a+1],v=t[a+2],(m&192)===128&&(v&192)===128&&(o=(l&15)<<12|(m&63)<<6|v&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):p===4&&(m=t[a+1],v=t[a+2],E=t[a+3],(m&192)===128&&(v&192)===128&&(E&192)===128&&(o=(l&15)<<18|(m&63)<<12|(v&63)<<6|E&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,p=1):o>65535&&(o-=65536,n+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),n+=String.fromCharCode(o),a+=p}return n}function pI(t,e,r){return A7.decode(t.subarray(e,r))}function dI(t,e,r){for(var n=0,a,l;n55295&&a<57344)if(l)if(a<56320){t[r++]=239,t[r++]=191,t[r++]=189,l=a;continue}else a=l-55296<<10|a-56320|65536,l=null;else{a>56319||n+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):l=a;continue}else l&&(t[r++]=239,t[r++]=191,t[r++]=189,l=null);a<128?t[r++]=a:(a<2048?t[r++]=a>>6|192:(a<65536?t[r++]=a>>12|224:(t[r++]=a>>18|240,t[r++]=a>>12&63|128),t[r++]=a>>6&63|128),t[r++]=a&63|128)}return r}const mI=Co(KR);var _I=Object.defineProperty,gI=Object.defineProperties,vI=Object.getOwnPropertyDescriptors,$y=Object.getOwnPropertySymbols,yI=Object.prototype.hasOwnProperty,xI=Object.prototype.propertyIsEnumerable,qy=(t,e,r)=>e in t?_I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Yy=(t,e)=>{for(var r in e||(e={}))yI.call(e,r)&&qy(t,r,e[r]);if($y)for(var r of $y(e))xI.call(e,r)&&qy(t,r,e[r]);return t},bI=(t,e)=>gI(t,vI(e)),Ky=class{constructor(t,e,r,n){this.vectorLayerCache={},this.x=e,this.y=r,this.z=n,this.vectorTile=new YR(new mI(t))}getTileData(t){if(!t||!this.vectorTile.layers[t])return[];if(this.vectorLayerCache[t])return this.vectorLayerCache[t];const e=this.vectorTile.layers[t];if(Array.isArray(e.features))return this.vectorLayerCache[t]=e.features,e.features;const r=[];for(let n=0;ne in t?EI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Wg=(t,e)=>{for(var r in e||(e={}))SI.call(e,r)&&Jy(t,r,e[r]);if(Qy)for(var r of Qy(e))wI.call(e,r)&&Jy(t,r,e[r]);return t},S7=(t,e)=>TI(t,AI(e)),CI=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),RI={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0,warp:!0},II=(t,e,r,n,a)=>CI(void 0,null,function*(){const l=pp(t,e);return new Promise(o=>{if(a)a({x:r.x,y:r.y,z:r.z},(p,m)=>{if(p||!m)o(void 0);else{const v=new Ky(m,r.x,r.y,r.z);o(v)}});else{const p=jv(S7(Wg({},n),{url:l}),(m,v)=>{if(m||!v)o(void 0);else{const E=new Ky(v,r.x,r.y,r.z);o(E)}});r.xhrCancel=()=>p.cancel()}})});function MI(t,e){const r=Array.isArray(t)?t[0]:t,n=(l,o)=>II(r,l,o,e==null?void 0:e.requestParameters,e==null?void 0:e.getCustomData),a=S7(Wg(Wg({},RI),e),{getTileData:n});return{data:r,dataArray:[],tilesetOptions:a,isTile:!0}}function PI(t,e,r){switch(t){case"+":return e+r;case"-":return e-r;case"*":return e*r;case"/":return e/r;case"%":return e%r;case"^":return Math.pow(e,r);case"abs":return Math.abs(e);case"floor":return Math.floor(e);case"round":return Math.round(e);case"ceil":return Math.ceil(e);case"sin":return Math.sin(e);case"cos":return Math.cos(e);case"atan":return r===-1?Math.atan(e):Math.atan2(e,r);case"min":return Math.min(e,r);case"max":return Math.max(e,r);case"log10":return Math.log(e);case"log2":return Math.log2(e);default:return console.warn("Calculate symbol err! Return default 0"),0}}function Qd(t,e){const{width:r,height:n}=e[0],a=e.map(m=>m.rasterData),l=r*n,o=[],p=JSON.stringify(t);for(let m=0;m{if(Array.isArray(n)&&n.length>0)switch(n[0]){case"band":try{t[a]=e[n[1]][r]}catch{console.warn("Raster Data err!"),t[a]=0}break;default:w7(n,e,r)}})}function OI(t){const[e,r=-1,n=-1]=t;return e===void 0?(console.warn("Express err!"),["+",0,0]):[e.replace(/\s+/g,""),r,n]}function Gg(t){const e=OI(t),r=e[0];let n=e[1],a=e[2];return Array.isArray(n)&&(n=Gg(t[1])),Array.isArray(a)&&(a=Gg(t[2])),PI(r,n,a)}var LI={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:DI}};function DI(t,e){const r=t[0].rasterData,n=t[1].rasterData,a=t[2].rasterData,l=[],[o,p]=(e==null?void 0:e.countCut)||[2,98],m=(e==null?void 0:e.RMinMax)||mp(r,o,p),v=(e==null?void 0:e.GMinMax)||mp(n,o,p),E=(e==null?void 0:e.BMinMax)||mp(a,o,p);for(let b=0;bp-m),a=n.length,l=n[Math.ceil(a*e/100)],o=n[Math.ceil(a*r/100)];return[l,o]}var BI=Object.defineProperty,FI=Object.defineProperties,NI=Object.getOwnPropertyDescriptors,e5=Object.getOwnPropertySymbols,kI=Object.prototype.hasOwnProperty,UI=Object.prototype.propertyIsEnumerable,t5=(t,e,r)=>e in t?BI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,zI=(t,e)=>{for(var r in e||(e={}))kI.call(e,r)&&t5(t,r,e[r]);if(e5)for(var r of e5(e))UI.call(e,r)&&t5(t,r,e[r]);return t},VI=(t,e)=>FI(t,NI(e)),C7=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())});function Jv(t,e,r){return C7(this,null,function*(){if(t.length===0)return{rasterData:[0],width:1,heigh:1};const n=yield Promise.all(t.map(({data:m,bands:v=[0]})=>e(m,v))),a=[];n.forEach(m=>{Array.isArray(m)?a.push(...m):a.push(m)});const{width:l,height:o}=a[0];let p;switch(typeof r){case"function":p=r(a);break;case"object":Array.isArray(r)?p={rasterData:Qd(r,a)}:p=HI(r,a);break;default:p={rasterData:a[0].rasterData}}return VI(zI({},p),{width:l,height:o})})}function HI(t,e){const r=LI[t.type];if(r.type==="function")return r.method(e,t==null?void 0:t.options);if(r.type==="operation")return t.type==="rgb"?jI(r.expression,e):{rasterData:Qd(r.expression,e)}}function jI(t,e){t.r===void 0&&console.warn("Channel R lost in Operation! Use band[0] to fill!"),t.g===void 0&&console.warn("Channel G lost in Operation! Use band[0] to fill!"),t.b===void 0&&console.warn("Channel B lost in Operation! Use band[0] to fill!");const r=Qd(t.r||["band",0],e),n=Qd(t.g||["band",0],e),a=Qd(t.b||["band",0],e);return[r,n,a]}function Zg(t,e,r,n){return C7(this,null,function*(){const a=yield Jv(t,e,r);n(null,{data:a})})}function XI(t,e){const{extent:r=[121.168,30.2828,121.384,30.4219],coordinates:n,width:a,height:l,min:o,max:p,format:m,operation:v}=e;let E,b,A;if(m===void 0||d7(t))E=Array.from(t),b=a,A=l;else{const D=Array.isArray(t)?t:[t];E=Jv(D,m,v)}const R=Fp(n,r);return{_id:1,dataArray:[{_id:1,data:E,width:b,height:A,min:o,max:p,coordinates:R}]}}let C3=function(t){return t.Normal="normal",t.PostProcessing="post-processing",t}({}),H=function(t){return t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.FUNC_ADD=32774]="FUNC_ADD",t[t.BLEND_EQUATION=32777]="BLEND_EQUATION",t[t.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",t[t.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",t[t.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",t[t.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",t[t.MAX_EXT=32776]="MAX_EXT",t[t.MIN_EXT=32775]="MIN_EXT",t[t.BLEND_DST_RGB=32968]="BLEND_DST_RGB",t[t.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",t[t.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",t[t.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",t[t.BLEND_COLOR=32773]="BLEND_COLOR",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",t[t.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.BUFFER_SIZE=34660]="BUFFER_SIZE",t[t.BUFFER_USAGE=34661]="BUFFER_USAGE",t[t.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK",t[t.CULL_FACE=2884]="CULL_FACE",t[t.BLEND=3042]="BLEND",t[t.DITHER=3024]="DITHER",t[t.STENCIL_TEST=2960]="STENCIL_TEST",t[t.DEPTH_TEST=2929]="DEPTH_TEST",t[t.SCISSOR_TEST=3089]="SCISSOR_TEST",t[t.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",t[t.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",t[t.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",t[t.NO_ERROR=0]="NO_ERROR",t[t.INVALID_ENUM=1280]="INVALID_ENUM",t[t.INVALID_VALUE=1281]="INVALID_VALUE",t[t.INVALID_OPERATION=1282]="INVALID_OPERATION",t[t.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",t[t.CW=2304]="CW",t[t.CCW=2305]="CCW",t[t.LINE_WIDTH=2849]="LINE_WIDTH",t[t.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",t[t.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",t[t.CULL_FACE_MODE=2885]="CULL_FACE_MODE",t[t.FRONT_FACE=2886]="FRONT_FACE",t[t.DEPTH_RANGE=2928]="DEPTH_RANGE",t[t.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",t[t.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",t[t.DEPTH_FUNC=2932]="DEPTH_FUNC",t[t.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",t[t.STENCIL_FUNC=2962]="STENCIL_FUNC",t[t.STENCIL_FAIL=2964]="STENCIL_FAIL",t[t.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",t[t.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",t[t.STENCIL_REF=2967]="STENCIL_REF",t[t.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",t[t.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",t[t.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",t[t.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",t[t.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",t[t.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",t[t.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",t[t.VIEWPORT=2978]="VIEWPORT",t[t.SCISSOR_BOX=3088]="SCISSOR_BOX",t[t.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",t[t.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",t[t.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",t[t.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",t[t.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",t[t.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",t[t.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",t[t.RED_BITS=3410]="RED_BITS",t[t.GREEN_BITS=3411]="GREEN_BITS",t[t.BLUE_BITS=3412]="BLUE_BITS",t[t.ALPHA_BITS=3413]="ALPHA_BITS",t[t.DEPTH_BITS=3414]="DEPTH_BITS",t[t.STENCIL_BITS=3415]="STENCIL_BITS",t[t.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",t[t.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",t[t.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",t[t.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",t[t.SAMPLES=32937]="SAMPLES",t[t.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",t[t.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",t[t.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",t[t.DONT_CARE=4352]="DONT_CARE",t[t.FASTEST=4353]="FASTEST",t[t.NICEST=4354]="NICEST",t[t.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.RED=6403]="RED",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER",t[t.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",t[t.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",t[t.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",t[t.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",t[t.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",t[t.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",t[t.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",t[t.SHADER_TYPE=35663]="SHADER_TYPE",t[t.DELETE_STATUS=35712]="DELETE_STATUS",t[t.LINK_STATUS=35714]="LINK_STATUS",t[t.VALIDATE_STATUS=35715]="VALIDATE_STATUS",t[t.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",t[t.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",t[t.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",t[t.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",t[t.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP",t[t.VENDOR=7936]="VENDOR",t[t.RENDERER=7937]="RENDERER",t[t.VERSION=7938]="VERSION",t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",t[t.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",t[t.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",t[t.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",t[t.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE=5890]="TEXTURE",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",t[t.TEXTURE0=33984]="TEXTURE0",t[t.TEXTURE1=33985]="TEXTURE1",t[t.TEXTURE2=33986]="TEXTURE2",t[t.TEXTURE3=33987]="TEXTURE3",t[t.TEXTURE4=33988]="TEXTURE4",t[t.TEXTURE5=33989]="TEXTURE5",t[t.TEXTURE6=33990]="TEXTURE6",t[t.TEXTURE7=33991]="TEXTURE7",t[t.TEXTURE8=33992]="TEXTURE8",t[t.TEXTURE9=33993]="TEXTURE9",t[t.TEXTURE10=33994]="TEXTURE10",t[t.TEXTURE11=33995]="TEXTURE11",t[t.TEXTURE12=33996]="TEXTURE12",t[t.TEXTURE13=33997]="TEXTURE13",t[t.TEXTURE14=33998]="TEXTURE14",t[t.TEXTURE15=33999]="TEXTURE15",t[t.TEXTURE16=34e3]="TEXTURE16",t[t.TEXTURE17=34001]="TEXTURE17",t[t.TEXTURE18=34002]="TEXTURE18",t[t.TEXTURE19=34003]="TEXTURE19",t[t.TEXTURE20=34004]="TEXTURE20",t[t.TEXTURE21=34005]="TEXTURE21",t[t.TEXTURE22=34006]="TEXTURE22",t[t.TEXTURE23=34007]="TEXTURE23",t[t.TEXTURE24=34008]="TEXTURE24",t[t.TEXTURE25=34009]="TEXTURE25",t[t.TEXTURE26=34010]="TEXTURE26",t[t.TEXTURE27=34011]="TEXTURE27",t[t.TEXTURE28=34012]="TEXTURE28",t[t.TEXTURE29=34013]="TEXTURE29",t[t.TEXTURE30=34014]="TEXTURE30",t[t.TEXTURE31=34015]="TEXTURE31",t[t.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",t[t.REPEAT=10497]="REPEAT",t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",t[t.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",t[t.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",t[t.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",t[t.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",t[t.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",t[t.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",t[t.COMPILE_STATUS=35713]="COMPILE_STATUS",t[t.LOW_FLOAT=36336]="LOW_FLOAT",t[t.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",t[t.HIGH_FLOAT=36338]="HIGH_FLOAT",t[t.LOW_INT=36339]="LOW_INT",t[t.MEDIUM_INT=36340]="MEDIUM_INT",t[t.HIGH_INT=36341]="HIGH_INT",t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.RENDERBUFFER=36161]="RENDERBUFFER",t[t.RGBA4=32854]="RGBA4",t[t.RGB5_A1=32855]="RGB5_A1",t[t.RGB565=36194]="RGB565",t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX=6401]="STENCIL_INDEX",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",t[t.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",t[t.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",t[t.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",t[t.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",t[t.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",t[t.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",t[t.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",t[t.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",t[t.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",t[t.NONE=0]="NONE",t[t.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",t[t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",t[t.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",t[t.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",t[t.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",t[t.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",t[t.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",t[t.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",t[t.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",t[t.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",t[t.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",t[t.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",t}({});const WI=`attribute vec2 a_Position; + `}})}get key(){return`${this.x}_${this.y}_${this.z}`}layerLoad(){this.loadedLayers++,this.emit("layerLoaded")}loadData(t){return dC(this,arguments,function*({getData:e,onLoad:r,onError:n}){this.loadDataId++;const a=this.loadDataId;this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=eu.Loading;let l=null,o;try{const{x:p,y:m,z:v,bounds:E,tileSize:b,warp:A}=this,{warpX:R,warpY:O}=pC(p,m,v,A),{signal:D}=this.abortController;l=yield e({x:R,y:O,z:v,bounds:E,tileSize:b,signal:D,warp:A},this)}catch(p){o=p}if(a===this.loadDataId&&!(this.isCancelled&&!l)){if(o||!l){this.loadStatus=eu.Failure,n(o,this);return}this.loadStatus=eu.Loaded,this.data=l,r(this)}})}reloadData(t){this.isLoading&&this.abortLoad(),this.loadData(t)}abortLoad(){this.isLoaded||this.isCancelled||(this.loadStatus=eu.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}},_C=(t,e)=>{const r=_m(t),n=qv(r,e),a=360*3-180,l=85.0511287798065;return[Math.max(n[0][0],-a),Math.max(n[0][1],-l),Math.min(n[1][0],a),Math.min(n[1][1],l)]},gC=(t,e)=>{const r=_m(t),n=_m(e);return i7(r,n)},vC=Object.defineProperty,yC=Object.defineProperties,xC=Object.getOwnPropertyDescriptors,by=Object.getOwnPropertySymbols,bC=Object.prototype.hasOwnProperty,EC=Object.prototype.propertyIsEnumerable,Ey=(t,e,r)=>e in t?vC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ty=(t,e)=>{for(var r in e||(e={}))bC.call(e,r)&&Ey(t,r,e[r]);if(by)for(var r of by(e))EC.call(e,r)&&Ey(t,r,e[r]);return t},TC=(t,e)=>yC(t,xC(e)),{throttle:AC}=Ko,SC=class extends Yv{constructor(t){super(),this.currentTiles=[],this.cacheTiles=new Map,this.throttleUpdate=AC((e,r)=>{this.update(e,r)},16),this.onTileLoad=e=>{this.emit("tile-loaded",e),this.updateTileVisible(),this.loadFinished()},this.onTileError=(e,r)=>{this.emit("tile-error",{error:e,tile:r}),this.updateTileVisible(),this.loadFinished()},this.onTileUnload=e=>{this.emit("tile-unload",e),this.loadFinished()},this.options={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0,extent:h7,getTileData:hC,warp:!0,updateStrategy:Kd.Replace},this.updateOptions(t)}get isLoaded(){return this.currentTiles.every(t=>t.isDone)}get tiles(){return Array.from(this.cacheTiles.values()).sort((e,r)=>e.z-r.z)}updateOptions(t){const e=t.minZoom===void 0?this.options.minZoom:Math.ceil(t.minZoom),r=t.maxZoom===void 0?this.options.maxZoom:Math.floor(t.maxZoom);this.options=TC(Ty(Ty({},this.options),t),{minZoom:e,maxZoom:r})}update(t,e){const r=Math.max(0,Math.ceil(t));if(this.lastViewStates&&this.lastViewStates.zoom===r&&gC(this.lastViewStates.latLonBoundsBuffer,e))return;const n=_C(e,lC);this.lastViewStates={zoom:r,latLonBounds:e,latLonBoundsBuffer:n},this.currentZoom=r;let a=!1;const l=this.getTileIndices(r,n).filter(o=>this.options.warp||o.x>=0&&o.x{let v=this.getTile(o,p,m);return v?(((v==null?void 0:v.isFailure)||(v==null?void 0:v.isCancelled))&&v.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),v):(v=this.createTile(o,p,m),a=!0,v)}),a&&this.resizeCacheTiles(),this.updateTileVisible(),this.pruneRequests()}reloadAll(){for(const[t,e]of this.cacheTiles){if(!this.currentTiles.includes(e)){this.cacheTiles.delete(t),this.onTileUnload(e);return}this.onTileUnload(e),e.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError})}}reloadTileById(t,e,r){const n=this.cacheTiles.get(`${e},${r},${t}`);n&&(this.onTileUnload(n),n.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}))}reloadTileByLnglat(t,e,r){const n=this.getTileByLngLat(t,e,r);n&&this.reloadTileById(n.z,n.x,n.y)}reloadTileByExtent(t,e){this.getTileIndices(e,t).forEach(n=>{this.reloadTileById(n.z,n.x,n.y)})}pruneRequests(){const t=[];for(const e of this.cacheTiles.values())e.isLoading&&!e.isCurrent&&!e.isVisible&&t.push(e);for(;t.length>0;)t.shift().abortLoad()}getTileByLngLat(t,e,r){const{zoomOffset:n}=this.options,a=Math.ceil(r)+n,l=Ug(t,e,a);return this.tiles.filter(p=>p.key===`${l[0]}_${l[1]}_${a}`)[0]}getTileExtent(t,e){return this.getTileIndices(e,t)}getTileByZXY(t,e,r){return this.tiles.filter(a=>a.key===`${e}_${r}_${t}`)[0]}clear(){for(const t of this.cacheTiles.values())t.isLoading?t.abortLoad():this.onTileUnload(t);this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}destroy(){this.clear(),this.removeAllListeners()}updateTileVisible(){const t=this.options.updateStrategy,e=new Map;for(const a of this.cacheTiles.values())e.set(a.key,a.isVisible),a.isCurrent=!1,a.isVisible=!1;for(const a of this.currentTiles)a.isCurrent=!0,a.isVisible=!0;const r=Array.from(this.cacheTiles.values());typeof t=="function"?t(r):cC[t](r);let n=!1;Array.from(this.cacheTiles.values()).forEach(a=>{a.isVisible!==e.get(a.key)?(a.isVisibleChange=!0,n=!0):a.isVisibleChange=!1}),n&&this.emit("tile-update")}getTileIndices(t,e){const{tileSize:r,extent:n,zoomOffset:a}=this.options,l=Math.floor(this.options.maxZoom),o=Math.ceil(this.options.minZoom);return fC({maxZoom:l,minZoom:o,zoomOffset:a,tileSize:r,zoom:t,latLonBounds:e,extent:n})}getTileId(t,e,r){return`${t},${e},${r}`}loadFinished(){const t=!this.currentTiles.some(e=>!e.isDone);return t&&this.emit("tiles-load-finished"),t}getTile(t,e,r){const n=this.getTileId(t,e,r);return this.cacheTiles.get(n)}createTile(t,e,r){const n=this.getTileId(t,e,r),a=new mC({x:t,y:e,z:r,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(n,a),a.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),a}resizeCacheTiles(){const t=uC*this.currentTiles.length;if(this.cacheTiles.size>t){for(const[r,n]of this.cacheTiles)if(!n.isVisible&&!this.currentTiles.includes(n)&&(this.cacheTiles.delete(r),this.onTileUnload(n)),this.cacheTiles.size<=t)break}this.rebuildTileTree()}rebuildTileTree(){for(const t of this.cacheTiles.values())t.parent=null,t.children.length=0;for(const t of this.cacheTiles.values()){const e=this.getNearestAncestor(t.x,t.y,t.z);t.parent=e,e!=null&&e.children&&e.children.push(t)}}getNearestAncestor(t,e,r){for(;r>this.options.minZoom;){t=Math.floor(t/2),e=Math.floor(e/2),r=r-1;const n=this.getTile(t,e,r);if(n)return n}return null}};function p7(t){const e=[];let r=/\{([a-z])-([a-z])\}/.exec(t);if(r){const n=r[1].charCodeAt(0),a=r[2].charCodeAt(0);let l;for(l=n;l<=a;++l)e.push(t.replace(r[0],String.fromCharCode(l)));return e}if(r=/\{(\d+)-(\d+)\}/.exec(t),r){const n=parseInt(r[2],10);for(let a=parseInt(r[1],10);a<=n;a++)e.push(t.replace(r[0],a.toString()));return e}return e.push(t),e}function pp(t,e){if(!t||!t.length)throw new Error("url is not allowed to be empty");const{x:r,y:n,z:a}=e,l=p7(t),o=Math.abs(r+n)%l.length;return(Vv(l[o])?`${l[o]}/{z}/{x}/{y}`:l[o]).replace(/\{x\}/g,r.toString()).replace(/\{y\}/g,n.toString()).replace(/\{z\}/g,a.toString()).replace(/\{bbox\}/g,f7(r,n,a).join(",")).replace(/\{-y\}/g,(Math.pow(2,a)-n-1).toString())}function wC(t,e){const{x:r,y:n,z:a,layer:l,version:o="1.0.0",style:p="default",format:m,service:v="WMTS",tileMatrixset:E}=e,b=p7(t),A=Math.abs(r+n)%b.length;return`${b[A]}&SERVICE=${v}&REQUEST=GetTile&VERSION=${o}&LAYER=${l}&STYLE=${p}&TILEMATRIXSET=${E}&FORMAT=${m}&TILECOL=${r}&TILEROW=${n}&TILEMATRIX=${a}`}function _d(t,e){return t??e}var CC=Y0;function Y0(t,e){var r=t&&t.type,n;if(r==="FeatureCollection")for(n=0;n=Math.abs(p)?r-m+p:p-m+r,r=m}r+n>=0!=!!e&&t.reverse()}const RC=Co(CC);function IC(t,e){return t.map(r=>r[e]*1)}function d7(t){return Array.isArray(t)?t.length===0||typeof t[0]=="number":!1}function zg(t){const e=Object.isFrozen(t)?Ko.cloneDeep(t):t;return RC(e,!0),e}function Fp(t,e){return t||[[e[0],e[3]],[e[2],e[3]],[e[2],e[1]],[e[0],e[1]]]}var MC=Object.defineProperty,PC=Object.defineProperties,OC=Object.getOwnPropertyDescriptors,wy=Object.getOwnPropertySymbols,LC=Object.prototype.hasOwnProperty,DC=Object.prototype.propertyIsEnumerable,Cy=(t,e,r)=>e in t?MC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ry=(t,e)=>{for(var r in e||(e={}))LC.call(e,r)&&Cy(t,r,e[r]);if(wy)for(var r of wy(e))DC.call(e,r)&&Cy(t,r,e[r]);return t},Iy=(t,e)=>PC(t,OC(e));function m7(t,e){const{x:r,y:n,x1:a,y1:l,coordinates:o,geometry:p}=e,m=[];if(!Array.isArray(t))return{dataArray:[]};if(p)return t.filter(v=>v[p]&&v[p].type&&v[p].coordinates&&v[p].coordinates.length>0).forEach((v,E)=>{const b=zg(v[p]);Z8(b,A=>{const R=W8(A),O=Iy(Ry({},v),{_id:E,coordinates:R});m.push(O)})}),{dataArray:m};for(let v=0;ve in t?FC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,VC=(t,e)=>{for(var r in e||(e={}))UC.call(e,r)&&Py(t,r,e[r]);if(My)for(var r of My(e))zC.call(e,r)&&Py(t,r,e[r]);return t},HC=(t,e)=>NC(t,kC(e));function jC(t){const e=t.toString();let r=5381,n=e.length;for(;n;)r=r*33^e.charCodeAt(--n);return r>>>0}function XC(t,e){return e===void 0?null:isNaN(t.properties[e]*1)?t.properties&&t.properties[e]?jC(t.properties[e]+"")%1000019:null:t.properties[e]*1}function WC(t,e){const r=[],n={};return t.features?(t.features=t.features.filter(a=>{const l=a.geometry;return a!=null&&l&&l.type&&l.coordinates&&l.coordinates.length>0}),t=zg(t),t.features.length===0?{dataArray:[],featureKeys:n}:(Z8(t,(a,l)=>{let o=XC(a,e==null?void 0:e.featureId);o===null&&(o=l);const p=o,m=W8(a),v=HC(VC({},a.properties),{coordinates:m,_id:p});r.push(v)}),{dataArray:r,featureKeys:n})):(t.features=[],{dataArray:[]})}function Vg(t,e,r,n){for(var a=n,l=r-e>>1,o=r-e,p,m=t[e],v=t[e+1],E=t[r],b=t[r+1],A=e+3;Aa)p=A,a=R;else if(R===a){var O=Math.abs(A-l);On&&(p-e>3&&Vg(t,e,p,n),t[p+2]=a,r-p>3&&Vg(t,p,r,n))}function GC(t,e,r,n,a,l){var o=a-r,p=l-n;if(o!==0||p!==0){var m=((t-r)*o+(e-n)*p)/(o*o+p*p);m>1?(r=a,n=l):m>0&&(r+=o*m,n+=p*m)}return o=t-r,p=e-n,o*o+p*p}function l3(t,e,r,n){var a={id:typeof t>"u"?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return ZC(a),a}function ZC(t){var e=t.geometry,r=t.type;if(r==="Point"||r==="MultiPoint"||r==="LineString")Q_(t,e);else if(r==="Polygon"||r==="MultiLineString")for(var n=0;n0&&(n?o+=(a*v-m*l)/2:o+=Math.sqrt(Math.pow(m-a,2)+Math.pow(v-l,2))),a=m,l=v}var E=e.length-3;e[2]=1,Vg(e,0,E,r),e[E+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function J_(t,e,r,n){for(var a=0;a1?1:r}function Yc(t,e,r,n,a,l,o,p){if(r/=e,n/=e,l>=r&&o=n)return null;for(var m=[],v=0;v=r&&O=n)continue;var D=[];if(A==="Point"||A==="MultiPoint")qC(b,D,r,n,a);else if(A==="LineString")v7(b,D,r,n,a,!1,p.lineMetrics);else if(A==="MultiLineString")eg(b,D,r,n,a,!1);else if(A==="Polygon")eg(b,D,r,n,a,!0);else if(A==="MultiPolygon")for(var N=0;N=r&&o<=n&&(e.push(t[l]),e.push(t[l+1]),e.push(t[l+2]))}}function v7(t,e,r,n,a,l,o){for(var p=Ly(t),m=a===0?YC:KC,v=t.start,E,b,A=0;Ar&&(b=m(p,R,O,N,W,r),o&&(p.start=v+E*b)):G>n?Y=r&&(b=m(p,R,O,N,W,r),Q=!0),Y>n&&G<=n&&(b=m(p,R,O,N,W,n),Q=!0),!l&&Q&&(o&&(p.end=v+E*b),e.push(p),p=Ly(t)),o&&(v+=E)}var J=t.length-3;R=t[J],O=t[J+1],D=t[J+2],G=a===0?R:O,G>=r&&G<=n&&tg(p,R,O,D),J=p.length-3,l&&J>=3&&(p[J]!==p[0]||p[J+1]!==p[1])&&tg(p,p[0],p[1],p[2]),p.length&&e.push(p)}function Ly(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function eg(t,e,r,n,a,l){for(var o=0;oo.maxX&&(o.maxX=E),b>o.maxY&&(o.maxY=b)}return o}function eR(t,e,r,n){var a=e.geometry,l=e.type,o=[];if(l==="Point"||l==="MultiPoint")for(var p=0;p0&&e.size<(a?o:n)){r.numPoints+=e.length/3;return}for(var p=[],m=0;mo)&&(r.numSimplified++,p.push(e[m]),p.push(e[m+1])),r.numPoints++;a&&tR(p,l),t.push(p)}function tR(t,e){for(var r=0,n=0,a=t.length,l=a-2;n0===e)for(n=0,a=t.length;n24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var n=$C(t,e);this.tiles={},this.tileCoords=[],r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),n=QC(n,e),n.length&&this.splitTile(n,0,0,0),r&&(n.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}e_.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0};e_.prototype.splitTile=function(t,e,r,n,a,l,o){for(var p=[t,e,r,n],m=this.options,v=m.debug;p.length;){n=p.pop(),r=p.pop(),e=p.pop(),t=p.pop();var E=1<1&&console.time("creation"),A=this.tiles[b]=JC(t,e,r,n,m),this.tileCoords.push({z:e,x:r,y:n}),v)){v>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,n,A.numFeatures,A.numPoints,A.numSimplified),console.timeEnd("creation"));var R="z"+e;this.stats[R]=(this.stats[R]||0)+1,this.total++}if(A.source=t,a){if(e===m.maxZoom||e===a)continue;var O=1<1&&console.time("clipping");var D=.5*m.buffer/m.extent,N=.5-D,W=.5+D,G=1+D,Y,Q,J,Se,ce,ke;Y=Q=J=Se=null,ce=Yc(t,E,r-D,r+W,0,A.minX,A.maxX,m),ke=Yc(t,E,r+N,r+G,0,A.minX,A.maxX,m),t=null,ce&&(Y=Yc(ce,E,n-D,n+W,1,A.minY,A.maxY,m),Q=Yc(ce,E,n+N,n+G,1,A.minY,A.maxY,m),ce=null),ke&&(J=Yc(ke,E,n-D,n+W,1,A.minY,A.maxY,m),Se=Yc(ke,E,n+N,n+G,1,A.minY,A.maxY,m),ke=null),v>1&&console.timeEnd("clipping"),p.push(Y||[],e+1,r*2,n*2),p.push(Q||[],e+1,r*2,n*2+1),p.push(J||[],e+1,r*2+1,n*2),p.push(Se||[],e+1,r*2+1,n*2+1)}}};e_.prototype.getTile=function(t,e,r){var n=this.options,a=n.extent,l=n.debug;if(t<0||t>24)return null;var o=1<1&&console.log("drilling down to z%d-%d-%d",t,e,r);for(var m=t,v=e,E=r,b;!b&&m>0;)m--,v=Math.floor(v/2),E=Math.floor(E/2),b=this.tiles[jg(m,v,E)];return!b||!b.source?null:(l>1&&console.log("found parent tile z%d-%d-%d",m,v,E),l>1&&console.time("drilling down"),this.splitTile(b.source,m,v,E,t,e,r),l>1&&console.timeEnd("drilling down"),this.tiles[p]?By(this.tiles[p],a):null)};function jg(t,e,r){return((1<e in t?iR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,gm=(t,e)=>{for(var r in e||(e={}))sR.call(e,r)&&ky(t,r,e[r]);if(Ny)for(var r of Ny(e))lR.call(e,r)&&ky(t,r,e[r]);return t},uR=(t,e)=>oR(t,aR(e)),cR=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),hR={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0};function fR(t){let e=0;for(let r=0,n=t.length,a=n-1,l,o;rcR(void 0,null,function*(){return new Promise(a=>{const l=e.getTile(t.z,t.x,t.y),p={layers:{defaultLayer:{features:l?l.features.map(v=>mR(n,r.x,r.y,r.z,v)):[]}}},m=new Vd(p,t.x,t.y,t.z);a(m)})});function gR(t){const e={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!0,debug:0};return t===void 0||typeof t.geojsonvtOptions>"u"?e:gm(gm({},e),t.geojsonvtOptions)}function vR(t,e){const r=gR(e),n=r.extent||4096,a=rR(t,r),l=(p,m)=>_R(m,a,p,n),o=uR(gm(gm({},hR),e),{getTileData:l});return{data:t,dataArray:[],tilesetOptions:o,isTile:!0}}var yR=Object.defineProperty,xR=Object.defineProperties,bR=Object.getOwnPropertyDescriptors,Uy=Object.getOwnPropertySymbols,ER=Object.prototype.hasOwnProperty,TR=Object.prototype.propertyIsEnumerable,zy=(t,e,r)=>e in t?yR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Vy=(t,e)=>{for(var r in e||(e={}))ER.call(e,r)&&zy(t,r,e[r]);if(Uy)for(var r of Uy(e))TR.call(e,r)&&zy(t,r,e[r]);return t},Hy=(t,e)=>xR(t,bR(e));function y7(t,e){const{extent:r=[121.168,30.2828,121.384,30.4219],coordinates:n,requestParameters:a={}}=e,l=new Promise(m=>{t instanceof HTMLImageElement||Uw(t)?m([t]):AR(t,a,v=>{m(v)})}),o=Fp(n,r);return{originData:t,images:l,_id:1,dataArray:[{_id:0,coordinates:o}]}}function AR(t,e,r){const n=[];if(typeof t=="string")Bg(Hy(Vy({},e),{url:t}),(a,l)=>{l&&(n.push(l),r(n))});else{const a=t.length;let l=0;t.forEach(o=>{Bg(Hy(Vy({},e),{url:o}),(p,m)=>{l++,m&&n.push(m),l===a&&r(n)})})}return y7}var SR=Object.defineProperty,wR=Object.defineProperties,CR=Object.getOwnPropertyDescriptors,jy=Object.getOwnPropertySymbols,RR=Object.prototype.hasOwnProperty,IR=Object.prototype.propertyIsEnumerable,Xy=(t,e,r)=>e in t?SR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x7=(t,e)=>{for(var r in e||(e={}))RR.call(e,r)&&Xy(t,r,e[r]);if(jy)for(var r of jy(e))IR.call(e,r)&&Xy(t,r,e[r]);return t},b7=(t,e)=>wR(t,CR(e)),MR=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),PR=(t,e,r,n)=>MR(void 0,null,function*(){const a={x:e.x,y:e.y,z:e.z},l=pp(t,a);return new Promise(o=>{n?n(a,(p,m)=>{if(p||!m){const v={layers:{defaultLayer:{features:[]}}},E=new Vd(v,e.x,e.y,e.z);o(E)}else{const v={layers:{defaultLayer:{features:m.features}}},E=new Vd(v,e.x,e.y,e.z);o(E)}}):gS(b7(x7({},r),{url:l}),(p,m)=>{if(p||!m){const v={layers:{defaultLayer:{features:[]}}},E=new Vd(v,e.x,e.y,e.z);o(E)}else{const E={layers:{defaultLayer:{features:JSON.parse(m)}}},b=new Vd(E,e.x,e.y,e.z);o(b)}})})});function OR(t,e){const r=(a,l)=>PR(t,l,e==null?void 0:e.requestParameters,e.getCustomData),n=b7(x7({},e),{getTileData:r});return{dataArray:[],tilesetOptions:n,isTile:!0}}var E7=dp;function dp(t,e){this.x=t,this.y=e}dp.prototype={clone:function(){return new dp(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,a=r*this.x+e*this.y;return this.x=n,this.y=a,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),a=e.x+r*(this.x-e.x)-n*(this.y-e.y),l=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=a,this.y=l,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}};dp.convert=function(t){return t instanceof dp?t:Array.isArray(t)?new dp(t[0],t[1]):t};const oi=Co(E7);var LR=E7,DR=bp;function bp(t,e,r,n,a){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=a,t.readFields(BR,this,e)}function BR(t,e,r){t==1?e.id=r.readVarint():t==2?FR(r,e):t==3?e.type=r.readVarint():t==4&&(e._geometry=r.pos)}function FR(t,e){for(var r=t.readVarint()+t.pos;t.pos>3}if(n--,r===1||r===2)a+=t.readSVarint(),l+=t.readSVarint(),r===1&&(p&&o.push(p),p=[]),p.push(new LR(a,l));else if(r===7)p&&p.push(p[0].clone());else throw new Error("unknown command "+r)}return p&&o.push(p),o};bp.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,a=0,l=0,o=1/0,p=-1/0,m=1/0,v=-1/0;t.pos>3}if(n--,r===1||r===2)a+=t.readSVarint(),l+=t.readSVarint(),ap&&(p=a),lv&&(v=l);else if(r!==7)throw new Error("unknown command "+r)}return[o,m,p,v]};bp.prototype.toGeoJSON=function(t,e,r){var n=this.extent*Math.pow(2,r),a=this.extent*t,l=this.extent*e,o=this.loadGeometry(),p=bp.types[this.type],m,v;function E(R){for(var O=0;O>3;e=n===1?t.readString():n===2?t.readFloat():n===3?t.readDouble():n===4?t.readVarint64():n===5?t.readVarint():n===6?t.readSVarint():n===7?t.readBoolean():null}return e}T7.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new UR(this._pbf,e,this.extent,this._keys,this._values)};var jR=zR,XR=WR;function WR(t,e){this.layers=t.readFields(GR,{},e)}function GR(t,e,r){if(t===3){var n=new jR(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n)}}var ZR=XR,Qv={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Qv.read=function(t,e,r,n,a){var l,o,p=a*8-n-1,m=(1<>1,E=-7,b=r?a-1:0,A=r?-1:1,R=t[e+b];for(b+=A,l=R&(1<<-E)-1,R>>=-E,E+=p;E>0;l=l*256+t[e+b],b+=A,E-=8);for(o=l&(1<<-E)-1,l>>=-E,E+=n;E>0;o=o*256+t[e+b],b+=A,E-=8);if(l===0)l=1-v;else{if(l===m)return o?NaN:(R?-1:1)*(1/0);o=o+Math.pow(2,n),l=l-v}return(R?-1:1)*o*Math.pow(2,l-n)};Qv.write=function(t,e,r,n,a,l){var o,p,m,v=l*8-a-1,E=(1<>1,A=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=n?0:l-1,O=n?1:-1,D=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,o=E):(o=Math.floor(Math.log(e)/Math.LN2),e*(m=Math.pow(2,-o))<1&&(o--,m*=2),o+b>=1?e+=A/m:e+=A*Math.pow(2,1-b),e*m>=2&&(o++,m/=2),o+b>=E?(p=0,o=E):o+b>=1?(p=(e*m-1)*Math.pow(2,a),o=o+b):(p=e*Math.pow(2,b-1)*Math.pow(2,a),o=0));a>=8;t[r+R]=p&255,R+=O,p/=256,a-=8);for(o=o<0;t[r+R]=o&255,R+=O,o/=256,v-=8);t[r+R-O]|=D*128};var $R=Ti,E0=Qv;function Ti(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Ti.Varint=0;Ti.Fixed64=1;Ti.Bytes=2;Ti.Fixed32=5;var Xg=65536*65536,Wy=1/Xg,qR=12,A7=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");Ti.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos>3,l=this.pos;this.type=n&7,t(a,e,this),this.pos===l&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=T0(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=Zy(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=T0(this.buf,this.pos)+T0(this.buf,this.pos+4)*Xg;return this.pos+=8,t},readSFixed64:function(){var t=T0(this.buf,this.pos)+Zy(this.buf,this.pos+4)*Xg;return this.pos+=8,t},readFloat:function(){var t=E0.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=E0.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e=this.buf,r,n;return n=e[this.pos++],r=n&127,n<128||(n=e[this.pos++],r|=(n&127)<<7,n<128)||(n=e[this.pos++],r|=(n&127)<<14,n<128)||(n=e[this.pos++],r|=(n&127)<<21,n<128)?r:(n=e[this.pos],r|=(n&15)<<28,YR(r,t,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2===1?(t+1)/-2:t/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=qR&&A7?cI(this.buf,e,t):uI(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Ti.Bytes)return t.push(this.readVarint(e));var r=$c(this);for(t=t||[];this.pos127;);else if(e===Ti.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Ti.Fixed32)this.pos+=4;else if(e===Ti.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+e)},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e268435455||t<0){KR(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))},writeSVarint:function(t){this.writeVarint(t<0?-t*2-1:t*2)},writeBoolean:function(t){this.writeVarint(!!t)},writeString:function(t){t=String(t),this.realloc(t.length*4),this.pos++;var e=this.pos;this.pos=hI(this.buf,t,this.pos);var r=this.pos-e;r>=128&&Gy(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),E0.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),E0.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r=128&&Gy(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,Ti.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,eI,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,tI,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,iI,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,rI,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,nI,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,oI,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,aI,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,sI,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,lI,e)},writeBytesField:function(t,e){this.writeTag(t,Ti.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Ti.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Ti.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Ti.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Ti.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Ti.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Ti.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Ti.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Ti.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Ti.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,!!e)}};function YR(t,e,r){var n=r.buf,a,l;if(l=n[r.pos++],a=(l&112)>>4,l<128||(l=n[r.pos++],a|=(l&127)<<3,l<128)||(l=n[r.pos++],a|=(l&127)<<10,l<128)||(l=n[r.pos++],a|=(l&127)<<17,l<128)||(l=n[r.pos++],a|=(l&127)<<24,l<128)||(l=n[r.pos++],a|=(l&1)<<31,l<128))return Wf(t,a,e);throw new Error("Expected varint not more than 10 bytes")}function $c(t){return t.type===Ti.Bytes?t.readVarint()+t.pos:t.pos+1}function Wf(t,e,r){return r?e*4294967296+(t>>>0):(e>>>0)*4294967296+(t>>>0)}function KR(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(r=~(-t%4294967296),n=~(-t/4294967296),r^4294967295?r=r+1|0:(r=0,n=n+1|0)),t>=18446744073709552e3||t<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),QR(r,n,e),JR(n,e)}function QR(t,e,r){r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos]=t&127}function JR(t,e){var r=(t&7)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127)))))}function Gy(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));r.realloc(n);for(var a=r.pos-1;a>=t;a--)r.buf[a+n]=r.buf[a]}function eI(t,e){for(var r=0;r>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function Zy(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function uI(t,e,r){for(var n="",a=e;a239?4:l>223?3:l>191?2:1;if(a+p>r)break;var m,v,E;p===1?l<128&&(o=l):p===2?(m=t[a+1],(m&192)===128&&(o=(l&31)<<6|m&63,o<=127&&(o=null))):p===3?(m=t[a+1],v=t[a+2],(m&192)===128&&(v&192)===128&&(o=(l&15)<<12|(m&63)<<6|v&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):p===4&&(m=t[a+1],v=t[a+2],E=t[a+3],(m&192)===128&&(v&192)===128&&(E&192)===128&&(o=(l&15)<<18|(m&63)<<12|(v&63)<<6|E&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,p=1):o>65535&&(o-=65536,n+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),n+=String.fromCharCode(o),a+=p}return n}function cI(t,e,r){return A7.decode(t.subarray(e,r))}function hI(t,e,r){for(var n=0,a,l;n55295&&a<57344)if(l)if(a<56320){t[r++]=239,t[r++]=191,t[r++]=189,l=a;continue}else a=l-55296<<10|a-56320|65536,l=null;else{a>56319||n+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):l=a;continue}else l&&(t[r++]=239,t[r++]=191,t[r++]=189,l=null);a<128?t[r++]=a:(a<2048?t[r++]=a>>6|192:(a<65536?t[r++]=a>>12|224:(t[r++]=a>>18|240,t[r++]=a>>12&63|128),t[r++]=a>>6&63|128),t[r++]=a&63|128)}return r}const fI=Co($R);var pI=Object.defineProperty,dI=Object.defineProperties,mI=Object.getOwnPropertyDescriptors,$y=Object.getOwnPropertySymbols,_I=Object.prototype.hasOwnProperty,gI=Object.prototype.propertyIsEnumerable,qy=(t,e,r)=>e in t?pI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Yy=(t,e)=>{for(var r in e||(e={}))_I.call(e,r)&&qy(t,r,e[r]);if($y)for(var r of $y(e))gI.call(e,r)&&qy(t,r,e[r]);return t},vI=(t,e)=>dI(t,mI(e)),Ky=class{constructor(t,e,r,n){this.vectorLayerCache={},this.x=e,this.y=r,this.z=n,this.vectorTile=new ZR(new fI(t))}getTileData(t){if(!t||!this.vectorTile.layers[t])return[];if(this.vectorLayerCache[t])return this.vectorLayerCache[t];const e=this.vectorTile.layers[t];if(Array.isArray(e.features))return this.vectorLayerCache[t]=e.features,e.features;const r=[];for(let n=0;ne in t?yI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Wg=(t,e)=>{for(var r in e||(e={}))EI.call(e,r)&&Jy(t,r,e[r]);if(Qy)for(var r of Qy(e))TI.call(e,r)&&Jy(t,r,e[r]);return t},S7=(t,e)=>xI(t,bI(e)),AI=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),SI={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0,warp:!0},wI=(t,e,r,n,a)=>AI(void 0,null,function*(){const l=pp(t,e);return new Promise(o=>{if(a)a({x:r.x,y:r.y,z:r.z},(p,m)=>{if(p||!m)o(void 0);else{const v=new Ky(m,r.x,r.y,r.z);o(v)}});else{const p=jv(S7(Wg({},n),{url:l}),(m,v)=>{if(m||!v)o(void 0);else{const E=new Ky(v,r.x,r.y,r.z);o(E)}});r.xhrCancel=()=>p.cancel()}})});function CI(t,e){const r=Array.isArray(t)?t[0]:t,n=(l,o)=>wI(r,l,o,e==null?void 0:e.requestParameters,e==null?void 0:e.getCustomData),a=S7(Wg(Wg({},SI),e),{getTileData:n});return{data:r,dataArray:[],tilesetOptions:a,isTile:!0}}function RI(t,e,r){switch(t){case"+":return e+r;case"-":return e-r;case"*":return e*r;case"/":return e/r;case"%":return e%r;case"^":return Math.pow(e,r);case"abs":return Math.abs(e);case"floor":return Math.floor(e);case"round":return Math.round(e);case"ceil":return Math.ceil(e);case"sin":return Math.sin(e);case"cos":return Math.cos(e);case"atan":return r===-1?Math.atan(e):Math.atan2(e,r);case"min":return Math.min(e,r);case"max":return Math.max(e,r);case"log10":return Math.log(e);case"log2":return Math.log2(e);default:return console.warn("Calculate symbol err! Return default 0"),0}}function Qd(t,e){const{width:r,height:n}=e[0],a=e.map(m=>m.rasterData),l=r*n,o=[],p=JSON.stringify(t);for(let m=0;m{if(Array.isArray(n)&&n.length>0)switch(n[0]){case"band":try{t[a]=e[n[1]][r]}catch{console.warn("Raster Data err!"),t[a]=0}break;default:w7(n,e,r)}})}function II(t){const[e,r=-1,n=-1]=t;return e===void 0?(console.warn("Express err!"),["+",0,0]):[e.replace(/\s+/g,""),r,n]}function Gg(t){const e=II(t),r=e[0];let n=e[1],a=e[2];return Array.isArray(n)&&(n=Gg(t[1])),Array.isArray(a)&&(a=Gg(t[2])),RI(r,n,a)}var MI={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:PI}};function PI(t,e){const r=t[0].rasterData,n=t[1].rasterData,a=t[2].rasterData,l=[],[o,p]=(e==null?void 0:e.countCut)||[2,98],m=(e==null?void 0:e.RMinMax)||mp(r,o,p),v=(e==null?void 0:e.GMinMax)||mp(n,o,p),E=(e==null?void 0:e.BMinMax)||mp(a,o,p);for(let b=0;bp-m),a=n.length,l=n[Math.ceil(a*e/100)],o=n[Math.ceil(a*r/100)];return[l,o]}var OI=Object.defineProperty,LI=Object.defineProperties,DI=Object.getOwnPropertyDescriptors,e5=Object.getOwnPropertySymbols,BI=Object.prototype.hasOwnProperty,FI=Object.prototype.propertyIsEnumerable,t5=(t,e,r)=>e in t?OI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,NI=(t,e)=>{for(var r in e||(e={}))BI.call(e,r)&&t5(t,r,e[r]);if(e5)for(var r of e5(e))FI.call(e,r)&&t5(t,r,e[r]);return t},kI=(t,e)=>LI(t,DI(e)),C7=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())});function Jv(t,e,r){return C7(this,null,function*(){if(t.length===0)return{rasterData:[0],width:1,heigh:1};const n=yield Promise.all(t.map(({data:m,bands:v=[0]})=>e(m,v))),a=[];n.forEach(m=>{Array.isArray(m)?a.push(...m):a.push(m)});const{width:l,height:o}=a[0];let p;switch(typeof r){case"function":p=r(a);break;case"object":Array.isArray(r)?p={rasterData:Qd(r,a)}:p=UI(r,a);break;default:p={rasterData:a[0].rasterData}}return kI(NI({},p),{width:l,height:o})})}function UI(t,e){const r=MI[t.type];if(r.type==="function")return r.method(e,t==null?void 0:t.options);if(r.type==="operation")return t.type==="rgb"?zI(r.expression,e):{rasterData:Qd(r.expression,e)}}function zI(t,e){t.r===void 0&&console.warn("Channel R lost in Operation! Use band[0] to fill!"),t.g===void 0&&console.warn("Channel G lost in Operation! Use band[0] to fill!"),t.b===void 0&&console.warn("Channel B lost in Operation! Use band[0] to fill!");const r=Qd(t.r||["band",0],e),n=Qd(t.g||["band",0],e),a=Qd(t.b||["band",0],e);return[r,n,a]}function Zg(t,e,r,n){return C7(this,null,function*(){const a=yield Jv(t,e,r);n(null,{data:a})})}function VI(t,e){const{extent:r=[121.168,30.2828,121.384,30.4219],coordinates:n,width:a,height:l,min:o,max:p,format:m,operation:v}=e;let E,b,A;if(m===void 0||d7(t))E=Array.from(t),b=a,A=l;else{const D=Array.isArray(t)?t:[t];E=Jv(D,m,v)}const R=Fp(n,r);return{_id:1,dataArray:[{_id:1,data:E,width:b,height:A,min:o,max:p,coordinates:R}]}}let C3=function(t){return t.Normal="normal",t.PostProcessing="post-processing",t}({}),H=function(t){return t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.FUNC_ADD=32774]="FUNC_ADD",t[t.BLEND_EQUATION=32777]="BLEND_EQUATION",t[t.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",t[t.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",t[t.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",t[t.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",t[t.MAX_EXT=32776]="MAX_EXT",t[t.MIN_EXT=32775]="MIN_EXT",t[t.BLEND_DST_RGB=32968]="BLEND_DST_RGB",t[t.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",t[t.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",t[t.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",t[t.BLEND_COLOR=32773]="BLEND_COLOR",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",t[t.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.BUFFER_SIZE=34660]="BUFFER_SIZE",t[t.BUFFER_USAGE=34661]="BUFFER_USAGE",t[t.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK",t[t.CULL_FACE=2884]="CULL_FACE",t[t.BLEND=3042]="BLEND",t[t.DITHER=3024]="DITHER",t[t.STENCIL_TEST=2960]="STENCIL_TEST",t[t.DEPTH_TEST=2929]="DEPTH_TEST",t[t.SCISSOR_TEST=3089]="SCISSOR_TEST",t[t.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",t[t.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",t[t.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",t[t.NO_ERROR=0]="NO_ERROR",t[t.INVALID_ENUM=1280]="INVALID_ENUM",t[t.INVALID_VALUE=1281]="INVALID_VALUE",t[t.INVALID_OPERATION=1282]="INVALID_OPERATION",t[t.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",t[t.CW=2304]="CW",t[t.CCW=2305]="CCW",t[t.LINE_WIDTH=2849]="LINE_WIDTH",t[t.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",t[t.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",t[t.CULL_FACE_MODE=2885]="CULL_FACE_MODE",t[t.FRONT_FACE=2886]="FRONT_FACE",t[t.DEPTH_RANGE=2928]="DEPTH_RANGE",t[t.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",t[t.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",t[t.DEPTH_FUNC=2932]="DEPTH_FUNC",t[t.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",t[t.STENCIL_FUNC=2962]="STENCIL_FUNC",t[t.STENCIL_FAIL=2964]="STENCIL_FAIL",t[t.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",t[t.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",t[t.STENCIL_REF=2967]="STENCIL_REF",t[t.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",t[t.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",t[t.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",t[t.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",t[t.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",t[t.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",t[t.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",t[t.VIEWPORT=2978]="VIEWPORT",t[t.SCISSOR_BOX=3088]="SCISSOR_BOX",t[t.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",t[t.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",t[t.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",t[t.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",t[t.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",t[t.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",t[t.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",t[t.RED_BITS=3410]="RED_BITS",t[t.GREEN_BITS=3411]="GREEN_BITS",t[t.BLUE_BITS=3412]="BLUE_BITS",t[t.ALPHA_BITS=3413]="ALPHA_BITS",t[t.DEPTH_BITS=3414]="DEPTH_BITS",t[t.STENCIL_BITS=3415]="STENCIL_BITS",t[t.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",t[t.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",t[t.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",t[t.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",t[t.SAMPLES=32937]="SAMPLES",t[t.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",t[t.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",t[t.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",t[t.DONT_CARE=4352]="DONT_CARE",t[t.FASTEST=4353]="FASTEST",t[t.NICEST=4354]="NICEST",t[t.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.RED=6403]="RED",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER",t[t.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",t[t.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",t[t.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",t[t.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",t[t.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",t[t.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",t[t.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",t[t.SHADER_TYPE=35663]="SHADER_TYPE",t[t.DELETE_STATUS=35712]="DELETE_STATUS",t[t.LINK_STATUS=35714]="LINK_STATUS",t[t.VALIDATE_STATUS=35715]="VALIDATE_STATUS",t[t.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",t[t.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",t[t.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",t[t.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",t[t.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP",t[t.VENDOR=7936]="VENDOR",t[t.RENDERER=7937]="RENDERER",t[t.VERSION=7938]="VERSION",t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",t[t.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",t[t.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",t[t.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",t[t.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE=5890]="TEXTURE",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",t[t.TEXTURE0=33984]="TEXTURE0",t[t.TEXTURE1=33985]="TEXTURE1",t[t.TEXTURE2=33986]="TEXTURE2",t[t.TEXTURE3=33987]="TEXTURE3",t[t.TEXTURE4=33988]="TEXTURE4",t[t.TEXTURE5=33989]="TEXTURE5",t[t.TEXTURE6=33990]="TEXTURE6",t[t.TEXTURE7=33991]="TEXTURE7",t[t.TEXTURE8=33992]="TEXTURE8",t[t.TEXTURE9=33993]="TEXTURE9",t[t.TEXTURE10=33994]="TEXTURE10",t[t.TEXTURE11=33995]="TEXTURE11",t[t.TEXTURE12=33996]="TEXTURE12",t[t.TEXTURE13=33997]="TEXTURE13",t[t.TEXTURE14=33998]="TEXTURE14",t[t.TEXTURE15=33999]="TEXTURE15",t[t.TEXTURE16=34e3]="TEXTURE16",t[t.TEXTURE17=34001]="TEXTURE17",t[t.TEXTURE18=34002]="TEXTURE18",t[t.TEXTURE19=34003]="TEXTURE19",t[t.TEXTURE20=34004]="TEXTURE20",t[t.TEXTURE21=34005]="TEXTURE21",t[t.TEXTURE22=34006]="TEXTURE22",t[t.TEXTURE23=34007]="TEXTURE23",t[t.TEXTURE24=34008]="TEXTURE24",t[t.TEXTURE25=34009]="TEXTURE25",t[t.TEXTURE26=34010]="TEXTURE26",t[t.TEXTURE27=34011]="TEXTURE27",t[t.TEXTURE28=34012]="TEXTURE28",t[t.TEXTURE29=34013]="TEXTURE29",t[t.TEXTURE30=34014]="TEXTURE30",t[t.TEXTURE31=34015]="TEXTURE31",t[t.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",t[t.REPEAT=10497]="REPEAT",t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",t[t.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",t[t.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",t[t.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",t[t.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",t[t.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",t[t.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",t[t.COMPILE_STATUS=35713]="COMPILE_STATUS",t[t.LOW_FLOAT=36336]="LOW_FLOAT",t[t.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",t[t.HIGH_FLOAT=36338]="HIGH_FLOAT",t[t.LOW_INT=36339]="LOW_INT",t[t.MEDIUM_INT=36340]="MEDIUM_INT",t[t.HIGH_INT=36341]="HIGH_INT",t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.RENDERBUFFER=36161]="RENDERBUFFER",t[t.RGBA4=32854]="RGBA4",t[t.RGB5_A1=32855]="RGB5_A1",t[t.RGB565=36194]="RGB565",t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX=6401]="STENCIL_INDEX",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",t[t.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",t[t.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",t[t.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",t[t.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",t[t.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",t[t.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",t[t.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",t[t.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",t[t.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",t[t.NONE=0]="NONE",t[t.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",t[t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",t[t.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",t[t.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",t[t.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",t[t.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",t[t.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",t[t.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",t[t.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",t[t.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",t[t.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",t[t.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",t}({});const HI=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,{camelCase:GI,isNil:ZI,upperFirst:$I}=Ko;class n1{constructor(){I(this,"shaderModuleService",void 0),I(this,"rendererService",void 0),I(this,"config",void 0),I(this,"quad",WI),I(this,"enabled",!0),I(this,"renderToScreen",!1),I(this,"model",void 0),I(this,"name",void 0),I(this,"optionsToUpdate",{})}getName(){return this.name}setName(e){this.name=e}getType(){return C3.PostProcessing}init(e,r){this.config=r,this.rendererService=e.getContainer().rendererService,this.shaderModuleService=e.getContainer().shaderModuleService;const{createAttribute:n,createBuffer:a,createModel:l}=this.rendererService,{vs:o,fs:p,uniforms:m}=this.setupShaders();this.model=l({vs:o,fs:p,attributes:{a_Position:n({buffer:a({data:[-4,-4,4,-4,0,4],type:H.FLOAT}),size:2})},uniforms:_t(_t({u_Texture:null},m),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}render(e,r){const n=e.multiPassRenderer.getPostProcessor(),{useFramebuffer:a,getViewportSize:l,clear:o}=this.rendererService,{width:p,height:m}=l();a(this.renderToScreen?null:n.getWriteFBO(),()=>{o({framebuffer:n.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});const v=_t({u_BloomFinal:0,u_Texture:n.getReadFBO(),u_ViewportSize:[p,m]},this.convertOptionsToUniforms(this.optionsToUpdate));r&&(v.u_BloomFinal=1,v.u_Texture2=r),this.model.draw({uniforms:v})})}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}setRenderToScreen(e){this.renderToScreen=e}updateOptions(e){this.optionsToUpdate=_t(_t({},this.optionsToUpdate),e)}setupShaders(){throw new Error("Method not implemented.")}convertOptionsToUniforms(e){const r={};return Object.keys(e).forEach(n=>{ZI(e[n])||(r[`u_${$I(GI(n))}`]=e[n])}),r}}function qI(t){let e=0;switch(t){case"vec2":case"ivec2":e=2;break;case"vec3":case"ivec3":e=3;break;case"vec4":case"ivec4":case"mat2":e=4;break;case"mat3":e=9;break;case"mat4":e=16;break}return e}const R7=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g;function r5(t,e=!1){const r={};return t=t.replace(R7,(n,a,l)=>{const o=l.split(":"),p=o[0].trim();let m="";switch(o.length>1&&(m=o[1].trim()),a){case"bool":m=m==="true";break;case"float":case"int":m=Number(m);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":m?m=m.replace("[","").replace("]","").split(",").reduce((v,E)=>(v.push(Number(E.trim())),v),[]):m=new Array(qI(a)).fill(0);break}return r[p]=m,`${e?"uniform ":""}${a} ${p}; +}`,{camelCase:jI,isNil:XI,upperFirst:WI}=Ko;class n1{constructor(){I(this,"shaderModuleService",void 0),I(this,"rendererService",void 0),I(this,"config",void 0),I(this,"quad",HI),I(this,"enabled",!0),I(this,"renderToScreen",!1),I(this,"model",void 0),I(this,"name",void 0),I(this,"optionsToUpdate",{})}getName(){return this.name}setName(e){this.name=e}getType(){return C3.PostProcessing}init(e,r){this.config=r,this.rendererService=e.getContainer().rendererService,this.shaderModuleService=e.getContainer().shaderModuleService;const{createAttribute:n,createBuffer:a,createModel:l}=this.rendererService,{vs:o,fs:p,uniforms:m}=this.setupShaders();this.model=l({vs:o,fs:p,attributes:{a_Position:n({buffer:a({data:[-4,-4,4,-4,0,4],type:H.FLOAT}),size:2})},uniforms:_t(_t({u_Texture:null},m),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}render(e,r){const n=e.multiPassRenderer.getPostProcessor(),{useFramebuffer:a,getViewportSize:l,clear:o}=this.rendererService,{width:p,height:m}=l();a(this.renderToScreen?null:n.getWriteFBO(),()=>{o({framebuffer:n.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});const v=_t({u_BloomFinal:0,u_Texture:n.getReadFBO(),u_ViewportSize:[p,m]},this.convertOptionsToUniforms(this.optionsToUpdate));r&&(v.u_BloomFinal=1,v.u_Texture2=r),this.model.draw({uniforms:v})})}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}setRenderToScreen(e){this.renderToScreen=e}updateOptions(e){this.optionsToUpdate=_t(_t({},this.optionsToUpdate),e)}setupShaders(){throw new Error("Method not implemented.")}convertOptionsToUniforms(e){const r={};return Object.keys(e).forEach(n=>{XI(e[n])||(r[`u_${WI(jI(n))}`]=e[n])}),r}}function GI(t){let e=0;switch(t){case"vec2":case"ivec2":e=2;break;case"vec3":case"ivec3":e=3;break;case"vec4":case"ivec4":case"mat2":e=4;break;case"mat3":e=9;break;case"mat4":e=16;break}return e}const R7=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g;function r5(t,e=!1){const r={};return t=t.replace(R7,(n,a,l)=>{const o=l.split(":"),p=o[0].trim();let m="";switch(o.length>1&&(m=o[1].trim()),a){case"bool":m=m==="true";break;case"float":case"int":m=Number(m);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":m?m=m.replace("[","").replace("]","").split(",").reduce((v,E)=>(v.push(Number(E.trim())),v),[]):m=new Array(GI(a)).fill(0);break}return r[p]=m,`${e?"uniform ":""}${a} ${p}; `}),{content:t,uniforms:r}}function ig(t){let{content:e,uniforms:r}=r5(t,!0);return e=e.replace(/(\s*uniform\s*.*\s*){((?:\s*.*\s*)*?)};/g,(n,a,l)=>{l=l.trim().replace(/^.*$/gm,m=>`uniform ${m}`);const{content:o,uniforms:p}=r5(l);return Object.assign(r,p),`${a}{ ${o} };`}),{content:e,uniforms:r}}function n5(t){const e={};return t.replace(R7,(r,n,a)=>{const l=a.trim();return e[l]?"":(e[l]=!0,`uniform ${n} ${l}; -`)})}const kh={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"};let Ep=function(t){return t.TOPRIGHT="topright",t.TOPLEFT="topleft",t.BOTTOMRIGHT="bottomright",t.BOTTOMLEFT="bottomleft",t.TOPCENTER="topcenter",t.BOTTOMCENTER="bottomcenter",t.LEFTCENTER="leftcenter",t.RIGHTCENTER="rightcenter",t.LEFTTOP="lefttop",t.RIGHTTOP="righttop",t.LEFTBOTTOM="leftbottom",t.RIGHTBOTTOM="rightbottom",t}({}),Tp=function(t){return t[t.LNGLAT=1]="LNGLAT",t[t.LNGLAT_OFFSET=2]="LNGLAT_OFFSET",t[t.VECTOR_TILE=3]="VECTOR_TILE",t[t.IDENTITY=4]="IDENTITY",t[t.METER_OFFSET=5]="METER_OFFSET",t}({});const Zf={CoordinateSystem:"u_CoordinateSystem",ViewportCenter:"u_ViewportCenter",ViewportCenterProjection:"u_ViewportCenterProjection",PixelsPerDegree:"u_PixelsPerDegree",PixelsPerDegree2:"u_PixelsPerDegree2",PixelsPerMeter:"u_PixelsPerMeter"};var Ia={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"};let Js=function(t){return t.Hover="hover",t.Click="click",t.Select="select",t.Active="active",t.Drag="drag",t}({}),j1=function(t){return t.normal="normal",t.additive="additive",t.subtractive="subtractive",t.min="min",t.max="max",t.none="none",t}({}),Wh=function(t){return t.MULTIPLE="MULTIPLE",t.SINGLE="SINGLE",t}({}),t_=function(t){return t.AND="and",t.OR="or",t}({}),es=function(t){return t.INIT="init",t.UPDATE="update",t}({}),Ai=function(t){return t.LINEAR="linear",t.SEQUENTIAL="sequential",t.POWER="power",t.LOG="log",t.IDENTITY="identity",t.TIME="time",t.QUANTILE="quantile",t.QUANTIZE="quantize",t.THRESHOLD="threshold",t.CAT="cat",t.DIVERGING="diverging",t.CUSTOM="threshold",t}({}),$f=function(t){return t.CONSTANT="constant",t.VARIABLE="variable",t}({}),Lr=function(t){return t[t.Attribute=0]="Attribute",t[t.InstancedAttribute=1]="InstancedAttribute",t[t.Uniform=2]="Uniform",t}({});const $g=["mapload","mapchange","mapAfterFrameChange"];var e2={exports:{}};e2.exports=R3;e2.exports.default=R3;var _p=1e20;function R3(t,e,r,n,a,l){this.fontSize=t||24,this.buffer=e===void 0?3:e,this.cutoff=n||.25,this.fontFamily=a||"sans-serif",this.fontWeight=l||"normal",this.radius=r||8;var o=this.size=this.fontSize+this.buffer*2,p=o+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(p*p),this.gridInner=new Float64Array(p*p),this.f=new Float64Array(p),this.z=new Float64Array(p+1),this.v=new Uint16Array(p),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(o/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function YI(t,e,r,n,a,l,o){l.fill(_p,0,e*r),o.fill(0,0,e*r);for(var p=(e-n)/2,m=0;m-1);m++,l[m]=p,o[m]=v,o[m+1]=_p}for(p=0,m=0;p{if(!l[b]){const R=e(b,A);v+gd>a&&(v=0,m++),l[b]={x:v,y:p+m*gd,width:gd,height:gd,advance:R},v+=gd}});const E=r+n*2;return{mapping:l,xOffset:v,yOffset:p+m*E,canvasHeight:I7(p+(m+1)*E)}}function tM(t,e,r){let n=0,a=0,l=0,o=[];const p={};for(const v of t)if(!p[v.id]){const{size:E}=v;n+E+e>r&&(a5(p,o,a),n=0,a=l+a+e,l=0,o=[]),o.push({icon:v,xOffset:n}),n=n+E+e,l=Math.max(l,E)}o.length>0&&a5(p,o,a);const m=I7(l+a+e);return{mapping:p,canvasHeight:m}}function a5(t,e,r){for(const n of e){const{icon:a,xOffset:l}=n;t[a.id]=_t(_t({},a),{},{x:l,y:r,image:a.image,width:a.width,height:a.height})}}function I7(t){return Math.pow(2,Math.ceil(Math.log2(t)))}const rM=hM(),nM="sans-serif",iM="normal",oM=24,aM=3,sM=.25,lM=8,s5=1024,uM=1,l5=1,cM=3;function hM(){const t=[];for(let e=32;e<128;e++)t.push(String.fromCharCode(e));return t}function u5(t,e,r,n){t.font=`${n} ${r}px ${e}`,t.fillStyle="black",t.textBaseline="middle"}function c5(t,e){for(let r=0;r{this.iconFontGlyphs[r.name]=r.unicode})}addIconFont(e,r){this.iconFontMap.set(e,r)}getIconFontKey(e){return this.iconFontMap.get(e)||e}getGlyph(e){return this.iconFontGlyphs[e]?String.fromCharCode(parseInt(this.iconFontGlyphs[e],16)):""}setFontOptions(e){this.fontOptions=_t(_t({},this.fontOptions),e),this.key=this.getKey();const r=this.getNewChars(this.key,this.fontOptions.characterSet),n=this.cache.get(this.key);if(n&&r.length===0)return;const a=this.generateFontAtlas(this.key,r,n);this.fontAtlas=a,this.cache.set(this.key,a)}addFontFace(e,r){const n=document.createElement("style");n.type="text/css",n.innerText=` +`)})}const kh={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"};let Ep=function(t){return t.TOPRIGHT="topright",t.TOPLEFT="topleft",t.BOTTOMRIGHT="bottomright",t.BOTTOMLEFT="bottomleft",t.TOPCENTER="topcenter",t.BOTTOMCENTER="bottomcenter",t.LEFTCENTER="leftcenter",t.RIGHTCENTER="rightcenter",t.LEFTTOP="lefttop",t.RIGHTTOP="righttop",t.LEFTBOTTOM="leftbottom",t.RIGHTBOTTOM="rightbottom",t}({}),Tp=function(t){return t[t.LNGLAT=1]="LNGLAT",t[t.LNGLAT_OFFSET=2]="LNGLAT_OFFSET",t[t.VECTOR_TILE=3]="VECTOR_TILE",t[t.IDENTITY=4]="IDENTITY",t[t.METER_OFFSET=5]="METER_OFFSET",t}({});const Zf={CoordinateSystem:"u_CoordinateSystem",ViewportCenter:"u_ViewportCenter",ViewportCenterProjection:"u_ViewportCenterProjection",PixelsPerDegree:"u_PixelsPerDegree",PixelsPerDegree2:"u_PixelsPerDegree2",PixelsPerMeter:"u_PixelsPerMeter"};var Ia={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"};let Js=function(t){return t.Hover="hover",t.Click="click",t.Select="select",t.Active="active",t.Drag="drag",t}({}),j1=function(t){return t.normal="normal",t.additive="additive",t.subtractive="subtractive",t.min="min",t.max="max",t.none="none",t}({}),Wh=function(t){return t.MULTIPLE="MULTIPLE",t.SINGLE="SINGLE",t}({}),t_=function(t){return t.AND="and",t.OR="or",t}({}),es=function(t){return t.INIT="init",t.UPDATE="update",t}({}),Ai=function(t){return t.LINEAR="linear",t.SEQUENTIAL="sequential",t.POWER="power",t.LOG="log",t.IDENTITY="identity",t.TIME="time",t.QUANTILE="quantile",t.QUANTIZE="quantize",t.THRESHOLD="threshold",t.CAT="cat",t.DIVERGING="diverging",t.CUSTOM="threshold",t}({}),$f=function(t){return t.CONSTANT="constant",t.VARIABLE="variable",t}({}),Lr=function(t){return t[t.Attribute=0]="Attribute",t[t.InstancedAttribute=1]="InstancedAttribute",t[t.Uniform=2]="Uniform",t}({});const $g=["mapload","mapchange","mapAfterFrameChange"];var e2={exports:{}};e2.exports=R3;e2.exports.default=R3;var _p=1e20;function R3(t,e,r,n,a,l){this.fontSize=t||24,this.buffer=e===void 0?3:e,this.cutoff=n||.25,this.fontFamily=a||"sans-serif",this.fontWeight=l||"normal",this.radius=r||8;var o=this.size=this.fontSize+this.buffer*2,p=o+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(p*p),this.gridInner=new Float64Array(p*p),this.f=new Float64Array(p),this.z=new Float64Array(p+1),this.v=new Uint16Array(p),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(o/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function ZI(t,e,r,n,a,l,o){l.fill(_p,0,e*r),o.fill(0,0,e*r);for(var p=(e-n)/2,m=0;m-1);m++,l[m]=p,o[m]=v,o[m+1]=_p}for(p=0,m=0;p{if(!l[b]){const R=e(b,A);v+gd>a&&(v=0,m++),l[b]={x:v,y:p+m*gd,width:gd,height:gd,advance:R},v+=gd}});const E=r+n*2;return{mapping:l,xOffset:v,yOffset:p+m*E,canvasHeight:I7(p+(m+1)*E)}}function QI(t,e,r){let n=0,a=0,l=0,o=[];const p={};for(const v of t)if(!p[v.id]){const{size:E}=v;n+E+e>r&&(a5(p,o,a),n=0,a=l+a+e,l=0,o=[]),o.push({icon:v,xOffset:n}),n=n+E+e,l=Math.max(l,E)}o.length>0&&a5(p,o,a);const m=I7(l+a+e);return{mapping:p,canvasHeight:m}}function a5(t,e,r){for(const n of e){const{icon:a,xOffset:l}=n;t[a.id]=_t(_t({},a),{},{x:l,y:r,image:a.image,width:a.width,height:a.height})}}function I7(t){return Math.pow(2,Math.ceil(Math.log2(t)))}const JI=lM(),eM="sans-serif",tM="normal",rM=24,nM=3,iM=.25,oM=8,s5=1024,aM=1,l5=1,sM=3;function lM(){const t=[];for(let e=32;e<128;e++)t.push(String.fromCharCode(e));return t}function u5(t,e,r,n){t.font=`${n} ${r}px ${e}`,t.fillStyle="black",t.textBaseline="middle"}function c5(t,e){for(let r=0;r{this.iconFontGlyphs[r.name]=r.unicode})}addIconFont(e,r){this.iconFontMap.set(e,r)}getIconFontKey(e){return this.iconFontMap.get(e)||e}getGlyph(e){return this.iconFontGlyphs[e]?String.fromCharCode(parseInt(this.iconFontGlyphs[e],16)):""}setFontOptions(e){this.fontOptions=_t(_t({},this.fontOptions),e),this.key=this.getKey();const r=this.getNewChars(this.key,this.fontOptions.characterSet),n=this.cache.get(this.key);if(n&&r.length===0)return;const a=this.generateFontAtlas(this.key,r,n);this.fontAtlas=a,this.cache.set(this.key,a)}addFontFace(e,r){const n=document.createElement("style");n.type="text/css",n.innerText=` @font-face{ font-family: '${e}'; src: url('${r}') format('woff2'), url('${r}') format('woff'), url('${r}') format('truetype'); - }`,n.onload=()=>{if(document.fonts)try{document.fonts.load(`24px ${e}`,"L7text"),document.fonts.ready.then(()=>{this.emit("fontloaded",{fontFamily:e})})}catch(a){console.warn("当前环境不支持 document.fonts !"),console.warn("当前环境不支持 iconfont !"),console.warn(a)}},document.getElementsByTagName("head")[0].appendChild(n)}destroy(){this.cache.clear(),this.iconFontMap.clear()}generateFontAtlas(e,r,n){const{fontFamily:a,fontWeight:l,fontSize:o,buffer:p,sdf:m,radius:v,cutoff:E,iconfont:b}=this.fontOptions;let A=n&&n.data;A||(A=window.document.createElement("canvas"),A.width=s5);const R=A.getContext("2d",{willReadFrequently:!0});u5(R,a,o,l);const{mapping:O,canvasHeight:D,xOffset:N,yOffset:W}=eM(_t({getFontWidth:Y=>R.measureText(Y).width,fontHeight:o*l5,buffer:p,characterSet:r,maxCanvasWidth:s5},n&&{mapping:n.mapping,xOffset:n.xOffset,yOffset:n.yOffset})),G=R.getImageData(0,0,A.width,A.height);if(A.height=D,R.putImageData(G,0,0),u5(R,a,o,l),m){const Y=new JI(o,p,v,E,a,l),Q=R.getImageData(0,0,Y.size,Y.size);for(const J of r){if(b){const Se=String.fromCharCode(parseInt(J.replace("&#x","").replace(";",""),16)),ce=Y.draw(Se);c5(ce,Q)}else c5(Y.draw(J),Q);R.putImageData(Q,O[J].x,O[J].y)}}else for(const Y of r)R.fillText(Y,O[Y].x,O[Y].y+o*uM);return{xOffset:N,yOffset:W,mapping:O,data:A,width:A.width,height:A.height}}getKey(){const{fontFamily:e,fontWeight:r}=this.fontOptions;return`${e}_${r}`}getNewChars(e,r){const n=this.cache.get(e);if(!n)return r;const a=[],l=n.mapping,o=new Set(Object.keys(l));return new Set(r).forEach(m=>{o.has(m)||a.push(m)}),a}}const pM=3,h5=1024,vd=64;class dM extends Ps.EventEmitter{constructor(...e){super(...e),I(this,"canvasHeight",128),I(this,"texture",void 0),I(this,"canvas",void 0),I(this,"iconData",void 0),I(this,"iconMap",void 0),I(this,"ctx",void 0),I(this,"loadingImageCount",0)}isLoading(){return this.loadingImageCount===0}init(){this.iconData=[],this.iconMap={},this.canvas=window.document.createElement("canvas"),this.canvas.width=128,this.canvas.height=128,this.ctx=this.canvas.getContext("2d")}addImage(e,r){var n=this;return bt(function*(){let a=new Image;n.loadingImageCount++,n.hasImage(e)?console.warn("Image Id already exists"):n.iconData.push({id:e,size:vd}),n.updateIconMap(),a=yield n.loadImage(r);const l=n.iconData.find(o=>o.id===e);l&&(l.image=a,l.width=a.width,l.height=a.height),n.update()})()}addImageMini(e,r,n){const a=n.getSceneConfig().canvas;let l=a.createImage();if(this.loadingImageCount++,this.hasImage(e))throw new Error("Image Id already exists");this.iconData.push({id:e,size:vd}),this.updateIconMap(),this.loadImageMini(r,a).then(o=>{l=o;const p=this.iconData.find(m=>m.id===e);p&&(p.image=l,p.width=l.width,p.height=l.height),this.update()})}getTexture(){return this.texture}getIconMap(){return this.iconMap}getCanvas(){return this.canvas}hasImage(e){return this.iconMap.hasOwnProperty(e)}removeImage(e){this.hasImage(e)&&(this.iconData=this.iconData.filter(r=>r.id!==e),delete this.iconMap[e],this.update())}destroy(){this.removeAllListeners("imageUpdate"),this.iconData=[],this.iconMap={}}loadImage(e){return new Promise((r,n)=>{if(e instanceof HTMLImageElement){r(e);return}const a=new Image;a.crossOrigin="anonymous",a.onload=()=>{r(a)},a.onerror=()=>{n(new Error("Could not load image at "+e))},a.src=e instanceof File?URL.createObjectURL(e):e})}update(){this.updateIconMap(),this.updateIconAtlas(),this.loadingImageCount--,this.loadingImageCount===0&&this.emit("imageUpdate")}updateIconAtlas(){this.canvas.width=h5,this.canvas.height=this.canvasHeight,Object.keys(this.iconMap).forEach(e=>{const{x:r,y:n,image:a,width:l=64,height:o=64}=this.iconMap[e],m=Math.max(l,o)/vd,v=o/m,E=l/m;a&&this.ctx.drawImage(a,r+(vd-E)/2,n+(vd-v)/2,E,v)})}updateIconMap(){const{mapping:e,canvasHeight:r}=tM(this.iconData,pM,h5);this.iconMap=e,this.canvasHeight=r}loadImageMini(e,r){return new Promise((n,a)=>{const l=r.createImage();l.crossOrigin="anonymous",l.onload=()=>{n(l)},l.onerror=()=>{a(new Error("Could not load image at "+e))},l.src=e})}}class mM{constructor(){I(this,"viewport",void 0),I(this,"overridedViewProjectionMatrix",void 0),I(this,"viewMatrixInverse",void 0),I(this,"cameraPosition",void 0)}init(){}update(e){this.viewport=e,this.viewMatrixInverse=A3(),fm(this.viewMatrixInverse,e.getViewMatrix()),this.cameraPosition=[this.viewMatrixInverse[12],this.viewMatrixInverse[13],this.viewMatrixInverse[14]]}getProjectionMatrix(){return this.viewport.getProjectionMatrix()}getModelMatrix(){return this.viewport.getModelMatrix()}getViewMatrix(){return this.viewport.getViewMatrix()}getViewMatrixUncentered(){return this.viewport.getViewMatrixUncentered()}getViewProjectionMatrixUncentered(){return this.viewport.getViewProjectionMatrixUncentered()}getViewProjectionMatrix(){return this.overridedViewProjectionMatrix||this.viewport.getViewProjectionMatrix()}getZoom(){return this.viewport.getZoom()}getZoomScale(){return this.viewport.getZoomScale()}getCenter(){const[e,r]=this.viewport.getCenter();return[e,r]}getFocalDistance(){return this.viewport.getFocalDistance()}getCameraPosition(){return this.cameraPosition}projectFlat(e,r){return this.viewport.projectFlat(e,r)}setViewProjectionMatrix(e){this.overridedViewProjectionMatrix=e}}const _M={topleft:"column",topright:"column",bottomright:"column",bottomleft:"column",leftcenter:"column",rightcenter:"column",topcenter:"row",bottomcenter:"row",lefttop:"row",righttop:"row",leftbottom:"row",rightbottom:"row"};class gM{constructor(){I(this,"container",void 0),I(this,"controlCorners",void 0),I(this,"controlContainer",void 0),I(this,"scene",void 0),I(this,"mapsService",void 0),I(this,"controls",[]),I(this,"unAddControls",[])}init(e,r){this.container=e.container,this.scene=r,this.mapsService=r.mapService,this.initControlPos()}addControl(e,r){r.mapService.map?(e.addTo(this.scene),this.controls.push(e)):this.unAddControls.push(e)}getControlByName(e){return this.controls.find(r=>r.controlOption.name===e)}removeControl(e){const r=this.controls.indexOf(e);return r>-1&&this.controls.splice(r,1),e.remove(),this}addControls(){this.unAddControls.forEach(e=>{e.addTo(this.scene),this.controls.push(e)}),this.unAddControls=[]}destroy(){for(const e of this.controls)e.remove();this.controls=[],this.clearControlPos()}initControlPos(){const e=this.controlCorners={},r="l7-",n=this.controlContainer=_a("div",r+"control-container",this.container);function a(o=[]){const p=o.map(m=>r+m).join(" ");e[o.filter(m=>!["row","column"].includes(m)).join("")]=_a("div",p,n)}function l(o){return[...o.replace(/^(top|bottom|left|right|center)/,"$1-").split("-"),_M[o]]}Object.values(Ep).forEach(o=>{a(l(o))}),this.checkCornerOverlap()}clearControlPos(){for(const e in this.controlCorners)this.controlCorners[e]&&xp(this.controlCorners[e]);this.controlContainer&&xp(this.controlContainer)}checkCornerOverlap(){const e=window.MutationObserver;if(e)for(const r of Object.keys(this.controlCorners)){const n=r.match(/^(top|bottom)(left|right)$/);if(n){const[,a,l]=n,o=this.controlCorners[`${a}${l}`];new e(([{target:m}])=>{o&&(o.style[a]=m.clientHeight+"px")}).observe(this.controlCorners[`${l}${a}`],{childList:!0,attributes:!0})}}}}class vM{constructor(){I(this,"container",void 0),I(this,"scene",void 0),I(this,"mapsService",void 0),I(this,"markers",[]),I(this,"markerLayers",[]),I(this,"unAddMarkers",[]),I(this,"unAddMarkerLayers",[])}addMarkerLayer(e){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markerLayers.push(e),e.addTo(this.scene)):this.unAddMarkerLayers.push(e)}removeMarkerLayer(e){e.destroy(),this.markerLayers.indexOf(e);const r=this.markerLayers.indexOf(e);r>-1&&this.markerLayers.splice(r,1)}addMarker(e){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(e),e.addTo(this.scene)):this.unAddMarkers.push(e)}addMarkers(){this.unAddMarkers.forEach(e=>{e.addTo(this.scene),this.markers.push(e)}),this.unAddMarkers=[]}addMarkerLayers(){this.unAddMarkerLayers.forEach(e=>{this.markerLayers.push(e),e.addTo(this.scene)}),this.unAddMarkers=[]}removeMarker(e){e.remove(),this.markers.indexOf(e);const r=this.markers.indexOf(e);r>-1&&this.markers.splice(r,1)}removeAllMarkers(){this.destroy()}init(e){this.scene=e,this.mapsService=e.mapService}destroy(){this.markers.forEach(e=>{e.remove()}),this.markers=[],this.markerLayers.forEach(e=>{e.destroy()}),this.markerLayers=[]}removeMakerLayerMarker(e){e.destroy()}}class yM{constructor(){I(this,"scene",void 0),I(this,"mapsService",void 0),I(this,"popups",[]),I(this,"unAddPopups",[])}get isMarkerReady(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}removePopup(e){e!=null&&e.isOpen()&&e.remove();const r=this.popups.indexOf(e);r>-1&&this.popups.splice(r,1);const n=this.unAddPopups.indexOf(e);n>-1&&this.unAddPopups.splice(n,1)}destroy(){this.popups.forEach(e=>e.remove())}addPopup(e){e&&e.getOptions().autoClose&&[...this.popups,...this.unAddPopups].forEach(r=>{r.getOptions().autoClose&&this.removePopup(r)}),this.isMarkerReady?(e.addTo(this.scene),this.popups.push(e)):this.unAddPopups.push(e),e.on("close",()=>{this.removePopup(e)})}initPopup(){this.unAddPopups.length&&this.unAddPopups.forEach(e=>{this.addPopup(e),this.unAddPopups=[]})}init(e){this.scene=e,this.mapsService=e.mapService}}const xM={MapToken:"您正在使用 Demo 测试 Token, 生产环境务必自行注册 Token 确保服务稳定 高德地图申请地址 https://lbs.amap.com/api/javascript-api/guide/abc/prepare Mapbox地图申请地址 https://docs.mapbox.com/help/glossary/access-token/",SDK:"请确认引入了mapbox-gl api且在L7之前引入"},{merge:bM}=Ko,EM={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},TM={colors:["rgb(103,0,31)","rgb(178,24,43)","rgb(214,96,77)","rgb(244,165,130)","rgb(253,219,199)","rgb(247,247,247)","rgb(209,229,240)","rgb(146,197,222)","rgb(67,147,195)","rgb(33,102,172)","rgb(5,48,97)"],size:10,shape:"circle",scales:{},shape2d:["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],shape3d:["cylinder","triangleColumn","hexagonColumn","squareColumn"],minZoom:-1,maxZoom:24,visible:!0,autoFit:!1,pickingBuffer:0,enablePropagation:!1,zIndex:0,blend:"normal",maskLayers:[],enableMask:!0,maskOperation:t_.AND,pickedFeatureID:-1,enableMultiPassRenderer:!1,enablePicking:!0,active:!1,activeColor:"#2f54eb",enableHighlight:!1,enableSelect:!1,highlightColor:"#2f54eb",activeMix:0,selectColor:"blue",selectMix:0,enableLighting:!1,animateOption:{enable:!1,interval:.2,duration:4,trailLength:.15},forward:!0};class AM{constructor(){I(this,"sceneConfigCache",{}),I(this,"layerConfigCache",{}),I(this,"layerAttributeConfigCache",{})}getSceneConfig(e){return this.sceneConfigCache[e]}getSceneWarninfo(e){return xM[e]}setSceneConfig(e,r){this.sceneConfigCache[e]=_t(_t({},EM),r)}getLayerConfig(e){return this.layerConfigCache[e]}setLayerConfig(e,r,n){this.layerConfigCache[r]=_t({},bM({},this.sceneConfigCache[e],TM,n))}getAttributeConfig(e){return this.layerAttributeConfigCache[e]}setAttributeConfig(e,r){this.layerAttributeConfigCache[e]=_t(_t({},this.layerAttributeConfigCache[e]),r)}clean(){this.sceneConfigCache={},this.layerConfigCache={}}}const og=Math.PI/180,SM=512,f5=4003e4;function p5({latitude:t=0,zoom:e=0,scale:r,highPrecision:n=!1,flipY:a=!1}){r=r!==void 0?r:Math.pow(2,e);const l={},o=SM*r,p=Math.cos(t*og),m=o/360,v=m/p,E=o/f5/p;if(l.pixelsPerMeter=[E,-E,E],l.metersPerPixel=[1/E,-1/E,1/E],l.pixelsPerDegree=[m,-v,E],l.degreesPerPixel=[1/m,-1/v,1/E],n){const b=og*Math.tan(t*og)/p,A=m*b/2,R=o/f5*b,O=R/v*E;l.pixelsPerDegree2=[0,-A,R],l.pixelsPerMeter2=[O,0,O],a&&(l.pixelsPerDegree2[1]=-l.pixelsPerDegree2[1],l.pixelsPerMeter2[1]=-l.pixelsPerMeter2[1])}return a&&(l.pixelsPerMeter[1]=-l.pixelsPerMeter[1],l.metersPerPixel[1]=-l.metersPerPixel[1],l.pixelsPerDegree[1]=-l.pixelsPerDegree[1],l.degreesPerPixel[1]=-l.degreesPerPixel[1]),l}const wM=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0];class CM{constructor(e){I(this,"needRefresh",!0),I(this,"coordinateSystem",void 0),I(this,"viewportCenter",void 0),I(this,"viewportCenterProjection",void 0),I(this,"pixelsPerDegree",void 0),I(this,"pixelsPerDegree2",void 0),I(this,"pixelsPerMeter",void 0),this.cameraService=e}refresh(e){const r=this.cameraService.getZoom(),n=e||this.cameraService.getCenter(),{pixelsPerMeter:a,pixelsPerDegree:l}=p5({latitude:n[1],zoom:r});this.viewportCenter=n,this.viewportCenterProjection=[0,0,0,0],this.pixelsPerMeter=a,this.pixelsPerDegree=l,this.pixelsPerDegree2=[0,0,0],this.coordinateSystem===Tp.LNGLAT?this.cameraService.setViewProjectionMatrix(void 0):this.coordinateSystem===Tp.LNGLAT_OFFSET&&this.calculateLnglatOffset(n,r),this.needRefresh=!1}getCoordinateSystem(){return this.coordinateSystem}setCoordinateSystem(e){this.coordinateSystem=e}getViewportCenter(){return this.viewportCenter}getViewportCenterProjection(){return this.viewportCenterProjection}getPixelsPerDegree(){return this.pixelsPerDegree}getPixelsPerDegree2(){return this.pixelsPerDegree2}getPixelsPerMeter(){return this.pixelsPerMeter}calculateLnglatOffset(e,r,n,a){const{pixelsPerMeter:l,pixelsPerDegree:o,pixelsPerDegree2:p}=p5({latitude:e[1],zoom:r,scale:n,flipY:a,highPrecision:!0});let m=this.cameraService.getViewMatrix();const v=this.cameraService.getProjectionMatrix();let E=Y1([],v,m);const b=this.cameraService.projectFlat([Math.fround(e[0]),Math.fround(e[1])],Math.pow(2,r));this.viewportCenterProjection=W1([],[b[0],b[1],0,1],E),m=this.cameraService.getViewMatrixUncentered()||m,E=Y1([],v,m),E=Y1([],E,wM),this.cameraService.setViewProjectionMatrix(E),this.pixelsPerMeter=l,this.pixelsPerDegree=o,this.pixelsPerDegree2=p}}class RM extends Ps.EventEmitter{constructor(...e){super(...e),I(this,"renderMap",new Map),I(this,"enable",!1),I(this,"renderEnable",!1),I(this,"cacheLogs",{})}setEnable(e){this.enable=!!e}log(e,r){if(!this.enable)return;const n=e.split(".");let a=null;n.forEach((l,o)=>{a!==null?(a[l]||(a[l]={}),o!==n.length-1&&(a=a[l])):(this.cacheLogs[l]||(this.cacheLogs[l]={}),o!==n.length-1&&(a=this.cacheLogs[l])),o===n.length-1&&(a[l]=_t(_t({time:Date.now()},a[l]),r))})}getLog(e){switch(typeof e){case"string":return this.cacheLogs[e];case"object":return e.map(r=>this.cacheLogs[r]).filter(r=>r!==void 0);case"undefined":return this.cacheLogs}}removeLog(e){delete this.cacheLogs[e]}generateRenderUid(){return this.renderEnable?tC():""}renderDebug(e){this.renderEnable=e}renderStart(e){if(!this.renderEnable||!this.enable)return;const r=this.renderMap.get(e)||{};this.renderMap.set(e,_t(_t({},r),{},{renderUid:e,renderStart:Date.now()}))}renderEnd(e){if(!this.renderEnable||!this.enable)return;const r=this.renderMap.get(e);if(r){const n=r.renderStart,a=Date.now();this.emit("renderEnd",_t(_t({},r),{},{renderEnd:a,renderDuration:a-n})),this.renderMap.delete(e)}}destroy(){this.cacheLogs=null,this.renderMap.clear()}}var M7={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22 + }`,n.onload=()=>{if(document.fonts)try{document.fonts.load(`24px ${e}`,"L7text"),document.fonts.ready.then(()=>{this.emit("fontloaded",{fontFamily:e})})}catch(a){console.warn("当前环境不支持 document.fonts !"),console.warn("当前环境不支持 iconfont !"),console.warn(a)}},document.getElementsByTagName("head")[0].appendChild(n)}destroy(){this.cache.clear(),this.iconFontMap.clear()}generateFontAtlas(e,r,n){const{fontFamily:a,fontWeight:l,fontSize:o,buffer:p,sdf:m,radius:v,cutoff:E,iconfont:b}=this.fontOptions;let A=n&&n.data;A||(A=window.document.createElement("canvas"),A.width=s5);const R=A.getContext("2d",{willReadFrequently:!0});u5(R,a,o,l);const{mapping:O,canvasHeight:D,xOffset:N,yOffset:W}=KI(_t({getFontWidth:Y=>R.measureText(Y).width,fontHeight:o*l5,buffer:p,characterSet:r,maxCanvasWidth:s5},n&&{mapping:n.mapping,xOffset:n.xOffset,yOffset:n.yOffset})),G=R.getImageData(0,0,A.width,A.height);if(A.height=D,R.putImageData(G,0,0),u5(R,a,o,l),m){const Y=new YI(o,p,v,E,a,l),Q=R.getImageData(0,0,Y.size,Y.size);for(const J of r){if(b){const Se=String.fromCharCode(parseInt(J.replace("&#x","").replace(";",""),16)),ce=Y.draw(Se);c5(ce,Q)}else c5(Y.draw(J),Q);R.putImageData(Q,O[J].x,O[J].y)}}else for(const Y of r)R.fillText(Y,O[Y].x,O[Y].y+o*aM);return{xOffset:N,yOffset:W,mapping:O,data:A,width:A.width,height:A.height}}getKey(){const{fontFamily:e,fontWeight:r}=this.fontOptions;return`${e}_${r}`}getNewChars(e,r){const n=this.cache.get(e);if(!n)return r;const a=[],l=n.mapping,o=new Set(Object.keys(l));return new Set(r).forEach(m=>{o.has(m)||a.push(m)}),a}}const cM=3,h5=1024,vd=64;class hM extends Ps.EventEmitter{constructor(...e){super(...e),I(this,"canvasHeight",128),I(this,"texture",void 0),I(this,"canvas",void 0),I(this,"iconData",void 0),I(this,"iconMap",void 0),I(this,"ctx",void 0),I(this,"loadingImageCount",0)}isLoading(){return this.loadingImageCount===0}init(){this.iconData=[],this.iconMap={},this.canvas=window.document.createElement("canvas"),this.canvas.width=128,this.canvas.height=128,this.ctx=this.canvas.getContext("2d")}addImage(e,r){var n=this;return bt(function*(){let a=new Image;n.loadingImageCount++,n.hasImage(e)?console.warn("Image Id already exists"):n.iconData.push({id:e,size:vd}),n.updateIconMap(),a=yield n.loadImage(r);const l=n.iconData.find(o=>o.id===e);l&&(l.image=a,l.width=a.width,l.height=a.height),n.update()})()}addImageMini(e,r,n){const a=n.getSceneConfig().canvas;let l=a.createImage();if(this.loadingImageCount++,this.hasImage(e))throw new Error("Image Id already exists");this.iconData.push({id:e,size:vd}),this.updateIconMap(),this.loadImageMini(r,a).then(o=>{l=o;const p=this.iconData.find(m=>m.id===e);p&&(p.image=l,p.width=l.width,p.height=l.height),this.update()})}getTexture(){return this.texture}getIconMap(){return this.iconMap}getCanvas(){return this.canvas}hasImage(e){return this.iconMap.hasOwnProperty(e)}removeImage(e){this.hasImage(e)&&(this.iconData=this.iconData.filter(r=>r.id!==e),delete this.iconMap[e],this.update())}destroy(){this.removeAllListeners("imageUpdate"),this.iconData=[],this.iconMap={}}loadImage(e){return new Promise((r,n)=>{if(e instanceof HTMLImageElement){r(e);return}const a=new Image;a.crossOrigin="anonymous",a.onload=()=>{r(a)},a.onerror=()=>{n(new Error("Could not load image at "+e))},a.src=e instanceof File?URL.createObjectURL(e):e})}update(){this.updateIconMap(),this.updateIconAtlas(),this.loadingImageCount--,this.loadingImageCount===0&&this.emit("imageUpdate")}updateIconAtlas(){this.canvas.width=h5,this.canvas.height=this.canvasHeight,Object.keys(this.iconMap).forEach(e=>{const{x:r,y:n,image:a,width:l=64,height:o=64}=this.iconMap[e],m=Math.max(l,o)/vd,v=o/m,E=l/m;a&&this.ctx.drawImage(a,r+(vd-E)/2,n+(vd-v)/2,E,v)})}updateIconMap(){const{mapping:e,canvasHeight:r}=QI(this.iconData,cM,h5);this.iconMap=e,this.canvasHeight=r}loadImageMini(e,r){return new Promise((n,a)=>{const l=r.createImage();l.crossOrigin="anonymous",l.onload=()=>{n(l)},l.onerror=()=>{a(new Error("Could not load image at "+e))},l.src=e})}}class fM{constructor(){I(this,"viewport",void 0),I(this,"overridedViewProjectionMatrix",void 0),I(this,"viewMatrixInverse",void 0),I(this,"cameraPosition",void 0)}init(){}update(e){this.viewport=e,this.viewMatrixInverse=A3(),fm(this.viewMatrixInverse,e.getViewMatrix()),this.cameraPosition=[this.viewMatrixInverse[12],this.viewMatrixInverse[13],this.viewMatrixInverse[14]]}getProjectionMatrix(){return this.viewport.getProjectionMatrix()}getModelMatrix(){return this.viewport.getModelMatrix()}getViewMatrix(){return this.viewport.getViewMatrix()}getViewMatrixUncentered(){return this.viewport.getViewMatrixUncentered()}getViewProjectionMatrixUncentered(){return this.viewport.getViewProjectionMatrixUncentered()}getViewProjectionMatrix(){return this.overridedViewProjectionMatrix||this.viewport.getViewProjectionMatrix()}getZoom(){return this.viewport.getZoom()}getZoomScale(){return this.viewport.getZoomScale()}getCenter(){const[e,r]=this.viewport.getCenter();return[e,r]}getFocalDistance(){return this.viewport.getFocalDistance()}getCameraPosition(){return this.cameraPosition}projectFlat(e,r){return this.viewport.projectFlat(e,r)}setViewProjectionMatrix(e){this.overridedViewProjectionMatrix=e}}const pM={topleft:"column",topright:"column",bottomright:"column",bottomleft:"column",leftcenter:"column",rightcenter:"column",topcenter:"row",bottomcenter:"row",lefttop:"row",righttop:"row",leftbottom:"row",rightbottom:"row"};class dM{constructor(){I(this,"container",void 0),I(this,"controlCorners",void 0),I(this,"controlContainer",void 0),I(this,"scene",void 0),I(this,"mapsService",void 0),I(this,"controls",[]),I(this,"unAddControls",[])}init(e,r){this.container=e.container,this.scene=r,this.mapsService=r.mapService,this.initControlPos()}addControl(e,r){r.mapService.map?(e.addTo(this.scene),this.controls.push(e)):this.unAddControls.push(e)}getControlByName(e){return this.controls.find(r=>r.controlOption.name===e)}removeControl(e){const r=this.controls.indexOf(e);return r>-1&&this.controls.splice(r,1),e.remove(),this}addControls(){this.unAddControls.forEach(e=>{e.addTo(this.scene),this.controls.push(e)}),this.unAddControls=[]}destroy(){for(const e of this.controls)e.remove();this.controls=[],this.clearControlPos()}initControlPos(){const e=this.controlCorners={},r="l7-",n=this.controlContainer=_a("div",r+"control-container",this.container);function a(o=[]){const p=o.map(m=>r+m).join(" ");e[o.filter(m=>!["row","column"].includes(m)).join("")]=_a("div",p,n)}function l(o){return[...o.replace(/^(top|bottom|left|right|center)/,"$1-").split("-"),pM[o]]}Object.values(Ep).forEach(o=>{a(l(o))}),this.checkCornerOverlap()}clearControlPos(){for(const e in this.controlCorners)this.controlCorners[e]&&xp(this.controlCorners[e]);this.controlContainer&&xp(this.controlContainer)}checkCornerOverlap(){const e=window.MutationObserver;if(e)for(const r of Object.keys(this.controlCorners)){const n=r.match(/^(top|bottom)(left|right)$/);if(n){const[,a,l]=n,o=this.controlCorners[`${a}${l}`];new e(([{target:m}])=>{o&&(o.style[a]=m.clientHeight+"px")}).observe(this.controlCorners[`${l}${a}`],{childList:!0,attributes:!0})}}}}class mM{constructor(){I(this,"container",void 0),I(this,"scene",void 0),I(this,"mapsService",void 0),I(this,"markers",[]),I(this,"markerLayers",[]),I(this,"unAddMarkers",[]),I(this,"unAddMarkerLayers",[])}addMarkerLayer(e){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markerLayers.push(e),e.addTo(this.scene)):this.unAddMarkerLayers.push(e)}removeMarkerLayer(e){e.destroy(),this.markerLayers.indexOf(e);const r=this.markerLayers.indexOf(e);r>-1&&this.markerLayers.splice(r,1)}addMarker(e){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(e),e.addTo(this.scene)):this.unAddMarkers.push(e)}addMarkers(){this.unAddMarkers.forEach(e=>{e.addTo(this.scene),this.markers.push(e)}),this.unAddMarkers=[]}addMarkerLayers(){this.unAddMarkerLayers.forEach(e=>{this.markerLayers.push(e),e.addTo(this.scene)}),this.unAddMarkers=[]}removeMarker(e){e.remove(),this.markers.indexOf(e);const r=this.markers.indexOf(e);r>-1&&this.markers.splice(r,1)}removeAllMarkers(){this.destroy()}init(e){this.scene=e,this.mapsService=e.mapService}destroy(){this.markers.forEach(e=>{e.remove()}),this.markers=[],this.markerLayers.forEach(e=>{e.destroy()}),this.markerLayers=[]}removeMakerLayerMarker(e){e.destroy()}}class _M{constructor(){I(this,"scene",void 0),I(this,"mapsService",void 0),I(this,"popups",[]),I(this,"unAddPopups",[])}get isMarkerReady(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}removePopup(e){e!=null&&e.isOpen()&&e.remove();const r=this.popups.indexOf(e);r>-1&&this.popups.splice(r,1);const n=this.unAddPopups.indexOf(e);n>-1&&this.unAddPopups.splice(n,1)}destroy(){this.popups.forEach(e=>e.remove())}addPopup(e){e&&e.getOptions().autoClose&&[...this.popups,...this.unAddPopups].forEach(r=>{r.getOptions().autoClose&&this.removePopup(r)}),this.isMarkerReady?(e.addTo(this.scene),this.popups.push(e)):this.unAddPopups.push(e),e.on("close",()=>{this.removePopup(e)})}initPopup(){this.unAddPopups.length&&this.unAddPopups.forEach(e=>{this.addPopup(e),this.unAddPopups=[]})}init(e){this.scene=e,this.mapsService=e.mapService}}const gM={MapToken:"您正在使用 Demo 测试 Token, 生产环境务必自行注册 Token 确保服务稳定 高德地图申请地址 https://lbs.amap.com/api/javascript-api/guide/abc/prepare Mapbox地图申请地址 https://docs.mapbox.com/help/glossary/access-token/",SDK:"请确认引入了mapbox-gl api且在L7之前引入"},{merge:vM}=Ko,yM={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},xM={colors:["rgb(103,0,31)","rgb(178,24,43)","rgb(214,96,77)","rgb(244,165,130)","rgb(253,219,199)","rgb(247,247,247)","rgb(209,229,240)","rgb(146,197,222)","rgb(67,147,195)","rgb(33,102,172)","rgb(5,48,97)"],size:10,shape:"circle",scales:{},shape2d:["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],shape3d:["cylinder","triangleColumn","hexagonColumn","squareColumn"],minZoom:-1,maxZoom:24,visible:!0,autoFit:!1,pickingBuffer:0,enablePropagation:!1,zIndex:0,blend:"normal",maskLayers:[],enableMask:!0,maskOperation:t_.AND,pickedFeatureID:-1,enableMultiPassRenderer:!1,enablePicking:!0,active:!1,activeColor:"#2f54eb",enableHighlight:!1,enableSelect:!1,highlightColor:"#2f54eb",activeMix:0,selectColor:"blue",selectMix:0,enableLighting:!1,animateOption:{enable:!1,interval:.2,duration:4,trailLength:.15},forward:!0};class bM{constructor(){I(this,"sceneConfigCache",{}),I(this,"layerConfigCache",{}),I(this,"layerAttributeConfigCache",{})}getSceneConfig(e){return this.sceneConfigCache[e]}getSceneWarninfo(e){return gM[e]}setSceneConfig(e,r){this.sceneConfigCache[e]=_t(_t({},yM),r)}getLayerConfig(e){return this.layerConfigCache[e]}setLayerConfig(e,r,n){this.layerConfigCache[r]=_t({},vM({},this.sceneConfigCache[e],xM,n))}getAttributeConfig(e){return this.layerAttributeConfigCache[e]}setAttributeConfig(e,r){this.layerAttributeConfigCache[e]=_t(_t({},this.layerAttributeConfigCache[e]),r)}clean(){this.sceneConfigCache={},this.layerConfigCache={}}}const og=Math.PI/180,EM=512,f5=4003e4;function p5({latitude:t=0,zoom:e=0,scale:r,highPrecision:n=!1,flipY:a=!1}){r=r!==void 0?r:Math.pow(2,e);const l={},o=EM*r,p=Math.cos(t*og),m=o/360,v=m/p,E=o/f5/p;if(l.pixelsPerMeter=[E,-E,E],l.metersPerPixel=[1/E,-1/E,1/E],l.pixelsPerDegree=[m,-v,E],l.degreesPerPixel=[1/m,-1/v,1/E],n){const b=og*Math.tan(t*og)/p,A=m*b/2,R=o/f5*b,O=R/v*E;l.pixelsPerDegree2=[0,-A,R],l.pixelsPerMeter2=[O,0,O],a&&(l.pixelsPerDegree2[1]=-l.pixelsPerDegree2[1],l.pixelsPerMeter2[1]=-l.pixelsPerMeter2[1])}return a&&(l.pixelsPerMeter[1]=-l.pixelsPerMeter[1],l.metersPerPixel[1]=-l.metersPerPixel[1],l.pixelsPerDegree[1]=-l.pixelsPerDegree[1],l.degreesPerPixel[1]=-l.degreesPerPixel[1]),l}const TM=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0];class AM{constructor(e){I(this,"needRefresh",!0),I(this,"coordinateSystem",void 0),I(this,"viewportCenter",void 0),I(this,"viewportCenterProjection",void 0),I(this,"pixelsPerDegree",void 0),I(this,"pixelsPerDegree2",void 0),I(this,"pixelsPerMeter",void 0),this.cameraService=e}refresh(e){const r=this.cameraService.getZoom(),n=e||this.cameraService.getCenter(),{pixelsPerMeter:a,pixelsPerDegree:l}=p5({latitude:n[1],zoom:r});this.viewportCenter=n,this.viewportCenterProjection=[0,0,0,0],this.pixelsPerMeter=a,this.pixelsPerDegree=l,this.pixelsPerDegree2=[0,0,0],this.coordinateSystem===Tp.LNGLAT?this.cameraService.setViewProjectionMatrix(void 0):this.coordinateSystem===Tp.LNGLAT_OFFSET&&this.calculateLnglatOffset(n,r),this.needRefresh=!1}getCoordinateSystem(){return this.coordinateSystem}setCoordinateSystem(e){this.coordinateSystem=e}getViewportCenter(){return this.viewportCenter}getViewportCenterProjection(){return this.viewportCenterProjection}getPixelsPerDegree(){return this.pixelsPerDegree}getPixelsPerDegree2(){return this.pixelsPerDegree2}getPixelsPerMeter(){return this.pixelsPerMeter}calculateLnglatOffset(e,r,n,a){const{pixelsPerMeter:l,pixelsPerDegree:o,pixelsPerDegree2:p}=p5({latitude:e[1],zoom:r,scale:n,flipY:a,highPrecision:!0});let m=this.cameraService.getViewMatrix();const v=this.cameraService.getProjectionMatrix();let E=Y1([],v,m);const b=this.cameraService.projectFlat([Math.fround(e[0]),Math.fround(e[1])],Math.pow(2,r));this.viewportCenterProjection=W1([],[b[0],b[1],0,1],E),m=this.cameraService.getViewMatrixUncentered()||m,E=Y1([],v,m),E=Y1([],E,TM),this.cameraService.setViewProjectionMatrix(E),this.pixelsPerMeter=l,this.pixelsPerDegree=o,this.pixelsPerDegree2=p}}class SM extends Ps.EventEmitter{constructor(...e){super(...e),I(this,"renderMap",new Map),I(this,"enable",!1),I(this,"renderEnable",!1),I(this,"cacheLogs",{})}setEnable(e){this.enable=!!e}log(e,r){if(!this.enable)return;const n=e.split(".");let a=null;n.forEach((l,o)=>{a!==null?(a[l]||(a[l]={}),o!==n.length-1&&(a=a[l])):(this.cacheLogs[l]||(this.cacheLogs[l]={}),o!==n.length-1&&(a=this.cacheLogs[l])),o===n.length-1&&(a[l]=_t(_t({time:Date.now()},a[l]),r))})}getLog(e){switch(typeof e){case"string":return this.cacheLogs[e];case"object":return e.map(r=>this.cacheLogs[r]).filter(r=>r!==void 0);case"undefined":return this.cacheLogs}}removeLog(e){delete this.cacheLogs[e]}generateRenderUid(){return this.renderEnable?Qw():""}renderDebug(e){this.renderEnable=e}renderStart(e){if(!this.renderEnable||!this.enable)return;const r=this.renderMap.get(e)||{};this.renderMap.set(e,_t(_t({},r),{},{renderUid:e,renderStart:Date.now()}))}renderEnd(e){if(!this.renderEnable||!this.enable)return;const r=this.renderMap.get(e);if(r){const n=r.renderStart,a=Date.now();this.emit("renderEnd",_t(_t({},r),{},{renderEnd:a,renderDuration:a-n})),this.renderMap.delete(e)}}destroy(){this.cacheLogs=null,this.renderMap.clear()}}var M7={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22 * http://hammerjs.github.io/ * * Copyright (c) 2016 Jorik Tangelder; * Licensed under the MIT license */(function(t){(function(e,r,n,a){var l=["","webkit","Moz","MS","ms","o"],o=r.createElement("div"),p="function",m=Math.round,v=Math.abs,E=Date.now;function b($,ie,Ie){return setTimeout(Y($,Ie),ie)}function A($,ie,Ie){return Array.isArray($)?(R($,Ie[ie],Ie),!0):!1}function R($,ie,Ie){var tt;if($)if($.forEach)$.forEach(ie,Ie);else if($.length!==a)for(tt=0;tt<$.length;)ie.call(Ie,$[tt],tt,$),tt++;else for(tt in $)$.hasOwnProperty(tt)&&ie.call(Ie,$[tt],tt,$)}function O($,ie,Ie){var tt="DEPRECATED METHOD: "+ie+` `+Ie+` AT -`;return function(){var Vt=new Error("get-stack-trace"),Cr=Vt&&Vt.stack?Vt.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Fn=e.console&&(e.console.warn||e.console.log);return Fn&&Fn.call(e.console,tt,Cr),$.apply(this,arguments)}}var D;typeof Object.assign!="function"?D=function(ie){if(ie===a||ie===null)throw new TypeError("Cannot convert undefined or null to object");for(var Ie=Object(ie),tt=1;tt-1}function Ve($){return $.trim().split(/\s+/g)}function Te($,ie,Ie){if($.indexOf&&!Ie)return $.indexOf(ie);for(var tt=0;tt<$.length;){if(Ie&&$[tt][Ie]==ie||!Ie&&$[tt]===ie)return tt;tt++}return-1}function Fe($){return Array.prototype.slice.call($,0)}function He($,ie,Ie){for(var tt=[],Vt=[],Cr=0;Cr<$.length;){var Fn=ie?$[Cr][ie]:$[Cr];Te(Vt,Fn)<0&&tt.push($[Cr]),Vt[Cr]=Fn,Cr++}return Ie&&(ie?tt=tt.sort(function(Lo,_o){return Lo[ie]>_o[ie]}):tt=tt.sort()),tt}function nt($,ie){for(var Ie,tt,Vt=ie[0].toUpperCase()+ie.slice(1),Cr=0;Cr1&&!Ie.firstMultiple?Ie.firstMultiple=vs(ie):Vt===1&&(Ie.firstMultiple=!1);var Cr=Ie.firstInput,Fn=Ie.firstMultiple,Ki=Fn?Fn.center:Cr.center,Lo=ie.center=ci(tt);ie.timeStamp=E(),ie.deltaTime=ie.timeStamp-Cr.timeStamp,ie.angle=Ls(Ki,Lo),ie.distance=Oo(Ki,Lo),ts(Ie,ie),ie.offsetDirection=ga(ie.deltaX,ie.deltaY);var _o=Po(ie.deltaTime,ie.deltaX,ie.deltaY);ie.overallVelocityX=_o.x,ie.overallVelocityY=_o.y,ie.overallVelocity=v(_o.x)>v(_o.y)?_o.x:_o.y,ie.scale=Fn?ys(Fn.pointers,tt):1,ie.rotation=Fn?Wi(Fn.pointers,tt):0,ie.maxPointers=Ie.prevInput?ie.pointers.length>Ie.prevInput.maxPointers?ie.pointers.length:Ie.prevInput.maxPointers:ie.pointers.length,Mo(Ie,ie);var ns=$.element;ke(ie.srcEvent.target,ns)&&(ns=ie.srcEvent.target),ie.target=ns}function ts($,ie){var Ie=ie.center,tt=$.offsetDelta||{},Vt=$.prevDelta||{},Cr=$.prevInput||{};(ie.eventType===An||Cr.eventType===qe)&&(Vt=$.prevDelta={x:Cr.deltaX||0,y:Cr.deltaY||0},tt=$.offsetDelta={x:Ie.x,y:Ie.y}),ie.deltaX=Vt.x+(Ie.x-tt.x),ie.deltaY=Vt.y+(Ie.y-tt.y)}function Mo($,ie){var Ie=$.lastInterval||ie,tt=ie.timeStamp-Ie.timeStamp,Vt,Cr,Fn,Ki;if(ie.eventType!=Yt&&(tt>Yi||Ie.velocity===a)){var Lo=ie.deltaX-Ie.deltaX,_o=ie.deltaY-Ie.deltaY,ns=Po(tt,Lo,_o);Cr=ns.x,Fn=ns.y,Vt=v(ns.x)>v(ns.y)?ns.x:ns.y,Ki=ga(Lo,_o),$.lastInterval=ie}else Vt=Ie.velocity,Cr=Ie.velocityX,Fn=Ie.velocityY,Ki=Ie.direction;ie.velocity=Vt,ie.velocityX=Cr,ie.velocityY=Fn,ie.direction=Ki}function vs($){for(var ie=[],Ie=0;Ie<$.pointers.length;)ie[Ie]={clientX:m($.pointers[Ie].clientX),clientY:m($.pointers[Ie].clientY)},Ie++;return{timeStamp:E(),pointers:ie,center:ci(ie),deltaX:$.deltaX,deltaY:$.deltaY}}function ci($){var ie=$.length;if(ie===1)return{x:m($[0].clientX),y:m($[0].clientY)};for(var Ie=0,tt=0,Vt=0;Vt=v(ie)?$<0?St:Er:ie<0?on:yn}function Oo($,ie,Ie){Ie||(Ie=eo);var tt=ie[Ie[0]]-$[Ie[0]],Vt=ie[Ie[1]]-$[Ie[1]];return Math.sqrt(tt*tt+Vt*Vt)}function Ls($,ie,Ie){Ie||(Ie=eo);var tt=ie[Ie[0]]-$[Ie[0]],Vt=ie[Ie[1]]-$[Ie[1]];return Math.atan2(Vt,tt)*180/Math.PI}function Wi($,ie){return Ls(ie[1],ie[0],ei)+Ls($[1],$[0],ei)}function ys($,ie){return Oo(ie[0],ie[1],ei)/Oo($[0],$[1],ei)}var Ma={mousedown:An,mousemove:Ni,mouseup:qe},il="mousedown",du="mousemove mouseup";function ol(){this.evEl=il,this.evWin=du,this.pressed=!1,ni.apply(this,arguments)}G(ol,ni,{handler:function(ie){var Ie=Ma[ie.type];Ie&An&&ie.button===0&&(this.pressed=!0),Ie&Ni&&ie.which!==1&&(Ie=qe),this.pressed&&(Ie&qe&&(this.pressed=!1),this.callback(this.manager,Ie,{pointers:[ie],changedPointers:[ie],pointerType:Rn,srcEvent:ie}))}});var Vu={pointerdown:An,pointermove:Ni,pointerup:qe,pointercancel:Yt,pointerout:Yt},al={2:Jr,3:vn,4:Rn,5:nn},ja="pointerdown",Xa="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(ja="MSPointerDown",Xa="MSPointerMove MSPointerUp MSPointerCancel");function Ds(){this.evEl=ja,this.evWin=Xa,ni.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}G(Ds,ni,{handler:function(ie){var Ie=this.store,tt=!1,Vt=ie.type.toLowerCase().replace("ms",""),Cr=Vu[Vt],Fn=al[ie.pointerType]||ie.pointerType,Ki=Fn==Jr,Lo=Te(Ie,ie.pointerId,"pointerId");Cr&An&&(ie.button===0||Ki)?Lo<0&&(Ie.push(ie),Lo=Ie.length-1):Cr&(qe|Yt)&&(tt=!0),!(Lo<0)&&(Ie[Lo]=ie,this.callback(this.manager,Cr,{pointers:Ie,changedPointers:[ie],pointerType:Fn,srcEvent:ie}),tt&&Ie.splice(Lo,1))}});var mu={touchstart:An,touchmove:Ni,touchend:qe,touchcancel:Yt},Xn="touchstart",z="touchstart touchmove touchend touchcancel";function j(){this.evTarget=Xn,this.evWin=z,this.started=!1,ni.apply(this,arguments)}G(j,ni,{handler:function(ie){var Ie=mu[ie.type];if(Ie===An&&(this.started=!0),!!this.started){var tt=Z.call(this,ie,Ie);Ie&(qe|Yt)&&tt[0].length-tt[1].length===0&&(this.started=!1),this.callback(this.manager,Ie,{pointers:tt[0],changedPointers:tt[1],pointerType:Jr,srcEvent:ie})}}});function Z($,ie){var Ie=Fe($.touches),tt=Fe($.changedTouches);return ie&(qe|Yt)&&(Ie=He(Ie.concat(tt),"identifier",!0)),[Ie,tt]}var oe={touchstart:An,touchmove:Ni,touchend:qe,touchcancel:Yt},de="touchstart touchmove touchend touchcancel";function Oe(){this.evTarget=de,this.targetIds={},ni.apply(this,arguments)}G(Oe,ni,{handler:function(ie){var Ie=oe[ie.type],tt=Ne.call(this,ie,Ie);tt&&this.callback(this.manager,Ie,{pointers:tt[0],changedPointers:tt[1],pointerType:Jr,srcEvent:ie})}});function Ne($,ie){var Ie=Fe($.touches),tt=this.targetIds;if(ie&(An|Ni)&&Ie.length===1)return tt[Ie[0].identifier]=!0,[Ie,Ie];var Vt,Cr,Fn=Fe($.changedTouches),Ki=[],Lo=this.target;if(Cr=Ie.filter(function(_o){return ke(_o.target,Lo)}),ie===An)for(Vt=0;Vt-1&&tt.splice(Cr,1)};setTimeout(Vt,te)}}function ht($){for(var ie=$.srcEvent.clientX,Ie=$.srcEvent.clientY,tt=0;tt-1&&this.requireFail.splice(ie,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function($){return!!this.simultaneous[$.id]},emit:function($){var ie=this,Ie=this.state;function tt(Vt){ie.manager.emit(Vt,$)}Ie=In&&tt(ie.options.event+jo(Ie))},tryEmit:function($){if(this.canEmit())return this.emit($);this.state=ln},canEmit:function(){for(var $=0;$ie.threshold&&Vt&ie.direction},attrTest:function($){return Ei.prototype.attrTest.call(this,$)&&(this.state&sn||!(this.state&sn)&&this.directionTest($))},emit:function($){this.pX=$.deltaX,this.pY=$.deltaY;var ie=Rl($.direction);ie&&($.additionalEvent=this.options.event+ie),this._super.emit.call(this,$)}});function rs(){Ei.apply(this,arguments)}G(rs,Ei,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Gt]},attrTest:function($){return this._super.attrTest.call(this,$)&&(Math.abs($.scale-1)>this.options.threshold||this.state&sn)},emit:function($){if($.scale!==1){var ie=$.scale<1?"in":"out";$.additionalEvent=this.options.event+ie}this._super.emit.call(this,$)}});function vi(){bn.apply(this,arguments),this._timer=null,this._input=null}G(vi,bn,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[pt]},process:function($){var ie=this.options,Ie=$.pointers.length===ie.pointers,tt=$.distanceie.time;if(this._input=$,!tt||!Ie||$.eventType&(qe|Yt)&&!Vt)this.reset();else if($.eventType&An)this.reset(),this._timer=b(function(){this.state=ri,this.tryEmit()},ie.time,this);else if($.eventType&qe)return ri;return ln},reset:function(){clearTimeout(this._timer)},emit:function($){this.state===ri&&($&&$.eventType&qe?this.manager.emit(this.options.event+"up",$):(this._input.timeStamp=E(),this.manager.emit(this.options.event,this._input)))}});function sl(){Ei.apply(this,arguments)}G(sl,Ei,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Gt]},attrTest:function($){return this._super.attrTest.call(this,$)&&(Math.abs($.rotation)>this.options.threshold||this.state&sn)}});function mo(){Ei.apply(this,arguments)}G(mo,Ei,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:tn|Kr,pointers:1},getTouchAction:function(){return Il.prototype.getTouchAction.call(this)},attrTest:function($){var ie=this.options.direction,Ie;return ie&(tn|Kr)?Ie=$.overallVelocity:ie&tn?Ie=$.overallVelocityX:ie&Kr&&(Ie=$.overallVelocityY),this._super.attrTest.call(this,$)&&ie&$.offsetDirection&&$.distance>this.options.threshold&&$.maxPointers==this.options.pointers&&v(Ie)>this.options.velocity&&$.eventType&qe},emit:function($){var ie=Rl($.offsetDirection);ie&&this.manager.emit(this.options.event+ie,$),this.manager.emit(this.options.event,$)}});function yi(){bn.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}G(yi,bn,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[or]},process:function($){var ie=this.options,Ie=$.pointers.length===ie.pointers,tt=$.distance{const n=this.interactionEvent(r);n.type=MM[n.type],n.type==="dragging"?this.indragging=!0:this.indragging=!1,this.emit(Js.Drag,n)}),I(this,"onHammer",r=>{r.srcEvent.stopPropagation();const n=this.interactionEvent(r);this.emit(Js.Hover,n)}),I(this,"onTouch",r=>{const n=r.touches[0];this.onHover({clientX:n.clientX,clientY:n.clientY,type:"touchstart"})}),I(this,"onTouchEnd",r=>{if(r.changedTouches.length>0){const n=r.changedTouches[0];this.onHover({clientX:n.clientX,clientY:n.clientY,type:"touchend"})}}),I(this,"onTouchMove",r=>{const n=r.changedTouches[0];this.onHover({clientX:n.clientX,clientY:n.clientY,type:"touchmove"})}),I(this,"onHover",r=>{const{clientX:n,clientY:a}=r;let l=n,o=a;const p=r.type,m=this.mapService.getMapContainer();if(m){const{top:E,left:b}=m.getBoundingClientRect();l=l-b-m.clientLeft,o=o-E-m.clientTop}const v=this.mapService.containerToLngLat([l,o]);if(p==="click"){this.isDoubleTap(l,o,v);return}if(p==="touch"){this.isDoubleTap(l,o,v);return}p!=="click"&&p!=="dblclick"&&this.emit(Js.Hover,{x:l,y:o,lngLat:v,type:p,target:r})}),this.container=e}init(){this.addEventListenerOnMap(),this.$containter=this.mapService.getMapContainer()}destroy(){this.hammertime&&this.hammertime.destroy(),this.removeEventListenerOnMap(),this.off(Js.Hover)}triggerHover({x:e,y:r}){this.emit(Js.Hover,{x:e,y:r})}triggerSelect(e){this.emit(Js.Select,{featureId:e})}triggerActive(e){this.emit(Js.Active,{featureId:e})}addEventListenerOnMap(){const e=this.mapService.getMapContainer();if(e){const r=new yd.Manager(e);r.add(new yd.Tap({event:"dblclick",taps:2})),r.add(new yd.Tap({event:"click"})),r.add(new yd.Pan({threshold:0,pointers:0})),r.add(new yd.Press({})),r.on("dblclick click",this.onHammer),r.on("panstart panmove panend pancancel",this.onDrag),e.addEventListener("touchstart",this.onTouch),e.addEventListener("touchend",this.onTouchEnd),e.addEventListener("mousemove",this.onHover),e.addEventListener("touchmove",this.onTouchMove),e.addEventListener("mousedown",this.onHover,!0),e.addEventListener("mouseup",this.onHover),e.addEventListener("contextmenu",this.onHover),this.hammertime=r}}removeEventListenerOnMap(){const e=this.mapService.getMapContainer();e&&(e.removeEventListener("mousemove",this.onHover),this.hammertime.off("dblclick click",this.onHammer),this.hammertime.off("panstart panmove panend pancancel",this.onDrag),e.removeEventListener("touchstart",this.onTouch),e.removeEventListener("touchend",this.onTouchEnd),e.removeEventListener("mousedown",this.onHover),e.removeEventListener("mouseup",this.onHover),e.removeEventListener("contextmenu",this.onHover))}interactionEvent(e){const{type:r,pointerType:n}=e;let a,l;n==="touch"?(l=Math.floor(e.pointers[0].clientY),a=Math.floor(e.pointers[0].clientX)):(l=Math.floor(e.srcEvent.y),a=Math.floor(e.srcEvent.x));const o=this.mapService.getMapContainer();if(o){const{top:m,left:v}=o.getBoundingClientRect();a-=v,l-=m}const p=this.mapService.containerToLngLat([a,l]);return{x:a,y:l,lngLat:p,type:r,target:e.srcEvent}}isDoubleTap(e,r,n){const a=new Date().getTime();let l="click";a-this.lastClickTime<400&&Math.abs(this.lastClickXY[0]-e)<10&&Math.abs(this.lastClickXY[1]-r)<10?(this.lastClickTime=0,this.lastClickXY=[-1,-1],this.clickTimer&&clearTimeout(this.clickTimer),l="dblclick",this.emit(Js.Hover,{x:e,y:r,lngLat:n,type:l})):(this.lastClickTime=a,this.lastClickXY=[e,r],this.clickTimer=setTimeout(()=>{l="click",this.emit(Js.Hover,{x:e,y:r,lngLat:n,type:l})},400))}}let OM=0;function LM(t){let e=t;if(typeof t=="string"&&(e=document.getElementById(t)),e){const r=document.createElement("div");return r.style.cssText+=` +`;return function(){var Vt=new Error("get-stack-trace"),Cr=Vt&&Vt.stack?Vt.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Fn=e.console&&(e.console.warn||e.console.log);return Fn&&Fn.call(e.console,tt,Cr),$.apply(this,arguments)}}var D;typeof Object.assign!="function"?D=function(ie){if(ie===a||ie===null)throw new TypeError("Cannot convert undefined or null to object");for(var Ie=Object(ie),tt=1;tt-1}function Ve($){return $.trim().split(/\s+/g)}function Te($,ie,Ie){if($.indexOf&&!Ie)return $.indexOf(ie);for(var tt=0;tt<$.length;){if(Ie&&$[tt][Ie]==ie||!Ie&&$[tt]===ie)return tt;tt++}return-1}function Fe($){return Array.prototype.slice.call($,0)}function He($,ie,Ie){for(var tt=[],Vt=[],Cr=0;Cr<$.length;){var Fn=ie?$[Cr][ie]:$[Cr];Te(Vt,Fn)<0&&tt.push($[Cr]),Vt[Cr]=Fn,Cr++}return Ie&&(ie?tt=tt.sort(function(Lo,_o){return Lo[ie]>_o[ie]}):tt=tt.sort()),tt}function nt($,ie){for(var Ie,tt,Vt=ie[0].toUpperCase()+ie.slice(1),Cr=0;Cr1&&!Ie.firstMultiple?Ie.firstMultiple=vs(ie):Vt===1&&(Ie.firstMultiple=!1);var Cr=Ie.firstInput,Fn=Ie.firstMultiple,Ki=Fn?Fn.center:Cr.center,Lo=ie.center=ci(tt);ie.timeStamp=E(),ie.deltaTime=ie.timeStamp-Cr.timeStamp,ie.angle=Ls(Ki,Lo),ie.distance=Oo(Ki,Lo),ts(Ie,ie),ie.offsetDirection=ga(ie.deltaX,ie.deltaY);var _o=Po(ie.deltaTime,ie.deltaX,ie.deltaY);ie.overallVelocityX=_o.x,ie.overallVelocityY=_o.y,ie.overallVelocity=v(_o.x)>v(_o.y)?_o.x:_o.y,ie.scale=Fn?ys(Fn.pointers,tt):1,ie.rotation=Fn?Wi(Fn.pointers,tt):0,ie.maxPointers=Ie.prevInput?ie.pointers.length>Ie.prevInput.maxPointers?ie.pointers.length:Ie.prevInput.maxPointers:ie.pointers.length,Mo(Ie,ie);var ns=$.element;ke(ie.srcEvent.target,ns)&&(ns=ie.srcEvent.target),ie.target=ns}function ts($,ie){var Ie=ie.center,tt=$.offsetDelta||{},Vt=$.prevDelta||{},Cr=$.prevInput||{};(ie.eventType===An||Cr.eventType===qe)&&(Vt=$.prevDelta={x:Cr.deltaX||0,y:Cr.deltaY||0},tt=$.offsetDelta={x:Ie.x,y:Ie.y}),ie.deltaX=Vt.x+(Ie.x-tt.x),ie.deltaY=Vt.y+(Ie.y-tt.y)}function Mo($,ie){var Ie=$.lastInterval||ie,tt=ie.timeStamp-Ie.timeStamp,Vt,Cr,Fn,Ki;if(ie.eventType!=Yt&&(tt>Yi||Ie.velocity===a)){var Lo=ie.deltaX-Ie.deltaX,_o=ie.deltaY-Ie.deltaY,ns=Po(tt,Lo,_o);Cr=ns.x,Fn=ns.y,Vt=v(ns.x)>v(ns.y)?ns.x:ns.y,Ki=ga(Lo,_o),$.lastInterval=ie}else Vt=Ie.velocity,Cr=Ie.velocityX,Fn=Ie.velocityY,Ki=Ie.direction;ie.velocity=Vt,ie.velocityX=Cr,ie.velocityY=Fn,ie.direction=Ki}function vs($){for(var ie=[],Ie=0;Ie<$.pointers.length;)ie[Ie]={clientX:m($.pointers[Ie].clientX),clientY:m($.pointers[Ie].clientY)},Ie++;return{timeStamp:E(),pointers:ie,center:ci(ie),deltaX:$.deltaX,deltaY:$.deltaY}}function ci($){var ie=$.length;if(ie===1)return{x:m($[0].clientX),y:m($[0].clientY)};for(var Ie=0,tt=0,Vt=0;Vt=v(ie)?$<0?St:Er:ie<0?on:yn}function Oo($,ie,Ie){Ie||(Ie=eo);var tt=ie[Ie[0]]-$[Ie[0]],Vt=ie[Ie[1]]-$[Ie[1]];return Math.sqrt(tt*tt+Vt*Vt)}function Ls($,ie,Ie){Ie||(Ie=eo);var tt=ie[Ie[0]]-$[Ie[0]],Vt=ie[Ie[1]]-$[Ie[1]];return Math.atan2(Vt,tt)*180/Math.PI}function Wi($,ie){return Ls(ie[1],ie[0],ei)+Ls($[1],$[0],ei)}function ys($,ie){return Oo(ie[0],ie[1],ei)/Oo($[0],$[1],ei)}var Ma={mousedown:An,mousemove:Ni,mouseup:qe},il="mousedown",du="mousemove mouseup";function ol(){this.evEl=il,this.evWin=du,this.pressed=!1,ni.apply(this,arguments)}G(ol,ni,{handler:function(ie){var Ie=Ma[ie.type];Ie&An&&ie.button===0&&(this.pressed=!0),Ie&Ni&&ie.which!==1&&(Ie=qe),this.pressed&&(Ie&qe&&(this.pressed=!1),this.callback(this.manager,Ie,{pointers:[ie],changedPointers:[ie],pointerType:Rn,srcEvent:ie}))}});var Vu={pointerdown:An,pointermove:Ni,pointerup:qe,pointercancel:Yt,pointerout:Yt},al={2:Jr,3:vn,4:Rn,5:nn},ja="pointerdown",Xa="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(ja="MSPointerDown",Xa="MSPointerMove MSPointerUp MSPointerCancel");function Ds(){this.evEl=ja,this.evWin=Xa,ni.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}G(Ds,ni,{handler:function(ie){var Ie=this.store,tt=!1,Vt=ie.type.toLowerCase().replace("ms",""),Cr=Vu[Vt],Fn=al[ie.pointerType]||ie.pointerType,Ki=Fn==Jr,Lo=Te(Ie,ie.pointerId,"pointerId");Cr&An&&(ie.button===0||Ki)?Lo<0&&(Ie.push(ie),Lo=Ie.length-1):Cr&(qe|Yt)&&(tt=!0),!(Lo<0)&&(Ie[Lo]=ie,this.callback(this.manager,Cr,{pointers:Ie,changedPointers:[ie],pointerType:Fn,srcEvent:ie}),tt&&Ie.splice(Lo,1))}});var mu={touchstart:An,touchmove:Ni,touchend:qe,touchcancel:Yt},Xn="touchstart",z="touchstart touchmove touchend touchcancel";function j(){this.evTarget=Xn,this.evWin=z,this.started=!1,ni.apply(this,arguments)}G(j,ni,{handler:function(ie){var Ie=mu[ie.type];if(Ie===An&&(this.started=!0),!!this.started){var tt=Z.call(this,ie,Ie);Ie&(qe|Yt)&&tt[0].length-tt[1].length===0&&(this.started=!1),this.callback(this.manager,Ie,{pointers:tt[0],changedPointers:tt[1],pointerType:Jr,srcEvent:ie})}}});function Z($,ie){var Ie=Fe($.touches),tt=Fe($.changedTouches);return ie&(qe|Yt)&&(Ie=He(Ie.concat(tt),"identifier",!0)),[Ie,tt]}var oe={touchstart:An,touchmove:Ni,touchend:qe,touchcancel:Yt},de="touchstart touchmove touchend touchcancel";function Oe(){this.evTarget=de,this.targetIds={},ni.apply(this,arguments)}G(Oe,ni,{handler:function(ie){var Ie=oe[ie.type],tt=Ne.call(this,ie,Ie);tt&&this.callback(this.manager,Ie,{pointers:tt[0],changedPointers:tt[1],pointerType:Jr,srcEvent:ie})}});function Ne($,ie){var Ie=Fe($.touches),tt=this.targetIds;if(ie&(An|Ni)&&Ie.length===1)return tt[Ie[0].identifier]=!0,[Ie,Ie];var Vt,Cr,Fn=Fe($.changedTouches),Ki=[],Lo=this.target;if(Cr=Ie.filter(function(_o){return ke(_o.target,Lo)}),ie===An)for(Vt=0;Vt-1&&tt.splice(Cr,1)};setTimeout(Vt,te)}}function ht($){for(var ie=$.srcEvent.clientX,Ie=$.srcEvent.clientY,tt=0;tt-1&&this.requireFail.splice(ie,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function($){return!!this.simultaneous[$.id]},emit:function($){var ie=this,Ie=this.state;function tt(Vt){ie.manager.emit(Vt,$)}Ie=In&&tt(ie.options.event+jo(Ie))},tryEmit:function($){if(this.canEmit())return this.emit($);this.state=ln},canEmit:function(){for(var $=0;$ie.threshold&&Vt&ie.direction},attrTest:function($){return Ei.prototype.attrTest.call(this,$)&&(this.state&sn||!(this.state&sn)&&this.directionTest($))},emit:function($){this.pX=$.deltaX,this.pY=$.deltaY;var ie=Rl($.direction);ie&&($.additionalEvent=this.options.event+ie),this._super.emit.call(this,$)}});function rs(){Ei.apply(this,arguments)}G(rs,Ei,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Gt]},attrTest:function($){return this._super.attrTest.call(this,$)&&(Math.abs($.scale-1)>this.options.threshold||this.state&sn)},emit:function($){if($.scale!==1){var ie=$.scale<1?"in":"out";$.additionalEvent=this.options.event+ie}this._super.emit.call(this,$)}});function vi(){bn.apply(this,arguments),this._timer=null,this._input=null}G(vi,bn,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[pt]},process:function($){var ie=this.options,Ie=$.pointers.length===ie.pointers,tt=$.distanceie.time;if(this._input=$,!tt||!Ie||$.eventType&(qe|Yt)&&!Vt)this.reset();else if($.eventType&An)this.reset(),this._timer=b(function(){this.state=ri,this.tryEmit()},ie.time,this);else if($.eventType&qe)return ri;return ln},reset:function(){clearTimeout(this._timer)},emit:function($){this.state===ri&&($&&$.eventType&qe?this.manager.emit(this.options.event+"up",$):(this._input.timeStamp=E(),this.manager.emit(this.options.event,this._input)))}});function sl(){Ei.apply(this,arguments)}G(sl,Ei,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Gt]},attrTest:function($){return this._super.attrTest.call(this,$)&&(Math.abs($.rotation)>this.options.threshold||this.state&sn)}});function mo(){Ei.apply(this,arguments)}G(mo,Ei,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:tn|Kr,pointers:1},getTouchAction:function(){return Il.prototype.getTouchAction.call(this)},attrTest:function($){var ie=this.options.direction,Ie;return ie&(tn|Kr)?Ie=$.overallVelocity:ie&tn?Ie=$.overallVelocityX:ie&Kr&&(Ie=$.overallVelocityY),this._super.attrTest.call(this,$)&&ie&$.offsetDirection&&$.distance>this.options.threshold&&$.maxPointers==this.options.pointers&&v(Ie)>this.options.velocity&&$.eventType&qe},emit:function($){var ie=Rl($.offsetDirection);ie&&this.manager.emit(this.options.event+ie,$),this.manager.emit(this.options.event,$)}});function yi(){bn.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}G(yi,bn,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[or]},process:function($){var ie=this.options,Ie=$.pointers.length===ie.pointers,tt=$.distance{const n=this.interactionEvent(r);n.type=CM[n.type],n.type==="dragging"?this.indragging=!0:this.indragging=!1,this.emit(Js.Drag,n)}),I(this,"onHammer",r=>{r.srcEvent.stopPropagation();const n=this.interactionEvent(r);this.emit(Js.Hover,n)}),I(this,"onTouch",r=>{const n=r.touches[0];this.onHover({clientX:n.clientX,clientY:n.clientY,type:"touchstart"})}),I(this,"onTouchEnd",r=>{if(r.changedTouches.length>0){const n=r.changedTouches[0];this.onHover({clientX:n.clientX,clientY:n.clientY,type:"touchend"})}}),I(this,"onTouchMove",r=>{const n=r.changedTouches[0];this.onHover({clientX:n.clientX,clientY:n.clientY,type:"touchmove"})}),I(this,"onHover",r=>{const{clientX:n,clientY:a}=r;let l=n,o=a;const p=r.type,m=this.mapService.getMapContainer();if(m){const{top:E,left:b}=m.getBoundingClientRect();l=l-b-m.clientLeft,o=o-E-m.clientTop}const v=this.mapService.containerToLngLat([l,o]);if(p==="click"){this.isDoubleTap(l,o,v);return}if(p==="touch"){this.isDoubleTap(l,o,v);return}p!=="click"&&p!=="dblclick"&&this.emit(Js.Hover,{x:l,y:o,lngLat:v,type:p,target:r})}),this.container=e}init(){this.addEventListenerOnMap(),this.$containter=this.mapService.getMapContainer()}destroy(){this.hammertime&&this.hammertime.destroy(),this.removeEventListenerOnMap(),this.off(Js.Hover)}triggerHover({x:e,y:r}){this.emit(Js.Hover,{x:e,y:r})}triggerSelect(e){this.emit(Js.Select,{featureId:e})}triggerActive(e){this.emit(Js.Active,{featureId:e})}addEventListenerOnMap(){const e=this.mapService.getMapContainer();if(e){const r=new yd.Manager(e);r.add(new yd.Tap({event:"dblclick",taps:2})),r.add(new yd.Tap({event:"click"})),r.add(new yd.Pan({threshold:0,pointers:0})),r.add(new yd.Press({})),r.on("dblclick click",this.onHammer),r.on("panstart panmove panend pancancel",this.onDrag),e.addEventListener("touchstart",this.onTouch),e.addEventListener("touchend",this.onTouchEnd),e.addEventListener("mousemove",this.onHover),e.addEventListener("touchmove",this.onTouchMove),e.addEventListener("mousedown",this.onHover,!0),e.addEventListener("mouseup",this.onHover),e.addEventListener("contextmenu",this.onHover),this.hammertime=r}}removeEventListenerOnMap(){const e=this.mapService.getMapContainer();e&&(e.removeEventListener("mousemove",this.onHover),this.hammertime.off("dblclick click",this.onHammer),this.hammertime.off("panstart panmove panend pancancel",this.onDrag),e.removeEventListener("touchstart",this.onTouch),e.removeEventListener("touchend",this.onTouchEnd),e.removeEventListener("mousedown",this.onHover),e.removeEventListener("mouseup",this.onHover),e.removeEventListener("contextmenu",this.onHover))}interactionEvent(e){const{type:r,pointerType:n}=e;let a,l;n==="touch"?(l=Math.floor(e.pointers[0].clientY),a=Math.floor(e.pointers[0].clientX)):(l=Math.floor(e.srcEvent.y),a=Math.floor(e.srcEvent.x));const o=this.mapService.getMapContainer();if(o){const{top:m,left:v}=o.getBoundingClientRect();a-=v,l-=m}const p=this.mapService.containerToLngLat([a,l]);return{x:a,y:l,lngLat:p,type:r,target:e.srcEvent}}isDoubleTap(e,r,n){const a=new Date().getTime();let l="click";a-this.lastClickTime<400&&Math.abs(this.lastClickXY[0]-e)<10&&Math.abs(this.lastClickXY[1]-r)<10?(this.lastClickTime=0,this.lastClickXY=[-1,-1],this.clickTimer&&clearTimeout(this.clickTimer),l="dblclick",this.emit(Js.Hover,{x:e,y:r,lngLat:n,type:l})):(this.lastClickTime=a,this.lastClickXY=[e,r],this.clickTimer=setTimeout(()=>{l="click",this.emit(Js.Hover,{x:e,y:r,lngLat:n,type:l})},400))}}let IM=0;function MM(t){let e=t;if(typeof t=="string"&&(e=document.getElementById(t)),e){const r=document.createElement("div");return r.style.cssText+=` position: absolute; z-index:2; height: 100%; width: 100%; pointer-events: none; - `,r.id=`l7-scene-${OM++}`,r.classList.add("l7-scene"),e.appendChild(r),r}return null}function DM(t){var e;let r=!0;if((t==null||(e=t.target)===null||e===void 0?void 0:e.target)instanceof HTMLElement){var n;let l=t==null||(n=t.target)===null||n===void 0?void 0:n.target;for(;l;){var a;const o=Array.from(l.classList);if(o.includes("l7-marker")||o.includes("l7-popup")){r=!1;break}l=(a=l)===null||a===void 0?void 0:a.parentElement}}return r}let u3=function(t){return t[t.SAMPLED=0]="SAMPLED",t[t.RENDER_TARGET=1]="RENDER_TARGET",t}({});class BM{constructor(e){var r=this;I(this,"pickedColors",void 0),I(this,"pickedTileLayers",[]),I(this,"pickingFBO",void 0),I(this,"width",0),I(this,"height",0),I(this,"alreadyInPicking",!1),I(this,"pickBufferScale",1),I(this,"pickFromPickingFBO",function(){var n=bt(function*(a,{x:l,y:o,lngLat:p,type:m,target:v}){var E;let b=!1;const{readPixels:A,readPixelsAsync:R,getViewportSize:O,queryVerdorInfo:D}=r.rendererService,{width:N,height:W}=O(),{enableHighlight:G,enableSelect:Y}=a.getLayerConfig(),Q=l*Qs,J=o*Qs;if(Q>N-1*Qs||Q<0||J>W-1*Qs||J<0)return!1;let Se;if(D()==="WebGPU"?Se=yield R({x:Math.floor(Q/r.pickBufferScale),y:Math.floor((W-(o+1)*Qs)/r.pickBufferScale),width:1,height:1,data:new Uint8Array(4),framebuffer:r.pickingFBO}):Se=A({x:Math.floor(Q/r.pickBufferScale),y:Math.floor((W-(o+1)*Qs)/r.pickBufferScale),width:1,height:1,data:new Uint8Array(4),framebuffer:r.pickingFBO}),r.pickedColors=Se,Se[0]!==0||Se[1]!==0||Se[2]!==0){const ke=Zh(Se),ct=a.layerPickService.getFeatureById(ke);ke!==a.getCurrentPickId()&&m==="mousemove"&&(m="mouseenter");const Ve={x:l,y:o,type:m,lngLat:p,featureId:ke,feature:ct,target:v};ct&&(b=!0,a.setCurrentPickId(ke),r.triggerHoverOnLayer(a,Ve))}else{const ke={x:l,y:o,lngLat:p,type:a.getCurrentPickId()!==null&&m==="mousemove"?"mouseout":"un"+m,featureId:null,target:v,feature:null};r.triggerHoverOnLayer(a,_t(_t({},ke),{},{type:"unpick"})),r.triggerHoverOnLayer(a,ke),a.setCurrentPickId(null)}if(G&&a.layerPickService.highlightPickedFeature(Se),Y&&m==="click"&&((E=Se)===null||E===void 0?void 0:E.toString())!==[0,0,0,0].toString()){const ke=Zh(Se);a.getCurrentSelectedId()===null||ke!==a.getCurrentSelectedId()?(a.layerPickService.selectFeature(Se),a.setCurrentSelectedId(ke)):(a.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),a.setCurrentSelectedId(null))}return b});return function(a,l){return n.apply(this,arguments)}}()),this.container=e}get mapService(){return this.container.mapService}get rendererService(){return this.container.rendererService}get configService(){return this.container.globalConfigService}get interactionService(){return this.container.interactionService}get layerService(){return this.container.layerService}init(e){const{createTexture2D:r,createFramebuffer:n,getViewportSize:a}=this.rendererService;let{width:l,height:o}=a();this.pickBufferScale=this.configService.getSceneConfig(e).pickBufferScale||1,l=Math.round(l/this.pickBufferScale),o=Math.round(o/this.pickBufferScale);const p=r({width:l,height:o,usage:u3.RENDER_TARGET,label:"Picking Texture"});this.pickingFBO=n({color:p,depth:!0,width:l,height:o}),this.interactionService.on(Js.Hover,this.pickingAllLayer.bind(this))}boxPickLayer(e,r,n){var a=this;return bt(function*(){const{useFramebufferAsync:l,clear:o}=a.rendererService;a.resizePickingFBO(),e.hooks.beforePickingEncode.call(),yield l(a.pickingFBO,bt(function*(){o({framebuffer:a.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),e.renderModels({ispick:!0})})),e.hooks.afterPickingEncode.call();const p=yield a.pickBox(e,r);n(p)})()}pickBox(e,r){var n=this;return bt(function*(){const[a,l,o,p]=r.map(W=>{const G=W<0?0:W;return Math.floor(G*Qs/n.pickBufferScale)}),{readPixelsAsync:m,getViewportSize:v}=n.rendererService,{width:E,height:b}=v();if(a>(E-1)*Qs/n.pickBufferScale||o<0||l>(b-1)*Qs/n.pickBufferScale||p<0)return[];const A=Math.min(E/n.pickBufferScale,o)-a,R=Math.min(b/n.pickBufferScale,p)-l,O=yield m({x:a,y:Math.floor(b/n.pickBufferScale-(p+1)),width:A,height:R,data:new Uint8Array(A*R*4),framebuffer:n.pickingFBO}),D=[],N={};for(let W=0;Wp.needPick(e.type)).reverse()){yield a(r.pickingFBO,bt(function*(){n({framebuffer:r.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),o.layerPickService.pickRender(e)}));const p=yield r.pickFromPickingFBO(o,e);if(r.layerService.pickedLayerId=p?+o.id:-1,p&&!o.getLayerConfig().enablePropagation)break}})()}triggerHoverOnLayer(e,r){DM(r)&&(this.handleCursor(e,r.type),e.emit(r.type,r))}}class FM{constructor(e=!0){I(this,"autoStart",void 0),I(this,"startTime",0),I(this,"oldTime",0),I(this,"running",!1),I(this,"elapsedTime",0),this.autoStart=e}start(){this.startTime=(typeof performance>"u"?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const r=(typeof performance>"u"?Date:performance).now();e=(r-this.oldTime)/1e3,this.oldTime=r,this.elapsedTime+=e}return e}}const{throttle:d5}=Ko;class NM extends Ps.EventEmitter{get renderService(){return this.container.rendererService}get mapService(){return this.container.mapService}get debugService(){return this.container.debugService}constructor(e){super(),I(this,"pickedLayerId",-1),I(this,"clock",new FM),I(this,"alreadyInRendering",!1),I(this,"layers",[]),I(this,"layerList",[]),I(this,"layerRenderID",void 0),I(this,"sceneInited",!1),I(this,"animateInstanceCount",0),I(this,"shaderPicking",!0),I(this,"enableRender",!0),I(this,"reRender",d5(()=>{this.renderLayers()},32)),I(this,"throttleRenderLayers",d5(()=>{this.renderLayers()},16)),this.container=e}needPick(e){return this.updateLayerRenderList(),this.layerList.some(r=>r.needPick(e))}add(e){this.layers.push(e),this.sceneInited&&e.init().then(()=>{this.renderLayers()})}addMask(e){this.sceneInited&&e.init().then(()=>{this.renderLayers()})}initLayers(){var e=this;return bt(function*(){e.sceneInited=!0,e.layers.forEach(function(){var r=bt(function*(n){n.startInit||(yield n.init(),e.updateLayerRenderList())});return function(n){return r.apply(this,arguments)}}())})()}getSceneInited(){return this.sceneInited}getRenderList(){return this.layerList}getLayers(){return this.layers}getLayer(e){return this.layers.find(r=>r.id===e)}getLayerByName(e){return this.layers.find(r=>r.name===e)}remove(e,r){var n=this;return bt(function*(){r?r.layerChildren=r.layerChildren.filter(a=>a!==e):n.layers=n.layers.filter(a=>a!==e),e.destroy(),n.reRender(),n.emit("layerChange",n.layers)})()}removeAllLayers(){var e=this;return bt(function*(){e.destroy(),e.reRender()})()}setEnableRender(e){this.enableRender=e}renderLayers(){var e=this;return bt(function*(){if(e.alreadyInRendering||!e.enableRender)return;e.updateLayerRenderList();const r=e.debugService.generateRenderUid();e.debugService.renderStart(r),e.alreadyInRendering=!0,e.clear();for(const n of e.layerList)n.prerender();e.renderService.beginFrame();for(const n of e.layerList){const{enableMask:a}=n.getLayerConfig();n.masks.filter(l=>l.inited).length>0&&a&&e.renderMask(n.masks),n.getLayerConfig().enableMultiPassRenderer?yield n.renderMultiPass():n.render()}e.renderService.endFrame(),e.debugService.renderEnd(r),e.alreadyInRendering=!1})()}renderMask(e){let r=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});const n=e.length>1?Wh.MULTIPLE:Wh.SINGLE;for(const a of e)a.render({isStencil:!0,stencilType:n,stencilIndex:r++})}beforeRenderData(e){var r=this;return bt(function*(){(yield e.hooks.beforeRenderData.promise())&&r.renderLayers()})()}renderTileLayerMask(e){let r=0;const{enableMask:n=!0}=e.getLayerConfig();let a=e.tileMask?1:0;const l=e.masks.filter(p=>p.inited);a=a+(n?l.length:1);const o=a>1?Wh.MULTIPLE:Wh.SINGLE;if((e.tileMask||l.length&&n)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),l.length&&n)for(const p of l)p.render({isStencil:!0,stencilType:o,stencilIndex:r++});e.tileMask&&e.tileMask.render({isStencil:!0,stencilType:o,stencilIndex:r++,stencilOperation:t_.OR})}renderTileLayer(e){var r=this;return bt(function*(){r.renderTileLayerMask(e),e.getLayerConfig().enableMultiPassRenderer?yield e.renderMultiPass():yield e.render()})()}updateLayerRenderList(){this.layerList=[],this.layers.filter(e=>e.inited).filter(e=>e.isVisible()).sort((e,r)=>e.zIndex-r.zIndex).forEach(e=>{this.layerList.push(e)})}destroy(){this.layers.forEach(e=>{e.destroy()}),this.layers=[],this.layerList=[],this.emit("layerChange",this.layers)}startAnimate(){this.animateInstanceCount++===0&&(this.clock.start(),this.runRender())}stopAnimate(){--this.animateInstanceCount===0&&(this.stopRender(),this.clock.stop())}getOESTextureFloat(){return this.renderService.extensionObject.OES_texture_float}enableShaderPick(){this.shaderPicking=!0}disableShaderPick(){this.shaderPicking=!1}getShaderPickStat(){return this.shaderPicking}clear(){const e=Fi(this.mapService.bgColor);this.renderService.clear({color:e,depth:1,stencil:0,framebuffer:null})}runRender(){this.renderLayers(),this.layerRenderID=window.requestAnimationFrame(this.runRender.bind(this))}stopRender(){window.cancelAnimationFrame(this.layerRenderID)}}const{isNil:kM}=Ko;class UM{constructor(e){I(this,"name",void 0),I(this,"type",void 0),I(this,"scale",void 0),I(this,"descriptor",void 0),I(this,"featureBufferLayout",[]),I(this,"needRescale",!1),I(this,"needRemapping",!1),I(this,"needRegenerateVertices",!1),I(this,"featureRange",{startIndex:0,endIndex:1/0}),I(this,"vertexAttribute",void 0),I(this,"defaultCallback",r=>{if(r.length===0){var n;return((n=this.scale)===null||n===void 0?void 0:n.defaultValues)||[]}return r.map((a,l)=>{var o;return((o=this.scale)===null||o===void 0?void 0:o.scalers[l].func)(a)})}),this.setProps(e)}setProps(e){Object.assign(this,e)}mapping(e){var r;if((r=this.scale)!==null&&r!==void 0&&r.callback){var n;const a=(n=this.scale)===null||n===void 0?void 0:n.callback(...e);if(!kM(a))return[a]}return this.defaultCallback(e)}resetDescriptor(){this.descriptor&&(this.descriptor.buffer.data=[])}}const zM=["buffer","update","name"],VM=["buffer","update","name"],HM={[H.FLOAT]:4,[H.UNSIGNED_BYTE]:1,[H.UNSIGNED_SHORT]:2};class jM{constructor(e){I(this,"attributesAndIndices",void 0),I(this,"attributes",[]),I(this,"triangulation",void 0),I(this,"featureLayout",{sizePerElement:0,elements:[]}),this.rendererService=e}registerStyleAttribute(e){let r=this.getLayerStyleAttribute(e.name||"");return r?r.setProps(e):(r=new UM(e),this.attributes.push(r)),r}unRegisterStyleAttribute(e){const r=this.attributes.findIndex(n=>n.name===e);r>-1&&this.attributes.splice(r,1)}updateScaleAttribute(e){this.attributes.forEach(r=>{var n;const a=r.name,l=(n=r.scale)===null||n===void 0?void 0:n.field;(e[a]||l&&e[l])&&(r.needRescale=!0,r.needRemapping=!0,r.needRegenerateVertices=!0)})}updateStyleAttribute(e,r,n){let a=this.getLayerStyleAttribute(e);a||(a=this.registerStyleAttribute(_t(_t({},r),{},{name:e})));const{scale:l}=r;l&&a&&(a.scale=l,a.needRescale=!0,a.needRemapping=!0,a.needRegenerateVertices=!0,n&&n.featureRange&&(a.featureRange=n.featureRange))}getLayerStyleAttributes(){return this.attributes}getLayerStyleAttribute(e){return this.attributes.find(r=>r.name===e)}getLayerAttributeScale(e){var r;const n=this.getLayerStyleAttribute(e),a=n==null||(r=n.scale)===null||r===void 0?void 0:r.scalers;return a&&a[0]?a[0].func:null}updateAttributeByFeatureRange(e,r,n=0,a,l){const o=this.attributes.find(p=>p.name===e);if(o&&o.descriptor){const{descriptor:p}=o,{update:m,buffer:v,size:E=0}=p,b=HM[v.type||H.FLOAT];if(m){const{elements:A,sizePerElement:R}=this.featureLayout,O=A.slice(n,a);if(!O.length)return;const{offset:D}=O[0],N=D*E*b,W=O.map(({featureIdx:G,vertices:Y,normals:Q},J)=>{const Se=Y.length/R,ce=[];for(let ke=0;ke(D.resetDescriptor(),D.descriptor));let o=0,p=0;const m=[];let v=3;e.forEach((D,N)=>{const{indices:W,vertices:G,normals:Y,size:Q,indexes:J,count:Se}=this.triangulation(D,n);typeof Se=="number"&&(p+=Se),W.forEach(ke=>{m.push(ke+o)}),v=Q;const ce=G.length/Q;this.featureLayout.sizePerElement=v,this.featureLayout.elements.push({featureIdx:N,vertices:G,normals:Y,offset:o}),o+=ce;for(let ke=0;ke{Fe&&Fe.update&&Fe.buffer.data.push(...Fe.update(D,N,Ve,ke,ct,Te))})}});const{createAttribute:E,createBuffer:b,createElements:A}=this.rendererService,R={};l.forEach((D,N)=>{if(D){const{buffer:W,update:G,name:Y}=D,Q=fu(D,zM),J=E(_t({buffer:b(W)},Q));R[D.name||""]=J,this.attributes[N].vertexAttribute=J}});const O=A({data:m,type:H.UNSIGNED_INT,count:m.length});return this.attributesAndIndices={attributes:R,elements:O,count:p},Object.values(this.attributes).filter(D=>D.scale).forEach(D=>{const N=D.name;a==null||a.emit(`legend:${N}`,a.getLegend(N))}),this.attributesAndIndices}createAttributes(e,r){this.featureLayout={sizePerElement:0,elements:[]},r&&(this.triangulation=r);const n=this.attributes.map(v=>(v.resetDescriptor(),v.descriptor));let a=0,l=3;e.forEach((v,E)=>{const{indices:b,vertices:A,normals:R,size:O,indexes:D}=this.triangulation(v);b.forEach(W=>{}),l=O;const N=A.length/O;this.featureLayout.sizePerElement=l,this.featureLayout.elements.push({featureIdx:E,vertices:A,normals:R,offset:a}),a+=N;for(let W=0;W{J&&J.update&&J.buffer.data.push(...J.update(v,E,Y,W,G,Q))})}});const{createAttribute:o,createBuffer:p}=this.rendererService,m={};return n.forEach((v,E)=>{if(v){const{buffer:b,update:A,name:R}=v,O=fu(v,VM),D=o(_t({buffer:p(b)},O));m[v.name||""]=D,this.attributes[E].vertexAttribute=D}}),{attributes:m}}clearAllAttributes(){var e;this.attributes.forEach(r=>{r.vertexAttribute&&r.vertexAttribute.destroy()}),(e=this.attributesAndIndices)===null||e===void 0||e.elements.destroy(),this.attributes=[]}}function P7(t,e,r,n){function a(l){return l instanceof r?l:new r(function(o){o(l)})}return new(r||(r=Promise))(function(l,o){function p(E){try{v(n.next(E))}catch(b){o(b)}}function m(E){try{v(n.throw(E))}catch(b){o(b)}}function v(E){E.done?l(E.value):a(E.value).then(p,m)}v((n=n.apply(t,e||[])).next())})}function O7(t,e){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},n,a,l,o;return o={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function p(v){return function(E){return m([v,E])}}function m(v){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(l=v[0]&2?a.return:v[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,v[1])).done)return l;switch(a=0,l&&(v=[v[0]&2,l.value]),v[0]){case 0:case 1:l=v;break;case 4:return r.label++,{value:v[1],done:!1};case 5:r.label++,a=v[1],v=[0];continue;case 7:v=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(v[0]===6||v[0]===2)){r=0;continue}if(v[0]===3&&(!l||v[1]>l[0]&&v[1]0)&&!(a=n.next()).done;)l.push(a.value)}catch(p){o={error:p}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return l}function r2(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,l;n=0&&n.length%1===0}t.exports=e.default})(c3,c3.exports);var nl={},Yg={exports:{}},Kg={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r){return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=n.pop();return r.call(this,n,l)}},t.exports=e.default})(Kg,Kg.exports);var nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.fallback=D7;nh.wrap=B7;var XM=nh.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,WM=nh.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,GM=nh.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function D7(t){setTimeout(t,0)}function B7(t){return function(e){for(var r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return t(function(){return e.apply(void 0,r)})}}var Hd;XM?Hd=queueMicrotask:WM?Hd=setImmediate:GM?Hd=process.nextTick:Hd=D7;nh.default=B7(Hd);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var r=Kg.exports,n=p(r),a=nh,l=p(a),o=nl;function p(b){return b&&b.__esModule?b:{default:b}}function m(b){return(0,o.isAsync)(b)?function(){for(var A=[],R=arguments.length;R--;)A[R]=arguments[R];var O=A.pop(),D=b.apply(this,A);return v(D,O)}:(0,n.default)(function(A,R){var O;try{O=b.apply(this,A)}catch(D){return R(D)}if(O&&typeof O.then=="function")return v(O,R);R(null,O)})}function v(b,A){return b.then(function(R){E(A,null,R)},function(R){E(A,R&&R.message?R:new Error(R))})}function E(b,A,R){try{b(A,R)}catch(O){(0,l.default)(function(D){throw D},O)}}t.exports=e.default})(Yg,Yg.exports);Object.defineProperty(nl,"__esModule",{value:!0});nl.isAsyncIterable=nl.isAsyncGenerator=nl.isAsync=void 0;var ZM=Yg.exports,$M=qM(ZM);function qM(t){return t&&t.__esModule?t:{default:t}}function F7(t){return t[Symbol.toStringTag]==="AsyncFunction"}function YM(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function KM(t){return typeof t[Symbol.asyncIterator]=="function"}function QM(t){if(typeof t!="function")throw new Error("expected a function");return F7(t)?(0,$M.default)(t):t}nl.default=QM;nl.isAsync=F7;nl.isAsyncGenerator=YM;nl.isAsyncIterable=KM;var Qh={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(n,a){if(a===void 0&&(a=n.length),!a)throw new Error("arity is undefined");function l(){for(var o=this,p=[],m=arguments.length;m--;)p[m]=arguments[m];return typeof p[a-1]=="function"?n.apply(this,p):new Promise(function(v,E){p[a-1]=function(b){for(var A=[],R=arguments.length-1;R-- >0;)A[R]=arguments[R+1];if(b)return E(b);v(A.length>1?A:A[0])},n.apply(o,p)})}return l}t.exports=e.default})(Qh,Qh.exports);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=c3.exports,n=m(r),a=nl,l=m(a),o=Qh.exports,p=m(o);function m(v){return v&&v.__esModule?v:{default:v}}e.default=(0,p.default)(function(v,E,b){var A=(0,n.default)(E)?[]:{};v(E,function(R,O,D){(0,l.default)(R)(function(N){for(var W,G=[],Y=arguments.length-1;Y-- >0;)G[Y]=arguments[Y+1];G.length<2&&(W=G,G=W[0]),A[O]=G,D(N)})},function(R){return b(R,A)})},3),t.exports=e.default})(vm,vm.exports);var Qg={exports:{}},ym={exports:{}},Jg={exports:{}},h3={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(n){function a(){for(var l=[],o=arguments.length;o--;)l[o]=arguments[o];if(n!==null){var p=n;n=null,p.apply(this,l)}}return Object.assign(a,n),a}t.exports=e.default})(h3,h3.exports);var ev={exports:{}},tv={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r){return r[Symbol.iterator]&&r[Symbol.iterator]()},t.exports=e.default})(tv,tv.exports);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=E;var r=c3.exports,n=o(r),a=tv.exports,l=o(a);function o(b){return b&&b.__esModule?b:{default:b}}function p(b){var A=-1,R=b.length;return function(){return++A=p||A||E||(A=!0,o.next().then(function(G){var Y=G.value,Q=G.done;if(!(b||E)){if(A=!1,Q){E=!0,R<=0&&v(null);return}R++,m(Y,O,N),O++,D()}}).catch(W))}function N(G,Y){if(R-=1,!b){if(G)return W(G);if(G===!1){E=!0,b=!0;return}if(Y===n.default||E&&R<=0)return E=!0,v(null);D()}}function W(G){b||(A=!1,E=!0,v(G))}D()}t.exports=e.default})(rv,rv.exports);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=h3.exports,n=R(r),a=ev.exports,l=R(a),o=f3.exports,p=R(o),m=nl,v=rv.exports,E=R(v),b=p3.exports,A=R(b);function R(O){return O&&O.__esModule?O:{default:O}}e.default=function(O){return function(D,N,W){if(W=(0,n.default)(W),O<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!D)return W(null);if((0,m.isAsyncGenerator)(D))return(0,E.default)(D,O,N,W);if((0,m.isAsyncIterable)(D))return(0,E.default)(D[Symbol.asyncIterator](),O,N,W);var G=(0,l.default)(D),Y=!1,Q=!1,J=0,Se=!1;function ce(ct,Ve){if(!Q)if(J-=1,ct)Y=!0,W(ct);else if(ct===!1)Y=!0,Q=!0;else{if(Ve===A.default||Y&&J<=0)return Y=!0,W(null);Se||ke()}}function ke(){for(Se=!0;J0;)G[Y]=arguments[Y+1];if(W!==!1){if(W||O===A.length)return R.apply(void 0,[W].concat(G));D(G)}}D([])}e.default=(0,v.default)(b),t.exports=e.default})(iv,iv.exports);var JM=L7(iv.exports),_5=function(){function t(){this.tasks=[]}return t.prototype.call=function(){return r_(this.tasks)},t.prototype.tap=function(e,r){this.tasks.push(function(n){var a=r();n(a,e)})},t}(),eP=function(){function t(){this.args=[],this.tasks=[]}return t.prototype.promise=function(){for(var e=arguments,r=[],n=0;n";while(o[0]);return a>4?a:n}();return t===r};z7.isLegacyOpera=function(){return!!window.opera};var V7=U7.exports,H7={exports:{}},uP=H7.exports={};uP.getOption=cP;function cP(t,e,r){var n=t[e];return n==null&&r!==void 0?r:n}var hP=H7.exports,g5=hP,fP=function(e){e=e||{};var r=e.reporter,n=g5.getOption(e,"async",!0),a=g5.getOption(e,"auto",!0);a&&!n&&(r&&r.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var l=v5(),o,p=!1;function m(O,D){!p&&a&&n&&l.size()===0&&b(),l.add(O,D)}function v(){for(p=!0;l.size();){var O=l;l=v5(),O.process()}p=!1}function E(O){p||(O===void 0&&(O=n),o&&(A(o),o=null),O?b():v())}function b(){o=R(v)}function A(O){var D=clearTimeout;return D(O)}function R(O){var D=function(N){return setTimeout(N,0)};return D(O)}return{add:m,force:E}};function v5(){var t={},e=0,r=0,n=0;function a(p,m){m||(m=p,p=0),p>r?r=p:pN-1*Qs||Q<0||J>W-1*Qs||J<0)return!1;let Se;if(D()==="WebGPU"?Se=yield R({x:Math.floor(Q/r.pickBufferScale),y:Math.floor((W-(o+1)*Qs)/r.pickBufferScale),width:1,height:1,data:new Uint8Array(4),framebuffer:r.pickingFBO}):Se=A({x:Math.floor(Q/r.pickBufferScale),y:Math.floor((W-(o+1)*Qs)/r.pickBufferScale),width:1,height:1,data:new Uint8Array(4),framebuffer:r.pickingFBO}),r.pickedColors=Se,Se[0]!==0||Se[1]!==0||Se[2]!==0){const ke=Zh(Se),ct=a.layerPickService.getFeatureById(ke);ke!==a.getCurrentPickId()&&m==="mousemove"&&(m="mouseenter");const Ve={x:l,y:o,type:m,lngLat:p,featureId:ke,feature:ct,target:v};ct&&(b=!0,a.setCurrentPickId(ke),r.triggerHoverOnLayer(a,Ve))}else{const ke={x:l,y:o,lngLat:p,type:a.getCurrentPickId()!==null&&m==="mousemove"?"mouseout":"un"+m,featureId:null,target:v,feature:null};r.triggerHoverOnLayer(a,_t(_t({},ke),{},{type:"unpick"})),r.triggerHoverOnLayer(a,ke),a.setCurrentPickId(null)}if(G&&a.layerPickService.highlightPickedFeature(Se),Y&&m==="click"&&((E=Se)===null||E===void 0?void 0:E.toString())!==[0,0,0,0].toString()){const ke=Zh(Se);a.getCurrentSelectedId()===null||ke!==a.getCurrentSelectedId()?(a.layerPickService.selectFeature(Se),a.setCurrentSelectedId(ke)):(a.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),a.setCurrentSelectedId(null))}return b});return function(a,l){return n.apply(this,arguments)}}()),this.container=e}get mapService(){return this.container.mapService}get rendererService(){return this.container.rendererService}get configService(){return this.container.globalConfigService}get interactionService(){return this.container.interactionService}get layerService(){return this.container.layerService}init(e){const{createTexture2D:r,createFramebuffer:n,getViewportSize:a}=this.rendererService;let{width:l,height:o}=a();this.pickBufferScale=this.configService.getSceneConfig(e).pickBufferScale||1,l=Math.round(l/this.pickBufferScale),o=Math.round(o/this.pickBufferScale);const p=r({width:l,height:o,usage:u3.RENDER_TARGET,label:"Picking Texture"});this.pickingFBO=n({color:p,depth:!0,width:l,height:o}),this.interactionService.on(Js.Hover,this.pickingAllLayer.bind(this))}boxPickLayer(e,r,n){var a=this;return bt(function*(){const{useFramebufferAsync:l,clear:o}=a.rendererService;a.resizePickingFBO(),e.hooks.beforePickingEncode.call(),yield l(a.pickingFBO,bt(function*(){o({framebuffer:a.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),e.renderModels({ispick:!0})})),e.hooks.afterPickingEncode.call();const p=yield a.pickBox(e,r);n(p)})()}pickBox(e,r){var n=this;return bt(function*(){const[a,l,o,p]=r.map(W=>{const G=W<0?0:W;return Math.floor(G*Qs/n.pickBufferScale)}),{readPixelsAsync:m,getViewportSize:v}=n.rendererService,{width:E,height:b}=v();if(a>(E-1)*Qs/n.pickBufferScale||o<0||l>(b-1)*Qs/n.pickBufferScale||p<0)return[];const A=Math.min(E/n.pickBufferScale,o)-a,R=Math.min(b/n.pickBufferScale,p)-l,O=yield m({x:a,y:Math.floor(b/n.pickBufferScale-(p+1)),width:A,height:R,data:new Uint8Array(A*R*4),framebuffer:n.pickingFBO}),D=[],N={};for(let W=0;Wp.needPick(e.type)).reverse()){yield a(r.pickingFBO,bt(function*(){n({framebuffer:r.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),o.layerPickService.pickRender(e)}));const p=yield r.pickFromPickingFBO(o,e);if(r.layerService.pickedLayerId=p?+o.id:-1,p&&!o.getLayerConfig().enablePropagation)break}})()}triggerHoverOnLayer(e,r){PM(r)&&(this.handleCursor(e,r.type),e.emit(r.type,r))}}class LM{constructor(e=!0){I(this,"autoStart",void 0),I(this,"startTime",0),I(this,"oldTime",0),I(this,"running",!1),I(this,"elapsedTime",0),this.autoStart=e}start(){this.startTime=(typeof performance>"u"?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const r=(typeof performance>"u"?Date:performance).now();e=(r-this.oldTime)/1e3,this.oldTime=r,this.elapsedTime+=e}return e}}const{throttle:d5}=Ko;class DM extends Ps.EventEmitter{get renderService(){return this.container.rendererService}get mapService(){return this.container.mapService}get debugService(){return this.container.debugService}constructor(e){super(),I(this,"pickedLayerId",-1),I(this,"clock",new LM),I(this,"alreadyInRendering",!1),I(this,"layers",[]),I(this,"layerList",[]),I(this,"layerRenderID",void 0),I(this,"sceneInited",!1),I(this,"animateInstanceCount",0),I(this,"shaderPicking",!0),I(this,"enableRender",!0),I(this,"reRender",d5(()=>{this.renderLayers()},32)),I(this,"throttleRenderLayers",d5(()=>{this.renderLayers()},16)),this.container=e}needPick(e){return this.updateLayerRenderList(),this.layerList.some(r=>r.needPick(e))}add(e){this.layers.push(e),this.sceneInited&&e.init().then(()=>{this.renderLayers()})}addMask(e){this.sceneInited&&e.init().then(()=>{this.renderLayers()})}initLayers(){var e=this;return bt(function*(){e.sceneInited=!0,e.layers.forEach(function(){var r=bt(function*(n){n.startInit||(yield n.init(),e.updateLayerRenderList())});return function(n){return r.apply(this,arguments)}}())})()}getSceneInited(){return this.sceneInited}getRenderList(){return this.layerList}getLayers(){return this.layers}getLayer(e){return this.layers.find(r=>r.id===e)}getLayerByName(e){return this.layers.find(r=>r.name===e)}remove(e,r){var n=this;return bt(function*(){r?r.layerChildren=r.layerChildren.filter(a=>a!==e):n.layers=n.layers.filter(a=>a!==e),e.destroy(),n.reRender(),n.emit("layerChange",n.layers)})()}removeAllLayers(){var e=this;return bt(function*(){e.destroy(),e.reRender()})()}setEnableRender(e){this.enableRender=e}renderLayers(){var e=this;return bt(function*(){if(e.alreadyInRendering||!e.enableRender)return;e.updateLayerRenderList();const r=e.debugService.generateRenderUid();e.debugService.renderStart(r),e.alreadyInRendering=!0,e.clear();for(const n of e.layerList)n.prerender();e.renderService.beginFrame();for(const n of e.layerList){const{enableMask:a}=n.getLayerConfig();n.masks.filter(l=>l.inited).length>0&&a&&e.renderMask(n.masks),n.getLayerConfig().enableMultiPassRenderer?yield n.renderMultiPass():n.render()}e.renderService.endFrame(),e.debugService.renderEnd(r),e.alreadyInRendering=!1})()}renderMask(e){let r=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});const n=e.length>1?Wh.MULTIPLE:Wh.SINGLE;for(const a of e)a.render({isStencil:!0,stencilType:n,stencilIndex:r++})}beforeRenderData(e){var r=this;return bt(function*(){(yield e.hooks.beforeRenderData.promise())&&r.renderLayers()})()}renderTileLayerMask(e){let r=0;const{enableMask:n=!0}=e.getLayerConfig();let a=e.tileMask?1:0;const l=e.masks.filter(p=>p.inited);a=a+(n?l.length:1);const o=a>1?Wh.MULTIPLE:Wh.SINGLE;if((e.tileMask||l.length&&n)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),l.length&&n)for(const p of l)p.render({isStencil:!0,stencilType:o,stencilIndex:r++});e.tileMask&&e.tileMask.render({isStencil:!0,stencilType:o,stencilIndex:r++,stencilOperation:t_.OR})}renderTileLayer(e){var r=this;return bt(function*(){r.renderTileLayerMask(e),e.getLayerConfig().enableMultiPassRenderer?yield e.renderMultiPass():yield e.render()})()}updateLayerRenderList(){this.layerList=[],this.layers.filter(e=>e.inited).filter(e=>e.isVisible()).sort((e,r)=>e.zIndex-r.zIndex).forEach(e=>{this.layerList.push(e)})}destroy(){this.layers.forEach(e=>{e.destroy()}),this.layers=[],this.layerList=[],this.emit("layerChange",this.layers)}startAnimate(){this.animateInstanceCount++===0&&(this.clock.start(),this.runRender())}stopAnimate(){--this.animateInstanceCount===0&&(this.stopRender(),this.clock.stop())}getOESTextureFloat(){return this.renderService.extensionObject.OES_texture_float}enableShaderPick(){this.shaderPicking=!0}disableShaderPick(){this.shaderPicking=!1}getShaderPickStat(){return this.shaderPicking}clear(){const e=Fi(this.mapService.bgColor);this.renderService.clear({color:e,depth:1,stencil:0,framebuffer:null})}runRender(){this.renderLayers(),this.layerRenderID=window.requestAnimationFrame(this.runRender.bind(this))}stopRender(){window.cancelAnimationFrame(this.layerRenderID)}}const{isNil:BM}=Ko;class FM{constructor(e){I(this,"name",void 0),I(this,"type",void 0),I(this,"scale",void 0),I(this,"descriptor",void 0),I(this,"featureBufferLayout",[]),I(this,"needRescale",!1),I(this,"needRemapping",!1),I(this,"needRegenerateVertices",!1),I(this,"featureRange",{startIndex:0,endIndex:1/0}),I(this,"vertexAttribute",void 0),I(this,"defaultCallback",r=>{if(r.length===0){var n;return((n=this.scale)===null||n===void 0?void 0:n.defaultValues)||[]}return r.map((a,l)=>{var o;return((o=this.scale)===null||o===void 0?void 0:o.scalers[l].func)(a)})}),this.setProps(e)}setProps(e){Object.assign(this,e)}mapping(e){var r;if((r=this.scale)!==null&&r!==void 0&&r.callback){var n;const a=(n=this.scale)===null||n===void 0?void 0:n.callback(...e);if(!BM(a))return[a]}return this.defaultCallback(e)}resetDescriptor(){this.descriptor&&(this.descriptor.buffer.data=[])}}const NM=["buffer","update","name"],kM=["buffer","update","name"],UM={[H.FLOAT]:4,[H.UNSIGNED_BYTE]:1,[H.UNSIGNED_SHORT]:2};class zM{constructor(e){I(this,"attributesAndIndices",void 0),I(this,"attributes",[]),I(this,"triangulation",void 0),I(this,"featureLayout",{sizePerElement:0,elements:[]}),this.rendererService=e}registerStyleAttribute(e){let r=this.getLayerStyleAttribute(e.name||"");return r?r.setProps(e):(r=new FM(e),this.attributes.push(r)),r}unRegisterStyleAttribute(e){const r=this.attributes.findIndex(n=>n.name===e);r>-1&&this.attributes.splice(r,1)}updateScaleAttribute(e){this.attributes.forEach(r=>{var n;const a=r.name,l=(n=r.scale)===null||n===void 0?void 0:n.field;(e[a]||l&&e[l])&&(r.needRescale=!0,r.needRemapping=!0,r.needRegenerateVertices=!0)})}updateStyleAttribute(e,r,n){let a=this.getLayerStyleAttribute(e);a||(a=this.registerStyleAttribute(_t(_t({},r),{},{name:e})));const{scale:l}=r;l&&a&&(a.scale=l,a.needRescale=!0,a.needRemapping=!0,a.needRegenerateVertices=!0,n&&n.featureRange&&(a.featureRange=n.featureRange))}getLayerStyleAttributes(){return this.attributes}getLayerStyleAttribute(e){return this.attributes.find(r=>r.name===e)}getLayerAttributeScale(e){var r;const n=this.getLayerStyleAttribute(e),a=n==null||(r=n.scale)===null||r===void 0?void 0:r.scalers;return a&&a[0]?a[0].func:null}updateAttributeByFeatureRange(e,r,n=0,a,l){const o=this.attributes.find(p=>p.name===e);if(o&&o.descriptor){const{descriptor:p}=o,{update:m,buffer:v,size:E=0}=p,b=UM[v.type||H.FLOAT];if(m){const{elements:A,sizePerElement:R}=this.featureLayout,O=A.slice(n,a);if(!O.length)return;const{offset:D}=O[0],N=D*E*b,W=O.map(({featureIdx:G,vertices:Y,normals:Q},J)=>{const Se=Y.length/R,ce=[];for(let ke=0;ke(D.resetDescriptor(),D.descriptor));let o=0,p=0;const m=[];let v=3;e.forEach((D,N)=>{const{indices:W,vertices:G,normals:Y,size:Q,indexes:J,count:Se}=this.triangulation(D,n);typeof Se=="number"&&(p+=Se),W.forEach(ke=>{m.push(ke+o)}),v=Q;const ce=G.length/Q;this.featureLayout.sizePerElement=v,this.featureLayout.elements.push({featureIdx:N,vertices:G,normals:Y,offset:o}),o+=ce;for(let ke=0;ke{Fe&&Fe.update&&Fe.buffer.data.push(...Fe.update(D,N,Ve,ke,ct,Te))})}});const{createAttribute:E,createBuffer:b,createElements:A}=this.rendererService,R={};l.forEach((D,N)=>{if(D){const{buffer:W,update:G,name:Y}=D,Q=fu(D,NM),J=E(_t({buffer:b(W)},Q));R[D.name||""]=J,this.attributes[N].vertexAttribute=J}});const O=A({data:m,type:H.UNSIGNED_INT,count:m.length});return this.attributesAndIndices={attributes:R,elements:O,count:p},Object.values(this.attributes).filter(D=>D.scale).forEach(D=>{const N=D.name;a==null||a.emit(`legend:${N}`,a.getLegend(N))}),this.attributesAndIndices}createAttributes(e,r){this.featureLayout={sizePerElement:0,elements:[]},r&&(this.triangulation=r);const n=this.attributes.map(v=>(v.resetDescriptor(),v.descriptor));let a=0,l=3;e.forEach((v,E)=>{const{indices:b,vertices:A,normals:R,size:O,indexes:D}=this.triangulation(v);b.forEach(W=>{}),l=O;const N=A.length/O;this.featureLayout.sizePerElement=l,this.featureLayout.elements.push({featureIdx:E,vertices:A,normals:R,offset:a}),a+=N;for(let W=0;W{J&&J.update&&J.buffer.data.push(...J.update(v,E,Y,W,G,Q))})}});const{createAttribute:o,createBuffer:p}=this.rendererService,m={};return n.forEach((v,E)=>{if(v){const{buffer:b,update:A,name:R}=v,O=fu(v,kM),D=o(_t({buffer:p(b)},O));m[v.name||""]=D,this.attributes[E].vertexAttribute=D}}),{attributes:m}}clearAllAttributes(){var e;this.attributes.forEach(r=>{r.vertexAttribute&&r.vertexAttribute.destroy()}),(e=this.attributesAndIndices)===null||e===void 0||e.elements.destroy(),this.attributes=[]}}function P7(t,e,r,n){function a(l){return l instanceof r?l:new r(function(o){o(l)})}return new(r||(r=Promise))(function(l,o){function p(E){try{v(n.next(E))}catch(b){o(b)}}function m(E){try{v(n.throw(E))}catch(b){o(b)}}function v(E){E.done?l(E.value):a(E.value).then(p,m)}v((n=n.apply(t,e||[])).next())})}function O7(t,e){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},n,a,l,o;return o={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function p(v){return function(E){return m([v,E])}}function m(v){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(l=v[0]&2?a.return:v[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,v[1])).done)return l;switch(a=0,l&&(v=[v[0]&2,l.value]),v[0]){case 0:case 1:l=v;break;case 4:return r.label++,{value:v[1],done:!1};case 5:r.label++,a=v[1],v=[0];continue;case 7:v=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(v[0]===6||v[0]===2)){r=0;continue}if(v[0]===3&&(!l||v[1]>l[0]&&v[1]0)&&!(a=n.next()).done;)l.push(a.value)}catch(p){o={error:p}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return l}function r2(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,l;n=0&&n.length%1===0}t.exports=e.default})(c3,c3.exports);var nl={},Yg={exports:{}},Kg={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r){return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=n.pop();return r.call(this,n,l)}},t.exports=e.default})(Kg,Kg.exports);var nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.fallback=D7;nh.wrap=B7;var VM=nh.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,HM=nh.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,jM=nh.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function D7(t){setTimeout(t,0)}function B7(t){return function(e){for(var r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return t(function(){return e.apply(void 0,r)})}}var Hd;VM?Hd=queueMicrotask:HM?Hd=setImmediate:jM?Hd=process.nextTick:Hd=D7;nh.default=B7(Hd);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var r=Kg.exports,n=p(r),a=nh,l=p(a),o=nl;function p(b){return b&&b.__esModule?b:{default:b}}function m(b){return(0,o.isAsync)(b)?function(){for(var A=[],R=arguments.length;R--;)A[R]=arguments[R];var O=A.pop(),D=b.apply(this,A);return v(D,O)}:(0,n.default)(function(A,R){var O;try{O=b.apply(this,A)}catch(D){return R(D)}if(O&&typeof O.then=="function")return v(O,R);R(null,O)})}function v(b,A){return b.then(function(R){E(A,null,R)},function(R){E(A,R&&R.message?R:new Error(R))})}function E(b,A,R){try{b(A,R)}catch(O){(0,l.default)(function(D){throw D},O)}}t.exports=e.default})(Yg,Yg.exports);Object.defineProperty(nl,"__esModule",{value:!0});nl.isAsyncIterable=nl.isAsyncGenerator=nl.isAsync=void 0;var XM=Yg.exports,WM=GM(XM);function GM(t){return t&&t.__esModule?t:{default:t}}function F7(t){return t[Symbol.toStringTag]==="AsyncFunction"}function ZM(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function $M(t){return typeof t[Symbol.asyncIterator]=="function"}function qM(t){if(typeof t!="function")throw new Error("expected a function");return F7(t)?(0,WM.default)(t):t}nl.default=qM;nl.isAsync=F7;nl.isAsyncGenerator=ZM;nl.isAsyncIterable=$M;var Qh={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(n,a){if(a===void 0&&(a=n.length),!a)throw new Error("arity is undefined");function l(){for(var o=this,p=[],m=arguments.length;m--;)p[m]=arguments[m];return typeof p[a-1]=="function"?n.apply(this,p):new Promise(function(v,E){p[a-1]=function(b){for(var A=[],R=arguments.length-1;R-- >0;)A[R]=arguments[R+1];if(b)return E(b);v(A.length>1?A:A[0])},n.apply(o,p)})}return l}t.exports=e.default})(Qh,Qh.exports);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=c3.exports,n=m(r),a=nl,l=m(a),o=Qh.exports,p=m(o);function m(v){return v&&v.__esModule?v:{default:v}}e.default=(0,p.default)(function(v,E,b){var A=(0,n.default)(E)?[]:{};v(E,function(R,O,D){(0,l.default)(R)(function(N){for(var W,G=[],Y=arguments.length-1;Y-- >0;)G[Y]=arguments[Y+1];G.length<2&&(W=G,G=W[0]),A[O]=G,D(N)})},function(R){return b(R,A)})},3),t.exports=e.default})(vm,vm.exports);var Qg={exports:{}},ym={exports:{}},Jg={exports:{}},h3={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(n){function a(){for(var l=[],o=arguments.length;o--;)l[o]=arguments[o];if(n!==null){var p=n;n=null,p.apply(this,l)}}return Object.assign(a,n),a}t.exports=e.default})(h3,h3.exports);var ev={exports:{}},tv={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r){return r[Symbol.iterator]&&r[Symbol.iterator]()},t.exports=e.default})(tv,tv.exports);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=E;var r=c3.exports,n=o(r),a=tv.exports,l=o(a);function o(b){return b&&b.__esModule?b:{default:b}}function p(b){var A=-1,R=b.length;return function(){return++A=p||A||E||(A=!0,o.next().then(function(G){var Y=G.value,Q=G.done;if(!(b||E)){if(A=!1,Q){E=!0,R<=0&&v(null);return}R++,m(Y,O,N),O++,D()}}).catch(W))}function N(G,Y){if(R-=1,!b){if(G)return W(G);if(G===!1){E=!0,b=!0;return}if(Y===n.default||E&&R<=0)return E=!0,v(null);D()}}function W(G){b||(A=!1,E=!0,v(G))}D()}t.exports=e.default})(rv,rv.exports);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=h3.exports,n=R(r),a=ev.exports,l=R(a),o=f3.exports,p=R(o),m=nl,v=rv.exports,E=R(v),b=p3.exports,A=R(b);function R(O){return O&&O.__esModule?O:{default:O}}e.default=function(O){return function(D,N,W){if(W=(0,n.default)(W),O<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!D)return W(null);if((0,m.isAsyncGenerator)(D))return(0,E.default)(D,O,N,W);if((0,m.isAsyncIterable)(D))return(0,E.default)(D[Symbol.asyncIterator](),O,N,W);var G=(0,l.default)(D),Y=!1,Q=!1,J=0,Se=!1;function ce(ct,Ve){if(!Q)if(J-=1,ct)Y=!0,W(ct);else if(ct===!1)Y=!0,Q=!0;else{if(Ve===A.default||Y&&J<=0)return Y=!0,W(null);Se||ke()}}function ke(){for(Se=!0;J0;)G[Y]=arguments[Y+1];if(W!==!1){if(W||O===A.length)return R.apply(void 0,[W].concat(G));D(G)}}D([])}e.default=(0,v.default)(b),t.exports=e.default})(iv,iv.exports);var YM=L7(iv.exports),_5=function(){function t(){this.tasks=[]}return t.prototype.call=function(){return r_(this.tasks)},t.prototype.tap=function(e,r){this.tasks.push(function(n){var a=r();n(a,e)})},t}(),KM=function(){function t(){this.args=[],this.tasks=[]}return t.prototype.promise=function(){for(var e=arguments,r=[],n=0;n";while(o[0]);return a>4?a:n}();return t===r};z7.isLegacyOpera=function(){return!!window.opera};var V7=U7.exports,H7={exports:{}},aP=H7.exports={};aP.getOption=sP;function sP(t,e,r){var n=t[e];return n==null&&r!==void 0?r:n}var lP=H7.exports,g5=lP,uP=function(e){e=e||{};var r=e.reporter,n=g5.getOption(e,"async",!0),a=g5.getOption(e,"auto",!0);a&&!n&&(r&&r.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var l=v5(),o,p=!1;function m(O,D){!p&&a&&n&&l.size()===0&&b(),l.add(O,D)}function v(){for(p=!0;l.size();){var O=l;l=v5(),O.process()}p=!1}function E(O){p||(O===void 0&&(O=n),o&&(A(o),o=null),O?b():v())}function b(){o=R(v)}function A(O){var D=clearTimeout;return D(O)}function R(O){var D=function(N){return setTimeout(N,0)};return D(O)}return{add:m,force:E}};function v5(){var t={},e=0,r=0,n=0;function a(p,m){m||(m=p,p=0),p>r?r=p:p div::-webkit-scrollbar { "+v(["display: none"])+` } `,Ve+="."+ct+" { "+v(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+ke,"animation-name: "+ke])+` } `,Ve+="@-webkit-keyframes "+ke+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } -`,Ve+="@keyframes "+ke+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",ce(Ve)}}function A(Q){Q.className+=" "+p+"_animation_active"}function R(Q,J,Se){if(Q.addEventListener)Q.addEventListener(J,Se);else if(Q.attachEvent)Q.attachEvent("on"+J,Se);else return e.error("[scroll] Don't know how to add event listeners.")}function O(Q,J,Se){if(Q.removeEventListener)Q.removeEventListener(J,Se);else if(Q.detachEvent)Q.detachEvent("on"+J,Se);else return e.error("[scroll] Don't know how to remove event listeners.")}function D(Q){return n(Q).container.childNodes[0].childNodes[0].childNodes[0]}function N(Q){return n(Q).container.childNodes[0].childNodes[0].childNodes[1]}function W(Q,J){var Se=n(Q).listeners;if(!Se.push)throw new Error("Cannot add listener to an element that is not detectable.");n(Q).listeners.push(J)}function G(Q,J,Se){Se||(Se=J,J=Q,Q=null),Q=Q||{};function ce(){if(Q.debug){var qe=Array.prototype.slice.call(arguments);if(qe.unshift(a.get(J),"Scroll: "),e.log.apply)e.log.apply(null,qe);else for(var Yt=0;Yt{this.emit("resize"),this.$container&&(this.initContainer(),this.coordinateSystemService.needRefresh=!0,this.render())}),I(this,"handleMapCameraChanged",r=>{this.cameraService.update(r),this.render()}),this.container=e,this.hooks={init:new eP},this.id=e.id}init(e){var r=this;this.configService.setSceneConfig(this.id,e),this.shaderModuleService.registerBuiltinModules(),this.iconService.init(),this.iconService.on("imageUpdate",()=>this.render()),this.fontService.init(),this.hooks.init.tapPromise("initMap",bt(function*(){r.debugService.log("map.mapInitStart",{type:r.map.version}),yield new Promise(n=>{r.map.onCameraChanged(a=>{r.cameraService.init(),r.cameraService.update(a),n()}),r.map.init()}),r.map.onCameraChanged(r.handleMapCameraChanged),r.map.addMarkerContainer(),r.markerService.addMarkers(),r.markerService.addMarkerLayers(),r.popupService.initPopup(),r.interactionService.init(),r.interactionService.on(Js.Drag,r.addSceneEvent.bind(r))})),this.hooks.init.tapPromise("initRenderer",bt(function*(){var n;const a=((n=r.map)===null||n===void 0?void 0:n.getOverlayContainer())||void 0;if(a?r.$container=a:r.$container=LM(r.configService.getSceneConfig(r.id).id||""),r.$container){const{canvas:o}=e;if(r.canvas=o||_a("canvas","",r.$container),r.setCanvas(),yield r.rendererService.init(r.canvas,r.configService.getSceneConfig(r.id),e.gl),r.registerContextLost(),r.initContainer(),r.resizeDetector=RP({strategy:"scroll"}),r.resizeDetector.listenTo(r.$container,r.handleWindowResized),window.matchMedia){var l;(l=window.matchMedia("screen and (-webkit-min-device-pixel-ratio: 1.5)"))===null||l===void 0||l.addListener(r.handleWindowResized.bind("screen"))}}else console.error("容器 id 不存在");r.pickingService.init(r.id)})),this.render()}registerContextLost(){const e=this.rendererService.getCanvas();e&&e.addEventListener("webglcontextlost",()=>this.emit("webglcontextlost"))}addLayer(e){this.layerService.sceneService=this,this.layerService.add(e)}addMask(e){this.layerService.sceneService=this,this.layerService.addMask(e)}render(){var e=this;return bt(function*(){e.rendering||e.destroyed||(e.rendering=!0,e.inited?(yield e.layerService.initLayers(),yield e.layerService.renderLayers()):(yield e.hooks.init.promise(),e.destroyed&&e.destroy(),yield e.layerService.initLayers(),e.layerService.renderLayers(),e.controlService.addControls(),e.loaded=!0,e.emit("loaded"),e.inited=!0),e.rendering=!1)})()}addFontFace(e,r){this.fontService.addFontFace(e,r)}getSceneContainer(){return this.$container}exportPng(e){var r=this;return bt(function*(){var n;const a=(n=r.$container)===null||n===void 0?void 0:n.getElementsByTagName("canvas")[0];return yield r.render(),e==="jpg"?a==null?void 0:a.toDataURL("image/jpeg"):a==null?void 0:a.toDataURL("image/png")})()}getSceneConfig(){return this.configService.getSceneConfig(this.id)}getPointSizeRange(){return this.rendererService.getPointSizeRange()}addMarkerContainer(){const e=this.$container.parentElement;e!==null&&(this.markerContainer=_a("div","l7-marker-container",e))}getMarkerContainer(){return this.markerContainer}destroy(){var e;if(!this.inited){this.destroyed=!0;return}this.resizeDetector.removeListener(this.$container,this.handleWindowResized),this.pickingService.destroy(),this.layerService.destroy(),this.interactionService.destroy(),this.controlService.destroy(),this.markerService.destroy(),this.fontService.destroy(),this.iconService.destroy(),this.removeAllListeners(),this.inited=!1,this.map.destroy(),setTimeout(()=>{var r;(r=this.$container)===null||r===void 0||r.removeChild(this.canvas),this.canvas=null,this.rendererService.destroy()}),(e=this.$container)===null||e===void 0||(e=e.parentNode)===null||e===void 0||e.removeChild(this.$container),this.emit("destroy")}initContainer(){var e,r;const n=Qs,a=((e=this.$container)===null||e===void 0?void 0:e.clientWidth)||400,l=((r=this.$container)===null||r===void 0?void 0:r.clientHeight)||300,o=this.canvas;o&&(o.width=a*n,o.height=l*n),this.rendererService.viewport({x:0,y:0,width:n*a,height:n*l})}setCanvas(){var e,r;const n=Qs,a=((e=this.$container)===null||e===void 0?void 0:e.clientWidth)||400,l=((r=this.$container)===null||r===void 0?void 0:r.clientHeight)||300,o=this.canvas;o.width=a*n,o.height=l*n,o.style.width="100%",o.style.height="100%"}addSceneEvent(e){this.emit(e.type,e)}};const{uniq:MP}=Ko,T5="#define PI 3.14159265359",PP=`#define ambientRatio 0.5 +`,Ve+="@keyframes "+ke+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",ce(Ve)}}function A(Q){Q.className+=" "+p+"_animation_active"}function R(Q,J,Se){if(Q.addEventListener)Q.addEventListener(J,Se);else if(Q.attachEvent)Q.attachEvent("on"+J,Se);else return e.error("[scroll] Don't know how to add event listeners.")}function O(Q,J,Se){if(Q.removeEventListener)Q.removeEventListener(J,Se);else if(Q.detachEvent)Q.detachEvent("on"+J,Se);else return e.error("[scroll] Don't know how to remove event listeners.")}function D(Q){return n(Q).container.childNodes[0].childNodes[0].childNodes[0]}function N(Q){return n(Q).container.childNodes[0].childNodes[0].childNodes[1]}function W(Q,J){var Se=n(Q).listeners;if(!Se.push)throw new Error("Cannot add listener to an element that is not detectable.");n(Q).listeners.push(J)}function G(Q,J,Se){Se||(Se=J,J=Q,Q=null),Q=Q||{};function ce(){if(Q.debug){var qe=Array.prototype.slice.call(arguments);if(qe.unshift(a.get(J),"Scroll: "),e.log.apply)e.log.apply(null,qe);else for(var Yt=0;Yt{this.emit("resize"),this.$container&&(this.initContainer(),this.coordinateSystemService.needRefresh=!0,this.render())}),I(this,"handleMapCameraChanged",r=>{this.cameraService.update(r),this.render()}),this.container=e,this.hooks={init:new KM},this.id=e.id}init(e){var r=this;this.configService.setSceneConfig(this.id,e),this.shaderModuleService.registerBuiltinModules(),this.iconService.init(),this.iconService.on("imageUpdate",()=>this.render()),this.fontService.init(),this.hooks.init.tapPromise("initMap",bt(function*(){r.debugService.log("map.mapInitStart",{type:r.map.version}),yield new Promise(n=>{r.map.onCameraChanged(a=>{r.cameraService.init(),r.cameraService.update(a),n()}),r.map.init()}),r.map.onCameraChanged(r.handleMapCameraChanged),r.map.addMarkerContainer(),r.markerService.addMarkers(),r.markerService.addMarkerLayers(),r.popupService.initPopup(),r.interactionService.init(),r.interactionService.on(Js.Drag,r.addSceneEvent.bind(r))})),this.hooks.init.tapPromise("initRenderer",bt(function*(){var n;const a=((n=r.map)===null||n===void 0?void 0:n.getOverlayContainer())||void 0;if(a?r.$container=a:r.$container=MM(r.configService.getSceneConfig(r.id).id||""),r.$container){const{canvas:o}=e;if(r.canvas=o||_a("canvas","",r.$container),r.setCanvas(),yield r.rendererService.init(r.canvas,r.configService.getSceneConfig(r.id),e.gl),r.registerContextLost(),r.initContainer(),r.resizeDetector=SP({strategy:"scroll"}),r.resizeDetector.listenTo(r.$container,r.handleWindowResized),window.matchMedia){var l;(l=window.matchMedia("screen and (-webkit-min-device-pixel-ratio: 1.5)"))===null||l===void 0||l.addListener(r.handleWindowResized.bind("screen"))}}else console.error("容器 id 不存在");r.pickingService.init(r.id)})),this.render()}registerContextLost(){const e=this.rendererService.getCanvas();e&&e.addEventListener("webglcontextlost",()=>this.emit("webglcontextlost"))}addLayer(e){this.layerService.sceneService=this,this.layerService.add(e)}addMask(e){this.layerService.sceneService=this,this.layerService.addMask(e)}render(){var e=this;return bt(function*(){e.rendering||e.destroyed||(e.rendering=!0,e.inited?(yield e.layerService.initLayers(),yield e.layerService.renderLayers()):(yield e.hooks.init.promise(),e.destroyed&&e.destroy(),yield e.layerService.initLayers(),e.layerService.renderLayers(),e.controlService.addControls(),e.loaded=!0,e.emit("loaded"),e.inited=!0),e.rendering=!1)})()}addFontFace(e,r){this.fontService.addFontFace(e,r)}getSceneContainer(){return this.$container}exportPng(e){var r=this;return bt(function*(){var n;const a=(n=r.$container)===null||n===void 0?void 0:n.getElementsByTagName("canvas")[0];return yield r.render(),e==="jpg"?a==null?void 0:a.toDataURL("image/jpeg"):a==null?void 0:a.toDataURL("image/png")})()}getSceneConfig(){return this.configService.getSceneConfig(this.id)}getPointSizeRange(){return this.rendererService.getPointSizeRange()}addMarkerContainer(){const e=this.$container.parentElement;e!==null&&(this.markerContainer=_a("div","l7-marker-container",e))}getMarkerContainer(){return this.markerContainer}destroy(){var e;if(!this.inited){this.destroyed=!0;return}this.resizeDetector.removeListener(this.$container,this.handleWindowResized),this.pickingService.destroy(),this.layerService.destroy(),this.interactionService.destroy(),this.controlService.destroy(),this.markerService.destroy(),this.fontService.destroy(),this.iconService.destroy(),this.removeAllListeners(),this.inited=!1,this.map.destroy(),setTimeout(()=>{var r;(r=this.$container)===null||r===void 0||r.removeChild(this.canvas),this.canvas=null,this.rendererService.destroy()}),(e=this.$container)===null||e===void 0||(e=e.parentNode)===null||e===void 0||e.removeChild(this.$container),this.emit("destroy")}initContainer(){var e,r;const n=Qs,a=((e=this.$container)===null||e===void 0?void 0:e.clientWidth)||400,l=((r=this.$container)===null||r===void 0?void 0:r.clientHeight)||300,o=this.canvas;o&&(o.width=a*n,o.height=l*n),this.rendererService.viewport({x:0,y:0,width:n*a,height:n*l})}setCanvas(){var e,r;const n=Qs,a=((e=this.$container)===null||e===void 0?void 0:e.clientWidth)||400,l=((r=this.$container)===null||r===void 0?void 0:r.clientHeight)||300,o=this.canvas;o.width=a*n,o.height=l*n,o.style.width="100%",o.style.height="100%"}addSceneEvent(e){this.emit(e.type,e)}};const{uniq:CP}=Ko,T5="#define PI 3.14159265359",RP=`#define ambientRatio 0.5 #define diffuseRatio 0.3 #define specularRatio 0.2 @@ -86,7 +86,7 @@ float calc_lighting(vec4 pos) { return lightWeight; } -`,OP=`#define SHIFT_RIGHT17 1.0 / 131072.0 +`,IP=`#define SHIFT_RIGHT17 1.0 / 131072.0 #define SHIFT_RIGHT18 1.0 / 262144.0 #define SHIFT_RIGHT19 1.0 / 524288.0 #define SHIFT_RIGHT20 1.0 / 1048576.0 @@ -116,7 +116,7 @@ vec4 decode_color(vec2 encodedColor) { unpack_float(encodedColor[1]) / 255.0 ); } -`,LP=`// Blinn-Phong model +`,MP=`// Blinn-Phong model // apply lighting in vertex shader instead of fragment shader // @see https://learnopengl.com/Advanced-Lighting/Advanced-Lighting uniform float u_Ambient : 1.0; @@ -179,7 +179,7 @@ vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { } return weight; } -`,DP=` +`,PP=` in vec4 v_PickingResult; #pragma include "picking_uniforms" @@ -248,7 +248,7 @@ vec4 filterColorAlpha(vec4 color, float alpha) { } } -`,BP=`layout(location = ATTRIBUTE_LOCATION_PICKING_COLOR) in vec3 a_PickingColor; +`,OP=`layout(location = ATTRIBUTE_LOCATION_PICKING_COLOR) in vec3 a_PickingColor; out vec4 v_PickingResult; #pragma include "picking_uniforms" @@ -316,7 +316,7 @@ float setPickingOrder(float z) { float u_PickingBuffer; float u_shaderPick; float u_activeMix; -};`,FP=` +};`,LP=` #define E 2.718281828459045 vec2 ProjectFlat(vec2 lnglat){ float maxs=85.0511287798; @@ -557,7 +557,7 @@ bool isEqual(float a, float b) { return a < b + 0.001 && a > b - 0.001; } -`,NP=`vec2 rotate_matrix(vec2 v, float a) { +`,DP=`vec2 rotate_matrix(vec2 v, float a) { float b = a / 180.0 * 3.1415926535897932384626433832795; float s = sin(b); float c = cos(b); @@ -581,7 +581,7 @@ bool isEqual(float a, float b) { vec2 u_ViewportSize; float u_FocalDistance; }; -`,kP=`/** +`,BP=`/** * 2D signed distance field functions * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm */ @@ -660,11 +660,11 @@ float sdVesica(vec2 p, float r, float d) { #else precision mediump float; #endif -`,UP=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,zP=/void\s+main\s*\([^)]*\)\s*\{\n?/;class VP{constructor(){I(this,"moduleCache",{}),I(this,"rawContentCache",{})}registerBuiltinModules(){this.destroy(),this.registerModule("common",{vs:T5,fs:T5}),this.registerModule("decode",{vs:OP,fs:""}),this.registerModule("scene_uniforms",{vs:w5,fs:w5}),this.registerModule("picking_uniforms",{vs:A5,fs:A5}),this.registerModule("projection",{vs:S5,fs:S5}),this.registerModule("project",{vs:FP,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:kP}),this.registerModule("lighting",{vs:LP,fs:""}),this.registerModule("light",{vs:PP,fs:""}),this.registerModule("picking",{vs:BP,fs:DP}),this.registerModule("rotation_2d",{vs:NP,fs:""})}registerModule(e,r){r.vs=r.vs.replace(/\r\n/g,` +`,FP=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,NP=/void\s+main\s*\([^)]*\)\s*\{\n?/;class kP{constructor(){I(this,"moduleCache",{}),I(this,"rawContentCache",{})}registerBuiltinModules(){this.destroy(),this.registerModule("common",{vs:T5,fs:T5}),this.registerModule("decode",{vs:IP,fs:""}),this.registerModule("scene_uniforms",{vs:w5,fs:w5}),this.registerModule("picking_uniforms",{vs:A5,fs:A5}),this.registerModule("projection",{vs:S5,fs:S5}),this.registerModule("project",{vs:LP,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:BP}),this.registerModule("lighting",{vs:MP,fs:""}),this.registerModule("light",{vs:RP,fs:""}),this.registerModule("picking",{vs:OP,fs:PP}),this.registerModule("rotation_2d",{vs:DP,fs:""})}registerModule(e,r){r.vs=r.vs.replace(/\r\n/g,` `),r.fs=r.fs.replace(/\r\n/g,` -`);const{vs:n,fs:a,uniforms:l,defines:o,inject:p}=r,{content:m,uniforms:v}=ig(n),{content:E,uniforms:b}=ig(a);this.rawContentCache[e]={fs:E,defines:o,inject:p,uniforms:_t(_t(_t({},v),b),l),vs:m}}getModule(e){let r=this.rawContentCache[e].vs,n=this.rawContentCache[e].fs;const{defines:a={},inject:l={}}=this.rawContentCache[e];let o={};l["vs:#decl"]&&(r=l["vs:#decl"]+r,o=ig(l["vs:#decl"]).uniforms),l["vs:#main-start"]&&(r=r.replace(zP,D=>D+l["vs:#main-start"])),l["fs:#decl"]&&(n=l["fs:#decl"]+n),r=HP(a)+r;const{content:m,includeList:v}=this.processModule(r,[],"vs"),{content:E,includeList:b}=this.processModule(n,[],"fs"),A=MP(v.concat(b).concat(e)).reduce((D,N)=>_t(_t({},D),this.rawContentCache[N].uniforms),_t({},o)),R=(C5.test(E)?"":R5)+m,O=(C5.test(E)?"":R5)+E;return this.moduleCache[e]={vs:R.trim(),fs:O.trim(),uniforms:A},this.moduleCache[e]}destroy(){this.moduleCache={},this.rawContentCache={}}processModule(e,r,n){return{content:e.replace(UP,(l,o)=>{const m=o.split(" ")[0].replace(/"/g,"");if(r.indexOf(m)>-1)return"";const v=this.rawContentCache[m][n];r.push(m);const{content:E}=this.processModule(v,r,n);return E}),includeList:r}}}function HP(t){return Object.keys(t).reduce((r,n)=>r+`#define ${n.toUpperCase()} ${t[n]} +`);const{vs:n,fs:a,uniforms:l,defines:o,inject:p}=r,{content:m,uniforms:v}=ig(n),{content:E,uniforms:b}=ig(a);this.rawContentCache[e]={fs:E,defines:o,inject:p,uniforms:_t(_t(_t({},v),b),l),vs:m}}getModule(e){let r=this.rawContentCache[e].vs,n=this.rawContentCache[e].fs;const{defines:a={},inject:l={}}=this.rawContentCache[e];let o={};l["vs:#decl"]&&(r=l["vs:#decl"]+r,o=ig(l["vs:#decl"]).uniforms),l["vs:#main-start"]&&(r=r.replace(NP,D=>D+l["vs:#main-start"])),l["fs:#decl"]&&(n=l["fs:#decl"]+n),r=UP(a)+r;const{content:m,includeList:v}=this.processModule(r,[],"vs"),{content:E,includeList:b}=this.processModule(n,[],"fs"),A=CP(v.concat(b).concat(e)).reduce((D,N)=>_t(_t({},D),this.rawContentCache[N].uniforms),_t({},o)),R=(C5.test(E)?"":R5)+m,O=(C5.test(E)?"":R5)+E;return this.moduleCache[e]={vs:R.trim(),fs:O.trim(),uniforms:A},this.moduleCache[e]}destroy(){this.moduleCache={},this.rawContentCache={}}processModule(e,r,n){return{content:e.replace(FP,(l,o)=>{const m=o.split(" ")[0].replace(/"/g,"");if(r.indexOf(m)>-1)return"";const v=this.rawContentCache[m][n];r.push(m);const{content:E}=this.processModule(v,r,n);return E}),includeList:r}}}function UP(t){return Object.keys(t).reduce((r,n)=>r+`#define ${n.toUpperCase()} ${t[n]} `,` -`)}class i2{constructor(){I(this,"shaderModuleService",void 0),I(this,"rendererService",void 0),I(this,"cameraService",void 0),I(this,"mapService",void 0),I(this,"interactionService",void 0),I(this,"layerService",void 0),I(this,"config",void 0)}getName(){return""}getType(){return C3.Normal}init(e,r){this.config=r,this.rendererService=e.getContainer().rendererService,this.cameraService=e.getContainer().cameraService,this.mapService=e.getContainer().mapService,this.interactionService=e.getContainer().interactionService,this.layerService=e.getContainer().layerService,this.shaderModuleService=e.getContainer().shaderModuleService}render(e){}}class jP extends i2{getName(){return"clear"}init(e,r){super.init(e,r)}render(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}class XP{constructor(e){I(this,"passes",[]),I(this,"layer",void 0),I(this,"renderFlag",void 0),I(this,"width",0),I(this,"height",0),this.postProcessor=e}setLayer(e){this.layer=e}setRenderFlag(e){this.renderFlag=e}getRenderFlag(){return this.renderFlag}getPostProcessor(){return this.postProcessor}render(){var e=this;return bt(function*(){for(const r of e.passes)yield r.render(e.layer);yield e.postProcessor.render(e.layer)})()}resize(e,r){(this.width!==e||this.height!==r)&&(this.postProcessor.resize(e,r),this.width=e,this.height=r)}add(e,r){e.getType()===C3.PostProcessing?this.postProcessor.add(e,this.layer,r):(e.init(this.layer,r),this.passes.push(e))}insert(e,r,n){e.init(this.layer,r),this.passes.splice(n,0,e)}destroy(){this.passes.length=0}}class WP extends i2{constructor(...e){var r;super(...e),r=this,I(this,"pickingFBO",void 0),I(this,"layer",void 0),I(this,"width",0),I(this,"height",0),I(this,"alreadyInRendering",!1),I(this,"pickFromPickingFBO",({x:n,y:a,lngLat:l,type:o})=>{if(!this.layer.isVisible()||!this.layer.needPick(o))return;const{getViewportSize:p,readPixelsAsync:m,useFramebuffer:v}=this.rendererService,{width:E,height:b}=p(),{enableHighlight:A,enableSelect:R}=this.layer.getLayerConfig(),O=n*Qs,D=a*Qs;if(O>E||O<0||D>b||D<0)return;let N;v(this.pickingFBO,bt(function*(){var W;if(N=yield m({x:Math.round(O),y:Math.round(b-(a+1)*Qs),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:r.pickingFBO}),N[0]!==0||N[1]!==0||N[2]!==0){const G=Zh(N),Y=r.layer.getSource().getFeatureById(G),Q={x:n,y:a,type:o,lngLat:l,featureId:G,feature:Y};Y&&(r.layer.setCurrentPickId(G),r.triggerHoverOnLayer(Q))}else{const G={x:n,y:a,lngLat:l,type:r.layer.getCurrentPickId()===null?"un"+o:"mouseout",featureId:null,feature:null};r.triggerHoverOnLayer(_t(_t({},G),{},{type:"unpick"})),r.triggerHoverOnLayer(G),r.layer.setCurrentPickId(null)}A&&r.highlightPickedFeature(N),R&&o==="click"&&((W=N)===null||W===void 0?void 0:W.toString())!==[0,0,0,0].toString()&&r.selectFeature(N)}))})}getType(){return C3.Normal}getName(){return"pixelPicking"}init(e,r){super.init(e,r),this.layer=e;const{createTexture2D:n,createFramebuffer:a,getViewportSize:l}=this.rendererService,{width:o,height:p}=l(),m=n({width:o,height:p,wrapS:H.CLAMP_TO_EDGE,wrapT:H.CLAMP_TO_EDGE,label:"Picking Texture"});this.pickingFBO=a({color:m}),this.interactionService.on(Js.Hover,this.pickFromPickingFBO),this.interactionService.on(Js.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(Js.Active,this.highlightFeatureHandle.bind(this))}render(e){if(this.alreadyInRendering)return;const{getViewportSize:r,useFramebuffer:n,clear:a}=this.rendererService,{width:l,height:o}=r();this.alreadyInRendering=!0,(this.width!==l||this.height!==o)&&(this.pickingFBO.resize({width:l,height:o}),this.width=l,this.height=o),n(this.pickingFBO,()=>{a({framebuffer:this.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});const p=this.layer.multiPassRenderer.getRenderFlag();this.layer.multiPassRenderer.setRenderFlag(!1),e.hooks.beforePickingEncode.call(),e.render(),e.hooks.afterPickingEncode.call(),this.layer.multiPassRenderer.setRenderFlag(p),this.alreadyInRendering=!1})}triggerHoverOnLayer(e){this.layer.emit(e.type,e)}highlightPickedFeature(e){const[r,n,a]=e;this.layer.hooks.beforeHighlight.call([r,n,a]),this.layerService.renderLayers()}selectFeature(e){const[r,n,a]=e;this.layer.hooks.beforeSelect.call([r,n,a]),this.layerService.renderLayers()}selectFeatureHandle({featureId:e}){const r=yp(e);this.selectFeature(new Uint8Array(r))}highlightFeatureHandle({featureId:e}){const r=yp(e);this.highlightPickedFeature(new Uint8Array(r))}}class GP{constructor(e){I(this,"passes",[]),I(this,"readFBO",void 0),I(this,"writeFBO",void 0),this.rendererService=e,this.init()}getReadFBO(){return this.readFBO}getWriteFBO(){return this.writeFBO}getCurrentFBOTex(){const{getViewportSize:e,createTexture2D:r}=this.rendererService,{width:n,height:a}=e();return r({x:0,y:0,width:n,height:a,copy:!0})}getReadFBOTex(){var e=this;const{useFramebuffer:r}=this.rendererService;return new Promise(n=>{r(this.readFBO,bt(function*(){n(e.getCurrentFBOTex())}))})}renderBloomPass(e,r){var n=this;return bt(function*(){const a=yield n.getReadFBOTex();let l=0;for(;l<4;)yield r.render(e,a),n.swap(),l++})()}render(e){var r=this;return bt(function*(){for(let n=0;nr.getName()===e)}init(){const{createFramebuffer:e,createTexture2D:r}=this.rendererService;this.readFBO=e({color:r({width:1,height:1,wrapS:H.CLAMP_TO_EDGE,wrapT:H.CLAMP_TO_EDGE,usage:u3.RENDER_TARGET})}),this.writeFBO=e({color:r({width:1,height:1,wrapS:H.CLAMP_TO_EDGE,wrapT:H.CLAMP_TO_EDGE,usage:u3.RENDER_TARGET})})}isLastEnabledPass(e){for(let r=e+1;r{n({color:[0,0,0,0],depth:1,stencil:0,framebuffer:a}),e.multiPassRenderer.setRenderFlag(!1),e.models.forEach(l=>{l.draw({uniforms:e.layerModel.getUninforms()})}),e.multiPassRenderer.setRenderFlag(!0)})}}const $P=`varying vec2 v_UV; +`)}class i2{constructor(){I(this,"shaderModuleService",void 0),I(this,"rendererService",void 0),I(this,"cameraService",void 0),I(this,"mapService",void 0),I(this,"interactionService",void 0),I(this,"layerService",void 0),I(this,"config",void 0)}getName(){return""}getType(){return C3.Normal}init(e,r){this.config=r,this.rendererService=e.getContainer().rendererService,this.cameraService=e.getContainer().cameraService,this.mapService=e.getContainer().mapService,this.interactionService=e.getContainer().interactionService,this.layerService=e.getContainer().layerService,this.shaderModuleService=e.getContainer().shaderModuleService}render(e){}}class zP extends i2{getName(){return"clear"}init(e,r){super.init(e,r)}render(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}class VP{constructor(e){I(this,"passes",[]),I(this,"layer",void 0),I(this,"renderFlag",void 0),I(this,"width",0),I(this,"height",0),this.postProcessor=e}setLayer(e){this.layer=e}setRenderFlag(e){this.renderFlag=e}getRenderFlag(){return this.renderFlag}getPostProcessor(){return this.postProcessor}render(){var e=this;return bt(function*(){for(const r of e.passes)yield r.render(e.layer);yield e.postProcessor.render(e.layer)})()}resize(e,r){(this.width!==e||this.height!==r)&&(this.postProcessor.resize(e,r),this.width=e,this.height=r)}add(e,r){e.getType()===C3.PostProcessing?this.postProcessor.add(e,this.layer,r):(e.init(this.layer,r),this.passes.push(e))}insert(e,r,n){e.init(this.layer,r),this.passes.splice(n,0,e)}destroy(){this.passes.length=0}}class HP extends i2{constructor(...e){var r;super(...e),r=this,I(this,"pickingFBO",void 0),I(this,"layer",void 0),I(this,"width",0),I(this,"height",0),I(this,"alreadyInRendering",!1),I(this,"pickFromPickingFBO",({x:n,y:a,lngLat:l,type:o})=>{if(!this.layer.isVisible()||!this.layer.needPick(o))return;const{getViewportSize:p,readPixelsAsync:m,useFramebuffer:v}=this.rendererService,{width:E,height:b}=p(),{enableHighlight:A,enableSelect:R}=this.layer.getLayerConfig(),O=n*Qs,D=a*Qs;if(O>E||O<0||D>b||D<0)return;let N;v(this.pickingFBO,bt(function*(){var W;if(N=yield m({x:Math.round(O),y:Math.round(b-(a+1)*Qs),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:r.pickingFBO}),N[0]!==0||N[1]!==0||N[2]!==0){const G=Zh(N),Y=r.layer.getSource().getFeatureById(G),Q={x:n,y:a,type:o,lngLat:l,featureId:G,feature:Y};Y&&(r.layer.setCurrentPickId(G),r.triggerHoverOnLayer(Q))}else{const G={x:n,y:a,lngLat:l,type:r.layer.getCurrentPickId()===null?"un"+o:"mouseout",featureId:null,feature:null};r.triggerHoverOnLayer(_t(_t({},G),{},{type:"unpick"})),r.triggerHoverOnLayer(G),r.layer.setCurrentPickId(null)}A&&r.highlightPickedFeature(N),R&&o==="click"&&((W=N)===null||W===void 0?void 0:W.toString())!==[0,0,0,0].toString()&&r.selectFeature(N)}))})}getType(){return C3.Normal}getName(){return"pixelPicking"}init(e,r){super.init(e,r),this.layer=e;const{createTexture2D:n,createFramebuffer:a,getViewportSize:l}=this.rendererService,{width:o,height:p}=l(),m=n({width:o,height:p,wrapS:H.CLAMP_TO_EDGE,wrapT:H.CLAMP_TO_EDGE,label:"Picking Texture"});this.pickingFBO=a({color:m}),this.interactionService.on(Js.Hover,this.pickFromPickingFBO),this.interactionService.on(Js.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(Js.Active,this.highlightFeatureHandle.bind(this))}render(e){if(this.alreadyInRendering)return;const{getViewportSize:r,useFramebuffer:n,clear:a}=this.rendererService,{width:l,height:o}=r();this.alreadyInRendering=!0,(this.width!==l||this.height!==o)&&(this.pickingFBO.resize({width:l,height:o}),this.width=l,this.height=o),n(this.pickingFBO,()=>{a({framebuffer:this.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});const p=this.layer.multiPassRenderer.getRenderFlag();this.layer.multiPassRenderer.setRenderFlag(!1),e.hooks.beforePickingEncode.call(),e.render(),e.hooks.afterPickingEncode.call(),this.layer.multiPassRenderer.setRenderFlag(p),this.alreadyInRendering=!1})}triggerHoverOnLayer(e){this.layer.emit(e.type,e)}highlightPickedFeature(e){const[r,n,a]=e;this.layer.hooks.beforeHighlight.call([r,n,a]),this.layerService.renderLayers()}selectFeature(e){const[r,n,a]=e;this.layer.hooks.beforeSelect.call([r,n,a]),this.layerService.renderLayers()}selectFeatureHandle({featureId:e}){const r=yp(e);this.selectFeature(new Uint8Array(r))}highlightFeatureHandle({featureId:e}){const r=yp(e);this.highlightPickedFeature(new Uint8Array(r))}}class jP{constructor(e){I(this,"passes",[]),I(this,"readFBO",void 0),I(this,"writeFBO",void 0),this.rendererService=e,this.init()}getReadFBO(){return this.readFBO}getWriteFBO(){return this.writeFBO}getCurrentFBOTex(){const{getViewportSize:e,createTexture2D:r}=this.rendererService,{width:n,height:a}=e();return r({x:0,y:0,width:n,height:a,copy:!0})}getReadFBOTex(){var e=this;const{useFramebuffer:r}=this.rendererService;return new Promise(n=>{r(this.readFBO,bt(function*(){n(e.getCurrentFBOTex())}))})}renderBloomPass(e,r){var n=this;return bt(function*(){const a=yield n.getReadFBOTex();let l=0;for(;l<4;)yield r.render(e,a),n.swap(),l++})()}render(e){var r=this;return bt(function*(){for(let n=0;nr.getName()===e)}init(){const{createFramebuffer:e,createTexture2D:r}=this.rendererService;this.readFBO=e({color:r({width:1,height:1,wrapS:H.CLAMP_TO_EDGE,wrapT:H.CLAMP_TO_EDGE,usage:u3.RENDER_TARGET})}),this.writeFBO=e({color:r({width:1,height:1,wrapS:H.CLAMP_TO_EDGE,wrapT:H.CLAMP_TO_EDGE,usage:u3.RENDER_TARGET})})}isLastEnabledPass(e){for(let r=e+1;r{n({color:[0,0,0,0],depth:1,stencil:0,framebuffer:a}),e.multiPassRenderer.setRenderFlag(!1),e.models.forEach(l=>{l.draw({uniforms:e.layerModel.getUninforms()})}),e.multiPassRenderer.setRenderFlag(!0)})}}const WP=`varying vec2 v_UV; uniform float u_BloomFinal: 0.0; uniform sampler2D u_Texture; @@ -720,14 +720,14 @@ void main() { } else { gl_FragColor = inbloomColor; } -}`,qP=`attribute vec2 a_Position; +}`,GP=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,{isNil:ag}=Ko;class YP extends n1{setupShaders(){this.shaderModuleService.registerModule("blur-pass",{vs:qP,fs:$P});const{vs:e,fs:r,uniforms:n}=this.shaderModuleService.getModule("blur-pass"),{width:a,height:l}=this.rendererService.getViewportSize();return{vs:e,fs:r,uniforms:_t(_t({},n),{},{u_ViewportSize:[a,l]})}}convertOptionsToUniforms(e){const r={};return ag(e.bloomRadius)||(r.u_radius=e.bloomRadius),ag(e.bloomIntensity)||(r.u_intensity=e.bloomIntensity),ag(e.bloomBaseRadio)||(r.u_baseRadio=e.bloomBaseRadio),r}}const KP=`varying vec2 v_UV; +}`,{isNil:ag}=Ko;class ZP extends n1{setupShaders(){this.shaderModuleService.registerModule("blur-pass",{vs:GP,fs:WP});const{vs:e,fs:r,uniforms:n}=this.shaderModuleService.getModule("blur-pass"),{width:a,height:l}=this.rendererService.getViewportSize();return{vs:e,fs:r,uniforms:_t(_t({},n),{},{u_ViewportSize:[a,l]})}}convertOptionsToUniforms(e){const r={};return ag(e.bloomRadius)||(r.u_radius=e.bloomRadius),ag(e.bloomIntensity)||(r.u_intensity=e.bloomIntensity),ag(e.bloomBaseRadio)||(r.u_baseRadio=e.bloomBaseRadio),r}}const $P=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -749,14 +749,14 @@ vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { void main() { gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); -}`,QP=`attribute vec2 a_Position; +}`,qP=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,{isNil:JP}=Ko;class eO extends n1{setupShaders(){this.shaderModuleService.registerModule("blur-pass",{vs:QP,fs:KP});const{vs:e,fs:r,uniforms:n}=this.shaderModuleService.getModule("blur-pass"),{width:a,height:l}=this.rendererService.getViewportSize();return{vs:e,fs:r,uniforms:_t(_t({},n),{},{u_ViewportSize:[a,l]})}}convertOptionsToUniforms(e){const r={};return JP(e.blurRadius)||(r.u_BlurDir=[e.blurRadius,0]),r}}const tO=`varying vec2 v_UV; +}`,{isNil:YP}=Ko;class KP extends n1{setupShaders(){this.shaderModuleService.registerModule("blur-pass",{vs:qP,fs:$P});const{vs:e,fs:r,uniforms:n}=this.shaderModuleService.getModule("blur-pass"),{width:a,height:l}=this.rendererService.getViewportSize();return{vs:e,fs:r,uniforms:_t(_t({},n),{},{u_ViewportSize:[a,l]})}}convertOptionsToUniforms(e){const r={};return YP(e.blurRadius)||(r.u_BlurDir=[e.blurRadius,0]),r}}const QP=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -778,14 +778,14 @@ vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { void main() { gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); -}`,rO=`attribute vec2 a_Position; +}`,JP=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,{isNil:nO}=Ko;class iO extends n1{setupShaders(){this.shaderModuleService.registerModule("blur-pass",{vs:rO,fs:tO});const{vs:e,fs:r,uniforms:n}=this.shaderModuleService.getModule("blur-pass"),{width:a,height:l}=this.rendererService.getViewportSize();return{vs:e,fs:r,uniforms:_t(_t({},n),{},{u_ViewportSize:[a,l]})}}convertOptionsToUniforms(e){const r={};return nO(e.blurRadius)||(r.u_BlurDir=[0,e.blurRadius]),r}}const oO=`varying vec2 v_UV; +}`,{isNil:eO}=Ko;class tO extends n1{setupShaders(){this.shaderModuleService.registerModule("blur-pass",{vs:JP,fs:QP});const{vs:e,fs:r,uniforms:n}=this.shaderModuleService.getModule("blur-pass"),{width:a,height:l}=this.rendererService.getViewportSize();return{vs:e,fs:r,uniforms:_t(_t({},n),{},{u_ViewportSize:[a,l]})}}convertOptionsToUniforms(e){const r={};return eO(e.blurRadius)||(r.u_BlurDir=[0,e.blurRadius]),r}}const rO=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -828,27 +828,27 @@ vec4 colorHalftone_filterColor(vec4 color, vec2 texSize, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = colorHalftone_filterColor(gl_FragColor, u_ViewportSize, v_UV); -}`,aO=`attribute vec2 a_Position; +}`,nO=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`;class sO extends n1{setupShaders(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:aO,fs:oO});const{vs:e,fs:r,uniforms:n}=this.shaderModuleService.getModule("colorhalftone-pass"),{width:a,height:l}=this.rendererService.getViewportSize();return{vs:e,fs:r,uniforms:_t(_t({},n),{},{u_ViewportSize:[a,l]})}}}const lO=`varying vec2 v_UV; +}`;class iO extends n1{setupShaders(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:nO,fs:rO});const{vs:e,fs:r,uniforms:n}=this.shaderModuleService.getModule("colorhalftone-pass"),{width:a,height:l}=this.rendererService.getViewportSize();return{vs:e,fs:r,uniforms:_t(_t({},n),{},{u_ViewportSize:[a,l]})}}}const oO=`varying vec2 v_UV; uniform sampler2D u_Texture; void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); -}`,uO=`attribute vec2 a_Position; +}`,aO=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`;class cO extends n1{setupShaders(){return this.shaderModuleService.registerModule("copy-pass",{vs:uO,fs:lO}),this.shaderModuleService.getModule("copy-pass")}}const hO=`varying vec2 v_UV; +}`;class sO extends n1{setupShaders(){return this.shaderModuleService.registerModule("copy-pass",{vs:aO,fs:oO}),this.shaderModuleService.getModule("copy-pass")}}const lO=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -891,14 +891,14 @@ vec4 hexagonalPixelate_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoor void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = hexagonalPixelate_sampleColor(u_Texture, u_ViewportSize, v_UV); -}`,fO=`attribute vec2 a_Position; +}`,uO=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`;class pO extends n1{setupShaders(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:fO,fs:hO});const{vs:e,fs:r,uniforms:n}=this.shaderModuleService.getModule("hexagonalpixelate-pass"),{width:a,height:l}=this.rendererService.getViewportSize();return{vs:e,fs:r,uniforms:_t(_t({},n),{},{u_ViewportSize:[a,l]})}}}const dO=`varying vec2 v_UV; +}`;class cO extends n1{setupShaders(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:uO,fs:lO});const{vs:e,fs:r,uniforms:n}=this.shaderModuleService.getModule("hexagonalpixelate-pass"),{width:a,height:l}=this.rendererService.getViewportSize();return{vs:e,fs:r,uniforms:_t(_t({},n),{},{u_ViewportSize:[a,l]})}}}const hO=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -931,14 +931,14 @@ vec4 ink_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = ink_sampleColor(u_Texture, u_ViewportSize, v_UV); -}`,mO=`attribute vec2 a_Position; +}`,fO=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`;class _O extends n1{setupShaders(){this.shaderModuleService.registerModule("ink-pass",{vs:mO,fs:dO});const{vs:e,fs:r,uniforms:n}=this.shaderModuleService.getModule("ink-pass"),{width:a,height:l}=this.rendererService.getViewportSize();return{vs:e,fs:r,uniforms:_t(_t({},n),{},{u_ViewportSize:[a,l]})}}}const gO=`varying vec2 v_UV; +}`;class pO extends n1{setupShaders(){this.shaderModuleService.registerModule("ink-pass",{vs:fO,fs:hO});const{vs:e,fs:r,uniforms:n}=this.shaderModuleService.getModule("ink-pass"),{width:a,height:l}=this.rendererService.getViewportSize();return{vs:e,fs:r,uniforms:_t(_t({},n),{},{u_ViewportSize:[a,l]})}}}const dO=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform float u_Amount : 0.5; @@ -959,21 +959,21 @@ vec4 noise_filterColor(vec4 color, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = noise_filterColor(gl_FragColor, v_UV); -}`,vO=`attribute vec2 a_Position; +}`,mO=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`;class yO extends n1{setupShaders(){return this.shaderModuleService.registerModule("noise-pass",{vs:vO,fs:gO}),this.shaderModuleService.getModule("noise-pass")}}const xO=`attribute vec2 a_Position; +}`;class _O extends n1{setupShaders(){return this.shaderModuleService.registerModule("noise-pass",{vs:mO,fs:dO}),this.shaderModuleService.getModule("noise-pass")}}const gO=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,bO=`varying vec2 v_UV; +}`,vO=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -994,7 +994,7 @@ vec4 sepia_filterColor(vec4 color) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = sepia_filterColor(gl_FragColor); -}`;class EO extends n1{setupShaders(){return this.shaderModuleService.registerModule("sepia-pass",{vs:xO,fs:bO}),this.shaderModuleService.getModule("sepia-pass")}}const X7=new AM;let TO=0;function AO(){const t=new VP,e=new RM,r=new mM,n=new CM(r),a=new fM,l=new dM,o=new vM,p=new yM,m=new gM,v={id:`${TO++}`,globalConfigService:X7,shaderModuleService:t,debugService:e,cameraService:r,coordinateSystemService:n,fontService:a,iconService:l,markerService:o,popupService:p,controlService:m,customRenderService:{}},E=new NM(v);v.layerService=E;const b=new IP(v);v.sceneService=b;const A=new PM(v);v.interactionService=A;const R=new BM(v);v.pickingService=R;const O={clear:new jP,pixelPicking:new WP,render:new ZP};v.normalPassFactory=N=>O[N];const D={copy:new cO,bloom:new YP,blurH:new eO,blurV:new iO,noise:new yO,sepia:new EO,colorHalftone:new sO,hexagonalPixelate:new pO,ink:new _O};return v.postProcessingPass=D,v.postProcessingPassFactory=N=>D[N],v}function Jd(t){const e=_t({},t);return e.postProcessor=new GP(e.rendererService),e.multiPassRenderer=new XP(e.postProcessor),e.styleAttributeService=new jM(e.rendererService),e}const A0=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"];let Ja=function(t){return t.IMAGE="image",t.CUSTOMIMAGE="customImage",t.ARRAYBUFFER="arraybuffer",t.RGB="rgb",t.TERRAINRGB="terrainRGB",t.CUSTOMRGB="customRGB",t.CUSTOMARRAYBUFFER="customArrayBuffer",t.CUSTOMTERRAINRGB="customTerrainRGB",t}({});var W7=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),SO=(t,e,r,n)=>W7(void 0,null,function*(){return new Promise((a,l)=>{e({x:t.x,y:t.y,z:t.z},(o,p)=>{if(o||p.length===0){l(o);return}p&&Zg([{data:p,bands:[0]}],r,n,(m,v)=>{m?l(m):v&&a(v)})})})}),wO=(t,e)=>W7(void 0,null,function*(){return new Promise((r,n)=>{e({x:t.x,y:t.y,z:t.z},(a,l)=>{if(a||!l){n(a);return}l instanceof ArrayBuffer?bS(l,(o,p)=>{o&&n(o),r(p)}):l instanceof HTMLImageElement?r(l):n(a)})})});function CO(t,e){return Array.isArray(t)?typeof t[0]=="string"?t.map(r=>pp(r,e)):t.map(r=>({url:pp(r.url,e),bands:r.bands||[0]})):pp(t,e)}function RO(t){return typeof t=="string"?[{url:t,bands:[0]}]:typeof t[0]=="string"?t.map(e=>({url:e,bands:[0]})):t}function I5(t,e){t.xhrCancel=()=>{e.map(r=>{r.abort()})}}var IO=Object.defineProperty,MO=Object.defineProperties,PO=Object.getOwnPropertyDescriptors,M5=Object.getOwnPropertySymbols,OO=Object.prototype.hasOwnProperty,LO=Object.prototype.propertyIsEnumerable,P5=(t,e,r)=>e in t?IO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,O5=(t,e)=>{for(var r in e||(e={}))OO.call(e,r)&&P5(t,r,e[r]);if(M5)for(var r of M5(e))LO.call(e,r)&&P5(t,r,e[r]);return t},L5=(t,e)=>MO(t,PO(e)),G7=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),DO=(t,e,r,n,a)=>G7(void 0,null,function*(){const l=RO(e.url);if(l.length>1){const{rasterFiles:o,xhrList:p,errList:m}=yield BO(l,e);if(I5(t,p),m.length>0){r(m,null);return}Zg(o,n,a,r)}else{const o=jv(e,(p,m)=>{if(p)r(p);else if(m){const v=[{data:m,bands:l[0].bands}];Zg(v,n,a,r)}});I5(t,[o])}});function BO(t,e){return G7(this,null,function*(){const r=[],n=[],a=[];for(let l=0;le in t?FO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Q0=(t,e)=>{for(var r in e||(e={}))UO.call(e,r)&&B5(t,r,e[r]);if(D5)for(var r of D5(e))zO.call(e,r)&&B5(t,r,e[r]);return t},Z7=(t,e)=>NO(t,kO(e)),$7=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),VO=(t,e,r,n)=>$7(void 0,null,function*(){const{format:a=q7,operation:l,requestParameters:o={}}=n,p=Z7(Q0({},o),{url:CO(t,e)});return new Promise((m,v)=>{DO(r,p,(E,b)=>{E?v(E):b&&m(b)},a,l)})}),F5=(t,e,r,n)=>$7(void 0,null,function*(){let a;const l=Array.isArray(t)?t[0]:t;return n.wmtsOptions?a=((n==null?void 0:n.getURLFromTemplate)||IC)(l,Q0(Q0({},e),n.wmtsOptions)):a=((n==null?void 0:n.getURLFromTemplate)||pp)(l,e),new Promise((o,p)=>{var m;const v=Bg(Z7(Q0({},n==null?void 0:n.requestParameters),{url:a,type:((m=n==null?void 0:n.requestParameters)==null?void 0:m.type)||"arrayBuffer"}),(E,b)=>{E?p(E):b&&o(b)},n.transformResponse);r.xhrCancel=()=>v.cancel()})}),q7=()=>({rasterData:new Uint8Array([0]),width:1,height:1}),HO=Object.defineProperty,jO=Object.defineProperties,XO=Object.getOwnPropertyDescriptors,N5=Object.getOwnPropertySymbols,WO=Object.prototype.hasOwnProperty,GO=Object.prototype.propertyIsEnumerable,k5=(t,e,r)=>e in t?HO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,U5=(t,e)=>{for(var r in e||(e={}))WO.call(e,r)&&k5(t,r,e[r]);if(N5)for(var r of N5(e))GO.call(e,r)&&k5(t,r,e[r]);return t},ZO=(t,e)=>jO(t,XO(e)),$O={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0,warp:!0};Ja.ARRAYBUFFER,Ja.RGB;function qO(t){return!!(Array.isArray(t)&&t.length===0||!Array.isArray(t)&&typeof t!="string")}function YO(t,e={}){if(qO(t))throw new Error("tile server url is error");const{extent:r=[1/0,1/0,-1/0,-1/0],coordinates:n}=e;let a=(e==null?void 0:e.dataType)||Ja.IMAGE;a===Ja.RGB&&(a=Ja.ARRAYBUFFER);const l=(m,v)=>{switch(a){case Ja.IMAGE:return F5(t,m,v,e);case Ja.CUSTOMIMAGE:case Ja.CUSTOMTERRAINRGB:return wO(v,e==null?void 0:e.getCustomData);case Ja.ARRAYBUFFER:return VO(t,m,v,e);case Ja.CUSTOMARRAYBUFFER:case Ja.CUSTOMRGB:return SO(v,e==null?void 0:e.getCustomData,(e==null?void 0:e.format)||q7,e==null?void 0:e.operation);default:return F5(t,m,v,e)}},o=ZO(U5(U5({},$O),e),{getTileData:l}),p=Fp(n,r);return{data:t,dataArray:[{_id:1,coordinates:p}],tilesetOptions:o,isTile:!0}}var KO=Object.defineProperty,QO=Object.defineProperties,JO=Object.getOwnPropertyDescriptors,xm=Object.getOwnPropertySymbols,Y7=Object.prototype.hasOwnProperty,K7=Object.prototype.propertyIsEnumerable,z5=(t,e,r)=>e in t?KO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,eL=(t,e)=>{for(var r in e||(e={}))Y7.call(e,r)&&z5(t,r,e[r]);if(xm)for(var r of xm(e))K7.call(e,r)&&z5(t,r,e[r]);return t},tL=(t,e)=>QO(t,JO(e)),rL=(t,e)=>{var r={};for(var n in t)Y7.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&xm)for(var n of xm(t))e.indexOf(n)<0&&K7.call(t,n)&&(r[n]=t[n]);return r};function nL(t,e){const r=e,{extent:n=[121.168,30.2828,121.384,30.4219],coordinates:a,width:l,height:o}=r,p=rL(r,["extent","coordinates","width","height"]);t.length<2&&console.warn("RGB解析需要2个波段的数据");const[m,v]=p.bands||[0,1],E=[t[m],t[v]],b=[];for(let O=0;Oe in t?iL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,sL=(t,e)=>{for(var r in e||(e={}))Q7.call(e,r)&&V5(t,r,e[r]);if(bm)for(var r of bm(e))J7.call(e,r)&&V5(t,r,e[r]);return t},lL=(t,e)=>oL(t,aL(e)),uL=(t,e)=>{var r={};for(var n in t)Q7.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&bm)for(var n of bm(t))e.indexOf(n)<0&&J7.call(t,n)&&(r[n]=t[n]);return r};function cL(t,e){const r=e,{extent:n,coordinates:a,width:l,height:o}=r,p=uL(r,["extent","coordinates","width","height"]);t.length<3&&console.warn("RGB解析需要三个波段的数据");const[m,v,E]=p.bands||[0,1,2],b=[t[m],t[v],t[E]],A=[],[R,O]=(p==null?void 0:p.countCut)||[2,98],D=(p==null?void 0:p.RMinMax)||mp(b[0],R,O),N=(p==null?void 0:p.GMinMax)||mp(b[1],R,O),W=(p==null?void 0:p.BMinMax)||mp(b[2],R,O);for(let Q=0;Qe in t?hL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,dL=(t,e)=>{for(var r in e||(e={}))eb.call(e,r)&&H5(t,r,e[r]);if(Em)for(var r of Em(e))tb.call(e,r)&&H5(t,r,e[r]);return t},mL=(t,e)=>fL(t,pL(e)),_L=(t,e)=>{var r={};for(var n in t)eb.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Em)for(var n of Em(t))e.indexOf(n)<0&&tb.call(t,n)&&(r[n]=t[n]);return r};function gL(t,e){const r=e,{extent:n,coordinates:a,min:l,max:o,width:p,height:m,format:v,operation:E}=r,b=_L(r,["extent","coordinates","min","max","width","height","format","operation"]);let A;if(v===void 0||d7(t))A=Array.from(t);else{const D=Array.isArray(t)?t:[t];A=Jv(D,v,E)}const R=Fp(a,n);return{_id:1,dataArray:[mL(dL({_id:1,data:A,width:p,height:m},b),{min:l,max:o,coordinates:R})]}}var vL=Object.defineProperty,yL=Object.defineProperties,xL=Object.getOwnPropertyDescriptors,j5=Object.getOwnPropertySymbols,bL=Object.prototype.hasOwnProperty,EL=Object.prototype.propertyIsEnumerable,X5=(t,e,r)=>e in t?vL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,W5=(t,e)=>{for(var r in e||(e={}))bL.call(e,r)&&X5(t,r,e[r]);if(j5)for(var r of j5(e))EL.call(e,r)&&X5(t,r,e[r]);return t},TL=(t,e)=>yL(t,xL(e)),AL=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),SL={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},wL=t=>AL(void 0,null,function*(){return new Promise(e=>{const[r,n,a,l]=t.bounds,o={layers:{testTile:{features:[{type:"Feature",properties:{key:t.x+"/"+t.y+"/"+t.z,x:(r+a)/2,y:(n+l)/2},geometry:{type:"LineString",coordinates:[[a,l],[a,n],[r,n],[r,n]]}}]}}};e(o)})});function CL(t,e){const r=a=>wL(a),n=TL(W5(W5({},SL),e),{getTileData:r});return{data:t,dataArray:[],tilesetOptions:n,isTile:!0}}var rb={exports:{}};(function(t,e){(function(r,n){t.exports=n()})($m,function(){function r(Ve,Te,Fe,He,nt,Ut){if(!(nt-He<=Fe)){var $t=He+nt>>1;n(Ve,Te,$t,He,nt,Ut%2),r(Ve,Te,Fe,He,$t-1,Ut+1),r(Ve,Te,Fe,$t+1,nt,Ut+1)}}function n(Ve,Te,Fe,He,nt,Ut){for(;nt>He;){if(nt-He>600){var $t=nt-He+1,Ht=Fe-He+1,Or=Math.log($t),mr=.5*Math.exp(2*Or/3),yr=.5*Math.sqrt(Or*mr*($t-mr)/$t)*(Ht-$t/2<0?-1:1),Yr=Math.max(He,Math.floor(Fe-Ht*mr/$t+yr)),Jr=Math.min(nt,Math.floor(Fe+($t-Ht)*mr/$t+yr));n(Ve,Te,Fe,Yr,Jr,Ut)}var vn=Te[2*Fe+Ut],Rn=He,nn=nt;for(a(Ve,Te,He,Fe),Te[2*nt+Ut]>vn&&a(Ve,Te,He,nt);Rnvn;)nn--}Te[2*He+Ut]===vn?a(Ve,Te,He,nn):(nn++,a(Ve,Te,nn,nt)),nn<=Fe&&(He=nn+1),Fe<=nn&&(nt=nn-1)}}function a(Ve,Te,Fe,He){l(Ve,Fe,He),l(Te,2*Fe,2*He),l(Te,2*Fe+1,2*He+1)}function l(Ve,Te,Fe){var He=Ve[Te];Ve[Te]=Ve[Fe],Ve[Fe]=He}function o(Ve,Te,Fe,He,nt,Ut,$t){for(var Ht=[0,Ve.length-1,0],Or=[],mr,yr;Ht.length;){var Yr=Ht.pop(),Jr=Ht.pop(),vn=Ht.pop();if(Jr-vn<=$t){for(var Rn=vn;Rn<=Jr;Rn++)mr=Te[2*Rn],yr=Te[2*Rn+1],mr>=Fe&&mr<=nt&&yr>=He&&yr<=Ut&&Or.push(Ve[Rn]);continue}var nn=Math.floor((vn+Jr)/2);mr=Te[2*nn],yr=Te[2*nn+1],mr>=Fe&&mr<=nt&&yr>=He&&yr<=Ut&&Or.push(Ve[nn]);var Yi=(Yr+1)%2;(Yr===0?Fe<=mr:He<=yr)&&(Ht.push(vn),Ht.push(nn-1),Ht.push(Yi)),(Yr===0?nt>=mr:Ut>=yr)&&(Ht.push(nn+1),Ht.push(Jr),Ht.push(Yi))}return Or}function p(Ve,Te,Fe,He,nt,Ut){for(var $t=[0,Ve.length-1,0],Ht=[],Or=nt*nt;$t.length;){var mr=$t.pop(),yr=$t.pop(),Yr=$t.pop();if(yr-Yr<=Ut){for(var Jr=Yr;Jr<=yr;Jr++)m(Te[2*Jr],Te[2*Jr+1],Fe,He)<=Or&&Ht.push(Ve[Jr]);continue}var vn=Math.floor((Yr+yr)/2),Rn=Te[2*vn],nn=Te[2*vn+1];m(Rn,nn,Fe,He)<=Or&&Ht.push(Ve[vn]);var Yi=(mr+1)%2;(mr===0?Fe-nt<=Rn:He-nt<=nn)&&($t.push(Yr),$t.push(vn-1),$t.push(Yi)),(mr===0?Fe+nt>=Rn:He+nt>=nn)&&($t.push(vn+1),$t.push(yr),$t.push(Yi))}return Ht}function m(Ve,Te,Fe,He){var nt=Ve-Fe,Ut=Te-He;return nt*nt+Ut*Ut}var v=function(Ve){return Ve[0]},E=function(Ve){return Ve[1]},b=function(Te,Fe,He,nt,Ut){Fe===void 0&&(Fe=v),He===void 0&&(He=E),nt===void 0&&(nt=64),Ut===void 0&&(Ut=Float64Array),this.nodeSize=nt,this.points=Te;for(var $t=Te.length<65536?Uint16Array:Uint32Array,Ht=this.ids=new $t(Te.length),Or=this.coords=new Ut(Te.length*2),mr=0;mr=nt;yr--){var Yr=+Date.now();Or=this._cluster(Or,yr),this.trees[yr]=new b(Or,ke,ct,$t,Float32Array),He&&console.log("z%d: %d clusters in %dms",yr,Or.length,+Date.now()-Yr)}return He&&console.timeEnd("total time"),this},O.prototype.getClusters=function(Te,Fe){var He=((Te[0]+180)%360+360)%360-180,nt=Math.max(-90,Math.min(90,Te[1])),Ut=Te[2]===180?180:((Te[2]+180)%360+360)%360-180,$t=Math.max(-90,Math.min(90,Te[3]));if(Te[2]-Te[0]>=360)He=-180,Ut=180;else if(He>Ut){var Ht=this.getClusters([He,nt,180,$t],Fe),Or=this.getClusters([-180,nt,Ut,$t],Fe);return Ht.concat(Or)}for(var mr=this.trees[this._limitZoom(Fe)],yr=mr.range(Y(He),Q($t),Y(Ut),Q(nt)),Yr=[],Jr=0,vn=yr;JrFe&&(nn+=qe.numPoints||1)}if(nn>Rn&&nn>=Or){for(var Yt=Yr.x*Rn,wr=Yr.y*Rn,St=Ht&&Rn>1?this._map(Yr,!0):null,Er=(yr<<5)+(Fe+1)+this.points.length,on=0,yn=vn;on1)for(var eo=0,ei=vn;eo>5},O.prototype._getOriginZoom=function(Te){return(Te-this.points.length)%32},O.prototype._map=function(Te,Fe){if(Te.numPoints)return Fe?ce({},Te.properties):Te.properties;var He=this.points[Te.index].properties,nt=this.options.map(He);return Fe&&nt===He?ce({},nt):nt};function D(Ve,Te,Fe,He,nt){return{x:R(Ve),y:R(Te),zoom:1/0,id:Fe,parentId:-1,numPoints:He,properties:nt}}function N(Ve,Te){var Fe=Ve.geometry.coordinates,He=Fe[0],nt=Fe[1];return{x:R(Y(He)),y:R(Q(nt)),zoom:1/0,index:Te,parentId:-1}}function W(Ve){return{type:"Feature",id:Ve.id,properties:G(Ve),geometry:{type:"Point",coordinates:[J(Ve.x),Se(Ve.y)]}}}function G(Ve){var Te=Ve.numPoints,Fe=Te>=1e4?Math.round(Te/1e3)+"k":Te>=1e3?Math.round(Te/100)/10+"k":Te;return ce(ce({},Ve.properties),{cluster:!0,cluster_id:Ve.id,point_count:Te,point_count_abbreviated:Fe})}function Y(Ve){return Ve/360+.5}function Q(Ve){var Te=Math.sin(Ve*Math.PI/180),Fe=.5-.25*Math.log((1+Te)/(1-Te))/Math.PI;return Fe<0?0:Fe>1?1:Fe}function J(Ve){return(Ve-.5)*360}function Se(Ve){var Te=(180-Ve*360)*Math.PI/180;return 360*Math.atan(Math.exp(Te))/Math.PI-90}function ce(Ve,Te){for(var Fe in Te)Ve[Fe]=Te[Fe];return Ve}function ke(Ve){return Ve.x}function ct(Ve){return Ve.y}return O})})(rb);var RL=rb.exports;const IL=Co(RL);var ML=Object.defineProperty,G5=Object.getOwnPropertySymbols,PL=Object.prototype.hasOwnProperty,OL=Object.prototype.propertyIsEnumerable,Z5=(t,e,r)=>e in t?ML(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,nb=(t,e)=>{for(var r in e||(e={}))PL.call(e,r)&&Z5(t,r,e[r]);if(G5)for(var r of G5(e))OL.call(e,r)&&Z5(t,r,e[r]);return t};function ib(t,e){const{radius:r=40,maxZoom:n=18,minZoom:a=0,zoom:l=2}=e;if(t.pointIndex){const m=t.pointIndex.getClusters(t.extent,Math.floor(l));return t.dataArray=LL(m),t}const o=new IL({radius:r,minZoom:a,maxZoom:n}),p={type:"FeatureCollection",features:[]};return p.features=t.dataArray.map(m=>({type:"Feature",geometry:{type:"Point",coordinates:m.coordinates},properties:nb({},m)})),o.load(p.features),o}function LL(t){return t.map((e,r)=>nb({coordinates:e.geometry.coordinates,_id:r+1},e.properties))}function DL(t){if(t.length===0)throw new Error("max requires at least one data point");let e=t[0];for(let r=1;re&&(e=t[r]);return e}function BL(t){if(t.length===0)throw new Error("min requires at least one data point");let e=t[0];for(let r=1;r=Math.abs(t[a])?r+=e-n+t[a]:r+=t[a]-n+e,e=n;return e+r*1}function FL(t){if(t.length===0)throw new Error("mean requires at least one data point");return ob(t)/t.length}var NL={min:BL,max:DL,mean:FL,sum:ob},kL=Object.defineProperty,$5=Object.getOwnPropertySymbols,UL=Object.prototype.hasOwnProperty,zL=Object.prototype.propertyIsEnumerable,q5=(t,e,r)=>e in t?kL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,bd=(t,e)=>{for(var r in e||(e={}))UL.call(e,r)&&q5(t,r,e[r]);if($5)for(var r of $5(e))zL.call(e,r)&&q5(t,r,e[r]);return t},Y5=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),{cloneDeep:VL,isFunction:K5,isString:HL,mergeWith:jL}=Ko;function XL(t,e){if(Array.isArray(e))return e}var WL=class extends Ps.EventEmitter{constructor(t,e){super(),this.type="source",this.isTile=!1,this.inited=!1,this.hooks={init:new pc},this.parser={type:"geojson"},this.transforms=[],this.cluster=!1,this.clusterOptions={enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"},this.invalidExtent=!1,this.dataArrayChanged=!1,this.cfg={autoRender:!0},this.originData=t,this.initCfg(e),this.init().then(()=>{this.inited=!0,this.emit("update",{type:"inited"})})}getSourceCfg(){return this.cfg}getClusters(t){return this.clusterIndex.getClusters(this.caculClusterExtent(2),t)}getClustersLeaves(t){return this.clusterIndex.getLeaves(t,1/0)}getParserType(){return this.parser.type}updateClusterData(t){const{method:e="sum",field:r}=this.clusterOptions;let n=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(t));this.clusterOptions.zoom=t,n.forEach(a=>{a.id||(a.properties.point_count=1)}),(r||K5(e))&&(n=n.map(a=>{const l=a.id;if(l){const p=this.clusterIndex.getLeaves(l,1/0).map(v=>v.properties);let m;if(HL(e)&&r){const v=OC(p,r);m=NL[e](v)}K5(e)&&(m=e(p)),a.properties.stat=m}else a.properties.point_count=1;return a})),this.data=ry("geojson")({type:"FeatureCollection",features:n}),this.executeTrans()}getFeatureById(t){const{type:e="geojson",geometry:r}=this.parser;if(e==="geojson"&&!this.cluster){const n=to._id===t);a.properties=l}return a}else return e==="json"&&r?this.data.dataArray.find(n=>n._id===t):tr._id===t?bd(bd({},r),e):r),this.dataArrayChanged=!0,this.emit("update",{type:"update"})}getFeatureId(t,e){const r=this.data.dataArray.find(n=>n[t]===e);return r==null?void 0:r._id}setData(t,e){this.originData=t,this.dataArrayChanged=!1,this.initCfg(e),this.init().then(()=>{this.emit("update",{type:"update"})})}reloadAllTile(){var t;(t=this.tileset)==null||t.reloadAll()}reloadTilebyId(t,e,r){var n;(n=this.tileset)==null||n.reloadTileById(t,e,r)}reloadTileByLnglat(t,e,r){var n;(n=this.tileset)==null||n.reloadTileByLnglat(t,e,r)}getTileExtent(t,e){var r;return(r=this.tileset)==null?void 0:r.getTileExtent(t,e)}getTileByZXY(t,e,r){var n;return(n=this.tileset)==null?void 0:n.getTileByZXY(t,e,r)}reloadTileByExtent(t,e){var r;(r=this.tileset)==null||r.reloadTileByExtent(t,e)}destroy(){var t;this.removeAllListeners(),this.originData=null,this.clusterIndex=null,this.data=null,(t=this.tileset)==null||t.destroy()}processData(){return Y5(this,null,function*(){return new Promise((t,e)=>{try{this.excuteParser(),this.initCluster(),this.executeTrans(),t({})}catch(r){e(r)}})})}initCfg(t){this.cfg=jL(this.cfg,t,XL);const e=this.cfg;e&&(e.parser&&(this.parser=e.parser),e.transforms&&(this.transforms=e.transforms),this.cluster=e.cluster||!1,e.clusterOptions&&(this.cluster=!0,this.clusterOptions=bd(bd({},this.clusterOptions),e.clusterOptions)))}init(){return Y5(this,null,function*(){this.inited=!1,yield this.processData(),this.inited=!0})}excuteParser(){const t=this.parser,e=t.type||"geojson",r=ry(e);this.data=r(this.originData,t),this.tileset=this.initTileset(),!t.cancelExtent&&(this.extent=Gw(this.data.dataArray),this.setCenter(this.extent),this.invalidExtent=this.extent[0]===this.extent[2]||this.extent[1]===this.extent[3])}setCenter(t){this.center=[(t[0]+t[2])/2,(t[1]+t[3])/2],(isNaN(this.center[0])||isNaN(this.center[1]))&&(this.center=[108.92361111111111,34.54083333333333])}initTileset(){const{tilesetOptions:t}=this.data;return t?(this.isTile=!0,this.tileset?(this.tileset.updateOptions(t),this.tileset):new RC(bd({},t))):void 0}executeTrans(){this.transforms.forEach(e=>{const{type:r}=e,n=JA(r)(this.data,e);Object.assign(this.data,n)})}initCluster(){if(!this.cluster)return;const t=this.clusterOptions||{};this.clusterIndex=ib(this.data,t)}caculClusterExtent(t){let e=[[-1/0,-1/0],[1/0,1/0]];return this.invalidExtent||(e=qv(_m(this.extent),t)),e[0].concat(e[1])}};function GL(t,e){const{callback:r}=e;return r&&(t.dataArray=t.dataArray.filter(r)),t}var o2=6378e3;function ZL(t,e){const r=t.dataArray,{size:n=10}=e,a=n/(2*Math.PI*o2)*(256<<20)/2,{gridHash:l,gridOffset:o}=$L(r,n),p=QL(l,o,e);return{yOffset:a,xOffset:a,radius:a,type:"grid",dataArray:p}}function $L(t,e){let r=1/0,n=-1/0,a;for(const m of t)a=m.coordinates[1],Number.isFinite(a)&&(r=an?a:n);const l=(r+n)/2,o=qL(e,l);if(o.xOffset<=0||o.yOffset<=0)return{gridHash:{},gridOffset:o};const p={};for(const m of t){const v=m.coordinates[1],E=m.coordinates[0];if(Number.isFinite(v)&&Number.isFinite(E)){const b=Math.floor((v+90)/o.yOffset),A=Math.floor((E+180)/o.xOffset),R=`${b}-${A}`;p[R]=p[R]||{count:0,points:[]},p[R].count+=1,p[R].points.push(m)}}return{gridHash:p,gridOffset:o}}function qL(t,e){const r=YL(t),n=KL(e,t);return{yOffset:r,xOffset:n}}function YL(t){return t/o2*(180/Math.PI)}function KL(t,e){return e/o2*(180/Math.PI)/Math.cos(t*Math.PI/180)}function QL(t,e,r){return Object.keys(t).reduce((n,a,l)=>{const o=a.split("-"),p=parseInt(o[0],10),m=parseInt(o[1],10),v={};if(r.field&&r.method){const E=s7(t[a].points,r.field);v[r.method]=a7[r.method](E)}return Object.assign(v,{_id:l,coordinates:su([-180+e.xOffset*(m+.5),-90+e.yOffset*(p+.5)]),rawData:t[a].points,count:t[a].count}),n.push(v),n},[])}var rp=Math.PI/3,JL=[0,rp,2*rp,3*rp,4*rp,5*rp];function eD(t){return t[0]}function tD(t){return t[1]}function rD(){var t=0,e=0,r=1,n=1,a=eD,l=tD,o,p,m;function v(b){var A={},R=[],O,D=b.length;for(O=0;O1){var Se=W-Q,ce=Q+(Wct*ct+Ve*Ve&&(Q=ce+(Y&1?1:-1)/2,Y=ke)}var Te=Q+"-"+Y,Fe=A[Te];Fe?Fe.push(N):(R.push(Fe=A[Te]=[N]),Fe.x=(Q+(Y&1)/2)*p,Fe.y=Y*m)}return R}function E(b){var A=0,R=0;return JL.map(function(O){var D=Math.sin(O)*b,N=-Math.cos(O)*b,W=D-A,G=N-R;return A=D,R=N,[W,G]})}return v.hexagon=function(b){return"m"+E(b==null?o:+b).join("l")+"z"},v.centers=function(){for(var b=[],A=Math.round(e/m),R=Math.round(t/p),O=A*m;Oe in t?nD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,lD=(t,e)=>{for(var r in e||(e={}))aD.call(e,r)&&J5(t,r,e[r]);if(Q5)for(var r of Q5(e))sD.call(e,r)&&J5(t,r,e[r]);return t},uD=(t,e)=>iD(t,oD(e)),cD=6378e3;function hD(t,e){const r=t.dataArray,{size:n=10,method:a="sum"}=e,l=n/(2*Math.PI*cD)*(256<<20)/2,o=r.map(E=>{const[b,A]=su(E.coordinates);return uD(lD({},E),{coordinates:[b,A]})});return{dataArray:rD().radius(l).x(E=>E.coordinates[0]).y(E=>E.coordinates[1])(o).map((E,b)=>{if(e.field&&a){const A=s7(E,e.field);E[a]=a7[a](A)}return{[e.method]:E[a],count:E.length,rawData:E,coordinates:[E.x,E.y],_id:b}}),radius:l,xOffset:l,yOffset:l,type:"hexagon"}}var fD=Object.defineProperty,e6=Object.getOwnPropertySymbols,pD=Object.prototype.hasOwnProperty,dD=Object.prototype.propertyIsEnumerable,t6=(t,e,r)=>e in t?fD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,r6=(t,e)=>{for(var r in e||(e={}))pD.call(e,r)&&t6(t,r,e[r]);if(e6)for(var r of e6(e))dD.call(e,r)&&t6(t,r,e[r]);return t};function mD(t,e){const{sourceField:r,targetField:n,data:a}=e,l={};return a.forEach(o=>{l[o[r]]=o}),t.dataArray=t.dataArray.map(o=>{const p=o[n];return r6(r6({},o),l[p])}),t}function _D(t,e){const{callback:r}=e;return r&&(t.dataArray=t.dataArray.map(r)),t}Cl("rasterTile",YO);Cl("mvt",MI);Cl("geojsonvt",bR);Cl("testTile",CL);Cl("geojson",$C);Cl("jsonTile",BR);Cl("image",y7);Cl("csv",kC);Cl("json",m7);Cl("raster",XI);Cl("rasterRgb",gL);Cl("rgb",cL);Cl("ndi",nL);Bp("cluster",ib);Bp("filter",GL);Bp("join",mD);Bp("map",_D);Bp("grid",ZL);Bp("hexagon",hD);var a2=WL;class n6 extends Ps.EventEmitter{getMarkerLayerContainerSize(){}constructor(e){super(),I(this,"markerOption",void 0),I(this,"popup",void 0),I(this,"mapsService",void 0),I(this,"lngLat",void 0),I(this,"scene",void 0),I(this,"added",!1),I(this,"preLngLat",{lng:0,lat:0}),I(this,"onMarkerDragStart",r=>{const n=this.mapsService.getContainer();if(!n)return;this.mapsService.setMapStatus({dragEnable:!1,zoomEnable:!1});const{left:a,top:l}=n.getClientRects()[0],{x:o,y:p}=r;this.preLngLat=this.mapsService.containerToLngLat([o-a,p-l]),this.mapsService.on("mousemove",this.onMarkerDragMove),document.addEventListener("mouseup",this.onMarkerDragEnd),this.emit("dragstart",this.lngLat)}),I(this,"onMarkerDragMove",r=>{const n=r.lngLat||r.lnglat,{lng:a,lat:l}=this.preLngLat,{lng:o,lat:p}=n,m={lng:this.lngLat.lng+o-a,lat:this.lngLat.lat+p-l};this.setLnglat(m),this.preLngLat=n,this.emit("dragging",m)}),I(this,"onMarkerDragEnd",()=>{this.mapsService.setMapStatus({dragEnable:!0,zoomEnable:!0}),this.mapsService.off("mousemove",this.onMarkerDragMove),document.removeEventListener("mouseup",this.onMarkerDragEnd),this.emit("dragend",this.lngLat)}),I(this,"eventHandle",r=>{this.polyfillEvent(r),this.emit(r.type,{target:r,data:this.markerOption.extData,lngLat:this.lngLat})}),I(this,"touchStartTime",void 0),this.markerOption=_t(_t({},this.getDefault()),e),Xw(["update","onMove","onMapClick","updatePositionWhenZoom"],this),this.init()}getDefault(){return{element:void 0,anchor:Xv.BOTTOM,offsets:[0,0],color:"#5B8FF9",draggable:!1,overflowHide:!0}}addTo(e){this.scene=e,this.mapsService=e.mapService;const{element:r}=this.markerOption;return this.mapsService.getMarkerContainer().appendChild(r),this.registerMarkerEvent(r),this.mapsService.on("camerachange",this.update),this.update(),this.updateDraggable(),this.added=!0,this.emit("added"),this}remove(){this.mapsService&&(this.mapsService.off("click",this.onMapClick),this.mapsService.off("move",this.update),this.mapsService.off("moveend",this.update),this.mapsService.off("camerachange",this.update)),this.unRegisterMarkerEvent(),this.removeAllListeners();const{element:e}=this.markerOption;return e&&xp(e),this.popup&&this.popup.remove(),this}setLnglat(e){return this.lngLat=e,Array.isArray(e)&&(this.lngLat={lng:e[0],lat:e[1]}),this.popup&&this.popup.setLnglat(this.lngLat),this.update(),this}getLnglat(){return this.lngLat}getElement(){return this.markerOption.element}setElement(e){if(!this.added)return this.once("added",()=>{this.setElement(e)}),this;const{element:r}=this.markerOption;return r&&xp(r),this.markerOption.element=e,this.init(),this.mapsService.getMarkerContainer().appendChild(e),this.registerMarkerEvent(e),this.updateDraggable(),this.update(),this}openPopup(){if(!this.added)return this.once("added",()=>{this.openPopup()}),this;const e=this.popup;return e?(e.isOpen()||e.addTo(this.scene),this):this}closePopup(){this.added||this.once("added",()=>{this.closePopup()});const e=this.popup;return e&&e.remove(),this}setPopup(e){return this.popup=e,this.lngLat&&this.popup.setLnglat(this.lngLat),this}togglePopup(){const e=this.popup;if(e)e.isOpen()?e.remove():e.addTo(this.scene);else return this;return this}getPopup(){return this.popup}getOffset(){return this.markerOption.offsets}setDraggable(e){this.markerOption.draggable=e,this.updateDraggable()}getDraggable(){return this.markerOption.draggable}getExtData(){return this.markerOption.extData}setExtData(e){this.markerOption.extData=e}update(){if(!this.mapsService)return;const{element:e,anchor:r}=this.markerOption;this.updatePosition(),Fw(e,`${Fg[r]}`)}updatePositionWhenZoom(e){if(!this.mapsService)return;const{element:r,offsets:n}=this.markerOption,{lng:a,lat:l}=this.lngLat;if(r){r.style.display="block",r.style.whiteSpace="nowrap";const{containerHeight:o,containerWidth:p,bounds:m}=this.getMarkerLayerContainerSize()||this.getCurrentContainerSize();if(!m)return;const v=e.map,E=e.center,b=e.zoom,A=v.DE(this.lngLat,b,E);if(A.x=Math.round(A.x+n[0]),A.y=Math.round(A.y-n[1]),Math.abs(m[0][0])>180||Math.abs(m[1][0])>180){if(A.x>p){const R=this.mapsService.lngLatToContainer([a-360,l]);A.x=R.x}if(A.x<0){const R=this.mapsService.lngLatToContainer([a+360,l]);A.x=R.x}}(A.x>p||A.x<0||A.y>o||A.y<0)&&(r.style.display="none"),r.style.left=A.x+"px",r.style.top=A.y+"px",r.style.transition="left 0.25s cubic-bezier(0,0,0.25,1), top 0.25s cubic-bezier(0,0,0.25,1)"}}onMapClick(e){const{element:r}=this.markerOption;this.popup&&r&&this.togglePopup()}getCurrentContainerSize(){const e=this.mapsService.getContainer();return{containerHeight:(e==null?void 0:e.scrollHeight)||0,containerWidth:(e==null?void 0:e.scrollWidth)||0,bounds:this.mapsService.getBounds()}}updateDraggable(){const{element:e}=this.markerOption;e==null||e.removeEventListener("mousedown",this.onMarkerDragStart),this.mapsService.off("mousemove",this.onMarkerDragMove),document.removeEventListener("mouseup",this.onMarkerDragEnd),this.markerOption.draggable&&(e==null||e.addEventListener("mousedown",this.onMarkerDragStart))}updatePosition(){if(!this.mapsService)return;const{element:e,offsets:r}=this.markerOption,{lng:n,lat:a}=this.lngLat,l=this.mapsService.lngLatToContainer([n,a]);if(e){e.style.display="block",e.style.whiteSpace="nowrap";const{containerHeight:o,containerWidth:p,bounds:m}=this.getMarkerLayerContainerSize()||this.getCurrentContainerSize();if(!m)return;if(Math.abs(m[0][0])>180||Math.abs(m[1][0])>180){if(l.x>p){const v=this.mapsService.lngLatToContainer([n-360,a]);l.x=v.x}if(l.x<0){const v=this.mapsService.lngLatToContainer([n+360,a]);l.x=v.x}}this.markerOption.overflowHide&&(l.x>p||l.x<0||l.y>o||l.y<0)&&(e.style.display="none"),e.style.left=l.x+r[0]+"px",e.style.top=l.y-r[1]+"px"}}init(){let{element:e}=this.markerOption;const{color:r,anchor:n}=this.markerOption;if(!e){e=_a("div"),this.markerOption.element=e;const a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"display","block"),a.setAttributeNS(null,"height","48px"),a.setAttributeNS(null,"width","48px"),a.setAttributeNS(null,"viewBox","0 0 1024 1024");const l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),l.setAttributeNS(null,"fill",r),a.appendChild(l),e.appendChild(a)}fp(e,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(a=>{var l,o;const p=((l=this.markerOption)===null||l===void 0?void 0:l.style)&&((o=this.markerOption)===null||o===void 0?void 0:o.style[a]);e&&(e.style[a]=p)}),ES(e,n,"marker")}registerMarkerEvent(e){e.addEventListener("click",this.onMapClick),e.addEventListener("mousemove",this.eventHandle),e.addEventListener("click",this.eventHandle),e.addEventListener("mousedown",this.eventHandle),e.addEventListener("mouseup",this.eventHandle),e.addEventListener("dblclick",this.eventHandle),e.addEventListener("contextmenu",this.eventHandle),e.addEventListener("mouseover",this.eventHandle),e.addEventListener("mouseout",this.eventHandle),e.addEventListener("touchstart",this.eventHandle),e.addEventListener("touchend",this.eventHandle)}unRegisterMarkerEvent(){const e=this.getElement();e.removeEventListener("click",this.onMapClick),e.removeEventListener("mousemove",this.eventHandle),e.removeEventListener("click",this.eventHandle),e.removeEventListener("mousedown",this.eventHandle),e.removeEventListener("mouseup",this.eventHandle),e.removeEventListener("dblclick",this.eventHandle),e.removeEventListener("contextmenu",this.eventHandle),e.removeEventListener("mouseover",this.eventHandle),e.removeEventListener("mouseout",this.eventHandle),e.removeEventListener("touchstart",this.eventHandle),e.removeEventListener("touchend",this.eventHandle)}polyfillEvent(e){!this.mapsService||this.mapsService.getType()!=="amap"||jw()||(e.type==="touchstart"&&(this.touchStartTime=Date.now()),e.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:e,data:this.markerOption.extData,lngLat:this.lngLat}))}addDragHandler(e){return null}onUp(e){throw new Error("Method not implemented.")}}window._iconfont_svg_string_3580659='',function(t){try{let v=function(){p||(p=!0,l())},E=function(){try{o.documentElement.doScroll("left")}catch{return void setTimeout(E,50)}v()};var r=(r=document.getElementsByTagName("script"))[r.length-1],e=r.getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var n,a,l,o,p,m=function(b,A){A.parentNode.insertBefore(b,A)};if(e&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(b){console&&console.log(b)}}n=function(){var b,A=document.createElement("div");A.innerHTML=t._iconfont_svg_string_3580659,(A=A.getElementsByTagName("svg")[0])&&(A.setAttribute("aria-hidden","true"),A.style.position="absolute",A.style.width=0,A.style.height=0,A.style.overflow="hidden",A=A,(b=document.body).firstChild?m(A,b.firstChild):b.appendChild(A))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(a=function(){document.removeEventListener("DOMContentLoaded",a,!1),n()},document.addEventListener("DOMContentLoaded",a,!1)):document.attachEvent&&(l=n,o=t.document,p=!1,E(),o.onreadystatechange=function(){o.readyState=="complete"&&(o.onreadystatechange=null,v())})}}catch{}}(window);class eh extends Yv{constructor(e){super(),I(this,"controlOption",void 0),I(this,"container",void 0),I(this,"isShow",void 0),I(this,"sceneContainer",void 0),I(this,"scene",void 0),I(this,"mapsService",void 0),I(this,"renderService",void 0),I(this,"layerService",void 0),I(this,"controlService",void 0),I(this,"configService",void 0),eh.controlCount++,this.controlOption=_t(_t({},this.getDefault(e)),e||{})}getOptions(){return this.controlOption}setOptions(e){const r=this.getDefault(e);Object.entries(e).forEach(([n,a])=>{a===void 0&&(e[n]=r[n])}),"position"in e&&this.setPosition(e.position),"className"in e&&this.setClassName(e.className),"style"in e&&this.setStyle(e.style),this.controlOption=_t(_t({},this.controlOption),e)}addTo(e){this.mapsService=e.mapService,this.renderService=e.rendererService,this.layerService=e.layerService,this.controlService=e.controlService,this.configService=e.globalConfigService,this.scene=e.sceneService,this.sceneContainer=e,this.isShow=!0,this.container=this.onAdd(),fp(this.container,"l7-control");const{className:r,style:n}=this.controlOption;return r&&this.setClassName(r),n&&this.setStyle(n),this.insertContainer(),this.emit("add",this),this}remove(){if(!this.mapsService)return this;xp(this.container),this.onRemove(),this.emit("remove",this)}onAdd(){return _a("div")}onRemove(){}show(){const e=this.container;Ng(e,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}hide(){const e=this.container;fp(e,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}getDefault(e){return{position:Ep.TOPRIGHT,name:`${eh.controlCount}`}}getContainer(){return this.container}getIsShow(){return this.isShow}_refocusOnMap(e){if(this.mapsService&&e&&e.screenX>0&&e.screenY>0){const r=this.mapsService.getContainer();r!==null&&r.focus()}}setPosition(e=Ep.TOPLEFT){const r=this.controlService;return r&&r.removeControl(this),this.controlOption.position=e,r&&r.addControl(this,this.sceneContainer),this}setClassName(e){const r=this.container,{className:n}=this.controlOption;n&&Ng(r,n),e&&fp(r,e)}setStyle(e){const r=this.container;e?r.setAttribute("style",e):r.removeAttribute("style")}insertContainer(){const e=this.controlOption.position,r=this.container;if(e instanceof Element)e.appendChild(r);else{const n=this.controlService.controlCorners[e];["bottomleft","bottomright","righttop","rightbottom"].includes(e)?n.insertBefore(r,n.firstChild):n.appendChild(r)}}checkUpdateOption(e,r){return r.some(n=>n in e)}}I(eh,"controlCount",0);class Tm extends Ps.EventEmitter{get buttonRect(){return this.button.getBoundingClientRect()}constructor(e,r){super(),I(this,"popperDOM",void 0),I(this,"contentDOM",void 0),I(this,"button",void 0),I(this,"option",void 0),I(this,"isShow",!1),I(this,"content",void 0),I(this,"timeout",null),I(this,"show",()=>this.isShow||!this.contentDOM.innerHTML?this:(this.resetPopperPosition(),Ng(this.popperDOM,"l7-popper-hide"),this.isShow=!0,this.option.unique&&Tm.conflictPopperList.forEach(n=>{n!==this&&n.isShow&&n.hide()}),this.emit("show"),window.addEventListener("pointerdown",this.onPopperUnClick),this)),I(this,"hide",()=>this.isShow?(fp(this.popperDOM,"l7-popper-hide"),this.isShow=!1,this.emit("hide"),window.removeEventListener("pointerdown",this.onPopperUnClick),this):this),I(this,"setHideTimeout",()=>{this.timeout||(this.timeout=window.setTimeout(()=>{this.isShow&&(this.hide(),this.timeout=null)},300))}),I(this,"clearHideTimeout",()=>{this.timeout&&(window.clearTimeout(this.timeout),this.timeout=null)}),I(this,"onBtnClick",()=>{this.isShow?this.hide():this.show()}),I(this,"onPopperUnClick",n=>{Vw(n.target,[".l7-button-control",".l7-popper-content"])||this.hide()}),I(this,"onBtnMouseLeave",()=>{this.setHideTimeout()}),I(this,"onBtnMouseMove",()=>{this.clearHideTimeout(),!this.isShow&&this.show()}),this.button=e,this.option=r,this.init(),r.unique&&Tm.conflictPopperList.push(this)}getPopperDOM(){return this.popperDOM}getIsShow(){return this.isShow}getContent(){return this.content}setContent(e){typeof e=="string"?this.contentDOM.innerHTML=e:e instanceof HTMLElement&&(Qm(this.contentDOM),this.contentDOM.appendChild(e)),this.content=e}init(){const{trigger:e}=this.option;this.popperDOM=this.createPopper(),e==="click"?this.button.addEventListener("click",this.onBtnClick):(this.button.addEventListener("mousemove",this.onBtnMouseMove),this.button.addEventListener("mouseleave",this.onBtnMouseLeave),this.popperDOM.addEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.addEventListener("mouseleave",this.onBtnMouseLeave))}destroy(){this.button.removeEventListener("click",this.onBtnClick),this.button.removeEventListener("mousemove",this.onBtnMouseMove),this.button.removeEventListener("mousemove",this.onBtnMouseLeave),this.popperDOM.removeEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.removeEventListener("mouseleave",this.onBtnMouseLeave),xp(this.popperDOM)}resetPopperPosition(){const e={},{container:r,offset:n=[0,0],placement:a}=this.option,[l,o]=n,p=this.button.getBoundingClientRect(),m=r.getBoundingClientRect(),{left:v,right:E,top:b,bottom:A}=Uw(p,m);let R=!1,O=!1;/^(left|right)/.test(a)?(a.includes("left")?e.right=`${p.width+E}px`:a.includes("right")&&(e.left=`${p.width+v}px`),a.includes("start")?e.top=`${b}px`:a.includes("end")?e.bottom=`${A}px`:(e.top=`${b+p.height/2}px`,O=!0,e.transform=`translate(${l}px, calc(${o}px - 50%))`)):/^(top|bottom)/.test(a)&&(a.includes("top")?e.bottom=`${p.height+A}px`:a.includes("bottom")&&(e.top=`${p.height+b}px`),a.includes("start")?e.left=`${v}px`:a.includes("end")?e.right=`${E}px`:(e.left=`${v+p.width/2}px`,R=!0,e.transform=`translate(calc(${l}px - 50%), ${o}px)`)),e.transform=`translate(calc(${l}px - ${R?"50%":"0%"}), calc(${o}px - ${O?"50%":"0%"})`;const D=a.split("-");D.length&&fp(this.popperDOM,D.map(N=>`l7-popper-${N}`).join(" ")),r7(this.popperDOM,kw(e))}createPopper(){const{container:e,className:r="",content:n}=this.option,a=_a("div",`l7-popper l7-popper-hide ${r}`),l=_a("div","l7-popper-content"),o=_a("div","l7-popper-arrow");return a.appendChild(l),a.appendChild(o),e.appendChild(a),this.popperDOM=a,this.contentDOM=l,n&&this.setContent(n),a}}I(Tm,"conflictPopperList",[]);const i6=t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.classList.add("l7-iconfont"),e.setAttribute("aria-hidden","true");const r=document.createElementNS("http://www.w3.org/2000/svg","use");return r.setAttributeNS("http://www.w3.org/1999/xlink","href",`#${t}`),e.appendChild(r),e},o6=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],t1=(()=>{if(typeof document>"u")return!1;const t=o6[0],e={};for(const r of o6)if((r==null?void 0:r[1])in document){for(const[a,l]of r.entries())e[t[a]]=l;return e}return!1})(),a6={change:t1.fullscreenchange,error:t1.fullscreenerror};let ru={request(t=document.documentElement,e){return new Promise((r,n)=>{const a=()=>{ru.off("change",a),r()};ru.on("change",a);const l=t[t1.requestFullscreen](e);l instanceof Promise&&l.then(a).catch(n)})},exit(){return new Promise((t,e)=>{if(!ru.isFullscreen){t();return}const r=()=>{ru.off("change",r),t()};ru.on("change",r);const n=document[t1.exitFullscreen]();n instanceof Promise&&n.then(r).catch(e)})},toggle(t,e){return ru.isFullscreen?ru.exit():ru.request(t,e)},onchange(t){ru.on("change",t)},onerror(t){ru.on("error",t)},on(t,e){const r=a6[t];r&&document.addEventListener(r,e,!1)},off(t,e){const r=a6[t];r&&document.removeEventListener(r,e,!1)},raw:t1};Object.defineProperties(ru,{isFullscreen:{get:()=>!!document[t1.fullscreenElement]},element:{enumerable:!0,get:()=>{var t;return(t=document[t1.fullscreenElement])!==null&&t!==void 0?t:void 0}},isEnabled:{enumerable:!0,get:()=>!!document[t1.fullscreenEnabled]}});t1||(ru={isEnabled:!1});class gD extends eh{getDefault(){return{position:Ep.BOTTOMLEFT,name:"logo",href:"https://l7.antv.antgroup.com/",img:"https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*GRb1TKp4HcMAAAAAAAAAAAAAARQnAQ"}}onAdd(){const e=_a("div","l7-control-logo");return this.setLogoContent(e),e}onRemove(){return null}setOptions(e){super.setOptions(e),this.checkUpdateOption(e,["img","href"])&&(Qm(this.container),this.setLogoContent(this.container))}setLogoContent(e){const{href:r,img:n}=this.controlOption,a=_a("img");if(a.setAttribute("src",n),a.setAttribute("aria-label","AntV logo"),zw(a),r){const l=_a("a","l7-control-logo-link");l.target="_blank",l.href=r,l.rel="noopener nofollow",l.setAttribute("rel","noopener nofollow"),l.appendChild(a),e.appendChild(l)}else e.appendChild(a)}}class vD extends eh{constructor(...e){super(...e),I(this,"mScale",void 0),I(this,"iScale",void 0),I(this,"update",()=>{const r=this.mapsService,{maxWidth:n}=this.controlOption,a=r.getSize()[1]/2,l=r.containerToLngLat([0,a]),o=r.containerToLngLat([n,a]),p=Yw([l.lng,l.lat],[o.lng,o.lat]);this.updateScales(p)})}getDefault(e){return _t(_t({},super.getDefault(e)),{},{name:"scale",position:Ep.BOTTOMLEFT,maxWidth:100,metric:!0,updateWhenIdle:!1,imperial:!1,lockWidth:!0})}onAdd(){const r=_a("div","l7-control-scale");this.resetScaleLines(r);const{updateWhenIdle:n}=this.controlOption;return this.mapsService.on(n?"moveend":"mapmove",this.update),this.mapsService.on(n?"zoomend":"zoomchange",this.update),r}onRemove(){const{updateWhenIdle:e}=this.controlOption;this.mapsService.off(e?"zoomend":"zoomchange",this.update),this.mapsService.off(e?"moveend":"mapmove",this.update)}setOptions(e){super.setOptions(e),this.checkUpdateOption(e,["lockWidth","maxWidth","metric","updateWhenIdle","imperial"])&&this.resetScaleLines(this.container)}updateScales(e){const{metric:r,imperial:n}=this.controlOption;r&&e&&this.updateMetric(e),n&&e&&this.updateImperial(e)}resetScaleLines(e){Qm(e);const{metric:r,imperial:n,maxWidth:a,lockWidth:l}=this.controlOption;l&&r7(e,`width: ${a}px`),r&&(this.mScale=_a("div","l7-control-scale-line",e)),n&&(this.iScale=_a("div","l7-control-scale-line",e)),this.update()}updateScale(e,r,n){const{maxWidth:a}=this.controlOption;e.style.width=Math.round(a*n)+"px",e.innerHTML=r}getRoundNum(e){const r=Math.pow(10,(Math.floor(e)+"").length-1);let n=e/r;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,r*n}updateMetric(e){const r=this.getRoundNum(e),n=r<1e3?r+" m":r/1e3+" km";this.updateScale(this.mScale,n,r/e)}updateImperial(e){const r=e*3.2808399;let n,a,l;r>5280?(n=r/5280,a=this.getRoundNum(n),this.updateScale(this.iScale,a+" mi",a/n)):(l=this.getRoundNum(r),this.updateScale(this.iScale,l+" ft",l/r))}}class yD{constructor(){I(this,"mapService",void 0),I(this,"fontService",void 0)}apply(e,{styleAttributeService:r,mapService:n,fontService:a}){var l=this;this.mapService=n,this.fontService=a,e.hooks.init.tapPromise("DataMappingPlugin",bt(function*(){e.log(Ia.MappingStart,es.INIT),l.generateMaping(e,{styleAttributeService:r}),e.log(Ia.MappingEnd,es.INIT)})),e.hooks.beforeRenderData.tapPromise("DataMappingPlugin",function(){var o=bt(function*(p){if(!p)return p;e.dataState.dataMappingNeedUpdate=!1,e.log(Ia.MappingStart,es.UPDATE);const m=l.generateMaping(e,{styleAttributeService:r});return e.log(Ia.MappingEnd,es.UPDATE),m});return function(p){return o.apply(this,arguments)}}()),e.hooks.beforeRender.tap("DataMappingPlugin",()=>{const o=e.getSource();if(e.layerModelNeedUpdate||!o||!o.inited)return;const p=r.getLayerStyleAttributes()||[],m=r.getLayerStyleAttribute("filter"),{dataArray:v}=o.data;if(Array.isArray(v)&&v.length===0)return;const E=p.filter(A=>A.needRemapping);let b=v;if(m!=null&&m.needRemapping&&m!==null&&m!==void 0&&m.scale&&(b=v.filter(A=>this.applyAttributeMapping(m,A)[0])),E.length){const A=this.mapping(e,E,b,e.getEncodedData());e.setEncodedData(A)}})}generateMaping(e,{styleAttributeService:r}){const n=r.getLayerStyleAttributes()||[],a=r.getLayerStyleAttribute("filter"),{dataArray:l}=e.getSource().data;let o=l;a!=null&&a.scale&&(o=l.filter(m=>this.applyAttributeMapping(a,m)[0])),o=e.processData(o);const p=this.mapping(e,n,o,void 0);return e.setEncodedData(p),e.emit("dataUpdate",null),!0}mapping(e,r,n,a){const l=r.filter(p=>p.scale!==void 0).filter(p=>p.name!=="filter"),o=n.map((p,m)=>{const v=a?a[m]:{},E=_t({id:p._id,coordinates:p.coordinates},v);return l.forEach(b=>{let A=this.applyAttributeMapping(b,p);(b.name==="color"||b.name==="stroke")&&(A=A.map(R=>Fi(R))),E[b.name]=Array.isArray(A)&&A.length===1?A[0]:A,b.name==="shape"&&(E.shape=this.fontService.getIconFontKey(E[b.name]))}),E});return r.forEach(p=>{p.needRemapping=!1}),this.adjustData2SimpleCoordinates(o),o}adjustData2SimpleCoordinates(e){e.length>0&&this.mapService.version==="SIMPLE"&&e.map(r=>{r.simpleCoordinate||(r.coordinates=this.unProjectCoordinates(r.coordinates),r.simpleCoordinate=!0)})}unProjectCoordinates(e){if(typeof e[0]=="number")return this.mapService.simpleMapCoord.unproject(e);if(e[0]&&e[0][0]instanceof Array){const r=[];return e.map(n=>{const a=[];n.map(l=>{a.push(this.mapService.simpleMapCoord.unproject(l))}),r.push(a)}),r}else{const r=[];return e.map(n=>{r.push(this.mapService.simpleMapCoord.unproject(n))}),r}}applyAttributeMapping(e,r){var n;if(!e.scale)return[];const a=(e==null||(n=e.scale)===null||n===void 0?void 0:n.scalers)||[],l=[];return a.forEach(({field:p})=>{var m;(r.hasOwnProperty(p)||((m=e.scale)===null||m===void 0?void 0:m.type)==="variable")&&l.push(r[p])}),e.mapping?e.mapping(l):[]}getArrowPoints(e,r){const n=[r[0]-e[0],r[1]-e[1]],a=Kw(n);return[e[0]+a[0]*1e-4,e[1]+a[1]*1e-4]}}class xD{constructor(){I(this,"mapService",void 0)}apply(e){var r=this;this.mapService=e.getContainer().mapService,e.hooks.init.tapPromise("DataSourcePlugin",bt(function*(){e.log(Ia.SourceInitStart,es.INIT);let n=e.getSource();if(!n){const{data:a,options:l}=e.sourceOption||e.defaultSourceConfig;n=new a2(a,l),e.setSource(n)}n.inited?(r.updateClusterData(e),e.log(Ia.SourceInitEnd,es.INIT)):yield new Promise(a=>{n.on("update",l=>{l.type==="inited"&&(r.updateClusterData(e),e.log(Ia.SourceInitEnd,es.INIT)),a(null)})})})),e.hooks.beforeRenderData.tapPromise("DataSourcePlugin",bt(function*(){const n=r.updateClusterData(e),a=e.dataState.dataSourceNeedUpdate;return e.dataState.dataSourceNeedUpdate=!1,n||a}))}updateClusterData(e){if(e.isTileLayer||e.tileLayer||!e.getSource())return!1;const r=e.getSource(),n=r.cluster,{zoom:a=0}=r.clusterOptions,l=this.mapService.getZoom()-1,o=e.dataState.dataSourceNeedUpdate;return n&&o&&r.updateClusterData(Math.floor(l)),n&&Math.abs(e.clusterZoom-l)>=1?(a!==Math.floor(l)&&r.updateClusterData(Math.floor(l)),e.clusterZoom=l,!0):!1}}function s6(t,e){let r,n;if(e===void 0)for(const a of t)a!=null&&(r===void 0?a>=a&&(r=n=a):(r>a&&(r=a),n=l&&(r=n=l):(r>l&&(r=l),n=1?(r=1,e-1):Math.floor(r*e),a=t[n],l=t[n+1],o=n>0?t[n-1]:2*a-l,p=nr&&(l=e.slice(r,l),p[o]?p[o]+=l:p[++o]=l),(n=n[0])===(a=a[0])?p[o]?p[o]+=a:p[++o]=a:(p[++o]=null,m.push({i:o,x:Am(n,a)})),r=sg.lastIndex;return re?1:t>=e?0:NaN}function sb(t){return t.length===1&&(t=ND(t)),{left:function(e,r,n,a){for(n==null&&(n=0),a==null&&(a=e.length);n>>1;t(e[l],r)<0?n=l+1:a=l}return n},right:function(e,r,n,a){for(n==null&&(n=0),a==null&&(a=e.length);n>>1;t(e[l],r)>0?a=l:n=l+1}return n}}}function ND(t){return function(e,r){return u2(t(e),r)}}var kD=sb(u2),n_=kD.right;function UD(t){return t===null?NaN:+t}var av=Math.sqrt(50),sv=Math.sqrt(10),lv=Math.sqrt(2);function lb(t,e,r){var n,a=-1,l,o,p;if(e=+e,t=+t,r=+r,t===e&&r>0)return[t];if((n=e0)for(t=Math.ceil(t/p),e=Math.floor(e/p),o=new Array(l=Math.ceil(e-t+1));++a=0?(l>=av?10:l>=sv?5:l>=lv?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(l>=av?10:l>=sv?5:l>=lv?2:1)}function uv(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),a=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),l=n/a;return l>=av?a*=10:l>=sv?a*=5:l>=lv&&(a*=2),e=1)return+r(t[n-1],n-1,t);var n,a=(n-1)*e,l=Math.floor(a),o=+r(t[l],l,t),p=+r(t[l+1],l+1,t);return o+(p-o)*(a-l)}}function ih(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function ub(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t);break}return this}var tu="$";function Sm(){}Sm.prototype=wm.prototype={constructor:Sm,has:function(t){return tu+t in this},get:function(t){return this[tu+t]},set:function(t,e){return this[tu+t]=e,this},remove:function(t){var e=tu+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===tu&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===tu&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===tu&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===tu&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===tu&&++t;return t},empty:function(){for(var t in this)if(t[0]===tu)return!1;return!0},each:function(t){for(var e in this)e[0]===tu&&t(this[e],e.slice(1),this)}};function wm(t,e){var r=new Sm;if(t instanceof Sm)t.each(function(p,m){r.set(m,p)});else if(Array.isArray(t)){var n=-1,a=t.length,l;if(e==null)for(;++nr&&(n=e,e=r,r=n),function(a){return Math.max(e,Math.min(r,a))}}function jD(t,e,r){var n=t[0],a=t[1],l=e[0],o=e[1];return a2?XD:jD,m=v=null,b}function b(A){return isNaN(A=+A)?l:(m||(m=p(t.map(n),e,r)))(n(o(A)))}return b.invert=function(A){return o(a((v||(v=p(e,t.map(n),Am)))(A)))},b.domain=function(A){return arguments.length?(t=hb.call(A,HD),o===_s||(o=f6(t)),E()):t.slice()},b.range=function(A){return arguments.length?(e=Jh.call(A),E()):e.slice()},b.rangeRound=function(A){return e=Jh.call(A),r=FD,E()},b.clamp=function(A){return arguments.length?(o=A?f6(t):_s,b):o!==_s},b.interpolate=function(A){return arguments.length?(r=A,E()):r},b.unknown=function(A){return arguments.length?(l=A,b):l},function(A,R){return n=A,a=R,E()}}function fb(t,e){return c2()(t,e)}function WD(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Rm(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Ap(t){return t=Rm(Math.abs(t)),t?t[1]:NaN}function GD(t,e){return function(r,n){for(var a=r.length,l=[],o=0,p=t[0],m=0;a>0&&p>0&&(m+p+1>n&&(p=Math.max(1,n-m)),l.push(r.substring(a-=p,a+p)),!((m+=p+1)>n));)p=t[o=(o+1)%t.length];return l.reverse().join(e)}}function ZD(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var $D=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Im(t){if(!(e=$D.exec(t)))throw new Error("invalid format: "+t);var e;return new h2({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Im.prototype=h2.prototype;function h2(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}h2.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function qD(t){e:for(var e=t.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(a+1):t}var pb;function YD(t,e){var r=Rm(t,e);if(!r)return t+"";var n=r[0],a=r[1],l=a-(pb=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return l===o?n:l>o?n+new Array(l-o+1).join("0"):l>0?n.slice(0,l)+"."+n.slice(l):"0."+new Array(1-l).join("0")+Rm(t,Math.max(0,e+l-1))[0]}function p6(t,e){var r=Rm(t,e);if(!r)return t+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const d6={"%":function(t,e){return(t*100).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:WD,e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return p6(t*100,e)},r:p6,s:YD,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function m6(t){return t}var _6=Array.prototype.map,g6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function KD(t){var e=t.grouping===void 0||t.thousands===void 0?m6:GD(_6.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",l=t.numerals===void 0?m6:ZD(_6.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",p=t.minus===void 0?"-":t.minus+"",m=t.nan===void 0?"NaN":t.nan+"";function v(b){b=Im(b);var A=b.fill,R=b.align,O=b.sign,D=b.symbol,N=b.zero,W=b.width,G=b.comma,Y=b.precision,Q=b.trim,J=b.type;J==="n"?(G=!0,J="g"):d6[J]||(Y===void 0&&(Y=12),Q=!0,J="g"),(N||A==="0"&&R==="=")&&(N=!0,A="0",R="=");var Se=D==="$"?r:D==="#"&&/[boxX]/.test(J)?"0"+J.toLowerCase():"",ce=D==="$"?n:/[%p]/.test(J)?o:"",ke=d6[J],ct=/[defgprs%]/.test(J);Y=Y===void 0?6:/[gprs]/.test(J)?Math.max(1,Math.min(21,Y)):Math.max(0,Math.min(20,Y));function Ve(Te){var Fe=Se,He=ce,nt,Ut,$t;if(J==="c")He=ke(Te)+He,Te="";else{Te=+Te;var Ht=Te<0||1/Te<0;if(Te=isNaN(Te)?m:ke(Math.abs(Te),Y),Q&&(Te=qD(Te)),Ht&&+Te==0&&O!=="+"&&(Ht=!1),Fe=(Ht?O==="("?O:p:O==="-"||O==="("?"":O)+Fe,He=(J==="s"?g6[8+pb/3]:"")+He+(Ht&&O==="("?")":""),ct){for(nt=-1,Ut=Te.length;++nt$t||$t>57){He=($t===46?a+Te.slice(nt+1):Te.slice(nt))+He,Te=Te.slice(0,nt);break}}}G&&!N&&(Te=e(Te,1/0));var Or=Fe.length+Te.length+He.length,mr=Or>1)+Fe+Te+He+mr.slice(Or);break;default:Te=mr+Fe+Te+He;break}return l(Te)}return Ve.toString=function(){return b+""},Ve}function E(b,A){var R=v((b=Im(b),b.type="f",b)),O=Math.max(-8,Math.min(8,Math.floor(Ap(A)/3)))*3,D=Math.pow(10,-O),N=g6[8+O/3];return function(W){return R(D*W)+N}}return{format:v,formatPrefix:E}}var S0,f2,db;QD({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function QD(t){return S0=KD(t),f2=S0.format,db=S0.formatPrefix,S0}function JD(t){return Math.max(0,-Ap(Math.abs(t)))}function eB(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ap(e)/3)))*3-Ap(Math.abs(t)))}function tB(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ap(e)-Ap(t))+1}function rB(t,e,r,n){var a=uv(t,e,r),l;switch(n=Im(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(l=eB(a,o))&&(n.precision=l),db(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(l=tB(a,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=l-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(l=JD(a))&&(n.precision=l-(n.type==="%")*2);break}}return f2(n)}function I3(t){var e=t.domain;return t.ticks=function(r){var n=e();return lb(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var a=e();return rB(a[0],a[a.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),a=0,l=n.length-1,o=n[a],p=n[l],m;return p0?(o=Math.floor(o/m)*m,p=Math.ceil(p/m)*m,m=J0(o,p,r)):m<0&&(o=Math.ceil(o*m)/m,p=Math.floor(p*m)/m,m=J0(o,p,r)),m>0?(n[a]=Math.floor(o/m)*m,n[l]=Math.ceil(p/m)*m,e(n)):m<0&&(n[a]=Math.ceil(o*m)/m,n[l]=Math.floor(p*m)/m,e(n)),t},t}function mb(){var t=fb(_s,_s);return t.copy=function(){return i_(t,mb())},ih.apply(t,arguments),I3(t)}function _b(t,e){t=t.slice();var r=0,n=t.length-1,a=t[r],l=t[n],o;return l0){for(;AE)break;G.push(N)}}else for(;A=1;--D)if(N=O*D,!(NE)break;G.push(N)}}else G=lb(A,R,Math.min(R-A,W)).map(l);return b?G.reverse():G},e.tickFormat=function(p,m){if(m==null&&(m=n===10?".0e":","),typeof m!="function"&&(m=f2(m)),p===1/0)return m;p==null&&(p=10);var v=Math.max(1,n*p/e.ticks().length);return function(E){var b=E/l(Math.round(a(E)));return b*n0?r[p-1]:t[0],p=r?[n[r-1],e]:[n[v-1],n[v]]},o.unknown=function(m){return arguments.length&&(l=m),o},o.thresholds=function(){return n.slice()},o.copy=function(){return xb().domain([t,e]).range(a).unknown(l)},ih.apply(I3(o),arguments)}function bb(){var t=[.5],e=[0,1],r,n=1;function a(l){return l<=l?e[n_(t,l,0,n)]:r}return a.domain=function(l){return arguments.length?(t=Jh.call(l),n=Math.min(t.length,e.length-1),a):t.slice()},a.range=function(l){return arguments.length?(e=Jh.call(l),n=Math.min(t.length,e.length-1),a):e.slice()},a.invertExtent=function(l){var o=e.indexOf(l);return[t[o-1],t[o]]},a.unknown=function(l){return arguments.length?(r=l,a):r},a.copy=function(){return bb().domain(t).range(e).unknown(r)},ih.apply(a,arguments)}var lg=new Date,ug=new Date;function Os(t,e,r,n){function a(l){return t(l=arguments.length===0?new Date:new Date(+l)),l}return a.floor=function(l){return t(l=new Date(+l)),l},a.ceil=function(l){return t(l=new Date(l-1)),e(l,1),t(l),l},a.round=function(l){var o=a(l),p=a.ceil(l);return l-o0))return m;do m.push(v=new Date(+l)),e(l,p),t(l);while(v=o)for(;t(o),!l(o);)o.setTime(o-1)},function(o,p){if(o>=o)if(p<0)for(;++p<=0;)for(;e(o,-1),!l(o););else for(;--p>=0;)for(;e(o,1),!l(o););})},r&&(a.count=function(l,o){return lg.setTime(+l),ug.setTime(+o),t(lg),t(ug),Math.floor(r(lg,ug))},a.every=function(l){return l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?a.filter(n?function(o){return n(o)%l===0}:function(o){return a.count(0,o)%l===0}):a}),a}var Mm=Os(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Mm.every=function(t){return t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Os(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):Mm};const fB=Mm;Mm.range;var Pm=1e3,d3=6e4,E6=36e5,Eb=864e5,Tb=6048e5,Ab=Os(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Pm)},function(t,e){return(e-t)/Pm},function(t){return t.getUTCSeconds()});const pB=Ab;Ab.range;var Sb=Os(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Pm)},function(t,e){t.setTime(+t+e*d3)},function(t,e){return(e-t)/d3},function(t){return t.getMinutes()});const dB=Sb;Sb.range;var wb=Os(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Pm-t.getMinutes()*d3)},function(t,e){t.setTime(+t+e*E6)},function(t,e){return(e-t)/E6},function(t){return t.getHours()});const mB=wb;wb.range;var Cb=Os(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*d3)/Eb},function(t){return t.getDate()-1});const p2=Cb;Cb.range;function of(t){return Os(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+r*7)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*d3)/Tb})}var d2=of(0),Om=of(1),_B=of(2),gB=of(3),Sp=of(4),vB=of(5),yB=of(6);d2.range;Om.range;_B.range;gB.range;Sp.range;vB.range;yB.range;var Rb=Os(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});const xB=Rb;Rb.range;var m2=Os(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});m2.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:Os(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)})};const wp=m2;m2.range;var Ib=Os(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Eb},function(t){return t.getUTCDate()-1});const Mb=Ib;Ib.range;function af(t){return Os(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+r*7)},function(e,r){return(r-e)/Tb})}var Pb=af(0),Lm=af(1),bB=af(2),EB=af(3),Cp=af(4),TB=af(5),AB=af(6);Pb.range;Lm.range;bB.range;EB.range;Cp.range;TB.range;AB.range;var _2=Os(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});_2.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:Os(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})};const m3=_2;_2.range;function cg(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function hg(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ed(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function SB(t){var e=t.dateTime,r=t.date,n=t.time,a=t.periods,l=t.days,o=t.shortDays,p=t.months,m=t.shortMonths,v=Td(a),E=Ad(a),b=Td(l),A=Ad(l),R=Td(o),O=Ad(o),D=Td(p),N=Ad(p),W=Td(m),G=Ad(m),Y={a:Ht,A:Or,b:mr,B:yr,c:null,d:R6,e:R6,f:$B,g:iF,G:aF,H:WB,I:GB,j:ZB,L:Ob,m:qB,M:YB,p:Yr,q:Jr,Q:P6,s:O6,S:KB,u:QB,U:JB,V:eF,w:tF,W:rF,x:null,X:null,y:nF,Y:oF,Z:sF,"%":M6},Q={a:vn,A:Rn,b:nn,B:Yi,c:null,d:I6,e:I6,f:hF,g:bF,G:TF,H:lF,I:uF,j:cF,L:Db,m:fF,M:pF,p:An,q:Ni,Q:P6,s:O6,S:dF,u:mF,U:_F,V:gF,w:vF,W:yF,x:null,X:null,y:xF,Y:EF,Z:AF,"%":M6},J={a:Ve,A:Te,b:Fe,B:He,c:nt,d:w6,e:w6,f:VB,g:S6,G:A6,H:C6,I:C6,j:NB,L:zB,m:FB,M:kB,p:ct,q:BB,Q:jB,s:XB,S:UB,u:MB,U:PB,V:OB,w:IB,W:LB,x:Ut,X:$t,y:S6,Y:A6,Z:DB,"%":HB};Y.x=Se(r,Y),Y.X=Se(n,Y),Y.c=Se(e,Y),Q.x=Se(r,Q),Q.X=Se(n,Q),Q.c=Se(e,Q);function Se(qe,Yt){return function(wr){var St=[],Er=-1,on=0,yn=qe.length,tn,Kr,Sn;for(wr instanceof Date||(wr=new Date(+wr));++Er53)return null;"w"in St||(St.w=1),"Z"in St?(on=hg(Ed(St.y,0,1)),yn=on.getUTCDay(),on=yn>4||yn===0?Lm.ceil(on):Lm(on),on=Mb.offset(on,(St.V-1)*7),St.y=on.getUTCFullYear(),St.m=on.getUTCMonth(),St.d=on.getUTCDate()+(St.w+6)%7):(on=cg(Ed(St.y,0,1)),yn=on.getDay(),on=yn>4||yn===0?Om.ceil(on):Om(on),on=p2.offset(on,(St.V-1)*7),St.y=on.getFullYear(),St.m=on.getMonth(),St.d=on.getDate()+(St.w+6)%7)}else("W"in St||"U"in St)&&("w"in St||(St.w="u"in St?St.u%7:"W"in St?1:0),yn="Z"in St?hg(Ed(St.y,0,1)).getUTCDay():cg(Ed(St.y,0,1)).getDay(),St.m=0,St.d="W"in St?(St.w+6)%7+St.W*7-(yn+5)%7:St.w+St.U*7-(yn+6)%7);return"Z"in St?(St.H+=St.Z/100|0,St.M+=St.Z%100,hg(St)):cg(St)}}function ke(qe,Yt,wr,St){for(var Er=0,on=Yt.length,yn=wr.length,tn,Kr;Er=yn)return-1;if(tn=Yt.charCodeAt(Er++),tn===37){if(tn=Yt.charAt(Er++),Kr=J[tn in T6?Yt.charAt(Er++):tn],!Kr||(St=Kr(qe,wr,St))<0)return-1}else if(tn!=wr.charCodeAt(St++))return-1}return St}function ct(qe,Yt,wr){var St=v.exec(Yt.slice(wr));return St?(qe.p=E[St[0].toLowerCase()],wr+St[0].length):-1}function Ve(qe,Yt,wr){var St=R.exec(Yt.slice(wr));return St?(qe.w=O[St[0].toLowerCase()],wr+St[0].length):-1}function Te(qe,Yt,wr){var St=b.exec(Yt.slice(wr));return St?(qe.w=A[St[0].toLowerCase()],wr+St[0].length):-1}function Fe(qe,Yt,wr){var St=W.exec(Yt.slice(wr));return St?(qe.m=G[St[0].toLowerCase()],wr+St[0].length):-1}function He(qe,Yt,wr){var St=D.exec(Yt.slice(wr));return St?(qe.m=N[St[0].toLowerCase()],wr+St[0].length):-1}function nt(qe,Yt,wr){return ke(qe,e,Yt,wr)}function Ut(qe,Yt,wr){return ke(qe,r,Yt,wr)}function $t(qe,Yt,wr){return ke(qe,n,Yt,wr)}function Ht(qe){return o[qe.getDay()]}function Or(qe){return l[qe.getDay()]}function mr(qe){return m[qe.getMonth()]}function yr(qe){return p[qe.getMonth()]}function Yr(qe){return a[+(qe.getHours()>=12)]}function Jr(qe){return 1+~~(qe.getMonth()/3)}function vn(qe){return o[qe.getUTCDay()]}function Rn(qe){return l[qe.getUTCDay()]}function nn(qe){return m[qe.getUTCMonth()]}function Yi(qe){return p[qe.getUTCMonth()]}function An(qe){return a[+(qe.getUTCHours()>=12)]}function Ni(qe){return 1+~~(qe.getUTCMonth()/3)}return{format:function(qe){var Yt=Se(qe+="",Y);return Yt.toString=function(){return qe},Yt},parse:function(qe){var Yt=ce(qe+="",!1);return Yt.toString=function(){return qe},Yt},utcFormat:function(qe){var Yt=Se(qe+="",Q);return Yt.toString=function(){return qe},Yt},utcParse:function(qe){var Yt=ce(qe+="",!0);return Yt.toString=function(){return qe},Yt}}}var T6={"-":"",_:" ",0:"0"},Ha=/^\s*\d+/,wB=/^%/,CB=/[\\^$*+?|[\]().{}]/g;function bi(t,e,r){var n=t<0?"-":"",a=(n?-t:t)+"",l=a.length;return n+(l68?1900:2e3),r+n[0].length):-1}function DB(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function BB(t,e,r){var n=Ha.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function FB(t,e,r){var n=Ha.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function w6(t,e,r){var n=Ha.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function NB(t,e,r){var n=Ha.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function C6(t,e,r){var n=Ha.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function kB(t,e,r){var n=Ha.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function UB(t,e,r){var n=Ha.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function zB(t,e,r){var n=Ha.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function VB(t,e,r){var n=Ha.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function HB(t,e,r){var n=wB.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function jB(t,e,r){var n=Ha.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function XB(t,e,r){var n=Ha.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function R6(t,e){return bi(t.getDate(),e,2)}function WB(t,e){return bi(t.getHours(),e,2)}function GB(t,e){return bi(t.getHours()%12||12,e,2)}function ZB(t,e){return bi(1+p2.count(wp(t),t),e,3)}function Ob(t,e){return bi(t.getMilliseconds(),e,3)}function $B(t,e){return Ob(t,e)+"000"}function qB(t,e){return bi(t.getMonth()+1,e,2)}function YB(t,e){return bi(t.getMinutes(),e,2)}function KB(t,e){return bi(t.getSeconds(),e,2)}function QB(t){var e=t.getDay();return e===0?7:e}function JB(t,e){return bi(d2.count(wp(t)-1,t),e,2)}function Lb(t){var e=t.getDay();return e>=4||e===0?Sp(t):Sp.ceil(t)}function eF(t,e){return t=Lb(t),bi(Sp.count(wp(t),t)+(wp(t).getDay()===4),e,2)}function tF(t){return t.getDay()}function rF(t,e){return bi(Om.count(wp(t)-1,t),e,2)}function nF(t,e){return bi(t.getFullYear()%100,e,2)}function iF(t,e){return t=Lb(t),bi(t.getFullYear()%100,e,2)}function oF(t,e){return bi(t.getFullYear()%1e4,e,4)}function aF(t,e){var r=t.getDay();return t=r>=4||r===0?Sp(t):Sp.ceil(t),bi(t.getFullYear()%1e4,e,4)}function sF(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+bi(e/60|0,"0",2)+bi(e%60,"0",2)}function I6(t,e){return bi(t.getUTCDate(),e,2)}function lF(t,e){return bi(t.getUTCHours(),e,2)}function uF(t,e){return bi(t.getUTCHours()%12||12,e,2)}function cF(t,e){return bi(1+Mb.count(m3(t),t),e,3)}function Db(t,e){return bi(t.getUTCMilliseconds(),e,3)}function hF(t,e){return Db(t,e)+"000"}function fF(t,e){return bi(t.getUTCMonth()+1,e,2)}function pF(t,e){return bi(t.getUTCMinutes(),e,2)}function dF(t,e){return bi(t.getUTCSeconds(),e,2)}function mF(t){var e=t.getUTCDay();return e===0?7:e}function _F(t,e){return bi(Pb.count(m3(t)-1,t),e,2)}function Bb(t){var e=t.getUTCDay();return e>=4||e===0?Cp(t):Cp.ceil(t)}function gF(t,e){return t=Bb(t),bi(Cp.count(m3(t),t)+(m3(t).getUTCDay()===4),e,2)}function vF(t){return t.getUTCDay()}function yF(t,e){return bi(Lm.count(m3(t)-1,t),e,2)}function xF(t,e){return bi(t.getUTCFullYear()%100,e,2)}function bF(t,e){return t=Bb(t),bi(t.getUTCFullYear()%100,e,2)}function EF(t,e){return bi(t.getUTCFullYear()%1e4,e,4)}function TF(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Cp(t):Cp.ceil(t),bi(t.getUTCFullYear()%1e4,e,4)}function AF(){return"+0000"}function M6(){return"%"}function P6(t){return+t}function O6(t){return Math.floor(+t/1e3)}var qf,Fb;SF({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function SF(t){return qf=SB(t),Fb=qf.format,qf.parse,qf.utcFormat,qf.utcParse,qf}var Xd=1e3,Wd=Xd*60,Gd=Wd*60,_3=Gd*24,wF=_3*7,L6=_3*30,fg=_3*365;function CF(t){return new Date(t)}function RF(t){return t instanceof Date?+t:+new Date(+t)}function Nb(t,e,r,n,a,l,o,p,m){var v=fb(_s,_s),E=v.invert,b=v.domain,A=m(".%L"),R=m(":%S"),O=m("%I:%M"),D=m("%I %p"),N=m("%a %d"),W=m("%b %d"),G=m("%B"),Y=m("%Y"),Q=[[o,1,Xd],[o,5,5*Xd],[o,15,15*Xd],[o,30,30*Xd],[l,1,Wd],[l,5,5*Wd],[l,15,15*Wd],[l,30,30*Wd],[a,1,Gd],[a,3,3*Gd],[a,6,6*Gd],[a,12,12*Gd],[n,1,_3],[n,2,2*_3],[r,1,wF],[e,1,L6],[e,3,3*L6],[t,1,fg]];function J(ce){return(o(ce)a?(r=a,a):r,n.unknown=a=>a?(e=a,a):e,n.copy=()=>Vb().unknown(e),n}const{isNil:pg,isString:OF,uniq:LF}=Ko,DF=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]?)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,BF={[Ai.LINEAR]:mb,[Ai.POWER]:vb,[Ai.LOG]:gb,[Ai.IDENTITY]:Vb,[Ai.SEQUENTIAL]:Ub,[Ai.TIME]:IF,[Ai.QUANTILE]:yb,[Ai.QUANTIZE]:xb,[Ai.THRESHOLD]:bb,[Ai.CAT]:Cm,[Ai.DIVERGING]:zb};class FF{constructor(){I(this,"scaleOptions",{})}apply(e,{styleAttributeService:r}){var n=this;e.hooks.init.tapPromise("FeatureScalePlugin",bt(function*(){var a;e.log(Ia.ScaleInitStart,es.INIT),n.scaleOptions=e.getScaleOptions();const l=r.getLayerStyleAttributes(),o=(a=e.getSource())===null||a===void 0?void 0:a.data.dataArray;Array.isArray(o)&&o.length===0||(n.caculateScalesForAttributes(l||[],o),e.log(Ia.ScaleInitEnd,es.INIT))})),e.hooks.beforeRenderData.tapPromise("FeatureScalePlugin",function(){var a=bt(function*(l){if(!l)return l;e.log(Ia.ScaleInitStart,es.UPDATE),n.scaleOptions=e.getScaleOptions();const o=r.getLayerStyleAttributes(),p=e.getSource().data.dataArray;return Array.isArray(p)&&p.length===0||(n.caculateScalesForAttributes(o||[],p),e.log(Ia.ScaleInitEnd,es.UPDATE),e.layerModelNeedUpdate=!0),!0});return function(l){return a.apply(this,arguments)}}()),e.hooks.beforeRender.tap("FeatureScalePlugin",()=>{if(e.layerModelNeedUpdate)return;this.scaleOptions=e.getScaleOptions();const a=r.getLayerStyleAttributes(),l=e.getSource().data.dataArray;if(!(Array.isArray(l)&&l.length===0)&&a){const o=a.filter(p=>p.needRescale);o.length&&this.caculateScalesForAttributes(o,l)}})}isNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}caculateScalesForAttributes(e,r){e.forEach(n=>{if(n.scale){const a=n.scale,l=n.scale.field;a.names=this.parseFields(pg(l)?[]:l);const o=[];a.names.forEach(p=>{var m;o.push(this.createScale(p,n.name,(m=n.scale)===null||m===void 0?void 0:m.values,r))}),o.some(p=>p.type===$f.VARIABLE)?(a.type=$f.VARIABLE,o.forEach(p=>{if(!a.callback&&a.values!=="text"){var m;switch((m=p.option)===null||m===void 0?void 0:m.type){case Ai.LOG:case Ai.LINEAR:case Ai.POWER:if(a.values&&a.values.length>2){const E=p.scale.ticks(a.values.length);p.scale.domain(E)}a.values?p.scale.range(a.values):p.scale.range(p.option.domain);break;case Ai.QUANTILE:case Ai.QUANTIZE:case Ai.THRESHOLD:p.scale.range(a.values);break;case Ai.IDENTITY:break;case Ai.CAT:a.values?p.scale.range(a.values):p.scale.range(p.option.domain);break;case Ai.DIVERGING:case Ai.SEQUENTIAL:p.scale.interpolator(CD(a.values));break}}if(a.values==="text"){var v;p.scale.range((v=p.option)===null||v===void 0?void 0:v.domain)}})):(a.type=$f.CONSTANT,a.defaultValues=o.map((p,m)=>p.scale(a.names[m]))),a.scalers=o.map(p=>({field:p.field,func:p.scale,option:p.option})),n.needRescale=!1}})}parseFields(e){return Array.isArray(e)?e:OF(e)?e.split("*"):[e]}createScale(e,r,n,a){var l,o;const p=this.scaleOptions[r]&&((l=this.scaleOptions[r])===null||l===void 0?void 0:l.field)===e?this.scaleOptions[r]:this.scaleOptions[e],m={field:e,scale:void 0,type:$f.VARIABLE,option:p};if(!a||!a.length)return p&&p.type?m.scale=this.createDefaultScale(p):(m.scale=Cm([e]),m.type=$f.CONSTANT),m;const v=(o=a.find(E=>!pg(E[e])))===null||o===void 0?void 0:o[e];if(this.isNumber(e)||pg(v)&&!p)m.scale=Cm([e]),m.type=$f.CONSTANT;else{let E=p&&p.type||this.getDefaultType(v);n==="text"&&(E=Ai.CAT),n===void 0&&(E=Ai.IDENTITY);const b=this.createScaleConfig(E,e,p,a);m.scale=this.createDefaultScale(b),m.option=b}return m}getDefaultType(e){let r=Ai.LINEAR;return typeof e=="string"&&(r=DF.test(e)?Ai.TIME:Ai.CAT),r}createScaleConfig(e,r,n,a){const l=_t(_t({},n),{},{type:e});if(l!=null&&l.domain)return l;let o=[];if(e===Ai.QUANTILE){const p=new Map;a==null||a.forEach(m=>{p.set(m._id,m[r])}),o=Array.from(p.values())}else o=(a==null?void 0:a.map(p=>p[r]))||[];if(e===Ai.CAT||e===Ai.IDENTITY)l.domain=LF(o);else if(e===Ai.QUANTILE)l.domain=o;else if(e===Ai.DIVERGING){const p=s6(o),m=(n==null?void 0:n.neutral)!==void 0?n==null?void 0:n.neutral:(p[0]+p[1])/2;l.domain=[p[0],m,p[1]]}else l.domain=s6(o);return l}createDefaultScale({type:e,domain:r,unknown:n,clamp:a,nice:l}){const o=BF[e]();return r&&o.domain&&o.domain(r),n&&o.unknown(n),a!==void 0&&o.clamp&&o.clamp(a),l!==void 0&&o.nice&&o.nice(l),o}}class NF{apply(e){e.hooks.beforeRender.tap("LayerAnimateStylePlugin",()=>{e.animateStatus&&e.models.forEach(n=>{n.addUniforms(_t({},e.layerModel.getAnimateUniforms()))})})}}let kF=class{apply(e){e.hooks.afterInit.tap("LayerMaskPlugin",()=>{const{maskLayers:r,enableMask:n}=e.getLayerConfig();!e.tileLayer&&r&&r.length>0&&e.updateLayerConfig({mask:n})})}};class UF{build(e){return bt(function*(){e.prepareBuildModel(),yield e.buildModels()})()}initLayerModel(e){var r=this;return bt(function*(){yield r.build(e),e.styleNeedUpdate=!1})()}prepareLayerModel(e){var r=this;return bt(function*(){yield r.build(e),e.styleNeedUpdate=!1})()}apply(e){var r=this;e.hooks.init.tapPromise("LayerModelPlugin",bt(function*(){if(e.getSource().isTile){e.prepareBuildModel();return}e.log(Ia.BuildModelStart,es.INIT),yield r.initLayerModel(e),e.log(Ia.BuildModelEnd,es.INIT)})),e.hooks.beforeRenderData.tapPromise("LayerModelPlugin",function(){var n=bt(function*(a){return!a||e.getSource().isTile?!1:(e.log(Ia.BuildModelStart,es.UPDATE),yield r.prepareLayerModel(e),e.log(Ia.BuildModelEnd,es.UPDATE),!0)});return function(a){return n.apply(this,arguments)}}())}}class zF{apply(e){e.hooks.afterInit.tap("LayerStylePlugin",()=>{const{autoFit:r,fitBoundsOptions:n}=e.getLayerConfig();r&&e.fitBounds(n),e.styleNeedUpdate=!1})}}const VF=["type"],D6={directional:{lights:"u_DirectionalLights",num:"u_NumOfDirectionalLights"},spot:{lights:"u_SpotLights",num:"u_NumOfSpotLights"}},HF={type:"directional",direction:[1,10.5,12],ambient:[.2,.2,.2],diffuse:[.6,.6,.6],specular:[.1,.1,.1]},jF={direction:[0,0,0],ambient:[0,0,0],diffuse:[0,0,0],specular:[0,0,0]},XF={position:[0,0,0],direction:[0,0,0],ambient:[0,0,0],diffuse:[0,0,0],specular:[0,0,0],constant:1,linear:0,quadratic:0,angle:14,exponent:40,blur:5};function WF(t){const e={u_DirectionalLights:new Array(3).fill(_t({},jF)),u_NumOfDirectionalLights:0,u_SpotLights:new Array(3).fill(_t({},XF)),u_NumOfSpotLights:0};return(!t||!t.length)&&(t=[HF]),t.forEach(r=>{let{type:n="directional"}=r,a=fu(r,VF);const l=D6[n].lights,o=D6[n].num,p=e[o];e[l][p]=_t(_t({},e[l][p]),a),e[o]++}),e}class GF{apply(e){e.hooks.beforeRender.tap("LightingPlugin",()=>{const{enableLighting:r}=e.getLayerConfig();r&&e.models.forEach(n=>n.addUniforms(_t({},WF())))})}}function Hb(t){return t.map(e=>(typeof e=="string"&&(e=[e,{}]),e))}function jb(t,e,r,n){const a=t.multiPassRenderer;return a.add(n("render")),Hb(e).forEach(l=>{const[o,p]=l;a.add(r(o),p)}),a.add(r("copy")),a}class ZF{constructor(){I(this,"enabled",void 0)}apply(e,{rendererService:r,postProcessingPassFactory:n,normalPassFactory:a}){e.hooks.init.tapPromise("MultiPassRendererPlugin",()=>{const{enableMultiPassRenderer:l,passes:o=[]}=e.getLayerConfig();this.enabled=!!l&&e.getLayerConfig().enableMultiPassRenderer!==!1,this.enabled&&(e.multiPassRenderer=jb(e,o,n,a),e.multiPassRenderer.setRenderFlag(!0))}),e.hooks.beforeRender.tap("MultiPassRendererPlugin",()=>{if(this.enabled){const{width:l,height:o}=r.getViewportSize();e.multiPassRenderer.resize(l,o)}})}}const Z1={POSITION:0,POSITION_64LOW:1,COLOR:2,PICKING_COLOR:3,STROKE:4,OPACITY:5,OFFSETS:6,ROTATION:7,MAX:8};function $F(t){switch(t){case"rotation":return{name:"Rotation",type:Lr.Attribute,descriptor:{name:"a_Rotation",shaderLocation:Z1.ROTATION,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{rotation:r=0}=e;return Array.isArray(r)?[r[0]]:[r]}}};case"stroke":return{name:"stroke",type:Lr.Attribute,descriptor:{name:"a_Stroke",shaderLocation:Z1.STROKE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:4,update:e=>{const{stroke:r=[1,1,1,1]}=e;return r}}};case"opacity":return{name:"opacity",type:Lr.Attribute,descriptor:{name:"a_Opacity",shaderLocation:Z1.OPACITY,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{opacity:r=1}=e;return[r]}}};case"offsets":return{name:"offsets",type:Lr.Attribute,descriptor:{name:"a_Offsets",shaderLocation:Z1.OFFSETS,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const{offsets:r}=e;return r}}};default:return}}const{isNumber:qF}=Ko,Yf={NONE:0,ENCODE:1,HIGHLIGHT:2};class YF{constructor(){I(this,"pickingUniformMap",void 0)}pickOption2Array(){const e=[];return this.pickingUniformMap.forEach(r=>{qF(r)?e.push(r):e.push(...r)}),e}updatePickOption(e,r){Object.keys(e).forEach(o=>{this.pickingUniformMap.set(o,e[o])});const n=r.getLayerConfig().pickingBuffer||0,a=Number(r.getShaderPickStat());this.pickingUniformMap.set("u_PickingBuffer",n),this.pickingUniformMap.set("u_shaderPick",a),r.getPickingUniformBuffer().subData({offset:0,data:this.pickOption2Array()})}apply(e,{styleAttributeService:r}){this.pickingUniformMap=new Map([["u_HighlightColor",[1,0,0,1]],["u_SelectColor",[1,0,0,1]],["u_PickingColor",[0,0,0]],["u_PickingStage",0],["u_CurrentSelectedId",[0,0,0]],["u_PickingThreshold",10],["u_PickingBuffer",0],["u_shaderPick",0],["u_activeMix",0]]),e.hooks.init.tapPromise("PixelPickingPlugin",()=>{const{enablePicking:n}=e.getLayerConfig();r.registerStyleAttribute({name:"pickingColor",type:Lr.Attribute,descriptor:{name:"a_PickingColor",shaderLocation:Z1.PICKING_COLOR,buffer:{data:[],type:H.FLOAT},size:3,update:a=>{const{id:l}=a;return n?yp(l):[0,0,0]}}})}),e.hooks.beforePickingEncode.tap("PixelPickingPlugin",()=>{const{enablePicking:n}=e.getLayerConfig();n&&e.isVisible()&&(this.updatePickOption({u_PickingStage:Yf.ENCODE},e),e.models.forEach(a=>a.addUniforms({u_PickingStage:Yf.ENCODE})))}),e.hooks.afterPickingEncode.tap("PixelPickingPlugin",()=>{const{enablePicking:n}=e.getLayerConfig();n&&e.isVisible()&&(this.updatePickOption({u_PickingStage:Yf.HIGHLIGHT},e),e.models.forEach(a=>a.addUniforms({u_PickingStage:Yf.HIGHLIGHT})))}),e.hooks.beforeHighlight.tap("PixelPickingPlugin",n=>{const{highlightColor:a,activeMix:l=0}=e.getLayerConfig(),o=typeof a=="string"?Fi(a):a||[1,0,0,1];e.updateLayerConfig({pickedFeatureID:Zh(new Uint8Array(n))});const p={u_PickingStage:Yf.HIGHLIGHT,u_PickingColor:n,u_HighlightColor:o.map(m=>m*255),u_activeMix:l};this.updatePickOption(p,e),e.models.forEach(m=>m.addUniforms(p))}),e.hooks.beforeSelect.tap("PixelPickingPlugin",n=>{const{selectColor:a,selectMix:l=0}=e.getLayerConfig(),o=typeof a=="string"?Fi(a):a||[1,0,0,1];e.updateLayerConfig({pickedFeatureID:Zh(new Uint8Array(n))});const p={u_PickingStage:Yf.HIGHLIGHT,u_PickingColor:n,u_HighlightColor:o.map(m=>m*255),u_activeMix:l,u_CurrentSelectedId:n,u_SelectColor:o.map(m=>m*255)};this.updatePickOption(p,e),e.models.forEach(m=>m.addUniforms(p))})}}const KF=["mvt","geojsonvt","testTile"];function QF(t){const e=t.getSource();return KF.includes(e.parser.type)}class JF{apply(e,{styleAttributeService:r}){e.hooks.init.tapPromise("RegisterStyleAttributePlugin",()=>{QF(e)||this.registerBuiltinAttributes(r,e)})}registerBuiltinAttributes(e,r){if(r.type==="MaskLayer"){this.registerPositionAttribute(e);return}this.registerPositionAttribute(e),this.registerColorAttribute(e)}registerPositionAttribute(e){e.registerStyleAttribute({name:"position",type:Lr.Attribute,descriptor:{name:"a_Position",shaderLocation:Z1.POSITION,buffer:{data:[],type:H.FLOAT},size:3,update:(r,n,a)=>a.length===2?[a[0],a[1],0]:[a[0],a[1],a[2]]}})}registerColorAttribute(e){e.registerStyleAttribute({name:"color",type:Lr.Attribute,descriptor:{name:"a_Color",shaderLocation:Z1.COLOR,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:4,update:r=>{const{color:n}=r;return!n||!n.length?[1,1,1,1]:n}}})}}class eN{constructor(){I(this,"cameraService",void 0),I(this,"coordinateSystemService",void 0),I(this,"rendererService",void 0),I(this,"mapService",void 0),I(this,"layerService",void 0)}apply(e,{rendererService:r,mapService:n,layerService:a,coordinateSystemService:l,cameraService:o}){this.rendererService=r,this.mapService=n,this.layerService=a,this.coordinateSystemService=l,this.cameraService=o;let p;this.rendererService.uniformBuffers[0]||(p=this.rendererService.createBuffer({data:new Float32Array(16*4+4*7),isUBO:!0,label:"renderUniformBuffer"}),this.rendererService.uniformBuffers[0]=p),e.hooks.beforeRender.tap("ShaderUniformPlugin",()=>{const m=e.getLayerConfig().tileOrigin;this.coordinateSystemService.refresh(m);const{width:v,height:E}=this.rendererService.getViewportSize(),{data:b,uniforms:A}=this.generateUBO(v,E);this.layerService.alreadyInRendering&&this.rendererService.uniformBuffers[0]&&this.rendererService.uniformBuffers[0].subData({offset:0,data:b}),this.rendererService.queryVerdorInfo()==="WebGL1"&&e.models.forEach(O=>{O.addUniforms(_t(_t({},A),{},{u_PickingBuffer:e.getLayerConfig().pickingBuffer||0,u_shaderPick:Number(e.getShaderPickStat())}))})})}generateUBO(e,r){const n=this.cameraService.getProjectionMatrix(),a=this.cameraService.getViewMatrix(),l=this.cameraService.getViewProjectionMatrix(),o=this.cameraService.getModelMatrix(),p=this.coordinateSystemService.getViewportCenterProjection(),m=this.coordinateSystemService.getPixelsPerDegree(),v=this.cameraService.getZoom(),E=this.coordinateSystemService.getPixelsPerDegree2(),b=this.cameraService.getZoomScale(),A=this.coordinateSystemService.getPixelsPerMeter(),R=this.coordinateSystemService.getCoordinateSystem(),O=this.cameraService.getCameraPosition(),D=window.devicePixelRatio,N=this.coordinateSystemService.getViewportCenter(),W=[e,r],G=this.cameraService.getFocalDistance();return{data:[...a,...n,...l,...o,...p,...m,v,...E,b,...A,R,...O,D,...N,...W,G,0,0,0],uniforms:{[kh.ProjectionMatrix]:n,[kh.ViewMatrix]:a,[kh.ViewProjectionMatrix]:l,[kh.Zoom]:v,[kh.ZoomScale]:b,[kh.FocalDistance]:G,[kh.CameraPosition]:O,[Zf.CoordinateSystem]:R,[Zf.ViewportCenter]:N,[Zf.ViewportCenterProjection]:p,[Zf.PixelsPerDegree]:m,[Zf.PixelsPerDegree2]:E,[Zf.PixelsPerMeter]:A,u_ViewportSize:W,u_ModelMatrix:o,u_DevicePixelRatio:D}}}}class tN{apply(e){e.hooks.beforeRender.tap("UpdateModelPlugin",()=>{e.layerModel&&e.layerModel.needUpdate().then(r=>{r&&e.renderLayers()})}),e.hooks.afterRender.tap("UpdateModelPlugin",()=>{e.layerModelNeedUpdate=!1})}}class rN{apply(e,{styleAttributeService:r}){e.hooks.init.tapPromise("UpdateStyleAttributePlugin",()=>{this.initStyleAttribute(e,{styleAttributeService:r})}),e.hooks.beforeRender.tap("UpdateStyleAttributePlugin",()=>{e.layerModelNeedUpdate||e.inited&&this.updateStyleAttribute(e,{styleAttributeService:r})})}updateStyleAttribute(e,{styleAttributeService:r}){const n=r.getLayerStyleAttributes()||[],a=r.getLayerStyleAttribute("filter");if(a&&a.needRegenerateVertices){e.layerModelNeedUpdate=!0,n.forEach(l=>l.needRegenerateVertices=!1);return}n.filter(l=>l.needRegenerateVertices).forEach(l=>{r.updateAttributeByFeatureRange(l.name,e.getEncodedData(),l.featureRange.startIndex,l.featureRange.endIndex,e),l.needRegenerateVertices=!1})}initStyleAttribute(e,{styleAttributeService:r}){(r.getLayerStyleAttributes()||[]).filter(a=>a.needRegenerateVertices).forEach(a=>{r.updateAttributeByFeatureRange(a.name,e.getEncodedData(),a.featureRange.startIndex,a.featureRange.endIndex),a.needRegenerateVertices=!1})}}function nN(){return[new xD,new JF,new FF,new yD,new zF,new kF,new rN,new tN,new ZF,new eN,new NF,new GF,new YF,new UF]}const Xb={[j1.additive]:{enable:!0,func:{srcRGB:H.ONE,dstRGB:H.ONE,srcAlpha:1,dstAlpha:1}},[j1.none]:{enable:!1},[j1.normal]:{enable:!0,func:{srcRGB:H.SRC_ALPHA,dstRGB:H.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}},[j1.subtractive]:{enable:!0,func:{srcRGB:H.ONE,dstRGB:H.ONE,srcAlpha:H.ZERO,dstAlpha:H.ONE_MINUS_SRC_COLOR},equation:{rgb:H.FUNC_SUBTRACT,alpha:H.FUNC_SUBTRACT}},[j1.max]:{enable:!0,func:{srcRGB:H.ONE,dstRGB:H.ONE},equation:{rgb:H.MAX_EXT}},[j1.min]:{enable:!0,func:{srcRGB:H.ONE,dstRGB:H.ONE},equation:{rgb:H.MIN_EXT}}};class iN{constructor(e){I(this,"layer",void 0),this.layer=e}pickRender(e){const n=this.layer.getContainer().layerService,a=this.layer;if(a.tileLayer)return a.tileLayer.pickRender(e);a.hooks.beforePickingEncode.call(),n.renderTileLayerMask(a),a.renderModels({ispick:!0}),a.hooks.afterPickingEncode.call()}pick(e,r){var n=this;return bt(function*(){const l=n.layer.getContainer().pickingService;return e.type==="RasterLayer"?n.pickRasterLayer(e,r):(n.pickRender(r),l.pickFromPickingFBO(e,r))})()}pickRasterLayer(e,r,n){const a=this.layer.getContainer(),l=a.pickingService,o=a.mapService,p=this.layer.getSource().extent,m=Ww(r.lngLat,p),v={x:r.x,y:r.y,type:r.type,lngLat:r.lngLat,target:r,rasterValue:null},E=n||e;if(m){const b=this.readRasterValue(e,p,o,r.x,r.y);return v.rasterValue=b,l.triggerHoverOnLayer(E,v),!0}else return v.type=r.type==="mousemove"?"mouseout":"un"+r.type,l.triggerHoverOnLayer(E,_t(_t({},v),{},{type:"unpick"})),l.triggerHoverOnLayer(E,v),!1}readRasterValue(e,r,n,a,l){const o=e.getSource().data.dataArray[0],[p=0,m=0,v=10,E=-10]=r,b=n.lngLatToContainer([p,m]),A=n.lngLatToContainer([v,E]),R=A.x-b.x,O=b.y-A.y,D=[(a-b.x)/R,(l-A.y)/O],N=o.width||1,W=o.height||1,G=Math.floor(D[0]*N),Y=Math.floor(D[1]*W),Q=Math.max(0,Y-1)*N+G;return o.data[Q]}selectFeature(e){const r=this.layer,[n,a,l]=e;r.hooks.beforeSelect.call([n,a,l])}highlightPickedFeature(e){const[r,n,a]=e;this.layer.hooks.beforeHighlight.call([r,n,a])}getFeatureById(e){return this.layer.getSource().getFeatureById(e)}}class oN{constructor(e){I(this,"layer",void 0),I(this,"rendererService",void 0),I(this,"colorTexture",void 0),I(this,"key",void 0),this.layer=e;const r=this.layer.getContainer();this.rendererService=r.rendererService}getColorTexture(e,r){const n=this.getTextureKey(e,r);return this.key===n?this.colorTexture:(this.createColorTexture(e,r),this.key=n,this.colorTexture)}createColorTexture(e,r){const{createTexture2D:n}=this.rendererService,a=this.getColorRampBar(e,r),l=n({data:new Uint8Array(a.data),width:a.width,height:a.height,flipY:!1,unorm:!0});return this.colorTexture=l,l}setColorTexture(e,r,n){this.key=this.getTextureKey(r,n),this.colorTexture=e}destroy(){var e;(e=this.colorTexture)===null||e===void 0||e.destroy()}getColorRampBar(e,r){switch(e.type){case"cat":return BS(e);case"quantize":return FS(e);case"custom":return NS(e,r);case"linear":return DS(e,r);default:return LS(e)}}getTextureKey(e,r){var n;return`${e.colors.join("_")}_${e==null||(n=e.positions)===null||n===void 0?void 0:n.join("_")}_${e.type}_${r==null?void 0:r.join("_")}`}}const aN=["passes"],sN=["moduleName","vertexShader","fragmentShader","defines","inject","triangulation","styleOption","pickingEnabled"],{isEqual:dg,isFunction:B6,isNumber:F6,isObject:Qa,isPlainObject:lN,isUndefined:uN}=Ko;let N6=0;class Np extends Ps.EventEmitter{get shaderModuleService(){return this.container.shaderModuleService}get cameraService(){return this.container.cameraService}get coordinateService(){return this.container.coordinateSystemService}get iconService(){return this.container.iconService}get fontService(){return this.container.fontService}get pickingService(){return this.container.pickingService}get rendererService(){return this.container.rendererService}get layerService(){return this.container.layerService}get debugService(){return this.container.debugService}get interactionService(){return this.container.interactionService}get mapService(){var e;return(e=this.container)===null||e===void 0?void 0:e.mapService}get normalPassFactory(){return this.container.normalPassFactory}constructor(e={}){super(),I(this,"id",`${N6++}`),I(this,"name",`${N6}`),I(this,"parent",void 0),I(this,"coordCenter",void 0),I(this,"type",void 0),I(this,"visible",!0),I(this,"zIndex",0),I(this,"minZoom",void 0),I(this,"maxZoom",void 0),I(this,"inited",!1),I(this,"layerModelNeedUpdate",!1),I(this,"pickedFeatureID",null),I(this,"selectedFeatureID",null),I(this,"styleNeedUpdate",!1),I(this,"rendering",void 0),I(this,"forceRender",!1),I(this,"clusterZoom",0),I(this,"layerType",void 0),I(this,"triangulation",void 0),I(this,"layerPickService",void 0),I(this,"textureService",void 0),I(this,"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),I(this,"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),I(this,"hooks",{init:new tP,afterInit:new _5,beforeRender:new _5,beforeRenderData:new rP,afterRender:new pc,beforePickingEncode:new pc,afterPickingEncode:new pc,beforeHighlight:new pc(["pickedColor"]),afterHighlight:new pc,beforeSelect:new pc(["pickedColor"]),afterSelect:new pc,beforeDestroy:new pc,afterDestroy:new pc}),I(this,"models",[]),I(this,"multiPassRenderer",void 0),I(this,"plugins",void 0),I(this,"startInit",!1),I(this,"sourceOption",void 0),I(this,"layerModel",void 0),I(this,"shapeOption",void 0),I(this,"tileLayer",void 0),I(this,"layerChildren",[]),I(this,"masks",[]),I(this,"configService",X7),I(this,"styleAttributeService",void 0),I(this,"layerSource",void 0),I(this,"postProcessingPassFactory",void 0),I(this,"animateOptions",{enable:!1}),I(this,"container",void 0),I(this,"encodedData",void 0),I(this,"currentPickId",null),I(this,"rawConfig",void 0),I(this,"needUpdateConfig",void 0),I(this,"encodeStyleAttribute",{}),I(this,"enableShaderEncodeStyles",[]),I(this,"enableDataEncodeStyles",[]),I(this,"pendingStyleAttributes",[]),I(this,"scaleOptions",{}),I(this,"animateStartTime",void 0),I(this,"animateStatus",!1),I(this,"isDestroyed",!1),I(this,"uniformBuffers",[]),I(this,"encodeDataLength",0),I(this,"sourceEvent",()=>{this.dataState.dataSourceNeedUpdate=!0;const r=this.getLayerConfig();r&&r.autoFit&&this.fitBounds(r.fitBoundsOptions),this.layerSource.getSourceCfg().autoRender&&setTimeout(()=>{this.reRender()},10)}),this.name=e.name||this.id,this.zIndex=e.zIndex||0,this.rawConfig=e,this.masks=e.maskLayers||[]}addMask(e){this.masks.push(e),this.updateLayerConfig({maskLayers:this.masks}),this.enableMask()}removeMask(e){const r=this.masks.indexOf(e);r>-1&&this.masks.splice(r,1),this.updateLayerConfig({maskLayers:this.masks})}disableMask(){this.updateLayerConfig({enableMask:!1})}enableMask(){this.updateLayerConfig({enableMask:!0})}addMaskLayer(e){this.masks.push(e)}removeMaskLayer(e){const r=this.masks.indexOf(e);r>-1&&this.masks.splice(r,1),e.destroy()}getAttribute(e){return this.styleAttributeService.getLayerStyleAttribute(e)}getLayerConfig(){return this.configService.getLayerConfig(this.id)}updateLayerConfig(e){if(Object.keys(e).map(r=>{r in this.rawConfig&&(this.rawConfig[r]=e[r])}),!this.startInit)this.needUpdateConfig=_t(_t({},this.needUpdateConfig),e);else{const r=this.container.id;this.configService.setLayerConfig(r,this.id,_t(_t(_t({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),e)),this.needUpdateConfig={}}}setContainer(e){this.container=e}getContainer(){return this.container}addPlugin(e){return this.plugins.push(e),this}init(){var e=this;return bt(function*(){const r=e.container.id;e.startInit=!0,e.configService.setLayerConfig(r,e.id,e.rawConfig),e.layerType=e.rawConfig.layerType;const{enableMultiPassRenderer:n,passes:a}=e.getLayerConfig();n&&a!==null&&a!==void 0&&a.length&&a.length>0&&e.mapService.on("mapAfterFrameChange",()=>{e.renderLayers()}),e.postProcessingPassFactory=e.container.postProcessingPassFactory,e.styleAttributeService=e.container.styleAttributeService,n&&(e.multiPassRenderer=e.container.multiPassRenderer,e.multiPassRenderer.setLayer(e)),e.pendingStyleAttributes.forEach(({attributeName:l,attributeField:o,attributeValues:p,updateOptions:m})=>{e.styleAttributeService.updateStyleAttribute(l,{scale:_t({field:o},e.splitValuesAndCallbackInAttribute(p,o?void 0:e.getLayerConfig()[l]))},m)}),e.pendingStyleAttributes=[],e.plugins=nN();for(const l of e.plugins)l.apply(e,e.container);e.layerPickService=new iN(e),e.textureService=new oN(e),e.log(Ia.LayerInitStart),yield e.hooks.init.promise(),e.log(Ia.LayerInitEnd),e.inited=!0,e.emit("inited",{target:e,type:"inited"}),e.emit("add",{target:e,type:"add"}),e.hooks.afterInit.call()})()}log(e,r="init"){var n;if(this.tileLayer||this.isTileLayer)return;const a=`${this.id}.${r}.${e}`,l={id:this.id,type:this.type};(n=this.debugService)===null||n===void 0||n.log(a,l)}updateModelData(e){e.attributes&&e.elements?this.models.map(r=>{r.updateAttributesAndElements(e.attributes,e.elements)}):console.warn("data error")}setLayerPickService(e){this.layerPickService=e}prepareBuildModel(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});const{animateOption:e}=this.getLayerConfig();e!=null&&e.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}color(e,r,n){return this.updateStyleAttribute("color",e,r,n),this}texture(e,r,n){return this.updateStyleAttribute("texture",e,r,n),this}rotate(e,r,n){return this.updateStyleAttribute("rotate",e,r,n),this}size(e,r,n){return this.updateStyleAttribute("size",e,r,n),this}filter(e,r,n){const a=this.updateStyleAttribute("filter",e,r,n);return this.dataState.dataSourceNeedUpdate=a&&this.inited,this}shape(e,r,n){this.shapeOption={field:e,values:r};const a=this.updateStyleAttribute("shape",e,r,n);return this.dataState.dataSourceNeedUpdate=a&&this.inited,this}label(e,r,n){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:e,attributeValues:r,updateOptions:n}),this}animate(e){let r={};return Qa(e)?(r.enable=!0,r=_t(_t({},r),e)):r.enable=e,this.updateLayerConfig({animateOption:r}),this}source(e,r){return(e==null?void 0:e.type)==="source"?(this.setSource(e),this):(this.sourceOption={data:e,options:r},this.clusterZoom=0,this)}setData(e,r){return this.inited?(this.dataUpdatelog(),this.layerSource.setData(e,r)):this.on("inited",()=>{this.dataUpdatelog(),this.layerSource.setData(e,r)}),this}dataUpdatelog(){this.log(Ia.SourceInitStart,es.UPDATE),this.layerSource.once("update",()=>{this.log(Ia.SourceInitEnd,es.UPDATE)})}style(e){const{passes:r}=e,n=fu(e,aN);r&&Hb(r).forEach(l=>{const o=this.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(l[0]);o&&o.updateOptions(l[1])}),n.borderColor&&(n.stroke=n.borderColor),n.borderWidth&&(n.strokeWidth=n.borderWidth);const a=n;return Object.keys(n).forEach(l=>{const o=n[l];Array.isArray(o)&&o.length===2&&!F6(o[0])&&!F6(o[1])&&(a[l]={field:o[0],value:o[1]})}),this.encodeStyle(a),this.updateLayerConfig(a),this}encodeStyle(e){Object.keys(e).forEach(r=>{[...this.enableShaderEncodeStyles,...this.enableDataEncodeStyles].includes(r)&&lN(e[r])&&(e[r].field||e[r].value)&&!dg(this.encodeStyleAttribute[r],e[r])?(this.encodeStyleAttribute[r]=e[r],this.updateStyleAttribute(r,e[r].field,e[r].value),this.inited&&(this.dataState.dataMappingNeedUpdate=!0)):this.encodeStyleAttribute[r]&&(delete this.encodeStyleAttribute[r],this.dataState.dataSourceNeedUpdate=!0)})}scale(e,r){const n=_t({},this.scaleOptions);if(Qa(e)?this.scaleOptions=_t(_t({},this.scaleOptions),e):this.scaleOptions[e]=r,this.styleAttributeService&&!dg(n,this.scaleOptions)){const a=Qa(e)?e:{[e]:r};this.styleAttributeService.updateScaleAttribute(a)}return this}renderLayers(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}prerender(){}render(e={}){return this.tileLayer?(this.tileLayer.render(),this):(this.layerService.beforeRenderData(this),this.encodeDataLength<=0&&!this.forceRender?this:(this.renderModels(e),this))}renderMultiPass(){var e=this;return bt(function*(){e.encodeDataLength<=0&&!e.forceRender||(e.multiPassRenderer&&e.multiPassRenderer.getRenderFlag()?yield e.multiPassRenderer.render():e.renderModels())})()}active(e){const r={};return r.enableHighlight=Qa(e)?!0:e,Qa(e)?(r.enableHighlight=!0,e.color&&(r.highlightColor=e.color),e.mix&&(r.activeMix=e.mix)):r.enableHighlight=!!e,this.updateLayerConfig(r),this}setActive(e,r){if(Qa(e)){const{x:n=0,y:a=0}=e;this.updateLayerConfig({highlightColor:Qa(r)?r.color:this.getLayerConfig().highlightColor,activeMix:Qa(r)?r.mix:this.getLayerConfig().activeMix}),this.pick({x:n,y:a})}else this.updateLayerConfig({pickedFeatureID:e,highlightColor:Qa(r)?r.color:this.getLayerConfig().highlightColor,activeMix:Qa(r)?r.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(yp(e)).then(()=>{setTimeout(()=>{this.reRender()},1)})}select(e){const r={};return r.enableSelect=Qa(e)?!0:e,Qa(e)?(r.enableSelect=!0,e.color&&(r.selectColor=e.color),e.mix&&(r.selectMix=e.mix)):r.enableSelect=!!e,this.updateLayerConfig(r),this}setSelect(e,r){if(Qa(e)){const{x:n=0,y:a=0}=e;this.updateLayerConfig({selectColor:Qa(r)?r.color:this.getLayerConfig().selectColor,selectMix:Qa(r)?r.mix:this.getLayerConfig().selectMix}),this.pick({x:n,y:a})}else this.updateLayerConfig({pickedFeatureID:e,selectColor:Qa(r)?r.color:this.getLayerConfig().selectColor,selectMix:Qa(r)?r.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(yp(e)).then(()=>{setTimeout(()=>{this.reRender()},1)})}setBlend(e){return this.updateLayerConfig({blend:e}),this.reRender(),this}show(){return this.updateLayerConfig({visible:!0}),this.reRender(),this.emit("show"),this}hide(){return this.updateLayerConfig({visible:!1}),this.reRender(),this.emit("hide"),this}setIndex(e){return this.zIndex=e,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}setCurrentPickId(e){this.currentPickId=e}getCurrentPickId(){return this.currentPickId}setCurrentSelectedId(e){this.selectedFeatureID=e}getCurrentSelectedId(){return this.selectedFeatureID}isVisible(){const e=this.mapService.getZoom(),{visible:r,minZoom:n=-1/0,maxZoom:a=1/0}=this.getLayerConfig();return!!r&&e>=n&&eMath.abs(l)===1/0)?this:(this.mapService.fitBounds([[n[0],n[1]],[n[2],n[3]]],e),this)}destroy(e=!0){var r,n,a,l,o;if(this.isDestroyed)return;(r=this.layerModel)===null||r===void 0||r.uniformBuffers.forEach(m=>{m.destroy()}),this.layerChildren.map(m=>m.destroy(!1)),this.layerChildren=[];const{maskfence:p}=this.getLayerConfig();p&&(this.masks.map(m=>m.destroy(!1)),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(n=this.multiPassRenderer)===null||n===void 0||n.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(a=this.layerModel)===null||a===void 0||a.clearModels(e),(l=this.tileLayer)===null||l===void 0||l.destroy(),this.models=[],(o=this.debugService)===null||o===void 0||o.removeLog(this.id),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroyed=!0}clear(){this.styleAttributeService.clearAllAttributes()}clearModels(){var e;this.models.forEach(r=>r.destroy()),(e=this.layerModel)===null||e===void 0||e.clearModels(),this.models=[]}isDirty(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(e=>e.needRescale||e.needRemapping||e.needRegenerateVertices).length}setSource(e){if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=e,this.clusterZoom=0,this.inited&&this.layerSource.cluster){const r=this.mapService.getZoom();this.layerSource.updateClusterData(r)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",({type:r})=>{if(this.coordCenter===void 0){const n=this.layerSource.center;this.coordCenter=n}if(r==="update"){if(this.tileLayer){this.tileLayer.reload();return}this.sourceEvent()}})}getSource(){return this.layerSource}getScaleOptions(){return this.scaleOptions}setEncodedData(e){this.encodedData=e,this.encodeDataLength=e.length}getEncodedData(){return this.encodedData}getScale(e){return this.styleAttributeService.getLayerAttributeScale(e)}getLegend(e){var r,n,a;const l=this.styleAttributeService.getLayerStyleAttribute(e);return{type:(n=((l==null||(r=l.scale)===null||r===void 0?void 0:r.scalers)||[])[0])===null||n===void 0||(n=n.option)===null||n===void 0?void 0:n.type,field:l==null||(a=l.scale)===null||a===void 0?void 0:a.field,items:this.getLegendItems(e)}}getLegendItems(e){const r=this.styleAttributeService.getLayerAttributeScale(e);return r?r.invertExtent?r.range().map(a=>({value:r.invertExtent(a),[e]:a})):r.ticks?r.ticks().map(a=>({value:a,[e]:r(a)})):r!=null&&r.domain?r.domain().filter(a=>!uN(a)).map(a=>({value:a,[e]:r(a)})):[]:[]}pick({x:e,y:r}){this.interactionService.triggerHover({x:e,y:r})}boxSelect(e,r){this.pickingService.boxPickLayer(this,e,r)}buildLayerModel(e){var r=this;return bt(function*(){const{moduleName:n,vertexShader:a,fragmentShader:l,defines:o,inject:p,triangulation:m,styleOption:v,pickingEnabled:E=!0}=e,b=fu(e,sN);r.shaderModuleService.registerModule(n,{vs:a,fs:l,defines:o,inject:p});const{vs:A,fs:R,uniforms:O}=r.shaderModuleService.getModule(n),{createModel:D}=r.rendererService;return new Promise(N=>{const{attributes:W,elements:G,count:Y}=r.styleAttributeService.createAttributesAndIndices(r.encodedData,m,v,r),Q=[...r.layerModel.uniformBuffers,...r.rendererService.uniformBuffers];E&&Q.push(r.getPickingUniformBuffer());const J=_t({attributes:W,uniforms:O,fs:R,vs:A,elements:G,blend:Xb[j1.normal],uniformBuffers:Q,textures:r.layerModel.textures},b);Y&&(J.count=Y);const Se=D(J);N(Se)})})()}createAttributes(e){const{triangulation:r}=e,{attributes:n}=this.styleAttributeService.createAttributes(this.encodedData,r);return n}getTime(){return this.layerService.clock.getDelta()}setAnimateStartTime(){this.animateStartTime=this.layerService.clock.getElapsedTime()}stopAnimate(){this.animateStatus&&(this.layerService.stopAnimate(),this.animateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}getLayerAnimateTime(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}needPick(e){const{enableHighlight:r=!0,enableSelect:n=!0}=this.getLayerConfig();let a=this.eventNames().indexOf(e)!==-1||this.eventNames().indexOf("un"+e)!==-1;return(e==="click"||e==="dblclick")&&n&&(a=!0),e==="mousemove"&&(r||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(a=!0),this.isVisible()&&a}buildModels(){return bt(function*(){throw new Error("Method not implemented.")})()}rebuildModels(){var e=this;return bt(function*(){yield e.buildModels()})()}renderMulPass(e){return bt(function*(){yield e.render()})()}renderModels(e={}){return this.encodeDataLength<=0&&!this.forceRender?(this.clearModels(),this):(this.hooks.beforeRender.call(),this.models.forEach(r=>{r.draw({uniforms:this.layerModel.getUninforms(),blend:this.layerModel.getBlend(),stencil:this.layerModel.getStencil(e),textures:this.layerModel.textures},(e==null?void 0:e.ispick)||!1)}),this.hooks.afterRender.call(),this)}updateStyleAttribute(e,r,n,a){const l=this.configService.getAttributeConfig(this.id)||{};return dg(l[e],{field:r,values:n})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(e)!==-1&&this.configService.setAttributeConfig(this.id,{[e]:{field:r,values:n}}),this.startInit?this.styleAttributeService.updateStyleAttribute(e,{scale:_t({field:r},this.splitValuesAndCallbackInAttribute(n,this.getLayerConfig()[r]))},a):this.pendingStyleAttributes.push({attributeName:e,attributeField:r,attributeValues:n,updateOptions:a}),!0)}getLayerAttributeConfig(){return this.configService.getAttributeConfig(this.id)}getShaderPickStat(){return this.layerService.getShaderPickStat()}setEarthTime(e){console.warn("empty fn")}processData(e){return e}getModelType(){throw new Error("Method not implemented.")}getDefaultConfig(){return{}}initLayerModels(){var e=this;return bt(function*(){e.models.forEach(n=>n.destroy()),e.models=[],e.uniformBuffers.forEach(n=>{n.destroy()}),e.uniformBuffers=[];const r=e.rendererService.createBuffer({data:new Float32Array(20).fill(0),isUBO:!0,label:"pickingUniforms"});e.uniformBuffers.push(r),e.models=yield e.layerModel.initModels()})()}getPickingUniformBuffer(){return this.uniformBuffers[0]}reRender(){this.inited&&this.layerService.reRender()}splitValuesAndCallbackInAttribute(e){return{values:B6(e)?void 0:e,callback:B6(e)?e:void 0}}}function cN(t,e){return{enable:t,mask:255,func:{cmp:H.EQUAL,ref:e?1:0,mask:1}}}function k6(t){return t.maskOperation===t_.OR?{enable:!0,mask:255,func:{cmp:H.ALWAYS,ref:1,mask:255},opFront:{fail:H.KEEP,zfail:H.REPLACE,zpass:H.REPLACE}}:{enable:!0,mask:255,func:{cmp:t.stencilType===Wh.SINGLE||t.stencilIndex===0?H.ALWAYS:H.LESS,ref:t.stencilType===Wh.SINGLE?1:t.stencilIndex===0?2:1,mask:255},opFront:{fail:H.KEEP,zfail:H.REPLACE,zpass:H.REPLACE}}}const hN={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0,strokeOpacity:1,thetaOffset:.314},w0={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float",strokeOpacity:"float",thetaOffset:"float"};var g2={exports:{}};g2.exports=o_;g2.exports.default=o_;function o_(t,e,r){r=r||2;var n=e&&e.length,a=n?e[0]*r:t.length,l=Wb(t,0,a,r,!0),o=[];if(!l||l.next===l.prev)return o;var p,m,v,E,b,A,R;if(n&&(l=_N(t,e,l,r)),t.length>80*r){p=v=t[0],m=E=t[1];for(var O=r;Ov&&(v=b),A>E&&(E=A);R=Math.max(v-p,E-m),R=R!==0?32767/R:0}return g3(l,o,r,p,m,R,0),o}function Wb(t,e,r,n,a){var l,o;if(a===pv(t,e,r,n)>0)for(l=e;l=e;l-=n)o=U6(l,t[l],t[l+1],o);return o&&a_(o,o.next)&&(y3(o),o=o.next),o}function ef(t,e){if(!t)return t;e||(e=t);var r=t,n;do if(n=!1,!r.steiner&&(a_(r,r.next)||Ho(r.prev,r,r.next)===0)){if(y3(r),r=e=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==e);return e}function g3(t,e,r,n,a,l,o){if(t){!o&&l&&bN(t,n,a,l);for(var p=t,m,v;t.prev!==t.next;){if(m=t.prev,v=t.next,l?pN(t,n,a,l):fN(t)){e.push(m.i/r|0),e.push(t.i/r|0),e.push(v.i/r|0),y3(t),t=v.next,p=v.next;continue}if(t=v,t===p){o?o===1?(t=dN(ef(t),e,r),g3(t,e,r,n,a,l,2)):o===2&&mN(t,e,r,n,a,l):g3(ef(t),e,r,n,a,l,1);break}}}}function fN(t){var e=t.prev,r=t,n=t.next;if(Ho(e,r,n)>=0)return!1;for(var a=e.x,l=r.x,o=n.x,p=e.y,m=r.y,v=n.y,E=al?a>o?a:o:l>o?l:o,R=p>m?p>v?p:v:m>v?m:v,O=n.next;O!==e;){if(O.x>=E&&O.x<=A&&O.y>=b&&O.y<=R&&op(a,p,l,m,o,v,O.x,O.y)&&Ho(O.prev,O,O.next)>=0)return!1;O=O.next}return!0}function pN(t,e,r,n){var a=t.prev,l=t,o=t.next;if(Ho(a,l,o)>=0)return!1;for(var p=a.x,m=l.x,v=o.x,E=a.y,b=l.y,A=o.y,R=pm?p>v?p:v:m>v?m:v,N=E>b?E>A?E:A:b>A?b:A,W=hv(R,O,e,r,n),G=hv(D,N,e,r,n),Y=t.prevZ,Q=t.nextZ;Y&&Y.z>=W&&Q&&Q.z<=G;){if(Y.x>=R&&Y.x<=D&&Y.y>=O&&Y.y<=N&&Y!==a&&Y!==o&&op(p,E,m,b,v,A,Y.x,Y.y)&&Ho(Y.prev,Y,Y.next)>=0||(Y=Y.prevZ,Q.x>=R&&Q.x<=D&&Q.y>=O&&Q.y<=N&&Q!==a&&Q!==o&&op(p,E,m,b,v,A,Q.x,Q.y)&&Ho(Q.prev,Q,Q.next)>=0))return!1;Q=Q.nextZ}for(;Y&&Y.z>=W;){if(Y.x>=R&&Y.x<=D&&Y.y>=O&&Y.y<=N&&Y!==a&&Y!==o&&op(p,E,m,b,v,A,Y.x,Y.y)&&Ho(Y.prev,Y,Y.next)>=0)return!1;Y=Y.prevZ}for(;Q&&Q.z<=G;){if(Q.x>=R&&Q.x<=D&&Q.y>=O&&Q.y<=N&&Q!==a&&Q!==o&&op(p,E,m,b,v,A,Q.x,Q.y)&&Ho(Q.prev,Q,Q.next)>=0)return!1;Q=Q.nextZ}return!0}function dN(t,e,r){var n=t;do{var a=n.prev,l=n.next.next;!a_(a,l)&&Gb(a,n,n.next,l)&&v3(a,l)&&v3(l,a)&&(e.push(a.i/r|0),e.push(n.i/r|0),e.push(l.i/r|0),y3(n),y3(n.next),n=t=l),n=n.next}while(n!==t);return ef(n)}function mN(t,e,r,n,a,l){var o=t;do{for(var p=o.next.next;p!==o.prev;){if(o.i!==p.i&&AN(o,p)){var m=Zb(o,p);o=ef(o,o.next),m=ef(m,m.next),g3(o,e,r,n,a,l,0),g3(m,e,r,n,a,l,0);return}p=p.next}o=o.next}while(o!==t)}function _N(t,e,r,n){var a=[],l,o,p,m,v;for(l=0,o=e.length;l=r.next.y&&r.next.y!==r.y){var p=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(p<=n&&p>l&&(l=p,o=r.x=r.x&&r.x>=v&&n!==r.x&&op(ao.x||r.x===o.x&&xN(o,r)))&&(o=r,b=A)),r=r.next;while(r!==m);return o}function xN(t,e){return Ho(t.prev,t,e.prev)<0&&Ho(e.next,t,t.next)<0}function bN(t,e,r,n){var a=t;do a.z===0&&(a.z=hv(a.x,a.y,e,r,n)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next;while(a!==t);a.prevZ.nextZ=null,a.prevZ=null,EN(a)}function EN(t){var e,r,n,a,l,o,p,m,v=1;do{for(r=t,t=null,l=null,o=0;r;){for(o++,n=r,p=0,e=0;e0||m>0&&n;)p!==0&&(m===0||!n||r.z<=n.z)?(a=r,r=r.nextZ,p--):(a=n,n=n.nextZ,m--),l?l.nextZ=a:t=a,a.prevZ=l,l=a;r=n}l.nextZ=null,v*=2}while(o>1);return t}function hv(t,e,r,n,a){return t=(t-r)*a|0,e=(e-n)*a|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function TN(t){var e=t,r=t;do(e.x=(t-o)*(l-p)&&(t-o)*(n-p)>=(r-o)*(e-p)&&(r-o)*(l-p)>=(a-o)*(n-p)}function AN(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!SN(t,e)&&(v3(t,e)&&v3(e,t)&&wN(t,e)&&(Ho(t.prev,t,e.prev)||Ho(t,e.prev,e))||a_(t,e)&&Ho(t.prev,t,t.next)>0&&Ho(e.prev,e,e.next)>0)}function Ho(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function a_(t,e){return t.x===e.x&&t.y===e.y}function Gb(t,e,r,n){var a=R0(Ho(t,e,r)),l=R0(Ho(t,e,n)),o=R0(Ho(r,n,t)),p=R0(Ho(r,n,e));return!!(a!==l&&o!==p||a===0&&C0(t,r,e)||l===0&&C0(t,n,e)||o===0&&C0(r,t,n)||p===0&&C0(r,e,n))}function C0(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function R0(t){return t>0?1:t<0?-1:0}function SN(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&Gb(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function v3(t,e){return Ho(t.prev,t,t.next)<0?Ho(t,e,t.next)>=0&&Ho(t,t.prev,e)>=0:Ho(t,e,t.prev)<0||Ho(t,t.next,e)<0}function wN(t,e){var r=t,n=!1,a=(t.x+e.x)/2,l=(t.y+e.y)/2;do r.y>l!=r.next.y>l&&r.next.y!==r.y&&a<(r.next.x-r.x)*(l-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==t);return n}function Zb(t,e){var r=new fv(t.i,t.x,t.y),n=new fv(e.i,e.x,e.y),a=t.next,l=e.prev;return t.next=e,e.prev=t,r.next=a,a.prev=r,n.next=r,r.prev=n,l.next=n,n.prev=l,n}function U6(t,e,r,n){var a=new fv(t,e,r);return n?(a.next=n.next,a.prev=n,n.next.prev=a,n.next=a):(a.prev=a,a.next=a),a}function y3(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function fv(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}o_.deviation=function(t,e,r,n){var a=e&&e.length,l=a?e[0]*r:t.length,o=Math.abs(pv(t,0,l,r));if(a)for(var p=0,m=e.length;p0&&(n+=t[a-1].length,r.holes.push(n))}return r};var CN=g2.exports;const x3=Co(CN);function z6(t){return Math.max(Math.ceil(t/4)*4,4)}function $b(t,e,r,n=!0){const a=r===3;if(n){t=t.slice();const o=[];for(let p=0;p{typeof n[a]=="boolean"&&(n[a]=n[a]?1:0)}),!this.rendererService.hasOwnProperty("device")&&this.textures&&this.textures.length===1&&(n.u_texture=this.textures[0]),n}getAnimateUniforms(){return{}}needUpdate(){return bt(function*(){return!1})()}buildModels(){return bt(function*(){throw new Error("Method not implemented.")})()}initModels(){return bt(function*(){throw new Error("Method not implemented.")})()}clearModels(e=!0){}getAttribute(){throw new Error("Method not implemented.")}prerender(){}render(e){throw new Error("Method not implemented.")}registerBuiltinAttributes(){throw new Error("Method not implemented.")}animateOption2Array(e){return[e.enable?0:1,e.duration||4,e.interval||.2,e.trailLength||.1]}startModelAnimate(){const{animateOption:e}=this.layer.getLayerConfig();e.enable&&this.layer.setAnimateStartTime()}getInject(){return RN(this.layer.enableShaderEncodeStyles,this.layer.encodeStyleAttribute)}getDefines(){const e=Object.keys(this.attributeLocation).reduce((r,n)=>{const a=qb+n;return r[a]=this.attributeLocation[n],r},{});return _t({},e)}getStyleAttribute(){const e={};return this.layer.enableShaderEncodeStyles.forEach(r=>{if(!this.layer.encodeStyleAttribute[r]){const n=this.layer.getLayerConfig()[r];let a=typeof n>"u"?hN[r]:n;r==="stroke"&&(a=Fi(a)),e["u_"+r]=a}}),e}registerStyleAttribute(){Object.keys(this.layer.encodeStyleAttribute).forEach(e=>{const r=$F(e);r&&this.styleAttributeService.registerStyleAttribute(r)})}registerPosition64LowAttribute(e=!0){this.styleAttributeService.registerStyleAttribute({name:"position64Low",type:Lr.Attribute,descriptor:{name:"a_Position64Low",shaderLocation:this.attributeLocation.POSITION_64LOW,buffer:{data:[],type:H.FLOAT},size:2,update:(r,n,a)=>e?[ma(a[0]),ma(a[1])]:[0,0]}})}updateEncodeAttribute(e,r){this.encodeStyleAttribute[e]=r}initUniformsBuffer(){const e=this.getUniformsBufferInfo(this.getStyleAttribute()),r=this.getCommonUniformsInfo();e.uniformsLength!==0&&(this.attributeUnifoms=this.rendererService.createBuffer({data:new Float32Array(z6(e.uniformsLength)).fill(0),isUBO:!0,label:"layerModelAttributeUnifoms"}),this.uniformBuffers.push(this.attributeUnifoms)),r.uniformsLength!==0&&(this.commonUnifoms=this.rendererService.createBuffer({data:new Float32Array(z6(r.uniformsLength)).fill(0),isUBO:!0,label:"layerModelCommonUnifoms"}),this.uniformBuffers.push(this.commonUnifoms))}getUniformsBufferInfo(e){let r=0;const n=[];return Object.values(e).forEach(a=>{Array.isArray(a)?(n.push(...a),r+=a.length):typeof a=="number"?(n.push(a),r+=1):typeof a=="boolean"&&(n.push(Number(a)),r+=1)}),{uniformsOption:e,uniformsLength:r,uniformsArray:n}}getCommonUniformsInfo(){return{uniformsLength:0,uniformsArray:[],uniformsOption:{}}}updateStyleUnifoms(){var e,r;const{uniformsArray:n}=this.getUniformsBufferInfo(this.getStyleAttribute()),{uniformsArray:a}=this.getCommonUniformsInfo();(e=this.attributeUnifoms)===null||e===void 0||e.subData({offset:0,data:new Uint8Array(new Float32Array(n).buffer)}),(r=this.commonUnifoms)===null||r===void 0||r.subData({offset:0,data:new Uint8Array(new Float32Array(a).buffer)})}}function RN(t,e){const r=[];let n="";t.forEach(o=>{const p=o.replace(/([a-z])([A-Z])/g,"$1_$2").toUpperCase(),m=qb+p;e[o]?n+=`#define USE_ATTRIBUTE_${p} 0.0 +}`;class yO extends n1{setupShaders(){return this.shaderModuleService.registerModule("sepia-pass",{vs:gO,fs:vO}),this.shaderModuleService.getModule("sepia-pass")}}const X7=new bM;let xO=0;function bO(){const t=new kP,e=new SM,r=new fM,n=new AM(r),a=new uM,l=new hM,o=new mM,p=new _M,m=new dM,v={id:`${xO++}`,globalConfigService:X7,shaderModuleService:t,debugService:e,cameraService:r,coordinateSystemService:n,fontService:a,iconService:l,markerService:o,popupService:p,controlService:m,customRenderService:{}},E=new DM(v);v.layerService=E;const b=new wP(v);v.sceneService=b;const A=new RM(v);v.interactionService=A;const R=new OM(v);v.pickingService=R;const O={clear:new zP,pixelPicking:new HP,render:new XP};v.normalPassFactory=N=>O[N];const D={copy:new sO,bloom:new ZP,blurH:new KP,blurV:new tO,noise:new _O,sepia:new yO,colorHalftone:new iO,hexagonalPixelate:new cO,ink:new pO};return v.postProcessingPass=D,v.postProcessingPassFactory=N=>D[N],v}function Jd(t){const e=_t({},t);return e.postProcessor=new jP(e.rendererService),e.multiPassRenderer=new VP(e.postProcessor),e.styleAttributeService=new zM(e.rendererService),e}const A0=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"];let Ja=function(t){return t.IMAGE="image",t.CUSTOMIMAGE="customImage",t.ARRAYBUFFER="arraybuffer",t.RGB="rgb",t.TERRAINRGB="terrainRGB",t.CUSTOMRGB="customRGB",t.CUSTOMARRAYBUFFER="customArrayBuffer",t.CUSTOMTERRAINRGB="customTerrainRGB",t}({});var W7=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),EO=(t,e,r,n)=>W7(void 0,null,function*(){return new Promise((a,l)=>{e({x:t.x,y:t.y,z:t.z},(o,p)=>{if(o||p.length===0){l(o);return}p&&Zg([{data:p,bands:[0]}],r,n,(m,v)=>{m?l(m):v&&a(v)})})})}),TO=(t,e)=>W7(void 0,null,function*(){return new Promise((r,n)=>{e({x:t.x,y:t.y,z:t.z},(a,l)=>{if(a||!l){n(a);return}l instanceof ArrayBuffer?vS(l,(o,p)=>{o&&n(o),r(p)}):l instanceof HTMLImageElement?r(l):n(a)})})});function AO(t,e){return Array.isArray(t)?typeof t[0]=="string"?t.map(r=>pp(r,e)):t.map(r=>({url:pp(r.url,e),bands:r.bands||[0]})):pp(t,e)}function SO(t){return typeof t=="string"?[{url:t,bands:[0]}]:typeof t[0]=="string"?t.map(e=>({url:e,bands:[0]})):t}function I5(t,e){t.xhrCancel=()=>{e.map(r=>{r.abort()})}}var wO=Object.defineProperty,CO=Object.defineProperties,RO=Object.getOwnPropertyDescriptors,M5=Object.getOwnPropertySymbols,IO=Object.prototype.hasOwnProperty,MO=Object.prototype.propertyIsEnumerable,P5=(t,e,r)=>e in t?wO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,O5=(t,e)=>{for(var r in e||(e={}))IO.call(e,r)&&P5(t,r,e[r]);if(M5)for(var r of M5(e))MO.call(e,r)&&P5(t,r,e[r]);return t},L5=(t,e)=>CO(t,RO(e)),G7=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),PO=(t,e,r,n,a)=>G7(void 0,null,function*(){const l=SO(e.url);if(l.length>1){const{rasterFiles:o,xhrList:p,errList:m}=yield OO(l,e);if(I5(t,p),m.length>0){r(m,null);return}Zg(o,n,a,r)}else{const o=jv(e,(p,m)=>{if(p)r(p);else if(m){const v=[{data:m,bands:l[0].bands}];Zg(v,n,a,r)}});I5(t,[o])}});function OO(t,e){return G7(this,null,function*(){const r=[],n=[],a=[];for(let l=0;le in t?LO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Q0=(t,e)=>{for(var r in e||(e={}))FO.call(e,r)&&B5(t,r,e[r]);if(D5)for(var r of D5(e))NO.call(e,r)&&B5(t,r,e[r]);return t},Z7=(t,e)=>DO(t,BO(e)),$7=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),kO=(t,e,r,n)=>$7(void 0,null,function*(){const{format:a=q7,operation:l,requestParameters:o={}}=n,p=Z7(Q0({},o),{url:AO(t,e)});return new Promise((m,v)=>{PO(r,p,(E,b)=>{E?v(E):b&&m(b)},a,l)})}),F5=(t,e,r,n)=>$7(void 0,null,function*(){let a;const l=Array.isArray(t)?t[0]:t;return n.wmtsOptions?a=((n==null?void 0:n.getURLFromTemplate)||wC)(l,Q0(Q0({},e),n.wmtsOptions)):a=((n==null?void 0:n.getURLFromTemplate)||pp)(l,e),new Promise((o,p)=>{var m;const v=Bg(Z7(Q0({},n==null?void 0:n.requestParameters),{url:a,type:((m=n==null?void 0:n.requestParameters)==null?void 0:m.type)||"arrayBuffer"}),(E,b)=>{E?p(E):b&&o(b)},n.transformResponse);r.xhrCancel=()=>v.cancel()})}),q7=()=>({rasterData:new Uint8Array([0]),width:1,height:1}),UO=Object.defineProperty,zO=Object.defineProperties,VO=Object.getOwnPropertyDescriptors,N5=Object.getOwnPropertySymbols,HO=Object.prototype.hasOwnProperty,jO=Object.prototype.propertyIsEnumerable,k5=(t,e,r)=>e in t?UO(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,U5=(t,e)=>{for(var r in e||(e={}))HO.call(e,r)&&k5(t,r,e[r]);if(N5)for(var r of N5(e))jO.call(e,r)&&k5(t,r,e[r]);return t},XO=(t,e)=>zO(t,VO(e)),WO={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0,warp:!0};Ja.ARRAYBUFFER,Ja.RGB;function GO(t){return!!(Array.isArray(t)&&t.length===0||!Array.isArray(t)&&typeof t!="string")}function ZO(t,e={}){if(GO(t))throw new Error("tile server url is error");const{extent:r=[1/0,1/0,-1/0,-1/0],coordinates:n}=e;let a=(e==null?void 0:e.dataType)||Ja.IMAGE;a===Ja.RGB&&(a=Ja.ARRAYBUFFER);const l=(m,v)=>{switch(a){case Ja.IMAGE:return F5(t,m,v,e);case Ja.CUSTOMIMAGE:case Ja.CUSTOMTERRAINRGB:return TO(v,e==null?void 0:e.getCustomData);case Ja.ARRAYBUFFER:return kO(t,m,v,e);case Ja.CUSTOMARRAYBUFFER:case Ja.CUSTOMRGB:return EO(v,e==null?void 0:e.getCustomData,(e==null?void 0:e.format)||q7,e==null?void 0:e.operation);default:return F5(t,m,v,e)}},o=XO(U5(U5({},WO),e),{getTileData:l}),p=Fp(n,r);return{data:t,dataArray:[{_id:1,coordinates:p}],tilesetOptions:o,isTile:!0}}var $O=Object.defineProperty,qO=Object.defineProperties,YO=Object.getOwnPropertyDescriptors,xm=Object.getOwnPropertySymbols,Y7=Object.prototype.hasOwnProperty,K7=Object.prototype.propertyIsEnumerable,z5=(t,e,r)=>e in t?$O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,KO=(t,e)=>{for(var r in e||(e={}))Y7.call(e,r)&&z5(t,r,e[r]);if(xm)for(var r of xm(e))K7.call(e,r)&&z5(t,r,e[r]);return t},QO=(t,e)=>qO(t,YO(e)),JO=(t,e)=>{var r={};for(var n in t)Y7.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&xm)for(var n of xm(t))e.indexOf(n)<0&&K7.call(t,n)&&(r[n]=t[n]);return r};function eL(t,e){const r=e,{extent:n=[121.168,30.2828,121.384,30.4219],coordinates:a,width:l,height:o}=r,p=JO(r,["extent","coordinates","width","height"]);t.length<2&&console.warn("RGB解析需要2个波段的数据");const[m,v]=p.bands||[0,1],E=[t[m],t[v]],b=[];for(let O=0;Oe in t?tL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,iL=(t,e)=>{for(var r in e||(e={}))Q7.call(e,r)&&V5(t,r,e[r]);if(bm)for(var r of bm(e))J7.call(e,r)&&V5(t,r,e[r]);return t},oL=(t,e)=>rL(t,nL(e)),aL=(t,e)=>{var r={};for(var n in t)Q7.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&bm)for(var n of bm(t))e.indexOf(n)<0&&J7.call(t,n)&&(r[n]=t[n]);return r};function sL(t,e){const r=e,{extent:n,coordinates:a,width:l,height:o}=r,p=aL(r,["extent","coordinates","width","height"]);t.length<3&&console.warn("RGB解析需要三个波段的数据");const[m,v,E]=p.bands||[0,1,2],b=[t[m],t[v],t[E]],A=[],[R,O]=(p==null?void 0:p.countCut)||[2,98],D=(p==null?void 0:p.RMinMax)||mp(b[0],R,O),N=(p==null?void 0:p.GMinMax)||mp(b[1],R,O),W=(p==null?void 0:p.BMinMax)||mp(b[2],R,O);for(let Q=0;Qe in t?lL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,hL=(t,e)=>{for(var r in e||(e={}))eb.call(e,r)&&H5(t,r,e[r]);if(Em)for(var r of Em(e))tb.call(e,r)&&H5(t,r,e[r]);return t},fL=(t,e)=>uL(t,cL(e)),pL=(t,e)=>{var r={};for(var n in t)eb.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Em)for(var n of Em(t))e.indexOf(n)<0&&tb.call(t,n)&&(r[n]=t[n]);return r};function dL(t,e){const r=e,{extent:n,coordinates:a,min:l,max:o,width:p,height:m,format:v,operation:E}=r,b=pL(r,["extent","coordinates","min","max","width","height","format","operation"]);let A;if(v===void 0||d7(t))A=Array.from(t);else{const D=Array.isArray(t)?t:[t];A=Jv(D,v,E)}const R=Fp(a,n);return{_id:1,dataArray:[fL(hL({_id:1,data:A,width:p,height:m},b),{min:l,max:o,coordinates:R})]}}var mL=Object.defineProperty,_L=Object.defineProperties,gL=Object.getOwnPropertyDescriptors,j5=Object.getOwnPropertySymbols,vL=Object.prototype.hasOwnProperty,yL=Object.prototype.propertyIsEnumerable,X5=(t,e,r)=>e in t?mL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,W5=(t,e)=>{for(var r in e||(e={}))vL.call(e,r)&&X5(t,r,e[r]);if(j5)for(var r of j5(e))yL.call(e,r)&&X5(t,r,e[r]);return t},xL=(t,e)=>_L(t,gL(e)),bL=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),EL={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},TL=t=>bL(void 0,null,function*(){return new Promise(e=>{const[r,n,a,l]=t.bounds,o={layers:{testTile:{features:[{type:"Feature",properties:{key:t.x+"/"+t.y+"/"+t.z,x:(r+a)/2,y:(n+l)/2},geometry:{type:"LineString",coordinates:[[a,l],[a,n],[r,n],[r,n]]}}]}}};e(o)})});function AL(t,e){const r=a=>TL(a),n=xL(W5(W5({},EL),e),{getTileData:r});return{data:t,dataArray:[],tilesetOptions:n,isTile:!0}}var rb={exports:{}};(function(t,e){(function(r,n){t.exports=n()})($m,function(){function r(Ve,Te,Fe,He,nt,Ut){if(!(nt-He<=Fe)){var $t=He+nt>>1;n(Ve,Te,$t,He,nt,Ut%2),r(Ve,Te,Fe,He,$t-1,Ut+1),r(Ve,Te,Fe,$t+1,nt,Ut+1)}}function n(Ve,Te,Fe,He,nt,Ut){for(;nt>He;){if(nt-He>600){var $t=nt-He+1,Ht=Fe-He+1,Or=Math.log($t),mr=.5*Math.exp(2*Or/3),yr=.5*Math.sqrt(Or*mr*($t-mr)/$t)*(Ht-$t/2<0?-1:1),Yr=Math.max(He,Math.floor(Fe-Ht*mr/$t+yr)),Jr=Math.min(nt,Math.floor(Fe+($t-Ht)*mr/$t+yr));n(Ve,Te,Fe,Yr,Jr,Ut)}var vn=Te[2*Fe+Ut],Rn=He,nn=nt;for(a(Ve,Te,He,Fe),Te[2*nt+Ut]>vn&&a(Ve,Te,He,nt);Rnvn;)nn--}Te[2*He+Ut]===vn?a(Ve,Te,He,nn):(nn++,a(Ve,Te,nn,nt)),nn<=Fe&&(He=nn+1),Fe<=nn&&(nt=nn-1)}}function a(Ve,Te,Fe,He){l(Ve,Fe,He),l(Te,2*Fe,2*He),l(Te,2*Fe+1,2*He+1)}function l(Ve,Te,Fe){var He=Ve[Te];Ve[Te]=Ve[Fe],Ve[Fe]=He}function o(Ve,Te,Fe,He,nt,Ut,$t){for(var Ht=[0,Ve.length-1,0],Or=[],mr,yr;Ht.length;){var Yr=Ht.pop(),Jr=Ht.pop(),vn=Ht.pop();if(Jr-vn<=$t){for(var Rn=vn;Rn<=Jr;Rn++)mr=Te[2*Rn],yr=Te[2*Rn+1],mr>=Fe&&mr<=nt&&yr>=He&&yr<=Ut&&Or.push(Ve[Rn]);continue}var nn=Math.floor((vn+Jr)/2);mr=Te[2*nn],yr=Te[2*nn+1],mr>=Fe&&mr<=nt&&yr>=He&&yr<=Ut&&Or.push(Ve[nn]);var Yi=(Yr+1)%2;(Yr===0?Fe<=mr:He<=yr)&&(Ht.push(vn),Ht.push(nn-1),Ht.push(Yi)),(Yr===0?nt>=mr:Ut>=yr)&&(Ht.push(nn+1),Ht.push(Jr),Ht.push(Yi))}return Or}function p(Ve,Te,Fe,He,nt,Ut){for(var $t=[0,Ve.length-1,0],Ht=[],Or=nt*nt;$t.length;){var mr=$t.pop(),yr=$t.pop(),Yr=$t.pop();if(yr-Yr<=Ut){for(var Jr=Yr;Jr<=yr;Jr++)m(Te[2*Jr],Te[2*Jr+1],Fe,He)<=Or&&Ht.push(Ve[Jr]);continue}var vn=Math.floor((Yr+yr)/2),Rn=Te[2*vn],nn=Te[2*vn+1];m(Rn,nn,Fe,He)<=Or&&Ht.push(Ve[vn]);var Yi=(mr+1)%2;(mr===0?Fe-nt<=Rn:He-nt<=nn)&&($t.push(Yr),$t.push(vn-1),$t.push(Yi)),(mr===0?Fe+nt>=Rn:He+nt>=nn)&&($t.push(vn+1),$t.push(yr),$t.push(Yi))}return Ht}function m(Ve,Te,Fe,He){var nt=Ve-Fe,Ut=Te-He;return nt*nt+Ut*Ut}var v=function(Ve){return Ve[0]},E=function(Ve){return Ve[1]},b=function(Te,Fe,He,nt,Ut){Fe===void 0&&(Fe=v),He===void 0&&(He=E),nt===void 0&&(nt=64),Ut===void 0&&(Ut=Float64Array),this.nodeSize=nt,this.points=Te;for(var $t=Te.length<65536?Uint16Array:Uint32Array,Ht=this.ids=new $t(Te.length),Or=this.coords=new Ut(Te.length*2),mr=0;mr=nt;yr--){var Yr=+Date.now();Or=this._cluster(Or,yr),this.trees[yr]=new b(Or,ke,ct,$t,Float32Array),He&&console.log("z%d: %d clusters in %dms",yr,Or.length,+Date.now()-Yr)}return He&&console.timeEnd("total time"),this},O.prototype.getClusters=function(Te,Fe){var He=((Te[0]+180)%360+360)%360-180,nt=Math.max(-90,Math.min(90,Te[1])),Ut=Te[2]===180?180:((Te[2]+180)%360+360)%360-180,$t=Math.max(-90,Math.min(90,Te[3]));if(Te[2]-Te[0]>=360)He=-180,Ut=180;else if(He>Ut){var Ht=this.getClusters([He,nt,180,$t],Fe),Or=this.getClusters([-180,nt,Ut,$t],Fe);return Ht.concat(Or)}for(var mr=this.trees[this._limitZoom(Fe)],yr=mr.range(Y(He),Q($t),Y(Ut),Q(nt)),Yr=[],Jr=0,vn=yr;JrFe&&(nn+=qe.numPoints||1)}if(nn>Rn&&nn>=Or){for(var Yt=Yr.x*Rn,wr=Yr.y*Rn,St=Ht&&Rn>1?this._map(Yr,!0):null,Er=(yr<<5)+(Fe+1)+this.points.length,on=0,yn=vn;on1)for(var eo=0,ei=vn;eo>5},O.prototype._getOriginZoom=function(Te){return(Te-this.points.length)%32},O.prototype._map=function(Te,Fe){if(Te.numPoints)return Fe?ce({},Te.properties):Te.properties;var He=this.points[Te.index].properties,nt=this.options.map(He);return Fe&&nt===He?ce({},nt):nt};function D(Ve,Te,Fe,He,nt){return{x:R(Ve),y:R(Te),zoom:1/0,id:Fe,parentId:-1,numPoints:He,properties:nt}}function N(Ve,Te){var Fe=Ve.geometry.coordinates,He=Fe[0],nt=Fe[1];return{x:R(Y(He)),y:R(Q(nt)),zoom:1/0,index:Te,parentId:-1}}function W(Ve){return{type:"Feature",id:Ve.id,properties:G(Ve),geometry:{type:"Point",coordinates:[J(Ve.x),Se(Ve.y)]}}}function G(Ve){var Te=Ve.numPoints,Fe=Te>=1e4?Math.round(Te/1e3)+"k":Te>=1e3?Math.round(Te/100)/10+"k":Te;return ce(ce({},Ve.properties),{cluster:!0,cluster_id:Ve.id,point_count:Te,point_count_abbreviated:Fe})}function Y(Ve){return Ve/360+.5}function Q(Ve){var Te=Math.sin(Ve*Math.PI/180),Fe=.5-.25*Math.log((1+Te)/(1-Te))/Math.PI;return Fe<0?0:Fe>1?1:Fe}function J(Ve){return(Ve-.5)*360}function Se(Ve){var Te=(180-Ve*360)*Math.PI/180;return 360*Math.atan(Math.exp(Te))/Math.PI-90}function ce(Ve,Te){for(var Fe in Te)Ve[Fe]=Te[Fe];return Ve}function ke(Ve){return Ve.x}function ct(Ve){return Ve.y}return O})})(rb);var SL=rb.exports;const wL=Co(SL);var CL=Object.defineProperty,G5=Object.getOwnPropertySymbols,RL=Object.prototype.hasOwnProperty,IL=Object.prototype.propertyIsEnumerable,Z5=(t,e,r)=>e in t?CL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,nb=(t,e)=>{for(var r in e||(e={}))RL.call(e,r)&&Z5(t,r,e[r]);if(G5)for(var r of G5(e))IL.call(e,r)&&Z5(t,r,e[r]);return t};function ib(t,e){const{radius:r=40,maxZoom:n=18,minZoom:a=0,zoom:l=2}=e;if(t.pointIndex){const m=t.pointIndex.getClusters(t.extent,Math.floor(l));return t.dataArray=ML(m),t}const o=new wL({radius:r,minZoom:a,maxZoom:n}),p={type:"FeatureCollection",features:[]};return p.features=t.dataArray.map(m=>({type:"Feature",geometry:{type:"Point",coordinates:m.coordinates},properties:nb({},m)})),o.load(p.features),o}function ML(t){return t.map((e,r)=>nb({coordinates:e.geometry.coordinates,_id:r+1},e.properties))}function PL(t){if(t.length===0)throw new Error("max requires at least one data point");let e=t[0];for(let r=1;re&&(e=t[r]);return e}function OL(t){if(t.length===0)throw new Error("min requires at least one data point");let e=t[0];for(let r=1;r=Math.abs(t[a])?r+=e-n+t[a]:r+=t[a]-n+e,e=n;return e+r*1}function LL(t){if(t.length===0)throw new Error("mean requires at least one data point");return ob(t)/t.length}var DL={min:OL,max:PL,mean:LL,sum:ob},BL=Object.defineProperty,$5=Object.getOwnPropertySymbols,FL=Object.prototype.hasOwnProperty,NL=Object.prototype.propertyIsEnumerable,q5=(t,e,r)=>e in t?BL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,bd=(t,e)=>{for(var r in e||(e={}))FL.call(e,r)&&q5(t,r,e[r]);if($5)for(var r of $5(e))NL.call(e,r)&&q5(t,r,e[r]);return t},Y5=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),{cloneDeep:kL,isFunction:K5,isString:UL,mergeWith:zL}=Ko;function VL(t,e){if(Array.isArray(e))return e}var HL=class extends Ps.EventEmitter{constructor(t,e){super(),this.type="source",this.isTile=!1,this.inited=!1,this.hooks={init:new pc},this.parser={type:"geojson"},this.transforms=[],this.cluster=!1,this.clusterOptions={enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"},this.invalidExtent=!1,this.dataArrayChanged=!1,this.cfg={autoRender:!0},this.originData=t,this.initCfg(e),this.init().then(()=>{this.inited=!0,this.emit("update",{type:"inited"})})}getSourceCfg(){return this.cfg}getClusters(t){return this.clusterIndex.getClusters(this.caculClusterExtent(2),t)}getClustersLeaves(t){return this.clusterIndex.getLeaves(t,1/0)}getParserType(){return this.parser.type}updateClusterData(t){const{method:e="sum",field:r}=this.clusterOptions;let n=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(t));this.clusterOptions.zoom=t,n.forEach(a=>{a.id||(a.properties.point_count=1)}),(r||K5(e))&&(n=n.map(a=>{const l=a.id;if(l){const p=this.clusterIndex.getLeaves(l,1/0).map(v=>v.properties);let m;if(UL(e)&&r){const v=IC(p,r);m=DL[e](v)}K5(e)&&(m=e(p)),a.properties.stat=m}else a.properties.point_count=1;return a})),this.data=ry("geojson")({type:"FeatureCollection",features:n}),this.executeTrans()}getFeatureById(t){const{type:e="geojson",geometry:r}=this.parser;if(e==="geojson"&&!this.cluster){const n=to._id===t);a.properties=l}return a}else return e==="json"&&r?this.data.dataArray.find(n=>n._id===t):tr._id===t?bd(bd({},r),e):r),this.dataArrayChanged=!0,this.emit("update",{type:"update"})}getFeatureId(t,e){const r=this.data.dataArray.find(n=>n[t]===e);return r==null?void 0:r._id}setData(t,e){this.originData=t,this.dataArrayChanged=!1,this.initCfg(e),this.init().then(()=>{this.emit("update",{type:"update"})})}reloadAllTile(){var t;(t=this.tileset)==null||t.reloadAll()}reloadTilebyId(t,e,r){var n;(n=this.tileset)==null||n.reloadTileById(t,e,r)}reloadTileByLnglat(t,e,r){var n;(n=this.tileset)==null||n.reloadTileByLnglat(t,e,r)}getTileExtent(t,e){var r;return(r=this.tileset)==null?void 0:r.getTileExtent(t,e)}getTileByZXY(t,e,r){var n;return(n=this.tileset)==null?void 0:n.getTileByZXY(t,e,r)}reloadTileByExtent(t,e){var r;(r=this.tileset)==null||r.reloadTileByExtent(t,e)}destroy(){var t;this.removeAllListeners(),this.originData=null,this.clusterIndex=null,this.data=null,(t=this.tileset)==null||t.destroy()}processData(){return Y5(this,null,function*(){return new Promise((t,e)=>{try{this.excuteParser(),this.initCluster(),this.executeTrans(),t({})}catch(r){e(r)}})})}initCfg(t){this.cfg=zL(this.cfg,t,VL);const e=this.cfg;e&&(e.parser&&(this.parser=e.parser),e.transforms&&(this.transforms=e.transforms),this.cluster=e.cluster||!1,e.clusterOptions&&(this.cluster=!0,this.clusterOptions=bd(bd({},this.clusterOptions),e.clusterOptions)))}init(){return Y5(this,null,function*(){this.inited=!1,yield this.processData(),this.inited=!0})}excuteParser(){const t=this.parser,e=t.type||"geojson",r=ry(e);this.data=r(this.originData,t),this.tileset=this.initTileset(),!t.cancelExtent&&(this.extent=jw(this.data.dataArray),this.setCenter(this.extent),this.invalidExtent=this.extent[0]===this.extent[2]||this.extent[1]===this.extent[3])}setCenter(t){this.center=[(t[0]+t[2])/2,(t[1]+t[3])/2],(isNaN(this.center[0])||isNaN(this.center[1]))&&(this.center=[108.92361111111111,34.54083333333333])}initTileset(){const{tilesetOptions:t}=this.data;return t?(this.isTile=!0,this.tileset?(this.tileset.updateOptions(t),this.tileset):new SC(bd({},t))):void 0}executeTrans(){this.transforms.forEach(e=>{const{type:r}=e,n=YA(r)(this.data,e);Object.assign(this.data,n)})}initCluster(){if(!this.cluster)return;const t=this.clusterOptions||{};this.clusterIndex=ib(this.data,t)}caculClusterExtent(t){let e=[[-1/0,-1/0],[1/0,1/0]];return this.invalidExtent||(e=qv(_m(this.extent),t)),e[0].concat(e[1])}};function jL(t,e){const{callback:r}=e;return r&&(t.dataArray=t.dataArray.filter(r)),t}var o2=6378e3;function XL(t,e){const r=t.dataArray,{size:n=10}=e,a=n/(2*Math.PI*o2)*(256<<20)/2,{gridHash:l,gridOffset:o}=WL(r,n),p=qL(l,o,e);return{yOffset:a,xOffset:a,radius:a,type:"grid",dataArray:p}}function WL(t,e){let r=1/0,n=-1/0,a;for(const m of t)a=m.coordinates[1],Number.isFinite(a)&&(r=an?a:n);const l=(r+n)/2,o=GL(e,l);if(o.xOffset<=0||o.yOffset<=0)return{gridHash:{},gridOffset:o};const p={};for(const m of t){const v=m.coordinates[1],E=m.coordinates[0];if(Number.isFinite(v)&&Number.isFinite(E)){const b=Math.floor((v+90)/o.yOffset),A=Math.floor((E+180)/o.xOffset),R=`${b}-${A}`;p[R]=p[R]||{count:0,points:[]},p[R].count+=1,p[R].points.push(m)}}return{gridHash:p,gridOffset:o}}function GL(t,e){const r=ZL(t),n=$L(e,t);return{yOffset:r,xOffset:n}}function ZL(t){return t/o2*(180/Math.PI)}function $L(t,e){return e/o2*(180/Math.PI)/Math.cos(t*Math.PI/180)}function qL(t,e,r){return Object.keys(t).reduce((n,a,l)=>{const o=a.split("-"),p=parseInt(o[0],10),m=parseInt(o[1],10),v={};if(r.field&&r.method){const E=s7(t[a].points,r.field);v[r.method]=a7[r.method](E)}return Object.assign(v,{_id:l,coordinates:su([-180+e.xOffset*(m+.5),-90+e.yOffset*(p+.5)]),rawData:t[a].points,count:t[a].count}),n.push(v),n},[])}var rp=Math.PI/3,YL=[0,rp,2*rp,3*rp,4*rp,5*rp];function KL(t){return t[0]}function QL(t){return t[1]}function JL(){var t=0,e=0,r=1,n=1,a=KL,l=QL,o,p,m;function v(b){var A={},R=[],O,D=b.length;for(O=0;O1){var Se=W-Q,ce=Q+(Wct*ct+Ve*Ve&&(Q=ce+(Y&1?1:-1)/2,Y=ke)}var Te=Q+"-"+Y,Fe=A[Te];Fe?Fe.push(N):(R.push(Fe=A[Te]=[N]),Fe.x=(Q+(Y&1)/2)*p,Fe.y=Y*m)}return R}function E(b){var A=0,R=0;return YL.map(function(O){var D=Math.sin(O)*b,N=-Math.cos(O)*b,W=D-A,G=N-R;return A=D,R=N,[W,G]})}return v.hexagon=function(b){return"m"+E(b==null?o:+b).join("l")+"z"},v.centers=function(){for(var b=[],A=Math.round(e/m),R=Math.round(t/p),O=A*m;Oe in t?eD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,oD=(t,e)=>{for(var r in e||(e={}))nD.call(e,r)&&J5(t,r,e[r]);if(Q5)for(var r of Q5(e))iD.call(e,r)&&J5(t,r,e[r]);return t},aD=(t,e)=>tD(t,rD(e)),sD=6378e3;function lD(t,e){const r=t.dataArray,{size:n=10,method:a="sum"}=e,l=n/(2*Math.PI*sD)*(256<<20)/2,o=r.map(E=>{const[b,A]=su(E.coordinates);return aD(oD({},E),{coordinates:[b,A]})});return{dataArray:JL().radius(l).x(E=>E.coordinates[0]).y(E=>E.coordinates[1])(o).map((E,b)=>{if(e.field&&a){const A=s7(E,e.field);E[a]=a7[a](A)}return{[e.method]:E[a],count:E.length,rawData:E,coordinates:[E.x,E.y],_id:b}}),radius:l,xOffset:l,yOffset:l,type:"hexagon"}}var uD=Object.defineProperty,e6=Object.getOwnPropertySymbols,cD=Object.prototype.hasOwnProperty,hD=Object.prototype.propertyIsEnumerable,t6=(t,e,r)=>e in t?uD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,r6=(t,e)=>{for(var r in e||(e={}))cD.call(e,r)&&t6(t,r,e[r]);if(e6)for(var r of e6(e))hD.call(e,r)&&t6(t,r,e[r]);return t};function fD(t,e){const{sourceField:r,targetField:n,data:a}=e,l={};return a.forEach(o=>{l[o[r]]=o}),t.dataArray=t.dataArray.map(o=>{const p=o[n];return r6(r6({},o),l[p])}),t}function pD(t,e){const{callback:r}=e;return r&&(t.dataArray=t.dataArray.map(r)),t}Cl("rasterTile",ZO);Cl("mvt",CI);Cl("geojsonvt",vR);Cl("testTile",AL);Cl("geojson",WC);Cl("jsonTile",OR);Cl("image",y7);Cl("csv",BC);Cl("json",m7);Cl("raster",VI);Cl("rasterRgb",dL);Cl("rgb",sL);Cl("ndi",eL);Bp("cluster",ib);Bp("filter",jL);Bp("join",fD);Bp("map",pD);Bp("grid",XL);Bp("hexagon",lD);var a2=HL;class n6 extends Ps.EventEmitter{getMarkerLayerContainerSize(){}constructor(e){super(),I(this,"markerOption",void 0),I(this,"popup",void 0),I(this,"mapsService",void 0),I(this,"lngLat",void 0),I(this,"scene",void 0),I(this,"added",!1),I(this,"preLngLat",{lng:0,lat:0}),I(this,"onMarkerDragStart",r=>{const n=this.mapsService.getContainer();if(!n)return;this.mapsService.setMapStatus({dragEnable:!1,zoomEnable:!1});const{left:a,top:l}=n.getClientRects()[0],{x:o,y:p}=r;this.preLngLat=this.mapsService.containerToLngLat([o-a,p-l]),this.mapsService.on("mousemove",this.onMarkerDragMove),document.addEventListener("mouseup",this.onMarkerDragEnd),this.emit("dragstart",this.lngLat)}),I(this,"onMarkerDragMove",r=>{const n=r.lngLat||r.lnglat,{lng:a,lat:l}=this.preLngLat,{lng:o,lat:p}=n,m={lng:this.lngLat.lng+o-a,lat:this.lngLat.lat+p-l};this.setLnglat(m),this.preLngLat=n,this.emit("dragging",m)}),I(this,"onMarkerDragEnd",()=>{this.mapsService.setMapStatus({dragEnable:!0,zoomEnable:!0}),this.mapsService.off("mousemove",this.onMarkerDragMove),document.removeEventListener("mouseup",this.onMarkerDragEnd),this.emit("dragend",this.lngLat)}),I(this,"eventHandle",r=>{this.polyfillEvent(r),this.emit(r.type,{target:r,data:this.markerOption.extData,lngLat:this.lngLat})}),I(this,"touchStartTime",void 0),this.markerOption=_t(_t({},this.getDefault()),e),Vw(["update","onMove","onMapClick","updatePositionWhenZoom"],this),this.init()}getDefault(){return{element:void 0,anchor:Xv.BOTTOM,offsets:[0,0],color:"#5B8FF9",draggable:!1,overflowHide:!0}}addTo(e){this.scene=e,this.mapsService=e.mapService;const{element:r}=this.markerOption;return this.mapsService.getMarkerContainer().appendChild(r),this.registerMarkerEvent(r),this.mapsService.on("camerachange",this.update),this.update(),this.updateDraggable(),this.added=!0,this.emit("added"),this}remove(){this.mapsService&&(this.mapsService.off("click",this.onMapClick),this.mapsService.off("move",this.update),this.mapsService.off("moveend",this.update),this.mapsService.off("camerachange",this.update)),this.unRegisterMarkerEvent(),this.removeAllListeners();const{element:e}=this.markerOption;return e&&xp(e),this.popup&&this.popup.remove(),this}setLnglat(e){return this.lngLat=e,Array.isArray(e)&&(this.lngLat={lng:e[0],lat:e[1]}),this.popup&&this.popup.setLnglat(this.lngLat),this.update(),this}getLnglat(){return this.lngLat}getElement(){return this.markerOption.element}setElement(e){if(!this.added)return this.once("added",()=>{this.setElement(e)}),this;const{element:r}=this.markerOption;return r&&xp(r),this.markerOption.element=e,this.init(),this.mapsService.getMarkerContainer().appendChild(e),this.registerMarkerEvent(e),this.updateDraggable(),this.update(),this}openPopup(){if(!this.added)return this.once("added",()=>{this.openPopup()}),this;const e=this.popup;return e?(e.isOpen()||e.addTo(this.scene),this):this}closePopup(){this.added||this.once("added",()=>{this.closePopup()});const e=this.popup;return e&&e.remove(),this}setPopup(e){return this.popup=e,this.lngLat&&this.popup.setLnglat(this.lngLat),this}togglePopup(){const e=this.popup;if(e)e.isOpen()?e.remove():e.addTo(this.scene);else return this;return this}getPopup(){return this.popup}getOffset(){return this.markerOption.offsets}setDraggable(e){this.markerOption.draggable=e,this.updateDraggable()}getDraggable(){return this.markerOption.draggable}getExtData(){return this.markerOption.extData}setExtData(e){this.markerOption.extData=e}update(){if(!this.mapsService)return;const{element:e,anchor:r}=this.markerOption;this.updatePosition(),Lw(e,`${Fg[r]}`)}updatePositionWhenZoom(e){if(!this.mapsService)return;const{element:r,offsets:n}=this.markerOption,{lng:a,lat:l}=this.lngLat;if(r){r.style.display="block",r.style.whiteSpace="nowrap";const{containerHeight:o,containerWidth:p,bounds:m}=this.getMarkerLayerContainerSize()||this.getCurrentContainerSize();if(!m)return;const v=e.map,E=e.center,b=e.zoom,A=v.DE(this.lngLat,b,E);if(A.x=Math.round(A.x+n[0]),A.y=Math.round(A.y-n[1]),Math.abs(m[0][0])>180||Math.abs(m[1][0])>180){if(A.x>p){const R=this.mapsService.lngLatToContainer([a-360,l]);A.x=R.x}if(A.x<0){const R=this.mapsService.lngLatToContainer([a+360,l]);A.x=R.x}}(A.x>p||A.x<0||A.y>o||A.y<0)&&(r.style.display="none"),r.style.left=A.x+"px",r.style.top=A.y+"px",r.style.transition="left 0.25s cubic-bezier(0,0,0.25,1), top 0.25s cubic-bezier(0,0,0.25,1)"}}onMapClick(e){const{element:r}=this.markerOption;this.popup&&r&&this.togglePopup()}getCurrentContainerSize(){const e=this.mapsService.getContainer();return{containerHeight:(e==null?void 0:e.scrollHeight)||0,containerWidth:(e==null?void 0:e.scrollWidth)||0,bounds:this.mapsService.getBounds()}}updateDraggable(){const{element:e}=this.markerOption;e==null||e.removeEventListener("mousedown",this.onMarkerDragStart),this.mapsService.off("mousemove",this.onMarkerDragMove),document.removeEventListener("mouseup",this.onMarkerDragEnd),this.markerOption.draggable&&(e==null||e.addEventListener("mousedown",this.onMarkerDragStart))}updatePosition(){if(!this.mapsService)return;const{element:e,offsets:r}=this.markerOption,{lng:n,lat:a}=this.lngLat,l=this.mapsService.lngLatToContainer([n,a]);if(e){e.style.display="block",e.style.whiteSpace="nowrap";const{containerHeight:o,containerWidth:p,bounds:m}=this.getMarkerLayerContainerSize()||this.getCurrentContainerSize();if(!m)return;if(Math.abs(m[0][0])>180||Math.abs(m[1][0])>180){if(l.x>p){const v=this.mapsService.lngLatToContainer([n-360,a]);l.x=v.x}if(l.x<0){const v=this.mapsService.lngLatToContainer([n+360,a]);l.x=v.x}}this.markerOption.overflowHide&&(l.x>p||l.x<0||l.y>o||l.y<0)&&(e.style.display="none"),e.style.left=l.x+r[0]+"px",e.style.top=l.y-r[1]+"px"}}init(){let{element:e}=this.markerOption;const{color:r,anchor:n}=this.markerOption;if(!e){e=_a("div"),this.markerOption.element=e;const a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"display","block"),a.setAttributeNS(null,"height","48px"),a.setAttributeNS(null,"width","48px"),a.setAttributeNS(null,"viewBox","0 0 1024 1024");const l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),l.setAttributeNS(null,"fill",r),a.appendChild(l),e.appendChild(a)}fp(e,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(a=>{var l,o;const p=((l=this.markerOption)===null||l===void 0?void 0:l.style)&&((o=this.markerOption)===null||o===void 0?void 0:o.style[a]);e&&(e.style[a]=p)}),yS(e,n,"marker")}registerMarkerEvent(e){e.addEventListener("click",this.onMapClick),e.addEventListener("mousemove",this.eventHandle),e.addEventListener("click",this.eventHandle),e.addEventListener("mousedown",this.eventHandle),e.addEventListener("mouseup",this.eventHandle),e.addEventListener("dblclick",this.eventHandle),e.addEventListener("contextmenu",this.eventHandle),e.addEventListener("mouseover",this.eventHandle),e.addEventListener("mouseout",this.eventHandle),e.addEventListener("touchstart",this.eventHandle),e.addEventListener("touchend",this.eventHandle)}unRegisterMarkerEvent(){const e=this.getElement();e.removeEventListener("click",this.onMapClick),e.removeEventListener("mousemove",this.eventHandle),e.removeEventListener("click",this.eventHandle),e.removeEventListener("mousedown",this.eventHandle),e.removeEventListener("mouseup",this.eventHandle),e.removeEventListener("dblclick",this.eventHandle),e.removeEventListener("contextmenu",this.eventHandle),e.removeEventListener("mouseover",this.eventHandle),e.removeEventListener("mouseout",this.eventHandle),e.removeEventListener("touchstart",this.eventHandle),e.removeEventListener("touchend",this.eventHandle)}polyfillEvent(e){!this.mapsService||this.mapsService.getType()!=="amap"||zw()||(e.type==="touchstart"&&(this.touchStartTime=Date.now()),e.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:e,data:this.markerOption.extData,lngLat:this.lngLat}))}addDragHandler(e){return null}onUp(e){throw new Error("Method not implemented.")}}window._iconfont_svg_string_3580659='',function(t){try{let v=function(){p||(p=!0,l())},E=function(){try{o.documentElement.doScroll("left")}catch{return void setTimeout(E,50)}v()};var r=(r=document.getElementsByTagName("script"))[r.length-1],e=r.getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var n,a,l,o,p,m=function(b,A){A.parentNode.insertBefore(b,A)};if(e&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(b){console&&console.log(b)}}n=function(){var b,A=document.createElement("div");A.innerHTML=t._iconfont_svg_string_3580659,(A=A.getElementsByTagName("svg")[0])&&(A.setAttribute("aria-hidden","true"),A.style.position="absolute",A.style.width=0,A.style.height=0,A.style.overflow="hidden",A=A,(b=document.body).firstChild?m(A,b.firstChild):b.appendChild(A))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(a=function(){document.removeEventListener("DOMContentLoaded",a,!1),n()},document.addEventListener("DOMContentLoaded",a,!1)):document.attachEvent&&(l=n,o=t.document,p=!1,E(),o.onreadystatechange=function(){o.readyState=="complete"&&(o.onreadystatechange=null,v())})}}catch{}}(window);class eh extends Yv{constructor(e){super(),I(this,"controlOption",void 0),I(this,"container",void 0),I(this,"isShow",void 0),I(this,"sceneContainer",void 0),I(this,"scene",void 0),I(this,"mapsService",void 0),I(this,"renderService",void 0),I(this,"layerService",void 0),I(this,"controlService",void 0),I(this,"configService",void 0),eh.controlCount++,this.controlOption=_t(_t({},this.getDefault(e)),e||{})}getOptions(){return this.controlOption}setOptions(e){const r=this.getDefault(e);Object.entries(e).forEach(([n,a])=>{a===void 0&&(e[n]=r[n])}),"position"in e&&this.setPosition(e.position),"className"in e&&this.setClassName(e.className),"style"in e&&this.setStyle(e.style),this.controlOption=_t(_t({},this.controlOption),e)}addTo(e){this.mapsService=e.mapService,this.renderService=e.rendererService,this.layerService=e.layerService,this.controlService=e.controlService,this.configService=e.globalConfigService,this.scene=e.sceneService,this.sceneContainer=e,this.isShow=!0,this.container=this.onAdd(),fp(this.container,"l7-control");const{className:r,style:n}=this.controlOption;return r&&this.setClassName(r),n&&this.setStyle(n),this.insertContainer(),this.emit("add",this),this}remove(){if(!this.mapsService)return this;xp(this.container),this.onRemove(),this.emit("remove",this)}onAdd(){return _a("div")}onRemove(){}show(){const e=this.container;Ng(e,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}hide(){const e=this.container;fp(e,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}getDefault(e){return{position:Ep.TOPRIGHT,name:`${eh.controlCount}`}}getContainer(){return this.container}getIsShow(){return this.isShow}_refocusOnMap(e){if(this.mapsService&&e&&e.screenX>0&&e.screenY>0){const r=this.mapsService.getContainer();r!==null&&r.focus()}}setPosition(e=Ep.TOPLEFT){const r=this.controlService;return r&&r.removeControl(this),this.controlOption.position=e,r&&r.addControl(this,this.sceneContainer),this}setClassName(e){const r=this.container,{className:n}=this.controlOption;n&&Ng(r,n),e&&fp(r,e)}setStyle(e){const r=this.container;e?r.setAttribute("style",e):r.removeAttribute("style")}insertContainer(){const e=this.controlOption.position,r=this.container;if(e instanceof Element)e.appendChild(r);else{const n=this.controlService.controlCorners[e];["bottomleft","bottomright","righttop","rightbottom"].includes(e)?n.insertBefore(r,n.firstChild):n.appendChild(r)}}checkUpdateOption(e,r){return r.some(n=>n in e)}}I(eh,"controlCount",0);class Tm extends Ps.EventEmitter{get buttonRect(){return this.button.getBoundingClientRect()}constructor(e,r){super(),I(this,"popperDOM",void 0),I(this,"contentDOM",void 0),I(this,"button",void 0),I(this,"option",void 0),I(this,"isShow",!1),I(this,"content",void 0),I(this,"timeout",null),I(this,"show",()=>this.isShow||!this.contentDOM.innerHTML?this:(this.resetPopperPosition(),Ng(this.popperDOM,"l7-popper-hide"),this.isShow=!0,this.option.unique&&Tm.conflictPopperList.forEach(n=>{n!==this&&n.isShow&&n.hide()}),this.emit("show"),window.addEventListener("pointerdown",this.onPopperUnClick),this)),I(this,"hide",()=>this.isShow?(fp(this.popperDOM,"l7-popper-hide"),this.isShow=!1,this.emit("hide"),window.removeEventListener("pointerdown",this.onPopperUnClick),this):this),I(this,"setHideTimeout",()=>{this.timeout||(this.timeout=window.setTimeout(()=>{this.isShow&&(this.hide(),this.timeout=null)},300))}),I(this,"clearHideTimeout",()=>{this.timeout&&(window.clearTimeout(this.timeout),this.timeout=null)}),I(this,"onBtnClick",()=>{this.isShow?this.hide():this.show()}),I(this,"onPopperUnClick",n=>{kw(n.target,[".l7-button-control",".l7-popper-content"])||this.hide()}),I(this,"onBtnMouseLeave",()=>{this.setHideTimeout()}),I(this,"onBtnMouseMove",()=>{this.clearHideTimeout(),!this.isShow&&this.show()}),this.button=e,this.option=r,this.init(),r.unique&&Tm.conflictPopperList.push(this)}getPopperDOM(){return this.popperDOM}getIsShow(){return this.isShow}getContent(){return this.content}setContent(e){typeof e=="string"?this.contentDOM.innerHTML=e:e instanceof HTMLElement&&(Qm(this.contentDOM),this.contentDOM.appendChild(e)),this.content=e}init(){const{trigger:e}=this.option;this.popperDOM=this.createPopper(),e==="click"?this.button.addEventListener("click",this.onBtnClick):(this.button.addEventListener("mousemove",this.onBtnMouseMove),this.button.addEventListener("mouseleave",this.onBtnMouseLeave),this.popperDOM.addEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.addEventListener("mouseleave",this.onBtnMouseLeave))}destroy(){this.button.removeEventListener("click",this.onBtnClick),this.button.removeEventListener("mousemove",this.onBtnMouseMove),this.button.removeEventListener("mousemove",this.onBtnMouseLeave),this.popperDOM.removeEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.removeEventListener("mouseleave",this.onBtnMouseLeave),xp(this.popperDOM)}resetPopperPosition(){const e={},{container:r,offset:n=[0,0],placement:a}=this.option,[l,o]=n,p=this.button.getBoundingClientRect(),m=r.getBoundingClientRect(),{left:v,right:E,top:b,bottom:A}=Fw(p,m);let R=!1,O=!1;/^(left|right)/.test(a)?(a.includes("left")?e.right=`${p.width+E}px`:a.includes("right")&&(e.left=`${p.width+v}px`),a.includes("start")?e.top=`${b}px`:a.includes("end")?e.bottom=`${A}px`:(e.top=`${b+p.height/2}px`,O=!0,e.transform=`translate(${l}px, calc(${o}px - 50%))`)):/^(top|bottom)/.test(a)&&(a.includes("top")?e.bottom=`${p.height+A}px`:a.includes("bottom")&&(e.top=`${p.height+b}px`),a.includes("start")?e.left=`${v}px`:a.includes("end")?e.right=`${E}px`:(e.left=`${v+p.width/2}px`,R=!0,e.transform=`translate(calc(${l}px - 50%), ${o}px)`)),e.transform=`translate(calc(${l}px - ${R?"50%":"0%"}), calc(${o}px - ${O?"50%":"0%"})`;const D=a.split("-");D.length&&fp(this.popperDOM,D.map(N=>`l7-popper-${N}`).join(" ")),r7(this.popperDOM,Bw(e))}createPopper(){const{container:e,className:r="",content:n}=this.option,a=_a("div",`l7-popper l7-popper-hide ${r}`),l=_a("div","l7-popper-content"),o=_a("div","l7-popper-arrow");return a.appendChild(l),a.appendChild(o),e.appendChild(a),this.popperDOM=a,this.contentDOM=l,n&&this.setContent(n),a}}I(Tm,"conflictPopperList",[]);const i6=t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.classList.add("l7-iconfont"),e.setAttribute("aria-hidden","true");const r=document.createElementNS("http://www.w3.org/2000/svg","use");return r.setAttributeNS("http://www.w3.org/1999/xlink","href",`#${t}`),e.appendChild(r),e},o6=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],t1=(()=>{if(typeof document>"u")return!1;const t=o6[0],e={};for(const r of o6)if((r==null?void 0:r[1])in document){for(const[a,l]of r.entries())e[t[a]]=l;return e}return!1})(),a6={change:t1.fullscreenchange,error:t1.fullscreenerror};let ru={request(t=document.documentElement,e){return new Promise((r,n)=>{const a=()=>{ru.off("change",a),r()};ru.on("change",a);const l=t[t1.requestFullscreen](e);l instanceof Promise&&l.then(a).catch(n)})},exit(){return new Promise((t,e)=>{if(!ru.isFullscreen){t();return}const r=()=>{ru.off("change",r),t()};ru.on("change",r);const n=document[t1.exitFullscreen]();n instanceof Promise&&n.then(r).catch(e)})},toggle(t,e){return ru.isFullscreen?ru.exit():ru.request(t,e)},onchange(t){ru.on("change",t)},onerror(t){ru.on("error",t)},on(t,e){const r=a6[t];r&&document.addEventListener(r,e,!1)},off(t,e){const r=a6[t];r&&document.removeEventListener(r,e,!1)},raw:t1};Object.defineProperties(ru,{isFullscreen:{get:()=>!!document[t1.fullscreenElement]},element:{enumerable:!0,get:()=>{var t;return(t=document[t1.fullscreenElement])!==null&&t!==void 0?t:void 0}},isEnabled:{enumerable:!0,get:()=>!!document[t1.fullscreenEnabled]}});t1||(ru={isEnabled:!1});class dD extends eh{getDefault(){return{position:Ep.BOTTOMLEFT,name:"logo",href:"https://l7.antv.antgroup.com/",img:"https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*GRb1TKp4HcMAAAAAAAAAAAAAARQnAQ"}}onAdd(){const e=_a("div","l7-control-logo");return this.setLogoContent(e),e}onRemove(){return null}setOptions(e){super.setOptions(e),this.checkUpdateOption(e,["img","href"])&&(Qm(this.container),this.setLogoContent(this.container))}setLogoContent(e){const{href:r,img:n}=this.controlOption,a=_a("img");if(a.setAttribute("src",n),a.setAttribute("aria-label","AntV logo"),Nw(a),r){const l=_a("a","l7-control-logo-link");l.target="_blank",l.href=r,l.rel="noopener nofollow",l.setAttribute("rel","noopener nofollow"),l.appendChild(a),e.appendChild(l)}else e.appendChild(a)}}class mD extends eh{constructor(...e){super(...e),I(this,"mScale",void 0),I(this,"iScale",void 0),I(this,"update",()=>{const r=this.mapsService,{maxWidth:n}=this.controlOption,a=r.getSize()[1]/2,l=r.containerToLngLat([0,a]),o=r.containerToLngLat([n,a]),p=Zw([l.lng,l.lat],[o.lng,o.lat]);this.updateScales(p)})}getDefault(e){return _t(_t({},super.getDefault(e)),{},{name:"scale",position:Ep.BOTTOMLEFT,maxWidth:100,metric:!0,updateWhenIdle:!1,imperial:!1,lockWidth:!0})}onAdd(){const r=_a("div","l7-control-scale");this.resetScaleLines(r);const{updateWhenIdle:n}=this.controlOption;return this.mapsService.on(n?"moveend":"mapmove",this.update),this.mapsService.on(n?"zoomend":"zoomchange",this.update),r}onRemove(){const{updateWhenIdle:e}=this.controlOption;this.mapsService.off(e?"zoomend":"zoomchange",this.update),this.mapsService.off(e?"moveend":"mapmove",this.update)}setOptions(e){super.setOptions(e),this.checkUpdateOption(e,["lockWidth","maxWidth","metric","updateWhenIdle","imperial"])&&this.resetScaleLines(this.container)}updateScales(e){const{metric:r,imperial:n}=this.controlOption;r&&e&&this.updateMetric(e),n&&e&&this.updateImperial(e)}resetScaleLines(e){Qm(e);const{metric:r,imperial:n,maxWidth:a,lockWidth:l}=this.controlOption;l&&r7(e,`width: ${a}px`),r&&(this.mScale=_a("div","l7-control-scale-line",e)),n&&(this.iScale=_a("div","l7-control-scale-line",e)),this.update()}updateScale(e,r,n){const{maxWidth:a}=this.controlOption;e.style.width=Math.round(a*n)+"px",e.innerHTML=r}getRoundNum(e){const r=Math.pow(10,(Math.floor(e)+"").length-1);let n=e/r;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,r*n}updateMetric(e){const r=this.getRoundNum(e),n=r<1e3?r+" m":r/1e3+" km";this.updateScale(this.mScale,n,r/e)}updateImperial(e){const r=e*3.2808399;let n,a,l;r>5280?(n=r/5280,a=this.getRoundNum(n),this.updateScale(this.iScale,a+" mi",a/n)):(l=this.getRoundNum(r),this.updateScale(this.iScale,l+" ft",l/r))}}class _D{constructor(){I(this,"mapService",void 0),I(this,"fontService",void 0)}apply(e,{styleAttributeService:r,mapService:n,fontService:a}){var l=this;this.mapService=n,this.fontService=a,e.hooks.init.tapPromise("DataMappingPlugin",bt(function*(){e.log(Ia.MappingStart,es.INIT),l.generateMaping(e,{styleAttributeService:r}),e.log(Ia.MappingEnd,es.INIT)})),e.hooks.beforeRenderData.tapPromise("DataMappingPlugin",function(){var o=bt(function*(p){if(!p)return p;e.dataState.dataMappingNeedUpdate=!1,e.log(Ia.MappingStart,es.UPDATE);const m=l.generateMaping(e,{styleAttributeService:r});return e.log(Ia.MappingEnd,es.UPDATE),m});return function(p){return o.apply(this,arguments)}}()),e.hooks.beforeRender.tap("DataMappingPlugin",()=>{const o=e.getSource();if(e.layerModelNeedUpdate||!o||!o.inited)return;const p=r.getLayerStyleAttributes()||[],m=r.getLayerStyleAttribute("filter"),{dataArray:v}=o.data;if(Array.isArray(v)&&v.length===0)return;const E=p.filter(A=>A.needRemapping);let b=v;if(m!=null&&m.needRemapping&&m!==null&&m!==void 0&&m.scale&&(b=v.filter(A=>this.applyAttributeMapping(m,A)[0])),E.length){const A=this.mapping(e,E,b,e.getEncodedData());e.setEncodedData(A)}})}generateMaping(e,{styleAttributeService:r}){const n=r.getLayerStyleAttributes()||[],a=r.getLayerStyleAttribute("filter"),{dataArray:l}=e.getSource().data;let o=l;a!=null&&a.scale&&(o=l.filter(m=>this.applyAttributeMapping(a,m)[0])),o=e.processData(o);const p=this.mapping(e,n,o,void 0);return e.setEncodedData(p),e.emit("dataUpdate",null),!0}mapping(e,r,n,a){const l=r.filter(p=>p.scale!==void 0).filter(p=>p.name!=="filter"),o=n.map((p,m)=>{const v=a?a[m]:{},E=_t({id:p._id,coordinates:p.coordinates},v);return l.forEach(b=>{let A=this.applyAttributeMapping(b,p);(b.name==="color"||b.name==="stroke")&&(A=A.map(R=>Fi(R))),E[b.name]=Array.isArray(A)&&A.length===1?A[0]:A,b.name==="shape"&&(E.shape=this.fontService.getIconFontKey(E[b.name]))}),E});return r.forEach(p=>{p.needRemapping=!1}),this.adjustData2SimpleCoordinates(o),o}adjustData2SimpleCoordinates(e){e.length>0&&this.mapService.version==="SIMPLE"&&e.map(r=>{r.simpleCoordinate||(r.coordinates=this.unProjectCoordinates(r.coordinates),r.simpleCoordinate=!0)})}unProjectCoordinates(e){if(typeof e[0]=="number")return this.mapService.simpleMapCoord.unproject(e);if(e[0]&&e[0][0]instanceof Array){const r=[];return e.map(n=>{const a=[];n.map(l=>{a.push(this.mapService.simpleMapCoord.unproject(l))}),r.push(a)}),r}else{const r=[];return e.map(n=>{r.push(this.mapService.simpleMapCoord.unproject(n))}),r}}applyAttributeMapping(e,r){var n;if(!e.scale)return[];const a=(e==null||(n=e.scale)===null||n===void 0?void 0:n.scalers)||[],l=[];return a.forEach(({field:p})=>{var m;(r.hasOwnProperty(p)||((m=e.scale)===null||m===void 0?void 0:m.type)==="variable")&&l.push(r[p])}),e.mapping?e.mapping(l):[]}getArrowPoints(e,r){const n=[r[0]-e[0],r[1]-e[1]],a=$w(n);return[e[0]+a[0]*1e-4,e[1]+a[1]*1e-4]}}class gD{constructor(){I(this,"mapService",void 0)}apply(e){var r=this;this.mapService=e.getContainer().mapService,e.hooks.init.tapPromise("DataSourcePlugin",bt(function*(){e.log(Ia.SourceInitStart,es.INIT);let n=e.getSource();if(!n){const{data:a,options:l}=e.sourceOption||e.defaultSourceConfig;n=new a2(a,l),e.setSource(n)}n.inited?(r.updateClusterData(e),e.log(Ia.SourceInitEnd,es.INIT)):yield new Promise(a=>{n.on("update",l=>{l.type==="inited"&&(r.updateClusterData(e),e.log(Ia.SourceInitEnd,es.INIT)),a(null)})})})),e.hooks.beforeRenderData.tapPromise("DataSourcePlugin",bt(function*(){const n=r.updateClusterData(e),a=e.dataState.dataSourceNeedUpdate;return e.dataState.dataSourceNeedUpdate=!1,n||a}))}updateClusterData(e){if(e.isTileLayer||e.tileLayer||!e.getSource())return!1;const r=e.getSource(),n=r.cluster,{zoom:a=0}=r.clusterOptions,l=this.mapService.getZoom()-1,o=e.dataState.dataSourceNeedUpdate;return n&&o&&r.updateClusterData(Math.floor(l)),n&&Math.abs(e.clusterZoom-l)>=1?(a!==Math.floor(l)&&r.updateClusterData(Math.floor(l)),e.clusterZoom=l,!0):!1}}function s6(t,e){let r,n;if(e===void 0)for(const a of t)a!=null&&(r===void 0?a>=a&&(r=n=a):(r>a&&(r=a),n=l&&(r=n=l):(r>l&&(r=l),n=1?(r=1,e-1):Math.floor(r*e),a=t[n],l=t[n+1],o=n>0?t[n-1]:2*a-l,p=nr&&(l=e.slice(r,l),p[o]?p[o]+=l:p[++o]=l),(n=n[0])===(a=a[0])?p[o]?p[o]+=a:p[++o]=a:(p[++o]=null,m.push({i:o,x:Am(n,a)})),r=sg.lastIndex;return re?1:t>=e?0:NaN}function sb(t){return t.length===1&&(t=DD(t)),{left:function(e,r,n,a){for(n==null&&(n=0),a==null&&(a=e.length);n>>1;t(e[l],r)<0?n=l+1:a=l}return n},right:function(e,r,n,a){for(n==null&&(n=0),a==null&&(a=e.length);n>>1;t(e[l],r)>0?a=l:n=l+1}return n}}}function DD(t){return function(e,r){return u2(t(e),r)}}var BD=sb(u2),n_=BD.right;function FD(t){return t===null?NaN:+t}var av=Math.sqrt(50),sv=Math.sqrt(10),lv=Math.sqrt(2);function lb(t,e,r){var n,a=-1,l,o,p;if(e=+e,t=+t,r=+r,t===e&&r>0)return[t];if((n=e0)for(t=Math.ceil(t/p),e=Math.floor(e/p),o=new Array(l=Math.ceil(e-t+1));++a=0?(l>=av?10:l>=sv?5:l>=lv?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(l>=av?10:l>=sv?5:l>=lv?2:1)}function uv(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),a=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),l=n/a;return l>=av?a*=10:l>=sv?a*=5:l>=lv&&(a*=2),e=1)return+r(t[n-1],n-1,t);var n,a=(n-1)*e,l=Math.floor(a),o=+r(t[l],l,t),p=+r(t[l+1],l+1,t);return o+(p-o)*(a-l)}}function ih(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function ub(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t);break}return this}var tu="$";function Sm(){}Sm.prototype=wm.prototype={constructor:Sm,has:function(t){return tu+t in this},get:function(t){return this[tu+t]},set:function(t,e){return this[tu+t]=e,this},remove:function(t){var e=tu+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===tu&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===tu&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===tu&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===tu&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===tu&&++t;return t},empty:function(){for(var t in this)if(t[0]===tu)return!1;return!0},each:function(t){for(var e in this)e[0]===tu&&t(this[e],e.slice(1),this)}};function wm(t,e){var r=new Sm;if(t instanceof Sm)t.each(function(p,m){r.set(m,p)});else if(Array.isArray(t)){var n=-1,a=t.length,l;if(e==null)for(;++nr&&(n=e,e=r,r=n),function(a){return Math.max(e,Math.min(r,a))}}function zD(t,e,r){var n=t[0],a=t[1],l=e[0],o=e[1];return a2?VD:zD,m=v=null,b}function b(A){return isNaN(A=+A)?l:(m||(m=p(t.map(n),e,r)))(n(o(A)))}return b.invert=function(A){return o(a((v||(v=p(e,t.map(n),Am)))(A)))},b.domain=function(A){return arguments.length?(t=hb.call(A,UD),o===_s||(o=f6(t)),E()):t.slice()},b.range=function(A){return arguments.length?(e=Jh.call(A),E()):e.slice()},b.rangeRound=function(A){return e=Jh.call(A),r=LD,E()},b.clamp=function(A){return arguments.length?(o=A?f6(t):_s,b):o!==_s},b.interpolate=function(A){return arguments.length?(r=A,E()):r},b.unknown=function(A){return arguments.length?(l=A,b):l},function(A,R){return n=A,a=R,E()}}function fb(t,e){return c2()(t,e)}function HD(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Rm(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Ap(t){return t=Rm(Math.abs(t)),t?t[1]:NaN}function jD(t,e){return function(r,n){for(var a=r.length,l=[],o=0,p=t[0],m=0;a>0&&p>0&&(m+p+1>n&&(p=Math.max(1,n-m)),l.push(r.substring(a-=p,a+p)),!((m+=p+1)>n));)p=t[o=(o+1)%t.length];return l.reverse().join(e)}}function XD(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var WD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Im(t){if(!(e=WD.exec(t)))throw new Error("invalid format: "+t);var e;return new h2({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Im.prototype=h2.prototype;function h2(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}h2.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function GD(t){e:for(var e=t.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(a+1):t}var pb;function ZD(t,e){var r=Rm(t,e);if(!r)return t+"";var n=r[0],a=r[1],l=a-(pb=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return l===o?n:l>o?n+new Array(l-o+1).join("0"):l>0?n.slice(0,l)+"."+n.slice(l):"0."+new Array(1-l).join("0")+Rm(t,Math.max(0,e+l-1))[0]}function p6(t,e){var r=Rm(t,e);if(!r)return t+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const d6={"%":function(t,e){return(t*100).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:HD,e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return p6(t*100,e)},r:p6,s:ZD,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function m6(t){return t}var _6=Array.prototype.map,g6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function $D(t){var e=t.grouping===void 0||t.thousands===void 0?m6:jD(_6.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",l=t.numerals===void 0?m6:XD(_6.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",p=t.minus===void 0?"-":t.minus+"",m=t.nan===void 0?"NaN":t.nan+"";function v(b){b=Im(b);var A=b.fill,R=b.align,O=b.sign,D=b.symbol,N=b.zero,W=b.width,G=b.comma,Y=b.precision,Q=b.trim,J=b.type;J==="n"?(G=!0,J="g"):d6[J]||(Y===void 0&&(Y=12),Q=!0,J="g"),(N||A==="0"&&R==="=")&&(N=!0,A="0",R="=");var Se=D==="$"?r:D==="#"&&/[boxX]/.test(J)?"0"+J.toLowerCase():"",ce=D==="$"?n:/[%p]/.test(J)?o:"",ke=d6[J],ct=/[defgprs%]/.test(J);Y=Y===void 0?6:/[gprs]/.test(J)?Math.max(1,Math.min(21,Y)):Math.max(0,Math.min(20,Y));function Ve(Te){var Fe=Se,He=ce,nt,Ut,$t;if(J==="c")He=ke(Te)+He,Te="";else{Te=+Te;var Ht=Te<0||1/Te<0;if(Te=isNaN(Te)?m:ke(Math.abs(Te),Y),Q&&(Te=GD(Te)),Ht&&+Te==0&&O!=="+"&&(Ht=!1),Fe=(Ht?O==="("?O:p:O==="-"||O==="("?"":O)+Fe,He=(J==="s"?g6[8+pb/3]:"")+He+(Ht&&O==="("?")":""),ct){for(nt=-1,Ut=Te.length;++nt$t||$t>57){He=($t===46?a+Te.slice(nt+1):Te.slice(nt))+He,Te=Te.slice(0,nt);break}}}G&&!N&&(Te=e(Te,1/0));var Or=Fe.length+Te.length+He.length,mr=Or>1)+Fe+Te+He+mr.slice(Or);break;default:Te=mr+Fe+Te+He;break}return l(Te)}return Ve.toString=function(){return b+""},Ve}function E(b,A){var R=v((b=Im(b),b.type="f",b)),O=Math.max(-8,Math.min(8,Math.floor(Ap(A)/3)))*3,D=Math.pow(10,-O),N=g6[8+O/3];return function(W){return R(D*W)+N}}return{format:v,formatPrefix:E}}var S0,f2,db;qD({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function qD(t){return S0=$D(t),f2=S0.format,db=S0.formatPrefix,S0}function YD(t){return Math.max(0,-Ap(Math.abs(t)))}function KD(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ap(e)/3)))*3-Ap(Math.abs(t)))}function QD(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ap(e)-Ap(t))+1}function JD(t,e,r,n){var a=uv(t,e,r),l;switch(n=Im(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(l=KD(a,o))&&(n.precision=l),db(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(l=QD(a,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=l-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(l=YD(a))&&(n.precision=l-(n.type==="%")*2);break}}return f2(n)}function I3(t){var e=t.domain;return t.ticks=function(r){var n=e();return lb(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var a=e();return JD(a[0],a[a.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),a=0,l=n.length-1,o=n[a],p=n[l],m;return p0?(o=Math.floor(o/m)*m,p=Math.ceil(p/m)*m,m=J0(o,p,r)):m<0&&(o=Math.ceil(o*m)/m,p=Math.floor(p*m)/m,m=J0(o,p,r)),m>0?(n[a]=Math.floor(o/m)*m,n[l]=Math.ceil(p/m)*m,e(n)):m<0&&(n[a]=Math.ceil(o*m)/m,n[l]=Math.floor(p*m)/m,e(n)),t},t}function mb(){var t=fb(_s,_s);return t.copy=function(){return i_(t,mb())},ih.apply(t,arguments),I3(t)}function _b(t,e){t=t.slice();var r=0,n=t.length-1,a=t[r],l=t[n],o;return l0){for(;AE)break;G.push(N)}}else for(;A=1;--D)if(N=O*D,!(NE)break;G.push(N)}}else G=lb(A,R,Math.min(R-A,W)).map(l);return b?G.reverse():G},e.tickFormat=function(p,m){if(m==null&&(m=n===10?".0e":","),typeof m!="function"&&(m=f2(m)),p===1/0)return m;p==null&&(p=10);var v=Math.max(1,n*p/e.ticks().length);return function(E){var b=E/l(Math.round(a(E)));return b*n0?r[p-1]:t[0],p=r?[n[r-1],e]:[n[v-1],n[v]]},o.unknown=function(m){return arguments.length&&(l=m),o},o.thresholds=function(){return n.slice()},o.copy=function(){return xb().domain([t,e]).range(a).unknown(l)},ih.apply(I3(o),arguments)}function bb(){var t=[.5],e=[0,1],r,n=1;function a(l){return l<=l?e[n_(t,l,0,n)]:r}return a.domain=function(l){return arguments.length?(t=Jh.call(l),n=Math.min(t.length,e.length-1),a):t.slice()},a.range=function(l){return arguments.length?(e=Jh.call(l),n=Math.min(t.length,e.length-1),a):e.slice()},a.invertExtent=function(l){var o=e.indexOf(l);return[t[o-1],t[o]]},a.unknown=function(l){return arguments.length?(r=l,a):r},a.copy=function(){return bb().domain(t).range(e).unknown(r)},ih.apply(a,arguments)}var lg=new Date,ug=new Date;function Os(t,e,r,n){function a(l){return t(l=arguments.length===0?new Date:new Date(+l)),l}return a.floor=function(l){return t(l=new Date(+l)),l},a.ceil=function(l){return t(l=new Date(l-1)),e(l,1),t(l),l},a.round=function(l){var o=a(l),p=a.ceil(l);return l-o0))return m;do m.push(v=new Date(+l)),e(l,p),t(l);while(v=o)for(;t(o),!l(o);)o.setTime(o-1)},function(o,p){if(o>=o)if(p<0)for(;++p<=0;)for(;e(o,-1),!l(o););else for(;--p>=0;)for(;e(o,1),!l(o););})},r&&(a.count=function(l,o){return lg.setTime(+l),ug.setTime(+o),t(lg),t(ug),Math.floor(r(lg,ug))},a.every=function(l){return l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?a.filter(n?function(o){return n(o)%l===0}:function(o){return a.count(0,o)%l===0}):a}),a}var Mm=Os(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Mm.every=function(t){return t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Os(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):Mm};const uB=Mm;Mm.range;var Pm=1e3,d3=6e4,E6=36e5,Eb=864e5,Tb=6048e5,Ab=Os(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Pm)},function(t,e){return(e-t)/Pm},function(t){return t.getUTCSeconds()});const cB=Ab;Ab.range;var Sb=Os(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Pm)},function(t,e){t.setTime(+t+e*d3)},function(t,e){return(e-t)/d3},function(t){return t.getMinutes()});const hB=Sb;Sb.range;var wb=Os(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Pm-t.getMinutes()*d3)},function(t,e){t.setTime(+t+e*E6)},function(t,e){return(e-t)/E6},function(t){return t.getHours()});const fB=wb;wb.range;var Cb=Os(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*d3)/Eb},function(t){return t.getDate()-1});const p2=Cb;Cb.range;function of(t){return Os(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+r*7)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*d3)/Tb})}var d2=of(0),Om=of(1),pB=of(2),dB=of(3),Sp=of(4),mB=of(5),_B=of(6);d2.range;Om.range;pB.range;dB.range;Sp.range;mB.range;_B.range;var Rb=Os(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});const gB=Rb;Rb.range;var m2=Os(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});m2.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:Os(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)})};const wp=m2;m2.range;var Ib=Os(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Eb},function(t){return t.getUTCDate()-1});const Mb=Ib;Ib.range;function af(t){return Os(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+r*7)},function(e,r){return(r-e)/Tb})}var Pb=af(0),Lm=af(1),vB=af(2),yB=af(3),Cp=af(4),xB=af(5),bB=af(6);Pb.range;Lm.range;vB.range;yB.range;Cp.range;xB.range;bB.range;var _2=Os(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});_2.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:Os(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})};const m3=_2;_2.range;function cg(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function hg(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ed(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function EB(t){var e=t.dateTime,r=t.date,n=t.time,a=t.periods,l=t.days,o=t.shortDays,p=t.months,m=t.shortMonths,v=Td(a),E=Ad(a),b=Td(l),A=Ad(l),R=Td(o),O=Ad(o),D=Td(p),N=Ad(p),W=Td(m),G=Ad(m),Y={a:Ht,A:Or,b:mr,B:yr,c:null,d:R6,e:R6,f:WB,g:tF,G:nF,H:HB,I:jB,j:XB,L:Ob,m:GB,M:ZB,p:Yr,q:Jr,Q:P6,s:O6,S:$B,u:qB,U:YB,V:KB,w:QB,W:JB,x:null,X:null,y:eF,Y:rF,Z:iF,"%":M6},Q={a:vn,A:Rn,b:nn,B:Yi,c:null,d:I6,e:I6,f:lF,g:vF,G:xF,H:oF,I:aF,j:sF,L:Db,m:uF,M:cF,p:An,q:Ni,Q:P6,s:O6,S:hF,u:fF,U:pF,V:dF,w:mF,W:_F,x:null,X:null,y:gF,Y:yF,Z:bF,"%":M6},J={a:Ve,A:Te,b:Fe,B:He,c:nt,d:w6,e:w6,f:kB,g:S6,G:A6,H:C6,I:C6,j:DB,L:NB,m:LB,M:BB,p:ct,q:OB,Q:zB,s:VB,S:FB,u:CB,U:RB,V:IB,w:wB,W:MB,x:Ut,X:$t,y:S6,Y:A6,Z:PB,"%":UB};Y.x=Se(r,Y),Y.X=Se(n,Y),Y.c=Se(e,Y),Q.x=Se(r,Q),Q.X=Se(n,Q),Q.c=Se(e,Q);function Se(qe,Yt){return function(wr){var St=[],Er=-1,on=0,yn=qe.length,tn,Kr,Sn;for(wr instanceof Date||(wr=new Date(+wr));++Er53)return null;"w"in St||(St.w=1),"Z"in St?(on=hg(Ed(St.y,0,1)),yn=on.getUTCDay(),on=yn>4||yn===0?Lm.ceil(on):Lm(on),on=Mb.offset(on,(St.V-1)*7),St.y=on.getUTCFullYear(),St.m=on.getUTCMonth(),St.d=on.getUTCDate()+(St.w+6)%7):(on=cg(Ed(St.y,0,1)),yn=on.getDay(),on=yn>4||yn===0?Om.ceil(on):Om(on),on=p2.offset(on,(St.V-1)*7),St.y=on.getFullYear(),St.m=on.getMonth(),St.d=on.getDate()+(St.w+6)%7)}else("W"in St||"U"in St)&&("w"in St||(St.w="u"in St?St.u%7:"W"in St?1:0),yn="Z"in St?hg(Ed(St.y,0,1)).getUTCDay():cg(Ed(St.y,0,1)).getDay(),St.m=0,St.d="W"in St?(St.w+6)%7+St.W*7-(yn+5)%7:St.w+St.U*7-(yn+6)%7);return"Z"in St?(St.H+=St.Z/100|0,St.M+=St.Z%100,hg(St)):cg(St)}}function ke(qe,Yt,wr,St){for(var Er=0,on=Yt.length,yn=wr.length,tn,Kr;Er=yn)return-1;if(tn=Yt.charCodeAt(Er++),tn===37){if(tn=Yt.charAt(Er++),Kr=J[tn in T6?Yt.charAt(Er++):tn],!Kr||(St=Kr(qe,wr,St))<0)return-1}else if(tn!=wr.charCodeAt(St++))return-1}return St}function ct(qe,Yt,wr){var St=v.exec(Yt.slice(wr));return St?(qe.p=E[St[0].toLowerCase()],wr+St[0].length):-1}function Ve(qe,Yt,wr){var St=R.exec(Yt.slice(wr));return St?(qe.w=O[St[0].toLowerCase()],wr+St[0].length):-1}function Te(qe,Yt,wr){var St=b.exec(Yt.slice(wr));return St?(qe.w=A[St[0].toLowerCase()],wr+St[0].length):-1}function Fe(qe,Yt,wr){var St=W.exec(Yt.slice(wr));return St?(qe.m=G[St[0].toLowerCase()],wr+St[0].length):-1}function He(qe,Yt,wr){var St=D.exec(Yt.slice(wr));return St?(qe.m=N[St[0].toLowerCase()],wr+St[0].length):-1}function nt(qe,Yt,wr){return ke(qe,e,Yt,wr)}function Ut(qe,Yt,wr){return ke(qe,r,Yt,wr)}function $t(qe,Yt,wr){return ke(qe,n,Yt,wr)}function Ht(qe){return o[qe.getDay()]}function Or(qe){return l[qe.getDay()]}function mr(qe){return m[qe.getMonth()]}function yr(qe){return p[qe.getMonth()]}function Yr(qe){return a[+(qe.getHours()>=12)]}function Jr(qe){return 1+~~(qe.getMonth()/3)}function vn(qe){return o[qe.getUTCDay()]}function Rn(qe){return l[qe.getUTCDay()]}function nn(qe){return m[qe.getUTCMonth()]}function Yi(qe){return p[qe.getUTCMonth()]}function An(qe){return a[+(qe.getUTCHours()>=12)]}function Ni(qe){return 1+~~(qe.getUTCMonth()/3)}return{format:function(qe){var Yt=Se(qe+="",Y);return Yt.toString=function(){return qe},Yt},parse:function(qe){var Yt=ce(qe+="",!1);return Yt.toString=function(){return qe},Yt},utcFormat:function(qe){var Yt=Se(qe+="",Q);return Yt.toString=function(){return qe},Yt},utcParse:function(qe){var Yt=ce(qe+="",!0);return Yt.toString=function(){return qe},Yt}}}var T6={"-":"",_:" ",0:"0"},Ha=/^\s*\d+/,TB=/^%/,AB=/[\\^$*+?|[\]().{}]/g;function bi(t,e,r){var n=t<0?"-":"",a=(n?-t:t)+"",l=a.length;return n+(l68?1900:2e3),r+n[0].length):-1}function PB(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function OB(t,e,r){var n=Ha.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function LB(t,e,r){var n=Ha.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function w6(t,e,r){var n=Ha.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function DB(t,e,r){var n=Ha.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function C6(t,e,r){var n=Ha.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function BB(t,e,r){var n=Ha.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function FB(t,e,r){var n=Ha.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function NB(t,e,r){var n=Ha.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function kB(t,e,r){var n=Ha.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function UB(t,e,r){var n=TB.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function zB(t,e,r){var n=Ha.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function VB(t,e,r){var n=Ha.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function R6(t,e){return bi(t.getDate(),e,2)}function HB(t,e){return bi(t.getHours(),e,2)}function jB(t,e){return bi(t.getHours()%12||12,e,2)}function XB(t,e){return bi(1+p2.count(wp(t),t),e,3)}function Ob(t,e){return bi(t.getMilliseconds(),e,3)}function WB(t,e){return Ob(t,e)+"000"}function GB(t,e){return bi(t.getMonth()+1,e,2)}function ZB(t,e){return bi(t.getMinutes(),e,2)}function $B(t,e){return bi(t.getSeconds(),e,2)}function qB(t){var e=t.getDay();return e===0?7:e}function YB(t,e){return bi(d2.count(wp(t)-1,t),e,2)}function Lb(t){var e=t.getDay();return e>=4||e===0?Sp(t):Sp.ceil(t)}function KB(t,e){return t=Lb(t),bi(Sp.count(wp(t),t)+(wp(t).getDay()===4),e,2)}function QB(t){return t.getDay()}function JB(t,e){return bi(Om.count(wp(t)-1,t),e,2)}function eF(t,e){return bi(t.getFullYear()%100,e,2)}function tF(t,e){return t=Lb(t),bi(t.getFullYear()%100,e,2)}function rF(t,e){return bi(t.getFullYear()%1e4,e,4)}function nF(t,e){var r=t.getDay();return t=r>=4||r===0?Sp(t):Sp.ceil(t),bi(t.getFullYear()%1e4,e,4)}function iF(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+bi(e/60|0,"0",2)+bi(e%60,"0",2)}function I6(t,e){return bi(t.getUTCDate(),e,2)}function oF(t,e){return bi(t.getUTCHours(),e,2)}function aF(t,e){return bi(t.getUTCHours()%12||12,e,2)}function sF(t,e){return bi(1+Mb.count(m3(t),t),e,3)}function Db(t,e){return bi(t.getUTCMilliseconds(),e,3)}function lF(t,e){return Db(t,e)+"000"}function uF(t,e){return bi(t.getUTCMonth()+1,e,2)}function cF(t,e){return bi(t.getUTCMinutes(),e,2)}function hF(t,e){return bi(t.getUTCSeconds(),e,2)}function fF(t){var e=t.getUTCDay();return e===0?7:e}function pF(t,e){return bi(Pb.count(m3(t)-1,t),e,2)}function Bb(t){var e=t.getUTCDay();return e>=4||e===0?Cp(t):Cp.ceil(t)}function dF(t,e){return t=Bb(t),bi(Cp.count(m3(t),t)+(m3(t).getUTCDay()===4),e,2)}function mF(t){return t.getUTCDay()}function _F(t,e){return bi(Lm.count(m3(t)-1,t),e,2)}function gF(t,e){return bi(t.getUTCFullYear()%100,e,2)}function vF(t,e){return t=Bb(t),bi(t.getUTCFullYear()%100,e,2)}function yF(t,e){return bi(t.getUTCFullYear()%1e4,e,4)}function xF(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Cp(t):Cp.ceil(t),bi(t.getUTCFullYear()%1e4,e,4)}function bF(){return"+0000"}function M6(){return"%"}function P6(t){return+t}function O6(t){return Math.floor(+t/1e3)}var qf,Fb;EF({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function EF(t){return qf=EB(t),Fb=qf.format,qf.parse,qf.utcFormat,qf.utcParse,qf}var Xd=1e3,Wd=Xd*60,Gd=Wd*60,_3=Gd*24,TF=_3*7,L6=_3*30,fg=_3*365;function AF(t){return new Date(t)}function SF(t){return t instanceof Date?+t:+new Date(+t)}function Nb(t,e,r,n,a,l,o,p,m){var v=fb(_s,_s),E=v.invert,b=v.domain,A=m(".%L"),R=m(":%S"),O=m("%I:%M"),D=m("%I %p"),N=m("%a %d"),W=m("%b %d"),G=m("%B"),Y=m("%Y"),Q=[[o,1,Xd],[o,5,5*Xd],[o,15,15*Xd],[o,30,30*Xd],[l,1,Wd],[l,5,5*Wd],[l,15,15*Wd],[l,30,30*Wd],[a,1,Gd],[a,3,3*Gd],[a,6,6*Gd],[a,12,12*Gd],[n,1,_3],[n,2,2*_3],[r,1,TF],[e,1,L6],[e,3,3*L6],[t,1,fg]];function J(ce){return(o(ce)a?(r=a,a):r,n.unknown=a=>a?(e=a,a):e,n.copy=()=>Vb().unknown(e),n}const{isNil:pg,isString:IF,uniq:MF}=Ko,PF=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]?)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,OF={[Ai.LINEAR]:mb,[Ai.POWER]:vb,[Ai.LOG]:gb,[Ai.IDENTITY]:Vb,[Ai.SEQUENTIAL]:Ub,[Ai.TIME]:wF,[Ai.QUANTILE]:yb,[Ai.QUANTIZE]:xb,[Ai.THRESHOLD]:bb,[Ai.CAT]:Cm,[Ai.DIVERGING]:zb};class LF{constructor(){I(this,"scaleOptions",{})}apply(e,{styleAttributeService:r}){var n=this;e.hooks.init.tapPromise("FeatureScalePlugin",bt(function*(){var a;e.log(Ia.ScaleInitStart,es.INIT),n.scaleOptions=e.getScaleOptions();const l=r.getLayerStyleAttributes(),o=(a=e.getSource())===null||a===void 0?void 0:a.data.dataArray;Array.isArray(o)&&o.length===0||(n.caculateScalesForAttributes(l||[],o),e.log(Ia.ScaleInitEnd,es.INIT))})),e.hooks.beforeRenderData.tapPromise("FeatureScalePlugin",function(){var a=bt(function*(l){if(!l)return l;e.log(Ia.ScaleInitStart,es.UPDATE),n.scaleOptions=e.getScaleOptions();const o=r.getLayerStyleAttributes(),p=e.getSource().data.dataArray;return Array.isArray(p)&&p.length===0||(n.caculateScalesForAttributes(o||[],p),e.log(Ia.ScaleInitEnd,es.UPDATE),e.layerModelNeedUpdate=!0),!0});return function(l){return a.apply(this,arguments)}}()),e.hooks.beforeRender.tap("FeatureScalePlugin",()=>{if(e.layerModelNeedUpdate)return;this.scaleOptions=e.getScaleOptions();const a=r.getLayerStyleAttributes(),l=e.getSource().data.dataArray;if(!(Array.isArray(l)&&l.length===0)&&a){const o=a.filter(p=>p.needRescale);o.length&&this.caculateScalesForAttributes(o,l)}})}isNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}caculateScalesForAttributes(e,r){e.forEach(n=>{if(n.scale){const a=n.scale,l=n.scale.field;a.names=this.parseFields(pg(l)?[]:l);const o=[];a.names.forEach(p=>{var m;o.push(this.createScale(p,n.name,(m=n.scale)===null||m===void 0?void 0:m.values,r))}),o.some(p=>p.type===$f.VARIABLE)?(a.type=$f.VARIABLE,o.forEach(p=>{if(!a.callback&&a.values!=="text"){var m;switch((m=p.option)===null||m===void 0?void 0:m.type){case Ai.LOG:case Ai.LINEAR:case Ai.POWER:if(a.values&&a.values.length>2){const E=p.scale.ticks(a.values.length);p.scale.domain(E)}a.values?p.scale.range(a.values):p.scale.range(p.option.domain);break;case Ai.QUANTILE:case Ai.QUANTIZE:case Ai.THRESHOLD:p.scale.range(a.values);break;case Ai.IDENTITY:break;case Ai.CAT:a.values?p.scale.range(a.values):p.scale.range(p.option.domain);break;case Ai.DIVERGING:case Ai.SEQUENTIAL:p.scale.interpolator(AD(a.values));break}}if(a.values==="text"){var v;p.scale.range((v=p.option)===null||v===void 0?void 0:v.domain)}})):(a.type=$f.CONSTANT,a.defaultValues=o.map((p,m)=>p.scale(a.names[m]))),a.scalers=o.map(p=>({field:p.field,func:p.scale,option:p.option})),n.needRescale=!1}})}parseFields(e){return Array.isArray(e)?e:IF(e)?e.split("*"):[e]}createScale(e,r,n,a){var l,o;const p=this.scaleOptions[r]&&((l=this.scaleOptions[r])===null||l===void 0?void 0:l.field)===e?this.scaleOptions[r]:this.scaleOptions[e],m={field:e,scale:void 0,type:$f.VARIABLE,option:p};if(!a||!a.length)return p&&p.type?m.scale=this.createDefaultScale(p):(m.scale=Cm([e]),m.type=$f.CONSTANT),m;const v=(o=a.find(E=>!pg(E[e])))===null||o===void 0?void 0:o[e];if(this.isNumber(e)||pg(v)&&!p)m.scale=Cm([e]),m.type=$f.CONSTANT;else{let E=p&&p.type||this.getDefaultType(v);n==="text"&&(E=Ai.CAT),n===void 0&&(E=Ai.IDENTITY);const b=this.createScaleConfig(E,e,p,a);m.scale=this.createDefaultScale(b),m.option=b}return m}getDefaultType(e){let r=Ai.LINEAR;return typeof e=="string"&&(r=PF.test(e)?Ai.TIME:Ai.CAT),r}createScaleConfig(e,r,n,a){const l=_t(_t({},n),{},{type:e});if(l!=null&&l.domain)return l;let o=[];if(e===Ai.QUANTILE){const p=new Map;a==null||a.forEach(m=>{p.set(m._id,m[r])}),o=Array.from(p.values())}else o=(a==null?void 0:a.map(p=>p[r]))||[];if(e===Ai.CAT||e===Ai.IDENTITY)l.domain=MF(o);else if(e===Ai.QUANTILE)l.domain=o;else if(e===Ai.DIVERGING){const p=s6(o),m=(n==null?void 0:n.neutral)!==void 0?n==null?void 0:n.neutral:(p[0]+p[1])/2;l.domain=[p[0],m,p[1]]}else l.domain=s6(o);return l}createDefaultScale({type:e,domain:r,unknown:n,clamp:a,nice:l}){const o=OF[e]();return r&&o.domain&&o.domain(r),n&&o.unknown(n),a!==void 0&&o.clamp&&o.clamp(a),l!==void 0&&o.nice&&o.nice(l),o}}class DF{apply(e){e.hooks.beforeRender.tap("LayerAnimateStylePlugin",()=>{e.animateStatus&&e.models.forEach(n=>{n.addUniforms(_t({},e.layerModel.getAnimateUniforms()))})})}}let BF=class{apply(e){e.hooks.afterInit.tap("LayerMaskPlugin",()=>{const{maskLayers:r,enableMask:n}=e.getLayerConfig();!e.tileLayer&&r&&r.length>0&&e.updateLayerConfig({mask:n})})}};class FF{build(e){return bt(function*(){e.prepareBuildModel(),yield e.buildModels()})()}initLayerModel(e){var r=this;return bt(function*(){yield r.build(e),e.styleNeedUpdate=!1})()}prepareLayerModel(e){var r=this;return bt(function*(){yield r.build(e),e.styleNeedUpdate=!1})()}apply(e){var r=this;e.hooks.init.tapPromise("LayerModelPlugin",bt(function*(){if(e.getSource().isTile){e.prepareBuildModel();return}e.log(Ia.BuildModelStart,es.INIT),yield r.initLayerModel(e),e.log(Ia.BuildModelEnd,es.INIT)})),e.hooks.beforeRenderData.tapPromise("LayerModelPlugin",function(){var n=bt(function*(a){return!a||e.getSource().isTile?!1:(e.log(Ia.BuildModelStart,es.UPDATE),yield r.prepareLayerModel(e),e.log(Ia.BuildModelEnd,es.UPDATE),!0)});return function(a){return n.apply(this,arguments)}}())}}class NF{apply(e){e.hooks.afterInit.tap("LayerStylePlugin",()=>{const{autoFit:r,fitBoundsOptions:n}=e.getLayerConfig();r&&e.fitBounds(n),e.styleNeedUpdate=!1})}}const kF=["type"],D6={directional:{lights:"u_DirectionalLights",num:"u_NumOfDirectionalLights"},spot:{lights:"u_SpotLights",num:"u_NumOfSpotLights"}},UF={type:"directional",direction:[1,10.5,12],ambient:[.2,.2,.2],diffuse:[.6,.6,.6],specular:[.1,.1,.1]},zF={direction:[0,0,0],ambient:[0,0,0],diffuse:[0,0,0],specular:[0,0,0]},VF={position:[0,0,0],direction:[0,0,0],ambient:[0,0,0],diffuse:[0,0,0],specular:[0,0,0],constant:1,linear:0,quadratic:0,angle:14,exponent:40,blur:5};function HF(t){const e={u_DirectionalLights:new Array(3).fill(_t({},zF)),u_NumOfDirectionalLights:0,u_SpotLights:new Array(3).fill(_t({},VF)),u_NumOfSpotLights:0};return(!t||!t.length)&&(t=[UF]),t.forEach(r=>{let{type:n="directional"}=r,a=fu(r,kF);const l=D6[n].lights,o=D6[n].num,p=e[o];e[l][p]=_t(_t({},e[l][p]),a),e[o]++}),e}class jF{apply(e){e.hooks.beforeRender.tap("LightingPlugin",()=>{const{enableLighting:r}=e.getLayerConfig();r&&e.models.forEach(n=>n.addUniforms(_t({},HF())))})}}function Hb(t){return t.map(e=>(typeof e=="string"&&(e=[e,{}]),e))}function jb(t,e,r,n){const a=t.multiPassRenderer;return a.add(n("render")),Hb(e).forEach(l=>{const[o,p]=l;a.add(r(o),p)}),a.add(r("copy")),a}class XF{constructor(){I(this,"enabled",void 0)}apply(e,{rendererService:r,postProcessingPassFactory:n,normalPassFactory:a}){e.hooks.init.tapPromise("MultiPassRendererPlugin",()=>{const{enableMultiPassRenderer:l,passes:o=[]}=e.getLayerConfig();this.enabled=!!l&&e.getLayerConfig().enableMultiPassRenderer!==!1,this.enabled&&(e.multiPassRenderer=jb(e,o,n,a),e.multiPassRenderer.setRenderFlag(!0))}),e.hooks.beforeRender.tap("MultiPassRendererPlugin",()=>{if(this.enabled){const{width:l,height:o}=r.getViewportSize();e.multiPassRenderer.resize(l,o)}})}}const Z1={POSITION:0,POSITION_64LOW:1,COLOR:2,PICKING_COLOR:3,STROKE:4,OPACITY:5,OFFSETS:6,ROTATION:7,MAX:8};function WF(t){switch(t){case"rotation":return{name:"Rotation",type:Lr.Attribute,descriptor:{name:"a_Rotation",shaderLocation:Z1.ROTATION,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{rotation:r=0}=e;return Array.isArray(r)?[r[0]]:[r]}}};case"stroke":return{name:"stroke",type:Lr.Attribute,descriptor:{name:"a_Stroke",shaderLocation:Z1.STROKE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:4,update:e=>{const{stroke:r=[1,1,1,1]}=e;return r}}};case"opacity":return{name:"opacity",type:Lr.Attribute,descriptor:{name:"a_Opacity",shaderLocation:Z1.OPACITY,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{opacity:r=1}=e;return[r]}}};case"offsets":return{name:"offsets",type:Lr.Attribute,descriptor:{name:"a_Offsets",shaderLocation:Z1.OFFSETS,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const{offsets:r}=e;return r}}};default:return}}const{isNumber:GF}=Ko,Yf={NONE:0,ENCODE:1,HIGHLIGHT:2};class ZF{constructor(){I(this,"pickingUniformMap",void 0)}pickOption2Array(){const e=[];return this.pickingUniformMap.forEach(r=>{GF(r)?e.push(r):e.push(...r)}),e}updatePickOption(e,r){Object.keys(e).forEach(o=>{this.pickingUniformMap.set(o,e[o])});const n=r.getLayerConfig().pickingBuffer||0,a=Number(r.getShaderPickStat());this.pickingUniformMap.set("u_PickingBuffer",n),this.pickingUniformMap.set("u_shaderPick",a),r.getPickingUniformBuffer().subData({offset:0,data:this.pickOption2Array()})}apply(e,{styleAttributeService:r}){this.pickingUniformMap=new Map([["u_HighlightColor",[1,0,0,1]],["u_SelectColor",[1,0,0,1]],["u_PickingColor",[0,0,0]],["u_PickingStage",0],["u_CurrentSelectedId",[0,0,0]],["u_PickingThreshold",10],["u_PickingBuffer",0],["u_shaderPick",0],["u_activeMix",0]]),e.hooks.init.tapPromise("PixelPickingPlugin",()=>{const{enablePicking:n}=e.getLayerConfig();r.registerStyleAttribute({name:"pickingColor",type:Lr.Attribute,descriptor:{name:"a_PickingColor",shaderLocation:Z1.PICKING_COLOR,buffer:{data:[],type:H.FLOAT},size:3,update:a=>{const{id:l}=a;return n?yp(l):[0,0,0]}}})}),e.hooks.beforePickingEncode.tap("PixelPickingPlugin",()=>{const{enablePicking:n}=e.getLayerConfig();n&&e.isVisible()&&(this.updatePickOption({u_PickingStage:Yf.ENCODE},e),e.models.forEach(a=>a.addUniforms({u_PickingStage:Yf.ENCODE})))}),e.hooks.afterPickingEncode.tap("PixelPickingPlugin",()=>{const{enablePicking:n}=e.getLayerConfig();n&&e.isVisible()&&(this.updatePickOption({u_PickingStage:Yf.HIGHLIGHT},e),e.models.forEach(a=>a.addUniforms({u_PickingStage:Yf.HIGHLIGHT})))}),e.hooks.beforeHighlight.tap("PixelPickingPlugin",n=>{const{highlightColor:a,activeMix:l=0}=e.getLayerConfig(),o=typeof a=="string"?Fi(a):a||[1,0,0,1];e.updateLayerConfig({pickedFeatureID:Zh(new Uint8Array(n))});const p={u_PickingStage:Yf.HIGHLIGHT,u_PickingColor:n,u_HighlightColor:o.map(m=>m*255),u_activeMix:l};this.updatePickOption(p,e),e.models.forEach(m=>m.addUniforms(p))}),e.hooks.beforeSelect.tap("PixelPickingPlugin",n=>{const{selectColor:a,selectMix:l=0}=e.getLayerConfig(),o=typeof a=="string"?Fi(a):a||[1,0,0,1];e.updateLayerConfig({pickedFeatureID:Zh(new Uint8Array(n))});const p={u_PickingStage:Yf.HIGHLIGHT,u_PickingColor:n,u_HighlightColor:o.map(m=>m*255),u_activeMix:l,u_CurrentSelectedId:n,u_SelectColor:o.map(m=>m*255)};this.updatePickOption(p,e),e.models.forEach(m=>m.addUniforms(p))})}}const $F=["mvt","geojsonvt","testTile"];function qF(t){const e=t.getSource();return $F.includes(e.parser.type)}class YF{apply(e,{styleAttributeService:r}){e.hooks.init.tapPromise("RegisterStyleAttributePlugin",()=>{qF(e)||this.registerBuiltinAttributes(r,e)})}registerBuiltinAttributes(e,r){if(r.type==="MaskLayer"){this.registerPositionAttribute(e);return}this.registerPositionAttribute(e),this.registerColorAttribute(e)}registerPositionAttribute(e){e.registerStyleAttribute({name:"position",type:Lr.Attribute,descriptor:{name:"a_Position",shaderLocation:Z1.POSITION,buffer:{data:[],type:H.FLOAT},size:3,update:(r,n,a)=>a.length===2?[a[0],a[1],0]:[a[0],a[1],a[2]]}})}registerColorAttribute(e){e.registerStyleAttribute({name:"color",type:Lr.Attribute,descriptor:{name:"a_Color",shaderLocation:Z1.COLOR,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:4,update:r=>{const{color:n}=r;return!n||!n.length?[1,1,1,1]:n}}})}}class KF{constructor(){I(this,"cameraService",void 0),I(this,"coordinateSystemService",void 0),I(this,"rendererService",void 0),I(this,"mapService",void 0),I(this,"layerService",void 0)}apply(e,{rendererService:r,mapService:n,layerService:a,coordinateSystemService:l,cameraService:o}){this.rendererService=r,this.mapService=n,this.layerService=a,this.coordinateSystemService=l,this.cameraService=o;let p;this.rendererService.uniformBuffers[0]||(p=this.rendererService.createBuffer({data:new Float32Array(16*4+4*7),isUBO:!0,label:"renderUniformBuffer"}),this.rendererService.uniformBuffers[0]=p),e.hooks.beforeRender.tap("ShaderUniformPlugin",()=>{const m=e.getLayerConfig().tileOrigin;this.coordinateSystemService.refresh(m);const{width:v,height:E}=this.rendererService.getViewportSize(),{data:b,uniforms:A}=this.generateUBO(v,E);this.layerService.alreadyInRendering&&this.rendererService.uniformBuffers[0]&&this.rendererService.uniformBuffers[0].subData({offset:0,data:b}),this.rendererService.queryVerdorInfo()==="WebGL1"&&e.models.forEach(O=>{O.addUniforms(_t(_t({},A),{},{u_PickingBuffer:e.getLayerConfig().pickingBuffer||0,u_shaderPick:Number(e.getShaderPickStat())}))})})}generateUBO(e,r){const n=this.cameraService.getProjectionMatrix(),a=this.cameraService.getViewMatrix(),l=this.cameraService.getViewProjectionMatrix(),o=this.cameraService.getModelMatrix(),p=this.coordinateSystemService.getViewportCenterProjection(),m=this.coordinateSystemService.getPixelsPerDegree(),v=this.cameraService.getZoom(),E=this.coordinateSystemService.getPixelsPerDegree2(),b=this.cameraService.getZoomScale(),A=this.coordinateSystemService.getPixelsPerMeter(),R=this.coordinateSystemService.getCoordinateSystem(),O=this.cameraService.getCameraPosition(),D=window.devicePixelRatio,N=this.coordinateSystemService.getViewportCenter(),W=[e,r],G=this.cameraService.getFocalDistance();return{data:[...a,...n,...l,...o,...p,...m,v,...E,b,...A,R,...O,D,...N,...W,G,0,0,0],uniforms:{[kh.ProjectionMatrix]:n,[kh.ViewMatrix]:a,[kh.ViewProjectionMatrix]:l,[kh.Zoom]:v,[kh.ZoomScale]:b,[kh.FocalDistance]:G,[kh.CameraPosition]:O,[Zf.CoordinateSystem]:R,[Zf.ViewportCenter]:N,[Zf.ViewportCenterProjection]:p,[Zf.PixelsPerDegree]:m,[Zf.PixelsPerDegree2]:E,[Zf.PixelsPerMeter]:A,u_ViewportSize:W,u_ModelMatrix:o,u_DevicePixelRatio:D}}}}class QF{apply(e){e.hooks.beforeRender.tap("UpdateModelPlugin",()=>{e.layerModel&&e.layerModel.needUpdate().then(r=>{r&&e.renderLayers()})}),e.hooks.afterRender.tap("UpdateModelPlugin",()=>{e.layerModelNeedUpdate=!1})}}class JF{apply(e,{styleAttributeService:r}){e.hooks.init.tapPromise("UpdateStyleAttributePlugin",()=>{this.initStyleAttribute(e,{styleAttributeService:r})}),e.hooks.beforeRender.tap("UpdateStyleAttributePlugin",()=>{e.layerModelNeedUpdate||e.inited&&this.updateStyleAttribute(e,{styleAttributeService:r})})}updateStyleAttribute(e,{styleAttributeService:r}){const n=r.getLayerStyleAttributes()||[],a=r.getLayerStyleAttribute("filter");if(a&&a.needRegenerateVertices){e.layerModelNeedUpdate=!0,n.forEach(l=>l.needRegenerateVertices=!1);return}n.filter(l=>l.needRegenerateVertices).forEach(l=>{r.updateAttributeByFeatureRange(l.name,e.getEncodedData(),l.featureRange.startIndex,l.featureRange.endIndex,e),l.needRegenerateVertices=!1})}initStyleAttribute(e,{styleAttributeService:r}){(r.getLayerStyleAttributes()||[]).filter(a=>a.needRegenerateVertices).forEach(a=>{r.updateAttributeByFeatureRange(a.name,e.getEncodedData(),a.featureRange.startIndex,a.featureRange.endIndex),a.needRegenerateVertices=!1})}}function eN(){return[new gD,new YF,new LF,new _D,new NF,new BF,new JF,new QF,new XF,new KF,new DF,new jF,new ZF,new FF]}const Xb={[j1.additive]:{enable:!0,func:{srcRGB:H.ONE,dstRGB:H.ONE,srcAlpha:1,dstAlpha:1}},[j1.none]:{enable:!1},[j1.normal]:{enable:!0,func:{srcRGB:H.SRC_ALPHA,dstRGB:H.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}},[j1.subtractive]:{enable:!0,func:{srcRGB:H.ONE,dstRGB:H.ONE,srcAlpha:H.ZERO,dstAlpha:H.ONE_MINUS_SRC_COLOR},equation:{rgb:H.FUNC_SUBTRACT,alpha:H.FUNC_SUBTRACT}},[j1.max]:{enable:!0,func:{srcRGB:H.ONE,dstRGB:H.ONE},equation:{rgb:H.MAX_EXT}},[j1.min]:{enable:!0,func:{srcRGB:H.ONE,dstRGB:H.ONE},equation:{rgb:H.MIN_EXT}}};class tN{constructor(e){I(this,"layer",void 0),this.layer=e}pickRender(e){const n=this.layer.getContainer().layerService,a=this.layer;if(a.tileLayer)return a.tileLayer.pickRender(e);a.hooks.beforePickingEncode.call(),n.renderTileLayerMask(a),a.renderModels({ispick:!0}),a.hooks.afterPickingEncode.call()}pick(e,r){var n=this;return bt(function*(){const l=n.layer.getContainer().pickingService;return e.type==="RasterLayer"?n.pickRasterLayer(e,r):(n.pickRender(r),l.pickFromPickingFBO(e,r))})()}pickRasterLayer(e,r,n){const a=this.layer.getContainer(),l=a.pickingService,o=a.mapService,p=this.layer.getSource().extent,m=Hw(r.lngLat,p),v={x:r.x,y:r.y,type:r.type,lngLat:r.lngLat,target:r,rasterValue:null},E=n||e;if(m){const b=this.readRasterValue(e,p,o,r.x,r.y);return v.rasterValue=b,l.triggerHoverOnLayer(E,v),!0}else return v.type=r.type==="mousemove"?"mouseout":"un"+r.type,l.triggerHoverOnLayer(E,_t(_t({},v),{},{type:"unpick"})),l.triggerHoverOnLayer(E,v),!1}readRasterValue(e,r,n,a,l){const o=e.getSource().data.dataArray[0],[p=0,m=0,v=10,E=-10]=r,b=n.lngLatToContainer([p,m]),A=n.lngLatToContainer([v,E]),R=A.x-b.x,O=b.y-A.y,D=[(a-b.x)/R,(l-A.y)/O],N=o.width||1,W=o.height||1,G=Math.floor(D[0]*N),Y=Math.floor(D[1]*W),Q=Math.max(0,Y-1)*N+G;return o.data[Q]}selectFeature(e){const r=this.layer,[n,a,l]=e;r.hooks.beforeSelect.call([n,a,l])}highlightPickedFeature(e){const[r,n,a]=e;this.layer.hooks.beforeHighlight.call([r,n,a])}getFeatureById(e){return this.layer.getSource().getFeatureById(e)}}class rN{constructor(e){I(this,"layer",void 0),I(this,"rendererService",void 0),I(this,"colorTexture",void 0),I(this,"key",void 0),this.layer=e;const r=this.layer.getContainer();this.rendererService=r.rendererService}getColorTexture(e,r){const n=this.getTextureKey(e,r);return this.key===n?this.colorTexture:(this.createColorTexture(e,r),this.key=n,this.colorTexture)}createColorTexture(e,r){const{createTexture2D:n}=this.rendererService,a=this.getColorRampBar(e,r),l=n({data:new Uint8Array(a.data),width:a.width,height:a.height,flipY:!1,unorm:!0});return this.colorTexture=l,l}setColorTexture(e,r,n){this.key=this.getTextureKey(r,n),this.colorTexture=e}destroy(){var e;(e=this.colorTexture)===null||e===void 0||e.destroy()}getColorRampBar(e,r){switch(e.type){case"cat":return OS(e);case"quantize":return LS(e);case"custom":return DS(e,r);case"linear":return PS(e,r);default:return MS(e)}}getTextureKey(e,r){var n;return`${e.colors.join("_")}_${e==null||(n=e.positions)===null||n===void 0?void 0:n.join("_")}_${e.type}_${r==null?void 0:r.join("_")}`}}const nN=["passes"],iN=["moduleName","vertexShader","fragmentShader","defines","inject","triangulation","styleOption","pickingEnabled"],{isEqual:dg,isFunction:B6,isNumber:F6,isObject:Qa,isPlainObject:oN,isUndefined:aN}=Ko;let N6=0;class Np extends Ps.EventEmitter{get shaderModuleService(){return this.container.shaderModuleService}get cameraService(){return this.container.cameraService}get coordinateService(){return this.container.coordinateSystemService}get iconService(){return this.container.iconService}get fontService(){return this.container.fontService}get pickingService(){return this.container.pickingService}get rendererService(){return this.container.rendererService}get layerService(){return this.container.layerService}get debugService(){return this.container.debugService}get interactionService(){return this.container.interactionService}get mapService(){var e;return(e=this.container)===null||e===void 0?void 0:e.mapService}get normalPassFactory(){return this.container.normalPassFactory}constructor(e={}){super(),I(this,"id",`${N6++}`),I(this,"name",`${N6}`),I(this,"parent",void 0),I(this,"coordCenter",void 0),I(this,"type",void 0),I(this,"visible",!0),I(this,"zIndex",0),I(this,"minZoom",void 0),I(this,"maxZoom",void 0),I(this,"inited",!1),I(this,"layerModelNeedUpdate",!1),I(this,"pickedFeatureID",null),I(this,"selectedFeatureID",null),I(this,"styleNeedUpdate",!1),I(this,"rendering",void 0),I(this,"forceRender",!1),I(this,"clusterZoom",0),I(this,"layerType",void 0),I(this,"triangulation",void 0),I(this,"layerPickService",void 0),I(this,"textureService",void 0),I(this,"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),I(this,"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),I(this,"hooks",{init:new QM,afterInit:new _5,beforeRender:new _5,beforeRenderData:new JM,afterRender:new pc,beforePickingEncode:new pc,afterPickingEncode:new pc,beforeHighlight:new pc(["pickedColor"]),afterHighlight:new pc,beforeSelect:new pc(["pickedColor"]),afterSelect:new pc,beforeDestroy:new pc,afterDestroy:new pc}),I(this,"models",[]),I(this,"multiPassRenderer",void 0),I(this,"plugins",void 0),I(this,"startInit",!1),I(this,"sourceOption",void 0),I(this,"layerModel",void 0),I(this,"shapeOption",void 0),I(this,"tileLayer",void 0),I(this,"layerChildren",[]),I(this,"masks",[]),I(this,"configService",X7),I(this,"styleAttributeService",void 0),I(this,"layerSource",void 0),I(this,"postProcessingPassFactory",void 0),I(this,"animateOptions",{enable:!1}),I(this,"container",void 0),I(this,"encodedData",void 0),I(this,"currentPickId",null),I(this,"rawConfig",void 0),I(this,"needUpdateConfig",void 0),I(this,"encodeStyleAttribute",{}),I(this,"enableShaderEncodeStyles",[]),I(this,"enableDataEncodeStyles",[]),I(this,"pendingStyleAttributes",[]),I(this,"scaleOptions",{}),I(this,"animateStartTime",void 0),I(this,"animateStatus",!1),I(this,"isDestroyed",!1),I(this,"uniformBuffers",[]),I(this,"encodeDataLength",0),I(this,"sourceEvent",()=>{this.dataState.dataSourceNeedUpdate=!0;const r=this.getLayerConfig();r&&r.autoFit&&this.fitBounds(r.fitBoundsOptions),this.layerSource.getSourceCfg().autoRender&&setTimeout(()=>{this.reRender()},10)}),this.name=e.name||this.id,this.zIndex=e.zIndex||0,this.rawConfig=e,this.masks=e.maskLayers||[]}addMask(e){this.masks.push(e),this.updateLayerConfig({maskLayers:this.masks}),this.enableMask()}removeMask(e){const r=this.masks.indexOf(e);r>-1&&this.masks.splice(r,1),this.updateLayerConfig({maskLayers:this.masks})}disableMask(){this.updateLayerConfig({enableMask:!1})}enableMask(){this.updateLayerConfig({enableMask:!0})}addMaskLayer(e){this.masks.push(e)}removeMaskLayer(e){const r=this.masks.indexOf(e);r>-1&&this.masks.splice(r,1),e.destroy()}getAttribute(e){return this.styleAttributeService.getLayerStyleAttribute(e)}getLayerConfig(){return this.configService.getLayerConfig(this.id)}updateLayerConfig(e){if(Object.keys(e).map(r=>{r in this.rawConfig&&(this.rawConfig[r]=e[r])}),!this.startInit)this.needUpdateConfig=_t(_t({},this.needUpdateConfig),e);else{const r=this.container.id;this.configService.setLayerConfig(r,this.id,_t(_t(_t({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),e)),this.needUpdateConfig={}}}setContainer(e){this.container=e}getContainer(){return this.container}addPlugin(e){return this.plugins.push(e),this}init(){var e=this;return bt(function*(){const r=e.container.id;e.startInit=!0,e.configService.setLayerConfig(r,e.id,e.rawConfig),e.layerType=e.rawConfig.layerType;const{enableMultiPassRenderer:n,passes:a}=e.getLayerConfig();n&&a!==null&&a!==void 0&&a.length&&a.length>0&&e.mapService.on("mapAfterFrameChange",()=>{e.renderLayers()}),e.postProcessingPassFactory=e.container.postProcessingPassFactory,e.styleAttributeService=e.container.styleAttributeService,n&&(e.multiPassRenderer=e.container.multiPassRenderer,e.multiPassRenderer.setLayer(e)),e.pendingStyleAttributes.forEach(({attributeName:l,attributeField:o,attributeValues:p,updateOptions:m})=>{e.styleAttributeService.updateStyleAttribute(l,{scale:_t({field:o},e.splitValuesAndCallbackInAttribute(p,o?void 0:e.getLayerConfig()[l]))},m)}),e.pendingStyleAttributes=[],e.plugins=eN();for(const l of e.plugins)l.apply(e,e.container);e.layerPickService=new tN(e),e.textureService=new rN(e),e.log(Ia.LayerInitStart),yield e.hooks.init.promise(),e.log(Ia.LayerInitEnd),e.inited=!0,e.emit("inited",{target:e,type:"inited"}),e.emit("add",{target:e,type:"add"}),e.hooks.afterInit.call()})()}log(e,r="init"){var n;if(this.tileLayer||this.isTileLayer)return;const a=`${this.id}.${r}.${e}`,l={id:this.id,type:this.type};(n=this.debugService)===null||n===void 0||n.log(a,l)}updateModelData(e){e.attributes&&e.elements?this.models.map(r=>{r.updateAttributesAndElements(e.attributes,e.elements)}):console.warn("data error")}setLayerPickService(e){this.layerPickService=e}prepareBuildModel(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});const{animateOption:e}=this.getLayerConfig();e!=null&&e.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}color(e,r,n){return this.updateStyleAttribute("color",e,r,n),this}texture(e,r,n){return this.updateStyleAttribute("texture",e,r,n),this}rotate(e,r,n){return this.updateStyleAttribute("rotate",e,r,n),this}size(e,r,n){return this.updateStyleAttribute("size",e,r,n),this}filter(e,r,n){const a=this.updateStyleAttribute("filter",e,r,n);return this.dataState.dataSourceNeedUpdate=a&&this.inited,this}shape(e,r,n){this.shapeOption={field:e,values:r};const a=this.updateStyleAttribute("shape",e,r,n);return this.dataState.dataSourceNeedUpdate=a&&this.inited,this}label(e,r,n){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:e,attributeValues:r,updateOptions:n}),this}animate(e){let r={};return Qa(e)?(r.enable=!0,r=_t(_t({},r),e)):r.enable=e,this.updateLayerConfig({animateOption:r}),this}source(e,r){return(e==null?void 0:e.type)==="source"?(this.setSource(e),this):(this.sourceOption={data:e,options:r},this.clusterZoom=0,this)}setData(e,r){return this.inited?(this.dataUpdatelog(),this.layerSource.setData(e,r)):this.on("inited",()=>{this.dataUpdatelog(),this.layerSource.setData(e,r)}),this}dataUpdatelog(){this.log(Ia.SourceInitStart,es.UPDATE),this.layerSource.once("update",()=>{this.log(Ia.SourceInitEnd,es.UPDATE)})}style(e){const{passes:r}=e,n=fu(e,nN);r&&Hb(r).forEach(l=>{const o=this.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(l[0]);o&&o.updateOptions(l[1])}),n.borderColor&&(n.stroke=n.borderColor),n.borderWidth&&(n.strokeWidth=n.borderWidth);const a=n;return Object.keys(n).forEach(l=>{const o=n[l];Array.isArray(o)&&o.length===2&&!F6(o[0])&&!F6(o[1])&&(a[l]={field:o[0],value:o[1]})}),this.encodeStyle(a),this.updateLayerConfig(a),this}encodeStyle(e){Object.keys(e).forEach(r=>{[...this.enableShaderEncodeStyles,...this.enableDataEncodeStyles].includes(r)&&oN(e[r])&&(e[r].field||e[r].value)&&!dg(this.encodeStyleAttribute[r],e[r])?(this.encodeStyleAttribute[r]=e[r],this.updateStyleAttribute(r,e[r].field,e[r].value),this.inited&&(this.dataState.dataMappingNeedUpdate=!0)):this.encodeStyleAttribute[r]&&(delete this.encodeStyleAttribute[r],this.dataState.dataSourceNeedUpdate=!0)})}scale(e,r){const n=_t({},this.scaleOptions);if(Qa(e)?this.scaleOptions=_t(_t({},this.scaleOptions),e):this.scaleOptions[e]=r,this.styleAttributeService&&!dg(n,this.scaleOptions)){const a=Qa(e)?e:{[e]:r};this.styleAttributeService.updateScaleAttribute(a)}return this}renderLayers(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}prerender(){}render(e={}){return this.tileLayer?(this.tileLayer.render(),this):(this.layerService.beforeRenderData(this),this.encodeDataLength<=0&&!this.forceRender?this:(this.renderModels(e),this))}renderMultiPass(){var e=this;return bt(function*(){e.encodeDataLength<=0&&!e.forceRender||(e.multiPassRenderer&&e.multiPassRenderer.getRenderFlag()?yield e.multiPassRenderer.render():e.renderModels())})()}active(e){const r={};return r.enableHighlight=Qa(e)?!0:e,Qa(e)?(r.enableHighlight=!0,e.color&&(r.highlightColor=e.color),e.mix&&(r.activeMix=e.mix)):r.enableHighlight=!!e,this.updateLayerConfig(r),this}setActive(e,r){if(Qa(e)){const{x:n=0,y:a=0}=e;this.updateLayerConfig({highlightColor:Qa(r)?r.color:this.getLayerConfig().highlightColor,activeMix:Qa(r)?r.mix:this.getLayerConfig().activeMix}),this.pick({x:n,y:a})}else this.updateLayerConfig({pickedFeatureID:e,highlightColor:Qa(r)?r.color:this.getLayerConfig().highlightColor,activeMix:Qa(r)?r.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(yp(e)).then(()=>{setTimeout(()=>{this.reRender()},1)})}select(e){const r={};return r.enableSelect=Qa(e)?!0:e,Qa(e)?(r.enableSelect=!0,e.color&&(r.selectColor=e.color),e.mix&&(r.selectMix=e.mix)):r.enableSelect=!!e,this.updateLayerConfig(r),this}setSelect(e,r){if(Qa(e)){const{x:n=0,y:a=0}=e;this.updateLayerConfig({selectColor:Qa(r)?r.color:this.getLayerConfig().selectColor,selectMix:Qa(r)?r.mix:this.getLayerConfig().selectMix}),this.pick({x:n,y:a})}else this.updateLayerConfig({pickedFeatureID:e,selectColor:Qa(r)?r.color:this.getLayerConfig().selectColor,selectMix:Qa(r)?r.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(yp(e)).then(()=>{setTimeout(()=>{this.reRender()},1)})}setBlend(e){return this.updateLayerConfig({blend:e}),this.reRender(),this}show(){return this.updateLayerConfig({visible:!0}),this.reRender(),this.emit("show"),this}hide(){return this.updateLayerConfig({visible:!1}),this.reRender(),this.emit("hide"),this}setIndex(e){return this.zIndex=e,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}setCurrentPickId(e){this.currentPickId=e}getCurrentPickId(){return this.currentPickId}setCurrentSelectedId(e){this.selectedFeatureID=e}getCurrentSelectedId(){return this.selectedFeatureID}isVisible(){const e=this.mapService.getZoom(),{visible:r,minZoom:n=-1/0,maxZoom:a=1/0}=this.getLayerConfig();return!!r&&e>=n&&eMath.abs(l)===1/0)?this:(this.mapService.fitBounds([[n[0],n[1]],[n[2],n[3]]],e),this)}destroy(e=!0){var r,n,a,l,o;if(this.isDestroyed)return;(r=this.layerModel)===null||r===void 0||r.uniformBuffers.forEach(m=>{m.destroy()}),this.layerChildren.map(m=>m.destroy(!1)),this.layerChildren=[];const{maskfence:p}=this.getLayerConfig();p&&(this.masks.map(m=>m.destroy(!1)),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(n=this.multiPassRenderer)===null||n===void 0||n.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(a=this.layerModel)===null||a===void 0||a.clearModels(e),(l=this.tileLayer)===null||l===void 0||l.destroy(),this.models=[],(o=this.debugService)===null||o===void 0||o.removeLog(this.id),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroyed=!0}clear(){this.styleAttributeService.clearAllAttributes()}clearModels(){var e;this.models.forEach(r=>r.destroy()),(e=this.layerModel)===null||e===void 0||e.clearModels(),this.models=[]}isDirty(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(e=>e.needRescale||e.needRemapping||e.needRegenerateVertices).length}setSource(e){if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=e,this.clusterZoom=0,this.inited&&this.layerSource.cluster){const r=this.mapService.getZoom();this.layerSource.updateClusterData(r)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",({type:r})=>{if(this.coordCenter===void 0){const n=this.layerSource.center;this.coordCenter=n}if(r==="update"){if(this.tileLayer){this.tileLayer.reload();return}this.sourceEvent()}})}getSource(){return this.layerSource}getScaleOptions(){return this.scaleOptions}setEncodedData(e){this.encodedData=e,this.encodeDataLength=e.length}getEncodedData(){return this.encodedData}getScale(e){return this.styleAttributeService.getLayerAttributeScale(e)}getLegend(e){var r,n,a;const l=this.styleAttributeService.getLayerStyleAttribute(e);return{type:(n=((l==null||(r=l.scale)===null||r===void 0?void 0:r.scalers)||[])[0])===null||n===void 0||(n=n.option)===null||n===void 0?void 0:n.type,field:l==null||(a=l.scale)===null||a===void 0?void 0:a.field,items:this.getLegendItems(e)}}getLegendItems(e){const r=this.styleAttributeService.getLayerAttributeScale(e);return r?r.invertExtent?r.range().map(a=>({value:r.invertExtent(a),[e]:a})):r.ticks?r.ticks().map(a=>({value:a,[e]:r(a)})):r!=null&&r.domain?r.domain().filter(a=>!aN(a)).map(a=>({value:a,[e]:r(a)})):[]:[]}pick({x:e,y:r}){this.interactionService.triggerHover({x:e,y:r})}boxSelect(e,r){this.pickingService.boxPickLayer(this,e,r)}buildLayerModel(e){var r=this;return bt(function*(){const{moduleName:n,vertexShader:a,fragmentShader:l,defines:o,inject:p,triangulation:m,styleOption:v,pickingEnabled:E=!0}=e,b=fu(e,iN);r.shaderModuleService.registerModule(n,{vs:a,fs:l,defines:o,inject:p});const{vs:A,fs:R,uniforms:O}=r.shaderModuleService.getModule(n),{createModel:D}=r.rendererService;return new Promise(N=>{const{attributes:W,elements:G,count:Y}=r.styleAttributeService.createAttributesAndIndices(r.encodedData,m,v,r),Q=[...r.layerModel.uniformBuffers,...r.rendererService.uniformBuffers];E&&Q.push(r.getPickingUniformBuffer());const J=_t({attributes:W,uniforms:O,fs:R,vs:A,elements:G,blend:Xb[j1.normal],uniformBuffers:Q,textures:r.layerModel.textures},b);Y&&(J.count=Y);const Se=D(J);N(Se)})})()}createAttributes(e){const{triangulation:r}=e,{attributes:n}=this.styleAttributeService.createAttributes(this.encodedData,r);return n}getTime(){return this.layerService.clock.getDelta()}setAnimateStartTime(){this.animateStartTime=this.layerService.clock.getElapsedTime()}stopAnimate(){this.animateStatus&&(this.layerService.stopAnimate(),this.animateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}getLayerAnimateTime(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}needPick(e){const{enableHighlight:r=!0,enableSelect:n=!0}=this.getLayerConfig();let a=this.eventNames().indexOf(e)!==-1||this.eventNames().indexOf("un"+e)!==-1;return(e==="click"||e==="dblclick")&&n&&(a=!0),e==="mousemove"&&(r||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(a=!0),this.isVisible()&&a}buildModels(){return bt(function*(){throw new Error("Method not implemented.")})()}rebuildModels(){var e=this;return bt(function*(){yield e.buildModels()})()}renderMulPass(e){return bt(function*(){yield e.render()})()}renderModels(e={}){return this.encodeDataLength<=0&&!this.forceRender?(this.clearModels(),this):(this.hooks.beforeRender.call(),this.models.forEach(r=>{r.draw({uniforms:this.layerModel.getUninforms(),blend:this.layerModel.getBlend(),stencil:this.layerModel.getStencil(e),textures:this.layerModel.textures},(e==null?void 0:e.ispick)||!1)}),this.hooks.afterRender.call(),this)}updateStyleAttribute(e,r,n,a){const l=this.configService.getAttributeConfig(this.id)||{};return dg(l[e],{field:r,values:n})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(e)!==-1&&this.configService.setAttributeConfig(this.id,{[e]:{field:r,values:n}}),this.startInit?this.styleAttributeService.updateStyleAttribute(e,{scale:_t({field:r},this.splitValuesAndCallbackInAttribute(n,this.getLayerConfig()[r]))},a):this.pendingStyleAttributes.push({attributeName:e,attributeField:r,attributeValues:n,updateOptions:a}),!0)}getLayerAttributeConfig(){return this.configService.getAttributeConfig(this.id)}getShaderPickStat(){return this.layerService.getShaderPickStat()}setEarthTime(e){console.warn("empty fn")}processData(e){return e}getModelType(){throw new Error("Method not implemented.")}getDefaultConfig(){return{}}initLayerModels(){var e=this;return bt(function*(){e.models.forEach(n=>n.destroy()),e.models=[],e.uniformBuffers.forEach(n=>{n.destroy()}),e.uniformBuffers=[];const r=e.rendererService.createBuffer({data:new Float32Array(20).fill(0),isUBO:!0,label:"pickingUniforms"});e.uniformBuffers.push(r),e.models=yield e.layerModel.initModels()})()}getPickingUniformBuffer(){return this.uniformBuffers[0]}reRender(){this.inited&&this.layerService.reRender()}splitValuesAndCallbackInAttribute(e){return{values:B6(e)?void 0:e,callback:B6(e)?e:void 0}}}function sN(t,e){return{enable:t,mask:255,func:{cmp:H.EQUAL,ref:e?1:0,mask:1}}}function k6(t){return t.maskOperation===t_.OR?{enable:!0,mask:255,func:{cmp:H.ALWAYS,ref:1,mask:255},opFront:{fail:H.KEEP,zfail:H.REPLACE,zpass:H.REPLACE}}:{enable:!0,mask:255,func:{cmp:t.stencilType===Wh.SINGLE||t.stencilIndex===0?H.ALWAYS:H.LESS,ref:t.stencilType===Wh.SINGLE?1:t.stencilIndex===0?2:1,mask:255},opFront:{fail:H.KEEP,zfail:H.REPLACE,zpass:H.REPLACE}}}const lN={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0,strokeOpacity:1,thetaOffset:.314},w0={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float",strokeOpacity:"float",thetaOffset:"float"};var g2={exports:{}};g2.exports=o_;g2.exports.default=o_;function o_(t,e,r){r=r||2;var n=e&&e.length,a=n?e[0]*r:t.length,l=Wb(t,0,a,r,!0),o=[];if(!l||l.next===l.prev)return o;var p,m,v,E,b,A,R;if(n&&(l=pN(t,e,l,r)),t.length>80*r){p=v=t[0],m=E=t[1];for(var O=r;Ov&&(v=b),A>E&&(E=A);R=Math.max(v-p,E-m),R=R!==0?32767/R:0}return g3(l,o,r,p,m,R,0),o}function Wb(t,e,r,n,a){var l,o;if(a===pv(t,e,r,n)>0)for(l=e;l=e;l-=n)o=U6(l,t[l],t[l+1],o);return o&&a_(o,o.next)&&(y3(o),o=o.next),o}function ef(t,e){if(!t)return t;e||(e=t);var r=t,n;do if(n=!1,!r.steiner&&(a_(r,r.next)||Ho(r.prev,r,r.next)===0)){if(y3(r),r=e=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==e);return e}function g3(t,e,r,n,a,l,o){if(t){!o&&l&&vN(t,n,a,l);for(var p=t,m,v;t.prev!==t.next;){if(m=t.prev,v=t.next,l?cN(t,n,a,l):uN(t)){e.push(m.i/r|0),e.push(t.i/r|0),e.push(v.i/r|0),y3(t),t=v.next,p=v.next;continue}if(t=v,t===p){o?o===1?(t=hN(ef(t),e,r),g3(t,e,r,n,a,l,2)):o===2&&fN(t,e,r,n,a,l):g3(ef(t),e,r,n,a,l,1);break}}}}function uN(t){var e=t.prev,r=t,n=t.next;if(Ho(e,r,n)>=0)return!1;for(var a=e.x,l=r.x,o=n.x,p=e.y,m=r.y,v=n.y,E=al?a>o?a:o:l>o?l:o,R=p>m?p>v?p:v:m>v?m:v,O=n.next;O!==e;){if(O.x>=E&&O.x<=A&&O.y>=b&&O.y<=R&&op(a,p,l,m,o,v,O.x,O.y)&&Ho(O.prev,O,O.next)>=0)return!1;O=O.next}return!0}function cN(t,e,r,n){var a=t.prev,l=t,o=t.next;if(Ho(a,l,o)>=0)return!1;for(var p=a.x,m=l.x,v=o.x,E=a.y,b=l.y,A=o.y,R=pm?p>v?p:v:m>v?m:v,N=E>b?E>A?E:A:b>A?b:A,W=hv(R,O,e,r,n),G=hv(D,N,e,r,n),Y=t.prevZ,Q=t.nextZ;Y&&Y.z>=W&&Q&&Q.z<=G;){if(Y.x>=R&&Y.x<=D&&Y.y>=O&&Y.y<=N&&Y!==a&&Y!==o&&op(p,E,m,b,v,A,Y.x,Y.y)&&Ho(Y.prev,Y,Y.next)>=0||(Y=Y.prevZ,Q.x>=R&&Q.x<=D&&Q.y>=O&&Q.y<=N&&Q!==a&&Q!==o&&op(p,E,m,b,v,A,Q.x,Q.y)&&Ho(Q.prev,Q,Q.next)>=0))return!1;Q=Q.nextZ}for(;Y&&Y.z>=W;){if(Y.x>=R&&Y.x<=D&&Y.y>=O&&Y.y<=N&&Y!==a&&Y!==o&&op(p,E,m,b,v,A,Y.x,Y.y)&&Ho(Y.prev,Y,Y.next)>=0)return!1;Y=Y.prevZ}for(;Q&&Q.z<=G;){if(Q.x>=R&&Q.x<=D&&Q.y>=O&&Q.y<=N&&Q!==a&&Q!==o&&op(p,E,m,b,v,A,Q.x,Q.y)&&Ho(Q.prev,Q,Q.next)>=0)return!1;Q=Q.nextZ}return!0}function hN(t,e,r){var n=t;do{var a=n.prev,l=n.next.next;!a_(a,l)&&Gb(a,n,n.next,l)&&v3(a,l)&&v3(l,a)&&(e.push(a.i/r|0),e.push(n.i/r|0),e.push(l.i/r|0),y3(n),y3(n.next),n=t=l),n=n.next}while(n!==t);return ef(n)}function fN(t,e,r,n,a,l){var o=t;do{for(var p=o.next.next;p!==o.prev;){if(o.i!==p.i&&bN(o,p)){var m=Zb(o,p);o=ef(o,o.next),m=ef(m,m.next),g3(o,e,r,n,a,l,0),g3(m,e,r,n,a,l,0);return}p=p.next}o=o.next}while(o!==t)}function pN(t,e,r,n){var a=[],l,o,p,m,v;for(l=0,o=e.length;l=r.next.y&&r.next.y!==r.y){var p=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(p<=n&&p>l&&(l=p,o=r.x=r.x&&r.x>=v&&n!==r.x&&op(ao.x||r.x===o.x&&gN(o,r)))&&(o=r,b=A)),r=r.next;while(r!==m);return o}function gN(t,e){return Ho(t.prev,t,e.prev)<0&&Ho(e.next,t,t.next)<0}function vN(t,e,r,n){var a=t;do a.z===0&&(a.z=hv(a.x,a.y,e,r,n)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next;while(a!==t);a.prevZ.nextZ=null,a.prevZ=null,yN(a)}function yN(t){var e,r,n,a,l,o,p,m,v=1;do{for(r=t,t=null,l=null,o=0;r;){for(o++,n=r,p=0,e=0;e0||m>0&&n;)p!==0&&(m===0||!n||r.z<=n.z)?(a=r,r=r.nextZ,p--):(a=n,n=n.nextZ,m--),l?l.nextZ=a:t=a,a.prevZ=l,l=a;r=n}l.nextZ=null,v*=2}while(o>1);return t}function hv(t,e,r,n,a){return t=(t-r)*a|0,e=(e-n)*a|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function xN(t){var e=t,r=t;do(e.x=(t-o)*(l-p)&&(t-o)*(n-p)>=(r-o)*(e-p)&&(r-o)*(l-p)>=(a-o)*(n-p)}function bN(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!EN(t,e)&&(v3(t,e)&&v3(e,t)&&TN(t,e)&&(Ho(t.prev,t,e.prev)||Ho(t,e.prev,e))||a_(t,e)&&Ho(t.prev,t,t.next)>0&&Ho(e.prev,e,e.next)>0)}function Ho(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function a_(t,e){return t.x===e.x&&t.y===e.y}function Gb(t,e,r,n){var a=R0(Ho(t,e,r)),l=R0(Ho(t,e,n)),o=R0(Ho(r,n,t)),p=R0(Ho(r,n,e));return!!(a!==l&&o!==p||a===0&&C0(t,r,e)||l===0&&C0(t,n,e)||o===0&&C0(r,t,n)||p===0&&C0(r,e,n))}function C0(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function R0(t){return t>0?1:t<0?-1:0}function EN(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&Gb(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function v3(t,e){return Ho(t.prev,t,t.next)<0?Ho(t,e,t.next)>=0&&Ho(t,t.prev,e)>=0:Ho(t,e,t.prev)<0||Ho(t,t.next,e)<0}function TN(t,e){var r=t,n=!1,a=(t.x+e.x)/2,l=(t.y+e.y)/2;do r.y>l!=r.next.y>l&&r.next.y!==r.y&&a<(r.next.x-r.x)*(l-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==t);return n}function Zb(t,e){var r=new fv(t.i,t.x,t.y),n=new fv(e.i,e.x,e.y),a=t.next,l=e.prev;return t.next=e,e.prev=t,r.next=a,a.prev=r,n.next=r,r.prev=n,l.next=n,n.prev=l,n}function U6(t,e,r,n){var a=new fv(t,e,r);return n?(a.next=n.next,a.prev=n,n.next.prev=a,n.next=a):(a.prev=a,a.next=a),a}function y3(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function fv(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}o_.deviation=function(t,e,r,n){var a=e&&e.length,l=a?e[0]*r:t.length,o=Math.abs(pv(t,0,l,r));if(a)for(var p=0,m=e.length;p0&&(n+=t[a-1].length,r.holes.push(n))}return r};var AN=g2.exports;const x3=Co(AN);function z6(t){return Math.max(Math.ceil(t/4)*4,4)}function $b(t,e,r,n=!0){const a=r===3;if(n){t=t.slice();const o=[];for(let p=0;p{typeof n[a]=="boolean"&&(n[a]=n[a]?1:0)}),!this.rendererService.hasOwnProperty("device")&&this.textures&&this.textures.length===1&&(n.u_texture=this.textures[0]),n}getAnimateUniforms(){return{}}needUpdate(){return bt(function*(){return!1})()}buildModels(){return bt(function*(){throw new Error("Method not implemented.")})()}initModels(){return bt(function*(){throw new Error("Method not implemented.")})()}clearModels(e=!0){}getAttribute(){throw new Error("Method not implemented.")}prerender(){}render(e){throw new Error("Method not implemented.")}registerBuiltinAttributes(){throw new Error("Method not implemented.")}animateOption2Array(e){return[e.enable?0:1,e.duration||4,e.interval||.2,e.trailLength||.1]}startModelAnimate(){const{animateOption:e}=this.layer.getLayerConfig();e.enable&&this.layer.setAnimateStartTime()}getInject(){return SN(this.layer.enableShaderEncodeStyles,this.layer.encodeStyleAttribute)}getDefines(){const e=Object.keys(this.attributeLocation).reduce((r,n)=>{const a=qb+n;return r[a]=this.attributeLocation[n],r},{});return _t({},e)}getStyleAttribute(){const e={};return this.layer.enableShaderEncodeStyles.forEach(r=>{if(!this.layer.encodeStyleAttribute[r]){const n=this.layer.getLayerConfig()[r];let a=typeof n>"u"?lN[r]:n;r==="stroke"&&(a=Fi(a)),e["u_"+r]=a}}),e}registerStyleAttribute(){Object.keys(this.layer.encodeStyleAttribute).forEach(e=>{const r=WF(e);r&&this.styleAttributeService.registerStyleAttribute(r)})}registerPosition64LowAttribute(e=!0){this.styleAttributeService.registerStyleAttribute({name:"position64Low",type:Lr.Attribute,descriptor:{name:"a_Position64Low",shaderLocation:this.attributeLocation.POSITION_64LOW,buffer:{data:[],type:H.FLOAT},size:2,update:(r,n,a)=>e?[ma(a[0]),ma(a[1])]:[0,0]}})}updateEncodeAttribute(e,r){this.encodeStyleAttribute[e]=r}initUniformsBuffer(){const e=this.getUniformsBufferInfo(this.getStyleAttribute()),r=this.getCommonUniformsInfo();e.uniformsLength!==0&&(this.attributeUnifoms=this.rendererService.createBuffer({data:new Float32Array(z6(e.uniformsLength)).fill(0),isUBO:!0,label:"layerModelAttributeUnifoms"}),this.uniformBuffers.push(this.attributeUnifoms)),r.uniformsLength!==0&&(this.commonUnifoms=this.rendererService.createBuffer({data:new Float32Array(z6(r.uniformsLength)).fill(0),isUBO:!0,label:"layerModelCommonUnifoms"}),this.uniformBuffers.push(this.commonUnifoms))}getUniformsBufferInfo(e){let r=0;const n=[];return Object.values(e).forEach(a=>{Array.isArray(a)?(n.push(...a),r+=a.length):typeof a=="number"?(n.push(a),r+=1):typeof a=="boolean"&&(n.push(Number(a)),r+=1)}),{uniformsOption:e,uniformsLength:r,uniformsArray:n}}getCommonUniformsInfo(){return{uniformsLength:0,uniformsArray:[],uniformsOption:{}}}updateStyleUnifoms(){var e,r;const{uniformsArray:n}=this.getUniformsBufferInfo(this.getStyleAttribute()),{uniformsArray:a}=this.getCommonUniformsInfo();(e=this.attributeUnifoms)===null||e===void 0||e.subData({offset:0,data:new Uint8Array(new Float32Array(n).buffer)}),(r=this.commonUnifoms)===null||r===void 0||r.subData({offset:0,data:new Uint8Array(new Float32Array(a).buffer)})}}function SN(t,e){const r=[];let n="";t.forEach(o=>{const p=o.replace(/([a-z])([A-Z])/g,"$1_$2").toUpperCase(),m=qb+p;e[o]?n+=`#define USE_ATTRIBUTE_${p} 0.0 `:r.push(` ${w0[o]} u_${o};`),n+=` #ifdef USE_ATTRIBUTE_${p} layout(location = ${m}) in ${w0[o]} a_${o.charAt(0).toUpperCase()+o.slice(1)}; @@ -1010,7 +1010,7 @@ layout(std140) uniform AttributeUniforms { #else ${w0[o]} ${o} = u_${o}; #endif - `}),{"vs:#decl":n,"fs:#decl":a,"vs:#main-start":l}}let V6=function(t){return t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t}({}),IN=function(t){return t.NORMAL="normal",t.REPLACE="replace",t}({}),v2=function(t){return t[t.pixel=0]="pixel",t[t.meter=1]="meter",t}({});const Yb=100;function H6(t){return t/180*Math.acos(-1)}function Kb(t){const e=H6(t[0])+Math.PI/2,r=H6(t[1]),n=Yb+Math.random()*.4,a=n*Math.cos(r)*Math.cos(e),l=n*Math.cos(r)*Math.sin(e),o=n*Math.sin(r);return[l,o,a]}const j6=Al();Al();const Jl=Al(),Sd=Al(),I0=Al();function X6(t,e,r,n,a){X1(t,r,n),cm(t,t),e=Ig(-t[1],t[0]);const l=Ig(-r[1],r[0]);return[a/Mg(e,l),e]}function wd(t,e){return oT(t,-e[1],e[0])}function M0(t,e,r){return P8(t,e,r),cm(t,t),t}function W6(t,e){return t[0]===e[0]&&t[1]===e[1]}class MN{constructor(e={}){I(this,"complex",void 0),I(this,"join",void 0),I(this,"cap",void 0),I(this,"miterLimit",void 0),I(this,"thickness",void 0),I(this,"normal",void 0),I(this,"lastFlip",-1),I(this,"miter",Ig(0,0)),I(this,"started",!1),I(this,"dash",!1),I(this,"totalDistance",0),I(this,"currentIndex",0),this.join=e.join||"miter",this.cap=e.cap||"butt",this.miterLimit=e.miterLimit||10,this.thickness=e.thickness||1,this.dash=e.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}simpleExtrude(e){const r=this.complex;if(e.length<=1)return r;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;const n=e.length;let a=r.startIndex;for(let l=1;lthis.miterLimit&&(Y=!0),Y?(v.push(this.normal[0],this.normal[1],0),v.push(W[0],W[1],0),m.push(a[0],a[1],a[2]|0,this.totalDistance,-this.thickness*G,a[2]|0),this.complex.indexes.push(this.currentIndex),m.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness*G,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,p.push(...this.lastFlip!==-G?[r,r+2,r+3]:[r+2,r+1,r+3]),p.push(r+2,r+3,r+4),wd(j6,Sd),V_(this.normal,j6),v.push(this.normal[0],this.normal[1],0),m.push(a[0],a[1],a[2]|0,this.totalDistance,-this.thickness*G,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,o+=3):(this.extrusions(m,v,a,W,N,this.totalDistance),p.push(...this.lastFlip===1?[r,r+2,r+3]:[r+2,r+1,r+3]),G=-1,V_(this.normal,W),o+=2),this.lastFlip=G}else{if(wd(this.normal,Jl),E){const D=Al(),N=Al();P8(N,Jl,this.normal),X1(D,Jl,this.normal),v.push(N[0],N[1],0),v.push(D[0],D[1],0),m.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),m.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(m,v,a,this.normal,this.thickness,this.totalDistance);p.push(...this.lastFlip===1?[r,r+2,r+3]:[r+2,r+1,r+3]),o+=2}return o}extrusions(e,r,n,a,l,o){r.push(a[0],a[1],0),r.push(a[0],a[1],0),e.push(n[0],n[1],n[2]|0,o,-l,n[2]|0),this.complex.indexes.push(this.currentIndex),e.push(n[0],n[1],n[2]|0,o,l,n[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}lineSegmentDistance(e,r){const n=r[0]-e[0],a=r[1]-e[1];return Math.sqrt(n*n+a*a)}}let Cd=function(t){return t.CYLINDER="cylinder",t.SQUARECOLUMN="squareColumn",t.TRIANGLECOLUMN="triangleColumn",t.HEXAGONCOLUMN="hexagonColumn",t.PENTAGONCOLUMN="pentagonColumn",t}({}),Rd=function(t){return t.CIRCLE="circle",t.SQUARE="square",t.TRIANGLE="triangle",t.HEXAGON="hexagon",t.PENTAGON="pentagon",t}({});function M3(t,e=0){const r=Math.PI*2/t,n=[];for(let l=0;l{const o=Math.sin(l+Math.PI/4),p=Math.cos(l+Math.PI/4);return[o,p,0]})}function dv(){return M3(30)}function G6(){return M3(4)}function Z6(){return M3(3)}function $6(){return M3(6,1)}function q6(){return M3(5)}const mg={[Rd.CIRCLE]:dv,[Rd.HEXAGON]:$6,[Rd.TRIANGLE]:Z6,[Rd.SQUARE]:G6,[Rd.PENTAGON]:q6,[Cd.CYLINDER]:dv,[Cd.HEXAGONCOLUMN]:$6,[Cd.TRIANGLECOLUMN]:Z6,[Cd.SQUARECOLUMN]:G6,[Cd.PENTAGONCOLUMN]:q6};function Qb(t,e=!1){const r=t[0][0],n=t[0][t[0].length-1];r[0]===n[0]&&r[1]===n[1]&&(t[0]=t[0].slice(0,t[0].length-1));const a=t[0].length,l=x3.flatten(t),{vertices:o,dimensions:p,holes:m}=l,v=[],E=[],b=[];for(let R=0;RG+N))}return{positions:v,index:E,normals:b}}function PN(t,e,r,n=!1){const a=v0(),l=v0(),o=v0();n&&(t=q0(t),e=q0(e),r=q0(r));const p=Rs(...t),m=Rs(...e),v=Rs(...r);k4(a,v,m),k4(l,p,m),aT(o,a,l);const E=v0();return Ud(E,o),E}const P0={};function $h(t){const e=Kh(t.coordinates);return{vertices:[...e,...e,...e,...e],indices:[0,1,2,2,3,0],size:e.length}}function Y6(t){const e=Kh(t.coordinates),r=Kb(e);return{vertices:[...r,...r,...r,...r],indices:[0,1,2,2,3,0],size:r.length}}function Jb(t){const{shape:e}=t,{positions:r,index:n,normals:a}=NN(e,!1);return{vertices:r,indices:n,normals:a,size:5}}function ON(t){const e=Kh(t.coordinates);return{vertices:[...e],indices:[0],size:e.length}}function mv(t){const{coordinates:e}=t,r=new MN({dash:!0,join:"bevel"});let n=e;n[0]&&!Array.isArray(n[0][0])&&(n=[e]),n.forEach(l=>{r.extrude(l)});const a=r.complex;return{vertices:a.positions,indices:a.indices,normals:a.normals,indexes:a.indexes,size:6}}function LN(t){const{coordinates:e}=t,r=[];if(!Array.isArray(e[0]))return{vertices:[],indices:[],normals:[],size:6,count:0};const{results:n,totalDistance:a}=DN(e);return n.map(l=>{r.push(l[0],l[1],l[2],l[3],0,a)}),{vertices:r,indices:[],normals:[],size:6,count:n.length}}function K6(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function _g(t,e){return t.length<3&&t.push(0),e!==void 0&&t.push(e),t}function DN(t){let e=t;Array.isArray(e)&&Array.isArray(e[0])&&Array.isArray(e[0][0])&&(e=t.flat());let r=0;if(e.length<2)return{results:e,totalDistance:0};{const n=[],a=_g(e[0],r);n.push(a);for(let o=1;oo*2+p));return{vertices:a,indices:l,size:7}}function NN(t,e=!1){if(P0&&P0[t])return P0[t];const r=mg[t]?mg[t]():mg.cylinder(),n=Qb([r],e);return P0[t]=n,n}function kN(t,e){return{type:t.type,field:"value",items:t.positions.map((r,n)=>({[e]:n>=t.colors.length?null:t.colors[n],value:r}))}}const UN=`uniform sampler2D u_texture; + `}),{"vs:#decl":n,"fs:#decl":a,"vs:#main-start":l}}let V6=function(t){return t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t}({}),wN=function(t){return t.NORMAL="normal",t.REPLACE="replace",t}({}),v2=function(t){return t[t.pixel=0]="pixel",t[t.meter=1]="meter",t}({});const Yb=100;function H6(t){return t/180*Math.acos(-1)}function Kb(t){const e=H6(t[0])+Math.PI/2,r=H6(t[1]),n=Yb+Math.random()*.4,a=n*Math.cos(r)*Math.cos(e),l=n*Math.cos(r)*Math.sin(e),o=n*Math.sin(r);return[l,o,a]}const j6=Al();Al();const Jl=Al(),Sd=Al(),I0=Al();function X6(t,e,r,n,a){X1(t,r,n),cm(t,t),e=Ig(-t[1],t[0]);const l=Ig(-r[1],r[0]);return[a/Mg(e,l),e]}function wd(t,e){return nT(t,-e[1],e[0])}function M0(t,e,r){return P8(t,e,r),cm(t,t),t}function W6(t,e){return t[0]===e[0]&&t[1]===e[1]}class CN{constructor(e={}){I(this,"complex",void 0),I(this,"join",void 0),I(this,"cap",void 0),I(this,"miterLimit",void 0),I(this,"thickness",void 0),I(this,"normal",void 0),I(this,"lastFlip",-1),I(this,"miter",Ig(0,0)),I(this,"started",!1),I(this,"dash",!1),I(this,"totalDistance",0),I(this,"currentIndex",0),this.join=e.join||"miter",this.cap=e.cap||"butt",this.miterLimit=e.miterLimit||10,this.thickness=e.thickness||1,this.dash=e.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}simpleExtrude(e){const r=this.complex;if(e.length<=1)return r;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;const n=e.length;let a=r.startIndex;for(let l=1;lthis.miterLimit&&(Y=!0),Y?(v.push(this.normal[0],this.normal[1],0),v.push(W[0],W[1],0),m.push(a[0],a[1],a[2]|0,this.totalDistance,-this.thickness*G,a[2]|0),this.complex.indexes.push(this.currentIndex),m.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness*G,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,p.push(...this.lastFlip!==-G?[r,r+2,r+3]:[r+2,r+1,r+3]),p.push(r+2,r+3,r+4),wd(j6,Sd),V_(this.normal,j6),v.push(this.normal[0],this.normal[1],0),m.push(a[0],a[1],a[2]|0,this.totalDistance,-this.thickness*G,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,o+=3):(this.extrusions(m,v,a,W,N,this.totalDistance),p.push(...this.lastFlip===1?[r,r+2,r+3]:[r+2,r+1,r+3]),G=-1,V_(this.normal,W),o+=2),this.lastFlip=G}else{if(wd(this.normal,Jl),E){const D=Al(),N=Al();P8(N,Jl,this.normal),X1(D,Jl,this.normal),v.push(N[0],N[1],0),v.push(D[0],D[1],0),m.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),m.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(m,v,a,this.normal,this.thickness,this.totalDistance);p.push(...this.lastFlip===1?[r,r+2,r+3]:[r+2,r+1,r+3]),o+=2}return o}extrusions(e,r,n,a,l,o){r.push(a[0],a[1],0),r.push(a[0],a[1],0),e.push(n[0],n[1],n[2]|0,o,-l,n[2]|0),this.complex.indexes.push(this.currentIndex),e.push(n[0],n[1],n[2]|0,o,l,n[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}lineSegmentDistance(e,r){const n=r[0]-e[0],a=r[1]-e[1];return Math.sqrt(n*n+a*a)}}let Cd=function(t){return t.CYLINDER="cylinder",t.SQUARECOLUMN="squareColumn",t.TRIANGLECOLUMN="triangleColumn",t.HEXAGONCOLUMN="hexagonColumn",t.PENTAGONCOLUMN="pentagonColumn",t}({}),Rd=function(t){return t.CIRCLE="circle",t.SQUARE="square",t.TRIANGLE="triangle",t.HEXAGON="hexagon",t.PENTAGON="pentagon",t}({});function M3(t,e=0){const r=Math.PI*2/t,n=[];for(let l=0;l{const o=Math.sin(l+Math.PI/4),p=Math.cos(l+Math.PI/4);return[o,p,0]})}function dv(){return M3(30)}function G6(){return M3(4)}function Z6(){return M3(3)}function $6(){return M3(6,1)}function q6(){return M3(5)}const mg={[Rd.CIRCLE]:dv,[Rd.HEXAGON]:$6,[Rd.TRIANGLE]:Z6,[Rd.SQUARE]:G6,[Rd.PENTAGON]:q6,[Cd.CYLINDER]:dv,[Cd.HEXAGONCOLUMN]:$6,[Cd.TRIANGLECOLUMN]:Z6,[Cd.SQUARECOLUMN]:G6,[Cd.PENTAGONCOLUMN]:q6};function Qb(t,e=!1){const r=t[0][0],n=t[0][t[0].length-1];r[0]===n[0]&&r[1]===n[1]&&(t[0]=t[0].slice(0,t[0].length-1));const a=t[0].length,l=x3.flatten(t),{vertices:o,dimensions:p,holes:m}=l,v=[],E=[],b=[];for(let R=0;RG+N))}return{positions:v,index:E,normals:b}}function RN(t,e,r,n=!1){const a=v0(),l=v0(),o=v0();n&&(t=q0(t),e=q0(e),r=q0(r));const p=Rs(...t),m=Rs(...e),v=Rs(...r);k4(a,v,m),k4(l,p,m),iT(o,a,l);const E=v0();return Ud(E,o),E}const P0={};function $h(t){const e=Kh(t.coordinates);return{vertices:[...e,...e,...e,...e],indices:[0,1,2,2,3,0],size:e.length}}function Y6(t){const e=Kh(t.coordinates),r=Kb(e);return{vertices:[...r,...r,...r,...r],indices:[0,1,2,2,3,0],size:r.length}}function Jb(t){const{shape:e}=t,{positions:r,index:n,normals:a}=DN(e,!1);return{vertices:r,indices:n,normals:a,size:5}}function IN(t){const e=Kh(t.coordinates);return{vertices:[...e],indices:[0],size:e.length}}function mv(t){const{coordinates:e}=t,r=new CN({dash:!0,join:"bevel"});let n=e;n[0]&&!Array.isArray(n[0][0])&&(n=[e]),n.forEach(l=>{r.extrude(l)});const a=r.complex;return{vertices:a.positions,indices:a.indices,normals:a.normals,indexes:a.indexes,size:6}}function MN(t){const{coordinates:e}=t,r=[];if(!Array.isArray(e[0]))return{vertices:[],indices:[],normals:[],size:6,count:0};const{results:n,totalDistance:a}=PN(e);return n.map(l=>{r.push(l[0],l[1],l[2],l[3],0,a)}),{vertices:r,indices:[],normals:[],size:6,count:n.length}}function K6(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function _g(t,e){return t.length<3&&t.push(0),e!==void 0&&t.push(e),t}function PN(t){let e=t;Array.isArray(e)&&Array.isArray(e[0])&&Array.isArray(e[0][0])&&(e=t.flat());let r=0;if(e.length<2)return{results:e,totalDistance:0};{const n=[],a=_g(e[0],r);n.push(a);for(let o=1;oo*2+p));return{vertices:a,indices:l,size:7}}function DN(t,e=!1){if(P0&&P0[t])return P0[t];const r=mg[t]?mg[t]():mg.cylinder(),n=Qb([r],e);return P0[t]=n,n}function BN(t,e){return{type:t.type,field:"value",items:t.positions.map((r,n)=>({[e]:n>=t.colors.length?null:t.colors[n],value:r}))}}const FN=`uniform sampler2D u_texture; layout(std140) uniform commonUniforms { float u_opacity:1.0; float u_brightness:1.0; @@ -1048,7 +1048,7 @@ void main() { if(outputColor.a < 0.01) discard; } -`,zN=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,NN=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_UV) in vec2 a_Uv; @@ -1068,7 +1068,7 @@ void main() { vec4 project_pos = project_position(vec4(a_Position, 1.0), a_Position64Low); gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, 0.0, 1.0)); } -`;let VN=class extends qi{constructor(...e){super(...e),I(this,"texture",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,UV:9})}getCommonUniformsInfo(){const{opacity:e,brightness:r,contrast:n,saturation:a,gamma:l}=this.layer.getLayerConfig(),o={u_opacity:_d(e,1),u_brightness:_d(r,1),u_contrast:_d(n,1),u_saturation:_d(a,1),u_gamma:_d(l,1)};return this.textures=[this.texture],this.getUniformsBufferInfo(o)}initModels(){var e=this;return bt(function*(){return yield e.loadTexture(),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy()}loadTexture(){var e=this;return bt(function*(){const{createTexture2D:r}=e.rendererService,a=yield e.layer.getSource().data.images;e.texture=r({data:a[0],width:a[0].width,height:a[0].height,mag:H.LINEAR,min:H.LINEAR})})()}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"rasterImage",vertexShader:zN,fragmentShader:UN,defines:e.getDefines(),triangulation:s_,primitive:H.TRIANGLES,blend:{enable:!0},depth:{enable:!1},pickingEnabled:!1})]})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_Uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:(e,r,n)=>[n[3],n[4]]}})}};const HN={image:VN},jN=HN;class XN extends Np{constructor(...e){super(...e),I(this,"type","ImageLayer")}buildModels(){var e=this;return bt(function*(){const r=e.getModelType();e.layerModel=new jN[r](e),yield e.initLayerModels()})()}getDefaultConfig(){const e=this.getModelType();return{image:{}}[e]}getModelType(){return"image"}}const WN=` +`;let kN=class extends qi{constructor(...e){super(...e),I(this,"texture",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,UV:9})}getCommonUniformsInfo(){const{opacity:e,brightness:r,contrast:n,saturation:a,gamma:l}=this.layer.getLayerConfig(),o={u_opacity:_d(e,1),u_brightness:_d(r,1),u_contrast:_d(n,1),u_saturation:_d(a,1),u_gamma:_d(l,1)};return this.textures=[this.texture],this.getUniformsBufferInfo(o)}initModels(){var e=this;return bt(function*(){return yield e.loadTexture(),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy()}loadTexture(){var e=this;return bt(function*(){const{createTexture2D:r}=e.rendererService,a=yield e.layer.getSource().data.images;e.texture=r({data:a[0],width:a[0].width,height:a[0].height,mag:H.LINEAR,min:H.LINEAR})})()}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"rasterImage",vertexShader:NN,fragmentShader:FN,defines:e.getDefines(),triangulation:s_,primitive:H.TRIANGLES,blend:{enable:!0},depth:{enable:!1},pickingEnabled:!1})]})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_Uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:(e,r,n)=>[n[3],n[4]]}})}};const UN={image:kN},zN=UN;class VN extends Np{constructor(...e){super(...e),I(this,"type","ImageLayer")}buildModels(){var e=this;return bt(function*(){const r=e.getModelType();e.layerModel=new zN[r](e),yield e.initLayerModels()})()}getDefaultConfig(){const e=this.getModelType();return{image:{}}[e]}getModelType(){return"image"}}const HN=` #define Animate 0.0 #define LineTexture 1.0 uniform sampler2D u_texture; @@ -1159,7 +1159,7 @@ void main() { } else { outputColor = filterColor(outputColor); } -}`,GN=`#define Animate (0.0) +}`,jN=`#define Animate (0.0) #define LineTexture (1.0) layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; @@ -1315,7 +1315,7 @@ void main() { setPickingColor(a_PickingColor); } -`,ZN={solid:0,dash:1};class $N extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.texture){this.texture.update({data:this.iconService.getCanvas()}),this.layer.render();return}this.texture=r({data:this.iconService.getCanvas(),mag:H.NEAREST,min:H.NEAREST,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128}),this.textures=[this.texture]})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,INSTANCE:10,INSTANCE_64LOW:11,UV:12,THETA_OFFSET:13})}getCommonUniformsInfo(){const{sourceColor:e,targetColor:r,textureBlend:n="normal",lineType:a="solid",dashArray:l=[10,5],forward:o=!0,lineTexture:p=!1,iconStep:m=100,segmentNumber:v=30}=this.layer.getLayerConfig(),{animateOption:E}=this.layer.getLayerConfig();let b=l;a!=="dash"&&(b=[0,0]),b.length===2&&b.push(0,0);let A=0,R=[0,0,0,0],O=[0,0,0,0];if(e&&r&&(R=Fi(e),O=Fi(r),A=1),this.rendererService.getDirty()){var D;(D=this.texture)===null||D===void 0||D.bind()}const N={u_animate:this.animateOption2Array(E),u_dash_array:b,u_sourceColor:R,u_targetColor:O,u_textSize:[1024,this.iconService.canvasHeight||128],segmentNumber:v,u_lineDir:o?1:-1,u_icon_step:m,u_line_texture:p?1:0,u_textureBlend:n==="normal"?0:1,u_blur:.9,u_line_type:ZN[a||"solid"],u_time:this.layer.getLayerAnimateTime()||0,u_linearColor:A};return this.getUniformsBufferInfo(N)}initModels(){var e=this;return bt(function*(){return e.updateTexture(),e.iconService.on("imageUpdate",e.updateTexture),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}getShaders(){return{frag:WN,vert:GN,type:""}}buildModels(){var e=this;return bt(function*(){e.initUniformsBuffer();const{segmentNumber:r=30}=e.layer.getLayerConfig(),{frag:n,vert:a,type:l}=e.getShaders();return[yield e.layer.buildLayerModel({moduleName:"lineArc2d"+l,vertexShader:a,fragmentShader:n,defines:e.getDefines(),inject:e.getInject(),triangulation:y2,depth:{enable:!1},styleOption:{segmentNumber:r}})]})()}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0]]:[r]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:Lr.Attribute,descriptor:{name:"a_Instance",shaderLocation:this.attributeLocation.INSTANCE,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[n[3],n[4],n[5],n[6]]}}),this.styleAttributeService.registerStyleAttribute({name:"instance64Low",type:Lr.Attribute,descriptor:{name:"a_Instance64Low",shaderLocation:this.attributeLocation.INSTANCE_64LOW,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[ma(n[3]),ma(n[4]),ma(n[5]),ma(n[6])]}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_iconMapUV",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{texture:n}=e,{x:a,y:l}=r[n]||{x:0,y:0};return[a,l]}}}),this.styleAttributeService.registerStyleAttribute({name:"thetaOffset",type:Lr.Attribute,descriptor:{name:"a_ThetaOffset",shaderLocation:this.attributeLocation.THETA_OFFSET,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{thetaOffset:r=1}=e;return[r]}}})}}const qN=`#define LineTypeSolid 0.0 +`,XN={solid:0,dash:1};class WN extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.texture){this.texture.update({data:this.iconService.getCanvas()}),this.layer.render();return}this.texture=r({data:this.iconService.getCanvas(),mag:H.NEAREST,min:H.NEAREST,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128}),this.textures=[this.texture]})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,INSTANCE:10,INSTANCE_64LOW:11,UV:12,THETA_OFFSET:13})}getCommonUniformsInfo(){const{sourceColor:e,targetColor:r,textureBlend:n="normal",lineType:a="solid",dashArray:l=[10,5],forward:o=!0,lineTexture:p=!1,iconStep:m=100,segmentNumber:v=30}=this.layer.getLayerConfig(),{animateOption:E}=this.layer.getLayerConfig();let b=l;a!=="dash"&&(b=[0,0]),b.length===2&&b.push(0,0);let A=0,R=[0,0,0,0],O=[0,0,0,0];if(e&&r&&(R=Fi(e),O=Fi(r),A=1),this.rendererService.getDirty()){var D;(D=this.texture)===null||D===void 0||D.bind()}const N={u_animate:this.animateOption2Array(E),u_dash_array:b,u_sourceColor:R,u_targetColor:O,u_textSize:[1024,this.iconService.canvasHeight||128],segmentNumber:v,u_lineDir:o?1:-1,u_icon_step:m,u_line_texture:p?1:0,u_textureBlend:n==="normal"?0:1,u_blur:.9,u_line_type:XN[a||"solid"],u_time:this.layer.getLayerAnimateTime()||0,u_linearColor:A};return this.getUniformsBufferInfo(N)}initModels(){var e=this;return bt(function*(){return e.updateTexture(),e.iconService.on("imageUpdate",e.updateTexture),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}getShaders(){return{frag:HN,vert:jN,type:""}}buildModels(){var e=this;return bt(function*(){e.initUniformsBuffer();const{segmentNumber:r=30}=e.layer.getLayerConfig(),{frag:n,vert:a,type:l}=e.getShaders();return[yield e.layer.buildLayerModel({moduleName:"lineArc2d"+l,vertexShader:a,fragmentShader:n,defines:e.getDefines(),inject:e.getInject(),triangulation:y2,depth:{enable:!1},styleOption:{segmentNumber:r}})]})()}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0]]:[r]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:Lr.Attribute,descriptor:{name:"a_Instance",shaderLocation:this.attributeLocation.INSTANCE,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[n[3],n[4],n[5],n[6]]}}),this.styleAttributeService.registerStyleAttribute({name:"instance64Low",type:Lr.Attribute,descriptor:{name:"a_Instance64Low",shaderLocation:this.attributeLocation.INSTANCE_64LOW,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[ma(n[3]),ma(n[4]),ma(n[5]),ma(n[6])]}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_iconMapUV",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{texture:n}=e,{x:a,y:l}=r[n]||{x:0,y:0};return[a,l]}}}),this.styleAttributeService.registerStyleAttribute({name:"thetaOffset",type:Lr.Attribute,descriptor:{name:"a_ThetaOffset",shaderLocation:this.attributeLocation.THETA_OFFSET,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{thetaOffset:r=1}=e;return[r]}}})}}const GN=`#define LineTypeSolid 0.0 #define LineTypeDash 1.0 #define Animate 0.0 #define LineTexture 1.0 @@ -1423,7 +1423,7 @@ void main() { outputColor = filterColor(outputColor); } } -`,YN=`#define LineTypeSolid 0.0 +`,ZN=`#define LineTypeSolid 0.0 #define LineTypeDash 1.0 #define Animate 0.0 #define LineTexture 1.0 @@ -1600,7 +1600,7 @@ void main() { setPickingColor(a_PickingColor); } -`,KN={solid:0,dash:1};class Q6 extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.texture){this.texture.update({data:this.iconService.getCanvas()}),this.layer.render();return}this.texture=r({data:this.iconService.getCanvas(),mag:H.NEAREST,min:H.NEAREST,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128}),this.textures=[this.texture]})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,INSTANCE:10,INSTANCE_64LOW:11,UV:12,THETA_OFFSET:13})}getCommonUniformsInfo(){const{sourceColor:e,targetColor:r,textureBlend:n="normal",lineType:a="solid",dashArray:l=[10,5],lineTexture:o=!1,iconStep:p=100,segmentNumber:m=30,globalArcHeight:v=10}=this.layer.getLayerConfig(),{animateOption:E}=this.layer.getLayerConfig();l.length===2&&l.push(0,0);let b=0,A=[0,0,0,0],R=[0,0,0,0];if(e&&r&&(A=Fi(e),R=Fi(r),b=1),this.rendererService.getDirty()){var O;(O=this.texture)===null||O===void 0||O.bind()}const D={u_animate:this.animateOption2Array(E),u_dash_array:l,u_sourceColor:A,u_targetColor:R,u_textSize:[1024,this.iconService.canvasHeight||128],u_globel:this.mapService.version==="GLOBEL"?1:0,u_globel_radius:Yb,u_global_height:v,segmentNumber:m,u_line_type:KN[a]||0,u_icon_step:p,u_line_texture:o?1:0,u_textureBlend:n==="normal"?0:1,u_time:this.layer.getLayerAnimateTime()||0,u_linearColor:b};return this.getUniformsBufferInfo(D)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.updateTexture(),e.iconService.on("imageUpdate",e.updateTexture),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}getShaders(){return{frag:qN,vert:YN,type:""}}buildModels(){var e=this;return bt(function*(){const{segmentNumber:r=30}=e.layer.getLayerConfig(),{frag:n,vert:a,type:l}=e.getShaders();return[yield e.layer.buildLayerModel({moduleName:"lineArc3d"+l,vertexShader:a,fragmentShader:n,defines:e.getDefines(),inject:e.getInject(),triangulation:y2,styleOption:{segmentNumber:r}})]})()}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0]]:[r]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:Lr.Attribute,descriptor:{name:"a_Instance",shaderLocation:this.attributeLocation.INSTANCE,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[n[3],n[4],n[5],n[6]]}}),this.styleAttributeService.registerStyleAttribute({name:"instance64Low",type:Lr.Attribute,descriptor:{name:"a_Instance64Low",shaderLocation:this.attributeLocation.INSTANCE_64LOW,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[ma(n[3]),ma(n[4]),ma(n[5]),ma(n[6])]}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_iconMapUV",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{texture:n}=e,{x:a,y:l}=r[n]||{x:0,y:0};return[a,l]}}}),this.styleAttributeService.registerStyleAttribute({name:"thetaOffset",type:Lr.Attribute,descriptor:{name:"a_ThetaOffset",shaderLocation:this.attributeLocation.THETA_OFFSET,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{thetaOffset:r=1}=e;return[r]}}})}}const J6={circle:2,triangle:2,diamond:4,rect:2,classic:3,halfTriangle:2,none:0},tl=1/2;function QN(t,e){const{width:r=2,height:n=1}=e;return{vertices:[0,tl*t,1*t*r,-(n+tl)*t,1*t*r,(n-tl)*t,0,tl*t,1*t*r,-(n+tl)*t,1*t*r,(n-tl)*t],indices:[3,4,5],outLineIndices:[0,1,2],normals:[1*t,-2*t,1,-2*t,1.5*t,1,1*t,1.5*t,1,0,0,0,0,0,0,0,0,0],dimensions:2}}function JN(t,e){const{width:r=2,height:n=3}=e;return{vertices:[0,0,1*t*r,1*n,1*t*r,-1*n,0,0,1*t*r,1*n,1*t*r,-1*n],outLineIndices:[0,1,2],indices:[3,4,5],normals:[0,-1.5*t,1,2,1*t,1,-2,1*t,1,0,0,0,0,0,0,0,0,0],dimensions:2}}function ek(t,e){const{width:r=2,height:n=2}=e;return{vertices:[0,n/2,t*r*1,n/2,t*r*1,-n/2,0,-n/2,0,n/2,t*r*1,n/2,t*r*1,-n/2,0,-n/2],dimensions:2,indices:[4,5,6,4,6,7],outLineIndices:[0,1,2,0,2,3],normals:[0,-t,1,1,0,1,0,-t,1,-1,-0,1,0,0,0,0,0,0,0,0,0,0,0,0]}}function tk(t,e){const{width:r=2,height:n=3}=e;return{vertices:[0,0,1*r*t,.5*n,2*r*t,0,1*r*t,-.5*n,0,0,1*r*t,.5*n,2*r*t,0,1*r*t,-.5*n],dimensions:2,indices:[4,5,6,4,6,7],outLineIndices:[0,1,2,0,2,3],normals:[0,-t,1,1,0,1,0,-t,1,-1,-0,1,0,0,0,0,0,0,0,0,0,0,0,0]}}function rk(t,e){const{width:r=2,height:n=3}=e;return{vertices:[0,0,2*t*r,1*n,1.5*t*r,0,2*t*r,-1*n,0,0,2*t*r,1*n,1.5*t*r,0,2*t*r,-1*n],dimensions:2,indices:[4,5,6,4,6,7],outLineIndices:[0,1,2,0,2,3],normals:[0,-t,1,1,0,1,0,-t,1,-1,-0,1,0,0,0,0,0,0,0,0,0,0,0,0]}}function nk(t,e){const{width:r=2,height:n=2}=e,a=dv(),l=x3.flatten([a]),o=x3(l.vertices,l.holes,l.dimensions),p=a.map(m=>[m[0]*r*t,m[1]*n]).flat();return{vertices:[...p,...p],dimensions:2,indices:o.map(m=>m+a.length),outLineIndices:o,normals:[...a.map(m=>[m[1]*n,m[0]*r*t,1]).flat(),...new Array(a.length*3).fill(0)]}}function ik(t,e=0,r){const n=typeof r.source=="object"?r.source.type:r.source,a=typeof r.target=="object"?r.target.type:r.target,{width:l=n?J6[n]:0}=typeof r.source=="object"?r.source:{},{width:o=a?J6[a]:0}=typeof r.target=="object"?r.target:{};return{vertices:[0,tl,1*l,...t,1,tl,-1*o,...t,1,-tl,-1*o,...t,0,-tl,1*l,...t,0,tl,1*l,...t,1,tl,-1*o,...t,1,-tl,-1*o,...t,0,-tl,1*l,...t],outLineIndices:[0,1,2,0,2,3].map(p=>p+e),indices:[4,5,6,4,6,7].map(p=>p+e),normals:[1,-1,1,1,1,1,-1,0,1,-1,0,1,0,0,0,0,0,0,0,0,0,0,0,0],dimensions:2}}function ex(t,e){const r=typeof t=="object"?t.type:t,n=e==="source"?1:-1,a=typeof t=="object"?t:{};switch(r){case"circle":return nk(n,a);case"triangle":return JN(n,a);case"diamond":return tk(n,a);case"rect":return ek(n,a);case"classic":return rk(n,a);case"halfTriangle":return QN(n,a);default:return{vertices:[],indices:[],normals:[],dimensions:2,outLineIndices:[],outLineNormals:[]}}}function ok(t){const e=t.coordinates.flat(),r=1,n=1;return{vertices:[1,0,0,...e,1,2,-3,...e,1,1,-3,...e,0,1,0,...e,0,0,0,...e,1,0,0,...e,1,2,-3,...e,1,1,-3,...e,0,1,0,...e,0,0,0,...e],normals:[-r,2*n,1,2*n,-n,1,n,-n,1,n,-n,1,-r,-n,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],indices:[0,1,2,0,2,3,0,3,4,5,6,7,5,7,8,5,8,9],size:7}}function ak(t,e){return e?sk(t,e):ok(t)}function sk(t,e){const r=t.coordinates.flat(),{target:n="classic",source:a="circle"}=e,l=tx(ex(a,"source"),r,0,0),o=ik(r,l.vertices.length/7,e),p=tx(ex(n,"target"),r,1,l.vertices.length/7+o.vertices.length/7);return{vertices:[...l.vertices,...o.vertices,...p.vertices],indices:[...l.outLineIndices,...o.outLineIndices,...p.outLineIndices,...l.indices,...o.indices,...p.indices],normals:[...l.normals,...o.normals,...p.normals],size:7}}function tx(t,e,r=1,n=0){const a=[],{vertices:l,indices:o,dimensions:p,outLineIndices:m}=t;for(let v=0;vv+n),outLineIndices:m.map(v=>v+n)})}const lk=`// #extension GL_OES_standard_derivatives : enable +`,$N={solid:0,dash:1};class Q6 extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.texture){this.texture.update({data:this.iconService.getCanvas()}),this.layer.render();return}this.texture=r({data:this.iconService.getCanvas(),mag:H.NEAREST,min:H.NEAREST,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128}),this.textures=[this.texture]})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,INSTANCE:10,INSTANCE_64LOW:11,UV:12,THETA_OFFSET:13})}getCommonUniformsInfo(){const{sourceColor:e,targetColor:r,textureBlend:n="normal",lineType:a="solid",dashArray:l=[10,5],lineTexture:o=!1,iconStep:p=100,segmentNumber:m=30,globalArcHeight:v=10}=this.layer.getLayerConfig(),{animateOption:E}=this.layer.getLayerConfig();l.length===2&&l.push(0,0);let b=0,A=[0,0,0,0],R=[0,0,0,0];if(e&&r&&(A=Fi(e),R=Fi(r),b=1),this.rendererService.getDirty()){var O;(O=this.texture)===null||O===void 0||O.bind()}const D={u_animate:this.animateOption2Array(E),u_dash_array:l,u_sourceColor:A,u_targetColor:R,u_textSize:[1024,this.iconService.canvasHeight||128],u_globel:this.mapService.version==="GLOBEL"?1:0,u_globel_radius:Yb,u_global_height:v,segmentNumber:m,u_line_type:$N[a]||0,u_icon_step:p,u_line_texture:o?1:0,u_textureBlend:n==="normal"?0:1,u_time:this.layer.getLayerAnimateTime()||0,u_linearColor:b};return this.getUniformsBufferInfo(D)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.updateTexture(),e.iconService.on("imageUpdate",e.updateTexture),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}getShaders(){return{frag:GN,vert:ZN,type:""}}buildModels(){var e=this;return bt(function*(){const{segmentNumber:r=30}=e.layer.getLayerConfig(),{frag:n,vert:a,type:l}=e.getShaders();return[yield e.layer.buildLayerModel({moduleName:"lineArc3d"+l,vertexShader:a,fragmentShader:n,defines:e.getDefines(),inject:e.getInject(),triangulation:y2,styleOption:{segmentNumber:r}})]})()}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0]]:[r]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:Lr.Attribute,descriptor:{name:"a_Instance",shaderLocation:this.attributeLocation.INSTANCE,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[n[3],n[4],n[5],n[6]]}}),this.styleAttributeService.registerStyleAttribute({name:"instance64Low",type:Lr.Attribute,descriptor:{name:"a_Instance64Low",shaderLocation:this.attributeLocation.INSTANCE_64LOW,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[ma(n[3]),ma(n[4]),ma(n[5]),ma(n[6])]}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_iconMapUV",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{texture:n}=e,{x:a,y:l}=r[n]||{x:0,y:0};return[a,l]}}}),this.styleAttributeService.registerStyleAttribute({name:"thetaOffset",type:Lr.Attribute,descriptor:{name:"a_ThetaOffset",shaderLocation:this.attributeLocation.THETA_OFFSET,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{thetaOffset:r=1}=e;return[r]}}})}}const J6={circle:2,triangle:2,diamond:4,rect:2,classic:3,halfTriangle:2,none:0},tl=1/2;function qN(t,e){const{width:r=2,height:n=1}=e;return{vertices:[0,tl*t,1*t*r,-(n+tl)*t,1*t*r,(n-tl)*t,0,tl*t,1*t*r,-(n+tl)*t,1*t*r,(n-tl)*t],indices:[3,4,5],outLineIndices:[0,1,2],normals:[1*t,-2*t,1,-2*t,1.5*t,1,1*t,1.5*t,1,0,0,0,0,0,0,0,0,0],dimensions:2}}function YN(t,e){const{width:r=2,height:n=3}=e;return{vertices:[0,0,1*t*r,1*n,1*t*r,-1*n,0,0,1*t*r,1*n,1*t*r,-1*n],outLineIndices:[0,1,2],indices:[3,4,5],normals:[0,-1.5*t,1,2,1*t,1,-2,1*t,1,0,0,0,0,0,0,0,0,0],dimensions:2}}function KN(t,e){const{width:r=2,height:n=2}=e;return{vertices:[0,n/2,t*r*1,n/2,t*r*1,-n/2,0,-n/2,0,n/2,t*r*1,n/2,t*r*1,-n/2,0,-n/2],dimensions:2,indices:[4,5,6,4,6,7],outLineIndices:[0,1,2,0,2,3],normals:[0,-t,1,1,0,1,0,-t,1,-1,-0,1,0,0,0,0,0,0,0,0,0,0,0,0]}}function QN(t,e){const{width:r=2,height:n=3}=e;return{vertices:[0,0,1*r*t,.5*n,2*r*t,0,1*r*t,-.5*n,0,0,1*r*t,.5*n,2*r*t,0,1*r*t,-.5*n],dimensions:2,indices:[4,5,6,4,6,7],outLineIndices:[0,1,2,0,2,3],normals:[0,-t,1,1,0,1,0,-t,1,-1,-0,1,0,0,0,0,0,0,0,0,0,0,0,0]}}function JN(t,e){const{width:r=2,height:n=3}=e;return{vertices:[0,0,2*t*r,1*n,1.5*t*r,0,2*t*r,-1*n,0,0,2*t*r,1*n,1.5*t*r,0,2*t*r,-1*n],dimensions:2,indices:[4,5,6,4,6,7],outLineIndices:[0,1,2,0,2,3],normals:[0,-t,1,1,0,1,0,-t,1,-1,-0,1,0,0,0,0,0,0,0,0,0,0,0,0]}}function ek(t,e){const{width:r=2,height:n=2}=e,a=dv(),l=x3.flatten([a]),o=x3(l.vertices,l.holes,l.dimensions),p=a.map(m=>[m[0]*r*t,m[1]*n]).flat();return{vertices:[...p,...p],dimensions:2,indices:o.map(m=>m+a.length),outLineIndices:o,normals:[...a.map(m=>[m[1]*n,m[0]*r*t,1]).flat(),...new Array(a.length*3).fill(0)]}}function tk(t,e=0,r){const n=typeof r.source=="object"?r.source.type:r.source,a=typeof r.target=="object"?r.target.type:r.target,{width:l=n?J6[n]:0}=typeof r.source=="object"?r.source:{},{width:o=a?J6[a]:0}=typeof r.target=="object"?r.target:{};return{vertices:[0,tl,1*l,...t,1,tl,-1*o,...t,1,-tl,-1*o,...t,0,-tl,1*l,...t,0,tl,1*l,...t,1,tl,-1*o,...t,1,-tl,-1*o,...t,0,-tl,1*l,...t],outLineIndices:[0,1,2,0,2,3].map(p=>p+e),indices:[4,5,6,4,6,7].map(p=>p+e),normals:[1,-1,1,1,1,1,-1,0,1,-1,0,1,0,0,0,0,0,0,0,0,0,0,0,0],dimensions:2}}function ex(t,e){const r=typeof t=="object"?t.type:t,n=e==="source"?1:-1,a=typeof t=="object"?t:{};switch(r){case"circle":return ek(n,a);case"triangle":return YN(n,a);case"diamond":return QN(n,a);case"rect":return KN(n,a);case"classic":return JN(n,a);case"halfTriangle":return qN(n,a);default:return{vertices:[],indices:[],normals:[],dimensions:2,outLineIndices:[],outLineNormals:[]}}}function rk(t){const e=t.coordinates.flat(),r=1,n=1;return{vertices:[1,0,0,...e,1,2,-3,...e,1,1,-3,...e,0,1,0,...e,0,0,0,...e,1,0,0,...e,1,2,-3,...e,1,1,-3,...e,0,1,0,...e,0,0,0,...e],normals:[-r,2*n,1,2*n,-n,1,n,-n,1,n,-n,1,-r,-n,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],indices:[0,1,2,0,2,3,0,3,4,5,6,7,5,7,8,5,8,9],size:7}}function nk(t,e){return e?ik(t,e):rk(t)}function ik(t,e){const r=t.coordinates.flat(),{target:n="classic",source:a="circle"}=e,l=tx(ex(a,"source"),r,0,0),o=tk(r,l.vertices.length/7,e),p=tx(ex(n,"target"),r,1,l.vertices.length/7+o.vertices.length/7);return{vertices:[...l.vertices,...o.vertices,...p.vertices],indices:[...l.outLineIndices,...o.outLineIndices,...p.outLineIndices,...l.indices,...o.indices,...p.indices],normals:[...l.normals,...o.normals,...p.normals],size:7}}function tx(t,e,r=1,n=0){const a=[],{vertices:l,indices:o,dimensions:p,outLineIndices:m}=t;for(let v=0;vv+n),outLineIndices:m.map(v=>v+n)})}const ok=`// #extension GL_OES_standard_derivatives : enable in vec4 v_color; out vec4 outputColor; @@ -1614,7 +1614,7 @@ void main() { outputColor = v_color; outputColor = filterColor(outputColor); } -`,uk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,ak=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_SIZE) in vec2 a_Size; layout(location = ATTRIBUTE_LOCATION_INSTANCE) in vec4 a_Instance; @@ -1690,7 +1690,7 @@ void main() { setPickingColor(a_PickingColor); } -`;class ck extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,INSTANCE:10,INSTANCE_64LOW:11,NORMAL:12})}getCommonUniformsInfo(){const{gapWidth:e=2,strokeWidth:r=1,strokeOpacity:n=1}=this.layer.getLayerConfig(),a={u_gap_width:e,u_stroke_width:r,u_stroke_opacity:n};return this.getUniformsBufferInfo(a)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return[yield e.layer.buildLayerModel({moduleName:"flow_line",vertexShader:uk,fragmentShader:lk,defines:e.getDefines(),inject:e.getInject(),triangulation:ak,styleOption:e.layer.getLayerConfig().symbol,primitive:H.TRIANGLES,depth:{enable:!1},pick:!1})]})()}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0],r[1]]:[r,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:Lr.Attribute,descriptor:{name:"a_Instance",shaderLocation:this.attributeLocation.INSTANCE,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[n[3],n[4],n[5],n[6]]}}),this.styleAttributeService.registerStyleAttribute({name:"instance64Low",type:Lr.Attribute,descriptor:{name:"a_Instance64Low",shaderLocation:this.attributeLocation.INSTANCE_64LOW,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[ma(n[3]),ma(n[4]),ma(n[5]),ma(n[6])]}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Lr.Attribute,descriptor:{name:"a_Normal",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a,l)=>l}})}}const hk=`#define LineTypeSolid 0.0 +`;class sk extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,INSTANCE:10,INSTANCE_64LOW:11,NORMAL:12})}getCommonUniformsInfo(){const{gapWidth:e=2,strokeWidth:r=1,strokeOpacity:n=1}=this.layer.getLayerConfig(),a={u_gap_width:e,u_stroke_width:r,u_stroke_opacity:n};return this.getUniformsBufferInfo(a)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return[yield e.layer.buildLayerModel({moduleName:"flow_line",vertexShader:ak,fragmentShader:ok,defines:e.getDefines(),inject:e.getInject(),triangulation:nk,styleOption:e.layer.getLayerConfig().symbol,primitive:H.TRIANGLES,depth:{enable:!1},pick:!1})]})()}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0],r[1]]:[r,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:Lr.Attribute,descriptor:{name:"a_Instance",shaderLocation:this.attributeLocation.INSTANCE,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[n[3],n[4],n[5],n[6]]}}),this.styleAttributeService.registerStyleAttribute({name:"instance64Low",type:Lr.Attribute,descriptor:{name:"a_Instance64Low",shaderLocation:this.attributeLocation.INSTANCE_64LOW,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[ma(n[3]),ma(n[4]),ma(n[5]),ma(n[6])]}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Lr.Attribute,descriptor:{name:"a_Normal",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a,l)=>l}})}}const lk=`#define LineTypeSolid 0.0 #define LineTypeDash 1.0 #define Animate 0.0 #define LineTexture 1.0 @@ -1789,7 +1789,7 @@ void main() { // gl_FragColor = filterColor(gl_FragColor); } -`,fk=`#define LineTypeSolid (0.0) +`,uk=`#define LineTypeSolid (0.0) #define LineTypeDash (1.0) #define Animate (0.0) #define LineTexture (1.0) @@ -1954,7 +1954,7 @@ void main() { setPickingColor(a_PickingColor); } -`,pk={solid:0,dash:1};class dk extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.texture){this.texture.update({data:this.iconService.getCanvas()}),this.layer.render();return}this.texture=r({data:this.iconService.getCanvas(),mag:H.NEAREST,min:H.NEAREST,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128}),this.textures=[this.texture]})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,INSTANCE:10,INSTANCE_64LOW:11,UV:12})}getCommonUniformsInfo(){const{sourceColor:e,targetColor:r,textureBlend:n="normal",lineType:a="solid",dashArray:l=[10,5],lineTexture:o=!1,iconStep:p=100,segmentNumber:m=30}=this.layer.getLayerConfig(),{animateOption:v}=this.layer.getLayerConfig();if(l.length===2&&l.push(0,0),this.rendererService.getDirty()){var E;(E=this.texture)===null||E===void 0||E.bind()}let b=0,A=[0,0,0,0],R=[0,0,0,0];e&&r&&(A=Fi(e),R=Fi(r),b=1);let O=this.layer.getLayerAnimateTime();isNaN(O)&&(O=0);const D={u_animate:this.animateOption2Array(v),u_dash_array:l,u_sourceColor:A,u_targetColor:R,u_textSize:[1024,this.iconService.canvasHeight||128],segmentNumber:m,u_line_type:pk[a]||0,u_icon_step:p,u_line_texture:o?1:0,u_textureBlend:n==="normal"?0:1,u_time:O,u_linearColor:b};return this.getUniformsBufferInfo(D)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.updateTexture(),e.iconService.on("imageUpdate",e.updateTexture),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}buildModels(){var e=this;return bt(function*(){const{segmentNumber:r=30}=e.layer.getLayerConfig();return[yield e.layer.buildLayerModel({moduleName:"lineGreatCircle",vertexShader:fk,fragmentShader:hk,triangulation:y2,styleOption:{segmentNumber:r},defines:e.getDefines(),inject:e.getInject(),depth:{enable:!1}})]})()}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0]]:[r]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:Lr.Attribute,descriptor:{name:"a_Instance",shaderLocation:this.attributeLocation.INSTANCE,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[n[3],n[4],n[5],n[6]]}}),this.styleAttributeService.registerStyleAttribute({name:"instance64Low",type:Lr.Attribute,descriptor:{name:"a_Instance64Low",shaderLocation:this.attributeLocation.INSTANCE_64LOW,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[ma(n[3]),ma(n[4]),ma(n[5]),ma(n[6])]}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_iconMapUV",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{texture:n}=e,{x:a,y:l}=r[n]||{x:0,y:0};return[a,l]}}})}}const mk=`// #extension GL_OES_standard_derivatives : enable +`,ck={solid:0,dash:1};class hk extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.texture){this.texture.update({data:this.iconService.getCanvas()}),this.layer.render();return}this.texture=r({data:this.iconService.getCanvas(),mag:H.NEAREST,min:H.NEAREST,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128}),this.textures=[this.texture]})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,INSTANCE:10,INSTANCE_64LOW:11,UV:12})}getCommonUniformsInfo(){const{sourceColor:e,targetColor:r,textureBlend:n="normal",lineType:a="solid",dashArray:l=[10,5],lineTexture:o=!1,iconStep:p=100,segmentNumber:m=30}=this.layer.getLayerConfig(),{animateOption:v}=this.layer.getLayerConfig();if(l.length===2&&l.push(0,0),this.rendererService.getDirty()){var E;(E=this.texture)===null||E===void 0||E.bind()}let b=0,A=[0,0,0,0],R=[0,0,0,0];e&&r&&(A=Fi(e),R=Fi(r),b=1);let O=this.layer.getLayerAnimateTime();isNaN(O)&&(O=0);const D={u_animate:this.animateOption2Array(v),u_dash_array:l,u_sourceColor:A,u_targetColor:R,u_textSize:[1024,this.iconService.canvasHeight||128],segmentNumber:m,u_line_type:ck[a]||0,u_icon_step:p,u_line_texture:o?1:0,u_textureBlend:n==="normal"?0:1,u_time:O,u_linearColor:b};return this.getUniformsBufferInfo(D)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.updateTexture(),e.iconService.on("imageUpdate",e.updateTexture),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}buildModels(){var e=this;return bt(function*(){const{segmentNumber:r=30}=e.layer.getLayerConfig();return[yield e.layer.buildLayerModel({moduleName:"lineGreatCircle",vertexShader:uk,fragmentShader:lk,triangulation:y2,styleOption:{segmentNumber:r},defines:e.getDefines(),inject:e.getInject(),depth:{enable:!1}})]})()}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0]]:[r]}}}),this.styleAttributeService.registerStyleAttribute({name:"instance",type:Lr.Attribute,descriptor:{name:"a_Instance",shaderLocation:this.attributeLocation.INSTANCE,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[n[3],n[4],n[5],n[6]]}}),this.styleAttributeService.registerStyleAttribute({name:"instance64Low",type:Lr.Attribute,descriptor:{name:"a_Instance64Low",shaderLocation:this.attributeLocation.INSTANCE_64LOW,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>[ma(n[3]),ma(n[4]),ma(n[5]),ma(n[6])]}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_iconMapUV",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{texture:n}=e,{x:a,y:l}=r[n]||{x:0,y:0};return[a,l]}}})}}const fk=`// #extension GL_OES_standard_derivatives : enable #define Animate 0.0 #define LineTexture 1.0 @@ -2076,7 +2076,7 @@ void main() { outputColor = filterColor(outputColor); } -`,_k=`#define Animate (0.0) +`,pk=`#define Animate (0.0) layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; @@ -2177,7 +2177,7 @@ void main() { setPickingColor(a_PickingColor); } -`;class tE extends qi{constructor(...e){super(...e),I(this,"textureEventFlag",!1),I(this,"texture",this.createTexture2D({data:new Uint8Array([0,0,0,0]),width:1,height:1})),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.textures.length===0&&(this.textures=[this.texture]),this.texture){this.texture.update({data:this.iconService.getCanvas()}),this.layer.render();return}this.texture=r({data:this.iconService.getCanvas(),mag:H.NEAREST,min:H.NEAREST,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128})})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,DISTANCE_INDEX:10,NORMAL:11,UV:12})}getCommonUniformsInfo(){const{sourceColor:e,targetColor:r,textureBlend:n="normal",lineType:a="solid",dashArray:l=[10,5,0,0],lineTexture:o=!1,iconStep:p=100,vertexHeightScale:m=20,strokeWidth:v=0,raisingHeight:E=0,heightfixed:b=!1,linearDir:A=V6.VERTICAL,blur:R=[1,1,1,0]}=this.layer.getLayerConfig();let O=l;if(a!=="dash"&&(O=[0,0,0,0]),O.length===2&&O.push(0,0),this.rendererService.getDirty()&&this.texture){var D;(D=this.texture)===null||D===void 0||D.bind()}const{animateOption:N}=this.layer.getLayerConfig();let W=0,G=[0,0,0,0],Y=[0,0,0,0];e&&r&&(G=Fi(e),Y=Fi(r),W=1);const Q={u_animate:this.animateOption2Array(N),u_dash_array:O,u_blur:R,u_sourceColor:G,u_targetColor:Y,u_textSize:[1024,this.iconService.canvasHeight||128],u_icon_step:p,u_heightfixed:Number(b),u_vertexScale:m,u_raisingHeight:Number(E),u_strokeWidth:v,u_textureBlend:n===IN.NORMAL?0:1,u_line_texture:o?1:0,u_linearDir:A===V6.VERTICAL?1:0,u_linearColor:W,u_time:this.layer.getLayerAnimateTime()||0};return this.getUniformsBufferInfo(Q)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.textureEventFlag||(e.textureEventFlag=!0,e.updateTexture(),e.iconService.on("imageUpdate",e.updateTexture)),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}buildModels(){var e=this;return bt(function*(){const{depth:r=!1}=e.layer.getLayerConfig(),{frag:n,vert:a,type:l}=e.getShaders();return e.layer.triangulation=mv,[yield e.layer.buildLayerModel({moduleName:"line"+l,vertexShader:a,fragmentShader:n,triangulation:mv,defines:e.getDefines(),inject:e.getInject(),depth:{enable:r}})]})()}getShaders(){return{frag:mk,vert:_k,type:""}}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"distanceAndIndex",type:Lr.Attribute,descriptor:{name:"a_DistanceAndIndexAndMiter",shaderLocation:this.attributeLocation.DISTANCE_INDEX,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a,l,o)=>o===void 0?[n[3],10,n[4]]:[n[3],o,n[4]]}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0],r[1]]:[r,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal_total_distance",type:Lr.Attribute,descriptor:{name:"a_Normal_Total_Distance",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n,a,l)=>[...l,n[5]]}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_iconMapUV",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{texture:n}=e,{x:a,y:l}=r[n]||{x:0,y:0};return[a,l]}}})}}const gk=` +`;class tE extends qi{constructor(...e){super(...e),I(this,"textureEventFlag",!1),I(this,"texture",this.createTexture2D({data:new Uint8Array([0,0,0,0]),width:1,height:1})),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.textures.length===0&&(this.textures=[this.texture]),this.texture){this.texture.update({data:this.iconService.getCanvas()}),this.layer.render();return}this.texture=r({data:this.iconService.getCanvas(),mag:H.NEAREST,min:H.NEAREST,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128})})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,DISTANCE_INDEX:10,NORMAL:11,UV:12})}getCommonUniformsInfo(){const{sourceColor:e,targetColor:r,textureBlend:n="normal",lineType:a="solid",dashArray:l=[10,5,0,0],lineTexture:o=!1,iconStep:p=100,vertexHeightScale:m=20,strokeWidth:v=0,raisingHeight:E=0,heightfixed:b=!1,linearDir:A=V6.VERTICAL,blur:R=[1,1,1,0]}=this.layer.getLayerConfig();let O=l;if(a!=="dash"&&(O=[0,0,0,0]),O.length===2&&O.push(0,0),this.rendererService.getDirty()&&this.texture){var D;(D=this.texture)===null||D===void 0||D.bind()}const{animateOption:N}=this.layer.getLayerConfig();let W=0,G=[0,0,0,0],Y=[0,0,0,0];e&&r&&(G=Fi(e),Y=Fi(r),W=1);const Q={u_animate:this.animateOption2Array(N),u_dash_array:O,u_blur:R,u_sourceColor:G,u_targetColor:Y,u_textSize:[1024,this.iconService.canvasHeight||128],u_icon_step:p,u_heightfixed:Number(b),u_vertexScale:m,u_raisingHeight:Number(E),u_strokeWidth:v,u_textureBlend:n===wN.NORMAL?0:1,u_line_texture:o?1:0,u_linearDir:A===V6.VERTICAL?1:0,u_linearColor:W,u_time:this.layer.getLayerAnimateTime()||0};return this.getUniformsBufferInfo(Q)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.textureEventFlag||(e.textureEventFlag=!0,e.updateTexture(),e.iconService.on("imageUpdate",e.updateTexture)),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}buildModels(){var e=this;return bt(function*(){const{depth:r=!1}=e.layer.getLayerConfig(),{frag:n,vert:a,type:l}=e.getShaders();return e.layer.triangulation=mv,[yield e.layer.buildLayerModel({moduleName:"line"+l,vertexShader:a,fragmentShader:n,triangulation:mv,defines:e.getDefines(),inject:e.getInject(),depth:{enable:r}})]})()}getShaders(){return{frag:fk,vert:pk,type:""}}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"distanceAndIndex",type:Lr.Attribute,descriptor:{name:"a_DistanceAndIndexAndMiter",shaderLocation:this.attributeLocation.DISTANCE_INDEX,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a,l,o)=>o===void 0?[n[3],10,n[4]]:[n[3],o,n[4]]}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0],r[1]]:[r,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal_total_distance",type:Lr.Attribute,descriptor:{name:"a_Normal_Total_Distance",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n,a,l)=>[...l,n[5]]}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_iconMapUV",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{texture:n}=e,{x:a,y:l}=r[n]||{x:0,y:0};return[a,l]}}})}}const dk=` layout(std140) uniform commonUniorm { vec4 u_sourceColor; vec4 u_targetColor; @@ -2207,7 +2207,7 @@ void main() { outputColor = v_color; } } -`,vk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,mk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_SIZE) in vec4 a_SizeDistanceAndTotalDistance; @@ -2252,7 +2252,7 @@ void main() { gl_PointSize = 10.0; } -`;class yk extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9})}getCommonUniformsInfo(){const{sourceColor:e,targetColor:r,lineType:n="solid",dashArray:a=[10,5,0,0],vertexHeightScale:l=20}=this.layer.getLayerConfig();let o=a;n!=="dash"&&(o=[0,0,0,0]),o.length===2&&o.push(0,0);let p=0,m=[0,0,0,0],v=[0,0,0,0];e&&r&&(m=Fi(e),v=Fi(r),p=1);const E={u_sourceColor:m,u_targetColor:v,u_dash_array:o,u_vertexScale:l,u_linearColor:p};return this.getUniformsBufferInfo(E)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}getShaders(){return{frag:gk,vert:vk,type:"lineSimpleNormal"}}buildModels(){var e=this;return bt(function*(){e.initUniformsBuffer();const{frag:r,vert:n,type:a}=e.getShaders();return[yield e.layer.buildLayerModel({moduleName:a,vertexShader:n,fragmentShader:r,triangulation:LN,defines:e.getDefines(),inject:e.getInject(),primitive:H.LINES,depth:{enable:!1},pick:!1})]})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"sizeDistanceAndTotalDistance",type:Lr.Attribute,descriptor:{name:"a_SizeDistanceAndTotalDistance",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>{const{size:a=1}=e,l=Array.isArray(a)?[a[0],a[1]]:[a,0];return[l[0],l[1],n[3],n[5]]}}})}}const xk=`#define Animate 0.0 +`;class _k extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9})}getCommonUniformsInfo(){const{sourceColor:e,targetColor:r,lineType:n="solid",dashArray:a=[10,5,0,0],vertexHeightScale:l=20}=this.layer.getLayerConfig();let o=a;n!=="dash"&&(o=[0,0,0,0]),o.length===2&&o.push(0,0);let p=0,m=[0,0,0,0],v=[0,0,0,0];e&&r&&(m=Fi(e),v=Fi(r),p=1);const E={u_sourceColor:m,u_targetColor:v,u_dash_array:o,u_vertexScale:l,u_linearColor:p};return this.getUniformsBufferInfo(E)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}getShaders(){return{frag:dk,vert:mk,type:"lineSimpleNormal"}}buildModels(){var e=this;return bt(function*(){e.initUniformsBuffer();const{frag:r,vert:n,type:a}=e.getShaders();return[yield e.layer.buildLayerModel({moduleName:a,vertexShader:n,fragmentShader:r,triangulation:MN,defines:e.getDefines(),inject:e.getInject(),primitive:H.LINES,depth:{enable:!1},pick:!1})]})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"sizeDistanceAndTotalDistance",type:Lr.Attribute,descriptor:{name:"a_SizeDistanceAndTotalDistance",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:4,update:(e,r,n)=>{const{size:a=1}=e,l=Array.isArray(a)?[a[0],a[1]]:[a,0];return[l[0],l[1],n[3],n[5]]}}})}}const gk=`#define Animate 0.0 #define LineTexture 1.0 // line texture @@ -2346,7 +2346,7 @@ void main() { outputColor = filterColor(outputColor); } -`,bk=`#define Animate 0.0 +`,vk=`#define Animate 0.0 layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; @@ -2436,7 +2436,7 @@ void main() { setPickingColor(a_PickingColor); } -`;class Ek extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.texture){this.texture.update({data:this.iconService.getCanvas()}),this.layer.render();return}this.texture=r({data:this.iconService.getCanvas(),mag:H.NEAREST,min:H.NEAREST,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128}),this.textures=[this.texture]})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,NORMAL:12,UV:13,DISTANCE_MITER_TOTAL:15})}getCommonUniformsInfo(){const{sourceColor:e,targetColor:r,textureBlend:n="normal",heightfixed:a=!1,lineTexture:l=!1,iconStep:o=100,iconStepCount:p=1}=this.layer.getLayerConfig(),{animateOption:m}=this.layer.getLayerConfig();if(this.rendererService.getDirty()){var v;(v=this.texture)===null||v===void 0||v.bind()}let E=0,b=[0,0,0,0],A=[0,0,0,0];e&&r&&(b=Fi(e),A=Fi(r),E=1);const R={u_animate:this.animateOption2Array(m),u_sourceColor:b,u_targetColor:A,u_textSize:[1024,this.iconService.canvasHeight||128],u_icon_step:o,u_heightfixed:Number(a),u_linearColor:E,u_line_texture:l?1:0,u_textureBlend:n==="normal"?0:1,u_iconStepCount:p,u_time:this.layer.getLayerAnimateTime()||0};return this.getUniformsBufferInfo(R)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.updateTexture(),e.iconService.on("imageUpdate",e.updateTexture),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}buildModels(){var e=this;return bt(function*(){return[yield e.layer.buildLayerModel({moduleName:"lineWall",vertexShader:bk,fragmentShader:xk,triangulation:mv,defines:e.getDefines(),inject:e.getInject(),depth:{enable:!1},blend:e.getBlend()})]})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0],r[1]]:[r,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Lr.Attribute,descriptor:{name:"a_Normal",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a,l)=>l}}),this.styleAttributeService.registerStyleAttribute({name:"distanceAndTotalAndMiter",type:Lr.Attribute,descriptor:{name:"a_Distance_Total_Miter",shaderLocation:this.attributeLocation.DISTANCE_MITER_TOTAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n)=>[n[3],n[4],n[5]]}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_iconMapUV",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{texture:n}=e,{x:a,y:l}=r[n]||{x:0,y:0};return[a,l]}}})}}const Tk={arc:$N,arc3d:Q6,greatcircle:dk,wall:Ek,line:tE,simple:yk,flowline:ck,earthArc3d:Q6},Ak=Tk;class e3 extends Np{constructor(...e){super(...e),I(this,"type","LineLayer"),I(this,"enableShaderEncodeStyles",["stroke","offsets","opacity","thetaOffset"]),I(this,"arrowInsertCount",0),I(this,"defaultSourceConfig",{data:[{lng1:100,lat1:30,lng2:130,lat2:30}],options:{parser:{type:"json",x:"lng1",y:"lat1",x1:"lng2",y1:"lat2"}}})}buildModels(){var e=this;return bt(function*(){const r=e.getModelType();e.layerModel=new Ak[r](e),yield e.initLayerModels()})()}getDefaultConfig(){const e=this.getModelType();return{line:{},linearline:{},simple:{},wall:{},arc3d:{blend:"additive"},arc:{blend:"additive"},greatcircle:{blend:"additive"},tileLine:{},earthArc3d:{},flowline:{},arrow:{}}[e]}getModelType(){var e;if(this.layerType)return this.layerType;const r=this.styleAttributeService.getLayerStyleAttribute("shape");return(r==null||(e=r.scale)===null||e===void 0?void 0:e.field)||"line"}processData(e){if(this.getModelType()!=="simple")return e;const r=[];return e.map(n=>{if(Array.isArray(n.coordinates)&&Array.isArray(n.coordinates[0])&&Array.isArray(n.coordinates[0][0])){const a=_t({},n);n.coordinates.map(l=>{r.push(_t(_t({},a),{},{coordinates:l}))})}else r.push(n)}),r}}const Sk=` +`;class yk extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.texture){this.texture.update({data:this.iconService.getCanvas()}),this.layer.render();return}this.texture=r({data:this.iconService.getCanvas(),mag:H.NEAREST,min:H.NEAREST,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128}),this.textures=[this.texture]})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,NORMAL:12,UV:13,DISTANCE_MITER_TOTAL:15})}getCommonUniformsInfo(){const{sourceColor:e,targetColor:r,textureBlend:n="normal",heightfixed:a=!1,lineTexture:l=!1,iconStep:o=100,iconStepCount:p=1}=this.layer.getLayerConfig(),{animateOption:m}=this.layer.getLayerConfig();if(this.rendererService.getDirty()){var v;(v=this.texture)===null||v===void 0||v.bind()}let E=0,b=[0,0,0,0],A=[0,0,0,0];e&&r&&(b=Fi(e),A=Fi(r),E=1);const R={u_animate:this.animateOption2Array(m),u_sourceColor:b,u_targetColor:A,u_textSize:[1024,this.iconService.canvasHeight||128],u_icon_step:o,u_heightfixed:Number(a),u_linearColor:E,u_line_texture:l?1:0,u_textureBlend:n==="normal"?0:1,u_iconStepCount:p,u_time:this.layer.getLayerAnimateTime()||0};return this.getUniformsBufferInfo(R)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.updateTexture(),e.iconService.on("imageUpdate",e.updateTexture),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}buildModels(){var e=this;return bt(function*(){return[yield e.layer.buildLayerModel({moduleName:"lineWall",vertexShader:vk,fragmentShader:gk,triangulation:mv,defines:e.getDefines(),inject:e.getInject(),depth:{enable:!1},blend:e.getBlend()})]})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0],r[1]]:[r,0]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Lr.Attribute,descriptor:{name:"a_Normal",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a,l)=>l}}),this.styleAttributeService.registerStyleAttribute({name:"distanceAndTotalAndMiter",type:Lr.Attribute,descriptor:{name:"a_Distance_Total_Miter",shaderLocation:this.attributeLocation.DISTANCE_MITER_TOTAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n)=>[n[3],n[4],n[5]]}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_iconMapUV",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{texture:n}=e,{x:a,y:l}=r[n]||{x:0,y:0};return[a,l]}}})}}const xk={arc:WN,arc3d:Q6,greatcircle:hk,wall:yk,line:tE,simple:_k,flowline:sk,earthArc3d:Q6},bk=xk;class e3 extends Np{constructor(...e){super(...e),I(this,"type","LineLayer"),I(this,"enableShaderEncodeStyles",["stroke","offsets","opacity","thetaOffset"]),I(this,"arrowInsertCount",0),I(this,"defaultSourceConfig",{data:[{lng1:100,lat1:30,lng2:130,lat2:30}],options:{parser:{type:"json",x:"lng1",y:"lat1",x1:"lng2",y1:"lat2"}}})}buildModels(){var e=this;return bt(function*(){const r=e.getModelType();e.layerModel=new bk[r](e),yield e.initLayerModels()})()}getDefaultConfig(){const e=this.getModelType();return{line:{},linearline:{},simple:{},wall:{},arc3d:{blend:"additive"},arc:{blend:"additive"},greatcircle:{blend:"additive"},tileLine:{},earthArc3d:{},flowline:{},arrow:{}}[e]}getModelType(){var e;if(this.layerType)return this.layerType;const r=this.styleAttributeService.getLayerStyleAttribute("shape");return(r==null||(e=r.scale)===null||e===void 0?void 0:e.field)||"line"}processData(e){if(this.getModelType()!=="simple")return e;const r=[];return e.map(n=>{if(Array.isArray(n.coordinates)&&Array.isArray(n.coordinates[0])&&Array.isArray(n.coordinates[0][0])){const a=_t({},n);n.coordinates.map(l=>{r.push(_t(_t({},a),{},{coordinates:l}))})}else r.push(n)}),r}}const Ek=` layout(std140) uniform commonUniorm { vec4 u_stroke_color; float u_additive; @@ -2486,7 +2486,7 @@ void main() { } } -`,wk=` +`,Tk=` layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; @@ -2519,7 +2519,7 @@ void main() { gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; setPickingColor(a_PickingColor); } -`;function rx(t){const e=t.coordinates;return{vertices:[...e],indices:[0],size:e.length}}class Ck extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9})}getDefaultStyle(){return{blend:"additive"}}getCommonUniformsInfo(){const{blend:e,strokeOpacity:r=1,strokeWidth:n=0,stroke:a="#fff"}=this.layer.getLayerConfig(),l={u_stroke_color:Fi(a),u_additive:e==="additive"?1:0,u_stroke_opacity:r,u_stroke_width:n};return this.getUniformsBufferInfo(l)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.layer.triangulation=rx,e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"pointSimple",vertexShader:wk,fragmentShader:Sk,defines:e.getDefines(),inject:e.getInject(),triangulation:rx,depth:{enable:!1},primitive:H.POINTS})]})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0]]:[r]}}})}}const Rk=`precision highp float; +`;function rx(t){const e=t.coordinates;return{vertices:[...e],indices:[0],size:e.length}}class Ak extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9})}getDefaultStyle(){return{blend:"additive"}}getCommonUniformsInfo(){const{blend:e,strokeOpacity:r=1,strokeWidth:n=0,stroke:a="#fff"}=this.layer.getLayerConfig(),l={u_stroke_color:Fi(a),u_additive:e==="additive"?1:0,u_stroke_opacity:r,u_stroke_width:n};return this.getUniformsBufferInfo(l)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.layer.triangulation=rx,e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"pointSimple",vertexShader:Tk,fragmentShader:Ek,defines:e.getDefines(),inject:e.getInject(),triangulation:rx,depth:{enable:!1},primitive:H.POINTS})]})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0]]:[r]}}})}}const Sk=`precision highp float; in vec4 v_color; #pragma include "picking" @@ -2555,7 +2555,7 @@ void main() { outputColor = filterColor(outputColor); } } -`,Ik=`precision highp float; +`,wk=`precision highp float; #define pi 3.1415926535 #define ambientRatio 0.5 @@ -2673,7 +2673,7 @@ void main() { setPickingColor(a_PickingColor); } -`,{isNumber:Mk}=Ko;let Pk=class extends qi{constructor(...e){super(...e),I(this,"raiseCount",0),I(this,"raiseRepeat",0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,POS:10,NORMAL:11})}getCommonUniformsInfo(){const{animateOption:e={enable:!1,speed:.01,repeat:!1},opacity:r=1,sourceColor:n,targetColor:a,pickLight:l=!1,heightfixed:o=!0,opacityLinear:p={enable:!1,dir:"up"},lightEnable:m=!0}=this.layer.getLayerConfig();let v=0,E=[0,0,0,0],b=[0,0,0,0];if(n&&a&&(E=Fi(n),b=Fi(a),v=1),this.raiseCount<1&&this.raiseRepeat>0&&e.enable){const{speed:O=.01}=e;this.raiseCount+=O,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}const A={u_sourceColor:E,u_targetColor:b,u_linearColor:v,u_pickLight:Number(l),u_heightfixed:Number(o),u_r:e.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:Mk(r)?r:1,u_opacitylinear:Number(p.enable),u_opacitylinear_dir:p.dir==="up"?1:0,u_lightEnable:Number(m)};return this.getUniformsBufferInfo(A)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{animateOption:{repeat:r=1}}=e.layer.getLayerConfig();return e.raiseRepeat=r,[yield e.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:Ik,fragmentShader:Rk,triangulation:Jb,depth:{enable:!0},defines:e.getDefines(),inject:e.getInject(),cull:{enable:!0,face:H.FRONT},blend:e.getBlend()})]})()}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:e=>{const{size:r}=e;if(r){let n=[];return Array.isArray(r)&&(n=r.length===2?[r[0],r[0],r[1]]:r),Array.isArray(r)||(n=[r,r,r]),n}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Lr.Attribute,descriptor:{name:"a_Normal",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a,l)=>l}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:Lr.Attribute,descriptor:{name:"a_Pos",shaderLocation:this.attributeLocation.POS,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:e=>{const r=Kh(e.coordinates);return Kb([r[0],r[1]])}}})}};const Ok=`in vec4 v_data; +`,{isNumber:Ck}=Ko;let Rk=class extends qi{constructor(...e){super(...e),I(this,"raiseCount",0),I(this,"raiseRepeat",0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,POS:10,NORMAL:11})}getCommonUniformsInfo(){const{animateOption:e={enable:!1,speed:.01,repeat:!1},opacity:r=1,sourceColor:n,targetColor:a,pickLight:l=!1,heightfixed:o=!0,opacityLinear:p={enable:!1,dir:"up"},lightEnable:m=!0}=this.layer.getLayerConfig();let v=0,E=[0,0,0,0],b=[0,0,0,0];if(n&&a&&(E=Fi(n),b=Fi(a),v=1),this.raiseCount<1&&this.raiseRepeat>0&&e.enable){const{speed:O=.01}=e;this.raiseCount+=O,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}const A={u_sourceColor:E,u_targetColor:b,u_linearColor:v,u_pickLight:Number(l),u_heightfixed:Number(o),u_r:e.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:Ck(r)?r:1,u_opacitylinear:Number(p.enable),u_opacitylinear_dir:p.dir==="up"?1:0,u_lightEnable:Number(m)};return this.getUniformsBufferInfo(A)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{animateOption:{repeat:r=1}}=e.layer.getLayerConfig();return e.raiseRepeat=r,[yield e.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:wk,fragmentShader:Sk,triangulation:Jb,depth:{enable:!0},defines:e.getDefines(),inject:e.getInject(),cull:{enable:!0,face:H.FRONT},blend:e.getBlend()})]})()}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:e=>{const{size:r}=e;if(r){let n=[];return Array.isArray(r)&&(n=r.length===2?[r[0],r[0],r[1]]:r),Array.isArray(r)||(n=[r,r,r]),n}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Lr.Attribute,descriptor:{name:"a_Normal",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a,l)=>l}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:Lr.Attribute,descriptor:{name:"a_Pos",shaderLocation:this.attributeLocation.POS,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:e=>{const r=Kh(e.coordinates);return Kb([r[0],r[1]])}}})}};const Ik=`in vec4 v_data; in vec4 v_color; in float v_radius; @@ -2752,7 +2752,7 @@ void main() { outputColor = filterColor(outputColor); } } -`,Lk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,Mk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_SIZE) in float a_Size; layout(location = ATTRIBUTE_LOCATION_SHAPE) in float a_Shape; @@ -2798,7 +2798,7 @@ void main() { setPickingColor(a_PickingColor); } -`;let Dk=class extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,SHAPE:10,EXTRUDE:11})}getCommonUniformsInfo(){const{strokeOpacity:e=1,strokeWidth:r=0,blend:n,blur:a=0}=this.layer.getLayerConfig();this.layer.getLayerConfig();const l={u_additive:n==="additive"?1:0,u_stroke_opacity:e,u_stroke_width:r,u_blur:a};return this.getUniformsBufferInfo(l)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.layer.triangulation=Y6,[yield e.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:Lk,fragmentShader:Ok,triangulation:Y6,defines:e.getDefines(),inject:e.getInject(),depth:{enable:!0},blend:e.getBlend()})]})()}animateOption2Array(e){return[e.enable?0:1,e.speed||1,e.rings||3,0]}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Lr.Attribute,descriptor:{name:"a_Extrude",shaderLocation:this.attributeLocation.EXTRUDE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a)=>{const[l,o,p]=n,m=Rs(0,0,1),v=Rs(l,0,p),E=l>=0?U4(m,v):Math.PI*2-U4(m,v),b=Math.PI*2-Math.asin(o/100),A=A3();Ym(A,A,E),Dp(A,A,b);const R=Rs(1,1,0);y0(R,R,A),Ud(R,R);const O=Rs(-1,1,0);y0(O,O,A),Ud(O,O);const D=Rs(-1,-1,0);y0(D,D,A),Ud(D,D);const N=Rs(1,-1,0);y0(N,N,A),Ud(N,N);const W=[...R,...O,...D,...N],G=a%4*3;return[W[G],W[G+1],W[G+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=5}=e;return Array.isArray(r)?[r[0]]:[r]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Lr.Attribute,descriptor:{name:"a_Shape",shaderLocation:this.attributeLocation.SHAPE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{shape:r=2}=e;return[this.layer.getLayerConfig().shape2d.indexOf(r)]}}})}};const Bk=` +`;let Pk=class extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,SHAPE:10,EXTRUDE:11})}getCommonUniformsInfo(){const{strokeOpacity:e=1,strokeWidth:r=0,blend:n,blur:a=0}=this.layer.getLayerConfig();this.layer.getLayerConfig();const l={u_additive:n==="additive"?1:0,u_stroke_opacity:e,u_stroke_width:r,u_blur:a};return this.getUniformsBufferInfo(l)}initModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.layer.triangulation=Y6,[yield e.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:Mk,fragmentShader:Ik,triangulation:Y6,defines:e.getDefines(),inject:e.getInject(),depth:{enable:!0},blend:e.getBlend()})]})()}animateOption2Array(e){return[e.enable?0:1,e.speed||1,e.rings||3,0]}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Lr.Attribute,descriptor:{name:"a_Extrude",shaderLocation:this.attributeLocation.EXTRUDE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a)=>{const[l,o,p]=n,m=Rs(0,0,1),v=Rs(l,0,p),E=l>=0?U4(m,v):Math.PI*2-U4(m,v),b=Math.PI*2-Math.asin(o/100),A=A3();Km(A,A,E),Dp(A,A,b);const R=Rs(1,1,0);y0(R,R,A),Ud(R,R);const O=Rs(-1,1,0);y0(O,O,A),Ud(O,O);const D=Rs(-1,-1,0);y0(D,D,A),Ud(D,D);const N=Rs(1,-1,0);y0(N,N,A),Ud(N,N);const W=[...R,...O,...D,...N],G=a%4*3;return[W[G],W[G+1],W[G+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=5}=e;return Array.isArray(r)?[r[0]]:[r]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Lr.Attribute,descriptor:{name:"a_Shape",shaderLocation:this.attributeLocation.SHAPE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{shape:r=2}=e;return[this.layer.getLayerConfig().shape2d.indexOf(r)]}}})}};const Ok=` in vec4 v_color; in float v_lightWeight; out vec4 outputColor; @@ -2829,7 +2829,7 @@ void main() { outputColor = filterColor(outputColor); } } -`,Fk=`#define pi (3.1415926535) +`,Lk=`#define pi (3.1415926535) layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; @@ -2924,7 +2924,7 @@ void main() { setPickingColor(a_PickingColor); } -`;let rE=class extends qi{constructor(...e){super(...e),I(this,"raiseCount",0),I(this,"raiseRepeat",0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,EXTRUDE:10,NORMAL:11})}getCommonUniformsInfo(){const{animateOption:e={enable:!1,speed:.01,repeat:!1},sourceColor:r,targetColor:n,pickLight:a=!1,heightfixed:l=!1,opacityLinear:o={enable:!1,dir:"up"},lightEnable:p=!0}=this.layer.getLayerConfig();let m=0,v=[0,0,0,0],E=[0,0,0,0];if(r&&n&&(v=Fi(r),E=Fi(n),m=1),this.raiseCount<1&&this.raiseRepeat>0&&e.enable){const{speed:R=.01}=e;this.raiseCount+=R,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}const b={u_pickLight:Number(a),u_heightfixed:Number(l),u_r:e.enable&&this.raiseRepeat>0?this.raiseCount:1,u_linearColor:m,u_sourceColor:v,u_targetColor:E,u_opacitylinear:Number(o.enable),u_opacitylinear_dir:o.dir==="up"?1:0,u_lightEnable:Number(p)};return this.getUniformsBufferInfo(b)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{depth:r=!0,animateOption:{repeat:n=1}}=e.layer.getLayerConfig();return e.raiseRepeat=n,e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:Fk,fragmentShader:Bk,triangulation:Jb,defines:e.getDefines(),inject:e.getInject(),cull:{enable:!0,face:H.FRONT},depth:{enable:r}})]})()}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:e=>{const{size:r}=e;if(r){let n=[];return Array.isArray(r)&&(n=r.length===2?[r[0],r[0],r[1]]:r),Array.isArray(r)||(n=[r,r,r]),n}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Lr.Attribute,descriptor:{name:"a_Normal",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a,l)=>l}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Lr.Attribute,descriptor:{name:"a_Extrude",shaderLocation:this.attributeLocation.EXTRUDE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:4,update:e=>{const r=Kh(e.coordinates);return[r[0],r[1],ma(r[0]),ma(r[1])]}}})}};const Nk=` +`;let rE=class extends qi{constructor(...e){super(...e),I(this,"raiseCount",0),I(this,"raiseRepeat",0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,EXTRUDE:10,NORMAL:11})}getCommonUniformsInfo(){const{animateOption:e={enable:!1,speed:.01,repeat:!1},sourceColor:r,targetColor:n,pickLight:a=!1,heightfixed:l=!1,opacityLinear:o={enable:!1,dir:"up"},lightEnable:p=!0}=this.layer.getLayerConfig();let m=0,v=[0,0,0,0],E=[0,0,0,0];if(r&&n&&(v=Fi(r),E=Fi(n),m=1),this.raiseCount<1&&this.raiseRepeat>0&&e.enable){const{speed:R=.01}=e;this.raiseCount+=R,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}const b={u_pickLight:Number(a),u_heightfixed:Number(l),u_r:e.enable&&this.raiseRepeat>0?this.raiseCount:1,u_linearColor:m,u_sourceColor:v,u_targetColor:E,u_opacitylinear:Number(o.enable),u_opacitylinear_dir:o.dir==="up"?1:0,u_lightEnable:Number(p)};return this.getUniformsBufferInfo(b)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{depth:r=!0,animateOption:{repeat:n=1}}=e.layer.getLayerConfig();return e.raiseRepeat=n,e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:Lk,fragmentShader:Ok,triangulation:Jb,defines:e.getDefines(),inject:e.getInject(),cull:{enable:!0,face:H.FRONT},depth:{enable:r}})]})()}registerBuiltinAttributes(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:e=>{const{size:r}=e;if(r){let n=[];return Array.isArray(r)&&(n=r.length===2?[r[0],r[0],r[1]]:r),Array.isArray(r)||(n=[r,r,r]),n}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Lr.Attribute,descriptor:{name:"a_Normal",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a,l)=>l}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Lr.Attribute,descriptor:{name:"a_Extrude",shaderLocation:this.attributeLocation.EXTRUDE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:4,update:e=>{const r=Kh(e.coordinates);return[r[0],r[1],ma(r[0]),ma(r[1])]}}})}};const Dk=` layout(std140) uniform commonUniforms { vec3 u_blur_height_fixed; float u_stroke_width; @@ -3024,7 +3024,7 @@ void main() { discard; } } -`,kk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,Bk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_SIZE) in float a_Size; @@ -3103,7 +3103,7 @@ void main() { setPickingColor(a_PickingColor); } -`;let nE=class extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,SHAPE:10,EXTRUDE:11})}getCommonUniformsInfo(){const{strokeOpacity:e=1,strokeWidth:r=0,blend:n,blur:a=0,raisingHeight:l=0,heightfixed:o=!1,unit:p="pixel"}=this.layer.getLayerConfig();let m=this.getAnimateUniforms().u_time;isNaN(m)&&(m=-1);const v={u_blur_height_fixed:[a,Number(l),Number(o)],u_stroke_width:r,u_additive:n==="additive"?1:0,u_stroke_opacity:e,u_size_unit:v2[p],u_time:m,u_animate:this.getAnimateUniforms().u_animate};return this.getUniformsBufferInfo(v)}getAnimateUniforms(){const{animateOption:e={enable:!1}}=this.layer.getLayerConfig();return{u_animate:this.animateOption2Array(e),u_time:this.layer.getLayerAnimateTime()}}getAttribute(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),$h)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{frag:r,vert:n,type:a}=e.getShaders();return e.layer.triangulation=$h,e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:a,vertexShader:n,fragmentShader:r,defines:e.getDefines(),inject:e.getInject(),triangulation:$h,depth:{enable:!1}})]})()}getShaders(){return{frag:Nk,vert:kk,type:"pointFill"}}animateOption2Array(e){return[e.enable?0:1,e.speed||1,e.rings||3,0]}registerBuiltinAttributes(){const e=this.layer.getLayerConfig().shape2d;this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Lr.Attribute,descriptor:{name:"a_Extrude",shaderLocation:this.attributeLocation.EXTRUDE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:(r,n,a,l)=>{const o=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],p=l%4*3;return[o[p],o[p+1],o[p+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:r=>{const{size:n=5}=r;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Lr.Attribute,descriptor:{name:"a_Shape",shaderLocation:this.attributeLocation.SHAPE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:r=>{const{shape:n=2}=r;return[e.indexOf(n)]}}})}};const Uk=`in vec2 v_uv;// 本身的 uv 坐标 +`;let nE=class extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,SHAPE:10,EXTRUDE:11})}getCommonUniformsInfo(){const{strokeOpacity:e=1,strokeWidth:r=0,blend:n,blur:a=0,raisingHeight:l=0,heightfixed:o=!1,unit:p="pixel"}=this.layer.getLayerConfig();let m=this.getAnimateUniforms().u_time;isNaN(m)&&(m=-1);const v={u_blur_height_fixed:[a,Number(l),Number(o)],u_stroke_width:r,u_additive:n==="additive"?1:0,u_stroke_opacity:e,u_size_unit:v2[p],u_time:m,u_animate:this.getAnimateUniforms().u_animate};return this.getUniformsBufferInfo(v)}getAnimateUniforms(){const{animateOption:e={enable:!1}}=this.layer.getLayerConfig();return{u_animate:this.animateOption2Array(e),u_time:this.layer.getLayerAnimateTime()}}getAttribute(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),$h)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{frag:r,vert:n,type:a}=e.getShaders();return e.layer.triangulation=$h,e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:a,vertexShader:n,fragmentShader:r,defines:e.getDefines(),inject:e.getInject(),triangulation:$h,depth:{enable:!1}})]})()}getShaders(){return{frag:Dk,vert:Bk,type:"pointFill"}}animateOption2Array(e){return[e.enable?0:1,e.speed||1,e.rings||3,0]}registerBuiltinAttributes(){const e=this.layer.getLayerConfig().shape2d;this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Lr.Attribute,descriptor:{name:"a_Extrude",shaderLocation:this.attributeLocation.EXTRUDE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:(r,n,a,l)=>{const o=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],p=l%4*3;return[o[p],o[p+1],o[p+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:r=>{const{size:n=5}=r;return Array.isArray(n)?[n[0]]:[n]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Lr.Attribute,descriptor:{name:"a_Shape",shaderLocation:this.attributeLocation.SHAPE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:r=>{const{shape:n=2}=r;return[e.indexOf(n)]}}})}};const Fk=`in vec2 v_uv;// 本身的 uv 坐标 in vec2 v_Iconuv; in float v_opacity; out vec4 outputColor; @@ -3126,7 +3126,7 @@ void main() { outputColor.a *= v_opacity; outputColor = filterColor(outputColor); } -`,zk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,Nk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_SIZE) in float a_Size; @@ -3171,7 +3171,7 @@ void main() { setPickingColor(a_PickingColor); } -`;class Vk extends qi{constructor(...e){super(...e),I(this,"meter2coord",1),I(this,"texture",void 0),I(this,"isMeter",!1),I(this,"radian",0),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.texture){this.texture.update({data:this.iconService.getCanvas(),mag:"linear",min:"linear mipmap nearest",mipmap:!0}),this.layerService.throttleRenderLayers();return}this.texture=r({data:this.iconService.getCanvas(),mag:H.LINEAR,min:H.LINEAR_MIPMAP_LINEAR,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128,mipmap:!0}),this.textures=[this.texture]})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,EXTRUDE:10,UV:11})}getCommonUniformsInfo(){const{raisingHeight:e=0,heightfixed:r=!1,unit:n="pixel"}=this.layer.getLayerConfig();if(this.rendererService.getDirty()){var a;(a=this.texture)===null||a===void 0||a.bind()}const l={u_textSize:[1024,this.iconService.canvasHeight||128],u_heightfixed:Number(r),u_raisingHeight:Number(e),u_size_unit:v2[n]};return this.getUniformsBufferInfo(l)}getAttribute(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),$h)}initModels(){var e=this;return bt(function*(){return e.iconService.on("imageUpdate",e.updateTexture),e.updateTexture(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"pointFillImage",vertexShader:zk,fragmentShader:Uk,triangulation:$h,depth:{enable:!1},defines:e.getDefines(),inject:e.getInject(),cull:{enable:!0,face:H.FRONT}})]})()}clearModels(){var e;this.iconService.off("imageUpdate",this.updateTexture),(e=this.texture)===null||e===void 0||e.destroy()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_Uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{shape:n}=e,{x:a,y:l}=r[n]||{x:-64,y:-64};return[a,l]}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Lr.Attribute,descriptor:{name:"a_Extrude",shaderLocation:this.attributeLocation.EXTRUDE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a)=>{const l=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],o=a%4*3;return[l[o],l[o+1],l[o+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=5}=e;return Array.isArray(r)?[r[0]]:[r]}}})}}const Hk=`layout(std140) uniform commonUniforms { +`;class kk extends qi{constructor(...e){super(...e),I(this,"meter2coord",1),I(this,"texture",void 0),I(this,"isMeter",!1),I(this,"radian",0),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.texture){this.texture.update({data:this.iconService.getCanvas(),mag:"linear",min:"linear mipmap nearest",mipmap:!0}),this.layerService.throttleRenderLayers();return}this.texture=r({data:this.iconService.getCanvas(),mag:H.LINEAR,min:H.LINEAR_MIPMAP_LINEAR,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128,mipmap:!0}),this.textures=[this.texture]})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,EXTRUDE:10,UV:11})}getCommonUniformsInfo(){const{raisingHeight:e=0,heightfixed:r=!1,unit:n="pixel"}=this.layer.getLayerConfig();if(this.rendererService.getDirty()){var a;(a=this.texture)===null||a===void 0||a.bind()}const l={u_textSize:[1024,this.iconService.canvasHeight||128],u_heightfixed:Number(r),u_raisingHeight:Number(e),u_size_unit:v2[n]};return this.getUniformsBufferInfo(l)}getAttribute(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),$h)}initModels(){var e=this;return bt(function*(){return e.iconService.on("imageUpdate",e.updateTexture),e.updateTexture(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"pointFillImage",vertexShader:Nk,fragmentShader:Fk,triangulation:$h,depth:{enable:!1},defines:e.getDefines(),inject:e.getInject(),cull:{enable:!0,face:H.FRONT}})]})()}clearModels(){var e;this.iconService.off("imageUpdate",this.updateTexture),(e=this.texture)===null||e===void 0||e.destroy()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_Uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{shape:n}=e,{x:a,y:l}=r[n]||{x:-64,y:-64};return[a,l]}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Lr.Attribute,descriptor:{name:"a_Extrude",shaderLocation:this.attributeLocation.EXTRUDE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a)=>{const l=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],o=a%4*3;return[l[o],l[o+1],l[o+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=5}=e;return Array.isArray(r)?[r[0]]:[r]}}})}}const Uk=`layout(std140) uniform commonUniforms { vec2 u_textSize; float u_raisingHeight; float u_heightfixed; @@ -3213,7 +3213,7 @@ void main(){ } outputColor = filterColor(outputColor); } -`,jk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,zk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_SIZE) in float a_Size; @@ -3260,11 +3260,11 @@ void main() { gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; setPickingColor(a_PickingColor); } -`;class iE extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.texture){this.texture.update({data:this.iconService.getCanvas(),mag:"linear",min:"linear mipmap nearest",mipmap:!0}),setTimeout(()=>{this.layerService.throttleRenderLayers()});return}this.texture=r({data:this.iconService.getCanvas(),mag:H.LINEAR,min:H.LINEAR_MIPMAP_LINEAR,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128,mipmap:!0})})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,UV:10})}getUninforms(){if(this.rendererService.getDirty()){var e;(e=this.texture)===null||e===void 0||e.bind()}const r=this.getCommonUniformsInfo(),n=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},r.uniformsOption),n.uniformsOption)}getCommonUniformsInfo(){const{raisingHeight:e=0,heightfixed:r=!1}=this.layer.getLayerConfig(),n={u_textSize:[1024,this.iconService.canvasHeight||128],u_raisingHeight:Number(e),u_heightfixed:Number(r),u_texture:this.texture};return this.textures=[this.texture],this.getUniformsBufferInfo(n)}initModels(){var e=this;return bt(function*(){return e.iconService.on("imageUpdate",e.updateTexture),e.updateTexture(),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"pointImage",vertexShader:jk,fragmentShader:Hk,triangulation:ON,defines:e.getDefines(),inject:e.getInject(),depth:{enable:!1},primitive:H.POINTS})]})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=5}=e;return Array.isArray(r)?[r[0]]:[r]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_Uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{shape:n}=e,{x:a,y:l}=r[n]||{x:-64,y:-64};return[a,l]}}})}}const Xk=`in vec4 v_color; +`;class iE extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"updateTexture",()=>{const{createTexture2D:r}=this.rendererService;if(this.texture){this.texture.update({data:this.iconService.getCanvas(),mag:"linear",min:"linear mipmap nearest",mipmap:!0}),setTimeout(()=>{this.layerService.throttleRenderLayers()});return}this.texture=r({data:this.iconService.getCanvas(),mag:H.LINEAR,min:H.LINEAR_MIPMAP_LINEAR,premultiplyAlpha:!1,width:1024,height:this.iconService.canvasHeight||128,mipmap:!0})})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,UV:10})}getUninforms(){if(this.rendererService.getDirty()){var e;(e=this.texture)===null||e===void 0||e.bind()}const r=this.getCommonUniformsInfo(),n=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},r.uniformsOption),n.uniformsOption)}getCommonUniformsInfo(){const{raisingHeight:e=0,heightfixed:r=!1}=this.layer.getLayerConfig(),n={u_textSize:[1024,this.iconService.canvasHeight||128],u_raisingHeight:Number(e),u_heightfixed:Number(r),u_texture:this.texture};return this.textures=[this.texture],this.getUniformsBufferInfo(n)}initModels(){var e=this;return bt(function*(){return e.iconService.on("imageUpdate",e.updateTexture),e.updateTexture(),e.buildModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.iconService.off("imageUpdate",this.updateTexture)}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"pointImage",vertexShader:zk,fragmentShader:Uk,triangulation:IN,defines:e.getDefines(),inject:e.getInject(),depth:{enable:!1},primitive:H.POINTS})]})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=5}=e;return Array.isArray(r)?[r[0]]:[r]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_Uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:e=>{const r=this.iconService.getIconMap(),{shape:n}=e,{x:a,y:l}=r[n]||{x:-64,y:-64};return[a,l]}}})}}const Vk=`in vec4 v_color; out vec4 outputColor; void main() { outputColor = v_color; -}`,Wk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +}`,Hk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_SIZE) in float a_Size; @@ -3286,7 +3286,7 @@ void main() { gl_PointSize = a_Size * u_size_scale * 2.0 * u_DevicePixelRatio; } -`;function nx(t){const e=t.coordinates;return{vertices:[...e],indices:[0],size:e.length}}class oE extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9})}getDefaultStyle(){return{blend:"additive"}}getCommonUniformsInfo(){const e={u_size_scale:.5};return this.getUniformsBufferInfo(e)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.layer.triangulation=nx,e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"pointNormal",vertexShader:Wk,fragmentShader:Xk,triangulation:nx,defines:e.getDefines(),inject:e.getInject(),depth:{enable:!1},primitive:H.POINTS,pick:!1})]})()}clearModels(){}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0]]:[r]}}})}}const Gk=` +`;function nx(t){const e=t.coordinates;return{vertices:[...e],indices:[0],size:e.length}}class oE extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9})}getDefaultStyle(){return{blend:"additive"}}getCommonUniformsInfo(){const e={u_size_scale:.5};return this.getUniformsBufferInfo(e)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.layer.triangulation=nx,e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"pointNormal",vertexShader:Hk,fragmentShader:Vk,triangulation:nx,defines:e.getDefines(),inject:e.getInject(),depth:{enable:!1},primitive:H.POINTS,pick:!1})]})()}clearModels(){}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=1}=e;return Array.isArray(r)?[r[0]]:[r]}}})}}const jk=` layout(std140) uniform commonUniorm{ float u_additive; float u_size_unit; @@ -3338,7 +3338,7 @@ void main() { outputColor.a *= radar_v; } -`,Zk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,Xk=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_SIZE) in float a_Size; @@ -3391,8 +3391,8 @@ void main() { setPickingColor(a_PickingColor); } -`;class $k extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,EXTRUDE:10})}getCommonUniformsInfo(){const{blend:e,speed:r=1,unit:n="pixel"}=this.layer.getLayerConfig(),a={u_additive:e==="additive"?1:0,u_size_unit:v2[n],u_speed:r,u_time:this.layer.getLayerAnimateTime()};return this.getUniformsBufferInfo(a)}getAnimateUniforms(){return{}}getAttribute(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),$h)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"pointRadar",vertexShader:Zk,fragmentShader:Gk,triangulation:$h,defines:e.getDefines(),inject:e.getInject(),depth:{enable:!1}})]})()}animateOption2Array(e){return[e.enable?0:1,e.speed||1,e.rings||3,0]}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Lr.Attribute,descriptor:{name:"a_Extrude",shaderLocation:this.attributeLocation.EXTRUDE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a)=>{const l=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],o=a%4*3;return[l[o],l[o+1],l[o+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{shaderLocation:this.attributeLocation.SIZE,name:"a_Size",buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=5}=e;return Array.isArray(r)?[r[0]]:[r]}}})}}class qk{constructor(e,r,n){I(this,"boxCells",[]),I(this,"xCellCount",void 0),I(this,"yCellCount",void 0),I(this,"boxKeys",void 0),I(this,"bboxes",void 0),I(this,"width",void 0),I(this,"height",void 0),I(this,"xScale",void 0),I(this,"yScale",void 0),I(this,"boxUid",void 0);const a=this.boxCells;this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(r/n);for(let l=0;lthis.width||a<0||r>this.height)return l?!1:[];const p=[];if(e<=0&&r<=0&&this.width<=n&&this.height<=a){if(l)return!0;for(let v=0;v0:p}queryCell(e,r,n,a,l,o,p,m){const v=p.seenUids,E=this.boxCells[l];if(E!==null){const b=this.bboxes;for(const A of E)if(!v.box[A]){v.box[A]=!0;const R=A*4;if(e<=b[R+2]&&r<=b[R+3]&&n>=b[R+0]&&a>=b[R+1]&&(!m||m(this.boxKeys[A]))){if(p.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[A],x1:b[R],y1:b[R+1],x2:b[R+2],y2:b[R+3]})}}}return!1}forEachCell(e,r,n,a,l,o,p,m){const v=this.convertToXCellCoord(e),E=this.convertToYCellCoord(r),b=this.convertToXCellCoord(n),A=this.convertToYCellCoord(a);for(let R=v;R<=b;R++)for(let O=E;O<=A;O++){const D=this.xCellCount*O+R;if(l.call(this,e,r,n,a,D,o,p,m))return}}convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}}const Yk=qk;class Kk{constructor(e,r){I(this,"width",void 0),I(this,"height",void 0),I(this,"grid",void 0),I(this,"viewportPadding",100),I(this,"screenRightBoundary",void 0),I(this,"screenBottomBoundary",void 0),I(this,"gridRightBoundary",void 0),I(this,"gridBottomBoundary",void 0),this.width=e,this.height=r,this.viewportPadding=Math.max(e,r),this.grid=new Yk(e+this.viewportPadding,r+this.viewportPadding,25),this.screenRightBoundary=e+this.viewportPadding,this.screenBottomBoundary=r+this.viewportPadding,this.gridRightBoundary=e+2*this.viewportPadding,this.gridBottomBoundary=r+2*this.viewportPadding}placeCollisionBox(e){const r=e.x1+e.anchorPointX+this.viewportPadding,n=e.y1+e.anchorPointY+this.viewportPadding,a=e.x2+e.anchorPointX+this.viewportPadding,l=e.y2+e.anchorPointY+this.viewportPadding;return!this.isInsideGrid(r,n,a,l)||this.grid.hitTest(r,n,a,l)?{box:[]}:{box:[r,n,a,l]}}insertCollisionBox(e,r){const n={featureIndex:r};this.grid.insert(n,e[0],e[1],e[2],e[3])}project(e,r,n){const a=yT(r,n,0,1),l=D8(),o=gT(...e);return W1(l,a,o),{x:(l[0]/l[3]+1)/2*this.width+this.viewportPadding,y:(-l[1]/l[3]+1)/2*this.height+this.viewportPadding}}isInsideGrid(e,r,n,a){return n>=0&&e=0&&r{if(W.split("").forEach(G=>{const Y=e[G],Q=0;Y&&(b.push({glyph:G,x:m,y:v+Q,vertical:!1,scale:1,metrics:Y}),m+=Y.advance+o)}),b.length!==R){const G=m-o;E=Math.max(G,E),sE(b,e,R,b.length-1,A)}m=0,v-=n+5});const{horizontalAlign:O,verticalAlign:D}=aE(a);lE(b,A,O,D,E,n,r.length);const N=v- -8;t.top+=-D*N,t.bottom=t.top-N,t.left+=-O*E,t.right=t.left+E}function Jk(t,e,r,n,a,l,o){let m=0,v=-8,E=0;const b=t.positionedGlyphs,A=l==="right"?1:l==="left"?0:.5,R=b.length;r.forEach(W=>{const G=e[W],Y=0;if(G&&(b.push({glyph:W,x:G.advance/2,y:v+Y,vertical:!1,scale:1,metrics:G}),m+=G.advance+o),b.length!==R){const Q=m-o;E=Math.max(Q,E),sE(b,e,R,b.length-1,A)}m=0,v-=n+5});const{horizontalAlign:O,verticalAlign:D}=aE(a);lE(b,A,O,D,E,n,r.length);const N=v- -8;t.top+=-D*N,t.bottom=t.top-N,t.left+=-O*E,t.right=t.left+E}function eU(t,e,r,n,a,l,o=[0,0],p){const m=t.split(` -`),v=[],E={positionedGlyphs:v,top:o[1],bottom:o[1],left:o[0],right:o[0],lineCount:m.length,text:t};return p?Jk(E,e,m,r,n,a,l):Qk(E,e,m,r,n,a,l),v.length?E:!1}function tU(t,e=[0,0],r){const{positionedGlyphs:n=[]}=t,a=[];for(const l of n){const o=l.metrics,p=4,m=o.advance*l.scale/2,v=r?[l.x+m,l.y]:[0,0],E=r?[0,0]:[l.x+m+e[0],l.y+e[1]],b=(0-p)*l.scale-m+E[0],A=(0-p)*l.scale+E[1],R=b+o.width*l.scale,O=A+o.height*l.scale,D={x:b,y:A},N={x:R,y:A},W={x:b,y:O},G={x:R,y:O};a.push({tl:D,tr:N,bl:W,br:G,tex:o,glyphOffset:v})}return a}const ix=`#define SDF_PX 8.0 +`;class Wk extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,EXTRUDE:10})}getCommonUniformsInfo(){const{blend:e,speed:r=1,unit:n="pixel"}=this.layer.getLayerConfig(),a={u_additive:e==="additive"?1:0,u_size_unit:v2[n],u_speed:r,u_time:this.layer.getLayerAnimateTime()};return this.getUniformsBufferInfo(a)}getAnimateUniforms(){return{}}getAttribute(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),$h)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"pointRadar",vertexShader:Xk,fragmentShader:jk,triangulation:$h,defines:e.getDefines(),inject:e.getInject(),depth:{enable:!1}})]})()}animateOption2Array(e){return[e.enable?0:1,e.speed||1,e.rings||3,0]}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Lr.Attribute,descriptor:{name:"a_Extrude",shaderLocation:this.attributeLocation.EXTRUDE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a)=>{const l=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],o=a%4*3;return[l[o],l[o+1],l[o+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{shaderLocation:this.attributeLocation.SIZE,name:"a_Size",buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=5}=e;return Array.isArray(r)?[r[0]]:[r]}}})}}class Gk{constructor(e,r,n){I(this,"boxCells",[]),I(this,"xCellCount",void 0),I(this,"yCellCount",void 0),I(this,"boxKeys",void 0),I(this,"bboxes",void 0),I(this,"width",void 0),I(this,"height",void 0),I(this,"xScale",void 0),I(this,"yScale",void 0),I(this,"boxUid",void 0);const a=this.boxCells;this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(r/n);for(let l=0;lthis.width||a<0||r>this.height)return l?!1:[];const p=[];if(e<=0&&r<=0&&this.width<=n&&this.height<=a){if(l)return!0;for(let v=0;v0:p}queryCell(e,r,n,a,l,o,p,m){const v=p.seenUids,E=this.boxCells[l];if(E!==null){const b=this.bboxes;for(const A of E)if(!v.box[A]){v.box[A]=!0;const R=A*4;if(e<=b[R+2]&&r<=b[R+3]&&n>=b[R+0]&&a>=b[R+1]&&(!m||m(this.boxKeys[A]))){if(p.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[A],x1:b[R],y1:b[R+1],x2:b[R+2],y2:b[R+3]})}}}return!1}forEachCell(e,r,n,a,l,o,p,m){const v=this.convertToXCellCoord(e),E=this.convertToYCellCoord(r),b=this.convertToXCellCoord(n),A=this.convertToYCellCoord(a);for(let R=v;R<=b;R++)for(let O=E;O<=A;O++){const D=this.xCellCount*O+R;if(l.call(this,e,r,n,a,D,o,p,m))return}}convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}}const Zk=Gk;class $k{constructor(e,r){I(this,"width",void 0),I(this,"height",void 0),I(this,"grid",void 0),I(this,"viewportPadding",100),I(this,"screenRightBoundary",void 0),I(this,"screenBottomBoundary",void 0),I(this,"gridRightBoundary",void 0),I(this,"gridBottomBoundary",void 0),this.width=e,this.height=r,this.viewportPadding=Math.max(e,r),this.grid=new Zk(e+this.viewportPadding,r+this.viewportPadding,25),this.screenRightBoundary=e+this.viewportPadding,this.screenBottomBoundary=r+this.viewportPadding,this.gridRightBoundary=e+2*this.viewportPadding,this.gridBottomBoundary=r+2*this.viewportPadding}placeCollisionBox(e){const r=e.x1+e.anchorPointX+this.viewportPadding,n=e.y1+e.anchorPointY+this.viewportPadding,a=e.x2+e.anchorPointX+this.viewportPadding,l=e.y2+e.anchorPointY+this.viewportPadding;return!this.isInsideGrid(r,n,a,l)||this.grid.hitTest(r,n,a,l)?{box:[]}:{box:[r,n,a,l]}}insertCollisionBox(e,r){const n={featureIndex:r};this.grid.insert(n,e[0],e[1],e[2],e[3])}project(e,r,n){const a=gT(r,n,0,1),l=D8(),o=mT(...e);return W1(l,a,o),{x:(l[0]/l[3]+1)/2*this.width+this.viewportPadding,y:(-l[1]/l[3]+1)/2*this.height+this.viewportPadding}}isInsideGrid(e,r,n,a){return n>=0&&e=0&&r{if(W.split("").forEach(G=>{const Y=e[G],Q=0;Y&&(b.push({glyph:G,x:m,y:v+Q,vertical:!1,scale:1,metrics:Y}),m+=Y.advance+o)}),b.length!==R){const G=m-o;E=Math.max(G,E),sE(b,e,R,b.length-1,A)}m=0,v-=n+5});const{horizontalAlign:O,verticalAlign:D}=aE(a);lE(b,A,O,D,E,n,r.length);const N=v- -8;t.top+=-D*N,t.bottom=t.top-N,t.left+=-O*E,t.right=t.left+E}function Yk(t,e,r,n,a,l,o){let m=0,v=-8,E=0;const b=t.positionedGlyphs,A=l==="right"?1:l==="left"?0:.5,R=b.length;r.forEach(W=>{const G=e[W],Y=0;if(G&&(b.push({glyph:W,x:G.advance/2,y:v+Y,vertical:!1,scale:1,metrics:G}),m+=G.advance+o),b.length!==R){const Q=m-o;E=Math.max(Q,E),sE(b,e,R,b.length-1,A)}m=0,v-=n+5});const{horizontalAlign:O,verticalAlign:D}=aE(a);lE(b,A,O,D,E,n,r.length);const N=v- -8;t.top+=-D*N,t.bottom=t.top-N,t.left+=-O*E,t.right=t.left+E}function Kk(t,e,r,n,a,l,o=[0,0],p){const m=t.split(` +`),v=[],E={positionedGlyphs:v,top:o[1],bottom:o[1],left:o[0],right:o[0],lineCount:m.length,text:t};return p?Yk(E,e,m,r,n,a,l):qk(E,e,m,r,n,a,l),v.length?E:!1}function Qk(t,e=[0,0],r){const{positionedGlyphs:n=[]}=t,a=[];for(const l of n){const o=l.metrics,p=4,m=o.advance*l.scale/2,v=r?[l.x+m,l.y]:[0,0],E=r?[0,0]:[l.x+m+e[0],l.y+e[1]],b=(0-p)*l.scale-m+E[0],A=(0-p)*l.scale+E[1],R=b+o.width*l.scale,O=A+o.height*l.scale,D={x:b,y:A},N={x:R,y:A},W={x:b,y:O},G={x:R,y:O};a.push({tl:D,tr:N,bl:W,br:G,tex:o,glyphOffset:v})}return a}const ix=`#define SDF_PX 8.0 #define EDGE_GAMMA 0.105 #define FONT_SIZE 48.0 @@ -3502,7 +3502,7 @@ void main() { setPickingColor(a_PickingColor); } -`,{isEqual:Id}=Ko;function ax(t){const e=this,r=t.id,n=[],a=[];if(!e.glyphInfoMap||!e.glyphInfoMap[r])return{vertices:[],indices:[],size:7};const l=e.glyphInfoMap[r].centroid,o=l.length===2?[l[0],l[1],0]:l;return e.glyphInfoMap[r].glyphQuads.forEach((p,m)=>{n.push(...o,p.tex.x,p.tex.y+p.tex.height,p.tl.x,p.tl.y,...o,p.tex.x+p.tex.width,p.tex.y+p.tex.height,p.tr.x,p.tr.y,...o,p.tex.x+p.tex.width,p.tex.y,p.br.x,p.br.y,...o,p.tex.x,p.tex.y,p.bl.x,p.bl.y),a.push(0+m*4,1+m*4,2+m*4,2+m*4,3+m*4,0+m*4)}),{vertices:n,indices:a,size:7}}class uE extends qi{constructor(...e){var r;super(...e),r=this,I(this,"glyphInfo",void 0),I(this,"glyphInfoMap",{}),I(this,"rawEncodeData",void 0),I(this,"texture",void 0),I(this,"currentZoom",-1),I(this,"extent",void 0),I(this,"textureHeight",0),I(this,"textCount",0),I(this,"preTextStyle",{}),I(this,"mapping",bt(function*(){r.initGlyph(),r.updateTexture(),yield r.reBuildModel()}))}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,TEXT_OFFSETS:10,UV:11})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t(_t({},e.uniformsOption),r.uniformsOption),{u_sdf_map:this.textures[0]})}getCommonUniformsInfo(){const{stroke:e="#fff",strokeWidth:r=0,halo:n=.5,gamma:a=2,raisingHeight:l=0}=this.layer.getLayerConfig(),o=this.getFontServiceMapping(),p=this.getFontServiceCanvas();o&&Object.keys(o).length!==this.textCount&&p&&(this.updateTexture(),this.textCount=Object.keys(o).length),this.preTextStyle=this.getTextStyle();const m={u_stroke_color:Fi(e),u_sdf_map_size:[(p==null?void 0:p.width)||1,(p==null?void 0:p.height)||1],u_raisingHeight:Number(l),u_stroke_width:r,u_gamma_scale:a,u_halo_blur:n};return this.getUniformsBufferInfo(m)}initModels(){var e=this;return bt(function*(){return e.bindEvent(),e.extent=e.textExtent(),e.rawEncodeData=e.layer.getEncodedData(),e.preTextStyle=e.getTextStyle(),e.initUniformsBuffer(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{textAllowOverlap:r=!1}=e.layer.getLayerConfig();return e.initGlyph(),e.updateTexture(),r||e.filterGlyphs(),[yield e.layer.buildLayerModel({moduleName:"pointText",vertexShader:ox,fragmentShader:ix,defines:e.getDefines(),inject:e.getInject(),triangulation:ax.bind(e),depth:{enable:!1}})]})()}needUpdate(){var e=this;return bt(function*(){const{textAllowOverlap:r=!1,textAnchor:n="center",textOffset:a,padding:l,fontFamily:o,fontWeight:p}=e.getTextStyle();if(!Id(l,e.preTextStyle.padding)||!Id(a,e.preTextStyle.textOffset)||!Id(n,e.preTextStyle.textAnchor)||!Id(o,e.preTextStyle.fontFamily)||!Id(p,e.preTextStyle.fontWeight))return yield e.mapping(),!0;if(r)return!1;const m=e.mapService.getZoom(),v=e.mapService.getBounds(),E=i7(e.extent,v);return Math.abs(e.currentZoom-m)>.5||!E||r!==e.preTextStyle.textAllowOverlap?(yield e.reBuildModel(),!0):!1})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.layer.off("remapping",this.mapping)}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:Lr.Attribute,descriptor:{shaderLocation:this.attributeLocation.TEXT_OFFSETS,name:"a_textOffsets",buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:2,update:(e,r,n)=>[n[5],n[6]]}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:Lr.Attribute,descriptor:{name:"a_tex",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:(e,r,n)=>[n[3],n[4]]}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=12}=e;return Array.isArray(r)?[r[0]]:[r]}}})}bindEvent(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}textExtent(){const e=this.mapService.getBounds();return qv(e,.5)}initTextFont(){const{fontWeight:e,fontFamily:r}=this.getTextStyle(),n=this.rawEncodeData,a=[];n.forEach(l=>{let{shape:o=""}=l;o=o.toString();for(const p of o)a.indexOf(p)===-1&&a.push(p)}),this.fontService.setFontOptions({characterSet:a,fontWeight:e,fontFamily:r,iconfont:!1})}initIconFontTex(){const{fontWeight:e,fontFamily:r}=this.getTextStyle(),n=this.rawEncodeData,a=[];n.forEach(l=>{let{shape:o=""}=l;o=`${o}`,a.indexOf(o)===-1&&a.push(o)}),this.fontService.setFontOptions({characterSet:a,fontWeight:e,fontFamily:r,iconfont:!0})}getTextStyle(){const{fontWeight:e="400",fontFamily:r="sans-serif",textAllowOverlap:n=!1,padding:a=[0,0],textAnchor:l="center",textOffset:o=[0,0],opacity:p=1,strokeOpacity:m=1,strokeWidth:v=0,stroke:E="#000"}=this.layer.getLayerConfig();return{fontWeight:e,fontFamily:r,textAllowOverlap:n,padding:a,textAnchor:l,textOffset:o,opacity:p,strokeOpacity:m,strokeWidth:v,stroke:E}}generateGlyphLayout(e){const r=this.getFontServiceMapping(),{spacing:n=2,textAnchor:a="center",textOffset:l}=this.layer.getLayerConfig(),o=this.rawEncodeData;this.glyphInfo=o.map(p=>{const{shape:m="",id:v,size:E=1}=p,b=p.textOffset?p.textOffset:l||[0,0],A=p.textAnchor?p.textAnchor:a||"center",R=eU(m.toString(),r,E,A,"left",n,b,e),O=tU(R,b,!1);return p.shaping=R,p.glyphQuads=O,p.centroid=Kh(p.coordinates),this.glyphInfoMap[v]={shaping:R,glyphQuads:O,centroid:Kh(p.coordinates)},p})}getFontServiceMapping(){const{fontWeight:e="400",fontFamily:r="sans-serif"}=this.layer.getLayerConfig();return this.fontService.getMappingByKey(`${r}_${e}`)}getFontServiceCanvas(){const{fontWeight:e="400",fontFamily:r="sans-serif"}=this.layer.getLayerConfig();return this.fontService.getCanvasByKey(`${r}_${e}`)}filterGlyphs(){const{padding:e=[0,0],textAllowOverlap:r=!1}=this.layer.getLayerConfig();if(r)return;this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();const{width:n,height:a}=this.rendererService.getViewportSize(),l=new Kk(n,a);this.glyphInfo.filter(p=>{const{shaping:m,id:v=0}=p,E=p.centroid,A=p.size/16,R=this.mapService.lngLatToContainer(E),{box:O}=l.placeCollisionBox({x1:m.left*A-e[0],x2:m.right*A+e[0],y1:m.top*A-e[1],y2:m.bottom*A+e[1],anchorPointX:R.x,anchorPointY:R.y});return O&&O.length?(l.insertCollisionBox(O,v),!0):!1}).forEach(p=>{this.glyphInfoMap[p.id]=p})}initGlyph(){const{iconfont:e=!1}=this.layer.getLayerConfig();e?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(e)}updateTexture(){const{createTexture2D:e}=this.rendererService,r=this.getFontServiceCanvas();this.textureHeight=r.height,this.texture&&this.texture.destroy(),this.texture=e({data:r,mag:H.LINEAR,min:H.LINEAR,width:r.width,height:r.height}),this.textures=[this.texture]}reBuildModel(){var e=this;return bt(function*(){e.filterGlyphs();const r=yield e.layer.buildLayerModel({moduleName:"pointText",vertexShader:ox,fragmentShader:ix,triangulation:ax.bind(e),defines:e.getDefines(),inject:e.getInject(),depth:{enable:!1}});e.layer.models=[r]})()}}const rU={fillImage:Vk,fill:nE,radar:$k,image:iE,normal:oE,simplePoint:Ck,extrude:rE,text:uE,earthFill:Dk,earthExtrude:Pk},nU=rU;class Dm extends Np{constructor(...e){super(...e),I(this,"type","PointLayer"),I(this,"enableShaderEncodeStyles",["stroke","offsets","opacity","rotation"]),I(this,"enableDataEncodeStyles",["textOffset","textAnchor"]),I(this,"defaultSourceConfig",{data:[],options:{parser:{type:"json",x:"lng",y:"lat"}}})}buildModels(){var e=this;return bt(function*(){const r=e.getModelType();e.layerModel&&e.layerModel.clearModels(),e.layerModel=new nU[r](e),yield e.initLayerModels()})()}rebuildModels(){var e=this;return bt(function*(){yield e.buildModels()})()}getModelTypeWillEmptyData(){if(this.shapeOption){const{field:e,values:r}=this.shapeOption,{shape2d:n}=this.getLayerConfig(),a=this.iconService.getIconMap();if(e&&(n==null?void 0:n.indexOf(e))!==-1)return"fill";if(r==="text")return"text";if(r&&r instanceof Array){for(const l of r)if(typeof l=="string"&&a.hasOwnProperty(l))return"image"}}return"normal"}getDefaultConfig(){const e=this.getModelType();return{fillImage:{},normal:{blend:"additive"},radar:{},simplePoint:{},fill:{blend:"normal"},extrude:{},image:{},text:{blend:"normal"},tile:{},tileText:{},earthFill:{},earthExtrude:{}}[e]}getModelType(){const e=this.getEncodedData(),{shape2d:r,shape3d:n,billboard:a=!0}=this.getLayerConfig(),l=this.iconService.getIconMap(),o=e.find(p=>p.hasOwnProperty("shape"));if(o){const p=o.shape;return p==="dot"?"normal":p==="simple"?"simplePoint":p==="radar"?"radar":this.layerType==="fillImage"||a===!1?"fillImage":(r==null?void 0:r.indexOf(p))!==-1?this.mapService.version==="GLOBEL"?"earthFill":"fill":(n==null?void 0:n.indexOf(p))!==-1?this.mapService.version==="GLOBEL"?"earthExtrude":"extrude":l.hasOwnProperty(p)?"image":"text"}else return this.getModelTypeWillEmptyData()}}function iU(t){return _v.apply(this,arguments)}function _v(){return _v=bt(function*(t){if(window.createImageBitmap){const e=yield fetch(t);return yield createImageBitmap(yield e.blob())}else{const e=new window.Image;return new Promise(r=>{e.onload=()=>r(e),e.src=t,e.crossOrigin="Anonymous"})}}),_v.apply(this,arguments)}const oU=`layout(std140) uniform commonUniforms { +`,{isEqual:Id}=Ko;function ax(t){const e=this,r=t.id,n=[],a=[];if(!e.glyphInfoMap||!e.glyphInfoMap[r])return{vertices:[],indices:[],size:7};const l=e.glyphInfoMap[r].centroid,o=l.length===2?[l[0],l[1],0]:l;return e.glyphInfoMap[r].glyphQuads.forEach((p,m)=>{n.push(...o,p.tex.x,p.tex.y+p.tex.height,p.tl.x,p.tl.y,...o,p.tex.x+p.tex.width,p.tex.y+p.tex.height,p.tr.x,p.tr.y,...o,p.tex.x+p.tex.width,p.tex.y,p.br.x,p.br.y,...o,p.tex.x,p.tex.y,p.bl.x,p.bl.y),a.push(0+m*4,1+m*4,2+m*4,2+m*4,3+m*4,0+m*4)}),{vertices:n,indices:a,size:7}}class uE extends qi{constructor(...e){var r;super(...e),r=this,I(this,"glyphInfo",void 0),I(this,"glyphInfoMap",{}),I(this,"rawEncodeData",void 0),I(this,"texture",void 0),I(this,"currentZoom",-1),I(this,"extent",void 0),I(this,"textureHeight",0),I(this,"textCount",0),I(this,"preTextStyle",{}),I(this,"mapping",bt(function*(){r.initGlyph(),r.updateTexture(),yield r.reBuildModel()}))}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,TEXT_OFFSETS:10,UV:11})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t(_t({},e.uniformsOption),r.uniformsOption),{u_sdf_map:this.textures[0]})}getCommonUniformsInfo(){const{stroke:e="#fff",strokeWidth:r=0,halo:n=.5,gamma:a=2,raisingHeight:l=0}=this.layer.getLayerConfig(),o=this.getFontServiceMapping(),p=this.getFontServiceCanvas();o&&Object.keys(o).length!==this.textCount&&p&&(this.updateTexture(),this.textCount=Object.keys(o).length),this.preTextStyle=this.getTextStyle();const m={u_stroke_color:Fi(e),u_sdf_map_size:[(p==null?void 0:p.width)||1,(p==null?void 0:p.height)||1],u_raisingHeight:Number(l),u_stroke_width:r,u_gamma_scale:a,u_halo_blur:n};return this.getUniformsBufferInfo(m)}initModels(){var e=this;return bt(function*(){return e.bindEvent(),e.extent=e.textExtent(),e.rawEncodeData=e.layer.getEncodedData(),e.preTextStyle=e.getTextStyle(),e.initUniformsBuffer(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{textAllowOverlap:r=!1}=e.layer.getLayerConfig();return e.initGlyph(),e.updateTexture(),r||e.filterGlyphs(),[yield e.layer.buildLayerModel({moduleName:"pointText",vertexShader:ox,fragmentShader:ix,defines:e.getDefines(),inject:e.getInject(),triangulation:ax.bind(e),depth:{enable:!1}})]})()}needUpdate(){var e=this;return bt(function*(){const{textAllowOverlap:r=!1,textAnchor:n="center",textOffset:a,padding:l,fontFamily:o,fontWeight:p}=e.getTextStyle();if(!Id(l,e.preTextStyle.padding)||!Id(a,e.preTextStyle.textOffset)||!Id(n,e.preTextStyle.textAnchor)||!Id(o,e.preTextStyle.fontFamily)||!Id(p,e.preTextStyle.fontWeight))return yield e.mapping(),!0;if(r)return!1;const m=e.mapService.getZoom(),v=e.mapService.getBounds(),E=i7(e.extent,v);return Math.abs(e.currentZoom-m)>.5||!E||r!==e.preTextStyle.textAllowOverlap?(yield e.reBuildModel(),!0):!1})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.layer.off("remapping",this.mapping)}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:Lr.Attribute,descriptor:{shaderLocation:this.attributeLocation.TEXT_OFFSETS,name:"a_textOffsets",buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:2,update:(e,r,n)=>[n[5],n[6]]}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:Lr.Attribute,descriptor:{name:"a_tex",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:(e,r,n)=>[n[3],n[4]]}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=12}=e;return Array.isArray(r)?[r[0]]:[r]}}})}bindEvent(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}textExtent(){const e=this.mapService.getBounds();return qv(e,.5)}initTextFont(){const{fontWeight:e,fontFamily:r}=this.getTextStyle(),n=this.rawEncodeData,a=[];n.forEach(l=>{let{shape:o=""}=l;o=o.toString();for(const p of o)a.indexOf(p)===-1&&a.push(p)}),this.fontService.setFontOptions({characterSet:a,fontWeight:e,fontFamily:r,iconfont:!1})}initIconFontTex(){const{fontWeight:e,fontFamily:r}=this.getTextStyle(),n=this.rawEncodeData,a=[];n.forEach(l=>{let{shape:o=""}=l;o=`${o}`,a.indexOf(o)===-1&&a.push(o)}),this.fontService.setFontOptions({characterSet:a,fontWeight:e,fontFamily:r,iconfont:!0})}getTextStyle(){const{fontWeight:e="400",fontFamily:r="sans-serif",textAllowOverlap:n=!1,padding:a=[0,0],textAnchor:l="center",textOffset:o=[0,0],opacity:p=1,strokeOpacity:m=1,strokeWidth:v=0,stroke:E="#000"}=this.layer.getLayerConfig();return{fontWeight:e,fontFamily:r,textAllowOverlap:n,padding:a,textAnchor:l,textOffset:o,opacity:p,strokeOpacity:m,strokeWidth:v,stroke:E}}generateGlyphLayout(e){const r=this.getFontServiceMapping(),{spacing:n=2,textAnchor:a="center",textOffset:l}=this.layer.getLayerConfig(),o=this.rawEncodeData;this.glyphInfo=o.map(p=>{const{shape:m="",id:v,size:E=1}=p,b=p.textOffset?p.textOffset:l||[0,0],A=p.textAnchor?p.textAnchor:a||"center",R=Kk(m.toString(),r,E,A,"left",n,b,e),O=Qk(R,b,!1);return p.shaping=R,p.glyphQuads=O,p.centroid=Kh(p.coordinates),this.glyphInfoMap[v]={shaping:R,glyphQuads:O,centroid:Kh(p.coordinates)},p})}getFontServiceMapping(){const{fontWeight:e="400",fontFamily:r="sans-serif"}=this.layer.getLayerConfig();return this.fontService.getMappingByKey(`${r}_${e}`)}getFontServiceCanvas(){const{fontWeight:e="400",fontFamily:r="sans-serif"}=this.layer.getLayerConfig();return this.fontService.getCanvasByKey(`${r}_${e}`)}filterGlyphs(){const{padding:e=[0,0],textAllowOverlap:r=!1}=this.layer.getLayerConfig();if(r)return;this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();const{width:n,height:a}=this.rendererService.getViewportSize(),l=new $k(n,a);this.glyphInfo.filter(p=>{const{shaping:m,id:v=0}=p,E=p.centroid,A=p.size/16,R=this.mapService.lngLatToContainer(E),{box:O}=l.placeCollisionBox({x1:m.left*A-e[0],x2:m.right*A+e[0],y1:m.top*A-e[1],y2:m.bottom*A+e[1],anchorPointX:R.x,anchorPointY:R.y});return O&&O.length?(l.insertCollisionBox(O,v),!0):!1}).forEach(p=>{this.glyphInfoMap[p.id]=p})}initGlyph(){const{iconfont:e=!1}=this.layer.getLayerConfig();e?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(e)}updateTexture(){const{createTexture2D:e}=this.rendererService,r=this.getFontServiceCanvas();this.textureHeight=r.height,this.texture&&this.texture.destroy(),this.texture=e({data:r,mag:H.LINEAR,min:H.LINEAR,width:r.width,height:r.height}),this.textures=[this.texture]}reBuildModel(){var e=this;return bt(function*(){e.filterGlyphs();const r=yield e.layer.buildLayerModel({moduleName:"pointText",vertexShader:ox,fragmentShader:ix,triangulation:ax.bind(e),defines:e.getDefines(),inject:e.getInject(),depth:{enable:!1}});e.layer.models=[r]})()}}const Jk={fillImage:kk,fill:nE,radar:Wk,image:iE,normal:oE,simplePoint:Ak,extrude:rE,text:uE,earthFill:Pk,earthExtrude:Rk},eU=Jk;class Dm extends Np{constructor(...e){super(...e),I(this,"type","PointLayer"),I(this,"enableShaderEncodeStyles",["stroke","offsets","opacity","rotation"]),I(this,"enableDataEncodeStyles",["textOffset","textAnchor"]),I(this,"defaultSourceConfig",{data:[],options:{parser:{type:"json",x:"lng",y:"lat"}}})}buildModels(){var e=this;return bt(function*(){const r=e.getModelType();e.layerModel&&e.layerModel.clearModels(),e.layerModel=new eU[r](e),yield e.initLayerModels()})()}rebuildModels(){var e=this;return bt(function*(){yield e.buildModels()})()}getModelTypeWillEmptyData(){if(this.shapeOption){const{field:e,values:r}=this.shapeOption,{shape2d:n}=this.getLayerConfig(),a=this.iconService.getIconMap();if(e&&(n==null?void 0:n.indexOf(e))!==-1)return"fill";if(r==="text")return"text";if(r&&r instanceof Array){for(const l of r)if(typeof l=="string"&&a.hasOwnProperty(l))return"image"}}return"normal"}getDefaultConfig(){const e=this.getModelType();return{fillImage:{},normal:{blend:"additive"},radar:{},simplePoint:{},fill:{blend:"normal"},extrude:{},image:{},text:{blend:"normal"},tile:{},tileText:{},earthFill:{},earthExtrude:{}}[e]}getModelType(){const e=this.getEncodedData(),{shape2d:r,shape3d:n,billboard:a=!0}=this.getLayerConfig(),l=this.iconService.getIconMap(),o=e.find(p=>p.hasOwnProperty("shape"));if(o){const p=o.shape;return p==="dot"?"normal":p==="simple"?"simplePoint":p==="radar"?"radar":this.layerType==="fillImage"||a===!1?"fillImage":(r==null?void 0:r.indexOf(p))!==-1?this.mapService.version==="GLOBEL"?"earthFill":"fill":(n==null?void 0:n.indexOf(p))!==-1?this.mapService.version==="GLOBEL"?"earthExtrude":"extrude":l.hasOwnProperty(p)?"image":"text"}else return this.getModelTypeWillEmptyData()}}function tU(t){return _v.apply(this,arguments)}function _v(){return _v=bt(function*(t){if(window.createImageBitmap){const e=yield fetch(t);return yield createImageBitmap(yield e.blob())}else{const e=new window.Image;return new Promise(r=>{e.onload=()=>r(e),e.src=t,e.crossOrigin="Anonymous"})}}),_v.apply(this,arguments)}const rU=`layout(std140) uniform commonUniforms { vec4 u_sourceColor; vec4 u_targetColor; float u_linearColor; @@ -3527,7 +3527,7 @@ void main() { outputColor = filterColor(outputColor); } -`,aU=` +`,nU=` layout(std140) uniform commonUniforms { vec4 u_sourceColor; vec4 u_targetColor; @@ -3577,7 +3577,7 @@ void main() { outputColor = filterColorAlpha(outputColor, lightWeight); } -`,sU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,iU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_SIZE) in float a_Size; @@ -3630,7 +3630,7 @@ void main() { setPickingColor(a_PickingColor); } -`,lU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,oU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_SIZE) in float a_Size; @@ -3704,7 +3704,7 @@ void main() { setPickingColor(a_PickingColor); } -`,uU=`uniform sampler2D u_texture; +`,aU=`uniform sampler2D u_texture; layout(std140) uniform commonUniforms { vec4 u_sourceColor; @@ -3758,7 +3758,7 @@ void main() { outputColor.a *= opacity; outputColor = filterColor(outputColor); } -`,cU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,sU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_SIZE) in float a_Size; @@ -3812,7 +3812,7 @@ void main() { setPickingColor(a_PickingColor); } -`;class hU extends qi{constructor(...e){super(...e),I(this,"texture",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,NORMAL:10,UV:11})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{mapTexture:e,heightfixed:r=!1,raisingHeight:n=0,topsurface:a=!0,sidesurface:l=!0,sourceColor:o,targetColor:p}=this.layer.getLayerConfig();let m=0,v=[1,1,1,1],E=[1,1,1,1];o&&p&&(v=Fi(o),E=Fi(p),m=1);const b={u_sourceColor:v,u_targetColor:E,u_linearColor:m,u_topsurface:Number(a),u_sidesurface:Number(l),u_heightfixed:Number(r),u_raisingHeight:Number(n)};return e&&this.texture&&(b.u_texture=this.texture,this.textures=[this.texture]),this.getUniformsBufferInfo(b)}initModels(){var e=this;return bt(function*(){return yield e.loadTexture(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{frag:r,vert:n,type:a}=e.getShaders();return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:a,vertexShader:n,fragmentShader:r,depth:{enable:!0},defines:e.getDefines(),inject:e.getInject(),triangulation:eE})]})()}getShaders(){const{pickLight:e,mapTexture:r}=this.layer.getLayerConfig();return r?{frag:uU,vert:cU,type:"polygonExtrudeTexture"}:e?{frag:aU,vert:sU,type:"polygonExtrudePickLight"}:{frag:oU,vert:lU,type:"polygonExtrude"}}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.textures=[]}registerBuiltinAttributes(){const e=this.layer.getSource().extent,r=e[2]-e[0],n=e[3]-e[1];this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"uvs",type:Lr.Attribute,descriptor:{name:"a_uvs",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(a,l,o)=>{const p=o[0],m=o[1];return[(p-e[0])/r,(m-e[1])/n,o[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Lr.Attribute,descriptor:{name:"a_Normal",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(a,l,o,p,m)=>m}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:a=>{const{size:l=10}=a;return Array.isArray(l)?[l[0]]:[l]}}})}loadTexture(){var e=this;return bt(function*(){const{mapTexture:r}=e.layer.getLayerConfig(),{createTexture2D:n}=e.rendererService;if(e.texture=n({height:1,width:1}),r){const a=yield iU(r);e.texture=n({data:a,width:a.width,height:a.height,wrapS:H.CLAMP_TO_EDGE,wrapT:H.CLAMP_TO_EDGE,min:H.LINEAR,mag:H.LINEAR})}})()}}const fU=` +`;class lU extends qi{constructor(...e){super(...e),I(this,"texture",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,NORMAL:10,UV:11})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{mapTexture:e,heightfixed:r=!1,raisingHeight:n=0,topsurface:a=!0,sidesurface:l=!0,sourceColor:o,targetColor:p}=this.layer.getLayerConfig();let m=0,v=[1,1,1,1],E=[1,1,1,1];o&&p&&(v=Fi(o),E=Fi(p),m=1);const b={u_sourceColor:v,u_targetColor:E,u_linearColor:m,u_topsurface:Number(a),u_sidesurface:Number(l),u_heightfixed:Number(r),u_raisingHeight:Number(n)};return e&&this.texture&&(b.u_texture=this.texture,this.textures=[this.texture]),this.getUniformsBufferInfo(b)}initModels(){var e=this;return bt(function*(){return yield e.loadTexture(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{frag:r,vert:n,type:a}=e.getShaders();return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:a,vertexShader:n,fragmentShader:r,depth:{enable:!0},defines:e.getDefines(),inject:e.getInject(),triangulation:eE})]})()}getShaders(){const{pickLight:e,mapTexture:r}=this.layer.getLayerConfig();return r?{frag:aU,vert:sU,type:"polygonExtrudeTexture"}:e?{frag:nU,vert:iU,type:"polygonExtrudePickLight"}:{frag:rU,vert:oU,type:"polygonExtrude"}}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy(),this.textures=[]}registerBuiltinAttributes(){const e=this.layer.getSource().extent,r=e[2]-e[0],n=e[3]-e[1];this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"uvs",type:Lr.Attribute,descriptor:{name:"a_uvs",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(a,l,o)=>{const p=o[0],m=o[1];return[(p-e[0])/r,(m-e[1])/n,o[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Lr.Attribute,descriptor:{name:"a_Normal",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(a,l,o,p,m)=>m}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:a=>{const{size:l=10}=a;return Array.isArray(l)?[l[0]]:[l]}}})}loadTexture(){var e=this;return bt(function*(){const{mapTexture:r}=e.layer.getLayerConfig(),{createTexture2D:n}=e.rendererService;if(e.texture=n({height:1,width:1}),r){const a=yield tU(r);e.texture=n({data:a,width:a.width,height:a.height,wrapS:H.CLAMP_TO_EDGE,wrapT:H.CLAMP_TO_EDGE,min:H.LINEAR,mag:H.LINEAR})}})()}}const uU=` in vec4 v_Color; #pragma include "scene_uniforms" #pragma include "picking" @@ -3822,7 +3822,7 @@ void main() { outputColor = v_Color; outputColor = filterColor(outputColor); } -`,pU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,cU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_SIZE) in float a_Size; @@ -3846,7 +3846,7 @@ void main() { setPickingColor(a_PickingColor); } -`;class dU extends qi{constructor(...e){super(...e),I(this,"texture",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,NORMAL:10,EXTRUSION_BASE:11})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const e={};return this.getUniformsBufferInfo(e)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{frag:r,vert:n,type:a}=e.getShaders();return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:a,vertexShader:n,fragmentShader:r,defines:e.getDefines(),inject:e.getInject(),triangulation:eE,depth:{enable:!0}})]})()}getShaders(){return{frag:fU,vert:pU,type:"polygonExtrude"}}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Lr.Attribute,descriptor:{name:"a_Normal",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a,l)=>l}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=10}=e;return Array.isArray(r)?[r[0]]:[r]}}}),this.styleAttributeService.registerStyleAttribute({name:"extrusionBase",type:Lr.Attribute,descriptor:{name:"a_ExtrusionBase",shaderLocation:this.attributeLocation.EXTRUSION_BASE,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{extrusionBase:r=0}=e;return[r]}}})}}const mU=`in vec4 v_color; +`;class hU extends qi{constructor(...e){super(...e),I(this,"texture",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,SIZE:9,NORMAL:10,EXTRUSION_BASE:11})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const e={};return this.getUniformsBufferInfo(e)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{frag:r,vert:n,type:a}=e.getShaders();return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:a,vertexShader:n,fragmentShader:r,defines:e.getDefines(),inject:e.getInject(),triangulation:eE,depth:{enable:!0}})]})()}getShaders(){return{frag:uU,vert:cU,type:"polygonExtrude"}}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Lr.Attribute,descriptor:{name:"a_Normal",shaderLocation:this.attributeLocation.NORMAL,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(e,r,n,a,l)=>l}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Lr.Attribute,descriptor:{name:"a_Size",shaderLocation:this.attributeLocation.SIZE,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{size:r=10}=e;return Array.isArray(r)?[r[0]]:[r]}}}),this.styleAttributeService.registerStyleAttribute({name:"extrusionBase",type:Lr.Attribute,descriptor:{name:"a_ExtrusionBase",shaderLocation:this.attributeLocation.EXTRUSION_BASE,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:1,update:e=>{const{extrusionBase:r=0}=e;return[r]}}})}}const fU=`in vec4 v_color; #pragma include "scene_uniforms" #pragma include "picking" out vec4 outputColor; @@ -3854,7 +3854,7 @@ void main() { outputColor = v_color; outputColor = filterColor(outputColor); } -`,_U=` +`,pU=` layout(std140) uniform commonUniforms { float u_raisingHeight; float u_opacitylinear; @@ -3875,7 +3875,7 @@ void main() { } outputColor = filterColor(outputColor); } -`,gU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,dU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_LINEAR) in vec3 a_linear; @@ -3911,7 +3911,7 @@ void main() { gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); setPickingColor(a_PickingColor); } -`,vU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,mU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; @@ -3946,7 +3946,7 @@ void main() { setPickingColor(a_PickingColor); } -`;class yU extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,LINEAR:9})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{raisingHeight:e=0,opacityLinear:r={enable:!1,dir:"in"}}=this.layer.getLayerConfig(),n={u_raisingHeight:Number(e),u_opacitylinear:Number(r.enable),u_dir:r.dir==="in"?1:0};return this.getUniformsBufferInfo(n)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{frag:r,vert:n,triangulation:a,type:l}=e.getModelParams();return e.initUniformsBuffer(),e.layer.triangulation=a,[yield e.layer.buildLayerModel({moduleName:l,vertexShader:n,fragmentShader:r,defines:e.getDefines(),inject:e.getInject(),triangulation:a,primitive:H.TRIANGLES,depth:{enable:!1}})]})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute();const{opacityLinear:e={enable:!1,dir:"in"}}=this.layer.getLayerConfig();e.enable&&this.styleAttributeService.registerStyleAttribute({name:"linear",type:Lr.Attribute,descriptor:{name:"a_linear",shaderLocation:this.attributeLocation.LINEAR,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(r,n,a)=>[a[3],a[4],a[5]]}})}getModelParams(){const{opacityLinear:e={enable:!1}}=this.layer.getLayerConfig();return e.enable?{frag:_U,vert:gU,type:"polygonLinear",triangulation:BN}:{frag:mU,vert:vU,type:"polygonFill",triangulation:P3}}}const xU=` +`;class _U extends qi{get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,LINEAR:9})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{raisingHeight:e=0,opacityLinear:r={enable:!1,dir:"in"}}=this.layer.getLayerConfig(),n={u_raisingHeight:Number(e),u_opacitylinear:Number(r.enable),u_dir:r.dir==="in"?1:0};return this.getUniformsBufferInfo(n)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){const{frag:r,vert:n,triangulation:a,type:l}=e.getModelParams();return e.initUniformsBuffer(),e.layer.triangulation=a,[yield e.layer.buildLayerModel({moduleName:l,vertexShader:n,fragmentShader:r,defines:e.getDefines(),inject:e.getInject(),triangulation:a,primitive:H.TRIANGLES,depth:{enable:!1}})]})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute();const{opacityLinear:e={enable:!1,dir:"in"}}=this.layer.getLayerConfig();e.enable&&this.styleAttributeService.registerStyleAttribute({name:"linear",type:Lr.Attribute,descriptor:{name:"a_linear",shaderLocation:this.attributeLocation.LINEAR,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:3,update:(r,n,a)=>[a[3],a[4],a[5]]}})}getModelParams(){const{opacityLinear:e={enable:!1}}=this.layer.getLayerConfig();return e.enable?{frag:pU,vert:dU,type:"polygonLinear",triangulation:ON}:{frag:fU,vert:mU,type:"polygonFill",triangulation:P3}}}const gU=` layout(std140) uniform commonUniforms { vec4 u_watercolor; vec4 u_watercolor2; @@ -4193,7 +4193,7 @@ void main() { outputColor = vec4(col, v_opacity); } -`,bU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,vU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_UV) in vec2 a_uv; layout(std140) uniform commonUniforms { @@ -4214,7 +4214,7 @@ void main() { gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); } -`;class EU extends qi{constructor(...e){super(...e),I(this,"texture1",void 0),I(this,"texture2",void 0),I(this,"texture3",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,UV:9})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{watercolor:e="#6D99A8",watercolor2:r="#0F121C"}=this.layer.getLayerConfig(),n={u_watercolor:Fi(e),u_watercolor2:Fi(r),u_time:this.layer.getLayerAnimateTime(),u_texture1:this.texture1,u_texture2:this.texture2,u_texture3:this.texture3};return this.textures=[this.texture1,this.texture2,this.texture3],this.getUniformsBufferInfo(n)}getAnimateUniforms(){return{u_time:this.layer.getLayerAnimateTime()}}initModels(){var e=this;return bt(function*(){return e.loadTexture(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"polygonOcean",vertexShader:bU,fragmentShader:xU,defines:e.getDefines(),inject:e.getInject(),triangulation:P3,primitive:H.TRIANGLES,depth:{enable:!1}})]})()}clearModels(){var e,r,n;(e=this.texture1)===null||e===void 0||e.destroy(),(r=this.texture2)===null||r===void 0||r.destroy(),(n=this.texture3)===null||n===void 0||n.destroy()}registerBuiltinAttributes(){const e=this.layer.getSource().extent,[r,n,a,l]=e,o=a-r,p=l-n;this.styleAttributeService.registerStyleAttribute({name:"oceanUv",type:Lr.Attribute,descriptor:{name:"a_uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:2,update:(m,v,E)=>{const[b,A]=E;return[(b-r)/o,(A-n)/p]}}})}loadTexture(){const{createTexture2D:e}=this.rendererService,r={height:0,width:0};this.texture1=e(r),this.texture2=e(r),this.texture3=e(r),n(l=>{this.texture1=a(l[0]),this.texture2=a(l[1]),this.texture3=a(l[2]),this.layerService.reRender()});function n(l){let o=0;const p=[];["https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*MJ22QbpuCzIAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*-z2HSIVDsHIAAAAAAAAAAAAAARQnAQ"].map(v=>{const E=new Image;E.crossOrigin="",E.src=v,p.push(E),E.onload=()=>{o++,o===3&&l(p)}})}function a(l){return e({data:l,width:l.width,height:l.height,wrapS:H.MIRRORED_REPEAT,wrapT:H.MIRRORED_REPEAT,min:H.LINEAR,mag:H.LINEAR})}}}const TU=`uniform sampler2D u_texture; +`;class yU extends qi{constructor(...e){super(...e),I(this,"texture1",void 0),I(this,"texture2",void 0),I(this,"texture3",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,UV:9})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{watercolor:e="#6D99A8",watercolor2:r="#0F121C"}=this.layer.getLayerConfig(),n={u_watercolor:Fi(e),u_watercolor2:Fi(r),u_time:this.layer.getLayerAnimateTime(),u_texture1:this.texture1,u_texture2:this.texture2,u_texture3:this.texture3};return this.textures=[this.texture1,this.texture2,this.texture3],this.getUniformsBufferInfo(n)}getAnimateUniforms(){return{u_time:this.layer.getLayerAnimateTime()}}initModels(){var e=this;return bt(function*(){return e.loadTexture(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"polygonOcean",vertexShader:vU,fragmentShader:gU,defines:e.getDefines(),inject:e.getInject(),triangulation:P3,primitive:H.TRIANGLES,depth:{enable:!1}})]})()}clearModels(){var e,r,n;(e=this.texture1)===null||e===void 0||e.destroy(),(r=this.texture2)===null||r===void 0||r.destroy(),(n=this.texture3)===null||n===void 0||n.destroy()}registerBuiltinAttributes(){const e=this.layer.getSource().extent,[r,n,a,l]=e,o=a-r,p=l-n;this.styleAttributeService.registerStyleAttribute({name:"oceanUv",type:Lr.Attribute,descriptor:{name:"a_uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:2,update:(m,v,E)=>{const[b,A]=E;return[(b-r)/o,(A-n)/p]}}})}loadTexture(){const{createTexture2D:e}=this.rendererService,r={height:0,width:0};this.texture1=e(r),this.texture2=e(r),this.texture3=e(r),n(l=>{this.texture1=a(l[0]),this.texture2=a(l[1]),this.texture3=a(l[2]),this.layerService.reRender()});function n(l){let o=0;const p=[];["https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*MJ22QbpuCzIAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*-z2HSIVDsHIAAAAAAAAAAAAAARQnAQ"].map(v=>{const E=new Image;E.crossOrigin="",E.src=v,p.push(E),E.onload=()=>{o++,o===3&&l(p)}})}function a(l){return e({data:l,width:l.width,height:l.height,wrapS:H.MIRRORED_REPEAT,wrapT:H.MIRRORED_REPEAT,min:H.LINEAR,mag:H.LINEAR})}}}const xU=`uniform sampler2D u_texture; layout(std140) uniform commonUniforms { float u_speed; float u_time; @@ -4287,7 +4287,7 @@ void main() { float spc = calSpc(); outputColor += spc * 0.4; } -`,AU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,bU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_COLOR) in vec4 a_Color; layout(location = ATTRIBUTE_LOCATION_UV) in vec2 a_uv; @@ -4309,7 +4309,7 @@ void main() { gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); } -`;class SU extends qi{constructor(...e){super(...e),I(this,"texture",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,UV:9})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{speed:e=.5}=this.layer.getLayerConfig(),r={u_speed:e,u_time:this.layer.getLayerAnimateTime(),u_texture:this.texture};return this.textures=[this.texture],this.getUniformsBufferInfo(r)}getAnimateUniforms(){return{u_time:this.layer.getLayerAnimateTime()}}initModels(){var e=this;return bt(function*(){return e.loadTexture(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"polygonWater",vertexShader:AU,fragmentShader:TU,triangulation:P3,defines:e.getDefines(),inject:e.getInject(),primitive:H.TRIANGLES,depth:{enable:!1},pickingEnabled:!1,diagnosticDerivativeUniformityEnabled:!1})]})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy()}registerBuiltinAttributes(){const e=this.layer.getSource().extent,[r,n,a,l]=e,o=a-r,p=l-n;this.styleAttributeService.registerStyleAttribute({name:"waterUv",type:Lr.Attribute,descriptor:{name:"a_uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:2,update:(m,v,E)=>{const[b,A]=E;return[(b-r)/o,(A-n)/p]}}})}loadTexture(){const{waterTexture:e}=this.layer.getLayerConfig(),{createTexture2D:r}=this.rendererService;this.texture=r({height:1,width:1});const n=new Image;n.crossOrigin="",e?(console.warn("L7 recommend:https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ"),n.src=e):n.src="https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ",n.onload=()=>{this.texture=r({data:n,width:n.width,height:n.height,wrapS:H.MIRRORED_REPEAT,wrapT:H.MIRRORED_REPEAT,min:H.LINEAR,mag:H.LINEAR}),this.layerService.reRender()}}}const wU={fill:yU,line:tE,extrude:hU,text:uE,point_fill:nE,point_image:iE,point_normal:oE,point_extrude:rE,water:SU,ocean:EU,extrusion:dU},CU=wU;class Bm extends Np{constructor(...e){super(...e),I(this,"type","PolygonLayer"),I(this,"enableShaderEncodeStyles",["opacity","extrusionBase","rotation","offsets","stroke"])}buildModels(){var e=this;return bt(function*(){const r=e.getModelType();e.layerModel=new CU[r](e),yield e.initLayerModels()})()}getModelType(){var e;const r=this.styleAttributeService.getLayerStyleAttribute("shape"),n=r==null||(e=r.scale)===null||e===void 0?void 0:e.field;return n==="fill"||!n?"fill":n==="extrude"?"extrude":n==="extrusion"?"extrusion":n==="water"?"water":n==="ocean"?"ocean":n==="line"?"line":this.getPointModelType()}getPointModelType(){const e=this.getEncodedData(),{shape2d:r,shape3d:n}=this.getLayerConfig(),a=this.iconService.getIconMap(),l=e.find(o=>o.hasOwnProperty("shape"));if(l){const o=l.shape;return o==="dot"?"point_normal":(r==null?void 0:r.indexOf(o))!==-1?"point_fill":(n==null?void 0:n.indexOf(o))!==-1?"point_extrude":a.hasOwnProperty(o)?"point_image":"text"}else return"fill"}}const RU=`layout(std140) uniform commonUniforms { +`;class EU extends qi{constructor(...e){super(...e),I(this,"texture",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,UV:9})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{speed:e=.5}=this.layer.getLayerConfig(),r={u_speed:e,u_time:this.layer.getLayerAnimateTime(),u_texture:this.texture};return this.textures=[this.texture],this.getUniformsBufferInfo(r)}getAnimateUniforms(){return{u_time:this.layer.getLayerAnimateTime()}}initModels(){var e=this;return bt(function*(){return e.loadTexture(),e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"polygonWater",vertexShader:bU,fragmentShader:xU,triangulation:P3,defines:e.getDefines(),inject:e.getInject(),primitive:H.TRIANGLES,depth:{enable:!1},pickingEnabled:!1,diagnosticDerivativeUniformityEnabled:!1})]})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy()}registerBuiltinAttributes(){const e=this.layer.getSource().extent,[r,n,a,l]=e,o=a-r,p=l-n;this.styleAttributeService.registerStyleAttribute({name:"waterUv",type:Lr.Attribute,descriptor:{name:"a_uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.STATIC_DRAW,data:[],type:H.FLOAT},size:2,update:(m,v,E)=>{const[b,A]=E;return[(b-r)/o,(A-n)/p]}}})}loadTexture(){const{waterTexture:e}=this.layer.getLayerConfig(),{createTexture2D:r}=this.rendererService;this.texture=r({height:1,width:1});const n=new Image;n.crossOrigin="",e?(console.warn("L7 recommend:https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ"),n.src=e):n.src="https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ",n.onload=()=>{this.texture=r({data:n,width:n.width,height:n.height,wrapS:H.MIRRORED_REPEAT,wrapT:H.MIRRORED_REPEAT,min:H.LINEAR,mag:H.LINEAR}),this.layerService.reRender()}}}const TU={fill:_U,line:tE,extrude:lU,text:uE,point_fill:nE,point_image:iE,point_normal:oE,point_extrude:rE,water:EU,ocean:yU,extrusion:hU},AU=TU;class Bm extends Np{constructor(...e){super(...e),I(this,"type","PolygonLayer"),I(this,"enableShaderEncodeStyles",["opacity","extrusionBase","rotation","offsets","stroke"])}buildModels(){var e=this;return bt(function*(){const r=e.getModelType();e.layerModel=new AU[r](e),yield e.initLayerModels()})()}getModelType(){var e;const r=this.styleAttributeService.getLayerStyleAttribute("shape"),n=r==null||(e=r.scale)===null||e===void 0?void 0:e.field;return n==="fill"||!n?"fill":n==="extrude"?"extrude":n==="extrusion"?"extrusion":n==="water"?"water":n==="ocean"?"ocean":n==="line"?"line":this.getPointModelType()}getPointModelType(){const e=this.getEncodedData(),{shape2d:r,shape3d:n}=this.getLayerConfig(),a=this.iconService.getIconMap(),l=e.find(o=>o.hasOwnProperty("shape"));if(l){const o=l.shape;return o==="dot"?"point_normal":(r==null?void 0:r.indexOf(o))!==-1?"point_fill":(n==null?void 0:n.indexOf(o))!==-1?"point_extrude":a.hasOwnProperty(o)?"point_image":"text"}else return"fill"}}const SU=`layout(std140) uniform commonUniforms { vec2 u_domain; float u_opacity; float u_noDataValue; @@ -4343,7 +4343,7 @@ void main() { discard; } } -`,IU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,wU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_UV) in vec2 a_Uv; @@ -4364,7 +4364,7 @@ void main() { vec4 project_pos = project_position(vec4(a_Position, 1.0), a_Position64Low); gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, 0.0, 1.0)); } -`;let sx=class extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"colorTexture",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,UV:9})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{opacity:e=1,clampLow:r=!0,clampHigh:n=!0,noDataValue:a=-9999999,domain:l,rampColors:o}=this.layer.getLayerConfig(),p=l||Zv(o);this.colorTexture=this.layer.textureService.getColorTexture(o,p);const m={u_domain:p,u_opacity:e||1,u_noDataValue:a,u_clampLow:r?1:0,u_clampHigh:(typeof n<"u"?n:r)?1:0,u_rasterTexture:this.texture,u_colorTexture:this.colorTexture};return this.textures=[this.texture,this.colorTexture],this.getUniformsBufferInfo(m)}getRasterData(e){return bt(function*(){if(Array.isArray(e.data))return{data:e.data,width:e.width,height:e.height};{const{rasterData:r,width:n,height:a}=yield e.data;return{data:Array.from(r),width:n,height:a}}})()}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){e.initUniformsBuffer();const r=e.layer.getSource(),{createTexture2D:n,queryVerdorInfo:a}=e.rendererService,l=r.data.dataArray[0],{data:o,width:p,height:m}=yield e.getRasterData(l);return e.texture=n({data:new Float32Array(o),width:p,height:m,format:a()==="WebGL1"?H.LUMINANCE:H.RED,type:H.FLOAT,alignment:1}),[yield e.layer.buildLayerModel({moduleName:"rasterImageData",vertexShader:IU,fragmentShader:RU,defines:e.getDefines(),triangulation:s_,primitive:H.TRIANGLES,depth:{enable:!1},pickingEnabled:!1})]})()}clearModels(){var e,r;(e=this.texture)===null||e===void 0||e.destroy(),(r=this.colorTexture)===null||r===void 0||r.destroy()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{shaderLocation:this.attributeLocation.UV,name:"a_Uv",buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:(e,r,n)=>[n[3],n[4]]}})}};const MU=["data"],PU=["rasterData"],OU=`uniform sampler2D u_texture; +`;let sx=class extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"colorTexture",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,UV:9})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{opacity:e=1,clampLow:r=!0,clampHigh:n=!0,noDataValue:a=-9999999,domain:l,rampColors:o}=this.layer.getLayerConfig(),p=l||Zv(o);this.colorTexture=this.layer.textureService.getColorTexture(o,p);const m={u_domain:p,u_opacity:e||1,u_noDataValue:a,u_clampLow:r?1:0,u_clampHigh:(typeof n<"u"?n:r)?1:0,u_rasterTexture:this.texture,u_colorTexture:this.colorTexture};return this.textures=[this.texture,this.colorTexture],this.getUniformsBufferInfo(m)}getRasterData(e){return bt(function*(){if(Array.isArray(e.data))return{data:e.data,width:e.width,height:e.height};{const{rasterData:r,width:n,height:a}=yield e.data;return{data:Array.from(r),width:n,height:a}}})()}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){e.initUniformsBuffer();const r=e.layer.getSource(),{createTexture2D:n,queryVerdorInfo:a}=e.rendererService,l=r.data.dataArray[0],{data:o,width:p,height:m}=yield e.getRasterData(l);return e.texture=n({data:new Float32Array(o),width:p,height:m,format:a()==="WebGL1"?H.LUMINANCE:H.RED,type:H.FLOAT,alignment:1}),[yield e.layer.buildLayerModel({moduleName:"rasterImageData",vertexShader:wU,fragmentShader:SU,defines:e.getDefines(),triangulation:s_,primitive:H.TRIANGLES,depth:{enable:!1},pickingEnabled:!1})]})()}clearModels(){var e,r;(e=this.texture)===null||e===void 0||e.destroy(),(r=this.colorTexture)===null||r===void 0||r.destroy()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{shaderLocation:this.attributeLocation.UV,name:"a_Uv",buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:(e,r,n)=>[n[3],n[4]]}})}};const CU=["data"],RU=["rasterData"],IU=`uniform sampler2D u_texture; layout(std140) uniform commonUniforms { vec2 u_rminmax; vec2 u_gminmax; @@ -4390,7 +4390,7 @@ void main() { if(outputColor.a < 0.01) discard; -}`,LU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +}`,MU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_POSITION_64LOW) in vec2 a_Position64Low; layout(location = ATTRIBUTE_LOCATION_UV) in vec2 a_Uv; @@ -4411,7 +4411,7 @@ void main() { vec4 project_pos = project_position(vec4(a_Position, 1.0), a_Position64Low); gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, 0.0, 1.0)); } -`;class DU extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"dataOption",{})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,UV:9})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{opacity:e=1,noDataValue:r=0}=this.layer.getLayerConfig(),{rMinMax:n=[0,255],gMinMax:a=[0,255],bMinMax:l=[0,255]}=this.dataOption,o={u_rminmax:n,u_gminmax:a,u_bminmax:l,u_opacity:e||1,u_noDataValue:r,u_texture:this.texture};return this.textures=[this.texture],this.getUniformsBufferInfo(o)}getRasterData(e){var r=this;return bt(function*(){if(Array.isArray(e.data)){const{data:o}=e,p=fu(e,MU);return r.dataOption=p,_t({data:o},p)}const n=yield e.data,{rasterData:a}=n,l=fu(n,PU);return r.dataOption=l,Array.isArray(a)?_t({data:a},l):_t({data:Array.from(a)},l)})()}initModels(){var e=this;return bt(function*(){e.initUniformsBuffer();const r=e.layer.getSource(),{createTexture2D:n}=e.rendererService,a=r.data.dataArray[0],{data:l,width:o,height:p}=yield e.getRasterData(a);return e.texture=n({data:new Float32Array(l),width:o,height:p,format:H.RGB,type:H.FLOAT}),[yield e.layer.buildLayerModel({moduleName:"rasterImageDataRGBA",vertexShader:LU,fragmentShader:OU,defines:e.getDefines(),triangulation:s_,primitive:H.TRIANGLES,depth:{enable:!1},pickingEnabled:!1})]})()}buildModels(){var e=this;return bt(function*(){return e.initModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_Uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:(e,r,n)=>[n[3],n[4]]}})}}const BU=`uniform sampler2D u_texture; +`;class PU extends qi{constructor(...e){super(...e),I(this,"texture",void 0),I(this,"dataOption",{})}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,UV:9})}getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{opacity:e=1,noDataValue:r=0}=this.layer.getLayerConfig(),{rMinMax:n=[0,255],gMinMax:a=[0,255],bMinMax:l=[0,255]}=this.dataOption,o={u_rminmax:n,u_gminmax:a,u_bminmax:l,u_opacity:e||1,u_noDataValue:r,u_texture:this.texture};return this.textures=[this.texture],this.getUniformsBufferInfo(o)}getRasterData(e){var r=this;return bt(function*(){if(Array.isArray(e.data)){const{data:o}=e,p=fu(e,CU);return r.dataOption=p,_t({data:o},p)}const n=yield e.data,{rasterData:a}=n,l=fu(n,RU);return r.dataOption=l,Array.isArray(a)?_t({data:a},l):_t({data:Array.from(a)},l)})()}initModels(){var e=this;return bt(function*(){e.initUniformsBuffer();const r=e.layer.getSource(),{createTexture2D:n}=e.rendererService,a=r.data.dataArray[0],{data:l,width:o,height:p}=yield e.getRasterData(a);return e.texture=n({data:new Float32Array(l),width:o,height:p,format:H.RGB,type:H.FLOAT}),[yield e.layer.buildLayerModel({moduleName:"rasterImageDataRGBA",vertexShader:MU,fragmentShader:IU,defines:e.getDefines(),triangulation:s_,primitive:H.TRIANGLES,depth:{enable:!1},pickingEnabled:!1})]})()}buildModels(){var e=this;return bt(function*(){return e.initModels()})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_Uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:(e,r,n)=>[n[3],n[4]]}})}}const OU=`uniform sampler2D u_texture; uniform sampler2D u_colorTexture; layout(std140) uniform commonUniforms { @@ -4454,7 +4454,7 @@ void main() { discard; } } -`,FU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,LU=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(location = ATTRIBUTE_LOCATION_UV) in vec2 a_Uv; layout(std140) uniform commonUniforms { @@ -4473,7 +4473,7 @@ void main() { vec4 project_pos = project_position(vec4(a_Position, 1.0)); gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, 0.0, 1.0)); } -`;class NU extends qi{constructor(...e){super(...e),I(this,"texture",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,UV:9})}getCommonUniformsInfo(){const{opacity:e,clampLow:r=!0,clampHigh:n=!0,noDataValue:a=-9999999,domain:l,rampColors:o,colorTexture:p,rScaler:m=6553.6,gScaler:v=25.6,bScaler:E=.1,offset:b=1e4}=this.layer.getLayerConfig(),A=l||Zv(o);let R=p;p?this.layer.textureService.setColorTexture(p,o,A):R=this.layer.textureService.getColorTexture(o,A);const O={u_unpack:[m,v,E,b],u_domain:A,u_opacity:e||1,u_noDataValue:a,u_clampLow:r,u_clampHigh:typeof n<"u"?n:r,u_texture:this.texture,u_colorTexture:R};return this.textures=[this.texture,R],this.getUniformsBufferInfo(O)}initModels(){var e=this;return bt(function*(){e.initUniformsBuffer();const r=e.layer.getSource(),{createTexture2D:n}=e.rendererService,a=yield r.data.images;return e.texture=n({data:a[0],width:a[0].width,height:a[0].height,min:H.LINEAR,mag:H.LINEAR}),[yield e.layer.buildLayerModel({moduleName:"RasterTileDataImage",vertexShader:FU,fragmentShader:BU,defines:e.getDefines(),triangulation:s_,primitive:H.TRIANGLES,depth:{enable:!1}})]})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy()}buildModels(){var e=this;return bt(function*(){return e.initModels()})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_Uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:(e,r,n)=>[n[3],n[4]]}})}}const kU={raster:sx,rasterRgb:DU,raster3d:sx,rasterTerrainRgb:NU},UU=kU;class x2 extends Np{constructor(...e){super(...e),I(this,"type","RasterLayer")}buildModels(){var e=this;return bt(function*(){const r=e.getModelType();e.layerModel=new UU[r](e),yield e.initLayerModels()})()}getDefaultConfig(){const e=this.getModelType();return{raster:{},rasterRgb:{},raster3d:{},rasterTerrainRgb:{}}[e]}getModelType(){switch(this.layerSource.getParserType()){case"raster":return"raster";case"rasterRgb":return"rasterRgb";case"rgb":return"rasterRgb";case"image":return"rasterTerrainRgb";default:return"raster"}}getLegend(e){if(e!=="color")return{type:void 0,field:void 0,items:[]};const r=this.getLayerConfig().rampColors;return kN(r,e)}}class zU{constructor({rendererService:e,layerService:r,parent:n}){I(this,"tileResource",new Map),I(this,"rendererService",void 0),I(this,"layerService",void 0),I(this,"parent",void 0),I(this,"layerTiles",[]),this.rendererService=e,this.layerService=r,this.parent=n}get tiles(){return this.layerTiles}hasTile(e){return this.layerTiles.some(r=>r.key===e)}addTile(e){this.layerTiles.push(e)}getTile(e){return this.layerTiles.find(r=>r.key===e)}getVisibleTileBylngLat(e){return this.layerTiles.find(r=>r.isLoaded&&r.visible&&r.lnglatInBounds(e))}removeTile(e){const r=this.layerTiles.findIndex(a=>a.key===e),n=this.layerTiles.splice(r,1);n[0]&&n[0].destroy()}updateTileVisible(e){const r=this.getTile(e.key);if(e.isVisible)if(e.parent){const n=this.isChildrenLoaded(e.parent);r==null||r.updateVisible(n)}else r==null||r.updateVisible(!0);else if(e.parent){const n=this.isChildrenLoaded(e.parent);r==null||r.updateVisible(!n)}else r==null||r.updateVisible(!1)}isParentLoaded(e){const r=e.parent;if(!r)return!0;const n=this.getTile(r==null?void 0:r.key);return!!(n!=null&&n.isLoaded)}isChildrenLoaded(e){const r=e==null?void 0:e.children;return r.length===0?!0:r.every(n=>{const a=this.getTile(n==null?void 0:n.key);return a?(a==null?void 0:a.isLoaded)===!0:!0})}render(){var e=this;return bt(function*(){const n=e.getRenderLayers().map(function(){var a=bt(function*(l){yield e.layerService.renderTileLayer(l)});return function(l){return a.apply(this,arguments)}}());yield Promise.all(n)})()}getRenderLayers(){const e=this.layerTiles.filter(n=>n.visible&&n.isLoaded),r=[];return e.map(n=>r.push(...n.getLayers())),r}getLayers(){const e=this.layerTiles.filter(n=>n.isLoaded),r=[];return e.map(n=>r.push(...n.getLayers())),r}getTiles(){return this.layerTiles}destroy(){this.layerTiles.forEach(e=>e.destroy()),this.tileResource.clear()}}/** +`;class DU extends qi{constructor(...e){super(...e),I(this,"texture",void 0)}get attributeLocation(){return Object.assign(super.attributeLocation,{MAX:super.attributeLocation.MAX,UV:9})}getCommonUniformsInfo(){const{opacity:e,clampLow:r=!0,clampHigh:n=!0,noDataValue:a=-9999999,domain:l,rampColors:o,colorTexture:p,rScaler:m=6553.6,gScaler:v=25.6,bScaler:E=.1,offset:b=1e4}=this.layer.getLayerConfig(),A=l||Zv(o);let R=p;p?this.layer.textureService.setColorTexture(p,o,A):R=this.layer.textureService.getColorTexture(o,A);const O={u_unpack:[m,v,E,b],u_domain:A,u_opacity:e||1,u_noDataValue:a,u_clampLow:r,u_clampHigh:typeof n<"u"?n:r,u_texture:this.texture,u_colorTexture:R};return this.textures=[this.texture,R],this.getUniformsBufferInfo(O)}initModels(){var e=this;return bt(function*(){e.initUniformsBuffer();const r=e.layer.getSource(),{createTexture2D:n}=e.rendererService,a=yield r.data.images;return e.texture=n({data:a[0],width:a[0].width,height:a[0].height,min:H.LINEAR,mag:H.LINEAR}),[yield e.layer.buildLayerModel({moduleName:"RasterTileDataImage",vertexShader:LU,fragmentShader:OU,defines:e.getDefines(),triangulation:s_,primitive:H.TRIANGLES,depth:{enable:!1}})]})()}clearModels(){var e;(e=this.texture)===null||e===void 0||e.destroy()}buildModels(){var e=this;return bt(function*(){return e.initModels()})()}registerBuiltinAttributes(){this.registerPosition64LowAttribute(),this.styleAttributeService.registerStyleAttribute({name:"uv",type:Lr.Attribute,descriptor:{name:"a_Uv",shaderLocation:this.attributeLocation.UV,buffer:{usage:H.DYNAMIC_DRAW,data:[],type:H.FLOAT},size:2,update:(e,r,n)=>[n[3],n[4]]}})}}const BU={raster:sx,rasterRgb:PU,raster3d:sx,rasterTerrainRgb:DU},FU=BU;class x2 extends Np{constructor(...e){super(...e),I(this,"type","RasterLayer")}buildModels(){var e=this;return bt(function*(){const r=e.getModelType();e.layerModel=new FU[r](e),yield e.initLayerModels()})()}getDefaultConfig(){const e=this.getModelType();return{raster:{},rasterRgb:{},raster3d:{},rasterTerrainRgb:{}}[e]}getModelType(){switch(this.layerSource.getParserType()){case"raster":return"raster";case"rasterRgb":return"rasterRgb";case"rgb":return"rasterRgb";case"image":return"rasterTerrainRgb";default:return"raster"}}getLegend(e){if(e!=="color")return{type:void 0,field:void 0,items:[]};const r=this.getLayerConfig().rampColors;return BN(r,e)}}class NU{constructor({rendererService:e,layerService:r,parent:n}){I(this,"tileResource",new Map),I(this,"rendererService",void 0),I(this,"layerService",void 0),I(this,"parent",void 0),I(this,"layerTiles",[]),this.rendererService=e,this.layerService=r,this.parent=n}get tiles(){return this.layerTiles}hasTile(e){return this.layerTiles.some(r=>r.key===e)}addTile(e){this.layerTiles.push(e)}getTile(e){return this.layerTiles.find(r=>r.key===e)}getVisibleTileBylngLat(e){return this.layerTiles.find(r=>r.isLoaded&&r.visible&&r.lnglatInBounds(e))}removeTile(e){const r=this.layerTiles.findIndex(a=>a.key===e),n=this.layerTiles.splice(r,1);n[0]&&n[0].destroy()}updateTileVisible(e){const r=this.getTile(e.key);if(e.isVisible)if(e.parent){const n=this.isChildrenLoaded(e.parent);r==null||r.updateVisible(n)}else r==null||r.updateVisible(!0);else if(e.parent){const n=this.isChildrenLoaded(e.parent);r==null||r.updateVisible(!n)}else r==null||r.updateVisible(!1)}isParentLoaded(e){const r=e.parent;if(!r)return!0;const n=this.getTile(r==null?void 0:r.key);return!!(n!=null&&n.isLoaded)}isChildrenLoaded(e){const r=e==null?void 0:e.children;return r.length===0?!0:r.every(n=>{const a=this.getTile(n==null?void 0:n.key);return a?(a==null?void 0:a.isLoaded)===!0:!0})}render(){var e=this;return bt(function*(){const n=e.getRenderLayers().map(function(){var a=bt(function*(l){yield e.layerService.renderTileLayer(l)});return function(l){return a.apply(this,arguments)}}());yield Promise.all(n)})()}getRenderLayers(){const e=this.layerTiles.filter(n=>n.visible&&n.isLoaded),r=[];return e.map(n=>r.push(...n.getLayers())),r}getLayers(){const e=this.layerTiles.filter(n=>n.isLoaded),r=[];return e.map(n=>r.push(...n.getLayers())),r}getTiles(){return this.layerTiles}destroy(){this.layerTiles.forEach(e=>e.destroy()),this.tileResource.clear()}}/** * splaytree v3.1.2 * Fast Splay tree for Node and browser * @@ -4493,8 +4493,8 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */function VU(t,e){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},n,a,l,o;return o={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function p(v){return function(E){return m([v,E])}}function m(v){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(l=v[0]&2?a.return:v[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,v[1])).done)return l;switch(a=0,l&&(v=[v[0]&2,l.value]),v[0]){case 0:case 1:l=v;break;case 4:return r.label++,{value:v[1],done:!1};case 5:r.label++,a=v[1],v=[0];continue;case 7:v=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(v[0]===6||v[0]===2)){r=0;continue}if(v[0]===3&&(!l||v[1]>l[0]&&v[1]e?1:t0){if(e.right===null)break;if(r(t,e.right.key)>0){var p=e.right;if(e.right=p.left,p.left=e,e=p,e.right===null)break}a.right=e,a=e,e=e.right}else break}return a.right=e.left,l.left=e.right,e.left=n.right,e.right=n.left,e}function gg(t,e,r,n){var a=new th(t,e);if(r===null)return a.left=a.right=null,a;r=G1(t,r,n);var l=n(t,r.key);return l<0?(a.left=r.left,a.right=r,r.left=null):l>=0&&(a.right=r.right,a.left=r,r.right=null),a}function lx(t,e,r){var n=null,a=null;if(e){e=G1(t,e,r);var l=r(e.key,t);l===0?(n=e.left,a=e.right):l<0?(a=e.right,e.right=null,n=e):(n=e.left,e.left=null,a=e)}return{left:n,right:a}}function jU(t,e,r){return e===null?t:(t===null||(e=G1(t.key,e,r),e.left=t),e)}function gv(t,e,r,n,a){if(t){n(""+e+(r?"└── ":"├── ")+a(t)+` -`);var l=e+(r?" ":"│ ");t.left&&gv(t.left,l,!1,n,a),t.right&&gv(t.right,l,!0,n,a)}}var b2=function(){function t(e){e===void 0&&(e=HU),this._root=null,this._size=0,this._comparator=e}return t.prototype.insert=function(e,r){return this._size++,this._root=gg(e,r,this._root,this._comparator)},t.prototype.add=function(e,r){var n=new th(e,r);this._root===null&&(n.left=n.right=null,this._size++,this._root=n);var a=this._comparator,l=G1(e,this._root,a),o=a(e,l.key);return o===0?this._root=l:(o<0?(n.left=l.left,n.right=l,l.left=null):o>0&&(n.right=l.right,n.left=l,l.right=null),this._size++,this._root=n),this._root},t.prototype.remove=function(e){this._root=this._remove(e,this._root,this._comparator)},t.prototype._remove=function(e,r,n){var a;if(r===null)return null;r=G1(e,r,n);var l=n(e,r.key);return l===0?(r.left===null?a=r.right:(a=G1(e,r.left,n),a.right=r.right),this._size--,a):r},t.prototype.pop=function(){var e=this._root;if(e){for(;e.left;)e=e.left;return this._root=G1(e.key,this._root,this._comparator),this._root=this._remove(e.key,this._root,this._comparator),{key:e.key,data:e.data}}return null},t.prototype.findStatic=function(e){for(var r=this._root,n=this._comparator;r;){var a=n(e,r.key);if(a===0)return r;a<0?r=r.left:r=r.right}return null},t.prototype.find=function(e){return this._root&&(this._root=G1(e,this._root,this._comparator),this._comparator(e,this._root.key)!==0)?null:this._root},t.prototype.contains=function(e){for(var r=this._root,n=this._comparator;r;){var a=n(e,r.key);if(a===0)return!0;a<0?r=r.left:r=r.right}return!1},t.prototype.forEach=function(e,r){for(var n=this._root,a=[],l=!1;!l;)n!==null?(a.push(n),n=n.left):a.length!==0?(n=a.pop(),e.call(r,n),n=n.right):l=!0;return this},t.prototype.range=function(e,r,n,a){for(var l=[],o=this._comparator,p=this._root,m;l.length!==0||p;)if(p)l.push(p),p=p.left;else{if(p=l.pop(),m=o(p.key,r),m>0)break;if(o(p.key,e)>=0&&n.call(a,p))return this;p=p.right}return this},t.prototype.keys=function(){var e=[];return this.forEach(function(r){var n=r.key;return e.push(n)}),e},t.prototype.values=function(){var e=[];return this.forEach(function(r){var n=r.data;return e.push(n)}),e},t.prototype.min=function(){return this._root?this.minNode(this._root).key:null},t.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},t.prototype.minNode=function(e){if(e===void 0&&(e=this._root),e)for(;e.left;)e=e.left;return e},t.prototype.maxNode=function(e){if(e===void 0&&(e=this._root),e)for(;e.right;)e=e.right;return e},t.prototype.at=function(e){for(var r=this._root,n=!1,a=0,l=[];!n;)if(r)l.push(r),r=r.left;else if(l.length>0){if(r=l.pop(),a===e)return r;a++,r=r.right}else n=!0;return null},t.prototype.next=function(e){var r=this._root,n=null;if(e.right){for(n=e.right;n.left;)n=n.left;return n}for(var a=this._comparator;r;){var l=a(e.key,r.key);if(l===0)break;l<0?(n=r,r=r.left):r=r.right}return n},t.prototype.prev=function(e){var r=this._root,n=null;if(e.left!==null){for(n=e.left;n.right;)n=n.right;return n}for(var a=this._comparator;r;){var l=a(e.key,r.key);if(l===0)break;l<0?r=r.left:(n=r,r=r.right)}return n},t.prototype.clear=function(){return this._root=null,this._size=0,this},t.prototype.toList=function(){return WU(this._root)},t.prototype.load=function(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=!1);var a=e.length,l=this._comparator;if(n&&xv(e,r,0,a-1,l),this._root===null)this._root=vv(e,r,0,a),this._size=a;else{var o=GU(this.toList(),XU(e,r),l);a=this._size+a,this._root=yv({head:o},0,a)}return this},t.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e=function(n){return String(n.key)});var r=[];return gv(this._root,"",!0,function(n){return r.push(n)},e),r.join("")},t.prototype.update=function(e,r,n){var a=this._comparator,l=lx(e,this._root,a),o=l.left,p=l.right;a(e,r)<0?p=gg(r,n,p,a):o=gg(r,n,o,a),this._root=jU(o,p,a)},t.prototype.split=function(e){return lx(e,this._root,this._comparator)},t.prototype[Symbol.iterator]=function(){var e,r,n;return VU(this,function(a){switch(a.label){case 0:e=this._root,r=[],n=!1,a.label=1;case 1:return n?[3,6]:e===null?[3,2]:(r.push(e),e=e.left,[3,5]);case 2:return r.length===0?[3,4]:(e=r.pop(),[4,e]);case 3:return a.sent(),e=e.right,[3,5];case 4:n=!0,a.label=5;case 5:return[3,1];case 6:return[2]}})},t}();function vv(t,e,r,n){var a=n-r;if(a>0){var l=r+Math.floor(a/2),o=t[l],p=e[l],m=new th(o,p);return m.left=vv(t,e,r,l),m.right=vv(t,e,l+1,n),m}return null}function XU(t,e){for(var r=new th(null,null),n=r,a=0;a0?(e=l=l.next=r.pop(),e=e.right):n=!0;return l.next=null,a.next}function yv(t,e,r){var n=r-e;if(n>0){var a=e+Math.floor(n/2),l=yv(t,e,a),o=t.head;return o.left=l,t.head=t.head.next,o.right=yv(t,a+1,r),o}return null}function GU(t,e,r){for(var n=new th(null,null),a=n,l=t,o=e;l!==null&&o!==null;)r(l.key,o.key)<0?(a.next=l,l=l.next):(a.next=o,o=o.next),a=a.next;return l!==null?a.next=l:o!==null&&(a.next=o),n.next}function xv(t,e,r,n,a){if(!(r>=n)){for(var l=t[r+n>>1],o=r-1,p=n+1;;){do o++;while(a(t[o],l)<0);do p--;while(a(t[p],l)>0);if(o>=p)break;var m=t[o];t[o]=t[p],t[p]=m,m=e[o],e[o]=e[p],e[p]=m}xv(t,e,r,p,a),xv(t,e,p+1,n,a)}}const r1=11102230246251565e-32,ds=134217729,ZU=(3+8*r1)*r1;function vg(t,e,r,n,a){let l,o,p,m,v=e[0],E=n[0],b=0,A=0;E>v==E>-v?(l=v,v=e[++b]):(l=E,E=n[++A]);let R=0;if(bv==E>-v?(o=v+l,p=l-(o-v),v=e[++b]):(o=E+l,p=l-(o-E),E=n[++A]),l=o,p!==0&&(a[R++]=p);bv==E>-v?(o=l+v,m=o-l,p=l-(o-m)+(v-m),v=e[++b]):(o=l+E,m=o-l,p=l-(o-m)+(E-m),E=n[++A]),l=o,p!==0&&(a[R++]=p);for(;b=nt||-He>=nt||(b=t-ct,p=t-(ct+b)+(b-a),b=r-Ve,v=r-(Ve+b)+(b-a),b=e-Te,m=e-(Te+b)+(b-l),b=n-Fe,E=n-(Fe+b)+(b-l),p===0&&m===0&&v===0&&E===0)||(nt=KU*o+ZU*Math.abs(He),He+=ct*E+Fe*p-(Te*v+Ve*m),He>=nt||-He>=nt))return He;Q=p*Fe,A=ds*p,R=A-(A-p),O=p-R,A=ds*Fe,D=A-(A-Fe),N=Fe-D,J=O*N-(Q-R*D-O*D-R*N),Se=m*Ve,A=ds*m,R=A-(A-m),O=m-R,A=ds*Ve,D=A-(A-Ve),N=Ve-D,ce=O*N-(Se-R*D-O*D-R*N),W=J-ce,b=J-W,ws[0]=J-(W+b)+(b-ce),G=Q+W,b=G-Q,Y=Q-(G-b)+(W-b),W=Y-Se,b=Y-W,ws[1]=Y-(W+b)+(b-Se),ke=G+W,b=ke-G,ws[2]=G-(ke-b)+(W-b),ws[3]=ke;const Ut=vg(4,Kf,4,ws,ux);Q=ct*E,A=ds*ct,R=A-(A-ct),O=ct-R,A=ds*E,D=A-(A-E),N=E-D,J=O*N-(Q-R*D-O*D-R*N),Se=Te*v,A=ds*Te,R=A-(A-Te),O=Te-R,A=ds*v,D=A-(A-v),N=v-D,ce=O*N-(Se-R*D-O*D-R*N),W=J-ce,b=J-W,ws[0]=J-(W+b)+(b-ce),G=Q+W,b=G-Q,Y=Q-(G-b)+(W-b),W=Y-Se,b=Y-W,ws[1]=Y-(W+b)+(b-Se),ke=G+W,b=ke-G,ws[2]=G-(ke-b)+(W-b),ws[3]=ke;const $t=vg(Ut,ux,4,ws,cx);Q=p*E,A=ds*p,R=A-(A-p),O=p-R,A=ds*E,D=A-(A-E),N=E-D,J=O*N-(Q-R*D-O*D-R*N),Se=m*v,A=ds*m,R=A-(A-m),O=m-R,A=ds*v,D=A-(A-v),N=v-D,ce=O*N-(Se-R*D-O*D-R*N),W=J-ce,b=J-W,ws[0]=J-(W+b)+(b-ce),G=Q+W,b=G-Q,Y=Q-(G-b)+(W-b),W=Y-Se,b=Y-W,ws[1]=Y-(W+b)+(b-Se),ke=G+W,b=ke-G,ws[2]=G-(ke-b)+(W-b),ws[3]=ke;const Ht=vg($t,cx,4,ws,hx);return hx[Ht-1]}function JU(t,e,r,n,a,l){const o=(e-l)*(r-a),p=(t-a)*(n-l),m=o-p,v=Math.abs(o+p);return Math.abs(m)>=qU*v?m:-QU(t,e,r,n,a,l,v)}const Md=(t,e)=>t.ll.x<=e.x&&e.x<=t.ur.x&&t.ll.y<=e.y&&e.y<=t.ur.y,bv=(t,e)=>{if(e.ur.x{if(-$1t.x*e.y-t.y*e.x,cE=(t,e)=>t.x*e.x+t.y*e.y,dx=(t,e,r)=>{const n=JU(t.x,t.y,e.x,e.y,r.x,r.y);return n>0?-1:n<0?1:0},Fm=t=>Math.sqrt(cE(t,t)),rz=(t,e,r)=>{const n={x:e.x-t.x,y:e.y-t.y},a={x:r.x-t.x,y:r.y-t.y};return em(a,n)/Fm(a)/Fm(n)},nz=(t,e,r)=>{const n={x:e.x-t.x,y:e.y-t.y},a={x:r.x-t.x,y:r.y-t.y};return cE(a,n)/Fm(a)/Fm(n)},mx=(t,e,r)=>e.y===0?null:{x:t.x+e.x/e.y*(r-t.y),y:r},_x=(t,e,r)=>e.x===0?null:{x:r,y:t.y+e.y/e.x*(r-t.x)},iz=(t,e,r,n)=>{if(e.x===0)return _x(r,n,t.x);if(n.x===0)return _x(t,e,r.x);if(e.y===0)return mx(r,n,t.y);if(n.y===0)return mx(t,e,r.y);const a=em(e,n);if(a==0)return null;const l={x:r.x-t.x,y:r.y-t.y},o=em(l,e)/a,p=em(l,n)/a,m=t.x+p*e.x,v=r.x+o*n.x,E=t.y+p*e.y,b=r.y+o*n.y,A=(m+v)/2,R=(E+b)/2;return{x:A,y:R}};class iu{static compare(e,r){const n=iu.comparePoints(e.point,r.point);return n!==0?n:(e.point!==r.point&&e.link(r),e.isLeft!==r.isLeft?e.isLeft?1:-1:K1.compare(e.segment,r.segment))}static comparePoints(e,r){return e.xr.x?1:e.yr.y?1:0}constructor(e,r){e.events===void 0?e.events=[this]:e.events.push(this),this.point=e,this.isLeft=r}link(e){if(e.point===this.point)throw new Error("Tried to link already linked events");const r=e.point.events;for(let n=0,a=r.length;n{const l=a.otherSE;r.set(a,{sine:rz(this.point,e.point,l.point),cosine:nz(this.point,e.point,l.point)})};return(a,l)=>{r.has(a)||n(a),r.has(l)||n(l);const{sine:o,cosine:p}=r.get(a),{sine:m,cosine:v}=r.get(l);return o>=0&&m>=0?pv?-1:0:o<0&&m<0?pv?1:0:mo?1:0}}}let oz=0;class K1{static compare(e,r){const n=e.leftSE.point.x,a=r.leftSE.point.x,l=e.rightSE.point.x,o=r.rightSE.point.x;if(op&&m>v)return-1;const b=e.comparePoint(r.leftSE.point);if(b<0)return 1;if(b>0)return-1;const A=r.comparePoint(e.rightSE.point);return A!==0?A:-1}if(n>a){if(pm&&p>E)return 1;const b=r.comparePoint(e.leftSE.point);if(b!==0)return b;const A=e.comparePoint(r.rightSE.point);return A<0?1:A>0?-1:1}if(pm)return 1;if(lo){const b=e.comparePoint(r.rightSE.point);if(b<0)return 1;if(b>0)return-1}if(l!==o){const b=v-p,A=l-n,R=E-m,O=o-a;if(b>A&&RO)return-1}return l>o?1:lE?1:e.idr.id?1:0}constructor(e,r,n,a){this.id=++oz,this.leftSE=e,e.segment=this,e.otherSE=r,this.rightSE=r,r.segment=this,r.otherSE=e,this.rings=n,this.windings=a}static fromRing(e,r,n){let a,l,o;const p=iu.comparePoints(e,r);if(p<0)a=e,l=r,o=1;else if(p>0)a=r,l=e,o=-1;else throw new Error(`Tried to create degenerate segment at [${e.x}, ${e.y}]`);const m=new iu(a,!0),v=new iu(l,!1);return new K1(m,v,[n],[o])}replaceRightSE(e){this.rightSE=e,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}bbox(){const e=this.leftSE.point.y,r=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:er?e:r}}}vector(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}isAnEndpoint(e){return e.x===this.leftSE.point.x&&e.y===this.leftSE.point.y||e.x===this.rightSE.point.x&&e.y===this.rightSE.point.y}comparePoint(e){if(this.isAnEndpoint(e))return 0;const r=this.leftSE.point,n=this.rightSE.point,a=this.vector();if(r.x===n.x)return e.x===r.x?0:e.x0&&p.swapEvents(),iu.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),n&&(a.checkForConsuming(),l.checkForConsuming()),r}swapEvents(){const e=this.rightSE;this.rightSE=this.leftSE,this.leftSE=e,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(let r=0,n=this.windings.length;r0){const l=r;r=n,n=l}if(r.prev===n){const l=r;r=n,n=l}for(let l=0,o=n.rings.length;la.length===1&&a[0].isSubject;this._isInResult=n(e)!==n(r);break}default:throw new Error(`Unrecognized operation type found ${Fu.type}`)}return this._isInResult}}class gx{constructor(e,r,n){if(!Array.isArray(e)||e.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=r,this.isExterior=n,this.segments=[],typeof e[0][0]!="number"||typeof e[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const a=b3.round(e[0][0],e[0][1]);this.bbox={ll:{x:a.x,y:a.y},ur:{x:a.x,y:a.y}};let l=a;for(let o=1,p=e.length;othis.bbox.ur.x&&(this.bbox.ur.x=m.x),m.y>this.bbox.ur.y&&(this.bbox.ur.y=m.y),l=m)}(a.x!==l.x||a.y!==l.y)&&this.segments.push(K1.fromRing(l,a,this))}getSweepEvents(){const e=[];for(let r=0,n=this.segments.length;rthis.bbox.ur.x&&(this.bbox.ur.x=l.bbox.ur.x),l.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=l.bbox.ur.y),this.interiorRings.push(l)}this.multiPoly=r}getSweepEvents(){const e=this.exteriorRing.getSweepEvents();for(let r=0,n=this.interiorRings.length;rthis.bbox.ur.x&&(this.bbox.ur.x=l.bbox.ur.x),l.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=l.bbox.ur.y),this.polys.push(l)}this.isSubject=r}getSweepEvents(){const e=[];for(let r=0,n=this.polys.length;r0&&(e=o)}let r=e.segment.prevInResult(),n=r?r.prevInResult():null;for(;;){if(!r)return null;if(!n)return r.ringOut;if(n.ringOut!==r.ringOut)return n.ringOut.enclosingRing()!==r.ringOut?r.ringOut:r.ringOut.enclosingRing();r=n.prevInResult(),n=r?r.prevInResult():null}}}class yx{constructor(e){this.exteriorRing=e,e.poly=this,this.interiorRings=[]}addInterior(e){this.interiorRings.push(e),e.poly=this}getGeom(){const e=[this.exteriorRing.getGeom()];if(e[0]===null)return null;for(let r=0,n=this.interiorRings.length;r1&&arguments[1]!==void 0?arguments[1]:K1.compare;this.queue=e,this.tree=new b2(r),this.segments=[]}process(e){const r=e.segment,n=[];if(e.consumedBy)return e.isLeft?this.queue.remove(e.otherSE):this.tree.remove(r),n;const a=e.isLeft?this.tree.add(r):this.tree.find(r);if(!a)throw new Error(`Unable to find segment #${r.id} [${r.leftSE.point.x}, ${r.leftSE.point.y}] -> [${r.rightSE.point.x}, ${r.rightSE.point.y}] in SweepLine tree.`);let l=a,o=a,p,m;for(;p===void 0;)l=this.tree.prev(l),l===null?p=null:l.key.consumedBy===void 0&&(p=l.key);for(;m===void 0;)o=this.tree.next(o),o===null?m=null:o.key.consumedBy===void 0&&(m=o.key);if(e.isLeft){let v=null;if(p){const b=p.getIntersection(r);if(b!==null&&(r.isAnEndpoint(b)||(v=b),!p.isAnEndpoint(b))){const A=this._splitSafely(p,b);for(let R=0,O=A.length;R0?(this.tree.remove(r),n.push(e)):(this.segments.push(r),r.prev=p)}else{if(p&&m){const v=p.getIntersection(m);if(v!==null){if(!p.isAnEndpoint(v)){const E=this._splitSafely(p,v);for(let b=0,A=E.length;bxx)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).")}const o=new lz(l);let p=l.size,m=l.pop();for(;m;){const b=m.key;if(l.size===p){const R=b.segment;throw new Error(`Unable to pop() ${b.isLeft?"left":"right"} SweepEvent [${b.point.x}, ${b.point.y}] from segment #${R.id} [${R.leftSE.point.x}, ${R.leftSE.point.y}] -> [${R.rightSE.point.x}, ${R.rightSE.point.y}] from queue.`)}if(l.size>xx)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");if(o.segments.length>uz)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");const A=o.process(b);for(let R=0,O=A.length;R1?e-1:0),n=1;n1?e-1:0),n=1;n1?e-1:0),n=1;n1?e-1:0),n=1;n{const l=kv(a.coordinates);r===null?r=l:r=_z(r,l)}),n&&(r.properties=_t({},n)),r}}const Pd="select",Od="active";class vz{constructor({layerService:e,tileLayerService:r,parent:n}){I(this,"layerService",void 0),I(this,"tileLayerService",void 0),I(this,"tileSourceService",void 0),I(this,"parent",void 0),I(this,"tilePickID",new Map),this.layerService=e,this.tileLayerService=r,this.parent=n,this.tileSourceService=new gz}pickRender(e){const r=this.tileLayerService.getVisibleTileBylngLat(e.lngLat);if(r){const n=r.getMainLayer();n==null||n.layerPickService.pickRender(e)}}pick(e,r){var n=this;return bt(function*(){const l=n.parent.getContainer().pickingService;if(e.type==="RasterLayer"){const o=n.tileLayerService.getVisibleTileBylngLat(r.lngLat);if(o&&o.getMainLayer()!==void 0){const p=o.getMainLayer();return p.layerPickService.pickRasterLayer(p,r,n.parent)}return!1}return n.pickRender(r),l.pickFromPickingFBO(e,r)})()}selectFeature(e){const[r,n,a]=e,l=this.color2PickId(r,n,a);this.tilePickID.set(Pd,l),this.updateHighLight(r,n,a,Pd)}highlightPickedFeature(e){const[r,n,a]=e,l=this.color2PickId(r,n,a);this.tilePickID.set(Od,l),this.updateHighLight(r,n,a,Od)}updateHighLight(e,r,n,a){this.tileLayerService.tiles.map(l=>{const o=l.getMainLayer();switch(a){case Pd:o==null||o.hooks.beforeSelect.call([e,r,n]);break;case Od:o==null||o.hooks.beforeHighlight.call([e,r,n]);break}})}setPickState(){const e=this.tilePickID.get(Pd),r=this.tilePickID.get(Od);if(e){const[n,a,l]=this.pickId2Color(e);this.updateHighLight(n,a,l,Pd);return}if(r){const[n,a,l]=this.pickId2Color(r);this.updateHighLight(n,a,l,Od);return}}color2PickId(e,r,n){return Zh(new Uint8Array([e,r,n]))}pickId2Color(e){return yp(e)}getFeatureById(e){const r=this.tileLayerService.getTiles().filter(a=>a.visible),n=[];return r.forEach(a=>{n.push(...a.getFeatureById(e))}),n}pickRasterLayer(){return!1}}function yz(t){return t==="PolygonLayer"?Bm:t==="LineLayer"?e3:Dm}function xz(t){return["PolygonLayer","LineLayer"].indexOf(t)!==-1}class sf extends Ps.EventEmitter{constructor(e,r){super(),I(this,"x",void 0),I(this,"y",void 0),I(this,"z",void 0),I(this,"key",void 0),I(this,"parent",void 0),I(this,"sourceTile",void 0),I(this,"visible",!0),I(this,"layers",[]),I(this,"isLoaded",!1),I(this,"tileMaskLayers",[]),I(this,"tileMask",void 0),this.parent=r,this.sourceTile=e,this.x=e.x,this.y=e.y,this.z=e.z,this.key=`${this.x}_${this.y}_${this.z}`}getLayers(){return this.layers}styleUpdate(...e){}lnglatInBounds(e){const[r,n,a,l]=this.sourceTile.bounds,{lng:o,lat:p}=e;return o>=r&&o<=a&&p>=n&&p<=l}getLayerOptions(){var e;const r=this.parent.getLayerConfig();return _t(_t({},r),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:xz(this.parent.type),mask:r.mask||((e=r.maskLayers)===null||e===void 0?void 0:e.length)!==0&&r.enableMask})}getMaskLayer(){const{maskLayers:e}=this.parent.getLayerConfig(),r=[];return e==null||e.forEach(n=>{if(!n.tileLayer)return r.push(n),n;const l=n.tileLayer.getTile(this.sourceTile.key),o=l==null?void 0:l.getLayers()[0];o&&r.push(o)}),r}addTileMask(){var e=this;return bt(function*(){const r=new Bm({name:"mask",visible:!0,enablePicking:!1}).source({type:"FeatureCollection",features:[e.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").color("#0f0").style({opacity:.5}),n=Jd(e.parent.container);r.setContainer(n),yield r.init(),e.tileMask=r;const a=e.getMainLayer();return a!==void 0&&(a.tileMask=r),r})()}addMask(e,r){var n=this;return bt(function*(){const a=Jd(n.parent.container);r.setContainer(a),yield r.init(),e.addMask(r),n.tileMaskLayers.push(r)})()}addLayer(e){var r=this;return bt(function*(){e.isTileLayer=!0;const n=Jd(r.parent.container);e.setContainer(n),r.layers.push(e),yield e.init()})()}updateVisible(e){this.visible=e,this.updateOptions("visible",e)}updateOptions(e,r){this.layers.forEach(n=>{n.updateLayerConfig({[e]:r})})}getMainLayer(){return this.layers[0]}getFeatures(e){return[]}getFeatureById(e){return[]}destroy(){var e;(e=this.tileMask)===null||e===void 0||e.destroy(),this.layers.forEach(r=>r.destroy())}}class bz extends sf{initTileLayer(){var e=this;return bt(function*(){const r=e.getSourceOption(),n=r.data.features[0].properties,a=new e3().source(r.data,r.options).size(1).shape("line").color("red"),l=new Dm({minZoom:e.z-1,maxZoom:e.z+1,textAllowOverlap:!0}).source([n],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(e.key).style({stroke:"#fff",strokeWidth:2});yield e.addLayer(a),yield e.addLayer(l),e.isLoaded=!0})()}getSourceOption(){const e=this.parent.getSource();return{data:{type:"FeatureCollection",features:this.sourceTile.data.layers.testTile.features},options:{parser:{type:"geojson"},transforms:e.transforms}}}}class Ez extends sf{initTileLayer(){var e=this;return bt(function*(){const r=e.parent.getLayerAttributeConfig(),n=e.getLayerOptions(),a=e.getSourceOption(),l=new XN(_t({},n)).source(a.data,a.options);r&&Object.keys(r).forEach(o=>{var p,m;const v=o;l[v]((p=r[v])===null||p===void 0?void 0:p.field,(m=r[v])===null||m===void 0?void 0:m.values)}),yield e.addLayer(l),e.isLoaded=!0})()}getSourceOption(){const e=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:e.transforms}}}}const Tz=`layout(std140) uniform commonUniorm { +***************************************************************************** */function kU(t,e){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},n,a,l,o;return o={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function p(v){return function(E){return m([v,E])}}function m(v){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(l=v[0]&2?a.return:v[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,v[1])).done)return l;switch(a=0,l&&(v=[v[0]&2,l.value]),v[0]){case 0:case 1:l=v;break;case 4:return r.label++,{value:v[1],done:!1};case 5:r.label++,a=v[1],v=[0];continue;case 7:v=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(v[0]===6||v[0]===2)){r=0;continue}if(v[0]===3&&(!l||v[1]>l[0]&&v[1]e?1:t0){if(e.right===null)break;if(r(t,e.right.key)>0){var p=e.right;if(e.right=p.left,p.left=e,e=p,e.right===null)break}a.right=e,a=e,e=e.right}else break}return a.right=e.left,l.left=e.right,e.left=n.right,e.right=n.left,e}function gg(t,e,r,n){var a=new th(t,e);if(r===null)return a.left=a.right=null,a;r=G1(t,r,n);var l=n(t,r.key);return l<0?(a.left=r.left,a.right=r,r.left=null):l>=0&&(a.right=r.right,a.left=r,r.right=null),a}function lx(t,e,r){var n=null,a=null;if(e){e=G1(t,e,r);var l=r(e.key,t);l===0?(n=e.left,a=e.right):l<0?(a=e.right,e.right=null,n=e):(n=e.left,e.left=null,a=e)}return{left:n,right:a}}function zU(t,e,r){return e===null?t:(t===null||(e=G1(t.key,e,r),e.left=t),e)}function gv(t,e,r,n,a){if(t){n(""+e+(r?"└── ":"├── ")+a(t)+` +`);var l=e+(r?" ":"│ ");t.left&&gv(t.left,l,!1,n,a),t.right&&gv(t.right,l,!0,n,a)}}var b2=function(){function t(e){e===void 0&&(e=UU),this._root=null,this._size=0,this._comparator=e}return t.prototype.insert=function(e,r){return this._size++,this._root=gg(e,r,this._root,this._comparator)},t.prototype.add=function(e,r){var n=new th(e,r);this._root===null&&(n.left=n.right=null,this._size++,this._root=n);var a=this._comparator,l=G1(e,this._root,a),o=a(e,l.key);return o===0?this._root=l:(o<0?(n.left=l.left,n.right=l,l.left=null):o>0&&(n.right=l.right,n.left=l,l.right=null),this._size++,this._root=n),this._root},t.prototype.remove=function(e){this._root=this._remove(e,this._root,this._comparator)},t.prototype._remove=function(e,r,n){var a;if(r===null)return null;r=G1(e,r,n);var l=n(e,r.key);return l===0?(r.left===null?a=r.right:(a=G1(e,r.left,n),a.right=r.right),this._size--,a):r},t.prototype.pop=function(){var e=this._root;if(e){for(;e.left;)e=e.left;return this._root=G1(e.key,this._root,this._comparator),this._root=this._remove(e.key,this._root,this._comparator),{key:e.key,data:e.data}}return null},t.prototype.findStatic=function(e){for(var r=this._root,n=this._comparator;r;){var a=n(e,r.key);if(a===0)return r;a<0?r=r.left:r=r.right}return null},t.prototype.find=function(e){return this._root&&(this._root=G1(e,this._root,this._comparator),this._comparator(e,this._root.key)!==0)?null:this._root},t.prototype.contains=function(e){for(var r=this._root,n=this._comparator;r;){var a=n(e,r.key);if(a===0)return!0;a<0?r=r.left:r=r.right}return!1},t.prototype.forEach=function(e,r){for(var n=this._root,a=[],l=!1;!l;)n!==null?(a.push(n),n=n.left):a.length!==0?(n=a.pop(),e.call(r,n),n=n.right):l=!0;return this},t.prototype.range=function(e,r,n,a){for(var l=[],o=this._comparator,p=this._root,m;l.length!==0||p;)if(p)l.push(p),p=p.left;else{if(p=l.pop(),m=o(p.key,r),m>0)break;if(o(p.key,e)>=0&&n.call(a,p))return this;p=p.right}return this},t.prototype.keys=function(){var e=[];return this.forEach(function(r){var n=r.key;return e.push(n)}),e},t.prototype.values=function(){var e=[];return this.forEach(function(r){var n=r.data;return e.push(n)}),e},t.prototype.min=function(){return this._root?this.minNode(this._root).key:null},t.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},t.prototype.minNode=function(e){if(e===void 0&&(e=this._root),e)for(;e.left;)e=e.left;return e},t.prototype.maxNode=function(e){if(e===void 0&&(e=this._root),e)for(;e.right;)e=e.right;return e},t.prototype.at=function(e){for(var r=this._root,n=!1,a=0,l=[];!n;)if(r)l.push(r),r=r.left;else if(l.length>0){if(r=l.pop(),a===e)return r;a++,r=r.right}else n=!0;return null},t.prototype.next=function(e){var r=this._root,n=null;if(e.right){for(n=e.right;n.left;)n=n.left;return n}for(var a=this._comparator;r;){var l=a(e.key,r.key);if(l===0)break;l<0?(n=r,r=r.left):r=r.right}return n},t.prototype.prev=function(e){var r=this._root,n=null;if(e.left!==null){for(n=e.left;n.right;)n=n.right;return n}for(var a=this._comparator;r;){var l=a(e.key,r.key);if(l===0)break;l<0?r=r.left:(n=r,r=r.right)}return n},t.prototype.clear=function(){return this._root=null,this._size=0,this},t.prototype.toList=function(){return HU(this._root)},t.prototype.load=function(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=!1);var a=e.length,l=this._comparator;if(n&&xv(e,r,0,a-1,l),this._root===null)this._root=vv(e,r,0,a),this._size=a;else{var o=jU(this.toList(),VU(e,r),l);a=this._size+a,this._root=yv({head:o},0,a)}return this},t.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e=function(n){return String(n.key)});var r=[];return gv(this._root,"",!0,function(n){return r.push(n)},e),r.join("")},t.prototype.update=function(e,r,n){var a=this._comparator,l=lx(e,this._root,a),o=l.left,p=l.right;a(e,r)<0?p=gg(r,n,p,a):o=gg(r,n,o,a),this._root=zU(o,p,a)},t.prototype.split=function(e){return lx(e,this._root,this._comparator)},t.prototype[Symbol.iterator]=function(){var e,r,n;return kU(this,function(a){switch(a.label){case 0:e=this._root,r=[],n=!1,a.label=1;case 1:return n?[3,6]:e===null?[3,2]:(r.push(e),e=e.left,[3,5]);case 2:return r.length===0?[3,4]:(e=r.pop(),[4,e]);case 3:return a.sent(),e=e.right,[3,5];case 4:n=!0,a.label=5;case 5:return[3,1];case 6:return[2]}})},t}();function vv(t,e,r,n){var a=n-r;if(a>0){var l=r+Math.floor(a/2),o=t[l],p=e[l],m=new th(o,p);return m.left=vv(t,e,r,l),m.right=vv(t,e,l+1,n),m}return null}function VU(t,e){for(var r=new th(null,null),n=r,a=0;a0?(e=l=l.next=r.pop(),e=e.right):n=!0;return l.next=null,a.next}function yv(t,e,r){var n=r-e;if(n>0){var a=e+Math.floor(n/2),l=yv(t,e,a),o=t.head;return o.left=l,t.head=t.head.next,o.right=yv(t,a+1,r),o}return null}function jU(t,e,r){for(var n=new th(null,null),a=n,l=t,o=e;l!==null&&o!==null;)r(l.key,o.key)<0?(a.next=l,l=l.next):(a.next=o,o=o.next),a=a.next;return l!==null?a.next=l:o!==null&&(a.next=o),n.next}function xv(t,e,r,n,a){if(!(r>=n)){for(var l=t[r+n>>1],o=r-1,p=n+1;;){do o++;while(a(t[o],l)<0);do p--;while(a(t[p],l)>0);if(o>=p)break;var m=t[o];t[o]=t[p],t[p]=m,m=e[o],e[o]=e[p],e[p]=m}xv(t,e,r,p,a),xv(t,e,p+1,n,a)}}const r1=11102230246251565e-32,ds=134217729,XU=(3+8*r1)*r1;function vg(t,e,r,n,a){let l,o,p,m,v=e[0],E=n[0],b=0,A=0;E>v==E>-v?(l=v,v=e[++b]):(l=E,E=n[++A]);let R=0;if(bv==E>-v?(o=v+l,p=l-(o-v),v=e[++b]):(o=E+l,p=l-(o-E),E=n[++A]),l=o,p!==0&&(a[R++]=p);bv==E>-v?(o=l+v,m=o-l,p=l-(o-m)+(v-m),v=e[++b]):(o=l+E,m=o-l,p=l-(o-m)+(E-m),E=n[++A]),l=o,p!==0&&(a[R++]=p);for(;b=nt||-He>=nt||(b=t-ct,p=t-(ct+b)+(b-a),b=r-Ve,v=r-(Ve+b)+(b-a),b=e-Te,m=e-(Te+b)+(b-l),b=n-Fe,E=n-(Fe+b)+(b-l),p===0&&m===0&&v===0&&E===0)||(nt=$U*o+XU*Math.abs(He),He+=ct*E+Fe*p-(Te*v+Ve*m),He>=nt||-He>=nt))return He;Q=p*Fe,A=ds*p,R=A-(A-p),O=p-R,A=ds*Fe,D=A-(A-Fe),N=Fe-D,J=O*N-(Q-R*D-O*D-R*N),Se=m*Ve,A=ds*m,R=A-(A-m),O=m-R,A=ds*Ve,D=A-(A-Ve),N=Ve-D,ce=O*N-(Se-R*D-O*D-R*N),W=J-ce,b=J-W,ws[0]=J-(W+b)+(b-ce),G=Q+W,b=G-Q,Y=Q-(G-b)+(W-b),W=Y-Se,b=Y-W,ws[1]=Y-(W+b)+(b-Se),ke=G+W,b=ke-G,ws[2]=G-(ke-b)+(W-b),ws[3]=ke;const Ut=vg(4,Kf,4,ws,ux);Q=ct*E,A=ds*ct,R=A-(A-ct),O=ct-R,A=ds*E,D=A-(A-E),N=E-D,J=O*N-(Q-R*D-O*D-R*N),Se=Te*v,A=ds*Te,R=A-(A-Te),O=Te-R,A=ds*v,D=A-(A-v),N=v-D,ce=O*N-(Se-R*D-O*D-R*N),W=J-ce,b=J-W,ws[0]=J-(W+b)+(b-ce),G=Q+W,b=G-Q,Y=Q-(G-b)+(W-b),W=Y-Se,b=Y-W,ws[1]=Y-(W+b)+(b-Se),ke=G+W,b=ke-G,ws[2]=G-(ke-b)+(W-b),ws[3]=ke;const $t=vg(Ut,ux,4,ws,cx);Q=p*E,A=ds*p,R=A-(A-p),O=p-R,A=ds*E,D=A-(A-E),N=E-D,J=O*N-(Q-R*D-O*D-R*N),Se=m*v,A=ds*m,R=A-(A-m),O=m-R,A=ds*v,D=A-(A-v),N=v-D,ce=O*N-(Se-R*D-O*D-R*N),W=J-ce,b=J-W,ws[0]=J-(W+b)+(b-ce),G=Q+W,b=G-Q,Y=Q-(G-b)+(W-b),W=Y-Se,b=Y-W,ws[1]=Y-(W+b)+(b-Se),ke=G+W,b=ke-G,ws[2]=G-(ke-b)+(W-b),ws[3]=ke;const Ht=vg($t,cx,4,ws,hx);return hx[Ht-1]}function YU(t,e,r,n,a,l){const o=(e-l)*(r-a),p=(t-a)*(n-l),m=o-p,v=Math.abs(o+p);return Math.abs(m)>=GU*v?m:-qU(t,e,r,n,a,l,v)}const Md=(t,e)=>t.ll.x<=e.x&&e.x<=t.ur.x&&t.ll.y<=e.y&&e.y<=t.ur.y,bv=(t,e)=>{if(e.ur.x{if(-$1t.x*e.y-t.y*e.x,cE=(t,e)=>t.x*e.x+t.y*e.y,dx=(t,e,r)=>{const n=YU(t.x,t.y,e.x,e.y,r.x,r.y);return n>0?-1:n<0?1:0},Fm=t=>Math.sqrt(cE(t,t)),JU=(t,e,r)=>{const n={x:e.x-t.x,y:e.y-t.y},a={x:r.x-t.x,y:r.y-t.y};return em(a,n)/Fm(a)/Fm(n)},ez=(t,e,r)=>{const n={x:e.x-t.x,y:e.y-t.y},a={x:r.x-t.x,y:r.y-t.y};return cE(a,n)/Fm(a)/Fm(n)},mx=(t,e,r)=>e.y===0?null:{x:t.x+e.x/e.y*(r-t.y),y:r},_x=(t,e,r)=>e.x===0?null:{x:r,y:t.y+e.y/e.x*(r-t.x)},tz=(t,e,r,n)=>{if(e.x===0)return _x(r,n,t.x);if(n.x===0)return _x(t,e,r.x);if(e.y===0)return mx(r,n,t.y);if(n.y===0)return mx(t,e,r.y);const a=em(e,n);if(a==0)return null;const l={x:r.x-t.x,y:r.y-t.y},o=em(l,e)/a,p=em(l,n)/a,m=t.x+p*e.x,v=r.x+o*n.x,E=t.y+p*e.y,b=r.y+o*n.y,A=(m+v)/2,R=(E+b)/2;return{x:A,y:R}};class iu{static compare(e,r){const n=iu.comparePoints(e.point,r.point);return n!==0?n:(e.point!==r.point&&e.link(r),e.isLeft!==r.isLeft?e.isLeft?1:-1:K1.compare(e.segment,r.segment))}static comparePoints(e,r){return e.xr.x?1:e.yr.y?1:0}constructor(e,r){e.events===void 0?e.events=[this]:e.events.push(this),this.point=e,this.isLeft=r}link(e){if(e.point===this.point)throw new Error("Tried to link already linked events");const r=e.point.events;for(let n=0,a=r.length;n{const l=a.otherSE;r.set(a,{sine:JU(this.point,e.point,l.point),cosine:ez(this.point,e.point,l.point)})};return(a,l)=>{r.has(a)||n(a),r.has(l)||n(l);const{sine:o,cosine:p}=r.get(a),{sine:m,cosine:v}=r.get(l);return o>=0&&m>=0?pv?-1:0:o<0&&m<0?pv?1:0:mo?1:0}}}let rz=0;class K1{static compare(e,r){const n=e.leftSE.point.x,a=r.leftSE.point.x,l=e.rightSE.point.x,o=r.rightSE.point.x;if(op&&m>v)return-1;const b=e.comparePoint(r.leftSE.point);if(b<0)return 1;if(b>0)return-1;const A=r.comparePoint(e.rightSE.point);return A!==0?A:-1}if(n>a){if(pm&&p>E)return 1;const b=r.comparePoint(e.leftSE.point);if(b!==0)return b;const A=e.comparePoint(r.rightSE.point);return A<0?1:A>0?-1:1}if(pm)return 1;if(lo){const b=e.comparePoint(r.rightSE.point);if(b<0)return 1;if(b>0)return-1}if(l!==o){const b=v-p,A=l-n,R=E-m,O=o-a;if(b>A&&RO)return-1}return l>o?1:lE?1:e.idr.id?1:0}constructor(e,r,n,a){this.id=++rz,this.leftSE=e,e.segment=this,e.otherSE=r,this.rightSE=r,r.segment=this,r.otherSE=e,this.rings=n,this.windings=a}static fromRing(e,r,n){let a,l,o;const p=iu.comparePoints(e,r);if(p<0)a=e,l=r,o=1;else if(p>0)a=r,l=e,o=-1;else throw new Error(`Tried to create degenerate segment at [${e.x}, ${e.y}]`);const m=new iu(a,!0),v=new iu(l,!1);return new K1(m,v,[n],[o])}replaceRightSE(e){this.rightSE=e,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}bbox(){const e=this.leftSE.point.y,r=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:er?e:r}}}vector(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}isAnEndpoint(e){return e.x===this.leftSE.point.x&&e.y===this.leftSE.point.y||e.x===this.rightSE.point.x&&e.y===this.rightSE.point.y}comparePoint(e){if(this.isAnEndpoint(e))return 0;const r=this.leftSE.point,n=this.rightSE.point,a=this.vector();if(r.x===n.x)return e.x===r.x?0:e.x0&&p.swapEvents(),iu.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),n&&(a.checkForConsuming(),l.checkForConsuming()),r}swapEvents(){const e=this.rightSE;this.rightSE=this.leftSE,this.leftSE=e,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(let r=0,n=this.windings.length;r0){const l=r;r=n,n=l}if(r.prev===n){const l=r;r=n,n=l}for(let l=0,o=n.rings.length;la.length===1&&a[0].isSubject;this._isInResult=n(e)!==n(r);break}default:throw new Error(`Unrecognized operation type found ${Fu.type}`)}return this._isInResult}}class gx{constructor(e,r,n){if(!Array.isArray(e)||e.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=r,this.isExterior=n,this.segments=[],typeof e[0][0]!="number"||typeof e[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const a=b3.round(e[0][0],e[0][1]);this.bbox={ll:{x:a.x,y:a.y},ur:{x:a.x,y:a.y}};let l=a;for(let o=1,p=e.length;othis.bbox.ur.x&&(this.bbox.ur.x=m.x),m.y>this.bbox.ur.y&&(this.bbox.ur.y=m.y),l=m)}(a.x!==l.x||a.y!==l.y)&&this.segments.push(K1.fromRing(l,a,this))}getSweepEvents(){const e=[];for(let r=0,n=this.segments.length;rthis.bbox.ur.x&&(this.bbox.ur.x=l.bbox.ur.x),l.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=l.bbox.ur.y),this.interiorRings.push(l)}this.multiPoly=r}getSweepEvents(){const e=this.exteriorRing.getSweepEvents();for(let r=0,n=this.interiorRings.length;rthis.bbox.ur.x&&(this.bbox.ur.x=l.bbox.ur.x),l.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=l.bbox.ur.y),this.polys.push(l)}this.isSubject=r}getSweepEvents(){const e=[];for(let r=0,n=this.polys.length;r0&&(e=o)}let r=e.segment.prevInResult(),n=r?r.prevInResult():null;for(;;){if(!r)return null;if(!n)return r.ringOut;if(n.ringOut!==r.ringOut)return n.ringOut.enclosingRing()!==r.ringOut?r.ringOut:r.ringOut.enclosingRing();r=n.prevInResult(),n=r?r.prevInResult():null}}}class yx{constructor(e){this.exteriorRing=e,e.poly=this,this.interiorRings=[]}addInterior(e){this.interiorRings.push(e),e.poly=this}getGeom(){const e=[this.exteriorRing.getGeom()];if(e[0]===null)return null;for(let r=0,n=this.interiorRings.length;r1&&arguments[1]!==void 0?arguments[1]:K1.compare;this.queue=e,this.tree=new b2(r),this.segments=[]}process(e){const r=e.segment,n=[];if(e.consumedBy)return e.isLeft?this.queue.remove(e.otherSE):this.tree.remove(r),n;const a=e.isLeft?this.tree.add(r):this.tree.find(r);if(!a)throw new Error(`Unable to find segment #${r.id} [${r.leftSE.point.x}, ${r.leftSE.point.y}] -> [${r.rightSE.point.x}, ${r.rightSE.point.y}] in SweepLine tree.`);let l=a,o=a,p,m;for(;p===void 0;)l=this.tree.prev(l),l===null?p=null:l.key.consumedBy===void 0&&(p=l.key);for(;m===void 0;)o=this.tree.next(o),o===null?m=null:o.key.consumedBy===void 0&&(m=o.key);if(e.isLeft){let v=null;if(p){const b=p.getIntersection(r);if(b!==null&&(r.isAnEndpoint(b)||(v=b),!p.isAnEndpoint(b))){const A=this._splitSafely(p,b);for(let R=0,O=A.length;R0?(this.tree.remove(r),n.push(e)):(this.segments.push(r),r.prev=p)}else{if(p&&m){const v=p.getIntersection(m);if(v!==null){if(!p.isAnEndpoint(v)){const E=this._splitSafely(p,v);for(let b=0,A=E.length;bxx)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).")}const o=new oz(l);let p=l.size,m=l.pop();for(;m;){const b=m.key;if(l.size===p){const R=b.segment;throw new Error(`Unable to pop() ${b.isLeft?"left":"right"} SweepEvent [${b.point.x}, ${b.point.y}] from segment #${R.id} [${R.leftSE.point.x}, ${R.leftSE.point.y}] -> [${R.rightSE.point.x}, ${R.rightSE.point.y}] from queue.`)}if(l.size>xx)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");if(o.segments.length>az)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");const A=o.process(b);for(let R=0,O=A.length;R1?e-1:0),n=1;n1?e-1:0),n=1;n1?e-1:0),n=1;n1?e-1:0),n=1;n{const l=kv(a.coordinates);r===null?r=l:r=pz(r,l)}),n&&(r.properties=_t({},n)),r}}const Pd="select",Od="active";class mz{constructor({layerService:e,tileLayerService:r,parent:n}){I(this,"layerService",void 0),I(this,"tileLayerService",void 0),I(this,"tileSourceService",void 0),I(this,"parent",void 0),I(this,"tilePickID",new Map),this.layerService=e,this.tileLayerService=r,this.parent=n,this.tileSourceService=new dz}pickRender(e){const r=this.tileLayerService.getVisibleTileBylngLat(e.lngLat);if(r){const n=r.getMainLayer();n==null||n.layerPickService.pickRender(e)}}pick(e,r){var n=this;return bt(function*(){const l=n.parent.getContainer().pickingService;if(e.type==="RasterLayer"){const o=n.tileLayerService.getVisibleTileBylngLat(r.lngLat);if(o&&o.getMainLayer()!==void 0){const p=o.getMainLayer();return p.layerPickService.pickRasterLayer(p,r,n.parent)}return!1}return n.pickRender(r),l.pickFromPickingFBO(e,r)})()}selectFeature(e){const[r,n,a]=e,l=this.color2PickId(r,n,a);this.tilePickID.set(Pd,l),this.updateHighLight(r,n,a,Pd)}highlightPickedFeature(e){const[r,n,a]=e,l=this.color2PickId(r,n,a);this.tilePickID.set(Od,l),this.updateHighLight(r,n,a,Od)}updateHighLight(e,r,n,a){this.tileLayerService.tiles.map(l=>{const o=l.getMainLayer();switch(a){case Pd:o==null||o.hooks.beforeSelect.call([e,r,n]);break;case Od:o==null||o.hooks.beforeHighlight.call([e,r,n]);break}})}setPickState(){const e=this.tilePickID.get(Pd),r=this.tilePickID.get(Od);if(e){const[n,a,l]=this.pickId2Color(e);this.updateHighLight(n,a,l,Pd);return}if(r){const[n,a,l]=this.pickId2Color(r);this.updateHighLight(n,a,l,Od);return}}color2PickId(e,r,n){return Zh(new Uint8Array([e,r,n]))}pickId2Color(e){return yp(e)}getFeatureById(e){const r=this.tileLayerService.getTiles().filter(a=>a.visible),n=[];return r.forEach(a=>{n.push(...a.getFeatureById(e))}),n}pickRasterLayer(){return!1}}function _z(t){return t==="PolygonLayer"?Bm:t==="LineLayer"?e3:Dm}function gz(t){return["PolygonLayer","LineLayer"].indexOf(t)!==-1}class sf extends Ps.EventEmitter{constructor(e,r){super(),I(this,"x",void 0),I(this,"y",void 0),I(this,"z",void 0),I(this,"key",void 0),I(this,"parent",void 0),I(this,"sourceTile",void 0),I(this,"visible",!0),I(this,"layers",[]),I(this,"isLoaded",!1),I(this,"tileMaskLayers",[]),I(this,"tileMask",void 0),this.parent=r,this.sourceTile=e,this.x=e.x,this.y=e.y,this.z=e.z,this.key=`${this.x}_${this.y}_${this.z}`}getLayers(){return this.layers}styleUpdate(...e){}lnglatInBounds(e){const[r,n,a,l]=this.sourceTile.bounds,{lng:o,lat:p}=e;return o>=r&&o<=a&&p>=n&&p<=l}getLayerOptions(){var e;const r=this.parent.getLayerConfig();return _t(_t({},r),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:gz(this.parent.type),mask:r.mask||((e=r.maskLayers)===null||e===void 0?void 0:e.length)!==0&&r.enableMask})}getMaskLayer(){const{maskLayers:e}=this.parent.getLayerConfig(),r=[];return e==null||e.forEach(n=>{if(!n.tileLayer)return r.push(n),n;const l=n.tileLayer.getTile(this.sourceTile.key),o=l==null?void 0:l.getLayers()[0];o&&r.push(o)}),r}addTileMask(){var e=this;return bt(function*(){const r=new Bm({name:"mask",visible:!0,enablePicking:!1}).source({type:"FeatureCollection",features:[e.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").color("#0f0").style({opacity:.5}),n=Jd(e.parent.container);r.setContainer(n),yield r.init(),e.tileMask=r;const a=e.getMainLayer();return a!==void 0&&(a.tileMask=r),r})()}addMask(e,r){var n=this;return bt(function*(){const a=Jd(n.parent.container);r.setContainer(a),yield r.init(),e.addMask(r),n.tileMaskLayers.push(r)})()}addLayer(e){var r=this;return bt(function*(){e.isTileLayer=!0;const n=Jd(r.parent.container);e.setContainer(n),r.layers.push(e),yield e.init()})()}updateVisible(e){this.visible=e,this.updateOptions("visible",e)}updateOptions(e,r){this.layers.forEach(n=>{n.updateLayerConfig({[e]:r})})}getMainLayer(){return this.layers[0]}getFeatures(e){return[]}getFeatureById(e){return[]}destroy(){var e;(e=this.tileMask)===null||e===void 0||e.destroy(),this.layers.forEach(r=>r.destroy())}}class vz extends sf{initTileLayer(){var e=this;return bt(function*(){const r=e.getSourceOption(),n=r.data.features[0].properties,a=new e3().source(r.data,r.options).size(1).shape("line").color("red"),l=new Dm({minZoom:e.z-1,maxZoom:e.z+1,textAllowOverlap:!0}).source([n],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(e.key).style({stroke:"#fff",strokeWidth:2});yield e.addLayer(a),yield e.addLayer(l),e.isLoaded=!0})()}getSourceOption(){const e=this.parent.getSource();return{data:{type:"FeatureCollection",features:this.sourceTile.data.layers.testTile.features},options:{parser:{type:"geojson"},transforms:e.transforms}}}}class yz extends sf{initTileLayer(){var e=this;return bt(function*(){const r=e.parent.getLayerAttributeConfig(),n=e.getLayerOptions(),a=e.getSourceOption(),l=new VN(_t({},n)).source(a.data,a.options);r&&Object.keys(r).forEach(o=>{var p,m;const v=o;l[v]((p=r[v])===null||p===void 0?void 0:p.field,(m=r[v])===null||m===void 0?void 0:m.values)}),yield e.addLayer(l),e.isLoaded=!0})()}getSourceOption(){const e=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:e.transforms}}}}const xz=`layout(std140) uniform commonUniorm { vec4 u_color; float u_opacity; }; @@ -4505,7 +4505,7 @@ void main() { outputColor = u_color; outputColor.a *= u_opacity; } -`,Az=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; +`,bz=`layout(location = ATTRIBUTE_LOCATION_POSITION) in vec3 a_Position; layout(std140) uniform commonUniorm { vec4 u_color; @@ -4519,7 +4519,7 @@ void main() { gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); } -`;class Sz extends qi{getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{opacity:e=1,color:r="#000"}=this.layer.getLayerConfig(),n={u_color:Fi(r),u_opacity:e||1};return this.getUniformsBufferInfo(n)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"mask",vertexShader:Az,fragmentShader:Tz,defines:e.getDefines(),triangulation:P3,depth:{enable:!1},pick:!1})]})()}clearModels(e=!0){e&&this.layerService.clear()}registerBuiltinAttributes(){return""}}const wz={fill:Sz},Cz=wz;class hE extends Np{constructor(...e){super(...e),I(this,"type","MaskLayer")}buildModels(){var e=this;return bt(function*(){const r=e.getModelType();e.layerModel=new Cz[r](e),yield e.initLayerModels()})()}getModelType(){return"fill"}}class Rz extends sf{initTileLayer(){var e=this;return bt(function*(){const r=e.parent.getLayerAttributeConfig(),n=e.getLayerOptions(),a=e.getSourceOption(),l=new hE(_t({},n)).source(a.data,a.options);r&&Object.keys(r).forEach(o=>{var p,m;const v=o;l[v]((p=r[v])===null||p===void 0?void 0:p.field,(m=r[v])===null||m===void 0?void 0:m.values)}),yield e.addLayer(l),e.isLoaded=!0})()}getFeatures(e){return e?this.sourceTile.data.getTileData(e):[]}getSourceOption(){const e=this.parent.getSource(),{sourceLayer:r,featureId:n}=this.parent.getLayerConfig();return{data:{type:"FeatureCollection",features:this.getFeatures(r)},options:{parser:{type:"geojson",featureId:n},transforms:e.transforms}}}}const Iz=["rasterData"];let Mz=class extends sf{initTileLayer(){var e=this;return bt(function*(){const r=e.parent.getLayerAttributeConfig(),n=e.getLayerOptions(),a=e.getSourceOption(),l=new x2(_t({},n)).source(a.data,a.options);r&&Object.keys(r).forEach(o=>{var p,m;const v=o;l[v]((p=r[v])===null||p===void 0?void 0:p.field,(m=r[v])===null||m===void 0?void 0:m.values)}),yield e.addLayer(l),e.isLoaded=!0})()}getSourceOption(){const e=this.parent.getSource(),r=this.sourceTile.data.data,{rasterData:n}=r,a=fu(r,Iz);return{data:n,options:{parser:_t({type:"rasterRgb",extent:this.sourceTile.bounds},a),transforms:e.transforms}}}};class Pz extends sf{initTileLayer(){var e=this;return bt(function*(){const r=e.parent.getLayerAttributeConfig(),n=e.getLayerOptions(),a=e.getSourceOption(),l=new x2(_t({},n)).source(a.data,a.options);r&&Object.keys(r).forEach(o=>{var p,m;const v=o;l[v]((p=r[v])===null||p===void 0?void 0:p.field,(m=r[v])===null||m===void 0?void 0:m.values)}),yield e.addLayer(l),e.isLoaded=!0})()}getSourceOption(){const e=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:e.transforms}}}}const Oz=["rasterData"],Lz={positions:[0,1],colors:["#000","#fff"]};class Dz extends sf{constructor(...e){super(...e),I(this,"colorTexture",void 0)}initTileLayer(){var e=this;return bt(function*(){const r=e.parent.getLayerAttributeConfig(),n=e.getLayerOptions(),a=e.getSourceOption(),{rampColors:l,domain:o}=e.getLayerOptions();e.colorTexture=e.parent.textureService.getColorTexture(l,o);const p=new x2(_t(_t({},n),{},{colorTexture:e.colorTexture})).source(a.data,a.options);r&&Object.keys(r).forEach(m=>{var v,E;const b=m;p[b]((v=r[b])===null||v===void 0?void 0:v.field,(E=r[b])===null||E===void 0?void 0:E.values)}),yield e.addLayer(p),e.isLoaded=!0})()}getSourceOption(){const e=this.parent.getSource(),r=this.sourceTile.data.data,{rasterData:n}=r,a=fu(r,Oz);return{data:n,options:{parser:_t({type:"raster",extent:this.sourceTile.bounds},a),transforms:e.transforms}}}styleUpdate(...e){const{rampColors:r=Lz,domain:n}=e;this.colorTexture=this.parent.textureService.getColorTexture(r,n||Zv(r)),this.layers.forEach(a=>a.style({colorTexture:this.colorTexture}))}destroy(){this.layers.forEach(e=>e.destroy())}}class O0 extends sf{initTileLayer(){var e=this;return bt(function*(){const r=e.parent.getLayerAttributeConfig(),n=e.getLayerOptions(),a=yz(e.parent.type),l=e.getSourceOption();if(!l){e.isLoaded=!0,e.emit("loaded");return}const o=new a(_t({},n)).source(l.data,l.options);Object.keys(r).forEach(p=>{var m,v;const E=p;o[E]((m=r[E])===null||m===void 0?void 0:m.field,(v=r[E])===null||v===void 0?void 0:v.values)}),yield e.addLayer(o),n.tileMask&&(yield e.addTileMask()),e.setLayerMinMaxZoom(o),e.isLoaded=!0,e.emit("loaded")})()}getSourceOption(){const e=this.parent.getSource(),{sourceLayer:r="defaultLayer",featureId:n="id"}=this.parent.getLayerConfig();return{data:{type:"FeatureCollection",features:this.getFeatures(r)},options:{parser:{type:"geojson",featureId:n},transforms:e.transforms}}}setLayerMinMaxZoom(e){e.getModelType()==="text"&&e.updateLayerConfig({maxZoom:this.z+1,minZoom:this.z-1})}getFeatures(e){return this.sourceTile.data.getTileData(e)}getFeatureById(e){const r=this.getMainLayer();return r?r.getSource().data.dataArray.filter(a=>a._id===e):[]}}function Bz(t){switch(t.type){case"PolygonLayer":return O0;case"LineLayer":return O0;case"PointLayer":return O0;case"TileDebugLayer":return bz;case"MaskLayer":return Rz;case"RasterLayer":const{dataType:r}=t.getSource().parser;switch(r){case Ja.RGB:case Ja.CUSTOMRGB:return Mz;case Ja.ARRAYBUFFER:case Ja.CUSTOMARRAYBUFFER:return Dz;case Ja.TERRAINRGB:case Ja.CUSTOMTERRAINRGB:return Pz;default:return Ez}default:return O0}}const Fz=["shape","color","size","style","animate","filter","rotate","scale","setBlend","setSelect","setActive","disableMask","enableMask","addMask","removeMask"],{debounce:Nz}=Ko;class kz{constructor(e){I(this,"parent",void 0),I(this,"tileLayerService",void 0),I(this,"mapService",void 0),I(this,"layerService",void 0),I(this,"rendererService",void 0),I(this,"pickingService",void 0),I(this,"tilePickService",void 0),I(this,"tilesetManager",void 0),I(this,"initedTileset",!1),I(this,"lastViewStates",void 0),I(this,"mapchange",()=>{var n;if(this.parent.isVisible()===!1)return;const{latLonBounds:a,zoom:l}=this.getCurrentView();this.lastViewStates&&this.lastViewStates.zoom===l&&this.lastViewStates.latLonBounds.toString()===a.toString()||(this.lastViewStates={zoom:l,latLonBounds:a},(n=this.tilesetManager)===null||n===void 0||n.throttleUpdate(l,a))}),I(this,"viewchange",Nz(this.mapchange,24)),this.parent=e;const r=this.parent.getContainer();this.rendererService=r.rendererService,this.layerService=r.layerService,this.mapService=r.mapService,this.pickingService=r.pickingService,this.tileLayerService=new zU({rendererService:this.rendererService,layerService:this.layerService,parent:e}),this.tilePickService=new vz({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:e}),this.parent.setLayerPickService(this.tilePickService),this.proxy(e),this.initTileSetManager()}initTileSetManager(){var e;const r=this.parent.getSource();if(this.tilesetManager=r.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()===!1)return;const{latLonBounds:n,zoom:a}=this.getCurrentView();(e=this.tilesetManager)===null||e===void 0||e.update(a,n)}getCurrentView(){const e=this.mapService.getBounds(),r=[e[0][0],e[0][1],e[1][0],e[1][1]],n=this.mapService.getZoom();return{latLonBounds:r,zoom:n}}bindTilesetEvent(){this.tilesetManager.on("tile-loaded",e=>{}),this.tilesetManager.on("tile-unload",e=>{this.tileUnLoad(e)}),this.tilesetManager.on("tile-error",(e,r)=>{this.tileError(e)}),this.tilesetManager.on("tile-update",()=>{this.tileUpdate()}),this.mapService.on("zoomend",this.mapchange),this.mapService.on("moveend",this.viewchange)}render(){this.tileLayerService.render()}getLayers(){return this.tileLayerService.getLayers()}getTiles(){return this.tileLayerService.getTiles()}getTile(e){return this.tileLayerService.getTile(e)}tileLoaded(e){}tileError(e){console.warn("error:",e)}destroy(){var e;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(e=this.tilesetManager)===null||e===void 0||e.destroy(),this.tileLayerService.destroy()}reload(){var e;this.tilesetManager.clear();const{latLonBounds:r,zoom:n}=this.getCurrentView();(e=this.tilesetManager)===null||e===void 0||e.update(n,r)}tileUnLoad(e){this.tileLayerService.removeTile(e.key)}tileUpdate(){var e=this;return bt(function*(){if(!e.tilesetManager)return;const r=e.parent.getMinZoom(),n=e.parent.getMaxZoom(),a=e.tilesetManager.tiles.filter(l=>l.isLoaded).filter(l=>l.isVisibleChange).filter(l=>l.data).filter(l=>l.z>=r&&l.z{const n=e[r].bind(e);e[r]=(...a)=>(n(...a),this.getLayers().map(l=>{l[r](...a)}),r==="style"&&this.getTiles().forEach(l=>l.styleUpdate(...a)),e)})}}class Uz extends eh{constructor(...e){super(...e),I(this,"disabled",void 0),I(this,"zoomInButton",void 0),I(this,"zoomOutButton",void 0),I(this,"zoomNumDiv",void 0),I(this,"zoomIn",()=>{!this.disabled&&this.mapsService.getZoom(){!this.disabled&&this.mapsService.getZoom()>this.mapsService.getMinZoom()&&this.mapsService.zoomOut()}),I(this,"updateDisabled",()=>{const r=this.mapsService;this.zoomInButton.removeAttribute("disabled"),this.zoomOutButton.removeAttribute("disabled"),(this.disabled||r.getZoom()<=r.getMinZoom())&&this.zoomOutButton.setAttribute("disabled","true"),this.controlOption.showZoom&&this.zoomNumDiv&&(this.zoomNumDiv.innerText=String(Math.floor(r.getZoom()))),(this.disabled||r.getZoom()>=r.getMaxZoom())&&this.zoomInButton.setAttribute("disabled","true")})}getDefault(e){return _t(_t({},super.getDefault(e)),{},{position:Ep.BOTTOMRIGHT,name:"zoom",zoomInText:i6("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:i6("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}setOptions(e){super.setOptions(e),this.checkUpdateOption(e,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}onAdd(){const e=_a("div","l7-control-zoom");return this.resetButtonGroup(e),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),e}onRemove(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}disable(){return this.disabled=!0,this.updateDisabled(),this}enable(){return this.disabled=!1,this.updateDisabled(),this}resetButtonGroup(e){Qm(e),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",e,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",e)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",e,this.zoomOut),this.updateDisabled()}createButton(e,r,n,a,l){const o=_a("button",n,a);return typeof e=="string"?o.innerHTML=e:o.append(e),o.title=r,l&&o.addEventListener("click",l),o}}function zz(t,e){var r=typeof my<"u"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx<"u"&&wx!==null&&(typeof wx.request<"u"||typeof wx.miniProgram<"u");if(!(r||n)&&(e||(e=document),!!e)){var a=e.head||e.getElementsByTagName("head")[0];if(!a){a=e.createElement("head");var l=e.body||e.getElementsByTagName("body")[0];l?l.parentNode.insertBefore(a,l):e.documentElement.appendChild(a)}var o=e.createElement("style");return o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),a.appendChild(o),o}}zz(`.l7-marker-container { +`;class Ez extends qi{getUninforms(){const e=this.getCommonUniformsInfo(),r=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),_t(_t({},e.uniformsOption),r.uniformsOption)}getCommonUniformsInfo(){const{opacity:e=1,color:r="#000"}=this.layer.getLayerConfig(),n={u_color:Fi(r),u_opacity:e||1};return this.getUniformsBufferInfo(n)}initModels(){var e=this;return bt(function*(){return e.buildModels()})()}buildModels(){var e=this;return bt(function*(){return e.initUniformsBuffer(),[yield e.layer.buildLayerModel({moduleName:"mask",vertexShader:bz,fragmentShader:xz,defines:e.getDefines(),triangulation:P3,depth:{enable:!1},pick:!1})]})()}clearModels(e=!0){e&&this.layerService.clear()}registerBuiltinAttributes(){return""}}const Tz={fill:Ez},Az=Tz;class hE extends Np{constructor(...e){super(...e),I(this,"type","MaskLayer")}buildModels(){var e=this;return bt(function*(){const r=e.getModelType();e.layerModel=new Az[r](e),yield e.initLayerModels()})()}getModelType(){return"fill"}}class Sz extends sf{initTileLayer(){var e=this;return bt(function*(){const r=e.parent.getLayerAttributeConfig(),n=e.getLayerOptions(),a=e.getSourceOption(),l=new hE(_t({},n)).source(a.data,a.options);r&&Object.keys(r).forEach(o=>{var p,m;const v=o;l[v]((p=r[v])===null||p===void 0?void 0:p.field,(m=r[v])===null||m===void 0?void 0:m.values)}),yield e.addLayer(l),e.isLoaded=!0})()}getFeatures(e){return e?this.sourceTile.data.getTileData(e):[]}getSourceOption(){const e=this.parent.getSource(),{sourceLayer:r,featureId:n}=this.parent.getLayerConfig();return{data:{type:"FeatureCollection",features:this.getFeatures(r)},options:{parser:{type:"geojson",featureId:n},transforms:e.transforms}}}}const wz=["rasterData"];let Cz=class extends sf{initTileLayer(){var e=this;return bt(function*(){const r=e.parent.getLayerAttributeConfig(),n=e.getLayerOptions(),a=e.getSourceOption(),l=new x2(_t({},n)).source(a.data,a.options);r&&Object.keys(r).forEach(o=>{var p,m;const v=o;l[v]((p=r[v])===null||p===void 0?void 0:p.field,(m=r[v])===null||m===void 0?void 0:m.values)}),yield e.addLayer(l),e.isLoaded=!0})()}getSourceOption(){const e=this.parent.getSource(),r=this.sourceTile.data.data,{rasterData:n}=r,a=fu(r,wz);return{data:n,options:{parser:_t({type:"rasterRgb",extent:this.sourceTile.bounds},a),transforms:e.transforms}}}};class Rz extends sf{initTileLayer(){var e=this;return bt(function*(){const r=e.parent.getLayerAttributeConfig(),n=e.getLayerOptions(),a=e.getSourceOption(),l=new x2(_t({},n)).source(a.data,a.options);r&&Object.keys(r).forEach(o=>{var p,m;const v=o;l[v]((p=r[v])===null||p===void 0?void 0:p.field,(m=r[v])===null||m===void 0?void 0:m.values)}),yield e.addLayer(l),e.isLoaded=!0})()}getSourceOption(){const e=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:e.transforms}}}}const Iz=["rasterData"],Mz={positions:[0,1],colors:["#000","#fff"]};class Pz extends sf{constructor(...e){super(...e),I(this,"colorTexture",void 0)}initTileLayer(){var e=this;return bt(function*(){const r=e.parent.getLayerAttributeConfig(),n=e.getLayerOptions(),a=e.getSourceOption(),{rampColors:l,domain:o}=e.getLayerOptions();e.colorTexture=e.parent.textureService.getColorTexture(l,o);const p=new x2(_t(_t({},n),{},{colorTexture:e.colorTexture})).source(a.data,a.options);r&&Object.keys(r).forEach(m=>{var v,E;const b=m;p[b]((v=r[b])===null||v===void 0?void 0:v.field,(E=r[b])===null||E===void 0?void 0:E.values)}),yield e.addLayer(p),e.isLoaded=!0})()}getSourceOption(){const e=this.parent.getSource(),r=this.sourceTile.data.data,{rasterData:n}=r,a=fu(r,Iz);return{data:n,options:{parser:_t({type:"raster",extent:this.sourceTile.bounds},a),transforms:e.transforms}}}styleUpdate(...e){const{rampColors:r=Mz,domain:n}=e;this.colorTexture=this.parent.textureService.getColorTexture(r,n||Zv(r)),this.layers.forEach(a=>a.style({colorTexture:this.colorTexture}))}destroy(){this.layers.forEach(e=>e.destroy())}}class O0 extends sf{initTileLayer(){var e=this;return bt(function*(){const r=e.parent.getLayerAttributeConfig(),n=e.getLayerOptions(),a=_z(e.parent.type),l=e.getSourceOption();if(!l){e.isLoaded=!0,e.emit("loaded");return}const o=new a(_t({},n)).source(l.data,l.options);Object.keys(r).forEach(p=>{var m,v;const E=p;o[E]((m=r[E])===null||m===void 0?void 0:m.field,(v=r[E])===null||v===void 0?void 0:v.values)}),yield e.addLayer(o),n.tileMask&&(yield e.addTileMask()),e.setLayerMinMaxZoom(o),e.isLoaded=!0,e.emit("loaded")})()}getSourceOption(){const e=this.parent.getSource(),{sourceLayer:r="defaultLayer",featureId:n="id"}=this.parent.getLayerConfig();return{data:{type:"FeatureCollection",features:this.getFeatures(r)},options:{parser:{type:"geojson",featureId:n},transforms:e.transforms}}}setLayerMinMaxZoom(e){e.getModelType()==="text"&&e.updateLayerConfig({maxZoom:this.z+1,minZoom:this.z-1})}getFeatures(e){return this.sourceTile.data.getTileData(e)}getFeatureById(e){const r=this.getMainLayer();return r?r.getSource().data.dataArray.filter(a=>a._id===e):[]}}function Oz(t){switch(t.type){case"PolygonLayer":return O0;case"LineLayer":return O0;case"PointLayer":return O0;case"TileDebugLayer":return vz;case"MaskLayer":return Sz;case"RasterLayer":const{dataType:r}=t.getSource().parser;switch(r){case Ja.RGB:case Ja.CUSTOMRGB:return Cz;case Ja.ARRAYBUFFER:case Ja.CUSTOMARRAYBUFFER:return Pz;case Ja.TERRAINRGB:case Ja.CUSTOMTERRAINRGB:return Rz;default:return yz}default:return O0}}const Lz=["shape","color","size","style","animate","filter","rotate","scale","setBlend","setSelect","setActive","disableMask","enableMask","addMask","removeMask"],{debounce:Dz}=Ko;class Bz{constructor(e){I(this,"parent",void 0),I(this,"tileLayerService",void 0),I(this,"mapService",void 0),I(this,"layerService",void 0),I(this,"rendererService",void 0),I(this,"pickingService",void 0),I(this,"tilePickService",void 0),I(this,"tilesetManager",void 0),I(this,"initedTileset",!1),I(this,"lastViewStates",void 0),I(this,"mapchange",()=>{var n;if(this.parent.isVisible()===!1)return;const{latLonBounds:a,zoom:l}=this.getCurrentView();this.lastViewStates&&this.lastViewStates.zoom===l&&this.lastViewStates.latLonBounds.toString()===a.toString()||(this.lastViewStates={zoom:l,latLonBounds:a},(n=this.tilesetManager)===null||n===void 0||n.throttleUpdate(l,a))}),I(this,"viewchange",Dz(this.mapchange,24)),this.parent=e;const r=this.parent.getContainer();this.rendererService=r.rendererService,this.layerService=r.layerService,this.mapService=r.mapService,this.pickingService=r.pickingService,this.tileLayerService=new NU({rendererService:this.rendererService,layerService:this.layerService,parent:e}),this.tilePickService=new mz({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:e}),this.parent.setLayerPickService(this.tilePickService),this.proxy(e),this.initTileSetManager()}initTileSetManager(){var e;const r=this.parent.getSource();if(this.tilesetManager=r.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()===!1)return;const{latLonBounds:n,zoom:a}=this.getCurrentView();(e=this.tilesetManager)===null||e===void 0||e.update(a,n)}getCurrentView(){const e=this.mapService.getBounds(),r=[e[0][0],e[0][1],e[1][0],e[1][1]],n=this.mapService.getZoom();return{latLonBounds:r,zoom:n}}bindTilesetEvent(){this.tilesetManager.on("tile-loaded",e=>{}),this.tilesetManager.on("tile-unload",e=>{this.tileUnLoad(e)}),this.tilesetManager.on("tile-error",(e,r)=>{this.tileError(e)}),this.tilesetManager.on("tile-update",()=>{this.tileUpdate()}),this.mapService.on("zoomend",this.mapchange),this.mapService.on("moveend",this.viewchange)}render(){this.tileLayerService.render()}getLayers(){return this.tileLayerService.getLayers()}getTiles(){return this.tileLayerService.getTiles()}getTile(e){return this.tileLayerService.getTile(e)}tileLoaded(e){}tileError(e){console.warn("error:",e)}destroy(){var e;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(e=this.tilesetManager)===null||e===void 0||e.destroy(),this.tileLayerService.destroy()}reload(){var e;this.tilesetManager.clear();const{latLonBounds:r,zoom:n}=this.getCurrentView();(e=this.tilesetManager)===null||e===void 0||e.update(n,r)}tileUnLoad(e){this.tileLayerService.removeTile(e.key)}tileUpdate(){var e=this;return bt(function*(){if(!e.tilesetManager)return;const r=e.parent.getMinZoom(),n=e.parent.getMaxZoom(),a=e.tilesetManager.tiles.filter(l=>l.isLoaded).filter(l=>l.isVisibleChange).filter(l=>l.data).filter(l=>l.z>=r&&l.z{const n=e[r].bind(e);e[r]=(...a)=>(n(...a),this.getLayers().map(l=>{l[r](...a)}),r==="style"&&this.getTiles().forEach(l=>l.styleUpdate(...a)),e)})}}class Fz extends eh{constructor(...e){super(...e),I(this,"disabled",void 0),I(this,"zoomInButton",void 0),I(this,"zoomOutButton",void 0),I(this,"zoomNumDiv",void 0),I(this,"zoomIn",()=>{!this.disabled&&this.mapsService.getZoom(){!this.disabled&&this.mapsService.getZoom()>this.mapsService.getMinZoom()&&this.mapsService.zoomOut()}),I(this,"updateDisabled",()=>{const r=this.mapsService;this.zoomInButton.removeAttribute("disabled"),this.zoomOutButton.removeAttribute("disabled"),(this.disabled||r.getZoom()<=r.getMinZoom())&&this.zoomOutButton.setAttribute("disabled","true"),this.controlOption.showZoom&&this.zoomNumDiv&&(this.zoomNumDiv.innerText=String(Math.floor(r.getZoom()))),(this.disabled||r.getZoom()>=r.getMaxZoom())&&this.zoomInButton.setAttribute("disabled","true")})}getDefault(e){return _t(_t({},super.getDefault(e)),{},{position:Ep.BOTTOMRIGHT,name:"zoom",zoomInText:i6("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:i6("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}setOptions(e){super.setOptions(e),this.checkUpdateOption(e,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}onAdd(){const e=_a("div","l7-control-zoom");return this.resetButtonGroup(e),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),e}onRemove(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}disable(){return this.disabled=!0,this.updateDisabled(),this}enable(){return this.disabled=!1,this.updateDisabled(),this}resetButtonGroup(e){Qm(e),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",e,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",e)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",e,this.zoomOut),this.updateDisabled()}createButton(e,r,n,a,l){const o=_a("button",n,a);return typeof e=="string"?o.innerHTML=e:o.append(e),o.title=r,l&&o.addEventListener("click",l),o}}function Nz(t,e){var r=typeof my<"u"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx<"u"&&wx!==null&&(typeof wx.request<"u"||typeof wx.miniProgram<"u");if(!(r||n)&&(e||(e=document),!!e)){var a=e.head||e.getElementsByTagName("head")[0];if(!a){a=e.createElement("head");var l=e.body||e.getElementsByTagName("body")[0];l?l.parentNode.insertBefore(a,l):e.documentElement.appendChild(a)}var o=e.createElement("style");return o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),a.appendChild(o),o}}Nz(`.l7-marker-container { position: absolute; width: 100%; height: 100%; @@ -5193,7 +5193,7 @@ void main() { -webkit-transform: translateX(-6px); transform: translateX(-6px); } -`);class E2{constructor(e){I(this,"configService",void 0),I(this,"config",void 0),this.config=e}setContainer(e,r){this.configService=e.globalConfigService,e.mapConfig=_t(_t({},this.config),{},{id:r}),e.mapService=new(this.getServiceConstructor())(e)}getServiceConstructor(){throw new Error("Method not implemented.")}}var fE={exports:{}};(function(t,e){(function(r,n){t.exports=n()})($m,function(){function r(b){var A=[];return b.AMapUI&&A.push(n(b.AMapUI)),b.Loca&&A.push(a(b.Loca)),Promise.all(A)}function n(b){return new Promise(function(A,R){var O=[];if(b.plugins)for(var D=0;Djz&&e?this.coordinateSystemService.setCoordinateSystem(Tp.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(Tp.LNGLAT)}creatMapContainer(e){let r;return typeof e=="string"?r=document.getElementById(e):r=e,r}getMapStyleValue(e){var r;return(r=this.getMapStyleConfig()[e])!==null&&r!==void 0?r:e}setBgColor(e){this.bgColor=e}getMapContainer(){return this.mapContainer}getMarkerContainer(){return this.markerContainer}getOverlayContainer(){}getCanvasOverlays(){}emit(e,...r){this.eventEmitter.emit(e,...r)}once(e,r){this.eventEmitter.once(e,r)}meterToCoord(e,r){return 1}destroy(){this.eventEmitter.removeAllListeners()}}function t3(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function tm(t,e){var r=W1([],e,t);return xT(r,r,1/r[3]),r}function tf(t,e){if(!t)throw new Error(e||"viewport-mercator-project: assertion failed.")}var Nu=Math.PI,dE=Nu/4,Q1=Nu/180,bx=180/Nu,T2=512,Ex=4003e4,Wz=1.5;function mE(t){return Math.pow(2,t)}function yg(t,e){var r=lu(t,2),n=r[0],a=r[1];tf(Number.isFinite(n)&&Number.isFinite(e)),tf(Number.isFinite(a)&&a>=-90&&a<=90,"invalid latitude"),e*=T2;var l=n*Q1,o=a*Q1,p=e*(l+Nu)/(2*Nu),m=e*(Nu-Math.log(Math.tan(dE+o*.5)))/(2*Nu);return[p,m]}function Tx(t,e){var r=lu(t,2),n=r[0],a=r[1];e*=T2;var l=n/e*(2*Nu)-Nu,o=2*(Math.atan(Math.exp(Nu-a/e*(2*Nu)))-dE);return[l*bx,o*bx]}function Gz(t){var e=t.latitude,r=t.longitude,n=t.zoom,a=t.scale,l=t.highPrecision,o=l===void 0?!1:l;a=a!==void 0?a:mE(n),tf(Number.isFinite(e)&&Number.isFinite(r)&&Number.isFinite(a));var p={},m=T2*a,v=Math.cos(e*Q1),E=m/360,b=E/v,A=m/Ex/v;if(p.pixelsPerMeter=[A,-A,A],p.metersPerPixel=[1/A,-1/A,1/A],p.pixelsPerDegree=[E,-b,A],p.degreesPerPixel=[1/E,-1/b,1/A],o){var R=Q1*Math.tan(e*Q1)/v,O=E*R/2,D=m/Ex*R,N=D/b*A;p.pixelsPerDegree2=[0,-O,D],p.pixelsPerMeter2=[N,0,N]}return p}function Zz(t){var e=t.height,r=t.pitch,n=t.bearing,a=t.altitude,l=t.center,o=l===void 0?null:l,p=t.flipY,m=p===void 0?!1:p,v=t3();return ou(v,v,[0,0,-a]),au(v,v,[1,1,1/e]),Dp(v,v,-r*Q1),S3(v,v,n*Q1),m&&au(v,v,[1,-1,1]),o&&ou(v,v,sT([],o)),v}function $z(t){var e=t.width,r=t.height,n=t.altitude,a=n===void 0?Wz:n,l=t.pitch,o=l===void 0?0:l,p=t.nearZMultiplier,m=p===void 0?1:p,v=t.farZMultiplier,E=v===void 0?1:v,b=o*Q1,A=Math.atan(.5/a),R=Math.sin(A)*a/Math.sin(Math.PI/2-b-A),O=Math.cos(Math.PI/2-b)*R+a;return{fov:2*Math.atan(r/2/a),aspect:e/r,focalDistance:a,near:m,far:O*E}}function qz(t){var e=t.width,r=t.height,n=t.pitch,a=t.altitude,l=t.nearZMultiplier,o=t.farZMultiplier,p=$z({width:e,height:r,altitude:a,pitch:n,nearZMultiplier:l,farZMultiplier:o}),m=p.fov,v=p.aspect,E=p.near,b=p.far,A=L8([],m,v,E,b);return A}function Yz(t,e){var r=lu(t,3),n=r[0],a=r[1],l=r[2],o=l===void 0?0:l;return tf(Number.isFinite(n)&&Number.isFinite(a)&&Number.isFinite(o)),tm(e,[n,a,o,1])}function _E(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=lu(t,3),a=n[0],l=n[1],o=n[2];if(tf(Number.isFinite(a)&&Number.isFinite(l),"invalid pixel coordinate"),Number.isFinite(o)){var p=tm(e,[a,l,o,1]);return p}var m=tm(e,[a,l,0,1]),v=tm(e,[a,l,1,1]),E=m[2],b=v[2],A=E===b?0:((r||0)-E)/(b-E);return lT([],m,v,A)}var Ax=t3(),Kz=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.width,n=e.height,a=e.viewMatrix,l=a===void 0?Ax:a,o=e.projectionMatrix,p=o===void 0?Ax:o;M8(this,t),this.width=r||1,this.height=n||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=l,this.projectionMatrix=p;var m=t3();Y1(m,m,this.projectionMatrix),Y1(m,m,this.viewMatrix),this.viewProjectionMatrix=m;var v=t3();au(v,v,[this.width/2,-this.height/2,1]),ou(v,v,[1,-1,0]),Y1(v,v,this.viewProjectionMatrix);var E=fm(t3(),v);if(!E)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=v,this.pixelUnprojectionMatrix=E,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return I8(t,[{key:"equals",value:function(r){return r instanceof t?r.width===this.width&&r.height===this.height&&H4(r.projectionMatrix,this.projectionMatrix)&&H4(r.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.topLeft,l=a===void 0?!0:a,o=this.projectPosition(r),p=Yz(o,this.pixelProjectionMatrix),m=lu(p,2),v=m[0],E=m[1],b=l?E:this.height-E;return r.length===2?[v,b]:[v,b,p[2]]}},{key:"unproject",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.topLeft,l=a===void 0?!0:a,o=n.targetZ,p=lu(r,3),m=p[0],v=p[1],E=p[2],b=l?v:this.height-v,A=o&&o*this.pixelsPerMeter,R=_E([m,b,E],this.pixelUnprojectionMatrix,A),O=this.unprojectPosition(R),D=lu(O,3),N=D[0],W=D[1],G=D[2];return Number.isFinite(E)?[N,W,G]:Number.isFinite(o)?[N,W,o]:[N,W]}},{key:"projectPosition",value:function(r){var n=this.projectFlat(r),a=lu(n,2),l=a[0],o=a[1],p=(r[2]||0)*this.pixelsPerMeter;return[l,o,p]}},{key:"unprojectPosition",value:function(r){var n=this.unprojectFlat(r),a=lu(n,2),l=a[0],o=a[1],p=(r[2]||0)/this.pixelsPerMeter;return[l,o,p]}},{key:"projectFlat",value:function(r){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale,r}},{key:"unprojectFlat",value:function(r){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale,r}}]),t}();function Qz(t){var e=t.width,r=t.height,n=t.bounds,a=t.minExtent,l=a===void 0?0:a,o=t.maxZoom,p=o===void 0?24:o,m=t.padding,v=m===void 0?0:m,E=t.offset,b=E===void 0?[0,0]:E,A=lu(n,2),R=lu(A[0],2),O=R[0],D=R[1],N=lu(A[1],2),W=N[0],G=N[1];if(Number.isFinite(v)){var Y=v;v={top:Y,bottom:Y,left:Y,right:Y}}else tf(Number.isFinite(v.top)&&Number.isFinite(v.bottom)&&Number.isFinite(v.left)&&Number.isFinite(v.right));var Q=new Ev({width:e,height:r,longitude:0,latitude:0,zoom:0}),J=Q.project([O,G]),Se=Q.project([W,D]),ce=[Math.max(Math.abs(Se[0]-J[0]),l),Math.max(Math.abs(Se[1]-J[1]),l)],ke=[e-v.left-v.right-Math.abs(b[0])*2,r-v.top-v.bottom-Math.abs(b[1])*2];tf(ke[0]>0&&ke[1]>0);var ct=ke[0]/ce[0],Ve=ke[1]/ce[1],Te=(v.right-v.left)/2/ct,Fe=(v.bottom-v.top)/2/Ve,He=[(Se[0]+J[0])/2+Te,(Se[1]+J[1])/2+Fe],nt=Q.unproject(He),Ut=Q.zoom+Math.log2(Math.abs(Math.min(ct,Ve)));return{longitude:nt[0],latitude:nt[1],zoom:Math.min(Ut,p)}}var Ev=function(t){J9(e,t);function e(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=n.width,l=n.height,o=n.latitude,p=o===void 0?0:o,m=n.longitude,v=m===void 0?0:m,E=n.zoom,b=E===void 0?0:E,A=n.pitch,R=A===void 0?0:A,O=n.bearing,D=O===void 0?0:O,N=n.altitude,W=N===void 0?1.5:N,G=n.nearZMultiplier,Y=n.farZMultiplier;M8(this,e),a=a||1,l=l||1;var Q=mE(b);W=Math.max(.75,W);var J=yg([v,p],Q);J[2]=0;var Se=qz({width:a,height:l,pitch:R,bearing:D,altitude:W,nearZMultiplier:G||1/l,farZMultiplier:Y||1.01}),ce=Zz({height:l,center:J,pitch:R,bearing:D,altitude:W,flipY:!0});return r=eT(this,tT(e).call(this,{width:a,height:l,viewMatrix:ce,projectionMatrix:Se})),r.latitude=p,r.longitude=v,r.zoom=b,r.pitch=R,r.bearing=D,r.altitude=W,r.scale=Q,r.center=J,r.pixelsPerMeter=Gz(g0(g0(r))).pixelsPerMeter[2],Object.freeze(g0(g0(r))),r}return I8(e,[{key:"projectFlat",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return yg(n,a)}},{key:"unprojectFlat",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return Tx(n,a)}},{key:"getMapCenterByLngLatPosition",value:function(n){var a=n.lngLat,l=n.pos,o=_E(l,this.pixelUnprojectionMatrix),p=yg(a,this.scale),m=X1([],p,uT([],o)),v=X1([],this.center,m);return Tx(v,this.scale)}},{key:"getLocationAtPoint",value:function(n){var a=n.lngLat,l=n.pos;return this.getMapCenterByLngLatPosition({lngLat:a,pos:l})}},{key:"fitBounds",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=this.width,o=this.height,p=Qz(Object.assign({width:l,height:o,bounds:n},a)),m=p.longitude,v=p.latitude,E=p.zoom;return new e({width:l,height:o,longitude:m,latitude:v,zoom:E})}}]),e}(Kz);class A2{constructor(){I(this,"viewport",new Ev)}syncWithMapCamera(e){const{center:r,zoom:n,pitch:a,bearing:l,viewportHeight:o,viewportWidth:p}=e,m={width:this.viewport.width,height:this.viewport.height,longitude:this.viewport.center[0],latitude:this.viewport.center[1],zoom:this.viewport.zoom,pitch:this.viewport.pitch,bearing:this.viewport.bearing};this.viewport=new Ev(_t(_t({},m),{},{width:p,height:o,longitude:r&&r[0],latitude:r&&r[1],zoom:n,pitch:a,bearing:l}))}getZoom(){return this.viewport.zoom}getZoomScale(){return Math.pow(2,this.getZoom())}getCenter(){return[this.viewport.longitude,this.viewport.latitude]}getProjectionMatrix(){return this.viewport.projectionMatrix}getModelMatrix(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}getViewMatrix(){return this.viewport.viewMatrix}getViewMatrixUncentered(){return this.viewport.viewMatrixUncentered}getViewProjectionMatrix(){return this.viewport.viewProjectionMatrix}getViewProjectionMatrixUncentered(){return this.viewport.viewProjectionMatrix}getFocalDistance(){return 1}projectFlat(e,r){return this.viewport.projectFlat(e,r)}}let gE=function(t){return t.GAODE="GAODE",t.MAPBOX="MAPBOX",t.DEFAULT="DEFAUlTMAP",t.SIMPLE="SIMPLE",t.GLOBEL="GLOBEL",t}({});function Sx(t={}){const e={top:0,right:0,bottom:0,left:0};if(typeof t=="number")return{top:t,right:t,bottom:t,left:t};if(Array.isArray(t)){if(t.length===4)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(t.length===2)return{top:t[0],right:t[1],bottom:t[0],left:t[1]}}return _t(_t({},e),t)}const Jz={normal:"amap://styles/normal",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true",fresh:"amap://styles/fresh",grey:"amap://styles/grey",graffiti:"amap://styles/graffiti",macaron:"amap://styles/macaron",darkblue:"amap://styles/darkblue",wine:"amap://styles/wine"},eV=["id","style","minZoom","maxZoom","token","mapInstance","plugin"];function tV(t,e){var r=typeof my<"u"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx<"u"&&wx!==null&&(typeof wx.request<"u"||typeof wx.miniProgram<"u");if(!(r||n)&&(e||(e=document),!!e)){var a=e.head||e.getElementsByTagName("head")[0];if(!a){a=e.createElement("head");var l=e.body||e.getElementsByTagName("body")[0];l?l.parentNode.insertBefore(a,l):e.documentElement.appendChild(a)}var o=e.createElement("style");return o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),a.appendChild(o),o}}tV(`.amap-logo { +`);class E2{constructor(e){I(this,"configService",void 0),I(this,"config",void 0),this.config=e}setContainer(e,r){this.configService=e.globalConfigService,e.mapConfig=_t(_t({},this.config),{},{id:r}),e.mapService=new(this.getServiceConstructor())(e)}getServiceConstructor(){throw new Error("Method not implemented.")}}var fE={exports:{}};(function(t,e){(function(r,n){t.exports=n()})($m,function(){function r(b){var A=[];return b.AMapUI&&A.push(n(b.AMapUI)),b.Loca&&A.push(a(b.Loca)),Promise.all(A)}function n(b){return new Promise(function(A,R){var O=[];if(b.plugins)for(var D=0;Dzz&&e?this.coordinateSystemService.setCoordinateSystem(Tp.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(Tp.LNGLAT)}creatMapContainer(e){let r;return typeof e=="string"?r=document.getElementById(e):r=e,r}getMapStyleValue(e){var r;return(r=this.getMapStyleConfig()[e])!==null&&r!==void 0?r:e}setBgColor(e){this.bgColor=e}getMapContainer(){return this.mapContainer}getMarkerContainer(){return this.markerContainer}getOverlayContainer(){}getCanvasOverlays(){}emit(e,...r){this.eventEmitter.emit(e,...r)}once(e,r){this.eventEmitter.once(e,r)}meterToCoord(e,r){return 1}destroy(){this.eventEmitter.removeAllListeners()}}function t3(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function tm(t,e){var r=W1([],e,t);return vT(r,r,1/r[3]),r}function tf(t,e){if(!t)throw new Error(e||"viewport-mercator-project: assertion failed.")}var Nu=Math.PI,dE=Nu/4,Q1=Nu/180,bx=180/Nu,T2=512,Ex=4003e4,Hz=1.5;function mE(t){return Math.pow(2,t)}function yg(t,e){var r=lu(t,2),n=r[0],a=r[1];tf(Number.isFinite(n)&&Number.isFinite(e)),tf(Number.isFinite(a)&&a>=-90&&a<=90,"invalid latitude"),e*=T2;var l=n*Q1,o=a*Q1,p=e*(l+Nu)/(2*Nu),m=e*(Nu-Math.log(Math.tan(dE+o*.5)))/(2*Nu);return[p,m]}function Tx(t,e){var r=lu(t,2),n=r[0],a=r[1];e*=T2;var l=n/e*(2*Nu)-Nu,o=2*(Math.atan(Math.exp(Nu-a/e*(2*Nu)))-dE);return[l*bx,o*bx]}function jz(t){var e=t.latitude,r=t.longitude,n=t.zoom,a=t.scale,l=t.highPrecision,o=l===void 0?!1:l;a=a!==void 0?a:mE(n),tf(Number.isFinite(e)&&Number.isFinite(r)&&Number.isFinite(a));var p={},m=T2*a,v=Math.cos(e*Q1),E=m/360,b=E/v,A=m/Ex/v;if(p.pixelsPerMeter=[A,-A,A],p.metersPerPixel=[1/A,-1/A,1/A],p.pixelsPerDegree=[E,-b,A],p.degreesPerPixel=[1/E,-1/b,1/A],o){var R=Q1*Math.tan(e*Q1)/v,O=E*R/2,D=m/Ex*R,N=D/b*A;p.pixelsPerDegree2=[0,-O,D],p.pixelsPerMeter2=[N,0,N]}return p}function Xz(t){var e=t.height,r=t.pitch,n=t.bearing,a=t.altitude,l=t.center,o=l===void 0?null:l,p=t.flipY,m=p===void 0?!1:p,v=t3();return ou(v,v,[0,0,-a]),au(v,v,[1,1,1/e]),Dp(v,v,-r*Q1),S3(v,v,n*Q1),m&&au(v,v,[1,-1,1]),o&&ou(v,v,oT([],o)),v}function Wz(t){var e=t.width,r=t.height,n=t.altitude,a=n===void 0?Hz:n,l=t.pitch,o=l===void 0?0:l,p=t.nearZMultiplier,m=p===void 0?1:p,v=t.farZMultiplier,E=v===void 0?1:v,b=o*Q1,A=Math.atan(.5/a),R=Math.sin(A)*a/Math.sin(Math.PI/2-b-A),O=Math.cos(Math.PI/2-b)*R+a;return{fov:2*Math.atan(r/2/a),aspect:e/r,focalDistance:a,near:m,far:O*E}}function Gz(t){var e=t.width,r=t.height,n=t.pitch,a=t.altitude,l=t.nearZMultiplier,o=t.farZMultiplier,p=Wz({width:e,height:r,altitude:a,pitch:n,nearZMultiplier:l,farZMultiplier:o}),m=p.fov,v=p.aspect,E=p.near,b=p.far,A=L8([],m,v,E,b);return A}function Zz(t,e){var r=lu(t,3),n=r[0],a=r[1],l=r[2],o=l===void 0?0:l;return tf(Number.isFinite(n)&&Number.isFinite(a)&&Number.isFinite(o)),tm(e,[n,a,o,1])}function _E(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=lu(t,3),a=n[0],l=n[1],o=n[2];if(tf(Number.isFinite(a)&&Number.isFinite(l),"invalid pixel coordinate"),Number.isFinite(o)){var p=tm(e,[a,l,o,1]);return p}var m=tm(e,[a,l,0,1]),v=tm(e,[a,l,1,1]),E=m[2],b=v[2],A=E===b?0:((r||0)-E)/(b-E);return aT([],m,v,A)}var Ax=t3(),$z=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.width,n=e.height,a=e.viewMatrix,l=a===void 0?Ax:a,o=e.projectionMatrix,p=o===void 0?Ax:o;M8(this,t),this.width=r||1,this.height=n||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=l,this.projectionMatrix=p;var m=t3();Y1(m,m,this.projectionMatrix),Y1(m,m,this.viewMatrix),this.viewProjectionMatrix=m;var v=t3();au(v,v,[this.width/2,-this.height/2,1]),ou(v,v,[1,-1,0]),Y1(v,v,this.viewProjectionMatrix);var E=fm(t3(),v);if(!E)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=v,this.pixelUnprojectionMatrix=E,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return I8(t,[{key:"equals",value:function(r){return r instanceof t?r.width===this.width&&r.height===this.height&&H4(r.projectionMatrix,this.projectionMatrix)&&H4(r.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.topLeft,l=a===void 0?!0:a,o=this.projectPosition(r),p=Zz(o,this.pixelProjectionMatrix),m=lu(p,2),v=m[0],E=m[1],b=l?E:this.height-E;return r.length===2?[v,b]:[v,b,p[2]]}},{key:"unproject",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.topLeft,l=a===void 0?!0:a,o=n.targetZ,p=lu(r,3),m=p[0],v=p[1],E=p[2],b=l?v:this.height-v,A=o&&o*this.pixelsPerMeter,R=_E([m,b,E],this.pixelUnprojectionMatrix,A),O=this.unprojectPosition(R),D=lu(O,3),N=D[0],W=D[1],G=D[2];return Number.isFinite(E)?[N,W,G]:Number.isFinite(o)?[N,W,o]:[N,W]}},{key:"projectPosition",value:function(r){var n=this.projectFlat(r),a=lu(n,2),l=a[0],o=a[1],p=(r[2]||0)*this.pixelsPerMeter;return[l,o,p]}},{key:"unprojectPosition",value:function(r){var n=this.unprojectFlat(r),a=lu(n,2),l=a[0],o=a[1],p=(r[2]||0)/this.pixelsPerMeter;return[l,o,p]}},{key:"projectFlat",value:function(r){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale,r}},{key:"unprojectFlat",value:function(r){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale,r}}]),t}();function qz(t){var e=t.width,r=t.height,n=t.bounds,a=t.minExtent,l=a===void 0?0:a,o=t.maxZoom,p=o===void 0?24:o,m=t.padding,v=m===void 0?0:m,E=t.offset,b=E===void 0?[0,0]:E,A=lu(n,2),R=lu(A[0],2),O=R[0],D=R[1],N=lu(A[1],2),W=N[0],G=N[1];if(Number.isFinite(v)){var Y=v;v={top:Y,bottom:Y,left:Y,right:Y}}else tf(Number.isFinite(v.top)&&Number.isFinite(v.bottom)&&Number.isFinite(v.left)&&Number.isFinite(v.right));var Q=new Ev({width:e,height:r,longitude:0,latitude:0,zoom:0}),J=Q.project([O,G]),Se=Q.project([W,D]),ce=[Math.max(Math.abs(Se[0]-J[0]),l),Math.max(Math.abs(Se[1]-J[1]),l)],ke=[e-v.left-v.right-Math.abs(b[0])*2,r-v.top-v.bottom-Math.abs(b[1])*2];tf(ke[0]>0&&ke[1]>0);var ct=ke[0]/ce[0],Ve=ke[1]/ce[1],Te=(v.right-v.left)/2/ct,Fe=(v.bottom-v.top)/2/Ve,He=[(Se[0]+J[0])/2+Te,(Se[1]+J[1])/2+Fe],nt=Q.unproject(He),Ut=Q.zoom+Math.log2(Math.abs(Math.min(ct,Ve)));return{longitude:nt[0],latitude:nt[1],zoom:Math.min(Ut,p)}}var Ev=function(t){K9(e,t);function e(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=n.width,l=n.height,o=n.latitude,p=o===void 0?0:o,m=n.longitude,v=m===void 0?0:m,E=n.zoom,b=E===void 0?0:E,A=n.pitch,R=A===void 0?0:A,O=n.bearing,D=O===void 0?0:O,N=n.altitude,W=N===void 0?1.5:N,G=n.nearZMultiplier,Y=n.farZMultiplier;M8(this,e),a=a||1,l=l||1;var Q=mE(b);W=Math.max(.75,W);var J=yg([v,p],Q);J[2]=0;var Se=Gz({width:a,height:l,pitch:R,bearing:D,altitude:W,nearZMultiplier:G||1/l,farZMultiplier:Y||1.01}),ce=Xz({height:l,center:J,pitch:R,bearing:D,altitude:W,flipY:!0});return r=Q9(this,J9(e).call(this,{width:a,height:l,viewMatrix:ce,projectionMatrix:Se})),r.latitude=p,r.longitude=v,r.zoom=b,r.pitch=R,r.bearing=D,r.altitude=W,r.scale=Q,r.center=J,r.pixelsPerMeter=jz(g0(g0(r))).pixelsPerMeter[2],Object.freeze(g0(g0(r))),r}return I8(e,[{key:"projectFlat",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return yg(n,a)}},{key:"unprojectFlat",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return Tx(n,a)}},{key:"getMapCenterByLngLatPosition",value:function(n){var a=n.lngLat,l=n.pos,o=_E(l,this.pixelUnprojectionMatrix),p=yg(a,this.scale),m=X1([],p,sT([],o)),v=X1([],this.center,m);return Tx(v,this.scale)}},{key:"getLocationAtPoint",value:function(n){var a=n.lngLat,l=n.pos;return this.getMapCenterByLngLatPosition({lngLat:a,pos:l})}},{key:"fitBounds",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=this.width,o=this.height,p=qz(Object.assign({width:l,height:o,bounds:n},a)),m=p.longitude,v=p.latitude,E=p.zoom;return new e({width:l,height:o,longitude:m,latitude:v,zoom:E})}}]),e}($z);class A2{constructor(){I(this,"viewport",new Ev)}syncWithMapCamera(e){const{center:r,zoom:n,pitch:a,bearing:l,viewportHeight:o,viewportWidth:p}=e,m={width:this.viewport.width,height:this.viewport.height,longitude:this.viewport.center[0],latitude:this.viewport.center[1],zoom:this.viewport.zoom,pitch:this.viewport.pitch,bearing:this.viewport.bearing};this.viewport=new Ev(_t(_t({},m),{},{width:p,height:o,longitude:r&&r[0],latitude:r&&r[1],zoom:n,pitch:a,bearing:l}))}getZoom(){return this.viewport.zoom}getZoomScale(){return Math.pow(2,this.getZoom())}getCenter(){return[this.viewport.longitude,this.viewport.latitude]}getProjectionMatrix(){return this.viewport.projectionMatrix}getModelMatrix(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}getViewMatrix(){return this.viewport.viewMatrix}getViewMatrixUncentered(){return this.viewport.viewMatrixUncentered}getViewProjectionMatrix(){return this.viewport.viewProjectionMatrix}getViewProjectionMatrixUncentered(){return this.viewport.viewProjectionMatrix}getFocalDistance(){return 1}projectFlat(e,r){return this.viewport.projectFlat(e,r)}}let gE=function(t){return t.GAODE="GAODE",t.MAPBOX="MAPBOX",t.DEFAULT="DEFAUlTMAP",t.SIMPLE="SIMPLE",t.GLOBEL="GLOBEL",t}({});function Sx(t={}){const e={top:0,right:0,bottom:0,left:0};if(typeof t=="number")return{top:t,right:t,bottom:t,left:t};if(Array.isArray(t)){if(t.length===4)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(t.length===2)return{top:t[0],right:t[1],bottom:t[0],left:t[1]}}return _t(_t({},e),t)}const Yz={normal:"amap://styles/normal",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true",fresh:"amap://styles/fresh",grey:"amap://styles/grey",graffiti:"amap://styles/graffiti",macaron:"amap://styles/macaron",darkblue:"amap://styles/darkblue",wine:"amap://styles/wine"},Kz=["id","style","minZoom","maxZoom","token","mapInstance","plugin"];function Qz(t,e){var r=typeof my<"u"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx<"u"&&wx!==null&&(typeof wx.request<"u"||typeof wx.miniProgram<"u");if(!(r||n)&&(e||(e=document),!!e)){var a=e.head||e.getElementsByTagName("head")[0];if(!a){a=e.createElement("head");var l=e.body||e.getElementsByTagName("body")[0];l?l.parentNode.insertBefore(a,l):e.documentElement.appendChild(a)}var o=e.createElement("style");return o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),a.appendChild(o),o}}Qz(`.amap-logo { display: none !important; } .amap-copyright { @@ -5202,12 +5202,12 @@ void main() { .amap-overlays { z-index: 3 !important; } -`);const rV="2.0",Cx="f59bcf249433f8b05caaee19f349b3d7",zh=1,Rx={contextmenu:"rightclick",camerachange:"viewchange"};class nV extends Xz{constructor(...e){super(...e),I(this,"viewport",new A2),I(this,"version",gE.GAODE),I(this,"handleCameraChanged",()=>{const r=this.getViewState();this.updateView(r)})}getType(){return"amap"}init(){var e=this;return bt(function*(){const r=e.config,{id:n,style:a="light",minZoom:l=0,maxZoom:o=24,token:p=Cx,mapInstance:m,plugin:v=[]}=r,E=fu(r,eV);if(window.AMap||m||(v.push("Map3D"),yield Hz.load({key:p,version:rV,plugins:v})),m)e.map=m,e.mapContainer=e.map.getContainer(),e.map.on("viewchange",e.handleCameraChanged);else{const b=_t({mapStyle:e.getMapStyleValue(a),zooms:[l,o],viewMode:"3D"},E);if(b.zoom&&(b.zoom+=zh),p===Cx&&(window._AMapSecurityConfig={securityJsCode:"2653011adeb04230b3a26cc9a780a800"},console.warn(`%c${e.configService.getSceneWarninfo("MapToken")}!`,"color: #873bf4;font-weigh:900;font-size: 16px;")),!n)throw Error("No container id specified");window.forceWebGL=!0,e.mapContainer=e.creatMapContainer(n);const A=new AMap.Map(e.mapContainer,b);e.map=A,A.on("viewchange",e.handleCameraChanged)}e.syncInitViewPort()})()}syncInitViewPort(){const e=this.getViewState();this.updateView(e)}getViewState(){const{center:e,zoom:r}=iV(this.map);return{center:e,viewportWidth:this.map.getContainer().clientWidth,viewportHeight:this.map.getContainer().clientHeight,bearing:-this.map.getRotation(),pitch:this.map.getPitch(),zoom:r-zh}}creatMapContainer(e){const r=super.creatMapContainer(e),n=document.createElement("div");return n.style.cssText+=` +`);const Jz="2.0",Cx="f59bcf249433f8b05caaee19f349b3d7",zh=1,Rx={contextmenu:"rightclick",camerachange:"viewchange"};class eV extends Vz{constructor(...e){super(...e),I(this,"viewport",new A2),I(this,"version",gE.GAODE),I(this,"handleCameraChanged",()=>{const r=this.getViewState();this.updateView(r)})}getType(){return"amap"}init(){var e=this;return bt(function*(){const r=e.config,{id:n,style:a="light",minZoom:l=0,maxZoom:o=24,token:p=Cx,mapInstance:m,plugin:v=[]}=r,E=fu(r,Kz);if(window.AMap||m||(v.push("Map3D"),yield Uz.load({key:p,version:Jz,plugins:v})),m)e.map=m,e.mapContainer=e.map.getContainer(),e.map.on("viewchange",e.handleCameraChanged);else{const b=_t({mapStyle:e.getMapStyleValue(a),zooms:[l,o],viewMode:"3D"},E);if(b.zoom&&(b.zoom+=zh),p===Cx&&(window._AMapSecurityConfig={securityJsCode:"2653011adeb04230b3a26cc9a780a800"},console.warn(`%c${e.configService.getSceneWarninfo("MapToken")}!`,"color: #873bf4;font-weigh:900;font-size: 16px;")),!n)throw Error("No container id specified");window.forceWebGL=!0,e.mapContainer=e.creatMapContainer(n);const A=new AMap.Map(e.mapContainer,b);e.map=A,A.on("viewchange",e.handleCameraChanged)}e.syncInitViewPort()})()}syncInitViewPort(){const e=this.getViewState();this.updateView(e)}getViewState(){const{center:e,zoom:r}=tV(this.map);return{center:e,viewportWidth:this.map.getContainer().clientWidth,viewportHeight:this.map.getContainer().clientHeight,bearing:-this.map.getRotation(),pitch:this.map.getPitch(),zoom:r-zh}}creatMapContainer(e){const r=super.creatMapContainer(e),n=document.createElement("div");return n.style.cssText+=` position: absolute; top: 0; height: 100%; width: 100%; - `,n.id=Ko.uniqueId("l7_amap_div"),r.appendChild(n),n}getContainer(){return this.map.getContainer()}addMarkerContainer(){if(!this.map)return;const e=this.map.getContainer();if(e!==null){const r=e.getElementsByClassName("amap-maps")[0];r.style.zIndex="auto",this.markerContainer=_a("div","l7-marker-container2",r)}}getMarkerContainer(){return this.markerContainer}getCanvasOverlays(){var e;return(e=this.mapContainer)===null||e===void 0?void 0:e.querySelector(".amap-overlays")}on(e,r){$g.indexOf(e)!==-1?this.eventEmitter.on(e,r):this.map.on(Rx[e]||e,r)}off(e,r){$g.indexOf(e)!==-1?this.eventEmitter.off(e,r):this.map.off(Rx[e]||e,r)}getSize(){const e=this.map.getSize();return[e.getWidth(),e.getHeight()]}getMinZoom(){return this.map.getZooms()[0]-zh}getMaxZoom(){return this.map.getZooms()[1]-zh}getZoom(){return this.map.getZoom()-zh}getCenter(e){if(e!=null&&e.padding){const n=this.getCenter(),a=Sx(e.padding),l=this.lngLatToPixel([n.lng,n.lat]),o=[(a.right-a.left)/2,(a.bottom-a.top)/2];return this.pixelToLngLat([l.x-o[0],l.y-o[1]])}const r=this.map.getCenter();return{lng:r.getLng(),lat:r.getLat()}}getPitch(){return this.map.getPitch()}getRotation(){return 360-this.map.getRotation()}getBounds(){const e=this.map.getBounds(),r=e.getNorthEast(),n=e.getSouthWest(),a=this.getCenter(),l=a.lng>r.getLng()||a.lng{const{lat:n,lng:a}=this.map.getCenter();this.emit("mapchange"),this.viewport.syncWithMapCamera({bearing:this.map.getBearing(),center:[a,n],viewportHeight:this.map.transform.height,pitch:this.map.getPitch(),viewportWidth:this.map.transform.width,zoom:this.map.getZoom(),cameraHeight:0}),this.updateCoordinateSystemService(),this.cameraChangedCallback(this.viewport)}),this.config=e.mapConfig,this.configService=e.globalConfigService,this.coordinateSystemService=e.coordinateSystemService,this.eventEmitter=new Ps.EventEmitter}setBgColor(e){this.bgColor=e}addMarkerContainer(){const e=this.map.getCanvasContainer();this.markerContainer=_a("div","l7-marker-container",e),this.markerContainer.setAttribute("tabindex","-1")}getMarkerContainer(){return this.markerContainer}getOverlayContainer(){}getCanvasOverlays(){}on(e,r){$g.indexOf(e)!==-1?this.eventEmitter.on(e,r):this.map.on(Ix[e]||e,r)}off(e,r){this.map.off(Ix[e]||e,r),this.eventEmitter.off(e,r)}getContainer(){return this.map.getContainer()}getMapCanvasContainer(){return this.map.getCanvasContainer()}getSize(){if(this.version==="SIMPLE")return this.simpleMapCoord.getSize();const e=this.map.transform;return[e.width,e.height]}getType(){return"default"}getZoom(){return this.map.getZoom()}setZoom(e){return this.map.setZoom(e)}getCenter(){return this.map.getCenter()}setCenter(e){this.map.setCenter(e)}getPitch(){return this.map.getPitch()}getRotation(){return this.map.getBearing()}getBounds(){return this.map.getBounds().toArray()}getMinZoom(){return this.map.getMinZoom()}getMaxZoom(){return this.map.getMaxZoom()}setRotation(e){this.map.setBearing(e)}zoomIn(e,r){this.map.zoomIn(e,r)}zoomOut(e,r){this.map.zoomOut(e,r)}setPitch(e){return this.map.setPitch(e)}panTo(e){this.map.panTo(e)}panBy(e=0,r=0){this.map.panBy([e,r])}fitBounds(e,r){this.map.fitBounds(e,r)}setMaxZoom(e){this.map.setMaxZoom(e)}setMinZoom(e){this.map.setMinZoom(e)}setMapStatus(e){e.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),e.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),e.dragEnable===!1&&this.map.dragPan.disable(),e.dragEnable===!0&&this.map.dragPan.enable(),e.rotateEnable===!1&&this.map.dragRotate.disable(),e.dragEnable===!0&&this.map.dragRotate.enable(),e.keyboardEnable===!1&&this.map.keyboard.disable(),e.keyboardEnable===!0&&this.map.keyboard.enable(),e.zoomEnable===!1&&this.map.scrollZoom.disable(),e.zoomEnable===!0&&this.map.scrollZoom.enable()}setZoomAndCenter(e,r){this.map.flyTo({zoom:e,center:r})}setMapStyle(e){var r;(r=this.map)===null||r===void 0||r.setStyle(this.getMapStyleValue(e))}meterToCoord(e,r){return 1}pixelToLngLat(e){return this.map.unproject(e)}lngLatToPixel(e){return this.map.project(e)}containerToLngLat(e){return this.map.unproject(e)}lngLatToContainer(e){return this.map.project(e)}getMapStyle(){try{var e;const r=(e=this.map.getStyle().sprite)!==null&&e!==void 0?e:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(r)?r==null?void 0:r.replace(/\/\w+$/,"").replace(/sprites/,"styles"):r}catch{return""}}getMapStyleConfig(){return oV}getMapStyleValue(e){var r;return(r=this.getMapStyleConfig()[e])!==null&&r!==void 0?r:e}destroy(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}emit(e,...r){this.eventEmitter.emit(e,...r)}once(e,...r){this.eventEmitter.once(e,...r)}getMapContainer(){return this.$mapContainer}exportMap(e){var r;const n=(r=this.map)===null||r===void 0?void 0:r.getCanvas();return e==="jpg"?n==null?void 0:n.toDataURL("image/jpeg"):n==null?void 0:n.toDataURL("image/png")}onCameraChanged(e){this.cameraChangedCallback=e}creatMapContainer(e){let r=e;return typeof e=="string"&&(r=document.getElementById(e)),r}updateView(e){this.emit("mapchange"),this.viewport.syncWithMapCamera({bearing:e.bearing,center:e.center,viewportHeight:e.viewportHeight,pitch:e.pitch,viewportWidth:e.viewportWidth,zoom:e.zoom,cameraHeight:0}),this.updateCoordinateSystemService(),this.cameraChangedCallback(this.viewport)}updateCoordinateSystemService(){const{offsetCoordinate:e=!0}=this.config;this.viewport.getZoom()>aV&&e?this.coordinateSystemService.setCoordinateSystem(Tp.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(Tp.LNGLAT)}}var sV=yE;function yE(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=e,this.p2x=r,this.p2y=n}yE.prototype={sampleCurveX:function(t){return((this.ax*t+this.bx)*t+this.cx)*t},sampleCurveY:function(t){return((this.ay*t+this.by)*t+this.cy)*t},sampleCurveDerivativeX:function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},solveCurveX:function(t,e){if(e===void 0&&(e=1e-6),t<0)return 0;if(t>1)return 1;for(var r=t,n=0;n<8;n++){var a=this.sampleCurveX(r)-t;if(Math.abs(a)a?o=r:p=r,r=(p-o)*.5+o;return r},solve:function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}};const lV=Co(sV),uu={number:function(e,r,n){return e+n*(r-e)}};function mc(t,e,r){return Math.min(r,Math.max(e,t))}function ap(t,e,r){const n=r-e,a=((t-e)%n+n)%n+e;return a===e?r:a}let uV=1;function cV(){return uV++}function Vo(t,...e){for(const r of e)for(const n in r)t[n]=r[n];return t}function hV(t,e){const r={};for(let n=0;na.solve(l)}const Tv=w2(.25,.1,.25,1),Mx={};function fV(t){Mx[t]||(typeof console<"u"&&console.warn(t),Mx[t]=!0)}function Px(t){return t*Math.PI/180}const xE=63710088e-1;class fi{constructor(e,r){if(I(this,"lng",void 0),I(this,"lat",void 0),isNaN(e)||isNaN(r))throw new Error(`Invalid LngLat object: (${e}, ${r})`);if(this.lng=+e,this.lat=+r,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new fi(ap(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const r=Math.PI/180,n=this.lat*r,a=e.lat*r,l=Math.sin(n)*Math.sin(a)+Math.cos(n)*Math.cos(a)*Math.cos((e.lng-this.lng)*r);return xE*Math.acos(Math.min(l,1))}static convert(e){if(e instanceof fi)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new fi(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e!==null)return new fi(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}const bE=2*Math.PI*xE;function EE(t){return bE*Math.cos(t*Math.PI/180)}function rm(t){return(180+t)/360}function nm(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function TE(t,e){return t/EE(e)}function pV(t){return t*360-180}function Av(t){const e=180-t*360;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}function dV(t,e){return t*EE(Av(e))}function mV(t){return 1/Math.cos(t*Math.PI/180)}class _c{constructor(e,r,n=0){I(this,"x",void 0),I(this,"y",void 0),I(this,"z",void 0),this.x=+e,this.y=+r,this.z=+n}static fromLngLat(e,r=0){const n=fi.convert(e);return new _c(rm(n.lng),nm(n.lat),TE(r,n.lat))}toLngLat(){return new fi(pV(this.x),Av(this.y))}toAltitude(){return dV(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/bE*mV(Av(this.y))}}class Bu{constructor(e,r){I(this,"_ne",void 0),I(this,"_sw",void 0),e&&(r?this.setSouthWest(e).setNorthEast(r):Array.isArray(e)&&(e.length===4?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1])))}setNorthEast(e){return this._ne=e instanceof fi?new fi(e.lng,e.lat):fi.convert(e),this}setSouthWest(e){return this._sw=e instanceof fi?new fi(e.lng,e.lat):fi.convert(e),this}extend(e){const r=this._sw,n=this._ne;let a,l;if(e instanceof fi)a=e,l=e;else if(e instanceof Bu){if(a=e._sw,l=e._ne,!a||!l)return this}else{if(Array.isArray(e))if(e.length===4||e.every(Array.isArray)){const o=e;return this.extend(Bu.convert(o))}else{const o=e;return this.extend(fi.convert(o))}else if(e&&("lng"in e||"lon"in e)&&"lat"in e)return this.extend(fi.convert(e));return this}return!r&&!n?(this._sw=new fi(a.lng,a.lat),this._ne=new fi(l.lng,l.lat)):(r.lng=Math.min(a.lng,r.lng),r.lat=Math.min(a.lat,r.lat),n.lng=Math.max(l.lng,n.lng),n.lat=Math.max(l.lat,n.lat)),this}getCenter(){return new fi((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new fi(this.getWest(),this.getNorth())}getSouthEast(){return new fi(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:r,lat:n}=fi.convert(e),a=this._sw.lat<=n&&n<=this._ne.lat;let l=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(l=this._sw.lng>=r&&r>=this._ne.lng),a&&l}static convert(e){return e instanceof Bu?e:new Bu(e)}static fromLngLat(e,r=0){const a=360*r/40075017,l=a/Math.cos(Math.PI/180*e.lat);return new Bu(new fi(e.lng-l,e.lat-a),new fi(e.lng+l,e.lat+a))}}const _V="AbortError";function gV(){return new Error(_V)}const vV=typeof performance<"u"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date);let xg;const hu={now:vV,frameAsync(t){return new Promise((e,r)=>{const n=requestAnimationFrame(e);t.signal.addEventListener("abort",()=>{cancelAnimationFrame(n),r(gV())})})},get prefersReducedMotion(){return window.matchMedia?(xg==null&&(xg=window.matchMedia("(prefers-reduced-motion: reduce)")),xg.matches):!1}};function Ox(t,e,r){r[t]&&r[t].indexOf(e)!==-1||(r[t]=r[t]||[],r[t].push(e))}function bg(t,e,r){if(r&&r[t]){const n=r[t].indexOf(e);n!==-1&&r[t].splice(n,1)}}let Zn=class{constructor(e,r={}){I(this,"type",void 0),Vo(this,r),this.type=e}};class yV extends Zn{constructor(e,r={}){super("error",r),I(this,"error",void 0),this.error=e}}class xV{constructor(){I(this,"_listeners",void 0),I(this,"_oneTimeListeners",void 0),I(this,"_eventedParent",void 0),I(this,"_eventedParentData",void 0)}on(e,r){return this._listeners=this._listeners||{},Ox(e,r,this._listeners),this}off(e,r){return bg(e,r,this._listeners),bg(e,r,this._oneTimeListeners),this}once(e,r){return r?(this._oneTimeListeners=this._oneTimeListeners||{},Ox(e,r,this._oneTimeListeners),this):new Promise(n=>this.once(e,n))}fire(e,r){typeof e=="string"&&(e=new Zn(e,r||{}));const n=e.type;if(this.listens(n)){e.target=this;const a=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const p of a)p.call(this,e);const l=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const p of l)bg(n,p,this._oneTimeListeners),p.call(this,e);const o=this._eventedParent;o&&(Vo(e,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),o.fire(e))}else e instanceof yV&&console.error(e.error);return this}emit(e,r){return this.fire(e,r)}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,r){return e&&(this._eventedParent=e),this._eventedParentData=r,this}}class bV extends xV{constructor(e,r){super(),I(this,"transform",void 0),I(this,"handlers",void 0),I(this,"_moving",void 0),I(this,"_zooming",void 0),I(this,"_rotating",void 0),I(this,"_pitching",void 0),I(this,"_padding",void 0),I(this,"_bearingSnap",void 0),I(this,"_easeStart",void 0),I(this,"_easeOptions",void 0),I(this,"_easeId",void 0),I(this,"_onEaseFrame",void 0),I(this,"_onEaseEnd",void 0),I(this,"_easeFrameId",void 0),I(this,"_requestedCameraState",void 0),I(this,"transformCameraUpdate",void 0),I(this,"_renderFrameCallback",()=>{const n=Math.min((hu.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(n)),n<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}),this._moving=!1,this._zooming=!1,this.transform=e,this._bearingSnap=r.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new fi(this.transform.center.lng,this.transform.center.lat)}setCenter(e,r){return this.jumpTo({center:e},r)}panBy(e,r,n){return e=oi.convert(e).mult(-1),this.panTo(this.transform.center,Vo({offset:e},r),n)}panTo(e,r,n){return this.easeTo(Vo({center:e},r),n)}getZoom(){return this.transform.zoom}setZoom(e,r){return this.jumpTo({zoom:e},r),this}zoomTo(e,r,n){return this.easeTo(Vo({zoom:e},r),n)}zoomIn(e,r){return this.zoomTo(this.getZoom()+1,e,r),this}zoomOut(e,r){return this.zoomTo(this.getZoom()-1,e,r),this}getBearing(){return this.transform.bearing}setBearing(e,r){return this.jumpTo({bearing:e},r),this}getPadding(){return this.transform.padding}setPadding(e,r){return this.jumpTo({padding:e},r),this}rotateTo(e,r,n){return this.easeTo(Vo({bearing:e},r),n)}resetNorth(e,r){return this.rotateTo(0,Vo({duration:1e3},e),r),this}resetNorthPitch(e,r){return this.easeTo(Vo({bearing:0,pitch:0,duration:1e3},e),r),this}snapToNorth(e,r){return Math.abs(this.getBearing()){if(this._zooming&&(a.zoom=uu.number(l,N,ce)),this._rotating&&(a.bearing=uu.number(o,v,ce)),this._pitching&&(a.pitch=uu.number(p,E,ce)),this._padding&&(a.interpolatePadding(m,b,ce),R=a.centerPoint.add(A)),Q)a.setLocationAtPoint(Q,J);else{const ke=a.zoomScale(a.zoom-l),ct=N>l?Math.min(2,Y):Math.max(.5,Y),Ve=Math.pow(ct,1-ce),Te=a.unproject(W.add(G.mult(ce*Ve)).mult(ke));a.setLocationAtPoint(a.renderWorldCopies?Te.wrap():Te,R)}this._applyUpdatedTransform(a),this._fireMoveEvents(r)},ce=>{this._afterEase(r,ce)},e),this}_prepareEase(e,r,n={}){this._moving=!0,!r&&!n.moving&&this.fire(new Zn("movestart",e)),this._zooming&&!n.zooming&&this.fire(new Zn("zoomstart",e)),this._rotating&&!n.rotating&&this.fire(new Zn("rotatestart",e)),this._pitching&&!n.pitching&&this.fire(new Zn("pitchstart",e))}_getTransformForUpdate(){return this.transformCameraUpdate?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_applyUpdatedTransform(e){if(!this.transformCameraUpdate)return;const r=e.clone(),{center:n,zoom:a,pitch:l,bearing:o,elevation:p}=this.transformCameraUpdate(r);n&&(r.center=n),a!==void 0&&(r.zoom=a),l!==void 0&&(r.pitch=l),o!==void 0&&(r.bearing=o),p!==void 0&&(r.elevation=p),this.transform.apply(r)}_fireMoveEvents(e){this.fire(new Zn("move",e)),this._zooming&&this.fire(new Zn("zoom",e)),this._rotating&&this.fire(new Zn("rotate",e)),this._pitching&&this.fire(new Zn("pitch",e))}_afterEase(e,r){if(this._easeId&&r&&this._easeId===r)return;delete this._easeId;const n=this._zooming,a=this._rotating,l=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&&this.fire(new Zn("zoomend",e)),a&&this.fire(new Zn("rotateend",e)),l&&this.fire(new Zn("pitchend",e)),this.fire(new Zn("moveend",e))}flyTo(e,r){var n;if(!e.essential&&hu.prefersReducedMotion){const Ht=hV(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Ht,r)}this.stop(),e=Vo({offset:[0,0],speed:1.2,curve:1.42,easing:Tv},e);const a=this._getTransformForUpdate(),l=this.getZoom(),o=this.getBearing(),p=this.getPitch(),m=this.getPadding(),v="bearing"in e?this._normalizeBearing(e.bearing,o):o,E="pitch"in e?+e.pitch:p,b="padding"in e?e.padding:a.padding,A=oi.convert(e.offset);let R=a.centerPoint.add(A);const O=a.pointLocation(R),{center:D,zoom:N}=a.getConstrained(fi.convert(e.center||O),(n=e.zoom)!==null&&n!==void 0?n:l);this._normalizeCenter(D);const W=a.zoomScale(N-l),G=a.project(O),Y=a.project(D).sub(G);let Q=e.curve;const J=Math.max(a.width,a.height),Se=J/W,ce=Y.mag();if("minZoom"in e){const Ht=mc(Math.min(e.minZoom,l,N),a.minZoom,a.maxZoom),Or=J/a.zoomScale(Ht-l);Q=Math.sqrt(Or/ce*2)}const ke=Q*Q;function ct(Ht){const Or=(Se*Se-J*J+(Ht?-1:1)*ke*ke*ce*ce)/(2*(Ht?Se:J)*ke*ce);return Math.log(Math.sqrt(Or*Or+1)-Or)}function Ve(Ht){return(Math.exp(Ht)-Math.exp(-Ht))/2}function Te(Ht){return(Math.exp(Ht)+Math.exp(-Ht))/2}function Fe(Ht){return Ve(Ht)/Te(Ht)}const He=ct(!1);let nt=function(Ht){return Te(He)/Te(He+Q*Ht)},Ut=function(Ht){return J*((Te(He)*Fe(He+Q*Ht)-Ve(He))/ke)/ce},$t=(ct(!0)-He)/Q;if(Math.abs(ce)<1e-6||!isFinite($t)){if(Math.abs(J-Se)<1e-6)return this.easeTo(e,r);const Ht=Se0,nt=Or=>Math.exp(Ht*Q*Or)}if("duration"in e)e.duration=+e.duration;else{const Ht="screenSpeed"in e?+e.screenSpeed/Q:+e.speed;e.duration=1e3*$t/Ht}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=o!==v,this._pitching=E!==p,this._padding=!a.isPaddingEqual(b),this._prepareEase(r,!1),this._ease(Ht=>{const Or=Ht*$t,mr=1/nt(Or);a.zoom=Ht===1?N:l+a.scaleZoom(mr),this._rotating&&(a.bearing=uu.number(o,v,Ht)),this._pitching&&(a.pitch=uu.number(p,E,Ht)),this._padding&&(a.interpolatePadding(m,b,Ht),R=a.centerPoint.add(A));const yr=Ht===1?D:a.unproject(G.add(Y.mult(Ut(Or))).mult(mr));a.setLocationAtPoint(a.renderWorldCopies?yr.wrap():yr,R),this._applyUpdatedTransform(a),this._fireMoveEvents(r)},()=>{this._afterEase(r)},e),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(e,r){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const a=this._onEaseEnd;delete this._onEaseEnd,a.call(this,r)}if(!e){var n;(n=this.handlers)===null||n===void 0||n.stop(!1)}return this}_ease(e,r,n){n.animate===!1||n.duration===0?(e(1),r()):(this._easeStart=hu.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(e,r){e=ap(e,-180,180);const n=Math.abs(e-r);return Math.abs(e-360-r)180?-360:n<-180?360:0}}class C2{constructor(e=0,r=0,n=0,a=0){if(I(this,"top",void 0),I(this,"bottom",void 0),I(this,"left",void 0),I(this,"right",void 0),isNaN(e)||e<0||isNaN(r)||r<0||isNaN(n)||n<0||isNaN(a)||a<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=r,this.left=n,this.right=a}interpolate(e,r,n){return r.top!=null&&e.top!=null&&(this.top=uu.number(e.top,r.top,n)),r.bottom!=null&&e.bottom!=null&&(this.bottom=uu.number(e.bottom,r.bottom,n)),r.left!=null&&e.left!=null&&(this.left=uu.number(e.left,r.left,n)),r.right!=null&&e.right!=null&&(this.right=uu.number(e.right,r.right,n)),this}getCenter(e,r){const n=mc((this.left+e-this.right)/2,0,e),a=mc((this.top+r-this.bottom)/2,0,r);return new oi(n,a)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new C2(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}const L0=85.051129;class R2{constructor(e,r,n,a,l){I(this,"tileSize",void 0),I(this,"tileZoom",void 0),I(this,"lngRange",void 0),I(this,"latRange",void 0),I(this,"scale",void 0),I(this,"width",void 0),I(this,"height",void 0),I(this,"angle",void 0),I(this,"rotationMatrix",void 0),I(this,"pixelsToGLUnits",void 0),I(this,"cameraToCenterDistance",void 0),I(this,"mercatorMatrix",void 0),I(this,"projMatrix",void 0),I(this,"invProjMatrix",void 0),I(this,"alignedProjMatrix",void 0),I(this,"pixelMatrix",void 0),I(this,"pixelMatrix3D",void 0),I(this,"pixelMatrixInverse",void 0),I(this,"glCoordMatrix",void 0),I(this,"labelPlaneMatrix",void 0),I(this,"minElevationForCurrentTile",void 0),I(this,"_fov",void 0),I(this,"_pitch",void 0),I(this,"_zoom",void 0),I(this,"_unmodified",void 0),I(this,"_renderWorldCopies",void 0),I(this,"_minZoom",void 0),I(this,"_maxZoom",void 0),I(this,"_minPitch",void 0),I(this,"_maxPitch",void 0),I(this,"_center",void 0),I(this,"_elevation",void 0),I(this,"_pixelPerMeter",void 0),I(this,"_edgeInsets",void 0),I(this,"_constraining",void 0),I(this,"_posMatrixCache",void 0),I(this,"_alignedPosMatrixCache",void 0),this.tileSize=512,this._renderWorldCopies=l===void 0?!0:!!l,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=n??0,this._maxPitch=a??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new fi(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new C2,this._posMatrixCache={},this._alignedPosMatrixCache={},this.minElevationForCurrentTile=0}clone(){const e=new R2(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return e.apply(this),e}apply(e){this.tileSize=e.tileSize,this.latRange=e.latRange,this.width=e.width,this.height=e.height,this._center=e._center,this._elevation=e._elevation,this.minElevationForCurrentTile=e.minElevationForCurrentTile,this.zoom=e.zoom,this.angle=e.angle,this._fov=e._fov,this._pitch=e._pitch,this._unmodified=e._unmodified,this._edgeInsets=e._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(e){e===void 0?e=!0:e===null&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new oi(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(e){const r=-ap(e,-180,180)*Math.PI/180;this.angle!==r&&(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=mT(),_T(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(e){const r=mc(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&&(this._unmodified=!1,this._pitch=r,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(e){const r=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==r&&(this._unmodified=!1,this._zoom=r,this.tileZoom=Math.max(0,Math.floor(r)),this.scale=this.zoomScale(r),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(e){e!==this._elevation&&(this._elevation=e,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,r,n){this._unmodified=!1,this._edgeInsets.interpolate(e,r,n),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){const r=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,r)}resize(e,r){this.width=e,this.height=r,this.pixelsToGLUnits=[2/e,-2/r],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(e){const r=mc(e.lat,-L0,L0);return new oi(rm(e.lng)*this.worldSize,nm(r)*this.worldSize)}unproject(e){return new _c(e.x/this.worldSize,e.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){const e=this.pointLocation(this.getCameraPoint()),r=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter;return{lngLat:e,altitude:r+this.elevation}}setLocationAtPoint(e,r){const n=this.pointCoordinate(r),a=this.pointCoordinate(this.centerPoint),l=this.locationCoordinate(e),o=new _c(l.x-(n.x-a.x),l.y-(n.y-a.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(e){return this.coordinatePoint(this.locationCoordinate(e))}pointLocation(e){return this.coordinateLocation(this.pointCoordinate(e))}locationCoordinate(e){return _c.fromLngLat(e)}coordinateLocation(e){return e&&e.toLngLat()}pointCoordinate(e){const n=[e.x,e.y,0,1],a=[e.x,e.y,1,1];W1(n,n,this.pixelMatrixInverse),W1(a,a,this.pixelMatrixInverse);const l=n[3],o=a[3],p=n[0]/l,m=a[0]/o,v=n[1]/l,E=a[1]/o,b=n[2]/l,A=a[2]/o,R=b===A?0:(0-b)/(A-b);return new _c(uu.number(p,m,R)/this.worldSize,uu.number(v,E,R)/this.worldSize)}coordinatePoint(e,r=0,n=this.pixelMatrix){const a=[e.x*this.worldSize,e.y*this.worldSize,r,1];return W1(a,a,n),new oi(a[0]/a[3],a[1]/a[3])}getBounds(){const e=Math.max(0,this.height/2-this.getHorizon());return new Bu().extend(this.pointLocation(new oi(0,e))).extend(this.pointLocation(new oi(this.width,e))).extend(this.pointLocation(new oi(this.width,this.height))).extend(this.pointLocation(new oi(0,this.height)))}getMaxBounds(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new Bu([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-L0,L0])}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(e,r){r=mc(+r,this.minZoom,this.maxZoom);const n={center:new fi(e.lng,e.lat),zoom:r};let a=this.lngRange;if(!this._renderWorldCopies&&a===null){const J=179.9999999999;a=[-J,J]}const l=this.tileSize*this.zoomScale(n.zoom);let o=0,p=l,m=0,v=l,E=0,b=0;const{x:A,y:R}=this.size;if(this.latRange){const J=this.latRange;o=nm(J[1])*l,p=nm(J[0])*l,p-op&&(W=p-J)}if(a){const J=(m+v)/2;let Se=O;this._renderWorldCopies&&(Se=ap(O,J-l/2,J+l/2));const ce=A/2;Se-cev&&(N=v-ce)}if(N!==void 0||W!==void 0){var Y,Q;const J=new oi((Y=N)!==null&&Y!==void 0?Y:O,(Q=W)!==null&&Q!==void 0?Q:D);n.center=this.unproject.call({worldSize:l},J).wrap()}return n}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const e=this._unmodified,{center:r,zoom:n}=this.getConstrained(this.center,this.zoom);this.center=r,this.zoom=n,this._unmodified=e,this._constraining=!1}_calcMatrices(){if(!this.height)return;const e=this._fov/2,r=this.centerOffset,n=this.point.x,a=this.point.y;this.cameraToCenterDistance=.5/Math.tan(e)*this.height,this._pixelPerMeter=TE(1,this.center.lat)*this.worldSize;let l=V4(new Float64Array(16));au(l,l,[this.width/2,-this.height/2,1]),ou(l,l,[1,-1,0]),this.labelPlaneMatrix=l,l=V4(new Float64Array(16)),au(l,l,[1,-1,1]),ou(l,l,[-1,-1,0]),au(l,l,[2/this.width,2/this.height,1]),this.glCoordMatrix=l;const o=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),p=Math.min(this.elevation,this.minElevationForCurrentTile),m=o-p*this._pixelPerMeter/Math.cos(this._pitch),v=p<0?m:o,E=Math.PI/2+this._pitch,b=this._fov*(.5+r.y/this.height),A=Math.sin(b)*v/Math.sin(mc(Math.PI-E-b,.01,Math.PI-.01)),R=this.getHorizon(),D=2*Math.atan(R/this.cameraToCenterDistance)*(.5+r.y/(R*2)),N=Math.sin(D)*v/Math.sin(mc(Math.PI-E-D,.01,Math.PI-.01)),W=Math.min(A,N),G=(Math.cos(Math.PI/2-this._pitch)*W+v)*1.01,Y=this.height/50;l=new Float64Array(16),L8(l,this._fov,this.width/this.height,Y,G),l[8]=-r.x*2/this.width,l[9]=r.y*2/this.height,au(l,l,[1,-1,1]),ou(l,l,[0,0,-this.cameraToCenterDistance]),Dp(l,l,this._pitch),S3(l,l,this.angle),ou(l,l,[-n,-a,0]),this.mercatorMatrix=au([],l,[this.worldSize,this.worldSize,this.worldSize]),au(l,l,[1,1,this._pixelPerMeter]),this.pixelMatrix=Y1(new Float64Array(16),this.labelPlaneMatrix,l),ou(l,l,[0,0,-this.elevation]),this.projMatrix=l,this.invProjMatrix=fm([],l),this.pixelMatrix3D=Y1(new Float64Array(16),this.labelPlaneMatrix,l);const Q=this.width%2/2,J=this.height%2/2,Se=Math.cos(this.angle),ce=Math.sin(this.angle),ke=n-Math.round(n)+Se*Q+ce*J,ct=a-Math.round(a)+Se*J+ce*Q,Ve=new Float64Array(l);if(ou(Ve,Ve,[ke>.5?ke-1:ke,ct>.5?ct-1:ct,0]),this.alignedProjMatrix=Ve,l=fm(new Float64Array(16),this.pixelMatrix),!l)throw new Error("failed to invert matrix");this.pixelMatrixInverse=l,this._posMatrixCache={},this._alignedPosMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;const e=this.pointCoordinate(new oi(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return W1(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){const e=this._pitch,r=Math.tan(e)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new oi(0,r))}getCameraQueryGeometry(e){const r=this.getCameraPoint();if(e.length===1)return[e[0],r];{let n=r.x,a=r.y,l=r.x,o=r.y;for(const p of e)n=Math.min(n,p.x),a=Math.min(a,p.y),l=Math.max(l,p.x),o=Math.max(o,p.y);return[new oi(n,a),new oi(l,a),new oi(l,o),new oi(n,o),new oi(n,a)]}}lngLatToCameraDepth(e,r){const n=this.locationCoordinate(e),a=[n.x*this.worldSize,n.y*this.worldSize,r,1];return W1(a,a,this.projMatrix),a[2]/a[3]}}var I2;class fn{static testProp(e){if(!fn.docStyle)return e[0];for(let r=0;r{window.removeEventListener("click",fn.suppressClickInternal,!0)},0)}static getScale(e){const r=e.getBoundingClientRect();return{x:r.width/e.offsetWidth||1,y:r.height/e.offsetHeight||1,boundingClientRect:r}}static getPoint(e,r,n){const a=r.boundingClientRect;return new oi((n.clientX-a.left)/r.x-e.clientLeft,(n.clientY-a.top)/r.y-e.clientTop)}static mousePos(e,r){const n=fn.getScale(e);return fn.getPoint(e,n,r)}static touchPos(e,r){const n=[],a=fn.getScale(e);for(let l=0;ll.fitScreenCoordinates(n,a,this._tr.bearing,{linear:!0})}}keydown(e){this._active&&e.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("l7-crosshair"),this._box&&(fn.remove(this._box),this._box=null),fn.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(e,r){return this._map.fire(new Zn(e,{originalEvent:r}))}}class TV{constructor(e){I(this,"_tr",void 0),I(this,"_enabled",void 0),I(this,"_active",void 0),this._tr=new L3(e),this.reset()}reset(){this._active=!1}dblclick(e,r){return e.preventDefault(),{cameraAnimation:n=>{n.easeTo({duration:300,zoom:this._tr.zoom+(e.shiftKey?-1:1),around:this._tr.unproject(r)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class AV{constructor(e,r){I(this,"_options",void 0),I(this,"_map",void 0),I(this,"_container",void 0),I(this,"_bypassKey",navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey"),I(this,"_enabled",void 0),this._map=e,this._options=r,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;const e=this._map.getCanvasContainer();e.classList.add("l7-cooperative-gestures"),this._container=fn.create("div","l7-cooperative-gesture-screen",e);const r=document.createElement("div");r.className="l7-desktop-message",r.textContent="Missing UI string",this._container.appendChild(r);const n=document.createElement("div");n.className="l7-mobile-message",n.textContent="Missing UI string",this._container.appendChild(n),this._container.setAttribute("aria-hidden","true")}_destoryUI(){this._container&&(fn.remove(this._container),this._map.getCanvasContainer().classList.remove("l7-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destoryUI()}isEnabled(){return this._enabled}touchmove(e){this._onCooperativeGesture(e.touches.length===1)}wheel(e){this._map.scrollZoom.isEnabled()&&this._onCooperativeGesture(!e[this._bypassKey])}_onCooperativeGesture(e){!this._enabled||!e||(this._container.classList.add("l7-show"),setTimeout(()=>{this._container.classList.remove("l7-show")},100))}}const SV={panStep:100,bearingStep:15,pitchStep:10};class wV{constructor(e){I(this,"_tr",void 0),I(this,"_enabled",void 0),I(this,"_active",void 0),I(this,"_panStep",void 0),I(this,"_bearingStep",void 0),I(this,"_pitchStep",void 0),I(this,"_rotationDisabled",void 0),this._tr=new L3(e);const r=SV;this._panStep=r.panStep,this._bearingStep=r.bearingStep,this._pitchStep=r.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let r=0,n=0,a=0,l=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:e.shiftKey?n=-1:(e.preventDefault(),l=-1);break;case 39:e.shiftKey?n=1:(e.preventDefault(),l=1);break;case 38:e.shiftKey?a=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?a=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(n=0,a=0),{cameraAnimation:p=>{const m=this._tr;p.easeTo({duration:300,easeId:"keyboardHandler",easing:CV,zoom:r?Math.round(m.zoom)+r*(e.shiftKey?2:1):m.zoom,bearing:m.bearing+n*this._bearingStep,pitch:m.pitch+a*this._pitchStep,offset:[-l*this._panStep,-o*this._panStep],center:m.center},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function CV(t){return t*(2-t)}class Kc extends Zn{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,r,n,a={}){super(e,a),I(this,"target",void 0),I(this,"originalEvent",void 0),I(this,"point",void 0),I(this,"lngLat",void 0),I(this,"_defaultPrevented",void 0);const l=fn.mousePos(r.getCanvasContainer(),n),o=r.unproject(l);this.point=l,this.lngLat=o,this.originalEvent=n,this._defaultPrevented=!1,this.target=r}}class D0 extends Zn{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,r,n){super(e),I(this,"target",void 0),I(this,"originalEvent",void 0),I(this,"lngLat",void 0),I(this,"point",void 0),I(this,"points",void 0),I(this,"lngLats",void 0),I(this,"_defaultPrevented",void 0);const a=e==="touchend"?n.changedTouches:n.touches,l=fn.touchPos(r.getCanvasContainer(),a),o=l.map(v=>r.unproject(v)),p=l.reduce((v,E,b,A)=>v.add(E.div(A.length)),new oi(0,0)),m=r.unproject(p);this.target=r,this.points=l,this.point=p,this.lngLats=o,this.lngLat=m,this.originalEvent=n,this._defaultPrevented=!1}}class RV extends Zn{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,r,n){super(e),I(this,"target",void 0),I(this,"originalEvent",void 0),I(this,"_defaultPrevented",void 0),this.target=r,this._defaultPrevented=!1,this.originalEvent=n}}class IV{constructor(e,r){I(this,"_mousedownPos",void 0),I(this,"_clickTolerance",void 0),I(this,"_map",void 0),this._map=e,this._clickTolerance=r.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new RV(e.type,this._map,e))}mousedown(e,r){return this._mousedownPos=r,this._firePreventable(new Kc(e.type,this._map,e))}mouseup(e){this._map.fire(new Kc(e.type,this._map,e))}click(e,r){this._mousedownPos&&this._mousedownPos.dist(r)>=this._clickTolerance||this._map.fire(new Kc(e.type,this._map,e))}dblclick(e){return this._firePreventable(new Kc(e.type,this._map,e))}mouseover(e){this._map.fire(new Kc(e.type,this._map,e))}mouseout(e){this._map.fire(new Kc(e.type,this._map,e))}touchstart(e){return this._firePreventable(new D0(e.type,this._map,e))}touchmove(e){this._map.fire(new D0(e.type,this._map,e))}touchend(e){this._map.fire(new D0(e.type,this._map,e))}touchcancel(e){this._map.fire(new D0(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class MV{constructor(e){I(this,"_map",void 0),I(this,"_delayContextMenu",void 0),I(this,"_ignoreContextMenu",void 0),I(this,"_contextMenuEvent",void 0),this._map=e}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(e){this._map.fire(new Kc(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Kc("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._ignoreContextMenu||this._map.fire(new Kc(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class M2{constructor(e){I(this,"contextmenu",void 0),I(this,"mousedown",void 0),I(this,"mousemoveWindow",void 0),I(this,"mouseup",void 0),I(this,"touchstart",void 0),I(this,"touchmoveWindow",void 0),I(this,"touchend",void 0),I(this,"_clickTolerance",void 0),I(this,"_moveFunction",void 0),I(this,"_activateOnStart",void 0),I(this,"_active",void 0),I(this,"_enabled",void 0),I(this,"_moved",void 0),I(this,"_lastPoint",void 0),I(this,"_moveStateManager",void 0),this._enabled=!!e.enable,this._moveStateManager=e.moveStateManager,this._clickTolerance=e.clickTolerance||1,this._moveFunction=e.move,this._activateOnStart=!!e.activateOnStart,e.assignEvents(this),this.reset()}reset(e){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(e)}_move(...e){const r=this._moveFunction(...e);if(r.bearingDelta||r.pitchDelta||r.around||r.panDelta)return this._active=!0,r}dragStart(e,r){!this.isEnabled()||this._lastPoint||this._moveStateManager.isValidStartEvent(e)&&(this._moveStateManager.startMove(e),this._lastPoint=r.length?r[0]:r,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(e,r){if(!this.isEnabled())return;const n=this._lastPoint;if(!n)return;if(e.preventDefault(),!this._moveStateManager.isValidMoveEvent(e)){this.reset(e);return}const a=r.length?r[0]:r;if(!(!this._moved&&a.dist(n){t.mousedown=t.dragStart,t.mousemoveWindow=t.dragMove,t.mouseup=t.dragEnd,t.contextmenu=e=>{e.preventDefault()}},BV=({enable:t,clickTolerance:e})=>{const r=new P2({checkCorrectEvent:n=>fn.mouseButton(n)===O2&&!n.ctrlKey});return new M2({clickTolerance:e,move:(n,a)=>({around:a,panDelta:a.sub(n)}),activateOnStart:!0,moveStateManager:r,enable:t,assignEvents:L2})},FV=({enable:t,clickTolerance:e,bearingDegreesPerPixelMoved:r=.8})=>{const n=new P2({checkCorrectEvent:a=>fn.mouseButton(a)===O2&&a.ctrlKey||fn.mouseButton(a)===AE});return new M2({clickTolerance:e,move:(a,l)=>({bearingDelta:(l.x-a.x)*r}),moveStateManager:n,enable:t,assignEvents:L2})},NV=({enable:t,clickTolerance:e,pitchDegreesPerPixelMoved:r=-.5})=>{const n=new P2({checkCorrectEvent:a=>fn.mouseButton(a)===O2&&a.ctrlKey||fn.mouseButton(a)===AE});return new M2({clickTolerance:e,move:(a,l)=>({pitchDelta:(l.y-a.y)*r}),moveStateManager:n,enable:t,assignEvents:L2})},Lx=4.000244140625,kV=1/100,UV=1/450,zV=2;class VV{constructor(e,r){I(this,"_map",void 0),I(this,"_tr",void 0),I(this,"_enabled",void 0),I(this,"_active",void 0),I(this,"_zooming",void 0),I(this,"_aroundCenter",void 0),I(this,"_around",void 0),I(this,"_aroundPoint",void 0),I(this,"_type",void 0),I(this,"_lastValue",void 0),I(this,"_timeout",void 0),I(this,"_finishTimeout",void 0),I(this,"_lastWheelEvent",void 0),I(this,"_lastWheelEventTime",void 0),I(this,"_startZoom",void 0),I(this,"_targetZoom",void 0),I(this,"_delta",void 0),I(this,"_easing",void 0),I(this,"_prevEase",void 0),I(this,"_frameId",void 0),I(this,"_triggerRenderFrame",void 0),I(this,"_defaultZoomRate",void 0),I(this,"_wheelZoomRate",void 0),I(this,"_onTimeout",n=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(n)}),this._map=e,this._tr=new L3(e),this._triggerRenderFrame=r,this._delta=0,this._defaultZoomRate=kV,this._wheelZoomRate=UV}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&e.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}wheel(e){if(!this.isEnabled()||this._map.cooperativeGestures.isEnabled()&&!e[this._map.cooperativeGestures._bypassKey])return;let r=e.deltaMode===WheelEvent.DOM_DELTA_LINE?e.deltaY*40:e.deltaY;const n=hu.now(),a=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,r!==0&&r%Lx===0?this._type="wheel":r!==0&&Math.abs(r)<4?this._type="trackpad":a>400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(a*r)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&&r&&(r=r/4),this._type&&(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}_start(e){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const r=fn.mousePos(this._map.getCanvasContainer(),e),n=this._tr;r.y>n.transform.height/2-n.transform.getHorizon()?this._around=fi.convert(this._aroundCenter?n.center:n.unproject(r)):this._around=fi.convert(n.center),this._aroundPoint=n.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const e=this._tr.transform;if(this._delta!==0){const p=this._type==="wheel"&&Math.abs(this._delta)>Lx?this._wheelZoomRate:this._defaultZoomRate;let m=zV/(1+Math.exp(-Math.abs(this._delta*p)));this._delta<0&&m!==0&&(m=1/m);const v=typeof this._targetZoom=="number"?e.zoomScale(this._targetZoom):e.scale;this._targetZoom=Math.min(e.maxZoom,Math.max(e.minZoom,e.scaleZoom(v*m))),this._type==="wheel"&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}const r=typeof this._targetZoom=="number"?this._targetZoom:e.zoom,n=this._startZoom,a=this._easing;let l=!1,o;if(this._type==="wheel"&&n&&a){const p=Math.min((hu.now()-this._lastWheelEventTime)/200,1),m=a(p);o=uu.number(n,r,m),p<1?this._frameId||(this._frameId=!0):l=!0}else o=r,l=!0;return this._active=!0,l&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!l,zoomDelta:o-e.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let r=Tv;if(this._prevEase){const n=this._prevEase,a=(hu.now()-n.start)/n.duration,l=n.easing(a+.01)-n.easing(a),o=.27/Math.sqrt(l*l+1e-4)*.01,p=Math.sqrt(.27*.27-o*o);r=w2(o,p,.25,1)}return this._prevEase={start:hu.now(),duration:e,easing:r},r}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class HV{constructor(e,r){I(this,"_clickZoom",void 0),I(this,"_tapZoom",void 0),this._clickZoom=e,this._tapZoom=r}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class jV{constructor(e,r,n){I(this,"_el",void 0),I(this,"_mousePan",void 0),I(this,"_touchPan",void 0),I(this,"_inertiaOptions",void 0),this._el=e,this._mousePan=r,this._touchPan=n}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("l7-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("l7-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class XV{constructor(e,r,n){I(this,"_mouseRotate",void 0),I(this,"_mousePitch",void 0),I(this,"_pitchWithRotate",void 0),this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=r,this._mousePitch=n}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class WV{constructor(e,r,n,a){I(this,"_el",void 0),I(this,"_touchZoom",void 0),I(this,"_touchRotate",void 0),I(this,"_tapDragZoom",void 0),I(this,"_rotationDisabled",void 0),I(this,"_enabled",void 0),this._el=e,this._touchZoom=r,this._touchRotate=n,this._tapDragZoom=a,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("l7-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("l7-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}function Sv(t,e){if(t.length!==e.length)throw new Error(`The number of touches and points are not equal - touches ${t.length}, points ${e.length}`);const r={};for(let n=0;nthis.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=e.timeStamp),n.length===this.numTouches&&(this.centroid=GV(r),this.touches=Sv(n,r)))}touchmove(e,r,n){if(this.aborted||!this.centroid)return;const a=Sv(n,r);for(const l in this.touches){const o=this.touches[l],p=a[l];(!p||p.dist(o)>D2)&&(this.aborted=!0)}}touchend(e,r,n){if((!this.centroid||e.timeStamp-this.startTime>ZV)&&(this.aborted=!0),n.length===0){const a=!this.aborted&&this.centroid;if(this.reset(),a)return a}}}class wv{constructor(e){I(this,"singleTap",void 0),I(this,"numTaps",void 0),I(this,"lastTime",void 0),I(this,"lastTap",void 0),I(this,"count",void 0),this.singleTap=new $V(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,r,n){this.singleTap.touchstart(e,r,n)}touchmove(e,r,n){this.singleTap.touchmove(e,r,n)}touchend(e,r,n){const a=this.singleTap.touchend(e,r,n);if(a){const l=e.timeStamp-this.lastTime0&&(this._swipePoint=a,this._swipeTouch=n[0].identifier)}}touchmove(e,r,n){if(!this._tapTime)this._tap.touchmove(e,r,n);else if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;const a=r[0],l=a.y-this._swipePoint.y;return this._swipePoint=a,e.preventDefault(),this._active=!0,{zoomDelta:l/128}}}touchend(e,r,n){if(this._tapTime)this._swipePoint&&n.length===0&&this.reset();else{const a=this._tap.touchend(e,r,n);a&&(this._tapTime=e.timeStamp,this._tapPoint=a)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class YV{constructor(e){I(this,"_tr",void 0),I(this,"_enabled",void 0),I(this,"_active",void 0),I(this,"_zoomIn",void 0),I(this,"_zoomOut",void 0),this._tr=new L3(e),this._zoomIn=new wv({numTouches:1,numTaps:2}),this._zoomOut=new wv({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,r,n){this._zoomIn.touchstart(e,r,n),this._zoomOut.touchstart(e,r,n)}touchmove(e,r,n){this._zoomIn.touchmove(e,r,n),this._zoomOut.touchmove(e,r,n)}touchend(e,r,n){const a=this._zoomIn.touchend(e,r,n),l=this._zoomOut.touchend(e,r,n),o=this._tr;if(a)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:p=>p.easeTo({duration:300,zoom:o.zoom+1,around:o.unproject(a)},{originalEvent:e})};if(l)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:p=>p.easeTo({duration:300,zoom:o.zoom-1,around:o.unproject(l)},{originalEvent:e})}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class KV{constructor(e,r){I(this,"_enabled",void 0),I(this,"_active",void 0),I(this,"_touches",void 0),I(this,"_clickTolerance",void 0),I(this,"_sum",void 0),I(this,"_map",void 0),this._clickTolerance=e.clickTolerance||1,this._map=r,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new oi(0,0)}minTouchs(){return this._map.cooperativeGestures.isEnabled()?2:1}touchstart(e,r,n){return this._calculateTransform(e,r,n)}touchmove(e,r,n){if(!(!this._active||n.length0&&(this._active=!0);const a=Sv(n,r),l=new oi(0,0),o=new oi(0,0);let p=0;for(const E in a){const b=a[E],A=this._touches[E];A&&(l._add(b),o._add(b.sub(A)),p++,a[E]=b)}if(this._touches=a,pMath.abs(t.x)}const rH=100;class nH extends B2{constructor(e){super(),I(this,"_valid",void 0),I(this,"_firstMove",void 0),I(this,"_lastPoints",void 0),I(this,"_map",void 0),I(this,"_currentTouchCount",0),this._map=e}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(e,r,n){super.touchstart(e,r,n),this._currentTouchCount=n.length}_start(e){this._lastPoints=e,Eg(e[0].sub(e[1]))&&(this._valid=!1)}_move(e,r,n){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;const a=e[0].sub(this._lastPoints[0]),l=e[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(a,l,n.timeStamp),this._valid?(this._lastPoints=e,this._active=!0,{pitchDelta:(a.y+l.y)/2*-.5}):void 0}gestureBeginsVertically(e,r,n){if(this._valid!==void 0)return this._valid;const a=2,l=e.mag()>=a,o=r.mag()>=a;if(!l&&!o)return;if(!l||!o)return this._firstMove===void 0&&(this._firstMove=n),n-this._firstMove0==r.y>0;return Eg(e)&&Eg(r)&&p}}const l_={linearity:.3,easing:w2(0,0,.3,1)},iH=Vo({deceleration:2500,maxSpeed:1400},l_),oH=Vo({deceleration:20,maxSpeed:1400},l_),aH=Vo({deceleration:1e3,maxSpeed:360},l_),sH=Vo({deceleration:1e3,maxSpeed:90},l_);class lH{constructor(e){I(this,"_map",void 0),I(this,"_inertiaBuffer",void 0),this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:hu.now(),settings:e})}_drainInertiaBuffer(){const e=this._inertiaBuffer,r=hu.now(),n=160;for(;e.length>0&&r-e[0].time>n;)e.shift()}_onMoveEnd(e){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const r={zoom:0,bearing:0,pitch:0,pan:new oi(0,0),pinchAround:void 0,around:void 0};for(const{settings:o}of this._inertiaBuffer)r.zoom+=o.zoomDelta||0,r.bearing+=o.bearingDelta||0,r.pitch+=o.pitchDelta||0,o.panDelta&&r.pan._add(o.panDelta),o.around&&(r.around=o.around),o.pinchAround&&(r.pinchAround=o.pinchAround);const a=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,l={};if(r.pan.mag()){const o=N0(r.pan.mag(),a,Vo({},iH,e||{}));l.offset=r.pan.mult(o.amount/r.pan.mag()),l.center=this._map.transform.center,F0(l,o)}if(r.zoom){const o=N0(r.zoom,a,oH);l.zoom=this._map.transform.zoom+o.amount,F0(l,o)}if(r.bearing){const o=N0(r.bearing,a,aH);l.bearing=this._map.transform.bearing+mc(o.amount,-179,179),F0(l,o)}if(r.pitch){const o=N0(r.pitch,a,sH);l.pitch=this._map.transform.pitch+o.amount,F0(l,o)}if(l.zoom||l.bearing){const o=r.pinchAround===void 0?r.around:r.pinchAround;l.around=o?this._map.unproject(o):this._map.getCenter()}return this.clear(),Vo(l,{noMoveStart:!0})}}function F0(t,e){(!t.duration||t.durationt.zoom||t.drag||t.pitch||t.rotate;class uH extends Zn{constructor(e,r){super(e),I(this,"type","renderFrame"),I(this,"timeStamp",void 0),this.timeStamp=r}}function Tg(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}class cH{constructor(e,r){I(this,"_map",void 0),I(this,"_el",void 0),I(this,"_handlers",void 0),I(this,"_eventsInProgress",void 0),I(this,"_frameId",void 0),I(this,"_inertia",void 0),I(this,"_bearingSnap",void 0),I(this,"_handlersById",void 0),I(this,"_updatingCamera",void 0),I(this,"_changes",void 0),I(this,"_zoom",void 0),I(this,"_previousActiveHandlers",void 0),I(this,"_listeners",void 0),I(this,"handleWindowEvent",a=>{this.handleEvent(a,`${a.type}Window`)}),I(this,"handleEvent",(a,l)=>{if(a.type==="blur"){this.stop(!0);return}this._updatingCamera=!0;const o=a.type==="renderFrame"?void 0:a,p={needsRenderFrame:!1},m={},v={},E=a.touches,b=E?this._getMapTouches(E):void 0,A=b?fn.touchPos(this._map.getCanvasContainer(),b):fn.mousePos(this._map.getCanvasContainer(),a);for(const{handlerName:D,handler:N,allowed:W}of this._handlers){if(!N.isEnabled())continue;let G;this._blockedByActive(v,W,D)?N.reset():N[l||a.type]&&(G=N[l||a.type](a,A,b),this.mergeHandlerResult(p,m,G,D,o),G&&G.needsRenderFrame&&this._triggerRenderFrame()),(G||N.isActive())&&(v[D]=N)}const R={};for(const D in this._previousActiveHandlers)v[D]||(R[D]=o);this._previousActiveHandlers=v,(Object.keys(R).length||Tg(p))&&(this._changes.push([p,m,R]),this._triggerRenderFrame()),(Object.keys(v).length||Tg(p))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:O}=p;O&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],O(this._map))}),this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new lH(e),this._bearingSnap=r.bearingSnap||7,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r);const n=this._el;this._listeners=[[n,"touchstart",{passive:!0}],[n,"touchmove",{passive:!1}],[n,"touchend",void 0],[n,"touchcancel",void 0],[n,"mousedown",void 0],[n,"mousemove",void 0],[n,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[n,"mouseover",void 0],[n,"mouseout",void 0],[n,"dblclick",void 0],[n,"click",void 0],[n,"keydown",{capture:!1}],[n,"keyup",void 0],[n,"wheel",{passive:!1}],[n,"contextmenu",void 0],[window,"blur",void 0]];for(const[a,l,o]of this._listeners)fn.addEventListener(a,l,a===document?this.handleWindowEvent:this.handleEvent,o)}destroy(){for(const[e,r,n]of this._listeners)fn.removeEventListener(e,r,e===document?this.handleWindowEvent:this.handleEvent,n)}_addDefaultHandlers(e){const r=this._map,n=r.getCanvasContainer();this._add("mapEvent",new IV(r,e));const a=r.boxZoom=new EV(r,e);this._add("boxZoom",a),e.interactive&&e.boxZoom&&a.enable();const l=r.cooperativeGestures=new AV(r,e.cooperativeGestures);this._add("cooperativeGestures",l),e.cooperativeGestures&&l.enable();const o=new YV(r),p=new TV(r);r.doubleClickZoom=new HV(p,o),this._add("tapZoom",o),this._add("clickZoom",p),e.interactive&&e.doubleClickZoom&&r.doubleClickZoom.enable();const m=new qV;this._add("tapDragZoom",m);const v=r.touchPitch=new nH(r);this._add("touchPitch",v),e.interactive&&e.touchPitch&&r.touchPitch.enable(e.touchPitch);const E=FV(e),b=NV(e);r.dragRotate=new XV(e,E,b),this._add("mouseRotate",E,["mousePitch"]),this._add("mousePitch",b,["mouseRotate"]),e.interactive&&e.dragRotate&&r.dragRotate.enable();const A=BV(e),R=new KV(e,r);r.dragPan=new jV(n,A,R),this._add("mousePan",A),this._add("touchPan",R,["touchZoom","touchRotate"]),e.interactive&&e.dragPan&&r.dragPan.enable(e.dragPan);const O=new tH,D=new JV;r.touchZoomRotate=new WV(n,D,O,m),this._add("touchRotate",O,["touchPan","touchZoom"]),this._add("touchZoom",D,["touchPan","touchRotate"]),e.interactive&&e.touchZoomRotate&&r.touchZoomRotate.enable(e.touchZoomRotate);const N=r.scrollZoom=new VV(r,()=>this._triggerRenderFrame());this._add("scrollZoom",N,["mousePan"]),e.interactive&&e.scrollZoom&&r.scrollZoom.enable(e.scrollZoom);const W=r.keyboard=new wV(r);this._add("keyboard",W),e.interactive&&e.keyboard&&r.keyboard.enable(),this._add("blockableMapEvent",new MV(r))}_add(e,r,n){this._handlers.push({handlerName:e,handler:r,allowed:n}),this._handlersById[e]=r}stop(e){if(!this._updatingCamera){for(const{handler:r}of this._handlers)r.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(const{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!k0(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,r,n){for(const a in e)if(a!==n&&(!r||r.indexOf(a)<0))return!0;return!1}_getMapTouches(e){const r=[];for(const n of e){const a=n.target;this._el.contains(a)&&r.push(n)}return r}mergeHandlerResult(e,r,n,a,l){if(!n)return;Vo(e,n);const o={handlerName:a,originalEvent:n.originalEvent||l};n.zoomDelta!==void 0&&(r.zoom=o),n.panDelta!==void 0&&(r.drag=o),n.pitchDelta!==void 0&&(r.pitch=o),n.bearingDelta!==void 0&&(r.rotate=o)}_applyChanges(){const e={},r={},n={};for(const[a,l,o]of this._changes)a.panDelta&&(e.panDelta=(e.panDelta||new oi(0,0))._add(a.panDelta)),a.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+a.zoomDelta),a.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+a.bearingDelta),a.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+a.pitchDelta),a.around!==void 0&&(e.around=a.around),a.pinchAround!==void 0&&(e.pinchAround=a.pinchAround),a.noInertia&&(e.noInertia=a.noInertia),Vo(r,l),Vo(n,o);this._updateMapTransform(e,r,n),this._changes=[]}_updateMapTransform(e,r,n){const a=this._map,l=a._getTransformForUpdate();if(!Tg(e))return this._fireEvents(r,n,!0);const{panDelta:o,zoomDelta:p,bearingDelta:m,pitchDelta:v,pinchAround:E}=e;let{around:b}=e;E!==void 0&&(b=E),a._stop(!0),b=b||a.transform.centerPoint;const A=l.pointLocation(o?b.sub(o):b);m&&(l.bearing+=m),v&&(l.pitch+=v),p&&(l.zoom+=p),l.setLocationAtPoint(A,b),a._applyUpdatedTransform(l),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(r,n,!0)}_fireEvents(e,r,n){const a=k0(this._eventsInProgress),l=k0(e),o={};for(const b in e){const{originalEvent:A}=e[b];this._eventsInProgress[b]||(o[`${b}start`]=A),this._eventsInProgress[b]=e[b]}!a&&l&&this._fireEvent("movestart",l.originalEvent);for(const b in o)this._fireEvent(b,o[b]);l&&this._fireEvent("move",l.originalEvent);for(const b in e){const{originalEvent:A}=e[b];this._fireEvent(b,A)}const p={};let m;for(const b in this._eventsInProgress){const{handlerName:A,originalEvent:R}=this._eventsInProgress[b];this._handlersById[A].isActive()||(delete this._eventsInProgress[b],m=r[A]||R,p[`${b}end`]=m)}for(const b in p)this._fireEvent(b,p[b]);const v=k0(this._eventsInProgress);if(n&&((a||l)&&!v)){this._updatingCamera=!0;const b=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),A=R=>R!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new uH("renderFrame",e)),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class hH{constructor(){I(this,"_queue",void 0),I(this,"_id",void 0),I(this,"_cleared",void 0),I(this,"_currentlyRunning",void 0),this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){const r=++this._id;return this._queue.push({callback:e,id:r,cancelled:!1}),r}remove(e){const r=this._currentlyRunning,n=r?this._queue.concat(r):this._queue;for(const a of n)if(a.id===e){a.cancelled=!0;return}}run(e=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");const r=this._currentlyRunning=this._queue;this._queue=[];for(const n of r)if(!n.cancelled&&(n.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function fH(t,e){var r=typeof my<"u"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx<"u"&&wx!==null&&(typeof wx.request<"u"||typeof wx.miniProgram<"u");if(!(r||n)&&(e||(e=document),!!e)){var a=e.head||e.getElementsByTagName("head")[0];if(!a){a=e.createElement("head");var l=e.body||e.getElementsByTagName("body")[0];l?l.parentNode.insertBefore(a,l):e.documentElement.appendChild(a)}var o=e.createElement("style");return o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),a.appendChild(o),o}}fH(`.l7-map { + `,n.id=Ko.uniqueId("l7_amap_div"),r.appendChild(n),n}getContainer(){return this.map.getContainer()}addMarkerContainer(){if(!this.map)return;const e=this.map.getContainer();if(e!==null){const r=e.getElementsByClassName("amap-maps")[0];r.style.zIndex="auto",this.markerContainer=_a("div","l7-marker-container2",r)}}getMarkerContainer(){return this.markerContainer}getCanvasOverlays(){var e;return(e=this.mapContainer)===null||e===void 0?void 0:e.querySelector(".amap-overlays")}on(e,r){$g.indexOf(e)!==-1?this.eventEmitter.on(e,r):this.map.on(Rx[e]||e,r)}off(e,r){$g.indexOf(e)!==-1?this.eventEmitter.off(e,r):this.map.off(Rx[e]||e,r)}getSize(){const e=this.map.getSize();return[e.getWidth(),e.getHeight()]}getMinZoom(){return this.map.getZooms()[0]-zh}getMaxZoom(){return this.map.getZooms()[1]-zh}getZoom(){return this.map.getZoom()-zh}getCenter(e){if(e!=null&&e.padding){const n=this.getCenter(),a=Sx(e.padding),l=this.lngLatToPixel([n.lng,n.lat]),o=[(a.right-a.left)/2,(a.bottom-a.top)/2];return this.pixelToLngLat([l.x-o[0],l.y-o[1]])}const r=this.map.getCenter();return{lng:r.getLng(),lat:r.getLat()}}getPitch(){return this.map.getPitch()}getRotation(){return 360-this.map.getRotation()}getBounds(){const e=this.map.getBounds(),r=e.getNorthEast(),n=e.getSouthWest(),a=this.getCenter(),l=a.lng>r.getLng()||a.lng{const{lat:n,lng:a}=this.map.getCenter();this.emit("mapchange"),this.viewport.syncWithMapCamera({bearing:this.map.getBearing(),center:[a,n],viewportHeight:this.map.transform.height,pitch:this.map.getPitch(),viewportWidth:this.map.transform.width,zoom:this.map.getZoom(),cameraHeight:0}),this.updateCoordinateSystemService(),this.cameraChangedCallback(this.viewport)}),this.config=e.mapConfig,this.configService=e.globalConfigService,this.coordinateSystemService=e.coordinateSystemService,this.eventEmitter=new Ps.EventEmitter}setBgColor(e){this.bgColor=e}addMarkerContainer(){const e=this.map.getCanvasContainer();this.markerContainer=_a("div","l7-marker-container",e),this.markerContainer.setAttribute("tabindex","-1")}getMarkerContainer(){return this.markerContainer}getOverlayContainer(){}getCanvasOverlays(){}on(e,r){$g.indexOf(e)!==-1?this.eventEmitter.on(e,r):this.map.on(Ix[e]||e,r)}off(e,r){this.map.off(Ix[e]||e,r),this.eventEmitter.off(e,r)}getContainer(){return this.map.getContainer()}getMapCanvasContainer(){return this.map.getCanvasContainer()}getSize(){if(this.version==="SIMPLE")return this.simpleMapCoord.getSize();const e=this.map.transform;return[e.width,e.height]}getType(){return"default"}getZoom(){return this.map.getZoom()}setZoom(e){return this.map.setZoom(e)}getCenter(){return this.map.getCenter()}setCenter(e){this.map.setCenter(e)}getPitch(){return this.map.getPitch()}getRotation(){return this.map.getBearing()}getBounds(){return this.map.getBounds().toArray()}getMinZoom(){return this.map.getMinZoom()}getMaxZoom(){return this.map.getMaxZoom()}setRotation(e){this.map.setBearing(e)}zoomIn(e,r){this.map.zoomIn(e,r)}zoomOut(e,r){this.map.zoomOut(e,r)}setPitch(e){return this.map.setPitch(e)}panTo(e){this.map.panTo(e)}panBy(e=0,r=0){this.map.panBy([e,r])}fitBounds(e,r){this.map.fitBounds(e,r)}setMaxZoom(e){this.map.setMaxZoom(e)}setMinZoom(e){this.map.setMinZoom(e)}setMapStatus(e){e.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),e.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),e.dragEnable===!1&&this.map.dragPan.disable(),e.dragEnable===!0&&this.map.dragPan.enable(),e.rotateEnable===!1&&this.map.dragRotate.disable(),e.dragEnable===!0&&this.map.dragRotate.enable(),e.keyboardEnable===!1&&this.map.keyboard.disable(),e.keyboardEnable===!0&&this.map.keyboard.enable(),e.zoomEnable===!1&&this.map.scrollZoom.disable(),e.zoomEnable===!0&&this.map.scrollZoom.enable()}setZoomAndCenter(e,r){this.map.flyTo({zoom:e,center:r})}setMapStyle(e){var r;(r=this.map)===null||r===void 0||r.setStyle(this.getMapStyleValue(e))}meterToCoord(e,r){return 1}pixelToLngLat(e){return this.map.unproject(e)}lngLatToPixel(e){return this.map.project(e)}containerToLngLat(e){return this.map.unproject(e)}lngLatToContainer(e){return this.map.project(e)}getMapStyle(){try{var e;const r=(e=this.map.getStyle().sprite)!==null&&e!==void 0?e:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(r)?r==null?void 0:r.replace(/\/\w+$/,"").replace(/sprites/,"styles"):r}catch{return""}}getMapStyleConfig(){return rV}getMapStyleValue(e){var r;return(r=this.getMapStyleConfig()[e])!==null&&r!==void 0?r:e}destroy(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}emit(e,...r){this.eventEmitter.emit(e,...r)}once(e,...r){this.eventEmitter.once(e,...r)}getMapContainer(){return this.$mapContainer}exportMap(e){var r;const n=(r=this.map)===null||r===void 0?void 0:r.getCanvas();return e==="jpg"?n==null?void 0:n.toDataURL("image/jpeg"):n==null?void 0:n.toDataURL("image/png")}onCameraChanged(e){this.cameraChangedCallback=e}creatMapContainer(e){let r=e;return typeof e=="string"&&(r=document.getElementById(e)),r}updateView(e){this.emit("mapchange"),this.viewport.syncWithMapCamera({bearing:e.bearing,center:e.center,viewportHeight:e.viewportHeight,pitch:e.pitch,viewportWidth:e.viewportWidth,zoom:e.zoom,cameraHeight:0}),this.updateCoordinateSystemService(),this.cameraChangedCallback(this.viewport)}updateCoordinateSystemService(){const{offsetCoordinate:e=!0}=this.config;this.viewport.getZoom()>nV&&e?this.coordinateSystemService.setCoordinateSystem(Tp.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(Tp.LNGLAT)}}var iV=yE;function yE(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=e,this.p2x=r,this.p2y=n}yE.prototype={sampleCurveX:function(t){return((this.ax*t+this.bx)*t+this.cx)*t},sampleCurveY:function(t){return((this.ay*t+this.by)*t+this.cy)*t},sampleCurveDerivativeX:function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},solveCurveX:function(t,e){if(e===void 0&&(e=1e-6),t<0)return 0;if(t>1)return 1;for(var r=t,n=0;n<8;n++){var a=this.sampleCurveX(r)-t;if(Math.abs(a)a?o=r:p=r,r=(p-o)*.5+o;return r},solve:function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}};const oV=Co(iV),uu={number:function(e,r,n){return e+n*(r-e)}};function mc(t,e,r){return Math.min(r,Math.max(e,t))}function ap(t,e,r){const n=r-e,a=((t-e)%n+n)%n+e;return a===e?r:a}let aV=1;function sV(){return aV++}function Vo(t,...e){for(const r of e)for(const n in r)t[n]=r[n];return t}function lV(t,e){const r={};for(let n=0;na.solve(l)}const Tv=w2(.25,.1,.25,1),Mx={};function uV(t){Mx[t]||(typeof console<"u"&&console.warn(t),Mx[t]=!0)}function Px(t){return t*Math.PI/180}const xE=63710088e-1;class fi{constructor(e,r){if(I(this,"lng",void 0),I(this,"lat",void 0),isNaN(e)||isNaN(r))throw new Error(`Invalid LngLat object: (${e}, ${r})`);if(this.lng=+e,this.lat=+r,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new fi(ap(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const r=Math.PI/180,n=this.lat*r,a=e.lat*r,l=Math.sin(n)*Math.sin(a)+Math.cos(n)*Math.cos(a)*Math.cos((e.lng-this.lng)*r);return xE*Math.acos(Math.min(l,1))}static convert(e){if(e instanceof fi)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new fi(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e!==null)return new fi(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}const bE=2*Math.PI*xE;function EE(t){return bE*Math.cos(t*Math.PI/180)}function rm(t){return(180+t)/360}function nm(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function TE(t,e){return t/EE(e)}function cV(t){return t*360-180}function Av(t){const e=180-t*360;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}function hV(t,e){return t*EE(Av(e))}function fV(t){return 1/Math.cos(t*Math.PI/180)}class _c{constructor(e,r,n=0){I(this,"x",void 0),I(this,"y",void 0),I(this,"z",void 0),this.x=+e,this.y=+r,this.z=+n}static fromLngLat(e,r=0){const n=fi.convert(e);return new _c(rm(n.lng),nm(n.lat),TE(r,n.lat))}toLngLat(){return new fi(cV(this.x),Av(this.y))}toAltitude(){return hV(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/bE*fV(Av(this.y))}}class Bu{constructor(e,r){I(this,"_ne",void 0),I(this,"_sw",void 0),e&&(r?this.setSouthWest(e).setNorthEast(r):Array.isArray(e)&&(e.length===4?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1])))}setNorthEast(e){return this._ne=e instanceof fi?new fi(e.lng,e.lat):fi.convert(e),this}setSouthWest(e){return this._sw=e instanceof fi?new fi(e.lng,e.lat):fi.convert(e),this}extend(e){const r=this._sw,n=this._ne;let a,l;if(e instanceof fi)a=e,l=e;else if(e instanceof Bu){if(a=e._sw,l=e._ne,!a||!l)return this}else{if(Array.isArray(e))if(e.length===4||e.every(Array.isArray)){const o=e;return this.extend(Bu.convert(o))}else{const o=e;return this.extend(fi.convert(o))}else if(e&&("lng"in e||"lon"in e)&&"lat"in e)return this.extend(fi.convert(e));return this}return!r&&!n?(this._sw=new fi(a.lng,a.lat),this._ne=new fi(l.lng,l.lat)):(r.lng=Math.min(a.lng,r.lng),r.lat=Math.min(a.lat,r.lat),n.lng=Math.max(l.lng,n.lng),n.lat=Math.max(l.lat,n.lat)),this}getCenter(){return new fi((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new fi(this.getWest(),this.getNorth())}getSouthEast(){return new fi(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:r,lat:n}=fi.convert(e),a=this._sw.lat<=n&&n<=this._ne.lat;let l=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(l=this._sw.lng>=r&&r>=this._ne.lng),a&&l}static convert(e){return e instanceof Bu?e:new Bu(e)}static fromLngLat(e,r=0){const a=360*r/40075017,l=a/Math.cos(Math.PI/180*e.lat);return new Bu(new fi(e.lng-l,e.lat-a),new fi(e.lng+l,e.lat+a))}}const pV="AbortError";function dV(){return new Error(pV)}const mV=typeof performance<"u"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date);let xg;const hu={now:mV,frameAsync(t){return new Promise((e,r)=>{const n=requestAnimationFrame(e);t.signal.addEventListener("abort",()=>{cancelAnimationFrame(n),r(dV())})})},get prefersReducedMotion(){return window.matchMedia?(xg==null&&(xg=window.matchMedia("(prefers-reduced-motion: reduce)")),xg.matches):!1}};function Ox(t,e,r){r[t]&&r[t].indexOf(e)!==-1||(r[t]=r[t]||[],r[t].push(e))}function bg(t,e,r){if(r&&r[t]){const n=r[t].indexOf(e);n!==-1&&r[t].splice(n,1)}}let Zn=class{constructor(e,r={}){I(this,"type",void 0),Vo(this,r),this.type=e}};class _V extends Zn{constructor(e,r={}){super("error",r),I(this,"error",void 0),this.error=e}}class gV{constructor(){I(this,"_listeners",void 0),I(this,"_oneTimeListeners",void 0),I(this,"_eventedParent",void 0),I(this,"_eventedParentData",void 0)}on(e,r){return this._listeners=this._listeners||{},Ox(e,r,this._listeners),this}off(e,r){return bg(e,r,this._listeners),bg(e,r,this._oneTimeListeners),this}once(e,r){return r?(this._oneTimeListeners=this._oneTimeListeners||{},Ox(e,r,this._oneTimeListeners),this):new Promise(n=>this.once(e,n))}fire(e,r){typeof e=="string"&&(e=new Zn(e,r||{}));const n=e.type;if(this.listens(n)){e.target=this;const a=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const p of a)p.call(this,e);const l=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const p of l)bg(n,p,this._oneTimeListeners),p.call(this,e);const o=this._eventedParent;o&&(Vo(e,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),o.fire(e))}else e instanceof _V&&console.error(e.error);return this}emit(e,r){return this.fire(e,r)}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,r){return e&&(this._eventedParent=e),this._eventedParentData=r,this}}class vV extends gV{constructor(e,r){super(),I(this,"transform",void 0),I(this,"handlers",void 0),I(this,"_moving",void 0),I(this,"_zooming",void 0),I(this,"_rotating",void 0),I(this,"_pitching",void 0),I(this,"_padding",void 0),I(this,"_bearingSnap",void 0),I(this,"_easeStart",void 0),I(this,"_easeOptions",void 0),I(this,"_easeId",void 0),I(this,"_onEaseFrame",void 0),I(this,"_onEaseEnd",void 0),I(this,"_easeFrameId",void 0),I(this,"_requestedCameraState",void 0),I(this,"transformCameraUpdate",void 0),I(this,"_renderFrameCallback",()=>{const n=Math.min((hu.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(n)),n<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}),this._moving=!1,this._zooming=!1,this.transform=e,this._bearingSnap=r.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new fi(this.transform.center.lng,this.transform.center.lat)}setCenter(e,r){return this.jumpTo({center:e},r)}panBy(e,r,n){return e=oi.convert(e).mult(-1),this.panTo(this.transform.center,Vo({offset:e},r),n)}panTo(e,r,n){return this.easeTo(Vo({center:e},r),n)}getZoom(){return this.transform.zoom}setZoom(e,r){return this.jumpTo({zoom:e},r),this}zoomTo(e,r,n){return this.easeTo(Vo({zoom:e},r),n)}zoomIn(e,r){return this.zoomTo(this.getZoom()+1,e,r),this}zoomOut(e,r){return this.zoomTo(this.getZoom()-1,e,r),this}getBearing(){return this.transform.bearing}setBearing(e,r){return this.jumpTo({bearing:e},r),this}getPadding(){return this.transform.padding}setPadding(e,r){return this.jumpTo({padding:e},r),this}rotateTo(e,r,n){return this.easeTo(Vo({bearing:e},r),n)}resetNorth(e,r){return this.rotateTo(0,Vo({duration:1e3},e),r),this}resetNorthPitch(e,r){return this.easeTo(Vo({bearing:0,pitch:0,duration:1e3},e),r),this}snapToNorth(e,r){return Math.abs(this.getBearing()){if(this._zooming&&(a.zoom=uu.number(l,N,ce)),this._rotating&&(a.bearing=uu.number(o,v,ce)),this._pitching&&(a.pitch=uu.number(p,E,ce)),this._padding&&(a.interpolatePadding(m,b,ce),R=a.centerPoint.add(A)),Q)a.setLocationAtPoint(Q,J);else{const ke=a.zoomScale(a.zoom-l),ct=N>l?Math.min(2,Y):Math.max(.5,Y),Ve=Math.pow(ct,1-ce),Te=a.unproject(W.add(G.mult(ce*Ve)).mult(ke));a.setLocationAtPoint(a.renderWorldCopies?Te.wrap():Te,R)}this._applyUpdatedTransform(a),this._fireMoveEvents(r)},ce=>{this._afterEase(r,ce)},e),this}_prepareEase(e,r,n={}){this._moving=!0,!r&&!n.moving&&this.fire(new Zn("movestart",e)),this._zooming&&!n.zooming&&this.fire(new Zn("zoomstart",e)),this._rotating&&!n.rotating&&this.fire(new Zn("rotatestart",e)),this._pitching&&!n.pitching&&this.fire(new Zn("pitchstart",e))}_getTransformForUpdate(){return this.transformCameraUpdate?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_applyUpdatedTransform(e){if(!this.transformCameraUpdate)return;const r=e.clone(),{center:n,zoom:a,pitch:l,bearing:o,elevation:p}=this.transformCameraUpdate(r);n&&(r.center=n),a!==void 0&&(r.zoom=a),l!==void 0&&(r.pitch=l),o!==void 0&&(r.bearing=o),p!==void 0&&(r.elevation=p),this.transform.apply(r)}_fireMoveEvents(e){this.fire(new Zn("move",e)),this._zooming&&this.fire(new Zn("zoom",e)),this._rotating&&this.fire(new Zn("rotate",e)),this._pitching&&this.fire(new Zn("pitch",e))}_afterEase(e,r){if(this._easeId&&r&&this._easeId===r)return;delete this._easeId;const n=this._zooming,a=this._rotating,l=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&&this.fire(new Zn("zoomend",e)),a&&this.fire(new Zn("rotateend",e)),l&&this.fire(new Zn("pitchend",e)),this.fire(new Zn("moveend",e))}flyTo(e,r){var n;if(!e.essential&&hu.prefersReducedMotion){const Ht=lV(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Ht,r)}this.stop(),e=Vo({offset:[0,0],speed:1.2,curve:1.42,easing:Tv},e);const a=this._getTransformForUpdate(),l=this.getZoom(),o=this.getBearing(),p=this.getPitch(),m=this.getPadding(),v="bearing"in e?this._normalizeBearing(e.bearing,o):o,E="pitch"in e?+e.pitch:p,b="padding"in e?e.padding:a.padding,A=oi.convert(e.offset);let R=a.centerPoint.add(A);const O=a.pointLocation(R),{center:D,zoom:N}=a.getConstrained(fi.convert(e.center||O),(n=e.zoom)!==null&&n!==void 0?n:l);this._normalizeCenter(D);const W=a.zoomScale(N-l),G=a.project(O),Y=a.project(D).sub(G);let Q=e.curve;const J=Math.max(a.width,a.height),Se=J/W,ce=Y.mag();if("minZoom"in e){const Ht=mc(Math.min(e.minZoom,l,N),a.minZoom,a.maxZoom),Or=J/a.zoomScale(Ht-l);Q=Math.sqrt(Or/ce*2)}const ke=Q*Q;function ct(Ht){const Or=(Se*Se-J*J+(Ht?-1:1)*ke*ke*ce*ce)/(2*(Ht?Se:J)*ke*ce);return Math.log(Math.sqrt(Or*Or+1)-Or)}function Ve(Ht){return(Math.exp(Ht)-Math.exp(-Ht))/2}function Te(Ht){return(Math.exp(Ht)+Math.exp(-Ht))/2}function Fe(Ht){return Ve(Ht)/Te(Ht)}const He=ct(!1);let nt=function(Ht){return Te(He)/Te(He+Q*Ht)},Ut=function(Ht){return J*((Te(He)*Fe(He+Q*Ht)-Ve(He))/ke)/ce},$t=(ct(!0)-He)/Q;if(Math.abs(ce)<1e-6||!isFinite($t)){if(Math.abs(J-Se)<1e-6)return this.easeTo(e,r);const Ht=Se0,nt=Or=>Math.exp(Ht*Q*Or)}if("duration"in e)e.duration=+e.duration;else{const Ht="screenSpeed"in e?+e.screenSpeed/Q:+e.speed;e.duration=1e3*$t/Ht}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=o!==v,this._pitching=E!==p,this._padding=!a.isPaddingEqual(b),this._prepareEase(r,!1),this._ease(Ht=>{const Or=Ht*$t,mr=1/nt(Or);a.zoom=Ht===1?N:l+a.scaleZoom(mr),this._rotating&&(a.bearing=uu.number(o,v,Ht)),this._pitching&&(a.pitch=uu.number(p,E,Ht)),this._padding&&(a.interpolatePadding(m,b,Ht),R=a.centerPoint.add(A));const yr=Ht===1?D:a.unproject(G.add(Y.mult(Ut(Or))).mult(mr));a.setLocationAtPoint(a.renderWorldCopies?yr.wrap():yr,R),this._applyUpdatedTransform(a),this._fireMoveEvents(r)},()=>{this._afterEase(r)},e),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(e,r){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const a=this._onEaseEnd;delete this._onEaseEnd,a.call(this,r)}if(!e){var n;(n=this.handlers)===null||n===void 0||n.stop(!1)}return this}_ease(e,r,n){n.animate===!1||n.duration===0?(e(1),r()):(this._easeStart=hu.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(e,r){e=ap(e,-180,180);const n=Math.abs(e-r);return Math.abs(e-360-r)180?-360:n<-180?360:0}}class C2{constructor(e=0,r=0,n=0,a=0){if(I(this,"top",void 0),I(this,"bottom",void 0),I(this,"left",void 0),I(this,"right",void 0),isNaN(e)||e<0||isNaN(r)||r<0||isNaN(n)||n<0||isNaN(a)||a<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=r,this.left=n,this.right=a}interpolate(e,r,n){return r.top!=null&&e.top!=null&&(this.top=uu.number(e.top,r.top,n)),r.bottom!=null&&e.bottom!=null&&(this.bottom=uu.number(e.bottom,r.bottom,n)),r.left!=null&&e.left!=null&&(this.left=uu.number(e.left,r.left,n)),r.right!=null&&e.right!=null&&(this.right=uu.number(e.right,r.right,n)),this}getCenter(e,r){const n=mc((this.left+e-this.right)/2,0,e),a=mc((this.top+r-this.bottom)/2,0,r);return new oi(n,a)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new C2(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}const L0=85.051129;class R2{constructor(e,r,n,a,l){I(this,"tileSize",void 0),I(this,"tileZoom",void 0),I(this,"lngRange",void 0),I(this,"latRange",void 0),I(this,"scale",void 0),I(this,"width",void 0),I(this,"height",void 0),I(this,"angle",void 0),I(this,"rotationMatrix",void 0),I(this,"pixelsToGLUnits",void 0),I(this,"cameraToCenterDistance",void 0),I(this,"mercatorMatrix",void 0),I(this,"projMatrix",void 0),I(this,"invProjMatrix",void 0),I(this,"alignedProjMatrix",void 0),I(this,"pixelMatrix",void 0),I(this,"pixelMatrix3D",void 0),I(this,"pixelMatrixInverse",void 0),I(this,"glCoordMatrix",void 0),I(this,"labelPlaneMatrix",void 0),I(this,"minElevationForCurrentTile",void 0),I(this,"_fov",void 0),I(this,"_pitch",void 0),I(this,"_zoom",void 0),I(this,"_unmodified",void 0),I(this,"_renderWorldCopies",void 0),I(this,"_minZoom",void 0),I(this,"_maxZoom",void 0),I(this,"_minPitch",void 0),I(this,"_maxPitch",void 0),I(this,"_center",void 0),I(this,"_elevation",void 0),I(this,"_pixelPerMeter",void 0),I(this,"_edgeInsets",void 0),I(this,"_constraining",void 0),I(this,"_posMatrixCache",void 0),I(this,"_alignedPosMatrixCache",void 0),this.tileSize=512,this._renderWorldCopies=l===void 0?!0:!!l,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=n??0,this._maxPitch=a??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new fi(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new C2,this._posMatrixCache={},this._alignedPosMatrixCache={},this.minElevationForCurrentTile=0}clone(){const e=new R2(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return e.apply(this),e}apply(e){this.tileSize=e.tileSize,this.latRange=e.latRange,this.width=e.width,this.height=e.height,this._center=e._center,this._elevation=e._elevation,this.minElevationForCurrentTile=e.minElevationForCurrentTile,this.zoom=e.zoom,this.angle=e.angle,this._fov=e._fov,this._pitch=e._pitch,this._unmodified=e._unmodified,this._edgeInsets=e._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(e){e===void 0?e=!0:e===null&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new oi(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(e){const r=-ap(e,-180,180)*Math.PI/180;this.angle!==r&&(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=pT(),dT(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(e){const r=mc(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&&(this._unmodified=!1,this._pitch=r,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(e){const r=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==r&&(this._unmodified=!1,this._zoom=r,this.tileZoom=Math.max(0,Math.floor(r)),this.scale=this.zoomScale(r),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(e){e!==this._elevation&&(this._elevation=e,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,r,n){this._unmodified=!1,this._edgeInsets.interpolate(e,r,n),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){const r=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,r)}resize(e,r){this.width=e,this.height=r,this.pixelsToGLUnits=[2/e,-2/r],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(e){const r=mc(e.lat,-L0,L0);return new oi(rm(e.lng)*this.worldSize,nm(r)*this.worldSize)}unproject(e){return new _c(e.x/this.worldSize,e.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){const e=this.pointLocation(this.getCameraPoint()),r=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter;return{lngLat:e,altitude:r+this.elevation}}setLocationAtPoint(e,r){const n=this.pointCoordinate(r),a=this.pointCoordinate(this.centerPoint),l=this.locationCoordinate(e),o=new _c(l.x-(n.x-a.x),l.y-(n.y-a.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(e){return this.coordinatePoint(this.locationCoordinate(e))}pointLocation(e){return this.coordinateLocation(this.pointCoordinate(e))}locationCoordinate(e){return _c.fromLngLat(e)}coordinateLocation(e){return e&&e.toLngLat()}pointCoordinate(e){const n=[e.x,e.y,0,1],a=[e.x,e.y,1,1];W1(n,n,this.pixelMatrixInverse),W1(a,a,this.pixelMatrixInverse);const l=n[3],o=a[3],p=n[0]/l,m=a[0]/o,v=n[1]/l,E=a[1]/o,b=n[2]/l,A=a[2]/o,R=b===A?0:(0-b)/(A-b);return new _c(uu.number(p,m,R)/this.worldSize,uu.number(v,E,R)/this.worldSize)}coordinatePoint(e,r=0,n=this.pixelMatrix){const a=[e.x*this.worldSize,e.y*this.worldSize,r,1];return W1(a,a,n),new oi(a[0]/a[3],a[1]/a[3])}getBounds(){const e=Math.max(0,this.height/2-this.getHorizon());return new Bu().extend(this.pointLocation(new oi(0,e))).extend(this.pointLocation(new oi(this.width,e))).extend(this.pointLocation(new oi(this.width,this.height))).extend(this.pointLocation(new oi(0,this.height)))}getMaxBounds(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new Bu([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-L0,L0])}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(e,r){r=mc(+r,this.minZoom,this.maxZoom);const n={center:new fi(e.lng,e.lat),zoom:r};let a=this.lngRange;if(!this._renderWorldCopies&&a===null){const J=179.9999999999;a=[-J,J]}const l=this.tileSize*this.zoomScale(n.zoom);let o=0,p=l,m=0,v=l,E=0,b=0;const{x:A,y:R}=this.size;if(this.latRange){const J=this.latRange;o=nm(J[1])*l,p=nm(J[0])*l,p-op&&(W=p-J)}if(a){const J=(m+v)/2;let Se=O;this._renderWorldCopies&&(Se=ap(O,J-l/2,J+l/2));const ce=A/2;Se-cev&&(N=v-ce)}if(N!==void 0||W!==void 0){var Y,Q;const J=new oi((Y=N)!==null&&Y!==void 0?Y:O,(Q=W)!==null&&Q!==void 0?Q:D);n.center=this.unproject.call({worldSize:l},J).wrap()}return n}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const e=this._unmodified,{center:r,zoom:n}=this.getConstrained(this.center,this.zoom);this.center=r,this.zoom=n,this._unmodified=e,this._constraining=!1}_calcMatrices(){if(!this.height)return;const e=this._fov/2,r=this.centerOffset,n=this.point.x,a=this.point.y;this.cameraToCenterDistance=.5/Math.tan(e)*this.height,this._pixelPerMeter=TE(1,this.center.lat)*this.worldSize;let l=V4(new Float64Array(16));au(l,l,[this.width/2,-this.height/2,1]),ou(l,l,[1,-1,0]),this.labelPlaneMatrix=l,l=V4(new Float64Array(16)),au(l,l,[1,-1,1]),ou(l,l,[-1,-1,0]),au(l,l,[2/this.width,2/this.height,1]),this.glCoordMatrix=l;const o=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),p=Math.min(this.elevation,this.minElevationForCurrentTile),m=o-p*this._pixelPerMeter/Math.cos(this._pitch),v=p<0?m:o,E=Math.PI/2+this._pitch,b=this._fov*(.5+r.y/this.height),A=Math.sin(b)*v/Math.sin(mc(Math.PI-E-b,.01,Math.PI-.01)),R=this.getHorizon(),D=2*Math.atan(R/this.cameraToCenterDistance)*(.5+r.y/(R*2)),N=Math.sin(D)*v/Math.sin(mc(Math.PI-E-D,.01,Math.PI-.01)),W=Math.min(A,N),G=(Math.cos(Math.PI/2-this._pitch)*W+v)*1.01,Y=this.height/50;l=new Float64Array(16),L8(l,this._fov,this.width/this.height,Y,G),l[8]=-r.x*2/this.width,l[9]=r.y*2/this.height,au(l,l,[1,-1,1]),ou(l,l,[0,0,-this.cameraToCenterDistance]),Dp(l,l,this._pitch),S3(l,l,this.angle),ou(l,l,[-n,-a,0]),this.mercatorMatrix=au([],l,[this.worldSize,this.worldSize,this.worldSize]),au(l,l,[1,1,this._pixelPerMeter]),this.pixelMatrix=Y1(new Float64Array(16),this.labelPlaneMatrix,l),ou(l,l,[0,0,-this.elevation]),this.projMatrix=l,this.invProjMatrix=fm([],l),this.pixelMatrix3D=Y1(new Float64Array(16),this.labelPlaneMatrix,l);const Q=this.width%2/2,J=this.height%2/2,Se=Math.cos(this.angle),ce=Math.sin(this.angle),ke=n-Math.round(n)+Se*Q+ce*J,ct=a-Math.round(a)+Se*J+ce*Q,Ve=new Float64Array(l);if(ou(Ve,Ve,[ke>.5?ke-1:ke,ct>.5?ct-1:ct,0]),this.alignedProjMatrix=Ve,l=fm(new Float64Array(16),this.pixelMatrix),!l)throw new Error("failed to invert matrix");this.pixelMatrixInverse=l,this._posMatrixCache={},this._alignedPosMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;const e=this.pointCoordinate(new oi(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return W1(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){const e=this._pitch,r=Math.tan(e)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new oi(0,r))}getCameraQueryGeometry(e){const r=this.getCameraPoint();if(e.length===1)return[e[0],r];{let n=r.x,a=r.y,l=r.x,o=r.y;for(const p of e)n=Math.min(n,p.x),a=Math.min(a,p.y),l=Math.max(l,p.x),o=Math.max(o,p.y);return[new oi(n,a),new oi(l,a),new oi(l,o),new oi(n,o),new oi(n,a)]}}lngLatToCameraDepth(e,r){const n=this.locationCoordinate(e),a=[n.x*this.worldSize,n.y*this.worldSize,r,1];return W1(a,a,this.projMatrix),a[2]/a[3]}}var I2;class fn{static testProp(e){if(!fn.docStyle)return e[0];for(let r=0;r{window.removeEventListener("click",fn.suppressClickInternal,!0)},0)}static getScale(e){const r=e.getBoundingClientRect();return{x:r.width/e.offsetWidth||1,y:r.height/e.offsetHeight||1,boundingClientRect:r}}static getPoint(e,r,n){const a=r.boundingClientRect;return new oi((n.clientX-a.left)/r.x-e.clientLeft,(n.clientY-a.top)/r.y-e.clientTop)}static mousePos(e,r){const n=fn.getScale(e);return fn.getPoint(e,n,r)}static touchPos(e,r){const n=[],a=fn.getScale(e);for(let l=0;ll.fitScreenCoordinates(n,a,this._tr.bearing,{linear:!0})}}keydown(e){this._active&&e.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("l7-crosshair"),this._box&&(fn.remove(this._box),this._box=null),fn.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(e,r){return this._map.fire(new Zn(e,{originalEvent:r}))}}class xV{constructor(e){I(this,"_tr",void 0),I(this,"_enabled",void 0),I(this,"_active",void 0),this._tr=new L3(e),this.reset()}reset(){this._active=!1}dblclick(e,r){return e.preventDefault(),{cameraAnimation:n=>{n.easeTo({duration:300,zoom:this._tr.zoom+(e.shiftKey?-1:1),around:this._tr.unproject(r)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class bV{constructor(e,r){I(this,"_options",void 0),I(this,"_map",void 0),I(this,"_container",void 0),I(this,"_bypassKey",navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey"),I(this,"_enabled",void 0),this._map=e,this._options=r,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;const e=this._map.getCanvasContainer();e.classList.add("l7-cooperative-gestures"),this._container=fn.create("div","l7-cooperative-gesture-screen",e);const r=document.createElement("div");r.className="l7-desktop-message",r.textContent="Missing UI string",this._container.appendChild(r);const n=document.createElement("div");n.className="l7-mobile-message",n.textContent="Missing UI string",this._container.appendChild(n),this._container.setAttribute("aria-hidden","true")}_destoryUI(){this._container&&(fn.remove(this._container),this._map.getCanvasContainer().classList.remove("l7-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destoryUI()}isEnabled(){return this._enabled}touchmove(e){this._onCooperativeGesture(e.touches.length===1)}wheel(e){this._map.scrollZoom.isEnabled()&&this._onCooperativeGesture(!e[this._bypassKey])}_onCooperativeGesture(e){!this._enabled||!e||(this._container.classList.add("l7-show"),setTimeout(()=>{this._container.classList.remove("l7-show")},100))}}const EV={panStep:100,bearingStep:15,pitchStep:10};class TV{constructor(e){I(this,"_tr",void 0),I(this,"_enabled",void 0),I(this,"_active",void 0),I(this,"_panStep",void 0),I(this,"_bearingStep",void 0),I(this,"_pitchStep",void 0),I(this,"_rotationDisabled",void 0),this._tr=new L3(e);const r=EV;this._panStep=r.panStep,this._bearingStep=r.bearingStep,this._pitchStep=r.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let r=0,n=0,a=0,l=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:e.shiftKey?n=-1:(e.preventDefault(),l=-1);break;case 39:e.shiftKey?n=1:(e.preventDefault(),l=1);break;case 38:e.shiftKey?a=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?a=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(n=0,a=0),{cameraAnimation:p=>{const m=this._tr;p.easeTo({duration:300,easeId:"keyboardHandler",easing:AV,zoom:r?Math.round(m.zoom)+r*(e.shiftKey?2:1):m.zoom,bearing:m.bearing+n*this._bearingStep,pitch:m.pitch+a*this._pitchStep,offset:[-l*this._panStep,-o*this._panStep],center:m.center},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function AV(t){return t*(2-t)}class Kc extends Zn{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,r,n,a={}){super(e,a),I(this,"target",void 0),I(this,"originalEvent",void 0),I(this,"point",void 0),I(this,"lngLat",void 0),I(this,"_defaultPrevented",void 0);const l=fn.mousePos(r.getCanvasContainer(),n),o=r.unproject(l);this.point=l,this.lngLat=o,this.originalEvent=n,this._defaultPrevented=!1,this.target=r}}class D0 extends Zn{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,r,n){super(e),I(this,"target",void 0),I(this,"originalEvent",void 0),I(this,"lngLat",void 0),I(this,"point",void 0),I(this,"points",void 0),I(this,"lngLats",void 0),I(this,"_defaultPrevented",void 0);const a=e==="touchend"?n.changedTouches:n.touches,l=fn.touchPos(r.getCanvasContainer(),a),o=l.map(v=>r.unproject(v)),p=l.reduce((v,E,b,A)=>v.add(E.div(A.length)),new oi(0,0)),m=r.unproject(p);this.target=r,this.points=l,this.point=p,this.lngLats=o,this.lngLat=m,this.originalEvent=n,this._defaultPrevented=!1}}class SV extends Zn{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,r,n){super(e),I(this,"target",void 0),I(this,"originalEvent",void 0),I(this,"_defaultPrevented",void 0),this.target=r,this._defaultPrevented=!1,this.originalEvent=n}}class wV{constructor(e,r){I(this,"_mousedownPos",void 0),I(this,"_clickTolerance",void 0),I(this,"_map",void 0),this._map=e,this._clickTolerance=r.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new SV(e.type,this._map,e))}mousedown(e,r){return this._mousedownPos=r,this._firePreventable(new Kc(e.type,this._map,e))}mouseup(e){this._map.fire(new Kc(e.type,this._map,e))}click(e,r){this._mousedownPos&&this._mousedownPos.dist(r)>=this._clickTolerance||this._map.fire(new Kc(e.type,this._map,e))}dblclick(e){return this._firePreventable(new Kc(e.type,this._map,e))}mouseover(e){this._map.fire(new Kc(e.type,this._map,e))}mouseout(e){this._map.fire(new Kc(e.type,this._map,e))}touchstart(e){return this._firePreventable(new D0(e.type,this._map,e))}touchmove(e){this._map.fire(new D0(e.type,this._map,e))}touchend(e){this._map.fire(new D0(e.type,this._map,e))}touchcancel(e){this._map.fire(new D0(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class CV{constructor(e){I(this,"_map",void 0),I(this,"_delayContextMenu",void 0),I(this,"_ignoreContextMenu",void 0),I(this,"_contextMenuEvent",void 0),this._map=e}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(e){this._map.fire(new Kc(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Kc("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._ignoreContextMenu||this._map.fire(new Kc(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class M2{constructor(e){I(this,"contextmenu",void 0),I(this,"mousedown",void 0),I(this,"mousemoveWindow",void 0),I(this,"mouseup",void 0),I(this,"touchstart",void 0),I(this,"touchmoveWindow",void 0),I(this,"touchend",void 0),I(this,"_clickTolerance",void 0),I(this,"_moveFunction",void 0),I(this,"_activateOnStart",void 0),I(this,"_active",void 0),I(this,"_enabled",void 0),I(this,"_moved",void 0),I(this,"_lastPoint",void 0),I(this,"_moveStateManager",void 0),this._enabled=!!e.enable,this._moveStateManager=e.moveStateManager,this._clickTolerance=e.clickTolerance||1,this._moveFunction=e.move,this._activateOnStart=!!e.activateOnStart,e.assignEvents(this),this.reset()}reset(e){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(e)}_move(...e){const r=this._moveFunction(...e);if(r.bearingDelta||r.pitchDelta||r.around||r.panDelta)return this._active=!0,r}dragStart(e,r){!this.isEnabled()||this._lastPoint||this._moveStateManager.isValidStartEvent(e)&&(this._moveStateManager.startMove(e),this._lastPoint=r.length?r[0]:r,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(e,r){if(!this.isEnabled())return;const n=this._lastPoint;if(!n)return;if(e.preventDefault(),!this._moveStateManager.isValidMoveEvent(e)){this.reset(e);return}const a=r.length?r[0]:r;if(!(!this._moved&&a.dist(n){t.mousedown=t.dragStart,t.mousemoveWindow=t.dragMove,t.mouseup=t.dragEnd,t.contextmenu=e=>{e.preventDefault()}},OV=({enable:t,clickTolerance:e})=>{const r=new P2({checkCorrectEvent:n=>fn.mouseButton(n)===O2&&!n.ctrlKey});return new M2({clickTolerance:e,move:(n,a)=>({around:a,panDelta:a.sub(n)}),activateOnStart:!0,moveStateManager:r,enable:t,assignEvents:L2})},LV=({enable:t,clickTolerance:e,bearingDegreesPerPixelMoved:r=.8})=>{const n=new P2({checkCorrectEvent:a=>fn.mouseButton(a)===O2&&a.ctrlKey||fn.mouseButton(a)===AE});return new M2({clickTolerance:e,move:(a,l)=>({bearingDelta:(l.x-a.x)*r}),moveStateManager:n,enable:t,assignEvents:L2})},DV=({enable:t,clickTolerance:e,pitchDegreesPerPixelMoved:r=-.5})=>{const n=new P2({checkCorrectEvent:a=>fn.mouseButton(a)===O2&&a.ctrlKey||fn.mouseButton(a)===AE});return new M2({clickTolerance:e,move:(a,l)=>({pitchDelta:(l.y-a.y)*r}),moveStateManager:n,enable:t,assignEvents:L2})},Lx=4.000244140625,BV=1/100,FV=1/450,NV=2;class kV{constructor(e,r){I(this,"_map",void 0),I(this,"_tr",void 0),I(this,"_enabled",void 0),I(this,"_active",void 0),I(this,"_zooming",void 0),I(this,"_aroundCenter",void 0),I(this,"_around",void 0),I(this,"_aroundPoint",void 0),I(this,"_type",void 0),I(this,"_lastValue",void 0),I(this,"_timeout",void 0),I(this,"_finishTimeout",void 0),I(this,"_lastWheelEvent",void 0),I(this,"_lastWheelEventTime",void 0),I(this,"_startZoom",void 0),I(this,"_targetZoom",void 0),I(this,"_delta",void 0),I(this,"_easing",void 0),I(this,"_prevEase",void 0),I(this,"_frameId",void 0),I(this,"_triggerRenderFrame",void 0),I(this,"_defaultZoomRate",void 0),I(this,"_wheelZoomRate",void 0),I(this,"_onTimeout",n=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(n)}),this._map=e,this._tr=new L3(e),this._triggerRenderFrame=r,this._delta=0,this._defaultZoomRate=BV,this._wheelZoomRate=FV}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&e.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}wheel(e){if(!this.isEnabled()||this._map.cooperativeGestures.isEnabled()&&!e[this._map.cooperativeGestures._bypassKey])return;let r=e.deltaMode===WheelEvent.DOM_DELTA_LINE?e.deltaY*40:e.deltaY;const n=hu.now(),a=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,r!==0&&r%Lx===0?this._type="wheel":r!==0&&Math.abs(r)<4?this._type="trackpad":a>400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(a*r)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&&r&&(r=r/4),this._type&&(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}_start(e){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const r=fn.mousePos(this._map.getCanvasContainer(),e),n=this._tr;r.y>n.transform.height/2-n.transform.getHorizon()?this._around=fi.convert(this._aroundCenter?n.center:n.unproject(r)):this._around=fi.convert(n.center),this._aroundPoint=n.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const e=this._tr.transform;if(this._delta!==0){const p=this._type==="wheel"&&Math.abs(this._delta)>Lx?this._wheelZoomRate:this._defaultZoomRate;let m=NV/(1+Math.exp(-Math.abs(this._delta*p)));this._delta<0&&m!==0&&(m=1/m);const v=typeof this._targetZoom=="number"?e.zoomScale(this._targetZoom):e.scale;this._targetZoom=Math.min(e.maxZoom,Math.max(e.minZoom,e.scaleZoom(v*m))),this._type==="wheel"&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}const r=typeof this._targetZoom=="number"?this._targetZoom:e.zoom,n=this._startZoom,a=this._easing;let l=!1,o;if(this._type==="wheel"&&n&&a){const p=Math.min((hu.now()-this._lastWheelEventTime)/200,1),m=a(p);o=uu.number(n,r,m),p<1?this._frameId||(this._frameId=!0):l=!0}else o=r,l=!0;return this._active=!0,l&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!l,zoomDelta:o-e.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let r=Tv;if(this._prevEase){const n=this._prevEase,a=(hu.now()-n.start)/n.duration,l=n.easing(a+.01)-n.easing(a),o=.27/Math.sqrt(l*l+1e-4)*.01,p=Math.sqrt(.27*.27-o*o);r=w2(o,p,.25,1)}return this._prevEase={start:hu.now(),duration:e,easing:r},r}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class UV{constructor(e,r){I(this,"_clickZoom",void 0),I(this,"_tapZoom",void 0),this._clickZoom=e,this._tapZoom=r}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class zV{constructor(e,r,n){I(this,"_el",void 0),I(this,"_mousePan",void 0),I(this,"_touchPan",void 0),I(this,"_inertiaOptions",void 0),this._el=e,this._mousePan=r,this._touchPan=n}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("l7-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("l7-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class VV{constructor(e,r,n){I(this,"_mouseRotate",void 0),I(this,"_mousePitch",void 0),I(this,"_pitchWithRotate",void 0),this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=r,this._mousePitch=n}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class HV{constructor(e,r,n,a){I(this,"_el",void 0),I(this,"_touchZoom",void 0),I(this,"_touchRotate",void 0),I(this,"_tapDragZoom",void 0),I(this,"_rotationDisabled",void 0),I(this,"_enabled",void 0),this._el=e,this._touchZoom=r,this._touchRotate=n,this._tapDragZoom=a,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("l7-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("l7-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}function Sv(t,e){if(t.length!==e.length)throw new Error(`The number of touches and points are not equal - touches ${t.length}, points ${e.length}`);const r={};for(let n=0;nthis.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=e.timeStamp),n.length===this.numTouches&&(this.centroid=jV(r),this.touches=Sv(n,r)))}touchmove(e,r,n){if(this.aborted||!this.centroid)return;const a=Sv(n,r);for(const l in this.touches){const o=this.touches[l],p=a[l];(!p||p.dist(o)>D2)&&(this.aborted=!0)}}touchend(e,r,n){if((!this.centroid||e.timeStamp-this.startTime>XV)&&(this.aborted=!0),n.length===0){const a=!this.aborted&&this.centroid;if(this.reset(),a)return a}}}class wv{constructor(e){I(this,"singleTap",void 0),I(this,"numTaps",void 0),I(this,"lastTime",void 0),I(this,"lastTap",void 0),I(this,"count",void 0),this.singleTap=new WV(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,r,n){this.singleTap.touchstart(e,r,n)}touchmove(e,r,n){this.singleTap.touchmove(e,r,n)}touchend(e,r,n){const a=this.singleTap.touchend(e,r,n);if(a){const l=e.timeStamp-this.lastTime0&&(this._swipePoint=a,this._swipeTouch=n[0].identifier)}}touchmove(e,r,n){if(!this._tapTime)this._tap.touchmove(e,r,n);else if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;const a=r[0],l=a.y-this._swipePoint.y;return this._swipePoint=a,e.preventDefault(),this._active=!0,{zoomDelta:l/128}}}touchend(e,r,n){if(this._tapTime)this._swipePoint&&n.length===0&&this.reset();else{const a=this._tap.touchend(e,r,n);a&&(this._tapTime=e.timeStamp,this._tapPoint=a)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ZV{constructor(e){I(this,"_tr",void 0),I(this,"_enabled",void 0),I(this,"_active",void 0),I(this,"_zoomIn",void 0),I(this,"_zoomOut",void 0),this._tr=new L3(e),this._zoomIn=new wv({numTouches:1,numTaps:2}),this._zoomOut=new wv({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,r,n){this._zoomIn.touchstart(e,r,n),this._zoomOut.touchstart(e,r,n)}touchmove(e,r,n){this._zoomIn.touchmove(e,r,n),this._zoomOut.touchmove(e,r,n)}touchend(e,r,n){const a=this._zoomIn.touchend(e,r,n),l=this._zoomOut.touchend(e,r,n),o=this._tr;if(a)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:p=>p.easeTo({duration:300,zoom:o.zoom+1,around:o.unproject(a)},{originalEvent:e})};if(l)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:p=>p.easeTo({duration:300,zoom:o.zoom-1,around:o.unproject(l)},{originalEvent:e})}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class $V{constructor(e,r){I(this,"_enabled",void 0),I(this,"_active",void 0),I(this,"_touches",void 0),I(this,"_clickTolerance",void 0),I(this,"_sum",void 0),I(this,"_map",void 0),this._clickTolerance=e.clickTolerance||1,this._map=r,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new oi(0,0)}minTouchs(){return this._map.cooperativeGestures.isEnabled()?2:1}touchstart(e,r,n){return this._calculateTransform(e,r,n)}touchmove(e,r,n){if(!(!this._active||n.length0&&(this._active=!0);const a=Sv(n,r),l=new oi(0,0),o=new oi(0,0);let p=0;for(const E in a){const b=a[E],A=this._touches[E];A&&(l._add(b),o._add(b.sub(A)),p++,a[E]=b)}if(this._touches=a,pMath.abs(t.x)}const JV=100;class eH extends B2{constructor(e){super(),I(this,"_valid",void 0),I(this,"_firstMove",void 0),I(this,"_lastPoints",void 0),I(this,"_map",void 0),I(this,"_currentTouchCount",0),this._map=e}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(e,r,n){super.touchstart(e,r,n),this._currentTouchCount=n.length}_start(e){this._lastPoints=e,Eg(e[0].sub(e[1]))&&(this._valid=!1)}_move(e,r,n){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;const a=e[0].sub(this._lastPoints[0]),l=e[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(a,l,n.timeStamp),this._valid?(this._lastPoints=e,this._active=!0,{pitchDelta:(a.y+l.y)/2*-.5}):void 0}gestureBeginsVertically(e,r,n){if(this._valid!==void 0)return this._valid;const a=2,l=e.mag()>=a,o=r.mag()>=a;if(!l&&!o)return;if(!l||!o)return this._firstMove===void 0&&(this._firstMove=n),n-this._firstMove0==r.y>0;return Eg(e)&&Eg(r)&&p}}const l_={linearity:.3,easing:w2(0,0,.3,1)},tH=Vo({deceleration:2500,maxSpeed:1400},l_),rH=Vo({deceleration:20,maxSpeed:1400},l_),nH=Vo({deceleration:1e3,maxSpeed:360},l_),iH=Vo({deceleration:1e3,maxSpeed:90},l_);class oH{constructor(e){I(this,"_map",void 0),I(this,"_inertiaBuffer",void 0),this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:hu.now(),settings:e})}_drainInertiaBuffer(){const e=this._inertiaBuffer,r=hu.now(),n=160;for(;e.length>0&&r-e[0].time>n;)e.shift()}_onMoveEnd(e){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const r={zoom:0,bearing:0,pitch:0,pan:new oi(0,0),pinchAround:void 0,around:void 0};for(const{settings:o}of this._inertiaBuffer)r.zoom+=o.zoomDelta||0,r.bearing+=o.bearingDelta||0,r.pitch+=o.pitchDelta||0,o.panDelta&&r.pan._add(o.panDelta),o.around&&(r.around=o.around),o.pinchAround&&(r.pinchAround=o.pinchAround);const a=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,l={};if(r.pan.mag()){const o=N0(r.pan.mag(),a,Vo({},tH,e||{}));l.offset=r.pan.mult(o.amount/r.pan.mag()),l.center=this._map.transform.center,F0(l,o)}if(r.zoom){const o=N0(r.zoom,a,rH);l.zoom=this._map.transform.zoom+o.amount,F0(l,o)}if(r.bearing){const o=N0(r.bearing,a,nH);l.bearing=this._map.transform.bearing+mc(o.amount,-179,179),F0(l,o)}if(r.pitch){const o=N0(r.pitch,a,iH);l.pitch=this._map.transform.pitch+o.amount,F0(l,o)}if(l.zoom||l.bearing){const o=r.pinchAround===void 0?r.around:r.pinchAround;l.around=o?this._map.unproject(o):this._map.getCenter()}return this.clear(),Vo(l,{noMoveStart:!0})}}function F0(t,e){(!t.duration||t.durationt.zoom||t.drag||t.pitch||t.rotate;class aH extends Zn{constructor(e,r){super(e),I(this,"type","renderFrame"),I(this,"timeStamp",void 0),this.timeStamp=r}}function Tg(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}class sH{constructor(e,r){I(this,"_map",void 0),I(this,"_el",void 0),I(this,"_handlers",void 0),I(this,"_eventsInProgress",void 0),I(this,"_frameId",void 0),I(this,"_inertia",void 0),I(this,"_bearingSnap",void 0),I(this,"_handlersById",void 0),I(this,"_updatingCamera",void 0),I(this,"_changes",void 0),I(this,"_zoom",void 0),I(this,"_previousActiveHandlers",void 0),I(this,"_listeners",void 0),I(this,"handleWindowEvent",a=>{this.handleEvent(a,`${a.type}Window`)}),I(this,"handleEvent",(a,l)=>{if(a.type==="blur"){this.stop(!0);return}this._updatingCamera=!0;const o=a.type==="renderFrame"?void 0:a,p={needsRenderFrame:!1},m={},v={},E=a.touches,b=E?this._getMapTouches(E):void 0,A=b?fn.touchPos(this._map.getCanvasContainer(),b):fn.mousePos(this._map.getCanvasContainer(),a);for(const{handlerName:D,handler:N,allowed:W}of this._handlers){if(!N.isEnabled())continue;let G;this._blockedByActive(v,W,D)?N.reset():N[l||a.type]&&(G=N[l||a.type](a,A,b),this.mergeHandlerResult(p,m,G,D,o),G&&G.needsRenderFrame&&this._triggerRenderFrame()),(G||N.isActive())&&(v[D]=N)}const R={};for(const D in this._previousActiveHandlers)v[D]||(R[D]=o);this._previousActiveHandlers=v,(Object.keys(R).length||Tg(p))&&(this._changes.push([p,m,R]),this._triggerRenderFrame()),(Object.keys(v).length||Tg(p))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:O}=p;O&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],O(this._map))}),this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new oH(e),this._bearingSnap=r.bearingSnap||7,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r);const n=this._el;this._listeners=[[n,"touchstart",{passive:!0}],[n,"touchmove",{passive:!1}],[n,"touchend",void 0],[n,"touchcancel",void 0],[n,"mousedown",void 0],[n,"mousemove",void 0],[n,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[n,"mouseover",void 0],[n,"mouseout",void 0],[n,"dblclick",void 0],[n,"click",void 0],[n,"keydown",{capture:!1}],[n,"keyup",void 0],[n,"wheel",{passive:!1}],[n,"contextmenu",void 0],[window,"blur",void 0]];for(const[a,l,o]of this._listeners)fn.addEventListener(a,l,a===document?this.handleWindowEvent:this.handleEvent,o)}destroy(){for(const[e,r,n]of this._listeners)fn.removeEventListener(e,r,e===document?this.handleWindowEvent:this.handleEvent,n)}_addDefaultHandlers(e){const r=this._map,n=r.getCanvasContainer();this._add("mapEvent",new wV(r,e));const a=r.boxZoom=new yV(r,e);this._add("boxZoom",a),e.interactive&&e.boxZoom&&a.enable();const l=r.cooperativeGestures=new bV(r,e.cooperativeGestures);this._add("cooperativeGestures",l),e.cooperativeGestures&&l.enable();const o=new ZV(r),p=new xV(r);r.doubleClickZoom=new UV(p,o),this._add("tapZoom",o),this._add("clickZoom",p),e.interactive&&e.doubleClickZoom&&r.doubleClickZoom.enable();const m=new GV;this._add("tapDragZoom",m);const v=r.touchPitch=new eH(r);this._add("touchPitch",v),e.interactive&&e.touchPitch&&r.touchPitch.enable(e.touchPitch);const E=LV(e),b=DV(e);r.dragRotate=new VV(e,E,b),this._add("mouseRotate",E,["mousePitch"]),this._add("mousePitch",b,["mouseRotate"]),e.interactive&&e.dragRotate&&r.dragRotate.enable();const A=OV(e),R=new $V(e,r);r.dragPan=new zV(n,A,R),this._add("mousePan",A),this._add("touchPan",R,["touchZoom","touchRotate"]),e.interactive&&e.dragPan&&r.dragPan.enable(e.dragPan);const O=new QV,D=new YV;r.touchZoomRotate=new HV(n,D,O,m),this._add("touchRotate",O,["touchPan","touchZoom"]),this._add("touchZoom",D,["touchPan","touchRotate"]),e.interactive&&e.touchZoomRotate&&r.touchZoomRotate.enable(e.touchZoomRotate);const N=r.scrollZoom=new kV(r,()=>this._triggerRenderFrame());this._add("scrollZoom",N,["mousePan"]),e.interactive&&e.scrollZoom&&r.scrollZoom.enable(e.scrollZoom);const W=r.keyboard=new TV(r);this._add("keyboard",W),e.interactive&&e.keyboard&&r.keyboard.enable(),this._add("blockableMapEvent",new CV(r))}_add(e,r,n){this._handlers.push({handlerName:e,handler:r,allowed:n}),this._handlersById[e]=r}stop(e){if(!this._updatingCamera){for(const{handler:r}of this._handlers)r.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(const{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!k0(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,r,n){for(const a in e)if(a!==n&&(!r||r.indexOf(a)<0))return!0;return!1}_getMapTouches(e){const r=[];for(const n of e){const a=n.target;this._el.contains(a)&&r.push(n)}return r}mergeHandlerResult(e,r,n,a,l){if(!n)return;Vo(e,n);const o={handlerName:a,originalEvent:n.originalEvent||l};n.zoomDelta!==void 0&&(r.zoom=o),n.panDelta!==void 0&&(r.drag=o),n.pitchDelta!==void 0&&(r.pitch=o),n.bearingDelta!==void 0&&(r.rotate=o)}_applyChanges(){const e={},r={},n={};for(const[a,l,o]of this._changes)a.panDelta&&(e.panDelta=(e.panDelta||new oi(0,0))._add(a.panDelta)),a.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+a.zoomDelta),a.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+a.bearingDelta),a.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+a.pitchDelta),a.around!==void 0&&(e.around=a.around),a.pinchAround!==void 0&&(e.pinchAround=a.pinchAround),a.noInertia&&(e.noInertia=a.noInertia),Vo(r,l),Vo(n,o);this._updateMapTransform(e,r,n),this._changes=[]}_updateMapTransform(e,r,n){const a=this._map,l=a._getTransformForUpdate();if(!Tg(e))return this._fireEvents(r,n,!0);const{panDelta:o,zoomDelta:p,bearingDelta:m,pitchDelta:v,pinchAround:E}=e;let{around:b}=e;E!==void 0&&(b=E),a._stop(!0),b=b||a.transform.centerPoint;const A=l.pointLocation(o?b.sub(o):b);m&&(l.bearing+=m),v&&(l.pitch+=v),p&&(l.zoom+=p),l.setLocationAtPoint(A,b),a._applyUpdatedTransform(l),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(r,n,!0)}_fireEvents(e,r,n){const a=k0(this._eventsInProgress),l=k0(e),o={};for(const b in e){const{originalEvent:A}=e[b];this._eventsInProgress[b]||(o[`${b}start`]=A),this._eventsInProgress[b]=e[b]}!a&&l&&this._fireEvent("movestart",l.originalEvent);for(const b in o)this._fireEvent(b,o[b]);l&&this._fireEvent("move",l.originalEvent);for(const b in e){const{originalEvent:A}=e[b];this._fireEvent(b,A)}const p={};let m;for(const b in this._eventsInProgress){const{handlerName:A,originalEvent:R}=this._eventsInProgress[b];this._handlersById[A].isActive()||(delete this._eventsInProgress[b],m=r[A]||R,p[`${b}end`]=m)}for(const b in p)this._fireEvent(b,p[b]);const v=k0(this._eventsInProgress);if(n&&((a||l)&&!v)){this._updatingCamera=!0;const b=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),A=R=>R!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new aH("renderFrame",e)),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class lH{constructor(){I(this,"_queue",void 0),I(this,"_id",void 0),I(this,"_cleared",void 0),I(this,"_currentlyRunning",void 0),this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){const r=++this._id;return this._queue.push({callback:e,id:r,cancelled:!1}),r}remove(e){const r=this._currentlyRunning,n=r?this._queue.concat(r):this._queue;for(const a of n)if(a.id===e){a.cancelled=!0;return}}run(e=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");const r=this._currentlyRunning=this._queue;this._queue=[];for(const n of r)if(!n.cancelled&&(n.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function uH(t,e){var r=typeof my<"u"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx<"u"&&wx!==null&&(typeof wx.request<"u"||typeof wx.miniProgram<"u");if(!(r||n)&&(e||(e=document),!!e)){var a=e.head||e.getElementsByTagName("head")[0];if(!a){a=e.createElement("head");var l=e.body||e.getElementsByTagName("body")[0];l?l.parentNode.insertBefore(a,l):e.documentElement.appendChild(a)}var o=e.createElement("style");return o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),a.appendChild(o),o}}uH(`.l7-map { font: 12px/20px 'Helvetica Neue', Arial, @@ -5374,12 +5374,12 @@ void main() { opacity: 0.5; z-index: 10; } -`);const im=-2,wE=22,H1=0,CE=60,U0=85,pH={interactive:!0,bearingSnap:7,scrollZoom:!0,minZoom:im,maxZoom:wE,minPitch:H1,maxPitch:CE,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],zoom:0,bearing:0,pitch:0,renderWorldCopies:!0,fadeDuration:300,clickTolerance:3,pitchWithRotate:!0};let dH=class extends bV{constructor(e){const r=_t(_t({},pH),e);if(r.minZoom!=null&&r.maxZoom!=null&&r.minZoom>r.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(r.minPitch!=null&&r.maxPitch!=null&&r.minPitch>r.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(r.minPitch!=null&&r.minPitchU0)throw new Error(`maxPitch must be less than or equal to ${U0}`);const n=new R2(r.minZoom,r.maxZoom,r.minPitch,r.maxPitch,r.renderWorldCopies);if(super(n,{bearingSnap:r.bearingSnap}),I(this,"_container",void 0),I(this,"_canvasContainer",void 0),I(this,"_interactive",void 0),I(this,"_frameRequest",void 0),I(this,"_loaded",void 0),I(this,"_idleTriggered",!1),I(this,"_fullyLoaded",void 0),I(this,"_trackResize",void 0),I(this,"_resizeObserver",void 0),I(this,"_preserveDrawingBuffer",void 0),I(this,"_failIfMajorPerformanceCaveat",void 0),I(this,"_fadeDuration",void 0),I(this,"_crossSourceCollisions",void 0),I(this,"_crossFadingFactor",1),I(this,"_collectResourceTiming",void 0),I(this,"_renderTaskQueue",new hH),I(this,"_mapId",cV()),I(this,"_removed",void 0),I(this,"_clickTolerance",void 0),I(this,"scrollZoom",void 0),I(this,"boxZoom",void 0),I(this,"dragRotate",void 0),I(this,"dragPan",void 0),I(this,"keyboard",void 0),I(this,"doubleClickZoom",void 0),I(this,"touchZoomRotate",void 0),I(this,"touchPitch",void 0),I(this,"cooperativeGestures",void 0),I(this,"_onMapScroll",a=>{if(a.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}),this._interactive=r.interactive,this._trackResize=r.trackResize===!0,this._bearingSnap=r.bearingSnap,this._fadeDuration=r.fadeDuration,this._clickTolerance=r.clickTolerance,typeof r.container=="string"){if(this._container=document.getElementById(r.container),!this._container)throw new Error(`Container '${r.container}' not found.`)}else if(r.container instanceof HTMLElement)this._container=r.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(r.maxBounds&&this.setMaxBounds(r.maxBounds),this._setupContainer(),this.on("move",()=>this._update()).on("moveend",()=>this._update()).on("zoom",()=>this._update()).once("idle",()=>{this._idleTriggered=!0}),typeof window<"u"){let a=!1;const l=Ko.throttle(o=>{this._trackResize&&!this._removed&&this.resize(o)._update()},50);this._resizeObserver=new ResizeObserver(o=>{if(!a){a=!0;return}l(o)}),this._resizeObserver.observe(this._container)}this.handlers=new cH(this,r),this.jumpTo({center:r.center,zoom:r.zoom,bearing:r.bearing,pitch:r.pitch}),r.bounds&&(this.resize(),this.fitBounds(r.bounds,Vo({},r.fitBoundsOptions,{duration:0}))),this.resize()}_getMapId(){return this._mapId}calculateCameraOptionsFromTo(e,r,n,a){return super.calculateCameraOptionsFromTo(e,r,n,a)}resize(e){var r;const n=this._containerDimensions(),a=n[0],l=n[1];this.transform.resize(a,l),(r=this._requestedCameraState)===null||r===void 0||r.resize(a,l);const o=!this._moving;return o&&(this.stop(),this.fire(new Zn("movestart",e)).fire(new Zn("move",e))),this.fire(new Zn("resize",e)),o&&this.fire(new Zn("moveend",e)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(e){return this.transform.setMaxBounds(e&&Bu.convert(e)),this._update()}setMinZoom(e){if(e=e??im,e>=im&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=e,this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(e){if(e=e??H1,e=H1&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this.getPitch()U0)throw new Error(`maxPitch must be less than or equal to ${U0}`);if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){this.transform.renderWorldCopies=e}project(e){return this.transform.locationPoint(fi.convert(e))}unproject(e){return this.transform.pointLocation(oi.convert(e))}isMoving(){var e;return this._moving||((e=this.handlers)===null||e===void 0?void 0:e.isMoving())}isZooming(){var e;return this._zooming||((e=this.handlers)===null||e===void 0?void 0:e.isZooming())}isRotating(){var e;return this._rotating||((e=this.handlers)===null||e===void 0?void 0:e.isRotating())}on(e,r){return super.on(e,r)}once(e,r){return super.once(e,r)}off(e,r){return super.off(e,r)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}_containerDimensions(){let e=0,r=0;return this._container&&(e=this._container.clientWidth||400,r=this._container.clientHeight||300),[e,r]}_setupContainer(){const e=this._container;e.classList.add("l7-map");const r=this._canvasContainer=fn.create("div","l7-canvas-container",e);this._interactive&&r.classList.add("l7-interactive"),this._container.addEventListener("scroll",this._onMapScroll,!1)}_update(){return this.triggerRepaint(),this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(e){if(this._renderTaskQueue.run(e),!this._removed)return this.fire(new Zn("render")),this.isMoving()||this.fire(new Zn("idle")),this}remove(){var e;this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.handlers.destroy(),delete this.handlers,(e=this._resizeObserver)===null||e===void 0||e.disconnect(),fn.remove(this._canvasContainer),this._container.classList.remove("l7-map"),this._removed=!0,this.fire(new Zn("remove"))}triggerRepaint(){this._frameRequest||(this._frameRequest=new AbortController,hu.frameAsync(this._frameRequest).then(e=>{this._frameRequest=null,this._render(e)}).catch(()=>{}))}getCameraTargetElevation(){return this.transform.elevation}};const mH=["id","style","rotation","mapInstance","version","mapSize","interactive"];class _H extends vE{constructor(...e){super(...e),I(this,"version",gE.DEFAULT),I(this,"viewport",void 0)}lngLatToCoord(e,r={x:0,y:0,z:0}){const{x:n,y:a}=this.lngLatToMercator(e,0);return[n-r.x,a-r.y]}lngLatToMercator(e,r){const{x:n=0,y:a=0,z:l=0}=_c.fromLngLat(e,r);return{x:n,y:a,z:l}}getModelMatrix(e,r,n,a=[1,1,1],l={x:0,y:0,z:0}){const o=_c.fromLngLat(e,r),p=o.meterInMercatorCoordinateUnits(),m=A3();return ou(m,m,Rs(o.x-l.x,o.y-l.y,o.z||0-l.z)),au(m,m,Rs(p*a[0],-p*a[1],p*a[2])),Dp(m,m,n[0]),Ym(m,m,n[1]),S3(m,m,n[2]),m}init(){var e=this;return bt(function*(){const r=e.config,{id:n="map",style:a="light",rotation:l=0,mapInstance:o,version:p="DEFAULTMAP",mapSize:m=1e4,interactive:v=!0}=r,E=fu(r,mH);e.viewport=new A2,e.version=p,e.simpleMapCoord.setSize(m),p==="SIMPLE"&&E.center&&(E.center=e.simpleMapCoord.unproject(E.center)),o?(e.map=o,e.$mapContainer=e.map.getContainer()):(e.$mapContainer=e.creatMapContainer(n),e.map=new dH(_t({container:e.$mapContainer,bearing:l},E))),e.map.on("load",()=>{e.handleCameraChanged()}),v&&e.map.on("move",e.handleCameraChanged),setTimeout(()=>{e.handleCameraChanged()},100),e.handleCameraChanged()})()}creatMapContainer(e){let r=e;typeof e=="string"&&(r=document.getElementById(e));const n=document.createElement("div");return n.style.cssText+=` +`);const im=-2,wE=22,H1=0,CE=60,U0=85,cH={interactive:!0,bearingSnap:7,scrollZoom:!0,minZoom:im,maxZoom:wE,minPitch:H1,maxPitch:CE,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],zoom:0,bearing:0,pitch:0,renderWorldCopies:!0,fadeDuration:300,clickTolerance:3,pitchWithRotate:!0};let hH=class extends vV{constructor(e){const r=_t(_t({},cH),e);if(r.minZoom!=null&&r.maxZoom!=null&&r.minZoom>r.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(r.minPitch!=null&&r.maxPitch!=null&&r.minPitch>r.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(r.minPitch!=null&&r.minPitchU0)throw new Error(`maxPitch must be less than or equal to ${U0}`);const n=new R2(r.minZoom,r.maxZoom,r.minPitch,r.maxPitch,r.renderWorldCopies);if(super(n,{bearingSnap:r.bearingSnap}),I(this,"_container",void 0),I(this,"_canvasContainer",void 0),I(this,"_interactive",void 0),I(this,"_frameRequest",void 0),I(this,"_loaded",void 0),I(this,"_idleTriggered",!1),I(this,"_fullyLoaded",void 0),I(this,"_trackResize",void 0),I(this,"_resizeObserver",void 0),I(this,"_preserveDrawingBuffer",void 0),I(this,"_failIfMajorPerformanceCaveat",void 0),I(this,"_fadeDuration",void 0),I(this,"_crossSourceCollisions",void 0),I(this,"_crossFadingFactor",1),I(this,"_collectResourceTiming",void 0),I(this,"_renderTaskQueue",new lH),I(this,"_mapId",sV()),I(this,"_removed",void 0),I(this,"_clickTolerance",void 0),I(this,"scrollZoom",void 0),I(this,"boxZoom",void 0),I(this,"dragRotate",void 0),I(this,"dragPan",void 0),I(this,"keyboard",void 0),I(this,"doubleClickZoom",void 0),I(this,"touchZoomRotate",void 0),I(this,"touchPitch",void 0),I(this,"cooperativeGestures",void 0),I(this,"_onMapScroll",a=>{if(a.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}),this._interactive=r.interactive,this._trackResize=r.trackResize===!0,this._bearingSnap=r.bearingSnap,this._fadeDuration=r.fadeDuration,this._clickTolerance=r.clickTolerance,typeof r.container=="string"){if(this._container=document.getElementById(r.container),!this._container)throw new Error(`Container '${r.container}' not found.`)}else if(r.container instanceof HTMLElement)this._container=r.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(r.maxBounds&&this.setMaxBounds(r.maxBounds),this._setupContainer(),this.on("move",()=>this._update()).on("moveend",()=>this._update()).on("zoom",()=>this._update()).once("idle",()=>{this._idleTriggered=!0}),typeof window<"u"){let a=!1;const l=Ko.throttle(o=>{this._trackResize&&!this._removed&&this.resize(o)._update()},50);this._resizeObserver=new ResizeObserver(o=>{if(!a){a=!0;return}l(o)}),this._resizeObserver.observe(this._container)}this.handlers=new sH(this,r),this.jumpTo({center:r.center,zoom:r.zoom,bearing:r.bearing,pitch:r.pitch}),r.bounds&&(this.resize(),this.fitBounds(r.bounds,Vo({},r.fitBoundsOptions,{duration:0}))),this.resize()}_getMapId(){return this._mapId}calculateCameraOptionsFromTo(e,r,n,a){return super.calculateCameraOptionsFromTo(e,r,n,a)}resize(e){var r;const n=this._containerDimensions(),a=n[0],l=n[1];this.transform.resize(a,l),(r=this._requestedCameraState)===null||r===void 0||r.resize(a,l);const o=!this._moving;return o&&(this.stop(),this.fire(new Zn("movestart",e)).fire(new Zn("move",e))),this.fire(new Zn("resize",e)),o&&this.fire(new Zn("moveend",e)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(e){return this.transform.setMaxBounds(e&&Bu.convert(e)),this._update()}setMinZoom(e){if(e=e??im,e>=im&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=e,this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(e){if(e=e??H1,e=H1&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this.getPitch()U0)throw new Error(`maxPitch must be less than or equal to ${U0}`);if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){this.transform.renderWorldCopies=e}project(e){return this.transform.locationPoint(fi.convert(e))}unproject(e){return this.transform.pointLocation(oi.convert(e))}isMoving(){var e;return this._moving||((e=this.handlers)===null||e===void 0?void 0:e.isMoving())}isZooming(){var e;return this._zooming||((e=this.handlers)===null||e===void 0?void 0:e.isZooming())}isRotating(){var e;return this._rotating||((e=this.handlers)===null||e===void 0?void 0:e.isRotating())}on(e,r){return super.on(e,r)}once(e,r){return super.once(e,r)}off(e,r){return super.off(e,r)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}_containerDimensions(){let e=0,r=0;return this._container&&(e=this._container.clientWidth||400,r=this._container.clientHeight||300),[e,r]}_setupContainer(){const e=this._container;e.classList.add("l7-map");const r=this._canvasContainer=fn.create("div","l7-canvas-container",e);this._interactive&&r.classList.add("l7-interactive"),this._container.addEventListener("scroll",this._onMapScroll,!1)}_update(){return this.triggerRepaint(),this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(e){if(this._renderTaskQueue.run(e),!this._removed)return this.fire(new Zn("render")),this.isMoving()||this.fire(new Zn("idle")),this}remove(){var e;this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.handlers.destroy(),delete this.handlers,(e=this._resizeObserver)===null||e===void 0||e.disconnect(),fn.remove(this._canvasContainer),this._container.classList.remove("l7-map"),this._removed=!0,this.fire(new Zn("remove"))}triggerRepaint(){this._frameRequest||(this._frameRequest=new AbortController,hu.frameAsync(this._frameRequest).then(e=>{this._frameRequest=null,this._render(e)}).catch(()=>{}))}getCameraTargetElevation(){return this.transform.elevation}};const fH=["id","style","rotation","mapInstance","version","mapSize","interactive"];class pH extends vE{constructor(...e){super(...e),I(this,"version",gE.DEFAULT),I(this,"viewport",void 0)}lngLatToCoord(e,r={x:0,y:0,z:0}){const{x:n,y:a}=this.lngLatToMercator(e,0);return[n-r.x,a-r.y]}lngLatToMercator(e,r){const{x:n=0,y:a=0,z:l=0}=_c.fromLngLat(e,r);return{x:n,y:a,z:l}}getModelMatrix(e,r,n,a=[1,1,1],l={x:0,y:0,z:0}){const o=_c.fromLngLat(e,r),p=o.meterInMercatorCoordinateUnits(),m=A3();return ou(m,m,Rs(o.x-l.x,o.y-l.y,o.z||0-l.z)),au(m,m,Rs(p*a[0],-p*a[1],p*a[2])),Dp(m,m,n[0]),Km(m,m,n[1]),S3(m,m,n[2]),m}init(){var e=this;return bt(function*(){const r=e.config,{id:n="map",style:a="light",rotation:l=0,mapInstance:o,version:p="DEFAULTMAP",mapSize:m=1e4,interactive:v=!0}=r,E=fu(r,fH);e.viewport=new A2,e.version=p,e.simpleMapCoord.setSize(m),p==="SIMPLE"&&E.center&&(E.center=e.simpleMapCoord.unproject(E.center)),o?(e.map=o,e.$mapContainer=e.map.getContainer()):(e.$mapContainer=e.creatMapContainer(n),e.map=new hH(_t({container:e.$mapContainer,bearing:l},E))),e.map.on("load",()=>{e.handleCameraChanged()}),v&&e.map.on("move",e.handleCameraChanged),setTimeout(()=>{e.handleCameraChanged()},100),e.handleCameraChanged()})()}creatMapContainer(e){let r=e;typeof e=="string"&&(r=document.getElementById(e));const n=document.createElement("div");return n.style.cssText+=` position: absolute; top: 0; height: 100%; width: 100%; - `,r.appendChild(n),n}exportMap(e){return""}setMapStyle(e){}getCanvasOverlays(){return this.getContainer()}}let gH=class extends E2{getServiceConstructor(){return _H}};var RE={exports:{}};(function(t,e){(function(r,n){t.exports=n()})($m,function(){var r,n,a;function l(o,p){if(!r)r=p;else if(!n)n=p;else{var m="var sharedChunk = {}; ("+r+")(sharedChunk); ("+n+")(sharedChunk);",v={};r(v),a=p(v),typeof window<"u"&&(a.workerUrl=window.URL.createObjectURL(new Blob([m],{type:"text/javascript"})))}}return l(["exports"],function(o){function p(i,s){return i(s={exports:{}},s.exports),s.exports}var m=v;function v(i,s,u,d){this.cx=3*i,this.bx=3*(u-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*s,this.by=3*(d-s)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=d,this.p2x=u,this.p2y=d}v.prototype.sampleCurveX=function(i){return((this.ax*i+this.bx)*i+this.cx)*i},v.prototype.sampleCurveY=function(i){return((this.ay*i+this.by)*i+this.cy)*i},v.prototype.sampleCurveDerivativeX=function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},v.prototype.solveCurveX=function(i,s){var u,d,g,y,T;for(s===void 0&&(s=1e-6),g=i,T=0;T<8;T++){if(y=this.sampleCurveX(g)-i,Math.abs(y)(d=1))return d;for(;uy?u=g:d=g,g=.5*(d-u)+u}return g},v.prototype.solve=function(i,s){return this.sampleCurveY(this.solveCurveX(i,s))};var E=b;function b(i,s){this.x=i,this.y=s}b.prototype={clone:function(){return new b(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,s){return this.clone()._rotateAround(i,s)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var s=i.x-this.x,u=i.y-this.y;return s*s+u*u},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,s){return Math.atan2(this.x*s-this.y*i,this.x*i+this.y*s)},_matMult:function(i){var s=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=s,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var s=Math.cos(i),u=Math.sin(i),d=u*this.x+s*this.y;return this.x=s*this.x-u*this.y,this.y=d,this},_rotateAround:function(i,s){var u=Math.cos(i),d=Math.sin(i),g=s.y+d*(this.x-s.x)+u*(this.y-s.y);return this.x=s.x+u*(this.x-s.x)-d*(this.y-s.y),this.y=g,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},b.convert=function(i){return i instanceof b?i:Array.isArray(i)?new b(i[0],i[1]):i};var A=typeof self<"u"?self:{},R=Math.pow(2,53)-1;function O(i,s,u,d){var g=new m(i,s,u,d);return function(y){return g.solve(y)}}var D=O(.25,.1,.25,1);function N(i,s,u){return Math.min(u,Math.max(s,i))}function W(i,s,u){var d=u-s,g=((i-s)%d+d)%d+s;return g===s?u:g}function G(i){for(var s=[],u=arguments.length-1;u-- >0;)s[u]=arguments[u+1];for(var d=0,g=s;d>s/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,i)}()}function Se(i){return!!i&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(i)}function ce(i,s){i.forEach(function(u){s[u]&&(s[u]=s[u].bind(s))})}function ke(i,s){return i.indexOf(s,i.length-s.length)!==-1}function ct(i,s,u){var d={};for(var g in i)d[g]=s.call(u||this,i[g],g,i);return d}function Ve(i,s,u){var d={};for(var g in i)s.call(u||this,i[g],g,i)&&(d[g]=i[g]);return d}function Te(i){return Array.isArray(i)?i.map(Te):typeof i=="object"&&i?ct(i,Te):i}var Fe={};function He(i){Fe[i]||(typeof console<"u"&&console.warn(i),Fe[i]=!0)}function nt(i,s,u){return(u.y-i.y)*(s.x-i.x)>(s.y-i.y)*(u.x-i.x)}function Ut(i){for(var s=0,u=0,d=i.length,g=d-1,y=void 0,T=void 0;u@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(d,g,y,T){var C=y||T;return s[g]=!C||C.toLowerCase(),""}),s["max-age"]){var u=parseInt(s["max-age"],10);isNaN(u)?delete s["max-age"]:s["max-age"]=u}return s}var Or=null;function mr(i){if(Or==null){var s=i.navigator?i.navigator.userAgent:null;Or=!!i.safari||!(!s||!(/\b(iPad|iPhone|iPod)\b/.test(s)||s.match("Safari")&&!s.match("Chrome")))}return Or}function yr(i){try{var s=A[i];return s.setItem("_mapbox_test_",1),s.removeItem("_mapbox_test_"),!0}catch{return!1}}var Yr,Jr,vn,Rn,nn=A.performance&&A.performance.now?A.performance.now.bind(A.performance):Date.now.bind(Date),Yi=A.requestAnimationFrame||A.mozRequestAnimationFrame||A.webkitRequestAnimationFrame||A.msRequestAnimationFrame,An=A.cancelAnimationFrame||A.mozCancelAnimationFrame||A.webkitCancelAnimationFrame||A.msCancelAnimationFrame,Ni={now:nn,frame:function(i){var s=Yi(i);return{cancel:function(){return An(s)}}},getImageData:function(i,s){s===void 0&&(s=0);var u=A.document.createElement("canvas"),d=u.getContext("2d");if(!d)throw new Error("failed to create canvas 2d context");return u.width=i.width,u.height=i.height,d.drawImage(i,0,0,i.width,i.height),d.getImageData(-s,-s,i.width+2*s,i.height+2*s)},resolveURL:function(i){return Yr||(Yr=A.document.createElement("a")),Yr.href=i,Yr.href},hardwareConcurrency:A.navigator&&A.navigator.hardwareConcurrency||4,get devicePixelRatio(){return A.devicePixelRatio},get prefersReducedMotion(){return!!A.matchMedia&&(Jr==null&&(Jr=A.matchMedia("(prefers-reduced-motion: reduce)")),Jr.matches)}},qe={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Yt={supported:!1,testSupport:function(i){!wr&&Rn&&(St?Er(i):vn=i)}},wr=!1,St=!1;function Er(i){var s=i.createTexture();i.bindTexture(i.TEXTURE_2D,s);try{if(i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,Rn),i.isContextLost())return;Yt.supported=!0}catch{}i.deleteTexture(s),wr=!0}A.document&&((Rn=A.document.createElement("img")).onload=function(){vn&&Er(vn),vn=null,St=!0},Rn.onerror=function(){wr=!0,vn=null},Rn.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var on="01",yn=function(i,s){this._transformRequestFn=i,this._customAccessToken=s,this._createSkuToken()};function tn(i){return i.indexOf("mapbox:")===0}yn.prototype._createSkuToken=function(){var i=function(){for(var s="",u=0;u<10;u++)s+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",on,s].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=i.token,this._skuTokenExpiresAt=i.tokenExpiresAt},yn.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},yn.prototype.transformRequest=function(i,s){return this._transformRequestFn&&this._transformRequestFn(i,s)||{url:i}},yn.prototype.normalizeStyleURL=function(i,s){if(!tn(i))return i;var u=ei(i);return u.path="/styles/v1"+u.path,this._makeAPIURL(u,this._customAccessToken||s)},yn.prototype.normalizeGlyphsURL=function(i,s){if(!tn(i))return i;var u=ei(i);return u.path="/fonts/v1"+u.path,this._makeAPIURL(u,this._customAccessToken||s)},yn.prototype.normalizeSourceURL=function(i,s){if(!tn(i))return i;var u=ei(i);return u.path="/v4/"+u.authority+".json",u.params.push("secure"),this._makeAPIURL(u,this._customAccessToken||s)},yn.prototype.normalizeSpriteURL=function(i,s,u,d){var g=ei(i);return tn(i)?(g.path="/styles/v1"+g.path+"/sprite"+s+u,this._makeAPIURL(g,this._customAccessToken||d)):(g.path+=""+s+u,ni(g))},yn.prototype.normalizeTileURL=function(i,s){if(this._isSkuTokenExpired()&&this._createSkuToken(),i&&!tn(i))return i;var u=ei(i);u.path=u.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Ni.devicePixelRatio>=2||s===512?"@2x":"")+(Yt.supported?".webp":"$1")),u.path=u.path.replace(/^.+\/v4\//,"/"),u.path="/v4"+u.path;var d=this._customAccessToken||function(g){for(var y=0,T=g;y=0&&i.params.splice(g,1)}if(d.path!=="/"&&(i.path=""+d.path+i.path),!qe.REQUIRE_ACCESS_TOKEN)return ni(i);if(!(s=s||qe.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+u);if(s[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+u);return i.params=i.params.filter(function(y){return y.indexOf("access_token")===-1}),i.params.push("access_token="+s),ni(i)};var Kr=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Sn(i){return Kr.test(i)}var eo=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ei(i){var s=i.match(eo);if(!s)throw new Error("Unable to parse URL object");return{protocol:s[1],authority:s[2],path:s[3]||"/",params:s[4]?s[4].split("&"):[]}}function ni(i){var s=i.params.length?"?"+i.params.join("&"):"";return i.protocol+"://"+i.authority+i.path+s}function Ro(i){if(!i)return null;var s=i.split(".");if(!s||s.length!==3)return null;try{return JSON.parse(decodeURIComponent(A.atob(s[1]).split("").map(function(u){return"%"+("00"+u.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch{return null}}var le=function(i){this.type=i,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};le.prototype.getStorageKey=function(i){var s,u=Ro(qe.ACCESS_TOKEN);return s=u&&u.u?A.btoa(encodeURIComponent(u.u).replace(/%([0-9A-F]{2})/g,function(d,g){return String.fromCharCode(+("0x"+g))})):qe.ACCESS_TOKEN||"",i?"mapbox.eventData."+i+":"+s:"mapbox.eventData:"+s},le.prototype.fetchEventData=function(){var i=yr("localStorage"),s=this.getStorageKey(),u=this.getStorageKey("uuid");if(i)try{var d=A.localStorage.getItem(s);d&&(this.eventData=JSON.parse(d));var g=A.localStorage.getItem(u);g&&(this.anonId=g)}catch{He("Unable to read from LocalStorage")}},le.prototype.saveEventData=function(){var i=yr("localStorage"),s=this.getStorageKey(),u=this.getStorageKey("uuid");if(i)try{A.localStorage.setItem(u,this.anonId),Object.keys(this.eventData).length>=1&&A.localStorage.setItem(s,JSON.stringify(this.eventData))}catch{He("Unable to write to LocalStorage")}},le.prototype.processRequests=function(i){},le.prototype.postEvent=function(i,s,u,d){var g=this;if(qe.EVENTS_URL){var y=ei(qe.EVENTS_URL);y.params.push("access_token="+(d||qe.ACCESS_TOKEN||""));var T={event:this.type,created:new Date(i).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:on,userId:this.anonId},C=s?G(T,s):T,P={url:ni(y),headers:{"Content-Type":"text/plain"},body:JSON.stringify([C])};this.pendingRequest=Xn(P,function(L){g.pendingRequest=null,u(L),g.saveEventData(),g.processRequests(d)})}},le.prototype.queueRequest=function(i,s){this.queue.push(i),this.processRequests(s)};var Io,ts,Mo=function(i){function s(){i.call(this,"map.load"),this.success={},this.skuToken=""}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.postMapLoadEvent=function(u,d,g,y){this.skuToken=g;var T=!(!y&&!qe.ACCESS_TOKEN),C=Array.isArray(u)&&u.some(function(P){return tn(P)||Sn(P)});qe.EVENTS_URL&&T&&C&&this.queueRequest({id:d,timestamp:Date.now()},y)},s.prototype.processRequests=function(u){var d=this;if(!this.pendingRequest&&this.queue.length!==0){var g=this.queue.shift(),y=g.id,T=g.timestamp;y&&this.success[y]||(this.anonId||this.fetchEventData(),Se(this.anonId)||(this.anonId=J()),this.postEvent(T,{skuToken:this.skuToken},function(C){C||y&&(d.success[y]=!0)},u))}},s}(le),vs=new(function(i){function s(u){i.call(this,"appUserTurnstile"),this._customAccessToken=u}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.postTurnstileEvent=function(u,d){qe.EVENTS_URL&&qe.ACCESS_TOKEN&&Array.isArray(u)&&u.some(function(g){return tn(g)||Sn(g)})&&this.queueRequest(Date.now(),d)},s.prototype.processRequests=function(u){var d=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var g=Ro(qe.ACCESS_TOKEN),y=g?g.u:qe.ACCESS_TOKEN,T=y!==this.eventData.tokenU;Se(this.anonId)||(this.anonId=J(),T=!0);var C=this.queue.shift();if(this.eventData.lastSuccess){var P=new Date(this.eventData.lastSuccess),L=new Date(C),k=(C-this.eventData.lastSuccess)/864e5;T=T||k>=1||k<-1||P.getDate()!==L.getDate()}else T=!0;if(!T)return this.processRequests();this.postEvent(C,{"enabled.telemetry":!1},function(U){U||(d.eventData.lastSuccess=C,d.eventData.tokenU=y)},u)}},s}(le)),ci=vs.postTurnstileEvent.bind(vs),Po=new Mo,ga=Po.postMapLoadEvent.bind(Po),Oo=500,Ls=50;function Wi(){A.caches&&!Io&&(Io=A.caches.open("mapbox-tiles"))}function ys(i){var s=i.indexOf("?");return s<0?i:i.slice(0,s)}var Ma,il=1/0;function du(){return Ma==null&&(Ma=A.OffscreenCanvas&&new A.OffscreenCanvas(1,1).getContext("2d")&&typeof A.createImageBitmap=="function"),Ma}var ol={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(ol);var Vu=function(i){function s(u,d,g){d===401&&Sn(g)&&(u+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),i.call(this,u),this.status=d,this.url=g,this.name=this.constructor.name,this.message=u}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},s}(Error),al=$t()?function(){return self.worker&&self.worker.referrer}:function(){return(A.location.protocol==="blob:"?A.parent:A).location.href},ja,Xa,Ds=function(i,s){if(!(/^file:/.test(u=i.url)||/^file:/.test(al())&&!/^\w+:/.test(u))){if(A.fetch&&A.Request&&A.AbortController&&A.Request.prototype.hasOwnProperty("signal"))return function(d,g){var y,T=new A.AbortController,C=new A.Request(d.url,{method:d.method||"GET",body:d.body,credentials:d.credentials,headers:d.headers,referrer:al(),signal:T.signal}),P=!1,L=!1,k=(y=C.url).indexOf("sku=")>0&&Sn(y);d.type==="json"&&C.headers.set("Accept","application/json");var U=function(K,fe,me){if(!L){if(K&&K.message!=="SecurityError"&&He(K),fe&&me)return X(fe);var Me=Date.now();A.fetch(C).then(function(Ae){if(Ae.ok){var je=k?Ae.clone():null;return X(Ae,je,Me)}return g(new Vu(Ae.statusText,Ae.status,d.url))}).catch(function(Ae){Ae.code!==20&&g(new Error(Ae.message))})}},X=function(K,fe,me){(d.type==="arrayBuffer"?K.arrayBuffer():d.type==="json"?K.json():K.text()).then(function(Me){L||(fe&&me&&function(Ae,je,Ze){if(Wi(),Io){var ot={status:je.status,statusText:je.statusText,headers:new A.Headers};je.headers.forEach(function(yt,zt){return ot.headers.set(zt,yt)});var lt=Ht(je.headers.get("Cache-Control")||"");lt["no-store"]||(lt["max-age"]&&ot.headers.set("Expires",new Date(Ze+1e3*lt["max-age"]).toUTCString()),new Date(ot.headers.get("Expires")).getTime()-Ze<42e4||function(yt,zt){if(ts===void 0)try{new Response(new ReadableStream),ts=!0}catch{ts=!1}ts?zt(yt.body):yt.blob().then(zt)}(je,function(yt){var zt=new A.Response(yt,ot);Wi(),Io&&Io.then(function(Qt){return Qt.put(ys(Ae.url),zt)}).catch(function(Qt){return He(Qt.message)})}))}}(C,fe,me),P=!0,g(null,Me,K.headers.get("Cache-Control"),K.headers.get("Expires")))}).catch(function(Me){L||g(new Error(Me.message))})};return k?function(K,fe){if(Wi(),!Io)return fe(null);var me=ys(K.url);Io.then(function(Me){Me.match(me).then(function(Ae){var je=function(Ze){if(!Ze)return!1;var ot=new Date(Ze.headers.get("Expires")||0),lt=Ht(Ze.headers.get("Cache-Control")||"");return ot>Date.now()&&!lt["no-cache"]}(Ae);Me.delete(me),je&&Me.put(me,Ae.clone()),fe(null,Ae,je)}).catch(fe)}).catch(fe)}(C,U):U(null,null),{cancel:function(){L=!0,P||T.abort()}}}(i,s);if($t()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,s,void 0,!0)}var u;return function(d,g){var y=new A.XMLHttpRequest;for(var T in y.open(d.method||"GET",d.url,!0),d.type==="arrayBuffer"&&(y.responseType="arraybuffer"),d.headers)y.setRequestHeader(T,d.headers[T]);return d.type==="json"&&(y.responseType="text",y.setRequestHeader("Accept","application/json")),y.withCredentials=d.credentials==="include",y.onerror=function(){g(new Error(y.statusText))},y.onload=function(){if((y.status>=200&&y.status<300||y.status===0)&&y.response!==null){var C=y.response;if(d.type==="json")try{C=JSON.parse(y.response)}catch(P){return g(P)}g(null,C,y.getResponseHeader("Cache-Control"),y.getResponseHeader("Expires"))}else g(new Vu(y.statusText,y.status,d.url))},y.send(d.body),{cancel:function(){return y.abort()}}}(i,s)},mu=function(i,s){return Ds(G(i,{type:"arrayBuffer"}),s)},Xn=function(i,s){return Ds(G(i,{method:"POST"}),s)},z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";ja=[],Xa=0;var j=function(i,s){if(Yt.supported&&(i.headers||(i.headers={}),i.headers.accept="image/webp,*/*"),Xa>=qe.MAX_PARALLEL_IMAGE_REQUESTS){var u={requestParameters:i,callback:s,cancelled:!1,cancel:function(){this.cancelled=!0}};return ja.push(u),u}Xa++;var d=!1,g=function(){if(!d)for(d=!0,Xa--;ja.length&&Xa0||this._oneTimeListeners&&this._oneTimeListeners[i]&&this._oneTimeListeners[i].length>0||this._eventedParent&&this._eventedParent.listens(i)},Ne.prototype.setEventedParent=function(i,s){return this._eventedParent=i,this._eventedParentData=s,this};var te={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},ye=function(i,s,u,d){this.message=(i?i+": ":"")+u,d&&(this.identifier=d),s!=null&&s.__line__&&(this.line=s.__line__)};function We(i){var s=i.value;return s?[new ye(i.key,s,"constants have been deprecated as of v8")]:[]}function mt(i){for(var s=[],u=arguments.length-1;u-- >0;)s[u]=arguments[u+1];for(var d=0,g=s;d":i.itemType.kind==="value"?"array":"array<"+s+">"}return i.kind}var Gi=[dr,pt,or,Gt,qt,ti,an,Ln(rr),xn];function In(i,s){if(s.kind==="error")return null;if(i.kind==="array"){if(s.kind==="array"&&(s.N===0&&s.itemType.kind==="value"||!In(i.itemType,s.itemType))&&(typeof i.N!="number"||i.N===s.N))return null}else{if(i.kind===s.kind)return null;if(i.kind==="value"){for(var u=0,d=Gi;u255?255:C}function g(C){return d(C[C.length-1]==="%"?parseFloat(C)/100*255:parseInt(C))}function y(C){return(P=C[C.length-1]==="%"?parseFloat(C)/100:parseFloat(C))<0?0:P>1?1:P;var P}function T(C,P,L){return L<0?L+=1:L>1&&(L-=1),6*L<1?C+(P-C)*L*6:2*L<1?P:3*L<2?C+(P-C)*(2/3-L)*6:C}try{s.parseCSSColor=function(C){var P,L=C.replace(/ /g,"").toLowerCase();if(L in u)return u[L].slice();if(L[0]==="#")return L.length===4?(P=parseInt(L.substr(1),16))>=0&&P<=4095?[(3840&P)>>4|(3840&P)>>8,240&P|(240&P)>>4,15&P|(15&P)<<4,1]:null:L.length===7&&(P=parseInt(L.substr(1),16))>=0&&P<=16777215?[(16711680&P)>>16,(65280&P)>>8,255&P,1]:null;var k=L.indexOf("("),U=L.indexOf(")");if(k!==-1&&U+1===L.length){var X=L.substr(0,k),K=L.substr(k+1,U-(k+1)).split(","),fe=1;switch(X){case"rgba":if(K.length!==4)return null;fe=y(K.pop());case"rgb":return K.length!==3?null:[g(K[0]),g(K[1]),g(K[2]),fe];case"hsla":if(K.length!==4)return null;fe=y(K.pop());case"hsl":if(K.length!==3)return null;var me=(parseFloat(K[0])%360+360)%360/360,Me=y(K[1]),Ae=y(K[2]),je=Ae<=.5?Ae*(Me+1):Ae+Me-Ae*Me,Ze=2*Ae-je;return[d(255*T(Ze,je,me+1/3)),d(255*T(Ze,je,me)),d(255*T(Ze,je,me-1/3)),fe];default:return null}}return null}}catch{}}).parseCSSColor,bn=function(i,s,u,d){d===void 0&&(d=1),this.r=i,this.g=s,this.b=u,this.a=d};bn.parse=function(i){if(i){if(i instanceof bn)return i;if(typeof i=="string"){var s=ln(i);if(s)return new bn(s[0]/255*s[3],s[1]/255*s[3],s[2]/255*s[3],s[3])}}},bn.prototype.toString=function(){var i=this.toArray(),s=i[1],u=i[2],d=i[3];return"rgba("+Math.round(i[0])+","+Math.round(s)+","+Math.round(u)+","+d+")"},bn.prototype.toArray=function(){var i=this.a;return i===0?[0,0,0,0]:[255*this.r/i,255*this.g/i,255*this.b/i,i]},bn.black=new bn(0,0,0,1),bn.white=new bn(1,1,1,1),bn.transparent=new bn(0,0,0,0),bn.red=new bn(1,0,0,1);var jo=function(i,s,u){this.sensitivity=i?s?"variant":"case":s?"accent":"base",this.locale=u,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};jo.prototype.compare=function(i,s){return this.collator.compare(i,s)},jo.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Rl=function(i,s,u,d,g){this.text=i,this.image=s,this.scale=u,this.fontStack=d,this.textColor=g},ki=function(i){this.sections=i};ki.fromString=function(i){return new ki([new Rl(i,null,null,null,null)])},ki.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(i){return i.text.length!==0||i.image&&i.image.name.length!==0})},ki.factory=function(i){return i instanceof ki?i:ki.fromString(i)},ki.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(i){return i.text}).join("")},ki.prototype.serialize=function(){for(var i=["format"],s=0,u=this.sections;s=0&&i<=255&&typeof s=="number"&&s>=0&&s<=255&&typeof u=="number"&&u>=0&&u<=255?d===void 0||typeof d=="number"&&d>=0&&d<=1?null:"Invalid rgba value ["+[i,s,u,d].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof d=="number"?[i,s,u,d]:[i,s,u]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function rs(i){if(i===null||typeof i=="string"||typeof i=="boolean"||typeof i=="number"||i instanceof bn||i instanceof jo||i instanceof ki||i instanceof Ei)return!0;if(Array.isArray(i)){for(var s=0,u=i;s2){var C=i[1];if(typeof C!="string"||!(C in Ui)||C==="object")return s.error('The item type argument of "array" must be one of string, number, boolean',1);y=Ui[C],d++}else y=rr;if(i.length>3){if(i[2]!==null&&(typeof i[2]!="number"||i[2]<0||i[2]!==Math.floor(i[2])))return s.error('The length argument to "array" must be a positive integer literal',2);T=i[2],d++}u=Ln(y,T)}else u=Ui[g];for(var P=[];d1)&&s.push(d)}}return s.concat(this.args.map(function(g){return g.serialize()}))};var aa=function(i){this.type=ti,this.sections=i};aa.parse=function(i,s){if(i.length<2)return s.error("Expected at least one argument.");var u=i[1];if(!Array.isArray(u)&&typeof u=="object")return s.error("First argument must be an image or text section.");for(var d=[],g=!1,y=1;y<=i.length-1;++y){var T=i[y];if(g&&typeof T=="object"&&!Array.isArray(T)){g=!1;var C=null;if(T["font-scale"]&&!(C=s.parse(T["font-scale"],1,pt)))return null;var P=null;if(T["text-font"]&&!(P=s.parse(T["text-font"],1,Ln(or))))return null;var L=null;if(T["text-color"]&&!(L=s.parse(T["text-color"],1,qt)))return null;var k=d[d.length-1];k.scale=C,k.font=P,k.textColor=L}else{var U=s.parse(i[y],1,rr);if(!U)return null;var X=U.type.kind;if(X!=="string"&&X!=="value"&&X!=="null"&&X!=="resolvedImage")return s.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");g=!0,d.push({content:U,scale:null,font:null,textColor:null})}}return new aa(d)},aa.prototype.evaluate=function(i){return new ki(this.sections.map(function(s){var u=s.content.evaluate(i);return vi(u)===xn?new Rl("",u,null,null,null):new Rl(sl(u),null,s.scale?s.scale.evaluate(i):null,s.font?s.font.evaluate(i).join(","):null,s.textColor?s.textColor.evaluate(i):null)}))},aa.prototype.eachChild=function(i){for(var s=0,u=this.sections;s-1),u},Qo.prototype.eachChild=function(i){i(this.input)},Qo.prototype.outputDefined=function(){return!1},Qo.prototype.serialize=function(){return["image",this.input.serialize()]};var yc={"to-boolean":Gt,"to-color":qt,"to-number":pt,"to-string":or},Pa=function(i,s){this.type=i,this.args=s};Pa.parse=function(i,s){if(i.length<2)return s.error("Expected at least one argument.");var u=i[0];if((u==="to-boolean"||u==="to-string")&&i.length!==2)return s.error("Expected one argument.");for(var d=yc[u],g=[],y=1;y4?"Invalid rbga value "+JSON.stringify(s)+": expected an array containing either three or four numeric values.":Il(s[0],s[1],s[2],s[3])))return new bn(s[0]/255,s[1]/255,s[2]/255,s[3])}throw new yi(u||"Could not parse color from value '"+(typeof s=="string"?s:String(JSON.stringify(s)))+"'")}if(this.type.kind==="number"){for(var T=null,C=0,P=this.args;C=s[2]||i[1]<=s[1]||i[3]>=s[3])}function Cr(i,s){var u=(180+i[0])/360,d=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,g=Math.pow(2,s.z);return[Math.round(u*g*8192),Math.round(d*g*8192)]}function Fn(i,s,u){return s[1]>i[1]!=u[1]>i[1]&&i[0]<(u[0]-s[0])*(i[1]-s[1])/(u[1]-s[1])+s[0]}function Ki(i,s){for(var u,d,g,y,T,C,P,L=!1,k=0,U=s.length;k0&&C<0||T<0&&C>0}function ns(i,s,u){for(var d=0,g=u;du[2]){var g=.5*d,y=i[0]-u[0]>g?-d:u[0]-i[0]>g?d:0;y===0&&(y=i[0]-u[2]>g?-d:u[2]-i[0]>g?d:0),i[0]+=y}tt(s,i)}function cf(i,s,u,d){for(var g=8192*Math.pow(2,d.z),y=[8192*d.x,8192*d.y],T=[],C=0,P=i;C=0)return!1;var u=!0;return i.eachChild(function(d){u&&!Bs(d,s)&&(u=!1)}),u}Xo.parse=function(i,s){if(i.length!==2)return s.error("'within' expression requires exactly one argument, but found "+(i.length-1)+" instead.");if(rs(i[1])){var u=i[1];if(u.type==="FeatureCollection")for(var d=0;ds))throw new yi("Input is not a number.");y=T-1}return 0}ll.prototype.parse=function(i,s,u,d,g){return g===void 0&&(g={}),s?this.concat(s,u,d)._parse(i,g):this._parse(i,g)},ll.prototype._parse=function(i,s){function u(L,k,U){return U==="assert"?new hi(k,[L]):U==="coerce"?new Pa(k,[L]):L}if(i!==null&&typeof i!="string"&&typeof i!="boolean"&&typeof i!="number"||(i=["literal",i]),Array.isArray(i)){if(i.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var d=i[0];if(typeof d!="string")return this.error("Expression name must be a string, but found "+typeof d+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var g=this.registry[d];if(g){var y=g.parse(i,this);if(!y)return null;if(this.expectedType){var T=this.expectedType,C=y.type;if(T.kind!=="string"&&T.kind!=="number"&&T.kind!=="boolean"&&T.kind!=="object"&&T.kind!=="array"||C.kind!=="value")if(T.kind!=="color"&&T.kind!=="formatted"&&T.kind!=="resolvedImage"||C.kind!=="value"&&C.kind!=="string"){if(this.checkSubtype(T,C))return null}else y=u(y,T,s.typeAnnotation||"coerce");else y=u(y,T,s.typeAnnotation||"assert")}if(!(y instanceof mo)&&y.type.kind!=="resolvedImage"&&function L(k){if(k instanceof Fs)return L(k.boundExpression);if(k instanceof ie&&k.name==="error"||k instanceof Ie||k instanceof Xo)return!1;var U=k instanceof Pa||k instanceof hi,X=!0;return k.eachChild(function(K){X=U?X&&L(K):X&&K instanceof mo}),!!X&&Ml(k)&&Bs(k,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(y)){var P=new $;try{y=new mo(y.type,y.evaluate(P))}catch(L){return this.error(L.message),null}}return y}return this.error('Unknown expression "'+d+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(i===void 0?"'undefined' value invalid. Use null instead.":typeof i=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof i+" instead.")},ll.prototype.concat=function(i,s,u){var d=typeof i=="number"?this.path.concat(i):this.path,g=u?this.scope.concat(u):this.scope;return new ll(this.registry,d,s||null,g,this.errors)},ll.prototype.error=function(i){for(var s=[],u=arguments.length-1;u-- >0;)s[u]=arguments[u+1];var d=""+this.key+s.map(function(g){return"["+g+"]"}).join("");this.errors.push(new Rt(d,i))},ll.prototype.checkSubtype=function(i,s){var u=In(i,s);return u&&this.error(u),u};var Oa=function(i,s,u){this.type=i,this.input=s,this.labels=[],this.outputs=[];for(var d=0,g=u;d=T)return s.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',P);var k=s.parse(C,L,g);if(!k)return null;g=g||k.type,d.push([T,k])}return new Oa(g,u,d)},Oa.prototype.evaluate=function(i){var s=this.labels,u=this.outputs;if(s.length===1)return u[0].evaluate(i);var d=this.input.evaluate(i);if(d<=s[0])return u[0].evaluate(i);var g=s.length;return d>=s[g-1]?u[g-1].evaluate(i):u[bc(s,d)].evaluate(i)},Oa.prototype.eachChild=function(i){i(this.input);for(var s=0,u=this.outputs;s0&&i.push(this.labels[s]),i.push(this.outputs[s].serialize());return i};var Ol=Object.freeze({__proto__:null,number:zi,color:function(i,s,u){return new bn(zi(i.r,s.r,u),zi(i.g,s.g,u),zi(i.b,s.b,u),zi(i.a,s.a,u))},array:function(i,s,u){return i.map(function(d,g){return zi(d,s[g],u)})}}),ul=6/29*3*(6/29),o1=Math.PI/180,hf=180/Math.PI;function a1(i){return i>.008856451679035631?Math.pow(i,1/3):i/ul+4/29}function sh(i){return i>6/29?i*i*i:ul*(i-4/29)}function lh(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function uh(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function ff(i){var s=uh(i.r),u=uh(i.g),d=uh(i.b),g=a1((.4124564*s+.3575761*u+.1804375*d)/.95047),y=a1((.2126729*s+.7151522*u+.072175*d)/1);return{l:116*y-16,a:500*(g-y),b:200*(y-a1((.0193339*s+.119192*u+.9503041*d)/1.08883)),alpha:i.a}}function pf(i){var s=(i.l+16)/116,u=isNaN(i.a)?s:s+i.a/500,d=isNaN(i.b)?s:s-i.b/200;return s=1*sh(s),u=.95047*sh(u),d=1.08883*sh(d),new bn(lh(3.2404542*u-1.5371385*s-.4985314*d),lh(-.969266*u+1.8760108*s+.041556*d),lh(.0556434*u-.2040259*s+1.0572252*d),i.alpha)}function kp(i,s,u){var d=s-i;return i+u*(d>180||d<-180?d-360*Math.round(d/360):d)}var Ec={forward:ff,reverse:pf,interpolate:function(i,s,u){return{l:zi(i.l,s.l,u),a:zi(i.a,s.a,u),b:zi(i.b,s.b,u),alpha:zi(i.alpha,s.alpha,u)}}},Ns={forward:function(i){var s=ff(i),u=s.l,d=s.a,g=s.b,y=Math.atan2(g,d)*hf;return{h:y<0?y+360:y,c:Math.sqrt(d*d+g*g),l:u,alpha:i.a}},reverse:function(i){var s=i.h*o1,u=i.c;return pf({l:i.l,a:Math.cos(s)*u,b:Math.sin(s)*u,alpha:i.alpha})},interpolate:function(i,s,u){return{h:kp(i.h,s.h,u),c:zi(i.c,s.c,u),l:zi(i.l,s.l,u),alpha:zi(i.alpha,s.alpha,u)}}},df=Object.freeze({__proto__:null,lab:Ec,hcl:Ns}),Wo=function(i,s,u,d,g){this.type=i,this.operator=s,this.interpolation=u,this.input=d,this.labels=[],this.outputs=[];for(var y=0,T=g;y1}))return s.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);d={name:"cubic-bezier",controlPoints:C}}if(i.length-1<4)return s.error("Expected at least 4 arguments, but found only "+(i.length-1)+".");if((i.length-1)%2!=0)return s.error("Expected an even number of arguments.");if(!(g=s.parse(g,2,pt)))return null;var P=[],L=null;u==="interpolate-hcl"||u==="interpolate-lab"?L=qt:s.expectedType&&s.expectedType.kind!=="value"&&(L=s.expectedType);for(var k=0;k=U)return s.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',K);var me=s.parse(X,fe,L);if(!me)return null;L=L||me.type,P.push([U,me])}return L.kind==="number"||L.kind==="color"||L.kind==="array"&&L.itemType.kind==="number"&&typeof L.N=="number"?new Wo(L,u,d,g,P):s.error("Type "+sn(L)+" is not interpolatable.")},Wo.prototype.evaluate=function(i){var s=this.labels,u=this.outputs;if(s.length===1)return u[0].evaluate(i);var d=this.input.evaluate(i);if(d<=s[0])return u[0].evaluate(i);var g=s.length;if(d>=s[g-1])return u[g-1].evaluate(i);var y=bc(s,d),T=Wo.interpolationFactor(this.interpolation,d,s[y],s[y+1]),C=u[y].evaluate(i),P=u[y+1].evaluate(i);return this.operator==="interpolate"?Ol[this.type.kind.toLowerCase()](C,P,T):this.operator==="interpolate-hcl"?Ns.reverse(Ns.interpolate(Ns.forward(C),Ns.forward(P),T)):Ec.reverse(Ec.interpolate(Ec.forward(C),Ec.forward(P),T))},Wo.prototype.eachChild=function(i){i(this.input);for(var s=0,u=this.outputs;s=u.length)throw new yi("Array index out of bounds: "+s+" > "+(u.length-1)+".");if(s!==Math.floor(s))throw new yi("Array index must be an integer, but found "+s+" instead.");return u[s]},Dl.prototype.eachChild=function(i){i(this.index),i(this.input)},Dl.prototype.outputDefined=function(){return!1},Dl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var is=function(i,s){this.type=Gt,this.needle=i,this.haystack=s};is.parse=function(i,s){if(i.length!==3)return s.error("Expected 2 arguments, but found "+(i.length-1)+" instead.");var u=s.parse(i[1],1,rr),d=s.parse(i[2],2,rr);return u&&d?ri(u.type,[Gt,or,pt,dr,rr])?new is(u,d):s.error("Expected first argument to be of type boolean, string, number or null, but found "+sn(u.type)+" instead"):null},is.prototype.evaluate=function(i){var s=this.needle.evaluate(i),u=this.haystack.evaluate(i);if(!u)return!1;if(!zn(s,["boolean","string","number","null"]))throw new yi("Expected first argument to be of type boolean, string, number or null, but found "+sn(vi(s))+" instead.");if(!zn(u,["string","array"]))throw new yi("Expected second argument to be of type array or string, but found "+sn(vi(u))+" instead.");return u.indexOf(s)>=0},is.prototype.eachChild=function(i){i(this.needle),i(this.haystack)},is.prototype.outputDefined=function(){return!0},is.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var cl=function(i,s,u){this.type=pt,this.needle=i,this.haystack=s,this.fromIndex=u};cl.parse=function(i,s){if(i.length<=2||i.length>=5)return s.error("Expected 3 or 4 arguments, but found "+(i.length-1)+" instead.");var u=s.parse(i[1],1,rr),d=s.parse(i[2],2,rr);if(!u||!d)return null;if(!ri(u.type,[Gt,or,pt,dr,rr]))return s.error("Expected first argument to be of type boolean, string, number or null, but found "+sn(u.type)+" instead");if(i.length===4){var g=s.parse(i[3],3,pt);return g?new cl(u,d,g):null}return new cl(u,d)},cl.prototype.evaluate=function(i){var s=this.needle.evaluate(i),u=this.haystack.evaluate(i);if(!zn(s,["boolean","string","number","null"]))throw new yi("Expected first argument to be of type boolean, string, number or null, but found "+sn(vi(s))+" instead.");if(!zn(u,["string","array"]))throw new yi("Expected second argument to be of type array or string, but found "+sn(vi(u))+" instead.");if(this.fromIndex){var d=this.fromIndex.evaluate(i);return u.indexOf(s,d)}return u.indexOf(s)},cl.prototype.eachChild=function(i){i(this.needle),i(this.haystack),this.fromIndex&&i(this.fromIndex)},cl.prototype.outputDefined=function(){return!1},cl.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var i=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),i]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Ga=function(i,s,u,d,g,y){this.inputType=i,this.type=s,this.input=u,this.cases=d,this.outputs=g,this.otherwise=y};Ga.parse=function(i,s){if(i.length<5)return s.error("Expected at least 4 arguments, but found only "+(i.length-1)+".");if(i.length%2!=1)return s.error("Expected an even number of arguments.");var u,d;s.expectedType&&s.expectedType.kind!=="value"&&(d=s.expectedType);for(var g={},y=[],T=2;TNumber.MAX_SAFE_INTEGER)return L.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof X=="number"&&Math.floor(X)!==X)return L.error("Numeric branch labels must be integer values.");if(u){if(L.checkSubtype(u,vi(X)))return null}else u=vi(X);if(g[String(X)]!==void 0)return L.error("Branch labels must be unique.");g[String(X)]=y.length}var K=s.parse(P,T,d);if(!K)return null;d=d||K.type,y.push(K)}var fe=s.parse(i[1],1,rr);if(!fe)return null;var me=s.parse(i[i.length-1],i.length-1,d);return me?fe.type.kind!=="value"&&s.concat(1).checkSubtype(u,fe.type)?null:new Ga(u,d,fe,g,y,me):null},Ga.prototype.evaluate=function(i){var s=this.input.evaluate(i);return(vi(s)===this.inputType&&this.outputs[this.cases[s]]||this.otherwise).evaluate(i)},Ga.prototype.eachChild=function(i){i(this.input),this.outputs.forEach(i),i(this.otherwise)},Ga.prototype.outputDefined=function(){return this.outputs.every(function(i){return i.outputDefined()})&&this.otherwise.outputDefined()},Ga.prototype.serialize=function(){for(var i=this,s=["match",this.input.serialize()],u=[],d={},g=0,y=Object.keys(this.cases).sort();g=5)return s.error("Expected 3 or 4 arguments, but found "+(i.length-1)+" instead.");var u=s.parse(i[1],1,rr),d=s.parse(i[2],2,pt);if(!u||!d)return null;if(!ri(u.type,[Ln(rr),or,rr]))return s.error("Expected first argument to be of type array or string, but found "+sn(u.type)+" instead");if(i.length===4){var g=s.parse(i[3],3,pt);return g?new Bl(u.type,u,d,g):null}return new Bl(u.type,u,d)},Bl.prototype.evaluate=function(i){var s=this.input.evaluate(i),u=this.beginIndex.evaluate(i);if(!zn(s,["string","array"]))throw new yi("Expected first argument to be of type array or string, but found "+sn(vi(s))+" instead.");if(this.endIndex){var d=this.endIndex.evaluate(i);return s.slice(u,d)}return s.slice(u)},Bl.prototype.eachChild=function(i){i(this.input),i(this.beginIndex),this.endIndex&&i(this.endIndex)},Bl.prototype.outputDefined=function(){return!1},Bl.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var i=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),i]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Up=ii("==",function(i,s,u){return s===u},_f),s1=ii("!=",function(i,s,u){return s!==u},function(i,s,u,d){return!_f(0,s,u,d)}),ch=ii("<",function(i,s,u){return s",function(i,s,u){return s>u},function(i,s,u,d){return d.compare(s,u)>0}),hh=ii("<=",function(i,s,u){return s<=u},function(i,s,u,d){return d.compare(s,u)<=0}),gf=ii(">=",function(i,s,u){return s>=u},function(i,s,u,d){return d.compare(s,u)>=0}),va=function(i,s,u,d,g){this.type=or,this.number=i,this.locale=s,this.currency=u,this.minFractionDigits=d,this.maxFractionDigits=g};va.parse=function(i,s){if(i.length!==3)return s.error("Expected two arguments.");var u=s.parse(i[1],1,pt);if(!u)return null;var d=i[2];if(typeof d!="object"||Array.isArray(d))return s.error("NumberFormat options argument must be an object.");var g=null;if(d.locale&&!(g=s.parse(d.locale,1,or)))return null;var y=null;if(d.currency&&!(y=s.parse(d.currency,1,or)))return null;var T=null;if(d["min-fraction-digits"]&&!(T=s.parse(d["min-fraction-digits"],1,pt)))return null;var C=null;return d["max-fraction-digits"]&&!(C=s.parse(d["max-fraction-digits"],1,pt))?null:new va(u,g,y,T,C)},va.prototype.evaluate=function(i){return new Intl.NumberFormat(this.locale?this.locale.evaluate(i):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(i):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(i):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(i):void 0}).format(this.number.evaluate(i))},va.prototype.eachChild=function(i){i(this.number),this.locale&&i(this.locale),this.currency&&i(this.currency),this.minFractionDigits&&i(this.minFractionDigits),this.maxFractionDigits&&i(this.maxFractionDigits)},va.prototype.outputDefined=function(){return!1},va.prototype.serialize=function(){var i={};return this.locale&&(i.locale=this.locale.serialize()),this.currency&&(i.currency=this.currency.serialize()),this.minFractionDigits&&(i["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(i["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),i]};var fl=function(i){this.type=pt,this.input=i};fl.parse=function(i,s){if(i.length!==2)return s.error("Expected 1 argument, but found "+(i.length-1)+" instead.");var u=s.parse(i[1],1);return u?u.type.kind!=="array"&&u.type.kind!=="string"&&u.type.kind!=="value"?s.error("Expected argument of type string or array, but found "+sn(u.type)+" instead."):new fl(u):null},fl.prototype.evaluate=function(i){var s=this.input.evaluate(i);if(typeof s=="string"||Array.isArray(s))return s.length;throw new yi("Expected value to be of type string or array, but found "+sn(vi(s))+" instead.")},fl.prototype.eachChild=function(i){i(this.input)},fl.prototype.outputDefined=function(){return!1},fl.prototype.serialize=function(){var i=["length"];return this.eachChild(function(s){i.push(s.serialize())}),i};var ks={"==":Up,"!=":s1,">":Vi,"<":ch,">=":gf,"<=":hh,array:hi,at:Dl,boolean:hi,case:hl,coalesce:Ll,collator:Ie,format:aa,image:Qo,in:is,"index-of":cl,interpolate:Wo,"interpolate-hcl":Wo,"interpolate-lab":Wo,length:fl,let:Wa,literal:mo,match:Ga,number:hi,"number-format":va,object:hi,slice:Bl,step:Oa,string:hi,"to-boolean":Pa,"to-color":Pa,"to-number":Pa,"to-string":Pa,var:Fs,within:Xo};function Fl(i,s){var u=s[0],d=s[1],g=s[2],y=s[3];u=u.evaluate(i),d=d.evaluate(i),g=g.evaluate(i);var T=y?y.evaluate(i):1,C=Il(u,d,g,T);if(C)throw new yi(C);return new bn(u/255*T,d/255*T,g/255*T,T)}function l1(i,s){return i in s}function ju(i,s){var u=s[i];return u===void 0?null:u}function xs(i){return{type:i}}function Tc(i){return{result:"success",value:i}}function Nl(i){return{result:"error",value:i}}function pl(i){return i["property-type"]==="data-driven"||i["property-type"]==="cross-faded-data-driven"}function fh(i){return!!i.expression&&i.expression.parameters.indexOf("zoom")>-1}function Ac(i){return!!i.expression&&i.expression.interpolated}function di(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":i===null?"null":typeof i}function u1(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function zp(i){return i}function kl(i,s,u){return i!==void 0?i:s!==void 0?s:u!==void 0?u:void 0}function Sc(i,s,u,d,g){return kl(typeof u===g?d[u]:void 0,i.default,s.default)}function ph(i,s,u){if(di(u)!=="number")return kl(i.default,s.default);var d=i.stops.length;if(d===1||u<=i.stops[0][0])return i.stops[0][1];if(u>=i.stops[d-1][0])return i.stops[d-1][1];var g=bc(i.stops.map(function(y){return y[0]}),u);return i.stops[g][1]}function c1(i,s,u){var d=i.base!==void 0?i.base:1;if(di(u)!=="number")return kl(i.default,s.default);var g=i.stops.length;if(g===1||u<=i.stops[0][0])return i.stops[0][1];if(u>=i.stops[g-1][0])return i.stops[g-1][1];var y=bc(i.stops.map(function(U){return U[0]}),u),T=function(U,X,K,fe){var me=fe-K,Me=U-K;return me===0?0:X===1?Me/me:(Math.pow(X,Me)-1)/(Math.pow(X,me)-1)}(u,d,i.stops[y][0],i.stops[y+1][0]),C=i.stops[y][1],P=i.stops[y+1][1],L=Ol[s.type]||zp;if(i.colorSpace&&i.colorSpace!=="rgb"){var k=df[i.colorSpace];L=function(U,X){return k.reverse(k.interpolate(k.forward(U),k.forward(X),T))}}return typeof C.evaluate=="function"?{evaluate:function(){for(var U=[],X=arguments.length;X--;)U[X]=arguments[X];var K=C.evaluate.apply(void 0,U),fe=P.evaluate.apply(void 0,U);if(K!==void 0&&fe!==void 0)return L(K,fe,T)}}:L(C,P,T)}function dl(i,s,u){return s.type==="color"?u=bn.parse(u):s.type==="formatted"?u=ki.fromString(u.toString()):s.type==="resolvedImage"?u=Ei.fromString(u.toString()):di(u)===s.type||s.type==="enum"&&s.values[u]||(u=void 0),kl(u,i.default,s.default)}ie.register(ks,{error:[{kind:"error"},[or],function(i,s){throw new yi(s[0].evaluate(i))}],typeof:[or,[rr],function(i,s){return sn(vi(s[0].evaluate(i)))}],"to-rgba":[Ln(pt,4),[qt],function(i,s){return s[0].evaluate(i).toArray()}],rgb:[qt,[pt,pt,pt],Fl],rgba:[qt,[pt,pt,pt,pt],Fl],has:{type:Gt,overloads:[[[or],function(i,s){return l1(s[0].evaluate(i),i.properties())}],[[or,an],function(i,s){var u=s[1];return l1(s[0].evaluate(i),u.evaluate(i))}]]},get:{type:rr,overloads:[[[or],function(i,s){return ju(s[0].evaluate(i),i.properties())}],[[or,an],function(i,s){var u=s[1];return ju(s[0].evaluate(i),u.evaluate(i))}]]},"feature-state":[rr,[or],function(i,s){return ju(s[0].evaluate(i),i.featureState||{})}],properties:[an,[],function(i){return i.properties()}],"geometry-type":[or,[],function(i){return i.geometryType()}],id:[rr,[],function(i){return i.id()}],zoom:[pt,[],function(i){return i.globals.zoom}],"heatmap-density":[pt,[],function(i){return i.globals.heatmapDensity||0}],"line-progress":[pt,[],function(i){return i.globals.lineProgress||0}],accumulated:[rr,[],function(i){return i.globals.accumulated===void 0?null:i.globals.accumulated}],"+":[pt,xs(pt),function(i,s){for(var u=0,d=0,g=s;d":[Gt,[or,rr],function(i,s){var u=s[0],d=s[1],g=i.properties()[u.value],y=d.value;return typeof g==typeof y&&g>y}],"filter-id->":[Gt,[rr],function(i,s){var u=s[0],d=i.id(),g=u.value;return typeof d==typeof g&&d>g}],"filter-<=":[Gt,[or,rr],function(i,s){var u=s[0],d=s[1],g=i.properties()[u.value],y=d.value;return typeof g==typeof y&&g<=y}],"filter-id-<=":[Gt,[rr],function(i,s){var u=s[0],d=i.id(),g=u.value;return typeof d==typeof g&&d<=g}],"filter->=":[Gt,[or,rr],function(i,s){var u=s[0],d=s[1],g=i.properties()[u.value],y=d.value;return typeof g==typeof y&&g>=y}],"filter-id->=":[Gt,[rr],function(i,s){var u=s[0],d=i.id(),g=u.value;return typeof d==typeof g&&d>=g}],"filter-has":[Gt,[rr],function(i,s){return s[0].value in i.properties()}],"filter-has-id":[Gt,[],function(i){return i.id()!==null&&i.id()!==void 0}],"filter-type-in":[Gt,[Ln(or)],function(i,s){return s[0].value.indexOf(i.geometryType())>=0}],"filter-id-in":[Gt,[Ln(rr)],function(i,s){return s[0].value.indexOf(i.id())>=0}],"filter-in-small":[Gt,[or,Ln(rr)],function(i,s){var u=s[0];return s[1].value.indexOf(i.properties()[u.value])>=0}],"filter-in-large":[Gt,[or,Ln(rr)],function(i,s){var u=s[0],d=s[1];return function(g,y,T,C){for(;T<=C;){var P=T+C>>1;if(y[P]===g)return!0;y[P]>g?C=P-1:T=P+1}return!1}(i.properties()[u.value],d.value,0,d.value.length-1)}],all:{type:Gt,overloads:[[[Gt,Gt],function(i,s){var u=s[1];return s[0].evaluate(i)&&u.evaluate(i)}],[xs(Gt),function(i,s){for(var u=0,d=s;u0&&typeof i[0]=="string"&&i[0]in ks}function Xu(i,s){var u=new ll(ks,[],s?function(g){var y={color:qt,string:or,number:pt,enum:or,boolean:Gt,formatted:ti,resolvedImage:xn};return g.type==="array"?Ln(y[g.value]||rr,g.length):y[g.type]}(s):void 0),d=u.parse(i,void 0,void 0,void 0,s&&s.type==="string"?{typeAnnotation:"coerce"}:void 0);return d?Tc(new Ul(d,s)):Nl(u.errors)}Ul.prototype.evaluateWithoutErrorHandling=function(i,s,u,d,g,y){return this._evaluator.globals=i,this._evaluator.feature=s,this._evaluator.featureState=u,this._evaluator.canonical=d,this._evaluator.availableImages=g||null,this._evaluator.formattedSection=y,this.expression.evaluate(this._evaluator)},Ul.prototype.evaluate=function(i,s,u,d,g,y){this._evaluator.globals=i,this._evaluator.feature=s||null,this._evaluator.featureState=u||null,this._evaluator.canonical=d,this._evaluator.availableImages=g||null,this._evaluator.formattedSection=y||null;try{var T=this.expression.evaluate(this._evaluator);if(T==null||typeof T=="number"&&T!=T)return this._defaultValue;if(this._enumValues&&!(T in this._enumValues))throw new yi("Expected value to be one of "+Object.keys(this._enumValues).map(function(C){return JSON.stringify(C)}).join(", ")+", but found "+JSON.stringify(T)+" instead.");return T}catch(C){return this._warningHistory[C.message]||(this._warningHistory[C.message]=!0,typeof console<"u"&&console.warn(C.message)),this._defaultValue}};var vu=function(i,s){this.kind=i,this._styleExpression=s,this.isStateDependent=i!=="constant"&&!Pl(s.expression)};vu.prototype.evaluateWithoutErrorHandling=function(i,s,u,d,g,y){return this._styleExpression.evaluateWithoutErrorHandling(i,s,u,d,g,y)},vu.prototype.evaluate=function(i,s,u,d,g,y){return this._styleExpression.evaluate(i,s,u,d,g,y)};var yu=function(i,s,u,d){this.kind=i,this.zoomStops=u,this._styleExpression=s,this.isStateDependent=i!=="camera"&&!Pl(s.expression),this.interpolationType=d};function dh(i,s){if((i=Xu(i,s)).result==="error")return i;var u=i.value.expression,d=Ml(u);if(!d&&!pl(s))return Nl([new Rt("","data expressions not supported")]);var g=Bs(u,["zoom"]);if(!g&&!fh(s))return Nl([new Rt("","zoom expressions not supported")]);var y=function T(C){var P=null;if(C instanceof Wa)P=T(C.result);else if(C instanceof Ll)for(var L=0,k=C.args;Ld.maximum?[new ye(s,u,u+" is greater than the maximum value "+d.maximum)]:[]}function gh(i){var s,u,d,g=i.valueSpec,y=Lt(i.value.type),T={},C=y!=="categorical"&&i.value.property===void 0,P=!C,L=di(i.value.stops)==="array"&&di(i.value.stops[0])==="array"&&di(i.value.stops[0][0])==="object",k=os({key:i.key,value:i.value,valueSpec:i.styleSpec.function,style:i.style,styleSpec:i.styleSpec,objectElementValidators:{stops:function(K){if(y==="identity")return[new ye(K.key,K.value,'identity function may not have a "stops" property')];var fe=[],me=K.value;return fe=fe.concat(mh({key:K.key,value:me,valueSpec:K.valueSpec,style:K.style,styleSpec:K.styleSpec,arrayElementValidator:U})),di(me)==="array"&&me.length===0&&fe.push(new ye(K.key,me,"array must have at least one stop")),fe},default:function(K){return Dn({key:K.key,value:K.value,valueSpec:g,style:K.style,styleSpec:K.styleSpec})}}});return y==="identity"&&C&&k.push(new ye(i.key,i.value,'missing required property "property"')),y==="identity"||i.value.stops||k.push(new ye(i.key,i.value,'missing required property "stops"')),y==="exponential"&&i.valueSpec.expression&&!Ac(i.valueSpec)&&k.push(new ye(i.key,i.value,"exponential functions not supported")),i.styleSpec.$version>=8&&(P&&!pl(i.valueSpec)?k.push(new ye(i.key,i.value,"property functions not supported")):C&&!fh(i.valueSpec)&&k.push(new ye(i.key,i.value,"zoom functions not supported"))),y!=="categorical"&&!L||i.value.property!==void 0||k.push(new ye(i.key,i.value,'"property" property is required')),k;function U(K){var fe=[],me=K.value,Me=K.key;if(di(me)!=="array")return[new ye(Me,me,"array expected, "+di(me)+" found")];if(me.length!==2)return[new ye(Me,me,"array length 2 expected, length "+me.length+" found")];if(L){if(di(me[0])!=="object")return[new ye(Me,me,"object expected, "+di(me[0])+" found")];if(me[0].zoom===void 0)return[new ye(Me,me,"object stop key must have zoom")];if(me[0].value===void 0)return[new ye(Me,me,"object stop key must have value")];if(d&&d>Lt(me[0].zoom))return[new ye(Me,me[0].zoom,"stop zoom values must appear in ascending order")];Lt(me[0].zoom)!==d&&(d=Lt(me[0].zoom),u=void 0,T={}),fe=fe.concat(os({key:Me+"[0]",value:me[0],valueSpec:{zoom:{}},style:K.style,styleSpec:K.styleSpec,objectElementValidators:{zoom:_h,value:X}}))}else fe=fe.concat(X({key:Me+"[0]",value:me[0],valueSpec:{},style:K.style,styleSpec:K.styleSpec},me));return gu(ht(me[1]))?fe.concat([new ye(Me+"[1]",me[1],"expressions are not allowed in function stops.")]):fe.concat(Dn({key:Me+"[1]",value:me[1],valueSpec:g,style:K.style,styleSpec:K.styleSpec}))}function X(K,fe){var me=di(K.value),Me=Lt(K.value),Ae=K.value!==null?K.value:fe;if(s){if(me!==s)return[new ye(K.key,Ae,me+" stop domain type must match previous stop domain type "+s)]}else s=me;if(me!=="number"&&me!=="string"&&me!=="boolean")return[new ye(K.key,Ae,"stop domain value must be a number, string, or boolean")];if(me!=="number"&&y!=="categorical"){var je="number expected, "+me+" found";return pl(g)&&y===void 0&&(je+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ye(K.key,Ae,je)]}return y!=="categorical"||me!=="number"||isFinite(Me)&&Math.floor(Me)===Me?y!=="categorical"&&me==="number"&&u!==void 0&&Me=2&&i[1]!=="$id"&&i[1]!=="$type";case"in":return i.length>=3&&(typeof i[1]!="string"||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return i.length!==3||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(var s=0,u=i.slice(1);ss?1:0}function h1(i){if(!i)return!0;var s,u=i[0];return i.length<=1?u!=="any":u==="=="?vh(i[1],i[2],"=="):u==="!="?p1(vh(i[1],i[2],"==")):u==="<"||u===">"||u==="<="||u===">="?vh(i[1],i[2],u):u==="any"?(s=i.slice(1),["any"].concat(s.map(h1))):u==="all"?["all"].concat(i.slice(1).map(h1)):u==="none"?["all"].concat(i.slice(1).map(h1).map(p1)):u==="in"?f1(i[1],i.slice(2)):u==="!in"?p1(f1(i[1],i.slice(2))):u==="has"?vf(i[1]):u==="!has"?p1(vf(i[1])):u!=="within"||i}function vh(i,s,u){switch(i){case"$type":return["filter-type-"+u,s];case"$id":return["filter-id-"+u,s];default:return["filter-"+u,i,s]}}function f1(i,s){if(s.length===0)return!1;switch(i){case"$type":return["filter-type-in",["literal",s]];case"$id":return["filter-id-in",["literal",s]];default:return s.length>200&&!s.some(function(u){return typeof u!=typeof s[0]})?["filter-in-large",i,["literal",s.sort(Vp)]]:["filter-in-small",i,["literal",s]]}}function vf(i){switch(i){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",i]}}function p1(i){return["!",i]}function yh(i){return Wu(ht(i.value))?zl(mt({},i,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function s(u){var d=u.value,g=u.key;if(di(d)!=="array")return[new ye(g,d,"array expected, "+di(d)+" found")];var y,T=u.styleSpec,C=[];if(d.length<1)return[new ye(g,d,"filter array must have at least 1 element")];switch(C=C.concat(Us({key:g+"[0]",value:d[0],valueSpec:T.filter_operator,style:u.style,styleSpec:u.styleSpec})),Lt(d[0])){case"<":case"<=":case">":case">=":d.length>=2&&Lt(d[1])==="$type"&&C.push(new ye(g,d,'"$type" cannot be use with operator "'+d[0]+'"'));case"==":case"!=":d.length!==3&&C.push(new ye(g,d,'filter array for operator "'+d[0]+'" must have 3 elements'));case"in":case"!in":d.length>=2&&(y=di(d[1]))!=="string"&&C.push(new ye(g+"[1]",d[1],"string expected, "+y+" found"));for(var P=2;P=k[K+0]&&d>=k[K+1])?(T[X]=!0,y.push(L[X])):T[X]=!1}}},wi.prototype._forEachCell=function(i,s,u,d,g,y,T,C){for(var P=this._convertToCellCoord(i),L=this._convertToCellCoord(s),k=this._convertToCellCoord(u),U=this._convertToCellCoord(d),X=P;X<=k;X++)for(var K=L;K<=U;K++){var fe=this.d*K+X;if((!C||C(this._convertFromCellCoord(X),this._convertFromCellCoord(K),this._convertFromCellCoord(X+1),this._convertFromCellCoord(K+1)))&&g.call(this,i,s,u,d,fe,y,T,C))return}},wi.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},wi.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},wi.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,s=3+this.cells.length+1+1,u=0,d=0;d=0)){var k=i[L];P[L]=Zi[C].shallow.indexOf(L)>=0?k:sa(k,s)}i instanceof Error&&(P.message=i.message)}if(P.$name)throw new Error("$name property is reserved for worker serialization logic.");return C!=="Object"&&(P.$name=C),P}throw new Error("can't serialize object of type "+typeof i)}function ai(i){if(i==null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp||Pc(i)||$u(i)||ArrayBuffer.isView(i)||i instanceof Zu)return i;if(Array.isArray(i))return i.map(ai);if(typeof i=="object"){var s=i.$name||"Object",u=Zi[s].klass;if(!u)throw new Error("can't deserialize unregistered class "+s);if(u.deserialize)return u.deserialize(i);for(var d=Object.create(u.prototype),g=0,y=Object.keys(i);g=0?C:ai(C)}}return d}throw new Error("can't deserialize object of type "+typeof i)}var _1=function(){this.first=!0};_1.prototype.update=function(i,s){var u=Math.floor(i);return this.first?(this.first=!1,this.lastIntegerZoom=u,this.lastIntegerZoomTime=0,this.lastZoom=i,this.lastFloorZoom=u,!0):(this.lastFloorZoom>u?(this.lastIntegerZoom=u+1,this.lastIntegerZoomTime=s):this.lastFloorZoom=128&&i<=255},Arabic:function(i){return i>=1536&&i<=1791},"Arabic Supplement":function(i){return i>=1872&&i<=1919},"Arabic Extended-A":function(i){return i>=2208&&i<=2303},"Hangul Jamo":function(i){return i>=4352&&i<=4607},"Unified Canadian Aboriginal Syllabics":function(i){return i>=5120&&i<=5759},Khmer:function(i){return i>=6016&&i<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(i){return i>=6320&&i<=6399},"General Punctuation":function(i){return i>=8192&&i<=8303},"Letterlike Symbols":function(i){return i>=8448&&i<=8527},"Number Forms":function(i){return i>=8528&&i<=8591},"Miscellaneous Technical":function(i){return i>=8960&&i<=9215},"Control Pictures":function(i){return i>=9216&&i<=9279},"Optical Character Recognition":function(i){return i>=9280&&i<=9311},"Enclosed Alphanumerics":function(i){return i>=9312&&i<=9471},"Geometric Shapes":function(i){return i>=9632&&i<=9727},"Miscellaneous Symbols":function(i){return i>=9728&&i<=9983},"Miscellaneous Symbols and Arrows":function(i){return i>=11008&&i<=11263},"CJK Radicals Supplement":function(i){return i>=11904&&i<=12031},"Kangxi Radicals":function(i){return i>=12032&&i<=12255},"Ideographic Description Characters":function(i){return i>=12272&&i<=12287},"CJK Symbols and Punctuation":function(i){return i>=12288&&i<=12351},Hiragana:function(i){return i>=12352&&i<=12447},Katakana:function(i){return i>=12448&&i<=12543},Bopomofo:function(i){return i>=12544&&i<=12591},"Hangul Compatibility Jamo":function(i){return i>=12592&&i<=12687},Kanbun:function(i){return i>=12688&&i<=12703},"Bopomofo Extended":function(i){return i>=12704&&i<=12735},"CJK Strokes":function(i){return i>=12736&&i<=12783},"Katakana Phonetic Extensions":function(i){return i>=12784&&i<=12799},"Enclosed CJK Letters and Months":function(i){return i>=12800&&i<=13055},"CJK Compatibility":function(i){return i>=13056&&i<=13311},"CJK Unified Ideographs Extension A":function(i){return i>=13312&&i<=19903},"Yijing Hexagram Symbols":function(i){return i>=19904&&i<=19967},"CJK Unified Ideographs":function(i){return i>=19968&&i<=40959},"Yi Syllables":function(i){return i>=40960&&i<=42127},"Yi Radicals":function(i){return i>=42128&&i<=42191},"Hangul Jamo Extended-A":function(i){return i>=43360&&i<=43391},"Hangul Syllables":function(i){return i>=44032&&i<=55215},"Hangul Jamo Extended-B":function(i){return i>=55216&&i<=55295},"Private Use Area":function(i){return i>=57344&&i<=63743},"CJK Compatibility Ideographs":function(i){return i>=63744&&i<=64255},"Arabic Presentation Forms-A":function(i){return i>=64336&&i<=65023},"Vertical Forms":function(i){return i>=65040&&i<=65055},"CJK Compatibility Forms":function(i){return i>=65072&&i<=65103},"Small Form Variants":function(i){return i>=65104&&i<=65135},"Arabic Presentation Forms-B":function(i){return i>=65136&&i<=65279},"Halfwidth and Fullwidth Forms":function(i){return i>=65280&&i<=65519}};function ml(i){for(var s=0,u=i;s=65097&&i<=65103)||Jt["CJK Compatibility Ideographs"](i)||Jt["CJK Compatibility"](i)||Jt["CJK Radicals Supplement"](i)||Jt["CJK Strokes"](i)||!(!Jt["CJK Symbols and Punctuation"](i)||i>=12296&&i<=12305||i>=12308&&i<=12319||i===12336)||Jt["CJK Unified Ideographs Extension A"](i)||Jt["CJK Unified Ideographs"](i)||Jt["Enclosed CJK Letters and Months"](i)||Jt["Hangul Compatibility Jamo"](i)||Jt["Hangul Jamo Extended-A"](i)||Jt["Hangul Jamo Extended-B"](i)||Jt["Hangul Jamo"](i)||Jt["Hangul Syllables"](i)||Jt.Hiragana(i)||Jt["Ideographic Description Characters"](i)||Jt.Kanbun(i)||Jt["Kangxi Radicals"](i)||Jt["Katakana Phonetic Extensions"](i)||Jt.Katakana(i)&&i!==12540||!(!Jt["Halfwidth and Fullwidth Forms"](i)||i===65288||i===65289||i===65293||i>=65306&&i<=65310||i===65339||i===65341||i===65343||i>=65371&&i<=65503||i===65507||i>=65512&&i<=65519)||!(!Jt["Small Form Variants"](i)||i>=65112&&i<=65118||i>=65123&&i<=65126)||Jt["Unified Canadian Aboriginal Syllabics"](i)||Jt["Unified Canadian Aboriginal Syllabics Extended"](i)||Jt["Vertical Forms"](i)||Jt["Yijing Hexagram Symbols"](i)||Jt["Yi Syllables"](i)||Jt["Yi Radicals"](i))))}function g1(i){return!(Oc(i)||function(s){return!!(Jt["Latin-1 Supplement"](s)&&(s===167||s===169||s===174||s===177||s===188||s===189||s===190||s===215||s===247)||Jt["General Punctuation"](s)&&(s===8214||s===8224||s===8225||s===8240||s===8241||s===8251||s===8252||s===8258||s===8263||s===8264||s===8265||s===8273)||Jt["Letterlike Symbols"](s)||Jt["Number Forms"](s)||Jt["Miscellaneous Technical"](s)&&(s>=8960&&s<=8967||s>=8972&&s<=8991||s>=8996&&s<=9e3||s===9003||s>=9085&&s<=9114||s>=9150&&s<=9165||s===9167||s>=9169&&s<=9179||s>=9186&&s<=9215)||Jt["Control Pictures"](s)&&s!==9251||Jt["Optical Character Recognition"](s)||Jt["Enclosed Alphanumerics"](s)||Jt["Geometric Shapes"](s)||Jt["Miscellaneous Symbols"](s)&&!(s>=9754&&s<=9759)||Jt["Miscellaneous Symbols and Arrows"](s)&&(s>=11026&&s<=11055||s>=11088&&s<=11097||s>=11192&&s<=11243)||Jt["CJK Symbols and Punctuation"](s)||Jt.Katakana(s)||Jt["Private Use Area"](s)||Jt["CJK Compatibility Forms"](s)||Jt["Small Form Variants"](s)||Jt["Halfwidth and Fullwidth Forms"](s)||s===8734||s===8756||s===8757||s>=9984&&s<=10087||s>=10102&&s<=10131||s===65532||s===65533)}(i))}function as(i){return i>=1424&&i<=2303||Jt["Arabic Presentation Forms-A"](i)||Jt["Arabic Presentation Forms-B"](i)}function La(i,s){return!(!s&&as(i)||i>=2304&&i<=3583||i>=3840&&i<=4255||Jt.Khmer(i))}function v1(i){for(var s=0,u=i;s-1&&(la="error"),y1&&y1(i)};function qu(){x1.fire(new de("pluginStateChange",{pluginStatus:la,pluginURL:Vs}))}var x1=new Ne,Th=function(){return la},Da=function(){if(la!=="deferred"||!Vs)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");la="loading",qu(),Vs&&mu({url:Vs},function(i){i?xf(i):(la="loaded",qu())})},$a={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return la==="loaded"||$a.applyArabicShaping!=null},isLoading:function(){return la==="loading"},setState:function(i){la=i.pluginStatus,Vs=i.pluginURL},isParsed:function(){return $a.applyArabicShaping!=null&&$a.processBidirectionalText!=null&&$a.processStyledBidirectionalText!=null},getPluginURL:function(){return Vs}},cn=function(i,s){this.zoom=i,s?(this.now=s.now,this.fadeDuration=s.fadeDuration,this.zoomHistory=s.zoomHistory,this.transition=s.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new _1,this.transition={})};cn.prototype.isSupportedScript=function(i){return function(s,u){for(var d=0,g=s;dthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:s+(1-s)*u}:{fromScale:.5,toScale:1,t:1-(1-u)*s}};var qa=function(i,s){this.property=i,this.value=s,this.expression=function(u,d){if(u1(u))return new xu(u,d);if(gu(u)){var g=dh(u,d);if(g.result==="error")throw new Error(g.value.map(function(T){return T.key+": "+T.message}).join(", "));return g.value}var y=u;return typeof u=="string"&&d.type==="color"&&(y=bn.parse(u)),{kind:"constant",evaluate:function(){return y}}}(s===void 0?i.specification.default:s,i.specification)};qa.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},qa.prototype.possiblyEvaluate=function(i,s,u){return this.property.possiblyEvaluate(this,i,s,u)};var Ya=function(i){this.property=i,this.value=new qa(i,void 0)};Ya.prototype.transitioned=function(i,s){return new Wl(this.property,this.value,s,G({},i.transition,this.transition),i.now)},Ya.prototype.untransitioned=function(){return new Wl(this.property,this.value,null,{},0)};var Do=function(i){this._properties=i,this._values=Object.create(i.defaultTransitionablePropertyValues)};Do.prototype.getValue=function(i){return Te(this._values[i].value.value)},Do.prototype.setValue=function(i,s){this._values.hasOwnProperty(i)||(this._values[i]=new Ya(this._values[i].property)),this._values[i].value=new qa(this._values[i].property,s===null?void 0:Te(s))},Do.prototype.getTransition=function(i){return Te(this._values[i].transition)},Do.prototype.setTransition=function(i,s){this._values.hasOwnProperty(i)||(this._values[i]=new Ya(this._values[i].property)),this._values[i].transition=Te(s)||void 0},Do.prototype.serialize=function(){for(var i={},s=0,u=Object.keys(this._values);sthis.end)return this.prior=null,g;if(this.value.isDataDriven())return this.prior=null,g;if(d=1)return 1;var P=C*C,L=P*C;return 4*(C<.5?L:3*(C-P)+L-.75)}(T))}return g};var _l=function(i){this._properties=i,this._values=Object.create(i.defaultTransitioningPropertyValues)};_l.prototype.possiblyEvaluate=function(i,s,u){for(var d=new Yu(this._properties),g=0,y=Object.keys(this._values);gy.zoomHistory.lastIntegerZoom?{from:u,to:d}:{from:g,to:d}},s.prototype.interpolate=function(u){return u},s}(xr),ea=function(i){this.specification=i};ea.prototype.possiblyEvaluate=function(i,s,u,d){if(i.value!==void 0){if(i.expression.kind==="constant"){var g=i.expression.evaluate(s,null,{},u,d);return this._calculate(g,g,g,s)}return this._calculate(i.expression.evaluate(new cn(Math.floor(s.zoom-1),s)),i.expression.evaluate(new cn(Math.floor(s.zoom),s)),i.expression.evaluate(new cn(Math.floor(s.zoom+1),s)),s)}},ea.prototype._calculate=function(i,s,u,d){return d.zoom>d.zoomHistory.lastIntegerZoom?{from:i,to:s}:{from:u,to:s}},ea.prototype.interpolate=function(i){return i};var bs=function(i){this.specification=i};bs.prototype.possiblyEvaluate=function(i,s,u,d){return!!i.expression.evaluate(s,null,{},u,d)},bs.prototype.interpolate=function(){return!1};var Ci=function(i){for(var s in this.properties=i,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],i){var u=i[s];u.specification.overridable&&this.overridableProperties.push(s);var d=this.defaultPropertyValues[s]=new qa(u,void 0),g=this.defaultTransitionablePropertyValues[s]=new Ya(u);this.defaultTransitioningPropertyValues[s]=g.untransitioned(),this.defaultPossiblyEvaluatedValues[s]=d.possiblyEvaluate({})}};_r("DataDrivenProperty",xr),_r("DataConstantProperty",Rr),_r("CrossFadedDataDrivenProperty",Ba),_r("CrossFadedProperty",ea),_r("ColorRampProperty",bs);var ls=function(i){function s(u,d){if(i.call(this),this.id=u.id,this.type=u.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},u.type!=="custom"&&(this.metadata=(u=u).metadata,this.minzoom=u.minzoom,this.maxzoom=u.maxzoom,u.type!=="background"&&(this.source=u.source,this.sourceLayer=u["source-layer"],this.filter=u.filter),d.layout&&(this._unevaluatedLayout=new ss(d.layout)),d.paint)){for(var g in this._transitionablePaint=new Do(d.paint),u.paint)this.setPaintProperty(g,u.paint[g],{validate:!1});for(var y in u.layout)this.setLayoutProperty(y,u.layout[y],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Yu(d.paint)}}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},s.prototype.getLayoutProperty=function(u){return u==="visibility"?this.visibility:this._unevaluatedLayout.getValue(u)},s.prototype.setLayoutProperty=function(u,d,g){g===void 0&&(g={}),d!=null&&this._validate(Mc,"layers."+this.id+".layout."+u,u,d,g)||(u!=="visibility"?this._unevaluatedLayout.setValue(u,d):this.visibility=d)},s.prototype.getPaintProperty=function(u){return ke(u,"-transition")?this._transitionablePaint.getTransition(u.slice(0,-11)):this._transitionablePaint.getValue(u)},s.prototype.setPaintProperty=function(u,d,g){if(g===void 0&&(g={}),d!=null&&this._validate(m1,"layers."+this.id+".paint."+u,u,d,g))return!1;if(ke(u,"-transition"))return this._transitionablePaint.setTransition(u.slice(0,-11),d||void 0),!1;var y=this._transitionablePaint._values[u],T=y.property.specification["property-type"]==="cross-faded-data-driven",C=y.value.isDataDriven(),P=y.value;this._transitionablePaint.setValue(u,d),this._handleSpecialPaintPropertyUpdate(u);var L=this._transitionablePaint._values[u].value;return L.isDataDriven()||C||T||this._handleOverridablePaintPropertyUpdate(u,P,L)},s.prototype._handleSpecialPaintPropertyUpdate=function(u){},s.prototype._handleOverridablePaintPropertyUpdate=function(u,d,g){return!1},s.prototype.isHidden=function(u){return!!(this.minzoom&&u=this.maxzoom)||this.visibility==="none"},s.prototype.updateTransitions=function(u){this._transitioningPaint=this._transitionablePaint.transitioned(u,this._transitioningPaint)},s.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},s.prototype.recalculate=function(u,d){u.getCrossfadeParameters&&(this._crossfadeParameters=u.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(u,void 0,d)),this.paint=this._transitioningPaint.possiblyEvaluate(u,void 0,d)},s.prototype.serialize=function(){var u={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(u.layout=u.layout||{},u.layout.visibility=this.visibility),Ve(u,function(d,g){return!(d===void 0||g==="layout"&&!Object.keys(d).length||g==="paint"&&!Object.keys(d).length)})},s.prototype._validate=function(u,d,g,y,T){return T===void 0&&(T={}),(!T||T.validate!==!1)&&Xl(this,u.call(Ic,{key:d,layerType:this.type,objectKey:g,value:y,styleSpec:te,style:{glyphs:!0,sprite:!0}}))},s.prototype.is3D=function(){return!1},s.prototype.isTileClipped=function(){return!1},s.prototype.hasOffscreenPass=function(){return!1},s.prototype.resize=function(){},s.prototype.isStateDependent=function(){for(var u in this.paint._values){var d=this.paint.get(u);if(d instanceof Jo&&pl(d.property.specification)&&(d.value.kind==="source"||d.value.kind==="composite")&&d.value.isStateDependent)return!0}return!1},s}(Ne),gl={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Eu=function(i,s){this._structArray=i,this._pos1=s*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},$n=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function vo(i,s){s===void 0&&(s=1);var u=0,d=0;return{members:i.map(function(g){var y=gl[g.type].BYTES_PER_ELEMENT,T=u=Ah(u,Math.max(s,y)),C=g.components||1;return d=Math.max(d,y),u+=y*C,{name:g.name,type:g.type,components:C,offset:T}}),size:Ah(u,Math.max(d,s)),alignment:s}}function Ah(i,s){return Math.ceil(i/s)*s}$n.serialize=function(i,s){return i._trim(),s&&(i.isTransferred=!0,s.push(i.arrayBuffer)),{length:i.length,arrayBuffer:i.arrayBuffer}},$n.deserialize=function(i){var s=Object.create(this.prototype);return s.arrayBuffer=i.arrayBuffer,s.length=i.length,s.capacity=i.arrayBuffer.byteLength/s.bytesPerElement,s._refreshViews(),s},$n.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},$n.prototype.clear=function(){this.length=0},$n.prototype.resize=function(i){this.reserve(i),this.length=i},$n.prototype.reserve=function(i){if(i>this.capacity){this.capacity=Math.max(i,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var s=this.uint8;this._refreshViews(),s&&this.uint8.set(s)}},$n.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Gl=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d){var g=this.length;return this.resize(g+1),this.emplace(g,u,d)},s.prototype.emplace=function(u,d,g){var y=2*u;return this.int16[y+0]=d,this.int16[y+1]=g,u},s}($n);Gl.prototype.bytesPerElement=4,_r("StructArrayLayout2i4",Gl);var b1=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y){var T=this.length;return this.resize(T+1),this.emplace(T,u,d,g,y)},s.prototype.emplace=function(u,d,g,y,T){var C=4*u;return this.int16[C+0]=d,this.int16[C+1]=g,this.int16[C+2]=y,this.int16[C+3]=T,u},s}($n);b1.prototype.bytesPerElement=8,_r("StructArrayLayout4i8",b1);var vl=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C){var P=this.length;return this.resize(P+1),this.emplace(P,u,d,g,y,T,C)},s.prototype.emplace=function(u,d,g,y,T,C,P){var L=6*u;return this.int16[L+0]=d,this.int16[L+1]=g,this.int16[L+2]=y,this.int16[L+3]=T,this.int16[L+4]=C,this.int16[L+5]=P,u},s}($n);vl.prototype.bytesPerElement=12,_r("StructArrayLayout2i4i12",vl);var Fa=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C){var P=this.length;return this.resize(P+1),this.emplace(P,u,d,g,y,T,C)},s.prototype.emplace=function(u,d,g,y,T,C,P){var L=4*u,k=8*u;return this.int16[L+0]=d,this.int16[L+1]=g,this.uint8[k+4]=y,this.uint8[k+5]=T,this.uint8[k+6]=C,this.uint8[k+7]=P,u},s}($n);Fa.prototype.bytesPerElement=8,_r("StructArrayLayout2i4ub8",Fa);var Ku=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d){var g=this.length;return this.resize(g+1),this.emplace(g,u,d)},s.prototype.emplace=function(u,d,g){var y=2*u;return this.float32[y+0]=d,this.float32[y+1]=g,u},s}($n);Ku.prototype.bytesPerElement=8,_r("StructArrayLayout2f8",Ku);var Hs=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C,P,L,k,U){var X=this.length;return this.resize(X+1),this.emplace(X,u,d,g,y,T,C,P,L,k,U)},s.prototype.emplace=function(u,d,g,y,T,C,P,L,k,U,X){var K=10*u;return this.uint16[K+0]=d,this.uint16[K+1]=g,this.uint16[K+2]=y,this.uint16[K+3]=T,this.uint16[K+4]=C,this.uint16[K+5]=P,this.uint16[K+6]=L,this.uint16[K+7]=k,this.uint16[K+8]=U,this.uint16[K+9]=X,u},s}($n);Hs.prototype.bytesPerElement=20,_r("StructArrayLayout10ui20",Hs);var E1=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C,P,L,k,U,X,K){var fe=this.length;return this.resize(fe+1),this.emplace(fe,u,d,g,y,T,C,P,L,k,U,X,K)},s.prototype.emplace=function(u,d,g,y,T,C,P,L,k,U,X,K,fe){var me=12*u;return this.int16[me+0]=d,this.int16[me+1]=g,this.int16[me+2]=y,this.int16[me+3]=T,this.uint16[me+4]=C,this.uint16[me+5]=P,this.uint16[me+6]=L,this.uint16[me+7]=k,this.int16[me+8]=U,this.int16[me+9]=X,this.int16[me+10]=K,this.int16[me+11]=fe,u},s}($n);E1.prototype.bytesPerElement=24,_r("StructArrayLayout4i4ui4i24",E1);var Qu=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g){var y=this.length;return this.resize(y+1),this.emplace(y,u,d,g)},s.prototype.emplace=function(u,d,g,y){var T=3*u;return this.float32[T+0]=d,this.float32[T+1]=g,this.float32[T+2]=y,u},s}($n);Qu.prototype.bytesPerElement=12,_r("StructArrayLayout3f12",Qu);var Lc=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u){var d=this.length;return this.resize(d+1),this.emplace(d,u)},s.prototype.emplace=function(u,d){return this.uint32[1*u+0]=d,u},s}($n);Lc.prototype.bytesPerElement=4,_r("StructArrayLayout1ul4",Lc);var T1=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C,P,L,k){var U=this.length;return this.resize(U+1),this.emplace(U,u,d,g,y,T,C,P,L,k)},s.prototype.emplace=function(u,d,g,y,T,C,P,L,k,U){var X=10*u,K=5*u;return this.int16[X+0]=d,this.int16[X+1]=g,this.int16[X+2]=y,this.int16[X+3]=T,this.int16[X+4]=C,this.int16[X+5]=P,this.uint32[K+3]=L,this.uint16[X+8]=k,this.uint16[X+9]=U,u},s}($n);T1.prototype.bytesPerElement=20,_r("StructArrayLayout6i1ul2ui20",T1);var Tu=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C){var P=this.length;return this.resize(P+1),this.emplace(P,u,d,g,y,T,C)},s.prototype.emplace=function(u,d,g,y,T,C,P){var L=6*u;return this.int16[L+0]=d,this.int16[L+1]=g,this.int16[L+2]=y,this.int16[L+3]=T,this.int16[L+4]=C,this.int16[L+5]=P,u},s}($n);Tu.prototype.bytesPerElement=12,_r("StructArrayLayout2i2i2i12",Tu);var Au=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T){var C=this.length;return this.resize(C+1),this.emplace(C,u,d,g,y,T)},s.prototype.emplace=function(u,d,g,y,T,C){var P=4*u,L=8*u;return this.float32[P+0]=d,this.float32[P+1]=g,this.float32[P+2]=y,this.int16[L+6]=T,this.int16[L+7]=C,u},s}($n);Au.prototype.bytesPerElement=16,_r("StructArrayLayout2f1f2i16",Au);var Sh=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y){var T=this.length;return this.resize(T+1),this.emplace(T,u,d,g,y)},s.prototype.emplace=function(u,d,g,y,T){var C=12*u,P=3*u;return this.uint8[C+0]=d,this.uint8[C+1]=g,this.float32[P+1]=y,this.float32[P+2]=T,u},s}($n);Sh.prototype.bytesPerElement=12,_r("StructArrayLayout2ub2f12",Sh);var js=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g){var y=this.length;return this.resize(y+1),this.emplace(y,u,d,g)},s.prototype.emplace=function(u,d,g,y){var T=3*u;return this.uint16[T+0]=d,this.uint16[T+1]=g,this.uint16[T+2]=y,u},s}($n);js.prototype.bytesPerElement=6,_r("StructArrayLayout3ui6",js);var Es=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C,P,L,k,U,X,K,fe,me,Me,Ae,je){var Ze=this.length;return this.resize(Ze+1),this.emplace(Ze,u,d,g,y,T,C,P,L,k,U,X,K,fe,me,Me,Ae,je)},s.prototype.emplace=function(u,d,g,y,T,C,P,L,k,U,X,K,fe,me,Me,Ae,je,Ze){var ot=24*u,lt=12*u,yt=48*u;return this.int16[ot+0]=d,this.int16[ot+1]=g,this.uint16[ot+2]=y,this.uint16[ot+3]=T,this.uint32[lt+2]=C,this.uint32[lt+3]=P,this.uint32[lt+4]=L,this.uint16[ot+10]=k,this.uint16[ot+11]=U,this.uint16[ot+12]=X,this.float32[lt+7]=K,this.float32[lt+8]=fe,this.uint8[yt+36]=me,this.uint8[yt+37]=Me,this.uint8[yt+38]=Ae,this.uint32[lt+10]=je,this.int16[ot+22]=Ze,u},s}($n);Es.prototype.bytesPerElement=48,_r("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Es);var A1=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C,P,L,k,U,X,K,fe,me,Me,Ae,je,Ze,ot,lt,yt,zt,Qt,Mr,cr,kr,pr,Tn){var $r=this.length;return this.resize($r+1),this.emplace($r,u,d,g,y,T,C,P,L,k,U,X,K,fe,me,Me,Ae,je,Ze,ot,lt,yt,zt,Qt,Mr,cr,kr,pr,Tn)},s.prototype.emplace=function(u,d,g,y,T,C,P,L,k,U,X,K,fe,me,Me,Ae,je,Ze,ot,lt,yt,zt,Qt,Mr,cr,kr,pr,Tn,$r){var Tr=34*u,Pn=17*u;return this.int16[Tr+0]=d,this.int16[Tr+1]=g,this.int16[Tr+2]=y,this.int16[Tr+3]=T,this.int16[Tr+4]=C,this.int16[Tr+5]=P,this.int16[Tr+6]=L,this.int16[Tr+7]=k,this.uint16[Tr+8]=U,this.uint16[Tr+9]=X,this.uint16[Tr+10]=K,this.uint16[Tr+11]=fe,this.uint16[Tr+12]=me,this.uint16[Tr+13]=Me,this.uint16[Tr+14]=Ae,this.uint16[Tr+15]=je,this.uint16[Tr+16]=Ze,this.uint16[Tr+17]=ot,this.uint16[Tr+18]=lt,this.uint16[Tr+19]=yt,this.uint16[Tr+20]=zt,this.uint16[Tr+21]=Qt,this.uint16[Tr+22]=Mr,this.uint32[Pn+12]=cr,this.float32[Pn+13]=kr,this.float32[Pn+14]=pr,this.float32[Pn+15]=Tn,this.float32[Pn+16]=$r,u},s}($n);A1.prototype.bytesPerElement=68,_r("StructArrayLayout8i15ui1ul4f68",A1);var Zl=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u){var d=this.length;return this.resize(d+1),this.emplace(d,u)},s.prototype.emplace=function(u,d){return this.float32[1*u+0]=d,u},s}($n);Zl.prototype.bytesPerElement=4,_r("StructArrayLayout1f4",Zl);var us=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g){var y=this.length;return this.resize(y+1),this.emplace(y,u,d,g)},s.prototype.emplace=function(u,d,g,y){var T=3*u;return this.int16[T+0]=d,this.int16[T+1]=g,this.int16[T+2]=y,u},s}($n);us.prototype.bytesPerElement=6,_r("StructArrayLayout3i6",us);var wh=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g){var y=this.length;return this.resize(y+1),this.emplace(y,u,d,g)},s.prototype.emplace=function(u,d,g,y){var T=4*u;return this.uint32[2*u+0]=d,this.uint16[T+2]=g,this.uint16[T+3]=y,u},s}($n);wh.prototype.bytesPerElement=8,_r("StructArrayLayout1ul2ui8",wh);var Dc=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d){var g=this.length;return this.resize(g+1),this.emplace(g,u,d)},s.prototype.emplace=function(u,d,g){var y=2*u;return this.uint16[y+0]=d,this.uint16[y+1]=g,u},s}($n);Dc.prototype.bytesPerElement=4,_r("StructArrayLayout2ui4",Dc);var S1=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u){var d=this.length;return this.resize(d+1),this.emplace(d,u)},s.prototype.emplace=function(u,d){return this.uint16[1*u+0]=d,u},s}($n);S1.prototype.bytesPerElement=2,_r("StructArrayLayout1ui2",S1);var w1=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y){var T=this.length;return this.resize(T+1),this.emplace(T,u,d,g,y)},s.prototype.emplace=function(u,d,g,y,T){var C=4*u;return this.float32[C+0]=d,this.float32[C+1]=g,this.float32[C+2]=y,this.float32[C+3]=T,u},s}($n);w1.prototype.bytesPerElement=16,_r("StructArrayLayout4f16",w1);var c=function(i){function s(){i.apply(this,arguments)}i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s;var u={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return u.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},u.x1.get=function(){return this._structArray.int16[this._pos2+2]},u.y1.get=function(){return this._structArray.int16[this._pos2+3]},u.x2.get=function(){return this._structArray.int16[this._pos2+4]},u.y2.get=function(){return this._structArray.int16[this._pos2+5]},u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.anchorPoint.get=function(){return new E(this.anchorPointX,this.anchorPointY)},Object.defineProperties(s.prototype,u),s}(Eu);c.prototype.size=20;var f=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.get=function(u){return new c(this,u)},s}(T1);_r("CollisionBoxArray",f);var h=function(i){function s(){i.apply(this,arguments)}i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},u.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},u.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},u.segment.get=function(){return this._structArray.uint16[this._pos2+10]},u.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},u.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},u.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},u.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},u.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},u.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},u.placedOrientation.set=function(d){this._structArray.uint8[this._pos1+37]=d},u.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},u.hidden.set=function(d){this._structArray.uint8[this._pos1+38]=d},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},u.crossTileID.set=function(d){this._structArray.uint32[this._pos4+10]=d},u.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(s.prototype,u),s}(Eu);h.prototype.size=48;var _=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.get=function(u){return new h(this,u)},s}(Es);_r("PlacedSymbolArray",_);var x=function(i){function s(){i.apply(this,arguments)}i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},u.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},u.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},u.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},u.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},u.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},u.key.get=function(){return this._structArray.uint16[this._pos2+8]},u.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},u.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},u.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},u.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},u.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},u.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},u.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},u.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},u.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},u.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},u.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},u.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},u.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},u.crossTileID.set=function(d){this._structArray.uint32[this._pos4+12]=d},u.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},u.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},u.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},u.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(s.prototype,u),s}(Eu);x.prototype.size=68;var S=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.get=function(u){return new x(this,u)},s}(A1);_r("SymbolInstanceArray",S);var w=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.getoffsetX=function(u){return this.float32[1*u+0]},s}(Zl);_r("GlyphOffsetArray",w);var M=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.getx=function(u){return this.int16[3*u+0]},s.prototype.gety=function(u){return this.int16[3*u+1]},s.prototype.gettileUnitDistanceFromAnchor=function(u){return this.int16[3*u+2]},s}(us);_r("SymbolLineVertexArray",M);var F=function(i){function s(){i.apply(this,arguments)}i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s;var u={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(s.prototype,u),s}(Eu);F.prototype.size=8;var V=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.get=function(u){return new F(this,u)},s}(wh);_r("FeatureIndexArray",V);var ee=vo([{name:"a_pos",components:2,type:"Int16"}],4).members,re=function(i){i===void 0&&(i=[]),this.segments=i};function ne(i,s){return 256*(i=N(Math.floor(i),0,255))+N(Math.floor(s),0,255)}re.prototype.prepareSegment=function(i,s,u,d){var g=this.segments[this.segments.length-1];return i>re.MAX_VERTEX_ARRAY_LENGTH&&He("Max vertices per segment is "+re.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+i),(!g||g.vertexLength+i>re.MAX_VERTEX_ARRAY_LENGTH||g.sortKey!==d)&&(g={vertexOffset:s.length,primitiveOffset:u.length,vertexLength:0,primitiveLength:0},d!==void 0&&(g.sortKey=d),this.segments.push(g)),g},re.prototype.get=function(){return this.segments},re.prototype.destroy=function(){for(var i=0,s=this.segments;i>>16)*C&65535)<<16)&4294967295)<<15|L>>>17))*P+(((L>>>16)*P&65535)<<16)&4294967295)<<13|y>>>19))+((5*(y>>>16)&65535)<<16)&4294967295))+((58964+(T>>>16)&65535)<<16);switch(L=0,d){case 3:L^=(255&s.charCodeAt(k+2))<<16;case 2:L^=(255&s.charCodeAt(k+1))<<8;case 1:y^=L=(65535&(L=(L=(65535&(L^=255&s.charCodeAt(k)))*C+(((L>>>16)*C&65535)<<16)&4294967295)<<15|L>>>17))*P+(((L>>>16)*P&65535)<<16)&4294967295}return y^=s.length,y=2246822507*(65535&(y^=y>>>16))+((2246822507*(y>>>16)&65535)<<16)&4294967295,y=3266489909*(65535&(y^=y>>>13))+((3266489909*(y>>>16)&65535)<<16)&4294967295,(y^=y>>>16)>>>0}}),Ce=p(function(i){i.exports=function(s,u){for(var d,g=s.length,y=u^g,T=0;g>=4;)d=1540483477*(65535&(d=255&s.charCodeAt(T)|(255&s.charCodeAt(++T))<<8|(255&s.charCodeAt(++T))<<16|(255&s.charCodeAt(++T))<<24))+((1540483477*(d>>>16)&65535)<<16),y=1540483477*(65535&y)+((1540483477*(y>>>16)&65535)<<16)^(d=1540483477*(65535&(d^=d>>>24))+((1540483477*(d>>>16)&65535)<<16)),g-=4,++T;switch(g){case 3:y^=(255&s.charCodeAt(T+2))<<16;case 2:y^=(255&s.charCodeAt(T+1))<<8;case 1:y=1540483477*(65535&(y^=255&s.charCodeAt(T)))+((1540483477*(y>>>16)&65535)<<16)}return y=1540483477*(65535&(y^=y>>>13))+((1540483477*(y>>>16)&65535)<<16),(y^=y>>>15)>>>0}}),he=pe,we=Ce;he.murmur3=pe,he.murmur2=we;var Be=function(){this.ids=[],this.positions=[],this.indexed=!1};Be.prototype.add=function(i,s,u,d){this.ids.push(st(i)),this.positions.push(s,u,d)},Be.prototype.getPositions=function(i){for(var s=st(i),u=0,d=this.ids.length-1;u>1;this.ids[g]>=s?d=g:u=g+1}for(var y=[];this.ids[u]===s;)y.push({index:this.positions[3*u],start:this.positions[3*u+1],end:this.positions[3*u+2]}),u++;return y},Be.serialize=function(i,s){var u=new Float64Array(i.ids),d=new Uint32Array(i.positions);return function g(y,T,C,P){for(;C>1],k=C-1,U=P+1;;){do k++;while(y[k]L);if(k>=U)break;Je(y,k,U),Je(T,3*k,3*U),Je(T,3*k+1,3*U+1),Je(T,3*k+2,3*U+2)}U-CT.x+1||PT.y+1)&&He("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return u}function Pi(i,s){return{type:i.type,id:i.id,properties:i.properties,geometry:s?Ri(i):[]}}function ua(i,s,u,d,g){i.emplaceBack(2*s+(d+1)/2,2*u+(g+1)/2)}var ta=function(i){this.zoom=i.zoom,this.overscaling=i.overscaling,this.layers=i.layers,this.layerIds=this.layers.map(function(s){return s.id}),this.index=i.index,this.hasPattern=!1,this.layoutVertexArray=new Gl,this.indexArray=new js,this.segments=new re,this.programConfigurations=new Vr(i.layers,i.zoom),this.stateDependentLayerIds=this.layers.filter(function(s){return s.isStateDependent()}).map(function(s){return s.id})};function Xs(i,s){for(var u=0;u1){if(Ju(i,s))return!0;for(var d=0;d1?u:u.sub(s)._mult(g)._add(s))}function yl(i,s){for(var u,d,g,y=!1,T=0;Ts.y!=(g=u[P]).y>s.y&&s.x<(g.x-d.x)*(s.y-d.y)/(g.y-d.y)+d.x&&(y=!y);return y}function Ts(i,s){for(var u=!1,d=0,g=i.length-1;ds.y!=T.y>s.y&&s.x<(T.x-y.x)*(s.y-y.y)/(T.y-y.y)+y.x&&(u=!u)}return u}function ql(i,s,u){var d=u[0],g=u[2];if(i.xg.x&&s.x>g.x||i.yg.y&&s.y>g.y)return!1;var y=nt(i,s,u[0]);return y!==nt(i,s,u[1])||y!==nt(i,s,u[2])||y!==nt(i,s,u[3])}function Go(i,s,u){var d=s.paint.get(i).value;return d.kind==="constant"?d.value:u.programConfigurations.get(s.id).getMaxValue(i)}function Hi(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function xa(i,s,u,d,g){if(!s[0]&&!s[1])return i;var y=E.convert(s)._mult(g);u==="viewport"&&y._rotate(-d);for(var T=[],C=0;C=8192||k<0||k>=8192)){var U=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,i.sortKey),X=U.vertexLength;ua(this.layoutVertexArray,L,k,-1,-1),ua(this.layoutVertexArray,L,k,1,-1),ua(this.layoutVertexArray,L,k,1,1),ua(this.layoutVertexArray,L,k,-1,1),this.indexArray.emplaceBack(X,X+1,X+2),this.indexArray.emplaceBack(X,X+3,X+2),U.vertexLength+=4,U.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,i,u,{},d)},_r("CircleBucket",ta,{omit:["layers"]});var hs=new Ci({"circle-sort-key":new xr(te.layout_circle["circle-sort-key"])}),As={paint:new Ci({"circle-radius":new xr(te.paint_circle["circle-radius"]),"circle-color":new xr(te.paint_circle["circle-color"]),"circle-blur":new xr(te.paint_circle["circle-blur"]),"circle-opacity":new xr(te.paint_circle["circle-opacity"]),"circle-translate":new Rr(te.paint_circle["circle-translate"]),"circle-translate-anchor":new Rr(te.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Rr(te.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Rr(te.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new xr(te.paint_circle["circle-stroke-width"]),"circle-stroke-color":new xr(te.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new xr(te.paint_circle["circle-stroke-opacity"])}),layout:hs},On=typeof Float32Array<"u"?Float32Array:Array;function Fo(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}function ro(i,s,u){var d=s[0],g=s[1],y=s[2],T=s[3],C=s[4],P=s[5],L=s[6],k=s[7],U=s[8],X=s[9],K=s[10],fe=s[11],me=s[12],Me=s[13],Ae=s[14],je=s[15],Ze=u[0],ot=u[1],lt=u[2],yt=u[3];return i[0]=Ze*d+ot*C+lt*U+yt*me,i[1]=Ze*g+ot*P+lt*X+yt*Me,i[2]=Ze*y+ot*L+lt*K+yt*Ae,i[3]=Ze*T+ot*k+lt*fe+yt*je,i[4]=(Ze=u[4])*d+(ot=u[5])*C+(lt=u[6])*U+(yt=u[7])*me,i[5]=Ze*g+ot*P+lt*X+yt*Me,i[6]=Ze*y+ot*L+lt*K+yt*Ae,i[7]=Ze*T+ot*k+lt*fe+yt*je,i[8]=(Ze=u[8])*d+(ot=u[9])*C+(lt=u[10])*U+(yt=u[11])*me,i[9]=Ze*g+ot*P+lt*X+yt*Me,i[10]=Ze*y+ot*L+lt*K+yt*Ae,i[11]=Ze*T+ot*k+lt*fe+yt*je,i[12]=(Ze=u[12])*d+(ot=u[13])*C+(lt=u[14])*U+(yt=u[15])*me,i[13]=Ze*g+ot*P+lt*X+yt*Me,i[14]=Ze*y+ot*L+lt*K+yt*Ae,i[15]=Ze*T+ot*k+lt*fe+yt*je,i}Math.hypot||(Math.hypot=function(){for(var i=arguments,s=0,u=arguments.length;u--;)s+=i[u]*i[u];return Math.sqrt(s)});var Gs,C1=ro;function Yl(i,s,u){var d=s[0],g=s[1],y=s[2],T=s[3];return i[0]=u[0]*d+u[4]*g+u[8]*y+u[12]*T,i[1]=u[1]*d+u[5]*g+u[9]*y+u[13]*T,i[2]=u[2]*d+u[6]*g+u[10]*y+u[14]*T,i[3]=u[3]*d+u[7]*g+u[11]*y+u[15]*T,i}Gs=new On(3),On!=Float32Array&&(Gs[0]=0,Gs[1]=0,Gs[2]=0),function(){var i=new On(4);On!=Float32Array&&(i[0]=0,i[1]=0,i[2]=0,i[3]=0)}();var Ch=(function(){var i=new On(2);On!=Float32Array&&(i[0]=0,i[1]=0)}(),function(i){function s(u){i.call(this,u,As)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.createBucket=function(u){return new ta(u)},s.prototype.queryRadius=function(u){var d=u;return Go("circle-radius",this,d)+Go("circle-stroke-width",this,d)+Hi(this.paint.get("circle-translate"))},s.prototype.queryIntersectsFeature=function(u,d,g,y,T,C,P,L){for(var k=xa(u,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),C.angle,P),U=this.paint.get("circle-radius").evaluate(d,g)+this.paint.get("circle-stroke-width").evaluate(d,g),X=this.paint.get("circle-pitch-alignment")==="map",K=X?k:function(zt,Qt){return zt.map(function(Mr){return wu(Mr,Qt)})}(k,L),fe=X?U*P:U,me=0,Me=y;mei.width||g.height>i.height||u.x>i.width-g.width||u.y>i.height-g.height)throw new RangeError("out of range source coordinates for image copy");if(g.width>s.width||g.height>s.height||d.x>s.width-g.width||d.y>s.height-g.height)throw new RangeError("out of range destination coordinates for image copy");for(var T=i.data,C=s.data,P=0;P80*u){d=y=i[0],g=T=i[1];for(var fe=u;fey&&(y=C),P>T&&(T=P);L=(L=Math.max(y-d,T-g))!==0?1/L:0}return Rh(X,K,u,d,g,L),K}function N3(i,s,u,d,g){var y,T;if(g===Uc(i,s,u,d)>0)for(y=s;y=s;y-=d)T=O1(y,i[y],i[y+1],T);return T&&Bc(T,T.next)&&(Ru(T),T=T.next),T}function tc(i,s){if(!i)return i;s||(s=i);var u,d=i;do if(u=!1,d.steiner||!Bc(d,d.next)&&ji(d.prev,d,d.next)!==0)d=d.next;else{if(Ru(d),(d=s=d.prev)===d.next)break;u=!0}while(u||d!==s);return s}function Rh(i,s,u,d,g,y,T){if(i){!T&&y&&function(k,U,X,K){var fe=k;do fe.z===null&&(fe.z=M1(fe.x,fe.y,U,X,K)),fe.prevZ=fe.prev,fe.nextZ=fe.next,fe=fe.next;while(fe!==k);fe.prevZ.nextZ=null,fe.prevZ=null,function(me){var Me,Ae,je,Ze,ot,lt,yt,zt,Qt=1;do{for(Ae=me,me=null,ot=null,lt=0;Ae;){for(lt++,je=Ae,yt=0,Me=0;Me0||zt>0&&je;)yt!==0&&(zt===0||!je||Ae.z<=je.z)?(Ze=Ae,Ae=Ae.nextZ,yt--):(Ze=je,je=je.nextZ,zt--),ot?ot.nextZ=Ze:me=Ze,Ze.prevZ=ot,ot=Ze;Ae=je}ot.nextZ=null,Qt*=2}while(lt>1)}(fe)}(i,d,g,y);for(var C,P,L=i;i.prev!==i.next;)if(C=i.prev,P=i.next,y?__(i,d,g,y):m_(i))s.push(C.i/u),s.push(i.i/u),s.push(P.i/u),Ru(i),i=P.next,L=P.next;else if((i=P)===L){T?T===1?Rh(i=g_(tc(i),s,u),s,u,d,g,y,2):T===2&&v_(i,s,u,d,g,y):Rh(tc(i),s,u,d,g,y,1);break}}}function m_(i){var s=i.prev,u=i,d=i.next;if(ji(s,u,d)>=0)return!1;for(var g=i.next.next;g!==i.prev;){if(rc(s.x,s.y,u.x,u.y,d.x,d.y,g.x,g.y)&&ji(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function __(i,s,u,d){var g=i.prev,y=i,T=i.next;if(ji(g,y,T)>=0)return!1;for(var C=g.x>y.x?g.x>T.x?g.x:T.x:y.x>T.x?y.x:T.x,P=g.y>y.y?g.y>T.y?g.y:T.y:y.y>T.y?y.y:T.y,L=M1(g.x=L&&X&&X.z<=k;){if(U!==i.prev&&U!==i.next&&rc(g.x,g.y,y.x,y.y,T.x,T.y,U.x,U.y)&&ji(U.prev,U,U.next)>=0||(U=U.prevZ,X!==i.prev&&X!==i.next&&rc(g.x,g.y,y.x,y.y,T.x,T.y,X.x,X.y)&&ji(X.prev,X,X.next)>=0))return!1;X=X.nextZ}for(;U&&U.z>=L;){if(U!==i.prev&&U!==i.next&&rc(g.x,g.y,y.x,y.y,T.x,T.y,U.x,U.y)&&ji(U.prev,U,U.next)>=0)return!1;U=U.prevZ}for(;X&&X.z<=k;){if(X!==i.prev&&X!==i.next&&rc(g.x,g.y,y.x,y.y,T.x,T.y,X.x,X.y)&&ji(X.prev,X,X.next)>=0)return!1;X=X.nextZ}return!0}function g_(i,s,u){var d=i;do{var g=d.prev,y=d.next.next;!Bc(g,y)&&wf(g,d,d.next,y)&&nc(g,y)&&nc(y,g)&&(s.push(g.i/u),s.push(d.i/u),s.push(y.i/u),Ru(d),Ru(d.next),d=i=y),d=d.next}while(d!==i);return tc(d)}function v_(i,s,u,d,g,y){var T=i;do{for(var C=T.next.next;C!==T.prev;){if(T.i!==C.i&&Sf(T,C)){var P=P1(T,C);return T=tc(T,T.next),P=tc(P,P.next),Rh(T,s,u,d,g,y),void Rh(P,s,u,d,g,y)}C=C.next}T=T.next}while(T!==i)}function y_(i,s){return i.x-s.x}function jp(i,s){if(s=function(d,g){var y,T=g,C=d.x,P=d.y,L=-1/0;do{if(P<=T.y&&P>=T.next.y&&T.next.y!==T.y){var k=T.x+(P-T.y)*(T.next.x-T.x)/(T.next.y-T.y);if(k<=C&&k>L){if(L=k,k===C){if(P===T.y)return T;if(P===T.next.y)return T.next}y=T.x=T.x&&T.x>=K&&C!==T.x&&rc(Py.x||T.x===y.x&&Tf(y,T)))&&(y=T,me=U)),T=T.next;while(T!==X);return y}(i,s)){var u=P1(s,i);tc(s,s.next),tc(u,u.next)}}function Tf(i,s){return ji(i.prev,i,s.prev)<0&&ji(s.next,i,i.next)<0}function M1(i,s,u,d,g){return(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i=32767*(i-u)*g)|i<<8))|i<<4))|i<<2))|i<<1))|(s=1431655765&((s=858993459&((s=252645135&((s=16711935&((s=32767*(s-d)*g)|s<<8))|s<<4))|s<<2))|s<<1))<<1}function Af(i){var s=i,u=i;do(s.x=0&&(i-T)*(d-C)-(u-T)*(s-C)>=0&&(u-T)*(y-C)-(g-T)*(d-C)>=0}function Sf(i,s){return i.next.i!==s.i&&i.prev.i!==s.i&&!function(u,d){var g=u;do{if(g.i!==u.i&&g.next.i!==u.i&&g.i!==d.i&&g.next.i!==d.i&&wf(g,g.next,u,d))return!0;g=g.next}while(g!==u);return!1}(i,s)&&(nc(i,s)&&nc(s,i)&&function(u,d){var g=u,y=!1,T=(u.x+d.x)/2,C=(u.y+d.y)/2;do g.y>C!=g.next.y>C&&g.next.y!==g.y&&T<(g.next.x-g.x)*(C-g.y)/(g.next.y-g.y)+g.x&&(y=!y),g=g.next;while(g!==u);return y}(i,s)&&(ji(i.prev,i,s.prev)||ji(i,s.prev,s))||Bc(i,s)&&ji(i.prev,i,i.next)>0&&ji(s.prev,s,s.next)>0)}function ji(i,s,u){return(s.y-i.y)*(u.x-s.x)-(s.x-i.x)*(u.y-s.y)}function Bc(i,s){return i.x===s.x&&i.y===s.y}function wf(i,s,u,d){var g=Nc(ji(i,s,u)),y=Nc(ji(i,s,d)),T=Nc(ji(u,d,i)),C=Nc(ji(u,d,s));return g!==y&&T!==C||!(g!==0||!Fc(i,u,s))||!(y!==0||!Fc(i,d,s))||!(T!==0||!Fc(u,i,d))||!(C!==0||!Fc(u,s,d))}function Fc(i,s,u){return s.x<=Math.max(i.x,u.x)&&s.x>=Math.min(i.x,u.x)&&s.y<=Math.max(i.y,u.y)&&s.y>=Math.min(i.y,u.y)}function Nc(i){return i>0?1:i<0?-1:0}function nc(i,s){return ji(i.prev,i,i.next)<0?ji(i,s,i.next)>=0&&ji(i,i.prev,s)>=0:ji(i,s,i.prev)<0||ji(i,i.next,s)<0}function P1(i,s){var u=new kc(i.i,i.x,i.y),d=new kc(s.i,s.x,s.y),g=i.next,y=s.prev;return i.next=s,s.prev=i,u.next=g,g.prev=u,d.next=u,u.prev=d,y.next=d,d.prev=y,d}function O1(i,s,u,d){var g=new kc(i,s,u);return d?(g.next=d.next,g.prev=d,d.next.prev=g,d.next=g):(g.prev=g,g.next=g),g}function Ru(i){i.next.prev=i.prev,i.prev.next=i.next,i.prevZ&&(i.prevZ.nextZ=i.nextZ),i.nextZ&&(i.nextZ.prevZ=i.prevZ)}function kc(i,s,u){this.i=i,this.x=s,this.y=u,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Uc(i,s,u,d){for(var g=0,y=s,T=u-d;yP;){if(L-P>600){var U=L-P+1,X=C-P+1,K=Math.log(U),fe=.5*Math.exp(2*K/3),me=.5*Math.sqrt(K*fe*(U-fe)/U)*(X-U/2<0?-1:1);y(T,C,Math.max(P,Math.floor(C-X*fe/U+me)),Math.min(L,Math.floor(C+(U-X)*fe/U+me)),k)}var Me=T[C],Ae=P,je=L;for(Iu(T,P,C),k(T[L],Me)>0&&Iu(T,P,L);Ae0;)je--}k(T[P],Me)===0?Iu(T,P,je):Iu(T,++je,L),je<=C&&(P=je+1),C<=je&&(L=je-1)}})(i,s,u||0,d||i.length-1,g||zc)}function Iu(i,s,u){var d=i[s];i[s]=i[u],i[u]=d}function zc(i,s){return is?1:0}function Cf(i,s){var u=i.length;if(u<=1)return[i];for(var d,g,y=[],T=0;T1)for(var P=0;P0&&u.holes.push(d+=i[g-1].length)}return u},bf.default=d_;var xl=function(i){this.zoom=i.zoom,this.overscaling=i.overscaling,this.layers=i.layers,this.layerIds=this.layers.map(function(s){return s.id}),this.index=i.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Gl,this.indexArray=new js,this.indexArray2=new Dc,this.programConfigurations=new Vr(i.layers,i.zoom),this.segments=new re,this.segments2=new re,this.stateDependentLayerIds=this.layers.filter(function(s){return s.isStateDependent()}).map(function(s){return s.id})};xl.prototype.populate=function(i,s,u){this.hasPattern=Wp("fill",this.layers,s);for(var d=this.layers[0].layout.get("fill-sort-key"),g=[],y=0,T=i;y>3}if(g--,d===1||d===2)y+=i.readSVarint(),T+=i.readSVarint(),d===1&&(s&&C.push(s),s=[]),s.push(new E(y,T));else{if(d!==7)throw new Error("unknown command "+d);s&&s.push(s[0].clone())}}return s&&C.push(s),C},Vc.prototype.bbox=function(){var i=this._pbf;i.pos=this._geometry;for(var s=i.readVarint()+i.pos,u=1,d=0,g=0,y=0,T=1/0,C=-1/0,P=1/0,L=-1/0;i.pos>3}if(d--,u===1||u===2)(g+=i.readSVarint())C&&(C=g),(y+=i.readSVarint())L&&(L=y);else if(u!==7)throw new Error("unknown command "+u)}return[T,P,C,L]},Vc.prototype.toGeoJSON=function(i,s,u){var d,g,y=this.extent*Math.pow(2,u),T=this.extent*i,C=this.extent*s,P=this.loadGeometry(),L=Vc.types[this.type];function k(K){for(var fe=0;fe>3;g=T===1?d.readString():T===2?d.readFloat():T===3?d.readDouble():T===4?d.readVarint64():T===5?d.readVarint():T===6?d.readSVarint():T===7?d.readBoolean():null}return g}(u))}function j3(i,s,u){if(i===3){var d=new Zp(u,u.readVarint()+u.pos);d.length&&(s[d.name]=d)}}Hc.prototype.feature=function(i){if(i<0||i>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[i];var s=this._pbf.readVarint()+this._pbf.pos;return new H3(this._pbf,s,this.extent,this._keys,this._values)};var ac={VectorTile:function(i,s){this.layers=i.readFields(j3,{},s)},VectorTileFeature:H3,VectorTileLayer:Zp},Rf=ac.VectorTileFeature.types,If=Math.pow(2,13);function Ea(i,s,u,d,g,y,T,C){i.emplaceBack(s,u,2*Math.floor(d*If)+T,g*If*2,y*If*2,Math.round(C))}var ha=function(i){this.zoom=i.zoom,this.overscaling=i.overscaling,this.layers=i.layers,this.layerIds=this.layers.map(function(s){return s.id}),this.index=i.index,this.hasPattern=!1,this.layoutVertexArray=new vl,this.indexArray=new js,this.programConfigurations=new Vr(i.layers,i.zoom),this.segments=new re,this.stateDependentLayerIds=this.layers.filter(function(s){return s.isStateDependent()}).map(function(s){return s.id})};function xo(i,s){return i.x===s.x&&(i.x<0||i.x>8192)||i.y===s.y&&(i.y<0||i.y>8192)}ha.prototype.populate=function(i,s,u){this.features=[],this.hasPattern=Wp("fill-extrusion",this.layers,s);for(var d=0,g=i;d8192})||Pn.every(function(pn){return pn.y<0})||Pn.every(function(pn){return pn.y>8192})))for(var me=0,Me=0;Me=1){var je=fe[Me-1];if(!xo(Ae,je)){U.vertexLength+4>re.MAX_VERTEX_ARRAY_LENGTH&&(U=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Ze=Ae.sub(je)._perp()._unit(),ot=je.dist(Ae);me+ot>32768&&(me=0),Ea(this.layoutVertexArray,Ae.x,Ae.y,Ze.x,Ze.y,0,0,me),Ea(this.layoutVertexArray,Ae.x,Ae.y,Ze.x,Ze.y,0,1,me),Ea(this.layoutVertexArray,je.x,je.y,Ze.x,Ze.y,0,0,me+=ot),Ea(this.layoutVertexArray,je.x,je.y,Ze.x,Ze.y,0,1,me);var lt=U.vertexLength;this.indexArray.emplaceBack(lt,lt+2,lt+1),this.indexArray.emplaceBack(lt+1,lt+2,lt+3),U.vertexLength+=4,U.primitiveLength+=2}}}}if(U.vertexLength+P>re.MAX_VERTEX_ARRAY_LENGTH&&(U=this.segments.prepareSegment(P,this.layoutVertexArray,this.indexArray)),Rf[i.type]==="Polygon"){for(var yt=[],zt=[],Qt=U.vertexLength,Mr=0,cr=C;Mr=2&&i[P-1].equals(i[P-2]);)P--;for(var L=0;L0;if(zt&&Ae>L){var Mr=k.dist(K);if(Mr>2*U){var cr=k.sub(k.sub(K)._mult(U/Mr)._round());this.updateDistance(K,cr),this.addCurrentVertex(cr,me,0,0,X),K=cr}}var kr=K&&fe,pr=kr?u:C?"butt":d;if(kr&&pr==="round"&&(ltg&&(pr="bevel"),pr==="bevel"&&(lt>2&&(pr="flipbevel"),lt100)je=Me.mult(-1);else{var Tn=lt*me.add(Me).mag()/me.sub(Me).mag();je._perp()._mult(Tn*(Qt?-1:1))}this.addCurrentVertex(k,je,0,0,X),this.addCurrentVertex(k,je.mult(-1),0,0,X)}else if(pr==="bevel"||pr==="fakeround"){var $r=-Math.sqrt(lt*lt-1),Tr=Qt?$r:0,Pn=Qt?0:$r;if(K&&this.addCurrentVertex(k,me,Tr,Pn,X),pr==="fakeround")for(var pn=Math.round(180*yt/Math.PI/20),Hn=1;Hn2*U){var Di=k.add(fe.sub(k)._mult(U/$i)._round());this.updateDistance(k,Di),this.addCurrentVertex(Di,Me,0,0,X),k=Di}}}}},Ta.prototype.addCurrentVertex=function(i,s,u,d,g,y){y===void 0&&(y=!1);var T=s.y*d-s.x,C=-s.y-s.x*d;this.addHalfVertex(i,s.x+s.y*u,s.y-s.x*u,y,!1,u,g),this.addHalfVertex(i,T,C,y,!0,-d,g),this.distance>Z3/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(i,s,u,d,g,y))},Ta.prototype.addHalfVertex=function(i,s,u,d,g,y,T){var C=.5*(this.lineClips?this.scaledDistance*(Z3-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((i.x<<1)+(d?1:0),(i.y<<1)+(g?1:0),Math.round(63*s)+128,Math.round(63*u)+128,1+(y===0?0:y<0?-1:1)|(63&C)<<2,C>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var P=T.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,P),T.primitiveLength++),g?this.e2=P:this.e1=P},Ta.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Ta.prototype.updateDistance=function(i,s){this.distance+=i.dist(s),this.updateScaledDistance()},_r("LineBucket",Ta,{omit:["layers","patternFeatures"]});var A_=new Ci({"line-cap":new Rr(te.layout_line["line-cap"]),"line-join":new xr(te.layout_line["line-join"]),"line-miter-limit":new Rr(te.layout_line["line-miter-limit"]),"line-round-limit":new Rr(te.layout_line["line-round-limit"]),"line-sort-key":new xr(te.layout_line["line-sort-key"])}),$3={paint:new Ci({"line-opacity":new xr(te.paint_line["line-opacity"]),"line-color":new xr(te.paint_line["line-color"]),"line-translate":new Rr(te.paint_line["line-translate"]),"line-translate-anchor":new Rr(te.paint_line["line-translate-anchor"]),"line-width":new xr(te.paint_line["line-width"]),"line-gap-width":new xr(te.paint_line["line-gap-width"]),"line-offset":new xr(te.paint_line["line-offset"]),"line-blur":new xr(te.paint_line["line-blur"]),"line-dasharray":new ea(te.paint_line["line-dasharray"]),"line-pattern":new Ba(te.paint_line["line-pattern"]),"line-gradient":new bs(te.paint_line["line-gradient"])}),layout:A_},$p=new(function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.possiblyEvaluate=function(u,d){return d=new cn(Math.floor(d.zoom),{now:d.now,fadeDuration:d.fadeDuration,zoomHistory:d.zoomHistory,transition:d.transition}),i.prototype.possiblyEvaluate.call(this,u,d)},s.prototype.evaluate=function(u,d,g,y){return d=G({},d,{zoom:Math.floor(d.zoom)}),i.prototype.evaluate.call(this,u,d,g,y)},s}(xr))($3.paint.properties["line-width"].specification);$p.useIntegerZoom=!0;var q3=function(i){function s(u){i.call(this,u,$3),this.gradientVersion=0}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._handleSpecialPaintPropertyUpdate=function(u){u==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Oa,this.gradientVersion=(this.gradientVersion+1)%R)},s.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},s.prototype.recalculate=function(u,d){i.prototype.recalculate.call(this,u,d),this.paint._values["line-floorwidth"]=$p.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,u)},s.prototype.createBucket=function(u){return new Ta(u)},s.prototype.queryRadius=function(u){var d=u,g=qp(Go("line-width",this,d),Go("line-gap-width",this,d)),y=Go("line-offset",this,d);return g/2+Math.abs(y)+Hi(this.paint.get("line-translate"))},s.prototype.queryIntersectsFeature=function(u,d,g,y,T,C,P){var L=xa(u,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),C.angle,P),k=P/2*qp(this.paint.get("line-width").evaluate(d,g),this.paint.get("line-gap-width").evaluate(d,g)),U=this.paint.get("line-offset").evaluate(d,g);return U&&(y=function(X,K){for(var fe=[],me=new E(0,0),Me=0;Me=3){for(var Ae=0;Ae0?s+2*i:i}var S_=vo([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),w_=vo([{name:"a_projected_pos",components:3,type:"Float32"}],4),Y3=(vo([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),vo([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),K3=(vo([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),vo([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),B=vo([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ae(i,s,u){return i.sections.forEach(function(d){d.text=function(g,y,T){var C=y.layout.get("text-transform").evaluate(T,{});return C==="uppercase"?g=g.toLocaleUpperCase():C==="lowercase"&&(g=g.toLocaleLowerCase()),$a.applyArabicShaping&&(g=$a.applyArabicShaping(g)),g}(d.text,s,u)}),i}vo([{name:"triangle",components:3,type:"Uint16"}]),vo([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),vo([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),vo([{type:"Float32",name:"offsetX"}]),vo([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var be={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},et=function(i,s,u,d,g){var y,T,C=8*g-d-1,P=(1<>1,k=-7,U=u?g-1:0,X=u?-1:1,K=i[s+U];for(U+=X,y=K&(1<<-k)-1,K>>=-k,k+=C;k>0;y=256*y+i[s+U],U+=X,k-=8);for(T=y&(1<<-k)-1,y>>=-k,k+=d;k>0;T=256*T+i[s+U],U+=X,k-=8);if(y===0)y=1-L;else{if(y===P)return T?NaN:1/0*(K?-1:1);T+=Math.pow(2,d),y-=L}return(K?-1:1)*T*Math.pow(2,y-d)},gt=function(i,s,u,d,g,y){var T,C,P,L=8*y-g-1,k=(1<>1,X=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,K=d?0:y-1,fe=d?1:-1,me=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(C=isNaN(s)?1:0,T=k):(T=Math.floor(Math.log(s)/Math.LN2),s*(P=Math.pow(2,-T))<1&&(T--,P*=2),(s+=T+U>=1?X/P:X*Math.pow(2,1-U))*P>=2&&(T++,P/=2),T+U>=k?(C=0,T=k):T+U>=1?(C=(s*P-1)*Math.pow(2,g),T+=U):(C=s*Math.pow(2,U-1)*Math.pow(2,g),T=0));g>=8;i[u+K]=255&C,K+=fe,C/=256,g-=8);for(T=T<0;i[u+K]=255&T,K+=fe,T/=256,L-=8);i[u+K-fe]|=128*me},rt=$e;function $e(i){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(i)?i:new Uint8Array(i||0),this.pos=0,this.type=0,this.length=this.buf.length}$e.Varint=0,$e.Fixed64=1,$e.Bytes=2,$e.Fixed32=5;var Bt=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function It(i){return i.type===$e.Bytes?i.readVarint()+i.pos:i.pos+1}function Zt(i,s,u){return u?4294967296*s+(i>>>0):4294967296*(s>>>0)+(i>>>0)}function kt(i,s,u){var d=s<=16383?1:s<=2097151?2:s<=268435455?3:Math.floor(Math.log(s)/(7*Math.LN2));u.realloc(d);for(var g=u.pos-1;g>=i;g--)u.buf[g+d]=u.buf[g]}function Xt(i,s){for(var u=0;u>>8,i[u+2]=s>>>16,i[u+3]=s>>>24}function ir(i,s){return(i[s]|i[s+1]<<8|i[s+2]<<16)+(i[s+3]<<24)}function wt(i,s,u){i===1&&u.readMessage(er,s)}function er(i,s,u){if(i===3){var d=u.readMessage(Fr,{}),g=d.width,y=d.height,T=d.left,C=d.top,P=d.advance;s.push({id:d.id,bitmap:new ec({width:g+6,height:y+6},d.bitmap),metrics:{width:g,height:y,left:T,top:C,advance:P}})}}function Fr(i,s,u){i===1?s.id=u.readVarint():i===2?s.bitmap=u.readBytes():i===3?s.width=u.readVarint():i===4?s.height=u.readVarint():i===5?s.left=u.readSVarint():i===6?s.top=u.readSVarint():i===7&&(s.advance=u.readVarint())}function rn(i){for(var s=0,u=0,d=0,g=i;d=0;X--){var K=T[X];if(!(U.w>K.w||U.h>K.h)){if(U.x=K.x,U.y=K.y,P=Math.max(P,U.y+U.h),C=Math.max(C,U.x+U.w),U.w===K.w&&U.h===K.h){var fe=T.pop();X>3,y=this.pos;this.type=7&d,i(g,s,this),this.pos===y&&this.skip(d)}return s},readMessage:function(i,s){return this.readFields(i,s,this.readVarint()+this.pos)},readFixed32:function(){var i=sr(this.buf,this.pos);return this.pos+=4,i},readSFixed32:function(){var i=ir(this.buf,this.pos);return this.pos+=4,i},readFixed64:function(){var i=sr(this.buf,this.pos)+4294967296*sr(this.buf,this.pos+4);return this.pos+=8,i},readSFixed64:function(){var i=sr(this.buf,this.pos)+4294967296*ir(this.buf,this.pos+4);return this.pos+=8,i},readFloat:function(){var i=et(this.buf,this.pos,!0,23,4);return this.pos+=4,i},readDouble:function(){var i=et(this.buf,this.pos,!0,52,8);return this.pos+=8,i},readVarint:function(i){var s,u,d=this.buf;return s=127&(u=d[this.pos++]),u<128?s:(s|=(127&(u=d[this.pos++]))<<7,u<128?s:(s|=(127&(u=d[this.pos++]))<<14,u<128?s:(s|=(127&(u=d[this.pos++]))<<21,u<128?s:function(g,y,T){var C,P,L=T.buf;if(C=(112&(P=L[T.pos++]))>>4,P<128||(C|=(127&(P=L[T.pos++]))<<3,P<128)||(C|=(127&(P=L[T.pos++]))<<10,P<128)||(C|=(127&(P=L[T.pos++]))<<17,P<128)||(C|=(127&(P=L[T.pos++]))<<24,P<128)||(C|=(1&(P=L[T.pos++]))<<31,P<128))return Zt(g,C,y);throw new Error("Expected varint not more than 10 bytes")}(s|=(15&(u=d[this.pos]))<<28,i,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var i=this.readVarint();return i%2==1?(i+1)/-2:i/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var i=this.readVarint()+this.pos,s=this.pos;return this.pos=i,i-s>=12&&Bt?function(u,d,g){return Bt.decode(u.subarray(d,g))}(this.buf,s,i):function(u,d,g){for(var y="",T=d;T239?4:k>223?3:k>191?2:1;if(T+X>g)break;X===1?k<128&&(U=k):X===2?(192&(C=u[T+1]))==128&&(U=(31&k)<<6|63&C)<=127&&(U=null):X===3?(P=u[T+2],(192&(C=u[T+1]))==128&&(192&P)==128&&((U=(15&k)<<12|(63&C)<<6|63&P)<=2047||U>=55296&&U<=57343)&&(U=null)):X===4&&(P=u[T+2],L=u[T+3],(192&(C=u[T+1]))==128&&(192&P)==128&&(192&L)==128&&((U=(15&k)<<18|(63&C)<<12|(63&P)<<6|63&L)<=65535||U>=1114112)&&(U=null)),U===null?(U=65533,X=1):U>65535&&(U-=65536,y+=String.fromCharCode(U>>>10&1023|55296),U=56320|1023&U),y+=String.fromCharCode(U),T+=X}return y}(this.buf,s,i)},readBytes:function(){var i=this.readVarint()+this.pos,s=this.buf.subarray(this.pos,i);return this.pos=i,s},readPackedVarint:function(i,s){if(this.type!==$e.Bytes)return i.push(this.readVarint(s));var u=It(this);for(i=i||[];this.pos127;);else if(s===$e.Bytes)this.pos=this.readVarint()+this.pos;else if(s===$e.Fixed32)this.pos+=4;else{if(s!==$e.Fixed64)throw new Error("Unimplemented type: "+s);this.pos+=8}},writeTag:function(i,s){this.writeVarint(i<<3|s)},realloc:function(i){for(var s=this.length||16;s268435455||i<0?function(s,u){var d,g;if(s>=0?(d=s%4294967296|0,g=s/4294967296|0):(g=~(-s/4294967296),4294967295^(d=~(-s%4294967296))?d=d+1|0:(d=0,g=g+1|0)),s>=18446744073709552e3||s<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");u.realloc(10),function(y,T,C){C.buf[C.pos++]=127&y|128,y>>>=7,C.buf[C.pos++]=127&y|128,y>>>=7,C.buf[C.pos++]=127&y|128,y>>>=7,C.buf[C.pos++]=127&y|128,C.buf[C.pos]=127&(y>>>=7)}(d,0,u),function(y,T){var C=(7&y)<<4;T.buf[T.pos++]|=C|((y>>>=3)?128:0),y&&(T.buf[T.pos++]=127&y|((y>>>=7)?128:0),y&&(T.buf[T.pos++]=127&y|((y>>>=7)?128:0),y&&(T.buf[T.pos++]=127&y|((y>>>=7)?128:0),y&&(T.buf[T.pos++]=127&y|((y>>>=7)?128:0),y&&(T.buf[T.pos++]=127&y)))))}(g,u)}(i,this):(this.realloc(4),this.buf[this.pos++]=127&i|(i>127?128:0),i<=127||(this.buf[this.pos++]=127&(i>>>=7)|(i>127?128:0),i<=127||(this.buf[this.pos++]=127&(i>>>=7)|(i>127?128:0),i<=127||(this.buf[this.pos++]=i>>>7&127))))},writeSVarint:function(i){this.writeVarint(i<0?2*-i-1:2*i)},writeBoolean:function(i){this.writeVarint(!!i)},writeString:function(i){i=String(i),this.realloc(4*i.length),this.pos++;var s=this.pos;this.pos=function(d,g,y){for(var T,C,P=0;P55295&&T<57344){if(!C){T>56319||P+1===g.length?(d[y++]=239,d[y++]=191,d[y++]=189):C=T;continue}if(T<56320){d[y++]=239,d[y++]=191,d[y++]=189,C=T;continue}T=C-55296<<10|T-56320|65536,C=null}else C&&(d[y++]=239,d[y++]=191,d[y++]=189,C=null);T<128?d[y++]=T:(T<2048?d[y++]=T>>6|192:(T<65536?d[y++]=T>>12|224:(d[y++]=T>>18|240,d[y++]=T>>12&63|128),d[y++]=T>>6&63|128),d[y++]=63&T|128)}return y}(this.buf,i,this.pos);var u=this.pos-s;u>=128&&kt(s,u,this),this.pos=s-1,this.writeVarint(u),this.pos+=u},writeFloat:function(i){this.realloc(4),gt(this.buf,i,this.pos,!0,23,4),this.pos+=4},writeDouble:function(i){this.realloc(8),gt(this.buf,i,this.pos,!0,52,8),this.pos+=8},writeBytes:function(i){var s=i.length;this.writeVarint(s),this.realloc(s);for(var u=0;u=128&&kt(u,d,this),this.pos=u-1,this.writeVarint(d),this.pos+=d},writeMessage:function(i,s,u){this.writeTag(i,$e.Bytes),this.writeRawMessage(s,u)},writePackedVarint:function(i,s){s.length&&this.writeMessage(i,Xt,s)},writePackedSVarint:function(i,s){s.length&&this.writeMessage(i,Kt,s)},writePackedBoolean:function(i,s){s.length&&this.writeMessage(i,Xe,s)},writePackedFloat:function(i,s){s.length&&this.writeMessage(i,Mt,s)},writePackedDouble:function(i,s){s.length&&this.writeMessage(i,Wt,s)},writePackedFixed32:function(i,s){s.length&&this.writeMessage(i,ut,s)},writePackedSFixed32:function(i,s){s.length&&this.writeMessage(i,Ft,s)},writePackedFixed64:function(i,s){s.length&&this.writeMessage(i,nr,s)},writePackedSFixed64:function(i,s){s.length&&this.writeMessage(i,At,s)},writeBytesField:function(i,s){this.writeTag(i,$e.Bytes),this.writeBytes(s)},writeFixed32Field:function(i,s){this.writeTag(i,$e.Fixed32),this.writeFixed32(s)},writeSFixed32Field:function(i,s){this.writeTag(i,$e.Fixed32),this.writeSFixed32(s)},writeFixed64Field:function(i,s){this.writeTag(i,$e.Fixed64),this.writeFixed64(s)},writeSFixed64Field:function(i,s){this.writeTag(i,$e.Fixed64),this.writeSFixed64(s)},writeVarintField:function(i,s){this.writeTag(i,$e.Varint),this.writeVarint(s)},writeSVarintField:function(i,s){this.writeTag(i,$e.Varint),this.writeSVarint(s)},writeStringField:function(i,s){this.writeTag(i,$e.Bytes),this.writeString(s)},writeFloatField:function(i,s){this.writeTag(i,$e.Fixed32),this.writeFloat(s)},writeDoubleField:function(i,s){this.writeTag(i,$e.Fixed64),this.writeDouble(s)},writeBooleanField:function(i,s){this.writeVarintField(i,!!s)}};var tr=function(i,s){var u=s.pixelRatio,d=s.version,g=s.stretchX,y=s.stretchY,T=s.content;this.paddedRect=i,this.pixelRatio=u,this.stretchX=g,this.stretchY=y,this.content=T,this.version=d},Dt={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};Dt.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},Dt.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},Dt.tlbr.get=function(){return this.tl.concat(this.br)},Dt.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(tr.prototype,Dt);var vt=function(i,s){var u={},d={};this.haveRenderCallbacks=[];var g=[];this.addImages(i,u,g),this.addImages(s,d,g);var y=rn(g),T=new ba({width:y.w||1,height:y.h||1});for(var C in i){var P=i[C],L=u[C].paddedRect;ba.copy(P.data,T,{x:0,y:0},{x:L.x+1,y:L.y+1},P.data)}for(var k in s){var U=s[k],X=d[k].paddedRect,K=X.x+1,fe=X.y+1,me=U.data.width,Me=U.data.height;ba.copy(U.data,T,{x:0,y:0},{x:K,y:fe},U.data),ba.copy(U.data,T,{x:0,y:Me-1},{x:K,y:fe-1},{width:me,height:1}),ba.copy(U.data,T,{x:0,y:0},{x:K,y:fe+Me},{width:me,height:1}),ba.copy(U.data,T,{x:me-1,y:0},{x:K-1,y:fe},{width:1,height:Me}),ba.copy(U.data,T,{x:0,y:0},{x:K+me,y:fe},{width:1,height:Me})}this.image=T,this.iconPositions=u,this.patternPositions=d};vt.prototype.addImages=function(i,s,u){for(var d in i){var g=i[d],y={x:0,y:0,w:g.data.width+2,h:g.data.height+2};u.push(y),s[d]=new tr(y,g),g.hasRenderCallback&&this.haveRenderCallbacks.push(d)}},vt.prototype.patchUpdatedImages=function(i,s){for(var u in i.dispatchRenderCallbacks(this.haveRenderCallbacks),i.updatedImages)this.patchUpdatedImage(this.iconPositions[u],i.getImage(u),s),this.patchUpdatedImage(this.patternPositions[u],i.getImage(u),s)},vt.prototype.patchUpdatedImage=function(i,s,u){if(i&&s&&i.version!==s.version){i.version=s.version;var d=i.tl;u.update(s.data,void 0,{x:d[0],y:d[1]})}},_r("ImagePosition",tr),_r("ImageAtlas",vt);var Nr={horizontal:1,vertical:2,horizontalOnly:3},En=function(){this.scale=1,this.fontStack="",this.imageName=null};En.forText=function(i,s){var u=new En;return u.scale=i||1,u.fontStack=s,u},En.forImage=function(i){var s=new En;return s.imageName=i,s};var lr=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function mn(i,s,u,d,g,y,T,C,P,L,k,U,X,K,fe,me){var Me,Ae=lr.fromFeature(i,g);U===Nr.vertical&&Ae.verticalizePunctuation();var je=$a.processBidirectionalText,Ze=$a.processStyledBidirectionalText;if(je&&Ae.sections.length===1){Me=[];for(var ot=0,lt=je(Ae.toString(),io(Ae,L,y,s,d,K,fe));ot0&&Df>So&&(So=Df)}else{var r0=pn[Qn.fontStack],Bf=r0&&r0[$s];if(Bf&&Bf.rect)uc=Bf.rect,so=Bf.metrics;else{var Jp=Pn[Qn.fontStack],n0=Jp&&Jp[$s];if(!n0)continue;so=n0.metrics}lc=24*(Gn-Qn.scale)}Lh?(Tr.verticalizable=!0,Ii.push({glyph:$s,imageName:Ql,x:qo,y:ka+lc,vertical:Lh,scale:Qn.scale,fontStack:Qn.fontStack,sectionIndex:sc,metrics:so,rect:uc}),qo+=Of*Qn.scale+Di):(Ii.push({glyph:$s,imageName:Ql,x:qo,y:ka+lc,vertical:Lh,scale:Qn.scale,fontStack:Qn.fontStack,sectionIndex:sc,metrics:so,rect:uc}),qo+=so.advance*Qn.scale+Di)}Ii.length!==0&&(ia=Math.max(qo-Di,ia),bo(Ii,0,Ii.length-1,ao,So)),qo=0;var i0=Kn*Gn+So;Aa.lineOffset=Math.max(So,Ka),ka+=i0,Ua=Math.max(i0,Ua),++oa}else ka+=Kn,++oa}var Gc,ed=ka- -17,Ff=xi(Li),D1=Ff.horizontalAlign,Nf=Ff.verticalAlign;(function(o0,a0,td,rd,s0,nd,id,od,l0){var kf,u0=(a0-td)*s0;kf=nd!==id?-od*rd- -17:(-rd*l0+.5)*id;for(var Uf=0,ad=o0;Uf=0&&d>=i&&en[this.text.charCodeAt(d)];d--)u--;this.text=this.text.substring(i,u),this.sectionIndex=this.sectionIndex.slice(i,u)},lr.prototype.substring=function(i,s){var u=new lr;return u.text=this.text.substring(i,s),u.sectionIndex=this.sectionIndex.slice(i,s),u.sections=this.sections,u},lr.prototype.toString=function(){return this.text},lr.prototype.getMaxScale=function(){var i=this;return this.sectionIndex.reduce(function(s,u){return Math.max(s,i.sections[u].scale)},0)},lr.prototype.addTextSection=function(i,s){this.text+=i.text,this.sections.push(En.forText(i.scale,i.fontStack||s));for(var u=this.sections.length-1,d=0;d=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var en={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Gr={};function Wn(i,s,u,d,g,y){if(s.imageName){var T=d[s.imageName];return T?T.displaySize[0]*s.scale*24/y+g:0}var C=u[s.fontStack],P=C&&C[i];return P?P.metrics.advance*s.scale+g:0}function no(i,s,u,d){var g=Math.pow(i-s,2);return d?i=0,U=0,X=0;X-u/2;){if(--T<0)return!1;C-=i[T].dist(y),y=i[T]}C+=i[T].dist(i[T+1]),T++;for(var P=[],L=0;Cd;)L-=P.shift().angleDelta;if(L>g)return!1;T++,C+=k.dist(U)}return!0}function qn(i){for(var s=0,u=0;uL){var fe=(L-P)/K,me=zi(U.x,X.x,fe),Me=zi(U.y,X.y,fe),Ae=new Xi(me,Me,X.angleTo(U),k);return Ae._round(),!T||ra(i,Ae,C,T,s)?Ae:void 0}P+=K}}function oo(i,s,u,d,g,y,T,C,P){var L=Hr(d,y,T),k=Cn(d,g),U=k*T,X=i[0].x===0||i[0].x===P||i[0].y===0||i[0].y===P;return s-U=0&&Hn=0&&Ur=0&&cr+zt<=Qt){var Kn=new Xi(Hn,Ur,Pn,pr);Kn._round(),Ae&&!ra(fe,Kn,Ze,Ae,je)||kr.push(Kn)}}Mr+=Tr}return lt||kr.length||ot||(kr=K(fe,Mr/2,Me,Ae,je,Ze,ot,!0,yt)),kr}(i,X?s/2*C%s:(k/2+2*y)*T*C%s,s,L,u,U,X,!1,P)}function bl(i,s,u,d,g){for(var y=[],T=0;T=d&&U.x>=d||(k.x>=d?k=new E(d,k.y+(d-k.x)/(U.x-k.x)*(U.y-k.y))._round():U.x>=d&&(U=new E(d,k.y+(d-k.x)/(U.x-k.x)*(U.y-k.y))._round()),k.y>=g&&U.y>=g||(k.y>=g?k=new E(k.x+(g-k.y)/(U.y-k.y)*(U.x-k.x),g)._round():U.y>=g&&(U=new E(k.x+(g-k.y)/(U.y-k.y)*(U.x-k.x),g)._round()),P&&k.equals(P[P.length-1])||y.push(P=[k]),P.push(U)))))}return y}function _e(i,s,u,d){var g=[],y=i.image,T=y.pixelRatio,C=y.paddedRect.w-2,P=y.paddedRect.h-2,L=i.right-i.left,k=i.bottom-i.top,U=y.stretchX||[[0,C]],X=y.stretchY||[[0,P]],K=function(Hn,Ur){return Hn+Ur[1]-Ur[0]},fe=U.reduce(K,0),me=X.reduce(K,0),Me=C-fe,Ae=P-me,je=0,Ze=fe,ot=0,lt=me,yt=0,zt=Me,Qt=0,Mr=Ae;if(y.content&&d){var cr=y.content;je=it(U,0,cr[0]),ot=it(X,0,cr[1]),Ze=it(U,cr[0],cr[2]),lt=it(X,cr[1],cr[3]),yt=cr[0]-je,Qt=cr[1]-ot,zt=cr[2]-cr[0]-Ze,Mr=cr[3]-cr[1]-lt}var kr=function(Hn,Ur,Kn,Li){var Qi=ur(Hn.stretch-je,Ze,L,i.left),$i=_n(Hn.fixed-yt,zt,Hn.stretch,fe),Di=ur(Ur.stretch-ot,lt,k,i.top),Ji=_n(Ur.fixed-Qt,Mr,Ur.stretch,me),$o=ur(Kn.stretch-je,Ze,L,i.left),qo=_n(Kn.fixed-yt,zt,Kn.stretch,fe),ka=ur(Li.stretch-ot,lt,k,i.top),ia=_n(Li.fixed-Qt,Mr,Li.stretch,me),Ua=new E(Qi,Di),ao=new E($o,Di),oa=new E($o,ka),Bn=new E(Qi,ka),gi=new E($i/T,Ji/T),li=new E(qo/T,ia/T),Gn=s*Math.PI/180;if(Gn){var Ka=Math.sin(Gn),Aa=Math.cos(Gn),Ii=[Aa,-Ka,Ka,Aa];Ua._matMult(Ii),ao._matMult(Ii),Bn._matMult(Ii),oa._matMult(Ii)}var So=Hn.stretch+Hn.fixed,Sa=Ur.stretch+Ur.fixed;return{tl:Ua,tr:ao,bl:Bn,br:oa,tex:{x:y.paddedRect.x+1+So,y:y.paddedRect.y+1+Sa,w:Kn.stretch+Kn.fixed-So,h:Li.stretch+Li.fixed-Sa},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:gi,pixelOffsetBR:li,minFontScaleX:zt/T/L,minFontScaleY:Mr/T/k,isSDF:u}};if(d&&(y.stretchX||y.stretchY))for(var pr=Ke(U,Me,fe),Tn=Ke(X,Ae,me),$r=0;$r0&&(K=Math.max(10,K),this.circleDiameter=K)}else{var fe=y.top*T-C,me=y.bottom*T+C,Me=y.left*T-C,Ae=y.right*T+C,je=y.collisionPadding;if(je&&(Me-=je[0]*T,fe-=je[1]*T,Ae+=je[2]*T,me+=je[3]*T),L){var Ze=new E(Me,fe),ot=new E(Ae,fe),lt=new E(Me,me),yt=new E(Ae,me),zt=L*Math.PI/180;Ze._rotate(zt),ot._rotate(zt),lt._rotate(zt),yt._rotate(zt),Me=Math.min(Ze.x,ot.x,lt.x,yt.x),Ae=Math.max(Ze.x,ot.x,lt.x,yt.x),fe=Math.min(Ze.y,ot.y,lt.y,yt.y),me=Math.max(Ze.y,ot.y,lt.y,yt.y)}i.emplaceBack(s.x,s.y,Me,fe,Ae,me,u,d,g)}this.boxEndIndex=i.length},q=function(i,s){if(i===void 0&&(i=[]),s===void 0&&(s=ue),this.data=i,this.length=this.data.length,this.compare=s,this.length>0)for(var u=(this.length>>1)-1;u>=0;u--)this._down(u)};function ue(i,s){return is?1:0}function Ee(i,s,u){s===void 0&&(s=1),u===void 0&&(u=!1);for(var d=1/0,g=1/0,y=-1/0,T=-1/0,C=i[0],P=0;Py)&&(y=L.x),(!P||L.y>T)&&(T=L.y)}var k=Math.min(y-d,T-g),U=k/2,X=new q([],Qe);if(k===0)return new E(d,g);for(var K=d;Kme.d||!me.d)&&(me=Ae,u&&console.log("found best %d after %d probes",Math.round(1e4*Ae.d)/1e4,Me)),Ae.max-me.d<=s||(X.push(new Ye(Ae.p.x-(U=Ae.h/2),Ae.p.y-U,U,i)),X.push(new Ye(Ae.p.x+U,Ae.p.y-U,U,i)),X.push(new Ye(Ae.p.x-U,Ae.p.y+U,U,i)),X.push(new Ye(Ae.p.x+U,Ae.p.y+U,U,i)),Me+=4)}return u&&(console.log("num probes: "+Me),console.log("best distance: "+me.d)),me.p}function Qe(i,s){return s.max-i.max}function Ye(i,s,u,d){this.p=new E(i,s),this.h=u,this.d=function(g,y){for(var T=!1,C=1/0,P=0;Pg.y!=fe.y>g.y&&g.x<(fe.x-K.x)*(g.y-K.y)/(fe.y-K.y)+K.x&&(T=!T),C=Math.min(C,$l(g,K,fe))}return(T?1:-1)*Math.sqrt(C)}(this.p,d),this.max=this.d+this.h*Math.SQRT2}q.prototype.push=function(i){this.data.push(i),this.length++,this._up(this.length-1)},q.prototype.pop=function(){if(this.length!==0){var i=this.data[0],s=this.data.pop();return this.length--,this.length>0&&(this.data[0]=s,this._down(0)),i}},q.prototype.peek=function(){return this.data[0]},q.prototype._up=function(i){for(var s=this.data,u=this.compare,d=s[i];i>0;){var g=i-1>>1,y=s[g];if(u(d,y)>=0)break;s[i]=y,i=g}s[i]=d},q.prototype._down=function(i){for(var s=this.data,u=this.compare,d=this.length>>1,g=s[i];i=0)break;s[i]=T,i=y}s[i]=g};var Re=Number.POSITIVE_INFINITY;function De(i,s){return s[1]!==Re?function(u,d,g){var y=0,T=0;switch(d=Math.abs(d),g=Math.abs(g),u){case"top-right":case"top-left":case"top":T=g-7;break;case"bottom-right":case"bottom-left":case"bottom":T=7-g}switch(u){case"top-right":case"bottom-right":case"right":y=-d;break;case"top-left":case"bottom-left":case"left":y=d}return[y,T]}(i,s[0],s[1]):function(u,d){var g=0,y=0;d<0&&(d=0);var T=d/Math.sqrt(2);switch(u){case"top-right":case"top-left":y=T-7;break;case"bottom-right":case"bottom-left":y=7-T;break;case"bottom":y=7-d;break;case"top":y=d-7}switch(u){case"top-right":case"bottom-right":g=-T;break;case"top-left":case"bottom-left":g=T;break;case"left":g=d;break;case"right":g=-d}return[g,y]}(i,s[0])}function Ue(i){switch(i){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function ge(i,s,u,d,g,y,T,C,P,L,k,U,X,K,fe){var me=function(ot,lt,yt,zt,Qt,Mr,cr,kr){for(var pr=zt.layout.get("text-rotate").evaluate(Mr,{})*Math.PI/180,Tn=[],$r=0,Tr=lt.positionedLines;$r32640&&He(i.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):Me.kind==="composite"&&((Ae=[128*K.compositeTextSizes[0].evaluate(T,{},fe),128*K.compositeTextSizes[1].evaluate(T,{},fe)])[0]>32640||Ae[1]>32640)&&He(i.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),i.addSymbols(i.text,me,Ae,C,y,T,L,s,P.lineStartIndex,P.lineLength,X,fe);for(var je=0,Ze=k;je=0;T--)if(d.dist(y[T])0)&&(y.value.kind!=="constant"||y.value.value.length>0),L=C.value.kind!=="constant"||!!C.value.value||Object.keys(C.parameters).length>0,k=g.get("symbol-sort-key");if(this.features=[],P||L){for(var U=s.iconDependencies,X=s.glyphDependencies,K=s.availableImages,fe=new cn(this.zoom),me=0,Me=i;me=0;for(var Pn=0,pn=Qt.sections;Pn=0;C--)y[C]={x:s[C].x,y:s[C].y,tileUnitDistanceFromAnchor:g},C>0&&(g+=s[C-1].dist(s[C]));for(var P=0;P0},gr.prototype.hasIconData=function(){return this.icon.segments.get().length>0},gr.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},gr.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},gr.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},gr.prototype.addIndicesForPlacedSymbol=function(i,s){for(var u=i.placedSymbolArray.get(s),d=u.vertexStartIndex+4*u.numGlyphs,g=u.vertexStartIndex;g1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(i),this.sortedAngle=i,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var u=0,d=this.symbolInstanceIndexes;u=0&&C.indexOf(y)===T&&s.addIndicesForPlacedSymbol(s.text,y)}),g.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,g.verticalPlacedTextSymbolIndex),g.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,g.placedIconSymbolIndex),g.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,g.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},_r("SymbolBucket",gr,{omit:["layers","collisionBoxArray","features","compareText"]}),gr.MAX_GLYPHS=65535,gr.addDynamicAttributes=Ct;var br=new Ci({"symbol-placement":new Rr(te.layout_symbol["symbol-placement"]),"symbol-spacing":new Rr(te.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Rr(te.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new xr(te.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Rr(te.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Rr(te.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Rr(te.layout_symbol["icon-ignore-placement"]),"icon-optional":new Rr(te.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Rr(te.layout_symbol["icon-rotation-alignment"]),"icon-size":new xr(te.layout_symbol["icon-size"]),"icon-text-fit":new Rr(te.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Rr(te.layout_symbol["icon-text-fit-padding"]),"icon-image":new xr(te.layout_symbol["icon-image"]),"icon-rotate":new xr(te.layout_symbol["icon-rotate"]),"icon-padding":new Rr(te.layout_symbol["icon-padding"]),"icon-keep-upright":new Rr(te.layout_symbol["icon-keep-upright"]),"icon-offset":new xr(te.layout_symbol["icon-offset"]),"icon-anchor":new xr(te.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Rr(te.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Rr(te.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Rr(te.layout_symbol["text-rotation-alignment"]),"text-field":new xr(te.layout_symbol["text-field"]),"text-font":new xr(te.layout_symbol["text-font"]),"text-size":new xr(te.layout_symbol["text-size"]),"text-max-width":new xr(te.layout_symbol["text-max-width"]),"text-line-height":new Rr(te.layout_symbol["text-line-height"]),"text-letter-spacing":new xr(te.layout_symbol["text-letter-spacing"]),"text-justify":new xr(te.layout_symbol["text-justify"]),"text-radial-offset":new xr(te.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Rr(te.layout_symbol["text-variable-anchor"]),"text-anchor":new xr(te.layout_symbol["text-anchor"]),"text-max-angle":new Rr(te.layout_symbol["text-max-angle"]),"text-writing-mode":new Rr(te.layout_symbol["text-writing-mode"]),"text-rotate":new xr(te.layout_symbol["text-rotate"]),"text-padding":new Rr(te.layout_symbol["text-padding"]),"text-keep-upright":new Rr(te.layout_symbol["text-keep-upright"]),"text-transform":new xr(te.layout_symbol["text-transform"]),"text-offset":new xr(te.layout_symbol["text-offset"]),"text-allow-overlap":new Rr(te.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Rr(te.layout_symbol["text-ignore-placement"]),"text-optional":new Rr(te.layout_symbol["text-optional"])}),jr={paint:new Ci({"icon-opacity":new xr(te.paint_symbol["icon-opacity"]),"icon-color":new xr(te.paint_symbol["icon-color"]),"icon-halo-color":new xr(te.paint_symbol["icon-halo-color"]),"icon-halo-width":new xr(te.paint_symbol["icon-halo-width"]),"icon-halo-blur":new xr(te.paint_symbol["icon-halo-blur"]),"icon-translate":new Rr(te.paint_symbol["icon-translate"]),"icon-translate-anchor":new Rr(te.paint_symbol["icon-translate-anchor"]),"text-opacity":new xr(te.paint_symbol["text-opacity"]),"text-color":new xr(te.paint_symbol["text-color"],{runtimeType:qt,getOverride:function(i){return i.textColor},hasOverride:function(i){return!!i.textColor}}),"text-halo-color":new xr(te.paint_symbol["text-halo-color"]),"text-halo-width":new xr(te.paint_symbol["text-halo-width"]),"text-halo-blur":new xr(te.paint_symbol["text-halo-blur"]),"text-translate":new Rr(te.paint_symbol["text-translate"]),"text-translate-anchor":new Rr(te.paint_symbol["text-translate-anchor"])}),layout:br},Qr=function(i){this.type=i.property.overrides?i.property.overrides.runtimeType:dr,this.defaultValue=i};Qr.prototype.evaluate=function(i){if(i.formattedSection){var s=this.defaultValue.property.overrides;if(s&&s.hasOverride(i.formattedSection))return s.getOverride(i.formattedSection)}return i.feature&&i.featureState?this.defaultValue.evaluate(i.feature,i.featureState):this.defaultValue.property.specification.default},Qr.prototype.eachChild=function(i){this.defaultValue.isConstant()||i(this.defaultValue.value._styleExpression.expression)},Qr.prototype.outputDefined=function(){return!1},Qr.prototype.serialize=function(){return null},_r("FormatSectionOverride",Qr,{omit:["defaultValue"]});var Yn=function(i){function s(u){i.call(this,u,jr)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.recalculate=function(u,d){if(i.prototype.recalculate.call(this,u,d),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var g=this.layout.get("text-writing-mode");if(g){for(var y=[],T=0,C=g;T",targetMapId:d,sourceMapId:y.mapId})}}},Mf.prototype.receive=function(i){var s=i.data,u=s.id;if(u&&(!s.targetMapId||this.mapId===s.targetMapId))if(s.type===""){delete this.tasks[u];var d=this.cancelCallbacks[u];delete this.cancelCallbacks[u],d&&d()}else $t()||s.mustQueue?(this.tasks[u]=s,this.taskQueue.push(u),this.invoker.trigger()):this.processTask(u,s)},Mf.prototype.process=function(){if(this.taskQueue.length){var i=this.taskQueue.shift(),s=this.tasks[i];delete this.tasks[i],this.taskQueue.length&&this.invoker.trigger(),s&&this.processTask(i,s)}},Mf.prototype.processTask=function(i,s){var u=this;if(s.type===""){var d=this.callbacks[i];delete this.callbacks[i],d&&(s.error?d(ai(s.error)):d(null,ai(s.data)))}else{var g=!1,y=mr(this.globalScope)?void 0:[],T=s.hasCallback?function(k,U){g=!0,delete u.cancelCallbacks[i],u.target.postMessage({id:i,type:"",sourceMapId:u.mapId,error:k?sa(k):null,data:sa(U,y)},y)}:function(k){g=!0},C=null,P=ai(s.data);if(this.parent[s.type])C=this.parent[s.type](s.sourceMapId,P,T);else if(this.parent.getWorkerSource){var L=s.type.split(".");C=this.parent.getWorkerSource(s.sourceMapId,L[0],P.source)[L[1]](P,T)}else T(new Error("Could not find function "+s.type));!g&&C&&C.cancel&&(this.cancelCallbacks[i]=C.cancel)}},Mf.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var ko=function(i,s){i&&(s?this.setSouthWest(i).setNorthEast(s):i.length===4?this.setSouthWest([i[0],i[1]]).setNorthEast([i[2],i[3]]):this.setSouthWest(i[0]).setNorthEast(i[1]))};ko.prototype.setNorthEast=function(i){return this._ne=i instanceof Oi?new Oi(i.lng,i.lat):Oi.convert(i),this},ko.prototype.setSouthWest=function(i){return this._sw=i instanceof Oi?new Oi(i.lng,i.lat):Oi.convert(i),this},ko.prototype.extend=function(i){var s,u,d=this._sw,g=this._ne;if(i instanceof Oi)s=i,u=i;else{if(!(i instanceof ko))return Array.isArray(i)?i.length===4||i.every(Array.isArray)?this.extend(ko.convert(i)):this.extend(Oi.convert(i)):this;if(u=i._ne,!(s=i._sw)||!u)return this}return d||g?(d.lng=Math.min(s.lng,d.lng),d.lat=Math.min(s.lat,d.lat),g.lng=Math.max(u.lng,g.lng),g.lat=Math.max(u.lat,g.lat)):(this._sw=new Oi(s.lng,s.lat),this._ne=new Oi(u.lng,u.lat)),this},ko.prototype.getCenter=function(){return new Oi((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},ko.prototype.getSouthWest=function(){return this._sw},ko.prototype.getNorthEast=function(){return this._ne},ko.prototype.getNorthWest=function(){return new Oi(this.getWest(),this.getNorth())},ko.prototype.getSouthEast=function(){return new Oi(this.getEast(),this.getSouth())},ko.prototype.getWest=function(){return this._sw.lng},ko.prototype.getSouth=function(){return this._sw.lat},ko.prototype.getEast=function(){return this._ne.lng},ko.prototype.getNorth=function(){return this._ne.lat},ko.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},ko.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},ko.prototype.isEmpty=function(){return!(this._sw&&this._ne)},ko.prototype.contains=function(i){var s=Oi.convert(i),u=s.lng,d=s.lat,g=this._sw.lng<=u&&u<=this._ne.lng;return this._sw.lng>this._ne.lng&&(g=this._sw.lng>=u&&u>=this._ne.lng),this._sw.lat<=d&&d<=this._ne.lat&&g},ko.convert=function(i){return!i||i instanceof ko?i:new ko(i)};var Oi=function(i,s){if(isNaN(i)||isNaN(s))throw new Error("Invalid LngLat object: ("+i+", "+s+")");if(this.lng=+i,this.lat=+s,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Oi.prototype.wrap=function(){return new Oi(W(this.lng,-180,180),this.lat)},Oi.prototype.toArray=function(){return[this.lng,this.lat]},Oi.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Oi.prototype.distanceTo=function(i){var s=Math.PI/180,u=this.lat*s,d=i.lat*s,g=Math.sin(u)*Math.sin(d)+Math.cos(u)*Math.cos(d)*Math.cos((i.lng-this.lng)*s);return 63710088e-1*Math.acos(Math.min(g,1))},Oi.prototype.toBounds=function(i){i===void 0&&(i=0);var s=360*i/40075017,u=s/Math.cos(Math.PI/180*this.lat);return new ko(new Oi(this.lng-u,this.lat-s),new Oi(this.lng+u,this.lat+s))},Oi.convert=function(i){if(i instanceof Oi)return i;if(Array.isArray(i)&&(i.length===2||i.length===3))return new Oi(Number(i[0]),Number(i[1]));if(!Array.isArray(i)&&typeof i=="object"&&i!==null)return new Oi(Number("lng"in i?i.lng:i.lon),Number(i.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var r4=2*Math.PI*63710088e-1;function n4(i){return r4*Math.cos(i*Math.PI/180)}function i4(i){return(180+i)/360}function o4(i){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i*Math.PI/360)))/360}function a4(i,s){return i/n4(s)}function R_(i){return 360/Math.PI*Math.atan(Math.exp((180-360*i)*Math.PI/180))-90}var Ph=function(i,s,u){u===void 0&&(u=0),this.x=+i,this.y=+s,this.z=+u};Ph.fromLngLat=function(i,s){s===void 0&&(s=0);var u=Oi.convert(i);return new Ph(i4(u.lng),o4(u.lat),a4(s,u.lat))},Ph.prototype.toLngLat=function(){return new Oi(360*this.x-180,R_(this.y))},Ph.prototype.toAltitude=function(){return this.z*n4(R_(this.y))},Ph.prototype.meterInMercatorCoordinateUnits=function(){return 1/r4*(i=R_(this.y),1/Math.cos(i*Math.PI/180));var i};var Oh=function(i,s,u){this.z=i,this.x=s,this.y=u,this.key=Qp(0,i,i,s,u)};Oh.prototype.equals=function(i){return this.z===i.z&&this.x===i.x&&this.y===i.y},Oh.prototype.url=function(i,s){var u,d,g,y,T,C=(d=this.y,g=this.z,y=t4(256*(u=this.x),256*(d=Math.pow(2,g)-d-1),g),T=t4(256*(u+1),256*(d+1),g),y[0]+","+y[1]+","+T[0]+","+T[1]),P=function(L,k,U){for(var X,K="",fe=L;fe>0;fe--)K+=(k&(X=1<this.canonical.z?new Uo(i,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Uo(i,this.wrap,i,this.canonical.x>>s,this.canonical.y>>s)},Uo.prototype.calculateScaledKey=function(i,s){var u=this.canonical.z-i;return i>this.canonical.z?Qp(this.wrap*+s,i,this.canonical.z,this.canonical.x,this.canonical.y):Qp(this.wrap*+s,i,i,this.canonical.x>>u,this.canonical.y>>u)},Uo.prototype.isChildOf=function(i){if(i.wrap!==this.wrap)return!1;var s=this.canonical.z-i.canonical.z;return i.overscaledZ===0||i.overscaledZ>s&&i.canonical.y===this.canonical.y>>s},Uo.prototype.children=function(i){if(this.overscaledZ>=i)return[new Uo(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var s=this.canonical.z+1,u=2*this.canonical.x,d=2*this.canonical.y;return[new Uo(s,this.wrap,s,u,d),new Uo(s,this.wrap,s,u+1,d),new Uo(s,this.wrap,s,u,d+1),new Uo(s,this.wrap,s,u+1,d+1)]},Uo.prototype.isLessThan=function(i){return this.wrapi.wrap)&&(this.overscaledZi.overscaledZ)&&(this.canonical.xi.canonical.x)&&this.canonical.y=this.dim+1||s<-1||s>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(s+1)*this.stride+(i+1)},jc.prototype._unpackMapbox=function(i,s,u){return(256*i*256+256*s+u)/10-1e4},jc.prototype._unpackTerrarium=function(i,s,u){return 256*i+s+u/256-32768},jc.prototype.getPixels=function(){return new ba({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},jc.prototype.backfillBorder=function(i,s,u){if(this.dim!==i.dim)throw new Error("dem dimension mismatch");var d=s*this.dim,g=s*this.dim+this.dim,y=u*this.dim,T=u*this.dim+this.dim;switch(s){case-1:d=g-1;break;case 1:g=d+1}switch(u){case-1:y=T-1;break;case 1:T=y+1}for(var C=-s*this.dim,P=-u*this.dim,L=y;L=0&&k[3]>=0&&C.insert(T,k[0],k[1],k[2],k[3])}},Xc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new ac.VectorTile(new rt(this.rawTileData)).layers,this.sourceLayerCoder=new e0(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Xc.prototype.query=function(i,s,u,d){var g=this;this.loadVTLayers();for(var y=i.params||{},T=8192/i.tileSize/i.scale,C=Vl(y.filter),P=i.queryGeometry,L=i.queryPadding*T,k=u4(P),U=this.grid.query(k.minX-L,k.minY-L,k.maxX+L,k.maxY+L),X=u4(i.cameraQueryGeometry),K=this.grid3D.query(X.minX-L,X.minY-L,X.maxX+L,X.maxY+L,function(ot,lt,yt,zt){return function(Qt,Mr,cr,kr,pr){for(var Tn=0,$r=Qt;Tn<$r.length;Tn+=1){var Tr=$r[Tn];if(Mr<=Tr.x&&cr<=Tr.y&&kr>=Tr.x&&pr>=Tr.y)return!0}var Pn=[new E(Mr,cr),new E(Mr,pr),new E(kr,pr),new E(kr,cr)];if(Qt.length>2){for(var pn=0,Hn=Pn;pn=0)return!0;return!1}(y,U)){var X=this.sourceLayerCoder.decode(u),K=this.vtLayers[X].feature(d);if(g.needGeometry){var fe=Pi(K,!0);if(!g.filter(new cn(this.tileID.overscaledZ),fe,this.tileID.canonical))return}else if(!g.filter(new cn(this.tileID.overscaledZ),K))return;for(var me=this.getId(K,X),Me=0;Med)g=!1;else if(s)if(this.expirationTimeLs&&(i.getActor().send("enforceCacheSizeLimit",Oo),il=0)},o.clamp=N,o.clearTileCache=function(i){var s=A.caches.delete("mapbox-tiles");i&&s.catch(i).then(function(){return i()})},o.clipLine=bl,o.clone=function(i){var s=new On(16);return s[0]=i[0],s[1]=i[1],s[2]=i[2],s[3]=i[3],s[4]=i[4],s[5]=i[5],s[6]=i[6],s[7]=i[7],s[8]=i[8],s[9]=i[9],s[10]=i[10],s[11]=i[11],s[12]=i[12],s[13]=i[13],s[14]=i[14],s[15]=i[15],s},o.clone$1=Te,o.clone$2=function(i){var s=new On(3);return s[0]=i[0],s[1]=i[1],s[2]=i[2],s},o.collisionCircleLayout=B,o.config=qe,o.create=function(){var i=new On(16);return On!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=0,i[12]=0,i[13]=0,i[14]=0),i[0]=1,i[5]=1,i[10]=1,i[15]=1,i},o.create$1=function(){var i=new On(9);return On!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[5]=0,i[6]=0,i[7]=0),i[0]=1,i[4]=1,i[8]=1,i},o.create$2=function(){var i=new On(4);return On!=Float32Array&&(i[1]=0,i[2]=0),i[0]=1,i[3]=1,i},o.createCommonjsModule=p,o.createExpression=Xu,o.createLayout=vo,o.createStyleLayer=function(i){return i.type==="custom"?new Q3(i):new Mu[i.type](i)},o.cross=function(i,s,u){var d=s[0],g=s[1],y=s[2],T=u[0],C=u[1],P=u[2];return i[0]=g*P-y*C,i[1]=y*T-d*P,i[2]=d*C-g*T,i},o.deepEqual=function i(s,u){if(Array.isArray(s)){if(!Array.isArray(u)||s.length!==u.length)return!1;for(var d=0;d0&&(y=1/Math.sqrt(y)),i[0]=s[0]*y,i[1]=s[1]*y,i[2]=s[2]*y,i},o.number=zi,o.offscreenCanvasSupported=du,o.ortho=function(i,s,u,d,g,y,T){var C=1/(s-u),P=1/(d-g),L=1/(y-T);return i[0]=-2*C,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*P,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=2*L,i[11]=0,i[12]=(s+u)*C,i[13]=(g+d)*P,i[14]=(T+y)*L,i[15]=1,i},o.parseGlyphPBF=function(i){return new rt(i).readFields(wt,[])},o.pbf=rt,o.performSymbolLayout=function(i,s,u,d,g,y,T){i.createArrays(),i.tilePixelRatio=8192/(512*i.overscaling),i.compareText={},i.iconsNeedLinear=!1;var C=i.layers[0].layout,P=i.layers[0]._unevaluatedLayout._values,L={};if(i.textSizeData.kind==="composite"){var k=i.textSizeData,U=k.maxZoom;L.compositeTextSizes=[P["text-size"].possiblyEvaluate(new cn(k.minZoom),T),P["text-size"].possiblyEvaluate(new cn(U),T)]}if(i.iconSizeData.kind==="composite"){var X=i.iconSizeData,K=X.maxZoom;L.compositeIconSizes=[P["icon-size"].possiblyEvaluate(new cn(X.minZoom),T),P["icon-size"].possiblyEvaluate(new cn(K),T)]}L.layoutTextSize=P["text-size"].possiblyEvaluate(new cn(i.zoom+1),T),L.layoutIconSize=P["icon-size"].possiblyEvaluate(new cn(i.zoom+1),T),L.textMaxSize=P["text-size"].possiblyEvaluate(new cn(18));for(var fe=24*C.get("text-line-height"),me=C.get("text-rotation-alignment")==="map"&&C.get("symbol-placement")!=="point",Me=C.get("text-keep-upright"),Ae=C.get("text-size"),je=function(){var lt=ot[Ze],yt=C.get("text-font").evaluate(lt,{},T).join(","),zt=Ae.evaluate(lt,{},T),Qt=L.layoutTextSize.evaluate(lt,{},T),Mr=L.layoutIconSize.evaluate(lt,{},T),cr={horizontal:{},vertical:void 0},kr=lt.text,pr=[0,0];if(kr){var Tn=kr.toString(),$r=24*C.get("text-letter-spacing").evaluate(lt,{},T),Tr=function(Bn){for(var gi=0,li=Bn;gi=8192||ld.y<0||ld.y>=8192||function(lo,Pu,g9,B1,L_,p4,c0,cc,h0,ud,f0,p0,D_,d4,cd,m4,_4,g4,v4,y4,qs,d0,x4,hc,v9){var b4,Bh,Vf,Hf,jf,Xf=lo.addToLineVertexArray(Pu,g9),E4=0,T4=0,A4=0,S4=0,B_=-1,F_=-1,Zc={},w4=he(""),N_=0,k_=0;if(cc._unevaluatedLayout.getValue("text-radial-offset")===void 0?(N_=(b4=cc.layout.get("text-offset").evaluate(qs,{},hc).map(function(fd){return 24*fd}))[0],k_=b4[1]):(N_=24*cc.layout.get("text-radial-offset").evaluate(qs,{},hc),k_=Re),lo.allowVerticalPlacement&&B1.vertical){var C4=cc.layout.get("text-rotate").evaluate(qs,{},hc)+90;Hf=new si(h0,Pu,ud,f0,p0,B1.vertical,D_,d4,cd,C4),c0&&(jf=new si(h0,Pu,ud,f0,p0,c0,_4,g4,cd,C4))}if(L_){var U_=cc.layout.get("icon-rotate").evaluate(qs,{}),R4=cc.layout.get("icon-text-fit")!=="none",I4=_e(L_,U_,x4,R4),z_=c0?_e(c0,U_,x4,R4):void 0;Vf=new si(h0,Pu,ud,f0,p0,L_,_4,g4,!1,U_),E4=4*I4.length;var M4=lo.iconSizeData,hd=null;M4.kind==="source"?(hd=[128*cc.layout.get("icon-size").evaluate(qs,{})])[0]>32640&&He(lo.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):M4.kind==="composite"&&((hd=[128*d0.compositeIconSizes[0].evaluate(qs,{},hc),128*d0.compositeIconSizes[1].evaluate(qs,{},hc)])[0]>32640||hd[1]>32640)&&He(lo.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),lo.addSymbols(lo.icon,I4,hd,y4,v4,qs,!1,Pu,Xf.lineStartIndex,Xf.lineLength,-1,hc),B_=lo.icon.placedSymbolArray.length-1,z_&&(T4=4*z_.length,lo.addSymbols(lo.icon,z_,hd,y4,v4,qs,Nr.vertical,Pu,Xf.lineStartIndex,Xf.lineLength,-1,hc),F_=lo.icon.placedSymbolArray.length-1)}for(var P4 in B1.horizontal){var m0=B1.horizontal[P4];if(!Bh){w4=he(m0.text);var y9=cc.layout.get("text-rotate").evaluate(qs,{},hc);Bh=new si(h0,Pu,ud,f0,p0,m0,D_,d4,cd,y9)}var O4=m0.positionedLines.length===1;if(A4+=ge(lo,Pu,m0,p4,cc,cd,qs,m4,Xf,B1.vertical?Nr.horizontal:Nr.horizontalOnly,O4?Object.keys(B1.horizontal):[P4],Zc,B_,d0,hc),O4)break}B1.vertical&&(S4+=ge(lo,Pu,B1.vertical,p4,cc,cd,qs,m4,Xf,Nr.vertical,["vertical"],Zc,F_,d0,hc));var x9=Bh?Bh.boxStartIndex:lo.collisionBoxArray.length,b9=Bh?Bh.boxEndIndex:lo.collisionBoxArray.length,E9=Hf?Hf.boxStartIndex:lo.collisionBoxArray.length,T9=Hf?Hf.boxEndIndex:lo.collisionBoxArray.length,A9=Vf?Vf.boxStartIndex:lo.collisionBoxArray.length,S9=Vf?Vf.boxEndIndex:lo.collisionBoxArray.length,w9=jf?jf.boxStartIndex:lo.collisionBoxArray.length,C9=jf?jf.boxEndIndex:lo.collisionBoxArray.length,fc=-1,_0=function(fd,D4){return fd&&fd.circleDiameter?Math.max(fd.circleDiameter,D4):D4};fc=_0(Bh,fc),fc=_0(Hf,fc),fc=_0(Vf,fc);var L4=(fc=_0(jf,fc))>-1?1:0;L4&&(fc*=v9/24),lo.glyphOffsetArray.length>=gr.MAX_GLYPHS&&He("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),qs.sortKey!==void 0&&lo.addToSortKeyRanges(lo.symbolInstances.length,qs.sortKey),lo.symbolInstances.emplaceBack(Pu.x,Pu.y,Zc.right>=0?Zc.right:-1,Zc.center>=0?Zc.center:-1,Zc.left>=0?Zc.left:-1,Zc.vertical||-1,B_,F_,w4,x9,b9,E9,T9,A9,S9,w9,C9,ud,A4,S4,E4,T4,L4,0,D_,N_,k_,fc)}(Bn,ld,_9,li,Gn,Ka,lc,Bn.layers[0],Bn.collisionBoxArray,gi.index,gi.sourceLayerIndex,Bn.index,Lh,r0,n0,Sa,Wc,Bf,i0,uc,gi,Aa,Qn,sc,Ii)};if(Gc==="line")for(var Nf=0,o0=bl(gi.geometry,0,0,8192,8192);Nf1){var l0=Vn(od,Jp,li.vertical||Ql,Gn,24,Lf);l0&&D1(od,l0)}}else if(gi.type==="Polygon")for(var kf=0,u0=Cf(gi.geometry,0);kf=Ln.maxzoom||Ln.visibility!=="none"&&(A(xn,this.zoom,Z),(ht[Ln.id]=Ln.createBucket({index:te.bucketLayerIDs.length,layers:xn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:or,sourceID:this.source})).populate(Gt,Rt,this.tileID.canonical),te.bucketLayerIDs.push(xn.map(function(zn){return zn.id})))}}}var sn=o.mapObject(Rt.glyphDependencies,function(zn){return Object.keys(zn).map(Number)});Object.keys(sn).length?oe.send("getGlyphs",{uid:this.uid,stacks:sn},function(zn,ln){ye||(ye=zn,We=ln,ri.call(Oe))}):We={};var Gi=Object.keys(Rt.iconDependencies);Gi.length?oe.send("getImages",{icons:Gi,source:this.source,tileID:this.tileID,type:"icons"},function(zn,ln){ye||(ye=zn,mt=ln,ri.call(Oe))}):mt={};var In=Object.keys(Rt.patternDependencies);function ri(){if(ye)return de(ye);if(We&&mt&&Lt){var zn=new E(We),ln=new o.ImageAtlas(mt,Lt);for(var bn in ht){var jo=ht[bn];jo instanceof o.SymbolBucket?(A(jo.layers,this.zoom,Z),o.performSymbolLayout(jo,We,zn.positions,mt,ln.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):jo.hasPattern&&(jo instanceof o.LineBucket||jo instanceof o.FillBucket||jo instanceof o.FillExtrusionBucket)&&(A(jo.layers,this.zoom,Z),jo.addFeatures(Rt,this.tileID.canonical,ln.patternPositions))}this.status="done",de(null,{buckets:o.values(ht).filter(function(Rl){return!Rl.isEmpty()}),featureIndex:te,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:zn.image,imageAtlas:ln,glyphMap:this.returnDependencies?We:null,iconMap:this.returnDependencies?mt:null,glyphPositions:this.returnDependencies?zn.positions:null})}}In.length?oe.send("getImages",{icons:In,source:this.source,tileID:this.tileID,type:"patterns"},function(zn,ln){ye||(ye=zn,Lt=ln,ri.call(Oe))}):Lt={},ri.call(this)};var O=function(z,j,Z,oe){this.actor=z,this.layerIndex=j,this.availableImages=Z,this.loadVectorData=oe||R,this.loading={},this.loaded={}};O.prototype.loadTile=function(z,j){var Z=this,oe=z.uid;this.loading||(this.loading={});var de=!!(z&&z.request&&z.request.collectResourceTiming)&&new o.RequestPerformance(z.request),Oe=this.loading[oe]=new b(z);Oe.abort=this.loadVectorData(z,function(Ne,te){if(delete Z.loading[oe],Ne||!te)return Oe.status="done",Z.loaded[oe]=Oe,j(Ne);var ye=te.rawData,We={};te.expires&&(We.expires=te.expires),te.cacheControl&&(We.cacheControl=te.cacheControl);var mt={};if(de){var Lt=de.finish();Lt&&(mt.resourceTiming=JSON.parse(JSON.stringify(Lt)))}Oe.vectorTile=te.vectorTile,Oe.parse(te.vectorTile,Z.layerIndex,Z.availableImages,Z.actor,function(ht,Rt){if(ht||!Rt)return j(ht);j(null,o.extend({rawTileData:ye.slice(0)},Rt,We,mt))}),Z.loaded=Z.loaded||{},Z.loaded[oe]=Oe})},O.prototype.reloadTile=function(z,j){var Z=this,oe=this.loaded,de=z.uid,Oe=this;if(oe&&oe[de]){var Ne=oe[de];Ne.showCollisionBoxes=z.showCollisionBoxes;var te=function(ye,We){var mt=Ne.reloadCallback;mt&&(delete Ne.reloadCallback,Ne.parse(Ne.vectorTile,Oe.layerIndex,Z.availableImages,Oe.actor,mt)),j(ye,We)};Ne.status==="parsing"?Ne.reloadCallback=te:Ne.status==="done"&&(Ne.vectorTile?Ne.parse(Ne.vectorTile,this.layerIndex,this.availableImages,this.actor,te):te())}},O.prototype.abortTile=function(z,j){var Z=this.loading,oe=z.uid;Z&&Z[oe]&&Z[oe].abort&&(Z[oe].abort(),delete Z[oe]),j()},O.prototype.removeTile=function(z,j){var Z=this.loaded,oe=z.uid;Z&&Z[oe]&&delete Z[oe],j()};var D=o.window.ImageBitmap,N=function(){this.loaded={}};function W(z,j){if(z.length!==0){G(z[0],j);for(var Z=1;Z=Math.abs(te)?Z-ye+te:te-ye+Z,Z=ye}Z+oe>=0!=!!j&&z.reverse()}N.prototype.loadTile=function(z,j){var Z=z.uid,oe=z.encoding,de=z.rawImageData,Oe=D&&de instanceof D?this.getImageData(de):de,Ne=new o.DEMData(Z,Oe,oe);this.loaded=this.loaded||{},this.loaded[Z]=Ne,j(null,Ne)},N.prototype.getImageData=function(z){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(z.width,z.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=z.width,this.offscreenCanvas.height=z.height,this.offscreenCanvasContext.drawImage(z,0,0,z.width,z.height);var j=this.offscreenCanvasContext.getImageData(-1,-1,z.width+2,z.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new o.RGBAImage({width:j.width,height:j.height},j.data)},N.prototype.removeTile=function(z){var j=this.loaded,Z=z.uid;j&&j[Z]&&delete j[Z]};var Y=o.vectorTile.VectorTileFeature.prototype.toGeoJSON,Q=function(z){this._feature=z,this.extent=o.EXTENT,this.type=z.type,this.properties=z.tags,"id"in z&&!isNaN(z.id)&&(this.id=parseInt(z.id,10))};Q.prototype.loadGeometry=function(){if(this._feature.type===1){for(var z=[],j=0,Z=this._feature.geometry;j>31}function Or(z,j){for(var Z=z.loadGeometry(),oe=z.type,de=0,Oe=0,Ne=Z.length,te=0;te>1;(function or(Gt,qt,an,rr,wn,ti){for(;wn>rr;){if(wn-rr>600){var xn=wn-rr+1,Ln=an-rr+1,sn=Math.log(xn),Gi=.5*Math.exp(2*sn/3),In=.5*Math.sqrt(sn*Gi*(xn-Gi)/xn)*(Ln-xn/2<0?-1:1);or(Gt,qt,an,Math.max(rr,Math.floor(an-Ln*Gi/xn+In)),Math.min(wn,Math.floor(an+(xn-Ln)*Gi/xn+In)),ti)}var ri=qt[2*an+ti],zn=rr,ln=wn;for(yr(Gt,qt,rr,an),qt[2*wn+ti]>ri&&yr(Gt,qt,rr,wn);znri;)ln--}qt[2*rr+ti]===ri?yr(Gt,qt,rr,ln):yr(Gt,qt,++ln,wn),ln<=an&&(rr=ln+1),an<=ln&&(wn=ln-1)}})(mt,Lt,pt,Rt,vr,dr%2),We(mt,Lt,ht,Rt,pt-1,dr+1),We(mt,Lt,ht,pt+1,vr,dr+1)}})(Ne,te,oe,0,Ne.length-1,0)};nn.prototype.range=function(z,j,Z,oe){return function(de,Oe,Ne,te,ye,We,mt){for(var Lt,ht,Rt=[0,de.length-1,0],vr=[];Rt.length;){var dr=Rt.pop(),pt=Rt.pop(),or=Rt.pop();if(pt-or<=mt)for(var Gt=or;Gt<=pt;Gt++)ht=Oe[2*Gt+1],(Lt=Oe[2*Gt])>=Ne&&Lt<=ye&&ht>=te&&ht<=We&&vr.push(de[Gt]);else{var qt=Math.floor((or+pt)/2);ht=Oe[2*qt+1],(Lt=Oe[2*qt])>=Ne&&Lt<=ye&&ht>=te&&ht<=We&&vr.push(de[qt]);var an=(dr+1)%2;(dr===0?Ne<=Lt:te<=ht)&&(Rt.push(or),Rt.push(qt-1),Rt.push(an)),(dr===0?ye>=Lt:We>=ht)&&(Rt.push(qt+1),Rt.push(pt),Rt.push(an))}}return vr}(this.ids,this.coords,z,j,Z,oe,this.nodeSize)},nn.prototype.within=function(z,j,Z){return function(oe,de,Oe,Ne,te,ye){for(var We=[0,oe.length-1,0],mt=[],Lt=te*te;We.length;){var ht=We.pop(),Rt=We.pop(),vr=We.pop();if(Rt-vr<=ye)for(var dr=vr;dr<=Rt;dr++)Jr(de[2*dr],de[2*dr+1],Oe,Ne)<=Lt&&mt.push(oe[dr]);else{var pt=Math.floor((vr+Rt)/2),or=de[2*pt],Gt=de[2*pt+1];Jr(or,Gt,Oe,Ne)<=Lt&&mt.push(oe[pt]);var qt=(ht+1)%2;(ht===0?Oe-te<=or:Ne-te<=Gt)&&(We.push(vr),We.push(pt-1),We.push(qt)),(ht===0?Oe+te>=or:Ne+te>=Gt)&&(We.push(pt+1),We.push(Rt),We.push(qt))}}return mt}(this.ids,this.coords,z,j,Z,this.nodeSize)};var Yi={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(z){return z}},An=function(z){this.options=on(Object.create(Yi),z),this.trees=new Array(this.options.maxZoom+1)};function Ni(z,j,Z,oe,de){return{x:z,y:j,zoom:1/0,id:Z,parentId:-1,numPoints:oe,properties:de}}function qe(z,j){var Z=z.geometry.coordinates,oe=Z[1];return{x:St(Z[0]),y:Er(oe),zoom:1/0,index:j,parentId:-1}}function Yt(z){return{type:"Feature",id:z.id,properties:wr(z),geometry:{type:"Point",coordinates:[(oe=z.x,360*(oe-.5)),(j=z.y,Z=(180-360*j)*Math.PI/180,360*Math.atan(Math.exp(Z))/Math.PI-90)]}};var j,Z,oe}function wr(z){var j=z.numPoints,Z=j>=1e4?Math.round(j/1e3)+"k":j>=1e3?Math.round(j/100)/10+"k":j;return on(on({},z.properties),{cluster:!0,cluster_id:z.id,point_count:j,point_count_abbreviated:Z})}function St(z){return z/360+.5}function Er(z){var j=Math.sin(z*Math.PI/180),Z=.5-.25*Math.log((1+j)/(1-j))/Math.PI;return Z<0?0:Z>1?1:Z}function on(z,j){for(var Z in j)z[Z]=j[Z];return z}function yn(z){return z.x}function tn(z){return z.y}function Kr(z,j,Z,oe,de,Oe){var Ne=de-Z,te=Oe-oe;if(Ne!==0||te!==0){var ye=((z-Z)*Ne+(j-oe)*te)/(Ne*Ne+te*te);ye>1?(Z=de,oe=Oe):ye>0&&(Z+=Ne*ye,oe+=te*ye)}return(Ne=z-Z)*Ne+(te=j-oe)*te}function Sn(z,j,Z,oe){var de={id:z===void 0?null:z,type:j,geometry:Z,tags:oe,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Oe){var Ne=Oe.geometry,te=Oe.type;if(te==="Point"||te==="MultiPoint"||te==="LineString")eo(Oe,Ne);else if(te==="Polygon"||te==="MultiLineString")for(var ye=0;ye0&&(Ne+=oe?(de*We-ye*Oe)/2:Math.sqrt(Math.pow(ye-de,2)+Math.pow(We-Oe,2))),de=ye,Oe=We}var mt=j.length-3;j[2]=1,function Lt(ht,Rt,vr,dr){for(var pt,or=dr,Gt=vr-Rt>>1,qt=vr-Rt,an=ht[Rt],rr=ht[Rt+1],wn=ht[vr],ti=ht[vr+1],xn=Rt+3;xnor)pt=xn,or=Ln;else if(Ln===or){var sn=Math.abs(xn-Gt);sndr&&(pt-Rt>3&&Lt(ht,Rt,pt,dr),ht[pt+2]=or,vr-pt>3&&Lt(ht,pt,vr,dr))}(j,0,mt,Z),j[mt+2]=1,j.size=Math.abs(Ne),j.start=0,j.end=j.size}function le(z,j,Z,oe){for(var de=0;de1?1:Z}function Mo(z,j,Z,oe,de,Oe,Ne,te){if(oe/=j,Oe>=(Z/=j)&&Ne=oe)return null;for(var ye=[],We=0;We=Z&&vr=oe)){var dr=[];if(ht==="Point"||ht==="MultiPoint")vs(Lt,dr,Z,oe,de);else if(ht==="LineString")ci(Lt,dr,Z,oe,de,!1,te.lineMetrics);else if(ht==="MultiLineString")ga(Lt,dr,Z,oe,de,!1);else if(ht==="Polygon")ga(Lt,dr,Z,oe,de,!0);else if(ht==="MultiPolygon")for(var pt=0;pt=Z&&Ne<=oe&&(j.push(z[Oe]),j.push(z[Oe+1]),j.push(z[Oe+2]))}}function ci(z,j,Z,oe,de,Oe,Ne){for(var te,ye,We=Po(z),mt=de===0?Ls:Wi,Lt=z.start,ht=0;htZ&&(ye=mt(We,Rt,vr,pt,or,Z),Ne&&(We.start=Lt+te*ye)):Gt>oe?qt=Z&&(ye=mt(We,Rt,vr,pt,or,Z),an=!0),qt>oe&&Gt<=oe&&(ye=mt(We,Rt,vr,pt,or,oe),an=!0),!Oe&&an&&(Ne&&(We.end=Lt+te*ye),j.push(We),We=Po(z)),Ne&&(Lt+=te)}var rr=z.length-3;Rt=z[rr],vr=z[rr+1],dr=z[rr+2],(Gt=de===0?Rt:vr)>=Z&&Gt<=oe&&Oo(We,Rt,vr,dr),rr=We.length-3,Oe&&rr>=3&&(We[rr]!==We[0]||We[rr+1]!==We[1])&&Oo(We,We[0],We[1],We[2]),We.length&&j.push(We)}function Po(z){var j=[];return j.size=z.size,j.start=z.start,j.end=z.end,j}function ga(z,j,Z,oe,de,Oe){for(var Ne=0;NeNe.maxX&&(Ne.maxX=mt),Lt>Ne.maxY&&(Ne.maxY=Lt)}return Ne}function Vu(z,j,Z,oe){var de=j.geometry,Oe=j.type,Ne=[];if(Oe==="Point"||Oe==="MultiPoint")for(var te=0;te0&&j.size<(de?Ne:oe))Z.numPoints+=j.length/3;else{for(var te=[],ye=0;yeNe)&&(Z.numSimplified++,te.push(j[ye]),te.push(j[ye+1])),Z.numPoints++;de&&function(We,mt){for(var Lt=0,ht=0,Rt=We.length,vr=Rt-2;ht0===mt)for(ht=0,Rt=We.length;ht24)throw new Error("maxZoom should be in the 0-24 range");if(j.promoteId&&j.generateId)throw new Error("promoteId and generateId cannot be used together.");var oe=function(de,Oe){var Ne=[];if(de.type==="FeatureCollection")for(var te=0;te=oe;We--){var mt=+Date.now();te=this._cluster(te,We),this.trees[We]=new nn(te,yn,tn,Oe,Float32Array),Z&&console.log("z%d: %d clusters in %dms",We,te.length,+Date.now()-mt)}return Z&&console.timeEnd("total time"),this},An.prototype.getClusters=function(z,j){var Z=((z[0]+180)%360+360)%360-180,oe=Math.max(-90,Math.min(90,z[1])),de=z[2]===180?180:((z[2]+180)%360+360)%360-180,Oe=Math.max(-90,Math.min(90,z[3]));if(z[2]-z[0]>=360)Z=-180,de=180;else if(Z>de){var Ne=this.getClusters([Z,oe,180,Oe],j),te=this.getClusters([-180,oe,de,Oe],j);return Ne.concat(te)}for(var ye=this.trees[this._limitZoom(j)],We=[],mt=0,Lt=ye.range(St(Z),Er(Oe),St(de),Er(oe));mtj&&(ht+=dr.numPoints||1)}if(ht>=Oe){for(var pt=ye.x*Lt,or=ye.y*Lt,Gt=de&&Lt>1?this._map(ye,!0):null,qt=(te<<5)+(j+1)+this.points.length,an=0,rr=mt;an1)for(var xn=0,Ln=mt;xn>5},An.prototype._getOriginZoom=function(z){return(z-this.points.length)%32},An.prototype._map=function(z,j){if(z.numPoints)return j?on({},z.properties):z.properties;var Z=this.points[z.index].properties,oe=this.options.map(Z);return j&&oe===Z?on({},oe):oe},ja.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ja.prototype.splitTile=function(z,j,Z,oe,de,Oe,Ne){for(var te=[z,j,Z,oe],ye=this.options,We=ye.debug;te.length;){oe=te.pop(),Z=te.pop(),j=te.pop(),z=te.pop();var mt=1<1&&console.time("creation"),ht=this.tiles[Lt]=ol(z,j,Z,oe,ye),this.tileCoords.push({z:j,x:Z,y:oe}),We)){We>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",j,Z,oe,ht.numFeatures,ht.numPoints,ht.numSimplified),console.timeEnd("creation"));var Rt="z"+j;this.stats[Rt]=(this.stats[Rt]||0)+1,this.total++}if(ht.source=z,de){if(j===ye.maxZoom||j===de)continue;var vr=1<1&&console.time("clipping");var dr,pt,or,Gt,qt,an,rr=.5*ye.buffer/ye.extent,wn=.5-rr,ti=.5+rr,xn=1+rr;dr=pt=or=Gt=null,qt=Mo(z,mt,Z-rr,Z+ti,0,ht.minX,ht.maxX,ye),an=Mo(z,mt,Z+wn,Z+xn,0,ht.minX,ht.maxX,ye),z=null,qt&&(dr=Mo(qt,mt,oe-rr,oe+ti,1,ht.minY,ht.maxY,ye),pt=Mo(qt,mt,oe+wn,oe+xn,1,ht.minY,ht.maxY,ye),qt=null),an&&(or=Mo(an,mt,oe-rr,oe+ti,1,ht.minY,ht.maxY,ye),Gt=Mo(an,mt,oe+wn,oe+xn,1,ht.minY,ht.maxY,ye),an=null),We>1&&console.timeEnd("clipping"),te.push(dr||[],j+1,2*Z,2*oe),te.push(pt||[],j+1,2*Z,2*oe+1),te.push(or||[],j+1,2*Z+1,2*oe),te.push(Gt||[],j+1,2*Z+1,2*oe+1)}}},ja.prototype.getTile=function(z,j,Z){var oe=this.options,de=oe.extent,Oe=oe.debug;if(z<0||z>24)return null;var Ne=1<1&&console.log("drilling down to z%d-%d-%d",z,j,Z);for(var ye,We=z,mt=j,Lt=Z;!ye&&We>0;)We--,mt=Math.floor(mt/2),Lt=Math.floor(Lt/2),ye=this.tiles[Xa(We,mt,Lt)];return ye&&ye.source?(Oe>1&&console.log("found parent tile z%d-%d-%d",We,mt,Lt),Oe>1&&console.time("drilling down"),this.splitTile(ye.source,We,mt,Lt,z,j,Z),Oe>1&&console.timeEnd("drilling down"),this.tiles[te]?il(this.tiles[te],de):null):null};var mu=function(z){function j(Z,oe,de,Oe){z.call(this,Z,oe,de,Ds),Oe&&(this.loadGeoJSON=Oe)}return z&&(j.__proto__=z),(j.prototype=Object.create(z&&z.prototype)).constructor=j,j.prototype.loadData=function(Z,oe){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=oe,this._pendingLoadDataParams=Z,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},j.prototype._loadData=function(){var Z=this;if(this._pendingCallback&&this._pendingLoadDataParams){var oe=this._pendingCallback,de=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Oe=!!(de&&de.request&&de.request.collectResourceTiming)&&new o.RequestPerformance(de.request);this.loadGeoJSON(de,function(Ne,te){if(Ne||!te)return oe(Ne);if(typeof te!="object")return oe(new Error("Input data given to '"+de.source+"' is not a valid GeoJSON object."));(function ht(Rt,vr){var dr,pt=Rt&&Rt.type;if(pt==="FeatureCollection")for(dr=0;dr"u"||typeof document>"u"?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var w,M,F=new Blob([""],{type:"text/javascript"}),V=URL.createObjectURL(F);try{M=new Worker(V),w=!0}catch{w=!1}return M&&M.terminate(),URL.revokeObjectURL(V),w}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var w=document.createElement("canvas");w.width=w.height=1;var M=w.getContext("2d");if(!M)return!1;var F=M.getImageData(0,0,1,1);return F&&F.width===w.width}()?(_[S=x&&x.failIfMajorPerformanceCaveat]===void 0&&(_[S]=function(w){var M=function(V){var ee=document.createElement("canvas"),re=Object.create(f.webGLContextAttributes);return re.failIfMajorPerformanceCaveat=V,ee.probablySupportsContext?ee.probablySupportsContext("webgl",re)||ee.probablySupportsContext("experimental-webgl",re):ee.supportsContext?ee.supportsContext("webgl",re)||ee.supportsContext("experimental-webgl",re):ee.getContext("webgl",re)||ee.getContext("experimental-webgl",re)}(w);if(!M)return!1;var F=M.createShader(M.VERTEX_SHADER);return!(!F||M.isContextLost())&&(M.shaderSource(F,"void main() {}"),M.compileShader(F),M.getShaderParameter(F,M.COMPILE_STATUS)===!0)}(S)),_[S]?void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var S}c.exports?c.exports=f:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=f,window.mapboxgl.notSupportedReason=h);var _={};f.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}}),m={create:function(c,f,h){var _=o.window.document.createElement(c);return f!==void 0&&(_.className=f),h&&h.appendChild(_),_},createNS:function(c,f){return o.window.document.createElementNS(c,f)}},v=o.window.document&&o.window.document.documentElement.style;function E(c){if(!v)return c[0];for(var f=0;f=0?0:c.button},m.remove=function(c){c.parentNode&&c.parentNode.removeChild(c)};var G=function(c){function f(){c.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new o.RGBAImage({width:1,height:1}),this.dirty=!0}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f.prototype.isLoaded=function(){return this.loaded},f.prototype.setLoaded=function(h){if(this.loaded!==h&&(this.loaded=h,h)){for(var _=0,x=this.requestors;_=0?1.2:1))}function ce(c,f,h,_,x,S,w){for(var M=0;M65535)F(new Error("glyphs > 65535 not supported"));else if(re.ranges[ve])F(null,{stack:V,id:ee,glyph:ne});else{var pe=re.requests[ve];pe||(pe=re.requests[ve]=[],ct.loadGlyphRange(V,ve,h.url,h.requestManager,function(Ce,he){if(he){for(var we in he)h._doesCharSupportLocalGlyph(+we)||(re.glyphs[+we]=he[+we]);re.ranges[ve]=!0}for(var Be=0,Ge=pe;Be1&&(M=c[++w]);var V=Math.abs(F-M.left),ee=Math.abs(F-M.right),re=Math.min(V,ee),ne=void 0,ve=x/h*(_+1);if(M.isDash){var pe=_-Math.abs(ve);ne=Math.sqrt(re*re+pe*pe)}else ne=_-Math.sqrt(re*re+ve*ve);this.data[S+F]=Math.max(0,Math.min(255,ne+128))}},He.prototype.addRegularDash=function(c){for(var f=c.length-1;f>=0;--f){var h=c[f],_=c[f+1];h.zeroLength?c.splice(f,1):_&&_.isDash===h.isDash&&(_.left=h.left,c.splice(f,1))}var x=c[0],S=c[c.length-1];x.isDash===S.isDash&&(x.left=S.left-this.width,S.right=x.right+this.width);for(var w=this.width*this.nextRow,M=0,F=c[M],V=0;V1&&(F=c[++M]);var ee=Math.abs(V-F.left),re=Math.abs(V-F.right),ne=Math.min(ee,re);this.data[w+V]=Math.max(0,Math.min(255,(F.isDash?ne:-ne)+128))}},He.prototype.addDash=function(c,f){var h=f?7:0,_=2*h+1;if(this.nextRow+_>this.height)return o.warnOnce("LineAtlas out of space"),null;for(var x=0,S=0;S=h&&c.x=_&&c.y0&&(V[new o.OverscaledTileID(h.overscaledZ,w,_.z,S,_.y-1).key]={backfilled:!1},V[new o.OverscaledTileID(h.overscaledZ,h.wrap,_.z,_.x,_.y-1).key]={backfilled:!1},V[new o.OverscaledTileID(h.overscaledZ,F,_.z,M,_.y-1).key]={backfilled:!1}),_.y+10&&(x.resourceTiming=h._resourceTiming,h._resourceTiming=[]),h.fire(new o.Event("data",x))}})},f.prototype.onAdd=function(h){this.map=h,this.load()},f.prototype.setData=function(h){var _=this;return this._data=h,this.fire(new o.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(x){if(x)_.fire(new o.ErrorEvent(x));else{var S={dataType:"source",sourceDataType:"content"};_._collectResourceTiming&&_._resourceTiming&&_._resourceTiming.length>0&&(S.resourceTiming=_._resourceTiming,_._resourceTiming=[]),_.fire(new o.Event("data",S))}}),this},f.prototype.getClusterExpansionZoom=function(h,_){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:h,source:this.id},_),this},f.prototype.getClusterChildren=function(h,_){return this.actor.send("geojson.getClusterChildren",{clusterId:h,source:this.id},_),this},f.prototype.getClusterLeaves=function(h,_,x,S){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:h,limit:_,offset:x},S),this},f.prototype._updateWorkerData=function(h){var _=this;this._loaded=!1;var x=o.extend({},this.workerOptions),S=this._data;typeof S=="string"?(x.request=this.map._requestManager.transformRequest(o.browser.resolveURL(S),o.ResourceType.Source),x.request.collectResourceTiming=this._collectResourceTiming):x.data=JSON.stringify(S),this.actor.send(this.type+".loadData",x,function(w,M){_._removed||M&&M.abandoned||(_._loaded=!0,M&&M.resourceTiming&&M.resourceTiming[_.id]&&(_._resourceTiming=M.resourceTiming[_.id].slice(0)),_.actor.send(_.type+".coalesce",{source:x.source},null),h(w))})},f.prototype.loaded=function(){return this._loaded},f.prototype.loadTile=function(h,_){var x=this,S=h.actor?"reloadTile":"loadTile";h.actor=this.actor,h.request=this.actor.send(S,{type:this.type,uid:h.uid,tileID:h.tileID,zoom:h.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:o.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(w,M){return delete h.request,h.unloadVectorData(),h.aborted?_(null):w?_(w):(h.loadVectorData(M,x.map.painter,S==="reloadTile"),_(null))})},f.prototype.abortTile=function(h){h.request&&(h.request.cancel(),delete h.request),h.aborted=!0},f.prototype.unloadTile=function(h){h.unloadVectorData(),this.actor.send("removeTile",{uid:h.uid,type:this.type,source:this.id})},f.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},f.prototype.serialize=function(){return o.extend({},this._options,{type:this.type,data:this._data})},f.prototype.hasTransition=function(){return!1},f}(o.Evented),Yr=o.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Jr=function(c){function f(h,_,x,S){c.call(this),this.id=h,this.dispatcher=x,this.coordinates=_.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(S),this.options=_}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f.prototype.load=function(h,_){var x=this;this._loaded=!1,this.fire(new o.Event("dataloading",{dataType:"source"})),this.url=this.options.url,o.getImage(this.map._requestManager.transformRequest(this.url,o.ResourceType.Image),function(S,w){x._loaded=!0,S?x.fire(new o.ErrorEvent(S)):w&&(x.image=w,h&&(x.coordinates=h),_&&_(),x._finishLoading())})},f.prototype.loaded=function(){return this._loaded},f.prototype.updateImage=function(h){var _=this;return this.image&&h.url?(this.options.url=h.url,this.load(h.coordinates,function(){_.texture=null}),this):this},f.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new o.Event("data",{dataType:"source",sourceDataType:"metadata"})))},f.prototype.onAdd=function(h){this.map=h,this.load()},f.prototype.setCoordinates=function(h){var _=this;this.coordinates=h;var x=h.map(o.MercatorCoordinate.fromLngLat);this.tileID=function(w){for(var M=1/0,F=1/0,V=-1/0,ee=-1/0,re=0,ne=w;re_.end(0)?this.fire(new o.ErrorEvent(new o.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+_.start(0)+" and "+_.end(0)+"-second mark."))):this.video.currentTime=h}},f.prototype.getVideo=function(){return this.video},f.prototype.onAdd=function(h){this.map||(this.map=h,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},f.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var h=this.map.painter.context,_=h.gl;for(var x in this.boundsBuffer||(this.boundsBuffer=h.createVertexBuffer(this._boundsArray,Yr.members)),this.boundsSegments||(this.boundsSegments=o.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(_.LINEAR,_.CLAMP_TO_EDGE),_.texSubImage2D(_.TEXTURE_2D,0,0,0,_.RGBA,_.UNSIGNED_BYTE,this.video)):(this.texture=new o.Texture(h,this.video,_.RGBA),this.texture.bind(_.LINEAR,_.CLAMP_TO_EDGE)),this.tiles){var S=this.tiles[x];S.state!=="loaded"&&(S.state="loaded",S.texture=this.texture)}}},f.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},f.prototype.hasTransition=function(){return this.video&&!this.video.paused},f}(Jr),Rn=function(c){function f(h,_,x,S){c.call(this,h,_,x,S),_.coordinates?Array.isArray(_.coordinates)&&_.coordinates.length===4&&!_.coordinates.some(function(w){return!Array.isArray(w)||w.length!==2||w.some(function(M){return typeof M!="number"})})||this.fire(new o.ErrorEvent(new o.ValidationError("sources."+h,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new o.ErrorEvent(new o.ValidationError("sources."+h,null,'missing required property "coordinates"'))),_.animate&&typeof _.animate!="boolean"&&this.fire(new o.ErrorEvent(new o.ValidationError("sources."+h,null,'optional "animate" property must be a boolean value'))),_.canvas?typeof _.canvas=="string"||_.canvas instanceof o.window.HTMLCanvasElement||this.fire(new o.ErrorEvent(new o.ValidationError("sources."+h,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new o.ErrorEvent(new o.ValidationError("sources."+h,null,'missing required property "canvas"'))),this.options=_,this.animate=_.animate===void 0||_.animate}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof o.window.HTMLCanvasElement?this.options.canvas:o.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new o.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},f.prototype.getCanvas=function(){return this.canvas},f.prototype.onAdd=function(h){this.map=h,this.load(),this.canvas&&this.animate&&this.play()},f.prototype.onRemove=function(){this.pause()},f.prototype.prepare=function(){var h=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,h=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,h=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var _=this.map.painter.context,x=_.gl;for(var S in this.boundsBuffer||(this.boundsBuffer=_.createVertexBuffer(this._boundsArray,Yr.members)),this.boundsSegments||(this.boundsSegments=o.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(h||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new o.Texture(_,this.canvas,x.RGBA,{premultiply:!0}),this.tiles){var w=this.tiles[S];w.state!=="loaded"&&(w.state="loaded",w.texture=this.texture)}}},f.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},f.prototype.hasTransition=function(){return this._playing},f.prototype._hasInvalidDimensions=function(){for(var h=0,_=[this.canvas.width,this.canvas.height];h<_.length;h+=1){var x=_[h];if(isNaN(x)||x<=0)return!0}return!1},f}(Jr),nn={vector:Ht,raster:Or,"raster-dem":mr,geojson:yr,video:vn,image:Jr,canvas:Rn};function Yi(c,f){var h=o.identity([]);return o.translate(h,h,[1,1,0]),o.scale(h,h,[.5*c.width,.5*c.height,1]),o.multiply(h,h,c.calculatePosMatrix(f.toUnwrapped()))}function An(c,f,h,_,x,S){var w=function(Ce,he,we){if(Ce)for(var Be=0,Ge=Ce;Bethis.max){var w=this._getAndRemoveByKey(this.order[0]);w&&this.onRemove(w)}return this},qe.prototype.has=function(c){return c.wrapped().key in this.data},qe.prototype.getAndRemove=function(c){return this.has(c)?this._getAndRemoveByKey(c.wrapped().key):null},qe.prototype._getAndRemoveByKey=function(c){var f=this.data[c].shift();return f.timeout&&clearTimeout(f.timeout),this.data[c].length===0&&delete this.data[c],this.order.splice(this.order.indexOf(c),1),f.value},qe.prototype.getByKey=function(c){var f=this.data[c];return f?f[0].value:null},qe.prototype.get=function(c){return this.has(c)?this.data[c.wrapped().key][0].value:null},qe.prototype.remove=function(c,f){if(!this.has(c))return this;var h=c.wrapped().key,_=f===void 0?0:this.data[h].indexOf(f),x=this.data[h][_];return this.data[h].splice(_,1),x.timeout&&clearTimeout(x.timeout),this.data[h].length===0&&delete this.data[h],this.onRemove(x.value),this.order.splice(this.order.indexOf(h),1),this},qe.prototype.setMaxSize=function(c){for(this.max=c;this.order.length>this.max;){var f=this._getAndRemoveByKey(this.order[0]);f&&this.onRemove(f)}return this},qe.prototype.filter=function(c){var f=[];for(var h in this.data)for(var _=0,x=this.data[h];_1||(Math.abs(ee)>1&&(Math.abs(ee+ne)===1?ee+=ne:Math.abs(ee-ne)===1&&(ee-=ne)),V.dem&&F.dem&&(F.dem.backfillBorder(V.dem,ee,re),F.neighboringTiles&&F.neighboringTiles[ve]&&(F.neighboringTiles[ve].backfilled=!0)))}},f.prototype.getTile=function(h){return this.getTileByID(h.key)},f.prototype.getTileByID=function(h){return this._tiles[h]},f.prototype._retainLoadedChildren=function(h,_,x,S){for(var w in this._tiles){var M=this._tiles[w];if(!(S[w]||!M.hasData()||M.tileID.overscaledZ<=_||M.tileID.overscaledZ>x)){for(var F=M.tileID;M&&M.tileID.overscaledZ>_+1;){var V=M.tileID.scaledTo(M.tileID.overscaledZ-1);(M=this._tiles[V.key])&&M.hasData()&&(F=V)}for(var ee=F;ee.overscaledZ>_;)if(h[(ee=ee.scaledTo(ee.overscaledZ-1)).key]){S[F.key]=F;break}}}},f.prototype.findLoadedParent=function(h,_){if(h.key in this._loadedParentTiles){var x=this._loadedParentTiles[h.key];return x&&x.tileID.overscaledZ>=_?x:null}for(var S=h.overscaledZ-1;S>=_;S--){var w=h.scaledTo(S),M=this._getLoadedTile(w);if(M)return M}},f.prototype._getLoadedTile=function(h){var _=this._tiles[h.key];return _&&_.hasData()?_:this._cache.getByKey(h.wrapped().key)},f.prototype.updateCacheSize=function(h){var _=Math.ceil(h.width/this._source.tileSize)+1,x=Math.ceil(h.height/this._source.tileSize)+1,S=Math.floor(_*x*5),w=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,S):S;this._cache.setMaxSize(w)},f.prototype.handleWrapJump=function(h){var _=Math.round((h-(this._prevLng===void 0?h:this._prevLng))/360);if(this._prevLng=h,_){var x={};for(var S in this._tiles){var w=this._tiles[S];w.tileID=w.tileID.unwrapTo(w.tileID.wrap+_),x[w.tileID.key]=w}for(var M in this._tiles=x,this._timers)clearTimeout(this._timers[M]),delete this._timers[M];for(var F in this._tiles)this._setTileReloadTimer(F,this._tiles[F])}},f.prototype.update=function(h){var _=this;if(this.transform=h,this._sourceLoaded&&!this._paused){var x;this.updateCacheSize(h),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?x=h.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Et){return new o.OverscaledTileID(Et.canonical.z,Et.wrap,Et.canonical.z,Et.canonical.x,Et.canonical.y)}):(x=h.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(x=x.filter(function(Et){return _._source.hasTile(Et)}))):x=[];var S=h.coveringZoomLevel(this._source),w=Math.max(S-f.maxOverzooming,this._source.minzoom),M=Math.max(S+f.maxUnderzooming,this._source.minzoom),F=this._updateRetainedTiles(x,S);if(mt(this._source.type)){for(var V={},ee={},re=0,ne=Object.keys(F);rethis._source.maxzoom){var we=Ce.children(this._source.maxzoom)[0],Be=this.getTile(we);if(Be&&Be.hasData()){x[we.key]=we;continue}}else{var Ge=Ce.children(this._source.maxzoom);if(x[Ge[0].key]&&x[Ge[1].key]&&x[Ge[2].key]&&x[Ge[3].key])continue}for(var st=he.wasRequested(),Je=Ce.overscaledZ-1;Je>=w;--Je){var ft=Ce.scaledTo(Je);if(S[ft.key]||(S[ft.key]=!0,!(he=this.getTile(ft))&&st&&(he=this._addTile(ft)),he&&(x[ft.key]=ft,st=he.wasRequested(),he.hasData())))break}}}return x},f.prototype._updateLoadedParentTileCache=function(){for(var h in this._loadedParentTiles={},this._tiles){for(var _=[],x=void 0,S=this._tiles[h].tileID;S.overscaledZ>0;){if(S.key in this._loadedParentTiles){x=this._loadedParentTiles[S.key];break}_.push(S.key);var w=S.scaledTo(S.overscaledZ-1);if(x=this._getLoadedTile(w))break;S=w}for(var M=0,F=_;M0||(_.hasData()&&_.state!=="reloading"?this._cache.add(_.tileID,_,_.getExpiryTimeout()):(_.aborted=!0,this._abortTile(_),this._unloadTile(_))))},f.prototype.clearTiles=function(){for(var h in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(h);this._cache.reset()},f.prototype.tilesIn=function(h,_,x){var S=this,w=[],M=this.transform;if(!M)return w;for(var F=x?M.getCameraQueryGeometry(h):h,V=h.map(function(Je){return M.pointCoordinate(Je)}),ee=F.map(function(Je){return M.pointCoordinate(Je)}),re=this.getIds(),ne=1/0,ve=1/0,pe=-1/0,Ce=-1/0,he=0,we=ee;he=0&&ar[1].y+Nt>=0){var Ir=V.map(function(Dr){return Et.getTilePoint(Dr)}),Br=ee.map(function(Dr){return Et.getTilePoint(Dr)});w.push({tile:ft,tileID:Et,queryGeometry:Ir,cameraQueryGeometry:Br,scale:jt})}}},st=0;st=o.browser.now())return!0}return!1},f.prototype.setFeatureState=function(h,_,x){this._state.updateState(h=h||"_geojsonTileLayer",_,x)},f.prototype.removeFeatureState=function(h,_,x){this._state.removeFeatureState(h=h||"_geojsonTileLayer",_,x)},f.prototype.getFeatureState=function(h,_){return this._state.getState(h=h||"_geojsonTileLayer",_)},f.prototype.setDependencies=function(h,_,x){var S=this._tiles[h];S&&S.setDependencies(_,x)},f.prototype.reloadTilesForDependencies=function(h,_){for(var x in this._tiles)this._tiles[x].hasDependency(h,_)&&this._reloadTile(x,"reloading");this._cache.filter(function(S){return!S.hasDependency(h,_)})},f}(o.Evented);function We(c,f){var h=Math.abs(2*c.wrap)-+(c.wrap<0),_=Math.abs(2*f.wrap)-+(f.wrap<0);return c.overscaledZ-f.overscaledZ||_-h||f.canonical.y-c.canonical.y||f.canonical.x-c.canonical.x}function mt(c){return c==="raster"||c==="image"||c==="video"}function Lt(){return new o.window.Worker(w1.workerUrl)}ye.maxOverzooming=10,ye.maxUnderzooming=3;var ht="mapboxgl_preloaded_worker_pool",Rt=function(){this.active={}};Rt.prototype.acquire=function(c){if(!this.workers)for(this.workers=[];this.workers.length0?(_-S)/w:0;return this.points[x].mult(1-M).add(this.points[f].mult(M))};var In=function(c,f,h){var _=this.boxCells=[],x=this.circleCells=[];this.xCellCount=Math.ceil(c/h),this.yCellCount=Math.ceil(f/h);for(var S=0;S=-f[0]&&h<=f[0]&&_>=-f[1]&&_<=f[1]}function Rl(c,f,h,_,x,S,w,M){var F=_?c.textSizeData:c.iconSizeData,V=o.evaluateSizeForZoom(F,h.transform.zoom),ee=[256/h.width*2+1,256/h.height*2+1],re=_?c.text.dynamicLayoutVertexArray:c.icon.dynamicLayoutVertexArray;re.clear();for(var ne=c.lineVertexArray,ve=_?c.text.placedSymbolArray:c.icon.placedSymbolArray,pe=h.transform.width/h.transform.height,Ce=!1,he=0;heMath.abs(h.x-f.x)*_?{useVertical:!0}:(c===o.WritingMode.vertical?f.yh.x)?{needsFlipping:!0}:null}function Il(c,f,h,_,x,S,w,M,F,V,ee,re,ne,ve){var pe,Ce=f/24,he=c.lineOffsetX*Ce,we=c.lineOffsetY*Ce;if(c.numGlyphs>1){var Be=c.glyphStartIndex+c.numGlyphs,Ge=c.lineStartIndex,st=c.lineStartIndex+c.lineLength,Je=ki(Ce,M,he,we,h,ee,re,c,F,S,ne);if(!Je)return{notEnoughRoom:!0};var ft=ln(Je.first.point,w).point,Et=ln(Je.last.point,w).point;if(_&&!h){var jt=Ei(c.writingMode,ft,Et,ve);if(jt)return jt}pe=[Je.first];for(var Nt=c.glyphStartIndex+1;Nt0?Dr.point:rs(re,Br,ar,1,x),fr=Ei(c.writingMode,ar,Nn,ve);if(fr)return fr}var qr=vi(Ce*M.getoffsetX(c.glyphStartIndex),he,we,h,ee,re,c.segment,c.lineStartIndex,c.lineStartIndex+c.lineLength,F,S,ne);if(!qr)return{notEnoughRoom:!0};pe=[qr]}for(var hn=0,Zr=pe;hn0?1:-1,pe=0;_&&(ve*=-1,pe=Math.PI),ve<0&&(pe+=Math.PI);for(var Ce=ve>0?M+w:M+w+1,he=x,we=x,Be=0,Ge=0,st=Math.abs(ne),Je=[];Be+Ge<=st;){if((Ce+=ve)=F)return null;if(we=he,Je.push(he),(he=re[Ce])===void 0){var ft=new o.Point(V.getx(Ce),V.gety(Ce)),Et=ln(ft,ee);if(Et.signedDistanceFromCamera>0)he=re[Ce]=Et.point;else{var jt=Ce-ve;he=rs(Be===0?S:new o.Point(V.getx(jt),V.gety(jt)),ft,we,st-Be+1,ee)}}Be+=Ge,Ge=we.dist(he)}var Nt=(st-Be)/Ge,ar=he.sub(we),Ir=ar.mult(Nt)._add(we);Ir._add(ar._unit()._perp()._mult(h*ve));var Br=pe+Math.atan2(he.y-we.y,he.x-we.x);return Je.push(Ir),{point:Ir,angle:Br,path:Je}}In.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},In.prototype.insert=function(c,f,h,_,x){this._forEachCell(f,h,_,x,this._insertBoxCell,this.boxUid++),this.boxKeys.push(c),this.bboxes.push(f),this.bboxes.push(h),this.bboxes.push(_),this.bboxes.push(x)},In.prototype.insertCircle=function(c,f,h,_){this._forEachCell(f-_,h-_,f+_,h+_,this._insertCircleCell,this.circleUid++),this.circleKeys.push(c),this.circles.push(f),this.circles.push(h),this.circles.push(_)},In.prototype._insertBoxCell=function(c,f,h,_,x,S){this.boxCells[x].push(S)},In.prototype._insertCircleCell=function(c,f,h,_,x,S){this.circleCells[x].push(S)},In.prototype._query=function(c,f,h,_,x,S){if(h<0||c>this.width||_<0||f>this.height)return!x&&[];var w=[];if(c<=0&&f<=0&&this.width<=h&&this.height<=_){if(x)return!0;for(var M=0;M0:w},In.prototype._queryCircle=function(c,f,h,_,x){var S=c-h,w=c+h,M=f-h,F=f+h;if(w<0||S>this.width||F<0||M>this.height)return!_&&[];var V=[];return this._forEachCell(S,M,w,F,this._queryCellCircle,V,{hitTest:_,circle:{x:c,y:f,radius:h},seenUids:{box:{},circle:{}}},x),_?V.length>0:V},In.prototype.query=function(c,f,h,_,x){return this._query(c,f,h,_,!1,x)},In.prototype.hitTest=function(c,f,h,_,x){return this._query(c,f,h,_,!0,x)},In.prototype.hitTestCircle=function(c,f,h,_){return this._queryCircle(c,f,h,!0,_)},In.prototype._queryCell=function(c,f,h,_,x,S,w,M){var F=w.seenUids,V=this.boxCells[x];if(V!==null)for(var ee=this.bboxes,re=0,ne=V;re=ee[pe+0]&&_>=ee[pe+1]&&(!M||M(this.boxKeys[ve]))){if(w.hitTest)return S.push(!0),!0;S.push({key:this.boxKeys[ve],x1:ee[pe],y1:ee[pe+1],x2:ee[pe+2],y2:ee[pe+3]})}}}var Ce=this.circleCells[x];if(Ce!==null)for(var he=this.circles,we=0,Be=Ce;wew*w+M*M},In.prototype._circleAndRectCollide=function(c,f,h,_,x,S,w){var M=(S-_)/2,F=Math.abs(c-(_+M));if(F>M+h)return!1;var V=(w-x)/2,ee=Math.abs(f-(x+V));if(ee>V+h)return!1;if(F<=M||ee<=V)return!0;var re=F-M,ne=ee-V;return re*re+ne*ne<=h*h};var sl=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function mo(c,f){for(var h=0;h=1;Nn--)Dr.push(Ir.path[Nn]);for(var fr=1;fr0){for(var Xr=Dr[0].clone(),un=Dr[0].clone(),Wr=1;Wr=jt.x&&un.x<=Nt.x&&Xr.y>=jt.y&&un.y<=Nt.y?[Dr]:un.xNt.x||un.yNt.y?[]:o.clipLine([Dr],jt.x,jt.y,Nt.x,Nt.y)}for(var Vr=0,to=Zr;Vr=this.screenRightBoundary||_<100||f>this.screenBottomBoundary},Ui.prototype.isInsideGrid=function(c,f,h,_){return h>=0&&c=0&&f0?(this.prevPlacement&&this.prevPlacement.variableOffsets[re.crossTileID]&&this.prevPlacement.placements[re.crossTileID]&&this.prevPlacement.placements[re.crossTileID].text&&(Ce=this.prevPlacement.variableOffsets[re.crossTileID].anchor),this.variableOffsets[re.crossTileID]={textOffset:he,width:h,height:_,anchor:c,textBoxScale:x,prevAnchor:Ce},this.markUsedJustification(ne,c,re,ve),ne.allowVerticalPlacement&&(this.markUsedOrientation(ne,ve,re),this.placedOrientations[re.crossTileID]=ve),{shift:we,placedGlyphBoxes:Be}):void 0},tt.prototype.placeLayerBucketPart=function(c,f,h){var _=this,x=c.parameters,S=x.bucket,w=x.layout,M=x.posMatrix,F=x.textLabelPlaneMatrix,V=x.labelToScreenMatrix,ee=x.textPixelRatio,re=x.holdingForFade,ne=x.collisionBoxArray,ve=x.partiallyEvaluatedTextSize,pe=x.collisionGroup,Ce=w.get("text-optional"),he=w.get("icon-optional"),we=w.get("text-allow-overlap"),Be=w.get("icon-allow-overlap"),Ge=w.get("text-rotation-alignment")==="map",st=w.get("text-pitch-alignment")==="map",Je=w.get("icon-text-fit")!=="none",ft=w.get("symbol-z-order")==="viewport-y",Et=we&&(Be||!S.hasIconData()||he),jt=Be&&(we||!S.hasTextData()||Ce);!S.collisionArrays&&ne&&S.deserializeCollisionBoxes(ne);var Nt=function(fr,qr){if(!f[fr.crossTileID])if(re)_.placements[fr.crossTileID]=new yc(!1,!1,!1);else{var hn,Zr=!1,Xr=!1,un=!0,Wr=null,Vr={box:null,offscreen:null},to={box:null,offscreen:null},Mi=null,Bo=null,yo=0,Ri=0,Pi=0;qr.textFeatureIndex?yo=qr.textFeatureIndex:fr.useRuntimeCollisionCircles&&(yo=fr.featureIndex),qr.verticalTextFeatureIndex&&(Ri=qr.verticalTextFeatureIndex);var ua=qr.textBox;if(ua){var ta=function(On){var Fo=o.WritingMode.horizontal;if(S.allowVerticalPlacement&&!On&&_.prevPlacement){var ro=_.prevPlacement.placedOrientations[fr.crossTileID];ro&&(_.placedOrientations[fr.crossTileID]=ro,_.markUsedOrientation(S,Fo=ro,fr))}return Fo},Xs=function(On,Fo){if(S.allowVerticalPlacement&&fr.numVerticalGlyphVertices>0&&qr.verticalTextBox)for(var ro=0,Gs=S.writingModes;ro0&&(ca=ca.filter(function(On){return On!==cs.anchor})).unshift(cs.anchor)}var Na=function(On,Fo,ro){for(var Gs=On.x2-On.x1,C1=On.y2-On.y1,Yl=fr.textBoxScale,Ch=Je&&!Be?Fo:null,wu={box:[],offscreen:!1},Cu=we?2*ca.length:ca.length,Ss=0;Ss=ca.length,fr,S,ro,Ch);if(R1&&(wu=R1.placedGlyphBoxes)&&wu.box&&wu.box.length){Zr=!0,Wr=R1.shift;break}}return wu};Xs(function(){return Na(ua,qr.iconBox,o.WritingMode.horizontal)},function(){var On=qr.verticalTextBox;return S.allowVerticalPlacement&&!(Vr&&Vr.box&&Vr.box.length)&&fr.numVerticalGlyphVertices>0&&On?Na(On,qr.verticalIconBox,o.WritingMode.vertical):{box:null,offscreen:null}}),Vr&&(Zr=Vr.box,un=Vr.offscreen);var Ju=ta(Vr&&Vr.box);if(!Zr&&_.prevPlacement){var Su=_.prevPlacement.variableOffsets[fr.crossTileID];Su&&(_.variableOffsets[fr.crossTileID]=Su,_.markUsedJustification(S,Su.anchor,fr,Ju))}}else{var Ws=function(On,Fo){var ro=_.collisionIndex.placeCollisionBox(On,we,ee,M,pe.predicate);return ro&&ro.box&&ro.box.length&&(_.markUsedOrientation(S,Fo,fr),_.placedOrientations[fr.crossTileID]=Fo),ro};Xs(function(){return Ws(ua,o.WritingMode.horizontal)},function(){var On=qr.verticalTextBox;return S.allowVerticalPlacement&&fr.numVerticalGlyphVertices>0&&On?Ws(On,o.WritingMode.vertical):{box:null,offscreen:null}}),ta(Vr&&Vr.box&&Vr.box.length)}}if(Zr=(hn=Vr)&&hn.box&&hn.box.length>0,un=hn&&hn.offscreen,fr.useRuntimeCollisionCircles){var $l=S.text.placedSymbolArray.get(fr.centerJustifiedTextSymbolIndex),yl=o.evaluateSizeForFeature(S.textSizeData,ve,$l),Ts=w.get("text-padding");Mi=_.collisionIndex.placeCollisionCircles(we,$l,S.lineVertexArray,S.glyphOffsetArray,yl,M,F,V,h,st,pe.predicate,fr.collisionCircleDiameter,Ts),Zr=we||Mi.circles.length>0&&!Mi.collisionDetected,un=un&&Mi.offscreen}if(qr.iconFeatureIndex&&(Pi=qr.iconFeatureIndex),qr.iconBox){var ql=function(On){var Fo=Je&&Wr?Ie(On,Wr.x,Wr.y,Ge,st,_.transform.angle):On;return _.collisionIndex.placeCollisionBox(Fo,Be,ee,M,pe.predicate)};Xr=to&&to.box&&to.box.length&&qr.verticalIconBox?(Bo=ql(qr.verticalIconBox)).box.length>0:(Bo=ql(qr.iconBox)).box.length>0,un=un&&Bo.offscreen}var Go=Ce||fr.numHorizontalGlyphVertices===0&&fr.numVerticalGlyphVertices===0,Hi=he||fr.numIconVertices===0;if(Go||Hi?Hi?Go||(Xr=Xr&&Zr):Zr=Xr&&Zr:Xr=Zr=Xr&&Zr,Zr&&hn&&hn.box&&_.collisionIndex.insertCollisionBox(hn.box,w.get("text-ignore-placement"),S.bucketInstanceId,to&&to.box&&Ri?Ri:yo,pe.ID),Xr&&Bo&&_.collisionIndex.insertCollisionBox(Bo.box,w.get("icon-ignore-placement"),S.bucketInstanceId,Pi,pe.ID),Mi&&(Zr&&_.collisionIndex.insertCollisionCircles(Mi.circles,w.get("text-ignore-placement"),S.bucketInstanceId,yo,pe.ID),h)){var xa=S.bucketInstanceId,hs=_.collisionCircleArrays[xa];hs===void 0&&(hs=_.collisionCircleArrays[xa]=new Pa);for(var As=0;As=0;--Ir){var Br=ar[Ir];Nt(S.symbolInstances.get(Br),S.collisionArrays[Br])}else for(var Dr=c.symbolInstanceStart;Dr=0&&(c.text.placedSymbolArray.get(M).crossTileID=x>=0&&M!==x?0:h.crossTileID)}},tt.prototype.markUsedOrientation=function(c,f,h){for(var _=f===o.WritingMode.horizontal||f===o.WritingMode.horizontalOnly?f:0,x=f===o.WritingMode.vertical?f:0,S=0,w=[h.leftJustifiedTextSymbolIndex,h.centerJustifiedTextSymbolIndex,h.rightJustifiedTextSymbolIndex];S0,jt=_.placedOrientations[Be.crossTileID],Nt=jt===o.WritingMode.vertical,ar=jt===o.WritingMode.horizontal||jt===o.WritingMode.horizontalOnly;if(Ge>0||st>0){var Ir=uf(ft.text);ve(c.text,Ge,Nt?Hu:Ir),ve(c.text,st,ar?Hu:Ir);var Br=ft.text.isHidden();[Be.rightJustifiedTextSymbolIndex,Be.centerJustifiedTextSymbolIndex,Be.leftJustifiedTextSymbolIndex].forEach(function(Vr){Vr>=0&&(c.text.placedSymbolArray.get(Vr).hidden=Br||Nt?1:0)}),Be.verticalPlacedTextSymbolIndex>=0&&(c.text.placedSymbolArray.get(Be.verticalPlacedTextSymbolIndex).hidden=Br||ar?1:0);var Dr=_.variableOffsets[Be.crossTileID];Dr&&_.markUsedJustification(c,Dr.anchor,Be,jt);var Nn=_.placedOrientations[Be.crossTileID];Nn&&(_.markUsedJustification(c,"left",Be,Nn),_.markUsedOrientation(c,Nn,Be))}if(Et){var fr=uf(ft.icon),qr=!(re&&Be.verticalPlacedIconSymbolIndex&&Nt);Be.placedIconSymbolIndex>=0&&(ve(c.icon,Be.numIconVertices,qr?fr:Hu),c.icon.placedSymbolArray.get(Be.placedIconSymbolIndex).hidden=ft.icon.isHidden()),Be.verticalPlacedIconSymbolIndex>=0&&(ve(c.icon,Be.numVerticalIconVertices,qr?Hu:fr),c.icon.placedSymbolArray.get(Be.verticalPlacedIconSymbolIndex).hidden=ft.icon.isHidden())}if(c.hasIconCollisionBoxData()||c.hasTextCollisionBoxData()){var hn=c.collisionArrays[we];if(hn){var Zr=new o.Point(0,0);if(hn.textBox||hn.verticalTextBox){var Xr=!0;if(F){var un=_.variableOffsets[Je];un?(Zr=ie(un.anchor,un.width,un.height,un.textOffset,un.textBoxScale),V&&Zr._rotate(ee?_.transform.angle:-_.transform.angle)):Xr=!1}hn.textBox&&Vt(c.textCollisionBox.collisionVertexArray,ft.text.placed,!Xr||Nt,Zr.x,Zr.y),hn.verticalTextBox&&Vt(c.textCollisionBox.collisionVertexArray,ft.text.placed,!Xr||ar,Zr.x,Zr.y)}var Wr=!!(!ar&&hn.verticalIconBox);hn.iconBox&&Vt(c.iconCollisionBox.collisionVertexArray,ft.icon.placed,Wr,re?Zr.x:0,re?Zr.y:0),hn.verticalIconBox&&Vt(c.iconCollisionBox.collisionVertexArray,ft.icon.placed,!Wr,re?Zr.x:0,re?Zr.y:0)}}},Ce=0;Cec},tt.prototype.setStale=function(){this.stale=!0};var Cr=Math.pow(2,25),Fn=Math.pow(2,24),Ki=Math.pow(2,17),Lo=Math.pow(2,16),_o=Math.pow(2,9),ns=Math.pow(2,8),lf=Math.pow(2,1);function uf(c){if(c.opacity===0&&!c.placed)return 0;if(c.opacity===1&&c.placed)return 4294967295;var f=c.placed?1:0,h=Math.floor(127*c.opacity);return h*Cr+f*Fn+h*Ki+f*Lo+h*_o+f*ns+h*lf+f}var Hu=0,ah=function(c){this._sortAcrossTiles=c.layout.get("symbol-z-order")!=="viewport-y"&&c.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ah.prototype.continuePlacement=function(c,f,h,_,x){for(var S=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var w=f[c[this._currentPlacementIndex]],M=this.placement.collisionIndex.transform.zoom;if(w.type==="symbol"&&(!w.minzoom||w.minzoom<=M)&&(!w.maxzoom||w.maxzoom>M)){if(this._inProgressLayer||(this._inProgressLayer=new ah(w)),this._inProgressLayer.continuePlacement(h[w.source],this.placement,this._showCollisionBoxes,w,S))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},xc.prototype.commit=function(c){return this.placement.commit(c),this.placement};var cf=512/o.EXTENT/2,i1=function(c,f,h){this.tileID=c,this.indexedSymbolInstances={},this.bucketInstanceId=h;for(var _=0;_c.overscaledZ)for(var M in w){var F=w[M];F.tileID.isChildOf(c)&&F.findMatches(f.symbolInstances,c,x)}else{var V=w[c.scaledTo(Number(S)).key];V&&V.findMatches(f.symbolInstances,c,x)}}for(var ee=0;ee1?"@2x":"",re=o.getJSON(S.transformRequest(S.normalizeSpriteURL(x,ee,".json"),o.ResourceType.SpriteJSON),function(pe,Ce){re=null,V||(V=pe,M=Ce,ve())}),ne=o.getImage(S.transformRequest(S.normalizeSpriteURL(x,ee,".png"),o.ResourceType.SpriteImage),function(pe,Ce){ne=null,V||(V=pe,F=Ce,ve())});function ve(){if(V)w(V);else if(M&&F){var pe=o.browser.getImageData(F),Ce={};for(var he in M){var we=M[he],Be=we.width,Ge=we.height,st=we.x,Je=we.y,ft=we.sdf,Et=we.pixelRatio,jt=we.stretchX,Nt=we.stretchY,ar=we.content,Ir=new o.RGBAImage({width:Be,height:Ge});o.RGBAImage.copy(pe,Ir,{x:st,y:Je},{x:0,y:0},{width:Be,height:Ge}),Ce[he]={data:Ir,pixelRatio:Et,sdf:ft,stretchX:jt,stretchY:Nt,content:ar}}w(null,Ce)}}return{cancel:function(){re&&(re.cancel(),re=null),ne&&(ne.cancel(),ne=null)}}}(h,this.map._requestManager,function(x,S){if(_._spriteRequest=null,x)_.fire(new o.ErrorEvent(x));else if(S)for(var w in S)_.imageManager.addImage(w,S[w]);_.imageManager.setLoaded(!0),_._availableImages=_.imageManager.listImages(),_.dispatcher.broadcast("setImages",_._availableImages),_.fire(new o.Event("data",{dataType:"style"}))})},f.prototype._validateLayer=function(h){var _=this.sourceCaches[h.source];if(_){var x=h.sourceLayer;if(x){var S=_.getSource();(S.type==="geojson"||S.vectorLayerIds&&S.vectorLayerIds.indexOf(x)===-1)&&this.fire(new o.ErrorEvent(new Error('Source layer "'+x+'" does not exist on source "'+S.id+'" as specified by style layer "'+h.id+'"')))}}},f.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var h in this.sourceCaches)if(!this.sourceCaches[h].loaded())return!1;return!!this.imageManager.isLoaded()},f.prototype._serializeLayers=function(h){for(var _=[],x=0,S=h;x0)throw new Error("Unimplemented: "+S.map(function(w){return w.command}).join(", ")+".");return x.forEach(function(w){w.command!=="setTransition"&&_[w.command].apply(_,w.args)}),this.stylesheet=h,!0},f.prototype.addImage=function(h,_){if(this.getImage(h))return this.fire(new o.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(h,_),this._afterImageUpdated(h)},f.prototype.updateImage=function(h,_){this.imageManager.updateImage(h,_)},f.prototype.getImage=function(h){return this.imageManager.getImage(h)},f.prototype.removeImage=function(h){if(!this.getImage(h))return this.fire(new o.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(h),this._afterImageUpdated(h)},f.prototype._afterImageUpdated=function(h){this._availableImages=this.imageManager.listImages(),this._changedImages[h]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new o.Event("data",{dataType:"style"}))},f.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},f.prototype.addSource=function(h,_,x){var S=this;if(x===void 0&&(x={}),this._checkLoaded(),this.sourceCaches[h]!==void 0)throw new Error("There is already a source with this ID");if(!_.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(_).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(_.type)>=0&&this._validate(o.validateStyle.source,"sources."+h,_,null,x))){this.map&&this.map._collectResourceTiming&&(_.collectResourceTiming=!0);var w=this.sourceCaches[h]=new ye(h,_,this.dispatcher);w.style=this,w.setEventedParent(this,function(){return{isSourceLoaded:S.loaded(),source:w.serialize(),sourceId:h}}),w.onAdd(this.map),this._changed=!0}},f.prototype.removeSource=function(h){if(this._checkLoaded(),this.sourceCaches[h]===void 0)throw new Error("There is no source with this ID");for(var _ in this._layers)if(this._layers[_].source===h)return this.fire(new o.ErrorEvent(new Error('Source "'+h+'" cannot be removed while layer "'+_+'" is using it.')));var x=this.sourceCaches[h];delete this.sourceCaches[h],delete this._updatedSources[h],x.fire(new o.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:h})),x.setEventedParent(null),x.clearTiles(),x.onRemove&&x.onRemove(this.map),this._changed=!0},f.prototype.setGeoJSONSourceData=function(h,_){this._checkLoaded(),this.sourceCaches[h].getSource().setData(_),this._changed=!0},f.prototype.getSource=function(h){return this.sourceCaches[h]&&this.sourceCaches[h].getSource()},f.prototype.addLayer=function(h,_,x){x===void 0&&(x={}),this._checkLoaded();var S=h.id;if(this.getLayer(S))this.fire(new o.ErrorEvent(new Error('Layer with id "'+S+'" already exists on this map')));else{var w;if(h.type==="custom"){if(Bs(this,o.validateCustomStyleLayer(h)))return;w=o.createStyleLayer(h)}else{if(typeof h.source=="object"&&(this.addSource(S,h.source),h=o.clone$1(h),h=o.extend(h,{source:S})),this._validate(o.validateStyle.layer,"layers."+S,h,{arrayIndex:-1},x))return;w=o.createStyleLayer(h),this._validateLayer(w),w.setEventedParent(this,{layer:{id:S}}),this._serializedLayers[w.id]=w.serialize()}var M=_?this._order.indexOf(_):this._order.length;if(_&&M===-1)this.fire(new o.ErrorEvent(new Error('Layer with id "'+_+'" does not exist on this map.')));else{if(this._order.splice(M,0,S),this._layerOrderChanged=!0,this._layers[S]=w,this._removedLayers[S]&&w.source&&w.type!=="custom"){var F=this._removedLayers[S];delete this._removedLayers[S],F.type!==w.type?this._updatedSources[w.source]="clear":(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause())}this._updateLayer(w),w.onAdd&&w.onAdd(this.map)}}},f.prototype.moveLayer=function(h,_){if(this._checkLoaded(),this._changed=!0,this._layers[h]){if(h!==_){var x=this._order.indexOf(h);this._order.splice(x,1);var S=_?this._order.indexOf(_):this._order.length;_&&S===-1?this.fire(new o.ErrorEvent(new Error('Layer with id "'+_+'" does not exist on this map.'))):(this._order.splice(S,0,h),this._layerOrderChanged=!0)}}else this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style and cannot be moved.")))},f.prototype.removeLayer=function(h){this._checkLoaded();var _=this._layers[h];if(_){_.setEventedParent(null);var x=this._order.indexOf(h);this._order.splice(x,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[h]=_,delete this._layers[h],delete this._serializedLayers[h],delete this._updatedLayers[h],delete this._updatedPaintProps[h],_.onRemove&&_.onRemove(this.map)}else this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style and cannot be removed.")))},f.prototype.getLayer=function(h){return this._layers[h]},f.prototype.hasLayer=function(h){return h in this._layers},f.prototype.setLayerZoomRange=function(h,_,x){this._checkLoaded();var S=this.getLayer(h);S?S.minzoom===_&&S.maxzoom===x||(_!=null&&(S.minzoom=_),x!=null&&(S.maxzoom=x),this._updateLayer(S)):this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style and cannot have zoom extent.")))},f.prototype.setFilter=function(h,_,x){x===void 0&&(x={}),this._checkLoaded();var S=this.getLayer(h);if(S){if(!o.deepEqual(S.filter,_))return _==null?(S.filter=void 0,void this._updateLayer(S)):void(this._validate(o.validateStyle.filter,"layers."+S.id+".filter",_,null,x)||(S.filter=o.clone$1(_),this._updateLayer(S)))}else this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style and cannot be filtered.")))},f.prototype.getFilter=function(h){return o.clone$1(this.getLayer(h).filter)},f.prototype.setLayoutProperty=function(h,_,x,S){S===void 0&&(S={}),this._checkLoaded();var w=this.getLayer(h);w?o.deepEqual(w.getLayoutProperty(_),x)||(w.setLayoutProperty(_,x,S),this._updateLayer(w)):this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style and cannot be styled.")))},f.prototype.getLayoutProperty=function(h,_){var x=this.getLayer(h);if(x)return x.getLayoutProperty(_);this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style.")))},f.prototype.setPaintProperty=function(h,_,x,S){S===void 0&&(S={}),this._checkLoaded();var w=this.getLayer(h);w?o.deepEqual(w.getPaintProperty(_),x)||(w.setPaintProperty(_,x,S)&&this._updateLayer(w),this._changed=!0,this._updatedPaintProps[h]=!0):this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style and cannot be styled.")))},f.prototype.getPaintProperty=function(h,_){return this.getLayer(h).getPaintProperty(_)},f.prototype.setFeatureState=function(h,_){this._checkLoaded();var x=h.source,S=h.sourceLayer,w=this.sourceCaches[x];if(w!==void 0){var M=w.getSource().type;M==="geojson"&&S?this.fire(new o.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):M!=="vector"||S?(h.id===void 0&&this.fire(new o.ErrorEvent(new Error("The feature id parameter must be provided."))),w.setFeatureState(S,h.id,_)):this.fire(new o.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new o.ErrorEvent(new Error("The source '"+x+"' does not exist in the map's style.")))},f.prototype.removeFeatureState=function(h,_){this._checkLoaded();var x=h.source,S=this.sourceCaches[x];if(S!==void 0){var w=S.getSource().type,M=w==="vector"?h.sourceLayer:void 0;w!=="vector"||M?_&&typeof h.id!="string"&&typeof h.id!="number"?this.fire(new o.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):S.removeFeatureState(M,h.id,_):this.fire(new o.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new o.ErrorEvent(new Error("The source '"+x+"' does not exist in the map's style.")))},f.prototype.getFeatureState=function(h){this._checkLoaded();var _=h.source,x=h.sourceLayer,S=this.sourceCaches[_];if(S!==void 0){if(S.getSource().type!=="vector"||x)return h.id===void 0&&this.fire(new o.ErrorEvent(new Error("The feature id parameter must be provided."))),S.getFeatureState(x,h.id);this.fire(new o.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new o.ErrorEvent(new Error("The source '"+_+"' does not exist in the map's style.")))},f.prototype.getTransition=function(){return o.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},f.prototype.serialize=function(){return o.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:o.mapObject(this.sourceCaches,function(h){return h.serialize()}),layers:this._serializeLayers(this._order)},function(h){return h!==void 0})},f.prototype._updateLayer=function(h){this._updatedLayers[h.id]=!0,h.source&&!this._updatedSources[h.source]&&this.sourceCaches[h.source].getSource().type!=="raster"&&(this._updatedSources[h.source]="reload",this.sourceCaches[h.source].pause()),this._changed=!0},f.prototype._flattenAndSortRenderedFeatures=function(h){for(var _=this,x=function(jt){return _._layers[jt].type==="fill-extrusion"},S={},w=[],M=this._order.length-1;M>=0;M--){var F=this._order[M];if(x(F)){S[F]=M;for(var V=0,ee=h;V=0;Ce--){var he=this._order[Ce];if(x(he))for(var we=w.length-1;we>=0;we--){var Be=w[we].feature;if(S[Be.layer.id](d=1))return d;for(;uy?u=g:d=g,g=.5*(d-u)+u}return g},v.prototype.solve=function(i,s){return this.sampleCurveY(this.solveCurveX(i,s))};var E=b;function b(i,s){this.x=i,this.y=s}b.prototype={clone:function(){return new b(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,s){return this.clone()._rotateAround(i,s)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var s=i.x-this.x,u=i.y-this.y;return s*s+u*u},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,s){return Math.atan2(this.x*s-this.y*i,this.x*i+this.y*s)},_matMult:function(i){var s=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=s,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var s=Math.cos(i),u=Math.sin(i),d=u*this.x+s*this.y;return this.x=s*this.x-u*this.y,this.y=d,this},_rotateAround:function(i,s){var u=Math.cos(i),d=Math.sin(i),g=s.y+d*(this.x-s.x)+u*(this.y-s.y);return this.x=s.x+u*(this.x-s.x)-d*(this.y-s.y),this.y=g,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},b.convert=function(i){return i instanceof b?i:Array.isArray(i)?new b(i[0],i[1]):i};var A=typeof self<"u"?self:{},R=Math.pow(2,53)-1;function O(i,s,u,d){var g=new m(i,s,u,d);return function(y){return g.solve(y)}}var D=O(.25,.1,.25,1);function N(i,s,u){return Math.min(u,Math.max(s,i))}function W(i,s,u){var d=u-s,g=((i-s)%d+d)%d+s;return g===s?u:g}function G(i){for(var s=[],u=arguments.length-1;u-- >0;)s[u]=arguments[u+1];for(var d=0,g=s;d>s/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,i)}()}function Se(i){return!!i&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(i)}function ce(i,s){i.forEach(function(u){s[u]&&(s[u]=s[u].bind(s))})}function ke(i,s){return i.indexOf(s,i.length-s.length)!==-1}function ct(i,s,u){var d={};for(var g in i)d[g]=s.call(u||this,i[g],g,i);return d}function Ve(i,s,u){var d={};for(var g in i)s.call(u||this,i[g],g,i)&&(d[g]=i[g]);return d}function Te(i){return Array.isArray(i)?i.map(Te):typeof i=="object"&&i?ct(i,Te):i}var Fe={};function He(i){Fe[i]||(typeof console<"u"&&console.warn(i),Fe[i]=!0)}function nt(i,s,u){return(u.y-i.y)*(s.x-i.x)>(s.y-i.y)*(u.x-i.x)}function Ut(i){for(var s=0,u=0,d=i.length,g=d-1,y=void 0,T=void 0;u@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(d,g,y,T){var C=y||T;return s[g]=!C||C.toLowerCase(),""}),s["max-age"]){var u=parseInt(s["max-age"],10);isNaN(u)?delete s["max-age"]:s["max-age"]=u}return s}var Or=null;function mr(i){if(Or==null){var s=i.navigator?i.navigator.userAgent:null;Or=!!i.safari||!(!s||!(/\b(iPad|iPhone|iPod)\b/.test(s)||s.match("Safari")&&!s.match("Chrome")))}return Or}function yr(i){try{var s=A[i];return s.setItem("_mapbox_test_",1),s.removeItem("_mapbox_test_"),!0}catch{return!1}}var Yr,Jr,vn,Rn,nn=A.performance&&A.performance.now?A.performance.now.bind(A.performance):Date.now.bind(Date),Yi=A.requestAnimationFrame||A.mozRequestAnimationFrame||A.webkitRequestAnimationFrame||A.msRequestAnimationFrame,An=A.cancelAnimationFrame||A.mozCancelAnimationFrame||A.webkitCancelAnimationFrame||A.msCancelAnimationFrame,Ni={now:nn,frame:function(i){var s=Yi(i);return{cancel:function(){return An(s)}}},getImageData:function(i,s){s===void 0&&(s=0);var u=A.document.createElement("canvas"),d=u.getContext("2d");if(!d)throw new Error("failed to create canvas 2d context");return u.width=i.width,u.height=i.height,d.drawImage(i,0,0,i.width,i.height),d.getImageData(-s,-s,i.width+2*s,i.height+2*s)},resolveURL:function(i){return Yr||(Yr=A.document.createElement("a")),Yr.href=i,Yr.href},hardwareConcurrency:A.navigator&&A.navigator.hardwareConcurrency||4,get devicePixelRatio(){return A.devicePixelRatio},get prefersReducedMotion(){return!!A.matchMedia&&(Jr==null&&(Jr=A.matchMedia("(prefers-reduced-motion: reduce)")),Jr.matches)}},qe={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Yt={supported:!1,testSupport:function(i){!wr&&Rn&&(St?Er(i):vn=i)}},wr=!1,St=!1;function Er(i){var s=i.createTexture();i.bindTexture(i.TEXTURE_2D,s);try{if(i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,Rn),i.isContextLost())return;Yt.supported=!0}catch{}i.deleteTexture(s),wr=!0}A.document&&((Rn=A.document.createElement("img")).onload=function(){vn&&Er(vn),vn=null,St=!0},Rn.onerror=function(){wr=!0,vn=null},Rn.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var on="01",yn=function(i,s){this._transformRequestFn=i,this._customAccessToken=s,this._createSkuToken()};function tn(i){return i.indexOf("mapbox:")===0}yn.prototype._createSkuToken=function(){var i=function(){for(var s="",u=0;u<10;u++)s+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",on,s].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=i.token,this._skuTokenExpiresAt=i.tokenExpiresAt},yn.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},yn.prototype.transformRequest=function(i,s){return this._transformRequestFn&&this._transformRequestFn(i,s)||{url:i}},yn.prototype.normalizeStyleURL=function(i,s){if(!tn(i))return i;var u=ei(i);return u.path="/styles/v1"+u.path,this._makeAPIURL(u,this._customAccessToken||s)},yn.prototype.normalizeGlyphsURL=function(i,s){if(!tn(i))return i;var u=ei(i);return u.path="/fonts/v1"+u.path,this._makeAPIURL(u,this._customAccessToken||s)},yn.prototype.normalizeSourceURL=function(i,s){if(!tn(i))return i;var u=ei(i);return u.path="/v4/"+u.authority+".json",u.params.push("secure"),this._makeAPIURL(u,this._customAccessToken||s)},yn.prototype.normalizeSpriteURL=function(i,s,u,d){var g=ei(i);return tn(i)?(g.path="/styles/v1"+g.path+"/sprite"+s+u,this._makeAPIURL(g,this._customAccessToken||d)):(g.path+=""+s+u,ni(g))},yn.prototype.normalizeTileURL=function(i,s){if(this._isSkuTokenExpired()&&this._createSkuToken(),i&&!tn(i))return i;var u=ei(i);u.path=u.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Ni.devicePixelRatio>=2||s===512?"@2x":"")+(Yt.supported?".webp":"$1")),u.path=u.path.replace(/^.+\/v4\//,"/"),u.path="/v4"+u.path;var d=this._customAccessToken||function(g){for(var y=0,T=g;y=0&&i.params.splice(g,1)}if(d.path!=="/"&&(i.path=""+d.path+i.path),!qe.REQUIRE_ACCESS_TOKEN)return ni(i);if(!(s=s||qe.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+u);if(s[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+u);return i.params=i.params.filter(function(y){return y.indexOf("access_token")===-1}),i.params.push("access_token="+s),ni(i)};var Kr=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Sn(i){return Kr.test(i)}var eo=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ei(i){var s=i.match(eo);if(!s)throw new Error("Unable to parse URL object");return{protocol:s[1],authority:s[2],path:s[3]||"/",params:s[4]?s[4].split("&"):[]}}function ni(i){var s=i.params.length?"?"+i.params.join("&"):"";return i.protocol+"://"+i.authority+i.path+s}function Ro(i){if(!i)return null;var s=i.split(".");if(!s||s.length!==3)return null;try{return JSON.parse(decodeURIComponent(A.atob(s[1]).split("").map(function(u){return"%"+("00"+u.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch{return null}}var le=function(i){this.type=i,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};le.prototype.getStorageKey=function(i){var s,u=Ro(qe.ACCESS_TOKEN);return s=u&&u.u?A.btoa(encodeURIComponent(u.u).replace(/%([0-9A-F]{2})/g,function(d,g){return String.fromCharCode(+("0x"+g))})):qe.ACCESS_TOKEN||"",i?"mapbox.eventData."+i+":"+s:"mapbox.eventData:"+s},le.prototype.fetchEventData=function(){var i=yr("localStorage"),s=this.getStorageKey(),u=this.getStorageKey("uuid");if(i)try{var d=A.localStorage.getItem(s);d&&(this.eventData=JSON.parse(d));var g=A.localStorage.getItem(u);g&&(this.anonId=g)}catch{He("Unable to read from LocalStorage")}},le.prototype.saveEventData=function(){var i=yr("localStorage"),s=this.getStorageKey(),u=this.getStorageKey("uuid");if(i)try{A.localStorage.setItem(u,this.anonId),Object.keys(this.eventData).length>=1&&A.localStorage.setItem(s,JSON.stringify(this.eventData))}catch{He("Unable to write to LocalStorage")}},le.prototype.processRequests=function(i){},le.prototype.postEvent=function(i,s,u,d){var g=this;if(qe.EVENTS_URL){var y=ei(qe.EVENTS_URL);y.params.push("access_token="+(d||qe.ACCESS_TOKEN||""));var T={event:this.type,created:new Date(i).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:on,userId:this.anonId},C=s?G(T,s):T,P={url:ni(y),headers:{"Content-Type":"text/plain"},body:JSON.stringify([C])};this.pendingRequest=Xn(P,function(L){g.pendingRequest=null,u(L),g.saveEventData(),g.processRequests(d)})}},le.prototype.queueRequest=function(i,s){this.queue.push(i),this.processRequests(s)};var Io,ts,Mo=function(i){function s(){i.call(this,"map.load"),this.success={},this.skuToken=""}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.postMapLoadEvent=function(u,d,g,y){this.skuToken=g;var T=!(!y&&!qe.ACCESS_TOKEN),C=Array.isArray(u)&&u.some(function(P){return tn(P)||Sn(P)});qe.EVENTS_URL&&T&&C&&this.queueRequest({id:d,timestamp:Date.now()},y)},s.prototype.processRequests=function(u){var d=this;if(!this.pendingRequest&&this.queue.length!==0){var g=this.queue.shift(),y=g.id,T=g.timestamp;y&&this.success[y]||(this.anonId||this.fetchEventData(),Se(this.anonId)||(this.anonId=J()),this.postEvent(T,{skuToken:this.skuToken},function(C){C||y&&(d.success[y]=!0)},u))}},s}(le),vs=new(function(i){function s(u){i.call(this,"appUserTurnstile"),this._customAccessToken=u}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.postTurnstileEvent=function(u,d){qe.EVENTS_URL&&qe.ACCESS_TOKEN&&Array.isArray(u)&&u.some(function(g){return tn(g)||Sn(g)})&&this.queueRequest(Date.now(),d)},s.prototype.processRequests=function(u){var d=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var g=Ro(qe.ACCESS_TOKEN),y=g?g.u:qe.ACCESS_TOKEN,T=y!==this.eventData.tokenU;Se(this.anonId)||(this.anonId=J(),T=!0);var C=this.queue.shift();if(this.eventData.lastSuccess){var P=new Date(this.eventData.lastSuccess),L=new Date(C),k=(C-this.eventData.lastSuccess)/864e5;T=T||k>=1||k<-1||P.getDate()!==L.getDate()}else T=!0;if(!T)return this.processRequests();this.postEvent(C,{"enabled.telemetry":!1},function(U){U||(d.eventData.lastSuccess=C,d.eventData.tokenU=y)},u)}},s}(le)),ci=vs.postTurnstileEvent.bind(vs),Po=new Mo,ga=Po.postMapLoadEvent.bind(Po),Oo=500,Ls=50;function Wi(){A.caches&&!Io&&(Io=A.caches.open("mapbox-tiles"))}function ys(i){var s=i.indexOf("?");return s<0?i:i.slice(0,s)}var Ma,il=1/0;function du(){return Ma==null&&(Ma=A.OffscreenCanvas&&new A.OffscreenCanvas(1,1).getContext("2d")&&typeof A.createImageBitmap=="function"),Ma}var ol={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(ol);var Vu=function(i){function s(u,d,g){d===401&&Sn(g)&&(u+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),i.call(this,u),this.status=d,this.url=g,this.name=this.constructor.name,this.message=u}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},s}(Error),al=$t()?function(){return self.worker&&self.worker.referrer}:function(){return(A.location.protocol==="blob:"?A.parent:A).location.href},ja,Xa,Ds=function(i,s){if(!(/^file:/.test(u=i.url)||/^file:/.test(al())&&!/^\w+:/.test(u))){if(A.fetch&&A.Request&&A.AbortController&&A.Request.prototype.hasOwnProperty("signal"))return function(d,g){var y,T=new A.AbortController,C=new A.Request(d.url,{method:d.method||"GET",body:d.body,credentials:d.credentials,headers:d.headers,referrer:al(),signal:T.signal}),P=!1,L=!1,k=(y=C.url).indexOf("sku=")>0&&Sn(y);d.type==="json"&&C.headers.set("Accept","application/json");var U=function(K,fe,me){if(!L){if(K&&K.message!=="SecurityError"&&He(K),fe&&me)return X(fe);var Me=Date.now();A.fetch(C).then(function(Ae){if(Ae.ok){var je=k?Ae.clone():null;return X(Ae,je,Me)}return g(new Vu(Ae.statusText,Ae.status,d.url))}).catch(function(Ae){Ae.code!==20&&g(new Error(Ae.message))})}},X=function(K,fe,me){(d.type==="arrayBuffer"?K.arrayBuffer():d.type==="json"?K.json():K.text()).then(function(Me){L||(fe&&me&&function(Ae,je,Ze){if(Wi(),Io){var ot={status:je.status,statusText:je.statusText,headers:new A.Headers};je.headers.forEach(function(yt,zt){return ot.headers.set(zt,yt)});var lt=Ht(je.headers.get("Cache-Control")||"");lt["no-store"]||(lt["max-age"]&&ot.headers.set("Expires",new Date(Ze+1e3*lt["max-age"]).toUTCString()),new Date(ot.headers.get("Expires")).getTime()-Ze<42e4||function(yt,zt){if(ts===void 0)try{new Response(new ReadableStream),ts=!0}catch{ts=!1}ts?zt(yt.body):yt.blob().then(zt)}(je,function(yt){var zt=new A.Response(yt,ot);Wi(),Io&&Io.then(function(Qt){return Qt.put(ys(Ae.url),zt)}).catch(function(Qt){return He(Qt.message)})}))}}(C,fe,me),P=!0,g(null,Me,K.headers.get("Cache-Control"),K.headers.get("Expires")))}).catch(function(Me){L||g(new Error(Me.message))})};return k?function(K,fe){if(Wi(),!Io)return fe(null);var me=ys(K.url);Io.then(function(Me){Me.match(me).then(function(Ae){var je=function(Ze){if(!Ze)return!1;var ot=new Date(Ze.headers.get("Expires")||0),lt=Ht(Ze.headers.get("Cache-Control")||"");return ot>Date.now()&&!lt["no-cache"]}(Ae);Me.delete(me),je&&Me.put(me,Ae.clone()),fe(null,Ae,je)}).catch(fe)}).catch(fe)}(C,U):U(null,null),{cancel:function(){L=!0,P||T.abort()}}}(i,s);if($t()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,s,void 0,!0)}var u;return function(d,g){var y=new A.XMLHttpRequest;for(var T in y.open(d.method||"GET",d.url,!0),d.type==="arrayBuffer"&&(y.responseType="arraybuffer"),d.headers)y.setRequestHeader(T,d.headers[T]);return d.type==="json"&&(y.responseType="text",y.setRequestHeader("Accept","application/json")),y.withCredentials=d.credentials==="include",y.onerror=function(){g(new Error(y.statusText))},y.onload=function(){if((y.status>=200&&y.status<300||y.status===0)&&y.response!==null){var C=y.response;if(d.type==="json")try{C=JSON.parse(y.response)}catch(P){return g(P)}g(null,C,y.getResponseHeader("Cache-Control"),y.getResponseHeader("Expires"))}else g(new Vu(y.statusText,y.status,d.url))},y.send(d.body),{cancel:function(){return y.abort()}}}(i,s)},mu=function(i,s){return Ds(G(i,{type:"arrayBuffer"}),s)},Xn=function(i,s){return Ds(G(i,{method:"POST"}),s)},z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";ja=[],Xa=0;var j=function(i,s){if(Yt.supported&&(i.headers||(i.headers={}),i.headers.accept="image/webp,*/*"),Xa>=qe.MAX_PARALLEL_IMAGE_REQUESTS){var u={requestParameters:i,callback:s,cancelled:!1,cancel:function(){this.cancelled=!0}};return ja.push(u),u}Xa++;var d=!1,g=function(){if(!d)for(d=!0,Xa--;ja.length&&Xa0||this._oneTimeListeners&&this._oneTimeListeners[i]&&this._oneTimeListeners[i].length>0||this._eventedParent&&this._eventedParent.listens(i)},Ne.prototype.setEventedParent=function(i,s){return this._eventedParent=i,this._eventedParentData=s,this};var te={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},ye=function(i,s,u,d){this.message=(i?i+": ":"")+u,d&&(this.identifier=d),s!=null&&s.__line__&&(this.line=s.__line__)};function We(i){var s=i.value;return s?[new ye(i.key,s,"constants have been deprecated as of v8")]:[]}function mt(i){for(var s=[],u=arguments.length-1;u-- >0;)s[u]=arguments[u+1];for(var d=0,g=s;d":i.itemType.kind==="value"?"array":"array<"+s+">"}return i.kind}var Gi=[dr,pt,or,Gt,qt,ti,an,Ln(rr),xn];function In(i,s){if(s.kind==="error")return null;if(i.kind==="array"){if(s.kind==="array"&&(s.N===0&&s.itemType.kind==="value"||!In(i.itemType,s.itemType))&&(typeof i.N!="number"||i.N===s.N))return null}else{if(i.kind===s.kind)return null;if(i.kind==="value"){for(var u=0,d=Gi;u255?255:C}function g(C){return d(C[C.length-1]==="%"?parseFloat(C)/100*255:parseInt(C))}function y(C){return(P=C[C.length-1]==="%"?parseFloat(C)/100:parseFloat(C))<0?0:P>1?1:P;var P}function T(C,P,L){return L<0?L+=1:L>1&&(L-=1),6*L<1?C+(P-C)*L*6:2*L<1?P:3*L<2?C+(P-C)*(2/3-L)*6:C}try{s.parseCSSColor=function(C){var P,L=C.replace(/ /g,"").toLowerCase();if(L in u)return u[L].slice();if(L[0]==="#")return L.length===4?(P=parseInt(L.substr(1),16))>=0&&P<=4095?[(3840&P)>>4|(3840&P)>>8,240&P|(240&P)>>4,15&P|(15&P)<<4,1]:null:L.length===7&&(P=parseInt(L.substr(1),16))>=0&&P<=16777215?[(16711680&P)>>16,(65280&P)>>8,255&P,1]:null;var k=L.indexOf("("),U=L.indexOf(")");if(k!==-1&&U+1===L.length){var X=L.substr(0,k),K=L.substr(k+1,U-(k+1)).split(","),fe=1;switch(X){case"rgba":if(K.length!==4)return null;fe=y(K.pop());case"rgb":return K.length!==3?null:[g(K[0]),g(K[1]),g(K[2]),fe];case"hsla":if(K.length!==4)return null;fe=y(K.pop());case"hsl":if(K.length!==3)return null;var me=(parseFloat(K[0])%360+360)%360/360,Me=y(K[1]),Ae=y(K[2]),je=Ae<=.5?Ae*(Me+1):Ae+Me-Ae*Me,Ze=2*Ae-je;return[d(255*T(Ze,je,me+1/3)),d(255*T(Ze,je,me)),d(255*T(Ze,je,me-1/3)),fe];default:return null}}return null}}catch{}}).parseCSSColor,bn=function(i,s,u,d){d===void 0&&(d=1),this.r=i,this.g=s,this.b=u,this.a=d};bn.parse=function(i){if(i){if(i instanceof bn)return i;if(typeof i=="string"){var s=ln(i);if(s)return new bn(s[0]/255*s[3],s[1]/255*s[3],s[2]/255*s[3],s[3])}}},bn.prototype.toString=function(){var i=this.toArray(),s=i[1],u=i[2],d=i[3];return"rgba("+Math.round(i[0])+","+Math.round(s)+","+Math.round(u)+","+d+")"},bn.prototype.toArray=function(){var i=this.a;return i===0?[0,0,0,0]:[255*this.r/i,255*this.g/i,255*this.b/i,i]},bn.black=new bn(0,0,0,1),bn.white=new bn(1,1,1,1),bn.transparent=new bn(0,0,0,0),bn.red=new bn(1,0,0,1);var jo=function(i,s,u){this.sensitivity=i?s?"variant":"case":s?"accent":"base",this.locale=u,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};jo.prototype.compare=function(i,s){return this.collator.compare(i,s)},jo.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Rl=function(i,s,u,d,g){this.text=i,this.image=s,this.scale=u,this.fontStack=d,this.textColor=g},ki=function(i){this.sections=i};ki.fromString=function(i){return new ki([new Rl(i,null,null,null,null)])},ki.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(i){return i.text.length!==0||i.image&&i.image.name.length!==0})},ki.factory=function(i){return i instanceof ki?i:ki.fromString(i)},ki.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(i){return i.text}).join("")},ki.prototype.serialize=function(){for(var i=["format"],s=0,u=this.sections;s=0&&i<=255&&typeof s=="number"&&s>=0&&s<=255&&typeof u=="number"&&u>=0&&u<=255?d===void 0||typeof d=="number"&&d>=0&&d<=1?null:"Invalid rgba value ["+[i,s,u,d].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof d=="number"?[i,s,u,d]:[i,s,u]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function rs(i){if(i===null||typeof i=="string"||typeof i=="boolean"||typeof i=="number"||i instanceof bn||i instanceof jo||i instanceof ki||i instanceof Ei)return!0;if(Array.isArray(i)){for(var s=0,u=i;s2){var C=i[1];if(typeof C!="string"||!(C in Ui)||C==="object")return s.error('The item type argument of "array" must be one of string, number, boolean',1);y=Ui[C],d++}else y=rr;if(i.length>3){if(i[2]!==null&&(typeof i[2]!="number"||i[2]<0||i[2]!==Math.floor(i[2])))return s.error('The length argument to "array" must be a positive integer literal',2);T=i[2],d++}u=Ln(y,T)}else u=Ui[g];for(var P=[];d1)&&s.push(d)}}return s.concat(this.args.map(function(g){return g.serialize()}))};var aa=function(i){this.type=ti,this.sections=i};aa.parse=function(i,s){if(i.length<2)return s.error("Expected at least one argument.");var u=i[1];if(!Array.isArray(u)&&typeof u=="object")return s.error("First argument must be an image or text section.");for(var d=[],g=!1,y=1;y<=i.length-1;++y){var T=i[y];if(g&&typeof T=="object"&&!Array.isArray(T)){g=!1;var C=null;if(T["font-scale"]&&!(C=s.parse(T["font-scale"],1,pt)))return null;var P=null;if(T["text-font"]&&!(P=s.parse(T["text-font"],1,Ln(or))))return null;var L=null;if(T["text-color"]&&!(L=s.parse(T["text-color"],1,qt)))return null;var k=d[d.length-1];k.scale=C,k.font=P,k.textColor=L}else{var U=s.parse(i[y],1,rr);if(!U)return null;var X=U.type.kind;if(X!=="string"&&X!=="value"&&X!=="null"&&X!=="resolvedImage")return s.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");g=!0,d.push({content:U,scale:null,font:null,textColor:null})}}return new aa(d)},aa.prototype.evaluate=function(i){return new ki(this.sections.map(function(s){var u=s.content.evaluate(i);return vi(u)===xn?new Rl("",u,null,null,null):new Rl(sl(u),null,s.scale?s.scale.evaluate(i):null,s.font?s.font.evaluate(i).join(","):null,s.textColor?s.textColor.evaluate(i):null)}))},aa.prototype.eachChild=function(i){for(var s=0,u=this.sections;s-1),u},Qo.prototype.eachChild=function(i){i(this.input)},Qo.prototype.outputDefined=function(){return!1},Qo.prototype.serialize=function(){return["image",this.input.serialize()]};var yc={"to-boolean":Gt,"to-color":qt,"to-number":pt,"to-string":or},Pa=function(i,s){this.type=i,this.args=s};Pa.parse=function(i,s){if(i.length<2)return s.error("Expected at least one argument.");var u=i[0];if((u==="to-boolean"||u==="to-string")&&i.length!==2)return s.error("Expected one argument.");for(var d=yc[u],g=[],y=1;y4?"Invalid rbga value "+JSON.stringify(s)+": expected an array containing either three or four numeric values.":Il(s[0],s[1],s[2],s[3])))return new bn(s[0]/255,s[1]/255,s[2]/255,s[3])}throw new yi(u||"Could not parse color from value '"+(typeof s=="string"?s:String(JSON.stringify(s)))+"'")}if(this.type.kind==="number"){for(var T=null,C=0,P=this.args;C=s[2]||i[1]<=s[1]||i[3]>=s[3])}function Cr(i,s){var u=(180+i[0])/360,d=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,g=Math.pow(2,s.z);return[Math.round(u*g*8192),Math.round(d*g*8192)]}function Fn(i,s,u){return s[1]>i[1]!=u[1]>i[1]&&i[0]<(u[0]-s[0])*(i[1]-s[1])/(u[1]-s[1])+s[0]}function Ki(i,s){for(var u,d,g,y,T,C,P,L=!1,k=0,U=s.length;k0&&C<0||T<0&&C>0}function ns(i,s,u){for(var d=0,g=u;du[2]){var g=.5*d,y=i[0]-u[0]>g?-d:u[0]-i[0]>g?d:0;y===0&&(y=i[0]-u[2]>g?-d:u[2]-i[0]>g?d:0),i[0]+=y}tt(s,i)}function cf(i,s,u,d){for(var g=8192*Math.pow(2,d.z),y=[8192*d.x,8192*d.y],T=[],C=0,P=i;C=0)return!1;var u=!0;return i.eachChild(function(d){u&&!Bs(d,s)&&(u=!1)}),u}Xo.parse=function(i,s){if(i.length!==2)return s.error("'within' expression requires exactly one argument, but found "+(i.length-1)+" instead.");if(rs(i[1])){var u=i[1];if(u.type==="FeatureCollection")for(var d=0;ds))throw new yi("Input is not a number.");y=T-1}return 0}ll.prototype.parse=function(i,s,u,d,g){return g===void 0&&(g={}),s?this.concat(s,u,d)._parse(i,g):this._parse(i,g)},ll.prototype._parse=function(i,s){function u(L,k,U){return U==="assert"?new hi(k,[L]):U==="coerce"?new Pa(k,[L]):L}if(i!==null&&typeof i!="string"&&typeof i!="boolean"&&typeof i!="number"||(i=["literal",i]),Array.isArray(i)){if(i.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var d=i[0];if(typeof d!="string")return this.error("Expression name must be a string, but found "+typeof d+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var g=this.registry[d];if(g){var y=g.parse(i,this);if(!y)return null;if(this.expectedType){var T=this.expectedType,C=y.type;if(T.kind!=="string"&&T.kind!=="number"&&T.kind!=="boolean"&&T.kind!=="object"&&T.kind!=="array"||C.kind!=="value")if(T.kind!=="color"&&T.kind!=="formatted"&&T.kind!=="resolvedImage"||C.kind!=="value"&&C.kind!=="string"){if(this.checkSubtype(T,C))return null}else y=u(y,T,s.typeAnnotation||"coerce");else y=u(y,T,s.typeAnnotation||"assert")}if(!(y instanceof mo)&&y.type.kind!=="resolvedImage"&&function L(k){if(k instanceof Fs)return L(k.boundExpression);if(k instanceof ie&&k.name==="error"||k instanceof Ie||k instanceof Xo)return!1;var U=k instanceof Pa||k instanceof hi,X=!0;return k.eachChild(function(K){X=U?X&&L(K):X&&K instanceof mo}),!!X&&Ml(k)&&Bs(k,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(y)){var P=new $;try{y=new mo(y.type,y.evaluate(P))}catch(L){return this.error(L.message),null}}return y}return this.error('Unknown expression "'+d+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(i===void 0?"'undefined' value invalid. Use null instead.":typeof i=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof i+" instead.")},ll.prototype.concat=function(i,s,u){var d=typeof i=="number"?this.path.concat(i):this.path,g=u?this.scope.concat(u):this.scope;return new ll(this.registry,d,s||null,g,this.errors)},ll.prototype.error=function(i){for(var s=[],u=arguments.length-1;u-- >0;)s[u]=arguments[u+1];var d=""+this.key+s.map(function(g){return"["+g+"]"}).join("");this.errors.push(new Rt(d,i))},ll.prototype.checkSubtype=function(i,s){var u=In(i,s);return u&&this.error(u),u};var Oa=function(i,s,u){this.type=i,this.input=s,this.labels=[],this.outputs=[];for(var d=0,g=u;d=T)return s.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',P);var k=s.parse(C,L,g);if(!k)return null;g=g||k.type,d.push([T,k])}return new Oa(g,u,d)},Oa.prototype.evaluate=function(i){var s=this.labels,u=this.outputs;if(s.length===1)return u[0].evaluate(i);var d=this.input.evaluate(i);if(d<=s[0])return u[0].evaluate(i);var g=s.length;return d>=s[g-1]?u[g-1].evaluate(i):u[bc(s,d)].evaluate(i)},Oa.prototype.eachChild=function(i){i(this.input);for(var s=0,u=this.outputs;s0&&i.push(this.labels[s]),i.push(this.outputs[s].serialize());return i};var Ol=Object.freeze({__proto__:null,number:zi,color:function(i,s,u){return new bn(zi(i.r,s.r,u),zi(i.g,s.g,u),zi(i.b,s.b,u),zi(i.a,s.a,u))},array:function(i,s,u){return i.map(function(d,g){return zi(d,s[g],u)})}}),ul=6/29*3*(6/29),o1=Math.PI/180,hf=180/Math.PI;function a1(i){return i>.008856451679035631?Math.pow(i,1/3):i/ul+4/29}function sh(i){return i>6/29?i*i*i:ul*(i-4/29)}function lh(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function uh(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function ff(i){var s=uh(i.r),u=uh(i.g),d=uh(i.b),g=a1((.4124564*s+.3575761*u+.1804375*d)/.95047),y=a1((.2126729*s+.7151522*u+.072175*d)/1);return{l:116*y-16,a:500*(g-y),b:200*(y-a1((.0193339*s+.119192*u+.9503041*d)/1.08883)),alpha:i.a}}function pf(i){var s=(i.l+16)/116,u=isNaN(i.a)?s:s+i.a/500,d=isNaN(i.b)?s:s-i.b/200;return s=1*sh(s),u=.95047*sh(u),d=1.08883*sh(d),new bn(lh(3.2404542*u-1.5371385*s-.4985314*d),lh(-.969266*u+1.8760108*s+.041556*d),lh(.0556434*u-.2040259*s+1.0572252*d),i.alpha)}function kp(i,s,u){var d=s-i;return i+u*(d>180||d<-180?d-360*Math.round(d/360):d)}var Ec={forward:ff,reverse:pf,interpolate:function(i,s,u){return{l:zi(i.l,s.l,u),a:zi(i.a,s.a,u),b:zi(i.b,s.b,u),alpha:zi(i.alpha,s.alpha,u)}}},Ns={forward:function(i){var s=ff(i),u=s.l,d=s.a,g=s.b,y=Math.atan2(g,d)*hf;return{h:y<0?y+360:y,c:Math.sqrt(d*d+g*g),l:u,alpha:i.a}},reverse:function(i){var s=i.h*o1,u=i.c;return pf({l:i.l,a:Math.cos(s)*u,b:Math.sin(s)*u,alpha:i.alpha})},interpolate:function(i,s,u){return{h:kp(i.h,s.h,u),c:zi(i.c,s.c,u),l:zi(i.l,s.l,u),alpha:zi(i.alpha,s.alpha,u)}}},df=Object.freeze({__proto__:null,lab:Ec,hcl:Ns}),Wo=function(i,s,u,d,g){this.type=i,this.operator=s,this.interpolation=u,this.input=d,this.labels=[],this.outputs=[];for(var y=0,T=g;y1}))return s.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);d={name:"cubic-bezier",controlPoints:C}}if(i.length-1<4)return s.error("Expected at least 4 arguments, but found only "+(i.length-1)+".");if((i.length-1)%2!=0)return s.error("Expected an even number of arguments.");if(!(g=s.parse(g,2,pt)))return null;var P=[],L=null;u==="interpolate-hcl"||u==="interpolate-lab"?L=qt:s.expectedType&&s.expectedType.kind!=="value"&&(L=s.expectedType);for(var k=0;k=U)return s.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',K);var me=s.parse(X,fe,L);if(!me)return null;L=L||me.type,P.push([U,me])}return L.kind==="number"||L.kind==="color"||L.kind==="array"&&L.itemType.kind==="number"&&typeof L.N=="number"?new Wo(L,u,d,g,P):s.error("Type "+sn(L)+" is not interpolatable.")},Wo.prototype.evaluate=function(i){var s=this.labels,u=this.outputs;if(s.length===1)return u[0].evaluate(i);var d=this.input.evaluate(i);if(d<=s[0])return u[0].evaluate(i);var g=s.length;if(d>=s[g-1])return u[g-1].evaluate(i);var y=bc(s,d),T=Wo.interpolationFactor(this.interpolation,d,s[y],s[y+1]),C=u[y].evaluate(i),P=u[y+1].evaluate(i);return this.operator==="interpolate"?Ol[this.type.kind.toLowerCase()](C,P,T):this.operator==="interpolate-hcl"?Ns.reverse(Ns.interpolate(Ns.forward(C),Ns.forward(P),T)):Ec.reverse(Ec.interpolate(Ec.forward(C),Ec.forward(P),T))},Wo.prototype.eachChild=function(i){i(this.input);for(var s=0,u=this.outputs;s=u.length)throw new yi("Array index out of bounds: "+s+" > "+(u.length-1)+".");if(s!==Math.floor(s))throw new yi("Array index must be an integer, but found "+s+" instead.");return u[s]},Dl.prototype.eachChild=function(i){i(this.index),i(this.input)},Dl.prototype.outputDefined=function(){return!1},Dl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var is=function(i,s){this.type=Gt,this.needle=i,this.haystack=s};is.parse=function(i,s){if(i.length!==3)return s.error("Expected 2 arguments, but found "+(i.length-1)+" instead.");var u=s.parse(i[1],1,rr),d=s.parse(i[2],2,rr);return u&&d?ri(u.type,[Gt,or,pt,dr,rr])?new is(u,d):s.error("Expected first argument to be of type boolean, string, number or null, but found "+sn(u.type)+" instead"):null},is.prototype.evaluate=function(i){var s=this.needle.evaluate(i),u=this.haystack.evaluate(i);if(!u)return!1;if(!zn(s,["boolean","string","number","null"]))throw new yi("Expected first argument to be of type boolean, string, number or null, but found "+sn(vi(s))+" instead.");if(!zn(u,["string","array"]))throw new yi("Expected second argument to be of type array or string, but found "+sn(vi(u))+" instead.");return u.indexOf(s)>=0},is.prototype.eachChild=function(i){i(this.needle),i(this.haystack)},is.prototype.outputDefined=function(){return!0},is.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var cl=function(i,s,u){this.type=pt,this.needle=i,this.haystack=s,this.fromIndex=u};cl.parse=function(i,s){if(i.length<=2||i.length>=5)return s.error("Expected 3 or 4 arguments, but found "+(i.length-1)+" instead.");var u=s.parse(i[1],1,rr),d=s.parse(i[2],2,rr);if(!u||!d)return null;if(!ri(u.type,[Gt,or,pt,dr,rr]))return s.error("Expected first argument to be of type boolean, string, number or null, but found "+sn(u.type)+" instead");if(i.length===4){var g=s.parse(i[3],3,pt);return g?new cl(u,d,g):null}return new cl(u,d)},cl.prototype.evaluate=function(i){var s=this.needle.evaluate(i),u=this.haystack.evaluate(i);if(!zn(s,["boolean","string","number","null"]))throw new yi("Expected first argument to be of type boolean, string, number or null, but found "+sn(vi(s))+" instead.");if(!zn(u,["string","array"]))throw new yi("Expected second argument to be of type array or string, but found "+sn(vi(u))+" instead.");if(this.fromIndex){var d=this.fromIndex.evaluate(i);return u.indexOf(s,d)}return u.indexOf(s)},cl.prototype.eachChild=function(i){i(this.needle),i(this.haystack),this.fromIndex&&i(this.fromIndex)},cl.prototype.outputDefined=function(){return!1},cl.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var i=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),i]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Ga=function(i,s,u,d,g,y){this.inputType=i,this.type=s,this.input=u,this.cases=d,this.outputs=g,this.otherwise=y};Ga.parse=function(i,s){if(i.length<5)return s.error("Expected at least 4 arguments, but found only "+(i.length-1)+".");if(i.length%2!=1)return s.error("Expected an even number of arguments.");var u,d;s.expectedType&&s.expectedType.kind!=="value"&&(d=s.expectedType);for(var g={},y=[],T=2;TNumber.MAX_SAFE_INTEGER)return L.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof X=="number"&&Math.floor(X)!==X)return L.error("Numeric branch labels must be integer values.");if(u){if(L.checkSubtype(u,vi(X)))return null}else u=vi(X);if(g[String(X)]!==void 0)return L.error("Branch labels must be unique.");g[String(X)]=y.length}var K=s.parse(P,T,d);if(!K)return null;d=d||K.type,y.push(K)}var fe=s.parse(i[1],1,rr);if(!fe)return null;var me=s.parse(i[i.length-1],i.length-1,d);return me?fe.type.kind!=="value"&&s.concat(1).checkSubtype(u,fe.type)?null:new Ga(u,d,fe,g,y,me):null},Ga.prototype.evaluate=function(i){var s=this.input.evaluate(i);return(vi(s)===this.inputType&&this.outputs[this.cases[s]]||this.otherwise).evaluate(i)},Ga.prototype.eachChild=function(i){i(this.input),this.outputs.forEach(i),i(this.otherwise)},Ga.prototype.outputDefined=function(){return this.outputs.every(function(i){return i.outputDefined()})&&this.otherwise.outputDefined()},Ga.prototype.serialize=function(){for(var i=this,s=["match",this.input.serialize()],u=[],d={},g=0,y=Object.keys(this.cases).sort();g=5)return s.error("Expected 3 or 4 arguments, but found "+(i.length-1)+" instead.");var u=s.parse(i[1],1,rr),d=s.parse(i[2],2,pt);if(!u||!d)return null;if(!ri(u.type,[Ln(rr),or,rr]))return s.error("Expected first argument to be of type array or string, but found "+sn(u.type)+" instead");if(i.length===4){var g=s.parse(i[3],3,pt);return g?new Bl(u.type,u,d,g):null}return new Bl(u.type,u,d)},Bl.prototype.evaluate=function(i){var s=this.input.evaluate(i),u=this.beginIndex.evaluate(i);if(!zn(s,["string","array"]))throw new yi("Expected first argument to be of type array or string, but found "+sn(vi(s))+" instead.");if(this.endIndex){var d=this.endIndex.evaluate(i);return s.slice(u,d)}return s.slice(u)},Bl.prototype.eachChild=function(i){i(this.input),i(this.beginIndex),this.endIndex&&i(this.endIndex)},Bl.prototype.outputDefined=function(){return!1},Bl.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var i=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),i]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Up=ii("==",function(i,s,u){return s===u},_f),s1=ii("!=",function(i,s,u){return s!==u},function(i,s,u,d){return!_f(0,s,u,d)}),ch=ii("<",function(i,s,u){return s",function(i,s,u){return s>u},function(i,s,u,d){return d.compare(s,u)>0}),hh=ii("<=",function(i,s,u){return s<=u},function(i,s,u,d){return d.compare(s,u)<=0}),gf=ii(">=",function(i,s,u){return s>=u},function(i,s,u,d){return d.compare(s,u)>=0}),va=function(i,s,u,d,g){this.type=or,this.number=i,this.locale=s,this.currency=u,this.minFractionDigits=d,this.maxFractionDigits=g};va.parse=function(i,s){if(i.length!==3)return s.error("Expected two arguments.");var u=s.parse(i[1],1,pt);if(!u)return null;var d=i[2];if(typeof d!="object"||Array.isArray(d))return s.error("NumberFormat options argument must be an object.");var g=null;if(d.locale&&!(g=s.parse(d.locale,1,or)))return null;var y=null;if(d.currency&&!(y=s.parse(d.currency,1,or)))return null;var T=null;if(d["min-fraction-digits"]&&!(T=s.parse(d["min-fraction-digits"],1,pt)))return null;var C=null;return d["max-fraction-digits"]&&!(C=s.parse(d["max-fraction-digits"],1,pt))?null:new va(u,g,y,T,C)},va.prototype.evaluate=function(i){return new Intl.NumberFormat(this.locale?this.locale.evaluate(i):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(i):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(i):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(i):void 0}).format(this.number.evaluate(i))},va.prototype.eachChild=function(i){i(this.number),this.locale&&i(this.locale),this.currency&&i(this.currency),this.minFractionDigits&&i(this.minFractionDigits),this.maxFractionDigits&&i(this.maxFractionDigits)},va.prototype.outputDefined=function(){return!1},va.prototype.serialize=function(){var i={};return this.locale&&(i.locale=this.locale.serialize()),this.currency&&(i.currency=this.currency.serialize()),this.minFractionDigits&&(i["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(i["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),i]};var fl=function(i){this.type=pt,this.input=i};fl.parse=function(i,s){if(i.length!==2)return s.error("Expected 1 argument, but found "+(i.length-1)+" instead.");var u=s.parse(i[1],1);return u?u.type.kind!=="array"&&u.type.kind!=="string"&&u.type.kind!=="value"?s.error("Expected argument of type string or array, but found "+sn(u.type)+" instead."):new fl(u):null},fl.prototype.evaluate=function(i){var s=this.input.evaluate(i);if(typeof s=="string"||Array.isArray(s))return s.length;throw new yi("Expected value to be of type string or array, but found "+sn(vi(s))+" instead.")},fl.prototype.eachChild=function(i){i(this.input)},fl.prototype.outputDefined=function(){return!1},fl.prototype.serialize=function(){var i=["length"];return this.eachChild(function(s){i.push(s.serialize())}),i};var ks={"==":Up,"!=":s1,">":Vi,"<":ch,">=":gf,"<=":hh,array:hi,at:Dl,boolean:hi,case:hl,coalesce:Ll,collator:Ie,format:aa,image:Qo,in:is,"index-of":cl,interpolate:Wo,"interpolate-hcl":Wo,"interpolate-lab":Wo,length:fl,let:Wa,literal:mo,match:Ga,number:hi,"number-format":va,object:hi,slice:Bl,step:Oa,string:hi,"to-boolean":Pa,"to-color":Pa,"to-number":Pa,"to-string":Pa,var:Fs,within:Xo};function Fl(i,s){var u=s[0],d=s[1],g=s[2],y=s[3];u=u.evaluate(i),d=d.evaluate(i),g=g.evaluate(i);var T=y?y.evaluate(i):1,C=Il(u,d,g,T);if(C)throw new yi(C);return new bn(u/255*T,d/255*T,g/255*T,T)}function l1(i,s){return i in s}function ju(i,s){var u=s[i];return u===void 0?null:u}function xs(i){return{type:i}}function Tc(i){return{result:"success",value:i}}function Nl(i){return{result:"error",value:i}}function pl(i){return i["property-type"]==="data-driven"||i["property-type"]==="cross-faded-data-driven"}function fh(i){return!!i.expression&&i.expression.parameters.indexOf("zoom")>-1}function Ac(i){return!!i.expression&&i.expression.interpolated}function di(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":i===null?"null":typeof i}function u1(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function zp(i){return i}function kl(i,s,u){return i!==void 0?i:s!==void 0?s:u!==void 0?u:void 0}function Sc(i,s,u,d,g){return kl(typeof u===g?d[u]:void 0,i.default,s.default)}function ph(i,s,u){if(di(u)!=="number")return kl(i.default,s.default);var d=i.stops.length;if(d===1||u<=i.stops[0][0])return i.stops[0][1];if(u>=i.stops[d-1][0])return i.stops[d-1][1];var g=bc(i.stops.map(function(y){return y[0]}),u);return i.stops[g][1]}function c1(i,s,u){var d=i.base!==void 0?i.base:1;if(di(u)!=="number")return kl(i.default,s.default);var g=i.stops.length;if(g===1||u<=i.stops[0][0])return i.stops[0][1];if(u>=i.stops[g-1][0])return i.stops[g-1][1];var y=bc(i.stops.map(function(U){return U[0]}),u),T=function(U,X,K,fe){var me=fe-K,Me=U-K;return me===0?0:X===1?Me/me:(Math.pow(X,Me)-1)/(Math.pow(X,me)-1)}(u,d,i.stops[y][0],i.stops[y+1][0]),C=i.stops[y][1],P=i.stops[y+1][1],L=Ol[s.type]||zp;if(i.colorSpace&&i.colorSpace!=="rgb"){var k=df[i.colorSpace];L=function(U,X){return k.reverse(k.interpolate(k.forward(U),k.forward(X),T))}}return typeof C.evaluate=="function"?{evaluate:function(){for(var U=[],X=arguments.length;X--;)U[X]=arguments[X];var K=C.evaluate.apply(void 0,U),fe=P.evaluate.apply(void 0,U);if(K!==void 0&&fe!==void 0)return L(K,fe,T)}}:L(C,P,T)}function dl(i,s,u){return s.type==="color"?u=bn.parse(u):s.type==="formatted"?u=ki.fromString(u.toString()):s.type==="resolvedImage"?u=Ei.fromString(u.toString()):di(u)===s.type||s.type==="enum"&&s.values[u]||(u=void 0),kl(u,i.default,s.default)}ie.register(ks,{error:[{kind:"error"},[or],function(i,s){throw new yi(s[0].evaluate(i))}],typeof:[or,[rr],function(i,s){return sn(vi(s[0].evaluate(i)))}],"to-rgba":[Ln(pt,4),[qt],function(i,s){return s[0].evaluate(i).toArray()}],rgb:[qt,[pt,pt,pt],Fl],rgba:[qt,[pt,pt,pt,pt],Fl],has:{type:Gt,overloads:[[[or],function(i,s){return l1(s[0].evaluate(i),i.properties())}],[[or,an],function(i,s){var u=s[1];return l1(s[0].evaluate(i),u.evaluate(i))}]]},get:{type:rr,overloads:[[[or],function(i,s){return ju(s[0].evaluate(i),i.properties())}],[[or,an],function(i,s){var u=s[1];return ju(s[0].evaluate(i),u.evaluate(i))}]]},"feature-state":[rr,[or],function(i,s){return ju(s[0].evaluate(i),i.featureState||{})}],properties:[an,[],function(i){return i.properties()}],"geometry-type":[or,[],function(i){return i.geometryType()}],id:[rr,[],function(i){return i.id()}],zoom:[pt,[],function(i){return i.globals.zoom}],"heatmap-density":[pt,[],function(i){return i.globals.heatmapDensity||0}],"line-progress":[pt,[],function(i){return i.globals.lineProgress||0}],accumulated:[rr,[],function(i){return i.globals.accumulated===void 0?null:i.globals.accumulated}],"+":[pt,xs(pt),function(i,s){for(var u=0,d=0,g=s;d":[Gt,[or,rr],function(i,s){var u=s[0],d=s[1],g=i.properties()[u.value],y=d.value;return typeof g==typeof y&&g>y}],"filter-id->":[Gt,[rr],function(i,s){var u=s[0],d=i.id(),g=u.value;return typeof d==typeof g&&d>g}],"filter-<=":[Gt,[or,rr],function(i,s){var u=s[0],d=s[1],g=i.properties()[u.value],y=d.value;return typeof g==typeof y&&g<=y}],"filter-id-<=":[Gt,[rr],function(i,s){var u=s[0],d=i.id(),g=u.value;return typeof d==typeof g&&d<=g}],"filter->=":[Gt,[or,rr],function(i,s){var u=s[0],d=s[1],g=i.properties()[u.value],y=d.value;return typeof g==typeof y&&g>=y}],"filter-id->=":[Gt,[rr],function(i,s){var u=s[0],d=i.id(),g=u.value;return typeof d==typeof g&&d>=g}],"filter-has":[Gt,[rr],function(i,s){return s[0].value in i.properties()}],"filter-has-id":[Gt,[],function(i){return i.id()!==null&&i.id()!==void 0}],"filter-type-in":[Gt,[Ln(or)],function(i,s){return s[0].value.indexOf(i.geometryType())>=0}],"filter-id-in":[Gt,[Ln(rr)],function(i,s){return s[0].value.indexOf(i.id())>=0}],"filter-in-small":[Gt,[or,Ln(rr)],function(i,s){var u=s[0];return s[1].value.indexOf(i.properties()[u.value])>=0}],"filter-in-large":[Gt,[or,Ln(rr)],function(i,s){var u=s[0],d=s[1];return function(g,y,T,C){for(;T<=C;){var P=T+C>>1;if(y[P]===g)return!0;y[P]>g?C=P-1:T=P+1}return!1}(i.properties()[u.value],d.value,0,d.value.length-1)}],all:{type:Gt,overloads:[[[Gt,Gt],function(i,s){var u=s[1];return s[0].evaluate(i)&&u.evaluate(i)}],[xs(Gt),function(i,s){for(var u=0,d=s;u0&&typeof i[0]=="string"&&i[0]in ks}function Xu(i,s){var u=new ll(ks,[],s?function(g){var y={color:qt,string:or,number:pt,enum:or,boolean:Gt,formatted:ti,resolvedImage:xn};return g.type==="array"?Ln(y[g.value]||rr,g.length):y[g.type]}(s):void 0),d=u.parse(i,void 0,void 0,void 0,s&&s.type==="string"?{typeAnnotation:"coerce"}:void 0);return d?Tc(new Ul(d,s)):Nl(u.errors)}Ul.prototype.evaluateWithoutErrorHandling=function(i,s,u,d,g,y){return this._evaluator.globals=i,this._evaluator.feature=s,this._evaluator.featureState=u,this._evaluator.canonical=d,this._evaluator.availableImages=g||null,this._evaluator.formattedSection=y,this.expression.evaluate(this._evaluator)},Ul.prototype.evaluate=function(i,s,u,d,g,y){this._evaluator.globals=i,this._evaluator.feature=s||null,this._evaluator.featureState=u||null,this._evaluator.canonical=d,this._evaluator.availableImages=g||null,this._evaluator.formattedSection=y||null;try{var T=this.expression.evaluate(this._evaluator);if(T==null||typeof T=="number"&&T!=T)return this._defaultValue;if(this._enumValues&&!(T in this._enumValues))throw new yi("Expected value to be one of "+Object.keys(this._enumValues).map(function(C){return JSON.stringify(C)}).join(", ")+", but found "+JSON.stringify(T)+" instead.");return T}catch(C){return this._warningHistory[C.message]||(this._warningHistory[C.message]=!0,typeof console<"u"&&console.warn(C.message)),this._defaultValue}};var vu=function(i,s){this.kind=i,this._styleExpression=s,this.isStateDependent=i!=="constant"&&!Pl(s.expression)};vu.prototype.evaluateWithoutErrorHandling=function(i,s,u,d,g,y){return this._styleExpression.evaluateWithoutErrorHandling(i,s,u,d,g,y)},vu.prototype.evaluate=function(i,s,u,d,g,y){return this._styleExpression.evaluate(i,s,u,d,g,y)};var yu=function(i,s,u,d){this.kind=i,this.zoomStops=u,this._styleExpression=s,this.isStateDependent=i!=="camera"&&!Pl(s.expression),this.interpolationType=d};function dh(i,s){if((i=Xu(i,s)).result==="error")return i;var u=i.value.expression,d=Ml(u);if(!d&&!pl(s))return Nl([new Rt("","data expressions not supported")]);var g=Bs(u,["zoom"]);if(!g&&!fh(s))return Nl([new Rt("","zoom expressions not supported")]);var y=function T(C){var P=null;if(C instanceof Wa)P=T(C.result);else if(C instanceof Ll)for(var L=0,k=C.args;Ld.maximum?[new ye(s,u,u+" is greater than the maximum value "+d.maximum)]:[]}function gh(i){var s,u,d,g=i.valueSpec,y=Lt(i.value.type),T={},C=y!=="categorical"&&i.value.property===void 0,P=!C,L=di(i.value.stops)==="array"&&di(i.value.stops[0])==="array"&&di(i.value.stops[0][0])==="object",k=os({key:i.key,value:i.value,valueSpec:i.styleSpec.function,style:i.style,styleSpec:i.styleSpec,objectElementValidators:{stops:function(K){if(y==="identity")return[new ye(K.key,K.value,'identity function may not have a "stops" property')];var fe=[],me=K.value;return fe=fe.concat(mh({key:K.key,value:me,valueSpec:K.valueSpec,style:K.style,styleSpec:K.styleSpec,arrayElementValidator:U})),di(me)==="array"&&me.length===0&&fe.push(new ye(K.key,me,"array must have at least one stop")),fe},default:function(K){return Dn({key:K.key,value:K.value,valueSpec:g,style:K.style,styleSpec:K.styleSpec})}}});return y==="identity"&&C&&k.push(new ye(i.key,i.value,'missing required property "property"')),y==="identity"||i.value.stops||k.push(new ye(i.key,i.value,'missing required property "stops"')),y==="exponential"&&i.valueSpec.expression&&!Ac(i.valueSpec)&&k.push(new ye(i.key,i.value,"exponential functions not supported")),i.styleSpec.$version>=8&&(P&&!pl(i.valueSpec)?k.push(new ye(i.key,i.value,"property functions not supported")):C&&!fh(i.valueSpec)&&k.push(new ye(i.key,i.value,"zoom functions not supported"))),y!=="categorical"&&!L||i.value.property!==void 0||k.push(new ye(i.key,i.value,'"property" property is required')),k;function U(K){var fe=[],me=K.value,Me=K.key;if(di(me)!=="array")return[new ye(Me,me,"array expected, "+di(me)+" found")];if(me.length!==2)return[new ye(Me,me,"array length 2 expected, length "+me.length+" found")];if(L){if(di(me[0])!=="object")return[new ye(Me,me,"object expected, "+di(me[0])+" found")];if(me[0].zoom===void 0)return[new ye(Me,me,"object stop key must have zoom")];if(me[0].value===void 0)return[new ye(Me,me,"object stop key must have value")];if(d&&d>Lt(me[0].zoom))return[new ye(Me,me[0].zoom,"stop zoom values must appear in ascending order")];Lt(me[0].zoom)!==d&&(d=Lt(me[0].zoom),u=void 0,T={}),fe=fe.concat(os({key:Me+"[0]",value:me[0],valueSpec:{zoom:{}},style:K.style,styleSpec:K.styleSpec,objectElementValidators:{zoom:_h,value:X}}))}else fe=fe.concat(X({key:Me+"[0]",value:me[0],valueSpec:{},style:K.style,styleSpec:K.styleSpec},me));return gu(ht(me[1]))?fe.concat([new ye(Me+"[1]",me[1],"expressions are not allowed in function stops.")]):fe.concat(Dn({key:Me+"[1]",value:me[1],valueSpec:g,style:K.style,styleSpec:K.styleSpec}))}function X(K,fe){var me=di(K.value),Me=Lt(K.value),Ae=K.value!==null?K.value:fe;if(s){if(me!==s)return[new ye(K.key,Ae,me+" stop domain type must match previous stop domain type "+s)]}else s=me;if(me!=="number"&&me!=="string"&&me!=="boolean")return[new ye(K.key,Ae,"stop domain value must be a number, string, or boolean")];if(me!=="number"&&y!=="categorical"){var je="number expected, "+me+" found";return pl(g)&&y===void 0&&(je+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ye(K.key,Ae,je)]}return y!=="categorical"||me!=="number"||isFinite(Me)&&Math.floor(Me)===Me?y!=="categorical"&&me==="number"&&u!==void 0&&Me=2&&i[1]!=="$id"&&i[1]!=="$type";case"in":return i.length>=3&&(typeof i[1]!="string"||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return i.length!==3||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(var s=0,u=i.slice(1);ss?1:0}function h1(i){if(!i)return!0;var s,u=i[0];return i.length<=1?u!=="any":u==="=="?vh(i[1],i[2],"=="):u==="!="?p1(vh(i[1],i[2],"==")):u==="<"||u===">"||u==="<="||u===">="?vh(i[1],i[2],u):u==="any"?(s=i.slice(1),["any"].concat(s.map(h1))):u==="all"?["all"].concat(i.slice(1).map(h1)):u==="none"?["all"].concat(i.slice(1).map(h1).map(p1)):u==="in"?f1(i[1],i.slice(2)):u==="!in"?p1(f1(i[1],i.slice(2))):u==="has"?vf(i[1]):u==="!has"?p1(vf(i[1])):u!=="within"||i}function vh(i,s,u){switch(i){case"$type":return["filter-type-"+u,s];case"$id":return["filter-id-"+u,s];default:return["filter-"+u,i,s]}}function f1(i,s){if(s.length===0)return!1;switch(i){case"$type":return["filter-type-in",["literal",s]];case"$id":return["filter-id-in",["literal",s]];default:return s.length>200&&!s.some(function(u){return typeof u!=typeof s[0]})?["filter-in-large",i,["literal",s.sort(Vp)]]:["filter-in-small",i,["literal",s]]}}function vf(i){switch(i){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",i]}}function p1(i){return["!",i]}function yh(i){return Wu(ht(i.value))?zl(mt({},i,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function s(u){var d=u.value,g=u.key;if(di(d)!=="array")return[new ye(g,d,"array expected, "+di(d)+" found")];var y,T=u.styleSpec,C=[];if(d.length<1)return[new ye(g,d,"filter array must have at least 1 element")];switch(C=C.concat(Us({key:g+"[0]",value:d[0],valueSpec:T.filter_operator,style:u.style,styleSpec:u.styleSpec})),Lt(d[0])){case"<":case"<=":case">":case">=":d.length>=2&&Lt(d[1])==="$type"&&C.push(new ye(g,d,'"$type" cannot be use with operator "'+d[0]+'"'));case"==":case"!=":d.length!==3&&C.push(new ye(g,d,'filter array for operator "'+d[0]+'" must have 3 elements'));case"in":case"!in":d.length>=2&&(y=di(d[1]))!=="string"&&C.push(new ye(g+"[1]",d[1],"string expected, "+y+" found"));for(var P=2;P=k[K+0]&&d>=k[K+1])?(T[X]=!0,y.push(L[X])):T[X]=!1}}},wi.prototype._forEachCell=function(i,s,u,d,g,y,T,C){for(var P=this._convertToCellCoord(i),L=this._convertToCellCoord(s),k=this._convertToCellCoord(u),U=this._convertToCellCoord(d),X=P;X<=k;X++)for(var K=L;K<=U;K++){var fe=this.d*K+X;if((!C||C(this._convertFromCellCoord(X),this._convertFromCellCoord(K),this._convertFromCellCoord(X+1),this._convertFromCellCoord(K+1)))&&g.call(this,i,s,u,d,fe,y,T,C))return}},wi.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},wi.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},wi.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,s=3+this.cells.length+1+1,u=0,d=0;d=0)){var k=i[L];P[L]=Zi[C].shallow.indexOf(L)>=0?k:sa(k,s)}i instanceof Error&&(P.message=i.message)}if(P.$name)throw new Error("$name property is reserved for worker serialization logic.");return C!=="Object"&&(P.$name=C),P}throw new Error("can't serialize object of type "+typeof i)}function ai(i){if(i==null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp||Pc(i)||$u(i)||ArrayBuffer.isView(i)||i instanceof Zu)return i;if(Array.isArray(i))return i.map(ai);if(typeof i=="object"){var s=i.$name||"Object",u=Zi[s].klass;if(!u)throw new Error("can't deserialize unregistered class "+s);if(u.deserialize)return u.deserialize(i);for(var d=Object.create(u.prototype),g=0,y=Object.keys(i);g=0?C:ai(C)}}return d}throw new Error("can't deserialize object of type "+typeof i)}var _1=function(){this.first=!0};_1.prototype.update=function(i,s){var u=Math.floor(i);return this.first?(this.first=!1,this.lastIntegerZoom=u,this.lastIntegerZoomTime=0,this.lastZoom=i,this.lastFloorZoom=u,!0):(this.lastFloorZoom>u?(this.lastIntegerZoom=u+1,this.lastIntegerZoomTime=s):this.lastFloorZoom=128&&i<=255},Arabic:function(i){return i>=1536&&i<=1791},"Arabic Supplement":function(i){return i>=1872&&i<=1919},"Arabic Extended-A":function(i){return i>=2208&&i<=2303},"Hangul Jamo":function(i){return i>=4352&&i<=4607},"Unified Canadian Aboriginal Syllabics":function(i){return i>=5120&&i<=5759},Khmer:function(i){return i>=6016&&i<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(i){return i>=6320&&i<=6399},"General Punctuation":function(i){return i>=8192&&i<=8303},"Letterlike Symbols":function(i){return i>=8448&&i<=8527},"Number Forms":function(i){return i>=8528&&i<=8591},"Miscellaneous Technical":function(i){return i>=8960&&i<=9215},"Control Pictures":function(i){return i>=9216&&i<=9279},"Optical Character Recognition":function(i){return i>=9280&&i<=9311},"Enclosed Alphanumerics":function(i){return i>=9312&&i<=9471},"Geometric Shapes":function(i){return i>=9632&&i<=9727},"Miscellaneous Symbols":function(i){return i>=9728&&i<=9983},"Miscellaneous Symbols and Arrows":function(i){return i>=11008&&i<=11263},"CJK Radicals Supplement":function(i){return i>=11904&&i<=12031},"Kangxi Radicals":function(i){return i>=12032&&i<=12255},"Ideographic Description Characters":function(i){return i>=12272&&i<=12287},"CJK Symbols and Punctuation":function(i){return i>=12288&&i<=12351},Hiragana:function(i){return i>=12352&&i<=12447},Katakana:function(i){return i>=12448&&i<=12543},Bopomofo:function(i){return i>=12544&&i<=12591},"Hangul Compatibility Jamo":function(i){return i>=12592&&i<=12687},Kanbun:function(i){return i>=12688&&i<=12703},"Bopomofo Extended":function(i){return i>=12704&&i<=12735},"CJK Strokes":function(i){return i>=12736&&i<=12783},"Katakana Phonetic Extensions":function(i){return i>=12784&&i<=12799},"Enclosed CJK Letters and Months":function(i){return i>=12800&&i<=13055},"CJK Compatibility":function(i){return i>=13056&&i<=13311},"CJK Unified Ideographs Extension A":function(i){return i>=13312&&i<=19903},"Yijing Hexagram Symbols":function(i){return i>=19904&&i<=19967},"CJK Unified Ideographs":function(i){return i>=19968&&i<=40959},"Yi Syllables":function(i){return i>=40960&&i<=42127},"Yi Radicals":function(i){return i>=42128&&i<=42191},"Hangul Jamo Extended-A":function(i){return i>=43360&&i<=43391},"Hangul Syllables":function(i){return i>=44032&&i<=55215},"Hangul Jamo Extended-B":function(i){return i>=55216&&i<=55295},"Private Use Area":function(i){return i>=57344&&i<=63743},"CJK Compatibility Ideographs":function(i){return i>=63744&&i<=64255},"Arabic Presentation Forms-A":function(i){return i>=64336&&i<=65023},"Vertical Forms":function(i){return i>=65040&&i<=65055},"CJK Compatibility Forms":function(i){return i>=65072&&i<=65103},"Small Form Variants":function(i){return i>=65104&&i<=65135},"Arabic Presentation Forms-B":function(i){return i>=65136&&i<=65279},"Halfwidth and Fullwidth Forms":function(i){return i>=65280&&i<=65519}};function ml(i){for(var s=0,u=i;s=65097&&i<=65103)||Jt["CJK Compatibility Ideographs"](i)||Jt["CJK Compatibility"](i)||Jt["CJK Radicals Supplement"](i)||Jt["CJK Strokes"](i)||!(!Jt["CJK Symbols and Punctuation"](i)||i>=12296&&i<=12305||i>=12308&&i<=12319||i===12336)||Jt["CJK Unified Ideographs Extension A"](i)||Jt["CJK Unified Ideographs"](i)||Jt["Enclosed CJK Letters and Months"](i)||Jt["Hangul Compatibility Jamo"](i)||Jt["Hangul Jamo Extended-A"](i)||Jt["Hangul Jamo Extended-B"](i)||Jt["Hangul Jamo"](i)||Jt["Hangul Syllables"](i)||Jt.Hiragana(i)||Jt["Ideographic Description Characters"](i)||Jt.Kanbun(i)||Jt["Kangxi Radicals"](i)||Jt["Katakana Phonetic Extensions"](i)||Jt.Katakana(i)&&i!==12540||!(!Jt["Halfwidth and Fullwidth Forms"](i)||i===65288||i===65289||i===65293||i>=65306&&i<=65310||i===65339||i===65341||i===65343||i>=65371&&i<=65503||i===65507||i>=65512&&i<=65519)||!(!Jt["Small Form Variants"](i)||i>=65112&&i<=65118||i>=65123&&i<=65126)||Jt["Unified Canadian Aboriginal Syllabics"](i)||Jt["Unified Canadian Aboriginal Syllabics Extended"](i)||Jt["Vertical Forms"](i)||Jt["Yijing Hexagram Symbols"](i)||Jt["Yi Syllables"](i)||Jt["Yi Radicals"](i))))}function g1(i){return!(Oc(i)||function(s){return!!(Jt["Latin-1 Supplement"](s)&&(s===167||s===169||s===174||s===177||s===188||s===189||s===190||s===215||s===247)||Jt["General Punctuation"](s)&&(s===8214||s===8224||s===8225||s===8240||s===8241||s===8251||s===8252||s===8258||s===8263||s===8264||s===8265||s===8273)||Jt["Letterlike Symbols"](s)||Jt["Number Forms"](s)||Jt["Miscellaneous Technical"](s)&&(s>=8960&&s<=8967||s>=8972&&s<=8991||s>=8996&&s<=9e3||s===9003||s>=9085&&s<=9114||s>=9150&&s<=9165||s===9167||s>=9169&&s<=9179||s>=9186&&s<=9215)||Jt["Control Pictures"](s)&&s!==9251||Jt["Optical Character Recognition"](s)||Jt["Enclosed Alphanumerics"](s)||Jt["Geometric Shapes"](s)||Jt["Miscellaneous Symbols"](s)&&!(s>=9754&&s<=9759)||Jt["Miscellaneous Symbols and Arrows"](s)&&(s>=11026&&s<=11055||s>=11088&&s<=11097||s>=11192&&s<=11243)||Jt["CJK Symbols and Punctuation"](s)||Jt.Katakana(s)||Jt["Private Use Area"](s)||Jt["CJK Compatibility Forms"](s)||Jt["Small Form Variants"](s)||Jt["Halfwidth and Fullwidth Forms"](s)||s===8734||s===8756||s===8757||s>=9984&&s<=10087||s>=10102&&s<=10131||s===65532||s===65533)}(i))}function as(i){return i>=1424&&i<=2303||Jt["Arabic Presentation Forms-A"](i)||Jt["Arabic Presentation Forms-B"](i)}function La(i,s){return!(!s&&as(i)||i>=2304&&i<=3583||i>=3840&&i<=4255||Jt.Khmer(i))}function v1(i){for(var s=0,u=i;s-1&&(la="error"),y1&&y1(i)};function qu(){x1.fire(new de("pluginStateChange",{pluginStatus:la,pluginURL:Vs}))}var x1=new Ne,Th=function(){return la},Da=function(){if(la!=="deferred"||!Vs)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");la="loading",qu(),Vs&&mu({url:Vs},function(i){i?xf(i):(la="loaded",qu())})},$a={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return la==="loaded"||$a.applyArabicShaping!=null},isLoading:function(){return la==="loading"},setState:function(i){la=i.pluginStatus,Vs=i.pluginURL},isParsed:function(){return $a.applyArabicShaping!=null&&$a.processBidirectionalText!=null&&$a.processStyledBidirectionalText!=null},getPluginURL:function(){return Vs}},cn=function(i,s){this.zoom=i,s?(this.now=s.now,this.fadeDuration=s.fadeDuration,this.zoomHistory=s.zoomHistory,this.transition=s.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new _1,this.transition={})};cn.prototype.isSupportedScript=function(i){return function(s,u){for(var d=0,g=s;dthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:s+(1-s)*u}:{fromScale:.5,toScale:1,t:1-(1-u)*s}};var qa=function(i,s){this.property=i,this.value=s,this.expression=function(u,d){if(u1(u))return new xu(u,d);if(gu(u)){var g=dh(u,d);if(g.result==="error")throw new Error(g.value.map(function(T){return T.key+": "+T.message}).join(", "));return g.value}var y=u;return typeof u=="string"&&d.type==="color"&&(y=bn.parse(u)),{kind:"constant",evaluate:function(){return y}}}(s===void 0?i.specification.default:s,i.specification)};qa.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},qa.prototype.possiblyEvaluate=function(i,s,u){return this.property.possiblyEvaluate(this,i,s,u)};var Ya=function(i){this.property=i,this.value=new qa(i,void 0)};Ya.prototype.transitioned=function(i,s){return new Wl(this.property,this.value,s,G({},i.transition,this.transition),i.now)},Ya.prototype.untransitioned=function(){return new Wl(this.property,this.value,null,{},0)};var Do=function(i){this._properties=i,this._values=Object.create(i.defaultTransitionablePropertyValues)};Do.prototype.getValue=function(i){return Te(this._values[i].value.value)},Do.prototype.setValue=function(i,s){this._values.hasOwnProperty(i)||(this._values[i]=new Ya(this._values[i].property)),this._values[i].value=new qa(this._values[i].property,s===null?void 0:Te(s))},Do.prototype.getTransition=function(i){return Te(this._values[i].transition)},Do.prototype.setTransition=function(i,s){this._values.hasOwnProperty(i)||(this._values[i]=new Ya(this._values[i].property)),this._values[i].transition=Te(s)||void 0},Do.prototype.serialize=function(){for(var i={},s=0,u=Object.keys(this._values);sthis.end)return this.prior=null,g;if(this.value.isDataDriven())return this.prior=null,g;if(d=1)return 1;var P=C*C,L=P*C;return 4*(C<.5?L:3*(C-P)+L-.75)}(T))}return g};var _l=function(i){this._properties=i,this._values=Object.create(i.defaultTransitioningPropertyValues)};_l.prototype.possiblyEvaluate=function(i,s,u){for(var d=new Yu(this._properties),g=0,y=Object.keys(this._values);gy.zoomHistory.lastIntegerZoom?{from:u,to:d}:{from:g,to:d}},s.prototype.interpolate=function(u){return u},s}(xr),ea=function(i){this.specification=i};ea.prototype.possiblyEvaluate=function(i,s,u,d){if(i.value!==void 0){if(i.expression.kind==="constant"){var g=i.expression.evaluate(s,null,{},u,d);return this._calculate(g,g,g,s)}return this._calculate(i.expression.evaluate(new cn(Math.floor(s.zoom-1),s)),i.expression.evaluate(new cn(Math.floor(s.zoom),s)),i.expression.evaluate(new cn(Math.floor(s.zoom+1),s)),s)}},ea.prototype._calculate=function(i,s,u,d){return d.zoom>d.zoomHistory.lastIntegerZoom?{from:i,to:s}:{from:u,to:s}},ea.prototype.interpolate=function(i){return i};var bs=function(i){this.specification=i};bs.prototype.possiblyEvaluate=function(i,s,u,d){return!!i.expression.evaluate(s,null,{},u,d)},bs.prototype.interpolate=function(){return!1};var Ci=function(i){for(var s in this.properties=i,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],i){var u=i[s];u.specification.overridable&&this.overridableProperties.push(s);var d=this.defaultPropertyValues[s]=new qa(u,void 0),g=this.defaultTransitionablePropertyValues[s]=new Ya(u);this.defaultTransitioningPropertyValues[s]=g.untransitioned(),this.defaultPossiblyEvaluatedValues[s]=d.possiblyEvaluate({})}};_r("DataDrivenProperty",xr),_r("DataConstantProperty",Rr),_r("CrossFadedDataDrivenProperty",Ba),_r("CrossFadedProperty",ea),_r("ColorRampProperty",bs);var ls=function(i){function s(u,d){if(i.call(this),this.id=u.id,this.type=u.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},u.type!=="custom"&&(this.metadata=(u=u).metadata,this.minzoom=u.minzoom,this.maxzoom=u.maxzoom,u.type!=="background"&&(this.source=u.source,this.sourceLayer=u["source-layer"],this.filter=u.filter),d.layout&&(this._unevaluatedLayout=new ss(d.layout)),d.paint)){for(var g in this._transitionablePaint=new Do(d.paint),u.paint)this.setPaintProperty(g,u.paint[g],{validate:!1});for(var y in u.layout)this.setLayoutProperty(y,u.layout[y],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Yu(d.paint)}}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},s.prototype.getLayoutProperty=function(u){return u==="visibility"?this.visibility:this._unevaluatedLayout.getValue(u)},s.prototype.setLayoutProperty=function(u,d,g){g===void 0&&(g={}),d!=null&&this._validate(Mc,"layers."+this.id+".layout."+u,u,d,g)||(u!=="visibility"?this._unevaluatedLayout.setValue(u,d):this.visibility=d)},s.prototype.getPaintProperty=function(u){return ke(u,"-transition")?this._transitionablePaint.getTransition(u.slice(0,-11)):this._transitionablePaint.getValue(u)},s.prototype.setPaintProperty=function(u,d,g){if(g===void 0&&(g={}),d!=null&&this._validate(m1,"layers."+this.id+".paint."+u,u,d,g))return!1;if(ke(u,"-transition"))return this._transitionablePaint.setTransition(u.slice(0,-11),d||void 0),!1;var y=this._transitionablePaint._values[u],T=y.property.specification["property-type"]==="cross-faded-data-driven",C=y.value.isDataDriven(),P=y.value;this._transitionablePaint.setValue(u,d),this._handleSpecialPaintPropertyUpdate(u);var L=this._transitionablePaint._values[u].value;return L.isDataDriven()||C||T||this._handleOverridablePaintPropertyUpdate(u,P,L)},s.prototype._handleSpecialPaintPropertyUpdate=function(u){},s.prototype._handleOverridablePaintPropertyUpdate=function(u,d,g){return!1},s.prototype.isHidden=function(u){return!!(this.minzoom&&u=this.maxzoom)||this.visibility==="none"},s.prototype.updateTransitions=function(u){this._transitioningPaint=this._transitionablePaint.transitioned(u,this._transitioningPaint)},s.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},s.prototype.recalculate=function(u,d){u.getCrossfadeParameters&&(this._crossfadeParameters=u.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(u,void 0,d)),this.paint=this._transitioningPaint.possiblyEvaluate(u,void 0,d)},s.prototype.serialize=function(){var u={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(u.layout=u.layout||{},u.layout.visibility=this.visibility),Ve(u,function(d,g){return!(d===void 0||g==="layout"&&!Object.keys(d).length||g==="paint"&&!Object.keys(d).length)})},s.prototype._validate=function(u,d,g,y,T){return T===void 0&&(T={}),(!T||T.validate!==!1)&&Xl(this,u.call(Ic,{key:d,layerType:this.type,objectKey:g,value:y,styleSpec:te,style:{glyphs:!0,sprite:!0}}))},s.prototype.is3D=function(){return!1},s.prototype.isTileClipped=function(){return!1},s.prototype.hasOffscreenPass=function(){return!1},s.prototype.resize=function(){},s.prototype.isStateDependent=function(){for(var u in this.paint._values){var d=this.paint.get(u);if(d instanceof Jo&&pl(d.property.specification)&&(d.value.kind==="source"||d.value.kind==="composite")&&d.value.isStateDependent)return!0}return!1},s}(Ne),gl={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Eu=function(i,s){this._structArray=i,this._pos1=s*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},$n=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function vo(i,s){s===void 0&&(s=1);var u=0,d=0;return{members:i.map(function(g){var y=gl[g.type].BYTES_PER_ELEMENT,T=u=Ah(u,Math.max(s,y)),C=g.components||1;return d=Math.max(d,y),u+=y*C,{name:g.name,type:g.type,components:C,offset:T}}),size:Ah(u,Math.max(d,s)),alignment:s}}function Ah(i,s){return Math.ceil(i/s)*s}$n.serialize=function(i,s){return i._trim(),s&&(i.isTransferred=!0,s.push(i.arrayBuffer)),{length:i.length,arrayBuffer:i.arrayBuffer}},$n.deserialize=function(i){var s=Object.create(this.prototype);return s.arrayBuffer=i.arrayBuffer,s.length=i.length,s.capacity=i.arrayBuffer.byteLength/s.bytesPerElement,s._refreshViews(),s},$n.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},$n.prototype.clear=function(){this.length=0},$n.prototype.resize=function(i){this.reserve(i),this.length=i},$n.prototype.reserve=function(i){if(i>this.capacity){this.capacity=Math.max(i,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var s=this.uint8;this._refreshViews(),s&&this.uint8.set(s)}},$n.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Gl=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d){var g=this.length;return this.resize(g+1),this.emplace(g,u,d)},s.prototype.emplace=function(u,d,g){var y=2*u;return this.int16[y+0]=d,this.int16[y+1]=g,u},s}($n);Gl.prototype.bytesPerElement=4,_r("StructArrayLayout2i4",Gl);var b1=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y){var T=this.length;return this.resize(T+1),this.emplace(T,u,d,g,y)},s.prototype.emplace=function(u,d,g,y,T){var C=4*u;return this.int16[C+0]=d,this.int16[C+1]=g,this.int16[C+2]=y,this.int16[C+3]=T,u},s}($n);b1.prototype.bytesPerElement=8,_r("StructArrayLayout4i8",b1);var vl=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C){var P=this.length;return this.resize(P+1),this.emplace(P,u,d,g,y,T,C)},s.prototype.emplace=function(u,d,g,y,T,C,P){var L=6*u;return this.int16[L+0]=d,this.int16[L+1]=g,this.int16[L+2]=y,this.int16[L+3]=T,this.int16[L+4]=C,this.int16[L+5]=P,u},s}($n);vl.prototype.bytesPerElement=12,_r("StructArrayLayout2i4i12",vl);var Fa=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C){var P=this.length;return this.resize(P+1),this.emplace(P,u,d,g,y,T,C)},s.prototype.emplace=function(u,d,g,y,T,C,P){var L=4*u,k=8*u;return this.int16[L+0]=d,this.int16[L+1]=g,this.uint8[k+4]=y,this.uint8[k+5]=T,this.uint8[k+6]=C,this.uint8[k+7]=P,u},s}($n);Fa.prototype.bytesPerElement=8,_r("StructArrayLayout2i4ub8",Fa);var Ku=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d){var g=this.length;return this.resize(g+1),this.emplace(g,u,d)},s.prototype.emplace=function(u,d,g){var y=2*u;return this.float32[y+0]=d,this.float32[y+1]=g,u},s}($n);Ku.prototype.bytesPerElement=8,_r("StructArrayLayout2f8",Ku);var Hs=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C,P,L,k,U){var X=this.length;return this.resize(X+1),this.emplace(X,u,d,g,y,T,C,P,L,k,U)},s.prototype.emplace=function(u,d,g,y,T,C,P,L,k,U,X){var K=10*u;return this.uint16[K+0]=d,this.uint16[K+1]=g,this.uint16[K+2]=y,this.uint16[K+3]=T,this.uint16[K+4]=C,this.uint16[K+5]=P,this.uint16[K+6]=L,this.uint16[K+7]=k,this.uint16[K+8]=U,this.uint16[K+9]=X,u},s}($n);Hs.prototype.bytesPerElement=20,_r("StructArrayLayout10ui20",Hs);var E1=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C,P,L,k,U,X,K){var fe=this.length;return this.resize(fe+1),this.emplace(fe,u,d,g,y,T,C,P,L,k,U,X,K)},s.prototype.emplace=function(u,d,g,y,T,C,P,L,k,U,X,K,fe){var me=12*u;return this.int16[me+0]=d,this.int16[me+1]=g,this.int16[me+2]=y,this.int16[me+3]=T,this.uint16[me+4]=C,this.uint16[me+5]=P,this.uint16[me+6]=L,this.uint16[me+7]=k,this.int16[me+8]=U,this.int16[me+9]=X,this.int16[me+10]=K,this.int16[me+11]=fe,u},s}($n);E1.prototype.bytesPerElement=24,_r("StructArrayLayout4i4ui4i24",E1);var Qu=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g){var y=this.length;return this.resize(y+1),this.emplace(y,u,d,g)},s.prototype.emplace=function(u,d,g,y){var T=3*u;return this.float32[T+0]=d,this.float32[T+1]=g,this.float32[T+2]=y,u},s}($n);Qu.prototype.bytesPerElement=12,_r("StructArrayLayout3f12",Qu);var Lc=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u){var d=this.length;return this.resize(d+1),this.emplace(d,u)},s.prototype.emplace=function(u,d){return this.uint32[1*u+0]=d,u},s}($n);Lc.prototype.bytesPerElement=4,_r("StructArrayLayout1ul4",Lc);var T1=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C,P,L,k){var U=this.length;return this.resize(U+1),this.emplace(U,u,d,g,y,T,C,P,L,k)},s.prototype.emplace=function(u,d,g,y,T,C,P,L,k,U){var X=10*u,K=5*u;return this.int16[X+0]=d,this.int16[X+1]=g,this.int16[X+2]=y,this.int16[X+3]=T,this.int16[X+4]=C,this.int16[X+5]=P,this.uint32[K+3]=L,this.uint16[X+8]=k,this.uint16[X+9]=U,u},s}($n);T1.prototype.bytesPerElement=20,_r("StructArrayLayout6i1ul2ui20",T1);var Tu=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C){var P=this.length;return this.resize(P+1),this.emplace(P,u,d,g,y,T,C)},s.prototype.emplace=function(u,d,g,y,T,C,P){var L=6*u;return this.int16[L+0]=d,this.int16[L+1]=g,this.int16[L+2]=y,this.int16[L+3]=T,this.int16[L+4]=C,this.int16[L+5]=P,u},s}($n);Tu.prototype.bytesPerElement=12,_r("StructArrayLayout2i2i2i12",Tu);var Au=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T){var C=this.length;return this.resize(C+1),this.emplace(C,u,d,g,y,T)},s.prototype.emplace=function(u,d,g,y,T,C){var P=4*u,L=8*u;return this.float32[P+0]=d,this.float32[P+1]=g,this.float32[P+2]=y,this.int16[L+6]=T,this.int16[L+7]=C,u},s}($n);Au.prototype.bytesPerElement=16,_r("StructArrayLayout2f1f2i16",Au);var Sh=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y){var T=this.length;return this.resize(T+1),this.emplace(T,u,d,g,y)},s.prototype.emplace=function(u,d,g,y,T){var C=12*u,P=3*u;return this.uint8[C+0]=d,this.uint8[C+1]=g,this.float32[P+1]=y,this.float32[P+2]=T,u},s}($n);Sh.prototype.bytesPerElement=12,_r("StructArrayLayout2ub2f12",Sh);var js=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g){var y=this.length;return this.resize(y+1),this.emplace(y,u,d,g)},s.prototype.emplace=function(u,d,g,y){var T=3*u;return this.uint16[T+0]=d,this.uint16[T+1]=g,this.uint16[T+2]=y,u},s}($n);js.prototype.bytesPerElement=6,_r("StructArrayLayout3ui6",js);var Es=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C,P,L,k,U,X,K,fe,me,Me,Ae,je){var Ze=this.length;return this.resize(Ze+1),this.emplace(Ze,u,d,g,y,T,C,P,L,k,U,X,K,fe,me,Me,Ae,je)},s.prototype.emplace=function(u,d,g,y,T,C,P,L,k,U,X,K,fe,me,Me,Ae,je,Ze){var ot=24*u,lt=12*u,yt=48*u;return this.int16[ot+0]=d,this.int16[ot+1]=g,this.uint16[ot+2]=y,this.uint16[ot+3]=T,this.uint32[lt+2]=C,this.uint32[lt+3]=P,this.uint32[lt+4]=L,this.uint16[ot+10]=k,this.uint16[ot+11]=U,this.uint16[ot+12]=X,this.float32[lt+7]=K,this.float32[lt+8]=fe,this.uint8[yt+36]=me,this.uint8[yt+37]=Me,this.uint8[yt+38]=Ae,this.uint32[lt+10]=je,this.int16[ot+22]=Ze,u},s}($n);Es.prototype.bytesPerElement=48,_r("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Es);var A1=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y,T,C,P,L,k,U,X,K,fe,me,Me,Ae,je,Ze,ot,lt,yt,zt,Qt,Mr,cr,kr,pr,Tn){var $r=this.length;return this.resize($r+1),this.emplace($r,u,d,g,y,T,C,P,L,k,U,X,K,fe,me,Me,Ae,je,Ze,ot,lt,yt,zt,Qt,Mr,cr,kr,pr,Tn)},s.prototype.emplace=function(u,d,g,y,T,C,P,L,k,U,X,K,fe,me,Me,Ae,je,Ze,ot,lt,yt,zt,Qt,Mr,cr,kr,pr,Tn,$r){var Tr=34*u,Pn=17*u;return this.int16[Tr+0]=d,this.int16[Tr+1]=g,this.int16[Tr+2]=y,this.int16[Tr+3]=T,this.int16[Tr+4]=C,this.int16[Tr+5]=P,this.int16[Tr+6]=L,this.int16[Tr+7]=k,this.uint16[Tr+8]=U,this.uint16[Tr+9]=X,this.uint16[Tr+10]=K,this.uint16[Tr+11]=fe,this.uint16[Tr+12]=me,this.uint16[Tr+13]=Me,this.uint16[Tr+14]=Ae,this.uint16[Tr+15]=je,this.uint16[Tr+16]=Ze,this.uint16[Tr+17]=ot,this.uint16[Tr+18]=lt,this.uint16[Tr+19]=yt,this.uint16[Tr+20]=zt,this.uint16[Tr+21]=Qt,this.uint16[Tr+22]=Mr,this.uint32[Pn+12]=cr,this.float32[Pn+13]=kr,this.float32[Pn+14]=pr,this.float32[Pn+15]=Tn,this.float32[Pn+16]=$r,u},s}($n);A1.prototype.bytesPerElement=68,_r("StructArrayLayout8i15ui1ul4f68",A1);var Zl=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u){var d=this.length;return this.resize(d+1),this.emplace(d,u)},s.prototype.emplace=function(u,d){return this.float32[1*u+0]=d,u},s}($n);Zl.prototype.bytesPerElement=4,_r("StructArrayLayout1f4",Zl);var us=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g){var y=this.length;return this.resize(y+1),this.emplace(y,u,d,g)},s.prototype.emplace=function(u,d,g,y){var T=3*u;return this.int16[T+0]=d,this.int16[T+1]=g,this.int16[T+2]=y,u},s}($n);us.prototype.bytesPerElement=6,_r("StructArrayLayout3i6",us);var wh=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g){var y=this.length;return this.resize(y+1),this.emplace(y,u,d,g)},s.prototype.emplace=function(u,d,g,y){var T=4*u;return this.uint32[2*u+0]=d,this.uint16[T+2]=g,this.uint16[T+3]=y,u},s}($n);wh.prototype.bytesPerElement=8,_r("StructArrayLayout1ul2ui8",wh);var Dc=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d){var g=this.length;return this.resize(g+1),this.emplace(g,u,d)},s.prototype.emplace=function(u,d,g){var y=2*u;return this.uint16[y+0]=d,this.uint16[y+1]=g,u},s}($n);Dc.prototype.bytesPerElement=4,_r("StructArrayLayout2ui4",Dc);var S1=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u){var d=this.length;return this.resize(d+1),this.emplace(d,u)},s.prototype.emplace=function(u,d){return this.uint16[1*u+0]=d,u},s}($n);S1.prototype.bytesPerElement=2,_r("StructArrayLayout1ui2",S1);var w1=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},s.prototype.emplaceBack=function(u,d,g,y){var T=this.length;return this.resize(T+1),this.emplace(T,u,d,g,y)},s.prototype.emplace=function(u,d,g,y,T){var C=4*u;return this.float32[C+0]=d,this.float32[C+1]=g,this.float32[C+2]=y,this.float32[C+3]=T,u},s}($n);w1.prototype.bytesPerElement=16,_r("StructArrayLayout4f16",w1);var c=function(i){function s(){i.apply(this,arguments)}i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s;var u={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return u.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},u.x1.get=function(){return this._structArray.int16[this._pos2+2]},u.y1.get=function(){return this._structArray.int16[this._pos2+3]},u.x2.get=function(){return this._structArray.int16[this._pos2+4]},u.y2.get=function(){return this._structArray.int16[this._pos2+5]},u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.anchorPoint.get=function(){return new E(this.anchorPointX,this.anchorPointY)},Object.defineProperties(s.prototype,u),s}(Eu);c.prototype.size=20;var f=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.get=function(u){return new c(this,u)},s}(T1);_r("CollisionBoxArray",f);var h=function(i){function s(){i.apply(this,arguments)}i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},u.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},u.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},u.segment.get=function(){return this._structArray.uint16[this._pos2+10]},u.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},u.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},u.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},u.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},u.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},u.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},u.placedOrientation.set=function(d){this._structArray.uint8[this._pos1+37]=d},u.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},u.hidden.set=function(d){this._structArray.uint8[this._pos1+38]=d},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},u.crossTileID.set=function(d){this._structArray.uint32[this._pos4+10]=d},u.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(s.prototype,u),s}(Eu);h.prototype.size=48;var _=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.get=function(u){return new h(this,u)},s}(Es);_r("PlacedSymbolArray",_);var x=function(i){function s(){i.apply(this,arguments)}i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},u.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},u.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},u.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},u.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},u.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},u.key.get=function(){return this._structArray.uint16[this._pos2+8]},u.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},u.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},u.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},u.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},u.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},u.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},u.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},u.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},u.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},u.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},u.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},u.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},u.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},u.crossTileID.set=function(d){this._structArray.uint32[this._pos4+12]=d},u.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},u.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},u.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},u.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(s.prototype,u),s}(Eu);x.prototype.size=68;var S=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.get=function(u){return new x(this,u)},s}(A1);_r("SymbolInstanceArray",S);var w=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.getoffsetX=function(u){return this.float32[1*u+0]},s}(Zl);_r("GlyphOffsetArray",w);var M=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.getx=function(u){return this.int16[3*u+0]},s.prototype.gety=function(u){return this.int16[3*u+1]},s.prototype.gettileUnitDistanceFromAnchor=function(u){return this.int16[3*u+2]},s}(us);_r("SymbolLineVertexArray",M);var F=function(i){function s(){i.apply(this,arguments)}i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s;var u={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(s.prototype,u),s}(Eu);F.prototype.size=8;var V=function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.get=function(u){return new F(this,u)},s}(wh);_r("FeatureIndexArray",V);var ee=vo([{name:"a_pos",components:2,type:"Int16"}],4).members,re=function(i){i===void 0&&(i=[]),this.segments=i};function ne(i,s){return 256*(i=N(Math.floor(i),0,255))+N(Math.floor(s),0,255)}re.prototype.prepareSegment=function(i,s,u,d){var g=this.segments[this.segments.length-1];return i>re.MAX_VERTEX_ARRAY_LENGTH&&He("Max vertices per segment is "+re.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+i),(!g||g.vertexLength+i>re.MAX_VERTEX_ARRAY_LENGTH||g.sortKey!==d)&&(g={vertexOffset:s.length,primitiveOffset:u.length,vertexLength:0,primitiveLength:0},d!==void 0&&(g.sortKey=d),this.segments.push(g)),g},re.prototype.get=function(){return this.segments},re.prototype.destroy=function(){for(var i=0,s=this.segments;i>>16)*C&65535)<<16)&4294967295)<<15|L>>>17))*P+(((L>>>16)*P&65535)<<16)&4294967295)<<13|y>>>19))+((5*(y>>>16)&65535)<<16)&4294967295))+((58964+(T>>>16)&65535)<<16);switch(L=0,d){case 3:L^=(255&s.charCodeAt(k+2))<<16;case 2:L^=(255&s.charCodeAt(k+1))<<8;case 1:y^=L=(65535&(L=(L=(65535&(L^=255&s.charCodeAt(k)))*C+(((L>>>16)*C&65535)<<16)&4294967295)<<15|L>>>17))*P+(((L>>>16)*P&65535)<<16)&4294967295}return y^=s.length,y=2246822507*(65535&(y^=y>>>16))+((2246822507*(y>>>16)&65535)<<16)&4294967295,y=3266489909*(65535&(y^=y>>>13))+((3266489909*(y>>>16)&65535)<<16)&4294967295,(y^=y>>>16)>>>0}}),Ce=p(function(i){i.exports=function(s,u){for(var d,g=s.length,y=u^g,T=0;g>=4;)d=1540483477*(65535&(d=255&s.charCodeAt(T)|(255&s.charCodeAt(++T))<<8|(255&s.charCodeAt(++T))<<16|(255&s.charCodeAt(++T))<<24))+((1540483477*(d>>>16)&65535)<<16),y=1540483477*(65535&y)+((1540483477*(y>>>16)&65535)<<16)^(d=1540483477*(65535&(d^=d>>>24))+((1540483477*(d>>>16)&65535)<<16)),g-=4,++T;switch(g){case 3:y^=(255&s.charCodeAt(T+2))<<16;case 2:y^=(255&s.charCodeAt(T+1))<<8;case 1:y=1540483477*(65535&(y^=255&s.charCodeAt(T)))+((1540483477*(y>>>16)&65535)<<16)}return y=1540483477*(65535&(y^=y>>>13))+((1540483477*(y>>>16)&65535)<<16),(y^=y>>>15)>>>0}}),he=pe,we=Ce;he.murmur3=pe,he.murmur2=we;var Be=function(){this.ids=[],this.positions=[],this.indexed=!1};Be.prototype.add=function(i,s,u,d){this.ids.push(st(i)),this.positions.push(s,u,d)},Be.prototype.getPositions=function(i){for(var s=st(i),u=0,d=this.ids.length-1;u>1;this.ids[g]>=s?d=g:u=g+1}for(var y=[];this.ids[u]===s;)y.push({index:this.positions[3*u],start:this.positions[3*u+1],end:this.positions[3*u+2]}),u++;return y},Be.serialize=function(i,s){var u=new Float64Array(i.ids),d=new Uint32Array(i.positions);return function g(y,T,C,P){for(;C>1],k=C-1,U=P+1;;){do k++;while(y[k]L);if(k>=U)break;Je(y,k,U),Je(T,3*k,3*U),Je(T,3*k+1,3*U+1),Je(T,3*k+2,3*U+2)}U-CT.x+1||PT.y+1)&&He("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return u}function Pi(i,s){return{type:i.type,id:i.id,properties:i.properties,geometry:s?Ri(i):[]}}function ua(i,s,u,d,g){i.emplaceBack(2*s+(d+1)/2,2*u+(g+1)/2)}var ta=function(i){this.zoom=i.zoom,this.overscaling=i.overscaling,this.layers=i.layers,this.layerIds=this.layers.map(function(s){return s.id}),this.index=i.index,this.hasPattern=!1,this.layoutVertexArray=new Gl,this.indexArray=new js,this.segments=new re,this.programConfigurations=new Vr(i.layers,i.zoom),this.stateDependentLayerIds=this.layers.filter(function(s){return s.isStateDependent()}).map(function(s){return s.id})};function Xs(i,s){for(var u=0;u1){if(Ju(i,s))return!0;for(var d=0;d1?u:u.sub(s)._mult(g)._add(s))}function yl(i,s){for(var u,d,g,y=!1,T=0;Ts.y!=(g=u[P]).y>s.y&&s.x<(g.x-d.x)*(s.y-d.y)/(g.y-d.y)+d.x&&(y=!y);return y}function Ts(i,s){for(var u=!1,d=0,g=i.length-1;ds.y!=T.y>s.y&&s.x<(T.x-y.x)*(s.y-y.y)/(T.y-y.y)+y.x&&(u=!u)}return u}function ql(i,s,u){var d=u[0],g=u[2];if(i.xg.x&&s.x>g.x||i.yg.y&&s.y>g.y)return!1;var y=nt(i,s,u[0]);return y!==nt(i,s,u[1])||y!==nt(i,s,u[2])||y!==nt(i,s,u[3])}function Go(i,s,u){var d=s.paint.get(i).value;return d.kind==="constant"?d.value:u.programConfigurations.get(s.id).getMaxValue(i)}function Hi(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function xa(i,s,u,d,g){if(!s[0]&&!s[1])return i;var y=E.convert(s)._mult(g);u==="viewport"&&y._rotate(-d);for(var T=[],C=0;C=8192||k<0||k>=8192)){var U=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,i.sortKey),X=U.vertexLength;ua(this.layoutVertexArray,L,k,-1,-1),ua(this.layoutVertexArray,L,k,1,-1),ua(this.layoutVertexArray,L,k,1,1),ua(this.layoutVertexArray,L,k,-1,1),this.indexArray.emplaceBack(X,X+1,X+2),this.indexArray.emplaceBack(X,X+3,X+2),U.vertexLength+=4,U.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,i,u,{},d)},_r("CircleBucket",ta,{omit:["layers"]});var hs=new Ci({"circle-sort-key":new xr(te.layout_circle["circle-sort-key"])}),As={paint:new Ci({"circle-radius":new xr(te.paint_circle["circle-radius"]),"circle-color":new xr(te.paint_circle["circle-color"]),"circle-blur":new xr(te.paint_circle["circle-blur"]),"circle-opacity":new xr(te.paint_circle["circle-opacity"]),"circle-translate":new Rr(te.paint_circle["circle-translate"]),"circle-translate-anchor":new Rr(te.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Rr(te.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Rr(te.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new xr(te.paint_circle["circle-stroke-width"]),"circle-stroke-color":new xr(te.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new xr(te.paint_circle["circle-stroke-opacity"])}),layout:hs},On=typeof Float32Array<"u"?Float32Array:Array;function Fo(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}function ro(i,s,u){var d=s[0],g=s[1],y=s[2],T=s[3],C=s[4],P=s[5],L=s[6],k=s[7],U=s[8],X=s[9],K=s[10],fe=s[11],me=s[12],Me=s[13],Ae=s[14],je=s[15],Ze=u[0],ot=u[1],lt=u[2],yt=u[3];return i[0]=Ze*d+ot*C+lt*U+yt*me,i[1]=Ze*g+ot*P+lt*X+yt*Me,i[2]=Ze*y+ot*L+lt*K+yt*Ae,i[3]=Ze*T+ot*k+lt*fe+yt*je,i[4]=(Ze=u[4])*d+(ot=u[5])*C+(lt=u[6])*U+(yt=u[7])*me,i[5]=Ze*g+ot*P+lt*X+yt*Me,i[6]=Ze*y+ot*L+lt*K+yt*Ae,i[7]=Ze*T+ot*k+lt*fe+yt*je,i[8]=(Ze=u[8])*d+(ot=u[9])*C+(lt=u[10])*U+(yt=u[11])*me,i[9]=Ze*g+ot*P+lt*X+yt*Me,i[10]=Ze*y+ot*L+lt*K+yt*Ae,i[11]=Ze*T+ot*k+lt*fe+yt*je,i[12]=(Ze=u[12])*d+(ot=u[13])*C+(lt=u[14])*U+(yt=u[15])*me,i[13]=Ze*g+ot*P+lt*X+yt*Me,i[14]=Ze*y+ot*L+lt*K+yt*Ae,i[15]=Ze*T+ot*k+lt*fe+yt*je,i}Math.hypot||(Math.hypot=function(){for(var i=arguments,s=0,u=arguments.length;u--;)s+=i[u]*i[u];return Math.sqrt(s)});var Gs,C1=ro;function Yl(i,s,u){var d=s[0],g=s[1],y=s[2],T=s[3];return i[0]=u[0]*d+u[4]*g+u[8]*y+u[12]*T,i[1]=u[1]*d+u[5]*g+u[9]*y+u[13]*T,i[2]=u[2]*d+u[6]*g+u[10]*y+u[14]*T,i[3]=u[3]*d+u[7]*g+u[11]*y+u[15]*T,i}Gs=new On(3),On!=Float32Array&&(Gs[0]=0,Gs[1]=0,Gs[2]=0),function(){var i=new On(4);On!=Float32Array&&(i[0]=0,i[1]=0,i[2]=0,i[3]=0)}();var Ch=(function(){var i=new On(2);On!=Float32Array&&(i[0]=0,i[1]=0)}(),function(i){function s(u){i.call(this,u,As)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.createBucket=function(u){return new ta(u)},s.prototype.queryRadius=function(u){var d=u;return Go("circle-radius",this,d)+Go("circle-stroke-width",this,d)+Hi(this.paint.get("circle-translate"))},s.prototype.queryIntersectsFeature=function(u,d,g,y,T,C,P,L){for(var k=xa(u,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),C.angle,P),U=this.paint.get("circle-radius").evaluate(d,g)+this.paint.get("circle-stroke-width").evaluate(d,g),X=this.paint.get("circle-pitch-alignment")==="map",K=X?k:function(zt,Qt){return zt.map(function(Mr){return wu(Mr,Qt)})}(k,L),fe=X?U*P:U,me=0,Me=y;mei.width||g.height>i.height||u.x>i.width-g.width||u.y>i.height-g.height)throw new RangeError("out of range source coordinates for image copy");if(g.width>s.width||g.height>s.height||d.x>s.width-g.width||d.y>s.height-g.height)throw new RangeError("out of range destination coordinates for image copy");for(var T=i.data,C=s.data,P=0;P80*u){d=y=i[0],g=T=i[1];for(var fe=u;fey&&(y=C),P>T&&(T=P);L=(L=Math.max(y-d,T-g))!==0?1/L:0}return Rh(X,K,u,d,g,L),K}function N3(i,s,u,d,g){var y,T;if(g===Uc(i,s,u,d)>0)for(y=s;y=s;y-=d)T=O1(y,i[y],i[y+1],T);return T&&Bc(T,T.next)&&(Ru(T),T=T.next),T}function tc(i,s){if(!i)return i;s||(s=i);var u,d=i;do if(u=!1,d.steiner||!Bc(d,d.next)&&ji(d.prev,d,d.next)!==0)d=d.next;else{if(Ru(d),(d=s=d.prev)===d.next)break;u=!0}while(u||d!==s);return s}function Rh(i,s,u,d,g,y,T){if(i){!T&&y&&function(k,U,X,K){var fe=k;do fe.z===null&&(fe.z=M1(fe.x,fe.y,U,X,K)),fe.prevZ=fe.prev,fe.nextZ=fe.next,fe=fe.next;while(fe!==k);fe.prevZ.nextZ=null,fe.prevZ=null,function(me){var Me,Ae,je,Ze,ot,lt,yt,zt,Qt=1;do{for(Ae=me,me=null,ot=null,lt=0;Ae;){for(lt++,je=Ae,yt=0,Me=0;Me0||zt>0&&je;)yt!==0&&(zt===0||!je||Ae.z<=je.z)?(Ze=Ae,Ae=Ae.nextZ,yt--):(Ze=je,je=je.nextZ,zt--),ot?ot.nextZ=Ze:me=Ze,Ze.prevZ=ot,ot=Ze;Ae=je}ot.nextZ=null,Qt*=2}while(lt>1)}(fe)}(i,d,g,y);for(var C,P,L=i;i.prev!==i.next;)if(C=i.prev,P=i.next,y?__(i,d,g,y):m_(i))s.push(C.i/u),s.push(i.i/u),s.push(P.i/u),Ru(i),i=P.next,L=P.next;else if((i=P)===L){T?T===1?Rh(i=g_(tc(i),s,u),s,u,d,g,y,2):T===2&&v_(i,s,u,d,g,y):Rh(tc(i),s,u,d,g,y,1);break}}}function m_(i){var s=i.prev,u=i,d=i.next;if(ji(s,u,d)>=0)return!1;for(var g=i.next.next;g!==i.prev;){if(rc(s.x,s.y,u.x,u.y,d.x,d.y,g.x,g.y)&&ji(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function __(i,s,u,d){var g=i.prev,y=i,T=i.next;if(ji(g,y,T)>=0)return!1;for(var C=g.x>y.x?g.x>T.x?g.x:T.x:y.x>T.x?y.x:T.x,P=g.y>y.y?g.y>T.y?g.y:T.y:y.y>T.y?y.y:T.y,L=M1(g.x=L&&X&&X.z<=k;){if(U!==i.prev&&U!==i.next&&rc(g.x,g.y,y.x,y.y,T.x,T.y,U.x,U.y)&&ji(U.prev,U,U.next)>=0||(U=U.prevZ,X!==i.prev&&X!==i.next&&rc(g.x,g.y,y.x,y.y,T.x,T.y,X.x,X.y)&&ji(X.prev,X,X.next)>=0))return!1;X=X.nextZ}for(;U&&U.z>=L;){if(U!==i.prev&&U!==i.next&&rc(g.x,g.y,y.x,y.y,T.x,T.y,U.x,U.y)&&ji(U.prev,U,U.next)>=0)return!1;U=U.prevZ}for(;X&&X.z<=k;){if(X!==i.prev&&X!==i.next&&rc(g.x,g.y,y.x,y.y,T.x,T.y,X.x,X.y)&&ji(X.prev,X,X.next)>=0)return!1;X=X.nextZ}return!0}function g_(i,s,u){var d=i;do{var g=d.prev,y=d.next.next;!Bc(g,y)&&wf(g,d,d.next,y)&&nc(g,y)&&nc(y,g)&&(s.push(g.i/u),s.push(d.i/u),s.push(y.i/u),Ru(d),Ru(d.next),d=i=y),d=d.next}while(d!==i);return tc(d)}function v_(i,s,u,d,g,y){var T=i;do{for(var C=T.next.next;C!==T.prev;){if(T.i!==C.i&&Sf(T,C)){var P=P1(T,C);return T=tc(T,T.next),P=tc(P,P.next),Rh(T,s,u,d,g,y),void Rh(P,s,u,d,g,y)}C=C.next}T=T.next}while(T!==i)}function y_(i,s){return i.x-s.x}function jp(i,s){if(s=function(d,g){var y,T=g,C=d.x,P=d.y,L=-1/0;do{if(P<=T.y&&P>=T.next.y&&T.next.y!==T.y){var k=T.x+(P-T.y)*(T.next.x-T.x)/(T.next.y-T.y);if(k<=C&&k>L){if(L=k,k===C){if(P===T.y)return T;if(P===T.next.y)return T.next}y=T.x=T.x&&T.x>=K&&C!==T.x&&rc(Py.x||T.x===y.x&&Tf(y,T)))&&(y=T,me=U)),T=T.next;while(T!==X);return y}(i,s)){var u=P1(s,i);tc(s,s.next),tc(u,u.next)}}function Tf(i,s){return ji(i.prev,i,s.prev)<0&&ji(s.next,i,i.next)<0}function M1(i,s,u,d,g){return(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i=32767*(i-u)*g)|i<<8))|i<<4))|i<<2))|i<<1))|(s=1431655765&((s=858993459&((s=252645135&((s=16711935&((s=32767*(s-d)*g)|s<<8))|s<<4))|s<<2))|s<<1))<<1}function Af(i){var s=i,u=i;do(s.x=0&&(i-T)*(d-C)-(u-T)*(s-C)>=0&&(u-T)*(y-C)-(g-T)*(d-C)>=0}function Sf(i,s){return i.next.i!==s.i&&i.prev.i!==s.i&&!function(u,d){var g=u;do{if(g.i!==u.i&&g.next.i!==u.i&&g.i!==d.i&&g.next.i!==d.i&&wf(g,g.next,u,d))return!0;g=g.next}while(g!==u);return!1}(i,s)&&(nc(i,s)&&nc(s,i)&&function(u,d){var g=u,y=!1,T=(u.x+d.x)/2,C=(u.y+d.y)/2;do g.y>C!=g.next.y>C&&g.next.y!==g.y&&T<(g.next.x-g.x)*(C-g.y)/(g.next.y-g.y)+g.x&&(y=!y),g=g.next;while(g!==u);return y}(i,s)&&(ji(i.prev,i,s.prev)||ji(i,s.prev,s))||Bc(i,s)&&ji(i.prev,i,i.next)>0&&ji(s.prev,s,s.next)>0)}function ji(i,s,u){return(s.y-i.y)*(u.x-s.x)-(s.x-i.x)*(u.y-s.y)}function Bc(i,s){return i.x===s.x&&i.y===s.y}function wf(i,s,u,d){var g=Nc(ji(i,s,u)),y=Nc(ji(i,s,d)),T=Nc(ji(u,d,i)),C=Nc(ji(u,d,s));return g!==y&&T!==C||!(g!==0||!Fc(i,u,s))||!(y!==0||!Fc(i,d,s))||!(T!==0||!Fc(u,i,d))||!(C!==0||!Fc(u,s,d))}function Fc(i,s,u){return s.x<=Math.max(i.x,u.x)&&s.x>=Math.min(i.x,u.x)&&s.y<=Math.max(i.y,u.y)&&s.y>=Math.min(i.y,u.y)}function Nc(i){return i>0?1:i<0?-1:0}function nc(i,s){return ji(i.prev,i,i.next)<0?ji(i,s,i.next)>=0&&ji(i,i.prev,s)>=0:ji(i,s,i.prev)<0||ji(i,i.next,s)<0}function P1(i,s){var u=new kc(i.i,i.x,i.y),d=new kc(s.i,s.x,s.y),g=i.next,y=s.prev;return i.next=s,s.prev=i,u.next=g,g.prev=u,d.next=u,u.prev=d,y.next=d,d.prev=y,d}function O1(i,s,u,d){var g=new kc(i,s,u);return d?(g.next=d.next,g.prev=d,d.next.prev=g,d.next=g):(g.prev=g,g.next=g),g}function Ru(i){i.next.prev=i.prev,i.prev.next=i.next,i.prevZ&&(i.prevZ.nextZ=i.nextZ),i.nextZ&&(i.nextZ.prevZ=i.prevZ)}function kc(i,s,u){this.i=i,this.x=s,this.y=u,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Uc(i,s,u,d){for(var g=0,y=s,T=u-d;yP;){if(L-P>600){var U=L-P+1,X=C-P+1,K=Math.log(U),fe=.5*Math.exp(2*K/3),me=.5*Math.sqrt(K*fe*(U-fe)/U)*(X-U/2<0?-1:1);y(T,C,Math.max(P,Math.floor(C-X*fe/U+me)),Math.min(L,Math.floor(C+(U-X)*fe/U+me)),k)}var Me=T[C],Ae=P,je=L;for(Iu(T,P,C),k(T[L],Me)>0&&Iu(T,P,L);Ae0;)je--}k(T[P],Me)===0?Iu(T,P,je):Iu(T,++je,L),je<=C&&(P=je+1),C<=je&&(L=je-1)}})(i,s,u||0,d||i.length-1,g||zc)}function Iu(i,s,u){var d=i[s];i[s]=i[u],i[u]=d}function zc(i,s){return is?1:0}function Cf(i,s){var u=i.length;if(u<=1)return[i];for(var d,g,y=[],T=0;T1)for(var P=0;P0&&u.holes.push(d+=i[g-1].length)}return u},bf.default=d_;var xl=function(i){this.zoom=i.zoom,this.overscaling=i.overscaling,this.layers=i.layers,this.layerIds=this.layers.map(function(s){return s.id}),this.index=i.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Gl,this.indexArray=new js,this.indexArray2=new Dc,this.programConfigurations=new Vr(i.layers,i.zoom),this.segments=new re,this.segments2=new re,this.stateDependentLayerIds=this.layers.filter(function(s){return s.isStateDependent()}).map(function(s){return s.id})};xl.prototype.populate=function(i,s,u){this.hasPattern=Wp("fill",this.layers,s);for(var d=this.layers[0].layout.get("fill-sort-key"),g=[],y=0,T=i;y>3}if(g--,d===1||d===2)y+=i.readSVarint(),T+=i.readSVarint(),d===1&&(s&&C.push(s),s=[]),s.push(new E(y,T));else{if(d!==7)throw new Error("unknown command "+d);s&&s.push(s[0].clone())}}return s&&C.push(s),C},Vc.prototype.bbox=function(){var i=this._pbf;i.pos=this._geometry;for(var s=i.readVarint()+i.pos,u=1,d=0,g=0,y=0,T=1/0,C=-1/0,P=1/0,L=-1/0;i.pos>3}if(d--,u===1||u===2)(g+=i.readSVarint())C&&(C=g),(y+=i.readSVarint())L&&(L=y);else if(u!==7)throw new Error("unknown command "+u)}return[T,P,C,L]},Vc.prototype.toGeoJSON=function(i,s,u){var d,g,y=this.extent*Math.pow(2,u),T=this.extent*i,C=this.extent*s,P=this.loadGeometry(),L=Vc.types[this.type];function k(K){for(var fe=0;fe>3;g=T===1?d.readString():T===2?d.readFloat():T===3?d.readDouble():T===4?d.readVarint64():T===5?d.readVarint():T===6?d.readSVarint():T===7?d.readBoolean():null}return g}(u))}function j3(i,s,u){if(i===3){var d=new Zp(u,u.readVarint()+u.pos);d.length&&(s[d.name]=d)}}Hc.prototype.feature=function(i){if(i<0||i>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[i];var s=this._pbf.readVarint()+this._pbf.pos;return new H3(this._pbf,s,this.extent,this._keys,this._values)};var ac={VectorTile:function(i,s){this.layers=i.readFields(j3,{},s)},VectorTileFeature:H3,VectorTileLayer:Zp},Rf=ac.VectorTileFeature.types,If=Math.pow(2,13);function Ea(i,s,u,d,g,y,T,C){i.emplaceBack(s,u,2*Math.floor(d*If)+T,g*If*2,y*If*2,Math.round(C))}var ha=function(i){this.zoom=i.zoom,this.overscaling=i.overscaling,this.layers=i.layers,this.layerIds=this.layers.map(function(s){return s.id}),this.index=i.index,this.hasPattern=!1,this.layoutVertexArray=new vl,this.indexArray=new js,this.programConfigurations=new Vr(i.layers,i.zoom),this.segments=new re,this.stateDependentLayerIds=this.layers.filter(function(s){return s.isStateDependent()}).map(function(s){return s.id})};function xo(i,s){return i.x===s.x&&(i.x<0||i.x>8192)||i.y===s.y&&(i.y<0||i.y>8192)}ha.prototype.populate=function(i,s,u){this.features=[],this.hasPattern=Wp("fill-extrusion",this.layers,s);for(var d=0,g=i;d8192})||Pn.every(function(pn){return pn.y<0})||Pn.every(function(pn){return pn.y>8192})))for(var me=0,Me=0;Me=1){var je=fe[Me-1];if(!xo(Ae,je)){U.vertexLength+4>re.MAX_VERTEX_ARRAY_LENGTH&&(U=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Ze=Ae.sub(je)._perp()._unit(),ot=je.dist(Ae);me+ot>32768&&(me=0),Ea(this.layoutVertexArray,Ae.x,Ae.y,Ze.x,Ze.y,0,0,me),Ea(this.layoutVertexArray,Ae.x,Ae.y,Ze.x,Ze.y,0,1,me),Ea(this.layoutVertexArray,je.x,je.y,Ze.x,Ze.y,0,0,me+=ot),Ea(this.layoutVertexArray,je.x,je.y,Ze.x,Ze.y,0,1,me);var lt=U.vertexLength;this.indexArray.emplaceBack(lt,lt+2,lt+1),this.indexArray.emplaceBack(lt+1,lt+2,lt+3),U.vertexLength+=4,U.primitiveLength+=2}}}}if(U.vertexLength+P>re.MAX_VERTEX_ARRAY_LENGTH&&(U=this.segments.prepareSegment(P,this.layoutVertexArray,this.indexArray)),Rf[i.type]==="Polygon"){for(var yt=[],zt=[],Qt=U.vertexLength,Mr=0,cr=C;Mr=2&&i[P-1].equals(i[P-2]);)P--;for(var L=0;L0;if(zt&&Ae>L){var Mr=k.dist(K);if(Mr>2*U){var cr=k.sub(k.sub(K)._mult(U/Mr)._round());this.updateDistance(K,cr),this.addCurrentVertex(cr,me,0,0,X),K=cr}}var kr=K&&fe,pr=kr?u:C?"butt":d;if(kr&&pr==="round"&&(ltg&&(pr="bevel"),pr==="bevel"&&(lt>2&&(pr="flipbevel"),lt100)je=Me.mult(-1);else{var Tn=lt*me.add(Me).mag()/me.sub(Me).mag();je._perp()._mult(Tn*(Qt?-1:1))}this.addCurrentVertex(k,je,0,0,X),this.addCurrentVertex(k,je.mult(-1),0,0,X)}else if(pr==="bevel"||pr==="fakeround"){var $r=-Math.sqrt(lt*lt-1),Tr=Qt?$r:0,Pn=Qt?0:$r;if(K&&this.addCurrentVertex(k,me,Tr,Pn,X),pr==="fakeround")for(var pn=Math.round(180*yt/Math.PI/20),Hn=1;Hn2*U){var Di=k.add(fe.sub(k)._mult(U/$i)._round());this.updateDistance(k,Di),this.addCurrentVertex(Di,Me,0,0,X),k=Di}}}}},Ta.prototype.addCurrentVertex=function(i,s,u,d,g,y){y===void 0&&(y=!1);var T=s.y*d-s.x,C=-s.y-s.x*d;this.addHalfVertex(i,s.x+s.y*u,s.y-s.x*u,y,!1,u,g),this.addHalfVertex(i,T,C,y,!0,-d,g),this.distance>Z3/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(i,s,u,d,g,y))},Ta.prototype.addHalfVertex=function(i,s,u,d,g,y,T){var C=.5*(this.lineClips?this.scaledDistance*(Z3-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((i.x<<1)+(d?1:0),(i.y<<1)+(g?1:0),Math.round(63*s)+128,Math.round(63*u)+128,1+(y===0?0:y<0?-1:1)|(63&C)<<2,C>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var P=T.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,P),T.primitiveLength++),g?this.e2=P:this.e1=P},Ta.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Ta.prototype.updateDistance=function(i,s){this.distance+=i.dist(s),this.updateScaledDistance()},_r("LineBucket",Ta,{omit:["layers","patternFeatures"]});var A_=new Ci({"line-cap":new Rr(te.layout_line["line-cap"]),"line-join":new xr(te.layout_line["line-join"]),"line-miter-limit":new Rr(te.layout_line["line-miter-limit"]),"line-round-limit":new Rr(te.layout_line["line-round-limit"]),"line-sort-key":new xr(te.layout_line["line-sort-key"])}),$3={paint:new Ci({"line-opacity":new xr(te.paint_line["line-opacity"]),"line-color":new xr(te.paint_line["line-color"]),"line-translate":new Rr(te.paint_line["line-translate"]),"line-translate-anchor":new Rr(te.paint_line["line-translate-anchor"]),"line-width":new xr(te.paint_line["line-width"]),"line-gap-width":new xr(te.paint_line["line-gap-width"]),"line-offset":new xr(te.paint_line["line-offset"]),"line-blur":new xr(te.paint_line["line-blur"]),"line-dasharray":new ea(te.paint_line["line-dasharray"]),"line-pattern":new Ba(te.paint_line["line-pattern"]),"line-gradient":new bs(te.paint_line["line-gradient"])}),layout:A_},$p=new(function(i){function s(){i.apply(this,arguments)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.possiblyEvaluate=function(u,d){return d=new cn(Math.floor(d.zoom),{now:d.now,fadeDuration:d.fadeDuration,zoomHistory:d.zoomHistory,transition:d.transition}),i.prototype.possiblyEvaluate.call(this,u,d)},s.prototype.evaluate=function(u,d,g,y){return d=G({},d,{zoom:Math.floor(d.zoom)}),i.prototype.evaluate.call(this,u,d,g,y)},s}(xr))($3.paint.properties["line-width"].specification);$p.useIntegerZoom=!0;var q3=function(i){function s(u){i.call(this,u,$3),this.gradientVersion=0}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype._handleSpecialPaintPropertyUpdate=function(u){u==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Oa,this.gradientVersion=(this.gradientVersion+1)%R)},s.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},s.prototype.recalculate=function(u,d){i.prototype.recalculate.call(this,u,d),this.paint._values["line-floorwidth"]=$p.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,u)},s.prototype.createBucket=function(u){return new Ta(u)},s.prototype.queryRadius=function(u){var d=u,g=qp(Go("line-width",this,d),Go("line-gap-width",this,d)),y=Go("line-offset",this,d);return g/2+Math.abs(y)+Hi(this.paint.get("line-translate"))},s.prototype.queryIntersectsFeature=function(u,d,g,y,T,C,P){var L=xa(u,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),C.angle,P),k=P/2*qp(this.paint.get("line-width").evaluate(d,g),this.paint.get("line-gap-width").evaluate(d,g)),U=this.paint.get("line-offset").evaluate(d,g);return U&&(y=function(X,K){for(var fe=[],me=new E(0,0),Me=0;Me=3){for(var Ae=0;Ae0?s+2*i:i}var S_=vo([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),w_=vo([{name:"a_projected_pos",components:3,type:"Float32"}],4),Y3=(vo([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),vo([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),K3=(vo([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),vo([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),B=vo([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ae(i,s,u){return i.sections.forEach(function(d){d.text=function(g,y,T){var C=y.layout.get("text-transform").evaluate(T,{});return C==="uppercase"?g=g.toLocaleUpperCase():C==="lowercase"&&(g=g.toLocaleLowerCase()),$a.applyArabicShaping&&(g=$a.applyArabicShaping(g)),g}(d.text,s,u)}),i}vo([{name:"triangle",components:3,type:"Uint16"}]),vo([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),vo([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),vo([{type:"Float32",name:"offsetX"}]),vo([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var be={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},et=function(i,s,u,d,g){var y,T,C=8*g-d-1,P=(1<>1,k=-7,U=u?g-1:0,X=u?-1:1,K=i[s+U];for(U+=X,y=K&(1<<-k)-1,K>>=-k,k+=C;k>0;y=256*y+i[s+U],U+=X,k-=8);for(T=y&(1<<-k)-1,y>>=-k,k+=d;k>0;T=256*T+i[s+U],U+=X,k-=8);if(y===0)y=1-L;else{if(y===P)return T?NaN:1/0*(K?-1:1);T+=Math.pow(2,d),y-=L}return(K?-1:1)*T*Math.pow(2,y-d)},gt=function(i,s,u,d,g,y){var T,C,P,L=8*y-g-1,k=(1<>1,X=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,K=d?0:y-1,fe=d?1:-1,me=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(C=isNaN(s)?1:0,T=k):(T=Math.floor(Math.log(s)/Math.LN2),s*(P=Math.pow(2,-T))<1&&(T--,P*=2),(s+=T+U>=1?X/P:X*Math.pow(2,1-U))*P>=2&&(T++,P/=2),T+U>=k?(C=0,T=k):T+U>=1?(C=(s*P-1)*Math.pow(2,g),T+=U):(C=s*Math.pow(2,U-1)*Math.pow(2,g),T=0));g>=8;i[u+K]=255&C,K+=fe,C/=256,g-=8);for(T=T<0;i[u+K]=255&T,K+=fe,T/=256,L-=8);i[u+K-fe]|=128*me},rt=$e;function $e(i){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(i)?i:new Uint8Array(i||0),this.pos=0,this.type=0,this.length=this.buf.length}$e.Varint=0,$e.Fixed64=1,$e.Bytes=2,$e.Fixed32=5;var Bt=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function It(i){return i.type===$e.Bytes?i.readVarint()+i.pos:i.pos+1}function Zt(i,s,u){return u?4294967296*s+(i>>>0):4294967296*(s>>>0)+(i>>>0)}function kt(i,s,u){var d=s<=16383?1:s<=2097151?2:s<=268435455?3:Math.floor(Math.log(s)/(7*Math.LN2));u.realloc(d);for(var g=u.pos-1;g>=i;g--)u.buf[g+d]=u.buf[g]}function Xt(i,s){for(var u=0;u>>8,i[u+2]=s>>>16,i[u+3]=s>>>24}function ir(i,s){return(i[s]|i[s+1]<<8|i[s+2]<<16)+(i[s+3]<<24)}function wt(i,s,u){i===1&&u.readMessage(er,s)}function er(i,s,u){if(i===3){var d=u.readMessage(Fr,{}),g=d.width,y=d.height,T=d.left,C=d.top,P=d.advance;s.push({id:d.id,bitmap:new ec({width:g+6,height:y+6},d.bitmap),metrics:{width:g,height:y,left:T,top:C,advance:P}})}}function Fr(i,s,u){i===1?s.id=u.readVarint():i===2?s.bitmap=u.readBytes():i===3?s.width=u.readVarint():i===4?s.height=u.readVarint():i===5?s.left=u.readSVarint():i===6?s.top=u.readSVarint():i===7&&(s.advance=u.readVarint())}function rn(i){for(var s=0,u=0,d=0,g=i;d=0;X--){var K=T[X];if(!(U.w>K.w||U.h>K.h)){if(U.x=K.x,U.y=K.y,P=Math.max(P,U.y+U.h),C=Math.max(C,U.x+U.w),U.w===K.w&&U.h===K.h){var fe=T.pop();X>3,y=this.pos;this.type=7&d,i(g,s,this),this.pos===y&&this.skip(d)}return s},readMessage:function(i,s){return this.readFields(i,s,this.readVarint()+this.pos)},readFixed32:function(){var i=sr(this.buf,this.pos);return this.pos+=4,i},readSFixed32:function(){var i=ir(this.buf,this.pos);return this.pos+=4,i},readFixed64:function(){var i=sr(this.buf,this.pos)+4294967296*sr(this.buf,this.pos+4);return this.pos+=8,i},readSFixed64:function(){var i=sr(this.buf,this.pos)+4294967296*ir(this.buf,this.pos+4);return this.pos+=8,i},readFloat:function(){var i=et(this.buf,this.pos,!0,23,4);return this.pos+=4,i},readDouble:function(){var i=et(this.buf,this.pos,!0,52,8);return this.pos+=8,i},readVarint:function(i){var s,u,d=this.buf;return s=127&(u=d[this.pos++]),u<128?s:(s|=(127&(u=d[this.pos++]))<<7,u<128?s:(s|=(127&(u=d[this.pos++]))<<14,u<128?s:(s|=(127&(u=d[this.pos++]))<<21,u<128?s:function(g,y,T){var C,P,L=T.buf;if(C=(112&(P=L[T.pos++]))>>4,P<128||(C|=(127&(P=L[T.pos++]))<<3,P<128)||(C|=(127&(P=L[T.pos++]))<<10,P<128)||(C|=(127&(P=L[T.pos++]))<<17,P<128)||(C|=(127&(P=L[T.pos++]))<<24,P<128)||(C|=(1&(P=L[T.pos++]))<<31,P<128))return Zt(g,C,y);throw new Error("Expected varint not more than 10 bytes")}(s|=(15&(u=d[this.pos]))<<28,i,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var i=this.readVarint();return i%2==1?(i+1)/-2:i/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var i=this.readVarint()+this.pos,s=this.pos;return this.pos=i,i-s>=12&&Bt?function(u,d,g){return Bt.decode(u.subarray(d,g))}(this.buf,s,i):function(u,d,g){for(var y="",T=d;T239?4:k>223?3:k>191?2:1;if(T+X>g)break;X===1?k<128&&(U=k):X===2?(192&(C=u[T+1]))==128&&(U=(31&k)<<6|63&C)<=127&&(U=null):X===3?(P=u[T+2],(192&(C=u[T+1]))==128&&(192&P)==128&&((U=(15&k)<<12|(63&C)<<6|63&P)<=2047||U>=55296&&U<=57343)&&(U=null)):X===4&&(P=u[T+2],L=u[T+3],(192&(C=u[T+1]))==128&&(192&P)==128&&(192&L)==128&&((U=(15&k)<<18|(63&C)<<12|(63&P)<<6|63&L)<=65535||U>=1114112)&&(U=null)),U===null?(U=65533,X=1):U>65535&&(U-=65536,y+=String.fromCharCode(U>>>10&1023|55296),U=56320|1023&U),y+=String.fromCharCode(U),T+=X}return y}(this.buf,s,i)},readBytes:function(){var i=this.readVarint()+this.pos,s=this.buf.subarray(this.pos,i);return this.pos=i,s},readPackedVarint:function(i,s){if(this.type!==$e.Bytes)return i.push(this.readVarint(s));var u=It(this);for(i=i||[];this.pos127;);else if(s===$e.Bytes)this.pos=this.readVarint()+this.pos;else if(s===$e.Fixed32)this.pos+=4;else{if(s!==$e.Fixed64)throw new Error("Unimplemented type: "+s);this.pos+=8}},writeTag:function(i,s){this.writeVarint(i<<3|s)},realloc:function(i){for(var s=this.length||16;s268435455||i<0?function(s,u){var d,g;if(s>=0?(d=s%4294967296|0,g=s/4294967296|0):(g=~(-s/4294967296),4294967295^(d=~(-s%4294967296))?d=d+1|0:(d=0,g=g+1|0)),s>=18446744073709552e3||s<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");u.realloc(10),function(y,T,C){C.buf[C.pos++]=127&y|128,y>>>=7,C.buf[C.pos++]=127&y|128,y>>>=7,C.buf[C.pos++]=127&y|128,y>>>=7,C.buf[C.pos++]=127&y|128,C.buf[C.pos]=127&(y>>>=7)}(d,0,u),function(y,T){var C=(7&y)<<4;T.buf[T.pos++]|=C|((y>>>=3)?128:0),y&&(T.buf[T.pos++]=127&y|((y>>>=7)?128:0),y&&(T.buf[T.pos++]=127&y|((y>>>=7)?128:0),y&&(T.buf[T.pos++]=127&y|((y>>>=7)?128:0),y&&(T.buf[T.pos++]=127&y|((y>>>=7)?128:0),y&&(T.buf[T.pos++]=127&y)))))}(g,u)}(i,this):(this.realloc(4),this.buf[this.pos++]=127&i|(i>127?128:0),i<=127||(this.buf[this.pos++]=127&(i>>>=7)|(i>127?128:0),i<=127||(this.buf[this.pos++]=127&(i>>>=7)|(i>127?128:0),i<=127||(this.buf[this.pos++]=i>>>7&127))))},writeSVarint:function(i){this.writeVarint(i<0?2*-i-1:2*i)},writeBoolean:function(i){this.writeVarint(!!i)},writeString:function(i){i=String(i),this.realloc(4*i.length),this.pos++;var s=this.pos;this.pos=function(d,g,y){for(var T,C,P=0;P55295&&T<57344){if(!C){T>56319||P+1===g.length?(d[y++]=239,d[y++]=191,d[y++]=189):C=T;continue}if(T<56320){d[y++]=239,d[y++]=191,d[y++]=189,C=T;continue}T=C-55296<<10|T-56320|65536,C=null}else C&&(d[y++]=239,d[y++]=191,d[y++]=189,C=null);T<128?d[y++]=T:(T<2048?d[y++]=T>>6|192:(T<65536?d[y++]=T>>12|224:(d[y++]=T>>18|240,d[y++]=T>>12&63|128),d[y++]=T>>6&63|128),d[y++]=63&T|128)}return y}(this.buf,i,this.pos);var u=this.pos-s;u>=128&&kt(s,u,this),this.pos=s-1,this.writeVarint(u),this.pos+=u},writeFloat:function(i){this.realloc(4),gt(this.buf,i,this.pos,!0,23,4),this.pos+=4},writeDouble:function(i){this.realloc(8),gt(this.buf,i,this.pos,!0,52,8),this.pos+=8},writeBytes:function(i){var s=i.length;this.writeVarint(s),this.realloc(s);for(var u=0;u=128&&kt(u,d,this),this.pos=u-1,this.writeVarint(d),this.pos+=d},writeMessage:function(i,s,u){this.writeTag(i,$e.Bytes),this.writeRawMessage(s,u)},writePackedVarint:function(i,s){s.length&&this.writeMessage(i,Xt,s)},writePackedSVarint:function(i,s){s.length&&this.writeMessage(i,Kt,s)},writePackedBoolean:function(i,s){s.length&&this.writeMessage(i,Xe,s)},writePackedFloat:function(i,s){s.length&&this.writeMessage(i,Mt,s)},writePackedDouble:function(i,s){s.length&&this.writeMessage(i,Wt,s)},writePackedFixed32:function(i,s){s.length&&this.writeMessage(i,ut,s)},writePackedSFixed32:function(i,s){s.length&&this.writeMessage(i,Ft,s)},writePackedFixed64:function(i,s){s.length&&this.writeMessage(i,nr,s)},writePackedSFixed64:function(i,s){s.length&&this.writeMessage(i,At,s)},writeBytesField:function(i,s){this.writeTag(i,$e.Bytes),this.writeBytes(s)},writeFixed32Field:function(i,s){this.writeTag(i,$e.Fixed32),this.writeFixed32(s)},writeSFixed32Field:function(i,s){this.writeTag(i,$e.Fixed32),this.writeSFixed32(s)},writeFixed64Field:function(i,s){this.writeTag(i,$e.Fixed64),this.writeFixed64(s)},writeSFixed64Field:function(i,s){this.writeTag(i,$e.Fixed64),this.writeSFixed64(s)},writeVarintField:function(i,s){this.writeTag(i,$e.Varint),this.writeVarint(s)},writeSVarintField:function(i,s){this.writeTag(i,$e.Varint),this.writeSVarint(s)},writeStringField:function(i,s){this.writeTag(i,$e.Bytes),this.writeString(s)},writeFloatField:function(i,s){this.writeTag(i,$e.Fixed32),this.writeFloat(s)},writeDoubleField:function(i,s){this.writeTag(i,$e.Fixed64),this.writeDouble(s)},writeBooleanField:function(i,s){this.writeVarintField(i,!!s)}};var tr=function(i,s){var u=s.pixelRatio,d=s.version,g=s.stretchX,y=s.stretchY,T=s.content;this.paddedRect=i,this.pixelRatio=u,this.stretchX=g,this.stretchY=y,this.content=T,this.version=d},Dt={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};Dt.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},Dt.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},Dt.tlbr.get=function(){return this.tl.concat(this.br)},Dt.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(tr.prototype,Dt);var vt=function(i,s){var u={},d={};this.haveRenderCallbacks=[];var g=[];this.addImages(i,u,g),this.addImages(s,d,g);var y=rn(g),T=new ba({width:y.w||1,height:y.h||1});for(var C in i){var P=i[C],L=u[C].paddedRect;ba.copy(P.data,T,{x:0,y:0},{x:L.x+1,y:L.y+1},P.data)}for(var k in s){var U=s[k],X=d[k].paddedRect,K=X.x+1,fe=X.y+1,me=U.data.width,Me=U.data.height;ba.copy(U.data,T,{x:0,y:0},{x:K,y:fe},U.data),ba.copy(U.data,T,{x:0,y:Me-1},{x:K,y:fe-1},{width:me,height:1}),ba.copy(U.data,T,{x:0,y:0},{x:K,y:fe+Me},{width:me,height:1}),ba.copy(U.data,T,{x:me-1,y:0},{x:K-1,y:fe},{width:1,height:Me}),ba.copy(U.data,T,{x:0,y:0},{x:K+me,y:fe},{width:1,height:Me})}this.image=T,this.iconPositions=u,this.patternPositions=d};vt.prototype.addImages=function(i,s,u){for(var d in i){var g=i[d],y={x:0,y:0,w:g.data.width+2,h:g.data.height+2};u.push(y),s[d]=new tr(y,g),g.hasRenderCallback&&this.haveRenderCallbacks.push(d)}},vt.prototype.patchUpdatedImages=function(i,s){for(var u in i.dispatchRenderCallbacks(this.haveRenderCallbacks),i.updatedImages)this.patchUpdatedImage(this.iconPositions[u],i.getImage(u),s),this.patchUpdatedImage(this.patternPositions[u],i.getImage(u),s)},vt.prototype.patchUpdatedImage=function(i,s,u){if(i&&s&&i.version!==s.version){i.version=s.version;var d=i.tl;u.update(s.data,void 0,{x:d[0],y:d[1]})}},_r("ImagePosition",tr),_r("ImageAtlas",vt);var Nr={horizontal:1,vertical:2,horizontalOnly:3},En=function(){this.scale=1,this.fontStack="",this.imageName=null};En.forText=function(i,s){var u=new En;return u.scale=i||1,u.fontStack=s,u},En.forImage=function(i){var s=new En;return s.imageName=i,s};var lr=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function mn(i,s,u,d,g,y,T,C,P,L,k,U,X,K,fe,me){var Me,Ae=lr.fromFeature(i,g);U===Nr.vertical&&Ae.verticalizePunctuation();var je=$a.processBidirectionalText,Ze=$a.processStyledBidirectionalText;if(je&&Ae.sections.length===1){Me=[];for(var ot=0,lt=je(Ae.toString(),io(Ae,L,y,s,d,K,fe));ot0&&Df>So&&(So=Df)}else{var r0=pn[Qn.fontStack],Bf=r0&&r0[$s];if(Bf&&Bf.rect)uc=Bf.rect,so=Bf.metrics;else{var Jp=Pn[Qn.fontStack],n0=Jp&&Jp[$s];if(!n0)continue;so=n0.metrics}lc=24*(Gn-Qn.scale)}Lh?(Tr.verticalizable=!0,Ii.push({glyph:$s,imageName:Ql,x:qo,y:ka+lc,vertical:Lh,scale:Qn.scale,fontStack:Qn.fontStack,sectionIndex:sc,metrics:so,rect:uc}),qo+=Of*Qn.scale+Di):(Ii.push({glyph:$s,imageName:Ql,x:qo,y:ka+lc,vertical:Lh,scale:Qn.scale,fontStack:Qn.fontStack,sectionIndex:sc,metrics:so,rect:uc}),qo+=so.advance*Qn.scale+Di)}Ii.length!==0&&(ia=Math.max(qo-Di,ia),bo(Ii,0,Ii.length-1,ao,So)),qo=0;var i0=Kn*Gn+So;Aa.lineOffset=Math.max(So,Ka),ka+=i0,Ua=Math.max(i0,Ua),++oa}else ka+=Kn,++oa}var Gc,ed=ka- -17,Ff=xi(Li),D1=Ff.horizontalAlign,Nf=Ff.verticalAlign;(function(o0,a0,td,rd,s0,nd,id,od,l0){var kf,u0=(a0-td)*s0;kf=nd!==id?-od*rd- -17:(-rd*l0+.5)*id;for(var Uf=0,ad=o0;Uf=0&&d>=i&&en[this.text.charCodeAt(d)];d--)u--;this.text=this.text.substring(i,u),this.sectionIndex=this.sectionIndex.slice(i,u)},lr.prototype.substring=function(i,s){var u=new lr;return u.text=this.text.substring(i,s),u.sectionIndex=this.sectionIndex.slice(i,s),u.sections=this.sections,u},lr.prototype.toString=function(){return this.text},lr.prototype.getMaxScale=function(){var i=this;return this.sectionIndex.reduce(function(s,u){return Math.max(s,i.sections[u].scale)},0)},lr.prototype.addTextSection=function(i,s){this.text+=i.text,this.sections.push(En.forText(i.scale,i.fontStack||s));for(var u=this.sections.length-1,d=0;d=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var en={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Gr={};function Wn(i,s,u,d,g,y){if(s.imageName){var T=d[s.imageName];return T?T.displaySize[0]*s.scale*24/y+g:0}var C=u[s.fontStack],P=C&&C[i];return P?P.metrics.advance*s.scale+g:0}function no(i,s,u,d){var g=Math.pow(i-s,2);return d?i=0,U=0,X=0;X-u/2;){if(--T<0)return!1;C-=i[T].dist(y),y=i[T]}C+=i[T].dist(i[T+1]),T++;for(var P=[],L=0;Cd;)L-=P.shift().angleDelta;if(L>g)return!1;T++,C+=k.dist(U)}return!0}function qn(i){for(var s=0,u=0;uL){var fe=(L-P)/K,me=zi(U.x,X.x,fe),Me=zi(U.y,X.y,fe),Ae=new Xi(me,Me,X.angleTo(U),k);return Ae._round(),!T||ra(i,Ae,C,T,s)?Ae:void 0}P+=K}}function oo(i,s,u,d,g,y,T,C,P){var L=Hr(d,y,T),k=Cn(d,g),U=k*T,X=i[0].x===0||i[0].x===P||i[0].y===0||i[0].y===P;return s-U=0&&Hn=0&&Ur=0&&cr+zt<=Qt){var Kn=new Xi(Hn,Ur,Pn,pr);Kn._round(),Ae&&!ra(fe,Kn,Ze,Ae,je)||kr.push(Kn)}}Mr+=Tr}return lt||kr.length||ot||(kr=K(fe,Mr/2,Me,Ae,je,Ze,ot,!0,yt)),kr}(i,X?s/2*C%s:(k/2+2*y)*T*C%s,s,L,u,U,X,!1,P)}function bl(i,s,u,d,g){for(var y=[],T=0;T=d&&U.x>=d||(k.x>=d?k=new E(d,k.y+(d-k.x)/(U.x-k.x)*(U.y-k.y))._round():U.x>=d&&(U=new E(d,k.y+(d-k.x)/(U.x-k.x)*(U.y-k.y))._round()),k.y>=g&&U.y>=g||(k.y>=g?k=new E(k.x+(g-k.y)/(U.y-k.y)*(U.x-k.x),g)._round():U.y>=g&&(U=new E(k.x+(g-k.y)/(U.y-k.y)*(U.x-k.x),g)._round()),P&&k.equals(P[P.length-1])||y.push(P=[k]),P.push(U)))))}return y}function _e(i,s,u,d){var g=[],y=i.image,T=y.pixelRatio,C=y.paddedRect.w-2,P=y.paddedRect.h-2,L=i.right-i.left,k=i.bottom-i.top,U=y.stretchX||[[0,C]],X=y.stretchY||[[0,P]],K=function(Hn,Ur){return Hn+Ur[1]-Ur[0]},fe=U.reduce(K,0),me=X.reduce(K,0),Me=C-fe,Ae=P-me,je=0,Ze=fe,ot=0,lt=me,yt=0,zt=Me,Qt=0,Mr=Ae;if(y.content&&d){var cr=y.content;je=it(U,0,cr[0]),ot=it(X,0,cr[1]),Ze=it(U,cr[0],cr[2]),lt=it(X,cr[1],cr[3]),yt=cr[0]-je,Qt=cr[1]-ot,zt=cr[2]-cr[0]-Ze,Mr=cr[3]-cr[1]-lt}var kr=function(Hn,Ur,Kn,Li){var Qi=ur(Hn.stretch-je,Ze,L,i.left),$i=_n(Hn.fixed-yt,zt,Hn.stretch,fe),Di=ur(Ur.stretch-ot,lt,k,i.top),Ji=_n(Ur.fixed-Qt,Mr,Ur.stretch,me),$o=ur(Kn.stretch-je,Ze,L,i.left),qo=_n(Kn.fixed-yt,zt,Kn.stretch,fe),ka=ur(Li.stretch-ot,lt,k,i.top),ia=_n(Li.fixed-Qt,Mr,Li.stretch,me),Ua=new E(Qi,Di),ao=new E($o,Di),oa=new E($o,ka),Bn=new E(Qi,ka),gi=new E($i/T,Ji/T),li=new E(qo/T,ia/T),Gn=s*Math.PI/180;if(Gn){var Ka=Math.sin(Gn),Aa=Math.cos(Gn),Ii=[Aa,-Ka,Ka,Aa];Ua._matMult(Ii),ao._matMult(Ii),Bn._matMult(Ii),oa._matMult(Ii)}var So=Hn.stretch+Hn.fixed,Sa=Ur.stretch+Ur.fixed;return{tl:Ua,tr:ao,bl:Bn,br:oa,tex:{x:y.paddedRect.x+1+So,y:y.paddedRect.y+1+Sa,w:Kn.stretch+Kn.fixed-So,h:Li.stretch+Li.fixed-Sa},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:gi,pixelOffsetBR:li,minFontScaleX:zt/T/L,minFontScaleY:Mr/T/k,isSDF:u}};if(d&&(y.stretchX||y.stretchY))for(var pr=Ke(U,Me,fe),Tn=Ke(X,Ae,me),$r=0;$r0&&(K=Math.max(10,K),this.circleDiameter=K)}else{var fe=y.top*T-C,me=y.bottom*T+C,Me=y.left*T-C,Ae=y.right*T+C,je=y.collisionPadding;if(je&&(Me-=je[0]*T,fe-=je[1]*T,Ae+=je[2]*T,me+=je[3]*T),L){var Ze=new E(Me,fe),ot=new E(Ae,fe),lt=new E(Me,me),yt=new E(Ae,me),zt=L*Math.PI/180;Ze._rotate(zt),ot._rotate(zt),lt._rotate(zt),yt._rotate(zt),Me=Math.min(Ze.x,ot.x,lt.x,yt.x),Ae=Math.max(Ze.x,ot.x,lt.x,yt.x),fe=Math.min(Ze.y,ot.y,lt.y,yt.y),me=Math.max(Ze.y,ot.y,lt.y,yt.y)}i.emplaceBack(s.x,s.y,Me,fe,Ae,me,u,d,g)}this.boxEndIndex=i.length},q=function(i,s){if(i===void 0&&(i=[]),s===void 0&&(s=ue),this.data=i,this.length=this.data.length,this.compare=s,this.length>0)for(var u=(this.length>>1)-1;u>=0;u--)this._down(u)};function ue(i,s){return is?1:0}function Ee(i,s,u){s===void 0&&(s=1),u===void 0&&(u=!1);for(var d=1/0,g=1/0,y=-1/0,T=-1/0,C=i[0],P=0;Py)&&(y=L.x),(!P||L.y>T)&&(T=L.y)}var k=Math.min(y-d,T-g),U=k/2,X=new q([],Qe);if(k===0)return new E(d,g);for(var K=d;Kme.d||!me.d)&&(me=Ae,u&&console.log("found best %d after %d probes",Math.round(1e4*Ae.d)/1e4,Me)),Ae.max-me.d<=s||(X.push(new Ye(Ae.p.x-(U=Ae.h/2),Ae.p.y-U,U,i)),X.push(new Ye(Ae.p.x+U,Ae.p.y-U,U,i)),X.push(new Ye(Ae.p.x-U,Ae.p.y+U,U,i)),X.push(new Ye(Ae.p.x+U,Ae.p.y+U,U,i)),Me+=4)}return u&&(console.log("num probes: "+Me),console.log("best distance: "+me.d)),me.p}function Qe(i,s){return s.max-i.max}function Ye(i,s,u,d){this.p=new E(i,s),this.h=u,this.d=function(g,y){for(var T=!1,C=1/0,P=0;Pg.y!=fe.y>g.y&&g.x<(fe.x-K.x)*(g.y-K.y)/(fe.y-K.y)+K.x&&(T=!T),C=Math.min(C,$l(g,K,fe))}return(T?1:-1)*Math.sqrt(C)}(this.p,d),this.max=this.d+this.h*Math.SQRT2}q.prototype.push=function(i){this.data.push(i),this.length++,this._up(this.length-1)},q.prototype.pop=function(){if(this.length!==0){var i=this.data[0],s=this.data.pop();return this.length--,this.length>0&&(this.data[0]=s,this._down(0)),i}},q.prototype.peek=function(){return this.data[0]},q.prototype._up=function(i){for(var s=this.data,u=this.compare,d=s[i];i>0;){var g=i-1>>1,y=s[g];if(u(d,y)>=0)break;s[i]=y,i=g}s[i]=d},q.prototype._down=function(i){for(var s=this.data,u=this.compare,d=this.length>>1,g=s[i];i=0)break;s[i]=T,i=y}s[i]=g};var Re=Number.POSITIVE_INFINITY;function De(i,s){return s[1]!==Re?function(u,d,g){var y=0,T=0;switch(d=Math.abs(d),g=Math.abs(g),u){case"top-right":case"top-left":case"top":T=g-7;break;case"bottom-right":case"bottom-left":case"bottom":T=7-g}switch(u){case"top-right":case"bottom-right":case"right":y=-d;break;case"top-left":case"bottom-left":case"left":y=d}return[y,T]}(i,s[0],s[1]):function(u,d){var g=0,y=0;d<0&&(d=0);var T=d/Math.sqrt(2);switch(u){case"top-right":case"top-left":y=T-7;break;case"bottom-right":case"bottom-left":y=7-T;break;case"bottom":y=7-d;break;case"top":y=d-7}switch(u){case"top-right":case"bottom-right":g=-T;break;case"top-left":case"bottom-left":g=T;break;case"left":g=d;break;case"right":g=-d}return[g,y]}(i,s[0])}function Ue(i){switch(i){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function ge(i,s,u,d,g,y,T,C,P,L,k,U,X,K,fe){var me=function(ot,lt,yt,zt,Qt,Mr,cr,kr){for(var pr=zt.layout.get("text-rotate").evaluate(Mr,{})*Math.PI/180,Tn=[],$r=0,Tr=lt.positionedLines;$r32640&&He(i.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):Me.kind==="composite"&&((Ae=[128*K.compositeTextSizes[0].evaluate(T,{},fe),128*K.compositeTextSizes[1].evaluate(T,{},fe)])[0]>32640||Ae[1]>32640)&&He(i.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),i.addSymbols(i.text,me,Ae,C,y,T,L,s,P.lineStartIndex,P.lineLength,X,fe);for(var je=0,Ze=k;je=0;T--)if(d.dist(y[T])0)&&(y.value.kind!=="constant"||y.value.value.length>0),L=C.value.kind!=="constant"||!!C.value.value||Object.keys(C.parameters).length>0,k=g.get("symbol-sort-key");if(this.features=[],P||L){for(var U=s.iconDependencies,X=s.glyphDependencies,K=s.availableImages,fe=new cn(this.zoom),me=0,Me=i;me=0;for(var Pn=0,pn=Qt.sections;Pn=0;C--)y[C]={x:s[C].x,y:s[C].y,tileUnitDistanceFromAnchor:g},C>0&&(g+=s[C-1].dist(s[C]));for(var P=0;P0},gr.prototype.hasIconData=function(){return this.icon.segments.get().length>0},gr.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},gr.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},gr.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},gr.prototype.addIndicesForPlacedSymbol=function(i,s){for(var u=i.placedSymbolArray.get(s),d=u.vertexStartIndex+4*u.numGlyphs,g=u.vertexStartIndex;g1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(i),this.sortedAngle=i,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var u=0,d=this.symbolInstanceIndexes;u=0&&C.indexOf(y)===T&&s.addIndicesForPlacedSymbol(s.text,y)}),g.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,g.verticalPlacedTextSymbolIndex),g.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,g.placedIconSymbolIndex),g.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,g.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},_r("SymbolBucket",gr,{omit:["layers","collisionBoxArray","features","compareText"]}),gr.MAX_GLYPHS=65535,gr.addDynamicAttributes=Ct;var br=new Ci({"symbol-placement":new Rr(te.layout_symbol["symbol-placement"]),"symbol-spacing":new Rr(te.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Rr(te.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new xr(te.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Rr(te.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Rr(te.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Rr(te.layout_symbol["icon-ignore-placement"]),"icon-optional":new Rr(te.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Rr(te.layout_symbol["icon-rotation-alignment"]),"icon-size":new xr(te.layout_symbol["icon-size"]),"icon-text-fit":new Rr(te.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Rr(te.layout_symbol["icon-text-fit-padding"]),"icon-image":new xr(te.layout_symbol["icon-image"]),"icon-rotate":new xr(te.layout_symbol["icon-rotate"]),"icon-padding":new Rr(te.layout_symbol["icon-padding"]),"icon-keep-upright":new Rr(te.layout_symbol["icon-keep-upright"]),"icon-offset":new xr(te.layout_symbol["icon-offset"]),"icon-anchor":new xr(te.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Rr(te.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Rr(te.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Rr(te.layout_symbol["text-rotation-alignment"]),"text-field":new xr(te.layout_symbol["text-field"]),"text-font":new xr(te.layout_symbol["text-font"]),"text-size":new xr(te.layout_symbol["text-size"]),"text-max-width":new xr(te.layout_symbol["text-max-width"]),"text-line-height":new Rr(te.layout_symbol["text-line-height"]),"text-letter-spacing":new xr(te.layout_symbol["text-letter-spacing"]),"text-justify":new xr(te.layout_symbol["text-justify"]),"text-radial-offset":new xr(te.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Rr(te.layout_symbol["text-variable-anchor"]),"text-anchor":new xr(te.layout_symbol["text-anchor"]),"text-max-angle":new Rr(te.layout_symbol["text-max-angle"]),"text-writing-mode":new Rr(te.layout_symbol["text-writing-mode"]),"text-rotate":new xr(te.layout_symbol["text-rotate"]),"text-padding":new Rr(te.layout_symbol["text-padding"]),"text-keep-upright":new Rr(te.layout_symbol["text-keep-upright"]),"text-transform":new xr(te.layout_symbol["text-transform"]),"text-offset":new xr(te.layout_symbol["text-offset"]),"text-allow-overlap":new Rr(te.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Rr(te.layout_symbol["text-ignore-placement"]),"text-optional":new Rr(te.layout_symbol["text-optional"])}),jr={paint:new Ci({"icon-opacity":new xr(te.paint_symbol["icon-opacity"]),"icon-color":new xr(te.paint_symbol["icon-color"]),"icon-halo-color":new xr(te.paint_symbol["icon-halo-color"]),"icon-halo-width":new xr(te.paint_symbol["icon-halo-width"]),"icon-halo-blur":new xr(te.paint_symbol["icon-halo-blur"]),"icon-translate":new Rr(te.paint_symbol["icon-translate"]),"icon-translate-anchor":new Rr(te.paint_symbol["icon-translate-anchor"]),"text-opacity":new xr(te.paint_symbol["text-opacity"]),"text-color":new xr(te.paint_symbol["text-color"],{runtimeType:qt,getOverride:function(i){return i.textColor},hasOverride:function(i){return!!i.textColor}}),"text-halo-color":new xr(te.paint_symbol["text-halo-color"]),"text-halo-width":new xr(te.paint_symbol["text-halo-width"]),"text-halo-blur":new xr(te.paint_symbol["text-halo-blur"]),"text-translate":new Rr(te.paint_symbol["text-translate"]),"text-translate-anchor":new Rr(te.paint_symbol["text-translate-anchor"])}),layout:br},Qr=function(i){this.type=i.property.overrides?i.property.overrides.runtimeType:dr,this.defaultValue=i};Qr.prototype.evaluate=function(i){if(i.formattedSection){var s=this.defaultValue.property.overrides;if(s&&s.hasOverride(i.formattedSection))return s.getOverride(i.formattedSection)}return i.feature&&i.featureState?this.defaultValue.evaluate(i.feature,i.featureState):this.defaultValue.property.specification.default},Qr.prototype.eachChild=function(i){this.defaultValue.isConstant()||i(this.defaultValue.value._styleExpression.expression)},Qr.prototype.outputDefined=function(){return!1},Qr.prototype.serialize=function(){return null},_r("FormatSectionOverride",Qr,{omit:["defaultValue"]});var Yn=function(i){function s(u){i.call(this,u,jr)}return i&&(s.__proto__=i),(s.prototype=Object.create(i&&i.prototype)).constructor=s,s.prototype.recalculate=function(u,d){if(i.prototype.recalculate.call(this,u,d),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var g=this.layout.get("text-writing-mode");if(g){for(var y=[],T=0,C=g;T",targetMapId:d,sourceMapId:y.mapId})}}},Mf.prototype.receive=function(i){var s=i.data,u=s.id;if(u&&(!s.targetMapId||this.mapId===s.targetMapId))if(s.type===""){delete this.tasks[u];var d=this.cancelCallbacks[u];delete this.cancelCallbacks[u],d&&d()}else $t()||s.mustQueue?(this.tasks[u]=s,this.taskQueue.push(u),this.invoker.trigger()):this.processTask(u,s)},Mf.prototype.process=function(){if(this.taskQueue.length){var i=this.taskQueue.shift(),s=this.tasks[i];delete this.tasks[i],this.taskQueue.length&&this.invoker.trigger(),s&&this.processTask(i,s)}},Mf.prototype.processTask=function(i,s){var u=this;if(s.type===""){var d=this.callbacks[i];delete this.callbacks[i],d&&(s.error?d(ai(s.error)):d(null,ai(s.data)))}else{var g=!1,y=mr(this.globalScope)?void 0:[],T=s.hasCallback?function(k,U){g=!0,delete u.cancelCallbacks[i],u.target.postMessage({id:i,type:"",sourceMapId:u.mapId,error:k?sa(k):null,data:sa(U,y)},y)}:function(k){g=!0},C=null,P=ai(s.data);if(this.parent[s.type])C=this.parent[s.type](s.sourceMapId,P,T);else if(this.parent.getWorkerSource){var L=s.type.split(".");C=this.parent.getWorkerSource(s.sourceMapId,L[0],P.source)[L[1]](P,T)}else T(new Error("Could not find function "+s.type));!g&&C&&C.cancel&&(this.cancelCallbacks[i]=C.cancel)}},Mf.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var ko=function(i,s){i&&(s?this.setSouthWest(i).setNorthEast(s):i.length===4?this.setSouthWest([i[0],i[1]]).setNorthEast([i[2],i[3]]):this.setSouthWest(i[0]).setNorthEast(i[1]))};ko.prototype.setNorthEast=function(i){return this._ne=i instanceof Oi?new Oi(i.lng,i.lat):Oi.convert(i),this},ko.prototype.setSouthWest=function(i){return this._sw=i instanceof Oi?new Oi(i.lng,i.lat):Oi.convert(i),this},ko.prototype.extend=function(i){var s,u,d=this._sw,g=this._ne;if(i instanceof Oi)s=i,u=i;else{if(!(i instanceof ko))return Array.isArray(i)?i.length===4||i.every(Array.isArray)?this.extend(ko.convert(i)):this.extend(Oi.convert(i)):this;if(u=i._ne,!(s=i._sw)||!u)return this}return d||g?(d.lng=Math.min(s.lng,d.lng),d.lat=Math.min(s.lat,d.lat),g.lng=Math.max(u.lng,g.lng),g.lat=Math.max(u.lat,g.lat)):(this._sw=new Oi(s.lng,s.lat),this._ne=new Oi(u.lng,u.lat)),this},ko.prototype.getCenter=function(){return new Oi((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},ko.prototype.getSouthWest=function(){return this._sw},ko.prototype.getNorthEast=function(){return this._ne},ko.prototype.getNorthWest=function(){return new Oi(this.getWest(),this.getNorth())},ko.prototype.getSouthEast=function(){return new Oi(this.getEast(),this.getSouth())},ko.prototype.getWest=function(){return this._sw.lng},ko.prototype.getSouth=function(){return this._sw.lat},ko.prototype.getEast=function(){return this._ne.lng},ko.prototype.getNorth=function(){return this._ne.lat},ko.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},ko.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},ko.prototype.isEmpty=function(){return!(this._sw&&this._ne)},ko.prototype.contains=function(i){var s=Oi.convert(i),u=s.lng,d=s.lat,g=this._sw.lng<=u&&u<=this._ne.lng;return this._sw.lng>this._ne.lng&&(g=this._sw.lng>=u&&u>=this._ne.lng),this._sw.lat<=d&&d<=this._ne.lat&&g},ko.convert=function(i){return!i||i instanceof ko?i:new ko(i)};var Oi=function(i,s){if(isNaN(i)||isNaN(s))throw new Error("Invalid LngLat object: ("+i+", "+s+")");if(this.lng=+i,this.lat=+s,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Oi.prototype.wrap=function(){return new Oi(W(this.lng,-180,180),this.lat)},Oi.prototype.toArray=function(){return[this.lng,this.lat]},Oi.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Oi.prototype.distanceTo=function(i){var s=Math.PI/180,u=this.lat*s,d=i.lat*s,g=Math.sin(u)*Math.sin(d)+Math.cos(u)*Math.cos(d)*Math.cos((i.lng-this.lng)*s);return 63710088e-1*Math.acos(Math.min(g,1))},Oi.prototype.toBounds=function(i){i===void 0&&(i=0);var s=360*i/40075017,u=s/Math.cos(Math.PI/180*this.lat);return new ko(new Oi(this.lng-u,this.lat-s),new Oi(this.lng+u,this.lat+s))},Oi.convert=function(i){if(i instanceof Oi)return i;if(Array.isArray(i)&&(i.length===2||i.length===3))return new Oi(Number(i[0]),Number(i[1]));if(!Array.isArray(i)&&typeof i=="object"&&i!==null)return new Oi(Number("lng"in i?i.lng:i.lon),Number(i.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var r4=2*Math.PI*63710088e-1;function n4(i){return r4*Math.cos(i*Math.PI/180)}function i4(i){return(180+i)/360}function o4(i){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i*Math.PI/360)))/360}function a4(i,s){return i/n4(s)}function R_(i){return 360/Math.PI*Math.atan(Math.exp((180-360*i)*Math.PI/180))-90}var Ph=function(i,s,u){u===void 0&&(u=0),this.x=+i,this.y=+s,this.z=+u};Ph.fromLngLat=function(i,s){s===void 0&&(s=0);var u=Oi.convert(i);return new Ph(i4(u.lng),o4(u.lat),a4(s,u.lat))},Ph.prototype.toLngLat=function(){return new Oi(360*this.x-180,R_(this.y))},Ph.prototype.toAltitude=function(){return this.z*n4(R_(this.y))},Ph.prototype.meterInMercatorCoordinateUnits=function(){return 1/r4*(i=R_(this.y),1/Math.cos(i*Math.PI/180));var i};var Oh=function(i,s,u){this.z=i,this.x=s,this.y=u,this.key=Qp(0,i,i,s,u)};Oh.prototype.equals=function(i){return this.z===i.z&&this.x===i.x&&this.y===i.y},Oh.prototype.url=function(i,s){var u,d,g,y,T,C=(d=this.y,g=this.z,y=t4(256*(u=this.x),256*(d=Math.pow(2,g)-d-1),g),T=t4(256*(u+1),256*(d+1),g),y[0]+","+y[1]+","+T[0]+","+T[1]),P=function(L,k,U){for(var X,K="",fe=L;fe>0;fe--)K+=(k&(X=1<this.canonical.z?new Uo(i,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Uo(i,this.wrap,i,this.canonical.x>>s,this.canonical.y>>s)},Uo.prototype.calculateScaledKey=function(i,s){var u=this.canonical.z-i;return i>this.canonical.z?Qp(this.wrap*+s,i,this.canonical.z,this.canonical.x,this.canonical.y):Qp(this.wrap*+s,i,i,this.canonical.x>>u,this.canonical.y>>u)},Uo.prototype.isChildOf=function(i){if(i.wrap!==this.wrap)return!1;var s=this.canonical.z-i.canonical.z;return i.overscaledZ===0||i.overscaledZ>s&&i.canonical.y===this.canonical.y>>s},Uo.prototype.children=function(i){if(this.overscaledZ>=i)return[new Uo(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var s=this.canonical.z+1,u=2*this.canonical.x,d=2*this.canonical.y;return[new Uo(s,this.wrap,s,u,d),new Uo(s,this.wrap,s,u+1,d),new Uo(s,this.wrap,s,u,d+1),new Uo(s,this.wrap,s,u+1,d+1)]},Uo.prototype.isLessThan=function(i){return this.wrapi.wrap)&&(this.overscaledZi.overscaledZ)&&(this.canonical.xi.canonical.x)&&this.canonical.y=this.dim+1||s<-1||s>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(s+1)*this.stride+(i+1)},jc.prototype._unpackMapbox=function(i,s,u){return(256*i*256+256*s+u)/10-1e4},jc.prototype._unpackTerrarium=function(i,s,u){return 256*i+s+u/256-32768},jc.prototype.getPixels=function(){return new ba({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},jc.prototype.backfillBorder=function(i,s,u){if(this.dim!==i.dim)throw new Error("dem dimension mismatch");var d=s*this.dim,g=s*this.dim+this.dim,y=u*this.dim,T=u*this.dim+this.dim;switch(s){case-1:d=g-1;break;case 1:g=d+1}switch(u){case-1:y=T-1;break;case 1:T=y+1}for(var C=-s*this.dim,P=-u*this.dim,L=y;L=0&&k[3]>=0&&C.insert(T,k[0],k[1],k[2],k[3])}},Xc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new ac.VectorTile(new rt(this.rawTileData)).layers,this.sourceLayerCoder=new e0(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Xc.prototype.query=function(i,s,u,d){var g=this;this.loadVTLayers();for(var y=i.params||{},T=8192/i.tileSize/i.scale,C=Vl(y.filter),P=i.queryGeometry,L=i.queryPadding*T,k=u4(P),U=this.grid.query(k.minX-L,k.minY-L,k.maxX+L,k.maxY+L),X=u4(i.cameraQueryGeometry),K=this.grid3D.query(X.minX-L,X.minY-L,X.maxX+L,X.maxY+L,function(ot,lt,yt,zt){return function(Qt,Mr,cr,kr,pr){for(var Tn=0,$r=Qt;Tn<$r.length;Tn+=1){var Tr=$r[Tn];if(Mr<=Tr.x&&cr<=Tr.y&&kr>=Tr.x&&pr>=Tr.y)return!0}var Pn=[new E(Mr,cr),new E(Mr,pr),new E(kr,pr),new E(kr,cr)];if(Qt.length>2){for(var pn=0,Hn=Pn;pn=0)return!0;return!1}(y,U)){var X=this.sourceLayerCoder.decode(u),K=this.vtLayers[X].feature(d);if(g.needGeometry){var fe=Pi(K,!0);if(!g.filter(new cn(this.tileID.overscaledZ),fe,this.tileID.canonical))return}else if(!g.filter(new cn(this.tileID.overscaledZ),K))return;for(var me=this.getId(K,X),Me=0;Med)g=!1;else if(s)if(this.expirationTimeLs&&(i.getActor().send("enforceCacheSizeLimit",Oo),il=0)},o.clamp=N,o.clearTileCache=function(i){var s=A.caches.delete("mapbox-tiles");i&&s.catch(i).then(function(){return i()})},o.clipLine=bl,o.clone=function(i){var s=new On(16);return s[0]=i[0],s[1]=i[1],s[2]=i[2],s[3]=i[3],s[4]=i[4],s[5]=i[5],s[6]=i[6],s[7]=i[7],s[8]=i[8],s[9]=i[9],s[10]=i[10],s[11]=i[11],s[12]=i[12],s[13]=i[13],s[14]=i[14],s[15]=i[15],s},o.clone$1=Te,o.clone$2=function(i){var s=new On(3);return s[0]=i[0],s[1]=i[1],s[2]=i[2],s},o.collisionCircleLayout=B,o.config=qe,o.create=function(){var i=new On(16);return On!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=0,i[12]=0,i[13]=0,i[14]=0),i[0]=1,i[5]=1,i[10]=1,i[15]=1,i},o.create$1=function(){var i=new On(9);return On!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[5]=0,i[6]=0,i[7]=0),i[0]=1,i[4]=1,i[8]=1,i},o.create$2=function(){var i=new On(4);return On!=Float32Array&&(i[1]=0,i[2]=0),i[0]=1,i[3]=1,i},o.createCommonjsModule=p,o.createExpression=Xu,o.createLayout=vo,o.createStyleLayer=function(i){return i.type==="custom"?new Q3(i):new Mu[i.type](i)},o.cross=function(i,s,u){var d=s[0],g=s[1],y=s[2],T=u[0],C=u[1],P=u[2];return i[0]=g*P-y*C,i[1]=y*T-d*P,i[2]=d*C-g*T,i},o.deepEqual=function i(s,u){if(Array.isArray(s)){if(!Array.isArray(u)||s.length!==u.length)return!1;for(var d=0;d0&&(y=1/Math.sqrt(y)),i[0]=s[0]*y,i[1]=s[1]*y,i[2]=s[2]*y,i},o.number=zi,o.offscreenCanvasSupported=du,o.ortho=function(i,s,u,d,g,y,T){var C=1/(s-u),P=1/(d-g),L=1/(y-T);return i[0]=-2*C,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*P,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=2*L,i[11]=0,i[12]=(s+u)*C,i[13]=(g+d)*P,i[14]=(T+y)*L,i[15]=1,i},o.parseGlyphPBF=function(i){return new rt(i).readFields(wt,[])},o.pbf=rt,o.performSymbolLayout=function(i,s,u,d,g,y,T){i.createArrays(),i.tilePixelRatio=8192/(512*i.overscaling),i.compareText={},i.iconsNeedLinear=!1;var C=i.layers[0].layout,P=i.layers[0]._unevaluatedLayout._values,L={};if(i.textSizeData.kind==="composite"){var k=i.textSizeData,U=k.maxZoom;L.compositeTextSizes=[P["text-size"].possiblyEvaluate(new cn(k.minZoom),T),P["text-size"].possiblyEvaluate(new cn(U),T)]}if(i.iconSizeData.kind==="composite"){var X=i.iconSizeData,K=X.maxZoom;L.compositeIconSizes=[P["icon-size"].possiblyEvaluate(new cn(X.minZoom),T),P["icon-size"].possiblyEvaluate(new cn(K),T)]}L.layoutTextSize=P["text-size"].possiblyEvaluate(new cn(i.zoom+1),T),L.layoutIconSize=P["icon-size"].possiblyEvaluate(new cn(i.zoom+1),T),L.textMaxSize=P["text-size"].possiblyEvaluate(new cn(18));for(var fe=24*C.get("text-line-height"),me=C.get("text-rotation-alignment")==="map"&&C.get("symbol-placement")!=="point",Me=C.get("text-keep-upright"),Ae=C.get("text-size"),je=function(){var lt=ot[Ze],yt=C.get("text-font").evaluate(lt,{},T).join(","),zt=Ae.evaluate(lt,{},T),Qt=L.layoutTextSize.evaluate(lt,{},T),Mr=L.layoutIconSize.evaluate(lt,{},T),cr={horizontal:{},vertical:void 0},kr=lt.text,pr=[0,0];if(kr){var Tn=kr.toString(),$r=24*C.get("text-letter-spacing").evaluate(lt,{},T),Tr=function(Bn){for(var gi=0,li=Bn;gi=8192||ld.y<0||ld.y>=8192||function(lo,Pu,g9,B1,L_,p4,c0,cc,h0,ud,f0,p0,D_,d4,cd,m4,_4,g4,v4,y4,qs,d0,x4,hc,v9){var b4,Bh,Vf,Hf,jf,Xf=lo.addToLineVertexArray(Pu,g9),E4=0,T4=0,A4=0,S4=0,B_=-1,F_=-1,Zc={},w4=he(""),N_=0,k_=0;if(cc._unevaluatedLayout.getValue("text-radial-offset")===void 0?(N_=(b4=cc.layout.get("text-offset").evaluate(qs,{},hc).map(function(fd){return 24*fd}))[0],k_=b4[1]):(N_=24*cc.layout.get("text-radial-offset").evaluate(qs,{},hc),k_=Re),lo.allowVerticalPlacement&&B1.vertical){var C4=cc.layout.get("text-rotate").evaluate(qs,{},hc)+90;Hf=new si(h0,Pu,ud,f0,p0,B1.vertical,D_,d4,cd,C4),c0&&(jf=new si(h0,Pu,ud,f0,p0,c0,_4,g4,cd,C4))}if(L_){var U_=cc.layout.get("icon-rotate").evaluate(qs,{}),R4=cc.layout.get("icon-text-fit")!=="none",I4=_e(L_,U_,x4,R4),z_=c0?_e(c0,U_,x4,R4):void 0;Vf=new si(h0,Pu,ud,f0,p0,L_,_4,g4,!1,U_),E4=4*I4.length;var M4=lo.iconSizeData,hd=null;M4.kind==="source"?(hd=[128*cc.layout.get("icon-size").evaluate(qs,{})])[0]>32640&&He(lo.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):M4.kind==="composite"&&((hd=[128*d0.compositeIconSizes[0].evaluate(qs,{},hc),128*d0.compositeIconSizes[1].evaluate(qs,{},hc)])[0]>32640||hd[1]>32640)&&He(lo.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),lo.addSymbols(lo.icon,I4,hd,y4,v4,qs,!1,Pu,Xf.lineStartIndex,Xf.lineLength,-1,hc),B_=lo.icon.placedSymbolArray.length-1,z_&&(T4=4*z_.length,lo.addSymbols(lo.icon,z_,hd,y4,v4,qs,Nr.vertical,Pu,Xf.lineStartIndex,Xf.lineLength,-1,hc),F_=lo.icon.placedSymbolArray.length-1)}for(var P4 in B1.horizontal){var m0=B1.horizontal[P4];if(!Bh){w4=he(m0.text);var y9=cc.layout.get("text-rotate").evaluate(qs,{},hc);Bh=new si(h0,Pu,ud,f0,p0,m0,D_,d4,cd,y9)}var O4=m0.positionedLines.length===1;if(A4+=ge(lo,Pu,m0,p4,cc,cd,qs,m4,Xf,B1.vertical?Nr.horizontal:Nr.horizontalOnly,O4?Object.keys(B1.horizontal):[P4],Zc,B_,d0,hc),O4)break}B1.vertical&&(S4+=ge(lo,Pu,B1.vertical,p4,cc,cd,qs,m4,Xf,Nr.vertical,["vertical"],Zc,F_,d0,hc));var x9=Bh?Bh.boxStartIndex:lo.collisionBoxArray.length,b9=Bh?Bh.boxEndIndex:lo.collisionBoxArray.length,E9=Hf?Hf.boxStartIndex:lo.collisionBoxArray.length,T9=Hf?Hf.boxEndIndex:lo.collisionBoxArray.length,A9=Vf?Vf.boxStartIndex:lo.collisionBoxArray.length,S9=Vf?Vf.boxEndIndex:lo.collisionBoxArray.length,w9=jf?jf.boxStartIndex:lo.collisionBoxArray.length,C9=jf?jf.boxEndIndex:lo.collisionBoxArray.length,fc=-1,_0=function(fd,D4){return fd&&fd.circleDiameter?Math.max(fd.circleDiameter,D4):D4};fc=_0(Bh,fc),fc=_0(Hf,fc),fc=_0(Vf,fc);var L4=(fc=_0(jf,fc))>-1?1:0;L4&&(fc*=v9/24),lo.glyphOffsetArray.length>=gr.MAX_GLYPHS&&He("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),qs.sortKey!==void 0&&lo.addToSortKeyRanges(lo.symbolInstances.length,qs.sortKey),lo.symbolInstances.emplaceBack(Pu.x,Pu.y,Zc.right>=0?Zc.right:-1,Zc.center>=0?Zc.center:-1,Zc.left>=0?Zc.left:-1,Zc.vertical||-1,B_,F_,w4,x9,b9,E9,T9,A9,S9,w9,C9,ud,A4,S4,E4,T4,L4,0,D_,N_,k_,fc)}(Bn,ld,_9,li,Gn,Ka,lc,Bn.layers[0],Bn.collisionBoxArray,gi.index,gi.sourceLayerIndex,Bn.index,Lh,r0,n0,Sa,Wc,Bf,i0,uc,gi,Aa,Qn,sc,Ii)};if(Gc==="line")for(var Nf=0,o0=bl(gi.geometry,0,0,8192,8192);Nf1){var l0=Vn(od,Jp,li.vertical||Ql,Gn,24,Lf);l0&&D1(od,l0)}}else if(gi.type==="Polygon")for(var kf=0,u0=Cf(gi.geometry,0);kf=Ln.maxzoom||Ln.visibility!=="none"&&(A(xn,this.zoom,Z),(ht[Ln.id]=Ln.createBucket({index:te.bucketLayerIDs.length,layers:xn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:or,sourceID:this.source})).populate(Gt,Rt,this.tileID.canonical),te.bucketLayerIDs.push(xn.map(function(zn){return zn.id})))}}}var sn=o.mapObject(Rt.glyphDependencies,function(zn){return Object.keys(zn).map(Number)});Object.keys(sn).length?oe.send("getGlyphs",{uid:this.uid,stacks:sn},function(zn,ln){ye||(ye=zn,We=ln,ri.call(Oe))}):We={};var Gi=Object.keys(Rt.iconDependencies);Gi.length?oe.send("getImages",{icons:Gi,source:this.source,tileID:this.tileID,type:"icons"},function(zn,ln){ye||(ye=zn,mt=ln,ri.call(Oe))}):mt={};var In=Object.keys(Rt.patternDependencies);function ri(){if(ye)return de(ye);if(We&&mt&&Lt){var zn=new E(We),ln=new o.ImageAtlas(mt,Lt);for(var bn in ht){var jo=ht[bn];jo instanceof o.SymbolBucket?(A(jo.layers,this.zoom,Z),o.performSymbolLayout(jo,We,zn.positions,mt,ln.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):jo.hasPattern&&(jo instanceof o.LineBucket||jo instanceof o.FillBucket||jo instanceof o.FillExtrusionBucket)&&(A(jo.layers,this.zoom,Z),jo.addFeatures(Rt,this.tileID.canonical,ln.patternPositions))}this.status="done",de(null,{buckets:o.values(ht).filter(function(Rl){return!Rl.isEmpty()}),featureIndex:te,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:zn.image,imageAtlas:ln,glyphMap:this.returnDependencies?We:null,iconMap:this.returnDependencies?mt:null,glyphPositions:this.returnDependencies?zn.positions:null})}}In.length?oe.send("getImages",{icons:In,source:this.source,tileID:this.tileID,type:"patterns"},function(zn,ln){ye||(ye=zn,Lt=ln,ri.call(Oe))}):Lt={},ri.call(this)};var O=function(z,j,Z,oe){this.actor=z,this.layerIndex=j,this.availableImages=Z,this.loadVectorData=oe||R,this.loading={},this.loaded={}};O.prototype.loadTile=function(z,j){var Z=this,oe=z.uid;this.loading||(this.loading={});var de=!!(z&&z.request&&z.request.collectResourceTiming)&&new o.RequestPerformance(z.request),Oe=this.loading[oe]=new b(z);Oe.abort=this.loadVectorData(z,function(Ne,te){if(delete Z.loading[oe],Ne||!te)return Oe.status="done",Z.loaded[oe]=Oe,j(Ne);var ye=te.rawData,We={};te.expires&&(We.expires=te.expires),te.cacheControl&&(We.cacheControl=te.cacheControl);var mt={};if(de){var Lt=de.finish();Lt&&(mt.resourceTiming=JSON.parse(JSON.stringify(Lt)))}Oe.vectorTile=te.vectorTile,Oe.parse(te.vectorTile,Z.layerIndex,Z.availableImages,Z.actor,function(ht,Rt){if(ht||!Rt)return j(ht);j(null,o.extend({rawTileData:ye.slice(0)},Rt,We,mt))}),Z.loaded=Z.loaded||{},Z.loaded[oe]=Oe})},O.prototype.reloadTile=function(z,j){var Z=this,oe=this.loaded,de=z.uid,Oe=this;if(oe&&oe[de]){var Ne=oe[de];Ne.showCollisionBoxes=z.showCollisionBoxes;var te=function(ye,We){var mt=Ne.reloadCallback;mt&&(delete Ne.reloadCallback,Ne.parse(Ne.vectorTile,Oe.layerIndex,Z.availableImages,Oe.actor,mt)),j(ye,We)};Ne.status==="parsing"?Ne.reloadCallback=te:Ne.status==="done"&&(Ne.vectorTile?Ne.parse(Ne.vectorTile,this.layerIndex,this.availableImages,this.actor,te):te())}},O.prototype.abortTile=function(z,j){var Z=this.loading,oe=z.uid;Z&&Z[oe]&&Z[oe].abort&&(Z[oe].abort(),delete Z[oe]),j()},O.prototype.removeTile=function(z,j){var Z=this.loaded,oe=z.uid;Z&&Z[oe]&&delete Z[oe],j()};var D=o.window.ImageBitmap,N=function(){this.loaded={}};function W(z,j){if(z.length!==0){G(z[0],j);for(var Z=1;Z=Math.abs(te)?Z-ye+te:te-ye+Z,Z=ye}Z+oe>=0!=!!j&&z.reverse()}N.prototype.loadTile=function(z,j){var Z=z.uid,oe=z.encoding,de=z.rawImageData,Oe=D&&de instanceof D?this.getImageData(de):de,Ne=new o.DEMData(Z,Oe,oe);this.loaded=this.loaded||{},this.loaded[Z]=Ne,j(null,Ne)},N.prototype.getImageData=function(z){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(z.width,z.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=z.width,this.offscreenCanvas.height=z.height,this.offscreenCanvasContext.drawImage(z,0,0,z.width,z.height);var j=this.offscreenCanvasContext.getImageData(-1,-1,z.width+2,z.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new o.RGBAImage({width:j.width,height:j.height},j.data)},N.prototype.removeTile=function(z){var j=this.loaded,Z=z.uid;j&&j[Z]&&delete j[Z]};var Y=o.vectorTile.VectorTileFeature.prototype.toGeoJSON,Q=function(z){this._feature=z,this.extent=o.EXTENT,this.type=z.type,this.properties=z.tags,"id"in z&&!isNaN(z.id)&&(this.id=parseInt(z.id,10))};Q.prototype.loadGeometry=function(){if(this._feature.type===1){for(var z=[],j=0,Z=this._feature.geometry;j>31}function Or(z,j){for(var Z=z.loadGeometry(),oe=z.type,de=0,Oe=0,Ne=Z.length,te=0;te>1;(function or(Gt,qt,an,rr,wn,ti){for(;wn>rr;){if(wn-rr>600){var xn=wn-rr+1,Ln=an-rr+1,sn=Math.log(xn),Gi=.5*Math.exp(2*sn/3),In=.5*Math.sqrt(sn*Gi*(xn-Gi)/xn)*(Ln-xn/2<0?-1:1);or(Gt,qt,an,Math.max(rr,Math.floor(an-Ln*Gi/xn+In)),Math.min(wn,Math.floor(an+(xn-Ln)*Gi/xn+In)),ti)}var ri=qt[2*an+ti],zn=rr,ln=wn;for(yr(Gt,qt,rr,an),qt[2*wn+ti]>ri&&yr(Gt,qt,rr,wn);znri;)ln--}qt[2*rr+ti]===ri?yr(Gt,qt,rr,ln):yr(Gt,qt,++ln,wn),ln<=an&&(rr=ln+1),an<=ln&&(wn=ln-1)}})(mt,Lt,pt,Rt,vr,dr%2),We(mt,Lt,ht,Rt,pt-1,dr+1),We(mt,Lt,ht,pt+1,vr,dr+1)}})(Ne,te,oe,0,Ne.length-1,0)};nn.prototype.range=function(z,j,Z,oe){return function(de,Oe,Ne,te,ye,We,mt){for(var Lt,ht,Rt=[0,de.length-1,0],vr=[];Rt.length;){var dr=Rt.pop(),pt=Rt.pop(),or=Rt.pop();if(pt-or<=mt)for(var Gt=or;Gt<=pt;Gt++)ht=Oe[2*Gt+1],(Lt=Oe[2*Gt])>=Ne&&Lt<=ye&&ht>=te&&ht<=We&&vr.push(de[Gt]);else{var qt=Math.floor((or+pt)/2);ht=Oe[2*qt+1],(Lt=Oe[2*qt])>=Ne&&Lt<=ye&&ht>=te&&ht<=We&&vr.push(de[qt]);var an=(dr+1)%2;(dr===0?Ne<=Lt:te<=ht)&&(Rt.push(or),Rt.push(qt-1),Rt.push(an)),(dr===0?ye>=Lt:We>=ht)&&(Rt.push(qt+1),Rt.push(pt),Rt.push(an))}}return vr}(this.ids,this.coords,z,j,Z,oe,this.nodeSize)},nn.prototype.within=function(z,j,Z){return function(oe,de,Oe,Ne,te,ye){for(var We=[0,oe.length-1,0],mt=[],Lt=te*te;We.length;){var ht=We.pop(),Rt=We.pop(),vr=We.pop();if(Rt-vr<=ye)for(var dr=vr;dr<=Rt;dr++)Jr(de[2*dr],de[2*dr+1],Oe,Ne)<=Lt&&mt.push(oe[dr]);else{var pt=Math.floor((vr+Rt)/2),or=de[2*pt],Gt=de[2*pt+1];Jr(or,Gt,Oe,Ne)<=Lt&&mt.push(oe[pt]);var qt=(ht+1)%2;(ht===0?Oe-te<=or:Ne-te<=Gt)&&(We.push(vr),We.push(pt-1),We.push(qt)),(ht===0?Oe+te>=or:Ne+te>=Gt)&&(We.push(pt+1),We.push(Rt),We.push(qt))}}return mt}(this.ids,this.coords,z,j,Z,this.nodeSize)};var Yi={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(z){return z}},An=function(z){this.options=on(Object.create(Yi),z),this.trees=new Array(this.options.maxZoom+1)};function Ni(z,j,Z,oe,de){return{x:z,y:j,zoom:1/0,id:Z,parentId:-1,numPoints:oe,properties:de}}function qe(z,j){var Z=z.geometry.coordinates,oe=Z[1];return{x:St(Z[0]),y:Er(oe),zoom:1/0,index:j,parentId:-1}}function Yt(z){return{type:"Feature",id:z.id,properties:wr(z),geometry:{type:"Point",coordinates:[(oe=z.x,360*(oe-.5)),(j=z.y,Z=(180-360*j)*Math.PI/180,360*Math.atan(Math.exp(Z))/Math.PI-90)]}};var j,Z,oe}function wr(z){var j=z.numPoints,Z=j>=1e4?Math.round(j/1e3)+"k":j>=1e3?Math.round(j/100)/10+"k":j;return on(on({},z.properties),{cluster:!0,cluster_id:z.id,point_count:j,point_count_abbreviated:Z})}function St(z){return z/360+.5}function Er(z){var j=Math.sin(z*Math.PI/180),Z=.5-.25*Math.log((1+j)/(1-j))/Math.PI;return Z<0?0:Z>1?1:Z}function on(z,j){for(var Z in j)z[Z]=j[Z];return z}function yn(z){return z.x}function tn(z){return z.y}function Kr(z,j,Z,oe,de,Oe){var Ne=de-Z,te=Oe-oe;if(Ne!==0||te!==0){var ye=((z-Z)*Ne+(j-oe)*te)/(Ne*Ne+te*te);ye>1?(Z=de,oe=Oe):ye>0&&(Z+=Ne*ye,oe+=te*ye)}return(Ne=z-Z)*Ne+(te=j-oe)*te}function Sn(z,j,Z,oe){var de={id:z===void 0?null:z,type:j,geometry:Z,tags:oe,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Oe){var Ne=Oe.geometry,te=Oe.type;if(te==="Point"||te==="MultiPoint"||te==="LineString")eo(Oe,Ne);else if(te==="Polygon"||te==="MultiLineString")for(var ye=0;ye0&&(Ne+=oe?(de*We-ye*Oe)/2:Math.sqrt(Math.pow(ye-de,2)+Math.pow(We-Oe,2))),de=ye,Oe=We}var mt=j.length-3;j[2]=1,function Lt(ht,Rt,vr,dr){for(var pt,or=dr,Gt=vr-Rt>>1,qt=vr-Rt,an=ht[Rt],rr=ht[Rt+1],wn=ht[vr],ti=ht[vr+1],xn=Rt+3;xnor)pt=xn,or=Ln;else if(Ln===or){var sn=Math.abs(xn-Gt);sndr&&(pt-Rt>3&&Lt(ht,Rt,pt,dr),ht[pt+2]=or,vr-pt>3&&Lt(ht,pt,vr,dr))}(j,0,mt,Z),j[mt+2]=1,j.size=Math.abs(Ne),j.start=0,j.end=j.size}function le(z,j,Z,oe){for(var de=0;de1?1:Z}function Mo(z,j,Z,oe,de,Oe,Ne,te){if(oe/=j,Oe>=(Z/=j)&&Ne=oe)return null;for(var ye=[],We=0;We=Z&&vr=oe)){var dr=[];if(ht==="Point"||ht==="MultiPoint")vs(Lt,dr,Z,oe,de);else if(ht==="LineString")ci(Lt,dr,Z,oe,de,!1,te.lineMetrics);else if(ht==="MultiLineString")ga(Lt,dr,Z,oe,de,!1);else if(ht==="Polygon")ga(Lt,dr,Z,oe,de,!0);else if(ht==="MultiPolygon")for(var pt=0;pt=Z&&Ne<=oe&&(j.push(z[Oe]),j.push(z[Oe+1]),j.push(z[Oe+2]))}}function ci(z,j,Z,oe,de,Oe,Ne){for(var te,ye,We=Po(z),mt=de===0?Ls:Wi,Lt=z.start,ht=0;htZ&&(ye=mt(We,Rt,vr,pt,or,Z),Ne&&(We.start=Lt+te*ye)):Gt>oe?qt=Z&&(ye=mt(We,Rt,vr,pt,or,Z),an=!0),qt>oe&&Gt<=oe&&(ye=mt(We,Rt,vr,pt,or,oe),an=!0),!Oe&&an&&(Ne&&(We.end=Lt+te*ye),j.push(We),We=Po(z)),Ne&&(Lt+=te)}var rr=z.length-3;Rt=z[rr],vr=z[rr+1],dr=z[rr+2],(Gt=de===0?Rt:vr)>=Z&&Gt<=oe&&Oo(We,Rt,vr,dr),rr=We.length-3,Oe&&rr>=3&&(We[rr]!==We[0]||We[rr+1]!==We[1])&&Oo(We,We[0],We[1],We[2]),We.length&&j.push(We)}function Po(z){var j=[];return j.size=z.size,j.start=z.start,j.end=z.end,j}function ga(z,j,Z,oe,de,Oe){for(var Ne=0;NeNe.maxX&&(Ne.maxX=mt),Lt>Ne.maxY&&(Ne.maxY=Lt)}return Ne}function Vu(z,j,Z,oe){var de=j.geometry,Oe=j.type,Ne=[];if(Oe==="Point"||Oe==="MultiPoint")for(var te=0;te0&&j.size<(de?Ne:oe))Z.numPoints+=j.length/3;else{for(var te=[],ye=0;yeNe)&&(Z.numSimplified++,te.push(j[ye]),te.push(j[ye+1])),Z.numPoints++;de&&function(We,mt){for(var Lt=0,ht=0,Rt=We.length,vr=Rt-2;ht0===mt)for(ht=0,Rt=We.length;ht24)throw new Error("maxZoom should be in the 0-24 range");if(j.promoteId&&j.generateId)throw new Error("promoteId and generateId cannot be used together.");var oe=function(de,Oe){var Ne=[];if(de.type==="FeatureCollection")for(var te=0;te=oe;We--){var mt=+Date.now();te=this._cluster(te,We),this.trees[We]=new nn(te,yn,tn,Oe,Float32Array),Z&&console.log("z%d: %d clusters in %dms",We,te.length,+Date.now()-mt)}return Z&&console.timeEnd("total time"),this},An.prototype.getClusters=function(z,j){var Z=((z[0]+180)%360+360)%360-180,oe=Math.max(-90,Math.min(90,z[1])),de=z[2]===180?180:((z[2]+180)%360+360)%360-180,Oe=Math.max(-90,Math.min(90,z[3]));if(z[2]-z[0]>=360)Z=-180,de=180;else if(Z>de){var Ne=this.getClusters([Z,oe,180,Oe],j),te=this.getClusters([-180,oe,de,Oe],j);return Ne.concat(te)}for(var ye=this.trees[this._limitZoom(j)],We=[],mt=0,Lt=ye.range(St(Z),Er(Oe),St(de),Er(oe));mtj&&(ht+=dr.numPoints||1)}if(ht>=Oe){for(var pt=ye.x*Lt,or=ye.y*Lt,Gt=de&&Lt>1?this._map(ye,!0):null,qt=(te<<5)+(j+1)+this.points.length,an=0,rr=mt;an1)for(var xn=0,Ln=mt;xn>5},An.prototype._getOriginZoom=function(z){return(z-this.points.length)%32},An.prototype._map=function(z,j){if(z.numPoints)return j?on({},z.properties):z.properties;var Z=this.points[z.index].properties,oe=this.options.map(Z);return j&&oe===Z?on({},oe):oe},ja.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ja.prototype.splitTile=function(z,j,Z,oe,de,Oe,Ne){for(var te=[z,j,Z,oe],ye=this.options,We=ye.debug;te.length;){oe=te.pop(),Z=te.pop(),j=te.pop(),z=te.pop();var mt=1<1&&console.time("creation"),ht=this.tiles[Lt]=ol(z,j,Z,oe,ye),this.tileCoords.push({z:j,x:Z,y:oe}),We)){We>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",j,Z,oe,ht.numFeatures,ht.numPoints,ht.numSimplified),console.timeEnd("creation"));var Rt="z"+j;this.stats[Rt]=(this.stats[Rt]||0)+1,this.total++}if(ht.source=z,de){if(j===ye.maxZoom||j===de)continue;var vr=1<1&&console.time("clipping");var dr,pt,or,Gt,qt,an,rr=.5*ye.buffer/ye.extent,wn=.5-rr,ti=.5+rr,xn=1+rr;dr=pt=or=Gt=null,qt=Mo(z,mt,Z-rr,Z+ti,0,ht.minX,ht.maxX,ye),an=Mo(z,mt,Z+wn,Z+xn,0,ht.minX,ht.maxX,ye),z=null,qt&&(dr=Mo(qt,mt,oe-rr,oe+ti,1,ht.minY,ht.maxY,ye),pt=Mo(qt,mt,oe+wn,oe+xn,1,ht.minY,ht.maxY,ye),qt=null),an&&(or=Mo(an,mt,oe-rr,oe+ti,1,ht.minY,ht.maxY,ye),Gt=Mo(an,mt,oe+wn,oe+xn,1,ht.minY,ht.maxY,ye),an=null),We>1&&console.timeEnd("clipping"),te.push(dr||[],j+1,2*Z,2*oe),te.push(pt||[],j+1,2*Z,2*oe+1),te.push(or||[],j+1,2*Z+1,2*oe),te.push(Gt||[],j+1,2*Z+1,2*oe+1)}}},ja.prototype.getTile=function(z,j,Z){var oe=this.options,de=oe.extent,Oe=oe.debug;if(z<0||z>24)return null;var Ne=1<1&&console.log("drilling down to z%d-%d-%d",z,j,Z);for(var ye,We=z,mt=j,Lt=Z;!ye&&We>0;)We--,mt=Math.floor(mt/2),Lt=Math.floor(Lt/2),ye=this.tiles[Xa(We,mt,Lt)];return ye&&ye.source?(Oe>1&&console.log("found parent tile z%d-%d-%d",We,mt,Lt),Oe>1&&console.time("drilling down"),this.splitTile(ye.source,We,mt,Lt,z,j,Z),Oe>1&&console.timeEnd("drilling down"),this.tiles[te]?il(this.tiles[te],de):null):null};var mu=function(z){function j(Z,oe,de,Oe){z.call(this,Z,oe,de,Ds),Oe&&(this.loadGeoJSON=Oe)}return z&&(j.__proto__=z),(j.prototype=Object.create(z&&z.prototype)).constructor=j,j.prototype.loadData=function(Z,oe){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=oe,this._pendingLoadDataParams=Z,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},j.prototype._loadData=function(){var Z=this;if(this._pendingCallback&&this._pendingLoadDataParams){var oe=this._pendingCallback,de=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Oe=!!(de&&de.request&&de.request.collectResourceTiming)&&new o.RequestPerformance(de.request);this.loadGeoJSON(de,function(Ne,te){if(Ne||!te)return oe(Ne);if(typeof te!="object")return oe(new Error("Input data given to '"+de.source+"' is not a valid GeoJSON object."));(function ht(Rt,vr){var dr,pt=Rt&&Rt.type;if(pt==="FeatureCollection")for(dr=0;dr"u"||typeof document>"u"?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var w,M,F=new Blob([""],{type:"text/javascript"}),V=URL.createObjectURL(F);try{M=new Worker(V),w=!0}catch{w=!1}return M&&M.terminate(),URL.revokeObjectURL(V),w}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var w=document.createElement("canvas");w.width=w.height=1;var M=w.getContext("2d");if(!M)return!1;var F=M.getImageData(0,0,1,1);return F&&F.width===w.width}()?(_[S=x&&x.failIfMajorPerformanceCaveat]===void 0&&(_[S]=function(w){var M=function(V){var ee=document.createElement("canvas"),re=Object.create(f.webGLContextAttributes);return re.failIfMajorPerformanceCaveat=V,ee.probablySupportsContext?ee.probablySupportsContext("webgl",re)||ee.probablySupportsContext("experimental-webgl",re):ee.supportsContext?ee.supportsContext("webgl",re)||ee.supportsContext("experimental-webgl",re):ee.getContext("webgl",re)||ee.getContext("experimental-webgl",re)}(w);if(!M)return!1;var F=M.createShader(M.VERTEX_SHADER);return!(!F||M.isContextLost())&&(M.shaderSource(F,"void main() {}"),M.compileShader(F),M.getShaderParameter(F,M.COMPILE_STATUS)===!0)}(S)),_[S]?void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var S}c.exports?c.exports=f:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=f,window.mapboxgl.notSupportedReason=h);var _={};f.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}}),m={create:function(c,f,h){var _=o.window.document.createElement(c);return f!==void 0&&(_.className=f),h&&h.appendChild(_),_},createNS:function(c,f){return o.window.document.createElementNS(c,f)}},v=o.window.document&&o.window.document.documentElement.style;function E(c){if(!v)return c[0];for(var f=0;f=0?0:c.button},m.remove=function(c){c.parentNode&&c.parentNode.removeChild(c)};var G=function(c){function f(){c.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new o.RGBAImage({width:1,height:1}),this.dirty=!0}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f.prototype.isLoaded=function(){return this.loaded},f.prototype.setLoaded=function(h){if(this.loaded!==h&&(this.loaded=h,h)){for(var _=0,x=this.requestors;_=0?1.2:1))}function ce(c,f,h,_,x,S,w){for(var M=0;M65535)F(new Error("glyphs > 65535 not supported"));else if(re.ranges[ve])F(null,{stack:V,id:ee,glyph:ne});else{var pe=re.requests[ve];pe||(pe=re.requests[ve]=[],ct.loadGlyphRange(V,ve,h.url,h.requestManager,function(Ce,he){if(he){for(var we in he)h._doesCharSupportLocalGlyph(+we)||(re.glyphs[+we]=he[+we]);re.ranges[ve]=!0}for(var Be=0,Ge=pe;Be1&&(M=c[++w]);var V=Math.abs(F-M.left),ee=Math.abs(F-M.right),re=Math.min(V,ee),ne=void 0,ve=x/h*(_+1);if(M.isDash){var pe=_-Math.abs(ve);ne=Math.sqrt(re*re+pe*pe)}else ne=_-Math.sqrt(re*re+ve*ve);this.data[S+F]=Math.max(0,Math.min(255,ne+128))}},He.prototype.addRegularDash=function(c){for(var f=c.length-1;f>=0;--f){var h=c[f],_=c[f+1];h.zeroLength?c.splice(f,1):_&&_.isDash===h.isDash&&(_.left=h.left,c.splice(f,1))}var x=c[0],S=c[c.length-1];x.isDash===S.isDash&&(x.left=S.left-this.width,S.right=x.right+this.width);for(var w=this.width*this.nextRow,M=0,F=c[M],V=0;V1&&(F=c[++M]);var ee=Math.abs(V-F.left),re=Math.abs(V-F.right),ne=Math.min(ee,re);this.data[w+V]=Math.max(0,Math.min(255,(F.isDash?ne:-ne)+128))}},He.prototype.addDash=function(c,f){var h=f?7:0,_=2*h+1;if(this.nextRow+_>this.height)return o.warnOnce("LineAtlas out of space"),null;for(var x=0,S=0;S=h&&c.x=_&&c.y0&&(V[new o.OverscaledTileID(h.overscaledZ,w,_.z,S,_.y-1).key]={backfilled:!1},V[new o.OverscaledTileID(h.overscaledZ,h.wrap,_.z,_.x,_.y-1).key]={backfilled:!1},V[new o.OverscaledTileID(h.overscaledZ,F,_.z,M,_.y-1).key]={backfilled:!1}),_.y+10&&(x.resourceTiming=h._resourceTiming,h._resourceTiming=[]),h.fire(new o.Event("data",x))}})},f.prototype.onAdd=function(h){this.map=h,this.load()},f.prototype.setData=function(h){var _=this;return this._data=h,this.fire(new o.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(x){if(x)_.fire(new o.ErrorEvent(x));else{var S={dataType:"source",sourceDataType:"content"};_._collectResourceTiming&&_._resourceTiming&&_._resourceTiming.length>0&&(S.resourceTiming=_._resourceTiming,_._resourceTiming=[]),_.fire(new o.Event("data",S))}}),this},f.prototype.getClusterExpansionZoom=function(h,_){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:h,source:this.id},_),this},f.prototype.getClusterChildren=function(h,_){return this.actor.send("geojson.getClusterChildren",{clusterId:h,source:this.id},_),this},f.prototype.getClusterLeaves=function(h,_,x,S){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:h,limit:_,offset:x},S),this},f.prototype._updateWorkerData=function(h){var _=this;this._loaded=!1;var x=o.extend({},this.workerOptions),S=this._data;typeof S=="string"?(x.request=this.map._requestManager.transformRequest(o.browser.resolveURL(S),o.ResourceType.Source),x.request.collectResourceTiming=this._collectResourceTiming):x.data=JSON.stringify(S),this.actor.send(this.type+".loadData",x,function(w,M){_._removed||M&&M.abandoned||(_._loaded=!0,M&&M.resourceTiming&&M.resourceTiming[_.id]&&(_._resourceTiming=M.resourceTiming[_.id].slice(0)),_.actor.send(_.type+".coalesce",{source:x.source},null),h(w))})},f.prototype.loaded=function(){return this._loaded},f.prototype.loadTile=function(h,_){var x=this,S=h.actor?"reloadTile":"loadTile";h.actor=this.actor,h.request=this.actor.send(S,{type:this.type,uid:h.uid,tileID:h.tileID,zoom:h.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:o.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(w,M){return delete h.request,h.unloadVectorData(),h.aborted?_(null):w?_(w):(h.loadVectorData(M,x.map.painter,S==="reloadTile"),_(null))})},f.prototype.abortTile=function(h){h.request&&(h.request.cancel(),delete h.request),h.aborted=!0},f.prototype.unloadTile=function(h){h.unloadVectorData(),this.actor.send("removeTile",{uid:h.uid,type:this.type,source:this.id})},f.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},f.prototype.serialize=function(){return o.extend({},this._options,{type:this.type,data:this._data})},f.prototype.hasTransition=function(){return!1},f}(o.Evented),Yr=o.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Jr=function(c){function f(h,_,x,S){c.call(this),this.id=h,this.dispatcher=x,this.coordinates=_.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(S),this.options=_}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f.prototype.load=function(h,_){var x=this;this._loaded=!1,this.fire(new o.Event("dataloading",{dataType:"source"})),this.url=this.options.url,o.getImage(this.map._requestManager.transformRequest(this.url,o.ResourceType.Image),function(S,w){x._loaded=!0,S?x.fire(new o.ErrorEvent(S)):w&&(x.image=w,h&&(x.coordinates=h),_&&_(),x._finishLoading())})},f.prototype.loaded=function(){return this._loaded},f.prototype.updateImage=function(h){var _=this;return this.image&&h.url?(this.options.url=h.url,this.load(h.coordinates,function(){_.texture=null}),this):this},f.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new o.Event("data",{dataType:"source",sourceDataType:"metadata"})))},f.prototype.onAdd=function(h){this.map=h,this.load()},f.prototype.setCoordinates=function(h){var _=this;this.coordinates=h;var x=h.map(o.MercatorCoordinate.fromLngLat);this.tileID=function(w){for(var M=1/0,F=1/0,V=-1/0,ee=-1/0,re=0,ne=w;re_.end(0)?this.fire(new o.ErrorEvent(new o.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+_.start(0)+" and "+_.end(0)+"-second mark."))):this.video.currentTime=h}},f.prototype.getVideo=function(){return this.video},f.prototype.onAdd=function(h){this.map||(this.map=h,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},f.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var h=this.map.painter.context,_=h.gl;for(var x in this.boundsBuffer||(this.boundsBuffer=h.createVertexBuffer(this._boundsArray,Yr.members)),this.boundsSegments||(this.boundsSegments=o.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(_.LINEAR,_.CLAMP_TO_EDGE),_.texSubImage2D(_.TEXTURE_2D,0,0,0,_.RGBA,_.UNSIGNED_BYTE,this.video)):(this.texture=new o.Texture(h,this.video,_.RGBA),this.texture.bind(_.LINEAR,_.CLAMP_TO_EDGE)),this.tiles){var S=this.tiles[x];S.state!=="loaded"&&(S.state="loaded",S.texture=this.texture)}}},f.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},f.prototype.hasTransition=function(){return this.video&&!this.video.paused},f}(Jr),Rn=function(c){function f(h,_,x,S){c.call(this,h,_,x,S),_.coordinates?Array.isArray(_.coordinates)&&_.coordinates.length===4&&!_.coordinates.some(function(w){return!Array.isArray(w)||w.length!==2||w.some(function(M){return typeof M!="number"})})||this.fire(new o.ErrorEvent(new o.ValidationError("sources."+h,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new o.ErrorEvent(new o.ValidationError("sources."+h,null,'missing required property "coordinates"'))),_.animate&&typeof _.animate!="boolean"&&this.fire(new o.ErrorEvent(new o.ValidationError("sources."+h,null,'optional "animate" property must be a boolean value'))),_.canvas?typeof _.canvas=="string"||_.canvas instanceof o.window.HTMLCanvasElement||this.fire(new o.ErrorEvent(new o.ValidationError("sources."+h,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new o.ErrorEvent(new o.ValidationError("sources."+h,null,'missing required property "canvas"'))),this.options=_,this.animate=_.animate===void 0||_.animate}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof o.window.HTMLCanvasElement?this.options.canvas:o.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new o.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},f.prototype.getCanvas=function(){return this.canvas},f.prototype.onAdd=function(h){this.map=h,this.load(),this.canvas&&this.animate&&this.play()},f.prototype.onRemove=function(){this.pause()},f.prototype.prepare=function(){var h=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,h=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,h=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var _=this.map.painter.context,x=_.gl;for(var S in this.boundsBuffer||(this.boundsBuffer=_.createVertexBuffer(this._boundsArray,Yr.members)),this.boundsSegments||(this.boundsSegments=o.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(h||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new o.Texture(_,this.canvas,x.RGBA,{premultiply:!0}),this.tiles){var w=this.tiles[S];w.state!=="loaded"&&(w.state="loaded",w.texture=this.texture)}}},f.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},f.prototype.hasTransition=function(){return this._playing},f.prototype._hasInvalidDimensions=function(){for(var h=0,_=[this.canvas.width,this.canvas.height];h<_.length;h+=1){var x=_[h];if(isNaN(x)||x<=0)return!0}return!1},f}(Jr),nn={vector:Ht,raster:Or,"raster-dem":mr,geojson:yr,video:vn,image:Jr,canvas:Rn};function Yi(c,f){var h=o.identity([]);return o.translate(h,h,[1,1,0]),o.scale(h,h,[.5*c.width,.5*c.height,1]),o.multiply(h,h,c.calculatePosMatrix(f.toUnwrapped()))}function An(c,f,h,_,x,S){var w=function(Ce,he,we){if(Ce)for(var Be=0,Ge=Ce;Bethis.max){var w=this._getAndRemoveByKey(this.order[0]);w&&this.onRemove(w)}return this},qe.prototype.has=function(c){return c.wrapped().key in this.data},qe.prototype.getAndRemove=function(c){return this.has(c)?this._getAndRemoveByKey(c.wrapped().key):null},qe.prototype._getAndRemoveByKey=function(c){var f=this.data[c].shift();return f.timeout&&clearTimeout(f.timeout),this.data[c].length===0&&delete this.data[c],this.order.splice(this.order.indexOf(c),1),f.value},qe.prototype.getByKey=function(c){var f=this.data[c];return f?f[0].value:null},qe.prototype.get=function(c){return this.has(c)?this.data[c.wrapped().key][0].value:null},qe.prototype.remove=function(c,f){if(!this.has(c))return this;var h=c.wrapped().key,_=f===void 0?0:this.data[h].indexOf(f),x=this.data[h][_];return this.data[h].splice(_,1),x.timeout&&clearTimeout(x.timeout),this.data[h].length===0&&delete this.data[h],this.onRemove(x.value),this.order.splice(this.order.indexOf(h),1),this},qe.prototype.setMaxSize=function(c){for(this.max=c;this.order.length>this.max;){var f=this._getAndRemoveByKey(this.order[0]);f&&this.onRemove(f)}return this},qe.prototype.filter=function(c){var f=[];for(var h in this.data)for(var _=0,x=this.data[h];_1||(Math.abs(ee)>1&&(Math.abs(ee+ne)===1?ee+=ne:Math.abs(ee-ne)===1&&(ee-=ne)),V.dem&&F.dem&&(F.dem.backfillBorder(V.dem,ee,re),F.neighboringTiles&&F.neighboringTiles[ve]&&(F.neighboringTiles[ve].backfilled=!0)))}},f.prototype.getTile=function(h){return this.getTileByID(h.key)},f.prototype.getTileByID=function(h){return this._tiles[h]},f.prototype._retainLoadedChildren=function(h,_,x,S){for(var w in this._tiles){var M=this._tiles[w];if(!(S[w]||!M.hasData()||M.tileID.overscaledZ<=_||M.tileID.overscaledZ>x)){for(var F=M.tileID;M&&M.tileID.overscaledZ>_+1;){var V=M.tileID.scaledTo(M.tileID.overscaledZ-1);(M=this._tiles[V.key])&&M.hasData()&&(F=V)}for(var ee=F;ee.overscaledZ>_;)if(h[(ee=ee.scaledTo(ee.overscaledZ-1)).key]){S[F.key]=F;break}}}},f.prototype.findLoadedParent=function(h,_){if(h.key in this._loadedParentTiles){var x=this._loadedParentTiles[h.key];return x&&x.tileID.overscaledZ>=_?x:null}for(var S=h.overscaledZ-1;S>=_;S--){var w=h.scaledTo(S),M=this._getLoadedTile(w);if(M)return M}},f.prototype._getLoadedTile=function(h){var _=this._tiles[h.key];return _&&_.hasData()?_:this._cache.getByKey(h.wrapped().key)},f.prototype.updateCacheSize=function(h){var _=Math.ceil(h.width/this._source.tileSize)+1,x=Math.ceil(h.height/this._source.tileSize)+1,S=Math.floor(_*x*5),w=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,S):S;this._cache.setMaxSize(w)},f.prototype.handleWrapJump=function(h){var _=Math.round((h-(this._prevLng===void 0?h:this._prevLng))/360);if(this._prevLng=h,_){var x={};for(var S in this._tiles){var w=this._tiles[S];w.tileID=w.tileID.unwrapTo(w.tileID.wrap+_),x[w.tileID.key]=w}for(var M in this._tiles=x,this._timers)clearTimeout(this._timers[M]),delete this._timers[M];for(var F in this._tiles)this._setTileReloadTimer(F,this._tiles[F])}},f.prototype.update=function(h){var _=this;if(this.transform=h,this._sourceLoaded&&!this._paused){var x;this.updateCacheSize(h),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?x=h.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Et){return new o.OverscaledTileID(Et.canonical.z,Et.wrap,Et.canonical.z,Et.canonical.x,Et.canonical.y)}):(x=h.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(x=x.filter(function(Et){return _._source.hasTile(Et)}))):x=[];var S=h.coveringZoomLevel(this._source),w=Math.max(S-f.maxOverzooming,this._source.minzoom),M=Math.max(S+f.maxUnderzooming,this._source.minzoom),F=this._updateRetainedTiles(x,S);if(mt(this._source.type)){for(var V={},ee={},re=0,ne=Object.keys(F);rethis._source.maxzoom){var we=Ce.children(this._source.maxzoom)[0],Be=this.getTile(we);if(Be&&Be.hasData()){x[we.key]=we;continue}}else{var Ge=Ce.children(this._source.maxzoom);if(x[Ge[0].key]&&x[Ge[1].key]&&x[Ge[2].key]&&x[Ge[3].key])continue}for(var st=he.wasRequested(),Je=Ce.overscaledZ-1;Je>=w;--Je){var ft=Ce.scaledTo(Je);if(S[ft.key]||(S[ft.key]=!0,!(he=this.getTile(ft))&&st&&(he=this._addTile(ft)),he&&(x[ft.key]=ft,st=he.wasRequested(),he.hasData())))break}}}return x},f.prototype._updateLoadedParentTileCache=function(){for(var h in this._loadedParentTiles={},this._tiles){for(var _=[],x=void 0,S=this._tiles[h].tileID;S.overscaledZ>0;){if(S.key in this._loadedParentTiles){x=this._loadedParentTiles[S.key];break}_.push(S.key);var w=S.scaledTo(S.overscaledZ-1);if(x=this._getLoadedTile(w))break;S=w}for(var M=0,F=_;M0||(_.hasData()&&_.state!=="reloading"?this._cache.add(_.tileID,_,_.getExpiryTimeout()):(_.aborted=!0,this._abortTile(_),this._unloadTile(_))))},f.prototype.clearTiles=function(){for(var h in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(h);this._cache.reset()},f.prototype.tilesIn=function(h,_,x){var S=this,w=[],M=this.transform;if(!M)return w;for(var F=x?M.getCameraQueryGeometry(h):h,V=h.map(function(Je){return M.pointCoordinate(Je)}),ee=F.map(function(Je){return M.pointCoordinate(Je)}),re=this.getIds(),ne=1/0,ve=1/0,pe=-1/0,Ce=-1/0,he=0,we=ee;he=0&&ar[1].y+Nt>=0){var Ir=V.map(function(Dr){return Et.getTilePoint(Dr)}),Br=ee.map(function(Dr){return Et.getTilePoint(Dr)});w.push({tile:ft,tileID:Et,queryGeometry:Ir,cameraQueryGeometry:Br,scale:jt})}}},st=0;st=o.browser.now())return!0}return!1},f.prototype.setFeatureState=function(h,_,x){this._state.updateState(h=h||"_geojsonTileLayer",_,x)},f.prototype.removeFeatureState=function(h,_,x){this._state.removeFeatureState(h=h||"_geojsonTileLayer",_,x)},f.prototype.getFeatureState=function(h,_){return this._state.getState(h=h||"_geojsonTileLayer",_)},f.prototype.setDependencies=function(h,_,x){var S=this._tiles[h];S&&S.setDependencies(_,x)},f.prototype.reloadTilesForDependencies=function(h,_){for(var x in this._tiles)this._tiles[x].hasDependency(h,_)&&this._reloadTile(x,"reloading");this._cache.filter(function(S){return!S.hasDependency(h,_)})},f}(o.Evented);function We(c,f){var h=Math.abs(2*c.wrap)-+(c.wrap<0),_=Math.abs(2*f.wrap)-+(f.wrap<0);return c.overscaledZ-f.overscaledZ||_-h||f.canonical.y-c.canonical.y||f.canonical.x-c.canonical.x}function mt(c){return c==="raster"||c==="image"||c==="video"}function Lt(){return new o.window.Worker(w1.workerUrl)}ye.maxOverzooming=10,ye.maxUnderzooming=3;var ht="mapboxgl_preloaded_worker_pool",Rt=function(){this.active={}};Rt.prototype.acquire=function(c){if(!this.workers)for(this.workers=[];this.workers.length0?(_-S)/w:0;return this.points[x].mult(1-M).add(this.points[f].mult(M))};var In=function(c,f,h){var _=this.boxCells=[],x=this.circleCells=[];this.xCellCount=Math.ceil(c/h),this.yCellCount=Math.ceil(f/h);for(var S=0;S=-f[0]&&h<=f[0]&&_>=-f[1]&&_<=f[1]}function Rl(c,f,h,_,x,S,w,M){var F=_?c.textSizeData:c.iconSizeData,V=o.evaluateSizeForZoom(F,h.transform.zoom),ee=[256/h.width*2+1,256/h.height*2+1],re=_?c.text.dynamicLayoutVertexArray:c.icon.dynamicLayoutVertexArray;re.clear();for(var ne=c.lineVertexArray,ve=_?c.text.placedSymbolArray:c.icon.placedSymbolArray,pe=h.transform.width/h.transform.height,Ce=!1,he=0;heMath.abs(h.x-f.x)*_?{useVertical:!0}:(c===o.WritingMode.vertical?f.yh.x)?{needsFlipping:!0}:null}function Il(c,f,h,_,x,S,w,M,F,V,ee,re,ne,ve){var pe,Ce=f/24,he=c.lineOffsetX*Ce,we=c.lineOffsetY*Ce;if(c.numGlyphs>1){var Be=c.glyphStartIndex+c.numGlyphs,Ge=c.lineStartIndex,st=c.lineStartIndex+c.lineLength,Je=ki(Ce,M,he,we,h,ee,re,c,F,S,ne);if(!Je)return{notEnoughRoom:!0};var ft=ln(Je.first.point,w).point,Et=ln(Je.last.point,w).point;if(_&&!h){var jt=Ei(c.writingMode,ft,Et,ve);if(jt)return jt}pe=[Je.first];for(var Nt=c.glyphStartIndex+1;Nt0?Dr.point:rs(re,Br,ar,1,x),fr=Ei(c.writingMode,ar,Nn,ve);if(fr)return fr}var qr=vi(Ce*M.getoffsetX(c.glyphStartIndex),he,we,h,ee,re,c.segment,c.lineStartIndex,c.lineStartIndex+c.lineLength,F,S,ne);if(!qr)return{notEnoughRoom:!0};pe=[qr]}for(var hn=0,Zr=pe;hn0?1:-1,pe=0;_&&(ve*=-1,pe=Math.PI),ve<0&&(pe+=Math.PI);for(var Ce=ve>0?M+w:M+w+1,he=x,we=x,Be=0,Ge=0,st=Math.abs(ne),Je=[];Be+Ge<=st;){if((Ce+=ve)=F)return null;if(we=he,Je.push(he),(he=re[Ce])===void 0){var ft=new o.Point(V.getx(Ce),V.gety(Ce)),Et=ln(ft,ee);if(Et.signedDistanceFromCamera>0)he=re[Ce]=Et.point;else{var jt=Ce-ve;he=rs(Be===0?S:new o.Point(V.getx(jt),V.gety(jt)),ft,we,st-Be+1,ee)}}Be+=Ge,Ge=we.dist(he)}var Nt=(st-Be)/Ge,ar=he.sub(we),Ir=ar.mult(Nt)._add(we);Ir._add(ar._unit()._perp()._mult(h*ve));var Br=pe+Math.atan2(he.y-we.y,he.x-we.x);return Je.push(Ir),{point:Ir,angle:Br,path:Je}}In.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},In.prototype.insert=function(c,f,h,_,x){this._forEachCell(f,h,_,x,this._insertBoxCell,this.boxUid++),this.boxKeys.push(c),this.bboxes.push(f),this.bboxes.push(h),this.bboxes.push(_),this.bboxes.push(x)},In.prototype.insertCircle=function(c,f,h,_){this._forEachCell(f-_,h-_,f+_,h+_,this._insertCircleCell,this.circleUid++),this.circleKeys.push(c),this.circles.push(f),this.circles.push(h),this.circles.push(_)},In.prototype._insertBoxCell=function(c,f,h,_,x,S){this.boxCells[x].push(S)},In.prototype._insertCircleCell=function(c,f,h,_,x,S){this.circleCells[x].push(S)},In.prototype._query=function(c,f,h,_,x,S){if(h<0||c>this.width||_<0||f>this.height)return!x&&[];var w=[];if(c<=0&&f<=0&&this.width<=h&&this.height<=_){if(x)return!0;for(var M=0;M0:w},In.prototype._queryCircle=function(c,f,h,_,x){var S=c-h,w=c+h,M=f-h,F=f+h;if(w<0||S>this.width||F<0||M>this.height)return!_&&[];var V=[];return this._forEachCell(S,M,w,F,this._queryCellCircle,V,{hitTest:_,circle:{x:c,y:f,radius:h},seenUids:{box:{},circle:{}}},x),_?V.length>0:V},In.prototype.query=function(c,f,h,_,x){return this._query(c,f,h,_,!1,x)},In.prototype.hitTest=function(c,f,h,_,x){return this._query(c,f,h,_,!0,x)},In.prototype.hitTestCircle=function(c,f,h,_){return this._queryCircle(c,f,h,!0,_)},In.prototype._queryCell=function(c,f,h,_,x,S,w,M){var F=w.seenUids,V=this.boxCells[x];if(V!==null)for(var ee=this.bboxes,re=0,ne=V;re=ee[pe+0]&&_>=ee[pe+1]&&(!M||M(this.boxKeys[ve]))){if(w.hitTest)return S.push(!0),!0;S.push({key:this.boxKeys[ve],x1:ee[pe],y1:ee[pe+1],x2:ee[pe+2],y2:ee[pe+3]})}}}var Ce=this.circleCells[x];if(Ce!==null)for(var he=this.circles,we=0,Be=Ce;wew*w+M*M},In.prototype._circleAndRectCollide=function(c,f,h,_,x,S,w){var M=(S-_)/2,F=Math.abs(c-(_+M));if(F>M+h)return!1;var V=(w-x)/2,ee=Math.abs(f-(x+V));if(ee>V+h)return!1;if(F<=M||ee<=V)return!0;var re=F-M,ne=ee-V;return re*re+ne*ne<=h*h};var sl=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function mo(c,f){for(var h=0;h=1;Nn--)Dr.push(Ir.path[Nn]);for(var fr=1;fr0){for(var Xr=Dr[0].clone(),un=Dr[0].clone(),Wr=1;Wr=jt.x&&un.x<=Nt.x&&Xr.y>=jt.y&&un.y<=Nt.y?[Dr]:un.xNt.x||un.yNt.y?[]:o.clipLine([Dr],jt.x,jt.y,Nt.x,Nt.y)}for(var Vr=0,to=Zr;Vr=this.screenRightBoundary||_<100||f>this.screenBottomBoundary},Ui.prototype.isInsideGrid=function(c,f,h,_){return h>=0&&c=0&&f0?(this.prevPlacement&&this.prevPlacement.variableOffsets[re.crossTileID]&&this.prevPlacement.placements[re.crossTileID]&&this.prevPlacement.placements[re.crossTileID].text&&(Ce=this.prevPlacement.variableOffsets[re.crossTileID].anchor),this.variableOffsets[re.crossTileID]={textOffset:he,width:h,height:_,anchor:c,textBoxScale:x,prevAnchor:Ce},this.markUsedJustification(ne,c,re,ve),ne.allowVerticalPlacement&&(this.markUsedOrientation(ne,ve,re),this.placedOrientations[re.crossTileID]=ve),{shift:we,placedGlyphBoxes:Be}):void 0},tt.prototype.placeLayerBucketPart=function(c,f,h){var _=this,x=c.parameters,S=x.bucket,w=x.layout,M=x.posMatrix,F=x.textLabelPlaneMatrix,V=x.labelToScreenMatrix,ee=x.textPixelRatio,re=x.holdingForFade,ne=x.collisionBoxArray,ve=x.partiallyEvaluatedTextSize,pe=x.collisionGroup,Ce=w.get("text-optional"),he=w.get("icon-optional"),we=w.get("text-allow-overlap"),Be=w.get("icon-allow-overlap"),Ge=w.get("text-rotation-alignment")==="map",st=w.get("text-pitch-alignment")==="map",Je=w.get("icon-text-fit")!=="none",ft=w.get("symbol-z-order")==="viewport-y",Et=we&&(Be||!S.hasIconData()||he),jt=Be&&(we||!S.hasTextData()||Ce);!S.collisionArrays&&ne&&S.deserializeCollisionBoxes(ne);var Nt=function(fr,qr){if(!f[fr.crossTileID])if(re)_.placements[fr.crossTileID]=new yc(!1,!1,!1);else{var hn,Zr=!1,Xr=!1,un=!0,Wr=null,Vr={box:null,offscreen:null},to={box:null,offscreen:null},Mi=null,Bo=null,yo=0,Ri=0,Pi=0;qr.textFeatureIndex?yo=qr.textFeatureIndex:fr.useRuntimeCollisionCircles&&(yo=fr.featureIndex),qr.verticalTextFeatureIndex&&(Ri=qr.verticalTextFeatureIndex);var ua=qr.textBox;if(ua){var ta=function(On){var Fo=o.WritingMode.horizontal;if(S.allowVerticalPlacement&&!On&&_.prevPlacement){var ro=_.prevPlacement.placedOrientations[fr.crossTileID];ro&&(_.placedOrientations[fr.crossTileID]=ro,_.markUsedOrientation(S,Fo=ro,fr))}return Fo},Xs=function(On,Fo){if(S.allowVerticalPlacement&&fr.numVerticalGlyphVertices>0&&qr.verticalTextBox)for(var ro=0,Gs=S.writingModes;ro0&&(ca=ca.filter(function(On){return On!==cs.anchor})).unshift(cs.anchor)}var Na=function(On,Fo,ro){for(var Gs=On.x2-On.x1,C1=On.y2-On.y1,Yl=fr.textBoxScale,Ch=Je&&!Be?Fo:null,wu={box:[],offscreen:!1},Cu=we?2*ca.length:ca.length,Ss=0;Ss=ca.length,fr,S,ro,Ch);if(R1&&(wu=R1.placedGlyphBoxes)&&wu.box&&wu.box.length){Zr=!0,Wr=R1.shift;break}}return wu};Xs(function(){return Na(ua,qr.iconBox,o.WritingMode.horizontal)},function(){var On=qr.verticalTextBox;return S.allowVerticalPlacement&&!(Vr&&Vr.box&&Vr.box.length)&&fr.numVerticalGlyphVertices>0&&On?Na(On,qr.verticalIconBox,o.WritingMode.vertical):{box:null,offscreen:null}}),Vr&&(Zr=Vr.box,un=Vr.offscreen);var Ju=ta(Vr&&Vr.box);if(!Zr&&_.prevPlacement){var Su=_.prevPlacement.variableOffsets[fr.crossTileID];Su&&(_.variableOffsets[fr.crossTileID]=Su,_.markUsedJustification(S,Su.anchor,fr,Ju))}}else{var Ws=function(On,Fo){var ro=_.collisionIndex.placeCollisionBox(On,we,ee,M,pe.predicate);return ro&&ro.box&&ro.box.length&&(_.markUsedOrientation(S,Fo,fr),_.placedOrientations[fr.crossTileID]=Fo),ro};Xs(function(){return Ws(ua,o.WritingMode.horizontal)},function(){var On=qr.verticalTextBox;return S.allowVerticalPlacement&&fr.numVerticalGlyphVertices>0&&On?Ws(On,o.WritingMode.vertical):{box:null,offscreen:null}}),ta(Vr&&Vr.box&&Vr.box.length)}}if(Zr=(hn=Vr)&&hn.box&&hn.box.length>0,un=hn&&hn.offscreen,fr.useRuntimeCollisionCircles){var $l=S.text.placedSymbolArray.get(fr.centerJustifiedTextSymbolIndex),yl=o.evaluateSizeForFeature(S.textSizeData,ve,$l),Ts=w.get("text-padding");Mi=_.collisionIndex.placeCollisionCircles(we,$l,S.lineVertexArray,S.glyphOffsetArray,yl,M,F,V,h,st,pe.predicate,fr.collisionCircleDiameter,Ts),Zr=we||Mi.circles.length>0&&!Mi.collisionDetected,un=un&&Mi.offscreen}if(qr.iconFeatureIndex&&(Pi=qr.iconFeatureIndex),qr.iconBox){var ql=function(On){var Fo=Je&&Wr?Ie(On,Wr.x,Wr.y,Ge,st,_.transform.angle):On;return _.collisionIndex.placeCollisionBox(Fo,Be,ee,M,pe.predicate)};Xr=to&&to.box&&to.box.length&&qr.verticalIconBox?(Bo=ql(qr.verticalIconBox)).box.length>0:(Bo=ql(qr.iconBox)).box.length>0,un=un&&Bo.offscreen}var Go=Ce||fr.numHorizontalGlyphVertices===0&&fr.numVerticalGlyphVertices===0,Hi=he||fr.numIconVertices===0;if(Go||Hi?Hi?Go||(Xr=Xr&&Zr):Zr=Xr&&Zr:Xr=Zr=Xr&&Zr,Zr&&hn&&hn.box&&_.collisionIndex.insertCollisionBox(hn.box,w.get("text-ignore-placement"),S.bucketInstanceId,to&&to.box&&Ri?Ri:yo,pe.ID),Xr&&Bo&&_.collisionIndex.insertCollisionBox(Bo.box,w.get("icon-ignore-placement"),S.bucketInstanceId,Pi,pe.ID),Mi&&(Zr&&_.collisionIndex.insertCollisionCircles(Mi.circles,w.get("text-ignore-placement"),S.bucketInstanceId,yo,pe.ID),h)){var xa=S.bucketInstanceId,hs=_.collisionCircleArrays[xa];hs===void 0&&(hs=_.collisionCircleArrays[xa]=new Pa);for(var As=0;As=0;--Ir){var Br=ar[Ir];Nt(S.symbolInstances.get(Br),S.collisionArrays[Br])}else for(var Dr=c.symbolInstanceStart;Dr=0&&(c.text.placedSymbolArray.get(M).crossTileID=x>=0&&M!==x?0:h.crossTileID)}},tt.prototype.markUsedOrientation=function(c,f,h){for(var _=f===o.WritingMode.horizontal||f===o.WritingMode.horizontalOnly?f:0,x=f===o.WritingMode.vertical?f:0,S=0,w=[h.leftJustifiedTextSymbolIndex,h.centerJustifiedTextSymbolIndex,h.rightJustifiedTextSymbolIndex];S0,jt=_.placedOrientations[Be.crossTileID],Nt=jt===o.WritingMode.vertical,ar=jt===o.WritingMode.horizontal||jt===o.WritingMode.horizontalOnly;if(Ge>0||st>0){var Ir=uf(ft.text);ve(c.text,Ge,Nt?Hu:Ir),ve(c.text,st,ar?Hu:Ir);var Br=ft.text.isHidden();[Be.rightJustifiedTextSymbolIndex,Be.centerJustifiedTextSymbolIndex,Be.leftJustifiedTextSymbolIndex].forEach(function(Vr){Vr>=0&&(c.text.placedSymbolArray.get(Vr).hidden=Br||Nt?1:0)}),Be.verticalPlacedTextSymbolIndex>=0&&(c.text.placedSymbolArray.get(Be.verticalPlacedTextSymbolIndex).hidden=Br||ar?1:0);var Dr=_.variableOffsets[Be.crossTileID];Dr&&_.markUsedJustification(c,Dr.anchor,Be,jt);var Nn=_.placedOrientations[Be.crossTileID];Nn&&(_.markUsedJustification(c,"left",Be,Nn),_.markUsedOrientation(c,Nn,Be))}if(Et){var fr=uf(ft.icon),qr=!(re&&Be.verticalPlacedIconSymbolIndex&&Nt);Be.placedIconSymbolIndex>=0&&(ve(c.icon,Be.numIconVertices,qr?fr:Hu),c.icon.placedSymbolArray.get(Be.placedIconSymbolIndex).hidden=ft.icon.isHidden()),Be.verticalPlacedIconSymbolIndex>=0&&(ve(c.icon,Be.numVerticalIconVertices,qr?Hu:fr),c.icon.placedSymbolArray.get(Be.verticalPlacedIconSymbolIndex).hidden=ft.icon.isHidden())}if(c.hasIconCollisionBoxData()||c.hasTextCollisionBoxData()){var hn=c.collisionArrays[we];if(hn){var Zr=new o.Point(0,0);if(hn.textBox||hn.verticalTextBox){var Xr=!0;if(F){var un=_.variableOffsets[Je];un?(Zr=ie(un.anchor,un.width,un.height,un.textOffset,un.textBoxScale),V&&Zr._rotate(ee?_.transform.angle:-_.transform.angle)):Xr=!1}hn.textBox&&Vt(c.textCollisionBox.collisionVertexArray,ft.text.placed,!Xr||Nt,Zr.x,Zr.y),hn.verticalTextBox&&Vt(c.textCollisionBox.collisionVertexArray,ft.text.placed,!Xr||ar,Zr.x,Zr.y)}var Wr=!!(!ar&&hn.verticalIconBox);hn.iconBox&&Vt(c.iconCollisionBox.collisionVertexArray,ft.icon.placed,Wr,re?Zr.x:0,re?Zr.y:0),hn.verticalIconBox&&Vt(c.iconCollisionBox.collisionVertexArray,ft.icon.placed,!Wr,re?Zr.x:0,re?Zr.y:0)}}},Ce=0;Cec},tt.prototype.setStale=function(){this.stale=!0};var Cr=Math.pow(2,25),Fn=Math.pow(2,24),Ki=Math.pow(2,17),Lo=Math.pow(2,16),_o=Math.pow(2,9),ns=Math.pow(2,8),lf=Math.pow(2,1);function uf(c){if(c.opacity===0&&!c.placed)return 0;if(c.opacity===1&&c.placed)return 4294967295;var f=c.placed?1:0,h=Math.floor(127*c.opacity);return h*Cr+f*Fn+h*Ki+f*Lo+h*_o+f*ns+h*lf+f}var Hu=0,ah=function(c){this._sortAcrossTiles=c.layout.get("symbol-z-order")!=="viewport-y"&&c.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ah.prototype.continuePlacement=function(c,f,h,_,x){for(var S=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var w=f[c[this._currentPlacementIndex]],M=this.placement.collisionIndex.transform.zoom;if(w.type==="symbol"&&(!w.minzoom||w.minzoom<=M)&&(!w.maxzoom||w.maxzoom>M)){if(this._inProgressLayer||(this._inProgressLayer=new ah(w)),this._inProgressLayer.continuePlacement(h[w.source],this.placement,this._showCollisionBoxes,w,S))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},xc.prototype.commit=function(c){return this.placement.commit(c),this.placement};var cf=512/o.EXTENT/2,i1=function(c,f,h){this.tileID=c,this.indexedSymbolInstances={},this.bucketInstanceId=h;for(var _=0;_c.overscaledZ)for(var M in w){var F=w[M];F.tileID.isChildOf(c)&&F.findMatches(f.symbolInstances,c,x)}else{var V=w[c.scaledTo(Number(S)).key];V&&V.findMatches(f.symbolInstances,c,x)}}for(var ee=0;ee1?"@2x":"",re=o.getJSON(S.transformRequest(S.normalizeSpriteURL(x,ee,".json"),o.ResourceType.SpriteJSON),function(pe,Ce){re=null,V||(V=pe,M=Ce,ve())}),ne=o.getImage(S.transformRequest(S.normalizeSpriteURL(x,ee,".png"),o.ResourceType.SpriteImage),function(pe,Ce){ne=null,V||(V=pe,F=Ce,ve())});function ve(){if(V)w(V);else if(M&&F){var pe=o.browser.getImageData(F),Ce={};for(var he in M){var we=M[he],Be=we.width,Ge=we.height,st=we.x,Je=we.y,ft=we.sdf,Et=we.pixelRatio,jt=we.stretchX,Nt=we.stretchY,ar=we.content,Ir=new o.RGBAImage({width:Be,height:Ge});o.RGBAImage.copy(pe,Ir,{x:st,y:Je},{x:0,y:0},{width:Be,height:Ge}),Ce[he]={data:Ir,pixelRatio:Et,sdf:ft,stretchX:jt,stretchY:Nt,content:ar}}w(null,Ce)}}return{cancel:function(){re&&(re.cancel(),re=null),ne&&(ne.cancel(),ne=null)}}}(h,this.map._requestManager,function(x,S){if(_._spriteRequest=null,x)_.fire(new o.ErrorEvent(x));else if(S)for(var w in S)_.imageManager.addImage(w,S[w]);_.imageManager.setLoaded(!0),_._availableImages=_.imageManager.listImages(),_.dispatcher.broadcast("setImages",_._availableImages),_.fire(new o.Event("data",{dataType:"style"}))})},f.prototype._validateLayer=function(h){var _=this.sourceCaches[h.source];if(_){var x=h.sourceLayer;if(x){var S=_.getSource();(S.type==="geojson"||S.vectorLayerIds&&S.vectorLayerIds.indexOf(x)===-1)&&this.fire(new o.ErrorEvent(new Error('Source layer "'+x+'" does not exist on source "'+S.id+'" as specified by style layer "'+h.id+'"')))}}},f.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var h in this.sourceCaches)if(!this.sourceCaches[h].loaded())return!1;return!!this.imageManager.isLoaded()},f.prototype._serializeLayers=function(h){for(var _=[],x=0,S=h;x0)throw new Error("Unimplemented: "+S.map(function(w){return w.command}).join(", ")+".");return x.forEach(function(w){w.command!=="setTransition"&&_[w.command].apply(_,w.args)}),this.stylesheet=h,!0},f.prototype.addImage=function(h,_){if(this.getImage(h))return this.fire(new o.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(h,_),this._afterImageUpdated(h)},f.prototype.updateImage=function(h,_){this.imageManager.updateImage(h,_)},f.prototype.getImage=function(h){return this.imageManager.getImage(h)},f.prototype.removeImage=function(h){if(!this.getImage(h))return this.fire(new o.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(h),this._afterImageUpdated(h)},f.prototype._afterImageUpdated=function(h){this._availableImages=this.imageManager.listImages(),this._changedImages[h]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new o.Event("data",{dataType:"style"}))},f.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},f.prototype.addSource=function(h,_,x){var S=this;if(x===void 0&&(x={}),this._checkLoaded(),this.sourceCaches[h]!==void 0)throw new Error("There is already a source with this ID");if(!_.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(_).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(_.type)>=0&&this._validate(o.validateStyle.source,"sources."+h,_,null,x))){this.map&&this.map._collectResourceTiming&&(_.collectResourceTiming=!0);var w=this.sourceCaches[h]=new ye(h,_,this.dispatcher);w.style=this,w.setEventedParent(this,function(){return{isSourceLoaded:S.loaded(),source:w.serialize(),sourceId:h}}),w.onAdd(this.map),this._changed=!0}},f.prototype.removeSource=function(h){if(this._checkLoaded(),this.sourceCaches[h]===void 0)throw new Error("There is no source with this ID");for(var _ in this._layers)if(this._layers[_].source===h)return this.fire(new o.ErrorEvent(new Error('Source "'+h+'" cannot be removed while layer "'+_+'" is using it.')));var x=this.sourceCaches[h];delete this.sourceCaches[h],delete this._updatedSources[h],x.fire(new o.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:h})),x.setEventedParent(null),x.clearTiles(),x.onRemove&&x.onRemove(this.map),this._changed=!0},f.prototype.setGeoJSONSourceData=function(h,_){this._checkLoaded(),this.sourceCaches[h].getSource().setData(_),this._changed=!0},f.prototype.getSource=function(h){return this.sourceCaches[h]&&this.sourceCaches[h].getSource()},f.prototype.addLayer=function(h,_,x){x===void 0&&(x={}),this._checkLoaded();var S=h.id;if(this.getLayer(S))this.fire(new o.ErrorEvent(new Error('Layer with id "'+S+'" already exists on this map')));else{var w;if(h.type==="custom"){if(Bs(this,o.validateCustomStyleLayer(h)))return;w=o.createStyleLayer(h)}else{if(typeof h.source=="object"&&(this.addSource(S,h.source),h=o.clone$1(h),h=o.extend(h,{source:S})),this._validate(o.validateStyle.layer,"layers."+S,h,{arrayIndex:-1},x))return;w=o.createStyleLayer(h),this._validateLayer(w),w.setEventedParent(this,{layer:{id:S}}),this._serializedLayers[w.id]=w.serialize()}var M=_?this._order.indexOf(_):this._order.length;if(_&&M===-1)this.fire(new o.ErrorEvent(new Error('Layer with id "'+_+'" does not exist on this map.')));else{if(this._order.splice(M,0,S),this._layerOrderChanged=!0,this._layers[S]=w,this._removedLayers[S]&&w.source&&w.type!=="custom"){var F=this._removedLayers[S];delete this._removedLayers[S],F.type!==w.type?this._updatedSources[w.source]="clear":(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause())}this._updateLayer(w),w.onAdd&&w.onAdd(this.map)}}},f.prototype.moveLayer=function(h,_){if(this._checkLoaded(),this._changed=!0,this._layers[h]){if(h!==_){var x=this._order.indexOf(h);this._order.splice(x,1);var S=_?this._order.indexOf(_):this._order.length;_&&S===-1?this.fire(new o.ErrorEvent(new Error('Layer with id "'+_+'" does not exist on this map.'))):(this._order.splice(S,0,h),this._layerOrderChanged=!0)}}else this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style and cannot be moved.")))},f.prototype.removeLayer=function(h){this._checkLoaded();var _=this._layers[h];if(_){_.setEventedParent(null);var x=this._order.indexOf(h);this._order.splice(x,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[h]=_,delete this._layers[h],delete this._serializedLayers[h],delete this._updatedLayers[h],delete this._updatedPaintProps[h],_.onRemove&&_.onRemove(this.map)}else this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style and cannot be removed.")))},f.prototype.getLayer=function(h){return this._layers[h]},f.prototype.hasLayer=function(h){return h in this._layers},f.prototype.setLayerZoomRange=function(h,_,x){this._checkLoaded();var S=this.getLayer(h);S?S.minzoom===_&&S.maxzoom===x||(_!=null&&(S.minzoom=_),x!=null&&(S.maxzoom=x),this._updateLayer(S)):this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style and cannot have zoom extent.")))},f.prototype.setFilter=function(h,_,x){x===void 0&&(x={}),this._checkLoaded();var S=this.getLayer(h);if(S){if(!o.deepEqual(S.filter,_))return _==null?(S.filter=void 0,void this._updateLayer(S)):void(this._validate(o.validateStyle.filter,"layers."+S.id+".filter",_,null,x)||(S.filter=o.clone$1(_),this._updateLayer(S)))}else this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style and cannot be filtered.")))},f.prototype.getFilter=function(h){return o.clone$1(this.getLayer(h).filter)},f.prototype.setLayoutProperty=function(h,_,x,S){S===void 0&&(S={}),this._checkLoaded();var w=this.getLayer(h);w?o.deepEqual(w.getLayoutProperty(_),x)||(w.setLayoutProperty(_,x,S),this._updateLayer(w)):this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style and cannot be styled.")))},f.prototype.getLayoutProperty=function(h,_){var x=this.getLayer(h);if(x)return x.getLayoutProperty(_);this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style.")))},f.prototype.setPaintProperty=function(h,_,x,S){S===void 0&&(S={}),this._checkLoaded();var w=this.getLayer(h);w?o.deepEqual(w.getPaintProperty(_),x)||(w.setPaintProperty(_,x,S)&&this._updateLayer(w),this._changed=!0,this._updatedPaintProps[h]=!0):this.fire(new o.ErrorEvent(new Error("The layer '"+h+"' does not exist in the map's style and cannot be styled.")))},f.prototype.getPaintProperty=function(h,_){return this.getLayer(h).getPaintProperty(_)},f.prototype.setFeatureState=function(h,_){this._checkLoaded();var x=h.source,S=h.sourceLayer,w=this.sourceCaches[x];if(w!==void 0){var M=w.getSource().type;M==="geojson"&&S?this.fire(new o.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):M!=="vector"||S?(h.id===void 0&&this.fire(new o.ErrorEvent(new Error("The feature id parameter must be provided."))),w.setFeatureState(S,h.id,_)):this.fire(new o.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new o.ErrorEvent(new Error("The source '"+x+"' does not exist in the map's style.")))},f.prototype.removeFeatureState=function(h,_){this._checkLoaded();var x=h.source,S=this.sourceCaches[x];if(S!==void 0){var w=S.getSource().type,M=w==="vector"?h.sourceLayer:void 0;w!=="vector"||M?_&&typeof h.id!="string"&&typeof h.id!="number"?this.fire(new o.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):S.removeFeatureState(M,h.id,_):this.fire(new o.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new o.ErrorEvent(new Error("The source '"+x+"' does not exist in the map's style.")))},f.prototype.getFeatureState=function(h){this._checkLoaded();var _=h.source,x=h.sourceLayer,S=this.sourceCaches[_];if(S!==void 0){if(S.getSource().type!=="vector"||x)return h.id===void 0&&this.fire(new o.ErrorEvent(new Error("The feature id parameter must be provided."))),S.getFeatureState(x,h.id);this.fire(new o.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new o.ErrorEvent(new Error("The source '"+_+"' does not exist in the map's style.")))},f.prototype.getTransition=function(){return o.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},f.prototype.serialize=function(){return o.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:o.mapObject(this.sourceCaches,function(h){return h.serialize()}),layers:this._serializeLayers(this._order)},function(h){return h!==void 0})},f.prototype._updateLayer=function(h){this._updatedLayers[h.id]=!0,h.source&&!this._updatedSources[h.source]&&this.sourceCaches[h.source].getSource().type!=="raster"&&(this._updatedSources[h.source]="reload",this.sourceCaches[h.source].pause()),this._changed=!0},f.prototype._flattenAndSortRenderedFeatures=function(h){for(var _=this,x=function(jt){return _._layers[jt].type==="fill-extrusion"},S={},w=[],M=this._order.length-1;M>=0;M--){var F=this._order[M];if(x(F)){S[F]=M;for(var V=0,ee=h;V=0;Ce--){var he=this._order[Ce];if(x(he))for(var we=w.length-1;we>=0;we--){var Be=w[we].feature;if(S[Be.layer.id]>16,M>>16],u_pixel_coord_lower:[65535&w,65535&M]}}Vi.prototype.draw=function(c,f,h,_,x,S,w,M,F,V,ee,re,ne,ve,pe,Ce){var he,we=c.gl;if(!this.failedToCreate){for(var Be in c.program.set(this.program),c.setDepthMode(h),c.setStencilMode(_),c.setColorMode(x),c.setCullFace(S),this.fixedUniforms)this.fixedUniforms[Be].set(w[Be]);ve&&ve.setUniforms(c,this.binderUniforms,re,{zoom:ne});for(var Ge=(he={},he[we.LINES]=2,he[we.TRIANGLES]=3,he[we.LINE_STRIP]=1,he)[f],st=0,Je=ee.get();st0?1-1/(1.001-w):-w),u_contrast_factor:(S=x.paint.get("raster-contrast"),S>0?1/(1-S):1+S),u_spin_weights:c1(x.paint.get("raster-hue-rotate"))};var S,w};function c1(c){c*=Math.PI/180;var f=Math.sin(c),h=Math.cos(c);return[(2*h+1)/3,(-Math.sqrt(3)*f-h+1)/3,(Math.sqrt(3)*f-h+1)/3]}var dl,Ul=function(c,f,h,_,x,S,w,M,F,V){var ee=x.transform;return{u_is_size_zoom_constant:+(c==="constant"||c==="source"),u_is_size_feature_constant:+(c==="constant"||c==="camera"),u_size_t:f?f.uSizeT:0,u_size:f?f.uSize:0,u_camera_to_center_distance:ee.cameraToCenterDistance,u_pitch:ee.pitch/360*2*Math.PI,u_rotate_symbol:+h,u_aspect_ratio:ee.width/ee.height,u_fade_change:x.options.fadeDuration?x.symbolFadeChange:1,u_matrix:S,u_label_plane_matrix:w,u_coord_matrix:M,u_is_text:+F,u_pitch_with_map:+_,u_texsize:V,u_texture:0}},gu=function(c,f,h,_,x,S,w,M,F,V,ee){var re=x.transform;return o.extend(Ul(c,f,h,_,x,S,w,M,F,V),{u_gamma_scale:_?Math.cos(re._pitch)*re.cameraToCenterDistance:1,u_device_pixel_ratio:o.browser.devicePixelRatio,u_is_halo:+ee})},Xu=function(c,f,h,_,x,S,w,M,F,V){return o.extend(gu(c,f,h,_,x,S,w,M,!0,F,!0),{u_texsize_icon:V,u_texture_icon:1})},vu=function(c,f,h){return{u_matrix:c,u_opacity:f,u_color:h}},yu=function(c,f,h,_,x,S){return o.extend(function(w,M,F,V){var ee=F.imageManager.getPattern(w.from.toString()),re=F.imageManager.getPattern(w.to.toString()),ne=F.imageManager.getPixelSize(),ve=ne.width,pe=ne.height,Ce=Math.pow(2,V.tileID.overscaledZ),he=V.tileSize*Math.pow(2,F.transform.tileZoom)/Ce,we=he*(V.tileID.canonical.x+V.tileID.wrap*Ce),Be=he*V.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ee.tl,u_pattern_br_a:ee.br,u_pattern_tl_b:re.tl,u_pattern_br_b:re.br,u_texsize:[ve,pe],u_mix:M.t,u_pattern_size_a:ee.displaySize,u_pattern_size_b:re.displaySize,u_scale_a:M.fromScale,u_scale_b:M.toScale,u_tile_units_to_pixels:1/hi(V,1,F.transform.tileZoom),u_pixel_coord_upper:[we>>16,Be>>16],u_pixel_coord_lower:[65535&we,65535&Be]}}(_,S,h,x),{u_matrix:c,u_opacity:f})},dh={fillExtrusion:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_lightpos:new o.Uniform3f(c,f.u_lightpos),u_lightintensity:new o.Uniform1f(c,f.u_lightintensity),u_lightcolor:new o.Uniform3f(c,f.u_lightcolor),u_vertical_gradient:new o.Uniform1f(c,f.u_vertical_gradient),u_opacity:new o.Uniform1f(c,f.u_opacity)}},fillExtrusionPattern:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_lightpos:new o.Uniform3f(c,f.u_lightpos),u_lightintensity:new o.Uniform1f(c,f.u_lightintensity),u_lightcolor:new o.Uniform3f(c,f.u_lightcolor),u_vertical_gradient:new o.Uniform1f(c,f.u_vertical_gradient),u_height_factor:new o.Uniform1f(c,f.u_height_factor),u_image:new o.Uniform1i(c,f.u_image),u_texsize:new o.Uniform2f(c,f.u_texsize),u_pixel_coord_upper:new o.Uniform2f(c,f.u_pixel_coord_upper),u_pixel_coord_lower:new o.Uniform2f(c,f.u_pixel_coord_lower),u_scale:new o.Uniform3f(c,f.u_scale),u_fade:new o.Uniform1f(c,f.u_fade),u_opacity:new o.Uniform1f(c,f.u_opacity)}},fill:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix)}},fillPattern:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_image:new o.Uniform1i(c,f.u_image),u_texsize:new o.Uniform2f(c,f.u_texsize),u_pixel_coord_upper:new o.Uniform2f(c,f.u_pixel_coord_upper),u_pixel_coord_lower:new o.Uniform2f(c,f.u_pixel_coord_lower),u_scale:new o.Uniform3f(c,f.u_scale),u_fade:new o.Uniform1f(c,f.u_fade)}},fillOutline:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_world:new o.Uniform2f(c,f.u_world)}},fillOutlinePattern:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_world:new o.Uniform2f(c,f.u_world),u_image:new o.Uniform1i(c,f.u_image),u_texsize:new o.Uniform2f(c,f.u_texsize),u_pixel_coord_upper:new o.Uniform2f(c,f.u_pixel_coord_upper),u_pixel_coord_lower:new o.Uniform2f(c,f.u_pixel_coord_lower),u_scale:new o.Uniform3f(c,f.u_scale),u_fade:new o.Uniform1f(c,f.u_fade)}},circle:function(c,f){return{u_camera_to_center_distance:new o.Uniform1f(c,f.u_camera_to_center_distance),u_scale_with_map:new o.Uniform1i(c,f.u_scale_with_map),u_pitch_with_map:new o.Uniform1i(c,f.u_pitch_with_map),u_extrude_scale:new o.Uniform2f(c,f.u_extrude_scale),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_matrix:new o.UniformMatrix4f(c,f.u_matrix)}},collisionBox:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_camera_to_center_distance:new o.Uniform1f(c,f.u_camera_to_center_distance),u_pixels_to_tile_units:new o.Uniform1f(c,f.u_pixels_to_tile_units),u_extrude_scale:new o.Uniform2f(c,f.u_extrude_scale),u_overscale_factor:new o.Uniform1f(c,f.u_overscale_factor)}},collisionCircle:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_inv_matrix:new o.UniformMatrix4f(c,f.u_inv_matrix),u_camera_to_center_distance:new o.Uniform1f(c,f.u_camera_to_center_distance),u_viewport_size:new o.Uniform2f(c,f.u_viewport_size)}},debug:function(c,f){return{u_color:new o.UniformColor(c,f.u_color),u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_overlay:new o.Uniform1i(c,f.u_overlay),u_overlay_scale:new o.Uniform1f(c,f.u_overlay_scale)}},clippingMask:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix)}},heatmap:function(c,f){return{u_extrude_scale:new o.Uniform1f(c,f.u_extrude_scale),u_intensity:new o.Uniform1f(c,f.u_intensity),u_matrix:new o.UniformMatrix4f(c,f.u_matrix)}},heatmapTexture:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_world:new o.Uniform2f(c,f.u_world),u_image:new o.Uniform1i(c,f.u_image),u_color_ramp:new o.Uniform1i(c,f.u_color_ramp),u_opacity:new o.Uniform1f(c,f.u_opacity)}},hillshade:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_image:new o.Uniform1i(c,f.u_image),u_latrange:new o.Uniform2f(c,f.u_latrange),u_light:new o.Uniform2f(c,f.u_light),u_shadow:new o.UniformColor(c,f.u_shadow),u_highlight:new o.UniformColor(c,f.u_highlight),u_accent:new o.UniformColor(c,f.u_accent)}},hillshadePrepare:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_image:new o.Uniform1i(c,f.u_image),u_dimension:new o.Uniform2f(c,f.u_dimension),u_zoom:new o.Uniform1f(c,f.u_zoom),u_unpack:new o.Uniform4f(c,f.u_unpack)}},line:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_ratio:new o.Uniform1f(c,f.u_ratio),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_units_to_pixels:new o.Uniform2f(c,f.u_units_to_pixels)}},lineGradient:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_ratio:new o.Uniform1f(c,f.u_ratio),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_units_to_pixels:new o.Uniform2f(c,f.u_units_to_pixels),u_image:new o.Uniform1i(c,f.u_image),u_image_height:new o.Uniform1f(c,f.u_image_height)}},linePattern:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_texsize:new o.Uniform2f(c,f.u_texsize),u_ratio:new o.Uniform1f(c,f.u_ratio),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_image:new o.Uniform1i(c,f.u_image),u_units_to_pixels:new o.Uniform2f(c,f.u_units_to_pixels),u_scale:new o.Uniform3f(c,f.u_scale),u_fade:new o.Uniform1f(c,f.u_fade)}},lineSDF:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_ratio:new o.Uniform1f(c,f.u_ratio),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_units_to_pixels:new o.Uniform2f(c,f.u_units_to_pixels),u_patternscale_a:new o.Uniform2f(c,f.u_patternscale_a),u_patternscale_b:new o.Uniform2f(c,f.u_patternscale_b),u_sdfgamma:new o.Uniform1f(c,f.u_sdfgamma),u_image:new o.Uniform1i(c,f.u_image),u_tex_y_a:new o.Uniform1f(c,f.u_tex_y_a),u_tex_y_b:new o.Uniform1f(c,f.u_tex_y_b),u_mix:new o.Uniform1f(c,f.u_mix)}},raster:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_tl_parent:new o.Uniform2f(c,f.u_tl_parent),u_scale_parent:new o.Uniform1f(c,f.u_scale_parent),u_buffer_scale:new o.Uniform1f(c,f.u_buffer_scale),u_fade_t:new o.Uniform1f(c,f.u_fade_t),u_opacity:new o.Uniform1f(c,f.u_opacity),u_image0:new o.Uniform1i(c,f.u_image0),u_image1:new o.Uniform1i(c,f.u_image1),u_brightness_low:new o.Uniform1f(c,f.u_brightness_low),u_brightness_high:new o.Uniform1f(c,f.u_brightness_high),u_saturation_factor:new o.Uniform1f(c,f.u_saturation_factor),u_contrast_factor:new o.Uniform1f(c,f.u_contrast_factor),u_spin_weights:new o.Uniform3f(c,f.u_spin_weights)}},symbolIcon:function(c,f){return{u_is_size_zoom_constant:new o.Uniform1i(c,f.u_is_size_zoom_constant),u_is_size_feature_constant:new o.Uniform1i(c,f.u_is_size_feature_constant),u_size_t:new o.Uniform1f(c,f.u_size_t),u_size:new o.Uniform1f(c,f.u_size),u_camera_to_center_distance:new o.Uniform1f(c,f.u_camera_to_center_distance),u_pitch:new o.Uniform1f(c,f.u_pitch),u_rotate_symbol:new o.Uniform1i(c,f.u_rotate_symbol),u_aspect_ratio:new o.Uniform1f(c,f.u_aspect_ratio),u_fade_change:new o.Uniform1f(c,f.u_fade_change),u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_label_plane_matrix:new o.UniformMatrix4f(c,f.u_label_plane_matrix),u_coord_matrix:new o.UniformMatrix4f(c,f.u_coord_matrix),u_is_text:new o.Uniform1i(c,f.u_is_text),u_pitch_with_map:new o.Uniform1i(c,f.u_pitch_with_map),u_texsize:new o.Uniform2f(c,f.u_texsize),u_texture:new o.Uniform1i(c,f.u_texture)}},symbolSDF:function(c,f){return{u_is_size_zoom_constant:new o.Uniform1i(c,f.u_is_size_zoom_constant),u_is_size_feature_constant:new o.Uniform1i(c,f.u_is_size_feature_constant),u_size_t:new o.Uniform1f(c,f.u_size_t),u_size:new o.Uniform1f(c,f.u_size),u_camera_to_center_distance:new o.Uniform1f(c,f.u_camera_to_center_distance),u_pitch:new o.Uniform1f(c,f.u_pitch),u_rotate_symbol:new o.Uniform1i(c,f.u_rotate_symbol),u_aspect_ratio:new o.Uniform1f(c,f.u_aspect_ratio),u_fade_change:new o.Uniform1f(c,f.u_fade_change),u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_label_plane_matrix:new o.UniformMatrix4f(c,f.u_label_plane_matrix),u_coord_matrix:new o.UniformMatrix4f(c,f.u_coord_matrix),u_is_text:new o.Uniform1i(c,f.u_is_text),u_pitch_with_map:new o.Uniform1i(c,f.u_pitch_with_map),u_texsize:new o.Uniform2f(c,f.u_texsize),u_texture:new o.Uniform1i(c,f.u_texture),u_gamma_scale:new o.Uniform1f(c,f.u_gamma_scale),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_is_halo:new o.Uniform1i(c,f.u_is_halo)}},symbolTextAndIcon:function(c,f){return{u_is_size_zoom_constant:new o.Uniform1i(c,f.u_is_size_zoom_constant),u_is_size_feature_constant:new o.Uniform1i(c,f.u_is_size_feature_constant),u_size_t:new o.Uniform1f(c,f.u_size_t),u_size:new o.Uniform1f(c,f.u_size),u_camera_to_center_distance:new o.Uniform1f(c,f.u_camera_to_center_distance),u_pitch:new o.Uniform1f(c,f.u_pitch),u_rotate_symbol:new o.Uniform1i(c,f.u_rotate_symbol),u_aspect_ratio:new o.Uniform1f(c,f.u_aspect_ratio),u_fade_change:new o.Uniform1f(c,f.u_fade_change),u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_label_plane_matrix:new o.UniformMatrix4f(c,f.u_label_plane_matrix),u_coord_matrix:new o.UniformMatrix4f(c,f.u_coord_matrix),u_is_text:new o.Uniform1i(c,f.u_is_text),u_pitch_with_map:new o.Uniform1i(c,f.u_pitch_with_map),u_texsize:new o.Uniform2f(c,f.u_texsize),u_texsize_icon:new o.Uniform2f(c,f.u_texsize_icon),u_texture:new o.Uniform1i(c,f.u_texture),u_texture_icon:new o.Uniform1i(c,f.u_texture_icon),u_gamma_scale:new o.Uniform1f(c,f.u_gamma_scale),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_is_halo:new o.Uniform1i(c,f.u_is_halo)}},background:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_opacity:new o.Uniform1f(c,f.u_opacity),u_color:new o.UniformColor(c,f.u_color)}},backgroundPattern:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_opacity:new o.Uniform1f(c,f.u_opacity),u_image:new o.Uniform1i(c,f.u_image),u_pattern_tl_a:new o.Uniform2f(c,f.u_pattern_tl_a),u_pattern_br_a:new o.Uniform2f(c,f.u_pattern_br_a),u_pattern_tl_b:new o.Uniform2f(c,f.u_pattern_tl_b),u_pattern_br_b:new o.Uniform2f(c,f.u_pattern_br_b),u_texsize:new o.Uniform2f(c,f.u_texsize),u_mix:new o.Uniform1f(c,f.u_mix),u_pattern_size_a:new o.Uniform2f(c,f.u_pattern_size_a),u_pattern_size_b:new o.Uniform2f(c,f.u_pattern_size_b),u_scale_a:new o.Uniform1f(c,f.u_scale_a),u_scale_b:new o.Uniform1f(c,f.u_scale_b),u_pixel_coord_upper:new o.Uniform2f(c,f.u_pixel_coord_upper),u_pixel_coord_lower:new o.Uniform2f(c,f.u_pixel_coord_lower),u_tile_units_to_pixels:new o.Uniform1f(c,f.u_tile_units_to_pixels)}}};function xu(c,f,h,_,x,S,w){for(var M=c.context,F=M.gl,V=c.useProgram("collisionBox"),ee=[],re=0,ne=0,ve=0;ve<_.length;ve++){var pe=_[ve],Ce=f.getTile(pe),he=Ce.getBucket(h);if(he){var we=pe.posMatrix;x[0]===0&&x[1]===0||(we=c.translatePosMatrix(pe.posMatrix,Ce,x,S));var Be=w?he.textCollisionBox:he.iconCollisionBox,Ge=he.collisionCircleArray;if(Ge.length>0){var st=o.create(),Je=we;o.mul(st,he.placementInvProjMatrix,c.transform.glCoordMatrix),o.mul(st,st,he.placementViewportMatrix),ee.push({circleArray:Ge,circleOffset:ne,transform:Je,invTransform:st}),ne=re+=Ge.length/4}Be&&V.draw(M,F.LINES,oe.disabled,de.disabled,c.colorModeForRenderPass(),Ne.disabled,xs(we,c.transform,Ce),h.id,Be.layoutVertexBuffer,Be.indexBuffer,Be.segments,null,c.transform.zoom,null,null,Be.collisionVertexBuffer)}}if(w&&ee.length){var ft=c.useProgram("collisionCircle"),Et=new o.StructArrayLayout2f1f2i16;Et.resize(4*re),Et._trim();for(var jt=0,Nt=0,ar=ee;Nt=0&&(pe[he.associatedIconIndex]={shiftedAnchor:Et,angle:jt})}else mo(he.numGlyphs,ne)}if(ee){ve.clear();for(var ar=c.icon.placedSymbolArray,Ir=0;Ir0){var w=o.browser.now(),M=(w-c.timeAdded)/S,F=f?(w-f.timeAdded)/S:-1,V=h.getSource(),ee=x.coveringZoomLevel({tileSize:V.tileSize,roundZoom:V.roundZoom}),re=!f||Math.abs(f.tileID.overscaledZ-ee)>Math.abs(c.tileID.overscaledZ-ee),ne=re&&c.refreshedUponExpiration?1:o.clamp(re?M:1-F,0,1);return c.refreshedUponExpiration&&M>=1&&(c.refreshedUponExpiration=!1),f?{opacity:1,mix:1-ne}:{opacity:ne,mix:0}}return{opacity:1,mix:0}}var vh=new o.Color(1,0,0,1),f1=new o.Color(0,1,0,1),vf=new o.Color(0,0,1,1),p1=new o.Color(1,0,1,1),yh=new o.Color(0,1,1,1);function Cc(c,f,h,_){bu(c,0,f+h/2,c.transform.width,h,_)}function xh(c,f,h,_){bu(c,f-h/2,0,h,c.transform.height,_)}function bu(c,f,h,_,x,S){var w=c.context,M=w.gl;M.enable(M.SCISSOR_TEST),M.scissor(f*o.browser.devicePixelRatio,h*o.browser.devicePixelRatio,_*o.browser.devicePixelRatio,x*o.browser.devicePixelRatio),w.clear({color:S}),M.disable(M.SCISSOR_TEST)}function bh(c,f,h){var _=c.context,x=_.gl,S=h.posMatrix,w=c.useProgram("debug"),M=oe.disabled,F=de.disabled,V=c.colorModeForRenderPass();_.activeTexture.set(x.TEXTURE0),c.emptyTexture.bind(x.LINEAR,x.CLAMP_TO_EDGE),w.draw(_,x.LINE_STRIP,M,F,V,Ne.disabled,Nl(S,o.Color.red),"$debug",c.debugBuffer,c.tileBorderIndexBuffer,c.debugSegments);var ee=f.getTileByID(h.key).latestRawTileData,re=Math.floor((ee&&ee.byteLength||0)/1024),ne=f.getTile(h).tileSize,ve=512/Math.min(ne,512)*(h.overscaledZ/c.transform.zoom)*.5,pe=h.canonical.toString();h.overscaledZ!==h.canonical.z&&(pe+=" => "+h.overscaledZ),function(Ce,he){Ce.initDebugOverlayCanvas();var we=Ce.debugOverlayCanvas,Be=Ce.context.gl,Ge=Ce.debugOverlayCanvas.getContext("2d");Ge.clearRect(0,0,we.width,we.height),Ge.shadowColor="white",Ge.shadowBlur=2,Ge.lineWidth=1.5,Ge.strokeStyle="white",Ge.textBaseline="top",Ge.font="bold 36px Open Sans, sans-serif",Ge.fillText(he,5,5),Ge.strokeText(he,5,5),Ce.debugOverlayTexture.update(we),Ce.debugOverlayTexture.bind(Be.LINEAR,Be.CLAMP_TO_EDGE)}(c,pe+" "+re+"kb"),w.draw(_,x.TRIANGLES,M,F,Oe.alphaBlended,Ne.disabled,Nl(S,o.Color.transparent,ve),"$debug",c.debugBuffer,c.quadTriangleIndexBuffer,c.debugSegments)}var Hl={symbol:function(c,f,h,_,x){if(c.renderPass==="translucent"){var S=de.disabled,w=c.colorModeForRenderPass();h.layout.get("text-variable-anchor")&&function(M,F,V,ee,re,ne,ve){for(var pe=F.transform,Ce=re==="map",he=ne==="map",we=0,Be=M;we256&&this.clearStencil(),h.setColorMode(Oe.disabled),h.setDepthMode(oe.disabled);var x=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var S=0,w=f;S256&&this.clearStencil();var c=this.nextStencilID++,f=this.context.gl;return new de({func:f.NOTEQUAL,mask:255},c,255,f.KEEP,f.KEEP,f.REPLACE)},mi.prototype.stencilModeForClipping=function(c){var f=this.context.gl;return new de({func:f.EQUAL,mask:255},this._tileClippingMaskIDs[c.key],0,f.KEEP,f.KEEP,f.REPLACE)},mi.prototype.stencilConfigForOverlap=function(c){var f,h=this.context.gl,_=c.sort(function(F,V){return V.overscaledZ-F.overscaledZ}),x=_[_.length-1].overscaledZ,S=_[0].overscaledZ-x+1;if(S>1){this.currentStencilSource=void 0,this.nextStencilID+S>256&&this.clearStencil();for(var w={},M=0;M=0;this.currentLayer--){var Ge=this.style._layers[_[this.currentLayer]],st=x[Ge.source],Je=V[Ge.source];this._renderTileClippingMasks(Ge,Je),this.renderLayer(this,st,Ge,Je)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<_.length;this.currentLayer++){var ft=this.style._layers[_[this.currentLayer]],Et=x[ft.source],jt=(ft.type==="symbol"?re:ee)[ft.source];this._renderTileClippingMasks(ft,V[ft.source]),this.renderLayer(this,Et,ft,jt)}this.options.showTileBoundaries&&(o.values(this.style._layers).forEach(function(Nt){Nt.source&&!Nt.isHidden(h.transform.zoom)&&(Nt.source!==(F&&F.id)&&(F=h.style.sourceCaches[Nt.source]),(!M||M.getSource().maxzoom0?f.pop():null},mi.prototype.isPatternMissing=function(c){if(!c)return!1;if(!c.from||!c.to)return!0;var f=this.imageManager.getPattern(c.from.toString()),h=this.imageManager.getPattern(c.to.toString());return!f||!h},mi.prototype.useProgram=function(c,f){this.cache=this.cache||{};var h=""+c+(f?f.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[h]||(this.cache[h]=new Vi(this.context,c,Up[c],f,dh[c],this._showOverdrawInspector)),this.cache[h]},mi.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},mi.prototype.setBaseState=function(){var c=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(c.FUNC_ADD)},mi.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=o.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new o.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},mi.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var d1=function(c,f){this.points=c,this.planes=f};d1.fromInvProjectionMatrix=function(c,f,h){var _=Math.pow(2,h),x=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(w){return o.transformMat4([],w,c)}).map(function(w){return o.scale$1([],w,1/w[3]/f*_)}),S=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(w){var M=o.sub([],x[w[0]],x[w[1]]),F=o.sub([],x[w[2]],x[w[1]]),V=o.normalize([],o.cross([],M,F)),ee=-o.dot(V,x[w[1]]);return V.concat(ee)});return new d1(x,S)};var zs=function(c,f){this.min=c,this.max=f,this.center=o.scale$2([],o.add([],this.min,this.max),.5)};zs.prototype.quadrant=function(c){for(var f=[c%2==0,c<2],h=o.clone$2(this.min),_=o.clone$2(this.max),x=0;x=0;if(S===0)return 0;S!==f.length&&(h=!1)}if(h)return 2;for(var M=0;M<3;M++){for(var F=Number.MAX_VALUE,V=-Number.MAX_VALUE,ee=0;eethis.max[M]-this.min[M])return 0}return 1};var jl=function(c,f,h,_){if(c===void 0&&(c=0),f===void 0&&(f=0),h===void 0&&(h=0),_===void 0&&(_=0),isNaN(c)||c<0||isNaN(f)||f<0||isNaN(h)||h<0||isNaN(_)||_<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=c,this.bottom=f,this.left=h,this.right=_};jl.prototype.interpolate=function(c,f,h){return f.top!=null&&c.top!=null&&(this.top=o.number(c.top,f.top,h)),f.bottom!=null&&c.bottom!=null&&(this.bottom=o.number(c.bottom,f.bottom,h)),f.left!=null&&c.left!=null&&(this.left=o.number(c.left,f.left,h)),f.right!=null&&c.right!=null&&(this.right=o.number(c.right,f.right,h)),this},jl.prototype.getCenter=function(c,f){var h=o.clamp((this.left+c-this.right)/2,0,c),_=o.clamp((this.top+f-this.bottom)/2,0,f);return new o.Point(h,_)},jl.prototype.equals=function(c){return this.top===c.top&&this.bottom===c.bottom&&this.left===c.left&&this.right===c.right},jl.prototype.clone=function(){return new jl(this.top,this.bottom,this.left,this.right)},jl.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Dn=function(c,f,h,_,x){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=x===void 0||x,this._minZoom=c||0,this._maxZoom=f||22,this._minPitch=h??0,this._maxPitch=_??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new o.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new jl,this._posMatrixCache={},this._alignedPosMatrixCache={}},_i={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Dn.prototype.clone=function(){var c=new Dn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return c.tileSize=this.tileSize,c.latRange=this.latRange,c.width=this.width,c.height=this.height,c._center=this._center,c.zoom=this.zoom,c.angle=this.angle,c._fov=this._fov,c._pitch=this._pitch,c._unmodified=this._unmodified,c._edgeInsets=this._edgeInsets.clone(),c._calcMatrices(),c},_i.minZoom.get=function(){return this._minZoom},_i.minZoom.set=function(c){this._minZoom!==c&&(this._minZoom=c,this.zoom=Math.max(this.zoom,c))},_i.maxZoom.get=function(){return this._maxZoom},_i.maxZoom.set=function(c){this._maxZoom!==c&&(this._maxZoom=c,this.zoom=Math.min(this.zoom,c))},_i.minPitch.get=function(){return this._minPitch},_i.minPitch.set=function(c){this._minPitch!==c&&(this._minPitch=c,this.pitch=Math.max(this.pitch,c))},_i.maxPitch.get=function(){return this._maxPitch},_i.maxPitch.set=function(c){this._maxPitch!==c&&(this._maxPitch=c,this.pitch=Math.min(this.pitch,c))},_i.renderWorldCopies.get=function(){return this._renderWorldCopies},_i.renderWorldCopies.set=function(c){c===void 0?c=!0:c===null&&(c=!1),this._renderWorldCopies=c},_i.worldSize.get=function(){return this.tileSize*this.scale},_i.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},_i.size.get=function(){return new o.Point(this.width,this.height)},_i.bearing.get=function(){return-this.angle/Math.PI*180},_i.bearing.set=function(c){var f=-o.wrap(c,-180,180)*Math.PI/180;this.angle!==f&&(this._unmodified=!1,this.angle=f,this._calcMatrices(),this.rotationMatrix=o.create$2(),o.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},_i.pitch.get=function(){return this._pitch/Math.PI*180},_i.pitch.set=function(c){var f=o.clamp(c,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==f&&(this._unmodified=!1,this._pitch=f,this._calcMatrices())},_i.fov.get=function(){return this._fov/Math.PI*180},_i.fov.set=function(c){c=Math.max(.01,Math.min(60,c)),this._fov!==c&&(this._unmodified=!1,this._fov=c/180*Math.PI,this._calcMatrices())},_i.zoom.get=function(){return this._zoom},_i.zoom.set=function(c){var f=Math.min(Math.max(c,this.minZoom),this.maxZoom);this._zoom!==f&&(this._unmodified=!1,this._zoom=f,this.scale=this.zoomScale(f),this.tileZoom=Math.floor(f),this.zoomFraction=f-this.tileZoom,this._constrain(),this._calcMatrices())},_i.center.get=function(){return this._center},_i.center.set=function(c){c.lat===this._center.lat&&c.lng===this._center.lng||(this._unmodified=!1,this._center=c,this._constrain(),this._calcMatrices())},_i.padding.get=function(){return this._edgeInsets.toJSON()},_i.padding.set=function(c){this._edgeInsets.equals(c)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,c,1),this._calcMatrices())},_i.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Dn.prototype.isPaddingEqual=function(c){return this._edgeInsets.equals(c)},Dn.prototype.interpolatePadding=function(c,f,h){this._unmodified=!1,this._edgeInsets.interpolate(c,f,h),this._constrain(),this._calcMatrices()},Dn.prototype.coveringZoomLevel=function(c){var f=(c.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/c.tileSize));return Math.max(0,f)},Dn.prototype.getVisibleUnwrappedCoordinates=function(c){var f=[new o.UnwrappedTileID(0,c)];if(this._renderWorldCopies)for(var h=this.pointCoordinate(new o.Point(0,0)),_=this.pointCoordinate(new o.Point(this.width,0)),x=this.pointCoordinate(new o.Point(this.width,this.height)),S=this.pointCoordinate(new o.Point(0,this.height)),w=Math.floor(Math.min(h.x,_.x,x.x,S.x)),M=Math.floor(Math.max(h.x,_.x,x.x,S.x)),F=w-1;F<=M+1;F++)F!==0&&f.push(new o.UnwrappedTileID(F,c));return f},Dn.prototype.coveringTiles=function(c){var f=this.coveringZoomLevel(c),h=f;if(c.minzoom!==void 0&&fc.maxzoom&&(f=c.maxzoom);var _=o.MercatorCoordinate.fromLngLat(this.center),x=Math.pow(2,f),S=[x*_.x,x*_.y,0],w=d1.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,f),M=c.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(M=f);var F=function(Nt){return{aabb:new zs([Nt*x,0,0],[(Nt+1)*x,x,0]),zoom:0,x:0,y:0,wrap:Nt,fullyVisible:!1}},V=[],ee=[],re=f,ne=c.reparseOverscaled?h:f;if(this._renderWorldCopies)for(var ve=1;ve<=3;ve++)V.push(F(-ve)),V.push(F(ve));for(V.push(F(0));V.length>0;){var pe=V.pop(),Ce=pe.x,he=pe.y,we=pe.fullyVisible;if(!we){var Be=pe.aabb.intersects(w);if(Be===0)continue;we=Be===2}var Ge=pe.aabb.distanceX(S),st=pe.aabb.distanceY(S),Je=Math.max(Math.abs(Ge),Math.abs(st));if(pe.zoom===re||Je>3+(1<=M)ee.push({tileID:new o.OverscaledTileID(pe.zoom===re?ne:pe.zoom,pe.wrap,pe.zoom,Ce,he),distanceSq:o.sqrLen([S[0]-.5-Ce,S[1]-.5-he])});else for(var ft=0;ft<4;ft++){var Et=(Ce<<1)+ft%2,jt=(he<<1)+(ft>>1);V.push({aabb:pe.aabb.quadrant(ft),zoom:pe.zoom+1,x:Et,y:jt,wrap:pe.wrap,fullyVisible:we})}}return ee.sort(function(Nt,ar){return Nt.distanceSq-ar.distanceSq}).map(function(Nt){return Nt.tileID})},Dn.prototype.resize=function(c,f){this.width=c,this.height=f,this.pixelsToGLUnits=[2/c,-2/f],this._constrain(),this._calcMatrices()},_i.unmodified.get=function(){return this._unmodified},Dn.prototype.zoomScale=function(c){return Math.pow(2,c)},Dn.prototype.scaleZoom=function(c){return Math.log(c)/Math.LN2},Dn.prototype.project=function(c){var f=o.clamp(c.lat,-this.maxValidLatitude,this.maxValidLatitude);return new o.Point(o.mercatorXfromLng(c.lng)*this.worldSize,o.mercatorYfromLat(f)*this.worldSize)},Dn.prototype.unproject=function(c){return new o.MercatorCoordinate(c.x/this.worldSize,c.y/this.worldSize).toLngLat()},_i.point.get=function(){return this.project(this.center)},Dn.prototype.setLocationAtPoint=function(c,f){var h=this.pointCoordinate(f),_=this.pointCoordinate(this.centerPoint),x=this.locationCoordinate(c),S=new o.MercatorCoordinate(x.x-(h.x-_.x),x.y-(h.y-_.y));this.center=this.coordinateLocation(S),this._renderWorldCopies&&(this.center=this.center.wrap())},Dn.prototype.locationPoint=function(c){return this.coordinatePoint(this.locationCoordinate(c))},Dn.prototype.pointLocation=function(c){return this.coordinateLocation(this.pointCoordinate(c))},Dn.prototype.locationCoordinate=function(c){return o.MercatorCoordinate.fromLngLat(c)},Dn.prototype.coordinateLocation=function(c){return c.toLngLat()},Dn.prototype.pointCoordinate=function(c){var f=[c.x,c.y,0,1],h=[c.x,c.y,1,1];o.transformMat4(f,f,this.pixelMatrixInverse),o.transformMat4(h,h,this.pixelMatrixInverse);var _=f[3],x=h[3],S=f[1]/_,w=h[1]/x,M=f[2]/_,F=h[2]/x,V=M===F?0:(0-M)/(F-M);return new o.MercatorCoordinate(o.number(f[0]/_,h[0]/x,V)/this.worldSize,o.number(S,w,V)/this.worldSize)},Dn.prototype.coordinatePoint=function(c){var f=[c.x*this.worldSize,c.y*this.worldSize,0,1];return o.transformMat4(f,f,this.pixelMatrix),new o.Point(f[0]/f[3],f[1]/f[3])},Dn.prototype.getBounds=function(){return new o.LngLatBounds().extend(this.pointLocation(new o.Point(0,0))).extend(this.pointLocation(new o.Point(this.width,0))).extend(this.pointLocation(new o.Point(this.width,this.height))).extend(this.pointLocation(new o.Point(0,this.height)))},Dn.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new o.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Dn.prototype.setMaxBounds=function(c){c?(this.lngRange=[c.getWest(),c.getEast()],this.latRange=[c.getSouth(),c.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Dn.prototype.calculatePosMatrix=function(c,f){f===void 0&&(f=!1);var h=c.key,_=f?this._alignedPosMatrixCache:this._posMatrixCache;if(_[h])return _[h];var x=c.canonical,S=this.worldSize/this.zoomScale(x.z),w=x.x+Math.pow(2,x.z)*c.wrap,M=o.identity(new Float64Array(16));return o.translate(M,M,[w*S,x.y*S,0]),o.scale(M,M,[S/o.EXTENT,S/o.EXTENT,1]),o.multiply(M,f?this.alignedProjMatrix:this.projMatrix,M),_[h]=new Float32Array(M),_[h]},Dn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Dn.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var c,f,h,_,x=-90,S=90,w=-180,M=180,F=this.size,V=this._unmodified;if(this.latRange){var ee=this.latRange;x=o.mercatorYfromLat(ee[1])*this.worldSize,c=(S=o.mercatorYfromLat(ee[0])*this.worldSize)-xS&&(_=S-Ce)}if(this.lngRange){var he=ne.x,we=F.x/2;he-weM&&(h=M-we)}h===void 0&&_===void 0||(this.center=this.unproject(new o.Point(h!==void 0?h:ne.x,_!==void 0?_:ne.y))),this._unmodified=V,this._constraining=!1}},Dn.prototype._calcMatrices=function(){if(this.height){var c=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var f=Math.PI/2+this._pitch,h=this._fov*(.5+c.y/this.height),_=Math.sin(h)*this.cameraToCenterDistance/Math.sin(o.clamp(Math.PI-f-h,.01,Math.PI-.01)),x=this.point,S=x.x,w=x.y,M=1.01*(Math.cos(Math.PI/2-this._pitch)*_+this.cameraToCenterDistance),F=this.height/50,V=new Float64Array(16);o.perspective(V,this._fov,this.width/this.height,F,M),V[8]=2*-c.x/this.width,V[9]=2*c.y/this.height,o.scale(V,V,[1,-1,1]),o.translate(V,V,[0,0,-this.cameraToCenterDistance]),o.rotateX(V,V,this._pitch),o.rotateZ(V,V,this.angle),o.translate(V,V,[-S,-w,0]),this.mercatorMatrix=o.scale([],V,[this.worldSize,this.worldSize,this.worldSize]),o.scale(V,V,[1,1,o.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=V,this.invProjMatrix=o.invert([],this.projMatrix);var ee=this.width%2/2,re=this.height%2/2,ne=Math.cos(this.angle),ve=Math.sin(this.angle),pe=S-Math.round(S)+ne*ee+ve*re,Ce=w-Math.round(w)+ne*re+ve*ee,he=new Float64Array(V);if(o.translate(he,he,[pe>.5?pe-1:pe,Ce>.5?Ce-1:Ce,0]),this.alignedProjMatrix=he,V=o.create(),o.scale(V,V,[this.width/2,-this.height/2,1]),o.translate(V,V,[1,-1,0]),this.labelPlaneMatrix=V,V=o.create(),o.scale(V,V,[1,-1,1]),o.translate(V,V,[-1,-1,0]),o.scale(V,V,[2/this.width,2/this.height,1]),this.glCoordMatrix=V,this.pixelMatrix=o.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(V=o.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=V,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Dn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var c=this.pointCoordinate(new o.Point(0,0)),f=[c.x*this.worldSize,c.y*this.worldSize,0,1];return o.transformMat4(f,f,this.pixelMatrix)[3]/this.cameraToCenterDistance},Dn.prototype.getCameraPoint=function(){var c=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new o.Point(0,c))},Dn.prototype.getCameraQueryGeometry=function(c){var f=this.getCameraPoint();if(c.length===1)return[c[0],f];for(var h=f.x,_=f.y,x=f.x,S=f.y,w=0,M=c;w=3&&!c.some(function(h){return isNaN(h)})){var f=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:f,pitch:+(c[4]||0)}),!0}return!1},Za.prototype._updateHashUnthrottled=function(){var c=o.window.location.href.replace(/(#.+)?$/,this.getHashString());try{o.window.history.replaceState(o.window.history.state,null,c)}catch{}};var Rc={linearity:.3,easing:o.bezier(0,0,.3,1)},Gu=o.extend({deceleration:2500,maxSpeed:1400},Rc),Ic=o.extend({deceleration:20,maxSpeed:1400},Rc),yf=o.extend({deceleration:1e3,maxSpeed:360},Rc),m1=o.extend({deceleration:1e3,maxSpeed:90},Rc),Mc=function(c){this._map=c,this.clear()};function Xl(c,f){(!c.duration||c.duration0&&f-c[0].time>160;)c.shift()},Mc.prototype._onMoveEnd=function(c){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var f={zoom:0,bearing:0,pitch:0,pan:new o.Point(0,0),pinchAround:void 0,around:void 0},h=0,_=this._inertiaBuffer;h<_.length;h+=1){var x=_[h].settings;f.zoom+=x.zoomDelta||0,f.bearing+=x.bearingDelta||0,f.pitch+=x.pitchDelta||0,x.panDelta&&f.pan._add(x.panDelta),x.around&&(f.around=x.around),x.pinchAround&&(f.pinchAround=x.pinchAround)}var S=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,w={};if(f.pan.mag()){var M=go(f.pan.mag(),S,o.extend({},Gu,c||{}));w.offset=f.pan.mult(M.amount/f.pan.mag()),w.center=this._map.transform.center,Xl(w,M)}if(f.zoom){var F=go(f.zoom,S,Ic);w.zoom=this._map.transform.zoom+F.amount,Xl(w,F)}if(f.bearing){var V=go(f.bearing,S,yf);w.bearing=this._map.transform.bearing+o.clamp(V.amount,-179,179),Xl(w,V)}if(f.pitch){var ee=go(f.pitch,S,m1);w.pitch=this._map.transform.pitch+ee.amount,Xl(w,ee)}if(w.zoom||w.bearing){var re=f.pinchAround===void 0?f.around:f.pinchAround;w.around=re?this._map.unproject(re):this._map.getCenter()}return this.clear(),o.extend(w,{noMoveStart:!0})}};var wi=function(c){function f(_,x,S,w){w===void 0&&(w={});var M=m.mousePos(x.getCanvasContainer(),S),F=x.unproject(M);c.call(this,_,o.extend({point:M,lngLat:F,originalEvent:S},w)),this._defaultPrevented=!1,this.target=x}c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f;var h={defaultPrevented:{configurable:!0}};return f.prototype.preventDefault=function(){this._defaultPrevented=!0},h.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(f.prototype,h),f}(o.Event),Zu=function(c){function f(_,x,S){var w=_==="touchend"?S.changedTouches:S.touches,M=m.touchPos(x.getCanvasContainer(),w),F=M.map(function(re){return x.unproject(re)}),V=M.reduce(function(re,ne,ve,pe){return re.add(ne.div(pe.length))},new o.Point(0,0)),ee=x.unproject(V);c.call(this,_,{points:M,point:V,lngLats:F,lngLat:ee,originalEvent:S}),this._defaultPrevented=!1}c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f;var h={defaultPrevented:{configurable:!0}};return f.prototype.preventDefault=function(){this._defaultPrevented=!0},h.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(f.prototype,h),f}(o.Event),Eh=function(c){function f(_,x,S){c.call(this,_,{originalEvent:S}),this._defaultPrevented=!1}c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f;var h={defaultPrevented:{configurable:!0}};return f.prototype.preventDefault=function(){this._defaultPrevented=!0},h.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(f.prototype,h),f}(o.Event),Zi=function(c,f){this._map=c,this._clickTolerance=f.clickTolerance};Zi.prototype.reset=function(){delete this._mousedownPos},Zi.prototype.wheel=function(c){return this._firePreventable(new Eh(c.type,this._map,c))},Zi.prototype.mousedown=function(c,f){return this._mousedownPos=f,this._firePreventable(new wi(c.type,this._map,c))},Zi.prototype.mouseup=function(c){this._map.fire(new wi(c.type,this._map,c))},Zi.prototype.click=function(c,f){this._mousedownPos&&this._mousedownPos.dist(f)>=this._clickTolerance||this._map.fire(new wi(c.type,this._map,c))},Zi.prototype.dblclick=function(c){return this._firePreventable(new wi(c.type,this._map,c))},Zi.prototype.mouseover=function(c){this._map.fire(new wi(c.type,this._map,c))},Zi.prototype.mouseout=function(c){this._map.fire(new wi(c.type,this._map,c))},Zi.prototype.touchstart=function(c){return this._firePreventable(new Zu(c.type,this._map,c))},Zi.prototype.touchmove=function(c){this._map.fire(new Zu(c.type,this._map,c))},Zi.prototype.touchend=function(c){this._map.fire(new Zu(c.type,this._map,c))},Zi.prototype.touchcancel=function(c){this._map.fire(new Zu(c.type,this._map,c))},Zi.prototype._firePreventable=function(c){if(this._map.fire(c),c.defaultPrevented)return{}},Zi.prototype.isEnabled=function(){return!0},Zi.prototype.isActive=function(){return!1},Zi.prototype.enable=function(){},Zi.prototype.disable=function(){};var _r=function(c){this._map=c};_r.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},_r.prototype.mousemove=function(c){this._map.fire(new wi(c.type,this._map,c))},_r.prototype.mousedown=function(){this._delayContextMenu=!0},_r.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new wi("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},_r.prototype.contextmenu=function(c){this._delayContextMenu?this._contextMenuEvent=c:this._map.fire(new wi(c.type,this._map,c)),this._map.listens("contextmenu")&&c.preventDefault()},_r.prototype.isEnabled=function(){return!0},_r.prototype.isActive=function(){return!1},_r.prototype.enable=function(){},_r.prototype.disable=function(){};var ya=function(c,f){this._map=c,this._el=c.getCanvasContainer(),this._container=c.getContainer(),this._clickTolerance=f.clickTolerance||1};function Pc(c,f){for(var h={},_=0;_this.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=c.timeStamp),h.length===this.numTouches&&(this.centroid=function(_){for(var x=new o.Point(0,0),S=0,w=_;S30)&&(this.aborted=!0)}}},$u.prototype.touchend=function(c,f,h){if((!this.centroid||c.timeStamp-this.startTime>500)&&(this.aborted=!0),h.length===0){var _=!this.aborted&&this.centroid;if(this.reset(),_)return _}};var sa=function(c){this.singleTap=new $u(c),this.numTaps=c.numTaps,this.reset()};sa.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},sa.prototype.touchstart=function(c,f,h){this.singleTap.touchstart(c,f,h)},sa.prototype.touchmove=function(c,f,h){this.singleTap.touchmove(c,f,h)},sa.prototype.touchend=function(c,f,h){var _=this.singleTap.touchend(c,f,h);if(_){var x=c.timeStamp-this.lastTime<500,S=!this.lastTap||this.lastTap.dist(_)<30;if(x&&S||this.reset(),this.count++,this.lastTime=c.timeStamp,this.lastTap=_,this.count===this.numTaps)return this.reset(),_}};var ai=function(){this._zoomIn=new sa({numTouches:1,numTaps:2}),this._zoomOut=new sa({numTouches:2,numTaps:1}),this.reset()};ai.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},ai.prototype.touchstart=function(c,f,h){this._zoomIn.touchstart(c,f,h),this._zoomOut.touchstart(c,f,h)},ai.prototype.touchmove=function(c,f,h){this._zoomIn.touchmove(c,f,h),this._zoomOut.touchmove(c,f,h)},ai.prototype.touchend=function(c,f,h){var _=this,x=this._zoomIn.touchend(c,f,h),S=this._zoomOut.touchend(c,f,h);return x?(this._active=!0,c.preventDefault(),setTimeout(function(){return _.reset()},0),{cameraAnimation:function(w){return w.easeTo({duration:300,zoom:w.getZoom()+1,around:w.unproject(x)},{originalEvent:c})}}):S?(this._active=!0,c.preventDefault(),setTimeout(function(){return _.reset()},0),{cameraAnimation:function(w){return w.easeTo({duration:300,zoom:w.getZoom()-1,around:w.unproject(S)},{originalEvent:c})}}):void 0},ai.prototype.touchcancel=function(){this.reset()},ai.prototype.enable=function(){this._enabled=!0},ai.prototype.disable=function(){this._enabled=!1,this.reset()},ai.prototype.isEnabled=function(){return this._enabled},ai.prototype.isActive=function(){return this._active};var _1={0:1,2:2},Jt=function(c){this.reset(),this._clickTolerance=c.clickTolerance||1};Jt.prototype.blur=function(){this.reset()},Jt.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Jt.prototype._correctButton=function(c,f){return!1},Jt.prototype._move=function(c,f){return{}},Jt.prototype.mousedown=function(c,f){if(!this._lastPoint){var h=m.mouseButton(c);this._correctButton(c,h)&&(this._lastPoint=f,this._eventButton=h)}},Jt.prototype.mousemoveWindow=function(c,f){var h=this._lastPoint;if(h){if(c.preventDefault(),function(_,x){var S=_1[x];return _.buttons===void 0||(_.buttons&S)!==S}(c,this._eventButton))this.reset();else if(this._moved||!(f.dist(h)0&&(this._active=!0);var _=Pc(h,f),x=new o.Point(0,0),S=new o.Point(0,0),w=0;for(var M in _){var F=_[M],V=this._touches[M];V&&(x._add(F),S._add(F.sub(V)),w++,_[M]=F)}if(this._touches=_,!(wMath.abs(c.x)}var x1=function(c){function f(){c.apply(this,arguments)}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f.prototype.reset=function(){c.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},f.prototype._start=function(h){this._lastPoints=h,qu(h[0].sub(h[1]))&&(this._valid=!1)},f.prototype._move=function(h,_,x){var S=h[0].sub(this._lastPoints[0]),w=h[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(S,w,x.timeStamp),this._valid)return this._lastPoints=h,this._active=!0,{pitchDelta:(S.y+w.y)/2*-.5}},f.prototype.gestureBeginsVertically=function(h,_,x){if(this._valid!==void 0)return this._valid;var S=h.mag()>=2,w=_.mag()>=2;if(S||w){if(!S||!w)return this._firstMove===void 0&&(this._firstMove=x),x-this._firstMove<100&&void 0;var M=h.y>0==_.y>0;return qu(h)&&qu(_)&&M}},f}(La),Th={panStep:100,bearingStep:15,pitchStep:10},Da=function(){var c=Th;this._panStep=c.panStep,this._bearingStep=c.bearingStep,this._pitchStep=c.pitchStep,this._rotationDisabled=!1};function $a(c){return c*(2-c)}Da.prototype.blur=function(){this.reset()},Da.prototype.reset=function(){this._active=!1},Da.prototype.keydown=function(c){var f=this;if(!(c.altKey||c.ctrlKey||c.metaKey)){var h=0,_=0,x=0,S=0,w=0;switch(c.keyCode){case 61:case 107:case 171:case 187:h=1;break;case 189:case 109:case 173:h=-1;break;case 37:c.shiftKey?_=-1:(c.preventDefault(),S=-1);break;case 39:c.shiftKey?_=1:(c.preventDefault(),S=1);break;case 38:c.shiftKey?x=1:(c.preventDefault(),w=-1);break;case 40:c.shiftKey?x=-1:(c.preventDefault(),w=1);break;default:return}return this._rotationDisabled&&(_=0,x=0),{cameraAnimation:function(M){var F=M.getZoom();M.easeTo({duration:300,easeId:"keyboardHandler",easing:$a,zoom:h?Math.round(F)+h*(c.shiftKey?2:1):F,bearing:M.getBearing()+_*f._bearingStep,pitch:M.getPitch()+x*f._pitchStep,offset:[-S*f._panStep,-w*f._panStep],center:M.getCenter()},{originalEvent:c})}}}},Da.prototype.enable=function(){this._enabled=!0},Da.prototype.disable=function(){this._enabled=!1,this.reset()},Da.prototype.isEnabled=function(){return this._enabled},Da.prototype.isActive=function(){return this._active},Da.prototype.disableRotation=function(){this._rotationDisabled=!0},Da.prototype.enableRotation=function(){this._rotationDisabled=!1};var cn=function(c,f){this._map=c,this._el=c.getCanvasContainer(),this._handler=f,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,o.bindAll(["_onTimeout"],this)};cn.prototype.setZoomRate=function(c){this._defaultZoomRate=c},cn.prototype.setWheelZoomRate=function(c){this._wheelZoomRate=c},cn.prototype.isEnabled=function(){return!!this._enabled},cn.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},cn.prototype.isZooming=function(){return!!this._zooming},cn.prototype.enable=function(c){this.isEnabled()||(this._enabled=!0,this._aroundCenter=c&&c.around==="center")},cn.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},cn.prototype.wheel=function(c){if(this.isEnabled()){var f=c.deltaMode===o.window.WheelEvent.DOM_DELTA_LINE?40*c.deltaY:c.deltaY,h=o.browser.now(),_=h-(this._lastWheelEventTime||0);this._lastWheelEventTime=h,f!==0&&f%4.000244140625==0?this._type="wheel":f!==0&&Math.abs(f)<4?this._type="trackpad":_>400?(this._type=null,this._lastValue=f,this._timeout=setTimeout(this._onTimeout,40,c)):this._type||(this._type=Math.abs(_*f)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,f+=this._lastValue)),c.shiftKey&&f&&(f/=4),this._type&&(this._lastWheelEvent=c,this._delta-=f,this._active||this._start(c)),c.preventDefault()}},cn.prototype._onTimeout=function(c){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(c)},cn.prototype._start=function(c){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var f=m.mousePos(this._el,c);this._around=o.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(f)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},cn.prototype.renderFrame=function(){var c=this;if(this._frameId&&(this._frameId=null,this.isActive())){var f=this._map.transform;if(this._delta!==0){var h=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,_=2/(1+Math.exp(-Math.abs(this._delta*h)));this._delta<0&&_!==0&&(_=1/_);var x=typeof this._targetZoom=="number"?f.zoomScale(this._targetZoom):f.scale;this._targetZoom=Math.min(f.maxZoom,Math.max(f.minZoom,f.scaleZoom(x*_))),this._type==="wheel"&&(this._startZoom=f.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var S,w=typeof this._targetZoom=="number"?this._targetZoom:f.zoom,M=this._startZoom,F=this._easing,V=!1;if(this._type==="wheel"&&M&&F){var ee=Math.min((o.browser.now()-this._lastWheelEventTime)/200,1),re=F(ee);S=o.number(M,w,re),ee<1?this._frameId||(this._frameId=!0):V=!0}else S=w,V=!0;return this._active=!0,V&&(this._active=!1,this._finishTimeout=setTimeout(function(){c._zooming=!1,c._handler._triggerRenderFrame(),delete c._targetZoom,delete c._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!V,zoomDelta:S-f.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},cn.prototype._smoothOutEasing=function(c){var f=o.ease;if(this._prevEase){var h=this._prevEase,_=(o.browser.now()-h.start)/h.duration,x=h.easing(_+.01)-h.easing(_),S=.27/Math.sqrt(x*x+1e-4)*.01,w=Math.sqrt(.0729-S*S);f=o.bezier(S,w,.25,1)}return this._prevEase={start:o.browser.now(),duration:c,easing:f},f},cn.prototype.blur=function(){this.reset()},cn.prototype.reset=function(){this._active=!1};var qa=function(c,f){this._clickZoom=c,this._tapZoom=f};qa.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},qa.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},qa.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},qa.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ya=function(){this.reset()};Ya.prototype.reset=function(){this._active=!1},Ya.prototype.blur=function(){this.reset()},Ya.prototype.dblclick=function(c,f){return c.preventDefault(),{cameraAnimation:function(h){h.easeTo({duration:300,zoom:h.getZoom()+(c.shiftKey?-1:1),around:h.unproject(f)},{originalEvent:c})}}},Ya.prototype.enable=function(){this._enabled=!0},Ya.prototype.disable=function(){this._enabled=!1,this.reset()},Ya.prototype.isEnabled=function(){return this._enabled},Ya.prototype.isActive=function(){return this._active};var Do=function(){this._tap=new sa({numTouches:1,numTaps:1}),this.reset()};Do.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Do.prototype.touchstart=function(c,f,h){this._swipePoint||(this._tapTime&&c.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?h.length>0&&(this._swipePoint=f[0],this._swipeTouch=h[0].identifier):this._tap.touchstart(c,f,h))},Do.prototype.touchmove=function(c,f,h){if(this._tapTime){if(this._swipePoint){if(h[0].identifier!==this._swipeTouch)return;var _=f[0],x=_.y-this._swipePoint.y;return this._swipePoint=_,c.preventDefault(),this._active=!0,{zoomDelta:x/128}}}else this._tap.touchmove(c,f,h)},Do.prototype.touchend=function(c,f,h){this._tapTime?this._swipePoint&&h.length===0&&this.reset():this._tap.touchend(c,f,h)&&(this._tapTime=c.timeStamp)},Do.prototype.touchcancel=function(){this.reset()},Do.prototype.enable=function(){this._enabled=!0},Do.prototype.disable=function(){this._enabled=!1,this.reset()},Do.prototype.isEnabled=function(){return this._enabled},Do.prototype.isActive=function(){return this._active};var Wl=function(c,f,h){this._el=c,this._mousePan=f,this._touchPan=h};Wl.prototype.enable=function(c){this._inertiaOptions=c||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Wl.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Wl.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Wl.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var _l=function(c,f,h){this._pitchWithRotate=c.pitchWithRotate,this._mouseRotate=f,this._mousePitch=h};_l.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},_l.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},_l.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},_l.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var ss=function(c,f,h,_){this._el=c,this._touchZoom=f,this._touchRotate=h,this._tapDragZoom=_,this._rotationDisabled=!1,this._enabled=!0};ss.prototype.enable=function(c){this._touchZoom.enable(c),this._rotationDisabled||this._touchRotate.enable(c),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},ss.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},ss.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},ss.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},ss.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},ss.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Jo=function(c){return c.zoom||c.drag||c.pitch||c.rotate},Yu=function(c){function f(){c.apply(this,arguments)}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f}(o.Event);function Rr(c){return c.panDelta&&c.panDelta.mag()||c.zoomDelta||c.bearingDelta||c.pitchDelta}var xr=function(c,f){this._map=c,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Mc(c),this._bearingSnap=f.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(f),o.bindAll(["handleEvent","handleWindowEvent"],this);var h=this._el;this._listeners=[[h,"touchstart",{passive:!0}],[h,"touchmove",{passive:!1}],[h,"touchend",void 0],[h,"touchcancel",void 0],[h,"mousedown",void 0],[h,"mousemove",void 0],[h,"mouseup",void 0],[o.window.document,"mousemove",{capture:!0}],[o.window.document,"mouseup",void 0],[h,"mouseover",void 0],[h,"mouseout",void 0],[h,"dblclick",void 0],[h,"click",void 0],[h,"keydown",{capture:!1}],[h,"keyup",void 0],[h,"wheel",{passive:!1}],[h,"contextmenu",void 0],[o.window,"blur",void 0]];for(var _=0,x=this._listeners;_w?Math.min(2,ft):Math.max(.5,ft),Ir=Math.pow(ar,1-jt),Br=S.unproject(st.add(Je.mult(jt*Ir)).mult(Nt));S.setLocationAtPoint(S.renderWorldCopies?Br.wrap():Br,Ce)}x._fireMoveEvents(_)},function(jt){x._afterEase(_,jt)},h),this},f.prototype._prepareEase=function(h,_,x){x===void 0&&(x={}),this._moving=!0,_||x.moving||this.fire(new o.Event("movestart",h)),this._zooming&&!x.zooming&&this.fire(new o.Event("zoomstart",h)),this._rotating&&!x.rotating&&this.fire(new o.Event("rotatestart",h)),this._pitching&&!x.pitching&&this.fire(new o.Event("pitchstart",h))},f.prototype._fireMoveEvents=function(h){this.fire(new o.Event("move",h)),this._zooming&&this.fire(new o.Event("zoom",h)),this._rotating&&this.fire(new o.Event("rotate",h)),this._pitching&&this.fire(new o.Event("pitch",h))},f.prototype._afterEase=function(h,_){if(!this._easeId||!_||this._easeId!==_){delete this._easeId;var x=this._zooming,S=this._rotating,w=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,x&&this.fire(new o.Event("zoomend",h)),S&&this.fire(new o.Event("rotateend",h)),w&&this.fire(new o.Event("pitchend",h)),this.fire(new o.Event("moveend",h))}},f.prototype.flyTo=function(h,_){var x=this;if(!h.essential&&o.browser.prefersReducedMotion){var S=o.pick(h,["center","zoom","bearing","pitch","around"]);return this.jumpTo(S,_)}this.stop(),h=o.extend({offset:[0,0],speed:1.2,curve:1.42,easing:o.ease},h);var w=this.transform,M=this.getZoom(),F=this.getBearing(),V=this.getPitch(),ee=this.getPadding(),re="zoom"in h?o.clamp(+h.zoom,w.minZoom,w.maxZoom):M,ne="bearing"in h?this._normalizeBearing(h.bearing,F):F,ve="pitch"in h?+h.pitch:V,pe="padding"in h?h.padding:w.padding,Ce=w.zoomScale(re-M),he=o.Point.convert(h.offset),we=w.centerPoint.add(he),Be=w.pointLocation(we),Ge=o.LngLat.convert(h.center||Be);this._normalizeCenter(Ge);var st=w.project(Be),Je=w.project(Ge).sub(st),ft=h.curve,Et=Math.max(w.width,w.height),jt=Et/Ce,Nt=Je.mag();if("minZoom"in h){var ar=o.clamp(Math.min(h.minZoom,M,re),w.minZoom,w.maxZoom),Ir=Et/w.zoomScale(ar-M);ft=Math.sqrt(Ir/Nt*2)}var Br=ft*ft;function Dr(Wr){var Vr=(jt*jt-Et*Et+(Wr?-1:1)*Br*Br*Nt*Nt)/(2*(Wr?jt:Et)*Br*Nt);return Math.log(Math.sqrt(Vr*Vr+1)-Vr)}function Nn(Wr){return(Math.exp(Wr)-Math.exp(-Wr))/2}function fr(Wr){return(Math.exp(Wr)+Math.exp(-Wr))/2}var qr=Dr(0),hn=function(Wr){return fr(qr)/fr(qr+ft*Wr)},Zr=function(Wr){return Et*((fr(qr)*(Nn(Vr=qr+ft*Wr)/fr(Vr))-Nn(qr))/Br)/Nt;var Vr},Xr=(Dr(1)-qr)/ft;if(Math.abs(Nt)<1e-6||!isFinite(Xr)){if(Math.abs(Et-jt)<1e-6)return this.easeTo(h,_);var un=jth.maxDuration&&(h.duration=0),this._zooming=!0,this._rotating=F!==ne,this._pitching=ve!==V,this._padding=!w.isPaddingEqual(pe),this._prepareEase(_,!1),this._ease(function(Wr){var Vr=Wr*Xr,to=1/hn(Vr);w.zoom=Wr===1?re:M+w.scaleZoom(to),x._rotating&&(w.bearing=o.number(F,ne,Wr)),x._pitching&&(w.pitch=o.number(V,ve,Wr)),x._padding&&(w.interpolatePadding(ee,pe,Wr),we=w.centerPoint.add(he));var Mi=Wr===1?Ge:w.unproject(st.add(Je.mult(Zr(Vr))).mult(to));w.setLocationAtPoint(w.renderWorldCopies?Mi.wrap():Mi,we),x._fireMoveEvents(_)},function(){return x._afterEase(_)},h),this},f.prototype.isEasing=function(){return!!this._easeFrameId},f.prototype.stop=function(){return this._stop()},f.prototype._stop=function(h,_){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var x=this._onEaseEnd;delete this._onEaseEnd,x.call(this,_)}if(!h){var S=this.handlers;S&&S.stop(!1)}return this},f.prototype._ease=function(h,_,x){x.animate===!1||x.duration===0?(h(1),_()):(this._easeStart=o.browser.now(),this._easeOptions=x,this._onEaseFrame=h,this._onEaseEnd=_,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},f.prototype._renderFrameCallback=function(){var h=Math.min((o.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(h)),h<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},f.prototype._normalizeBearing=function(h,_){h=o.wrap(h,-180,180);var x=Math.abs(h-_);return Math.abs(h-360-_)180?-360:x<-180?360:0}},f}(o.Evented),ea=function(c){c===void 0&&(c={}),this.options=c,o.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ea.prototype.getDefaultPosition=function(){return"bottom-right"},ea.prototype.onAdd=function(c){var f=this.options&&this.options.compact;return this._map=c,this._container=m.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=m.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=m.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),f&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),f===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ea.prototype.onRemove=function(){m.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ea.prototype._setElementTitle=function(c,f){var h=this._map._getUIString("AttributionControl."+f);c.title=h,c.setAttribute("aria-label",h)},ea.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},ea.prototype._updateEditLink=function(){var c=this._editLink;c||(c=this._editLink=this._container.querySelector(".mapbox-improve-map"));var f=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||o.config.ACCESS_TOKEN}];if(c){var h=f.reduce(function(_,x,S){return x.value&&(_+=x.key+"="+x.value+(S=0)return!1;return!0})).join(" | ");w!==this._attribHTML&&(this._attribHTML=w,c.length?(this._innerContainer.innerHTML=w,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ea.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var bs=function(){o.bindAll(["_updateLogo"],this),o.bindAll(["_updateCompact"],this)};bs.prototype.onAdd=function(c){this._map=c,this._container=m.create("div","mapboxgl-ctrl");var f=m.create("a","mapboxgl-ctrl-logo");return f.target="_blank",f.rel="noopener nofollow",f.href="https://www.mapbox.com/",f.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),f.setAttribute("rel","noopener nofollow"),this._container.appendChild(f),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},bs.prototype.onRemove=function(){m.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},bs.prototype.getDefaultPosition=function(){return"bottom-left"},bs.prototype._updateLogo=function(c){c&&c.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},bs.prototype._logoRequired=function(){if(this._map.style){var c=this._map.style.sourceCaches;for(var f in c)if(c[f].getSource().mapbox_logo)return!0;return!1}},bs.prototype._updateCompact=function(){var c=this._container.children;if(c.length){var f=c[0];this._map.getCanvasContainer().offsetWidth<250?f.classList.add("mapboxgl-compact"):f.classList.remove("mapboxgl-compact")}};var Ci=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ci.prototype.add=function(c){var f=++this._id;return this._queue.push({callback:c,id:f,cancelled:!1}),f},Ci.prototype.remove=function(c){for(var f=this._currentlyRunning,h=0,_=f?this._queue.concat(f):this._queue;h<_.length;h+=1){var x=_[h];if(x.id===c)return void(x.cancelled=!0)}},Ci.prototype.run=function(c){c===void 0&&(c=0);var f=this._currentlyRunning=this._queue;this._queue=[];for(var h=0,_=f;h<_.length;h+=1){var x=_[h];if(!x.cancelled&&(x.callback(c),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},Ci.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var ls={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},gl=o.window.HTMLImageElement,Eu=o.window.HTMLElement,$n=o.window.ImageBitmap,vo={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Ah=function(c){function f(_){var x=this;if((_=o.extend({},vo,_)).minZoom!=null&&_.maxZoom!=null&&_.minZoom>_.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(_.minPitch!=null&&_.maxPitch!=null&&_.minPitch>_.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(_.minPitch!=null&&_.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(_.maxPitch!=null&&_.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var S=new Dn(_.minZoom,_.maxZoom,_.minPitch,_.maxPitch,_.renderWorldCopies);if(c.call(this,S,_),this._interactive=_.interactive,this._maxTileCacheSize=_.maxTileCacheSize,this._failIfMajorPerformanceCaveat=_.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=_.preserveDrawingBuffer,this._antialias=_.antialias,this._trackResize=_.trackResize,this._bearingSnap=_.bearingSnap,this._refreshExpiredTiles=_.refreshExpiredTiles,this._fadeDuration=_.fadeDuration,this._crossSourceCollisions=_.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=_.collectResourceTiming,this._renderTaskQueue=new Ci,this._controls=[],this._mapId=o.uniqueId(),this._locale=o.extend({},ls,_.locale),this._clickTolerance=_.clickTolerance,this._requestManager=new o.RequestManager(_.transformRequest,_.accessToken),typeof _.container=="string"){if(this._container=o.window.document.getElementById(_.container),!this._container)throw new Error("Container '"+_.container+"' not found.")}else{if(!(_.container instanceof Eu))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=_.container}if(_.maxBounds&&this.setMaxBounds(_.maxBounds),o.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return x._update(!1)}),this.on("moveend",function(){return x._update(!1)}),this.on("zoom",function(){return x._update(!0)}),o.window!==void 0&&(o.window.addEventListener("online",this._onWindowOnline,!1),o.window.addEventListener("resize",this._onWindowResize,!1),o.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new xr(this,_),this._hash=_.hash&&new Za(typeof _.hash=="string"&&_.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:_.center,zoom:_.zoom,bearing:_.bearing,pitch:_.pitch}),_.bounds&&(this.resize(),this.fitBounds(_.bounds,o.extend({},_.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=_.localIdeographFontFamily,_.style&&this.setStyle(_.style,{localIdeographFontFamily:_.localIdeographFontFamily}),_.attributionControl&&this.addControl(new ea({customAttribution:_.customAttribution})),this.addControl(new bs,_.logoPosition),this.on("style.load",function(){x.transform.unmodified&&x.jumpTo(x.style.stylesheet)}),this.on("data",function(w){x._update(w.dataType==="style"),x.fire(new o.Event(w.dataType+"data",w))}),this.on("dataloading",function(w){x.fire(new o.Event(w.dataType+"dataloading",w))})}c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f;var h={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return f.prototype._getMapId=function(){return this._mapId},f.prototype.addControl=function(_,x){if(x===void 0&&(x=_.getDefaultPosition?_.getDefaultPosition():"top-right"),!_||!_.onAdd)return this.fire(new o.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var S=_.onAdd(this);this._controls.push(_);var w=this._controlPositions[x];return x.indexOf("bottom")!==-1?w.insertBefore(S,w.firstChild):w.appendChild(S),this},f.prototype.removeControl=function(_){if(!_||!_.onRemove)return this.fire(new o.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var x=this._controls.indexOf(_);return x>-1&&this._controls.splice(x,1),_.onRemove(this),this},f.prototype.hasControl=function(_){return this._controls.indexOf(_)>-1},f.prototype.resize=function(_){var x=this._containerDimensions(),S=x[0],w=x[1];if(S===this.transform.width&&w===this.transform.height)return this;this._resizeCanvas(S,w),this.transform.resize(S,w),this.painter.resize(S,w);var M=!this._moving;return M&&this.fire(new o.Event("movestart",_)).fire(new o.Event("move",_)),this.fire(new o.Event("resize",_)),M&&this.fire(new o.Event("moveend",_)),this},f.prototype.getBounds=function(){return this.transform.getBounds()},f.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},f.prototype.setMaxBounds=function(_){return this.transform.setMaxBounds(o.LngLatBounds.convert(_)),this._update()},f.prototype.setMinZoom=function(_){if((_=_??-2)>=-2&&_<=this.transform.maxZoom)return this.transform.minZoom=_,this._update(),this.getZoom()<_&&this.setZoom(_),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")},f.prototype.getMinZoom=function(){return this.transform.minZoom},f.prototype.setMaxZoom=function(_){if((_=_??22)>=this.transform.minZoom)return this.transform.maxZoom=_,this._update(),this.getZoom()>_&&this.setZoom(_),this;throw new Error("maxZoom must be greater than the current minZoom")},f.prototype.getMaxZoom=function(){return this.transform.maxZoom},f.prototype.setMinPitch=function(_){if((_=_??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(_>=0&&_<=this.transform.maxPitch)return this.transform.minPitch=_,this._update(),this.getPitch()<_&&this.setPitch(_),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")},f.prototype.getMinPitch=function(){return this.transform.minPitch},f.prototype.setMaxPitch=function(_){if((_=_??60)>60)throw new Error("maxPitch must be less than or equal to 60");if(_>=this.transform.minPitch)return this.transform.maxPitch=_,this._update(),this.getPitch()>_&&this.setPitch(_),this;throw new Error("maxPitch must be greater than the current minPitch")},f.prototype.getMaxPitch=function(){return this.transform.maxPitch},f.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},f.prototype.setRenderWorldCopies=function(_){return this.transform.renderWorldCopies=_,this._update()},f.prototype.project=function(_){return this.transform.locationPoint(o.LngLat.convert(_))},f.prototype.unproject=function(_){return this.transform.pointLocation(o.Point.convert(_))},f.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},f.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},f.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},f.prototype._createDelegatedListener=function(_,x,S){var w,M=this;if(_==="mouseenter"||_==="mouseover"){var F=!1;return{layer:x,listener:S,delegates:{mousemove:function(ee){var re=M.getLayer(x)?M.queryRenderedFeatures(ee.point,{layers:[x]}):[];re.length?F||(F=!0,S.call(M,new wi(_,M,ee.originalEvent,{features:re}))):F=!1},mouseout:function(){F=!1}}}}if(_==="mouseleave"||_==="mouseout"){var V=!1;return{layer:x,listener:S,delegates:{mousemove:function(ee){(M.getLayer(x)?M.queryRenderedFeatures(ee.point,{layers:[x]}):[]).length?V=!0:V&&(V=!1,S.call(M,new wi(_,M,ee.originalEvent)))},mouseout:function(ee){V&&(V=!1,S.call(M,new wi(_,M,ee.originalEvent)))}}}}return{layer:x,listener:S,delegates:(w={},w[_]=function(ee){var re=M.getLayer(x)?M.queryRenderedFeatures(ee.point,{layers:[x]}):[];re.length&&(ee.features=re,S.call(M,ee),delete ee.features)},w)}},f.prototype.on=function(_,x,S){if(S===void 0)return c.prototype.on.call(this,_,x);var w=this._createDelegatedListener(_,x,S);for(var M in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[_]=this._delegatedListeners[_]||[],this._delegatedListeners[_].push(w),w.delegates)this.on(M,w.delegates[M]);return this},f.prototype.once=function(_,x,S){if(S===void 0)return c.prototype.once.call(this,_,x);var w=this._createDelegatedListener(_,x,S);for(var M in w.delegates)this.once(M,w.delegates[M]);return this},f.prototype.off=function(_,x,S){var w=this;return S===void 0?c.prototype.off.call(this,_,x):(this._delegatedListeners&&this._delegatedListeners[_]&&function(M){for(var F=M[_],V=0;V180;){var w=h.locationPoint(c);if(w.x>=0&&w.y>=0&&w.x<=h.width&&w.y<=h.height)break;c.lng>h.center.lng?c.lng-=360:c.lng+=360}return c}Fa.prototype.down=function(c,f){this.mouseRotate.mousedown(c,f),this.mousePitch&&this.mousePitch.mousedown(c,f),m.disableDrag()},Fa.prototype.move=function(c,f){var h=this.map,_=this.mouseRotate.mousemoveWindow(c,f);if(_&&_.bearingDelta&&h.setBearing(h.getBearing()+_.bearingDelta),this.mousePitch){var x=this.mousePitch.mousemoveWindow(c,f);x&&x.pitchDelta&&h.setPitch(h.getPitch()+x.pitchDelta)}},Fa.prototype.off=function(){var c=this.element;m.removeEventListener(c,"mousedown",this.mousedown),m.removeEventListener(c,"touchstart",this.touchstart,{passive:!1}),m.removeEventListener(c,"touchmove",this.touchmove),m.removeEventListener(c,"touchend",this.touchend),m.removeEventListener(c,"touchcancel",this.reset),this.offTemp()},Fa.prototype.offTemp=function(){m.enableDrag(),m.removeEventListener(o.window,"mousemove",this.mousemove),m.removeEventListener(o.window,"mouseup",this.mouseup)},Fa.prototype.mousedown=function(c){this.down(o.extend({},c,{ctrlKey:!0,preventDefault:function(){return c.preventDefault()}}),m.mousePos(this.element,c)),m.addEventListener(o.window,"mousemove",this.mousemove),m.addEventListener(o.window,"mouseup",this.mouseup)},Fa.prototype.mousemove=function(c){this.move(c,m.mousePos(this.element,c))},Fa.prototype.mouseup=function(c){this.mouseRotate.mouseupWindow(c),this.mousePitch&&this.mousePitch.mouseupWindow(c),this.offTemp()},Fa.prototype.touchstart=function(c){c.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=m.touchPos(this.element,c.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return c.preventDefault()}},this._startPos))},Fa.prototype.touchmove=function(c){c.targetTouches.length!==1?this.reset():(this._lastPos=m.touchPos(this.element,c.targetTouches)[0],this.move({preventDefault:function(){return c.preventDefault()}},this._lastPos))},Fa.prototype.touchend=function(c){c.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=_}this._isDragging&&(this._pos=h.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new o.Event("dragstart"))),this.fire(new o.Event("drag")))},f.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new o.Event("dragend")),this._state="inactive"},f.prototype._addDragHandler=function(h){this._element.contains(h.originalEvent.target)&&(h.preventDefault(),this._positionDelta=h.point.sub(this._pos).add(this._offset),this._pointerdownPos=h.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},f.prototype.setDraggable=function(h){return this._draggable=!!h,this._map&&(h?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},f.prototype.isDraggable=function(){return this._draggable},f.prototype.setRotation=function(h){return this._rotation=h||0,this._update(),this},f.prototype.getRotation=function(){return this._rotation},f.prototype.setRotationAlignment=function(h){return this._rotationAlignment=h||"auto",this._update(),this},f.prototype.getRotationAlignment=function(){return this._rotationAlignment},f.prototype.setPitchAlignment=function(h){return this._pitchAlignment=h&&h!=="auto"?h:this._rotationAlignment,this._update(),this},f.prototype.getPitchAlignment=function(){return this._pitchAlignment},f}(o.Evented),T1={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Tu=0,Au=!1,Sh=function(c){function f(h){c.call(this),this.options=o.extend({},T1,h),o.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f.prototype.onAdd=function(h){var _;return this._map=h,this._container=m.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),_=this._setupUI,Qu!==void 0?_(Qu):o.window.navigator.permissions!==void 0?o.window.navigator.permissions.query({name:"geolocation"}).then(function(x){_(Qu=x.state!=="denied")}):_(Qu=!!o.window.navigator.geolocation),this._container},f.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(o.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),m.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Tu=0,Au=!1},f.prototype._isOutOfMapMaxBounds=function(h){var _=this._map.getMaxBounds(),x=h.coords;return _&&(x.longitude<_.getWest()||x.longitude>_.getEast()||x.latitude<_.getSouth()||x.latitude>_.getNorth())},f.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},f.prototype._onSuccess=function(h){if(this._map){if(this._isOutOfMapMaxBounds(h))return this._setErrorState(),this.fire(new o.Event("outofmaxbounds",h)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=h,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(h),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(h),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new o.Event("geolocate",h)),this._finish()}},f.prototype._updateCamera=function(h){var _=new o.LngLat(h.coords.longitude,h.coords.latitude),x=h.coords.accuracy,S=this._map.getBearing(),w=o.extend({bearing:S},this.options.fitBoundsOptions);this._map.fitBounds(_.toBounds(x),w,{geolocateSource:!0})},f.prototype._updateMarker=function(h){if(h){var _=new o.LngLat(h.coords.longitude,h.coords.latitude);this._accuracyCircleMarker.setLngLat(_).addTo(this._map),this._userLocationDotMarker.setLngLat(_).addTo(this._map),this._accuracy=h.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},f.prototype._updateCircleRadius=function(){var h=this._map._container.clientHeight/2,_=this._map.unproject([0,h]),x=this._map.unproject([1,h]),S=_.distanceTo(x),w=Math.ceil(2*this._accuracy/S);this._circleElement.style.width=w+"px",this._circleElement.style.height=w+"px"},f.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},f.prototype._onError=function(h){if(this._map){if(this.options.trackUserLocation)if(h.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var _=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=_,this._geolocateButton.setAttribute("aria-label",_),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(h.code===3&&Au)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new o.Event("error",h)),this._finish()}},f.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},f.prototype._setupUI=function(h){var _=this;if(this._container.addEventListener("contextmenu",function(w){return w.preventDefault()}),this._geolocateButton=m.create("button","mapboxgl-ctrl-geolocate",this._container),m.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",h===!1){o.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var x=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=x,this._geolocateButton.setAttribute("aria-label",x)}else{var S=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=S,this._geolocateButton.setAttribute("aria-label",S)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=m.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Lc(this._dotElement),this._circleElement=m.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Lc({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(w){w.geolocateSource||_._watchState!=="ACTIVE_LOCK"||w.originalEvent&&w.originalEvent.type==="resize"||(_._watchState="BACKGROUND",_._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),_._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),_.fire(new o.Event("trackuserlocationend")))})},f.prototype.trigger=function(){if(!this._setup)return o.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new o.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Tu--,Au=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new o.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new o.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var h;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Tu>1?(h={maximumAge:6e5,timeout:0},Au=!0):(h=this.options.positionOptions,Au=!1),this._geolocationWatchID=o.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,h)}}else o.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},f.prototype._clearWatch=function(){o.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},f}(o.Evented),js={maxWidth:100,unit:"metric"},Es=function(c){this.options=o.extend({},js,c),o.bindAll(["_onMove","setUnit"],this)};function A1(c,f,h){var _=h&&h.maxWidth||100,x=c._container.clientHeight/2,S=c.unproject([0,x]),w=c.unproject([_,x]),M=S.distanceTo(w);if(h&&h.unit==="imperial"){var F=3.2808*M;F>5280?Zl(f,_,F/5280,c._getUIString("ScaleControl.Miles")):Zl(f,_,F,c._getUIString("ScaleControl.Feet"))}else h&&h.unit==="nautical"?Zl(f,_,M/1852,c._getUIString("ScaleControl.NauticalMiles")):M>=1e3?Zl(f,_,M/1e3,c._getUIString("ScaleControl.Kilometers")):Zl(f,_,M,c._getUIString("ScaleControl.Meters"))}function Zl(c,f,h,_){var x,S,w,M=(x=h,(S=Math.pow(10,(""+Math.floor(x)).length-1))*(w=(w=x/S)>=10?10:w>=5?5:w>=3?3:w>=2?2:w>=1?1:function(F){var V=Math.pow(10,Math.ceil(-Math.log(F)/Math.LN10));return Math.round(F*V)/V}(w)));c.style.width=f*(M/h)+"px",c.innerHTML=M+" "+_}Es.prototype.getDefaultPosition=function(){return"bottom-left"},Es.prototype._onMove=function(){A1(this._map,this._container,this.options)},Es.prototype.onAdd=function(c){return this._map=c,this._container=m.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",c.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Es.prototype.onRemove=function(){m.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Es.prototype.setUnit=function(c){this.options.unit=c,A1(this._map,this._container,this.options)};var us=function(c){this._fullscreen=!1,c&&c.container&&(c.container instanceof o.window.HTMLElement?this._container=c.container:o.warnOnce("Full screen control 'container' must be a DOM element.")),o.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in o.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in o.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in o.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in o.window.document&&(this._fullscreenchange="MSFullscreenChange")};us.prototype.onAdd=function(c){return this._map=c,this._container||(this._container=this._map.getContainer()),this._controlContainer=m.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",o.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},us.prototype.onRemove=function(){m.remove(this._controlContainer),this._map=null,o.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},us.prototype._checkFullscreenSupport=function(){return!!(o.window.document.fullscreenEnabled||o.window.document.mozFullScreenEnabled||o.window.document.msFullscreenEnabled||o.window.document.webkitFullscreenEnabled)},us.prototype._setupUI=function(){var c=this._fullscreenButton=m.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);m.create("span","mapboxgl-ctrl-icon",c).setAttribute("aria-hidden",!0),c.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),o.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},us.prototype._updateTitle=function(){var c=this._getTitle();this._fullscreenButton.setAttribute("aria-label",c),this._fullscreenButton.title=c},us.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},us.prototype._isFullscreen=function(){return this._fullscreen},us.prototype._changeIcon=function(){(o.window.document.fullscreenElement||o.window.document.mozFullScreenElement||o.window.document.webkitFullscreenElement||o.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},us.prototype._onClickFullscreen=function(){this._isFullscreen()?o.window.document.exitFullscreen?o.window.document.exitFullscreen():o.window.document.mozCancelFullScreen?o.window.document.mozCancelFullScreen():o.window.document.msExitFullscreen?o.window.document.msExitFullscreen():o.window.document.webkitCancelFullScreen&&o.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var wh={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Dc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),S1=function(c){function f(h){c.call(this),this.options=o.extend(Object.create(wh),h),o.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f.prototype.addTo=function(h){return this._map&&this.remove(),this._map=h,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new o.Event("open")),this},f.prototype.isOpen=function(){return!!this._map},f.prototype.remove=function(){return this._content&&m.remove(this._content),this._container&&(m.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new o.Event("close")),this},f.prototype.getLngLat=function(){return this._lngLat},f.prototype.setLngLat=function(h){return this._lngLat=o.LngLat.convert(h),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},f.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},f.prototype.getElement=function(){return this._container},f.prototype.setText=function(h){return this.setDOMContent(o.window.document.createTextNode(h))},f.prototype.setHTML=function(h){var _,x=o.window.document.createDocumentFragment(),S=o.window.document.createElement("body");for(S.innerHTML=h;_=S.firstChild;)x.appendChild(_);return this.setDOMContent(x)},f.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},f.prototype.setMaxWidth=function(h){return this.options.maxWidth=h,this._update(),this},f.prototype.setDOMContent=function(h){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=m.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(h),this._createCloseButton(),this._update(),this._focusFirstElement(),this},f.prototype.addClassName=function(h){this._container&&this._container.classList.add(h)},f.prototype.removeClassName=function(h){this._container&&this._container.classList.remove(h)},f.prototype.setOffset=function(h){return this.options.offset=h,this._update(),this},f.prototype.toggleClassName=function(h){if(this._container)return this._container.classList.toggle(h)},f.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=m.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},f.prototype._onMouseUp=function(h){this._update(h.point)},f.prototype._onMouseMove=function(h){this._update(h.point)},f.prototype._onDrag=function(h){this._update(h.point)},f.prototype._update=function(h){var _=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=m.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=m.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(re){return _._container.classList.add(re)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Ku(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||h)){var x=this._pos=this._trackPointer&&h?h:this._map.project(this._lngLat),S=this.options.anchor,w=function re(ne){if(ne){if(typeof ne=="number"){var ve=Math.round(Math.sqrt(.5*Math.pow(ne,2)));return{center:new o.Point(0,0),top:new o.Point(0,ne),"top-left":new o.Point(ve,ve),"top-right":new o.Point(-ve,ve),bottom:new o.Point(0,-ne),"bottom-left":new o.Point(ve,-ve),"bottom-right":new o.Point(-ve,-ve),left:new o.Point(ne,0),right:new o.Point(-ne,0)}}if(ne instanceof o.Point||Array.isArray(ne)){var pe=o.Point.convert(ne);return{center:pe,top:pe,"top-left":pe,"top-right":pe,bottom:pe,"bottom-left":pe,"bottom-right":pe,left:pe,right:pe}}return{center:o.Point.convert(ne.center||[0,0]),top:o.Point.convert(ne.top||[0,0]),"top-left":o.Point.convert(ne["top-left"]||[0,0]),"top-right":o.Point.convert(ne["top-right"]||[0,0]),bottom:o.Point.convert(ne.bottom||[0,0]),"bottom-left":o.Point.convert(ne["bottom-left"]||[0,0]),"bottom-right":o.Point.convert(ne["bottom-right"]||[0,0]),left:o.Point.convert(ne.left||[0,0]),right:o.Point.convert(ne.right||[0,0])}}return re(new o.Point(0,0))}(this.options.offset);if(!S){var M,F=this._container.offsetWidth,V=this._container.offsetHeight;M=x.y+w.bottom.ythis._map.transform.height-V?["bottom"]:[],x.xthis._map.transform.width-F/2&&M.push("right"),S=M.length===0?"bottom":M.join("-")}var ee=x.add(w[S]).round();m.setTransform(this._container,Hs[S]+" translate("+ee.x+"px,"+ee.y+"px)"),E1(this._container,S,"popup")}},f.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var h=this._container.querySelector(Dc);h&&h.focus()}},f.prototype._onClose=function(){this.remove()},f}(o.Evented),w1={version:o.version,supported:p,setRTLTextPlugin:o.setRTLTextPlugin,getRTLTextPluginStatus:o.getRTLTextPluginStatus,Map:Ah,NavigationControl:vl,GeolocateControl:Sh,AttributionControl:ea,ScaleControl:Es,FullscreenControl:us,Popup:S1,Marker:Lc,Style:Oa,LngLat:o.LngLat,LngLatBounds:o.LngLatBounds,Point:o.Point,MercatorCoordinate:o.MercatorCoordinate,Evented:o.Evented,config:o.config,prewarm:function(){pt().acquire(ht)},clearPrewarmedResources:function(){var c=vr;c&&(c.isPreloaded()&&c.numActive()===1?(c.release(ht),vr=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return o.config.ACCESS_TOKEN},set accessToken(c){o.config.ACCESS_TOKEN=c},get baseApiUrl(){return o.config.API_URL},set baseApiUrl(c){o.config.API_URL=c},get workerCount(){return Rt.workerCount},set workerCount(c){Rt.workerCount=c},get maxParallelImageRequests(){return o.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(c){o.config.MAX_PARALLEL_IMAGE_REQUESTS=c},clearStorage:function(c){o.clearTileCache(c)},workerUrl:""};return w1}),a})})(RE);var vH=RE.exports;const Zd=Co(vH),yH=["id","attributionControl","style","token","rotation","mapInstance"];function xH(t,e){var r=typeof my<"u"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx<"u"&&wx!==null&&(typeof wx.request<"u"||typeof wx.miniProgram<"u");if(!(r||n)&&(e||(e=document),!!e)){var a=e.head||e.getElementsByTagName("head")[0];if(!a){a=e.createElement("head");var l=e.body||e.getElementsByTagName("body")[0];l?l.parentNode.insertBefore(a,l):e.documentElement.appendChild(a)}var o=e.createElement("style");return o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),a.appendChild(o),o}}xH(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`);window.mapboxgl=Zd;let bH=0;const Fx="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg";class EH extends vE{constructor(...e){super(...e),I(this,"version","MAPBOX"),I(this,"viewport",void 0)}getType(){return"mapbox"}lngLatToCoord(e,r={x:0,y:0,z:0}){const{x:n,y:a}=this.lngLatToMercator(e,0);return[n-r.x,a-r.y]}lngLatToMercator(e,r){const{x:n=0,y:a=0,z:l=0}=window.mapboxgl.MercatorCoordinate.fromLngLat(e,r);return{x:n,y:a,z:l}}getModelMatrix(e,r,n,a=[1,1,1],l={x:0,y:0,z:0}){const o=window.mapboxgl.MercatorCoordinate.fromLngLat(e,r),p=o.meterInMercatorCoordinateUnits(),m=A3();return ou(m,m,Rs(o.x-l.x,o.y-l.y,o.z||0-l.z)),au(m,m,Rs(p*a[0],-p*a[1],p*a[2])),Dp(m,m,n[0]),Ym(m,m,n[1]),S3(m,m,n[2]),m}init(){var e=this;return bt(function*(){const r=e.config,{id:n="map",attributionControl:a=!1,style:l="light",token:o=Fx,rotation:p=0,mapInstance:m}=r,v=fu(r,yH);e.viewport=new A2,!m&&!window.mapboxgl&&console.error(e.configService.getSceneWarninfo("SDK")),o===Fx&&l!=="blank"&&!window.mapboxgl.accessToken&&!m&&console.warn(e.configService.getSceneWarninfo("MapToken")),!m&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=o),m?(e.map=m,e.$mapContainer=e.map.getContainer()):(e.$mapContainer=e.creatMapContainer(n),e.map=new window.mapboxgl.Map(_t({container:e.$mapContainer,style:e.getMapStyleValue(l),attributionControl:a,bearing:p},v))),e.map.on("load",()=>{e.handleCameraChanged()}),e.map.on("move",e.handleCameraChanged),e.handleCameraChanged()})()}destroy(){var e;(e=this.$mapContainer)===null||e===void 0||(e=e.parentNode)===null||e===void 0||e.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}emit(e,...r){this.eventEmitter.emit(e,...r)}once(e,...r){this.eventEmitter.once(e,...r)}getMapContainer(){return this.$mapContainer}getCanvasOverlays(){var e;return(e=this.getMapContainer())===null||e===void 0?void 0:e.querySelector(".mapboxgl-canvas-container")}meterToCoord(e,r){const n=new Zd.LngLat(e[0],e[1]),a=new Zd.LngLat(r[0],r[1]),l=n.distanceTo(a),o=Zd.MercatorCoordinate.fromLngLat({lng:e[0],lat:e[1]}),p=Zd.MercatorCoordinate.fromLngLat({lng:r[0],lat:r[1]}),{x:m,y:v}=o,{x:E,y:b}=p;return Math.sqrt(Math.pow(m-E,2)+Math.pow(v-b,2))*4194304*2/l}exportMap(e){const r=this.map.getCanvas();return e==="jpg"?r==null?void 0:r.toDataURL("image/jpeg"):r==null?void 0:r.toDataURL("image/png")}creatMapContainer(e){let r=e;typeof e=="string"&&(r=document.getElementById(e));const n=document.createElement("div");return n.style.cssText+=` +`),Ge=w.createShader(w.FRAGMENT_SHADER);if(w.isContextLost())this.failedToCreate=!0;else{w.shaderSource(Ge,we),w.compileShader(Ge),w.attachShader(this.program,Ge);var st=w.createShader(w.VERTEX_SHADER);if(w.isContextLost())this.failedToCreate=!0;else{w.shaderSource(st,Be),w.compileShader(st),w.attachShader(this.program,st),this.attributes={};var Je={};this.numAttributes=V.length;for(var ft=0;ft>16,M>>16],u_pixel_coord_lower:[65535&w,65535&M]}}Vi.prototype.draw=function(c,f,h,_,x,S,w,M,F,V,ee,re,ne,ve,pe,Ce){var he,we=c.gl;if(!this.failedToCreate){for(var Be in c.program.set(this.program),c.setDepthMode(h),c.setStencilMode(_),c.setColorMode(x),c.setCullFace(S),this.fixedUniforms)this.fixedUniforms[Be].set(w[Be]);ve&&ve.setUniforms(c,this.binderUniforms,re,{zoom:ne});for(var Ge=(he={},he[we.LINES]=2,he[we.TRIANGLES]=3,he[we.LINE_STRIP]=1,he)[f],st=0,Je=ee.get();st0?1-1/(1.001-w):-w),u_contrast_factor:(S=x.paint.get("raster-contrast"),S>0?1/(1-S):1+S),u_spin_weights:c1(x.paint.get("raster-hue-rotate"))};var S,w};function c1(c){c*=Math.PI/180;var f=Math.sin(c),h=Math.cos(c);return[(2*h+1)/3,(-Math.sqrt(3)*f-h+1)/3,(Math.sqrt(3)*f-h+1)/3]}var dl,Ul=function(c,f,h,_,x,S,w,M,F,V){var ee=x.transform;return{u_is_size_zoom_constant:+(c==="constant"||c==="source"),u_is_size_feature_constant:+(c==="constant"||c==="camera"),u_size_t:f?f.uSizeT:0,u_size:f?f.uSize:0,u_camera_to_center_distance:ee.cameraToCenterDistance,u_pitch:ee.pitch/360*2*Math.PI,u_rotate_symbol:+h,u_aspect_ratio:ee.width/ee.height,u_fade_change:x.options.fadeDuration?x.symbolFadeChange:1,u_matrix:S,u_label_plane_matrix:w,u_coord_matrix:M,u_is_text:+F,u_pitch_with_map:+_,u_texsize:V,u_texture:0}},gu=function(c,f,h,_,x,S,w,M,F,V,ee){var re=x.transform;return o.extend(Ul(c,f,h,_,x,S,w,M,F,V),{u_gamma_scale:_?Math.cos(re._pitch)*re.cameraToCenterDistance:1,u_device_pixel_ratio:o.browser.devicePixelRatio,u_is_halo:+ee})},Xu=function(c,f,h,_,x,S,w,M,F,V){return o.extend(gu(c,f,h,_,x,S,w,M,!0,F,!0),{u_texsize_icon:V,u_texture_icon:1})},vu=function(c,f,h){return{u_matrix:c,u_opacity:f,u_color:h}},yu=function(c,f,h,_,x,S){return o.extend(function(w,M,F,V){var ee=F.imageManager.getPattern(w.from.toString()),re=F.imageManager.getPattern(w.to.toString()),ne=F.imageManager.getPixelSize(),ve=ne.width,pe=ne.height,Ce=Math.pow(2,V.tileID.overscaledZ),he=V.tileSize*Math.pow(2,F.transform.tileZoom)/Ce,we=he*(V.tileID.canonical.x+V.tileID.wrap*Ce),Be=he*V.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ee.tl,u_pattern_br_a:ee.br,u_pattern_tl_b:re.tl,u_pattern_br_b:re.br,u_texsize:[ve,pe],u_mix:M.t,u_pattern_size_a:ee.displaySize,u_pattern_size_b:re.displaySize,u_scale_a:M.fromScale,u_scale_b:M.toScale,u_tile_units_to_pixels:1/hi(V,1,F.transform.tileZoom),u_pixel_coord_upper:[we>>16,Be>>16],u_pixel_coord_lower:[65535&we,65535&Be]}}(_,S,h,x),{u_matrix:c,u_opacity:f})},dh={fillExtrusion:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_lightpos:new o.Uniform3f(c,f.u_lightpos),u_lightintensity:new o.Uniform1f(c,f.u_lightintensity),u_lightcolor:new o.Uniform3f(c,f.u_lightcolor),u_vertical_gradient:new o.Uniform1f(c,f.u_vertical_gradient),u_opacity:new o.Uniform1f(c,f.u_opacity)}},fillExtrusionPattern:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_lightpos:new o.Uniform3f(c,f.u_lightpos),u_lightintensity:new o.Uniform1f(c,f.u_lightintensity),u_lightcolor:new o.Uniform3f(c,f.u_lightcolor),u_vertical_gradient:new o.Uniform1f(c,f.u_vertical_gradient),u_height_factor:new o.Uniform1f(c,f.u_height_factor),u_image:new o.Uniform1i(c,f.u_image),u_texsize:new o.Uniform2f(c,f.u_texsize),u_pixel_coord_upper:new o.Uniform2f(c,f.u_pixel_coord_upper),u_pixel_coord_lower:new o.Uniform2f(c,f.u_pixel_coord_lower),u_scale:new o.Uniform3f(c,f.u_scale),u_fade:new o.Uniform1f(c,f.u_fade),u_opacity:new o.Uniform1f(c,f.u_opacity)}},fill:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix)}},fillPattern:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_image:new o.Uniform1i(c,f.u_image),u_texsize:new o.Uniform2f(c,f.u_texsize),u_pixel_coord_upper:new o.Uniform2f(c,f.u_pixel_coord_upper),u_pixel_coord_lower:new o.Uniform2f(c,f.u_pixel_coord_lower),u_scale:new o.Uniform3f(c,f.u_scale),u_fade:new o.Uniform1f(c,f.u_fade)}},fillOutline:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_world:new o.Uniform2f(c,f.u_world)}},fillOutlinePattern:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_world:new o.Uniform2f(c,f.u_world),u_image:new o.Uniform1i(c,f.u_image),u_texsize:new o.Uniform2f(c,f.u_texsize),u_pixel_coord_upper:new o.Uniform2f(c,f.u_pixel_coord_upper),u_pixel_coord_lower:new o.Uniform2f(c,f.u_pixel_coord_lower),u_scale:new o.Uniform3f(c,f.u_scale),u_fade:new o.Uniform1f(c,f.u_fade)}},circle:function(c,f){return{u_camera_to_center_distance:new o.Uniform1f(c,f.u_camera_to_center_distance),u_scale_with_map:new o.Uniform1i(c,f.u_scale_with_map),u_pitch_with_map:new o.Uniform1i(c,f.u_pitch_with_map),u_extrude_scale:new o.Uniform2f(c,f.u_extrude_scale),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_matrix:new o.UniformMatrix4f(c,f.u_matrix)}},collisionBox:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_camera_to_center_distance:new o.Uniform1f(c,f.u_camera_to_center_distance),u_pixels_to_tile_units:new o.Uniform1f(c,f.u_pixels_to_tile_units),u_extrude_scale:new o.Uniform2f(c,f.u_extrude_scale),u_overscale_factor:new o.Uniform1f(c,f.u_overscale_factor)}},collisionCircle:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_inv_matrix:new o.UniformMatrix4f(c,f.u_inv_matrix),u_camera_to_center_distance:new o.Uniform1f(c,f.u_camera_to_center_distance),u_viewport_size:new o.Uniform2f(c,f.u_viewport_size)}},debug:function(c,f){return{u_color:new o.UniformColor(c,f.u_color),u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_overlay:new o.Uniform1i(c,f.u_overlay),u_overlay_scale:new o.Uniform1f(c,f.u_overlay_scale)}},clippingMask:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix)}},heatmap:function(c,f){return{u_extrude_scale:new o.Uniform1f(c,f.u_extrude_scale),u_intensity:new o.Uniform1f(c,f.u_intensity),u_matrix:new o.UniformMatrix4f(c,f.u_matrix)}},heatmapTexture:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_world:new o.Uniform2f(c,f.u_world),u_image:new o.Uniform1i(c,f.u_image),u_color_ramp:new o.Uniform1i(c,f.u_color_ramp),u_opacity:new o.Uniform1f(c,f.u_opacity)}},hillshade:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_image:new o.Uniform1i(c,f.u_image),u_latrange:new o.Uniform2f(c,f.u_latrange),u_light:new o.Uniform2f(c,f.u_light),u_shadow:new o.UniformColor(c,f.u_shadow),u_highlight:new o.UniformColor(c,f.u_highlight),u_accent:new o.UniformColor(c,f.u_accent)}},hillshadePrepare:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_image:new o.Uniform1i(c,f.u_image),u_dimension:new o.Uniform2f(c,f.u_dimension),u_zoom:new o.Uniform1f(c,f.u_zoom),u_unpack:new o.Uniform4f(c,f.u_unpack)}},line:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_ratio:new o.Uniform1f(c,f.u_ratio),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_units_to_pixels:new o.Uniform2f(c,f.u_units_to_pixels)}},lineGradient:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_ratio:new o.Uniform1f(c,f.u_ratio),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_units_to_pixels:new o.Uniform2f(c,f.u_units_to_pixels),u_image:new o.Uniform1i(c,f.u_image),u_image_height:new o.Uniform1f(c,f.u_image_height)}},linePattern:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_texsize:new o.Uniform2f(c,f.u_texsize),u_ratio:new o.Uniform1f(c,f.u_ratio),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_image:new o.Uniform1i(c,f.u_image),u_units_to_pixels:new o.Uniform2f(c,f.u_units_to_pixels),u_scale:new o.Uniform3f(c,f.u_scale),u_fade:new o.Uniform1f(c,f.u_fade)}},lineSDF:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_ratio:new o.Uniform1f(c,f.u_ratio),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_units_to_pixels:new o.Uniform2f(c,f.u_units_to_pixels),u_patternscale_a:new o.Uniform2f(c,f.u_patternscale_a),u_patternscale_b:new o.Uniform2f(c,f.u_patternscale_b),u_sdfgamma:new o.Uniform1f(c,f.u_sdfgamma),u_image:new o.Uniform1i(c,f.u_image),u_tex_y_a:new o.Uniform1f(c,f.u_tex_y_a),u_tex_y_b:new o.Uniform1f(c,f.u_tex_y_b),u_mix:new o.Uniform1f(c,f.u_mix)}},raster:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_tl_parent:new o.Uniform2f(c,f.u_tl_parent),u_scale_parent:new o.Uniform1f(c,f.u_scale_parent),u_buffer_scale:new o.Uniform1f(c,f.u_buffer_scale),u_fade_t:new o.Uniform1f(c,f.u_fade_t),u_opacity:new o.Uniform1f(c,f.u_opacity),u_image0:new o.Uniform1i(c,f.u_image0),u_image1:new o.Uniform1i(c,f.u_image1),u_brightness_low:new o.Uniform1f(c,f.u_brightness_low),u_brightness_high:new o.Uniform1f(c,f.u_brightness_high),u_saturation_factor:new o.Uniform1f(c,f.u_saturation_factor),u_contrast_factor:new o.Uniform1f(c,f.u_contrast_factor),u_spin_weights:new o.Uniform3f(c,f.u_spin_weights)}},symbolIcon:function(c,f){return{u_is_size_zoom_constant:new o.Uniform1i(c,f.u_is_size_zoom_constant),u_is_size_feature_constant:new o.Uniform1i(c,f.u_is_size_feature_constant),u_size_t:new o.Uniform1f(c,f.u_size_t),u_size:new o.Uniform1f(c,f.u_size),u_camera_to_center_distance:new o.Uniform1f(c,f.u_camera_to_center_distance),u_pitch:new o.Uniform1f(c,f.u_pitch),u_rotate_symbol:new o.Uniform1i(c,f.u_rotate_symbol),u_aspect_ratio:new o.Uniform1f(c,f.u_aspect_ratio),u_fade_change:new o.Uniform1f(c,f.u_fade_change),u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_label_plane_matrix:new o.UniformMatrix4f(c,f.u_label_plane_matrix),u_coord_matrix:new o.UniformMatrix4f(c,f.u_coord_matrix),u_is_text:new o.Uniform1i(c,f.u_is_text),u_pitch_with_map:new o.Uniform1i(c,f.u_pitch_with_map),u_texsize:new o.Uniform2f(c,f.u_texsize),u_texture:new o.Uniform1i(c,f.u_texture)}},symbolSDF:function(c,f){return{u_is_size_zoom_constant:new o.Uniform1i(c,f.u_is_size_zoom_constant),u_is_size_feature_constant:new o.Uniform1i(c,f.u_is_size_feature_constant),u_size_t:new o.Uniform1f(c,f.u_size_t),u_size:new o.Uniform1f(c,f.u_size),u_camera_to_center_distance:new o.Uniform1f(c,f.u_camera_to_center_distance),u_pitch:new o.Uniform1f(c,f.u_pitch),u_rotate_symbol:new o.Uniform1i(c,f.u_rotate_symbol),u_aspect_ratio:new o.Uniform1f(c,f.u_aspect_ratio),u_fade_change:new o.Uniform1f(c,f.u_fade_change),u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_label_plane_matrix:new o.UniformMatrix4f(c,f.u_label_plane_matrix),u_coord_matrix:new o.UniformMatrix4f(c,f.u_coord_matrix),u_is_text:new o.Uniform1i(c,f.u_is_text),u_pitch_with_map:new o.Uniform1i(c,f.u_pitch_with_map),u_texsize:new o.Uniform2f(c,f.u_texsize),u_texture:new o.Uniform1i(c,f.u_texture),u_gamma_scale:new o.Uniform1f(c,f.u_gamma_scale),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_is_halo:new o.Uniform1i(c,f.u_is_halo)}},symbolTextAndIcon:function(c,f){return{u_is_size_zoom_constant:new o.Uniform1i(c,f.u_is_size_zoom_constant),u_is_size_feature_constant:new o.Uniform1i(c,f.u_is_size_feature_constant),u_size_t:new o.Uniform1f(c,f.u_size_t),u_size:new o.Uniform1f(c,f.u_size),u_camera_to_center_distance:new o.Uniform1f(c,f.u_camera_to_center_distance),u_pitch:new o.Uniform1f(c,f.u_pitch),u_rotate_symbol:new o.Uniform1i(c,f.u_rotate_symbol),u_aspect_ratio:new o.Uniform1f(c,f.u_aspect_ratio),u_fade_change:new o.Uniform1f(c,f.u_fade_change),u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_label_plane_matrix:new o.UniformMatrix4f(c,f.u_label_plane_matrix),u_coord_matrix:new o.UniformMatrix4f(c,f.u_coord_matrix),u_is_text:new o.Uniform1i(c,f.u_is_text),u_pitch_with_map:new o.Uniform1i(c,f.u_pitch_with_map),u_texsize:new o.Uniform2f(c,f.u_texsize),u_texsize_icon:new o.Uniform2f(c,f.u_texsize_icon),u_texture:new o.Uniform1i(c,f.u_texture),u_texture_icon:new o.Uniform1i(c,f.u_texture_icon),u_gamma_scale:new o.Uniform1f(c,f.u_gamma_scale),u_device_pixel_ratio:new o.Uniform1f(c,f.u_device_pixel_ratio),u_is_halo:new o.Uniform1i(c,f.u_is_halo)}},background:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_opacity:new o.Uniform1f(c,f.u_opacity),u_color:new o.UniformColor(c,f.u_color)}},backgroundPattern:function(c,f){return{u_matrix:new o.UniformMatrix4f(c,f.u_matrix),u_opacity:new o.Uniform1f(c,f.u_opacity),u_image:new o.Uniform1i(c,f.u_image),u_pattern_tl_a:new o.Uniform2f(c,f.u_pattern_tl_a),u_pattern_br_a:new o.Uniform2f(c,f.u_pattern_br_a),u_pattern_tl_b:new o.Uniform2f(c,f.u_pattern_tl_b),u_pattern_br_b:new o.Uniform2f(c,f.u_pattern_br_b),u_texsize:new o.Uniform2f(c,f.u_texsize),u_mix:new o.Uniform1f(c,f.u_mix),u_pattern_size_a:new o.Uniform2f(c,f.u_pattern_size_a),u_pattern_size_b:new o.Uniform2f(c,f.u_pattern_size_b),u_scale_a:new o.Uniform1f(c,f.u_scale_a),u_scale_b:new o.Uniform1f(c,f.u_scale_b),u_pixel_coord_upper:new o.Uniform2f(c,f.u_pixel_coord_upper),u_pixel_coord_lower:new o.Uniform2f(c,f.u_pixel_coord_lower),u_tile_units_to_pixels:new o.Uniform1f(c,f.u_tile_units_to_pixels)}}};function xu(c,f,h,_,x,S,w){for(var M=c.context,F=M.gl,V=c.useProgram("collisionBox"),ee=[],re=0,ne=0,ve=0;ve<_.length;ve++){var pe=_[ve],Ce=f.getTile(pe),he=Ce.getBucket(h);if(he){var we=pe.posMatrix;x[0]===0&&x[1]===0||(we=c.translatePosMatrix(pe.posMatrix,Ce,x,S));var Be=w?he.textCollisionBox:he.iconCollisionBox,Ge=he.collisionCircleArray;if(Ge.length>0){var st=o.create(),Je=we;o.mul(st,he.placementInvProjMatrix,c.transform.glCoordMatrix),o.mul(st,st,he.placementViewportMatrix),ee.push({circleArray:Ge,circleOffset:ne,transform:Je,invTransform:st}),ne=re+=Ge.length/4}Be&&V.draw(M,F.LINES,oe.disabled,de.disabled,c.colorModeForRenderPass(),Ne.disabled,xs(we,c.transform,Ce),h.id,Be.layoutVertexBuffer,Be.indexBuffer,Be.segments,null,c.transform.zoom,null,null,Be.collisionVertexBuffer)}}if(w&&ee.length){var ft=c.useProgram("collisionCircle"),Et=new o.StructArrayLayout2f1f2i16;Et.resize(4*re),Et._trim();for(var jt=0,Nt=0,ar=ee;Nt=0&&(pe[he.associatedIconIndex]={shiftedAnchor:Et,angle:jt})}else mo(he.numGlyphs,ne)}if(ee){ve.clear();for(var ar=c.icon.placedSymbolArray,Ir=0;Ir0){var w=o.browser.now(),M=(w-c.timeAdded)/S,F=f?(w-f.timeAdded)/S:-1,V=h.getSource(),ee=x.coveringZoomLevel({tileSize:V.tileSize,roundZoom:V.roundZoom}),re=!f||Math.abs(f.tileID.overscaledZ-ee)>Math.abs(c.tileID.overscaledZ-ee),ne=re&&c.refreshedUponExpiration?1:o.clamp(re?M:1-F,0,1);return c.refreshedUponExpiration&&M>=1&&(c.refreshedUponExpiration=!1),f?{opacity:1,mix:1-ne}:{opacity:ne,mix:0}}return{opacity:1,mix:0}}var vh=new o.Color(1,0,0,1),f1=new o.Color(0,1,0,1),vf=new o.Color(0,0,1,1),p1=new o.Color(1,0,1,1),yh=new o.Color(0,1,1,1);function Cc(c,f,h,_){bu(c,0,f+h/2,c.transform.width,h,_)}function xh(c,f,h,_){bu(c,f-h/2,0,h,c.transform.height,_)}function bu(c,f,h,_,x,S){var w=c.context,M=w.gl;M.enable(M.SCISSOR_TEST),M.scissor(f*o.browser.devicePixelRatio,h*o.browser.devicePixelRatio,_*o.browser.devicePixelRatio,x*o.browser.devicePixelRatio),w.clear({color:S}),M.disable(M.SCISSOR_TEST)}function bh(c,f,h){var _=c.context,x=_.gl,S=h.posMatrix,w=c.useProgram("debug"),M=oe.disabled,F=de.disabled,V=c.colorModeForRenderPass();_.activeTexture.set(x.TEXTURE0),c.emptyTexture.bind(x.LINEAR,x.CLAMP_TO_EDGE),w.draw(_,x.LINE_STRIP,M,F,V,Ne.disabled,Nl(S,o.Color.red),"$debug",c.debugBuffer,c.tileBorderIndexBuffer,c.debugSegments);var ee=f.getTileByID(h.key).latestRawTileData,re=Math.floor((ee&&ee.byteLength||0)/1024),ne=f.getTile(h).tileSize,ve=512/Math.min(ne,512)*(h.overscaledZ/c.transform.zoom)*.5,pe=h.canonical.toString();h.overscaledZ!==h.canonical.z&&(pe+=" => "+h.overscaledZ),function(Ce,he){Ce.initDebugOverlayCanvas();var we=Ce.debugOverlayCanvas,Be=Ce.context.gl,Ge=Ce.debugOverlayCanvas.getContext("2d");Ge.clearRect(0,0,we.width,we.height),Ge.shadowColor="white",Ge.shadowBlur=2,Ge.lineWidth=1.5,Ge.strokeStyle="white",Ge.textBaseline="top",Ge.font="bold 36px Open Sans, sans-serif",Ge.fillText(he,5,5),Ge.strokeText(he,5,5),Ce.debugOverlayTexture.update(we),Ce.debugOverlayTexture.bind(Be.LINEAR,Be.CLAMP_TO_EDGE)}(c,pe+" "+re+"kb"),w.draw(_,x.TRIANGLES,M,F,Oe.alphaBlended,Ne.disabled,Nl(S,o.Color.transparent,ve),"$debug",c.debugBuffer,c.quadTriangleIndexBuffer,c.debugSegments)}var Hl={symbol:function(c,f,h,_,x){if(c.renderPass==="translucent"){var S=de.disabled,w=c.colorModeForRenderPass();h.layout.get("text-variable-anchor")&&function(M,F,V,ee,re,ne,ve){for(var pe=F.transform,Ce=re==="map",he=ne==="map",we=0,Be=M;we256&&this.clearStencil(),h.setColorMode(Oe.disabled),h.setDepthMode(oe.disabled);var x=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var S=0,w=f;S256&&this.clearStencil();var c=this.nextStencilID++,f=this.context.gl;return new de({func:f.NOTEQUAL,mask:255},c,255,f.KEEP,f.KEEP,f.REPLACE)},mi.prototype.stencilModeForClipping=function(c){var f=this.context.gl;return new de({func:f.EQUAL,mask:255},this._tileClippingMaskIDs[c.key],0,f.KEEP,f.KEEP,f.REPLACE)},mi.prototype.stencilConfigForOverlap=function(c){var f,h=this.context.gl,_=c.sort(function(F,V){return V.overscaledZ-F.overscaledZ}),x=_[_.length-1].overscaledZ,S=_[0].overscaledZ-x+1;if(S>1){this.currentStencilSource=void 0,this.nextStencilID+S>256&&this.clearStencil();for(var w={},M=0;M=0;this.currentLayer--){var Ge=this.style._layers[_[this.currentLayer]],st=x[Ge.source],Je=V[Ge.source];this._renderTileClippingMasks(Ge,Je),this.renderLayer(this,st,Ge,Je)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<_.length;this.currentLayer++){var ft=this.style._layers[_[this.currentLayer]],Et=x[ft.source],jt=(ft.type==="symbol"?re:ee)[ft.source];this._renderTileClippingMasks(ft,V[ft.source]),this.renderLayer(this,Et,ft,jt)}this.options.showTileBoundaries&&(o.values(this.style._layers).forEach(function(Nt){Nt.source&&!Nt.isHidden(h.transform.zoom)&&(Nt.source!==(F&&F.id)&&(F=h.style.sourceCaches[Nt.source]),(!M||M.getSource().maxzoom0?f.pop():null},mi.prototype.isPatternMissing=function(c){if(!c)return!1;if(!c.from||!c.to)return!0;var f=this.imageManager.getPattern(c.from.toString()),h=this.imageManager.getPattern(c.to.toString());return!f||!h},mi.prototype.useProgram=function(c,f){this.cache=this.cache||{};var h=""+c+(f?f.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[h]||(this.cache[h]=new Vi(this.context,c,Up[c],f,dh[c],this._showOverdrawInspector)),this.cache[h]},mi.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},mi.prototype.setBaseState=function(){var c=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(c.FUNC_ADD)},mi.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=o.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new o.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},mi.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var d1=function(c,f){this.points=c,this.planes=f};d1.fromInvProjectionMatrix=function(c,f,h){var _=Math.pow(2,h),x=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(w){return o.transformMat4([],w,c)}).map(function(w){return o.scale$1([],w,1/w[3]/f*_)}),S=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(w){var M=o.sub([],x[w[0]],x[w[1]]),F=o.sub([],x[w[2]],x[w[1]]),V=o.normalize([],o.cross([],M,F)),ee=-o.dot(V,x[w[1]]);return V.concat(ee)});return new d1(x,S)};var zs=function(c,f){this.min=c,this.max=f,this.center=o.scale$2([],o.add([],this.min,this.max),.5)};zs.prototype.quadrant=function(c){for(var f=[c%2==0,c<2],h=o.clone$2(this.min),_=o.clone$2(this.max),x=0;x=0;if(S===0)return 0;S!==f.length&&(h=!1)}if(h)return 2;for(var M=0;M<3;M++){for(var F=Number.MAX_VALUE,V=-Number.MAX_VALUE,ee=0;eethis.max[M]-this.min[M])return 0}return 1};var jl=function(c,f,h,_){if(c===void 0&&(c=0),f===void 0&&(f=0),h===void 0&&(h=0),_===void 0&&(_=0),isNaN(c)||c<0||isNaN(f)||f<0||isNaN(h)||h<0||isNaN(_)||_<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=c,this.bottom=f,this.left=h,this.right=_};jl.prototype.interpolate=function(c,f,h){return f.top!=null&&c.top!=null&&(this.top=o.number(c.top,f.top,h)),f.bottom!=null&&c.bottom!=null&&(this.bottom=o.number(c.bottom,f.bottom,h)),f.left!=null&&c.left!=null&&(this.left=o.number(c.left,f.left,h)),f.right!=null&&c.right!=null&&(this.right=o.number(c.right,f.right,h)),this},jl.prototype.getCenter=function(c,f){var h=o.clamp((this.left+c-this.right)/2,0,c),_=o.clamp((this.top+f-this.bottom)/2,0,f);return new o.Point(h,_)},jl.prototype.equals=function(c){return this.top===c.top&&this.bottom===c.bottom&&this.left===c.left&&this.right===c.right},jl.prototype.clone=function(){return new jl(this.top,this.bottom,this.left,this.right)},jl.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Dn=function(c,f,h,_,x){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=x===void 0||x,this._minZoom=c||0,this._maxZoom=f||22,this._minPitch=h??0,this._maxPitch=_??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new o.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new jl,this._posMatrixCache={},this._alignedPosMatrixCache={}},_i={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Dn.prototype.clone=function(){var c=new Dn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return c.tileSize=this.tileSize,c.latRange=this.latRange,c.width=this.width,c.height=this.height,c._center=this._center,c.zoom=this.zoom,c.angle=this.angle,c._fov=this._fov,c._pitch=this._pitch,c._unmodified=this._unmodified,c._edgeInsets=this._edgeInsets.clone(),c._calcMatrices(),c},_i.minZoom.get=function(){return this._minZoom},_i.minZoom.set=function(c){this._minZoom!==c&&(this._minZoom=c,this.zoom=Math.max(this.zoom,c))},_i.maxZoom.get=function(){return this._maxZoom},_i.maxZoom.set=function(c){this._maxZoom!==c&&(this._maxZoom=c,this.zoom=Math.min(this.zoom,c))},_i.minPitch.get=function(){return this._minPitch},_i.minPitch.set=function(c){this._minPitch!==c&&(this._minPitch=c,this.pitch=Math.max(this.pitch,c))},_i.maxPitch.get=function(){return this._maxPitch},_i.maxPitch.set=function(c){this._maxPitch!==c&&(this._maxPitch=c,this.pitch=Math.min(this.pitch,c))},_i.renderWorldCopies.get=function(){return this._renderWorldCopies},_i.renderWorldCopies.set=function(c){c===void 0?c=!0:c===null&&(c=!1),this._renderWorldCopies=c},_i.worldSize.get=function(){return this.tileSize*this.scale},_i.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},_i.size.get=function(){return new o.Point(this.width,this.height)},_i.bearing.get=function(){return-this.angle/Math.PI*180},_i.bearing.set=function(c){var f=-o.wrap(c,-180,180)*Math.PI/180;this.angle!==f&&(this._unmodified=!1,this.angle=f,this._calcMatrices(),this.rotationMatrix=o.create$2(),o.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},_i.pitch.get=function(){return this._pitch/Math.PI*180},_i.pitch.set=function(c){var f=o.clamp(c,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==f&&(this._unmodified=!1,this._pitch=f,this._calcMatrices())},_i.fov.get=function(){return this._fov/Math.PI*180},_i.fov.set=function(c){c=Math.max(.01,Math.min(60,c)),this._fov!==c&&(this._unmodified=!1,this._fov=c/180*Math.PI,this._calcMatrices())},_i.zoom.get=function(){return this._zoom},_i.zoom.set=function(c){var f=Math.min(Math.max(c,this.minZoom),this.maxZoom);this._zoom!==f&&(this._unmodified=!1,this._zoom=f,this.scale=this.zoomScale(f),this.tileZoom=Math.floor(f),this.zoomFraction=f-this.tileZoom,this._constrain(),this._calcMatrices())},_i.center.get=function(){return this._center},_i.center.set=function(c){c.lat===this._center.lat&&c.lng===this._center.lng||(this._unmodified=!1,this._center=c,this._constrain(),this._calcMatrices())},_i.padding.get=function(){return this._edgeInsets.toJSON()},_i.padding.set=function(c){this._edgeInsets.equals(c)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,c,1),this._calcMatrices())},_i.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Dn.prototype.isPaddingEqual=function(c){return this._edgeInsets.equals(c)},Dn.prototype.interpolatePadding=function(c,f,h){this._unmodified=!1,this._edgeInsets.interpolate(c,f,h),this._constrain(),this._calcMatrices()},Dn.prototype.coveringZoomLevel=function(c){var f=(c.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/c.tileSize));return Math.max(0,f)},Dn.prototype.getVisibleUnwrappedCoordinates=function(c){var f=[new o.UnwrappedTileID(0,c)];if(this._renderWorldCopies)for(var h=this.pointCoordinate(new o.Point(0,0)),_=this.pointCoordinate(new o.Point(this.width,0)),x=this.pointCoordinate(new o.Point(this.width,this.height)),S=this.pointCoordinate(new o.Point(0,this.height)),w=Math.floor(Math.min(h.x,_.x,x.x,S.x)),M=Math.floor(Math.max(h.x,_.x,x.x,S.x)),F=w-1;F<=M+1;F++)F!==0&&f.push(new o.UnwrappedTileID(F,c));return f},Dn.prototype.coveringTiles=function(c){var f=this.coveringZoomLevel(c),h=f;if(c.minzoom!==void 0&&fc.maxzoom&&(f=c.maxzoom);var _=o.MercatorCoordinate.fromLngLat(this.center),x=Math.pow(2,f),S=[x*_.x,x*_.y,0],w=d1.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,f),M=c.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(M=f);var F=function(Nt){return{aabb:new zs([Nt*x,0,0],[(Nt+1)*x,x,0]),zoom:0,x:0,y:0,wrap:Nt,fullyVisible:!1}},V=[],ee=[],re=f,ne=c.reparseOverscaled?h:f;if(this._renderWorldCopies)for(var ve=1;ve<=3;ve++)V.push(F(-ve)),V.push(F(ve));for(V.push(F(0));V.length>0;){var pe=V.pop(),Ce=pe.x,he=pe.y,we=pe.fullyVisible;if(!we){var Be=pe.aabb.intersects(w);if(Be===0)continue;we=Be===2}var Ge=pe.aabb.distanceX(S),st=pe.aabb.distanceY(S),Je=Math.max(Math.abs(Ge),Math.abs(st));if(pe.zoom===re||Je>3+(1<=M)ee.push({tileID:new o.OverscaledTileID(pe.zoom===re?ne:pe.zoom,pe.wrap,pe.zoom,Ce,he),distanceSq:o.sqrLen([S[0]-.5-Ce,S[1]-.5-he])});else for(var ft=0;ft<4;ft++){var Et=(Ce<<1)+ft%2,jt=(he<<1)+(ft>>1);V.push({aabb:pe.aabb.quadrant(ft),zoom:pe.zoom+1,x:Et,y:jt,wrap:pe.wrap,fullyVisible:we})}}return ee.sort(function(Nt,ar){return Nt.distanceSq-ar.distanceSq}).map(function(Nt){return Nt.tileID})},Dn.prototype.resize=function(c,f){this.width=c,this.height=f,this.pixelsToGLUnits=[2/c,-2/f],this._constrain(),this._calcMatrices()},_i.unmodified.get=function(){return this._unmodified},Dn.prototype.zoomScale=function(c){return Math.pow(2,c)},Dn.prototype.scaleZoom=function(c){return Math.log(c)/Math.LN2},Dn.prototype.project=function(c){var f=o.clamp(c.lat,-this.maxValidLatitude,this.maxValidLatitude);return new o.Point(o.mercatorXfromLng(c.lng)*this.worldSize,o.mercatorYfromLat(f)*this.worldSize)},Dn.prototype.unproject=function(c){return new o.MercatorCoordinate(c.x/this.worldSize,c.y/this.worldSize).toLngLat()},_i.point.get=function(){return this.project(this.center)},Dn.prototype.setLocationAtPoint=function(c,f){var h=this.pointCoordinate(f),_=this.pointCoordinate(this.centerPoint),x=this.locationCoordinate(c),S=new o.MercatorCoordinate(x.x-(h.x-_.x),x.y-(h.y-_.y));this.center=this.coordinateLocation(S),this._renderWorldCopies&&(this.center=this.center.wrap())},Dn.prototype.locationPoint=function(c){return this.coordinatePoint(this.locationCoordinate(c))},Dn.prototype.pointLocation=function(c){return this.coordinateLocation(this.pointCoordinate(c))},Dn.prototype.locationCoordinate=function(c){return o.MercatorCoordinate.fromLngLat(c)},Dn.prototype.coordinateLocation=function(c){return c.toLngLat()},Dn.prototype.pointCoordinate=function(c){var f=[c.x,c.y,0,1],h=[c.x,c.y,1,1];o.transformMat4(f,f,this.pixelMatrixInverse),o.transformMat4(h,h,this.pixelMatrixInverse);var _=f[3],x=h[3],S=f[1]/_,w=h[1]/x,M=f[2]/_,F=h[2]/x,V=M===F?0:(0-M)/(F-M);return new o.MercatorCoordinate(o.number(f[0]/_,h[0]/x,V)/this.worldSize,o.number(S,w,V)/this.worldSize)},Dn.prototype.coordinatePoint=function(c){var f=[c.x*this.worldSize,c.y*this.worldSize,0,1];return o.transformMat4(f,f,this.pixelMatrix),new o.Point(f[0]/f[3],f[1]/f[3])},Dn.prototype.getBounds=function(){return new o.LngLatBounds().extend(this.pointLocation(new o.Point(0,0))).extend(this.pointLocation(new o.Point(this.width,0))).extend(this.pointLocation(new o.Point(this.width,this.height))).extend(this.pointLocation(new o.Point(0,this.height)))},Dn.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new o.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Dn.prototype.setMaxBounds=function(c){c?(this.lngRange=[c.getWest(),c.getEast()],this.latRange=[c.getSouth(),c.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Dn.prototype.calculatePosMatrix=function(c,f){f===void 0&&(f=!1);var h=c.key,_=f?this._alignedPosMatrixCache:this._posMatrixCache;if(_[h])return _[h];var x=c.canonical,S=this.worldSize/this.zoomScale(x.z),w=x.x+Math.pow(2,x.z)*c.wrap,M=o.identity(new Float64Array(16));return o.translate(M,M,[w*S,x.y*S,0]),o.scale(M,M,[S/o.EXTENT,S/o.EXTENT,1]),o.multiply(M,f?this.alignedProjMatrix:this.projMatrix,M),_[h]=new Float32Array(M),_[h]},Dn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Dn.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var c,f,h,_,x=-90,S=90,w=-180,M=180,F=this.size,V=this._unmodified;if(this.latRange){var ee=this.latRange;x=o.mercatorYfromLat(ee[1])*this.worldSize,c=(S=o.mercatorYfromLat(ee[0])*this.worldSize)-xS&&(_=S-Ce)}if(this.lngRange){var he=ne.x,we=F.x/2;he-weM&&(h=M-we)}h===void 0&&_===void 0||(this.center=this.unproject(new o.Point(h!==void 0?h:ne.x,_!==void 0?_:ne.y))),this._unmodified=V,this._constraining=!1}},Dn.prototype._calcMatrices=function(){if(this.height){var c=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var f=Math.PI/2+this._pitch,h=this._fov*(.5+c.y/this.height),_=Math.sin(h)*this.cameraToCenterDistance/Math.sin(o.clamp(Math.PI-f-h,.01,Math.PI-.01)),x=this.point,S=x.x,w=x.y,M=1.01*(Math.cos(Math.PI/2-this._pitch)*_+this.cameraToCenterDistance),F=this.height/50,V=new Float64Array(16);o.perspective(V,this._fov,this.width/this.height,F,M),V[8]=2*-c.x/this.width,V[9]=2*c.y/this.height,o.scale(V,V,[1,-1,1]),o.translate(V,V,[0,0,-this.cameraToCenterDistance]),o.rotateX(V,V,this._pitch),o.rotateZ(V,V,this.angle),o.translate(V,V,[-S,-w,0]),this.mercatorMatrix=o.scale([],V,[this.worldSize,this.worldSize,this.worldSize]),o.scale(V,V,[1,1,o.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=V,this.invProjMatrix=o.invert([],this.projMatrix);var ee=this.width%2/2,re=this.height%2/2,ne=Math.cos(this.angle),ve=Math.sin(this.angle),pe=S-Math.round(S)+ne*ee+ve*re,Ce=w-Math.round(w)+ne*re+ve*ee,he=new Float64Array(V);if(o.translate(he,he,[pe>.5?pe-1:pe,Ce>.5?Ce-1:Ce,0]),this.alignedProjMatrix=he,V=o.create(),o.scale(V,V,[this.width/2,-this.height/2,1]),o.translate(V,V,[1,-1,0]),this.labelPlaneMatrix=V,V=o.create(),o.scale(V,V,[1,-1,1]),o.translate(V,V,[-1,-1,0]),o.scale(V,V,[2/this.width,2/this.height,1]),this.glCoordMatrix=V,this.pixelMatrix=o.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(V=o.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=V,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Dn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var c=this.pointCoordinate(new o.Point(0,0)),f=[c.x*this.worldSize,c.y*this.worldSize,0,1];return o.transformMat4(f,f,this.pixelMatrix)[3]/this.cameraToCenterDistance},Dn.prototype.getCameraPoint=function(){var c=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new o.Point(0,c))},Dn.prototype.getCameraQueryGeometry=function(c){var f=this.getCameraPoint();if(c.length===1)return[c[0],f];for(var h=f.x,_=f.y,x=f.x,S=f.y,w=0,M=c;w=3&&!c.some(function(h){return isNaN(h)})){var f=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:f,pitch:+(c[4]||0)}),!0}return!1},Za.prototype._updateHashUnthrottled=function(){var c=o.window.location.href.replace(/(#.+)?$/,this.getHashString());try{o.window.history.replaceState(o.window.history.state,null,c)}catch{}};var Rc={linearity:.3,easing:o.bezier(0,0,.3,1)},Gu=o.extend({deceleration:2500,maxSpeed:1400},Rc),Ic=o.extend({deceleration:20,maxSpeed:1400},Rc),yf=o.extend({deceleration:1e3,maxSpeed:360},Rc),m1=o.extend({deceleration:1e3,maxSpeed:90},Rc),Mc=function(c){this._map=c,this.clear()};function Xl(c,f){(!c.duration||c.duration0&&f-c[0].time>160;)c.shift()},Mc.prototype._onMoveEnd=function(c){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var f={zoom:0,bearing:0,pitch:0,pan:new o.Point(0,0),pinchAround:void 0,around:void 0},h=0,_=this._inertiaBuffer;h<_.length;h+=1){var x=_[h].settings;f.zoom+=x.zoomDelta||0,f.bearing+=x.bearingDelta||0,f.pitch+=x.pitchDelta||0,x.panDelta&&f.pan._add(x.panDelta),x.around&&(f.around=x.around),x.pinchAround&&(f.pinchAround=x.pinchAround)}var S=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,w={};if(f.pan.mag()){var M=go(f.pan.mag(),S,o.extend({},Gu,c||{}));w.offset=f.pan.mult(M.amount/f.pan.mag()),w.center=this._map.transform.center,Xl(w,M)}if(f.zoom){var F=go(f.zoom,S,Ic);w.zoom=this._map.transform.zoom+F.amount,Xl(w,F)}if(f.bearing){var V=go(f.bearing,S,yf);w.bearing=this._map.transform.bearing+o.clamp(V.amount,-179,179),Xl(w,V)}if(f.pitch){var ee=go(f.pitch,S,m1);w.pitch=this._map.transform.pitch+ee.amount,Xl(w,ee)}if(w.zoom||w.bearing){var re=f.pinchAround===void 0?f.around:f.pinchAround;w.around=re?this._map.unproject(re):this._map.getCenter()}return this.clear(),o.extend(w,{noMoveStart:!0})}};var wi=function(c){function f(_,x,S,w){w===void 0&&(w={});var M=m.mousePos(x.getCanvasContainer(),S),F=x.unproject(M);c.call(this,_,o.extend({point:M,lngLat:F,originalEvent:S},w)),this._defaultPrevented=!1,this.target=x}c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f;var h={defaultPrevented:{configurable:!0}};return f.prototype.preventDefault=function(){this._defaultPrevented=!0},h.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(f.prototype,h),f}(o.Event),Zu=function(c){function f(_,x,S){var w=_==="touchend"?S.changedTouches:S.touches,M=m.touchPos(x.getCanvasContainer(),w),F=M.map(function(re){return x.unproject(re)}),V=M.reduce(function(re,ne,ve,pe){return re.add(ne.div(pe.length))},new o.Point(0,0)),ee=x.unproject(V);c.call(this,_,{points:M,point:V,lngLats:F,lngLat:ee,originalEvent:S}),this._defaultPrevented=!1}c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f;var h={defaultPrevented:{configurable:!0}};return f.prototype.preventDefault=function(){this._defaultPrevented=!0},h.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(f.prototype,h),f}(o.Event),Eh=function(c){function f(_,x,S){c.call(this,_,{originalEvent:S}),this._defaultPrevented=!1}c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f;var h={defaultPrevented:{configurable:!0}};return f.prototype.preventDefault=function(){this._defaultPrevented=!0},h.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(f.prototype,h),f}(o.Event),Zi=function(c,f){this._map=c,this._clickTolerance=f.clickTolerance};Zi.prototype.reset=function(){delete this._mousedownPos},Zi.prototype.wheel=function(c){return this._firePreventable(new Eh(c.type,this._map,c))},Zi.prototype.mousedown=function(c,f){return this._mousedownPos=f,this._firePreventable(new wi(c.type,this._map,c))},Zi.prototype.mouseup=function(c){this._map.fire(new wi(c.type,this._map,c))},Zi.prototype.click=function(c,f){this._mousedownPos&&this._mousedownPos.dist(f)>=this._clickTolerance||this._map.fire(new wi(c.type,this._map,c))},Zi.prototype.dblclick=function(c){return this._firePreventable(new wi(c.type,this._map,c))},Zi.prototype.mouseover=function(c){this._map.fire(new wi(c.type,this._map,c))},Zi.prototype.mouseout=function(c){this._map.fire(new wi(c.type,this._map,c))},Zi.prototype.touchstart=function(c){return this._firePreventable(new Zu(c.type,this._map,c))},Zi.prototype.touchmove=function(c){this._map.fire(new Zu(c.type,this._map,c))},Zi.prototype.touchend=function(c){this._map.fire(new Zu(c.type,this._map,c))},Zi.prototype.touchcancel=function(c){this._map.fire(new Zu(c.type,this._map,c))},Zi.prototype._firePreventable=function(c){if(this._map.fire(c),c.defaultPrevented)return{}},Zi.prototype.isEnabled=function(){return!0},Zi.prototype.isActive=function(){return!1},Zi.prototype.enable=function(){},Zi.prototype.disable=function(){};var _r=function(c){this._map=c};_r.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},_r.prototype.mousemove=function(c){this._map.fire(new wi(c.type,this._map,c))},_r.prototype.mousedown=function(){this._delayContextMenu=!0},_r.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new wi("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},_r.prototype.contextmenu=function(c){this._delayContextMenu?this._contextMenuEvent=c:this._map.fire(new wi(c.type,this._map,c)),this._map.listens("contextmenu")&&c.preventDefault()},_r.prototype.isEnabled=function(){return!0},_r.prototype.isActive=function(){return!1},_r.prototype.enable=function(){},_r.prototype.disable=function(){};var ya=function(c,f){this._map=c,this._el=c.getCanvasContainer(),this._container=c.getContainer(),this._clickTolerance=f.clickTolerance||1};function Pc(c,f){for(var h={},_=0;_this.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=c.timeStamp),h.length===this.numTouches&&(this.centroid=function(_){for(var x=new o.Point(0,0),S=0,w=_;S30)&&(this.aborted=!0)}}},$u.prototype.touchend=function(c,f,h){if((!this.centroid||c.timeStamp-this.startTime>500)&&(this.aborted=!0),h.length===0){var _=!this.aborted&&this.centroid;if(this.reset(),_)return _}};var sa=function(c){this.singleTap=new $u(c),this.numTaps=c.numTaps,this.reset()};sa.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},sa.prototype.touchstart=function(c,f,h){this.singleTap.touchstart(c,f,h)},sa.prototype.touchmove=function(c,f,h){this.singleTap.touchmove(c,f,h)},sa.prototype.touchend=function(c,f,h){var _=this.singleTap.touchend(c,f,h);if(_){var x=c.timeStamp-this.lastTime<500,S=!this.lastTap||this.lastTap.dist(_)<30;if(x&&S||this.reset(),this.count++,this.lastTime=c.timeStamp,this.lastTap=_,this.count===this.numTaps)return this.reset(),_}};var ai=function(){this._zoomIn=new sa({numTouches:1,numTaps:2}),this._zoomOut=new sa({numTouches:2,numTaps:1}),this.reset()};ai.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},ai.prototype.touchstart=function(c,f,h){this._zoomIn.touchstart(c,f,h),this._zoomOut.touchstart(c,f,h)},ai.prototype.touchmove=function(c,f,h){this._zoomIn.touchmove(c,f,h),this._zoomOut.touchmove(c,f,h)},ai.prototype.touchend=function(c,f,h){var _=this,x=this._zoomIn.touchend(c,f,h),S=this._zoomOut.touchend(c,f,h);return x?(this._active=!0,c.preventDefault(),setTimeout(function(){return _.reset()},0),{cameraAnimation:function(w){return w.easeTo({duration:300,zoom:w.getZoom()+1,around:w.unproject(x)},{originalEvent:c})}}):S?(this._active=!0,c.preventDefault(),setTimeout(function(){return _.reset()},0),{cameraAnimation:function(w){return w.easeTo({duration:300,zoom:w.getZoom()-1,around:w.unproject(S)},{originalEvent:c})}}):void 0},ai.prototype.touchcancel=function(){this.reset()},ai.prototype.enable=function(){this._enabled=!0},ai.prototype.disable=function(){this._enabled=!1,this.reset()},ai.prototype.isEnabled=function(){return this._enabled},ai.prototype.isActive=function(){return this._active};var _1={0:1,2:2},Jt=function(c){this.reset(),this._clickTolerance=c.clickTolerance||1};Jt.prototype.blur=function(){this.reset()},Jt.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Jt.prototype._correctButton=function(c,f){return!1},Jt.prototype._move=function(c,f){return{}},Jt.prototype.mousedown=function(c,f){if(!this._lastPoint){var h=m.mouseButton(c);this._correctButton(c,h)&&(this._lastPoint=f,this._eventButton=h)}},Jt.prototype.mousemoveWindow=function(c,f){var h=this._lastPoint;if(h){if(c.preventDefault(),function(_,x){var S=_1[x];return _.buttons===void 0||(_.buttons&S)!==S}(c,this._eventButton))this.reset();else if(this._moved||!(f.dist(h)0&&(this._active=!0);var _=Pc(h,f),x=new o.Point(0,0),S=new o.Point(0,0),w=0;for(var M in _){var F=_[M],V=this._touches[M];V&&(x._add(F),S._add(F.sub(V)),w++,_[M]=F)}if(this._touches=_,!(wMath.abs(c.x)}var x1=function(c){function f(){c.apply(this,arguments)}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f.prototype.reset=function(){c.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},f.prototype._start=function(h){this._lastPoints=h,qu(h[0].sub(h[1]))&&(this._valid=!1)},f.prototype._move=function(h,_,x){var S=h[0].sub(this._lastPoints[0]),w=h[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(S,w,x.timeStamp),this._valid)return this._lastPoints=h,this._active=!0,{pitchDelta:(S.y+w.y)/2*-.5}},f.prototype.gestureBeginsVertically=function(h,_,x){if(this._valid!==void 0)return this._valid;var S=h.mag()>=2,w=_.mag()>=2;if(S||w){if(!S||!w)return this._firstMove===void 0&&(this._firstMove=x),x-this._firstMove<100&&void 0;var M=h.y>0==_.y>0;return qu(h)&&qu(_)&&M}},f}(La),Th={panStep:100,bearingStep:15,pitchStep:10},Da=function(){var c=Th;this._panStep=c.panStep,this._bearingStep=c.bearingStep,this._pitchStep=c.pitchStep,this._rotationDisabled=!1};function $a(c){return c*(2-c)}Da.prototype.blur=function(){this.reset()},Da.prototype.reset=function(){this._active=!1},Da.prototype.keydown=function(c){var f=this;if(!(c.altKey||c.ctrlKey||c.metaKey)){var h=0,_=0,x=0,S=0,w=0;switch(c.keyCode){case 61:case 107:case 171:case 187:h=1;break;case 189:case 109:case 173:h=-1;break;case 37:c.shiftKey?_=-1:(c.preventDefault(),S=-1);break;case 39:c.shiftKey?_=1:(c.preventDefault(),S=1);break;case 38:c.shiftKey?x=1:(c.preventDefault(),w=-1);break;case 40:c.shiftKey?x=-1:(c.preventDefault(),w=1);break;default:return}return this._rotationDisabled&&(_=0,x=0),{cameraAnimation:function(M){var F=M.getZoom();M.easeTo({duration:300,easeId:"keyboardHandler",easing:$a,zoom:h?Math.round(F)+h*(c.shiftKey?2:1):F,bearing:M.getBearing()+_*f._bearingStep,pitch:M.getPitch()+x*f._pitchStep,offset:[-S*f._panStep,-w*f._panStep],center:M.getCenter()},{originalEvent:c})}}}},Da.prototype.enable=function(){this._enabled=!0},Da.prototype.disable=function(){this._enabled=!1,this.reset()},Da.prototype.isEnabled=function(){return this._enabled},Da.prototype.isActive=function(){return this._active},Da.prototype.disableRotation=function(){this._rotationDisabled=!0},Da.prototype.enableRotation=function(){this._rotationDisabled=!1};var cn=function(c,f){this._map=c,this._el=c.getCanvasContainer(),this._handler=f,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,o.bindAll(["_onTimeout"],this)};cn.prototype.setZoomRate=function(c){this._defaultZoomRate=c},cn.prototype.setWheelZoomRate=function(c){this._wheelZoomRate=c},cn.prototype.isEnabled=function(){return!!this._enabled},cn.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},cn.prototype.isZooming=function(){return!!this._zooming},cn.prototype.enable=function(c){this.isEnabled()||(this._enabled=!0,this._aroundCenter=c&&c.around==="center")},cn.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},cn.prototype.wheel=function(c){if(this.isEnabled()){var f=c.deltaMode===o.window.WheelEvent.DOM_DELTA_LINE?40*c.deltaY:c.deltaY,h=o.browser.now(),_=h-(this._lastWheelEventTime||0);this._lastWheelEventTime=h,f!==0&&f%4.000244140625==0?this._type="wheel":f!==0&&Math.abs(f)<4?this._type="trackpad":_>400?(this._type=null,this._lastValue=f,this._timeout=setTimeout(this._onTimeout,40,c)):this._type||(this._type=Math.abs(_*f)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,f+=this._lastValue)),c.shiftKey&&f&&(f/=4),this._type&&(this._lastWheelEvent=c,this._delta-=f,this._active||this._start(c)),c.preventDefault()}},cn.prototype._onTimeout=function(c){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(c)},cn.prototype._start=function(c){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var f=m.mousePos(this._el,c);this._around=o.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(f)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},cn.prototype.renderFrame=function(){var c=this;if(this._frameId&&(this._frameId=null,this.isActive())){var f=this._map.transform;if(this._delta!==0){var h=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,_=2/(1+Math.exp(-Math.abs(this._delta*h)));this._delta<0&&_!==0&&(_=1/_);var x=typeof this._targetZoom=="number"?f.zoomScale(this._targetZoom):f.scale;this._targetZoom=Math.min(f.maxZoom,Math.max(f.minZoom,f.scaleZoom(x*_))),this._type==="wheel"&&(this._startZoom=f.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var S,w=typeof this._targetZoom=="number"?this._targetZoom:f.zoom,M=this._startZoom,F=this._easing,V=!1;if(this._type==="wheel"&&M&&F){var ee=Math.min((o.browser.now()-this._lastWheelEventTime)/200,1),re=F(ee);S=o.number(M,w,re),ee<1?this._frameId||(this._frameId=!0):V=!0}else S=w,V=!0;return this._active=!0,V&&(this._active=!1,this._finishTimeout=setTimeout(function(){c._zooming=!1,c._handler._triggerRenderFrame(),delete c._targetZoom,delete c._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!V,zoomDelta:S-f.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},cn.prototype._smoothOutEasing=function(c){var f=o.ease;if(this._prevEase){var h=this._prevEase,_=(o.browser.now()-h.start)/h.duration,x=h.easing(_+.01)-h.easing(_),S=.27/Math.sqrt(x*x+1e-4)*.01,w=Math.sqrt(.0729-S*S);f=o.bezier(S,w,.25,1)}return this._prevEase={start:o.browser.now(),duration:c,easing:f},f},cn.prototype.blur=function(){this.reset()},cn.prototype.reset=function(){this._active=!1};var qa=function(c,f){this._clickZoom=c,this._tapZoom=f};qa.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},qa.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},qa.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},qa.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ya=function(){this.reset()};Ya.prototype.reset=function(){this._active=!1},Ya.prototype.blur=function(){this.reset()},Ya.prototype.dblclick=function(c,f){return c.preventDefault(),{cameraAnimation:function(h){h.easeTo({duration:300,zoom:h.getZoom()+(c.shiftKey?-1:1),around:h.unproject(f)},{originalEvent:c})}}},Ya.prototype.enable=function(){this._enabled=!0},Ya.prototype.disable=function(){this._enabled=!1,this.reset()},Ya.prototype.isEnabled=function(){return this._enabled},Ya.prototype.isActive=function(){return this._active};var Do=function(){this._tap=new sa({numTouches:1,numTaps:1}),this.reset()};Do.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Do.prototype.touchstart=function(c,f,h){this._swipePoint||(this._tapTime&&c.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?h.length>0&&(this._swipePoint=f[0],this._swipeTouch=h[0].identifier):this._tap.touchstart(c,f,h))},Do.prototype.touchmove=function(c,f,h){if(this._tapTime){if(this._swipePoint){if(h[0].identifier!==this._swipeTouch)return;var _=f[0],x=_.y-this._swipePoint.y;return this._swipePoint=_,c.preventDefault(),this._active=!0,{zoomDelta:x/128}}}else this._tap.touchmove(c,f,h)},Do.prototype.touchend=function(c,f,h){this._tapTime?this._swipePoint&&h.length===0&&this.reset():this._tap.touchend(c,f,h)&&(this._tapTime=c.timeStamp)},Do.prototype.touchcancel=function(){this.reset()},Do.prototype.enable=function(){this._enabled=!0},Do.prototype.disable=function(){this._enabled=!1,this.reset()},Do.prototype.isEnabled=function(){return this._enabled},Do.prototype.isActive=function(){return this._active};var Wl=function(c,f,h){this._el=c,this._mousePan=f,this._touchPan=h};Wl.prototype.enable=function(c){this._inertiaOptions=c||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Wl.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Wl.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Wl.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var _l=function(c,f,h){this._pitchWithRotate=c.pitchWithRotate,this._mouseRotate=f,this._mousePitch=h};_l.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},_l.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},_l.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},_l.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var ss=function(c,f,h,_){this._el=c,this._touchZoom=f,this._touchRotate=h,this._tapDragZoom=_,this._rotationDisabled=!1,this._enabled=!0};ss.prototype.enable=function(c){this._touchZoom.enable(c),this._rotationDisabled||this._touchRotate.enable(c),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},ss.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},ss.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},ss.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},ss.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},ss.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Jo=function(c){return c.zoom||c.drag||c.pitch||c.rotate},Yu=function(c){function f(){c.apply(this,arguments)}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f}(o.Event);function Rr(c){return c.panDelta&&c.panDelta.mag()||c.zoomDelta||c.bearingDelta||c.pitchDelta}var xr=function(c,f){this._map=c,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Mc(c),this._bearingSnap=f.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(f),o.bindAll(["handleEvent","handleWindowEvent"],this);var h=this._el;this._listeners=[[h,"touchstart",{passive:!0}],[h,"touchmove",{passive:!1}],[h,"touchend",void 0],[h,"touchcancel",void 0],[h,"mousedown",void 0],[h,"mousemove",void 0],[h,"mouseup",void 0],[o.window.document,"mousemove",{capture:!0}],[o.window.document,"mouseup",void 0],[h,"mouseover",void 0],[h,"mouseout",void 0],[h,"dblclick",void 0],[h,"click",void 0],[h,"keydown",{capture:!1}],[h,"keyup",void 0],[h,"wheel",{passive:!1}],[h,"contextmenu",void 0],[o.window,"blur",void 0]];for(var _=0,x=this._listeners;_w?Math.min(2,ft):Math.max(.5,ft),Ir=Math.pow(ar,1-jt),Br=S.unproject(st.add(Je.mult(jt*Ir)).mult(Nt));S.setLocationAtPoint(S.renderWorldCopies?Br.wrap():Br,Ce)}x._fireMoveEvents(_)},function(jt){x._afterEase(_,jt)},h),this},f.prototype._prepareEase=function(h,_,x){x===void 0&&(x={}),this._moving=!0,_||x.moving||this.fire(new o.Event("movestart",h)),this._zooming&&!x.zooming&&this.fire(new o.Event("zoomstart",h)),this._rotating&&!x.rotating&&this.fire(new o.Event("rotatestart",h)),this._pitching&&!x.pitching&&this.fire(new o.Event("pitchstart",h))},f.prototype._fireMoveEvents=function(h){this.fire(new o.Event("move",h)),this._zooming&&this.fire(new o.Event("zoom",h)),this._rotating&&this.fire(new o.Event("rotate",h)),this._pitching&&this.fire(new o.Event("pitch",h))},f.prototype._afterEase=function(h,_){if(!this._easeId||!_||this._easeId!==_){delete this._easeId;var x=this._zooming,S=this._rotating,w=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,x&&this.fire(new o.Event("zoomend",h)),S&&this.fire(new o.Event("rotateend",h)),w&&this.fire(new o.Event("pitchend",h)),this.fire(new o.Event("moveend",h))}},f.prototype.flyTo=function(h,_){var x=this;if(!h.essential&&o.browser.prefersReducedMotion){var S=o.pick(h,["center","zoom","bearing","pitch","around"]);return this.jumpTo(S,_)}this.stop(),h=o.extend({offset:[0,0],speed:1.2,curve:1.42,easing:o.ease},h);var w=this.transform,M=this.getZoom(),F=this.getBearing(),V=this.getPitch(),ee=this.getPadding(),re="zoom"in h?o.clamp(+h.zoom,w.minZoom,w.maxZoom):M,ne="bearing"in h?this._normalizeBearing(h.bearing,F):F,ve="pitch"in h?+h.pitch:V,pe="padding"in h?h.padding:w.padding,Ce=w.zoomScale(re-M),he=o.Point.convert(h.offset),we=w.centerPoint.add(he),Be=w.pointLocation(we),Ge=o.LngLat.convert(h.center||Be);this._normalizeCenter(Ge);var st=w.project(Be),Je=w.project(Ge).sub(st),ft=h.curve,Et=Math.max(w.width,w.height),jt=Et/Ce,Nt=Je.mag();if("minZoom"in h){var ar=o.clamp(Math.min(h.minZoom,M,re),w.minZoom,w.maxZoom),Ir=Et/w.zoomScale(ar-M);ft=Math.sqrt(Ir/Nt*2)}var Br=ft*ft;function Dr(Wr){var Vr=(jt*jt-Et*Et+(Wr?-1:1)*Br*Br*Nt*Nt)/(2*(Wr?jt:Et)*Br*Nt);return Math.log(Math.sqrt(Vr*Vr+1)-Vr)}function Nn(Wr){return(Math.exp(Wr)-Math.exp(-Wr))/2}function fr(Wr){return(Math.exp(Wr)+Math.exp(-Wr))/2}var qr=Dr(0),hn=function(Wr){return fr(qr)/fr(qr+ft*Wr)},Zr=function(Wr){return Et*((fr(qr)*(Nn(Vr=qr+ft*Wr)/fr(Vr))-Nn(qr))/Br)/Nt;var Vr},Xr=(Dr(1)-qr)/ft;if(Math.abs(Nt)<1e-6||!isFinite(Xr)){if(Math.abs(Et-jt)<1e-6)return this.easeTo(h,_);var un=jth.maxDuration&&(h.duration=0),this._zooming=!0,this._rotating=F!==ne,this._pitching=ve!==V,this._padding=!w.isPaddingEqual(pe),this._prepareEase(_,!1),this._ease(function(Wr){var Vr=Wr*Xr,to=1/hn(Vr);w.zoom=Wr===1?re:M+w.scaleZoom(to),x._rotating&&(w.bearing=o.number(F,ne,Wr)),x._pitching&&(w.pitch=o.number(V,ve,Wr)),x._padding&&(w.interpolatePadding(ee,pe,Wr),we=w.centerPoint.add(he));var Mi=Wr===1?Ge:w.unproject(st.add(Je.mult(Zr(Vr))).mult(to));w.setLocationAtPoint(w.renderWorldCopies?Mi.wrap():Mi,we),x._fireMoveEvents(_)},function(){return x._afterEase(_)},h),this},f.prototype.isEasing=function(){return!!this._easeFrameId},f.prototype.stop=function(){return this._stop()},f.prototype._stop=function(h,_){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var x=this._onEaseEnd;delete this._onEaseEnd,x.call(this,_)}if(!h){var S=this.handlers;S&&S.stop(!1)}return this},f.prototype._ease=function(h,_,x){x.animate===!1||x.duration===0?(h(1),_()):(this._easeStart=o.browser.now(),this._easeOptions=x,this._onEaseFrame=h,this._onEaseEnd=_,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},f.prototype._renderFrameCallback=function(){var h=Math.min((o.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(h)),h<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},f.prototype._normalizeBearing=function(h,_){h=o.wrap(h,-180,180);var x=Math.abs(h-_);return Math.abs(h-360-_)180?-360:x<-180?360:0}},f}(o.Evented),ea=function(c){c===void 0&&(c={}),this.options=c,o.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ea.prototype.getDefaultPosition=function(){return"bottom-right"},ea.prototype.onAdd=function(c){var f=this.options&&this.options.compact;return this._map=c,this._container=m.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=m.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=m.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),f&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),f===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ea.prototype.onRemove=function(){m.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ea.prototype._setElementTitle=function(c,f){var h=this._map._getUIString("AttributionControl."+f);c.title=h,c.setAttribute("aria-label",h)},ea.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},ea.prototype._updateEditLink=function(){var c=this._editLink;c||(c=this._editLink=this._container.querySelector(".mapbox-improve-map"));var f=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||o.config.ACCESS_TOKEN}];if(c){var h=f.reduce(function(_,x,S){return x.value&&(_+=x.key+"="+x.value+(S=0)return!1;return!0})).join(" | ");w!==this._attribHTML&&(this._attribHTML=w,c.length?(this._innerContainer.innerHTML=w,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ea.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var bs=function(){o.bindAll(["_updateLogo"],this),o.bindAll(["_updateCompact"],this)};bs.prototype.onAdd=function(c){this._map=c,this._container=m.create("div","mapboxgl-ctrl");var f=m.create("a","mapboxgl-ctrl-logo");return f.target="_blank",f.rel="noopener nofollow",f.href="https://www.mapbox.com/",f.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),f.setAttribute("rel","noopener nofollow"),this._container.appendChild(f),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},bs.prototype.onRemove=function(){m.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},bs.prototype.getDefaultPosition=function(){return"bottom-left"},bs.prototype._updateLogo=function(c){c&&c.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},bs.prototype._logoRequired=function(){if(this._map.style){var c=this._map.style.sourceCaches;for(var f in c)if(c[f].getSource().mapbox_logo)return!0;return!1}},bs.prototype._updateCompact=function(){var c=this._container.children;if(c.length){var f=c[0];this._map.getCanvasContainer().offsetWidth<250?f.classList.add("mapboxgl-compact"):f.classList.remove("mapboxgl-compact")}};var Ci=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ci.prototype.add=function(c){var f=++this._id;return this._queue.push({callback:c,id:f,cancelled:!1}),f},Ci.prototype.remove=function(c){for(var f=this._currentlyRunning,h=0,_=f?this._queue.concat(f):this._queue;h<_.length;h+=1){var x=_[h];if(x.id===c)return void(x.cancelled=!0)}},Ci.prototype.run=function(c){c===void 0&&(c=0);var f=this._currentlyRunning=this._queue;this._queue=[];for(var h=0,_=f;h<_.length;h+=1){var x=_[h];if(!x.cancelled&&(x.callback(c),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},Ci.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var ls={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},gl=o.window.HTMLImageElement,Eu=o.window.HTMLElement,$n=o.window.ImageBitmap,vo={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Ah=function(c){function f(_){var x=this;if((_=o.extend({},vo,_)).minZoom!=null&&_.maxZoom!=null&&_.minZoom>_.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(_.minPitch!=null&&_.maxPitch!=null&&_.minPitch>_.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(_.minPitch!=null&&_.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(_.maxPitch!=null&&_.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var S=new Dn(_.minZoom,_.maxZoom,_.minPitch,_.maxPitch,_.renderWorldCopies);if(c.call(this,S,_),this._interactive=_.interactive,this._maxTileCacheSize=_.maxTileCacheSize,this._failIfMajorPerformanceCaveat=_.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=_.preserveDrawingBuffer,this._antialias=_.antialias,this._trackResize=_.trackResize,this._bearingSnap=_.bearingSnap,this._refreshExpiredTiles=_.refreshExpiredTiles,this._fadeDuration=_.fadeDuration,this._crossSourceCollisions=_.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=_.collectResourceTiming,this._renderTaskQueue=new Ci,this._controls=[],this._mapId=o.uniqueId(),this._locale=o.extend({},ls,_.locale),this._clickTolerance=_.clickTolerance,this._requestManager=new o.RequestManager(_.transformRequest,_.accessToken),typeof _.container=="string"){if(this._container=o.window.document.getElementById(_.container),!this._container)throw new Error("Container '"+_.container+"' not found.")}else{if(!(_.container instanceof Eu))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=_.container}if(_.maxBounds&&this.setMaxBounds(_.maxBounds),o.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return x._update(!1)}),this.on("moveend",function(){return x._update(!1)}),this.on("zoom",function(){return x._update(!0)}),o.window!==void 0&&(o.window.addEventListener("online",this._onWindowOnline,!1),o.window.addEventListener("resize",this._onWindowResize,!1),o.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new xr(this,_),this._hash=_.hash&&new Za(typeof _.hash=="string"&&_.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:_.center,zoom:_.zoom,bearing:_.bearing,pitch:_.pitch}),_.bounds&&(this.resize(),this.fitBounds(_.bounds,o.extend({},_.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=_.localIdeographFontFamily,_.style&&this.setStyle(_.style,{localIdeographFontFamily:_.localIdeographFontFamily}),_.attributionControl&&this.addControl(new ea({customAttribution:_.customAttribution})),this.addControl(new bs,_.logoPosition),this.on("style.load",function(){x.transform.unmodified&&x.jumpTo(x.style.stylesheet)}),this.on("data",function(w){x._update(w.dataType==="style"),x.fire(new o.Event(w.dataType+"data",w))}),this.on("dataloading",function(w){x.fire(new o.Event(w.dataType+"dataloading",w))})}c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f;var h={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return f.prototype._getMapId=function(){return this._mapId},f.prototype.addControl=function(_,x){if(x===void 0&&(x=_.getDefaultPosition?_.getDefaultPosition():"top-right"),!_||!_.onAdd)return this.fire(new o.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var S=_.onAdd(this);this._controls.push(_);var w=this._controlPositions[x];return x.indexOf("bottom")!==-1?w.insertBefore(S,w.firstChild):w.appendChild(S),this},f.prototype.removeControl=function(_){if(!_||!_.onRemove)return this.fire(new o.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var x=this._controls.indexOf(_);return x>-1&&this._controls.splice(x,1),_.onRemove(this),this},f.prototype.hasControl=function(_){return this._controls.indexOf(_)>-1},f.prototype.resize=function(_){var x=this._containerDimensions(),S=x[0],w=x[1];if(S===this.transform.width&&w===this.transform.height)return this;this._resizeCanvas(S,w),this.transform.resize(S,w),this.painter.resize(S,w);var M=!this._moving;return M&&this.fire(new o.Event("movestart",_)).fire(new o.Event("move",_)),this.fire(new o.Event("resize",_)),M&&this.fire(new o.Event("moveend",_)),this},f.prototype.getBounds=function(){return this.transform.getBounds()},f.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},f.prototype.setMaxBounds=function(_){return this.transform.setMaxBounds(o.LngLatBounds.convert(_)),this._update()},f.prototype.setMinZoom=function(_){if((_=_??-2)>=-2&&_<=this.transform.maxZoom)return this.transform.minZoom=_,this._update(),this.getZoom()<_&&this.setZoom(_),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")},f.prototype.getMinZoom=function(){return this.transform.minZoom},f.prototype.setMaxZoom=function(_){if((_=_??22)>=this.transform.minZoom)return this.transform.maxZoom=_,this._update(),this.getZoom()>_&&this.setZoom(_),this;throw new Error("maxZoom must be greater than the current minZoom")},f.prototype.getMaxZoom=function(){return this.transform.maxZoom},f.prototype.setMinPitch=function(_){if((_=_??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(_>=0&&_<=this.transform.maxPitch)return this.transform.minPitch=_,this._update(),this.getPitch()<_&&this.setPitch(_),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")},f.prototype.getMinPitch=function(){return this.transform.minPitch},f.prototype.setMaxPitch=function(_){if((_=_??60)>60)throw new Error("maxPitch must be less than or equal to 60");if(_>=this.transform.minPitch)return this.transform.maxPitch=_,this._update(),this.getPitch()>_&&this.setPitch(_),this;throw new Error("maxPitch must be greater than the current minPitch")},f.prototype.getMaxPitch=function(){return this.transform.maxPitch},f.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},f.prototype.setRenderWorldCopies=function(_){return this.transform.renderWorldCopies=_,this._update()},f.prototype.project=function(_){return this.transform.locationPoint(o.LngLat.convert(_))},f.prototype.unproject=function(_){return this.transform.pointLocation(o.Point.convert(_))},f.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},f.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},f.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},f.prototype._createDelegatedListener=function(_,x,S){var w,M=this;if(_==="mouseenter"||_==="mouseover"){var F=!1;return{layer:x,listener:S,delegates:{mousemove:function(ee){var re=M.getLayer(x)?M.queryRenderedFeatures(ee.point,{layers:[x]}):[];re.length?F||(F=!0,S.call(M,new wi(_,M,ee.originalEvent,{features:re}))):F=!1},mouseout:function(){F=!1}}}}if(_==="mouseleave"||_==="mouseout"){var V=!1;return{layer:x,listener:S,delegates:{mousemove:function(ee){(M.getLayer(x)?M.queryRenderedFeatures(ee.point,{layers:[x]}):[]).length?V=!0:V&&(V=!1,S.call(M,new wi(_,M,ee.originalEvent)))},mouseout:function(ee){V&&(V=!1,S.call(M,new wi(_,M,ee.originalEvent)))}}}}return{layer:x,listener:S,delegates:(w={},w[_]=function(ee){var re=M.getLayer(x)?M.queryRenderedFeatures(ee.point,{layers:[x]}):[];re.length&&(ee.features=re,S.call(M,ee),delete ee.features)},w)}},f.prototype.on=function(_,x,S){if(S===void 0)return c.prototype.on.call(this,_,x);var w=this._createDelegatedListener(_,x,S);for(var M in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[_]=this._delegatedListeners[_]||[],this._delegatedListeners[_].push(w),w.delegates)this.on(M,w.delegates[M]);return this},f.prototype.once=function(_,x,S){if(S===void 0)return c.prototype.once.call(this,_,x);var w=this._createDelegatedListener(_,x,S);for(var M in w.delegates)this.once(M,w.delegates[M]);return this},f.prototype.off=function(_,x,S){var w=this;return S===void 0?c.prototype.off.call(this,_,x):(this._delegatedListeners&&this._delegatedListeners[_]&&function(M){for(var F=M[_],V=0;V180;){var w=h.locationPoint(c);if(w.x>=0&&w.y>=0&&w.x<=h.width&&w.y<=h.height)break;c.lng>h.center.lng?c.lng-=360:c.lng+=360}return c}Fa.prototype.down=function(c,f){this.mouseRotate.mousedown(c,f),this.mousePitch&&this.mousePitch.mousedown(c,f),m.disableDrag()},Fa.prototype.move=function(c,f){var h=this.map,_=this.mouseRotate.mousemoveWindow(c,f);if(_&&_.bearingDelta&&h.setBearing(h.getBearing()+_.bearingDelta),this.mousePitch){var x=this.mousePitch.mousemoveWindow(c,f);x&&x.pitchDelta&&h.setPitch(h.getPitch()+x.pitchDelta)}},Fa.prototype.off=function(){var c=this.element;m.removeEventListener(c,"mousedown",this.mousedown),m.removeEventListener(c,"touchstart",this.touchstart,{passive:!1}),m.removeEventListener(c,"touchmove",this.touchmove),m.removeEventListener(c,"touchend",this.touchend),m.removeEventListener(c,"touchcancel",this.reset),this.offTemp()},Fa.prototype.offTemp=function(){m.enableDrag(),m.removeEventListener(o.window,"mousemove",this.mousemove),m.removeEventListener(o.window,"mouseup",this.mouseup)},Fa.prototype.mousedown=function(c){this.down(o.extend({},c,{ctrlKey:!0,preventDefault:function(){return c.preventDefault()}}),m.mousePos(this.element,c)),m.addEventListener(o.window,"mousemove",this.mousemove),m.addEventListener(o.window,"mouseup",this.mouseup)},Fa.prototype.mousemove=function(c){this.move(c,m.mousePos(this.element,c))},Fa.prototype.mouseup=function(c){this.mouseRotate.mouseupWindow(c),this.mousePitch&&this.mousePitch.mouseupWindow(c),this.offTemp()},Fa.prototype.touchstart=function(c){c.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=m.touchPos(this.element,c.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return c.preventDefault()}},this._startPos))},Fa.prototype.touchmove=function(c){c.targetTouches.length!==1?this.reset():(this._lastPos=m.touchPos(this.element,c.targetTouches)[0],this.move({preventDefault:function(){return c.preventDefault()}},this._lastPos))},Fa.prototype.touchend=function(c){c.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=_}this._isDragging&&(this._pos=h.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new o.Event("dragstart"))),this.fire(new o.Event("drag")))},f.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new o.Event("dragend")),this._state="inactive"},f.prototype._addDragHandler=function(h){this._element.contains(h.originalEvent.target)&&(h.preventDefault(),this._positionDelta=h.point.sub(this._pos).add(this._offset),this._pointerdownPos=h.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},f.prototype.setDraggable=function(h){return this._draggable=!!h,this._map&&(h?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},f.prototype.isDraggable=function(){return this._draggable},f.prototype.setRotation=function(h){return this._rotation=h||0,this._update(),this},f.prototype.getRotation=function(){return this._rotation},f.prototype.setRotationAlignment=function(h){return this._rotationAlignment=h||"auto",this._update(),this},f.prototype.getRotationAlignment=function(){return this._rotationAlignment},f.prototype.setPitchAlignment=function(h){return this._pitchAlignment=h&&h!=="auto"?h:this._rotationAlignment,this._update(),this},f.prototype.getPitchAlignment=function(){return this._pitchAlignment},f}(o.Evented),T1={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Tu=0,Au=!1,Sh=function(c){function f(h){c.call(this),this.options=o.extend({},T1,h),o.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f.prototype.onAdd=function(h){var _;return this._map=h,this._container=m.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),_=this._setupUI,Qu!==void 0?_(Qu):o.window.navigator.permissions!==void 0?o.window.navigator.permissions.query({name:"geolocation"}).then(function(x){_(Qu=x.state!=="denied")}):_(Qu=!!o.window.navigator.geolocation),this._container},f.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(o.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),m.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Tu=0,Au=!1},f.prototype._isOutOfMapMaxBounds=function(h){var _=this._map.getMaxBounds(),x=h.coords;return _&&(x.longitude<_.getWest()||x.longitude>_.getEast()||x.latitude<_.getSouth()||x.latitude>_.getNorth())},f.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},f.prototype._onSuccess=function(h){if(this._map){if(this._isOutOfMapMaxBounds(h))return this._setErrorState(),this.fire(new o.Event("outofmaxbounds",h)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=h,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(h),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(h),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new o.Event("geolocate",h)),this._finish()}},f.prototype._updateCamera=function(h){var _=new o.LngLat(h.coords.longitude,h.coords.latitude),x=h.coords.accuracy,S=this._map.getBearing(),w=o.extend({bearing:S},this.options.fitBoundsOptions);this._map.fitBounds(_.toBounds(x),w,{geolocateSource:!0})},f.prototype._updateMarker=function(h){if(h){var _=new o.LngLat(h.coords.longitude,h.coords.latitude);this._accuracyCircleMarker.setLngLat(_).addTo(this._map),this._userLocationDotMarker.setLngLat(_).addTo(this._map),this._accuracy=h.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},f.prototype._updateCircleRadius=function(){var h=this._map._container.clientHeight/2,_=this._map.unproject([0,h]),x=this._map.unproject([1,h]),S=_.distanceTo(x),w=Math.ceil(2*this._accuracy/S);this._circleElement.style.width=w+"px",this._circleElement.style.height=w+"px"},f.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},f.prototype._onError=function(h){if(this._map){if(this.options.trackUserLocation)if(h.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var _=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=_,this._geolocateButton.setAttribute("aria-label",_),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(h.code===3&&Au)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new o.Event("error",h)),this._finish()}},f.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},f.prototype._setupUI=function(h){var _=this;if(this._container.addEventListener("contextmenu",function(w){return w.preventDefault()}),this._geolocateButton=m.create("button","mapboxgl-ctrl-geolocate",this._container),m.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",h===!1){o.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var x=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=x,this._geolocateButton.setAttribute("aria-label",x)}else{var S=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=S,this._geolocateButton.setAttribute("aria-label",S)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=m.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Lc(this._dotElement),this._circleElement=m.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Lc({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(w){w.geolocateSource||_._watchState!=="ACTIVE_LOCK"||w.originalEvent&&w.originalEvent.type==="resize"||(_._watchState="BACKGROUND",_._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),_._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),_.fire(new o.Event("trackuserlocationend")))})},f.prototype.trigger=function(){if(!this._setup)return o.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new o.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Tu--,Au=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new o.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new o.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var h;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Tu>1?(h={maximumAge:6e5,timeout:0},Au=!0):(h=this.options.positionOptions,Au=!1),this._geolocationWatchID=o.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,h)}}else o.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},f.prototype._clearWatch=function(){o.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},f}(o.Evented),js={maxWidth:100,unit:"metric"},Es=function(c){this.options=o.extend({},js,c),o.bindAll(["_onMove","setUnit"],this)};function A1(c,f,h){var _=h&&h.maxWidth||100,x=c._container.clientHeight/2,S=c.unproject([0,x]),w=c.unproject([_,x]),M=S.distanceTo(w);if(h&&h.unit==="imperial"){var F=3.2808*M;F>5280?Zl(f,_,F/5280,c._getUIString("ScaleControl.Miles")):Zl(f,_,F,c._getUIString("ScaleControl.Feet"))}else h&&h.unit==="nautical"?Zl(f,_,M/1852,c._getUIString("ScaleControl.NauticalMiles")):M>=1e3?Zl(f,_,M/1e3,c._getUIString("ScaleControl.Kilometers")):Zl(f,_,M,c._getUIString("ScaleControl.Meters"))}function Zl(c,f,h,_){var x,S,w,M=(x=h,(S=Math.pow(10,(""+Math.floor(x)).length-1))*(w=(w=x/S)>=10?10:w>=5?5:w>=3?3:w>=2?2:w>=1?1:function(F){var V=Math.pow(10,Math.ceil(-Math.log(F)/Math.LN10));return Math.round(F*V)/V}(w)));c.style.width=f*(M/h)+"px",c.innerHTML=M+" "+_}Es.prototype.getDefaultPosition=function(){return"bottom-left"},Es.prototype._onMove=function(){A1(this._map,this._container,this.options)},Es.prototype.onAdd=function(c){return this._map=c,this._container=m.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",c.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Es.prototype.onRemove=function(){m.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Es.prototype.setUnit=function(c){this.options.unit=c,A1(this._map,this._container,this.options)};var us=function(c){this._fullscreen=!1,c&&c.container&&(c.container instanceof o.window.HTMLElement?this._container=c.container:o.warnOnce("Full screen control 'container' must be a DOM element.")),o.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in o.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in o.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in o.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in o.window.document&&(this._fullscreenchange="MSFullscreenChange")};us.prototype.onAdd=function(c){return this._map=c,this._container||(this._container=this._map.getContainer()),this._controlContainer=m.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",o.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},us.prototype.onRemove=function(){m.remove(this._controlContainer),this._map=null,o.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},us.prototype._checkFullscreenSupport=function(){return!!(o.window.document.fullscreenEnabled||o.window.document.mozFullScreenEnabled||o.window.document.msFullscreenEnabled||o.window.document.webkitFullscreenEnabled)},us.prototype._setupUI=function(){var c=this._fullscreenButton=m.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);m.create("span","mapboxgl-ctrl-icon",c).setAttribute("aria-hidden",!0),c.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),o.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},us.prototype._updateTitle=function(){var c=this._getTitle();this._fullscreenButton.setAttribute("aria-label",c),this._fullscreenButton.title=c},us.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},us.prototype._isFullscreen=function(){return this._fullscreen},us.prototype._changeIcon=function(){(o.window.document.fullscreenElement||o.window.document.mozFullScreenElement||o.window.document.webkitFullscreenElement||o.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},us.prototype._onClickFullscreen=function(){this._isFullscreen()?o.window.document.exitFullscreen?o.window.document.exitFullscreen():o.window.document.mozCancelFullScreen?o.window.document.mozCancelFullScreen():o.window.document.msExitFullscreen?o.window.document.msExitFullscreen():o.window.document.webkitCancelFullScreen&&o.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var wh={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Dc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),S1=function(c){function f(h){c.call(this),this.options=o.extend(Object.create(wh),h),o.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return c&&(f.__proto__=c),(f.prototype=Object.create(c&&c.prototype)).constructor=f,f.prototype.addTo=function(h){return this._map&&this.remove(),this._map=h,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new o.Event("open")),this},f.prototype.isOpen=function(){return!!this._map},f.prototype.remove=function(){return this._content&&m.remove(this._content),this._container&&(m.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new o.Event("close")),this},f.prototype.getLngLat=function(){return this._lngLat},f.prototype.setLngLat=function(h){return this._lngLat=o.LngLat.convert(h),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},f.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},f.prototype.getElement=function(){return this._container},f.prototype.setText=function(h){return this.setDOMContent(o.window.document.createTextNode(h))},f.prototype.setHTML=function(h){var _,x=o.window.document.createDocumentFragment(),S=o.window.document.createElement("body");for(S.innerHTML=h;_=S.firstChild;)x.appendChild(_);return this.setDOMContent(x)},f.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},f.prototype.setMaxWidth=function(h){return this.options.maxWidth=h,this._update(),this},f.prototype.setDOMContent=function(h){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=m.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(h),this._createCloseButton(),this._update(),this._focusFirstElement(),this},f.prototype.addClassName=function(h){this._container&&this._container.classList.add(h)},f.prototype.removeClassName=function(h){this._container&&this._container.classList.remove(h)},f.prototype.setOffset=function(h){return this.options.offset=h,this._update(),this},f.prototype.toggleClassName=function(h){if(this._container)return this._container.classList.toggle(h)},f.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=m.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},f.prototype._onMouseUp=function(h){this._update(h.point)},f.prototype._onMouseMove=function(h){this._update(h.point)},f.prototype._onDrag=function(h){this._update(h.point)},f.prototype._update=function(h){var _=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=m.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=m.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(re){return _._container.classList.add(re)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Ku(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||h)){var x=this._pos=this._trackPointer&&h?h:this._map.project(this._lngLat),S=this.options.anchor,w=function re(ne){if(ne){if(typeof ne=="number"){var ve=Math.round(Math.sqrt(.5*Math.pow(ne,2)));return{center:new o.Point(0,0),top:new o.Point(0,ne),"top-left":new o.Point(ve,ve),"top-right":new o.Point(-ve,ve),bottom:new o.Point(0,-ne),"bottom-left":new o.Point(ve,-ve),"bottom-right":new o.Point(-ve,-ve),left:new o.Point(ne,0),right:new o.Point(-ne,0)}}if(ne instanceof o.Point||Array.isArray(ne)){var pe=o.Point.convert(ne);return{center:pe,top:pe,"top-left":pe,"top-right":pe,bottom:pe,"bottom-left":pe,"bottom-right":pe,left:pe,right:pe}}return{center:o.Point.convert(ne.center||[0,0]),top:o.Point.convert(ne.top||[0,0]),"top-left":o.Point.convert(ne["top-left"]||[0,0]),"top-right":o.Point.convert(ne["top-right"]||[0,0]),bottom:o.Point.convert(ne.bottom||[0,0]),"bottom-left":o.Point.convert(ne["bottom-left"]||[0,0]),"bottom-right":o.Point.convert(ne["bottom-right"]||[0,0]),left:o.Point.convert(ne.left||[0,0]),right:o.Point.convert(ne.right||[0,0])}}return re(new o.Point(0,0))}(this.options.offset);if(!S){var M,F=this._container.offsetWidth,V=this._container.offsetHeight;M=x.y+w.bottom.ythis._map.transform.height-V?["bottom"]:[],x.xthis._map.transform.width-F/2&&M.push("right"),S=M.length===0?"bottom":M.join("-")}var ee=x.add(w[S]).round();m.setTransform(this._container,Hs[S]+" translate("+ee.x+"px,"+ee.y+"px)"),E1(this._container,S,"popup")}},f.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var h=this._container.querySelector(Dc);h&&h.focus()}},f.prototype._onClose=function(){this.remove()},f}(o.Evented),w1={version:o.version,supported:p,setRTLTextPlugin:o.setRTLTextPlugin,getRTLTextPluginStatus:o.getRTLTextPluginStatus,Map:Ah,NavigationControl:vl,GeolocateControl:Sh,AttributionControl:ea,ScaleControl:Es,FullscreenControl:us,Popup:S1,Marker:Lc,Style:Oa,LngLat:o.LngLat,LngLatBounds:o.LngLatBounds,Point:o.Point,MercatorCoordinate:o.MercatorCoordinate,Evented:o.Evented,config:o.config,prewarm:function(){pt().acquire(ht)},clearPrewarmedResources:function(){var c=vr;c&&(c.isPreloaded()&&c.numActive()===1?(c.release(ht),vr=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return o.config.ACCESS_TOKEN},set accessToken(c){o.config.ACCESS_TOKEN=c},get baseApiUrl(){return o.config.API_URL},set baseApiUrl(c){o.config.API_URL=c},get workerCount(){return Rt.workerCount},set workerCount(c){Rt.workerCount=c},get maxParallelImageRequests(){return o.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(c){o.config.MAX_PARALLEL_IMAGE_REQUESTS=c},clearStorage:function(c){o.clearTileCache(c)},workerUrl:""};return w1}),a})})(RE);var mH=RE.exports;const Zd=Co(mH),_H=["id","attributionControl","style","token","rotation","mapInstance"];function gH(t,e){var r=typeof my<"u"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx<"u"&&wx!==null&&(typeof wx.request<"u"||typeof wx.miniProgram<"u");if(!(r||n)&&(e||(e=document),!!e)){var a=e.head||e.getElementsByTagName("head")[0];if(!a){a=e.createElement("head");var l=e.body||e.getElementsByTagName("body")[0];l?l.parentNode.insertBefore(a,l):e.documentElement.appendChild(a)}var o=e.createElement("style");return o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),a.appendChild(o),o}}gH(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`);window.mapboxgl=Zd;let vH=0;const Fx="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg";class yH extends vE{constructor(...e){super(...e),I(this,"version","MAPBOX"),I(this,"viewport",void 0)}getType(){return"mapbox"}lngLatToCoord(e,r={x:0,y:0,z:0}){const{x:n,y:a}=this.lngLatToMercator(e,0);return[n-r.x,a-r.y]}lngLatToMercator(e,r){const{x:n=0,y:a=0,z:l=0}=window.mapboxgl.MercatorCoordinate.fromLngLat(e,r);return{x:n,y:a,z:l}}getModelMatrix(e,r,n,a=[1,1,1],l={x:0,y:0,z:0}){const o=window.mapboxgl.MercatorCoordinate.fromLngLat(e,r),p=o.meterInMercatorCoordinateUnits(),m=A3();return ou(m,m,Rs(o.x-l.x,o.y-l.y,o.z||0-l.z)),au(m,m,Rs(p*a[0],-p*a[1],p*a[2])),Dp(m,m,n[0]),Km(m,m,n[1]),S3(m,m,n[2]),m}init(){var e=this;return bt(function*(){const r=e.config,{id:n="map",attributionControl:a=!1,style:l="light",token:o=Fx,rotation:p=0,mapInstance:m}=r,v=fu(r,_H);e.viewport=new A2,!m&&!window.mapboxgl&&console.error(e.configService.getSceneWarninfo("SDK")),o===Fx&&l!=="blank"&&!window.mapboxgl.accessToken&&!m&&console.warn(e.configService.getSceneWarninfo("MapToken")),!m&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=o),m?(e.map=m,e.$mapContainer=e.map.getContainer()):(e.$mapContainer=e.creatMapContainer(n),e.map=new window.mapboxgl.Map(_t({container:e.$mapContainer,style:e.getMapStyleValue(l),attributionControl:a,bearing:p},v))),e.map.on("load",()=>{e.handleCameraChanged()}),e.map.on("move",e.handleCameraChanged),e.handleCameraChanged()})()}destroy(){var e;(e=this.$mapContainer)===null||e===void 0||(e=e.parentNode)===null||e===void 0||e.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}emit(e,...r){this.eventEmitter.emit(e,...r)}once(e,...r){this.eventEmitter.once(e,...r)}getMapContainer(){return this.$mapContainer}getCanvasOverlays(){var e;return(e=this.getMapContainer())===null||e===void 0?void 0:e.querySelector(".mapboxgl-canvas-container")}meterToCoord(e,r){const n=new Zd.LngLat(e[0],e[1]),a=new Zd.LngLat(r[0],r[1]),l=n.distanceTo(a),o=Zd.MercatorCoordinate.fromLngLat({lng:e[0],lat:e[1]}),p=Zd.MercatorCoordinate.fromLngLat({lng:r[0],lat:r[1]}),{x:m,y:v}=o,{x:E,y:b}=p;return Math.sqrt(Math.pow(m-E,2)+Math.pow(v-b,2))*4194304*2/l}exportMap(e){const r=this.map.getCanvas();return e==="jpg"?r==null?void 0:r.toDataURL("image/jpeg"):r==null?void 0:r.toDataURL("image/png")}creatMapContainer(e){let r=e;typeof e=="string"&&(r=document.getElementById(e));const n=document.createElement("div");return n.style.cssText+=` position: absolute; top: 0; height: 100%; width: 100%; - `,n.id="l7_mapbox_div"+bH++,r.appendChild(n),n}}function TH(t,e){var r=typeof my<"u"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx<"u"&&wx!==null&&(typeof wx.request<"u"||typeof wx.miniProgram<"u");if(!(r||n)&&(e||(e=document),!!e)){var a=e.head||e.getElementsByTagName("head")[0];if(!a){a=e.createElement("head");var l=e.body||e.getElementsByTagName("body")[0];l?l.parentNode.insertBefore(a,l):e.documentElement.appendChild(a)}var o=e.createElement("style");return o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),a.appendChild(o),o}}TH(`.mapboxgl-ctrl-logo { + `,n.id="l7_mapbox_div"+vH++,r.appendChild(n),n}}function xH(t,e){var r=typeof my<"u"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx<"u"&&wx!==null&&(typeof wx.request<"u"||typeof wx.miniProgram<"u");if(!(r||n)&&(e||(e=document),!!e)){var a=e.head||e.getElementsByTagName("head")[0];if(!a){a=e.createElement("head");var l=e.body||e.getElementsByTagName("body")[0];l?l.parentNode.insertBefore(a,l):e.documentElement.appendChild(a)}var o=e.createElement("style");return o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),a.appendChild(o),o}}xH(`.mapboxgl-ctrl-logo { display: none !important; } -`);class AH extends E2{getServiceConstructor(){return EH}}const SH=S2,wH=S2,CH=S2;var IE={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(m,v,E){this.fn=m,this.context=v,this.once=E||!1}function l(m,v,E,b,A){if(typeof E!="function")throw new TypeError("The listener must be a function");var R=new a(E,b||m,A),O=r?r+v:v;return m._events[O]?m._events[O].fn?m._events[O]=[m._events[O],R]:m._events[O].push(R):(m._events[O]=R,m._eventsCount++),m}function o(m,v){--m._eventsCount===0?m._events=new n:delete m._events[v]}function p(){this._events=new n,this._eventsCount=0}p.prototype.eventNames=function(){var v=[],E,b;if(this._eventsCount===0)return v;for(b in E=this._events)e.call(E,b)&&v.push(r?b.slice(1):b);return Object.getOwnPropertySymbols?v.concat(Object.getOwnPropertySymbols(E)):v},p.prototype.listeners=function(v){var E=r?r+v:v,b=this._events[E];if(!b)return[];if(b.fn)return[b.fn];for(var A=0,R=b.length,O=new Array(R);A>>8&255}function vc(t){return t>>>16&255}function Ip(t){return t&255}function PE(t){switch(t){case Tt.F32:case Tt.U32:case Tt.S32:return 4;case Tt.U16:case Tt.S16:case Tt.F16:return 2;case Tt.U8:case Tt.S8:return 1;default:throw new Error("whoops")}}function OE(t){return PE(vc(t))}function IH(t){var e=PE(vc(t)),r=F2(t);return e*r}function LE(t){var e=Ip(t);if(e&hr.Depth)return ho.Depth;if(e&hr.Normalized)return ho.Float;var r=vc(t);if(r===Tt.F16||r===Tt.F32)return ho.Float;if(r===Tt.U8||r===Tt.U16||r===Tt.U32)return ho.Uint;if(r===Tt.S8||r===Tt.S16||r===Tt.S32)return ho.Sint;throw new Error("whoops")}function gn(t,e){if(e===void 0&&(e=""),!t)throw new Error("Assert fail: ".concat(e))}function Gh(t){if(t!=null)return t;throw new Error("Missing object")}function DE(t,e){return t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a}function BE(t,e){t.r=e.r,t.g=e.g,t.b=e.b,t.a=e.a}function FE(t){var e=t.r,r=t.g,n=t.b,a=t.a;return{r:e,g:r,b:n,a}}function D3(t,e,r,n){return n===void 0&&(n=1),{r:t,g:e,b:r,a:n}}var u_=D3(0,0,0,0);D3(0,0,0,1);var MH=D3(1,1,1,0);D3(1,1,1,1);function Um(t){return!!(t&&!(t&t-1))}function k1(t,e){return t??e}function PH(t){return t===void 0?null:t}function zm(t,e){var r=e-1;return t+r&~r}function OH(t,e){for(var r=new Array(t),n=0;n1,m=r.replace(`\r +`);class bH extends E2{getServiceConstructor(){return yH}}const EH=S2,TH=S2,AH=S2;var IE={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(m,v,E){this.fn=m,this.context=v,this.once=E||!1}function l(m,v,E,b,A){if(typeof E!="function")throw new TypeError("The listener must be a function");var R=new a(E,b||m,A),O=r?r+v:v;return m._events[O]?m._events[O].fn?m._events[O]=[m._events[O],R]:m._events[O].push(R):(m._events[O]=R,m._eventsCount++),m}function o(m,v){--m._eventsCount===0?m._events=new n:delete m._events[v]}function p(){this._events=new n,this._eventsCount=0}p.prototype.eventNames=function(){var v=[],E,b;if(this._eventsCount===0)return v;for(b in E=this._events)e.call(E,b)&&v.push(r?b.slice(1):b);return Object.getOwnPropertySymbols?v.concat(Object.getOwnPropertySymbols(E)):v},p.prototype.listeners=function(v){var E=r?r+v:v,b=this._events[E];if(!b)return[];if(b.fn)return[b.fn];for(var A=0,R=b.length,O=new Array(R);A>>8&255}function vc(t){return t>>>16&255}function Ip(t){return t&255}function PE(t){switch(t){case Tt.F32:case Tt.U32:case Tt.S32:return 4;case Tt.U16:case Tt.S16:case Tt.F16:return 2;case Tt.U8:case Tt.S8:return 1;default:throw new Error("whoops")}}function OE(t){return PE(vc(t))}function wH(t){var e=PE(vc(t)),r=F2(t);return e*r}function LE(t){var e=Ip(t);if(e&hr.Depth)return ho.Depth;if(e&hr.Normalized)return ho.Float;var r=vc(t);if(r===Tt.F16||r===Tt.F32)return ho.Float;if(r===Tt.U8||r===Tt.U16||r===Tt.U32)return ho.Uint;if(r===Tt.S8||r===Tt.S16||r===Tt.S32)return ho.Sint;throw new Error("whoops")}function gn(t,e){if(e===void 0&&(e=""),!t)throw new Error("Assert fail: ".concat(e))}function Gh(t){if(t!=null)return t;throw new Error("Missing object")}function DE(t,e){return t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a}function BE(t,e){t.r=e.r,t.g=e.g,t.b=e.b,t.a=e.a}function FE(t){var e=t.r,r=t.g,n=t.b,a=t.a;return{r:e,g:r,b:n,a}}function D3(t,e,r,n){return n===void 0&&(n=1),{r:t,g:e,b:r,a:n}}var u_=D3(0,0,0,0);D3(0,0,0,1);var CH=D3(1,1,1,0);D3(1,1,1,1);function Um(t){return!!(t&&!(t&t-1))}function k1(t,e){return t??e}function RH(t){return t===void 0?null:t}function zm(t,e){var r=e-1;return t+r&~r}function IH(t,e){for(var r=new Array(t),n=0;n1,m=r.replace(`\r `,` `).split(` `).map(function(Se){return Se.replace(/[/][/].*$/,"")}).filter(function(Se){var ce=!Se||/^\s+$/.test(Se);return!ce}),v="";n!==null&&(v=Object.keys(n).map(function(Se){return Ld(Se,n[Se])}).join(` @@ -5915,13 +5915,13 @@ layout(set = `).concat(R,", binding = ").concat(Te*2+1,") uniform sampler").conc `))+G.substring(Q)}else{var J;if(G=G.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(Se,ce,ke){return J=ke,"".concat(ce," ").concat(ke,`; `)}),J){var Q=G.lastIndexOf("}");G=G.substring(0,Q)+` gl_FragColor = vec4(`.concat(J,`); -`)+G.substring(Q)}}G=G.replace(/^\s*layout\((.*)\)/gm,"")}return G}var pu=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=t.call(this)||this;return l.id=n,l.device=a,l.device.resourceCreationTracker!==null&&l.device.resourceCreationTracker.trackResourceCreated(l),l}return e.prototype.destroy=function(){this.device.resourceCreationTracker!==null&&this.device.resourceCreationTracker.trackResourceDestroyed(this)},e}(ME),cj=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o=t.call(this,{id:n,device:a})||this;o.type=Jn.Bindings;var p=l.uniformBufferBindings,m=l.samplerBindings;return o.uniformBufferBindings=p||[],o.samplerBindings=m||[],o.bindingLayouts=o.createBindingLayouts(),o}return e.prototype.createBindingLayouts=function(){var r=0,n=0,a=[],l=this.uniformBufferBindings.length,o=this.samplerBindings.length;return a.push({firstUniformBuffer:r,numUniformBuffers:l,firstSampler:n,numSamplers:o}),r+=l,n+=o,{numUniformBuffers:r,numSamplers:n,bindingLayoutTables:a}},e}(pu),Dd;function Pr(t){return Dd!==void 0?Dd:typeof WebGL2RenderingContext<"u"&&t instanceof WebGL2RenderingContext?(Dd=!0,!0):(Dd=!!(t&&t._version===2),Dd)}function VE(t){var e=vc(t);switch(e){case Tt.BC1:case Tt.BC2:case Tt.BC3:case Tt.BC4_UNORM:case Tt.BC4_SNORM:case Tt.BC5_UNORM:case Tt.BC5_SNORM:return!0;default:return!1}}function HE(t){var e=Ip(t);if(e&hr.Normalized)return!1;var r=vc(t);return r===Tt.S8||r===Tt.S16||r===Tt.S32||r===Tt.U8||r===Tt.U16||r===Tt.U32}function hj(t){switch(t){case Uu.STATIC:return xe.STATIC_DRAW;case Uu.DYNAMIC:return xe.DYNAMIC_DRAW}}function Zx(t){if(t&Si.INDEX)return xe.ELEMENT_ARRAY_BUFFER;if(t&Si.VERTEX)return xe.ARRAY_BUFFER;if(t&Si.UNIFORM)return xe.UNIFORM_BUFFER}function fj(t){switch(t){case Yo.TRIANGLES:return xe.TRIANGLES;case Yo.POINTS:return xe.POINTS;case Yo.TRIANGLE_STRIP:return xe.TRIANGLE_STRIP;case Yo.LINES:return xe.LINES;case Yo.LINE_STRIP:return xe.LINE_STRIP;default:throw new Error("Unknown primitive topology mode")}}function pj(t){switch(t){case Tt.U8:return xe.UNSIGNED_BYTE;case Tt.U16:return xe.UNSIGNED_SHORT;case Tt.U32:return xe.UNSIGNED_INT;case Tt.S8:return xe.BYTE;case Tt.S16:return xe.SHORT;case Tt.S32:return xe.INT;case Tt.F16:return xe.HALF_FLOAT;case Tt.F32:return xe.FLOAT;default:throw new Error("whoops")}}function dj(t){switch(t){case Ar.R:return 1;case Ar.RG:return 2;case Ar.RGB:return 3;case Ar.RGBA:return 4;default:return 1}}function mj(t){var e=vc(t),r=F2(t),n=Ip(t),a=pj(e),l=dj(r),o=!!(n&hr.Normalized);return{size:l,type:a,normalized:o}}function _j(t){switch(t){case ze.U8_R:return xe.UNSIGNED_BYTE;case ze.U16_R:return xe.UNSIGNED_SHORT;case ze.U32_R:return xe.UNSIGNED_INT;default:throw new Error("whoops")}}function Bd(t){switch(t){case Ms.CLAMP_TO_EDGE:return xe.CLAMP_TO_EDGE;case Ms.REPEAT:return xe.REPEAT;case Ms.MIRRORED_REPEAT:return xe.MIRRORED_REPEAT;default:throw new Error("whoops")}}function V0(t,e){if(e===da.LINEAR&&t===wo.BILINEAR)return xe.LINEAR_MIPMAP_LINEAR;if(e===da.LINEAR&&t===wo.POINT)return xe.NEAREST_MIPMAP_LINEAR;if(e===da.NEAREST&&t===wo.BILINEAR)return xe.LINEAR_MIPMAP_NEAREST;if(e===da.NEAREST&&t===wo.POINT)return xe.NEAREST_MIPMAP_NEAREST;if(e===da.NO_MIP&&t===wo.BILINEAR)return xe.LINEAR;if(e===da.NO_MIP&&t===wo.POINT)return xe.NEAREST;throw new Error("Unknown texture filter mode")}function gp(t,e){e===void 0&&(e=0);var r=t;return r.gl_buffer_pages[e/r.pageByteSize|0]}function np(t){var e=t;return e.gl_texture}function Cv(t){var e=t;return e.gl_sampler}function Fd(t,e){t.name=e,t.__SPECTOR_Metadata={name:e}}function $x(t,e){for(var r=[];;){var n=e.exec(t);if(!n)break;r.push(n)}return r}function z1(t){return t.blendMode==Ra.ADD&&t.blendSrcFactor==kn.ONE&&t.blendDstFactor===kn.ZERO}function gj(t){switch(t){case km.OcclusionConservative:return xe.ANY_SAMPLES_PASSED_CONSERVATIVE;default:throw new Error("whoops")}}function vj(t){if(t===Un.TEXTURE_2D)return xe.TEXTURE_2D;if(t===Un.TEXTURE_2D_ARRAY)return xe.TEXTURE_2D_ARRAY;if(t===Un.TEXTURE_CUBE_MAP)return xe.TEXTURE_CUBE_MAP;if(t===Un.TEXTURE_3D)return xe.TEXTURE_3D;throw new Error("whoops")}function Ag(t,e,r,n){return!(t%r!==0||e%n!==0)}var yj=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o=t.call(this,{id:n,device:a})||this;o.type=Jn.Buffer;var p=l.viewOrSize,m=l.usage,v=l.hint,E=v===void 0?Uu.STATIC:v,b=a.uniformBufferMaxPageByteSize,A=a.gl,R=m&Si.UNIFORM;R||(Pr(A)?A.bindVertexArray(null):a.OES_vertex_array_object.bindVertexArrayOES(null));var O=ip(p)?zm(p,4):zm(p.byteLength,4);o.gl_buffer_pages=[];var D;if(R){for(var N=O;N>0;)o.gl_buffer_pages.push(o.createBufferPage(Math.min(N,b),m,E)),N-=b;D=b}else o.gl_buffer_pages.push(o.createBufferPage(O,m,E)),D=O;return o.pageByteSize=D,o.byteSize=O,o.usage=m,o.gl_target=Zx(m),ip(p)||o.setSubData(0,new Uint8Array(p.buffer)),R||(Pr(A)?A.bindVertexArray(o.device.currentBoundVAO):a.OES_vertex_array_object.bindVertexArrayOES(o.device.currentBoundVAO)),o}return e.prototype.setSubData=function(r,n,a,l){a===void 0&&(a=0),l===void 0&&(l=n.byteLength-a);for(var o=this.device.gl,p=this.pageByteSize,m=r+l,v=r,E=r%p;v=1,!o){E=p.device.ensureResourceExists(m.createTexture());var A=p.device.translateTextureType(l.format),R=p.device.translateTextureInternalFormat(l.format);if(p.device.setActiveTexture(m.TEXTURE0),p.device.currentTextures[0]=null,p.preprocessImage(),l.dimension===Un.TEXTURE_2D){if(v=xe.TEXTURE_2D,m.bindTexture(v,E),p.immutable)if(Pr(m))m.texStorage2D(v,b,R,l.width,l.height);else{var O=(R===xe.DEPTH_COMPONENT||p.isNPOT(),0);(p.format===ze.D32F||p.format===ze.D24_S8)&&!Pr(m)&&!a.WEBGL_depth_texture||(m.texImage2D(v,O,R,l.width,l.height,0,R,A,null),p.mipmaps&&(p.mipmaps=!1,m.texParameteri(xe.TEXTURE_2D,xe.TEXTURE_MIN_FILTER,xe.LINEAR),m.texParameteri(xe.TEXTURE_2D,xe.TEXTURE_WRAP_S,xe.CLAMP_TO_EDGE),m.texParameteri(xe.TEXTURE_2D,xe.TEXTURE_WRAP_T,xe.CLAMP_TO_EDGE)))}gn(l.depthOrArrayLayers===1)}else if(l.dimension===Un.TEXTURE_2D_ARRAY)v=xe.TEXTURE_2D_ARRAY,m.bindTexture(v,E),p.immutable&&Pr(m)&&m.texStorage3D(v,b,R,l.width,l.height,l.depthOrArrayLayers);else if(l.dimension===Un.TEXTURE_3D)v=xe.TEXTURE_3D,m.bindTexture(v,E),p.immutable&&Pr(m)&&m.texStorage3D(v,b,R,l.width,l.height,l.depthOrArrayLayers);else if(l.dimension===Un.TEXTURE_CUBE_MAP)v=xe.TEXTURE_CUBE_MAP,m.bindTexture(v,E),p.immutable&&Pr(m)&&m.texStorage2D(v,b,R,l.width,l.height),gn(l.depthOrArrayLayers===6);else throw new Error("whoops")}return p.gl_texture=E,p.gl_target=v,p.mipLevelCount=b,p}return e.prototype.setImageData=function(r,n){n===void 0&&(n=0);var a=this.device.gl;VE(this.format);var l=this.gl_target===xe.TEXTURE_3D||this.gl_target===xe.TEXTURE_2D_ARRAY,o=this.gl_target===xe.TEXTURE_CUBE_MAP,p=sj(r[0]);this.device.setActiveTexture(a.TEXTURE0),this.device.currentTextures[0]=null;var m=r[0],v,E;p?(v=this.width,E=this.height):(v=m.width,E=m.height,this.width=v,this.height=E),a.bindTexture(this.gl_target,this.gl_texture);var b=this.device.translateTextureFormat(this.format),A=Pr(a)?this.device.translateInternalTextureFormat(this.format):b,R=this.device.translateTextureType(this.format);this.preprocessImage();for(var O=0;O1){var n=vc(r.format);if(n===Tt.BC1)for(var a=r.width,l=r.height,o=0;o1?p.renderbufferStorageMultisample(xe.RENDERBUFFER,A,D,v,E):p.renderbufferStorage(xe.RENDERBUFFER,D,v,E)}return o.format=m,o.width=v,o.height=E,o.sampleCount=A,o}return e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gl_renderbuffer!==null&&this.device.gl.deleteRenderbuffer(this.gl_renderbuffer),this.texture&&this.texture.destroy()},e}(pu),el;(function(t){t[t.NeedsCompile=0]="NeedsCompile",t[t.Compiling=1]="Compiling",t[t.NeedsBind=2]="NeedsBind",t[t.ReadyToUse=3]="ReadyToUse"})(el||(el={}));var Ej=function(t){po(e,t);function e(r,n){var a=r.id,l=r.device,o=r.descriptor,p=t.call(this,{id:a,device:l})||this;p.rawVertexGLSL=n,p.type=Jn.Program,p.uniformSetters={},p.attributes=[];var m=p.device.gl;return p.descriptor=o,p.gl_program=p.device.ensureResourceExists(m.createProgram()),p.gl_shader_vert=null,p.gl_shader_frag=null,p.compileState=el.NeedsCompile,p.tryCompileProgram(),p}return e.prototype.destroy=function(){t.prototype.destroy.call(this),this.device.gl.deleteProgram(this.gl_program),this.device.gl.deleteShader(this.gl_shader_vert),this.device.gl.deleteShader(this.gl_shader_frag)},e.prototype.tryCompileProgram=function(){gn(this.compileState===el.NeedsCompile);var r=this.descriptor,n=r.vertex,a=r.fragment,l=this.device.gl;n!=null&&n.glsl&&(a!=null&&a.glsl)&&(this.gl_shader_vert=this.compileShader(n.postprocess?n.postprocess(n.glsl):n.glsl,l.VERTEX_SHADER),this.gl_shader_frag=this.compileShader(a.postprocess?a.postprocess(a.glsl):a.glsl,l.FRAGMENT_SHADER),l.attachShader(this.gl_program,this.gl_shader_vert),l.attachShader(this.gl_program,this.gl_shader_frag),l.linkProgram(this.gl_program),this.compileState=el.Compiling,Pr(l)||(this.readUniformLocationsFromLinkedProgram(),this.readAttributesFromLinkedProgram()))},e.prototype.readAttributesFromLinkedProgram=function(){for(var r,n=this.device.gl,a=n.getProgramParameter(this.gl_program,n.ACTIVE_ATTRIBUTES),l=lj(this.descriptor.vertex.glsl),o=uj(this.rawVertexGLSL,l),p=function(E){var b=n.getActiveAttrib(m.gl_program,E),A=b.name,R=b.type,O=b.size,D=n.getAttribLocation(m.gl_program,A),N=(r=o.find(function(W){return W.name===A}))===null||r===void 0?void 0:r.location;D>=0&&!cu(N)&&(m.attributes[N]={name:A,location:D,type:R,size:O})},m=this,v=0;v1)for(var m=0;m0;)o.gl_buffer_pages.push(o.createBufferPage(Math.min(N,b),m,E)),N-=b;D=b}else o.gl_buffer_pages.push(o.createBufferPage(O,m,E)),D=O;return o.pageByteSize=D,o.byteSize=O,o.usage=m,o.gl_target=Zx(m),ip(p)||o.setSubData(0,new Uint8Array(p.buffer)),R||(Pr(A)?A.bindVertexArray(o.device.currentBoundVAO):a.OES_vertex_array_object.bindVertexArrayOES(o.device.currentBoundVAO)),o}return e.prototype.setSubData=function(r,n,a,l){a===void 0&&(a=0),l===void 0&&(l=n.byteLength-a);for(var o=this.device.gl,p=this.pageByteSize,m=r+l,v=r,E=r%p;v=1,!o){E=p.device.ensureResourceExists(m.createTexture());var A=p.device.translateTextureType(l.format),R=p.device.translateTextureInternalFormat(l.format);if(p.device.setActiveTexture(m.TEXTURE0),p.device.currentTextures[0]=null,p.preprocessImage(),l.dimension===Un.TEXTURE_2D){if(v=xe.TEXTURE_2D,m.bindTexture(v,E),p.immutable)if(Pr(m))m.texStorage2D(v,b,R,l.width,l.height);else{var O=(R===xe.DEPTH_COMPONENT||p.isNPOT(),0);(p.format===ze.D32F||p.format===ze.D24_S8)&&!Pr(m)&&!a.WEBGL_depth_texture||(m.texImage2D(v,O,R,l.width,l.height,0,R,A,null),p.mipmaps&&(p.mipmaps=!1,m.texParameteri(xe.TEXTURE_2D,xe.TEXTURE_MIN_FILTER,xe.LINEAR),m.texParameteri(xe.TEXTURE_2D,xe.TEXTURE_WRAP_S,xe.CLAMP_TO_EDGE),m.texParameteri(xe.TEXTURE_2D,xe.TEXTURE_WRAP_T,xe.CLAMP_TO_EDGE)))}gn(l.depthOrArrayLayers===1)}else if(l.dimension===Un.TEXTURE_2D_ARRAY)v=xe.TEXTURE_2D_ARRAY,m.bindTexture(v,E),p.immutable&&Pr(m)&&m.texStorage3D(v,b,R,l.width,l.height,l.depthOrArrayLayers);else if(l.dimension===Un.TEXTURE_3D)v=xe.TEXTURE_3D,m.bindTexture(v,E),p.immutable&&Pr(m)&&m.texStorage3D(v,b,R,l.width,l.height,l.depthOrArrayLayers);else if(l.dimension===Un.TEXTURE_CUBE_MAP)v=xe.TEXTURE_CUBE_MAP,m.bindTexture(v,E),p.immutable&&Pr(m)&&m.texStorage2D(v,b,R,l.width,l.height),gn(l.depthOrArrayLayers===6);else throw new Error("whoops")}return p.gl_texture=E,p.gl_target=v,p.mipLevelCount=b,p}return e.prototype.setImageData=function(r,n){n===void 0&&(n=0);var a=this.device.gl;VE(this.format);var l=this.gl_target===xe.TEXTURE_3D||this.gl_target===xe.TEXTURE_2D_ARRAY,o=this.gl_target===xe.TEXTURE_CUBE_MAP,p=ij(r[0]);this.device.setActiveTexture(a.TEXTURE0),this.device.currentTextures[0]=null;var m=r[0],v,E;p?(v=this.width,E=this.height):(v=m.width,E=m.height,this.width=v,this.height=E),a.bindTexture(this.gl_target,this.gl_texture);var b=this.device.translateTextureFormat(this.format),A=Pr(a)?this.device.translateInternalTextureFormat(this.format):b,R=this.device.translateTextureType(this.format);this.preprocessImage();for(var O=0;O1){var n=vc(r.format);if(n===Tt.BC1)for(var a=r.width,l=r.height,o=0;o1?p.renderbufferStorageMultisample(xe.RENDERBUFFER,A,D,v,E):p.renderbufferStorage(xe.RENDERBUFFER,D,v,E)}return o.format=m,o.width=v,o.height=E,o.sampleCount=A,o}return e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gl_renderbuffer!==null&&this.device.gl.deleteRenderbuffer(this.gl_renderbuffer),this.texture&&this.texture.destroy()},e}(pu),el;(function(t){t[t.NeedsCompile=0]="NeedsCompile",t[t.Compiling=1]="Compiling",t[t.NeedsBind=2]="NeedsBind",t[t.ReadyToUse=3]="ReadyToUse"})(el||(el={}));var yj=function(t){po(e,t);function e(r,n){var a=r.id,l=r.device,o=r.descriptor,p=t.call(this,{id:a,device:l})||this;p.rawVertexGLSL=n,p.type=Jn.Program,p.uniformSetters={},p.attributes=[];var m=p.device.gl;return p.descriptor=o,p.gl_program=p.device.ensureResourceExists(m.createProgram()),p.gl_shader_vert=null,p.gl_shader_frag=null,p.compileState=el.NeedsCompile,p.tryCompileProgram(),p}return e.prototype.destroy=function(){t.prototype.destroy.call(this),this.device.gl.deleteProgram(this.gl_program),this.device.gl.deleteShader(this.gl_shader_vert),this.device.gl.deleteShader(this.gl_shader_frag)},e.prototype.tryCompileProgram=function(){gn(this.compileState===el.NeedsCompile);var r=this.descriptor,n=r.vertex,a=r.fragment,l=this.device.gl;n!=null&&n.glsl&&(a!=null&&a.glsl)&&(this.gl_shader_vert=this.compileShader(n.postprocess?n.postprocess(n.glsl):n.glsl,l.VERTEX_SHADER),this.gl_shader_frag=this.compileShader(a.postprocess?a.postprocess(a.glsl):a.glsl,l.FRAGMENT_SHADER),l.attachShader(this.gl_program,this.gl_shader_vert),l.attachShader(this.gl_program,this.gl_shader_frag),l.linkProgram(this.gl_program),this.compileState=el.Compiling,Pr(l)||(this.readUniformLocationsFromLinkedProgram(),this.readAttributesFromLinkedProgram()))},e.prototype.readAttributesFromLinkedProgram=function(){for(var r,n=this.device.gl,a=n.getProgramParameter(this.gl_program,n.ACTIVE_ATTRIBUTES),l=oj(this.descriptor.vertex.glsl),o=aj(this.rawVertexGLSL,l),p=function(E){var b=n.getActiveAttrib(m.gl_program,E),A=b.name,R=b.type,O=b.size,D=n.getAttribLocation(m.gl_program,A),N=(r=o.find(function(W){return W.name===A}))===null||r===void 0?void 0:r.location;D>=0&&!cu(N)&&(m.attributes[N]={name:A,location:D,type:R,size:O})},m=this,v=0;v1)for(var m=0;m1&&m.device.EXT_texture_filter_anisotropic!==null&&(gn(l.minFilter===wo.BILINEAR&&l.magFilter===wo.BILINEAR&&l.mipmapFilter===da.LINEAR),v.samplerParameterf(E,m.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,b)),m.gl_sampler=E}else m.descriptor=l;return m}return e.prototype.setTextureParameters=function(r,n,a){var l,o=this.device.gl,p=this.descriptor;this.isNPOT(n,a)?o.texParameteri(xe.TEXTURE_2D,xe.TEXTURE_MIN_FILTER,xe.LINEAR):o.texParameteri(r,xe.TEXTURE_MIN_FILTER,V0(p.minFilter,p.mipmapFilter)),o.texParameteri(xe.TEXTURE_2D,xe.TEXTURE_WRAP_S,Bd(p.addressModeU)),o.texParameteri(xe.TEXTURE_2D,xe.TEXTURE_WRAP_T,Bd(p.addressModeV)),o.texParameteri(r,xe.TEXTURE_MAG_FILTER,V0(p.magFilter,da.NO_MIP));var m=(l=p.maxAnisotropy)!==null&&l!==void 0?l:1;m>1&&this.device.EXT_texture_filter_anisotropic!==null&&(gn(p.minFilter===wo.BILINEAR&&p.magFilter===wo.BILINEAR&&p.mipmapFilter===da.LINEAR),o.texParameteri(r,this.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,m))},e.prototype.destroy=function(){t.prototype.destroy.call(this),Pr(this.device.gl)&&this.device.gl.deleteSampler(Cv(this))},e.prototype.isNPOT=function(r,n){return!Um(r)||!Um(n)},e}(pu),Ij=function(){function t(){}return t.prototype.dispatchWorkgroups=function(e,r,n){},t.prototype.dispatchWorkgroupsIndirect=function(e,r){},t.prototype.setPipeline=function(e){},t.prototype.setBindings=function(e){},t.prototype.pushDebugGroup=function(e){},t.prototype.popDebugGroup=function(){},t.prototype.insertDebugMarker=function(e){},t}(),Mj=function(t){po(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Jn.RenderBundle,r.commands=[],r}return e.prototype.push=function(r){this.commands.push(r)},e.prototype.replay=function(){this.commands.forEach(function(r){return r()})},e}(pu),qx=65536,Pj=/uniform(?:\s+)(\w+)(?:\s?){([^]*?)}/g,Oj=function(){function t(e,r){r===void 0&&(r={}),this.shaderDebug=!1,this.OES_vertex_array_object=null,this.ANGLE_instanced_arrays=null,this.OES_texture_float=null,this.OES_draw_buffers_indexed=null,this.WEBGL_draw_buffers=null,this.WEBGL_depth_texture=null,this.WEBGL_color_buffer_float=null,this.EXT_color_buffer_half_float=null,this.WEBGL_compressed_texture_s3tc=null,this.WEBGL_compressed_texture_s3tc_srgb=null,this.EXT_texture_compression_rgtc=null,this.EXT_texture_filter_anisotropic=null,this.KHR_parallel_shader_compile=null,this.EXT_texture_norm16=null,this.EXT_color_buffer_float=null,this.OES_texture_float_linear=null,this.OES_texture_half_float_linear=null,this.scTexture=null,this.scPlatformFramebuffer=null,this.currentActiveTexture=null,this.currentBoundVAO=null,this.currentProgram=null,this.resourceCreationTracker=null,this.resourceUniqueId=0,this.currentColorAttachments=[],this.currentColorAttachmentLevels=[],this.currentColorResolveTos=[],this.currentColorResolveToLevels=[],this.currentSampleCount=-1,this.currentIndexBufferByteOffset=null,this.currentMegaState=Mp(Pp),this.currentSamplers=[],this.currentTextures=[],this.currentUniformBuffers=[],this.currentUniformBufferByteOffsets=[],this.currentUniformBufferByteSizes=[],this.currentScissorEnabled=!1,this.currentStencilRef=null,this.currentRenderPassDescriptor=null,this.currentRenderPassDescriptorStack=[],this.debugGroupStack=[],this.resolveColorAttachmentsChanged=!1,this.resolveDepthStencilAttachmentsChanged=!1,this.explicitBindingLocations=!1,this.separateSamplerTextures=!1,this.viewportOrigin=ku.LOWER_LEFT,this.clipSpaceNearZ=Rp.NEGATIVE_ONE,this.supportMRT=!1,this.inBlitRenderPass=!1,this.supportedSampleCounts=[],this.occlusionQueriesRecommended=!1,this.computeShadersSupported=!1,this.gl=e,this.contextAttributes=Gh(e.getContextAttributes()),Pr(e)?(this.EXT_texture_norm16=e.getExtension("EXT_texture_norm16"),this.EXT_color_buffer_float=e.getExtension("EXT_color_buffer_float")):(this.OES_vertex_array_object=e.getExtension("OES_vertex_array_object"),this.ANGLE_instanced_arrays=e.getExtension("ANGLE_instanced_arrays"),this.OES_texture_float=e.getExtension("OES_texture_float"),this.WEBGL_draw_buffers=e.getExtension("WEBGL_draw_buffers"),this.WEBGL_depth_texture=e.getExtension("WEBGL_depth_texture"),this.WEBGL_color_buffer_float=e.getExtension("WEBGL_color_buffer_float"),this.EXT_color_buffer_half_float=e.getExtension("EXT_color_buffer_half_float"),e.getExtension("EXT_frag_depth"),e.getExtension("OES_element_index_uint"),e.getExtension("OES_standard_derivatives")),this.WEBGL_compressed_texture_s3tc=e.getExtension("WEBGL_compressed_texture_s3tc"),this.WEBGL_compressed_texture_s3tc_srgb=e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),this.EXT_texture_compression_rgtc=e.getExtension("EXT_texture_compression_rgtc"),this.EXT_texture_filter_anisotropic=e.getExtension("EXT_texture_filter_anisotropic"),this.EXT_texture_norm16=e.getExtension("EXT_texture_norm16"),this.OES_texture_float_linear=e.getExtension("OES_texture_float_linear"),this.OES_texture_half_float_linear=e.getExtension("OES_texture_half_float_linear"),this.KHR_parallel_shader_compile=e.getExtension("KHR_parallel_shader_compile"),Pr(e)?(this.platformString="WebGL2",this.glslVersion="#version 300 es"):(this.platformString="WebGL1",this.glslVersion="#version 100"),this.scTexture=new Rv({id:this.getNextUniqueId(),device:this,descriptor:{width:0,height:0,depthOrArrayLayers:1,dimension:Un.TEXTURE_2D,mipLevelCount:1,usage:gs.RENDER_TARGET,format:this.contextAttributes.alpha===!1?ze.U8_RGB_RT:ze.U8_RGBA_RT},fake:!0}),this.scTexture.formatKind=ho.Float,this.scTexture.gl_target=null,this.scTexture.gl_texture=null,this.resolveColorReadFramebuffer=this.ensureResourceExists(e.createFramebuffer()),this.resolveColorDrawFramebuffer=this.ensureResourceExists(e.createFramebuffer()),this.resolveDepthStencilReadFramebuffer=this.ensureResourceExists(e.createFramebuffer()),this.resolveDepthStencilDrawFramebuffer=this.ensureResourceExists(e.createFramebuffer()),this.renderPassDrawFramebuffer=this.ensureResourceExists(e.createFramebuffer()),this.readbackFramebuffer=this.ensureResourceExists(e.createFramebuffer()),this.fallbackTexture2D=this.createFallbackTexture(Un.TEXTURE_2D,ho.Float),this.fallbackTexture2DDepth=this.createFallbackTexture(Un.TEXTURE_2D,ho.Depth),this.fallbackVertexBuffer=this.createBuffer({viewOrSize:1,usage:Si.VERTEX,hint:Uu.STATIC}),Pr(e)&&(this.fallbackTexture2DArray=this.createFallbackTexture(Un.TEXTURE_2D_ARRAY,ho.Float),this.fallbackTexture3D=this.createFallbackTexture(Un.TEXTURE_3D,ho.Float),this.fallbackTextureCube=this.createFallbackTexture(Un.TEXTURE_CUBE_MAP,ho.Float)),this.currentMegaState.depthCompare=ui.LESS,this.currentMegaState.depthWrite=!1,this.currentMegaState.attachmentsState[0].channelWriteMask=wa.ALL,e.enable(e.DEPTH_TEST),e.enable(e.STENCIL_TEST),this.checkLimits(),r.shaderDebug&&(this.shaderDebug=!0),r.trackResources&&(this.resourceCreationTracker=new Cj)}return t.prototype.destroy=function(){this.blitBindings&&this.blitBindings.destroy(),this.blitInputLayout&&this.blitInputLayout.destroy(),this.blitRenderPipeline&&this.blitRenderPipeline.destroy(),this.blitVertexBuffer&&this.blitVertexBuffer.destroy(),this.blitProgram&&this.blitProgram.destroy()},t.prototype.createFallbackTexture=function(e,r){var n=e===Un.TEXTURE_CUBE_MAP?6:1,a=r===ho.Depth?ze.D32F:ze.U8_RGBA_NORM,l=this.createTexture({dimension:e,format:a,usage:gs.SAMPLED,width:1,height:1,depthOrArrayLayers:n,mipLevelCount:1});return r===ho.Float&&l.setImageData([new Uint8Array(4*n)]),np(l)},t.prototype.getNextUniqueId=function(){return++this.resourceUniqueId},t.prototype.checkLimits=function(){var e=this.gl;if(this.maxVertexAttribs=e.getParameter(xe.MAX_VERTEX_ATTRIBS),Pr(e)){this.uniformBufferMaxPageByteSize=Math.min(e.getParameter(xe.MAX_UNIFORM_BLOCK_SIZE),qx),this.uniformBufferWordAlignment=e.getParameter(e.UNIFORM_BUFFER_OFFSET_ALIGNMENT)/4;var r=e.getInternalformatParameter(e.RENDERBUFFER,e.DEPTH32F_STENCIL8,e.SAMPLES);this.supportedSampleCounts=r?pd([],Lu(r),!1):[],this.occlusionQueriesRecommended=!0}else this.uniformBufferWordAlignment=64,this.uniformBufferMaxPageByteSize=qx;this.uniformBufferMaxPageWordSize=this.uniformBufferMaxPageByteSize/4,this.supportedSampleCounts.includes(1)||this.supportedSampleCounts.push(1),this.supportedSampleCounts.sort(function(n,a){return n-a})},t.prototype.configureSwapChain=function(e,r,n){var a=this.scTexture;a.width=e,a.height=r,this.scPlatformFramebuffer=PH(n)},t.prototype.getDevice=function(){return this},t.prototype.getCanvas=function(){return this.gl.canvas},t.prototype.getOnscreenTexture=function(){return this.scTexture},t.prototype.beginFrame=function(){},t.prototype.endFrame=function(){},t.prototype.translateTextureInternalFormat=function(e,r){switch(r===void 0&&(r=!1),e){case ze.ALPHA:return xe.ALPHA;case ze.U8_LUMINANCE:case ze.F16_LUMINANCE:case ze.F32_LUMINANCE:return xe.LUMINANCE;case ze.F16_R:return xe.R16F;case ze.F16_RG:return xe.RG16F;case ze.F16_RGB:return xe.RGB16F;case ze.F16_RGBA:return xe.RGBA16F;case ze.F32_R:return xe.R32F;case ze.F32_RG:return xe.RG32F;case ze.F32_RGB:return xe.RGB32F;case ze.F32_RGBA:return Pr(this.gl)?xe.RGBA32F:r?this.WEBGL_color_buffer_float.RGBA32F_EXT:xe.RGBA;case ze.U8_R_NORM:return xe.R8;case ze.U8_RG_NORM:return xe.RG8;case ze.U8_RGB_NORM:case ze.U8_RGB_RT:return xe.RGB8;case ze.U8_RGB_SRGB:return xe.SRGB8;case ze.U8_RGBA_NORM:case ze.U8_RGBA_RT:return Pr(this.gl)?xe.RGBA8:r?xe.RGBA4:xe.RGBA;case ze.U8_RGBA:return xe.RGBA;case ze.U8_RGBA_SRGB:case ze.U8_RGBA_RT_SRGB:return xe.SRGB8_ALPHA8;case ze.U16_R:return xe.R16UI;case ze.U16_R_NORM:return this.EXT_texture_norm16.R16_EXT;case ze.U16_RG_NORM:return this.EXT_texture_norm16.RG16_EXT;case ze.U16_RGBA_NORM:return this.EXT_texture_norm16.RGBA16_EXT;case ze.U16_RGBA_5551:return xe.RGB5_A1;case ze.U16_RGB_565:return xe.RGB565;case ze.U32_R:return xe.R32UI;case ze.S8_RGBA_NORM:return xe.RGBA8_SNORM;case ze.S8_RG_NORM:return xe.RG8_SNORM;case ze.BC1:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT;case ze.BC1_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;case ze.BC2:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT;case ze.BC2_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;case ze.BC3:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT;case ze.BC3_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;case ze.BC4_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_RGTC1_EXT;case ze.BC4_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_RGTC1_EXT;case ze.BC5_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_GREEN_RGTC2_EXT;case ze.BC5_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;case ze.D32F_S8:return Pr(this.gl)?xe.DEPTH32F_STENCIL8:this.WEBGL_depth_texture?xe.DEPTH_STENCIL:xe.DEPTH_COMPONENT16;case ze.D24_S8:return Pr(this.gl)?xe.DEPTH24_STENCIL8:this.WEBGL_depth_texture?xe.DEPTH_STENCIL:xe.DEPTH_COMPONENT16;case ze.D32F:return Pr(this.gl)?xe.DEPTH_COMPONENT32F:this.WEBGL_depth_texture?xe.DEPTH_COMPONENT:xe.DEPTH_COMPONENT16;case ze.D24:return Pr(this.gl)?xe.DEPTH_COMPONENT24:this.WEBGL_depth_texture?xe.DEPTH_COMPONENT:xe.DEPTH_COMPONENT16;default:throw new Error("whoops")}},t.prototype.translateTextureType=function(e){var r=vc(e);switch(r){case Tt.U8:return xe.UNSIGNED_BYTE;case Tt.U16:return xe.UNSIGNED_SHORT;case Tt.U32:return xe.UNSIGNED_INT;case Tt.S8:return xe.BYTE;case Tt.F16:return xe.HALF_FLOAT;case Tt.F32:return xe.FLOAT;case Tt.U16_PACKED_5551:return xe.UNSIGNED_SHORT_5_5_5_1;case Tt.D32F:return Pr(this.gl)?xe.FLOAT:this.WEBGL_depth_texture?xe.UNSIGNED_INT:xe.UNSIGNED_BYTE;case Tt.D24:return Pr(this.gl)?xe.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?xe.UNSIGNED_SHORT:xe.UNSIGNED_BYTE;case Tt.D24S8:return Pr(this.gl)?xe.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?xe.UNSIGNED_INT_24_8_WEBGL:xe.UNSIGNED_BYTE;case Tt.D32FS8:return xe.FLOAT_32_UNSIGNED_INT_24_8_REV;default:throw new Error("whoops")}},t.prototype.translateInternalTextureFormat=function(e){switch(e){case ze.F32_R:return xe.R32F;case ze.F32_RG:return xe.RG32F;case ze.F32_RGB:return xe.RGB32F;case ze.F32_RGBA:return xe.RGBA32F;case ze.F16_R:return xe.R16F;case ze.F16_RG:return xe.RG16F;case ze.F16_RGB:return xe.RGB16F;case ze.F16_RGBA:return xe.RGBA16F}return this.translateTextureFormat(e)},t.prototype.translateTextureFormat=function(e){if(VE(e)||e===ze.F32_LUMINANCE||e===ze.U8_LUMINANCE)return this.translateTextureInternalFormat(e);var r=Pr(this.gl)||!Pr(this.gl)&&!!this.WEBGL_depth_texture;switch(e){case ze.D24_S8:case ze.D32F_S8:return r?xe.DEPTH_STENCIL:xe.RGBA;case ze.D24:case ze.D32F:return r?xe.DEPTH_COMPONENT:xe.RGBA}var n=HE(e),a=F2(e);switch(a){case Ar.A:return xe.ALPHA;case Ar.R:return n?xe.RED_INTEGER:xe.RED;case Ar.RG:return n?xe.RG_INTEGER:xe.RG;case Ar.RGB:return n?xe.RGB_INTEGER:xe.RGB;case Ar.RGBA:return xe.RGBA}},t.prototype.setActiveTexture=function(e){this.currentActiveTexture!==e&&(this.gl.activeTexture(e),this.currentActiveTexture=e)},t.prototype.bindVAO=function(e){this.currentBoundVAO!==e&&(Pr(this.gl)?this.gl.bindVertexArray(e):this.OES_vertex_array_object.bindVertexArrayOES(e),this.currentBoundVAO=e)},t.prototype.programCompiled=function(e){gn(e.compileState!==el.NeedsCompile),e.compileState===el.Compiling&&(e.compileState=el.NeedsBind,this.shaderDebug&&this.checkProgramCompilationForErrors(e))},t.prototype.useProgram=function(e){this.currentProgram!==e&&(this.programCompiled(e),this.gl.useProgram(e.gl_program),this.currentProgram=e)},t.prototype.ensureResourceExists=function(e){if(e===null){var r=this.gl.getError();throw new Error("Created resource is null; GL error encountered: ".concat(r))}else return e},t.prototype.createBuffer=function(e){return new yj({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createTexture=function(e){return new Rv({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createSampler=function(e){return new Rj({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createRenderTarget=function(e){return new bj({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createRenderTargetFromTexture=function(e){var r=e,n=r.format,a=r.width,l=r.height,o=r.mipLevelCount;return gn(o===1),this.createRenderTarget({format:n,width:a,height:l,sampleCount:1,texture:e})},t.prototype.createProgram=function(e){var r,n,a,l=(r=e.vertex)===null||r===void 0?void 0:r.glsl;return!((n=e.vertex)===null||n===void 0)&&n.glsl&&(e.vertex.glsl=Op(this.queryVendorInfo(),"vert",e.vertex.glsl)),!((a=e.fragment)===null||a===void 0)&&a.glsl&&(e.fragment.glsl=Op(this.queryVendorInfo(),"frag",e.fragment.glsl)),this.createProgramSimple(e,l)},t.prototype.createProgramSimple=function(e,r){var n=new Ej({id:this.getNextUniqueId(),device:this,descriptor:e},r);return n},t.prototype.createBindings=function(e){return new cj({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createInputLayout=function(e){return new xj({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createRenderPipeline=function(e){return new Sj({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createComputePass=function(){return new Ij},t.prototype.createComputePipeline=function(e){return new wj({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createReadback=function(){return new Aj({id:this.getNextUniqueId(),device:this})},t.prototype.createQueryPool=function(e,r){return new Tj({id:this.getNextUniqueId(),device:this,descriptor:{type:e,elemCount:r}})},t.prototype.formatRenderPassDescriptor=function(e){var r,n,a,l,o,p,m=e.colorAttachment;e.depthClearValue=(r=e.depthClearValue)!==null&&r!==void 0?r:"load",e.stencilClearValue=(n=e.stencilClearValue)!==null&&n!==void 0?n:"load";for(var v=0;v=0;r--)this.debugGroupStack[r].drawCallCount+=e},t.prototype.debugGroupStatisticsBufferUpload=function(e){e===void 0&&(e=1);for(var r=this.debugGroupStack.length-1;r>=0;r--)this.debugGroupStack[r].bufferUploadCount+=e},t.prototype.debugGroupStatisticsTextureBind=function(e){e===void 0&&(e=1);for(var r=this.debugGroupStack.length-1;r>=0;r--)this.debugGroupStack[r].textureBindCount+=e},t.prototype.debugGroupStatisticsTriangles=function(e){for(var r=this.debugGroupStack.length-1;r>=0;r--)this.debugGroupStack[r].triangleCount+=e},t.prototype.reportShaderError=function(e,r){var n=this.gl,a=n.getShaderParameter(e,n.COMPILE_STATUS);if(!a){console.error(LH(r));var l=n.getExtension("WEBGL_debug_shaders");l&&console.error(l.getTranslatedShaderSource(e)),console.error(n.getShaderInfoLog(e))}return a},t.prototype.checkProgramCompilationForErrors=function(e){var r=this.gl,n=e.gl_program;if(!r.getProgramParameter(n,r.LINK_STATUS)){var a=e.descriptor;if(!this.reportShaderError(e.gl_shader_vert,a.vertex.glsl)||!this.reportShaderError(e.gl_shader_frag,a.fragment.glsl))return;console.error(r.getProgramInfoLog(e.gl_program))}},t.prototype.bindFramebufferAttachment=function(e,r,n,a){var l=this.gl;if(cu(n))l.framebufferRenderbuffer(e,r,l.RENDERBUFFER,null);else if(n.type===Jn.RenderTarget)n.gl_renderbuffer!==null?l.framebufferRenderbuffer(e,r,l.RENDERBUFFER,n.gl_renderbuffer):n.texture!==null&&l.framebufferTexture2D(e,r,xe.TEXTURE_2D,np(n.texture),a);else if(n.type===Jn.Texture){var o=np(n);n.dimension===Un.TEXTURE_2D?l.framebufferTexture2D(e,r,xe.TEXTURE_2D,o,a):Pr(l)&&(n.dimension,Un.TEXTURE_2D_ARRAY)}},t.prototype.bindFramebufferDepthStencilAttachment=function(e,r){var n=this.gl,a=cu(r)?hr.Depth|hr.Stencil:Ip(r.format),l=!!(a&hr.Depth),o=!!(a&hr.Stencil);if(l&&o){var p=Pr(this.gl)||!Pr(this.gl)&&!!this.WEBGL_depth_texture;p?this.bindFramebufferAttachment(e,n.DEPTH_STENCIL_ATTACHMENT,r,0):this.bindFramebufferAttachment(e,n.DEPTH_ATTACHMENT,r,0)}else l?(this.bindFramebufferAttachment(e,n.DEPTH_ATTACHMENT,r,0),this.bindFramebufferAttachment(e,n.STENCIL_ATTACHMENT,null,0)):o&&(this.bindFramebufferAttachment(e,n.STENCIL_ATTACHMENT,r,0),this.bindFramebufferAttachment(e,n.DEPTH_ATTACHMENT,null,0))},t.prototype.validateCurrentAttachments=function(){for(var e=-1,r=-1,n=-1,a=0;a=v.numUniformBuffers),gn(p.length>=v.numSamplers);for(var E=0;E1&&m.device.EXT_texture_filter_anisotropic!==null&&(gn(l.minFilter===wo.BILINEAR&&l.magFilter===wo.BILINEAR&&l.mipmapFilter===da.LINEAR),v.samplerParameterf(E,m.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,b)),m.gl_sampler=E}else m.descriptor=l;return m}return e.prototype.setTextureParameters=function(r,n,a){var l,o=this.device.gl,p=this.descriptor;this.isNPOT(n,a)?o.texParameteri(xe.TEXTURE_2D,xe.TEXTURE_MIN_FILTER,xe.LINEAR):o.texParameteri(r,xe.TEXTURE_MIN_FILTER,V0(p.minFilter,p.mipmapFilter)),o.texParameteri(xe.TEXTURE_2D,xe.TEXTURE_WRAP_S,Bd(p.addressModeU)),o.texParameteri(xe.TEXTURE_2D,xe.TEXTURE_WRAP_T,Bd(p.addressModeV)),o.texParameteri(r,xe.TEXTURE_MAG_FILTER,V0(p.magFilter,da.NO_MIP));var m=(l=p.maxAnisotropy)!==null&&l!==void 0?l:1;m>1&&this.device.EXT_texture_filter_anisotropic!==null&&(gn(p.minFilter===wo.BILINEAR&&p.magFilter===wo.BILINEAR&&p.mipmapFilter===da.LINEAR),o.texParameteri(r,this.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,m))},e.prototype.destroy=function(){t.prototype.destroy.call(this),Pr(this.device.gl)&&this.device.gl.deleteSampler(Cv(this))},e.prototype.isNPOT=function(r,n){return!Um(r)||!Um(n)},e}(pu),wj=function(){function t(){}return t.prototype.dispatchWorkgroups=function(e,r,n){},t.prototype.dispatchWorkgroupsIndirect=function(e,r){},t.prototype.setPipeline=function(e){},t.prototype.setBindings=function(e){},t.prototype.pushDebugGroup=function(e){},t.prototype.popDebugGroup=function(){},t.prototype.insertDebugMarker=function(e){},t}(),Cj=function(t){po(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Jn.RenderBundle,r.commands=[],r}return e.prototype.push=function(r){this.commands.push(r)},e.prototype.replay=function(){this.commands.forEach(function(r){return r()})},e}(pu),qx=65536,Rj=/uniform(?:\s+)(\w+)(?:\s?){([^]*?)}/g,Ij=function(){function t(e,r){r===void 0&&(r={}),this.shaderDebug=!1,this.OES_vertex_array_object=null,this.ANGLE_instanced_arrays=null,this.OES_texture_float=null,this.OES_draw_buffers_indexed=null,this.WEBGL_draw_buffers=null,this.WEBGL_depth_texture=null,this.WEBGL_color_buffer_float=null,this.EXT_color_buffer_half_float=null,this.WEBGL_compressed_texture_s3tc=null,this.WEBGL_compressed_texture_s3tc_srgb=null,this.EXT_texture_compression_rgtc=null,this.EXT_texture_filter_anisotropic=null,this.KHR_parallel_shader_compile=null,this.EXT_texture_norm16=null,this.EXT_color_buffer_float=null,this.OES_texture_float_linear=null,this.OES_texture_half_float_linear=null,this.scTexture=null,this.scPlatformFramebuffer=null,this.currentActiveTexture=null,this.currentBoundVAO=null,this.currentProgram=null,this.resourceCreationTracker=null,this.resourceUniqueId=0,this.currentColorAttachments=[],this.currentColorAttachmentLevels=[],this.currentColorResolveTos=[],this.currentColorResolveToLevels=[],this.currentSampleCount=-1,this.currentIndexBufferByteOffset=null,this.currentMegaState=Mp(Pp),this.currentSamplers=[],this.currentTextures=[],this.currentUniformBuffers=[],this.currentUniformBufferByteOffsets=[],this.currentUniformBufferByteSizes=[],this.currentScissorEnabled=!1,this.currentStencilRef=null,this.currentRenderPassDescriptor=null,this.currentRenderPassDescriptorStack=[],this.debugGroupStack=[],this.resolveColorAttachmentsChanged=!1,this.resolveDepthStencilAttachmentsChanged=!1,this.explicitBindingLocations=!1,this.separateSamplerTextures=!1,this.viewportOrigin=ku.LOWER_LEFT,this.clipSpaceNearZ=Rp.NEGATIVE_ONE,this.supportMRT=!1,this.inBlitRenderPass=!1,this.supportedSampleCounts=[],this.occlusionQueriesRecommended=!1,this.computeShadersSupported=!1,this.gl=e,this.contextAttributes=Gh(e.getContextAttributes()),Pr(e)?(this.EXT_texture_norm16=e.getExtension("EXT_texture_norm16"),this.EXT_color_buffer_float=e.getExtension("EXT_color_buffer_float")):(this.OES_vertex_array_object=e.getExtension("OES_vertex_array_object"),this.ANGLE_instanced_arrays=e.getExtension("ANGLE_instanced_arrays"),this.OES_texture_float=e.getExtension("OES_texture_float"),this.WEBGL_draw_buffers=e.getExtension("WEBGL_draw_buffers"),this.WEBGL_depth_texture=e.getExtension("WEBGL_depth_texture"),this.WEBGL_color_buffer_float=e.getExtension("WEBGL_color_buffer_float"),this.EXT_color_buffer_half_float=e.getExtension("EXT_color_buffer_half_float"),e.getExtension("EXT_frag_depth"),e.getExtension("OES_element_index_uint"),e.getExtension("OES_standard_derivatives")),this.WEBGL_compressed_texture_s3tc=e.getExtension("WEBGL_compressed_texture_s3tc"),this.WEBGL_compressed_texture_s3tc_srgb=e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),this.EXT_texture_compression_rgtc=e.getExtension("EXT_texture_compression_rgtc"),this.EXT_texture_filter_anisotropic=e.getExtension("EXT_texture_filter_anisotropic"),this.EXT_texture_norm16=e.getExtension("EXT_texture_norm16"),this.OES_texture_float_linear=e.getExtension("OES_texture_float_linear"),this.OES_texture_half_float_linear=e.getExtension("OES_texture_half_float_linear"),this.KHR_parallel_shader_compile=e.getExtension("KHR_parallel_shader_compile"),Pr(e)?(this.platformString="WebGL2",this.glslVersion="#version 300 es"):(this.platformString="WebGL1",this.glslVersion="#version 100"),this.scTexture=new Rv({id:this.getNextUniqueId(),device:this,descriptor:{width:0,height:0,depthOrArrayLayers:1,dimension:Un.TEXTURE_2D,mipLevelCount:1,usage:gs.RENDER_TARGET,format:this.contextAttributes.alpha===!1?ze.U8_RGB_RT:ze.U8_RGBA_RT},fake:!0}),this.scTexture.formatKind=ho.Float,this.scTexture.gl_target=null,this.scTexture.gl_texture=null,this.resolveColorReadFramebuffer=this.ensureResourceExists(e.createFramebuffer()),this.resolveColorDrawFramebuffer=this.ensureResourceExists(e.createFramebuffer()),this.resolveDepthStencilReadFramebuffer=this.ensureResourceExists(e.createFramebuffer()),this.resolveDepthStencilDrawFramebuffer=this.ensureResourceExists(e.createFramebuffer()),this.renderPassDrawFramebuffer=this.ensureResourceExists(e.createFramebuffer()),this.readbackFramebuffer=this.ensureResourceExists(e.createFramebuffer()),this.fallbackTexture2D=this.createFallbackTexture(Un.TEXTURE_2D,ho.Float),this.fallbackTexture2DDepth=this.createFallbackTexture(Un.TEXTURE_2D,ho.Depth),this.fallbackVertexBuffer=this.createBuffer({viewOrSize:1,usage:Si.VERTEX,hint:Uu.STATIC}),Pr(e)&&(this.fallbackTexture2DArray=this.createFallbackTexture(Un.TEXTURE_2D_ARRAY,ho.Float),this.fallbackTexture3D=this.createFallbackTexture(Un.TEXTURE_3D,ho.Float),this.fallbackTextureCube=this.createFallbackTexture(Un.TEXTURE_CUBE_MAP,ho.Float)),this.currentMegaState.depthCompare=ui.LESS,this.currentMegaState.depthWrite=!1,this.currentMegaState.attachmentsState[0].channelWriteMask=wa.ALL,e.enable(e.DEPTH_TEST),e.enable(e.STENCIL_TEST),this.checkLimits(),r.shaderDebug&&(this.shaderDebug=!0),r.trackResources&&(this.resourceCreationTracker=new Aj)}return t.prototype.destroy=function(){this.blitBindings&&this.blitBindings.destroy(),this.blitInputLayout&&this.blitInputLayout.destroy(),this.blitRenderPipeline&&this.blitRenderPipeline.destroy(),this.blitVertexBuffer&&this.blitVertexBuffer.destroy(),this.blitProgram&&this.blitProgram.destroy()},t.prototype.createFallbackTexture=function(e,r){var n=e===Un.TEXTURE_CUBE_MAP?6:1,a=r===ho.Depth?ze.D32F:ze.U8_RGBA_NORM,l=this.createTexture({dimension:e,format:a,usage:gs.SAMPLED,width:1,height:1,depthOrArrayLayers:n,mipLevelCount:1});return r===ho.Float&&l.setImageData([new Uint8Array(4*n)]),np(l)},t.prototype.getNextUniqueId=function(){return++this.resourceUniqueId},t.prototype.checkLimits=function(){var e=this.gl;if(this.maxVertexAttribs=e.getParameter(xe.MAX_VERTEX_ATTRIBS),Pr(e)){this.uniformBufferMaxPageByteSize=Math.min(e.getParameter(xe.MAX_UNIFORM_BLOCK_SIZE),qx),this.uniformBufferWordAlignment=e.getParameter(e.UNIFORM_BUFFER_OFFSET_ALIGNMENT)/4;var r=e.getInternalformatParameter(e.RENDERBUFFER,e.DEPTH32F_STENCIL8,e.SAMPLES);this.supportedSampleCounts=r?pd([],Lu(r),!1):[],this.occlusionQueriesRecommended=!0}else this.uniformBufferWordAlignment=64,this.uniformBufferMaxPageByteSize=qx;this.uniformBufferMaxPageWordSize=this.uniformBufferMaxPageByteSize/4,this.supportedSampleCounts.includes(1)||this.supportedSampleCounts.push(1),this.supportedSampleCounts.sort(function(n,a){return n-a})},t.prototype.configureSwapChain=function(e,r,n){var a=this.scTexture;a.width=e,a.height=r,this.scPlatformFramebuffer=RH(n)},t.prototype.getDevice=function(){return this},t.prototype.getCanvas=function(){return this.gl.canvas},t.prototype.getOnscreenTexture=function(){return this.scTexture},t.prototype.beginFrame=function(){},t.prototype.endFrame=function(){},t.prototype.translateTextureInternalFormat=function(e,r){switch(r===void 0&&(r=!1),e){case ze.ALPHA:return xe.ALPHA;case ze.U8_LUMINANCE:case ze.F16_LUMINANCE:case ze.F32_LUMINANCE:return xe.LUMINANCE;case ze.F16_R:return xe.R16F;case ze.F16_RG:return xe.RG16F;case ze.F16_RGB:return xe.RGB16F;case ze.F16_RGBA:return xe.RGBA16F;case ze.F32_R:return xe.R32F;case ze.F32_RG:return xe.RG32F;case ze.F32_RGB:return xe.RGB32F;case ze.F32_RGBA:return Pr(this.gl)?xe.RGBA32F:r?this.WEBGL_color_buffer_float.RGBA32F_EXT:xe.RGBA;case ze.U8_R_NORM:return xe.R8;case ze.U8_RG_NORM:return xe.RG8;case ze.U8_RGB_NORM:case ze.U8_RGB_RT:return xe.RGB8;case ze.U8_RGB_SRGB:return xe.SRGB8;case ze.U8_RGBA_NORM:case ze.U8_RGBA_RT:return Pr(this.gl)?xe.RGBA8:r?xe.RGBA4:xe.RGBA;case ze.U8_RGBA:return xe.RGBA;case ze.U8_RGBA_SRGB:case ze.U8_RGBA_RT_SRGB:return xe.SRGB8_ALPHA8;case ze.U16_R:return xe.R16UI;case ze.U16_R_NORM:return this.EXT_texture_norm16.R16_EXT;case ze.U16_RG_NORM:return this.EXT_texture_norm16.RG16_EXT;case ze.U16_RGBA_NORM:return this.EXT_texture_norm16.RGBA16_EXT;case ze.U16_RGBA_5551:return xe.RGB5_A1;case ze.U16_RGB_565:return xe.RGB565;case ze.U32_R:return xe.R32UI;case ze.S8_RGBA_NORM:return xe.RGBA8_SNORM;case ze.S8_RG_NORM:return xe.RG8_SNORM;case ze.BC1:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT;case ze.BC1_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;case ze.BC2:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT;case ze.BC2_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;case ze.BC3:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT;case ze.BC3_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;case ze.BC4_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_RGTC1_EXT;case ze.BC4_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_RGTC1_EXT;case ze.BC5_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_GREEN_RGTC2_EXT;case ze.BC5_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;case ze.D32F_S8:return Pr(this.gl)?xe.DEPTH32F_STENCIL8:this.WEBGL_depth_texture?xe.DEPTH_STENCIL:xe.DEPTH_COMPONENT16;case ze.D24_S8:return Pr(this.gl)?xe.DEPTH24_STENCIL8:this.WEBGL_depth_texture?xe.DEPTH_STENCIL:xe.DEPTH_COMPONENT16;case ze.D32F:return Pr(this.gl)?xe.DEPTH_COMPONENT32F:this.WEBGL_depth_texture?xe.DEPTH_COMPONENT:xe.DEPTH_COMPONENT16;case ze.D24:return Pr(this.gl)?xe.DEPTH_COMPONENT24:this.WEBGL_depth_texture?xe.DEPTH_COMPONENT:xe.DEPTH_COMPONENT16;default:throw new Error("whoops")}},t.prototype.translateTextureType=function(e){var r=vc(e);switch(r){case Tt.U8:return xe.UNSIGNED_BYTE;case Tt.U16:return xe.UNSIGNED_SHORT;case Tt.U32:return xe.UNSIGNED_INT;case Tt.S8:return xe.BYTE;case Tt.F16:return xe.HALF_FLOAT;case Tt.F32:return xe.FLOAT;case Tt.U16_PACKED_5551:return xe.UNSIGNED_SHORT_5_5_5_1;case Tt.D32F:return Pr(this.gl)?xe.FLOAT:this.WEBGL_depth_texture?xe.UNSIGNED_INT:xe.UNSIGNED_BYTE;case Tt.D24:return Pr(this.gl)?xe.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?xe.UNSIGNED_SHORT:xe.UNSIGNED_BYTE;case Tt.D24S8:return Pr(this.gl)?xe.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?xe.UNSIGNED_INT_24_8_WEBGL:xe.UNSIGNED_BYTE;case Tt.D32FS8:return xe.FLOAT_32_UNSIGNED_INT_24_8_REV;default:throw new Error("whoops")}},t.prototype.translateInternalTextureFormat=function(e){switch(e){case ze.F32_R:return xe.R32F;case ze.F32_RG:return xe.RG32F;case ze.F32_RGB:return xe.RGB32F;case ze.F32_RGBA:return xe.RGBA32F;case ze.F16_R:return xe.R16F;case ze.F16_RG:return xe.RG16F;case ze.F16_RGB:return xe.RGB16F;case ze.F16_RGBA:return xe.RGBA16F}return this.translateTextureFormat(e)},t.prototype.translateTextureFormat=function(e){if(VE(e)||e===ze.F32_LUMINANCE||e===ze.U8_LUMINANCE)return this.translateTextureInternalFormat(e);var r=Pr(this.gl)||!Pr(this.gl)&&!!this.WEBGL_depth_texture;switch(e){case ze.D24_S8:case ze.D32F_S8:return r?xe.DEPTH_STENCIL:xe.RGBA;case ze.D24:case ze.D32F:return r?xe.DEPTH_COMPONENT:xe.RGBA}var n=HE(e),a=F2(e);switch(a){case Ar.A:return xe.ALPHA;case Ar.R:return n?xe.RED_INTEGER:xe.RED;case Ar.RG:return n?xe.RG_INTEGER:xe.RG;case Ar.RGB:return n?xe.RGB_INTEGER:xe.RGB;case Ar.RGBA:return xe.RGBA}},t.prototype.setActiveTexture=function(e){this.currentActiveTexture!==e&&(this.gl.activeTexture(e),this.currentActiveTexture=e)},t.prototype.bindVAO=function(e){this.currentBoundVAO!==e&&(Pr(this.gl)?this.gl.bindVertexArray(e):this.OES_vertex_array_object.bindVertexArrayOES(e),this.currentBoundVAO=e)},t.prototype.programCompiled=function(e){gn(e.compileState!==el.NeedsCompile),e.compileState===el.Compiling&&(e.compileState=el.NeedsBind,this.shaderDebug&&this.checkProgramCompilationForErrors(e))},t.prototype.useProgram=function(e){this.currentProgram!==e&&(this.programCompiled(e),this.gl.useProgram(e.gl_program),this.currentProgram=e)},t.prototype.ensureResourceExists=function(e){if(e===null){var r=this.gl.getError();throw new Error("Created resource is null; GL error encountered: ".concat(r))}else return e},t.prototype.createBuffer=function(e){return new _j({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createTexture=function(e){return new Rv({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createSampler=function(e){return new Sj({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createRenderTarget=function(e){return new vj({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createRenderTargetFromTexture=function(e){var r=e,n=r.format,a=r.width,l=r.height,o=r.mipLevelCount;return gn(o===1),this.createRenderTarget({format:n,width:a,height:l,sampleCount:1,texture:e})},t.prototype.createProgram=function(e){var r,n,a,l=(r=e.vertex)===null||r===void 0?void 0:r.glsl;return!((n=e.vertex)===null||n===void 0)&&n.glsl&&(e.vertex.glsl=Op(this.queryVendorInfo(),"vert",e.vertex.glsl)),!((a=e.fragment)===null||a===void 0)&&a.glsl&&(e.fragment.glsl=Op(this.queryVendorInfo(),"frag",e.fragment.glsl)),this.createProgramSimple(e,l)},t.prototype.createProgramSimple=function(e,r){var n=new yj({id:this.getNextUniqueId(),device:this,descriptor:e},r);return n},t.prototype.createBindings=function(e){return new sj({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createInputLayout=function(e){return new gj({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createRenderPipeline=function(e){return new Ej({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createComputePass=function(){return new wj},t.prototype.createComputePipeline=function(e){return new Tj({id:this.getNextUniqueId(),device:this,descriptor:e})},t.prototype.createReadback=function(){return new bj({id:this.getNextUniqueId(),device:this})},t.prototype.createQueryPool=function(e,r){return new xj({id:this.getNextUniqueId(),device:this,descriptor:{type:e,elemCount:r}})},t.prototype.formatRenderPassDescriptor=function(e){var r,n,a,l,o,p,m=e.colorAttachment;e.depthClearValue=(r=e.depthClearValue)!==null&&r!==void 0?r:"load",e.stencilClearValue=(n=e.stencilClearValue)!==null&&n!==void 0?n:"load";for(var v=0;v=0;r--)this.debugGroupStack[r].drawCallCount+=e},t.prototype.debugGroupStatisticsBufferUpload=function(e){e===void 0&&(e=1);for(var r=this.debugGroupStack.length-1;r>=0;r--)this.debugGroupStack[r].bufferUploadCount+=e},t.prototype.debugGroupStatisticsTextureBind=function(e){e===void 0&&(e=1);for(var r=this.debugGroupStack.length-1;r>=0;r--)this.debugGroupStack[r].textureBindCount+=e},t.prototype.debugGroupStatisticsTriangles=function(e){for(var r=this.debugGroupStack.length-1;r>=0;r--)this.debugGroupStack[r].triangleCount+=e},t.prototype.reportShaderError=function(e,r){var n=this.gl,a=n.getShaderParameter(e,n.COMPILE_STATUS);if(!a){console.error(MH(r));var l=n.getExtension("WEBGL_debug_shaders");l&&console.error(l.getTranslatedShaderSource(e)),console.error(n.getShaderInfoLog(e))}return a},t.prototype.checkProgramCompilationForErrors=function(e){var r=this.gl,n=e.gl_program;if(!r.getProgramParameter(n,r.LINK_STATUS)){var a=e.descriptor;if(!this.reportShaderError(e.gl_shader_vert,a.vertex.glsl)||!this.reportShaderError(e.gl_shader_frag,a.fragment.glsl))return;console.error(r.getProgramInfoLog(e.gl_program))}},t.prototype.bindFramebufferAttachment=function(e,r,n,a){var l=this.gl;if(cu(n))l.framebufferRenderbuffer(e,r,l.RENDERBUFFER,null);else if(n.type===Jn.RenderTarget)n.gl_renderbuffer!==null?l.framebufferRenderbuffer(e,r,l.RENDERBUFFER,n.gl_renderbuffer):n.texture!==null&&l.framebufferTexture2D(e,r,xe.TEXTURE_2D,np(n.texture),a);else if(n.type===Jn.Texture){var o=np(n);n.dimension===Un.TEXTURE_2D?l.framebufferTexture2D(e,r,xe.TEXTURE_2D,o,a):Pr(l)&&(n.dimension,Un.TEXTURE_2D_ARRAY)}},t.prototype.bindFramebufferDepthStencilAttachment=function(e,r){var n=this.gl,a=cu(r)?hr.Depth|hr.Stencil:Ip(r.format),l=!!(a&hr.Depth),o=!!(a&hr.Stencil);if(l&&o){var p=Pr(this.gl)||!Pr(this.gl)&&!!this.WEBGL_depth_texture;p?this.bindFramebufferAttachment(e,n.DEPTH_STENCIL_ATTACHMENT,r,0):this.bindFramebufferAttachment(e,n.DEPTH_ATTACHMENT,r,0)}else l?(this.bindFramebufferAttachment(e,n.DEPTH_ATTACHMENT,r,0),this.bindFramebufferAttachment(e,n.STENCIL_ATTACHMENT,null,0)):o&&(this.bindFramebufferAttachment(e,n.STENCIL_ATTACHMENT,r,0),this.bindFramebufferAttachment(e,n.DEPTH_ATTACHMENT,null,0))},t.prototype.validateCurrentAttachments=function(){for(var e=-1,r=-1,n=-1,a=0;a=v.numUniformBuffers),gn(p.length>=v.numSamplers);for(var E=0;E{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&jE.decode();let $d=null;function om(){return($d===null||$d.byteLength===0)&&($d=new Uint8Array(co.memory.buffer)),$d}function jm(t,e){return t=t>>>0,jE.decode(om().subarray(t,t+e))}const Jc=new Array(128).fill(void 0);Jc.push(void 0,null,!0,!1);let r3=Jc.length;function Dj(t){r3===Jc.length&&Jc.push(Jc.length+1);const e=r3;return r3=Jc[e],Jc[e]=t,e}function am(t){return Jc[t]}function Bj(t){t<132||(Jc[t]=r3,r3=t)}function Fj(t){const e=am(t);return Bj(t),e}let Lp=0;const sm=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},Nj=typeof sm.encodeInto=="function"?function(t,e){return sm.encodeInto(t,e)}:function(t,e){const r=sm.encode(t);return e.set(r),{read:t.length,written:r.length}};function Xm(t,e,r){if(r===void 0){const p=sm.encode(t),m=e(p.length,1)>>>0;return om().subarray(m,m+p.length).set(p),Lp=p.length,m}let n=t.length,a=e(n,1)>>>0;const l=om();let o=0;for(;o127)break;l[a+o]=p}if(o!==n){o!==0&&(t=t.slice(o)),a=r(a,n,n=o+t.length*3,1)>>>0;const p=om().subarray(a+o,a+n),m=Nj(t,p);o+=m.written}return Lp=o,a}let qd=null;function Wm(){return(qd===null||qd.byteLength===0)&&(qd=new Int32Array(co.memory.buffer)),qd}function kj(t,e,r){let n,a;try{const p=co.__wbindgen_add_to_stack_pointer(-16),m=Xm(t,co.__wbindgen_malloc,co.__wbindgen_realloc),v=Lp,E=Xm(e,co.__wbindgen_malloc,co.__wbindgen_realloc),b=Lp;co.glsl_compile(p,m,v,E,b,r);var l=Wm()[p/4+0],o=Wm()[p/4+1];return n=l,a=o,jm(l,o)}finally{co.__wbindgen_add_to_stack_pointer(16),co.__wbindgen_free(n,a,1)}}class T3{static __wrap(e){e=e>>>0;const r=Object.create(T3.prototype);return r.__wbg_ptr=e,r}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,e}free(){const e=this.__destroy_into_raw();co.__wbg_wgslcomposer_free(e)}constructor(){const e=co.wgslcomposer_new();return T3.__wrap(e)}load_composable(e){const r=Xm(e,co.__wbindgen_malloc,co.__wbindgen_realloc),n=Lp;co.wgslcomposer_load_composable(this.__wbg_ptr,r,n)}wgsl_compile(e){let r,n;try{const o=co.__wbindgen_add_to_stack_pointer(-16),p=Xm(e,co.__wbindgen_malloc,co.__wbindgen_realloc),m=Lp;co.wgslcomposer_wgsl_compile(o,this.__wbg_ptr,p,m);var a=Wm()[o/4+0],l=Wm()[o/4+1];return r=a,n=l,jm(a,l)}finally{co.__wbindgen_add_to_stack_pointer(16),co.__wbindgen_free(r,n,1)}}}async function Uj(t,e){if(typeof Response=="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(n){if(t.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const r=await t.arrayBuffer();return await WebAssembly.instantiate(r,e)}else{const r=await WebAssembly.instantiate(t,e);return r instanceof WebAssembly.Instance?{instance:r,module:t}:r}}function zj(){const t={};return t.wbg={},t.wbg.__wbindgen_string_new=function(e,r){const n=jm(e,r);return Dj(n)},t.wbg.__wbindgen_object_drop_ref=function(e){Fj(e)},t.wbg.__wbg_log_1d3ae0273d8f4f8a=function(e){console.log(am(e))},t.wbg.__wbg_log_576ca876af0d4a77=function(e,r){console.log(am(e),am(r))},t.wbg.__wbindgen_throw=function(e,r){throw new Error(jm(e,r))},t}function Vj(t,e){return co=t.exports,XE.__wbindgen_wasm_module=e,qd=null,$d=null,co}async function XE(t){if(co!==void 0)return co;const e=zj();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));const{instance:r,module:n}=await Uj(await t,e);return Vj(r,n)}var pa;(function(t){t[t.COPY_SRC=1]="COPY_SRC",t[t.COPY_DST=2]="COPY_DST",t[t.TEXTURE_BINDING=4]="TEXTURE_BINDING",t[t.STORAGE_BINDING=8]="STORAGE_BINDING",t[t.STORAGE=8]="STORAGE",t[t.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(pa||(pa={}));var Iv;(function(t){t[t.READ=1]="READ",t[t.WRITE=2]="WRITE"})(Iv||(Iv={}));function Hj(t){var e=0;return t&gs.SAMPLED&&(e|=pa.TEXTURE_BINDING|pa.COPY_DST|pa.COPY_SRC),t&gs.STORAGE&&(e|=pa.TEXTURE_BINDING|pa.STORAGE_BINDING|pa.COPY_SRC|pa.COPY_DST),t&gs.RENDER_TARGET&&(e|=pa.RENDER_ATTACHMENT|pa.TEXTURE_BINDING|pa.COPY_SRC|pa.COPY_DST),e}function k2(t){if(t===ze.U8_R_NORM)return"r8unorm";if(t===ze.S8_R_NORM)return"r8snorm";if(t===ze.U8_RG_NORM)return"rg8unorm";if(t===ze.S8_RG_NORM)return"rg8snorm";if(t===ze.U32_R)return"r32uint";if(t===ze.S32_R)return"r32sint";if(t===ze.F32_R)return"r32float";if(t===ze.U16_RG)return"rg16uint";if(t===ze.S16_RG)return"rg16sint";if(t===ze.F16_RG)return"rg16float";if(t===ze.U8_RGBA_RT)return"bgra8unorm";if(t===ze.U8_RGBA_RT_SRGB)return"bgra8unorm-srgb";if(t===ze.U8_RGBA_NORM)return"rgba8unorm";if(t===ze.U8_RGBA_SRGB)return"rgba8unorm-srgb";if(t===ze.S8_RGBA_NORM)return"rgba8snorm";if(t===ze.U32_RG)return"rg32uint";if(t===ze.S32_RG)return"rg32sint";if(t===ze.F32_RG)return"rg32float";if(t===ze.U16_RGBA)return"rgba16uint";if(t===ze.S16_RGBA)return"rgba16sint";if(t===ze.F16_RGBA)return"rgba16float";if(t===ze.F32_RGBA)return"rgba32float";if(t===ze.U32_RGBA)return"rgba32uint";if(t===ze.S32_RGBA)return"rgba32sint";if(t===ze.D24)return"depth24plus";if(t===ze.D24_S8)return"depth24plus-stencil8";if(t===ze.D32F)return"depth32float";if(t===ze.D32F_S8)return"depth32float-stencil8";if(t===ze.BC1)return"bc1-rgba-unorm";if(t===ze.BC1_SRGB)return"bc1-rgba-unorm-srgb";if(t===ze.BC2)return"bc2-rgba-unorm";if(t===ze.BC2_SRGB)return"bc2-rgba-unorm-srgb";if(t===ze.BC3)return"bc3-rgba-unorm";if(t===ze.BC3_SRGB)return"bc3-rgba-unorm-srgb";if(t===ze.BC4_SNORM)return"bc4-r-snorm";if(t===ze.BC4_UNORM)return"bc4-r-unorm";if(t===ze.BC5_SNORM)return"bc5-rg-snorm";if(t===ze.BC5_UNORM)return"bc5-rg-unorm";throw"whoops"}function jj(t){if(t===Un.TEXTURE_2D)return"2d";if(t===Un.TEXTURE_CUBE_MAP)return"2d";if(t===Un.TEXTURE_2D_ARRAY)return"2d";if(t===Un.TEXTURE_3D)return"3d";throw new Error("whoops")}function Xj(t){if(t===Un.TEXTURE_2D)return"2d";if(t===Un.TEXTURE_CUBE_MAP)return"cube";if(t===Un.TEXTURE_2D_ARRAY)return"2d-array";if(t===Un.TEXTURE_3D)return"3d";throw new Error("whoops")}function Wj(t){var e=0;return t&Si.INDEX&&(e|=GPUBufferUsage.INDEX),t&Si.VERTEX&&(e|=GPUBufferUsage.VERTEX),t&Si.UNIFORM&&(e|=GPUBufferUsage.UNIFORM),t&Si.STORAGE&&(e|=GPUBufferUsage.STORAGE),t&Si.COPY_SRC&&(e|=GPUBufferUsage.COPY_SRC),t&Si.INDIRECT&&(e|=GPUBufferUsage.INDIRECT),e|=GPUBufferUsage.COPY_DST,e}function Sg(t){if(t===Ms.CLAMP_TO_EDGE)return"clamp-to-edge";if(t===Ms.REPEAT)return"repeat";if(t===Ms.MIRRORED_REPEAT)return"mirror-repeat";throw new Error("whoops")}function Yx(t){if(t===wo.BILINEAR)return"linear";if(t===wo.POINT)return"nearest";throw new Error("whoops")}function Gj(t){if(t===da.LINEAR)return"linear";if(t===da.NEAREST)return"nearest";if(t===da.NO_MIP)return"nearest";throw new Error("whoops")}function lp(t){var e=t;return e.gpuBuffer}function Zj(t){var e=t;return e.gpuSampler}function $j(t){var e=t;return e.querySet}function qj(t){if(t===km.OcclusionConservative)return"occlusion";throw new Error("whoops")}function Yj(t){switch(t){case Yo.TRIANGLES:return"triangle-list";case Yo.POINTS:return"point-list";case Yo.TRIANGLE_STRIP:return"triangle-strip";case Yo.LINES:return"line-list";case Yo.LINE_STRIP:return"line-strip";default:throw new Error("Unknown primitive topology mode")}}function Kj(t){if(t===rl.NONE)return"none";if(t===rl.FRONT)return"front";if(t===rl.BACK)return"back";throw new Error("whoops")}function Qj(t){if(t===E3.CCW)return"ccw";if(t===E3.CW)return"cw";throw new Error("whoops")}function Jj(t,e){return{topology:Yj(t),cullMode:Kj(e.cullMode),frontFace:Qj(e.frontFace)}}function Kx(t){if(t===kn.ZERO)return"zero";if(t===kn.ONE)return"one";if(t===kn.SRC)return"src";if(t===kn.ONE_MINUS_SRC)return"one-minus-src";if(t===kn.DST)return"dst";if(t===kn.ONE_MINUS_DST)return"one-minus-dst";if(t===kn.SRC_ALPHA)return"src-alpha";if(t===kn.ONE_MINUS_SRC_ALPHA)return"one-minus-src-alpha";if(t===kn.DST_ALPHA)return"dst-alpha";if(t===kn.ONE_MINUS_DST_ALPHA)return"one-minus-dst-alpha";if(t===kn.CONST)return"constant";if(t===kn.ONE_MINUS_CONSTANT)return"one-minus-constant";if(t===kn.SRC_ALPHA_SATURATE)return"src-alpha-saturated";throw new Error("whoops")}function eX(t){if(t===Ra.ADD)return"add";if(t===Ra.SUBSTRACT)return"subtract";if(t===Ra.REVERSE_SUBSTRACT)return"reverse-subtract";if(t===Ra.MIN)return"min";if(t===Ra.MAX)return"max";throw new Error("whoops")}function Qx(t){return{operation:eX(t.blendMode),srcFactor:Kx(t.blendSrcFactor),dstFactor:Kx(t.blendDstFactor)}}function Jx(t){return t.blendMode===Ra.ADD&&t.blendSrcFactor===kn.ONE&&t.blendDstFactor===kn.ZERO}function tX(t){if(!(Jx(t.rgbBlendState)&&Jx(t.alphaBlendState)))return{color:Qx(t.rgbBlendState),alpha:Qx(t.alphaBlendState)}}function rX(t,e){return{format:k2(e),blend:tX(t),writeMask:t.channelWriteMask}}function nX(t,e){return e.attachmentsState.map(function(r,n){return rX(r,t[n])})}function lm(t){if(t===ui.NEVER)return"never";if(t===ui.LESS)return"less";if(t===ui.EQUAL)return"equal";if(t===ui.LEQUAL)return"less-equal";if(t===ui.GREATER)return"greater";if(t===ui.NOTEQUAL)return"not-equal";if(t===ui.GEQUAL)return"greater-equal";if(t===ui.ALWAYS)return"always";throw new Error("whoops")}function Qf(t){if(t===fo.KEEP)return"keep";if(t===fo.REPLACE)return"replace";if(t===fo.ZERO)return"zero";if(t===fo.DECREMENT_CLAMP)return"decrement-clamp";if(t===fo.DECREMENT_WRAP)return"decrement-wrap";if(t===fo.INCREMENT_CLAMP)return"increment-clamp";if(t===fo.INCREMENT_WRAP)return"increment-wrap";if(t===fo.INVERT)return"invert";throw new Error("whoops")}function iX(t,e){if(!cu(t))return{format:k2(t),depthWriteEnabled:!!e.depthWrite,depthCompare:lm(e.depthCompare),depthBias:e.polygonOffset?e.polygonOffsetUnits:0,depthBiasSlopeScale:e.polygonOffset?e.polygonOffsetFactor:0,stencilFront:{compare:lm(e.stencilFront.compare),passOp:Qf(e.stencilFront.passOp),failOp:Qf(e.stencilFront.failOp),depthFailOp:Qf(e.stencilFront.depthFailOp)},stencilBack:{compare:lm(e.stencilBack.compare),passOp:Qf(e.stencilBack.passOp),failOp:Qf(e.stencilBack.failOp),depthFailOp:Qf(e.stencilBack.depthFailOp)},stencilReadMask:4294967295,stencilWriteMask:4294967295}}function oX(t){if(t!==null){if(t===ze.U16_R)return"uint16";if(t===ze.U32_R)return"uint32";throw new Error("whoops")}}function aX(t){if(t===rf.VERTEX)return"vertex";if(t===rf.INSTANCE)return"instance";throw new Error("whoops")}function sX(t){if(t===ze.U8_R)return"uint8x2";if(t===ze.U8_RG)return"uint8x2";if(t===ze.U8_RGB)return"uint8x4";if(t===ze.U8_RGBA)return"uint8x4";if(t===ze.U8_RG_NORM)return"unorm8x2";if(t===ze.U8_RGBA_NORM)return"unorm8x4";if(t===ze.S8_RGB_NORM)return"snorm8x4";if(t===ze.S8_RGBA_NORM)return"snorm8x4";if(t===ze.U16_RG_NORM)return"unorm16x2";if(t===ze.U16_RGBA_NORM)return"unorm16x4";if(t===ze.S16_RG_NORM)return"snorm16x2";if(t===ze.S16_RGBA_NORM)return"snorm16x4";if(t===ze.S16_RG)return"uint16x2";if(t===ze.F16_RG)return"float16x2";if(t===ze.F16_RGBA)return"float16x4";if(t===ze.F32_R)return"float32";if(t===ze.F32_RG)return"float32x2";if(t===ze.F32_RGB)return"float32x3";if(t===ze.F32_RGBA)return"float32x4";throw"whoops"}function lX(t){var e=vc(t);switch(e){case Tt.BC1:case Tt.BC2:case Tt.BC3:case Tt.BC4_SNORM:case Tt.BC4_UNORM:case Tt.BC5_SNORM:case Tt.BC5_UNORM:return!0;default:return!1}}function uX(t){var e=vc(t);switch(e){case Tt.BC1:case Tt.BC2:case Tt.BC3:case Tt.BC4_SNORM:case Tt.BC4_UNORM:case Tt.BC5_SNORM:case Tt.BC5_UNORM:return 4;default:return 1}}function e8(t,e,r,n){switch(r===void 0&&(r=!1),t){case ze.S8_R:case ze.S8_R_NORM:case ze.S8_RG_NORM:case ze.S8_RGB_NORM:case ze.S8_RGBA_NORM:{var a=e instanceof ArrayBuffer?new Int8Array(e):new Int8Array(e);return n&&a.set(new Int8Array(n)),a}case ze.U8_R:case ze.U8_R_NORM:case ze.U8_RG:case ze.U8_RG_NORM:case ze.U8_RGB:case ze.U8_RGB_NORM:case ze.U8_RGB_SRGB:case ze.U8_RGBA:case ze.U8_RGBA_NORM:case ze.U8_RGBA_SRGB:{var l=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e);return n&&l.set(new Uint8Array(n)),l}case ze.S16_R:case ze.S16_RG:case ze.S16_RG_NORM:case ze.S16_RGB_NORM:case ze.S16_RGBA:case ze.S16_RGBA_NORM:{var o=e instanceof ArrayBuffer?new Int16Array(e):new Int16Array(r?e/2:e);return n&&o.set(new Int16Array(n)),o}case ze.U16_R:case ze.U16_RGB:case ze.U16_RGBA_5551:case ze.U16_RGBA_NORM:case ze.U16_RG_NORM:case ze.U16_R_NORM:{var p=e instanceof ArrayBuffer?new Uint16Array(e):new Uint16Array(r?e/2:e);return n&&p.set(new Uint16Array(n)),p}case ze.S32_R:{var m=e instanceof ArrayBuffer?new Int32Array(e):new Int32Array(r?e/4:e);return n&&m.set(new Int32Array(n)),m}case ze.U32_R:case ze.U32_RG:{var v=e instanceof ArrayBuffer?new Uint32Array(e):new Uint32Array(r?e/4:e);return n&&v.set(new Uint32Array(n)),v}case ze.F32_R:case ze.F32_RG:case ze.F32_RGB:case ze.F32_RGBA:{var E=e instanceof ArrayBuffer?new Float32Array(e):new Float32Array(r?e/4:e);return n&&E.set(new Float32Array(n)),E}}var b=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e);return n&&b.set(new Uint8Array(n)),b}function cX(t){var e=(t&32768)>>15,r=(t&31744)>>10,n=t&1023;return r===0?(e?-1:1)*Math.pow(2,-14)*(n/Math.pow(2,10)):r==31?n?NaN:(e?-1:1)*(1/0):(e?-1:1)*Math.pow(2,r-15)*(1+n/Math.pow(2,10))}function WE(t){switch(t){case"r8unorm":case"r8snorm":case"r8uint":case"r8sint":return{width:1,height:1,length:1};case"r16uint":case"r16sint":case"r16float":case"rg8unorm":case"rg8snorm":case"rg8uint":case"rg8sint":return{width:1,height:1,length:2};case"r32uint":case"r32sint":case"r32float":case"rg16uint":case"rg16sint":case"rg16float":case"rgba8unorm":case"rgba8unorm-srgb":case"rgba8snorm":case"rgba8uint":case"rgba8sint":case"bgra8unorm":case"bgra8unorm-srgb":case"rgb9e5ufloat":case"rgb10a2unorm":case"rg11b10ufloat":return{width:1,height:1,length:4};case"rg32uint":case"rg32sint":case"rg32float":case"rgba16uint":case"rgba16sint":case"rgba16float":return{width:1,height:1,length:8};case"rgba32uint":case"rgba32sint":case"rgba32float":return{width:1,height:1,length:16};case"stencil8":throw new Error("No fixed size for Stencil8 format!");case"depth16unorm":return{width:1,height:1,length:2};case"depth24plus":throw new Error("No fixed size for Depth24Plus format!");case"depth24plus-stencil8":throw new Error("No fixed size for Depth24PlusStencil8 format!");case"depth32float":return{width:1,height:1,length:4};case"depth32float-stencil8":return{width:1,height:1,length:5};case"bc7-rgba-unorm":case"bc7-rgba-unorm-srgb":case"bc6h-rgb-ufloat":case"bc6h-rgb-float":case"bc2-rgba-unorm":case"bc2-rgba-unorm-srgb":case"bc3-rgba-unorm":case"bc3-rgba-unorm-srgb":case"bc5-rg-unorm":case"bc5-rg-snorm":return{width:4,height:4,length:16};case"bc4-r-unorm":case"bc4-r-snorm":case"bc1-rgba-unorm":case"bc1-rgba-unorm-srgb":return{width:4,height:4,length:8};default:return{width:1,height:1,length:4}}}var zu=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=t.call(this)||this;return l.id=n,l.device=a,l}return e.prototype.destroy=function(){},e}(ME),hX=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o,p,m=t.call(this,{id:n,device:a})||this;m.type=Jn.Bindings;var v=l.pipeline;gn(!!v);var E=l.uniformBufferBindings,b=l.storageBufferBindings,A=l.samplerBindings,R=l.storageTextureBindings;m.numUniformBuffers=(E==null?void 0:E.length)||0;var O=[[],[],[],[]],D=0;if(E&&E.length)for(var N=0;Nb;)this.device.device.queue.writeBuffer(o,r+A,n.buffer,p+A,b),A+=b;this.device.device.queue.writeBuffer(o,r+A,n.buffer,p+A,l-A)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gpuBuffer.destroy()},e}(zu),t8=function(){function t(){this.gpuComputePassEncoder=null}return t.prototype.dispatchWorkgroups=function(e,r,n){this.gpuComputePassEncoder.dispatchWorkgroups(e,r,n)},t.prototype.dispatchWorkgroupsIndirect=function(e,r){this.gpuComputePassEncoder.dispatchWorkgroupsIndirect(e.gpuBuffer,r)},t.prototype.finish=function(){this.gpuComputePassEncoder.end(),this.gpuComputePassEncoder=null,this.frameCommandEncoder=null},t.prototype.beginComputePass=function(e){gn(this.gpuComputePassEncoder===null),this.frameCommandEncoder=e,this.gpuComputePassEncoder=this.frameCommandEncoder.beginComputePass(this.gpuComputePassDescriptor)},t.prototype.setPipeline=function(e){var r=e,n=Gh(r.gpuComputePipeline);this.gpuComputePassEncoder.setPipeline(n)},t.prototype.setBindings=function(e){var r=this,n=e;n.gpuBindGroup.forEach(function(a,l){a&&r.gpuComputePassEncoder.setBindGroup(l,n.gpuBindGroup[l])})},t.prototype.pushDebugGroup=function(e){this.gpuComputePassEncoder.pushDebugGroup(e)},t.prototype.popDebugGroup=function(){this.gpuComputePassEncoder.popDebugGroup()},t.prototype.insertDebugMarker=function(e){this.gpuComputePassEncoder.insertDebugMarker(e)},t}(),pX=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o=t.call(this,{id:n,device:a})||this;o.type=Jn.ComputePipeline,o.gpuComputePipeline=null,o.descriptor=l;var p=l.program,m=p.computeStage;if(m===null)return o;var v={layout:"auto",compute:zo({},m)};return o.gpuComputePipeline=o.device.device.createComputePipeline(v),o.name!==void 0&&(o.gpuComputePipeline.label=o.name),o}return e.prototype.getBindGroupLayout=function(r){return this.gpuComputePipeline.getBindGroupLayout(r)},e}(zu),dX=function(t){po(e,t);function e(r){var n,a,l,o,p=r.id,m=r.device,v=r.descriptor,E=t.call(this,{id:p,device:m})||this;E.type=Jn.InputLayout;var b=[];try{for(var A=qh(v.vertexBufferDescriptors),R=A.next();!R.done;R=A.next()){var O=R.value,D=O.arrayStride,N=O.stepMode,W=O.attributes;b.push({arrayStride:D,stepMode:aX(N),attributes:[]});try{for(var G=(l=void 0,qh(W)),Y=G.next();!Y.done;Y=G.next()){var Q=Y.value,J=Q.shaderLocation,Se=Q.format,ce=Q.offset;b[b.length-1].attributes.push({shaderLocation:J,format:sX(Se),offset:ce})}}catch(ke){l={error:ke}}finally{try{Y&&!Y.done&&(o=G.return)&&o.call(G)}finally{if(l)throw l.error}}}}catch(ke){n={error:ke}}finally{try{R&&!R.done&&(a=A.return)&&a.call(A)}finally{if(n)throw n.error}}return E.indexFormat=oX(v.indexBufferFormat),E.buffers=b,E}return e}(zu),r8=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o=t.call(this,{id:n,device:a})||this;return o.type=Jn.Program,o.vertexStage=null,o.fragmentStage=null,o.computeStage=null,o.descriptor=l,l.vertex&&(o.vertexStage=o.createShaderStage(l.vertex,"vertex")),l.fragment&&(o.fragmentStage=o.createShaderStage(l.fragment,"fragment")),l.compute&&(o.computeStage=o.createShaderStage(l.compute,"compute")),o}return e.prototype.setUniformsLegacy=function(r){},e.prototype.createShaderStage=function(r,n){var a,l,o=r.glsl,p=r.wgsl,m=r.entryPoint,v=r.postprocess,E=!1,b=p;if(!b)try{b=this.device.glsl_compile(o,n,E)}catch(W){throw console.error(W,o),new Error("whoops")}var A=function(W){if(!b.includes(W))return"continue";b=b.replace("var T_".concat(W,": texture_2d;"),"var T_".concat(W,": texture_depth_2d;")),b=b.replace(new RegExp("textureSample\\(T_".concat(W,"(.*)\\);$"),"gm"),function(G,Y){return"vec4(textureSample(T_".concat(W).concat(Y,"), 0.0, 0.0, 0.0);")})};try{for(var R=qh(["u_TextureFramebufferDepth"]),O=R.next();!O.done;O=R.next()){var D=O.value;A(D)}}catch(W){a={error:W}}finally{try{O&&!O.done&&(l=R.return)&&l.call(R)}finally{if(a)throw a.error}}v&&(b=v(b));var N=this.device.device.createShaderModule({code:b});return{module:N,entryPoint:m||"main"}},e}(zu),mX=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o=t.call(this,{id:n,device:a})||this;o.type=Jn.QueryPool;var p=l.elemCount,m=l.type;return o.querySet=o.device.device.createQuerySet({type:qj(m),count:p}),o.resolveBuffer=o.device.device.createBuffer({size:p*8,usage:GPUBufferUsage.QUERY_RESOLVE|GPUBufferUsage.COPY_SRC}),o.cpuBuffer=o.device.device.createBuffer({size:p*8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),o.results=null,o}return e.prototype.queryResultOcclusion=function(r){return this.results===null?null:this.results[r]!==BigInt(0)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.querySet.destroy(),this.resolveBuffer.destroy(),this.cpuBuffer.destroy()},e}(zu),_X=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=t.call(this,{id:n,device:a})||this;return l.type=Jn.Readback,l}return e.prototype.readTexture=function(r,n,a,l,o,p,m,v){return m===void 0&&(m=0),up(this,void 0,void 0,function(){var E,b,A,R,O,D,N,W;return cp(this,function(G){return E=r,b=0,A=WE(E.gpuTextureformat),R=Math.ceil(l/A.width)*A.length,O=Math.ceil(R/256)*256,D=O*o,N=this.device.createBuffer({usage:Si.STORAGE|Si.MAP_READ|Si.COPY_DST,hint:Uu.STATIC,viewOrSize:D}),W=this.device.device.createCommandEncoder(),W.copyTextureToBuffer({texture:E.gpuTexture,mipLevel:0,origin:{x:n,y:a,z:Math.max(b,0)}},{buffer:N.gpuBuffer,offset:0,bytesPerRow:O},{width:l,height:o,depthOrArrayLayers:1}),this.device.device.queue.submit([W.finish()]),[2,this.readBuffer(N,0,p.byteLength===D?p:null,m,D,E.format,!0,!1,R,O,o)]})})},e.prototype.readTextureSync=function(r,n,a,l,o,p,m,v){throw new Error("ERROR_MSG_METHOD_NOT_IMPLEMENTED")},e.prototype.readBuffer=function(r,n,a,l,o,p,m,v,E,b,A){var R=this;n===void 0&&(n=0),a===void 0&&(a=null),o===void 0&&(o=0),p===void 0&&(p=ze.U8_RGB),m===void 0&&(m=!1),E===void 0&&(E=0),b===void 0&&(b=0),A===void 0&&(A=0);var O=r,D=o||O.size,N=a||O.view,W=N&&N.constructor&&N.constructor.BYTES_PER_ELEMENT||OE(p),G=O;if(!(O.usage&Si.MAP_READ&&O.usage&Si.COPY_DST)){var Y=this.device.device.createCommandEncoder();G=this.device.createBuffer({usage:Si.STORAGE|Si.MAP_READ|Si.COPY_DST,hint:Uu.STATIC,viewOrSize:D}),Y.copyBufferToBuffer(O.gpuBuffer,n,G.gpuBuffer,0,D),this.device.device.queue.submit([Y.finish()])}return new Promise(function(Q,J){G.gpuBuffer.mapAsync(Iv.READ,n,D).then(function(){var Se=G.gpuBuffer.getMappedRange(n,D),ce=N;if(m)ce===null?ce=e8(p,D,!0,Se):ce=e8(p,ce.buffer,void 0,Se);else if(ce===null)switch(W){case 1:ce=new Uint8Array(D),ce.set(new Uint8Array(Se));break;case 2:ce=R.getHalfFloatAsFloatRGBAArrayBuffer(D/2,Se);break;case 4:ce=new Float32Array(D/4),ce.set(new Float32Array(Se));break}else switch(W){case 1:ce=new Uint8Array(ce.buffer),ce.set(new Uint8Array(Se));break;case 2:ce=R.getHalfFloatAsFloatRGBAArrayBuffer(D/2,Se,N);break;case 4:var ke=N&&N.constructor||Float32Array;ce=new ke(ce.buffer),ce.set(new ke(Se));break}if(E!==b){W===1&&!m&&(E*=2,b*=2);for(var ct=new Uint8Array(ce.buffer),Ve=E,Te=0,Fe=1;Fe1?A.resolveTarget=this.getTextureView(b,this.gfxColorResolveToLevel[v]):A.storeOp="store")}else{this.gpuColorAttachments.length=v,this.gfxColorAttachment.length=v,this.gfxColorResolveTo.length=v;break}}if(this.gfxDepthStencilAttachment=e.depthStencilAttachment,this.gfxDepthStencilResolveTo=e.depthStencilResolveTo,e.depthStencilAttachment){var O=e.depthStencilAttachment,A=this.gpuDepthStencilAttachment;A.view=O.gpuTextureView;var D=!!(Ip(O.format)&hr.Depth);D?(e.depthClearValue==="load"?A.depthLoadOp="load":(A.depthLoadOp="clear",A.depthClearValue=e.depthClearValue),e.depthStencilStore||this.gfxDepthStencilResolveTo!==null?A.depthStoreOp="store":A.depthStoreOp="discard"):(A.depthLoadOp=void 0,A.depthStoreOp=void 0);var N=!!(Ip(O.format)&hr.Stencil);N?(e.stencilClearValue==="load"?A.stencilLoadOp="load":(A.stencilLoadOp="clear",A.stencilClearValue=e.stencilClearValue),e.depthStencilStore||this.gfxDepthStencilResolveTo!==null?A.stencilStoreOp="store":A.stencilStoreOp="discard"):(A.stencilLoadOp=void 0,A.stencilStoreOp=void 0),this.gpuRenderPassDescriptor.depthStencilAttachment=this.gpuDepthStencilAttachment}else this.gpuRenderPassDescriptor.depthStencilAttachment=void 0;this.gpuRenderPassDescriptor.occlusionQuerySet=cu(e.occlusionQueryPool)?void 0:$j(e.occlusionQueryPool)},t.prototype.beginRenderPass=function(e,r){gn(this.gpuRenderPassEncoder===null),this.setRenderPassDescriptor(r),this.frameCommandEncoder=e,this.gpuRenderPassEncoder=this.frameCommandEncoder.beginRenderPass(this.gpuRenderPassDescriptor)},t.prototype.flipY=function(e,r){var n=this.device.swapChainHeight;return n-e-r},t.prototype.setViewport=function(e,r,n,a,l,o){l===void 0&&(l=0),o===void 0&&(o=1),this.gpuRenderPassEncoder.setViewport(e,this.flipY(r,a),n,a,l,o)},t.prototype.setScissorRect=function(e,r,n,a){this.gpuRenderPassEncoder.setScissorRect(e,this.flipY(r,a),n,a)},t.prototype.setPipeline=function(e){var r=e,n=Gh(r.gpuRenderPipeline);this.getEncoder().setPipeline(n)},t.prototype.setVertexInput=function(e,r,n){if(e!==null){var a=this.getEncoder(),l=e;n!==null&&a.setIndexBuffer(lp(n.buffer),Gh(l.indexFormat),n.offset);for(var o=0;o1||this.copyAttachment(this.gfxDepthStencilResolveTo,0,this.gfxDepthStencilAttachment,0)),this.frameCommandEncoder=null},t.prototype.copyAttachment=function(e,r,n,a){gn(n.sampleCount===1);var l={texture:n.gpuTexture,mipLevel:a},o={texture:e.gpuTexture,mipLevel:r};gn(n.width>>>a===e.width>>>r),gn(n.height>>>a===e.height>>>r),gn(!!(n.usage&pa.COPY_SRC)),gn(!!(e.usage&pa.COPY_DST)),this.frameCommandEncoder.copyTextureToTexture(l,o,[e.width,e.height,1])},t}(),gX=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o=t.call(this,{id:n,device:a})||this;return o.type=Jn.RenderPipeline,o.isCreatingAsync=!1,o.gpuRenderPipeline=null,o.descriptor=l,o.device.createRenderPipelineInternal(o,!1),o}return e.prototype.getBindGroupLayout=function(r){return this.gpuRenderPipeline.getBindGroupLayout(r)},e}(zu),vX=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o,p,m=t.call(this,{id:n,device:a})||this;m.type=Jn.Sampler;var v=l.lodMinClamp,E=l.mipmapFilter===da.NO_MIP?l.lodMinClamp:l.lodMaxClamp,b=(o=l.maxAnisotropy)!==null&&o!==void 0?o:1;return b>1&&gn(l.minFilter===wo.BILINEAR&&l.magFilter===wo.BILINEAR&&l.mipmapFilter===da.LINEAR),m.gpuSampler=m.device.device.createSampler({addressModeU:Sg(l.addressModeU),addressModeV:Sg(l.addressModeV),addressModeW:Sg((p=l.addressModeW)!==null&&p!==void 0?p:l.addressModeU),lodMinClamp:v,lodMaxClamp:E,minFilter:Yx(l.minFilter),magFilter:Yx(l.magFilter),mipmapFilter:Gj(l.mipmapFilter),compare:l.compareFunction!==void 0?lm(l.compareFunction):void 0,maxAnisotropy:b}),m}return e}(zu),H0=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o=r.skipCreate,p=r.sampleCount,m=t.call(this,{id:n,device:a})||this;m.type=Jn.Texture,m.flipY=!1;var v=l.format,E=l.dimension,b=l.width,A=l.height,R=l.depthOrArrayLayers,O=l.mipLevelCount,D=l.usage,N=l.pixelStore;return m.flipY=!!(N!=null&&N.unpackFlipY),m.device.createTextureShared({format:v,dimension:E??Un.TEXTURE_2D,width:b,height:A,depthOrArrayLayers:R??1,mipLevelCount:O??1,usage:D,sampleCount:p??1},m,o),m}return e.prototype.textureFromImageBitmapOrCanvas=function(r,n,a){for(var l=n[0].width,o=n[0].height,p={size:{width:l,height:o,depthOrArrayLayers:a},format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT},m=r.createTexture(p),v=0;v>>2,uniformBufferWordAlignment:this.device.limits.minUniformBufferOffsetAlignment>>>2,supportedSampleCounts:[1],occlusionQueriesRecommended:!0,computeShadersSupported:!0}},t.prototype.queryTextureFormatSupported=function(e,r,n){if(lX(e)){if(!this.featureTextureCompressionBC)return!1;var a=uX(e);return r%a!==0||n%a!==0?!1:this.featureTextureCompressionBC}switch(e){case ze.U16_RGBA_NORM:return!1;case ze.F32_RGBA:return!1}return!0},t.prototype.queryPlatformAvailable=function(){return!0},t.prototype.queryVendorInfo=function(){return this},t.prototype.queryRenderPass=function(e){var r=e;return r.descriptor},t.prototype.queryRenderTarget=function(e){var r=e;return r},t.prototype.setResourceName=function(e,r){if(e.name=r,e.type===Jn.Buffer){var n=e;n.gpuBuffer.label=r}else if(e.type===Jn.Texture){var n=e;n.gpuTexture.label=r,n.gpuTextureView.label=r}else if(e.type===Jn.RenderTarget){var n=e;n.gpuTexture.label=r,n.gpuTextureView.label=r}else if(e.type===Jn.Sampler){var n=e;n.gpuSampler.label=r}else if(e.type===Jn.RenderPipeline){var n=e;n.gpuRenderPipeline!==null&&(n.gpuRenderPipeline.label=r)}},t.prototype.setResourceLeakCheck=function(e,r){},t.prototype.checkForLeaks=function(){},t.prototype.programPatched=function(e){},t.prototype.pipelineQueryReady=function(e){var r=e;return r.gpuRenderPipeline!==null},t.prototype.pipelineForceReady=function(e){var r=e;this.createRenderPipelineInternal(r,!1)},t}(),bX=function(){function t(e){this.pluginOptions=e}return t.prototype.createSwapChain=function(e){return up(this,void 0,void 0,function(){var r,n,a,l,o,p,m,v;return cp(this,function(E){switch(E.label){case 0:if(globalThis.navigator.gpu===void 0)return[2,null];r=null,E.label=1;case 1:return E.trys.push([1,3,,4]),n=this.pluginOptions.xrCompatible,[4,globalThis.navigator.gpu.requestAdapter({xrCompatible:n})];case 2:return r=E.sent(),[3,4];case 3:return a=E.sent(),console.log(a),[3,4];case 4:return r===null?[2,null]:(l=["depth32float-stencil8","texture-compression-bc","float32-filterable"],o=l.filter(function(b){return r.features.has(b)}),[4,r.requestDevice({requiredFeatures:o})]);case 5:if(p=E.sent(),p&&(m=this.pluginOptions.onContextLost,p.lost.then(function(){m&&m()})),p===null)return[2,null];if(v=e.getContext("webgpu"),!v)return[2,null];E.label=6;case 6:return E.trys.push([6,8,,9]),[4,XE(this.pluginOptions.shaderCompilerPath)];case 7:return E.sent(),[3,9];case 8:return E.sent(),[3,9];case 9:return[2,new xX(r,p,e,v,kj,T3&&new T3)]}})})},t}(),EX=class{constructor(t,e){const{buffer:r,offset:n,stride:a,normalized:l,size:o,divisor:p,shaderLocation:m}=e;this.buffer=r,this.attribute={shaderLocation:m,buffer:r.get(),offset:n||0,stride:a||0,normalized:l||!1,divisor:p||0},o&&(this.attribute.size=o)}get(){return this.buffer}updateBuffer(t){this.buffer.subData(t)}destroy(){this.buffer.destroy()}},Gm={[H.FLOAT]:Float32Array,[H.UNSIGNED_BYTE]:Uint8Array,[H.SHORT]:Int16Array,[H.UNSIGNED_SHORT]:Uint16Array,[H.INT]:Int32Array,[H.UNSIGNED_INT]:Uint32Array},TX={[H.POINTS]:Yo.POINTS,[H.LINES]:Yo.LINES,[H.LINE_LOOP]:Yo.LINES,[H.LINE_STRIP]:Yo.LINE_STRIP,[H.TRIANGLES]:Yo.TRIANGLES,[H.TRIANGLE_FAN]:Yo.TRIANGLES,[H.TRIANGLE_STRIP]:Yo.TRIANGLE_STRIP},AX={1:ze.F32_R,2:ze.F32_RG,3:ze.F32_RGB,4:ze.F32_RGBA},SX={[H.STATIC_DRAW]:Uu.STATIC,[H.DYNAMIC_DRAW]:Uu.DYNAMIC,[H.STREAM_DRAW]:Uu.DYNAMIC},i8={[H.REPEAT]:Ms.REPEAT,[H.CLAMP_TO_EDGE]:Ms.CLAMP_TO_EDGE,[H.MIRRORED_REPEAT]:Ms.MIRRORED_REPEAT},wX={[H.NEVER]:ui.NEVER,[H.ALWAYS]:ui.ALWAYS,[H.LESS]:ui.LESS,[H.LEQUAL]:ui.LEQUAL,[H.GREATER]:ui.GREATER,[H.GEQUAL]:ui.GEQUAL,[H.EQUAL]:ui.EQUAL,[H.NOTEQUAL]:ui.NOTEQUAL},CX={[H.FRONT]:rl.FRONT,[H.BACK]:rl.BACK},o8={[H.FUNC_ADD]:Ra.ADD,[H.MIN_EXT]:Ra.MIN,[H.MAX_EXT]:Ra.MAX,[H.FUNC_SUBTRACT]:Ra.SUBSTRACT,[H.FUNC_REVERSE_SUBTRACT]:Ra.REVERSE_SUBSTRACT},j0={[H.ZERO]:kn.ZERO,[H.ONE]:kn.ONE,[H.SRC_COLOR]:kn.SRC,[H.ONE_MINUS_SRC_COLOR]:kn.ONE_MINUS_SRC,[H.SRC_ALPHA]:kn.SRC_ALPHA,[H.ONE_MINUS_SRC_ALPHA]:kn.ONE_MINUS_SRC_ALPHA,[H.DST_COLOR]:kn.DST,[H.ONE_MINUS_DST_COLOR]:kn.ONE_MINUS_DST,[H.DST_ALPHA]:kn.DST_ALPHA,[H.ONE_MINUS_DST_ALPHA]:kn.ONE_MINUS_DST_ALPHA,[H.CONSTANT_COLOR]:kn.CONST,[H.ONE_MINUS_CONSTANT_COLOR]:kn.ONE_MINUS_CONSTANT,[H.CONSTANT_ALPHA]:kn.CONST,[H.ONE_MINUS_CONSTANT_ALPHA]:kn.ONE_MINUS_CONSTANT,[H.SRC_ALPHA_SATURATE]:kn.SRC_ALPHA_SATURATE},Jf={[H.REPLACE]:fo.REPLACE,[H.KEEP]:fo.KEEP,[H.ZERO]:fo.ZERO,[H.INVERT]:fo.INVERT,[H.INCR]:fo.INCREMENT_CLAMP,[H.DECR]:fo.DECREMENT_CLAMP,[H.INCR_WRAP]:fo.INCREMENT_WRAP,[H.DECR_WRAP]:fo.DECREMENT_WRAP},RX={[H.ALWAYS]:ui.ALWAYS,[H.EQUAL]:ui.EQUAL,[H.GEQUAL]:ui.GEQUAL,[H.GREATER]:ui.GREATER,[H.LEQUAL]:ui.LEQUAL,[H.LESS]:ui.LESS,[H.NEVER]:ui.NEVER,[H.NOTEQUAL]:ui.NOTEQUAL},IX={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121};function Zm(t){return Object.prototype.toString.call(t)in IX}function MX(t,e){const r=t.length,n=Math.ceil(r/3),a=r+n,l=new Float32Array(a);for(let o=0;o>>6,t>>>0}function GE(t){return t+=t<<3,t^=t>>>11,t+=t<<15,t>>>0}function a8(){return 0}var OX=class{constructor(){this.keys=[],this.values=[]}},X0=class{constructor(t,e){this.keyEqualFunc=t,this.keyHashFunc=e,this.buckets=new Map}findBucketIndex(t,e){for(let r=0;r=0;e--)yield t.values[e]}};function s8(t,e){return t=pi(t,e.blendMode),t=pi(t,e.blendSrcFactor),t=pi(t,e.blendDstFactor),t}function LX(t,e){return t=s8(t,e.rgbBlendState),t=s8(t,e.alphaBlendState),t=pi(t,e.channelWriteMask),t}function DX(t,e){return t=pi(t,e.r<<24|e.g<<16|e.b<<8|e.a),t}function BX(t,e){var r,n,a,l,o,p,m,v;for(let E=0;Ea&&a>0),r=this.device.createBindings(n),this.bindingsCache.add(n,r)}return r}createRenderPipeline(t){let e=this.renderPipelinesCache.get(t);if(e===null){const r=YH(t);r.colorAttachmentFormats=r.colorAttachmentFormats.filter(n=>n),e=this.device.createRenderPipeline(r),this.renderPipelinesCache.add(r,e)}return e}createInputLayout(t){t.vertexBufferDescriptors=t.vertexBufferDescriptors.filter(r=>!!r);let e=this.inputLayoutsCache.get(t);if(e===null){const r=JH(t);e=this.device.createInputLayout(r),this.inputLayoutsCache.add(r,e)}return e}createProgram(t){let e=this.programCache.get(t);if(e===null){const r=UX(t);e=this.device.createProgram(t),this.programCache.add(r,e)}return e}destroy(){for(const t of this.bindingsCache.values())t.destroy();for(const t of this.renderPipelinesCache.values())t.destroy();for(const t of this.inputLayoutsCache.values())t.destroy();for(const t of this.programCache.values())t.destroy();this.bindingsCache.clear(),this.renderPipelinesCache.clear(),this.inputLayoutsCache.clear(),this.programCache.clear()}},VX=class{constructor(t,e){const{data:r,type:n,count:a=0}=e;let l;Zm(r)?l=r:l=new Gm[this.type||H.UNSIGNED_INT](r),this.type=n,this.count=a,this.indexBuffer=t.createBuffer({viewOrSize:l,usage:Si.INDEX})}get(){return this.indexBuffer}subData({data:t}){let e;Zm(t)?e=t:e=new Gm[this.type||H.UNSIGNED_INT](t),this.indexBuffer.setSubData(0,new Uint8Array(e.buffer))}destroy(){this.indexBuffer.destroy()}};function l8(t){return!!(t&&t.texture)}var ZE=class{constructor(t,e){this.device=t,this.options=e,this.isDestroy=!1;const{wrapS:r=H.CLAMP_TO_EDGE,wrapT:n=H.CLAMP_TO_EDGE,aniso:a,mag:l=H.NEAREST,min:o=H.NEAREST}=e;this.createTexture(e),this.sampler=t.createSampler({addressModeU:i8[r],addressModeV:i8[n],minFilter:o===H.NEAREST?wo.POINT:wo.BILINEAR,magFilter:l===H.NEAREST?wo.POINT:wo.BILINEAR,mipmapFilter:da.NO_MIP,maxAnisotropy:a})}createTexture(t){const{type:e=H.UNSIGNED_BYTE,width:r,height:n,flipY:a=!1,format:l=H.RGBA,alignment:o=1,usage:p=u3.SAMPLED,unorm:m=!1,label:v}=t;let{data:E}=t;this.width=r,this.height=n;let b=ze.U8_RGBA_RT;if(e===H.UNSIGNED_BYTE&&l===H.RGBA)b=m?ze.U8_RGBA_NORM:ze.U8_RGBA_RT;else if(e===H.UNSIGNED_BYTE&&l===H.LUMINANCE)b=ze.U8_LUMINANCE;else if(e===H.FLOAT&&l===H.LUMINANCE)b=ze.F32_LUMINANCE;else if(e===H.FLOAT&&l===H.RGB)this.device.queryVendorInfo().platformString==="WebGPU"?(E&&(E=MX(E,0)),b=ze.F32_RGBA):b=ze.F32_RGB;else if(e===H.FLOAT&&l===H.RGBA)b=ze.F32_RGBA;else if(e===H.FLOAT&&l===H.RED)b=ze.F32_R;else throw new Error(`create texture error, type: ${e}, format: ${l}`);this.texture=this.device.createTexture({format:b,width:r,height:n,usage:p===u3.SAMPLED?gs.SAMPLED:gs.RENDER_TARGET,pixelStore:{unpackFlipY:a,packAlignment:o},mipLevelCount:1}),v&&this.device.setResourceName(this.texture,v),E&&this.texture.setImageData([E])}get(){return this.texture}update(t){const{data:e}=t;this.texture.setImageData([e])}bind(){}resize({width:t,height:e}){(this.width!==t||this.height!==e)&&this.destroy(),this.options.width=t,this.options.height=e,this.createTexture(this.options),this.isDestroy=!1}getSize(){return[this.width,this.height]}destroy(){var t;!this.isDestroy&&!this.texture.destroyed&&((t=this.texture)==null||t.destroy()),this.isDestroy=!0}},$E=class{constructor(t,e){this.device=t,this.options=e,this.createColorRenderTarget(),this.createDepthRenderTarget()}createColorRenderTarget(t=!1){const{width:e,height:r,color:n}=this.options;n&&(l8(n)?(t&&n.resize({width:e,height:r}),this.colorTexture=n.get(),this.colorRenderTarget=this.device.createRenderTargetFromTexture(this.colorTexture),this.width=n.width,this.height=n.height):e&&r&&(this.colorTexture=this.device.createTexture({format:ze.U8_RGBA_RT,usage:gs.RENDER_TARGET,width:e,height:r}),this.colorRenderTarget=this.device.createRenderTargetFromTexture(this.colorTexture),this.width=e,this.height=r))}createDepthRenderTarget(t=!1){const{width:e,height:r,depth:n}=this.options;n&&(l8(n)?(t&&n.resize({width:e,height:r}),this.depthTexture=n.get(),this.depthRenderTarget=this.device.createRenderTargetFromTexture(this.depthTexture),this.width=n.width,this.height=n.height):e&&r&&(this.depthTexture=this.device.createTexture({format:ze.D24_S8,usage:gs.RENDER_TARGET,width:e,height:r}),this.depthRenderTarget=this.device.createRenderTargetFromTexture(this.depthTexture),this.width=e,this.height=r))}get(){return this.colorRenderTarget}destroy(){var t,e;(t=this.colorRenderTarget)==null||t.destroy(),(e=this.depthRenderTarget)==null||e.destroy()}resize({width:t,height:e}){(this.width!==t||this.height!==e)&&(this.destroy(),this.colorTexture.destroyed=!0,this.depthTexture.destroyed=!0,this.options.width=t,this.options.height=e,this.createColorRenderTarget(!0),this.createDepthRenderTarget(!0))}},HX=Object.defineProperty,jX=Object.defineProperties,XX=Object.getOwnPropertyDescriptors,u8=Object.getOwnPropertySymbols,WX=Object.prototype.hasOwnProperty,GX=Object.prototype.propertyIsEnumerable,c8=(t,e,r)=>e in t?HX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Vh=(t,e)=>{for(var r in e||(e={}))WX.call(e,r)&&c8(t,r,e[r]);if(u8)for(var r of u8(e))GX.call(e,r)&&c8(t,r,e[r]);return t},ZX=(t,e)=>jX(t,XX(e)),{isPlainObject:$X,isTypedArray:qX,isNil:h8}=Ko,YX=class{constructor(t,e,r){this.device=t,this.options=e,this.service=r,this.destroyed=!1,this.uniforms={},this.vertexBuffers=[];const{vs:n,fs:a,attributes:l,uniforms:o,count:p,elements:m,diagnosticDerivativeUniformityEnabled:v}=e;this.options=e;const E=v?"":this.service.viewportOrigin===ku.UPPER_LEFT?"diagnostic(off,derivative_uniformity);":"";this.program=r.renderCache.createProgram({vertex:{glsl:n},fragment:{glsl:a,postprocess:O=>E+O}}),o&&(this.uniforms=this.extractUniforms(o));const b=[];let A=0;Object.keys(l).forEach(O=>{const D=l[O],N=D.get();this.vertexBuffers.push(N.get());const{offset:W=0,stride:G=0,size:Y=1,divisor:Q=0,shaderLocation:J=0}=D.attribute;b.push({arrayStride:G||Y*4,stepMode:rf.VERTEX,attributes:[{format:AX[Y],shaderLocation:J,offset:W,divisor:Q}]}),A=N.size/Y}),p||(this.options.count=A),m&&(this.indexBuffer=m.get());const R=r.renderCache.createInputLayout({vertexBufferDescriptors:b,indexBufferFormat:m?ze.U32_R:null,program:this.program});this.inputLayout=R,this.pipeline=this.createPipeline(e)}createPipeline(t,e){var r;const{primitive:n=H.TRIANGLES,depth:a,cull:l,blend:o,stencil:p}=t,m=this.initDepthDrawParams({depth:a}),v=!!(m&&m.enable),E=this.initCullDrawParams({cull:l}),b=!!(E&&E.enable),A=this.getBlendDrawParams({blend:o}),R=!!(A&&A.enable),O=this.getStencilDrawParams({stencil:p}),D=!!(O&&O.enable),N=this.device.createRenderPipeline({inputLayout:this.inputLayout,program:this.program,topology:TX[n],colorAttachmentFormats:[ze.U8_RGBA_RT],depthStencilAttachmentFormat:ze.D24_S8,megaStateDescriptor:{attachmentsState:[e?{channelWriteMask:wa.ALL,rgbBlendState:{blendMode:Ra.ADD,blendSrcFactor:kn.ONE,blendDstFactor:kn.ZERO},alphaBlendState:{blendMode:Ra.ADD,blendSrcFactor:kn.ONE,blendDstFactor:kn.ZERO}}:{channelWriteMask:D&&O.opFront.zpass===fo.REPLACE?wa.NONE:wa.ALL,rgbBlendState:{blendMode:R&&A.equation.rgb||Ra.ADD,blendSrcFactor:R&&A.func.srcRGB||kn.SRC_ALPHA,blendDstFactor:R&&A.func.dstRGB||kn.ONE_MINUS_SRC_ALPHA},alphaBlendState:{blendMode:R&&A.equation.alpha||Ra.ADD,blendSrcFactor:R&&A.func.srcAlpha||kn.ONE,blendDstFactor:R&&A.func.dstAlpha||kn.ONE}}],blendConstant:R?u_:void 0,depthWrite:v,depthCompare:v&&m.func||ui.LESS,cullMode:b&&E.face||rl.NONE,stencilWrite:D,stencilFront:{compare:D?O.func.cmp:ui.ALWAYS,passOp:O.opFront.zpass,failOp:O.opFront.fail,depthFailOp:O.opFront.zfail,mask:O.opFront.mask},stencilBack:{compare:D?O.func.cmp:ui.ALWAYS,passOp:O.opBack.zpass,failOp:O.opBack.fail,depthFailOp:O.opBack.zfail,mask:O.opBack.mask}}});return D&&!h8((r=p==null?void 0:p.func)==null?void 0:r.ref)&&(N.stencilFuncReference=p.func.ref),N}updateAttributesAndElements(){}updateAttributes(){}addUniforms(t){this.uniforms=Vh(Vh({},this.uniforms),this.extractUniforms(t))}draw(t,e){const r=Vh(Vh({},this.options),t),{count:n=0,instances:a,elements:l,uniforms:o={},uniformBuffers:p,textures:m}=r;this.uniforms=Vh(Vh({},this.uniforms),this.extractUniforms(o));const{renderPass:v,currentFramebuffer:E,width:b,height:A}=this.service;this.pipeline=this.createPipeline(r,e);const R=this.service.device,O=R.swapChainHeight;if(R.swapChainHeight=(E==null?void 0:E.height)||A,v.setViewport(0,0,(E==null?void 0:E.width)||b,(E==null?void 0:E.height)||A),R.swapChainHeight=O,v.setPipeline(this.pipeline),h8(this.pipeline.stencilFuncReference)||v.setStencilReference(this.pipeline.stencilFuncReference),v.setVertexInput(this.inputLayout,this.vertexBuffers.map(D=>({buffer:D})),l?{buffer:this.indexBuffer,offset:0}:null),p&&(this.bindings=R.createBindings({pipeline:this.pipeline,uniformBufferBindings:p.map((D,N)=>{const W=D;return{binding:N,buffer:W.get(),size:W.size}}),samplerBindings:m==null?void 0:m.map(D=>({texture:D.texture,sampler:D.sampler}))})),this.bindings&&(v.setBindings(this.bindings),Object.keys(this.uniforms).forEach(D=>{const N=this.uniforms[D];N instanceof ZE?this.uniforms[D]=N.get():N instanceof $E&&(this.uniforms[D]=N.get().texture)}),this.program.setUniformsLegacy(this.uniforms)),l){const D=l.count;D===0?v.draw(n,a):v.drawIndexed(D,a)}else v.draw(n,a)}destroy(){var t,e,r;(t=this.vertexBuffers)==null||t.forEach(n=>n.destroy()),(e=this.indexBuffer)==null||e.destroy(),(r=this.bindings)==null||r.destroy(),this.pipeline.destroy(),this.destroyed=!0}initDepthDrawParams({depth:t}){if(t)return{enable:t.enable===void 0?!0:!!t.enable,mask:t.mask===void 0?!0:!!t.mask,func:wX[t.func||H.LESS],range:t.range||[0,1]}}getBlendDrawParams({blend:t}){const{enable:e,func:r,equation:n,color:a=[0,0,0,0]}=t||{};return{enable:!!e,func:{srcRGB:j0[r&&r.srcRGB||H.SRC_ALPHA],srcAlpha:j0[r&&r.srcAlpha||H.SRC_ALPHA],dstRGB:j0[r&&r.dstRGB||H.ONE_MINUS_SRC_ALPHA],dstAlpha:j0[r&&r.dstAlpha||H.ONE_MINUS_SRC_ALPHA]},equation:{rgb:o8[n&&n.rgb||H.FUNC_ADD],alpha:o8[n&&n.alpha||H.FUNC_ADD]},color:a}}getStencilDrawParams({stencil:t}){const{enable:e,mask:r=4294967295,func:n={cmp:H.ALWAYS,ref:0,mask:4294967295},opFront:a={fail:H.KEEP,zfail:H.KEEP,zpass:H.KEEP},opBack:l={fail:H.KEEP,zfail:H.KEEP,zpass:H.KEEP}}=t||{};return{enable:!!e,mask:r,func:ZX(Vh({},n),{cmp:RX[n.cmp]}),opFront:{fail:Jf[a.fail],zfail:Jf[a.zfail],zpass:Jf[a.zpass],mask:n.mask},opBack:{fail:Jf[l.fail],zfail:Jf[l.zfail],zpass:Jf[l.zpass],mask:n.mask}}}initCullDrawParams({cull:t}){if(t){const{enable:e,face:r=H.BACK}=t;return{enable:!!e,face:CX[r]}}}extractUniforms(t){const e={};return Object.keys(t).forEach(r=>{this.extractUniformsRecursively(r,t[r],e,"")}),e}extractUniformsRecursively(t,e,r,n){if(e===null||typeof e=="number"||typeof e=="boolean"||Array.isArray(e)&&typeof e[0]=="number"||qX(e)||e===""||"resize"in e){r[`${n&&n+"."}${t}`]=e;return}$X(e)&&Object.keys(e).forEach(a=>{this.extractUniformsRecursively(a,e[a],r,`${n&&n+"."}${t}`)}),Array.isArray(e)&&e.forEach((a,l)=>{Object.keys(a).forEach(o=>{this.extractUniformsRecursively(o,a[o],r,`${n&&n+"."}${t}[${l}]`)})})}};function KX(t){return typeof WebGL2RenderingContext<"u"&&t instanceof WebGL2RenderingContext?!0:!!(t&&t._version===2)}var wg=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),{isUndefined:W0}=Ko,QX=class{constructor(){this.uniformBuffers=[],this.queryVerdorInfo=()=>this.device.queryVendorInfo().platformString,this.createModel=t=>new YX(this.device,t,this),this.createAttribute=t=>new EX(this.device,t),this.createBuffer=t=>new PX(this.device,t),this.createElements=t=>new VX(this.device,t),this.createTexture2D=t=>new ZE(this.device,t),this.createFramebuffer=t=>new $E(this.device,t),this.useFramebuffer=(t,e)=>{this.currentFramebuffer=t,this.beginFrame(),e(),this.endFrame(),this.currentFramebuffer=null},this.useFramebufferAsync=(t,e)=>wg(this,null,function*(){this.currentFramebuffer=t,this.preRenderPass=this.renderPass,this.beginFrame(),yield e(),this.endFrame(),this.currentFramebuffer=null,this.renderPass=this.preRenderPass}),this.clear=t=>{const{color:e,depth:r,stencil:n,framebuffer:a=null}=t;if(a)a.clearOptions={color:e,depth:r,stencil:n};else{const l=this.queryVerdorInfo();if(l==="WebGL1"){const o=this.getGLContext();W0(n)?W0(r)||(o.clearDepth(r),o.clear(o.DEPTH_BUFFER_BIT)):(o.clearStencil(n),o.clear(o.STENCIL_BUFFER_BIT))}else if(l==="WebGL2"){const o=this.getGLContext();W0(n)?W0(r)||o.clearBufferfv(o.DEPTH,0,[r]):o.clearBufferiv(o.STENCIL,0,[n])}}},this.viewport=({width:t,height:e})=>{this.swapChain.configureSwapChain(t,e),this.createMainColorDepthRT(t,e),this.width=t,this.height=e},this.readPixels=t=>{const{framebuffer:e,x:r,y:n,width:a,height:l}=t,o=this.device.createReadback(),p=e.colorTexture,m=o.readTextureSync(p,r,this.viewportOrigin===ku.LOWER_LEFT?n:this.height-n,a,l,new Uint8Array(a*l*4));if(this.viewportOrigin!==ku.LOWER_LEFT)for(let v=0;vwg(this,null,function*(){const{framebuffer:e,x:r,y:n,width:a,height:l}=t,o=this.device.createReadback(),p=e.colorTexture,m=yield o.readTexture(p,r,this.viewportOrigin===ku.LOWER_LEFT?n:this.height-n,a,l,new Uint8Array(a*l*4));if(this.viewportOrigin!==ku.LOWER_LEFT)for(let v=0;v({width:this.width,height:this.height}),this.getContainer=()=>{var t;return(t=this.canvas)==null?void 0:t.parentElement},this.getCanvas=()=>this.canvas,this.getGLContext=()=>this.device.gl,this.destroy=()=>{var t;this.canvas=null,(t=this.uniformBuffers)==null||t.forEach(e=>{e.destroy()}),this.device.destroy(),this.renderCache.destroy()}}init(t,e){return wg(this,null,function*(){const{enableWebGPU:r,shaderCompilerPath:n,antialias:a}=e;this.canvas=t;const o=yield(r?new bX({shaderCompilerPath:n}):new Lj({targets:["webgl2","webgl1"],antialias:a,onContextLost(m){console.warn("context lost",m)},onContextCreationError(m){console.warn("context creation error",m)},onContextRestored(m){console.warn("context restored",m)}})).createSwapChain(t);o.configureSwapChain(t.width,t.height),this.device=o.getDevice(),this.swapChain=o,this.renderCache=new zX(this.device),this.currentFramebuffer=null,this.viewportOrigin=this.device.queryVendorInfo().viewportOrigin;const p=this.device.gl;this.extensionObject={OES_texture_float:!KX(p)&&this.device.OES_texture_float},this.createMainColorDepthRT(t.width,t.height)})}createMainColorDepthRT(t,e){this.mainColorRT&&this.mainColorRT.destroy(),this.mainDepthRT&&this.mainDepthRT.destroy(),this.mainColorRT=this.device.createRenderTargetFromTexture(this.device.createTexture({format:ze.U8_RGBA_RT,width:t,height:e,usage:gs.RENDER_TARGET})),this.mainDepthRT=this.device.createRenderTargetFromTexture(this.device.createTexture({format:ze.D24_S8,width:t,height:e,usage:gs.RENDER_TARGET}))}beginFrame(){this.device.beginFrame();const{currentFramebuffer:t,swapChain:e,mainColorRT:r,mainDepthRT:n}=this,a=t?t.colorRenderTarget:r,l=t?null:e.getOnscreenTexture(),o=t?t.depthRenderTarget:n,{color:p=[0,0,0,0],depth:m=1,stencil:v=0}=(t==null?void 0:t.clearOptions)||{},E=a?D3(p[0]*255,p[1]*255,p[2]*255,p[3]):u_,b=o?m:void 0,A=o?v:void 0,R=this.device.createRenderPass({colorAttachment:[a],colorResolveTo:[l],colorClearColor:[E],colorStore:[!0],depthStencilAttachment:o,depthClearValue:b,stencilClearValue:A});this.renderPass=R}endFrame(){this.device.submitPass(this.renderPass),this.device.endFrame()}getPointSizeRange(){const t=this.device.gl;return t.getParameter(t.ALIASED_POINT_SIZE_RANGE)}testExtension(t){return!!this.getGLContext().getExtension(t)}setState(){}setBaseState(){}setCustomLayerDefaults(){}setDirty(t){this.isDirty=t}getDirty(){return this.isDirty}},qE={exports:{}};(function(t,e){(function(r,n){t.exports=n()})($m,function(){var r=function(B){return B instanceof Uint8Array||B instanceof Uint16Array||B instanceof Uint32Array||B instanceof Int8Array||B instanceof Int16Array||B instanceof Int32Array||B instanceof Float32Array||B instanceof Float64Array||B instanceof Uint8ClampedArray},n=function(B,ae){for(var be=Object.keys(ae),et=0;et{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&jE.decode();let $d=null;function om(){return($d===null||$d.byteLength===0)&&($d=new Uint8Array(co.memory.buffer)),$d}function jm(t,e){return t=t>>>0,jE.decode(om().subarray(t,t+e))}const Jc=new Array(128).fill(void 0);Jc.push(void 0,null,!0,!1);let r3=Jc.length;function Pj(t){r3===Jc.length&&Jc.push(Jc.length+1);const e=r3;return r3=Jc[e],Jc[e]=t,e}function am(t){return Jc[t]}function Oj(t){t<132||(Jc[t]=r3,r3=t)}function Lj(t){const e=am(t);return Oj(t),e}let Lp=0;const sm=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},Dj=typeof sm.encodeInto=="function"?function(t,e){return sm.encodeInto(t,e)}:function(t,e){const r=sm.encode(t);return e.set(r),{read:t.length,written:r.length}};function Xm(t,e,r){if(r===void 0){const p=sm.encode(t),m=e(p.length,1)>>>0;return om().subarray(m,m+p.length).set(p),Lp=p.length,m}let n=t.length,a=e(n,1)>>>0;const l=om();let o=0;for(;o127)break;l[a+o]=p}if(o!==n){o!==0&&(t=t.slice(o)),a=r(a,n,n=o+t.length*3,1)>>>0;const p=om().subarray(a+o,a+n),m=Dj(t,p);o+=m.written}return Lp=o,a}let qd=null;function Wm(){return(qd===null||qd.byteLength===0)&&(qd=new Int32Array(co.memory.buffer)),qd}function Bj(t,e,r){let n,a;try{const p=co.__wbindgen_add_to_stack_pointer(-16),m=Xm(t,co.__wbindgen_malloc,co.__wbindgen_realloc),v=Lp,E=Xm(e,co.__wbindgen_malloc,co.__wbindgen_realloc),b=Lp;co.glsl_compile(p,m,v,E,b,r);var l=Wm()[p/4+0],o=Wm()[p/4+1];return n=l,a=o,jm(l,o)}finally{co.__wbindgen_add_to_stack_pointer(16),co.__wbindgen_free(n,a,1)}}class T3{static __wrap(e){e=e>>>0;const r=Object.create(T3.prototype);return r.__wbg_ptr=e,r}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,e}free(){const e=this.__destroy_into_raw();co.__wbg_wgslcomposer_free(e)}constructor(){const e=co.wgslcomposer_new();return T3.__wrap(e)}load_composable(e){const r=Xm(e,co.__wbindgen_malloc,co.__wbindgen_realloc),n=Lp;co.wgslcomposer_load_composable(this.__wbg_ptr,r,n)}wgsl_compile(e){let r,n;try{const o=co.__wbindgen_add_to_stack_pointer(-16),p=Xm(e,co.__wbindgen_malloc,co.__wbindgen_realloc),m=Lp;co.wgslcomposer_wgsl_compile(o,this.__wbg_ptr,p,m);var a=Wm()[o/4+0],l=Wm()[o/4+1];return r=a,n=l,jm(a,l)}finally{co.__wbindgen_add_to_stack_pointer(16),co.__wbindgen_free(r,n,1)}}}async function Fj(t,e){if(typeof Response=="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(n){if(t.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const r=await t.arrayBuffer();return await WebAssembly.instantiate(r,e)}else{const r=await WebAssembly.instantiate(t,e);return r instanceof WebAssembly.Instance?{instance:r,module:t}:r}}function Nj(){const t={};return t.wbg={},t.wbg.__wbindgen_string_new=function(e,r){const n=jm(e,r);return Pj(n)},t.wbg.__wbindgen_object_drop_ref=function(e){Lj(e)},t.wbg.__wbg_log_1d3ae0273d8f4f8a=function(e){console.log(am(e))},t.wbg.__wbg_log_576ca876af0d4a77=function(e,r){console.log(am(e),am(r))},t.wbg.__wbindgen_throw=function(e,r){throw new Error(jm(e,r))},t}function kj(t,e){return co=t.exports,XE.__wbindgen_wasm_module=e,qd=null,$d=null,co}async function XE(t){if(co!==void 0)return co;const e=Nj();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));const{instance:r,module:n}=await Fj(await t,e);return kj(r,n)}var pa;(function(t){t[t.COPY_SRC=1]="COPY_SRC",t[t.COPY_DST=2]="COPY_DST",t[t.TEXTURE_BINDING=4]="TEXTURE_BINDING",t[t.STORAGE_BINDING=8]="STORAGE_BINDING",t[t.STORAGE=8]="STORAGE",t[t.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(pa||(pa={}));var Iv;(function(t){t[t.READ=1]="READ",t[t.WRITE=2]="WRITE"})(Iv||(Iv={}));function Uj(t){var e=0;return t&gs.SAMPLED&&(e|=pa.TEXTURE_BINDING|pa.COPY_DST|pa.COPY_SRC),t&gs.STORAGE&&(e|=pa.TEXTURE_BINDING|pa.STORAGE_BINDING|pa.COPY_SRC|pa.COPY_DST),t&gs.RENDER_TARGET&&(e|=pa.RENDER_ATTACHMENT|pa.TEXTURE_BINDING|pa.COPY_SRC|pa.COPY_DST),e}function k2(t){if(t===ze.U8_R_NORM)return"r8unorm";if(t===ze.S8_R_NORM)return"r8snorm";if(t===ze.U8_RG_NORM)return"rg8unorm";if(t===ze.S8_RG_NORM)return"rg8snorm";if(t===ze.U32_R)return"r32uint";if(t===ze.S32_R)return"r32sint";if(t===ze.F32_R)return"r32float";if(t===ze.U16_RG)return"rg16uint";if(t===ze.S16_RG)return"rg16sint";if(t===ze.F16_RG)return"rg16float";if(t===ze.U8_RGBA_RT)return"bgra8unorm";if(t===ze.U8_RGBA_RT_SRGB)return"bgra8unorm-srgb";if(t===ze.U8_RGBA_NORM)return"rgba8unorm";if(t===ze.U8_RGBA_SRGB)return"rgba8unorm-srgb";if(t===ze.S8_RGBA_NORM)return"rgba8snorm";if(t===ze.U32_RG)return"rg32uint";if(t===ze.S32_RG)return"rg32sint";if(t===ze.F32_RG)return"rg32float";if(t===ze.U16_RGBA)return"rgba16uint";if(t===ze.S16_RGBA)return"rgba16sint";if(t===ze.F16_RGBA)return"rgba16float";if(t===ze.F32_RGBA)return"rgba32float";if(t===ze.U32_RGBA)return"rgba32uint";if(t===ze.S32_RGBA)return"rgba32sint";if(t===ze.D24)return"depth24plus";if(t===ze.D24_S8)return"depth24plus-stencil8";if(t===ze.D32F)return"depth32float";if(t===ze.D32F_S8)return"depth32float-stencil8";if(t===ze.BC1)return"bc1-rgba-unorm";if(t===ze.BC1_SRGB)return"bc1-rgba-unorm-srgb";if(t===ze.BC2)return"bc2-rgba-unorm";if(t===ze.BC2_SRGB)return"bc2-rgba-unorm-srgb";if(t===ze.BC3)return"bc3-rgba-unorm";if(t===ze.BC3_SRGB)return"bc3-rgba-unorm-srgb";if(t===ze.BC4_SNORM)return"bc4-r-snorm";if(t===ze.BC4_UNORM)return"bc4-r-unorm";if(t===ze.BC5_SNORM)return"bc5-rg-snorm";if(t===ze.BC5_UNORM)return"bc5-rg-unorm";throw"whoops"}function zj(t){if(t===Un.TEXTURE_2D)return"2d";if(t===Un.TEXTURE_CUBE_MAP)return"2d";if(t===Un.TEXTURE_2D_ARRAY)return"2d";if(t===Un.TEXTURE_3D)return"3d";throw new Error("whoops")}function Vj(t){if(t===Un.TEXTURE_2D)return"2d";if(t===Un.TEXTURE_CUBE_MAP)return"cube";if(t===Un.TEXTURE_2D_ARRAY)return"2d-array";if(t===Un.TEXTURE_3D)return"3d";throw new Error("whoops")}function Hj(t){var e=0;return t&Si.INDEX&&(e|=GPUBufferUsage.INDEX),t&Si.VERTEX&&(e|=GPUBufferUsage.VERTEX),t&Si.UNIFORM&&(e|=GPUBufferUsage.UNIFORM),t&Si.STORAGE&&(e|=GPUBufferUsage.STORAGE),t&Si.COPY_SRC&&(e|=GPUBufferUsage.COPY_SRC),t&Si.INDIRECT&&(e|=GPUBufferUsage.INDIRECT),e|=GPUBufferUsage.COPY_DST,e}function Sg(t){if(t===Ms.CLAMP_TO_EDGE)return"clamp-to-edge";if(t===Ms.REPEAT)return"repeat";if(t===Ms.MIRRORED_REPEAT)return"mirror-repeat";throw new Error("whoops")}function Yx(t){if(t===wo.BILINEAR)return"linear";if(t===wo.POINT)return"nearest";throw new Error("whoops")}function jj(t){if(t===da.LINEAR)return"linear";if(t===da.NEAREST)return"nearest";if(t===da.NO_MIP)return"nearest";throw new Error("whoops")}function lp(t){var e=t;return e.gpuBuffer}function Xj(t){var e=t;return e.gpuSampler}function Wj(t){var e=t;return e.querySet}function Gj(t){if(t===km.OcclusionConservative)return"occlusion";throw new Error("whoops")}function Zj(t){switch(t){case Yo.TRIANGLES:return"triangle-list";case Yo.POINTS:return"point-list";case Yo.TRIANGLE_STRIP:return"triangle-strip";case Yo.LINES:return"line-list";case Yo.LINE_STRIP:return"line-strip";default:throw new Error("Unknown primitive topology mode")}}function $j(t){if(t===rl.NONE)return"none";if(t===rl.FRONT)return"front";if(t===rl.BACK)return"back";throw new Error("whoops")}function qj(t){if(t===E3.CCW)return"ccw";if(t===E3.CW)return"cw";throw new Error("whoops")}function Yj(t,e){return{topology:Zj(t),cullMode:$j(e.cullMode),frontFace:qj(e.frontFace)}}function Kx(t){if(t===kn.ZERO)return"zero";if(t===kn.ONE)return"one";if(t===kn.SRC)return"src";if(t===kn.ONE_MINUS_SRC)return"one-minus-src";if(t===kn.DST)return"dst";if(t===kn.ONE_MINUS_DST)return"one-minus-dst";if(t===kn.SRC_ALPHA)return"src-alpha";if(t===kn.ONE_MINUS_SRC_ALPHA)return"one-minus-src-alpha";if(t===kn.DST_ALPHA)return"dst-alpha";if(t===kn.ONE_MINUS_DST_ALPHA)return"one-minus-dst-alpha";if(t===kn.CONST)return"constant";if(t===kn.ONE_MINUS_CONSTANT)return"one-minus-constant";if(t===kn.SRC_ALPHA_SATURATE)return"src-alpha-saturated";throw new Error("whoops")}function Kj(t){if(t===Ra.ADD)return"add";if(t===Ra.SUBSTRACT)return"subtract";if(t===Ra.REVERSE_SUBSTRACT)return"reverse-subtract";if(t===Ra.MIN)return"min";if(t===Ra.MAX)return"max";throw new Error("whoops")}function Qx(t){return{operation:Kj(t.blendMode),srcFactor:Kx(t.blendSrcFactor),dstFactor:Kx(t.blendDstFactor)}}function Jx(t){return t.blendMode===Ra.ADD&&t.blendSrcFactor===kn.ONE&&t.blendDstFactor===kn.ZERO}function Qj(t){if(!(Jx(t.rgbBlendState)&&Jx(t.alphaBlendState)))return{color:Qx(t.rgbBlendState),alpha:Qx(t.alphaBlendState)}}function Jj(t,e){return{format:k2(e),blend:Qj(t),writeMask:t.channelWriteMask}}function eX(t,e){return e.attachmentsState.map(function(r,n){return Jj(r,t[n])})}function lm(t){if(t===ui.NEVER)return"never";if(t===ui.LESS)return"less";if(t===ui.EQUAL)return"equal";if(t===ui.LEQUAL)return"less-equal";if(t===ui.GREATER)return"greater";if(t===ui.NOTEQUAL)return"not-equal";if(t===ui.GEQUAL)return"greater-equal";if(t===ui.ALWAYS)return"always";throw new Error("whoops")}function Qf(t){if(t===fo.KEEP)return"keep";if(t===fo.REPLACE)return"replace";if(t===fo.ZERO)return"zero";if(t===fo.DECREMENT_CLAMP)return"decrement-clamp";if(t===fo.DECREMENT_WRAP)return"decrement-wrap";if(t===fo.INCREMENT_CLAMP)return"increment-clamp";if(t===fo.INCREMENT_WRAP)return"increment-wrap";if(t===fo.INVERT)return"invert";throw new Error("whoops")}function tX(t,e){if(!cu(t))return{format:k2(t),depthWriteEnabled:!!e.depthWrite,depthCompare:lm(e.depthCompare),depthBias:e.polygonOffset?e.polygonOffsetUnits:0,depthBiasSlopeScale:e.polygonOffset?e.polygonOffsetFactor:0,stencilFront:{compare:lm(e.stencilFront.compare),passOp:Qf(e.stencilFront.passOp),failOp:Qf(e.stencilFront.failOp),depthFailOp:Qf(e.stencilFront.depthFailOp)},stencilBack:{compare:lm(e.stencilBack.compare),passOp:Qf(e.stencilBack.passOp),failOp:Qf(e.stencilBack.failOp),depthFailOp:Qf(e.stencilBack.depthFailOp)},stencilReadMask:4294967295,stencilWriteMask:4294967295}}function rX(t){if(t!==null){if(t===ze.U16_R)return"uint16";if(t===ze.U32_R)return"uint32";throw new Error("whoops")}}function nX(t){if(t===rf.VERTEX)return"vertex";if(t===rf.INSTANCE)return"instance";throw new Error("whoops")}function iX(t){if(t===ze.U8_R)return"uint8x2";if(t===ze.U8_RG)return"uint8x2";if(t===ze.U8_RGB)return"uint8x4";if(t===ze.U8_RGBA)return"uint8x4";if(t===ze.U8_RG_NORM)return"unorm8x2";if(t===ze.U8_RGBA_NORM)return"unorm8x4";if(t===ze.S8_RGB_NORM)return"snorm8x4";if(t===ze.S8_RGBA_NORM)return"snorm8x4";if(t===ze.U16_RG_NORM)return"unorm16x2";if(t===ze.U16_RGBA_NORM)return"unorm16x4";if(t===ze.S16_RG_NORM)return"snorm16x2";if(t===ze.S16_RGBA_NORM)return"snorm16x4";if(t===ze.S16_RG)return"uint16x2";if(t===ze.F16_RG)return"float16x2";if(t===ze.F16_RGBA)return"float16x4";if(t===ze.F32_R)return"float32";if(t===ze.F32_RG)return"float32x2";if(t===ze.F32_RGB)return"float32x3";if(t===ze.F32_RGBA)return"float32x4";throw"whoops"}function oX(t){var e=vc(t);switch(e){case Tt.BC1:case Tt.BC2:case Tt.BC3:case Tt.BC4_SNORM:case Tt.BC4_UNORM:case Tt.BC5_SNORM:case Tt.BC5_UNORM:return!0;default:return!1}}function aX(t){var e=vc(t);switch(e){case Tt.BC1:case Tt.BC2:case Tt.BC3:case Tt.BC4_SNORM:case Tt.BC4_UNORM:case Tt.BC5_SNORM:case Tt.BC5_UNORM:return 4;default:return 1}}function e8(t,e,r,n){switch(r===void 0&&(r=!1),t){case ze.S8_R:case ze.S8_R_NORM:case ze.S8_RG_NORM:case ze.S8_RGB_NORM:case ze.S8_RGBA_NORM:{var a=e instanceof ArrayBuffer?new Int8Array(e):new Int8Array(e);return n&&a.set(new Int8Array(n)),a}case ze.U8_R:case ze.U8_R_NORM:case ze.U8_RG:case ze.U8_RG_NORM:case ze.U8_RGB:case ze.U8_RGB_NORM:case ze.U8_RGB_SRGB:case ze.U8_RGBA:case ze.U8_RGBA_NORM:case ze.U8_RGBA_SRGB:{var l=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e);return n&&l.set(new Uint8Array(n)),l}case ze.S16_R:case ze.S16_RG:case ze.S16_RG_NORM:case ze.S16_RGB_NORM:case ze.S16_RGBA:case ze.S16_RGBA_NORM:{var o=e instanceof ArrayBuffer?new Int16Array(e):new Int16Array(r?e/2:e);return n&&o.set(new Int16Array(n)),o}case ze.U16_R:case ze.U16_RGB:case ze.U16_RGBA_5551:case ze.U16_RGBA_NORM:case ze.U16_RG_NORM:case ze.U16_R_NORM:{var p=e instanceof ArrayBuffer?new Uint16Array(e):new Uint16Array(r?e/2:e);return n&&p.set(new Uint16Array(n)),p}case ze.S32_R:{var m=e instanceof ArrayBuffer?new Int32Array(e):new Int32Array(r?e/4:e);return n&&m.set(new Int32Array(n)),m}case ze.U32_R:case ze.U32_RG:{var v=e instanceof ArrayBuffer?new Uint32Array(e):new Uint32Array(r?e/4:e);return n&&v.set(new Uint32Array(n)),v}case ze.F32_R:case ze.F32_RG:case ze.F32_RGB:case ze.F32_RGBA:{var E=e instanceof ArrayBuffer?new Float32Array(e):new Float32Array(r?e/4:e);return n&&E.set(new Float32Array(n)),E}}var b=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e);return n&&b.set(new Uint8Array(n)),b}function sX(t){var e=(t&32768)>>15,r=(t&31744)>>10,n=t&1023;return r===0?(e?-1:1)*Math.pow(2,-14)*(n/Math.pow(2,10)):r==31?n?NaN:(e?-1:1)*(1/0):(e?-1:1)*Math.pow(2,r-15)*(1+n/Math.pow(2,10))}function WE(t){switch(t){case"r8unorm":case"r8snorm":case"r8uint":case"r8sint":return{width:1,height:1,length:1};case"r16uint":case"r16sint":case"r16float":case"rg8unorm":case"rg8snorm":case"rg8uint":case"rg8sint":return{width:1,height:1,length:2};case"r32uint":case"r32sint":case"r32float":case"rg16uint":case"rg16sint":case"rg16float":case"rgba8unorm":case"rgba8unorm-srgb":case"rgba8snorm":case"rgba8uint":case"rgba8sint":case"bgra8unorm":case"bgra8unorm-srgb":case"rgb9e5ufloat":case"rgb10a2unorm":case"rg11b10ufloat":return{width:1,height:1,length:4};case"rg32uint":case"rg32sint":case"rg32float":case"rgba16uint":case"rgba16sint":case"rgba16float":return{width:1,height:1,length:8};case"rgba32uint":case"rgba32sint":case"rgba32float":return{width:1,height:1,length:16};case"stencil8":throw new Error("No fixed size for Stencil8 format!");case"depth16unorm":return{width:1,height:1,length:2};case"depth24plus":throw new Error("No fixed size for Depth24Plus format!");case"depth24plus-stencil8":throw new Error("No fixed size for Depth24PlusStencil8 format!");case"depth32float":return{width:1,height:1,length:4};case"depth32float-stencil8":return{width:1,height:1,length:5};case"bc7-rgba-unorm":case"bc7-rgba-unorm-srgb":case"bc6h-rgb-ufloat":case"bc6h-rgb-float":case"bc2-rgba-unorm":case"bc2-rgba-unorm-srgb":case"bc3-rgba-unorm":case"bc3-rgba-unorm-srgb":case"bc5-rg-unorm":case"bc5-rg-snorm":return{width:4,height:4,length:16};case"bc4-r-unorm":case"bc4-r-snorm":case"bc1-rgba-unorm":case"bc1-rgba-unorm-srgb":return{width:4,height:4,length:8};default:return{width:1,height:1,length:4}}}var zu=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=t.call(this)||this;return l.id=n,l.device=a,l}return e.prototype.destroy=function(){},e}(ME),lX=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o,p,m=t.call(this,{id:n,device:a})||this;m.type=Jn.Bindings;var v=l.pipeline;gn(!!v);var E=l.uniformBufferBindings,b=l.storageBufferBindings,A=l.samplerBindings,R=l.storageTextureBindings;m.numUniformBuffers=(E==null?void 0:E.length)||0;var O=[[],[],[],[]],D=0;if(E&&E.length)for(var N=0;Nb;)this.device.device.queue.writeBuffer(o,r+A,n.buffer,p+A,b),A+=b;this.device.device.queue.writeBuffer(o,r+A,n.buffer,p+A,l-A)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gpuBuffer.destroy()},e}(zu),t8=function(){function t(){this.gpuComputePassEncoder=null}return t.prototype.dispatchWorkgroups=function(e,r,n){this.gpuComputePassEncoder.dispatchWorkgroups(e,r,n)},t.prototype.dispatchWorkgroupsIndirect=function(e,r){this.gpuComputePassEncoder.dispatchWorkgroupsIndirect(e.gpuBuffer,r)},t.prototype.finish=function(){this.gpuComputePassEncoder.end(),this.gpuComputePassEncoder=null,this.frameCommandEncoder=null},t.prototype.beginComputePass=function(e){gn(this.gpuComputePassEncoder===null),this.frameCommandEncoder=e,this.gpuComputePassEncoder=this.frameCommandEncoder.beginComputePass(this.gpuComputePassDescriptor)},t.prototype.setPipeline=function(e){var r=e,n=Gh(r.gpuComputePipeline);this.gpuComputePassEncoder.setPipeline(n)},t.prototype.setBindings=function(e){var r=this,n=e;n.gpuBindGroup.forEach(function(a,l){a&&r.gpuComputePassEncoder.setBindGroup(l,n.gpuBindGroup[l])})},t.prototype.pushDebugGroup=function(e){this.gpuComputePassEncoder.pushDebugGroup(e)},t.prototype.popDebugGroup=function(){this.gpuComputePassEncoder.popDebugGroup()},t.prototype.insertDebugMarker=function(e){this.gpuComputePassEncoder.insertDebugMarker(e)},t}(),cX=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o=t.call(this,{id:n,device:a})||this;o.type=Jn.ComputePipeline,o.gpuComputePipeline=null,o.descriptor=l;var p=l.program,m=p.computeStage;if(m===null)return o;var v={layout:"auto",compute:zo({},m)};return o.gpuComputePipeline=o.device.device.createComputePipeline(v),o.name!==void 0&&(o.gpuComputePipeline.label=o.name),o}return e.prototype.getBindGroupLayout=function(r){return this.gpuComputePipeline.getBindGroupLayout(r)},e}(zu),hX=function(t){po(e,t);function e(r){var n,a,l,o,p=r.id,m=r.device,v=r.descriptor,E=t.call(this,{id:p,device:m})||this;E.type=Jn.InputLayout;var b=[];try{for(var A=qh(v.vertexBufferDescriptors),R=A.next();!R.done;R=A.next()){var O=R.value,D=O.arrayStride,N=O.stepMode,W=O.attributes;b.push({arrayStride:D,stepMode:nX(N),attributes:[]});try{for(var G=(l=void 0,qh(W)),Y=G.next();!Y.done;Y=G.next()){var Q=Y.value,J=Q.shaderLocation,Se=Q.format,ce=Q.offset;b[b.length-1].attributes.push({shaderLocation:J,format:iX(Se),offset:ce})}}catch(ke){l={error:ke}}finally{try{Y&&!Y.done&&(o=G.return)&&o.call(G)}finally{if(l)throw l.error}}}}catch(ke){n={error:ke}}finally{try{R&&!R.done&&(a=A.return)&&a.call(A)}finally{if(n)throw n.error}}return E.indexFormat=rX(v.indexBufferFormat),E.buffers=b,E}return e}(zu),r8=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o=t.call(this,{id:n,device:a})||this;return o.type=Jn.Program,o.vertexStage=null,o.fragmentStage=null,o.computeStage=null,o.descriptor=l,l.vertex&&(o.vertexStage=o.createShaderStage(l.vertex,"vertex")),l.fragment&&(o.fragmentStage=o.createShaderStage(l.fragment,"fragment")),l.compute&&(o.computeStage=o.createShaderStage(l.compute,"compute")),o}return e.prototype.setUniformsLegacy=function(r){},e.prototype.createShaderStage=function(r,n){var a,l,o=r.glsl,p=r.wgsl,m=r.entryPoint,v=r.postprocess,E=!1,b=p;if(!b)try{b=this.device.glsl_compile(o,n,E)}catch(W){throw console.error(W,o),new Error("whoops")}var A=function(W){if(!b.includes(W))return"continue";b=b.replace("var T_".concat(W,": texture_2d;"),"var T_".concat(W,": texture_depth_2d;")),b=b.replace(new RegExp("textureSample\\(T_".concat(W,"(.*)\\);$"),"gm"),function(G,Y){return"vec4(textureSample(T_".concat(W).concat(Y,"), 0.0, 0.0, 0.0);")})};try{for(var R=qh(["u_TextureFramebufferDepth"]),O=R.next();!O.done;O=R.next()){var D=O.value;A(D)}}catch(W){a={error:W}}finally{try{O&&!O.done&&(l=R.return)&&l.call(R)}finally{if(a)throw a.error}}v&&(b=v(b));var N=this.device.device.createShaderModule({code:b});return{module:N,entryPoint:m||"main"}},e}(zu),fX=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o=t.call(this,{id:n,device:a})||this;o.type=Jn.QueryPool;var p=l.elemCount,m=l.type;return o.querySet=o.device.device.createQuerySet({type:Gj(m),count:p}),o.resolveBuffer=o.device.device.createBuffer({size:p*8,usage:GPUBufferUsage.QUERY_RESOLVE|GPUBufferUsage.COPY_SRC}),o.cpuBuffer=o.device.device.createBuffer({size:p*8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),o.results=null,o}return e.prototype.queryResultOcclusion=function(r){return this.results===null?null:this.results[r]!==BigInt(0)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.querySet.destroy(),this.resolveBuffer.destroy(),this.cpuBuffer.destroy()},e}(zu),pX=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=t.call(this,{id:n,device:a})||this;return l.type=Jn.Readback,l}return e.prototype.readTexture=function(r,n,a,l,o,p,m,v){return m===void 0&&(m=0),up(this,void 0,void 0,function(){var E,b,A,R,O,D,N,W;return cp(this,function(G){return E=r,b=0,A=WE(E.gpuTextureformat),R=Math.ceil(l/A.width)*A.length,O=Math.ceil(R/256)*256,D=O*o,N=this.device.createBuffer({usage:Si.STORAGE|Si.MAP_READ|Si.COPY_DST,hint:Uu.STATIC,viewOrSize:D}),W=this.device.device.createCommandEncoder(),W.copyTextureToBuffer({texture:E.gpuTexture,mipLevel:0,origin:{x:n,y:a,z:Math.max(b,0)}},{buffer:N.gpuBuffer,offset:0,bytesPerRow:O},{width:l,height:o,depthOrArrayLayers:1}),this.device.device.queue.submit([W.finish()]),[2,this.readBuffer(N,0,p.byteLength===D?p:null,m,D,E.format,!0,!1,R,O,o)]})})},e.prototype.readTextureSync=function(r,n,a,l,o,p,m,v){throw new Error("ERROR_MSG_METHOD_NOT_IMPLEMENTED")},e.prototype.readBuffer=function(r,n,a,l,o,p,m,v,E,b,A){var R=this;n===void 0&&(n=0),a===void 0&&(a=null),o===void 0&&(o=0),p===void 0&&(p=ze.U8_RGB),m===void 0&&(m=!1),E===void 0&&(E=0),b===void 0&&(b=0),A===void 0&&(A=0);var O=r,D=o||O.size,N=a||O.view,W=N&&N.constructor&&N.constructor.BYTES_PER_ELEMENT||OE(p),G=O;if(!(O.usage&Si.MAP_READ&&O.usage&Si.COPY_DST)){var Y=this.device.device.createCommandEncoder();G=this.device.createBuffer({usage:Si.STORAGE|Si.MAP_READ|Si.COPY_DST,hint:Uu.STATIC,viewOrSize:D}),Y.copyBufferToBuffer(O.gpuBuffer,n,G.gpuBuffer,0,D),this.device.device.queue.submit([Y.finish()])}return new Promise(function(Q,J){G.gpuBuffer.mapAsync(Iv.READ,n,D).then(function(){var Se=G.gpuBuffer.getMappedRange(n,D),ce=N;if(m)ce===null?ce=e8(p,D,!0,Se):ce=e8(p,ce.buffer,void 0,Se);else if(ce===null)switch(W){case 1:ce=new Uint8Array(D),ce.set(new Uint8Array(Se));break;case 2:ce=R.getHalfFloatAsFloatRGBAArrayBuffer(D/2,Se);break;case 4:ce=new Float32Array(D/4),ce.set(new Float32Array(Se));break}else switch(W){case 1:ce=new Uint8Array(ce.buffer),ce.set(new Uint8Array(Se));break;case 2:ce=R.getHalfFloatAsFloatRGBAArrayBuffer(D/2,Se,N);break;case 4:var ke=N&&N.constructor||Float32Array;ce=new ke(ce.buffer),ce.set(new ke(Se));break}if(E!==b){W===1&&!m&&(E*=2,b*=2);for(var ct=new Uint8Array(ce.buffer),Ve=E,Te=0,Fe=1;Fe1?A.resolveTarget=this.getTextureView(b,this.gfxColorResolveToLevel[v]):A.storeOp="store")}else{this.gpuColorAttachments.length=v,this.gfxColorAttachment.length=v,this.gfxColorResolveTo.length=v;break}}if(this.gfxDepthStencilAttachment=e.depthStencilAttachment,this.gfxDepthStencilResolveTo=e.depthStencilResolveTo,e.depthStencilAttachment){var O=e.depthStencilAttachment,A=this.gpuDepthStencilAttachment;A.view=O.gpuTextureView;var D=!!(Ip(O.format)&hr.Depth);D?(e.depthClearValue==="load"?A.depthLoadOp="load":(A.depthLoadOp="clear",A.depthClearValue=e.depthClearValue),e.depthStencilStore||this.gfxDepthStencilResolveTo!==null?A.depthStoreOp="store":A.depthStoreOp="discard"):(A.depthLoadOp=void 0,A.depthStoreOp=void 0);var N=!!(Ip(O.format)&hr.Stencil);N?(e.stencilClearValue==="load"?A.stencilLoadOp="load":(A.stencilLoadOp="clear",A.stencilClearValue=e.stencilClearValue),e.depthStencilStore||this.gfxDepthStencilResolveTo!==null?A.stencilStoreOp="store":A.stencilStoreOp="discard"):(A.stencilLoadOp=void 0,A.stencilStoreOp=void 0),this.gpuRenderPassDescriptor.depthStencilAttachment=this.gpuDepthStencilAttachment}else this.gpuRenderPassDescriptor.depthStencilAttachment=void 0;this.gpuRenderPassDescriptor.occlusionQuerySet=cu(e.occlusionQueryPool)?void 0:Wj(e.occlusionQueryPool)},t.prototype.beginRenderPass=function(e,r){gn(this.gpuRenderPassEncoder===null),this.setRenderPassDescriptor(r),this.frameCommandEncoder=e,this.gpuRenderPassEncoder=this.frameCommandEncoder.beginRenderPass(this.gpuRenderPassDescriptor)},t.prototype.flipY=function(e,r){var n=this.device.swapChainHeight;return n-e-r},t.prototype.setViewport=function(e,r,n,a,l,o){l===void 0&&(l=0),o===void 0&&(o=1),this.gpuRenderPassEncoder.setViewport(e,this.flipY(r,a),n,a,l,o)},t.prototype.setScissorRect=function(e,r,n,a){this.gpuRenderPassEncoder.setScissorRect(e,this.flipY(r,a),n,a)},t.prototype.setPipeline=function(e){var r=e,n=Gh(r.gpuRenderPipeline);this.getEncoder().setPipeline(n)},t.prototype.setVertexInput=function(e,r,n){if(e!==null){var a=this.getEncoder(),l=e;n!==null&&a.setIndexBuffer(lp(n.buffer),Gh(l.indexFormat),n.offset);for(var o=0;o1||this.copyAttachment(this.gfxDepthStencilResolveTo,0,this.gfxDepthStencilAttachment,0)),this.frameCommandEncoder=null},t.prototype.copyAttachment=function(e,r,n,a){gn(n.sampleCount===1);var l={texture:n.gpuTexture,mipLevel:a},o={texture:e.gpuTexture,mipLevel:r};gn(n.width>>>a===e.width>>>r),gn(n.height>>>a===e.height>>>r),gn(!!(n.usage&pa.COPY_SRC)),gn(!!(e.usage&pa.COPY_DST)),this.frameCommandEncoder.copyTextureToTexture(l,o,[e.width,e.height,1])},t}(),dX=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o=t.call(this,{id:n,device:a})||this;return o.type=Jn.RenderPipeline,o.isCreatingAsync=!1,o.gpuRenderPipeline=null,o.descriptor=l,o.device.createRenderPipelineInternal(o,!1),o}return e.prototype.getBindGroupLayout=function(r){return this.gpuRenderPipeline.getBindGroupLayout(r)},e}(zu),mX=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o,p,m=t.call(this,{id:n,device:a})||this;m.type=Jn.Sampler;var v=l.lodMinClamp,E=l.mipmapFilter===da.NO_MIP?l.lodMinClamp:l.lodMaxClamp,b=(o=l.maxAnisotropy)!==null&&o!==void 0?o:1;return b>1&&gn(l.minFilter===wo.BILINEAR&&l.magFilter===wo.BILINEAR&&l.mipmapFilter===da.LINEAR),m.gpuSampler=m.device.device.createSampler({addressModeU:Sg(l.addressModeU),addressModeV:Sg(l.addressModeV),addressModeW:Sg((p=l.addressModeW)!==null&&p!==void 0?p:l.addressModeU),lodMinClamp:v,lodMaxClamp:E,minFilter:Yx(l.minFilter),magFilter:Yx(l.magFilter),mipmapFilter:jj(l.mipmapFilter),compare:l.compareFunction!==void 0?lm(l.compareFunction):void 0,maxAnisotropy:b}),m}return e}(zu),H0=function(t){po(e,t);function e(r){var n=r.id,a=r.device,l=r.descriptor,o=r.skipCreate,p=r.sampleCount,m=t.call(this,{id:n,device:a})||this;m.type=Jn.Texture,m.flipY=!1;var v=l.format,E=l.dimension,b=l.width,A=l.height,R=l.depthOrArrayLayers,O=l.mipLevelCount,D=l.usage,N=l.pixelStore;return m.flipY=!!(N!=null&&N.unpackFlipY),m.device.createTextureShared({format:v,dimension:E??Un.TEXTURE_2D,width:b,height:A,depthOrArrayLayers:R??1,mipLevelCount:O??1,usage:D,sampleCount:p??1},m,o),m}return e.prototype.textureFromImageBitmapOrCanvas=function(r,n,a){for(var l=n[0].width,o=n[0].height,p={size:{width:l,height:o,depthOrArrayLayers:a},format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT},m=r.createTexture(p),v=0;v>>2,uniformBufferWordAlignment:this.device.limits.minUniformBufferOffsetAlignment>>>2,supportedSampleCounts:[1],occlusionQueriesRecommended:!0,computeShadersSupported:!0}},t.prototype.queryTextureFormatSupported=function(e,r,n){if(oX(e)){if(!this.featureTextureCompressionBC)return!1;var a=aX(e);return r%a!==0||n%a!==0?!1:this.featureTextureCompressionBC}switch(e){case ze.U16_RGBA_NORM:return!1;case ze.F32_RGBA:return!1}return!0},t.prototype.queryPlatformAvailable=function(){return!0},t.prototype.queryVendorInfo=function(){return this},t.prototype.queryRenderPass=function(e){var r=e;return r.descriptor},t.prototype.queryRenderTarget=function(e){var r=e;return r},t.prototype.setResourceName=function(e,r){if(e.name=r,e.type===Jn.Buffer){var n=e;n.gpuBuffer.label=r}else if(e.type===Jn.Texture){var n=e;n.gpuTexture.label=r,n.gpuTextureView.label=r}else if(e.type===Jn.RenderTarget){var n=e;n.gpuTexture.label=r,n.gpuTextureView.label=r}else if(e.type===Jn.Sampler){var n=e;n.gpuSampler.label=r}else if(e.type===Jn.RenderPipeline){var n=e;n.gpuRenderPipeline!==null&&(n.gpuRenderPipeline.label=r)}},t.prototype.setResourceLeakCheck=function(e,r){},t.prototype.checkForLeaks=function(){},t.prototype.programPatched=function(e){},t.prototype.pipelineQueryReady=function(e){var r=e;return r.gpuRenderPipeline!==null},t.prototype.pipelineForceReady=function(e){var r=e;this.createRenderPipelineInternal(r,!1)},t}(),vX=function(){function t(e){this.pluginOptions=e}return t.prototype.createSwapChain=function(e){return up(this,void 0,void 0,function(){var r,n,a,l,o,p,m,v;return cp(this,function(E){switch(E.label){case 0:if(globalThis.navigator.gpu===void 0)return[2,null];r=null,E.label=1;case 1:return E.trys.push([1,3,,4]),n=this.pluginOptions.xrCompatible,[4,globalThis.navigator.gpu.requestAdapter({xrCompatible:n})];case 2:return r=E.sent(),[3,4];case 3:return a=E.sent(),console.log(a),[3,4];case 4:return r===null?[2,null]:(l=["depth32float-stencil8","texture-compression-bc","float32-filterable"],o=l.filter(function(b){return r.features.has(b)}),[4,r.requestDevice({requiredFeatures:o})]);case 5:if(p=E.sent(),p&&(m=this.pluginOptions.onContextLost,p.lost.then(function(){m&&m()})),p===null)return[2,null];if(v=e.getContext("webgpu"),!v)return[2,null];E.label=6;case 6:return E.trys.push([6,8,,9]),[4,XE(this.pluginOptions.shaderCompilerPath)];case 7:return E.sent(),[3,9];case 8:return E.sent(),[3,9];case 9:return[2,new gX(r,p,e,v,Bj,T3&&new T3)]}})})},t}(),yX=class{constructor(t,e){const{buffer:r,offset:n,stride:a,normalized:l,size:o,divisor:p,shaderLocation:m}=e;this.buffer=r,this.attribute={shaderLocation:m,buffer:r.get(),offset:n||0,stride:a||0,normalized:l||!1,divisor:p||0},o&&(this.attribute.size=o)}get(){return this.buffer}updateBuffer(t){this.buffer.subData(t)}destroy(){this.buffer.destroy()}},Gm={[H.FLOAT]:Float32Array,[H.UNSIGNED_BYTE]:Uint8Array,[H.SHORT]:Int16Array,[H.UNSIGNED_SHORT]:Uint16Array,[H.INT]:Int32Array,[H.UNSIGNED_INT]:Uint32Array},xX={[H.POINTS]:Yo.POINTS,[H.LINES]:Yo.LINES,[H.LINE_LOOP]:Yo.LINES,[H.LINE_STRIP]:Yo.LINE_STRIP,[H.TRIANGLES]:Yo.TRIANGLES,[H.TRIANGLE_FAN]:Yo.TRIANGLES,[H.TRIANGLE_STRIP]:Yo.TRIANGLE_STRIP},bX={1:ze.F32_R,2:ze.F32_RG,3:ze.F32_RGB,4:ze.F32_RGBA},EX={[H.STATIC_DRAW]:Uu.STATIC,[H.DYNAMIC_DRAW]:Uu.DYNAMIC,[H.STREAM_DRAW]:Uu.DYNAMIC},i8={[H.REPEAT]:Ms.REPEAT,[H.CLAMP_TO_EDGE]:Ms.CLAMP_TO_EDGE,[H.MIRRORED_REPEAT]:Ms.MIRRORED_REPEAT},TX={[H.NEVER]:ui.NEVER,[H.ALWAYS]:ui.ALWAYS,[H.LESS]:ui.LESS,[H.LEQUAL]:ui.LEQUAL,[H.GREATER]:ui.GREATER,[H.GEQUAL]:ui.GEQUAL,[H.EQUAL]:ui.EQUAL,[H.NOTEQUAL]:ui.NOTEQUAL},AX={[H.FRONT]:rl.FRONT,[H.BACK]:rl.BACK},o8={[H.FUNC_ADD]:Ra.ADD,[H.MIN_EXT]:Ra.MIN,[H.MAX_EXT]:Ra.MAX,[H.FUNC_SUBTRACT]:Ra.SUBSTRACT,[H.FUNC_REVERSE_SUBTRACT]:Ra.REVERSE_SUBSTRACT},j0={[H.ZERO]:kn.ZERO,[H.ONE]:kn.ONE,[H.SRC_COLOR]:kn.SRC,[H.ONE_MINUS_SRC_COLOR]:kn.ONE_MINUS_SRC,[H.SRC_ALPHA]:kn.SRC_ALPHA,[H.ONE_MINUS_SRC_ALPHA]:kn.ONE_MINUS_SRC_ALPHA,[H.DST_COLOR]:kn.DST,[H.ONE_MINUS_DST_COLOR]:kn.ONE_MINUS_DST,[H.DST_ALPHA]:kn.DST_ALPHA,[H.ONE_MINUS_DST_ALPHA]:kn.ONE_MINUS_DST_ALPHA,[H.CONSTANT_COLOR]:kn.CONST,[H.ONE_MINUS_CONSTANT_COLOR]:kn.ONE_MINUS_CONSTANT,[H.CONSTANT_ALPHA]:kn.CONST,[H.ONE_MINUS_CONSTANT_ALPHA]:kn.ONE_MINUS_CONSTANT,[H.SRC_ALPHA_SATURATE]:kn.SRC_ALPHA_SATURATE},Jf={[H.REPLACE]:fo.REPLACE,[H.KEEP]:fo.KEEP,[H.ZERO]:fo.ZERO,[H.INVERT]:fo.INVERT,[H.INCR]:fo.INCREMENT_CLAMP,[H.DECR]:fo.DECREMENT_CLAMP,[H.INCR_WRAP]:fo.INCREMENT_WRAP,[H.DECR_WRAP]:fo.DECREMENT_WRAP},SX={[H.ALWAYS]:ui.ALWAYS,[H.EQUAL]:ui.EQUAL,[H.GEQUAL]:ui.GEQUAL,[H.GREATER]:ui.GREATER,[H.LEQUAL]:ui.LEQUAL,[H.LESS]:ui.LESS,[H.NEVER]:ui.NEVER,[H.NOTEQUAL]:ui.NOTEQUAL},wX={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121};function Zm(t){return Object.prototype.toString.call(t)in wX}function CX(t,e){const r=t.length,n=Math.ceil(r/3),a=r+n,l=new Float32Array(a);for(let o=0;o>>6,t>>>0}function GE(t){return t+=t<<3,t^=t>>>11,t+=t<<15,t>>>0}function a8(){return 0}var IX=class{constructor(){this.keys=[],this.values=[]}},X0=class{constructor(t,e){this.keyEqualFunc=t,this.keyHashFunc=e,this.buckets=new Map}findBucketIndex(t,e){for(let r=0;r=0;e--)yield t.values[e]}};function s8(t,e){return t=pi(t,e.blendMode),t=pi(t,e.blendSrcFactor),t=pi(t,e.blendDstFactor),t}function MX(t,e){return t=s8(t,e.rgbBlendState),t=s8(t,e.alphaBlendState),t=pi(t,e.channelWriteMask),t}function PX(t,e){return t=pi(t,e.r<<24|e.g<<16|e.b<<8|e.a),t}function OX(t,e){var r,n,a,l,o,p,m,v;for(let E=0;Ea&&a>0),r=this.device.createBindings(n),this.bindingsCache.add(n,r)}return r}createRenderPipeline(t){let e=this.renderPipelinesCache.get(t);if(e===null){const r=ZH(t);r.colorAttachmentFormats=r.colorAttachmentFormats.filter(n=>n),e=this.device.createRenderPipeline(r),this.renderPipelinesCache.add(r,e)}return e}createInputLayout(t){t.vertexBufferDescriptors=t.vertexBufferDescriptors.filter(r=>!!r);let e=this.inputLayoutsCache.get(t);if(e===null){const r=YH(t);e=this.device.createInputLayout(r),this.inputLayoutsCache.add(r,e)}return e}createProgram(t){let e=this.programCache.get(t);if(e===null){const r=FX(t);e=this.device.createProgram(t),this.programCache.add(r,e)}return e}destroy(){for(const t of this.bindingsCache.values())t.destroy();for(const t of this.renderPipelinesCache.values())t.destroy();for(const t of this.inputLayoutsCache.values())t.destroy();for(const t of this.programCache.values())t.destroy();this.bindingsCache.clear(),this.renderPipelinesCache.clear(),this.inputLayoutsCache.clear(),this.programCache.clear()}},kX=class{constructor(t,e){const{data:r,type:n,count:a=0}=e;let l;Zm(r)?l=r:l=new Gm[this.type||H.UNSIGNED_INT](r),this.type=n,this.count=a,this.indexBuffer=t.createBuffer({viewOrSize:l,usage:Si.INDEX})}get(){return this.indexBuffer}subData({data:t}){let e;Zm(t)?e=t:e=new Gm[this.type||H.UNSIGNED_INT](t),this.indexBuffer.setSubData(0,new Uint8Array(e.buffer))}destroy(){this.indexBuffer.destroy()}};function l8(t){return!!(t&&t.texture)}var ZE=class{constructor(t,e){this.device=t,this.options=e,this.isDestroy=!1;const{wrapS:r=H.CLAMP_TO_EDGE,wrapT:n=H.CLAMP_TO_EDGE,aniso:a,mag:l=H.NEAREST,min:o=H.NEAREST}=e;this.createTexture(e),this.sampler=t.createSampler({addressModeU:i8[r],addressModeV:i8[n],minFilter:o===H.NEAREST?wo.POINT:wo.BILINEAR,magFilter:l===H.NEAREST?wo.POINT:wo.BILINEAR,mipmapFilter:da.NO_MIP,maxAnisotropy:a})}createTexture(t){const{type:e=H.UNSIGNED_BYTE,width:r,height:n,flipY:a=!1,format:l=H.RGBA,alignment:o=1,usage:p=u3.SAMPLED,unorm:m=!1,label:v}=t;let{data:E}=t;this.width=r,this.height=n;let b=ze.U8_RGBA_RT;if(e===H.UNSIGNED_BYTE&&l===H.RGBA)b=m?ze.U8_RGBA_NORM:ze.U8_RGBA_RT;else if(e===H.UNSIGNED_BYTE&&l===H.LUMINANCE)b=ze.U8_LUMINANCE;else if(e===H.FLOAT&&l===H.LUMINANCE)b=ze.F32_LUMINANCE;else if(e===H.FLOAT&&l===H.RGB)this.device.queryVendorInfo().platformString==="WebGPU"?(E&&(E=CX(E,0)),b=ze.F32_RGBA):b=ze.F32_RGB;else if(e===H.FLOAT&&l===H.RGBA)b=ze.F32_RGBA;else if(e===H.FLOAT&&l===H.RED)b=ze.F32_R;else throw new Error(`create texture error, type: ${e}, format: ${l}`);this.texture=this.device.createTexture({format:b,width:r,height:n,usage:p===u3.SAMPLED?gs.SAMPLED:gs.RENDER_TARGET,pixelStore:{unpackFlipY:a,packAlignment:o},mipLevelCount:1}),v&&this.device.setResourceName(this.texture,v),E&&this.texture.setImageData([E])}get(){return this.texture}update(t){const{data:e}=t;this.texture.setImageData([e])}bind(){}resize({width:t,height:e}){(this.width!==t||this.height!==e)&&this.destroy(),this.options.width=t,this.options.height=e,this.createTexture(this.options),this.isDestroy=!1}getSize(){return[this.width,this.height]}destroy(){var t;!this.isDestroy&&!this.texture.destroyed&&((t=this.texture)==null||t.destroy()),this.isDestroy=!0}},$E=class{constructor(t,e){this.device=t,this.options=e,this.createColorRenderTarget(),this.createDepthRenderTarget()}createColorRenderTarget(t=!1){const{width:e,height:r,color:n}=this.options;n&&(l8(n)?(t&&n.resize({width:e,height:r}),this.colorTexture=n.get(),this.colorRenderTarget=this.device.createRenderTargetFromTexture(this.colorTexture),this.width=n.width,this.height=n.height):e&&r&&(this.colorTexture=this.device.createTexture({format:ze.U8_RGBA_RT,usage:gs.RENDER_TARGET,width:e,height:r}),this.colorRenderTarget=this.device.createRenderTargetFromTexture(this.colorTexture),this.width=e,this.height=r))}createDepthRenderTarget(t=!1){const{width:e,height:r,depth:n}=this.options;n&&(l8(n)?(t&&n.resize({width:e,height:r}),this.depthTexture=n.get(),this.depthRenderTarget=this.device.createRenderTargetFromTexture(this.depthTexture),this.width=n.width,this.height=n.height):e&&r&&(this.depthTexture=this.device.createTexture({format:ze.D24_S8,usage:gs.RENDER_TARGET,width:e,height:r}),this.depthRenderTarget=this.device.createRenderTargetFromTexture(this.depthTexture),this.width=e,this.height=r))}get(){return this.colorRenderTarget}destroy(){var t,e;(t=this.colorRenderTarget)==null||t.destroy(),(e=this.depthRenderTarget)==null||e.destroy()}resize({width:t,height:e}){(this.width!==t||this.height!==e)&&(this.destroy(),this.colorTexture.destroyed=!0,this.depthTexture.destroyed=!0,this.options.width=t,this.options.height=e,this.createColorRenderTarget(!0),this.createDepthRenderTarget(!0))}},UX=Object.defineProperty,zX=Object.defineProperties,VX=Object.getOwnPropertyDescriptors,u8=Object.getOwnPropertySymbols,HX=Object.prototype.hasOwnProperty,jX=Object.prototype.propertyIsEnumerable,c8=(t,e,r)=>e in t?UX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Vh=(t,e)=>{for(var r in e||(e={}))HX.call(e,r)&&c8(t,r,e[r]);if(u8)for(var r of u8(e))jX.call(e,r)&&c8(t,r,e[r]);return t},XX=(t,e)=>zX(t,VX(e)),{isPlainObject:WX,isTypedArray:GX,isNil:h8}=Ko,ZX=class{constructor(t,e,r){this.device=t,this.options=e,this.service=r,this.destroyed=!1,this.uniforms={},this.vertexBuffers=[];const{vs:n,fs:a,attributes:l,uniforms:o,count:p,elements:m,diagnosticDerivativeUniformityEnabled:v}=e;this.options=e;const E=v?"":this.service.viewportOrigin===ku.UPPER_LEFT?"diagnostic(off,derivative_uniformity);":"";this.program=r.renderCache.createProgram({vertex:{glsl:n},fragment:{glsl:a,postprocess:O=>E+O}}),o&&(this.uniforms=this.extractUniforms(o));const b=[];let A=0;Object.keys(l).forEach(O=>{const D=l[O],N=D.get();this.vertexBuffers.push(N.get());const{offset:W=0,stride:G=0,size:Y=1,divisor:Q=0,shaderLocation:J=0}=D.attribute;b.push({arrayStride:G||Y*4,stepMode:rf.VERTEX,attributes:[{format:bX[Y],shaderLocation:J,offset:W,divisor:Q}]}),A=N.size/Y}),p||(this.options.count=A),m&&(this.indexBuffer=m.get());const R=r.renderCache.createInputLayout({vertexBufferDescriptors:b,indexBufferFormat:m?ze.U32_R:null,program:this.program});this.inputLayout=R,this.pipeline=this.createPipeline(e)}createPipeline(t,e){var r;const{primitive:n=H.TRIANGLES,depth:a,cull:l,blend:o,stencil:p}=t,m=this.initDepthDrawParams({depth:a}),v=!!(m&&m.enable),E=this.initCullDrawParams({cull:l}),b=!!(E&&E.enable),A=this.getBlendDrawParams({blend:o}),R=!!(A&&A.enable),O=this.getStencilDrawParams({stencil:p}),D=!!(O&&O.enable),N=this.device.createRenderPipeline({inputLayout:this.inputLayout,program:this.program,topology:xX[n],colorAttachmentFormats:[ze.U8_RGBA_RT],depthStencilAttachmentFormat:ze.D24_S8,megaStateDescriptor:{attachmentsState:[e?{channelWriteMask:wa.ALL,rgbBlendState:{blendMode:Ra.ADD,blendSrcFactor:kn.ONE,blendDstFactor:kn.ZERO},alphaBlendState:{blendMode:Ra.ADD,blendSrcFactor:kn.ONE,blendDstFactor:kn.ZERO}}:{channelWriteMask:D&&O.opFront.zpass===fo.REPLACE?wa.NONE:wa.ALL,rgbBlendState:{blendMode:R&&A.equation.rgb||Ra.ADD,blendSrcFactor:R&&A.func.srcRGB||kn.SRC_ALPHA,blendDstFactor:R&&A.func.dstRGB||kn.ONE_MINUS_SRC_ALPHA},alphaBlendState:{blendMode:R&&A.equation.alpha||Ra.ADD,blendSrcFactor:R&&A.func.srcAlpha||kn.ONE,blendDstFactor:R&&A.func.dstAlpha||kn.ONE}}],blendConstant:R?u_:void 0,depthWrite:v,depthCompare:v&&m.func||ui.LESS,cullMode:b&&E.face||rl.NONE,stencilWrite:D,stencilFront:{compare:D?O.func.cmp:ui.ALWAYS,passOp:O.opFront.zpass,failOp:O.opFront.fail,depthFailOp:O.opFront.zfail,mask:O.opFront.mask},stencilBack:{compare:D?O.func.cmp:ui.ALWAYS,passOp:O.opBack.zpass,failOp:O.opBack.fail,depthFailOp:O.opBack.zfail,mask:O.opBack.mask}}});return D&&!h8((r=p==null?void 0:p.func)==null?void 0:r.ref)&&(N.stencilFuncReference=p.func.ref),N}updateAttributesAndElements(){}updateAttributes(){}addUniforms(t){this.uniforms=Vh(Vh({},this.uniforms),this.extractUniforms(t))}draw(t,e){const r=Vh(Vh({},this.options),t),{count:n=0,instances:a,elements:l,uniforms:o={},uniformBuffers:p,textures:m}=r;this.uniforms=Vh(Vh({},this.uniforms),this.extractUniforms(o));const{renderPass:v,currentFramebuffer:E,width:b,height:A}=this.service;this.pipeline=this.createPipeline(r,e);const R=this.service.device,O=R.swapChainHeight;if(R.swapChainHeight=(E==null?void 0:E.height)||A,v.setViewport(0,0,(E==null?void 0:E.width)||b,(E==null?void 0:E.height)||A),R.swapChainHeight=O,v.setPipeline(this.pipeline),h8(this.pipeline.stencilFuncReference)||v.setStencilReference(this.pipeline.stencilFuncReference),v.setVertexInput(this.inputLayout,this.vertexBuffers.map(D=>({buffer:D})),l?{buffer:this.indexBuffer,offset:0}:null),p&&(this.bindings=R.createBindings({pipeline:this.pipeline,uniformBufferBindings:p.map((D,N)=>{const W=D;return{binding:N,buffer:W.get(),size:W.size}}),samplerBindings:m==null?void 0:m.map(D=>({texture:D.texture,sampler:D.sampler}))})),this.bindings&&(v.setBindings(this.bindings),Object.keys(this.uniforms).forEach(D=>{const N=this.uniforms[D];N instanceof ZE?this.uniforms[D]=N.get():N instanceof $E&&(this.uniforms[D]=N.get().texture)}),this.program.setUniformsLegacy(this.uniforms)),l){const D=l.count;D===0?v.draw(n,a):v.drawIndexed(D,a)}else v.draw(n,a)}destroy(){var t,e,r;(t=this.vertexBuffers)==null||t.forEach(n=>n.destroy()),(e=this.indexBuffer)==null||e.destroy(),(r=this.bindings)==null||r.destroy(),this.pipeline.destroy(),this.destroyed=!0}initDepthDrawParams({depth:t}){if(t)return{enable:t.enable===void 0?!0:!!t.enable,mask:t.mask===void 0?!0:!!t.mask,func:TX[t.func||H.LESS],range:t.range||[0,1]}}getBlendDrawParams({blend:t}){const{enable:e,func:r,equation:n,color:a=[0,0,0,0]}=t||{};return{enable:!!e,func:{srcRGB:j0[r&&r.srcRGB||H.SRC_ALPHA],srcAlpha:j0[r&&r.srcAlpha||H.SRC_ALPHA],dstRGB:j0[r&&r.dstRGB||H.ONE_MINUS_SRC_ALPHA],dstAlpha:j0[r&&r.dstAlpha||H.ONE_MINUS_SRC_ALPHA]},equation:{rgb:o8[n&&n.rgb||H.FUNC_ADD],alpha:o8[n&&n.alpha||H.FUNC_ADD]},color:a}}getStencilDrawParams({stencil:t}){const{enable:e,mask:r=4294967295,func:n={cmp:H.ALWAYS,ref:0,mask:4294967295},opFront:a={fail:H.KEEP,zfail:H.KEEP,zpass:H.KEEP},opBack:l={fail:H.KEEP,zfail:H.KEEP,zpass:H.KEEP}}=t||{};return{enable:!!e,mask:r,func:XX(Vh({},n),{cmp:SX[n.cmp]}),opFront:{fail:Jf[a.fail],zfail:Jf[a.zfail],zpass:Jf[a.zpass],mask:n.mask},opBack:{fail:Jf[l.fail],zfail:Jf[l.zfail],zpass:Jf[l.zpass],mask:n.mask}}}initCullDrawParams({cull:t}){if(t){const{enable:e,face:r=H.BACK}=t;return{enable:!!e,face:AX[r]}}}extractUniforms(t){const e={};return Object.keys(t).forEach(r=>{this.extractUniformsRecursively(r,t[r],e,"")}),e}extractUniformsRecursively(t,e,r,n){if(e===null||typeof e=="number"||typeof e=="boolean"||Array.isArray(e)&&typeof e[0]=="number"||GX(e)||e===""||"resize"in e){r[`${n&&n+"."}${t}`]=e;return}WX(e)&&Object.keys(e).forEach(a=>{this.extractUniformsRecursively(a,e[a],r,`${n&&n+"."}${t}`)}),Array.isArray(e)&&e.forEach((a,l)=>{Object.keys(a).forEach(o=>{this.extractUniformsRecursively(o,a[o],r,`${n&&n+"."}${t}[${l}]`)})})}};function $X(t){return typeof WebGL2RenderingContext<"u"&&t instanceof WebGL2RenderingContext?!0:!!(t&&t._version===2)}var wg=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),{isUndefined:W0}=Ko,qX=class{constructor(){this.uniformBuffers=[],this.queryVerdorInfo=()=>this.device.queryVendorInfo().platformString,this.createModel=t=>new ZX(this.device,t,this),this.createAttribute=t=>new yX(this.device,t),this.createBuffer=t=>new RX(this.device,t),this.createElements=t=>new kX(this.device,t),this.createTexture2D=t=>new ZE(this.device,t),this.createFramebuffer=t=>new $E(this.device,t),this.useFramebuffer=(t,e)=>{this.currentFramebuffer=t,this.beginFrame(),e(),this.endFrame(),this.currentFramebuffer=null},this.useFramebufferAsync=(t,e)=>wg(this,null,function*(){this.currentFramebuffer=t,this.preRenderPass=this.renderPass,this.beginFrame(),yield e(),this.endFrame(),this.currentFramebuffer=null,this.renderPass=this.preRenderPass}),this.clear=t=>{const{color:e,depth:r,stencil:n,framebuffer:a=null}=t;if(a)a.clearOptions={color:e,depth:r,stencil:n};else{const l=this.queryVerdorInfo();if(l==="WebGL1"){const o=this.getGLContext();W0(n)?W0(r)||(o.clearDepth(r),o.clear(o.DEPTH_BUFFER_BIT)):(o.clearStencil(n),o.clear(o.STENCIL_BUFFER_BIT))}else if(l==="WebGL2"){const o=this.getGLContext();W0(n)?W0(r)||o.clearBufferfv(o.DEPTH,0,[r]):o.clearBufferiv(o.STENCIL,0,[n])}}},this.viewport=({width:t,height:e})=>{this.swapChain.configureSwapChain(t,e),this.createMainColorDepthRT(t,e),this.width=t,this.height=e},this.readPixels=t=>{const{framebuffer:e,x:r,y:n,width:a,height:l}=t,o=this.device.createReadback(),p=e.colorTexture,m=o.readTextureSync(p,r,this.viewportOrigin===ku.LOWER_LEFT?n:this.height-n,a,l,new Uint8Array(a*l*4));if(this.viewportOrigin!==ku.LOWER_LEFT)for(let v=0;vwg(this,null,function*(){const{framebuffer:e,x:r,y:n,width:a,height:l}=t,o=this.device.createReadback(),p=e.colorTexture,m=yield o.readTexture(p,r,this.viewportOrigin===ku.LOWER_LEFT?n:this.height-n,a,l,new Uint8Array(a*l*4));if(this.viewportOrigin!==ku.LOWER_LEFT)for(let v=0;v({width:this.width,height:this.height}),this.getContainer=()=>{var t;return(t=this.canvas)==null?void 0:t.parentElement},this.getCanvas=()=>this.canvas,this.getGLContext=()=>this.device.gl,this.destroy=()=>{var t;this.canvas=null,(t=this.uniformBuffers)==null||t.forEach(e=>{e.destroy()}),this.device.destroy(),this.renderCache.destroy()}}init(t,e){return wg(this,null,function*(){const{enableWebGPU:r,shaderCompilerPath:n,antialias:a}=e;this.canvas=t;const o=yield(r?new vX({shaderCompilerPath:n}):new Mj({targets:["webgl2","webgl1"],antialias:a,onContextLost(m){console.warn("context lost",m)},onContextCreationError(m){console.warn("context creation error",m)},onContextRestored(m){console.warn("context restored",m)}})).createSwapChain(t);o.configureSwapChain(t.width,t.height),this.device=o.getDevice(),this.swapChain=o,this.renderCache=new NX(this.device),this.currentFramebuffer=null,this.viewportOrigin=this.device.queryVendorInfo().viewportOrigin;const p=this.device.gl;this.extensionObject={OES_texture_float:!$X(p)&&this.device.OES_texture_float},this.createMainColorDepthRT(t.width,t.height)})}createMainColorDepthRT(t,e){this.mainColorRT&&this.mainColorRT.destroy(),this.mainDepthRT&&this.mainDepthRT.destroy(),this.mainColorRT=this.device.createRenderTargetFromTexture(this.device.createTexture({format:ze.U8_RGBA_RT,width:t,height:e,usage:gs.RENDER_TARGET})),this.mainDepthRT=this.device.createRenderTargetFromTexture(this.device.createTexture({format:ze.D24_S8,width:t,height:e,usage:gs.RENDER_TARGET}))}beginFrame(){this.device.beginFrame();const{currentFramebuffer:t,swapChain:e,mainColorRT:r,mainDepthRT:n}=this,a=t?t.colorRenderTarget:r,l=t?null:e.getOnscreenTexture(),o=t?t.depthRenderTarget:n,{color:p=[0,0,0,0],depth:m=1,stencil:v=0}=(t==null?void 0:t.clearOptions)||{},E=a?D3(p[0]*255,p[1]*255,p[2]*255,p[3]):u_,b=o?m:void 0,A=o?v:void 0,R=this.device.createRenderPass({colorAttachment:[a],colorResolveTo:[l],colorClearColor:[E],colorStore:[!0],depthStencilAttachment:o,depthClearValue:b,stencilClearValue:A});this.renderPass=R}endFrame(){this.device.submitPass(this.renderPass),this.device.endFrame()}getPointSizeRange(){const t=this.device.gl;return t.getParameter(t.ALIASED_POINT_SIZE_RANGE)}testExtension(t){return!!this.getGLContext().getExtension(t)}setState(){}setBaseState(){}setCustomLayerDefaults(){}setDirty(t){this.isDirty=t}getDirty(){return this.isDirty}},qE={exports:{}};(function(t,e){(function(r,n){t.exports=n()})($m,function(){var r=function(B){return B instanceof Uint8Array||B instanceof Uint16Array||B instanceof Uint32Array||B instanceof Int8Array||B instanceof Int16Array||B instanceof Int32Array||B instanceof Float32Array||B instanceof Float64Array||B instanceof Uint8ClampedArray},n=function(B,ae){for(var be=Object.keys(ae),et=0;et"u";case"symbol":return typeof B=="symbol"}}function A(B,ae,be){b(B,ae)||o("invalid parameter type"+m(be)+". expected "+ae+", got "+typeof B)}function R(B,ae){B>=0&&(B|0)===B||o("invalid parameter type, ("+B+")"+m(ae)+". must be a nonnegative integer")}function O(B,ae,be){ae.indexOf(B)<0&&o("invalid value"+m(be)+". must be one of: "+ae)}var D=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function N(B){Object.keys(B).forEach(function(ae){D.indexOf(ae)<0&&o('invalid regl constructor argument "'+ae+'". must be one of '+D)})}function W(B,ae){for(B=B+"";B.length0&&ae.push(new Q("unknown",0,be))}}),ae}function ct(B,ae){ae.forEach(function(be){var et=B[be.file];if(et){var gt=et.index[be.line];if(gt){gt.errors.push(be),et.hasErrors=!0;return}}B.unknown.hasErrors=!0,B.unknown.lines[0].errors.push(be)})}function Ve(B,ae,be,et,gt){if(!B.getShaderParameter(ae,B.COMPILE_STATUS)){var rt=B.getShaderInfoLog(ae),$e=et===B.FRAGMENT_SHADER?"fragment":"vertex";Ht(be,"string",$e+" shader source must be a string",gt);var Bt=ce(be,gt),It=ke(rt);ct(Bt,It),Object.keys(Bt).forEach(function(Zt){var kt=Bt[Zt];if(!kt.hasErrors)return;var Xt=[""],Kt=[""];function Mt(Wt,Xe){Xt.push(Wt),Kt.push(Xe||"")}Mt("file number "+Zt+": "+kt.name+` `,"color:red;text-decoration:underline;font-weight:bold"),kt.lines.forEach(function(Wt){if(Wt.errors.length>0){Mt(W(Wt.number,4)+"| ","background-color:yellow; font-weight:bold"),Mt(Wt.line+a,"color:red; background-color:yellow; font-weight:bold");var Xe=0;Wt.errors.forEach(function(ut){var Ft=ut.message,nr=/^\s*'(.*)'\s*:\s*(.*)$/.exec(Ft);if(nr){var At=nr[1];switch(Ft=nr[2],At){case"assign":At="=";break}Xe=Math.max(Wt.line.indexOf(At,Xe),0)}else Xe=0;Mt(W("| ",6)),Mt(W("^^^",Xe+3)+a,"font-weight:bold"),Mt(W("| ",6)),Mt(Ft+a,"font-weight:bold")}),Mt(W("| ",6)+a)}else Mt(W(Wt.number,4)+"| "),Mt(Wt.line+a,"color:red")}),typeof document<"u"&&!window.chrome?(Kt[0]=Xt.join("%c"),console.log.apply(console,Kt)):console.log(Xt.join(""))}),p.raise("Error compiling "+$e+" shader, "+Bt[0].name)}}function Te(B,ae,be,et,gt){if(!B.getProgramParameter(ae,B.LINK_STATUS)){var rt=B.getProgramInfoLog(ae),$e=ce(be,gt),Bt=ce(et,gt),It='Error linking program with vertex shader, "'+Bt[0].name+'", and fragment shader "'+$e[0].name+'"';typeof document<"u"?console.log("%c"+It+a+"%c"+rt,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(It+a+rt),p.raise(It)}}function Fe(B){B._commandRef=J()}function He(B,ae,be,et){Fe(B);function gt(It){return It?et.id(It):0}B._fragId=gt(B.static.frag),B._vertId=gt(B.static.vert);function rt(It,Zt){Object.keys(Zt).forEach(function(kt){It[et.id(kt)]=!0})}var $e=B._uniformSet={};rt($e,ae.static),rt($e,ae.dynamic);var Bt=B._attributeSet={};rt(Bt,be.static),rt(Bt,be.dynamic),B._hasCount="count"in B.static||"count"in B.dynamic||"elements"in B.static||"elements"in B.dynamic}function nt(B,ae){var be=Se();o(B+" in command "+(ae||J())+(be==="unknown"?"":" called from "+be))}function Ut(B,ae,be){B||nt(ae,be||J())}function $t(B,ae,be,et){B in ae||nt("unknown parameter ("+B+")"+m(be)+". possible values: "+Object.keys(ae).join(),et||J())}function Ht(B,ae,be,et){b(B,ae)||nt("invalid parameter type"+m(be)+". expected "+ae+", got "+typeof B,et||J())}function Or(B){B()}function mr(B,ae,be){B.texture?O(B.texture._texture.internalformat,ae,"unsupported texture format for attachment"):O(B.renderbuffer._renderbuffer.format,be,"unsupported renderbuffer format for attachment")}var yr=33071,Yr=9728,Jr=9984,vn=9985,Rn=9986,nn=9987,Yi=5120,An=5121,Ni=5122,qe=5123,Yt=5124,wr=5125,St=5126,Er=32819,on=32820,yn=33635,tn=34042,Kr=36193,Sn={};Sn[Yi]=Sn[An]=1,Sn[Ni]=Sn[qe]=Sn[Kr]=Sn[yn]=Sn[Er]=Sn[on]=2,Sn[Yt]=Sn[wr]=Sn[St]=Sn[tn]=4;function eo(B,ae){return B===on||B===Er||B===yn?2:B===tn?4:Sn[B]*ae}function ei(B){return!(B&B-1)&&!!B}function ni(B,ae,be){var et,gt=ae.width,rt=ae.height,$e=ae.channels;p(gt>0&><=be.maxTextureSize&&rt>0&&rt<=be.maxTextureSize,"invalid texture shape"),(B.wrapS!==yr||B.wrapT!==yr)&&p(ei(gt)&&ei(rt),"incompatible wrap mode for texture, both width and height must be power of 2"),ae.mipmask===1?gt!==1&&rt!==1&&p(B.minFilter!==Jr&&B.minFilter!==Rn&&B.minFilter!==vn&&B.minFilter!==nn,"min filter requires mipmap"):(p(ei(gt)&&ei(rt),"texture must be a square power of 2 to support mipmapping"),p(ae.mipmask===(gt<<1)-1,"missing or incomplete mipmap data")),ae.type===St&&(be.extensions.indexOf("oes_texture_float_linear")<0&&p(B.minFilter===Yr&&B.magFilter===Yr,"filter not supported, must enable oes_texture_float_linear"),p(!B.genMipmaps,"mipmap generation not supported with float textures"));var Bt=ae.images;for(et=0;et<16;++et)if(Bt[et]){var It=gt>>et,Zt=rt>>et;p(ae.mipmask&1<0&><=et.maxTextureSize&&rt>0&&rt<=et.maxTextureSize,"invalid texture shape"),p(gt===rt,"cube map must be square"),p(ae.wrapS===yr&&ae.wrapT===yr,"wrap mode not supported by cube map");for(var Bt=0;Bt>kt,Mt=rt>>kt;p(It.mipmask&1<1&&ae===be&&(ae==='"'||ae==="'"))return['"'+vs(B.substr(1,B.length-2))+'"'];var et=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(B);if(et)return ci(B.substr(0,et.index)).concat(ci(et[1])).concat(ci(B.substr(et.index+et[0].length)));var gt=B.split(".");if(gt.length===1)return['"'+vs(B)+'"'];for(var rt=[],$e=0;$e"u"?1:window.devicePixelRatio,kt=!1,Xt=function(Wt){Wt&&le.raise(Wt)},Kt=function(){};if(typeof ae=="string"?(le(typeof document<"u","selector queries only supported in DOM enviroments"),be=document.querySelector(ae),le(be,"invalid query string for element")):typeof ae=="object"?Vu(ae)?be=ae:al(ae)?(rt=ae,gt=rt.canvas):(le.constructor(ae),"gl"in ae?rt=ae.gl:"canvas"in ae?gt=Xa(ae.canvas):"container"in ae&&(et=Xa(ae.container)),"attributes"in ae&&($e=ae.attributes,le.type($e,"object","invalid context attributes")),"extensions"in ae&&(Bt=ja(ae.extensions)),"optionalExtensions"in ae&&(It=ja(ae.optionalExtensions)),"onDone"in ae&&(le.type(ae.onDone,"function","invalid or missing onDone callback"),Xt=ae.onDone),"profile"in ae&&(kt=!!ae.profile),"pixelRatio"in ae&&(Zt=+ae.pixelRatio,le(Zt>0,"invalid pixel ratio"))):le.raise("invalid arguments to regl"),be&&(be.nodeName.toLowerCase()==="canvas"?gt=be:et=be),!rt){if(!gt){le(typeof document<"u","must manually specify webgl context outside of DOM environments");var Mt=du(et||document.body,Xt,Zt);if(!Mt)return null;gt=Mt.canvas,Kt=Mt.onDestroy}$e.premultipliedAlpha===void 0&&($e.premultipliedAlpha=!0),rt=ol(gt,$e)}return rt?{gl:rt,canvas:gt,container:et,extensions:Bt,optionalExtensions:It,pixelRatio:Zt,profile:kt,onDone:Xt,onDestroy:Kt}:(Kt(),Xt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function mu(B,ae){var be={};function et($e){le.type($e,"string","extension name must be string");var Bt=$e.toLowerCase(),It;try{It=be[Bt]=B.getExtension(Bt)}catch{}return!!It}for(var gt=0;gt65535)<<4,B>>>=ae,be=(B>255)<<3,B>>>=be,ae|=be,be=(B>15)<<2,B>>>=be,ae|=be,be=(B>3)<<1,B>>>=be,ae|=be,ae|B>>1}function We(){var B=Xn(8,function(){return[]});function ae(rt){var $e=te(rt),Bt=B[ye($e)>>2];return Bt.length>0?Bt.pop():new ArrayBuffer($e)}function be(rt){B[ye(rt.byteLength)>>2].push(rt)}function et(rt,$e){var Bt=null;switch(rt){case z:Bt=new Int8Array(ae($e),0,$e);break;case j:Bt=new Uint8Array(ae($e),0,$e);break;case Z:Bt=new Int16Array(ae(2*$e),0,$e);break;case oe:Bt=new Uint16Array(ae(2*$e),0,$e);break;case de:Bt=new Int32Array(ae(4*$e),0,$e);break;case Oe:Bt=new Uint32Array(ae(4*$e),0,$e);break;case Ne:Bt=new Float32Array(ae(4*$e),0,$e);break;default:return null}return Bt.length!==$e?Bt.subarray(0,$e):Bt}function gt(rt){be(rt.buffer)}return{alloc:ae,free:be,allocType:et,freeType:gt}}var mt=We();mt.zero=We();var Lt=3408,ht=3410,Rt=3411,vr=3412,dr=3413,pt=3414,or=3415,Gt=33901,qt=33902,an=3379,rr=3386,wn=34921,ti=36347,xn=36348,Ln=35661,sn=35660,Gi=34930,In=36349,ri=34076,zn=34024,ln=7936,bn=7937,jo=7938,Rl=35724,ki=34047,Ei=36063,Il=34852,rs=3553,vi=34067,sl=34069,mo=33984,yi=6408,Ui=5126,hi=5121,aa=36160,Qo=36053,yc=36064,Pa=16384,oh=function(B,ae){var be=1;ae.ext_texture_filter_anisotropic&&(be=B.getParameter(ki));var et=1,gt=1;ae.webgl_draw_buffers&&(et=B.getParameter(Il),gt=B.getParameter(Ei));var rt=!!ae.oes_texture_float;if(rt){var $e=B.createTexture();B.bindTexture(rs,$e),B.texImage2D(rs,0,yi,1,1,0,yi,Ui,null);var Bt=B.createFramebuffer();if(B.bindFramebuffer(aa,Bt),B.framebufferTexture2D(aa,yc,rs,$e,0),B.bindTexture(rs,null),B.checkFramebufferStatus(aa)!==Qo)rt=!1;else{B.viewport(0,0,1,1),B.clearColor(1,0,0,1),B.clear(Pa);var It=mt.allocType(Ui,4);B.readPixels(0,0,1,1,yi,Ui,It),B.getError()?rt=!1:(B.deleteFramebuffer(Bt),B.deleteTexture($e),rt=It[0]===1),mt.freeType(It)}}var Zt=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),kt=!0;if(!Zt){var Xt=B.createTexture(),Kt=mt.allocType(hi,36);B.activeTexture(mo),B.bindTexture(vi,Xt),B.texImage2D(sl,0,yi,3,3,0,yi,hi,Kt),mt.freeType(Kt),B.bindTexture(vi,null),B.deleteTexture(Xt),kt=!B.getError()}return{colorBits:[B.getParameter(ht),B.getParameter(Rt),B.getParameter(vr),B.getParameter(dr)],depthBits:B.getParameter(pt),stencilBits:B.getParameter(or),subpixelBits:B.getParameter(Lt),extensions:Object.keys(ae).filter(function(Mt){return!!ae[Mt]}),maxAnisotropic:be,maxDrawbuffers:et,maxColorAttachments:gt,pointSizeDims:B.getParameter(Gt),lineWidthDims:B.getParameter(qt),maxViewportDims:B.getParameter(rr),maxCombinedTextureUnits:B.getParameter(Ln),maxCubeMapSize:B.getParameter(ri),maxRenderbufferSize:B.getParameter(zn),maxTextureUnits:B.getParameter(Gi),maxTextureSize:B.getParameter(an),maxAttributes:B.getParameter(wn),maxVertexUniforms:B.getParameter(ti),maxVertexTextureUnits:B.getParameter(sn),maxVaryingVectors:B.getParameter(xn),maxFragmentUniforms:B.getParameter(In),glsl:B.getParameter(Rl),renderer:B.getParameter(bn),vendor:B.getParameter(ln),version:B.getParameter(jo),readFloat:rt,npotTextureCube:kt}};function $(B){return!!B&&typeof B=="object"&&Array.isArray(B.shape)&&Array.isArray(B.stride)&&typeof B.offset=="number"&&B.shape.length===B.stride.length&&(Array.isArray(B.data)||r(B.data))}var ie=function(B){return Object.keys(B).map(function(ae){return B[ae]})},Ie={shape:Lo,flatten:Ki};function tt(B,ae,be){for(var et=0;et0){var ir;if(Array.isArray(ut[0])){Ot=ll(ut);for(var wt=1,er=1;er0)if(typeof wt[0]=="number"){var tr=mt.allocType(At.dtype,wt.length);hf(tr,wt),Ot(tr,Fr),mt.freeType(tr)}else if(Array.isArray(wt[0])||r(wt[0])){rn=ll(wt);var Dt=Fs(wt,rn,At.dtype);Ot(Dt,Fr),mt.freeType(Dt)}else le.raise("invalid buffer data")}else if($(wt)){rn=wt.shape;var vt=wt.stride,Nr=0,En=0,lr=0,mn=0;rn.length===1?(Nr=rn[0],En=1,lr=vt[0],mn=0):rn.length===2?(Nr=rn[0],En=rn[1],lr=vt[0],mn=vt[1]):le.raise("invalid shape");var en=Array.isArray(wt.data)?At.dtype:o1(wt.data),Gr=mt.allocType(en,Nr*En);a1(Gr,wt.data,Nr,En,lr,mn,wt.offset),Ot(Gr,Fr),mt.freeType(Gr)}else le.raise("invalid data for buffer subdata");return sr}return Ft||sr(Xe),sr._reglType="buffer",sr._buffer=At,sr.subdata=ir,be.profile&&(sr.stats=At.stats),sr.destroy=function(){Kt(At)},sr}function Wt(){ie(rt).forEach(function(Xe){Xe.buffer=B.createBuffer(),B.bindBuffer(Xe.type,Xe.buffer),B.bufferData(Xe.type,Xe.persistentData||Xe.byteLength,Xe.usage)})}return be.profile&&(ae.getTotalBufferSize=function(){var Xe=0;return Object.keys(rt).forEach(function(ut){Xe+=rt[ut].stats.size}),Xe}),{create:Mt,createStream:It,destroyStream:Zt,clear:function(){ie(rt).forEach(Kt),Bt.forEach(Kt)},getBuffer:function(Xe){return Xe&&Xe._buffer instanceof $e?Xe._buffer:null},restore:Wt,_initBuffer:Xt}}var lh=0,uh=0,ff=1,pf=1,kp=4,Ec=4,Ns={points:lh,point:uh,lines:ff,line:pf,triangles:kp,triangle:Ec,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},df=0,Wo=1,_u=4,Ll=5120,Wa=5121,Dl=5122,is=5123,cl=5124,Ga=5125,hl=34963,Bl=35040,mf=35044;function _f(B,ae,be,et){var gt={},rt=0,$e={uint8:Wa,uint16:is};ae.oes_element_index_uint&&($e.uint32=Ga);function Bt(Wt){this.id=rt++,gt[this.id]=this,this.buffer=Wt,this.primType=_u,this.vertCount=0,this.type=0}Bt.prototype.bind=function(){this.buffer.bind()};var It=[];function Zt(Wt){var Xe=It.pop();return Xe||(Xe=new Bt(be.create(null,hl,!0,!1)._buffer)),Xt(Xe,Wt,Bl,-1,-1,0,0),Xe}function kt(Wt){It.push(Wt)}function Xt(Wt,Xe,ut,Ft,nr,At,sr){Wt.buffer.bind();var Ot;if(Xe){var ir=sr;!sr&&(!r(Xe)||$(Xe)&&!r(Xe.data))&&(ir=ae.oes_element_index_uint?Ga:is),be._initBuffer(Wt.buffer,Xe,ut,ir,3)}else B.bufferData(hl,At,ut),Wt.buffer.dtype=Ot||Wa,Wt.buffer.usage=ut,Wt.buffer.dimension=3,Wt.buffer.byteLength=At;if(Ot=sr,!sr){switch(Wt.buffer.dtype){case Wa:case Ll:Ot=Wa;break;case is:case Dl:Ot=is;break;case Ga:case cl:Ot=Ga;break;default:le.raise("unsupported type for element array")}Wt.buffer.dtype=Ot}Wt.type=Ot,le(Ot!==Ga||!!ae.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var wt=nr;wt<0&&(wt=Wt.buffer.byteLength,Ot===is?wt>>=1:Ot===Ga&&(wt>>=2)),Wt.vertCount=wt;var er=Ft;if(Ft<0){er=_u;var Fr=Wt.buffer.dimension;Fr===1&&(er=df),Fr===2&&(er=Wo),Fr===3&&(er=_u)}Wt.primType=er}function Kt(Wt){et.elementsCount--,le(Wt.buffer!==null,"must not double destroy elements"),delete gt[Wt.id],Wt.buffer.destroy(),Wt.buffer=null}function Mt(Wt,Xe){var ut=be.create(null,hl,!0),Ft=new Bt(ut._buffer);et.elementsCount++;function nr(At){if(!At)ut(),Ft.primType=_u,Ft.vertCount=0,Ft.type=Wa;else if(typeof At=="number")ut(At),Ft.primType=_u,Ft.vertCount=At|0,Ft.type=Wa;else{var sr=null,Ot=mf,ir=-1,wt=-1,er=0,Fr=0;Array.isArray(At)||r(At)||$(At)?sr=At:(le.type(At,"object","invalid arguments for elements"),"data"in At&&(sr=At.data,le(Array.isArray(sr)||r(sr)||$(sr),"invalid data for element buffer")),"usage"in At&&(le.parameter(At.usage,Bs,"invalid element buffer usage"),Ot=Bs[At.usage]),"primitive"in At&&(le.parameter(At.primitive,Ns,"invalid element buffer primitive"),ir=Ns[At.primitive]),"count"in At&&(le(typeof At.count=="number"&&At.count>=0,"invalid vertex count for elements"),wt=At.count|0),"type"in At&&(le.parameter(At.type,$e,"invalid buffer type"),Fr=$e[At.type]),"length"in At?er=At.length|0:(er=wt,Fr===is||Fr===Dl?er*=2:(Fr===Ga||Fr===cl)&&(er*=4))),Xt(Ft,sr,Ot,ir,wt,er,Fr)}return nr}return nr(Wt),nr._reglType="elements",nr._elements=Ft,nr.subdata=function(At,sr){return ut.subdata(At,sr),nr},nr.destroy=function(){Kt(Ft)},nr}return{create:Mt,createStream:Zt,destroyStream:kt,getElements:function(Wt){return typeof Wt=="function"&&Wt._elements instanceof Bt?Wt._elements:null},clear:function(){ie(gt).forEach(Kt)}}}var ii=new Float32Array(1),Up=new Uint32Array(ii.buffer),s1=5123;function ch(B){for(var ae=mt.allocType(s1,B.length),be=0;be>>31<<15,rt=(et<<1>>>24)-127,$e=et>>13&1024-1;if(rt<-24)ae[be]=gt;else if(rt<-14){var Bt=-14-rt;ae[be]=gt+($e+1024>>Bt)}else rt>15?ae[be]=gt+31744:ae[be]=gt+(rt+15<<10)+$e}return ae}function Vi(B){return Array.isArray(B)||r(B)}var hh=function(B){return!(B&B-1)&&!!B},gf=34467,va=3553,fl=34067,ks=34069,Fl=6408,l1=6406,ju=6407,xs=6409,Tc=6410,Nl=32854,pl=32855,fh=36194,Ac=32819,di=32820,u1=33635,zp=34042,kl=6402,Sc=34041,ph=35904,c1=35906,dl=36193,Ul=33776,gu=33777,Xu=33778,vu=33779,yu=35986,dh=35987,xu=34798,os=35840,mh=35841,_h=35842,gh=35843,zl=36196,Us=5121,Wu=5123,wc=5125,Vl=5126,Vp=10242,h1=10243,vh=10497,f1=33071,vf=33648,p1=10240,yh=10241,Cc=9728,xh=9729,bu=9984,bh=9985,Hl=9986,mi=9987,d1=33170,zs=4352,jl=4353,Dn=4354,_i=34046,Za=3317,Rc=37440,Gu=37441,Ic=37443,yf=37444,m1=33984,Mc=[bu,Hl,bh,mi],Xl=[0,xs,Tc,ju,Fl],go={};go[xs]=go[l1]=go[kl]=1,go[Sc]=go[Tc]=2,go[ju]=go[ph]=3,go[Fl]=go[c1]=4;function wi(B){return"[object "+B+"]"}var Zu=wi("HTMLCanvasElement"),Eh=wi("OffscreenCanvas"),Zi=wi("CanvasRenderingContext2D"),_r=wi("ImageBitmap"),ya=wi("HTMLImageElement"),Pc=wi("HTMLVideoElement"),$u=Object.keys(_o).concat([Zu,Eh,Zi,_r,ya,Pc]),sa=[];sa[Us]=1,sa[Vl]=4,sa[dl]=2,sa[Wu]=2,sa[wc]=4;var ai=[];ai[Nl]=2,ai[pl]=2,ai[fh]=2,ai[Sc]=4,ai[Ul]=.5,ai[gu]=.5,ai[Xu]=1,ai[vu]=1,ai[yu]=.5,ai[dh]=1,ai[xu]=1,ai[os]=.5,ai[mh]=.25,ai[_h]=.5,ai[gh]=.25,ai[zl]=.5;function _1(B){return Array.isArray(B)&&(B.length===0||typeof B[0]=="number")}function Jt(B){if(!Array.isArray(B))return!1;var ae=B.length;return!(ae===0||!Vi(B[0]))}function ml(B){return Object.prototype.toString.call(B)}function Oc(B){return ml(B)===Zu}function g1(B){return ml(B)===Eh}function as(B){return ml(B)===Zi}function La(B){return ml(B)===_r}function v1(B){return ml(B)===ya}function y1(B){return ml(B)===Pc}function la(B){if(!B)return!1;var ae=ml(B);return $u.indexOf(ae)>=0?!0:_1(B)||Jt(B)||$(B)}function Vs(B){return _o[Object.prototype.toString.call(B)]|0}function xf(B,ae){var be=ae.length;switch(B.type){case Us:case Wu:case wc:case Vl:var et=mt.allocType(B.type,be);et.set(ae),B.data=et;break;case dl:B.data=ch(ae);break;default:le.raise("unsupported texture type, must specify a typed array")}}function qu(B,ae){return mt.allocType(B.type===dl?Vl:B.type,ae)}function x1(B,ae){B.type===dl?(B.data=ch(ae),mt.freeType(ae)):B.data=ae}function Th(B,ae,be,et,gt,rt){for(var $e=B.width,Bt=B.height,It=B.channels,Zt=$e*Bt*It,kt=qu(B,Zt),Xt=0,Kt=0;Kt=1;)Bt+=$e*It*It,It/=2;return Bt}else return $e*be*et}function $a(B,ae,be,et,gt,rt,$e){var Bt={"don't care":zs,"dont care":zs,nice:Dn,fast:jl},It={repeat:vh,clamp:f1,mirror:vf},Zt={nearest:Cc,linear:xh},kt=n({mipmap:mi,"nearest mipmap nearest":bu,"linear mipmap nearest":bh,"nearest mipmap linear":Hl,"linear mipmap linear":mi},Zt),Xt={none:0,browser:yf},Kt={uint8:Us,rgba4:Ac,rgb565:u1,"rgb5 a1":di},Mt={alpha:l1,luminance:xs,"luminance alpha":Tc,rgb:ju,rgba:Fl,rgba4:Nl,"rgb5 a1":pl,rgb565:fh},Wt={};ae.ext_srgb&&(Mt.srgb=ph,Mt.srgba=c1),ae.oes_texture_float&&(Kt.float32=Kt.float=Vl),ae.oes_texture_half_float&&(Kt.float16=Kt["half float"]=dl),ae.webgl_depth_texture&&(n(Mt,{depth:kl,"depth stencil":Sc}),n(Kt,{uint16:Wu,uint32:wc,"depth stencil":zp})),ae.webgl_compressed_texture_s3tc&&n(Wt,{"rgb s3tc dxt1":Ul,"rgba s3tc dxt1":gu,"rgba s3tc dxt3":Xu,"rgba s3tc dxt5":vu}),ae.webgl_compressed_texture_atc&&n(Wt,{"rgb atc":yu,"rgba atc explicit alpha":dh,"rgba atc interpolated alpha":xu}),ae.webgl_compressed_texture_pvrtc&&n(Wt,{"rgb pvrtc 4bppv1":os,"rgb pvrtc 2bppv1":mh,"rgba pvrtc 4bppv1":_h,"rgba pvrtc 2bppv1":gh}),ae.webgl_compressed_texture_etc1&&(Wt["rgb etc1"]=zl);var Xe=Array.prototype.slice.call(B.getParameter(gf));Object.keys(Wt).forEach(function(_e){var it=Wt[_e];Xe.indexOf(it)>=0&&(Mt[_e]=it)});var ut=Object.keys(Mt);be.textureFormats=ut;var Ft=[];Object.keys(Mt).forEach(function(_e){var it=Mt[_e];Ft[it]=_e});var nr=[];Object.keys(Kt).forEach(function(_e){var it=Kt[_e];nr[it]=_e});var At=[];Object.keys(Zt).forEach(function(_e){var it=Zt[_e];At[it]=_e});var sr=[];Object.keys(kt).forEach(function(_e){var it=kt[_e];sr[it]=_e});var Ot=[];Object.keys(It).forEach(function(_e){var it=It[_e];Ot[it]=_e});var ir=ut.reduce(function(_e,it){var Ke=Mt[it];return Ke===xs||Ke===l1||Ke===xs||Ke===Tc||Ke===kl||Ke===Sc||ae.ext_srgb&&(Ke===ph||Ke===c1)?_e[Ke]=Ke:Ke===pl||it.indexOf("rgba")>=0?_e[Ke]=Fl:_e[Ke]=ju,_e},{});function wt(){this.internalformat=Fl,this.format=Fl,this.type=Us,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=yf,this.width=0,this.height=0,this.channels=0}function er(_e,it){_e.internalformat=it.internalformat,_e.format=it.format,_e.type=it.type,_e.compressed=it.compressed,_e.premultiplyAlpha=it.premultiplyAlpha,_e.flipY=it.flipY,_e.unpackAlignment=it.unpackAlignment,_e.colorSpace=it.colorSpace,_e.width=it.width,_e.height=it.height,_e.channels=it.channels}function Fr(_e,it){if(!(typeof it!="object"||!it)){if("premultiplyAlpha"in it&&(le.type(it.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),_e.premultiplyAlpha=it.premultiplyAlpha),"flipY"in it&&(le.type(it.flipY,"boolean","invalid texture flip"),_e.flipY=it.flipY),"alignment"in it&&(le.oneOf(it.alignment,[1,2,4,8],"invalid texture unpack alignment"),_e.unpackAlignment=it.alignment),"colorSpace"in it&&(le.parameter(it.colorSpace,Xt,"invalid colorSpace"),_e.colorSpace=Xt[it.colorSpace]),"type"in it){var Ke=it.type;le(ae.oes_texture_float||!(Ke==="float"||Ke==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),le(ae.oes_texture_half_float||!(Ke==="half float"||Ke==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),le(ae.webgl_depth_texture||!(Ke==="uint16"||Ke==="uint32"||Ke==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),le.parameter(Ke,Kt,"invalid texture type"),_e.type=Kt[Ke]}var ur=_e.width,_n=_e.height,si=_e.channels,q=!1;"shape"in it?(le(Array.isArray(it.shape)&&it.shape.length>=2,"shape must be an array"),ur=it.shape[0],_n=it.shape[1],it.shape.length===3&&(si=it.shape[2],le(si>0&&si<=4,"invalid number of channels"),q=!0),le(ur>=0&&ur<=be.maxTextureSize,"invalid width"),le(_n>=0&&_n<=be.maxTextureSize,"invalid height")):("radius"in it&&(ur=_n=it.radius,le(ur>=0&&ur<=be.maxTextureSize,"invalid radius")),"width"in it&&(ur=it.width,le(ur>=0&&ur<=be.maxTextureSize,"invalid width")),"height"in it&&(_n=it.height,le(_n>=0&&_n<=be.maxTextureSize,"invalid height")),"channels"in it&&(si=it.channels,le(si>0&&si<=4,"invalid number of channels"),q=!0)),_e.width=ur|0,_e.height=_n|0,_e.channels=si|0;var ue=!1;if("format"in it){var Ee=it.format;le(ae.webgl_depth_texture||!(Ee==="depth"||Ee==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),le.parameter(Ee,Mt,"invalid texture format");var Qe=_e.internalformat=Mt[Ee];_e.format=ir[Qe],Ee in Kt&&("type"in it||(_e.type=Kt[Ee])),Ee in Wt&&(_e.compressed=!0),ue=!0}!q&&ue?_e.channels=go[_e.format]:q&&!ue?_e.channels!==Xl[_e.format]&&(_e.format=_e.internalformat=Xl[_e.channels]):ue&&q&&le(_e.channels===go[_e.format],"number of channels inconsistent with specified format")}}function rn(_e){B.pixelStorei(Rc,_e.flipY),B.pixelStorei(Gu,_e.premultiplyAlpha),B.pixelStorei(Ic,_e.colorSpace),B.pixelStorei(Za,_e.unpackAlignment)}function tr(){wt.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Dt(_e,it){var Ke=null;if(la(it)?Ke=it:it&&(le.type(it,"object","invalid pixel data type"),Fr(_e,it),"x"in it&&(_e.xOffset=it.x|0),"y"in it&&(_e.yOffset=it.y|0),la(it.data)&&(Ke=it.data)),le(!_e.compressed||Ke instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),it.copy){le(!Ke,"can not specify copy and data field for the same texture");var ur=gt.viewportWidth,_n=gt.viewportHeight;_e.width=_e.width||ur-_e.xOffset,_e.height=_e.height||_n-_e.yOffset,_e.needsCopy=!0,le(_e.xOffset>=0&&_e.xOffset=0&&_e.yOffset<_n&&_e.width>0&&_e.width<=ur&&_e.height>0&&_e.height<=_n,"copy texture read out of bounds")}else if(!Ke)_e.width=_e.width||1,_e.height=_e.height||1,_e.channels=_e.channels||4;else if(r(Ke))_e.channels=_e.channels||4,_e.data=Ke,!("type"in it)&&_e.type===Us&&(_e.type=Vs(Ke));else if(_1(Ke))_e.channels=_e.channels||4,xf(_e,Ke),_e.alignment=1,_e.needsFree=!0;else if($(Ke)){var si=Ke.data;!Array.isArray(si)&&_e.type===Us&&(_e.type=Vs(si));var q=Ke.shape,ue=Ke.stride,Ee,Qe,Ye,Re,De,Ue;q.length===3?(Ye=q[2],Ue=ue[2]):(le(q.length===2,"invalid ndarray pixel data, must be 2 or 3D"),Ye=1,Ue=1),Ee=q[0],Qe=q[1],Re=ue[0],De=ue[1],_e.alignment=1,_e.width=Ee,_e.height=Qe,_e.channels=Ye,_e.format=_e.internalformat=Xl[Ye],_e.needsFree=!0,Th(_e,si,Re,De,Ue,Ke.offset)}else if(Oc(Ke)||g1(Ke)||as(Ke))Oc(Ke)||g1(Ke)?_e.element=Ke:_e.element=Ke.canvas,_e.width=_e.element.width,_e.height=_e.element.height,_e.channels=4;else if(La(Ke))_e.element=Ke,_e.width=Ke.width,_e.height=Ke.height,_e.channels=4;else if(v1(Ke))_e.element=Ke,_e.width=Ke.naturalWidth,_e.height=Ke.naturalHeight,_e.channels=4;else if(y1(Ke))_e.element=Ke,_e.width=Ke.videoWidth,_e.height=Ke.videoHeight,_e.channels=4;else if(Jt(Ke)){var ge=_e.width||Ke[0].length,Pe=_e.height||Ke.length,se=_e.channels;Vi(Ke[0][0])?se=se||Ke[0][0].length:se=se||1;for(var Le=Ie.shape(Ke),at=1,dt=0;dt=0,"oes_texture_float extension not enabled"):_e.type===dl&&le(be.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function vt(_e,it,Ke){var ur=_e.element,_n=_e.data,si=_e.internalformat,q=_e.format,ue=_e.type,Ee=_e.width,Qe=_e.height;rn(_e),ur?B.texImage2D(it,Ke,q,q,ue,ur):_e.compressed?B.compressedTexImage2D(it,Ke,si,Ee,Qe,0,_n):_e.needsCopy?(et(),B.copyTexImage2D(it,Ke,q,_e.xOffset,_e.yOffset,Ee,Qe,0)):B.texImage2D(it,Ke,q,Ee,Qe,0,q,ue,_n||null)}function Nr(_e,it,Ke,ur,_n){var si=_e.element,q=_e.data,ue=_e.internalformat,Ee=_e.format,Qe=_e.type,Ye=_e.width,Re=_e.height;rn(_e),si?B.texSubImage2D(it,_n,Ke,ur,Ee,Qe,si):_e.compressed?B.compressedTexSubImage2D(it,_n,Ke,ur,ue,Ye,Re,q):_e.needsCopy?(et(),B.copyTexSubImage2D(it,_n,Ke,ur,_e.xOffset,_e.yOffset,Ye,Re)):B.texSubImage2D(it,_n,Ke,ur,Ye,Re,Ee,Qe,q)}var En=[];function lr(){return En.pop()||new tr}function mn(_e){_e.needsFree&&mt.freeType(_e.data),tr.call(_e),En.push(_e)}function en(){wt.call(this),this.genMipmaps=!1,this.mipmapHint=zs,this.mipmask=0,this.images=Array(16)}function Gr(_e,it,Ke){var ur=_e.images[0]=lr();_e.mipmask=1,ur.width=_e.width=it,ur.height=_e.height=Ke,ur.channels=_e.channels=4}function Wn(_e,it){var Ke=null;if(la(it))Ke=_e.images[0]=lr(),er(Ke,_e),Dt(Ke,it),_e.mipmask=1;else if(Fr(_e,it),Array.isArray(it.mipmap))for(var ur=it.mipmap,_n=0;_n>=_n,Ke.height>>=_n,Dt(Ke,ur[_n]),_e.mipmask|=1<<_n;else Ke=_e.images[0]=lr(),er(Ke,_e),Dt(Ke,it),_e.mipmask=1;er(_e,_e.images[0]),_e.compressed&&(_e.internalformat===Ul||_e.internalformat===gu||_e.internalformat===Xu||_e.internalformat===vu)&&le(_e.width%4===0&&_e.height%4===0,"for compressed texture formats, mipmap level 0 must have width and height that are a multiple of 4")}function no(_e,it){for(var Ke=_e.images,ur=0;ur=0&&!("faces"in it)&&(_e.genMipmaps=!0)}if("mag"in it){var ur=it.mag;le.parameter(ur,Zt),_e.magFilter=Zt[ur]}var _n=_e.wrapS,si=_e.wrapT;if("wrap"in it){var q=it.wrap;typeof q=="string"?(le.parameter(q,It),_n=si=It[q]):Array.isArray(q)&&(le.parameter(q[0],It),le.parameter(q[1],It),_n=It[q[0]],si=It[q[1]])}else{if("wrapS"in it){var ue=it.wrapS;le.parameter(ue,It),_n=It[ue]}if("wrapT"in it){var Ee=it.wrapT;le.parameter(Ee,It),si=It[Ee]}}if(_e.wrapS=_n,_e.wrapT=si,"anisotropic"in it){var Qe=it.anisotropic;le(typeof Qe=="number"&&Qe>=1&&Qe<=be.maxAnisotropic,"aniso samples must be between 1 and "),_e.anisotropic=it.anisotropic}if("mipmap"in it){var Ye=!1;switch(typeof it.mipmap){case"string":le.parameter(it.mipmap,Bt,"invalid mipmap hint"),_e.mipmapHint=Bt[it.mipmap],_e.genMipmaps=!0,Ye=!0;break;case"boolean":Ye=_e.genMipmaps=it.mipmap;break;case"object":le(Array.isArray(it.mipmap),"invalid mipmap type"),_e.genMipmaps=!1,Ye=!0;break;default:le.raise("invalid mipmap type")}Ye&&!("min"in it)&&(_e.minFilter=bu)}}function Eo(_e,it){B.texParameteri(it,yh,_e.minFilter),B.texParameteri(it,p1,_e.magFilter),B.texParameteri(it,Vp,_e.wrapS),B.texParameteri(it,h1,_e.wrapT),ae.ext_texture_filter_anisotropic&&B.texParameteri(it,_i,_e.anisotropic),_e.genMipmaps&&(B.hint(d1,_e.mipmapHint),B.generateMipmap(it))}var Xi=0,No={},fa=be.maxTextureUnits,To=Array(fa).map(function(){return null});function dn(_e){wt.call(this),this.mipmask=0,this.internalformat=Fl,this.id=Xi++,this.refCount=1,this.target=_e,this.texture=B.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new xi,$e.profile&&(this.stats={size:0})}function ra(_e){B.activeTexture(m1),B.bindTexture(_e.target,_e.texture)}function qn(){var _e=To[0];_e?B.bindTexture(_e.target,_e.texture):B.bindTexture(va,null)}function Hr(_e){var it=_e.texture;le(it,"must not double destroy texture");var Ke=_e.unit,ur=_e.target;Ke>=0&&(B.activeTexture(m1+Ke),B.bindTexture(ur,null),To[Ke]=null),B.deleteTexture(it),_e.texture=null,_e.params=null,_e.pixels=null,_e.refCount=0,delete No[_e.id],rt.textureCount--}n(dn.prototype,{bind:function(){var _e=this;_e.bindCount+=1;var it=_e.unit;if(it<0){for(var Ke=0;Ke0)continue;ur.unit=-1}To[Ke]=_e,it=Ke;break}it>=fa&&le.raise("insufficient number of texture units"),$e.profile&&rt.maxTextureUnits>De)-Ye,Ue.height=Ue.height||(Ke.height>>De)-Re,le(Ke.type===Ue.type&&Ke.format===Ue.format&&Ke.internalformat===Ue.internalformat,"incompatible format for texture.subimage"),le(Ye>=0&&Re>=0&&Ye+Ue.width<=Ke.width&&Re+Ue.height<=Ke.height,"texture.subimage write out of bounds"),le(Ke.mipmask&1<>Ye;++Ye){var Re=Ee>>Ye,De=Qe>>Ye;if(!Re||!De)break;B.texImage2D(va,Ye,Ke.format,Re,De,0,Ke.format,Ke.type,null)}return qn(),$e.profile&&(Ke.stats.size=Da(Ke.internalformat,Ke.type,Ee,Qe,!1,!1)),ur}return ur(_e,it),ur.subimage=_n,ur.resize=si,ur._reglType="texture2d",ur._texture=Ke,$e.profile&&(ur.stats=Ke.stats),ur.destroy=function(){Ke.decRef()},ur}function Vn(_e,it,Ke,ur,_n,si){var q=new dn(fl);No[q.id]=q,rt.cubeCount++;var ue=new Array(6);function Ee(Re,De,Ue,ge,Pe,se){var Le,at=q.texInfo;for(xi.call(at),Le=0;Le<6;++Le)ue[Le]=Mn();if(typeof Re=="number"||!Re){var dt=Re|0||1;for(Le=0;Le<6;++Le)Gr(ue[Le],dt,dt)}else if(typeof Re=="object")if(De)Wn(ue[0],Re),Wn(ue[1],De),Wn(ue[2],Ue),Wn(ue[3],ge),Wn(ue[4],Pe),Wn(ue[5],se);else if(bo(at,Re),Fr(q,Re),"faces"in Re){var Ct=Re.faces;for(le(Array.isArray(Ct)&&Ct.length===6,"cube faces must be a length 6 array"),Le=0;Le<6;++Le)le(typeof Ct[Le]=="object"&&!!Ct[Le],"invalid input for cube map face"),er(ue[Le],q),Wn(ue[Le],Ct[Le])}else for(Le=0;Le<6;++Le)Wn(ue[Le],Re);else le.raise("invalid arguments to cube map");for(er(q,ue[0]),be.npotTextureCube||le(hh(q.width)&&hh(q.height),"your browser does not support non power or two texture dimensions"),at.genMipmaps?q.mipmask=(ue[0].width<<1)-1:q.mipmask=ue[0].mipmask,le.textureCube(q,at,ue,be),q.internalformat=ue[0].internalformat,Ee.width=ue[0].width,Ee.height=ue[0].height,ra(q),Le=0;Le<6;++Le)no(ue[Le],ks+Le);for(Eo(at,fl),qn(),$e.profile&&(q.stats.size=Da(q.internalformat,q.type,Ee.width,Ee.height,at.genMipmaps,!0)),Ee.format=Ft[q.internalformat],Ee.type=nr[q.type],Ee.mag=At[at.magFilter],Ee.min=sr[at.minFilter],Ee.wrapS=Ot[at.wrapS],Ee.wrapT=Ot[at.wrapT],Le=0;Le<6;++Le)io(ue[Le]);return Ee}function Qe(Re,De,Ue,ge,Pe){le(!!De,"must specify image data"),le(typeof Re=="number"&&Re===(Re|0)&&Re>=0&&Re<6,"invalid face");var se=Ue|0,Le=ge|0,at=Pe|0,dt=lr();return er(dt,q),dt.width=0,dt.height=0,Dt(dt,De),dt.width=dt.width||(q.width>>at)-se,dt.height=dt.height||(q.height>>at)-Le,le(q.type===dt.type&&q.format===dt.format&&q.internalformat===dt.internalformat,"incompatible format for texture.subimage"),le(se>=0&&Le>=0&&se+dt.width<=q.width&&Le+dt.height<=q.height,"texture.subimage write out of bounds"),le(q.mipmask&1<>ge;++ge)B.texImage2D(ks+Ue,ge,q.format,De>>ge,De>>ge,0,q.format,q.type,null);return qn(),$e.profile&&(q.stats.size=Da(q.internalformat,q.type,Ee.width,Ee.height,!1,!0)),Ee}}return Ee(_e,it,Ke,ur,_n,si),Ee.subimage=Qe,Ee.resize=Ye,Ee._reglType="textureCube",Ee._texture=q,$e.profile&&(Ee.stats=q.stats),Ee.destroy=function(){q.decRef()},Ee}function oo(){for(var _e=0;_e>ur,Ke.height>>ur,0,Ke.internalformat,Ke.type,null);else for(var _n=0;_n<6;++_n)B.texImage2D(ks+_n,ur,Ke.internalformat,Ke.width>>ur,Ke.height>>ur,0,Ke.internalformat,Ke.type,null);Eo(Ke.texInfo,Ke.target)})}return{create2D:Cn,createCube:Vn,clear:oo,getTexture:function(_e){return null},restore:bl}}var cn=36161,qa=32854,Ya=32855,Do=36194,Wl=33189,_l=36168,ss=34041,Jo=35907,Yu=34836,Rr=34842,xr=34843,Ba=[];Ba[qa]=2,Ba[Ya]=2,Ba[Do]=2,Ba[Wl]=2,Ba[_l]=1,Ba[ss]=4,Ba[Jo]=4,Ba[Yu]=16,Ba[Rr]=8,Ba[xr]=6;function ea(B,ae,be){return Ba[B]*ae*be}var bs=function(B,ae,be,et,gt){var rt={rgba4:qa,rgb565:Do,"rgb5 a1":Ya,depth:Wl,stencil:_l,"depth stencil":ss};ae.ext_srgb&&(rt.srgba=Jo),ae.ext_color_buffer_half_float&&(rt.rgba16f=Rr,rt.rgb16f=xr),ae.webgl_color_buffer_float&&(rt.rgba32f=Yu);var $e=[];Object.keys(rt).forEach(function(Mt){var Wt=rt[Mt];$e[Wt]=Mt});var Bt=0,It={};function Zt(Mt){this.id=Bt++,this.refCount=1,this.renderbuffer=Mt,this.format=qa,this.width=0,this.height=0,gt.profile&&(this.stats={size:0})}Zt.prototype.decRef=function(){--this.refCount<=0&&kt(this)};function kt(Mt){var Wt=Mt.renderbuffer;le(Wt,"must not double destroy renderbuffer"),B.bindRenderbuffer(cn,null),B.deleteRenderbuffer(Wt),Mt.renderbuffer=null,Mt.refCount=0,delete It[Mt.id],et.renderbufferCount--}function Xt(Mt,Wt){var Xe=new Zt(B.createRenderbuffer());It[Xe.id]=Xe,et.renderbufferCount++;function ut(nr,At){var sr=0,Ot=0,ir=qa;if(typeof nr=="object"&&nr){var wt=nr;if("shape"in wt){var er=wt.shape;le(Array.isArray(er)&&er.length>=2,"invalid renderbuffer shape"),sr=er[0]|0,Ot=er[1]|0}else"radius"in wt&&(sr=Ot=wt.radius|0),"width"in wt&&(sr=wt.width|0),"height"in wt&&(Ot=wt.height|0);"format"in wt&&(le.parameter(wt.format,rt,"invalid renderbuffer format"),ir=rt[wt.format])}else typeof nr=="number"?(sr=nr|0,typeof At=="number"?Ot=At|0:Ot=sr):nr?le.raise("invalid arguments to renderbuffer constructor"):sr=Ot=1;if(le(sr>0&&Ot>0&&sr<=be.maxRenderbufferSize&&Ot<=be.maxRenderbufferSize,"invalid renderbuffer size"),!(sr===Xe.width&&Ot===Xe.height&&ir===Xe.format))return ut.width=Xe.width=sr,ut.height=Xe.height=Ot,Xe.format=ir,B.bindRenderbuffer(cn,Xe.renderbuffer),B.renderbufferStorage(cn,ir,sr,Ot),le(B.getError()===0,"invalid render buffer format"),gt.profile&&(Xe.stats.size=ea(Xe.format,Xe.width,Xe.height)),ut.format=$e[Xe.format],ut}function Ft(nr,At){var sr=nr|0,Ot=At|0||sr;return sr===Xe.width&&Ot===Xe.height||(le(sr>0&&Ot>0&&sr<=be.maxRenderbufferSize&&Ot<=be.maxRenderbufferSize,"invalid renderbuffer size"),ut.width=Xe.width=sr,ut.height=Xe.height=Ot,B.bindRenderbuffer(cn,Xe.renderbuffer),B.renderbufferStorage(cn,Xe.format,sr,Ot),le(B.getError()===0,"invalid render buffer format"),gt.profile&&(Xe.stats.size=ea(Xe.format,Xe.width,Xe.height))),ut}return ut(Mt,Wt),ut.resize=Ft,ut._reglType="renderbuffer",ut._renderbuffer=Xe,gt.profile&&(ut.stats=Xe.stats),ut.destroy=function(){Xe.decRef()},ut}gt.profile&&(et.getTotalRenderbufferSize=function(){var Mt=0;return Object.keys(It).forEach(function(Wt){Mt+=It[Wt].stats.size}),Mt});function Kt(){ie(It).forEach(function(Mt){Mt.renderbuffer=B.createRenderbuffer(),B.bindRenderbuffer(cn,Mt.renderbuffer),B.renderbufferStorage(cn,Mt.format,Mt.width,Mt.height)}),B.bindRenderbuffer(cn,null)}return{create:Xt,clear:function(){ie(It).forEach(kt)},restore:Kt}},Ci=36160,ls=36161,gl=3553,Eu=34069,$n=36064,vo=36096,Ah=36128,Gl=33306,b1=36053,vl=36054,Fa=36055,Ku=36057,Hs=36061,E1=36193,Qu=5121,Lc=5126,T1=6407,Tu=6408,Au=6402,Sh=[T1,Tu],js=[];js[Tu]=4,js[T1]=3;var Es=[];Es[Qu]=1,Es[Lc]=4,Es[E1]=2;var A1=32854,Zl=32855,us=36194,wh=33189,Dc=36168,S1=34041,w1=35907,c=34836,f=34842,h=34843,_=[A1,Zl,us,w1,f,h,c],x={};x[b1]="complete",x[vl]="incomplete attachment",x[Ku]="incomplete dimensions",x[Fa]="incomplete, missing attachment",x[Hs]="unsupported";function S(B,ae,be,et,gt,rt){var $e={cur:null,next:null,dirty:!1,setFBO:null},Bt=["rgba"],It=["rgba4","rgb565","rgb5 a1"];ae.ext_srgb&&It.push("srgba"),ae.ext_color_buffer_half_float&&It.push("rgba16f","rgb16f"),ae.webgl_color_buffer_float&&It.push("rgba32f");var Zt=["uint8"];ae.oes_texture_half_float&&Zt.push("half float","float16"),ae.oes_texture_float&&Zt.push("float","float32");function kt(tr,Dt,vt){this.target=tr,this.texture=Dt,this.renderbuffer=vt;var Nr=0,En=0;Dt?(Nr=Dt.width,En=Dt.height):vt&&(Nr=vt.width,En=vt.height),this.width=Nr,this.height=En}function Xt(tr){tr&&(tr.texture&&tr.texture._texture.decRef(),tr.renderbuffer&&tr.renderbuffer._renderbuffer.decRef())}function Kt(tr,Dt,vt){if(tr)if(tr.texture){var Nr=tr.texture._texture,En=Math.max(1,Nr.width),lr=Math.max(1,Nr.height);le(En===Dt&&lr===vt,"inconsistent width/height for supplied texture"),Nr.refCount+=1}else{var mn=tr.renderbuffer._renderbuffer;le(mn.width===Dt&&mn.height===vt,"inconsistent width/height for renderbuffer"),mn.refCount+=1}}function Mt(tr,Dt){Dt&&(Dt.texture?B.framebufferTexture2D(Ci,tr,Dt.target,Dt.texture._texture.texture,0):B.framebufferRenderbuffer(Ci,tr,ls,Dt.renderbuffer._renderbuffer.renderbuffer))}function Wt(tr){var Dt=gl,vt=null,Nr=null,En=tr;typeof tr=="object"&&(En=tr.data,"target"in tr&&(Dt=tr.target|0)),le.type(En,"function","invalid attachment data");var lr=En._reglType;return lr==="texture2d"?(vt=En,le(Dt===gl)):lr==="textureCube"?(vt=En,le(Dt>=Eu&&Dt=2,"invalid shape for framebuffer"),Gr=ra[0],Wn=ra[1]}else"radius"in dn&&(Gr=Wn=dn.radius),"width"in dn&&(Gr=dn.width),"height"in dn&&(Wn=dn.height);("color"in dn||"colors"in dn)&&(Mn=dn.color||dn.colors,Array.isArray(Mn)&&le(Mn.length===1||ae.webgl_draw_buffers,"multiple render targets not supported")),Mn||("colorCount"in dn&&(Eo=dn.colorCount|0,le(Eo>0,"invalid color buffer count")),"colorTexture"in dn&&(io=!!dn.colorTexture,xi="rgba4"),"colorType"in dn&&(bo=dn.colorType,io?(le(ae.oes_texture_float||!(bo==="float"||bo==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),le(ae.oes_texture_half_float||!(bo==="half float"||bo==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):bo==="half float"||bo==="float16"?(le(ae.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),xi="rgba16f"):(bo==="float"||bo==="float32")&&(le(ae.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),xi="rgba32f"),le.oneOf(bo,Zt,"invalid color type")),"colorFormat"in dn&&(xi=dn.colorFormat,Bt.indexOf(xi)>=0?io=!0:It.indexOf(xi)>=0?io=!1:io?le.oneOf(dn.colorFormat,Bt,"invalid color format for texture"):le.oneOf(dn.colorFormat,It,"invalid color format for renderbuffer"))),("depthTexture"in dn||"depthStencilTexture"in dn)&&(To=!!(dn.depthTexture||dn.depthStencilTexture),le(!To||ae.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in dn&&(typeof dn.depth=="boolean"?no=dn.depth:(Xi=dn.depth,Zo=!1)),"stencil"in dn&&(typeof dn.stencil=="boolean"?Zo=dn.stencil:(No=dn.stencil,no=!1)),"depthStencil"in dn&&(typeof dn.depthStencil=="boolean"?no=Zo=dn.depthStencil:(fa=dn.depthStencil,no=!1,Zo=!1))}var qn=null,Hr=null,Cn=null,Vn=null;if(Array.isArray(Mn))qn=Mn.map(Wt);else if(Mn)qn=[Wt(Mn)];else for(qn=new Array(Eo),en=0;en=0||qn[en].renderbuffer&&_.indexOf(qn[en].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+en+" is invalid"),qn[en]&&qn[en].texture){var bl=js[qn[en].texture._texture.format]*Es[qn[en].texture._texture.type];oo===null?oo=bl:le(oo===bl,"all color attachments much have the same number of bits per pixel.")}return Kt(Hr,Gr,Wn),le(!Hr||Hr.texture&&Hr.texture._texture.format===Au||Hr.renderbuffer&&Hr.renderbuffer._renderbuffer.format===wh,"invalid depth attachment for framebuffer object"),Kt(Cn,Gr,Wn),le(!Cn||Cn.renderbuffer&&Cn.renderbuffer._renderbuffer.format===Dc,"invalid stencil attachment for framebuffer object"),Kt(Vn,Gr,Wn),le(!Vn||Vn.texture&&Vn.texture._texture.format===S1||Vn.renderbuffer&&Vn.renderbuffer._renderbuffer.format===S1,"invalid depth-stencil attachment for framebuffer object"),Ot(vt),vt.width=Gr,vt.height=Wn,vt.colorAttachments=qn,vt.depthAttachment=Hr,vt.stencilAttachment=Cn,vt.depthStencilAttachment=Vn,Nr.color=qn.map(ut),Nr.depth=ut(Hr),Nr.stencil=ut(Cn),Nr.depthStencil=ut(Vn),Nr.width=vt.width,Nr.height=vt.height,wt(vt),Nr}function En(lr,mn){le($e.next!==vt,"can not resize a framebuffer which is currently in use");var en=Math.max(lr|0,1),Gr=Math.max(mn|0||en,1);if(en===vt.width&&Gr===vt.height)return Nr;for(var Wn=vt.colorAttachments,no=0;no=2,"invalid shape for framebuffer"),le(io[0]===io[1],"cube framebuffer must be square"),en=io[0]}else"radius"in Mn&&(en=Mn.radius|0),"width"in Mn?(en=Mn.width|0,"height"in Mn&&le(Mn.height===en,"must be square")):"height"in Mn&&(en=Mn.height|0);("color"in Mn||"colors"in Mn)&&(Gr=Mn.color||Mn.colors,Array.isArray(Gr)&&le(Gr.length===1||ae.webgl_draw_buffers,"multiple render targets not supported")),Gr||("colorCount"in Mn&&(Zo=Mn.colorCount|0,le(Zo>0,"invalid color buffer count")),"colorType"in Mn&&(le.oneOf(Mn.colorType,Zt,"invalid color type"),no=Mn.colorType),"colorFormat"in Mn&&(Wn=Mn.colorFormat,le.oneOf(Mn.colorFormat,Bt,"invalid color format for texture"))),"depth"in Mn&&(mn.depth=Mn.depth),"stencil"in Mn&&(mn.stencil=Mn.stencil),"depthStencil"in Mn&&(mn.depthStencil=Mn.depthStencil)}var xi;if(Gr)if(Array.isArray(Gr))for(xi=[],lr=0;lr0&&(mn.depth=Dt[0].depth,mn.stencil=Dt[0].stencil,mn.depthStencil=Dt[0].depthStencil),Dt[lr]?Dt[lr](mn):Dt[lr]=er(mn)}return n(vt,{width:en,height:en,color:xi})}function Nr(En){var lr,mn=En|0;if(le(mn>0&&mn<=be.maxCubeMapSize,"invalid radius for cube fbo"),mn===vt.width)return vt;var en=vt.color;for(lr=0;lr0,"must specify at least one attribute");for(var Fr=0;Fr=1&&vt.size<=4,"size must be between 1 and 4"),le(vt.offset>=0,"invalid offset"),le(vt.stride>=0&&vt.stride<=255,"stride must be between 0 and 255"),le(vt.divisor>=0,"divisor must be positive"),le(!vt.divisor||!!ae.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in Dt?(le(tr>0,"first attribute must not be a constant"),vt.x=+Dt.x||0,vt.y=+Dt.y||0,vt.z=+Dt.z||0,vt.w=+Dt.w||0,vt.state=2):le(!1,"invalid attribute spec for location "+tr)}return ir.refresh(),wt}return wt.destroy=function(){ir.destroy()},wt._vao=ir,wt._reglType="vao",wt(Ot)}return kt}var ee=35632,re=35633,ne=35718,ve=35721;function pe(B,ae,be,et){var gt={},rt={};function $e(Xe,ut,Ft,nr){this.name=Xe,this.id=ut,this.location=Ft,this.info=nr}function Bt(Xe,ut){for(var Ft=0;Ft1)for(var rn=0;rnXe&&(Xe=ut.stats.uniformsCount)}),Xe},be.getMaxAttributesCount=function(){var Xe=0;return kt.forEach(function(ut){ut.stats.attributesCount>Xe&&(Xe=ut.stats.attributesCount)}),Xe});function Wt(){gt={},rt={};for(var Xe=0;Xe=0,"missing vertex shader",Ft),le.command(ut>=0,"missing fragment shader",Ft);var At=Zt[ut];At||(At=Zt[ut]={});var sr=At[Xe];if(sr&&!nr)return sr;var Ot=new Kt(ut,Xe);return be.shaderCount++,Mt(Ot,Ft,nr),sr||(At[Xe]=Ot),kt.push(Ot),Ot},restore:Wt,shader:It,frag:-1,vert:-1}}var Ce=6408,he=5121,we=3333,Be=5126;function Ge(B,ae,be,et,gt,rt,$e){function Bt(kt){var Xt;ae.next===null?(le(gt.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Xt=he):(le(ae.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Xt=ae.next.colorAttachments[0].texture._texture.type,rt.oes_texture_float?(le(Xt===he||Xt===Be,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Xt===Be&&le($e.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):le(Xt===he,"Reading from a framebuffer is only allowed for the type 'uint8'"));var Kt=0,Mt=0,Wt=et.framebufferWidth,Xe=et.framebufferHeight,ut=null;r(kt)?ut=kt:kt&&(le.type(kt,"object","invalid arguments to regl.read()"),Kt=kt.x|0,Mt=kt.y|0,le(Kt>=0&&Kt=0&&Mt0&&Wt+Kt<=et.framebufferWidth,"invalid width for read pixels"),le(Xe>0&&Xe+Mt<=et.framebufferHeight,"invalid height for read pixels"),be();var Ft=Wt*Xe*4;return ut||(Xt===he?ut=new Uint8Array(Ft):Xt===Be&&(ut=ut||new Float32Array(Ft))),le.isTypedArray(ut,"data buffer for regl.read() must be a typedarray"),le(ut.byteLength>=Ft,"data buffer for regl.read() too small"),B.pixelStorei(we,4),B.readPixels(Kt,Mt,Wt,Xe,Ce,Xt,ut),ut}function It(kt){var Xt;return ae.setFBO({framebuffer:kt.framebuffer},function(){Xt=Bt(kt)}),Xt}function Zt(kt){return!kt||!("framebuffer"in kt)?Bt(kt):It(kt)}return Zt}function st(B){return Array.prototype.slice.call(B)}function Je(B){return st(B).join("")}function ft(){var B=0,ae=[],be=[];function et(Xt){for(var Kt=0;Kt0&&(Xt.push(Xe,"="),Xt.push.apply(Xt,st(arguments)),Xt.push(";")),Xe}return n(Kt,{def:Wt,toString:function(){return Je([Mt.length>0?"var "+Mt.join(",")+";":"",Je(Xt)])}})}function rt(){var Xt=gt(),Kt=gt(),Mt=Xt.toString,Wt=Kt.toString;function Xe(ut,Ft){Kt(ut,Ft,"=",Xt.def(ut,Ft),";")}return n(function(){Xt.apply(Xt,st(arguments))},{def:Xt.def,entry:Xt,exit:Kt,save:Xe,set:function(ut,Ft,nr){Xe(ut,Ft),Xt(ut,Ft,"=",nr,";")},toString:function(){return Mt()+Wt()}})}function $e(){var Xt=Je(arguments),Kt=rt(),Mt=rt(),Wt=Kt.toString,Xe=Mt.toString;return n(Kt,{then:function(){return Kt.apply(Kt,st(arguments)),this},else:function(){return Mt.apply(Mt,st(arguments)),this},toString:function(){var ut=Xe();return ut&&(ut="else{"+ut+"}"),Je(["if(",Xt,"){",Wt(),"}",ut])}})}var Bt=gt(),It={};function Zt(Xt,Kt){var Mt=[];function Wt(){var At="a"+Mt.length;return Mt.push(At),At}Kt=Kt||0;for(var Xe=0;Xe":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},oc={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},j3={frag:f_,vert:p_},ac={cw:Cf,ccw:Xp};function Rf(B){return Array.isArray(B)||r(B)||$(B)}function If(B){return B.sort(function(ae,be){return ae===Go?-1:be===Go?1:ae=1,et>=2,ae)}else if(be===fr){var gt=B.data;return new Ea(gt.thisDep,gt.contextDep,gt.propDep,ae)}else return new Ea(be===Nn,be===Dr,be===Br,ae)}var X3=new Ea(!1,!1,!1,function(){});function Ih(B,ae,be,et,gt,rt,$e,Bt,It,Zt,kt,Xt,Kt,Mt,Wt){var Xe=Zt.Record,ut={add:32774,subtract:32778,"reverse subtract":32779};be.ext_blend_minmax&&(ut.min=Wp,ut.max=Gp);var Ft=be.angle_instanced_arrays,nr=be.webgl_draw_buffers,At={dirty:!0,profile:Wt.profile},sr={},Ot=[],ir={},wt={};function er(q){return q.replace(".","_")}function Fr(q,ue,Ee){var Qe=er(q);Ot.push(q),sr[Qe]=At[Qe]=!!Ee,ir[Qe]=ue}function rn(q,ue,Ee){var Qe=er(q);Ot.push(q),Array.isArray(Ee)?(At[Qe]=Ee.slice(),sr[Qe]=Ee.slice()):At[Qe]=sr[Qe]=Ee,wt[Qe]=ue}Fr(qr,tc),Fr(hn,N3),rn(Zr,"blendColor",[0,0,0,0]),rn(Xr,"blendEquationSeparate",[V3,V3]),rn(un,"blendFuncSeparate",[z3,U3,z3,U3]),Fr(Wr,m_,!0),rn(Vr,"depthFunc",H3),rn(to,"depthRange",[0,1]),rn(Mi,"depthMask",!0),rn(Bo,Bo,[!0,!0,!0,!0]),Fr(yo,Ef),rn(Ri,"cullFace",zc),rn(Pi,Pi,Xp),rn(ua,ua,1),Fr(ta,g_),rn(Xs,"polygonOffset",[0,0]),Fr(ca,v_),Fr(cs,y_),rn(Na,"sampleCoverage",[1,!1]),Fr(Ju,Rh),rn(Su,"stencilMask",-1),rn(Ws,"stencilFunc",[xl,0,-1]),rn($l,"stencilOpSeparate",[Iu,ic,ic,ic]),rn(yl,"stencilOpSeparate",[zc,ic,ic,ic]),Fr(Ts,__),rn(ql,"scissor",[0,0,B.drawingBufferWidth,B.drawingBufferHeight]),rn(Go,Go,[0,0,B.drawingBufferWidth,B.drawingBufferHeight]);var tr={gl:B,context:Kt,strings:ae,next:sr,current:At,draw:Xt,elements:rt,buffer:gt,shader:kt,attributes:Zt.state,vao:Zt,uniforms:It,framebuffer:Bt,extensions:be,timer:Mt,isBufferArgs:Rf},Dt={primTypes:Ns,compareFuncs:Hc,blendFuncs:Kl,blendEquations:ut,stencilOps:oc,glTypes:Xo,orientationType:ac};le.optional(function(){tr.isArrayLike=Vi}),nr&&(Dt.backBuffer=[zc],Dt.drawBuffer=Xn(et.maxDrawbuffers,function(q){return q===0?[0]:Xn(q,function(ue){return x_+ue})}));var vt=0;function Nr(){var q=ft(),ue=q.link,Ee=q.global;q.id=vt++,q.batchId="0";var Qe=ue(tr),Ye=q.shared={props:"a0"};Object.keys(tr).forEach(function(Pe){Ye[Pe]=Ee.def(Qe,".",Pe)}),le.optional(function(){q.CHECK=ue(le),q.commandStr=le.guessCommand(),q.command=ue(q.commandStr),q.assert=function(Pe,se,Le){Pe("if(!(",se,"))",this.CHECK,".commandRaise(",ue(Le),",",this.command,");")},Dt.invalidBlendCombinations=Zp});var Re=q.next={},De=q.current={};Object.keys(wt).forEach(function(Pe){Array.isArray(At[Pe])&&(Re[Pe]=Ee.def(Ye.next,".",Pe),De[Pe]=Ee.def(Ye.current,".",Pe))});var Ue=q.constants={};Object.keys(Dt).forEach(function(Pe){Ue[Pe]=Ee.def(JSON.stringify(Dt[Pe]))}),q.invoke=function(Pe,se){switch(se.type){case Ir:var Le=["this",Ye.context,Ye.props,q.batchId];return Pe.def(ue(se.data),".call(",Le.slice(0,Math.max(se.data.length+1,4)),")");case Br:return Pe.def(Ye.props,se.data);case Dr:return Pe.def(Ye.context,se.data);case Nn:return Pe.def("this",se.data);case fr:return se.data.append(q,Pe),se.data.ref}},q.attribCache={};var ge={};return q.scopeAttrib=function(Pe){var se=ae.id(Pe);if(se in ge)return ge[se];var Le=Zt.scope[se];Le||(Le=Zt.scope[se]=new Xe);var at=ge[se]=ue(Le);return at},q}function En(q){var ue=q.static,Ee=q.dynamic,Qe;if(Hi in ue){var Ye=!!ue[Hi];Qe=xo(function(De,Ue){return Ye}),Qe.enable=Ye}else if(Hi in Ee){var Re=Ee[Hi];Qe=fs(Re,function(De,Ue){return De.invoke(Ue,Re)})}return Qe}function lr(q,ue){var Ee=q.static,Qe=q.dynamic;if(xa in Ee){var Ye=Ee[xa];return Ye?(Ye=Bt.getFramebuffer(Ye),le.command(Ye,"invalid framebuffer object"),xo(function(De,Ue){var ge=De.link(Ye),Pe=De.shared;Ue.set(Pe.framebuffer,".next",ge);var se=Pe.context;return Ue.set(se,"."+Cu,ge+".width"),Ue.set(se,"."+Ss,ge+".height"),ge})):xo(function(De,Ue){var ge=De.shared;Ue.set(ge.framebuffer,".next","null");var Pe=ge.context;return Ue.set(Pe,"."+Cu,Pe+"."+ba),Ue.set(Pe,"."+Ss,Pe+"."+B3),"null"})}else if(xa in Qe){var Re=Qe[xa];return fs(Re,function(De,Ue){var ge=De.invoke(Ue,Re),Pe=De.shared,se=Pe.framebuffer,Le=Ue.def(se,".getFramebuffer(",ge,")");le.optional(function(){De.assert(Ue,"!"+ge+"||"+Le,"invalid framebuffer object")}),Ue.set(se,".next",Le);var at=Pe.context;return Ue.set(at,"."+Cu,Le+"?"+Le+".width:"+at+"."+ba),Ue.set(at,"."+Ss,Le+"?"+Le+".height:"+at+"."+B3),Le})}else return null}function mn(q,ue,Ee){var Qe=q.static,Ye=q.dynamic;function Re(ge){if(ge in Qe){var Pe=Qe[ge];le.commandType(Pe,"object","invalid "+ge,Ee.commandStr);var se=!0,Le=Pe.x|0,at=Pe.y|0,dt,Ct;return"width"in Pe?(dt=Pe.width|0,le.command(dt>=0,"invalid "+ge,Ee.commandStr)):se=!1,"height"in Pe?(Ct=Pe.height|0,le.command(Ct>=0,"invalid "+ge,Ee.commandStr)):se=!1,new Ea(!se&&ue&&ue.thisDep,!se&&ue&&ue.contextDep,!se&&ue&&ue.propDep,function(Sr,gr){var br=Sr.shared.context,jr=dt;"width"in Pe||(jr=gr.def(br,".",Cu,"-",Le));var Qr=Ct;return"height"in Pe||(Qr=gr.def(br,".",Ss,"-",at)),[Le,at,jr,Qr]})}else if(ge in Ye){var xt=Ye[ge],Pt=fs(xt,function(Sr,gr){var br=Sr.invoke(gr,xt);le.optional(function(){Sr.assert(gr,br+"&&typeof "+br+'==="object"',"invalid "+ge)});var jr=Sr.shared.context,Qr=gr.def(br,".x|0"),Yn=gr.def(br,".y|0"),Ao=gr.def('"width" in ',br,"?",br,".width|0:","(",jr,".",Cu,"-",Qr,")"),El=gr.def('"height" in ',br,"?",br,".height|0:","(",jr,".",Ss,"-",Yn,")");return le.optional(function(){Sr.assert(gr,Ao+">=0&&"+El+">=0","invalid "+ge)}),[Qr,Yn,Ao,El]});return ue&&(Pt.thisDep=Pt.thisDep||ue.thisDep,Pt.contextDep=Pt.contextDep||ue.contextDep,Pt.propDep=Pt.propDep||ue.propDep),Pt}else return ue?new Ea(ue.thisDep,ue.contextDep,ue.propDep,function(Sr,gr){var br=Sr.shared.context;return[0,0,gr.def(br,".",Cu),gr.def(br,".",Ss)]}):null}var De=Re(Go);if(De){var Ue=De;De=new Ea(De.thisDep,De.contextDep,De.propDep,function(ge,Pe){var se=Ue.append(ge,Pe),Le=ge.shared.context;return Pe.set(Le,"."+R1,se[2]),Pe.set(Le,"."+Hp,se[3]),se})}return{viewport:De,scissor_box:Re(ql)}}function en(q,ue){var Ee=q.static,Qe=typeof Ee[As]=="string"&&typeof Ee[hs]=="string";if(Qe){if(Object.keys(ue.dynamic).length>0)return null;var Ye=ue.static,Re=Object.keys(Ye);if(Re.length>0&&typeof Ye[Re[0]]=="number"){for(var De=[],Ue=0;Ue=0,"invalid "+se,ue.commandStr),xo(function(Ct,xt){return Le&&(Ct.OFFSET=at),at})}else if(se in Qe){var dt=Qe[se];return fs(dt,function(Ct,xt){var Pt=Ct.invoke(xt,dt);return Le&&(Ct.OFFSET=Pt,le.optional(function(){Ct.assert(xt,Pt+">=0","invalid "+se)})),Pt})}else if(Le&&Re)return xo(function(Ct,xt){return Ct.OFFSET="0",0});return null}var ge=Ue(Gs,!0);function Pe(){if(ro in Ee){var se=Ee[ro]|0;return le.command(typeof se=="number"&&se>=0,"invalid vertex count",ue.commandStr),xo(function(){return se})}else if(ro in Qe){var Le=Qe[ro];return fs(Le,function(Ct,xt){var Pt=Ct.invoke(xt,Le);return le.optional(function(){Ct.assert(xt,"typeof "+Pt+'==="number"&&'+Pt+">=0&&"+Pt+"===("+Pt+"|0)","invalid vertex count")}),Pt})}else if(Re)if(ha(Re)){if(Re)return ge?new Ea(ge.thisDep,ge.contextDep,ge.propDep,function(Ct,xt){var Pt=xt.def(Ct.ELEMENTS,".vertCount-",Ct.OFFSET);return le.optional(function(){Ct.assert(xt,Pt+">=0","invalid vertex offset/element buffer too small")}),Pt}):xo(function(Ct,xt){return xt.def(Ct.ELEMENTS,".vertCount")});var at=xo(function(){return-1});return le.optional(function(){at.MISSING=!0}),at}else{var dt=new Ea(Re.thisDep||ge.thisDep,Re.contextDep||ge.contextDep,Re.propDep||ge.propDep,function(Ct,xt){var Pt=Ct.ELEMENTS;return Ct.OFFSET?xt.def(Pt,"?",Pt,".vertCount-",Ct.OFFSET,":-1"):xt.def(Pt,"?",Pt,".vertCount:-1")});return le.optional(function(){dt.DYNAMIC=!0}),dt}return null}return{elements:Re,primitive:De(),count:Pe(),instances:Ue(C1,!1),offset:ge}}function no(q,ue){var Ee=q.static,Qe=q.dynamic,Ye={};return Ot.forEach(function(Re){var De=er(Re);function Ue(ge,Pe){if(Re in Ee){var se=ge(Ee[Re]);Ye[De]=xo(function(){return se})}else if(Re in Qe){var Le=Qe[Re];Ye[De]=fs(Le,function(at,dt){return Pe(at,dt,at.invoke(dt,Le))})}}switch(Re){case yo:case hn:case qr:case Ju:case Wr:case Ts:case ta:case ca:case cs:case Mi:return Ue(function(ge){return le.commandType(ge,"boolean",Re,ue.commandStr),ge},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,"typeof "+se+'==="boolean"',"invalid flag "+Re,ge.commandStr)}),se});case Vr:return Ue(function(ge){return le.commandParameter(ge,Hc,"invalid "+Re,ue.commandStr),Hc[ge]},function(ge,Pe,se){var Le=ge.constants.compareFuncs;return le.optional(function(){ge.assert(Pe,se+" in "+Le,"invalid "+Re+", must be one of "+Object.keys(Hc))}),Pe.def(Le,"[",se,"]")});case to:return Ue(function(ge){return le.command(Vi(ge)&&ge.length===2&&typeof ge[0]=="number"&&typeof ge[1]=="number"&&ge[0]<=ge[1],"depth range is 2d array",ue.commandStr),ge},function(ge,Pe,se){le.optional(function(){ge.assert(Pe,ge.shared.isArrayLike+"("+se+")&&"+se+".length===2&&typeof "+se+'[0]==="number"&&typeof '+se+'[1]==="number"&&'+se+"[0]<="+se+"[1]","depth range must be a 2d array")});var Le=Pe.def("+",se,"[0]"),at=Pe.def("+",se,"[1]");return[Le,at]});case un:return Ue(function(ge){le.commandType(ge,"object","blend.func",ue.commandStr);var Pe="srcRGB"in ge?ge.srcRGB:ge.src,se="srcAlpha"in ge?ge.srcAlpha:ge.src,Le="dstRGB"in ge?ge.dstRGB:ge.dst,at="dstAlpha"in ge?ge.dstAlpha:ge.dst;return le.commandParameter(Pe,Kl,De+".srcRGB",ue.commandStr),le.commandParameter(se,Kl,De+".srcAlpha",ue.commandStr),le.commandParameter(Le,Kl,De+".dstRGB",ue.commandStr),le.commandParameter(at,Kl,De+".dstAlpha",ue.commandStr),le.command(Zp.indexOf(Pe+", "+Le)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+Pe+", "+Le+")",ue.commandStr),[Kl[Pe],Kl[Le],Kl[se],Kl[at]]},function(ge,Pe,se){var Le=ge.constants.blendFuncs;le.optional(function(){ge.assert(Pe,se+"&&typeof "+se+'==="object"',"invalid blend func, must be an object")});function at(br,jr){var Qr=Pe.def('"',br,jr,'" in ',se,"?",se,".",br,jr,":",se,".",br);return le.optional(function(){ge.assert(Pe,Qr+" in "+Le,"invalid "+Re+"."+br+jr+", must be one of "+Object.keys(Kl))}),Qr}var dt=at("src","RGB"),Ct=at("dst","RGB");le.optional(function(){var br=ge.constants.invalidBlendCombinations;ge.assert(Pe,br+".indexOf("+dt+'+", "+'+Ct+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var xt=Pe.def(Le,"[",dt,"]"),Pt=Pe.def(Le,"[",at("src","Alpha"),"]"),Sr=Pe.def(Le,"[",Ct,"]"),gr=Pe.def(Le,"[",at("dst","Alpha"),"]");return[xt,Sr,Pt,gr]});case Xr:return Ue(function(ge){if(typeof ge=="string")return le.commandParameter(ge,ut,"invalid "+Re,ue.commandStr),[ut[ge],ut[ge]];if(typeof ge=="object")return le.commandParameter(ge.rgb,ut,Re+".rgb",ue.commandStr),le.commandParameter(ge.alpha,ut,Re+".alpha",ue.commandStr),[ut[ge.rgb],ut[ge.alpha]];le.commandRaise("invalid blend.equation",ue.commandStr)},function(ge,Pe,se){var Le=ge.constants.blendEquations,at=Pe.def(),dt=Pe.def(),Ct=ge.cond("typeof ",se,'==="string"');return le.optional(function(){function xt(Pt,Sr,gr){ge.assert(Pt,gr+" in "+Le,"invalid "+Sr+", must be one of "+Object.keys(ut))}xt(Ct.then,Re,se),ge.assert(Ct.else,se+"&&typeof "+se+'==="object"',"invalid "+Re),xt(Ct.else,Re+".rgb",se+".rgb"),xt(Ct.else,Re+".alpha",se+".alpha")}),Ct.then(at,"=",dt,"=",Le,"[",se,"];"),Ct.else(at,"=",Le,"[",se,".rgb];",dt,"=",Le,"[",se,".alpha];"),Pe(Ct),[at,dt]});case Zr:return Ue(function(ge){return le.command(Vi(ge)&&ge.length===4,"blend.color must be a 4d array",ue.commandStr),Xn(4,function(Pe){return+ge[Pe]})},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,ge.shared.isArrayLike+"("+se+")&&"+se+".length===4","blend.color must be a 4d array")}),Xn(4,function(Le){return Pe.def("+",se,"[",Le,"]")})});case Su:return Ue(function(ge){return le.commandType(ge,"number",De,ue.commandStr),ge|0},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,"typeof "+se+'==="number"',"invalid stencil.mask")}),Pe.def(se,"|0")});case Ws:return Ue(function(ge){le.commandType(ge,"object",De,ue.commandStr);var Pe=ge.cmp||"keep",se=ge.ref||0,Le="mask"in ge?ge.mask:-1;return le.commandParameter(Pe,Hc,Re+".cmp",ue.commandStr),le.commandType(se,"number",Re+".ref",ue.commandStr),le.commandType(Le,"number",Re+".mask",ue.commandStr),[Hc[Pe],se,Le]},function(ge,Pe,se){var Le=ge.constants.compareFuncs;le.optional(function(){function xt(){ge.assert(Pe,Array.prototype.join.call(arguments,""),"invalid stencil.func")}xt(se+"&&typeof ",se,'==="object"'),xt('!("cmp" in ',se,")||(",se,".cmp in ",Le,")")});var at=Pe.def('"cmp" in ',se,"?",Le,"[",se,".cmp]",":",ic),dt=Pe.def(se,".ref|0"),Ct=Pe.def('"mask" in ',se,"?",se,".mask|0:-1");return[at,dt,Ct]});case $l:case yl:return Ue(function(ge){le.commandType(ge,"object",De,ue.commandStr);var Pe=ge.fail||"keep",se=ge.zfail||"keep",Le=ge.zpass||"keep";return le.commandParameter(Pe,oc,Re+".fail",ue.commandStr),le.commandParameter(se,oc,Re+".zfail",ue.commandStr),le.commandParameter(Le,oc,Re+".zpass",ue.commandStr),[Re===yl?zc:Iu,oc[Pe],oc[se],oc[Le]]},function(ge,Pe,se){var Le=ge.constants.stencilOps;le.optional(function(){ge.assert(Pe,se+"&&typeof "+se+'==="object"',"invalid "+Re)});function at(dt){return le.optional(function(){ge.assert(Pe,'!("'+dt+'" in '+se+")||("+se+"."+dt+" in "+Le+")","invalid "+Re+"."+dt+", must be one of "+Object.keys(oc))}),Pe.def('"',dt,'" in ',se,"?",Le,"[",se,".",dt,"]:",ic)}return[Re===yl?zc:Iu,at("fail"),at("zfail"),at("zpass")]});case Xs:return Ue(function(ge){le.commandType(ge,"object",De,ue.commandStr);var Pe=ge.factor|0,se=ge.units|0;return le.commandType(Pe,"number",De+".factor",ue.commandStr),le.commandType(se,"number",De+".units",ue.commandStr),[Pe,se]},function(ge,Pe,se){le.optional(function(){ge.assert(Pe,se+"&&typeof "+se+'==="object"',"invalid "+Re)});var Le=Pe.def(se,".factor|0"),at=Pe.def(se,".units|0");return[Le,at]});case Ri:return Ue(function(ge){var Pe=0;return ge==="front"?Pe=Iu:ge==="back"&&(Pe=zc),le.command(!!Pe,De,ue.commandStr),Pe},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,se+'==="front"||'+se+'==="back"',"invalid cull.face")}),Pe.def(se,'==="front"?',Iu,":",zc)});case ua:return Ue(function(ge){return le.command(typeof ge=="number"&&ge>=et.lineWidthDims[0]&&ge<=et.lineWidthDims[1],"invalid line width, must be a positive number between "+et.lineWidthDims[0]+" and "+et.lineWidthDims[1],ue.commandStr),ge},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,"typeof "+se+'==="number"&&'+se+">="+et.lineWidthDims[0]+"&&"+se+"<="+et.lineWidthDims[1],"invalid line width")}),se});case Pi:return Ue(function(ge){return le.commandParameter(ge,ac,De,ue.commandStr),ac[ge]},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,se+'==="cw"||'+se+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),Pe.def(se+'==="cw"?'+Cf+":"+Xp)});case Bo:return Ue(function(ge){return le.command(Vi(ge)&&ge.length===4,"color.mask must be length 4 array",ue.commandStr),ge.map(function(Pe){return!!Pe})},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,ge.shared.isArrayLike+"("+se+")&&"+se+".length===4","invalid color.mask")}),Xn(4,function(Le){return"!!"+se+"["+Le+"]"})});case Na:return Ue(function(ge){le.command(typeof ge=="object"&&ge,De,ue.commandStr);var Pe="value"in ge?ge.value:1,se=!!ge.invert;return le.command(typeof Pe=="number"&&Pe>=0&&Pe<=1,"sample.coverage.value must be a number between 0 and 1",ue.commandStr),[Pe,se]},function(ge,Pe,se){le.optional(function(){ge.assert(Pe,se+"&&typeof "+se+'==="object"',"invalid sample.coverage")});var Le=Pe.def('"value" in ',se,"?+",se,".value:1"),at=Pe.def("!!",se,".invert");return[Le,at]})}}),Ye}function Zo(q,ue){var Ee=q.static,Qe=q.dynamic,Ye={};return Object.keys(Ee).forEach(function(Re){var De=Ee[Re],Ue;if(typeof De=="number"||typeof De=="boolean")Ue=xo(function(){return De});else if(typeof De=="function"){var ge=De._reglType;ge==="texture2d"||ge==="textureCube"?Ue=xo(function(Pe){return Pe.link(De)}):ge==="framebuffer"||ge==="framebufferCube"?(le.command(De.color.length>0,'missing color attachment for framebuffer sent to uniform "'+Re+'"',ue.commandStr),Ue=xo(function(Pe){return Pe.link(De.color[0])})):le.commandRaise('invalid data for uniform "'+Re+'"',ue.commandStr)}else Vi(De)?Ue=xo(function(Pe){var se=Pe.global.def("[",Xn(De.length,function(Le){return le.command(typeof De[Le]=="number"||typeof De[Le]=="boolean","invalid uniform "+Re,Pe.commandStr),De[Le]}),"]");return se}):le.commandRaise('invalid or missing data for uniform "'+Re+'"',ue.commandStr);Ue.value=De,Ye[Re]=Ue}),Object.keys(Qe).forEach(function(Re){var De=Qe[Re];Ye[Re]=fs(De,function(Ue,ge){return Ue.invoke(ge,De)})}),Ye}function Mn(q,ue){var Ee=q.static,Qe=q.dynamic,Ye={};return Object.keys(Ee).forEach(function(Re){var De=Ee[Re],Ue=ae.id(Re),ge=new Xe;if(Rf(De))ge.state=Nt,ge.buffer=gt.getBuffer(gt.create(De,I1,!1,!0)),ge.type=0;else{var Pe=gt.getBuffer(De);if(Pe)ge.state=Nt,ge.buffer=Pe,ge.type=0;else if(le.command(typeof De=="object"&&De,"invalid data for attribute "+Re,ue.commandStr),"constant"in De){var se=De.constant;ge.buffer="null",ge.state=ar,typeof se=="number"?ge.x=se:(le.command(Vi(se)&&se.length>0&&se.length<=4,"invalid constant for attribute "+Re,ue.commandStr),Et.forEach(function(Sr,gr){gr=0,'invalid offset for attribute "'+Re+'"',ue.commandStr);var at=De.stride|0;le.command(at>=0&&at<256,'invalid stride for attribute "'+Re+'", must be integer betweeen [0, 255]',ue.commandStr);var dt=De.size|0;le.command(!("size"in De)||dt>0&&dt<=4,'invalid size for attribute "'+Re+'", must be 1,2,3,4',ue.commandStr);var Ct=!!De.normalized,xt=0;"type"in De&&(le.commandParameter(De.type,Xo,"invalid type for attribute "+Re,ue.commandStr),xt=Xo[De.type]);var Pt=De.divisor|0;"divisor"in De&&(le.command(Pt===0||Ft,'cannot specify divisor for attribute "'+Re+'", instancing not supported',ue.commandStr),le.command(Pt>=0,'invalid divisor for attribute "'+Re+'"',ue.commandStr)),le.optional(function(){var Sr=ue.commandStr,gr=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(De).forEach(function(br){le.command(gr.indexOf(br)>=0,'unknown parameter "'+br+'" for attribute pointer "'+Re+'" (valid parameters are '+gr+")",Sr)})}),ge.buffer=Pe,ge.state=Nt,ge.size=dt,ge.normalized=Ct,ge.type=xt||Pe.dtype,ge.offset=Le,ge.stride=at,ge.divisor=Pt}}Ye[Re]=xo(function(Sr,gr){var br=Sr.attribCache;if(Ue in br)return br[Ue];var jr={isStream:!1};return Object.keys(ge).forEach(function(Qr){jr[Qr]=ge[Qr]}),ge.buffer&&(jr.buffer=Sr.link(ge.buffer),jr.type=jr.type||jr.buffer+".dtype"),br[Ue]=jr,jr})}),Object.keys(Qe).forEach(function(Re){var De=Qe[Re];function Ue(ge,Pe){var se=ge.invoke(Pe,De),Le=ge.shared,at=ge.constants,dt=Le.isBufferArgs,Ct=Le.buffer;le.optional(function(){ge.assert(Pe,se+"&&(typeof "+se+'==="object"||typeof '+se+'==="function")&&('+dt+"("+se+")||"+Ct+".getBuffer("+se+")||"+Ct+".getBuffer("+se+".buffer)||"+dt+"("+se+'.buffer)||("constant" in '+se+"&&(typeof "+se+'.constant==="number"||'+Le.isArrayLike+"("+se+".constant))))",'invalid dynamic attribute "'+Re+'"')});var xt={isStream:Pe.def(!1)},Pt=new Xe;Pt.state=Nt,Object.keys(Pt).forEach(function(jr){xt[jr]=Pe.def(""+Pt[jr])});var Sr=xt.buffer,gr=xt.type;Pe("if(",dt,"(",se,")){",xt.isStream,"=true;",Sr,"=",Ct,".createStream(",I1,",",se,");",gr,"=",Sr,".dtype;","}else{",Sr,"=",Ct,".getBuffer(",se,");","if(",Sr,"){",gr,"=",Sr,".dtype;",'}else if("constant" in ',se,"){",xt.state,"=",ar,";","if(typeof "+se+'.constant === "number"){',xt[Et[0]],"=",se,".constant;",Et.slice(1).map(function(jr){return xt[jr]}).join("="),"=0;","}else{",Et.map(function(jr,Qr){return xt[jr]+"="+se+".constant.length>"+Qr+"?"+se+".constant["+Qr+"]:0;"}).join(""),"}}else{","if(",dt,"(",se,".buffer)){",Sr,"=",Ct,".createStream(",I1,",",se,".buffer);","}else{",Sr,"=",Ct,".getBuffer(",se,".buffer);","}",gr,'="type" in ',se,"?",at.glTypes,"[",se,".type]:",Sr,".dtype;",xt.normalized,"=!!",se,".normalized;");function br(jr){Pe(xt[jr],"=",se,".",jr,"|0;")}return br("size"),br("offset"),br("stride"),br("divisor"),Pe("}}"),Pe.exit("if(",xt.isStream,"){",Ct,".destroyStream(",Sr,");","}"),xt}Ye[Re]=fs(De,Ue)}),Ye}function io(q,ue){var Ee=q.static,Qe=q.dynamic;if(Yl in Ee){var Ye=Ee[Yl];return Ye!==null&&Zt.getVAO(Ye)===null&&(Ye=Zt.createVAO(Ye)),xo(function(De){return De.link(Zt.getVAO(Ye))})}else if(Yl in Qe){var Re=Qe[Yl];return fs(Re,function(De,Ue){var ge=De.invoke(Ue,Re);return Ue.def(De.shared.vao+".getVAO("+ge+")")})}return null}function xi(q){var ue=q.static,Ee=q.dynamic,Qe={};return Object.keys(ue).forEach(function(Ye){var Re=ue[Ye];Qe[Ye]=xo(function(De,Ue){return typeof Re=="number"||typeof Re=="boolean"?""+Re:De.link(Re)})}),Object.keys(Ee).forEach(function(Ye){var Re=Ee[Ye];Qe[Ye]=fs(Re,function(De,Ue){return De.invoke(Ue,Re)})}),Qe}function bo(q,ue,Ee,Qe,Ye){var Re=q.static,De=q.dynamic;le.optional(function(){var br=[xa,hs,As,On,Fo,Gs,ro,C1,Hi,Yl].concat(Ot);function jr(Qr){Object.keys(Qr).forEach(function(Yn){le.command(br.indexOf(Yn)>=0,'unknown parameter "'+Yn+'"',Ye.commandStr)})}jr(Re),jr(De)});var Ue=en(q,ue),ge=lr(q),Pe=mn(q,ge,Ye),se=Wn(q,Ye),Le=no(q,Ye),at=Gr(q,Ye,Ue);function dt(br){var jr=Pe[br];jr&&(Le[br]=jr)}dt(Go),dt(er(ql));var Ct=Object.keys(Le).length>0,xt={framebuffer:ge,draw:se,shader:at,state:Le,dirty:Ct,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(xt.profile=En(q),xt.uniforms=Zo(Ee,Ye),xt.drawVAO=xt.scopeVAO=io(q),!xt.drawVAO&&at.program&&!Ue&&be.angle_instanced_arrays){var Pt=!0,Sr=at.program.attributes.map(function(br){var jr=ue.static[br];return Pt=Pt&&!!jr,jr});if(Pt&&Sr.length>0){var gr=Zt.getVAO(Zt.createVAO(Sr));xt.drawVAO=new Ea(null,null,null,function(br,jr){return br.link(gr)}),xt.useVAO=!0}}return Ue?xt.useVAO=!0:xt.attributes=Mn(ue,Ye),xt.context=xi(Qe),xt}function Eo(q,ue,Ee){var Qe=q.shared,Ye=Qe.context,Re=q.scope();Object.keys(Ee).forEach(function(De){ue.save(Ye,"."+De);var Ue=Ee[De];Re(Ye,".",De,"=",Ue.append(q,ue),";")}),ue(Re)}function Xi(q,ue,Ee,Qe){var Ye=q.shared,Re=Ye.gl,De=Ye.framebuffer,Ue;nr&&(Ue=ue.def(Ye.extensions,".webgl_draw_buffers"));var ge=q.constants,Pe=ge.drawBuffer,se=ge.backBuffer,Le;Ee?Le=Ee.append(q,ue):Le=ue.def(De,".next"),Qe||ue("if(",Le,"!==",De,".cur){"),ue("if(",Le,"){",Re,".bindFramebuffer(",Vc,",",Le,".framebuffer);"),nr&&ue(Ue,".drawBuffersWEBGL(",Pe,"[",Le,".colorAttachments.length]);"),ue("}else{",Re,".bindFramebuffer(",Vc,",null);"),nr&&ue(Ue,".drawBuffersWEBGL(",se,");"),ue("}",De,".cur=",Le,";"),Qe||ue("}")}function No(q,ue,Ee){var Qe=q.shared,Ye=Qe.gl,Re=q.current,De=q.next,Ue=Qe.current,ge=Qe.next,Pe=q.cond(Ue,".dirty");Ot.forEach(function(se){var Le=er(se);if(!(Le in Ee.state)){var at,dt;if(Le in De){at=De[Le],dt=Re[Le];var Ct=Xn(At[Le].length,function(Pt){return Pe.def(at,"[",Pt,"]")});Pe(q.cond(Ct.map(function(Pt,Sr){return Pt+"!=="+dt+"["+Sr+"]"}).join("||")).then(Ye,".",wt[Le],"(",Ct,");",Ct.map(function(Pt,Sr){return dt+"["+Sr+"]="+Pt}).join(";"),";"))}else{at=Pe.def(ge,".",Le);var xt=q.cond(at,"!==",Ue,".",Le);Pe(xt),Le in ir?xt(q.cond(at).then(Ye,".enable(",ir[Le],");").else(Ye,".disable(",ir[Le],");"),Ue,".",Le,"=",at,";"):xt(Ye,".",wt[Le],"(",at,");",Ue,".",Le,"=",at,";")}}}),Object.keys(Ee.state).length===0&&Pe(Ue,".dirty=false;"),ue(Pe)}function fa(q,ue,Ee,Qe){var Ye=q.shared,Re=q.current,De=Ye.current,Ue=Ye.gl;If(Object.keys(Ee)).forEach(function(ge){var Pe=Ee[ge];if(!(Qe&&!Qe(Pe))){var se=Pe.append(q,ue);if(ir[ge]){var Le=ir[ge];ha(Pe)?se?ue(Ue,".enable(",Le,");"):ue(Ue,".disable(",Le,");"):ue(q.cond(se).then(Ue,".enable(",Le,");").else(Ue,".disable(",Le,");")),ue(De,".",ge,"=",se,";")}else if(Vi(se)){var at=Re[ge];ue(Ue,".",wt[ge],"(",se,");",se.map(function(dt,Ct){return at+"["+Ct+"]="+dt}).join(";"),";")}else ue(Ue,".",wt[ge],"(",se,");",De,".",ge,"=",se,";")}})}function To(q,ue){Ft&&(q.instancing=ue.def(q.shared.extensions,".angle_instanced_arrays"))}function dn(q,ue,Ee,Qe,Ye){var Re=q.shared,De=q.stats,Ue=Re.current,ge=Re.timer,Pe=Ee.profile;function se(){return typeof performance>"u"?"Date.now()":"performance.now()"}var Le,at;function dt(br){Le=ue.def(),br(Le,"=",se(),";"),typeof Ye=="string"?br(De,".count+=",Ye,";"):br(De,".count++;"),Mt&&(Qe?(at=ue.def(),br(at,"=",ge,".getNumPendingQueries();")):br(ge,".beginQuery(",De,");"))}function Ct(br){br(De,".cpuTime+=",se(),"-",Le,";"),Mt&&(Qe?br(ge,".pushScopeStats(",at,",",ge,".getNumPendingQueries(),",De,");"):br(ge,".endQuery();"))}function xt(br){var jr=ue.def(Ue,".profile");ue(Ue,".profile=",br,";"),ue.exit(Ue,".profile=",jr,";")}var Pt;if(Pe){if(ha(Pe)){Pe.enable?(dt(ue),Ct(ue.exit),xt("true")):xt("false");return}Pt=Pe.append(q,ue),xt(Pt)}else Pt=ue.def(Ue,".profile");var Sr=q.block();dt(Sr),ue("if(",Pt,"){",Sr,"}");var gr=q.block();Ct(gr),ue.exit("if(",Pt,"){",gr,"}")}function ra(q,ue,Ee,Qe,Ye){var Re=q.shared;function De(ge){switch(ge){case Tf:case Sf:case Fc:return 2;case M1:case ji:case Nc:return 3;case Af:case Bc:case nc:return 4;default:return 1}}function Ue(ge,Pe,se){var Le=Re.gl,at=ue.def(ge,".location"),dt=ue.def(Re.attributes,"[",at,"]"),Ct=se.state,xt=se.buffer,Pt=[se.x,se.y,se.z,se.w],Sr=["buffer","normalized","offset","stride"];function gr(){ue("if(!",dt,".buffer){",Le,".enableVertexAttribArray(",at,");}");var jr=se.type,Qr;if(se.size?Qr=ue.def(se.size,"||",Pe):Qr=Pe,ue("if(",dt,".type!==",jr,"||",dt,".size!==",Qr,"||",Sr.map(function(Ao){return dt+"."+Ao+"!=="+se[Ao]}).join("||"),"){",Le,".bindBuffer(",I1,",",xt,".buffer);",Le,".vertexAttribPointer(",[at,Qr,jr,se.normalized,se.stride,se.offset],");",dt,".type=",jr,";",dt,".size=",Qr,";",Sr.map(function(Ao){return dt+"."+Ao+"="+se[Ao]+";"}).join(""),"}"),Ft){var Yn=se.divisor;ue("if(",dt,".divisor!==",Yn,"){",q.instancing,".vertexAttribDivisorANGLE(",[at,Yn],");",dt,".divisor=",Yn,";}")}}function br(){ue("if(",dt,".buffer){",Le,".disableVertexAttribArray(",at,");",dt,".buffer=null;","}if(",Et.map(function(jr,Qr){return dt+"."+jr+"!=="+Pt[Qr]}).join("||"),"){",Le,".vertexAttrib4f(",at,",",Pt,");",Et.map(function(jr,Qr){return dt+"."+jr+"="+Pt[Qr]+";"}).join(""),"}")}Ct===Nt?gr():Ct===ar?br():(ue("if(",Ct,"===",Nt,"){"),gr(),ue("}else{"),br(),ue("}"))}Qe.forEach(function(ge){var Pe=ge.name,se=Ee.attributes[Pe],Le;if(se){if(!Ye(se))return;Le=se.append(q,ue)}else{if(!Ye(X3))return;var at=q.scopeAttrib(Pe);le.optional(function(){q.assert(ue,at+".state","missing attribute "+Pe)}),Le={},Object.keys(new Xe).forEach(function(dt){Le[dt]=ue.def(at,".",dt)})}Ue(q.link(ge),De(ge.info.type),Le)})}function qn(q,ue,Ee,Qe,Ye){for(var Re=q.shared,De=Re.gl,Ue,ge=0;ge1?ue(Xn(jr,function(El){return xt+"["+El+"]"})):ue(xt);ue(");")}}function Hr(q,ue,Ee,Qe){var Ye=q.shared,Re=Ye.gl,De=Ye.draw,Ue=Qe.draw;function ge(){var Qr=Ue.elements,Yn,Ao=ue;return Qr?((Qr.contextDep&&Qe.contextDynamic||Qr.propDep)&&(Ao=Ee),Yn=Qr.append(q,Ao)):Yn=Ao.def(De,".",On),Yn&&Ao("if("+Yn+")"+Re+".bindBuffer("+h_+","+Yn+".buffer.buffer);"),Yn}function Pe(){var Qr=Ue.count,Yn,Ao=ue;return Qr?((Qr.contextDep&&Qe.contextDynamic||Qr.propDep)&&(Ao=Ee),Yn=Qr.append(q,Ao),le.optional(function(){Qr.MISSING&&q.assert(ue,"false","missing vertex count"),Qr.DYNAMIC&&q.assert(Ao,Yn+">=0","missing vertex count")})):(Yn=Ao.def(De,".",ro),le.optional(function(){q.assert(Ao,Yn+">=0","missing vertex count")})),Yn}var se=ge();function Le(Qr){var Yn=Ue[Qr];return Yn?Yn.contextDep&&Qe.contextDynamic||Yn.propDep?Yn.append(q,Ee):Yn.append(q,ue):ue.def(De,".",Qr)}var at=Le(Fo),dt=Le(Gs),Ct=Pe();if(typeof Ct=="number"){if(Ct===0)return}else Ee("if(",Ct,"){"),Ee.exit("}");var xt,Pt;Ft&&(xt=Le(C1),Pt=q.instancing);var Sr=se+".type",gr=Ue.elements&&ha(Ue.elements);function br(){function Qr(){Ee(Pt,".drawElementsInstancedANGLE(",[at,Ct,Sr,dt+"<<(("+Sr+"-"+jt+")>>1)",xt],");")}function Yn(){Ee(Pt,".drawArraysInstancedANGLE(",[at,dt,Ct,xt],");")}se?gr?Qr():(Ee("if(",se,"){"),Qr(),Ee("}else{"),Yn(),Ee("}")):Yn()}function jr(){function Qr(){Ee(Re+".drawElements("+[at,Ct,Sr,dt+"<<(("+Sr+"-"+jt+")>>1)"]+");")}function Yn(){Ee(Re+".drawArrays("+[at,dt,Ct]+");")}se?gr?Qr():(Ee("if(",se,"){"),Qr(),Ee("}else{"),Yn(),Ee("}")):Yn()}Ft&&(typeof xt!="number"||xt>=0)?typeof xt=="string"?(Ee("if(",xt,">0){"),br(),Ee("}else if(",xt,"<0){"),jr(),Ee("}")):br():jr()}function Cn(q,ue,Ee,Qe,Ye){var Re=Nr(),De=Re.proc("body",Ye);return le.optional(function(){Re.commandStr=ue.commandStr,Re.command=Re.link(ue.commandStr)}),Ft&&(Re.instancing=De.def(Re.shared.extensions,".angle_instanced_arrays")),q(Re,De,Ee,Qe),Re.compile().body}function Vn(q,ue,Ee,Qe){To(q,ue),Ee.useVAO?Ee.drawVAO?ue(q.shared.vao,".setVAO(",Ee.drawVAO.append(q,ue),");"):ue(q.shared.vao,".setVAO(",q.shared.vao,".targetVAO);"):(ue(q.shared.vao,".setVAO(null);"),ra(q,ue,Ee,Qe.attributes,function(){return!0})),qn(q,ue,Ee,Qe.uniforms,function(){return!0}),Hr(q,ue,ue,Ee)}function oo(q,ue){var Ee=q.proc("draw",1);To(q,Ee),Eo(q,Ee,ue.context),Xi(q,Ee,ue.framebuffer),No(q,Ee,ue),fa(q,Ee,ue.state),dn(q,Ee,ue,!1,!0);var Qe=ue.shader.progVar.append(q,Ee);if(Ee(q.shared.gl,".useProgram(",Qe,".program);"),ue.shader.program)Vn(q,Ee,ue,ue.shader.program);else{Ee(q.shared.vao,".setVAO(null);");var Ye=q.global.def("{}"),Re=Ee.def(Qe,".id"),De=Ee.def(Ye,"[",Re,"]");Ee(q.cond(De).then(De,".call(this,a0);").else(De,"=",Ye,"[",Re,"]=",q.link(function(Ue){return Cn(Vn,q,ue,Ue,1)}),"(",Qe,");",De,".call(this,a0);"))}Object.keys(ue.state).length>0&&Ee(q.shared.current,".dirty=true;")}function bl(q,ue,Ee,Qe){q.batchId="a1",To(q,ue);function Ye(){return!0}ra(q,ue,Ee,Qe.attributes,Ye),qn(q,ue,Ee,Qe.uniforms,Ye),Hr(q,ue,ue,Ee)}function _e(q,ue,Ee,Qe){To(q,ue);var Ye=Ee.contextDep,Re=ue.def(),De="a0",Ue="a1",ge=ue.def();q.shared.props=ge,q.batchId=Re;var Pe=q.scope(),se=q.scope();ue(Pe.entry,"for(",Re,"=0;",Re,"<",Ue,";++",Re,"){",ge,"=",De,"[",Re,"];",se,"}",Pe.exit);function Le(Sr){return Sr.contextDep&&Ye||Sr.propDep}function at(Sr){return!Le(Sr)}if(Ee.needsContext&&Eo(q,se,Ee.context),Ee.needsFramebuffer&&Xi(q,se,Ee.framebuffer),fa(q,se,Ee.state,Le),Ee.profile&&Le(Ee.profile)&&dn(q,se,Ee,!1,!0),Qe)Ee.useVAO?Ee.drawVAO?Le(Ee.drawVAO)?se(q.shared.vao,".setVAO(",Ee.drawVAO.append(q,se),");"):Pe(q.shared.vao,".setVAO(",Ee.drawVAO.append(q,Pe),");"):Pe(q.shared.vao,".setVAO(",q.shared.vao,".targetVAO);"):(Pe(q.shared.vao,".setVAO(null);"),ra(q,Pe,Ee,Qe.attributes,at),ra(q,se,Ee,Qe.attributes,Le)),qn(q,Pe,Ee,Qe.uniforms,at),qn(q,se,Ee,Qe.uniforms,Le),Hr(q,Pe,se,Ee);else{var dt=q.global.def("{}"),Ct=Ee.shader.progVar.append(q,se),xt=se.def(Ct,".id"),Pt=se.def(dt,"[",xt,"]");se(q.shared.gl,".useProgram(",Ct,".program);","if(!",Pt,"){",Pt,"=",dt,"[",xt,"]=",q.link(function(Sr){return Cn(bl,q,Ee,Sr,2)}),"(",Ct,");}",Pt,".call(this,a0[",Re,"],",Re,");")}}function it(q,ue){var Ee=q.proc("batch",2);q.batchId="0",To(q,Ee);var Qe=!1,Ye=!0;Object.keys(ue.context).forEach(function(dt){Qe=Qe||ue.context[dt].propDep}),Qe||(Eo(q,Ee,ue.context),Ye=!1);var Re=ue.framebuffer,De=!1;Re?(Re.propDep?Qe=De=!0:Re.contextDep&&Qe&&(De=!0),De||Xi(q,Ee,Re)):Xi(q,Ee,null),ue.state.viewport&&ue.state.viewport.propDep&&(Qe=!0);function Ue(dt){return dt.contextDep&&Qe||dt.propDep}No(q,Ee,ue),fa(q,Ee,ue.state,function(dt){return!Ue(dt)}),(!ue.profile||!Ue(ue.profile))&&dn(q,Ee,ue,!1,"a1"),ue.contextDep=Qe,ue.needsContext=Ye,ue.needsFramebuffer=De;var ge=ue.shader.progVar;if(ge.contextDep&&Qe||ge.propDep)_e(q,Ee,ue,null);else{var Pe=ge.append(q,Ee);if(Ee(q.shared.gl,".useProgram(",Pe,".program);"),ue.shader.program)_e(q,Ee,ue,ue.shader.program);else{Ee(q.shared.vao,".setVAO(null);");var se=q.global.def("{}"),Le=Ee.def(Pe,".id"),at=Ee.def(se,"[",Le,"]");Ee(q.cond(at).then(at,".call(this,a0,a1);").else(at,"=",se,"[",Le,"]=",q.link(function(dt){return Cn(_e,q,ue,dt,2)}),"(",Pe,");",at,".call(this,a0,a1);"))}}Object.keys(ue.state).length>0&&Ee(q.shared.current,".dirty=true;")}function Ke(q,ue){var Ee=q.proc("scope",3);q.batchId="a2";var Qe=q.shared,Ye=Qe.current;Eo(q,Ee,ue.context),ue.framebuffer&&ue.framebuffer.append(q,Ee),If(Object.keys(ue.state)).forEach(function(De){var Ue=ue.state[De],ge=Ue.append(q,Ee);Vi(ge)?ge.forEach(function(Pe,se){Ee.set(q.next[De],"["+se+"]",Pe)}):Ee.set(Qe.next,"."+De,ge)}),dn(q,Ee,ue,!0,!0),[On,Gs,ro,C1,Fo].forEach(function(De){var Ue=ue.draw[De];Ue&&Ee.set(Qe.draw,"."+De,""+Ue.append(q,Ee))}),Object.keys(ue.uniforms).forEach(function(De){Ee.set(Qe.uniforms,"["+ae.id(De)+"]",ue.uniforms[De].append(q,Ee))}),Object.keys(ue.attributes).forEach(function(De){var Ue=ue.attributes[De].append(q,Ee),ge=q.scopeAttrib(De);Object.keys(new Xe).forEach(function(Pe){Ee.set(ge,"."+Pe,Ue[Pe])})}),ue.scopeVAO&&Ee.set(Qe.vao,".targetVAO",ue.scopeVAO.append(q,Ee));function Re(De){var Ue=ue.shader[De];Ue&&Ee.set(Qe.shader,"."+De,Ue.append(q,Ee))}Re(hs),Re(As),Object.keys(ue.state).length>0&&(Ee(Ye,".dirty=true;"),Ee.exit(Ye,".dirty=true;")),Ee("a1(",q.shared.context,",a0,",q.batchId,");")}function ur(q){if(!(typeof q!="object"||Vi(q))){for(var ue=Object.keys(q),Ee=0;Ee=0;--Hr){var Cn=vt[Hr];Cn&&Cn(Mt,null,0)}be.flush(),Zt&&Zt.update()}function Gr(){!mn&&vt.length>0&&(mn=ys.next(en))}function Wn(){mn&&(ys.cancel(en),mn=null)}function no(Hr){Hr.preventDefault(),gt=!0,Wn(),Nr.forEach(function(Cn){Cn()})}function Zo(Hr){be.getError(),gt=!1,rt.restore(),Ot.restore(),Ft.restore(),ir.restore(),wt.restore(),er.restore(),nr.restore(),Zt&&Zt.restore(),Fr.procs.refresh(),Gr(),En.forEach(function(Cn){Cn()})}Dt&&(Dt.addEventListener($p,no,!1),Dt.addEventListener(q3,Zo,!1));function Mn(){vt.length=0,Wn(),Dt&&(Dt.removeEventListener($p,no),Dt.removeEventListener(q3,Zo)),Ot.clear(),er.clear(),wt.clear(),ir.clear(),sr.clear(),Ft.clear(),nr.clear(),Zt&&Zt.clear(),lr.forEach(function(Hr){Hr()})}function io(Hr){le(!!Hr,"invalid args to regl({...})"),le.type(Hr,"object","invalid args to regl({...})");function Cn(Ye){var Re=n({},Ye);delete Re.uniforms,delete Re.attributes,delete Re.context,delete Re.vao,"stencil"in Re&&Re.stencil.op&&(Re.stencil.opBack=Re.stencil.opFront=Re.stencil.op,delete Re.stencil.op);function De(Ue){if(Ue in Re){var ge=Re[Ue];delete Re[Ue],Object.keys(ge).forEach(function(Pe){Re[Ue+"."+Pe]=ge[Pe]})}}return De("blend"),De("depth"),De("cull"),De("stencil"),De("polygonOffset"),De("scissor"),De("sample"),"vao"in Ye&&(Re.vao=Ye.vao),Re}function Vn(Ye){var Re={},De={};return Object.keys(Ye).forEach(function(Ue){var ge=Ye[Ue];Wi.isDynamic(ge)?De[Ue]=Wi.unbox(ge,Ue):Re[Ue]=ge}),{dynamic:De,static:Re}}var oo=Vn(Hr.context||{}),bl=Vn(Hr.uniforms||{}),_e=Vn(Hr.attributes||{}),it=Vn(Cn(Hr)),Ke={gpuTime:0,cpuTime:0,count:0},ur=Fr.compile(it,_e,bl,oo,Ke),_n=ur.draw,si=ur.batch,q=ur.scope,ue=[];function Ee(Ye){for(;ue.length0)return si.call(this,Ee(Ye|0),Ye|0)}else if(Array.isArray(Ye)){if(Ye.length)return si.call(this,Ye,Ye.length)}else return _n.call(this,Ye)}return n(Qe,{stats:Ke})}var xi=er.setFBO=io({framebuffer:Wi.define.call(null,qp,"framebuffer")});function bo(Hr,Cn){var Vn=0;Fr.procs.poll();var oo=Cn.color;oo&&(be.clearColor(+oo[0]||0,+oo[1]||0,+oo[2]||0,+oo[3]||0),Vn|=Z3),"depth"in Cn&&(be.clearDepth(+Cn.depth),Vn|=Ta),"stencil"in Cn&&(be.clearStencil(Cn.stencil|0),Vn|=A_),le(!!Vn,"called regl.clear with no buffer specified"),be.clear(Vn)}function Eo(Hr){if(le(typeof Hr=="object"&&Hr,"regl.clear() takes an object as input"),"framebuffer"in Hr)if(Hr.framebuffer&&Hr.framebuffer_reglType==="framebufferCube")for(var Cn=0;Cn<6;++Cn)xi(n({framebuffer:Hr.framebuffer.faces[Cn]},Hr),bo);else xi(Hr,bo);else bo(null,Hr)}function Xi(Hr){le.type(Hr,"function","regl.frame() callback must be a function"),vt.push(Hr);function Cn(){var Vn=Y3(vt,Hr);le(Vn>=0,"cannot cancel a frame twice");function oo(){var bl=Y3(vt,oo);vt[bl]=vt[vt.length-1],vt.length-=1,vt.length<=0&&Wn()}vt[Vn]=oo}return Gr(),{cancel:Cn}}function No(){var Hr=tr.viewport,Cn=tr.scissor_box;Hr[0]=Hr[1]=Cn[0]=Cn[1]=0,Mt.viewportWidth=Mt.framebufferWidth=Mt.drawingBufferWidth=Hr[2]=Cn[2]=be.drawingBufferWidth,Mt.viewportHeight=Mt.framebufferHeight=Mt.drawingBufferHeight=Hr[3]=Cn[3]=be.drawingBufferHeight}function fa(){Mt.tick+=1,Mt.time=dn(),No(),Fr.procs.poll()}function To(){No(),Fr.procs.refresh(),Zt&&Zt.update()}function dn(){return(Ma()-kt)/1e3}To();function ra(Hr,Cn){le.type(Cn,"function","listener callback must be a function");var Vn;switch(Hr){case"frame":return Xi(Cn);case"lost":Vn=Nr;break;case"restore":Vn=En;break;case"destroy":Vn=lr;break;default:le.raise("invalid event, must be one of frame,lost,restore,destroy")}return Vn.push(Cn),{cancel:function(){for(var oo=0;oo=0},read:rn,destroy:Mn,_gl:be,_refresh:To,poll:function(){fa(),Zt&&Zt.update()},now:dn,stats:Bt});return ae.onDone(null,qn),qn}return K3})})(qE);var JX=qE.exports;const eW=Co(JX);var tW=class{constructor(t,e){const{buffer:r,offset:n,stride:a,normalized:l,size:o,divisor:p}=e;this.buffer=r,this.attribute={buffer:r.get(),offset:n||0,stride:a||0,normalized:l||!1,divisor:p||0},o&&(this.attribute.size=o)}get(){return this.attribute}updateBuffer(t){this.buffer.subData(t)}destroy(){this.buffer.destroy()}},rW={[H.POINTS]:"points",[H.LINES]:"lines",[H.LINE_LOOP]:"line loop",[H.LINE_STRIP]:"line strip",[H.TRIANGLES]:"triangles",[H.TRIANGLE_FAN]:"triangle fan",[H.TRIANGLE_STRIP]:"triangle strip"},YE={[H.STATIC_DRAW]:"static",[H.DYNAMIC_DRAW]:"dynamic",[H.STREAM_DRAW]:"stream"},U2={[H.BYTE]:"int8",[H.INT]:"int32",[H.UNSIGNED_BYTE]:"uint8",[H.UNSIGNED_SHORT]:"uint16",[H.UNSIGNED_INT]:"uint32",[H.FLOAT]:"float"},nW={[H.ALPHA]:"alpha",[H.LUMINANCE]:"luminance",[H.LUMINANCE_ALPHA]:"luminance alpha",[H.RGB]:"rgb",[H.RGBA]:"rgba",[H.RGBA4]:"rgba4",[H.RGB5_A1]:"rgb5 a1",[H.RGB565]:"rgb565",[H.DEPTH_COMPONENT]:"depth",[H.DEPTH_STENCIL]:"depth stencil"},iW={[H.DONT_CARE]:"dont care",[H.NICEST]:"nice",[H.FASTEST]:"fast"},f8={[H.NEAREST]:"nearest",[H.LINEAR]:"linear",[H.LINEAR_MIPMAP_LINEAR]:"mipmap",[H.NEAREST_MIPMAP_LINEAR]:"nearest mipmap linear",[H.LINEAR_MIPMAP_NEAREST]:"linear mipmap nearest",[H.NEAREST_MIPMAP_NEAREST]:"nearest mipmap nearest"},p8={[H.REPEAT]:"repeat",[H.CLAMP_TO_EDGE]:"clamp",[H.MIRRORED_REPEAT]:"mirror"},oW={[H.NONE]:"none",[H.BROWSER_DEFAULT_WEBGL]:"browser"},aW={[H.NEVER]:"never",[H.ALWAYS]:"always",[H.LESS]:"less",[H.LEQUAL]:"lequal",[H.GREATER]:"greater",[H.GEQUAL]:"gequal",[H.EQUAL]:"equal",[H.NOTEQUAL]:"notequal"},d8={[H.FUNC_ADD]:"add",[H.MIN_EXT]:"min",[H.MAX_EXT]:"max",[H.FUNC_SUBTRACT]:"subtract",[H.FUNC_REVERSE_SUBTRACT]:"reverse subtract"},G0={[H.ZERO]:"zero",[H.ONE]:"one",[H.SRC_COLOR]:"src color",[H.ONE_MINUS_SRC_COLOR]:"one minus src color",[H.SRC_ALPHA]:"src alpha",[H.ONE_MINUS_SRC_ALPHA]:"one minus src alpha",[H.DST_COLOR]:"dst color",[H.ONE_MINUS_DST_COLOR]:"one minus dst color",[H.DST_ALPHA]:"dst alpha",[H.ONE_MINUS_DST_ALPHA]:"one minus dst alpha",[H.CONSTANT_COLOR]:"constant color",[H.ONE_MINUS_CONSTANT_COLOR]:"one minus constant color",[H.CONSTANT_ALPHA]:"constant alpha",[H.ONE_MINUS_CONSTANT_ALPHA]:"one minus constant alpha",[H.SRC_ALPHA_SATURATE]:"src alpha saturate"},sW={[H.NEVER]:"never",[H.ALWAYS]:"always",[H.LESS]:"less",[H.LEQUAL]:"lequal",[H.GREATER]:"greater",[H.GEQUAL]:"gequal",[H.EQUAL]:"equal",[H.NOTEQUAL]:"notequal"},ep={[H.ZERO]:"zero",[H.KEEP]:"keep",[H.REPLACE]:"replace",[H.INVERT]:"invert",[H.INCR]:"increment",[H.DECR]:"decrement",[H.INCR_WRAP]:"increment wrap",[H.DECR_WRAP]:"decrement wrap"},lW={[H.FRONT]:"front",[H.BACK]:"back"},uW=class{constructor(t,e){this.isDestroyed=!1;const{data:r,usage:n,type:a}=e;this.buffer=t.buffer({data:r,usage:YE[n||H.STATIC_DRAW],type:U2[a||H.UNSIGNED_BYTE]})}get(){return this.buffer}destroy(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}subData({data:t,offset:e}){this.buffer.subdata(t,e)}},cW=class{constructor(t,e){const{data:r,usage:n,type:a,count:l}=e;this.elements=t.elements({data:r,usage:YE[n||H.STATIC_DRAW],type:U2[a||H.UNSIGNED_BYTE],count:l})}get(){return this.elements}subData({data:t}){this.elements.subdata(t)}destroy(){}},hW=class{constructor(t,e){const{width:r,height:n,color:a,colors:l}=e,o={width:r,height:n};Array.isArray(l)&&(o.colors=l.map(p=>p.get())),a&&typeof a!="boolean"&&(o.color=a.get()),this.framebuffer=t.framebuffer(o)}get(){return this.framebuffer}destroy(){this.framebuffer.destroy()}resize({width:t,height:e}){this.framebuffer.resize(t,e)}},fW=Object.defineProperty,pW=Object.defineProperties,dW=Object.getOwnPropertyDescriptors,m8=Object.getOwnPropertySymbols,mW=Object.prototype.hasOwnProperty,_W=Object.prototype.propertyIsEnumerable,_8=(t,e,r)=>e in t?fW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Nd=(t,e)=>{for(var r in e||(e={}))mW.call(e,r)&&_8(t,r,e[r]);if(m8)for(var r of m8(e))_W.call(e,r)&&_8(t,r,e[r]);return t},gW=(t,e)=>pW(t,dW(e)),{isPlainObject:vW,isTypedArray:yW}=Ko,xW=class{constructor(t,e){this.destroyed=!1,this.uniforms={},this.reGl=t;const{vs:r,fs:n,attributes:a,uniforms:l,primitive:o,count:p,elements:m,depth:v,cull:E,instances:b}=e,A={platformString:"WebGL1",glslVersion:"#version 100",explicitBindingLocations:!1,separateSamplerTextures:!1,viewportOrigin:ku.LOWER_LEFT,clipSpaceNearZ:Rp.NEGATIVE_ONE,supportMRT:!1},R={};this.options=e,l&&(this.uniforms=this.extractUniforms(l),Object.keys(l).forEach(G=>{R[G]=t.prop(G)}));const O={};Object.keys(a).forEach(G=>{O[G]=a[G].get()});const D=n5(Op(A,"frag",n,null,!1)),N=n5(Op(A,"vert",r,null,!1)),W={attributes:O,frag:D,uniforms:R,vert:N,colorMask:t.prop("colorMask"),lineWidth:1,blend:{enable:t.prop("blend.enable"),func:t.prop("blend.func"),equation:t.prop("blend.equation"),color:t.prop("blend.color")},stencil:{enable:t.prop("stencil.enable"),mask:t.prop("stencil.mask"),func:t.prop("stencil.func"),opFront:t.prop("stencil.opFront"),opBack:t.prop("stencil.opBack")},primitive:rW[o===void 0?H.TRIANGLES:o]};b&&(W.instances=b),p?W.count=p:m&&(W.elements=m.get()),this.initDepthDrawParams({depth:v},W),this.initCullDrawParams({cull:E},W),this.drawCommand=t(W),this.drawParams=W}updateAttributesAndElements(t,e){const r={};Object.keys(t).forEach(n=>{r[n]=t[n].get()}),this.drawParams.attributes=r,this.drawParams.elements=e.get(),this.drawCommand=this.reGl(this.drawParams)}updateAttributes(t){const e={};Object.keys(t).forEach(r=>{e[r]=t[r].get()}),this.drawParams.attributes=e,this.drawCommand=this.reGl(this.drawParams)}addUniforms(t){this.uniforms=Nd(Nd({},this.uniforms),this.extractUniforms(t))}draw(t,e){if(this.drawParams.attributes&&Object.keys(this.drawParams.attributes).length===0)return;const r=Nd(Nd({},this.uniforms),this.extractUniforms(t.uniforms||{})),n={};Object.keys(r).forEach(a=>{const l=typeof r[a];l==="boolean"||l==="number"||Array.isArray(r[a])||r[a].BYTES_PER_ELEMENT?n[a]=r[a]:n[a]=r[a].get()}),n.blend=e?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(t),n.stencil=this.getStencilDrawParams(t),n.colorMask=this.getColorMaskDrawParams(t,e),this.drawCommand(n)}destroy(){var t,e;(e=(t=this.drawParams)==null?void 0:t.elements)==null||e.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach(r=>{r==null||r.destroy()}),this.destroyed=!0}initDepthDrawParams({depth:t},e){t&&(e.depth={enable:t.enable===void 0?!0:!!t.enable,mask:t.mask===void 0?!0:!!t.mask,func:aW[t.func||H.LESS],range:t.range||[0,1]})}getBlendDrawParams({blend:t}){const{enable:e,func:r,equation:n,color:a=[0,0,0,0]}=t||{};return{enable:!!e,func:{srcRGB:G0[r&&r.srcRGB||H.SRC_ALPHA],srcAlpha:G0[r&&r.srcAlpha||H.SRC_ALPHA],dstRGB:G0[r&&r.dstRGB||H.ONE_MINUS_SRC_ALPHA],dstAlpha:G0[r&&r.dstAlpha||H.ONE_MINUS_SRC_ALPHA]},equation:{rgb:d8[n&&n.rgb||H.FUNC_ADD],alpha:d8[n&&n.alpha||H.FUNC_ADD]},color:a}}getStencilDrawParams({stencil:t}){const{enable:e,mask:r=-1,func:n={cmp:H.ALWAYS,ref:0,mask:-1},opFront:a={fail:H.KEEP,zfail:H.KEEP,zpass:H.KEEP},opBack:l={fail:H.KEEP,zfail:H.KEEP,zpass:H.KEEP}}=t||{};return{enable:!!e,mask:r,func:gW(Nd({},n),{cmp:sW[n.cmp]}),opFront:{fail:ep[a.fail],zfail:ep[a.zfail],zpass:ep[a.zpass]},opBack:{fail:ep[l.fail],zfail:ep[l.zfail],zpass:ep[l.zpass]}}}getColorMaskDrawParams({stencil:t},e){return t!=null&&t.enable&&t.opFront&&!e?[!1,!1,!1,!1]:[!0,!0,!0,!0]}initCullDrawParams({cull:t},e){if(t){const{enable:r,face:n=H.BACK}=t;e.cull={enable:!!r,face:lW[n]}}}extractUniforms(t){const e={};return Object.keys(t).forEach(r=>{this.extractUniformsRecursively(r,t[r],e,"")}),e}extractUniformsRecursively(t,e,r,n){if(e===null||typeof e=="number"||typeof e=="boolean"||Array.isArray(e)&&typeof e[0]=="number"||yW(e)||e===""||"resize"in e){r[`${n&&n+"."}${t}`]=e;return}vW(e)&&Object.keys(e).forEach(a=>{this.extractUniformsRecursively(a,e[a],r,`${n&&n+"."}${t}`)}),Array.isArray(e)&&e.forEach((a,l)=>{Object.keys(a).forEach(o=>{this.extractUniformsRecursively(o,a[o],r,`${n&&n+"."}${t}[${l}]`)})})}},bW=class{constructor(t,e){this.isDestroy=!1;const{data:r,type:n=H.UNSIGNED_BYTE,width:a,height:l,flipY:o=!1,format:p=H.RGBA,mipmap:m=!1,wrapS:v=H.CLAMP_TO_EDGE,wrapT:E=H.CLAMP_TO_EDGE,aniso:b=0,alignment:A=1,premultiplyAlpha:R=!1,mag:O=H.NEAREST,min:D=H.NEAREST,colorSpace:N=H.BROWSER_DEFAULT_WEBGL,x:W=0,y:G=0,copy:Y=!1}=e;this.width=a,this.height=l;const Q={width:a,height:l,type:U2[n],format:nW[p],wrapS:p8[v],wrapT:p8[E],mag:f8[O],min:f8[D],alignment:A,flipY:o,colorSpace:oW[N],premultiplyAlpha:R,aniso:b,x:W,y:G,copy:Y};r&&(Q.data=r),typeof m=="number"?Q.mipmap=iW[m]:typeof m=="boolean"&&(Q.mipmap=m),this.texture=t.texture(Q)}get(){return this.texture}update(t={}){this.texture(t)}bind(){this.texture._texture.bind()}resize({width:t,height:e}){this.texture.resize(t,e),this.width=t,this.height=e}getSize(){return[this.width,this.height]}destroy(){var t;this.isDestroy||(t=this.texture)==null||t.destroy(),this.isDestroy=!0}},Cg=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),EW=class{constructor(){this.uniformBuffers=[],this.queryVerdorInfo=()=>"WebGL1",this.createModel=t=>new xW(this.gl,t),this.createAttribute=t=>new tW(this.gl,t),this.createBuffer=t=>new uW(this.gl,t),this.createElements=t=>new cW(this.gl,t),this.createTexture2D=t=>new bW(this.gl,t),this.createFramebuffer=t=>new hW(this.gl,t),this.useFramebuffer=(t,e)=>{this.gl({framebuffer:t?t.get():null})(e)},this.useFramebufferAsync=(t,e)=>Cg(this,null,function*(){this.gl({framebuffer:t?t.get():null})(e)}),this.clear=t=>{var e;const{color:r,depth:n,stencil:a,framebuffer:l=null}=t,o={color:r,depth:n,stencil:a};o.framebuffer=l===null?l:l.get(),(e=this.gl)==null||e.clear(o)},this.viewport=({x:t,y:e,width:r,height:n})=>{this.gl._gl.viewport(t,e,r,n),this.width=r,this.height=n,this.gl._refresh()},this.readPixels=t=>{const{framebuffer:e,x:r,y:n,width:a,height:l}=t,o={x:r,y:n,width:a,height:l};return e&&(o.framebuffer=e.get()),this.gl.read(o)},this.readPixelsAsync=t=>Cg(this,null,function*(){return this.readPixels(t)}),this.getViewportSize=()=>({width:this.gl._gl.drawingBufferWidth,height:this.gl._gl.drawingBufferHeight}),this.getContainer=()=>{var t;return(t=this.canvas)==null?void 0:t.parentElement},this.getCanvas=()=>this.canvas,this.getGLContext=()=>this.gl._gl,this.destroy=()=>{var t,e,r;this.canvas=null,(r=(e=(t=this.gl)==null?void 0:t._gl)==null?void 0:e.getExtension("WEBGL_lose_context"))==null||r.loseContext(),this.gl.destroy(),this.gl=null}}init(t,e,r){return Cg(this,null,function*(){this.canvas=t,r?this.gl=r:this.gl=yield new Promise((n,a)=>{eW({canvas:this.canvas,attributes:{alpha:!0,antialias:e.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,stencil:e.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture","WEBGL_lose_context"],profile:!0,onDone:(l,o)=>{(l||!o)&&a(l),n(o)}})}),this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")}})}getPointSizeRange(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}testExtension(t){return!!this.getGLContext().getExtension(t)}setState(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!0,equation:"add"},framebuffer:null}),this.gl._refresh()}setBaseState(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!1,equation:"add"},framebuffer:null}),this.gl._refresh()}setCustomLayerDefaults(){const t=this.getGLContext();t.disable(t.CULL_FACE)}setDirty(t){this.isDirty=t}getDirty(){return this.isDirty}beginFrame(){}endFrame(){}},Rg=["selectstart","selecting","selectend"],TW=class extends Ps.EventEmitter{constructor(t,e={}){super(),this.isEnable=!1,this.onDragStart=r=>{this.box.style.display="block",this.startEvent=this.endEvent=r,this.syncBoxBound(),this.emit("selectstart",this.getLngLatBox(),this.startEvent,this.endEvent)},this.onDragging=r=>{this.endEvent=r,this.syncBoxBound(),this.emit("selecting",this.getLngLatBox(),this.startEvent,this.endEvent)},this.onDragEnd=r=>{this.endEvent=r,this.box.style.display="none",this.emit("selectend",this.getLngLatBox(),this.startEvent,this.endEvent)},this.scene=t,this.options=e}get container(){return this.scene.getMapService().getMarkerContainer()}enable(){if(this.isEnable)return;const{className:t}=this.options;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){const e=_a("div",void 0,this.container);e.classList.add("l7-select-box"),t&&e.classList.add(t),e.style.display="none",this.box=e}this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.isEnable=!0}disable(){this.isEnable&&(this.scene.setMapStatus({dragEnable:!0}),this.container.style.cursor="auto",this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.isEnable=!1)}syncBoxBound(){const{x:t,y:e}=this.startEvent,{x:r,y:n}=this.endEvent,a=Math.min(t,r),l=Math.min(e,n),o=Math.abs(t-r),p=Math.abs(e-n);this.box.style.top=`${l}px`,this.box.style.left=`${a}px`,this.box.style.width=`${o}px`,this.box.style.height=`${p}px`}getLngLatBox(){const{lngLat:{lng:t,lat:e}}=this.startEvent,{lngLat:{lng:r,lat:n}}=this.endEvent;return eC([[t,e],[r,n]])}},AW=Object.defineProperty,SW=Object.defineProperties,wW=Object.getOwnPropertyDescriptors,g8=Object.getOwnPropertySymbols,CW=Object.prototype.hasOwnProperty,RW=Object.prototype.propertyIsEnumerable,v8=(t,e,r)=>e in t?AW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,IW=(t,e)=>{for(var r in e||(e={}))CW.call(e,r)&&v8(t,r,e[r]);if(g8)for(var r of g8(e))RW.call(e,r)&&v8(t,r,e[r]);return t},MW=(t,e)=>SW(t,wW(e)),kd=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),PW=class{constructor(t){const{id:e,map:r,renderer:n="device"}=t,a=AO();this.container=a,r.setContainer(a,e),n==="regl"?a.rendererService=new EW:a.rendererService=new QX,this.sceneService=a.sceneService,this.mapService=a.mapService,this.iconService=a.iconService,this.fontService=a.fontService,this.controlService=a.controlService,this.layerService=a.layerService,this.debugService=a.debugService,this.debugService.setEnable(t.debug),this.markerService=a.markerService,this.interactionService=a.interactionService,this.popupService=a.popupService,this.boxSelect=new TW(this,{}),this.initComponent(e),this.sceneService.init(t),this.initControl()}get map(){return this.mapService.map}get loaded(){return this.sceneService.loaded}getServiceContainer(){return this.container}getSize(){return this.mapService.getSize()}getMinZoom(){return this.mapService.getMinZoom()}getMaxZoom(){return this.mapService.getMaxZoom()}getType(){return this.mapService.getType()}getMapContainer(){return this.mapService.getMapContainer()}getMapCanvasContainer(){return this.mapService.getMapCanvasContainer()}getMapService(){return this.mapService}getDebugService(){return this.debugService}exportPng(t){return kd(this,null,function*(){return this.sceneService.exportPng(t)})}exportMap(t){return kd(this,null,function*(){return this.sceneService.exportPng(t)})}registerRenderService(t){this.sceneService.loaded?new t(this).init():this.on("loaded",()=>{new t(this).init()})}setBgColor(t){this.mapService.setBgColor(t)}addLayer(t){this.loaded?this.preAddLayer(t):this.once("loaded",()=>{this.preAddLayer(t)})}preAddLayer(t){const e=Jd(this.container);if(t.setContainer(e),this.sceneService.addLayer(t),t.inited){this.initTileLayer(t);const r=this.initMask(t);this.addMask(r,t.id)}else t.on("inited",()=>{this.initTileLayer(t);const r=this.initMask(t);this.addMask(r,t.id)})}initMask(t){const{mask:e,maskfence:r,maskColor:n="#000",maskOpacity:a=0}=t.getLayerConfig();return!e||!r?void 0:new hE().source(r).shape("fill").style({color:n,opacity:a})}addMask(t,e){if(!t)return;const r=this.getLayer(e);if(r){const n=Jd(this.container);t.setContainer(n),r.addMaskLayer(t),this.sceneService.addMask(t)}else console.warn("parent layer not find!")}getPickedLayer(){return this.layerService.pickedLayerId}getLayers(){return this.layerService.getLayers()}getLayer(t){return this.layerService.getLayer(t)}getLayerByName(t){return this.layerService.getLayerByName(t)}removeLayer(t,e){return kd(this,null,function*(){yield this.layerService.remove(t,e)})}removeAllLayer(){return kd(this,null,function*(){yield this.layerService.removeAllLayers()})}render(){this.sceneService.render()}setEnableRender(t){this.layerService.setEnableRender(t)}addIconFont(t,e){this.fontService.addIconFont(t,e)}addIconFonts(t){t.forEach(([e,r])=>{this.fontService.addIconFont(e,r)})}addFontFace(t,e){this.fontService.once("fontloaded",r=>{this.emit("fontloaded",r)}),this.fontService.addFontFace(t,e)}addImage(t,e){return kd(this,null,function*(){yield this.iconService.addImage(t,e)})}hasImage(t){return this.iconService.hasImage(t)}removeImage(t){this.iconService.removeImage(t)}addIconFontGlyphs(t,e){this.fontService.addIconGlyphs(e)}addControl(t){this.controlService.addControl(t,this.container)}removeControl(t){this.controlService.removeControl(t)}getControlByName(t){return this.controlService.getControlByName(t)}addMarker(t){this.markerService.addMarker(t)}addMarkerLayer(t){this.markerService.addMarkerLayer(t)}removeMarkerLayer(t){this.markerService.removeMarkerLayer(t)}removeAllMarkers(){this.markerService.removeAllMarkers()}removeAllMakers(){console.warn("removeAllMakers 已废弃,请使用 removeAllMarkers"),this.markerService.removeAllMarkers()}addPopup(t){this.popupService.addPopup(t)}removePopup(t){this.popupService.removePopup(t)}on(t,e){var r;Rg.includes(t)?(r=this.boxSelect)==null||r.on(t,e):A0.includes(t)?this.sceneService.on(t,e):this.mapService.on(t,e)}once(t,e){var r;Rg.includes(t)?(r=this.boxSelect)==null||r.once(t,e):A0.includes(t)?this.sceneService.once(t,e):this.mapService.once(t,e)}emit(t,e){A0.indexOf(t)===-1?this.mapService.on(t,e):this.sceneService.emit(t,e)}off(t,e){var r;Rg.includes(t)?(r=this.boxSelect)==null||r.off(t,e):A0.includes(t)?this.sceneService.off(t,e):this.mapService.off(t,e)}getZoom(){return this.mapService.getZoom()}getCenter(t){return this.mapService.getCenter(t)}setCenter(t,e){return this.mapService.setCenter(t,e)}getPitch(){return this.mapService.getPitch()}setPitch(t){return this.mapService.setPitch(t)}getRotation(){return this.mapService.getRotation()}getBounds(){return this.mapService.getBounds()}setRotation(t){this.mapService.setRotation(t)}zoomIn(){this.mapService.zoomIn()}zoomOut(){this.mapService.zoomOut()}panTo(t){this.mapService.panTo(t)}panBy(t,e){this.mapService.panBy(t,e)}getContainer(){return this.mapService.getContainer()}setZoom(t){this.mapService.setZoom(t)}fitBounds(t,e){const{fitBoundsOptions:r,animate:n}=this.sceneService.getSceneConfig();this.mapService.fitBounds(t,e||MW(IW({},r),{animate:n}))}setZoomAndCenter(t,e){this.mapService.setZoomAndCenter(t,e)}setMapStyle(t){this.mapService.setMapStyle(t)}setMapStatus(t){this.mapService.setMapStatus(t)}pixelToLngLat(t){return this.mapService.pixelToLngLat(t)}lngLatToPixel(t){return this.mapService.lngLatToPixel(t)}containerToLngLat(t){return this.mapService.containerToLngLat(t)}lngLatToContainer(t){return this.mapService.lngLatToContainer(t)}destroy(){this.sceneService.destroy()}registerPostProcessingPass(t){this.container.postProcessingPass.name=new t}enableShaderPick(){this.layerService.enableShaderPick()}diasbleShaderPick(){this.layerService.disableShaderPick()}enableBoxSelect(t=!0){this.boxSelect.enable(),t&&this.boxSelect.once("selectend",()=>{this.disableBoxSelect()})}disableBoxSelect(){this.boxSelect.disable()}static addProtocol(t,e){$0.REGISTERED_PROTOCOLS[t]=e}static removeProtocol(t){delete $0.REGISTERED_PROTOCOLS[t]}getProtocol(t){return $0.REGISTERED_PROTOCOLS[t]}startAnimate(){this.layerService.startAnimate()}stopAnimate(){this.layerService.stopAnimate()}getPointSizeRange(){return this.sceneService.getPointSizeRange()}initComponent(t){this.controlService.init({container:Ow(t)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}initControl(){const{logoVisible:t,logoPosition:e}=this.sceneService.getSceneConfig();t&&this.addControl(new gD({position:e}))}initTileLayer(t){t.getSource().isTile&&(t.tileLayer=new kz(t))}};const z2={fontFamily:` +`),Mt=Function.apply(null,ae.concat(Kt));return Mt.apply(null,be)}return{global:Bt,link:et,block:gt,proc:Zt,scope:rt,cond:$e,compile:kt}}var Et="xyzw".split(""),jt=5121,Nt=1,ar=2,Ir=0,Br=1,Dr=2,Nn=3,fr=4,qr="dither",hn="blend.enable",Zr="blend.color",Xr="blend.equation",un="blend.func",Wr="depth.enable",Vr="depth.func",to="depth.range",Mi="depth.mask",Bo="colorMask",yo="cull.enable",Ri="cull.face",Pi="frontFace",ua="lineWidth",ta="polygonOffset.enable",Xs="polygonOffset.offset",ca="sample.alpha",cs="sample.enable",Na="sample.coverage",Ju="stencil.enable",Su="stencil.mask",Ws="stencil.func",$l="stencil.opFront",yl="stencil.opBack",Ts="scissor.enable",ql="scissor.box",Go="viewport",Hi="profile",xa="framebuffer",hs="vert",As="frag",On="elements",Fo="primitive",ro="count",Gs="offset",C1="instances",Yl="vao",Ch="Width",wu="Height",Cu=xa+Ch,Ss=xa+wu,R1=Go+Ch,Hp=Go+wu,ec="drawingBuffer",ba=ec+Ch,B3=ec+wu,F3=[un,Xr,Ws,$l,yl,Na,Go,ql,Xs],I1=34962,h_=34963,f_=35632,p_=35633,bf=3553,d_=34067,Ef=2884,N3=3042,tc=3024,Rh=2960,m_=2929,__=3089,g_=32823,v_=32926,y_=32928,jp=5126,Tf=35664,M1=35665,Af=35666,rc=5124,Sf=35667,ji=35668,Bc=35669,wf=35670,Fc=35671,Nc=35672,nc=35673,P1=35674,O1=35675,Ru=35676,kc=35678,Uc=35680,k3=4,Iu=1028,zc=1029,Cf=2304,Xp=2305,Wp=32775,Gp=32776,xl=519,ic=7680,U3=0,z3=1,V3=32774,H3=513,Vc=36160,x_=36064,Kl={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Zp=["constant color, constant alpha","one minus constant color, constant alpha","constant color, one minus constant alpha","one minus constant color, one minus constant alpha","constant alpha, constant color","constant alpha, one minus constant color","one minus constant alpha, constant color","one minus constant alpha, one minus constant color"],Hc={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},oc={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},j3={frag:f_,vert:p_},ac={cw:Cf,ccw:Xp};function Rf(B){return Array.isArray(B)||r(B)||$(B)}function If(B){return B.sort(function(ae,be){return ae===Go?-1:be===Go?1:ae=1,et>=2,ae)}else if(be===fr){var gt=B.data;return new Ea(gt.thisDep,gt.contextDep,gt.propDep,ae)}else return new Ea(be===Nn,be===Dr,be===Br,ae)}var X3=new Ea(!1,!1,!1,function(){});function Ih(B,ae,be,et,gt,rt,$e,Bt,It,Zt,kt,Xt,Kt,Mt,Wt){var Xe=Zt.Record,ut={add:32774,subtract:32778,"reverse subtract":32779};be.ext_blend_minmax&&(ut.min=Wp,ut.max=Gp);var Ft=be.angle_instanced_arrays,nr=be.webgl_draw_buffers,At={dirty:!0,profile:Wt.profile},sr={},Ot=[],ir={},wt={};function er(q){return q.replace(".","_")}function Fr(q,ue,Ee){var Qe=er(q);Ot.push(q),sr[Qe]=At[Qe]=!!Ee,ir[Qe]=ue}function rn(q,ue,Ee){var Qe=er(q);Ot.push(q),Array.isArray(Ee)?(At[Qe]=Ee.slice(),sr[Qe]=Ee.slice()):At[Qe]=sr[Qe]=Ee,wt[Qe]=ue}Fr(qr,tc),Fr(hn,N3),rn(Zr,"blendColor",[0,0,0,0]),rn(Xr,"blendEquationSeparate",[V3,V3]),rn(un,"blendFuncSeparate",[z3,U3,z3,U3]),Fr(Wr,m_,!0),rn(Vr,"depthFunc",H3),rn(to,"depthRange",[0,1]),rn(Mi,"depthMask",!0),rn(Bo,Bo,[!0,!0,!0,!0]),Fr(yo,Ef),rn(Ri,"cullFace",zc),rn(Pi,Pi,Xp),rn(ua,ua,1),Fr(ta,g_),rn(Xs,"polygonOffset",[0,0]),Fr(ca,v_),Fr(cs,y_),rn(Na,"sampleCoverage",[1,!1]),Fr(Ju,Rh),rn(Su,"stencilMask",-1),rn(Ws,"stencilFunc",[xl,0,-1]),rn($l,"stencilOpSeparate",[Iu,ic,ic,ic]),rn(yl,"stencilOpSeparate",[zc,ic,ic,ic]),Fr(Ts,__),rn(ql,"scissor",[0,0,B.drawingBufferWidth,B.drawingBufferHeight]),rn(Go,Go,[0,0,B.drawingBufferWidth,B.drawingBufferHeight]);var tr={gl:B,context:Kt,strings:ae,next:sr,current:At,draw:Xt,elements:rt,buffer:gt,shader:kt,attributes:Zt.state,vao:Zt,uniforms:It,framebuffer:Bt,extensions:be,timer:Mt,isBufferArgs:Rf},Dt={primTypes:Ns,compareFuncs:Hc,blendFuncs:Kl,blendEquations:ut,stencilOps:oc,glTypes:Xo,orientationType:ac};le.optional(function(){tr.isArrayLike=Vi}),nr&&(Dt.backBuffer=[zc],Dt.drawBuffer=Xn(et.maxDrawbuffers,function(q){return q===0?[0]:Xn(q,function(ue){return x_+ue})}));var vt=0;function Nr(){var q=ft(),ue=q.link,Ee=q.global;q.id=vt++,q.batchId="0";var Qe=ue(tr),Ye=q.shared={props:"a0"};Object.keys(tr).forEach(function(Pe){Ye[Pe]=Ee.def(Qe,".",Pe)}),le.optional(function(){q.CHECK=ue(le),q.commandStr=le.guessCommand(),q.command=ue(q.commandStr),q.assert=function(Pe,se,Le){Pe("if(!(",se,"))",this.CHECK,".commandRaise(",ue(Le),",",this.command,");")},Dt.invalidBlendCombinations=Zp});var Re=q.next={},De=q.current={};Object.keys(wt).forEach(function(Pe){Array.isArray(At[Pe])&&(Re[Pe]=Ee.def(Ye.next,".",Pe),De[Pe]=Ee.def(Ye.current,".",Pe))});var Ue=q.constants={};Object.keys(Dt).forEach(function(Pe){Ue[Pe]=Ee.def(JSON.stringify(Dt[Pe]))}),q.invoke=function(Pe,se){switch(se.type){case Ir:var Le=["this",Ye.context,Ye.props,q.batchId];return Pe.def(ue(se.data),".call(",Le.slice(0,Math.max(se.data.length+1,4)),")");case Br:return Pe.def(Ye.props,se.data);case Dr:return Pe.def(Ye.context,se.data);case Nn:return Pe.def("this",se.data);case fr:return se.data.append(q,Pe),se.data.ref}},q.attribCache={};var ge={};return q.scopeAttrib=function(Pe){var se=ae.id(Pe);if(se in ge)return ge[se];var Le=Zt.scope[se];Le||(Le=Zt.scope[se]=new Xe);var at=ge[se]=ue(Le);return at},q}function En(q){var ue=q.static,Ee=q.dynamic,Qe;if(Hi in ue){var Ye=!!ue[Hi];Qe=xo(function(De,Ue){return Ye}),Qe.enable=Ye}else if(Hi in Ee){var Re=Ee[Hi];Qe=fs(Re,function(De,Ue){return De.invoke(Ue,Re)})}return Qe}function lr(q,ue){var Ee=q.static,Qe=q.dynamic;if(xa in Ee){var Ye=Ee[xa];return Ye?(Ye=Bt.getFramebuffer(Ye),le.command(Ye,"invalid framebuffer object"),xo(function(De,Ue){var ge=De.link(Ye),Pe=De.shared;Ue.set(Pe.framebuffer,".next",ge);var se=Pe.context;return Ue.set(se,"."+Cu,ge+".width"),Ue.set(se,"."+Ss,ge+".height"),ge})):xo(function(De,Ue){var ge=De.shared;Ue.set(ge.framebuffer,".next","null");var Pe=ge.context;return Ue.set(Pe,"."+Cu,Pe+"."+ba),Ue.set(Pe,"."+Ss,Pe+"."+B3),"null"})}else if(xa in Qe){var Re=Qe[xa];return fs(Re,function(De,Ue){var ge=De.invoke(Ue,Re),Pe=De.shared,se=Pe.framebuffer,Le=Ue.def(se,".getFramebuffer(",ge,")");le.optional(function(){De.assert(Ue,"!"+ge+"||"+Le,"invalid framebuffer object")}),Ue.set(se,".next",Le);var at=Pe.context;return Ue.set(at,"."+Cu,Le+"?"+Le+".width:"+at+"."+ba),Ue.set(at,"."+Ss,Le+"?"+Le+".height:"+at+"."+B3),Le})}else return null}function mn(q,ue,Ee){var Qe=q.static,Ye=q.dynamic;function Re(ge){if(ge in Qe){var Pe=Qe[ge];le.commandType(Pe,"object","invalid "+ge,Ee.commandStr);var se=!0,Le=Pe.x|0,at=Pe.y|0,dt,Ct;return"width"in Pe?(dt=Pe.width|0,le.command(dt>=0,"invalid "+ge,Ee.commandStr)):se=!1,"height"in Pe?(Ct=Pe.height|0,le.command(Ct>=0,"invalid "+ge,Ee.commandStr)):se=!1,new Ea(!se&&ue&&ue.thisDep,!se&&ue&&ue.contextDep,!se&&ue&&ue.propDep,function(Sr,gr){var br=Sr.shared.context,jr=dt;"width"in Pe||(jr=gr.def(br,".",Cu,"-",Le));var Qr=Ct;return"height"in Pe||(Qr=gr.def(br,".",Ss,"-",at)),[Le,at,jr,Qr]})}else if(ge in Ye){var xt=Ye[ge],Pt=fs(xt,function(Sr,gr){var br=Sr.invoke(gr,xt);le.optional(function(){Sr.assert(gr,br+"&&typeof "+br+'==="object"',"invalid "+ge)});var jr=Sr.shared.context,Qr=gr.def(br,".x|0"),Yn=gr.def(br,".y|0"),Ao=gr.def('"width" in ',br,"?",br,".width|0:","(",jr,".",Cu,"-",Qr,")"),El=gr.def('"height" in ',br,"?",br,".height|0:","(",jr,".",Ss,"-",Yn,")");return le.optional(function(){Sr.assert(gr,Ao+">=0&&"+El+">=0","invalid "+ge)}),[Qr,Yn,Ao,El]});return ue&&(Pt.thisDep=Pt.thisDep||ue.thisDep,Pt.contextDep=Pt.contextDep||ue.contextDep,Pt.propDep=Pt.propDep||ue.propDep),Pt}else return ue?new Ea(ue.thisDep,ue.contextDep,ue.propDep,function(Sr,gr){var br=Sr.shared.context;return[0,0,gr.def(br,".",Cu),gr.def(br,".",Ss)]}):null}var De=Re(Go);if(De){var Ue=De;De=new Ea(De.thisDep,De.contextDep,De.propDep,function(ge,Pe){var se=Ue.append(ge,Pe),Le=ge.shared.context;return Pe.set(Le,"."+R1,se[2]),Pe.set(Le,"."+Hp,se[3]),se})}return{viewport:De,scissor_box:Re(ql)}}function en(q,ue){var Ee=q.static,Qe=typeof Ee[As]=="string"&&typeof Ee[hs]=="string";if(Qe){if(Object.keys(ue.dynamic).length>0)return null;var Ye=ue.static,Re=Object.keys(Ye);if(Re.length>0&&typeof Ye[Re[0]]=="number"){for(var De=[],Ue=0;Ue=0,"invalid "+se,ue.commandStr),xo(function(Ct,xt){return Le&&(Ct.OFFSET=at),at})}else if(se in Qe){var dt=Qe[se];return fs(dt,function(Ct,xt){var Pt=Ct.invoke(xt,dt);return Le&&(Ct.OFFSET=Pt,le.optional(function(){Ct.assert(xt,Pt+">=0","invalid "+se)})),Pt})}else if(Le&&Re)return xo(function(Ct,xt){return Ct.OFFSET="0",0});return null}var ge=Ue(Gs,!0);function Pe(){if(ro in Ee){var se=Ee[ro]|0;return le.command(typeof se=="number"&&se>=0,"invalid vertex count",ue.commandStr),xo(function(){return se})}else if(ro in Qe){var Le=Qe[ro];return fs(Le,function(Ct,xt){var Pt=Ct.invoke(xt,Le);return le.optional(function(){Ct.assert(xt,"typeof "+Pt+'==="number"&&'+Pt+">=0&&"+Pt+"===("+Pt+"|0)","invalid vertex count")}),Pt})}else if(Re)if(ha(Re)){if(Re)return ge?new Ea(ge.thisDep,ge.contextDep,ge.propDep,function(Ct,xt){var Pt=xt.def(Ct.ELEMENTS,".vertCount-",Ct.OFFSET);return le.optional(function(){Ct.assert(xt,Pt+">=0","invalid vertex offset/element buffer too small")}),Pt}):xo(function(Ct,xt){return xt.def(Ct.ELEMENTS,".vertCount")});var at=xo(function(){return-1});return le.optional(function(){at.MISSING=!0}),at}else{var dt=new Ea(Re.thisDep||ge.thisDep,Re.contextDep||ge.contextDep,Re.propDep||ge.propDep,function(Ct,xt){var Pt=Ct.ELEMENTS;return Ct.OFFSET?xt.def(Pt,"?",Pt,".vertCount-",Ct.OFFSET,":-1"):xt.def(Pt,"?",Pt,".vertCount:-1")});return le.optional(function(){dt.DYNAMIC=!0}),dt}return null}return{elements:Re,primitive:De(),count:Pe(),instances:Ue(C1,!1),offset:ge}}function no(q,ue){var Ee=q.static,Qe=q.dynamic,Ye={};return Ot.forEach(function(Re){var De=er(Re);function Ue(ge,Pe){if(Re in Ee){var se=ge(Ee[Re]);Ye[De]=xo(function(){return se})}else if(Re in Qe){var Le=Qe[Re];Ye[De]=fs(Le,function(at,dt){return Pe(at,dt,at.invoke(dt,Le))})}}switch(Re){case yo:case hn:case qr:case Ju:case Wr:case Ts:case ta:case ca:case cs:case Mi:return Ue(function(ge){return le.commandType(ge,"boolean",Re,ue.commandStr),ge},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,"typeof "+se+'==="boolean"',"invalid flag "+Re,ge.commandStr)}),se});case Vr:return Ue(function(ge){return le.commandParameter(ge,Hc,"invalid "+Re,ue.commandStr),Hc[ge]},function(ge,Pe,se){var Le=ge.constants.compareFuncs;return le.optional(function(){ge.assert(Pe,se+" in "+Le,"invalid "+Re+", must be one of "+Object.keys(Hc))}),Pe.def(Le,"[",se,"]")});case to:return Ue(function(ge){return le.command(Vi(ge)&&ge.length===2&&typeof ge[0]=="number"&&typeof ge[1]=="number"&&ge[0]<=ge[1],"depth range is 2d array",ue.commandStr),ge},function(ge,Pe,se){le.optional(function(){ge.assert(Pe,ge.shared.isArrayLike+"("+se+")&&"+se+".length===2&&typeof "+se+'[0]==="number"&&typeof '+se+'[1]==="number"&&'+se+"[0]<="+se+"[1]","depth range must be a 2d array")});var Le=Pe.def("+",se,"[0]"),at=Pe.def("+",se,"[1]");return[Le,at]});case un:return Ue(function(ge){le.commandType(ge,"object","blend.func",ue.commandStr);var Pe="srcRGB"in ge?ge.srcRGB:ge.src,se="srcAlpha"in ge?ge.srcAlpha:ge.src,Le="dstRGB"in ge?ge.dstRGB:ge.dst,at="dstAlpha"in ge?ge.dstAlpha:ge.dst;return le.commandParameter(Pe,Kl,De+".srcRGB",ue.commandStr),le.commandParameter(se,Kl,De+".srcAlpha",ue.commandStr),le.commandParameter(Le,Kl,De+".dstRGB",ue.commandStr),le.commandParameter(at,Kl,De+".dstAlpha",ue.commandStr),le.command(Zp.indexOf(Pe+", "+Le)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+Pe+", "+Le+")",ue.commandStr),[Kl[Pe],Kl[Le],Kl[se],Kl[at]]},function(ge,Pe,se){var Le=ge.constants.blendFuncs;le.optional(function(){ge.assert(Pe,se+"&&typeof "+se+'==="object"',"invalid blend func, must be an object")});function at(br,jr){var Qr=Pe.def('"',br,jr,'" in ',se,"?",se,".",br,jr,":",se,".",br);return le.optional(function(){ge.assert(Pe,Qr+" in "+Le,"invalid "+Re+"."+br+jr+", must be one of "+Object.keys(Kl))}),Qr}var dt=at("src","RGB"),Ct=at("dst","RGB");le.optional(function(){var br=ge.constants.invalidBlendCombinations;ge.assert(Pe,br+".indexOf("+dt+'+", "+'+Ct+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var xt=Pe.def(Le,"[",dt,"]"),Pt=Pe.def(Le,"[",at("src","Alpha"),"]"),Sr=Pe.def(Le,"[",Ct,"]"),gr=Pe.def(Le,"[",at("dst","Alpha"),"]");return[xt,Sr,Pt,gr]});case Xr:return Ue(function(ge){if(typeof ge=="string")return le.commandParameter(ge,ut,"invalid "+Re,ue.commandStr),[ut[ge],ut[ge]];if(typeof ge=="object")return le.commandParameter(ge.rgb,ut,Re+".rgb",ue.commandStr),le.commandParameter(ge.alpha,ut,Re+".alpha",ue.commandStr),[ut[ge.rgb],ut[ge.alpha]];le.commandRaise("invalid blend.equation",ue.commandStr)},function(ge,Pe,se){var Le=ge.constants.blendEquations,at=Pe.def(),dt=Pe.def(),Ct=ge.cond("typeof ",se,'==="string"');return le.optional(function(){function xt(Pt,Sr,gr){ge.assert(Pt,gr+" in "+Le,"invalid "+Sr+", must be one of "+Object.keys(ut))}xt(Ct.then,Re,se),ge.assert(Ct.else,se+"&&typeof "+se+'==="object"',"invalid "+Re),xt(Ct.else,Re+".rgb",se+".rgb"),xt(Ct.else,Re+".alpha",se+".alpha")}),Ct.then(at,"=",dt,"=",Le,"[",se,"];"),Ct.else(at,"=",Le,"[",se,".rgb];",dt,"=",Le,"[",se,".alpha];"),Pe(Ct),[at,dt]});case Zr:return Ue(function(ge){return le.command(Vi(ge)&&ge.length===4,"blend.color must be a 4d array",ue.commandStr),Xn(4,function(Pe){return+ge[Pe]})},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,ge.shared.isArrayLike+"("+se+")&&"+se+".length===4","blend.color must be a 4d array")}),Xn(4,function(Le){return Pe.def("+",se,"[",Le,"]")})});case Su:return Ue(function(ge){return le.commandType(ge,"number",De,ue.commandStr),ge|0},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,"typeof "+se+'==="number"',"invalid stencil.mask")}),Pe.def(se,"|0")});case Ws:return Ue(function(ge){le.commandType(ge,"object",De,ue.commandStr);var Pe=ge.cmp||"keep",se=ge.ref||0,Le="mask"in ge?ge.mask:-1;return le.commandParameter(Pe,Hc,Re+".cmp",ue.commandStr),le.commandType(se,"number",Re+".ref",ue.commandStr),le.commandType(Le,"number",Re+".mask",ue.commandStr),[Hc[Pe],se,Le]},function(ge,Pe,se){var Le=ge.constants.compareFuncs;le.optional(function(){function xt(){ge.assert(Pe,Array.prototype.join.call(arguments,""),"invalid stencil.func")}xt(se+"&&typeof ",se,'==="object"'),xt('!("cmp" in ',se,")||(",se,".cmp in ",Le,")")});var at=Pe.def('"cmp" in ',se,"?",Le,"[",se,".cmp]",":",ic),dt=Pe.def(se,".ref|0"),Ct=Pe.def('"mask" in ',se,"?",se,".mask|0:-1");return[at,dt,Ct]});case $l:case yl:return Ue(function(ge){le.commandType(ge,"object",De,ue.commandStr);var Pe=ge.fail||"keep",se=ge.zfail||"keep",Le=ge.zpass||"keep";return le.commandParameter(Pe,oc,Re+".fail",ue.commandStr),le.commandParameter(se,oc,Re+".zfail",ue.commandStr),le.commandParameter(Le,oc,Re+".zpass",ue.commandStr),[Re===yl?zc:Iu,oc[Pe],oc[se],oc[Le]]},function(ge,Pe,se){var Le=ge.constants.stencilOps;le.optional(function(){ge.assert(Pe,se+"&&typeof "+se+'==="object"',"invalid "+Re)});function at(dt){return le.optional(function(){ge.assert(Pe,'!("'+dt+'" in '+se+")||("+se+"."+dt+" in "+Le+")","invalid "+Re+"."+dt+", must be one of "+Object.keys(oc))}),Pe.def('"',dt,'" in ',se,"?",Le,"[",se,".",dt,"]:",ic)}return[Re===yl?zc:Iu,at("fail"),at("zfail"),at("zpass")]});case Xs:return Ue(function(ge){le.commandType(ge,"object",De,ue.commandStr);var Pe=ge.factor|0,se=ge.units|0;return le.commandType(Pe,"number",De+".factor",ue.commandStr),le.commandType(se,"number",De+".units",ue.commandStr),[Pe,se]},function(ge,Pe,se){le.optional(function(){ge.assert(Pe,se+"&&typeof "+se+'==="object"',"invalid "+Re)});var Le=Pe.def(se,".factor|0"),at=Pe.def(se,".units|0");return[Le,at]});case Ri:return Ue(function(ge){var Pe=0;return ge==="front"?Pe=Iu:ge==="back"&&(Pe=zc),le.command(!!Pe,De,ue.commandStr),Pe},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,se+'==="front"||'+se+'==="back"',"invalid cull.face")}),Pe.def(se,'==="front"?',Iu,":",zc)});case ua:return Ue(function(ge){return le.command(typeof ge=="number"&&ge>=et.lineWidthDims[0]&&ge<=et.lineWidthDims[1],"invalid line width, must be a positive number between "+et.lineWidthDims[0]+" and "+et.lineWidthDims[1],ue.commandStr),ge},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,"typeof "+se+'==="number"&&'+se+">="+et.lineWidthDims[0]+"&&"+se+"<="+et.lineWidthDims[1],"invalid line width")}),se});case Pi:return Ue(function(ge){return le.commandParameter(ge,ac,De,ue.commandStr),ac[ge]},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,se+'==="cw"||'+se+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),Pe.def(se+'==="cw"?'+Cf+":"+Xp)});case Bo:return Ue(function(ge){return le.command(Vi(ge)&&ge.length===4,"color.mask must be length 4 array",ue.commandStr),ge.map(function(Pe){return!!Pe})},function(ge,Pe,se){return le.optional(function(){ge.assert(Pe,ge.shared.isArrayLike+"("+se+")&&"+se+".length===4","invalid color.mask")}),Xn(4,function(Le){return"!!"+se+"["+Le+"]"})});case Na:return Ue(function(ge){le.command(typeof ge=="object"&&ge,De,ue.commandStr);var Pe="value"in ge?ge.value:1,se=!!ge.invert;return le.command(typeof Pe=="number"&&Pe>=0&&Pe<=1,"sample.coverage.value must be a number between 0 and 1",ue.commandStr),[Pe,se]},function(ge,Pe,se){le.optional(function(){ge.assert(Pe,se+"&&typeof "+se+'==="object"',"invalid sample.coverage")});var Le=Pe.def('"value" in ',se,"?+",se,".value:1"),at=Pe.def("!!",se,".invert");return[Le,at]})}}),Ye}function Zo(q,ue){var Ee=q.static,Qe=q.dynamic,Ye={};return Object.keys(Ee).forEach(function(Re){var De=Ee[Re],Ue;if(typeof De=="number"||typeof De=="boolean")Ue=xo(function(){return De});else if(typeof De=="function"){var ge=De._reglType;ge==="texture2d"||ge==="textureCube"?Ue=xo(function(Pe){return Pe.link(De)}):ge==="framebuffer"||ge==="framebufferCube"?(le.command(De.color.length>0,'missing color attachment for framebuffer sent to uniform "'+Re+'"',ue.commandStr),Ue=xo(function(Pe){return Pe.link(De.color[0])})):le.commandRaise('invalid data for uniform "'+Re+'"',ue.commandStr)}else Vi(De)?Ue=xo(function(Pe){var se=Pe.global.def("[",Xn(De.length,function(Le){return le.command(typeof De[Le]=="number"||typeof De[Le]=="boolean","invalid uniform "+Re,Pe.commandStr),De[Le]}),"]");return se}):le.commandRaise('invalid or missing data for uniform "'+Re+'"',ue.commandStr);Ue.value=De,Ye[Re]=Ue}),Object.keys(Qe).forEach(function(Re){var De=Qe[Re];Ye[Re]=fs(De,function(Ue,ge){return Ue.invoke(ge,De)})}),Ye}function Mn(q,ue){var Ee=q.static,Qe=q.dynamic,Ye={};return Object.keys(Ee).forEach(function(Re){var De=Ee[Re],Ue=ae.id(Re),ge=new Xe;if(Rf(De))ge.state=Nt,ge.buffer=gt.getBuffer(gt.create(De,I1,!1,!0)),ge.type=0;else{var Pe=gt.getBuffer(De);if(Pe)ge.state=Nt,ge.buffer=Pe,ge.type=0;else if(le.command(typeof De=="object"&&De,"invalid data for attribute "+Re,ue.commandStr),"constant"in De){var se=De.constant;ge.buffer="null",ge.state=ar,typeof se=="number"?ge.x=se:(le.command(Vi(se)&&se.length>0&&se.length<=4,"invalid constant for attribute "+Re,ue.commandStr),Et.forEach(function(Sr,gr){gr=0,'invalid offset for attribute "'+Re+'"',ue.commandStr);var at=De.stride|0;le.command(at>=0&&at<256,'invalid stride for attribute "'+Re+'", must be integer betweeen [0, 255]',ue.commandStr);var dt=De.size|0;le.command(!("size"in De)||dt>0&&dt<=4,'invalid size for attribute "'+Re+'", must be 1,2,3,4',ue.commandStr);var Ct=!!De.normalized,xt=0;"type"in De&&(le.commandParameter(De.type,Xo,"invalid type for attribute "+Re,ue.commandStr),xt=Xo[De.type]);var Pt=De.divisor|0;"divisor"in De&&(le.command(Pt===0||Ft,'cannot specify divisor for attribute "'+Re+'", instancing not supported',ue.commandStr),le.command(Pt>=0,'invalid divisor for attribute "'+Re+'"',ue.commandStr)),le.optional(function(){var Sr=ue.commandStr,gr=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(De).forEach(function(br){le.command(gr.indexOf(br)>=0,'unknown parameter "'+br+'" for attribute pointer "'+Re+'" (valid parameters are '+gr+")",Sr)})}),ge.buffer=Pe,ge.state=Nt,ge.size=dt,ge.normalized=Ct,ge.type=xt||Pe.dtype,ge.offset=Le,ge.stride=at,ge.divisor=Pt}}Ye[Re]=xo(function(Sr,gr){var br=Sr.attribCache;if(Ue in br)return br[Ue];var jr={isStream:!1};return Object.keys(ge).forEach(function(Qr){jr[Qr]=ge[Qr]}),ge.buffer&&(jr.buffer=Sr.link(ge.buffer),jr.type=jr.type||jr.buffer+".dtype"),br[Ue]=jr,jr})}),Object.keys(Qe).forEach(function(Re){var De=Qe[Re];function Ue(ge,Pe){var se=ge.invoke(Pe,De),Le=ge.shared,at=ge.constants,dt=Le.isBufferArgs,Ct=Le.buffer;le.optional(function(){ge.assert(Pe,se+"&&(typeof "+se+'==="object"||typeof '+se+'==="function")&&('+dt+"("+se+")||"+Ct+".getBuffer("+se+")||"+Ct+".getBuffer("+se+".buffer)||"+dt+"("+se+'.buffer)||("constant" in '+se+"&&(typeof "+se+'.constant==="number"||'+Le.isArrayLike+"("+se+".constant))))",'invalid dynamic attribute "'+Re+'"')});var xt={isStream:Pe.def(!1)},Pt=new Xe;Pt.state=Nt,Object.keys(Pt).forEach(function(jr){xt[jr]=Pe.def(""+Pt[jr])});var Sr=xt.buffer,gr=xt.type;Pe("if(",dt,"(",se,")){",xt.isStream,"=true;",Sr,"=",Ct,".createStream(",I1,",",se,");",gr,"=",Sr,".dtype;","}else{",Sr,"=",Ct,".getBuffer(",se,");","if(",Sr,"){",gr,"=",Sr,".dtype;",'}else if("constant" in ',se,"){",xt.state,"=",ar,";","if(typeof "+se+'.constant === "number"){',xt[Et[0]],"=",se,".constant;",Et.slice(1).map(function(jr){return xt[jr]}).join("="),"=0;","}else{",Et.map(function(jr,Qr){return xt[jr]+"="+se+".constant.length>"+Qr+"?"+se+".constant["+Qr+"]:0;"}).join(""),"}}else{","if(",dt,"(",se,".buffer)){",Sr,"=",Ct,".createStream(",I1,",",se,".buffer);","}else{",Sr,"=",Ct,".getBuffer(",se,".buffer);","}",gr,'="type" in ',se,"?",at.glTypes,"[",se,".type]:",Sr,".dtype;",xt.normalized,"=!!",se,".normalized;");function br(jr){Pe(xt[jr],"=",se,".",jr,"|0;")}return br("size"),br("offset"),br("stride"),br("divisor"),Pe("}}"),Pe.exit("if(",xt.isStream,"){",Ct,".destroyStream(",Sr,");","}"),xt}Ye[Re]=fs(De,Ue)}),Ye}function io(q,ue){var Ee=q.static,Qe=q.dynamic;if(Yl in Ee){var Ye=Ee[Yl];return Ye!==null&&Zt.getVAO(Ye)===null&&(Ye=Zt.createVAO(Ye)),xo(function(De){return De.link(Zt.getVAO(Ye))})}else if(Yl in Qe){var Re=Qe[Yl];return fs(Re,function(De,Ue){var ge=De.invoke(Ue,Re);return Ue.def(De.shared.vao+".getVAO("+ge+")")})}return null}function xi(q){var ue=q.static,Ee=q.dynamic,Qe={};return Object.keys(ue).forEach(function(Ye){var Re=ue[Ye];Qe[Ye]=xo(function(De,Ue){return typeof Re=="number"||typeof Re=="boolean"?""+Re:De.link(Re)})}),Object.keys(Ee).forEach(function(Ye){var Re=Ee[Ye];Qe[Ye]=fs(Re,function(De,Ue){return De.invoke(Ue,Re)})}),Qe}function bo(q,ue,Ee,Qe,Ye){var Re=q.static,De=q.dynamic;le.optional(function(){var br=[xa,hs,As,On,Fo,Gs,ro,C1,Hi,Yl].concat(Ot);function jr(Qr){Object.keys(Qr).forEach(function(Yn){le.command(br.indexOf(Yn)>=0,'unknown parameter "'+Yn+'"',Ye.commandStr)})}jr(Re),jr(De)});var Ue=en(q,ue),ge=lr(q),Pe=mn(q,ge,Ye),se=Wn(q,Ye),Le=no(q,Ye),at=Gr(q,Ye,Ue);function dt(br){var jr=Pe[br];jr&&(Le[br]=jr)}dt(Go),dt(er(ql));var Ct=Object.keys(Le).length>0,xt={framebuffer:ge,draw:se,shader:at,state:Le,dirty:Ct,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(xt.profile=En(q),xt.uniforms=Zo(Ee,Ye),xt.drawVAO=xt.scopeVAO=io(q),!xt.drawVAO&&at.program&&!Ue&&be.angle_instanced_arrays){var Pt=!0,Sr=at.program.attributes.map(function(br){var jr=ue.static[br];return Pt=Pt&&!!jr,jr});if(Pt&&Sr.length>0){var gr=Zt.getVAO(Zt.createVAO(Sr));xt.drawVAO=new Ea(null,null,null,function(br,jr){return br.link(gr)}),xt.useVAO=!0}}return Ue?xt.useVAO=!0:xt.attributes=Mn(ue,Ye),xt.context=xi(Qe),xt}function Eo(q,ue,Ee){var Qe=q.shared,Ye=Qe.context,Re=q.scope();Object.keys(Ee).forEach(function(De){ue.save(Ye,"."+De);var Ue=Ee[De];Re(Ye,".",De,"=",Ue.append(q,ue),";")}),ue(Re)}function Xi(q,ue,Ee,Qe){var Ye=q.shared,Re=Ye.gl,De=Ye.framebuffer,Ue;nr&&(Ue=ue.def(Ye.extensions,".webgl_draw_buffers"));var ge=q.constants,Pe=ge.drawBuffer,se=ge.backBuffer,Le;Ee?Le=Ee.append(q,ue):Le=ue.def(De,".next"),Qe||ue("if(",Le,"!==",De,".cur){"),ue("if(",Le,"){",Re,".bindFramebuffer(",Vc,",",Le,".framebuffer);"),nr&&ue(Ue,".drawBuffersWEBGL(",Pe,"[",Le,".colorAttachments.length]);"),ue("}else{",Re,".bindFramebuffer(",Vc,",null);"),nr&&ue(Ue,".drawBuffersWEBGL(",se,");"),ue("}",De,".cur=",Le,";"),Qe||ue("}")}function No(q,ue,Ee){var Qe=q.shared,Ye=Qe.gl,Re=q.current,De=q.next,Ue=Qe.current,ge=Qe.next,Pe=q.cond(Ue,".dirty");Ot.forEach(function(se){var Le=er(se);if(!(Le in Ee.state)){var at,dt;if(Le in De){at=De[Le],dt=Re[Le];var Ct=Xn(At[Le].length,function(Pt){return Pe.def(at,"[",Pt,"]")});Pe(q.cond(Ct.map(function(Pt,Sr){return Pt+"!=="+dt+"["+Sr+"]"}).join("||")).then(Ye,".",wt[Le],"(",Ct,");",Ct.map(function(Pt,Sr){return dt+"["+Sr+"]="+Pt}).join(";"),";"))}else{at=Pe.def(ge,".",Le);var xt=q.cond(at,"!==",Ue,".",Le);Pe(xt),Le in ir?xt(q.cond(at).then(Ye,".enable(",ir[Le],");").else(Ye,".disable(",ir[Le],");"),Ue,".",Le,"=",at,";"):xt(Ye,".",wt[Le],"(",at,");",Ue,".",Le,"=",at,";")}}}),Object.keys(Ee.state).length===0&&Pe(Ue,".dirty=false;"),ue(Pe)}function fa(q,ue,Ee,Qe){var Ye=q.shared,Re=q.current,De=Ye.current,Ue=Ye.gl;If(Object.keys(Ee)).forEach(function(ge){var Pe=Ee[ge];if(!(Qe&&!Qe(Pe))){var se=Pe.append(q,ue);if(ir[ge]){var Le=ir[ge];ha(Pe)?se?ue(Ue,".enable(",Le,");"):ue(Ue,".disable(",Le,");"):ue(q.cond(se).then(Ue,".enable(",Le,");").else(Ue,".disable(",Le,");")),ue(De,".",ge,"=",se,";")}else if(Vi(se)){var at=Re[ge];ue(Ue,".",wt[ge],"(",se,");",se.map(function(dt,Ct){return at+"["+Ct+"]="+dt}).join(";"),";")}else ue(Ue,".",wt[ge],"(",se,");",De,".",ge,"=",se,";")}})}function To(q,ue){Ft&&(q.instancing=ue.def(q.shared.extensions,".angle_instanced_arrays"))}function dn(q,ue,Ee,Qe,Ye){var Re=q.shared,De=q.stats,Ue=Re.current,ge=Re.timer,Pe=Ee.profile;function se(){return typeof performance>"u"?"Date.now()":"performance.now()"}var Le,at;function dt(br){Le=ue.def(),br(Le,"=",se(),";"),typeof Ye=="string"?br(De,".count+=",Ye,";"):br(De,".count++;"),Mt&&(Qe?(at=ue.def(),br(at,"=",ge,".getNumPendingQueries();")):br(ge,".beginQuery(",De,");"))}function Ct(br){br(De,".cpuTime+=",se(),"-",Le,";"),Mt&&(Qe?br(ge,".pushScopeStats(",at,",",ge,".getNumPendingQueries(),",De,");"):br(ge,".endQuery();"))}function xt(br){var jr=ue.def(Ue,".profile");ue(Ue,".profile=",br,";"),ue.exit(Ue,".profile=",jr,";")}var Pt;if(Pe){if(ha(Pe)){Pe.enable?(dt(ue),Ct(ue.exit),xt("true")):xt("false");return}Pt=Pe.append(q,ue),xt(Pt)}else Pt=ue.def(Ue,".profile");var Sr=q.block();dt(Sr),ue("if(",Pt,"){",Sr,"}");var gr=q.block();Ct(gr),ue.exit("if(",Pt,"){",gr,"}")}function ra(q,ue,Ee,Qe,Ye){var Re=q.shared;function De(ge){switch(ge){case Tf:case Sf:case Fc:return 2;case M1:case ji:case Nc:return 3;case Af:case Bc:case nc:return 4;default:return 1}}function Ue(ge,Pe,se){var Le=Re.gl,at=ue.def(ge,".location"),dt=ue.def(Re.attributes,"[",at,"]"),Ct=se.state,xt=se.buffer,Pt=[se.x,se.y,se.z,se.w],Sr=["buffer","normalized","offset","stride"];function gr(){ue("if(!",dt,".buffer){",Le,".enableVertexAttribArray(",at,");}");var jr=se.type,Qr;if(se.size?Qr=ue.def(se.size,"||",Pe):Qr=Pe,ue("if(",dt,".type!==",jr,"||",dt,".size!==",Qr,"||",Sr.map(function(Ao){return dt+"."+Ao+"!=="+se[Ao]}).join("||"),"){",Le,".bindBuffer(",I1,",",xt,".buffer);",Le,".vertexAttribPointer(",[at,Qr,jr,se.normalized,se.stride,se.offset],");",dt,".type=",jr,";",dt,".size=",Qr,";",Sr.map(function(Ao){return dt+"."+Ao+"="+se[Ao]+";"}).join(""),"}"),Ft){var Yn=se.divisor;ue("if(",dt,".divisor!==",Yn,"){",q.instancing,".vertexAttribDivisorANGLE(",[at,Yn],");",dt,".divisor=",Yn,";}")}}function br(){ue("if(",dt,".buffer){",Le,".disableVertexAttribArray(",at,");",dt,".buffer=null;","}if(",Et.map(function(jr,Qr){return dt+"."+jr+"!=="+Pt[Qr]}).join("||"),"){",Le,".vertexAttrib4f(",at,",",Pt,");",Et.map(function(jr,Qr){return dt+"."+jr+"="+Pt[Qr]+";"}).join(""),"}")}Ct===Nt?gr():Ct===ar?br():(ue("if(",Ct,"===",Nt,"){"),gr(),ue("}else{"),br(),ue("}"))}Qe.forEach(function(ge){var Pe=ge.name,se=Ee.attributes[Pe],Le;if(se){if(!Ye(se))return;Le=se.append(q,ue)}else{if(!Ye(X3))return;var at=q.scopeAttrib(Pe);le.optional(function(){q.assert(ue,at+".state","missing attribute "+Pe)}),Le={},Object.keys(new Xe).forEach(function(dt){Le[dt]=ue.def(at,".",dt)})}Ue(q.link(ge),De(ge.info.type),Le)})}function qn(q,ue,Ee,Qe,Ye){for(var Re=q.shared,De=Re.gl,Ue,ge=0;ge1?ue(Xn(jr,function(El){return xt+"["+El+"]"})):ue(xt);ue(");")}}function Hr(q,ue,Ee,Qe){var Ye=q.shared,Re=Ye.gl,De=Ye.draw,Ue=Qe.draw;function ge(){var Qr=Ue.elements,Yn,Ao=ue;return Qr?((Qr.contextDep&&Qe.contextDynamic||Qr.propDep)&&(Ao=Ee),Yn=Qr.append(q,Ao)):Yn=Ao.def(De,".",On),Yn&&Ao("if("+Yn+")"+Re+".bindBuffer("+h_+","+Yn+".buffer.buffer);"),Yn}function Pe(){var Qr=Ue.count,Yn,Ao=ue;return Qr?((Qr.contextDep&&Qe.contextDynamic||Qr.propDep)&&(Ao=Ee),Yn=Qr.append(q,Ao),le.optional(function(){Qr.MISSING&&q.assert(ue,"false","missing vertex count"),Qr.DYNAMIC&&q.assert(Ao,Yn+">=0","missing vertex count")})):(Yn=Ao.def(De,".",ro),le.optional(function(){q.assert(Ao,Yn+">=0","missing vertex count")})),Yn}var se=ge();function Le(Qr){var Yn=Ue[Qr];return Yn?Yn.contextDep&&Qe.contextDynamic||Yn.propDep?Yn.append(q,Ee):Yn.append(q,ue):ue.def(De,".",Qr)}var at=Le(Fo),dt=Le(Gs),Ct=Pe();if(typeof Ct=="number"){if(Ct===0)return}else Ee("if(",Ct,"){"),Ee.exit("}");var xt,Pt;Ft&&(xt=Le(C1),Pt=q.instancing);var Sr=se+".type",gr=Ue.elements&&ha(Ue.elements);function br(){function Qr(){Ee(Pt,".drawElementsInstancedANGLE(",[at,Ct,Sr,dt+"<<(("+Sr+"-"+jt+")>>1)",xt],");")}function Yn(){Ee(Pt,".drawArraysInstancedANGLE(",[at,dt,Ct,xt],");")}se?gr?Qr():(Ee("if(",se,"){"),Qr(),Ee("}else{"),Yn(),Ee("}")):Yn()}function jr(){function Qr(){Ee(Re+".drawElements("+[at,Ct,Sr,dt+"<<(("+Sr+"-"+jt+")>>1)"]+");")}function Yn(){Ee(Re+".drawArrays("+[at,dt,Ct]+");")}se?gr?Qr():(Ee("if(",se,"){"),Qr(),Ee("}else{"),Yn(),Ee("}")):Yn()}Ft&&(typeof xt!="number"||xt>=0)?typeof xt=="string"?(Ee("if(",xt,">0){"),br(),Ee("}else if(",xt,"<0){"),jr(),Ee("}")):br():jr()}function Cn(q,ue,Ee,Qe,Ye){var Re=Nr(),De=Re.proc("body",Ye);return le.optional(function(){Re.commandStr=ue.commandStr,Re.command=Re.link(ue.commandStr)}),Ft&&(Re.instancing=De.def(Re.shared.extensions,".angle_instanced_arrays")),q(Re,De,Ee,Qe),Re.compile().body}function Vn(q,ue,Ee,Qe){To(q,ue),Ee.useVAO?Ee.drawVAO?ue(q.shared.vao,".setVAO(",Ee.drawVAO.append(q,ue),");"):ue(q.shared.vao,".setVAO(",q.shared.vao,".targetVAO);"):(ue(q.shared.vao,".setVAO(null);"),ra(q,ue,Ee,Qe.attributes,function(){return!0})),qn(q,ue,Ee,Qe.uniforms,function(){return!0}),Hr(q,ue,ue,Ee)}function oo(q,ue){var Ee=q.proc("draw",1);To(q,Ee),Eo(q,Ee,ue.context),Xi(q,Ee,ue.framebuffer),No(q,Ee,ue),fa(q,Ee,ue.state),dn(q,Ee,ue,!1,!0);var Qe=ue.shader.progVar.append(q,Ee);if(Ee(q.shared.gl,".useProgram(",Qe,".program);"),ue.shader.program)Vn(q,Ee,ue,ue.shader.program);else{Ee(q.shared.vao,".setVAO(null);");var Ye=q.global.def("{}"),Re=Ee.def(Qe,".id"),De=Ee.def(Ye,"[",Re,"]");Ee(q.cond(De).then(De,".call(this,a0);").else(De,"=",Ye,"[",Re,"]=",q.link(function(Ue){return Cn(Vn,q,ue,Ue,1)}),"(",Qe,");",De,".call(this,a0);"))}Object.keys(ue.state).length>0&&Ee(q.shared.current,".dirty=true;")}function bl(q,ue,Ee,Qe){q.batchId="a1",To(q,ue);function Ye(){return!0}ra(q,ue,Ee,Qe.attributes,Ye),qn(q,ue,Ee,Qe.uniforms,Ye),Hr(q,ue,ue,Ee)}function _e(q,ue,Ee,Qe){To(q,ue);var Ye=Ee.contextDep,Re=ue.def(),De="a0",Ue="a1",ge=ue.def();q.shared.props=ge,q.batchId=Re;var Pe=q.scope(),se=q.scope();ue(Pe.entry,"for(",Re,"=0;",Re,"<",Ue,";++",Re,"){",ge,"=",De,"[",Re,"];",se,"}",Pe.exit);function Le(Sr){return Sr.contextDep&&Ye||Sr.propDep}function at(Sr){return!Le(Sr)}if(Ee.needsContext&&Eo(q,se,Ee.context),Ee.needsFramebuffer&&Xi(q,se,Ee.framebuffer),fa(q,se,Ee.state,Le),Ee.profile&&Le(Ee.profile)&&dn(q,se,Ee,!1,!0),Qe)Ee.useVAO?Ee.drawVAO?Le(Ee.drawVAO)?se(q.shared.vao,".setVAO(",Ee.drawVAO.append(q,se),");"):Pe(q.shared.vao,".setVAO(",Ee.drawVAO.append(q,Pe),");"):Pe(q.shared.vao,".setVAO(",q.shared.vao,".targetVAO);"):(Pe(q.shared.vao,".setVAO(null);"),ra(q,Pe,Ee,Qe.attributes,at),ra(q,se,Ee,Qe.attributes,Le)),qn(q,Pe,Ee,Qe.uniforms,at),qn(q,se,Ee,Qe.uniforms,Le),Hr(q,Pe,se,Ee);else{var dt=q.global.def("{}"),Ct=Ee.shader.progVar.append(q,se),xt=se.def(Ct,".id"),Pt=se.def(dt,"[",xt,"]");se(q.shared.gl,".useProgram(",Ct,".program);","if(!",Pt,"){",Pt,"=",dt,"[",xt,"]=",q.link(function(Sr){return Cn(bl,q,Ee,Sr,2)}),"(",Ct,");}",Pt,".call(this,a0[",Re,"],",Re,");")}}function it(q,ue){var Ee=q.proc("batch",2);q.batchId="0",To(q,Ee);var Qe=!1,Ye=!0;Object.keys(ue.context).forEach(function(dt){Qe=Qe||ue.context[dt].propDep}),Qe||(Eo(q,Ee,ue.context),Ye=!1);var Re=ue.framebuffer,De=!1;Re?(Re.propDep?Qe=De=!0:Re.contextDep&&Qe&&(De=!0),De||Xi(q,Ee,Re)):Xi(q,Ee,null),ue.state.viewport&&ue.state.viewport.propDep&&(Qe=!0);function Ue(dt){return dt.contextDep&&Qe||dt.propDep}No(q,Ee,ue),fa(q,Ee,ue.state,function(dt){return!Ue(dt)}),(!ue.profile||!Ue(ue.profile))&&dn(q,Ee,ue,!1,"a1"),ue.contextDep=Qe,ue.needsContext=Ye,ue.needsFramebuffer=De;var ge=ue.shader.progVar;if(ge.contextDep&&Qe||ge.propDep)_e(q,Ee,ue,null);else{var Pe=ge.append(q,Ee);if(Ee(q.shared.gl,".useProgram(",Pe,".program);"),ue.shader.program)_e(q,Ee,ue,ue.shader.program);else{Ee(q.shared.vao,".setVAO(null);");var se=q.global.def("{}"),Le=Ee.def(Pe,".id"),at=Ee.def(se,"[",Le,"]");Ee(q.cond(at).then(at,".call(this,a0,a1);").else(at,"=",se,"[",Le,"]=",q.link(function(dt){return Cn(_e,q,ue,dt,2)}),"(",Pe,");",at,".call(this,a0,a1);"))}}Object.keys(ue.state).length>0&&Ee(q.shared.current,".dirty=true;")}function Ke(q,ue){var Ee=q.proc("scope",3);q.batchId="a2";var Qe=q.shared,Ye=Qe.current;Eo(q,Ee,ue.context),ue.framebuffer&&ue.framebuffer.append(q,Ee),If(Object.keys(ue.state)).forEach(function(De){var Ue=ue.state[De],ge=Ue.append(q,Ee);Vi(ge)?ge.forEach(function(Pe,se){Ee.set(q.next[De],"["+se+"]",Pe)}):Ee.set(Qe.next,"."+De,ge)}),dn(q,Ee,ue,!0,!0),[On,Gs,ro,C1,Fo].forEach(function(De){var Ue=ue.draw[De];Ue&&Ee.set(Qe.draw,"."+De,""+Ue.append(q,Ee))}),Object.keys(ue.uniforms).forEach(function(De){Ee.set(Qe.uniforms,"["+ae.id(De)+"]",ue.uniforms[De].append(q,Ee))}),Object.keys(ue.attributes).forEach(function(De){var Ue=ue.attributes[De].append(q,Ee),ge=q.scopeAttrib(De);Object.keys(new Xe).forEach(function(Pe){Ee.set(ge,"."+Pe,Ue[Pe])})}),ue.scopeVAO&&Ee.set(Qe.vao,".targetVAO",ue.scopeVAO.append(q,Ee));function Re(De){var Ue=ue.shader[De];Ue&&Ee.set(Qe.shader,"."+De,Ue.append(q,Ee))}Re(hs),Re(As),Object.keys(ue.state).length>0&&(Ee(Ye,".dirty=true;"),Ee.exit(Ye,".dirty=true;")),Ee("a1(",q.shared.context,",a0,",q.batchId,");")}function ur(q){if(!(typeof q!="object"||Vi(q))){for(var ue=Object.keys(q),Ee=0;Ee=0;--Hr){var Cn=vt[Hr];Cn&&Cn(Mt,null,0)}be.flush(),Zt&&Zt.update()}function Gr(){!mn&&vt.length>0&&(mn=ys.next(en))}function Wn(){mn&&(ys.cancel(en),mn=null)}function no(Hr){Hr.preventDefault(),gt=!0,Wn(),Nr.forEach(function(Cn){Cn()})}function Zo(Hr){be.getError(),gt=!1,rt.restore(),Ot.restore(),Ft.restore(),ir.restore(),wt.restore(),er.restore(),nr.restore(),Zt&&Zt.restore(),Fr.procs.refresh(),Gr(),En.forEach(function(Cn){Cn()})}Dt&&(Dt.addEventListener($p,no,!1),Dt.addEventListener(q3,Zo,!1));function Mn(){vt.length=0,Wn(),Dt&&(Dt.removeEventListener($p,no),Dt.removeEventListener(q3,Zo)),Ot.clear(),er.clear(),wt.clear(),ir.clear(),sr.clear(),Ft.clear(),nr.clear(),Zt&&Zt.clear(),lr.forEach(function(Hr){Hr()})}function io(Hr){le(!!Hr,"invalid args to regl({...})"),le.type(Hr,"object","invalid args to regl({...})");function Cn(Ye){var Re=n({},Ye);delete Re.uniforms,delete Re.attributes,delete Re.context,delete Re.vao,"stencil"in Re&&Re.stencil.op&&(Re.stencil.opBack=Re.stencil.opFront=Re.stencil.op,delete Re.stencil.op);function De(Ue){if(Ue in Re){var ge=Re[Ue];delete Re[Ue],Object.keys(ge).forEach(function(Pe){Re[Ue+"."+Pe]=ge[Pe]})}}return De("blend"),De("depth"),De("cull"),De("stencil"),De("polygonOffset"),De("scissor"),De("sample"),"vao"in Ye&&(Re.vao=Ye.vao),Re}function Vn(Ye){var Re={},De={};return Object.keys(Ye).forEach(function(Ue){var ge=Ye[Ue];Wi.isDynamic(ge)?De[Ue]=Wi.unbox(ge,Ue):Re[Ue]=ge}),{dynamic:De,static:Re}}var oo=Vn(Hr.context||{}),bl=Vn(Hr.uniforms||{}),_e=Vn(Hr.attributes||{}),it=Vn(Cn(Hr)),Ke={gpuTime:0,cpuTime:0,count:0},ur=Fr.compile(it,_e,bl,oo,Ke),_n=ur.draw,si=ur.batch,q=ur.scope,ue=[];function Ee(Ye){for(;ue.length0)return si.call(this,Ee(Ye|0),Ye|0)}else if(Array.isArray(Ye)){if(Ye.length)return si.call(this,Ye,Ye.length)}else return _n.call(this,Ye)}return n(Qe,{stats:Ke})}var xi=er.setFBO=io({framebuffer:Wi.define.call(null,qp,"framebuffer")});function bo(Hr,Cn){var Vn=0;Fr.procs.poll();var oo=Cn.color;oo&&(be.clearColor(+oo[0]||0,+oo[1]||0,+oo[2]||0,+oo[3]||0),Vn|=Z3),"depth"in Cn&&(be.clearDepth(+Cn.depth),Vn|=Ta),"stencil"in Cn&&(be.clearStencil(Cn.stencil|0),Vn|=A_),le(!!Vn,"called regl.clear with no buffer specified"),be.clear(Vn)}function Eo(Hr){if(le(typeof Hr=="object"&&Hr,"regl.clear() takes an object as input"),"framebuffer"in Hr)if(Hr.framebuffer&&Hr.framebuffer_reglType==="framebufferCube")for(var Cn=0;Cn<6;++Cn)xi(n({framebuffer:Hr.framebuffer.faces[Cn]},Hr),bo);else xi(Hr,bo);else bo(null,Hr)}function Xi(Hr){le.type(Hr,"function","regl.frame() callback must be a function"),vt.push(Hr);function Cn(){var Vn=Y3(vt,Hr);le(Vn>=0,"cannot cancel a frame twice");function oo(){var bl=Y3(vt,oo);vt[bl]=vt[vt.length-1],vt.length-=1,vt.length<=0&&Wn()}vt[Vn]=oo}return Gr(),{cancel:Cn}}function No(){var Hr=tr.viewport,Cn=tr.scissor_box;Hr[0]=Hr[1]=Cn[0]=Cn[1]=0,Mt.viewportWidth=Mt.framebufferWidth=Mt.drawingBufferWidth=Hr[2]=Cn[2]=be.drawingBufferWidth,Mt.viewportHeight=Mt.framebufferHeight=Mt.drawingBufferHeight=Hr[3]=Cn[3]=be.drawingBufferHeight}function fa(){Mt.tick+=1,Mt.time=dn(),No(),Fr.procs.poll()}function To(){No(),Fr.procs.refresh(),Zt&&Zt.update()}function dn(){return(Ma()-kt)/1e3}To();function ra(Hr,Cn){le.type(Cn,"function","listener callback must be a function");var Vn;switch(Hr){case"frame":return Xi(Cn);case"lost":Vn=Nr;break;case"restore":Vn=En;break;case"destroy":Vn=lr;break;default:le.raise("invalid event, must be one of frame,lost,restore,destroy")}return Vn.push(Cn),{cancel:function(){for(var oo=0;oo=0},read:rn,destroy:Mn,_gl:be,_refresh:To,poll:function(){fa(),Zt&&Zt.update()},now:dn,stats:Bt});return ae.onDone(null,qn),qn}return K3})})(qE);var YX=qE.exports;const KX=Co(YX);var QX=class{constructor(t,e){const{buffer:r,offset:n,stride:a,normalized:l,size:o,divisor:p}=e;this.buffer=r,this.attribute={buffer:r.get(),offset:n||0,stride:a||0,normalized:l||!1,divisor:p||0},o&&(this.attribute.size=o)}get(){return this.attribute}updateBuffer(t){this.buffer.subData(t)}destroy(){this.buffer.destroy()}},JX={[H.POINTS]:"points",[H.LINES]:"lines",[H.LINE_LOOP]:"line loop",[H.LINE_STRIP]:"line strip",[H.TRIANGLES]:"triangles",[H.TRIANGLE_FAN]:"triangle fan",[H.TRIANGLE_STRIP]:"triangle strip"},YE={[H.STATIC_DRAW]:"static",[H.DYNAMIC_DRAW]:"dynamic",[H.STREAM_DRAW]:"stream"},U2={[H.BYTE]:"int8",[H.INT]:"int32",[H.UNSIGNED_BYTE]:"uint8",[H.UNSIGNED_SHORT]:"uint16",[H.UNSIGNED_INT]:"uint32",[H.FLOAT]:"float"},eW={[H.ALPHA]:"alpha",[H.LUMINANCE]:"luminance",[H.LUMINANCE_ALPHA]:"luminance alpha",[H.RGB]:"rgb",[H.RGBA]:"rgba",[H.RGBA4]:"rgba4",[H.RGB5_A1]:"rgb5 a1",[H.RGB565]:"rgb565",[H.DEPTH_COMPONENT]:"depth",[H.DEPTH_STENCIL]:"depth stencil"},tW={[H.DONT_CARE]:"dont care",[H.NICEST]:"nice",[H.FASTEST]:"fast"},f8={[H.NEAREST]:"nearest",[H.LINEAR]:"linear",[H.LINEAR_MIPMAP_LINEAR]:"mipmap",[H.NEAREST_MIPMAP_LINEAR]:"nearest mipmap linear",[H.LINEAR_MIPMAP_NEAREST]:"linear mipmap nearest",[H.NEAREST_MIPMAP_NEAREST]:"nearest mipmap nearest"},p8={[H.REPEAT]:"repeat",[H.CLAMP_TO_EDGE]:"clamp",[H.MIRRORED_REPEAT]:"mirror"},rW={[H.NONE]:"none",[H.BROWSER_DEFAULT_WEBGL]:"browser"},nW={[H.NEVER]:"never",[H.ALWAYS]:"always",[H.LESS]:"less",[H.LEQUAL]:"lequal",[H.GREATER]:"greater",[H.GEQUAL]:"gequal",[H.EQUAL]:"equal",[H.NOTEQUAL]:"notequal"},d8={[H.FUNC_ADD]:"add",[H.MIN_EXT]:"min",[H.MAX_EXT]:"max",[H.FUNC_SUBTRACT]:"subtract",[H.FUNC_REVERSE_SUBTRACT]:"reverse subtract"},G0={[H.ZERO]:"zero",[H.ONE]:"one",[H.SRC_COLOR]:"src color",[H.ONE_MINUS_SRC_COLOR]:"one minus src color",[H.SRC_ALPHA]:"src alpha",[H.ONE_MINUS_SRC_ALPHA]:"one minus src alpha",[H.DST_COLOR]:"dst color",[H.ONE_MINUS_DST_COLOR]:"one minus dst color",[H.DST_ALPHA]:"dst alpha",[H.ONE_MINUS_DST_ALPHA]:"one minus dst alpha",[H.CONSTANT_COLOR]:"constant color",[H.ONE_MINUS_CONSTANT_COLOR]:"one minus constant color",[H.CONSTANT_ALPHA]:"constant alpha",[H.ONE_MINUS_CONSTANT_ALPHA]:"one minus constant alpha",[H.SRC_ALPHA_SATURATE]:"src alpha saturate"},iW={[H.NEVER]:"never",[H.ALWAYS]:"always",[H.LESS]:"less",[H.LEQUAL]:"lequal",[H.GREATER]:"greater",[H.GEQUAL]:"gequal",[H.EQUAL]:"equal",[H.NOTEQUAL]:"notequal"},ep={[H.ZERO]:"zero",[H.KEEP]:"keep",[H.REPLACE]:"replace",[H.INVERT]:"invert",[H.INCR]:"increment",[H.DECR]:"decrement",[H.INCR_WRAP]:"increment wrap",[H.DECR_WRAP]:"decrement wrap"},oW={[H.FRONT]:"front",[H.BACK]:"back"},aW=class{constructor(t,e){this.isDestroyed=!1;const{data:r,usage:n,type:a}=e;this.buffer=t.buffer({data:r,usage:YE[n||H.STATIC_DRAW],type:U2[a||H.UNSIGNED_BYTE]})}get(){return this.buffer}destroy(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}subData({data:t,offset:e}){this.buffer.subdata(t,e)}},sW=class{constructor(t,e){const{data:r,usage:n,type:a,count:l}=e;this.elements=t.elements({data:r,usage:YE[n||H.STATIC_DRAW],type:U2[a||H.UNSIGNED_BYTE],count:l})}get(){return this.elements}subData({data:t}){this.elements.subdata(t)}destroy(){}},lW=class{constructor(t,e){const{width:r,height:n,color:a,colors:l}=e,o={width:r,height:n};Array.isArray(l)&&(o.colors=l.map(p=>p.get())),a&&typeof a!="boolean"&&(o.color=a.get()),this.framebuffer=t.framebuffer(o)}get(){return this.framebuffer}destroy(){this.framebuffer.destroy()}resize({width:t,height:e}){this.framebuffer.resize(t,e)}},uW=Object.defineProperty,cW=Object.defineProperties,hW=Object.getOwnPropertyDescriptors,m8=Object.getOwnPropertySymbols,fW=Object.prototype.hasOwnProperty,pW=Object.prototype.propertyIsEnumerable,_8=(t,e,r)=>e in t?uW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Nd=(t,e)=>{for(var r in e||(e={}))fW.call(e,r)&&_8(t,r,e[r]);if(m8)for(var r of m8(e))pW.call(e,r)&&_8(t,r,e[r]);return t},dW=(t,e)=>cW(t,hW(e)),{isPlainObject:mW,isTypedArray:_W}=Ko,gW=class{constructor(t,e){this.destroyed=!1,this.uniforms={},this.reGl=t;const{vs:r,fs:n,attributes:a,uniforms:l,primitive:o,count:p,elements:m,depth:v,cull:E,instances:b}=e,A={platformString:"WebGL1",glslVersion:"#version 100",explicitBindingLocations:!1,separateSamplerTextures:!1,viewportOrigin:ku.LOWER_LEFT,clipSpaceNearZ:Rp.NEGATIVE_ONE,supportMRT:!1},R={};this.options=e,l&&(this.uniforms=this.extractUniforms(l),Object.keys(l).forEach(G=>{R[G]=t.prop(G)}));const O={};Object.keys(a).forEach(G=>{O[G]=a[G].get()});const D=n5(Op(A,"frag",n,null,!1)),N=n5(Op(A,"vert",r,null,!1)),W={attributes:O,frag:D,uniforms:R,vert:N,colorMask:t.prop("colorMask"),lineWidth:1,blend:{enable:t.prop("blend.enable"),func:t.prop("blend.func"),equation:t.prop("blend.equation"),color:t.prop("blend.color")},stencil:{enable:t.prop("stencil.enable"),mask:t.prop("stencil.mask"),func:t.prop("stencil.func"),opFront:t.prop("stencil.opFront"),opBack:t.prop("stencil.opBack")},primitive:JX[o===void 0?H.TRIANGLES:o]};b&&(W.instances=b),p?W.count=p:m&&(W.elements=m.get()),this.initDepthDrawParams({depth:v},W),this.initCullDrawParams({cull:E},W),this.drawCommand=t(W),this.drawParams=W}updateAttributesAndElements(t,e){const r={};Object.keys(t).forEach(n=>{r[n]=t[n].get()}),this.drawParams.attributes=r,this.drawParams.elements=e.get(),this.drawCommand=this.reGl(this.drawParams)}updateAttributes(t){const e={};Object.keys(t).forEach(r=>{e[r]=t[r].get()}),this.drawParams.attributes=e,this.drawCommand=this.reGl(this.drawParams)}addUniforms(t){this.uniforms=Nd(Nd({},this.uniforms),this.extractUniforms(t))}draw(t,e){if(this.drawParams.attributes&&Object.keys(this.drawParams.attributes).length===0)return;const r=Nd(Nd({},this.uniforms),this.extractUniforms(t.uniforms||{})),n={};Object.keys(r).forEach(a=>{const l=typeof r[a];l==="boolean"||l==="number"||Array.isArray(r[a])||r[a].BYTES_PER_ELEMENT?n[a]=r[a]:n[a]=r[a].get()}),n.blend=e?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(t),n.stencil=this.getStencilDrawParams(t),n.colorMask=this.getColorMaskDrawParams(t,e),this.drawCommand(n)}destroy(){var t,e;(e=(t=this.drawParams)==null?void 0:t.elements)==null||e.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach(r=>{r==null||r.destroy()}),this.destroyed=!0}initDepthDrawParams({depth:t},e){t&&(e.depth={enable:t.enable===void 0?!0:!!t.enable,mask:t.mask===void 0?!0:!!t.mask,func:nW[t.func||H.LESS],range:t.range||[0,1]})}getBlendDrawParams({blend:t}){const{enable:e,func:r,equation:n,color:a=[0,0,0,0]}=t||{};return{enable:!!e,func:{srcRGB:G0[r&&r.srcRGB||H.SRC_ALPHA],srcAlpha:G0[r&&r.srcAlpha||H.SRC_ALPHA],dstRGB:G0[r&&r.dstRGB||H.ONE_MINUS_SRC_ALPHA],dstAlpha:G0[r&&r.dstAlpha||H.ONE_MINUS_SRC_ALPHA]},equation:{rgb:d8[n&&n.rgb||H.FUNC_ADD],alpha:d8[n&&n.alpha||H.FUNC_ADD]},color:a}}getStencilDrawParams({stencil:t}){const{enable:e,mask:r=-1,func:n={cmp:H.ALWAYS,ref:0,mask:-1},opFront:a={fail:H.KEEP,zfail:H.KEEP,zpass:H.KEEP},opBack:l={fail:H.KEEP,zfail:H.KEEP,zpass:H.KEEP}}=t||{};return{enable:!!e,mask:r,func:dW(Nd({},n),{cmp:iW[n.cmp]}),opFront:{fail:ep[a.fail],zfail:ep[a.zfail],zpass:ep[a.zpass]},opBack:{fail:ep[l.fail],zfail:ep[l.zfail],zpass:ep[l.zpass]}}}getColorMaskDrawParams({stencil:t},e){return t!=null&&t.enable&&t.opFront&&!e?[!1,!1,!1,!1]:[!0,!0,!0,!0]}initCullDrawParams({cull:t},e){if(t){const{enable:r,face:n=H.BACK}=t;e.cull={enable:!!r,face:oW[n]}}}extractUniforms(t){const e={};return Object.keys(t).forEach(r=>{this.extractUniformsRecursively(r,t[r],e,"")}),e}extractUniformsRecursively(t,e,r,n){if(e===null||typeof e=="number"||typeof e=="boolean"||Array.isArray(e)&&typeof e[0]=="number"||_W(e)||e===""||"resize"in e){r[`${n&&n+"."}${t}`]=e;return}mW(e)&&Object.keys(e).forEach(a=>{this.extractUniformsRecursively(a,e[a],r,`${n&&n+"."}${t}`)}),Array.isArray(e)&&e.forEach((a,l)=>{Object.keys(a).forEach(o=>{this.extractUniformsRecursively(o,a[o],r,`${n&&n+"."}${t}[${l}]`)})})}},vW=class{constructor(t,e){this.isDestroy=!1;const{data:r,type:n=H.UNSIGNED_BYTE,width:a,height:l,flipY:o=!1,format:p=H.RGBA,mipmap:m=!1,wrapS:v=H.CLAMP_TO_EDGE,wrapT:E=H.CLAMP_TO_EDGE,aniso:b=0,alignment:A=1,premultiplyAlpha:R=!1,mag:O=H.NEAREST,min:D=H.NEAREST,colorSpace:N=H.BROWSER_DEFAULT_WEBGL,x:W=0,y:G=0,copy:Y=!1}=e;this.width=a,this.height=l;const Q={width:a,height:l,type:U2[n],format:eW[p],wrapS:p8[v],wrapT:p8[E],mag:f8[O],min:f8[D],alignment:A,flipY:o,colorSpace:rW[N],premultiplyAlpha:R,aniso:b,x:W,y:G,copy:Y};r&&(Q.data=r),typeof m=="number"?Q.mipmap=tW[m]:typeof m=="boolean"&&(Q.mipmap=m),this.texture=t.texture(Q)}get(){return this.texture}update(t={}){this.texture(t)}bind(){this.texture._texture.bind()}resize({width:t,height:e}){this.texture.resize(t,e),this.width=t,this.height=e}getSize(){return[this.width,this.height]}destroy(){var t;this.isDestroy||(t=this.texture)==null||t.destroy(),this.isDestroy=!0}},Cg=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),yW=class{constructor(){this.uniformBuffers=[],this.queryVerdorInfo=()=>"WebGL1",this.createModel=t=>new gW(this.gl,t),this.createAttribute=t=>new QX(this.gl,t),this.createBuffer=t=>new aW(this.gl,t),this.createElements=t=>new sW(this.gl,t),this.createTexture2D=t=>new vW(this.gl,t),this.createFramebuffer=t=>new lW(this.gl,t),this.useFramebuffer=(t,e)=>{this.gl({framebuffer:t?t.get():null})(e)},this.useFramebufferAsync=(t,e)=>Cg(this,null,function*(){this.gl({framebuffer:t?t.get():null})(e)}),this.clear=t=>{var e;const{color:r,depth:n,stencil:a,framebuffer:l=null}=t,o={color:r,depth:n,stencil:a};o.framebuffer=l===null?l:l.get(),(e=this.gl)==null||e.clear(o)},this.viewport=({x:t,y:e,width:r,height:n})=>{this.gl._gl.viewport(t,e,r,n),this.width=r,this.height=n,this.gl._refresh()},this.readPixels=t=>{const{framebuffer:e,x:r,y:n,width:a,height:l}=t,o={x:r,y:n,width:a,height:l};return e&&(o.framebuffer=e.get()),this.gl.read(o)},this.readPixelsAsync=t=>Cg(this,null,function*(){return this.readPixels(t)}),this.getViewportSize=()=>({width:this.gl._gl.drawingBufferWidth,height:this.gl._gl.drawingBufferHeight}),this.getContainer=()=>{var t;return(t=this.canvas)==null?void 0:t.parentElement},this.getCanvas=()=>this.canvas,this.getGLContext=()=>this.gl._gl,this.destroy=()=>{var t,e,r;this.canvas=null,(r=(e=(t=this.gl)==null?void 0:t._gl)==null?void 0:e.getExtension("WEBGL_lose_context"))==null||r.loseContext(),this.gl.destroy(),this.gl=null}}init(t,e,r){return Cg(this,null,function*(){this.canvas=t,r?this.gl=r:this.gl=yield new Promise((n,a)=>{KX({canvas:this.canvas,attributes:{alpha:!0,antialias:e.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,stencil:e.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture","WEBGL_lose_context"],profile:!0,onDone:(l,o)=>{(l||!o)&&a(l),n(o)}})}),this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")}})}getPointSizeRange(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}testExtension(t){return!!this.getGLContext().getExtension(t)}setState(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!0,equation:"add"},framebuffer:null}),this.gl._refresh()}setBaseState(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!1,equation:"add"},framebuffer:null}),this.gl._refresh()}setCustomLayerDefaults(){const t=this.getGLContext();t.disable(t.CULL_FACE)}setDirty(t){this.isDirty=t}getDirty(){return this.isDirty}beginFrame(){}endFrame(){}},Rg=["selectstart","selecting","selectend"],xW=class extends Ps.EventEmitter{constructor(t,e={}){super(),this.isEnable=!1,this.onDragStart=r=>{this.box.style.display="block",this.startEvent=this.endEvent=r,this.syncBoxBound(),this.emit("selectstart",this.getLngLatBox(),this.startEvent,this.endEvent)},this.onDragging=r=>{this.endEvent=r,this.syncBoxBound(),this.emit("selecting",this.getLngLatBox(),this.startEvent,this.endEvent)},this.onDragEnd=r=>{this.endEvent=r,this.box.style.display="none",this.emit("selectend",this.getLngLatBox(),this.startEvent,this.endEvent)},this.scene=t,this.options=e}get container(){return this.scene.getMapService().getMarkerContainer()}enable(){if(this.isEnable)return;const{className:t}=this.options;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){const e=_a("div",void 0,this.container);e.classList.add("l7-select-box"),t&&e.classList.add(t),e.style.display="none",this.box=e}this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.isEnable=!0}disable(){this.isEnable&&(this.scene.setMapStatus({dragEnable:!0}),this.container.style.cursor="auto",this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.isEnable=!1)}syncBoxBound(){const{x:t,y:e}=this.startEvent,{x:r,y:n}=this.endEvent,a=Math.min(t,r),l=Math.min(e,n),o=Math.abs(t-r),p=Math.abs(e-n);this.box.style.top=`${l}px`,this.box.style.left=`${a}px`,this.box.style.width=`${o}px`,this.box.style.height=`${p}px`}getLngLatBox(){const{lngLat:{lng:t,lat:e}}=this.startEvent,{lngLat:{lng:r,lat:n}}=this.endEvent;return Kw([[t,e],[r,n]])}},bW=Object.defineProperty,EW=Object.defineProperties,TW=Object.getOwnPropertyDescriptors,g8=Object.getOwnPropertySymbols,AW=Object.prototype.hasOwnProperty,SW=Object.prototype.propertyIsEnumerable,v8=(t,e,r)=>e in t?bW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,wW=(t,e)=>{for(var r in e||(e={}))AW.call(e,r)&&v8(t,r,e[r]);if(g8)for(var r of g8(e))SW.call(e,r)&&v8(t,r,e[r]);return t},CW=(t,e)=>EW(t,TW(e)),kd=(t,e,r)=>new Promise((n,a)=>{var l=m=>{try{p(r.next(m))}catch(v){a(v)}},o=m=>{try{p(r.throw(m))}catch(v){a(v)}},p=m=>m.done?n(m.value):Promise.resolve(m.value).then(l,o);p((r=r.apply(t,e)).next())}),RW=class{constructor(t){const{id:e,map:r,renderer:n="device"}=t,a=bO();this.container=a,r.setContainer(a,e),n==="regl"?a.rendererService=new yW:a.rendererService=new qX,this.sceneService=a.sceneService,this.mapService=a.mapService,this.iconService=a.iconService,this.fontService=a.fontService,this.controlService=a.controlService,this.layerService=a.layerService,this.debugService=a.debugService,this.debugService.setEnable(t.debug),this.markerService=a.markerService,this.interactionService=a.interactionService,this.popupService=a.popupService,this.boxSelect=new xW(this,{}),this.initComponent(e),this.sceneService.init(t),this.initControl()}get map(){return this.mapService.map}get loaded(){return this.sceneService.loaded}getServiceContainer(){return this.container}getSize(){return this.mapService.getSize()}getMinZoom(){return this.mapService.getMinZoom()}getMaxZoom(){return this.mapService.getMaxZoom()}getType(){return this.mapService.getType()}getMapContainer(){return this.mapService.getMapContainer()}getMapCanvasContainer(){return this.mapService.getMapCanvasContainer()}getMapService(){return this.mapService}getDebugService(){return this.debugService}exportPng(t){return kd(this,null,function*(){return this.sceneService.exportPng(t)})}exportMap(t){return kd(this,null,function*(){return this.sceneService.exportPng(t)})}registerRenderService(t){this.sceneService.loaded?new t(this).init():this.on("loaded",()=>{new t(this).init()})}setBgColor(t){this.mapService.setBgColor(t)}addLayer(t){this.loaded?this.preAddLayer(t):this.once("loaded",()=>{this.preAddLayer(t)})}preAddLayer(t){const e=Jd(this.container);if(t.setContainer(e),this.sceneService.addLayer(t),t.inited){this.initTileLayer(t);const r=this.initMask(t);this.addMask(r,t.id)}else t.on("inited",()=>{this.initTileLayer(t);const r=this.initMask(t);this.addMask(r,t.id)})}initMask(t){const{mask:e,maskfence:r,maskColor:n="#000",maskOpacity:a=0}=t.getLayerConfig();return!e||!r?void 0:new hE().source(r).shape("fill").style({color:n,opacity:a})}addMask(t,e){if(!t)return;const r=this.getLayer(e);if(r){const n=Jd(this.container);t.setContainer(n),r.addMaskLayer(t),this.sceneService.addMask(t)}else console.warn("parent layer not find!")}getPickedLayer(){return this.layerService.pickedLayerId}getLayers(){return this.layerService.getLayers()}getLayer(t){return this.layerService.getLayer(t)}getLayerByName(t){return this.layerService.getLayerByName(t)}removeLayer(t,e){return kd(this,null,function*(){yield this.layerService.remove(t,e)})}removeAllLayer(){return kd(this,null,function*(){yield this.layerService.removeAllLayers()})}render(){this.sceneService.render()}setEnableRender(t){this.layerService.setEnableRender(t)}addIconFont(t,e){this.fontService.addIconFont(t,e)}addIconFonts(t){t.forEach(([e,r])=>{this.fontService.addIconFont(e,r)})}addFontFace(t,e){this.fontService.once("fontloaded",r=>{this.emit("fontloaded",r)}),this.fontService.addFontFace(t,e)}addImage(t,e){return kd(this,null,function*(){yield this.iconService.addImage(t,e)})}hasImage(t){return this.iconService.hasImage(t)}removeImage(t){this.iconService.removeImage(t)}addIconFontGlyphs(t,e){this.fontService.addIconGlyphs(e)}addControl(t){this.controlService.addControl(t,this.container)}removeControl(t){this.controlService.removeControl(t)}getControlByName(t){return this.controlService.getControlByName(t)}addMarker(t){this.markerService.addMarker(t)}addMarkerLayer(t){this.markerService.addMarkerLayer(t)}removeMarkerLayer(t){this.markerService.removeMarkerLayer(t)}removeAllMarkers(){this.markerService.removeAllMarkers()}removeAllMakers(){console.warn("removeAllMakers 已废弃,请使用 removeAllMarkers"),this.markerService.removeAllMarkers()}addPopup(t){this.popupService.addPopup(t)}removePopup(t){this.popupService.removePopup(t)}on(t,e){var r;Rg.includes(t)?(r=this.boxSelect)==null||r.on(t,e):A0.includes(t)?this.sceneService.on(t,e):this.mapService.on(t,e)}once(t,e){var r;Rg.includes(t)?(r=this.boxSelect)==null||r.once(t,e):A0.includes(t)?this.sceneService.once(t,e):this.mapService.once(t,e)}emit(t,e){A0.indexOf(t)===-1?this.mapService.on(t,e):this.sceneService.emit(t,e)}off(t,e){var r;Rg.includes(t)?(r=this.boxSelect)==null||r.off(t,e):A0.includes(t)?this.sceneService.off(t,e):this.mapService.off(t,e)}getZoom(){return this.mapService.getZoom()}getCenter(t){return this.mapService.getCenter(t)}setCenter(t,e){return this.mapService.setCenter(t,e)}getPitch(){return this.mapService.getPitch()}setPitch(t){return this.mapService.setPitch(t)}getRotation(){return this.mapService.getRotation()}getBounds(){return this.mapService.getBounds()}setRotation(t){this.mapService.setRotation(t)}zoomIn(){this.mapService.zoomIn()}zoomOut(){this.mapService.zoomOut()}panTo(t){this.mapService.panTo(t)}panBy(t,e){this.mapService.panBy(t,e)}getContainer(){return this.mapService.getContainer()}setZoom(t){this.mapService.setZoom(t)}fitBounds(t,e){const{fitBoundsOptions:r,animate:n}=this.sceneService.getSceneConfig();this.mapService.fitBounds(t,e||CW(wW({},r),{animate:n}))}setZoomAndCenter(t,e){this.mapService.setZoomAndCenter(t,e)}setMapStyle(t){this.mapService.setMapStyle(t)}setMapStatus(t){this.mapService.setMapStatus(t)}pixelToLngLat(t){return this.mapService.pixelToLngLat(t)}lngLatToPixel(t){return this.mapService.lngLatToPixel(t)}containerToLngLat(t){return this.mapService.containerToLngLat(t)}lngLatToContainer(t){return this.mapService.lngLatToContainer(t)}destroy(){this.sceneService.destroy()}registerPostProcessingPass(t){this.container.postProcessingPass.name=new t}enableShaderPick(){this.layerService.enableShaderPick()}diasbleShaderPick(){this.layerService.disableShaderPick()}enableBoxSelect(t=!0){this.boxSelect.enable(),t&&this.boxSelect.once("selectend",()=>{this.disableBoxSelect()})}disableBoxSelect(){this.boxSelect.disable()}static addProtocol(t,e){$0.REGISTERED_PROTOCOLS[t]=e}static removeProtocol(t){delete $0.REGISTERED_PROTOCOLS[t]}getProtocol(t){return $0.REGISTERED_PROTOCOLS[t]}startAnimate(){this.layerService.startAnimate()}stopAnimate(){this.layerService.stopAnimate()}getPointSizeRange(){return this.sceneService.getPointSizeRange()}initComponent(t){this.controlService.init({container:Iw(t)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}initControl(){const{logoVisible:t,logoPosition:e}=this.sceneService.getSceneConfig();t&&this.addControl(new dD({position:e}))}initTileLayer(t){t.getSource().isTile&&(t.tileLayer=new Bz(t))}};const z2={fontFamily:` "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", - SimSun, "sans-serif"`},V2="l7plot-tooltip",H2="l7plot-tooltip__title",j2="l7plot-tooltip__list",KE="l7plot-tooltip__list-item",QE="l7plot-tooltip__name",JE="l7plot-tooltip__value",OW=`
        + SimSun, "sans-serif"`},V2="l7plot-tooltip",H2="l7plot-tooltip__title",j2="l7plot-tooltip__list",KE="l7plot-tooltip__list-item",QE="l7plot-tooltip__name",JE="l7plot-tooltip__value",IW=`
          `,y8=`
        • {name} {value} -
        • `,LW={[V2]:{visibility:"visible",zIndex:999,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"rgb(0 0 0 / 16%) 0px 6px 12px 0px",borderRadius:"2px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:z2.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},[H2]:{marginBottom:"4px"},[j2]:{margin:"0px",listStyleType:"none",padding:"0px"},[KE]:{listStyleType:"none",marginBottom:"4px",whiteSpace:"nowrap",display:"flex",justifyContent:"space-between"},[QE]:{},[JE]:{marginLeft:"30px"}};function DW(t,e){return!!t.className.match(new RegExp(`(\\s|^)${e}(\\s|$)`))}function X2(t){const e=t.childNodes,r=e.length;for(let n=r-1;n>=0;n--)t.removeChild(e[n])}class W2{constructor(e){this.destroyed=!1,this.options=Yh({},this.getDefaultOptions(),e),this.container=this.initContainer(),this.initDom(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible(),this.render()}getDefaultOptions(){return{name:"",containerTpl:"
          ",visible:!0,capture:!0,domStyles:{}}}getContainer(){return this.container}getParentContainer(){const e=this.options.parent;let r;if(!e)return r;if(nu(e)){const n=document.getElementById(e);if(n)r=n;else throw new Error(`No parent id ${e}`)}else r=e;return r}initContainer(){const e=this.createDom(this.options.containerTpl),r=this.getParentContainer();return r&&r.appendChild(e),e}initVisible(){this.options.visible?this.show():this.hide()}initCapture(){this.setCapture(this.options.capture)}update(e){this.options=Yh({},this.options,e),this.updateInner(e),this.afterUpdate(e)}updateInner(e){e.domStyles&&this.applyStyles()}afterUpdate(e){e.capture&&this.setCapture(e.capture)}setCapture(e){const r=this.container,n=e?"auto":"none";r.style.pointerEvents=n}applyStyles(){const e=this.options.domStyles;if(!e)return;const r=this.container;this.applyChildrenStyles(r,e);const n=this.options.className;if(n&&DW(r,n)){const a=e[n];Is(r,a)}}applyChildrenStyles(e,r){z4(r,(n,a)=>{const l=e.getElementsByClassName(a);z4(l,o=>{Is(o,n)})})}applyStyle(e,r){const n=this.options.domStyles;n&&Is(r,n[e])}createDom(e="
          "){return cT(e)}removeDom(){const e=this.container;e&&e.parentNode&&e.parentNode.removeChild(e)}destroy(){this.removeEvent(),this.removeDom(),this.destroyed=!0}}let BW=class extends W2{getDefaultOptions(){return Yh({},super.getDefaultOptions(),{id:"l7plot-tooltip",name:"l7plot-tooltip",title:"",showTitle:!0,items:[],containerTpl:OW,itemTpl:y8,domStyles:LW,className:V2})}initContainer(){const{customContent:e}=this.options;if(e){const r=this.getHtmlContentNode(e),n=this.getParentContainer();return n&&n.appendChild(r),r}else return super.initContainer()}initDom(){this.cacheDoms()}initEvent(){}removeEvent(){}cacheDoms(){const e=this.container,r=e.getElementsByClassName(H2)[0],n=e.getElementsByClassName(j2)[0];this.titleDom=r,this.listDom=n}render(){this.options.customContent?this.renderCustomContent(this.options.customContent):(this.resetTitle(),this.renderItems())}show(){const e=this.container;!e||this.destroyed||Is(e,{visibility:"visible"})}hide(){const e=this.container;!e||this.destroyed||Is(e,{visibility:"hidden"})}updateInner(e){this.options.customContent?this.renderCustomContent(this.options.customContent):(e.title&&this.resetTitle(),e.items&&this.renderItems()),super.updateInner(e)}renderCustomContent(e){const r=this.container.parentNode,n=this.getHtmlContentNode(e),a=this.container;r&&r.replaceChild(n,a),this.container=n,this.applyStyles()}getHtmlContentNode(e){let r;const n=e(this.options.title||"",this.options.items);return nu(n)?r=this.createDom(n):r=n,r}resetTitle(){const e=this.options.title;this.options.showTitle&&e?(this.showTitle(),this.setTitle(e)):this.hideTitle()}showTitle(){const e=this.titleDom;e&&Is(e,{display:"block"})}hideTitle(){const e=this.titleDom;e&&Is(e,{display:"none"})}setTitle(e){const r=this.titleDom;r&&(r.innerHTML=e)}renderItems(){this.clearItemDoms();const e=this.options.items,r=this.options.itemTpl||y8,n=this.listDom;n&&(e.forEach(a=>{const l=Object.assign({},a),o=Bv(r,l),p=this.createDom(o);n.appendChild(p)}),this.applyChildrenStyles(n,this.options.domStyles))}clearItemDoms(){this.listDom&&X2(this.listDom)}clear(){this.setTitle(""),this.clearItemDoms()}};const G2="l7plot-legend l7plot-legend__category",Z2="l7plot-legend__title",$2="l7plot-legend__category-list",e9="l7plot-legend__list-item",t9="l7plot-legend__category-marker",r9="l7plot-legend__category-value",FW=`
          +`,MW={[V2]:{visibility:"visible",zIndex:999,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"rgb(0 0 0 / 16%) 0px 6px 12px 0px",borderRadius:"2px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:z2.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},[H2]:{marginBottom:"4px"},[j2]:{margin:"0px",listStyleType:"none",padding:"0px"},[KE]:{listStyleType:"none",marginBottom:"4px",whiteSpace:"nowrap",display:"flex",justifyContent:"space-between"},[QE]:{},[JE]:{marginLeft:"30px"}};function PW(t,e){return!!t.className.match(new RegExp(`(\\s|^)${e}(\\s|$)`))}function X2(t){const e=t.childNodes,r=e.length;for(let n=r-1;n>=0;n--)t.removeChild(e[n])}class W2{constructor(e){this.destroyed=!1,this.options=Yh({},this.getDefaultOptions(),e),this.container=this.initContainer(),this.initDom(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible(),this.render()}getDefaultOptions(){return{name:"",containerTpl:"
          ",visible:!0,capture:!0,domStyles:{}}}getContainer(){return this.container}getParentContainer(){const e=this.options.parent;let r;if(!e)return r;if(nu(e)){const n=document.getElementById(e);if(n)r=n;else throw new Error(`No parent id ${e}`)}else r=e;return r}initContainer(){const e=this.createDom(this.options.containerTpl),r=this.getParentContainer();return r&&r.appendChild(e),e}initVisible(){this.options.visible?this.show():this.hide()}initCapture(){this.setCapture(this.options.capture)}update(e){this.options=Yh({},this.options,e),this.updateInner(e),this.afterUpdate(e)}updateInner(e){e.domStyles&&this.applyStyles()}afterUpdate(e){e.capture&&this.setCapture(e.capture)}setCapture(e){const r=this.container,n=e?"auto":"none";r.style.pointerEvents=n}applyStyles(){const e=this.options.domStyles;if(!e)return;const r=this.container;this.applyChildrenStyles(r,e);const n=this.options.className;if(n&&PW(r,n)){const a=e[n];Is(r,a)}}applyChildrenStyles(e,r){z4(r,(n,a)=>{const l=e.getElementsByClassName(a);z4(l,o=>{Is(o,n)})})}applyStyle(e,r){const n=this.options.domStyles;n&&Is(r,n[e])}createDom(e="
          "){return lT(e)}removeDom(){const e=this.container;e&&e.parentNode&&e.parentNode.removeChild(e)}destroy(){this.removeEvent(),this.removeDom(),this.destroyed=!0}}let OW=class extends W2{getDefaultOptions(){return Yh({},super.getDefaultOptions(),{id:"l7plot-tooltip",name:"l7plot-tooltip",title:"",showTitle:!0,items:[],containerTpl:IW,itemTpl:y8,domStyles:MW,className:V2})}initContainer(){const{customContent:e}=this.options;if(e){const r=this.getHtmlContentNode(e),n=this.getParentContainer();return n&&n.appendChild(r),r}else return super.initContainer()}initDom(){this.cacheDoms()}initEvent(){}removeEvent(){}cacheDoms(){const e=this.container,r=e.getElementsByClassName(H2)[0],n=e.getElementsByClassName(j2)[0];this.titleDom=r,this.listDom=n}render(){this.options.customContent?this.renderCustomContent(this.options.customContent):(this.resetTitle(),this.renderItems())}show(){const e=this.container;!e||this.destroyed||Is(e,{visibility:"visible"})}hide(){const e=this.container;!e||this.destroyed||Is(e,{visibility:"hidden"})}updateInner(e){this.options.customContent?this.renderCustomContent(this.options.customContent):(e.title&&this.resetTitle(),e.items&&this.renderItems()),super.updateInner(e)}renderCustomContent(e){const r=this.container.parentNode,n=this.getHtmlContentNode(e),a=this.container;r&&r.replaceChild(n,a),this.container=n,this.applyStyles()}getHtmlContentNode(e){let r;const n=e(this.options.title||"",this.options.items);return nu(n)?r=this.createDom(n):r=n,r}resetTitle(){const e=this.options.title;this.options.showTitle&&e?(this.showTitle(),this.setTitle(e)):this.hideTitle()}showTitle(){const e=this.titleDom;e&&Is(e,{display:"block"})}hideTitle(){const e=this.titleDom;e&&Is(e,{display:"none"})}setTitle(e){const r=this.titleDom;r&&(r.innerHTML=e)}renderItems(){this.clearItemDoms();const e=this.options.items,r=this.options.itemTpl||y8,n=this.listDom;n&&(e.forEach(a=>{const l=Object.assign({},a),o=Bv(r,l),p=this.createDom(o);n.appendChild(p)}),this.applyChildrenStyles(n,this.options.domStyles))}clearItemDoms(){this.listDom&&X2(this.listDom)}clear(){this.setTitle(""),this.clearItemDoms()}};const G2="l7plot-legend l7plot-legend__category",Z2="l7plot-legend__title",$2="l7plot-legend__category-list",e9="l7plot-legend__list-item",t9="l7plot-legend__category-marker",r9="l7plot-legend__category-value",LW=`
            `,x8=`
          • {value} -
          • `,NW={[G2]:{visibility:"visible",zIndex:1,backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"rgb(0 0 0 / 16%) 0px 6px 12px 0px",borderRadius:"2px",color:"rgb(87, 87, 87)",fontFamily:z2.fontFamily,padding:"10px 10px 6px 10px",lineHeight:1,fontSize:"12px"},[Z2]:{fontSize:"13px",lineHeight:"19px",marginBottom:"8px"},[$2]:{margin:"0px",listStyleType:"none",padding:"0px"},[e9]:{listStyleType:"none",display:"flex",alignItems:"center",marginBottom:"2px"},[t9]:{width:"10px",height:"10px"},[r9]:{paddingLeft:"8px"}};class kW extends W2{getDefaultOptions(){return Yh({},super.getDefaultOptions(),{id:"l7plot-category-legend",name:"l7plot-category-legend",title:"",items:[],containerTpl:FW,itemTpl:x8,domStyles:NW,className:G2})}initContainer(){const{customContent:e}=this.options;if(e){const r=this.getHtmlContentNode(e),n=this.getParentContainer();return n&&n.appendChild(r),r}else return super.initContainer()}initDom(){this.cacheDoms()}initEvent(){}removeEvent(){}cacheDoms(){const e=this.container,r=e.getElementsByClassName(Z2)[0],n=e.getElementsByClassName($2)[0];this.titleDom=r,this.listDom=n}render(){this.options.customContent?this.renderCustomContent(this.options.customContent):(this.resetTitle(),this.renderItems())}show(){const e=this.container;!e||this.destroyed||Is(e,{visibility:"visible"})}hide(){const e=this.container;!e||this.destroyed||Is(e,{visibility:"hidden"})}updateInner(e){this.options.customContent?this.renderCustomContent(this.options.customContent):(e.title&&this.resetTitle(),e.items&&this.renderItems()),super.updateInner(e)}renderCustomContent(e){const r=this.container.parentNode,n=this.getHtmlContentNode(e),a=this.container;r&&r.replaceChild(n,a),this.container=n,this.applyStyles()}getHtmlContentNode(e){let r;const n=e(this.options.title||"",this.options.items);return nu(n)?r=this.createDom(n):r=n,r}resetTitle(){const e=this.options.title;e?(this.showTitle(),this.setTitle(e)):this.hideTitle()}showTitle(){const e=this.titleDom;e&&Is(e,{display:"block"})}hideTitle(){const e=this.titleDom;e&&Is(e,{display:"none"})}setTitle(e){const r=this.titleDom;r&&(r.innerHTML=e)}renderItems(){this.clearItemDoms();const e=this.options.items.length>30?this.options.items.slice(0,30):this.options.items,r=this.options.itemTpl||x8,n=this.listDom;n&&(e.forEach(a=>{const o=a.value===""?"—":Array.isArray(a.value)?a.value.join(" - "):a.value,p=Object.assign(Object.assign({},a),{value:o}),m=Bv(r,p),v=this.createDom(m);n.appendChild(v)}),this.applyChildrenStyles(n,this.options.domStyles))}clearItemDoms(){this.listDom&&X2(this.listDom)}clear(){this.setTitle(""),this.clearItemDoms()}}const q2="l7plot-legend l7plot-legend__continue",Y2="l7plot-legend__title",n9="l7plot-legend__ribbon-container",i9="l7plot-legend__ribbon",o9="l7plot-legend__gradient-bar",Mv="l7plot-legend__value-range",UW=`
            +`,DW={[G2]:{visibility:"visible",zIndex:1,backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"rgb(0 0 0 / 16%) 0px 6px 12px 0px",borderRadius:"2px",color:"rgb(87, 87, 87)",fontFamily:z2.fontFamily,padding:"10px 10px 6px 10px",lineHeight:1,fontSize:"12px"},[Z2]:{fontSize:"13px",lineHeight:"19px",marginBottom:"8px"},[$2]:{margin:"0px",listStyleType:"none",padding:"0px"},[e9]:{listStyleType:"none",display:"flex",alignItems:"center",marginBottom:"2px"},[t9]:{width:"10px",height:"10px"},[r9]:{paddingLeft:"8px"}};class BW extends W2{getDefaultOptions(){return Yh({},super.getDefaultOptions(),{id:"l7plot-category-legend",name:"l7plot-category-legend",title:"",items:[],containerTpl:LW,itemTpl:x8,domStyles:DW,className:G2})}initContainer(){const{customContent:e}=this.options;if(e){const r=this.getHtmlContentNode(e),n=this.getParentContainer();return n&&n.appendChild(r),r}else return super.initContainer()}initDom(){this.cacheDoms()}initEvent(){}removeEvent(){}cacheDoms(){const e=this.container,r=e.getElementsByClassName(Z2)[0],n=e.getElementsByClassName($2)[0];this.titleDom=r,this.listDom=n}render(){this.options.customContent?this.renderCustomContent(this.options.customContent):(this.resetTitle(),this.renderItems())}show(){const e=this.container;!e||this.destroyed||Is(e,{visibility:"visible"})}hide(){const e=this.container;!e||this.destroyed||Is(e,{visibility:"hidden"})}updateInner(e){this.options.customContent?this.renderCustomContent(this.options.customContent):(e.title&&this.resetTitle(),e.items&&this.renderItems()),super.updateInner(e)}renderCustomContent(e){const r=this.container.parentNode,n=this.getHtmlContentNode(e),a=this.container;r&&r.replaceChild(n,a),this.container=n,this.applyStyles()}getHtmlContentNode(e){let r;const n=e(this.options.title||"",this.options.items);return nu(n)?r=this.createDom(n):r=n,r}resetTitle(){const e=this.options.title;e?(this.showTitle(),this.setTitle(e)):this.hideTitle()}showTitle(){const e=this.titleDom;e&&Is(e,{display:"block"})}hideTitle(){const e=this.titleDom;e&&Is(e,{display:"none"})}setTitle(e){const r=this.titleDom;r&&(r.innerHTML=e)}renderItems(){this.clearItemDoms();const e=this.options.items.length>30?this.options.items.slice(0,30):this.options.items,r=this.options.itemTpl||x8,n=this.listDom;n&&(e.forEach(a=>{const o=a.value===""?"—":Array.isArray(a.value)?a.value.join(" - "):a.value,p=Object.assign(Object.assign({},a),{value:o}),m=Bv(r,p),v=this.createDom(m);n.appendChild(v)}),this.applyChildrenStyles(n,this.options.domStyles))}clearItemDoms(){this.listDom&&X2(this.listDom)}clear(){this.setTitle(""),this.clearItemDoms()}}const q2="l7plot-legend l7plot-legend__continue",Y2="l7plot-legend__title",n9="l7plot-legend__ribbon-container",i9="l7plot-legend__ribbon",o9="l7plot-legend__gradient-bar",Mv="l7plot-legend__value-range",FW=`
            `,b8=`
            {min}
            {max} -
            `,zW={[q2]:{visibility:"visible",zIndex:1,backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"rgb(0 0 0 / 16%) 0px 6px 12px 0px",borderRadius:"2px",color:"rgb(87, 87, 87)",fontFamily:z2.fontFamily,padding:"10px",lineHeight:1,fontSize:"12px"},[Y2]:{fontSize:"13px",lineHeight:"19px",marginBottom:"8px"},[i9]:{display:"flex",alignItems:"center"},[o9]:{width:"140px",height:"14px",margin:"0px 5px"},[Mv]:{padding:"0px"}};class VW extends W2{getDefaultOptions(){return Yh({},super.getDefaultOptions(),{id:"l7plot-continue-legend",name:"l7plot-continue-legend",title:"",containerTpl:UW,ribbonTpl:b8,domStyles:zW,className:q2})}initContainer(){const{customContent:e}=this.options;if(e){const r=this.getHtmlContentNode(e),n=this.getParentContainer();return n&&n.appendChild(r),r}else return super.initContainer()}initDom(){this.cacheDoms()}initEvent(){}removeEvent(){}cacheDoms(){const e=this.container,r=e.getElementsByClassName(Y2)[0],n=e.getElementsByClassName(n9)[0];this.titleDom=r,this.ribbonContainerDom=n}render(){this.options.customContent?this.renderCustomContent(this.options.customContent):(this.resetTitle(),this.renderRibbon())}show(){const e=this.container;!e||this.destroyed||Is(e,{visibility:"visible"})}hide(){const e=this.container;!e||this.destroyed||Is(e,{visibility:"hidden"})}updateInner(e){this.options.customContent?this.renderCustomContent(this.options.customContent):(e.title&&this.resetTitle(),e.colors&&this.renderRibbon()),super.updateInner(e)}renderCustomContent(e){const r=this.container.parentNode,n=this.getHtmlContentNode(e),a=this.container;r&&r.replaceChild(n,a),this.container=n,this.applyStyles()}getHtmlContentNode(e){let r;const n=e(this.options.title||"",this.options.min,this.options.max,this.options.colors);return nu(n)?r=this.createDom(n):r=n,r}resetTitle(){const e=this.options.title;e?(this.showTitle(),this.setTitle(e)):this.hideTitle()}showTitle(){const e=this.titleDom;e&&Is(e,{display:"block"})}hideTitle(){const e=this.titleDom;e&&Is(e,{display:"none"})}setTitle(e){const r=this.titleDom;r&&(r.innerHTML=e)}renderRibbon(){this.clearRibbonContainerDoms();const{min:e,max:r,colors:n,ribbonTpl:a=b8}=this.options,l=this.ribbonContainerDom;if(l){const o=`linear-gradient(to right, ${n.join(", ")})`,m=Bv(a,{min:e,max:r,backgroundImage:o}),v=this.createDom(m);l.appendChild(v),this.applyChildrenStyles(l,this.options.domStyles)}}clearRibbonContainerDoms(){this.ribbonContainerDom&&X2(this.ribbonContainerDom)}clear(){this.setTitle(""),this.clearRibbonContainerDoms()}}class HW extends eh{constructor(e){super(e),this.legendComponents=[],this.options=e,this.legendComponents=this.initLegendComponents(e.items)}initLegendComponents(e){const r=[];for(let n=0;n{const n=r.getContainer();e.appendChild(n)}),e}onRemove(){this.legendComponents.forEach(e=>{e.destroy()})}}const jW=5,XW=new Object().toString,a9=(t,e)=>XW.call(t)==="[object "+e+"]",WW=t=>a9(t,"Array"),GW=t=>typeof t=="object"&&t!==null,E8=t=>{if(!GW(t)||!a9(t,"Object"))return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},s9=(t,e,r,n)=>{r=r||0,n=n||jW;for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const l=e[a];l?E8(l)?(E8(t[a])||(t[a]={}),r{for(let r=0;r{const{feature:A,featureId:R}=b,{title:O,customTitle:D,items:N,customItems:W}=this.options,Y=A.type==="Feature"&&A.geometry&&A.properties?A.properties:A;let Q=[];if(W){const Se=W(A);if(Array.isArray(Se))Q=Se;else throw new Error("customItems return array")}else N&&N.forEach(Se=>{if(nu(Se)){const ce=Se.split(".").pop()||Se,ke=Z4(Y,Se);ke!==void 0&&Q.push({name:ce,value:ke})}else{const{field:ce,alias:ke,customValue:ct}=Se,Ve=ke||ce.split(".").pop()||ce,Te=Z4(Y,ce);Te!==void 0&&Q.push({name:Ve,value:ct?ct(Te,Y,R):Te})}});const J={title:D?D(Y):O,items:Q};this.updateTooltip(b,J)},this.interactionUntriggerHander=()=>{this.hideTooltip()},this.scene=e,this.interactionLayers=r,this.options=Sl({},this.getDefaultOptions(),n);const{offsets:a,title:l,showTitle:o,customContent:p,domStyles:m,anchor:v,className:E}=this.options;this.marker=new n6({offsets:a,anchor:v,draggable:!1}),this.tooltipComponent=new BW({title:l,showTitle:o,items:[],customContent:p,domStyles:m,className:E}),this.setComponent(),this.initInteractionEvent()}getDefaultOptions(){return{showTitle:!0,showComponent:!0,items:[],offsets:[15,0],trigger:"mousemove",anchor:Xv["TOP-LEFT"]}}update(e){this.marker.remove(),this.currentVisible=!1,this.options=Sl({},this.options,e);const{offsets:r,showTitle:n,customContent:a,domStyles:l,anchor:o,className:p}=this.options;this.marker=new n6({offsets:r,anchor:o,draggable:!1}),this.tooltipComponent.update({showTitle:n,customContent:a,domStyles:l,className:p}),this.setComponent()}initInteractionEvent(){const e=this.options.trigger||"mousemove";if(!ZW.includes(e))throw new Error("trigger is mousemove or click");this.interactionLayers.forEach(({layer:r})=>{r.on(e,this.interactionTriggerHander),r.on(`un${e}`,this.interactionUntriggerHander)})}unBindInteractionEvent(){const e=this.options.trigger||"mousemove";this.interactionLayers.forEach(({layer:r})=>{r.off(e,this.interactionTriggerHander),r.off(`un${e}`,this.interactionUntriggerHander)})}updateTooltip(e,r){const{lngLat:n,x:a,y:l}=e;if(this.options.showComponent&&(this.updateComponent(r),this.setPostion(n)),this.currentVisible){const o={type:"tooltip:change",data:r,lngLat:n,x:a,y:l};this.emit("tooltip:change",o)}else{this.showTooltip();const o={type:"tooltip:show",data:r,lngLat:n,x:a,y:l};this.emit("tooltip:show",o)}}showTooltip(){this.currentVisible||(this.options.showComponent&&this.scene.addMarker(this.marker),this.currentVisible=!0)}hideTooltip(){if(!this.currentVisible)return;this.options.showComponent&&this.marker.remove(),this.currentVisible=!1;const e={type:"tooltip:hide"};this.emit("tooltip:hide",e)}updateComponent(e){Ca(this.lastComponentOptions,e)||(this.tooltipComponent.update(e),this.lastComponentOptions=e)}setComponent(){const e=this.tooltipComponent.getContainer(),r=window.document.createElement("div");r.style.cursor="auto",r.style.userSelect="text",r.className="l7plot-tooltip-container",["mousemove","mousedown","mouseup","click","dblclick"].forEach(n=>{r.addEventListener(n,a=>a.stopPropagation())}),r.appendChild(e),this.marker.setElement(r)}setPostion(e){this.marker.setLnglat(e)}destroy(){this.unBindInteractionEvent(),this.off(),this.marker.remove(),this.tooltipComponent.destroy()}}class l9 extends qm{constructor(e=[],r={}){super(),this.name=r.name?r.name:Fv("layerGroup"),this.layers=e}addTo(e){this.scene=e;let r=0;const n=this.layers.length;this.layers.forEach(a=>{a.once("inited",l=>{r++,this.emit("inited",l),r===n&&this.emit("inited-all")}),a.addTo(e)})}hasLayer(e){return this.layers.some(r=>r===e)}addLayer(e){this.layers.push(e),this.scene&&(e.once("inited",r=>this.emit("inited",r)),e.addTo(this.scene))}removeLayer(e){const r=this.layers.findIndex(n=>n===e);return r===-1?!1:(this.layers.splice(r,1),this.scene&&e.remove(this.scene),!0)}getLayers(){return this.layers}getInteractionLayers(){return this.layers.filter(({interaction:e})=>e)}getLayer(e){return this.layers.find(({layer:r})=>r.id===e)}getLayerByName(e){return this.layers.find(r=>r.name===e)}removeAllLayer(){this.layers.forEach(e=>{this.scene&&e.remove(this.scene)}),this.layers=[]}isEmpty(){return this.layers.length===0}}const qW=[{original:"loaded",adaptation:"scene-loaded"},{original:"resize",adaptation:"resize"},{original:"destroy",adaptation:"destroy"},{original:"resize",adaptation:"resize"}],YW=["mapmove","movestart","moveend","zoomchange","zoomstart","zoomend","click","dblclick","contextmenu","mousemove","mousewheel","mouseover","mouseout","mouseup","mousedown","dragstart","dragging","dragend"],um=["inited","add","remove","dataUpdate","click","unclick","dblclick","undblclick","contextmenu","uncontextmenu","mouseenter","mousemove","unmousemove","mouseout","mouseup","unmouseup","mousedown","uncontextmenu","unpick","legend","legend:color","legend:size"],u9={map:{type:Ou.Amap},logo:!0};let c9=class h9 extends qm{constructor(e){super(),this.inited=!1,this.sceneLoaded=!1,this.layersLoaded=!1,this.loaded=!1,this.layerGroup=new l9,this.options=Sl({},this.getDefaultOptions(),e),this.lastOptions=this.options}getDefaultOptions(){return h9.DefaultOptions}createContainer(e){const{width:r,height:n}=this.options,a=typeof e=="string"?document.getElementById(e):e;return a.style.position||(a.style.position="relative"),r&&(a.style.width||(a.style.width=`${r}px`)),n&&(a.style.height||(a.style.height=`${n}px`)),a}createTheme(){return zd(this.options.theme)?Sl({},Og("default"),V8(this.options.theme)):Og(this.options.theme)}createMap(){const e=this.options.map?this.options.map:u9.map,{type:r}=e,n=e1(e,["type"]),a=Object.assign({style:this.theme.mapStyle},n);return r===Ou.Amap?new SH(a):r===Ou.AmapV1?new wH(a):r===Ou.AmapV2?new CH(a):r===Ou.Mapbox?new AH(a):new gH(a)}createScene(){const{logo:e,antialias:r,preserveDrawingBuffer:n}=this.options,a=O8(e)?{logoVisible:e}:{logoVisible:e==null?void 0:e.visible,logoPosition:e==null?void 0:e.position},l=Object.assign({antialias:r,preserveDrawingBuffer:n},a),o=this.createMap();return new PW(Object.assign({id:this.container,map:o},l))}registerResources(){q4.size&&q4.forEach((e,r)=>{!this.scene.hasImage(r)&&this.scene.addImage(r,e)}),Y4.size&&Y4.forEach((e,r)=>{this.scene.addFontFace(r,e)}),K4.size&&K4.forEach((e,r)=>{this.scene.addIconFont(r,e)})}update(e){this.updateOption(e),e.map&&!Ca(this.lastOptions.map,this.options.map)&&this.updateMap(e.map),this.render(),this.emit("update")}updateOption(e){this.lastOptions=this.options,this.options=Sl({},this.options,e)}updateMap(e){var r;if(!this.scene)return;const{style:n,center:a,zoom:l,rotation:o,pitch:p}=e;Qc(p)||this.scene.setPitch(p),Qc(o)||this.scene.setRotation(o),n&&n!==((r=this.lastOptions.map)===null||r===void 0?void 0:r.style)&&this.scene.setMapStyle(n),l&&a&&this.scene.setZoomAndCenter(l,a)}changeSize(e,r){this.options.width===e&&this.options.height===r||(this.container.style.width=`${e}px`,this.container.style.height=`${r}px`,this.options=Object.assign(this.options,{width:e,height:r}))}on(e,r,n){return this.proxyEventHander("on",e,r,n),this}once(e,r){return this.proxyEventHander("once",e,r),this}off(e,r){return this.proxyEventHander("off",e,r),this}proxyEventHander(e,r,n,a){const l=qW.find(o=>o.adaptation===r);if(l)this.scene[e](l.original,n);else if(YW.indexOf(r)!==-1)this.scene[e](r,n);else if(r.includes("Layer:")){const[o,p]=r.split(":");if(this[o]&&this[o][e]&&um.indexOf(p)!==-1)this[o][e](p,n);else throw new Error(`No event name "${r}"`)}else super[e](r,n,a)}getScene(){return this.scene}getMap(){var e,r,n,a;return((e=this.options.map)===null||e===void 0?void 0:e.type)===Ou.Amap?this.scene.map:((r=this.options.map)===null||r===void 0?void 0:r.type)===Ou.AmapV2?this.scene.map:((n=this.options.map)===null||n===void 0?void 0:n.type)===Ou.Mapbox?this.scene.map:((a=this.options.map)===null||a===void 0?void 0:a.type)===Ou.Map?this.scene.map:this.scene.map}addLayer(e){this.layerGroup.addLayer(e)}getLayes(){return console.warn("Replace to use getLayers()"),this.getLayers()}getLayers(){return this.layerGroup.getLayers()}getLayerByName(e){return this.layerGroup.getLayerByName(e)}removeLayer(e){return this.layerGroup.removeLayer(e)}removeAllLayer(){this.layerGroup.removeAllLayer()}zoomIn(){this.scene.zoomIn()}zoomOut(){this.scene.zoomOut()}setPitch(e){this.scene.setPitch(e)}fitBounds(e){this.scene.fitBounds(e)}setMapStatus(e){this.scene.setMapStatus(e)}setBgColor(e){this.scene.setBgColor(e)}initComponents(){this.initControls(),this.initTooltip()}updateComponents(){this.updateControls(),this.initTooltip()}initControls(){const{zoom:e,scale:r,layerMenu:n,legend:a}=this.options;r&&this.addScaleControl(r),e&&this.addZoomControl(e),n&&this.addLayerMenuControl(n),a&&(this.addLegendControl(a),this.emit("add-legend"))}updateControls(){const{zoom:e,scale:r,layerMenu:n,legend:a}=this.options;Ca(this.lastOptions.zoom,e)||(e?this.updateZoomControl(e):this.removeZoomControl()),Ca(this.lastOptions.scale,r)||(r?this.updateScaleControl(r):this.removeScaleControl()),Ca(this.lastOptions.layerMenu,n)||(n?this.updateLayerMenuControl(n):this.removeLayerMenuControl()),Ca(this.lastOptions.legend,a)||(a?this.updateLegendControl(a):this.removeLegendControl())}addZoomControl(e){this.zoomControl||(this.zoomControl=new Uz(e),this.scene.addControl(this.zoomControl))}updateZoomControl(e){if(!this.zoomControl){this.addZoomControl(e);return}this.removeZoomControl(),this.addZoomControl(e)}removeZoomControl(){this.zoomControl&&(this.zoomControl.remove(),this.zoomControl=void 0)}addScaleControl(e){this.scaleControl||(this.scaleControl=new vD(e),this.scene.addControl(this.scaleControl))}updateScaleControl(e){if(!this.scaleControl){this.addScaleControl(e);return}this.removeScaleControl(),this.addScaleControl(e)}removeScaleControl(){this.scaleControl&&(this.scaleControl.remove(),this.scaleControl=void 0)}addLayerMenuControl(e){this.layerGroup.getLayers().forEach(({name:r,layer:n})=>{})}updateLayerMenuControl(e){this.removeLayerMenuControl(),this.addLayerMenuControl(e)}removeLayerMenuControl(){}getLegendOptions(){return{}}addLegendControl(e){if(this.legendControl)return;const r=this.theme.components.legend,n=Sl({},this.getLegendOptions(),e),{type:a,position:l}=n,o=e1(n,["type","position"]),p=[];if(a==="category"){const m=Sl({},{domStyles:r.category.domStyles},o);p.push({type:a,options:m})}else if(a==="continue"){const m=Sl({},{domStyles:r.continue.domStyles},o);p.push({type:a,options:m})}p.length&&(this.legendControl=new HW({position:l,items:p}),this.scene.addControl(this.legendControl))}updateLegendControl(e){if(!this.legendControl){this.addLegendControl(e);return}this.removeLegendControl(),this.addLegendControl(e)}removeLegendControl(){this.legendControl&&(this.legendControl.remove(),this.legendControl=void 0)}initTooltip(){this.tooltip&&this.tooltip.destroy();const{tooltip:e}=this.options;if(e){const r=Sl({},{domStyles:this.theme.components.tooltip.domStyles},e),n=this.layerGroup.getInteractionLayers();this.tooltip=new $W(this.scene,n,r),this.tooltip.on("*",a=>this.emit(a.type,a))}}exportPng(e){return this.scene.exportPng(e)}destroy(){var e;super.off("*"),this.removeScaleControl(),this.removeZoomControl(),this.removeLayerMenuControl(),this.removeLegendControl(),(e=this.tooltip)===null||e===void 0||e.destroy(),this.scene.destroy()}};c9.DefaultOptions=u9;class Pv{static aggregation(e,r){const{type:n="grid",radius:a,method:l,field:o}=r,p={type:n,size:a,method:l,field:o};e.transforms?(e.transforms=e.transforms.filter(m=>m.type!==p.type),e.transforms.push(p)):e.transforms=[p]}}const f9=["name","zIndex","visible","minZoom","maxZoom","pickingBuffer","autoFit","blend"];class rh extends qm{constructor(e){super(),this.options=Sl({},this.getDefaultOptions(),e),this.lastOptions=this.options}getDefaultOptions(){return{}}pickLayerConfig(e){return hm(e,f9)}addTo(e){e.addLayer(this.layer)}remove(e){e.removeLayer(this.layer)}update(e){this.updateOption(e),this.updateConfig(e)}updateOption(e){this.lastOptions=this.options,this.options=Sl({},this.options,e)}updateConfig(e){!Qc(e.zIndex)&&!Ca(this.lastOptions.zIndex,this.options.zIndex)&&this.setIndex(e.zIndex),!Qc(e.blend)&&!Ca(this.lastOptions.blend,this.options.blend)&&this.setBlend(e.blend),!Qc(e.minZoom)&&!Ca(this.lastOptions.minZoom,this.options.minZoom)&&this.setMinZoom(e.minZoom),!Qc(e.maxZoom)&&!Ca(this.lastOptions.maxZoom,this.options.maxZoom)&&this.setMinZoom(e.maxZoom),!Qc(e.visible)&&!Ca(this.lastOptions.visible,this.options.visible)&&(e.visible?this.show():this.hide())}render(){this.layer.renderLayers()}setSource(e){if(e instanceof a2)this.layer.setSource(e);else{const{data:r,aggregation:n}=e,a=e1(e,["data","aggregation"]);n&&Pv.aggregation(a,n),this.layer.getSource()?this.layer.setData(r,a):this.layer.source(r,a)}}changeData(e){this.setSource(e)}setIndex(e){this.layer.setIndex(e)}setBlend(e){this.layer.setBlend(e)}setMinZoom(e){this.layer.setMinZoom(e)}setMaxZoom(e){this.layer.setMaxZoom(e)}show(){this.layer.inited&&this.layer.show()}hide(){this.layer.inited&&this.layer.hide()}toggleVisible(){this.isVisible()?this.hide():this.show()}isVisible(){return this.layer.inited?this.layer.isVisible():this.options.visible}fitBounds(e){this.layer.fitBounds(e)}on(e,r){return um.indexOf(e)!==-1?this.layer.on(e,r):super.on(e,r),this}once(e,r){return um.indexOf(e)!==-1?this.layer.once(e,r):super.once(e,r),this}off(e,r){return um.indexOf(e)!==-1?this.layer.off(e,r):super.off(e,r),this}}rh.LayerType=Lg;rh.LayerConfigkeys=f9;function Hh(t,e){return(...r)=>{const n={};return t.forEach((a,l)=>{n[a]=r[l]}),delete n.undefined,e(n)}}class Bi{static shape(e,r){if(nu(r))e.shape(r);else if(V1(r)){const n=[];e.shape(n.join("*"),Hh(n,r))}else if(zd(r)){const n=r.field?r.field:"";if(V1(r.value)){const a=dd(n)?n:n.split("*");e.shape(n,Hh(a,r.value))}else e.shape(n,r.value);nu(n)&&r.scale&&Bi.scale(e,n,r.scale)}}static size(e,r){if(hT(r))e.size(r);else if(dd(r))e.size(r);else if(V1(r)){const n=[];e.size(n.join("*"),Hh(n,r))}else if(zd(r)){const n=r.field?r.field:"";if(V1(r.value)){const a=dd(n)?n:n.split("*");e.size(n,Hh(a,r.value))}else e.size(n,r.value);nu(n)&&r.scale&&Bi.scale(e,n,r.scale)}}static color(e,r){if(nu(r))e.color(r);else if(V1(r)){const n=[];e.color(n.join("*"),Hh(n,r))}else if(zd(r)){const n=r.field?r.field:"";if(V1(r.value)){const a=dd(n)?n:n.split("*");e.color(n,Hh(a,r.value))}else e.color(n,r.value);nu(n)&&r.scale&&Bi.scale(e,n,r.scale)}}static style(e,r){r&&e.style(r)}static state(e,r){const{active:n,select:a}=r;n&&e.active(n),a&&e.select(a)}static rotate(e,r){nu(r)||V1(r)}static texture(e,r){nu(r)&&e.texture(r)}static animate(e,r){(O8(r)||zd(r))&&e.animate(r)}static scale(e,r,n){e.scale(r,n)}static filter(e,r){const n=r.field?r.field:"",a=dd(n)?n:n.split("*");e.filter(a.join("*"),Hh(a,r.value))}}function KW(t,e){const{field:r,content:n,style:a={},state:l}=e,{fontSize:o,fill:p}=a,v={field:r||n||"",value:"text"};Bi.shape(t,v),o&&Bi.size(t,o),p&&Bi.color(t,p),a&&Bi.style(t,a),l&&Bi.state(t,l)}const p9={style:{fontSize:12}},QW=[];class K2 extends rh{constructor(e){super(e),this.type=rh.LayerType.TextLayer,this.interaction=!1;const{name:r,source:n}=this.options,a=this.pickLayerConfig(this.options);this.name=r||Fv(this.type),this.layer=new Dm(Object.assign(Object.assign({},a),{name:this.name})),this.mappingLayer(this.layer,this.options),this.setSource(n)}getDefaultOptions(){return p9}mappingLayer(e,r){KW(e,r)}update(e){super.update(e),this.mappingLayer(this.layer,this.options)}}K2.DefaultOptions=p9;K2.LayerOptionsKeys=rh.LayerConfigkeys.concat(QW);const JW={autoFit:!1};class nf extends c9{constructor(e,r){if(typeof e=="string"||e instanceof Element){if(r===void 0)throw new Error("options is undefined");super(r),this.container=this.createContainer(e),this.theme=this.createTheme(),this.scene=this.createScene(),this.registerResources(),this.initSource()}else super(e)}initSource(){this.source=this.createSource(),this.render(),this.inited=!0}initLayersEvent(){}getDefaultOptions(){return nf.DefaultOptions}createSource(){const e=this.options.source,{data:r,aggregation:n}=e,a=e1(e,["data","aggregation"]);return n&&Pv.aggregation(a,n),new a2(r,a)}createLabelLayer(e,r,n){const{visible:a,minZoom:l,maxZoom:o,zIndex:p=0}=n||{};return new K2(Object.assign({name:"labelLayer",visible:a,minZoom:l,maxZoom:o,zIndex:p+.1,source:e},r))}updateLabelLayer(e,r,n,a){r?a?a.update(Object.assign({},r)):(a=this.createLabelLayer(e,r,n),this.layerGroup.addLayer(a)):r===!1&&a&&this.layerGroup.removeLayer(a)}render(){const e=this.createLayers(this.source);this.inited?(this.layerGroup.removeAllLayer(),e.addTo(this.scene),this.layerGroup=e):(this.layerGroup=e,this.scene.sceneService.loaded?this.onSceneLoaded():this.scene.once("loaded",()=>{this.onSceneLoaded()})),this.initLayersEvent()}onSceneLoaded(){this.sceneLoaded=!0,this.layerGroup.isEmpty()?this.onLayersLoaded():this.layerGroup.once("inited-all",()=>{this.onLayersLoaded()}),this.layerGroup.addTo(this.scene)}onLayersLoaded(){this.layersLoaded=!0,this.initComponents(),this.loaded=!0,this.emit("loaded")}attachToScene(e,r){this.scene=e,this.theme=r||Og("default"),this.registerResources(),this.initSource()}unattachFromScene(){var e;this.removeAllLayer(),(e=this.tooltip)===null||e===void 0||e.destroy()}addToScene(e){this.attachToScene(e)}removeFromScene(){var e;this.removeAllLayer(),this.removeScaleControl(),this.removeZoomControl(),this.removeLayerMenuControl(),this.removeLegendControl(),(e=this.tooltip)===null||e===void 0||e.destroy()}update(e){if(this.updateOption(e),e.map&&!Ca(this.lastOptions.map,this.options.map)&&this.updateMap(e.map),this.scene.setEnableRender(!1),e.source&&!Ca(this.lastOptions.source,this.options.source)){const r=e.source,{data:n}=r,a=e1(r,["data"]);this.changeData(n,a)}this.scene.setEnableRender(!0),this.render(),this.updateComponents(),this.emit("update")}changeData(e,r){this.options.source=Sl({},this.options.source,Object.assign({data:e},r));const n=this.options.source,{aggregation:a}=n,l=e1(n,["aggregation"]);a&&Pv.aggregation(l,a),this.source.setData(this.options.source.data,l);const o=this.options.legend;o&&setTimeout(()=>{this.updateLegendControl(o)},500),this.emit("change-data")}}nf.DefaultOptions=JW;nf.PlotType=Dg;const eG=t=>!Array.isArray(t[0].value),tG=t=>eG(t)?t:t.map(r=>Object.assign(Object.assign({},r),{value:[$4(r.value[0],4),$4(r.value[1],4)]})),rG=Sl({},nf.DefaultOptions,{source:{data:{type:"FeatureCollection",features:[]},parser:{type:"geojson"}}}),T8="#2f54eb",za={active:{fill:!1,stroke:T8,lineWidth:1.5,lineOpacity:.8},select:{fill:!1,stroke:T8,lineWidth:1.5,lineOpacity:.8}},Yd=t=>(Qc(t)||(t.active===!1?za.active=Object.assign(za.active,{fill:!1,stroke:!1}):typeof t.active=="object"&&(t.active.fill===!1?za.active.fill=!1:typeof t.active.fill=="string"&&(za.active.fill=t.active.fill),t.active.stroke===!1?za.active.stroke=!1:typeof t.active.stroke=="string"&&(za.active.stroke=t.active.stroke),typeof t.active.lineWidth=="number"&&(za.active.lineWidth=t.active.lineWidth),typeof t.active.lineOpacity=="number"&&(za.active.lineOpacity=t.active.lineOpacity)),t.select===!1?za.select=Object.assign(za.select,{fill:!1,stroke:!1}):typeof t.select=="object"&&(t.select.fill===!1?za.select.fill=!1:typeof t.select.fill=="string"&&(za.select.fill=t.select.fill),t.select.stroke===!1?za.select.stroke=!1:typeof t.select.stroke=="string"&&(za.select.stroke=t.select.stroke),typeof t.select.lineWidth=="number"&&(za.select.lineWidth=t.select.lineWidth),typeof t.select.lineOpacity=="number"&&(za.select.lineOpacity=t.select.lineOpacity))),za);function nG(t,e,r,n,a,l){const{color:o,style:p,state:m}=l,v=Yd(m),E={active:v.active.fill===!1?!1:{color:v.active.fill},select:!1},b={opacity:p==null?void 0:p.opacity},A=p==null?void 0:p.lineWidth,R=p==null?void 0:p.stroke,O={opacity:p==null?void 0:p.lineOpacity,dashArray:p==null?void 0:p.lineDash,lineType:p==null?void 0:p.lineType};if(Bi.shape(t,"fill"),o&&Bi.color(t,o),b&&Bi.style(t,b),E&&Bi.state(t,E),Bi.shape(e,"line"),A&&Bi.size(e,A),R&&Bi.color(e,R),O&&Bi.style(e,O),v.active.stroke){const D=v.active.stroke,N=v.active.lineWidth||A,W={opacity:v.active.lineOpacity};Bi.shape(r,"line"),N&&Bi.size(r,N),D&&Bi.color(r,D),W&&Bi.style(r,W)}if(v.select.fill){const D=v.select.fill;Bi.shape(n,"fill"),D&&Bi.color(n,D),b&&Bi.style(n,b),Bi.state(n,{select:!1,active:!1})}if(v.select.stroke){const D=v.select.stroke,N=v.select.lineWidth||A,W={opacity:v.select.lineOpacity};Bi.shape(a,"line"),N&&Bi.size(a,N),D&&Bi.color(a,D),W&&Bi.style(a,W)}}const d9={visible:!0,state:{active:!1,select:!1},enabledMultiSelect:!1},iG=["color","style","state","enabledMultiSelect"];class n3 extends rh{constructor(e){super(e),this.selectData=[],this.type=rh.LayerType.AreaLayer,this.interaction=!0,this.onHighlighHandle=E=>{const{feature:b,featureId:A}=E;this.setHighlightLayerSource(b,A)},this.onUnhighlighHandle=()=>{this.setHighlightLayerSource()},this.onSelectHandle=E=>{const b=this.options.enabledMultiSelect,{feature:A,featureId:R}=E;let O=H_(this.selectData);const D=O.findIndex(N=>N.featureId===R);if(D===-1)b?O.push({feature:A,featureId:R}):O=[{feature:A,featureId:R}],this.emit("select",A,H_(O));else{const N=O[D];b?O.splice(D,1):O=[],this.emit("unselect",N,H_(O))}this.setSelectLayerSource(O)};const{name:r,source:n,visible:a,minZoom:l,maxZoom:o,zIndex:p=0}=this.options,m=this.pickLayerConfig(this.options),v=Yd(this.options.state);this.name=r||Fv(this.type),this.layer=new Bm(Object.assign(Object.assign({},m),{name:this.name})),this.strokeLayer=new e3({name:"strokeLayer",visible:a,zIndex:p,minZoom:l,maxZoom:o}),this.highlightLayer=new e3({name:"highlightLayer",visible:a&&!!v.active.stroke,zIndex:p+.1,minZoom:l,maxZoom:o}),this.selectFillLayer=new Bm({name:"selectFillLayer",visible:a&&!!v.select.fill,zIndex:p+.1,minZoom:l,maxZoom:o}),this.selectStrokeLayer=new e3({name:"selectStrokeLayer",visible:a&&!!v.select.stroke,zIndex:p+.1,minZoom:l,maxZoom:o}),this.mappingLayer(this.options),this.setSource(n),this.initEvent()}getDefaultOptions(){return d9}mappingLayer(e){nG(this.layer,this.strokeLayer,this.highlightLayer,this.selectFillLayer,this.selectStrokeLayer,e)}setSource(e){super.setSource(e),this.setStrokeLayerSource(),this.setHighlightLayerSource(),this.selectFillLayer.source({type:"FeatureCollection",features:[]},{parser:{type:"geojson"}}),this.selectStrokeLayer.source({type:"FeatureCollection",features:[]},{parser:{type:"geojson"}})}setStrokeLayerSource(){const e=this.layer.getSource();if(e)this.strokeLayer.setSource(e);else{const{data:r,options:n}=this.layer.sourceOption;this.strokeLayer.source(r,n)}}setHighlightLayerSource(e,r=-999){if(this.highlightLayerData===r)return;const n=e?[e]:[];this.highlightLayer.getSource()?this.highlightLayer.setData({type:"FeatureCollection",features:n},{parser:{type:"geojson"}}):this.highlightLayer.source({type:"FeatureCollection",features:[]},{parser:{type:"geojson"}}),this.highlightLayerData=r}setSelectLayerSource(e=[]){if(this.selectData.length===e.length&&Ca(this.selectData.map(({featureId:n})=>n),e.map(({featureId:n})=>n)))return;const r=e.map(({feature:n})=>n);this.selectFillLayer.setData({type:"FeatureCollection",features:r},{parser:{type:"geojson"}}),this.selectStrokeLayer.setData({type:"FeatureCollection",features:r},{parser:{type:"geojson"}}),this.selectData=e}initEvent(){this.layer.off("mousemove",this.onHighlighHandle),this.layer.off("unmousemove",this.onHighlighHandle),this.layer.off("click",this.onSelectHandle),this.selectData=[],this.highlightLayerData=null,this.options.state&&(this.options.state.active&&(this.layer.on("mousemove",this.onHighlighHandle),this.layer.on("unmousemove",this.onUnhighlighHandle)),this.options.state.select&&this.layer.on("click",this.onSelectHandle))}addTo(e){e.addLayer(this.layer),e.addLayer(this.strokeLayer),e.addLayer(this.highlightLayer),e.addLayer(this.selectFillLayer),e.addLayer(this.selectStrokeLayer)}remove(e){e.removeLayer(this.layer),e.removeLayer(this.strokeLayer),e.removeLayer(this.highlightLayer),e.removeLayer(this.selectFillLayer),e.removeLayer(this.selectStrokeLayer)}update(e){if(super.update(e),this.mappingLayer(this.options),this.options.visible){!Qc(e.state)&&!Ca(this.lastOptions.state,this.options.state)&&this.updateHighlightLayer();const r=Yd(this.options.state);r.active.stroke&&this.setHighlightLayerSource(),(r.select.fill||r.select.stroke)&&this.setSelectLayerSource()}this.initEvent()}updateHighlightLayer(){const e=Yd(this.options.state),r=Yd(this.lastOptions.state);r.active.stroke!==e.active.stroke&&(e.active.stroke?this.highlightLayer.show():this.highlightLayer.hide()),r.select.fill!==e.select.fill&&(e.select.fill?this.selectFillLayer.show():this.selectFillLayer.hide()),r.select.stroke!==e.select.stroke&&(e.select.stroke?this.selectStrokeLayer.show():this.selectStrokeLayer.hide())}setIndex(e){this.layer.setIndex(e),this.strokeLayer.setIndex(e),this.highlightLayer.setIndex(e+.1),this.selectFillLayer.setIndex(e+.1),this.selectStrokeLayer.setIndex(e+.1)}setMinZoom(e){this.layer.setMinZoom(e),this.strokeLayer.setMinZoom(e),this.highlightLayer.setMinZoom(e),this.selectFillLayer.setMinZoom(e),this.selectStrokeLayer.setMinZoom(e)}setMaxZoom(e){this.layer.setMaxZoom(e),this.strokeLayer.setMaxZoom(e),this.highlightLayer.setMaxZoom(e),this.selectFillLayer.setMaxZoom(e),this.selectStrokeLayer.setMaxZoom(e)}show(){this.layer.inited&&(this.layer.show(),this.strokeLayer.show(),this.selectFillLayer.show(),this.selectStrokeLayer.show())}hide(){this.layer.inited&&(this.layer.hide(),this.strokeLayer.hide(),this.selectFillLayer.hide(),this.selectStrokeLayer.hide())}getColorLegendItems(){const e=this.layer.getLegendItems("color");return Array.isArray(e)&&e.length!==0?tG(e):[]}setActive(e){}setSelect(e){}}n3.DefaultOptions=d9;n3.LayerOptionsKeys=rh.LayerConfigkeys.concat(iG);class c_ extends nf{constructor(){super(...arguments),this.type=nf.PlotType.Area}getDefaultOptions(){return c_.DefaultOptions}createLayers(e){this.areaLayer=new n3(Object.assign({source:e},hm(this.options,n3.LayerOptionsKeys)));const r=new l9([this.areaLayer]);return this.options.label&&(this.labelLayer=this.createLabelLayer(e,this.options.label,this.options),r.addLayer(this.labelLayer)),r}updateLayers(e){const r=hm(e,n3.LayerOptionsKeys);this.areaLayer.update(r),this.updateLabelLayer(this.source,e.label,this.options,this.labelLayer)}initLayersEvent(){}getLegendOptions(){const e=this.areaLayer.getColorLegendItems();return e.length!==0?{type:"category",items:e}:{}}}c_.DefaultOptions=rG;var oG=function(t,e){t&&(V1(t)?t(e):t.current=e)},i3=globalThis&&globalThis.__assign||function(){return i3=Object.assign||function(t){for(var e,r=1,n=arguments.length;r{const[t,e]=Du.useState({type:"FeatureCollection",features:[]});Du.useEffect(()=>{let a=vG.features.map(l=>({...l,properties:{...l.properties,price:(Math.random()*1e5).toFixed(2)}}));e({...t,features:a})},[]);const n={map:{type:"mapbox",style:"blank",center:[120.19382669582967,30.258134],zoom:3,pitch:0},source:{data:t,parser:{type:"geojson"}},autoFit:!0,color:{field:"price",value:["#6395fa","#62daab"],scale:{type:"quantile"}},style:{opacity:1,stroke:"rgb(93,112,146)",lineType:"dash",lineDash:[2,2],lineWidth:.6,lineOpacity:1},state:{active:!0,select:!0},tooltip:{items:["name","price"]},zoom:{position:"bottomright"},legend:{position:"bottomleft"}};return rT.jsx(mG,{...n})},NG=yG;export{NG as default}; +
            `,NW={[q2]:{visibility:"visible",zIndex:1,backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"rgb(0 0 0 / 16%) 0px 6px 12px 0px",borderRadius:"2px",color:"rgb(87, 87, 87)",fontFamily:z2.fontFamily,padding:"10px",lineHeight:1,fontSize:"12px"},[Y2]:{fontSize:"13px",lineHeight:"19px",marginBottom:"8px"},[i9]:{display:"flex",alignItems:"center"},[o9]:{width:"140px",height:"14px",margin:"0px 5px"},[Mv]:{padding:"0px"}};class kW extends W2{getDefaultOptions(){return Yh({},super.getDefaultOptions(),{id:"l7plot-continue-legend",name:"l7plot-continue-legend",title:"",containerTpl:FW,ribbonTpl:b8,domStyles:NW,className:q2})}initContainer(){const{customContent:e}=this.options;if(e){const r=this.getHtmlContentNode(e),n=this.getParentContainer();return n&&n.appendChild(r),r}else return super.initContainer()}initDom(){this.cacheDoms()}initEvent(){}removeEvent(){}cacheDoms(){const e=this.container,r=e.getElementsByClassName(Y2)[0],n=e.getElementsByClassName(n9)[0];this.titleDom=r,this.ribbonContainerDom=n}render(){this.options.customContent?this.renderCustomContent(this.options.customContent):(this.resetTitle(),this.renderRibbon())}show(){const e=this.container;!e||this.destroyed||Is(e,{visibility:"visible"})}hide(){const e=this.container;!e||this.destroyed||Is(e,{visibility:"hidden"})}updateInner(e){this.options.customContent?this.renderCustomContent(this.options.customContent):(e.title&&this.resetTitle(),e.colors&&this.renderRibbon()),super.updateInner(e)}renderCustomContent(e){const r=this.container.parentNode,n=this.getHtmlContentNode(e),a=this.container;r&&r.replaceChild(n,a),this.container=n,this.applyStyles()}getHtmlContentNode(e){let r;const n=e(this.options.title||"",this.options.min,this.options.max,this.options.colors);return nu(n)?r=this.createDom(n):r=n,r}resetTitle(){const e=this.options.title;e?(this.showTitle(),this.setTitle(e)):this.hideTitle()}showTitle(){const e=this.titleDom;e&&Is(e,{display:"block"})}hideTitle(){const e=this.titleDom;e&&Is(e,{display:"none"})}setTitle(e){const r=this.titleDom;r&&(r.innerHTML=e)}renderRibbon(){this.clearRibbonContainerDoms();const{min:e,max:r,colors:n,ribbonTpl:a=b8}=this.options,l=this.ribbonContainerDom;if(l){const o=`linear-gradient(to right, ${n.join(", ")})`,m=Bv(a,{min:e,max:r,backgroundImage:o}),v=this.createDom(m);l.appendChild(v),this.applyChildrenStyles(l,this.options.domStyles)}}clearRibbonContainerDoms(){this.ribbonContainerDom&&X2(this.ribbonContainerDom)}clear(){this.setTitle(""),this.clearRibbonContainerDoms()}}class UW extends eh{constructor(e){super(e),this.legendComponents=[],this.options=e,this.legendComponents=this.initLegendComponents(e.items)}initLegendComponents(e){const r=[];for(let n=0;n{const n=r.getContainer();e.appendChild(n)}),e}onRemove(){this.legendComponents.forEach(e=>{e.destroy()})}}const zW=5,VW=new Object().toString,a9=(t,e)=>VW.call(t)==="[object "+e+"]",HW=t=>a9(t,"Array"),jW=t=>typeof t=="object"&&t!==null,E8=t=>{if(!jW(t)||!a9(t,"Object"))return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},s9=(t,e,r,n)=>{r=r||0,n=n||zW;for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const l=e[a];l?E8(l)?(E8(t[a])||(t[a]={}),r{for(let r=0;r{const{feature:A,featureId:R}=b,{title:O,customTitle:D,items:N,customItems:W}=this.options,Y=A.type==="Feature"&&A.geometry&&A.properties?A.properties:A;let Q=[];if(W){const Se=W(A);if(Array.isArray(Se))Q=Se;else throw new Error("customItems return array")}else N&&N.forEach(Se=>{if(nu(Se)){const ce=Se.split(".").pop()||Se,ke=Z4(Y,Se);ke!==void 0&&Q.push({name:ce,value:ke})}else{const{field:ce,alias:ke,customValue:ct}=Se,Ve=ke||ce.split(".").pop()||ce,Te=Z4(Y,ce);Te!==void 0&&Q.push({name:Ve,value:ct?ct(Te,Y,R):Te})}});const J={title:D?D(Y):O,items:Q};this.updateTooltip(b,J)},this.interactionUntriggerHander=()=>{this.hideTooltip()},this.scene=e,this.interactionLayers=r,this.options=Sl({},this.getDefaultOptions(),n);const{offsets:a,title:l,showTitle:o,customContent:p,domStyles:m,anchor:v,className:E}=this.options;this.marker=new n6({offsets:a,anchor:v,draggable:!1}),this.tooltipComponent=new OW({title:l,showTitle:o,items:[],customContent:p,domStyles:m,className:E}),this.setComponent(),this.initInteractionEvent()}getDefaultOptions(){return{showTitle:!0,showComponent:!0,items:[],offsets:[15,0],trigger:"mousemove",anchor:Xv["TOP-LEFT"]}}update(e){this.marker.remove(),this.currentVisible=!1,this.options=Sl({},this.options,e);const{offsets:r,showTitle:n,customContent:a,domStyles:l,anchor:o,className:p}=this.options;this.marker=new n6({offsets:r,anchor:o,draggable:!1}),this.tooltipComponent.update({showTitle:n,customContent:a,domStyles:l,className:p}),this.setComponent()}initInteractionEvent(){const e=this.options.trigger||"mousemove";if(!XW.includes(e))throw new Error("trigger is mousemove or click");this.interactionLayers.forEach(({layer:r})=>{r.on(e,this.interactionTriggerHander),r.on(`un${e}`,this.interactionUntriggerHander)})}unBindInteractionEvent(){const e=this.options.trigger||"mousemove";this.interactionLayers.forEach(({layer:r})=>{r.off(e,this.interactionTriggerHander),r.off(`un${e}`,this.interactionUntriggerHander)})}updateTooltip(e,r){const{lngLat:n,x:a,y:l}=e;if(this.options.showComponent&&(this.updateComponent(r),this.setPostion(n)),this.currentVisible){const o={type:"tooltip:change",data:r,lngLat:n,x:a,y:l};this.emit("tooltip:change",o)}else{this.showTooltip();const o={type:"tooltip:show",data:r,lngLat:n,x:a,y:l};this.emit("tooltip:show",o)}}showTooltip(){this.currentVisible||(this.options.showComponent&&this.scene.addMarker(this.marker),this.currentVisible=!0)}hideTooltip(){if(!this.currentVisible)return;this.options.showComponent&&this.marker.remove(),this.currentVisible=!1;const e={type:"tooltip:hide"};this.emit("tooltip:hide",e)}updateComponent(e){Ca(this.lastComponentOptions,e)||(this.tooltipComponent.update(e),this.lastComponentOptions=e)}setComponent(){const e=this.tooltipComponent.getContainer(),r=window.document.createElement("div");r.style.cursor="auto",r.style.userSelect="text",r.className="l7plot-tooltip-container",["mousemove","mousedown","mouseup","click","dblclick"].forEach(n=>{r.addEventListener(n,a=>a.stopPropagation())}),r.appendChild(e),this.marker.setElement(r)}setPostion(e){this.marker.setLnglat(e)}destroy(){this.unBindInteractionEvent(),this.off(),this.marker.remove(),this.tooltipComponent.destroy()}}class l9 extends qm{constructor(e=[],r={}){super(),this.name=r.name?r.name:Fv("layerGroup"),this.layers=e}addTo(e){this.scene=e;let r=0;const n=this.layers.length;this.layers.forEach(a=>{a.once("inited",l=>{r++,this.emit("inited",l),r===n&&this.emit("inited-all")}),a.addTo(e)})}hasLayer(e){return this.layers.some(r=>r===e)}addLayer(e){this.layers.push(e),this.scene&&(e.once("inited",r=>this.emit("inited",r)),e.addTo(this.scene))}removeLayer(e){const r=this.layers.findIndex(n=>n===e);return r===-1?!1:(this.layers.splice(r,1),this.scene&&e.remove(this.scene),!0)}getLayers(){return this.layers}getInteractionLayers(){return this.layers.filter(({interaction:e})=>e)}getLayer(e){return this.layers.find(({layer:r})=>r.id===e)}getLayerByName(e){return this.layers.find(r=>r.name===e)}removeAllLayer(){this.layers.forEach(e=>{this.scene&&e.remove(this.scene)}),this.layers=[]}isEmpty(){return this.layers.length===0}}const GW=[{original:"loaded",adaptation:"scene-loaded"},{original:"resize",adaptation:"resize"},{original:"destroy",adaptation:"destroy"},{original:"resize",adaptation:"resize"}],ZW=["mapmove","movestart","moveend","zoomchange","zoomstart","zoomend","click","dblclick","contextmenu","mousemove","mousewheel","mouseover","mouseout","mouseup","mousedown","dragstart","dragging","dragend"],um=["inited","add","remove","dataUpdate","click","unclick","dblclick","undblclick","contextmenu","uncontextmenu","mouseenter","mousemove","unmousemove","mouseout","mouseup","unmouseup","mousedown","uncontextmenu","unpick","legend","legend:color","legend:size"],u9={map:{type:Ou.Amap},logo:!0};let c9=class h9 extends qm{constructor(e){super(),this.inited=!1,this.sceneLoaded=!1,this.layersLoaded=!1,this.loaded=!1,this.layerGroup=new l9,this.options=Sl({},this.getDefaultOptions(),e),this.lastOptions=this.options}getDefaultOptions(){return h9.DefaultOptions}createContainer(e){const{width:r,height:n}=this.options,a=typeof e=="string"?document.getElementById(e):e;return a.style.position||(a.style.position="relative"),r&&(a.style.width||(a.style.width=`${r}px`)),n&&(a.style.height||(a.style.height=`${n}px`)),a}createTheme(){return zd(this.options.theme)?Sl({},Og("default"),V8(this.options.theme)):Og(this.options.theme)}createMap(){const e=this.options.map?this.options.map:u9.map,{type:r}=e,n=e1(e,["type"]),a=Object.assign({style:this.theme.mapStyle},n);return r===Ou.Amap?new EH(a):r===Ou.AmapV1?new TH(a):r===Ou.AmapV2?new AH(a):r===Ou.Mapbox?new bH(a):new dH(a)}createScene(){const{logo:e,antialias:r,preserveDrawingBuffer:n}=this.options,a=O8(e)?{logoVisible:e}:{logoVisible:e==null?void 0:e.visible,logoPosition:e==null?void 0:e.position},l=Object.assign({antialias:r,preserveDrawingBuffer:n},a),o=this.createMap();return new RW(Object.assign({id:this.container,map:o},l))}registerResources(){q4.size&&q4.forEach((e,r)=>{!this.scene.hasImage(r)&&this.scene.addImage(r,e)}),Y4.size&&Y4.forEach((e,r)=>{this.scene.addFontFace(r,e)}),K4.size&&K4.forEach((e,r)=>{this.scene.addIconFont(r,e)})}update(e){this.updateOption(e),e.map&&!Ca(this.lastOptions.map,this.options.map)&&this.updateMap(e.map),this.render(),this.emit("update")}updateOption(e){this.lastOptions=this.options,this.options=Sl({},this.options,e)}updateMap(e){var r;if(!this.scene)return;const{style:n,center:a,zoom:l,rotation:o,pitch:p}=e;Qc(p)||this.scene.setPitch(p),Qc(o)||this.scene.setRotation(o),n&&n!==((r=this.lastOptions.map)===null||r===void 0?void 0:r.style)&&this.scene.setMapStyle(n),l&&a&&this.scene.setZoomAndCenter(l,a)}changeSize(e,r){this.options.width===e&&this.options.height===r||(this.container.style.width=`${e}px`,this.container.style.height=`${r}px`,this.options=Object.assign(this.options,{width:e,height:r}))}on(e,r,n){return this.proxyEventHander("on",e,r,n),this}once(e,r){return this.proxyEventHander("once",e,r),this}off(e,r){return this.proxyEventHander("off",e,r),this}proxyEventHander(e,r,n,a){const l=GW.find(o=>o.adaptation===r);if(l)this.scene[e](l.original,n);else if(ZW.indexOf(r)!==-1)this.scene[e](r,n);else if(r.includes("Layer:")){const[o,p]=r.split(":");if(this[o]&&this[o][e]&&um.indexOf(p)!==-1)this[o][e](p,n);else throw new Error(`No event name "${r}"`)}else super[e](r,n,a)}getScene(){return this.scene}getMap(){var e,r,n,a;return((e=this.options.map)===null||e===void 0?void 0:e.type)===Ou.Amap?this.scene.map:((r=this.options.map)===null||r===void 0?void 0:r.type)===Ou.AmapV2?this.scene.map:((n=this.options.map)===null||n===void 0?void 0:n.type)===Ou.Mapbox?this.scene.map:((a=this.options.map)===null||a===void 0?void 0:a.type)===Ou.Map?this.scene.map:this.scene.map}addLayer(e){this.layerGroup.addLayer(e)}getLayes(){return console.warn("Replace to use getLayers()"),this.getLayers()}getLayers(){return this.layerGroup.getLayers()}getLayerByName(e){return this.layerGroup.getLayerByName(e)}removeLayer(e){return this.layerGroup.removeLayer(e)}removeAllLayer(){this.layerGroup.removeAllLayer()}zoomIn(){this.scene.zoomIn()}zoomOut(){this.scene.zoomOut()}setPitch(e){this.scene.setPitch(e)}fitBounds(e){this.scene.fitBounds(e)}setMapStatus(e){this.scene.setMapStatus(e)}setBgColor(e){this.scene.setBgColor(e)}initComponents(){this.initControls(),this.initTooltip()}updateComponents(){this.updateControls(),this.initTooltip()}initControls(){const{zoom:e,scale:r,layerMenu:n,legend:a}=this.options;r&&this.addScaleControl(r),e&&this.addZoomControl(e),n&&this.addLayerMenuControl(n),a&&(this.addLegendControl(a),this.emit("add-legend"))}updateControls(){const{zoom:e,scale:r,layerMenu:n,legend:a}=this.options;Ca(this.lastOptions.zoom,e)||(e?this.updateZoomControl(e):this.removeZoomControl()),Ca(this.lastOptions.scale,r)||(r?this.updateScaleControl(r):this.removeScaleControl()),Ca(this.lastOptions.layerMenu,n)||(n?this.updateLayerMenuControl(n):this.removeLayerMenuControl()),Ca(this.lastOptions.legend,a)||(a?this.updateLegendControl(a):this.removeLegendControl())}addZoomControl(e){this.zoomControl||(this.zoomControl=new Fz(e),this.scene.addControl(this.zoomControl))}updateZoomControl(e){if(!this.zoomControl){this.addZoomControl(e);return}this.removeZoomControl(),this.addZoomControl(e)}removeZoomControl(){this.zoomControl&&(this.zoomControl.remove(),this.zoomControl=void 0)}addScaleControl(e){this.scaleControl||(this.scaleControl=new mD(e),this.scene.addControl(this.scaleControl))}updateScaleControl(e){if(!this.scaleControl){this.addScaleControl(e);return}this.removeScaleControl(),this.addScaleControl(e)}removeScaleControl(){this.scaleControl&&(this.scaleControl.remove(),this.scaleControl=void 0)}addLayerMenuControl(e){this.layerGroup.getLayers().forEach(({name:r,layer:n})=>{})}updateLayerMenuControl(e){this.removeLayerMenuControl(),this.addLayerMenuControl(e)}removeLayerMenuControl(){}getLegendOptions(){return{}}addLegendControl(e){if(this.legendControl)return;const r=this.theme.components.legend,n=Sl({},this.getLegendOptions(),e),{type:a,position:l}=n,o=e1(n,["type","position"]),p=[];if(a==="category"){const m=Sl({},{domStyles:r.category.domStyles},o);p.push({type:a,options:m})}else if(a==="continue"){const m=Sl({},{domStyles:r.continue.domStyles},o);p.push({type:a,options:m})}p.length&&(this.legendControl=new UW({position:l,items:p}),this.scene.addControl(this.legendControl))}updateLegendControl(e){if(!this.legendControl){this.addLegendControl(e);return}this.removeLegendControl(),this.addLegendControl(e)}removeLegendControl(){this.legendControl&&(this.legendControl.remove(),this.legendControl=void 0)}initTooltip(){this.tooltip&&this.tooltip.destroy();const{tooltip:e}=this.options;if(e){const r=Sl({},{domStyles:this.theme.components.tooltip.domStyles},e),n=this.layerGroup.getInteractionLayers();this.tooltip=new WW(this.scene,n,r),this.tooltip.on("*",a=>this.emit(a.type,a))}}exportPng(e){return this.scene.exportPng(e)}destroy(){var e;super.off("*"),this.removeScaleControl(),this.removeZoomControl(),this.removeLayerMenuControl(),this.removeLegendControl(),(e=this.tooltip)===null||e===void 0||e.destroy(),this.scene.destroy()}};c9.DefaultOptions=u9;class Pv{static aggregation(e,r){const{type:n="grid",radius:a,method:l,field:o}=r,p={type:n,size:a,method:l,field:o};e.transforms?(e.transforms=e.transforms.filter(m=>m.type!==p.type),e.transforms.push(p)):e.transforms=[p]}}const f9=["name","zIndex","visible","minZoom","maxZoom","pickingBuffer","autoFit","blend"];class rh extends qm{constructor(e){super(),this.options=Sl({},this.getDefaultOptions(),e),this.lastOptions=this.options}getDefaultOptions(){return{}}pickLayerConfig(e){return hm(e,f9)}addTo(e){e.addLayer(this.layer)}remove(e){e.removeLayer(this.layer)}update(e){this.updateOption(e),this.updateConfig(e)}updateOption(e){this.lastOptions=this.options,this.options=Sl({},this.options,e)}updateConfig(e){!Qc(e.zIndex)&&!Ca(this.lastOptions.zIndex,this.options.zIndex)&&this.setIndex(e.zIndex),!Qc(e.blend)&&!Ca(this.lastOptions.blend,this.options.blend)&&this.setBlend(e.blend),!Qc(e.minZoom)&&!Ca(this.lastOptions.minZoom,this.options.minZoom)&&this.setMinZoom(e.minZoom),!Qc(e.maxZoom)&&!Ca(this.lastOptions.maxZoom,this.options.maxZoom)&&this.setMinZoom(e.maxZoom),!Qc(e.visible)&&!Ca(this.lastOptions.visible,this.options.visible)&&(e.visible?this.show():this.hide())}render(){this.layer.renderLayers()}setSource(e){if(e instanceof a2)this.layer.setSource(e);else{const{data:r,aggregation:n}=e,a=e1(e,["data","aggregation"]);n&&Pv.aggregation(a,n),this.layer.getSource()?this.layer.setData(r,a):this.layer.source(r,a)}}changeData(e){this.setSource(e)}setIndex(e){this.layer.setIndex(e)}setBlend(e){this.layer.setBlend(e)}setMinZoom(e){this.layer.setMinZoom(e)}setMaxZoom(e){this.layer.setMaxZoom(e)}show(){this.layer.inited&&this.layer.show()}hide(){this.layer.inited&&this.layer.hide()}toggleVisible(){this.isVisible()?this.hide():this.show()}isVisible(){return this.layer.inited?this.layer.isVisible():this.options.visible}fitBounds(e){this.layer.fitBounds(e)}on(e,r){return um.indexOf(e)!==-1?this.layer.on(e,r):super.on(e,r),this}once(e,r){return um.indexOf(e)!==-1?this.layer.once(e,r):super.once(e,r),this}off(e,r){return um.indexOf(e)!==-1?this.layer.off(e,r):super.off(e,r),this}}rh.LayerType=Lg;rh.LayerConfigkeys=f9;function Hh(t,e){return(...r)=>{const n={};return t.forEach((a,l)=>{n[a]=r[l]}),delete n.undefined,e(n)}}class Bi{static shape(e,r){if(nu(r))e.shape(r);else if(V1(r)){const n=[];e.shape(n.join("*"),Hh(n,r))}else if(zd(r)){const n=r.field?r.field:"";if(V1(r.value)){const a=dd(n)?n:n.split("*");e.shape(n,Hh(a,r.value))}else e.shape(n,r.value);nu(n)&&r.scale&&Bi.scale(e,n,r.scale)}}static size(e,r){if(uT(r))e.size(r);else if(dd(r))e.size(r);else if(V1(r)){const n=[];e.size(n.join("*"),Hh(n,r))}else if(zd(r)){const n=r.field?r.field:"";if(V1(r.value)){const a=dd(n)?n:n.split("*");e.size(n,Hh(a,r.value))}else e.size(n,r.value);nu(n)&&r.scale&&Bi.scale(e,n,r.scale)}}static color(e,r){if(nu(r))e.color(r);else if(V1(r)){const n=[];e.color(n.join("*"),Hh(n,r))}else if(zd(r)){const n=r.field?r.field:"";if(V1(r.value)){const a=dd(n)?n:n.split("*");e.color(n,Hh(a,r.value))}else e.color(n,r.value);nu(n)&&r.scale&&Bi.scale(e,n,r.scale)}}static style(e,r){r&&e.style(r)}static state(e,r){const{active:n,select:a}=r;n&&e.active(n),a&&e.select(a)}static rotate(e,r){nu(r)||V1(r)}static texture(e,r){nu(r)&&e.texture(r)}static animate(e,r){(O8(r)||zd(r))&&e.animate(r)}static scale(e,r,n){e.scale(r,n)}static filter(e,r){const n=r.field?r.field:"",a=dd(n)?n:n.split("*");e.filter(a.join("*"),Hh(a,r.value))}}function $W(t,e){const{field:r,content:n,style:a={},state:l}=e,{fontSize:o,fill:p}=a,v={field:r||n||"",value:"text"};Bi.shape(t,v),o&&Bi.size(t,o),p&&Bi.color(t,p),a&&Bi.style(t,a),l&&Bi.state(t,l)}const p9={style:{fontSize:12}},qW=[];class K2 extends rh{constructor(e){super(e),this.type=rh.LayerType.TextLayer,this.interaction=!1;const{name:r,source:n}=this.options,a=this.pickLayerConfig(this.options);this.name=r||Fv(this.type),this.layer=new Dm(Object.assign(Object.assign({},a),{name:this.name})),this.mappingLayer(this.layer,this.options),this.setSource(n)}getDefaultOptions(){return p9}mappingLayer(e,r){$W(e,r)}update(e){super.update(e),this.mappingLayer(this.layer,this.options)}}K2.DefaultOptions=p9;K2.LayerOptionsKeys=rh.LayerConfigkeys.concat(qW);const YW={autoFit:!1};class nf extends c9{constructor(e,r){if(typeof e=="string"||e instanceof Element){if(r===void 0)throw new Error("options is undefined");super(r),this.container=this.createContainer(e),this.theme=this.createTheme(),this.scene=this.createScene(),this.registerResources(),this.initSource()}else super(e)}initSource(){this.source=this.createSource(),this.render(),this.inited=!0}initLayersEvent(){}getDefaultOptions(){return nf.DefaultOptions}createSource(){const e=this.options.source,{data:r,aggregation:n}=e,a=e1(e,["data","aggregation"]);return n&&Pv.aggregation(a,n),new a2(r,a)}createLabelLayer(e,r,n){const{visible:a,minZoom:l,maxZoom:o,zIndex:p=0}=n||{};return new K2(Object.assign({name:"labelLayer",visible:a,minZoom:l,maxZoom:o,zIndex:p+.1,source:e},r))}updateLabelLayer(e,r,n,a){r?a?a.update(Object.assign({},r)):(a=this.createLabelLayer(e,r,n),this.layerGroup.addLayer(a)):r===!1&&a&&this.layerGroup.removeLayer(a)}render(){const e=this.createLayers(this.source);this.inited?(this.layerGroup.removeAllLayer(),e.addTo(this.scene),this.layerGroup=e):(this.layerGroup=e,this.scene.sceneService.loaded?this.onSceneLoaded():this.scene.once("loaded",()=>{this.onSceneLoaded()})),this.initLayersEvent()}onSceneLoaded(){this.sceneLoaded=!0,this.layerGroup.isEmpty()?this.onLayersLoaded():this.layerGroup.once("inited-all",()=>{this.onLayersLoaded()}),this.layerGroup.addTo(this.scene)}onLayersLoaded(){this.layersLoaded=!0,this.initComponents(),this.loaded=!0,this.emit("loaded")}attachToScene(e,r){this.scene=e,this.theme=r||Og("default"),this.registerResources(),this.initSource()}unattachFromScene(){var e;this.removeAllLayer(),(e=this.tooltip)===null||e===void 0||e.destroy()}addToScene(e){this.attachToScene(e)}removeFromScene(){var e;this.removeAllLayer(),this.removeScaleControl(),this.removeZoomControl(),this.removeLayerMenuControl(),this.removeLegendControl(),(e=this.tooltip)===null||e===void 0||e.destroy()}update(e){if(this.updateOption(e),e.map&&!Ca(this.lastOptions.map,this.options.map)&&this.updateMap(e.map),this.scene.setEnableRender(!1),e.source&&!Ca(this.lastOptions.source,this.options.source)){const r=e.source,{data:n}=r,a=e1(r,["data"]);this.changeData(n,a)}this.scene.setEnableRender(!0),this.render(),this.updateComponents(),this.emit("update")}changeData(e,r){this.options.source=Sl({},this.options.source,Object.assign({data:e},r));const n=this.options.source,{aggregation:a}=n,l=e1(n,["aggregation"]);a&&Pv.aggregation(l,a),this.source.setData(this.options.source.data,l);const o=this.options.legend;o&&setTimeout(()=>{this.updateLegendControl(o)},500),this.emit("change-data")}}nf.DefaultOptions=YW;nf.PlotType=Dg;const KW=t=>!Array.isArray(t[0].value),QW=t=>KW(t)?t:t.map(r=>Object.assign(Object.assign({},r),{value:[$4(r.value[0],4),$4(r.value[1],4)]})),JW=Sl({},nf.DefaultOptions,{source:{data:{type:"FeatureCollection",features:[]},parser:{type:"geojson"}}}),T8="#2f54eb",za={active:{fill:!1,stroke:T8,lineWidth:1.5,lineOpacity:.8},select:{fill:!1,stroke:T8,lineWidth:1.5,lineOpacity:.8}},Yd=t=>(Qc(t)||(t.active===!1?za.active=Object.assign(za.active,{fill:!1,stroke:!1}):typeof t.active=="object"&&(t.active.fill===!1?za.active.fill=!1:typeof t.active.fill=="string"&&(za.active.fill=t.active.fill),t.active.stroke===!1?za.active.stroke=!1:typeof t.active.stroke=="string"&&(za.active.stroke=t.active.stroke),typeof t.active.lineWidth=="number"&&(za.active.lineWidth=t.active.lineWidth),typeof t.active.lineOpacity=="number"&&(za.active.lineOpacity=t.active.lineOpacity)),t.select===!1?za.select=Object.assign(za.select,{fill:!1,stroke:!1}):typeof t.select=="object"&&(t.select.fill===!1?za.select.fill=!1:typeof t.select.fill=="string"&&(za.select.fill=t.select.fill),t.select.stroke===!1?za.select.stroke=!1:typeof t.select.stroke=="string"&&(za.select.stroke=t.select.stroke),typeof t.select.lineWidth=="number"&&(za.select.lineWidth=t.select.lineWidth),typeof t.select.lineOpacity=="number"&&(za.select.lineOpacity=t.select.lineOpacity))),za);function eG(t,e,r,n,a,l){const{color:o,style:p,state:m}=l,v=Yd(m),E={active:v.active.fill===!1?!1:{color:v.active.fill},select:!1},b={opacity:p==null?void 0:p.opacity},A=p==null?void 0:p.lineWidth,R=p==null?void 0:p.stroke,O={opacity:p==null?void 0:p.lineOpacity,dashArray:p==null?void 0:p.lineDash,lineType:p==null?void 0:p.lineType};if(Bi.shape(t,"fill"),o&&Bi.color(t,o),b&&Bi.style(t,b),E&&Bi.state(t,E),Bi.shape(e,"line"),A&&Bi.size(e,A),R&&Bi.color(e,R),O&&Bi.style(e,O),v.active.stroke){const D=v.active.stroke,N=v.active.lineWidth||A,W={opacity:v.active.lineOpacity};Bi.shape(r,"line"),N&&Bi.size(r,N),D&&Bi.color(r,D),W&&Bi.style(r,W)}if(v.select.fill){const D=v.select.fill;Bi.shape(n,"fill"),D&&Bi.color(n,D),b&&Bi.style(n,b),Bi.state(n,{select:!1,active:!1})}if(v.select.stroke){const D=v.select.stroke,N=v.select.lineWidth||A,W={opacity:v.select.lineOpacity};Bi.shape(a,"line"),N&&Bi.size(a,N),D&&Bi.color(a,D),W&&Bi.style(a,W)}}const d9={visible:!0,state:{active:!1,select:!1},enabledMultiSelect:!1},tG=["color","style","state","enabledMultiSelect"];class n3 extends rh{constructor(e){super(e),this.selectData=[],this.type=rh.LayerType.AreaLayer,this.interaction=!0,this.onHighlighHandle=E=>{const{feature:b,featureId:A}=E;this.setHighlightLayerSource(b,A)},this.onUnhighlighHandle=()=>{this.setHighlightLayerSource()},this.onSelectHandle=E=>{const b=this.options.enabledMultiSelect,{feature:A,featureId:R}=E;let O=H_(this.selectData);const D=O.findIndex(N=>N.featureId===R);if(D===-1)b?O.push({feature:A,featureId:R}):O=[{feature:A,featureId:R}],this.emit("select",A,H_(O));else{const N=O[D];b?O.splice(D,1):O=[],this.emit("unselect",N,H_(O))}this.setSelectLayerSource(O)};const{name:r,source:n,visible:a,minZoom:l,maxZoom:o,zIndex:p=0}=this.options,m=this.pickLayerConfig(this.options),v=Yd(this.options.state);this.name=r||Fv(this.type),this.layer=new Bm(Object.assign(Object.assign({},m),{name:this.name})),this.strokeLayer=new e3({name:"strokeLayer",visible:a,zIndex:p,minZoom:l,maxZoom:o}),this.highlightLayer=new e3({name:"highlightLayer",visible:a&&!!v.active.stroke,zIndex:p+.1,minZoom:l,maxZoom:o}),this.selectFillLayer=new Bm({name:"selectFillLayer",visible:a&&!!v.select.fill,zIndex:p+.1,minZoom:l,maxZoom:o}),this.selectStrokeLayer=new e3({name:"selectStrokeLayer",visible:a&&!!v.select.stroke,zIndex:p+.1,minZoom:l,maxZoom:o}),this.mappingLayer(this.options),this.setSource(n),this.initEvent()}getDefaultOptions(){return d9}mappingLayer(e){eG(this.layer,this.strokeLayer,this.highlightLayer,this.selectFillLayer,this.selectStrokeLayer,e)}setSource(e){super.setSource(e),this.setStrokeLayerSource(),this.setHighlightLayerSource(),this.selectFillLayer.source({type:"FeatureCollection",features:[]},{parser:{type:"geojson"}}),this.selectStrokeLayer.source({type:"FeatureCollection",features:[]},{parser:{type:"geojson"}})}setStrokeLayerSource(){const e=this.layer.getSource();if(e)this.strokeLayer.setSource(e);else{const{data:r,options:n}=this.layer.sourceOption;this.strokeLayer.source(r,n)}}setHighlightLayerSource(e,r=-999){if(this.highlightLayerData===r)return;const n=e?[e]:[];this.highlightLayer.getSource()?this.highlightLayer.setData({type:"FeatureCollection",features:n},{parser:{type:"geojson"}}):this.highlightLayer.source({type:"FeatureCollection",features:[]},{parser:{type:"geojson"}}),this.highlightLayerData=r}setSelectLayerSource(e=[]){if(this.selectData.length===e.length&&Ca(this.selectData.map(({featureId:n})=>n),e.map(({featureId:n})=>n)))return;const r=e.map(({feature:n})=>n);this.selectFillLayer.setData({type:"FeatureCollection",features:r},{parser:{type:"geojson"}}),this.selectStrokeLayer.setData({type:"FeatureCollection",features:r},{parser:{type:"geojson"}}),this.selectData=e}initEvent(){this.layer.off("mousemove",this.onHighlighHandle),this.layer.off("unmousemove",this.onHighlighHandle),this.layer.off("click",this.onSelectHandle),this.selectData=[],this.highlightLayerData=null,this.options.state&&(this.options.state.active&&(this.layer.on("mousemove",this.onHighlighHandle),this.layer.on("unmousemove",this.onUnhighlighHandle)),this.options.state.select&&this.layer.on("click",this.onSelectHandle))}addTo(e){e.addLayer(this.layer),e.addLayer(this.strokeLayer),e.addLayer(this.highlightLayer),e.addLayer(this.selectFillLayer),e.addLayer(this.selectStrokeLayer)}remove(e){e.removeLayer(this.layer),e.removeLayer(this.strokeLayer),e.removeLayer(this.highlightLayer),e.removeLayer(this.selectFillLayer),e.removeLayer(this.selectStrokeLayer)}update(e){if(super.update(e),this.mappingLayer(this.options),this.options.visible){!Qc(e.state)&&!Ca(this.lastOptions.state,this.options.state)&&this.updateHighlightLayer();const r=Yd(this.options.state);r.active.stroke&&this.setHighlightLayerSource(),(r.select.fill||r.select.stroke)&&this.setSelectLayerSource()}this.initEvent()}updateHighlightLayer(){const e=Yd(this.options.state),r=Yd(this.lastOptions.state);r.active.stroke!==e.active.stroke&&(e.active.stroke?this.highlightLayer.show():this.highlightLayer.hide()),r.select.fill!==e.select.fill&&(e.select.fill?this.selectFillLayer.show():this.selectFillLayer.hide()),r.select.stroke!==e.select.stroke&&(e.select.stroke?this.selectStrokeLayer.show():this.selectStrokeLayer.hide())}setIndex(e){this.layer.setIndex(e),this.strokeLayer.setIndex(e),this.highlightLayer.setIndex(e+.1),this.selectFillLayer.setIndex(e+.1),this.selectStrokeLayer.setIndex(e+.1)}setMinZoom(e){this.layer.setMinZoom(e),this.strokeLayer.setMinZoom(e),this.highlightLayer.setMinZoom(e),this.selectFillLayer.setMinZoom(e),this.selectStrokeLayer.setMinZoom(e)}setMaxZoom(e){this.layer.setMaxZoom(e),this.strokeLayer.setMaxZoom(e),this.highlightLayer.setMaxZoom(e),this.selectFillLayer.setMaxZoom(e),this.selectStrokeLayer.setMaxZoom(e)}show(){this.layer.inited&&(this.layer.show(),this.strokeLayer.show(),this.selectFillLayer.show(),this.selectStrokeLayer.show())}hide(){this.layer.inited&&(this.layer.hide(),this.strokeLayer.hide(),this.selectFillLayer.hide(),this.selectStrokeLayer.hide())}getColorLegendItems(){const e=this.layer.getLegendItems("color");return Array.isArray(e)&&e.length!==0?QW(e):[]}setActive(e){}setSelect(e){}}n3.DefaultOptions=d9;n3.LayerOptionsKeys=rh.LayerConfigkeys.concat(tG);class c_ extends nf{constructor(){super(...arguments),this.type=nf.PlotType.Area}getDefaultOptions(){return c_.DefaultOptions}createLayers(e){this.areaLayer=new n3(Object.assign({source:e},hm(this.options,n3.LayerOptionsKeys)));const r=new l9([this.areaLayer]);return this.options.label&&(this.labelLayer=this.createLabelLayer(e,this.options.label,this.options),r.addLayer(this.labelLayer)),r}updateLayers(e){const r=hm(e,n3.LayerOptionsKeys);this.areaLayer.update(r),this.updateLabelLayer(this.source,e.label,this.options,this.labelLayer)}initLayersEvent(){}getLegendOptions(){const e=this.areaLayer.getColorLegendItems();return e.length!==0?{type:"category",items:e}:{}}}c_.DefaultOptions=JW;var rG=function(t,e){t&&(V1(t)?t(e):t.current=e)},i3=globalThis&&globalThis.__assign||function(){return i3=Object.assign||function(t){for(var e,r=1,n=arguments.length;r{const[t,e]=Du.useState({type:"FeatureCollection",features:[]});Du.useEffect(()=>{let a=mG.features.map(l=>({...l,properties:{...l.properties,price:(Math.random()*1e5).toFixed(2)}}));e({...t,features:a})},[]);const n={map:{type:"mapbox",style:"blank",center:[120.19382669582967,30.258134],zoom:3,pitch:0},source:{data:t,parser:{type:"geojson"}},autoFit:!0,color:{field:"price",value:["#6395fa","#62daab"],scale:{type:"quantile"}},style:{opacity:1,stroke:"rgb(93,112,146)",lineType:"dash",lineDash:[2,2],lineWidth:.6,lineOpacity:1},state:{active:!0,select:!0},tooltip:{items:["name","price"]},zoom:{position:"bottomright"},legend:{position:"bottomleft"}};return eT.jsx(fG,{...n})},BG=_G;export{BG as default}; diff --git a/web/dist/assets/index-9456f6ef.js b/web/dist/assets/index-d4ea9132.js similarity index 47% rename from web/dist/assets/index-9456f6ef.js rename to web/dist/assets/index-d4ea9132.js index 704e9d3ba5042e2ac9fc2b1f492c0167c43a4e6f..5b1308ec546b5a46c21605c43a12692194625952 100644 --- a/web/dist/assets/index-9456f6ef.js +++ b/web/dist/assets/index-d4ea9132.js @@ -1 +1 @@ -import{g as Z,a as G,u as _,m as J,bX as K,r as n,bc as V,aV as O,bY as k,bZ as ee,b8 as oe,b_ as re,b$ as te,c0 as le,c1 as H,c2 as ae,c3 as ne}from"./umi-2ee4055f.js";const se=e=>{const{paddingXXS:t,lineWidth:l,tagPaddingHorizontal:o,componentCls:r,calc:c}=e,a=c(o).sub(l).equal(),u=c(t).sub(l).equal();return{[r]:Object.assign(Object.assign({},G(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:u,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},I=e=>{const{lineWidth:t,fontSizeIcon:l,calc:o}=e,r=e.fontSizeSM;return J(e,{tagFontSize:r,tagLineHeight:_(o(e.lineHeightSM).mul(r).equal()),tagIconSize:o(l).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},P=e=>({defaultBg:new K(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),F=Z("Tag",e=>{const t=I(e);return se(t)},P);var ce=globalThis&&globalThis.__rest||function(e,t){var l={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(l[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{prefixCls:l,style:o,className:r,checked:c,onChange:a,onClick:u}=e,d=ce(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:m,tag:g}=n.useContext(V),f=h=>{a==null||a(!c),u==null||u(h)},C=m("tag",l),[v,S,i]=F(C),$=O(C,`${C}-checkable`,{[`${C}-checkable-checked`]:c},g==null?void 0:g.className,r,S,i);return v(n.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},o),g==null?void 0:g.style),className:$,onClick:f})))}),de=ie,ge=e=>ee(e,(t,l)=>{let{textColor:o,lightBorderColor:r,lightColor:c,darkColor:a}=l;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:o,background:c,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),ue=k(["Tag","preset"],e=>{const t=I(e);return ge(t)},P);function Ce(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const y=(e,t,l)=>{const o=Ce(l);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${l}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},be=k(["Tag","status"],e=>{const t=I(e);return[y(t,"success","Success"),y(t,"processing","Info"),y(t,"error","Error"),y(t,"warning","Warning")]},P);var pe=globalThis&&globalThis.__rest||function(e,t){var l={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(l[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{prefixCls:l,className:o,rootClassName:r,style:c,children:a,icon:u,color:d,onClose:m,bordered:g=!0,visible:f}=e,C=pe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:S,tag:i}=n.useContext(V),[$,h]=n.useState(!0),W=oe(C,["closeIcon","closable"]);n.useEffect(()=>{f!==void 0&&h(f)},[f]);const N=re(d),j=te(d),x=N||j,L=Object.assign(Object.assign({backgroundColor:d&&!x?d:void 0},i==null?void 0:i.style),c),s=v("tag",l),[R,q,X]=F(s),A=O(s,i==null?void 0:i.className,{[`${s}-${d}`]:x,[`${s}-has-color`]:d&&!x,[`${s}-hidden`]:!$,[`${s}-rtl`]:S==="rtl",[`${s}-borderless`]:!g},o,r,q,X),E=p=>{p.stopPropagation(),m==null||m(p),!p.defaultPrevented&&h(!1)},[,D]=le(H(e),H(i),{closable:!1,closeIconRender:p=>{const Y=n.createElement("span",{className:`${s}-close-icon`,onClick:E},p);return ae(p,Y,b=>({onClick:B=>{var T;(T=b==null?void 0:b.onClick)===null||T===void 0||T.call(b,B),E(B)},className:O(b==null?void 0:b.className,`${s}-close-icon`)}))}}),Q=typeof C.onClick=="function"||a&&a.type==="a",w=u||null,U=w?n.createElement(n.Fragment,null,w,a&&n.createElement("span",null,a)):a,z=n.createElement("span",Object.assign({},W,{ref:t,className:A,style:L}),U,D,N&&n.createElement(ue,{key:"preset",prefixCls:s}),j&&n.createElement(be,{key:"status",prefixCls:s}));return R(Q?n.createElement(ne,{component:"Tag"},z):z)}),M=me;M.CheckableTag=de;const he=M;export{he as T}; +import{g as J,a as K,u as _,m as Y,cd as Z,b as n,b9 as k,b3 as O,ce as F,cf as ee,bb as oe,cg as re,ch as le,ci as te,cj as H,ck as ae,cl as ne}from"./umi-5f6aeac9.js";const se=e=>{const{paddingXXS:l,lineWidth:t,tagPaddingHorizontal:o,componentCls:r,calc:c}=e,a=c(o).sub(t).equal(),u=c(l).sub(t).equal();return{[r]:Object.assign(Object.assign({},K(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:u,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},I=e=>{const{lineWidth:l,fontSizeIcon:t,calc:o}=e,r=e.fontSizeSM;return Y(e,{tagFontSize:r,tagLineHeight:_(o(e.lineHeightSM).mul(r).equal()),tagIconSize:o(t).sub(o(l).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},P=e=>({defaultBg:new Z(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),M=J("Tag",e=>{const l=I(e);return se(l)},P);var ce=globalThis&&globalThis.__rest||function(e,l){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&l.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,style:o,className:r,checked:c,onChange:a,onClick:u}=e,d=ce(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:m,tag:g}=n.useContext(k),f=h=>{a==null||a(!c),u==null||u(h)},C=m("tag",t),[v,S,i]=M(C),$=O(C,`${C}-checkable`,{[`${C}-checkable-checked`]:c},g==null?void 0:g.className,r,S,i);return v(n.createElement("span",Object.assign({},d,{ref:l,style:Object.assign(Object.assign({},o),g==null?void 0:g.style),className:$,onClick:f})))}),de=ie,ge=e=>ee(e,(l,t)=>{let{textColor:o,lightBorderColor:r,lightColor:c,darkColor:a}=t;return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:o,background:c,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),ue=F(["Tag","preset"],e=>{const l=I(e);return ge(l)},P);function Ce(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const y=(e,l,t)=>{const o=Ce(t);return{[`${e.componentCls}${e.componentCls}-${l}`]:{color:e[`color${t}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},be=F(["Tag","status"],e=>{const l=I(e);return[y(l,"success","Success"),y(l,"processing","Info"),y(l,"error","Error"),y(l,"warning","Warning")]},P);var pe=globalThis&&globalThis.__rest||function(e,l){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&l.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:o,rootClassName:r,style:c,children:a,icon:u,color:d,onClose:m,bordered:g=!0,visible:f}=e,C=pe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:S,tag:i}=n.useContext(k),[$,h]=n.useState(!0),W=oe(C,["closeIcon","closable"]);n.useEffect(()=>{f!==void 0&&h(f)},[f]);const j=re(d),N=le(d),x=j||N,L=Object.assign(Object.assign({backgroundColor:d&&!x?d:void 0},i==null?void 0:i.style),c),s=v("tag",t),[R,q,A]=M(s),D=O(s,i==null?void 0:i.className,{[`${s}-${d}`]:x,[`${s}-has-color`]:d&&!x,[`${s}-hidden`]:!$,[`${s}-rtl`]:S==="rtl",[`${s}-borderless`]:!g},o,r,q,A),E=p=>{p.stopPropagation(),m==null||m(p),!p.defaultPrevented&&h(!1)},[,X]=te(H(e),H(i),{closable:!1,closeIconRender:p=>{const G=n.createElement("span",{className:`${s}-close-icon`,onClick:E},p);return ae(p,G,b=>({onClick:B=>{var T;(T=b==null?void 0:b.onClick)===null||T===void 0||T.call(b,B),E(B)},className:O(b==null?void 0:b.className,`${s}-close-icon`)}))}}),Q=typeof C.onClick=="function"||a&&a.type==="a",w=u||null,U=w?n.createElement(n.Fragment,null,w,a&&n.createElement("span",null,a)):a,z=n.createElement("span",Object.assign({},W,{ref:l,className:D,style:L}),U,X,j&&n.createElement(ue,{key:"preset",prefixCls:s}),N&&n.createElement(be,{key:"status",prefixCls:s}));return R(Q?n.createElement(ne,{component:"Tag"},z):z)}),V=me;V.CheckableTag=de;const he=V;export{he as T}; diff --git a/web/dist/assets/index-d5a6b2a3.js b/web/dist/assets/index-d5a6b2a3.js deleted file mode 100644 index afd69497cd32d5c854dfa067b517cad6a919a442..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-d5a6b2a3.js +++ /dev/null @@ -1 +0,0 @@ -import{j as s,F as t,h as i}from"./umi-2ee4055f.js";import{C as a}from"./index-8a549704.js";import e from"./index-211dffa7.js";import"./index-275c5384.js";import"./createLoading-2160f924.js";import"./react-content-loader.es-7f7b682d.js";const j=()=>s.jsx(a,{title:s.jsx(t,{id:"analysis.title6"}),extra:s.jsx(s.Fragment,{children:s.jsxs(i.Group,{defaultValue:"b",children:[s.jsx(i.Button,{value:"b",children:s.jsx(t,{id:"analysis.button5"})}),s.jsx(i.Button,{value:"c",children:s.jsx(t,{id:"analysis.button6"})}),s.jsx(i.Button,{value:"d",children:s.jsx(t,{id:"analysis.button7"})})]})}),children:s.jsxs("div",{style:{height:400},children:[s.jsx(t,{id:"analysis.tab1"}),s.jsx(e,{})]})});export{j as default}; diff --git a/web/dist/assets/index-d76da286.js b/web/dist/assets/index-d76da286.js new file mode 100644 index 0000000000000000000000000000000000000000..c469f1fd8a2224dcfea06b4a26f4cab15d616afa --- /dev/null +++ b/web/dist/assets/index-d76da286.js @@ -0,0 +1 @@ +import{b2 as E,_ as l,k as x,s as F,K as L,b as y,C as R,j as i,b3 as W,P as A}from"./umi-5f6aeac9.js";var D=function(t){return x(x({},t.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:t.colorTextSecondary,fontSize:t.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",x({},"".concat(t.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function _(e){return E("LoginForm",function(t){var r=l(l({},t),{},{componentCls:".".concat(e)});return[D(r)]})}var H=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function M(e){var t,r=e.logo,b=e.message,j=e.contentStyle,s=e.title,h=e.subTitle,v=e.actions,C=e.children,k=e.containerStyle,B=e.otherStyle,n=F(e,H),N=L(),w=n.submitter===!1?!1:l(l({searchConfig:{submitText:N.getMessage("loginForm.submitText","登录")}},n.submitter),{},{submitButtonProps:l({size:"large",style:{width:"100%"}},(t=n.submitter)===null||t===void 0?void 0:t.submitButtonProps),render:function(u,p){var g,z=p.pop();if(typeof(n==null||(g=n.submitter)===null||g===void 0?void 0:g.render)=="function"){var a,m;return n==null||(a=n.submitter)===null||a===void 0||(m=a.render)===null||m===void 0?void 0:m.call(a,u,p)}return z}}),P=y.useContext(R.ConfigContext),f=P.getPrefixCls("pro-form-login"),S=_(f),I=S.wrapSSR,c=S.hashId,o=function(u){return"".concat(f,"-").concat(u," ").concat(c)},d=y.useMemo(function(){return r?typeof r=="string"?i.jsx("img",{src:r}):r:null},[r]);return I(i.jsxs("div",{className:W(o("container"),c),style:k,children:[i.jsxs("div",{className:"".concat(o("top")," ").concat(c).trim(),children:[s||d?i.jsxs("div",{className:"".concat(o("header")),children:[d?i.jsx("span",{className:o("logo"),children:d}):null,s?i.jsx("span",{className:o("title"),children:s}):null]}):null,h?i.jsx("div",{className:o("desc"),children:h}):null]}),i.jsxs("div",{className:o("main"),style:l({width:328},j),children:[i.jsxs(A,l(l({isKeyPressSubmit:!0},n),{},{submitter:w,children:[b,C]})),v?i.jsx("div",{className:o("main-other"),style:B,children:v}):null]})]}))}export{M as L}; diff --git a/web/dist/assets/index-d97275d6.js b/web/dist/assets/index-d97275d6.js new file mode 100644 index 0000000000000000000000000000000000000000..0d3d8fc5d229d450cb752d23cef82a89bbd4a2a9 --- /dev/null +++ b/web/dist/assets/index-d97275d6.js @@ -0,0 +1 @@ +import{b as l,R as u,aA as p,j as m,C as x}from"./umi-5f6aeac9.js";import{g}from"./stat-6c5b4dda.js";import{u as b,e as v,g as j,E as T,a as O}from"./createLoading-e07c13ae.js";import"./react-content-loader.es-3bd9b17f.js";var E=globalThis&&globalThis.__rest||function(e,c){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&c.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n{const{data:e=[],loading:c,runAsync:i}=p(async t=>{const n=await g({flag:"added",...t}),f=await g({flag:"finished",...t}),r={added:{},finished:{}};for(const o of n){const{count:d,date_str:a,date_unix:s}=o;r.added[a]||(r.added[a]={date:a,flag:"added",count:0,unix:s}),r.added[a].count+=d}for(const o of f){const{count:d,date_str:a,date_unix:s}=o;r.finished[a]||(r.finished[a]={date:a,flag:"finished",count:0,unix:s}),r.finished[a].count+=d}return[...Object.values(r.added),...Object.values(r.finished)].sort((o,d)=>o.unix-d.unix)},{manual:!0});return l.useEffect(()=>{i({type:"project",startTime:0,endTime:Math.ceil(Date.now()/1e3)})},[]),m.jsx(x,{theme:{components:{Card:{headerHeight:100}}},children:m.jsx("div",{className:"dashboard-pll",children:m.jsx(_,{...C,data:e})})})};export{D as default}; diff --git a/web/dist/assets/index-9bc2873f.js b/web/dist/assets/index-db4ceaf0.js similarity index 85% rename from web/dist/assets/index-9bc2873f.js rename to web/dist/assets/index-db4ceaf0.js index 4c1d739a16bfa43cb89990e75155bdde79f44de5..a1973aa08ef84074e311afa975a37aa6df436f02 100644 --- a/web/dist/assets/index-9bc2873f.js +++ b/web/dist/assets/index-db4ceaf0.js @@ -1 +1 @@ -import{r as g,R as m,j as f}from"./umi-2ee4055f.js";import{C as h}from"./index-8a549704.js";import{u as y,d as p,g as C,E as T,C as b}from"./createLoading-2160f924.js";import"./index-275c5384.js";import"./react-content-loader.es-7f7b682d.js";var x=globalThis&&globalThis.__rest||function(e,o){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{const e=[{source:"北京",target:"天津",value:30},{source:"北京",target:"上海",value:80},{source:"北京",target:"河北",value:46},{source:"北京",target:"辽宁",value:49},{source:"北京",target:"黑龙江",value:69},{source:"北京",target:"吉林",value:19},{source:"天津",target:"河北",value:62},{source:"天津",target:"辽宁",value:82},{source:"天津",target:"上海",value:16},{source:"上海",target:"黑龙江",value:16},{source:"河北",target:"黑龙江",value:76},{source:"河北",target:"内蒙古",value:24},{source:"内蒙古",target:"北京",value:32}],o={data:e,sourceField:"source",targetField:"target",weightField:"value",height:200,tooltip:{fields:["name","source","target","value","isNode"],showContent:!0,formatter:a=>{const{isNode:t,name:r,source:n,target:u,value:c}=a;return t?{name:`${r}(源权重)`,value:e.filter(l=>l.source===r).reduce((l,s)=>l+s.value,0)}:{name:`${n} -> ${u}`,value:c}}}};return f.jsx(h,{title:"和弦图 - 自定义 tooltip",children:f.jsx(O,{...o})})},D=j;export{D as default}; +import{b as g,R as m,j as f}from"./umi-5f6aeac9.js";import{C as h}from"./index-55d2ebbc.js";import{u as y,c as p,g as C,E as b,a as T}from"./createLoading-e07c13ae.js";import"./index-13cae3f4.js";import"./react-content-loader.es-3bd9b17f.js";var x=globalThis&&globalThis.__rest||function(e,o){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{const e=[{source:"北京",target:"天津",value:30},{source:"北京",target:"上海",value:80},{source:"北京",target:"河北",value:46},{source:"北京",target:"辽宁",value:49},{source:"北京",target:"黑龙江",value:69},{source:"北京",target:"吉林",value:19},{source:"天津",target:"河北",value:62},{source:"天津",target:"辽宁",value:82},{source:"天津",target:"上海",value:16},{source:"上海",target:"黑龙江",value:16},{source:"河北",target:"黑龙江",value:76},{source:"河北",target:"内蒙古",value:24},{source:"内蒙古",target:"北京",value:32}],o={data:e,sourceField:"source",targetField:"target",weightField:"value",height:200,tooltip:{fields:["name","source","target","value","isNode"],showContent:!0,formatter:a=>{const{isNode:t,name:r,source:n,target:u,value:c}=a;return t?{name:`${r}(源权重)`,value:e.filter(l=>l.source===r).reduce((l,s)=>l+s.value,0)}:{name:`${n} -> ${u}`,value:c}}}};return f.jsx(h,{title:"和弦图 - 自定义 tooltip",children:f.jsx(O,{...o})})},D=j;export{D as default}; diff --git a/web/dist/assets/index-fcddce1f.js b/web/dist/assets/index-dc605ef6.js similarity index 80% rename from web/dist/assets/index-fcddce1f.js rename to web/dist/assets/index-dc605ef6.js index 35d65da625525e86041edd57d09244767ff68ece..1a22710d31171b33da9379b011e0d2f931fa4626 100644 --- a/web/dist/assets/index-fcddce1f.js +++ b/web/dist/assets/index-dc605ef6.js @@ -1 +1 @@ -import{j as e}from"./umi-2ee4055f.js";import{C as l}from"./index-8a549704.js";import{C as r}from"./index-15df7b01.js";import"./index-275c5384.js";import"./index-63e0f416.js";const x=()=>e.jsxs(l,{title:"单选卡片",children:[e.jsx("p",{children:"普通卡片"}),e.jsx(r.Group,{size:"small",options:["🍎 Apple","🍐 Pear","🍊 Orange"]}),e.jsx("br",{}),e.jsx("p",{children:"加载中"}),e.jsx(r.Group,{size:"small",loading:!0,options:["🍎 Apple","🍐 Pear","🍊 Orange"]}),e.jsx("br",{}),e.jsx("p",{children:"JSX风格"}),e.jsxs(r.Group,{defaultValue:"A",children:[e.jsx(r,{title:"🍊 Orange",value:"🍊 Orange"}),e.jsx(r,{title:"🍐 Pear",value:"🍐 Pear"}),e.jsx(r,{title:"🍎 Apple",value:"🍎 Apple"})]}),e.jsx("br",{}),e.jsx("p",{children:"加载中"}),e.jsxs(r.Group,{defaultValue:"A",loading:!0,children:[e.jsx(r,{title:"🍊 Orange",value:"🍊 Orange"}),e.jsx(r,{title:"🍐 Pear",value:"🍐 Pear"}),e.jsx(r,{title:"🍎 Apple",value:"🍎 Apple"})]})]});export{x as default}; +import{j as e}from"./umi-5f6aeac9.js";import{C as l}from"./index-55d2ebbc.js";import{C as r}from"./index-3f6a8b58.js";import"./index-13cae3f4.js";import"./index-55505f41.js";const x=()=>e.jsxs(l,{title:"单选卡片",children:[e.jsx("p",{children:"普通卡片"}),e.jsx(r.Group,{size:"small",options:["🍎 Apple","🍐 Pear","🍊 Orange"]}),e.jsx("br",{}),e.jsx("p",{children:"加载中"}),e.jsx(r.Group,{size:"small",loading:!0,options:["🍎 Apple","🍐 Pear","🍊 Orange"]}),e.jsx("br",{}),e.jsx("p",{children:"JSX风格"}),e.jsxs(r.Group,{defaultValue:"A",children:[e.jsx(r,{title:"🍊 Orange",value:"🍊 Orange"}),e.jsx(r,{title:"🍐 Pear",value:"🍐 Pear"}),e.jsx(r,{title:"🍎 Apple",value:"🍎 Apple"})]}),e.jsx("br",{}),e.jsx("p",{children:"加载中"}),e.jsxs(r.Group,{defaultValue:"A",loading:!0,children:[e.jsx(r,{title:"🍊 Orange",value:"🍊 Orange"}),e.jsx(r,{title:"🍐 Pear",value:"🍐 Pear"}),e.jsx(r,{title:"🍎 Apple",value:"🍎 Apple"})]})]});export{x as default}; diff --git a/web/dist/assets/index-dd4a319b.js b/web/dist/assets/index-dd4a319b.js new file mode 100644 index 0000000000000000000000000000000000000000..e7e072a2fde545492082fba8edb1113fe4d6a934 --- /dev/null +++ b/web/dist/assets/index-dd4a319b.js @@ -0,0 +1 @@ +import{Y as T,ab as v,j as a,aS as l,aa as w,R as P,a1 as k,a$ as F}from"./umi-5f6aeac9.js";import{X as b}from"./index-53e65e71.js";import{I as C}from"./index-ee353394.js";import{X as j}from"./index-109f15ec.js";import{g as q}from"./auth-13ead763.js";import{e as R}from"./table-0fa6c309.js";import"./index-d4ea9132.js";import"./index-d045d7e9.js";import"./ActionButton-ff803f23.js";import"./index-3fcbb702.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const p="/adminRule",pe=()=>{const{getDictionaryData:o}=T("dictModel"),[m,u]=v(),c=({type:e})=>{const t={title:"父节点",dataIndex:"pid",valueType:"treeSelect",request:async()=>(await q()).data.data,fieldProps:{fieldNames:{label:"name",value:"id"}},params:{ref:m},formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},colProps:{span:7}},r={title:"权限标识",dataIndex:"key",valueType:"text",tooltip:'例: 路由地址 "/index/index" , 权限标识为 "index.index" , 按钮权限请加上上级路由的权限标识,如:查询按钮权限 "index.index.list" ',formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}},i={title:"路由地址",dataIndex:"path",valueType:"text",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},tooltip:"项目文件系统路径,忽略:pages 或 pages/backend 或 pages/frontend 或 index.(ts|tsx)"},y={title:"图标",dataIndex:"icon",valueType:"text",renderFormItem:(d,f,g)=>a.jsx(C,{dataIndex:d.key,form:g,value:f.value}),colProps:{span:6}},s={title:"多语言标识",dataIndex:"locale",valueType:"text",colProps:{span:6}};return e==="0"?[i,r,y,s]:e==="1"?[t,i,r,s]:e==="2"?[t,r]:[]},x=F,h=e=>typeof e=="string"&&e?e.startsWith("icon-")?a.jsx(w,{type:e,className:e}):P.createElement(x[e]):"-",n=(e,t,r)=>{console.log(e);let i={id:r};i[t]=e?1:0,R(p+"/edit",i).then(()=>{k.success("修改成功")})},I=[{title:"类型",dataIndex:"type",valueType:"radio",request:async()=>await o("ruleType"),hideInTable:!0,initialValue:"0",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},colProps:{span:10}},{title:"标题",dataIndex:"name",valueType:"text",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},width:200,colProps:{span:7},tooltip:"菜单的标题,可当作菜单栏标题,如果有多语言标识,该项会被覆盖!"},{title:"图标",dataIndex:"icon",valueType:"text",renderText:(e,t)=>t.type==="0"?h(e):"-",width:60,align:"center",hideInForm:!0},{valueType:"dependency",name:["type"],hideInTable:!0,columns:c},{title:"类型",dataIndex:"type",valueType:"radioButton",request:async()=>await o("ruleType"),render:(e,t)=>a.jsx(b,{value:t.type,dict:"ruleType"}),hideInForm:!0,align:"center",width:120},{title:"排序",dataIndex:"sort",valueType:"text",tooltip:"数字越大排序越靠前",align:"center",width:100,colProps:{span:4}},{title:"权限标识",dataIndex:"key",valueType:"text",hideInForm:!0,tooltip:'例: 路由地址 "/index/index" , 权限标识为 "index.index" , 按钮权限请加上上级路由的权限标识,如:查询按钮权限 "index.index.list" ',width:240},{title:"路由地址",dataIndex:"path",valueType:"text",hideInForm:!0,renderText:(e,t)=>t.type!=="2"?e:"-",tooltip:"项目文件系统路径,忽略:pages 或 pages/backend 或 pages/frontend 或 index.(ts|tsx)",width:200},{title:"显示状态",dataIndex:"show",valueType:"switch",tooltip:"菜单栏显示状态,控制菜单是否显示再导航中(菜单规则依然生效)",align:"center",width:120,render:(e,t)=>t.type==="2"?"-":a.jsx(l,{checkedChildren:"显示",unCheckedChildren:"隐藏",defaultValue:t.show===1,onChange:r=>n(r,"show",t.id)}),colProps:{span:4},hideInForm:!0},{title:"是否禁用",dataIndex:"status",valueType:"switch",tooltip:"权限是否禁用(将不会参与权限验证)",align:"center",width:120,render:(e,t)=>a.jsx(l,{checkedChildren:"启用",unCheckedChildren:"禁用",defaultChecked:t.status===1,onChange:r=>n(r,"status",t.id)}),colProps:{span:4},hideInForm:!0},{title:"创建时间",dataIndex:"create_time",valueType:"dateTime",hideInForm:!0,align:"center"},{title:"修改时间",dataIndex:"update_time",valueType:"dateTime",hideInForm:!0,align:"center"}];return a.jsx(j,{headerTitle:"权限菜单管理",tableApi:p,columns:I,search:!1,pagination:!1,addBefore:()=>u.toggle(),accessName:"admin.rule",scroll:{x:1580}})};export{pe as default}; diff --git a/web/dist/assets/index-dfb59d56.js b/web/dist/assets/index-dfb59d56.js deleted file mode 100644 index 19d25558a2beaac415d4e302e0b85800d30afb39..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-dfb59d56.js +++ /dev/null @@ -1 +0,0 @@ -import{R as d,k as n,r as P,a0 as u,j as F,a1 as c,_ as o,a7 as f}from"./umi-2ee4055f.js";var m=["fieldProps","proFieldProps"],t="dateRange",v=d.forwardRef(function(r,a){var e=r.fieldProps,i=r.proFieldProps,s=n(r,m),p=P.useContext(u);return F.jsx(c,o({ref:a,fieldProps:o({getPopupContainer:p.getPopupContainer},e),valueType:t,proFieldProps:i,filedConfig:{valueType:t,customLightMode:!0,lightFilterLabelFormatter:function(l){return f(l,(e==null?void 0:e.format)||"YYYY-MM-DD")}}},s))});const R=v;export{R as P}; diff --git a/web/dist/assets/index-0762784e.js b/web/dist/assets/index-e1b2522d.js similarity index 34% rename from web/dist/assets/index-0762784e.js rename to web/dist/assets/index-e1b2522d.js index 7874589b5b213e1113bf079f4599708b373b99c0..35b1e0b82bae1435a69854ed80c408b3fb6599aa 100644 --- a/web/dist/assets/index-0762784e.js +++ b/web/dist/assets/index-e1b2522d.js @@ -1,4 +1,4 @@ -import{r as E,C as Re,bq as Te,k as Se,l as we,aV as L,K as a,j as r,L as Ie,_ as s,bl as Ee,bn as Ae,R as ue,cl as _e,cc as Pe,b5 as je,bk as Be,aU as Ke,ae as De,B as $e,S as ze}from"./umi-2ee4055f.js";import{C as Le}from"./index-8a549704.js";import{T as ke}from"./index-9456f6ef.js";import{P as Me}from"./Table-3849f584.js";import{u as He}from"./useLazyKVMap-d8c68a12.js";import{u as Oe,a as Ve}from"./Table-0e254f81.js";import{C as Ue}from"./index-15df7b01.js";import"./index-275c5384.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-8ec65540.js";import"./index-e10ebcfa.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./index-ea2ed5fc.js";import"./ActionButton-a9da0b15.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-6395135c.js";function qe(e,n){for(var t=e,i=0;ie.length)&&(n=e.length);for(var t=0,i=new Array(n);t"u"||!(Symbol.iterator in Object(e)))){var t=[],i=!0,d=!1,p=void 0;try{for(var C=e[Symbol.iterator](),o;!(i=(o=C.next()).done)&&(t.push(o.value),!(n&&t.length===n));i=!0);}catch(I){d=!0,p=I}finally{try{!i&&C.return!=null&&C.return()}finally{if(d)throw p}}return t}}function Qe(e){if(Array.isArray(e))return e}function Ge(e,n){var t=n||{},i=t.defaultValue,d=t.value,p=t.onChange,C=t.postState,o=E.useState(function(){return d!==void 0?d:i!==void 0?typeof i=="function"?i():i:typeof e=="function"?e():e}),I=Fe(o,2),l=I[0],w=I[1],g=d!==void 0?d:l;C&&(g=C(g));function j(x){w(x),g!==x&&p&&p(x,g)}var y=E.useRef(!0);return E.useEffect(function(){if(y.current){y.current=!1;return}d===void 0&&w(d)},[d]),[g,j]}var Xe=["title","subTitle","content","itemTitleRender","prefixCls","actions","item","recordKey","avatar","cardProps","description","isEditable","checkbox","index","selected","loading","expand","onExpand","expandable","rowSupportExpand","showActions","showExtra","type","style","className","record","onRow","onItem","itemHeaderRender","cardActionProps","extra"];function Ze(e){var n=e.prefixCls,t=e.expandIcon,i=t===void 0?r.jsx(Ae,{}):t,d=e.onExpand,p=e.expanded,C=e.record,o=e.hashId,I=i,l="".concat(n,"-row-expand-icon"),w=function(j){d(!p),j.stopPropagation()};return typeof i=="function"&&(I=i({expanded:p,onExpand:d,record:C})),r.jsx("span",{className:L(l,o,a(a({},"".concat(n,"-row-expanded"),p),"".concat(n,"-row-collapsed"),!p)),onClick:w,children:I})}function en(e){var n,t,i=e.prefixCls,d=E.useContext(Re.ConfigContext),p=d.getPrefixCls,C=E.useContext(Te),o=C.hashId,I=p("pro-list",i),l="".concat(I,"-row"),w=e.title,g=e.subTitle,j=e.content,y=e.itemTitleRender;e.prefixCls;var x=e.actions;e.item,e.recordKey;var T=e.avatar,b=e.cardProps,V=e.description,M=e.isEditable,X=e.checkbox,_=e.index,me=e.selected,Z=e.loading,k=e.expand,pe=e.onExpand,ee=e.expandable,le=e.rowSupportExpand,ne=e.showActions,ae=e.showExtra,U=e.type,H=e.style,te=e.className,q=te===void 0?l:te,f=e.record,A=e.onRow,B=e.onItem,Y=e.itemHeaderRender,O=e.cardActionProps,P=e.extra,v=Se(e,Xe),h=ee||{},R=h.expandedRowRender,xe=h.expandIcon,re=h.expandRowByClick,J=h.indentSize,Q=J===void 0?8:J,ce=h.expandedRowClassName,ye=Ge(!!k,{value:k,onChange:pe}),fe=we(ye,2),se=fe[0],F=fe[1],K=L(a(a(a(a(a({},"".concat(l,"-selected"),!b&&me),"".concat(l,"-show-action-hover"),ne==="hover"),"".concat(l,"-type-").concat(U),!!U),"".concat(l,"-editable"),M),"".concat(l,"-show-extra-hover"),ae==="hover"),o,l),ve=L(o,a({},"".concat(q,"-extra"),ae==="hover")),N=se||Object.values(ee||{}).length===0,c=R&&R(f,_,Q,se),u=E.useMemo(function(){if(!(!x||O==="actions"))return[r.jsx("div",{onClick:function(m){return m.stopPropagation()},children:x},"action")]},[x,O]),D=E.useMemo(function(){if(!(!x||!O||O==="extra"))return[r.jsx("div",{className:"".concat(l,"-actions ").concat(o).trim(),onClick:function(m){return m.stopPropagation()},children:x},"action")]},[x,O,l,o]),W=w||g?r.jsxs("div",{className:"".concat(l,"-header-container ").concat(o).trim(),children:[w&&r.jsx("div",{className:L("".concat(l,"-title"),o,a({},"".concat(l,"-title-editable"),M)),children:w}),g&&r.jsx("div",{className:L("".concat(l,"-subTitle"),o,a({},"".concat(l,"-subTitle-editable"),M)),children:g})]}):null,oe=(n=y&&(y==null?void 0:y(f,_,W)))!==null&&n!==void 0?n:W,ge=oe||T||g||V?r.jsx(Ie.Item.Meta,{avatar:T,title:oe,description:V&&N&&r.jsx("div",{className:"".concat(K,"-description ").concat(o).trim(),children:V})}):null,be=L(o,a(a(a({},"".concat(l,"-item-has-checkbox"),X),"".concat(l,"-item-has-avatar"),T),K,K)),he=E.useMemo(function(){return T||w?r.jsxs(r.Fragment,{children:[T,r.jsx("span",{className:"".concat(p("list-item-meta-title")," ").concat(o).trim(),children:w})]}):null},[T,p,o,w]),G=B==null?void 0:B(f,_),Ce=b?r.jsx(Ue,s(s(s({bordered:!0,style:{width:"100%"}},b),{},{title:he,subTitle:g,extra:u,actions:D,bodyStyle:s({padding:24},b.bodyStyle)},G),{},{onClick:function(m){var $,z;b==null||($=b.onClick)===null||$===void 0||$.call(b,m),G==null||(z=G.onClick)===null||z===void 0||z.call(G,m)},children:r.jsx(Ee,{avatar:!0,title:!1,loading:Z,active:!0,children:r.jsxs("div",{className:"".concat(K,"-header ").concat(o).trim(),children:[y&&(y==null?void 0:y(f,_,W)),j]})})})):r.jsx(Ie.Item,s(s(s(s({className:L(be,o,a({},q,q!==l))},v),{},{actions:u,extra:!!P&&r.jsx("div",{className:ve,children:P})},A==null?void 0:A(f,_)),G),{},{onClick:function(m){var $,z,ie,de;A==null||($=A(f,_))===null||$===void 0||(z=$.onClick)===null||z===void 0||z.call($,m),B==null||(ie=B(f,_))===null||ie===void 0||(de=ie.onClick)===null||de===void 0||de.call(ie,m),re&&F(!se)},children:r.jsxs(Ee,{avatar:!0,title:!1,loading:Z,active:!0,children:[r.jsxs("div",{className:"".concat(K,"-header ").concat(o).trim(),children:[r.jsxs("div",{className:"".concat(K,"-header-option ").concat(o).trim(),children:[!!X&&r.jsx("div",{className:"".concat(K,"-checkbox ").concat(o).trim(),children:X}),Object.values(ee||{}).length>0&&le&&Ze({prefixCls:I,hashId:o,expandIcon:xe,onExpand:F,expanded:se,record:f})]}),(t=Y&&(Y==null?void 0:Y(f,_,ge)))!==null&&t!==void 0?t:ge]}),N&&(j||c)&&r.jsxs("div",{className:"".concat(K,"-content ").concat(o).trim(),children:[j,R&&le&&r.jsx("div",{className:ce&&typeof ce!="string"?ce(f,_,Q):ce,children:c})]})]})}));return b?r.jsx("div",{className:L(o,a(a({},"".concat(K,"-card"),b),q,q!==l)),style:H,children:Ce}):Ce}var nn=["title","subTitle","avatar","description","extra","content","actions","type"],an=nn.reduce(function(e,n){return e.set(n,!0),e},new Map),tn=["dataSource","columns","rowKey","showActions","showExtra","prefixCls","actionRef","itemTitleRender","renderItem","itemCardProps","itemHeaderRender","expandable","rowSelection","pagination","onRow","onItem","rowClassName"];function rn(e){var n=e.dataSource,t=e.columns,i=e.rowKey,d=e.showActions,p=e.showExtra,C=e.prefixCls,o=e.actionRef,I=e.itemTitleRender,l=e.renderItem,w=e.itemCardProps,g=e.itemHeaderRender,j=e.expandable,y=e.rowSelection,x=e.pagination,T=e.onRow,b=e.onItem,V=e.rowClassName,M=Se(e,tn),X=E.useContext(Te),_=X.hashId,me=E.useContext(Re.ConfigContext),Z=me.getPrefixCls,k=ue.useMemo(function(){return typeof i=="function"?i:function(N,c){return N[i]||c}},[i]),pe=He(n,"children",k),ee=we(pe,1),le=ee[0],ne=[function(){},x];_e(Pe,"5.3.0")<0&&ne.reverse();var ae=Oe(n.length,ne[0],ne[1]),U=we(ae,1),H=U[0],te=ue.useMemo(function(){if(x===!1||!H.pageSize||n.lengthe.length)&&(n=e.length);for(var t=0,i=new Array(n);t"u"||!(Symbol.iterator in Object(e)))){var t=[],i=!0,d=!1,x=void 0;try{for(var C=e[Symbol.iterator](),r;!(i=(r=C.next()).done)&&(t.push(r.value),!(n&&t.length===n));i=!0);}catch(R){d=!0,x=R}finally{try{!i&&C.return!=null&&C.return()}finally{if(d)throw x}}return t}}function Je(e){if(Array.isArray(e))return e}function Ye(e,n){var t=n||{},i=t.defaultValue,d=t.value,x=t.onChange,C=t.postState,r=S.useState(function(){return d!==void 0?d:i!==void 0?typeof i=="function"?i():i:typeof e=="function"?e():e}),R=Oe(r,2),l=R[0],y=R[1],g=d!==void 0?d:l;C&&(g=C(g));function j(f){y(f),g!==f&&x&&x(f,g)}var w=S.useRef(!0);return S.useEffect(function(){if(w.current){w.current=!1;return}d===void 0&&y(d)},[d]),[g,j]}var qe=["title","subTitle","content","itemTitleRender","prefixCls","actions","item","recordKey","avatar","cardProps","description","isEditable","checkbox","index","selected","loading","expand","onExpand","expandable","rowSupportExpand","showActions","showExtra","type","style","className","record","onRow","onItem","itemHeaderRender","cardActionProps","extra"];function Fe(e){var n=e.prefixCls,t=e.expandIcon,i=t===void 0?o.jsx(Te,{}):t,d=e.onExpand,x=e.expanded,C=e.record,r=e.hashId,R=i,l="".concat(n,"-row-expand-icon"),y=function(j){d(!x),j.stopPropagation()};return typeof i=="function"&&(R=i({expanded:x,onExpand:d,record:C})),o.jsx("span",{className:z(l,r,a(a({},"".concat(n,"-row-expanded"),x),"".concat(n,"-row-collapsed"),!x)),onClick:y,children:R})}function Qe(e){var n,t,i=e.prefixCls,d=S.useContext(Ie.ConfigContext),x=d.getPrefixCls,C=S.useContext(ke),r=C.hashId,R=x("pro-list",i),l="".concat(R,"-row"),y=e.title,g=e.subTitle,j=e.content,w=e.itemTitleRender;e.prefixCls;var f=e.actions;e.item,e.recordKey;var T=e.avatar,b=e.cardProps,V=e.description,H=e.isEditable,X=e.checkbox,P=e.index,me=e.selected,Z=e.loading,N=e.expand,xe=e.onExpand,ee=e.expandable,le=e.rowSupportExpand,ne=e.showActions,ae=e.showExtra,U=e.type,M=e.style,te=e.className,W=te===void 0?l:te,v=e.record,A=e.onRow,B=e.onItem,q=e.itemHeaderRender,O=e.cardActionProps,_=e.extra,p=Ee(e,qe),h=ee||{},I=h.expandedRowRender,fe=h.expandIcon,re=h.expandRowByClick,F=h.indentSize,Q=F===void 0?8:F,ce=h.expandedRowClassName,we=Ye(!!N,{value:N,onChange:xe}),ve=ye(we,2),se=ve[0],J=ve[1],K=z(a(a(a(a(a({},"".concat(l,"-selected"),!b&&me),"".concat(l,"-show-action-hover"),ne==="hover"),"".concat(l,"-type-").concat(U),!!U),"".concat(l,"-editable"),H),"".concat(l,"-show-extra-hover"),ae==="hover"),r,l),pe=z(r,a({},"".concat(W,"-extra"),ae==="hover")),k=se||Object.values(ee||{}).length===0,c=I&&I(v,P,Q,se),u=S.useMemo(function(){if(!(!f||O==="actions"))return[o.jsx("div",{onClick:function(m){return m.stopPropagation()},children:f},"action")]},[f,O]),$=S.useMemo(function(){if(!(!f||!O||O==="extra"))return[o.jsx("div",{className:"".concat(l,"-actions ").concat(r).trim(),onClick:function(m){return m.stopPropagation()},children:f},"action")]},[f,O,l,r]),Y=y||g?o.jsxs("div",{className:"".concat(l,"-header-container ").concat(r).trim(),children:[y&&o.jsx("div",{className:z("".concat(l,"-title"),r,a({},"".concat(l,"-title-editable"),H)),children:y}),g&&o.jsx("div",{className:z("".concat(l,"-subTitle"),r,a({},"".concat(l,"-subTitle-editable"),H)),children:g})]}):null,oe=(n=w&&(w==null?void 0:w(v,P,Y)))!==null&&n!==void 0?n:Y,ge=oe||T||g||V?o.jsx(Re.Item.Meta,{avatar:T,title:oe,description:V&&k&&o.jsx("div",{className:"".concat(K,"-description ").concat(r).trim(),children:V})}):null,be=z(r,a(a(a({},"".concat(l,"-item-has-checkbox"),X),"".concat(l,"-item-has-avatar"),T),K,K)),he=S.useMemo(function(){return T||y?o.jsxs(o.Fragment,{children:[T,o.jsx("span",{className:"".concat(x("list-item-meta-title")," ").concat(r).trim(),children:y})]}):null},[T,x,r,y]),G=B==null?void 0:B(v,P),Ce=b?o.jsx(He,s(s(s({bordered:!0,style:{width:"100%"}},b),{},{title:he,subTitle:g,extra:u,actions:$,bodyStyle:s({padding:24},b.bodyStyle)},G),{},{onClick:function(m){var L,D;b==null||(L=b.onClick)===null||L===void 0||L.call(b,m),G==null||(D=G.onClick)===null||D===void 0||D.call(G,m)},children:o.jsx(Se,{avatar:!0,title:!1,loading:Z,active:!0,children:o.jsxs("div",{className:"".concat(K,"-header ").concat(r).trim(),children:[w&&(w==null?void 0:w(v,P,Y)),j]})})})):o.jsx(Re.Item,s(s(s(s({className:z(be,r,a({},W,W!==l))},p),{},{actions:u,extra:!!_&&o.jsx("div",{className:pe,children:_})},A==null?void 0:A(v,P)),G),{},{onClick:function(m){var L,D,ie,de;A==null||(L=A(v,P))===null||L===void 0||(D=L.onClick)===null||D===void 0||D.call(L,m),B==null||(ie=B(v,P))===null||ie===void 0||(de=ie.onClick)===null||de===void 0||de.call(ie,m),re&&J(!se)},children:o.jsxs(Se,{avatar:!0,title:!1,loading:Z,active:!0,children:[o.jsxs("div",{className:"".concat(K,"-header ").concat(r).trim(),children:[o.jsxs("div",{className:"".concat(K,"-header-option ").concat(r).trim(),children:[!!X&&o.jsx("div",{className:"".concat(K,"-checkbox ").concat(r).trim(),children:X}),Object.values(ee||{}).length>0&&le&&Fe({prefixCls:R,hashId:r,expandIcon:fe,onExpand:J,expanded:se,record:v})]}),(t=q&&(q==null?void 0:q(v,P,ge)))!==null&&t!==void 0?t:ge]}),k&&(j||c)&&o.jsxs("div",{className:"".concat(K,"-content ").concat(r).trim(),children:[j,I&&le&&o.jsx("div",{className:ce&&typeof ce!="string"?ce(v,P,Q):ce,children:c})]})]})}));return b?o.jsx("div",{className:z(r,a(a({},"".concat(K,"-card"),b),W,W!==l)),style:M,children:Ce}):Ce}var Ge=["title","subTitle","avatar","description","extra","content","actions","type"],Xe=Ge.reduce(function(e,n){return e.set(n,!0),e},new Map),Ze=["dataSource","columns","rowKey","showActions","showExtra","prefixCls","actionRef","itemTitleRender","renderItem","itemCardProps","itemHeaderRender","expandable","rowSelection","pagination","onRow","onItem","rowClassName"];function en(e){var n=e.dataSource,t=e.columns,i=e.rowKey,d=e.showActions,x=e.showExtra,C=e.prefixCls,r=e.actionRef,R=e.itemTitleRender,l=e.renderItem,y=e.itemCardProps,g=e.itemHeaderRender,j=e.expandable,w=e.rowSelection,f=e.pagination,T=e.onRow,b=e.onItem,V=e.rowClassName,H=Ee(e,Ze),X=S.useContext(ke),P=X.hashId,me=S.useContext(Ie.ConfigContext),Z=me.getPrefixCls,N=ue.useMemo(function(){return typeof i=="function"?i:function(k,c){return k[i]||c}},[i]),xe=Le(n,"children",N),ee=ye(xe,1),le=ee[0],ne=[function(){},f];Pe(_e,"5.3.0")<0&&ne.reverse();var ae=De(n.length,ne[0],ne[1]),U=ye(ae,1),M=U[0],te=ue.useMemo(function(){if(f===!1||!M.pageSize||n.length .anticon > svg":{transition:"0.3s"}}),"&-expanded",{" > .anticon > svg":{transform:"rotate(90deg)"}}),"&-title",{marginInlineEnd:"16px",wordBreak:"break-all",cursor:"pointer","&-editable":{paddingBlock:8},"&:hover":{color:n.colorPrimary}}),"&-content",{position:"relative",display:"flex",flex:"1",flexDirection:"column",marginBlock:0,marginInline:32}),"&-subTitle",{color:"rgba(0, 0, 0, 0.45)","&-editable":{paddingBlock:8}}),"&-description",{marginBlockStart:"4px",wordBreak:"break-all"}),"&-avatar",{display:"flex"}),a(a(a(a(a(a(a(a(a(a(t,"&-header",{display:"flex",flex:"1",justifyContent:"flex-start",h4:{margin:0,padding:0}}),"&-header-container",{display:"flex",alignItems:"center",justifyContent:"flex-start"}),"&-header-option",{display:"flex"}),"&-checkbox",{width:"16px",marginInlineEnd:"12px"}),"&-no-split",a(a({},"".concat(n.componentCls,"-row"),{borderBlockEnd:"none"}),"".concat(n.antCls,"-list ").concat(n.antCls,"-list-item"),{borderBlockEnd:"none"})),"&-bordered",a({},"".concat(n.componentCls,"-toolbar"),{borderBlockEnd:"1px solid ".concat(n.colorSplit)})),"".concat(n.antCls,"-list-vertical"),a(a(a(a(a(a(a({},"".concat(n.componentCls,"-row"),{borderBlockEnd:"12px 18px 12px 24px"}),"&-header-title",{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center"}),"&-content",{marginBlock:0,marginInline:0}),"&-subTitle",{marginBlockStart:8}),"".concat(n.antCls,"-list-item-extra"),a({display:"flex",alignItems:"center",marginInlineStart:"32px"},"".concat(n.componentCls,"-row-description"),{marginBlockStart:16})),"".concat(n.antCls,"-list-bordered ").concat(n.antCls,"-list-item"),{paddingInline:0}),"".concat(n.componentCls,"-row-show-extra-hover"),a({},"".concat(n.antCls,"-list-item-extra "),{display:"none"}))),"".concat(n.antCls,"-list-pagination"),{marginBlockStart:n.margin,marginBlockEnd:n.margin}),"".concat(n.antCls,"-list-list"),{"&-item":{cursor:"pointer",paddingBlock:12,paddingInline:12}}),"".concat(n.antCls,"-list-vertical ").concat(n.proComponentsCls,"-list-row"),a({"&-header":{paddingBlock:0,paddingInline:0,borderBlockEnd:"none"}},"".concat(n.antCls,"-list-item"),a(a(a({width:"100%",paddingBlock:12,paddingInlineStart:24,paddingInlineEnd:18},"".concat(n.antCls,"-list-item-meta-avatar"),{display:"flex",alignItems:"center",marginInlineEnd:8}),"".concat(n.antCls,"-list-item-action-split"),{display:"none"}),"".concat(n.antCls,"-list-item-meta-title"),{marginBlock:0,marginInline:0}))))))};function cn(e){return Ke("ProList",function(n){var t=s(s({},n),{},{componentCls:".".concat(e)});return[ln(t)]})}var sn=["metas","split","footer","rowKey","tooltip","className","options","search","expandable","showActions","showExtra","rowSelection","pagination","itemLayout","renderItem","grid","itemCardProps","onRow","onItem","rowClassName","locale","itemHeaderRender","itemTitleRender"];function dn(e){var n=e.metas,t=e.split,i=e.footer,d=e.rowKey,p=e.tooltip,C=e.className,o=e.options,I=o===void 0?!1:o,l=e.search,w=l===void 0?!1:l,g=e.expandable,j=e.showActions,y=e.showExtra,x=e.rowSelection,T=x===void 0?!1:x,b=e.pagination,V=b===void 0?!1:b,M=e.itemLayout,X=e.renderItem,_=e.grid,me=e.itemCardProps,Z=e.onRow,k=e.onItem,pe=e.rowClassName,ee=e.locale,le=e.itemHeaderRender,ne=e.itemTitleRender,ae=Se(e,sn),U=E.useRef();E.useImperativeHandle(ae.actionRef,function(){return U.current},[U.current]);var H=E.useContext(Re.ConfigContext),te=H.getPrefixCls,q=E.useMemo(function(){var P=[];return Object.keys(n||{}).forEach(function(v){var h=n[v]||{},R=h.valueType;R||(v==="avatar"&&(R="avatar"),v==="actions"&&(R="option"),v==="description"&&(R="textarea")),P.push(s(s({listKey:v,dataIndex:(h==null?void 0:h.dataIndex)||v},h),{},{valueType:R}))}),P},[n]),f=te("pro-list",e.prefixCls),A=cn(f),B=A.wrapSSR,Y=A.hashId,O=L(f,Y,a({},"".concat(f,"-no-split"),!t));return B(r.jsx(Me,s(s({tooltip:p},ae),{},{actionRef:U,pagination:V,type:"list",rowSelection:T,search:w,options:I,className:L(f,C,O),columns:q,rowKey:d,tableViewRender:function(v){var h=v.columns,R=v.size,xe=v.pagination,re=v.rowSelection,J=v.dataSource,Q=v.loading;return r.jsx(rn,{grid:_,itemCardProps:me,itemTitleRender:ne,prefixCls:e.prefixCls,columns:h,renderItem:X,actionRef:U,dataSource:J||[],size:R,footer:i,split:t,rowKey:d,expandable:g,rowSelection:T===!1?void 0:re,showActions:j,showExtra:y,pagination:xe,itemLayout:M,loading:Q,itemHeaderRender:le,onRow:Z,onItem:k,rowClassName:pe,locale:ee})}})))}function un(e){return r.jsx(De,{needDeps:!0,children:r.jsx(dn,s({},e))})}const mn=[{name:"语雀的天空",image:"https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg",desc:"我是一条测试的描述"},{name:"Ant Design",image:"https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg",desc:"我是一条测试的描述"},{name:"蚂蚁金服体验科技",image:"https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg",desc:"我是一条测试的描述"},{name:"TechUI",image:"https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg",desc:"我是一条测试的描述"}],Hn=()=>r.jsx(Le,{title:"基础列表",children:r.jsx(un,{toolBarRender:()=>[r.jsx($e,{type:"primary",children:"新建"},"add")],onRow:e=>({onMouseEnter:()=>{console.log(e)},onClick:()=>{console.log(e)}}),rowKey:"name",headerTitle:"基础列表",tooltip:"基础列表的配置",dataSource:mn,showActions:"hover",showExtra:"hover",metas:{title:{dataIndex:"name"},avatar:{dataIndex:"image"},description:{dataIndex:"desc"},subTitle:{render:()=>r.jsxs(ze,{size:0,children:[r.jsx(ke,{color:"blue",children:"Ant Design"}),r.jsx(ke,{color:"#5BD8A6",children:"TechUI"})]})},actions:{render:(e,n)=>[r.jsx("a",{href:n.html_url,target:"_blank",rel:"noopener noreferrer",children:"链路"},"link"),r.jsx("a",{href:n.html_url,target:"_blank",rel:"noopener noreferrer",children:"报警"},"warning"),r.jsx("a",{href:n.html_url,target:"_blank",rel:"noopener noreferrer",children:"查看"},"view")]}}})});export{Hn as default}; + `).concat(n.proComponentsCls,"-card-actions"),{display:"flex"})),a(a(a(a(a(a(a(a(a(a(t,"&-show-extra-hover",a({},"".concat(n.antCls,"-list-item-extra"),{display:"none"})),"&-extra",{display:"none"}),"&-subheader",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"44px",paddingInline:24,paddingBlock:0,color:n.colorTextSecondary,lineHeight:"44px",background:"rgba(0, 0, 0, 0.02)","&-actions":{display:"none"},"&-actions *":{marginInlineEnd:8,"&:last-child":{marginInlineEnd:0}}}),"&-expand-icon",{marginInlineEnd:8,display:"flex",fontSize:12,cursor:"pointer",height:"24px",marginRight:4,color:n.colorTextSecondary,"> .anticon > svg":{transition:"0.3s"}}),"&-expanded",{" > .anticon > svg":{transform:"rotate(90deg)"}}),"&-title",{marginInlineEnd:"16px",wordBreak:"break-all",cursor:"pointer","&-editable":{paddingBlock:8},"&:hover":{color:n.colorPrimary}}),"&-content",{position:"relative",display:"flex",flex:"1",flexDirection:"column",marginBlock:0,marginInline:32}),"&-subTitle",{color:"rgba(0, 0, 0, 0.45)","&-editable":{paddingBlock:8}}),"&-description",{marginBlockStart:"4px",wordBreak:"break-all"}),"&-avatar",{display:"flex"}),a(a(a(a(a(a(a(a(a(a(t,"&-header",{display:"flex",flex:"1",justifyContent:"flex-start",h4:{margin:0,padding:0}}),"&-header-container",{display:"flex",alignItems:"center",justifyContent:"flex-start"}),"&-header-option",{display:"flex"}),"&-checkbox",{width:"16px",marginInlineEnd:"12px"}),"&-no-split",a(a({},"".concat(n.componentCls,"-row"),{borderBlockEnd:"none"}),"".concat(n.antCls,"-list ").concat(n.antCls,"-list-item"),{borderBlockEnd:"none"})),"&-bordered",a({},"".concat(n.componentCls,"-toolbar"),{borderBlockEnd:"1px solid ".concat(n.colorSplit)})),"".concat(n.antCls,"-list-vertical"),a(a(a(a(a(a(a({},"".concat(n.componentCls,"-row"),{borderBlockEnd:"12px 18px 12px 24px"}),"&-header-title",{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center"}),"&-content",{marginBlock:0,marginInline:0}),"&-subTitle",{marginBlockStart:8}),"".concat(n.antCls,"-list-item-extra"),a({display:"flex",alignItems:"center",marginInlineStart:"32px"},"".concat(n.componentCls,"-row-description"),{marginBlockStart:16})),"".concat(n.antCls,"-list-bordered ").concat(n.antCls,"-list-item"),{paddingInline:0}),"".concat(n.componentCls,"-row-show-extra-hover"),a({},"".concat(n.antCls,"-list-item-extra "),{display:"none"}))),"".concat(n.antCls,"-list-pagination"),{marginBlockStart:n.margin,marginBlockEnd:n.margin}),"".concat(n.antCls,"-list-list"),{"&-item":{cursor:"pointer",paddingBlock:12,paddingInline:12}}),"".concat(n.antCls,"-list-vertical ").concat(n.proComponentsCls,"-list-row"),a({"&-header":{paddingBlock:0,paddingInline:0,borderBlockEnd:"none"}},"".concat(n.antCls,"-list-item"),a(a(a({width:"100%",paddingBlock:12,paddingInlineStart:24,paddingInlineEnd:18},"".concat(n.antCls,"-list-item-meta-avatar"),{display:"flex",alignItems:"center",marginInlineEnd:8}),"".concat(n.antCls,"-list-item-action-split"),{display:"none"}),"".concat(n.antCls,"-list-item-meta-title"),{marginBlock:0,marginInline:0}))))))};function tn(e){return Be("ProList",function(n){var t=s(s({},n),{},{componentCls:".".concat(e)});return[an(t)]})}var rn=["metas","split","footer","rowKey","tooltip","className","options","search","expandable","showActions","showExtra","rowSelection","pagination","itemLayout","renderItem","grid","itemCardProps","onRow","onItem","rowClassName","locale","itemHeaderRender","itemTitleRender"];function on(e){var n=e.metas,t=e.split,i=e.footer,d=e.rowKey,x=e.tooltip,C=e.className,r=e.options,R=r===void 0?!1:r,l=e.search,y=l===void 0?!1:l,g=e.expandable,j=e.showActions,w=e.showExtra,f=e.rowSelection,T=f===void 0?!1:f,b=e.pagination,V=b===void 0?!1:b,H=e.itemLayout,X=e.renderItem,P=e.grid,me=e.itemCardProps,Z=e.onRow,N=e.onItem,xe=e.rowClassName,ee=e.locale,le=e.itemHeaderRender,ne=e.itemTitleRender,ae=Ee(e,rn),U=S.useRef();S.useImperativeHandle(ae.actionRef,function(){return U.current},[U.current]);var M=S.useContext(Ie.ConfigContext),te=M.getPrefixCls,W=S.useMemo(function(){var _=[];return Object.keys(n||{}).forEach(function(p){var h=n[p]||{},I=h.valueType;I||(p==="avatar"&&(I="avatar"),p==="actions"&&(I="option"),p==="description"&&(I="textarea")),_.push(s(s({listKey:p,dataIndex:(h==null?void 0:h.dataIndex)||p},h),{},{valueType:I}))}),_},[n]),v=te("pro-list",e.prefixCls),A=tn(v),B=A.wrapSSR,q=A.hashId,O=z(v,q,a({},"".concat(v,"-no-split"),!t));return B(o.jsx($e,s(s({tooltip:x},ae),{},{actionRef:U,pagination:V,type:"list",rowSelection:T,search:y,options:R,className:z(v,C,O),columns:W,rowKey:d,tableViewRender:function(p){var h=p.columns,I=p.size,fe=p.pagination,re=p.rowSelection,F=p.dataSource,Q=p.loading;return o.jsx(en,{grid:P,itemCardProps:me,itemTitleRender:ne,prefixCls:e.prefixCls,columns:h,renderItem:X,actionRef:U,dataSource:F||[],size:I,footer:i,split:t,rowKey:d,expandable:g,rowSelection:T===!1?void 0:re,showActions:j,showExtra:w,pagination:fe,itemLayout:H,loading:Q,itemHeaderRender:le,onRow:Z,onItem:N,rowClassName:xe,locale:ee})}})))}function xn(e){return o.jsx(Ke,{needDeps:!0,children:o.jsx(on,s({},e))})}export{xn as P}; diff --git a/web/dist/assets/index-e2d3468a.js b/web/dist/assets/index-e2d3468a.js new file mode 100644 index 0000000000000000000000000000000000000000..ed9dfce7883871341241ec860566cc23facf7b10 --- /dev/null +++ b/web/dist/assets/index-e2d3468a.js @@ -0,0 +1 @@ +import{b as w,R as b,aA as U,j as t,$ as F,b7 as N,d as _}from"./umi-5f6aeac9.js";import{b as $}from"./stat-6c5b4dda.js";import D from"./index-1af802d3.js";import{a as I,T as B}from"./index-04808238.js";import{u as q,P as H,g as L,E as z,a as G}from"./createLoading-e07c13ae.js";import{S as J}from"./index-7b6639e6.js";import"./index-55d2ebbc.js";import"./index-13cae3f4.js";import"./index-e3aca980.js";import"./react-content-loader.es-3bd9b17f.js";import"./index-46da21dc.js";import"./index-55505f41.js";var K=globalThis&&globalThis.__rest||function(e,s){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&s.indexOf(a)<0&&(l[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{var l,a,n,h,m,u,x,y,f,d,j,E,S;const{data:e,loading:s}=U(async()=>{var Y,P;const W=await $(),{flange:r,flangeDayAdded:p,flangeFinished:c,flangeUnFinished:C}=W,v=r.lastWeek?(r.thisWeek-r.lastWeek)/r.lastWeek*100:r.thisWeek?100:0,R=r.yesterday?(r.today-r.yesterday)/r.yesterday*100:r.today?100:0,O=_().startOf("day").unix(),A=[];if(p.data.length){const T=p.data.reduce((i,g)=>(i[g.date_str]=g.count,i),{});let o=(Y=p.data[0])==null?void 0:Y.date_unix;for(;o<=O;){const i=_.unix(o).format("YYYY-MM-DD");A.push(T[i]??0),o+=86400}}const M=[];if(c.data.length){const T=c.data.reduce((i,g)=>(i[g.date_str]=g.count,i),{});let o=(P=c.data[0])==null?void 0:P.date_unix;for(;o<=O;){const i=_.unix(o).format("YYYY-MM-DD");M.push(T[i]??0),o+=86400}}return{flange:{...r,weekRate:`${v.toFixed(0)}%`,weekRateStatus:v>0?"up":v<0?"down":void 0,dayRate:`${R.toFixed(0)}%`,dayRateStatus:R>0?"up":R<0?"down":void 0},flangeDayAdded:{...p,formatData:A},flangeFinished:{...c,formatData:M},flangeUnFinished:{...C,rate:C.unFinished/c.total}}});return t.jsxs(t.Fragment,{children:[t.jsx(F,{xs:20,sm:12,md:12,lg:6,xl:6,children:t.jsx(D,{title:"总大修量",actionText:"总大修量",loading:s,total:(l=e==null?void 0:e.flange)==null?void 0:l.total,suffix:"",footer:t.jsxs(t.Fragment,{children:["日均大修额",(a=e==null?void 0:e.flange)==null?void 0:a.avg]}),children:t.jsxs("div",{style:{height:60,display:"flex",flexDirection:"column-reverse"},children:[t.jsx(k,{title:"周环比",value:(n=e==null?void 0:e.flange)==null?void 0:n.weekRate,trend:(h=e==null?void 0:e.flange)==null?void 0:h.weekRateStatus}),t.jsx(k,{title:"日环比",value:(m=e==null?void 0:e.flange)==null?void 0:m.dayRate,trend:(u=e==null?void 0:e.flange)==null?void 0:u.dayRateStatus})]})})}),t.jsx(F,{xs:20,sm:12,md:12,lg:6,xl:6,children:t.jsx(D,{title:"已完成量",actionText:"已完成量",loading:s,total:(x=e==null?void 0:e.flangeFinished)==null?void 0:x.total,suffix:"",footer:t.jsxs(t.Fragment,{children:["日完成量",(y=e==null?void 0:e.flangeFinished)==null?void 0:y.today]}),children:t.jsx(I,{height:60,autoFit:!0,data:((f=e==null?void 0:e.flangeFinished)==null?void 0:f.formatData)??[],smooth:!0})})}),t.jsx(F,{xs:20,sm:12,md:12,lg:6,xl:6,children:t.jsx(D,{title:"每日进度数量",actionText:"每日进度数量",loading:s,total:(d=e==null?void 0:e.flangeDayAdded)==null?void 0:d.today,suffix:"",footer:t.jsx("div",{children:" "}),children:t.jsx(B,{height:60,autoFit:!0,columnWidthRatio:.2,data:((j=e==null?void 0:e.flangeDayAdded)==null?void 0:j.formatData)??[]})})}),t.jsx(F,{xs:20,sm:12,md:12,lg:6,xl:6,children:t.jsx(D,{title:"需要整改数量",actionText:"需要整改数量",loading:s,total:(E=e==null?void 0:e.flangeUnFinished)==null?void 0:E.unFinished,suffix:"",footer:t.jsx(k,{title:t.jsx(t.Fragment,{children:t.jsx(N,{id:"analysis.weekRatio"})}),value:"8.63%",trend:"down"}),children:t.jsx(V,{height:60,autoFit:!0,percent:((S=e==null?void 0:e.flangeUnFinished)==null?void 0:S.rate)??0,color:["#5B8FF9","#E8EDF3"]})})})]})};export{fe as default}; diff --git a/web/dist/assets/index-e3aca980.js b/web/dist/assets/index-e3aca980.js new file mode 100644 index 0000000000000000000000000000000000000000..757f6647f5a2505012cb308b85df2a7be6950cee --- /dev/null +++ b/web/dist/assets/index-e3aca980.js @@ -0,0 +1 @@ +import{b as l,g as z,m as D,a as F,bh as I,b3 as M,c7 as P,bj as _,c8 as H,c9 as L}from"./umi-5f6aeac9.js";const U=t=>{const{value:n,formatter:a,precision:e,decimalSeparator:o,groupSeparator:i="",prefixCls:u}=t;let r;if(typeof a=="function")r=a(n);else{const c=String(n),m=c.match(/^(-?)(\d*)(\.(\d+))?$/);if(!m||c==="-")r=c;else{const p=m[1];let f=m[2]||"0",s=m[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof e=="number"&&(s=s.padEnd(e,"0").slice(0,e>0?e:0)),s&&(s=`${o}${s}`),r=[l.createElement("span",{key:"int",className:`${u}-content-value-int`},p,f),s&&l.createElement("span",{key:"decimal",className:`${u}-content-value-decimal`},s)]}}return l.createElement("span",{className:`${u}-content-value`},r)},V=U,A=t=>{const{componentCls:n,marginXXS:a,padding:e,colorTextDescription:o,titleFontSize:i,colorTextHeading:u,contentFontSize:r,fontFamily:c}=t;return{[n]:Object.assign(Object.assign({},F(t)),{[`${n}-title`]:{marginBottom:a,color:o,fontSize:i},[`${n}-skeleton`]:{paddingTop:e},[`${n}-content`]:{color:u,fontSize:r,fontFamily:c,[`${n}-content-value`]:{display:"inline-block",direction:"ltr"},[`${n}-content-prefix, ${n}-content-suffix`]:{display:"inline-block"},[`${n}-content-prefix`]:{marginInlineEnd:a},[`${n}-content-suffix`]:{marginInlineStart:a}}})}},B=t=>{const{fontSizeHeading3:n,fontSize:a}=t;return{titleFontSize:a,contentFontSize:n}},X=z("Statistic",t=>{const n=D(t,{});return[A(n)]},B);var Y=globalThis&&globalThis.__rest||function(t,n){var a={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(a[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,e=Object.getOwnPropertySymbols(t);o{const{prefixCls:n,className:a,rootClassName:e,style:o,valueStyle:i,value:u=0,title:r,valueRender:c,prefix:m,suffix:p,loading:f=!1,formatter:s,precision:g,decimalSeparator:S=".",groupSeparator:b=",",onMouseEnter:x,onMouseLeave:O}=t,E=Y(t,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:$,direction:C,className:h,style:N}=I("statistic"),d=$("statistic",n),[w,T,j]=X(d),v=l.createElement(V,{decimalSeparator:S,groupSeparator:b,prefixCls:d,formatter:s,precision:g,value:u}),k=M(d,{[`${d}-rtl`]:C==="rtl"},h,a,e,T,j),R=P(E,{aria:!0,data:!0});return w(l.createElement("div",Object.assign({},R,{className:k,style:Object.assign(Object.assign({},N),o),onMouseEnter:x,onMouseLeave:O}),r&&l.createElement("div",{className:`${d}-title`},r),l.createElement(_,{paragraph:!1,loading:f,className:`${d}-skeleton`},l.createElement("div",{style:i,className:`${d}-content`},m&&l.createElement("span",{className:`${d}-content-prefix`},m),c?c(v):v,p&&l.createElement("span",{className:`${d}-content-suffix`},p)))))},y=q,G=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function J(t,n){let a=t;const e=/\[[^\]]*]/g,o=(n.match(e)||[]).map(c=>c.slice(1,-1)),i=n.replace(e,"[]"),u=G.reduce((c,m)=>{let[p,f]=m;if(c.includes(p)){const s=Math.floor(a/f);return a-=s*f,c.replace(new RegExp(`${p}+`,"g"),g=>{const S=g.length;return s.toString().padStart(S,"0")})}return c},i);let r=0;return u.replace(e,()=>{const c=o[r];return r+=1,c})}function K(t,n){const{format:a=""}=n,e=new Date(t).getTime(),o=Date.now(),i=Math.max(e-o,0);return J(i,a)}var Q=globalThis&&globalThis.__rest||function(t,n){var a={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(a[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,e=Object.getOwnPropertySymbols(t);o{const{value:n,format:a="HH:mm:ss",onChange:e,onFinish:o}=t,i=Q(t,["value","format","onChange","onFinish"]),u=H(),r=l.useRef(null),c=()=>{o==null||o(),r.current&&(clearInterval(r.current),r.current=null)},m=()=>{const s=Z(n);s>=Date.now()&&(r.current=setInterval(()=>{u(),e==null||e(s-Date.now()),s(m(),()=>{r.current&&(clearInterval(r.current),r.current=null)}),[n]);const p=(s,g)=>K(s,Object.assign(Object.assign({},g),{format:a})),f=s=>L(s,{title:void 0});return l.createElement(y,Object.assign({},i,{value:n,valueRender:f,formatter:p}))},te=l.memo(ee);y.Countdown=te;export{y as S}; diff --git a/web/dist/assets/index-e675681e.js b/web/dist/assets/index-e675681e.js deleted file mode 100644 index 0f55de3456a35574dae35c34a279af22e859dac0..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-e675681e.js +++ /dev/null @@ -1 +0,0 @@ -import{r as u,bs as S,bt as v,bu as j,X as p,aN as C,bv as w,j as e,S as _,B as g,e as N,f as b,a8 as O,V as c}from"./umi-2ee4055f.js";import{C as T}from"./index-8a549704.js";import D from"./ColumnsFrom-ac6d1d17.js";import J from"./CrudFrom-6a26468a.js";import P from"./DragSort-b8e643ec.js";import k from"./Preview-7dabcd9c.js";import F from"./TableConfigContext-e116ad0a.js";import I,{defaultTableSetting as A}from"./TableSetting-c5f56375.js";import{buildColumns as E}from"./utils-b63e8c97.js";import"./index-275c5384.js";import"./defaultSql-5ae6b172.js";import"./index-8ec65540.js";import"./index-e10ebcfa.js";import"./index-d81f4240.js";import"./Table-3849f584.js";import"./Table-0e254f81.js";import"./styleChecker-0860b7b3.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./index-8b7fb289.js";import"./index-ea2ed5fc.js";import"./ActionButton-a9da0b15.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-1c416090.js";import"./table-c83b9d9d.js";import"./RouteContext-8fa10ad2.js";function B(n){return j(n[Symbol.asyncIterator])}function K(n,m){u.useEffect(function(){var a=n(),t=!1;function l(){return S(this,void 0,void 0,function(){var s;return v(this,function(i){switch(i.label){case 0:if(!B(a))return[3,4];i.label=1;case 1:return[4,a.next()];case 2:return s=i.sent(),s.done||t?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,a];case 5:i.sent(),i.label=6;case 6:return[2]}})})}return l(),function(){t=!0}},m)}async function R(n){return p("/admin/online.online_table/saveData",{method:"post",data:n})}async function q(n){return p("/admin/online.online_table/getData",{method:"get",params:n})}async function G(n){return p("/admin/online.online_table/crud",{method:"post",data:n})}const Ne=()=>{const n=C(),[m]=w(),a=m.get("id");if(!a){n("/online/table",{replace:!0});return}const[t,l]=u.useState({tableSetting:A,crudConfig:{name:"TableName",controllerPath:"",modelPath:"",validatePath:"",pagePath:""},columns:[],id:a});K(async()=>{let{data:{data:r}}=await q({id:t.id}),o,d,f;if(typeof r.columns=="string"&&typeof r.table_config=="string"&&typeof r.crud_config=="string")try{o=JSON.parse(r.columns),d=JSON.parse(r.table_config),f=JSON.parse(r.crud_config),l({...t,columns:E(o),tableSetting:d,crudConfig:f})}catch{c.warning("数据不是有效 JSON")}else c.warning("数据不是有效 JSON")},[]);const s=()=>{if(!t.id){c.warning("在线开发ID不存在");return}let r={id:t.id,columns:JSON.stringify(t.columns),table_config:JSON.stringify(t.tableSetting),crud_config:JSON.stringify(t.crudConfig)};R(r).then(o=>{o.success&&c.success("保存成功!")})},i=()=>{s();let r={...t.tableSetting};delete r.paginationShow,delete r.searchShow,delete r.optionsShow;let o={id:t.id,columns:t.columns,table_config:r,crud_config:t.crudConfig};G(o).then(d=>{d.success&&c.success("代码生成成功!")})},[h,x]=u.useState("1"),y=[{key:"1",label:"表格配置",children:e.jsx(I,{})},{key:"2",label:"字段配置",children:e.jsxs(e.Fragment,{children:[e.jsx(P,{}),e.jsx(D,{})]})}];return e.jsx(F.Provider,{value:{tableConfig:t,setTableConfig:l},children:e.jsx(T,{title:"表格开发",styles:{body:{padding:0}},extra:e.jsx(e.Fragment,{children:e.jsxs(_,{children:[e.jsx(g,{onClick:s,type:"primary",children:"保存编辑"}),e.jsx(g,{onClick:i,type:"primary",children:"保存并生成代码"})]})}),children:e.jsxs(N,{children:[e.jsx(b,{span:6,style:{padding:"10px 20px"},children:e.jsx(O,{defaultActiveKey:"1",style:{marginBottom:32},items:y,activeKey:h,onChange:x})}),e.jsxs(b,{span:18,style:{overflow:"auto"},children:[e.jsxs("div",{style:{padding:"20px 20px",borderLeft:"1px solid #efefef"},children:[e.jsx(J,{}),e.jsx("div",{style:{marginTop:10,display:"flex",flexDirection:"row-reverse"}})]}),e.jsx("div",{style:{padding:20,background:"#efefef"},children:e.jsx(k,{})})]})]})})})};export{Ne as default}; diff --git a/web/dist/assets/index-e7fd596a.js b/web/dist/assets/index-e7fd596a.js deleted file mode 100644 index b2224327338f23a95b4fbceec21b22a86cd7c720..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-e7fd596a.js +++ /dev/null @@ -1 +0,0 @@ -import{k as ae,aV as q,K as D,_ as d,r as s,cg as se,ch as ye,R as J,b6 as Pe,ce as we,bi as Me,bp as ze,ci as Oe,cj as Ae,ck as Te,T as We,n as Be,j as m,v as Le,b8 as Ve,w as Re,x as ie,aU as He,ae as Ke,O as Ne,C as Ge,l as me,a_ as Qe,o as Ue,b5 as Se,cl as Xe,aX as de,B as fe,S as qe,e as ve,f as re,bQ as Je,cc as Ye}from"./umi-2ee4055f.js";import{u as Ze}from"./index-e10ebcfa.js";var et=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function Ce(e){return typeof e=="string"}function Fe(e){var a,n=e.className,t=e.prefixCls,c=e.style,N=e.active,f=e.status,r=e.iconPrefix,l=e.icon;e.wrapperStyle;var b=e.stepNumber,F=e.disabled,v=e.description,S=e.title,_=e.subTitle,P=e.progressDot,L=e.stepIcon,H=e.tailContent,g=e.icons,T=e.stepIndex,x=e.onStepClick,R=e.onClick,j=e.render,Q=ae(e,et),W=!!x&&!F,h={};W&&(h.role="button",h.tabIndex=0,h.onClick=function(k){R==null||R(k),x(T)},h.onKeyDown=function(k){var $=k.which;($===ye.ENTER||$===ye.SPACE)&&x(T)});var K=function(){var $,p,u=q("".concat(t,"-icon"),"".concat(r,"icon"),($={},D($,"".concat(r,"icon-").concat(l),l&&Ce(l)),D($,"".concat(r,"icon-check"),!l&&f==="finish"&&(g&&!g.finish||!g)),D($,"".concat(r,"icon-cross"),!l&&f==="error"&&(g&&!g.error||!g)),$)),z=s.createElement("span",{className:"".concat(t,"-icon-dot")});return P?typeof P=="function"?p=s.createElement("span",{className:"".concat(t,"-icon")},P(z,{index:b-1,status:f,title:S,description:v})):p=s.createElement("span",{className:"".concat(t,"-icon")},z):l&&!Ce(l)?p=s.createElement("span",{className:"".concat(t,"-icon")},l):g&&g.finish&&f==="finish"?p=s.createElement("span",{className:"".concat(t,"-icon")},g.finish):g&&g.error&&f==="error"?p=s.createElement("span",{className:"".concat(t,"-icon")},g.error):l||f==="finish"||f==="error"?p=s.createElement("span",{className:u}):p=s.createElement("span",{className:"".concat(t,"-icon")},b),L&&(p=L({index:b-1,status:f,title:S,description:v,node:p})),p},O=f||"wait",V=q("".concat(t,"-item"),"".concat(t,"-item-").concat(O),n,(a={},D(a,"".concat(t,"-item-custom"),l),D(a,"".concat(t,"-item-active"),N),D(a,"".concat(t,"-item-disabled"),F===!0),a)),w=d({},c),M=s.createElement("div",se({},Q,{className:V,style:w}),s.createElement("div",se({onClick:R},h,{className:"".concat(t,"-item-container")}),s.createElement("div",{className:"".concat(t,"-item-tail")},H),s.createElement("div",{className:"".concat(t,"-item-icon")},K()),s.createElement("div",{className:"".concat(t,"-item-content")},s.createElement("div",{className:"".concat(t,"-item-title")},S,_&&s.createElement("div",{title:typeof _=="string"?_:void 0,className:"".concat(t,"-item-subtitle")},_)),v&&s.createElement("div",{className:"".concat(t,"-item-description")},v))));return j&&(M=j(M)||null),M}var tt=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function pe(e){var a,n=e.prefixCls,t=n===void 0?"rc-steps":n,c=e.style,N=c===void 0?{}:c,f=e.className;e.children;var r=e.direction,l=r===void 0?"horizontal":r,b=e.type,F=b===void 0?"default":b,v=e.labelPlacement,S=v===void 0?"horizontal":v,_=e.iconPrefix,P=_===void 0?"rc":_,L=e.status,H=L===void 0?"process":L,g=e.size,T=e.current,x=T===void 0?0:T,R=e.progressDot,j=R===void 0?!1:R,Q=e.stepIcon,W=e.initial,h=W===void 0?0:W,K=e.icons,O=e.onChange,V=e.itemRender,w=e.items,M=w===void 0?[]:w,k=ae(e,tt),$=F==="navigation",p=F==="inline",u=p||j,z=p?"horizontal":l,G=p?void 0:g,Y=u?"vertical":S,oe=q(t,"".concat(t,"-").concat(z),f,(a={},D(a,"".concat(t,"-").concat(G),G),D(a,"".concat(t,"-label-").concat(Y),z==="horizontal"),D(a,"".concat(t,"-dot"),!!u),D(a,"".concat(t,"-navigation"),$),D(a,"".concat(t,"-inline"),p),a)),ce=function(A){O&&x!==A&&O(A)},le=function(A,X){var E=d({},A),B=h+X;return H==="error"&&X===x-1&&(E.className="".concat(t,"-next-error")),E.status||(B===x?E.status=H:Ba)}function rt(e,a){if(e)return e;const n=Pe(a).map(t=>{if(s.isValidElement(t)){const{props:c}=t;return Object.assign({},c)}return null});return nt(n)}var st=globalThis&&globalThis.__rest||function(e,a){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,t=Object.getOwnPropertySymbols(e);c{const{percent:a,size:n,className:t,rootClassName:c,direction:N,items:f,responsive:r=!0,current:l=0,children:b,style:F}=e,v=st(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:S}=we(r),{getPrefixCls:_,direction:P,className:L,style:H}=Me("steps"),g=s.useMemo(()=>r&&S?"vertical":N,[S,N]),T=ze(n),x=_("steps",e.prefixCls),[R,j,Q]=Ze(x),W=e.type==="inline",h=_("",e.iconPrefix),K=rt(f,b),O=W?void 0:a,V=Object.assign(Object.assign({},H),F),w=q(L,{[`${x}-rtl`]:P==="rtl",[`${x}-with-progress`]:O!==void 0},t,c,j,Q),M={finish:s.createElement(Oe,{className:`${x}-finish-icon`}),error:s.createElement(Ae,{className:`${x}-error-icon`})},k=p=>{let{node:u,status:z}=p;if(z==="process"&&O!==void 0){const G=T==="small"?32:40;return s.createElement("div",{className:`${x}-progress-icon`},s.createElement(Te,{type:"circle",percent:O,size:G,strokeWidth:4,format:()=>null}),u)}return u},$=(p,u)=>p.description?s.createElement(We,{title:p.description},u):u;return R(s.createElement(pe,Object.assign({icons:M},v,{style:V,current:l,size:T,items:K,itemRender:W?$:void 0,stepIcon:k,direction:g,prefixCls:x,iconPrefix:h,className:w})))};je.Step=pe.Step;const be=je;var it=["onFinish","step","formRef","title","stepProps"];function at(e){var a=s.useRef(),n=s.useContext(ke),t=s.useContext(Ee),c=d(d({},e),t),N=c.onFinish,f=c.step,r=c.formRef;c.title,c.stepProps;var l=ae(c,it);return Be(!l.submitter,"StepForm 不包含提交按钮,请在 StepsForm 上"),s.useImperativeHandle(r,function(){return a.current},[r==null?void 0:r.current]),s.useEffect(function(){if(c.name||c.step){var b=(c.name||c.step).toString();return n==null||n.regForm(b,c),function(){n==null||n.unRegForm(b)}}},[]),n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[f||0]=a),m.jsx(Le,d({formRef:a,onFinish:function(){var b=Re(ie().mark(function F(v){var S;return ie().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(l.name&&(n==null||n.onFormFinish(l.name,v)),!N){P.next=9;break}return n==null||n.setLoading(!0),P.next=5,N==null?void 0:N(v);case 5:return S=P.sent,S&&(n==null||n.next()),n==null||n.setLoading(!1),P.abrupt("return");case 9:n!=null&&n.lastStep||n==null||n.next();case 10:case"end":return P.stop()}},F)}));return function(F){return b.apply(this,arguments)}}(),onInit:function(F,v){var S;a.current=v,n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[f||0]=a),l==null||(S=l.onInit)===null||S===void 0||S.call(l,F,v)},layout:"vertical"},Ve(l,["layoutType","columns"])))}var ot=function(a){return D({},a.componentCls,{"&-container":{width:"max-content",minWidth:"420px",maxWidth:"100%",margin:"auto"},"&-steps-container":D({maxWidth:"1160px",margin:"auto"},"".concat(a.antCls,"-steps-vertical"),{height:"100%"}),"&-step":{display:"none",marginBlockStart:"32px","&-active":{display:"block"},"> form":{maxWidth:"100%"}}})};function ct(e){return He("StepsForm",function(a){var n=d(d({},a),{},{componentCls:".".concat(e)});return[ot(n)]})}var lt=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef","layoutRender"],ke=J.createContext(void 0),ut={horizontal:function(a){var n=a.stepsDom,t=a.formDom;return m.jsxs(m.Fragment,{children:[m.jsx(ve,{gutter:{xs:8,sm:16,md:24},children:m.jsx(re,{span:24,children:n})}),m.jsx(ve,{gutter:{xs:8,sm:16,md:24},children:m.jsx(re,{span:24,children:t})})]})},vertical:function(a){var n=a.stepsDom,t=a.formDom;return m.jsxs(ve,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[m.jsx(re,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:J.cloneElement(n,{style:{height:"100%"}})}),m.jsx(re,{children:m.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:t})})]})}},Ee=J.createContext(null);function mt(e){var a=s.useContext(Ge.ConfigContext),n=a.getPrefixCls,t=n("pro-steps-form"),c=ct(t),N=c.wrapSSR,f=c.hashId;e.current,e.onCurrentChange;var r=e.submitter,l=e.stepsFormRender,b=e.stepsRender,F=e.stepFormRender,v=e.stepsProps,S=e.onFinish,_=e.formProps,P=e.containerStyle,L=e.formRef,H=e.formMapRef,g=e.layoutRender,T=ae(e,lt),x=s.useRef(new Map),R=s.useRef(new Map),j=s.useRef([]),Q=s.useState([]),W=me(Q,2),h=W[0],K=W[1],O=s.useState(!1),V=me(O,2),w=V[0],M=V[1],k=Qe(),$=Ue(0,{value:e.current,onChange:e.onCurrentChange}),p=me($,2),u=p[0],z=p[1],G=s.useMemo(function(){return ut[(v==null?void 0:v.direction)||"horizontal"]},[v==null?void 0:v.direction]),Y=s.useMemo(function(){return u===h.length-1},[h.length,u]),oe=s.useCallback(function(i,o){R.current.has(i)||K(function(C){return[].concat(Se(C),[i])}),R.current.set(i,o)},[]),ce=s.useCallback(function(i){K(function(o){return o.filter(function(C){return C!==i})}),R.current.delete(i),x.current.delete(i)},[]);s.useImperativeHandle(H,function(){return j.current},[j.current]),s.useImperativeHandle(L,function(){var i;return(i=j.current[u||0])===null||i===void 0?void 0:i.current},[u,j.current]);var le=s.useCallback(function(){var i=Re(ie().mark(function o(C,y){var te,ne;return ie().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(x.current.set(C,y),!(!Y||!S)){I.next=3;break}return I.abrupt("return");case 3:return M(!0),te=Je.apply(void 0,[{}].concat(Se(Array.from(x.current.values())))),I.prev=5,I.next=8,S(te);case 8:ne=I.sent,ne&&(z(0),j.current.forEach(function(De){var ue;return(ue=De.current)===null||ue===void 0?void 0:ue.resetFields()})),I.next=15;break;case 12:I.prev=12,I.t0=I.catch(5),console.log(I.t0);case 15:return I.prev=15,M(!1),I.finish(15);case 18:case"end":return I.stop()}},o,null,[[5,12,15,18]])}));return function(o,C){return i.apply(this,arguments)}}(),[Y,S,M,z]),U=s.useMemo(function(){var i=Xe(Ye,"4.24.0")>-1,o=i?{items:h.map(function(C){var y=R.current.get(C);return d({key:C,title:y==null?void 0:y.title},y==null?void 0:y.stepProps)})}:{};return m.jsx("div",{className:"".concat(t,"-steps-container ").concat(f).trim(),style:{maxWidth:Math.min(h.length*320,1160)},children:m.jsx(be,d(d(d({},v),o),{},{current:u,onChange:void 0,children:!i&&h.map(function(C){var y=R.current.get(C);return m.jsx(be.Step,d({title:y==null?void 0:y.title},y==null?void 0:y.stepProps),C)})}))})},[h,f,t,u,v]),A=de(function(){var i,o=j.current[u];(i=o.current)===null||i===void 0||i.submit()}),X=de(function(){u<1||z(u-1)}),E=s.useMemo(function(){return r!==!1&&m.jsx(fe,d(d({type:"primary",loading:w},r==null?void 0:r.submitButtonProps),{},{onClick:function(){var o;r==null||(o=r.onSubmit)===null||o===void 0||o.call(r),A()},children:k.getMessage("stepsForm.next","下一步")}),"next")},[k,w,A,r]),B=s.useMemo(function(){return r!==!1&&m.jsx(fe,d(d({},r==null?void 0:r.resetButtonProps),{},{onClick:function(){var o;X(),r==null||(o=r.onReset)===null||o===void 0||o.call(r)},children:k.getMessage("stepsForm.prev","上一步")}),"pre")},[k,X,r]),Z=s.useMemo(function(){return r!==!1&&m.jsx(fe,d(d({type:"primary",loading:w},r==null?void 0:r.submitButtonProps),{},{onClick:function(){var o;r==null||(o=r.onSubmit)===null||o===void 0||o.call(r),A()},children:k.getMessage("stepsForm.submit","提交")}),"submit")},[k,w,A,r]),_e=de(function(){u>h.length-2||z(u+1)}),ee=s.useMemo(function(){var i=[],o=u||0;if(o<1?h.length===1?i.push(Z):i.push(E):o+1===h.length?i.push(B,Z):i.push(B,E),i=i.filter(J.isValidElement),r&&r.render){var C,y={form:(C=j.current[u])===null||C===void 0?void 0:C.current,onSubmit:A,step:u,onPre:X};return r.render(y,i)}return r&&(r==null?void 0:r.render)===!1?null:i},[h.length,E,A,B,X,u,Z,r]),he=s.useMemo(function(){return Pe(e.children).map(function(i,o){var C=i.props,y=C.name||"".concat(o),te=u===o,ne=te?{contentRender:F,submitter:!1}:{};return m.jsx("div",{className:q("".concat(t,"-step"),f,D({},"".concat(t,"-step-active"),te)),children:m.jsx(Ee.Provider,{value:d(d(d(d({},ne),_),C),{},{name:y,step:o}),children:i})},y)})},[_,f,t,e.children,u,F]),ge=s.useMemo(function(){return b?b(h.map(function(i){var o;return{key:i,title:(o=R.current.get(i))===null||o===void 0?void 0:o.title}}),U):U},[h,U,b]),xe=s.useMemo(function(){return m.jsxs("div",{className:"".concat(t,"-container ").concat(f).trim(),style:P,children:[he,l?null:m.jsx(qe,{children:ee})]})},[P,he,f,t,l,ee]),$e=s.useMemo(function(){var i={stepsDom:ge,formDom:xe};return l?l(g?g(i):G(i),ee):g?g(i):G(i)},[ge,xe,G,l,ee,g]);return N(m.jsx("div",{className:q(t,f),children:m.jsx(Ne.Provider,d(d({},T),{},{children:m.jsx(ke.Provider,{value:{loading:w,setLoading:M,regForm:oe,keyArray:h,next:_e,formArrayRef:j,formMapRef:R,lastStep:Y,unRegForm:ce,onFormFinish:le},children:$e})}))}))}function Ie(e){return m.jsx(Ke,{needDeps:!0,children:m.jsx(mt,d({},e))})}Ie.StepForm=at;Ie.useForm=Ne.useForm;export{Ie as S}; diff --git a/web/dist/assets/index-e8d9f15a.js b/web/dist/assets/index-e8d9f15a.js new file mode 100644 index 0000000000000000000000000000000000000000..2e8a3a09c34483ca49ec47fdf9b933f9b3b3a79e --- /dev/null +++ b/web/dist/assets/index-e8d9f15a.js @@ -0,0 +1 @@ +import{Y as g,ax as b,b as j,j as e,B as n,ay as y,a1 as a}from"./umi-5f6aeac9.js";import{M as T}from"./index-d045d7e9.js";import{P as F}from"./index-3fcbb702.js";import{Q as R,I as v,g as A}from"./config-ac5a809b.js";import{X as S}from"./index-109f15ec.js";import{d as k}from"./table-0fa6c309.js";import{e as Q}from"./flange-f16cbc3a.js";import{u as l}from"./useListAll-790074c1.js";import"./ActionButton-ff803f23.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const c="/flangeQrcode",w=A(),le=()=>{g("dictModel"),l({api:"/project/list"}),l({api:"/device/list"});const m=[{title:"法兰二维码ID",dataIndex:"id",hideInForm:!0,hideInTable:!0,hideInSearch:!0},{title:"QRCODE编号",dataIndex:"code",hideInForm:!0,hideInSearch:!0},{title:"法兰编号",dataIndex:"flange_code",hideInForm:!0},{title:"装置名称",dataIndex:"device_name",hideInForm:!0,hideInSearch:!0},{title:"批次",key:"table.batch_name",dataIndex:"batch_name",hideInSearch:!0,hideInForm:!0},{title:"批次名称",dataIndex:"batch_name",hideInSearch:!0,hideInTable:!0,colProps:{span:16}},{title:"数量",dataIndex:"count",hideInSearch:!0,hideInTable:!0,valueType:"digit",colProps:{span:16},fieldProps:{style:{width:"100%"}}},{title:"状态",dataIndex:"status",hideInForm:!0,valueType:"radio",valueEnum:new Map([[1,{text:"绑定"}],[0,{text:"未绑定"}]])},{valueType:"dateTime",title:"更新时间",hideInForm:!0,hideInSearch:!0,dataIndex:"update_time"}],p=b(),d=j.useRef(),u=async t=>{const o=a.loading("正在删除");if(!t){a.warning("请选择需要删除的节点");return}let f=t.map(i=>i.id);k(c+"/delete",{ids:f.join()||""}).then(i=>{var r,s;i.success?(a.success(i.msg),(s=(r=d.current)==null?void 0:r.reloadAndRest)==null||s.call(r)):a.warning(i.msg)}).finally(()=>o())},[h,x]=T.useModal(),I=t=>{h.info({title:"二维码",icon:null,content:e.jsx(R,{errorLevel:"H",value:`${w}/#/pages/flange/detail/detail?qrcode=${t}`,icon:v,size:256,style:{margin:"auto"}}),okText:"关闭"})};return e.jsxs(e.Fragment,{children:[x,e.jsx(S,{headerTitle:"法兰二维码列表",tableApi:c,columns:m,accessName:"flange.qrcode",actionRef:d,editShow:!1,addApi:"/flangeQrcode/batchGenerate",addText:"批量创建",toolBarRender:(t,o)=>[e.jsx(n,{type:"primary",onClick:()=>Q(o.selectedRowKeys.join(",")),children:"导出"},"export")],operateRender:t=>e.jsxs(e.Fragment,{children:[e.jsx(y,{accessible:p.buttonAccess("flangeqrcode.delete"),children:e.jsx(F,{title:"删除",description:"你确定要删除这条数据吗?",onConfirm:()=>{u([t])},okText:"确认",cancelText:"取消",children:e.jsx(n,{type:"link",danger:!0,children:"删除"})})}),e.jsx(n,{type:"link",onClick:()=>I(t.code),children:"二维码"})]})})]})};export{le as default}; diff --git a/web/dist/assets/index-d28fa083.js b/web/dist/assets/index-ed47aa9b.js similarity index 59% rename from web/dist/assets/index-d28fa083.js rename to web/dist/assets/index-ed47aa9b.js index 48e733c44ff6d9ca7b8a14bdd16906ca74b2b1a3..e3560490af55187dfe25618e10580cf1b2780211 100644 --- a/web/dist/assets/index-d28fa083.js +++ b/web/dist/assets/index-ed47aa9b.js @@ -1 +1 @@ -import{j as t}from"./umi-2ee4055f.js";import{C as i}from"./index-8a549704.js";import r from"./index-2e4df2d6.js";import{S as s}from"./index-7b54423a.js";import"./index-275c5384.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-426be59b.js";const{Divider:e}=s,j=()=>t.jsx(r,{children:t.jsx(i,{children:t.jsxs(s.Group,{title:t.jsx("h3",{children:"我的代办"}),children:[t.jsx(s,{statistic:{title:"全部",tip:"帮助文字",value:10}}),t.jsx(e,{}),t.jsx(s,{statistic:{title:"已处理消息",value:5,status:"default"}}),t.jsx(s,{statistic:{title:"待处理消息",value:3,status:"processing"}}),t.jsx(s,{statistic:{title:"警告消息",value:2,status:"error"}}),t.jsx(s,{statistic:{title:"系统通知",value:"-",status:"success"}})]})})});export{j as default}; +import{j as t}from"./umi-5f6aeac9.js";import{C as i}from"./index-55d2ebbc.js";import r from"./index-6683018b.js";import{S as s}from"./index-7b6639e6.js";import"./index-13cae3f4.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-e3aca980.js";const{Divider:e}=s,j=()=>t.jsx(r,{children:t.jsx(i,{children:t.jsxs(s.Group,{title:t.jsx("h3",{children:"我的代办"}),children:[t.jsx(s,{statistic:{title:"全部",tip:"帮助文字",value:10}}),t.jsx(e,{}),t.jsx(s,{statistic:{title:"已处理消息",value:5,status:"default"}}),t.jsx(s,{statistic:{title:"待处理消息",value:3,status:"processing"}}),t.jsx(s,{statistic:{title:"警告消息",value:2,status:"error"}}),t.jsx(s,{statistic:{title:"系统通知",value:"-",status:"success"}})]})})});export{j as default}; diff --git a/web/dist/assets/index-ee353394.js b/web/dist/assets/index-ee353394.js new file mode 100644 index 0000000000000000000000000000000000000000..2cea6ecd609fef6fa7d28906cc56693d0484d66c --- /dev/null +++ b/web/dist/assets/index-ee353394.js @@ -0,0 +1 @@ +import{a$ as p,b as C,j as i,ad as S,aO as r,ae as j,b8 as k,Z as l,$ as c,R as s}from"./umi-5f6aeac9.js";import{M as y}from"./index-d045d7e9.js";const A=Object.keys(p).map(e=>e.replace(/(Outlined|Filled|TwoTone)$/,"")).filter((e,o,u)=>u.indexOf(e)===o),B=["StepBackward","StepForward","FastBackward","FastForward","Shrink","ArrowsAlt","Down","Up","Left","Right","CaretUp","CaretDown","CaretLeft","CaretRight","UpCircle","DownCircle","LeftCircle","RightCircle","DoubleRight","DoubleLeft","VerticalLeft","VerticalRight","VerticalAlignTop","VerticalAlignMiddle","VerticalAlignBottom","Forward","Backward","Rollback","Enter","Retweet","Swap","SwapLeft","SwapRight","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PlayCircle","UpSquare","DownSquare","LeftSquare","RightSquare","Login","Logout","MenuFold","MenuUnfold","BorderBottom","BorderHorizontal","BorderInner","BorderOuter","BorderLeft","BorderRight","BorderTop","BorderVerticle","PicCenter","PicLeft","PicRight","RadiusBottomleft","RadiusBottomright","RadiusUpleft","RadiusUpright","Fullscreen","FullscreenExit"],R=["Question","QuestionCircle","Plus","PlusCircle","Pause","PauseCircle","Minus","MinusCircle","PlusSquare","MinusSquare","Info","InfoCircle","Exclamation","ExclamationCircle","Close","CloseCircle","CloseSquare","Check","CheckCircle","CheckSquare","ClockCircle","Warning","IssuesClose","Stop"],z=["Edit","Form","Copy","Scissor","Delete","Snippets","Diff","Highlight","AlignCenter","AlignLeft","AlignRight","BgColors","Bold","Italic","Underline","Strikethrough","Redo","Undo","ZoomIn","ZoomOut","FontColors","FontSize","LineHeight","Dash","SmallDash","SortAscending","SortDescending","Drag","OrderedList","UnorderedList","RadiusSetting","ColumnWidth","ColumnHeight"],F=["AreaChart","PieChart","BarChart","DotChart","LineChart","RadarChart","HeatMap","Fall","Rise","Stock","BoxPlot","Fund","Sliders"],D=["Android","Apple","Windows","Ie","Chrome","Github","Aliwangwang","Dingding","WeiboSquare","WeiboCircle","TaobaoCircle","Html5","Weibo","Twitter","Wechat","WhatsApp","Youtube","AlipayCircle","Taobao","Dingtalk","Skype","Qq","MediumWorkmark","Gitlab","Medium","Linkedin","GooglePlus","Dropbox","Facebook","Codepen","CodeSandbox","CodeSandboxCircle","Amazon","Google","CodepenCircle","Alipay","AntDesign","AntCloud","Aliyun","Zhihu","Slack","SlackSquare","Behance","BehanceSquare","Dribbble","DribbbleSquare","Instagram","Yuque","Alibaba","Yahoo","Reddit","Sketch"],I=["icon-guanzhu","icon-hulve","icon-fuwuqi","icon-daishenhe","icon-zhongduan","icon-hexinzichan","icon-yishenhe","icon-wangluoshebei","icon-quanbuzichan","icon-gongjizhe","icon-shouhaizhe","icon-zhongwei","icon-gaowei","icon-diwei","icon-daichuzhishijianzongshu","icon-wakuang","icon-shijianzongshu","icon-shixianzhujigeshu","icon-APTshijian","icon-yichangliuliang","icon-jiangshizhuji","icon-weixieqingbao","icon-eyichengxu","icon-siyoudizhi","icon-WEBweihu","icon-zhenchagenzong","icon-wuqigoujian","icon-zaihetoudi","icon-loudongliyong","icon-anzhuangzhiru","icon-minglingyukongzhi","icon-mubiaodacheng","icon-henjiqingli"],g={direction:B,suggestion:R,editor:z,data:F,logo:D,use:I,all:A},t=p,h=e=>{let o=g[e].map(n=>n+"Filled").filter(n=>t[n]),u=g[e].map(n=>n+"Outlined").filter(n=>t[n]);return[...o,...u]};let L=k({scriptUrl:"//at.alicdn.com/t/c/font_4413039_4ep4ccllu9b.js"});const x=(e,o="icon-")=>typeof e=="string"&&e!==""&&e.startsWith(o)?i.jsx(L,{type:e,className:e}):e,q=[{key:"use",label:"自定义图标",children:i.jsx(l,{gutter:[10,10],style:{maxHeight:400,overflow:"auto"},children:g.use.map((e,o)=>i.jsx(c,{children:i.jsx(r.Button,{value:e,children:x(e)})},o))})},{key:"suggestion",label:"网站通用图标",children:i.jsx(l,{gutter:[10,10],style:{maxHeight:400,overflow:"auto"},children:h("suggestion").map((e,o)=>i.jsx(c,{children:i.jsx(r.Button,{value:e,children:s.createElement(t[e])})},o))})},{key:"direction",label:"方向性图标",children:i.jsx(l,{gutter:[10,10],style:{maxHeight:400,overflow:"auto"},children:h("direction").map((e,o)=>i.jsx(c,{children:i.jsx(r.Button,{value:e,children:s.createElement(t[e])})},o))})},{key:"editor",label:"编辑类图标",children:i.jsx(l,{gutter:[10,10],style:{maxHeight:400,overflow:"auto"},children:h("editor").map((e,o)=>i.jsx(c,{children:i.jsx(r.Button,{value:e,children:s.createElement(t[e])})},o))})},{key:"data",label:"数据类图标",children:i.jsx(l,{gutter:[10,10],style:{maxHeight:400,overflow:"auto"},children:h("data").map((e,o)=>i.jsx(c,{children:i.jsx(r.Button,{value:e,children:s.createElement(t[e])})},o))})},{key:"logo",label:"品牌和标识",children:i.jsx(l,{gutter:[10,10],style:{maxHeight:400,overflow:"auto"},children:h("logo").map((e,o)=>i.jsx(c,{children:i.jsx(r.Button,{value:e,children:s.createElement(t[e])})},o))})}],P=e=>{const{value:o,form:u,dataIndex:n}=e,[m,d]=C.useState(!1),[f,w]=C.useState(""),b=a=>t[a]?s.createElement(t[a],{onClick:()=>d(!0)}):g.use.includes(a)?i.jsx("span",{onClick:()=>d(!0),children:x(a)}):i.jsx("span",{onClick:()=>d(!0),children:"请选择"});return i.jsxs(i.Fragment,{children:[i.jsx(S,{addonAfter:b(o),value:o}),i.jsx(y,{open:m,onCancel:()=>d(!1),width:680,onOk:()=>{u.setFieldValue(n,f),d(!1)},children:i.jsx(r.Group,{optionType:"button",buttonStyle:"solid",onChange:({target:a})=>{w(a.value)},children:i.jsx(j,{defaultActiveKey:"use",items:q})})})]})};export{P as I}; diff --git a/web/dist/assets/index-ee4feb4a.js b/web/dist/assets/index-ee4feb4a.js deleted file mode 100644 index 37308717e26c08e7787e0d80f65ce8f0467a4faa..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-ee4feb4a.js +++ /dev/null @@ -1 +0,0 @@ -import{j as o}from"./umi-2ee4055f.js";import{T as r}from"./index-9f6163bb.js";import"./createLoading-2160f924.js";import"./react-content-loader.es-7f7b682d.js";const a=()=>{const t={height:60,autoFit:!1,data:[264,417,438,887,309,397,550,575,563,430,525,592,492,467,513,546,983,340,539,243,226,192],smooth:!0};return o.jsx(r,{...t})},p=a;export{p as default}; diff --git a/web/dist/assets/index-facb8fb2.js b/web/dist/assets/index-f3c721a3.js similarity index 53% rename from web/dist/assets/index-facb8fb2.js rename to web/dist/assets/index-f3c721a3.js index a2ebbeef0cfac4f88761c6c27309d6c17bdc7a21..e3ab4e62414b9a9b0cd92ce8679430e17210d376 100644 --- a/web/dist/assets/index-facb8fb2.js +++ b/web/dist/assets/index-f3c721a3.js @@ -1 +1 @@ -import{Y as e,r as t,b4 as o,j as i,C as a}from"./umi-2ee4055f.js";const r=()=>{const{initialState:s}=e("@@initialState");return t.useEffect(()=>{console.log("initialState",s),s!=null&&s.isLogin?o.push("/dashboard/analysis"):o.push("/admin/login")},[]),i.jsx(a,{theme:{token:{borderRadius:0,controlHeight:46}}})};export{r as default}; +import{Y as e,b as t,b0 as o,j as i,C as n}from"./umi-5f6aeac9.js";const r=()=>{const{initialState:s}=e("@@initialState");return t.useEffect(()=>{console.log("initialState",s),s!=null&&s.isLogin?o.push("/dashboard/analysis"):o.push("/admin/login")},[]),i.jsx(n,{theme:{token:{borderRadius:0,controlHeight:46}},componentSize:"small"})};export{r as default}; diff --git a/web/dist/assets/index-f4422a84.js b/web/dist/assets/index-f4422a84.js deleted file mode 100644 index 1cd103b87d8e5dab1125107fb0182e60de25638b..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-f4422a84.js +++ /dev/null @@ -1 +0,0 @@ -import{R as d,k as m,j as P,a1 as n,_ as r}from"./umi-2ee4055f.js";var c=["fieldProps","proFieldProps","locale","min","max"],x=function(o,e){var a=o.fieldProps,i=o.proFieldProps,l=o.locale,s=o.min,p=o.max,t=m(o,c);return P.jsx(n,r({valueType:{type:"money",locale:l},fieldProps:r({min:s,max:p},a),ref:e,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:i},t))};const u=d.forwardRef(x);export{u as P}; diff --git a/web/dist/assets/index-f4ebd759.js b/web/dist/assets/index-f4ebd759.js new file mode 100644 index 0000000000000000000000000000000000000000..3336480b46fbb0e4b2d39354661847eb13b6556e --- /dev/null +++ b/web/dist/assets/index-f4ebd759.js @@ -0,0 +1 @@ +import{R as d,s as m,j as P,G as n,_ as r}from"./umi-5f6aeac9.js";var c=["fieldProps","proFieldProps","locale","min","max"],x=function(o,e){var a=o.fieldProps,s=o.proFieldProps,i=o.locale,l=o.min,p=o.max,t=m(o,c);return P.jsx(n,r({valueType:{type:"money",locale:i},fieldProps:r({min:l,max:p},a),ref:e,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:s},t))};const u=d.forwardRef(x);export{u as P}; diff --git a/web/dist/assets/index-f5fcd859.js b/web/dist/assets/index-f5fcd859.js new file mode 100644 index 0000000000000000000000000000000000000000..d46c75caf5a65a8896facdebe973c85cb7db54cb --- /dev/null +++ b/web/dist/assets/index-f5fcd859.js @@ -0,0 +1 @@ +import{ab as I,b as i,ax as T,j as e,ay as p,B as j,a1 as s}from"./umi-5f6aeac9.js";import{P as v}from"./index-3fcbb702.js";import R from"./GroupRule-006e51b8.js";import{X as A}from"./index-109f15ec.js";import{l as c,d as P}from"./table-0fa6c309.js";import"./ActionButton-ff803f23.js";import"./index-0c4a636b.js";import"./auth-13ead763.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const o="/adminGroup",se=()=>{const[u,f]=I(),[x,h]=i.useState([]);i.useEffect(()=>{c("/adminRule/list").then(t=>{h(t.data.data)})},[]);const l=i.useRef(),b=[{title:"类型",dataIndex:"type",valueType:"radio",hideInTable:!0,initialValue:"0",formItemProps:{rules:[{required:!0,message:"此项为必填项"}]},fieldProps:{options:[{label:"根节点",value:"0"},{label:"子节点",value:"1"}]}},{title:"ID",dataIndex:"id",hideInForm:!0,hideInTable:!0},{title:"角色名",dataIndex:"name",valueType:"text"},{title:"角色标识",dataIndex:"code",valueType:"text"},{valueType:"dependency",name:["type"],hideInTable:!0,columns:({type:t})=>t!=="0"?[{title:"父节点",dataIndex:"pid",valueType:"treeSelect",initialValue:1,params:{ref:u},fieldProps:{fieldNames:{label:"name",value:"id"}},request:async()=>(await c(o+"/list")).data.data,formItemProps:{rules:[{required:!0,message:"此项为必填项"}]}}]:[]},{title:"创建时间",dataIndex:"create_time",valueType:"date",hideInForm:!0},{title:"编辑时间",dataIndex:"update_time",valueType:"date",hideInForm:!0}],n=T(),g=async t=>{const d=s.loading("正在删除");let y=t.map(a=>a.id);P(o+"/delete",{ids:y.join()||""}).then(a=>{var r,m;a.success?(s.success(a.msg),(m=(r=l.current)==null?void 0:r.reloadAndRest)==null||m.call(r)):s.warning(a.msg)}).finally(()=>d())};return e.jsx(e.Fragment,{children:e.jsx(A,{headerTitle:"角色管理",tableApi:o,columns:b,search:!1,accessName:"admin.group",addBefore:()=>f.toggle(),deleteShow:!1,actionRef:l,expandable:{defaultExpandedRowKeys:[]},operateRender:t=>e.jsx(e.Fragment,{children:t.id!==1&&e.jsxs(e.Fragment,{children:[e.jsx(p,{accessible:n.buttonAccess("admin.group.rule"),children:e.jsx(R,{record:t,treeData:x})}),e.jsx(p,{accessible:n.buttonAccess("admin.group.delete"),children:e.jsx(v,{title:"删除",description:"你确定要删除这条数据吗?",onConfirm:()=>{g([t])},okText:"确认",cancelText:"取消",children:e.jsx(j,{type:"link",danger:!0,children:"删除"})})})]})})})})};export{se as default}; diff --git a/web/dist/assets/index-fc273905.js b/web/dist/assets/index-fc273905.js new file mode 100644 index 0000000000000000000000000000000000000000..93334a8012e2d30e47dfbe78f35ebbfaeb3f3bb8 --- /dev/null +++ b/web/dist/assets/index-fc273905.js @@ -0,0 +1 @@ +import{Y as I,ax as f,b as x,j as t,ay as g,B as T,a1 as o}from"./umi-5f6aeac9.js";import{P as v}from"./index-3fcbb702.js";import{X as y}from"./index-53e65e71.js";import{X as b}from"./index-109f15ec.js";import{d as j}from"./table-0fa6c309.js";import{g as P}from"./device-ff507e64.js";import{u as S}from"./useListAll-790074c1.js";import"./ActionButton-ff803f23.js";import"./index-d4ea9132.js";import"./index-25e4c7e3.js";import"./styleChecker-68f8791b.js";import"./index-cc6b0338.js";import"./index-25d65b6e.js";import"./index-168af0e9.js";import"./index-0da8d099.js";import"./index-d045d7e9.js";import"./index-6a3ca2c0.js";import"./index-5a53c961.js";import"./index-9d3aa6d1.js";import"./index-3376120c.js";import"./clsx-0839fdbe.js";import"./RouteContext-4a26a6ad.js";import"./Table-1cf08bb2.js";import"./Table-1c2e5828.js";import"./index-0c4a636b.js";import"./useLazyKVMap-f8dc5f3f.js";import"./ProCard-a8f5c5a9.js";import"./index-46da21dc.js";import"./index-55505f41.js";import"./index-13cae3f4.js";import"./index-032ff5a9.js";import"./index-9fe95bc6.js";import"./index-98c3b3d6.js";const m="/device",se=()=>{const{getDictionaryData:l}=I("dictModel"),{getListAll:p}=S({api:"/project/list"}),c=[{title:"装置ID",dataIndex:"id",hideInForm:!0,hideInTable:!0,hideInSearch:!0},{title:"法兰编号",dataIndex:"flange_code",hideInForm:!0,hideInTable:!0,hideInSearch:!0},{title:"所属项目",dataIndex:"project_id",hideInTable:!0,valueType:"select",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},fieldProps:{fieldNames:{label:"name",value:"id"},showSearch:!0},request:async()=>await p()},{title:"装置名称",dataIndex:"id",hideInTable:!0,hideInForm:!0,valueType:"select",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},fieldProps:{fieldNames:{label:"name",value:"id"},showSearch:!0},request:async({project_id:e,keyWords:r})=>{const a={pageSize:9999};return e&&(a.project_id=e),r&&(a.name=r),(await P(a)).data},dependencies:["project_id"]},{title:"所属项目",dataIndex:"project_name",formItemProps:{rules:[{required:!0,message:"该项为必填"}]},hideInForm:!0,hideInSearch:!0},{title:"装置名称",dataIndex:"name",hideInSearch:!0,formItemProps:{rules:[{required:!0,message:"该项为必填"}]}},{title:"装置描述",dataIndex:"description",hideInTable:!0,hideInSearch:!0,valueType:"textarea"},{valueType:"text",title:"装置类型",hideInSearch:!0,dataIndex:"type",request:async()=>l("deviceType"),render:(e,r)=>t.jsx(y,{value:r.type,dict:"deviceType"}),formItemProps:{rules:[{required:!0,message:"该项为必填"}]}},{title:"目标公开",dataIndex:"is_public",hideInSearch:!0,valueType:"radio",fieldProps:{options:[{value:1,label:"公开"},{value:0,label:"不公开"}]},formItemProps:{rules:[{required:!0,message:"该项为必填"}]}},{valueType:"dateTime",title:"更新时间",hideInForm:!0,hideInSearch:!0,dataIndex:"update_time"}],u=f(),d=x.useRef(),h=async e=>{const r=o.loading("正在删除");if(!e){o.warning("请选择需要删除的节点");return}let a=e.map(i=>i.id);j(m+"/delete",{ids:a.join()||""}).then(i=>{var s,n;i.success?(o.success(i.msg),(n=(s=d.current)==null?void 0:s.reloadAndRest)==null||n.call(s)):o.warning(i.msg)}).finally(()=>r())};return t.jsx(b,{headerTitle:"装置列表",tableApi:m,columns:c,accessName:"device",deleteShow:!1,actionRef:d,operateRender:e=>t.jsx(t.Fragment,{children:t.jsx(g,{accessible:u.buttonAccess("device.delete"),children:t.jsx(v,{title:"删除",description:"你确定要删除这条数据吗?",onConfirm:()=>{h([e])},okText:"确认",cancelText:"取消",children:t.jsx(T,{type:"link",danger:!0,children:"删除"})})})})})};export{se as default}; diff --git a/web/dist/assets/index-fdb09ba4.js b/web/dist/assets/index-fdb09ba4.js deleted file mode 100644 index d4dfb7a76915e74f4d1944bc7adec808152df5fc..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-fdb09ba4.js +++ /dev/null @@ -1 +0,0 @@ -import{r as s,Y as d,ay as u,j as t,B as l,aB as x}from"./umi-2ee4055f.js";import y from"./index-bc1c5cb7.js";import{X as I}from"./index-1c416090.js";import"./table-c83b9d9d.js";import"./index-ea2ed5fc.js";import"./ActionButton-a9da0b15.js";import"./index-8b7fb289.js";import"./styleChecker-0860b7b3.js";import"./index-c10be21a.js";import"./index-cd6d59f9.js";import"./index-84d5661b.js";import"./index-5259f52c.js";import"./index-705e7852.js";import"./index-6430ced5.js";import"./index-e7fd596a.js";import"./index-e10ebcfa.js";import"./index-8ec65540.js";import"./Table-3849f584.js";import"./Table-0e254f81.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./ProCard-cee316ff.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";import"./index-275c5384.js";import"./index-d81f4240.js";import"./index-e7147cef.js";import"./index-ff6ac5e9.js";import"./RouteContext-8fa10ad2.js";const f="/system.dict",h=[{title:"ID",dataIndex:"id",hideInForm:!0,sorter:!0},{title:"字典名称",dataIndex:"name",valueType:"text"},{title:"字典编码",dataIndex:"code",valueType:"text"},{title:"类型",dataIndex:"type",valueType:"select",valueEnum:{default:{text:"文字",status:"Success"},badge:{text:"徽标",status:"Success"},tag:{text:"标签",status:"Success"}},filters:!0},{title:"描述",dataIndex:"describe",valueType:"text",hideInSearch:!0},{title:"创建时间",dataIndex:"create_time",valueType:"date",hideInForm:!0},{title:"修改时间",dataIndex:"update_time",valueType:"date",hideInForm:!0}],Q=()=>{const[i,e]=s.useState(!1),[o,a]=s.useState({}),{refreshDict:p}=d("dictModel"),c=u(),m=()=>e(!1);return t.jsxs(t.Fragment,{children:[t.jsx(y,{open:i,onClose:m,dictData:o}),t.jsx(I,{tableApi:f,columns:h,options:{density:!0,search:!0,fullScreen:!0,setting:!0},optionsRender:(r,n)=>[t.jsx(l,{type:"primary",onClick:()=>{p()},children:"刷新字典缓存"},"ref"),...n],operateRender:r=>t.jsx(x,{accessible:c.buttonAccess("system.dict.item.list"),children:t.jsx("a",{onClick:()=>{a(r),e(!0)},children:"字典配置"})}),accessName:"system.dict"})]})};export{Q as default}; diff --git a/web/dist/assets/index-ff6ac5e9.js b/web/dist/assets/index-ff6ac5e9.js deleted file mode 100644 index 116537d9c6fc4bb56b89f9da08c578cd741d1cfb..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-ff6ac5e9.js +++ /dev/null @@ -1,2 +0,0 @@ -import{aU as pe,_ as s,K as Q,k as Y,j as N,O as re,aZ as X,r as j,l as W,C as Se,bK as Re,s as Ce,aM as Ee,bL as ae,a2 as Ke,o as te,aX as z,w as U,x as $,bM as de,a_ as Te,bN as Ie,bO as Me,i as xe,n as Pe,V as ue,bP as Ne,a$ as ee,bQ as $e,b5 as oe,bR as Fe}from"./umi-2ee4055f.js";import{T as Le}from"./index-8b7fb289.js";import{P as Ae}from"./index-ea2ed5fc.js";import{u as ke}from"./useLazyKVMap-d8c68a12.js";var je=function(r){var a="".concat(r.antCls,"-progress-bg");return Q({},r.componentCls,{"&-multiple":{paddingBlockStart:6,paddingBlockEnd:12,paddingInline:8},"&-progress":{"&-success":Q({},a,{backgroundColor:r.colorSuccess}),"&-error":Q({},a,{backgroundColor:r.colorError}),"&-warning":Q({},a,{backgroundColor:r.colorWarning})},"&-rule":{display:"flex",alignItems:"center","&-icon":{"&-default":{display:"flex",alignItems:"center",justifyContent:"center",width:"14px",height:"22px","&-circle":{width:"6px",height:"6px",backgroundColor:r.colorTextSecondary,borderRadius:"4px"}},"&-loading":{color:r.colorPrimary},"&-error":{color:r.colorError},"&-success":{color:r.colorSuccess}},"&-text":{color:r.colorText}}})};function _e(e){return pe("InlineErrorFormItem",function(r){var a=s(s({},r),{},{componentCls:".".concat(e)});return[je(a)]})}var Oe=["rules","name","children","popoverProps"],De=["errorType","rules","name","popoverProps","children"],se={marginBlockStart:-5,marginBlockEnd:-5,marginInlineStart:0,marginInlineEnd:0},Ve=function(r){var a=r.inputProps,f=r.input,E=r.extra,C=r.errorList,d=r.popoverProps,I=j.useState(!1),T=W(I,2),g=T[0],b=T[1],P=j.useState([]),L=W(P,2),A=L[0],K=L[1],M=j.useContext(Se.ConfigContext),w=M.getPrefixCls,o=w(),m=Re(),u=_e("".concat(o,"-form-item-with-help")),y=u.wrapSSR,O=u.hashId;j.useEffect(function(){a.validateStatus!=="validating"&&K(a.errors)},[a.errors,a.validateStatus]);var D=Ce(A.length<1?!1:g,function(F){F!==g&&b(F)}),B=a.validateStatus==="validating";return N.jsx(Ee,s(s(s({trigger:(d==null?void 0:d.trigger)||["click"],placement:(d==null?void 0:d.placement)||"topLeft"},D),{},{getPopupContainer:d==null?void 0:d.getPopupContainer,getTooltipContainer:d==null?void 0:d.getTooltipContainer,content:y(N.jsx("div",{className:"".concat(o,"-form-item ").concat(O," ").concat(m.hashId).trim(),style:{margin:0,padding:0},children:N.jsxs("div",{className:"".concat(o,"-form-item-with-help ").concat(O," ").concat(m.hashId).trim(),children:[B?N.jsx(ae,{}):null,C]})}))},d),{},{children:N.jsxs(N.Fragment,{children:[f,E]})}),"popover")},Be=function(r){var a=r.rules,f=r.name,E=r.children,C=r.popoverProps,d=Y(r,Oe);return N.jsx(re.Item,s(s({name:f,rules:a,hasFeedback:!1,shouldUpdate:function(T,g){if(T===g)return!1;var b=[f].flat(1);b.length>1&&b.pop();try{return JSON.stringify(X(T,b))!==JSON.stringify(X(g,b))}catch{return!0}},_internalItemRender:{mark:"pro_table_render",render:function(T,g){return N.jsx(Ve,s({inputProps:T,popoverProps:C},g))}}},d),{},{style:s(s({},se),d==null?void 0:d.style),children:E}))},ar=function(r){var a=r.errorType,f=r.rules,E=r.name,C=r.popoverProps,d=r.children,I=Y(r,De);return E&&f!==null&&f!==void 0&&f.length&&a==="popover"?N.jsx(Be,s(s({name:E,rules:f,popoverProps:C},I),{},{children:d})):N.jsx(re.Item,s(s({rules:f,shouldUpdate:E?function(T,g){if(T===g)return!1;var b=[E].flat(1);b.length>1&&b.pop();try{return JSON.stringify(X(T,b))!==JSON.stringify(X(g,b))}catch{return!0}}:void 0},I),{},{style:s(s({},se),I.style),name:E,children:d}))},ze=function(r){var a;return!!(r!=null&&(a=r.valueType)!==null&&a!==void 0&&a.toString().startsWith("date")||(r==null?void 0:r.valueType)==="select"||r!=null&&r.valueEnum)},Je=function(r){var a;return((a=r.ellipsis)===null||a===void 0?void 0:a.showTitle)===!1?!1:r.ellipsis},tr=function(r,a,f){if(a.copyable||a.ellipsis){var E=a.copyable&&f?{text:f,tooltips:["",""]}:void 0,C=ze(a),d=Je(a)&&f?{tooltip:(a==null?void 0:a.tooltip)!==!1&&C?N.jsx("div",{className:"pro-table-tooltip-text",children:r}):f}:!1;return N.jsx(Le.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:E,ellipsis:d,children:r})}return r},lr=function(r,a,f){return a===void 0?r:Ke(r,a,f)},Ue=["map_row_parentKey"],Ge=["map_row_parentKey","map_row_key"],We=["map_row_key"],ne=function(r){return(ue.warn||ue.warning)(r)},V=function(r){return Array.isArray(r)?r.join(","):r};function q(e,r){var a,f=e.getRowKey,E=e.row,C=e.data,d=e.childrenColumnName,I=d===void 0?"children":d,T=(a=V(e.key))===null||a===void 0?void 0:a.toString(),g=new Map;function b(L,A,K){L.forEach(function(M,w){var o=(K||0)*10+w,m=f(M,o).toString();M&&Fe(M)==="object"&&I in M&&b(M[I]||[],m,o);var u=s(s({},M),{},{map_row_key:m,children:void 0,map_row_parentKey:A});delete u.children,A||delete u.map_row_parentKey,g.set(m,u)})}r==="top"&&g.set(T,s(s({},g.get(T)),E)),b(C),r==="update"&&g.set(T,s(s({},g.get(T)),E)),r==="delete"&&g.delete(T);var P=function(A){var K=new Map,M=[],w=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;A.forEach(function(u){if(u.map_row_parentKey&&!u.map_row_key){var y=u.map_row_parentKey,O=Y(u,Ue);if(K.has(y)||K.set(y,[]),m){var D;(D=K.get(y))===null||D===void 0||D.push(O)}}})};return w(r==="top"),A.forEach(function(o){if(o.map_row_parentKey&&o.map_row_key){var m,u=o.map_row_parentKey,y=o.map_row_key,O=Y(o,Ge);K.has(y)&&(O[I]=K.get(y)),K.has(u)||K.set(u,[]),(m=K.get(u))===null||m===void 0||m.push(O)}}),w(r==="update"),A.forEach(function(o){if(!o.map_row_parentKey){var m=o.map_row_key,u=Y(o,We);if(m&&K.has(m)){var y=s(s({},u),{},Q({},I,K.get(m)));M.push(y);return}M.push(u)}}),M};return P(g)}function Xe(e,r){var a=e.recordKey,f=e.onSave,E=e.row,C=e.children,d=e.newLineConfig,I=e.editorType,T=e.tableName,g=j.useContext(de),b=re.useFormInstance(),P=te(!1),L=W(P,2),A=L[0],K=L[1],M=z(U($().mark(function w(){var o,m,u,y,O,D,B,F,Z;return $().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.prev=0,m=I==="Map",u=[T,Array.isArray(a)?a[0]:a].map(function(H){return H==null?void 0:H.toString()}).flat(1).filter(Boolean),K(!0),_.next=6,b.validateFields(u,{recursive:!0});case 6:return y=(g==null||(o=g.getFieldFormatValue)===null||o===void 0?void 0:o.call(g,u))||b.getFieldValue(u),Array.isArray(a)&&a.length>1&&(O=Ne(a),D=O.slice(1),B=X(y,D),ee(y,D,B)),F=m?ee({},u,y):y,_.next=11,f==null?void 0:f(a,$e({},E,F),E,d);case 11:return Z=_.sent,K(!1),_.abrupt("return",Z);case 16:throw _.prev=16,_.t0=_.catch(0),console.log(_.t0),K(!1),_.t0;case 21:case"end":return _.stop()}},w,null,[[0,16]])})));return j.useImperativeHandle(r,function(){return{save:M}},[M]),N.jsxs("a",{onClick:function(){var w=U($().mark(function o(m){return $().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return m.stopPropagation(),m.preventDefault(),y.prev=2,y.next=5,M();case 5:y.next=9;break;case 7:y.prev=7,y.t0=y.catch(2);case 9:case"end":return y.stop()}},o,null,[[2,7]])}));return function(o){return w.apply(this,arguments)}}(),children:[A?N.jsx(ae,{style:{marginInlineEnd:8}}):null,C||"保存"]},"save")}var He=function(r){var a=r.recordKey,f=r.onDelete,E=r.preEditRowRef,C=r.row,d=r.children,I=r.deletePopconfirmMessage,T=te(function(){return!1}),g=W(T,2),b=g[0],P=g[1],L=z(U($().mark(function A(){var K;return $().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.prev=0,P(!0),w.next=4,f==null?void 0:f(a,C);case 4:return K=w.sent,P(!1),w.abrupt("return",K);case 9:return w.prev=9,w.t0=w.catch(0),console.log(w.t0),P(!1),w.abrupt("return",null);case 14:return w.prev=14,E&&(E.current=null),w.finish(14);case 17:case"end":return w.stop()}},A,null,[[0,9,14,17]])})));return d!==!1?N.jsx(Ae,{title:I,onConfirm:function(){return L()},children:N.jsxs("a",{children:[b?N.jsx(ae,{style:{marginInlineEnd:8}}):null,d||"删除"]})},"delete"):null},Qe=function(r){var a=r.recordKey,f=r.tableName,E=r.newLineConfig,C=r.editorType,d=r.onCancel,I=r.cancelEditable,T=r.row,g=r.cancelText,b=r.preEditRowRef,P=j.useContext(de),L=re.useFormInstance();return N.jsx("a",{onClick:function(){var A=U($().mark(function K(M){var w,o,m,u,y,O,D;return $().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return M.stopPropagation(),M.preventDefault(),o=C==="Map",m=[f,a].flat(1).filter(Boolean),u=(P==null||(w=P.getFieldFormatValue)===null||w===void 0?void 0:w.call(P,m))||(L==null?void 0:L.getFieldValue(m)),y=o?ee({},m,u):u,F.next=8,d==null?void 0:d(a,y,T,E);case 8:return O=F.sent,F.next=11,I(a);case 11:if((b==null?void 0:b.current)===null){F.next=15;break}L.setFieldsValue(ee({},m,b==null?void 0:b.current)),F.next=17;break;case 15:return F.next=17,(D=r.onDelete)===null||D===void 0?void 0:D.call(r,a,T);case 17:return b&&(b.current=null),F.abrupt("return",O);case 19:case"end":return F.stop()}},K)}));return function(K){return A.apply(this,arguments)}}(),children:g||"取消"},"cancel")};function Ye(e,r){var a=r.recordKey,f=r.newLineConfig,E=r.saveText,C=r.deleteText,d=j.forwardRef(Xe),I=j.createRef();return{save:N.jsx(d,s(s({},r),{},{row:e,ref:I,children:E}),"save"+a),saveRef:I,delete:(f==null?void 0:f.options.recordKey)!==a?N.jsx(He,s(s({},r),{},{row:e,children:C}),"delete"+a):void 0,cancel:N.jsx(Qe,s(s({},r),{},{row:e}),"cancel"+a)}}function ir(e){var r=Te(),a=j.useRef(null),f=j.useState(void 0),E=W(f,2),C=E[0],d=E[1],I=function(){var n=new Map,t=function i(l,S){l==null||l.forEach(function(R,h){var p,c=S==null?h.toString():S+"_"+h.toString();n.set(c,V(e.getRowKey(R,-1))),n.set((p=V(e.getRowKey(R,-1)))===null||p===void 0?void 0:p.toString(),c),e.childrenColumnName&&R!==null&&R!==void 0&&R[e.childrenColumnName]&&i(R[e.childrenColumnName],c)})};return t(e.dataSource),n},T=j.useMemo(function(){return I()},[]),g=j.useRef(T),b=j.useRef(void 0);Ie(function(){g.current=I()},[e.dataSource]),b.current=C;var P=e.type||"single",L=ke(e.dataSource,"children",e.getRowKey),A=W(L,1),K=A[0],M=te([],{value:e.editableKeys,onChange:e.onChange?function(v){var n,t,i;e==null||(n=e.onChange)===null||n===void 0||n.call(e,(t=v==null?void 0:v.filter(function(l){return l!==void 0}))!==null&&t!==void 0?t:[],(i=v==null?void 0:v.map(function(l){return K(l)}).filter(function(l){return l!==void 0}))!==null&&i!==void 0?i:[])}:void 0}),w=W(M,2),o=w[0],m=w[1],u=j.useMemo(function(){var v=P==="single"?o==null?void 0:o.slice(0,1):o;return new Set(v)},[(o||[]).join(","),P]),y=Me(o),O=z(function(v){var n,t,i,l,S=(n=e.getRowKey(v,v.index))===null||n===void 0||(t=n.toString)===null||t===void 0?void 0:t.call(n),R=(i=e.getRowKey(v,-1))===null||i===void 0||(l=i.toString)===null||l===void 0?void 0:l.call(i),h=o==null?void 0:o.map(function(k){return k==null?void 0:k.toString()}),p=(y==null?void 0:y.map(function(k){return k==null?void 0:k.toString()}))||[],c=e.tableName&&!!(p!=null&&p.includes(R))||!!(p!=null&&p.includes(S));return{recordKey:R,isEditable:e.tableName&&(h==null?void 0:h.includes(R))||(h==null?void 0:h.includes(S)),preIsEditable:c}}),D=z(function(v,n){var t,i;return u.size>0&&P==="single"&&e.onlyOneLineEditorAlertMessage!==!1?(ne(e.onlyOneLineEditorAlertMessage||r.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1):(u.add(v),m(Array.from(u)),a.current=(t=n??((i=e.dataSource)===null||i===void 0?void 0:i.find(function(l,S){return e.getRowKey(l,S)===v})))!==null&&t!==void 0?t:null,!0)}),B=z(function(){var v=U($().mark(function n(t,i){var l,S;return $().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(l=V(t).toString(),S=g.current.get(l),!(!u.has(l)&&S&&(i??!0)&&e.tableName)){h.next=5;break}return B(S,!1),h.abrupt("return");case 5:return C&&C.options.recordKey===t&&d(void 0),u.delete(l),u.delete(V(t)),m(Array.from(u)),h.abrupt("return",!0);case 10:case"end":return h.stop()}},n)}));return function(n,t){return v.apply(this,arguments)}}()),F=xe(U($().mark(function v(){var n,t,i,l,S=arguments;return $().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:for(t=S.length,i=new Array(t),l=0;l0&&P==="single"&&e.onlyOneLineEditorAlertMessage!==!1)return ne(e.onlyOneLineEditorAlertMessage||r.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1;var t=e.getRowKey(v,-1);if(!t&&t!==0)throw Pe(!!t,`请设置 recordCreatorProps.record 并返回一个唯一的key - https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("请设置 recordCreatorProps.record 并返回一个唯一的key");if(u.add(t),m(Array.from(u)),(n==null?void 0:n.newRecordType)==="dataSource"||e.tableName){var i,l={data:e.dataSource,getRowKey:e.getRowKey,row:s(s({},v),{},{map_row_parentKey:n!=null&&n.parentKey?(i=V(n==null?void 0:n.parentKey))===null||i===void 0?void 0:i.toString():void 0}),key:t,childrenColumnName:e.childrenColumnName||"children"};e.setDataSource(q(l,(n==null?void 0:n.position)==="top"?"top":"update"))}else d({defaultValue:v,options:s(s({},n),{},{recordKey:t})});return!0}),ce=(e==null?void 0:e.saveText)||r.getMessage("editableTable.action.save","保存"),ve=(e==null?void 0:e.deleteText)||r.getMessage("editableTable.action.delete","删除"),fe=(e==null?void 0:e.cancelText)||r.getMessage("editableTable.action.cancel","取消"),ge=z(function(){var v=U($().mark(function n(t,i,l,S){var R,h,p,c,k,x,ie;return $().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,e==null||(R=e.onSave)===null||R===void 0?void 0:R.call(e,t,i,l,S);case 2:return c=J.sent,J.next=5,B(t);case 5:if(k=S||b.current||{},x=k.options,!(!(x!=null&&x.parentKey)&&(x==null?void 0:x.recordKey)===t)){J.next=9;break}return(x==null?void 0:x.position)==="top"?e.setDataSource([i].concat(oe(e.dataSource))):e.setDataSource([].concat(oe(e.dataSource),[i])),J.abrupt("return",c);case 9:return ie={data:e.dataSource,getRowKey:e.getRowKey,row:x?s(s({},i),{},{map_row_parentKey:(h=V((p=x==null?void 0:x.parentKey)!==null&&p!==void 0?p:""))===null||h===void 0?void 0:h.toString()}):i,key:t,childrenColumnName:e.childrenColumnName||"children"},e.setDataSource(q(ie,(x==null?void 0:x.position)==="top"?"top":"update")),J.next=13,B(t);case 13:return J.abrupt("return",c);case 14:case"end":return J.stop()}},n)}));return function(n,t,i,l){return v.apply(this,arguments)}}()),me=z(function(){var v=U($().mark(function n(t,i){var l,S,R;return $().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return S={data:e.dataSource,getRowKey:e.getRowKey,row:i,key:t,childrenColumnName:e.childrenColumnName||"children"},p.next=3,e==null||(l=e.onDelete)===null||l===void 0?void 0:l.call(e,t,i);case 3:return R=p.sent,p.next=6,B(t,!1);case 6:return e.setDataSource(q(S,"delete")),p.abrupt("return",R);case 8:case"end":return p.stop()}},n)}));return function(n,t){return v.apply(this,arguments)}}()),ye=z(function(){var v=U($().mark(function n(t,i,l,S){var R,h;return $().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,e==null||(R=e.onCancel)===null||R===void 0?void 0:R.call(e,t,i,l,S);case 2:return h=c.sent,c.abrupt("return",h);case 4:case"end":return c.stop()}},n)}));return function(n,t,i,l){return v.apply(this,arguments)}}()),le=e.actionRender&&typeof e.actionRender=="function",he=le?e.actionRender:function(){},be=z(he),we=function(n){var t=e.getRowKey(n,n.index),i={saveText:ce,cancelText:fe,deleteText:ve,addEditRecord:H,recordKey:t,cancelEditable:B,index:n.index,tableName:e.tableName,newLineConfig:C,onCancel:ye,onDelete:me,onSave:ge,editableKeys:o,setEditableRowKeys:m,preEditRowRef:a,deletePopconfirmMessage:e.deletePopconfirmMessage||"".concat(r.getMessage("deleteThisLine","删除此项"),"?")},l=Ye(n,i);return e.tableName?G.current.set(g.current.get(V(t))||V(t),l.saveRef):G.current.set(V(t),l.saveRef),le?be(n,i,{save:l.save,delete:l.delete,cancel:l.cancel}):[l.save,l.delete,l.cancel]};return{editableKeys:o,setEditableRowKeys:m,isEditable:O,actionRender:we,startEditable:D,cancelEditable:B,addEditRecord:H,saveEditable:_,newLineRecord:C,preEditableKeys:y,onValuesChange:Z,getRealIndex:e.getRealIndex}}export{ar as I,lr as a,Ye as d,q as e,tr as g,V as r,ir as u}; diff --git a/web/dist/assets/index-ffb8c391.js b/web/dist/assets/index-ffb8c391.js deleted file mode 100644 index 6eb0336efbefdc968f68f4a10b5c0ce6febb9ce0..0000000000000000000000000000000000000000 --- a/web/dist/assets/index-ffb8c391.js +++ /dev/null @@ -1 +0,0 @@ -import{j as s,e as r,f as t,F as i}from"./umi-2ee4055f.js";import o from"./index-9ece78ec.js";import a from"./index-6ad53ab5.js";import l from"./index-ee4feb4a.js";import m from"./index-7649ea01.js";import n from"./index-79481ba8.js";import x from"./index-420f033e.js";import d from"./index-d5a6b2a3.js";import{S as j}from"./index-7b54423a.js";import"./index-8a549704.js";import"./index-275c5384.js";import"./index-426be59b.js";import"./createLoading-2160f924.js";import"./react-content-loader.es-7f7b682d.js";import"./index-9f6163bb.js";import"./index-c02d95b0.js";import"./index-250ebfc2.js";import"./index-c4f19093.js";import"./Table-0e254f81.js";import"./styleChecker-0860b7b3.js";import"./index-6395135c.js";import"./useLazyKVMap-d8c68a12.js";import"./index-9456f6ef.js";import"./index-211dffa7.js";import"./index-3f6ddb76.js";import"./index-63e0f416.js";const{Statistic:e}=j,G=()=>s.jsxs(r,{gutter:[24,24],children:[s.jsx(t,{xs:20,sm:16,md:12,lg:8,xl:6,children:s.jsx(o,{title:s.jsx(i,{id:"analysis.title1"}),actionText:"Tips",loading:!1,total:126560,suffix:s.jsx(i,{id:"analysis.symbol1"}),footer:s.jsxs(s.Fragment,{children:[s.jsx(i,{id:"analysis.bottom1"}),"¥12,423"]}),children:s.jsxs("div",{style:{height:60,display:"flex",flexDirection:"column-reverse"},children:[s.jsx(e,{title:s.jsx(i,{id:"analysis.dayRatio"}),value:"8.63%",trend:"down"}),s.jsx(e,{title:s.jsx(i,{id:"analysis.weekRatio"}),value:"6.47%",trend:"up"})]})})}),s.jsx(t,{xs:20,sm:16,md:12,lg:8,xl:6,children:s.jsx(o,{title:s.jsx(i,{id:"analysis.title2"}),actionText:"总访问量",loading:!1,total:8860,suffix:"Ips",footer:s.jsxs(s.Fragment,{children:[s.jsx(i,{id:"analysis.bottom2"}),"1,345"]}),children:s.jsx(l,{})})}),s.jsx(t,{xs:20,sm:16,md:12,lg:8,xl:6,children:s.jsx(o,{title:s.jsx(i,{id:"analysis.title3"}),actionText:"支付笔数",loading:!1,total:3608,suffix:s.jsx(i,{id:"analysis.symbol2"}),footer:s.jsxs(s.Fragment,{children:[s.jsx(i,{id:"analysis.bottom3"}),"60%"]}),children:s.jsx(m,{})})}),s.jsx(t,{xs:20,sm:16,md:12,lg:8,xl:6,children:s.jsx(o,{title:s.jsx(i,{id:"analysis.title4"}),actionText:"运营活动效果",loading:!1,total:78,suffix:"%",footer:s.jsx(e,{title:s.jsx(s.Fragment,{children:s.jsx(i,{id:"analysis.weekRatio"})}),value:"8.63%",trend:"down"}),children:s.jsx(a,{})})}),s.jsx(t,{span:24,children:s.jsx(n,{})}),s.jsx(t,{span:12,children:s.jsx(d,{})}),s.jsx(t,{span:12,children:s.jsx(x,{})})]});export{G as default}; diff --git a/web/dist/assets/index.module.scss.d-09af5258.js b/web/dist/assets/index.module.scss.d-09af5258.js new file mode 100644 index 0000000000000000000000000000000000000000..e79d244a7f1abdc73259645e91537a39a915b09d --- /dev/null +++ b/web/dist/assets/index.module.scss.d-09af5258.js @@ -0,0 +1 @@ +var c=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);var l=c((o,a)=>{a.exports=classNames});export default l(); diff --git a/web/dist/assets/isSymbol-2dfef6ea.js b/web/dist/assets/isSymbol-2dfef6ea.js new file mode 100644 index 0000000000000000000000000000000000000000..bf3041bec6b268801bf8f1161c0d1e47da60b692 --- /dev/null +++ b/web/dist/assets/isSymbol-2dfef6ea.js @@ -0,0 +1 @@ +import{W as s,X as t}from"./umi-5f6aeac9.js";var b="[object Symbol]";function i(o){return typeof o=="symbol"||s(o)&&t(o)==b}export{i}; diff --git a/web/dist/assets/logo-e0210994.png b/web/dist/assets/logo-e0210994.png new file mode 100644 index 0000000000000000000000000000000000000000..824dfc4039eadeb694199c88f9fd899592803193 Binary files /dev/null and b/web/dist/assets/logo-e0210994.png differ diff --git a/web/dist/assets/react-content-loader.es-7f7b682d.js b/web/dist/assets/react-content-loader.es-3bd9b17f.js similarity index 94% rename from web/dist/assets/react-content-loader.es-7f7b682d.js rename to web/dist/assets/react-content-loader.es-3bd9b17f.js index 07e89d26966776f17c90fd35af0cbee6b6c7c1bd..f7c931ffc8df8142f1593f4fefa28d3d27ff7eb9 100644 --- a/web/dist/assets/react-content-loader.es-7f7b682d.js +++ b/web/dist/assets/react-content-loader.es-3bd9b17f.js @@ -1,4 +1,4 @@ -import{d7 as _,r as u}from"./umi-2ee4055f.js";var F=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},D={}.toString,d=function(t,r){return D.call(t)==="[object "+r+"]"};const j=function(t){return d(t,"Function")};var X=function(t){return t==null};const T=function(t){return Array.isArray?Array.isArray(t):d(t,"Array")},Y=function(t){var r=typeof t;return t!==null&&r==="object"||r==="function"};function I(t,r){if(t){var n;if(T(t))for(var e=0,a=t.length;e]*>/,S={tr:document.createElement("tbody"),tbody:g,thead:g,tfoot:g,td:C,th:C,"*":document.createElement("div")}}function Mt(t){g||tt();var r=B.test(t)&&RegExp.$1;(!r||!(r in S))&&(r="*");var n=S[r];t=typeof t=="string"?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var e=n.childNodes[0];return e&&n.contains(e)&&n.removeChild(e),e}function wt(t,r){if(t)for(var n in r)r.hasOwnProperty(n)&&(t.style[n]=r[n]);return t}var rt="*",bt=function(){function t(){this._events={}}return t.prototype.on=function(r,n,e){return this._events[r]||(this._events[r]=[]),this._events[r].push({callback:n,once:!!e}),this},t.prototype.once=function(r,n){return this.on(r,n,!0)},t.prototype.emit=function(r){for(var n=this,e=[],a=1;a0&&(i=1/Math.sqrt(i)),t[0]=r[0]*i,t[1]=r[1]*i,t[2]=r[2]*i,t}function at(t,r){return t[0]*r[0]+t[1]*r[1]+t[2]*r[2]}function Tt(t,r,n){var e=r[0],a=r[1],i=r[2],c=n[0],o=n[1],f=n[2];return t[0]=a*f-i*o,t[1]=i*c-e*f,t[2]=e*o-a*c,t}function zt(t,r,n){var e=r[0],a=r[1],i=r[2],c=n[3]*e+n[7]*a+n[11]*i+n[15];return c=c||1,t[0]=(n[0]*e+n[4]*a+n[8]*i+n[12])/c,t[1]=(n[1]*e+n[5]*a+n[9]*i+n[13])/c,t[2]=(n[2]*e+n[6]*a+n[10]*i+n[14])/c,t}function qt(t,r,n){var e=r[0],a=r[1],i=r[2];return t[0]=e*n[0]+a*n[3]+i*n[6],t[1]=e*n[1]+a*n[4]+i*n[7],t[2]=e*n[2]+a*n[5]+i*n[8],t}function Rt(t,r){var n=t[0],e=t[1],a=t[2],i=r[0],c=r[1],o=r[2],f=Math.sqrt(n*n+e*e+a*a),h=Math.sqrt(i*i+c*c+o*o),s=f*h,p=s&&at(t,r)/s;return Math.acos(Math.min(Math.max(p,-1),1))}var $t=et;(function(){var t=nt();return function(r,n,e,a,i,c){var o,f;for(n||(n=3),e||(e=0),a?f=Math.min(a*n+e,r.length):f=r.length,o=e;o0&&(a=1/Math.sqrt(a)),t[0]=r[0]*a,t[1]=r[1]*a,t}function _t(t,r){return t[0]*r[0]+t[1]*r[1]}function Dt(t,r,n,e){var a=r[0],i=r[1];return t[0]=a+e*(n[0]-a),t[1]=i+e*(n[1]-i),t}function Xt(t,r,n){var e=r[0],a=r[1];return t[0]=n[0]*e+n[3]*a+n[6],t[1]=n[1]*e+n[4]*a+n[7],t}function Yt(t,r){var n=t[0],e=t[1],a=r[0],i=r[1],c=Math.sqrt(n*n+e*e)*Math.sqrt(a*a+i*i),o=c&&(n*a+e*i)/c;return Math.acos(Math.min(Math.max(o,-1),1))}function Ht(t,r){return t[0]===r[0]&&t[1]===r[1]}var Jt=ot;(function(){var t=it();return function(r,n,e,a,i,c){var o,f;for(n||(n=2),e||(e=0),a?f=Math.min(a*n+e,r.length):f=r.length,o=e;o]*>/,S={tr:document.createElement("tbody"),tbody:g,thead:g,tfoot:g,td:C,th:C,"*":document.createElement("div")}}function Mt(t){g||tt();var r=B.test(t)&&RegExp.$1;(!r||!(r in S))&&(r="*");var n=S[r];t=typeof t=="string"?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var e=n.childNodes[0];return e&&n.contains(e)&&n.removeChild(e),e}function wt(t,r){if(t)for(var n in r)r.hasOwnProperty(n)&&(t.style[n]=r[n]);return t}var rt="*",bt=function(){function t(){this._events={}}return t.prototype.on=function(r,n,e){return this._events[r]||(this._events[r]=[]),this._events[r].push({callback:n,once:!!e}),this},t.prototype.once=function(r,n){return this.on(r,n,!0)},t.prototype.emit=function(r){for(var n=this,e=[],a=1;a0&&(i=1/Math.sqrt(i)),t[0]=r[0]*i,t[1]=r[1]*i,t[2]=r[2]*i,t}function at(t,r){return t[0]*r[0]+t[1]*r[1]+t[2]*r[2]}function Tt(t,r,n){var e=r[0],a=r[1],i=r[2],c=n[0],o=n[1],f=n[2];return t[0]=a*f-i*o,t[1]=i*c-e*f,t[2]=e*o-a*c,t}function qt(t,r,n){var e=r[0],a=r[1],i=r[2],c=n[3]*e+n[7]*a+n[11]*i+n[15];return c=c||1,t[0]=(n[0]*e+n[4]*a+n[8]*i+n[12])/c,t[1]=(n[1]*e+n[5]*a+n[9]*i+n[13])/c,t[2]=(n[2]*e+n[6]*a+n[10]*i+n[14])/c,t}function zt(t,r,n){var e=r[0],a=r[1],i=r[2];return t[0]=e*n[0]+a*n[3]+i*n[6],t[1]=e*n[1]+a*n[4]+i*n[7],t[2]=e*n[2]+a*n[5]+i*n[8],t}function Rt(t,r){var n=t[0],e=t[1],a=t[2],i=r[0],c=r[1],o=r[2],f=Math.sqrt(n*n+e*e+a*a),h=Math.sqrt(i*i+c*c+o*o),s=f*h,p=s&&at(t,r)/s;return Math.acos(Math.min(Math.max(p,-1),1))}var $t=et;(function(){var t=nt();return function(r,n,e,a,i,c){var o,f;for(n||(n=3),e||(e=0),a?f=Math.min(a*n+e,r.length):f=r.length,o=e;o0&&(a=1/Math.sqrt(a)),t[0]=r[0]*a,t[1]=r[1]*a,t}function _t(t,r){return t[0]*r[0]+t[1]*r[1]}function Dt(t,r,n,e){var a=r[0],i=r[1];return t[0]=a+e*(n[0]-a),t[1]=i+e*(n[1]-i),t}function Xt(t,r,n){var e=r[0],a=r[1];return t[0]=n[0]*e+n[3]*a+n[6],t[1]=n[1]*e+n[4]*a+n[7],t}function Yt(t,r){var n=t[0],e=t[1],a=r[0],i=r[1],c=Math.sqrt(n*n+e*e)*Math.sqrt(a*a+i*i),o=c&&(n*a+e*i)/c;return Math.acos(Math.min(Math.max(o,-1),1))}function Ht(t,r){return t[0]===r[0]&&t[1]===r[1]}var Jt=ot;(function(){var t=it();return function(r,n,e,a,i,c){var o,f;for(n||(n=2),e||(e=0),a?f=Math.min(a*n+e,r.length):f=r.length,o=e;os(r+t,{method:"GET",params:{...e},...o||{}}),p=(t,e,o)=>{let n="application/json";if(e&&Object.values(e).find(a=>a instanceof File)){const a=new FormData;Object.keys(e).forEach(i=>{a.append(i,e[i])}),n="multipart/form-data",e=a}return s(r+t,{method:"POST",headers:{ContentType:n},data:e,...o||{}})},c=(t,e,o)=>s(r+t,{method:"PUT",data:{...e},...o||{}}),m=(t,e,o)=>s(r+t,{method:"DELETE",params:{...e},...o||{}}),h=Object.freeze(Object.defineProperty({__proto__:null,addApi:p,deleteApi:m,editApi:c,listApi:l},Symbol.toStringTag,{value:"Module"}));export{p as a,m as d,c as e,l,h as t}; diff --git a/web/dist/assets/table-c83b9d9d.js b/web/dist/assets/table-c83b9d9d.js deleted file mode 100644 index bd489567e95a98b78541caa99d3eace40742e955..0000000000000000000000000000000000000000 --- a/web/dist/assets/table-c83b9d9d.js +++ /dev/null @@ -1 +0,0 @@ -import{X as o}from"./umi-2ee4055f.js";let r="/admin";const n=(e,t,a)=>o(r+e,{method:"GET",params:{...t},...a||{}}),s=(e,t,a)=>o(r+e,{method:"POST",headers:{"Content-Type":"application/json"},data:t,...a||{}}),p=(e,t,a)=>o(r+e,{method:"PUT",data:{...t},...a||{}}),d=(e,t,a)=>o(r+e,{method:"DELETE",params:{...t},...a||{}}),l=Object.freeze(Object.defineProperty({__proto__:null,addApi:s,deleteApi:d,editApi:p,listApi:n},Symbol.toStringTag,{value:"Module"}));export{s as a,d,p as e,n as l,l as t}; diff --git a/web/dist/assets/umi-d56723da.css b/web/dist/assets/umi-2c6c3db4.css similarity index 96% rename from web/dist/assets/umi-d56723da.css rename to web/dist/assets/umi-2c6c3db4.css index 6042bc37a0d86a01fcad224e0d2c03ac3bafd35a..664d5fbf0c46f29248416159e29d3015104bbb5a 100644 --- a/web/dist/assets/umi-d56723da.css +++ b/web/dist/assets/umi-2c6c3db4.css @@ -1 +1 @@ -html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}.ant-pro-page-container .ant-pro-page-container-warp-page-header .ant-page-header-footer{margin-block-start:0}.ant-page-header.ant-page-header-has-footer.ant-page-header-ghost{padding:10px 24px 0;margin-bottom:0}#xin-tabs .ant-tabs-nav:before{border-bottom:none}#xin-tabs .ant-tabs-tab{border-radius:10px;border-bottom:1px solid #f0f0f0}html,body,#root{height:100%;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.colorWeak{filter:invert(80%)}.ant-layout{min-height:100vh}.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed{left:unset}.ant-pro-grid-content.ant-pro-grid-content-wide,.ant-pro-top-nav-header-wide{max-width:1460px!important}.ant-pro-setting-drawer-handle{z-index:100!important}canvas{display:block}body{text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none}@media (max-width: 768px){.ant-table{width:100%;overflow-x:auto}.ant-table-thead>tr>th,.ant-table-tbody>tr>th,.ant-table-thead>tr>td,.ant-table-tbody>tr>td{white-space:pre}.ant-table-thead>tr>th>span,.ant-table-tbody>tr>th>span,.ant-table-thead>tr>td>span,.ant-table-tbody>tr>td>span{display:block}}::-webkit-scrollbar{width:6px;height:6px;margin-right:4px;background-color:#f5f5f5}::-webkit-scrollbar-corner{display:none}::-webkit-scrollbar-thumb{background-color:#2a2e3626;border-radius:4px}.ant-pro-grid-content .ant-pro-grid-content-wide,.ant-pro-top-nav-header-wide{max-width:1460px!important} +html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}.ant-pro-page-container .ant-pro-page-container-warp-page-header .ant-page-header-footer{margin-block-start:0}.ant-page-header.ant-page-header-has-footer.ant-page-header-ghost{padding:10px 24px 0;margin-bottom:0}#xin-tabs .ant-tabs-nav:before{border-bottom:none}#xin-tabs .ant-tabs-tab{border-radius:10px;border-bottom:1px solid #f0f0f0}html,body,#root{height:100%;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.colorWeak{filter:invert(80%)}.ant-layout{min-height:100vh}.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed{left:unset}.ant-pro-grid-content.ant-pro-grid-content-wide,.ant-pro-top-nav-header-wide{max-width:1460px!important}.ant-pro-setting-drawer-handle{z-index:100!important}canvas{display:block}body{text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none}@media (max-width: 768px){.ant-table{width:100%;overflow-x:auto}.ant-table-thead>tr>th,.ant-table-tbody>tr>th,.ant-table-thead>tr>td,.ant-table-tbody>tr>td{white-space:pre}.ant-table-thead>tr>th>span,.ant-table-tbody>tr>th>span,.ant-table-thead>tr>td>span,.ant-table-tbody>tr>td>span{display:block}}::-webkit-scrollbar{width:6px;height:6px;margin-right:4px;background-color:#f5f5f5}::-webkit-scrollbar-corner{display:none}::-webkit-scrollbar-thumb{background-color:#2a2e3626;border-radius:4px}.ant-pro-grid-content .ant-pro-grid-content-wide,.ant-pro-top-nav-header-wide{max-width:1460px!important}.ant-form>.ant-row{margin:0!important}.ant-pro-layout .ant-pro-layout-content{padding-block:0} diff --git a/web/dist/assets/umi-2ee4055f.js b/web/dist/assets/umi-5f6aeac9.js similarity index 74% rename from web/dist/assets/umi-2ee4055f.js rename to web/dist/assets/umi-5f6aeac9.js index 84b9513f9cafb64278aa47fd9fc352d5d3e4daa4..71388523e22b685670739eefa8c15931412a98df 100644 --- a/web/dist/assets/umi-2ee4055f.js +++ b/web/dist/assets/umi-5f6aeac9.js @@ -1,9 +1,9 @@ -function xO(e,t){for(var r=0;rn[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var an=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function en(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a2=function(e){return e&&e.Math===Math&&e},Cr=a2(typeof globalThis=="object"&&globalThis)||a2(typeof window=="object"&&window)||a2(typeof self=="object"&&self)||a2(typeof an=="object"&&an)||a2(typeof an=="object"&&an)||function(){return this}()||Function("return this")(),D3={},Yr=function(e){try{return!!e()}catch{return!0}},Rde=Yr,mn=!Rde(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Mde=Yr,zg=!Mde(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),Ide=zg,d8=Function.prototype.call,nr=Ide?d8.bind(d8):function(){return d8.apply(d8,arguments)},BW={},jW={}.propertyIsEnumerable,VW=Object.getOwnPropertyDescriptor,Tde=VW&&!jW.call({1:2},1);BW.f=Tde?function(t){var r=VW(this,t);return!!r&&r.enumerable}:jW;var Cu=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},WW=zg,UW=Function.prototype,m$=UW.call,Pde=WW&&UW.bind.bind(m$,m$),Ht=WW?Pde:function(e){return function(){return m$.apply(e,arguments)}},KW=Ht,_de=KW({}.toString),zde=KW("".slice),fc=function(e){return zde(_de(e),8,-1)},Fde=Ht,kde=Yr,Dde=fc,g9=Object,Lde=Fde("".split),n4=kde(function(){return!g9("z").propertyIsEnumerable(0)})?function(e){return Dde(e)==="String"?Lde(e,""):g9(e)}:g9,xo=function(e){return e==null},Ade=xo,Nde=TypeError,Ml=function(e){if(Ade(e))throw new Nde("Can't call method on "+e);return e},Hde=n4,Bde=Ml,vc=function(e){return Hde(Bde(e))},g$=typeof document=="object"&&document.all,jde=typeof g$>"u"&&g$!==void 0,YW={all:g$,IS_HTMLDDA:jde},GW=YW,Vde=GW.all,Dr=GW.IS_HTMLDDA?function(e){return typeof e=="function"||e===Vde}:function(e){return typeof e=="function"},BP=Dr,qW=YW,Wde=qW.all,sn=qW.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:BP(e)||e===Wde}:function(e){return typeof e=="object"?e!==null:BP(e)},p9=Cr,Ude=Dr,Kde=function(e){return Ude(e)?e:void 0},Wr=function(e,t){return arguments.length<2?Kde(p9[e]):p9[e]&&p9[e][t]},Yde=Ht,hc=Yde({}.isPrototypeOf),OO=typeof navigator<"u"&&String(navigator.userAgent)||"",XW=Cr,y9=OO,jP=XW.process,VP=XW.Deno,WP=jP&&jP.versions||VP&&VP.version,UP=WP&&WP.v8,nl,jh;UP&&(nl=UP.split("."),jh=nl[0]>0&&nl[0]<4?1:+(nl[0]+nl[1]));!jh&&y9&&(nl=y9.match(/Edge\/(\d+)/),(!nl||nl[1]>=74)&&(nl=y9.match(/Chrome\/(\d+)/),nl&&(jh=+nl[1])));var L3=jh,KP=L3,Gde=Yr,qde=Cr,Xde=qde.String,EO=!!Object.getOwnPropertySymbols&&!Gde(function(){var e=Symbol("symbol detection");return!Xde(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&KP&&KP<41}),Zde=EO,ZW=Zde&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Qde=Wr,Jde=Dr,e0e=hc,t0e=ZW,r0e=Object,Fg=t0e?function(e){return typeof e=="symbol"}:function(e){var t=Qde("Symbol");return Jde(t)&&e0e(t.prototype,r0e(e))},n0e=String,A3=function(e){try{return n0e(e)}catch{return"Object"}},a0e=Dr,o0e=A3,i0e=TypeError,Tr=function(e){if(a0e(e))return e;throw new i0e(o0e(e)+" is not a function")},l0e=Tr,c0e=xo,uo=function(e,t){var r=e[t];return c0e(r)?void 0:l0e(r)},b9=nr,S9=Dr,$9=sn,s0e=TypeError,u0e=function(e,t){var r,n;if(t==="string"&&S9(r=e.toString)&&!$9(n=b9(r,e))||S9(r=e.valueOf)&&!$9(n=b9(r,e))||t!=="string"&&S9(r=e.toString)&&!$9(n=b9(r,e)))return n;throw new s0e("Can't convert object to primitive value")},QW={exports:{}},Ka=!1,YP=Cr,d0e=Object.defineProperty,RO=function(e,t){try{d0e(YP,e,{value:t,configurable:!0,writable:!0})}catch{YP[e]=t}return t},f0e=Cr,v0e=RO,GP="__core-js_shared__",h0e=f0e[GP]||v0e(GP,{}),kg=h0e,qP=kg;(QW.exports=function(e,t){return qP[e]||(qP[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Dg=QW.exports,m0e=Ml,g0e=Object,Sa=function(e){return g0e(m0e(e))},p0e=Ht,y0e=Sa,b0e=p0e({}.hasOwnProperty),un=Object.hasOwn||function(t,r){return b0e(y0e(t),r)},S0e=Ht,$0e=0,w0e=Math.random(),C0e=S0e(1 .toString),a4=function(e){return"Symbol("+(e===void 0?"":e)+")_"+C0e(++$0e+w0e,36)},x0e=Cr,O0e=Dg,XP=un,E0e=a4,R0e=EO,M0e=ZW,_d=x0e.Symbol,w9=O0e("wks"),I0e=M0e?_d.for||_d:_d&&_d.withoutSetter||E0e,Ir=function(e){return XP(w9,e)||(w9[e]=R0e&&XP(_d,e)?_d[e]:I0e("Symbol."+e)),w9[e]},T0e=nr,ZP=sn,QP=Fg,P0e=uo,_0e=u0e,z0e=Ir,F0e=TypeError,k0e=z0e("toPrimitive"),JW=function(e,t){if(!ZP(e)||QP(e))return e;var r=P0e(e,k0e),n;if(r){if(t===void 0&&(t="default"),n=T0e(r,e,t),!ZP(n)||QP(n))return n;throw new F0e("Can't convert object to primitive value")}return t===void 0&&(t="number"),_0e(e,t)},D0e=JW,L0e=Fg,N3=function(e){var t=D0e(e,"string");return L0e(t)?t:t+""},A0e=Cr,JP=sn,p$=A0e.document,N0e=JP(p$)&&JP(p$.createElement),MO=function(e){return N0e?p$.createElement(e):{}},H0e=mn,B0e=Yr,j0e=MO,eU=!H0e&&!B0e(function(){return Object.defineProperty(j0e("div"),"a",{get:function(){return 7}}).a!==7}),V0e=mn,W0e=nr,U0e=BW,K0e=Cu,Y0e=vc,G0e=N3,q0e=un,X0e=eU,e_=Object.getOwnPropertyDescriptor;D3.f=V0e?e_:function(t,r){if(t=Y0e(t),r=G0e(r),X0e)try{return e_(t,r)}catch{}if(q0e(t,r))return K0e(!W0e(U0e.f,t,r),t[r])};var Ya={},Z0e=mn,Q0e=Yr,tU=Z0e&&Q0e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),J0e=sn,e4e=String,t4e=TypeError,ar=function(e){if(J0e(e))return e;throw new t4e(e4e(e)+" is not an object")},r4e=mn,n4e=eU,a4e=tU,f8=ar,t_=N3,o4e=TypeError,C9=Object.defineProperty,i4e=Object.getOwnPropertyDescriptor,x9="enumerable",O9="configurable",E9="writable";Ya.f=r4e?a4e?function(t,r,n){if(f8(t),r=t_(r),f8(n),typeof t=="function"&&r==="prototype"&&"value"in n&&E9 in n&&!n[E9]){var a=i4e(t,r);a&&a[E9]&&(t[r]=n.value,n={configurable:O9 in n?n[O9]:a[O9],enumerable:x9 in n?n[x9]:a[x9],writable:!1})}return C9(t,r,n)}:C9:function(t,r,n){if(f8(t),r=t_(r),f8(n),n4e)try{return C9(t,r,n)}catch{}if("get"in n||"set"in n)throw new o4e("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var l4e=mn,c4e=Ya,s4e=Cu,mi=l4e?function(e,t,r){return c4e.f(e,t,s4e(1,r))}:function(e,t,r){return e[t]=r,e},rU={exports:{}},y$=mn,u4e=un,nU=Function.prototype,d4e=y$&&Object.getOwnPropertyDescriptor,IO=u4e(nU,"name"),f4e=IO&&function(){}.name==="something",v4e=IO&&(!y$||y$&&d4e(nU,"name").configurable),aU={EXISTS:IO,PROPER:f4e,CONFIGURABLE:v4e},h4e=Ht,m4e=Dr,b$=kg,g4e=h4e(Function.toString);m4e(b$.inspectSource)||(b$.inspectSource=function(e){return g4e(e)});var Lg=b$.inspectSource,p4e=Cr,y4e=Dr,r_=p4e.WeakMap,oU=y4e(r_)&&/native code/.test(String(r_)),b4e=Dg,S4e=a4,n_=b4e("keys"),TO=function(e){return n_[e]||(n_[e]=S4e(e))},Ag={},$4e=oU,iU=Cr,w4e=sn,C4e=mi,R9=un,M9=kg,x4e=TO,O4e=Ag,a_="Object already initialized",S$=iU.TypeError,E4e=iU.WeakMap,Vh,Af,Wh,R4e=function(e){return Wh(e)?Af(e):Vh(e,{})},M4e=function(e){return function(t){var r;if(!w4e(t)||(r=Af(t)).type!==e)throw new S$("Incompatible receiver, "+e+" required");return r}};if($4e||M9.state){var Nl=M9.state||(M9.state=new E4e);Nl.get=Nl.get,Nl.has=Nl.has,Nl.set=Nl.set,Vh=function(e,t){if(Nl.has(e))throw new S$(a_);return t.facade=e,Nl.set(e,t),t},Af=function(e){return Nl.get(e)||{}},Wh=function(e){return Nl.has(e)}}else{var ld=x4e("state");O4e[ld]=!0,Vh=function(e,t){if(R9(e,ld))throw new S$(a_);return t.facade=e,C4e(e,ld,t),t},Af=function(e){return R9(e,ld)?e[ld]:{}},Wh=function(e){return R9(e,ld)}}var Ga={set:Vh,get:Af,has:Wh,enforce:R4e,getterFor:M4e},PO=Ht,I4e=Yr,T4e=Dr,v8=un,$$=mn,P4e=aU.CONFIGURABLE,_4e=Lg,lU=Ga,z4e=lU.enforce,F4e=lU.get,o_=String,Nv=Object.defineProperty,k4e=PO("".slice),D4e=PO("".replace),L4e=PO([].join),A4e=$$&&!I4e(function(){return Nv(function(){},"length",{value:8}).length!==8}),N4e=String(String).split("String"),H4e=rU.exports=function(e,t,r){k4e(o_(t),0,7)==="Symbol("&&(t="["+D4e(o_(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!v8(e,"name")||P4e&&e.name!==t)&&($$?Nv(e,"name",{value:t,configurable:!0}):e.name=t),A4e&&r&&v8(r,"arity")&&e.length!==r.arity&&Nv(e,"length",{value:r.arity});try{r&&v8(r,"constructor")&&r.constructor?$$&&Nv(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=z4e(e);return v8(n,"source")||(n.source=L4e(N4e,typeof t=="string"?t:"")),e};Function.prototype.toString=H4e(function(){return T4e(this)&&F4e(this).source||_4e(this)},"toString");var _O=rU.exports,B4e=Dr,j4e=Ya,V4e=_O,W4e=RO,Uo=function(e,t,r,n){n||(n={});var a=n.enumerable,o=n.name!==void 0?n.name:t;if(B4e(r)&&V4e(r,o,n),n.global)a?e[t]=r:W4e(t,r);else{try{n.unsafe?e[t]&&(a=!0):delete e[t]}catch{}a?e[t]=r:j4e.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Ng={},U4e=Math.ceil,K4e=Math.floor,Y4e=Math.trunc||function(t){var r=+t;return(r>0?K4e:U4e)(r)},G4e=Y4e,Oo=function(e){var t=+e;return t!==t||t===0?0:G4e(t)},q4e=Oo,X4e=Math.max,Z4e=Math.min,Hg=function(e,t){var r=q4e(e);return r<0?X4e(r+t,0):Z4e(r,t)},Q4e=Oo,J4e=Math.min,cU=function(e){return e>0?J4e(Q4e(e),9007199254740991):0},e2e=cU,Dn=function(e){return e2e(e.length)},t2e=vc,r2e=Hg,n2e=Dn,i_=function(e){return function(t,r,n){var a=t2e(t),o=n2e(a),l=r2e(n,o),c;if(e&&r!==r){for(;o>l;)if(c=a[l++],c!==c)return!0}else for(;o>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}},a2e={includes:i_(!0),indexOf:i_(!1)},o2e=Ht,I9=un,i2e=vc,l2e=a2e.indexOf,c2e=Ag,l_=o2e([].push),sU=function(e,t){var r=i2e(e),n=0,a=[],o;for(o in r)!I9(c2e,o)&&I9(r,o)&&l_(a,o);for(;t.length>n;)I9(r,o=t[n++])&&(~l2e(a,o)||l_(a,o));return a},zO=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],s2e=sU,u2e=zO,d2e=u2e.concat("length","prototype");Ng.f=Object.getOwnPropertyNames||function(t){return s2e(t,d2e)};var uU={};uU.f=Object.getOwnPropertySymbols;var f2e=Wr,v2e=Ht,h2e=Ng,m2e=uU,g2e=ar,p2e=v2e([].concat),y2e=f2e("Reflect","ownKeys")||function(t){var r=h2e.f(g2e(t)),n=m2e.f;return n?p2e(r,n(t)):r},c_=un,b2e=y2e,S2e=D3,$2e=Ya,Bg=function(e,t,r){for(var n=b2e(t),a=$2e.f,o=S2e.f,l=0;lo&&Cfe(p,arguments[o]),p});f.prototype=u,c!=="Error"?m_?m_(f,d):g_(f,d,{name:!0}):Ofe&&a in s&&(p_(f,s,a),p_(f,s,"prepareStackTrace")),g_(f,s);try{u.name!==c&&h_(u,"name",c),u.constructor=f}catch{}return f}},bU=Pe,Efe=Cr,gc=_1,SU=yU,w$="WebAssembly",y_=Efe[w$],Uh=new Error("e",{cause:7}).cause!==7,z1=function(e,t){var r={};r[e]=SU(e,t,Uh),bU({global:!0,constructor:!0,arity:1,forced:Uh},r)},LO=function(e,t){if(y_&&y_[e]){var r={};r[e]=SU(w$+"."+e,t,Uh),bU({target:w$,stat:!0,constructor:!0,arity:1,forced:Uh},r)}};z1("Error",function(e){return function(r){return gc(e,this,arguments)}});z1("EvalError",function(e){return function(r){return gc(e,this,arguments)}});z1("RangeError",function(e){return function(r){return gc(e,this,arguments)}});z1("ReferenceError",function(e){return function(r){return gc(e,this,arguments)}});z1("SyntaxError",function(e){return function(r){return gc(e,this,arguments)}});z1("TypeError",function(e){return function(r){return gc(e,this,arguments)}});z1("URIError",function(e){return function(r){return gc(e,this,arguments)}});LO("CompileError",function(e){return function(r){return gc(e,this,arguments)}});LO("LinkError",function(e){return function(r){return gc(e,this,arguments)}});LO("RuntimeError",function(e){return function(r){return gc(e,this,arguments)}});var Rfe=Yr,Mfe=!Rfe(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ife=un,Tfe=Dr,Pfe=Sa,_fe=TO,zfe=Mfe,b_=_fe("IE_PROTO"),C$=Object,Ffe=C$.prototype,Il=zfe?C$.getPrototypeOf:function(e){var t=Pfe(e);if(Ife(t,b_))return t[b_];var r=t.constructor;return Tfe(r)&&t instanceof r?r.prototype:t instanceof C$?Ffe:null},$U={},kfe=sU,Dfe=zO,wU=Object.keys||function(t){return kfe(t,Dfe)},Lfe=mn,Afe=tU,Nfe=Ya,Hfe=ar,Bfe=vc,jfe=wU;$U.f=Lfe&&!Afe?Object.defineProperties:function(t,r){Hfe(t);for(var n=Bfe(r),a=jfe(r),o=a.length,l=0,c;o>l;)Nfe.f(t,c=a[l++],n[c]);return t};var Vfe=Wr,CU=Vfe("document","documentElement"),Wfe=ar,Ufe=$U,S_=zO,Kfe=Ag,Yfe=CU,Gfe=MO,qfe=TO,$_=">",w_="<",x$="prototype",O$="script",xU=qfe("IE_PROTO"),P9=function(){},OU=function(e){return w_+O$+$_+e+w_+"/"+O$+$_},C_=function(e){e.write(OU("")),e.close();var t=e.parentWindow.Object;return e=null,t},Xfe=function(){var e=Gfe("iframe"),t="java"+O$+":",r;return e.style.display="none",Yfe.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(OU("document.F=Object")),r.close(),r.F},h8,Bv=function(){try{h8=new ActiveXObject("htmlfile")}catch{}Bv=typeof document<"u"?document.domain&&h8?C_(h8):Xfe():C_(h8);for(var e=S_.length;e--;)delete Bv[x$][S_[e]];return Bv()};Kfe[xU]=!0;var Tl=Object.create||function(t,r){var n;return t!==null?(P9[x$]=Wfe(t),n=new P9,P9[x$]=null,n[xU]=t):n=Bv(),r===void 0?n:Ufe.f(n,r)},Zfe=fc,Qfe=Ht,Jfe=function(e){if(Zfe(e)==="Function")return Qfe(e)},x_=Jfe,e3e=Tr,t3e=zg,r3e=x_(x_.bind),Gn=function(e,t){return e3e(e),t===void 0?e:t3e?r3e(e,t):function(){return e.apply(t,arguments)}},B3={},n3e=Ir,a3e=B3,o3e=n3e("iterator"),i3e=Array.prototype,l3e=function(e){return e!==void 0&&(a3e.Array===e||i3e[o3e]===e)},c3e=mc,O_=uo,s3e=xo,u3e=B3,d3e=Ir,f3e=d3e("iterator"),j3=function(e){if(!s3e(e))return O_(e,f3e)||O_(e,"@@iterator")||u3e[c3e(e)]},v3e=nr,h3e=Tr,m3e=ar,g3e=A3,p3e=j3,y3e=TypeError,Wg=function(e,t){var r=arguments.length<2?p3e(e):t;if(h3e(r))return m3e(v3e(r,e));throw new y3e(g3e(e)+" is not iterable")},b3e=nr,E_=ar,S3e=uo,xu=function(e,t,r){var n,a;E_(e);try{if(n=S3e(e,"return"),!n){if(t==="throw")throw r;return r}n=b3e(n,e)}catch(o){a=!0,n=o}if(t==="throw")throw r;if(a)throw n;return E_(n),r},$3e=Gn,w3e=nr,C3e=ar,x3e=A3,O3e=l3e,E3e=Dn,R_=hc,R3e=Wg,M3e=j3,M_=xu,I3e=TypeError,jv=function(e,t){this.stopped=e,this.result=t},I_=jv.prototype,za=function(e,t,r){var n=r&&r.that,a=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),l=!!(r&&r.IS_ITERATOR),c=!!(r&&r.INTERRUPTED),s=$3e(t,n),u,d,f,v,h,m,p,g=function(y){return u&&M_(u,"normal",y),new jv(!0,y)},b=function(y){return a?(C3e(y),c?s(y[0],y[1],g):s(y[0],y[1])):c?s(y,g):s(y)};if(o)u=e.iterator;else if(l)u=e;else{if(d=M3e(e),!d)throw new I3e(x3e(e)+" is not iterable");if(O3e(d)){for(f=0,v=E3e(e);v>f;f++)if(h=b(e[f]),h&&R_(I_,h))return h;return new jv(!1)}u=R3e(e,d)}for(m=o?e.next:u.next;!(p=w3e(m,u)).done;){try{h=b(p.value)}catch(y){M_(u,"throw",y)}if(typeof h=="object"&&h&&R_(I_,h))return h}return new jv(!1)},T3e=Pe,P3e=hc,_3e=Il,Kh=o4,z3e=Bg,EU=Tl,_9=mi,z9=Cu,F3e=vU,k3e=DO,D3e=za,L3e=Vg,A3e=Ir,N3e=A3e("toStringTag"),Yh=Error,H3e=[].push,S0=function(t,r){var n=P3e(F9,this),a;Kh?a=Kh(new Yh,n?_3e(this):F9):(a=n?this:EU(F9),_9(a,N3e,"Error")),r!==void 0&&_9(a,"message",L3e(r)),k3e(a,S0,a.stack,1),arguments.length>2&&F3e(a,arguments[2]);var o=[];return D3e(t,H3e,{that:o}),_9(a,"errors",o),a};Kh?Kh(S0,Yh):z3e(S0,Yh,{name:!0});var F9=S0.prototype=EU(Yh.prototype,{constructor:z9(1,S0),message:z9(1,""),name:z9(1,"AggregateError")});T3e({global:!0,constructor:!0,arity:2},{AggregateError:S0});var B3e=Pe,j3e=Wr,V3e=_1,T_=Yr,W3e=yU,AO="AggregateError",P_=j3e(AO),__=!T_(function(){return P_([1]).errors[0]!==1})&&T_(function(){return P_([1],AO,{cause:7}).cause!==7});B3e({global:!0,constructor:!0,arity:2,forced:__},{AggregateError:W3e(AO,function(e){return function(r,n){return V3e(e,this,arguments)}},__,!0)});var U3e=Ir,K3e=Tl,Y3e=Ya.f,E$=U3e("unscopables"),R$=Array.prototype;R$[E$]===void 0&&Y3e(R$,E$,{configurable:!0,value:K3e(null)});var Eo=function(e){R$[E$][e]=!0},G3e=Pe,q3e=Sa,X3e=Dn,Z3e=Oo,Q3e=Eo;G3e({target:"Array",proto:!0},{at:function(t){var r=q3e(this),n=X3e(r),a=Z3e(t),o=a>=0?a:n+a;return o<0||o>=n?void 0:r[o]}});Q3e("at");var J3e=Gn,e6e=n4,t6e=Sa,r6e=Dn,z_=function(e){var t=e===1;return function(r,n,a){for(var o=t6e(r),l=e6e(o),c=r6e(l),s=J3e(n,a),u,d;c-- >0;)if(u=l[c],d=s(u,c,o),d)switch(e){case 0:return u;case 1:return c}return t?-1:void 0}},Ug={findLast:z_(0),findLastIndex:z_(1)},n6e=Pe,a6e=Ug.findLast,o6e=Eo;n6e({target:"Array",proto:!0},{findLast:function(t){return a6e(this,t,arguments.length>1?arguments[1]:void 0)}});o6e("findLast");var i6e=Pe,l6e=Ug.findLastIndex,c6e=Eo;i6e({target:"Array",proto:!0},{findLastIndex:function(t){return l6e(this,t,arguments.length>1?arguments[1]:void 0)}});c6e("findLastIndex");var s6e=fc,V3=Array.isArray||function(t){return s6e(t)==="Array"},u6e=mn,d6e=V3,f6e=TypeError,v6e=Object.getOwnPropertyDescriptor,h6e=u6e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),m6e=h6e?function(e,t){if(d6e(e)&&!v6e(e,"length").writable)throw new f6e("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},g6e=TypeError,p6e=9007199254740991,NO=function(e){if(e>p6e)throw g6e("Maximum allowed index exceeded");return e},y6e=Pe,b6e=Sa,S6e=Dn,$6e=m6e,w6e=NO,C6e=Yr,x6e=C6e(function(){return[].push.call({length:4294967296},1)!==4294967297}),O6e=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},E6e=x6e||!O6e();y6e({target:"Array",proto:!0,arity:1,forced:E6e},{push:function(t){var r=b6e(this),n=S6e(r),a=arguments.length;w6e(n+a);for(var o=0;o=0:c>s;s+=u)s in l&&(a=r(a,l[s],s,o));return a}},RU={left:F_(!1),right:F_(!0)},_6e=Yr,Kg=function(e,t){var r=[][e];return!!r&&_6e(function(){r.call(null,t||function(){return 1},1)})},z6e=Cr,F6e=fc,i4=F6e(z6e.process)==="process",k6e=Pe,D6e=RU.left,L6e=Kg,k_=L3,A6e=i4,N6e=!A6e&&k_>79&&k_<83,H6e=N6e||!L6e("reduce");k6e({target:"Array",proto:!0,forced:H6e},{reduce:function(t){var r=arguments.length;return D6e(this,t,r,r>1?arguments[1]:void 0)}});var B6e=Pe,j6e=RU.right,V6e=Kg,D_=L3,W6e=i4,U6e=!W6e&&D_>79&&D_<83,K6e=U6e||!V6e("reduceRight");B6e({target:"Array",proto:!0,forced:K6e},{reduceRight:function(t){return j6e(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Y6e=Dn,MU=function(e,t){for(var r=Y6e(e),n=new t(r),a=0;a2?r:J6e(t),o=new e(a);a>n;)o[n]=t[n++];return o},e8e=Cr,IU=function(e,t){var r=e8e[e],n=r&&r.prototype;return n&&n[t]},t8e=Pe,r8e=Ht,n8e=Tr,a8e=vc,o8e=F1,i8e=IU,l8e=Eo,c8e=Array,s8e=r8e(i8e("Array","sort"));t8e({target:"Array",proto:!0},{toSorted:function(t){t!==void 0&&n8e(t);var r=a8e(this),n=o8e(c8e,r);return s8e(n,t)}});l8e("toSorted");var u8e=Pe,d8e=Eo,f8e=NO,v8e=Dn,h8e=Hg,m8e=vc,g8e=Oo,p8e=Array,y8e=Math.max,b8e=Math.min;u8e({target:"Array",proto:!0},{toSpliced:function(t,r){var n=m8e(this),a=v8e(n),o=h8e(t,a),l=arguments.length,c=0,s,u,d,f;for(l===0?s=u=0:l===1?(s=0,u=a-o):(s=l-2,u=b8e(y8e(g8e(r),0),a-o)),d=f8e(a+s-u),f=p8e(d);c=a||l<0)throw new w8e("Incorrect index");for(var c=new t(a),s=0;s=0?a:n+a;return o<0||o>=n?void 0:Kve(r,o)}});var Gve=Pe,qve=Ht,Xve=Ml,Zve=qa,j_=qve("".charCodeAt);Gve({target:"String",proto:!0},{isWellFormed:function(){for(var t=Zve(Xve(this)),r=t.length,n=0;n=56320||++n>=r||(j_(t,n)&64512)!==56320))return!1}return!0}});var Qve=sn,Jve=fc,ehe=Ir,the=ehe("match"),rhe=function(e){var t;return Qve(e)&&((t=e[the])!==void 0?!!t:Jve(e)==="RegExp")},nhe=nr,ahe=un,ohe=hc,ihe=LU,V_=RegExp.prototype,HU=function(e){var t=e.flags;return t===void 0&&!("flags"in V_)&&!ahe(e,"flags")&&ohe(V_,e)?nhe(ihe,e):t},jO=Ht,lhe=Sa,che=Math.floor,D9=jO("".charAt),she=jO("".replace),L9=jO("".slice),uhe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,dhe=/\$([$&'`]|\d{1,2})/g,fhe=function(e,t,r,n,a,o){var l=r+e.length,c=n.length,s=dhe;return a!==void 0&&(a=lhe(a),s=uhe),she(o,s,function(u,d){var f;switch(D9(d,0)){case"$":return"$";case"&":return e;case"`":return L9(t,0,r);case"'":return L9(t,l);case"<":f=a[L9(d,1,-1)];break;default:var v=+d;if(v===0)return u;if(v>c){var h=che(v/10);return h===0?u:h<=c?n[h-1]===void 0?D9(d,1):n[h-1]+D9(d,1):u}f=n[v-1]}return f===void 0?"":f})},vhe=Pe,hhe=nr,VO=Ht,W_=Ml,mhe=Dr,ghe=xo,phe=rhe,i2=qa,yhe=uo,bhe=HU,She=fhe,$he=Ir,whe=$he("replace"),Che=TypeError,BU=VO("".indexOf);VO("".replace);var U_=VO("".slice),xhe=Math.max,K_=function(e,t,r){return r>e.length?-1:t===""?r:BU(e,t,r)};vhe({target:"String",proto:!0},{replaceAll:function(t,r){var n=W_(this),a,o,l,c,s,u,d,f,v,h=0,m=0,p="";if(!ghe(t)){if(a=phe(t),a&&(o=i2(W_(bhe(t))),!~BU(o,"g")))throw new Che("`.replaceAll` does not allow non-global regexes");if(l=yhe(t,whe),l)return hhe(l,t,n,r)}for(c=i2(n),s=i2(t),u=mhe(r),u||(r=i2(r)),d=s.length,f=xhe(1,d),h=K_(c,s,0);h!==-1;)v=u?i2(r(s,h,c)):She(s,c,h,[],void 0,r),p+=U_(c,m,h)+v,m=h+d,h=K_(c,s,h+f);return m=56320||a+1>=r||(Y_(t,a+1)&64512)!==56320?n[a]=Phe:(n[a]=A9(t,a),n[++a]=A9(t,a))}return The(n,"")}});var _he=typeof ArrayBuffer<"u"&&typeof DataView<"u",zhe=_he,UO=mn,$o=Cr,VU=Dr,Xg=sn,hu=un,KO=mc,Fhe=A3,khe=mi,T$=Uo,Dhe=Yo,Lhe=hc,Zg=Il,l4=o4,Ahe=Ir,Nhe=a4,WU=Ga,UU=WU.enforce,Hhe=WU.get,Gh=$o.Int8Array,P$=Gh&&Gh.prototype,q_=$o.Uint8ClampedArray,X_=q_&&q_.prototype,Xl=Gh&&Zg(Gh),sl=P$&&Zg(P$),Bhe=Object.prototype,YO=$o.TypeError,Z_=Ahe("toStringTag"),_$=Nhe("TYPED_ARRAY_TAG"),qh="TypedArrayConstructor",Xc=zhe&&!!l4&&KO($o.opera)!=="Opera",KU=!1,Lo,Ws,Jd,Zc={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},GO={BigInt64Array:8,BigUint64Array:8},jhe=function(t){if(!Xg(t))return!1;var r=KO(t);return r==="DataView"||hu(Zc,r)||hu(GO,r)},YU=function(e){var t=Zg(e);if(Xg(t)){var r=Hhe(t);return r&&hu(r,qh)?r[qh]:YU(t)}},GU=function(e){if(!Xg(e))return!1;var t=KO(e);return hu(Zc,t)||hu(GO,t)},Vhe=function(e){if(GU(e))return e;throw new YO("Target is not a typed array")},Whe=function(e){if(VU(e)&&(!l4||Lhe(Xl,e)))return e;throw new YO(Fhe(e)+" is not a typed array constructor")},Uhe=function(e,t,r,n){if(UO){if(r)for(var a in Zc){var o=$o[a];if(o&&hu(o.prototype,e))try{delete o.prototype[e]}catch{try{o.prototype[e]=t}catch{}}}(!sl[e]||r)&&T$(sl,e,r?t:Xc&&P$[e]||t,n)}},Khe=function(e,t,r){var n,a;if(UO){if(l4){if(r){for(n in Zc)if(a=$o[n],a&&hu(a,e))try{delete a[e]}catch{}}if(!Xl[e]||r)try{return T$(Xl,e,r?t:Xc&&Xl[e]||t)}catch{}else return}for(n in Zc)a=$o[n],a&&(!a[e]||r)&&T$(a,e,t)}};for(Lo in Zc)Ws=$o[Lo],Jd=Ws&&Ws.prototype,Jd?UU(Jd)[qh]=Ws:Xc=!1;for(Lo in GO)Ws=$o[Lo],Jd=Ws&&Ws.prototype,Jd&&(UU(Jd)[qh]=Ws);if((!Xc||!VU(Xl)||Xl===Function.prototype)&&(Xl=function(){throw new YO("Incorrect invocation")},Xc))for(Lo in Zc)$o[Lo]&&l4($o[Lo],Xl);if((!Xc||!sl||sl===Bhe)&&(sl=Xl.prototype,Xc))for(Lo in Zc)$o[Lo]&&l4($o[Lo].prototype,sl);Xc&&Zg(X_)!==sl&&l4(X_,sl);if(UO&&!hu(sl,Z_)){KU=!0,Dhe(sl,Z_,{configurable:!0,get:function(){return Xg(this)?this[_$]:void 0}});for(Lo in Zc)$o[Lo]&&khe($o[Lo],_$,Lo)}var Go={NATIVE_ARRAY_BUFFER_VIEWS:Xc,TYPED_ARRAY_TAG:KU&&_$,aTypedArray:Vhe,aTypedArrayConstructor:Whe,exportTypedArrayMethod:Uhe,exportTypedArrayStaticMethod:Khe,getTypedArrayConstructor:YU,isView:jhe,isTypedArray:GU,TypedArray:Xl,TypedArrayPrototype:sl},qU=Go,Yhe=Dn,Ghe=Oo,qhe=qU.aTypedArray,Xhe=qU.exportTypedArrayMethod;Xhe("at",function(t){var r=qhe(this),n=Yhe(r),a=Ghe(t),o=a>=0?a:n+a;return o<0||o>=n?void 0:r[o]});var XU=Go,Zhe=Ug.findLast,Qhe=XU.aTypedArray,Jhe=XU.exportTypedArrayMethod;Jhe("findLast",function(t){return Zhe(Qhe(this),t,arguments.length>1?arguments[1]:void 0)});var ZU=Go,eme=Ug.findLastIndex,tme=ZU.aTypedArray,rme=ZU.exportTypedArrayMethod;rme("findLastIndex",function(t){return eme(tme(this),t,arguments.length>1?arguments[1]:void 0)});var nme=Oo,ame=RangeError,W3=function(e){var t=nme(e);if(t<0)throw new ame("The argument can't be less than 0");return t},ome=W3,ime=RangeError,lme=function(e,t){var r=ome(e);if(r%t)throw new ime("Wrong offset");return r},QU=Cr,JU=nr,qO=Go,cme=Dn,sme=lme,ume=Sa,eK=Yr,dme=QU.RangeError,z$=QU.Int8Array,Q_=z$&&z$.prototype,tK=Q_&&Q_.set,fme=qO.aTypedArray,vme=qO.exportTypedArrayMethod,F$=!eK(function(){var e=new Uint8ClampedArray(2);return JU(tK,e,{length:1,0:3},1),e[1]!==3}),hme=F$&&qO.NATIVE_ARRAY_BUFFER_VIEWS&&eK(function(){var e=new z$(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});vme("set",function(t){fme(this);var r=sme(arguments.length>1?arguments[1]:void 0,1),n=ume(t);if(F$)return JU(tK,this,n,r);var a=this.length,o=cme(n),l=0;if(o+r>a)throw new dme("Wrong length");for(;l1?arguments[1]:void 0,o=n>2?arguments[2]:void 0;return new(Fge("Promise"))(function(l){var c=Rge(t);a!==void 0&&(a=Ege(a,o));var s=zge(c,Nge),u=s?void 0:_ge(c)||Bge,d=Mge(r)?new r:[],f=s?Ige(c,s):new Lge(Pge(Tge(c,u)));l(Age(f,a,d))})},jge=Pe,Vge=bK;jge({target:"Array",stat:!0},{fromAsync:Vge});var lz=V3,Wge=k1,Uge=sn,Kge=Ir,Yge=Kge("species"),cz=Array,Gge=function(e){var t;return lz(e)&&(t=e.constructor,Wge(t)&&(t===cz||lz(t.prototype))?t=void 0:Uge(t)&&(t=t[Yge],t===null&&(t=void 0))),t===void 0?cz:t},qge=Gge,Xge=function(e,t){return new(qge(e))(t===0?0:t)},Zge=Gn,Qge=Ht,Jge=n4,e5e=Sa,t5e=Dn,r5e=Xge,sz=Qge([].push),Is=function(e){var t=e===1,r=e===2,n=e===3,a=e===4,o=e===6,l=e===7,c=e===5||o;return function(s,u,d,f){for(var v=e5e(s),h=Jge(v),m=t5e(h),p=Zge(u,d),g=0,b=f||r5e,y=t?b(s,m):r||l?b(s,0):void 0,S,$;m>g;g++)if((c||g in h)&&(S=h[g],$=p(S,g,v),e))if(t)y[g]=$;else if($)switch(e){case 3:return!0;case 5:return S;case 6:return g;case 2:sz(y,S)}else switch(e){case 4:return!1;case 7:sz(y,S)}return o?-1:n||a?a:y}},Y3={forEach:Is(0),map:Is(1),filter:Is(2),some:Is(3),every:Is(4),find:Is(5),findIndex:Is(6),filterReject:Is(7)},n5e=Pe,a5e=Y3.filterReject,o5e=Eo;n5e({target:"Array",proto:!0,forced:!0},{filterOut:function(t){return a5e(this,t,arguments.length>1?arguments[1]:void 0)}});o5e("filterOut");var i5e=Pe,l5e=Y3.filterReject,c5e=Eo;i5e({target:"Array",proto:!0,forced:!0},{filterReject:function(t){return l5e(this,t,arguments.length>1?arguments[1]:void 0)}});c5e("filterReject");var s5e=Gn,u5e=Ht,d5e=n4,f5e=Sa,v5e=N3,h5e=Dn,m5e=Tl,g5e=F1,p5e=Array,y5e=u5e([].push),JO=function(e,t,r,n){for(var a=f5e(e),o=d5e(a),l=s5e(t,r),c=m5e(null),s=h5e(o),u=0,d,f,v;s>u;u++)v=o[u],f=v5e(l(v,u,a)),f in c?y5e(c[f],v):c[f]=[v];if(n&&(d=n(a),d!==p5e))for(f in c)c[f]=g5e(d,c[f]);return c},b5e=Pe,S5e=JO,$5e=Eo;b5e({target:"Array",proto:!0},{group:function(t){var r=arguments.length>1?arguments[1]:void 0;return S5e(this,t,r)}});$5e("group");var w5e=Pe,C5e=JO,x5e=Kg,O5e=Eo;w5e({target:"Array",proto:!0,forced:!x5e("groupBy")},{groupBy:function(t){var r=arguments.length>1?arguments[1]:void 0;return C5e(this,t,r)}});O5e("groupBy");var E5e=Gn,R5e=Ht,M5e=n4,I5e=Sa,T5e=Dn,e5=Ko,P5e=e5.Map,_5e=e5.get,z5e=e5.has,F5e=e5.set,k5e=R5e([].push),SK=function(t){for(var r=I5e(this),n=M5e(r),a=E5e(t,arguments.length>1?arguments[1]:void 0),o=new P5e,l=T5e(n),c=0,s,u;l>c;c++)u=n[c],s=a(u,c,r),z5e(o,s)?k5e(_5e(o,s),u):F5e(o,s,[u]);return o},D5e=Pe,L5e=Kg,A5e=Eo,N5e=SK;D5e({target:"Array",proto:!0,name:"groupToMap",forced:!L5e("groupByToMap")},{groupByToMap:N5e});A5e("groupByToMap");var H5e=Pe,B5e=Eo,j5e=SK,V5e=Ka;H5e({target:"Array",proto:!0,forced:V5e},{groupToMap:j5e});B5e("groupToMap");var W5e=Pe,U5e=V3,uz=Object.isFrozen,dz=function(e,t){if(!uz||!U5e(e)||!uz(e))return!1;for(var r=0,n=e.length,a;r92||D7e&&W9>94||F7e&&W9>97)return!1;var e=new ArrayBuffer(8),t=mz(e,{transfer:[e]});return e.byteLength!==0||t.byteLength!==8}),aE=Cr,L7e=P7e,A7e=nE,N7e=aE.structuredClone,gz=aE.ArrayBuffer,y8=aE.MessageChannel,D$=!1,U9,pz,b8,K9;if(A7e)D$=function(e){N7e(e,{transfer:[e]})};else if(gz)try{y8||(U9=L7e("worker_threads"),U9&&(y8=U9.MessageChannel)),y8&&(pz=new y8,b8=new gz(2),K9=function(e){pz.port1.postMessage(null,[e])},b8.byteLength===2&&(K9(b8),b8.byteLength===0&&(D$=K9)))}catch{}var RK=D$,t5=Cr,oE=Ht,MK=jg,H7e=rE,B7e=EK,j7e=OK,yz=RK,Y9=nE,V7e=t5.structuredClone,IK=t5.ArrayBuffer,L$=t5.DataView,W7e=t5.TypeError,U7e=Math.min,iE=IK.prototype,TK=L$.prototype,K7e=oE(iE.slice),bz=MK(iE,"resizable","get"),Sz=MK(iE,"maxByteLength","get"),Y7e=oE(TK.getInt8),G7e=oE(TK.setInt8),PK=(Y9||yz)&&function(e,t,r){var n=j7e(e),a=t===void 0?n:H7e(t),o=!bz||!bz(e),l;if(B7e(e))throw new W7e("ArrayBuffer is detached");if(Y9&&(e=V7e(e,{transfer:[e]}),n===a&&(r||o)))return e;if(n>=a&&(!r||o))l=K7e(e,0,a);else{var c=r&&!o&&Sz?{maxByteLength:Sz(e)}:void 0;l=new IK(a,c);for(var s=new L$(e),u=new L$(l),d=U7e(a,n),f=0;ft,s=!1,u;if(n===void 0)u=void 0;else if(Pye(n))u=n.step,s=!!n.inclusive;else if(typeof n==a)u=n;else throw new ay(s2);if(Tye(u)&&(u=c?l:-l),typeof u!=a)throw new ay(s2);if(u===1/0||u===-1/0||u===o&&t!==r)throw new jz(s2);var d=t!==t||r!==r||u!==u||r>t!=u>o;zye(this,{type:j$,start:t,end:r,step:u,inclusive:s,hitsEnd:d,currentCount:o,zero:o}),JK||(this.start=t,this.end=r,this.step=u,this.inclusive=s)},j$,function(){var t=eY(this);if(t.hitsEnd)return ny(void 0,!0);var r=t.start,n=t.end,a=t.step,o=r+a*t.currentCount++;o===n&&(t.hitsEnd=!0);var l=t.inclusive,c;return n>r?c=l?o>n:o>=n:c=l?n>o:n>=o,c?(t.hitsEnd=!0,ny(void 0,!0)):ny(o,!1)}),w8=function(e){_ye(tY.prototype,e,{get:function(){return eY(this)[e]},set:function(){},configurable:!0,enumerable:!1})};JK&&(w8("start"),w8("end"),w8("inclusive"),w8("step"));var sE=tY,Fye=Pe,kye=sE;typeof BigInt=="function"&&Fye({target:"BigInt",stat:!0,forced:!0},{range:function(t,r,n){return new kye(t,r,n,"bigint",BigInt(0),BigInt(1))}});var rY={exports:{}},nY={},Dye=N3,Lye=Ya,Aye=Cu,q3=function(e,t,r){var n=Dye(t);n in e?Lye.f(e,n,Aye(0,r)):e[n]=r},Vz=Hg,Nye=Dn,Hye=q3,Bye=Array,jye=Math.max,aY=function(e,t,r){for(var n=Nye(e),a=Vz(t,n),o=Vz(r===void 0?n:r,n),l=Bye(jye(o-a,0)),c=0;a1?arguments[1]:void 0),h;h=h?h.next:f.first;)for(v(h.value,h.key,this);h&&h.removed;)h=h.previous},has:function(d){return!!s(this,d)}}),Jz(o,r?{get:function(d){var f=s(this,d);return f&&f.value},set:function(d,f){return c(this,d===0?0:d,f)}}:{add:function(d){return c(this,d=d===0?0:d,d)}}),f2&&Wbe(o,"size",{configurable:!0,get:function(){return l(this).size}}),a},setStrong:function(e,t,r){var n=t+" Iterator",a=cy(t),o=cy(n);qbe(e,t,function(l,c){tF(this,{type:n,target:l,state:a(l),kind:c,last:void 0})},function(){for(var l=o(this),c=l.kind,s=l.last;s&&s.removed;)s=s.previous;return!l.target||!(l.last=s=s?s.next:l.state.first)?(l.target=void 0,x8(void 0,!0)):x8(c==="keys"?s.key:c==="values"?s.value:[s.key,s.value],!1)},r?"entries":"values",!r,!0),Xbe(t)}},Qbe=cY,Jbe=Zbe;Qbe("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Jbe);var eSe=Ht,rF=ls,O8=o5.getWeakData,tSe=cs,rSe=ar,nSe=xo,sy=sn,aSe=za,vY=Y3,nF=un,hY=Ga,oSe=hY.set,iSe=hY.getterFor,lSe=vY.find,cSe=vY.findIndex,sSe=eSe([].splice),uSe=0,E8=function(e){return e.frozen||(e.frozen=new mY)},mY=function(){this.entries=[]},uy=function(e,t){return lSe(e.entries,function(r){return r[0]===t})};mY.prototype={get:function(e){var t=uy(this,e);if(t)return t[1]},has:function(e){return!!uy(this,e)},set:function(e,t){var r=uy(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=cSe(this.entries,function(r){return r[0]===e});return~t&&sSe(this.entries,t,1),!!~t}};var dSe={getConstructor:function(e,t,r,n){var a=e(function(s,u){tSe(s,o),oSe(s,{type:t,id:uSe++,frozen:void 0}),nSe(u)||aSe(u,s[n],{that:s,AS_ENTRIES:r})}),o=a.prototype,l=iSe(t),c=function(s,u,d){var f=l(s),v=O8(rSe(u),!0);return v===!0?E8(f).set(u,d):v[f.id]=d,s};return rF(o,{delete:function(s){var u=l(this);if(!sy(s))return!1;var d=O8(s);return d===!0?E8(u).delete(s):d&&nF(d,u.id)&&delete d[u.id]},has:function(u){var d=l(this);if(!sy(u))return!1;var f=O8(u);return f===!0?E8(d).has(u):f&&nF(f,d.id)}}),rF(o,r?{get:function(u){var d=l(this);if(sy(u)){var f=O8(u);return f===!0?E8(d).get(u):f?f[d.id]:void 0}},set:function(u,d){return c(this,u,d)}}:{add:function(u){return c(this,u,!0)}}),a}},fSe=a5,aF=Cr,Wv=Ht,oF=ls,vSe=o5,hSe=cY,gY=dSe,R8=sn,M8=Ga.enforce,mSe=Yr,gSe=oU,X3=Object,pSe=Array.isArray,I8=X3.isExtensible,pY=X3.isFrozen,ySe=X3.isSealed,yY=X3.freeze,bSe=X3.seal,iF={},lF={},SSe=!aF.ActiveXObject&&"ActiveXObject"in aF,v2,bY=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},SY=hSe("WeakMap",bY,gY),Md=SY.prototype,Uv=Wv(Md.set),$Se=function(){return fSe&&mSe(function(){var e=yY([]);return Uv(new SY,e,1),!pY(e)})};if(gSe)if(SSe){v2=gY.getConstructor(bY,"WeakMap",!0),vSe.enable();var cF=Wv(Md.delete),T8=Wv(Md.has),sF=Wv(Md.get);oF(Md,{delete:function(e){if(R8(e)&&!I8(e)){var t=M8(this);return t.frozen||(t.frozen=new v2),cF(this,e)||t.frozen.delete(e)}return cF(this,e)},has:function(t){if(R8(t)&&!I8(t)){var r=M8(this);return r.frozen||(r.frozen=new v2),T8(this,t)||r.frozen.has(t)}return T8(this,t)},get:function(t){if(R8(t)&&!I8(t)){var r=M8(this);return r.frozen||(r.frozen=new v2),T8(this,t)?sF(this,t):r.frozen.get(t)}return sF(this,t)},set:function(t,r){if(R8(t)&&!I8(t)){var n=M8(this);n.frozen||(n.frozen=new v2),T8(this,t)?Uv(this,t,r):n.frozen.set(t,r)}else Uv(this,t,r);return this}})}else $Se()&&oF(Md,{set:function(t,r){var n;return pSe(t)&&(pY(t)?n=iF:ySe(t)&&(n=lF)),Uv(this,t,r),n===iF&&yY(t),n===lF&&bSe(t),this}});var $Y=Wr,wSe=Tl,uF=sn,CSe=Object,xSe=TypeError,OSe=$Y("Map"),ESe=$Y("WeakMap"),em=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=wSe(null)};em.prototype.get=function(e,t){return this[e]||(this[e]=t())};em.prototype.next=function(e,t,r){var n=r?this.objectsByIndex[e]||(this.objectsByIndex[e]=new ESe):this.primitives||(this.primitives=new OSe),a=n.get(t);return a||n.set(t,a=new em),a};var dF=new em,wY=function(){var e=dF,t=arguments.length,r,n;for(r=0;r>1,c=t===23?Fc(2,-24)-Fc(2,-77):0,s=e<0||e===0&&1/e<0?1:0,u=0,d,f,v;for(e=LSe(e),e!==e||e===1/0?(f=e!==e?1:0,d=o):(d=ASe(NSe(e)/HSe),v=Fc(2,-d),e*v<1&&(d--,v*=2),d+l>=1?e+=c/v:e+=c*Fc(2,1-l),e*v>=2&&(d++,v/=2),d+l>=o?(f=0,d=o):d+l>=1?(f=(e*v-1)*Fc(2,t),d+=l):(f=e*Fc(2,l-1)*Fc(2,t),d=0));t>=8;)n[u++]=f&255,f/=256,t-=8;for(d=d<0;)n[u++]=d&255,d/=256,a-=8;return n[--u]|=s*128,n},jSe=function(e,t){var r=e.length,n=r*8-t-1,a=(1<>1,l=n-7,c=r-1,s=e[c--],u=s&127,d;for(s>>=7;l>0;)u=u*256+e[c--],l-=8;for(d=u&(1<<-l)-1,u>>=-l,l+=t;l>0;)d=d*256+e[c--],l-=8;if(u===0)u=1-o;else{if(u===a)return d?NaN:s?-1/0:1/0;d+=Fc(2,t),u-=o}return(s?-1:1)*d*Fc(2,u-t)},CY={pack:BSe,unpack:jSe},VSe=Pe,WSe=Ht,USe=CY.unpack,KSe=WSe(DataView.prototype.getUint16);VSe({target:"DataView",proto:!0},{getFloat16:function(t){var r=KSe(this,t,arguments.length>1?arguments[1]:!1);return USe([r&255,r>>8&255],10)}});var YSe=Pe,GSe=Ht,qSe=GSe(DataView.prototype.getUint8);YSe({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(t){return qSe(this,t)}});var XSe=Math.sign||function(t){var r=+t;return r===0||r!==r?r:r<0?-1:1},ZSe=XSe,QSe=Math.abs,xY=2220446049250313e-31,hF=1/xY,JSe=function(e){return e+hF-hF},OY=function(e,t,r,n){var a=+e,o=QSe(a),l=ZSe(a);if(or||s!==s?l*(1/0):l*s},e$e=OY,t$e=.0009765625,r$e=65504,n$e=6103515625e-14,EY=Math.f16round||function(t){return e$e(t,t$e,r$e,n$e)},a$e=Pe,o$e=Ht,i$e=mc,l$e=rE,c$e=CY.pack,s$e=EY,u$e=TypeError,d$e=o$e(DataView.prototype.setUint16);a$e({target:"DataView",proto:!0},{setFloat16:function(t,r){if(i$e(this)!=="DataView")throw new u$e("Incorrect receiver");var n=l$e(t),a=c$e(s$e(r),10,2);return d$e(this,n,a[1]<<8|a[0],arguments.length>2?arguments[2]:!1)}});var f$e=Math.round,v$e=function(e){var t=f$e(e);return t<0?0:t>255?255:t&255},h$e=Pe,m$e=Ht,g$e=mc,p$e=rE,y$e=v$e,b$e=TypeError,S$e=m$e(DataView.prototype.setUint8);h$e({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(t,r){if(g$e(this)!=="DataView")throw new b$e("Incorrect receiver");var n=p$e(t);return S$e(this,n,y$e(r))}});var $$e=Pe,tm=mn,w$e=Wr,mF=Tr,C$e=cs,RY=Uo,x$e=ls,O$e=Yo,MY=Ir,IY=Ga,dy=FK,E$e=w$e("SuppressedError"),R$e=ReferenceError,M$e=MY("dispose"),I$e=MY("toStringTag"),i5="DisposableStack",T$e=IY.set,rm=IY.getterFor(i5),fy="sync-dispose",df="disposed",P$e="pending",P8=function(e){var t=rm(e);if(t.state===df)throw new R$e(i5+" already disposed");return t},vE=function(){T$e(C$e(this,C0),{type:i5,state:P$e,stack:[]}),tm||(this.disposed=!1)},C0=vE.prototype;x$e(C0,{dispose:function(){var t=rm(this);if(t.state!==df){t.state=df,tm||(this.disposed=!0);for(var r=t.stack,n=r.length,a=!1,o;n;){var l=r[--n];r[n]=null;try{l()}catch(c){a?o=new E$e(c,o):(a=!0,o=c)}}if(t.stack=null,a)throw o}},use:function(t){return dy(P8(this),t,fy),t},adopt:function(t,r){var n=P8(this);return mF(r),dy(n,void 0,fy,function(){r(t)}),t},defer:function(t){var r=P8(this);mF(t),dy(r,void 0,fy,t)},move:function(){var t=P8(this),r=new vE;return rm(r).stack=t.stack,t.stack=[],t.state=df,tm||(this.disposed=!0),r}});tm&&O$e(C0,"disposed",{configurable:!0,get:function(){return rm(this).state===df}});RY(C0,M$e,C0.dispose,{name:"dispose"});RY(C0,I$e,i5,{nonWritable:!0});$$e({global:!0,constructor:!0},{DisposableStack:vE});var _$e=Ht,z$e=Tr,TY=function(){return _$e(z$e(this))},F$e=Pe,k$e=TY;F$e({target:"Function",proto:!0,forced:!0},{demethodize:k$e});var D$e=Pe,L$e=Ht,A$e=Dr,N$e=Lg,H$e=un,B$e=mn,j$e=Object.getOwnPropertyDescriptor,PY=/^\s*class\b/,V$e=L$e(PY.exec),W$e=function(e){try{if(!B$e||!V$e(PY,N$e(e)))return!1}catch{}var t=j$e(e,"prototype");return!!t&&H$e(t,"writable")&&!t.writable};D$e({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(t){return A$e(t)&&!W$e(t)}});var U$e=Pe,K$e=k1;U$e({target:"Function",stat:!0,forced:!0},{isConstructor:K$e});var Y$e=Ir,G$e=Ya.f,gF=Y$e("metadata"),pF=Function.prototype;pF[gF]===void 0&&G$e(pF,gF,{value:null});var q$e=Pe,X$e=TY;q$e({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:X$e});var Z$e=Pe,Q$e=Cr,J$e=cs,ewe=ar,twe=Dr,rwe=Il,nwe=Yo,awe=q3,owe=Yr,hE=un,iwe=Ir,Ql=u4.IteratorPrototype,lwe=mn,vy="constructor",_Y="Iterator",yF=iwe("toStringTag"),zY=TypeError,hy=Q$e[_Y],FY=!twe(hy)||hy.prototype!==Ql||!owe(function(){hy({})}),mE=function(){if(J$e(this,Ql),rwe(this)===Ql)throw new zY("Abstract class Iterator not directly constructable")},kY=function(e,t){lwe?nwe(Ql,e,{configurable:!0,get:function(){return t},set:function(r){if(ewe(this),this===Ql)throw new zY("You can't redefine this property");hE(this,e)?this[e]=r:awe(this,e,r)}}):Ql[e]=t};hE(Ql,yF)||kY(yF,_Y);(FY||!hE(Ql,vy)||Ql[vy]===Object)&&kY(vy,mE);mE.prototype=Ql;Z$e({global:!0,constructor:!0,forced:FY},{Iterator:mE});var cwe=nr,swe=Tl,uwe=mi,dwe=ls,fwe=Ir,DY=Ga,vwe=uo,hwe=u4.IteratorPrototype,my=gi,gy=xu,mwe=fwe("toStringTag"),LY="IteratorHelper",AY="WrapForValidIterator",gwe=DY.set,NY=function(e){var t=DY.getterFor(e?AY:LY);return dwe(swe(hwe),{next:function(){var n=t(this);if(e)return n.nextHandler();try{var a=n.done?void 0:n.nextHandler();return my(a,n.done)}catch(o){throw n.done=!0,o}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var a=vwe(n,"return");return a?cwe(a,n):my(void 0,!0)}if(r.inner)try{gy(r.inner.iterator,"normal")}catch(o){return gy(n,"throw",o)}return gy(n,"normal"),my(void 0,!0)}})},pwe=NY(!0),HY=NY(!1);uwe(HY,mwe,"Iterator Helper");var d4=function(e,t){var r=function(a,o){o?(o.iterator=a.iterator,o.next=a.next):o=a,o.type=t?AY:LY,o.nextHandler=e,o.counter=0,o.done=!1,gwe(this,o)};return r.prototype=t?pwe:HY,r},ywe=ar,bwe=xu,BY=function(e,t,r,n){try{return n?t(ywe(r)[0],r[1]):t(r)}catch(a){bwe(e,"throw",a)}},Swe=nr,$we=Tr,jY=ar,wwe=Ln,Cwe=d4,xwe=BY,Owe=Cwe(function(){var e=this.iterator,t=jY(Swe(this.next,e)),r=this.done=!!t.done;if(!r)return xwe(e,this.mapper,[t.value,this.counter++],!0)}),VY=function(t){return jY(this),$we(t),new Owe(wwe(this),{mapper:t})},Ewe=nr,Rwe=VY,Mwe=function(e,t){return[t,e]},WY=function(){return Ewe(Rwe,this,Mwe)},Iwe=Pe,Twe=WY;Iwe({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:Twe});var Pwe=nr,_we=Uo,zwe=uo,Fwe=un,kwe=Ir,bF=u4.IteratorPrototype,SF=kwe("dispose");Fwe(bF,SF)||_we(bF,SF,function(){var e=zwe(this,"return");e&&Pwe(e,this)});var Dwe=Pe,$F=nr,V$=ar,Lwe=Ln,Awe=n5,Nwe=W3,Hwe=d4,Bwe=Ka,jwe=Hwe(function(){for(var e=this.iterator,t=this.next,r,n;this.remaining;)if(this.remaining--,r=V$($F(t,e)),n=this.done=!!r.done,n)return;if(r=V$($F(t,e)),n=this.done=!!r.done,!n)return r.value});Dwe({target:"Iterator",proto:!0,real:!0,forced:Bwe},{drop:function(t){V$(this);var r=Nwe(Awe(+t));return new jwe(Lwe(this),{remaining:r})}});var Vwe=Pe,Wwe=za,Uwe=Tr,Kwe=ar,Ywe=Ln;Vwe({target:"Iterator",proto:!0,real:!0},{every:function(t){Kwe(this),Uwe(t);var r=Ywe(this),n=0;return!Wwe(r,function(a,o){if(!t(a,n++))return o()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var Gwe=Pe,qwe=nr,Xwe=Tr,UY=ar,Zwe=Ln,Qwe=d4,Jwe=BY,eCe=Ka,tCe=Qwe(function(){for(var e=this.iterator,t=this.predicate,r=this.next,n,a,o;;){if(n=UY(qwe(r,e)),a=this.done=!!n.done,a)return;if(o=n.value,Jwe(e,t,[o,this.counter++],!0))return o}});Gwe({target:"Iterator",proto:!0,real:!0,forced:eCe},{filter:function(t){return UY(this),Xwe(t),new tCe(Zwe(this),{predicate:t})}});var rCe=Pe,nCe=za,aCe=Tr,oCe=ar,iCe=Ln;rCe({target:"Iterator",proto:!0,real:!0},{find:function(t){oCe(this),aCe(t);var r=iCe(this),n=0;return nCe(r,function(a,o){if(t(a,n++))return o(a)},{IS_RECORD:!0,INTERRUPTED:!0}).result}});var lCe=nr,wF=ar,cCe=Ln,sCe=j3,KY=function(e,t){(!t||typeof e!="string")&&wF(e);var r=sCe(e);return cCe(wF(r!==void 0?lCe(r,e):e))},uCe=Pe,CF=nr,dCe=Tr,W$=ar,fCe=Ln,vCe=KY,hCe=d4,xF=xu,mCe=Ka,gCe=hCe(function(){for(var e=this.iterator,t=this.mapper,r,n;;){if(n=this.inner)try{if(r=W$(CF(n.next,n.iterator)),!r.done)return r.value;this.inner=null}catch(a){xF(e,"throw",a)}if(r=W$(CF(this.next,e)),this.done=!!r.done)return;try{this.inner=vCe(t(r.value,this.counter++),!1)}catch(a){xF(e,"throw",a)}}});uCe({target:"Iterator",proto:!0,real:!0,forced:mCe},{flatMap:function(t){return W$(this),dCe(t),new gCe(fCe(this),{mapper:t,inner:null})}});var pCe=Pe,yCe=za,bCe=Tr,SCe=ar,$Ce=Ln;pCe({target:"Iterator",proto:!0,real:!0},{forEach:function(t){SCe(this),bCe(t);var r=$Ce(this),n=0;yCe(r,function(a){t(a,n++)},{IS_RECORD:!0})}});var wCe=Pe,CCe=nr,xCe=Sa,OCe=hc,ECe=u4.IteratorPrototype,RCe=d4,MCe=KY,ICe=Ka,TCe=RCe(function(){return CCe(this.next,this.iterator)},!0);wCe({target:"Iterator",stat:!0,forced:ICe},{from:function(t){var r=MCe(typeof t=="string"?xCe(t):t,!0);return OCe(ECe,r.iterator)?r.iterator:new TCe(r)}});var PCe=Pe,_Ce=WY;PCe({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:_Ce});var zCe=Pe,FCe=VY,kCe=Ka;zCe({target:"Iterator",proto:!0,real:!0,forced:kCe},{map:FCe});var DCe=Pe,OF=sE,LCe=TypeError;DCe({target:"Iterator",stat:!0,forced:!0},{range:function(t,r,n){if(typeof t=="number")return new OF(t,r,n,"number",0,1);if(typeof t=="bigint")return new OF(t,r,n,"bigint",BigInt(0),BigInt(1));throw new LCe("Incorrect Iterator.range arguments")}});var ACe=Pe,NCe=za,HCe=Tr,BCe=ar,jCe=Ln,VCe=TypeError;ACe({target:"Iterator",proto:!0,real:!0},{reduce:function(t){BCe(this),HCe(t);var r=jCe(this),n=arguments.length<2,a=n?void 0:arguments[1],o=0;if(NCe(r,function(l){n?(n=!1,a=l):a=t(a,l,o),o++},{IS_RECORD:!0}),n)throw new VCe("Reduce of empty iterator with no initial value");return a}});var WCe=Pe,UCe=za,KCe=Tr,YCe=ar,GCe=Ln;WCe({target:"Iterator",proto:!0,real:!0},{some:function(t){YCe(this),KCe(t);var r=GCe(this),n=0;return UCe(r,function(a,o){if(t(a,n++))return o()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var qCe=Pe,XCe=nr,YY=ar,ZCe=Ln,QCe=n5,JCe=W3,exe=d4,txe=xu,rxe=Ka,nxe=exe(function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,txe(e,"normal",void 0);var t=YY(XCe(this.next,e)),r=this.done=!!t.done;if(!r)return t.value});qCe({target:"Iterator",proto:!0,real:!0,forced:rxe},{take:function(t){YY(this);var r=JCe(QCe(+t));return new nxe(ZCe(this),{remaining:r})}});var axe=Pe,oxe=ar,ixe=za,lxe=Ln,cxe=[].push;axe({target:"Iterator",proto:!0,real:!0},{toArray:function(){var t=[];return ixe(lxe(oxe(this)),cxe,{that:t,IS_RECORD:!0}),t}});var sxe=Pe,uxe=ar,dxe=Jg,fxe=qK,EF=Ln,vxe=Ka;sxe({target:"Iterator",proto:!0,real:!0,forced:vxe},{toAsync:function(){return new fxe(EF(new dxe(EF(uxe(this)))))}});var hxe=Yr,GY=!hxe(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e}),mxe=sn,gxe=Ga.get,qY=function(t){if(!mxe(t))return!1;var r=gxe(t);return!!r&&r.type==="RawJSON"},pxe=Pe,yxe=GY,bxe=qY;pxe({target:"JSON",stat:!0,forced:!yxe},{isRawJSON:bxe});var gE=Ht,Sxe=un,_8=SyntaxError,$xe=parseInt,wxe=String.fromCharCode,Cxe=gE("".charAt),RF=gE("".slice),MF=gE(/./.exec),IF={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":` -`,"\\r":"\r","\\t":" "},xxe=/^[\da-f]{4}$/i,Oxe=/^[\u0000-\u001F]$/,XY=function(e,t){for(var r=!0,n="";t1?arguments[1]:void 0);return $Oe(r,function(a,o){if(!n(a,o,r))return!1},!0)!==!1}});var wOe=Pe,COe=Gn,xOe=qo,tG=Ko,OOe=Pl,EOe=tG.Map,ROe=tG.set;wOe({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var r=xOe(this),n=COe(t,arguments.length>1?arguments[1]:void 0),a=new EOe;return OOe(r,function(o,l){n(o,l,r)&&ROe(a,l,o)}),a}});var MOe=Pe,IOe=Gn,TOe=qo,POe=Pl;MOe({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var r=TOe(this),n=IOe(t,arguments.length>1?arguments[1]:void 0),a=POe(r,function(o,l){if(n(o,l,r))return{value:o}},!0);return a&&a.value}});var _Oe=Pe,zOe=Gn,FOe=qo,kOe=Pl;_Oe({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var r=FOe(this),n=zOe(t,arguments.length>1?arguments[1]:void 0),a=kOe(r,function(o,l){if(n(o,l,r))return{key:l}},!0);return a&&a.key}});var DOe=k1,LOe=A3,AOe=TypeError,SE=function(e){if(DOe(e))return e;throw new AOe(LOe(e)+" is not a constructor")},NOe=Gn,HOe=nr,BOe=Tr,jOe=SE,VOe=xo,UF=za,KF=[].push,u5=function(t){var r=arguments.length,n=r>1?arguments[1]:void 0,a,o,l,c;return jOe(this),a=n!==void 0,a&&BOe(n),VOe(t)?new this:(o=[],a?(l=0,c=NOe(n,r>2?arguments[2]:void 0),UF(t,function(s){HOe(KF,o,c(s,l++))})):UF(t,KF,{that:o}),new this(o))},WOe=Pe,UOe=u5;WOe({target:"Map",stat:!0,forced:!0},{from:UOe});var KOe=function(e,t){return e===t||e!==e&&t!==t},YOe=Pe,GOe=KOe,qOe=qo,XOe=Pl;YOe({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return XOe(qOe(this),function(r){if(GOe(r,t))return!0},!0)===!0}});var ZOe=Pe,QOe=nr,JOe=za,eEe=Dr,YF=Tr,tEe=Ko.Map;ZOe({target:"Map",stat:!0,forced:!0},{keyBy:function(t,r){var n=eEe(this)?this:tEe,a=new n;YF(r);var o=YF(a.set);return JOe(t,function(l){QOe(o,a,r(l),l)}),a}});var rEe=Pe,nEe=qo,aEe=Pl;rEe({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var r=aEe(nEe(this),function(n,a){if(n===t)return{key:a}},!0);return r&&r.key}});var oEe=Pe,iEe=Gn,lEe=qo,rG=Ko,cEe=Pl,sEe=rG.Map,uEe=rG.set;oEe({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var r=lEe(this),n=iEe(t,arguments.length>1?arguments[1]:void 0),a=new sEe;return cEe(r,function(o,l){uEe(a,n(o,l,r),o)}),a}});var dEe=Pe,fEe=Gn,vEe=qo,nG=Ko,hEe=Pl,mEe=nG.Map,gEe=nG.set;dEe({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var r=vEe(this),n=fEe(t,arguments.length>1?arguments[1]:void 0),a=new mEe;return hEe(r,function(o,l){gEe(a,l,n(o,l,r))}),a}});var pEe=Pe,yEe=qo,bEe=za,SEe=Ko.set;pEe({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var r=yEe(this),n=arguments.length,a=0;a1?arguments[1]:void 0);return zEe(r,function(a,o){if(n(a,o,r))return!0},!0)===!0}});var FEe=Pe,GF=Tr,kEe=qo,wE=Ko,DEe=TypeError,LEe=wE.get,AEe=wE.has,NEe=wE.set;FEe({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,r){var n=kEe(this),a=arguments.length;GF(r);var o=AEe(n,t);if(!o&&a<3)throw new DEe("Updating absent value");var l=o?LEe(n,t):GF(a>2?arguments[2]:void 0)(t,n);return NEe(n,t,r(l,t,n)),n}});var z8=nr,wy=Tr,F8=Dr,HEe=ar,BEe=TypeError,CE=function(t,r){var n=HEe(this),a=wy(n.get),o=wy(n.has),l=wy(n.set),c=arguments.length>2?arguments[2]:void 0,s;if(!F8(r)&&!F8(c))throw new BEe("At least one callback required");return z8(o,n,t)?(s=z8(a,n,t),F8(r)&&(s=r(s),z8(l,n,t,s))):F8(c)&&(s=c(),z8(l,n,t,s)),s},jEe=Pe,VEe=CE;jEe({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:VEe});var WEe=Pe,UEe=CE;WEe({target:"Map",proto:!0,real:!0,forced:!0},{upsert:UEe});var KEe=Pe,YEe=Math.min,GEe=Math.max;KEe({target:"Math",stat:!0,forced:!0},{clamp:function(t,r,n){return YEe(n,GEe(r,t))}});var qEe=Pe;qEe({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180});var XEe=Pe,ZEe=180/Math.PI;XEe({target:"Math",stat:!0,forced:!0},{degrees:function(t){return t*ZEe}});var aG=Math.scale||function(t,r,n,a,o){var l=+t,c=+r,s=+n,u=+a,d=+o;return l!==l||c!==c||s!==s||u!==u||d!==d?NaN:l===1/0||l===-1/0?l:(l-c)*(d-u)/(s-c)+u},QEe=OY,JEe=11920928955078125e-23,eRe=34028234663852886e22,tRe=11754943508222875e-54,rRe=Math.fround||function(t){return QEe(t,JEe,eRe,tRe)},nRe=Pe,aRe=aG,oRe=rRe;nRe({target:"Math",stat:!0,forced:!0},{fscale:function(t,r,n,a,o){return oRe(aRe(t,r,n,a,o))}});var iRe=Pe,lRe=EY;iRe({target:"Math",stat:!0},{f16round:lRe});var cRe=Pe;cRe({target:"Math",stat:!0,forced:!0},{iaddh:function(t,r,n,a){var o=t>>>0,l=r>>>0,c=n>>>0;return l+(a>>>0)+((o&c|(o|c)&~(o+c>>>0))>>>31)|0}});var sRe=Pe;sRe({target:"Math",stat:!0,forced:!0},{imulh:function(t,r){var n=65535,a=+t,o=+r,l=a&n,c=o&n,s=a>>16,u=o>>16,d=(s*c>>>0)+(l*c>>>16);return s*u+(d>>16)+((l*u>>>0)+(d&n)>>16)}});var uRe=Pe;uRe({target:"Math",stat:!0,forced:!0},{isubh:function(t,r,n,a){var o=t>>>0,l=r>>>0,c=n>>>0;return l-(a>>>0)-((~o&c|~(o^c)&o-c>>>0)>>>31)|0}});var dRe=Pe;dRe({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI});var fRe=Pe,vRe=Math.PI/180;fRe({target:"Math",stat:!0,forced:!0},{radians:function(t){return t*vRe}});var hRe=Pe,mRe=aG;hRe({target:"Math",stat:!0,forced:!0},{scale:mRe});var gRe=Cr,pRe=gRe.isFinite,yRe=Number.isFinite||function(t){return typeof t=="number"&&pRe(t)},bRe=Pe,SRe=ar,$Re=yRe,wRe=G3,CRe=gi,oG=Ga,iG="Seeded Random",lG=iG+" Generator",xRe='Math.seededPRNG() argument should have a "seed" field with a finite value.',ORe=oG.set,ERe=oG.getterFor(lG),RRe=TypeError,MRe=wRe(function(t){ORe(this,{type:lG,seed:t%2147483647})},iG,function(){var t=ERe(this),r=t.seed=(t.seed*1103515245+12345)%2147483647;return CRe((r&1073741823)/1073741823,!1)});bRe({target:"Math",stat:!0,forced:!0},{seededPRNG:function(t){var r=SRe(t).seed;if(!$Re(r))throw new RRe(xRe);return new MRe(r)}});var IRe=Pe;IRe({target:"Math",stat:!0,forced:!0},{signbit:function(t){var r=+t;return r===r&&r===0?1/r===-1/0:r<0}});var TRe=Pe;TRe({target:"Math",stat:!0,forced:!0},{umulh:function(t,r){var n=65535,a=+t,o=+r,l=a&n,c=o&n,s=a>>>16,u=o>>>16,d=(s*c>>>0)+(l*c>>>16);return s*u+(d>>>16)+((l*u>>>0)+(d&n)>>>16)}});var PRe=Pe,Z3=Ht,_Re=Oo,h2="Invalid number representation",zRe="Invalid radix",FRe=RangeError,k8=SyntaxError,kRe=TypeError,qF=parseInt,DRe=Math.pow,cG=/^[\d.a-z]+$/,LRe=Z3("".charAt),ARe=Z3(cG.exec),NRe=Z3(1 .toString),HRe=Z3("".slice),BRe=Z3("".split);PRe({target:"Number",stat:!0,forced:!0},{fromString:function(t,r){var n=1;if(typeof t!="string")throw new kRe(h2);if(!t.length)throw new k8(h2);if(LRe(t,0)==="-"&&(n=-1,t=HRe(t,1),!t.length))throw new k8(h2);var a=r===void 0?10:_Re(r);if(a<2||a>36)throw new FRe(zRe);if(!ARe(cG,t))throw new k8(h2);var o=BRe(t,"."),l=qF(o[0],a);if(o.length>1&&(l+=qF(o[1],a)/DRe(a,o[1].length)),a===10&&NRe(l,a)!==t)throw new k8(h2);return n*l}});var jRe=Pe,VRe=sE;jRe({target:"Number",stat:!0,forced:!0},{range:function(t,r,n){return new VRe(t,r,n,"number",0,1)}});var sG=Ga,WRe=G3,D8=gi,URe=un,KRe=wU,YRe=Sa,uG="Object Iterator",GRe=sG.set,qRe=sG.getterFor(uG),xE=WRe(function(t,r){var n=YRe(t);GRe(this,{type:uG,mode:r,object:n,keys:KRe(n),index:0})},"Object",function(){for(var t=qRe(this),r=t.keys;;){if(r===null||t.index>=r.length)return t.object=t.keys=null,D8(void 0,!0);var n=r[t.index++],a=t.object;if(URe(a,n)){switch(t.mode){case"keys":return D8(n,!1);case"values":return D8(a[n],!1)}return D8([n,a[n]],!1)}}}),XRe=Pe,ZRe=xE;XRe({target:"Object",stat:!0,forced:!0},{iterateEntries:function(t){return new ZRe(t,"entries")}});var QRe=Pe,JRe=xE;QRe({target:"Object",stat:!0,forced:!0},{iterateKeys:function(t){return new JRe(t,"keys")}});var eMe=Pe,tMe=xE;eMe({target:"Object",stat:!0,forced:!0},{iterateValues:function(t){return new tMe(t,"values")}});var rMe=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}},nMe=Pe,Kv=nr,Q3=mn,aMe=dY,dG=Tr,oMe=ar,iMe=cs,fG=Dr,lMe=xo,cMe=sn,Yv=uo,sMe=Uo,OE=ls,vG=Yo,zd=rMe,uMe=Ir,hG=Ga,dMe=uMe("observable"),EE="Observable",mG="Subscription",gG="SubscriptionObserver",RE=hG.getterFor,ME=hG.set,fMe=RE(EE),pG=RE(mG),Gv=RE(gG),yG=function(e){this.observer=oMe(e),this.cleanup=void 0,this.subscriptionObserver=void 0};yG.prototype={type:mG,clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(t){zd(t)}}},close:function(){if(!Q3){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var IE=function(e,t){var r=ME(this,new yG(e)),n;Q3||(this.closed=!1);try{(n=Yv(e,"start"))&&Kv(n,e,this)}catch(c){zd(c)}if(!r.isClosed()){var a=r.subscriptionObserver=new TE(r);try{var o=t(a),l=o;lMe(o)||(r.cleanup=fG(o.unsubscribe)?function(){l.unsubscribe()}:dG(o))}catch(c){a.error(c);return}r.isClosed()&&r.clean()}};IE.prototype=OE({},{unsubscribe:function(){var t=pG(this);t.isClosed()||(t.close(),t.clean())}});Q3&&vG(IE.prototype,"closed",{configurable:!0,get:function(){return pG(this).isClosed()}});var TE=function(e){ME(this,{type:gG,subscriptionState:e}),Q3||(this.closed=!1)};TE.prototype=OE({},{next:function(t){var r=Gv(this).subscriptionState;if(!r.isClosed()){var n=r.observer;try{var a=Yv(n,"next");a&&Kv(a,n,t)}catch(o){zd(o)}}},error:function(t){var r=Gv(this).subscriptionState;if(!r.isClosed()){var n=r.observer;r.close();try{var a=Yv(n,"error");a?Kv(a,n,t):zd(t)}catch(o){zd(o)}r.clean()}},complete:function(){var t=Gv(this).subscriptionState;if(!t.isClosed()){var r=t.observer;t.close();try{var n=Yv(r,"complete");n&&Kv(n,r)}catch(a){zd(a)}t.clean()}}});Q3&&vG(TE.prototype,"closed",{configurable:!0,get:function(){return Gv(this).subscriptionState.isClosed()}});var bG=function(t){iMe(this,PE),ME(this,{type:EE,subscriber:dG(t)})},PE=bG.prototype;OE(PE,{subscribe:function(t){var r=arguments.length;return new IE(fG(t)?{next:t,error:r>1?arguments[1]:void 0,complete:r>2?arguments[2]:void 0}:cMe(t)?t:{},fMe(this).subscriber)}});sMe(PE,dMe,function(){return this});nMe({global:!0,constructor:!0,forced:!0},{Observable:bG});aMe(EE);var vMe=Pe,hMe=Wr,mMe=nr,XF=ar,gMe=k1,pMe=Wg,yMe=uo,bMe=za,SMe=Ir,$Me=SMe("observable");vMe({target:"Observable",stat:!0,forced:!0},{from:function(t){var r=gMe(this)?this:hMe("Observable"),n=yMe(XF(t),$Me);if(n){var a=XF(mMe(n,t));return a.constructor===r?a:new r(function(l){return a.subscribe(l)})}var o=pMe(t);return new r(function(l){bMe(o,function(c,s){if(l.next(c),l.closed)return s()},{IS_ITERATOR:!0,INTERRUPTED:!0}),l.complete()})}});var wMe=Pe,SG=Wr,CMe=k1,xMe=SG("Array");wMe({target:"Observable",stat:!0,forced:!0},{of:function(){for(var t=CMe(this)?this:SG("Observable"),r=arguments.length,n=xMe(r),a=0;a?@[\\\\\\]^`{|}~"+MIe+"]","g");EIe({target:"RegExp",stat:!0,forced:!0},{escape:function(t){var r=RIe(t),n=IIe(r,0);return(n>47&&n<58?"\\x3":"")+TIe(r,PIe,"\\$&")}});var Cy=Ht,L8=Set.prototype,Ro={Set,add:Cy(L8.add),has:Cy(L8.has),remove:Cy(L8.delete),proto:L8},_Ie=Ro.has,fo=function(e){return _Ie(e),e},zIe=Pe,FIe=fo,kIe=Ro.add;zIe({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var t=FIe(this),r=0,n=arguments.length;r1?arguments[1]:void 0);return TTe(r,function(a){if(!n(a,a,r))return!1},!0)!==!1}});var PTe=Pe,_Te=Gn,zTe=fo,WG=Ro,FTe=pi,kTe=WG.Set,DTe=WG.add;PTe({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(t){var r=zTe(this),n=_Te(t,arguments.length>1?arguments[1]:void 0),a=new kTe;return FTe(r,function(o){n(o,o,r)&&DTe(a,o)}),a}});var LTe=Pe,ATe=Gn,NTe=fo,HTe=pi;LTe({target:"Set",proto:!0,real:!0,forced:!0},{find:function(t){var r=NTe(this),n=ATe(t,arguments.length>1?arguments[1]:void 0),a=HTe(r,function(o){if(n(o,o,r))return{value:o}},!0);return a&&a.value}});var BTe=Pe,jTe=u5;BTe({target:"Set",stat:!0,forced:!0},{from:jTe});var VTe=fo,kE=Ro,WTe=e6,UTe=D1,KTe=pi,YTe=Ou,GTe=kE.Set,ik=kE.add,qTe=kE.has,UG=function(t){var r=VTe(this),n=UTe(t),a=new GTe;return WTe(r)>n.size?YTe(n.getIterator(),function(o){qTe(r,o)&&ik(a,o)}):KTe(r,function(o){n.includes(o)&&ik(a,o)}),a},XTe=Pe,ZTe=Yr,QTe=UG,JTe=L1,ePe=!JTe("intersection")||ZTe(function(){return Array.from(new Set([1,2,3]).intersection(new Set([3,2])))!=="3,2"});XTe({target:"Set",proto:!0,real:!0,forced:ePe},{intersection:QTe});var tPe=Pe,rPe=nr,nPe=A1,aPe=UG;tPe({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(t){return rPe(aPe,this,nPe(t))}});var oPe=fo,iPe=Ro.has,lPe=e6,cPe=D1,sPe=pi,uPe=Ou,dPe=xu,KG=function(t){var r=oPe(this),n=cPe(t);if(lPe(r)<=n.size)return sPe(r,function(o){if(n.includes(o))return!1},!0)!==!1;var a=n.getIterator();return uPe(a,function(o){if(iPe(r,o))return dPe(a,"normal",!1)})!==!1},fPe=Pe,vPe=KG,hPe=L1;fPe({target:"Set",proto:!0,real:!0,forced:!hPe("isDisjointFrom")},{isDisjointFrom:vPe});var mPe=Pe,gPe=nr,pPe=A1,yPe=KG;mPe({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(t){return gPe(yPe,this,pPe(t))}});var bPe=fo,SPe=e6,$Pe=pi,wPe=D1,YG=function(t){var r=bPe(this),n=wPe(t);return SPe(r)>n.size?!1:$Pe(r,function(a){if(!n.includes(a))return!1},!0)!==!1},CPe=Pe,xPe=YG,OPe=L1;CPe({target:"Set",proto:!0,real:!0,forced:!OPe("isSubsetOf")},{isSubsetOf:xPe});var EPe=Pe,RPe=nr,MPe=A1,IPe=YG;EPe({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(t){return RPe(IPe,this,MPe(t))}});var TPe=fo,PPe=Ro.has,_Pe=e6,zPe=D1,FPe=Ou,kPe=xu,GG=function(t){var r=TPe(this),n=zPe(t);if(_Pe(r)1?arguments[1]:void 0),a=new JPe;return QPe(r,function(o){e_e(a,n(o,o,r))}),a}});var t_e=Pe,r_e=d5;t_e({target:"Set",stat:!0,forced:!0},{of:r_e});var n_e=Pe,a_e=Tr,o_e=fo,i_e=pi,l_e=TypeError;n_e({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(t){var r=o_e(this),n=arguments.length<2,a=n?void 0:arguments[1];if(a_e(t),i_e(r,function(o){n?(n=!1,a=o):a=t(a,o,o,r)}),n)throw new l_e("Reduce of empty set with no initial value");return a}});var c_e=Pe,s_e=Gn,u_e=fo,d_e=pi;c_e({target:"Set",proto:!0,real:!0,forced:!0},{some:function(t){var r=u_e(this),n=s_e(t,arguments.length>1?arguments[1]:void 0);return d_e(r,function(a){if(n(a,a,r))return!0},!0)===!0}});var f_e=fo,DE=Ro,v_e=FE,h_e=D1,m_e=Ou,g_e=DE.add,p_e=DE.has,y_e=DE.remove,ZG=function(t){var r=f_e(this),n=h_e(t).getIterator(),a=v_e(r);return m_e(n,function(o){p_e(r,o)?y_e(a,o):g_e(a,o)}),a},b_e=Pe,S_e=ZG,$_e=L1;b_e({target:"Set",proto:!0,real:!0,forced:!$_e("symmetricDifference")},{symmetricDifference:S_e});var w_e=Pe,C_e=nr,x_e=A1,O_e=ZG;w_e({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(t){return C_e(O_e,this,x_e(t))}});var E_e=fo,R_e=Ro.add,M_e=FE,I_e=D1,T_e=Ou,QG=function(t){var r=E_e(this),n=I_e(t).getIterator(),a=M_e(r);return T_e(n,function(o){R_e(a,o)}),a},P_e=Pe,__e=QG,z_e=L1;P_e({target:"Set",proto:!0,real:!0,forced:!z_e("union")},{union:__e});var F_e=Pe,k_e=nr,D_e=A1,L_e=QG;F_e({target:"Set",proto:!0,real:!0,forced:!0},{union:function(t){return k_e(L_e,this,D_e(t))}});var LE=Ht,A_e=Oo,N_e=qa,H_e=Ml,B_e=LE("".charAt),lk=LE("".charCodeAt),j_e=LE("".slice),ck=function(e){return function(t,r){var n=N_e(H_e(t)),a=A_e(r),o=n.length,l,c;return a<0||a>=o?e?"":void 0:(l=lk(n,a),l<55296||l>56319||a+1===o||(c=lk(n,a+1))<56320||c>57343?e?B_e(n,a):l:e?j_e(n,a,a+2):(l-55296<<10)+(c-56320)+65536)}},JG={codeAt:ck(!1),charAt:ck(!0)},V_e=Pe,W_e=JG.charAt,U_e=Ml,K_e=Oo,Y_e=qa;V_e({target:"String",proto:!0,forced:!0},{at:function(t){var r=Y_e(U_e(this)),n=r.length,a=K_e(t),o=a>=0?a:n+a;return o<0||o>=n?void 0:W_e(r,o)}});var eq=Ht,G_e=vc,sk=qa,q_e=Dn,X_e=TypeError,uk=eq([].push),Z_e=eq([].join),tq=function(t){var r=G_e(t),n=q_e(r);if(!n)return"";for(var a=arguments.length,o=[],l=0;;){var c=r[l++];if(c===void 0)throw new X_e("Incorrect template");if(uk(o,sk(c)),l===n)return Z_e(o,"");l=r.length?dk(void 0,!0):(a=oze(r,n),t.index+=a.length,dk({codePoint:aze(a,0),position:n},!1))});eze({target:"String",proto:!0,forced:!0},{codePoints:function(){return new cze(nze(rze(this)))}});var A8=Ht,N8=WeakMap.prototype,f5={WeakMap,set:A8(N8.set),get:A8(N8.get),has:A8(N8.has),remove:A8(N8.delete)},sze=Wr,v5=Ht,uze=String.fromCharCode,dze=sze("String","fromCodePoint"),xy=v5("".charAt),oq=v5("".charCodeAt),fk=v5("".indexOf),vk=v5("".slice),Z$=48,iq=57,hk=97,fze=102,mk=65,vze=70,gk=function(e,t){var r=oq(e,t);return r>=Z$&&r<=iq},Oy=function(e,t,r){if(r>=e.length)return-1;for(var n=0;t=Z$&&e<=iq?e-Z$:e>=hk&&e<=fze?e-hk+10:e>=mk&&e<=vze?e-mk+10:-1},mze=function(e){for(var t="",r=0,n=0,a;(n=fk(e,"\\",n))>-1;){if(t+=vk(e,r,n),++n===e.length)return;var o=xy(e,n++);switch(o){case"b":t+="\b";break;case"t":t+=" ";break;case"n":t+=` +function xO(e,t){for(var r=0;rn[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var an=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function en(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a2=function(e){return e&&e.Math===Math&&e},Cr=a2(typeof globalThis=="object"&&globalThis)||a2(typeof window=="object"&&window)||a2(typeof self=="object"&&self)||a2(typeof an=="object"&&an)||a2(typeof an=="object"&&an)||function(){return this}()||Function("return this")(),D3={},Yr=function(e){try{return!!e()}catch{return!0}},Ede=Yr,mn=!Ede(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Rde=Yr,zg=!Rde(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),Ide=zg,d8=Function.prototype.call,nr=Ide?d8.bind(d8):function(){return d8.apply(d8,arguments)},BW={},VW={}.propertyIsEnumerable,jW=Object.getOwnPropertyDescriptor,Mde=jW&&!VW.call({1:2},1);BW.f=Mde?function(t){var r=jW(this,t);return!!r&&r.enumerable}:VW;var Cu=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},WW=zg,UW=Function.prototype,m$=UW.call,Tde=WW&&UW.bind.bind(m$,m$),Ht=WW?Tde:function(e){return function(){return m$.apply(e,arguments)}},KW=Ht,Pde=KW({}.toString),_de=KW("".slice),fc=function(e){return _de(Pde(e),8,-1)},zde=Ht,Fde=Yr,kde=fc,g9=Object,Dde=zde("".split),n4=Fde(function(){return!g9("z").propertyIsEnumerable(0)})?function(e){return kde(e)==="String"?Dde(e,""):g9(e)}:g9,xo=function(e){return e==null},Lde=xo,Ade=TypeError,Il=function(e){if(Lde(e))throw new Ade("Can't call method on "+e);return e},Nde=n4,Hde=Il,vc=function(e){return Nde(Hde(e))},g$=typeof document=="object"&&document.all,Bde=typeof g$>"u"&&g$!==void 0,YW={all:g$,IS_HTMLDDA:Bde},GW=YW,Vde=GW.all,Dr=GW.IS_HTMLDDA?function(e){return typeof e=="function"||e===Vde}:function(e){return typeof e=="function"},BP=Dr,qW=YW,jde=qW.all,sn=qW.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:BP(e)||e===jde}:function(e){return typeof e=="object"?e!==null:BP(e)},p9=Cr,Wde=Dr,Ude=function(e){return Wde(e)?e:void 0},Wr=function(e,t){return arguments.length<2?Ude(p9[e]):p9[e]&&p9[e][t]},Kde=Ht,hc=Kde({}.isPrototypeOf),OO=typeof navigator<"u"&&String(navigator.userAgent)||"",XW=Cr,y9=OO,VP=XW.process,jP=XW.Deno,WP=VP&&VP.versions||jP&&jP.version,UP=WP&&WP.v8,rl,Vh;UP&&(rl=UP.split("."),Vh=rl[0]>0&&rl[0]<4?1:+(rl[0]+rl[1]));!Vh&&y9&&(rl=y9.match(/Edge\/(\d+)/),(!rl||rl[1]>=74)&&(rl=y9.match(/Chrome\/(\d+)/),rl&&(Vh=+rl[1])));var L3=Vh,KP=L3,Yde=Yr,Gde=Cr,qde=Gde.String,EO=!!Object.getOwnPropertySymbols&&!Yde(function(){var e=Symbol("symbol detection");return!qde(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&KP&&KP<41}),Xde=EO,ZW=Xde&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Zde=Wr,Qde=Dr,Jde=hc,e0e=ZW,t0e=Object,Fg=e0e?function(e){return typeof e=="symbol"}:function(e){var t=Zde("Symbol");return Qde(t)&&Jde(t.prototype,t0e(e))},r0e=String,A3=function(e){try{return r0e(e)}catch{return"Object"}},n0e=Dr,a0e=A3,o0e=TypeError,Tr=function(e){if(n0e(e))return e;throw new o0e(a0e(e)+" is not a function")},i0e=Tr,l0e=xo,uo=function(e,t){var r=e[t];return l0e(r)?void 0:i0e(r)},b9=nr,S9=Dr,$9=sn,c0e=TypeError,s0e=function(e,t){var r,n;if(t==="string"&&S9(r=e.toString)&&!$9(n=b9(r,e))||S9(r=e.valueOf)&&!$9(n=b9(r,e))||t!=="string"&&S9(r=e.toString)&&!$9(n=b9(r,e)))return n;throw new c0e("Can't convert object to primitive value")},QW={exports:{}},Ka=!1,YP=Cr,u0e=Object.defineProperty,RO=function(e,t){try{u0e(YP,e,{value:t,configurable:!0,writable:!0})}catch{YP[e]=t}return t},d0e=Cr,f0e=RO,GP="__core-js_shared__",v0e=d0e[GP]||f0e(GP,{}),kg=v0e,qP=kg;(QW.exports=function(e,t){return qP[e]||(qP[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Dg=QW.exports,h0e=Il,m0e=Object,Sa=function(e){return m0e(h0e(e))},g0e=Ht,p0e=Sa,y0e=g0e({}.hasOwnProperty),un=Object.hasOwn||function(t,r){return y0e(p0e(t),r)},b0e=Ht,S0e=0,$0e=Math.random(),w0e=b0e(1 .toString),a4=function(e){return"Symbol("+(e===void 0?"":e)+")_"+w0e(++S0e+$0e,36)},C0e=Cr,x0e=Dg,XP=un,O0e=a4,E0e=EO,R0e=ZW,_d=C0e.Symbol,w9=x0e("wks"),I0e=R0e?_d.for||_d:_d&&_d.withoutSetter||O0e,Mr=function(e){return XP(w9,e)||(w9[e]=E0e&&XP(_d,e)?_d[e]:I0e("Symbol."+e)),w9[e]},M0e=nr,ZP=sn,QP=Fg,T0e=uo,P0e=s0e,_0e=Mr,z0e=TypeError,F0e=_0e("toPrimitive"),JW=function(e,t){if(!ZP(e)||QP(e))return e;var r=T0e(e,F0e),n;if(r){if(t===void 0&&(t="default"),n=M0e(r,e,t),!ZP(n)||QP(n))return n;throw new z0e("Can't convert object to primitive value")}return t===void 0&&(t="number"),P0e(e,t)},k0e=JW,D0e=Fg,N3=function(e){var t=k0e(e,"string");return D0e(t)?t:t+""},L0e=Cr,JP=sn,p$=L0e.document,A0e=JP(p$)&&JP(p$.createElement),IO=function(e){return A0e?p$.createElement(e):{}},N0e=mn,H0e=Yr,B0e=IO,eU=!N0e&&!H0e(function(){return Object.defineProperty(B0e("div"),"a",{get:function(){return 7}}).a!==7}),V0e=mn,j0e=nr,W0e=BW,U0e=Cu,K0e=vc,Y0e=N3,G0e=un,q0e=eU,e_=Object.getOwnPropertyDescriptor;D3.f=V0e?e_:function(t,r){if(t=K0e(t),r=Y0e(r),q0e)try{return e_(t,r)}catch{}if(G0e(t,r))return U0e(!j0e(W0e.f,t,r),t[r])};var Ya={},X0e=mn,Z0e=Yr,tU=X0e&&Z0e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Q0e=sn,J0e=String,e4e=TypeError,ar=function(e){if(Q0e(e))return e;throw new e4e(J0e(e)+" is not an object")},t4e=mn,r4e=eU,n4e=tU,f8=ar,t_=N3,a4e=TypeError,C9=Object.defineProperty,o4e=Object.getOwnPropertyDescriptor,x9="enumerable",O9="configurable",E9="writable";Ya.f=t4e?n4e?function(t,r,n){if(f8(t),r=t_(r),f8(n),typeof t=="function"&&r==="prototype"&&"value"in n&&E9 in n&&!n[E9]){var a=o4e(t,r);a&&a[E9]&&(t[r]=n.value,n={configurable:O9 in n?n[O9]:a[O9],enumerable:x9 in n?n[x9]:a[x9],writable:!1})}return C9(t,r,n)}:C9:function(t,r,n){if(f8(t),r=t_(r),f8(n),r4e)try{return C9(t,r,n)}catch{}if("get"in n||"set"in n)throw new a4e("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var i4e=mn,l4e=Ya,c4e=Cu,mi=i4e?function(e,t,r){return l4e.f(e,t,c4e(1,r))}:function(e,t,r){return e[t]=r,e},rU={exports:{}},y$=mn,s4e=un,nU=Function.prototype,u4e=y$&&Object.getOwnPropertyDescriptor,MO=s4e(nU,"name"),d4e=MO&&function(){}.name==="something",f4e=MO&&(!y$||y$&&u4e(nU,"name").configurable),aU={EXISTS:MO,PROPER:d4e,CONFIGURABLE:f4e},v4e=Ht,h4e=Dr,b$=kg,m4e=v4e(Function.toString);h4e(b$.inspectSource)||(b$.inspectSource=function(e){return m4e(e)});var Lg=b$.inspectSource,g4e=Cr,p4e=Dr,r_=g4e.WeakMap,oU=p4e(r_)&&/native code/.test(String(r_)),y4e=Dg,b4e=a4,n_=y4e("keys"),TO=function(e){return n_[e]||(n_[e]=b4e(e))},Ag={},S4e=oU,iU=Cr,$4e=sn,w4e=mi,R9=un,I9=kg,C4e=TO,x4e=Ag,a_="Object already initialized",S$=iU.TypeError,O4e=iU.WeakMap,jh,Af,Wh,E4e=function(e){return Wh(e)?Af(e):jh(e,{})},R4e=function(e){return function(t){var r;if(!$4e(t)||(r=Af(t)).type!==e)throw new S$("Incompatible receiver, "+e+" required");return r}};if(S4e||I9.state){var Nl=I9.state||(I9.state=new O4e);Nl.get=Nl.get,Nl.has=Nl.has,Nl.set=Nl.set,jh=function(e,t){if(Nl.has(e))throw new S$(a_);return t.facade=e,Nl.set(e,t),t},Af=function(e){return Nl.get(e)||{}},Wh=function(e){return Nl.has(e)}}else{var ld=C4e("state");x4e[ld]=!0,jh=function(e,t){if(R9(e,ld))throw new S$(a_);return t.facade=e,w4e(e,ld,t),t},Af=function(e){return R9(e,ld)?e[ld]:{}},Wh=function(e){return R9(e,ld)}}var Ga={set:jh,get:Af,has:Wh,enforce:E4e,getterFor:R4e},PO=Ht,I4e=Yr,M4e=Dr,v8=un,$$=mn,T4e=aU.CONFIGURABLE,P4e=Lg,lU=Ga,_4e=lU.enforce,z4e=lU.get,o_=String,Nv=Object.defineProperty,F4e=PO("".slice),k4e=PO("".replace),D4e=PO([].join),L4e=$$&&!I4e(function(){return Nv(function(){},"length",{value:8}).length!==8}),A4e=String(String).split("String"),N4e=rU.exports=function(e,t,r){F4e(o_(t),0,7)==="Symbol("&&(t="["+k4e(o_(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!v8(e,"name")||T4e&&e.name!==t)&&($$?Nv(e,"name",{value:t,configurable:!0}):e.name=t),L4e&&r&&v8(r,"arity")&&e.length!==r.arity&&Nv(e,"length",{value:r.arity});try{r&&v8(r,"constructor")&&r.constructor?$$&&Nv(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=_4e(e);return v8(n,"source")||(n.source=D4e(A4e,typeof t=="string"?t:"")),e};Function.prototype.toString=N4e(function(){return M4e(this)&&z4e(this).source||P4e(this)},"toString");var _O=rU.exports,H4e=Dr,B4e=Ya,V4e=_O,j4e=RO,Uo=function(e,t,r,n){n||(n={});var a=n.enumerable,o=n.name!==void 0?n.name:t;if(H4e(r)&&V4e(r,o,n),n.global)a?e[t]=r:j4e(t,r);else{try{n.unsafe?e[t]&&(a=!0):delete e[t]}catch{}a?e[t]=r:B4e.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Ng={},W4e=Math.ceil,U4e=Math.floor,K4e=Math.trunc||function(t){var r=+t;return(r>0?U4e:W4e)(r)},Y4e=K4e,Oo=function(e){var t=+e;return t!==t||t===0?0:Y4e(t)},G4e=Oo,q4e=Math.max,X4e=Math.min,Hg=function(e,t){var r=G4e(e);return r<0?q4e(r+t,0):X4e(r,t)},Z4e=Oo,Q4e=Math.min,cU=function(e){return e>0?Q4e(Z4e(e),9007199254740991):0},J4e=cU,Dn=function(e){return J4e(e.length)},e2e=vc,t2e=Hg,r2e=Dn,i_=function(e){return function(t,r,n){var a=e2e(t),o=r2e(a),l=t2e(n,o),c;if(e&&r!==r){for(;o>l;)if(c=a[l++],c!==c)return!0}else for(;o>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}},n2e={includes:i_(!0),indexOf:i_(!1)},a2e=Ht,M9=un,o2e=vc,i2e=n2e.indexOf,l2e=Ag,l_=a2e([].push),sU=function(e,t){var r=o2e(e),n=0,a=[],o;for(o in r)!M9(l2e,o)&&M9(r,o)&&l_(a,o);for(;t.length>n;)M9(r,o=t[n++])&&(~i2e(a,o)||l_(a,o));return a},zO=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],c2e=sU,s2e=zO,u2e=s2e.concat("length","prototype");Ng.f=Object.getOwnPropertyNames||function(t){return c2e(t,u2e)};var uU={};uU.f=Object.getOwnPropertySymbols;var d2e=Wr,f2e=Ht,v2e=Ng,h2e=uU,m2e=ar,g2e=f2e([].concat),p2e=d2e("Reflect","ownKeys")||function(t){var r=v2e.f(m2e(t)),n=h2e.f;return n?g2e(r,n(t)):r},c_=un,y2e=p2e,b2e=D3,S2e=Ya,Bg=function(e,t,r){for(var n=y2e(t),a=S2e.f,o=b2e.f,l=0;lo&&wfe(p,arguments[o]),p});f.prototype=u,c!=="Error"?m_?m_(f,d):g_(f,d,{name:!0}):xfe&&a in s&&(p_(f,s,a),p_(f,s,"prepareStackTrace")),g_(f,s);try{u.name!==c&&h_(u,"name",c),u.constructor=f}catch{}return f}},bU=Pe,Ofe=Cr,gc=_1,SU=yU,w$="WebAssembly",y_=Ofe[w$],Uh=new Error("e",{cause:7}).cause!==7,z1=function(e,t){var r={};r[e]=SU(e,t,Uh),bU({global:!0,constructor:!0,arity:1,forced:Uh},r)},LO=function(e,t){if(y_&&y_[e]){var r={};r[e]=SU(w$+"."+e,t,Uh),bU({target:w$,stat:!0,constructor:!0,arity:1,forced:Uh},r)}};z1("Error",function(e){return function(r){return gc(e,this,arguments)}});z1("EvalError",function(e){return function(r){return gc(e,this,arguments)}});z1("RangeError",function(e){return function(r){return gc(e,this,arguments)}});z1("ReferenceError",function(e){return function(r){return gc(e,this,arguments)}});z1("SyntaxError",function(e){return function(r){return gc(e,this,arguments)}});z1("TypeError",function(e){return function(r){return gc(e,this,arguments)}});z1("URIError",function(e){return function(r){return gc(e,this,arguments)}});LO("CompileError",function(e){return function(r){return gc(e,this,arguments)}});LO("LinkError",function(e){return function(r){return gc(e,this,arguments)}});LO("RuntimeError",function(e){return function(r){return gc(e,this,arguments)}});var Efe=Yr,Rfe=!Efe(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ife=un,Mfe=Dr,Tfe=Sa,Pfe=TO,_fe=Rfe,b_=Pfe("IE_PROTO"),C$=Object,zfe=C$.prototype,Ml=_fe?C$.getPrototypeOf:function(e){var t=Tfe(e);if(Ife(t,b_))return t[b_];var r=t.constructor;return Mfe(r)&&t instanceof r?r.prototype:t instanceof C$?zfe:null},$U={},Ffe=sU,kfe=zO,wU=Object.keys||function(t){return Ffe(t,kfe)},Dfe=mn,Lfe=tU,Afe=Ya,Nfe=ar,Hfe=vc,Bfe=wU;$U.f=Dfe&&!Lfe?Object.defineProperties:function(t,r){Nfe(t);for(var n=Hfe(r),a=Bfe(r),o=a.length,l=0,c;o>l;)Afe.f(t,c=a[l++],n[c]);return t};var Vfe=Wr,CU=Vfe("document","documentElement"),jfe=ar,Wfe=$U,S_=zO,Ufe=Ag,Kfe=CU,Yfe=IO,Gfe=TO,$_=">",w_="<",x$="prototype",O$="script",xU=Gfe("IE_PROTO"),P9=function(){},OU=function(e){return w_+O$+$_+e+w_+"/"+O$+$_},C_=function(e){e.write(OU("")),e.close();var t=e.parentWindow.Object;return e=null,t},qfe=function(){var e=Yfe("iframe"),t="java"+O$+":",r;return e.style.display="none",Kfe.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(OU("document.F=Object")),r.close(),r.F},h8,Bv=function(){try{h8=new ActiveXObject("htmlfile")}catch{}Bv=typeof document<"u"?document.domain&&h8?C_(h8):qfe():C_(h8);for(var e=S_.length;e--;)delete Bv[x$][S_[e]];return Bv()};Ufe[xU]=!0;var Tl=Object.create||function(t,r){var n;return t!==null?(P9[x$]=jfe(t),n=new P9,P9[x$]=null,n[xU]=t):n=Bv(),r===void 0?n:Wfe.f(n,r)},Xfe=fc,Zfe=Ht,Qfe=function(e){if(Xfe(e)==="Function")return Zfe(e)},x_=Qfe,Jfe=Tr,e3e=zg,t3e=x_(x_.bind),Gn=function(e,t){return Jfe(e),t===void 0?e:e3e?t3e(e,t):function(){return e.apply(t,arguments)}},B3={},r3e=Mr,n3e=B3,a3e=r3e("iterator"),o3e=Array.prototype,i3e=function(e){return e!==void 0&&(n3e.Array===e||o3e[a3e]===e)},l3e=mc,O_=uo,c3e=xo,s3e=B3,u3e=Mr,d3e=u3e("iterator"),V3=function(e){if(!c3e(e))return O_(e,d3e)||O_(e,"@@iterator")||s3e[l3e(e)]},f3e=nr,v3e=Tr,h3e=ar,m3e=A3,g3e=V3,p3e=TypeError,Wg=function(e,t){var r=arguments.length<2?g3e(e):t;if(v3e(r))return h3e(f3e(r,e));throw new p3e(m3e(e)+" is not iterable")},y3e=nr,E_=ar,b3e=uo,xu=function(e,t,r){var n,a;E_(e);try{if(n=b3e(e,"return"),!n){if(t==="throw")throw r;return r}n=y3e(n,e)}catch(o){a=!0,n=o}if(t==="throw")throw r;if(a)throw n;return E_(n),r},S3e=Gn,$3e=nr,w3e=ar,C3e=A3,x3e=i3e,O3e=Dn,R_=hc,E3e=Wg,R3e=V3,I_=xu,I3e=TypeError,Vv=function(e,t){this.stopped=e,this.result=t},M_=Vv.prototype,za=function(e,t,r){var n=r&&r.that,a=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),l=!!(r&&r.IS_ITERATOR),c=!!(r&&r.INTERRUPTED),s=S3e(t,n),u,d,f,v,h,m,p,g=function(y){return u&&I_(u,"normal",y),new Vv(!0,y)},b=function(y){return a?(w3e(y),c?s(y[0],y[1],g):s(y[0],y[1])):c?s(y,g):s(y)};if(o)u=e.iterator;else if(l)u=e;else{if(d=R3e(e),!d)throw new I3e(C3e(e)+" is not iterable");if(x3e(d)){for(f=0,v=O3e(e);v>f;f++)if(h=b(e[f]),h&&R_(M_,h))return h;return new Vv(!1)}u=E3e(e,d)}for(m=o?e.next:u.next;!(p=$3e(m,u)).done;){try{h=b(p.value)}catch(y){I_(u,"throw",y)}if(typeof h=="object"&&h&&R_(M_,h))return h}return new Vv(!1)},M3e=Pe,T3e=hc,P3e=Ml,Kh=o4,_3e=Bg,EU=Tl,_9=mi,z9=Cu,z3e=vU,F3e=DO,k3e=za,D3e=jg,L3e=Mr,A3e=L3e("toStringTag"),Yh=Error,N3e=[].push,S0=function(t,r){var n=T3e(F9,this),a;Kh?a=Kh(new Yh,n?P3e(this):F9):(a=n?this:EU(F9),_9(a,A3e,"Error")),r!==void 0&&_9(a,"message",D3e(r)),F3e(a,S0,a.stack,1),arguments.length>2&&z3e(a,arguments[2]);var o=[];return k3e(t,N3e,{that:o}),_9(a,"errors",o),a};Kh?Kh(S0,Yh):_3e(S0,Yh,{name:!0});var F9=S0.prototype=EU(Yh.prototype,{constructor:z9(1,S0),message:z9(1,""),name:z9(1,"AggregateError")});M3e({global:!0,constructor:!0,arity:2},{AggregateError:S0});var H3e=Pe,B3e=Wr,V3e=_1,T_=Yr,j3e=yU,AO="AggregateError",P_=B3e(AO),__=!T_(function(){return P_([1]).errors[0]!==1})&&T_(function(){return P_([1],AO,{cause:7}).cause!==7});H3e({global:!0,constructor:!0,arity:2,forced:__},{AggregateError:j3e(AO,function(e){return function(r,n){return V3e(e,this,arguments)}},__,!0)});var W3e=Mr,U3e=Tl,K3e=Ya.f,E$=W3e("unscopables"),R$=Array.prototype;R$[E$]===void 0&&K3e(R$,E$,{configurable:!0,value:U3e(null)});var Eo=function(e){R$[E$][e]=!0},Y3e=Pe,G3e=Sa,q3e=Dn,X3e=Oo,Z3e=Eo;Y3e({target:"Array",proto:!0},{at:function(t){var r=G3e(this),n=q3e(r),a=X3e(t),o=a>=0?a:n+a;return o<0||o>=n?void 0:r[o]}});Z3e("at");var Q3e=Gn,J3e=n4,e6e=Sa,t6e=Dn,z_=function(e){var t=e===1;return function(r,n,a){for(var o=e6e(r),l=J3e(o),c=t6e(l),s=Q3e(n,a),u,d;c-- >0;)if(u=l[c],d=s(u,c,o),d)switch(e){case 0:return u;case 1:return c}return t?-1:void 0}},Ug={findLast:z_(0),findLastIndex:z_(1)},r6e=Pe,n6e=Ug.findLast,a6e=Eo;r6e({target:"Array",proto:!0},{findLast:function(t){return n6e(this,t,arguments.length>1?arguments[1]:void 0)}});a6e("findLast");var o6e=Pe,i6e=Ug.findLastIndex,l6e=Eo;o6e({target:"Array",proto:!0},{findLastIndex:function(t){return i6e(this,t,arguments.length>1?arguments[1]:void 0)}});l6e("findLastIndex");var c6e=fc,j3=Array.isArray||function(t){return c6e(t)==="Array"},s6e=mn,u6e=j3,d6e=TypeError,f6e=Object.getOwnPropertyDescriptor,v6e=s6e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),h6e=v6e?function(e,t){if(u6e(e)&&!f6e(e,"length").writable)throw new d6e("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},m6e=TypeError,g6e=9007199254740991,NO=function(e){if(e>g6e)throw m6e("Maximum allowed index exceeded");return e},p6e=Pe,y6e=Sa,b6e=Dn,S6e=h6e,$6e=NO,w6e=Yr,C6e=w6e(function(){return[].push.call({length:4294967296},1)!==4294967297}),x6e=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},O6e=C6e||!x6e();p6e({target:"Array",proto:!0,arity:1,forced:O6e},{push:function(t){var r=y6e(this),n=b6e(r),a=arguments.length;$6e(n+a);for(var o=0;o=0:c>s;s+=u)s in l&&(a=r(a,l[s],s,o));return a}},RU={left:F_(!1),right:F_(!0)},P6e=Yr,Kg=function(e,t){var r=[][e];return!!r&&P6e(function(){r.call(null,t||function(){return 1},1)})},_6e=Cr,z6e=fc,i4=z6e(_6e.process)==="process",F6e=Pe,k6e=RU.left,D6e=Kg,k_=L3,L6e=i4,A6e=!L6e&&k_>79&&k_<83,N6e=A6e||!D6e("reduce");F6e({target:"Array",proto:!0,forced:N6e},{reduce:function(t){var r=arguments.length;return k6e(this,t,r,r>1?arguments[1]:void 0)}});var H6e=Pe,B6e=RU.right,V6e=Kg,D_=L3,j6e=i4,W6e=!j6e&&D_>79&&D_<83,U6e=W6e||!V6e("reduceRight");H6e({target:"Array",proto:!0,forced:U6e},{reduceRight:function(t){return B6e(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var K6e=Dn,IU=function(e,t){for(var r=K6e(e),n=new t(r),a=0;a2?r:Q6e(t),o=new e(a);a>n;)o[n]=t[n++];return o},J6e=Cr,MU=function(e,t){var r=J6e[e],n=r&&r.prototype;return n&&n[t]},e8e=Pe,t8e=Ht,r8e=Tr,n8e=vc,a8e=F1,o8e=MU,i8e=Eo,l8e=Array,c8e=t8e(o8e("Array","sort"));e8e({target:"Array",proto:!0},{toSorted:function(t){t!==void 0&&r8e(t);var r=n8e(this),n=a8e(l8e,r);return c8e(n,t)}});i8e("toSorted");var s8e=Pe,u8e=Eo,d8e=NO,f8e=Dn,v8e=Hg,h8e=vc,m8e=Oo,g8e=Array,p8e=Math.max,y8e=Math.min;s8e({target:"Array",proto:!0},{toSpliced:function(t,r){var n=h8e(this),a=f8e(n),o=v8e(t,a),l=arguments.length,c=0,s,u,d,f;for(l===0?s=u=0:l===1?(s=0,u=a-o):(s=l-2,u=y8e(p8e(m8e(r),0),a-o)),d=d8e(a+s-u),f=g8e(d);c=a||l<0)throw new $8e("Incorrect index");for(var c=new t(a),s=0;s=0?a:n+a;return o<0||o>=n?void 0:Uve(r,o)}});var Yve=Pe,Gve=Ht,qve=Il,Xve=qa,V_=Gve("".charCodeAt);Yve({target:"String",proto:!0},{isWellFormed:function(){for(var t=Xve(qve(this)),r=t.length,n=0;n=56320||++n>=r||(V_(t,n)&64512)!==56320))return!1}return!0}});var Zve=sn,Qve=fc,Jve=Mr,ehe=Jve("match"),the=function(e){var t;return Zve(e)&&((t=e[ehe])!==void 0?!!t:Qve(e)==="RegExp")},rhe=nr,nhe=un,ahe=hc,ohe=LU,j_=RegExp.prototype,HU=function(e){var t=e.flags;return t===void 0&&!("flags"in j_)&&!nhe(e,"flags")&&ahe(j_,e)?rhe(ohe,e):t},VO=Ht,ihe=Sa,lhe=Math.floor,D9=VO("".charAt),che=VO("".replace),L9=VO("".slice),she=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,uhe=/\$([$&'`]|\d{1,2})/g,dhe=function(e,t,r,n,a,o){var l=r+e.length,c=n.length,s=uhe;return a!==void 0&&(a=ihe(a),s=she),che(o,s,function(u,d){var f;switch(D9(d,0)){case"$":return"$";case"&":return e;case"`":return L9(t,0,r);case"'":return L9(t,l);case"<":f=a[L9(d,1,-1)];break;default:var v=+d;if(v===0)return u;if(v>c){var h=lhe(v/10);return h===0?u:h<=c?n[h-1]===void 0?D9(d,1):n[h-1]+D9(d,1):u}f=n[v-1]}return f===void 0?"":f})},fhe=Pe,vhe=nr,jO=Ht,W_=Il,hhe=Dr,mhe=xo,ghe=the,i2=qa,phe=uo,yhe=HU,bhe=dhe,She=Mr,$he=She("replace"),whe=TypeError,BU=jO("".indexOf);jO("".replace);var U_=jO("".slice),Che=Math.max,K_=function(e,t,r){return r>e.length?-1:t===""?r:BU(e,t,r)};fhe({target:"String",proto:!0},{replaceAll:function(t,r){var n=W_(this),a,o,l,c,s,u,d,f,v,h=0,m=0,p="";if(!mhe(t)){if(a=ghe(t),a&&(o=i2(W_(yhe(t))),!~BU(o,"g")))throw new whe("`.replaceAll` does not allow non-global regexes");if(l=phe(t,$he),l)return vhe(l,t,n,r)}for(c=i2(n),s=i2(t),u=hhe(r),u||(r=i2(r)),d=s.length,f=Che(1,d),h=K_(c,s,0);h!==-1;)v=u?i2(r(s,h,c)):bhe(s,c,h,[],void 0,r),p+=U_(c,m,h)+v,m=h+d,h=K_(c,s,h+f);return m=56320||a+1>=r||(Y_(t,a+1)&64512)!==56320?n[a]=The:(n[a]=A9(t,a),n[++a]=A9(t,a))}return Mhe(n,"")}});var Phe=typeof ArrayBuffer<"u"&&typeof DataView<"u",_he=Phe,UO=mn,$o=Cr,jU=Dr,Xg=sn,hu=un,KO=mc,zhe=A3,Fhe=mi,T$=Uo,khe=Yo,Dhe=hc,Zg=Ml,l4=o4,Lhe=Mr,Ahe=a4,WU=Ga,UU=WU.enforce,Nhe=WU.get,Gh=$o.Int8Array,P$=Gh&&Gh.prototype,q_=$o.Uint8ClampedArray,X_=q_&&q_.prototype,Xl=Gh&&Zg(Gh),cl=P$&&Zg(P$),Hhe=Object.prototype,YO=$o.TypeError,Z_=Lhe("toStringTag"),_$=Ahe("TYPED_ARRAY_TAG"),qh="TypedArrayConstructor",Xc=_he&&!!l4&&KO($o.opera)!=="Opera",KU=!1,Lo,Ws,Jd,Zc={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},GO={BigInt64Array:8,BigUint64Array:8},Bhe=function(t){if(!Xg(t))return!1;var r=KO(t);return r==="DataView"||hu(Zc,r)||hu(GO,r)},YU=function(e){var t=Zg(e);if(Xg(t)){var r=Nhe(t);return r&&hu(r,qh)?r[qh]:YU(t)}},GU=function(e){if(!Xg(e))return!1;var t=KO(e);return hu(Zc,t)||hu(GO,t)},Vhe=function(e){if(GU(e))return e;throw new YO("Target is not a typed array")},jhe=function(e){if(jU(e)&&(!l4||Dhe(Xl,e)))return e;throw new YO(zhe(e)+" is not a typed array constructor")},Whe=function(e,t,r,n){if(UO){if(r)for(var a in Zc){var o=$o[a];if(o&&hu(o.prototype,e))try{delete o.prototype[e]}catch{try{o.prototype[e]=t}catch{}}}(!cl[e]||r)&&T$(cl,e,r?t:Xc&&P$[e]||t,n)}},Uhe=function(e,t,r){var n,a;if(UO){if(l4){if(r){for(n in Zc)if(a=$o[n],a&&hu(a,e))try{delete a[e]}catch{}}if(!Xl[e]||r)try{return T$(Xl,e,r?t:Xc&&Xl[e]||t)}catch{}else return}for(n in Zc)a=$o[n],a&&(!a[e]||r)&&T$(a,e,t)}};for(Lo in Zc)Ws=$o[Lo],Jd=Ws&&Ws.prototype,Jd?UU(Jd)[qh]=Ws:Xc=!1;for(Lo in GO)Ws=$o[Lo],Jd=Ws&&Ws.prototype,Jd&&(UU(Jd)[qh]=Ws);if((!Xc||!jU(Xl)||Xl===Function.prototype)&&(Xl=function(){throw new YO("Incorrect invocation")},Xc))for(Lo in Zc)$o[Lo]&&l4($o[Lo],Xl);if((!Xc||!cl||cl===Hhe)&&(cl=Xl.prototype,Xc))for(Lo in Zc)$o[Lo]&&l4($o[Lo].prototype,cl);Xc&&Zg(X_)!==cl&&l4(X_,cl);if(UO&&!hu(cl,Z_)){KU=!0,khe(cl,Z_,{configurable:!0,get:function(){return Xg(this)?this[_$]:void 0}});for(Lo in Zc)$o[Lo]&&Fhe($o[Lo],_$,Lo)}var Go={NATIVE_ARRAY_BUFFER_VIEWS:Xc,TYPED_ARRAY_TAG:KU&&_$,aTypedArray:Vhe,aTypedArrayConstructor:jhe,exportTypedArrayMethod:Whe,exportTypedArrayStaticMethod:Uhe,getTypedArrayConstructor:YU,isView:Bhe,isTypedArray:GU,TypedArray:Xl,TypedArrayPrototype:cl},qU=Go,Khe=Dn,Yhe=Oo,Ghe=qU.aTypedArray,qhe=qU.exportTypedArrayMethod;qhe("at",function(t){var r=Ghe(this),n=Khe(r),a=Yhe(t),o=a>=0?a:n+a;return o<0||o>=n?void 0:r[o]});var XU=Go,Xhe=Ug.findLast,Zhe=XU.aTypedArray,Qhe=XU.exportTypedArrayMethod;Qhe("findLast",function(t){return Xhe(Zhe(this),t,arguments.length>1?arguments[1]:void 0)});var ZU=Go,Jhe=Ug.findLastIndex,eme=ZU.aTypedArray,tme=ZU.exportTypedArrayMethod;tme("findLastIndex",function(t){return Jhe(eme(this),t,arguments.length>1?arguments[1]:void 0)});var rme=Oo,nme=RangeError,W3=function(e){var t=rme(e);if(t<0)throw new nme("The argument can't be less than 0");return t},ame=W3,ome=RangeError,ime=function(e,t){var r=ame(e);if(r%t)throw new ome("Wrong offset");return r},QU=Cr,JU=nr,qO=Go,lme=Dn,cme=ime,sme=Sa,eK=Yr,ume=QU.RangeError,z$=QU.Int8Array,Q_=z$&&z$.prototype,tK=Q_&&Q_.set,dme=qO.aTypedArray,fme=qO.exportTypedArrayMethod,F$=!eK(function(){var e=new Uint8ClampedArray(2);return JU(tK,e,{length:1,0:3},1),e[1]!==3}),vme=F$&&qO.NATIVE_ARRAY_BUFFER_VIEWS&&eK(function(){var e=new z$(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});fme("set",function(t){dme(this);var r=cme(arguments.length>1?arguments[1]:void 0,1),n=sme(t);if(F$)return JU(tK,this,n,r);var a=this.length,o=lme(n),l=0;if(o+r>a)throw new ume("Wrong length");for(;l1?arguments[1]:void 0,o=n>2?arguments[2]:void 0;return new(zge("Promise"))(function(l){var c=Ege(t);a!==void 0&&(a=Oge(a,o));var s=_ge(c,Age),u=s?void 0:Pge(c)||Hge,d=Rge(r)?new r:[],f=s?Ige(c,s):new Dge(Tge(Mge(c,u)));l(Lge(f,a,d))})},Bge=Pe,Vge=bK;Bge({target:"Array",stat:!0},{fromAsync:Vge});var lz=j3,jge=k1,Wge=sn,Uge=Mr,Kge=Uge("species"),cz=Array,Yge=function(e){var t;return lz(e)&&(t=e.constructor,jge(t)&&(t===cz||lz(t.prototype))?t=void 0:Wge(t)&&(t=t[Kge],t===null&&(t=void 0))),t===void 0?cz:t},Gge=Yge,qge=function(e,t){return new(Gge(e))(t===0?0:t)},Xge=Gn,Zge=Ht,Qge=n4,Jge=Sa,e5e=Dn,t5e=qge,sz=Zge([].push),Ms=function(e){var t=e===1,r=e===2,n=e===3,a=e===4,o=e===6,l=e===7,c=e===5||o;return function(s,u,d,f){for(var v=Jge(s),h=Qge(v),m=e5e(h),p=Xge(u,d),g=0,b=f||t5e,y=t?b(s,m):r||l?b(s,0):void 0,S,$;m>g;g++)if((c||g in h)&&(S=h[g],$=p(S,g,v),e))if(t)y[g]=$;else if($)switch(e){case 3:return!0;case 5:return S;case 6:return g;case 2:sz(y,S)}else switch(e){case 4:return!1;case 7:sz(y,S)}return o?-1:n||a?a:y}},Y3={forEach:Ms(0),map:Ms(1),filter:Ms(2),some:Ms(3),every:Ms(4),find:Ms(5),findIndex:Ms(6),filterReject:Ms(7)},r5e=Pe,n5e=Y3.filterReject,a5e=Eo;r5e({target:"Array",proto:!0,forced:!0},{filterOut:function(t){return n5e(this,t,arguments.length>1?arguments[1]:void 0)}});a5e("filterOut");var o5e=Pe,i5e=Y3.filterReject,l5e=Eo;o5e({target:"Array",proto:!0,forced:!0},{filterReject:function(t){return i5e(this,t,arguments.length>1?arguments[1]:void 0)}});l5e("filterReject");var c5e=Gn,s5e=Ht,u5e=n4,d5e=Sa,f5e=N3,v5e=Dn,h5e=Tl,m5e=F1,g5e=Array,p5e=s5e([].push),JO=function(e,t,r,n){for(var a=d5e(e),o=u5e(a),l=c5e(t,r),c=h5e(null),s=v5e(o),u=0,d,f,v;s>u;u++)v=o[u],f=f5e(l(v,u,a)),f in c?p5e(c[f],v):c[f]=[v];if(n&&(d=n(a),d!==g5e))for(f in c)c[f]=m5e(d,c[f]);return c},y5e=Pe,b5e=JO,S5e=Eo;y5e({target:"Array",proto:!0},{group:function(t){var r=arguments.length>1?arguments[1]:void 0;return b5e(this,t,r)}});S5e("group");var $5e=Pe,w5e=JO,C5e=Kg,x5e=Eo;$5e({target:"Array",proto:!0,forced:!C5e("groupBy")},{groupBy:function(t){var r=arguments.length>1?arguments[1]:void 0;return w5e(this,t,r)}});x5e("groupBy");var O5e=Gn,E5e=Ht,R5e=n4,I5e=Sa,M5e=Dn,e5=Ko,T5e=e5.Map,P5e=e5.get,_5e=e5.has,z5e=e5.set,F5e=E5e([].push),SK=function(t){for(var r=I5e(this),n=R5e(r),a=O5e(t,arguments.length>1?arguments[1]:void 0),o=new T5e,l=M5e(n),c=0,s,u;l>c;c++)u=n[c],s=a(u,c,r),_5e(o,s)?F5e(P5e(o,s),u):z5e(o,s,[u]);return o},k5e=Pe,D5e=Kg,L5e=Eo,A5e=SK;k5e({target:"Array",proto:!0,name:"groupToMap",forced:!D5e("groupByToMap")},{groupByToMap:A5e});L5e("groupByToMap");var N5e=Pe,H5e=Eo,B5e=SK,V5e=Ka;N5e({target:"Array",proto:!0,forced:V5e},{groupToMap:B5e});H5e("groupToMap");var j5e=Pe,W5e=j3,uz=Object.isFrozen,dz=function(e,t){if(!uz||!W5e(e)||!uz(e))return!1;for(var r=0,n=e.length,a;r92||k7e&&W9>94||z7e&&W9>97)return!1;var e=new ArrayBuffer(8),t=mz(e,{transfer:[e]});return e.byteLength!==0||t.byteLength!==8}),aE=Cr,D7e=T7e,L7e=nE,A7e=aE.structuredClone,gz=aE.ArrayBuffer,y8=aE.MessageChannel,D$=!1,U9,pz,b8,K9;if(L7e)D$=function(e){A7e(e,{transfer:[e]})};else if(gz)try{y8||(U9=D7e("worker_threads"),U9&&(y8=U9.MessageChannel)),y8&&(pz=new y8,b8=new gz(2),K9=function(e){pz.port1.postMessage(null,[e])},b8.byteLength===2&&(K9(b8),b8.byteLength===0&&(D$=K9)))}catch{}var RK=D$,t5=Cr,oE=Ht,IK=Vg,N7e=rE,H7e=EK,B7e=OK,yz=RK,Y9=nE,V7e=t5.structuredClone,MK=t5.ArrayBuffer,L$=t5.DataView,j7e=t5.TypeError,W7e=Math.min,iE=MK.prototype,TK=L$.prototype,U7e=oE(iE.slice),bz=IK(iE,"resizable","get"),Sz=IK(iE,"maxByteLength","get"),K7e=oE(TK.getInt8),Y7e=oE(TK.setInt8),PK=(Y9||yz)&&function(e,t,r){var n=B7e(e),a=t===void 0?n:N7e(t),o=!bz||!bz(e),l;if(H7e(e))throw new j7e("ArrayBuffer is detached");if(Y9&&(e=V7e(e,{transfer:[e]}),n===a&&(r||o)))return e;if(n>=a&&(!r||o))l=U7e(e,0,a);else{var c=r&&!o&&Sz?{maxByteLength:Sz(e)}:void 0;l=new MK(a,c);for(var s=new L$(e),u=new L$(l),d=W7e(a,n),f=0;ft,s=!1,u;if(n===void 0)u=void 0;else if(Tye(n))u=n.step,s=!!n.inclusive;else if(typeof n==a)u=n;else throw new ay(s2);if(Mye(u)&&(u=c?l:-l),typeof u!=a)throw new ay(s2);if(u===1/0||u===-1/0||u===o&&t!==r)throw new Vz(s2);var d=t!==t||r!==r||u!==u||r>t!=u>o;_ye(this,{type:V$,start:t,end:r,step:u,inclusive:s,hitsEnd:d,currentCount:o,zero:o}),JK||(this.start=t,this.end=r,this.step=u,this.inclusive=s)},V$,function(){var t=eY(this);if(t.hitsEnd)return ny(void 0,!0);var r=t.start,n=t.end,a=t.step,o=r+a*t.currentCount++;o===n&&(t.hitsEnd=!0);var l=t.inclusive,c;return n>r?c=l?o>n:o>=n:c=l?n>o:n>=o,c?(t.hitsEnd=!0,ny(void 0,!0)):ny(o,!1)}),w8=function(e){Pye(tY.prototype,e,{get:function(){return eY(this)[e]},set:function(){},configurable:!0,enumerable:!1})};JK&&(w8("start"),w8("end"),w8("inclusive"),w8("step"));var sE=tY,zye=Pe,Fye=sE;typeof BigInt=="function"&&zye({target:"BigInt",stat:!0,forced:!0},{range:function(t,r,n){return new Fye(t,r,n,"bigint",BigInt(0),BigInt(1))}});var rY={exports:{}},nY={},kye=N3,Dye=Ya,Lye=Cu,q3=function(e,t,r){var n=kye(t);n in e?Dye.f(e,n,Lye(0,r)):e[n]=r},jz=Hg,Aye=Dn,Nye=q3,Hye=Array,Bye=Math.max,aY=function(e,t,r){for(var n=Aye(e),a=jz(t,n),o=jz(r===void 0?n:r,n),l=Hye(Bye(o-a,0)),c=0;a1?arguments[1]:void 0),h;h=h?h.next:f.first;)for(v(h.value,h.key,this);h&&h.removed;)h=h.previous},has:function(d){return!!s(this,d)}}),Jz(o,r?{get:function(d){var f=s(this,d);return f&&f.value},set:function(d,f){return c(this,d===0?0:d,f)}}:{add:function(d){return c(this,d=d===0?0:d,d)}}),f2&&jbe(o,"size",{configurable:!0,get:function(){return l(this).size}}),a},setStrong:function(e,t,r){var n=t+" Iterator",a=cy(t),o=cy(n);Gbe(e,t,function(l,c){tF(this,{type:n,target:l,state:a(l),kind:c,last:void 0})},function(){for(var l=o(this),c=l.kind,s=l.last;s&&s.removed;)s=s.previous;return!l.target||!(l.last=s=s?s.next:l.state.first)?(l.target=void 0,x8(void 0,!0)):x8(c==="keys"?s.key:c==="values"?s.value:[s.key,s.value],!1)},r?"entries":"values",!r,!0),qbe(t)}},Zbe=cY,Qbe=Xbe;Zbe("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Qbe);var Jbe=Ht,rF=ls,O8=o5.getWeakData,eSe=cs,tSe=ar,rSe=xo,sy=sn,nSe=za,vY=Y3,nF=un,hY=Ga,aSe=hY.set,oSe=hY.getterFor,iSe=vY.find,lSe=vY.findIndex,cSe=Jbe([].splice),sSe=0,E8=function(e){return e.frozen||(e.frozen=new mY)},mY=function(){this.entries=[]},uy=function(e,t){return iSe(e.entries,function(r){return r[0]===t})};mY.prototype={get:function(e){var t=uy(this,e);if(t)return t[1]},has:function(e){return!!uy(this,e)},set:function(e,t){var r=uy(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=lSe(this.entries,function(r){return r[0]===e});return~t&&cSe(this.entries,t,1),!!~t}};var uSe={getConstructor:function(e,t,r,n){var a=e(function(s,u){eSe(s,o),aSe(s,{type:t,id:sSe++,frozen:void 0}),rSe(u)||nSe(u,s[n],{that:s,AS_ENTRIES:r})}),o=a.prototype,l=oSe(t),c=function(s,u,d){var f=l(s),v=O8(tSe(u),!0);return v===!0?E8(f).set(u,d):v[f.id]=d,s};return rF(o,{delete:function(s){var u=l(this);if(!sy(s))return!1;var d=O8(s);return d===!0?E8(u).delete(s):d&&nF(d,u.id)&&delete d[u.id]},has:function(u){var d=l(this);if(!sy(u))return!1;var f=O8(u);return f===!0?E8(d).has(u):f&&nF(f,d.id)}}),rF(o,r?{get:function(u){var d=l(this);if(sy(u)){var f=O8(u);return f===!0?E8(d).get(u):f?f[d.id]:void 0}},set:function(u,d){return c(this,u,d)}}:{add:function(u){return c(this,u,!0)}}),a}},dSe=a5,aF=Cr,Wv=Ht,oF=ls,fSe=o5,vSe=cY,gY=uSe,R8=sn,I8=Ga.enforce,hSe=Yr,mSe=oU,X3=Object,gSe=Array.isArray,M8=X3.isExtensible,pY=X3.isFrozen,pSe=X3.isSealed,yY=X3.freeze,ySe=X3.seal,iF={},lF={},bSe=!aF.ActiveXObject&&"ActiveXObject"in aF,v2,bY=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},SY=vSe("WeakMap",bY,gY),Id=SY.prototype,Uv=Wv(Id.set),SSe=function(){return dSe&&hSe(function(){var e=yY([]);return Uv(new SY,e,1),!pY(e)})};if(mSe)if(bSe){v2=gY.getConstructor(bY,"WeakMap",!0),fSe.enable();var cF=Wv(Id.delete),T8=Wv(Id.has),sF=Wv(Id.get);oF(Id,{delete:function(e){if(R8(e)&&!M8(e)){var t=I8(this);return t.frozen||(t.frozen=new v2),cF(this,e)||t.frozen.delete(e)}return cF(this,e)},has:function(t){if(R8(t)&&!M8(t)){var r=I8(this);return r.frozen||(r.frozen=new v2),T8(this,t)||r.frozen.has(t)}return T8(this,t)},get:function(t){if(R8(t)&&!M8(t)){var r=I8(this);return r.frozen||(r.frozen=new v2),T8(this,t)?sF(this,t):r.frozen.get(t)}return sF(this,t)},set:function(t,r){if(R8(t)&&!M8(t)){var n=I8(this);n.frozen||(n.frozen=new v2),T8(this,t)?Uv(this,t,r):n.frozen.set(t,r)}else Uv(this,t,r);return this}})}else SSe()&&oF(Id,{set:function(t,r){var n;return gSe(t)&&(pY(t)?n=iF:pSe(t)&&(n=lF)),Uv(this,t,r),n===iF&&yY(t),n===lF&&ySe(t),this}});var $Y=Wr,$Se=Tl,uF=sn,wSe=Object,CSe=TypeError,xSe=$Y("Map"),OSe=$Y("WeakMap"),em=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=$Se(null)};em.prototype.get=function(e,t){return this[e]||(this[e]=t())};em.prototype.next=function(e,t,r){var n=r?this.objectsByIndex[e]||(this.objectsByIndex[e]=new OSe):this.primitives||(this.primitives=new xSe),a=n.get(t);return a||n.set(t,a=new em),a};var dF=new em,wY=function(){var e=dF,t=arguments.length,r,n;for(r=0;r>1,c=t===23?Fc(2,-24)-Fc(2,-77):0,s=e<0||e===0&&1/e<0?1:0,u=0,d,f,v;for(e=DSe(e),e!==e||e===1/0?(f=e!==e?1:0,d=o):(d=LSe(ASe(e)/NSe),v=Fc(2,-d),e*v<1&&(d--,v*=2),d+l>=1?e+=c/v:e+=c*Fc(2,1-l),e*v>=2&&(d++,v/=2),d+l>=o?(f=0,d=o):d+l>=1?(f=(e*v-1)*Fc(2,t),d+=l):(f=e*Fc(2,l-1)*Fc(2,t),d=0));t>=8;)n[u++]=f&255,f/=256,t-=8;for(d=d<0;)n[u++]=d&255,d/=256,a-=8;return n[--u]|=s*128,n},BSe=function(e,t){var r=e.length,n=r*8-t-1,a=(1<>1,l=n-7,c=r-1,s=e[c--],u=s&127,d;for(s>>=7;l>0;)u=u*256+e[c--],l-=8;for(d=u&(1<<-l)-1,u>>=-l,l+=t;l>0;)d=d*256+e[c--],l-=8;if(u===0)u=1-o;else{if(u===a)return d?NaN:s?-1/0:1/0;d+=Fc(2,t),u-=o}return(s?-1:1)*d*Fc(2,u-t)},CY={pack:HSe,unpack:BSe},VSe=Pe,jSe=Ht,WSe=CY.unpack,USe=jSe(DataView.prototype.getUint16);VSe({target:"DataView",proto:!0},{getFloat16:function(t){var r=USe(this,t,arguments.length>1?arguments[1]:!1);return WSe([r&255,r>>8&255],10)}});var KSe=Pe,YSe=Ht,GSe=YSe(DataView.prototype.getUint8);KSe({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(t){return GSe(this,t)}});var qSe=Math.sign||function(t){var r=+t;return r===0||r!==r?r:r<0?-1:1},XSe=qSe,ZSe=Math.abs,xY=2220446049250313e-31,hF=1/xY,QSe=function(e){return e+hF-hF},OY=function(e,t,r,n){var a=+e,o=ZSe(a),l=XSe(a);if(or||s!==s?l*(1/0):l*s},JSe=OY,e$e=.0009765625,t$e=65504,r$e=6103515625e-14,EY=Math.f16round||function(t){return JSe(t,e$e,t$e,r$e)},n$e=Pe,a$e=Ht,o$e=mc,i$e=rE,l$e=CY.pack,c$e=EY,s$e=TypeError,u$e=a$e(DataView.prototype.setUint16);n$e({target:"DataView",proto:!0},{setFloat16:function(t,r){if(o$e(this)!=="DataView")throw new s$e("Incorrect receiver");var n=i$e(t),a=l$e(c$e(r),10,2);return u$e(this,n,a[1]<<8|a[0],arguments.length>2?arguments[2]:!1)}});var d$e=Math.round,f$e=function(e){var t=d$e(e);return t<0?0:t>255?255:t&255},v$e=Pe,h$e=Ht,m$e=mc,g$e=rE,p$e=f$e,y$e=TypeError,b$e=h$e(DataView.prototype.setUint8);v$e({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(t,r){if(m$e(this)!=="DataView")throw new y$e("Incorrect receiver");var n=g$e(t);return b$e(this,n,p$e(r))}});var S$e=Pe,tm=mn,$$e=Wr,mF=Tr,w$e=cs,RY=Uo,C$e=ls,x$e=Yo,IY=Mr,MY=Ga,dy=FK,O$e=$$e("SuppressedError"),E$e=ReferenceError,R$e=IY("dispose"),I$e=IY("toStringTag"),i5="DisposableStack",M$e=MY.set,rm=MY.getterFor(i5),fy="sync-dispose",df="disposed",T$e="pending",P8=function(e){var t=rm(e);if(t.state===df)throw new E$e(i5+" already disposed");return t},vE=function(){M$e(w$e(this,C0),{type:i5,state:T$e,stack:[]}),tm||(this.disposed=!1)},C0=vE.prototype;C$e(C0,{dispose:function(){var t=rm(this);if(t.state!==df){t.state=df,tm||(this.disposed=!0);for(var r=t.stack,n=r.length,a=!1,o;n;){var l=r[--n];r[n]=null;try{l()}catch(c){a?o=new O$e(c,o):(a=!0,o=c)}}if(t.stack=null,a)throw o}},use:function(t){return dy(P8(this),t,fy),t},adopt:function(t,r){var n=P8(this);return mF(r),dy(n,void 0,fy,function(){r(t)}),t},defer:function(t){var r=P8(this);mF(t),dy(r,void 0,fy,t)},move:function(){var t=P8(this),r=new vE;return rm(r).stack=t.stack,t.stack=[],t.state=df,tm||(this.disposed=!0),r}});tm&&x$e(C0,"disposed",{configurable:!0,get:function(){return rm(this).state===df}});RY(C0,R$e,C0.dispose,{name:"dispose"});RY(C0,I$e,i5,{nonWritable:!0});S$e({global:!0,constructor:!0},{DisposableStack:vE});var P$e=Ht,_$e=Tr,TY=function(){return P$e(_$e(this))},z$e=Pe,F$e=TY;z$e({target:"Function",proto:!0,forced:!0},{demethodize:F$e});var k$e=Pe,D$e=Ht,L$e=Dr,A$e=Lg,N$e=un,H$e=mn,B$e=Object.getOwnPropertyDescriptor,PY=/^\s*class\b/,V$e=D$e(PY.exec),j$e=function(e){try{if(!H$e||!V$e(PY,A$e(e)))return!1}catch{}var t=B$e(e,"prototype");return!!t&&N$e(t,"writable")&&!t.writable};k$e({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(t){return L$e(t)&&!j$e(t)}});var W$e=Pe,U$e=k1;W$e({target:"Function",stat:!0,forced:!0},{isConstructor:U$e});var K$e=Mr,Y$e=Ya.f,gF=K$e("metadata"),pF=Function.prototype;pF[gF]===void 0&&Y$e(pF,gF,{value:null});var G$e=Pe,q$e=TY;G$e({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:q$e});var X$e=Pe,Z$e=Cr,Q$e=cs,J$e=ar,ewe=Dr,twe=Ml,rwe=Yo,nwe=q3,awe=Yr,hE=un,owe=Mr,Ql=u4.IteratorPrototype,iwe=mn,vy="constructor",_Y="Iterator",yF=owe("toStringTag"),zY=TypeError,hy=Z$e[_Y],FY=!ewe(hy)||hy.prototype!==Ql||!awe(function(){hy({})}),mE=function(){if(Q$e(this,Ql),twe(this)===Ql)throw new zY("Abstract class Iterator not directly constructable")},kY=function(e,t){iwe?rwe(Ql,e,{configurable:!0,get:function(){return t},set:function(r){if(J$e(this),this===Ql)throw new zY("You can't redefine this property");hE(this,e)?this[e]=r:nwe(this,e,r)}}):Ql[e]=t};hE(Ql,yF)||kY(yF,_Y);(FY||!hE(Ql,vy)||Ql[vy]===Object)&&kY(vy,mE);mE.prototype=Ql;X$e({global:!0,constructor:!0,forced:FY},{Iterator:mE});var lwe=nr,cwe=Tl,swe=mi,uwe=ls,dwe=Mr,DY=Ga,fwe=uo,vwe=u4.IteratorPrototype,my=gi,gy=xu,hwe=dwe("toStringTag"),LY="IteratorHelper",AY="WrapForValidIterator",mwe=DY.set,NY=function(e){var t=DY.getterFor(e?AY:LY);return uwe(cwe(vwe),{next:function(){var n=t(this);if(e)return n.nextHandler();try{var a=n.done?void 0:n.nextHandler();return my(a,n.done)}catch(o){throw n.done=!0,o}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var a=fwe(n,"return");return a?lwe(a,n):my(void 0,!0)}if(r.inner)try{gy(r.inner.iterator,"normal")}catch(o){return gy(n,"throw",o)}return gy(n,"normal"),my(void 0,!0)}})},gwe=NY(!0),HY=NY(!1);swe(HY,hwe,"Iterator Helper");var d4=function(e,t){var r=function(a,o){o?(o.iterator=a.iterator,o.next=a.next):o=a,o.type=t?AY:LY,o.nextHandler=e,o.counter=0,o.done=!1,mwe(this,o)};return r.prototype=t?gwe:HY,r},pwe=ar,ywe=xu,BY=function(e,t,r,n){try{return n?t(pwe(r)[0],r[1]):t(r)}catch(a){ywe(e,"throw",a)}},bwe=nr,Swe=Tr,VY=ar,$we=Ln,wwe=d4,Cwe=BY,xwe=wwe(function(){var e=this.iterator,t=VY(bwe(this.next,e)),r=this.done=!!t.done;if(!r)return Cwe(e,this.mapper,[t.value,this.counter++],!0)}),jY=function(t){return VY(this),Swe(t),new xwe($we(this),{mapper:t})},Owe=nr,Ewe=jY,Rwe=function(e,t){return[t,e]},WY=function(){return Owe(Ewe,this,Rwe)},Iwe=Pe,Mwe=WY;Iwe({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:Mwe});var Twe=nr,Pwe=Uo,_we=uo,zwe=un,Fwe=Mr,bF=u4.IteratorPrototype,SF=Fwe("dispose");zwe(bF,SF)||Pwe(bF,SF,function(){var e=_we(this,"return");e&&Twe(e,this)});var kwe=Pe,$F=nr,j$=ar,Dwe=Ln,Lwe=n5,Awe=W3,Nwe=d4,Hwe=Ka,Bwe=Nwe(function(){for(var e=this.iterator,t=this.next,r,n;this.remaining;)if(this.remaining--,r=j$($F(t,e)),n=this.done=!!r.done,n)return;if(r=j$($F(t,e)),n=this.done=!!r.done,!n)return r.value});kwe({target:"Iterator",proto:!0,real:!0,forced:Hwe},{drop:function(t){j$(this);var r=Awe(Lwe(+t));return new Bwe(Dwe(this),{remaining:r})}});var Vwe=Pe,jwe=za,Wwe=Tr,Uwe=ar,Kwe=Ln;Vwe({target:"Iterator",proto:!0,real:!0},{every:function(t){Uwe(this),Wwe(t);var r=Kwe(this),n=0;return!jwe(r,function(a,o){if(!t(a,n++))return o()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var Ywe=Pe,Gwe=nr,qwe=Tr,UY=ar,Xwe=Ln,Zwe=d4,Qwe=BY,Jwe=Ka,eCe=Zwe(function(){for(var e=this.iterator,t=this.predicate,r=this.next,n,a,o;;){if(n=UY(Gwe(r,e)),a=this.done=!!n.done,a)return;if(o=n.value,Qwe(e,t,[o,this.counter++],!0))return o}});Ywe({target:"Iterator",proto:!0,real:!0,forced:Jwe},{filter:function(t){return UY(this),qwe(t),new eCe(Xwe(this),{predicate:t})}});var tCe=Pe,rCe=za,nCe=Tr,aCe=ar,oCe=Ln;tCe({target:"Iterator",proto:!0,real:!0},{find:function(t){aCe(this),nCe(t);var r=oCe(this),n=0;return rCe(r,function(a,o){if(t(a,n++))return o(a)},{IS_RECORD:!0,INTERRUPTED:!0}).result}});var iCe=nr,wF=ar,lCe=Ln,cCe=V3,KY=function(e,t){(!t||typeof e!="string")&&wF(e);var r=cCe(e);return lCe(wF(r!==void 0?iCe(r,e):e))},sCe=Pe,CF=nr,uCe=Tr,W$=ar,dCe=Ln,fCe=KY,vCe=d4,xF=xu,hCe=Ka,mCe=vCe(function(){for(var e=this.iterator,t=this.mapper,r,n;;){if(n=this.inner)try{if(r=W$(CF(n.next,n.iterator)),!r.done)return r.value;this.inner=null}catch(a){xF(e,"throw",a)}if(r=W$(CF(this.next,e)),this.done=!!r.done)return;try{this.inner=fCe(t(r.value,this.counter++),!1)}catch(a){xF(e,"throw",a)}}});sCe({target:"Iterator",proto:!0,real:!0,forced:hCe},{flatMap:function(t){return W$(this),uCe(t),new mCe(dCe(this),{mapper:t,inner:null})}});var gCe=Pe,pCe=za,yCe=Tr,bCe=ar,SCe=Ln;gCe({target:"Iterator",proto:!0,real:!0},{forEach:function(t){bCe(this),yCe(t);var r=SCe(this),n=0;pCe(r,function(a){t(a,n++)},{IS_RECORD:!0})}});var $Ce=Pe,wCe=nr,CCe=Sa,xCe=hc,OCe=u4.IteratorPrototype,ECe=d4,RCe=KY,ICe=Ka,MCe=ECe(function(){return wCe(this.next,this.iterator)},!0);$Ce({target:"Iterator",stat:!0,forced:ICe},{from:function(t){var r=RCe(typeof t=="string"?CCe(t):t,!0);return xCe(OCe,r.iterator)?r.iterator:new MCe(r)}});var TCe=Pe,PCe=WY;TCe({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:PCe});var _Ce=Pe,zCe=jY,FCe=Ka;_Ce({target:"Iterator",proto:!0,real:!0,forced:FCe},{map:zCe});var kCe=Pe,OF=sE,DCe=TypeError;kCe({target:"Iterator",stat:!0,forced:!0},{range:function(t,r,n){if(typeof t=="number")return new OF(t,r,n,"number",0,1);if(typeof t=="bigint")return new OF(t,r,n,"bigint",BigInt(0),BigInt(1));throw new DCe("Incorrect Iterator.range arguments")}});var LCe=Pe,ACe=za,NCe=Tr,HCe=ar,BCe=Ln,VCe=TypeError;LCe({target:"Iterator",proto:!0,real:!0},{reduce:function(t){HCe(this),NCe(t);var r=BCe(this),n=arguments.length<2,a=n?void 0:arguments[1],o=0;if(ACe(r,function(l){n?(n=!1,a=l):a=t(a,l,o),o++},{IS_RECORD:!0}),n)throw new VCe("Reduce of empty iterator with no initial value");return a}});var jCe=Pe,WCe=za,UCe=Tr,KCe=ar,YCe=Ln;jCe({target:"Iterator",proto:!0,real:!0},{some:function(t){KCe(this),UCe(t);var r=YCe(this),n=0;return WCe(r,function(a,o){if(t(a,n++))return o()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var GCe=Pe,qCe=nr,YY=ar,XCe=Ln,ZCe=n5,QCe=W3,JCe=d4,exe=xu,txe=Ka,rxe=JCe(function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,exe(e,"normal",void 0);var t=YY(qCe(this.next,e)),r=this.done=!!t.done;if(!r)return t.value});GCe({target:"Iterator",proto:!0,real:!0,forced:txe},{take:function(t){YY(this);var r=QCe(ZCe(+t));return new rxe(XCe(this),{remaining:r})}});var nxe=Pe,axe=ar,oxe=za,ixe=Ln,lxe=[].push;nxe({target:"Iterator",proto:!0,real:!0},{toArray:function(){var t=[];return oxe(ixe(axe(this)),lxe,{that:t,IS_RECORD:!0}),t}});var cxe=Pe,sxe=ar,uxe=Jg,dxe=qK,EF=Ln,fxe=Ka;cxe({target:"Iterator",proto:!0,real:!0,forced:fxe},{toAsync:function(){return new dxe(EF(new uxe(EF(sxe(this)))))}});var vxe=Yr,GY=!vxe(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e}),hxe=sn,mxe=Ga.get,qY=function(t){if(!hxe(t))return!1;var r=mxe(t);return!!r&&r.type==="RawJSON"},gxe=Pe,pxe=GY,yxe=qY;gxe({target:"JSON",stat:!0,forced:!pxe},{isRawJSON:yxe});var gE=Ht,bxe=un,_8=SyntaxError,Sxe=parseInt,$xe=String.fromCharCode,wxe=gE("".charAt),RF=gE("".slice),IF=gE(/./.exec),MF={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":` +`,"\\r":"\r","\\t":" "},Cxe=/^[\da-f]{4}$/i,xxe=/^[\u0000-\u001F]$/,XY=function(e,t){for(var r=!0,n="";t1?arguments[1]:void 0);return SOe(r,function(a,o){if(!n(a,o,r))return!1},!0)!==!1}});var $Oe=Pe,wOe=Gn,COe=qo,tG=Ko,xOe=Pl,OOe=tG.Map,EOe=tG.set;$Oe({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var r=COe(this),n=wOe(t,arguments.length>1?arguments[1]:void 0),a=new OOe;return xOe(r,function(o,l){n(o,l,r)&&EOe(a,l,o)}),a}});var ROe=Pe,IOe=Gn,MOe=qo,TOe=Pl;ROe({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var r=MOe(this),n=IOe(t,arguments.length>1?arguments[1]:void 0),a=TOe(r,function(o,l){if(n(o,l,r))return{value:o}},!0);return a&&a.value}});var POe=Pe,_Oe=Gn,zOe=qo,FOe=Pl;POe({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var r=zOe(this),n=_Oe(t,arguments.length>1?arguments[1]:void 0),a=FOe(r,function(o,l){if(n(o,l,r))return{key:l}},!0);return a&&a.key}});var kOe=k1,DOe=A3,LOe=TypeError,SE=function(e){if(kOe(e))return e;throw new LOe(DOe(e)+" is not a constructor")},AOe=Gn,NOe=nr,HOe=Tr,BOe=SE,VOe=xo,UF=za,KF=[].push,u5=function(t){var r=arguments.length,n=r>1?arguments[1]:void 0,a,o,l,c;return BOe(this),a=n!==void 0,a&&HOe(n),VOe(t)?new this:(o=[],a?(l=0,c=AOe(n,r>2?arguments[2]:void 0),UF(t,function(s){NOe(KF,o,c(s,l++))})):UF(t,KF,{that:o}),new this(o))},jOe=Pe,WOe=u5;jOe({target:"Map",stat:!0,forced:!0},{from:WOe});var UOe=function(e,t){return e===t||e!==e&&t!==t},KOe=Pe,YOe=UOe,GOe=qo,qOe=Pl;KOe({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return qOe(GOe(this),function(r){if(YOe(r,t))return!0},!0)===!0}});var XOe=Pe,ZOe=nr,QOe=za,JOe=Dr,YF=Tr,eEe=Ko.Map;XOe({target:"Map",stat:!0,forced:!0},{keyBy:function(t,r){var n=JOe(this)?this:eEe,a=new n;YF(r);var o=YF(a.set);return QOe(t,function(l){ZOe(o,a,r(l),l)}),a}});var tEe=Pe,rEe=qo,nEe=Pl;tEe({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var r=nEe(rEe(this),function(n,a){if(n===t)return{key:a}},!0);return r&&r.key}});var aEe=Pe,oEe=Gn,iEe=qo,rG=Ko,lEe=Pl,cEe=rG.Map,sEe=rG.set;aEe({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var r=iEe(this),n=oEe(t,arguments.length>1?arguments[1]:void 0),a=new cEe;return lEe(r,function(o,l){sEe(a,n(o,l,r),o)}),a}});var uEe=Pe,dEe=Gn,fEe=qo,nG=Ko,vEe=Pl,hEe=nG.Map,mEe=nG.set;uEe({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var r=fEe(this),n=dEe(t,arguments.length>1?arguments[1]:void 0),a=new hEe;return vEe(r,function(o,l){mEe(a,l,n(o,l,r))}),a}});var gEe=Pe,pEe=qo,yEe=za,bEe=Ko.set;gEe({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var r=pEe(this),n=arguments.length,a=0;a1?arguments[1]:void 0);return _Ee(r,function(a,o){if(n(a,o,r))return!0},!0)===!0}});var zEe=Pe,GF=Tr,FEe=qo,wE=Ko,kEe=TypeError,DEe=wE.get,LEe=wE.has,AEe=wE.set;zEe({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,r){var n=FEe(this),a=arguments.length;GF(r);var o=LEe(n,t);if(!o&&a<3)throw new kEe("Updating absent value");var l=o?DEe(n,t):GF(a>2?arguments[2]:void 0)(t,n);return AEe(n,t,r(l,t,n)),n}});var z8=nr,wy=Tr,F8=Dr,NEe=ar,HEe=TypeError,CE=function(t,r){var n=NEe(this),a=wy(n.get),o=wy(n.has),l=wy(n.set),c=arguments.length>2?arguments[2]:void 0,s;if(!F8(r)&&!F8(c))throw new HEe("At least one callback required");return z8(o,n,t)?(s=z8(a,n,t),F8(r)&&(s=r(s),z8(l,n,t,s))):F8(c)&&(s=c(),z8(l,n,t,s)),s},BEe=Pe,VEe=CE;BEe({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:VEe});var jEe=Pe,WEe=CE;jEe({target:"Map",proto:!0,real:!0,forced:!0},{upsert:WEe});var UEe=Pe,KEe=Math.min,YEe=Math.max;UEe({target:"Math",stat:!0,forced:!0},{clamp:function(t,r,n){return KEe(n,YEe(r,t))}});var GEe=Pe;GEe({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180});var qEe=Pe,XEe=180/Math.PI;qEe({target:"Math",stat:!0,forced:!0},{degrees:function(t){return t*XEe}});var aG=Math.scale||function(t,r,n,a,o){var l=+t,c=+r,s=+n,u=+a,d=+o;return l!==l||c!==c||s!==s||u!==u||d!==d?NaN:l===1/0||l===-1/0?l:(l-c)*(d-u)/(s-c)+u},ZEe=OY,QEe=11920928955078125e-23,JEe=34028234663852886e22,eRe=11754943508222875e-54,tRe=Math.fround||function(t){return ZEe(t,QEe,JEe,eRe)},rRe=Pe,nRe=aG,aRe=tRe;rRe({target:"Math",stat:!0,forced:!0},{fscale:function(t,r,n,a,o){return aRe(nRe(t,r,n,a,o))}});var oRe=Pe,iRe=EY;oRe({target:"Math",stat:!0},{f16round:iRe});var lRe=Pe;lRe({target:"Math",stat:!0,forced:!0},{iaddh:function(t,r,n,a){var o=t>>>0,l=r>>>0,c=n>>>0;return l+(a>>>0)+((o&c|(o|c)&~(o+c>>>0))>>>31)|0}});var cRe=Pe;cRe({target:"Math",stat:!0,forced:!0},{imulh:function(t,r){var n=65535,a=+t,o=+r,l=a&n,c=o&n,s=a>>16,u=o>>16,d=(s*c>>>0)+(l*c>>>16);return s*u+(d>>16)+((l*u>>>0)+(d&n)>>16)}});var sRe=Pe;sRe({target:"Math",stat:!0,forced:!0},{isubh:function(t,r,n,a){var o=t>>>0,l=r>>>0,c=n>>>0;return l-(a>>>0)-((~o&c|~(o^c)&o-c>>>0)>>>31)|0}});var uRe=Pe;uRe({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI});var dRe=Pe,fRe=Math.PI/180;dRe({target:"Math",stat:!0,forced:!0},{radians:function(t){return t*fRe}});var vRe=Pe,hRe=aG;vRe({target:"Math",stat:!0,forced:!0},{scale:hRe});var mRe=Cr,gRe=mRe.isFinite,pRe=Number.isFinite||function(t){return typeof t=="number"&&gRe(t)},yRe=Pe,bRe=ar,SRe=pRe,$Re=G3,wRe=gi,oG=Ga,iG="Seeded Random",lG=iG+" Generator",CRe='Math.seededPRNG() argument should have a "seed" field with a finite value.',xRe=oG.set,ORe=oG.getterFor(lG),ERe=TypeError,RRe=$Re(function(t){xRe(this,{type:lG,seed:t%2147483647})},iG,function(){var t=ORe(this),r=t.seed=(t.seed*1103515245+12345)%2147483647;return wRe((r&1073741823)/1073741823,!1)});yRe({target:"Math",stat:!0,forced:!0},{seededPRNG:function(t){var r=bRe(t).seed;if(!SRe(r))throw new ERe(CRe);return new RRe(r)}});var IRe=Pe;IRe({target:"Math",stat:!0,forced:!0},{signbit:function(t){var r=+t;return r===r&&r===0?1/r===-1/0:r<0}});var MRe=Pe;MRe({target:"Math",stat:!0,forced:!0},{umulh:function(t,r){var n=65535,a=+t,o=+r,l=a&n,c=o&n,s=a>>>16,u=o>>>16,d=(s*c>>>0)+(l*c>>>16);return s*u+(d>>>16)+((l*u>>>0)+(d&n)>>>16)}});var TRe=Pe,Z3=Ht,PRe=Oo,h2="Invalid number representation",_Re="Invalid radix",zRe=RangeError,k8=SyntaxError,FRe=TypeError,qF=parseInt,kRe=Math.pow,cG=/^[\d.a-z]+$/,DRe=Z3("".charAt),LRe=Z3(cG.exec),ARe=Z3(1 .toString),NRe=Z3("".slice),HRe=Z3("".split);TRe({target:"Number",stat:!0,forced:!0},{fromString:function(t,r){var n=1;if(typeof t!="string")throw new FRe(h2);if(!t.length)throw new k8(h2);if(DRe(t,0)==="-"&&(n=-1,t=NRe(t,1),!t.length))throw new k8(h2);var a=r===void 0?10:PRe(r);if(a<2||a>36)throw new zRe(_Re);if(!LRe(cG,t))throw new k8(h2);var o=HRe(t,"."),l=qF(o[0],a);if(o.length>1&&(l+=qF(o[1],a)/kRe(a,o[1].length)),a===10&&ARe(l,a)!==t)throw new k8(h2);return n*l}});var BRe=Pe,VRe=sE;BRe({target:"Number",stat:!0,forced:!0},{range:function(t,r,n){return new VRe(t,r,n,"number",0,1)}});var sG=Ga,jRe=G3,D8=gi,WRe=un,URe=wU,KRe=Sa,uG="Object Iterator",YRe=sG.set,GRe=sG.getterFor(uG),xE=jRe(function(t,r){var n=KRe(t);YRe(this,{type:uG,mode:r,object:n,keys:URe(n),index:0})},"Object",function(){for(var t=GRe(this),r=t.keys;;){if(r===null||t.index>=r.length)return t.object=t.keys=null,D8(void 0,!0);var n=r[t.index++],a=t.object;if(WRe(a,n)){switch(t.mode){case"keys":return D8(n,!1);case"values":return D8(a[n],!1)}return D8([n,a[n]],!1)}}}),qRe=Pe,XRe=xE;qRe({target:"Object",stat:!0,forced:!0},{iterateEntries:function(t){return new XRe(t,"entries")}});var ZRe=Pe,QRe=xE;ZRe({target:"Object",stat:!0,forced:!0},{iterateKeys:function(t){return new QRe(t,"keys")}});var JRe=Pe,eIe=xE;JRe({target:"Object",stat:!0,forced:!0},{iterateValues:function(t){return new eIe(t,"values")}});var tIe=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}},rIe=Pe,Kv=nr,Q3=mn,nIe=dY,dG=Tr,aIe=ar,oIe=cs,fG=Dr,iIe=xo,lIe=sn,Yv=uo,cIe=Uo,OE=ls,vG=Yo,zd=tIe,sIe=Mr,hG=Ga,uIe=sIe("observable"),EE="Observable",mG="Subscription",gG="SubscriptionObserver",RE=hG.getterFor,IE=hG.set,dIe=RE(EE),pG=RE(mG),Gv=RE(gG),yG=function(e){this.observer=aIe(e),this.cleanup=void 0,this.subscriptionObserver=void 0};yG.prototype={type:mG,clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(t){zd(t)}}},close:function(){if(!Q3){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var ME=function(e,t){var r=IE(this,new yG(e)),n;Q3||(this.closed=!1);try{(n=Yv(e,"start"))&&Kv(n,e,this)}catch(c){zd(c)}if(!r.isClosed()){var a=r.subscriptionObserver=new TE(r);try{var o=t(a),l=o;iIe(o)||(r.cleanup=fG(o.unsubscribe)?function(){l.unsubscribe()}:dG(o))}catch(c){a.error(c);return}r.isClosed()&&r.clean()}};ME.prototype=OE({},{unsubscribe:function(){var t=pG(this);t.isClosed()||(t.close(),t.clean())}});Q3&&vG(ME.prototype,"closed",{configurable:!0,get:function(){return pG(this).isClosed()}});var TE=function(e){IE(this,{type:gG,subscriptionState:e}),Q3||(this.closed=!1)};TE.prototype=OE({},{next:function(t){var r=Gv(this).subscriptionState;if(!r.isClosed()){var n=r.observer;try{var a=Yv(n,"next");a&&Kv(a,n,t)}catch(o){zd(o)}}},error:function(t){var r=Gv(this).subscriptionState;if(!r.isClosed()){var n=r.observer;r.close();try{var a=Yv(n,"error");a?Kv(a,n,t):zd(t)}catch(o){zd(o)}r.clean()}},complete:function(){var t=Gv(this).subscriptionState;if(!t.isClosed()){var r=t.observer;t.close();try{var n=Yv(r,"complete");n&&Kv(n,r)}catch(a){zd(a)}t.clean()}}});Q3&&vG(TE.prototype,"closed",{configurable:!0,get:function(){return Gv(this).subscriptionState.isClosed()}});var bG=function(t){oIe(this,PE),IE(this,{type:EE,subscriber:dG(t)})},PE=bG.prototype;OE(PE,{subscribe:function(t){var r=arguments.length;return new ME(fG(t)?{next:t,error:r>1?arguments[1]:void 0,complete:r>2?arguments[2]:void 0}:lIe(t)?t:{},dIe(this).subscriber)}});cIe(PE,uIe,function(){return this});rIe({global:!0,constructor:!0,forced:!0},{Observable:bG});nIe(EE);var fIe=Pe,vIe=Wr,hIe=nr,XF=ar,mIe=k1,gIe=Wg,pIe=uo,yIe=za,bIe=Mr,SIe=bIe("observable");fIe({target:"Observable",stat:!0,forced:!0},{from:function(t){var r=mIe(this)?this:vIe("Observable"),n=pIe(XF(t),SIe);if(n){var a=XF(hIe(n,t));return a.constructor===r?a:new r(function(l){return a.subscribe(l)})}var o=gIe(t);return new r(function(l){yIe(o,function(c,s){if(l.next(c),l.closed)return s()},{IS_ITERATOR:!0,INTERRUPTED:!0}),l.complete()})}});var $Ie=Pe,SG=Wr,wIe=k1,CIe=SG("Array");$Ie({target:"Observable",stat:!0,forced:!0},{of:function(){for(var t=wIe(this)?this:SG("Observable"),r=arguments.length,n=CIe(r),a=0;a?@[\\\\\\]^`{|}~"+RMe+"]","g");OMe({target:"RegExp",stat:!0,forced:!0},{escape:function(t){var r=EMe(t),n=IMe(r,0);return(n>47&&n<58?"\\x3":"")+MMe(r,TMe,"\\$&")}});var Cy=Ht,L8=Set.prototype,Ro={Set,add:Cy(L8.add),has:Cy(L8.has),remove:Cy(L8.delete),proto:L8},PMe=Ro.has,fo=function(e){return PMe(e),e},_Me=Pe,zMe=fo,FMe=Ro.add;_Me({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var t=zMe(this),r=0,n=arguments.length;r1?arguments[1]:void 0);return MTe(r,function(a){if(!n(a,a,r))return!1},!0)!==!1}});var TTe=Pe,PTe=Gn,_Te=fo,WG=Ro,zTe=pi,FTe=WG.Set,kTe=WG.add;TTe({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(t){var r=_Te(this),n=PTe(t,arguments.length>1?arguments[1]:void 0),a=new FTe;return zTe(r,function(o){n(o,o,r)&&kTe(a,o)}),a}});var DTe=Pe,LTe=Gn,ATe=fo,NTe=pi;DTe({target:"Set",proto:!0,real:!0,forced:!0},{find:function(t){var r=ATe(this),n=LTe(t,arguments.length>1?arguments[1]:void 0),a=NTe(r,function(o){if(n(o,o,r))return{value:o}},!0);return a&&a.value}});var HTe=Pe,BTe=u5;HTe({target:"Set",stat:!0,forced:!0},{from:BTe});var VTe=fo,kE=Ro,jTe=e6,WTe=D1,UTe=pi,KTe=Ou,YTe=kE.Set,ik=kE.add,GTe=kE.has,UG=function(t){var r=VTe(this),n=WTe(t),a=new YTe;return jTe(r)>n.size?KTe(n.getIterator(),function(o){GTe(r,o)&&ik(a,o)}):UTe(r,function(o){n.includes(o)&&ik(a,o)}),a},qTe=Pe,XTe=Yr,ZTe=UG,QTe=L1,JTe=!QTe("intersection")||XTe(function(){return Array.from(new Set([1,2,3]).intersection(new Set([3,2])))!=="3,2"});qTe({target:"Set",proto:!0,real:!0,forced:JTe},{intersection:ZTe});var ePe=Pe,tPe=nr,rPe=A1,nPe=UG;ePe({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(t){return tPe(nPe,this,rPe(t))}});var aPe=fo,oPe=Ro.has,iPe=e6,lPe=D1,cPe=pi,sPe=Ou,uPe=xu,KG=function(t){var r=aPe(this),n=lPe(t);if(iPe(r)<=n.size)return cPe(r,function(o){if(n.includes(o))return!1},!0)!==!1;var a=n.getIterator();return sPe(a,function(o){if(oPe(r,o))return uPe(a,"normal",!1)})!==!1},dPe=Pe,fPe=KG,vPe=L1;dPe({target:"Set",proto:!0,real:!0,forced:!vPe("isDisjointFrom")},{isDisjointFrom:fPe});var hPe=Pe,mPe=nr,gPe=A1,pPe=KG;hPe({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(t){return mPe(pPe,this,gPe(t))}});var yPe=fo,bPe=e6,SPe=pi,$Pe=D1,YG=function(t){var r=yPe(this),n=$Pe(t);return bPe(r)>n.size?!1:SPe(r,function(a){if(!n.includes(a))return!1},!0)!==!1},wPe=Pe,CPe=YG,xPe=L1;wPe({target:"Set",proto:!0,real:!0,forced:!xPe("isSubsetOf")},{isSubsetOf:CPe});var OPe=Pe,EPe=nr,RPe=A1,IPe=YG;OPe({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(t){return EPe(IPe,this,RPe(t))}});var MPe=fo,TPe=Ro.has,PPe=e6,_Pe=D1,zPe=Ou,FPe=xu,GG=function(t){var r=MPe(this),n=_Pe(t);if(PPe(r)1?arguments[1]:void 0),a=new QPe;return ZPe(r,function(o){JPe(a,n(o,o,r))}),a}});var e_e=Pe,t_e=d5;e_e({target:"Set",stat:!0,forced:!0},{of:t_e});var r_e=Pe,n_e=Tr,a_e=fo,o_e=pi,i_e=TypeError;r_e({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(t){var r=a_e(this),n=arguments.length<2,a=n?void 0:arguments[1];if(n_e(t),o_e(r,function(o){n?(n=!1,a=o):a=t(a,o,o,r)}),n)throw new i_e("Reduce of empty set with no initial value");return a}});var l_e=Pe,c_e=Gn,s_e=fo,u_e=pi;l_e({target:"Set",proto:!0,real:!0,forced:!0},{some:function(t){var r=s_e(this),n=c_e(t,arguments.length>1?arguments[1]:void 0);return u_e(r,function(a){if(n(a,a,r))return!0},!0)===!0}});var d_e=fo,DE=Ro,f_e=FE,v_e=D1,h_e=Ou,m_e=DE.add,g_e=DE.has,p_e=DE.remove,ZG=function(t){var r=d_e(this),n=v_e(t).getIterator(),a=f_e(r);return h_e(n,function(o){g_e(r,o)?p_e(a,o):m_e(a,o)}),a},y_e=Pe,b_e=ZG,S_e=L1;y_e({target:"Set",proto:!0,real:!0,forced:!S_e("symmetricDifference")},{symmetricDifference:b_e});var $_e=Pe,w_e=nr,C_e=A1,x_e=ZG;$_e({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(t){return w_e(x_e,this,C_e(t))}});var O_e=fo,E_e=Ro.add,R_e=FE,I_e=D1,M_e=Ou,QG=function(t){var r=O_e(this),n=I_e(t).getIterator(),a=R_e(r);return M_e(n,function(o){E_e(a,o)}),a},T_e=Pe,P_e=QG,__e=L1;T_e({target:"Set",proto:!0,real:!0,forced:!__e("union")},{union:P_e});var z_e=Pe,F_e=nr,k_e=A1,D_e=QG;z_e({target:"Set",proto:!0,real:!0,forced:!0},{union:function(t){return F_e(D_e,this,k_e(t))}});var LE=Ht,L_e=Oo,A_e=qa,N_e=Il,H_e=LE("".charAt),lk=LE("".charCodeAt),B_e=LE("".slice),ck=function(e){return function(t,r){var n=A_e(N_e(t)),a=L_e(r),o=n.length,l,c;return a<0||a>=o?e?"":void 0:(l=lk(n,a),l<55296||l>56319||a+1===o||(c=lk(n,a+1))<56320||c>57343?e?H_e(n,a):l:e?B_e(n,a,a+2):(l-55296<<10)+(c-56320)+65536)}},JG={codeAt:ck(!1),charAt:ck(!0)},V_e=Pe,j_e=JG.charAt,W_e=Il,U_e=Oo,K_e=qa;V_e({target:"String",proto:!0,forced:!0},{at:function(t){var r=K_e(W_e(this)),n=r.length,a=U_e(t),o=a>=0?a:n+a;return o<0||o>=n?void 0:j_e(r,o)}});var eq=Ht,Y_e=vc,sk=qa,G_e=Dn,q_e=TypeError,uk=eq([].push),X_e=eq([].join),tq=function(t){var r=Y_e(t),n=G_e(r);if(!n)return"";for(var a=arguments.length,o=[],l=0;;){var c=r[l++];if(c===void 0)throw new q_e("Incorrect template");if(uk(o,sk(c)),l===n)return X_e(o,"");l=r.length?dk(void 0,!0):(a=aze(r,n),t.index+=a.length,dk({codePoint:nze(a,0),position:n},!1))});J_e({target:"String",proto:!0,forced:!0},{codePoints:function(){return new lze(rze(tze(this)))}});var A8=Ht,N8=WeakMap.prototype,f5={WeakMap,set:A8(N8.set),get:A8(N8.get),has:A8(N8.has),remove:A8(N8.delete)},cze=Wr,v5=Ht,sze=String.fromCharCode,uze=cze("String","fromCodePoint"),xy=v5("".charAt),oq=v5("".charCodeAt),fk=v5("".indexOf),vk=v5("".slice),Z$=48,iq=57,hk=97,dze=102,mk=65,fze=70,gk=function(e,t){var r=oq(e,t);return r>=Z$&&r<=iq},Oy=function(e,t,r){if(r>=e.length)return-1;for(var n=0;t=Z$&&e<=iq?e-Z$:e>=hk&&e<=dze?e-hk+10:e>=mk&&e<=fze?e-mk+10:-1},hze=function(e){for(var t="",r=0,n=0,a;(n=fk(e,"\\",n))>-1;){if(t+=vk(e,r,n),++n===e.length)return;var o=xy(e,n++);switch(o){case"b":t+="\b";break;case"t":t+=" ";break;case"n":t+=` `;break;case"v":t+="\v";break;case"f":t+="\f";break;case"r":t+="\r";break;case"\r":n1114111)return;t+=dze(a);break;default:if(gk(o,0))return;t+=o}r=n}return t+vk(e,r)},gze=a5,pze=Pe,yze=_O,h5=Ht,lq=_1,cq=ar,bze=Sa,Sze=Dr,$ze=Dn,wze=Ya.f,Cze=aY,m5=f5,xze=tq,Oze=mze,sq=zG,Ey=new m5.WeakMap,Eze=m5.get,Rze=m5.has,Mze=m5.set,Q$=Array,V2=TypeError,pk=Object.freeze||Object,Ize=Object.isFrozen,Tze=Math.min,yk=h5("".charAt),uq=h5("".slice),Pze=h5("".split),bk=h5(/./.exec),_ze=/([\n\u2028\u2029]|\r\n?)/g,zze=RegExp("^["+sq+"]*"),Fze=RegExp("[^"+sq+"]"),Sk="Invalid tag",kze="Invalid opening line",Dze="Invalid closing line",Lze=function(e){var t=e.raw;if(gze&&!Ize(t))throw new V2("Raw template should be frozen");if(Rze(Ey,t))return Eze(Ey,t);var r=Aze(t),n=Hze(r);return wze(n,"raw",{value:pk(r)}),pk(n),Mze(Ey,t,n),n},Aze=function(e){var t=bze(e),r=$ze(t),n=Q$(r),a=Q$(r),o=0,l,c,s,u;if(!r)throw new V2(Sk);for(;o0)throw new V2(kze);l[1]=""}if(f){if(l.length===1||bk(Fze,l[l.length-1]))throw new V2(Dze);l[l.length-2]="",l[l.length-1]=""}for(var v=2;v1?arguments[1]:void 0,o=n>2?arguments[2]:void 0;return new(EFe("Promise"))(function(l){RFe(r),l(MFe(t,a,o))}).then(function(l){return IFe(TFe(r),l)})},!0);var Ek=ar,_Fe=SE,zFe=xo,FFe=Ir,kFe=FFe("species"),DFe=function(e,t){var r=Ek(e).constructor,n;return r===void 0||zFe(n=Ek(r)[kFe])?t:_Fe(n)},yq=Go,LFe=DFe,AFe=yq.aTypedArrayConstructor,NFe=yq.getTypedArrayConstructor,bq=function(e){return AFe(LFe(e,NFe(e)))},HFe=F1,BFe=bq,Sq=function(e,t){return HFe(BFe(e),t)},$q=Go,jFe=Y3.filterReject,VFe=Sq,WFe=$q.aTypedArray,UFe=$q.exportTypedArrayMethod;UFe("filterOut",function(t){var r=jFe(WFe(this),t,arguments.length>1?arguments[1]:void 0);return VFe(this,r)},!0);var wq=Go,KFe=Y3.filterReject,YFe=Sq,GFe=wq.aTypedArray,qFe=wq.exportTypedArrayMethod;qFe("filterReject",function(t){var r=KFe(GFe(this),t,arguments.length>1?arguments[1]:void 0);return YFe(this,r)},!0);var Cq=Go,XFe=JO,ZFe=bq,QFe=Cq.aTypedArray,JFe=Cq.exportTypedArrayMethod;JFe("groupBy",function(t){var r=arguments.length>1?arguments[1]:void 0;return XFe(QFe(this),t,r,ZFe)},!0);var NE=Go,eke=Dn,tke=rK,rke=Hg,nke=nK,ake=Oo,oke=Yr,ike=NE.aTypedArray,lke=NE.getTypedArrayConstructor,cke=NE.exportTypedArrayMethod,ske=Math.max,uke=Math.min,dke=!oke(function(){var e=new Int8Array([1]),t=e.toSpliced(1,0,{valueOf:function(){return e[0]=2,3}});return t[0]!==2||t[1]!==3});cke("toSpliced",function(t,r){var n=ike(this),a=lke(n),o=eke(n),l=rke(t,o),c=arguments.length,s=0,u,d,f,v,h,m,p;if(c===0)u=d=0;else if(c===1)u=0,d=o-l;else if(d=uke(ske(ake(r),0),o-l),u=c-2,u){v=new a(u),f=tke(v);for(var g=2;g1?Oke(arguments[1]):void 0,n=Ike(r)==="base64"?Tke:Pke,a=r?!!r.strict:!1,o=a?t:zke(t,kke,"");if(o.length%4===0)j8(o,-2)==="=="?o=j8(o,0,-2):j8(o,-1)==="="&&(o=j8(o,0,-1));else if(a)throw new m2("Input is not correctly padded");var l=o.length%4;switch(l){case 1:throw new m2("Bad input length");case 2:o+="AA";break;case 3:o+="A"}for(var c=[],s=0,u=o.length,d=function(h){var m=_ke(o,s+h);if(!Rke(n,m))throw new m2('Bad char in input: "'+m+'"');return n[m]<<18-6*h};s>16&255,f>>8&255,f&255)}var v=c.length;if(l===2){if(a&&c[v-2]!==0)throw new m2(Pk);v-=2}else if(l===3){if(a&&c[v-1]!==0)throw new m2(Pk);v--}return Mke(Tk,c,v)}});var Dke=Pe,BE=Cr,Pq=Ht,Lke=Oq,_k=BE.Uint8Array,zk=BE.SyntaxError,Ake=BE.parseInt,_q=/[^\da-f]/i,Nke=Pq(_q.exec),Hke=Pq("".slice);_k&&Dke({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(t){Lke(t);var r=t.length;if(r%2)throw new zk("String should have an even number of characters");if(Nke(_q,t))throw new zk("String should only contain hex characters");for(var n=new _k(r/2),a=0;a>6*u&63)};o+2r,l=aLe(n)?n:sLe(n),c=o?lLe(arguments,r):[],s=o?function(){nLe(l,this,c)}:l;return t?e(s,a):e(s)}:e},fLe=Pe,Bq=Cr,Xk=Nq.set,vLe=dLe,Zk=Bq.setImmediate?vLe(Xk,!1):Xk;fLe({global:!0,bind:!0,enumerable:!0,forced:Bq.setImmediate!==Zk},{setImmediate:Zk});var hLe=Pe,Ds=Cr,mLe=Yo,gLe=mn,pLe=TypeError,yLe=Object.defineProperty,Qk=Ds.self!==Ds;try{if(gLe){var Ny=Object.getOwnPropertyDescriptor(Ds,"self");(Qk||!Ny||!Ny.get||!Ny.enumerable)&&mLe(Ds,"self",{get:function(){return Ds},set:function(t){if(this!==Ds)throw new pLe("Illegal invocation");yLe(Ds,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else hLe({global:!0,simple:!0,forced:Qk},{self:Ds})}catch{}var bLe=Pe,Ba=Cr,vf=Wr,n6=Ht,YE=Yr,SLe=a4,x0=Dr,$Le=k1,wLe=xo,p5=sn,CLe=Fg,xLe=za,jq=ar,am=mc,OLe=un,ELe=q3,Hy=mi,qv=Dn,RLe=f4,MLe=HU,y5=Ko,GE=Ro,ILe=pi,Jk=RK,TLe=pU,qE=nE,U2=Ba.Object,PLe=Ba.Array,Vq=Ba.Date,Wq=Ba.Error,_Le=Ba.TypeError,zLe=Ba.PerformanceMark,g1=vf("DOMException"),nw=y5.Map,XE=y5.has,Uq=y5.get,om=y5.set,Kq=GE.Set,Yq=GE.add,FLe=GE.has,kLe=vf("Object","keys"),DLe=n6([].push),LLe=n6((!0).valueOf),ALe=n6(1 .valueOf),NLe=n6("".valueOf),HLe=n6(Vq.prototype.getTime),aw=SLe("structuredClone"),Hf="DataCloneError",Xv="Transferring",Gq=function(e){return!YE(function(){var t=new Ba.Set([7]),r=e(t),n=e(U2(7));return r===t||!r.has(7)||!p5(n)||+n!=7})&&e},eD=function(e,t){return!YE(function(){var r=new t,n=e({a:r,b:r});return!(n&&n.a===n.b&&n.a instanceof t&&n.a.stack===r.stack)})},BLe=function(e){return!YE(function(){var t=e(new Ba.AggregateError([1],aw,{cause:3}));return t.name!=="AggregateError"||t.errors[0]!==1||t.message!==aw||t.cause!==3})},e0=Ba.structuredClone,jLe=!eD(e0,Wq)||!eD(e0,g1)||!BLe(e0),VLe=!e0&&Gq(function(e){return new zLe(aw,{detail:e}).detail}),Nc=Gq(e0)||VLe,By=function(e){throw new g1("Uncloneable type: "+e,Hf)},Fo=function(e,t){throw new g1((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",Hf)},jy=function(e,t){return Nc||Fo(t),Nc(e)},WLe=function(){var e;try{e=new Ba.DataTransfer}catch{try{e=new Ba.ClipboardEvent("").clipboardData}catch{}}return e&&e.items&&e.files?e:null},qq=function(e,t,r){if(XE(t,e))return Uq(t,e);var n=r||am(e),a,o,l,c,s,u;if(n==="SharedArrayBuffer")Nc?a=Nc(e):a=e;else{var d=Ba.DataView;!d&&!x0(e.slice)&&Fo("ArrayBuffer");try{if(x0(e.slice)&&!e.resizable)a=e.slice(0);else for(o=e.byteLength,l=("maxByteLength"in e)?{maxByteLength:e.maxByteLength}:void 0,a=new ArrayBuffer(o,l),c=new d(e),s=new d(a),u=0;u1&&!wLe(arguments[1])?jq(arguments[1]):void 0,n=r?r.transfer:void 0,a,o;n!==void 0&&(a=new nw,o=KLe(n,a));var l=Na(t,a);return o&&YLe(o),l}});var GLe=Yr,qLe=Ir,XLe=mn,tD=Ka,ZLe=qLe("iterator"),QLe=!GLe(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach(function(a,o){t.delete("b"),n+=o+a}),r.delete("a",2),r.delete("b",void 0),tD&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(tD||!XLe)||!t.sort||e.href!=="http://a/c%20d?a=1&c=3"||t.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!t[ZLe]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||n!=="a1c3"||new URL("http://x",void 0).host!=="x"}),JLe=Pe,eAe=Wr,tAe=Yr,rAe=f4,rD=qa,nAe=QLe,Xq=eAe("URL"),aAe=nAe&&tAe(function(){Xq.canParse()});JLe({target:"URL",stat:!0,forced:!aAe},{canParse:function(t){var r=rAe(arguments.length,1),n=rD(t),a=r<2||arguments[1]===void 0?void 0:rD(arguments[1]);try{return!!new Xq(n,a)}catch{return!1}}});var oAe=Uo,b5=Ht,nD=qa,iAe=f4,Zq=URLSearchParams,S5=Zq.prototype,lAe=b5(S5.append),aD=b5(S5.delete),cAe=b5(S5.forEach),sAe=b5([].push),ZE=new Zq("a=1&a=2&b=3");ZE.delete("a",1);ZE.delete("b",void 0);ZE+""!="a=2"&&oAe(S5,"delete",function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&r===void 0)return aD(this,e);var n=[];cAe(this,function(f,v){sAe(n,{key:v,value:f})}),iAe(t,1);for(var a=nD(e),o=nD(r),l=0,c=0,s=!1,u=n.length,d;l=0;--W){var K=this.tryEntries[W],Y=K.completion;if(K.tryLoc==="root")return j("end");if(K.tryLoc<=this.prev){var X=a.call(K,"catchLoc"),te=a.call(K,"finallyLoc");if(X&&te){if(this.prev=0;--j){var W=this.tryEntries[j];if(W.tryLoc<=this.prev&&a.call(W,"finallyLoc")&&this.prev=0;--F){var j=this.tryEntries[F];if(j.finallyLoc===A)return this.complete(j.completion,j.afterLoc),V(j),y}},catch:function(A){for(var F=this.tryEntries.length-1;F>=0;--F){var j=this.tryEntries[F];if(j.tryLoc===A){var W=j.completion;if(W.type==="throw"){var K=W.arg;V(j)}return K}}throw new Error("illegal catch attempt")},delegateYield:function(A,F,j){return this.delegate={iterator:P(A),resultName:F,nextLoc:j},this.method==="next"&&(this.arg=l),y}},r}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(bAe);function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var tX={exports:{}},Pr={};/** +`:case"\u2028":case"\u2029":break;case"0":if(gk(e,n))return;t+="\0";break;case"x":if(a=Oy(e,n,n+2),a===-1)return;n+=2,t+=sze(a);break;case"u":if(n1114111)return;t+=uze(a);break;default:if(gk(o,0))return;t+=o}r=n}return t+vk(e,r)},mze=a5,gze=Pe,pze=_O,h5=Ht,lq=_1,cq=ar,yze=Sa,bze=Dr,Sze=Dn,$ze=Ya.f,wze=aY,m5=f5,Cze=tq,xze=hze,sq=zG,Ey=new m5.WeakMap,Oze=m5.get,Eze=m5.has,Rze=m5.set,Q$=Array,j2=TypeError,pk=Object.freeze||Object,Ize=Object.isFrozen,Mze=Math.min,yk=h5("".charAt),uq=h5("".slice),Tze=h5("".split),bk=h5(/./.exec),Pze=/([\n\u2028\u2029]|\r\n?)/g,_ze=RegExp("^["+sq+"]*"),zze=RegExp("[^"+sq+"]"),Sk="Invalid tag",Fze="Invalid opening line",kze="Invalid closing line",Dze=function(e){var t=e.raw;if(mze&&!Ize(t))throw new j2("Raw template should be frozen");if(Eze(Ey,t))return Oze(Ey,t);var r=Lze(t),n=Nze(r);return $ze(n,"raw",{value:pk(r)}),pk(n),Rze(Ey,t,n),n},Lze=function(e){var t=yze(e),r=Sze(t),n=Q$(r),a=Q$(r),o=0,l,c,s,u;if(!r)throw new j2(Sk);for(;o0)throw new j2(Fze);l[1]=""}if(f){if(l.length===1||bk(zze,l[l.length-1]))throw new j2(kze);l[l.length-2]="",l[l.length-1]=""}for(var v=2;v1?arguments[1]:void 0,o=n>2?arguments[2]:void 0;return new(OFe("Promise"))(function(l){EFe(r),l(RFe(t,a,o))}).then(function(l){return IFe(MFe(r),l)})},!0);var Ek=ar,PFe=SE,_Fe=xo,zFe=Mr,FFe=zFe("species"),kFe=function(e,t){var r=Ek(e).constructor,n;return r===void 0||_Fe(n=Ek(r)[FFe])?t:PFe(n)},yq=Go,DFe=kFe,LFe=yq.aTypedArrayConstructor,AFe=yq.getTypedArrayConstructor,bq=function(e){return LFe(DFe(e,AFe(e)))},NFe=F1,HFe=bq,Sq=function(e,t){return NFe(HFe(e),t)},$q=Go,BFe=Y3.filterReject,VFe=Sq,jFe=$q.aTypedArray,WFe=$q.exportTypedArrayMethod;WFe("filterOut",function(t){var r=BFe(jFe(this),t,arguments.length>1?arguments[1]:void 0);return VFe(this,r)},!0);var wq=Go,UFe=Y3.filterReject,KFe=Sq,YFe=wq.aTypedArray,GFe=wq.exportTypedArrayMethod;GFe("filterReject",function(t){var r=UFe(YFe(this),t,arguments.length>1?arguments[1]:void 0);return KFe(this,r)},!0);var Cq=Go,qFe=JO,XFe=bq,ZFe=Cq.aTypedArray,QFe=Cq.exportTypedArrayMethod;QFe("groupBy",function(t){var r=arguments.length>1?arguments[1]:void 0;return qFe(ZFe(this),t,r,XFe)},!0);var NE=Go,JFe=Dn,eke=rK,tke=Hg,rke=nK,nke=Oo,ake=Yr,oke=NE.aTypedArray,ike=NE.getTypedArrayConstructor,lke=NE.exportTypedArrayMethod,cke=Math.max,ske=Math.min,uke=!ake(function(){var e=new Int8Array([1]),t=e.toSpliced(1,0,{valueOf:function(){return e[0]=2,3}});return t[0]!==2||t[1]!==3});lke("toSpliced",function(t,r){var n=oke(this),a=ike(n),o=JFe(n),l=tke(t,o),c=arguments.length,s=0,u,d,f,v,h,m,p;if(c===0)u=d=0;else if(c===1)u=0,d=o-l;else if(d=ske(cke(nke(r),0),o-l),u=c-2,u){v=new a(u),f=eke(v);for(var g=2;g1?xke(arguments[1]):void 0,n=Ike(r)==="base64"?Mke:Tke,a=r?!!r.strict:!1,o=a?t:_ke(t,Fke,"");if(o.length%4===0)V8(o,-2)==="=="?o=V8(o,0,-2):V8(o,-1)==="="&&(o=V8(o,0,-1));else if(a)throw new m2("Input is not correctly padded");var l=o.length%4;switch(l){case 1:throw new m2("Bad input length");case 2:o+="AA";break;case 3:o+="A"}for(var c=[],s=0,u=o.length,d=function(h){var m=Pke(o,s+h);if(!Eke(n,m))throw new m2('Bad char in input: "'+m+'"');return n[m]<<18-6*h};s>16&255,f>>8&255,f&255)}var v=c.length;if(l===2){if(a&&c[v-2]!==0)throw new m2(Pk);v-=2}else if(l===3){if(a&&c[v-1]!==0)throw new m2(Pk);v--}return Rke(Tk,c,v)}});var kke=Pe,BE=Cr,Pq=Ht,Dke=Oq,_k=BE.Uint8Array,zk=BE.SyntaxError,Lke=BE.parseInt,_q=/[^\da-f]/i,Ake=Pq(_q.exec),Nke=Pq("".slice);_k&&kke({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(t){Dke(t);var r=t.length;if(r%2)throw new zk("String should have an even number of characters");if(Ake(_q,t))throw new zk("String should only contain hex characters");for(var n=new _k(r/2),a=0;a>6*u&63)};o+2r,l=nLe(n)?n:cLe(n),c=o?iLe(arguments,r):[],s=o?function(){rLe(l,this,c)}:l;return t?e(s,a):e(s)}:e},dLe=Pe,Bq=Cr,Xk=Nq.set,fLe=uLe,Zk=Bq.setImmediate?fLe(Xk,!1):Xk;dLe({global:!0,bind:!0,enumerable:!0,forced:Bq.setImmediate!==Zk},{setImmediate:Zk});var vLe=Pe,Ds=Cr,hLe=Yo,mLe=mn,gLe=TypeError,pLe=Object.defineProperty,Qk=Ds.self!==Ds;try{if(mLe){var Ny=Object.getOwnPropertyDescriptor(Ds,"self");(Qk||!Ny||!Ny.get||!Ny.enumerable)&&hLe(Ds,"self",{get:function(){return Ds},set:function(t){if(this!==Ds)throw new gLe("Illegal invocation");pLe(Ds,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else vLe({global:!0,simple:!0,forced:Qk},{self:Ds})}catch{}var yLe=Pe,Ba=Cr,vf=Wr,n6=Ht,YE=Yr,bLe=a4,x0=Dr,SLe=k1,$Le=xo,p5=sn,wLe=Fg,CLe=za,Vq=ar,am=mc,xLe=un,OLe=q3,Hy=mi,qv=Dn,ELe=f4,RLe=HU,y5=Ko,GE=Ro,ILe=pi,Jk=RK,MLe=pU,qE=nE,U2=Ba.Object,TLe=Ba.Array,jq=Ba.Date,Wq=Ba.Error,PLe=Ba.TypeError,_Le=Ba.PerformanceMark,g1=vf("DOMException"),nw=y5.Map,XE=y5.has,Uq=y5.get,om=y5.set,Kq=GE.Set,Yq=GE.add,zLe=GE.has,FLe=vf("Object","keys"),kLe=n6([].push),DLe=n6((!0).valueOf),LLe=n6(1 .valueOf),ALe=n6("".valueOf),NLe=n6(jq.prototype.getTime),aw=bLe("structuredClone"),Hf="DataCloneError",Xv="Transferring",Gq=function(e){return!YE(function(){var t=new Ba.Set([7]),r=e(t),n=e(U2(7));return r===t||!r.has(7)||!p5(n)||+n!=7})&&e},eD=function(e,t){return!YE(function(){var r=new t,n=e({a:r,b:r});return!(n&&n.a===n.b&&n.a instanceof t&&n.a.stack===r.stack)})},HLe=function(e){return!YE(function(){var t=e(new Ba.AggregateError([1],aw,{cause:3}));return t.name!=="AggregateError"||t.errors[0]!==1||t.message!==aw||t.cause!==3})},e0=Ba.structuredClone,BLe=!eD(e0,Wq)||!eD(e0,g1)||!HLe(e0),VLe=!e0&&Gq(function(e){return new _Le(aw,{detail:e}).detail}),Nc=Gq(e0)||VLe,By=function(e){throw new g1("Uncloneable type: "+e,Hf)},Fo=function(e,t){throw new g1((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",Hf)},Vy=function(e,t){return Nc||Fo(t),Nc(e)},jLe=function(){var e;try{e=new Ba.DataTransfer}catch{try{e=new Ba.ClipboardEvent("").clipboardData}catch{}}return e&&e.items&&e.files?e:null},qq=function(e,t,r){if(XE(t,e))return Uq(t,e);var n=r||am(e),a,o,l,c,s,u;if(n==="SharedArrayBuffer")Nc?a=Nc(e):a=e;else{var d=Ba.DataView;!d&&!x0(e.slice)&&Fo("ArrayBuffer");try{if(x0(e.slice)&&!e.resizable)a=e.slice(0);else for(o=e.byteLength,l=("maxByteLength"in e)?{maxByteLength:e.maxByteLength}:void 0,a=new ArrayBuffer(o,l),c=new d(e),s=new d(a),u=0;u1&&!$Le(arguments[1])?Vq(arguments[1]):void 0,n=r?r.transfer:void 0,a,o;n!==void 0&&(a=new nw,o=ULe(n,a));var l=Na(t,a);return o&&KLe(o),l}});var YLe=Yr,GLe=Mr,qLe=mn,tD=Ka,XLe=GLe("iterator"),ZLe=!YLe(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach(function(a,o){t.delete("b"),n+=o+a}),r.delete("a",2),r.delete("b",void 0),tD&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(tD||!qLe)||!t.sort||e.href!=="http://a/c%20d?a=1&c=3"||t.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!t[XLe]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||n!=="a1c3"||new URL("http://x",void 0).host!=="x"}),QLe=Pe,JLe=Wr,eAe=Yr,tAe=f4,rD=qa,rAe=ZLe,Xq=JLe("URL"),nAe=rAe&&eAe(function(){Xq.canParse()});QLe({target:"URL",stat:!0,forced:!nAe},{canParse:function(t){var r=tAe(arguments.length,1),n=rD(t),a=r<2||arguments[1]===void 0?void 0:rD(arguments[1]);try{return!!new Xq(n,a)}catch{return!1}}});var aAe=Uo,b5=Ht,nD=qa,oAe=f4,Zq=URLSearchParams,S5=Zq.prototype,iAe=b5(S5.append),aD=b5(S5.delete),lAe=b5(S5.forEach),cAe=b5([].push),ZE=new Zq("a=1&a=2&b=3");ZE.delete("a",1);ZE.delete("b",void 0);ZE+""!="a=2"&&aAe(S5,"delete",function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&r===void 0)return aD(this,e);var n=[];lAe(this,function(f,v){cAe(n,{key:v,value:f})}),oAe(t,1);for(var a=nD(e),o=nD(r),l=0,c=0,s=!1,u=n.length,d;l=0;--U){var K=this.tryEntries[U],Y=K.completion;if(K.tryLoc==="root")return V("end");if(K.tryLoc<=this.prev){var X=a.call(K,"catchLoc"),te=a.call(K,"finallyLoc");if(X&&te){if(this.prev=0;--V){var U=this.tryEntries[V];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--F){var V=this.tryEntries[F];if(V.finallyLoc===A)return this.complete(V.completion,V.afterLoc),j(V),y}},catch:function(A){for(var F=this.tryEntries.length-1;F>=0;--F){var V=this.tryEntries[F];if(V.tryLoc===A){var U=V.completion;if(U.type==="throw"){var K=U.arg;j(V)}return K}}throw new Error("illegal catch attempt")},delegateYield:function(A,F,V){return this.delegate={iterator:P(A),resultName:F,nextLoc:V},this.method==="next"&&(this.arg=l),y}},r}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(yAe);function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var tX={exports:{}},Pr={};/** * @license React * react.production.min.js * @@ -11,7 +11,7 @@ function xO(e,t){for(var r=0;r/g,">").replace(/"/g,""").replace(/'/g,"'")},uD=function(e){return Object.keys(e).reduce(function(t,r){var n=e[r]!==void 0?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n},"")},dD=function(e,t){return t===void 0&&(t={}),Object.keys(e).reduce(function(r,n){return r[sm[n]||n]=e[n],r},t)},Jv=function(e,t){return t.map(function(r,n){var a,o=((a={key:n})["data-rh"]=!0,a);return Object.keys(r).forEach(function(l){var c=sm[l]||l;c==="innerHTML"||c==="cssText"?o.dangerouslySetInnerHTML={__html:r.innerHTML||r.cssText}:o[c]=r[l]}),U.createElement(e,o)})},Oi=function(e,t,r){switch(e){case aa.TITLE:return{toComponent:function(){return a=t.titleAttributes,(o={key:n=t.title})["data-rh"]=!0,l=dD(a,o),[U.createElement(aa.TITLE,l,n)];var n,a,o,l},toString:function(){return function(n,a,o,l){var c=uD(o),s=GAe(a);return c?"<"+n+' data-rh="true" '+c+">"+Uy(s,l)+"":"<"+n+' data-rh="true">'+Uy(s,l)+""}(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return dD(t)},toString:function(){return uD(t)}};default:return{toComponent:function(){return Jv(e,t)},toString:function(){return function(n,a,o){return a.reduce(function(l,c){var s=Object.keys(c).filter(function(f){return!(f==="innerHTML"||f==="cssText")}).reduce(function(f,v){var h=c[v]===void 0?v:v+'="'+Uy(c[v],o)+'"';return f?f+" "+h:h},""),u=c.innerHTML||c.cssText||"",d=qAe.indexOf(n)===-1;return l+"<"+n+' data-rh="true" '+s+(d?"/>":">"+u+"")},"")}(e,t,r)}}}},XAe=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,a=e.htmlAttributes,o=e.noscriptTags,l=e.styleTags,c=e.title,s=c===void 0?"":c,u=e.titleAttributes,d=e.linkTags,f=e.metaTags,v=e.scriptTags,h={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var m=function(p){var g=p.linkTags,b=p.scriptTags,y=p.encode,S=Wy(p.metaTags,YAe),$=Wy(g,UAe),w=Wy(b,KAe);return{priorityMethods:{toComponent:function(){return[].concat(Jv(aa.META,S.priority),Jv(aa.LINK,$.priority),Jv(aa.SCRIPT,w.priority))},toString:function(){return Oi(aa.META,S.priority,y)+" "+Oi(aa.LINK,$.priority,y)+" "+Oi(aa.SCRIPT,w.priority,y)}},metaTags:S.default,linkTags:$.default,scriptTags:w.default}}(e);h=m.priorityMethods,d=m.linkTags,f=m.metaTags,v=m.scriptTags}return{priority:h,base:Oi(aa.BASE,t,n),bodyAttributes:Oi("bodyAttributes",r,n),htmlAttributes:Oi("htmlAttributes",a,n),link:Oi(aa.LINK,d,n),meta:Oi(aa.META,f,n),noscript:Oi(aa.NOSCRIPT,o,n),script:Oi(aa.SCRIPT,v,n),style:Oi(aa.STYLE,l,n),title:Oi(aa.TITLE,{title:s,titleAttributes:u},n)}},W8=[],ZAe=function(e,t){var r=this;t===void 0&&(t=typeof document<"u"),this.instances=[],this.value={setHelmet:function(n){r.context.helmet=n},helmetInstances:{get:function(){return r.canUseDOM?W8:r.instances},add:function(n){(r.canUseDOM?W8:r.instances).push(n)},remove:function(n){var a=(r.canUseDOM?W8:r.instances).indexOf(n);(r.canUseDOM?W8:r.instances).splice(a,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=XAe({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},QAe=U.createContext({}),JAe=Vr.shape({setHelmet:Vr.func,helmetInstances:Vr.shape({get:Vr.func,add:Vr.func,remove:Vr.func})}),eNe=typeof document<"u",K2=function(e){function t(r){var n;return(n=e.call(this,r)||this).helmetData=new ZAe(n.props.context,t.canUseDOM),n}return WAe(t,e),t.prototype.render=function(){return U.createElement(QAe.Provider,{value:this.helmetData.value},this.props.children)},t}(i.Component);K2.canUseDOM=eNe,K2.propTypes={context:Vr.shape({helmet:Vr.shape()}),children:Vr.node.isRequired},K2.defaultProps={context:{}},K2.displayName="HelmetProvider";JAe.isRequired;Vr.object,Vr.object,Vr.oneOfType([Vr.arrayOf(Vr.node),Vr.node]),Vr.string,Vr.bool,Vr.bool,Vr.object,Vr.arrayOf(Vr.object),Vr.arrayOf(Vr.object),Vr.arrayOf(Vr.object),Vr.func,Vr.arrayOf(Vr.object),Vr.arrayOf(Vr.object),Vr.string,Vr.object,Vr.string,Vr.bool,Vr.object;/** + */var a6=Symbol.for("react.element"),CAe=Symbol.for("react.portal"),xAe=Symbol.for("react.fragment"),OAe=Symbol.for("react.strict_mode"),EAe=Symbol.for("react.profiler"),RAe=Symbol.for("react.provider"),IAe=Symbol.for("react.context"),MAe=Symbol.for("react.forward_ref"),TAe=Symbol.for("react.suspense"),PAe=Symbol.for("react.memo"),_Ae=Symbol.for("react.lazy"),lD=Symbol.iterator;function zAe(e){return e===null||typeof e!="object"?null:(e=lD&&e[lD]||e["@@iterator"],typeof e=="function"?e:null)}var rX={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nX=Object.assign,aX={};function v4(e,t,r){this.props=e,this.context=t,this.refs=aX,this.updater=r||rX}v4.prototype.isReactComponent={};v4.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};v4.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oX(){}oX.prototype=v4.prototype;function JE(e,t,r){this.props=e,this.context=t,this.refs=aX,this.updater=r||rX}var eR=JE.prototype=new oX;eR.constructor=JE;nX(eR,v4.prototype);eR.isPureReactComponent=!0;var cD=Array.isArray,iX=Object.prototype.hasOwnProperty,tR={current:null},lX={key:!0,ref:!0,__self:!0,__source:!0};function cX(e,t,r){var n,a={},o=null,l=null;if(t!=null)for(n in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)iX.call(t,n)&&!lX.hasOwnProperty(n)&&(a[n]=t[n]);var c=arguments.length-2;if(c===1)a.children=r;else if(1/g,">").replace(/"/g,""").replace(/'/g,"'")},uD=function(e){return Object.keys(e).reduce(function(t,r){var n=e[r]!==void 0?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n},"")},dD=function(e,t){return t===void 0&&(t={}),Object.keys(e).reduce(function(r,n){return r[sm[n]||n]=e[n],r},t)},Jv=function(e,t){return t.map(function(r,n){var a,o=((a={key:n})["data-rh"]=!0,a);return Object.keys(r).forEach(function(l){var c=sm[l]||l;c==="innerHTML"||c==="cssText"?o.dangerouslySetInnerHTML={__html:r.innerHTML||r.cssText}:o[c]=r[l]}),W.createElement(e,o)})},Oi=function(e,t,r){switch(e){case aa.TITLE:return{toComponent:function(){return a=t.titleAttributes,(o={key:n=t.title})["data-rh"]=!0,l=dD(a,o),[W.createElement(aa.TITLE,l,n)];var n,a,o,l},toString:function(){return function(n,a,o,l){var c=uD(o),s=YAe(a);return c?"<"+n+' data-rh="true" '+c+">"+Uy(s,l)+"":"<"+n+' data-rh="true">'+Uy(s,l)+""}(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return dD(t)},toString:function(){return uD(t)}};default:return{toComponent:function(){return Jv(e,t)},toString:function(){return function(n,a,o){return a.reduce(function(l,c){var s=Object.keys(c).filter(function(f){return!(f==="innerHTML"||f==="cssText")}).reduce(function(f,v){var h=c[v]===void 0?v:v+'="'+Uy(c[v],o)+'"';return f?f+" "+h:h},""),u=c.innerHTML||c.cssText||"",d=GAe.indexOf(n)===-1;return l+"<"+n+' data-rh="true" '+s+(d?"/>":">"+u+"")},"")}(e,t,r)}}}},qAe=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,a=e.htmlAttributes,o=e.noscriptTags,l=e.styleTags,c=e.title,s=c===void 0?"":c,u=e.titleAttributes,d=e.linkTags,f=e.metaTags,v=e.scriptTags,h={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var m=function(p){var g=p.linkTags,b=p.scriptTags,y=p.encode,S=Wy(p.metaTags,KAe),$=Wy(g,WAe),w=Wy(b,UAe);return{priorityMethods:{toComponent:function(){return[].concat(Jv(aa.META,S.priority),Jv(aa.LINK,$.priority),Jv(aa.SCRIPT,w.priority))},toString:function(){return Oi(aa.META,S.priority,y)+" "+Oi(aa.LINK,$.priority,y)+" "+Oi(aa.SCRIPT,w.priority,y)}},metaTags:S.default,linkTags:$.default,scriptTags:w.default}}(e);h=m.priorityMethods,d=m.linkTags,f=m.metaTags,v=m.scriptTags}return{priority:h,base:Oi(aa.BASE,t,n),bodyAttributes:Oi("bodyAttributes",r,n),htmlAttributes:Oi("htmlAttributes",a,n),link:Oi(aa.LINK,d,n),meta:Oi(aa.META,f,n),noscript:Oi(aa.NOSCRIPT,o,n),script:Oi(aa.SCRIPT,v,n),style:Oi(aa.STYLE,l,n),title:Oi(aa.TITLE,{title:s,titleAttributes:u},n)}},W8=[],XAe=function(e,t){var r=this;t===void 0&&(t=typeof document<"u"),this.instances=[],this.value={setHelmet:function(n){r.context.helmet=n},helmetInstances:{get:function(){return r.canUseDOM?W8:r.instances},add:function(n){(r.canUseDOM?W8:r.instances).push(n)},remove:function(n){var a=(r.canUseDOM?W8:r.instances).indexOf(n);(r.canUseDOM?W8:r.instances).splice(a,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=qAe({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},ZAe=W.createContext({}),QAe=jr.shape({setHelmet:jr.func,helmetInstances:jr.shape({get:jr.func,add:jr.func,remove:jr.func})}),JAe=typeof document<"u",K2=function(e){function t(r){var n;return(n=e.call(this,r)||this).helmetData=new XAe(n.props.context,t.canUseDOM),n}return jAe(t,e),t.prototype.render=function(){return W.createElement(ZAe.Provider,{value:this.helmetData.value},this.props.children)},t}(i.Component);K2.canUseDOM=JAe,K2.propTypes={context:jr.shape({helmet:jr.shape()}),children:jr.node.isRequired},K2.defaultProps={context:{}},K2.displayName="HelmetProvider";QAe.isRequired;jr.object,jr.object,jr.oneOfType([jr.arrayOf(jr.node),jr.node]),jr.string,jr.bool,jr.bool,jr.object,jr.arrayOf(jr.object),jr.arrayOf(jr.object),jr.arrayOf(jr.object),jr.func,jr.arrayOf(jr.object),jr.arrayOf(jr.object),jr.string,jr.object,jr.string,jr.bool,jr.object;/** * React Router v6.3.0 * * Copyright (c) Remix Software Inc. @@ -20,7 +20,7 @@ function xO(e,t){for(var r=0;r(t[n]==null&&rc(!1),t[n])).replace(/\/*\*$/,r=>t["*"]==null?"":t["*"].replace(/^\/*/,"/"))}function oR(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?bl(t):t,a=mX(n.pathname||"/",r);if(a==null)return null;let o=vX(e);rNe(o);let l=null;for(let c=0;l==null&&c{let l={relativePath:a.path||"",caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(l.relativePath.startsWith(n)||rc(!1),l.relativePath=l.relativePath.slice(n.length));let c=ru([n,l.relativePath]),s=r.concat(l);a.children&&a.children.length>0&&(a.index===!0&&rc(!1),vX(a.children,t,s,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:sNe(c,a.index),routesMeta:s})}),t}function rNe(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:uNe(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const nNe=/^:\w+$/,aNe=3,oNe=2,iNe=1,lNe=10,cNe=-2,fD=e=>e==="*";function sNe(e,t){let r=e.split("/"),n=r.length;return r.some(fD)&&(n+=cNe),t&&(n+=oNe),r.filter(a=>!fD(a)).reduce((a,o)=>a+(nNe.test(o)?aNe:o===""?iNe:lNe),n)}function uNe(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function dNe(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let l=0;l{if(d==="*"){let v=c[f]||"";l=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}return u[d]=hNe(c[f]||""),u},{}),pathname:o,pathnameBase:l,pattern:e}}function vNe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(l,c)=>(n.push(c),"([^\\/]+)"));return e.endsWith("*")?(n.push("*"),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a+=r?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(a,t?void 0:"i"),n]}function hNe(e,t){try{return decodeURIComponent(e)}catch{return e}}function mNe(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?bl(e):e;return{pathname:r?r.startsWith("/")?r:gNe(r,t):t,search:yNe(n),hash:bNe(a)}}function gNe(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function hX(e,t,r){let n=typeof e=="string"?bl(e):e,a=e===""||n.pathname===""?"/":n.pathname,o;if(a==null)o=r;else{let c=t.length-1;if(a.startsWith("..")){let s=a.split("/");for(;s[0]==="..";)s.shift(),c-=1;n.pathname=s.join("/")}o=c>=0?t[c]:"/"}let l=mNe(n,o);return a&&a!=="/"&&a.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function pNe(e){return e===""||e.pathname===""?"/":typeof e=="string"?bl(e).pathname:e.pathname}function mX(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=e.charAt(t.length);return r&&r!=="/"?null:e.slice(t.length)||"/"}const ru=e=>e.join("/").replace(/\/\/+/g,"/"),gX=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yNe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bNe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function SNe(e){m4()||rc(!1);let{basename:t,navigator:r}=i.useContext(nR),{hash:n,pathname:a,search:o}=yX(e),l=a;if(t!=="/"){let c=pNe(e),s=c!=null&&c.endsWith("/");l=a==="/"?t+(s?"/":""):ru([t,a])}return r.createHref({pathname:l,search:o,hash:n})}function m4(){return i.useContext(aR)!=null}function us(){return m4()||rc(!1),i.useContext(aR).location}function o6(){m4()||rc(!1);let{basename:e,navigator:t}=i.useContext(nR),{matches:r}=i.useContext(h4),{pathname:n}=us(),a=JSON.stringify(r.map(c=>c.pathnameBase)),o=i.useRef(!1);return i.useEffect(()=>{o.current=!0}),i.useCallback(function(c,s){if(s===void 0&&(s={}),!o.current)return;if(typeof c=="number"){t.go(c);return}let u=hX(c,JSON.parse(a),n);e!=="/"&&(u.pathname=ru([e,u.pathname])),(s.replace?t.replace:t.push)(u,s.state)},[e,t,a,n])}const $Ne=i.createContext(null);function wNe(e){let t=i.useContext(h4).outlet;return t&&i.createElement($Ne.Provider,{value:e},t)}function pX(){let{matches:e}=i.useContext(h4),t=e[e.length-1];return t?t.params:{}}function yX(e){let{matches:t}=i.useContext(h4),{pathname:r}=us(),n=JSON.stringify(t.map(a=>a.pathnameBase));return i.useMemo(()=>hX(e,JSON.parse(n),r),[e,n,r])}function CNe(e,t){m4()||rc(!1);let{matches:r}=i.useContext(h4),n=r[r.length-1],a=n?n.params:{};n&&n.pathname;let o=n?n.pathnameBase:"/";n&&n.route;let l=us(),c;if(t){var s;let v=typeof t=="string"?bl(t):t;o==="/"||(s=v.pathname)!=null&&s.startsWith(o)||rc(!1),c=v}else c=l;let u=c.pathname||"/",d=o==="/"?u:u.slice(o.length)||"/",f=oR(e,{pathname:d});return xNe(f&&f.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:ru([o,v.pathname]),pathnameBase:v.pathnameBase==="/"?o:ru([o,v.pathnameBase])})),r)}function xNe(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((r,n,a)=>i.createElement(h4.Provider,{children:n.route.element!==void 0?n.route.element:r,value:{outlet:r,matches:t.concat(e.slice(0,a+1))}}),null)}function bX(e){let{to:t,replace:r,state:n}=e;m4()||rc(!1);let a=o6();return i.useEffect(()=>{a(t,{replace:r,state:n})}),null}function vD(e){return wNe(e.context)}function ONe(e){let{basename:t="/",children:r=null,location:n,navigationType:a=bo.Pop,navigator:o,static:l=!1}=e;m4()&&rc(!1);let c=gX(t),s=i.useMemo(()=>({basename:c,navigator:o,static:l}),[c,o,l]);typeof n=="string"&&(n=bl(n));let{pathname:u="/",search:d="",hash:f="",state:v=null,key:h="default"}=n,m=i.useMemo(()=>{let p=mX(u,c);return p==null?null:{pathname:p,search:d,hash:f,state:v,key:h}},[c,u,d,f,v,h]);return m==null?null:i.createElement(nR.Provider,{value:s},i.createElement(aR.Provider,{children:r,value:{location:m,navigationType:a}}))}/** + */const nR=i.createContext(null),aR=i.createContext(null),h4=i.createContext({outlet:null,matches:[]});function rc(e,t){if(!e)throw new Error(t)}function eNe(e,t){return t===void 0&&(t={}),e.replace(/:(\w+)/g,(r,n)=>(t[n]==null&&rc(!1),t[n])).replace(/\/*\*$/,r=>t["*"]==null?"":t["*"].replace(/^\/*/,"/"))}function oR(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?yl(t):t,a=mX(n.pathname||"/",r);if(a==null)return null;let o=vX(e);tNe(o);let l=null;for(let c=0;l==null&&c{let l={relativePath:a.path||"",caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(l.relativePath.startsWith(n)||rc(!1),l.relativePath=l.relativePath.slice(n.length));let c=ru([n,l.relativePath]),s=r.concat(l);a.children&&a.children.length>0&&(a.index===!0&&rc(!1),vX(a.children,t,s,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:cNe(c,a.index),routesMeta:s})}),t}function tNe(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:sNe(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const rNe=/^:\w+$/,nNe=3,aNe=2,oNe=1,iNe=10,lNe=-2,fD=e=>e==="*";function cNe(e,t){let r=e.split("/"),n=r.length;return r.some(fD)&&(n+=lNe),t&&(n+=aNe),r.filter(a=>!fD(a)).reduce((a,o)=>a+(rNe.test(o)?nNe:o===""?oNe:iNe),n)}function sNe(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function uNe(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let l=0;l{if(d==="*"){let v=c[f]||"";l=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}return u[d]=vNe(c[f]||""),u},{}),pathname:o,pathnameBase:l,pattern:e}}function fNe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(l,c)=>(n.push(c),"([^\\/]+)"));return e.endsWith("*")?(n.push("*"),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a+=r?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(a,t?void 0:"i"),n]}function vNe(e,t){try{return decodeURIComponent(e)}catch{return e}}function hNe(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?yl(e):e;return{pathname:r?r.startsWith("/")?r:mNe(r,t):t,search:pNe(n),hash:yNe(a)}}function mNe(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function hX(e,t,r){let n=typeof e=="string"?yl(e):e,a=e===""||n.pathname===""?"/":n.pathname,o;if(a==null)o=r;else{let c=t.length-1;if(a.startsWith("..")){let s=a.split("/");for(;s[0]==="..";)s.shift(),c-=1;n.pathname=s.join("/")}o=c>=0?t[c]:"/"}let l=hNe(n,o);return a&&a!=="/"&&a.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function gNe(e){return e===""||e.pathname===""?"/":typeof e=="string"?yl(e).pathname:e.pathname}function mX(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=e.charAt(t.length);return r&&r!=="/"?null:e.slice(t.length)||"/"}const ru=e=>e.join("/").replace(/\/\/+/g,"/"),gX=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),pNe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,yNe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function bNe(e){m4()||rc(!1);let{basename:t,navigator:r}=i.useContext(nR),{hash:n,pathname:a,search:o}=yX(e),l=a;if(t!=="/"){let c=gNe(e),s=c!=null&&c.endsWith("/");l=a==="/"?t+(s?"/":""):ru([t,a])}return r.createHref({pathname:l,search:o,hash:n})}function m4(){return i.useContext(aR)!=null}function us(){return m4()||rc(!1),i.useContext(aR).location}function o6(){m4()||rc(!1);let{basename:e,navigator:t}=i.useContext(nR),{matches:r}=i.useContext(h4),{pathname:n}=us(),a=JSON.stringify(r.map(c=>c.pathnameBase)),o=i.useRef(!1);return i.useEffect(()=>{o.current=!0}),i.useCallback(function(c,s){if(s===void 0&&(s={}),!o.current)return;if(typeof c=="number"){t.go(c);return}let u=hX(c,JSON.parse(a),n);e!=="/"&&(u.pathname=ru([e,u.pathname])),(s.replace?t.replace:t.push)(u,s.state)},[e,t,a,n])}const SNe=i.createContext(null);function $Ne(e){let t=i.useContext(h4).outlet;return t&&i.createElement(SNe.Provider,{value:e},t)}function pX(){let{matches:e}=i.useContext(h4),t=e[e.length-1];return t?t.params:{}}function yX(e){let{matches:t}=i.useContext(h4),{pathname:r}=us(),n=JSON.stringify(t.map(a=>a.pathnameBase));return i.useMemo(()=>hX(e,JSON.parse(n),r),[e,n,r])}function wNe(e,t){m4()||rc(!1);let{matches:r}=i.useContext(h4),n=r[r.length-1],a=n?n.params:{};n&&n.pathname;let o=n?n.pathnameBase:"/";n&&n.route;let l=us(),c;if(t){var s;let v=typeof t=="string"?yl(t):t;o==="/"||(s=v.pathname)!=null&&s.startsWith(o)||rc(!1),c=v}else c=l;let u=c.pathname||"/",d=o==="/"?u:u.slice(o.length)||"/",f=oR(e,{pathname:d});return CNe(f&&f.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:ru([o,v.pathname]),pathnameBase:v.pathnameBase==="/"?o:ru([o,v.pathnameBase])})),r)}function CNe(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((r,n,a)=>i.createElement(h4.Provider,{children:n.route.element!==void 0?n.route.element:r,value:{outlet:r,matches:t.concat(e.slice(0,a+1))}}),null)}function bX(e){let{to:t,replace:r,state:n}=e;m4()||rc(!1);let a=o6();return i.useEffect(()=>{a(t,{replace:r,state:n})}),null}function vD(e){return $Ne(e.context)}function xNe(e){let{basename:t="/",children:r=null,location:n,navigationType:a=bo.Pop,navigator:o,static:l=!1}=e;m4()&&rc(!1);let c=gX(t),s=i.useMemo(()=>({basename:c,navigator:o,static:l}),[c,o,l]);typeof n=="string"&&(n=yl(n));let{pathname:u="/",search:d="",hash:f="",state:v=null,key:h="default"}=n,m=i.useMemo(()=>{let p=mX(u,c);return p==null?null:{pathname:p,search:d,hash:f,state:v,key:h}},[c,u,d,f,v,h]);return m==null?null:i.createElement(nR.Provider,{value:s},i.createElement(aR.Provider,{children:r,value:{location:m,navigationType:a}}))}/** * React Router DOM v6.3.0 * * Copyright (c) Remix Software Inc. @@ -29,8 +29,8 @@ function xO(e,t){for(var r=0;r=0)&&(r[a]=e[a]);return r}const RNe=["onClick","reloadDocument","replace","state","target","to"];function MNe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const INe=i.forwardRef(function(t,r){let{onClick:n,reloadDocument:a,replace:o=!1,state:l,target:c,to:s}=t,u=ENe(t,RNe),d=SNe(s),f=TNe(s,{replace:o,state:l,target:c});function v(h){n&&n(h),!h.defaultPrevented&&!a&&f(h)}return i.createElement("a",lw({},u,{href:d,onClick:v,ref:r,target:c}))});function TNe(e,t){let{target:r,replace:n,state:a}=t===void 0?{}:t,o=o6(),l=us(),c=yX(e);return i.useCallback(s=>{if(s.button===0&&(!r||r==="_self")&&!MNe(s)){s.preventDefault();let u=!!n||n1(l)===n1(c);o(e,{replace:u,state:a})}},[l,o,c,n,a,r,e])}function ben(e){let t=i.useRef(Ky(e)),r=us(),n=i.useMemo(()=>{let l=Ky(r.search);for(let c of t.current.keys())l.has(c)||t.current.getAll(c).forEach(s=>{l.append(c,s)});return l},[r.search]),a=o6(),o=i.useCallback((l,c)=>{a("?"+Ky(l),c)},[a]);return[n,o]}function Ky(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function PNe(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SX(e){var t=PNe(e,"string");return si(t)=="symbol"?t:String(t)}function t0(e,t,r){return t=SX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ia(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&(r[a]=e[a]);return r}function i6(e,t){if(e==null)return{};var r=zNe(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gD(e){var t=e.id,r=e.basename,n=e.cb,a=new URLSearchParams({route:t,url:window.location.href}).toString(),o="".concat(FNe(window.umiServerLoaderPath||r),"__serverLoader?").concat(a);fetch(o,{credentials:"include"}).then(function(l){return l.json()}).then(n).catch(console.error)}function FNe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.endsWith("/")?e:"".concat(e,"/")}var CX=U.createContext(void 0);function kNe(){return U.useContext(CX)}var DNe=["element"],xX=U.createContext({});function w5(){return U.useContext(xX)}function LNe(){var e=us(),t=w5(),r=t.clientRoutes,n=oR(r,e.pathname);return n||[]}function ANe(){var e,t=LNe().slice(-1),r=((e=t[0])===null||e===void 0?void 0:e.route)||{};r.element;var n=i6(r,DNe);return n}var Fd={},OX={exports:{}},yi={},EX={exports:{}},RX={};/** + */function lw(){return lw=Object.assign||function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}const ENe=["onClick","reloadDocument","replace","state","target","to"];function RNe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const INe=i.forwardRef(function(t,r){let{onClick:n,reloadDocument:a,replace:o=!1,state:l,target:c,to:s}=t,u=ONe(t,ENe),d=bNe(s),f=MNe(s,{replace:o,state:l,target:c});function v(h){n&&n(h),!h.defaultPrevented&&!a&&f(h)}return i.createElement("a",lw({},u,{href:d,onClick:v,ref:r,target:c}))});function MNe(e,t){let{target:r,replace:n,state:a}=t===void 0?{}:t,o=o6(),l=us(),c=yX(e);return i.useCallback(s=>{if(s.button===0&&(!r||r==="_self")&&!RNe(s)){s.preventDefault();let u=!!n||n1(l)===n1(c);o(e,{replace:u,state:a})}},[l,o,c,n,a,r,e])}function ben(e){let t=i.useRef(Ky(e)),r=us(),n=i.useMemo(()=>{let l=Ky(r.search);for(let c of t.current.keys())l.has(c)||t.current.getAll(c).forEach(s=>{l.append(c,s)});return l},[r.search]),a=o6(),o=i.useCallback((l,c)=>{a("?"+Ky(l),c)},[a]);return[n,o]}function Ky(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function TNe(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SX(e){var t=TNe(e,"string");return si(t)=="symbol"?t:String(t)}function t0(e,t,r){return t=SX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ma(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&(r[a]=e[a]);return r}function i6(e,t){if(e==null)return{};var r=_Ne(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gD(e){var t=e.id,r=e.basename,n=e.cb,a=new URLSearchParams({route:t,url:window.location.href}).toString(),o="".concat(zNe(window.umiServerLoaderPath||r),"__serverLoader?").concat(a);fetch(o,{credentials:"include"}).then(function(l){return l.json()}).then(n).catch(console.error)}function zNe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.endsWith("/")?e:"".concat(e,"/")}var CX=W.createContext(void 0);function FNe(){return W.useContext(CX)}var kNe=["element"],xX=W.createContext({});function w5(){return W.useContext(xX)}function DNe(){var e=us(),t=w5(),r=t.clientRoutes,n=oR(r,e.pathname);return n||[]}function LNe(){var e,t=DNe().slice(-1),r=((e=t[0])===null||e===void 0?void 0:e.route)||{};r.element;var n=i6(r,kNe);return n}var Fd={},OX={exports:{}},yi={},EX={exports:{}},RX={};/** * @license React * scheduler.production.min.js * @@ -38,7 +38,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(k,A){var F=k.length;k.push(A);e:for(;0>>1,W=k[j];if(0>>1;ja(X,F))tea(Q,X)?(k[j]=Q,k[te]=F,j=te):(k[j]=X,k[Y]=F,j=Y);else if(tea(Q,F))k[j]=Q,k[te]=F,j=te;else break e}}return A}function a(k,A){var F=k.sortIndex-A.sortIndex;return F!==0?F:k.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var s=[],u=[],d=1,f=null,v=3,h=!1,m=!1,p=!1,g=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(k){for(var A=r(u);A!==null;){if(A.callback===null)n(u);else if(A.startTime<=k)n(u),A.sortIndex=A.expirationTime,t(s,A);else break;A=r(u)}}function $(k){if(p=!1,S(k),!m)if(r(s)!==null)m=!0,T(w);else{var A=r(u);A!==null&&P($,A.startTime-k)}}function w(k,A){m=!1,p&&(p=!1,b(O),O=-1),h=!0;var F=v;try{for(S(A),f=r(s);f!==null&&(!(f.expirationTime>A)||k&&!_());){var j=f.callback;if(typeof j=="function"){f.callback=null,v=f.priorityLevel;var W=j(f.expirationTime<=A);A=e.unstable_now(),typeof W=="function"?f.callback=W:f===r(s)&&n(s),S(A)}else n(s);f=r(s)}if(f!==null)var K=!0;else{var Y=r(u);Y!==null&&P($,Y.startTime-A),K=!1}return K}finally{f=null,v=F,h=!1}}var C=!1,E=null,O=-1,R=5,M=-1;function _(){return!(e.unstable_now()-Mk||125j?(k.sortIndex=F,t(u,k),r(s)===null&&k===r(u)&&(p?(b(O),O=-1):p=!0,P($,F-j))):(k.sortIndex=W,t(s,k),m||h||(m=!0,T(w))),k},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(k){var A=v;return function(){var F=v;v=A;try{return k.apply(this,arguments)}finally{v=F}}}})(RX);EX.exports=RX;var NNe=EX.exports;/** + */(function(e){function t(k,A){var F=k.length;k.push(A);e:for(;0>>1,U=k[V];if(0>>1;Va(X,F))tea(Q,X)?(k[V]=Q,k[te]=F,V=te):(k[V]=X,k[Y]=F,V=Y);else if(tea(Q,F))k[V]=Q,k[te]=F,V=te;else break e}}return A}function a(k,A){var F=k.sortIndex-A.sortIndex;return F!==0?F:k.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var s=[],u=[],d=1,f=null,v=3,h=!1,m=!1,p=!1,g=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(k){for(var A=r(u);A!==null;){if(A.callback===null)n(u);else if(A.startTime<=k)n(u),A.sortIndex=A.expirationTime,t(s,A);else break;A=r(u)}}function $(k){if(p=!1,S(k),!m)if(r(s)!==null)m=!0,T(w);else{var A=r(u);A!==null&&P($,A.startTime-k)}}function w(k,A){m=!1,p&&(p=!1,b(O),O=-1),h=!0;var F=v;try{for(S(A),f=r(s);f!==null&&(!(f.expirationTime>A)||k&&!_());){var V=f.callback;if(typeof V=="function"){f.callback=null,v=f.priorityLevel;var U=V(f.expirationTime<=A);A=e.unstable_now(),typeof U=="function"?f.callback=U:f===r(s)&&n(s),S(A)}else n(s);f=r(s)}if(f!==null)var K=!0;else{var Y=r(u);Y!==null&&P($,Y.startTime-A),K=!1}return K}finally{f=null,v=F,h=!1}}var C=!1,E=null,O=-1,R=5,I=-1;function _(){return!(e.unstable_now()-Ik||125V?(k.sortIndex=F,t(u,k),r(s)===null&&k===r(u)&&(p?(b(O),O=-1):p=!0,P($,F-V))):(k.sortIndex=U,t(s,k),m||h||(m=!0,T(w))),k},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(k){var A=v;return function(){var F=v;v=A;try{return k.apply(this,arguments)}finally{v=F}}}})(RX);EX.exports=RX;var ANe=EX.exports;/** * @license React * react-dom.production.min.js * @@ -46,14 +46,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var HNe=i,fi=NNe;function pt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cw=Object.prototype.hasOwnProperty,BNe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pD={},yD={};function jNe(e){return cw.call(yD,e)?!0:cw.call(pD,e)?!1:BNe.test(e)?yD[e]=!0:(pD[e]=!0,!1)}function VNe(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function WNe(e,t,r,n){if(t===null||typeof t>"u"||VNe(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Io(e,t,r,n,a,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Ua={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ua[e]=new Io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ua[t]=new Io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ua[e]=new Io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ua[e]=new Io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ua[e]=new Io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ua[e]=new Io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ua[e]=new Io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ua[e]=new Io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ua[e]=new Io(e,5,!1,e.toLowerCase(),null,!1,!1)});var lR=/[\-:]([a-z])/g;function cR(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lR,cR);Ua[t]=new Io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lR,cR);Ua[t]=new Io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lR,cR);Ua[t]=new Io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ua[e]=new Io(e,1,!1,e.toLowerCase(),null,!1,!1)});Ua.xlinkHref=new Io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ua[e]=new Io(e,1,!1,e.toLowerCase(),null,!0,!0)});function sR(e,t,r,n){var a=Ua.hasOwnProperty(t)?Ua[t]:null;(a!==null?a.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cw=Object.prototype.hasOwnProperty,HNe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pD={},yD={};function BNe(e){return cw.call(yD,e)?!0:cw.call(pD,e)?!1:HNe.test(e)?yD[e]=!0:(pD[e]=!0,!1)}function VNe(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jNe(e,t,r,n){if(t===null||typeof t>"u"||VNe(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mo(e,t,r,n,a,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Ua={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ua[e]=new Mo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ua[t]=new Mo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ua[e]=new Mo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ua[e]=new Mo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ua[e]=new Mo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ua[e]=new Mo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ua[e]=new Mo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ua[e]=new Mo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ua[e]=new Mo(e,5,!1,e.toLowerCase(),null,!1,!1)});var lR=/[\-:]([a-z])/g;function cR(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lR,cR);Ua[t]=new Mo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lR,cR);Ua[t]=new Mo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lR,cR);Ua[t]=new Mo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ua[e]=new Mo(e,1,!1,e.toLowerCase(),null,!1,!1)});Ua.xlinkHref=new Mo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ua[e]=new Mo(e,1,!1,e.toLowerCase(),null,!0,!0)});function sR(e,t,r,n){var a=Ua.hasOwnProperty(t)?Ua[t]:null;(a!==null?a.type!==0:n||!(2c||a[l]!==o[c]){var s=` -`+a[l].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=c);break}}}finally{Gy=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Y2(e):""}function UNe(e){switch(e.tag){case 5:return Y2(e.type);case 16:return Y2("Lazy");case 13:return Y2("Suspense");case 19:return Y2("SuspenseList");case 0:case 2:case 15:return e=qy(e.type,!1),e;case 11:return e=qy(e.type.render,!1),e;case 1:return e=qy(e.type,!0),e;default:return""}}function fw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dd:return"Fragment";case kd:return"Portal";case sw:return"Profiler";case uR:return"StrictMode";case uw:return"Suspense";case dw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case TX:return(e.displayName||"Context")+".Consumer";case IX:return(e._context.displayName||"Context")+".Provider";case dR:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fR:return t=e.displayName||null,t!==null?t:fw(e.type)||"Memo";case Ls:t=e._payload,e=e._init;try{return fw(e(t))}catch{}}return null}function KNe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fw(t);case 8:return t===uR?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function mu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _X(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function YNe(e){var t=_X(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){n=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function K8(e){e._valueTracker||(e._valueTracker=YNe(e))}function zX(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=_X(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function dm(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vw(e,t){var r=t.checked;return Bn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function SD(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=mu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function FX(e,t){t=t.checked,t!=null&&sR(e,"checked",t,!1)}function hw(e,t){FX(e,t);var r=mu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mw(e,t.type,r):t.hasOwnProperty("defaultValue")&&mw(e,t.type,mu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $D(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function mw(e,t,r){(t!=="number"||dm(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var G2=Array.isArray;function r0(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Y8.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},GNe=["Webkit","ms","Moz","O"];Object.keys(hf).forEach(function(e){GNe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hf[t]=hf[e]})});function AX(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hf.hasOwnProperty(e)&&hf[e]?(""+t).trim():t+"px"}function NX(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=AX(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var qNe=Bn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yw(e,t){if(t){if(qNe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(pt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(pt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(pt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(pt(62))}}function bw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sw=null;function vR(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $w=null,n0=null,a0=null;function xD(e){if(e=s6(e)){if(typeof $w!="function")throw Error(pt(280));var t=e.stateNode;t&&(t=R5(t),$w(e.stateNode,e.type,t))}}function HX(e){n0?a0?a0.push(e):a0=[e]:n0=e}function BX(){if(n0){var e=n0,t=a0;if(a0=n0=null,xD(e),t)for(e=0;e>>=0,e===0?32:31-(iHe(e)/lHe|0)|0}var G8=64,q8=4194304;function q2(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function mm(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,l=r&268435455;if(l!==0){var c=l&~a;c!==0?n=q2(c):(o&=l,o!==0&&(n=q2(o)))}else l=r&~a,l!==0?n=q2(l):o!==0&&(n=q2(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function l6(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fl(t),e[t]=r}function dHe(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=gf),zD=String.fromCharCode(32),FD=!1;function lZ(e,t){switch(e){case"keyup":return NHe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cZ(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ld=!1;function BHe(e,t){switch(e){case"compositionend":return cZ(t);case"keypress":return t.which!==32?null:(FD=!0,zD);case"textInput":return e=t.data,e===zD&&FD?null:e;default:return null}}function jHe(e,t){if(Ld)return e==="compositionend"||!$R&&lZ(e,t)?(e=oZ(),th=yR=Us=null,Ld=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=AD(r)}}function fZ(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fZ(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vZ(){for(var e=window,t=dm();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=dm(e.document)}return t}function wR(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ZHe(e){var t=vZ(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&fZ(r.ownerDocument.documentElement,r)){if(n!==null&&wR(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=ND(r,o);var l=ND(r,n);a&&l&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ad=null,Rw=null,yf=null,Mw=!1;function HD(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Mw||Ad==null||Ad!==dm(n)||(n=Ad,"selectionStart"in n&&wR(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yf&&Gf(yf,n)||(yf=n,n=ym(Rw,"onSelect"),0Bd||(e.current=Fw[Bd],Fw[Bd]=null,Bd--)}function Sn(e,t){Bd++,Fw[Bd]=e.current,e.current=t}var gu={},co=Mu(gu),No=Mu(!1),p1=gu;function M0(e,t){var r=e.type.contextTypes;if(!r)return gu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ho(e){return e=e.childContextTypes,e!=null}function Sm(){Rn(No),Rn(co)}function YD(e,t,r){if(co.current!==gu)throw Error(pt(168));Sn(co,t),Sn(No,r)}function wZ(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(pt(108,KNe(e)||"Unknown",a));return Bn({},r,n)}function $m(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gu,p1=co.current,Sn(co,e),Sn(No,No.current),!0}function GD(e,t,r){var n=e.stateNode;if(!n)throw Error(pt(169));r?(e=wZ(e,t,p1),n.__reactInternalMemoizedMergedChildContext=e,Rn(No),Rn(co),Sn(co,e)):Rn(No),Sn(No,r)}var Lc=null,M5=!1,sb=!1;function CZ(e){Lc===null?Lc=[e]:Lc.push(e)}function sBe(e){M5=!0,CZ(e)}function Iu(){if(!sb&&Lc!==null){sb=!0;var e=0,t=cn;try{var r=Lc;for(cn=1;e>=l,a-=l,Hc=1<<32-fl(t)+a|r<O?(R=E,E=null):R=E.sibling;var M=v(b,E,S[O],$);if(M===null){E===null&&(E=R);break}e&&E&&M.alternate===null&&t(b,E),y=o(M,y,O),C===null?w=M:C.sibling=M,C=M,E=R}if(O===S.length)return r(b,E),kn&&ju(b,O),w;if(E===null){for(;OO?(R=E,E=null):R=E.sibling;var _=v(b,E,M.value,$);if(_===null){E===null&&(E=R);break}e&&E&&_.alternate===null&&t(b,E),y=o(_,y,O),C===null?w=_:C.sibling=_,C=_,E=R}if(M.done)return r(b,E),kn&&ju(b,O),w;if(E===null){for(;!M.done;O++,M=S.next())M=f(b,M.value,$),M!==null&&(y=o(M,y,O),C===null?w=M:C.sibling=M,C=M);return kn&&ju(b,O),w}for(E=n(b,E);!M.done;O++,M=S.next())M=h(E,b,O,M.value,$),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?O:M.key),y=o(M,y,O),C===null?w=M:C.sibling=M,C=M);return e&&E.forEach(function(B){return t(b,B)}),kn&&ju(b,O),w}function g(b,y,S,$){if(typeof S=="object"&&S!==null&&S.type===Dd&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case U8:e:{for(var w=S.key,C=y;C!==null;){if(C.key===w){if(w=S.type,w===Dd){if(C.tag===7){r(b,C.sibling),y=a(C,S.props.children),y.return=b,b=y;break e}}else if(C.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Ls&&ZD(w)===C.type){r(b,C.sibling),y=a(C,S.props),y.ref=$2(b,C,S),y.return=b,b=y;break e}r(b,C);break}else t(b,C);C=C.sibling}S.type===Dd?(y=o1(S.props.children,b.mode,$,S.key),y.return=b,b=y):($=sh(S.type,S.key,S.props,null,b.mode,$),$.ref=$2(b,y,S),$.return=b,b=$)}return l(b);case kd:e:{for(C=S.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){r(b,y.sibling),y=a(y,S.children||[]),y.return=b,b=y;break e}else{r(b,y);break}else t(b,y);y=y.sibling}y=pb(S,b.mode,$),y.return=b,b=y}return l(b);case Ls:return C=S._init,g(b,y,C(S._payload),$)}if(G2(S))return m(b,y,S,$);if(g2(S))return p(b,y,S,$);rv(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(r(b,y.sibling),y=a(y,S),y.return=b,b=y):(r(b,y),y=gb(S,b.mode,$),y.return=b,b=y),l(b)):r(b,y)}return g}var T0=RZ(!0),MZ=RZ(!1),xm=Mu(null),Om=null,Wd=null,ER=null;function RR(){ER=Wd=Om=null}function MR(e){var t=xm.current;Rn(xm),e._currentValue=t}function Lw(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function i0(e,t){Om=e,ER=Wd=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ao=!0),e.firstContext=null)}function Ai(e){var t=e._currentValue;if(ER!==e)if(e={context:e,memoizedValue:t,next:null},Wd===null){if(Om===null)throw Error(pt(308));Wd=e,Om.dependencies={lanes:0,firstContext:e}}else Wd=Wd.next=e;return t}var qu=null;function IR(e){qu===null?qu=[e]:qu.push(e)}function IZ(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,IR(t)):(r.next=a.next,a.next=r),t.interleaved=r,ts(e,n)}function ts(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var As=!1;function TR(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function TZ(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wc(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Xr&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,ts(e,r)}return a=n.interleaved,a===null?(t.next=t,IR(n)):(t.next=a.next,a.next=t),n.interleaved=t,ts(e,r)}function nh(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,mR(e,r)}}function QD(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var l={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=l:o=o.next=l,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Em(e,t,r,n){var a=e.updateQueue;As=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var s=c,u=s.next;s.next=null,l===null?o=u:l.next=u,l=s;var d=e.alternate;d!==null&&(d=d.updateQueue,c=d.lastBaseUpdate,c!==l&&(c===null?d.firstBaseUpdate=u:c.next=u,d.lastBaseUpdate=s))}if(o!==null){var f=a.baseState;l=0,d=u=s=null,c=o;do{var v=c.lane,h=c.eventTime;if((n&v)===v){d!==null&&(d=d.next={eventTime:h,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var m=e,p=c;switch(v=t,h=r,p.tag){case 1:if(m=p.payload,typeof m=="function"){f=m.call(h,f,v);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=p.payload,v=typeof m=="function"?m.call(h,f,v):m,v==null)break e;f=Bn({},f,v);break e;case 2:As=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,v=a.effects,v===null?a.effects=[c]:v.push(c))}else h={eventTime:h,lane:v,tag:c.tag,payload:c.payload,callback:c.callback,next:null},d===null?(u=d=h,s=f):d=d.next=h,l|=v;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;v=c,c=v.next,v.next=null,a.lastBaseUpdate=v,a.shared.pending=null}}while(1);if(d===null&&(s=f),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do l|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);S1|=l,e.lanes=l,e.memoizedState=f}}function JD(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=db.transition;db.transition={};try{e(!1),t()}finally{cn=r,db.transition=n}}function YZ(){return Ni().memoizedState}function vBe(e,t,r){var n=su(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},GZ(e))qZ(t,r);else if(r=IZ(e,t,r,n),r!==null){var a=So();vl(r,e,n,a),XZ(r,t,n)}}function hBe(e,t,r){var n=su(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(GZ(e))qZ(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,c=o(l,r);if(a.hasEagerState=!0,a.eagerState=c,Sl(c,l)){var s=t.interleaved;s===null?(a.next=a,IR(t)):(a.next=s.next,s.next=a),t.interleaved=a;return}}catch{}finally{}r=IZ(e,t,a,n),r!==null&&(a=So(),vl(r,e,n,a),XZ(r,t,n))}}function GZ(e){var t=e.alternate;return e===Hn||t!==null&&t===Hn}function qZ(e,t){bf=Mm=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function XZ(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,mR(e,r)}}var Im={readContext:Ai,useCallback:Ja,useContext:Ja,useEffect:Ja,useImperativeHandle:Ja,useInsertionEffect:Ja,useLayoutEffect:Ja,useMemo:Ja,useReducer:Ja,useRef:Ja,useState:Ja,useDebugValue:Ja,useDeferredValue:Ja,useTransition:Ja,useMutableSource:Ja,useSyncExternalStore:Ja,useId:Ja,unstable_isNewReconciler:!1},mBe={readContext:Ai,useCallback:function(e,t){return Vl().memoizedState=[e,t===void 0?null:t],e},useContext:Ai,useEffect:tL,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,oh(4194308,4,jZ.bind(null,t,e),r)},useLayoutEffect:function(e,t){return oh(4194308,4,e,t)},useInsertionEffect:function(e,t){return oh(4,2,e,t)},useMemo:function(e,t){var r=Vl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Vl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=vBe.bind(null,Hn,e),[n.memoizedState,e]},useRef:function(e){var t=Vl();return e={current:e},t.memoizedState=e},useState:eL,useDebugValue:AR,useDeferredValue:function(e){return Vl().memoizedState=e},useTransition:function(){var e=eL(!1),t=e[0];return e=fBe.bind(null,e[1]),Vl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Hn,a=Vl();if(kn){if(r===void 0)throw Error(pt(407));r=r()}else{if(r=t(),Pa===null)throw Error(pt(349));b1&30||FZ(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,tL(DZ.bind(null,n,o,e),[e]),n.flags|=2048,r3(9,kZ.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Vl(),t=Pa.identifierPrefix;if(kn){var r=Bc,n=Hc;r=(n&~(1<<32-fl(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=e3++,0")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=c);break}}}finally{Gy=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Y2(e):""}function WNe(e){switch(e.tag){case 5:return Y2(e.type);case 16:return Y2("Lazy");case 13:return Y2("Suspense");case 19:return Y2("SuspenseList");case 0:case 2:case 15:return e=qy(e.type,!1),e;case 11:return e=qy(e.type.render,!1),e;case 1:return e=qy(e.type,!0),e;default:return""}}function fw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dd:return"Fragment";case kd:return"Portal";case sw:return"Profiler";case uR:return"StrictMode";case uw:return"Suspense";case dw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case TX:return(e.displayName||"Context")+".Consumer";case MX:return(e._context.displayName||"Context")+".Provider";case dR:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fR:return t=e.displayName||null,t!==null?t:fw(e.type)||"Memo";case Ls:t=e._payload,e=e._init;try{return fw(e(t))}catch{}}return null}function UNe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fw(t);case 8:return t===uR?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function mu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _X(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function KNe(e){var t=_X(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){n=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function K8(e){e._valueTracker||(e._valueTracker=KNe(e))}function zX(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=_X(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function dm(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vw(e,t){var r=t.checked;return Bn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function SD(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=mu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function FX(e,t){t=t.checked,t!=null&&sR(e,"checked",t,!1)}function hw(e,t){FX(e,t);var r=mu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mw(e,t.type,r):t.hasOwnProperty("defaultValue")&&mw(e,t.type,mu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $D(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function mw(e,t,r){(t!=="number"||dm(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var G2=Array.isArray;function r0(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Y8.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},YNe=["Webkit","ms","Moz","O"];Object.keys(hf).forEach(function(e){YNe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hf[t]=hf[e]})});function AX(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hf.hasOwnProperty(e)&&hf[e]?(""+t).trim():t+"px"}function NX(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=AX(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var GNe=Bn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yw(e,t){if(t){if(GNe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(yt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(yt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(yt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(yt(62))}}function bw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sw=null;function vR(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $w=null,n0=null,a0=null;function xD(e){if(e=s6(e)){if(typeof $w!="function")throw Error(yt(280));var t=e.stateNode;t&&(t=R5(t),$w(e.stateNode,e.type,t))}}function HX(e){n0?a0?a0.push(e):a0=[e]:n0=e}function BX(){if(n0){var e=n0,t=a0;if(a0=n0=null,xD(e),t)for(e=0;e>>=0,e===0?32:31-(oHe(e)/iHe|0)|0}var G8=64,q8=4194304;function q2(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function mm(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,l=r&268435455;if(l!==0){var c=l&~a;c!==0?n=q2(c):(o&=l,o!==0&&(n=q2(o)))}else l=r&~a,l!==0?n=q2(l):o!==0&&(n=q2(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function l6(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dl(t),e[t]=r}function uHe(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=gf),zD=String.fromCharCode(32),FD=!1;function lZ(e,t){switch(e){case"keyup":return AHe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cZ(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ld=!1;function HHe(e,t){switch(e){case"compositionend":return cZ(t);case"keypress":return t.which!==32?null:(FD=!0,zD);case"textInput":return e=t.data,e===zD&&FD?null:e;default:return null}}function BHe(e,t){if(Ld)return e==="compositionend"||!$R&&lZ(e,t)?(e=oZ(),th=yR=Us=null,Ld=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=AD(r)}}function fZ(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fZ(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vZ(){for(var e=window,t=dm();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=dm(e.document)}return t}function wR(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function XHe(e){var t=vZ(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&fZ(r.ownerDocument.documentElement,r)){if(n!==null&&wR(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=ND(r,o);var l=ND(r,n);a&&l&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ad=null,Rw=null,yf=null,Iw=!1;function HD(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Iw||Ad==null||Ad!==dm(n)||(n=Ad,"selectionStart"in n&&wR(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yf&&Gf(yf,n)||(yf=n,n=ym(Rw,"onSelect"),0Bd||(e.current=Fw[Bd],Fw[Bd]=null,Bd--)}function Sn(e,t){Bd++,Fw[Bd]=e.current,e.current=t}var gu={},co=Iu(gu),No=Iu(!1),p1=gu;function I0(e,t){var r=e.type.contextTypes;if(!r)return gu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ho(e){return e=e.childContextTypes,e!=null}function Sm(){Rn(No),Rn(co)}function YD(e,t,r){if(co.current!==gu)throw Error(yt(168));Sn(co,t),Sn(No,r)}function wZ(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(yt(108,UNe(e)||"Unknown",a));return Bn({},r,n)}function $m(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gu,p1=co.current,Sn(co,e),Sn(No,No.current),!0}function GD(e,t,r){var n=e.stateNode;if(!n)throw Error(yt(169));r?(e=wZ(e,t,p1),n.__reactInternalMemoizedMergedChildContext=e,Rn(No),Rn(co),Sn(co,e)):Rn(No),Sn(No,r)}var Lc=null,I5=!1,sb=!1;function CZ(e){Lc===null?Lc=[e]:Lc.push(e)}function cBe(e){I5=!0,CZ(e)}function Mu(){if(!sb&&Lc!==null){sb=!0;var e=0,t=cn;try{var r=Lc;for(cn=1;e>=l,a-=l,Hc=1<<32-dl(t)+a|r<O?(R=E,E=null):R=E.sibling;var I=v(b,E,S[O],$);if(I===null){E===null&&(E=R);break}e&&E&&I.alternate===null&&t(b,E),y=o(I,y,O),C===null?w=I:C.sibling=I,C=I,E=R}if(O===S.length)return r(b,E),kn&&Vu(b,O),w;if(E===null){for(;OO?(R=E,E=null):R=E.sibling;var _=v(b,E,I.value,$);if(_===null){E===null&&(E=R);break}e&&E&&_.alternate===null&&t(b,E),y=o(_,y,O),C===null?w=_:C.sibling=_,C=_,E=R}if(I.done)return r(b,E),kn&&Vu(b,O),w;if(E===null){for(;!I.done;O++,I=S.next())I=f(b,I.value,$),I!==null&&(y=o(I,y,O),C===null?w=I:C.sibling=I,C=I);return kn&&Vu(b,O),w}for(E=n(b,E);!I.done;O++,I=S.next())I=h(E,b,O,I.value,$),I!==null&&(e&&I.alternate!==null&&E.delete(I.key===null?O:I.key),y=o(I,y,O),C===null?w=I:C.sibling=I,C=I);return e&&E.forEach(function(B){return t(b,B)}),kn&&Vu(b,O),w}function g(b,y,S,$){if(typeof S=="object"&&S!==null&&S.type===Dd&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case U8:e:{for(var w=S.key,C=y;C!==null;){if(C.key===w){if(w=S.type,w===Dd){if(C.tag===7){r(b,C.sibling),y=a(C,S.props.children),y.return=b,b=y;break e}}else if(C.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Ls&&ZD(w)===C.type){r(b,C.sibling),y=a(C,S.props),y.ref=$2(b,C,S),y.return=b,b=y;break e}r(b,C);break}else t(b,C);C=C.sibling}S.type===Dd?(y=o1(S.props.children,b.mode,$,S.key),y.return=b,b=y):($=sh(S.type,S.key,S.props,null,b.mode,$),$.ref=$2(b,y,S),$.return=b,b=$)}return l(b);case kd:e:{for(C=S.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){r(b,y.sibling),y=a(y,S.children||[]),y.return=b,b=y;break e}else{r(b,y);break}else t(b,y);y=y.sibling}y=pb(S,b.mode,$),y.return=b,b=y}return l(b);case Ls:return C=S._init,g(b,y,C(S._payload),$)}if(G2(S))return m(b,y,S,$);if(g2(S))return p(b,y,S,$);rv(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(r(b,y.sibling),y=a(y,S),y.return=b,b=y):(r(b,y),y=gb(S,b.mode,$),y.return=b,b=y),l(b)):r(b,y)}return g}var T0=RZ(!0),IZ=RZ(!1),xm=Iu(null),Om=null,Wd=null,ER=null;function RR(){ER=Wd=Om=null}function IR(e){var t=xm.current;Rn(xm),e._currentValue=t}function Lw(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function i0(e,t){Om=e,ER=Wd=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ao=!0),e.firstContext=null)}function Ai(e){var t=e._currentValue;if(ER!==e)if(e={context:e,memoizedValue:t,next:null},Wd===null){if(Om===null)throw Error(yt(308));Wd=e,Om.dependencies={lanes:0,firstContext:e}}else Wd=Wd.next=e;return t}var qu=null;function MR(e){qu===null?qu=[e]:qu.push(e)}function MZ(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,MR(t)):(r.next=a.next,a.next=r),t.interleaved=r,ts(e,n)}function ts(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var As=!1;function TR(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function TZ(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wc(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Xr&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,ts(e,r)}return a=n.interleaved,a===null?(t.next=t,MR(n)):(t.next=a.next,a.next=t),n.interleaved=t,ts(e,r)}function nh(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,mR(e,r)}}function QD(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var l={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=l:o=o.next=l,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Em(e,t,r,n){var a=e.updateQueue;As=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var s=c,u=s.next;s.next=null,l===null?o=u:l.next=u,l=s;var d=e.alternate;d!==null&&(d=d.updateQueue,c=d.lastBaseUpdate,c!==l&&(c===null?d.firstBaseUpdate=u:c.next=u,d.lastBaseUpdate=s))}if(o!==null){var f=a.baseState;l=0,d=u=s=null,c=o;do{var v=c.lane,h=c.eventTime;if((n&v)===v){d!==null&&(d=d.next={eventTime:h,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var m=e,p=c;switch(v=t,h=r,p.tag){case 1:if(m=p.payload,typeof m=="function"){f=m.call(h,f,v);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=p.payload,v=typeof m=="function"?m.call(h,f,v):m,v==null)break e;f=Bn({},f,v);break e;case 2:As=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,v=a.effects,v===null?a.effects=[c]:v.push(c))}else h={eventTime:h,lane:v,tag:c.tag,payload:c.payload,callback:c.callback,next:null},d===null?(u=d=h,s=f):d=d.next=h,l|=v;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;v=c,c=v.next,v.next=null,a.lastBaseUpdate=v,a.shared.pending=null}}while(1);if(d===null&&(s=f),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do l|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);S1|=l,e.lanes=l,e.memoizedState=f}}function JD(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=db.transition;db.transition={};try{e(!1),t()}finally{cn=r,db.transition=n}}function YZ(){return Ni().memoizedState}function fBe(e,t,r){var n=su(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},GZ(e))qZ(t,r);else if(r=MZ(e,t,r,n),r!==null){var a=So();fl(r,e,n,a),XZ(r,t,n)}}function vBe(e,t,r){var n=su(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(GZ(e))qZ(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,c=o(l,r);if(a.hasEagerState=!0,a.eagerState=c,bl(c,l)){var s=t.interleaved;s===null?(a.next=a,MR(t)):(a.next=s.next,s.next=a),t.interleaved=a;return}}catch{}finally{}r=MZ(e,t,a,n),r!==null&&(a=So(),fl(r,e,n,a),XZ(r,t,n))}}function GZ(e){var t=e.alternate;return e===Hn||t!==null&&t===Hn}function qZ(e,t){bf=Im=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function XZ(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,mR(e,r)}}var Mm={readContext:Ai,useCallback:Ja,useContext:Ja,useEffect:Ja,useImperativeHandle:Ja,useInsertionEffect:Ja,useLayoutEffect:Ja,useMemo:Ja,useReducer:Ja,useRef:Ja,useState:Ja,useDebugValue:Ja,useDeferredValue:Ja,useTransition:Ja,useMutableSource:Ja,useSyncExternalStore:Ja,useId:Ja,unstable_isNewReconciler:!1},hBe={readContext:Ai,useCallback:function(e,t){return jl().memoizedState=[e,t===void 0?null:t],e},useContext:Ai,useEffect:tL,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,oh(4194308,4,VZ.bind(null,t,e),r)},useLayoutEffect:function(e,t){return oh(4194308,4,e,t)},useInsertionEffect:function(e,t){return oh(4,2,e,t)},useMemo:function(e,t){var r=jl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=jl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=fBe.bind(null,Hn,e),[n.memoizedState,e]},useRef:function(e){var t=jl();return e={current:e},t.memoizedState=e},useState:eL,useDebugValue:AR,useDeferredValue:function(e){return jl().memoizedState=e},useTransition:function(){var e=eL(!1),t=e[0];return e=dBe.bind(null,e[1]),jl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Hn,a=jl();if(kn){if(r===void 0)throw Error(yt(407));r=r()}else{if(r=t(),Pa===null)throw Error(yt(349));b1&30||FZ(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,tL(DZ.bind(null,n,o,e),[e]),n.flags|=2048,r3(9,kZ.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=jl(),t=Pa.identifierPrefix;if(kn){var r=Bc,n=Hc;r=(n&~(1<<32-dl(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=e3++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[Yl]=t,e[Zf]=n,iQ(e,t,!1,!1),t.stateNode=e;e:{switch(l=bw(r,n),r){case"dialog":xn("cancel",e),xn("close",e),a=n;break;case"iframe":case"object":case"embed":xn("load",e),a=n;break;case"video":case"audio":for(a=0;az0&&(t.flags|=128,n=!0,w2(o,!1),t.lanes=4194304)}else{if(!n)if(e=Rm(l),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),w2(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!kn)return eo(t),null}else 2*ta()-o.renderingStartTime>z0&&r!==1073741824&&(t.flags|=128,n=!0,w2(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(r=o.last,r!==null?r.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ta(),t.sibling=null,r=Nn.current,Sn(Nn,n?r&1|2:r&1),t):(eo(t),null);case 22:case 23:return WR(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ai&1073741824&&(eo(t),t.subtreeFlags&6&&(t.flags|=8192)):eo(t),null;case 24:return null;case 25:return null}throw Error(pt(156,t.tag))}function CBe(e,t){switch(xR(t),t.tag){case 1:return Ho(t.type)&&Sm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return P0(),Rn(No),Rn(co),zR(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _R(t),null;case 13:if(Rn(Nn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(pt(340));I0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Rn(Nn),null;case 4:return P0(),null;case 10:return MR(t.type._context),null;case 22:case 23:return WR(),null;case 24:return null;default:return null}}var av=!1,no=!1,xBe=typeof WeakSet=="function"?WeakSet:Set,Kt=null;function Ud(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Un(e,t,n)}else r.current=null}function Kw(e,t,r){try{r()}catch(n){Un(e,t,n)}}var fL=!1;function OBe(e,t){if(Iw=gm,e=vZ(),wR(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var l=0,c=-1,s=-1,u=0,d=0,f=e,v=null;t:for(;;){for(var h;f!==r||a!==0&&f.nodeType!==3||(c=l+a),f!==o||n!==0&&f.nodeType!==3||(s=l+n),f.nodeType===3&&(l+=f.nodeValue.length),(h=f.firstChild)!==null;)v=f,f=h;for(;;){if(f===e)break t;if(v===r&&++u===a&&(c=l),v===o&&++d===n&&(s=l),(h=f.nextSibling)!==null)break;f=v,v=f.parentNode}f=h}r=c===-1||s===-1?null:{start:c,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(Tw={focusedElem:e,selectionRange:r},gm=!1,Kt=t;Kt!==null;)if(t=Kt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Kt=e;else for(;Kt!==null;){t=Kt;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var p=m.memoizedProps,g=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?p:Ji(t.type,p),g);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(pt(163))}}catch($){Un(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,Kt=e;break}Kt=t.return}return m=fL,fL=!1,m}function Sf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&Kw(t,r,o)}a=a.next}while(a!==n)}}function P5(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Yw(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function sQ(e){var t=e.alternate;t!==null&&(e.alternate=null,sQ(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yl],delete t[Zf],delete t[zw],delete t[lBe],delete t[cBe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function uQ(e){return e.tag===5||e.tag===3||e.tag===4}function vL(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uQ(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gw(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=bm));else if(n!==4&&(e=e.child,e!==null))for(Gw(e,t,r),e=e.sibling;e!==null;)Gw(e,t,r),e=e.sibling}function qw(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(qw(e,t,r),e=e.sibling;e!==null;)qw(e,t,r),e=e.sibling}var Ha=null,el=!1;function Ts(e,t,r){for(r=r.child;r!==null;)dQ(e,t,r),r=r.sibling}function dQ(e,t,r){if(Jl&&typeof Jl.onCommitFiberUnmount=="function")try{Jl.onCommitFiberUnmount(C5,r)}catch{}switch(r.tag){case 5:no||Ud(r,t);case 6:var n=Ha,a=el;Ha=null,Ts(e,t,r),Ha=n,el=a,Ha!==null&&(el?(e=Ha,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ha.removeChild(r.stateNode));break;case 18:Ha!==null&&(el?(e=Ha,r=r.stateNode,e.nodeType===8?cb(e.parentNode,r):e.nodeType===1&&cb(e,r),Kf(e)):cb(Ha,r.stateNode));break;case 4:n=Ha,a=el,Ha=r.stateNode.containerInfo,el=!0,Ts(e,t,r),Ha=n,el=a;break;case 0:case 11:case 14:case 15:if(!no&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Kw(r,t,l),a=a.next}while(a!==n)}Ts(e,t,r);break;case 1:if(!no&&(Ud(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(c){Un(r,t,c)}Ts(e,t,r);break;case 21:Ts(e,t,r);break;case 22:r.mode&1?(no=(n=no)||r.memoizedState!==null,Ts(e,t,r),no=n):Ts(e,t,r);break;default:Ts(e,t,r)}}function hL(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new xBe),t.forEach(function(n){var a=FBe.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Yi(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=l),n&=~o}if(n=a,n=ta()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*RBe(n/1960))-n,10e?16:e,Ks===null)var n=!1;else{if(e=Ks,Ks=null,_m=0,Xr&6)throw Error(pt(331));var a=Xr;for(Xr|=4,Kt=e.current;Kt!==null;){var o=Kt,l=o.child;if(Kt.flags&16){var c=o.deletions;if(c!==null){for(var s=0;sta()-jR?a1(e,0):BR|=r),Bo(e,t)}function bQ(e,t){t===0&&(e.mode&1?(t=q8,q8<<=1,!(q8&130023424)&&(q8=4194304)):t=1);var r=So();e=ts(e,t),e!==null&&(l6(e,t,r),Bo(e,r))}function zBe(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),bQ(e,r)}function FBe(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(pt(314))}n!==null&&n.delete(t),bQ(e,r)}var SQ;SQ=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||No.current)Ao=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ao=!1,$Be(e,t,r);Ao=!!(e.flags&131072)}else Ao=!1,kn&&t.flags&1048576&&xZ(t,Cm,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ih(e,t),e=t.pendingProps;var a=M0(t,co.current);i0(t,r),a=kR(null,t,n,e,a,r);var o=DR();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ho(n)?(o=!0,$m(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,TR(t),a.updater=T5,t.stateNode=a,a._reactInternals=t,Nw(t,n,e,r),t=jw(null,t,n,!0,o,r)):(t.tag=0,kn&&o&&CR(t),po(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ih(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=DBe(n),e=Ji(n,e),a){case 0:t=Bw(null,t,n,e,r);break e;case 1:t=sL(null,t,n,e,r);break e;case 11:t=lL(null,t,n,e,r);break e;case 14:t=cL(null,t,n,Ji(n.type,e),r);break e}throw Error(pt(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Ji(n,a),Bw(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Ji(n,a),sL(e,t,n,a,r);case 3:e:{if(nQ(t),e===null)throw Error(pt(387));n=t.pendingProps,o=t.memoizedState,a=o.element,TZ(e,t),Em(t,n,null,r);var l=t.memoizedState;if(n=l.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=_0(Error(pt(423)),t),t=uL(e,t,n,r,a);break e}else if(n!==a){a=_0(Error(pt(424)),t),t=uL(e,t,n,r,a);break e}else for(ii=iu(t.stateNode.containerInfo.firstChild),ui=t,kn=!0,al=null,r=MZ(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(I0(),n===a){t=rs(e,t,r);break e}po(e,t,n,r)}t=t.child}return t;case 5:return PZ(t),e===null&&Dw(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,l=a.children,Pw(n,a)?l=null:o!==null&&Pw(n,o)&&(t.flags|=32),rQ(e,t),po(e,t,l,r),t.child;case 6:return e===null&&Dw(t),null;case 13:return aQ(e,t,r);case 4:return PR(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=T0(t,null,n,r):po(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Ji(n,a),lL(e,t,n,a,r);case 7:return po(e,t,t.pendingProps,r),t.child;case 8:return po(e,t,t.pendingProps.children,r),t.child;case 12:return po(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,l=a.value,Sn(xm,n._currentValue),n._currentValue=l,o!==null)if(Sl(o.value,l)){if(o.children===a.children&&!No.current){t=rs(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){l=o.child;for(var s=c.firstContext;s!==null;){if(s.context===n){if(o.tag===1){s=Wc(-1,r&-r),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),Lw(o.return,r,t),c.lanes|=r;break}s=s.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(pt(341));l.lanes|=r,c=l.alternate,c!==null&&(c.lanes|=r),Lw(l,r,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}po(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,i0(t,r),a=Ai(a),n=n(a),t.flags|=1,po(e,t,n,r),t.child;case 14:return n=t.type,a=Ji(n,t.pendingProps),a=Ji(n.type,a),cL(e,t,n,a,r);case 15:return eQ(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Ji(n,a),ih(e,t),t.tag=1,Ho(n)?(e=!0,$m(t)):e=!1,i0(t,r),ZZ(t,n,a),Nw(t,n,a,r),jw(null,t,n,!0,e,r);case 19:return oQ(e,t,r);case 22:return tQ(e,t,r)}throw Error(pt(156,t.tag))};function $Q(e,t){return GX(e,t)}function kBe(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Di(e,t,r,n){return new kBe(e,t,r,n)}function KR(e){return e=e.prototype,!(!e||!e.isReactComponent)}function DBe(e){if(typeof e=="function")return KR(e)?1:0;if(e!=null){if(e=e.$$typeof,e===dR)return 11;if(e===fR)return 14}return 2}function uu(e,t){var r=e.alternate;return r===null?(r=Di(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function sh(e,t,r,n,a,o){var l=2;if(n=e,typeof e=="function")KR(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Dd:return o1(r.children,a,o,t);case uR:l=8,a|=8;break;case sw:return e=Di(12,r,t,a|2),e.elementType=sw,e.lanes=o,e;case uw:return e=Di(13,r,t,a),e.elementType=uw,e.lanes=o,e;case dw:return e=Di(19,r,t,a),e.elementType=dw,e.lanes=o,e;case PX:return z5(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case IX:l=10;break e;case TX:l=9;break e;case dR:l=11;break e;case fR:l=14;break e;case Ls:l=16,n=null;break e}throw Error(pt(130,e==null?e:typeof e,""))}return t=Di(l,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function o1(e,t,r,n){return e=Di(7,e,n,t),e.lanes=r,e}function z5(e,t,r,n){return e=Di(22,e,n,t),e.elementType=PX,e.lanes=r,e.stateNode={isHidden:!1},e}function gb(e,t,r){return e=Di(6,e,null,t),e.lanes=r,e}function pb(e,t,r){return t=Di(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function LBe(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zy(0),this.expirationTimes=Zy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zy(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function YR(e,t,r,n,a,o,l,c,s){return e=new LBe(e,t,r,c,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Di(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},TR(o),e}function ABe(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OQ)}catch(e){console.error(e)}}OQ(),OX.exports=yi;var nc=OX.exports;const a3=en(nc),VBe=xO({__proto__:null,default:a3},[nc]);var wL=nc;Fd.createRoot=wL.createRoot,Fd.hydrateRoot=wL.hydrateRoot;var WBe=["content"],UBe=["content"],KBe=/^(http:|https:)?\/\//;function EQ(e){return KBe.test(e)||e.startsWith("/")&&!e.startsWith("/*")||e.startsWith("./")||e.startsWith("../")}var CL=function(){return U.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},xL=function(t){var r,n=t.loaderData,a=t.htmlPageOpts,o=t.manifest,l=(o==null||(r=o.assets)===null||r===void 0?void 0:r["umi.css"])||"";return U.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(n||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(a||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(l,"'")}})};function RQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")return EQ(e)?Ia({src:e},t):{content:e};if(si(e)==="object")return Ia(Ia({},e),t);throw new Error("Invalid script type: ".concat(si(e)))}function YBe(e){return EQ(e)?{type:"link",href:e}:{type:"style",content:e}}var GBe=function(t){var r,n,a,o,l,c,s=t.htmlPageOpts;return U.createElement(U.Fragment,null,(s==null?void 0:s.title)&&U.createElement("title",null,s.title),s==null||(r=s.favicons)===null||r===void 0?void 0:r.map(function(u,d){return U.createElement("link",{key:d,rel:"shortcut icon",href:u})}),(s==null?void 0:s.description)&&U.createElement("meta",{name:"description",content:s.description}),(s==null||(n=s.keywords)===null||n===void 0?void 0:n.length)&&U.createElement("meta",{name:"keywords",content:s.keywords.join(",")}),s==null||(a=s.metas)===null||a===void 0?void 0:a.map(function(u){return U.createElement("meta",{key:u.name,name:u.name,content:u.content})}),s==null||(o=s.links)===null||o===void 0?void 0:o.map(function(u,d){return U.createElement("link",di({key:d},u))}),s==null||(l=s.styles)===null||l===void 0?void 0:l.map(function(u,d){var f=YBe(u),v=f.type,h=f.href,m=f.content;if(v==="link")return U.createElement("link",{key:d,rel:"stylesheet",href:h});if(v==="style")return U.createElement("style",{key:d},m)}),s==null||(c=s.headScripts)===null||c===void 0?void 0:c.map(function(u,d){var f=RQ(u),v=f.content,h=i6(f,WBe);return U.createElement("script",di({dangerouslySetInnerHTML:{__html:v},key:d},h))}))};function qBe(e){var t,r=e.children,n=e.loaderData,a=e.manifest,o=e.htmlPageOpts,l=e.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c=e.mountElementId;if(l!=null&&l.pureHtml)return U.createElement("html",null,U.createElement("head",null),U.createElement("body",null,U.createElement(CL,null),U.createElement("div",{id:c},r),U.createElement(xL,{manifest:a,loaderData:n,htmlPageOpts:o})));if(l!=null&&l.pureApp)return U.createElement(U.Fragment,null,r);var s=typeof window>"u"?a==null?void 0:a.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return U.createElement("html",{suppressHydrationWarning:!0,lang:(o==null?void 0:o.lang)||"en"},U.createElement("head",null,U.createElement("meta",{charSet:"utf-8"}),U.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),s&&U.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:s}),U.createElement(GBe,{htmlPageOpts:o})),U.createElement("body",null,U.createElement(CL,null),U.createElement("div",{id:c},r),U.createElement(xL,{manifest:a,loaderData:n,htmlPageOpts:o}),o==null||(t=o.scripts)===null||t===void 0?void 0:t.map(function(u,d){var f=RQ(u),v=f.content,h=i6(f,UBe);return U.createElement("script",di({dangerouslySetInnerHTML:{__html:v},key:d},h))})))}var XBe=["redirect"];function MQ(e){var t=e.routesById,r=e.parentId,n=e.routeComponents,a=e.useStream,o=a===void 0?!0:a;return Object.keys(t).filter(function(l){return t[l].parentId===r}).map(function(l){var c=QBe(Ia(Ia({route:t[l],routeComponent:n[l],loadingComponent:e.loadingComponent,reactRouter5Compat:e.reactRouter5Compat},e.reactRouter5Compat&&{hasChildren:Object.keys(t).filter(function(u){return t[u].parentId===l}).length>0}),{},{useStream:o})),s=MQ({routesById:t,routeComponents:n,parentId:c.id,loadingComponent:e.loadingComponent,reactRouter5Compat:e.reactRouter5Compat,useStream:o});return s.length>0&&(c.children=s,c.routes=s),c})}function ZBe(e){var t=pX(),r=tNe(e.to,t),n=ANe(),a=us();if(n!=null&&n.keepQuery){var o=a.search+a.hash;r+=o}var l=Ia(Ia({},e),{},{to:r});return U.createElement(bX,di({replace:!0},l))}function QBe(e){var t=e.route,r=e.useStream,n=r===void 0?!0:r,a=t.redirect,o=i6(t,XBe),l=e.reactRouter5Compat?eje:tje;return Ia({element:a?U.createElement(ZBe,{to:a}):U.createElement(CX.Provider,{value:{route:e.route}},U.createElement(l,{loader:U.memo(e.routeComponent),loadingComponent:e.loadingComponent||JBe,hasChildren:e.hasChildren,useStream:n}))},o)}function JBe(){return U.createElement("div",null)}function eje(e){var t=kNe(),r=t.route,n=w5(),a=n.history,o=n.clientRoutes,l=pX(),c={params:l,isExact:!0,path:r.path,url:a.location.pathname},s=e.loader,u={location:a.location,match:c,history:a,params:l,route:r,routes:o};return e.useStream?U.createElement(U.Suspense,{fallback:U.createElement(e.loadingComponent,null)},U.createElement(s,u,e.hasChildren&&U.createElement(vD,null))):U.createElement(s,u,e.hasChildren&&U.createElement(vD,null))}function tje(e){var t=e.loader;return e.useStream?U.createElement(U.Suspense,{fallback:U.createElement(e.loadingComponent,null)},U.createElement(t,null)):U.createElement(t,null)}var OL=null;function rje(e){var t=e.history,r=U.useState({action:t.action,location:t.location}),n=um(r,2),a=n[0],o=n[1];return i.useLayoutEffect(function(){return t.listen(o)},[t]),i.useLayoutEffect(function(){function l(c){e.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:e.routes,clientRoutes:e.clientRoutes,location:c.location,action:c.action,basename:e.basename,isFirst:!!c.isFirst}})}return l({location:a.location,action:a.action,isFirst:!0}),t.listen(l)},[t,e.routes,e.clientRoutes]),U.createElement(ONe,{navigator:t,location:a.location,basename:e.basename},e.children)}function nje(){var e=w5(),t=e.clientRoutes;return CNe(t)}var aje=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],oje=function(t,r){var n=t.basename||"/",a=MQ({routesById:t.routes,routeComponents:t.routeComponents,loadingComponent:t.loadingComponent,reactRouter5Compat:t.reactRouter5Compat,useStream:t.useStream});t.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:a}});for(var o=U.createElement(rje,{basename:n,pluginManager:t.pluginManager,routes:t.routes,clientRoutes:a,history:t.history},r),l=0,c=aje;l2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(typeof IntersectionObserver!="function")return null;var a=U.useRef(typeof IntersectionObserver=="function"),o=U.useRef(null);return U.useEffect(function(){if(!(!e.current||!a.current||n.disabled))return o.current=new IntersectionObserver(function(l){var c=um(l,1),s=c[0];t(s)},r),o.current.observe(e.current),function(){var l;(l=o.current)===null||l===void 0||l.disconnect()}},[t,r,n.disabled,e]),o.current}var cje=["prefetch"];function sje(e){var t=U.useRef(null);return U.useEffect(function(){e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}var uje=U.forwardRef(function(e,t){var r,n=e.prefetch,a=i6(e,cje),o=typeof window<"u"&&window.__umi_route_prefetch__||{defaultPrefetch:"none",defaultPrefetchTimeout:50},l=o.defaultPrefetch,c=o.defaultPrefetchTimeout,s=(n===!0?"intent":n===!1?"none":n)||l;if(!["intent","render","viewport","none"].includes(s))throw new Error("Invalid prefetch value ".concat(s," found in Link component"));var u=w5(),d=typeof e.to=="string"?e.to:(r=e.to)===null||r===void 0?void 0:r.pathname,f=U.useRef(!1),v=sje(t),h=function(g){if(s==="intent"){var b=g.target||{};b.preloadTimeout||(b.preloadTimeout=setTimeout(function(){var y;b.preloadTimeout=null,(y=u.preloadRoute)===null||y===void 0||y.call(u,d)},e.prefetchTimeout||c))}},m=function(g){if(s==="intent"){var b=g.target||{};b.preloadTimeout&&(clearTimeout(b.preloadTimeout),b.preloadTimeout=null)}};return i.useLayoutEffect(function(){if(s==="render"&&!f.current){var p;(p=u.preloadRoute)===null||p===void 0||p.call(u,d),f.current=!0}},[s,d]),lje(v,function(p){if(p!=null&&p.isIntersecting){var g;(g=u.preloadRoute)===null||g===void 0||g.call(u,d)}},{rootMargin:"100px"},{disabled:s!=="viewport"}),d?U.createElement(INe,di({onMouseEnter:h,onMouseLeave:m,ref:v},a),e.children):null});const dje="modulepreload",fje=function(e){return"/"+e},EL={},Tt=function(t,r,n){if(!r||r.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=fje(o),o in EL)return;EL[o]=!0;const l=o.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(!!n)for(let d=a.length-1;d>=0;d--){const f=a[d];if(f.href===o&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${c}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":dje,l||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),l)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};async function vje(){return{routes:{"backend/Dashboard/Analysis/components/Carts/DemoTinyColumn/index":{path:"Dashboard/Analysis/components/Carts/DemoTinyColumn",id:"backend/Dashboard/Analysis/components/Carts/DemoTinyColumn/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/Carts/DemoProgress/index":{path:"Dashboard/Analysis/components/Carts/DemoProgress",id:"backend/Dashboard/Analysis/components/Carts/DemoProgress/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/Carts/DemoTinyArea/index":{path:"Dashboard/Analysis/components/Carts/DemoTinyArea",id:"backend/Dashboard/Analysis/components/Carts/DemoTinyArea/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/Carts/DemoColumn/index":{path:"Dashboard/Analysis/components/Carts/DemoColumn",id:"backend/Dashboard/Analysis/components/Carts/DemoColumn/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/Carts/ChartCard/index":{path:"Dashboard/Analysis/components/Carts/ChartCard",id:"backend/Dashboard/Analysis/components/Carts/ChartCard/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/Carts/DemoPie/index":{path:"Dashboard/Analysis/components/Carts/DemoPie",id:"backend/Dashboard/Analysis/components/Carts/DemoPie/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/DemoCardThree/index":{path:"Dashboard/Analysis/components/DemoCardThree",id:"backend/Dashboard/Analysis/components/DemoCardThree/index",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/TableConfigContext":{path:"Online/Table/Devise/components/TableConfigContext",id:"backend/Online/Table/Devise/components/TableConfigContext",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoCardThree/index":{path:"Dashboard/Monitor/components/DemoCardThree",id:"backend/Dashboard/Monitor/components/DemoCardThree/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/DemoCardOne/index":{path:"Dashboard/Analysis/components/DemoCardOne",id:"backend/Dashboard/Analysis/components/DemoCardOne/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/DemoCardTwo/index":{path:"Dashboard/Analysis/components/DemoCardTwo",id:"backend/Dashboard/Analysis/components/DemoCardTwo/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoCardFive/index":{path:"Dashboard/Monitor/components/DemoCardFive",id:"backend/Dashboard/Monitor/components/DemoCardFive/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoCardFour/index":{path:"Dashboard/Monitor/components/DemoCardFour",id:"backend/Dashboard/Monitor/components/DemoCardFour/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoCardOne/index":{path:"Dashboard/Monitor/components/DemoCardOne",id:"backend/Dashboard/Monitor/components/DemoCardOne/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoCardSex/index":{path:"Dashboard/Monitor/components/DemoCardSex",id:"backend/Dashboard/Monitor/components/DemoCardSex/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoCardTwo/index":{path:"Dashboard/Monitor/components/DemoCardTwo",id:"backend/Dashboard/Monitor/components/DemoCardTwo/index",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/TableSetting":{path:"Online/Table/Devise/components/TableSetting",id:"backend/Online/Table/Devise/components/TableSetting",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoMap/index":{path:"Dashboard/Monitor/components/DemoMap",id:"backend/Dashboard/Monitor/components/DemoMap/index",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/ColumnsFrom":{path:"Online/Table/Devise/components/ColumnsFrom",id:"backend/Online/Table/Devise/components/ColumnsFrom",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/defaultSql":{path:"Online/Table/Devise/components/defaultSql",id:"backend/Online/Table/Devise/components/defaultSql",parentId:"ant-design-pro-layout"},"backend/System/Setting/components/AddSettingGroup":{path:"System/Setting/components/AddSettingGroup",id:"backend/System/Setting/components/AddSettingGroup",parentId:"ant-design-pro-layout"},"backend/Dashboard/Workplace/components/MiniCard":{path:"Dashboard/Workplace/components/MiniCard",id:"backend/Dashboard/Workplace/components/MiniCard",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/CrudFrom":{path:"Online/Table/Devise/components/CrudFrom",id:"backend/Online/Table/Devise/components/CrudFrom",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/DragSort":{path:"Online/Table/Devise/components/DragSort",id:"backend/Online/Table/Devise/components/DragSort",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/Preview":{path:"Online/Table/Devise/components/Preview",id:"backend/Online/Table/Devise/components/Preview",parentId:"ant-design-pro-layout"},"backend/System/Dict/components/DictItem/index":{path:"System/Dict/components/DictItem",id:"backend/System/Dict/components/DictItem/index",parentId:"ant-design-pro-layout"},"backend/System/Setting/components/SettingForm":{path:"System/Setting/components/SettingForm",id:"backend/System/Setting/components/SettingForm",parentId:"ant-design-pro-layout"},"backend/Admin/List/components/UpdatePassword":{path:"Admin/List/components/UpdatePassword",id:"backend/Admin/List/components/UpdatePassword",parentId:"ant-design-pro-layout"},"backend/Dashboard/Workplace/components/ACard":{path:"Dashboard/Workplace/components/ACard",id:"backend/Dashboard/Workplace/components/ACard",parentId:"ant-design-pro-layout"},"backend/Dashboard/Workplace/components/BCard":{path:"Dashboard/Workplace/components/BCard",id:"backend/Dashboard/Workplace/components/BCard",parentId:"ant-design-pro-layout"},"backend/Dashboard/Workplace/components/CCard":{path:"Dashboard/Workplace/components/CCard",id:"backend/Dashboard/Workplace/components/CCard",parentId:"ant-design-pro-layout"},"backend/Dashboard/Workplace/models/homeModel":{path:"Dashboard/Workplace/models/homeModel",id:"backend/Dashboard/Workplace/models/homeModel",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/utils":{path:"Online/Table/Devise/components/utils",id:"backend/Online/Table/Devise/components/utils",parentId:"ant-design-pro-layout"},"backend/User/MoneyLog/components/AddMoneyLog":{path:"User/MoneyLog/components/AddMoneyLog",id:"backend/User/MoneyLog/components/AddMoneyLog",parentId:"ant-design-pro-layout"},"backend/System/File/components/UploadFile":{path:"System/File/components/UploadFile",id:"backend/System/File/components/UploadFile",parentId:"ant-design-pro-layout"},"frontend/User/components/UserLayout/index":{path:"User/components/UserLayout",id:"frontend/User/components/UserLayout/index",parentId:"ant-design-pro-layout"},"backend/Admin/Group/components/GroupRule":{path:"Admin/Group/components/GroupRule",id:"backend/Admin/Group/components/GroupRule",parentId:"ant-design-pro-layout"},"backend/Data/Form/components/LightFilter":{path:"Data/Form/components/LightFilter",id:"backend/Data/Form/components/LightFilter",parentId:"ant-design-pro-layout"},"backend/Data/Form/components/QueryFilter":{path:"Data/Form/components/QueryFilter",id:"backend/Data/Form/components/QueryFilter",parentId:"ant-design-pro-layout"},"backend/System/File/components/EditGroup":{path:"System/File/components/EditGroup",id:"backend/System/File/components/EditGroup",parentId:"ant-design-pro-layout"},"backend/System/File/components/GroupData":{path:"System/File/components/GroupData",id:"backend/System/File/components/GroupData",parentId:"ant-design-pro-layout"},"backend/System/File/components/AddGroup":{path:"System/File/components/AddGroup",id:"backend/System/File/components/AddGroup",parentId:"ant-design-pro-layout"},"backend/User/Group/components/GroupRule":{path:"User/Group/components/GroupRule",id:"backend/User/Group/components/GroupRule",parentId:"ant-design-pro-layout"},"backend/Data/Form/components/LoginForm":{path:"Data/Form/components/LoginForm",id:"backend/Data/Form/components/LoginForm",parentId:"ant-design-pro-layout"},"backend/Data/Form/components/ModalForm":{path:"Data/Form/components/ModalForm",id:"backend/Data/Form/components/ModalForm",parentId:"ant-design-pro-layout"},"backend/Data/Form/components/StepsForm":{path:"Data/Form/components/StepsForm",id:"backend/Data/Form/components/StepsForm",parentId:"ant-design-pro-layout"},"backend/Data/Form/components/ProForm":{path:"Data/Form/components/ProForm",id:"backend/Data/Form/components/ProForm",parentId:"ant-design-pro-layout"},"backend/Dashboard/Workplace/index":{path:"Dashboard/Workplace",id:"backend/Dashboard/Workplace/index",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/index":{path:"Online/Table/Devise",id:"backend/Online/Table/Devise/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/index":{path:"Dashboard/Analysis",id:"backend/Dashboard/Analysis/index",parentId:"ant-design-pro-layout"},"frontend/User/Log/MoneyLog/index":{path:"User/Log/MoneyLog",id:"frontend/User/Log/MoneyLog/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/index":{path:"Dashboard/Monitor",id:"backend/Dashboard/Monitor/index",parentId:"ant-design-pro-layout"},"backend/Data/Descriptions/index":{path:"Data/Descriptions",id:"backend/Data/Descriptions/index",parentId:"ant-design-pro-layout"},"frontend/User/SetPassword/index":{path:"User/SetPassword",id:"frontend/User/SetPassword/index",parentId:"ant-design-pro-layout"},"frontend/User/UserSetting/index":{path:"User/UserSetting",id:"frontend/User/UserSetting/index",parentId:"ant-design-pro-layout"},"backend/System/File/typings.d":{path:"System/File/typings/d",id:"backend/System/File/typings.d",parentId:"ant-design-pro-layout"},"backend/Data/CheckCard/index":{path:"Data/CheckCard",id:"backend/Data/CheckCard/index",parentId:"ant-design-pro-layout"},"backend/System/Monitor/index":{path:"System/Monitor",id:"backend/System/Monitor/index",parentId:"ant-design-pro-layout"},"backend/System/Setting/index":{path:"System/Setting",id:"backend/System/Setting/index",parentId:"ant-design-pro-layout"},"backend/Admin/Setting/index":{path:"Admin/Setting",id:"backend/Admin/Setting/index",parentId:"ant-design-pro-layout"},"backend/User/MoneyLog/index":{path:"User/MoneyLog",id:"backend/User/MoneyLog/index",parentId:"ant-design-pro-layout"},"frontend/Client/Login/index":{path:"Client/Login",id:"frontend/Client/Login/index",parentId:"ant-design-pro-layout"},"backend/Online/Table/index":{path:"Online/Table",id:"backend/Online/Table/index",parentId:"ant-design-pro-layout"},"backend/Admin/Group/index":{path:"Admin/Group",id:"backend/Admin/Group/index",parentId:"ant-design-pro-layout"},"backend/System/Dict/index":{path:"System/Dict",id:"backend/System/Dict/index",parentId:"ant-design-pro-layout"},"backend/System/File/index":{path:"System/File",id:"backend/System/File/index",parentId:"ant-design-pro-layout"},"backend/System/Info/index":{path:"System/Info",id:"backend/System/Info/index",parentId:"ant-design-pro-layout"},"frontend/Client/Reg/index":{path:"Client/Reg",id:"frontend/Client/Reg/index",parentId:"ant-design-pro-layout"},"backend/Admin/List/index":{path:"Admin/List",id:"backend/Admin/List/index",parentId:"ant-design-pro-layout"},"backend/Admin/Rule/index":{path:"Admin/Rule",id:"backend/Admin/Rule/index",parentId:"ant-design-pro-layout"},"backend/Data/Table/index":{path:"Data/Table",id:"backend/Data/Table/index",parentId:"ant-design-pro-layout"},"backend/Online/typings.d":{path:"Online/typings/d",id:"backend/Online/typings.d",parentId:"ant-design-pro-layout"},"backend/User/Group/index":{path:"User/Group",id:"backend/User/Group/index",parentId:"ant-design-pro-layout"},"backend/Data/Form/index":{path:"Data/Form",id:"backend/Data/Form/index",parentId:"ant-design-pro-layout"},"backend/Data/Icon/index":{path:"Data/Icon",id:"backend/Data/Icon/index",parentId:"ant-design-pro-layout"},"backend/Data/List/index":{path:"Data/List",id:"backend/Data/List/index",parentId:"ant-design-pro-layout"},"backend/User/List/index":{path:"User/List",id:"backend/User/List/index",parentId:"ant-design-pro-layout"},"backend/User/Rule/index":{path:"User/Rule",id:"backend/User/Rule/index",parentId:"ant-design-pro-layout"},"backend/Login/index":{path:"Login",id:"backend/Login/index",parentId:"ant-design-pro-layout"},"frontend/User/index":{path:"User",id:"frontend/User/index",parentId:"ant-design-pro-layout"},index:{path:"/",id:"index",parentId:"ant-design-pro-layout"},"ant-design-pro-layout":{id:"ant-design-pro-layout",path:"/",isLayout:!0}},routeComponents:{"backend/Dashboard/Analysis/components/Carts/DemoTinyColumn/index":U.lazy(()=>Tt(()=>import("./index-7649ea01.js"),["assets/index-7649ea01.js","assets/index-c02d95b0.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js"])),"backend/Dashboard/Analysis/components/Carts/DemoProgress/index":U.lazy(()=>Tt(()=>import("./index-6ad53ab5.js"),["assets/index-6ad53ab5.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js"])),"backend/Dashboard/Analysis/components/Carts/DemoTinyArea/index":U.lazy(()=>Tt(()=>import("./index-ee4feb4a.js"),["assets/index-ee4feb4a.js","assets/index-9f6163bb.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js"])),"backend/Dashboard/Analysis/components/Carts/DemoColumn/index":U.lazy(()=>Tt(()=>import("./index-250ebfc2.js"),["assets/index-250ebfc2.js","assets/index-c4f19093.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js"])),"backend/Dashboard/Analysis/components/Carts/ChartCard/index":U.lazy(()=>Tt(()=>import("./index-9ece78ec.js"),["assets/index-9ece78ec.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-426be59b.js"])),"backend/Dashboard/Analysis/components/Carts/DemoPie/index":U.lazy(()=>Tt(()=>import("./index-211dffa7.js"),["assets/index-211dffa7.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js"])),"backend/Dashboard/Analysis/components/DemoCardThree/index":U.lazy(()=>Tt(()=>import("./index-420f033e.js"),["assets/index-420f033e.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/Table-0e254f81.js","assets/styleChecker-0860b7b3.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/index-9456f6ef.js"])),"backend/Online/Table/Devise/components/TableConfigContext":U.lazy(()=>Tt(()=>import("./TableConfigContext-e116ad0a.js"),[])),"backend/Dashboard/Monitor/components/DemoCardThree/index":U.lazy(()=>Tt(()=>import("./index-08afc5ad.js"),["assets/index-08afc5ad.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js"])),"backend/Dashboard/Analysis/components/DemoCardOne/index":U.lazy(()=>Tt(()=>import("./index-79481ba8.js"),["assets/index-79481ba8.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-250ebfc2.js","assets/index-c4f19093.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js"])),"backend/Dashboard/Analysis/components/DemoCardTwo/index":U.lazy(()=>Tt(()=>import("./index-d5a6b2a3.js"),["assets/index-d5a6b2a3.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-211dffa7.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js"])),"backend/Dashboard/Monitor/components/DemoCardFive/index":U.lazy(()=>Tt(()=>import("./index-b8baa901.js"),["assets/index-b8baa901.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-7b54423a.js","assets/index-426be59b.js"])),"backend/Dashboard/Monitor/components/DemoCardFour/index":U.lazy(()=>Tt(()=>import("./index-a3a55092.js"),["assets/index-a3a55092.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js"])),"backend/Dashboard/Monitor/components/DemoCardOne/index":U.lazy(()=>Tt(()=>import("./index-e6a855a3.js"),["assets/index-e6a855a3.js","assets/index-7b54423a.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-426be59b.js"])),"backend/Dashboard/Monitor/components/DemoCardSex/index":U.lazy(()=>Tt(()=>import("./index-9bc2873f.js"),["assets/index-9bc2873f.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js"])),"backend/Dashboard/Monitor/components/DemoCardTwo/index":U.lazy(()=>Tt(()=>import("./index-49e8f642.js"),["assets/index-49e8f642.js","assets/index-8a549704.js","assets/index-275c5384.js"])),"backend/Online/Table/Devise/components/TableSetting":U.lazy(()=>Tt(()=>import("./TableSetting-c5f56375.js"),["assets/TableSetting-c5f56375.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/TableConfigContext-e116ad0a.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js"])),"backend/Dashboard/Monitor/components/DemoMap/index":U.lazy(()=>Tt(()=>import("./index-b7a2130f.js"),["assets/index-b7a2130f.js","assets/react-content-loader.es-7f7b682d.js","assets/camelCase-e5a219bd.js"])),"backend/Online/Table/Devise/components/ColumnsFrom":U.lazy(()=>Tt(()=>import("./ColumnsFrom-ac6d1d17.js"),["assets/ColumnsFrom-ac6d1d17.js","assets/defaultSql-5ae6b172.js","assets/TableConfigContext-e116ad0a.js","assets/index-8ec65540.js","assets/index-e10ebcfa.js","assets/index-d81f4240.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/styleChecker-0860b7b3.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/index-8b7fb289.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js"])),"backend/Online/Table/Devise/components/defaultSql":U.lazy(()=>Tt(()=>import("./defaultSql-5ae6b172.js"),[])),"backend/System/Setting/components/AddSettingGroup":U.lazy(()=>Tt(()=>import("./AddSettingGroup-dfbefacf.js"),["assets/AddSettingGroup-dfbefacf.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js"])),"backend/Dashboard/Workplace/components/MiniCard":U.lazy(()=>Tt(()=>import("./MiniCard-bf820d68.js"),["assets/MiniCard-bf820d68.js","assets/index-426be59b.js","assets/index-c4f19093.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js","assets/index-883cb62c.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-9f6163bb.js","assets/index-c02d95b0.js"])),"backend/Online/Table/Devise/components/CrudFrom":U.lazy(()=>Tt(()=>import("./CrudFrom-6a26468a.js"),["assets/CrudFrom-6a26468a.js","assets/TableConfigContext-e116ad0a.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js"])),"backend/Online/Table/Devise/components/DragSort":U.lazy(()=>Tt(()=>import("./DragSort-b8e643ec.js"),["assets/DragSort-b8e643ec.js","assets/TableConfigContext-e116ad0a.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/styleChecker-0860b7b3.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-8ec65540.js","assets/index-e10ebcfa.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/index-8b7fb289.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js"])),"backend/Online/Table/Devise/components/Preview":U.lazy(()=>Tt(()=>import("./Preview-7dabcd9c.js"),["assets/Preview-7dabcd9c.js","assets/TableConfigContext-e116ad0a.js","assets/utils-b63e8c97.js","assets/index-1c416090.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/RouteContext-8fa10ad2.js"])),"backend/System/Dict/components/DictItem/index":U.lazy(()=>Tt(()=>import("./index-bc1c5cb7.js"),["assets/index-bc1c5cb7.js","assets/index-1c416090.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/RouteContext-8fa10ad2.js"])),"backend/System/Setting/components/SettingForm":U.lazy(()=>Tt(()=>import("./SettingForm-ce557f9d.js"),["assets/SettingForm-ce557f9d.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js"])),"backend/Admin/List/components/UpdatePassword":U.lazy(()=>Tt(()=>import("./UpdatePassword-8d946009.js"),["assets/UpdatePassword-8d946009.js","assets/index-9456f6ef.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js"])),"backend/Dashboard/Workplace/components/ACard":U.lazy(()=>Tt(()=>import("./ACard-fe84a303.js"),["assets/ACard-fe84a303.js","assets/index-7b54423a.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-426be59b.js"])),"backend/Dashboard/Workplace/components/BCard":U.lazy(()=>Tt(()=>import("./BCard-89fbc3cc.js"),["assets/BCard-89fbc3cc.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-7b54423a.js","assets/index-426be59b.js"])),"backend/Dashboard/Workplace/components/CCard":U.lazy(()=>Tt(()=>import("./CCard-c2c5347c.js"),["assets/CCard-c2c5347c.js","assets/index-883cb62c.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-7b54423a.js","assets/index-426be59b.js","assets/index-c02d95b0.js","assets/index-9f6163bb.js"])),"backend/Dashboard/Workplace/models/homeModel":U.lazy(()=>Tt(()=>Promise.resolve().then(()=>ien),void 0)),"backend/Online/Table/Devise/components/utils":U.lazy(()=>Tt(()=>import("./utils-b63e8c97.js"),[])),"backend/User/MoneyLog/components/AddMoneyLog":U.lazy(()=>Tt(()=>import("./AddMoneyLog-d85337dd.js"),["assets/AddMoneyLog-d85337dd.js","assets/index-426be59b.js","assets/index-9456f6ef.js","assets/index-8ec65540.js","assets/index-e10ebcfa.js","assets/index-d81f4240.js","assets/index-ca47b438.js","assets/index-f4422a84.js","assets/index-8a5a2994.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js"])),"backend/System/File/components/UploadFile":U.lazy(()=>Tt(()=>import("./UploadFile-2f1fc42e.js"),["assets/UploadFile-2f1fc42e.js","assets/utils-b0233852.js","assets/index-d81f4240.js"])),"frontend/User/components/UserLayout/index":U.lazy(()=>Tt(()=>import("./index-2e4df2d6.js"),[])),"backend/Admin/Group/components/GroupRule":U.lazy(()=>Tt(()=>import("./GroupRule-af67b542.js"),["assets/GroupRule-af67b542.js","assets/index-6395135c.js","assets/auth-11568536.js"])),"backend/Data/Form/components/LightFilter":U.lazy(()=>Tt(()=>import("./LightFilter-ccb5168f.js"),["assets/LightFilter-ccb5168f.js","assets/index-84d5661b.js","assets/index-c4cacd6a.js","assets/index-37bb2b91.js","assets/index-25021ef3.js","assets/index-9900fa87.js","assets/index-dfb59d56.js","assets/index-ca47b438.js"])),"backend/Data/Form/components/QueryFilter":U.lazy(()=>Tt(()=>import("./QueryFilter-69dda768.js"),["assets/QueryFilter-69dda768.js","assets/index-6430ced5.js","assets/index-9900fa87.js"])),"backend/System/File/components/EditGroup":U.lazy(()=>Tt(()=>import("./EditGroup-52db762b.js"),["assets/EditGroup-52db762b.js","assets/group-832bb4bd.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js"])),"backend/System/File/components/GroupData":U.lazy(()=>Tt(()=>import("./GroupData-d6c7f461.js"),["assets/GroupData-d6c7f461.js","assets/index-6395135c.js","assets/AddGroup-324fd85c.js","assets/group-832bb4bd.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/EditGroup-52db762b.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js"])),"backend/System/File/components/AddGroup":U.lazy(()=>Tt(()=>import("./AddGroup-324fd85c.js"),["assets/AddGroup-324fd85c.js","assets/group-832bb4bd.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js"])),"backend/User/Group/components/GroupRule":U.lazy(()=>Tt(()=>import("./GroupRule-924796bd.js"),["assets/GroupRule-924796bd.js","assets/index-6395135c.js","assets/userAuth-60d2e4f0.js"])),"backend/Data/Form/components/LoginForm":U.lazy(()=>Tt(()=>import("./LoginForm-2a910d1d.js"),["assets/LoginForm-2a910d1d.js","assets/index-77afe57c.js"])),"backend/Data/Form/components/ModalForm":U.lazy(()=>Tt(()=>import("./ModalForm-ceddc203.js"),["assets/ModalForm-ceddc203.js","assets/index-cd6d59f9.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-dfb59d56.js","assets/index-ca47b438.js"])),"backend/Data/Form/components/StepsForm":U.lazy(()=>Tt(()=>import("./StepsForm-bec998aa.js"),["assets/StepsForm-bec998aa.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-9900fa87.js","assets/index-dfb59d56.js","assets/index-8a5a2994.js","assets/index-ca47b438.js"])),"backend/Data/Form/components/ProForm":U.lazy(()=>Tt(()=>import("./ProForm-7316c755.js"),["assets/ProForm-7316c755.js","assets/index-25021ef3.js","assets/index-dfb59d56.js","assets/index-ca47b438.js","assets/index-f4422a84.js","assets/index-8a5a2994.js","assets/index-c4cacd6a.js","assets/index-9900fa87.js"])),"backend/Dashboard/Workplace/index":U.lazy(()=>Tt(()=>import("./index-73f6d528.js"),["assets/index-73f6d528.js","assets/ACard-fe84a303.js","assets/index-7b54423a.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-426be59b.js","assets/BCard-89fbc3cc.js","assets/ProCard-cee316ff.js","assets/CCard-c2c5347c.js","assets/index-883cb62c.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js","assets/index-c02d95b0.js","assets/index-9f6163bb.js"])),"backend/Online/Table/Devise/index":U.lazy(()=>Tt(()=>import("./index-e675681e.js"),["assets/index-e675681e.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/ColumnsFrom-ac6d1d17.js","assets/defaultSql-5ae6b172.js","assets/TableConfigContext-e116ad0a.js","assets/index-8ec65540.js","assets/index-e10ebcfa.js","assets/index-d81f4240.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/styleChecker-0860b7b3.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/index-8b7fb289.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/CrudFrom-6a26468a.js","assets/DragSort-b8e643ec.js","assets/Preview-7dabcd9c.js","assets/utils-b63e8c97.js","assets/index-1c416090.js","assets/table-c83b9d9d.js","assets/RouteContext-8fa10ad2.js","assets/TableSetting-c5f56375.js","assets/index-2ac8865c.css"])),"backend/Dashboard/Analysis/index":U.lazy(()=>Tt(()=>import("./index-ffb8c391.js"),["assets/index-ffb8c391.js","assets/index-9ece78ec.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-426be59b.js","assets/index-6ad53ab5.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js","assets/index-ee4feb4a.js","assets/index-9f6163bb.js","assets/index-7649ea01.js","assets/index-c02d95b0.js","assets/index-79481ba8.js","assets/index-250ebfc2.js","assets/index-c4f19093.js","assets/index-420f033e.js","assets/Table-0e254f81.js","assets/styleChecker-0860b7b3.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/index-9456f6ef.js","assets/index-d5a6b2a3.js","assets/index-211dffa7.js","assets/index-7b54423a.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js"])),"frontend/User/Log/MoneyLog/index":U.lazy(()=>Tt(()=>import("./index-80fd56e2.js"),["assets/index-80fd56e2.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/Table-0e254f81.js","assets/styleChecker-0860b7b3.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/index-2f3e26df.js","assets/index-9456f6ef.js","assets/index-2e4df2d6.js"])),"backend/Dashboard/Monitor/index":U.lazy(()=>Tt(()=>import("./index-6bb06055.js"),["assets/index-6bb06055.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-b8baa901.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-7b54423a.js","assets/index-426be59b.js","assets/index-a3a55092.js","assets/createLoading-2160f924.js","assets/react-content-loader.es-7f7b682d.js","assets/index-e6a855a3.js","assets/index-9bc2873f.js","assets/index-08afc5ad.js","assets/index-49e8f642.js","assets/index-b7a2130f.js","assets/camelCase-e5a219bd.js"])),"backend/Data/Descriptions/index":U.lazy(()=>Tt(()=>import("./index-b19e0f77.js"),["assets/index-b19e0f77.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-8ec65540.js","assets/index-e10ebcfa.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/useLazyKVMap-d8c68a12.js","assets/index-bd1f6aa3.js"])),"frontend/User/SetPassword/index":U.lazy(()=>Tt(()=>import("./index-214cf934.js"),["assets/index-214cf934.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-2e4df2d6.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js"])),"frontend/User/UserSetting/index":U.lazy(()=>Tt(()=>import("./index-b18eea33.js"),["assets/index-b18eea33.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-2e4df2d6.js","assets/index-5c18ae40.js","assets/utils-b0233852.js","assets/index-d81f4240.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js"])),"backend/System/File/typings.d":U.lazy(()=>Tt(()=>import("./typings.d-fbc87396.js").then(t=>t.t),[])),"backend/Data/CheckCard/index":U.lazy(()=>Tt(()=>import("./index-fcddce1f.js"),["assets/index-fcddce1f.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-15df7b01.js","assets/index-63e0f416.js"])),"backend/System/Monitor/index":U.lazy(()=>Tt(()=>import("./index-c7bc2120.js"),["assets/index-c7bc2120.js","assets/index-1c416090.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/RouteContext-8fa10ad2.js"])),"backend/System/Setting/index":U.lazy(()=>Tt(()=>import("./index-427a48d6.js"),["assets/index-427a48d6.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/AddSettingGroup-dfbefacf.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/SettingForm-ce557f9d.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js"])),"backend/Admin/Setting/index":U.lazy(()=>Tt(()=>import("./index-5bfa8296.js"),["assets/index-5bfa8296.js","assets/index-5c18ae40.js","assets/utils-b0233852.js","assets/index-d81f4240.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js"])),"backend/User/MoneyLog/index":U.lazy(()=>Tt(()=>import("./index-4317640d.js"),["assets/index-4317640d.js","assets/AddMoneyLog-d85337dd.js","assets/index-426be59b.js","assets/index-9456f6ef.js","assets/index-8ec65540.js","assets/index-e10ebcfa.js","assets/index-d81f4240.js","assets/index-ca47b438.js","assets/index-f4422a84.js","assets/index-8a5a2994.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-2f3e26df.js","assets/index-1c416090.js","assets/index-ea2ed5fc.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/RouteContext-8fa10ad2.js"])),"frontend/Client/Login/index":U.lazy(()=>Tt(()=>import("./index-286e0a64.js"),["assets/index-286e0a64.js","assets/index-bfbbbffc.js","assets/index-77afe57c.js"])),"backend/Online/Table/index":U.lazy(()=>Tt(()=>import("./index-4dac56b2.js"),["assets/index-4dac56b2.js","assets/index-1c416090.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/RouteContext-8fa10ad2.js"])),"backend/Admin/Group/index":U.lazy(()=>Tt(()=>import("./index-834de25b.js"),["assets/index-834de25b.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/GroupRule-af67b542.js","assets/index-6395135c.js","assets/auth-11568536.js","assets/index-1c416090.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/RouteContext-8fa10ad2.js"])),"backend/System/Dict/index":U.lazy(()=>Tt(()=>import("./index-fdb09ba4.js"),["assets/index-fdb09ba4.js","assets/index-bc1c5cb7.js","assets/index-1c416090.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/RouteContext-8fa10ad2.js"])),"backend/System/File/index":U.lazy(()=>Tt(()=>import("./index-1c79bc3d.js"),["assets/index-1c79bc3d.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/GroupData-d6c7f461.js","assets/index-6395135c.js","assets/AddGroup-324fd85c.js","assets/group-832bb4bd.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/EditGroup-52db762b.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/UploadFile-2f1fc42e.js","assets/utils-b0233852.js","assets/index-d81f4240.js","assets/index-c078585c.css"])),"backend/System/Info/index":U.lazy(()=>Tt(()=>import("./index-9aa99a02.js"),["assets/index-9aa99a02.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-bd1f6aa3.js"])),"frontend/Client/Reg/index":U.lazy(()=>Tt(()=>import("./index-9e35fb11.js"),["assets/index-9e35fb11.js","assets/index-bfbbbffc.js","assets/index-77afe57c.js"])),"backend/Admin/List/index":U.lazy(()=>Tt(()=>import("./index-35a1571f.js"),["assets/index-35a1571f.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/UpdatePassword-8d946009.js","assets/index-9456f6ef.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/index-2f3e26df.js","assets/index-5c18ae40.js","assets/utils-b0233852.js","assets/index-d81f4240.js","assets/index-1c416090.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/RouteContext-8fa10ad2.js"])),"backend/Admin/Rule/index":U.lazy(()=>Tt(()=>import("./index-5cc85fe2.js"),["assets/index-5cc85fe2.js","assets/index-2f3e26df.js","assets/index-9456f6ef.js","assets/index-8d411a4f.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-1c416090.js","assets/index-ea2ed5fc.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/RouteContext-8fa10ad2.js","assets/auth-11568536.js"])),"backend/Data/Table/index":U.lazy(()=>Tt(()=>import("./index-13b1a3c4.js"),["assets/index-13b1a3c4.js","assets/index-8ec65540.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/styleChecker-0860b7b3.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/index-275c5384.js","assets/index-e10ebcfa.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/index-8b7fb289.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-37bb2b91.js","assets/index-ca47b438.js","assets/index-25021ef3.js","assets/index-8a5a2994.js"])),"backend/Online/typings.d":U.lazy(()=>Tt(()=>import("./typings.d-fbc87396.js").then(t=>t.a),[])),"backend/User/Group/index":U.lazy(()=>Tt(()=>import("./index-ad4dacd3.js"),["assets/index-ad4dacd3.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/GroupRule-924796bd.js","assets/index-6395135c.js","assets/userAuth-60d2e4f0.js","assets/index-1c416090.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/RouteContext-8fa10ad2.js"])),"backend/Data/Form/index":U.lazy(()=>Tt(()=>import("./index-b0f985d7.js"),["assets/index-b0f985d7.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/LightFilter-ccb5168f.js","assets/index-84d5661b.js","assets/index-c4cacd6a.js","assets/index-37bb2b91.js","assets/index-25021ef3.js","assets/index-9900fa87.js","assets/index-dfb59d56.js","assets/index-ca47b438.js","assets/LoginForm-2a910d1d.js","assets/index-77afe57c.js","assets/ModalForm-ceddc203.js","assets/index-cd6d59f9.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/ProForm-7316c755.js","assets/index-f4422a84.js","assets/index-8a5a2994.js","assets/QueryFilter-69dda768.js","assets/index-6430ced5.js","assets/StepsForm-bec998aa.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js"])),"backend/Data/Icon/index":U.lazy(()=>Tt(()=>import("./index-83b40218.js"),["assets/index-83b40218.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-8d411a4f.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js"])),"backend/Data/List/index":U.lazy(()=>Tt(()=>import("./index-0762784e.js"),["assets/index-0762784e.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-9456f6ef.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/styleChecker-0860b7b3.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-8ec65540.js","assets/index-e10ebcfa.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/index-8b7fb289.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-15df7b01.js"])),"backend/User/List/index":U.lazy(()=>Tt(()=>import("./index-bcee78b6.js"),["assets/index-bcee78b6.js","assets/index-2f3e26df.js","assets/index-9456f6ef.js","assets/index-1c416090.js","assets/index-ea2ed5fc.js","assets/ActionButton-a9da0b15.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-705e7852.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/RouteContext-8fa10ad2.js"])),"backend/User/Rule/index":U.lazy(()=>Tt(()=>import("./index-97a5d266.js"),["assets/index-97a5d266.js","assets/index-2f3e26df.js","assets/index-9456f6ef.js","assets/index-8d411a4f.js","assets/index-705e7852.js","assets/ActionButton-a9da0b15.js","assets/index-1c416090.js","assets/index-ea2ed5fc.js","assets/index-8b7fb289.js","assets/styleChecker-0860b7b3.js","assets/table-c83b9d9d.js","assets/index-c10be21a.js","assets/index-cd6d59f9.js","assets/index-84d5661b.js","assets/index-5259f52c.js","assets/index-6430ced5.js","assets/index-e7fd596a.js","assets/index-e10ebcfa.js","assets/index-8ec65540.js","assets/Table-3849f584.js","assets/Table-0e254f81.js","assets/index-6395135c.js","assets/useLazyKVMap-d8c68a12.js","assets/ProCard-cee316ff.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-275c5384.js","assets/index-d81f4240.js","assets/index-e7147cef.js","assets/index-ff6ac5e9.js","assets/RouteContext-8fa10ad2.js","assets/userAuth-60d2e4f0.js"])),"backend/Login/index":U.lazy(()=>Tt(()=>Promise.resolve().then(()=>Oqr),void 0)),"frontend/User/index":U.lazy(()=>Tt(()=>import("./index-d28fa083.js"),["assets/index-d28fa083.js","assets/index-8a549704.js","assets/index-275c5384.js","assets/index-2e4df2d6.js","assets/index-7b54423a.js","assets/index-3f6ddb76.js","assets/index-63e0f416.js","assets/index-426be59b.js"])),index:U.lazy(()=>Tt(()=>import("./index-facb8fb2.js"),["assets/index-facb8fb2.js","assets/index-b0a0ae3a.css"])),"ant-design-pro-layout":U.lazy(()=>Tt(()=>import("./Layout-eb89b00e.js"),["assets/Layout-eb89b00e.js","assets/camelCase-e5a219bd.js","assets/index-e7147cef.js","assets/RouteContext-8fa10ad2.js","assets/Layout-3d6909f8.css"]))}}}var IQ={exports:{}},A5={};/** +`+o.stack}return{value:e,source:t,stack:a,digest:null}}function hb(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Hw(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var pBe=typeof WeakMap=="function"?WeakMap:Map;function QZ(e,t,r){r=Wc(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Pm||(Pm=!0,Xw=n),Hw(e,t)},r}function JZ(e,t,r){r=Wc(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){Hw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Hw(e,t),typeof n!="function"&&(cu===null?cu=new Set([this]):cu.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),r}function aL(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new pBe;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=PBe.bind(null,e,t,r),t.then(e,e))}function oL(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function iL(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Wc(-1,1),t.tag=2,lu(r,t,1))),r.lanes|=1),e)}var yBe=ds.ReactCurrentOwner,Ao=!1;function po(e,t,r,n){t.child=e===null?IZ(t,null,r,n):T0(t,e.child,r,n)}function lL(e,t,r,n,a){r=r.render;var o=t.ref;return i0(t,a),n=kR(e,t,r,n,o,a),r=DR(),e!==null&&!Ao?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,rs(e,t,a)):(kn&&r&&CR(t),t.flags|=1,po(e,t,n,a),t.child)}function cL(e,t,r,n,a){if(e===null){var o=r.type;return typeof o=="function"&&!KR(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,eQ(e,t,o,n,a)):(e=sh(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var l=o.memoizedProps;if(r=r.compare,r=r!==null?r:Gf,r(l,n)&&e.ref===t.ref)return rs(e,t,a)}return t.flags|=1,e=uu(o,n),e.ref=t.ref,e.return=t,t.child=e}function eQ(e,t,r,n,a){if(e!==null){var o=e.memoizedProps;if(Gf(o,n)&&e.ref===t.ref)if(Ao=!1,t.pendingProps=n=o,(e.lanes&a)!==0)e.flags&131072&&(Ao=!0);else return t.lanes=e.lanes,rs(e,t,a)}return Bw(e,t,r,n,a)}function tQ(e,t,r){var n=t.pendingProps,a=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Sn(Kd,ai),ai|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Sn(Kd,ai),ai|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Sn(Kd,ai),ai|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Sn(Kd,ai),ai|=n;return po(e,t,a,r),t.child}function rQ(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Bw(e,t,r,n,a){var o=Ho(r)?p1:co.current;return o=I0(t,o),i0(t,a),r=kR(e,t,r,n,o,a),n=DR(),e!==null&&!Ao?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,rs(e,t,a)):(kn&&n&&CR(t),t.flags|=1,po(e,t,r,a),t.child)}function sL(e,t,r,n,a){if(Ho(r)){var o=!0;$m(t)}else o=!1;if(i0(t,a),t.stateNode===null)ih(e,t),ZZ(t,r,n),Nw(t,r,n,a),n=!0;else if(e===null){var l=t.stateNode,c=t.memoizedProps;l.props=c;var s=l.context,u=r.contextType;typeof u=="object"&&u!==null?u=Ai(u):(u=Ho(r)?p1:co.current,u=I0(t,u));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(c!==n||s!==u)&&nL(t,l,n,u),As=!1;var v=t.memoizedState;l.state=v,Em(t,n,l,a),s=t.memoizedState,c!==n||v!==s||No.current||As?(typeof d=="function"&&(Aw(t,r,d,n),s=t.memoizedState),(c=As||rL(t,r,c,n,v,s,u))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=s),l.props=n,l.state=s,l.context=u,n=c):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{l=t.stateNode,TZ(e,t),c=t.memoizedProps,u=t.type===t.elementType?c:Qi(t.type,c),l.props=u,f=t.pendingProps,v=l.context,s=r.contextType,typeof s=="object"&&s!==null?s=Ai(s):(s=Ho(r)?p1:co.current,s=I0(t,s));var h=r.getDerivedStateFromProps;(d=typeof h=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(c!==f||v!==s)&&nL(t,l,n,s),As=!1,v=t.memoizedState,l.state=v,Em(t,n,l,a);var m=t.memoizedState;c!==f||v!==m||No.current||As?(typeof h=="function"&&(Aw(t,r,h,n),m=t.memoizedState),(u=As||rL(t,r,u,n,v,m,s)||!1)?(d||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(n,m,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(n,m,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),l.props=n,l.state=m,l.context=s,n=u):(typeof l.componentDidUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),n=!1)}return Vw(e,t,r,n,o,a)}function Vw(e,t,r,n,a,o){rQ(e,t);var l=(t.flags&128)!==0;if(!n&&!l)return a&&GD(t,r,!1),rs(e,t,o);n=t.stateNode,yBe.current=t;var c=l&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&l?(t.child=T0(t,e.child,null,o),t.child=T0(t,null,c,o)):po(e,t,c,o),t.memoizedState=n.state,a&&GD(t,r,!0),t.child}function nQ(e){var t=e.stateNode;t.pendingContext?YD(e,t.pendingContext,t.pendingContext!==t.context):t.context&&YD(e,t.context,!1),PR(e,t.containerInfo)}function uL(e,t,r,n,a){return M0(),OR(a),t.flags|=256,po(e,t,r,n),t.child}var jw={dehydrated:null,treeContext:null,retryLane:0};function Ww(e){return{baseLanes:e,cachePool:null,transitions:null}}function aQ(e,t,r){var n=t.pendingProps,a=Nn.current,o=!1,l=(t.flags&128)!==0,c;if((c=l)||(c=e!==null&&e.memoizedState===null?!1:(a&2)!==0),c?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Sn(Nn,a&1),e===null)return Dw(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=n.children,e=n.fallback,o?(n=t.mode,o=t.child,l={mode:"hidden",children:l},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=z5(l,n,0,null),e=o1(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ww(r),t.memoizedState=jw,e):NR(t,l));if(a=e.memoizedState,a!==null&&(c=a.dehydrated,c!==null))return bBe(e,t,l,n,c,a,r);if(o){o=n.fallback,l=t.mode,a=e.child,c=a.sibling;var s={mode:"hidden",children:n.children};return!(l&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=s,t.deletions=null):(n=uu(a,s),n.subtreeFlags=a.subtreeFlags&14680064),c!==null?o=uu(c,o):(o=o1(o,l,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,l=e.child.memoizedState,l=l===null?Ww(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~r,t.memoizedState=jw,n}return o=e.child,e=o.sibling,n=uu(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function NR(e,t){return t=z5({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function nv(e,t,r,n){return n!==null&&OR(n),T0(t,e.child,null,r),e=NR(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bBe(e,t,r,n,a,o,l){if(r)return t.flags&256?(t.flags&=-257,n=hb(Error(yt(422))),nv(e,t,l,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,a=t.mode,n=z5({mode:"visible",children:n.children},a,0,null),o=o1(o,a,l,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&T0(t,e.child,null,l),t.child.memoizedState=Ww(l),t.memoizedState=jw,o);if(!(t.mode&1))return nv(e,t,l,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var c=n.dgst;return n=c,o=Error(yt(419)),n=hb(o,n,void 0),nv(e,t,l,n)}if(c=(l&e.childLanes)!==0,Ao||c){if(n=Pa,n!==null){switch(l&-l){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|l)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,ts(e,a),fl(n,e,a,-1))}return UR(),n=hb(Error(yt(421))),nv(e,t,l,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=_Be.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ii=iu(a.nextSibling),ui=t,kn=!0,nl=null,e!==null&&(_i[zi++]=Hc,_i[zi++]=Bc,_i[zi++]=y1,Hc=e.id,Bc=e.overflow,y1=t),t=NR(t,n.children),t.flags|=4096,t)}function dL(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Lw(e.return,t,r)}function mb(e,t,r,n,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a)}function oQ(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(po(e,t,n.children,r),n=Nn.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dL(e,r,t);else if(e.tag===19)dL(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Sn(Nn,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&Rm(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),mb(t,!1,a,r,o);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Rm(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}mb(t,!0,r,null,o);break;case"together":mb(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ih(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),S1|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(yt(153));if(t.child!==null){for(e=t.child,r=uu(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=uu(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function SBe(e,t,r){switch(t.tag){case 3:nQ(t),M0();break;case 5:PZ(t);break;case 1:Ho(t.type)&&$m(t);break;case 4:PR(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Sn(xm,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Sn(Nn,Nn.current&1),t.flags|=128,null):r&t.child.childLanes?aQ(e,t,r):(Sn(Nn,Nn.current&1),e=rs(e,t,r),e!==null?e.sibling:null);Sn(Nn,Nn.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return oQ(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Sn(Nn,Nn.current),n)break;return null;case 22:case 23:return t.lanes=0,tQ(e,t,r)}return rs(e,t,r)}var iQ,Uw,lQ,cQ;iQ=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Uw=function(){};lQ=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,Xu(ec.current);var o=null;switch(r){case"input":a=vw(e,a),n=vw(e,n),o=[];break;case"select":a=Bn({},a,{value:void 0}),n=Bn({},n,{value:void 0}),o=[];break;case"textarea":a=gw(e,a),n=gw(e,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=bm)}yw(r,n);var l;r=null;for(u in a)if(!n.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var c=a[u];for(l in c)c.hasOwnProperty(l)&&(r||(r={}),r[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Bf.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var s=n[u];if(c=a!=null?a[u]:void 0,n.hasOwnProperty(u)&&s!==c&&(s!=null||c!=null))if(u==="style")if(c){for(l in c)!c.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(r||(r={}),r[l]="");for(l in s)s.hasOwnProperty(l)&&c[l]!==s[l]&&(r||(r={}),r[l]=s[l])}else r||(o||(o=[]),o.push(u,r)),r=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,c=c?c.__html:void 0,s!=null&&c!==s&&(o=o||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Bf.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&xn("scroll",e),o||c===s||(o=[])):(o=o||[]).push(u,s))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};cQ=function(e,t,r,n){r!==n&&(t.flags|=4)};function w2(e,t){if(!kn)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function eo(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function $Be(e,t,r){var n=t.pendingProps;switch(xR(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return eo(t),null;case 1:return Ho(t.type)&&Sm(),eo(t),null;case 3:return n=t.stateNode,P0(),Rn(No),Rn(co),zR(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(tv(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nl!==null&&(Jw(nl),nl=null))),Uw(e,t),eo(t),null;case 5:_R(t);var a=Xu(Jf.current);if(r=t.type,e!==null&&t.stateNode!=null)lQ(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(yt(166));return eo(t),null}if(e=Xu(ec.current),tv(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Yl]=t,n[Zf]=o,e=(t.mode&1)!==0,r){case"dialog":xn("cancel",n),xn("close",n);break;case"iframe":case"object":case"embed":xn("load",n);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[Yl]=t,e[Zf]=n,iQ(e,t,!1,!1),t.stateNode=e;e:{switch(l=bw(r,n),r){case"dialog":xn("cancel",e),xn("close",e),a=n;break;case"iframe":case"object":case"embed":xn("load",e),a=n;break;case"video":case"audio":for(a=0;az0&&(t.flags|=128,n=!0,w2(o,!1),t.lanes=4194304)}else{if(!n)if(e=Rm(l),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),w2(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!kn)return eo(t),null}else 2*ta()-o.renderingStartTime>z0&&r!==1073741824&&(t.flags|=128,n=!0,w2(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(r=o.last,r!==null?r.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ta(),t.sibling=null,r=Nn.current,Sn(Nn,n?r&1|2:r&1),t):(eo(t),null);case 22:case 23:return WR(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ai&1073741824&&(eo(t),t.subtreeFlags&6&&(t.flags|=8192)):eo(t),null;case 24:return null;case 25:return null}throw Error(yt(156,t.tag))}function wBe(e,t){switch(xR(t),t.tag){case 1:return Ho(t.type)&&Sm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return P0(),Rn(No),Rn(co),zR(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _R(t),null;case 13:if(Rn(Nn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(yt(340));M0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Rn(Nn),null;case 4:return P0(),null;case 10:return IR(t.type._context),null;case 22:case 23:return WR(),null;case 24:return null;default:return null}}var av=!1,no=!1,CBe=typeof WeakSet=="function"?WeakSet:Set,Kt=null;function Ud(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Un(e,t,n)}else r.current=null}function Kw(e,t,r){try{r()}catch(n){Un(e,t,n)}}var fL=!1;function xBe(e,t){if(Mw=gm,e=vZ(),wR(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var l=0,c=-1,s=-1,u=0,d=0,f=e,v=null;t:for(;;){for(var h;f!==r||a!==0&&f.nodeType!==3||(c=l+a),f!==o||n!==0&&f.nodeType!==3||(s=l+n),f.nodeType===3&&(l+=f.nodeValue.length),(h=f.firstChild)!==null;)v=f,f=h;for(;;){if(f===e)break t;if(v===r&&++u===a&&(c=l),v===o&&++d===n&&(s=l),(h=f.nextSibling)!==null)break;f=v,v=f.parentNode}f=h}r=c===-1||s===-1?null:{start:c,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(Tw={focusedElem:e,selectionRange:r},gm=!1,Kt=t;Kt!==null;)if(t=Kt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Kt=e;else for(;Kt!==null;){t=Kt;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var p=m.memoizedProps,g=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?p:Qi(t.type,p),g);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(yt(163))}}catch($){Un(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,Kt=e;break}Kt=t.return}return m=fL,fL=!1,m}function Sf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&Kw(t,r,o)}a=a.next}while(a!==n)}}function P5(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Yw(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function sQ(e){var t=e.alternate;t!==null&&(e.alternate=null,sQ(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yl],delete t[Zf],delete t[zw],delete t[iBe],delete t[lBe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function uQ(e){return e.tag===5||e.tag===3||e.tag===4}function vL(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uQ(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gw(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=bm));else if(n!==4&&(e=e.child,e!==null))for(Gw(e,t,r),e=e.sibling;e!==null;)Gw(e,t,r),e=e.sibling}function qw(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(qw(e,t,r),e=e.sibling;e!==null;)qw(e,t,r),e=e.sibling}var Ha=null,Ji=!1;function Ts(e,t,r){for(r=r.child;r!==null;)dQ(e,t,r),r=r.sibling}function dQ(e,t,r){if(Jl&&typeof Jl.onCommitFiberUnmount=="function")try{Jl.onCommitFiberUnmount(C5,r)}catch{}switch(r.tag){case 5:no||Ud(r,t);case 6:var n=Ha,a=Ji;Ha=null,Ts(e,t,r),Ha=n,Ji=a,Ha!==null&&(Ji?(e=Ha,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ha.removeChild(r.stateNode));break;case 18:Ha!==null&&(Ji?(e=Ha,r=r.stateNode,e.nodeType===8?cb(e.parentNode,r):e.nodeType===1&&cb(e,r),Kf(e)):cb(Ha,r.stateNode));break;case 4:n=Ha,a=Ji,Ha=r.stateNode.containerInfo,Ji=!0,Ts(e,t,r),Ha=n,Ji=a;break;case 0:case 11:case 14:case 15:if(!no&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Kw(r,t,l),a=a.next}while(a!==n)}Ts(e,t,r);break;case 1:if(!no&&(Ud(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(c){Un(r,t,c)}Ts(e,t,r);break;case 21:Ts(e,t,r);break;case 22:r.mode&1?(no=(n=no)||r.memoizedState!==null,Ts(e,t,r),no=n):Ts(e,t,r);break;default:Ts(e,t,r)}}function hL(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new CBe),t.forEach(function(n){var a=zBe.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Ki(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=l),n&=~o}if(n=a,n=ta()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*EBe(n/1960))-n,10e?16:e,Ks===null)var n=!1;else{if(e=Ks,Ks=null,_m=0,Xr&6)throw Error(yt(331));var a=Xr;for(Xr|=4,Kt=e.current;Kt!==null;){var o=Kt,l=o.child;if(Kt.flags&16){var c=o.deletions;if(c!==null){for(var s=0;sta()-VR?a1(e,0):BR|=r),Bo(e,t)}function bQ(e,t){t===0&&(e.mode&1?(t=q8,q8<<=1,!(q8&130023424)&&(q8=4194304)):t=1);var r=So();e=ts(e,t),e!==null&&(l6(e,t,r),Bo(e,r))}function _Be(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),bQ(e,r)}function zBe(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(yt(314))}n!==null&&n.delete(t),bQ(e,r)}var SQ;SQ=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||No.current)Ao=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ao=!1,SBe(e,t,r);Ao=!!(e.flags&131072)}else Ao=!1,kn&&t.flags&1048576&&xZ(t,Cm,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ih(e,t),e=t.pendingProps;var a=I0(t,co.current);i0(t,r),a=kR(null,t,n,e,a,r);var o=DR();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ho(n)?(o=!0,$m(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,TR(t),a.updater=T5,t.stateNode=a,a._reactInternals=t,Nw(t,n,e,r),t=Vw(null,t,n,!0,o,r)):(t.tag=0,kn&&o&&CR(t),po(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ih(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=kBe(n),e=Qi(n,e),a){case 0:t=Bw(null,t,n,e,r);break e;case 1:t=sL(null,t,n,e,r);break e;case 11:t=lL(null,t,n,e,r);break e;case 14:t=cL(null,t,n,Qi(n.type,e),r);break e}throw Error(yt(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Qi(n,a),Bw(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Qi(n,a),sL(e,t,n,a,r);case 3:e:{if(nQ(t),e===null)throw Error(yt(387));n=t.pendingProps,o=t.memoizedState,a=o.element,TZ(e,t),Em(t,n,null,r);var l=t.memoizedState;if(n=l.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=_0(Error(yt(423)),t),t=uL(e,t,n,r,a);break e}else if(n!==a){a=_0(Error(yt(424)),t),t=uL(e,t,n,r,a);break e}else for(ii=iu(t.stateNode.containerInfo.firstChild),ui=t,kn=!0,nl=null,r=IZ(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(M0(),n===a){t=rs(e,t,r);break e}po(e,t,n,r)}t=t.child}return t;case 5:return PZ(t),e===null&&Dw(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,l=a.children,Pw(n,a)?l=null:o!==null&&Pw(n,o)&&(t.flags|=32),rQ(e,t),po(e,t,l,r),t.child;case 6:return e===null&&Dw(t),null;case 13:return aQ(e,t,r);case 4:return PR(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=T0(t,null,n,r):po(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Qi(n,a),lL(e,t,n,a,r);case 7:return po(e,t,t.pendingProps,r),t.child;case 8:return po(e,t,t.pendingProps.children,r),t.child;case 12:return po(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,l=a.value,Sn(xm,n._currentValue),n._currentValue=l,o!==null)if(bl(o.value,l)){if(o.children===a.children&&!No.current){t=rs(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){l=o.child;for(var s=c.firstContext;s!==null;){if(s.context===n){if(o.tag===1){s=Wc(-1,r&-r),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),Lw(o.return,r,t),c.lanes|=r;break}s=s.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(yt(341));l.lanes|=r,c=l.alternate,c!==null&&(c.lanes|=r),Lw(l,r,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}po(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,i0(t,r),a=Ai(a),n=n(a),t.flags|=1,po(e,t,n,r),t.child;case 14:return n=t.type,a=Qi(n,t.pendingProps),a=Qi(n.type,a),cL(e,t,n,a,r);case 15:return eQ(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Qi(n,a),ih(e,t),t.tag=1,Ho(n)?(e=!0,$m(t)):e=!1,i0(t,r),ZZ(t,n,a),Nw(t,n,a,r),Vw(null,t,n,!0,e,r);case 19:return oQ(e,t,r);case 22:return tQ(e,t,r)}throw Error(yt(156,t.tag))};function $Q(e,t){return GX(e,t)}function FBe(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Di(e,t,r,n){return new FBe(e,t,r,n)}function KR(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kBe(e){if(typeof e=="function")return KR(e)?1:0;if(e!=null){if(e=e.$$typeof,e===dR)return 11;if(e===fR)return 14}return 2}function uu(e,t){var r=e.alternate;return r===null?(r=Di(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function sh(e,t,r,n,a,o){var l=2;if(n=e,typeof e=="function")KR(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Dd:return o1(r.children,a,o,t);case uR:l=8,a|=8;break;case sw:return e=Di(12,r,t,a|2),e.elementType=sw,e.lanes=o,e;case uw:return e=Di(13,r,t,a),e.elementType=uw,e.lanes=o,e;case dw:return e=Di(19,r,t,a),e.elementType=dw,e.lanes=o,e;case PX:return z5(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case MX:l=10;break e;case TX:l=9;break e;case dR:l=11;break e;case fR:l=14;break e;case Ls:l=16,n=null;break e}throw Error(yt(130,e==null?e:typeof e,""))}return t=Di(l,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function o1(e,t,r,n){return e=Di(7,e,n,t),e.lanes=r,e}function z5(e,t,r,n){return e=Di(22,e,n,t),e.elementType=PX,e.lanes=r,e.stateNode={isHidden:!1},e}function gb(e,t,r){return e=Di(6,e,null,t),e.lanes=r,e}function pb(e,t,r){return t=Di(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function DBe(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zy(0),this.expirationTimes=Zy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zy(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function YR(e,t,r,n,a,o,l,c,s){return e=new DBe(e,t,r,c,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Di(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},TR(o),e}function LBe(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OQ)}catch(e){console.error(e)}}OQ(),OX.exports=yi;var nc=OX.exports;const a3=en(nc),VBe=xO({__proto__:null,default:a3},[nc]);var wL=nc;Fd.createRoot=wL.createRoot,Fd.hydrateRoot=wL.hydrateRoot;var jBe=["content"],WBe=["content"],UBe=/^(http:|https:)?\/\//;function EQ(e){return UBe.test(e)||e.startsWith("/")&&!e.startsWith("/*")||e.startsWith("./")||e.startsWith("../")}var CL=function(){return W.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},xL=function(t){var r,n=t.loaderData,a=t.htmlPageOpts,o=t.manifest,l=(o==null||(r=o.assets)===null||r===void 0?void 0:r["umi.css"])||"";return W.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(n||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(a||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(l,"'")}})};function RQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")return EQ(e)?Ma({src:e},t):{content:e};if(si(e)==="object")return Ma(Ma({},e),t);throw new Error("Invalid script type: ".concat(si(e)))}function KBe(e){return EQ(e)?{type:"link",href:e}:{type:"style",content:e}}var YBe=function(t){var r,n,a,o,l,c,s=t.htmlPageOpts;return W.createElement(W.Fragment,null,(s==null?void 0:s.title)&&W.createElement("title",null,s.title),s==null||(r=s.favicons)===null||r===void 0?void 0:r.map(function(u,d){return W.createElement("link",{key:d,rel:"shortcut icon",href:u})}),(s==null?void 0:s.description)&&W.createElement("meta",{name:"description",content:s.description}),(s==null||(n=s.keywords)===null||n===void 0?void 0:n.length)&&W.createElement("meta",{name:"keywords",content:s.keywords.join(",")}),s==null||(a=s.metas)===null||a===void 0?void 0:a.map(function(u){return W.createElement("meta",{key:u.name,name:u.name,content:u.content})}),s==null||(o=s.links)===null||o===void 0?void 0:o.map(function(u,d){return W.createElement("link",di({key:d},u))}),s==null||(l=s.styles)===null||l===void 0?void 0:l.map(function(u,d){var f=KBe(u),v=f.type,h=f.href,m=f.content;if(v==="link")return W.createElement("link",{key:d,rel:"stylesheet",href:h});if(v==="style")return W.createElement("style",{key:d},m)}),s==null||(c=s.headScripts)===null||c===void 0?void 0:c.map(function(u,d){var f=RQ(u),v=f.content,h=i6(f,jBe);return W.createElement("script",di({dangerouslySetInnerHTML:{__html:v},key:d},h))}))};function GBe(e){var t,r=e.children,n=e.loaderData,a=e.manifest,o=e.htmlPageOpts,l=e.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c=e.mountElementId;if(l!=null&&l.pureHtml)return W.createElement("html",null,W.createElement("head",null),W.createElement("body",null,W.createElement(CL,null),W.createElement("div",{id:c},r),W.createElement(xL,{manifest:a,loaderData:n,htmlPageOpts:o})));if(l!=null&&l.pureApp)return W.createElement(W.Fragment,null,r);var s=typeof window>"u"?a==null?void 0:a.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return W.createElement("html",{suppressHydrationWarning:!0,lang:(o==null?void 0:o.lang)||"en"},W.createElement("head",null,W.createElement("meta",{charSet:"utf-8"}),W.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),s&&W.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:s}),W.createElement(YBe,{htmlPageOpts:o})),W.createElement("body",null,W.createElement(CL,null),W.createElement("div",{id:c},r),W.createElement(xL,{manifest:a,loaderData:n,htmlPageOpts:o}),o==null||(t=o.scripts)===null||t===void 0?void 0:t.map(function(u,d){var f=RQ(u),v=f.content,h=i6(f,WBe);return W.createElement("script",di({dangerouslySetInnerHTML:{__html:v},key:d},h))})))}var qBe=["redirect"];function IQ(e){var t=e.routesById,r=e.parentId,n=e.routeComponents,a=e.useStream,o=a===void 0?!0:a;return Object.keys(t).filter(function(l){return t[l].parentId===r}).map(function(l){var c=ZBe(Ma(Ma({route:t[l],routeComponent:n[l],loadingComponent:e.loadingComponent,reactRouter5Compat:e.reactRouter5Compat},e.reactRouter5Compat&&{hasChildren:Object.keys(t).filter(function(u){return t[u].parentId===l}).length>0}),{},{useStream:o})),s=IQ({routesById:t,routeComponents:n,parentId:c.id,loadingComponent:e.loadingComponent,reactRouter5Compat:e.reactRouter5Compat,useStream:o});return s.length>0&&(c.children=s,c.routes=s),c})}function XBe(e){var t=pX(),r=eNe(e.to,t),n=LNe(),a=us();if(n!=null&&n.keepQuery){var o=a.search+a.hash;r+=o}var l=Ma(Ma({},e),{},{to:r});return W.createElement(bX,di({replace:!0},l))}function ZBe(e){var t=e.route,r=e.useStream,n=r===void 0?!0:r,a=t.redirect,o=i6(t,qBe),l=e.reactRouter5Compat?JBe:eVe;return Ma({element:a?W.createElement(XBe,{to:a}):W.createElement(CX.Provider,{value:{route:e.route}},W.createElement(l,{loader:W.memo(e.routeComponent),loadingComponent:e.loadingComponent||QBe,hasChildren:e.hasChildren,useStream:n}))},o)}function QBe(){return W.createElement("div",null)}function JBe(e){var t=FNe(),r=t.route,n=w5(),a=n.history,o=n.clientRoutes,l=pX(),c={params:l,isExact:!0,path:r.path,url:a.location.pathname},s=e.loader,u={location:a.location,match:c,history:a,params:l,route:r,routes:o};return e.useStream?W.createElement(W.Suspense,{fallback:W.createElement(e.loadingComponent,null)},W.createElement(s,u,e.hasChildren&&W.createElement(vD,null))):W.createElement(s,u,e.hasChildren&&W.createElement(vD,null))}function eVe(e){var t=e.loader;return e.useStream?W.createElement(W.Suspense,{fallback:W.createElement(e.loadingComponent,null)},W.createElement(t,null)):W.createElement(t,null)}var OL=null;function tVe(e){var t=e.history,r=W.useState({action:t.action,location:t.location}),n=um(r,2),a=n[0],o=n[1];return i.useLayoutEffect(function(){return t.listen(o)},[t]),i.useLayoutEffect(function(){function l(c){e.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:e.routes,clientRoutes:e.clientRoutes,location:c.location,action:c.action,basename:e.basename,isFirst:!!c.isFirst}})}return l({location:a.location,action:a.action,isFirst:!0}),t.listen(l)},[t,e.routes,e.clientRoutes]),W.createElement(xNe,{navigator:t,location:a.location,basename:e.basename},e.children)}function rVe(){var e=w5(),t=e.clientRoutes;return wNe(t)}var nVe=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],aVe=function(t,r){var n=t.basename||"/",a=IQ({routesById:t.routes,routeComponents:t.routeComponents,loadingComponent:t.loadingComponent,reactRouter5Compat:t.reactRouter5Compat,useStream:t.useStream});t.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:a}});for(var o=W.createElement(tVe,{basename:n,pluginManager:t.pluginManager,routes:t.routes,clientRoutes:a,history:t.history},r),l=0,c=nVe;l2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(typeof IntersectionObserver!="function")return null;var a=W.useRef(typeof IntersectionObserver=="function"),o=W.useRef(null);return W.useEffect(function(){if(!(!e.current||!a.current||n.disabled))return o.current=new IntersectionObserver(function(l){var c=um(l,1),s=c[0];t(s)},r),o.current.observe(e.current),function(){var l;(l=o.current)===null||l===void 0||l.disconnect()}},[t,r,n.disabled,e]),o.current}var lVe=["prefetch"];function cVe(e){var t=W.useRef(null);return W.useEffect(function(){e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}var sVe=W.forwardRef(function(e,t){var r,n=e.prefetch,a=i6(e,lVe),o=typeof window<"u"&&window.__umi_route_prefetch__||{defaultPrefetch:"none",defaultPrefetchTimeout:50},l=o.defaultPrefetch,c=o.defaultPrefetchTimeout,s=(n===!0?"intent":n===!1?"none":n)||l;if(!["intent","render","viewport","none"].includes(s))throw new Error("Invalid prefetch value ".concat(s," found in Link component"));var u=w5(),d=typeof e.to=="string"?e.to:(r=e.to)===null||r===void 0?void 0:r.pathname,f=W.useRef(!1),v=cVe(t),h=function(g){if(s==="intent"){var b=g.target||{};b.preloadTimeout||(b.preloadTimeout=setTimeout(function(){var y;b.preloadTimeout=null,(y=u.preloadRoute)===null||y===void 0||y.call(u,d)},e.prefetchTimeout||c))}},m=function(g){if(s==="intent"){var b=g.target||{};b.preloadTimeout&&(clearTimeout(b.preloadTimeout),b.preloadTimeout=null)}};return i.useLayoutEffect(function(){if(s==="render"&&!f.current){var p;(p=u.preloadRoute)===null||p===void 0||p.call(u,d),f.current=!0}},[s,d]),iVe(v,function(p){if(p!=null&&p.isIntersecting){var g;(g=u.preloadRoute)===null||g===void 0||g.call(u,d)}},{rootMargin:"100px"},{disabled:s!=="viewport"}),d?W.createElement(INe,di({onMouseEnter:h,onMouseLeave:m,ref:v},a),e.children):null});const uVe="modulepreload",dVe=function(e){return"/"+e},EL={},ht=function(t,r,n){if(!r||r.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=dVe(o),o in EL)return;EL[o]=!0;const l=o.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(!!n)for(let d=a.length-1;d>=0;d--){const f=a[d];if(f.href===o&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${c}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":uVe,l||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),l)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};async function fVe(){return{routes:{"backend/Dashboard/Analysis/components/DeviceTypeCircleList/index":{path:"Dashboard/Analysis/components/DeviceTypeCircleList",id:"backend/Dashboard/Analysis/components/DeviceTypeCircleList/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/SmallCards/ChartCard/index":{path:"Dashboard/Analysis/components/SmallCards/ChartCard",id:"backend/Dashboard/Analysis/components/SmallCards/ChartCard/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/FeedbackList/constants":{path:"Dashboard/Analysis/components/FeedbackList/constants",id:"backend/Dashboard/Analysis/components/FeedbackList/constants",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/AddressBook/constants":{path:"Dashboard/Analysis/components/AddressBook/constants",id:"backend/Dashboard/Analysis/components/AddressBook/constants",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/ProjectLineList/index":{path:"Dashboard/Analysis/components/ProjectLineList",id:"backend/Dashboard/Analysis/components/ProjectLineList/index",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/TableConfigContext":{path:"Online/Table/Devise/components/TableConfigContext",id:"backend/Online/Table/Devise/components/TableConfigContext",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/FeedbackList/index":{path:"Dashboard/Analysis/components/FeedbackList",id:"backend/Dashboard/Analysis/components/FeedbackList/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoCardThree/index":{path:"Dashboard/Monitor/components/DemoCardThree",id:"backend/Dashboard/Monitor/components/DemoCardThree/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/AddressBook/index":{path:"Dashboard/Analysis/components/AddressBook",id:"backend/Dashboard/Analysis/components/AddressBook/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoCardFive/index":{path:"Dashboard/Monitor/components/DemoCardFive",id:"backend/Dashboard/Monitor/components/DemoCardFive/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoCardFour/index":{path:"Dashboard/Monitor/components/DemoCardFour",id:"backend/Dashboard/Monitor/components/DemoCardFour/index",parentId:"ant-design-pro-layout"},"backend/Flange/param/components/TableEditor/TableEditor":{path:"Flange/param/components/TableEditor/TableEditor",id:"backend/Flange/param/components/TableEditor/TableEditor",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/SmallCards/index":{path:"Dashboard/Analysis/components/SmallCards",id:"backend/Dashboard/Analysis/components/SmallCards/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoCardOne/index":{path:"Dashboard/Monitor/components/DemoCardOne",id:"backend/Dashboard/Monitor/components/DemoCardOne/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoCardSex/index":{path:"Dashboard/Monitor/components/DemoCardSex",id:"backend/Dashboard/Monitor/components/DemoCardSex/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoCardTwo/index":{path:"Dashboard/Monitor/components/DemoCardTwo",id:"backend/Dashboard/Monitor/components/DemoCardTwo/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/CardThree/index":{path:"Dashboard/Analysis/components/CardThree",id:"backend/Dashboard/Analysis/components/CardThree/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/CardOne/index":{path:"Dashboard/Analysis/components/CardOne",id:"backend/Dashboard/Analysis/components/CardOne/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/components/CardTwo/index":{path:"Dashboard/Analysis/components/CardTwo",id:"backend/Dashboard/Analysis/components/CardTwo/index",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/TableSetting":{path:"Online/Table/Devise/components/TableSetting",id:"backend/Online/Table/Devise/components/TableSetting",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/components/DemoMap/index":{path:"Dashboard/Monitor/components/DemoMap",id:"backend/Dashboard/Monitor/components/DemoMap/index",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/ColumnsFrom":{path:"Online/Table/Devise/components/ColumnsFrom",id:"backend/Online/Table/Devise/components/ColumnsFrom",parentId:"ant-design-pro-layout"},"backend/Flange/param/components/TableEditor/index":{path:"Flange/param/components/TableEditor",id:"backend/Flange/param/components/TableEditor/index",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/defaultSql":{path:"Online/Table/Devise/components/defaultSql",id:"backend/Online/Table/Devise/components/defaultSql",parentId:"ant-design-pro-layout"},"backend/System/Setting/components/AddSettingGroup":{path:"System/Setting/components/AddSettingGroup",id:"backend/System/Setting/components/AddSettingGroup",parentId:"ant-design-pro-layout"},"backend/Dashboard/Workplace/components/MiniCard":{path:"Dashboard/Workplace/components/MiniCard",id:"backend/Dashboard/Workplace/components/MiniCard",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/CrudFrom":{path:"Online/Table/Devise/components/CrudFrom",id:"backend/Online/Table/Devise/components/CrudFrom",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/DragSort":{path:"Online/Table/Devise/components/DragSort",id:"backend/Online/Table/Devise/components/DragSort",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/Preview":{path:"Online/Table/Devise/components/Preview",id:"backend/Online/Table/Devise/components/Preview",parentId:"ant-design-pro-layout"},"backend/System/Dict/components/DictItem/index":{path:"System/Dict/components/DictItem",id:"backend/System/Dict/components/DictItem/index",parentId:"ant-design-pro-layout"},"backend/System/Setting/components/SettingForm":{path:"System/Setting/components/SettingForm",id:"backend/System/Setting/components/SettingForm",parentId:"ant-design-pro-layout"},"backend/Admin/List/components/UpdatePassword":{path:"Admin/List/components/UpdatePassword",id:"backend/Admin/List/components/UpdatePassword",parentId:"ant-design-pro-layout"},"backend/Dashboard/Workplace/components/ACard":{path:"Dashboard/Workplace/components/ACard",id:"backend/Dashboard/Workplace/components/ACard",parentId:"ant-design-pro-layout"},"backend/Dashboard/Workplace/components/BCard":{path:"Dashboard/Workplace/components/BCard",id:"backend/Dashboard/Workplace/components/BCard",parentId:"ant-design-pro-layout"},"backend/Dashboard/Workplace/components/CCard":{path:"Dashboard/Workplace/components/CCard",id:"backend/Dashboard/Workplace/components/CCard",parentId:"ant-design-pro-layout"},"backend/Dashboard/Workplace/models/homeModel":{path:"Dashboard/Workplace/models/homeModel",id:"backend/Dashboard/Workplace/models/homeModel",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/components/utils":{path:"Online/Table/Devise/components/utils",id:"backend/Online/Table/Devise/components/utils",parentId:"ant-design-pro-layout"},"backend/User/MoneyLog/components/AddMoneyLog":{path:"User/MoneyLog/components/AddMoneyLog",id:"backend/User/MoneyLog/components/AddMoneyLog",parentId:"ant-design-pro-layout"},"backend/Feedback/Detail/index.module.scss.d":{path:"Feedback/Detail/index/module/scss/d",id:"backend/Feedback/Detail/index.module.scss.d",parentId:"ant-design-pro-layout"},"backend/System/File/components/UploadFile":{path:"System/File/components/UploadFile",id:"backend/System/File/components/UploadFile",parentId:"ant-design-pro-layout"},"frontend/User/components/UserLayout/index":{path:"User/components/UserLayout",id:"frontend/User/components/UserLayout/index",parentId:"ant-design-pro-layout"},"backend/Admin/Group/components/GroupRule":{path:"Admin/Group/components/GroupRule",id:"backend/Admin/Group/components/GroupRule",parentId:"ant-design-pro-layout"},"backend/Data/Form/components/LightFilter":{path:"Data/Form/components/LightFilter",id:"backend/Data/Form/components/LightFilter",parentId:"ant-design-pro-layout"},"backend/Data/Form/components/QueryFilter":{path:"Data/Form/components/QueryFilter",id:"backend/Data/Form/components/QueryFilter",parentId:"ant-design-pro-layout"},"backend/System/File/components/EditGroup":{path:"System/File/components/EditGroup",id:"backend/System/File/components/EditGroup",parentId:"ant-design-pro-layout"},"backend/System/File/components/GroupData":{path:"System/File/components/GroupData",id:"backend/System/File/components/GroupData",parentId:"ant-design-pro-layout"},"backend/System/File/components/AddGroup":{path:"System/File/components/AddGroup",id:"backend/System/File/components/AddGroup",parentId:"ant-design-pro-layout"},"backend/User/Group/components/GroupRule":{path:"User/Group/components/GroupRule",id:"backend/User/Group/components/GroupRule",parentId:"ant-design-pro-layout"},"backend/Data/Form/components/LoginForm":{path:"Data/Form/components/LoginForm",id:"backend/Data/Form/components/LoginForm",parentId:"ant-design-pro-layout"},"backend/Data/Form/components/ModalForm":{path:"Data/Form/components/ModalForm",id:"backend/Data/Form/components/ModalForm",parentId:"ant-design-pro-layout"},"backend/Data/Form/components/StepsForm":{path:"Data/Form/components/StepsForm",id:"backend/Data/Form/components/StepsForm",parentId:"ant-design-pro-layout"},"backend/Flange/param/components/index":{path:"Flange/param/components",id:"backend/Flange/param/components/index",parentId:"ant-design-pro-layout"},"backend/Data/Form/components/ProForm":{path:"Data/Form/components/ProForm",id:"backend/Data/Form/components/ProForm",parentId:"ant-design-pro-layout"},"backend/Dashboard/Workplace/index":{path:"Dashboard/Workplace",id:"backend/Dashboard/Workplace/index",parentId:"ant-design-pro-layout"},"backend/Online/Table/Devise/index":{path:"Online/Table/Devise",id:"backend/Online/Table/Devise/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Analysis/index":{path:"Dashboard/Analysis",id:"backend/Dashboard/Analysis/index",parentId:"ant-design-pro-layout"},"frontend/User/Log/MoneyLog/index":{path:"User/Log/MoneyLog",id:"frontend/User/Log/MoneyLog/index",parentId:"ant-design-pro-layout"},"backend/Dashboard/Monitor/index":{path:"Dashboard/Monitor",id:"backend/Dashboard/Monitor/index",parentId:"ant-design-pro-layout"},"backend/Data/Descriptions/index":{path:"Data/Descriptions",id:"backend/Data/Descriptions/index",parentId:"ant-design-pro-layout"},"backend/Flange/Detail/constants":{path:"Flange/Detail/constants",id:"backend/Flange/Detail/constants",parentId:"ant-design-pro-layout"},"frontend/User/SetPassword/index":{path:"User/SetPassword",id:"frontend/User/SetPassword/index",parentId:"ant-design-pro-layout"},"frontend/User/UserSetting/index":{path:"User/UserSetting",id:"frontend/User/UserSetting/index",parentId:"ant-design-pro-layout"},"backend/Flange/param/constants":{path:"Flange/param/constants",id:"backend/Flange/param/constants",parentId:"ant-design-pro-layout"},"backend/Feedback/Detail/index":{path:"Feedback/Detail",id:"backend/Feedback/Detail/index",parentId:"ant-design-pro-layout"},"backend/Flange/list/constants":{path:"Flange/list/constants",id:"backend/Flange/list/constants",parentId:"ant-design-pro-layout"},"backend/System/File/typings.d":{path:"System/File/typings/d",id:"backend/System/File/typings.d",parentId:"ant-design-pro-layout"},"backend/Data/CheckCard/index":{path:"Data/CheckCard",id:"backend/Data/CheckCard/index",parentId:"ant-design-pro-layout"},"backend/System/Monitor/index":{path:"System/Monitor",id:"backend/System/Monitor/index",parentId:"ant-design-pro-layout"},"backend/System/Setting/index":{path:"System/Setting",id:"backend/System/Setting/index",parentId:"ant-design-pro-layout"},"backend/Admin/Setting/index":{path:"Admin/Setting",id:"backend/Admin/Setting/index",parentId:"ant-design-pro-layout"},"backend/Flange/Detail/index":{path:"Flange/Detail",id:"backend/Flange/Detail/index",parentId:"ant-design-pro-layout"},"backend/Flange/qrcode/index":{path:"Flange/qrcode",id:"backend/Flange/qrcode/index",parentId:"ant-design-pro-layout"},"backend/User/MoneyLog/index":{path:"User/MoneyLog",id:"backend/User/MoneyLog/index",parentId:"ant-design-pro-layout"},"frontend/Client/Login/index":{path:"Client/Login",id:"frontend/Client/Login/index",parentId:"ant-design-pro-layout"},"backend/Flange/param/index":{path:"Flange/param",id:"backend/Flange/param/index",parentId:"ant-design-pro-layout"},"backend/Online/Table/index":{path:"Online/Table",id:"backend/Online/Table/index",parentId:"ant-design-pro-layout"},"backend/Admin/Group/index":{path:"Admin/Group",id:"backend/Admin/Group/index",parentId:"ant-design-pro-layout"},"backend/Flange/list/index":{path:"Flange/list",id:"backend/Flange/list/index",parentId:"ant-design-pro-layout"},"backend/System/Dict/index":{path:"System/Dict",id:"backend/System/Dict/index",parentId:"ant-design-pro-layout"},"backend/System/File/index":{path:"System/File",id:"backend/System/File/index",parentId:"ant-design-pro-layout"},"backend/System/Info/index":{path:"System/Info",id:"backend/System/Info/index",parentId:"ant-design-pro-layout"},"frontend/Client/Reg/index":{path:"Client/Reg",id:"frontend/Client/Reg/index",parentId:"ant-design-pro-layout"},"backend/Admin/List/index":{path:"Admin/List",id:"backend/Admin/List/index",parentId:"ant-design-pro-layout"},"backend/Admin/Rule/index":{path:"Admin/Rule",id:"backend/Admin/Rule/index",parentId:"ant-design-pro-layout"},"backend/Data/Table/index":{path:"Data/Table",id:"backend/Data/Table/index",parentId:"ant-design-pro-layout"},"backend/Online/typings.d":{path:"Online/typings/d",id:"backend/Online/typings.d",parentId:"ant-design-pro-layout"},"backend/User/Group/index":{path:"User/Group",id:"backend/User/Group/index",parentId:"ant-design-pro-layout"},"backend/Data/Form/index":{path:"Data/Form",id:"backend/Data/Form/index",parentId:"ant-design-pro-layout"},"backend/Data/Icon/index":{path:"Data/Icon",id:"backend/Data/Icon/index",parentId:"ant-design-pro-layout"},"backend/Data/List/index":{path:"Data/List",id:"backend/Data/List/index",parentId:"ant-design-pro-layout"},"backend/User/List/index":{path:"User/List",id:"backend/User/List/index",parentId:"ant-design-pro-layout"},"backend/User/Rule/index":{path:"User/Rule",id:"backend/User/Rule/index",parentId:"ant-design-pro-layout"},"backend/Feedback/index":{path:"Feedback",id:"backend/Feedback/index",parentId:"ant-design-pro-layout"},"backend/Project/index":{path:"Project",id:"backend/Project/index",parentId:"ant-design-pro-layout"},"backend/Device/index":{path:"Device",id:"backend/Device/index",parentId:"ant-design-pro-layout"},"backend/Flange/hooks":{path:"Flange/hooks",id:"backend/Flange/hooks",parentId:"ant-design-pro-layout"},"backend/Flange/index":{path:"Flange",id:"backend/Flange/index",parentId:"ant-design-pro-layout"},"backend/Login/index":{path:"Login",id:"backend/Login/index",parentId:"ant-design-pro-layout"},"frontend/User/index":{path:"User",id:"frontend/User/index",parentId:"ant-design-pro-layout"},index:{path:"/",id:"index",parentId:"ant-design-pro-layout"},"ant-design-pro-layout":{id:"ant-design-pro-layout",path:"/",isLayout:!0}},routeComponents:{"backend/Dashboard/Analysis/components/DeviceTypeCircleList/index":W.lazy(()=>ht(()=>import("./index-8a7d2378.js"),["assets/index-8a7d2378.js","assets/stat-6c5b4dda.js","assets/index-7b6639e6.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-e3aca980.js","assets/index-13cae3f4.js","assets/index-c5a18234.css"])),"backend/Dashboard/Analysis/components/SmallCards/ChartCard/index":W.lazy(()=>ht(()=>import("./index-1af802d3.js"),["assets/index-1af802d3.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-e3aca980.js"])),"backend/Dashboard/Analysis/components/FeedbackList/constants":W.lazy(()=>ht(()=>import("./constants-7fd6898b.js"),[])),"backend/Dashboard/Analysis/components/AddressBook/constants":W.lazy(()=>ht(()=>import("./constants-723e3af0.js"),[])),"backend/Dashboard/Analysis/components/ProjectLineList/index":W.lazy(()=>ht(()=>import("./index-d97275d6.js"),["assets/index-d97275d6.js","assets/stat-6c5b4dda.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js","assets/index-6028f0a1.css"])),"backend/Online/Table/Devise/components/TableConfigContext":W.lazy(()=>ht(()=>import("./TableConfigContext-596283a5.js"),[])),"backend/Dashboard/Analysis/components/FeedbackList/index":W.lazy(()=>ht(()=>import("./index-c883f458.js"),["assets/index-c883f458.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-aed57eca.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/stat-6c5b4dda.js","assets/index-e1b2522d.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-3f6a8b58.js","assets/index-b0973895.css"])),"backend/Dashboard/Monitor/components/DemoCardThree/index":W.lazy(()=>ht(()=>import("./index-814370b3.js"),["assets/index-814370b3.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js"])),"backend/Dashboard/Analysis/components/AddressBook/index":W.lazy(()=>ht(()=>import("./index-2c8739fc.js"),["assets/index-2c8739fc.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/constants-723e3af0.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/styleChecker-68f8791b.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-25e4c7e3.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js"])),"backend/Dashboard/Monitor/components/DemoCardFive/index":W.lazy(()=>ht(()=>import("./index-908dcc9e.js"),["assets/index-908dcc9e.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-7b6639e6.js","assets/index-e3aca980.js"])),"backend/Dashboard/Monitor/components/DemoCardFour/index":W.lazy(()=>ht(()=>import("./index-c92fe1fc.js"),["assets/index-c92fe1fc.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js"])),"backend/Flange/param/components/TableEditor/TableEditor":W.lazy(()=>ht(()=>import("./TableEditor-0d731bc8.js"),["assets/TableEditor-0d731bc8.js","assets/index-6613242c.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/styleChecker-68f8791b.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-25e4c7e3.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js"])),"backend/Dashboard/Analysis/components/SmallCards/index":W.lazy(()=>ht(()=>import("./index-e2d3468a.js"),["assets/index-e2d3468a.js","assets/stat-6c5b4dda.js","assets/index-1af802d3.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-e3aca980.js","assets/index-04808238.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js","assets/index-7b6639e6.js","assets/index-46da21dc.js","assets/index-55505f41.js"])),"backend/Dashboard/Monitor/components/DemoCardOne/index":W.lazy(()=>ht(()=>import("./index-588da60e.js"),["assets/index-588da60e.js","assets/index-7b6639e6.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-e3aca980.js"])),"backend/Dashboard/Monitor/components/DemoCardSex/index":W.lazy(()=>ht(()=>import("./index-db4ceaf0.js"),["assets/index-db4ceaf0.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js"])),"backend/Dashboard/Monitor/components/DemoCardTwo/index":W.lazy(()=>ht(()=>import("./index-21b0d826.js"),["assets/index-21b0d826.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js"])),"backend/Dashboard/Analysis/components/CardThree/index":W.lazy(()=>ht(()=>import("./index-a87a26e8.js"),["assets/index-a87a26e8.js","assets/device-ff507e64.js","assets/stat-6c5b4dda.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js"])),"backend/Dashboard/Analysis/components/CardOne/index":W.lazy(()=>ht(()=>import("./index-a8442fbc.js"),["assets/index-a8442fbc.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/stat-6c5b4dda.js","assets/clsx-0839fdbe.js","assets/index-971c7a18.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js","assets/index-7dcb896e.css"])),"backend/Dashboard/Analysis/components/CardTwo/index":W.lazy(()=>ht(()=>import("./index-cd50d08e.js"),["assets/index-cd50d08e.js","assets/stat-6c5b4dda.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js"])),"backend/Online/Table/Devise/components/TableSetting":W.lazy(()=>ht(()=>import("./TableSetting-0a0a2439.js"),["assets/TableSetting-0a0a2439.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/TableConfigContext-596283a5.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js"])),"backend/Dashboard/Monitor/components/DemoMap/index":W.lazy(()=>ht(()=>import("./index-d123fa1a.js"),["assets/index-d123fa1a.js","assets/react-content-loader.es-3bd9b17f.js","assets/camelCase-d2af58d5.js","assets/isSymbol-2dfef6ea.js"])),"backend/Online/Table/Devise/components/ColumnsFrom":W.lazy(()=>ht(()=>import("./ColumnsFrom-5b592932.js"),["assets/ColumnsFrom-5b592932.js","assets/defaultSql-5ae6b172.js","assets/TableConfigContext-596283a5.js","assets/index-6613242c.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/styleChecker-68f8791b.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-25e4c7e3.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js"])),"backend/Flange/param/components/TableEditor/index":W.lazy(()=>ht(()=>import("./index-9c09012c.js"),["assets/index-9c09012c.js","assets/TableEditor-0d731bc8.js","assets/index-6613242c.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/styleChecker-68f8791b.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-25e4c7e3.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js"])),"backend/Online/Table/Devise/components/defaultSql":W.lazy(()=>ht(()=>import("./defaultSql-5ae6b172.js"),[])),"backend/System/Setting/components/AddSettingGroup":W.lazy(()=>ht(()=>import("./AddSettingGroup-f4d5b703.js"),["assets/AddSettingGroup-f4d5b703.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js"])),"backend/Dashboard/Workplace/components/MiniCard":W.lazy(()=>ht(()=>import("./MiniCard-1e5c36ed.js"),["assets/MiniCard-1e5c36ed.js","assets/index-e3aca980.js","assets/index-971c7a18.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js","assets/index-85806890.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-04808238.js"])),"backend/Online/Table/Devise/components/CrudFrom":W.lazy(()=>ht(()=>import("./CrudFrom-1ef18330.js"),["assets/CrudFrom-1ef18330.js","assets/TableConfigContext-596283a5.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js"])),"backend/Online/Table/Devise/components/DragSort":W.lazy(()=>ht(()=>import("./DragSort-2a7a6ccd.js"),["assets/DragSort-2a7a6ccd.js","assets/TableConfigContext-596283a5.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/styleChecker-68f8791b.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-25e4c7e3.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js"])),"backend/Online/Table/Devise/components/Preview":W.lazy(()=>ht(()=>import("./Preview-9cf6f4dd.js"),["assets/Preview-9cf6f4dd.js","assets/TableConfigContext-596283a5.js","assets/utils-b63e8c97.js","assets/index-109f15ec.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css"])),"backend/System/Dict/components/DictItem/index":W.lazy(()=>ht(()=>import("./index-615ba24d.js"),["assets/index-615ba24d.js","assets/index-109f15ec.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css"])),"backend/System/Setting/components/SettingForm":W.lazy(()=>ht(()=>import("./SettingForm-c87018e0.js"),["assets/SettingForm-c87018e0.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js"])),"backend/Admin/List/components/UpdatePassword":W.lazy(()=>ht(()=>import("./UpdatePassword-f0efdcbb.js"),["assets/UpdatePassword-f0efdcbb.js","assets/index-d4ea9132.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js"])),"backend/Dashboard/Workplace/components/ACard":W.lazy(()=>ht(()=>import("./ACard-af46c9c2.js"),["assets/ACard-af46c9c2.js","assets/index-7b6639e6.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-e3aca980.js"])),"backend/Dashboard/Workplace/components/BCard":W.lazy(()=>ht(()=>import("./BCard-8df239e2.js"),["assets/BCard-8df239e2.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-7b6639e6.js","assets/index-e3aca980.js"])),"backend/Dashboard/Workplace/components/CCard":W.lazy(()=>ht(()=>import("./CCard-84ec098e.js"),["assets/CCard-84ec098e.js","assets/index-85806890.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-7b6639e6.js","assets/index-e3aca980.js","assets/index-04808238.js"])),"backend/Dashboard/Workplace/models/homeModel":W.lazy(()=>ht(()=>Promise.resolve().then(()=>ien),void 0)),"backend/Online/Table/Devise/components/utils":W.lazy(()=>ht(()=>import("./utils-b63e8c97.js"),[])),"backend/User/MoneyLog/components/AddMoneyLog":W.lazy(()=>ht(()=>import("./AddMoneyLog-a8e141bb.js"),["assets/AddMoneyLog-a8e141bb.js","assets/index-e3aca980.js","assets/index-d4ea9132.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/index-872d0bf8.js","assets/index-f4ebd759.js","assets/index-34d06e04.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js"])),"backend/Feedback/Detail/index.module.scss.d":W.lazy(()=>ht(()=>import("./index.module.scss.d-09af5258.js"),[])),"backend/System/File/components/UploadFile":W.lazy(()=>ht(()=>import("./UploadFile-dcc6b08a.js"),["assets/UploadFile-dcc6b08a.js","assets/index-04ced7f2.js","assets/index-032ff5a9.js","assets/utils-a0a2291f.js"])),"frontend/User/components/UserLayout/index":W.lazy(()=>ht(()=>import("./index-6683018b.js"),[])),"backend/Admin/Group/components/GroupRule":W.lazy(()=>ht(()=>import("./GroupRule-006e51b8.js"),["assets/GroupRule-006e51b8.js","assets/index-0c4a636b.js","assets/auth-13ead763.js"])),"backend/Data/Form/components/LightFilter":W.lazy(()=>ht(()=>import("./LightFilter-9321bc66.js"),["assets/LightFilter-9321bc66.js","assets/index-168af0e9.js","assets/index-9e8f4f3a.js","assets/index-9c418926.js","assets/index-120e4de8.js","assets/index-98ecdc4c.js","assets/index-5035f938.js","assets/index-872d0bf8.js"])),"backend/Data/Form/components/QueryFilter":W.lazy(()=>ht(()=>import("./QueryFilter-d541fbf9.js"),["assets/QueryFilter-d541fbf9.js","assets/index-6a3ca2c0.js","assets/index-98ecdc4c.js"])),"backend/System/File/components/EditGroup":W.lazy(()=>ht(()=>import("./EditGroup-2d63834b.js"),["assets/EditGroup-2d63834b.js","assets/group-d8dc7c8e.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js"])),"backend/System/File/components/GroupData":W.lazy(()=>ht(()=>import("./GroupData-fbe7935a.js"),["assets/GroupData-fbe7935a.js","assets/index-0c4a636b.js","assets/AddGroup-83161c89.js","assets/group-d8dc7c8e.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/EditGroup-2d63834b.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js"])),"backend/System/File/components/AddGroup":W.lazy(()=>ht(()=>import("./AddGroup-83161c89.js"),["assets/AddGroup-83161c89.js","assets/group-d8dc7c8e.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js"])),"backend/User/Group/components/GroupRule":W.lazy(()=>ht(()=>import("./GroupRule-a818447f.js"),["assets/GroupRule-a818447f.js","assets/index-0c4a636b.js","assets/userAuth-e0a25413.js"])),"backend/Data/Form/components/LoginForm":W.lazy(()=>ht(()=>import("./LoginForm-f8f829ea.js"),["assets/LoginForm-f8f829ea.js","assets/index-2c4aebf3.js"])),"backend/Data/Form/components/ModalForm":W.lazy(()=>ht(()=>import("./ModalForm-5f34b614.js"),["assets/ModalForm-5f34b614.js","assets/index-25d65b6e.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-5035f938.js","assets/index-872d0bf8.js"])),"backend/Data/Form/components/StepsForm":W.lazy(()=>ht(()=>import("./StepsForm-9f2ab97f.js"),["assets/StepsForm-9f2ab97f.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-98ecdc4c.js","assets/index-5035f938.js","assets/index-34d06e04.js","assets/index-872d0bf8.js"])),"backend/Flange/param/components/index":W.lazy(()=>ht(()=>import("./index-93348673.js"),["assets/index-93348673.js","assets/TableEditor-0d731bc8.js","assets/index-6613242c.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/styleChecker-68f8791b.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-25e4c7e3.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js"])),"backend/Data/Form/components/ProForm":W.lazy(()=>ht(()=>import("./ProForm-72582326.js"),["assets/ProForm-72582326.js","assets/index-120e4de8.js","assets/index-5035f938.js","assets/index-872d0bf8.js","assets/index-f4ebd759.js","assets/index-34d06e04.js","assets/index-9e8f4f3a.js","assets/index-98ecdc4c.js"])),"backend/Dashboard/Workplace/index":W.lazy(()=>ht(()=>import("./index-b8191348.js"),["assets/index-b8191348.js","assets/ACard-af46c9c2.js","assets/index-7b6639e6.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-e3aca980.js","assets/BCard-8df239e2.js","assets/ProCard-a8f5c5a9.js","assets/CCard-84ec098e.js","assets/index-85806890.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js","assets/index-04808238.js"])),"backend/Online/Table/Devise/index":W.lazy(()=>ht(()=>import("./index-abef5900.js"),["assets/index-abef5900.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/ColumnsFrom-5b592932.js","assets/defaultSql-5ae6b172.js","assets/TableConfigContext-596283a5.js","assets/index-6613242c.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/styleChecker-68f8791b.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-25e4c7e3.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/CrudFrom-1ef18330.js","assets/DragSort-2a7a6ccd.js","assets/Preview-9cf6f4dd.js","assets/utils-b63e8c97.js","assets/index-109f15ec.js","assets/table-0fa6c309.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/index-71294a53.css","assets/TableSetting-0a0a2439.js","assets/index-2ac8865c.css"])),"backend/Dashboard/Analysis/index":W.lazy(()=>ht(()=>import("./index-8f151cc0.js"),["assets/index-8f151cc0.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-2c8739fc.js","assets/constants-723e3af0.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/styleChecker-68f8791b.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-25e4c7e3.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-a8442fbc.js","assets/stat-6c5b4dda.js","assets/clsx-0839fdbe.js","assets/index-971c7a18.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js","assets/index-7dcb896e.css","assets/index-a87a26e8.js","assets/device-ff507e64.js","assets/index-cd50d08e.js","assets/index-8a7d2378.js","assets/index-7b6639e6.js","assets/index-e3aca980.js","assets/index-c5a18234.css","assets/index-c883f458.js","assets/index-aed57eca.js","assets/index-e1b2522d.js","assets/index-3f6a8b58.js","assets/index-b0973895.css","assets/index-d97275d6.js","assets/index-6028f0a1.css","assets/index-e2d3468a.js","assets/index-1af802d3.js","assets/index-04808238.js"])),"frontend/User/Log/MoneyLog/index":W.lazy(()=>ht(()=>import("./index-2886ceb8.js"),["assets/index-2886ceb8.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/Table-1c2e5828.js","assets/styleChecker-68f8791b.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/index-53e65e71.js","assets/index-d4ea9132.js","assets/index-6683018b.js"])),"backend/Dashboard/Monitor/index":W.lazy(()=>ht(()=>import("./index-8613c592.js"),["assets/index-8613c592.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-908dcc9e.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-7b6639e6.js","assets/index-e3aca980.js","assets/index-c92fe1fc.js","assets/createLoading-e07c13ae.js","assets/react-content-loader.es-3bd9b17f.js","assets/index-588da60e.js","assets/index-db4ceaf0.js","assets/index-814370b3.js","assets/index-21b0d826.js","assets/index-d123fa1a.js","assets/camelCase-d2af58d5.js","assets/isSymbol-2dfef6ea.js"])),"backend/Data/Descriptions/index":W.lazy(()=>ht(()=>import("./index-6bab6f7d.js"),["assets/index-6bab6f7d.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-9da4ac9d.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/useLazyKVMap-f8dc5f3f.js","assets/index-54d1fa42.js"])),"backend/Flange/Detail/constants":W.lazy(()=>ht(()=>import("./constants-8b327417.js"),["assets/constants-8b327417.js","assets/constants-bc9b0dd9.js"])),"frontend/User/SetPassword/index":W.lazy(()=>ht(()=>import("./index-914141b6.js"),["assets/index-914141b6.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-6683018b.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js"])),"frontend/User/UserSetting/index":W.lazy(()=>ht(()=>import("./index-62ebef15.js"),["assets/index-62ebef15.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-6683018b.js","assets/index-0f57638d.js","assets/index-04ced7f2.js","assets/index-032ff5a9.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/utils-a0a2291f.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js"])),"backend/Flange/param/constants":W.lazy(()=>ht(()=>import("./constants-ad7b57d0.js"),[])),"backend/Feedback/Detail/index":W.lazy(()=>ht(()=>import("./index-c79ab027.js"),["assets/index-c79ab027.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-aed57eca.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-9da4ac9d.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/useLazyKVMap-f8dc5f3f.js","assets/index-54d1fa42.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-34d06e04.js","assets/index-e1b2522d.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-3f6a8b58.js","assets/index-0bcae376.css"])),"backend/Flange/list/constants":W.lazy(()=>ht(()=>import("./constants-bc9b0dd9.js"),[])),"backend/System/File/typings.d":W.lazy(()=>ht(()=>import("./typings.d-fbc87396.js").then(t=>t.t),[])),"backend/Data/CheckCard/index":W.lazy(()=>ht(()=>import("./index-dc605ef6.js"),["assets/index-dc605ef6.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-3f6a8b58.js","assets/index-55505f41.js"])),"backend/System/Monitor/index":W.lazy(()=>ht(()=>import("./index-69e8b757.js"),["assets/index-69e8b757.js","assets/index-109f15ec.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css"])),"backend/System/Setting/index":W.lazy(()=>ht(()=>import("./index-1bff363d.js"),["assets/index-1bff363d.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/AddSettingGroup-f4d5b703.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/SettingForm-c87018e0.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js"])),"backend/Admin/Setting/index":W.lazy(()=>ht(()=>import("./index-93a928b2.js"),["assets/index-93a928b2.js","assets/index-0f57638d.js","assets/index-04ced7f2.js","assets/index-032ff5a9.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/utils-a0a2291f.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js"])),"backend/Flange/Detail/index":W.lazy(()=>ht(()=>import("./index-7b56ae8e.js"),["assets/index-7b56ae8e.js","assets/flange-f16cbc3a.js","assets/index-109f15ec.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css","assets/hooks-3f5f605c.js","assets/constants-bc9b0dd9.js","assets/constants-8b327417.js","assets/isSymbol-2dfef6ea.js","assets/index-9da4ac9d.js","assets/index-55d2ebbc.js","assets/index-54d1fa42.js"])),"backend/Flange/qrcode/index":W.lazy(()=>ht(()=>import("./index-e8d9f15a.js"),["assets/index-e8d9f15a.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-3fcbb702.js","assets/config-ac5a809b.js","assets/index-109f15ec.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css","assets/flange-f16cbc3a.js","assets/useListAll-790074c1.js"])),"backend/User/MoneyLog/index":W.lazy(()=>ht(()=>import("./index-3330558a.js"),["assets/index-3330558a.js","assets/AddMoneyLog-a8e141bb.js","assets/index-e3aca980.js","assets/index-d4ea9132.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/index-872d0bf8.js","assets/index-f4ebd759.js","assets/index-34d06e04.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-53e65e71.js","assets/index-109f15ec.js","assets/index-3fcbb702.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css"])),"frontend/Client/Login/index":W.lazy(()=>ht(()=>import("./index-25241fc6.js"),["assets/index-25241fc6.js","assets/index-d76da286.js","assets/index-2c4aebf3.js"])),"backend/Flange/param/index":W.lazy(()=>ht(()=>import("./index-c84374c2.js"),["assets/index-c84374c2.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-109f15ec.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css","assets/TableEditor-0d731bc8.js","assets/index-6613242c.js","assets/constants-ad7b57d0.js"])),"backend/Online/Table/index":W.lazy(()=>ht(()=>import("./index-4f4b2ce5.js"),["assets/index-4f4b2ce5.js","assets/index-109f15ec.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css"])),"backend/Admin/Group/index":W.lazy(()=>ht(()=>import("./index-f5fcd859.js"),["assets/index-f5fcd859.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/GroupRule-006e51b8.js","assets/index-0c4a636b.js","assets/auth-13ead763.js","assets/index-109f15ec.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css"])),"backend/Flange/list/index":W.lazy(()=>ht(()=>import("./index-4d8426f1.js"),["assets/index-4d8426f1.js","assets/config-ac5a809b.js","assets/index-109f15ec.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css","assets/device-ff507e64.js","assets/flange-f16cbc3a.js","assets/useListAll-790074c1.js","assets/hooks-3f5f605c.js","assets/constants-bc9b0dd9.js","assets/index-04ced7f2.js","assets/index-b9cd40b8.css"])),"backend/System/Dict/index":W.lazy(()=>ht(()=>import("./index-94e58219.js"),["assets/index-94e58219.js","assets/index-615ba24d.js","assets/index-109f15ec.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css"])),"backend/System/File/index":W.lazy(()=>ht(()=>import("./index-06928581.js"),["assets/index-06928581.js","assets/index-aed57eca.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/GroupData-fbe7935a.js","assets/index-0c4a636b.js","assets/AddGroup-83161c89.js","assets/group-d8dc7c8e.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/EditGroup-2d63834b.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/UploadFile-dcc6b08a.js","assets/index-04ced7f2.js","assets/index-032ff5a9.js","assets/utils-a0a2291f.js","assets/index-c078585c.css"])),"backend/System/Info/index":W.lazy(()=>ht(()=>import("./index-cecc9dfd.js"),["assets/index-cecc9dfd.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-54d1fa42.js"])),"frontend/Client/Reg/index":W.lazy(()=>ht(()=>import("./index-71324493.js"),["assets/index-71324493.js","assets/index-d76da286.js","assets/index-2c4aebf3.js"])),"backend/Admin/List/index":W.lazy(()=>ht(()=>import("./index-10167fe3.js"),["assets/index-10167fe3.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/UpdatePassword-f0efdcbb.js","assets/index-d4ea9132.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/index-53e65e71.js","assets/index-0f57638d.js","assets/index-04ced7f2.js","assets/index-032ff5a9.js","assets/utils-a0a2291f.js","assets/index-109f15ec.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css"])),"backend/Admin/Rule/index":W.lazy(()=>ht(()=>import("./index-dd4a319b.js"),["assets/index-dd4a319b.js","assets/index-53e65e71.js","assets/index-d4ea9132.js","assets/index-ee353394.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-109f15ec.js","assets/index-3fcbb702.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css","assets/auth-13ead763.js"])),"backend/Data/Table/index":W.lazy(()=>ht(()=>import("./index-a007c891.js"),["assets/index-a007c891.js","assets/index-3376120c.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/styleChecker-68f8791b.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/index-13cae3f4.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-25e4c7e3.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9c418926.js","assets/index-872d0bf8.js","assets/index-120e4de8.js","assets/index-34d06e04.js"])),"backend/Online/typings.d":W.lazy(()=>ht(()=>import("./typings.d-fbc87396.js").then(t=>t.a),[])),"backend/User/Group/index":W.lazy(()=>ht(()=>import("./index-3b348927.js"),["assets/index-3b348927.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/GroupRule-a818447f.js","assets/index-0c4a636b.js","assets/userAuth-e0a25413.js","assets/index-109f15ec.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css"])),"backend/Data/Form/index":W.lazy(()=>ht(()=>import("./index-b460a037.js"),["assets/index-b460a037.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/LightFilter-9321bc66.js","assets/index-168af0e9.js","assets/index-9e8f4f3a.js","assets/index-9c418926.js","assets/index-120e4de8.js","assets/index-98ecdc4c.js","assets/index-5035f938.js","assets/index-872d0bf8.js","assets/LoginForm-f8f829ea.js","assets/index-2c4aebf3.js","assets/ModalForm-5f34b614.js","assets/index-25d65b6e.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/ProForm-72582326.js","assets/index-f4ebd759.js","assets/index-34d06e04.js","assets/QueryFilter-d541fbf9.js","assets/index-6a3ca2c0.js","assets/StepsForm-9f2ab97f.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js"])),"backend/Data/Icon/index":W.lazy(()=>ht(()=>import("./index-97cf10a3.js"),["assets/index-97cf10a3.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-ee353394.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js"])),"backend/Data/List/index":W.lazy(()=>ht(()=>import("./index-2656f18d.js"),["assets/index-2656f18d.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-d4ea9132.js","assets/index-e1b2522d.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/styleChecker-68f8791b.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-3376120c.js","assets/index-9d3aa6d1.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-25e4c7e3.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-3f6a8b58.js"])),"backend/User/List/index":W.lazy(()=>ht(()=>import("./index-757eb240.js"),["assets/index-757eb240.js","assets/index-53e65e71.js","assets/index-d4ea9132.js","assets/index-109f15ec.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css"])),"backend/User/Rule/index":W.lazy(()=>ht(()=>import("./index-b87e7977.js"),["assets/index-b87e7977.js","assets/index-53e65e71.js","assets/index-d4ea9132.js","assets/index-ee353394.js","assets/index-d045d7e9.js","assets/ActionButton-ff803f23.js","assets/index-109f15ec.js","assets/index-3fcbb702.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css","assets/userAuth-e0a25413.js"])),"backend/Feedback/index":W.lazy(()=>ht(()=>import("./index-9ad591e3.js"),["assets/index-9ad591e3.js","assets/index-109f15ec.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css"])),"backend/Project/index":W.lazy(()=>ht(()=>import("./index-b1f4cdd2.js"),["assets/index-b1f4cdd2.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-0f57638d.js","assets/index-04ced7f2.js","assets/index-032ff5a9.js","assets/index-d045d7e9.js","assets/utils-a0a2291f.js","assets/index-109f15ec.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css","assets/useListAll-790074c1.js"])),"backend/Device/index":W.lazy(()=>ht(()=>import("./index-fc273905.js"),["assets/index-fc273905.js","assets/index-3fcbb702.js","assets/ActionButton-ff803f23.js","assets/index-53e65e71.js","assets/index-d4ea9132.js","assets/index-109f15ec.js","assets/index-25e4c7e3.js","assets/styleChecker-68f8791b.js","assets/table-0fa6c309.js","assets/index-cc6b0338.js","assets/index-25d65b6e.js","assets/index-168af0e9.js","assets/index-0da8d099.js","assets/index-d045d7e9.js","assets/index-6a3ca2c0.js","assets/index-5a53c961.js","assets/index-9d3aa6d1.js","assets/index-3376120c.js","assets/clsx-0839fdbe.js","assets/RouteContext-4a26a6ad.js","assets/Table-1cf08bb2.js","assets/Table-1c2e5828.js","assets/index-0c4a636b.js","assets/useLazyKVMap-f8dc5f3f.js","assets/ProCard-a8f5c5a9.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-13cae3f4.js","assets/index-032ff5a9.js","assets/index-9fe95bc6.js","assets/index-98c3b3d6.js","assets/index-71294a53.css","assets/device-ff507e64.js","assets/useListAll-790074c1.js"])),"backend/Flange/hooks":W.lazy(()=>ht(()=>import("./hooks-3f5f605c.js"),["assets/hooks-3f5f605c.js","assets/flange-f16cbc3a.js"])),"backend/Flange/index":W.lazy(()=>ht(()=>import("./index-a43454f7.js"),[])),"backend/Login/index":W.lazy(()=>ht(()=>Promise.resolve().then(()=>Oqr),void 0)),"frontend/User/index":W.lazy(()=>ht(()=>import("./index-ed47aa9b.js"),["assets/index-ed47aa9b.js","assets/index-55d2ebbc.js","assets/index-13cae3f4.js","assets/index-6683018b.js","assets/index-7b6639e6.js","assets/index-46da21dc.js","assets/index-55505f41.js","assets/index-e3aca980.js"])),index:W.lazy(()=>ht(()=>import("./index-f3c721a3.js"),["assets/index-f3c721a3.js","assets/index-b0a0ae3a.css"])),"ant-design-pro-layout":W.lazy(()=>ht(()=>import("./Layout-1acd97f0.js"),["assets/Layout-1acd97f0.js","assets/camelCase-d2af58d5.js","assets/index-9fe95bc6.js","assets/RouteContext-4a26a6ad.js","assets/Layout-3d6909f8.css"]))}}}var MQ={exports:{}},A5={};/** * @license React * react-jsx-runtime.production.min.js * @@ -61,31 +61,31 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var hje=i,mje=Symbol.for("react.element"),gje=Symbol.for("react.fragment"),pje=Object.prototype.hasOwnProperty,yje=hje.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bje={key:!0,ref:!0,__self:!0,__source:!0};function TQ(e,t,r){var n,a={},o=null,l=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)pje.call(t,n)&&!bje.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:mje,type:e,key:o,ref:l,props:a,_owner:yje.current}}A5.Fragment=gje;A5.jsx=TQ;A5.jsxs=TQ;IQ.exports=A5;var q=IQ.exports;const PQ=U.createContext(null),_Q=()=>U.useContext(PQ),Sje=e=>q.jsx(q.Fragment,{children:e.accessible?e.children:e.fallback}),Sen=e=>{const t=_Q();return U.useMemo(()=>{const n=(a,o,l)=>{var u,d;let c=a.access,s=a;if(!c&&o&&(c=o,s=l),a.unaccessible=!1,typeof c=="string"){const f=t[c];typeof f=="function"?a.unaccessible=!f(s):typeof f=="boolean"?a.unaccessible=!f:typeof f>"u"&&(a.unaccessible=!0)}return(u=a.children)!=null&&u.length&&!a.children.reduce((v,h)=>(n(h,c,a),v||!h.unaccessible),!1)&&(a.unaccessible=!0),(d=a.routes)!=null&&d.length&&!a.routes.reduce((v,h)=>(n(h,c,a),v||!h.unaccessible),!1)&&(a.unaccessible=!0),a};return e.map(a=>n(a))},[e.length,t])};var Ma;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"})(Ma||(Ma={}));function eC(e){return e.type===Ma.literal}function $je(e){return e.type===Ma.argument}function wje(e){return e.type===Ma.number}function Cje(e){return e.type===Ma.date}function xje(e){return e.type===Ma.time}function zQ(e){return e.type===Ma.select}function FQ(e){return e.type===Ma.plural}function Oje(e){return e.type===Ma.pound}function Eje(e){return!!(e&&typeof e=="object"&&e.type===0)}function Rje(e){return!!(e&&typeof e=="object"&&e.type===1)}var Mje=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)a.hasOwnProperty(o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ti=globalThis&&globalThis.__assign||function(){return Ti=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){for(v=1,h=1;vW.useContext(PQ),bVe=e=>q.jsx(q.Fragment,{children:e.accessible?e.children:e.fallback}),Sen=e=>{const t=_Q();return W.useMemo(()=>{const n=(a,o,l)=>{var u,d;let c=a.access,s=a;if(!c&&o&&(c=o,s=l),a.unaccessible=!1,typeof c=="string"){const f=t[c];typeof f=="function"?a.unaccessible=!f(s):typeof f=="boolean"?a.unaccessible=!f:typeof f>"u"&&(a.unaccessible=!0)}return(u=a.children)!=null&&u.length&&!a.children.reduce((v,h)=>(n(h,c,a),v||!h.unaccessible),!1)&&(a.unaccessible=!0),(d=a.routes)!=null&&d.length&&!a.routes.reduce((v,h)=>(n(h,c,a),v||!h.unaccessible),!1)&&(a.unaccessible=!0),a};return e.map(a=>n(a))},[e.length,t])};var Ia;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"})(Ia||(Ia={}));function eC(e){return e.type===Ia.literal}function SVe(e){return e.type===Ia.argument}function $Ve(e){return e.type===Ia.number}function wVe(e){return e.type===Ia.date}function CVe(e){return e.type===Ia.time}function zQ(e){return e.type===Ia.select}function FQ(e){return e.type===Ia.plural}function xVe(e){return e.type===Ia.pound}function OVe(e){return!!(e&&typeof e=="object"&&e.type===0)}function EVe(e){return!!(e&&typeof e=="object"&&e.type===1)}var RVe=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)a.hasOwnProperty(o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ti=globalThis&&globalThis.__assign||function(){return Ti=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){for(v=1,h=1;vzt&&(zt=ce,_t=[]),_t.push(re))}function wr(re,ye){return new yb(re,[],"",ye)}function _r(re,ye,De){return new yb(yb.buildMessage(re,ye),re,ye,De)}function Zr(){var re;return re=nn(),re}function nn(){var re,ye;for(re=[],ye=da();ye!==r;)re.push(ye),ye=da();return re}function da(){var re;return re=An(),re===r&&(re=Mr(),re===r&&(re=sr(),re===r&&(re=Yt(),re===r&&(re=gr(),re===r&&(re=Za()))))),re}function Xn(){var re,ye,De;if(re=ce,ye=[],De=xi(),De===r&&(De=ws(),De===r&&(De=Cs())),De!==r)for(;De!==r;)ye.push(De),De=xi(),De===r&&(De=ws(),De===r&&(De=Cs()));else ye=r;return ye!==r&&(At=re,ye=o(ye)),re=ye,re}function An(){var re,ye;return re=ce,ye=Xn(),ye!==r&&(At=re,ye=l(ye)),re=ye,re}function Za(){var re,ye;return re=ce,e.charCodeAt(ce)===35?(ye=c,ce++):(ye=r,Le===0&&tt(s)),ye!==r&&(At=re,ye=u()),re=ye,re}function Mr(){var re,ye,De,Qe,St,ir;return Le++,re=ce,e.charCodeAt(ce)===123?(ye=f,ce++):(ye=r,Le===0&&tt(v)),ye!==r?(De=Or(),De!==r?(Qe=Jt(),Qe!==r?(St=Or(),St!==r?(e.charCodeAt(ce)===125?(ir=h,ce++):(ir=r,Le===0&&tt(m)),ir!==r?(At=re,ye=p(Qe),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r),Le--,re===r&&(ye=r,Le===0&&tt(d)),re}function Dt(){var re,ye,De,Qe,St;if(Le++,re=ce,ye=[],De=ce,Qe=ce,Le++,St=La(),St===r&&(b.test(e.charAt(ce))?(St=e.charAt(ce),ce++):(St=r,Le===0&&tt(y))),Le--,St===r?Qe=void 0:(ce=Qe,Qe=r),Qe!==r?(e.length>ce?(St=e.charAt(ce),ce++):(St=r,Le===0&&tt(S)),St!==r?(Qe=[Qe,St],De=Qe):(ce=De,De=r)):(ce=De,De=r),De!==r)for(;De!==r;)ye.push(De),De=ce,Qe=ce,Le++,St=La(),St===r&&(b.test(e.charAt(ce))?(St=e.charAt(ce),ce++):(St=r,Le===0&&tt(y))),Le--,St===r?Qe=void 0:(ce=Qe,Qe=r),Qe!==r?(e.length>ce?(St=e.charAt(ce),ce++):(St=r,Le===0&&tt(S)),St!==r?(Qe=[Qe,St],De=Qe):(ce=De,De=r)):(ce=De,De=r);else ye=r;return ye!==r?re=e.substring(re,ce):re=ye,Le--,re===r&&(ye=r,Le===0&&tt(g)),re}function It(){var re,ye,De;return Le++,re=ce,e.charCodeAt(ce)===47?(ye=w,ce++):(ye=r,Le===0&&tt(C)),ye!==r?(De=Dt(),De!==r?(At=re,ye=E(De),re=ye):(ce=re,re=r)):(ce=re,re=r),Le--,re===r&&(ye=r,Le===0&&tt($)),re}function xr(){var re,ye,De,Qe,St;if(Le++,re=ce,ye=Or(),ye!==r)if(De=Dt(),De!==r){for(Qe=[],St=It();St!==r;)Qe.push(St),St=It();Qe!==r?(At=re,ye=R(De,Qe),re=ye):(ce=re,re=r)}else ce=re,re=r;else ce=re,re=r;return Le--,re===r&&(ye=r,Le===0&&tt(O)),re}function Et(){var re,ye,De;if(re=ce,ye=[],De=xr(),De!==r)for(;De!==r;)ye.push(De),De=xr();else ye=r;return ye!==r&&(At=re,ye=M(ye)),re=ye,re}function Rt(){var re,ye,De;return re=ce,e.substr(ce,2)===_?(ye=_,ce+=2):(ye=r,Le===0&&tt(B)),ye!==r?(De=Et(),De!==r?(At=re,ye=D(De),re=ye):(ce=re,re=r)):(ce=re,re=r),re===r&&(re=ce,At=ce,ye=H(),ye?ye=void 0:ye=r,ye!==r?(De=Xn(),De!==r?(At=re,ye=V(De),re=ye):(ce=re,re=r)):(ce=re,re=r)),re}function yr(){var re,ye,De,Qe,St,ir,vn,zr,mo,Hr,wn,Br,dr;return re=ce,e.charCodeAt(ce)===123?(ye=f,ce++):(ye=r,Le===0&&tt(v)),ye!==r?(De=Or(),De!==r?(Qe=Jt(),Qe!==r?(St=Or(),St!==r?(e.charCodeAt(ce)===44?(ir=T,ce++):(ir=r,Le===0&&tt(P)),ir!==r?(vn=Or(),vn!==r?(e.substr(ce,6)===k?(zr=k,ce+=6):(zr=r,Le===0&&tt(A)),zr!==r?(mo=Or(),mo!==r?(Hr=ce,e.charCodeAt(ce)===44?(wn=T,ce++):(wn=r,Le===0&&tt(P)),wn!==r?(Br=Or(),Br!==r?(dr=Rt(),dr!==r?(wn=[wn,Br,dr],Hr=wn):(ce=Hr,Hr=r)):(ce=Hr,Hr=r)):(ce=Hr,Hr=r),Hr===r&&(Hr=null),Hr!==r?(wn=Or(),wn!==r?(e.charCodeAt(ce)===125?(Br=h,ce++):(Br=r,Le===0&&tt(m)),Br!==r?(At=re,ye=F(Qe,zr,Hr),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r),re}function Lr(){var re,ye,De,Qe;if(re=ce,e.charCodeAt(ce)===39?(ye=j,ce++):(ye=r,Le===0&&tt(W)),ye!==r){if(De=[],Qe=xi(),Qe===r&&(K.test(e.charAt(ce))?(Qe=e.charAt(ce),ce++):(Qe=r,Le===0&&tt(Y))),Qe!==r)for(;Qe!==r;)De.push(Qe),Qe=xi(),Qe===r&&(K.test(e.charAt(ce))?(Qe=e.charAt(ce),ce++):(Qe=r,Le===0&&tt(Y)));else De=r;De!==r?(e.charCodeAt(ce)===39?(Qe=j,ce++):(Qe=r,Le===0&&tt(W)),Qe!==r?(ye=[ye,De,Qe],re=ye):(ce=re,re=r)):(ce=re,re=r)}else ce=re,re=r;if(re===r)if(re=[],ye=xi(),ye===r&&(X.test(e.charAt(ce))?(ye=e.charAt(ce),ce++):(ye=r,Le===0&&tt(te))),ye!==r)for(;ye!==r;)re.push(ye),ye=xi(),ye===r&&(X.test(e.charAt(ce))?(ye=e.charAt(ce),ce++):(ye=r,Le===0&&tt(te)));else re=r;return re}function Ar(){var re,ye;if(re=[],Q.test(e.charAt(ce))?(ye=e.charAt(ce),ce++):(ye=r,Le===0&&tt(J)),ye!==r)for(;ye!==r;)re.push(ye),Q.test(e.charAt(ce))?(ye=e.charAt(ce),ce++):(ye=r,Le===0&&tt(J));else re=r;return re}function Zn(){var re,ye,De,Qe;if(re=ce,ye=ce,De=[],Qe=Lr(),Qe===r&&(Qe=Ar()),Qe!==r)for(;Qe!==r;)De.push(Qe),Qe=Lr(),Qe===r&&(Qe=Ar());else De=r;return De!==r?ye=e.substring(ye,ce):ye=De,ye!==r&&(At=re,ye=ae(ye)),re=ye,re}function Wn(){var re,ye,De;return re=ce,e.substr(ce,2)===_?(ye=_,ce+=2):(ye=r,Le===0&&tt(B)),ye!==r?(De=Zn(),De!==r?(At=re,ye=D(De),re=ye):(ce=re,re=r)):(ce=re,re=r),re===r&&(re=ce,At=ce,ye=ne(),ye?ye=void 0:ye=r,ye!==r?(De=Xn(),De!==r?(At=re,ye=V(De),re=ye):(ce=re,re=r)):(ce=re,re=r)),re}function Qn(){var re,ye,De,Qe,St,ir,vn,zr,mo,Hr,wn,Br,dr;return re=ce,e.charCodeAt(ce)===123?(ye=f,ce++):(ye=r,Le===0&&tt(v)),ye!==r?(De=Or(),De!==r?(Qe=Jt(),Qe!==r?(St=Or(),St!==r?(e.charCodeAt(ce)===44?(ir=T,ce++):(ir=r,Le===0&&tt(P)),ir!==r?(vn=Or(),vn!==r?(e.substr(ce,4)===ie?(zr=ie,ce+=4):(zr=r,Le===0&&tt(de)),zr===r&&(e.substr(ce,4)===se?(zr=se,ce+=4):(zr=r,Le===0&&tt(ve))),zr!==r?(mo=Or(),mo!==r?(Hr=ce,e.charCodeAt(ce)===44?(wn=T,ce++):(wn=r,Le===0&&tt(P)),wn!==r?(Br=Or(),Br!==r?(dr=Wn(),dr!==r?(wn=[wn,Br,dr],Hr=wn):(ce=Hr,Hr=r)):(ce=Hr,Hr=r)):(ce=Hr,Hr=r),Hr===r&&(Hr=null),Hr!==r?(wn=Or(),wn!==r?(e.charCodeAt(ce)===125?(Br=h,ce++):(Br=r,Le===0&&tt(m)),Br!==r?(At=re,ye=F(Qe,zr,Hr),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r),re}function sr(){var re;return re=yr(),re===r&&(re=Qn()),re}function Yt(){var re,ye,De,Qe,St,ir,vn,zr,mo,Hr,wn,Br,dr,Ca,Qa,r2;if(re=ce,e.charCodeAt(ce)===123?(ye=f,ce++):(ye=r,Le===0&&tt(v)),ye!==r)if(De=Or(),De!==r)if(Qe=Jt(),Qe!==r)if(St=Or(),St!==r)if(e.charCodeAt(ce)===44?(ir=T,ce++):(ir=r,Le===0&&tt(P)),ir!==r)if(vn=Or(),vn!==r)if(e.substr(ce,6)===me?(zr=me,ce+=6):(zr=r,Le===0&&tt(le)),zr===r&&(e.substr(ce,13)===pe?(zr=pe,ce+=13):(zr=r,Le===0&&tt(ge))),zr!==r)if(mo=Or(),mo!==r)if(e.charCodeAt(ce)===44?(Hr=T,ce++):(Hr=r,Le===0&&tt(P)),Hr!==r)if(wn=Or(),wn!==r)if(Br=ce,e.substr(ce,7)===$e?(dr=$e,ce+=7):(dr=r,Le===0&&tt(we)),dr!==r?(Ca=Or(),Ca!==r?(Qa=Cc(),Qa!==r?(dr=[dr,Ca,Qa],Br=dr):(ce=Br,Br=r)):(ce=Br,Br=r)):(ce=Br,Br=r),Br===r&&(Br=null),Br!==r)if(dr=Or(),dr!==r){if(Ca=[],Qa=vo(),Qa!==r)for(;Qa!==r;)Ca.push(Qa),Qa=vo();else Ca=r;Ca!==r?(Qa=Or(),Qa!==r?(e.charCodeAt(ce)===125?(r2=h,ce++):(r2=r,Le===0&&tt(m)),r2!==r?(At=re,ye=Se(Qe,zr,Br,Ca),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)}else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;return re}function gr(){var re,ye,De,Qe,St,ir,vn,zr,mo,Hr,wn,Br,dr,Ca;if(re=ce,e.charCodeAt(ce)===123?(ye=f,ce++):(ye=r,Le===0&&tt(v)),ye!==r)if(De=Or(),De!==r)if(Qe=Jt(),Qe!==r)if(St=Or(),St!==r)if(e.charCodeAt(ce)===44?(ir=T,ce++):(ir=r,Le===0&&tt(P)),ir!==r)if(vn=Or(),vn!==r)if(e.substr(ce,6)===xe?(zr=xe,ce+=6):(zr=r,Le===0&&tt(be)),zr!==r)if(mo=Or(),mo!==r)if(e.charCodeAt(ce)===44?(Hr=T,ce++):(Hr=r,Le===0&&tt(P)),Hr!==r)if(wn=Or(),wn!==r){if(Br=[],dr=pn(),dr!==r)for(;dr!==r;)Br.push(dr),dr=pn();else Br=r;Br!==r?(dr=Or(),dr!==r?(e.charCodeAt(ce)===125?(Ca=h,ce++):(Ca=r,Le===0&&tt(m)),Ca!==r?(At=re,ye=Ce(Qe,Br),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)}else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;return re}function Rr(){var re,ye,De,Qe;return re=ce,ye=ce,e.charCodeAt(ce)===61?(De=Ee,ce++):(De=r,Le===0&&tt(Oe)),De!==r?(Qe=Cc(),Qe!==r?(De=[De,Qe],ye=De):(ce=ye,ye=r)):(ce=ye,ye=r),ye!==r?re=e.substring(re,ce):re=ye,re===r&&(re=$n()),re}function pn(){var re,ye,De,Qe,St,ir,vn,zr;return re=ce,ye=Or(),ye!==r?(De=$n(),De!==r?(Qe=Or(),Qe!==r?(e.charCodeAt(ce)===123?(St=f,ce++):(St=r,Le===0&&tt(v)),St!==r?(At=ce,ir=We(),ir?ir=void 0:ir=r,ir!==r?(vn=nn(),vn!==r?(e.charCodeAt(ce)===125?(zr=h,ce++):(zr=r,Le===0&&tt(m)),zr!==r?(At=re,ye=_e(De,vn),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r),re}function vo(){var re,ye,De,Qe,St,ir,vn,zr;return re=ce,ye=Or(),ye!==r?(De=Rr(),De!==r?(Qe=Or(),Qe!==r?(e.charCodeAt(ce)===123?(St=f,ce++):(St=r,Le===0&&tt(v)),St!==r?(At=ce,ir=ze(),ir?ir=void 0:ir=r,ir!==r?(vn=nn(),vn!==r?(e.charCodeAt(ce)===125?(zr=h,ce++):(zr=r,Le===0&&tt(m)),zr!==r?(At=re,ye=Re(De,vn),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r),re}function La(){var re;return Le++,Be.test(e.charAt(ce))?(re=e.charAt(ce),ce++):(re=r,Le===0&&tt(Ve)),Le--,re===r&&Le===0&&tt(Ie),re}function To(){var re;return Le++,ke.test(e.charAt(ce))?(re=e.charAt(ce),ce++):(re=r,Le===0&&tt(Ue)),Le--,re===r&&Le===0&&tt(Te),re}function Or(){var re,ye,De;for(Le++,re=ce,ye=[],De=La();De!==r;)ye.push(De),De=La();return ye!==r?re=e.substring(re,ce):re=ye,Le--,re===r&&(ye=r,Le===0&&tt(He)),re}function Cc(){var re,ye,De;return Le++,re=ce,e.charCodeAt(ce)===45?(ye=rt,ce++):(ye=r,Le===0&&tt(ut)),ye===r&&(ye=null),ye!==r?(De=ln(),De!==r?(At=re,ye=Ct(ye,De),re=ye):(ce=re,re=r)):(ce=re,re=r),Le--,re===r&&(ye=r,Le===0&&tt(Xe)),re}function xi(){var re,ye;return Le++,re=ce,e.substr(ce,2)===Ze?(ye=Ze,ce+=2):(ye=r,Le===0&&tt(st)),ye!==r&&(At=re,ye=Ae()),re=ye,Le--,re===r&&(ye=r,Le===0&&tt(et)),re}function ws(){var re,ye,De,Qe,St,ir;if(re=ce,e.charCodeAt(ce)===39?(ye=j,ce++):(ye=r,Le===0&&tt(W)),ye!==r)if(De=Vt(),De!==r){for(Qe=ce,St=[],e.substr(ce,2)===Ze?(ir=Ze,ce+=2):(ir=r,Le===0&&tt(st)),ir===r&&(K.test(e.charAt(ce))?(ir=e.charAt(ce),ce++):(ir=r,Le===0&&tt(Y)));ir!==r;)St.push(ir),e.substr(ce,2)===Ze?(ir=Ze,ce+=2):(ir=r,Le===0&&tt(st)),ir===r&&(K.test(e.charAt(ce))?(ir=e.charAt(ce),ce++):(ir=r,Le===0&&tt(Y)));St!==r?Qe=e.substring(Qe,ce):Qe=St,Qe!==r?(e.charCodeAt(ce)===39?(St=j,ce++):(St=r,Le===0&&tt(W)),St===r&&(St=null),St!==r?(At=re,ye=dt(De,Qe),re=ye):(ce=re,re=r)):(ce=re,re=r)}else ce=re,re=r;else ce=re,re=r;return re}function Cs(){var re,ye,De,Qe;return re=ce,ye=ce,e.length>ce?(De=e.charAt(ce),ce++):(De=r,Le===0&&tt(S)),De!==r?(At=ce,Qe=it(De),Qe?Qe=void 0:Qe=r,Qe!==r?(De=[De,Qe],ye=De):(ce=ye,ye=r)):(ce=ye,ye=r),ye===r&&(e.charCodeAt(ce)===10?(ye=nt,ce++):(ye=r,Le===0&&tt(ot))),ye!==r?re=e.substring(re,ce):re=ye,re}function Vt(){var re,ye,De,Qe;return re=ce,ye=ce,e.length>ce?(De=e.charAt(ce),ce++):(De=r,Le===0&&tt(S)),De!==r?(At=ce,Qe=vt(De),Qe?Qe=void 0:Qe=r,Qe!==r?(De=[De,Qe],ye=De):(ce=ye,ye=r)):(ce=ye,ye=r),ye!==r?re=e.substring(re,ce):re=ye,re}function Jt(){var re,ye;return Le++,re=ce,ye=ln(),ye===r&&(ye=$n()),ye!==r?re=e.substring(re,ce):re=ye,Le--,re===r&&(ye=r,Le===0&&tt(Pt)),re}function ln(){var re,ye,De,Qe,St;if(Le++,re=ce,e.charCodeAt(ce)===48?(ye=ct,ce++):(ye=r,Le===0&&tt(Mt)),ye!==r&&(At=re,ye=Ot()),re=ye,re===r){if(re=ce,ye=ce,ht.test(e.charAt(ce))?(De=e.charAt(ce),ce++):(De=r,Le===0&&tt(xt)),De!==r){for(Qe=[],Gt.test(e.charAt(ce))?(St=e.charAt(ce),ce++):(St=r,Le===0&&tt(kt));St!==r;)Qe.push(St),Gt.test(e.charAt(ce))?(St=e.charAt(ce),ce++):(St=r,Le===0&&tt(kt));Qe!==r?(De=[De,Qe],ye=De):(ce=ye,ye=r)}else ce=ye,ye=r;ye!==r&&(At=re,ye=jt(ye)),re=ye}return Le--,re===r&&(ye=r,Le===0&&tt(Ke)),re}function $n(){var re,ye,De,Qe,St;if(Le++,re=ce,ye=[],De=ce,Qe=ce,Le++,St=La(),St===r&&(St=To()),Le--,St===r?Qe=void 0:(ce=Qe,Qe=r),Qe!==r?(e.length>ce?(St=e.charAt(ce),ce++):(St=r,Le===0&&tt(S)),St!==r?(Qe=[Qe,St],De=Qe):(ce=De,De=r)):(ce=De,De=r),De!==r)for(;De!==r;)ye.push(De),De=ce,Qe=ce,Le++,St=La(),St===r&&(St=To()),Le--,St===r?Qe=void 0:(ce=Qe,Qe=r),Qe!==r?(e.length>ce?(St=e.charAt(ce),ce++):(St=r,Le===0&&tt(S)),St!==r?(Qe=[Qe,St],De=Qe):(ce=De,De=r)):(ce=De,De=r);else ye=r;return ye!==r?re=e.substring(re,ce):re=ye,Le--,re===r&&(ye=r,Le===0&&tt(Xt)),re}var Nr=["root"];function xs(){return Nr.length>1}function Os(){return Nr[Nr.length-1]==="plural"}function ho(){return t&&t.captureLocation?{location:qe()}:{}}if(Ge=a(),Ge!==r&&ce===e.length)return Ge;throw Ge!==r&&ce1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(ML,function(l,c,s){return l==="."?t.maximumFractionDigits=0:s==="+"?t.minimumFractionDigits=s.length:c[0]==="#"?t.maximumFractionDigits=c.length:(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+(typeof s=="string"?s.length:0)),""}),a.options.length&&(t=Oa(Oa({},t),IL(a.options[0])));continue}if(LQ.test(a.stem)){t=Oa(Oa({},t),IL(a.stem));continue}var o=AQ(a.stem);o&&(t=Oa(Oa({},t),o))}return t}function kje(e,t){var r=kQ(e,t);return(!t||t.normalizeHashtagInPlural!==!1)&&DQ(r),r}var Dje=globalThis&&globalThis.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;tzt&&(zt=ce,_t=[]),_t.push(re))}function wr(re,ye){return new yb(re,[],"",ye)}function _r(re,ye,De){return new yb(yb.buildMessage(re,ye),re,ye,De)}function Zr(){var re;return re=nn(),re}function nn(){var re,ye;for(re=[],ye=da();ye!==r;)re.push(ye),ye=da();return re}function da(){var re;return re=An(),re===r&&(re=Ir(),re===r&&(re=sr(),re===r&&(re=Yt(),re===r&&(re=gr(),re===r&&(re=Za()))))),re}function Xn(){var re,ye,De;if(re=ce,ye=[],De=xi(),De===r&&(De=ws(),De===r&&(De=Cs())),De!==r)for(;De!==r;)ye.push(De),De=xi(),De===r&&(De=ws(),De===r&&(De=Cs()));else ye=r;return ye!==r&&(At=re,ye=o(ye)),re=ye,re}function An(){var re,ye;return re=ce,ye=Xn(),ye!==r&&(At=re,ye=l(ye)),re=ye,re}function Za(){var re,ye;return re=ce,e.charCodeAt(ce)===35?(ye=c,ce++):(ye=r,Le===0&&tt(s)),ye!==r&&(At=re,ye=u()),re=ye,re}function Ir(){var re,ye,De,Qe,$t,ir;return Le++,re=ce,e.charCodeAt(ce)===123?(ye=f,ce++):(ye=r,Le===0&&tt(v)),ye!==r?(De=Or(),De!==r?(Qe=Jt(),Qe!==r?($t=Or(),$t!==r?(e.charCodeAt(ce)===125?(ir=h,ce++):(ir=r,Le===0&&tt(m)),ir!==r?(At=re,ye=p(Qe),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r),Le--,re===r&&(ye=r,Le===0&&tt(d)),re}function Dt(){var re,ye,De,Qe,$t;if(Le++,re=ce,ye=[],De=ce,Qe=ce,Le++,$t=La(),$t===r&&(b.test(e.charAt(ce))?($t=e.charAt(ce),ce++):($t=r,Le===0&&tt(y))),Le--,$t===r?Qe=void 0:(ce=Qe,Qe=r),Qe!==r?(e.length>ce?($t=e.charAt(ce),ce++):($t=r,Le===0&&tt(S)),$t!==r?(Qe=[Qe,$t],De=Qe):(ce=De,De=r)):(ce=De,De=r),De!==r)for(;De!==r;)ye.push(De),De=ce,Qe=ce,Le++,$t=La(),$t===r&&(b.test(e.charAt(ce))?($t=e.charAt(ce),ce++):($t=r,Le===0&&tt(y))),Le--,$t===r?Qe=void 0:(ce=Qe,Qe=r),Qe!==r?(e.length>ce?($t=e.charAt(ce),ce++):($t=r,Le===0&&tt(S)),$t!==r?(Qe=[Qe,$t],De=Qe):(ce=De,De=r)):(ce=De,De=r);else ye=r;return ye!==r?re=e.substring(re,ce):re=ye,Le--,re===r&&(ye=r,Le===0&&tt(g)),re}function Tt(){var re,ye,De;return Le++,re=ce,e.charCodeAt(ce)===47?(ye=w,ce++):(ye=r,Le===0&&tt(C)),ye!==r?(De=Dt(),De!==r?(At=re,ye=E(De),re=ye):(ce=re,re=r)):(ce=re,re=r),Le--,re===r&&(ye=r,Le===0&&tt($)),re}function xr(){var re,ye,De,Qe,$t;if(Le++,re=ce,ye=Or(),ye!==r)if(De=Dt(),De!==r){for(Qe=[],$t=Tt();$t!==r;)Qe.push($t),$t=Tt();Qe!==r?(At=re,ye=R(De,Qe),re=ye):(ce=re,re=r)}else ce=re,re=r;else ce=re,re=r;return Le--,re===r&&(ye=r,Le===0&&tt(O)),re}function Rt(){var re,ye,De;if(re=ce,ye=[],De=xr(),De!==r)for(;De!==r;)ye.push(De),De=xr();else ye=r;return ye!==r&&(At=re,ye=I(ye)),re=ye,re}function It(){var re,ye,De;return re=ce,e.substr(ce,2)===_?(ye=_,ce+=2):(ye=r,Le===0&&tt(B)),ye!==r?(De=Rt(),De!==r?(At=re,ye=D(De),re=ye):(ce=re,re=r)):(ce=re,re=r),re===r&&(re=ce,At=ce,ye=H(),ye?ye=void 0:ye=r,ye!==r?(De=Xn(),De!==r?(At=re,ye=j(De),re=ye):(ce=re,re=r)):(ce=re,re=r)),re}function yr(){var re,ye,De,Qe,$t,ir,vn,zr,mo,Hr,wn,Br,dr;return re=ce,e.charCodeAt(ce)===123?(ye=f,ce++):(ye=r,Le===0&&tt(v)),ye!==r?(De=Or(),De!==r?(Qe=Jt(),Qe!==r?($t=Or(),$t!==r?(e.charCodeAt(ce)===44?(ir=T,ce++):(ir=r,Le===0&&tt(P)),ir!==r?(vn=Or(),vn!==r?(e.substr(ce,6)===k?(zr=k,ce+=6):(zr=r,Le===0&&tt(A)),zr!==r?(mo=Or(),mo!==r?(Hr=ce,e.charCodeAt(ce)===44?(wn=T,ce++):(wn=r,Le===0&&tt(P)),wn!==r?(Br=Or(),Br!==r?(dr=It(),dr!==r?(wn=[wn,Br,dr],Hr=wn):(ce=Hr,Hr=r)):(ce=Hr,Hr=r)):(ce=Hr,Hr=r),Hr===r&&(Hr=null),Hr!==r?(wn=Or(),wn!==r?(e.charCodeAt(ce)===125?(Br=h,ce++):(Br=r,Le===0&&tt(m)),Br!==r?(At=re,ye=F(Qe,zr,Hr),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r),re}function Lr(){var re,ye,De,Qe;if(re=ce,e.charCodeAt(ce)===39?(ye=V,ce++):(ye=r,Le===0&&tt(U)),ye!==r){if(De=[],Qe=xi(),Qe===r&&(K.test(e.charAt(ce))?(Qe=e.charAt(ce),ce++):(Qe=r,Le===0&&tt(Y))),Qe!==r)for(;Qe!==r;)De.push(Qe),Qe=xi(),Qe===r&&(K.test(e.charAt(ce))?(Qe=e.charAt(ce),ce++):(Qe=r,Le===0&&tt(Y)));else De=r;De!==r?(e.charCodeAt(ce)===39?(Qe=V,ce++):(Qe=r,Le===0&&tt(U)),Qe!==r?(ye=[ye,De,Qe],re=ye):(ce=re,re=r)):(ce=re,re=r)}else ce=re,re=r;if(re===r)if(re=[],ye=xi(),ye===r&&(X.test(e.charAt(ce))?(ye=e.charAt(ce),ce++):(ye=r,Le===0&&tt(te))),ye!==r)for(;ye!==r;)re.push(ye),ye=xi(),ye===r&&(X.test(e.charAt(ce))?(ye=e.charAt(ce),ce++):(ye=r,Le===0&&tt(te)));else re=r;return re}function Ar(){var re,ye;if(re=[],Q.test(e.charAt(ce))?(ye=e.charAt(ce),ce++):(ye=r,Le===0&&tt(J)),ye!==r)for(;ye!==r;)re.push(ye),Q.test(e.charAt(ce))?(ye=e.charAt(ce),ce++):(ye=r,Le===0&&tt(J));else re=r;return re}function Zn(){var re,ye,De,Qe;if(re=ce,ye=ce,De=[],Qe=Lr(),Qe===r&&(Qe=Ar()),Qe!==r)for(;Qe!==r;)De.push(Qe),Qe=Lr(),Qe===r&&(Qe=Ar());else De=r;return De!==r?ye=e.substring(ye,ce):ye=De,ye!==r&&(At=re,ye=ae(ye)),re=ye,re}function Wn(){var re,ye,De;return re=ce,e.substr(ce,2)===_?(ye=_,ce+=2):(ye=r,Le===0&&tt(B)),ye!==r?(De=Zn(),De!==r?(At=re,ye=D(De),re=ye):(ce=re,re=r)):(ce=re,re=r),re===r&&(re=ce,At=ce,ye=ne(),ye?ye=void 0:ye=r,ye!==r?(De=Xn(),De!==r?(At=re,ye=j(De),re=ye):(ce=re,re=r)):(ce=re,re=r)),re}function Qn(){var re,ye,De,Qe,$t,ir,vn,zr,mo,Hr,wn,Br,dr;return re=ce,e.charCodeAt(ce)===123?(ye=f,ce++):(ye=r,Le===0&&tt(v)),ye!==r?(De=Or(),De!==r?(Qe=Jt(),Qe!==r?($t=Or(),$t!==r?(e.charCodeAt(ce)===44?(ir=T,ce++):(ir=r,Le===0&&tt(P)),ir!==r?(vn=Or(),vn!==r?(e.substr(ce,4)===ie?(zr=ie,ce+=4):(zr=r,Le===0&&tt(de)),zr===r&&(e.substr(ce,4)===se?(zr=se,ce+=4):(zr=r,Le===0&&tt(ve))),zr!==r?(mo=Or(),mo!==r?(Hr=ce,e.charCodeAt(ce)===44?(wn=T,ce++):(wn=r,Le===0&&tt(P)),wn!==r?(Br=Or(),Br!==r?(dr=Wn(),dr!==r?(wn=[wn,Br,dr],Hr=wn):(ce=Hr,Hr=r)):(ce=Hr,Hr=r)):(ce=Hr,Hr=r),Hr===r&&(Hr=null),Hr!==r?(wn=Or(),wn!==r?(e.charCodeAt(ce)===125?(Br=h,ce++):(Br=r,Le===0&&tt(m)),Br!==r?(At=re,ye=F(Qe,zr,Hr),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r),re}function sr(){var re;return re=yr(),re===r&&(re=Qn()),re}function Yt(){var re,ye,De,Qe,$t,ir,vn,zr,mo,Hr,wn,Br,dr,Ca,Qa,r2;if(re=ce,e.charCodeAt(ce)===123?(ye=f,ce++):(ye=r,Le===0&&tt(v)),ye!==r)if(De=Or(),De!==r)if(Qe=Jt(),Qe!==r)if($t=Or(),$t!==r)if(e.charCodeAt(ce)===44?(ir=T,ce++):(ir=r,Le===0&&tt(P)),ir!==r)if(vn=Or(),vn!==r)if(e.substr(ce,6)===me?(zr=me,ce+=6):(zr=r,Le===0&&tt(le)),zr===r&&(e.substr(ce,13)===pe?(zr=pe,ce+=13):(zr=r,Le===0&&tt(ge))),zr!==r)if(mo=Or(),mo!==r)if(e.charCodeAt(ce)===44?(Hr=T,ce++):(Hr=r,Le===0&&tt(P)),Hr!==r)if(wn=Or(),wn!==r)if(Br=ce,e.substr(ce,7)===$e?(dr=$e,ce+=7):(dr=r,Le===0&&tt(we)),dr!==r?(Ca=Or(),Ca!==r?(Qa=Cc(),Qa!==r?(dr=[dr,Ca,Qa],Br=dr):(ce=Br,Br=r)):(ce=Br,Br=r)):(ce=Br,Br=r),Br===r&&(Br=null),Br!==r)if(dr=Or(),dr!==r){if(Ca=[],Qa=vo(),Qa!==r)for(;Qa!==r;)Ca.push(Qa),Qa=vo();else Ca=r;Ca!==r?(Qa=Or(),Qa!==r?(e.charCodeAt(ce)===125?(r2=h,ce++):(r2=r,Le===0&&tt(m)),r2!==r?(At=re,ye=Se(Qe,zr,Br,Ca),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)}else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;return re}function gr(){var re,ye,De,Qe,$t,ir,vn,zr,mo,Hr,wn,Br,dr,Ca;if(re=ce,e.charCodeAt(ce)===123?(ye=f,ce++):(ye=r,Le===0&&tt(v)),ye!==r)if(De=Or(),De!==r)if(Qe=Jt(),Qe!==r)if($t=Or(),$t!==r)if(e.charCodeAt(ce)===44?(ir=T,ce++):(ir=r,Le===0&&tt(P)),ir!==r)if(vn=Or(),vn!==r)if(e.substr(ce,6)===xe?(zr=xe,ce+=6):(zr=r,Le===0&&tt(be)),zr!==r)if(mo=Or(),mo!==r)if(e.charCodeAt(ce)===44?(Hr=T,ce++):(Hr=r,Le===0&&tt(P)),Hr!==r)if(wn=Or(),wn!==r){if(Br=[],dr=pn(),dr!==r)for(;dr!==r;)Br.push(dr),dr=pn();else Br=r;Br!==r?(dr=Or(),dr!==r?(e.charCodeAt(ce)===125?(Ca=h,ce++):(Ca=r,Le===0&&tt(m)),Ca!==r?(At=re,ye=Ce(Qe,Br),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)}else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;else ce=re,re=r;return re}function Rr(){var re,ye,De,Qe;return re=ce,ye=ce,e.charCodeAt(ce)===61?(De=Ee,ce++):(De=r,Le===0&&tt(Oe)),De!==r?(Qe=Cc(),Qe!==r?(De=[De,Qe],ye=De):(ce=ye,ye=r)):(ce=ye,ye=r),ye!==r?re=e.substring(re,ce):re=ye,re===r&&(re=$n()),re}function pn(){var re,ye,De,Qe,$t,ir,vn,zr;return re=ce,ye=Or(),ye!==r?(De=$n(),De!==r?(Qe=Or(),Qe!==r?(e.charCodeAt(ce)===123?($t=f,ce++):($t=r,Le===0&&tt(v)),$t!==r?(At=ce,ir=We(),ir?ir=void 0:ir=r,ir!==r?(vn=nn(),vn!==r?(e.charCodeAt(ce)===125?(zr=h,ce++):(zr=r,Le===0&&tt(m)),zr!==r?(At=re,ye=_e(De,vn),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r),re}function vo(){var re,ye,De,Qe,$t,ir,vn,zr;return re=ce,ye=Or(),ye!==r?(De=Rr(),De!==r?(Qe=Or(),Qe!==r?(e.charCodeAt(ce)===123?($t=f,ce++):($t=r,Le===0&&tt(v)),$t!==r?(At=ce,ir=ze(),ir?ir=void 0:ir=r,ir!==r?(vn=nn(),vn!==r?(e.charCodeAt(ce)===125?(zr=h,ce++):(zr=r,Le===0&&tt(m)),zr!==r?(At=re,ye=Re(De,vn),re=ye):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r)):(ce=re,re=r),re}function La(){var re;return Le++,Be.test(e.charAt(ce))?(re=e.charAt(ce),ce++):(re=r,Le===0&&tt(je)),Le--,re===r&&Le===0&&tt(Me),re}function To(){var re;return Le++,ke.test(e.charAt(ce))?(re=e.charAt(ce),ce++):(re=r,Le===0&&tt(Ue)),Le--,re===r&&Le===0&&tt(Te),re}function Or(){var re,ye,De;for(Le++,re=ce,ye=[],De=La();De!==r;)ye.push(De),De=La();return ye!==r?re=e.substring(re,ce):re=ye,Le--,re===r&&(ye=r,Le===0&&tt(He)),re}function Cc(){var re,ye,De;return Le++,re=ce,e.charCodeAt(ce)===45?(ye=rt,ce++):(ye=r,Le===0&&tt(ut)),ye===r&&(ye=null),ye!==r?(De=ln(),De!==r?(At=re,ye=xt(ye,De),re=ye):(ce=re,re=r)):(ce=re,re=r),Le--,re===r&&(ye=r,Le===0&&tt(Xe)),re}function xi(){var re,ye;return Le++,re=ce,e.substr(ce,2)===Ze?(ye=Ze,ce+=2):(ye=r,Le===0&&tt(st)),ye!==r&&(At=re,ye=Ae()),re=ye,Le--,re===r&&(ye=r,Le===0&&tt(et)),re}function ws(){var re,ye,De,Qe,$t,ir;if(re=ce,e.charCodeAt(ce)===39?(ye=V,ce++):(ye=r,Le===0&&tt(U)),ye!==r)if(De=jt(),De!==r){for(Qe=ce,$t=[],e.substr(ce,2)===Ze?(ir=Ze,ce+=2):(ir=r,Le===0&&tt(st)),ir===r&&(K.test(e.charAt(ce))?(ir=e.charAt(ce),ce++):(ir=r,Le===0&&tt(Y)));ir!==r;)$t.push(ir),e.substr(ce,2)===Ze?(ir=Ze,ce+=2):(ir=r,Le===0&&tt(st)),ir===r&&(K.test(e.charAt(ce))?(ir=e.charAt(ce),ce++):(ir=r,Le===0&&tt(Y)));$t!==r?Qe=e.substring(Qe,ce):Qe=$t,Qe!==r?(e.charCodeAt(ce)===39?($t=V,ce++):($t=r,Le===0&&tt(U)),$t===r&&($t=null),$t!==r?(At=re,ye=dt(De,Qe),re=ye):(ce=re,re=r)):(ce=re,re=r)}else ce=re,re=r;else ce=re,re=r;return re}function Cs(){var re,ye,De,Qe;return re=ce,ye=ce,e.length>ce?(De=e.charAt(ce),ce++):(De=r,Le===0&&tt(S)),De!==r?(At=ce,Qe=it(De),Qe?Qe=void 0:Qe=r,Qe!==r?(De=[De,Qe],ye=De):(ce=ye,ye=r)):(ce=ye,ye=r),ye===r&&(e.charCodeAt(ce)===10?(ye=nt,ce++):(ye=r,Le===0&&tt(ot))),ye!==r?re=e.substring(re,ce):re=ye,re}function jt(){var re,ye,De,Qe;return re=ce,ye=ce,e.length>ce?(De=e.charAt(ce),ce++):(De=r,Le===0&&tt(S)),De!==r?(At=ce,Qe=vt(De),Qe?Qe=void 0:Qe=r,Qe!==r?(De=[De,Qe],ye=De):(ce=ye,ye=r)):(ce=ye,ye=r),ye!==r?re=e.substring(re,ce):re=ye,re}function Jt(){var re,ye;return Le++,re=ce,ye=ln(),ye===r&&(ye=$n()),ye!==r?re=e.substring(re,ce):re=ye,Le--,re===r&&(ye=r,Le===0&&tt(Pt)),re}function ln(){var re,ye,De,Qe,$t;if(Le++,re=ce,e.charCodeAt(ce)===48?(ye=ct,ce++):(ye=r,Le===0&&tt(Mt)),ye!==r&&(At=re,ye=Et()),re=ye,re===r){if(re=ce,ye=ce,mt.test(e.charAt(ce))?(De=e.charAt(ce),ce++):(De=r,Le===0&&tt(Ot)),De!==r){for(Qe=[],Gt.test(e.charAt(ce))?($t=e.charAt(ce),ce++):($t=r,Le===0&&tt(kt));$t!==r;)Qe.push($t),Gt.test(e.charAt(ce))?($t=e.charAt(ce),ce++):($t=r,Le===0&&tt(kt));Qe!==r?(De=[De,Qe],ye=De):(ce=ye,ye=r)}else ce=ye,ye=r;ye!==r&&(At=re,ye=Vt(ye)),re=ye}return Le--,re===r&&(ye=r,Le===0&&tt(Ke)),re}function $n(){var re,ye,De,Qe,$t;if(Le++,re=ce,ye=[],De=ce,Qe=ce,Le++,$t=La(),$t===r&&($t=To()),Le--,$t===r?Qe=void 0:(ce=Qe,Qe=r),Qe!==r?(e.length>ce?($t=e.charAt(ce),ce++):($t=r,Le===0&&tt(S)),$t!==r?(Qe=[Qe,$t],De=Qe):(ce=De,De=r)):(ce=De,De=r),De!==r)for(;De!==r;)ye.push(De),De=ce,Qe=ce,Le++,$t=La(),$t===r&&($t=To()),Le--,$t===r?Qe=void 0:(ce=Qe,Qe=r),Qe!==r?(e.length>ce?($t=e.charAt(ce),ce++):($t=r,Le===0&&tt(S)),$t!==r?(Qe=[Qe,$t],De=Qe):(ce=De,De=r)):(ce=De,De=r);else ye=r;return ye!==r?re=e.substring(re,ce):re=ye,Le--,re===r&&(ye=r,Le===0&&tt(Xt)),re}var Nr=["root"];function xs(){return Nr.length>1}function Os(){return Nr[Nr.length-1]==="plural"}function ho(){return t&&t.captureLocation?{location:qe()}:{}}if(Ge=a(),Ge!==r&&ce===e.length)return Ge;throw Ge!==r&&ce1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(IL,function(l,c,s){return l==="."?t.maximumFractionDigits=0:s==="+"?t.minimumFractionDigits=s.length:c[0]==="#"?t.maximumFractionDigits=c.length:(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+(typeof s=="string"?s.length:0)),""}),a.options.length&&(t=Oa(Oa({},t),ML(a.options[0])));continue}if(LQ.test(a.stem)){t=Oa(Oa({},t),ML(a.stem));continue}var o=AQ(a.stem);o&&(t=Oa(Oa({},t),o))}return t}function FVe(e,t){var r=kQ(e,t);return(!t||t.normalizeHashtagInPlural!==!1)&&DQ(r),r}var kVe=globalThis&&globalThis.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,_L=Date.now()+"@@",Gje=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function NQ(e,t,r){var n=e.tagName,a=e.outerHTML,o=e.textContent,l=e.childNodes;if(!n)return tC(o||"",t);n=n.toLowerCase();var c=~Gje.indexOf(n),s=r[n];if(s&&c)throw new Zu(n+" is a self-closing tag and can not be used, please use another tag name.");if(!l.length)return[a];var u=Array.prototype.slice.call(l).reduce(function(d,f){return d.concat(NQ(f,t,r))},[]);return s?typeof s=="function"?[s.apply(void 0,u)]:[s]:Bje(["<"+n+">"],u,[""])}function qje(e,t,r,n,a,o){var l=o3(e,t,r,n,a,void 0,o),c={},s=l.reduce(function(v,h){if(h.type===0)return v+=h.value;var m=Kje();return c[m]=h.value,v+=""+PL+m+PL},"");if(!Yje.test(s))return tC(s,c);if(!a)throw new Zu("Message has placeholders but no values was given");if(typeof DOMParser>"u")throw new Zu("Cannot format XML message without DOMParser");bb||(bb=new DOMParser);var u=bb.parseFromString(''+s+"","text/html").getElementById(_L);if(!u)throw new Zu("Malformed HTML message "+s);var d=Object.keys(a).filter(function(v){return!!u.getElementsByTagName(v).length});if(!d.length)return tC(s,c);var f=d.filter(function(v){return v!==v.toLowerCase()});if(f.length)throw new Zu("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(u.childNodes).reduce(function(v,h){return v.concat(NQ(h,c,a))},[])}var Vs=globalThis&&globalThis.__assign||function(){return Vs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<"']/g;function rVe(e){return(""+e).replace(tVe,t=>eVe[t.charCodeAt(0)])}function y4(e,t,r={}){return t.reduce((n,a)=>(a in e?n[a]=e[a]:a in r&&(n[a]=r[a]),n),{})}function N5(e){BQ(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function Yn(e,t){const r=t?` -${t.stack}`:"";return`[React Intl] ${e}${r}`}function nVe(e){}const ZR={formats:{},messages:{},timeZone:void 0,textComponent:i.Fragment,defaultLocale:"en",defaultFormats:{},onError:nVe};function jQ(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function VQ(e=jQ()){const t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames;return{getDateTimeFormat:Wl(Intl.DateTimeFormat,e.dateTime),getNumberFormat:Wl(Intl.NumberFormat,e.number),getMessageFormat:Wl(HQ,e.message),getRelativeTimeFormat:Wl(t,e.relativeTime),getPluralRules:Wl(Intl.PluralRules,e.pluralRules),getListFormat:Wl(r,e.list),getDisplayNames:Wl(n,e.displayNames)}}function QR(e,t,r,n){const a=e&&e[t];let o;if(a&&(o=a[r]),o)return o;n(Yn(`No ${t} format named: ${r}`))}var WQ={exports:{}},dn={};/** @license React v16.13.1 +`);var p=r.getPluralRules(t,{type:d.pluralType}).select(v-(d.offset||0));m=d.options[p]||d.options.other}if(!m)throw new RangeError('Invalid values for "'+d.value+'": "'+v+'". Options are "'+Object.keys(d.options).join('", "')+'"');c.push.apply(c,o3(m.value,t,r,n,a,v-(d.offset||0)));continue}}return BVe(c)}function VVe(e,t,r,n,a,o){var l=o3(e,t,r,n,a,void 0,o);return l.length===1?l[0].value:l.reduce(function(c,s){return c+=s.value},"")}var bb,PL="@@",jVe=/@@(\d+_\d+)@@/g,WVe=0;function UVe(){return Date.now()+"_"+ ++WVe}function tC(e,t){return e.split(jVe).filter(Boolean).map(function(r){return t[r]!=null?t[r]:r}).reduce(function(r,n){return r.length&&typeof n=="string"&&typeof r[r.length-1]=="string"?r[r.length-1]+=n:r.push(n),r},[])}var KVe=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,_L=Date.now()+"@@",YVe=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function NQ(e,t,r){var n=e.tagName,a=e.outerHTML,o=e.textContent,l=e.childNodes;if(!n)return tC(o||"",t);n=n.toLowerCase();var c=~YVe.indexOf(n),s=r[n];if(s&&c)throw new Zu(n+" is a self-closing tag and can not be used, please use another tag name.");if(!l.length)return[a];var u=Array.prototype.slice.call(l).reduce(function(d,f){return d.concat(NQ(f,t,r))},[]);return s?typeof s=="function"?[s.apply(void 0,u)]:[s]:HVe(["<"+n+">"],u,[""])}function GVe(e,t,r,n,a,o){var l=o3(e,t,r,n,a,void 0,o),c={},s=l.reduce(function(v,h){if(h.type===0)return v+=h.value;var m=UVe();return c[m]=h.value,v+=""+PL+m+PL},"");if(!KVe.test(s))return tC(s,c);if(!a)throw new Zu("Message has placeholders but no values was given");if(typeof DOMParser>"u")throw new Zu("Cannot format XML message without DOMParser");bb||(bb=new DOMParser);var u=bb.parseFromString(''+s+"","text/html").getElementById(_L);if(!u)throw new Zu("Malformed HTML message "+s);var d=Object.keys(a).filter(function(v){return!!u.getElementsByTagName(v).length});if(!d.length)return tC(s,c);var f=d.filter(function(v){return v!==v.toLowerCase()});if(f.length)throw new Zu("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(u.childNodes).reduce(function(v,h){return v.concat(NQ(h,c,a))},[])}var js=globalThis&&globalThis.__assign||function(){return js=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<"']/g;function tje(e){return(""+e).replace(eje,t=>JVe[t.charCodeAt(0)])}function y4(e,t,r={}){return t.reduce((n,a)=>(a in e?n[a]=e[a]:a in r&&(n[a]=r[a]),n),{})}function N5(e){BQ(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function Yn(e,t){const r=t?` +${t.stack}`:"";return`[React Intl] ${e}${r}`}function rje(e){}const ZR={formats:{},messages:{},timeZone:void 0,textComponent:i.Fragment,defaultLocale:"en",defaultFormats:{},onError:rje};function VQ(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function jQ(e=VQ()){const t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames;return{getDateTimeFormat:Wl(Intl.DateTimeFormat,e.dateTime),getNumberFormat:Wl(Intl.NumberFormat,e.number),getMessageFormat:Wl(HQ,e.message),getRelativeTimeFormat:Wl(t,e.relativeTime),getPluralRules:Wl(Intl.PluralRules,e.pluralRules),getListFormat:Wl(r,e.list),getDisplayNames:Wl(n,e.displayNames)}}function QR(e,t,r,n){const a=e&&e[t];let o;if(a&&(o=a[r]),o)return o;n(Yn(`No ${t} format named: ${r}`))}var WQ={exports:{}},dn={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Fa=typeof Symbol=="function"&&Symbol.for,JR=Fa?Symbol.for("react.element"):60103,eM=Fa?Symbol.for("react.portal"):60106,H5=Fa?Symbol.for("react.fragment"):60107,B5=Fa?Symbol.for("react.strict_mode"):60108,j5=Fa?Symbol.for("react.profiler"):60114,V5=Fa?Symbol.for("react.provider"):60109,W5=Fa?Symbol.for("react.context"):60110,tM=Fa?Symbol.for("react.async_mode"):60111,U5=Fa?Symbol.for("react.concurrent_mode"):60111,K5=Fa?Symbol.for("react.forward_ref"):60112,Y5=Fa?Symbol.for("react.suspense"):60113,aVe=Fa?Symbol.for("react.suspense_list"):60120,G5=Fa?Symbol.for("react.memo"):60115,q5=Fa?Symbol.for("react.lazy"):60116,oVe=Fa?Symbol.for("react.block"):60121,iVe=Fa?Symbol.for("react.fundamental"):60117,lVe=Fa?Symbol.for("react.responder"):60118,cVe=Fa?Symbol.for("react.scope"):60119;function Si(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case JR:switch(e=e.type,e){case tM:case U5:case H5:case j5:case B5:case Y5:return e;default:switch(e=e&&e.$$typeof,e){case W5:case K5:case q5:case G5:case V5:return e;default:return t}}case eM:return t}}}function UQ(e){return Si(e)===U5}dn.AsyncMode=tM;dn.ConcurrentMode=U5;dn.ContextConsumer=W5;dn.ContextProvider=V5;dn.Element=JR;dn.ForwardRef=K5;dn.Fragment=H5;dn.Lazy=q5;dn.Memo=G5;dn.Portal=eM;dn.Profiler=j5;dn.StrictMode=B5;dn.Suspense=Y5;dn.isAsyncMode=function(e){return UQ(e)||Si(e)===tM};dn.isConcurrentMode=UQ;dn.isContextConsumer=function(e){return Si(e)===W5};dn.isContextProvider=function(e){return Si(e)===V5};dn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===JR};dn.isForwardRef=function(e){return Si(e)===K5};dn.isFragment=function(e){return Si(e)===H5};dn.isLazy=function(e){return Si(e)===q5};dn.isMemo=function(e){return Si(e)===G5};dn.isPortal=function(e){return Si(e)===eM};dn.isProfiler=function(e){return Si(e)===j5};dn.isStrictMode=function(e){return Si(e)===B5};dn.isSuspense=function(e){return Si(e)===Y5};dn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===H5||e===U5||e===j5||e===B5||e===Y5||e===aVe||typeof e=="object"&&e!==null&&(e.$$typeof===q5||e.$$typeof===G5||e.$$typeof===V5||e.$$typeof===W5||e.$$typeof===K5||e.$$typeof===iVe||e.$$typeof===lVe||e.$$typeof===cVe||e.$$typeof===oVe)};dn.typeOf=Si;WQ.exports=dn;var sVe=WQ.exports,KQ=sVe,uVe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dVe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YQ={};YQ[KQ.ForwardRef]=uVe;YQ[KQ.Memo]=dVe;const GQ=i.createContext(null),{Consumer:$en,Provider:fVe}=GQ,qQ=fVe,rM=GQ;var XQ=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ai.createElement(rM.Consumer,null,n=>{N5(n);const{value:a,children:o}=r,l=XQ(r,["value","children"]),c=typeof a=="string"?new Date(a||0):a,s=e==="formatDate"?n.formatDateToParts(c,l):n.formatTimeToParts(c,l);return o(s)});return t.displayName=nC[e],t}function d6(e){const t=r=>i.createElement(rM.Consumer,null,n=>{N5(n);const{value:a,children:o}=r,l=XQ(r,["value","children"]),c=n[e](a,l);if(typeof o=="function")return o(c);const s=n.textComponent||i.Fragment;return i.createElement(s,null,c)});return t.displayName=rC[e],t}const vVe=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function QQ({locale:e,formats:t,onError:r},n,a={}){const{format:o}=a,l=o&&QR(t,"number",o,r)||{},c=y4(a,vVe,l);return n(e,c)}function hVe(e,t,r,n={}){try{return QQ(e,t,n).format(r)}catch(a){e.onError(Yn("Error formatting number.",a))}return String(r)}function mVe(e,t,r,n={}){try{return QQ(e,t,n).formatToParts(r)}catch(a){e.onError(Yn("Error formatting number.",a))}return[]}const gVe=["numeric","style"];function pVe({locale:e,formats:t,onError:r},n,a={}){const{format:o}=a,l=!!o&&QR(t,"relative",o,r)||{},c=y4(a,gVe,l);return n(e,c)}function yVe(e,t,r,n,a={}){n||(n="second"),Intl.RelativeTimeFormat||e.onError(Yn(`Intl.RelativeTimeFormat is not available in this environment. + */var Fa=typeof Symbol=="function"&&Symbol.for,JR=Fa?Symbol.for("react.element"):60103,eI=Fa?Symbol.for("react.portal"):60106,H5=Fa?Symbol.for("react.fragment"):60107,B5=Fa?Symbol.for("react.strict_mode"):60108,V5=Fa?Symbol.for("react.profiler"):60114,j5=Fa?Symbol.for("react.provider"):60109,W5=Fa?Symbol.for("react.context"):60110,tI=Fa?Symbol.for("react.async_mode"):60111,U5=Fa?Symbol.for("react.concurrent_mode"):60111,K5=Fa?Symbol.for("react.forward_ref"):60112,Y5=Fa?Symbol.for("react.suspense"):60113,nje=Fa?Symbol.for("react.suspense_list"):60120,G5=Fa?Symbol.for("react.memo"):60115,q5=Fa?Symbol.for("react.lazy"):60116,aje=Fa?Symbol.for("react.block"):60121,oje=Fa?Symbol.for("react.fundamental"):60117,ije=Fa?Symbol.for("react.responder"):60118,lje=Fa?Symbol.for("react.scope"):60119;function Si(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case JR:switch(e=e.type,e){case tI:case U5:case H5:case V5:case B5:case Y5:return e;default:switch(e=e&&e.$$typeof,e){case W5:case K5:case q5:case G5:case j5:return e;default:return t}}case eI:return t}}}function UQ(e){return Si(e)===U5}dn.AsyncMode=tI;dn.ConcurrentMode=U5;dn.ContextConsumer=W5;dn.ContextProvider=j5;dn.Element=JR;dn.ForwardRef=K5;dn.Fragment=H5;dn.Lazy=q5;dn.Memo=G5;dn.Portal=eI;dn.Profiler=V5;dn.StrictMode=B5;dn.Suspense=Y5;dn.isAsyncMode=function(e){return UQ(e)||Si(e)===tI};dn.isConcurrentMode=UQ;dn.isContextConsumer=function(e){return Si(e)===W5};dn.isContextProvider=function(e){return Si(e)===j5};dn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===JR};dn.isForwardRef=function(e){return Si(e)===K5};dn.isFragment=function(e){return Si(e)===H5};dn.isLazy=function(e){return Si(e)===q5};dn.isMemo=function(e){return Si(e)===G5};dn.isPortal=function(e){return Si(e)===eI};dn.isProfiler=function(e){return Si(e)===V5};dn.isStrictMode=function(e){return Si(e)===B5};dn.isSuspense=function(e){return Si(e)===Y5};dn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===H5||e===U5||e===V5||e===B5||e===Y5||e===nje||typeof e=="object"&&e!==null&&(e.$$typeof===q5||e.$$typeof===G5||e.$$typeof===j5||e.$$typeof===W5||e.$$typeof===K5||e.$$typeof===oje||e.$$typeof===ije||e.$$typeof===lje||e.$$typeof===aje)};dn.typeOf=Si;WQ.exports=dn;var cje=WQ.exports,KQ=cje,sje={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uje={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YQ={};YQ[KQ.ForwardRef]=sje;YQ[KQ.Memo]=uje;const GQ=i.createContext(null),{Consumer:$en,Provider:dje}=GQ,qQ=dje,rI=GQ;var XQ=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ai.createElement(rI.Consumer,null,n=>{N5(n);const{value:a,children:o}=r,l=XQ(r,["value","children"]),c=typeof a=="string"?new Date(a||0):a,s=e==="formatDate"?n.formatDateToParts(c,l):n.formatTimeToParts(c,l);return o(s)});return t.displayName=nC[e],t}function d6(e){const t=r=>i.createElement(rI.Consumer,null,n=>{N5(n);const{value:a,children:o}=r,l=XQ(r,["value","children"]),c=n[e](a,l);if(typeof o=="function")return o(c);const s=n.textComponent||i.Fragment;return i.createElement(s,null,c)});return t.displayName=rC[e],t}const fje=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function QQ({locale:e,formats:t,onError:r},n,a={}){const{format:o}=a,l=o&&QR(t,"number",o,r)||{},c=y4(a,fje,l);return n(e,c)}function vje(e,t,r,n={}){try{return QQ(e,t,n).format(r)}catch(a){e.onError(Yn("Error formatting number.",a))}return String(r)}function hje(e,t,r,n={}){try{return QQ(e,t,n).formatToParts(r)}catch(a){e.onError(Yn("Error formatting number.",a))}return[]}const mje=["numeric","style"];function gje({locale:e,formats:t,onError:r},n,a={}){const{format:o}=a,l=!!o&&QR(t,"relative",o,r)||{},c=y4(a,mje,l);return n(e,c)}function pje(e,t,r,n,a={}){n||(n="second"),Intl.RelativeTimeFormat||e.onError(Yn(`Intl.RelativeTimeFormat is not available in this environment. Try polyfilling it using "@formatjs/intl-relativetimeformat" -`));try{return pVe(e,t,a).format(r,n)}catch(l){e.onError(Yn("Error formatting relative time.",l))}return String(r)}const bVe=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function X5({locale:e,formats:t,onError:r,timeZone:n},a,o,l={}){const{format:c}=l,s=Object.assign(Object.assign({},n&&{timeZone:n}),c&&QR(t,a,c,r));let u=y4(l,bVe,s);return a==="time"&&!u.hour&&!u.minute&&!u.second&&(u=Object.assign(Object.assign({},u),{hour:"numeric",minute:"numeric"})),o(e,u)}function SVe(e,t,r,n={}){const a=typeof r=="string"?new Date(r||0):r;try{return X5(e,"date",t,n).format(a)}catch(o){e.onError(Yn("Error formatting date.",o))}return String(a)}function $Ve(e,t,r,n={}){const a=typeof r=="string"?new Date(r||0):r;try{return X5(e,"time",t,n).format(a)}catch(o){e.onError(Yn("Error formatting time.",o))}return String(a)}function wVe(e,t,r,n={}){const a=typeof r=="string"?new Date(r||0):r;try{return X5(e,"date",t,n).formatToParts(a)}catch(o){e.onError(Yn("Error formatting date.",o))}return[]}function CVe(e,t,r,n={}){const a=typeof r=="string"?new Date(r||0):r;try{return X5(e,"time",t,n).formatToParts(a)}catch(o){e.onError(Yn("Error formatting time.",o))}return[]}const xVe=["localeMatcher","type"];function OVe({locale:e,onError:t},r,n,a={}){Intl.PluralRules||t(Yn(`Intl.PluralRules is not available in this environment. +`));try{return gje(e,t,a).format(r,n)}catch(l){e.onError(Yn("Error formatting relative time.",l))}return String(r)}const yje=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function X5({locale:e,formats:t,onError:r,timeZone:n},a,o,l={}){const{format:c}=l,s=Object.assign(Object.assign({},n&&{timeZone:n}),c&&QR(t,a,c,r));let u=y4(l,yje,s);return a==="time"&&!u.hour&&!u.minute&&!u.second&&(u=Object.assign(Object.assign({},u),{hour:"numeric",minute:"numeric"})),o(e,u)}function bje(e,t,r,n={}){const a=typeof r=="string"?new Date(r||0):r;try{return X5(e,"date",t,n).format(a)}catch(o){e.onError(Yn("Error formatting date.",o))}return String(a)}function Sje(e,t,r,n={}){const a=typeof r=="string"?new Date(r||0):r;try{return X5(e,"time",t,n).format(a)}catch(o){e.onError(Yn("Error formatting time.",o))}return String(a)}function $je(e,t,r,n={}){const a=typeof r=="string"?new Date(r||0):r;try{return X5(e,"date",t,n).formatToParts(a)}catch(o){e.onError(Yn("Error formatting date.",o))}return[]}function wje(e,t,r,n={}){const a=typeof r=="string"?new Date(r||0):r;try{return X5(e,"time",t,n).formatToParts(a)}catch(o){e.onError(Yn("Error formatting time.",o))}return[]}const Cje=["localeMatcher","type"];function xje({locale:e,onError:t},r,n,a={}){Intl.PluralRules||t(Yn(`Intl.PluralRules is not available in this environment. Try polyfilling it using "@formatjs/intl-pluralrules" -`));const o=y4(a,xVe);try{return r(e,o).select(n)}catch(l){t(Yn("Error formatting plural.",l))}return"other"}function lv(e,t){return Object.keys(e).reduce((r,n)=>(r[n]=Object.assign({timeZone:t},e[n]),r),{})}function zL(e,t){return Object.keys(Object.assign(Object.assign({},e),t)).reduce((n,a)=>(n[a]=Object.assign(Object.assign({},e[a]||{}),t[a]||{}),n),{})}function FL(e,t){if(!t)return e;const r=HQ.formats;return Object.assign(Object.assign(Object.assign({},r),e),{date:zL(lv(r.date,t),lv(e.date||{},t)),time:zL(lv(r.time,t),lv(e.time||{},t))})}const EVe=e=>i.createElement(i.Fragment,null,...e);function nM({locale:e,formats:t,messages:r,defaultLocale:n,defaultFormats:a,onError:o,timeZone:l},c,s={id:""},u={}){const{id:d,defaultMessage:f}=s;BQ(!!d,"[React Intl] An `id` must be provided to format a message.");const v=r&&r[String(d)];t=FL(t,l),a=FL(a,l);let h=[];if(v)try{h=c.getMessageFormat(v,e,t,{formatters:c}).formatHTMLMessage(u)}catch(m){o(Yn(`Error formatting message: "${d}" for locale: "${e}"`+(f?", using default message as fallback.":""),m))}else(!f||e&&e.toLowerCase()!==n.toLowerCase())&&o(Yn(`Missing message: "${d}" for locale: "${e}"`+(f?", using default message as fallback.":"")));if(!h.length&&f)try{h=c.getMessageFormat(f,n,a).formatHTMLMessage(u)}catch(m){o(Yn(`Error formatting the default message for: "${d}"`,m))}return h.length?h.length===1&&typeof h[0]=="string"?h[0]||f||String(d):EVe(h):(o(Yn(`Cannot format message: "${d}", using message ${v||f?"source":"id"} as fallback.`)),typeof v=="string"?v||f||String(d):f||String(d))}function RVe(e,t,r={id:""},n={}){const a=Object.keys(n).reduce((o,l)=>{const c=n[l];return o[l]=typeof c=="string"?rVe(c):c,o},{});return nM(e,t,r,a)}function MVe(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(var o=0;o(r[n]=Object.assign({timeZone:t},e[n]),r),{})}function zL(e,t){return Object.keys(Object.assign(Object.assign({},e),t)).reduce((n,a)=>(n[a]=Object.assign(Object.assign({},e[a]||{}),t[a]||{}),n),{})}function FL(e,t){if(!t)return e;const r=HQ.formats;return Object.assign(Object.assign(Object.assign({},r),e),{date:zL(lv(r.date,t),lv(e.date||{},t)),time:zL(lv(r.time,t),lv(e.time||{},t))})}const Oje=e=>i.createElement(i.Fragment,null,...e);function nI({locale:e,formats:t,messages:r,defaultLocale:n,defaultFormats:a,onError:o,timeZone:l},c,s={id:""},u={}){const{id:d,defaultMessage:f}=s;BQ(!!d,"[React Intl] An `id` must be provided to format a message.");const v=r&&r[String(d)];t=FL(t,l),a=FL(a,l);let h=[];if(v)try{h=c.getMessageFormat(v,e,t,{formatters:c}).formatHTMLMessage(u)}catch(m){o(Yn(`Error formatting message: "${d}" for locale: "${e}"`+(f?", using default message as fallback.":""),m))}else(!f||e&&e.toLowerCase()!==n.toLowerCase())&&o(Yn(`Missing message: "${d}" for locale: "${e}"`+(f?", using default message as fallback.":"")));if(!h.length&&f)try{h=c.getMessageFormat(f,n,a).formatHTMLMessage(u)}catch(m){o(Yn(`Error formatting the default message for: "${d}"`,m))}return h.length?h.length===1&&typeof h[0]=="string"?h[0]||f||String(d):Oje(h):(o(Yn(`Cannot format message: "${d}", using message ${v||f?"source":"id"} as fallback.`)),typeof v=="string"?v||f||String(d):f||String(d))}function Eje(e,t,r={id:""},n={}){const a=Object.keys(n).reduce((o,l)=>{const c=n[l];return o[l]=typeof c=="string"?tje(c):c,o},{});return nI(e,t,r,a)}function Rje(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(var o=0;o{if(typeof d=="object"){const v=TVe(f);return c[v]=d,v}return String(d)});return Object.keys(c).length?r(e,l).formatToParts(s).reduce((d,f)=>{const v=f.value;return c[v]?d.push(c[v]):typeof d[d.length-1]=="string"?d[d.length-1]+=v:d.push(v),d},[]):r(e,l).format(s)}catch(c){t(Yn("Error formatting list.",c))}return n}const _Ve=["localeMatcher","style","type","fallback"];function zVe({locale:e,onError:t},r,n,a={}){Intl.DisplayNames||t(Yn(`Intl.DisplayNames is not available in this environment. +`));const l=y4(a,Ije);try{const c={},s=n.map((d,f)=>{if(typeof d=="object"){const v=Mje(f);return c[v]=d,v}return String(d)});return Object.keys(c).length?r(e,l).formatToParts(s).reduce((d,f)=>{const v=f.value;return c[v]?d.push(c[v]):typeof d[d.length-1]=="string"?d[d.length-1]+=v:d.push(v),d},[]):r(e,l).format(s)}catch(c){t(Yn("Error formatting list.",c))}return n}const Pje=["localeMatcher","style","type","fallback"];function _je({locale:e,onError:t},r,n,a={}){Intl.DisplayNames||t(Yn(`Intl.DisplayNames is not available in this environment. Try polyfilling it using "@formatjs/intl-displaynames" -`));const l=y4(a,_Ve);try{return r(e,l).of(n)}catch(c){t(Yn("Error formatting display name.",c))}}const FVe=aM||eJ;function Sb(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function km(e,t){const r=VQ(t),n=Object.assign(Object.assign({},ZR),e),{locale:a,defaultLocale:o,onError:l}=n;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&l?l(Yn(`Missing locale data for locale: "${a}" in Intl.NumberFormat. Using default locale: "${o}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details`)):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&l&&l(Yn(`Missing locale data for locale: "${a}" in Intl.DateTimeFormat. Using default locale: "${o}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details`)):(l&&l(Yn(`"locale" was not configured, using "${o}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details`)),n.locale=n.defaultLocale||"en"),Object.assign(Object.assign({},n),{formatters:r,formatNumber:hVe.bind(null,n,r.getNumberFormat),formatNumberToParts:mVe.bind(null,n,r.getNumberFormat),formatRelativeTime:yVe.bind(null,n,r.getRelativeTimeFormat),formatDate:SVe.bind(null,n,r.getDateTimeFormat),formatDateToParts:wVe.bind(null,n,r.getDateTimeFormat),formatTime:$Ve.bind(null,n,r.getDateTimeFormat),formatTimeToParts:CVe.bind(null,n,r.getDateTimeFormat),formatPlural:OVe.bind(null,n,r.getPluralRules),formatMessage:nM.bind(null,n,r),formatHTMLMessage:RVe.bind(null,n,r),formatList:PVe.bind(null,n,r.getListFormat),formatDisplayName:zVe.bind(null,n,r.getDisplayNames)})}class tJ extends i.PureComponent{constructor(){super(...arguments),this.cache=jQ(),this.state={cache:this.cache,intl:km(Sb(this.props),this.cache),prevConfig:Sb(this.props)}}static getDerivedStateFromProps(t,{prevConfig:r,cache:n}){const a=Sb(t);return FVe(r,a)?null:{intl:km(a,n),prevConfig:a}}render(){return N5(this.state.intl),i.createElement(qQ,{value:this.state.intl},this.props.children)}}tJ.displayName="IntlProvider";tJ.defaultProps=ZR;var DL=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);anM(Object.assign(Object.assign({},ZR),{locale:"en"}),VQ(),e,t);class oM extends i.Component{shouldComponentUpdate(t){const r=this.props,{values:n}=r,a=DL(r,["values"]),{values:o}=t,l=DL(t,["values"]);return!LL(o,n)||!LL(a,l)}render(){return i.createElement(rM.Consumer,null,t=>{this.props.defaultMessage||N5(t);const{formatMessage:r=kVe,textComponent:n=i.Fragment}=t||{},{id:a,description:o,defaultMessage:l,values:c,children:s,tagName:u=n}=this.props;let f=r({id:a,description:o,defaultMessage:l},c);return Array.isArray(f)||(f=[f]),typeof s=="function"?s(...f):u?i.createElement(u,null,...f):f})}}oM.displayName="FormattedMessage";oM.defaultProps={values:{}};const AL=oM;d6("formatDate");d6("formatTime");d6("formatNumber");d6("formatList");d6("formatDisplayName");ZQ("formatDate");ZQ("formatTime");var aC={exports:{}},rJ={exports:{}},DVe=void 0,nJ=function(e){return e!==DVe&&e!==null},LVe=nJ,AVe={object:!0,function:!0,undefined:!0},NVe=function(e){return LVe(e)?hasOwnProperty.call(AVe,typeof e):!1},HVe=NVe,BVe=function(e){if(!HVe(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},jVe=BVe,VVe=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!jVe(e)},WVe=VVe,UVe=/^\s*class[\s{/}]/,KVe=Function.prototype.toString,YVe=function(e){return!(!WVe(e)||UVe.test(KVe.call(e)))},GVe=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},$b,NL;function qVe(){return NL||(NL=1,$b=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),$b}var XVe=function(){},ZVe=XVe(),iM=function(e){return e!==ZVe&&e!==null},wb,HL;function QVe(){if(HL)return wb;HL=1;var e=iM,t=Object.keys;return wb=function(r){return t(e(r)?Object(r):r)},wb}var Cb,BL;function JVe(){return BL||(BL=1,Cb=qVe()()?Object.keys:QVe()),Cb}var xb,jL;function eWe(){if(jL)return xb;jL=1;var e=iM;return xb=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t},xb}var Ob,VL;function tWe(){if(VL)return Ob;VL=1;var e=JVe(),t=eWe(),r=Math.max;return Ob=function(n,a){var o,l,c=r(arguments.length,2),s;for(n=Object(t(n)),s=function(u){try{n[u]=a[u]}catch(d){o||(o=d)}},l=1;l-1},Rb}var uWe=cWe()?String.prototype.contains:sWe(),uh=nJ,UL=YVe,aJ=rWe,oJ=lWe,Cf=uWe,dWe=rJ.exports=function(e,t){var r,n,a,o,l;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],uh(e)?(r=Cf.call(e,"c"),n=Cf.call(e,"e"),a=Cf.call(e,"w")):(r=a=!0,n=!1),l={value:t,configurable:r,enumerable:n,writable:a},o?aJ(oJ(o),l):l};dWe.gs=function(e,t,r){var n,a,o,l;return typeof e!="string"?(o=r,r=t,t=e,e=null):o=arguments[3],uh(t)?UL(t)?uh(r)?UL(r)||(o=r,r=void 0):r=void 0:(o=t,t=r=void 0):t=void 0,uh(e)?(n=Cf.call(e,"c"),a=Cf.call(e,"e")):(n=!0,a=!1),l={get:t,set:r,configurable:n,enumerable:a},o?aJ(oJ(o),l):l};var fWe=rJ.exports,vWe=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e};(function(e,t){var r=fWe,n=vWe,a=Function.prototype.apply,o=Function.prototype.call,l=Object.create,c=Object.defineProperty,s=Object.defineProperties,u=Object.prototype.hasOwnProperty,d={configurable:!0,enumerable:!1,writable:!0},f,v,h,m,p,g,b;f=function(y,S){var $;return n(S),u.call(this,"__ee__")?$=this.__ee__:($=d.value=l(null),c(this,"__ee__",d),d.value=null),$[y]?typeof $[y]=="object"?$[y].push(S):$[y]=[$[y],S]:$[y]=S,this},v=function(y,S){var $,w;return n(S),w=this,f.call(this,y,$=function(){h.call(w,y,$),a.call(S,this,arguments)}),$.__eeOnceListener__=S,this},h=function(y,S){var $,w,C,E;if(n(S),!u.call(this,"__ee__"))return this;if($=this.__ee__,!$[y])return this;if(w=$[y],typeof w=="object")for(E=0;C=w[E];++E)(C===S||C.__eeOnceListener__===S)&&(w.length===2?$[y]=w[E?0:1]:w.splice(E,1));else(w===S||w.__eeOnceListener__===S)&&delete $[y];return this},m=function(y){var S,$,w,C,E;if(u.call(this,"__ee__")&&(C=this.__ee__[y],!!C))if(typeof C=="object"){for($=arguments.length,E=new Array($-1),S=1;S<$;++S)E[S-1]=arguments[S];for(C=C.slice(),S=0;w=C[S];++S)a.call(w,this,E)}else switch(arguments.length){case 1:o.call(C,this);break;case 2:o.call(C,this,arguments[1]);break;case 3:o.call(C,this,arguments[1],arguments[2]);break;default:for($=arguments.length,E=new Array($-1),S=1;S<$;++S)E[S-1]=arguments[S];a.call(C,this,E)}},p={on:f,once:v,off:h,emit:m},g={on:r(f),once:r(v),off:r(h),emit:r(m)},b=s({},g),e.exports=t=function(y){return y==null?l(b):s(Object(y),g)},t.methods=p})(aC,aC.exports);var hWe=aC.exports;const mWe=en(hWe);var gWe=function(){},pWe=gWe;const yWe=en(pWe);var iJ={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(e)}function bWe(e,t){if(lt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lJ(e){var t=bWe(e,"string");return lt(t)=="symbol"?t:t+""}function Z(e,t,r){return(t=lJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t
            : null "),k0(F,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),i.useImperativeHandle(l,function(){return z(z({},M.current),H)},[H,M.current]),i.useEffect(function(){var F,j,W=o((F=M.current)===null||F===void 0||(j=F.getFieldsValue)===null||j===void 0?void 0:j.call(F,!0),g);c==null||c(W,z(z({},M.current),H))},[]),q.jsx(dT.Provider,{value:z(z({},H),{},{formRef:M}),children:q.jsx(er,{componentSize:C.size||R,children:q.jsxs(yle.Provider,{value:{grid:S,colProps:w},children:[C.component!==!1&&q.jsx("input",{type:"text",style:{display:"none"}}),k]})})})}var xW=0;function NKr(e){var t=e.extraUrlParams,r=t===void 0?{}:t,n=e.syncToUrl,a=e.isKeyPressSubmit,o=e.syncToUrlAsImportant,l=o===void 0?!1:o,c=e.syncToInitialValues,s=c===void 0?!0:c;e.children,e.contentRender,e.submitter;var u=e.fieldProps,d=e.proFieldProps,f=e.formItemProps,v=e.groupProps,h=e.dateFormatter,m=h===void 0?"string":h,p=e.formRef;e.onInit;var g=e.form,b=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var y=e.omitNil,S=y===void 0?!0:y,$=e.request,w=e.params,C=e.initialValues,E=e.formKey,O=E===void 0?xW:E;e.readonly;var R=e.onLoadingChange,M=e.loading,_=at(e,LKr),B=i.useRef({}),D=qt(!1,{onChange:R,value:M}),H=oe(D,2),V=H[0],T=H[1],P=ple({},{disabled:!n}),k=oe(P,2),A=k[0],F=k[1],j=i.useRef(C3());i.useEffect(function(){xW+=0},[]);var W=ACr({request:$,params:w,proFieldKey:O}),K=oe(W,1),Y=K[0],X=i.useContext(er.ConfigContext),te=X.getPrefixCls,Q=te("pro-form"),J=Da("ProForm",function(Se){return Z({},".".concat(Q),Z({},"> div:not(".concat(Se.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),ae=J.wrapSSR,ne=J.hashId,ie=i.useState(function(){return n?Fh(n,A,"get"):{}}),de=oe(ie,2),se=de[0],ve=de[1],me=i.useRef({}),le=i.useRef({}),pe=yl(function(Se,xe,be){return YEr(TCr(Se,m,le.current,xe,be),me.current,xe)});i.useEffect(function(){s||ve({})},[s]);var ge=yl(function(){return z(z({},A),r)});i.useEffect(function(){n&&F(Fh(n,ge(),"set"))},[r,ge,n]);var $e=i.useMemo(function(){if(!(typeof window>"u")&&b&&["DrawerForm"].includes(b))return function(Se){return Se.parentNode||document.body}},[b]),we=yl(ra($r().mark(function Se(){var xe,be,Ce,Ee,Oe,We,_e;return $r().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(_.onFinish){Re.next=2;break}return Re.abrupt("return");case 2:if(!V){Re.next=4;break}return Re.abrupt("return");case 4:return Re.prev=4,Ce=B==null||(xe=B.current)===null||xe===void 0||(be=xe.getFieldsFormatValue)===null||be===void 0?void 0:be.call(xe),Ee=_.onFinish(Ce),Ee instanceof Promise&&T(!0),Re.next=10,Ee;case 10:n&&(_e=Object.keys(B==null||(Oe=B.current)===null||Oe===void 0||(We=Oe.getFieldsFormatValue)===null||We===void 0?void 0:We.call(Oe,void 0,!1)).reduce(function(Ie,Be){var Ve;return z(z({},Ie),{},Z({},Be,(Ve=Ce[Be])!==null&&Ve!==void 0?Ve:void 0))},r),Object.keys(A).forEach(function(Ie){_e[Ie]!==!1&&_e[Ie]!==0&&!_e[Ie]&&(_e[Ie]=void 0)}),F(Fh(n,_e,"set"))),T(!1),Re.next=18;break;case 14:Re.prev=14,Re.t0=Re.catch(4),console.log(Re.t0),T(!1);case 18:case"end":return Re.stop()}},Se,null,[[4,14]])})));return i.useImperativeHandle(p,function(){return B.current},[!Y]),!Y&&e.request?q.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:q.jsx(q1,{})}):ae(q.jsx(X6.Provider,{value:{mode:e.readonly?"read":"edit"},children:q.jsx(sCr,{needDeps:!0,children:q.jsx(A6.Provider,{value:{formRef:B,fieldProps:u,proFieldProps:d,formItemProps:f,groupProps:v,formComponentType:b,getPopupContainer:$e,formKey:j.current,setFieldValueType:function(xe,be){var Ce=be.valueType,Ee=Ce===void 0?"text":Ce,Oe=be.dateFormat,We=be.transform;Array.isArray(xe)&&(me.current=Kn(me.current,xe,We),le.current=Kn(le.current,xe,{valueType:Ee,dateFormat:Oe}))}},children:q.jsx(t4.Provider,{value:{},children:q.jsx(Va,z(z({onKeyPress:function(xe){if(a&&xe.key==="Enter"){var be;(be=B.current)===null||be===void 0||be.submit()}},autoComplete:"off",form:g},br(_,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(xe){B.current&&(B.current.nativeElement=xe==null?void 0:xe.nativeElement)},initialValues:l?z(z(z({},C),Y),se):z(z(z({},se),C),Y),onValuesChange:function(xe,be){var Ce;_==null||(Ce=_.onValuesChange)===null||Ce===void 0||Ce.call(_,pe(xe,!!S),pe(be,!!S))},className:ue(e.className,Q,ne),onFinish:we,children:q.jsx(AKr,z(z({transformKey:pe,autoComplete:"off",loading:V,onUrlSearchChange:F},e),{},{formRef:B,initialValues:z(z({},C),Y)}))}))})})})}))}var HKr=function(t){return Z(Z({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),Z({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function BKr(e){return Da("LightWrapper",function(t){var r=z(z({},t),{},{componentCls:".".concat(e)});return[HKr(r)]})}var jKr=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],VKr=function(t){var r=t.label,n=t.size,a=t.disabled,o=t.onChange,l=t.className,c=t.style,s=t.children,u=t.valuePropName,d=t.placeholder,f=t.labelFormatter,v=t.bordered,h=t.footerRender,m=t.allowClear,p=t.otherFieldProps,g=t.valueType,b=t.placement,y=at(t,jKr),S=i.useContext(er.ConfigContext),$=S.getPrefixCls,w=$("pro-field-light-wrapper"),C=BKr(w),E=C.wrapSSR,O=C.hashId,R=i.useState(t[u]),M=oe(R,2),_=M[0],B=M[1],D=qt(!1),H=oe(D,2),V=H[0],T=H[1],P=function(){for(var j,W=arguments.length,K=new Array(W),Y=0;Y div":{width:"100%"}}})),"@media (min-width: ".concat(t.screenMDMin,"px)"),Z({},t.componentCls,{"&-left":{backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}})),"@media (max-width: ".concat(t.screenSM,"px)"),Z({},t.componentCls,{"&-main":{width:"95%",maxWidth:"328px"}}))};function UKr(e){return Da("LoginFormPage",function(t){var r=z(z({},t),{},{componentCls:".".concat(e)});return[WKr(r)]})}var KKr=["logo","message","style","activityConfig","backgroundImageUrl","backgroundVideoUrl","title","subTitle","actions","children","containerStyle","otherStyle","mainStyle"];function YKr(e){var t=e.logo,r=e.message,n=e.style,a=e.activityConfig,o=e.backgroundImageUrl,l=e.backgroundVideoUrl,c=e.title,s=e.subTitle,u=e.actions,d=e.children,f=e.containerStyle,v=e.otherStyle,h=e.mainStyle,m=at(e,KKr),p=Pn(),g=function(){var M,_;return m.submitter===!1||((M=m.submitter)===null||M===void 0?void 0:M.submitButtonProps)===!1?!1:z({size:"large",style:{width:"100%"}},(_=m.submitter)===null||_===void 0?void 0:_.submitButtonProps)},b=z(z({searchConfig:{submitText:p.getMessage("loginForm.submitText","登录")},render:function(M,_){return _.pop()}},m.submitter),{},{submitButtonProps:g()}),y=i.useContext(er.ConfigContext),S=y.getPrefixCls("pro-form-login-page"),$=UKr(S),w=$.wrapSSR,C=$.hashId,E=function(M){return"".concat(S,"-").concat(M," ").concat(C).trim()},O=i.useMemo(function(){return t?typeof t=="string"?q.jsx("img",{src:t}):t:null},[t]);return w(q.jsxs("div",{className:ue(S,C),style:z(z({},n),{},{position:"relative",backgroundImage:o?'url("'.concat(o,'")'):void 0}),children:[l?q.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",overflow:"hidden",height:"100%",zIndex:1,pointerEvents:"none"},children:q.jsx("video",{src:l,controls:!1,autoPlay:!0,playsInline:!0,loop:!0,muted:!0,crossOrigin:"anonymous",style:{width:"100%",height:"100%",objectFit:"cover"}})}):null,q.jsxs("div",{className:ue(S,C),children:[q.jsx("div",{className:E("notice"),children:a&&q.jsxs("div",{className:E("notice-activity"),style:a.style,children:[a.title&&q.jsxs("div",{className:E("notice-activity-title"),children:[" ",a.title," "]}),a.subTitle&&q.jsx("div",{className:E("notice-activity-subTitle"),children:a.subTitle}),a.action&&q.jsx("div",{className:E("notice-activity-action"),children:a.action})]})}),q.jsx("div",{className:E("left"),children:q.jsxs("div",{className:E("container"),style:f,children:[q.jsxs("div",{className:E("top"),children:[c||O?q.jsxs("div",{className:E("header"),children:[O?q.jsx("span",{className:E("logo"),children:O}):null,c?q.jsx("span",{className:E("title"),children:c}):null]}):null,s?q.jsx("div",{className:E("desc"),children:s}):null]}),q.jsxs("div",{className:E("main"),style:h,children:[q.jsxs(bs,z(z({isKeyPressSubmit:!0},m),{},{submitter:b,children:[r,d]})),u?q.jsx("div",{className:E("other"),style:v,children:u}):null]})]})})]})]}))}var GKr=function(t){return Z({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function qKr(e){return Da("ProLayoutFooter",function(t){var r=z(z({},t),{},{componentCls:".".concat(e)});return[GKr(r)]})}var XKr=function(t){var r=t.className,n=t.prefixCls,a=t.links,o=t.copyright,l=t.style,c=i.useContext(er.ConfigContext),s=c.getPrefixCls(n||"pro-global-footer"),u=qKr(s),d=u.wrapSSR,f=u.hashId;return(a==null||a===!1||Array.isArray(a)&&a.length===0)&&(o==null||o===!1)?null:d(q.jsxs("div",{className:ue(s,f,r),style:l,children:[a&&q.jsx("div",{className:"".concat(s,"-list ").concat(f).trim(),children:a.map(function(v){return q.jsx("a",{className:"".concat(s,"-list-link ").concat(f).trim(),title:v.key,target:v.blankTarget?"_blank":"_self",href:v.href,rel:"noreferrer",children:v.title},v.key)})}),o&&q.jsx("div",{className:"".concat(s,"-copyright ").concat(f).trim(),children:o})]}))},ZKr=p2t.Footer,QKr=function(t){var r=t.links,n=t.copyright,a=t.style,o=t.className,l=t.prefixCls;return q.jsx(ZKr,{className:o,style:z({padding:0},a),children:q.jsx(XKr,{links:r,prefixCls:l,copyright:n===!1?null:q.jsxs(i.Fragment,{children:[q.jsx(Aoe,{})," ",n]})})})},Hen=function e(t){return(t||[]).reduce(function(r,n){if(n.key&&r.push(n.key),n.children||n.routes){var a=r.concat(e(n.children||n.routes)||[]);return a}return r},[])},OW={techBlue:"#1677FF",daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function kce(e){return e&&OW[e]?OW[e]:e||""}function JKr(e){return e.map(function(t){var r=t.children||[],n=z({},t);if(!n.children&&n.routes&&(n.children=n.routes),!n.name||n.hideInMenu)return null;if(n&&n!==null&&n!==void 0&&n.children){if(!n.hideChildrenInMenu&&r.some(function(a){return a&&a.name&&!a.hideInMenu}))return z(z({},t),{},{children:JKr(r)});delete n.children}return delete n.routes,n}).filter(function(t){return t})}var r4={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1};const eYr={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},tYr=z({},eYr),rYr={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},nYr=z({},rYr),aYr={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},oYr=z({},aYr),iYr={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},lYr=z({},iYr),cYr={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},sYr=z({},cYr);var EW={"zh-CN":lYr,"zh-TW":sYr,"en-US":tYr,"it-IT":nYr,"ko-KR":oYr},kh=function(){if(!g0())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},uYr=function(){var t=kh();return EW[t]||EW["zh-CN"]},l$=function(t){var r=t.value,n=t.configType,a=t.onChange,o=t.list,l=t.prefixCls,c=t.hashId,s="".concat(l,"-block-checkbox"),u=i.useMemo(function(){var d=(o||[]).map(function(f){return q.jsx(vi,{title:f.title,children:q.jsxs("div",{className:ue(c,"".concat(s,"-item"),"".concat(s,"-item-").concat(f.key),"".concat(s,"-").concat(n,"-item")),onClick:function(){return a(f.key)},children:[q.jsx(C6,{className:"".concat(s,"-selectIcon ").concat(c).trim(),style:{display:r===f.key?"block":"none"}}),f!=null&&f.icon?q.jsx("div",{className:"".concat(s,"-icon ").concat(c).trim(),children:f.icon}):null]})},f.key)});return d},[r,o==null?void 0:o.length,a]);return q.jsx("div",{className:ue(s,c),children:u})},DT=function(t){var r=U.cloneElement(t.action,{disabled:t.disabled});return q.jsx(vi,{title:t.disabled?t.disabledReason:"",placement:"left",children:q.jsx(sp.Item,{actions:[r],children:q.jsx("span",{style:{opacity:t.disabled?.5:1},children:t.title})})})},dYr=function(t){var r=t.settings,n=t.prefixCls,a=t.changeSetting,o=t.hashId,l=LT(),c=r||r4,s=c.contentWidth,u=c.splitMenus,d=c.fixedHeader,f=c.layout,v=c.fixSiderbar;return q.jsx(sp,{className:"".concat(n,"-list ").concat(o).trim(),split:!1,dataSource:[{title:l({id:"app.setting.content-width",defaultMessage:"Content Width"}),action:q.jsxs(s1,{value:s||"Fixed",size:"small",className:"content-width ".concat(o).trim(),onSelect:function(m){a("contentWidth",m)},style:{width:80},children:[f==="side"?null:q.jsx(s1.Option,{value:"Fixed",children:l({id:"app.setting.content-width.fixed",defaultMessage:"Fixed"})}),q.jsx(s1.Option,{value:"Fluid",children:l({id:"app.setting.content-width.fluid",defaultMessage:"Fluid"})})]})},{title:l({id:"app.setting.fixedheader",defaultMessage:"Fixed Header"}),action:q.jsx(h0,{size:"small",className:"fixed-header",checked:!!d,onChange:function(m){a("fixedHeader",m)}})},{title:l({id:"app.setting.fixedsidebar",defaultMessage:"Fixed Sidebar"}),disabled:f==="top",disabledReason:l({id:"app.setting.fixedsidebar.hint",defaultMessage:"Works on Side Menu Layout"}),action:q.jsx(h0,{size:"small",className:"fix-siderbar",checked:!!v,onChange:function(m){return a("fixSiderbar",m)}})},{title:l({id:"app.setting.splitMenus"}),disabled:f!=="mix",action:q.jsx(h0,{size:"small",checked:!!u,className:"split-menus",onChange:function(m){a("splitMenus",m)}})}],renderItem:DT})},fYr=function(t){var r=t.settings,n=t.prefixCls,a=t.changeSetting,o=t.hashId,l=LT(),c=["header","footer","menu","menuHeader"];return q.jsx(sp,{className:"".concat(n,"-list ").concat(o).trim(),split:!1,renderItem:DT,dataSource:c.map(function(s){return{title:l({id:"app.setting.regionalsettings.".concat(s)}),action:q.jsx(h0,{size:"small",className:"regional-".concat(s," ").concat(o).trim(),checked:r["".concat(s,"Render")]||r["".concat(s,"Render")]===void 0,onChange:function(d){return a("".concat(s,"Render"),d===!0?void 0:!1)}})}})})},vYr=["color","check"],hYr=U.forwardRef(function(e,t){var r=e.color,n=e.check,a=at(e,vYr);return q.jsx("div",z(z({},a),{},{style:{backgroundColor:r},ref:t,children:n?q.jsx(C6,{}):""}))}),mYr=function(t){var r=t.value,n=t.colorList,a=t.onChange,o=t.prefixCls,l=t.formatMessage,c=t.hashId;if(!n||(n==null?void 0:n.length)<1)return null;var s="".concat(o,"-theme-color");return q.jsx("div",{className:"".concat(s," ").concat(c).trim(),children:n==null?void 0:n.map(function(u){var d=u.key,f=u.color,v=u.title;return d?q.jsx(vi,{title:v??l({id:"app.setting.themecolor.".concat(d)}),children:q.jsx(hYr,{className:"".concat(s,"-block ").concat(c).trim(),color:f,check:r===f,onClick:function(){return a&&a(f)}})},f):null})})};function gYr(){return q.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",viewBox:"0 0 104 104",children:[q.jsxs("defs",{children:[q.jsx("rect",{id:"path-1",width:"90",height:"72",x:"0",y:"0",rx:"10"}),q.jsxs("filter",{id:"filter-2",width:"152.2%",height:"165.3%",x:"-26.1%",y:"-27.1%",filterUnits:"objectBoundingBox",children:[q.jsx("feMorphology",{in:"SourceAlpha",radius:"0.25",result:"shadowSpreadOuter1"}),q.jsx("feOffset",{dy:"1",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),q.jsx("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),q.jsx("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),q.jsx("feMorphology",{in:"SourceAlpha",radius:"1",result:"shadowSpreadOuter2"}),q.jsx("feOffset",{dy:"2",in:"shadowSpreadOuter2",result:"shadowOffsetOuter2"}),q.jsx("feGaussianBlur",{in:"shadowOffsetOuter2",result:"shadowBlurOuter2",stdDeviation:"4"}),q.jsx("feColorMatrix",{in:"shadowBlurOuter2",result:"shadowMatrixOuter2",values:"0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0"}),q.jsx("feMorphology",{in:"SourceAlpha",radius:"2",result:"shadowSpreadOuter3"}),q.jsx("feOffset",{dy:"4",in:"shadowSpreadOuter3",result:"shadowOffsetOuter3"}),q.jsx("feGaussianBlur",{in:"shadowOffsetOuter3",result:"shadowBlurOuter3",stdDeviation:"8"}),q.jsx("feColorMatrix",{in:"shadowBlurOuter3",result:"shadowMatrixOuter3",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),q.jsxs("feMerge",{children:[q.jsx("feMergeNode",{in:"shadowMatrixOuter1"}),q.jsx("feMergeNode",{in:"shadowMatrixOuter2"}),q.jsx("feMergeNode",{in:"shadowMatrixOuter3"})]})]})]}),q.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[q.jsxs("g",{children:[q.jsx("use",{fill:"#000",filter:"url(#filter-2)",xlinkHref:"#path-1"}),q.jsx("use",{fill:"#F0F2F5",xlinkHref:"#path-1"})]}),q.jsx("path",{fill:"#FFF",d:"M25 15h65v47c0 5.523-4.477 10-10 10H25V15z"}),q.jsx("path",{stroke:"#E6EAF0",strokeLinecap:"square",d:"M0.5 15.5L90.5 15.5"}),q.jsx("rect",{width:"14",height:"3",x:"4",y:"26",fill:"#D7DDE6",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"4",y:"32",fill:"#D7DDE6",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"4",y:"42",fill:"#E6EAF0",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"4",y:"21",fill:"#E6EAF0",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"4",y:"53",fill:"#D7DDE6",rx:"1.5"}),q.jsx("rect",{width:"14",height:"3",x:"4",y:"47",fill:"#D7DDE6",rx:"1.5"}),q.jsx("path",{stroke:"#E6EAF0",strokeLinecap:"square",d:"M25.5 15.5L25.5 72.5"})]})]})}function pYr(){return q.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",viewBox:"0 0 104 104",children:[q.jsxs("defs",{children:[q.jsx("rect",{id:"path-1",width:"90",height:"72",x:"0",y:"0",rx:"10"}),q.jsxs("filter",{id:"filter-2",width:"152.2%",height:"165.3%",x:"-26.1%",y:"-27.1%",filterUnits:"objectBoundingBox",children:[q.jsx("feMorphology",{in:"SourceAlpha",radius:"0.25",result:"shadowSpreadOuter1"}),q.jsx("feOffset",{dy:"1",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),q.jsx("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),q.jsx("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),q.jsx("feMorphology",{in:"SourceAlpha",radius:"1",result:"shadowSpreadOuter2"}),q.jsx("feOffset",{dy:"2",in:"shadowSpreadOuter2",result:"shadowOffsetOuter2"}),q.jsx("feGaussianBlur",{in:"shadowOffsetOuter2",result:"shadowBlurOuter2",stdDeviation:"4"}),q.jsx("feColorMatrix",{in:"shadowBlurOuter2",result:"shadowMatrixOuter2",values:"0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0"}),q.jsx("feMorphology",{in:"SourceAlpha",radius:"2",result:"shadowSpreadOuter3"}),q.jsx("feOffset",{dy:"4",in:"shadowSpreadOuter3",result:"shadowOffsetOuter3"}),q.jsx("feGaussianBlur",{in:"shadowOffsetOuter3",result:"shadowBlurOuter3",stdDeviation:"8"}),q.jsx("feColorMatrix",{in:"shadowBlurOuter3",result:"shadowMatrixOuter3",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),q.jsxs("feMerge",{children:[q.jsx("feMergeNode",{in:"shadowMatrixOuter1"}),q.jsx("feMergeNode",{in:"shadowMatrixOuter2"}),q.jsx("feMergeNode",{in:"shadowMatrixOuter3"})]})]})]}),q.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[q.jsxs("g",{children:[q.jsx("use",{fill:"#000",filter:"url(#filter-2)",xlinkHref:"#path-1"}),q.jsx("use",{fill:"#F0F2F5",xlinkHref:"#path-1"})]}),q.jsx("path",{fill:"#FFF",d:"M26 0h55c5.523 0 10 4.477 10 10v8H26V0z"}),q.jsx("path",{fill:"#001529",d:"M10 0h19v72H10C4.477 72 0 67.523 0 62V10C0 4.477 4.477 0 10 0z"}),q.jsx("rect",{width:"14",height:"3",x:"5",y:"18",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),q.jsx("rect",{width:"14",height:"3",x:"5",y:"42",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"9",y:"24",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"9",y:"48",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"9",y:"36",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),q.jsx("rect",{width:"14",height:"3",x:"9",y:"30",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),q.jsx("rect",{width:"14",height:"3",x:"9",y:"54",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"})]})]})}var yYr=function(t){return Z(Z({},"".concat(t.componentCls,"-handle"),{position:"fixed",insetBlockStart:"240px",insetInlineEnd:"0px",zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:t.colorPrimary,borderEndStartRadius:t.borderRadiusLG,borderStartStartRadius:t.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"}),t.componentCls,{"&-content":{position:"relative",minHeight:"100%",color:t.colorText},"&-body-title":{marginBlock:t.marginXS,fontSize:"14px",lineHeight:"22px",color:t.colorTextHeading},"&-block-checkbox":{display:"flex",minHeight:42,gap:t.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:t.boxShadow,cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#fff","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-dark,&-side":{backgroundColor:t.colorBgElevated,"&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:t.colorBgContainer}},"&-top":{backgroundColor:t.colorBgElevated,"&::before":{backgroundColor:"transparent"},"&::after":{backgroundColor:"#001529"}},"&-mix":{backgroundColor:t.colorBgElevated,"&::before":{backgroundColor:t.colorBgContainer},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:t.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:t.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",overflow:"hidden","& &-block":{float:"left",width:"20px",height:"20px",marginBlockStart:8,marginInlineEnd:8,color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":Z({},"li".concat(t.antCls,"-list-item"),{paddingInline:0,paddingBlock:8})})};function bYr(e){return Da("ProLayoutSettingDrawer",function(t){var r=z(z({},t),{},{componentCls:".".concat(e)});return[yYr(r)]})}var Od=function(t){var r=t.children,n=t.hashId,a=t.prefixCls,o=t.title;return q.jsxs("div",{style:{marginBlockEnd:12},children:[q.jsx("h3",{className:"".concat(a,"-body-title ").concat(n).trim(),children:o}),r]})},SYr=function(t){var r={};return Object.keys(t).forEach(function(n){t[n]!==r4[n]&&n!=="collapse"?r[n]=t[n]:r[n]=void 0,n.includes("Render")&&(r[n]=t[n]===!1?!1:void 0)}),r.menu=void 0,r},LT=function(){var t=function(n){var a=n.id,o=uYr();return o[a]};return t},$Yr=function(t,r,n){if(g0()){var a={};Object.keys(t).forEach(function(l){if(r4[l]||r4[l]===void 0){if(l==="colorPrimary"){a[l]=kce(t[l]);return}a[l]=t[l]}});var o=vT({},r,a);delete o.menu,delete o.title,delete o.iconfontUrl,n==null||n(o)}},RW=function(t,r){return g0()?z(z(z({},r4),r||{}),t):r4},wYr=function(t){return JSON.stringify(br(z(z({},t),{},{colorPrimary:t.colorPrimary}),["colorWeak"]),null,2)},CYr=function(t){var r=t.defaultSettings,n=r===void 0?void 0:r,a=t.settings,o=a===void 0?void 0:a,l=t.hideHintAlert,c=t.hideCopyButton,s=t.colorList,u=s===void 0?[{key:"techBlue",color:"#1677FF"},{key:"daybreak",color:"#1890ff"},{key:"dust",color:"#F5222D"},{key:"volcano",color:"#FA541C"},{key:"sunset",color:"#FAAD14"},{key:"cyan",color:"#13C2C2"},{key:"green",color:"#52C41A"},{key:"geekblue",color:"#2F54EB"},{key:"purple",color:"#722ED1"}]:s,d=t.getContainer,f=t.onSettingChange,v=t.enableDarkTheme,h=t.prefixCls,m=h===void 0?"ant-pro":h,p=t.pathname,g=p===void 0?g0()?window.location.pathname:"":p,b=t.disableUrlParams,y=b===void 0?!0:b,S=t.themeOnly,$=t.drawerProps,w=i.useRef(!0),C=qt(!1,{value:t.collapse,onChange:t.onCollapseChange}),E=oe(C,2),O=E[0],R=E[1],M=i.useState(kh()),_=oe(M,2),B=_[0],D=_[1],H=ple({},{disabled:y}),V=oe(H,2),T=V[0],P=V[1],k=qt(function(){return RW(T,o||n)},{value:o,onChange:f}),A=oe(k,2),F=A[0],j=A[1],W=F||{},K=W.navTheme,Y=W.colorPrimary,X=W.siderMenuType,te=W.layout,Q=W.colorWeak;i.useEffect(function(){var me=function(){B!==kh()&&D(kh())};return g0()?($Yr(RW(T,o),F,j),window.document.addEventListener("languagechange",me,{passive:!0}),function(){return window.document.removeEventListener("languagechange",me)}):function(){return null}},[]),i.useEffect(function(){bp(Kc,"5.0.0")<0&&er.config({theme:{primaryColor:F.colorPrimary}})},[F.colorPrimary,F.navTheme]);var J=function(le,pe){var ge={};if(ge[le]=pe,le==="layout"&&(ge.contentWidth=pe==="top"?"Fixed":"Fluid"),le==="layout"&&pe!=="mix"&&(ge.splitMenus=!1),le==="layout"&&pe==="mix"&&(ge.navTheme="light"),le==="colorWeak"&&pe===!0){var $e=document.querySelector("body");$e&&($e.dataset.prosettingdrawer=$e.style.filter,$e.style.filter="invert(80%)")}if(le==="colorWeak"&&pe===!1){var we=document.querySelector("body");we&&(we.style.filter=we.dataset.prosettingdrawer||"none",delete we.dataset.prosettingdrawer)}delete ge.menu,delete ge.title,delete ge.iconfontUrl,delete ge.logo,delete ge.pwa,j(z(z({},F),ge))},ae=LT();i.useEffect(function(){if(g0()&&!y){if(w.current){w.current=!1;return}var me=new URLSearchParams(window.location.search),le=Object.fromEntries(me.entries()),pe=SYr(z(z({},le),F));delete pe.logo,delete pe.menu,delete pe.title,delete pe.iconfontUrl,delete pe.pwa,P(pe)}},[P,F,T,g,y]);var ne="".concat(m,"-setting-drawer"),ie=bYr(ne),de=ie.wrapSSR,se=ie.hashId,ve=uT(O);return de(q.jsxs(q.Fragment,{children:[q.jsx("div",{className:"".concat(ne,"-handle ").concat(se).trim(),onClick:function(){return R(!O)},style:{width:48,height:48},children:O?q.jsx(bc,{style:{color:"#fff",fontSize:20}}):q.jsx(qoe,{style:{color:"#fff",fontSize:20}})}),q.jsx(Cdt,z(z(z({},ve),{},{width:300,onClose:function(){return R(!1)},closable:!1,placement:"right",getContainer:d,style:{zIndex:999}},$),{},{children:q.jsxs("div",{className:"".concat(ne,"-drawer-content ").concat(se).trim(),children:[q.jsx(Od,{title:ae({id:"app.setting.pagestyle",defaultMessage:"Page style setting"}),hashId:se,prefixCls:ne,children:q.jsx(l$,{hashId:se,prefixCls:ne,list:[{key:"light",title:ae({id:"app.setting.pagestyle.light",defaultMessage:"亮色菜单风格"})},{key:"realDark",title:ae({id:"app.setting.pagestyle.realdark",defaultMessage:"暗色菜单风格"})}].filter(function(me){return!(me.key==="dark"&&F.layout==="mix"||me.key==="realDark"&&!v)}),value:K,configType:"theme",onChange:function(le){return J("navTheme",le)}},"navTheme")}),u!==!1&&q.jsx(Od,{hashId:se,title:ae({id:"app.setting.themecolor",defaultMessage:"Theme color"}),prefixCls:ne,children:q.jsx(mYr,{hashId:se,prefixCls:ne,colorList:u,value:kce(Y),formatMessage:ae,onChange:function(le){return J("colorPrimary",le)}})}),!S&&q.jsxs(q.Fragment,{children:[q.jsx(af,{}),q.jsx(Od,{hashId:se,prefixCls:ne,title:ae({id:"app.setting.navigationmode"}),children:q.jsx(l$,{prefixCls:ne,value:te,hashId:se,configType:"layout",list:[{key:"side",title:ae({id:"app.setting.sidemenu"})},{key:"top",title:ae({id:"app.setting.topmenu"})},{key:"mix",title:ae({id:"app.setting.mixmenu"})}],onChange:function(le){return J("layout",le)}},"layout")}),F.layout=="side"||F.layout=="mix"?q.jsx(Od,{hashId:se,prefixCls:ne,title:ae({id:"app.setting.sidermenutype"}),children:q.jsx(l$,{prefixCls:ne,value:X,hashId:se,configType:"siderMenuType",list:[{key:"sub",icon:q.jsx(pYr,{}),title:ae({id:"app.setting.sidermenutype-sub"})},{key:"group",icon:q.jsx(gYr,{}),title:ae({id:"app.setting.sidermenutype-group"})}],onChange:function(le){return J("siderMenuType",le)}},"siderMenuType")}):null,q.jsx(dYr,{prefixCls:ne,hashId:se,settings:F,changeSetting:J}),q.jsx(af,{}),q.jsx(Od,{hashId:se,prefixCls:ne,title:ae({id:"app.setting.regionalsettings"}),children:q.jsx(fYr,{hashId:se,prefixCls:ne,settings:F,changeSetting:J})}),q.jsx(af,{}),q.jsx(Od,{hashId:se,prefixCls:ne,title:ae({id:"app.setting.othersettings"}),children:q.jsx(sp,{className:"".concat(ne,"-list ").concat(se).trim(),split:!1,size:"small",renderItem:DT,dataSource:[{title:ae({id:"app.setting.weakmode"}),action:q.jsx(h0,{size:"small",className:"color-weak",checked:!!Q,onChange:function(le){J("colorWeak",le)}})}]})}),l&&c?null:q.jsx(af,{}),l?null:q.jsx(GGe,{type:"warning",message:ae({id:"app.setting.production.hint"}),icon:q.jsx(Yoe,{}),showIcon:!0,style:{marginBlockEnd:16}}),c?null:q.jsx(Bi,{block:!0,icon:q.jsx(fp,{}),style:{marginBlockEnd:24},onClick:ra($r().mark(function me(){return $r().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.prev=0,pe.next=3,navigator.clipboard.writeText(wYr(F));case 3:Ns.success(ae({id:"app.setting.copyinfo"})),pe.next=8;break;case 6:pe.prev=6,pe.t0=pe.catch(0);case 8:case"end":return pe.stop()}},me,null,[[0,6]])})),children:ae({id:"app.setting.copy"})})]})]})}))]}))},yo={};function sO(e){"@babel/helpers - typeof";return sO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sO(e)}Object.defineProperty(yo,"__esModule",{value:!0});var Dce=yo.pathToRegexp=yo.tokensToRegexp=yo.regexpToFunction=yo.match=yo.tokensToFunction=yo.compile=yo.parse=void 0;function xYr(e){for(var t=[],r=0;r=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||l===95){a+=e[o++];continue}break}if(!a)throw new TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:a}),r=o;continue}if(n==="("){var c=1,s="",o=r+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '+o);for(;o-1:$===void 0;a||(h+="(?:"+v+"(?="+f+"))?"),w||(h+="(?="+v+"|"+f+")")}return new RegExp(h,NT(r))}yo.tokensToRegexp=Nce;function HT(e,t,r){return e instanceof RegExp?RYr(e,t):Array.isArray(e)?MYr(e,t,r):IYr(e,t,r)}Dce=yo.pathToRegexp=HT;function tc(e,t){return t>>>e|t<<32-e}function TYr(e,t,r){return e&t^~e&r}function PYr(e,t,r){return e&t^e&r^t&r}function _Yr(e){return tc(2,e)^tc(13,e)^tc(22,e)}function zYr(e){return tc(6,e)^tc(11,e)^tc(25,e)}function FYr(e){return tc(7,e)^tc(18,e)^e>>>3}function kYr(e){return tc(17,e)^tc(19,e)^e>>>10}function DYr(e,t){return e[t&15]+=kYr(e[t+14&15])+e[t+9&15]+FYr(e[t+1&15])}var LYr=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],bn,to,fa,AYr="0123456789abcdef";function MW(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}function NYr(){bn=new Array(8),to=new Array(2),fa=new Array(64),to[0]=to[1]=0,bn[0]=1779033703,bn[1]=3144134277,bn[2]=1013904242,bn[3]=2773480762,bn[4]=1359893119,bn[5]=2600822924,bn[6]=528734635,bn[7]=1541459225}function uO(){var e,t,r,n,a,o,l,c,s,u,d=new Array(16);e=bn[0],t=bn[1],r=bn[2],n=bn[3],a=bn[4],o=bn[5],l=bn[6],c=bn[7];for(var f=0;f<16;f++)d[f]=fa[(f<<2)+3]|fa[(f<<2)+2]<<8|fa[(f<<2)+1]<<16|fa[f<<2]<<24;for(var v=0;v<64;v++)s=c+zYr(a)+TYr(a,o,l)+LYr[v],v<16?s+=d[v]:s+=DYr(d,v),u=_Yr(e)+PYr(e,t,r),c=l,l=o,o=a,a=MW(n,s),n=r,r=t,t=e,e=MW(s,u);bn[0]+=e,bn[1]+=t,bn[2]+=r,bn[3]+=n,bn[4]+=a,bn[5]+=o,bn[6]+=l,bn[7]+=c}function HYr(e,t){var r,n,a=0;n=to[0]>>3&63;var o=t&63;for((to[0]+=t<<3)>29,r=0;r+63>3&63;if(fa[e++]=128,e<=56)for(var t=e;t<56;t++)fa[t]=0;else{for(var r=e;r<64;r++)fa[r]=0;uO();for(var n=0;n<56;n++)fa[n]=0}fa[56]=to[1]>>>24&255,fa[57]=to[1]>>>16&255,fa[58]=to[1]>>>8&255,fa[59]=to[1]&255,fa[60]=to[0]>>>24&255,fa[61]=to[0]>>>16&255,fa[62]=to[0]>>>8&255,fa[63]=to[0]&255,uO()}function jYr(){for(var e=new String,t=0;t<8;t++)for(var r=28;r>=0;r-=4)e+=AYr.charAt(bn[t]>>>r&15);return e}function VYr(e){return NYr(),HYr(e,e.length),BYr(),jYr()}function dO(e){"@babel/helpers - typeof";return dO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dO(e)}var WYr=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function UYr(e,t){return GYr(e)||YYr(e,t)||BT(e,t)||KYr()}function KYr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. + `),W.createElement("div",{style:f.white,className:"saturation-white"},W.createElement("div",{style:f.black,className:"saturation-black"}),W.createElement("div",{style:f.pointer},this.props.pointer?W.createElement(this.props.pointer,this.props):W.createElement("div",{style:f.circle}))))}}]),r}(i.PureComponent||i.Component),ZVr=Gle,QVr=Yle,JVr=Rle,ejr=$i;function tjr(e,t){var r=ejr(e)?ZVr:QVr;return r(e,JVr(t))}var rjr=tjr,njr=rjr;const ajr=en(njr);function wg(e){"@babel/helpers - typeof";return wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wg(e)}var ojr=/^\s+/,ijr=/\s+$/;function Qt(e,t){if(e=e||"",t=t||{},e instanceof Qt)return e;if(!(this instanceof Qt))return new Qt(e,t);var r=ljr(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}Qt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,a,o,l,c;return r=t.r/255,n=t.g/255,a=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),a<=.03928?c=a/12.92:c=Math.pow((a+.055)/1.055,2.4),.2126*o+.7152*l+.0722*c},setAlpha:function(t){return this._a=mce(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=rW(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=rW(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=tW(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=tW(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return nW(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return djr(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Fn(this._r,255)*100)+"%",g:Math.round(Fn(this._g,255)*100)+"%",b:Math.round(Fn(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Fn(this._r,255)*100)+"%, "+Math.round(Fn(this._g,255)*100)+"%, "+Math.round(Fn(this._b,255)*100)+"%)":"rgba("+Math.round(Fn(this._r,255)*100)+"%, "+Math.round(Fn(this._g,255)*100)+"%, "+Math.round(Fn(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Cjr[nW(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+aW(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var o=Qt(t);n="#"+aW(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,a=this._a<1&&this._a>=0,o=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return Qt(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(mjr,arguments)},brighten:function(){return this._applyModification(gjr,arguments)},darken:function(){return this._applyModification(pjr,arguments)},desaturate:function(){return this._applyModification(fjr,arguments)},saturate:function(){return this._applyModification(vjr,arguments)},greyscale:function(){return this._applyModification(hjr,arguments)},spin:function(){return this._applyModification(yjr,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination($jr,arguments)},complement:function(){return this._applyCombination(bjr,arguments)},monochromatic:function(){return this._applyCombination(wjr,arguments)},splitcomplement:function(){return this._applyCombination(Sjr,arguments)},triad:function(){return this._applyCombination(oW,[3])},tetrad:function(){return this._applyCombination(oW,[4])}};Qt.fromRatio=function(e,t){if(wg(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=cf(e[n]));e=r}return Qt(e,t)};function ljr(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,o=null,l=!1,c=!1;return typeof e=="string"&&(e=Rjr(e)),wg(e)=="object"&&(_c(e.r)&&_c(e.g)&&_c(e.b)?(t=cjr(e.r,e.g,e.b),l=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_c(e.h)&&_c(e.s)&&_c(e.v)?(n=cf(e.s),a=cf(e.v),t=ujr(e.h,n,a),l=!0,c="hsv"):_c(e.h)&&_c(e.s)&&_c(e.l)&&(n=cf(e.s),o=cf(e.l),t=sjr(e.h,n,o),l=!0,c="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=mce(r),{ok:l,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function cjr(e,t,r){return{r:Fn(e,255)*255,g:Fn(t,255)*255,b:Fn(r,255)*255}}function tW(e,t,r){e=Fn(e,255),t=Fn(t,255),r=Fn(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o,l,c=(n+a)/2;if(n==a)o=l=0;else{var s=n-a;switch(l=c>.5?s/(2-n-a):s/(n+a),n){case e:o=(t-r)/s+(t1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(t===0)n=a=o=r;else{var c=r<.5?r*(1+t):r+t-r*t,s=2*r-c;n=l(s,c,e+1/3),a=l(s,c,e),o=l(s,c,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function rW(e,t,r){e=Fn(e,255),t=Fn(t,255),r=Fn(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o,l,c=n,s=n-a;if(l=n===0?0:s/n,n==a)o=0;else{switch(n){case e:o=(t-r)/s+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(Qt(n));return o}function wjr(e,t){t=t||6;for(var r=Qt(e).toHsv(),n=r.h,a=r.s,o=r.v,l=[],c=1/t;t--;)l.push(Qt({h:n,s:a,v:o})),o=(o+c)%1;return l}Qt.mix=function(e,t,r){r=r===0?0:r||50;var n=Qt(e).toRgb(),a=Qt(t).toRgb(),o=r/100,l={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return Qt(l)};Qt.readability=function(e,t){var r=Qt(e),n=Qt(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};Qt.isReadable=function(e,t,r){var n=Qt.readability(e,t),a,o;switch(o=!1,a=Ijr(r),a.level+a.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o};Qt.mostReadable=function(e,t,r){var n=null,a=0,o,l,c,s;r=r||{},l=r.includeFallbackColors,c=r.level,s=r.size;for(var u=0;ua&&(a=o,n=Qt(t[u]));return Qt.isReadable(e,n,{level:c,size:s})||!l?n:(r.includeFallbackColors=!1,Qt.mostReadable(e,["#fff","#000"],r))};var rO=Qt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Cjr=Qt.hexNames=xjr(rO);function xjr(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function mce(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Fn(e,t){Ojr(e)&&(e="100%");var r=Ejr(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Ap(e){return Math.min(1,Math.max(0,e))}function ni(e){return parseInt(e,16)}function Ojr(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Ejr(e){return typeof e=="string"&&e.indexOf("%")!=-1}function sl(e){return e.length==1?"0"+e:""+e}function cf(e){return e<=1&&(e=e*100+"%"),e}function gce(e){return Math.round(parseFloat(e)*255).toString(16)}function iW(e){return ni(e)/255}var Xi=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function _c(e){return!!Xi.CSS_UNIT.exec(e)}function Rjr(e){e=e.replace(ojr,"").replace(ijr,"").toLowerCase();var t=!1;if(rO[e])e=rO[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Xi.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Xi.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Xi.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Xi.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Xi.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Xi.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Xi.hex8.exec(e))?{r:ni(r[1]),g:ni(r[2]),b:ni(r[3]),a:iW(r[4]),format:t?"name":"hex8"}:(r=Xi.hex6.exec(e))?{r:ni(r[1]),g:ni(r[2]),b:ni(r[3]),format:t?"name":"hex"}:(r=Xi.hex4.exec(e))?{r:ni(r[1]+""+r[1]),g:ni(r[2]+""+r[2]),b:ni(r[3]+""+r[3]),a:iW(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Xi.hex3.exec(e))?{r:ni(r[1]+""+r[1]),g:ni(r[2]+""+r[2]),b:ni(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function Ijr(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var lW=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return ajr(r,function(o){if(t[o]&&(n+=1,isNaN(t[o])||(a+=1),o==="s"||o==="l")){var l=/^\d+%$/;l.test(t[o])&&(a+=1)}}),n===a?t:!1},kv=function(t,r){var n=t.hex?Qt(t.hex):Qt(t),a=n.toHsl(),o=n.toHsv(),l=n.toRgb(),c=n.toHex();a.s===0&&(a.h=r||0,o.h=r||0);var s=c==="000000"&&l.a===0;return{hsl:a,hex:s?"transparent":"#".concat(c),rgb:l,hsv:o,oldHue:t.h||r||a.h,source:t.source}},Mjr=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&Qt(t).isValid()};function Q0(e){"@babel/helpers - typeof";return Q0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q0(e)}function nO(){return nO=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cg(e){return Cg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cg(e)}var Njr=function(t){var r=function(n){Fjr(o,n);var a=kjr(o);function o(l){var c;return Pjr(this,o),c=a.call(this),c.handleChange=function(s,u){var d=lW(s);if(d){var f=kv(s,s.h||c.state.oldHue);c.setState(f),c.props.onChangeComplete&&c.debounce(c.props.onChangeComplete,f,u),c.props.onChange&&c.props.onChange(f,u)}},c.handleSwatchHover=function(s,u){var d=lW(s);if(d){var f=kv(s,s.h||c.state.oldHue);c.props.onSwatchHover&&c.props.onSwatchHover(f,u)}},c.state=L2({},kv(l.color,0)),c.debounce=vce(function(s,u,d){s(u,d)},100),c}return _jr(o,[{key:"render",value:function(){var c={};return this.props.onSwatchHover&&(c.onSwatchHover=this.handleSwatchHover),W.createElement(t,nO({},this.props,this.state,{onChange:this.handleChange},c))}}],[{key:"getDerivedStateFromProps",value:function(c,s){return L2({},kv(c.color,s.oldHue))}}]),o}(i.PureComponent||i.Component);return r.propTypes=L2({},t.propTypes),r.defaultProps=L2(L2({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),r};function J0(e){"@babel/helpers - typeof";return J0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J0(e)}function Hjr(e,t,r){return t=yce(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bjr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uW(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xg(e){return xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xg(e)}var qjr=1,bce=38,Xjr=40,Zjr=[bce,Xjr],Qjr=function(t){return Zjr.indexOf(t)>-1},Jjr=function(t){return Number(String(t).replace(/%/g,""))},eWr=1,A2=function(e){Wjr(r,e);var t=Ujr(r);function r(n){var a;return Bjr(this,r),a=t.call(this),a.handleBlur=function(){a.state.blurValue&&a.setState({value:a.state.blurValue,blurValue:null})},a.handleChange=function(o){a.setUpdatedValue(o.target.value,o)},a.handleKeyDown=function(o){var l=Jjr(o.target.value);if(!isNaN(l)&&Qjr(o.keyCode)){var c=a.getArrowOffset(),s=o.keyCode===bce?l+c:l-c;a.setUpdatedValue(s,o)}},a.handleDrag=function(o){if(a.props.dragLabel){var l=Math.round(a.props.value+o.movementX);l>=0&&l<=a.props.dragMax&&a.props.onChange&&a.props.onChange(a.getValueObjectWithLabel(l),o)}},a.handleMouseDown=function(o){a.props.dragLabel&&(o.preventDefault(),a.handleDrag(o),window.addEventListener("mousemove",a.handleDrag),window.addEventListener("mouseup",a.handleMouseUp))},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleDrag),window.removeEventListener("mouseup",a.handleMouseUp)},a.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},a.inputId="rc-editable-input-".concat(eWr++),a}return Vjr(r,[{key:"componentDidUpdate",value:function(a,o){this.props.value!==this.state.value&&(a.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(a){return Hjr({},this.props.label,a)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||qjr}},{key:"setUpdatedValue",value:function(a,o){var l=this.props.label?this.getValueObjectWithLabel(a):a;this.props.onChange&&this.props.onChange(l,o),this.setState({value:a})}},{key:"render",value:function(){var a=this,o=zu({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return W.createElement("div",{style:o.wrap},W.createElement("input",{id:this.inputId,style:o.input,ref:function(c){return a.input=c},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?W.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),r}(i.PureComponent||i.Component);function e4(e){"@babel/helpers - typeof";return e4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e4(e)}function iO(){return iO=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Og(e){return Og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Og(e)}var uWr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){oWr(o,n);var a=iWr(o);function o(){var l;tWr(this,o);for(var c=arguments.length,s=new Array(c),u=0;u100&&(d.a=100),d.a/=100,r==null||r({h:a==null?void 0:a.h,s:a==null?void 0:a.s,l:a==null?void 0:a.l,a:d.a,source:"rgb"},f))};return W.createElement("div",{style:c.fields,className:"flexbox-fix"},W.createElement("div",{style:c.double},W.createElement(A2,{style:{input:c.input,label:c.label},label:"hex",value:o==null?void 0:o.replace("#",""),onChange:s})),W.createElement("div",{style:c.single},W.createElement(A2,{style:{input:c.input,label:c.label},label:"r",value:n==null?void 0:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),W.createElement("div",{style:c.single},W.createElement(A2,{style:{input:c.input,label:c.label},label:"g",value:n==null?void 0:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),W.createElement("div",{style:c.single},W.createElement(A2,{style:{input:c.input,label:c.label},label:"b",value:n==null?void 0:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),W.createElement("div",{style:c.alpha},W.createElement(A2,{style:{input:c.input,label:c.label},label:"a",value:Math.round(((n==null?void 0:n.a)||0)*100),onChange:s,dragLabel:"true",dragMax:"100"})))};function R3(e){"@babel/helpers - typeof";return R3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R3(e)}function hW(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function mW(e){for(var t=1;t-1}function PWr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&$ce()?I1t:MWr}var _Wr=function(t,r){var n=t.text,a=t.mode,o=t.render,l=t.renderFormItem,c=t.fieldProps,s=t.old,u=i.useContext(er.ConfigContext),d=u.getPrefixCls,f=W.useMemo(function(){return PWr(s)},[s]),v=d("pro-field-color-picker"),h=i.useMemo(function(){return s?"":ue(Z({},v,$ce()))},[v,s]);if(a==="read"){var m=q.jsx(f,{value:n,mode:"read",ref:r,className:h,open:!1});return o?o(n,z({mode:a},c),m):m}if(a==="edit"||a==="update"){var p=z({display:"table-cell"},c.style),g=q.jsx(f,z(z({ref:r,presets:[TWr]},c),{},{style:p,className:h}));return l?l(n,z(z({mode:a},c),{},{style:p}),g):g}return null};const zWr=W.forwardRef(_Wr);fr.extend(sM);var FWr=function(t,r){return t?typeof r=="function"?r(fr(t)):fr(t).format((Array.isArray(r)?r[0]:r)||"YYYY-MM-DD"):"-"},kWr=function(t,r){var n=t.text,a=t.mode,o=t.format,l=t.label,c=t.light,s=t.render,u=t.renderFormItem,d=t.plain,f=t.showTime,v=t.fieldProps,h=t.picker,m=t.bordered,p=t.lightLabel,g=Pn(),b=i.useState(!1),y=oe(b,2),S=y[0],$=y[1];if(a==="read"){var w=FWr(n,v.format||o);return s?s(n,z({mode:a},v),q.jsx(q.Fragment,{children:w})):q.jsx(q.Fragment,{children:w})}if(a==="edit"||a==="update"){var C,E=v.disabled,O=v.value,R=v.placeholder,I=R===void 0?g.getMessage("tableForm.selectPlaceholder","请选择"):R,_=D6(O);return c?C=q.jsx(gs,{label:l,onClick:function(){var D;v==null||(D=v.onOpenChange)===null||D===void 0||D.call(v,!0),$(!0)},style:_?{paddingInlineEnd:0}:void 0,disabled:E,value:_||S?q.jsx(R1,z(z(z({picker:h,showTime:f,format:o,ref:r},v),{},{value:_,onOpenChange:function(D){var H;$(D),v==null||(H=v.onOpenChange)===null||H===void 0||H.call(v,D)}},hi(!1)),{},{open:S})):void 0,allowClear:!1,downIcon:_||S?!1:void 0,bordered:m,ref:p}):C=q.jsx(R1,z(z(z({picker:h,showTime:f,format:o,placeholder:I},hi(d===void 0?!0:!d)),{},{ref:r},v),{},{value:_})),u?u(n,z({mode:a},v),C):C}return null};const Cd=W.forwardRef(kWr);var DWr=function(t,r){var n=t.text,a=t.mode,o=t.render,l=t.placeholder,c=t.renderFormItem,s=t.fieldProps,u=Pn(),d=l||u.getMessage("tableForm.inputPlaceholder","请输入"),f=i.useCallback(function(b){var y=b??void 0;return!s.stringMode&&typeof y=="string"&&(y=Number(y)),typeof y=="number"&&!T1(y)&&!T1(s.precision)&&(y=Number(y.toFixed(s.precision))),y},[s]);if(a==="read"){var v,h={};s!=null&&s.precision&&(h={minimumFractionDigits:Number(s.precision),maximumFractionDigits:Number(s.precision)});var m=new Intl.NumberFormat(void 0,z(z({},h),(s==null?void 0:s.intlProps)||{})).format(Number(n)),p=s!=null&&s.stringMode?q.jsx("span",{children:n}):q.jsx("span",{ref:r,children:(s==null||(v=s.formatter)===null||v===void 0?void 0:v.call(s,m))||m});return o?o(n,z({mode:a},s),p):p}if(a==="edit"||a==="update"){var g=q.jsx($u,z(z({ref:r,min:0,placeholder:d},br(s,["onChange","onBlur"])),{},{onChange:function(y){var S;return s==null||(S=s.onChange)===null||S===void 0?void 0:S.call(s,f(y))},onBlur:function(y){var S;return s==null||(S=s.onBlur)===null||S===void 0?void 0:S.call(s,f(y.target.value))}}));return c?c(n,z({mode:a},s),g):g}return null};const LWr=W.forwardRef(DWr);var AWr=function(t,r){var n=t.text,a=t.mode,o=t.render,l=t.placeholder,c=t.renderFormItem,s=t.fieldProps,u=t.separator,d=u===void 0?"~":u,f=t.separatorWidth,v=f===void 0?30:f,h=s.value,m=s.defaultValue,p=s.onChange,g=s.id,b=Pn(),y=uc.useToken(),S=y.token,$=qt(function(){return m},{value:h,onChange:p}),w=oe($,2),C=w[0],E=w[1];if(a==="read"){var O=function(k){var A,F=new Intl.NumberFormat(void 0,z({minimumSignificantDigits:2},(s==null?void 0:s.intlProps)||{})).format(Number(k));return(s==null||(A=s.formatter)===null||A===void 0?void 0:A.call(s,F))||F},R=q.jsxs("span",{ref:r,children:[O(n[0])," ",d," ",O(n[1])]});return o?o(n,z({mode:a},s),R):R}if(a==="edit"||a==="update"){var I=function(){if(Array.isArray(C)){var k=oe(C,2),A=k[0],F=k[1];typeof A=="number"&&typeof F=="number"&&A>F?E([F,A]):A===void 0&&F===void 0&&E(void 0)}},_=function(k,A){var F=Ve(C||[]);F[k]=A===null?void 0:A,E(F)},B=(s==null?void 0:s.placeholder)||l||[b.getMessage("tableForm.inputPlaceholder","请输入"),b.getMessage("tableForm.inputPlaceholder","请输入")],D=function(k){return Array.isArray(B)?B[k]:B},H=U0.Compact||as.Group,j=U0.Compact?{}:{compact:!0},T=q.jsxs(H,z(z({},j),{},{onBlur:I,children:[q.jsx($u,z(z({},s),{},{placeholder:D(0),id:g??"".concat(g,"-0"),style:{width:"calc((100% - ".concat(v,"px) / 2)")},value:C==null?void 0:C[0],defaultValue:m==null?void 0:m[0],onChange:function(k){return _(0,k)}})),q.jsx(as,{style:{width:v,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:S==null?void 0:S.colorBgContainer},placeholder:d,disabled:!0}),q.jsx($u,z(z({},s),{},{placeholder:D(1),id:g??"".concat(g,"-1"),style:{width:"calc((100% - ".concat(v,"px) / 2)"),borderInlineStart:0},value:C==null?void 0:C[1],defaultValue:m==null?void 0:m[1],onChange:function(k){return _(1,k)}}))]}));return c?c(n,z({mode:a},s),T):T}return null};const NWr=W.forwardRef(AWr);var wce={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(an,function(){return function(r,n,a){r=r||{};var o=n.prototype,l={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(u,d,f,v){return o.fromToBase(u,d,f,v)}a.en.relativeTime=l,o.fromToBase=function(u,d,f,v,h){for(var m,p,g,b=f.$locale().relativeTime||l,y=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],S=y.length,$=0;$0,C<=w.r||!w.r){C<=1&&$>0&&(w=y[$-1]);var E=b[w.l];h&&(C=h(""+C)),p=typeof E=="string"?E.replace("%d",C):E(C,d,w.l,g);break}}if(d)return p;var O=g?b.future:b.past;return typeof O=="function"?O(p):O.replace("%s",p)},o.to=function(u,d){return c(u,d,this,!0)},o.from=function(u,d){return c(u,d,this)};var s=function(u){return u.$u?a.utc():a()};o.toNow=function(u){return this.to(s(this),u)},o.fromNow=function(u){return this.from(s(this),u)}}})})(wce);var HWr=wce.exports;const BWr=en(HWr);fr.extend(BWr);var VWr=function(t,r){var n=t.text,a=t.mode,o=t.plain,l=t.render,c=t.renderFormItem,s=t.format,u=t.fieldProps,d=Pn();if(a==="read"){var f=q.jsx(vi,{title:fr(n).format((u==null?void 0:u.format)||s||"YYYY-MM-DD HH:mm:ss"),children:fr(n).fromNow()});return l?l(n,z({mode:a},u),q.jsx(q.Fragment,{children:f})):q.jsx(q.Fragment,{children:f})}if(a==="edit"||a==="update"){var v=d.getMessage("tableForm.selectPlaceholder","请选择"),h=D6(u.value),m=q.jsx(R1,z(z(z({ref:r,placeholder:v,showTime:!0},hi(o===void 0?!0:!o)),u),{},{value:h}));return c?c(n,z({mode:a},u),m):m}return null};const jWr=W.forwardRef(VWr);var WWr=W.forwardRef(function(e,t){var r=e.text,n=e.mode,a=e.render,o=e.renderFormItem,l=e.fieldProps,c=e.placeholder,s=e.width,u=Pn(),d=c||u.getMessage("tableForm.inputPlaceholder","请输入");if(n==="read"){var f=q.jsx(E4t,z({ref:t,width:s||32,src:r},l));return a?a(r,z({mode:n},l),f):f}if(n==="edit"||n==="update"){var v=q.jsx(as,z({ref:t,placeholder:d},l));return o?o(r,z({mode:n},l),v):v}return null});const Cce=WWr;var UWr=function(t,r){var n=t.border,a=n===void 0?!1:n,o=t.children,l=i.useContext(er.ConfigContext),c=l.getPrefixCls,s=c("pro-field-index-column"),u=Da("IndexColumn",function(){return Z({},".".concat(s),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),d=u.wrapSSR,f=u.hashId;return d(q.jsx("div",{ref:r,className:ue(s,f,Z(Z({},"".concat(s,"-border"),a),"top-three",o>3)),children:o}))};const pW=W.forwardRef(UWr);var KWr=["contentRender","numberFormatOptions","numberPopoverRender","open"],YWr=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],xce=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),GWr={style:"currency",currency:"USD"},qWr={style:"currency",currency:"RUB"},XWr={style:"currency",currency:"RSD"},ZWr={style:"currency",currency:"MYR"},QWr={style:"currency",currency:"BRL"},JWr={default:xce,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":GWr,"ru-RU":qWr,"ms-MY":ZWr,"sr-RS":XWr,"pt-BR":QWr},yW=function(t,r,n,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",l=r==null?void 0:r.toString().replaceAll(",","");if(typeof l=="string"){var c=Number(l);if(Number.isNaN(c))return l;l=c}if(!l&&l!==0)return"";var s=!1;try{s=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var u=new Intl.NumberFormat(s&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",z(z({},JWr[t||"zh-Hans-CN"]||xce),{},{maximumFractionDigits:n},a)),d=u.format(l),f=function(b){var y=b.match(/\d+/);if(y){var S=y[0];return b.slice(b.indexOf(S))}else return b},v=f(d),h=d||"",m=oe(h,1),p=m[0];return["+","-"].includes(p)?"".concat(o||"").concat(p).concat(v):"".concat(o||"").concat(v)}catch{return l}},i$=2,eUr=W.forwardRef(function(e,t){var r=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var n=e.open,a=at(e,KWr),o=qt(function(){return a.defaultValue},{value:a.value,onChange:a.onChange}),l=oe(o,2),c=l[0],s=l[1],u=r==null?void 0:r(z(z({},a),{},{value:c})),d=uT(u?n:!1);return q.jsx(I4,z(z({placement:"topLeft"},d),{},{trigger:["focus","click"],content:u,getPopupContainer:function(v){return(v==null?void 0:v.parentElement)||document.body},children:q.jsx($u,z(z({ref:t},a),{},{value:c,onChange:s}))}))}),tUr=function(t,r){var n,a=t.text,o=t.mode,l=t.render,c=t.renderFormItem,s=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var u=t.placeholder,d=t.locale,f=t.customSymbol,v=f===void 0?s.customSymbol:f,h=t.numberFormatOptions,m=h===void 0?s==null?void 0:s.numberFormatOptions:h,p=t.numberPopoverRender,g=p===void 0?(s==null?void 0:s.numberPopoverRender)||!1:p,b=at(t,YWr),y=(n=s==null?void 0:s.precision)!==null&&n!==void 0?n:i$,S=Pn();d&&M1[d]&&(S=M1[d]);var $=u||S.getMessage("tableForm.inputPlaceholder","请输入"),w=i.useMemo(function(){if(v)return v;if(!(b.moneySymbol===!1||s.moneySymbol===!1))return S.getMessage("moneySymbol","¥")},[v,s.moneySymbol,S,b.moneySymbol]),C=i.useCallback(function(R){var I=new RegExp("\\B(?=(\\d{".concat(3+Math.max(y-i$,0),"})+(?!\\d))"),"g"),_=String(R).split("."),B=oe(_,2),D=B[0],H=B[1],j=D.replace(I,","),T="";return H&&y>0&&(T=".".concat(H.slice(0,y===void 0?i$:y))),"".concat(j).concat(T)},[y]);if(o==="read"){var E=q.jsx("span",{ref:r,children:yW(d||!1,a,y,m??s.numberFormatOptions,w)});return l?l(a,z({mode:o},s),E):E}if(o==="edit"||o==="update"){var O=q.jsx(eUr,z(z({contentRender:function(I){if(g===!1||!I.value)return null;var _=yW(w||d||!1,"".concat(C(I.value)),y,z(z({},m),{},{notation:"compact"}),w);return typeof g=="function"?g==null?void 0:g(I,_):_},ref:r,precision:y,formatter:function(I){return I&&w?"".concat(w," ").concat(C(I)):I==null?void 0:I.toString()},parser:function(I){return w&&I?I.replace(new RegExp("\\".concat(w,"\\s?|(,*)"),"g"),""):I},placeholder:$},br(s,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:s.onBlur?function(R){var I,_=R.target.value;w&&_&&(_=_.replace(new RegExp("\\".concat(w,"\\s?|(,*)"),"g"),"")),(I=s.onBlur)===null||I===void 0||I.call(s,_)}:void 0}));return c?c(a,z({mode:o},s),O):O}return null};const Oce=W.forwardRef(tUr);var bW=function(t){return t.map(function(r,n){var a;return W.isValidElement(r)?W.cloneElement(r,z(z({key:n},r==null?void 0:r.props),{},{style:z({},r==null||(a=r.props)===null||a===void 0?void 0:a.style)})):q.jsx(W.Fragment,{children:r},n)})},rUr=function(t,r){var n=t.text,a=t.mode,o=t.render,l=t.fieldProps,c=i.useContext(er.ConfigContext),s=c.getPrefixCls,u=s("pro-field-option"),d=uc.useToken(),f=d.token;if(i.useImperativeHandle(r,function(){return{}}),o){var v=o(n,z({mode:a},l),q.jsx(q.Fragment,{}));return!v||(v==null?void 0:v.length)<1||!Array.isArray(v)?null:q.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:bW(v)})}return!n||!Array.isArray(n)?W.isValidElement(n)?n:null:q.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:bW(n)})};const nUr=W.forwardRef(rUr);var aUr=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],oUr=function(t,r){var n=t.text,a=t.mode,o=t.render,l=t.renderFormItem,c=t.fieldProps;t.proFieldKey;var s=at(t,aUr),u=Pn(),d=qt(function(){return s.open||s.visible||!1},{value:s.open||s.visible,onChange:s.onOpenChange||s.onVisible}),f=oe(d,2),v=f[0],h=f[1];if(a==="read"){var m=q.jsx(q.Fragment,{children:"-"});return n&&(m=q.jsxs(U0,{children:[q.jsx("span",{ref:r,children:v?n:"********"}),q.jsx("a",{onClick:function(){return h(!v)},children:v?q.jsx(lp,{}):q.jsx(HM,{})})]})),o?o(n,z({mode:a},c),m):m}if(a==="edit"||a==="update"){var p=q.jsx(as.Password,z({placeholder:u.getMessage("tableForm.inputPlaceholder","请输入"),ref:r},c));return l?l(n,z({mode:a},c),p):p}return null};const iUr=W.forwardRef(oUr);function lUr(e){return e===0?null:e>0?"+":"-"}function cUr(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function sUr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}function Eg(e){return lt(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var uUr=function(t,r){var n=t.text,a=t.prefix,o=t.precision,l=t.suffix,c=l===void 0?"%":l,s=t.mode,u=t.showColor,d=u===void 0?!1:u,f=t.render,v=t.renderFormItem,h=t.fieldProps,m=t.placeholder,p=t.showSymbol,g=Pn(),b=m||g.getMessage("tableForm.inputPlaceholder","请输入"),y=i.useMemo(function(){return typeof n=="string"&&n.includes("%")?Eg(n.replace("%","")):Eg(n)},[n]),S=i.useMemo(function(){return typeof p=="function"?p==null?void 0:p(n):p},[p,n]);if(s==="read"){var $=d?{color:cUr(y)}:{},w=q.jsxs("span",{style:$,ref:r,children:[a&&q.jsx("span",{children:a}),S&&q.jsxs(i.Fragment,{children:[lUr(y)," "]}),sUr(Math.abs(y),o),c&&c]});return f?f(n,z(z({mode:s},h),{},{prefix:a,precision:o,showSymbol:S,suffix:c}),w):w}if(s==="edit"||s==="update"){var C=q.jsx($u,z({ref:r,formatter:function(O){return O&&a?"".concat(a," ").concat(O).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):O},parser:function(O){return O?O.replace(/.*\s|,/g,""):""},placeholder:b},h));return v?v(n,z({mode:s},h),C):C}return null};const Ece=W.forwardRef(uUr);function dUr(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var fUr=function(t,r){var n=t.text,a=t.mode,o=t.render,l=t.plain,c=t.renderFormItem,s=t.fieldProps,u=t.placeholder,d=Pn(),f=u||d.getMessage("tableForm.inputPlaceholder","请输入"),v=i.useMemo(function(){return typeof n=="string"&&n.includes("%")?Eg(n.replace("%","")):Eg(n)},[n]);if(a==="read"){var h=q.jsx(a3t,z({ref:r,size:"small",style:{minWidth:100,maxWidth:320},percent:v,steps:l?10:void 0,status:dUr(v)},s));return o?o(v,z({mode:a},s),h):h}if(a==="edit"||a==="update"){var m=q.jsx($u,z({ref:r,placeholder:f},s));return c?c(n,z({mode:a},s),m):m}return null};const Rce=W.forwardRef(fUr);var vUr=["radioType","renderFormItem","mode","render"],hUr=function(t,r){var n,a,o=t.radioType,l=t.renderFormItem,c=t.mode,s=t.render,u=at(t,vUr),d=i.useContext(er.ConfigContext),f=d.getPrefixCls,v=f("pro-field-radio"),h=W4(u),m=oe(h,3),p=m[0],g=m[1],b=m[2],y=i.useRef(),S=(n=ja.Item)===null||n===void 0||(a=n.useStatus)===null||a===void 0?void 0:a.call(n);i.useImperativeHandle(r,function(){return z(z({},y.current||{}),{},{fetchData:function(H){return b(H)}})},[b]);var $=Da("FieldRadioRadio",function(D){return Z(Z(Z({},".".concat(v,"-error"),{span:{color:D.colorError}}),".".concat(v,"-warning"),{span:{color:D.colorWarning}}),".".concat(v,"-vertical"),Z({},"".concat(D.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),w=$.wrapSSR,C=$.hashId;if(p)return q.jsx(q1,{size:"small"});if(c==="read"){var E=g!=null&&g.length?g==null?void 0:g.reduce(function(D,H){var j;return z(z({},D),{},Z({},(j=H.value)!==null&&j!==void 0?j:"",H.label))},{}):void 0,O=q.jsx(q.Fragment,{children:H4(u.text,ps(u.valueEnum||E))});if(s){var R;return(R=s(u.text,z({mode:c},u.fieldProps),O))!==null&&R!==void 0?R:null}return O}if(c==="edit"){var I,_=w(q.jsx(llt.Group,z(z({ref:y,optionType:o},u.fieldProps),{},{className:ue((I=u.fieldProps)===null||I===void 0?void 0:I.className,Z(Z({},"".concat(v,"-error"),(S==null?void 0:S.status)==="error"),"".concat(v,"-warning"),(S==null?void 0:S.status)==="warning"),C,"".concat(v,"-").concat(u.fieldProps.layout||"horizontal")),options:g})));if(l){var B;return(B=l(u.text,z(z({mode:c},u.fieldProps),{},{options:g,loading:p}),_))!==null&&B!==void 0?B:null}return _}return null};const SW=W.forwardRef(hUr);var mUr=function(t,r){var n=t.text,a=t.mode,o=t.light,l=t.label,c=t.format,s=t.render,u=t.picker,d=t.renderFormItem,f=t.plain,v=t.showTime,h=t.lightLabel,m=t.bordered,p=t.fieldProps,g=Pn(),b=Array.isArray(n)?n:[],y=oe(b,2),S=y[0],$=y[1],w=W.useState(!1),C=oe(w,2),E=C[0],O=C[1],R=i.useCallback(function(T){if(typeof(p==null?void 0:p.format)=="function"){var P;return p==null||(P=p.format)===null||P===void 0?void 0:P.call(p,T)}return(p==null?void 0:p.format)||c||"YYYY-MM-DD"},[p,c]),I=S?fr(S).format(R(fr(S))):"",_=$?fr($).format(R(fr($))):"";if(a==="read"){var B=q.jsxs("div",{ref:r,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[q.jsx("div",{children:I||"-"}),q.jsx("div",{children:_||"-"})]});return s?s(n,z({mode:a},p),q.jsx("span",{children:B})):B}if(a==="edit"||a==="update"){var D=D6(p.value),H;if(o){var j;H=q.jsx(gs,{label:l,onClick:function(){var P;p==null||(P=p.onOpenChange)===null||P===void 0||P.call(p,!0),O(!0)},style:D?{paddingInlineEnd:0}:void 0,disabled:p.disabled,value:D||E?q.jsx(R1.RangePicker,z(z(z({picker:u,showTime:v,format:c},hi(!1)),p),{},{placeholder:(j=p.placeholder)!==null&&j!==void 0?j:[g.getMessage("tableForm.selectPlaceholder","请选择"),g.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var P;O(!1),p==null||(P=p.onClear)===null||P===void 0||P.call(p)},value:D,onOpenChange:function(P){var k;D&&O(P),p==null||(k=p.onOpenChange)===null||k===void 0||k.call(p,P)}})):null,allowClear:!1,bordered:m,ref:h,downIcon:D||E?!1:void 0})}else H=q.jsx(R1.RangePicker,z(z(z({ref:r,format:c,showTime:v,placeholder:[g.getMessage("tableForm.selectPlaceholder","请选择"),g.getMessage("tableForm.selectPlaceholder","请选择")]},hi(f===void 0?!0:!f)),p),{},{value:D}));return d?d(n,z({mode:a},p),H):H}return null};const xd=W.forwardRef(mUr);var gUr=function(t,r){var n=t.text,a=t.mode,o=t.render,l=t.renderFormItem,c=t.fieldProps;if(a==="read"){var s=q.jsx(bB,z(z({allowHalf:!0,disabled:!0,ref:r},c),{},{value:n}));return o?o(n,z({mode:a},c),q.jsx(q.Fragment,{children:s})):s}if(a==="edit"||a==="update"){var u=q.jsx(bB,z({allowHalf:!0,ref:r},c));return l?l(n,z({mode:a},c),u):u}return null};const pUr=W.forwardRef(gUr);function yUr(e){var t=e,r="",n=!1;t<0&&(t=-t,n=!0);var a=Math.floor(t/(3600*24)),o=Math.floor(t/3600%24),l=Math.floor(t/60%60),c=Math.floor(t%60);return r="".concat(c,"秒"),l>0&&(r="".concat(l,"分钟").concat(r)),o>0&&(r="".concat(o,"小时").concat(r)),a>0&&(r="".concat(a,"天").concat(r)),n&&(r+="前"),r}var bUr=function(t,r){var n=t.text,a=t.mode,o=t.render,l=t.renderFormItem,c=t.fieldProps,s=t.placeholder,u=Pn(),d=s||u.getMessage("tableForm.inputPlaceholder","请输入");if(a==="read"){var f=yUr(Number(n)),v=q.jsx("span",{ref:r,children:f});return o?o(n,z({mode:a},c),v):v}if(a==="edit"||a==="update"){var h=q.jsx($u,z({ref:r,min:0,style:{width:"100%"},placeholder:d},c));return l?l(n,z({mode:a},c),h):h}return null};const SUr=W.forwardRef(bUr);var $Ur=["mode","render","renderFormItem","fieldProps","emptyText"],wUr=function(t,r){var n=t.mode,a=t.render,o=t.renderFormItem,l=t.fieldProps,c=t.emptyText,s=c===void 0?"-":c,u=at(t,$Ur),d=i.useRef(),f=W4(t),v=oe(f,3),h=v[0],m=v[1],p=v[2];if(i.useImperativeHandle(r,function(){return z(z({},d.current||{}),{},{fetchData:function(w){return p(w)}})},[p]),h)return q.jsx(q1,{size:"small"});if(n==="read"){var g=m!=null&&m.length?m==null?void 0:m.reduce(function($,w){var C;return z(z({},$),{},Z({},(C=w.value)!==null&&C!==void 0?C:"",w.label))},{}):void 0,b=q.jsx(q.Fragment,{children:H4(u.text,ps(u.valueEnum||g))});if(a){var y;return(y=a(u.text,z({mode:n},l),q.jsx(q.Fragment,{children:b})))!==null&&y!==void 0?y:s}return b}if(n==="edit"||n==="update"){var S=q.jsx(Sae,z(z({ref:d},br(l||{},["allowClear"])),{},{options:m}));return o?o(u.text,z(z({mode:n},l),{},{options:m,loading:h}),S):S}return null};const CUr=W.forwardRef(wUr);var xUr=function(t,r){var n=t.text,a=t.mode,o=t.render,l=t.renderFormItem,c=t.fieldProps;if(a==="read"){var s=n;return o?o(n,z({mode:a},c),q.jsx(q.Fragment,{children:s})):q.jsx(q.Fragment,{children:s})}if(a==="edit"||a==="update"){var u=q.jsx(Lae,z(z({ref:r},c),{},{style:z({minWidth:120},c==null?void 0:c.style)}));return l?l(n,z({mode:a},c),u):u}return null};const OUr=W.forwardRef(xUr);var EUr=function(t,r){var n=t.text,a=t.mode,o=t.render,l=t.light,c=t.label,s=t.renderFormItem,u=t.fieldProps,d=Pn(),f=i.useMemo(function(){var g,b;return n==null||"".concat(n).length<1?"-":n?(g=u==null?void 0:u.checkedChildren)!==null&&g!==void 0?g:d.getMessage("switch.open","打开"):(b=u==null?void 0:u.unCheckedChildren)!==null&&b!==void 0?b:d.getMessage("switch.close","关闭")},[u==null?void 0:u.checkedChildren,u==null?void 0:u.unCheckedChildren,n]);if(a==="read")return o?o(n,z({mode:a},u),q.jsx(q.Fragment,{children:f})):f??"-";if(a==="edit"||a==="update"){var v,h=q.jsx(h0,z(z({ref:r,size:l?"small":void 0},br(u,["value"])),{},{checked:(v=u==null?void 0:u.checked)!==null&&v!==void 0?v:u==null?void 0:u.value}));if(l){var m=u.disabled,p=u.bordered;return q.jsx(gs,{label:c,disabled:m,bordered:p,downIcon:!1,value:q.jsx("div",{style:{paddingLeft:8},children:h}),allowClear:!1})}return s?s(n,z({mode:a},u),h):h}return null};const RUr=W.forwardRef(EUr);var IUr=function(t,r){var n=t.text,a=t.mode,o=t.render,l=t.renderFormItem,c=t.fieldProps,s=t.emptyText,u=s===void 0?"-":s,d=c||{},f=d.autoFocus,v=d.prefix,h=v===void 0?"":v,m=d.suffix,p=m===void 0?"":m,g=Pn(),b=i.useRef();if(i.useImperativeHandle(r,function(){return b.current},[]),i.useEffect(function(){if(f){var C;(C=b.current)===null||C===void 0||C.focus()}},[f]),a==="read"){var y=q.jsxs(q.Fragment,{children:[h,n??u,p]});if(o){var S;return(S=o(n,z({mode:a},c),y))!==null&&S!==void 0?S:u}return y}if(a==="edit"||a==="update"){var $=g.getMessage("tableForm.inputPlaceholder","请输入"),w=q.jsx(as,z({ref:b,placeholder:$,allowClear:!0},c));return l?l(n,z({mode:a},c),w):w}return null};const MUr=W.forwardRef(IUr);var TUr=function(t,r){var n=t.text,a=t.fieldProps,o=i.useContext(er.ConfigContext),l=o.getPrefixCls,c=l("pro-field-readonly"),s="".concat(c,"-textarea"),u=Da("TextArea",function(){return Z({},".".concat(s),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),d=u.wrapSSR,f=u.hashId;return d(q.jsx("span",z(z({ref:r,className:ue(f,c,s)},br(a,["autoSize","classNames","styles"])),{},{children:n??"-"})))};const PUr=W.forwardRef(TUr);var _Ur=function(t,r){var n=t.text,a=t.mode,o=t.render,l=t.renderFormItem,c=t.fieldProps,s=Pn();if(a==="read"){var u=q.jsx(PUr,z(z({},t),{},{ref:r}));return o?o(n,z({mode:a},br(c,["showCount"])),u):u}if(a==="edit"||a==="update"){var d=q.jsx(as.TextArea,z({ref:r,rows:3,onKeyPress:function(v){v.key==="Enter"&&v.stopPropagation()},placeholder:s.getMessage("tableForm.inputPlaceholder","请输入")},c));return l?l(n,z({mode:a},c),d):d}return null};const zUr=W.forwardRef(_Ur);var FUr=function(t,r){var n=t.text,a=t.mode,o=t.light,l=t.label,c=t.format,s=t.render,u=t.renderFormItem,d=t.plain,f=t.fieldProps,v=t.lightLabel,h=i.useState(!1),m=oe(h,2),p=m[0],g=m[1],b=Pn(),y=(f==null?void 0:f.format)||c||"HH:mm:ss",S=fr.isDayjs(n)||typeof n=="number";if(a==="read"){var $=q.jsx("span",{ref:r,children:n?fr(n,S?void 0:y).format(y):"-"});return s?s(n,z({mode:a},f),q.jsx("span",{children:$})):$}if(a==="edit"||a==="update"){var w,C=f.disabled,E=f.value,O=D6(E,y);if(o){var R;w=q.jsx(gs,{onClick:function(){var _;f==null||(_=f.onOpenChange)===null||_===void 0||_.call(f,!0),g(!0)},style:O?{paddingInlineEnd:0}:void 0,label:l,disabled:C,value:O||p?q.jsx(Rx,z(z(z({},hi(!1)),{},{format:c,ref:r},f),{},{placeholder:(R=f.placeholder)!==null&&R!==void 0?R:b.getMessage("tableForm.selectPlaceholder","请选择"),value:O,onOpenChange:function(_){var B;g(_),f==null||(B=f.onOpenChange)===null||B===void 0||B.call(f,_)},open:p})):null,downIcon:O||p?!1:void 0,allowClear:!1,ref:v})}else w=q.jsx(R1.TimePicker,z(z(z({ref:r,format:c},hi(d===void 0?!0:!d)),f),{},{value:O}));return u?u(n,z({mode:a},f),w):w}return null},kUr=function(t,r){var n=t.text,a=t.light,o=t.label,l=t.mode,c=t.lightLabel,s=t.format,u=t.render,d=t.renderFormItem,f=t.plain,v=t.fieldProps,h=Pn(),m=i.useState(!1),p=oe(m,2),g=p[0],b=p[1],y=(v==null?void 0:v.format)||s||"HH:mm:ss",S=Array.isArray(n)?n:[],$=oe(S,2),w=$[0],C=$[1],E=fr.isDayjs(w)||typeof w=="number",O=fr.isDayjs(C)||typeof C=="number",R=w?fr(w,E?void 0:y).format(y):"",I=C?fr(C,O?void 0:y).format(y):"";if(l==="read"){var _=q.jsxs("div",{ref:r,children:[q.jsx("div",{children:R||"-"}),q.jsx("div",{children:I||"-"})]});return u?u(n,z({mode:l},v),q.jsx("span",{children:_})):_}if(l==="edit"||l==="update"){var B=D6(v.value,y),D;if(a){var H=v.disabled,j=v.placeholder,T=j===void 0?[h.getMessage("tableForm.selectPlaceholder","请选择"),h.getMessage("tableForm.selectPlaceholder","请选择")]:j;D=q.jsx(gs,{onClick:function(){var k;v==null||(k=v.onOpenChange)===null||k===void 0||k.call(v,!0),b(!0)},style:B?{paddingInlineEnd:0}:void 0,label:o,disabled:H,placeholder:T,value:B||g?q.jsx(Rx.RangePicker,z(z(z({},hi(!1)),{},{format:s,ref:r},v),{},{placeholder:T,value:B,onOpenChange:function(k){var A;b(k),v==null||(A=v.onOpenChange)===null||A===void 0||A.call(v,k)},open:g})):null,downIcon:B||g?!1:void 0,allowClear:!1,ref:c})}else D=q.jsx(Rx.RangePicker,z(z(z({ref:r,format:s},hi(f===void 0?!0:!f)),v),{},{value:B}));return d?d(n,z({mode:l},v),D):D}return null},DUr=W.forwardRef(kUr);const LUr=W.forwardRef(FUr);var AUr=["radioType","renderFormItem","mode","light","label","render"],NUr=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],HUr=function(t,r){t.radioType;var n=t.renderFormItem,a=t.mode,o=t.light,l=t.label,c=t.render,s=at(t,AUr),u=i.useContext(er.ConfigContext),d=u.getPrefixCls,f=d("pro-field-tree-select"),v=i.useRef(null),h=i.useState(!1),m=oe(h,2),p=m[0],g=m[1],b=s.fieldProps,y=b.onSearch,S=b.onClear,$=b.onChange,w=b.onBlur,C=b.showSearch,E=b.autoClearSearchValue;b.treeData;var O=b.fetchDataOnSearch,R=b.searchValue,I=at(b,NUr),_=Pn(),B=W4(z(z({},s),{},{defaultKeyWords:R})),D=oe(B,3),H=D[0],j=D[1],T=D[2],P=qt(void 0,{onChange:y,value:R}),k=oe(P,2),A=k[0],F=k[1];i.useImperativeHandle(r,function(){return z(z({},v.current||{}),{},{fetchData:function(ve){return T(ve)}})});var V=i.useMemo(function(){if(a==="read"){var se=(I==null?void 0:I.fieldNames)||{},ve=se.value,me=ve===void 0?"value":ve,le=se.label,pe=le===void 0?"label":le,ge=se.children,$e=ge===void 0?"children":ge,we=new Map,Se=function xe(be){if(!(be!=null&&be.length))return we;for(var Ce=be.length,Ee=0;Ee4&&(h+=7),v.add(h,r));return m.diff(p,"week")+1},c.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var s=c.startOf;c.startOf=function(u,d){var f=this.$utils(),v=!!f.u(d)||d;return f.p(u)==="isoweek"?v?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):s.bind(this)(u,d)}}})})(Ice);var VUr=Ice.exports;const jUr=en(VUr);var Mce={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(an,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,a,o){var l=a.prototype,c=l.format;o.en.formats=r,l.format=function(s){s===void 0&&(s="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(f,v){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,p){var g=p&&p.toUpperCase();return m||v[p]||r[p]||v[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,S){return y||S.slice(1)})})}(s,u===void 0?{}:u);return c.call(this,d)}}})})(Mce);var WUr=Mce.exports;const UUr=en(WUr);var KUr=["fieldProps"],YUr=["fieldProps"],GUr=["fieldProps"],qUr=["fieldProps"],XUr=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],ZUr=["placeholder"];fr.extend(Kre);fr.extend(Xre);fr.extend(jUr);fr.extend(sM);fr.extend(Wre);fr.extend(UUr);var QUr=function(t,r,n){var a=Qie(n.fieldProps);return r.type==="progress"?q.jsx(Rce,z(z({},n),{},{text:t,fieldProps:z({status:r.status?r.status:void 0},a)})):r.type==="money"?q.jsx(Oce,z(z({locale:r.locale},n),{},{fieldProps:a,text:t,moneySymbol:r.moneySymbol})):r.type==="percent"?q.jsx(Ece,z(z({},n),{},{text:t,showSymbol:r.showSymbol,precision:r.precision,fieldProps:a,showColor:r.showColor})):r.type==="image"?q.jsx(Cce,z(z({},n),{},{text:t,width:r.width})):t},JUr=function(t,r,n,a){var o=n.mode,l=o===void 0?"read":o,c=n.emptyText,s=c===void 0?"-":c;if(s!==!1&&l==="read"&&r!=="option"&&r!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var u=n.fieldProps,d=n.render;return d?d(t,z({mode:l},u),q.jsx(q.Fragment,{children:s})):q.jsx(q.Fragment,{children:s})}if(delete n.emptyText,lt(r)==="object")return QUr(t,r,n);var f=a&&a[r];if(f){if(delete n.ref,l==="read"){var v;return(v=f.render)===null||v===void 0?void 0:v.call(f,t,z(z({text:t},n),{},{mode:l||"read"}),q.jsx(q.Fragment,{children:t}))}if(l==="update"||l==="edit"){var h;return(h=f.renderFormItem)===null||h===void 0?void 0:h.call(f,t,z({text:t},n),q.jsx(q.Fragment,{children:t}))}}if(r==="money")return q.jsx(Oce,z(z({},n),{},{text:t}));if(r==="date")return q.jsx(Po,{isLight:n.light,children:q.jsx(Cd,z({text:t,format:"YYYY-MM-DD"},n))});if(r==="dateWeek")return q.jsx(Po,{isLight:n.light,children:q.jsx(Cd,z({text:t,format:"YYYY-wo",picker:"week"},n))});if(r==="dateWeekRange"){var m=n.fieldProps,p=at(n,KUr);return q.jsx(Po,{isLight:n.light,children:q.jsx(xd,z({text:t,format:"YYYY-W",showTime:!0,fieldProps:z({picker:"week"},m)},p))})}if(r==="dateMonthRange"){var g=n.fieldProps,b=at(n,YUr);return q.jsx(Po,{isLight:n.light,children:q.jsx(xd,z({text:t,format:"YYYY-MM",showTime:!0,fieldProps:z({picker:"month"},g)},b))})}if(r==="dateQuarterRange"){var y=n.fieldProps,S=at(n,GUr);return q.jsx(Po,{isLight:n.light,children:q.jsx(xd,z({text:t,format:"YYYY-Q",showTime:!0,fieldProps:z({picker:"quarter"},y)},S))})}if(r==="dateYearRange"){var $=n.fieldProps,w=at(n,qUr);return q.jsx(Po,{isLight:n.light,children:q.jsx(xd,z({text:t,format:"YYYY",showTime:!0,fieldProps:z({picker:"year"},$)},w))})}return r==="dateMonth"?q.jsx(Po,{isLight:n.light,children:q.jsx(Cd,z({text:t,format:"YYYY-MM",picker:"month"},n))}):r==="dateQuarter"?q.jsx(Po,{isLight:n.light,children:q.jsx(Cd,z({text:t,format:"YYYY-[Q]Q",picker:"quarter"},n))}):r==="dateYear"?q.jsx(Po,{isLight:n.light,children:q.jsx(Cd,z({text:t,format:"YYYY",picker:"year"},n))}):r==="dateRange"?q.jsx(xd,z({text:t,format:"YYYY-MM-DD"},n)):r==="dateTime"?q.jsx(Po,{isLight:n.light,children:q.jsx(Cd,z({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},n))}):r==="dateTimeRange"?q.jsx(Po,{isLight:n.light,children:q.jsx(xd,z({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},n))}):r==="time"?q.jsx(Po,{isLight:n.light,children:q.jsx(LUr,z({text:t,format:"HH:mm:ss"},n))}):r==="timeRange"?q.jsx(Po,{isLight:n.light,children:q.jsx(DUr,z({text:t,format:"HH:mm:ss"},n))}):r==="fromNow"?q.jsx(jWr,z({text:t},n)):r==="index"?q.jsx(pW,{children:t+1}):r==="indexBorder"?q.jsx(pW,{border:!0,children:t+1}):r==="progress"?q.jsx(Rce,z(z({},n),{},{text:t})):r==="percent"?q.jsx(Ece,z({text:t},n)):r==="avatar"&&typeof t=="string"&&n.mode==="read"?q.jsx(mre,{src:t,size:22,shape:"circle"}):r==="code"?q.jsx(QV,z({text:t},n)):r==="jsonCode"?q.jsx(QV,z({text:t,language:"json"},n)):r==="textarea"?q.jsx(zUr,z({text:t},n)):r==="digit"?q.jsx(LWr,z({text:t},n)):r==="digitRange"?q.jsx(NWr,z({text:t},n)):r==="second"?q.jsx(SUr,z({text:t},n)):r==="select"||r==="text"&&(n.valueEnum||n.request)?q.jsx(Po,{isLight:n.light,children:q.jsx(gRr,z({text:t},n))}):r==="checkbox"?q.jsx(CRr,z({text:t},n)):r==="radio"?q.jsx(SW,z({text:t},n)):r==="radioButton"?q.jsx(SW,z({radioType:"button",text:t},n)):r==="rate"?q.jsx(pUr,z({text:t},n)):r==="slider"?q.jsx(OUr,z({text:t},n)):r==="switch"?q.jsx(RUr,z({text:t},n)):r==="option"?q.jsx(nUr,z({text:t},n)):r==="password"?q.jsx(iUr,z({text:t},n)):r==="image"?q.jsx(Cce,z({text:t},n)):r==="cascader"?q.jsx(bRr,z({text:t},n)):r==="treeSelect"?q.jsx(BUr,z({text:t},n)):r==="color"?q.jsx(zWr,z({text:t},n)):r==="segmented"?q.jsx(CUr,z({text:t},n)):q.jsx(MUr,z({text:t},n))},eKr=function(t,r){var n,a,o,l,c,s=t.text,u=t.valueType,d=u===void 0?"text":u,f=t.mode,v=f===void 0?"read":f,h=t.onChange,m=t.renderFormItem,p=t.value,g=t.readonly,b=t.fieldProps,y=at(t,XUr),S=i.useContext(wu),$=pl(function(){for(var E,O=arguments.length,R=new Array(O),I=0;I0&&T!=="read"?q.jsx("div",{className:ue("".concat(u,"-action"),Z({},"".concat(u,"-action-small"),B==="small"),I),children:ie}):null,se={name:O.name,field:p,index:g,record:b==null||(n=b.getFieldValue)===null||n===void 0?void 0:n.call(b,[D.listName,y,p.name].filter(function(ge){return ge!==void 0}).flat(1)),fields:h,operation:d,meta:m},ve=N6(),me=ve.grid,le=(l==null?void 0:l(Q,se))||Q,pe=(c==null?void 0:c({listDom:q.jsx("div",{className:ue("".concat(u,"-container"),S,I),style:z({width:me?"100%":void 0},$),children:le}),action:de},se))||q.jsxs("div",{className:ue("".concat(u,"-item"),I,Z(Z({},"".concat(u,"-item-default"),s===void 0),"".concat(u,"-item-show-label"),s)),style:{display:"flex",alignItems:"flex-end"},children:[q.jsx("div",{className:ue("".concat(u,"-container"),S,I),style:z({width:me?"100%":void 0},$),children:le}),de]});return q.jsx(t4.Provider,{value:z(z({},p),{},{listName:[D.listName,y,p.name].filter(function(ge){return ge!==void 0}).flat(1)}),children:pe})},hKr=function(t){var r=Pn(),n=t.creatorButtonProps,a=t.prefixCls,o=t.children,l=t.creatorRecord,c=t.action,s=t.fields,u=t.actionGuard,d=t.max,f=t.fieldExtraRender,v=t.meta,h=t.containerClassName,m=t.containerStyle,p=t.onAfterAdd,g=t.onAfterRemove,b=i.useContext(_f),y=b.hashId,S=i.useRef(new Map),$=i.useState(!1),w=oe($,2),C=w[0],E=w[1],O=i.useMemo(function(){return s.map(function(H){var j,T;if(!((j=S.current)!==null&&j!==void 0&&j.has(H.key.toString()))){var P;(P=S.current)===null||P===void 0||P.set(H.key.toString(),C3())}var k=(T=S.current)===null||T===void 0?void 0:T.get(H.key.toString());return z(z({},H),{},{uuid:k})})},[s]),R=i.useMemo(function(){var H=z({},c),j=O.length;return u!=null&&u.beforeAddRow?H.add=ra($r().mark(function T(){var P,k,A,F,V,U=arguments;return $r().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:for(P=U.length,k=new Array(P),A=0;A div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":Z(Z(Z(Z({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function RKr(e){return Da("ProFormGroup",function(t){var r=z(z({},t),{},{componentCls:".".concat(e)});return[EKr(r)]})}var zce=W.forwardRef(function(e,t){var r=W.useContext(A6),n=r.groupProps,a=z(z({},n),e),o=a.children,l=a.collapsible,c=a.defaultCollapsed,s=a.style,u=a.labelLayout,d=a.title,f=d===void 0?e.label:d,v=a.tooltip,h=a.align,m=h===void 0?"start":h,p=a.direction,g=a.size,b=g===void 0?32:g,y=a.titleStyle,S=a.titleRender,$=a.spaceProps,w=a.extra,C=a.autoFocus,E=qt(function(){return c||!1},{value:e.collapsed,onChange:e.onCollapse}),O=oe(E,2),R=O[0],I=O[1],_=i.useContext(er.ConfigContext),B=_.getPrefixCls,D=N6(e),H=D.ColWrapper,j=D.RowWrapper,T=B("pro-form-group"),P=RKr(T),k=P.wrapSSR,A=P.hashId,F=l&&q.jsx(oc,{style:{marginInlineEnd:8},rotate:R?void 0:90}),V=q.jsx(ECr,{label:F?q.jsxs("div",{children:[F,f]}):f,tooltip:v}),U=i.useCallback(function(J){var ae=J.children;return q.jsx(U0,z(z({},$),{},{className:ue("".concat(T,"-container ").concat(A),$==null?void 0:$.className),size:b,align:m,direction:p,style:z({rowGap:0},$==null?void 0:$.style),children:ae}))},[m,T,p,A,b,$]),K=S?S(V,e):V,Y=i.useMemo(function(){var J=[],ae=W.Children.toArray(o).map(function(ne,ie){var de;return W.isValidElement(ne)&&ne!==null&&ne!==void 0&&(de=ne.props)!==null&&de!==void 0&&de.hidden?(J.push(ne),null):ie===0&&W.isValidElement(ne)&&C?W.cloneElement(ne,z(z({},ne.props),{},{autoFocus:C})):ne});return[q.jsx(j,{Wrapper:U,children:ae},"children"),J.length>0?q.jsx("div",{style:{display:"none"},children:J}):null]},[o,j,U,C]),X=oe(Y,2),te=X[0],Q=X[1];return k(q.jsx(H,{children:q.jsxs("div",{className:ue(T,A,Z({},"".concat(T,"-twoLine"),u==="twoLine")),style:s,ref:t,children:[Q,(f||v||w)&&q.jsx("div",{className:"".concat(T,"-title ").concat(A).trim(),style:y,onClick:function(){I(!R)},children:w?q.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[K,q.jsx("span",{onClick:function(ae){return ae.stopPropagation()},children:w})]}):K}),q.jsx("div",{style:{display:l&&R?"none":void 0},children:te})]})}))});zce.displayName="ProForm-Group";const IKr=zce;var MKr=function(t){var r=Pn(),n=ja.useFormInstance();if(t.render===!1)return null;var a=t.onSubmit,o=t.render,l=t.onReset,c=t.searchConfig,s=c===void 0?{}:c,u=t.submitButtonProps,d=t.resetButtonProps,f=uc.useToken(),v=f.token,h=function(){n.submit(),a==null||a()},m=function(){n.resetFields(),l==null||l()},p=s.submitText,g=p===void 0?r.getMessage("tableForm.submit","提交"):p,b=s.resetText,y=b===void 0?r.getMessage("tableForm.reset","重置"):b,S=[];d!==!1&&S.push(i.createElement(Cl,z(z({},br(d??{},["preventDefault"])),{},{key:"rest",onClick:function(C){var E;d!=null&&d.preventDefault||m(),d==null||(E=d.onClick)===null||E===void 0||E.call(d,C)}}),y)),u!==!1&&S.push(i.createElement(Cl,z(z({type:"primary"},br(u||{},["preventDefault"])),{},{key:"submit",onClick:function(C){var E;u!=null&&u.preventDefault||h(),u==null||(E=u.onClick)===null||E===void 0||E.call(u,C)}}),g));var $=o?o(z(z({},t),{},{form:n,submit:h,reset:m}),S):S;return $?Array.isArray($)?($==null?void 0:$.length)<1?null:($==null?void 0:$.length)===1?$[0]:q.jsx("div",{style:{display:"flex",gap:v.marginXS,alignItems:"center"},children:$}):$:null};const TKr=MKr;var PKr=["fieldProps","proFieldProps"],_Kr=["fieldProps","proFieldProps"],Rg="text",zKr=function(t){var r=t.fieldProps,n=t.proFieldProps,a=at(t,PKr);return q.jsx(M3,z({valueType:Rg,fieldProps:r,filedConfig:{valueType:Rg},proFieldProps:n},a))},FKr=function(t){var r=qt(t.open||!1,{value:t.open,onChange:t.onOpenChange}),n=oe(r,2),a=n[0],o=n[1];return q.jsx(ja.Item,{shouldUpdate:!0,noStyle:!0,children:function(c){var s,u=c.getFieldValue(t.name||[]);return q.jsx(I4,z(z({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return o(f)},content:q.jsxs("div",{style:{padding:"4px 0"},children:[(s=t.statusRender)===null||s===void 0?void 0:s.call(t,u),t.strengthText?q.jsx("div",{style:{marginTop:10},children:q.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:a,children:t.children}))}})},kKr=function(t){var r=t.fieldProps,n=t.proFieldProps,a=at(t,_Kr),o=i.useState(!1),l=oe(o,2),c=l[0],s=l[1];return r!=null&&r.statusRender&&a.name?q.jsx(FKr,{name:a.name,statusRender:r==null?void 0:r.statusRender,popoverProps:r==null?void 0:r.popoverProps,strengthText:r==null?void 0:r.strengthText,open:c,onOpenChange:s,children:q.jsx("div",{children:q.jsx(M3,z({valueType:"password",fieldProps:z(z({},br(r,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(d){var f;r==null||(f=r.onBlur)===null||f===void 0||f.call(r,d),s(!1)},onClick:function(d){var f;r==null||(f=r.onClick)===null||f===void 0||f.call(r,d),s(!0)}}),proFieldProps:n,filedConfig:{valueType:Rg}},a))})}):q.jsx(M3,z({valueType:"password",fieldProps:r,proFieldProps:n,filedConfig:{valueType:Rg}},a))},kT=zKr;kT.Password=kKr;kT.displayName="ProFormComponent";const wW=kT;var DKr=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],LKr=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],Fh=function(t,r,n){return t===!0?r:w3(t,r,n)},CW=function(t){return!t||Array.isArray(t)?t:[t]};function AKr(e){var t,r=e.children,n=e.contentRender,a=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var o=e.transformKey,l=e.formRef,c=e.onInit,s=e.form,u=e.loading;e.formComponentType;var d=e.extraUrlParams,f=d===void 0?{}:d,v=e.syncToUrl,h=e.onUrlSearchChange,m=e.onReset,p=e.omitNil,g=p===void 0?!0:p;e.isKeyPressSubmit;var b=e.autoFocusFirstInput,y=b===void 0?!0:b,S=e.grid,$=e.rowProps,w=e.colProps,C=at(e,DKr),E=ja.useFormInstance(),O=(er==null||(t=er.useConfig)===null||t===void 0?void 0:t.call(er))||{componentSize:"middle"},R=O.componentSize,I=i.useRef(s||E),_=N6({grid:S,rowProps:$}),B=_.RowWrapper,D=pl(function(){return E}),H=i.useMemo(function(){return{getFieldsFormatValue:function(V){var U;return o((U=D())===null||U===void 0?void 0:U.getFieldsValue(V),g)},getFieldFormatValue:function(){var V,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],K=CW(U);if(!K)throw new Error("nameList is require");var Y=(V=D())===null||V===void 0?void 0:V.getFieldValue(K),X=K?Kn({},K,Y):Y,te=Ve(K);return te.shift(),ca(o(X,g,te),K)},getFieldFormatValueObject:function(V){var U,K=CW(V),Y=(U=D())===null||U===void 0?void 0:U.getFieldValue(K),X=K?Kn({},K,Y):Y;return o(X,g,K)},validateFieldsReturnFormatValue:function(){var F=ra($r().mark(function U(K){var Y,X,te;return $r().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(!(!Array.isArray(K)&&K)){J.next=2;break}throw new Error("nameList must be array");case 2:return J.next=4,(Y=D())===null||Y===void 0?void 0:Y.validateFields(K);case 4:return X=J.sent,te=o(X,g),J.abrupt("return",te||{});case 7:case"end":return J.stop()}},U)}));function V(U){return F.apply(this,arguments)}return V}()}},[g,o]),j=i.useMemo(function(){return W.Children.toArray(r).map(function(F,V){return V===0&&W.isValidElement(F)&&y?W.cloneElement(F,z(z({},F.props),{},{autoFocus:y})):F})},[y,r]),T=i.useMemo(function(){return typeof a=="boolean"||!a?{}:a},[a]),P=i.useMemo(function(){if(a!==!1)return q.jsx(TKr,z(z({},T),{},{onReset:function(){var V,U,K=o((V=I.current)===null||V===void 0?void 0:V.getFieldsValue(),g);if(T==null||(U=T.onReset)===null||U===void 0||U.call(T,K),m==null||m(K),v){var Y,X=Object.keys(o((Y=I.current)===null||Y===void 0?void 0:Y.getFieldsValue(),!1)).reduce(function(te,Q){return z(z({},te),{},Z({},Q,K[Q]||void 0))},f);h(Fh(v,X||{},"set"))}},submitButtonProps:z({loading:u},T.submitButtonProps)}),"submitter")},[a,T,u,o,g,m,v,f,h]),k=i.useMemo(function(){var F=S?q.jsx(B,{children:j}):j;return n?n(F,P,I.current):F},[S,B,j,n,P]),A=NCr(e.initialValues);return i.useEffect(function(){if(!(v||!e.initialValues||!A||C.request)){var F=f1(e.initialValues,A);k0(F,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? : null "),k0(F,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),i.useImperativeHandle(l,function(){return z(z({},I.current),H)},[H,I.current]),i.useEffect(function(){var F,V,U=o((F=I.current)===null||F===void 0||(V=F.getFieldsValue)===null||V===void 0?void 0:V.call(F,!0),g);c==null||c(U,z(z({},I.current),H))},[]),q.jsx(dT.Provider,{value:z(z({},H),{},{formRef:I}),children:q.jsx(er,{componentSize:C.size||R,children:q.jsxs(ple.Provider,{value:{grid:S,colProps:w},children:[C.component!==!1&&q.jsx("input",{type:"text",style:{display:"none"}}),k]})})})}var xW=0;function NKr(e){var t=e.extraUrlParams,r=t===void 0?{}:t,n=e.syncToUrl,a=e.isKeyPressSubmit,o=e.syncToUrlAsImportant,l=o===void 0?!1:o,c=e.syncToInitialValues,s=c===void 0?!0:c;e.children,e.contentRender,e.submitter;var u=e.fieldProps,d=e.proFieldProps,f=e.formItemProps,v=e.groupProps,h=e.dateFormatter,m=h===void 0?"string":h,p=e.formRef;e.onInit;var g=e.form,b=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var y=e.omitNil,S=y===void 0?!0:y,$=e.request,w=e.params,C=e.initialValues,E=e.formKey,O=E===void 0?xW:E;e.readonly;var R=e.onLoadingChange,I=e.loading,_=at(e,LKr),B=i.useRef({}),D=qt(!1,{onChange:R,value:I}),H=oe(D,2),j=H[0],T=H[1],P=gle({},{disabled:!n}),k=oe(P,2),A=k[0],F=k[1],V=i.useRef(C3());i.useEffect(function(){xW+=0},[]);var U=ACr({request:$,params:w,proFieldKey:O}),K=oe(U,1),Y=K[0],X=i.useContext(er.ConfigContext),te=X.getPrefixCls,Q=te("pro-form"),J=Da("ProForm",function(Se){return Z({},".".concat(Q),Z({},"> div:not(".concat(Se.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),ae=J.wrapSSR,ne=J.hashId,ie=i.useState(function(){return n?Fh(n,A,"get"):{}}),de=oe(ie,2),se=de[0],ve=de[1],me=i.useRef({}),le=i.useRef({}),pe=pl(function(Se,xe,be){return YEr(TCr(Se,m,le.current,xe,be),me.current,xe)});i.useEffect(function(){s||ve({})},[s]);var ge=pl(function(){return z(z({},A),r)});i.useEffect(function(){n&&F(Fh(n,ge(),"set"))},[r,ge,n]);var $e=i.useMemo(function(){if(!(typeof window>"u")&&b&&["DrawerForm"].includes(b))return function(Se){return Se.parentNode||document.body}},[b]),we=pl(ra($r().mark(function Se(){var xe,be,Ce,Ee,Oe,We,_e;return $r().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(_.onFinish){Re.next=2;break}return Re.abrupt("return");case 2:if(!j){Re.next=4;break}return Re.abrupt("return");case 4:return Re.prev=4,Ce=B==null||(xe=B.current)===null||xe===void 0||(be=xe.getFieldsFormatValue)===null||be===void 0?void 0:be.call(xe),Ee=_.onFinish(Ce),Ee instanceof Promise&&T(!0),Re.next=10,Ee;case 10:n&&(_e=Object.keys(B==null||(Oe=B.current)===null||Oe===void 0||(We=Oe.getFieldsFormatValue)===null||We===void 0?void 0:We.call(Oe,void 0,!1)).reduce(function(Me,Be){var je;return z(z({},Me),{},Z({},Be,(je=Ce[Be])!==null&&je!==void 0?je:void 0))},r),Object.keys(A).forEach(function(Me){_e[Me]!==!1&&_e[Me]!==0&&!_e[Me]&&(_e[Me]=void 0)}),F(Fh(n,_e,"set"))),T(!1),Re.next=18;break;case 14:Re.prev=14,Re.t0=Re.catch(4),console.log(Re.t0),T(!1);case 18:case"end":return Re.stop()}},Se,null,[[4,14]])})));return i.useImperativeHandle(p,function(){return B.current},[!Y]),!Y&&e.request?q.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:q.jsx(q1,{})}):ae(q.jsx(X6.Provider,{value:{mode:e.readonly?"read":"edit"},children:q.jsx(sCr,{needDeps:!0,children:q.jsx(A6.Provider,{value:{formRef:B,fieldProps:u,proFieldProps:d,formItemProps:f,groupProps:v,formComponentType:b,getPopupContainer:$e,formKey:V.current,setFieldValueType:function(xe,be){var Ce=be.valueType,Ee=Ce===void 0?"text":Ce,Oe=be.dateFormat,We=be.transform;Array.isArray(xe)&&(me.current=Kn(me.current,xe,We),le.current=Kn(le.current,xe,{valueType:Ee,dateFormat:Oe}))}},children:q.jsx(t4.Provider,{value:{},children:q.jsx(ja,z(z({onKeyPress:function(xe){if(a&&xe.key==="Enter"){var be;(be=B.current)===null||be===void 0||be.submit()}},autoComplete:"off",form:g},br(_,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(xe){B.current&&(B.current.nativeElement=xe==null?void 0:xe.nativeElement)},initialValues:l?z(z(z({},C),Y),se):z(z(z({},se),C),Y),onValuesChange:function(xe,be){var Ce;_==null||(Ce=_.onValuesChange)===null||Ce===void 0||Ce.call(_,pe(xe,!!S),pe(be,!!S))},className:ue(e.className,Q,ne),onFinish:we,children:q.jsx(AKr,z(z({transformKey:pe,autoComplete:"off",loading:j,onUrlSearchChange:F},e),{},{formRef:B,initialValues:z(z({},C),Y)}))}))})})})}))}var HKr=function(t){return Z(Z({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),Z({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function BKr(e){return Da("LightWrapper",function(t){var r=z(z({},t),{},{componentCls:".".concat(e)});return[HKr(r)]})}var VKr=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],jKr=function(t){var r=t.label,n=t.size,a=t.disabled,o=t.onChange,l=t.className,c=t.style,s=t.children,u=t.valuePropName,d=t.placeholder,f=t.labelFormatter,v=t.bordered,h=t.footerRender,m=t.allowClear,p=t.otherFieldProps,g=t.valueType,b=t.placement,y=at(t,VKr),S=i.useContext(er.ConfigContext),$=S.getPrefixCls,w=$("pro-field-light-wrapper"),C=BKr(w),E=C.wrapSSR,O=C.hashId,R=i.useState(t[u]),I=oe(R,2),_=I[0],B=I[1],D=qt(!1),H=oe(D,2),j=H[0],T=H[1],P=function(){for(var V,U=arguments.length,K=new Array(U),Y=0;Y div":{width:"100%"}}})),"@media (min-width: ".concat(t.screenMDMin,"px)"),Z({},t.componentCls,{"&-left":{backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}})),"@media (max-width: ".concat(t.screenSM,"px)"),Z({},t.componentCls,{"&-main":{width:"95%",maxWidth:"328px"}}))};function UKr(e){return Da("LoginFormPage",function(t){var r=z(z({},t),{},{componentCls:".".concat(e)});return[WKr(r)]})}var KKr=["logo","message","style","activityConfig","backgroundImageUrl","backgroundVideoUrl","title","subTitle","actions","children","containerStyle","otherStyle","mainStyle"];function YKr(e){var t=e.logo,r=e.message,n=e.style,a=e.activityConfig,o=e.backgroundImageUrl,l=e.backgroundVideoUrl,c=e.title,s=e.subTitle,u=e.actions,d=e.children,f=e.containerStyle,v=e.otherStyle,h=e.mainStyle,m=at(e,KKr),p=Pn(),g=function(){var I,_;return m.submitter===!1||((I=m.submitter)===null||I===void 0?void 0:I.submitButtonProps)===!1?!1:z({size:"large",style:{width:"100%"}},(_=m.submitter)===null||_===void 0?void 0:_.submitButtonProps)},b=z(z({searchConfig:{submitText:p.getMessage("loginForm.submitText","登录")},render:function(I,_){return _.pop()}},m.submitter),{},{submitButtonProps:g()}),y=i.useContext(er.ConfigContext),S=y.getPrefixCls("pro-form-login-page"),$=UKr(S),w=$.wrapSSR,C=$.hashId,E=function(I){return"".concat(S,"-").concat(I," ").concat(C).trim()},O=i.useMemo(function(){return t?typeof t=="string"?q.jsx("img",{src:t}):t:null},[t]);return w(q.jsxs("div",{className:ue(S,C),style:z(z({},n),{},{position:"relative",backgroundImage:o?'url("'.concat(o,'")'):void 0}),children:[l?q.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",overflow:"hidden",height:"100%",zIndex:1,pointerEvents:"none"},children:q.jsx("video",{src:l,controls:!1,autoPlay:!0,playsInline:!0,loop:!0,muted:!0,crossOrigin:"anonymous",style:{width:"100%",height:"100%",objectFit:"cover"}})}):null,q.jsxs("div",{className:ue(S,C),children:[q.jsx("div",{className:E("notice"),children:a&&q.jsxs("div",{className:E("notice-activity"),style:a.style,children:[a.title&&q.jsxs("div",{className:E("notice-activity-title"),children:[" ",a.title," "]}),a.subTitle&&q.jsx("div",{className:E("notice-activity-subTitle"),children:a.subTitle}),a.action&&q.jsx("div",{className:E("notice-activity-action"),children:a.action})]})}),q.jsx("div",{className:E("left"),children:q.jsxs("div",{className:E("container"),style:f,children:[q.jsxs("div",{className:E("top"),children:[c||O?q.jsxs("div",{className:E("header"),children:[O?q.jsx("span",{className:E("logo"),children:O}):null,c?q.jsx("span",{className:E("title"),children:c}):null]}):null,s?q.jsx("div",{className:E("desc"),children:s}):null]}),q.jsxs("div",{className:E("main"),style:h,children:[q.jsxs(bs,z(z({isKeyPressSubmit:!0},m),{},{submitter:b,children:[r,d]})),u?q.jsx("div",{className:E("other"),style:v,children:u}):null]})]})})]})]}))}var GKr=function(t){return Z({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function qKr(e){return Da("ProLayoutFooter",function(t){var r=z(z({},t),{},{componentCls:".".concat(e)});return[GKr(r)]})}var XKr=function(t){var r=t.className,n=t.prefixCls,a=t.links,o=t.copyright,l=t.style,c=i.useContext(er.ConfigContext),s=c.getPrefixCls(n||"pro-global-footer"),u=qKr(s),d=u.wrapSSR,f=u.hashId;return(a==null||a===!1||Array.isArray(a)&&a.length===0)&&(o==null||o===!1)?null:d(q.jsxs("div",{className:ue(s,f,r),style:l,children:[a&&q.jsx("div",{className:"".concat(s,"-list ").concat(f).trim(),children:a.map(function(v){return q.jsx("a",{className:"".concat(s,"-list-link ").concat(f).trim(),title:v.key,target:v.blankTarget?"_blank":"_self",href:v.href,rel:"noreferrer",children:v.title},v.key)})}),o&&q.jsx("div",{className:"".concat(s,"-copyright ").concat(f).trim(),children:o})]}))},ZKr=g2t.Footer,QKr=function(t){var r=t.links,n=t.copyright,a=t.style,o=t.className,l=t.prefixCls;return q.jsx(ZKr,{className:o,style:z({padding:0},a),children:q.jsx(XKr,{links:r,prefixCls:l,copyright:n===!1?null:q.jsxs(i.Fragment,{children:[q.jsx(Aoe,{})," ",n]})})})},Hen=function e(t){return(t||[]).reduce(function(r,n){if(n.key&&r.push(n.key),n.children||n.routes){var a=r.concat(e(n.children||n.routes)||[]);return a}return r},[])},OW={techBlue:"#1677FF",daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function Fce(e){return e&&OW[e]?OW[e]:e||""}function JKr(e){return e.map(function(t){var r=t.children||[],n=z({},t);if(!n.children&&n.routes&&(n.children=n.routes),!n.name||n.hideInMenu)return null;if(n&&n!==null&&n!==void 0&&n.children){if(!n.hideChildrenInMenu&&r.some(function(a){return a&&a.name&&!a.hideInMenu}))return z(z({},t),{},{children:JKr(r)});delete n.children}return delete n.routes,n}).filter(function(t){return t})}var r4={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1};const eYr={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},tYr=z({},eYr),rYr={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},nYr=z({},rYr),aYr={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},oYr=z({},aYr),iYr={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},lYr=z({},iYr),cYr={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},sYr=z({},cYr);var EW={"zh-CN":lYr,"zh-TW":sYr,"en-US":tYr,"it-IT":nYr,"ko-KR":oYr},kh=function(){if(!g0())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},uYr=function(){var t=kh();return EW[t]||EW["zh-CN"]},l$=function(t){var r=t.value,n=t.configType,a=t.onChange,o=t.list,l=t.prefixCls,c=t.hashId,s="".concat(l,"-block-checkbox"),u=i.useMemo(function(){var d=(o||[]).map(function(f){return q.jsx(vi,{title:f.title,children:q.jsxs("div",{className:ue(c,"".concat(s,"-item"),"".concat(s,"-item-").concat(f.key),"".concat(s,"-").concat(n,"-item")),onClick:function(){return a(f.key)},children:[q.jsx(C6,{className:"".concat(s,"-selectIcon ").concat(c).trim(),style:{display:r===f.key?"block":"none"}}),f!=null&&f.icon?q.jsx("div",{className:"".concat(s,"-icon ").concat(c).trim(),children:f.icon}):null]})},f.key)});return d},[r,o==null?void 0:o.length,a]);return q.jsx("div",{className:ue(s,c),children:u})},DT=function(t){var r=W.cloneElement(t.action,{disabled:t.disabled});return q.jsx(vi,{title:t.disabled?t.disabledReason:"",placement:"left",children:q.jsx(sp.Item,{actions:[r],children:q.jsx("span",{style:{opacity:t.disabled?.5:1},children:t.title})})})},dYr=function(t){var r=t.settings,n=t.prefixCls,a=t.changeSetting,o=t.hashId,l=LT(),c=r||r4,s=c.contentWidth,u=c.splitMenus,d=c.fixedHeader,f=c.layout,v=c.fixSiderbar;return q.jsx(sp,{className:"".concat(n,"-list ").concat(o).trim(),split:!1,dataSource:[{title:l({id:"app.setting.content-width",defaultMessage:"Content Width"}),action:q.jsxs(s1,{value:s||"Fixed",size:"small",className:"content-width ".concat(o).trim(),onSelect:function(m){a("contentWidth",m)},style:{width:80},children:[f==="side"?null:q.jsx(s1.Option,{value:"Fixed",children:l({id:"app.setting.content-width.fixed",defaultMessage:"Fixed"})}),q.jsx(s1.Option,{value:"Fluid",children:l({id:"app.setting.content-width.fluid",defaultMessage:"Fluid"})})]})},{title:l({id:"app.setting.fixedheader",defaultMessage:"Fixed Header"}),action:q.jsx(h0,{size:"small",className:"fixed-header",checked:!!d,onChange:function(m){a("fixedHeader",m)}})},{title:l({id:"app.setting.fixedsidebar",defaultMessage:"Fixed Sidebar"}),disabled:f==="top",disabledReason:l({id:"app.setting.fixedsidebar.hint",defaultMessage:"Works on Side Menu Layout"}),action:q.jsx(h0,{size:"small",className:"fix-siderbar",checked:!!v,onChange:function(m){return a("fixSiderbar",m)}})},{title:l({id:"app.setting.splitMenus"}),disabled:f!=="mix",action:q.jsx(h0,{size:"small",checked:!!u,className:"split-menus",onChange:function(m){a("splitMenus",m)}})}],renderItem:DT})},fYr=function(t){var r=t.settings,n=t.prefixCls,a=t.changeSetting,o=t.hashId,l=LT(),c=["header","footer","menu","menuHeader"];return q.jsx(sp,{className:"".concat(n,"-list ").concat(o).trim(),split:!1,renderItem:DT,dataSource:c.map(function(s){return{title:l({id:"app.setting.regionalsettings.".concat(s)}),action:q.jsx(h0,{size:"small",className:"regional-".concat(s," ").concat(o).trim(),checked:r["".concat(s,"Render")]||r["".concat(s,"Render")]===void 0,onChange:function(d){return a("".concat(s,"Render"),d===!0?void 0:!1)}})}})})},vYr=["color","check"],hYr=W.forwardRef(function(e,t){var r=e.color,n=e.check,a=at(e,vYr);return q.jsx("div",z(z({},a),{},{style:{backgroundColor:r},ref:t,children:n?q.jsx(C6,{}):""}))}),mYr=function(t){var r=t.value,n=t.colorList,a=t.onChange,o=t.prefixCls,l=t.formatMessage,c=t.hashId;if(!n||(n==null?void 0:n.length)<1)return null;var s="".concat(o,"-theme-color");return q.jsx("div",{className:"".concat(s," ").concat(c).trim(),children:n==null?void 0:n.map(function(u){var d=u.key,f=u.color,v=u.title;return d?q.jsx(vi,{title:v??l({id:"app.setting.themecolor.".concat(d)}),children:q.jsx(hYr,{className:"".concat(s,"-block ").concat(c).trim(),color:f,check:r===f,onClick:function(){return a&&a(f)}})},f):null})})};function gYr(){return q.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",viewBox:"0 0 104 104",children:[q.jsxs("defs",{children:[q.jsx("rect",{id:"path-1",width:"90",height:"72",x:"0",y:"0",rx:"10"}),q.jsxs("filter",{id:"filter-2",width:"152.2%",height:"165.3%",x:"-26.1%",y:"-27.1%",filterUnits:"objectBoundingBox",children:[q.jsx("feMorphology",{in:"SourceAlpha",radius:"0.25",result:"shadowSpreadOuter1"}),q.jsx("feOffset",{dy:"1",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),q.jsx("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),q.jsx("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),q.jsx("feMorphology",{in:"SourceAlpha",radius:"1",result:"shadowSpreadOuter2"}),q.jsx("feOffset",{dy:"2",in:"shadowSpreadOuter2",result:"shadowOffsetOuter2"}),q.jsx("feGaussianBlur",{in:"shadowOffsetOuter2",result:"shadowBlurOuter2",stdDeviation:"4"}),q.jsx("feColorMatrix",{in:"shadowBlurOuter2",result:"shadowMatrixOuter2",values:"0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0"}),q.jsx("feMorphology",{in:"SourceAlpha",radius:"2",result:"shadowSpreadOuter3"}),q.jsx("feOffset",{dy:"4",in:"shadowSpreadOuter3",result:"shadowOffsetOuter3"}),q.jsx("feGaussianBlur",{in:"shadowOffsetOuter3",result:"shadowBlurOuter3",stdDeviation:"8"}),q.jsx("feColorMatrix",{in:"shadowBlurOuter3",result:"shadowMatrixOuter3",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),q.jsxs("feMerge",{children:[q.jsx("feMergeNode",{in:"shadowMatrixOuter1"}),q.jsx("feMergeNode",{in:"shadowMatrixOuter2"}),q.jsx("feMergeNode",{in:"shadowMatrixOuter3"})]})]})]}),q.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[q.jsxs("g",{children:[q.jsx("use",{fill:"#000",filter:"url(#filter-2)",xlinkHref:"#path-1"}),q.jsx("use",{fill:"#F0F2F5",xlinkHref:"#path-1"})]}),q.jsx("path",{fill:"#FFF",d:"M25 15h65v47c0 5.523-4.477 10-10 10H25V15z"}),q.jsx("path",{stroke:"#E6EAF0",strokeLinecap:"square",d:"M0.5 15.5L90.5 15.5"}),q.jsx("rect",{width:"14",height:"3",x:"4",y:"26",fill:"#D7DDE6",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"4",y:"32",fill:"#D7DDE6",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"4",y:"42",fill:"#E6EAF0",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"4",y:"21",fill:"#E6EAF0",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"4",y:"53",fill:"#D7DDE6",rx:"1.5"}),q.jsx("rect",{width:"14",height:"3",x:"4",y:"47",fill:"#D7DDE6",rx:"1.5"}),q.jsx("path",{stroke:"#E6EAF0",strokeLinecap:"square",d:"M25.5 15.5L25.5 72.5"})]})]})}function pYr(){return q.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",viewBox:"0 0 104 104",children:[q.jsxs("defs",{children:[q.jsx("rect",{id:"path-1",width:"90",height:"72",x:"0",y:"0",rx:"10"}),q.jsxs("filter",{id:"filter-2",width:"152.2%",height:"165.3%",x:"-26.1%",y:"-27.1%",filterUnits:"objectBoundingBox",children:[q.jsx("feMorphology",{in:"SourceAlpha",radius:"0.25",result:"shadowSpreadOuter1"}),q.jsx("feOffset",{dy:"1",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),q.jsx("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),q.jsx("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),q.jsx("feMorphology",{in:"SourceAlpha",radius:"1",result:"shadowSpreadOuter2"}),q.jsx("feOffset",{dy:"2",in:"shadowSpreadOuter2",result:"shadowOffsetOuter2"}),q.jsx("feGaussianBlur",{in:"shadowOffsetOuter2",result:"shadowBlurOuter2",stdDeviation:"4"}),q.jsx("feColorMatrix",{in:"shadowBlurOuter2",result:"shadowMatrixOuter2",values:"0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0"}),q.jsx("feMorphology",{in:"SourceAlpha",radius:"2",result:"shadowSpreadOuter3"}),q.jsx("feOffset",{dy:"4",in:"shadowSpreadOuter3",result:"shadowOffsetOuter3"}),q.jsx("feGaussianBlur",{in:"shadowOffsetOuter3",result:"shadowBlurOuter3",stdDeviation:"8"}),q.jsx("feColorMatrix",{in:"shadowBlurOuter3",result:"shadowMatrixOuter3",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),q.jsxs("feMerge",{children:[q.jsx("feMergeNode",{in:"shadowMatrixOuter1"}),q.jsx("feMergeNode",{in:"shadowMatrixOuter2"}),q.jsx("feMergeNode",{in:"shadowMatrixOuter3"})]})]})]}),q.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[q.jsxs("g",{children:[q.jsx("use",{fill:"#000",filter:"url(#filter-2)",xlinkHref:"#path-1"}),q.jsx("use",{fill:"#F0F2F5",xlinkHref:"#path-1"})]}),q.jsx("path",{fill:"#FFF",d:"M26 0h55c5.523 0 10 4.477 10 10v8H26V0z"}),q.jsx("path",{fill:"#001529",d:"M10 0h19v72H10C4.477 72 0 67.523 0 62V10C0 4.477 4.477 0 10 0z"}),q.jsx("rect",{width:"14",height:"3",x:"5",y:"18",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),q.jsx("rect",{width:"14",height:"3",x:"5",y:"42",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"9",y:"24",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"9",y:"48",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),q.jsx("rect",{width:"9",height:"3",x:"9",y:"36",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),q.jsx("rect",{width:"14",height:"3",x:"9",y:"30",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),q.jsx("rect",{width:"14",height:"3",x:"9",y:"54",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"})]})]})}var yYr=function(t){return Z(Z({},"".concat(t.componentCls,"-handle"),{position:"fixed",insetBlockStart:"240px",insetInlineEnd:"0px",zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:t.colorPrimary,borderEndStartRadius:t.borderRadiusLG,borderStartStartRadius:t.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"}),t.componentCls,{"&-content":{position:"relative",minHeight:"100%",color:t.colorText},"&-body-title":{marginBlock:t.marginXS,fontSize:"14px",lineHeight:"22px",color:t.colorTextHeading},"&-block-checkbox":{display:"flex",minHeight:42,gap:t.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:t.boxShadow,cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#fff","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-dark,&-side":{backgroundColor:t.colorBgElevated,"&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:t.colorBgContainer}},"&-top":{backgroundColor:t.colorBgElevated,"&::before":{backgroundColor:"transparent"},"&::after":{backgroundColor:"#001529"}},"&-mix":{backgroundColor:t.colorBgElevated,"&::before":{backgroundColor:t.colorBgContainer},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:t.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:t.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",overflow:"hidden","& &-block":{float:"left",width:"20px",height:"20px",marginBlockStart:8,marginInlineEnd:8,color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":Z({},"li".concat(t.antCls,"-list-item"),{paddingInline:0,paddingBlock:8})})};function bYr(e){return Da("ProLayoutSettingDrawer",function(t){var r=z(z({},t),{},{componentCls:".".concat(e)});return[yYr(r)]})}var Od=function(t){var r=t.children,n=t.hashId,a=t.prefixCls,o=t.title;return q.jsxs("div",{style:{marginBlockEnd:12},children:[q.jsx("h3",{className:"".concat(a,"-body-title ").concat(n).trim(),children:o}),r]})},SYr=function(t){var r={};return Object.keys(t).forEach(function(n){t[n]!==r4[n]&&n!=="collapse"?r[n]=t[n]:r[n]=void 0,n.includes("Render")&&(r[n]=t[n]===!1?!1:void 0)}),r.menu=void 0,r},LT=function(){var t=function(n){var a=n.id,o=uYr();return o[a]};return t},$Yr=function(t,r,n){if(g0()){var a={};Object.keys(t).forEach(function(l){if(r4[l]||r4[l]===void 0){if(l==="colorPrimary"){a[l]=Fce(t[l]);return}a[l]=t[l]}});var o=vT({},r,a);delete o.menu,delete o.title,delete o.iconfontUrl,n==null||n(o)}},RW=function(t,r){return g0()?z(z(z({},r4),r||{}),t):r4},wYr=function(t){return JSON.stringify(br(z(z({},t),{},{colorPrimary:t.colorPrimary}),["colorWeak"]),null,2)},CYr=function(t){var r=t.defaultSettings,n=r===void 0?void 0:r,a=t.settings,o=a===void 0?void 0:a,l=t.hideHintAlert,c=t.hideCopyButton,s=t.colorList,u=s===void 0?[{key:"techBlue",color:"#1677FF"},{key:"daybreak",color:"#1890ff"},{key:"dust",color:"#F5222D"},{key:"volcano",color:"#FA541C"},{key:"sunset",color:"#FAAD14"},{key:"cyan",color:"#13C2C2"},{key:"green",color:"#52C41A"},{key:"geekblue",color:"#2F54EB"},{key:"purple",color:"#722ED1"}]:s,d=t.getContainer,f=t.onSettingChange,v=t.enableDarkTheme,h=t.prefixCls,m=h===void 0?"ant-pro":h,p=t.pathname,g=p===void 0?g0()?window.location.pathname:"":p,b=t.disableUrlParams,y=b===void 0?!0:b,S=t.themeOnly,$=t.drawerProps,w=i.useRef(!0),C=qt(!1,{value:t.collapse,onChange:t.onCollapseChange}),E=oe(C,2),O=E[0],R=E[1],I=i.useState(kh()),_=oe(I,2),B=_[0],D=_[1],H=gle({},{disabled:y}),j=oe(H,2),T=j[0],P=j[1],k=qt(function(){return RW(T,o||n)},{value:o,onChange:f}),A=oe(k,2),F=A[0],V=A[1],U=F||{},K=U.navTheme,Y=U.colorPrimary,X=U.siderMenuType,te=U.layout,Q=U.colorWeak;i.useEffect(function(){var me=function(){B!==kh()&&D(kh())};return g0()?($Yr(RW(T,o),F,V),window.document.addEventListener("languagechange",me,{passive:!0}),function(){return window.document.removeEventListener("languagechange",me)}):function(){return null}},[]),i.useEffect(function(){bp(Kc,"5.0.0")<0&&er.config({theme:{primaryColor:F.colorPrimary}})},[F.colorPrimary,F.navTheme]);var J=function(le,pe){var ge={};if(ge[le]=pe,le==="layout"&&(ge.contentWidth=pe==="top"?"Fixed":"Fluid"),le==="layout"&&pe!=="mix"&&(ge.splitMenus=!1),le==="layout"&&pe==="mix"&&(ge.navTheme="light"),le==="colorWeak"&&pe===!0){var $e=document.querySelector("body");$e&&($e.dataset.prosettingdrawer=$e.style.filter,$e.style.filter="invert(80%)")}if(le==="colorWeak"&&pe===!1){var we=document.querySelector("body");we&&(we.style.filter=we.dataset.prosettingdrawer||"none",delete we.dataset.prosettingdrawer)}delete ge.menu,delete ge.title,delete ge.iconfontUrl,delete ge.logo,delete ge.pwa,V(z(z({},F),ge))},ae=LT();i.useEffect(function(){if(g0()&&!y){if(w.current){w.current=!1;return}var me=new URLSearchParams(window.location.search),le=Object.fromEntries(me.entries()),pe=SYr(z(z({},le),F));delete pe.logo,delete pe.menu,delete pe.title,delete pe.iconfontUrl,delete pe.pwa,P(pe)}},[P,F,T,g,y]);var ne="".concat(m,"-setting-drawer"),ie=bYr(ne),de=ie.wrapSSR,se=ie.hashId,ve=uT(O);return de(q.jsxs(q.Fragment,{children:[q.jsx("div",{className:"".concat(ne,"-handle ").concat(se).trim(),onClick:function(){return R(!O)},style:{width:48,height:48},children:O?q.jsx(bc,{style:{color:"#fff",fontSize:20}}):q.jsx(Goe,{style:{color:"#fff",fontSize:20}})}),q.jsx(wdt,z(z(z({},ve),{},{width:300,onClose:function(){return R(!1)},closable:!1,placement:"right",getContainer:d,style:{zIndex:999}},$),{},{children:q.jsxs("div",{className:"".concat(ne,"-drawer-content ").concat(se).trim(),children:[q.jsx(Od,{title:ae({id:"app.setting.pagestyle",defaultMessage:"Page style setting"}),hashId:se,prefixCls:ne,children:q.jsx(l$,{hashId:se,prefixCls:ne,list:[{key:"light",title:ae({id:"app.setting.pagestyle.light",defaultMessage:"亮色菜单风格"})},{key:"realDark",title:ae({id:"app.setting.pagestyle.realdark",defaultMessage:"暗色菜单风格"})}].filter(function(me){return!(me.key==="dark"&&F.layout==="mix"||me.key==="realDark"&&!v)}),value:K,configType:"theme",onChange:function(le){return J("navTheme",le)}},"navTheme")}),u!==!1&&q.jsx(Od,{hashId:se,title:ae({id:"app.setting.themecolor",defaultMessage:"Theme color"}),prefixCls:ne,children:q.jsx(mYr,{hashId:se,prefixCls:ne,colorList:u,value:Fce(Y),formatMessage:ae,onChange:function(le){return J("colorPrimary",le)}})}),!S&&q.jsxs(q.Fragment,{children:[q.jsx(af,{}),q.jsx(Od,{hashId:se,prefixCls:ne,title:ae({id:"app.setting.navigationmode"}),children:q.jsx(l$,{prefixCls:ne,value:te,hashId:se,configType:"layout",list:[{key:"side",title:ae({id:"app.setting.sidemenu"})},{key:"top",title:ae({id:"app.setting.topmenu"})},{key:"mix",title:ae({id:"app.setting.mixmenu"})}],onChange:function(le){return J("layout",le)}},"layout")}),F.layout=="side"||F.layout=="mix"?q.jsx(Od,{hashId:se,prefixCls:ne,title:ae({id:"app.setting.sidermenutype"}),children:q.jsx(l$,{prefixCls:ne,value:X,hashId:se,configType:"siderMenuType",list:[{key:"sub",icon:q.jsx(pYr,{}),title:ae({id:"app.setting.sidermenutype-sub"})},{key:"group",icon:q.jsx(gYr,{}),title:ae({id:"app.setting.sidermenutype-group"})}],onChange:function(le){return J("siderMenuType",le)}},"siderMenuType")}):null,q.jsx(dYr,{prefixCls:ne,hashId:se,settings:F,changeSetting:J}),q.jsx(af,{}),q.jsx(Od,{hashId:se,prefixCls:ne,title:ae({id:"app.setting.regionalsettings"}),children:q.jsx(fYr,{hashId:se,prefixCls:ne,settings:F,changeSetting:J})}),q.jsx(af,{}),q.jsx(Od,{hashId:se,prefixCls:ne,title:ae({id:"app.setting.othersettings"}),children:q.jsx(sp,{className:"".concat(ne,"-list ").concat(se).trim(),split:!1,size:"small",renderItem:DT,dataSource:[{title:ae({id:"app.setting.weakmode"}),action:q.jsx(h0,{size:"small",className:"color-weak",checked:!!Q,onChange:function(le){J("colorWeak",le)}})}]})}),l&&c?null:q.jsx(af,{}),l?null:q.jsx(YGe,{type:"warning",message:ae({id:"app.setting.production.hint"}),icon:q.jsx(Koe,{}),showIcon:!0,style:{marginBlockEnd:16}}),c?null:q.jsx(Cl,{block:!0,icon:q.jsx(fp,{}),style:{marginBlockEnd:24},onClick:ra($r().mark(function me(){return $r().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.prev=0,pe.next=3,navigator.clipboard.writeText(wYr(F));case 3:Ns.success(ae({id:"app.setting.copyinfo"})),pe.next=8;break;case 6:pe.prev=6,pe.t0=pe.catch(0);case 8:case"end":return pe.stop()}},me,null,[[0,6]])})),children:ae({id:"app.setting.copy"})})]})]})}))]}))},yo={};function sO(e){"@babel/helpers - typeof";return sO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sO(e)}Object.defineProperty(yo,"__esModule",{value:!0});var kce=yo.pathToRegexp=yo.tokensToRegexp=yo.regexpToFunction=yo.match=yo.tokensToFunction=yo.compile=yo.parse=void 0;function xYr(e){for(var t=[],r=0;r=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||l===95){a+=e[o++];continue}break}if(!a)throw new TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:a}),r=o;continue}if(n==="("){var c=1,s="",o=r+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '+o);for(;o-1:$===void 0;a||(h+="(?:"+v+"(?="+f+"))?"),w||(h+="(?="+v+"|"+f+")")}return new RegExp(h,NT(r))}yo.tokensToRegexp=Ace;function HT(e,t,r){return e instanceof RegExp?RYr(e,t):Array.isArray(e)?IYr(e,t,r):MYr(e,t,r)}kce=yo.pathToRegexp=HT;function tc(e,t){return t>>>e|t<<32-e}function TYr(e,t,r){return e&t^~e&r}function PYr(e,t,r){return e&t^e&r^t&r}function _Yr(e){return tc(2,e)^tc(13,e)^tc(22,e)}function zYr(e){return tc(6,e)^tc(11,e)^tc(25,e)}function FYr(e){return tc(7,e)^tc(18,e)^e>>>3}function kYr(e){return tc(17,e)^tc(19,e)^e>>>10}function DYr(e,t){return e[t&15]+=kYr(e[t+14&15])+e[t+9&15]+FYr(e[t+1&15])}var LYr=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],bn,to,fa,AYr="0123456789abcdef";function IW(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}function NYr(){bn=new Array(8),to=new Array(2),fa=new Array(64),to[0]=to[1]=0,bn[0]=1779033703,bn[1]=3144134277,bn[2]=1013904242,bn[3]=2773480762,bn[4]=1359893119,bn[5]=2600822924,bn[6]=528734635,bn[7]=1541459225}function uO(){var e,t,r,n,a,o,l,c,s,u,d=new Array(16);e=bn[0],t=bn[1],r=bn[2],n=bn[3],a=bn[4],o=bn[5],l=bn[6],c=bn[7];for(var f=0;f<16;f++)d[f]=fa[(f<<2)+3]|fa[(f<<2)+2]<<8|fa[(f<<2)+1]<<16|fa[f<<2]<<24;for(var v=0;v<64;v++)s=c+zYr(a)+TYr(a,o,l)+LYr[v],v<16?s+=d[v]:s+=DYr(d,v),u=_Yr(e)+PYr(e,t,r),c=l,l=o,o=a,a=IW(n,s),n=r,r=t,t=e,e=IW(s,u);bn[0]+=e,bn[1]+=t,bn[2]+=r,bn[3]+=n,bn[4]+=a,bn[5]+=o,bn[6]+=l,bn[7]+=c}function HYr(e,t){var r,n,a=0;n=to[0]>>3&63;var o=t&63;for((to[0]+=t<<3)>29,r=0;r+63>3&63;if(fa[e++]=128,e<=56)for(var t=e;t<56;t++)fa[t]=0;else{for(var r=e;r<64;r++)fa[r]=0;uO();for(var n=0;n<56;n++)fa[n]=0}fa[56]=to[1]>>>24&255,fa[57]=to[1]>>>16&255,fa[58]=to[1]>>>8&255,fa[59]=to[1]&255,fa[60]=to[0]>>>24&255,fa[61]=to[0]>>>16&255,fa[62]=to[0]>>>8&255,fa[63]=to[0]&255,uO()}function VYr(){for(var e=new String,t=0;t<8;t++)for(var r=28;r>=0;r-=4)e+=AYr.charAt(bn[t]>>>r&15);return e}function jYr(e){return NYr(),HYr(e,e.length),BYr(),VYr()}function dO(e){"@babel/helpers - typeof";return dO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dO(e)}var WYr=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function UYr(e,t){return GYr(e)||YYr(e,t)||BT(e,t)||KYr()}function KYr(){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 YYr(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,l,c;try{for(r=r.call(e);!(a=(l=r.next()).done)&&(n.push(l.value),!(t&&n.length===t));a=!0);}catch(s){o=!0,c=s}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw c}}return n}}function GYr(e){if(Array.isArray(e))return e}function qYr(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=BT(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,l=!1,c;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){l=!0,c=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function XYr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IW(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rGr(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function T3(e,t){return T3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},T3(e,t)}function P3(e){return P3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},P3(e)}function TW(e){return oGr(e)||aGr(e)||BT(e)||nGr()}function nGr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BT(e,t){if(e){if(typeof e=="string")return vO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vO(e,t)}}function aGr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oGr(e){if(Array.isArray(e))return vO(e)}function vO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lGr(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o=0)&&(r[a]=e[a]);return r}function PW(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function va(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||r).startsWith("/")||Bce(t)?t:"/".concat(r,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},dGr=function(t,r){var n=t.menu,a=n===void 0?{}:n,o=t.indexRoute,l=t.path,c=l===void 0?"":l,s=t.children||[],u=a.name,d=u===void 0?t.name:u,f=a.icon,v=f===void 0?t.icon:f,h=a.hideChildren,m=h===void 0?t.hideChildren:h,p=a.flatMenu,g=p===void 0?t.flatMenu:p,b=o&&Object.keys(o).join(",")!=="redirect"?[va({path:c,menu:a},o)].concat(s||[]):s,y=va({},t);if(d&&(y.name=d),v&&(y.icon=v),b&&b.length){if(m)return delete y.children,y;var S=VT(va(va({},r),{},{data:b}),t);if(g)return S;delete y[Zl]}return y},v1=function(t){return Array.isArray(t)&&t.length>0};function VT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},r=e.data,n=e.formatMessage,a=e.parentName,o=e.locale;return!r||!Array.isArray(r)?[]:r.filter(function(l){return l?v1(l.children)||l.path||l.originPath||l.layout?!0:(l.redirect||l.unaccessible,!1):!1}).filter(function(l){var c,s;return!(l==null||(c=l.menu)===null||c===void 0)&&c.name||l!=null&&l.flatMenu||!(l==null||(s=l.menu)===null||s===void 0)&&s.flatMenu?!0:l.menu!==!1}).map(function(l){var c=va(va({},l),{},{path:l.path||l.originPath});return!c.children&&c[Zl]&&(c.children=c[Zl],delete c[Zl]),c.unaccessible&&delete c.name,c.path==="*"&&(c.path="."),c.path==="/*"&&(c.path="."),!c.path&&c.originPath&&(c.path=c.originPath),c}).map(function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},c=l.children||l[Zl]||[],s=jce(l.path,t?t.path:"/"),u=l.name,d=uGr(l,a||"menu"),f=d!==!1&&o!==!1&&n&&d?n({id:d,defaultMessage:u}):u,v=t.pro_layout_parentKeys,h=v===void 0?[]:v;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var m=iGr(t,WYr),p=new Set([].concat(TW(h),TW(l.parentKeys||[])));t.key&&p.add(t.key);var g=va(va(va({},m),{},{menu:void 0},l),{},{path:s,locale:d,key:l.key||sGr(va(va({},l),{},{path:s})),pro_layout_parentKeys:Array.from(p).filter(function(y){return y&&y!=="/"})});if(f?g.name=f:delete g.name,g.menu===void 0&&delete g.menu,v1(c)){var b=VT(va(va({},e),{},{data:c,parentName:d||""}),g);v1(b)&&(g.children=b)}return dGr(g,e)}).flat(1)}var fGr=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(r){return r&&(r.name||v1(r.children))&&!r.hideInMenu&&!r.redirect}).map(function(r){var n=va({},r),a=n.children||r[Zl]||[];if(delete n[Zl],v1(a)&&!n.hideChildrenInMenu&&a.some(function(l){return l&&!!l.name})){var o=e(a);if(o.length)return va(va({},n),{},{children:o})}return va({},r)}).filter(function(r){return r})},vGr=function(e){QYr(r,e);var t=JYr(r);function r(){return XYr(this,r),t.apply(this,arguments)}return ZYr(r,[{key:"get",value:function(a){var o;try{var l=qYr(this.entries()),c;try{for(l.s();!(c=l.n()).done;){var s=UYr(c.value,2),u=s[0],d=s[1],f=jT(u);if(!Bce(u)&&Dce(f,[]).test(a)){o=d;break}}}catch(v){l.e(v)}finally{l.f()}}catch{o=void 0}return o}}]),r}(fO(Map)),hGr=function(t){var r=new vGr,n=function a(o,l){o.forEach(function(c){var s=c.children||c[Zl]||[];v1(s)&&a(s,c);var u=jce(c.path,l?l.path:"/");r.set(jT(u),c)})};return n(t),r},mGr=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(r){var n=r.children||r[Zl];if(v1(n)){var a=e(n);if(a.length)return va({},r)}var o=va({},r);return delete o[Zl],delete o.children,o}).filter(function(r){return r})},gGr=function(t,r,n,a){var o=VT({data:t,formatMessage:n,locale:r}),l=a?mGr(o):fGr(o),c=hGr(o);return{breadcrumb:c,menuData:l}};function pGr(e){return je(e).reduce(function(t,r){var n=oe(r,2),a=n[0],o=n[1];return t[a]=o,t},{})}var yGr=function e(t,r,n,a){var o=gGr(t,(r==null?void 0:r.locale)||!1,n,!0),l=o.menuData,c=o.breadcrumb;return a?e(a(l),r,n,void 0):{breadcrumb:pGr(c),breadcrumbMap:c,menuData:l}};const bGr=()=>{const e=new Date().getFullYear();return q.jsx(q.Fragment,{children:q.jsx(QKr,{copyright:`${e} 法兰完整性管理软件`,style:{background:"transparent"},links:[{key:"Ant Design Pro",title:"Ant Design Pro",href:"https://pro.ant.design",blankTarget:!0},{key:"github",title:q.jsx(joe,{}),href:"https://github.com/ant-design/ant-design-pro",blankTarget:!0},{key:"Ant Design",title:"Ant Design",href:"https://ant.design",blankTarget:!0}]})})};var SGr=function(e){return function(t,r){var n=i.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},hO=function(e,t){return hO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},hO(e,t)};function Ben(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hO(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ol=function(){return ol=Object.assign||function(t){for(var r,n=1,a=arguments.length;n0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ta(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return o}function Ven(){for(var e=0,t=0,r=arguments.length;t-1&&(a=setTimeout(function(){Lh.delete(e)},t)),Lh.set(e,ol(ol({},r),{timer:a}))},MGr=function(e){return Lh.get(e)},Ah=new Map,IGr=function(e){return Ah.get(e)},TGr=function(e,t){Ah.set(e,t),t.then(function(r){return Ah.delete(e),r}).catch(function(){Ah.delete(e)})},Yu={},PGr=function(e,t){Yu[e]&&Yu[e].forEach(function(r){return r(t)})},c$=function(e,t){return Yu[e]||(Yu[e]=[]),Yu[e].push(t),function(){var n=Yu[e].indexOf(t);Yu[e].splice(n,1)}},_Gr=function(e,t){var r=t.cacheKey,n=t.cacheTime,a=n===void 0?5*60*1e3:n,o=t.staleTime,l=o===void 0?0:o,c=t.setCache,s=t.getCache,u=i.useRef(),d=i.useRef(),f=function(h,m){c?c(m):RGr(h,a,m),PGr(h,m.data)},v=function(h,m){return m===void 0&&(m=[]),s?s(m):MGr(h)};return Uce(function(){if(r){var h=v(r);h&&Object.hasOwnProperty.call(h,"data")&&(e.state.data=h.data,e.state.params=h.params,(l===-1||new Date().getTime()-h.time<=l)&&(e.state.loading=!1)),u.current=c$(r,function(m){e.setState({data:m})})}},[]),WT(function(){var h;(h=u.current)===null||h===void 0||h.call(u)}),r?{onBefore:function(h){var m=v(r,h);return!m||!Object.hasOwnProperty.call(m,"data")?{}:l===-1||new Date().getTime()-m.time<=l?{loading:!1,data:m==null?void 0:m.data,error:void 0,returnNow:!0}:{data:m==null?void 0:m.data,error:void 0}},onRequest:function(h,m){var p=IGr(r);return p&&p!==d.current?{servicePromise:p}:(p=h.apply(void 0,oo([],Ta(m),!1)),d.current=p,TGr(r,p),{servicePromise:p})},onSuccess:function(h,m){var p;r&&((p=u.current)===null||p===void 0||p.call(u),f(r,{data:h,params:m,time:new Date().getTime()}),u.current=c$(r,function(g){e.setState({data:g})}))},onMutate:function(h){var m;r&&((m=u.current)===null||m===void 0||m.call(u),f(r,{data:h,params:e.state.params,time:new Date().getTime()}),u.current=c$(r,function(p){e.setState({data:p})}))}}:{}};const zGr=_Gr;var FGr=function(e,t){var r=t.debounceWait,n=t.debounceLeading,a=t.debounceTrailing,o=t.debounceMaxWait,l=i.useRef(),c=i.useMemo(function(){var s={};return n!==void 0&&(s.leading=n),a!==void 0&&(s.trailing=a),o!==void 0&&(s.maxWait=o),s},[n,a,o]);return i.useEffect(function(){if(r){var s=e.runAsync.bind(e);return l.current=hce(function(u){u()},r,c),e.runAsync=function(){for(var u=[],d=0;d-1&&Df.splice(r,1)}}if(Bp){var _W=function(){if(!(!UT()||!WGr()))for(var e=0;e{const[e,t]=lqr(!1),r=()=>{let n=document.documentElement;document.fullscreenElement?document.exitFullscreen().then(()=>{t.setFalse()}):n.requestFullscreen().then(()=>{t.setTrue()})};return q.jsx(q.Fragment,{children:e?q.jsx(Hoe,{title:"退出全屏",onClick:r}):q.jsx(Boe,{title:"全屏显示",onClick:r})})},sqr=e=>typeof window>"u"?[]:e.isMobile?[]:[q.jsx(AI,{onClick:()=>{window.open("/")}},"QuestionCircleOutlined"),q.jsx(vbr,{reload:!1},"SelectLang"),q.jsx(cqr,{},"Fullscreen")],jp={loginApi:"/admin/index/login",logoutApi:"/admin/index/logout",getAdminInfoApi:"/admin/index/getAdminInfo",refreshAdminTokenApi:"/admin/index/refreshToken"};async function uqr(e){return ua(jp.loginApi,{method:"post",data:e})}async function dqr(){return ua(jp.getAdminInfoApi,{method:"get"})}async function fqr(){return ua(jp.refreshAdminTokenApi,{method:"post",headers:{"x-refresh-token":localStorage.getItem("x-refresh-token")||""}})}async function vqr(){return ua(jp.logoutApi,{method:"post"})}const Q4={getUserInfoApi:"/api/user/getUserInfo",loginApi:"/api/index/login",logoutApi:"/api/user/logout",setUserApi:"/api/user/setUserInfo",setPwdApi:"/api/user/setPassword",reTokenApi:"/api/user/refreshToken",getMoneyLogApi:"/api/user/getMoneyLog"};async function hqr(){return ua(Q4.getUserInfoApi,{method:"get"})}async function mqr(){return ua(Q4.reTokenApi,{method:"post",headers:{"x-user-refresh-token":localStorage.getItem("x-user-refresh-token")||""}})}async function gqr(){return ua(Q4.logoutApi,{method:"post"})}async function Wen(e){return ua(Q4.setUserApi,{method:"post",data:e})}async function Uen(e){return ua(Q4.setPwdApi,{method:"post",data:e})}async function Ken(e){return ua(Q4.getMoneyLogApi,{method:"get",params:e})}const pqr=()=>{var a;const{initialState:e}=A4("@@initialState"),t=async()=>{(e==null?void 0:e.app)==="admin"&&localStorage.getItem("x-token")?(await vqr(),localStorage.clear(),window.location.href="/"):(e==null?void 0:e.app)==="api"&&localStorage.getItem("x-user-token")?(await gqr(),localStorage.clear(),window.location.href="/"):(localStorage.clear(),window.location.href="/")};let r=o6();const n=()=>{let o={items:[{key:"logout",icon:q.jsx(Uoe,{}),label:"退出登录",onClick:t}]};return e.app==="admin"&&o.items.unshift({key:"user",icon:q.jsx(UI,{}),label:"用户设置",onClick:()=>r("/admin/setting")}),o};return q.jsx(q.Fragment,{children:e!=null&&e.isLogin?q.jsx(roe,{menu:n(),children:q.jsx(mre,{src:(a=e.currentUser)==null?void 0:a.avatar_url})}):q.jsxs(q.Fragment,{children:[q.jsx(Bi,{type:"link",onClick:()=>r("/client/login"),children:"登录"}),q.jsx(Bi,{type:"link",onClick:()=>r("/client/reg"),children:"注册"})]})})},yqr=()=>{const{initialState:e,setInitialState:t}=A4("@@initialState");return q.jsx(CYr,{getContainer:r=>typeof window>"u"?r:document.getElementById("test-pro-layout"),disableUrlParams:!0,enableDarkTheme:!0,settings:e==null?void 0:e.settings,onSettingChange:r=>{t(n=>({...n,settings:{...e==null?void 0:e.settings,...r}}))}})};const bqr=e=>{const t=us(),r=o6(),[n,a]=i.useState(""),[o,l]=i.useState([{key:"/dashboard/analysis",label:q.jsx(AL,{id:"menu.dashboard.analysis"}),closeIcon:null}]),{initialState:c}=A4("@@initialState"),{breadcrumb:s}=yGr(c==null?void 0:c.menus);i.useEffect(()=>{const v=s[t.pathname];if(!v)return;o.some(m=>m.key===t.pathname)||l([...o,{key:t.pathname,label:v.locale?q.jsx(AL,{id:v.locale}):v.name}]),a(t.pathname)},[t]);const f={size:"large",activeKey:n,type:"editable-card",tabBarGutter:5,hideAdd:!0,items:o,onTabClick:v=>{r(v,{replace:!0})},onEdit:(v,h)=>{if(h==="remove"){let m=o.findIndex(g=>g.key===v);o.splice(m,1);let p=o[m===o.length?m-1:m];a(p.key),r(p.key,{replace:!0}),l([...o])}},id:"xin-tabs"};return q.jsxs(er,{theme:{components:{Tabs:{cardGutter:100}}},children:[q.jsx(Gne,{...f}),e.children]})},Sqr={navTheme:"light",colorPrimary:"#1890ff",layout:"top",contentWidth:"Fixed",fixedHeader:!0,fixSiderbar:!0,colorWeak:!1,title:"法兰完整性管理软件",pwa:!0,logo:"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg",iconfontUrl:""},Yce={navTheme:"light",layout:"top",contentWidth:"Fixed",fixedHeader:!0,token:{pageContainer:{paddingBlockPageContainerContent:0,paddingInlinePageContainerContent:0}},fixSiderbar:!0,splitMenus:!1,siderMenuType:"sub"},$qr={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!0,token:{pageContainer:{paddingBlockPageContainerContent:24,paddingInlinePageContainerContent:24}},fixSiderbar:!0,splitMenus:!1},wqr=async()=>(await dqr()).data,Cqr=async()=>(await hqr()).data,xqr={access:[],isLogin:!1,isAccess:!1,drawerShow:!1,fetchUserInfo:Cqr,fetchAdminInfo:wqr,currentUser:{},settings:Yce,borderShow:!0,app:localStorage.getItem("app")==="admin"?"admin":"api",webSetting:{logo:"/favicon.png",title:"法兰完整性管理软件"}},Gce=()=>{const{initialState:e}=A4("@@initialState"),[t,r]=i.useState("account"),n=async a=>{const o=await uqr({...a,loginType:t});localStorage.setItem("app","admin"),localStorage.setItem("x-token",o.data.token),localStorage.setItem("x-refresh-token",o.data.refresh_token),Ns.success("登录成功!"),setTimeout(()=>{window.location.href="/"},100)};return q.jsxs(YKr,{backgroundImageUrl:"https://i0.wp.com/node100.com/wp-content/uploads/2020/05/home-industry-bg.jpg?fit=1920%2C877&ssl=1",logo:e.webSetting.logo||"/favicon.png",title:e.webSetting.title||"法兰完整性管理软件",subTitle:e.webSetting.subtitle||"法兰完整性管理软件",actions:q.jsx(q.Fragment,{}),onFinish:n,children:[q.jsx(Gne,{centered:!0,activeKey:t,onChange:a=>r(a),items:[{key:"account",label:"账号密码登录"}]}),t==="account"&&q.jsxs(q.Fragment,{children:[q.jsx(wW,{name:"username",fieldProps:{size:"large",prefix:q.jsx(UI,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),q.jsx(wW.Password,{name:"password",fieldProps:{size:"large",prefix:q.jsx(Woe,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),q.jsx("div",{style:{marginBlockEnd:24},children:q.jsx(uKr,{noStyle:!0,name:"autoLogin",children:"自动登录"})})]})},Oqr=Object.freeze(Object.defineProperty({__proto__:null,default:Gce},Symbol.toStringTag,{value:"Module"})),Eqr=e=>[{name:"登录",path:"admin/login",id:"adminLogin",element:q.jsx(q.Fragment,{children:q.jsx(Gce,{})}),layout:!1}],Vp={index:"/api/index",login:"/api/index/login",reg:"/api/index/register",getMailCodeApi:"/api/index/sendMailCode"};async function Rqr(){return ua(Vp.index,{method:"get"})}async function Yen(e){return ua(Vp.login,{method:"post",data:e})}async function Gen(e){return ua(Vp.reg,{method:"post",data:e})}async function qen(e,t){return ua(Vp.getMailCodeApi,{method:"post",data:e,params:t})}const Mqr=tie({scriptUrl:"//at.alicdn.com/t/c/font_4413039_6ow46w95lhw.js"}),zW=n9r,Iqr=e=>(e.forEach(t=>{t.icon&&typeof t.icon=="string"&&zW[t.icon]&&(t.icon.startsWith("icon-")?t.icon=q.jsx(Mqr,{type:t.icon,className:t.icon}):t.icon=U.createElement(zW[t.icon]))}),e),Tqr=async e=>{try{let t=localStorage.getItem("app");if(!t||t==="api"){let r=await mqr();return localStorage.setItem("x-user-token",r.data.token),e.headers.xUserToken=r.data.token,await ua(e.config.url,e.config)}else{let r=await fqr();localStorage.setItem("x-token",r.data.token),e.headers.xToken=r.data.token;let n=await ua(e.config.url,e.config);return Promise.resolve(n)}}catch(t){return Promise.reject(t)}},Pqr=[[async e=>{const{data:t={}}=e;if(e.status===202)return await Tqr(e);let{success:r,msg:n="",showType:a=0,description:o=""}=t;if(r)return Promise.resolve(e);switch(a){case 99:break;case 0:Ns.success(n);break;case 1:Ns.warning(n);break;case 2:Ns.error(n);break;case 3:SS.success({description:o,message:n});break;case 4:SS.warning({description:o,message:n});break;case 5:SS.error({description:o,message:n});break;default:Ns.error(n)}return Promise.reject(e)},async e=>{var t;return((t=e.response)==null?void 0:t.status)===401?(Ns.error("请先登录!"),localStorage.getItem("app")==="admin"?dg.push("/admin/login"):dg.push("/client/login"),Promise.reject(e)):(Ns.error(`Response status:${e.response.status}`),Promise.reject(e))}]],_qr={baseURL:"/api",timeout:5e3,headers:{"X-Requested-With":"XMLHttpRequest"},requestInterceptors:[e=>{let t=localStorage.getItem("x-token"),r=localStorage.getItem("x-user-token");return t&&(e.headers["x-token"]=t),r&&(e.headers["x-user-token"]=r),{...e}}],responseInterceptors:Pqr};function zqr(){const e=["findDOMNode is deprecated"],t=console.error;console.error=function(...r){const n=r[0];e.some(a=>n.includes(a))||t.apply(console,r)}}zqr();async function qce(){const{location:e}=dg,t=xqr;let r=await Rqr();if(t.webSetting=r.data.web_setting,t.menus=r.data.menus,e.pathname==="/admin/login"||e.pathname==="/client/login"||e.pathname==="/client/reg")return t;let n;return localStorage.getItem("x-token")&&t.app==="admin"?(n=await t.fetchAdminInfo(),t.settings=$qr,t.isLogin=!0,t.currentUser=n.info,t.menus=n.menus,t.access=n.access,t.app="admin",localStorage.setItem("app","admin"),t):(localStorage.getItem("x-user-token")&&t.app==="api"&&(n=await t.fetchUserInfo(),t.settings=Yce,t.isLogin=!0,t.currentUser=n.info,t.menus=n.menus,t.access=n.access,t.app="api",localStorage.setItem("app","api")),t)}const Fqr=({initialState:e})=>{var t,r;return Object.assign(Sqr,{logo:(t=e==null?void 0:e.webSetting)==null?void 0:t.logo,title:(r=e==null?void 0:e.webSetting)==null?void 0:r.title,menu:{request:async()=>e==null?void 0:e.menus},menuDataRender:n=>Iqr(n),footerRender:()=>q.jsx(bGr,{}),actionsRender:sqr,avatarProps:{render:()=>q.jsx(pqr,{})},childrenRender:n=>(e==null?void 0:e.app)==="admin"?q.jsx(bqr,{children:q.jsxs(pj,{children:[q.jsx(yqr,{}),n]})}):q.jsx(pj,{children:n}),...e==null?void 0:e.settings})},kqr=({routes:e})=>{localStorage.getItem("app")==="admin"&&e.unshift({path:"/",element:q.jsx(bX,{to:"/dashboard/analysis",replace:!0})}),e.push(...Eqr())},Dqr={..._qr},Lqr=Object.freeze(Object.defineProperty({__proto__:null,getInitialState:qce,layout:Fqr,patchClientRoutes:kqr,request:Dqr},Symbol.toStringTag,{value:"Module"})),Aqr={},Nqr=e=>U.createElement(K2,{context:Aqr},e),Hqr=Object.freeze(Object.defineProperty({__proto__:null,innerProvider:Nqr},Symbol.toStringTag,{value:"Module"})),Bqr=["/admin/login","login","index","/","/s/modules","/public/reg","/client/reg","/client/login","/user"],jqr=e=>{const t=[];return e&&e.access&&t.push(...e.access.map(r=>r.toLowerCase())),{buttonAccess:r=>t.includes(r.toLowerCase()),urlAccess:r=>{let n=r.slice(1).toLowerCase().replace(/\//g,".");return t.includes(n)||Bqr.includes(r)}}};function Vqr(e){const{initialState:t}=A4("@@initialState"),r=U.useMemo(()=>jqr(t),[t]);return q.jsx(PQ.Provider,{value:r,children:e.children})}function Wqr(e){return q.jsx(Vqr,{children:e})}const Uqr=Object.freeze(Object.defineProperty({__proto__:null,accessProvider:Wqr},Symbol.toStringTag,{value:"Module"}));function Kqr(){return q.jsx("div",{})}function Yqr(e){const t=U.useRef(!1),{loading:r=!1}=A4("@@initialState")||{};return U.useEffect(()=>{r||(t.current=!0)},[r]),r&&!t.current&&typeof window<"u"?q.jsx(Kqr,{}):e.children}function Gqr(e){return q.jsx(Yqr,{children:e})}const qqr=Object.freeze(Object.defineProperty({__proto__:null,dataflowProvider:Gqr},Symbol.toStringTag,{value:"Module"})),Dv={};function Xqr(e){return e.replace(e[0],e[0].toUpperCase()).replace(/-(w)/g,function(t,r){return r.toUpperCase()})}function Zqr({routes:e}){Object.keys(e).forEach(t=>{const{icon:r}=e[t];if(r&&typeof r=="string"){const n=Xqr(r);(Dv[n]||Dv[n+"Outlined"])&&(e[t].icon=U.createElement(Dv[n]||Dv[n+"Outlined"]))}})}const Qqr=Object.freeze(Object.defineProperty({__proto__:null,patchRoutes:Zqr},Symbol.toStringTag,{value:"Module"}));//! moment.js +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,l=!1,c;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){l=!0,c=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function XYr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MW(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rGr(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function T3(e,t){return T3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},T3(e,t)}function P3(e){return P3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},P3(e)}function TW(e){return oGr(e)||aGr(e)||BT(e)||nGr()}function nGr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BT(e,t){if(e){if(typeof e=="string")return vO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vO(e,t)}}function aGr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oGr(e){if(Array.isArray(e))return vO(e)}function vO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lGr(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o=0)&&(r[a]=e[a]);return r}function PW(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function va(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||r).startsWith("/")||Hce(t)?t:"/".concat(r,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},dGr=function(t,r){var n=t.menu,a=n===void 0?{}:n,o=t.indexRoute,l=t.path,c=l===void 0?"":l,s=t.children||[],u=a.name,d=u===void 0?t.name:u,f=a.icon,v=f===void 0?t.icon:f,h=a.hideChildren,m=h===void 0?t.hideChildren:h,p=a.flatMenu,g=p===void 0?t.flatMenu:p,b=o&&Object.keys(o).join(",")!=="redirect"?[va({path:c,menu:a},o)].concat(s||[]):s,y=va({},t);if(d&&(y.name=d),v&&(y.icon=v),b&&b.length){if(m)return delete y.children,y;var S=jT(va(va({},r),{},{data:b}),t);if(g)return S;delete y[Zl]}return y},v1=function(t){return Array.isArray(t)&&t.length>0};function jT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},r=e.data,n=e.formatMessage,a=e.parentName,o=e.locale;return!r||!Array.isArray(r)?[]:r.filter(function(l){return l?v1(l.children)||l.path||l.originPath||l.layout?!0:(l.redirect||l.unaccessible,!1):!1}).filter(function(l){var c,s;return!(l==null||(c=l.menu)===null||c===void 0)&&c.name||l!=null&&l.flatMenu||!(l==null||(s=l.menu)===null||s===void 0)&&s.flatMenu?!0:l.menu!==!1}).map(function(l){var c=va(va({},l),{},{path:l.path||l.originPath});return!c.children&&c[Zl]&&(c.children=c[Zl],delete c[Zl]),c.unaccessible&&delete c.name,c.path==="*"&&(c.path="."),c.path==="/*"&&(c.path="."),!c.path&&c.originPath&&(c.path=c.originPath),c}).map(function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},c=l.children||l[Zl]||[],s=Bce(l.path,t?t.path:"/"),u=l.name,d=uGr(l,a||"menu"),f=d!==!1&&o!==!1&&n&&d?n({id:d,defaultMessage:u}):u,v=t.pro_layout_parentKeys,h=v===void 0?[]:v;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var m=iGr(t,WYr),p=new Set([].concat(TW(h),TW(l.parentKeys||[])));t.key&&p.add(t.key);var g=va(va(va({},m),{},{menu:void 0},l),{},{path:s,locale:d,key:l.key||sGr(va(va({},l),{},{path:s})),pro_layout_parentKeys:Array.from(p).filter(function(y){return y&&y!=="/"})});if(f?g.name=f:delete g.name,g.menu===void 0&&delete g.menu,v1(c)){var b=jT(va(va({},e),{},{data:c,parentName:d||""}),g);v1(b)&&(g.children=b)}return dGr(g,e)}).flat(1)}var fGr=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(r){return r&&(r.name||v1(r.children))&&!r.hideInMenu&&!r.redirect}).map(function(r){var n=va({},r),a=n.children||r[Zl]||[];if(delete n[Zl],v1(a)&&!n.hideChildrenInMenu&&a.some(function(l){return l&&!!l.name})){var o=e(a);if(o.length)return va(va({},n),{},{children:o})}return va({},r)}).filter(function(r){return r})},vGr=function(e){QYr(r,e);var t=JYr(r);function r(){return XYr(this,r),t.apply(this,arguments)}return ZYr(r,[{key:"get",value:function(a){var o;try{var l=qYr(this.entries()),c;try{for(l.s();!(c=l.n()).done;){var s=UYr(c.value,2),u=s[0],d=s[1],f=VT(u);if(!Hce(u)&&kce(f,[]).test(a)){o=d;break}}}catch(v){l.e(v)}finally{l.f()}}catch{o=void 0}return o}}]),r}(fO(Map)),hGr=function(t){var r=new vGr,n=function a(o,l){o.forEach(function(c){var s=c.children||c[Zl]||[];v1(s)&&a(s,c);var u=Bce(c.path,l?l.path:"/");r.set(VT(u),c)})};return n(t),r},mGr=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(r){var n=r.children||r[Zl];if(v1(n)){var a=e(n);if(a.length)return va({},r)}var o=va({},r);return delete o[Zl],delete o.children,o}).filter(function(r){return r})},gGr=function(t,r,n,a){var o=jT({data:t,formatMessage:n,locale:r}),l=a?mGr(o):fGr(o),c=hGr(o);return{breadcrumb:c,menuData:l}};function pGr(e){return Ve(e).reduce(function(t,r){var n=oe(r,2),a=n[0],o=n[1];return t[a]=o,t},{})}var yGr=function e(t,r,n,a){var o=gGr(t,(r==null?void 0:r.locale)||!1,n,!0),l=o.menuData,c=o.breadcrumb;return a?e(a(l),r,n,void 0):{breadcrumb:pGr(c),breadcrumbMap:c,menuData:l}};const bGr=()=>{const e=new Date().getFullYear();return q.jsx(q.Fragment,{children:q.jsx(QKr,{copyright:`${e} 法兰完整性管理软件`,style:{background:"transparent",display:"none"},links:[{key:"Node100",title:"岩创网络",href:"https://node100.com/",blankTarget:!0}]})})};var SGr=function(e){return function(t,r){var n=i.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},hO=function(e,t){return hO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},hO(e,t)};function Ben(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hO(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var al=function(){return al=Object.assign||function(t){for(var r,n=1,a=arguments.length;n0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ta(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return o}function jen(){for(var e=0,t=0,r=arguments.length;t"u"},CGr=!1;const Hp=CGr;function Ed(e){Hp&&(Np(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=i.useRef(e);t.current=i.useMemo(function(){return e},[e]);var r=i.useRef();return r.current||(r.current=function(){for(var n=[],a=0;a-1&&(a=setTimeout(function(){Lh.delete(e)},t)),Lh.set(e,al(al({},r),{timer:a}))},IGr=function(e){return Lh.get(e)},Ah=new Map,MGr=function(e){return Ah.get(e)},TGr=function(e,t){Ah.set(e,t),t.then(function(r){return Ah.delete(e),r}).catch(function(){Ah.delete(e)})},Yu={},PGr=function(e,t){Yu[e]&&Yu[e].forEach(function(r){return r(t)})},c$=function(e,t){return Yu[e]||(Yu[e]=[]),Yu[e].push(t),function(){var n=Yu[e].indexOf(t);Yu[e].splice(n,1)}},_Gr=function(e,t){var r=t.cacheKey,n=t.cacheTime,a=n===void 0?5*60*1e3:n,o=t.staleTime,l=o===void 0?0:o,c=t.setCache,s=t.getCache,u=i.useRef(),d=i.useRef(),f=function(h,m){c?c(m):RGr(h,a,m),PGr(h,m.data)},v=function(h,m){return m===void 0&&(m=[]),s?s(m):IGr(h)};return Wce(function(){if(r){var h=v(r);h&&Object.hasOwnProperty.call(h,"data")&&(e.state.data=h.data,e.state.params=h.params,(l===-1||new Date().getTime()-h.time<=l)&&(e.state.loading=!1)),u.current=c$(r,function(m){e.setState({data:m})})}},[]),WT(function(){var h;(h=u.current)===null||h===void 0||h.call(u)}),r?{onBefore:function(h){var m=v(r,h);return!m||!Object.hasOwnProperty.call(m,"data")?{}:l===-1||new Date().getTime()-m.time<=l?{loading:!1,data:m==null?void 0:m.data,error:void 0,returnNow:!0}:{data:m==null?void 0:m.data,error:void 0}},onRequest:function(h,m){var p=MGr(r);return p&&p!==d.current?{servicePromise:p}:(p=h.apply(void 0,oo([],Ta(m),!1)),d.current=p,TGr(r,p),{servicePromise:p})},onSuccess:function(h,m){var p;r&&((p=u.current)===null||p===void 0||p.call(u),f(r,{data:h,params:m,time:new Date().getTime()}),u.current=c$(r,function(g){e.setState({data:g})}))},onMutate:function(h){var m;r&&((m=u.current)===null||m===void 0||m.call(u),f(r,{data:h,params:e.state.params,time:new Date().getTime()}),u.current=c$(r,function(p){e.setState({data:p})}))}}:{}};const zGr=_Gr;var FGr=function(e,t){var r=t.debounceWait,n=t.debounceLeading,a=t.debounceTrailing,o=t.debounceMaxWait,l=i.useRef(),c=i.useMemo(function(){var s={};return n!==void 0&&(s.leading=n),a!==void 0&&(s.trailing=a),o!==void 0&&(s.maxWait=o),s},[n,a,o]);return i.useEffect(function(){if(r){var s=e.runAsync.bind(e);return l.current=vce(function(u){u()},r,c),e.runAsync=function(){for(var u=[],d=0;d-1&&Df.splice(r,1)}}if(Bp){var _W=function(){if(!(!UT()||!WGr()))for(var e=0;e{const[e,t]=lqr(!1),r=()=>{let n=document.documentElement;document.fullscreenElement?document.exitFullscreen().then(()=>{t.setFalse()}):n.requestFullscreen().then(()=>{t.setTrue()})};return q.jsx(q.Fragment,{children:e?q.jsx(Hoe,{title:"退出全屏",onClick:r}):q.jsx(Boe,{title:"全屏显示",onClick:r})})},sqr=e=>typeof window>"u"?[]:e.isMobile?[]:[q.jsx(AM,{onClick:()=>{window.open("/")}},"QuestionCircleOutlined"),q.jsx(vbr,{reload:!1},"SelectLang"),q.jsx(cqr,{},"Fullscreen")],Vp={loginApi:"/admin/index/login",logoutApi:"/admin/index/logout",getAdminInfoApi:"/admin/index/getAdminInfo",refreshAdminTokenApi:"/admin/index/refreshToken"};async function uqr(e){return ua(Vp.loginApi,{method:"post",data:e})}async function dqr(){return ua(Vp.getAdminInfoApi,{method:"get"})}async function fqr(){return ua(Vp.refreshAdminTokenApi,{method:"post",headers:{"x-refresh-token":localStorage.getItem("x-refresh-token")||""}})}async function vqr(){return ua(Vp.logoutApi,{method:"post"})}const Q4={getUserInfoApi:"/api/user/getUserInfo",loginApi:"/api/index/login",logoutApi:"/api/user/logout",setUserApi:"/api/user/setUserInfo",setPwdApi:"/api/user/setPassword",reTokenApi:"/api/user/refreshToken",getMoneyLogApi:"/api/user/getMoneyLog"};async function hqr(){return ua(Q4.getUserInfoApi,{method:"get"})}async function mqr(){return ua(Q4.reTokenApi,{method:"post",headers:{"x-user-refresh-token":localStorage.getItem("x-user-refresh-token")||""}})}async function gqr(){return ua(Q4.logoutApi,{method:"post"})}async function Uen(e){return ua(Q4.setUserApi,{method:"post",data:e})}async function Ken(e){return ua(Q4.setPwdApi,{method:"post",data:e})}async function Yen(e){return ua(Q4.getMoneyLogApi,{method:"get",params:e})}const pqr=()=>{var a;const{initialState:e}=A4("@@initialState"),t=async()=>{(e==null?void 0:e.app)==="admin"&&localStorage.getItem("x-token")?(await vqr(),localStorage.clear(),window.location.href="/"):(e==null?void 0:e.app)==="api"&&localStorage.getItem("x-user-token")?(await gqr(),localStorage.clear(),window.location.href="/"):(localStorage.clear(),window.location.href="/")};let r=o6();const n=()=>{let o={items:[{key:"logout",icon:q.jsx(Woe,{}),label:"退出登录",onClick:t}]};return e.app==="admin"&&o.items.unshift({key:"user",icon:q.jsx(UM,{}),label:"用户设置",onClick:()=>r("/admin/setting")}),o};return q.jsx(q.Fragment,{children:e!=null&&e.isLogin?q.jsx(roe,{menu:n(),children:q.jsx(mre,{src:(a=e.currentUser)==null?void 0:a.avatar_url})}):q.jsx(q.Fragment,{children:q.jsx(Cl,{type:"link",onClick:()=>r("/admin/login"),children:"登录"})})})},yqr=()=>{const{initialState:e,setInitialState:t}=A4("@@initialState");return q.jsx(CYr,{getContainer:r=>typeof window>"u"?r:document.getElementById("test-pro-layout"),disableUrlParams:!0,enableDarkTheme:!0,settings:e==null?void 0:e.settings,onSettingChange:r=>{t(n=>({...n,settings:{...e==null?void 0:e.settings,...r}}))}})};const bqr=e=>{const t=us(),r=o6(),[n,a]=i.useState(""),[o,l]=i.useState([{key:"/dashboard/analysis",label:q.jsx(AL,{id:"menu.dashboard.analysis"}),closeIcon:null}]),{initialState:c}=A4("@@initialState"),{breadcrumb:s}=yGr(c==null?void 0:c.menus);i.useEffect(()=>{const v=s[t.pathname];if(!v)return;o.some(m=>m.key===t.pathname)||l([...o,{key:t.pathname,label:v.locale?q.jsx(AL,{id:v.locale,defaultMessage:v.name}):v.name}]),a(t.pathname)},[t]);const f={size:"large",activeKey:n,type:"editable-card",tabBarGutter:5,hideAdd:!0,items:o,onTabClick:v=>{r(v,{replace:!0})},onEdit:(v,h)=>{if(h==="remove"){let m=o.findIndex(g=>g.key===v);o.splice(m,1);let p=o[m===o.length?m-1:m];a(p.key),r(p.key,{replace:!0}),l([...o])}},id:"xin-tabs"};return q.jsxs(er,{theme:{components:{Tabs:{cardGutter:100}}},children:[q.jsx(Gne,{...f}),e.children]})},Sqr={navTheme:"light",colorPrimary:"#1890ff",layout:"top",contentWidth:"Fixed",fixedHeader:!0,fixSiderbar:!0,colorWeak:!1,title:"法兰完整性管理软件",pwa:!0,logo:"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg",iconfontUrl:""},Kce={navTheme:"light",layout:"top",contentWidth:"Fixed",fixedHeader:!0,token:{pageContainer:{paddingBlockPageContainerContent:0,paddingInlinePageContainerContent:0}},fixSiderbar:!0,splitMenus:!1,siderMenuType:"sub"},$qr={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!0,token:{pageContainer:{paddingBlockPageContainerContent:24,paddingInlinePageContainerContent:24}},fixSiderbar:!0,splitMenus:!1},wqr=async()=>(await dqr()).data,Cqr=async()=>(await hqr()).data,xqr={access:[],isLogin:!1,isAccess:!1,drawerShow:!1,fetchUserInfo:Cqr,fetchAdminInfo:wqr,currentUser:{},settings:Kce,borderShow:!0,app:localStorage.getItem("app")==="admin"?"admin":"api",webSetting:{logo:"/favicon.png",title:"法兰完整性管理软件"}},Yce=()=>{const{initialState:e}=A4("@@initialState"),[t,r]=i.useState("account");e||(console.log("initialState",e),setTimeout(()=>{location.href=location.href},100));const n=async a=>{const o=await uqr({...a,loginType:t});localStorage.setItem("app","admin"),localStorage.setItem("x-token",o.data.token),localStorage.setItem("x-refresh-token",o.data.refresh_token),Ns.success("登录成功!"),setTimeout(()=>{window.location.href="/"},100)};return q.jsxs(YKr,{backgroundImageUrl:"https://i0.wp.com/node100.com/wp-content/uploads/2020/05/home-industry-bg.jpg?fit=1920%2C877&ssl=1",logo:e.webSetting.logo||"/favicon.png",title:e.webSetting.title||"法兰完整性管理软件",subTitle:e.webSetting.subtitle||"法兰完整性管理软件",actions:q.jsx(q.Fragment,{}),onFinish:n,children:[q.jsx(Gne,{centered:!0,activeKey:t,onChange:a=>r(a),items:[{key:"account",label:"账号密码登录"}]}),t==="account"&&q.jsxs(q.Fragment,{children:[q.jsx(wW,{name:"username",fieldProps:{size:"large",prefix:q.jsx(UM,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),q.jsx(wW.Password,{name:"password",fieldProps:{size:"large",prefix:q.jsx(joe,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),q.jsx("div",{style:{marginBlockEnd:24},children:q.jsx(uKr,{noStyle:!0,name:"autoLogin",children:"自动登录"})})]})},Oqr=Object.freeze(Object.defineProperty({__proto__:null,default:Yce},Symbol.toStringTag,{value:"Module"})),Eqr=e=>[{name:"登录",path:"admin/login",id:"adminLogin",element:q.jsx(q.Fragment,{children:q.jsx(Yce,{})}),layout:!1}],jp={index:"/api/index",login:"/api/index/login",reg:"/api/index/register",getMailCodeApi:"/api/index/sendMailCode"};async function Rqr(){return ua(jp.index,{method:"get"})}async function Gen(e){return ua(jp.login,{method:"post",data:e})}async function qen(e){return ua(jp.reg,{method:"post",data:e})}async function Xen(e,t){return ua(jp.getMailCodeApi,{method:"post",data:e,params:t})}const Iqr=eie({scriptUrl:"//at.alicdn.com/t/c/font_4413039_6ow46w95lhw.js"}),zW=n9r,Mqr=e=>(e.forEach(t=>{t.icon&&typeof t.icon=="string"&&zW[t.icon]&&(t.icon.startsWith("icon-")?t.icon=q.jsx(Iqr,{type:t.icon,className:t.icon}):t.icon=W.createElement(zW[t.icon]))}),e),Tqr=async e=>{try{let t=localStorage.getItem("app");if(!t||t==="api"){let r=await mqr();return localStorage.setItem("x-user-token",r.data.token),e.headers.xUserToken=r.data.token,await ua(e.config.url,e.config)}else{let r=await fqr();localStorage.setItem("x-token",r.data.token),e.headers.xToken=r.data.token;let n=await ua(e.config.url,e.config);return Promise.resolve(n)}}catch(t){return Promise.reject(t)}},Pqr=[[async e=>{const{data:t={}}=e;if(e.status===202)return await Tqr(e);let{success:r,msg:n="",showType:a=0,description:o=""}=t;if(r)return Promise.resolve(e);const l=e.headers["content-disposition"];if(console.log("disposition",l,e),l){const c=l.split("filename=")[1].split(";")[0],s=document.createElement("a");return s.href=URL.createObjectURL(new Blob([e.data])),s.download=decodeURIComponent(c),s.click(),URL.revokeObjectURL(s.href),Promise.resolve(c)}switch(a){case 99:break;case 0:Ns.success(n);break;case 1:Ns.warning(n);break;case 2:Ns.error(n);break;case 3:SS.success({description:o,message:n});break;case 4:SS.warning({description:o,message:n});break;case 5:SS.error({description:o,message:n});break;default:Ns.error(n)}return Promise.reject(e)},async e=>{var t;return((t=e.response)==null?void 0:t.status)===401?(Ns.error("请先登录!"),localStorage.getItem("app"),dg.push("/admin/login"),Promise.reject(e)):(Ns.error(`Response status:${e.response.status}`),Promise.reject(e))}]],_qr={baseURL:"/api",timeout:60*1e3*5,headers:{"X-Requested-With":"XMLHttpRequest"},requestInterceptors:[e=>{let t=localStorage.getItem("x-token"),r=localStorage.getItem("x-user-token");return t&&(e.headers["x-token"]=t),r&&(e.headers["x-user-token"]=r),{...e}}],responseInterceptors:Pqr};function zqr(){const e=["findDOMNode is deprecated","[React Intl] Missing message","[React Intl] Cannot format message"],t=console.error;console.error=function(...r){const n=r[0];(!(n!=null&&n.includes)||!e.some(a=>n.includes(a)))&&t.apply(console,r)}}zqr();async function Gce(){const{location:e}=dg,t=xqr;let r=await Rqr();if(t.webSetting=r.data.web_setting,t.menus=r.data.menus,e.pathname==="/admin/login"||e.pathname==="/client/login"||e.pathname==="/client/reg")return t;let n;return localStorage.getItem("x-token")&&t.app==="admin"?(n=await t.fetchAdminInfo(),t.settings=$qr,t.isLogin=!0,t.currentUser=n.info,t.menus=n.menus,t.access=n.access,t.app="admin",localStorage.setItem("app","admin"),t):(localStorage.getItem("x-user-token")&&t.app==="api"&&(n=await t.fetchUserInfo(),t.settings=Kce,t.isLogin=!0,t.currentUser=n.info,t.menus=n.menus,t.access=n.access,t.app="api",localStorage.setItem("app","api")),t)}const Fqr=({initialState:e})=>{var t,r;return Object.assign(Sqr,{logo:(t=e==null?void 0:e.webSetting)==null?void 0:t.logo,title:(r=e==null?void 0:e.webSetting)==null?void 0:r.title,menu:{request:async()=>e==null?void 0:e.menus},menuDataRender:n=>Mqr(n),footerRender:()=>q.jsx(bGr,{}),actionsRender:sqr,avatarProps:{render:()=>q.jsx(pqr,{})},childrenRender:n=>(e==null?void 0:e.app)==="admin"?q.jsx(bqr,{children:q.jsxs(pV,{children:[q.jsx(yqr,{}),n]})}):q.jsx(pV,{children:n}),...e==null?void 0:e.settings})},kqr=({routes:e})=>{localStorage.getItem("app")==="admin"&&e.unshift({path:"/",element:q.jsx(bX,{to:"/dashboard/analysis",replace:!0})}),e.push(...Eqr())},Dqr={..._qr},Lqr=Object.freeze(Object.defineProperty({__proto__:null,getInitialState:Gce,layout:Fqr,patchClientRoutes:kqr,request:Dqr},Symbol.toStringTag,{value:"Module"})),Aqr={},Nqr=e=>W.createElement(K2,{context:Aqr},e),Hqr=Object.freeze(Object.defineProperty({__proto__:null,innerProvider:Nqr},Symbol.toStringTag,{value:"Module"})),Bqr=["/admin/login","login","index","/","/s/modules","/public/reg","/client/reg","/client/login","/user"],Vqr=e=>{const t=[];return e&&e.access&&t.push(...e.access.map(r=>r.toLowerCase())),{buttonAccess:r=>t.includes(r.toLowerCase()),urlAccess:r=>{let n=r.slice(1).toLowerCase().replace(/\//g,".");return t.includes(n)||Bqr.includes(r)}}};function jqr(e){const{initialState:t}=A4("@@initialState"),r=W.useMemo(()=>Vqr(t),[t]);return q.jsx(PQ.Provider,{value:r,children:e.children})}function Wqr(e){return q.jsx(jqr,{children:e})}const Uqr=Object.freeze(Object.defineProperty({__proto__:null,accessProvider:Wqr},Symbol.toStringTag,{value:"Module"}));function Kqr(){return q.jsx("div",{})}function Yqr(e){const t=W.useRef(!1),{loading:r=!1}=A4("@@initialState")||{};return W.useEffect(()=>{r||(t.current=!0)},[r]),r&&!t.current&&typeof window<"u"?q.jsx(Kqr,{}):e.children}function Gqr(e){return q.jsx(Yqr,{children:e})}const qqr=Object.freeze(Object.defineProperty({__proto__:null,dataflowProvider:Gqr},Symbol.toStringTag,{value:"Module"})),Dv={};function Xqr(e){return e.replace(e[0],e[0].toUpperCase()).replace(/-(w)/g,function(t,r){return r.toUpperCase()})}function Zqr({routes:e}){Object.keys(e).forEach(t=>{const{icon:r}=e[t];if(r&&typeof r=="string"){const n=Xqr(r);(Dv[n]||Dv[n+"Outlined"])&&(e[t].icon=W.createElement(Dv[n]||Dv[n+"Outlined"]))}})}const Qqr=Object.freeze(Object.defineProperty({__proto__:null,patchRoutes:Zqr},Symbol.toStringTag,{value:"Module"}));//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var Xce;function Lt(){return Xce.apply(null,arguments)}function Jqr(e){Xce=e}function El(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function h1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Jr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function KT(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Jr(e,t))return!1;return!0}function zo(e){return e===void 0}function is(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Z6(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Zce(e,t){var r=[],n,a=e.length;for(n=0;n>>0,n;for(n=0;n0)for(r=0;r>>0,n;for(n=0;n0)for(r=0;r=0;return(o?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var XT=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Lv=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,u$={},p0={};function tr(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(p0[e]=a),t&&(p0[t[0]]=function(){return dc(a.apply(this,arguments),t[1],t[2])}),r&&(p0[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function aXr(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function oXr(e){var t=e.match(XT),r,n;for(r=0,n=t.length;r=0&&Lv.test(e);)e=e.replace(Lv,n),Lv.lastIndex=0,r-=1;return e}var iXr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function lXr(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(XT).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var cXr="Invalid date";function sXr(){return this._invalidDate}var uXr="%d",dXr=/\d{1,2}/;function fXr(e){return this._ordinal.replace("%d",e)}var vXr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function hXr(e,t,r,n){var a=this._relativeTime[r];return wc(a)?a(e,t,r,n):a.replace(/%d/i,e)}function mXr(e,t){var r=this._relativeTime[e>0?"future":"past"];return wc(r)?r(t):r.replace(/%s/i,t)}var DW={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ui(e){return typeof e=="string"?DW[e]||DW[e.toLowerCase()]:void 0}function ZT(e){var t={},r,n;for(n in e)Jr(e,n)&&(r=Ui(n),r&&(t[r]=e[n]));return t}var gXr={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function pXr(e){var t=[],r;for(r in e)Jr(e,r)&&t.push({unit:r,priority:gXr[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var tse=/\d/,Ci=/\d\d/,rse=/\d{3}/,QT=/\d{4}/,Up=/[+-]?\d{6}/,_n=/\d\d?/,nse=/\d\d\d\d?/,ase=/\d\d\d\d\d\d?/,Kp=/\d{1,3}/,JT=/\d{1,4}/,Yp=/[+-]?\d{1,6}/,J4=/\d+/,Gp=/[+-]?\d+/,yXr=/Z|[+-]\d\d:?\d\d/gi,qp=/Z|[+-]\d\d(?::?\d\d)?/gi,bXr=/[+-]?\d+(\.\d{1,3})?/,J6=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,e2=/^[1-9]\d?/,eP=/^([1-9]\d|\d)/,Mg;Mg={};function Ut(e,t,r){Mg[e]=wc(t)?t:function(n,a){return n&&r?r:t}}function SXr(e,t){return Jr(Mg,e)?Mg[e](t._strict,t._locale):new RegExp($Xr(e))}function $Xr(e){return Gc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,o){return r||n||a||o}))}function Gc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Fi(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function kr(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Fi(t)),r}var bO={};function gn(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),is(t)&&(n=function(o,l){l[t]=kr(o)}),a=e.length,r=0;r68?1900:2e3)};var ose=t2("FullYear",!0);function OXr(){return Xp(this.year())}function t2(e,t){return function(r){return r!=null?(ise(this,e,r),Lt.updateOffset(this,t),this):_3(this,e)}}function _3(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function ise(e,t,r){var n,a,o,l,c;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}o=r,l=e.month(),c=e.date(),c=c===29&&l===1&&!Xp(o)?28:c,a?n.setUTCFullYear(o,l,c):n.setFullYear(o,l,c)}}function EXr(e){return e=Ui(e),wc(this[e])?this[e]():this}function RXr(e,t){if(typeof e=="object"){e=ZT(e);var r=pXr(e),n,a=r.length;for(n=0;n=0?(c=new Date(e+400,t,r,n,a,o,l),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,r,n,a,o,l),c}function z3(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ig(e,t,r){var n=7+t-r,a=(7+z3(e,0,n).getUTCDay()-t)%7;return-a+n-1}function fse(e,t,r,n,a){var o=(7+r-n)%7,l=Ig(e,n,a),c=1+7*(t-1)+o+l,s,u;return c<=0?(s=e-1,u=Lf(s)+c):c>Lf(e)?(s=e+1,u=c-Lf(e)):(s=e,u=c),{year:s,dayOfYear:u}}function F3(e,t,r){var n=Ig(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,o,l;return a<1?(l=e.year()-1,o=a+qc(l,t,r)):a>qc(e.year(),t,r)?(o=a-qc(e.year(),t,r),l=e.year()+1):(l=e.year(),o=a),{week:o,year:l}}function qc(e,t,r){var n=Ig(e,t,r),a=Ig(e+1,t,r);return(Lf(e)-n+a)/7}tr("w",["ww",2],"wo","week");tr("W",["WW",2],"Wo","isoWeek");Ut("w",_n,e2);Ut("ww",_n,Ci);Ut("W",_n,e2);Ut("WW",_n,Ci);e8(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=kr(e)});function HXr(e){return F3(e,this._week.dow,this._week.doy).week}var BXr={dow:0,doy:6};function jXr(){return this._week.dow}function VXr(){return this._week.doy}function WXr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function UXr(e){var t=F3(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}tr("d",0,"do","day");tr("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});tr("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});tr("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});tr("e",0,0,"weekday");tr("E",0,0,"isoWeekday");Ut("d",_n);Ut("e",_n);Ut("E",_n);Ut("dd",function(e,t){return t.weekdaysMinRegex(e)});Ut("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ut("dddd",function(e,t){return t.weekdaysRegex(e)});e8(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:Er(r).invalidWeekday=e});e8(["d","e","E"],function(e,t,r,n){t[n]=kr(e)});function KXr(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function YXr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function rP(e,t){return e.slice(t,7).concat(e.slice(0,t))}var GXr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),vse="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qXr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),XXr=J6,ZXr=J6,QXr=J6;function JXr(e,t){var r=El(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?rP(r,this._week.dow):e?r[e.day()]:r}function eZr(e){return e===!0?rP(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function tZr(e){return e===!0?rP(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function rZr(e,t,r){var n,a,o,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=$c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?t==="dddd"?(a=ea.call(this._weekdaysParse,l),a!==-1?a:null):t==="ddd"?(a=ea.call(this._shortWeekdaysParse,l),a!==-1?a:null):(a=ea.call(this._minWeekdaysParse,l),a!==-1?a:null):t==="dddd"?(a=ea.call(this._weekdaysParse,l),a!==-1||(a=ea.call(this._shortWeekdaysParse,l),a!==-1)?a:(a=ea.call(this._minWeekdaysParse,l),a!==-1?a:null)):t==="ddd"?(a=ea.call(this._shortWeekdaysParse,l),a!==-1||(a=ea.call(this._weekdaysParse,l),a!==-1)?a:(a=ea.call(this._minWeekdaysParse,l),a!==-1?a:null)):(a=ea.call(this._minWeekdaysParse,l),a!==-1||(a=ea.call(this._weekdaysParse,l),a!==-1)?a:(a=ea.call(this._shortWeekdaysParse,l),a!==-1?a:null))}function nZr(e,t,r){var n,a,o;if(this._weekdaysParseExact)return rZr.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=$c([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function aZr(e){if(!this.isValid())return e!=null?this:NaN;var t=_3(this,"Day");return e!=null?(e=KXr(e,this.localeData()),this.add(e-t,"d")):t}function oZr(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function iZr(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=YXr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function lZr(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||nP.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Jr(this,"_weekdaysRegex")||(this._weekdaysRegex=XXr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function cZr(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||nP.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Jr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ZXr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function sZr(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||nP.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Jr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=QXr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function nP(){function e(d,f){return f.length-d.length}var t=[],r=[],n=[],a=[],o,l,c,s,u;for(o=0;o<7;o++)l=$c([2e3,1]).day(o),c=Gc(this.weekdaysMin(l,"")),s=Gc(this.weekdaysShort(l,"")),u=Gc(this.weekdays(l,"")),t.push(c),r.push(s),n.push(u),a.push(c),a.push(s),a.push(u);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function aP(){return this.hours()%12||12}function uZr(){return this.hours()||24}tr("H",["HH",2],0,"hour");tr("h",["hh",2],0,aP);tr("k",["kk",2],0,uZr);tr("hmm",0,0,function(){return""+aP.apply(this)+dc(this.minutes(),2)});tr("hmmss",0,0,function(){return""+aP.apply(this)+dc(this.minutes(),2)+dc(this.seconds(),2)});tr("Hmm",0,0,function(){return""+this.hours()+dc(this.minutes(),2)});tr("Hmmss",0,0,function(){return""+this.hours()+dc(this.minutes(),2)+dc(this.seconds(),2)});function hse(e,t){tr(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}hse("a",!0);hse("A",!1);function mse(e,t){return t._meridiemParse}Ut("a",mse);Ut("A",mse);Ut("H",_n,eP);Ut("h",_n,e2);Ut("k",_n,e2);Ut("HH",_n,Ci);Ut("hh",_n,Ci);Ut("kk",_n,Ci);Ut("hmm",nse);Ut("hmmss",ase);Ut("Hmm",nse);Ut("Hmmss",ase);gn(["H","HH"],pa);gn(["k","kk"],function(e,t,r){var n=kr(e);t[pa]=n===24?0:n});gn(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});gn(["h","hh"],function(e,t,r){t[pa]=kr(e),Er(r).bigHour=!0});gn("hmm",function(e,t,r){var n=e.length-2;t[pa]=kr(e.substr(0,n)),t[dl]=kr(e.substr(n)),Er(r).bigHour=!0});gn("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[pa]=kr(e.substr(0,n)),t[dl]=kr(e.substr(n,2)),t[Vc]=kr(e.substr(a)),Er(r).bigHour=!0});gn("Hmm",function(e,t,r){var n=e.length-2;t[pa]=kr(e.substr(0,n)),t[dl]=kr(e.substr(n))});gn("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[pa]=kr(e.substr(0,n)),t[dl]=kr(e.substr(n,2)),t[Vc]=kr(e.substr(a))});function dZr(e){return(e+"").toLowerCase().charAt(0)==="p"}var fZr=/[ap]\.?m?\.?/i,vZr=t2("Hours",!0);function hZr(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var gse={calendar:rXr,longDateFormat:iXr,invalidDate:cXr,ordinal:uXr,dayOfMonthOrdinalParse:dXr,relativeTime:vXr,months:IXr,monthsShort:lse,week:BXr,weekdays:GXr,weekdaysMin:qXr,weekdaysShort:vse,meridiemParse:fZr},zn={},N2={},k3;function mZr(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r0;){if(a=Zp(o.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&mZr(o,n)>=r-1)break;r--}t++}return k3}function pZr(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Zp(e){var t=null,r;if(zn[e]===void 0&&typeof module<"u"&&module&&module.exports&&pZr(e))try{t=k3._abbr,r=require,r("./locale/"+e),vu(t)}catch{zn[e]=null}return zn[e]}function vu(e,t){var r;return e&&(zo(t)?r=Ss(e):r=oP(e,t),r?k3=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),k3._abbr}function oP(e,t){if(t!==null){var r,n=gse;if(t.abbr=e,zn[e]!=null)Jce("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=zn[e]._config;else if(t.parentLocale!=null)if(zn[t.parentLocale]!=null)n=zn[t.parentLocale]._config;else if(r=Zp(t.parentLocale),r!=null)n=r._config;else return N2[t.parentLocale]||(N2[t.parentLocale]=[]),N2[t.parentLocale].push({name:e,config:t}),null;return zn[e]=new qT(pO(n,t)),N2[e]&&N2[e].forEach(function(a){oP(a.name,a.config)}),vu(e),zn[e]}else return delete zn[e],null}function yZr(e,t){if(t!=null){var r,n,a=gse;zn[e]!=null&&zn[e].parentLocale!=null?zn[e].set(pO(zn[e]._config,t)):(n=Zp(e),n!=null&&(a=n._config),t=pO(a,t),n==null&&(t.abbr=e),r=new qT(t),r.parentLocale=zn[e],zn[e]=r),vu(e)}else zn[e]!=null&&(zn[e].parentLocale!=null?(zn[e]=zn[e].parentLocale,e===vu()&&vu(e)):zn[e]!=null&&delete zn[e]);return zn[e]}function Ss(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return k3;if(!El(e)){if(t=Zp(e),t)return t;e=[e]}return gZr(e)}function bZr(){return yO(zn)}function iP(e){var t,r=e._a;return r&&Er(e).overflow===-2&&(t=r[jc]<0||r[jc]>11?jc:r[ql]<1||r[ql]>tP(r[lo],r[jc])?ql:r[pa]<0||r[pa]>24||r[pa]===24&&(r[dl]!==0||r[Vc]!==0||r[r1]!==0)?pa:r[dl]<0||r[dl]>59?dl:r[Vc]<0||r[Vc]>59?Vc:r[r1]<0||r[r1]>999?r1:-1,Er(e)._overflowDayOfYear&&(tql)&&(t=ql),Er(e)._overflowWeeks&&t===-1&&(t=CXr),Er(e)._overflowWeekday&&t===-1&&(t=xXr),Er(e).overflow=t),e}var SZr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$Zr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wZr=/Z|[+-]\d\d(?::?\d\d)?/,Av=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],d$=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],CZr=/^\/?Date\((-?\d+)/i,xZr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,OZr={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function pse(e){var t,r,n=e._i,a=SZr.exec(n)||$Zr.exec(n),o,l,c,s,u=Av.length,d=d$.length;if(a){for(Er(e).iso=!0,t=0,r=u;tLf(l)||e._dayOfYear===0)&&(Er(e)._overflowDayOfYear=!0),r=z3(l,0,e._dayOfYear),e._a[jc]=r.getUTCMonth(),e._a[ql]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[pa]===24&&e._a[dl]===0&&e._a[Vc]===0&&e._a[r1]===0&&(e._nextDay=!0,e._a[pa]=0),e._d=(e._useUTC?z3:NXr).apply(null,n),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[pa]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Er(e).weekdayMismatch=!0)}}function zZr(e){var t,r,n,a,o,l,c,s,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,l=4,r=Pd(t.GG,e._a[lo],F3(Mn(),1,4).year),n=Pd(t.W,1),a=Pd(t.E,1),(a<1||a>7)&&(s=!0)):(o=e._locale._week.dow,l=e._locale._week.doy,u=F3(Mn(),o,l),r=Pd(t.gg,e._a[lo],u.year),n=Pd(t.w,u.week),t.d!=null?(a=t.d,(a<0||a>6)&&(s=!0)):t.e!=null?(a=t.e+o,(t.e<0||t.e>6)&&(s=!0)):a=o),n<1||n>qc(r,o,l)?Er(e)._overflowWeeks=!0:s!=null?Er(e)._overflowWeekday=!0:(c=fse(r,n,a,o,l),e._a[lo]=c.year,e._dayOfYear=c.dayOfYear)}Lt.ISO_8601=function(){};Lt.RFC_2822=function(){};function cP(e){if(e._f===Lt.ISO_8601){pse(e);return}if(e._f===Lt.RFC_2822){yse(e);return}e._a=[],Er(e).empty=!0;var t=""+e._i,r,n,a,o,l,c=t.length,s=0,u,d;for(a=ese(e._f,e._locale).match(XT)||[],d=a.length,r=0;r0&&Er(e).unusedInput.push(l),t=t.slice(t.indexOf(n)+n.length),s+=n.length),p0[o]?(n?Er(e).empty=!1:Er(e).unusedTokens.push(o),wXr(o,n,e)):e._strict&&!n&&Er(e).unusedTokens.push(o);Er(e).charsLeftOver=c-s,t.length>0&&Er(e).unusedInput.push(t),e._a[pa]<=12&&Er(e).bigHour===!0&&e._a[pa]>0&&(Er(e).bigHour=void 0),Er(e).parsedDateParts=e._a.slice(0),Er(e).meridiem=e._meridiem,e._a[pa]=FZr(e._locale,e._a[pa],e._meridiem),u=Er(e).era,u!==null&&(e._a[lo]=e._locale.erasConvertYear(u,e._a[lo])),lP(e),iP(e)}function FZr(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function kZr(e){var t,r,n,a,o,l,c=!1,s=e._f.length;if(s===0){Er(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;athis?this:e:Wp()});function $se(e,t){var r,n;if(t.length===1&&El(t[0])&&(t=t[0]),!t.length)return Mn();for(r=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function rQr(){if(!zo(this._isDSTShifted))return this._isDSTShifted;var e={},t;return GT(e,this),e=bse(e),e._a?(t=e._isUTC?$c(e._a):Mn(e._a),this._isDSTShifted=this.isValid()&&YZr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function nQr(){return this.isValid()?!this._isUTC:!1}function aQr(){return this.isValid()?this._isUTC:!1}function Cse(){return this.isValid()?this._isUTC&&this._offset===0:!1}var oQr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,iQr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Al(e,t){var r=e,n=null,a,o,l;return Hh(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:is(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=oQr.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:kr(n[ql])*a,h:kr(n[pa])*a,m:kr(n[dl])*a,s:kr(n[Vc])*a,ms:kr(SO(n[r1]*1e3))*a}):(n=iQr.exec(e))?(a=n[1]==="-"?-1:1,r={y:Bu(n[2],a),M:Bu(n[3],a),w:Bu(n[4],a),d:Bu(n[5],a),h:Bu(n[6],a),m:Bu(n[7],a),s:Bu(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(l=lQr(Mn(r.from),Mn(r.to)),r={},r.ms=l.milliseconds,r.M=l.months),o=new Qp(r),Hh(e)&&Jr(e,"_locale")&&(o._locale=e._locale),Hh(e)&&Jr(e,"_isValid")&&(o._isValid=e._isValid),o}Al.fn=Qp.prototype;Al.invalid=KZr;function Bu(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function AW(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function lQr(e,t){var r;return e.isValid()&&t.isValid()?(t=uP(t,e),e.isBefore(t)?r=AW(e,t):(r=AW(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function xse(e,t){return function(r,n){var a,o;return n!==null&&!isNaN(+n)&&(Jce(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=r,r=n,n=o),a=Al(r,n),Ose(this,a,e),this}}function Ose(e,t,r,n){var a=t._milliseconds,o=SO(t._days),l=SO(t._months);e.isValid()&&(n=n??!0,l&&sse(e,_3(e,"Month")+l*r),o&&ise(e,"Date",_3(e,"Date")+o*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&Lt.updateOffset(e,o||l))}var cQr=xse(1,"add"),sQr=xse(-1,"subtract");function Ese(e){return typeof e=="string"||e instanceof String}function uQr(e){return Rl(e)||Z6(e)||Ese(e)||is(e)||fQr(e)||dQr(e)||e===null||e===void 0}function dQr(e){var t=h1(e)&&!KT(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,o,l=n.length;for(a=0;ar.valueOf():r.valueOf()9999?Nh(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):wc(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Nh(r,"Z")):Nh(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function EQr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(r+n+a+o)}function RQr(e){e||(e=this.isUtc()?Lt.defaultFormatUtc:Lt.defaultFormat);var t=Nh(this,e);return this.localeData().postformat(t)}function MQr(e,t){return this.isValid()&&(Rl(e)&&e.isValid()||Mn(e).isValid())?Al({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function IQr(e){return this.from(Mn(),e)}function TQr(e,t){return this.isValid()&&(Rl(e)&&e.isValid()||Mn(e).isValid())?Al({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function PQr(e){return this.to(Mn(),e)}function Rse(e){var t;return e===void 0?this._locale._abbr:(t=Ss(e),t!=null&&(this._locale=t),this)}var Mse=Wi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Ise(){return this._locale}var Tg=1e3,y0=60*Tg,Pg=60*y0,Tse=(365*400+97)*24*Pg;function b0(e,t){return(e%t+t)%t}function Pse(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Tse:new Date(e,t,r).valueOf()}function _se(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Tse:Date.UTC(e,t,r)}function _Qr(e){var t,r;if(e=Ui(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?_se:Pse,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=b0(t+(this._isUTC?0:this.utcOffset()*y0),Pg);break;case"minute":t=this._d.valueOf(),t-=b0(t,y0);break;case"second":t=this._d.valueOf(),t-=b0(t,Tg);break}return this._d.setTime(t),Lt.updateOffset(this,!0),this}function zQr(e){var t,r;if(e=Ui(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?_se:Pse,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Pg-b0(t+(this._isUTC?0:this.utcOffset()*y0),Pg)-1;break;case"minute":t=this._d.valueOf(),t+=y0-b0(t,y0)-1;break;case"second":t=this._d.valueOf(),t+=Tg-b0(t,Tg)-1;break}return this._d.setTime(t),Lt.updateOffset(this,!0),this}function FQr(){return this._d.valueOf()-(this._offset||0)*6e4}function kQr(){return Math.floor(this.valueOf()/1e3)}function DQr(){return new Date(this.valueOf())}function LQr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function AQr(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function NQr(){return this.isValid()?this.toISOString():null}function HQr(){return YT(this)}function BQr(){return Qs({},Er(this))}function jQr(){return Er(this).overflow}function VQr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}tr("N",0,0,"eraAbbr");tr("NN",0,0,"eraAbbr");tr("NNN",0,0,"eraAbbr");tr("NNNN",0,0,"eraName");tr("NNNNN",0,0,"eraNarrow");tr("y",["y",1],"yo","eraYear");tr("y",["yy",2],0,"eraYear");tr("y",["yyy",3],0,"eraYear");tr("y",["yyyy",4],0,"eraYear");Ut("N",dP);Ut("NN",dP);Ut("NNN",dP);Ut("NNNN",eJr);Ut("NNNNN",tJr);gn(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?Er(r).era=a:Er(r).invalidEra=e});Ut("y",J4);Ut("yy",J4);Ut("yyy",J4);Ut("yyyy",J4);Ut("yo",rJr);gn(["y","yy","yyy","yyyy"],lo);gn(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[lo]=r._locale.eraYearOrdinalParse(e,a):t[lo]=parseInt(e,10)});function WQr(e,t){var r,n,a,o=this._eras||Ss("en")._eras;for(r=0,n=o.length;r=0)return o[n]}function KQr(e,t){var r=e.since<=e.until?1:-1;return t===void 0?Lt(e.since).year():Lt(e.since).year()+(t-e.offset)*r}function YQr(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;eo&&(t=o),sJr.call(this,e,t,r,n,a))}function sJr(e,t,r,n,a){var o=fse(e,t,r,n,a),l=z3(o.year,0,o.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}tr("Q",0,"Qo","quarter");Ut("Q",tse);gn("Q",function(e,t){t[jc]=(kr(e)-1)*3});function uJr(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}tr("D",["DD",2],"Do","date");Ut("D",_n,e2);Ut("DD",_n,Ci);Ut("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});gn(["D","DD"],ql);gn("Do",function(e,t){t[ql]=kr(e.match(_n)[0])});var Fse=t2("Date",!0);tr("DDD",["DDDD",3],"DDDo","dayOfYear");Ut("DDD",Kp);Ut("DDDD",rse);gn(["DDD","DDDD"],function(e,t,r){r._dayOfYear=kr(e)});function dJr(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}tr("m",["mm",2],0,"minute");Ut("m",_n,eP);Ut("mm",_n,Ci);gn(["m","mm"],dl);var fJr=t2("Minutes",!1);tr("s",["ss",2],0,"second");Ut("s",_n,eP);Ut("ss",_n,Ci);gn(["s","ss"],Vc);var vJr=t2("Seconds",!1);tr("S",0,0,function(){return~~(this.millisecond()/100)});tr(0,["SS",2],0,function(){return~~(this.millisecond()/10)});tr(0,["SSS",3],0,"millisecond");tr(0,["SSSS",4],0,function(){return this.millisecond()*10});tr(0,["SSSSS",5],0,function(){return this.millisecond()*100});tr(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});tr(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});tr(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});tr(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ut("S",Kp,tse);Ut("SS",Kp,Ci);Ut("SSS",Kp,rse);var Js,kse;for(Js="SSSS";Js.length<=9;Js+="S")Ut(Js,J4);function hJr(e,t){t[r1]=kr(("0."+e)*1e3)}for(Js="S";Js.length<=9;Js+="S")gn(Js,hJr);kse=t2("Milliseconds",!1);tr("z",0,0,"zoneAbbr");tr("zz",0,0,"zoneName");function mJr(){return this._isUTC?"UTC":""}function gJr(){return this._isUTC?"Coordinated Universal Time":""}var bt=Q6.prototype;bt.add=cQr;bt.calendar=mQr;bt.clone=gQr;bt.diff=CQr;bt.endOf=zQr;bt.format=RQr;bt.from=MQr;bt.fromNow=IQr;bt.to=TQr;bt.toNow=PQr;bt.get=EXr;bt.invalidAt=jQr;bt.isAfter=pQr;bt.isBefore=yQr;bt.isBetween=bQr;bt.isSame=SQr;bt.isSameOrAfter=$Qr;bt.isSameOrBefore=wQr;bt.isValid=HQr;bt.lang=Mse;bt.locale=Rse;bt.localeData=Ise;bt.max=HZr;bt.min=NZr;bt.parsingFlags=BQr;bt.set=RXr;bt.startOf=_Qr;bt.subtract=sQr;bt.toArray=LQr;bt.toObject=AQr;bt.toDate=DQr;bt.toISOString=OQr;bt.inspect=EQr;typeof Symbol<"u"&&Symbol.for!=null&&(bt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});bt.toJSON=NQr;bt.toString=xQr;bt.unix=kQr;bt.valueOf=FQr;bt.creationData=VQr;bt.eraName=YQr;bt.eraNarrow=GQr;bt.eraAbbr=qQr;bt.eraYear=XQr;bt.year=ose;bt.isLeapYear=OXr;bt.weekYear=nJr;bt.isoWeekYear=aJr;bt.quarter=bt.quarters=uJr;bt.month=use;bt.daysInMonth=DXr;bt.week=bt.weeks=WXr;bt.isoWeek=bt.isoWeeks=UXr;bt.weeksInYear=lJr;bt.weeksInWeekYear=cJr;bt.isoWeeksInYear=oJr;bt.isoWeeksInISOWeekYear=iJr;bt.date=Fse;bt.day=bt.days=aZr;bt.weekday=oZr;bt.isoWeekday=iZr;bt.dayOfYear=dJr;bt.hour=bt.hours=vZr;bt.minute=bt.minutes=fJr;bt.second=bt.seconds=vJr;bt.millisecond=bt.milliseconds=kse;bt.utcOffset=qZr;bt.utc=ZZr;bt.local=QZr;bt.parseZone=JZr;bt.hasAlignedHourOffset=eQr;bt.isDST=tQr;bt.isLocal=nQr;bt.isUtcOffset=aQr;bt.isUtc=Cse;bt.isUTC=Cse;bt.zoneAbbr=mJr;bt.zoneName=gJr;bt.dates=Wi("dates accessor is deprecated. Use date instead.",Fse);bt.months=Wi("months accessor is deprecated. Use month instead",use);bt.years=Wi("years accessor is deprecated. Use year instead",ose);bt.zone=Wi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",XZr);bt.isDSTShifted=Wi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",rQr);function pJr(e){return Mn(e*1e3)}function yJr(){return Mn.apply(null,arguments).parseZone()}function Dse(e){return e}var rn=qT.prototype;rn.calendar=nXr;rn.longDateFormat=lXr;rn.invalidDate=sXr;rn.ordinal=fXr;rn.preparse=Dse;rn.postformat=Dse;rn.relativeTime=hXr;rn.pastFuture=mXr;rn.set=tXr;rn.eras=WQr;rn.erasParse=UQr;rn.erasConvertYear=KQr;rn.erasAbbrRegex=QQr;rn.erasNameRegex=ZQr;rn.erasNarrowRegex=JQr;rn.months=_Xr;rn.monthsShort=zXr;rn.monthsParse=kXr;rn.monthsRegex=AXr;rn.monthsShortRegex=LXr;rn.week=HXr;rn.firstDayOfYear=VXr;rn.firstDayOfWeek=jXr;rn.weekdays=JXr;rn.weekdaysMin=tZr;rn.weekdaysShort=eZr;rn.weekdaysParse=nZr;rn.weekdaysRegex=lZr;rn.weekdaysShortRegex=cZr;rn.weekdaysMinRegex=sZr;rn.isPM=dZr;rn.meridiem=hZr;function _g(e,t,r,n){var a=Ss(),o=$c().set(n,t);return a[r](o,e)}function Lse(e,t,r){if(is(e)&&(t=e,e=void 0),e=e||"",t!=null)return _g(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=_g(e,n,r,"month");return a}function vP(e,t,r,n){typeof e=="boolean"?(is(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,is(t)&&(r=t,t=void 0),t=t||"");var a=Ss(),o=e?a._week.dow:0,l,c=[];if(r!=null)return _g(t,(r+o)%7,n,"day");for(l=0;l<7;l++)c[l]=_g(t,(l+o)%7,n,"day");return c}function bJr(e,t){return Lse(e,t,"months")}function SJr(e,t){return Lse(e,t,"monthsShort")}function $Jr(e,t,r){return vP(e,t,r,"weekdays")}function wJr(e,t,r){return vP(e,t,r,"weekdaysShort")}function CJr(e,t,r){return vP(e,t,r,"weekdaysMin")}vu("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=kr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});Lt.lang=Wi("moment.lang is deprecated. Use moment.locale instead.",vu);Lt.langData=Wi("moment.langData is deprecated. Use moment.localeData instead.",Ss);var zc=Math.abs;function xJr(){var e=this._data;return this._milliseconds=zc(this._milliseconds),this._days=zc(this._days),this._months=zc(this._months),e.milliseconds=zc(e.milliseconds),e.seconds=zc(e.seconds),e.minutes=zc(e.minutes),e.hours=zc(e.hours),e.months=zc(e.months),e.years=zc(e.years),this}function Ase(e,t,r,n){var a=Al(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function OJr(e,t){return Ase(this,e,t,1)}function EJr(e,t){return Ase(this,e,t,-1)}function NW(e){return e<0?Math.floor(e):Math.ceil(e)}function RJr(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,o,l,c,s;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=NW(wO(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=Fi(e/1e3),n.seconds=a%60,o=Fi(a/60),n.minutes=o%60,l=Fi(o/60),n.hours=l%24,t+=Fi(l/24),s=Fi(Nse(t)),r+=s,t-=NW(wO(s)),c=Fi(r/12),r%=12,n.days=t,n.months=r,n.years=c,this}function Nse(e){return e*4800/146097}function wO(e){return e*146097/4800}function MJr(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=Ui(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+Nse(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(wO(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function $s(e){return function(){return this.as(e)}}var Hse=$s("ms"),IJr=$s("s"),TJr=$s("m"),PJr=$s("h"),_Jr=$s("d"),zJr=$s("w"),FJr=$s("M"),kJr=$s("Q"),DJr=$s("y"),LJr=Hse;function AJr(){return Al(this)}function NJr(e){return e=Ui(e),this.isValid()?this[e+"s"]():NaN}function td(e){return function(){return this.isValid()?this._data[e]:NaN}}var HJr=td("milliseconds"),BJr=td("seconds"),jJr=td("minutes"),VJr=td("hours"),WJr=td("days"),UJr=td("months"),KJr=td("years");function YJr(){return Fi(this.days()/7)}var Dc=Math.round,Qd={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function GJr(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function qJr(e,t,r,n){var a=Al(e).abs(),o=Dc(a.as("s")),l=Dc(a.as("m")),c=Dc(a.as("h")),s=Dc(a.as("d")),u=Dc(a.as("M")),d=Dc(a.as("w")),f=Dc(a.as("y")),v=o<=r.ss&&["s",o]||o0,v[4]=n,GJr.apply(null,v)}function XJr(e){return e===void 0?Dc:typeof e=="function"?(Dc=e,!0):!1}function ZJr(e,t){return Qd[e]===void 0?!1:t===void 0?Qd[e]:(Qd[e]=t,e==="s"&&(Qd.ss=t-1),!0)}function QJr(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Qd,a,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Qd,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),o=qJr(this,!r,n,a),r&&(o=a.pastFuture(+this,o)),a.postformat(o)}var f$=Math.abs;function Rd(e){return(e>0)-(e<0)||+e}function e9(){if(!this.isValid())return this.localeData().invalidDate();var e=f$(this._milliseconds)/1e3,t=f$(this._days),r=f$(this._months),n,a,o,l,c=this.asSeconds(),s,u,d,f;return c?(n=Fi(e/60),a=Fi(n/60),e%=60,n%=60,o=Fi(r/12),r%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",s=c<0?"-":"",u=Rd(this._months)!==Rd(c)?"-":"",d=Rd(this._days)!==Rd(c)?"-":"",f=Rd(this._milliseconds)!==Rd(c)?"-":"",s+"P"+(o?u+o+"Y":"")+(r?u+r+"M":"")+(t?d+t+"D":"")+(a||n||e?"T":"")+(a?f+a+"H":"")+(n?f+n+"M":"")+(e?f+l+"S":"")):"P0D"}var Gr=Qp.prototype;Gr.isValid=UZr;Gr.abs=xJr;Gr.add=OJr;Gr.subtract=EJr;Gr.as=MJr;Gr.asMilliseconds=Hse;Gr.asSeconds=IJr;Gr.asMinutes=TJr;Gr.asHours=PJr;Gr.asDays=_Jr;Gr.asWeeks=zJr;Gr.asMonths=FJr;Gr.asQuarters=kJr;Gr.asYears=DJr;Gr.valueOf=LJr;Gr._bubble=RJr;Gr.clone=AJr;Gr.get=NJr;Gr.milliseconds=HJr;Gr.seconds=BJr;Gr.minutes=jJr;Gr.hours=VJr;Gr.days=WJr;Gr.weeks=YJr;Gr.months=UJr;Gr.years=KJr;Gr.humanize=QJr;Gr.toISOString=e9;Gr.toString=e9;Gr.toJSON=e9;Gr.locale=Rse;Gr.localeData=Ise;Gr.toIsoString=Wi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",e9);Gr.lang=Mse;tr("X",0,0,"unix");tr("x",0,0,"valueOf");Ut("x",Gp);Ut("X",bXr);gn("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});gn("x",function(e,t,r){r._d=new Date(kr(e))});//! moment.js -Lt.version="2.30.1";Jqr(Mn);Lt.fn=bt;Lt.min=BZr;Lt.max=jZr;Lt.now=VZr;Lt.utc=$c;Lt.unix=pJr;Lt.months=bJr;Lt.isDate=Z6;Lt.locale=vu;Lt.invalid=Wp;Lt.duration=Al;Lt.isMoment=Rl;Lt.weekdays=$Jr;Lt.parseZone=yJr;Lt.localeData=Ss;Lt.isDuration=Hh;Lt.monthsShort=SJr;Lt.weekdaysMin=CJr;Lt.defineLocale=oP;Lt.updateLocale=yZr;Lt.locales=bZr;Lt.weekdaysShort=wJr;Lt.normalizeUnits=Ui;Lt.relativeTimeRounding=XJr;Lt.relativeTimeThreshold=ZJr;Lt.calendarFormat=hQr;Lt.prototype=bt;Lt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function Bse(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var v$={exports:{}},HW;function JJr(){return HW||(HW=1,function(e,t){(function(r,n){e.exports=n()})(an,function(){var r;function n(){return r.apply(null,arguments)}function a(x){r=x}function o(x){return x instanceof Array||Object.prototype.toString.call(x)==="[object Array]"}function l(x){return x!=null&&Object.prototype.toString.call(x)==="[object Object]"}function c(x,L){return Object.prototype.hasOwnProperty.call(x,L)}function s(x){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(x).length===0;var L;for(L in x)if(c(x,L))return!1;return!0}function u(x){return x===void 0}function d(x){return typeof x=="number"||Object.prototype.toString.call(x)==="[object Number]"}function f(x){return x instanceof Date||Object.prototype.toString.call(x)==="[object Date]"}function v(x,L){var G=[],ee,he=x.length;for(ee=0;ee>>0,ee;for(ee=0;ee0)for(G=0;G=0;return(o?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var XT=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Lv=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,u$={},p0={};function tr(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(p0[e]=a),t&&(p0[t[0]]=function(){return dc(a.apply(this,arguments),t[1],t[2])}),r&&(p0[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function aXr(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function oXr(e){var t=e.match(XT),r,n;for(r=0,n=t.length;r=0&&Lv.test(e);)e=e.replace(Lv,n),Lv.lastIndex=0,r-=1;return e}var iXr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function lXr(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(XT).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var cXr="Invalid date";function sXr(){return this._invalidDate}var uXr="%d",dXr=/\d{1,2}/;function fXr(e){return this._ordinal.replace("%d",e)}var vXr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function hXr(e,t,r,n){var a=this._relativeTime[r];return wc(a)?a(e,t,r,n):a.replace(/%d/i,e)}function mXr(e,t){var r=this._relativeTime[e>0?"future":"past"];return wc(r)?r(t):r.replace(/%s/i,t)}var DW={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Wi(e){return typeof e=="string"?DW[e]||DW[e.toLowerCase()]:void 0}function ZT(e){var t={},r,n;for(n in e)Jr(e,n)&&(r=Wi(n),r&&(t[r]=e[n]));return t}var gXr={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function pXr(e){var t=[],r;for(r in e)Jr(e,r)&&t.push({unit:r,priority:gXr[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var ese=/\d/,Ci=/\d\d/,tse=/\d{3}/,QT=/\d{4}/,Up=/[+-]?\d{6}/,_n=/\d\d?/,rse=/\d\d\d\d?/,nse=/\d\d\d\d\d\d?/,Kp=/\d{1,3}/,JT=/\d{1,4}/,Yp=/[+-]?\d{1,6}/,J4=/\d+/,Gp=/[+-]?\d+/,yXr=/Z|[+-]\d\d:?\d\d/gi,qp=/Z|[+-]\d\d(?::?\d\d)?/gi,bXr=/[+-]?\d+(\.\d{1,3})?/,J6=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,e2=/^[1-9]\d?/,eP=/^([1-9]\d|\d)/,Ig;Ig={};function Ut(e,t,r){Ig[e]=wc(t)?t:function(n,a){return n&&r?r:t}}function SXr(e,t){return Jr(Ig,e)?Ig[e](t._strict,t._locale):new RegExp($Xr(e))}function $Xr(e){return Gc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,o){return r||n||a||o}))}function Gc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Fi(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function kr(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Fi(t)),r}var bO={};function gn(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),is(t)&&(n=function(o,l){l[t]=kr(o)}),a=e.length,r=0;r68?1900:2e3)};var ase=t2("FullYear",!0);function OXr(){return Xp(this.year())}function t2(e,t){return function(r){return r!=null?(ose(this,e,r),Lt.updateOffset(this,t),this):_3(this,e)}}function _3(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function ose(e,t,r){var n,a,o,l,c;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}o=r,l=e.month(),c=e.date(),c=c===29&&l===1&&!Xp(o)?28:c,a?n.setUTCFullYear(o,l,c):n.setFullYear(o,l,c)}}function EXr(e){return e=Wi(e),wc(this[e])?this[e]():this}function RXr(e,t){if(typeof e=="object"){e=ZT(e);var r=pXr(e),n,a=r.length;for(n=0;n=0?(c=new Date(e+400,t,r,n,a,o,l),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,r,n,a,o,l),c}function z3(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Mg(e,t,r){var n=7+t-r,a=(7+z3(e,0,n).getUTCDay()-t)%7;return-a+n-1}function dse(e,t,r,n,a){var o=(7+r-n)%7,l=Mg(e,n,a),c=1+7*(t-1)+o+l,s,u;return c<=0?(s=e-1,u=Lf(s)+c):c>Lf(e)?(s=e+1,u=c-Lf(e)):(s=e,u=c),{year:s,dayOfYear:u}}function F3(e,t,r){var n=Mg(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,o,l;return a<1?(l=e.year()-1,o=a+qc(l,t,r)):a>qc(e.year(),t,r)?(o=a-qc(e.year(),t,r),l=e.year()+1):(l=e.year(),o=a),{week:o,year:l}}function qc(e,t,r){var n=Mg(e,t,r),a=Mg(e+1,t,r);return(Lf(e)-n+a)/7}tr("w",["ww",2],"wo","week");tr("W",["WW",2],"Wo","isoWeek");Ut("w",_n,e2);Ut("ww",_n,Ci);Ut("W",_n,e2);Ut("WW",_n,Ci);e8(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=kr(e)});function HXr(e){return F3(e,this._week.dow,this._week.doy).week}var BXr={dow:0,doy:6};function VXr(){return this._week.dow}function jXr(){return this._week.doy}function WXr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function UXr(e){var t=F3(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}tr("d",0,"do","day");tr("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});tr("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});tr("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});tr("e",0,0,"weekday");tr("E",0,0,"isoWeekday");Ut("d",_n);Ut("e",_n);Ut("E",_n);Ut("dd",function(e,t){return t.weekdaysMinRegex(e)});Ut("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ut("dddd",function(e,t){return t.weekdaysRegex(e)});e8(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:Er(r).invalidWeekday=e});e8(["d","e","E"],function(e,t,r,n){t[n]=kr(e)});function KXr(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function YXr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function rP(e,t){return e.slice(t,7).concat(e.slice(0,t))}var GXr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),fse="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qXr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),XXr=J6,ZXr=J6,QXr=J6;function JXr(e,t){var r=El(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?rP(r,this._week.dow):e?r[e.day()]:r}function eZr(e){return e===!0?rP(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function tZr(e){return e===!0?rP(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function rZr(e,t,r){var n,a,o,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=$c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?t==="dddd"?(a=ea.call(this._weekdaysParse,l),a!==-1?a:null):t==="ddd"?(a=ea.call(this._shortWeekdaysParse,l),a!==-1?a:null):(a=ea.call(this._minWeekdaysParse,l),a!==-1?a:null):t==="dddd"?(a=ea.call(this._weekdaysParse,l),a!==-1||(a=ea.call(this._shortWeekdaysParse,l),a!==-1)?a:(a=ea.call(this._minWeekdaysParse,l),a!==-1?a:null)):t==="ddd"?(a=ea.call(this._shortWeekdaysParse,l),a!==-1||(a=ea.call(this._weekdaysParse,l),a!==-1)?a:(a=ea.call(this._minWeekdaysParse,l),a!==-1?a:null)):(a=ea.call(this._minWeekdaysParse,l),a!==-1||(a=ea.call(this._weekdaysParse,l),a!==-1)?a:(a=ea.call(this._shortWeekdaysParse,l),a!==-1?a:null))}function nZr(e,t,r){var n,a,o;if(this._weekdaysParseExact)return rZr.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=$c([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function aZr(e){if(!this.isValid())return e!=null?this:NaN;var t=_3(this,"Day");return e!=null?(e=KXr(e,this.localeData()),this.add(e-t,"d")):t}function oZr(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function iZr(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=YXr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function lZr(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||nP.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Jr(this,"_weekdaysRegex")||(this._weekdaysRegex=XXr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function cZr(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||nP.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Jr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ZXr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function sZr(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||nP.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Jr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=QXr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function nP(){function e(d,f){return f.length-d.length}var t=[],r=[],n=[],a=[],o,l,c,s,u;for(o=0;o<7;o++)l=$c([2e3,1]).day(o),c=Gc(this.weekdaysMin(l,"")),s=Gc(this.weekdaysShort(l,"")),u=Gc(this.weekdays(l,"")),t.push(c),r.push(s),n.push(u),a.push(c),a.push(s),a.push(u);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function aP(){return this.hours()%12||12}function uZr(){return this.hours()||24}tr("H",["HH",2],0,"hour");tr("h",["hh",2],0,aP);tr("k",["kk",2],0,uZr);tr("hmm",0,0,function(){return""+aP.apply(this)+dc(this.minutes(),2)});tr("hmmss",0,0,function(){return""+aP.apply(this)+dc(this.minutes(),2)+dc(this.seconds(),2)});tr("Hmm",0,0,function(){return""+this.hours()+dc(this.minutes(),2)});tr("Hmmss",0,0,function(){return""+this.hours()+dc(this.minutes(),2)+dc(this.seconds(),2)});function vse(e,t){tr(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}vse("a",!0);vse("A",!1);function hse(e,t){return t._meridiemParse}Ut("a",hse);Ut("A",hse);Ut("H",_n,eP);Ut("h",_n,e2);Ut("k",_n,e2);Ut("HH",_n,Ci);Ut("hh",_n,Ci);Ut("kk",_n,Ci);Ut("hmm",rse);Ut("hmmss",nse);Ut("Hmm",rse);Ut("Hmmss",nse);gn(["H","HH"],pa);gn(["k","kk"],function(e,t,r){var n=kr(e);t[pa]=n===24?0:n});gn(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});gn(["h","hh"],function(e,t,r){t[pa]=kr(e),Er(r).bigHour=!0});gn("hmm",function(e,t,r){var n=e.length-2;t[pa]=kr(e.substr(0,n)),t[ul]=kr(e.substr(n)),Er(r).bigHour=!0});gn("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[pa]=kr(e.substr(0,n)),t[ul]=kr(e.substr(n,2)),t[jc]=kr(e.substr(a)),Er(r).bigHour=!0});gn("Hmm",function(e,t,r){var n=e.length-2;t[pa]=kr(e.substr(0,n)),t[ul]=kr(e.substr(n))});gn("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[pa]=kr(e.substr(0,n)),t[ul]=kr(e.substr(n,2)),t[jc]=kr(e.substr(a))});function dZr(e){return(e+"").toLowerCase().charAt(0)==="p"}var fZr=/[ap]\.?m?\.?/i,vZr=t2("Hours",!0);function hZr(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var mse={calendar:rXr,longDateFormat:iXr,invalidDate:cXr,ordinal:uXr,dayOfMonthOrdinalParse:dXr,relativeTime:vXr,months:MXr,monthsShort:ise,week:BXr,weekdays:GXr,weekdaysMin:qXr,weekdaysShort:fse,meridiemParse:fZr},zn={},N2={},k3;function mZr(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r0;){if(a=Zp(o.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&mZr(o,n)>=r-1)break;r--}t++}return k3}function pZr(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Zp(e){var t=null,r;if(zn[e]===void 0&&typeof module<"u"&&module&&module.exports&&pZr(e))try{t=k3._abbr,r=require,r("./locale/"+e),vu(t)}catch{zn[e]=null}return zn[e]}function vu(e,t){var r;return e&&(zo(t)?r=Ss(e):r=oP(e,t),r?k3=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),k3._abbr}function oP(e,t){if(t!==null){var r,n=mse;if(t.abbr=e,zn[e]!=null)Qce("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=zn[e]._config;else if(t.parentLocale!=null)if(zn[t.parentLocale]!=null)n=zn[t.parentLocale]._config;else if(r=Zp(t.parentLocale),r!=null)n=r._config;else return N2[t.parentLocale]||(N2[t.parentLocale]=[]),N2[t.parentLocale].push({name:e,config:t}),null;return zn[e]=new qT(pO(n,t)),N2[e]&&N2[e].forEach(function(a){oP(a.name,a.config)}),vu(e),zn[e]}else return delete zn[e],null}function yZr(e,t){if(t!=null){var r,n,a=mse;zn[e]!=null&&zn[e].parentLocale!=null?zn[e].set(pO(zn[e]._config,t)):(n=Zp(e),n!=null&&(a=n._config),t=pO(a,t),n==null&&(t.abbr=e),r=new qT(t),r.parentLocale=zn[e],zn[e]=r),vu(e)}else zn[e]!=null&&(zn[e].parentLocale!=null?(zn[e]=zn[e].parentLocale,e===vu()&&vu(e)):zn[e]!=null&&delete zn[e]);return zn[e]}function Ss(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return k3;if(!El(e)){if(t=Zp(e),t)return t;e=[e]}return gZr(e)}function bZr(){return yO(zn)}function iP(e){var t,r=e._a;return r&&Er(e).overflow===-2&&(t=r[Vc]<0||r[Vc]>11?Vc:r[ql]<1||r[ql]>tP(r[lo],r[Vc])?ql:r[pa]<0||r[pa]>24||r[pa]===24&&(r[ul]!==0||r[jc]!==0||r[r1]!==0)?pa:r[ul]<0||r[ul]>59?ul:r[jc]<0||r[jc]>59?jc:r[r1]<0||r[r1]>999?r1:-1,Er(e)._overflowDayOfYear&&(tql)&&(t=ql),Er(e)._overflowWeeks&&t===-1&&(t=CXr),Er(e)._overflowWeekday&&t===-1&&(t=xXr),Er(e).overflow=t),e}var SZr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$Zr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wZr=/Z|[+-]\d\d(?::?\d\d)?/,Av=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],d$=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],CZr=/^\/?Date\((-?\d+)/i,xZr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,OZr={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function gse(e){var t,r,n=e._i,a=SZr.exec(n)||$Zr.exec(n),o,l,c,s,u=Av.length,d=d$.length;if(a){for(Er(e).iso=!0,t=0,r=u;tLf(l)||e._dayOfYear===0)&&(Er(e)._overflowDayOfYear=!0),r=z3(l,0,e._dayOfYear),e._a[Vc]=r.getUTCMonth(),e._a[ql]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[pa]===24&&e._a[ul]===0&&e._a[jc]===0&&e._a[r1]===0&&(e._nextDay=!0,e._a[pa]=0),e._d=(e._useUTC?z3:NXr).apply(null,n),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[pa]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Er(e).weekdayMismatch=!0)}}function zZr(e){var t,r,n,a,o,l,c,s,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,l=4,r=Pd(t.GG,e._a[lo],F3(In(),1,4).year),n=Pd(t.W,1),a=Pd(t.E,1),(a<1||a>7)&&(s=!0)):(o=e._locale._week.dow,l=e._locale._week.doy,u=F3(In(),o,l),r=Pd(t.gg,e._a[lo],u.year),n=Pd(t.w,u.week),t.d!=null?(a=t.d,(a<0||a>6)&&(s=!0)):t.e!=null?(a=t.e+o,(t.e<0||t.e>6)&&(s=!0)):a=o),n<1||n>qc(r,o,l)?Er(e)._overflowWeeks=!0:s!=null?Er(e)._overflowWeekday=!0:(c=dse(r,n,a,o,l),e._a[lo]=c.year,e._dayOfYear=c.dayOfYear)}Lt.ISO_8601=function(){};Lt.RFC_2822=function(){};function cP(e){if(e._f===Lt.ISO_8601){gse(e);return}if(e._f===Lt.RFC_2822){pse(e);return}e._a=[],Er(e).empty=!0;var t=""+e._i,r,n,a,o,l,c=t.length,s=0,u,d;for(a=Jce(e._f,e._locale).match(XT)||[],d=a.length,r=0;r0&&Er(e).unusedInput.push(l),t=t.slice(t.indexOf(n)+n.length),s+=n.length),p0[o]?(n?Er(e).empty=!1:Er(e).unusedTokens.push(o),wXr(o,n,e)):e._strict&&!n&&Er(e).unusedTokens.push(o);Er(e).charsLeftOver=c-s,t.length>0&&Er(e).unusedInput.push(t),e._a[pa]<=12&&Er(e).bigHour===!0&&e._a[pa]>0&&(Er(e).bigHour=void 0),Er(e).parsedDateParts=e._a.slice(0),Er(e).meridiem=e._meridiem,e._a[pa]=FZr(e._locale,e._a[pa],e._meridiem),u=Er(e).era,u!==null&&(e._a[lo]=e._locale.erasConvertYear(u,e._a[lo])),lP(e),iP(e)}function FZr(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function kZr(e){var t,r,n,a,o,l,c=!1,s=e._f.length;if(s===0){Er(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;athis?this:e:Wp()});function Sse(e,t){var r,n;if(t.length===1&&El(t[0])&&(t=t[0]),!t.length)return In();for(r=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function rQr(){if(!zo(this._isDSTShifted))return this._isDSTShifted;var e={},t;return GT(e,this),e=yse(e),e._a?(t=e._isUTC?$c(e._a):In(e._a),this._isDSTShifted=this.isValid()&&YZr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function nQr(){return this.isValid()?!this._isUTC:!1}function aQr(){return this.isValid()?this._isUTC:!1}function wse(){return this.isValid()?this._isUTC&&this._offset===0:!1}var oQr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,iQr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Al(e,t){var r=e,n=null,a,o,l;return Hh(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:is(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=oQr.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:kr(n[ql])*a,h:kr(n[pa])*a,m:kr(n[ul])*a,s:kr(n[jc])*a,ms:kr(SO(n[r1]*1e3))*a}):(n=iQr.exec(e))?(a=n[1]==="-"?-1:1,r={y:Bu(n[2],a),M:Bu(n[3],a),w:Bu(n[4],a),d:Bu(n[5],a),h:Bu(n[6],a),m:Bu(n[7],a),s:Bu(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(l=lQr(In(r.from),In(r.to)),r={},r.ms=l.milliseconds,r.M=l.months),o=new Qp(r),Hh(e)&&Jr(e,"_locale")&&(o._locale=e._locale),Hh(e)&&Jr(e,"_isValid")&&(o._isValid=e._isValid),o}Al.fn=Qp.prototype;Al.invalid=KZr;function Bu(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function AW(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function lQr(e,t){var r;return e.isValid()&&t.isValid()?(t=uP(t,e),e.isBefore(t)?r=AW(e,t):(r=AW(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Cse(e,t){return function(r,n){var a,o;return n!==null&&!isNaN(+n)&&(Qce(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=r,r=n,n=o),a=Al(r,n),xse(this,a,e),this}}function xse(e,t,r,n){var a=t._milliseconds,o=SO(t._days),l=SO(t._months);e.isValid()&&(n=n??!0,l&&cse(e,_3(e,"Month")+l*r),o&&ose(e,"Date",_3(e,"Date")+o*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&Lt.updateOffset(e,o||l))}var cQr=Cse(1,"add"),sQr=Cse(-1,"subtract");function Ose(e){return typeof e=="string"||e instanceof String}function uQr(e){return Rl(e)||Z6(e)||Ose(e)||is(e)||fQr(e)||dQr(e)||e===null||e===void 0}function dQr(e){var t=h1(e)&&!KT(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,o,l=n.length;for(a=0;ar.valueOf():r.valueOf()9999?Nh(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):wc(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Nh(r,"Z")):Nh(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function EQr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(r+n+a+o)}function RQr(e){e||(e=this.isUtc()?Lt.defaultFormatUtc:Lt.defaultFormat);var t=Nh(this,e);return this.localeData().postformat(t)}function IQr(e,t){return this.isValid()&&(Rl(e)&&e.isValid()||In(e).isValid())?Al({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function MQr(e){return this.from(In(),e)}function TQr(e,t){return this.isValid()&&(Rl(e)&&e.isValid()||In(e).isValid())?Al({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function PQr(e){return this.to(In(),e)}function Ese(e){var t;return e===void 0?this._locale._abbr:(t=Ss(e),t!=null&&(this._locale=t),this)}var Rse=ji("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Ise(){return this._locale}var Tg=1e3,y0=60*Tg,Pg=60*y0,Mse=(365*400+97)*24*Pg;function b0(e,t){return(e%t+t)%t}function Tse(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Mse:new Date(e,t,r).valueOf()}function Pse(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Mse:Date.UTC(e,t,r)}function _Qr(e){var t,r;if(e=Wi(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Pse:Tse,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=b0(t+(this._isUTC?0:this.utcOffset()*y0),Pg);break;case"minute":t=this._d.valueOf(),t-=b0(t,y0);break;case"second":t=this._d.valueOf(),t-=b0(t,Tg);break}return this._d.setTime(t),Lt.updateOffset(this,!0),this}function zQr(e){var t,r;if(e=Wi(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Pse:Tse,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Pg-b0(t+(this._isUTC?0:this.utcOffset()*y0),Pg)-1;break;case"minute":t=this._d.valueOf(),t+=y0-b0(t,y0)-1;break;case"second":t=this._d.valueOf(),t+=Tg-b0(t,Tg)-1;break}return this._d.setTime(t),Lt.updateOffset(this,!0),this}function FQr(){return this._d.valueOf()-(this._offset||0)*6e4}function kQr(){return Math.floor(this.valueOf()/1e3)}function DQr(){return new Date(this.valueOf())}function LQr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function AQr(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function NQr(){return this.isValid()?this.toISOString():null}function HQr(){return YT(this)}function BQr(){return Qs({},Er(this))}function VQr(){return Er(this).overflow}function jQr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}tr("N",0,0,"eraAbbr");tr("NN",0,0,"eraAbbr");tr("NNN",0,0,"eraAbbr");tr("NNNN",0,0,"eraName");tr("NNNNN",0,0,"eraNarrow");tr("y",["y",1],"yo","eraYear");tr("y",["yy",2],0,"eraYear");tr("y",["yyy",3],0,"eraYear");tr("y",["yyyy",4],0,"eraYear");Ut("N",dP);Ut("NN",dP);Ut("NNN",dP);Ut("NNNN",eJr);Ut("NNNNN",tJr);gn(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?Er(r).era=a:Er(r).invalidEra=e});Ut("y",J4);Ut("yy",J4);Ut("yyy",J4);Ut("yyyy",J4);Ut("yo",rJr);gn(["y","yy","yyy","yyyy"],lo);gn(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[lo]=r._locale.eraYearOrdinalParse(e,a):t[lo]=parseInt(e,10)});function WQr(e,t){var r,n,a,o=this._eras||Ss("en")._eras;for(r=0,n=o.length;r=0)return o[n]}function KQr(e,t){var r=e.since<=e.until?1:-1;return t===void 0?Lt(e.since).year():Lt(e.since).year()+(t-e.offset)*r}function YQr(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;eo&&(t=o),sJr.call(this,e,t,r,n,a))}function sJr(e,t,r,n,a){var o=dse(e,t,r,n,a),l=z3(o.year,0,o.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}tr("Q",0,"Qo","quarter");Ut("Q",ese);gn("Q",function(e,t){t[Vc]=(kr(e)-1)*3});function uJr(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}tr("D",["DD",2],"Do","date");Ut("D",_n,e2);Ut("DD",_n,Ci);Ut("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});gn(["D","DD"],ql);gn("Do",function(e,t){t[ql]=kr(e.match(_n)[0])});var zse=t2("Date",!0);tr("DDD",["DDDD",3],"DDDo","dayOfYear");Ut("DDD",Kp);Ut("DDDD",tse);gn(["DDD","DDDD"],function(e,t,r){r._dayOfYear=kr(e)});function dJr(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}tr("m",["mm",2],0,"minute");Ut("m",_n,eP);Ut("mm",_n,Ci);gn(["m","mm"],ul);var fJr=t2("Minutes",!1);tr("s",["ss",2],0,"second");Ut("s",_n,eP);Ut("ss",_n,Ci);gn(["s","ss"],jc);var vJr=t2("Seconds",!1);tr("S",0,0,function(){return~~(this.millisecond()/100)});tr(0,["SS",2],0,function(){return~~(this.millisecond()/10)});tr(0,["SSS",3],0,"millisecond");tr(0,["SSSS",4],0,function(){return this.millisecond()*10});tr(0,["SSSSS",5],0,function(){return this.millisecond()*100});tr(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});tr(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});tr(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});tr(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ut("S",Kp,ese);Ut("SS",Kp,Ci);Ut("SSS",Kp,tse);var Js,Fse;for(Js="SSSS";Js.length<=9;Js+="S")Ut(Js,J4);function hJr(e,t){t[r1]=kr(("0."+e)*1e3)}for(Js="S";Js.length<=9;Js+="S")gn(Js,hJr);Fse=t2("Milliseconds",!1);tr("z",0,0,"zoneAbbr");tr("zz",0,0,"zoneName");function mJr(){return this._isUTC?"UTC":""}function gJr(){return this._isUTC?"Coordinated Universal Time":""}var St=Q6.prototype;St.add=cQr;St.calendar=mQr;St.clone=gQr;St.diff=CQr;St.endOf=zQr;St.format=RQr;St.from=IQr;St.fromNow=MQr;St.to=TQr;St.toNow=PQr;St.get=EXr;St.invalidAt=VQr;St.isAfter=pQr;St.isBefore=yQr;St.isBetween=bQr;St.isSame=SQr;St.isSameOrAfter=$Qr;St.isSameOrBefore=wQr;St.isValid=HQr;St.lang=Rse;St.locale=Ese;St.localeData=Ise;St.max=HZr;St.min=NZr;St.parsingFlags=BQr;St.set=RXr;St.startOf=_Qr;St.subtract=sQr;St.toArray=LQr;St.toObject=AQr;St.toDate=DQr;St.toISOString=OQr;St.inspect=EQr;typeof Symbol<"u"&&Symbol.for!=null&&(St[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});St.toJSON=NQr;St.toString=xQr;St.unix=kQr;St.valueOf=FQr;St.creationData=jQr;St.eraName=YQr;St.eraNarrow=GQr;St.eraAbbr=qQr;St.eraYear=XQr;St.year=ase;St.isLeapYear=OXr;St.weekYear=nJr;St.isoWeekYear=aJr;St.quarter=St.quarters=uJr;St.month=sse;St.daysInMonth=DXr;St.week=St.weeks=WXr;St.isoWeek=St.isoWeeks=UXr;St.weeksInYear=lJr;St.weeksInWeekYear=cJr;St.isoWeeksInYear=oJr;St.isoWeeksInISOWeekYear=iJr;St.date=zse;St.day=St.days=aZr;St.weekday=oZr;St.isoWeekday=iZr;St.dayOfYear=dJr;St.hour=St.hours=vZr;St.minute=St.minutes=fJr;St.second=St.seconds=vJr;St.millisecond=St.milliseconds=Fse;St.utcOffset=qZr;St.utc=ZZr;St.local=QZr;St.parseZone=JZr;St.hasAlignedHourOffset=eQr;St.isDST=tQr;St.isLocal=nQr;St.isUtcOffset=aQr;St.isUtc=wse;St.isUTC=wse;St.zoneAbbr=mJr;St.zoneName=gJr;St.dates=ji("dates accessor is deprecated. Use date instead.",zse);St.months=ji("months accessor is deprecated. Use month instead",sse);St.years=ji("years accessor is deprecated. Use year instead",ase);St.zone=ji("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",XZr);St.isDSTShifted=ji("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",rQr);function pJr(e){return In(e*1e3)}function yJr(){return In.apply(null,arguments).parseZone()}function kse(e){return e}var rn=qT.prototype;rn.calendar=nXr;rn.longDateFormat=lXr;rn.invalidDate=sXr;rn.ordinal=fXr;rn.preparse=kse;rn.postformat=kse;rn.relativeTime=hXr;rn.pastFuture=mXr;rn.set=tXr;rn.eras=WQr;rn.erasParse=UQr;rn.erasConvertYear=KQr;rn.erasAbbrRegex=QQr;rn.erasNameRegex=ZQr;rn.erasNarrowRegex=JQr;rn.months=_Xr;rn.monthsShort=zXr;rn.monthsParse=kXr;rn.monthsRegex=AXr;rn.monthsShortRegex=LXr;rn.week=HXr;rn.firstDayOfYear=jXr;rn.firstDayOfWeek=VXr;rn.weekdays=JXr;rn.weekdaysMin=tZr;rn.weekdaysShort=eZr;rn.weekdaysParse=nZr;rn.weekdaysRegex=lZr;rn.weekdaysShortRegex=cZr;rn.weekdaysMinRegex=sZr;rn.isPM=dZr;rn.meridiem=hZr;function _g(e,t,r,n){var a=Ss(),o=$c().set(n,t);return a[r](o,e)}function Dse(e,t,r){if(is(e)&&(t=e,e=void 0),e=e||"",t!=null)return _g(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=_g(e,n,r,"month");return a}function vP(e,t,r,n){typeof e=="boolean"?(is(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,is(t)&&(r=t,t=void 0),t=t||"");var a=Ss(),o=e?a._week.dow:0,l,c=[];if(r!=null)return _g(t,(r+o)%7,n,"day");for(l=0;l<7;l++)c[l]=_g(t,(l+o)%7,n,"day");return c}function bJr(e,t){return Dse(e,t,"months")}function SJr(e,t){return Dse(e,t,"monthsShort")}function $Jr(e,t,r){return vP(e,t,r,"weekdays")}function wJr(e,t,r){return vP(e,t,r,"weekdaysShort")}function CJr(e,t,r){return vP(e,t,r,"weekdaysMin")}vu("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=kr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});Lt.lang=ji("moment.lang is deprecated. Use moment.locale instead.",vu);Lt.langData=ji("moment.langData is deprecated. Use moment.localeData instead.",Ss);var zc=Math.abs;function xJr(){var e=this._data;return this._milliseconds=zc(this._milliseconds),this._days=zc(this._days),this._months=zc(this._months),e.milliseconds=zc(e.milliseconds),e.seconds=zc(e.seconds),e.minutes=zc(e.minutes),e.hours=zc(e.hours),e.months=zc(e.months),e.years=zc(e.years),this}function Lse(e,t,r,n){var a=Al(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function OJr(e,t){return Lse(this,e,t,1)}function EJr(e,t){return Lse(this,e,t,-1)}function NW(e){return e<0?Math.floor(e):Math.ceil(e)}function RJr(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,o,l,c,s;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=NW(wO(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=Fi(e/1e3),n.seconds=a%60,o=Fi(a/60),n.minutes=o%60,l=Fi(o/60),n.hours=l%24,t+=Fi(l/24),s=Fi(Ase(t)),r+=s,t-=NW(wO(s)),c=Fi(r/12),r%=12,n.days=t,n.months=r,n.years=c,this}function Ase(e){return e*4800/146097}function wO(e){return e*146097/4800}function IJr(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=Wi(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+Ase(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(wO(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function $s(e){return function(){return this.as(e)}}var Nse=$s("ms"),MJr=$s("s"),TJr=$s("m"),PJr=$s("h"),_Jr=$s("d"),zJr=$s("w"),FJr=$s("M"),kJr=$s("Q"),DJr=$s("y"),LJr=Nse;function AJr(){return Al(this)}function NJr(e){return e=Wi(e),this.isValid()?this[e+"s"]():NaN}function td(e){return function(){return this.isValid()?this._data[e]:NaN}}var HJr=td("milliseconds"),BJr=td("seconds"),VJr=td("minutes"),jJr=td("hours"),WJr=td("days"),UJr=td("months"),KJr=td("years");function YJr(){return Fi(this.days()/7)}var Dc=Math.round,Qd={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function GJr(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function qJr(e,t,r,n){var a=Al(e).abs(),o=Dc(a.as("s")),l=Dc(a.as("m")),c=Dc(a.as("h")),s=Dc(a.as("d")),u=Dc(a.as("M")),d=Dc(a.as("w")),f=Dc(a.as("y")),v=o<=r.ss&&["s",o]||o0,v[4]=n,GJr.apply(null,v)}function XJr(e){return e===void 0?Dc:typeof e=="function"?(Dc=e,!0):!1}function ZJr(e,t){return Qd[e]===void 0?!1:t===void 0?Qd[e]:(Qd[e]=t,e==="s"&&(Qd.ss=t-1),!0)}function QJr(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Qd,a,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Qd,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),o=qJr(this,!r,n,a),r&&(o=a.pastFuture(+this,o)),a.postformat(o)}var f$=Math.abs;function Rd(e){return(e>0)-(e<0)||+e}function e9(){if(!this.isValid())return this.localeData().invalidDate();var e=f$(this._milliseconds)/1e3,t=f$(this._days),r=f$(this._months),n,a,o,l,c=this.asSeconds(),s,u,d,f;return c?(n=Fi(e/60),a=Fi(n/60),e%=60,n%=60,o=Fi(r/12),r%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",s=c<0?"-":"",u=Rd(this._months)!==Rd(c)?"-":"",d=Rd(this._days)!==Rd(c)?"-":"",f=Rd(this._milliseconds)!==Rd(c)?"-":"",s+"P"+(o?u+o+"Y":"")+(r?u+r+"M":"")+(t?d+t+"D":"")+(a||n||e?"T":"")+(a?f+a+"H":"")+(n?f+n+"M":"")+(e?f+l+"S":"")):"P0D"}var Gr=Qp.prototype;Gr.isValid=UZr;Gr.abs=xJr;Gr.add=OJr;Gr.subtract=EJr;Gr.as=IJr;Gr.asMilliseconds=Nse;Gr.asSeconds=MJr;Gr.asMinutes=TJr;Gr.asHours=PJr;Gr.asDays=_Jr;Gr.asWeeks=zJr;Gr.asMonths=FJr;Gr.asQuarters=kJr;Gr.asYears=DJr;Gr.valueOf=LJr;Gr._bubble=RJr;Gr.clone=AJr;Gr.get=NJr;Gr.milliseconds=HJr;Gr.seconds=BJr;Gr.minutes=VJr;Gr.hours=jJr;Gr.days=WJr;Gr.weeks=YJr;Gr.months=UJr;Gr.years=KJr;Gr.humanize=QJr;Gr.toISOString=e9;Gr.toString=e9;Gr.toJSON=e9;Gr.locale=Ese;Gr.localeData=Ise;Gr.toIsoString=ji("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",e9);Gr.lang=Rse;tr("X",0,0,"unix");tr("x",0,0,"valueOf");Ut("x",Gp);Ut("X",bXr);gn("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});gn("x",function(e,t,r){r._d=new Date(kr(e))});//! moment.js +Lt.version="2.30.1";Jqr(In);Lt.fn=St;Lt.min=BZr;Lt.max=VZr;Lt.now=jZr;Lt.utc=$c;Lt.unix=pJr;Lt.months=bJr;Lt.isDate=Z6;Lt.locale=vu;Lt.invalid=Wp;Lt.duration=Al;Lt.isMoment=Rl;Lt.weekdays=$Jr;Lt.parseZone=yJr;Lt.localeData=Ss;Lt.isDuration=Hh;Lt.monthsShort=SJr;Lt.weekdaysMin=CJr;Lt.defineLocale=oP;Lt.updateLocale=yZr;Lt.locales=bZr;Lt.weekdaysShort=wJr;Lt.normalizeUnits=Wi;Lt.relativeTimeRounding=XJr;Lt.relativeTimeThreshold=ZJr;Lt.calendarFormat=hQr;Lt.prototype=St;Lt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function Hse(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var v$={exports:{}},HW;function JJr(){return HW||(HW=1,function(e,t){(function(r,n){e.exports=n()})(an,function(){var r;function n(){return r.apply(null,arguments)}function a(x){r=x}function o(x){return x instanceof Array||Object.prototype.toString.call(x)==="[object Array]"}function l(x){return x!=null&&Object.prototype.toString.call(x)==="[object Object]"}function c(x,L){return Object.prototype.hasOwnProperty.call(x,L)}function s(x){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(x).length===0;var L;for(L in x)if(c(x,L))return!1;return!0}function u(x){return x===void 0}function d(x){return typeof x=="number"||Object.prototype.toString.call(x)==="[object Number]"}function f(x){return x instanceof Date||Object.prototype.toString.call(x)==="[object Date]"}function v(x,L){var G=[],ee,he=x.length;for(ee=0;ee>>0,ee;for(ee=0;ee0)for(G=0;G=0;return(Me?G?"+":"":"-")+Math.pow(10,Math.max(0,he)).toString().substr(1)+ee}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,K={},Y={};function X(x,L,G,ee){var he=ee;typeof ee=="string"&&(he=function(){return this[ee]()}),x&&(Y[x]=he),L&&(Y[L[0]]=function(){return F(he.apply(this,arguments),L[1],L[2])}),G&&(Y[G]=function(){return this.localeData().ordinal(he.apply(this,arguments),x)})}function te(x){return x.match(/\[[\s\S]/)?x.replace(/^\[|\]$/g,""):x.replace(/\\/g,"")}function Q(x){var L=x.match(j),G,ee;for(G=0,ee=L.length;G=0&&W.test(x);)x=x.replace(W,ee),W.lastIndex=0,G-=1;return x}var ne={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ie(x){var L=this._longDateFormat[x],G=this._longDateFormat[x.toUpperCase()];return L||!G?L:(this._longDateFormat[x]=G.match(j).map(function(ee){return ee==="MMMM"||ee==="MM"||ee==="DD"||ee==="dddd"?ee.slice(1):ee}).join(""),this._longDateFormat[x])}var de="Invalid date";function se(){return this._invalidDate}var ve="%d",me=/\d{1,2}/;function le(x){return this._ordinal.replace("%d",x)}var pe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ge(x,L,G,ee){var he=this._relativeTime[G];return D(he)?he(x,L,G,ee):he.replace(/%d/i,x)}function $e(x,L){var G=this._relativeTime[x>0?"future":"past"];return D(G)?G(L):G.replace(/%s/i,L)}var we={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Se(x){return typeof x=="string"?we[x]||we[x.toLowerCase()]:void 0}function xe(x){var L={},G,ee;for(ee in x)c(x,ee)&&(G=Se(ee),G&&(L[G]=x[ee]));return L}var be={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Ce(x){var L=[],G;for(G in x)c(x,G)&&L.push({unit:G,priority:be[G]});return L.sort(function(ee,he){return ee.priority-he.priority}),L}var Ee=/\d/,Oe=/\d\d/,We=/\d{3}/,_e=/\d{4}/,ze=/[+-]?\d{6}/,Re=/\d\d?/,Ie=/\d\d\d\d?/,Be=/\d\d\d\d\d\d?/,Ve=/\d{1,3}/,Te=/\d{1,4}/,ke=/[+-]?\d{1,6}/,Ue=/\d+/,He=/[+-]?\d+/,Xe=/Z|[+-]\d\d:?\d\d/gi,rt=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[+-]?\d+(\.\d{1,3})?/,Ct=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,et=/^[1-9]\d?/,Ze=/^([1-9]\d|\d)/,st;st={};function Ae(x,L,G){st[x]=D(L)?L:function(ee,he){return ee&&G?G:L}}function dt(x,L){return c(st,x)?st[x](L._strict,L._locale):new RegExp(it(x))}function it(x){return nt(x.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(L,G,ee,he,Me){return G||ee||he||Me}))}function nt(x){return x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ot(x){return x<0?Math.ceil(x)||0:Math.floor(x)}function vt(x){var L=+x,G=0;return L!==0&&isFinite(L)&&(G=ot(L)),G}var Pt={};function Ke(x,L){var G,ee=L,he;for(typeof x=="string"&&(x=[x]),d(L)&&(ee=function(Me,Je){Je[L]=vt(Me)}),he=x.length,G=0;G68?1900:2e3)};var _t=Ge("FullYear",!0);function Le(){return Ot(this.year())}function Ge(x,L){return function(G){return G!=null?(qe(this,x,G),n.updateOffset(this,L),this):mt(this,x)}}function mt(x,L){if(!x.isValid())return NaN;var G=x._d,ee=x._isUTC;switch(L){case"Milliseconds":return ee?G.getUTCMilliseconds():G.getMilliseconds();case"Seconds":return ee?G.getUTCSeconds():G.getSeconds();case"Minutes":return ee?G.getUTCMinutes():G.getMinutes();case"Hours":return ee?G.getUTCHours():G.getHours();case"Date":return ee?G.getUTCDate():G.getDate();case"Day":return ee?G.getUTCDay():G.getDay();case"Month":return ee?G.getUTCMonth():G.getMonth();case"FullYear":return ee?G.getUTCFullYear():G.getFullYear();default:return NaN}}function qe(x,L,G){var ee,he,Me,Je,Wt;if(!(!x.isValid()||isNaN(G))){switch(ee=x._d,he=x._isUTC,L){case"Milliseconds":return void(he?ee.setUTCMilliseconds(G):ee.setMilliseconds(G));case"Seconds":return void(he?ee.setUTCSeconds(G):ee.setSeconds(G));case"Minutes":return void(he?ee.setUTCMinutes(G):ee.setMinutes(G));case"Hours":return void(he?ee.setUTCHours(G):ee.setHours(G));case"Date":return void(he?ee.setUTCDate(G):ee.setDate(G));case"FullYear":break;default:return}Me=G,Je=x.month(),Wt=x.date(),Wt=Wt===29&&Je===1&&!Ot(Me)?28:Wt,he?ee.setUTCFullYear(Me,Je,Wt):ee.setFullYear(Me,Je,Wt)}}function Fe(x){return x=Se(x),D(this[x])?this[x]():this}function Ye(x,L){if(typeof x=="object"){x=xe(x);var G=Ce(x),ee,he=G.length;for(ee=0;ee=0?(Wt=new Date(x+400,L,G,ee,he,Me,Je),isFinite(Wt.getFullYear())&&Wt.setFullYear(x)):Wt=new Date(x,L,G,ee,he,Me,Je),Wt}function Et(x){var L,G;return x<100&&x>=0?(G=Array.prototype.slice.call(arguments),G[0]=x+400,L=new Date(Date.UTC.apply(null,G)),isFinite(L.getUTCFullYear())&&L.setUTCFullYear(x)):L=new Date(Date.UTC.apply(null,arguments)),L}function Rt(x,L,G){var ee=7+L-G,he=(7+Et(x,0,ee).getUTCDay()-L)%7;return-he+ee-1}function yr(x,L,G,ee,he){var Me=(7+G-ee)%7,Je=Rt(x,ee,he),Wt=1+7*(L-1)+Me+Je,pr,jr;return Wt<=0?(pr=x-1,jr=zt(pr)+Wt):Wt>zt(x)?(pr=x+1,jr=Wt-zt(x)):(pr=x,jr=Wt),{year:pr,dayOfYear:jr}}function Lr(x,L,G){var ee=Rt(x.year(),L,G),he=Math.floor((x.dayOfYear()-ee-1)/7)+1,Me,Je;return he<1?(Je=x.year()-1,Me=he+Ar(Je,L,G)):he>Ar(x.year(),L,G)?(Me=he-Ar(x.year(),L,G),Je=x.year()+1):(Je=x.year(),Me=he),{week:Me,year:Je}}function Ar(x,L,G){var ee=Rt(x,L,G),he=Rt(x+1,L,G);return(zt(x)-ee+he)/7}X("w",["ww",2],"wo","week"),X("W",["WW",2],"Wo","isoWeek"),Ae("w",Re,et),Ae("ww",Re,Oe),Ae("W",Re,et),Ae("WW",Re,Oe),ct(["w","ww","W","WW"],function(x,L,G,ee){L[ee.substr(0,1)]=vt(x)});function Zn(x){return Lr(x,this._week.dow,this._week.doy).week}var Wn={dow:0,doy:6};function Qn(){return this._week.dow}function sr(){return this._week.doy}function Yt(x){var L=this.localeData().week(this);return x==null?L:this.add((x-L)*7,"d")}function gr(x){var L=Lr(this,1,4).week;return x==null?L:this.add((x-L)*7,"d")}X("d",0,"do","day"),X("dd",0,0,function(x){return this.localeData().weekdaysMin(this,x)}),X("ddd",0,0,function(x){return this.localeData().weekdaysShort(this,x)}),X("dddd",0,0,function(x){return this.localeData().weekdays(this,x)}),X("e",0,0,"weekday"),X("E",0,0,"isoWeekday"),Ae("d",Re),Ae("e",Re),Ae("E",Re),Ae("dd",function(x,L){return L.weekdaysMinRegex(x)}),Ae("ddd",function(x,L){return L.weekdaysShortRegex(x)}),Ae("dddd",function(x,L){return L.weekdaysRegex(x)}),ct(["dd","ddd","dddd"],function(x,L,G,ee){var he=G._locale.weekdaysParse(x,ee,G._strict);he!=null?L.d=he:g(G).invalidWeekday=x}),ct(["d","e","E"],function(x,L,G,ee){L[ee]=vt(x)});function Rr(x,L){return typeof x!="string"?x:isNaN(x)?(x=L.weekdaysParse(x),typeof x=="number"?x:null):parseInt(x,10)}function pn(x,L){return typeof x=="string"?L.weekdaysParse(x)%7||7:isNaN(x)?null:x}function vo(x,L){return x.slice(L,7).concat(x.slice(0,L))}var La="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),To="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Or="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Cc=Ct,xi=Ct,ws=Ct;function Cs(x,L){var G=o(this._weekdays)?this._weekdays:this._weekdays[x&&x!==!0&&this._weekdays.isFormat.test(L)?"format":"standalone"];return x===!0?vo(G,this._week.dow):x?G[x.day()]:G}function Vt(x){return x===!0?vo(this._weekdaysShort,this._week.dow):x?this._weekdaysShort[x.day()]:this._weekdaysShort}function Jt(x){return x===!0?vo(this._weekdaysMin,this._week.dow):x?this._weekdaysMin[x.day()]:this._weekdaysMin}function ln(x,L,G){var ee,he,Me,Je=x.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ee=0;ee<7;++ee)Me=m([2e3,1]).day(ee),this._minWeekdaysParse[ee]=this.weekdaysMin(Me,"").toLocaleLowerCase(),this._shortWeekdaysParse[ee]=this.weekdaysShort(Me,"").toLocaleLowerCase(),this._weekdaysParse[ee]=this.weekdays(Me,"").toLocaleLowerCase();return G?L==="dddd"?(he=wt.call(this._weekdaysParse,Je),he!==-1?he:null):L==="ddd"?(he=wt.call(this._shortWeekdaysParse,Je),he!==-1?he:null):(he=wt.call(this._minWeekdaysParse,Je),he!==-1?he:null):L==="dddd"?(he=wt.call(this._weekdaysParse,Je),he!==-1||(he=wt.call(this._shortWeekdaysParse,Je),he!==-1)?he:(he=wt.call(this._minWeekdaysParse,Je),he!==-1?he:null)):L==="ddd"?(he=wt.call(this._shortWeekdaysParse,Je),he!==-1||(he=wt.call(this._weekdaysParse,Je),he!==-1)?he:(he=wt.call(this._minWeekdaysParse,Je),he!==-1?he:null)):(he=wt.call(this._minWeekdaysParse,Je),he!==-1||(he=wt.call(this._weekdaysParse,Je),he!==-1)?he:(he=wt.call(this._shortWeekdaysParse,Je),he!==-1?he:null))}function $n(x,L,G){var ee,he,Me;if(this._weekdaysParseExact)return ln.call(this,x,L,G);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ee=0;ee<7;ee++){if(he=m([2e3,1]).day(ee),G&&!this._fullWeekdaysParse[ee]&&(this._fullWeekdaysParse[ee]=new RegExp("^"+this.weekdays(he,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ee]=new RegExp("^"+this.weekdaysShort(he,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ee]=new RegExp("^"+this.weekdaysMin(he,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ee]||(Me="^"+this.weekdays(he,"")+"|^"+this.weekdaysShort(he,"")+"|^"+this.weekdaysMin(he,""),this._weekdaysParse[ee]=new RegExp(Me.replace(".",""),"i")),G&&L==="dddd"&&this._fullWeekdaysParse[ee].test(x))return ee;if(G&&L==="ddd"&&this._shortWeekdaysParse[ee].test(x))return ee;if(G&&L==="dd"&&this._minWeekdaysParse[ee].test(x))return ee;if(!G&&this._weekdaysParse[ee].test(x))return ee}}function Nr(x){if(!this.isValid())return x!=null?this:NaN;var L=mt(this,"Day");return x!=null?(x=Rr(x,this.localeData()),this.add(x-L,"d")):L}function xs(x){if(!this.isValid())return x!=null?this:NaN;var L=(this.day()+7-this.localeData()._week.dow)%7;return x==null?L:this.add(x-L,"d")}function Os(x){if(!this.isValid())return x!=null?this:NaN;if(x!=null){var L=pn(x,this.localeData());return this.day(this.day()%7?L:L-7)}else return this.day()||7}function ho(x){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||De.call(this),x?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Cc),this._weekdaysStrictRegex&&x?this._weekdaysStrictRegex:this._weekdaysRegex)}function re(x){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||De.call(this),x?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xi),this._weekdaysShortStrictRegex&&x?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ye(x){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||De.call(this),x?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ws),this._weekdaysMinStrictRegex&&x?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function De(){function x(go,Mc){return Mc.length-go.length}var L=[],G=[],ee=[],he=[],Me,Je,Wt,pr,jr;for(Me=0;Me<7;Me++)Je=m([2e3,1]).day(Me),Wt=nt(this.weekdaysMin(Je,"")),pr=nt(this.weekdaysShort(Je,"")),jr=nt(this.weekdays(Je,"")),L.push(Wt),G.push(pr),ee.push(jr),he.push(Wt),he.push(pr),he.push(jr);L.sort(x),G.sort(x),ee.sort(x),he.sort(x),this._weekdaysRegex=new RegExp("^("+he.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ee.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+G.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+L.join("|")+")","i")}function Qe(){return this.hours()%12||12}function St(){return this.hours()||24}X("H",["HH",2],0,"hour"),X("h",["hh",2],0,Qe),X("k",["kk",2],0,St),X("hmm",0,0,function(){return""+Qe.apply(this)+F(this.minutes(),2)}),X("hmmss",0,0,function(){return""+Qe.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),X("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),X("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)});function ir(x,L){X(x,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),L)})}ir("a",!0),ir("A",!1);function vn(x,L){return L._meridiemParse}Ae("a",vn),Ae("A",vn),Ae("H",Re,Ze),Ae("h",Re,et),Ae("k",Re,et),Ae("HH",Re,Oe),Ae("hh",Re,Oe),Ae("kk",Re,Oe),Ae("hmm",Ie),Ae("hmmss",Be),Ae("Hmm",Ie),Ae("Hmmss",Be),Ke(["H","HH"],kt),Ke(["k","kk"],function(x,L,G){var ee=vt(x);L[kt]=ee===24?0:ee}),Ke(["a","A"],function(x,L,G){G._isPm=G._locale.isPM(x),G._meridiem=x}),Ke(["h","hh"],function(x,L,G){L[kt]=vt(x),g(G).bigHour=!0}),Ke("hmm",function(x,L,G){var ee=x.length-2;L[kt]=vt(x.substr(0,ee)),L[jt]=vt(x.substr(ee)),g(G).bigHour=!0}),Ke("hmmss",function(x,L,G){var ee=x.length-4,he=x.length-2;L[kt]=vt(x.substr(0,ee)),L[jt]=vt(x.substr(ee,2)),L[Xt]=vt(x.substr(he)),g(G).bigHour=!0}),Ke("Hmm",function(x,L,G){var ee=x.length-2;L[kt]=vt(x.substr(0,ee)),L[jt]=vt(x.substr(ee))}),Ke("Hmmss",function(x,L,G){var ee=x.length-4,he=x.length-2;L[kt]=vt(x.substr(0,ee)),L[jt]=vt(x.substr(ee,2)),L[Xt]=vt(x.substr(he))});function zr(x){return(x+"").toLowerCase().charAt(0)==="p"}var mo=/[ap]\.?m?\.?/i,Hr=Ge("Hours",!0);function wn(x,L,G){return x>11?G?"pm":"PM":G?"am":"AM"}var Br={calendar:k,longDateFormat:ne,invalidDate:de,ordinal:ve,dayOfMonthOrdinalParse:me,relativeTime:pe,months:ft,monthsShort:$t,week:Wn,weekdays:La,weekdaysMin:Or,weekdaysShort:To,meridiemParse:mo},dr={},Ca={},Qa;function r2(x,L){var G,ee=Math.min(x.length,L.length);for(G=0;G0;){if(he=t8(Me.slice(0,G).join("-")),he)return he;if(ee&&ee.length>=G&&r2(Me,ee)>=G-1)break;G--}L++}return Qa}function Use(x){return!!(x&&x.match("^[^/\\\\]*$"))}function t8(x){var L=null,G;if(dr[x]===void 0&&e&&e.exports&&Use(x))try{L=Qa._abbr,G=Bse,G("./locale/"+x),Es(L)}catch{dr[x]=null}return dr[x]}function Es(x,L){var G;return x&&(u(L)?G=xc(x):G=r9(x,L),G?Qa=G:typeof console<"u"&&console.warn&&console.warn("Locale "+x+" not found. Did you forget to load it?")),Qa._abbr}function r9(x,L){if(L!==null){var G,ee=Br;if(L.abbr=x,dr[x]!=null)B("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ee=dr[x]._config;else if(L.parentLocale!=null)if(dr[L.parentLocale]!=null)ee=dr[L.parentLocale]._config;else if(G=t8(L.parentLocale),G!=null)ee=G._config;else return Ca[L.parentLocale]||(Ca[L.parentLocale]=[]),Ca[L.parentLocale].push({name:x,config:L}),null;return dr[x]=new T(V(ee,L)),Ca[x]&&Ca[x].forEach(function(he){r9(he.name,he.config)}),Es(x),dr[x]}else return delete dr[x],null}function Kse(x,L){if(L!=null){var G,ee,he=Br;dr[x]!=null&&dr[x].parentLocale!=null?dr[x].set(V(dr[x]._config,L)):(ee=t8(x),ee!=null&&(he=ee._config),L=V(he,L),ee==null&&(L.abbr=x),G=new T(L),G.parentLocale=dr[x],dr[x]=G),Es(x)}else dr[x]!=null&&(dr[x].parentLocale!=null?(dr[x]=dr[x].parentLocale,x===Es()&&Es(x)):dr[x]!=null&&delete dr[x]);return dr[x]}function xc(x){var L;if(x&&x._locale&&x._locale._abbr&&(x=x._locale._abbr),!x)return Qa;if(!o(x)){if(L=t8(x),L)return L;x=[x]}return Wse(x)}function Yse(){return P(dr)}function n9(x){var L,G=x._a;return G&&g(x).overflow===-2&&(L=G[xt]<0||G[xt]>11?xt:G[Gt]<1||G[Gt]>cr(G[ht],G[xt])?Gt:G[kt]<0||G[kt]>24||G[kt]===24&&(G[jt]!==0||G[Xt]!==0||G[ce]!==0)?kt:G[jt]<0||G[jt]>59?jt:G[Xt]<0||G[Xt]>59?Xt:G[ce]<0||G[ce]>999?ce:-1,g(x)._overflowDayOfYear&&(LGt)&&(L=Gt),g(x)._overflowWeeks&&L===-1&&(L=At),g(x)._overflowWeekday&&L===-1&&(L=or),g(x).overflow=L),x}var Gse=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qse=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xse=/Z|[+-]\d\d(?::?\d\d)?/,r8=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],a9=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Zse=/^\/?Date\((-?\d+)/i,Qse=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Jse={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function mP(x){var L,G,ee=x._i,he=Gse.exec(ee)||qse.exec(ee),Me,Je,Wt,pr,jr=r8.length,go=a9.length;if(he){for(g(x).iso=!0,L=0,G=jr;Lzt(Je)||x._dayOfYear===0)&&(g(x)._overflowDayOfYear=!0),G=Et(Je,0,x._dayOfYear),x._a[xt]=G.getUTCMonth(),x._a[Gt]=G.getUTCDate()),L=0;L<3&&x._a[L]==null;++L)x._a[L]=ee[L]=he[L];for(;L<7;L++)x._a[L]=ee[L]=x._a[L]==null?L===2?1:0:x._a[L];x._a[kt]===24&&x._a[jt]===0&&x._a[Xt]===0&&x._a[ce]===0&&(x._nextDay=!0,x._a[kt]=0),x._d=(x._useUTC?Et:xr).apply(null,ee),Me=x._useUTC?x._d.getUTCDay():x._d.getDay(),x._tzm!=null&&x._d.setUTCMinutes(x._d.getUTCMinutes()-x._tzm),x._nextDay&&(x._a[kt]=24),x._w&&typeof x._w.d<"u"&&x._w.d!==Me&&(g(x).weekdayMismatch=!0)}}function lue(x){var L,G,ee,he,Me,Je,Wt,pr,jr;L=x._w,L.GG!=null||L.W!=null||L.E!=null?(Me=1,Je=4,G=rd(L.GG,x._a[ht],Lr(Cn(),1,4).year),ee=rd(L.W,1),he=rd(L.E,1),(he<1||he>7)&&(pr=!0)):(Me=x._locale._week.dow,Je=x._locale._week.doy,jr=Lr(Cn(),Me,Je),G=rd(L.gg,x._a[ht],jr.year),ee=rd(L.w,jr.week),L.d!=null?(he=L.d,(he<0||he>6)&&(pr=!0)):L.e!=null?(he=L.e+Me,(L.e<0||L.e>6)&&(pr=!0)):he=Me),ee<1||ee>Ar(G,Me,Je)?g(x)._overflowWeeks=!0:pr!=null?g(x)._overflowWeekday=!0:(Wt=yr(G,ee,he,Me,Je),x._a[ht]=Wt.year,x._dayOfYear=Wt.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function i9(x){if(x._f===n.ISO_8601){mP(x);return}if(x._f===n.RFC_2822){gP(x);return}x._a=[],g(x).empty=!0;var L=""+x._i,G,ee,he,Me,Je,Wt=L.length,pr=0,jr,go;for(he=ae(x._f,x._locale).match(j)||[],go=he.length,G=0;G0&&g(x).unusedInput.push(Je),L=L.slice(L.indexOf(ee)+ee.length),pr+=ee.length),Y[Me]?(ee?g(x).empty=!1:g(x).unusedTokens.push(Me),Mt(Me,ee,x)):x._strict&&!ee&&g(x).unusedTokens.push(Me);g(x).charsLeftOver=Wt-pr,L.length>0&&g(x).unusedInput.push(L),x._a[kt]<=12&&g(x).bigHour===!0&&x._a[kt]>0&&(g(x).bigHour=void 0),g(x).parsedDateParts=x._a.slice(0),g(x).meridiem=x._meridiem,x._a[kt]=cue(x._locale,x._a[kt],x._meridiem),jr=g(x).era,jr!==null&&(x._a[ht]=x._locale.erasConvertYear(jr,x._a[ht])),o9(x),n9(x)}function cue(x,L,G){var ee;return G==null?L:x.meridiemHour!=null?x.meridiemHour(L,G):(x.isPM!=null&&(ee=x.isPM(G),ee&&L<12&&(L+=12),!ee&&L===12&&(L=0)),L)}function sue(x){var L,G,ee,he,Me,Je,Wt=!1,pr=x._f.length;if(pr===0){g(x).invalidFormat=!0,x._d=new Date(NaN);return}for(he=0;hethis?this:x:S()});function bP(x,L){var G,ee;if(L.length===1&&o(L[0])&&(L=L[0]),!L.length)return Cn();for(G=L[0],ee=1;eethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Tue(){if(!u(this._isDSTShifted))return this._isDSTShifted;var x={},L;return C(x,this),x=pP(x),x._a?(L=x._isUTC?m(x._a):Cn(x._a),this._isDSTShifted=this.isValid()&&$ue(x._a,L.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Pue(){return this.isValid()?!this._isUTC:!1}function _ue(){return this.isValid()?this._isUTC:!1}function $P(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zue=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Fue=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ki(x,L){var G=x,ee=null,he,Me,Je;return a8(x)?G={ms:x._milliseconds,d:x._days,M:x._months}:d(x)||!isNaN(+x)?(G={},L?G[L]=+x:G.milliseconds=+x):(ee=zue.exec(x))?(he=ee[1]==="-"?-1:1,G={y:0,d:vt(ee[Gt])*he,h:vt(ee[kt])*he,m:vt(ee[jt])*he,s:vt(ee[Xt])*he,ms:vt(l9(ee[ce]*1e3))*he}):(ee=Fue.exec(x))?(he=ee[1]==="-"?-1:1,G={y:Fu(ee[2],he),M:Fu(ee[3],he),w:Fu(ee[4],he),d:Fu(ee[5],he),h:Fu(ee[6],he),m:Fu(ee[7],he),s:Fu(ee[8],he)}):G==null?G={}:typeof G=="object"&&("from"in G||"to"in G)&&(Je=kue(Cn(G.from),Cn(G.to)),G={},G.ms=Je.milliseconds,G.M=Je.months),Me=new n8(G),a8(x)&&c(x,"_locale")&&(Me._locale=x._locale),a8(x)&&c(x,"_isValid")&&(Me._isValid=x._isValid),Me}Ki.fn=n8.prototype,Ki.invalid=Sue;function Fu(x,L){var G=x&&parseFloat(x.replace(",","."));return(isNaN(G)?0:G)*L}function wP(x,L){var G={};return G.months=L.month()-x.month()+(L.year()-x.year())*12,x.clone().add(G.months,"M").isAfter(L)&&--G.months,G.milliseconds=+L-+x.clone().add(G.months,"M"),G}function kue(x,L){var G;return x.isValid()&&L.isValid()?(L=s9(L,x),x.isBefore(L)?G=wP(x,L):(G=wP(L,x),G.milliseconds=-G.milliseconds,G.months=-G.months),G):{milliseconds:0,months:0}}function CP(x,L){return function(G,ee){var he,Me;return ee!==null&&!isNaN(+ee)&&(B(L,"moment()."+L+"(period, number) is deprecated. Please use moment()."+L+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Me=G,G=ee,ee=Me),he=Ki(G,ee),xP(this,he,x),this}}function xP(x,L,G,ee){var he=L._milliseconds,Me=l9(L._days),Je=l9(L._months);x.isValid()&&(ee=ee??!0,Je&&Xn(x,mt(x,"Month")+Je*G),Me&&qe(x,"Date",mt(x,"Date")+Me*G),he&&x._d.setTime(x._d.valueOf()+he*G),ee&&n.updateOffset(x,Me||Je))}var Due=CP(1,"add"),Lue=CP(-1,"subtract");function OP(x){return typeof x=="string"||x instanceof String}function Aue(x){return O(x)||f(x)||OP(x)||d(x)||Hue(x)||Nue(x)||x===null||x===void 0}function Nue(x){var L=l(x)&&!s(x),G=!1,ee=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],he,Me,Je=ee.length;for(he=0;heG.valueOf():G.valueOf()9999?J(G,L?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?L?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",J(G,"Z")):J(G,L?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function e1e(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var x="moment",L="",G,ee,he,Me;return this.isLocal()||(x=this.utcOffset()===0?"moment.utc":"moment.parseZone",L="Z"),G="["+x+'("]',ee=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",he="-MM-DD[T]HH:mm:ss.SSS",Me=L+'[")]',this.format(G+ee+he+Me)}function t1e(x){x||(x=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var L=J(this,x);return this.localeData().postformat(L)}function r1e(x,L){return this.isValid()&&(O(x)&&x.isValid()||Cn(x).isValid())?Ki({to:this,from:x}).locale(this.locale()).humanize(!L):this.localeData().invalidDate()}function n1e(x){return this.from(Cn(),x)}function a1e(x,L){return this.isValid()&&(O(x)&&x.isValid()||Cn(x).isValid())?Ki({from:this,to:x}).locale(this.locale()).humanize(!L):this.localeData().invalidDate()}function o1e(x){return this.to(Cn(),x)}function EP(x){var L;return x===void 0?this._locale._abbr:(L=xc(x),L!=null&&(this._locale=L),this)}var RP=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(x){return x===void 0?this.localeData():this.locale(x)});function MP(){return this._locale}var i8=1e3,nd=60*i8,l8=60*nd,IP=(365*400+97)*24*l8;function ad(x,L){return(x%L+L)%L}function TP(x,L,G){return x<100&&x>=0?new Date(x+400,L,G)-IP:new Date(x,L,G).valueOf()}function PP(x,L,G){return x<100&&x>=0?Date.UTC(x+400,L,G)-IP:Date.UTC(x,L,G)}function i1e(x){var L,G;if(x=Se(x),x===void 0||x==="millisecond"||!this.isValid())return this;switch(G=this._isUTC?PP:TP,x){case"year":L=G(this.year(),0,1);break;case"quarter":L=G(this.year(),this.month()-this.month()%3,1);break;case"month":L=G(this.year(),this.month(),1);break;case"week":L=G(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":L=G(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":L=G(this.year(),this.month(),this.date());break;case"hour":L=this._d.valueOf(),L-=ad(L+(this._isUTC?0:this.utcOffset()*nd),l8);break;case"minute":L=this._d.valueOf(),L-=ad(L,nd);break;case"second":L=this._d.valueOf(),L-=ad(L,i8);break}return this._d.setTime(L),n.updateOffset(this,!0),this}function l1e(x){var L,G;if(x=Se(x),x===void 0||x==="millisecond"||!this.isValid())return this;switch(G=this._isUTC?PP:TP,x){case"year":L=G(this.year()+1,0,1)-1;break;case"quarter":L=G(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":L=G(this.year(),this.month()+1,1)-1;break;case"week":L=G(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":L=G(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":L=G(this.year(),this.month(),this.date()+1)-1;break;case"hour":L=this._d.valueOf(),L+=l8-ad(L+(this._isUTC?0:this.utcOffset()*nd),l8)-1;break;case"minute":L=this._d.valueOf(),L+=nd-ad(L,nd)-1;break;case"second":L=this._d.valueOf(),L+=i8-ad(L,i8)-1;break}return this._d.setTime(L),n.updateOffset(this,!0),this}function c1e(){return this._d.valueOf()-(this._offset||0)*6e4}function s1e(){return Math.floor(this.valueOf()/1e3)}function u1e(){return new Date(this.valueOf())}function d1e(){var x=this;return[x.year(),x.month(),x.date(),x.hour(),x.minute(),x.second(),x.millisecond()]}function f1e(){var x=this;return{years:x.year(),months:x.month(),date:x.date(),hours:x.hours(),minutes:x.minutes(),seconds:x.seconds(),milliseconds:x.milliseconds()}}function v1e(){return this.isValid()?this.toISOString():null}function h1e(){return y(this)}function m1e(){return h({},g(this))}function g1e(){return g(this).overflow}function p1e(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}X("N",0,0,"eraAbbr"),X("NN",0,0,"eraAbbr"),X("NNN",0,0,"eraAbbr"),X("NNNN",0,0,"eraName"),X("NNNNN",0,0,"eraNarrow"),X("y",["y",1],"yo","eraYear"),X("y",["yy",2],0,"eraYear"),X("y",["yyy",3],0,"eraYear"),X("y",["yyyy",4],0,"eraYear"),Ae("N",d9),Ae("NN",d9),Ae("NNN",d9),Ae("NNNN",M1e),Ae("NNNNN",I1e),Ke(["N","NN","NNN","NNNN","NNNNN"],function(x,L,G,ee){var he=G._locale.erasParse(x,ee,G._strict);he?g(G).era=he:g(G).invalidEra=x}),Ae("y",Ue),Ae("yy",Ue),Ae("yyy",Ue),Ae("yyyy",Ue),Ae("yo",T1e),Ke(["y","yy","yyy","yyyy"],ht),Ke(["yo"],function(x,L,G,ee){var he;G._locale._eraYearOrdinalRegex&&(he=x.match(G._locale._eraYearOrdinalRegex)),G._locale.eraYearOrdinalParse?L[ht]=G._locale.eraYearOrdinalParse(x,he):L[ht]=parseInt(x,10)});function y1e(x,L){var G,ee,he,Me=this._eras||xc("en")._eras;for(G=0,ee=Me.length;G=0)return Me[ee]}function S1e(x,L){var G=x.since<=x.until?1:-1;return L===void 0?n(x.since).year():n(x.since).year()+(L-x.offset)*G}function $1e(){var x,L,G,ee=this.localeData().eras();for(x=0,L=ee.length;xMe&&(L=Me),L1e.call(this,x,L,G,ee,he))}function L1e(x,L,G,ee,he){var Me=yr(x,L,G,ee,he),Je=Et(Me.year,0,Me.dayOfYear);return this.year(Je.getUTCFullYear()),this.month(Je.getUTCMonth()),this.date(Je.getUTCDate()),this}X("Q",0,"Qo","quarter"),Ae("Q",Ee),Ke("Q",function(x,L){L[xt]=(vt(x)-1)*3});function A1e(x){return x==null?Math.ceil((this.month()+1)/3):this.month((x-1)*3+this.month()%3)}X("D",["DD",2],"Do","date"),Ae("D",Re,et),Ae("DD",Re,Oe),Ae("Do",function(x,L){return x?L._dayOfMonthOrdinalParse||L._ordinalParse:L._dayOfMonthOrdinalParseLenient}),Ke(["D","DD"],Gt),Ke("Do",function(x,L){L[Gt]=vt(x.match(Re)[0])});var zP=Ge("Date",!0);X("DDD",["DDDD",3],"DDDo","dayOfYear"),Ae("DDD",Ve),Ae("DDDD",We),Ke(["DDD","DDDD"],function(x,L,G){G._dayOfYear=vt(x)});function N1e(x){var L=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return x==null?L:this.add(x-L,"d")}X("m",["mm",2],0,"minute"),Ae("m",Re,Ze),Ae("mm",Re,Oe),Ke(["m","mm"],jt);var H1e=Ge("Minutes",!1);X("s",["ss",2],0,"second"),Ae("s",Re,Ze),Ae("ss",Re,Oe),Ke(["s","ss"],Xt);var B1e=Ge("Seconds",!1);X("S",0,0,function(){return~~(this.millisecond()/100)}),X(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),X(0,["SSS",3],0,"millisecond"),X(0,["SSSS",4],0,function(){return this.millisecond()*10}),X(0,["SSSSS",5],0,function(){return this.millisecond()*100}),X(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),X(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),X(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),X(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ae("S",Ve,Ee),Ae("SS",Ve,Oe),Ae("SSS",Ve,We);var Rs,FP;for(Rs="SSSS";Rs.length<=9;Rs+="S")Ae(Rs,Ue);function j1e(x,L){L[ce]=vt(("0."+x)*1e3)}for(Rs="S";Rs.length<=9;Rs+="S")Ke(Rs,j1e);FP=Ge("Milliseconds",!1),X("z",0,0,"zoneAbbr"),X("zz",0,0,"zoneName");function V1e(){return this._isUTC?"UTC":""}function W1e(){return this._isUTC?"Coordinated Universal Time":""}var yt=E.prototype;yt.add=Due,yt.calendar=Vue,yt.clone=Wue,yt.diff=Zue,yt.endOf=l1e,yt.format=t1e,yt.from=r1e,yt.fromNow=n1e,yt.to=a1e,yt.toNow=o1e,yt.get=Fe,yt.invalidAt=g1e,yt.isAfter=Uue,yt.isBefore=Kue,yt.isBetween=Yue,yt.isSame=Gue,yt.isSameOrAfter=que,yt.isSameOrBefore=Xue,yt.isValid=h1e,yt.lang=RP,yt.locale=EP,yt.localeData=MP,yt.max=hue,yt.min=vue,yt.parsingFlags=m1e,yt.set=Ye,yt.startOf=i1e,yt.subtract=Lue,yt.toArray=d1e,yt.toObject=f1e,yt.toDate=u1e,yt.toISOString=Jue,yt.inspect=e1e,typeof Symbol<"u"&&Symbol.for!=null&&(yt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yt.toJSON=v1e,yt.toString=Que,yt.unix=s1e,yt.valueOf=c1e,yt.creationData=p1e,yt.eraName=$1e,yt.eraNarrow=w1e,yt.eraAbbr=C1e,yt.eraYear=x1e,yt.year=_t,yt.isLeapYear=Le,yt.weekYear=P1e,yt.isoWeekYear=_1e,yt.quarter=yt.quarters=A1e,yt.month=An,yt.daysInMonth=Za,yt.week=yt.weeks=Yt,yt.isoWeek=yt.isoWeeks=gr,yt.weeksInYear=k1e,yt.weeksInWeekYear=D1e,yt.isoWeeksInYear=z1e,yt.isoWeeksInISOWeekYear=F1e,yt.date=zP,yt.day=yt.days=Nr,yt.weekday=xs,yt.isoWeekday=Os,yt.dayOfYear=N1e,yt.hour=yt.hours=Hr,yt.minute=yt.minutes=H1e,yt.second=yt.seconds=B1e,yt.millisecond=yt.milliseconds=FP,yt.utcOffset=Cue,yt.utc=Oue,yt.local=Eue,yt.parseZone=Rue,yt.hasAlignedHourOffset=Mue,yt.isDST=Iue,yt.isLocal=Pue,yt.isUtcOffset=_ue,yt.isUtc=$P,yt.isUTC=$P,yt.zoneAbbr=V1e,yt.zoneName=W1e,yt.dates=M("dates accessor is deprecated. Use date instead.",zP),yt.months=M("months accessor is deprecated. Use month instead",An),yt.years=M("years accessor is deprecated. Use year instead",_t),yt.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",xue),yt.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Tue);function U1e(x){return Cn(x*1e3)}function K1e(){return Cn.apply(null,arguments).parseZone()}function kP(x){return x}var Qr=T.prototype;Qr.calendar=A,Qr.longDateFormat=ie,Qr.invalidDate=se,Qr.ordinal=le,Qr.preparse=kP,Qr.postformat=kP,Qr.relativeTime=ge,Qr.pastFuture=$e,Qr.set=H,Qr.eras=y1e,Qr.erasParse=b1e,Qr.erasConvertYear=S1e,Qr.erasAbbrRegex=E1e,Qr.erasNameRegex=O1e,Qr.erasNarrowRegex=R1e,Qr.months=_r,Qr.monthsShort=Zr,Qr.monthsParse=da,Qr.monthsRegex=Dt,Qr.monthsShortRegex=Mr,Qr.week=Zn,Qr.firstDayOfYear=sr,Qr.firstDayOfWeek=Qn,Qr.weekdays=Cs,Qr.weekdaysMin=Jt,Qr.weekdaysShort=Vt,Qr.weekdaysParse=$n,Qr.weekdaysRegex=ho,Qr.weekdaysShortRegex=re,Qr.weekdaysMinRegex=ye,Qr.isPM=zr,Qr.meridiem=wn;function s8(x,L,G,ee){var he=xc(),Me=m().set(ee,L);return he[G](Me,x)}function DP(x,L,G){if(d(x)&&(L=x,x=void 0),x=x||"",L!=null)return s8(x,L,G,"month");var ee,he=[];for(ee=0;ee<12;ee++)he[ee]=s8(x,ee,G,"month");return he}function v9(x,L,G,ee){typeof x=="boolean"?(d(L)&&(G=L,L=void 0),L=L||""):(L=x,G=L,x=!1,d(L)&&(G=L,L=void 0),L=L||"");var he=xc(),Me=x?he._week.dow:0,Je,Wt=[];if(G!=null)return s8(L,(G+Me)%7,ee,"day");for(Je=0;Je<7;Je++)Wt[Je]=s8(L,(Je+Me)%7,ee,"day");return Wt}function Y1e(x,L){return DP(x,L,"months")}function G1e(x,L){return DP(x,L,"monthsShort")}function q1e(x,L,G){return v9(x,L,G,"weekdays")}function X1e(x,L,G){return v9(x,L,G,"weekdaysShort")}function Z1e(x,L,G){return v9(x,L,G,"weekdaysMin")}Es("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(x){var L=x%10,G=vt(x%100/10)===1?"th":L===1?"st":L===2?"nd":L===3?"rd":"th";return x+G}}),n.lang=M("moment.lang is deprecated. Use moment.locale instead.",Es),n.langData=M("moment.langData is deprecated. Use moment.localeData instead.",xc);var Oc=Math.abs;function Q1e(){var x=this._data;return this._milliseconds=Oc(this._milliseconds),this._days=Oc(this._days),this._months=Oc(this._months),x.milliseconds=Oc(x.milliseconds),x.seconds=Oc(x.seconds),x.minutes=Oc(x.minutes),x.hours=Oc(x.hours),x.months=Oc(x.months),x.years=Oc(x.years),this}function LP(x,L,G,ee){var he=Ki(L,G);return x._milliseconds+=ee*he._milliseconds,x._days+=ee*he._days,x._months+=ee*he._months,x._bubble()}function J1e(x,L){return LP(this,x,L,1)}function ede(x,L){return LP(this,x,L,-1)}function AP(x){return x<0?Math.floor(x):Math.ceil(x)}function tde(){var x=this._milliseconds,L=this._days,G=this._months,ee=this._data,he,Me,Je,Wt,pr;return x>=0&&L>=0&&G>=0||x<=0&&L<=0&&G<=0||(x+=AP(h9(G)+L)*864e5,L=0,G=0),ee.milliseconds=x%1e3,he=ot(x/1e3),ee.seconds=he%60,Me=ot(he/60),ee.minutes=Me%60,Je=ot(Me/60),ee.hours=Je%24,L+=ot(Je/24),pr=ot(NP(L)),G+=pr,L-=AP(h9(pr)),Wt=ot(G/12),G%=12,ee.days=L,ee.months=G,ee.years=Wt,this}function NP(x){return x*4800/146097}function h9(x){return x*146097/4800}function rde(x){if(!this.isValid())return NaN;var L,G,ee=this._milliseconds;if(x=Se(x),x==="month"||x==="quarter"||x==="year")switch(L=this._days+ee/864e5,G=this._months+NP(L),x){case"month":return G;case"quarter":return G/3;case"year":return G/12}else switch(L=this._days+Math.round(h9(this._months)),x){case"week":return L/7+ee/6048e5;case"day":return L+ee/864e5;case"hour":return L*24+ee/36e5;case"minute":return L*1440+ee/6e4;case"second":return L*86400+ee/1e3;case"millisecond":return Math.floor(L*864e5)+ee;default:throw new Error("Unknown unit "+x)}}function Ec(x){return function(){return this.as(x)}}var HP=Ec("ms"),nde=Ec("s"),ade=Ec("m"),ode=Ec("h"),ide=Ec("d"),lde=Ec("w"),cde=Ec("M"),sde=Ec("Q"),ude=Ec("y"),dde=HP;function fde(){return Ki(this)}function vde(x){return x=Se(x),this.isValid()?this[x+"s"]():NaN}function ku(x){return function(){return this.isValid()?this._data[x]:NaN}}var hde=ku("milliseconds"),mde=ku("seconds"),gde=ku("minutes"),pde=ku("hours"),yde=ku("days"),bde=ku("months"),Sde=ku("years");function $de(){return ot(this.days()/7)}var Rc=Math.round,od={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function wde(x,L,G,ee,he){return he.relativeTime(L||1,!!G,x,ee)}function Cde(x,L,G,ee){var he=Ki(x).abs(),Me=Rc(he.as("s")),Je=Rc(he.as("m")),Wt=Rc(he.as("h")),pr=Rc(he.as("d")),jr=Rc(he.as("M")),go=Rc(he.as("w")),Mc=Rc(he.as("y")),Ms=Me<=G.ss&&["s",Me]||Me0,Ms[4]=ee,wde.apply(null,Ms)}function xde(x){return x===void 0?Rc:typeof x=="function"?(Rc=x,!0):!1}function Ode(x,L){return od[x]===void 0?!1:L===void 0?od[x]:(od[x]=L,x==="s"&&(od.ss=L-1),!0)}function Ede(x,L){if(!this.isValid())return this.localeData().invalidDate();var G=!1,ee=od,he,Me;return typeof x=="object"&&(L=x,x=!1),typeof x=="boolean"&&(G=x),typeof L=="object"&&(ee=Object.assign({},od,L),L.s!=null&&L.ss==null&&(ee.ss=L.s-1)),he=this.localeData(),Me=Cde(this,!G,ee,he),G&&(Me=he.pastFuture(+this,Me)),he.postformat(Me)}var m9=Math.abs;function id(x){return(x>0)-(x<0)||+x}function u8(){if(!this.isValid())return this.localeData().invalidDate();var x=m9(this._milliseconds)/1e3,L=m9(this._days),G=m9(this._months),ee,he,Me,Je,Wt=this.asSeconds(),pr,jr,go,Mc;return Wt?(ee=ot(x/60),he=ot(ee/60),x%=60,ee%=60,Me=ot(G/12),G%=12,Je=x?x.toFixed(3).replace(/\.?0+$/,""):"",pr=Wt<0?"-":"",jr=id(this._months)!==id(Wt)?"-":"",go=id(this._days)!==id(Wt)?"-":"",Mc=id(this._milliseconds)!==id(Wt)?"-":"",pr+"P"+(Me?jr+Me+"Y":"")+(G?jr+G+"M":"")+(L?go+L+"D":"")+(he||ee||x?"T":"")+(he?Mc+he+"H":"")+(ee?Mc+ee+"M":"")+(x?Mc+Je+"S":"")):"P0D"}var Ur=n8.prototype;Ur.isValid=bue,Ur.abs=Q1e,Ur.add=J1e,Ur.subtract=ede,Ur.as=rde,Ur.asMilliseconds=HP,Ur.asSeconds=nde,Ur.asMinutes=ade,Ur.asHours=ode,Ur.asDays=ide,Ur.asWeeks=lde,Ur.asMonths=cde,Ur.asQuarters=sde,Ur.asYears=ude,Ur.valueOf=dde,Ur._bubble=tde,Ur.clone=fde,Ur.get=vde,Ur.milliseconds=hde,Ur.seconds=mde,Ur.minutes=gde,Ur.hours=pde,Ur.days=yde,Ur.weeks=$de,Ur.months=bde,Ur.years=Sde,Ur.humanize=Ede,Ur.toISOString=u8,Ur.toString=u8,Ur.toJSON=u8,Ur.locale=EP,Ur.localeData=MP,Ur.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",u8),Ur.lang=RP,X("X",0,0,"unix"),X("x",0,0,"valueOf"),Ae("x",He),Ae("X",ut),Ke("X",function(x,L,G){G._d=new Date(parseFloat(x)*1e3)}),Ke("x",function(x,L,G){G._d=new Date(vt(x))});//! moment.js -return n.version="2.30.1",a(Cn),n.fn=yt,n.min=mue,n.max=gue,n.now=pue,n.utc=m,n.unix=U1e,n.months=Y1e,n.isDate=f,n.locale=Es,n.invalid=S,n.duration=Ki,n.isMoment=O,n.weekdays=q1e,n.parseZone=K1e,n.localeData=xc,n.isDuration=a8,n.monthsShort=G1e,n.weekdaysMin=Z1e,n.defineLocale=r9,n.updateLocale=Kse,n.locales=Yse,n.weekdaysShort=X1e,n.normalizeUnits=Se,n.relativeTimeRounding=xde,n.relativeTimeThreshold=Ode,n.calendarFormat=jue,n.prototype=yt,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})}(v$)),v$.exports}(function(e,t){(function(r,n){n(typeof Bse=="function"?JJr():r.moment)})(an,function(r){//! moment.js locale configuration -var n=r.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(a,o){return a===12&&(a=0),o==="凌晨"||o==="早上"||o==="上午"?a:o==="下午"||o==="晚上"?a+12:a>=11?a:a+12},meridiem:function(a,o,l){var c=a*100+o;return c<600?"凌晨":c<900?"早上":c<1130?"上午":c<1230?"中午":c<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(a){return a.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(a){return this.week()!==a.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(a,o){switch(o){case"d":case"D":case"DDD":return a+"日";case"M":return a+"月";case"w":case"W":return a+"周";default:return a}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return n})})();const een=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?U.useLayoutEffect:U.useEffect,ten=e=>{var u;const t=F0(),[r,n]=U.useState(t),[a,o]=U.useState(()=>sC(r,!0)),l=d=>{var f;Lt!=null&&Lt.locale&&Lt.locale(((f=i1[d])==null?void 0:f.momentLocale)||"en"),n(d),o(sC(d))};een(()=>(iC.on(lC,l),()=>{iC.off(lC,l)}),[]);const c={},s=kWe();return q.jsx(er,{direction:s,locale:((u=i1[r])==null?void 0:u.antd)||c,children:q.jsx(qQ,{value:a,children:e.children})})};function ren(e){return U.createElement(ten,null,e)}const nen=Object.freeze(Object.defineProperty({__proto__:null,i18nProvider:ren},Symbol.toStringTag,{value:"Module"})),t9={gitDictApi:"/admin/system.dictItem/dictList",getSettingGroupApi:"/admin/system.setting/querySettingGroup",addGroupApi:"/admin/system.setting/addGroup",saveSettingApi:"/admin/system.setting/saveSetting"},aen=()=>ua(t9.gitDictApi,{method:"get"}),Xen=()=>ua(t9.getSettingGroupApi,{method:"get"}),Zen=e=>ua(t9.addGroupApi,{method:"post",data:e}),Qen=e=>ua(t9.saveSettingApi,{method:"post",data:e}),oen=()=>{const e=c=>{let s=new Map;return c.forEach(u=>{s.set(u.code,u.dictItems.map(d=>Object.assign(d,{type:u.type})))}),s},t=c=>{let s=new Map;return c.forEach(u=>{let d={};u.dictItems.forEach(f=>{d[f.value]=f.label}),s.set(u.code,d)}),s},{data:r,refresh:n,refreshAsync:a}=oqr(async()=>{let c=localStorage.getItem("x-token"),s=[];return c&&(localStorage.getItem("dictMap")?(console.log("-------获取字典缓存--------"),s=JSON.parse(localStorage.getItem("dictMap"))):(s=(await aen()).data,localStorage.setItem("dictMap",JSON.stringify(s)))),{dictJson:e(s),dictEnum:t(s)}});return{refreshDict:()=>{localStorage.removeItem("dictMap"),n()},getDictionaryData:async c=>{if(!r){let s=await a();return s.dictJson.has(c)?s.dictJson.get(c):[]}return r.dictJson.has(c)?r.dictJson.get(c):[]},dictionaryCache:r?r.dictJson:{},dictEnum:r?r.dictEnum:new Map}},jse=()=>{const[e]=i.useState([{Date:"2010-01",scales:1998},{Date:"2010-02",scales:1850},{Date:"2010-03",scales:1720},{Date:"2010-04",scales:1818},{Date:"2010-05",scales:1920},{Date:"2010-06",scales:1802},{Date:"2010-07",scales:1945},{Date:"2010-08",scales:1856},{Date:"2010-09",scales:2107},{Date:"2010-10",scales:2140},{Date:"2010-11",scales:2311},{Date:"2010-12",scales:1972},{Date:"2011-01",scales:1760},{Date:"2011-02",scales:1824},{Date:"2011-03",scales:1801},{Date:"2011-04",scales:2001},{Date:"2011-05",scales:1640},{Date:"2011-06",scales:1502},{Date:"2011-07",scales:1621},{Date:"2011-08",scales:1480},{Date:"2011-09",scales:1549},{Date:"2011-10",scales:1390},{Date:"2011-11",scales:1325},{Date:"2011-12",scales:1250},{Date:"2012-01",scales:1394},{Date:"2012-02",scales:1406},{Date:"2012-03",scales:1578},{Date:"2012-04",scales:1465},{Date:"2012-05",scales:1689},{Date:"2012-06",scales:1755},{Date:"2012-07",scales:1495},{Date:"2012-08",scales:1508},{Date:"2012-09",scales:1433},{Date:"2012-10",scales:1344},{Date:"2012-11",scales:1201},{Date:"2012-12",scales:1065},{Date:"2013-01",scales:1255},{Date:"2013-02",scales:1429},{Date:"2013-03",scales:1398},{Date:"2013-04",scales:1678},{Date:"2013-05",scales:1524},{Date:"2013-06",scales:1688},{Date:"2013-07",scales:1500},{Date:"2013-08",scales:1670},{Date:"2013-09",scales:1734},{Date:"2013-10",scales:1699},{Date:"2013-11",scales:1508},{Date:"2013-12",scales:1680},{Date:"2014-01",scales:1750},{Date:"2014-02",scales:1602},{Date:"2014-03",scales:1834},{Date:"2014-04",scales:1722},{Date:"2014-05",scales:1430},{Date:"2014-06",scales:1280},{Date:"2014-07",scales:1367},{Date:"2014-08",scales:1155},{Date:"2014-09",scales:1289},{Date:"2014-10",scales:1104},{Date:"2014-11",scales:1246},{Date:"2014-12",scales:1098},{Date:"2015-01",scales:1189},{Date:"2015-02",scales:1276},{Date:"2015-03",scales:1033},{Date:"2015-04",scales:956},{Date:"2015-05",scales:845},{Date:"2015-06",scales:1089},{Date:"2015-07",scales:944},{Date:"2015-08",scales:1043},{Date:"2015-09",scales:893},{Date:"2015-10",scales:840},{Date:"2015-11",scales:934},{Date:"2015-12",scales:810},{Date:"2016-01",scales:782},{Date:"2016-02",scales:1089},{Date:"2016-03",scales:745},{Date:"2016-04",scales:680},{Date:"2016-05",scales:802},{Date:"2016-06",scales:697},{Date:"2016-07",scales:583},{Date:"2016-08",scales:456},{Date:"2016-09",scales:524},{Date:"2016-10",scales:398},{Date:"2016-11",scales:278},{Date:"2016-12",scales:195},{Date:"2017-01",scales:145},{Date:"2017-02",scales:207}]);return i.useEffect(()=>{},[]),{data:e}},ien=Object.freeze(Object.defineProperty({__proto__:null,default:jse},Symbol.toStringTag,{value:"Module"})),len={initialState:void 0,loading:!0,error:void 0},cen=()=>{const[e,t]=i.useState(len),r=i.useCallback(async()=>{t(a=>({...a,loading:!0,error:void 0}));try{const a=await qce();t(o=>({...o,initialState:a,loading:!1}))}catch(a){t(o=>({...o,error:a,loading:!1}))}},[]),n=i.useCallback(async a=>{t(o=>typeof a=="function"?{...o,initialState:a(o.initialState),loading:!1}:{...o,initialState:a,loading:!1})},[]);return i.useEffect(()=>{r()},[]),{...e,refresh:r,setInitialState:n}},h$={model_1:{namespace:"dictModel",model:oen},model_2:{namespace:"backend.Dashboard.Workplace.homeModel",model:jse},model_3:{namespace:"@@initialState",model:cen}};function sen(e){const t=U.useMemo(()=>Object.keys(h$).reduce((r,n)=>(r[h$[n].namespace]=h$[n].model,r),{}),[]);return q.jsx(ybr,{models:t,...e,children:e.children})}function uen(e,t){return q.jsx(sen,{...t,children:e})}const den=Object.freeze(Object.defineProperty({__proto__:null,dataflowProvider:uen},Symbol.toStringTag,{value:"Module"}));function fen(e){return e.default?typeof e.default=="function"?e.default():e.default:e}function ven(){return[{apply:fen(Lqr),path:void 0},{apply:Hqr,path:void 0},{apply:Uqr,path:void 0},{apply:qqr,path:void 0},{apply:Qqr,path:void 0},{apply:nen,path:void 0},{apply:den,path:void 0}]}function hen(){return["patchRoutes","patchClientRoutes","modifyContextOpts","modifyClientRenderOpts","rootContainer","innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","render","onRouteChange","antd","getInitialState","layout","locale","qiankun","request"]}let CO=null;function men(){return CO=KSr.create({plugins:ven(),validKeys:hen()}),CO}function Vse(){return CO}const gen="/",pen=!1;async function yen(){const e=men(),{routes:t,routeComponents:r}=await vje();await e.applyPlugins({key:"patchRoutes",type:Gl.event,args:{routes:t,routeComponents:r}});const n=e.applyPlugins({key:"modifyContextOpts",type:Gl.modify,initialValue:{}}),a=n.basename||"/",o=n.historyType||"browser",l=YSr({type:o,basename:a,...n.historyOpts});return e.applyPlugins({key:"render",type:Gl.compose,initialValue(){const c={useStream:!0,routes:t,routeComponents:r,pluginManager:e,mountElementId:"root",rootElement:n.rootElement||document.getElementById("root"),publicPath:gen,runtimePublicPath:pen,history:l,historyType:o,basename:a,__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{pureApp:!1,pureHtml:!1},callback:n.callback},s=e.applyPlugins({key:"modifyClientRenderOpts",type:Gl.modify,initialValue:c});return ije(s)}})()}yen();typeof window<"u"&&(window.g_umi={version:"4.4.5"});export{UI as $,mre as A,Bi as B,er as C,R1 as D,zl as E,AL as F,pc as G,Tn as H,Voe as I,In as J,Z as K,sp as L,Ft as M,D9r as N,Va as O,bs as P,CI as Q,U as R,U0 as S,vi as T,Zen as U,Ns as V,wW as W,ua as X,A4 as Y,Cdt as Z,z as _,Sr as a,Kn as a$,A6 as a0,I3 as a1,w3 as a2,roe as a3,Omr as a4,Mqr as a5,lqr as a6,PCr as a7,Gne as a8,Rae as a9,GGe as aA,Sje as aB,xh as aC,Qen as aD,yae as aE,I1t as aF,$u as aG,bB as aH,s1 as aI,Lae as aJ,h0 as aK,Rx as aL,M4 as aM,o6 as aN,Hor as aO,U5r as aP,qen as aQ,Yen as aR,Gen as aS,n9r as aT,Da as aU,ue as aV,cl as aW,yl as aX,g0 as aY,ca as aZ,Pn as a_,H7 as aa,vIt as ab,WI as ac,D_t as ad,sCr as ae,Kl as af,YKr as ag,af as ah,$6t as ai,D6r as aj,g7r as ak,Woe as al,cQt as am,uKr as an,ble as ao,tbr as ap,fr as aq,Nen as ar,Ken as as,oqr as at,qi as au,uje as av,Uen as aw,Wen as ax,_Q as ay,Xen as az,as as b,Ren as b$,Dj as b0,bKr as b1,f1 as b2,tie as b3,dg as b4,je as b5,ya as b6,N6 as b7,br as b8,CCr as b9,GI as bA,pyr as bB,eg as bC,Noe as bD,kLt as bE,ULt as bF,EI as bG,xB as bH,Mct as bI,sg as bJ,_h as bK,wl as bL,dT as bM,Pen as bN,NCr as bO,tee as bP,vT as bQ,lt as bR,lr as bS,us as bT,jn as bU,Zrt as bV,sa as bW,mr as bX,m7 as bY,wM as bZ,eI as b_,xDt as ba,gs as bb,Bt as bc,Ent as bd,Fl as be,pu as bf,Gm as bg,w4 as bh,Vn as bi,an as bj,vr as bk,BJe as bl,uc as bm,oc as bn,hs as bo,qn as bp,_f as bq,jo as br,$Gr as bs,wGr as bt,Np as bu,ben as bv,Km as bw,Men as bx,ka as by,cVt as bz,FC as c,mQe as c$,fJe as c0,mN as c1,Nee as c2,w7 as c3,AI as c4,lte as c5,jm as c6,x7 as c7,qH as c8,R4t as c9,ser as cA,wa as cB,zCr as cC,_o as cD,rr as cE,x1 as cF,jJe as cG,ri as cH,wen as cI,see as cJ,on as cK,Oen as cL,VJe as cM,kl as cN,cc as cO,b7 as cP,pte as cQ,Vo as cR,tet as cS,ret as cT,yc as cU,j1 as cV,y7 as cW,Uee as cX,MM as cY,_ee as cZ,Tet as c_,I2 as ca,W2t as cb,Kc as cc,Ten as cd,V7 as ce,ECr as cf,I as cg,Ne as ch,C6 as ci,bc as cj,o3t as ck,bp as cl,en as cm,Ben as cn,ol as co,Vce as cp,oie as cq,Een as cr,$l as cs,Kr as ct,pMt as cu,lp as cv,_a as cw,Mee as cx,Htr as cy,Ckt as cz,wo as d,Oj as d$,Ien as d0,s2t as d1,CIt as d2,$a as d3,fp as d4,hr as d5,JFr as d6,Ven as d7,SCr as d8,yOr as d9,Boe as dA,Qlr as dB,DCr as dC,ZEr as dD,T1 as dE,hRr as dF,yle as dG,rM as dH,N5 as dI,q1 as dJ,r4 as dK,Hen as dL,p2t as dM,qS as dN,JKr as dO,LXt as dP,Zl as dQ,jT as dR,Bce as dS,Dce as dT,uYr as dU,Kie as dV,Uie as dW,yGr as dX,QKr as dY,Ywr as dZ,xj as d_,ole as da,mT as db,B4 as dc,Ixr as dd,wp as de,rle as df,pT as dg,Ux as dh,sle as di,fle as dj,Wx as dk,j4 as dl,vg as dm,Sp as dn,jj as dp,CEr as dq,V4 as dr,L6 as ds,UEr as dt,qoe as du,knt as dv,Tgr as dw,Ogr as dx,y$t as dy,Hoe as dz,MI as e,Uc as e0,JGt as e1,vbr as e2,w5 as e3,Sen as e4,oR as e5,vD as e6,fs as e7,w1 as e8,sM as e9,Ijr as eA,Hle as eB,_Br as eC,ZHr as eD,Tle as eE,Jle as eF,$T as eG,wBr as eH,LBr as eI,mce as eJ,_en as eK,hce as eL,zen as eM,Den as eN,Aen as eO,Len as eP,ken as eQ,Fen as eR,MJ as eS,C1 as eT,jen as eU,Ta as eV,oo as eW,VBe as eX,bJ as ea,Xd as eb,xen as ec,g6 as ed,oQe as ee,UM as ef,Yc as eg,S4 as eh,Ic as ei,zs as ej,T6 as ek,B7 as el,b2t as em,mot as en,bDt as eo,b9t as ep,Vpt as eq,gee as er,w6 as es,Q1 as et,J1 as eu,Sc as ev,jzr as ew,W_r as ex,M_r as ey,__r as ez,op as f,ur as g,clt as h,_Cr as i,q as j,at as k,oe as l,Zt as m,k0 as n,qt as o,Yd as p,nc as q,i as r,uT as s,ac as t,fe as u,NKr as v,ra as w,$r as x,B0 as y,Cen as z}; +`+new Error().stack),G=!1}return L.apply(this,arguments)},L)}var _={};function B(x,L){n.deprecationHandler!=null&&n.deprecationHandler(x,L),_[x]||(R(L),_[x]=!0)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;function D(x){return typeof Function<"u"&&x instanceof Function||Object.prototype.toString.call(x)==="[object Function]"}function H(x){var L,G;for(G in x)c(x,G)&&(L=x[G],D(L)?this[G]=L:this["_"+G]=L);this._config=x,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function j(x,L){var G=h({},x),ee;for(ee in L)c(L,ee)&&(l(x[ee])&&l(L[ee])?(G[ee]={},h(G[ee],x[ee]),h(G[ee],L[ee])):L[ee]!=null?G[ee]=L[ee]:delete G[ee]);for(ee in x)c(x,ee)&&!c(L,ee)&&l(x[ee])&&(G[ee]=h({},G[ee]));return G}function T(x){x!=null&&this.set(x)}var P;Object.keys?P=Object.keys:P=function(x){var L,G=[];for(L in x)c(x,L)&&G.push(L);return G};var k={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(x,L,G){var ee=this._calendar[x]||this._calendar.sameElse;return D(ee)?ee.call(L,G):ee}function F(x,L,G){var ee=""+Math.abs(x),he=L-ee.length,Ie=x>=0;return(Ie?G?"+":"":"-")+Math.pow(10,Math.max(0,he)).toString().substr(1)+ee}var V=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,K={},Y={};function X(x,L,G,ee){var he=ee;typeof ee=="string"&&(he=function(){return this[ee]()}),x&&(Y[x]=he),L&&(Y[L[0]]=function(){return F(he.apply(this,arguments),L[1],L[2])}),G&&(Y[G]=function(){return this.localeData().ordinal(he.apply(this,arguments),x)})}function te(x){return x.match(/\[[\s\S]/)?x.replace(/^\[|\]$/g,""):x.replace(/\\/g,"")}function Q(x){var L=x.match(V),G,ee;for(G=0,ee=L.length;G=0&&U.test(x);)x=x.replace(U,ee),U.lastIndex=0,G-=1;return x}var ne={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ie(x){var L=this._longDateFormat[x],G=this._longDateFormat[x.toUpperCase()];return L||!G?L:(this._longDateFormat[x]=G.match(V).map(function(ee){return ee==="MMMM"||ee==="MM"||ee==="DD"||ee==="dddd"?ee.slice(1):ee}).join(""),this._longDateFormat[x])}var de="Invalid date";function se(){return this._invalidDate}var ve="%d",me=/\d{1,2}/;function le(x){return this._ordinal.replace("%d",x)}var pe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ge(x,L,G,ee){var he=this._relativeTime[G];return D(he)?he(x,L,G,ee):he.replace(/%d/i,x)}function $e(x,L){var G=this._relativeTime[x>0?"future":"past"];return D(G)?G(L):G.replace(/%s/i,L)}var we={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Se(x){return typeof x=="string"?we[x]||we[x.toLowerCase()]:void 0}function xe(x){var L={},G,ee;for(ee in x)c(x,ee)&&(G=Se(ee),G&&(L[G]=x[ee]));return L}var be={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Ce(x){var L=[],G;for(G in x)c(x,G)&&L.push({unit:G,priority:be[G]});return L.sort(function(ee,he){return ee.priority-he.priority}),L}var Ee=/\d/,Oe=/\d\d/,We=/\d{3}/,_e=/\d{4}/,ze=/[+-]?\d{6}/,Re=/\d\d?/,Me=/\d\d\d\d?/,Be=/\d\d\d\d\d\d?/,je=/\d{1,3}/,Te=/\d{1,4}/,ke=/[+-]?\d{1,6}/,Ue=/\d+/,He=/[+-]?\d+/,Xe=/Z|[+-]\d\d:?\d\d/gi,rt=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[+-]?\d+(\.\d{1,3})?/,xt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,et=/^[1-9]\d?/,Ze=/^([1-9]\d|\d)/,st;st={};function Ae(x,L,G){st[x]=D(L)?L:function(ee,he){return ee&&G?G:L}}function dt(x,L){return c(st,x)?st[x](L._strict,L._locale):new RegExp(it(x))}function it(x){return nt(x.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(L,G,ee,he,Ie){return G||ee||he||Ie}))}function nt(x){return x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ot(x){return x<0?Math.ceil(x)||0:Math.floor(x)}function vt(x){var L=+x,G=0;return L!==0&&isFinite(L)&&(G=ot(L)),G}var Pt={};function Ke(x,L){var G,ee=L,he;for(typeof x=="string"&&(x=[x]),d(L)&&(ee=function(Ie,Je){Je[L]=vt(Ie)}),he=x.length,G=0;G68?1900:2e3)};var _t=Ge("FullYear",!0);function Le(){return Et(this.year())}function Ge(x,L){return function(G){return G!=null?(qe(this,x,G),n.updateOffset(this,L),this):gt(this,x)}}function gt(x,L){if(!x.isValid())return NaN;var G=x._d,ee=x._isUTC;switch(L){case"Milliseconds":return ee?G.getUTCMilliseconds():G.getMilliseconds();case"Seconds":return ee?G.getUTCSeconds():G.getSeconds();case"Minutes":return ee?G.getUTCMinutes():G.getMinutes();case"Hours":return ee?G.getUTCHours():G.getHours();case"Date":return ee?G.getUTCDate():G.getDate();case"Day":return ee?G.getUTCDay():G.getDay();case"Month":return ee?G.getUTCMonth():G.getMonth();case"FullYear":return ee?G.getUTCFullYear():G.getFullYear();default:return NaN}}function qe(x,L,G){var ee,he,Ie,Je,Wt;if(!(!x.isValid()||isNaN(G))){switch(ee=x._d,he=x._isUTC,L){case"Milliseconds":return void(he?ee.setUTCMilliseconds(G):ee.setMilliseconds(G));case"Seconds":return void(he?ee.setUTCSeconds(G):ee.setSeconds(G));case"Minutes":return void(he?ee.setUTCMinutes(G):ee.setMinutes(G));case"Hours":return void(he?ee.setUTCHours(G):ee.setHours(G));case"Date":return void(he?ee.setUTCDate(G):ee.setDate(G));case"FullYear":break;default:return}Ie=G,Je=x.month(),Wt=x.date(),Wt=Wt===29&&Je===1&&!Et(Ie)?28:Wt,he?ee.setUTCFullYear(Ie,Je,Wt):ee.setFullYear(Ie,Je,Wt)}}function Fe(x){return x=Se(x),D(this[x])?this[x]():this}function Ye(x,L){if(typeof x=="object"){x=xe(x);var G=Ce(x),ee,he=G.length;for(ee=0;ee=0?(Wt=new Date(x+400,L,G,ee,he,Ie,Je),isFinite(Wt.getFullYear())&&Wt.setFullYear(x)):Wt=new Date(x,L,G,ee,he,Ie,Je),Wt}function Rt(x){var L,G;return x<100&&x>=0?(G=Array.prototype.slice.call(arguments),G[0]=x+400,L=new Date(Date.UTC.apply(null,G)),isFinite(L.getUTCFullYear())&&L.setUTCFullYear(x)):L=new Date(Date.UTC.apply(null,arguments)),L}function It(x,L,G){var ee=7+L-G,he=(7+Rt(x,0,ee).getUTCDay()-L)%7;return-he+ee-1}function yr(x,L,G,ee,he){var Ie=(7+G-ee)%7,Je=It(x,ee,he),Wt=1+7*(L-1)+Ie+Je,pr,Vr;return Wt<=0?(pr=x-1,Vr=zt(pr)+Wt):Wt>zt(x)?(pr=x+1,Vr=Wt-zt(x)):(pr=x,Vr=Wt),{year:pr,dayOfYear:Vr}}function Lr(x,L,G){var ee=It(x.year(),L,G),he=Math.floor((x.dayOfYear()-ee-1)/7)+1,Ie,Je;return he<1?(Je=x.year()-1,Ie=he+Ar(Je,L,G)):he>Ar(x.year(),L,G)?(Ie=he-Ar(x.year(),L,G),Je=x.year()+1):(Je=x.year(),Ie=he),{week:Ie,year:Je}}function Ar(x,L,G){var ee=It(x,L,G),he=It(x+1,L,G);return(zt(x)-ee+he)/7}X("w",["ww",2],"wo","week"),X("W",["WW",2],"Wo","isoWeek"),Ae("w",Re,et),Ae("ww",Re,Oe),Ae("W",Re,et),Ae("WW",Re,Oe),ct(["w","ww","W","WW"],function(x,L,G,ee){L[ee.substr(0,1)]=vt(x)});function Zn(x){return Lr(x,this._week.dow,this._week.doy).week}var Wn={dow:0,doy:6};function Qn(){return this._week.dow}function sr(){return this._week.doy}function Yt(x){var L=this.localeData().week(this);return x==null?L:this.add((x-L)*7,"d")}function gr(x){var L=Lr(this,1,4).week;return x==null?L:this.add((x-L)*7,"d")}X("d",0,"do","day"),X("dd",0,0,function(x){return this.localeData().weekdaysMin(this,x)}),X("ddd",0,0,function(x){return this.localeData().weekdaysShort(this,x)}),X("dddd",0,0,function(x){return this.localeData().weekdays(this,x)}),X("e",0,0,"weekday"),X("E",0,0,"isoWeekday"),Ae("d",Re),Ae("e",Re),Ae("E",Re),Ae("dd",function(x,L){return L.weekdaysMinRegex(x)}),Ae("ddd",function(x,L){return L.weekdaysShortRegex(x)}),Ae("dddd",function(x,L){return L.weekdaysRegex(x)}),ct(["dd","ddd","dddd"],function(x,L,G,ee){var he=G._locale.weekdaysParse(x,ee,G._strict);he!=null?L.d=he:g(G).invalidWeekday=x}),ct(["d","e","E"],function(x,L,G,ee){L[ee]=vt(x)});function Rr(x,L){return typeof x!="string"?x:isNaN(x)?(x=L.weekdaysParse(x),typeof x=="number"?x:null):parseInt(x,10)}function pn(x,L){return typeof x=="string"?L.weekdaysParse(x)%7||7:isNaN(x)?null:x}function vo(x,L){return x.slice(L,7).concat(x.slice(0,L))}var La="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),To="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Or="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Cc=xt,xi=xt,ws=xt;function Cs(x,L){var G=o(this._weekdays)?this._weekdays:this._weekdays[x&&x!==!0&&this._weekdays.isFormat.test(L)?"format":"standalone"];return x===!0?vo(G,this._week.dow):x?G[x.day()]:G}function jt(x){return x===!0?vo(this._weekdaysShort,this._week.dow):x?this._weekdaysShort[x.day()]:this._weekdaysShort}function Jt(x){return x===!0?vo(this._weekdaysMin,this._week.dow):x?this._weekdaysMin[x.day()]:this._weekdaysMin}function ln(x,L,G){var ee,he,Ie,Je=x.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ee=0;ee<7;++ee)Ie=m([2e3,1]).day(ee),this._minWeekdaysParse[ee]=this.weekdaysMin(Ie,"").toLocaleLowerCase(),this._shortWeekdaysParse[ee]=this.weekdaysShort(Ie,"").toLocaleLowerCase(),this._weekdaysParse[ee]=this.weekdays(Ie,"").toLocaleLowerCase();return G?L==="dddd"?(he=Ct.call(this._weekdaysParse,Je),he!==-1?he:null):L==="ddd"?(he=Ct.call(this._shortWeekdaysParse,Je),he!==-1?he:null):(he=Ct.call(this._minWeekdaysParse,Je),he!==-1?he:null):L==="dddd"?(he=Ct.call(this._weekdaysParse,Je),he!==-1||(he=Ct.call(this._shortWeekdaysParse,Je),he!==-1)?he:(he=Ct.call(this._minWeekdaysParse,Je),he!==-1?he:null)):L==="ddd"?(he=Ct.call(this._shortWeekdaysParse,Je),he!==-1||(he=Ct.call(this._weekdaysParse,Je),he!==-1)?he:(he=Ct.call(this._minWeekdaysParse,Je),he!==-1?he:null)):(he=Ct.call(this._minWeekdaysParse,Je),he!==-1||(he=Ct.call(this._weekdaysParse,Je),he!==-1)?he:(he=Ct.call(this._shortWeekdaysParse,Je),he!==-1?he:null))}function $n(x,L,G){var ee,he,Ie;if(this._weekdaysParseExact)return ln.call(this,x,L,G);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ee=0;ee<7;ee++){if(he=m([2e3,1]).day(ee),G&&!this._fullWeekdaysParse[ee]&&(this._fullWeekdaysParse[ee]=new RegExp("^"+this.weekdays(he,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ee]=new RegExp("^"+this.weekdaysShort(he,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ee]=new RegExp("^"+this.weekdaysMin(he,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ee]||(Ie="^"+this.weekdays(he,"")+"|^"+this.weekdaysShort(he,"")+"|^"+this.weekdaysMin(he,""),this._weekdaysParse[ee]=new RegExp(Ie.replace(".",""),"i")),G&&L==="dddd"&&this._fullWeekdaysParse[ee].test(x))return ee;if(G&&L==="ddd"&&this._shortWeekdaysParse[ee].test(x))return ee;if(G&&L==="dd"&&this._minWeekdaysParse[ee].test(x))return ee;if(!G&&this._weekdaysParse[ee].test(x))return ee}}function Nr(x){if(!this.isValid())return x!=null?this:NaN;var L=gt(this,"Day");return x!=null?(x=Rr(x,this.localeData()),this.add(x-L,"d")):L}function xs(x){if(!this.isValid())return x!=null?this:NaN;var L=(this.day()+7-this.localeData()._week.dow)%7;return x==null?L:this.add(x-L,"d")}function Os(x){if(!this.isValid())return x!=null?this:NaN;if(x!=null){var L=pn(x,this.localeData());return this.day(this.day()%7?L:L-7)}else return this.day()||7}function ho(x){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||De.call(this),x?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Cc),this._weekdaysStrictRegex&&x?this._weekdaysStrictRegex:this._weekdaysRegex)}function re(x){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||De.call(this),x?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xi),this._weekdaysShortStrictRegex&&x?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ye(x){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||De.call(this),x?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ws),this._weekdaysMinStrictRegex&&x?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function De(){function x(go,Ic){return Ic.length-go.length}var L=[],G=[],ee=[],he=[],Ie,Je,Wt,pr,Vr;for(Ie=0;Ie<7;Ie++)Je=m([2e3,1]).day(Ie),Wt=nt(this.weekdaysMin(Je,"")),pr=nt(this.weekdaysShort(Je,"")),Vr=nt(this.weekdays(Je,"")),L.push(Wt),G.push(pr),ee.push(Vr),he.push(Wt),he.push(pr),he.push(Vr);L.sort(x),G.sort(x),ee.sort(x),he.sort(x),this._weekdaysRegex=new RegExp("^("+he.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ee.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+G.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+L.join("|")+")","i")}function Qe(){return this.hours()%12||12}function $t(){return this.hours()||24}X("H",["HH",2],0,"hour"),X("h",["hh",2],0,Qe),X("k",["kk",2],0,$t),X("hmm",0,0,function(){return""+Qe.apply(this)+F(this.minutes(),2)}),X("hmmss",0,0,function(){return""+Qe.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),X("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),X("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)});function ir(x,L){X(x,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),L)})}ir("a",!0),ir("A",!1);function vn(x,L){return L._meridiemParse}Ae("a",vn),Ae("A",vn),Ae("H",Re,Ze),Ae("h",Re,et),Ae("k",Re,et),Ae("HH",Re,Oe),Ae("hh",Re,Oe),Ae("kk",Re,Oe),Ae("hmm",Me),Ae("hmmss",Be),Ae("Hmm",Me),Ae("Hmmss",Be),Ke(["H","HH"],kt),Ke(["k","kk"],function(x,L,G){var ee=vt(x);L[kt]=ee===24?0:ee}),Ke(["a","A"],function(x,L,G){G._isPm=G._locale.isPM(x),G._meridiem=x}),Ke(["h","hh"],function(x,L,G){L[kt]=vt(x),g(G).bigHour=!0}),Ke("hmm",function(x,L,G){var ee=x.length-2;L[kt]=vt(x.substr(0,ee)),L[Vt]=vt(x.substr(ee)),g(G).bigHour=!0}),Ke("hmmss",function(x,L,G){var ee=x.length-4,he=x.length-2;L[kt]=vt(x.substr(0,ee)),L[Vt]=vt(x.substr(ee,2)),L[Xt]=vt(x.substr(he)),g(G).bigHour=!0}),Ke("Hmm",function(x,L,G){var ee=x.length-2;L[kt]=vt(x.substr(0,ee)),L[Vt]=vt(x.substr(ee))}),Ke("Hmmss",function(x,L,G){var ee=x.length-4,he=x.length-2;L[kt]=vt(x.substr(0,ee)),L[Vt]=vt(x.substr(ee,2)),L[Xt]=vt(x.substr(he))});function zr(x){return(x+"").toLowerCase().charAt(0)==="p"}var mo=/[ap]\.?m?\.?/i,Hr=Ge("Hours",!0);function wn(x,L,G){return x>11?G?"pm":"PM":G?"am":"AM"}var Br={calendar:k,longDateFormat:ne,invalidDate:de,ordinal:ve,dayOfMonthOrdinalParse:me,relativeTime:pe,months:ft,monthsShort:wt,week:Wn,weekdays:La,weekdaysMin:Or,weekdaysShort:To,meridiemParse:mo},dr={},Ca={},Qa;function r2(x,L){var G,ee=Math.min(x.length,L.length);for(G=0;G0;){if(he=t8(Ie.slice(0,G).join("-")),he)return he;if(ee&&ee.length>=G&&r2(Ie,ee)>=G-1)break;G--}L++}return Qa}function Wse(x){return!!(x&&x.match("^[^/\\\\]*$"))}function t8(x){var L=null,G;if(dr[x]===void 0&&e&&e.exports&&Wse(x))try{L=Qa._abbr,G=Hse,G("./locale/"+x),Es(L)}catch{dr[x]=null}return dr[x]}function Es(x,L){var G;return x&&(u(L)?G=xc(x):G=r9(x,L),G?Qa=G:typeof console<"u"&&console.warn&&console.warn("Locale "+x+" not found. Did you forget to load it?")),Qa._abbr}function r9(x,L){if(L!==null){var G,ee=Br;if(L.abbr=x,dr[x]!=null)B("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ee=dr[x]._config;else if(L.parentLocale!=null)if(dr[L.parentLocale]!=null)ee=dr[L.parentLocale]._config;else if(G=t8(L.parentLocale),G!=null)ee=G._config;else return Ca[L.parentLocale]||(Ca[L.parentLocale]=[]),Ca[L.parentLocale].push({name:x,config:L}),null;return dr[x]=new T(j(ee,L)),Ca[x]&&Ca[x].forEach(function(he){r9(he.name,he.config)}),Es(x),dr[x]}else return delete dr[x],null}function Use(x,L){if(L!=null){var G,ee,he=Br;dr[x]!=null&&dr[x].parentLocale!=null?dr[x].set(j(dr[x]._config,L)):(ee=t8(x),ee!=null&&(he=ee._config),L=j(he,L),ee==null&&(L.abbr=x),G=new T(L),G.parentLocale=dr[x],dr[x]=G),Es(x)}else dr[x]!=null&&(dr[x].parentLocale!=null?(dr[x]=dr[x].parentLocale,x===Es()&&Es(x)):dr[x]!=null&&delete dr[x]);return dr[x]}function xc(x){var L;if(x&&x._locale&&x._locale._abbr&&(x=x._locale._abbr),!x)return Qa;if(!o(x)){if(L=t8(x),L)return L;x=[x]}return jse(x)}function Kse(){return P(dr)}function n9(x){var L,G=x._a;return G&&g(x).overflow===-2&&(L=G[Ot]<0||G[Ot]>11?Ot:G[Gt]<1||G[Gt]>cr(G[mt],G[Ot])?Gt:G[kt]<0||G[kt]>24||G[kt]===24&&(G[Vt]!==0||G[Xt]!==0||G[ce]!==0)?kt:G[Vt]<0||G[Vt]>59?Vt:G[Xt]<0||G[Xt]>59?Xt:G[ce]<0||G[ce]>999?ce:-1,g(x)._overflowDayOfYear&&(LGt)&&(L=Gt),g(x)._overflowWeeks&&L===-1&&(L=At),g(x)._overflowWeekday&&L===-1&&(L=or),g(x).overflow=L),x}var Yse=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gse=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qse=/Z|[+-]\d\d(?::?\d\d)?/,r8=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],a9=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Xse=/^\/?Date\((-?\d+)/i,Zse=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Qse={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function mP(x){var L,G,ee=x._i,he=Yse.exec(ee)||Gse.exec(ee),Ie,Je,Wt,pr,Vr=r8.length,go=a9.length;if(he){for(g(x).iso=!0,L=0,G=Vr;Lzt(Je)||x._dayOfYear===0)&&(g(x)._overflowDayOfYear=!0),G=Rt(Je,0,x._dayOfYear),x._a[Ot]=G.getUTCMonth(),x._a[Gt]=G.getUTCDate()),L=0;L<3&&x._a[L]==null;++L)x._a[L]=ee[L]=he[L];for(;L<7;L++)x._a[L]=ee[L]=x._a[L]==null?L===2?1:0:x._a[L];x._a[kt]===24&&x._a[Vt]===0&&x._a[Xt]===0&&x._a[ce]===0&&(x._nextDay=!0,x._a[kt]=0),x._d=(x._useUTC?Rt:xr).apply(null,ee),Ie=x._useUTC?x._d.getUTCDay():x._d.getDay(),x._tzm!=null&&x._d.setUTCMinutes(x._d.getUTCMinutes()-x._tzm),x._nextDay&&(x._a[kt]=24),x._w&&typeof x._w.d<"u"&&x._w.d!==Ie&&(g(x).weekdayMismatch=!0)}}function iue(x){var L,G,ee,he,Ie,Je,Wt,pr,Vr;L=x._w,L.GG!=null||L.W!=null||L.E!=null?(Ie=1,Je=4,G=rd(L.GG,x._a[mt],Lr(Cn(),1,4).year),ee=rd(L.W,1),he=rd(L.E,1),(he<1||he>7)&&(pr=!0)):(Ie=x._locale._week.dow,Je=x._locale._week.doy,Vr=Lr(Cn(),Ie,Je),G=rd(L.gg,x._a[mt],Vr.year),ee=rd(L.w,Vr.week),L.d!=null?(he=L.d,(he<0||he>6)&&(pr=!0)):L.e!=null?(he=L.e+Ie,(L.e<0||L.e>6)&&(pr=!0)):he=Ie),ee<1||ee>Ar(G,Ie,Je)?g(x)._overflowWeeks=!0:pr!=null?g(x)._overflowWeekday=!0:(Wt=yr(G,ee,he,Ie,Je),x._a[mt]=Wt.year,x._dayOfYear=Wt.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function i9(x){if(x._f===n.ISO_8601){mP(x);return}if(x._f===n.RFC_2822){gP(x);return}x._a=[],g(x).empty=!0;var L=""+x._i,G,ee,he,Ie,Je,Wt=L.length,pr=0,Vr,go;for(he=ae(x._f,x._locale).match(V)||[],go=he.length,G=0;G0&&g(x).unusedInput.push(Je),L=L.slice(L.indexOf(ee)+ee.length),pr+=ee.length),Y[Ie]?(ee?g(x).empty=!1:g(x).unusedTokens.push(Ie),Mt(Ie,ee,x)):x._strict&&!ee&&g(x).unusedTokens.push(Ie);g(x).charsLeftOver=Wt-pr,L.length>0&&g(x).unusedInput.push(L),x._a[kt]<=12&&g(x).bigHour===!0&&x._a[kt]>0&&(g(x).bigHour=void 0),g(x).parsedDateParts=x._a.slice(0),g(x).meridiem=x._meridiem,x._a[kt]=lue(x._locale,x._a[kt],x._meridiem),Vr=g(x).era,Vr!==null&&(x._a[mt]=x._locale.erasConvertYear(Vr,x._a[mt])),o9(x),n9(x)}function lue(x,L,G){var ee;return G==null?L:x.meridiemHour!=null?x.meridiemHour(L,G):(x.isPM!=null&&(ee=x.isPM(G),ee&&L<12&&(L+=12),!ee&&L===12&&(L=0)),L)}function cue(x){var L,G,ee,he,Ie,Je,Wt=!1,pr=x._f.length;if(pr===0){g(x).invalidFormat=!0,x._d=new Date(NaN);return}for(he=0;hethis?this:x:S()});function bP(x,L){var G,ee;if(L.length===1&&o(L[0])&&(L=L[0]),!L.length)return Cn();for(G=L[0],ee=1;eethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Mue(){if(!u(this._isDSTShifted))return this._isDSTShifted;var x={},L;return C(x,this),x=pP(x),x._a?(L=x._isUTC?m(x._a):Cn(x._a),this._isDSTShifted=this.isValid()&&Sue(x._a,L.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tue(){return this.isValid()?!this._isUTC:!1}function Pue(){return this.isValid()?this._isUTC:!1}function $P(){return this.isValid()?this._isUTC&&this._offset===0:!1}var _ue=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zue=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ui(x,L){var G=x,ee=null,he,Ie,Je;return a8(x)?G={ms:x._milliseconds,d:x._days,M:x._months}:d(x)||!isNaN(+x)?(G={},L?G[L]=+x:G.milliseconds=+x):(ee=_ue.exec(x))?(he=ee[1]==="-"?-1:1,G={y:0,d:vt(ee[Gt])*he,h:vt(ee[kt])*he,m:vt(ee[Vt])*he,s:vt(ee[Xt])*he,ms:vt(l9(ee[ce]*1e3))*he}):(ee=zue.exec(x))?(he=ee[1]==="-"?-1:1,G={y:Fu(ee[2],he),M:Fu(ee[3],he),w:Fu(ee[4],he),d:Fu(ee[5],he),h:Fu(ee[6],he),m:Fu(ee[7],he),s:Fu(ee[8],he)}):G==null?G={}:typeof G=="object"&&("from"in G||"to"in G)&&(Je=Fue(Cn(G.from),Cn(G.to)),G={},G.ms=Je.milliseconds,G.M=Je.months),Ie=new n8(G),a8(x)&&c(x,"_locale")&&(Ie._locale=x._locale),a8(x)&&c(x,"_isValid")&&(Ie._isValid=x._isValid),Ie}Ui.fn=n8.prototype,Ui.invalid=bue;function Fu(x,L){var G=x&&parseFloat(x.replace(",","."));return(isNaN(G)?0:G)*L}function wP(x,L){var G={};return G.months=L.month()-x.month()+(L.year()-x.year())*12,x.clone().add(G.months,"M").isAfter(L)&&--G.months,G.milliseconds=+L-+x.clone().add(G.months,"M"),G}function Fue(x,L){var G;return x.isValid()&&L.isValid()?(L=s9(L,x),x.isBefore(L)?G=wP(x,L):(G=wP(L,x),G.milliseconds=-G.milliseconds,G.months=-G.months),G):{milliseconds:0,months:0}}function CP(x,L){return function(G,ee){var he,Ie;return ee!==null&&!isNaN(+ee)&&(B(L,"moment()."+L+"(period, number) is deprecated. Please use moment()."+L+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Ie=G,G=ee,ee=Ie),he=Ui(G,ee),xP(this,he,x),this}}function xP(x,L,G,ee){var he=L._milliseconds,Ie=l9(L._days),Je=l9(L._months);x.isValid()&&(ee=ee??!0,Je&&Xn(x,gt(x,"Month")+Je*G),Ie&&qe(x,"Date",gt(x,"Date")+Ie*G),he&&x._d.setTime(x._d.valueOf()+he*G),ee&&n.updateOffset(x,Ie||Je))}var kue=CP(1,"add"),Due=CP(-1,"subtract");function OP(x){return typeof x=="string"||x instanceof String}function Lue(x){return O(x)||f(x)||OP(x)||d(x)||Nue(x)||Aue(x)||x===null||x===void 0}function Aue(x){var L=l(x)&&!s(x),G=!1,ee=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],he,Ie,Je=ee.length;for(he=0;heG.valueOf():G.valueOf()9999?J(G,L?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?L?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",J(G,"Z")):J(G,L?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jue(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var x="moment",L="",G,ee,he,Ie;return this.isLocal()||(x=this.utcOffset()===0?"moment.utc":"moment.parseZone",L="Z"),G="["+x+'("]',ee=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",he="-MM-DD[T]HH:mm:ss.SSS",Ie=L+'[")]',this.format(G+ee+he+Ie)}function e1e(x){x||(x=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var L=J(this,x);return this.localeData().postformat(L)}function t1e(x,L){return this.isValid()&&(O(x)&&x.isValid()||Cn(x).isValid())?Ui({to:this,from:x}).locale(this.locale()).humanize(!L):this.localeData().invalidDate()}function r1e(x){return this.from(Cn(),x)}function n1e(x,L){return this.isValid()&&(O(x)&&x.isValid()||Cn(x).isValid())?Ui({from:this,to:x}).locale(this.locale()).humanize(!L):this.localeData().invalidDate()}function a1e(x){return this.to(Cn(),x)}function EP(x){var L;return x===void 0?this._locale._abbr:(L=xc(x),L!=null&&(this._locale=L),this)}var RP=I("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(x){return x===void 0?this.localeData():this.locale(x)});function IP(){return this._locale}var i8=1e3,nd=60*i8,l8=60*nd,MP=(365*400+97)*24*l8;function ad(x,L){return(x%L+L)%L}function TP(x,L,G){return x<100&&x>=0?new Date(x+400,L,G)-MP:new Date(x,L,G).valueOf()}function PP(x,L,G){return x<100&&x>=0?Date.UTC(x+400,L,G)-MP:Date.UTC(x,L,G)}function o1e(x){var L,G;if(x=Se(x),x===void 0||x==="millisecond"||!this.isValid())return this;switch(G=this._isUTC?PP:TP,x){case"year":L=G(this.year(),0,1);break;case"quarter":L=G(this.year(),this.month()-this.month()%3,1);break;case"month":L=G(this.year(),this.month(),1);break;case"week":L=G(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":L=G(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":L=G(this.year(),this.month(),this.date());break;case"hour":L=this._d.valueOf(),L-=ad(L+(this._isUTC?0:this.utcOffset()*nd),l8);break;case"minute":L=this._d.valueOf(),L-=ad(L,nd);break;case"second":L=this._d.valueOf(),L-=ad(L,i8);break}return this._d.setTime(L),n.updateOffset(this,!0),this}function i1e(x){var L,G;if(x=Se(x),x===void 0||x==="millisecond"||!this.isValid())return this;switch(G=this._isUTC?PP:TP,x){case"year":L=G(this.year()+1,0,1)-1;break;case"quarter":L=G(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":L=G(this.year(),this.month()+1,1)-1;break;case"week":L=G(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":L=G(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":L=G(this.year(),this.month(),this.date()+1)-1;break;case"hour":L=this._d.valueOf(),L+=l8-ad(L+(this._isUTC?0:this.utcOffset()*nd),l8)-1;break;case"minute":L=this._d.valueOf(),L+=nd-ad(L,nd)-1;break;case"second":L=this._d.valueOf(),L+=i8-ad(L,i8)-1;break}return this._d.setTime(L),n.updateOffset(this,!0),this}function l1e(){return this._d.valueOf()-(this._offset||0)*6e4}function c1e(){return Math.floor(this.valueOf()/1e3)}function s1e(){return new Date(this.valueOf())}function u1e(){var x=this;return[x.year(),x.month(),x.date(),x.hour(),x.minute(),x.second(),x.millisecond()]}function d1e(){var x=this;return{years:x.year(),months:x.month(),date:x.date(),hours:x.hours(),minutes:x.minutes(),seconds:x.seconds(),milliseconds:x.milliseconds()}}function f1e(){return this.isValid()?this.toISOString():null}function v1e(){return y(this)}function h1e(){return h({},g(this))}function m1e(){return g(this).overflow}function g1e(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}X("N",0,0,"eraAbbr"),X("NN",0,0,"eraAbbr"),X("NNN",0,0,"eraAbbr"),X("NNNN",0,0,"eraName"),X("NNNNN",0,0,"eraNarrow"),X("y",["y",1],"yo","eraYear"),X("y",["yy",2],0,"eraYear"),X("y",["yyy",3],0,"eraYear"),X("y",["yyyy",4],0,"eraYear"),Ae("N",d9),Ae("NN",d9),Ae("NNN",d9),Ae("NNNN",R1e),Ae("NNNNN",I1e),Ke(["N","NN","NNN","NNNN","NNNNN"],function(x,L,G,ee){var he=G._locale.erasParse(x,ee,G._strict);he?g(G).era=he:g(G).invalidEra=x}),Ae("y",Ue),Ae("yy",Ue),Ae("yyy",Ue),Ae("yyyy",Ue),Ae("yo",M1e),Ke(["y","yy","yyy","yyyy"],mt),Ke(["yo"],function(x,L,G,ee){var he;G._locale._eraYearOrdinalRegex&&(he=x.match(G._locale._eraYearOrdinalRegex)),G._locale.eraYearOrdinalParse?L[mt]=G._locale.eraYearOrdinalParse(x,he):L[mt]=parseInt(x,10)});function p1e(x,L){var G,ee,he,Ie=this._eras||xc("en")._eras;for(G=0,ee=Ie.length;G=0)return Ie[ee]}function b1e(x,L){var G=x.since<=x.until?1:-1;return L===void 0?n(x.since).year():n(x.since).year()+(L-x.offset)*G}function S1e(){var x,L,G,ee=this.localeData().eras();for(x=0,L=ee.length;xIe&&(L=Ie),D1e.call(this,x,L,G,ee,he))}function D1e(x,L,G,ee,he){var Ie=yr(x,L,G,ee,he),Je=Rt(Ie.year,0,Ie.dayOfYear);return this.year(Je.getUTCFullYear()),this.month(Je.getUTCMonth()),this.date(Je.getUTCDate()),this}X("Q",0,"Qo","quarter"),Ae("Q",Ee),Ke("Q",function(x,L){L[Ot]=(vt(x)-1)*3});function L1e(x){return x==null?Math.ceil((this.month()+1)/3):this.month((x-1)*3+this.month()%3)}X("D",["DD",2],"Do","date"),Ae("D",Re,et),Ae("DD",Re,Oe),Ae("Do",function(x,L){return x?L._dayOfMonthOrdinalParse||L._ordinalParse:L._dayOfMonthOrdinalParseLenient}),Ke(["D","DD"],Gt),Ke("Do",function(x,L){L[Gt]=vt(x.match(Re)[0])});var zP=Ge("Date",!0);X("DDD",["DDDD",3],"DDDo","dayOfYear"),Ae("DDD",je),Ae("DDDD",We),Ke(["DDD","DDDD"],function(x,L,G){G._dayOfYear=vt(x)});function A1e(x){var L=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return x==null?L:this.add(x-L,"d")}X("m",["mm",2],0,"minute"),Ae("m",Re,Ze),Ae("mm",Re,Oe),Ke(["m","mm"],Vt);var N1e=Ge("Minutes",!1);X("s",["ss",2],0,"second"),Ae("s",Re,Ze),Ae("ss",Re,Oe),Ke(["s","ss"],Xt);var H1e=Ge("Seconds",!1);X("S",0,0,function(){return~~(this.millisecond()/100)}),X(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),X(0,["SSS",3],0,"millisecond"),X(0,["SSSS",4],0,function(){return this.millisecond()*10}),X(0,["SSSSS",5],0,function(){return this.millisecond()*100}),X(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),X(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),X(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),X(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ae("S",je,Ee),Ae("SS",je,Oe),Ae("SSS",je,We);var Rs,FP;for(Rs="SSSS";Rs.length<=9;Rs+="S")Ae(Rs,Ue);function B1e(x,L){L[ce]=vt(("0."+x)*1e3)}for(Rs="S";Rs.length<=9;Rs+="S")Ke(Rs,B1e);FP=Ge("Milliseconds",!1),X("z",0,0,"zoneAbbr"),X("zz",0,0,"zoneName");function V1e(){return this._isUTC?"UTC":""}function j1e(){return this._isUTC?"Coordinated Universal Time":""}var bt=E.prototype;bt.add=kue,bt.calendar=Vue,bt.clone=jue,bt.diff=Xue,bt.endOf=i1e,bt.format=e1e,bt.from=t1e,bt.fromNow=r1e,bt.to=n1e,bt.toNow=a1e,bt.get=Fe,bt.invalidAt=m1e,bt.isAfter=Wue,bt.isBefore=Uue,bt.isBetween=Kue,bt.isSame=Yue,bt.isSameOrAfter=Gue,bt.isSameOrBefore=que,bt.isValid=v1e,bt.lang=RP,bt.locale=EP,bt.localeData=IP,bt.max=vue,bt.min=fue,bt.parsingFlags=h1e,bt.set=Ye,bt.startOf=o1e,bt.subtract=Due,bt.toArray=u1e,bt.toObject=d1e,bt.toDate=s1e,bt.toISOString=Que,bt.inspect=Jue,typeof Symbol<"u"&&Symbol.for!=null&&(bt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),bt.toJSON=f1e,bt.toString=Zue,bt.unix=c1e,bt.valueOf=l1e,bt.creationData=g1e,bt.eraName=S1e,bt.eraNarrow=$1e,bt.eraAbbr=w1e,bt.eraYear=C1e,bt.year=_t,bt.isLeapYear=Le,bt.weekYear=T1e,bt.isoWeekYear=P1e,bt.quarter=bt.quarters=L1e,bt.month=An,bt.daysInMonth=Za,bt.week=bt.weeks=Yt,bt.isoWeek=bt.isoWeeks=gr,bt.weeksInYear=F1e,bt.weeksInWeekYear=k1e,bt.isoWeeksInYear=_1e,bt.isoWeeksInISOWeekYear=z1e,bt.date=zP,bt.day=bt.days=Nr,bt.weekday=xs,bt.isoWeekday=Os,bt.dayOfYear=A1e,bt.hour=bt.hours=Hr,bt.minute=bt.minutes=N1e,bt.second=bt.seconds=H1e,bt.millisecond=bt.milliseconds=FP,bt.utcOffset=wue,bt.utc=xue,bt.local=Oue,bt.parseZone=Eue,bt.hasAlignedHourOffset=Rue,bt.isDST=Iue,bt.isLocal=Tue,bt.isUtcOffset=Pue,bt.isUtc=$P,bt.isUTC=$P,bt.zoneAbbr=V1e,bt.zoneName=j1e,bt.dates=I("dates accessor is deprecated. Use date instead.",zP),bt.months=I("months accessor is deprecated. Use month instead",An),bt.years=I("years accessor is deprecated. Use year instead",_t),bt.zone=I("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Cue),bt.isDSTShifted=I("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Mue);function W1e(x){return Cn(x*1e3)}function U1e(){return Cn.apply(null,arguments).parseZone()}function kP(x){return x}var Qr=T.prototype;Qr.calendar=A,Qr.longDateFormat=ie,Qr.invalidDate=se,Qr.ordinal=le,Qr.preparse=kP,Qr.postformat=kP,Qr.relativeTime=ge,Qr.pastFuture=$e,Qr.set=H,Qr.eras=p1e,Qr.erasParse=y1e,Qr.erasConvertYear=b1e,Qr.erasAbbrRegex=O1e,Qr.erasNameRegex=x1e,Qr.erasNarrowRegex=E1e,Qr.months=_r,Qr.monthsShort=Zr,Qr.monthsParse=da,Qr.monthsRegex=Dt,Qr.monthsShortRegex=Ir,Qr.week=Zn,Qr.firstDayOfYear=sr,Qr.firstDayOfWeek=Qn,Qr.weekdays=Cs,Qr.weekdaysMin=Jt,Qr.weekdaysShort=jt,Qr.weekdaysParse=$n,Qr.weekdaysRegex=ho,Qr.weekdaysShortRegex=re,Qr.weekdaysMinRegex=ye,Qr.isPM=zr,Qr.meridiem=wn;function s8(x,L,G,ee){var he=xc(),Ie=m().set(ee,L);return he[G](Ie,x)}function DP(x,L,G){if(d(x)&&(L=x,x=void 0),x=x||"",L!=null)return s8(x,L,G,"month");var ee,he=[];for(ee=0;ee<12;ee++)he[ee]=s8(x,ee,G,"month");return he}function v9(x,L,G,ee){typeof x=="boolean"?(d(L)&&(G=L,L=void 0),L=L||""):(L=x,G=L,x=!1,d(L)&&(G=L,L=void 0),L=L||"");var he=xc(),Ie=x?he._week.dow:0,Je,Wt=[];if(G!=null)return s8(L,(G+Ie)%7,ee,"day");for(Je=0;Je<7;Je++)Wt[Je]=s8(L,(Je+Ie)%7,ee,"day");return Wt}function K1e(x,L){return DP(x,L,"months")}function Y1e(x,L){return DP(x,L,"monthsShort")}function G1e(x,L,G){return v9(x,L,G,"weekdays")}function q1e(x,L,G){return v9(x,L,G,"weekdaysShort")}function X1e(x,L,G){return v9(x,L,G,"weekdaysMin")}Es("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(x){var L=x%10,G=vt(x%100/10)===1?"th":L===1?"st":L===2?"nd":L===3?"rd":"th";return x+G}}),n.lang=I("moment.lang is deprecated. Use moment.locale instead.",Es),n.langData=I("moment.langData is deprecated. Use moment.localeData instead.",xc);var Oc=Math.abs;function Z1e(){var x=this._data;return this._milliseconds=Oc(this._milliseconds),this._days=Oc(this._days),this._months=Oc(this._months),x.milliseconds=Oc(x.milliseconds),x.seconds=Oc(x.seconds),x.minutes=Oc(x.minutes),x.hours=Oc(x.hours),x.months=Oc(x.months),x.years=Oc(x.years),this}function LP(x,L,G,ee){var he=Ui(L,G);return x._milliseconds+=ee*he._milliseconds,x._days+=ee*he._days,x._months+=ee*he._months,x._bubble()}function Q1e(x,L){return LP(this,x,L,1)}function J1e(x,L){return LP(this,x,L,-1)}function AP(x){return x<0?Math.floor(x):Math.ceil(x)}function ede(){var x=this._milliseconds,L=this._days,G=this._months,ee=this._data,he,Ie,Je,Wt,pr;return x>=0&&L>=0&&G>=0||x<=0&&L<=0&&G<=0||(x+=AP(h9(G)+L)*864e5,L=0,G=0),ee.milliseconds=x%1e3,he=ot(x/1e3),ee.seconds=he%60,Ie=ot(he/60),ee.minutes=Ie%60,Je=ot(Ie/60),ee.hours=Je%24,L+=ot(Je/24),pr=ot(NP(L)),G+=pr,L-=AP(h9(pr)),Wt=ot(G/12),G%=12,ee.days=L,ee.months=G,ee.years=Wt,this}function NP(x){return x*4800/146097}function h9(x){return x*146097/4800}function tde(x){if(!this.isValid())return NaN;var L,G,ee=this._milliseconds;if(x=Se(x),x==="month"||x==="quarter"||x==="year")switch(L=this._days+ee/864e5,G=this._months+NP(L),x){case"month":return G;case"quarter":return G/3;case"year":return G/12}else switch(L=this._days+Math.round(h9(this._months)),x){case"week":return L/7+ee/6048e5;case"day":return L+ee/864e5;case"hour":return L*24+ee/36e5;case"minute":return L*1440+ee/6e4;case"second":return L*86400+ee/1e3;case"millisecond":return Math.floor(L*864e5)+ee;default:throw new Error("Unknown unit "+x)}}function Ec(x){return function(){return this.as(x)}}var HP=Ec("ms"),rde=Ec("s"),nde=Ec("m"),ade=Ec("h"),ode=Ec("d"),ide=Ec("w"),lde=Ec("M"),cde=Ec("Q"),sde=Ec("y"),ude=HP;function dde(){return Ui(this)}function fde(x){return x=Se(x),this.isValid()?this[x+"s"]():NaN}function ku(x){return function(){return this.isValid()?this._data[x]:NaN}}var vde=ku("milliseconds"),hde=ku("seconds"),mde=ku("minutes"),gde=ku("hours"),pde=ku("days"),yde=ku("months"),bde=ku("years");function Sde(){return ot(this.days()/7)}var Rc=Math.round,od={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $de(x,L,G,ee,he){return he.relativeTime(L||1,!!G,x,ee)}function wde(x,L,G,ee){var he=Ui(x).abs(),Ie=Rc(he.as("s")),Je=Rc(he.as("m")),Wt=Rc(he.as("h")),pr=Rc(he.as("d")),Vr=Rc(he.as("M")),go=Rc(he.as("w")),Ic=Rc(he.as("y")),Is=Ie<=G.ss&&["s",Ie]||Ie0,Is[4]=ee,$de.apply(null,Is)}function Cde(x){return x===void 0?Rc:typeof x=="function"?(Rc=x,!0):!1}function xde(x,L){return od[x]===void 0?!1:L===void 0?od[x]:(od[x]=L,x==="s"&&(od.ss=L-1),!0)}function Ode(x,L){if(!this.isValid())return this.localeData().invalidDate();var G=!1,ee=od,he,Ie;return typeof x=="object"&&(L=x,x=!1),typeof x=="boolean"&&(G=x),typeof L=="object"&&(ee=Object.assign({},od,L),L.s!=null&&L.ss==null&&(ee.ss=L.s-1)),he=this.localeData(),Ie=wde(this,!G,ee,he),G&&(Ie=he.pastFuture(+this,Ie)),he.postformat(Ie)}var m9=Math.abs;function id(x){return(x>0)-(x<0)||+x}function u8(){if(!this.isValid())return this.localeData().invalidDate();var x=m9(this._milliseconds)/1e3,L=m9(this._days),G=m9(this._months),ee,he,Ie,Je,Wt=this.asSeconds(),pr,Vr,go,Ic;return Wt?(ee=ot(x/60),he=ot(ee/60),x%=60,ee%=60,Ie=ot(G/12),G%=12,Je=x?x.toFixed(3).replace(/\.?0+$/,""):"",pr=Wt<0?"-":"",Vr=id(this._months)!==id(Wt)?"-":"",go=id(this._days)!==id(Wt)?"-":"",Ic=id(this._milliseconds)!==id(Wt)?"-":"",pr+"P"+(Ie?Vr+Ie+"Y":"")+(G?Vr+G+"M":"")+(L?go+L+"D":"")+(he||ee||x?"T":"")+(he?Ic+he+"H":"")+(ee?Ic+ee+"M":"")+(x?Ic+Je+"S":"")):"P0D"}var Ur=n8.prototype;Ur.isValid=yue,Ur.abs=Z1e,Ur.add=Q1e,Ur.subtract=J1e,Ur.as=tde,Ur.asMilliseconds=HP,Ur.asSeconds=rde,Ur.asMinutes=nde,Ur.asHours=ade,Ur.asDays=ode,Ur.asWeeks=ide,Ur.asMonths=lde,Ur.asQuarters=cde,Ur.asYears=sde,Ur.valueOf=ude,Ur._bubble=ede,Ur.clone=dde,Ur.get=fde,Ur.milliseconds=vde,Ur.seconds=hde,Ur.minutes=mde,Ur.hours=gde,Ur.days=pde,Ur.weeks=Sde,Ur.months=yde,Ur.years=bde,Ur.humanize=Ode,Ur.toISOString=u8,Ur.toString=u8,Ur.toJSON=u8,Ur.locale=EP,Ur.localeData=IP,Ur.toIsoString=I("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",u8),Ur.lang=RP,X("X",0,0,"unix"),X("x",0,0,"valueOf"),Ae("x",He),Ae("X",ut),Ke("X",function(x,L,G){G._d=new Date(parseFloat(x)*1e3)}),Ke("x",function(x,L,G){G._d=new Date(vt(x))});//! moment.js +return n.version="2.30.1",a(Cn),n.fn=bt,n.min=hue,n.max=mue,n.now=gue,n.utc=m,n.unix=W1e,n.months=K1e,n.isDate=f,n.locale=Es,n.invalid=S,n.duration=Ui,n.isMoment=O,n.weekdays=G1e,n.parseZone=U1e,n.localeData=xc,n.isDuration=a8,n.monthsShort=Y1e,n.weekdaysMin=X1e,n.defineLocale=r9,n.updateLocale=Use,n.locales=Kse,n.weekdaysShort=q1e,n.normalizeUnits=Se,n.relativeTimeRounding=Cde,n.relativeTimeThreshold=xde,n.calendarFormat=Bue,n.prototype=bt,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})}(v$)),v$.exports}(function(e,t){(function(r,n){n(typeof Hse=="function"?JJr():r.moment)})(an,function(r){//! moment.js locale configuration +var n=r.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(a,o){return a===12&&(a=0),o==="凌晨"||o==="早上"||o==="上午"?a:o==="下午"||o==="晚上"?a+12:a>=11?a:a+12},meridiem:function(a,o,l){var c=a*100+o;return c<600?"凌晨":c<900?"早上":c<1130?"上午":c<1230?"中午":c<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(a){return a.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(a){return this.week()!==a.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(a,o){switch(o){case"d":case"D":case"DDD":return a+"日";case"M":return a+"月";case"w":case"W":return a+"周";default:return a}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return n})})();const een=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?W.useLayoutEffect:W.useEffect,ten=e=>{var u;const t=F0(),[r,n]=W.useState(t),[a,o]=W.useState(()=>sC(r,!0)),l=d=>{var f;Lt!=null&&Lt.locale&&Lt.locale(((f=i1[d])==null?void 0:f.momentLocale)||"en"),n(d),o(sC(d))};een(()=>(iC.on(lC,l),()=>{iC.off(lC,l)}),[]);const c={},s=FWe();return q.jsx(er,{direction:s,locale:((u=i1[r])==null?void 0:u.antd)||c,children:q.jsx(qQ,{value:a,children:e.children})})};function ren(e){return W.createElement(ten,null,e)}const nen=Object.freeze(Object.defineProperty({__proto__:null,i18nProvider:ren},Symbol.toStringTag,{value:"Module"})),t9={gitDictApi:"/admin/system.dictItem/dictList",getSettingGroupApi:"/admin/system.setting/querySettingGroup",addGroupApi:"/admin/system.setting/addGroup",saveSettingApi:"/admin/system.setting/saveSetting"},aen=()=>ua(t9.gitDictApi,{method:"get"}),Zen=()=>ua(t9.getSettingGroupApi,{method:"get"}),Qen=e=>ua(t9.addGroupApi,{method:"post",data:e}),Jen=e=>ua(t9.saveSettingApi,{method:"post",data:e}),oen=()=>{const e=c=>{let s=new Map;return c.forEach(u=>{s.set(u.code,u.dictItems.map(d=>Object.assign(d,{type:u.type})))}),s},t=c=>{let s=new Map;return c.forEach(u=>{let d={};u.dictItems.forEach(f=>{d[f.value]=f.label}),s.set(u.code,d)}),s},{data:r,refresh:n,refreshAsync:a}=oqr(async()=>{let c=localStorage.getItem("x-token"),s=[];return c&&(localStorage.getItem("dictMap"),s=(await aen()).data,localStorage.setItem("dictMap",JSON.stringify(s))),{dictJson:e(s),dictEnum:t(s)}});return{refreshDict:()=>{localStorage.removeItem("dictMap"),n()},getDictionaryData:async c=>{if(!r){let s=await a();return s.dictJson.has(c)?s.dictJson.get(c):[]}return r.dictJson.has(c)?r.dictJson.get(c):[]},dictionaryCache:r?r.dictJson:{},dictEnum:r?r.dictEnum:new Map}},Bse=()=>{const[e]=i.useState([{Date:"2010-01",scales:1998},{Date:"2010-02",scales:1850},{Date:"2010-03",scales:1720},{Date:"2010-04",scales:1818},{Date:"2010-05",scales:1920},{Date:"2010-06",scales:1802},{Date:"2010-07",scales:1945},{Date:"2010-08",scales:1856},{Date:"2010-09",scales:2107},{Date:"2010-10",scales:2140},{Date:"2010-11",scales:2311},{Date:"2010-12",scales:1972},{Date:"2011-01",scales:1760},{Date:"2011-02",scales:1824},{Date:"2011-03",scales:1801},{Date:"2011-04",scales:2001},{Date:"2011-05",scales:1640},{Date:"2011-06",scales:1502},{Date:"2011-07",scales:1621},{Date:"2011-08",scales:1480},{Date:"2011-09",scales:1549},{Date:"2011-10",scales:1390},{Date:"2011-11",scales:1325},{Date:"2011-12",scales:1250},{Date:"2012-01",scales:1394},{Date:"2012-02",scales:1406},{Date:"2012-03",scales:1578},{Date:"2012-04",scales:1465},{Date:"2012-05",scales:1689},{Date:"2012-06",scales:1755},{Date:"2012-07",scales:1495},{Date:"2012-08",scales:1508},{Date:"2012-09",scales:1433},{Date:"2012-10",scales:1344},{Date:"2012-11",scales:1201},{Date:"2012-12",scales:1065},{Date:"2013-01",scales:1255},{Date:"2013-02",scales:1429},{Date:"2013-03",scales:1398},{Date:"2013-04",scales:1678},{Date:"2013-05",scales:1524},{Date:"2013-06",scales:1688},{Date:"2013-07",scales:1500},{Date:"2013-08",scales:1670},{Date:"2013-09",scales:1734},{Date:"2013-10",scales:1699},{Date:"2013-11",scales:1508},{Date:"2013-12",scales:1680},{Date:"2014-01",scales:1750},{Date:"2014-02",scales:1602},{Date:"2014-03",scales:1834},{Date:"2014-04",scales:1722},{Date:"2014-05",scales:1430},{Date:"2014-06",scales:1280},{Date:"2014-07",scales:1367},{Date:"2014-08",scales:1155},{Date:"2014-09",scales:1289},{Date:"2014-10",scales:1104},{Date:"2014-11",scales:1246},{Date:"2014-12",scales:1098},{Date:"2015-01",scales:1189},{Date:"2015-02",scales:1276},{Date:"2015-03",scales:1033},{Date:"2015-04",scales:956},{Date:"2015-05",scales:845},{Date:"2015-06",scales:1089},{Date:"2015-07",scales:944},{Date:"2015-08",scales:1043},{Date:"2015-09",scales:893},{Date:"2015-10",scales:840},{Date:"2015-11",scales:934},{Date:"2015-12",scales:810},{Date:"2016-01",scales:782},{Date:"2016-02",scales:1089},{Date:"2016-03",scales:745},{Date:"2016-04",scales:680},{Date:"2016-05",scales:802},{Date:"2016-06",scales:697},{Date:"2016-07",scales:583},{Date:"2016-08",scales:456},{Date:"2016-09",scales:524},{Date:"2016-10",scales:398},{Date:"2016-11",scales:278},{Date:"2016-12",scales:195},{Date:"2017-01",scales:145},{Date:"2017-02",scales:207}]);return i.useEffect(()=>{},[]),{data:e}},ien=Object.freeze(Object.defineProperty({__proto__:null,default:Bse},Symbol.toStringTag,{value:"Module"})),len={initialState:void 0,loading:!0,error:void 0},cen=()=>{const[e,t]=i.useState(len),r=i.useCallback(async()=>{t(a=>({...a,loading:!0,error:void 0}));try{const a=await Gce();t(o=>({...o,initialState:a,loading:!1}))}catch(a){t(o=>({...o,error:a,loading:!1}))}},[]),n=i.useCallback(async a=>{t(o=>typeof a=="function"?{...o,initialState:a(o.initialState),loading:!1}:{...o,initialState:a,loading:!1})},[]);return i.useEffect(()=>{r()},[]),{...e,refresh:r,setInitialState:n}},h$={model_1:{namespace:"dictModel",model:oen},model_2:{namespace:"backend.Dashboard.Workplace.homeModel",model:Bse},model_3:{namespace:"@@initialState",model:cen}};function sen(e){const t=W.useMemo(()=>Object.keys(h$).reduce((r,n)=>(r[h$[n].namespace]=h$[n].model,r),{}),[]);return q.jsx(ybr,{models:t,...e,children:e.children})}function uen(e,t){return q.jsx(sen,{...t,children:e})}const den=Object.freeze(Object.defineProperty({__proto__:null,dataflowProvider:uen},Symbol.toStringTag,{value:"Module"}));function fen(e){return e.default?typeof e.default=="function"?e.default():e.default:e}function ven(){return[{apply:fen(Lqr),path:void 0},{apply:Hqr,path:void 0},{apply:Uqr,path:void 0},{apply:qqr,path:void 0},{apply:Qqr,path:void 0},{apply:nen,path:void 0},{apply:den,path:void 0}]}function hen(){return["patchRoutes","patchClientRoutes","modifyContextOpts","modifyClientRenderOpts","rootContainer","innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","render","onRouteChange","antd","getInitialState","layout","locale","qiankun","request"]}let CO=null;function men(){return CO=KSr.create({plugins:ven(),validKeys:hen()}),CO}function Vse(){return CO}const gen="/",pen=!1;async function yen(){const e=men(),{routes:t,routeComponents:r}=await fVe();await e.applyPlugins({key:"patchRoutes",type:Gl.event,args:{routes:t,routeComponents:r}});const n=e.applyPlugins({key:"modifyContextOpts",type:Gl.modify,initialValue:{}}),a=n.basename||"/",o=n.historyType||"browser",l=YSr({type:o,basename:a,...n.historyOpts});return e.applyPlugins({key:"render",type:Gl.compose,initialValue(){const c={useStream:!0,routes:t,routeComponents:r,pluginManager:e,mountElementId:"root",rootElement:n.rootElement||document.getElementById("root"),publicPath:gen,runtimePublicPath:pen,history:l,historyType:o,basename:a,__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{pureApp:!1,pureHtml:!1},callback:n.callback},s=e.applyPlugins({key:"modifyClientRenderOpts",type:Gl.modify,initialValue:c});return oVe(s)}})()}yen();typeof window<"u"&&(window.g_umi={version:"4.4.5"});export{op as $,uT as A,Cl as B,er as C,NKr as D,ra as E,$r as F,M3 as G,ja as H,Voe as I,ca as J,Pn as K,pl as L,Kn as M,DV as N,w3 as O,bs as P,CM as Q,W as R,bKr as S,vi as T,f1 as U,_Cr as V,L6 as W,wp as X,A4 as Y,IM as Z,z as _,Sr as a,n9r as a$,U0 as a0,Ns as a1,Qen as a2,wW as a3,wdt as a4,mre as a5,UM as a6,A6 as a7,roe as a8,Omr as a9,oqr as aA,Gi as aB,sVe as aC,Ken as aD,Uen as aE,Zen as aF,YGe as aG,xh as aH,Jen as aI,sp as aJ,yae as aK,I1t as aL,R1 as aM,$u as aN,llt as aO,bB as aP,s1 as aQ,Lae as aR,h0 as aS,Rx as aT,I4 as aU,o6 as aV,Hor as aW,U5r as aX,Xen as aY,Gen as aZ,qen as a_,Iqr as aa,lqr as ab,PCr as ac,as as ad,Gne as ae,Rae as af,H7 as ag,fMt as ah,WM as ai,k_t as aj,sCr as ak,Kl as al,YKr as am,af as an,S6t as ao,D6r as ap,g7r as aq,joe as ar,cQt as as,uKr as at,yle as au,tbr as av,Nen as aw,_Q as ax,bVe as ay,Yen as az,i as b,WLt as b$,dg as b0,a3t as b1,Da as b2,ue as b3,BWr as b4,ll as b5,g0 as b6,AL as b7,eie as b8,Bt as b9,hs as bA,qn as bB,_f as bC,Vo as bD,en as bE,sM as bF,$Gr as bG,wGr as bH,Np as bI,ben as bJ,_h as bK,$l as bL,Pen as bM,NCr as bN,dT as bO,lt as bP,tee as bQ,vT as bR,Km as bS,Ien as bT,ka as bU,cjt as bV,GM as bW,pyr as bX,eg as bY,Noe as bZ,FLt as b_,qH as ba,br as bb,Ont as bc,Fl as bd,pu as be,Gm as bf,w4 as bg,jn as bh,vr as bi,HJe as bj,Ve as bk,uc as bl,oc as bm,ya as bn,N6 as bo,CCr as bp,CDt as bq,gs as br,an as bs,us as bt,q1 as bu,E4t as bv,X6 as bw,NWt as bx,M2 as by,j2t as bz,FC as c,see as c$,EM as c0,xB as c1,Rct as c2,sg as c3,lr as c4,mle as c5,AM as c6,Vn as c7,Xrt as c8,sa as c9,mO as cA,Ed as cB,Wen as cC,Ben as cD,al as cE,Vce as cF,aie as cG,Een as cH,Ih as cI,Qlr as cJ,Sl as cK,Kr as cL,gIt as cM,lp as cN,_a as cO,Iee as cP,Htr as cQ,wkt as cR,ser as cS,wa as cT,zCr as cU,_o as cV,rr as cW,x1 as cX,BJe as cY,ri as cZ,wen as c_,lte as ca,Vm as cb,x7 as cc,mr as cd,m7 as ce,wI as cf,eM as cg,Ren as ch,dJe as ci,mN as cj,Nee as ck,w7 as cl,Kc as cm,Ten as cn,j7 as co,ECr as cp,bp as cq,M as cr,Ne as cs,C6 as ct,bc as cu,Bp as cv,OGr as cw,WT as cx,Uce as cy,Ta as cz,fr as d,qS as d$,on as d0,Oen as d1,VJe as d2,kl as d3,cc as d4,b7 as d5,pte as d6,jo as d7,eet as d8,tet as d9,cle as dA,dle as dB,Wx as dC,V4 as dD,vg as dE,Sp as dF,VV as dG,CEr as dH,j4 as dI,UEr as dJ,Goe as dK,Fnt as dL,Tgr as dM,Ogr as dN,p$t as dO,Hoe as dP,Boe as dQ,DCr as dR,ZEr as dS,T1 as dT,hRr as dU,ple as dV,rI as dW,N5 as dX,r4 as dY,Hen as dZ,g2t as d_,yc as da,V1 as db,y7 as dc,Uee as dd,II as de,_ee as df,Met as dg,hQe as dh,Men as di,c2t as dj,wMt as dk,$a as dl,fp as dm,hr as dn,JFr as dp,jen as dq,SCr as dr,yOr as ds,ale as dt,mT as du,B4 as dv,Mxr as dw,tle as dx,pT as dy,Ux as dz,zl as e,Den as e$,JKr as e0,LXt as e1,Zl as e2,VT as e3,Hce as e4,kce as e5,uYr as e6,Uie as e7,Wie as e8,yGr as e9,y2t as eA,hot as eB,yDt as eC,y9t as eD,Vpt as eE,gee as eF,w6 as eG,Q1 as eH,J1 as eI,Sc as eJ,Vzr as eK,W_r as eL,I_r as eM,__r as eN,MVr as eO,Nle as eP,_Br as eQ,ZHr as eR,Mle as eS,Qle as eT,$T as eU,wBr as eV,LBr as eW,hce as eX,_en as eY,vce as eZ,zen as e_,QKr as ea,Ywr as eb,xV as ec,OV as ed,Uc as ee,JGt as ef,vbr as eg,w5 as eh,Sen as ei,oR as ej,vD as ek,fs as el,w1 as em,sI as en,bJ as eo,Xd as ep,xen as eq,g6 as er,aQe as es,UI as et,Yc as eu,S4 as ev,Mc as ew,zs as ex,T6 as ey,B7 as ez,pc as f,Aen as f0,Len as f1,ken as f2,Fen as f3,IJ as f4,C1 as f5,Ven as f6,oo as f7,VBe as f8,ur as g,Tn as h,Mn as i,q as j,Z as k,Ft as l,Zt as m,D9r as n,wo as o,B0 as p,Cen as q,ua as r,at as s,ac as t,fe as u,k0 as v,oe as w,qt as x,Yd as y,nc as z}; diff --git a/web/dist/assets/useLazyKVMap-d8c68a12.js b/web/dist/assets/useLazyKVMap-f8dc5f3f.js similarity index 41% rename from web/dist/assets/useLazyKVMap-d8c68a12.js rename to web/dist/assets/useLazyKVMap-f8dc5f3f.js index 336cfbe6a81d5d4eb9ff9765f91abe4976d39605..8e7004a08d240d2d0ce57aacdc2d40d8fb33a9c4 100644 --- a/web/dist/assets/useLazyKVMap-d8c68a12.js +++ b/web/dist/assets/useLazyKVMap-f8dc5f3f.js @@ -1 +1 @@ -import{r as y}from"./umi-2ee4055f.js";const g=(e,r,u)=>{const t=y.useRef({});function f(o){var c;if(!t.current||t.current.data!==e||t.current.childrenColumnName!==r||t.current.getRowKey!==u){let a=function(p){p.forEach((n,i)=>{const v=u(n,i);s.set(v,n),n&&typeof n=="object"&&r in n&&a(n[r]||[])})};const s=new Map;a(e),t.current={data:e,childrenColumnName:r,kvMap:s,getRowKey:u}}return(c=t.current.kvMap)===null||c===void 0?void 0:c.get(o)}return[f]};export{g as u}; +import{b as y}from"./umi-5f6aeac9.js";const b=(r,e,u)=>{const t=y.useRef({});function f(o){var c;if(!t.current||t.current.data!==r||t.current.childrenColumnName!==e||t.current.getRowKey!==u){let a=function(p){p.forEach((n,i)=>{const v=u(n,i);s.set(v,n),n&&typeof n=="object"&&e in n&&a(n[e]||[])})};const s=new Map;a(r),t.current={data:r,childrenColumnName:e,kvMap:s,getRowKey:u}}return(c=t.current.kvMap)===null||c===void 0?void 0:c.get(o)}return[f]};export{b as u}; diff --git a/web/dist/assets/useListAll-790074c1.js b/web/dist/assets/useListAll-790074c1.js new file mode 100644 index 0000000000000000000000000000000000000000..480107c2591af8d0256b2549698424ebc64d3f68 --- /dev/null +++ b/web/dist/assets/useListAll-790074c1.js @@ -0,0 +1 @@ +import{l as a}from"./table-0fa6c309.js";import{b as n}from"./umi-5f6aeac9.js";const u=({api:r,auto:e=!0})=>{const t=n.useRef(),s=async()=>{const i=await a(r,{pageSize:999});t.current=i.data.data};return e&&s(),{getListAll:async()=>(t.current||await s(),t.current)}};export{u}; diff --git a/web/dist/assets/userAuth-60d2e4f0.js b/web/dist/assets/userAuth-e0a25413.js similarity index 78% rename from web/dist/assets/userAuth-60d2e4f0.js rename to web/dist/assets/userAuth-e0a25413.js index bcfb5b0acd0b7bcd694bc5bd7a2bc64ef2fb075f..4ebcf07fe29c0237f6260962dd9e5551e3b282fc 100644 --- a/web/dist/assets/userAuth-60d2e4f0.js +++ b/web/dist/assets/userAuth-e0a25413.js @@ -1 +1 @@ -import{X as e}from"./umi-2ee4055f.js";const u={getRulePidApi:"/admin/user.userRule/getRulePid",setGroupRuleApi:"/admin/user.userGroup/setGroupRule"};async function s(){return e(u.getRulePidApi,{method:"get"})}async function i(t){return e(u.setGroupRuleApi,{method:"post",data:t})}export{s as g,i as s}; +import{r as e}from"./umi-5f6aeac9.js";const u={getRulePidApi:"/admin/user.userRule/getRulePid",setGroupRuleApi:"/admin/user.userGroup/setGroupRule"};async function s(){return e(u.getRulePidApi,{method:"get"})}async function i(t){return e(u.setGroupRuleApi,{method:"post",data:t})}export{s as g,i as s}; diff --git a/web/dist/assets/utils-a0a2291f.js b/web/dist/assets/utils-a0a2291f.js new file mode 100644 index 0000000000000000000000000000000000000000..d0c79c24b8b22df7d07c0a3da1fbb668da54ec39 --- /dev/null +++ b/web/dist/assets/utils-a0a2291f.js @@ -0,0 +1 @@ +function t(r){return`/api${r}`}export{t as g}; diff --git a/web/dist/index.html b/web/dist/index.html index 48be2895d5a2640f2b172245c077fb7de3b0c939..643c3931f200aa082f44321e4cb08698cfe6c4ae 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -8,8 +8,8 @@ - - + +
            diff --git a/web/package.json b/web/package.json index ce0149327049d0923dcaf17bf97de8446ba31171..9e49eddb74ad119def575f18faaebe1ed40612e6 100644 --- a/web/package.json +++ b/web/package.json @@ -9,7 +9,8 @@ "lint": "max lint --fix", "openapi": "max openapi", "setup": "max setup", - "start": "npm run dev" + "start": "concurrently \"npm:dev\" \"npm:watch:css\"", + "watch:css": "typed-scss-modules src --watch" }, "dependencies": { "@ant-design/charts": "^1.4.3", @@ -19,16 +20,27 @@ "ahooks": "^3.7.11", "antd": "^5.16.0", "antd-img-crop": "^4.21.0", + "clsx": "^2.1.1", "dayjs": "^1.11.10", - "mockjs": "^1.1.0" + "lodash-es": "^4.17.21", + "mockjs": "^1.1.0", + "vue": "^3.5.13" }, "devDependencies": { + "@types/lodash-es": "^4.17.12", "@types/mockjs": "^1.0.7", "@types/react": "^18.2.21", "@types/react-dom": "^18.2.7", + "concurrently": "^9.1.2", "eslint-plugin-import": "^2.31.0", "eslint-plugin-unused-imports": "^4.1.4", "html-webpack-plugin": "^5.6.0", - "typescript": "^5.1.6" + "less": "^4.2.2", + "less-loader": "^12.2.0", + "typed-css-modules": "^0.9.1", + "typed-scss-modules": "^8.1.1", + "typescript": "^5.1.6", + "vite-css-modules": "^1.8.4", + "vite-plugin-sass-dts": "^1.3.31" } } diff --git a/web/src/access.ts b/web/src/access.ts index 1dd70a08e70989d77381adafb482a50e158ae138..5e7d2e163f6b7b1737bc53d7e7f094262ec01019 100644 --- a/web/src/access.ts +++ b/web/src/access.ts @@ -3,16 +3,16 @@ import noAuthRouter from '@/default/noAuthRouter'; /** * @see https://umijs.org/zh-CN/plugins/plugin-access * */ -export default (initialState:initialStateType) => { - const access: string[] = [] - if(initialState && initialState.access){ - access.push(...initialState.access.map(item=>item.toLowerCase())) +export default (initialState: initialStateType) => { + const access: string[] = []; + if (initialState && initialState.access) { + access.push(...initialState.access.map((item) => item.toLowerCase())); } return { - buttonAccess: (name:string) => access.includes(name.toLowerCase()), - urlAccess: (name:string) => { - let accessName = name.slice(1).toLowerCase().replace(/\//g,'.'); - return access.includes(accessName) || noAuthRouter.includes(name) + buttonAccess: (name: string) => access.includes(name.toLowerCase()), + urlAccess: (name: string) => { + let accessName = name.slice(1).toLowerCase().replace(/\//g, '.'); + return access.includes(accessName) || noAuthRouter.includes(name); }, - } -} + }; +}; diff --git a/web/src/app.less b/web/src/app.less index 9c6c8f187bab5a93acd0a18bc0b7ffa8c3ce340b..408abaa8e9c1278909187ae6205695456a493f04 100644 --- a/web/src/app.less +++ b/web/src/app.less @@ -4,9 +4,10 @@ body, height: 100%; margin: 0; padding: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, - 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', - 'Noto Color Emoji'; + font-family: + -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', + Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', + 'Segoe UI Symbol', 'Noto Color Emoji'; } .colorWeak { @@ -22,13 +23,12 @@ body, } .ant-pro-grid-content.ant-pro-grid-content-wide, -.ant-pro-top-nav-header-wide -{ +.ant-pro-top-nav-header-wide { max-width: 1460px !important; } .ant-pro-setting-drawer-handle { - z-index: 100!important; + z-index: 100 !important; } canvas { @@ -62,7 +62,6 @@ ol { } } } - } } @@ -82,9 +81,16 @@ ol { border-radius: 4px; } - .ant-pro-grid-content .ant-pro-grid-content-wide, -.ant-pro-top-nav-header-wide -{ +.ant-pro-top-nav-header-wide { max-width: 1460px !important; } +.ant-form { + > .ant-row { + margin: 0 !important; + } +} + +.ant-pro-layout .ant-pro-layout-content { + padding-block: 0; +} \ No newline at end of file diff --git a/web/src/app.tsx b/web/src/app.tsx index 78dc9a26f825e22b7a77dea96bd2f47a8f01c0f4..d27fc714bc1273dee53ce00d77183d33e366dbdf 100644 --- a/web/src/app.tsx +++ b/web/src/app.tsx @@ -20,7 +20,7 @@ import './app.less'; filterConsoleError(); // 全局初始化状态 export async function getInitialState(): Promise { - const { location } = history; + const { location } = history as any; const data: initialStateType = defaultInitialState; let indexDate = await index(); data.webSetting = indexDate.data.web_setting; diff --git a/web/src/assets/static/logo.png b/web/src/assets/static/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..824dfc4039eadeb694199c88f9fd899592803193 Binary files /dev/null and b/web/src/assets/static/logo.png differ diff --git a/web/src/components/Footer/index.tsx b/web/src/components/Footer/index.tsx index 300d0ddb46af380b4b0362d36d394071e0d34002..0834735d4e258687a29f81c5615927ff1b762cc4 100644 --- a/web/src/components/Footer/index.tsx +++ b/web/src/components/Footer/index.tsx @@ -1,39 +1,24 @@ -import { GithubOutlined } from '@ant-design/icons'; import { DefaultFooter } from '@ant-design/pro-components'; import React from 'react'; const Footer: React.FC = () => { - const currentYear = new Date().getFullYear(); return ( <> , - href: 'https://github.com/ant-design/ant-design-pro', - blankTarget: true, - }, - { - key: 'Ant Design', - title: 'Ant Design', - href: 'https://ant.design', + key: 'Node100', + title: '岩创网络', + href: 'https://node100.com/', blankTarget: true, }, ]} /> - ); }; diff --git a/web/src/components/Layout/AvatarRender/index.tsx b/web/src/components/Layout/AvatarRender/index.tsx index 64e3ac386180baec5dbd2c724aa96d9b845ccfb0..489f34c4a2f67ef937149ff20492f614c6faac99 100644 --- a/web/src/components/Layout/AvatarRender/index.tsx +++ b/web/src/components/Layout/AvatarRender/index.tsx @@ -56,12 +56,9 @@ export default () => { ) : ( <> - - )} diff --git a/web/src/components/XinForm/UploadImgItem/index.tsx b/web/src/components/XinForm/UploadImgItem/index.tsx index f65d82303df1909a6a2a60f4f049d1fc3e90dadf..9b1179ada2e97e95117f181e2462541e460c3a9f 100644 --- a/web/src/components/XinForm/UploadImgItem/index.tsx +++ b/web/src/components/XinForm/UploadImgItem/index.tsx @@ -5,9 +5,10 @@ import { FormInstance } from 'antd/lib/form'; import React, { useEffect, useState } from 'react'; import { getUrl } from '@/services'; +import { PlusOutlined } from '@ant-design/icons'; interface PropsType { - dataIndex: string; // 值 + dataIndex: string | string[]; // 值 api: string; // 接口 form: FormInstance; // 表单 maxCount?: number; // 最大上传数量 @@ -112,7 +113,7 @@ const UploadImgItem: React.FC = (props) => { 'X-User-Token': localStorage.getItem('x-user-token')!, }} > - + Upload + 上传 )} diff --git a/web/src/components/XinTable/components/CreateForm.tsx b/web/src/components/XinTable/components/CreateForm.tsx index fbd47720cb8453af009393fbf5692c7a13625607..2cf85995924429de18ec33e4627c272ebb959d56 100644 --- a/web/src/components/XinTable/components/CreateForm.tsx +++ b/web/src/components/XinTable/components/CreateForm.tsx @@ -1,57 +1,69 @@ import { BetaSchemaForm } from '@ant-design/pro-components'; -import {Button, message} from 'antd'; -import React from 'react'; +import { Button, message } from 'antd'; import { CreateFormProps } from '../typings'; -import {addApi} from "@/services/common/table"; +import { addApi } from '@/services/common/table'; -function CreateForm(props: CreateFormProps){ - const { columns, api, tableRef, handleAdd, addBefore } = props; +function CreateForm(props: CreateFormProps) { + const { + columns, + text = '新建', + api, + tableRef, + handleAdd, + addBefore, + colProps = { + span: 12, + }, + } = props; /** * 添加节点 * @param formData */ const defaultAdd = async (formData: TableData) => { - if(handleAdd){ - return handleAdd(formData).finally(()=>{ - tableRef.current?.reloadAndRest?.() - }) - }else { - const hide = message.loading('正在添加'); - return addApi(api, Object.assign({},formData)).then(res=>{ - if (res.success) { - message.success('添加成功'); - addBefore?.() - return true - } - return false - }).finally(()=>{ - hide() - tableRef.current?.reloadAndRest?.() + if (handleAdd) { + return handleAdd(formData).finally(() => { + tableRef.current?.reload?.(); }); + } else { + const hide = message.loading('正在添加'); + return addApi(api, Object.assign({}, formData)) + .then((res) => { + if (res.success) { + message.success('添加成功'); + addBefore?.(); + return true; + } + return false; + }) + .finally(() => { + hide(); + tableRef.current?.reload?.(); + }); } }; - return ( - - rowProps={{ - gutter: [16, 16], - }} - title={'新建'} - trigger={ } - layoutType={'ModalForm'} - colProps={{ - span: 12, - }} - modalProps = {{ destroyOnClose: true }} - initialValues={{}} - grid={ true } - onFinish={ defaultAdd } - columns= { columns } - /> + + rowProps={{ + gutter: [16, 16], + }} + title={text} + trigger={} + layoutType={'ModalForm'} + colProps={colProps} + modalProps={{ destroyOnClose: true }} + initialValues={{}} + grid={true} + onFinish={defaultAdd} + columns={columns} + style={{ + maxHeight: 'calc(100vh - 250px)', + overflow: 'auto', + }} + /> ); } diff --git a/web/src/components/XinTable/components/UpdateForm.tsx b/web/src/components/XinTable/components/UpdateForm.tsx index f94d53afc6278048a1ab0fb5e1c626629410275f..d7e8e681bfe1c54c470887e3906e30dd15169606 100644 --- a/web/src/components/XinTable/components/UpdateForm.tsx +++ b/web/src/components/XinTable/components/UpdateForm.tsx @@ -1,12 +1,9 @@ -import { - BetaSchemaForm -} from '@ant-design/pro-components'; -import { message } from "antd"; +import { BetaSchemaForm } from '@ant-design/pro-components'; +import { Button, message } from 'antd'; import { UpdateFromProps } from '../typings'; -import { editApi } from "@/services/common/table"; - +import { editApi } from '@/services/common/table'; function UpdateForm(props: UpdateFromProps) { const { columns, values, id, api, tableRef, handleUpdate } = props; @@ -18,26 +15,28 @@ function UpdateForm(props: UpdateFromProps) { const defaultUpdate = async (fields: TableData) => { if (handleUpdate) { return handleUpdate(Object.assign({ id }, fields)).finally(() => { - tableRef.current?.reloadAndRest?.() - }) + tableRef.current?.reloadAndRest?.(); + }); } else { const hide = message.loading('正在更新'); - return editApi(api, Object.assign({ id }, fields)).then(res => { - if (res.success) { - message.success('更新成功!'); - return true - } - return false - }).finally(() => { - tableRef.current?.reloadAndRest?.() - hide() - }) + return editApi(api, Object.assign({ id }, fields)) + .then((res) => { + if (res.success) { + message.success('更新成功!'); + return true; + } + return false; + }) + .finally(() => { + tableRef.current?.reloadAndRest?.(); + hide(); + }); } - } + }; return ( - trigger={
            编辑} + trigger={} title={'编辑'} layoutType={'ModalForm'} rowProps={{ @@ -50,7 +49,11 @@ function UpdateForm(props: UpdateFromProps) { initialValues={values} onFinish={defaultUpdate} columns={columns} + style={{ + maxHeight: 'calc(100vh - 250px)', + overflowY: 'auto', + }} /> - ) + ); } export default UpdateForm; diff --git a/web/src/components/XinTable/index.scss b/web/src/components/XinTable/index.scss new file mode 100644 index 0000000000000000000000000000000000000000..817fef0d1af4c11fb7ec8429814a14404f667d01 --- /dev/null +++ b/web/src/components/XinTable/index.scss @@ -0,0 +1,29 @@ +.xin-table { + .ant-table-content { + overflow: auto !important; + max-height: calc(100vh - 130px - 106px) !important; + } + .ant-table-thead { + position: sticky; + top: 0; + background: #fafafa; + z-index: 10; + } + .ant-table-tbody { + .ant-table-cell { + padding: 2px 8px!important; + } + } + .ant-pro-table-search { + > .ant-pro-query-filter { + padding: 8px; + .ant-pro-query-filter-row { + row-gap: 8px; + } + .ant-pro-query-filter-collapse-button { + white-space: nowrap; + } + } + } +} + diff --git a/web/src/components/XinTable/index.tsx b/web/src/components/XinTable/index.tsx index 50d0a38e434763bb29f50e852b2a04fbacd24e5c..2685fb1f6061e6049172b6a381c146162ab890aa 100644 --- a/web/src/components/XinTable/index.tsx +++ b/web/src/components/XinTable/index.tsx @@ -1,36 +1,46 @@ import { ActionType, FooterToolbar, - ProTable + ProTable, + ProTableProps, } from '@ant-design/pro-components'; -import { ProTableProps } from "@ant-design/pro-components"; -import {Access, useAccess} from "@umijs/max"; -import { Button, message, Divider, Watermark, Popconfirm, Space } from 'antd'; +import { Access, useAccess } from '@umijs/max'; +import { Button, Divider, message, Popconfirm, Space, Watermark } from 'antd'; import React, { ReactNode, useImperativeHandle, useRef, useState } from 'react'; import CreateForm from './components/CreateForm'; import UpdateForm from './components/UpdateForm'; import { ProFormColumnsAndProColumns, TableProps } from './typings'; -import { listApi, deleteApi } from '@/services/common/table'; +import { deleteApi, listApi } from '@/services/common/table'; +import clsx from 'clsx'; +import './index.scss'; - -function XinTable>(props: TableProps) { +function XinTable>( + props: TableProps, +) { const { + className, tableApi, + apiMap, + defaultParamsMap, columns, addShow, + addText, + addApi, deleteShow, - editShow , + editShow, searchConfig, rowSelectionShow, operateRender, + operateWidth, operateShow, handleUpdate, handleAdd, addBefore, accessName, - footerBarButton + footerBarButton, + colProps, } = props; /** @@ -58,7 +68,7 @@ function XinTable>(props: TableProps actionRef.current) + useImperativeHandle(props.actionRef, () => actionRef.current); /** * 递归收集所有 Key @@ -80,21 +90,25 @@ function XinTable>(props: TableProps
            { - const hide = message.loading('正在删除'); - if (!selectedRows || deleteShow === false){ + if ( + !selectedRows // || deleteShow === false + ) { message.warning('请选择需要删除的节点'); - return + return; } - let ids = selectedRows.map(x => x.id) - deleteApi(tableApi+'/delete', { ids: ids.join() || '' }).then( res => { - if (res.success) { - message.success(res.msg); - actionRef.current?.reloadAndRest?.(); - }else { - message.warning(res.msg); - } - }).finally(() => hide()) - } + const hide = message.loading('正在删除'); + let ids = selectedRows.map((x) => x.id); + deleteApi(tableApi + '/delete', { ids: ids.join() || '' }) + .then((res) => { + if (res.success) { + message.success(`删除成功`); + actionRef.current?.reloadAndRest?.(); + } else { + message.warning(res.msg); + } + }) + .finally(() => hide()); + }; /** * 删除按钮 @@ -102,19 +116,27 @@ function XinTable>(props: TableProps
            { return ( - + { handleRemove([record]) }} + onConfirm={() => { + handleRemove([record]); + }} okText="确认" cancelText="取消" > - 删除 + - ) - } + ); + }; /** * 编辑按钮 @@ -122,44 +144,56 @@ function XinTable>(props: TableProps
            { return ( - + values={record} columns={columns} id={record.id} - api={tableApi+'/edit'} + api={tableApi + '/edit'} tableRef={actionRef} handleUpdate={handleUpdate} /> - ) - } + ); + }; /** * 新增按钮 */ const addButton = () => { return ( - + - columns = { columns } - api={tableApi+'/add'} + columns={columns} + api={addApi || `${tableApi}/add`} + text={addText} tableRef={actionRef} handleAdd={handleAdd} addBefore={addBefore} + colProps={colProps} /> - ) - } + ); + }; /** * 默认操作栏按钮 */ const defaultButton = () => { - let operate: ProFormColumnsAndProColumns = { + let operate: ProFormColumnsAndProColumns = { title: '操作', dataIndex: 'option', valueType: 'option', + fixed: 'right', + width: operateWidth, render: (_, record) => ( } size={0}> {editShow !== false && editButton(record)} @@ -167,102 +201,125 @@ function XinTable>(props: TableProps
            ), - } - return operate - } + }; + return operate; + }; /** * 工具栏默认渲染 */ - const defaultToolBar: ProTableProps['toolBarRender'] = (action,rows) => { - let bar: ReactNode[] = [addShow !== false ? addButton() : '',]; - if(allKeys.length && allKeys.length > dataSource.length) { - bar.push(( + const defaultToolBar: ProTableProps['toolBarRender'] = ( + action, + rows, + ) => { + let bar: ReactNode[] = [addShow !== false ? addButton() : '']; + if (allKeys.length && allKeys.length > dataSource.length) { + bar.push( <> - - - - )) + + + , + ); } - if(props.toolBarRender) { - bar.push(props.toolBarRender(action,rows)) + if (props.toolBarRender) { + bar.push(props.toolBarRender(action, rows)); } - return bar - } + return bar; + }; /** * 多选底部操作栏 */ const footerBar = () => { - return selectedRowsState?.length > 0 && ( - - 已选择{' '} - {selectedRowsState.length}{' '} - 项   - - } - > - - - {footerBarButton} - - - ) - } + { + await handleRemove(selectedRowsState); + setSelectedRows([]); + actionRef.current?.reloadAndRest?.(); + }} + > + + + {footerBarButton} + + + ) + ); + }; /** * 表格默认属性 */ const defaultProTableConfig: ProTableProps = { - headerTitle: "查询表格", - rowKey: "id", + headerTitle: '查询表格', + rowKey: 'id', search: searchConfig, expandable: { expandedRowKeys: expandedRowKeys, - onExpandedRowsChange: (expandedKeys) => { setExpandedRowKeys([...expandedKeys]) } + onExpandedRowsChange: (expandedKeys) => { + setExpandedRowKeys([...expandedKeys]); + }, }, request: async (params, sorter, filter) => { - const { data, success } = await listApi(tableApi+'/list', { - ...params, - sorter, - filter, - }); + const { data, success } = await listApi( + apiMap?.list ?? `${tableApi}/list`, + { + ...defaultParamsMap?.list, + ...params, + sorter, + filter, + }, + ); setDataSource(data.data); setAllKeys(collectKeys(data.data)); return { data: data?.data || [], success, - total: data?.total + total: data?.total, }; }, - rowSelection: rowSelectionShow !== false ? { onChange: (_, selectedRows) => setSelectedRows(selectedRows) } : undefined, - tableStyle: {minHeight: 500}, - - } + rowSelection: + rowSelectionShow !== false + ? { onChange: (_, selectedRows) => setSelectedRows(selectedRows) } + : undefined, + tableStyle: { minHeight: 500 }, + }; return ( - { ...Object.assign(defaultProTableConfig, props) } - columns={operateShow!==false?[...columns,defaultButton()]:columns} + scroll={{ x: 'max-content' }} + {...Object.assign(defaultProTableConfig, props)} + columns={ + operateShow !== false ? [...columns, defaultButton()] : columns + } toolBarRender={defaultToolBar} cardBordered actionRef={actionRef} + search={{ + defaultCollapsed: false, + defaultFormItemsNumber: 6, + }} + className={clsx('xin-table', className)} + size="small" /> {footerBar()} diff --git a/web/src/components/XinTable/typings.d.ts b/web/src/components/XinTable/typings.d.ts index 5e6b3eac063e93810f540219c3c10a284cdde38c..ccc834f49448e82862ec73e62af81f29af409ccc 100644 --- a/web/src/components/XinTable/typings.d.ts +++ b/web/src/components/XinTable/typings.d.ts @@ -1,18 +1,28 @@ import { ActionType, BaseQueryFilterProps, - ProColumns, ProFormColumnsType, ProTableProps, + ProColumns, + ProFormColumnsType, + ProTableProps, } from '@ant-design/pro-components'; -import {react} from "@babel/types"; +import { react } from '@babel/types'; +import { ColProps } from 'antd'; +import { AnyObject } from 'antd/es/_util/type'; -type ProFormColumnsAndProColumns = ProFormColumnsType & - ProColumns; +type ProFormColumnsAndProColumns = ProFormColumnsType & ProColumns; export type TableProps = { /** * Api 配置 */ + className?: string; tableApi: string; + apiMap?: { + list?: string; + }; + defaultParamsMap?: { + list?: AnyObject; + }; /** * 表头配置 */ @@ -21,6 +31,9 @@ export type TableProps = { * 是否显示新建 */ addShow?: boolean; + addText?: string; + addApi?: string; + colProps?: ColProps; /** * 是否显示搜索 */ @@ -42,6 +55,7 @@ export type TableProps = { * 自定义操作栏 * @param record */ + operateWidth?: number | string; operateRender?: (record: TableData) => JSX.Element; /** * 查询表单配置 参考 ProTable 配置 @@ -52,25 +66,26 @@ export type TableProps = { /** * 自定义更新提交事件 */ - handleUpdate?: (formData:TableData) => Promise + handleUpdate?: (formData: TableData) => Promise; /** * 自定义新建提交事件 */ - handleAdd?: (formData:TableData) => Promise + handleAdd?: (formData: TableData) => Promise; /** * 添加成功事件,重写 handleAdd 此功能失效 */ - addBefore?: () => void + addBefore?: () => void; /** * access 权限前缀 */ - accessName?: string + accessName?: string; /** * 底部按钮 */ - footerBarButton?: React.ReactNode - actionRef?: React.MutableRefObject + footerBarButton?: React.ReactNode; + actionRef?: React.MutableRefObject; + pagination?: ProTableProps['pagination']; } & ProTableProps; /** @@ -79,6 +94,7 @@ export type TableProps = { export interface CreateFormProps { columns: ProFormColumnsAndProColumns[]; api: string; + text?: string; /** * 表格实例 */ @@ -86,11 +102,12 @@ export interface CreateFormProps { /** * 自定义新建提交事件 */ - handleAdd?: (formData:T) => Promise + handleAdd?: (formData: T) => Promise; /** * 添加成功事件,重写 handleAdd 此功能失效 */ - addBefore?: () => void + addBefore?: () => void; + colProps?: ColProps; } /** @@ -100,7 +117,7 @@ export interface UpdateFromProps { /** * 编辑表头 */ - columns: ProFormColumnsAndProColumns[]; // 表头 + columns: ProFormColumnsAndProColumns[]; // 表头 /** * 编辑数据 */ @@ -120,5 +137,5 @@ export interface UpdateFromProps { /** * 自定义编辑事件 */ - handleUpdate?: (formData:T) => Promise + handleUpdate?: (formData: T) => Promise; } diff --git a/web/src/components/XinTabs/index.tsx b/web/src/components/XinTabs/index.tsx index af8a5a772e6088cb604eba3d4952999bc575ace7..142d1aef50353de11396dbd369ffeac9fcb0b8c3 100644 --- a/web/src/components/XinTabs/index.tsx +++ b/web/src/components/XinTabs/index.tsx @@ -40,7 +40,7 @@ const XinTabs = (props: { children: React.ReactNode }) => { { key: location.pathname, label: menuDataItem.locale ? ( - + ) : ( menuDataItem.name ), diff --git a/web/src/locales/zh-CN/menu.ts b/web/src/locales/zh-CN/menu.ts index 303ae80f1bb52c6c0af1dd92e1975a05fa11d84a..062acb9ec6f5050a9f527e2848da1606f5382799 100644 --- a/web/src/locales/zh-CN/menu.ts +++ b/web/src/locales/zh-CN/menu.ts @@ -4,39 +4,39 @@ export default { 'menu.dashboard.analysis': '分析页', 'menu.dashboard.monitor': '监控页', 'menu.dashboard.workplace': '工作台', - 'menu.components': '示例组件', - 'menu.components.descriptions': '定义列表', - 'menu.components.list': '高级列表', - 'menu.components.checkcard': '单选卡片', - 'menu.components.form': '表单示例', - 'menu.components.table': '高级表格', - 'menu.components.iconForm': '图标选择', - 'menu.user': '会员管理', - 'menu.user.list': '会员列表', - 'menu.user.group': '会员分组', - 'menu.user.rule': '权限管理', - 'menu.user.moneyLog': '余额记录', - 'menu.admin': '管理员', - 'menu.admin.list': '管理员列表', - 'menu.admin.group': '管理员分组', - 'menu.admin.rule': '菜单权限管理', - 'menu.system': '系统管理', - 'menu.system.dict': '字典管理', - 'menu.system.setting': '系统设置', - 'menu.system.info': '系统信息', - 'menu.online': '在线开发', - 'menu.online.table': '表格开发', - 'menu.index': '首页', - 'menu.git': '代码仓库', - 'menu.github': 'Github', - 'menu.gitee': 'Gitee', - 'menu.users': '会员中心', - 'menu.personal': '个人中心', - 'menu.userSetting': '账户设置', - 'menu.setPassword': '修改密码', - 'menu.log': '资产记录', - 'menu.log.moneyLog': '余额记录', - 'menu.File': '文件管理', - 'menu.testTable': '测试表', - 'menu.system.monitor': '系统监控' + // 'menu.components': '示例组件', + // 'menu.components.descriptions': '定义列表', + // 'menu.components.list': '高级列表', + // 'menu.components.checkcard': '单选卡片', + // 'menu.components.form': '表单示例', + // 'menu.components.table': '高级表格', + // 'menu.components.iconForm': '图标选择', + // 'menu.user': '用户管理', + // 'menu.user.list': '用户列表', + // 'menu.user.group': '用户分组', + // 'menu.user.rule': '权限管理', + // 'menu.user.moneyLog': '余额记录', + // 'menu.admin': '管理员', + // 'menu.admin.list': '管理员列表', + // 'menu.admin.group': '角色', + // 'menu.admin.rule': '菜单权限管理', + // 'menu.system': '系统管理', + // 'menu.system.dict': '字典管理', + // 'menu.system.setting': '系统设置', + // 'menu.system.info': '系统信息', + // 'menu.online': '在线开发', + // 'menu.online.table': '表格开发', + // 'menu.index': '首页', + // 'menu.git': '代码仓库', + // 'menu.github': 'Github', + // 'menu.gitee': 'Gitee', + // 'menu.users': '用户中心', + // 'menu.personal': '个人中心', + // 'menu.userSetting': '账户设置', + // 'menu.setPassword': '修改密码', + // 'menu.log': '资产记录', + // 'menu.log.moneyLog': '余额记录', + // 'menu.File': '文件管理', + // 'menu.testTable': '测试表', + // 'menu.system.monitor': '系统监控' }; diff --git a/web/src/models/dictModel.ts b/web/src/models/dictModel.ts index c4f217b9931b08b8ab19e659f070b45525974e88..daa01dde14e174086b4d9672afbafd3b62c952a5 100644 --- a/web/src/models/dictModel.ts +++ b/web/src/models/dictModel.ts @@ -13,13 +13,12 @@ interface DictItem { interface DictDate { code: string; - name: string - type?: number - dictItems: DictItem[] + name: string; + type?: number; + dictItems: DictItem[]; } const useDict = () => { - /** * 格式化字典: request * @param data @@ -27,43 +26,52 @@ const useDict = () => { const setDictJson = (data: DictDate[]): Map => { let dictMap: Map = new Map(); data.forEach((dict: DictDate) => { - dictMap.set(dict.code, dict.dictItems.map(a => Object.assign(a, { type: dict.type }))); + dictMap.set( + dict.code, + dict.dictItems.map((a) => Object.assign(a, { type: dict.type })), + ); }); return dictMap; - } + }; /** * 格式化字典: Enum * @param data */ - const setDictEnum = (data: DictDate[]): Map => { - let dictMap: Map = new Map(); + const setDictEnum = ( + data: DictDate[], + ): Map => { + let dictMap: Map = new Map(); data.forEach((dict: DictDate) => { - let data: {[key: string]: ReactNode} = {}; + let data: { [key: string]: ReactNode } = {}; dict.dictItems.forEach((a) => { data[a.value] = a.label; - }) + }); dictMap.set(dict.code, data); }); return dictMap; - } + }; - const { data: dictData, refresh, refreshAsync: refreshDictAsync } = useRequest(async () => { + const { + data: dictData, + refresh, + refreshAsync: refreshDictAsync, + } = useRequest(async () => { let token = localStorage.getItem('x-token'); let data: DictDate[] = []; if (token) { - if (localStorage.getItem('dictMap')) { + if (localStorage.getItem('dictMap') && false) { console.log('-------获取字典缓存--------'); - data = JSON.parse(localStorage.getItem('dictMap')!) + data = JSON.parse(localStorage.getItem('dictMap')!); } else { let res = await gitDict(); - data = res.data + data = res.data; localStorage.setItem('dictMap', JSON.stringify(data)); } } return { dictJson: setDictJson(data), - dictEnum: setDictEnum(data) + dictEnum: setDictEnum(data), }; }); @@ -73,7 +81,7 @@ const useDict = () => { const refreshDict = () => { localStorage.removeItem('dictMap'); refresh(); - } + }; /** * 通过键值获取字典 @@ -91,7 +99,7 @@ const useDict = () => { refreshDict, getDictionaryData, dictionaryCache: dictData ? dictData.dictJson : {}, - dictEnum: dictData ? dictData.dictEnum : new Map() + dictEnum: dictData ? dictData.dictEnum : new Map(), // 后面考虑废除 dictionaryCache,dictEnum 兼容性更强 }; }; diff --git a/web/src/pages/backend/Admin/Group/components/GroupRule.tsx b/web/src/pages/backend/Admin/Group/components/GroupRule.tsx index 4d068e7f628c3d04c7f559ec295b297f269e74aa..ab6c00bc4fa638f71f3fc465ada8596f7b118f57 100644 --- a/web/src/pages/backend/Admin/Group/components/GroupRule.tsx +++ b/web/src/pages/backend/Admin/Group/components/GroupRule.tsx @@ -13,8 +13,7 @@ interface GroupListType { update_time: string; } -export default (props: { record: GroupListType, treeData: any }) => { - +export default (props: { record: GroupListType; treeData: any }) => { const { record, treeData } = props; const [open, setOpen] = useBoolean(false); const [checkedKeys, setCheckedKeys] = useState([]); @@ -25,9 +24,9 @@ export default (props: { record: GroupListType, treeData: any }) => { }, [record]); const onCheck: TreeProps['onCheck'] = (checked, e) => { - if(Array.isArray(checked)){ + if (Array.isArray(checked)) { setCheckedKeys(checked); - }else { + } else { setCheckedKeys(checked.checked); } setHalfCheckedKeys(e.halfCheckedKeys ? e.halfCheckedKeys : []); @@ -38,12 +37,12 @@ export default (props: { record: GroupListType, treeData: any }) => { */ const onSave = async () => { let data = { - 'id': record.id, - 'rule_ids': [...checkedKeys, ...halfCheckedKeys], - } - await Api.setGroupRule(data) + id: record.id, + rule_ids: [...checkedKeys, ...halfCheckedKeys], + }; + await Api.setGroupRule(data); message.success('保存成功'); - } + }; return ( <> @@ -56,14 +55,14 @@ export default (props: { record: GroupListType, treeData: any }) => { styles={{ body: { paddingBottom: 80 } }} extra={ - } > - { - treeData?.length > 1 && 1 && ( + { children: 'children', }} showLine + checkStrictly onCheck={onCheck} checkedKeys={checkedKeys} /> - } + )} ); diff --git a/web/src/pages/backend/Admin/Group/index.tsx b/web/src/pages/backend/Admin/Group/index.tsx index 988df66de94fcfdf0116429b26336135684d3262..2de9f2bd4e6a25d34884e092ae5482778976ec92 100644 --- a/web/src/pages/backend/Admin/Group/index.tsx +++ b/web/src/pages/backend/Admin/Group/index.tsx @@ -1,7 +1,7 @@ import { ActionType } from '@ant-design/pro-components'; import { Access, useAccess } from '@umijs/max'; import { useBoolean } from 'ahooks'; -import { message, Popconfirm } from 'antd'; +import { Button, message, Popconfirm } from 'antd'; import React, { useEffect, useRef, useState } from 'react'; import GroupRule from './components/GroupRule'; @@ -11,7 +11,6 @@ import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; import * as tableApi from '@/services/common/table'; import { deleteApi } from '@/services/common/table'; - const api = '/adminGroup'; interface GroupListType { @@ -23,43 +22,44 @@ interface GroupListType { update_time: string; } -const Table : React.FC = () => { - +const Table: React.FC = () => { const [ref, setRef] = useBoolean(); const [treeData, setTreeData] = useState([]); useEffect(() => { - tableApi.listApi('/adminRule/list').then(res=>{ - setTreeData(res.data.data) - }) - },[]) - const actionRef = useRef() + tableApi.listApi('/adminRule/list').then((res) => { + setTreeData(res.data.data); + }); + }, []); + const actionRef = useRef(); - - const formPid = ({ type }: any): ProFormColumnsAndProColumns[] => { + const formPid = ({ + type, + }: any): ProFormColumnsAndProColumns[] => { return type !== '0' - ? [{ - title: '父节点', - dataIndex: 'pid', - valueType: 'treeSelect', - initialValue: 1, - params: { ref }, - fieldProps: { - fieldNames: { - label: 'name', - value: 'id', + ? [ + { + title: '父节点', + dataIndex: 'pid', + valueType: 'treeSelect', + initialValue: 1, + params: { ref }, + fieldProps: { + fieldNames: { + label: 'name', + value: 'id', + }, + }, + request: async () => { + let res = await tableApi.listApi(api + '/list'); + return res.data.data; + }, + formItemProps: { + rules: [{ required: true, message: '此项为必填项' }], + }, }, - }, - request: async () => { - let res = await tableApi.listApi(api + '/list'); - return res.data.data; - }, - formItemProps: { - rules: [ - { required: true, message: '此项为必填项' }, - ], - }, - }] : [] - } + ] + : []; + }; const columns: ProFormColumnsAndProColumns[] = [ { title: '类型', @@ -68,9 +68,7 @@ const Table : React.FC = () => { hideInTable: true, initialValue: '0', formItemProps: { - rules: [ - { required: true, message: '此项为必填项' }, - ], + rules: [{ required: true, message: '此项为必填项' }], }, fieldProps: { options: [ @@ -89,24 +87,29 @@ const Table : React.FC = () => { title: 'ID', dataIndex: 'id', hideInForm: true, - hideInTable: true + hideInTable: true, }, { - title: '分组名', + title: '角色名', dataIndex: 'name', valueType: 'text', }, + { + title: '角色标识', + dataIndex: 'code', + valueType: 'text', + }, { valueType: 'dependency', name: ['type'], hideInTable: true, - columns: formPid + columns: formPid, }, { title: '创建时间', dataIndex: 'create_time', valueType: 'date', - hideInForm: true + hideInForm: true, }, { title: '编辑时间', @@ -123,20 +126,23 @@ const Table : React.FC = () => { */ const handleRemove = async (selectedRows: GroupListType[]) => { const hide = message.loading('正在删除'); - let ids = selectedRows.map(x => x.id) - deleteApi(tableApi+'/delete', { ids: ids.join() || '' }).then( res => { - if (res.success) { - message.success(res.msg); - actionRef.current?.reloadAndRest?.(); - }else { - message.warning(res.msg); - } - }).finally(() => hide()) - } + let ids = selectedRows.map((x) => x.id); + deleteApi(api + '/delete', { ids: ids.join() || '' }) + .then((res) => { + if (res.success) { + message.success(res.msg); + actionRef.current?.reloadAndRest?.(); + } else { + message.warning(res.msg); + } + }) + .finally(() => hide()); + }; return ( <> + headerTitle={'角色管理'} tableApi={api} columns={columns} search={false} @@ -145,32 +151,37 @@ const Table : React.FC = () => { deleteShow={false} actionRef={actionRef} expandable={{ - defaultExpandedRowKeys: [] + defaultExpandedRowKeys: [], }} - operateRender={(data) => + operateRender={(data) => ( <> - { data.id !== 1 && <> - - - - - { handleRemove([data]) }} - okText="确认" - cancelText="取消" - > - 删除 - - - } + {data.id !== 1 && ( + <> + + + + + { + handleRemove([data]); + }} + okText="确认" + cancelText="取消" + > + + + + + )} - } + )} /> - ) - -} + ); +}; -export default Table +export default Table; diff --git a/web/src/pages/backend/Admin/List/components/UpdatePassword.tsx b/web/src/pages/backend/Admin/List/components/UpdatePassword.tsx index bebc4e6444a54f0bc2960313e04c89468f97993d..4bbc04cbb47e610be8e3fba833ed55e5923ba8f6 100644 --- a/web/src/pages/backend/Admin/List/components/UpdatePassword.tsx +++ b/web/src/pages/backend/Admin/List/components/UpdatePassword.tsx @@ -1,13 +1,9 @@ import { UserOutlined } from '@ant-design/icons'; -import { - BetaSchemaForm -} from '@ant-design/pro-components'; -import { Avatar, message, Space, Tag } from 'antd'; -import React from 'react'; +import { BetaSchemaForm } from '@ant-design/pro-components'; +import { Avatar, Button, message, Space, Tag } from 'antd'; import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; -import {editApi} from "@/services/common/table"; - +import { editApi } from '@/services/common/table'; interface UpDatePasswordForm { id?: number; @@ -18,19 +14,19 @@ interface UpDatePasswordForm { } interface ResponseAdminList { - id?: number - username?: string - nickname?: string - avatar?: string - email?: string - mobile?: string - motto?: string - sex?: number - create_time?: string - update_time?: string + id?: number; + username?: string; + nickname?: string; + avatar?: string; + email?: string; + mobile?: string; + motto?: string; + sex?: number; + create_time?: string; + update_time?: string; } -const UpdateForm = (props: {record: ResponseAdminList}) => { +const UpdateForm = (props: { record: ResponseAdminList }) => { const { record } = props; const columns: ProFormColumnsAndProColumns[] = [ { @@ -39,25 +35,41 @@ const UpdateForm = (props: {record: ResponseAdminList}) => { valueType: 'text', renderFormItem: () => ( - } size={24}/> - } color="geekblue">ID:{record.id} - {record.username?Name:{record.username}: ''} - {record.mobile?Mobile:{record.mobile}: ''} + } + size={24} + /> + } color="geekblue"> + ID:{record.id} + + {record.username ? ( + Name:{record.username} + ) : ( + '' + )} + {record.mobile ? ( + Mobile:{record.mobile} + ) : ( + '' + )} - ) + ), }, { title: '密码', dataIndex: 'password', valueType: 'password', - formItemProps: { rules: [{required: true,message: '该项为必填'}] } + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, }, { title: '确认密码', dataIndex: 'rePassword', valueType: 'password', - formItemProps: { rules: [ - {required: true,message: '该项为必填'}, + formItemProps: { + rules: [ + { required: true, message: '该项为必填' }, ({ getFieldValue }) => ({ validator(_, value) { if (!value || getFieldValue('password') === value) { @@ -66,8 +78,8 @@ const UpdateForm = (props: {record: ResponseAdminList}) => { return Promise.reject(new Error('两次输入的密码不同')); }, }), - ] - } + ], + }, }, ]; @@ -77,20 +89,25 @@ const UpdateForm = (props: {record: ResponseAdminList}) => { */ const defaultUpdate = async (fields: UpDatePasswordForm) => { const hide = message.loading('正在更新'); - return editApi('/admin/updatePassword', Object.assign({id:record.id},fields)).then(res => { - if (res.success) { - message.success('更新成功!'); - return true - } - return false - }).finally(()=>{ - hide() - }) - } + return editApi( + '/admin/updatePassword', + Object.assign({ id: record.id }, fields), + ) + .then((res) => { + if (res.success) { + message.success('更新成功!'); + return true; + } + return false; + }) + .finally(() => { + hide(); + }); + }; return ( - trigger={ 修改密码 } + trigger={} title={'修改管理员密码'} layoutType={'ModalForm'} rowProps={{ @@ -99,10 +116,10 @@ const UpdateForm = (props: {record: ResponseAdminList}) => { colProps={{ span: 24, }} - grid={ true } - onFinish={ defaultUpdate } - columns= { columns } + grid={true} + onFinish={defaultUpdate} + columns={columns} /> - ) -} + ); +}; export default UpdateForm; diff --git a/web/src/pages/backend/Admin/List/index.tsx b/web/src/pages/backend/Admin/List/index.tsx index 14e948db3ee530ea3ea29274cd0adfa9108708ac..fb4bd022a91e80509d53f946865f2588b8e985b8 100644 --- a/web/src/pages/backend/Admin/List/index.tsx +++ b/web/src/pages/backend/Admin/List/index.tsx @@ -1,7 +1,7 @@ import { useAccess, useModel } from '@@/exports'; import { ActionType } from '@ant-design/pro-components'; import { Access } from '@umijs/max'; -import { Avatar, message, Popconfirm } from 'antd'; +import { Avatar, Button, DatePicker, message, Popconfirm } from 'antd'; import React, { useRef } from 'react'; import UpdatePassword from './components/UpdatePassword'; @@ -10,30 +10,16 @@ import XinDict from '@/components/XinDict'; import UploadImgItem from '@/components/XinForm/UploadImgItem'; import XinTable from '@/components/XinTable'; import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; -import { getUrl } from '@/services'; +import { AdminUserModel } from '@/services'; import { deleteApi, listApi } from '@/services/common/table'; +import dayjs from 'dayjs'; const api = '/admin'; -interface ResponseAdminList { - id?: number; - username?: string; - nickname?: string; - avatar?: string; - avatar_url?: string; - email?: string; - mobile?: string; - status?: number; - group_id?: number; - sex?: number; - create_time?: string; - update_time?: string; -} - const Table: React.FC = () => { const { getDictionaryData } = useModel('dictModel'); - const columns: ProFormColumnsAndProColumns[] = [ + const columns: ProFormColumnsAndProColumns[] = [ { title: '用户ID', dataIndex: 'id', @@ -78,7 +64,7 @@ const Table: React.FC = () => { colProps: { md: 6 }, }, { - title: '管理员分组', + title: '角色', dataIndex: 'group_id', valueType: 'treeSelect', formItemProps: { @@ -117,6 +103,37 @@ const Table: React.FC = () => { formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, colProps: { md: 6 }, }, + { + title: '资质', + dataIndex: 'qualification', + valueType: 'text', + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + colProps: { md: 6 }, + }, + { + title: '入职日期', + dataIndex: 'join_date', + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + colProps: { md: 6 }, + renderText(text, record, index, action) { + return text ? dayjs.unix(text).format('YYYY-MM-DD') : undefined; + }, + renderFormItem: (schema, config, form) => { + const join_date = form.getFieldValue('join_date'); + const defaultValue = join_date ? dayjs(join_date * 1000) : undefined; + + return ( +
            + { + form.setFieldValue('join_date', e?.unix?.()); + }} + /> +
            + ); + }, + }, { title: '头像', dataIndex: 'avatar_url', @@ -136,7 +153,7 @@ const Table: React.FC = () => { @@ -189,7 +206,7 @@ const Table: React.FC = () => { * 删除节点 * @param selectedRows */ - const handleRemove = async (selectedRows: ResponseAdminList[]) => { + const handleRemove = async (selectedRows: AdminUserModel[]) => { const hide = message.loading('正在删除'); if (!selectedRows) { message.warning('请选择需要删除的节点'); @@ -208,8 +225,8 @@ const Table: React.FC = () => { .finally(() => hide()); }; return ( - - headerTitle={'管理员列表'} + + headerTitle={'用户列表'} tableApi={api} columns={columns} accessName={'admin.list'} @@ -223,7 +240,7 @@ const Table: React.FC = () => { {record.id !== 1 ? ( { handleRemove([record]); @@ -231,7 +248,9 @@ const Table: React.FC = () => { okText="确认" cancelText="取消" > - 删除 + ) : null} diff --git a/web/src/pages/backend/Admin/Rule/index.tsx b/web/src/pages/backend/Admin/Rule/index.tsx index 0fdd9c7d25f40b4640bf0efd2925a4d184a94fa3..b5b72440596495f7cfd5eb3acb797ab10573776f 100644 --- a/web/src/pages/backend/Admin/Rule/index.tsx +++ b/web/src/pages/backend/Admin/Rule/index.tsx @@ -260,6 +260,7 @@ const Table: React.FC = () => { return ( + headerTitle={'权限菜单管理'} tableApi={api} columns={columns} search={false} diff --git a/web/src/pages/backend/Admin/Setting/index.tsx b/web/src/pages/backend/Admin/Setting/index.tsx index ece987f22151a65c9a60277ef80f72dca8872e59..03392ce697cf9c69b8bbf2cfa7c67a673c8cb68f 100644 --- a/web/src/pages/backend/Admin/Setting/index.tsx +++ b/web/src/pages/backend/Admin/Setting/index.tsx @@ -4,14 +4,14 @@ import { ProFormInstance, } from '@ant-design/pro-components'; import { useModel } from '@umijs/max'; -import { message } from 'antd'; +import { DatePicker, message } from 'antd'; import React, { useEffect, useRef } from 'react'; import UploadImgItem from '@/components/XinForm/UploadImgItem'; import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; -import { getUrl } from '@/services'; import { updateAdmin } from '@/services/admin/admin'; import { editApi } from '@/services/common/table'; +import dayjs from 'dayjs'; interface ResponseAdminList { id?: number; username?: string; @@ -40,6 +40,8 @@ const Table: React.FC = () => { mobile: currentUser.mobile, avatar_url: currentUser.avatar_url, avatar_id: currentUser.avatar_id, + qualification: currentUser.qualification, + join_date: currentUser.join_date, }); } }, []); @@ -74,6 +76,34 @@ const Table: React.FC = () => { formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, colProps: { md: 6 }, }, + { + title: '资质', + dataIndex: 'qualification', + valueType: 'text', + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + colProps: { md: 6 }, + }, + { + title: '入职日期', + dataIndex: 'join_date', + valueType: 'text', + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + colProps: { md: 6 }, + renderFormItem: (schema, config, form) => { + const join_date = form.getFieldValue('join_date'); + const defaultValue = join_date ? dayjs(join_date * 1000) : undefined; + return ( +
            + { + form.setFieldValue('join_date', e?.unix?.()); + }} + /> +
            + ); + }, + }, { title: '头像', dataIndex: 'avatar_url', @@ -92,7 +122,7 @@ const Table: React.FC = () => { diff --git a/web/src/pages/backend/Dashboard/Analysis/components/AddressBook/constants.tsx b/web/src/pages/backend/Dashboard/Analysis/components/AddressBook/constants.tsx new file mode 100644 index 0000000000000000000000000000000000000000..1d7065883b6068796547cbdddbae82c68ae815bf --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/AddressBook/constants.tsx @@ -0,0 +1,51 @@ +import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; +import { AddressBookModel } from '@/services/project'; +import dayjs from 'dayjs'; + +export const AddressBookColumns: ProFormColumnsAndProColumns[] = + [ + { + title: '人员', + dataIndex: 'nickname', + hideInForm: true, + hideInSearch: true, + }, + { + title: '资质', + dataIndex: 'qualification', + hideInForm: true, + hideInSearch: true, + }, + { + title: '工作年限', + dataIndex: 'join_date', + hideInForm: true, + hideInSearch: true, + renderText(text, record, index, action) { + return !record.join_date + ? undefined + : dayjs().diff(dayjs.unix(record.join_date), 'year') + '年'; + }, + }, + { + title: '电话', + dataIndex: 'mobile', + hideInForm: true, + hideInSearch: true, + }, + { + title: '邮箱', + dataIndex: 'email', + hideInForm: true, + hideInSearch: true, + }, + { + title: '项目', + dataIndex: 'projects', + hideInForm: true, + hideInSearch: true, + renderText(text, record, index, action) { + return record.projects?.map?.((item) => item.name).join(', '); + }, + }, + ]; diff --git a/web/src/pages/backend/Dashboard/Analysis/components/AddressBook/index.scss b/web/src/pages/backend/Dashboard/Analysis/components/AddressBook/index.scss new file mode 100644 index 0000000000000000000000000000000000000000..dbcd398ca4aa4d9ae3a263814d6c55d6634f2cce --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/AddressBook/index.scss @@ -0,0 +1,2 @@ +.dashboard-address-book { +} diff --git a/web/src/pages/backend/Dashboard/Analysis/components/AddressBook/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/AddressBook/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..ca43cf69d1f51a5ea7e548a760af87b7a58e806f --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/AddressBook/index.tsx @@ -0,0 +1,41 @@ +import { Card, Typography } from 'antd'; +import './index.scss'; + +const { Title } = Typography; + +import { AddressBookModel, getAddressBookService } from '@/services/project'; +import { ProTable } from '@ant-design/pro-components'; +import { useRequest } from 'ahooks'; +import { useEffect } from 'react'; +import { AddressBookColumns } from './constants'; + +export default () => { + const { + data, + loading, + runAsync: getAddressBook, + } = useRequest( + async () => { + const result = await getAddressBookService(); + return result; + }, + { manual: true }, + ); + useEffect(() => { + getAddressBook(); + }, []); + return ( +
            + + + headerTitle={null} + columns={AddressBookColumns} + dataSource={data} + loading={loading} + toolBarRender={false} + search={false} + /> + +
            + ); +}; diff --git a/web/src/pages/backend/Dashboard/Analysis/components/CardOne/index.scss b/web/src/pages/backend/Dashboard/Analysis/components/CardOne/index.scss new file mode 100644 index 0000000000000000000000000000000000000000..227d9224138a1e072778f60ddce27a10de65fc36 --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/CardOne/index.scss @@ -0,0 +1,18 @@ +.dashboard-card-one { + .index-dot { + margin-right: 10px; + width: 18px; + height: 18px; + border-radius: 50%; + font-size: 12px; + display: inline-flex; + align-items: center; + justify-content: center; + background: rgba(0, 0, 0, 0.1); + color: #000; + &.filled { + background: #000; + color: #fff; + } + } +} diff --git a/web/src/pages/backend/Dashboard/Analysis/components/CardOne/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/CardOne/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..33229da719108d3c2dacea2c2aecd3d50988fca3 --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/CardOne/index.tsx @@ -0,0 +1,240 @@ +import { + Button, + Card, + Col, + ConfigProvider, + DatePicker, + List, + Row, + Space, + Typography, +} from 'antd'; +import './index.scss'; + +const { Title } = Typography; + +import { StatModel } from '@/services'; +import { StatModelSearchParams, getStatService } from '@/services/stat'; +import { Column, ColumnConfig } from '@ant-design/charts'; +import { useRequest } from 'ahooks'; +import clsx from 'clsx'; +import dayjs, { Dayjs } from 'dayjs'; +import utc from 'dayjs/plugin/utc'; +import weekOfYear from 'dayjs/plugin/weekOfYear'; +import { useEffect, useState } from 'react'; +const { RangePicker } = DatePicker; + +dayjs.extend(weekOfYear); +dayjs.extend(utc); + +// 获取今日的开始和结束时间戳 +const todayStart = dayjs().startOf('day'); +const todayEnd = dayjs().endOf('day'); + +// 获取本周的开始和结束时间戳 +const weekStart = dayjs().startOf('week'); +const weekEnd = dayjs().endOf('week'); + +// 获取本月的开始和结束时间戳 +const monthStart = dayjs().startOf('month'); +const monthEnd = dayjs().endOf('month'); + +// 获取本年的开始和结束时间戳 +const yearStart = dayjs().startOf('year'); +const yearEnd = dayjs().endOf('year'); + +const btnList = [ + { + label: '今日', + value: [todayStart, todayEnd], + }, + { + label: '本周', + value: [weekStart, weekEnd], + }, + { + label: '本月', + value: [monthStart, monthEnd], + }, + { + label: '本年', + value: [yearStart, yearEnd], + }, +]; + +const tableList = [ + { + key: 'added', + label: `大修量`, + }, + { + key: 'finished', + label: `完成量`, + }, +] as const; + +const ChartConfig: ColumnConfig = { + xField: 'date', + yField: 'count', + maxColumnWidth: 28, + + // seriesField: 'flag', + // // 分组柱状图 组内柱子间的间距 (像素级别) + // dodgePadding: 2, + // // 分组柱状图 组间的间距 (像素级别) + // intervalPadding: 20, + label: { + // 可手动配置 label 数据标签位置 + position: 'middle', + // 'top', 'middle', 'bottom' + // 可配置附加的布局方法 + layout: [ + // 柱形图数据标签位置自动调整 + { + type: 'interval-adjust-position', + }, // 数据标签防遮挡 + { + type: 'interval-hide-overlap', + }, // 数据标签文颜色自动调整 + { + type: 'adjust-color', + }, + ], + }, + tooltip: { + formatter: (record: any) => { + return { + name: '数量', + value: record.count, + }; + }, + }, +} as ColumnConfig; +export default () => { + const [tab, setTab] = useState(tableList[0].key); + const [dateRange, setDateRange] = useState<[Dayjs, Dayjs]>([ + monthStart, + monthEnd, + ]); + + const tabBarExtraContent = ( + + {btnList.map((btn) => ( + + ))} + setDateRange(dates as [Dayjs, Dayjs])} + /> + + ); + + const { + data, + loading, + runAsync: getDeviceType, + } = useRequest( + async (params: StatModelSearchParams) => { + const res = await getStatService(params); + const typeMap: Record = {}; + const dateMap: Record< + string, + { date: string; count: number; unix: number } + > = {}; + for (const item of res) { + const { count, date_str, date_unix } = item; + const device_type = item.device_type!; + if (!typeMap[device_type]) { + typeMap[device_type] = { + title: device_type, + count: 0, + }; + } + typeMap[device_type].count += count; + + if (!dateMap[date_str]) { + dateMap[date_str] = { + date: date_str, + count: 0, + unix: date_unix, + }; + } + dateMap[date_str].count += count; + } + const typeData = Object.values(typeMap).sort((a, b) => b.count - a.count); + const dateData = Object.values(dateMap).sort((a, b) => a.unix - b.unix); + return { typeData, dateData }; + }, + { manual: true }, + ); + useEffect(() => { + if (!tab || !dateRange.length) { + return; + } + getDeviceType({ + type: 'deviceType', + startTime: dateRange[0].unix(), + endTime: dateRange[1].unix(), + flag: tab, + }); + }, [tab, dateRange]); + + return ( + +
            + setTab(tab as StatModel['flag'])} + > + +
            + + + + 节点整改情况 + + ( + {item.count}]}> + + + {index + 1} + + {item.title} + + } + /> + + )} + /> + + + + + + ); +}; diff --git a/web/src/pages/backend/Dashboard/Analysis/components/CardThree/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/CardThree/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..8637e1d53871bc520087e37b74f03f893f527d5c --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/CardThree/index.tsx @@ -0,0 +1,101 @@ +import { getDeviceList } from '@/services/device'; +import { StatModelSearchParams, getStatService } from '@/services/stat'; +import { Pie, PieConfig } from '@ant-design/charts'; +import { useRequest } from 'ahooks'; +import { Card } from 'antd'; +import { useEffect } from 'react'; + +const ChartConfig: PieConfig = { + data: [], + angleField: 'count', + colorField: 'name', + radius: 0.85, + innerRadius: 0.6, + labels: false, + style: { + stroke: '#fff', + inset: 1, + radius: 10, + }, + scale: { + color: { + palette: 'spectral', + offset: (t: any) => t * 0.8 + 0.1, + }, + }, + legend: { + position: 'top', + flipPage: true, + // 两行分页 + maxRow: 2, + pageNavigator: { + marker: { + style: { + fill: 'rgba(0,0,0,0.65)', + }, + }, + }, + }, + interactions: [ + { + type: 'element-selected', + }, + { + type: 'element-active', + }, + ], +} as PieConfig; + +export default () => { + const { + data, + loading, + runAsync: getDevice, + } = useRequest( + async (params: StatModelSearchParams) => { + const res = await getStatService(params); + const deviceList = await getDeviceList({ + current: 1, + pageSize: 9999, + }); + const deviceNameMap = deviceList.data.reduce( + (acc, cur) => { + acc[cur.id] = cur.name; + return acc; + }, + {} as Record, + ); + const typeMap: Record = {}; + + for (const item of res) { + const { count } = item; + const device_id = item.device_id!; + if (!typeMap[device_id]) { + typeMap[device_id] = { + name: deviceNameMap[device_id], + count: 0, + }; + } + typeMap[device_id].count += count; + } + const result = Object.values(typeMap).sort((a, b) => b.count - a.count); + return result; + }, + { manual: true }, + ); + useEffect(() => { + getDevice({ + type: 'device', + startTime: 0, + endTime: Math.ceil(Date.now() / 1000), + flag: 'finished', + }); + }, []); + return ( + +
            + +
            +
            + ); +}; diff --git a/web/src/pages/backend/Dashboard/Analysis/components/CardTwo/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/CardTwo/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..d59e113736cd3daee8691f5a50faaf5c05311b6c --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/CardTwo/index.tsx @@ -0,0 +1,87 @@ +import { StatModelSearchParams, getStatService } from '@/services/stat'; +import { Area, AreaConfig } from '@ant-design/charts'; +import { useRequest } from 'ahooks'; +import { Card } from 'antd'; +import dayjs from 'dayjs'; +import { useEffect } from 'react'; + +const ChartConfig: AreaConfig = { + data: [], + xField: '日期', + yField: '数量', + annotations: [ + { + type: 'text', + position: ['min', 'median'], + content: '中位数', + offsetY: -4, + style: { + textBaseline: 'bottom', + }, + }, + { + type: 'line', + start: ['min', 'median'], + end: ['max', 'median'], + style: { + stroke: 'red', + lineDash: [2, 2], + }, + }, + ], +} as AreaConfig; + +export default () => { + const { + data = [], + loading, + runAsync: getFinished, + } = useRequest( + async (params: StatModelSearchParams) => { + const res = await getStatService(params); + + // 获取每日完成数据 + const flangeFinishedData: { + 日期: string; + 数量: number; + }[] = []; + const dataMap = res.reduce( + (acc, cur) => { + acc[cur.date_str] = cur.count; + return acc; + }, + {} as Record, + ); + let startDate = params.startTime; + while (startDate <= params.endTime) { + const date_str = dayjs.unix(startDate).format('YYYY-MM-DD'); + flangeFinishedData.push({ + 日期: date_str, + 数量: dataMap[date_str] || 0, + }); + startDate += 86400; + } + + const result = Object.values(flangeFinishedData).sort( + (a, b) => b['数量'] - a['数量'], + ); + return result; + }, + { manual: true }, + ); + useEffect(() => { + getFinished({ + type: 'project', + startTime: dayjs().subtract(7, 'day').startOf('day').unix(), + endTime: dayjs().startOf('day').unix(), + flag: 'finished', + }); + }, []); + return ( + +
            + +
            +
            + ); +}; diff --git a/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoColumn/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoColumn/index.tsx deleted file mode 100644 index 6281114dccfa467df46f5837bf925f5959936e23..0000000000000000000000000000000000000000 --- a/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoColumn/index.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { Column } from '@ant-design/charts'; -import React, { useState, useEffect } from 'react'; - -const DemoColumn = () => { - const [data, setData] = useState([]); - - useEffect(() => { - // eslint-disable-next-line @typescript-eslint/no-use-before-define - asyncFetch(); - }, []); - - const asyncFetch = () => { - fetch('https://gw.alipayobjects.com/os/antfincdn/iPY8JFnxdb/dodge-padding.json') - .then((response) => response.json()) - .then((json) => setData(json)) - .catch((error) => { - console.log('fetch data failed', error); - }); - }; - const config = { - data, - isGroup: true, - xField: '月份', - yField: '月均降雨量', - seriesField: 'name', - // 分组柱状图 组内柱子间的间距 (像素级别) - dodgePadding: 2, - // 分组柱状图 组间的间距 (像素级别) - intervalPadding: 20, - label: { - // 可手动配置 label 数据标签位置 - position: 'middle', - // 'top', 'middle', 'bottom' - // 可配置附加的布局方法 - layout: [ - // 柱形图数据标签位置自动调整 - { - type: 'interval-adjust-position', - }, // 数据标签防遮挡 - { - type: 'interval-hide-overlap', - }, // 数据标签文颜色自动调整 - { - type: 'adjust-color', - }, - ], - }, - }; - - // @ts-ignore - return ; -}; - -export default DemoColumn; diff --git a/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoPie/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoPie/index.tsx deleted file mode 100644 index ebb4c78ebef38e2322955f1035c970d65e892741..0000000000000000000000000000000000000000 --- a/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoPie/index.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { Pie } from '@ant-design/charts'; -import React from 'react'; - -const DemoPie = () => { - const data = [ - { - type: '家用电器', - value: 27, - }, - { - type: '食用酒水', - value: 25, - }, - { - type: '个护健康', - value: 18, - }, - { - type: '服饰箱包', - value: 15, - }, - { - type: '母婴产品', - value: 10, - }, - { - type: '其他', - value: 5, - }, - ]; - const config = { - appendPadding: 10, - data, - angleField: 'value', - colorField: 'type', - radius: 0.75, - label: { - type: 'spider', - labelHeight: 28, - content: '{name}\n{percentage}', - }, - interactions: [ - { - type: 'element-selected', - }, - { - type: 'element-active', - }, - ], - }; - return ; -}; - -export default DemoPie diff --git a/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoProgress/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoProgress/index.tsx deleted file mode 100644 index 076313398b92ee56efc965265dcd5825ecf2871b..0000000000000000000000000000000000000000 --- a/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoProgress/index.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import { Progress } from '@ant-design/charts'; -import React from 'react'; - -const DemoProgress = () => { - const config = { - height: 60, - autoFit: false, - percent: 0.7, - color: ['#5B8FF9', '#E8EDF3'], - }; - return ; -}; - -export default DemoProgress diff --git a/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoTinyArea/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoTinyArea/index.tsx deleted file mode 100644 index 0f923599df1cd480ad01d6d8d2f32c6464d5daad..0000000000000000000000000000000000000000 --- a/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoTinyArea/index.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { TinyArea } from '@ant-design/charts'; -import React from 'react'; - -const DemoTinyArea = () => { - const data = [ - 264, 417, 438, 887, 309, 397, 550, 575, 563, 430, 525, 592, 492, 467, 513, 546, 983, 340, 539, 243, 226, 192, - ]; - const config = { - height: 60, - autoFit: false, - data, - smooth: true, - }; - return ; -}; - -export default DemoTinyArea diff --git a/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoTinyColumn/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoTinyColumn/index.tsx deleted file mode 100644 index 87e5de670352bb980b37357e2b5467f5b2f4f496..0000000000000000000000000000000000000000 --- a/web/src/pages/backend/Dashboard/Analysis/components/Carts/DemoTinyColumn/index.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { TinyColumn } from '@ant-design/charts'; -import type {TinyColumnConfig} from "@ant-design/charts"; -import React from 'react'; - -const DemoTinyColumn = () => { - const data = [274, 337, 81, 497, 666, 219, 269, 163, 159, 86, 15, 66]; - const config: TinyColumnConfig = { - height: 60, - autoFit: false, - data, - tooltip: { - customContent: function (x, data) { - return `NO.${x}: ${data[0]?.data?.y.toFixed(2)}`; - }, - }, - }; - return ; -}; - -export default DemoTinyColumn diff --git a/web/src/pages/backend/Dashboard/Analysis/components/DemoCardOne/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/DemoCardOne/index.tsx deleted file mode 100644 index b771d1e7c06566281ca634da69a6aeab8bdd3f93..0000000000000000000000000000000000000000 --- a/web/src/pages/backend/Dashboard/Analysis/components/DemoCardOne/index.tsx +++ /dev/null @@ -1,84 +0,0 @@ -import { FormattedMessage } from "@umijs/max"; -import { Button, Card, Space, DatePicker, Row, Col, List, Avatar, ConfigProvider } from "antd"; - -import DemoColumn from "../Carts/DemoColumn"; -const { RangePicker } = DatePicker; -export default () => { - - const tableList = [ - { - key: 'a', - label: , - }, - { - key: 'b', - label: , - }, - ] - - const data = [ - { - title: 'Ant Design Title 1', - }, - { - title: 'Ant Design Title 2', - }, - { - title: 'Ant Design Title 3', - }, - { - title: 'Ant Design Title 4', - }, - ]; - const tabBarExtraContent = ( - - - - - - - - ) - - return ( - - - -
            - - - - - ( - - - } - title={{item.title}} - description="Ant Design, a design language for background applications, is refined by Ant UED Team" - /> - - )} - /> - - - - - - ) -} diff --git a/web/src/pages/backend/Dashboard/Analysis/components/DemoCardThree/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/DemoCardThree/index.tsx deleted file mode 100644 index 63f50768e03e443b9186644cf18d2ae74f9c4005..0000000000000000000000000000000000000000 --- a/web/src/pages/backend/Dashboard/Analysis/components/DemoCardThree/index.tsx +++ /dev/null @@ -1,122 +0,0 @@ -import {FormattedMessage} from "@umijs/max"; -import {Button, Card, Input, Space, Table, Tag} from "antd"; -import type { ColumnsType } from 'antd/es/table'; -import React from 'react'; - -interface DataType { - key: string; - name: string; - age: number; - address: string; - tags: string[]; -} - -const columns: ColumnsType = [ - { - title: 'Name', - dataIndex: 'name', - key: 'name', - render: (text) => {text}, - }, - { - title: 'Age', - dataIndex: 'age', - key: 'age', - }, - { - title: 'Address', - dataIndex: 'address', - key: 'address', - }, - { - title: 'Tags', - key: 'tags', - dataIndex: 'tags', - render: (_, { tags }) => ( - <> - {tags.map((tag) => { - let color = tag.length > 5 ? 'geekblue' : 'green'; - if (tag === 'loser') { - color = 'volcano'; - } - return ( - - {tag.toUpperCase()} - - ); - })} - - ), - }, - { - title: 'Action', - key: 'action', - render: (_, record) => ( - - Invite {record.name} - Delete - - ), - }, -]; - -const data: DataType[] = [ - { - key: '1', - name: 'John Brown', - age: 32, - address: 'New York No. 1 Lake Park', - tags: ['nice', 'developer'], - }, - { - key: '2', - name: 'Jim Green', - age: 42, - address: 'London No. 1 Lake Park', - tags: ['loser'], - }, - { - key: '3', - name: 'Joe Black', - age: 32, - address: 'Sydney No. 1 Lake Park', - tags: ['cool', 'teacher'], - }, - { - key: '4', - name: 'Jim Green', - age: 42, - address: 'London No. 1 Lake Park', - tags: ['loser'], - }, - { - key: '5', - name: 'Joe Black', - age: 32, - address: 'Sydney No. 1 Lake Park', - tags: ['cool', 'teacher'], - }, -]; - - -export default () => { - return ( - } - extra={ - - - - - } - > -
            -
            - - - - ) -} - - - diff --git a/web/src/pages/backend/Dashboard/Analysis/components/DemoCardTwo/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/DemoCardTwo/index.tsx deleted file mode 100644 index 457aed3d801ccdbe9d1ed5af3355fb5a2f9d15fe..0000000000000000000000000000000000000000 --- a/web/src/pages/backend/Dashboard/Analysis/components/DemoCardTwo/index.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import {FormattedMessage} from "@umijs/max"; -import {Card, Radio} from "antd"; - -import DemoPie from "../Carts/DemoPie"; - - -export default () => { - return ( - } - extra={ - <> - - - - - - - } - > -
            - - -
            -
            - - ) -} diff --git a/web/src/pages/backend/Dashboard/Analysis/components/DeviceTypeCircleList/index.scss b/web/src/pages/backend/Dashboard/Analysis/components/DeviceTypeCircleList/index.scss new file mode 100644 index 0000000000000000000000000000000000000000..3b872f70eee2f28ac34a0188cf9941b22aa2a295 --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/DeviceTypeCircleList/index.scss @@ -0,0 +1,8 @@ +.dashboard-dtcl { + display: flex; + overflow: auto; + gap: 12px; + > * { + flex-shrink: 0; + } +} diff --git a/web/src/pages/backend/Dashboard/Analysis/components/DeviceTypeCircleList/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/DeviceTypeCircleList/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..b8513cf43b2563ef293d8e5b3557443c1023a4bf --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/DeviceTypeCircleList/index.tsx @@ -0,0 +1,116 @@ +import { StatisticCard } from '@ant-design/pro-components'; +import { ConfigProvider, Progress, Typography } from 'antd'; +import './index.scss'; + +const { Title } = Typography; + +import { StatModelSearchParams, getStatService } from '@/services/stat'; +import { useRequest } from 'ahooks'; +import { useEffect } from 'react'; + +export default () => { + const { + data, + loading, + runAsync: getDeviceType, + } = useRequest( + async (params: Omit) => { + const addedRes = await getStatService({ + flag: 'added', + ...params, + }); + const finishedRes = await getStatService({ + flag: 'finished', + ...params, + }); + const typeMap: Record< + string, + { title: string; added: number; finished: number } + > = {}; + + for (const item of addedRes) { + const { count, date_str, date_unix } = item; + const device_type = item.device_type!; + if (!typeMap[device_type]) { + typeMap[device_type] = { + title: device_type, + added: 0, + finished: 0, + }; + } + typeMap[device_type].added += count; + } + + for (const item of finishedRes) { + const { count, date_str, date_unix } = item; + const device_type = item.device_type!; + if (!typeMap[device_type]) { + typeMap[device_type] = { + title: device_type, + added: 0, + finished: 0, + }; + } + typeMap[device_type].finished += count; + } + const res = Object.values(typeMap); + return res.map(({ title, added, finished }) => { + const percent = Number( + ((added > 0 ? finished / added : finished > 0 ? 1 : 0) * 100).toFixed( + 0, + ), + ); + return { + title, + percent, + }; + }); + }, + { manual: true }, + ); + useEffect(() => { + getDeviceType({ + type: 'device', + startTime: 0, + endTime: Math.ceil(Date.now() / 1000), + }); + }, []); + + return ( + +
            + {data && + data.map((item, index) => ( + , + }} + style={{ width: 210 }} + chart={ + + } + /> + ))} +
            +
            + ); +}; diff --git a/web/src/pages/backend/Dashboard/Analysis/components/FeedbackList/constants.tsx b/web/src/pages/backend/Dashboard/Analysis/components/FeedbackList/constants.tsx new file mode 100644 index 0000000000000000000000000000000000000000..1d7065883b6068796547cbdddbae82c68ae815bf --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/FeedbackList/constants.tsx @@ -0,0 +1,51 @@ +import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; +import { AddressBookModel } from '@/services/project'; +import dayjs from 'dayjs'; + +export const AddressBookColumns: ProFormColumnsAndProColumns[] = + [ + { + title: '人员', + dataIndex: 'nickname', + hideInForm: true, + hideInSearch: true, + }, + { + title: '资质', + dataIndex: 'qualification', + hideInForm: true, + hideInSearch: true, + }, + { + title: '工作年限', + dataIndex: 'join_date', + hideInForm: true, + hideInSearch: true, + renderText(text, record, index, action) { + return !record.join_date + ? undefined + : dayjs().diff(dayjs.unix(record.join_date), 'year') + '年'; + }, + }, + { + title: '电话', + dataIndex: 'mobile', + hideInForm: true, + hideInSearch: true, + }, + { + title: '邮箱', + dataIndex: 'email', + hideInForm: true, + hideInSearch: true, + }, + { + title: '项目', + dataIndex: 'projects', + hideInForm: true, + hideInSearch: true, + renderText(text, record, index, action) { + return record.projects?.map?.((item) => item.name).join(', '); + }, + }, + ]; diff --git a/web/src/pages/backend/Dashboard/Analysis/components/FeedbackList/index.scss b/web/src/pages/backend/Dashboard/Analysis/components/FeedbackList/index.scss new file mode 100644 index 0000000000000000000000000000000000000000..67abc15a774a419d53757ae772ec20f88091ac44 --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/FeedbackList/index.scss @@ -0,0 +1,11 @@ +.dashboard-feedback-list { + .ant-pro-checkcard-header { + gap: 4px; + } + .ant-list-item-meta-title { + overflow: hidden; + } + .ant-pro-checkcard-body { + padding: 0 12px 12px 12px !important; + } +} diff --git a/web/src/pages/backend/Dashboard/Analysis/components/FeedbackList/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/FeedbackList/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..b2073c91c19e2553d6a06225296282089f991878 --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/FeedbackList/index.tsx @@ -0,0 +1,135 @@ +import { history } from '@umijs/max'; +import { Button, Card, Flex, Space, Typography } from 'antd'; +import relativeTime from 'dayjs/plugin/relativeTime'; +import './index.scss'; + +import { + StatFeedbackRelationModel, + StatFeedbackRelationsSearchParams, + getStatFeedbackRelationsService, +} from '@/services/stat'; +import { ProList } from '@ant-design/pro-components'; +import { useRequest } from 'ahooks'; +import dayjs from 'dayjs'; +import { useEffect } from 'react'; + +const { Title, Text } = Typography; +dayjs.extend(relativeTime); + +export default () => { + const { + data, + loading, + runAsync: getFeedbackRelations, + } = useRequest( + async (params: StatFeedbackRelationsSearchParams) => { + const result = await getStatFeedbackRelationsService(params); + return result.data; + }, + { manual: true }, + ); + useEffect(() => { + getFeedbackRelations({ + current: 1, + pageSize: 6, + }); + }, []); + return ( +
            + { + history.push(`/feedback`); + }} + > + 全部反馈信息 + + } + > + + ghost + itemCardProps={{ + ghost: true, + }} + pagination={{ + defaultPageSize: 8, + showSizeChanger: false, + }} + showActions="hover" + rowSelection={{}} + grid={{ gutter: 16, column: 3 }} + onItem={(record: StatFeedbackRelationModel) => { + return { + onClick: () => { + history.push(`/feedback/detail?id=${record.feedback_id}`); + }, + }; + }} + metas={{ + title: { + dataIndex: 'flange_code', + render: (_, record) => { + return ( + + 法兰编号: + {record.flange_code} + + ); + }, + }, + actions: { + cardActionProps: 'extra', + render: (_, record) => { + return ( + + 项目: + {record.project_name} + + ); + }, + }, + subTitle: {}, + content: { + dataIndex: 'content', + render: (_, record) => { + return ( + + {record.name} + {record.create_time} + + {record.content} + + + + {record.user_name} + + + {dayjs(record.create_time).fromNow()} + + + + ); + }, + }, + }} + headerTitle={null} + dataSource={data} + /> + +
            + ); +}; diff --git a/web/src/pages/backend/Dashboard/Analysis/components/ProjectLineList/index.scss b/web/src/pages/backend/Dashboard/Analysis/components/ProjectLineList/index.scss new file mode 100644 index 0000000000000000000000000000000000000000..05195f31e9272bc8ac801bddedf720f116080e84 --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/ProjectLineList/index.scss @@ -0,0 +1,3 @@ +.dashboard-pll { + padding: 0 12px; +} diff --git a/web/src/pages/backend/Dashboard/Analysis/components/ProjectLineList/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/ProjectLineList/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..f1b59c3b3720331c87f575b842b8cd89898f64e7 --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/ProjectLineList/index.tsx @@ -0,0 +1,120 @@ +import { ConfigProvider, Typography } from 'antd'; +import './index.scss'; + +const { Title } = Typography; + +import { StatModelSearchParams, getStatService } from '@/services/stat'; +import { Line, LineConfig } from '@ant-design/charts'; +import { useRequest } from 'ahooks'; +import { useEffect } from 'react'; + +const ChartConfig: LineConfig = { + data: [], + xField: 'date', + yField: 'count', + seriesField: 'flag', + yAxis: { + label: { + // formatter: (v) => `${(v / 10e8).toFixed(1)} B`, + }, + }, + legend: { + position: 'bottom', + }, + smooth: true, + animation: { + appear: { + animation: 'path-in', + duration: 1000, + }, + }, +}; + +export default () => { + const { + data = [], + loading, + runAsync: getDeviceType, + } = useRequest( + async (params: Omit) => { + const addedRes = await getStatService({ + flag: 'added', + ...params, + }); + const finishedRes = await getStatService({ + flag: 'finished', + ...params, + }); + const dateMap: Record< + StatModelSearchParams['flag'], + Record< + string, + { + date: string; + flag: StatModelSearchParams['flag']; + count: number; + unix: number; + } + > + > = { + added: {}, + finished: {}, + }; + for (const item of addedRes) { + const { count, date_str, date_unix } = item; + + if (!dateMap.added[date_str]) { + dateMap.added[date_str] = { + date: date_str, + flag: 'added', + count: 0, + unix: date_unix, + }; + } + dateMap.added[date_str].count += count; + } + + for (const item of finishedRes) { + const { count, date_str, date_unix } = item; + if (!dateMap.finished[date_str]) { + dateMap.finished[date_str] = { + date: date_str, + flag: 'finished', + count: 0, + unix: date_unix, + }; + } + dateMap.finished[date_str].count += count; + } + const dateData = [ + ...Object.values(dateMap.added), + ...Object.values(dateMap.finished), + ].sort((a, b) => a.unix - b.unix); + return dateData; + }, + { manual: true }, + ); + useEffect(() => { + getDeviceType({ + type: 'project', + startTime: 0, + endTime: Math.ceil(Date.now() / 1000), + }); + }, []); + + return ( + +
            + +
            +
            + ); +}; diff --git a/web/src/pages/backend/Dashboard/Analysis/components/Carts/ChartCard/index.less b/web/src/pages/backend/Dashboard/Analysis/components/SmallCards/ChartCard/index.less similarity index 100% rename from web/src/pages/backend/Dashboard/Analysis/components/Carts/ChartCard/index.less rename to web/src/pages/backend/Dashboard/Analysis/components/SmallCards/ChartCard/index.less diff --git a/web/src/pages/backend/Dashboard/Analysis/components/Carts/ChartCard/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/SmallCards/ChartCard/index.tsx similarity index 100% rename from web/src/pages/backend/Dashboard/Analysis/components/Carts/ChartCard/index.tsx rename to web/src/pages/backend/Dashboard/Analysis/components/SmallCards/ChartCard/index.tsx diff --git a/web/src/pages/backend/Dashboard/Analysis/components/SmallCards/index.tsx b/web/src/pages/backend/Dashboard/Analysis/components/SmallCards/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..a11a55ce7f7d8eb9eeb80b2d1d19bdd5bb443070 --- /dev/null +++ b/web/src/pages/backend/Dashboard/Analysis/components/SmallCards/index.tsx @@ -0,0 +1,194 @@ +import { FormattedMessage } from '@@/exports'; +import { StatisticCard } from '@ant-design/pro-components'; +import { Col } from 'antd'; + +import { getAnalysisService } from '@/services/stat'; +import { Progress, TinyArea, TinyColumn } from '@ant-design/charts'; +import { useRequest } from 'ahooks'; +import dayjs from 'dayjs'; +import ChartCard from './ChartCard'; + +const { Statistic } = StatisticCard; +export default () => { + const { data, loading } = useRequest(async () => { + const res = await getAnalysisService(); + const { flange, flangeDayAdded, flangeFinished, flangeUnFinished } = res; + const flangeWeekRate = !flange.lastWeek + ? !flange.thisWeek + ? 0 + : 100 + : ((flange.thisWeek - flange.lastWeek) / flange.lastWeek) * 100; + + const flangeDayRate = !flange.yesterday + ? !flange.today + ? 0 + : 100 + : ((flange.today - flange.yesterday) / flange.yesterday) * 100; + + const todayMidnightUnix = dayjs().startOf('day').unix(); + // 获取每日新增数据 + const flangeDayAddedData: number[] = []; + if (flangeDayAdded.data.length) { + const flangeDayAddedDataMap = flangeDayAdded.data.reduce( + (acc, cur) => { + acc[cur.date_str] = cur.count; + return acc; + }, + {} as Record, + ); + let startDate = flangeDayAdded.data[0]?.date_unix; + + while (startDate <= todayMidnightUnix) { + const date_str = dayjs.unix(startDate).format('YYYY-MM-DD'); + flangeDayAddedData.push(flangeDayAddedDataMap[date_str] ?? 0); + startDate += 86400; + } + } + + // 获取每日完成数据 + const flangeFinishedData: number[] = []; + if (flangeFinished.data.length) { + const dataMap = flangeFinished.data.reduce( + (acc, cur) => { + acc[cur.date_str] = cur.count; + return acc; + }, + {} as Record, + ); + let startDate = flangeFinished.data[0]?.date_unix; + while (startDate <= todayMidnightUnix) { + const date_str = dayjs.unix(startDate).format('YYYY-MM-DD'); + flangeFinishedData.push(dataMap[date_str] ?? 0); + startDate += 86400; + } + } + + return { + flange: { + ...flange, + weekRate: `${flangeWeekRate.toFixed(0)}%`, + weekRateStatus: + flangeWeekRate > 0 ? 'up' : flangeWeekRate < 0 ? 'down' : undefined, + dayRate: `${flangeDayRate.toFixed(0)}%`, + dayRateStatus: + flangeDayRate > 0 ? 'up' : flangeDayRate < 0 ? 'down' : undefined, + }, + flangeDayAdded: { + ...flangeDayAdded, + formatData: flangeDayAddedData, + }, + flangeFinished: { + ...flangeFinished, + formatData: flangeFinishedData, + }, + flangeUnFinished: { + ...flangeUnFinished, + rate: flangeUnFinished.unFinished / flangeFinished.total, + }, + }; + }); + return ( + <> +
            + + 日均大修额 + {data?.flange?.avg} + + } + > +
            + + +
            +
            + + + + 日完成量 + {data?.flangeFinished?.today} + + } + > + + + + +  } + > + + + + + + + + } + value="8.63%" + trend="down" + /> + } + > + + + + + ); +}; diff --git a/web/src/pages/backend/Dashboard/Analysis/index.tsx b/web/src/pages/backend/Dashboard/Analysis/index.tsx index b373e10a8e5493e8edb7c2eb3c673c1141465f87..ba52abfac378a7a8d5d871f279b2e21e9c7a931b 100644 --- a/web/src/pages/backend/Dashboard/Analysis/index.tsx +++ b/web/src/pages/backend/Dashboard/Analysis/index.tsx @@ -1,83 +1,78 @@ -import { FormattedMessage } from '@@/exports'; -import { StatisticCard } from '@ant-design/pro-components'; -import { Col, Row } from 'antd'; +import { Access, useAccess } from '@umijs/max'; +import { Card, Col, Row } from 'antd'; -import ChartCard from './components/Carts/ChartCard'; -import DemoProgress from './components/Carts/DemoProgress'; -import DemoTinyArea from './components/Carts/DemoTinyArea'; -import DemoTinyColumn from './components/Carts/DemoTinyColumn'; -import DemoCardOne from './components/DemoCardOne'; -import DemoCardThree from './components/DemoCardThree'; -import DemoCardTwo from './components/DemoCardTwo'; +import AddressBook from './components/AddressBook'; +import CardOne from './components/CardOne'; +import CardThree from './components/CardThree'; +import CardTwo from './components/CardTwo'; +import DeviceTypeCircleList from './components/DeviceTypeCircleList'; +import FeedbackList from './components/FeedbackList'; +import ProjectLineList from './components/ProjectLineList'; +import SmallCards from './components/SmallCards'; -const { Statistic } = StatisticCard; export default () => { + const access = useAccess(); + return ( - - } - actionText={'Tips'} - loading={false} - total={126560} - suffix={} - footer={<>¥12,423} - > -
            - } value="8.63%" trend="down" /> - } value="6.47%" trend="up" /> -
            -
            - - - } - actionText={'总访问量'} - loading={false} - total={8860} - suffix={'Ips'} - footer={<>1,345} - > - - - - - } - actionText={'支付笔数'} - loading={false} - total={3608} - suffix={} - footer={<>60%} - > - - - - - } - actionText={'运营活动效果'} - loading={false} - total={78} - suffix={'%'} - footer={} value="8.63%" trend="down" />} - > - - + + + + + + + + - + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + - + + ); }; diff --git a/web/src/pages/backend/Device/index.tsx b/web/src/pages/backend/Device/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..1e1c27bfad037fb34a75329af1302ce353c76389 --- /dev/null +++ b/web/src/pages/backend/Device/index.tsx @@ -0,0 +1,205 @@ +import { useAccess, useModel } from '@@/exports'; +import { ActionType } from '@ant-design/pro-components'; +import { Access } from '@umijs/max'; +import { Button, message, Popconfirm } from 'antd'; +import React, { useRef } from 'react'; + +import XinDict from '@/components/XinDict'; +import XinTable from '@/components/XinTable'; +import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; +import { DeviceModel } from '@/services'; +import { deleteApi } from '@/services/common/table'; +import { DeviceModelSearchParams, getDeviceList } from '@/services/device'; +import { useListAll } from '@/services/hooks'; + +const api = '/device'; + +const Table: React.FC = () => { + const { getDictionaryData } = useModel('dictModel'); + const { getListAll: getProjectListAll } = useListAll({ + api: '/project/list', + }); + + const columns: ProFormColumnsAndProColumns[] = [ + { + title: '装置ID', + dataIndex: 'id', + hideInForm: true, + hideInTable: true, + hideInSearch: true, + }, + { + title: '法兰编号', + dataIndex: 'flange_code', + hideInForm: true, + hideInTable: true, + hideInSearch: true, + }, + { + title: '所属项目', + dataIndex: 'project_id', + hideInTable: true, + valueType: 'select', + formItemProps: { + rules: [{ required: true, message: '该项为必填' }], + }, + fieldProps: { + fieldNames: { label: 'name', value: 'id' }, + showSearch: true, + }, + request: async () => { + const res = await getProjectListAll(); + return res; + }, + }, + { + title: '装置名称', + dataIndex: 'id', + hideInTable: true, + hideInForm: true, + valueType: 'select', + formItemProps: { + rules: [{ required: true, message: '该项为必填' }], + }, + fieldProps: { + fieldNames: { label: 'name', value: 'id' }, + showSearch: true, + }, + request: async ({ + project_id, + keyWords, + }: { + project_id?: number; + keyWords?: string; + }) => { + // if (!project_id) { + // return []; + // } + const params: DeviceModelSearchParams = { pageSize: 9999 }; + if (project_id) { + params.project_id = project_id; + } + if (keyWords) { + params.name = keyWords; + } + const res = await getDeviceList(params); + return res.data; + }, + dependencies: ['project_id'], + }, + { + title: '所属项目', + dataIndex: 'project_name', + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + hideInForm: true, + hideInSearch: true, + }, + { + title: '装置名称', + dataIndex: 'name', + hideInSearch: true, + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + }, + { + title: '装置描述', + dataIndex: 'description', + hideInTable: true, + hideInSearch: true, + valueType: 'textarea', + }, + { + valueType: 'text', + title: '装置类型', + hideInSearch: true, + dataIndex: 'type', + request: async () => getDictionaryData('deviceType'), + render: (_, data) => , + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + }, + { + title: '目标公开', + dataIndex: 'is_public', + hideInSearch: true, + valueType: 'radio', + fieldProps: { + options: [ + { + value: 1, + label: '公开', + }, + { + value: 0, + label: '不公开', + }, + ], + }, + formItemProps: { + rules: [{ required: true, message: '该项为必填' }], + }, + }, + + { + valueType: 'dateTime', + title: '更新时间', + hideInForm: true, + hideInSearch: true, + dataIndex: 'update_time', + }, + ]; + + const access = useAccess(); + const actionRef = useRef(); + /** + * 删除节点 + * @param selectedRows + */ + const handleRemove = async (selectedRows: DeviceModel[]) => { + const hide = message.loading('正在删除'); + if (!selectedRows) { + message.warning('请选择需要删除的节点'); + return; + } + let ids = selectedRows.map((x) => x.id); + deleteApi(api + '/delete', { ids: ids.join() || '' }) + .then((res) => { + if (res.success) { + message.success(res.msg); + actionRef.current?.reloadAndRest?.(); + } else { + message.warning(res.msg); + } + }) + .finally(() => hide()); + }; + return ( + + headerTitle={'装置列表'} + tableApi={api} + columns={columns} + accessName={'device'} + deleteShow={false} + actionRef={actionRef} + operateRender={(record) => ( + <> + + { + handleRemove([record]); + }} + okText="确认" + cancelText="取消" + > + + + + + )} + /> + ); +}; + +export default Table; diff --git a/web/src/pages/backend/Feedback/Detail/index.module.scss b/web/src/pages/backend/Feedback/Detail/index.module.scss new file mode 100644 index 0000000000000000000000000000000000000000..7712749622c0de56b1242ddc34e94909004c8f86 --- /dev/null +++ b/web/src/pages/backend/Feedback/Detail/index.module.scss @@ -0,0 +1,14 @@ +.card { + display: flex; + justify-content: space-between; + align-items: center; + .imgBox { + width: 120px; + :global(.ant-divider) { + height: 100px; + } + } + :global(.ant-divider) { + height: 50px; + } +} diff --git a/web/src/pages/backend/Feedback/Detail/index.module.scss.d.ts b/web/src/pages/backend/Feedback/Detail/index.module.scss.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f6e4d9f8d3d852b6ce48419689077765740994d5 --- /dev/null +++ b/web/src/pages/backend/Feedback/Detail/index.module.scss.d.ts @@ -0,0 +1,6 @@ +declare const classNames: { + readonly card: "card"; + readonly imgBox: "imgBox"; + readonly "ant-divider": "ant-divider"; +}; +export = classNames; diff --git a/web/src/pages/backend/Feedback/Detail/index.scss b/web/src/pages/backend/Feedback/Detail/index.scss new file mode 100644 index 0000000000000000000000000000000000000000..a46c801c03623e7b49a09efe5ce506b2e345d020 --- /dev/null +++ b/web/src/pages/backend/Feedback/Detail/index.scss @@ -0,0 +1,50 @@ +.page-feedback-detail { + .my-card { + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; + gap: 16px; + .left { + flex: 1; + display: flex; + align-items: center; + gap: 8px; + overflow: auto; + .img-box { + border: 1px solid #e8e8e8; + padding: 12px; + > .ant-image { + &:not(:first-child) { + display: none; + } + } + } + .info { + height: 60px; + display: flex; + flex-direction: column; + justify-content: space-between; + overflow: hidden; + .text { + } + .reply { + } + } + } + .right { + flex-shrink: 0; + height: 60px; + display: flex; + flex-direction: column; + justify-content: space-between; + align-items: flex-end; + overflow: hidden; + white-space: nowrap; + .text { + } + .reply { + } + } + } +} diff --git a/web/src/pages/backend/Feedback/Detail/index.tsx b/web/src/pages/backend/Feedback/Detail/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..d81fe8ae195e09cfe29e6ee0712bff45f25bae98 --- /dev/null +++ b/web/src/pages/backend/Feedback/Detail/index.tsx @@ -0,0 +1,250 @@ +import type { + ProDescriptionsActionType, + ProFormInstance, +} from '@ant-design/pro-components'; +import { + ModalForm, + ProCard, + ProDescriptions, + ProFormTextArea, + ProList, +} from '@ant-design/pro-components'; +import { useModel } from '@umijs/max'; +import { + Button, + Card, + Divider, + Flex, + Image, + Spin, + Typography, + message, +} from 'antd'; +import { useRef, useState } from 'react'; +// import styles from './index.module.scss'; +import { + FeedbackModel, + addFeedbackReplyService, + getFeedbackService, +} from '@/services/feedback'; +import { useLocation } from '@umijs/max'; +import { useBoolean, useRequest } from 'ahooks'; + +import './index.scss'; +const { Paragraph, Text } = Typography; + +type RelationModel = FeedbackModel['relations'][number]; +const Table: React.FC = () => { + let { initialState } = useModel('@@initialState'); + + const formRef = useRef(); + const currentItemRef = useRef(null); + const [modalVisible, setModalVisible] = useState(false); + const location = useLocation(); + const searchParams = new URLSearchParams(location.search); + const id = Number(searchParams.get('id')); + + const { data, loading, refresh } = useRequest( + getFeedbackService, + { + defaultParams: [id], + }, + ); + + const actionRef = useRef(); + + const basicColumns = [ + { + title: '法兰Code', + dataIndex: 'flange_code', + }, + { + title: '法兰名称', + dataIndex: 'flange_name', + }, + ]; + + const [submitLoading, { setTrue, setFalse }] = useBoolean(); + const handleSubmit = async () => { + if (submitLoading) { + return; + } + setTrue(); + try { + await formRef.current!.validateFields!(); + const res = await addFeedbackReplyService({ + feedback_relation_id: currentItemRef.current!.id, + content: formRef.current!.getFieldValue('content'), + }); + currentItemRef.current!.replies.push(res); + message.success('提交成功'); + setFalse(); + formRef.current?.resetFields?.(); + } catch (e) { + console.error(e); + setFalse(); + } + }; + return ( + +
            + +
            + +
            +
            + {data?.relations && + data.relations.map((record, index) => ( +
            + +
            +
            +
            + {record.name} +
            +
            +
            +
            + {!record.imgs?.length ? null : ( +
            + + {record.imgs.map((img, i) => ( + + ))} + +
            + )} +
            +
            + {record.content} +
            +
            + + {record.replies?.[0]?.content || ''} + +
            +
            +
            +
            + {record.create_time} + + +
            +
            +
            +
            +
            + ))} +
            +
            + + { + formRef.current?.resetFields?.(); + }, + styles: { + body: { maxHeight: '60vh', overflow: 'auto' }, + }, + }} + width={600} + open={modalVisible} + onOpenChange={setModalVisible} + layout="horizontal" + submitter={{ + render: () => { + return [ + , + ]; + }, + }} + > +
            + + + + + +
            + + {modalVisible && ( + + + rowKey="id" + dataSource={currentItemRef.current?.replies} + metas={{ + title: { + dataIndex: 'user_name', + }, + // avatar: { + // dataIndex: 'user_avatar', + // editable: false, + // }, + description: { + dataIndex: 'content', + }, + subTitle: { + render: (dom, reply) => { + return ( + {reply.create_time} + ); + }, + }, + }} + /> + + )} +
            +
            +
            + ); +}; + +export default Table; diff --git a/web/src/pages/backend/Feedback/index.tsx b/web/src/pages/backend/Feedback/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..c0b40735164b92436102a34a773b6d9287f426c2 --- /dev/null +++ b/web/src/pages/backend/Feedback/index.tsx @@ -0,0 +1,87 @@ +import { useAccess, useModel } from '@@/exports'; +import { ActionType } from '@ant-design/pro-components'; +import { Access, history } from '@umijs/max'; +import { Button } from 'antd'; +import React, { useRef } from 'react'; + +import XinTable from '@/components/XinTable'; +import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; +import { FeedbackModel } from '@/services'; + +const api = '/feedback'; + +const Table: React.FC = () => { + const { getDictionaryData } = useModel('dictModel'); + + const columns: ProFormColumnsAndProColumns[] = [ + { + title: '反馈ID', + dataIndex: 'id', + hideInForm: true, + hideInTable: true, + hideInSearch: true, + }, + { + title: '装置名称', + dataIndex: 'device_name', + hideInSearch: true, + hideInForm: true, + }, + { + title: '所属项目', + dataIndex: 'project_name', + hideInForm: true, + hideInSearch: true, + }, + { + title: '法兰编号', + dataIndex: 'flange_code', + hideInForm: true, + }, + { + title: '法兰名称', + dataIndex: 'flange_name', + hideInSearch: true, + hideInForm: true, + }, + + { + valueType: 'dateTime', + title: '更新时间', + hideInForm: true, + hideInSearch: true, + dataIndex: 'update_time', + }, + ]; + + const access = useAccess(); + const actionRef = useRef(); + return ( + + headerTitle={'反馈列表'} + tableApi={api} + columns={columns} + accessName={'feedback'} + deleteShow={false} + actionRef={actionRef} + addShow={false} + editShow={false} + operateRender={(record) => ( + <> + + + + + )} + /> + ); +}; + +export default Table; diff --git a/web/src/pages/backend/Flange/Detail/constants.tsx b/web/src/pages/backend/Flange/Detail/constants.tsx new file mode 100644 index 0000000000000000000000000000000000000000..1d5456dd4c51a39802ab47ab10f7172c68c9baff --- /dev/null +++ b/web/src/pages/backend/Flange/Detail/constants.tsx @@ -0,0 +1,78 @@ +import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; +import { FlangeModel, LogModel } from '@/services'; +import { ProDescriptionsItemProps } from '@ant-design/pro-components'; +import { FlangeTypeMap } from '../list/constants'; + +export const BasicColumns: ProDescriptionsItemProps[] = [ + { + title: '法兰编号', + dataIndex: 'code', + }, + { + title: '法兰名称', + dataIndex: 'name', + }, + { + title: '法兰分类', + dataIndex: 'type', + valueType: 'select', + valueEnum: FlangeTypeMap, + }, + { + title: '管线号/设备位号', + dataIndex: 'equipment_code', + }, + { + title: '管线/设备名称', + dataIndex: 'equipment_name', + }, + { + title: '法兰位置', + dataIndex: 'location', + }, + { + title: '创建时间', + dataIndex: 'name', + }, + { + title: '创建人', + dataIndex: 'name', + }, +]; + +export const BasicColumnsKeys = BasicColumns.reduce( + (pre, cur) => { + pre[cur.dataIndex as string] = true; + return pre; + }, + { + code: true, + } as Record, +); + +export const FlangeLogColumns: ProFormColumnsAndProColumns[] = [ + { + title: '操作类型', + dataIndex: 'name', + hideInForm: true, + hideInSearch: true, + }, + { + title: '操作内容', + dataIndex: 'content', + hideInForm: true, + hideInSearch: true, + }, + { + title: '用户', + dataIndex: 'creator_name', + hideInForm: true, + hideInSearch: true, + }, + { + title: '操作时间', + dataIndex: 'create_time', + hideInForm: true, + hideInSearch: true, + }, +]; diff --git a/web/src/pages/backend/Flange/Detail/index.scss b/web/src/pages/backend/Flange/Detail/index.scss new file mode 100644 index 0000000000000000000000000000000000000000..87e88dbc8c5142061970db507ef254bb99e3690d --- /dev/null +++ b/web/src/pages/backend/Flange/Detail/index.scss @@ -0,0 +1,2 @@ +.page-flange-detail { +} diff --git a/web/src/pages/backend/Flange/Detail/index.tsx b/web/src/pages/backend/Flange/Detail/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..c3cea6f1b85f6b413ac328dfafa35e8c055b7fce --- /dev/null +++ b/web/src/pages/backend/Flange/Detail/index.tsx @@ -0,0 +1,161 @@ +import { FlangeModel, getFlange } from '@/services/flange'; +import type { + ProDescriptionsItemProps, + ProFormInstance, +} from '@ant-design/pro-components'; +import { ProCard, ProDescriptions } from '@ant-design/pro-components'; +import { useLocation, useModel } from '@umijs/max'; +import { useRequest } from 'ahooks'; +import { Spin, Tabs, Typography } from 'antd'; +import { useMemo, useRef } from 'react'; + +import XinTable from '@/components/XinTable'; +import { FlangeCheckProps, LogModel } from '@/services'; +import { max } from 'lodash-es'; +import { useFlangeParams } from '../hooks'; +import { + FlangeCheckMap, + FlangeTorqueFinalCheckMap, + FlangeTypeMap, +} from '../list/constants'; +import { BasicColumns, BasicColumnsKeys, FlangeLogColumns } from './constants'; +import './index.scss'; + +const { Paragraph, Text } = Typography; + +const Table: React.FC = () => { + let { initialState } = useModel('@@initialState'); + + const formRef = useRef(); + const location = useLocation(); + const searchParams = new URLSearchParams(location.search); + const id = Number(searchParams.get('id')); + + const { data, loading, refresh } = useRequest( + getFlange, + { + defaultParams: [id], + }, + ); + const { flangeParams } = useFlangeParams(); + + const columnsMap = useMemo(() => { + const result: Record[]> = {}; + const indexMap: Record = {}; + if (flangeParams) { + for (const param of flangeParams) { + const { is_param, code, name, show_table, type, index } = param; + if (BasicColumnsKeys[code]) { + continue; + } + const group_name = param.group_name || '其它信息'; + if (!result[group_name]) { + result[group_name] = []; + indexMap[group_name] = 0; + } + if (group_name !== '其它信息') { + indexMap[group_name] = max([indexMap[group_name], index])!; + } + + const dataIndex: string[] = []; + if (is_param === 1) { + dataIndex.push('data'); + } + dataIndex.push(code); + result[group_name].push({ + title: name, + dataIndex, + render: (_, data) => { + if (is_param !== 1) { + const d = data[code as keyof FlangeModel]; + switch (code) { + case 'type': + return FlangeTypeMap.get(d) ?? '-'; + case 'torque_final_check': + return FlangeTorqueFinalCheckMap.get(d) ?? '-'; + default: + return _ ?? '-'; + } + } + const d = data.data?.[code]; + switch (type) { + case 'check': + return d + ? FlangeCheckMap.get((d as FlangeCheckProps).check!) + : '-'; + default: + return d || '-'; + } + }, + }); + } + } + return Object.entries(indexMap) + .sort((a, b) => b[1] - a[1]) + .map(([group_name]) => ({ group_name, columns: result[group_name] })); + }, [flangeParams]); + + return ( + +
            + + + + {columnsMap.map(({ group_name, columns }) => ( +
            +
            +
            + + + +
            + ))} +
            +
            + + + + headerTitle={null} + tableApi={'/log'} + columns={FlangeLogColumns} + apiMap={{ + list: '/log/getList', + }} + defaultParamsMap={{ + list: { + type: 'flange', + flange_id: id, + }, + }} + rowSelectionShow={false} + deleteShow={false} + editShow={false} + addShow={false} + operateShow={false} + colProps={{ + span: 24, + }} + /> + + ), + }, + ]} + /> + +
            +
            + ); +}; + +export default Table; diff --git a/web/src/pages/backend/Flange/hooks.ts b/web/src/pages/backend/Flange/hooks.ts new file mode 100644 index 0000000000000000000000000000000000000000..91f81b3778732efa939317b16f282088c0f51cfb --- /dev/null +++ b/web/src/pages/backend/Flange/hooks.ts @@ -0,0 +1,28 @@ +import { FlangeParamModel } from '@/services'; +import { getFlangeParams } from '@/services/flange'; +import { useLocalStorageState, useRequest } from 'ahooks'; +import { useEffect } from 'react'; + +export function useFlangeParams() { + const { data, loading: flangeParamsLoading } = useRequest< + FlangeParamModel[], + [] + >(getFlangeParams, {}); + const [flangeParams, setFlangeParams] = useLocalStorageState< + FlangeParamModel[] + >('flangeParams', { + defaultValue: [], + }); + useEffect(() => { + if (data && data.length > 0) { + if ( + !flangeParams || + JSON.stringify(data) !== JSON.stringify(flangeParams) + ) { + setFlangeParams(data); + } + } + }, [data]); + + return { flangeParams, flangeParamsLoading }; +} diff --git a/web/src/pages/backend/Flange/index.tsx b/web/src/pages/backend/Flange/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..b039a090d104397f624447fef9302fefb31a05f9 --- /dev/null +++ b/web/src/pages/backend/Flange/index.tsx @@ -0,0 +1,7 @@ +import React from 'react'; + +const Table: React.FC = () => { + return
            ; +}; + +export default Table; diff --git a/web/src/pages/backend/Flange/list/constants.ts b/web/src/pages/backend/Flange/list/constants.ts new file mode 100644 index 0000000000000000000000000000000000000000..54929665a76af002acc970dfdce0c52adf1b3178 --- /dev/null +++ b/web/src/pages/backend/Flange/list/constants.ts @@ -0,0 +1,14 @@ +export const FlangeTypeMap = new Map([ + [1, '一般法兰'], + [2, '关键法兰'], +]); + +export const FlangeCheckMap = new Map([ + ['success', '成功'], + ['fail', '失败'], +]); + +export const FlangeTorqueFinalCheckMap = new Map([ + [0, undefined], + [1, '合格'], +]); diff --git a/web/src/pages/backend/Flange/list/index.scss b/web/src/pages/backend/Flange/list/index.scss new file mode 100644 index 0000000000000000000000000000000000000000..57dcedf1c033adbfdeb6c011db2f735d249ea967 --- /dev/null +++ b/web/src/pages/backend/Flange/list/index.scss @@ -0,0 +1,11 @@ +.page-flange-list { + .actions { + display: flex; + align-items: center; + gap: 8px; + + &.is-complete { + background-color: aliceblue; + } + } +} diff --git a/web/src/pages/backend/Flange/list/index.tsx b/web/src/pages/backend/Flange/list/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..c68e5541fa5554a5cce3ad032628cea031266851 --- /dev/null +++ b/web/src/pages/backend/Flange/list/index.tsx @@ -0,0 +1,318 @@ +import Icon from '@/assets/static/logo.png'; +import XinTable from '@/components/XinTable'; +import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; +import { FlangeCheckProps, FlangeModel } from '@/services'; +import { deleteApi } from '@/services/common/table'; +import { DeviceModelSearchParams, getDeviceList } from '@/services/device'; +import { exportFlangeCards, exportFlangeTpl } from '@/services/flange'; +import { useListAll } from '@/services/hooks'; +import { getH5Domain } from '@/utils/config'; +import { useAccess, useModel } from '@@/exports'; +import { ActionType, ProFormUploadDragger } from '@ant-design/pro-components'; +import { Access, history } from '@umijs/max'; +import { Button, message, Modal, Popconfirm, QRCode } from 'antd'; +import clsx from 'clsx'; +import React, { useMemo, useRef } from 'react'; +import { useFlangeParams } from '../hooks'; +import { + FlangeCheckMap, + FlangeTorqueFinalCheckMap, + FlangeTypeMap, +} from './constants'; +import './index.scss'; + +const api = '/flange'; +const h5Domain = getH5Domain(); + +const Table: React.FC = () => { + const { getDictionaryData } = useModel('dictModel'); + const { getListAll: getProjectListAll } = useListAll({ + api: '/project/list', + }); + + const { flangeParams } = useFlangeParams(); + + const columns = useMemo(() => { + const result: ProFormColumnsAndProColumns[] = [ + { + title: '法兰ID', + dataIndex: 'id', + hideInForm: true, + hideInTable: true, + hideInSearch: true, + }, + + { + title: '项目名称', + dataIndex: 'project_id', + hideInTable: true, + valueType: 'select', + formItemProps: { + // rules: [{ required: true, message: '该项为必填' }], + }, + fieldProps: { + fieldNames: { label: 'name', value: 'id' }, + showSearch: true, + }, + request: async () => { + const res = await getProjectListAll(); + return res; + }, + }, + + { + title: '装置名称', + dataIndex: 'device_id', + hideInTable: true, + valueType: 'select', + formItemProps: { + // rules: [{ required: true, message: '该项为必填' }], + }, + fieldProps: { + fieldNames: { label: 'name', value: 'id' }, + showSearch: true, + }, + request: async ({ + project_id, + keyWords, + }: { + project_id?: number; + keyWords?: string; + }) => { + // if (!project_id) { + // return []; + // } + const params: DeviceModelSearchParams = { pageSize: 9999 }; + if (project_id) { + params.project_id = project_id; + } + if (keyWords) { + params.name = keyWords; + } + const res = await getDeviceList(params); + return res.data; + }, + dependencies: ['project_id'], + }, + { + title: '文件上传', + dataIndex: 'upload', + hideInTable: true, + hideInSearch: true, + renderFormItem: (schema, config, form) => ( + { + const originFileObj = + file.status === 'removed' ? undefined : file.originFileObj; + form.setFieldValue('file', originFileObj); + }} + /> + ), + }, + { + title: '法兰名称', + key: 'name', + dataIndex: 'name', + hideInForm: true, + hideInTable: true, + }, + { + title: '法兰位置', + key: 'location', + dataIndex: 'location', + hideInForm: true, + hideInTable: true, + }, + { + title: '法兰编号', + key: 'code', + dataIndex: 'code', + hideInForm: true, + hideInTable: true, + }, + ]; + if (flangeParams) { + for (const param of flangeParams) { + const { is_param, code, name, show_table, type } = param; + if (!show_table) { + continue; + } + const dataIndex: string[] = []; + if (is_param === 1) { + dataIndex.push('data'); + } + dataIndex.push(code); + result.push({ + title: name, + dataIndex, + hideInForm: true, + hideInTable: show_table !== 1, + hideInSearch: true, + render: (_, data) => { + if (is_param !== 1) { + const d = data[code as keyof FlangeModel]; + switch (code) { + case 'type': + return FlangeTypeMap.get(d) ?? '-'; + case 'torque_final_check': + return FlangeTorqueFinalCheckMap.get(d) ?? '-'; + default: + return _ ?? '-'; + } + } + const d = data.data[code]; + switch (type) { + case 'check': + return d + ? FlangeCheckMap.get((d as FlangeCheckProps).check!) + : '-'; + default: + return d || '-'; + } + }, + }); + } + } + result.push( + ...([ + { + valueType: 'dateTime', + title: '更新时间', + hideInForm: true, + hideInSearch: true, + dataIndex: 'update_time', + }, + ] as ProFormColumnsAndProColumns[]), + ); + return result; + }, [flangeParams]); + + const access = useAccess(); + const actionRef = useRef(); + /** + * 删除节点 + * @param selectedRows + */ + const handleRemove = async (selectedRows: FlangeModel[]) => { + const hide = message.loading('正在删除'); + if (!selectedRows) { + message.warning('请选择需要删除的节点'); + return; + } + let ids = selectedRows.map((x) => x.id); + deleteApi(api + '/delete', { ids: ids.join() || '' }) + .then((res) => { + if (res.success) { + message.success(res.msg); + actionRef.current?.reloadAndRest?.(); + } else { + message.warning(res.msg); + } + }) + .finally(() => hide()); + }; + + const [modal, contextHolder] = Modal.useModal(); + const showQRCode = (code: string) => { + modal.info({ + title: '二维码', + icon: null, + content: ( + + ), + okText: '关闭', + }); + }; + return ( + <> + + headerTitle={'法兰列表'} + tableApi={api} + columns={columns} + accessName={'flange'} + deleteShow={false} + actionRef={actionRef} + editShow={false} + addText={`导入`} + addApi={`/flange/batchImportFromExcel`} + colProps={{ + span: 24, + }} + className="page-flange-list" + toolBarRender={(action, rows) => { + return [ + , + , + ]; + }} + operateWidth="120" + operateRender={(record) => ( +
            + + { + handleRemove([record]); + }} + okText="确认" + cancelText="取消" + > + + + + + +
            + )} + /> + {contextHolder} + + ); +}; + +export default Table; diff --git a/web/src/pages/backend/Flange/param/components/TableEditor/TableEditor.tsx b/web/src/pages/backend/Flange/param/components/TableEditor/TableEditor.tsx new file mode 100644 index 0000000000000000000000000000000000000000..7a52a60671082748f7014f3ec2945a241a89c608 --- /dev/null +++ b/web/src/pages/backend/Flange/param/components/TableEditor/TableEditor.tsx @@ -0,0 +1,143 @@ +/* eslint-disable @typescript-eslint/no-use-before-define */ +import type { FormInstance, ProColumns } from '@ant-design/pro-components'; +import { + EditableProTable, + ProCard, + ProFormField, +} from '@ant-design/pro-components'; +import { Button } from 'antd'; +import React, { useRef, useState } from 'react'; + +type DataSourceType = { + id: number; + label?: string | number; + value?: string | number; +}; + +const getDefaultData = () => + new Array(2).fill(1).map((_, index) => { + return { + id: index + Math.random(), + label: '', + value: '', + }; + }) as DataSourceType[]; + +interface PropsType { + form: FormInstance; // 表单 + code: string; +} +export const TableEditor = (props: PropsType) => { + const { form, code } = props; + // const [dataSource, setDataSource] = useState( + // form.getFieldValue(code) || getDefaultData(), + // ); + const dataSource = useRef( + (form.getFieldValue(code) as DataSourceType[] | undefined)?.map?.( + (item, index) => ({ ...item, id: index + Math.random() }), + ) || getDefaultData(), + ); + const setDataSource = (data: readonly DataSourceType[]) => { + dataSource.current = data; + form.setFieldsValue({ + [code]: getFormData(dataSource.current), + }); + }; + const [editableKeys, setEditableRowKeys] = useState(() => + dataSource.current.map(({ id }) => id), + ); + + const columns: ProColumns[] = [ + { + title: '名称', + dataIndex: 'label', + width: '30%', + }, + { + title: '值', + dataIndex: 'value', + formItemProps: { + rules: [ + { + required: true, + whitespace: true, + message: '此项是必填项', + }, + ], + }, + }, + { + title: '操作', + valueType: 'option', + render: () => { + return null; + }, + }, + ]; + + return ( + <> + + columns={columns} + rowKey="id" + value={dataSource.current} + onChange={setDataSource} + recordCreatorProps={{ + newRecordType: 'dataSource', + record: () => ({ + id: dataSource.current.length + Math.random(), + label: '', + value: '', + }), + }} + toolBarRender={() => { + return [ + , + ]; + }} + editable={{ + type: 'multiple', + editableKeys, + actionRender: (row, config, defaultDoms) => { + return [defaultDoms.delete]; + }, + onValuesChange: (record, recordList) => { + setDataSource(recordList); + }, + onChange: setEditableRowKeys, + }} + /> + + + + + ); +}; + +function getFormData(dataSource: readonly DataSourceType[] = []) { + return dataSource + .filter(({ value }) => value !== undefined && value !== '') + .map(({ value, label }) => { + return { value, label }; + }); +} diff --git a/web/src/pages/backend/Flange/param/components/TableEditor/index.ts b/web/src/pages/backend/Flange/param/components/TableEditor/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..2b47ad38ba4298447cc0ad96fc1b500f97141800 --- /dev/null +++ b/web/src/pages/backend/Flange/param/components/TableEditor/index.ts @@ -0,0 +1 @@ +export * from './TableEditor'; diff --git a/web/src/pages/backend/Flange/param/components/index.ts b/web/src/pages/backend/Flange/param/components/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..2b47ad38ba4298447cc0ad96fc1b500f97141800 --- /dev/null +++ b/web/src/pages/backend/Flange/param/components/index.ts @@ -0,0 +1 @@ +export * from './TableEditor'; diff --git a/web/src/pages/backend/Flange/param/constants.ts b/web/src/pages/backend/Flange/param/constants.ts new file mode 100644 index 0000000000000000000000000000000000000000..1145e7ef971b877587ddb702a7da9a2a212d6b75 --- /dev/null +++ b/web/src/pages/backend/Flange/param/constants.ts @@ -0,0 +1,59 @@ +export const FlangeParamTypeMap = new Map([ + [ + 'input', + { + text: '输入框', + }, + ], + [ + 'number', + { + text: '数字框', + }, + ], + [ + 'textarea', + { + text: '文本域', + }, + ], + [ + 'select', + { + text: '下拉列表', + }, + ], + [ + 'check', + { + text: '检查', + }, + ], + [ + 'calc', + { + text: '计算', + }, + ], + [ + 'custom', + { + text: '自定义', + }, + ], +]); + +export const FlangeParamBooleanMap = new Map([ + [ + 1, + { + text: '是', + }, + ], + [ + 0, + { + text: '否', + }, + ], +]); diff --git a/web/src/pages/backend/Flange/param/index.less b/web/src/pages/backend/Flange/param/index.less new file mode 100644 index 0000000000000000000000000000000000000000..7775da2393b066497b283524835ce6ce9d95e9b6 --- /dev/null +++ b/web/src/pages/backend/Flange/param/index.less @@ -0,0 +1,10 @@ +.container { + padding: 24px; + background: #fff; + + .header { + margin-bottom: 16px; + display: flex; + justify-content: flex-end; + } +} \ No newline at end of file diff --git a/web/src/pages/backend/Flange/param/index.tsx b/web/src/pages/backend/Flange/param/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..8df0dabad6fe32928f3582bede1a292461806f6f --- /dev/null +++ b/web/src/pages/backend/Flange/param/index.tsx @@ -0,0 +1,222 @@ +import { useAccess, useModel } from '@@/exports'; +import { ActionType } from '@ant-design/pro-components'; +import { Access } from '@umijs/max'; +import { Button, message, Popconfirm } from 'antd'; +import React, { useRef } from 'react'; + +import XinTable from '@/components/XinTable'; +import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; +import { FlangeParamModel } from '@/services'; +import { deleteApi } from '@/services/common/table'; +import { TableEditor } from './components'; +import { FlangeParamBooleanMap, FlangeParamTypeMap } from './constants'; + +const api = '/flangeParam'; + +const Table: React.FC = () => { + const { getDictionaryData } = useModel('dictModel'); + + const columns: ProFormColumnsAndProColumns[] = [ + { + title: '法兰参数ID', + dataIndex: 'id', + hideInForm: true, + hideInTable: true, + hideInSearch: true, + }, + { + title: '参数Code', + dataIndex: 'code', + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + }, + { + title: '参数名称', + dataIndex: 'name', + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + }, + { + title: '参数类型', + dataIndex: 'type', + valueType: 'radio', + valueEnum: FlangeParamTypeMap, + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + hideInForm: true, + hideInTable: true, + }, + { + title: '参数类型', + dataIndex: 'type', + valueType: 'radio', + valueEnum: FlangeParamTypeMap, + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + hideInSearch: true, + fieldProps: { + defaultValue: 'input', + }, + }, + { + title: '分组名称', + dataIndex: 'group_name', + }, + { + title: '排序', + dataIndex: 'index', + hideInTable: true, + hideInSearch: true, + fieldProps: {}, + }, + { + title: '列表展示', + dataIndex: 'show_table', + valueType: 'radio', + valueEnum: FlangeParamBooleanMap, + hideInForm: true, + hideInTable: true, + }, + { + title: '列表展示', + dataIndex: 'show_table', + valueType: 'radio', + valueEnum: FlangeParamBooleanMap, + hideInSearch: true, + fieldProps: { + defaultValue: 1, + }, + }, + { + title: '模版导出', + dataIndex: 'is_tpl', + valueType: 'radio', + valueEnum: FlangeParamBooleanMap, + hideInForm: true, + hideInTable: true, + }, + { + title: '模版导出', + dataIndex: 'is_tpl', + valueType: 'radio', + valueEnum: FlangeParamBooleanMap, + hideInSearch: true, + fieldProps: { + defaultValue: 0, + }, + }, + { + title: '是否JSON DATA参数', + dataIndex: 'is_param', + valueType: 'radio', + valueEnum: FlangeParamBooleanMap, + hideInForm: true, + hideInTable: true, + }, + { + title: '是否JSON DATA参数', + dataIndex: 'is_param', + valueType: 'radio', + valueEnum: FlangeParamBooleanMap, + hideInSearch: true, + fieldProps: { + defaultValue: 1, + }, + }, + { + title: '是否安装检修参数', + dataIndex: 'is_check', + hideInSearch: true, + valueType: 'radio', + valueEnum: FlangeParamBooleanMap, + fieldProps: { + defaultValue: 0, + }, + }, + { + title: '后缀', + dataIndex: 'unit_list', + hideInTable: true, + hideInSearch: true, + valueType: 'jsonCode', + fieldProps: { + defaultValue: '[]', + lang: 'json', + language: 'json', + }, + }, + { + title: '列表项', + dataIndex: 'item_list', + hideInTable: true, + hideInSearch: true, + valueType: 'jsonCode', + fieldProps: { + defaultValue: [], + }, + renderFormItem: (schema, config, form) => { + return ; + }, + colProps: { span: 24 }, + }, + { + valueType: 'dateTime', + title: '更新时间', + hideInForm: true, + hideInSearch: true, + dataIndex: 'update_time', + }, + ]; + + const access = useAccess(); + const actionRef = useRef(); + /** + * 删除节点 + * @param selectedRows + */ + const handleRemove = async (selectedRows: FlangeParamModel[]) => { + const hide = message.loading('正在删除'); + if (!selectedRows) { + message.warning('请选择需要删除的节点'); + return; + } + let ids = selectedRows.map((x) => x.id); + deleteApi(api + '/delete', { ids: ids.join() || '' }) + .then((res) => { + if (res.success) { + message.success(res.msg); + actionRef.current?.reloadAndRest?.(); + } else { + message.warning(res.msg); + } + }) + .finally(() => hide()); + }; + return ( + + headerTitle={'法兰参数列表'} + tableApi={api} + columns={columns} + accessName={'flange.param'} + deleteShow={false} + actionRef={actionRef} + operateRender={(record) => ( + <> + + { + handleRemove([record]); + }} + okText="确认" + cancelText="取消" + > + + + + + )} + /> + ); +}; + +export default Table; diff --git a/web/src/pages/backend/Flange/qrcode/index.tsx b/web/src/pages/backend/Flange/qrcode/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..9c859e5fc95c37e671908ad04ae167c49571215e --- /dev/null +++ b/web/src/pages/backend/Flange/qrcode/index.tsx @@ -0,0 +1,206 @@ +import { useAccess, useModel } from '@@/exports'; +import { ActionType } from '@ant-design/pro-components'; +import { Access } from '@umijs/max'; +import { Button, message, Modal, Popconfirm, QRCode } from 'antd'; +import React, { useRef } from 'react'; + +import Icon from '@/assets/static/logo.png'; +import XinTable from '@/components/XinTable'; +import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; +import { FlangeQrcodeModel } from '@/services'; +import { deleteApi } from '@/services/common/table'; +import { exportFlangeQrcode } from '@/services/flange'; +import { useListAll } from '@/services/hooks'; +import { getH5Domain } from '@/utils/config'; + +const api = '/flangeQrcode'; +const h5Domain = getH5Domain(); + +const Table: React.FC = () => { + const { getDictionaryData } = useModel('dictModel'); + const { getListAll: getProjectListAll } = useListAll({ + api: '/project/list', + }); + const { getListAll: getDeviceListAll } = useListAll({ + api: '/device/list', + }); + + const columns: ProFormColumnsAndProColumns[] = [ + { + title: '法兰二维码ID', + dataIndex: 'id', + hideInForm: true, + hideInTable: true, + hideInSearch: true, + }, + { + title: 'QRCODE编号', + dataIndex: 'code', + hideInForm: true, + hideInSearch: true, + }, + { + title: '法兰编号', + dataIndex: 'flange_code', + hideInForm: true, + }, + { + title: '装置名称', + dataIndex: 'device_name', + hideInForm: true, + hideInSearch: true, + }, + { + title: '批次', + key: 'table.batch_name', + dataIndex: 'batch_name', + hideInSearch: true, + hideInForm: true, + }, + { + title: '批次名称', + dataIndex: 'batch_name', + hideInSearch: true, + hideInTable: true, + colProps: { span: 16 }, + }, + { + title: '数量', + dataIndex: 'count', + hideInSearch: true, + hideInTable: true, + valueType: 'digit', + colProps: { span: 16 }, + fieldProps: { + style: { + width: '100%', + }, + }, + }, + { + title: '状态', + dataIndex: 'status', + hideInForm: true, + valueType: 'radio', + valueEnum: new Map([ + [ + 1, + { + text: '绑定', + }, + ], + [ + 0, + { + text: '未绑定', + }, + ], + ]), + }, + { + valueType: 'dateTime', + title: '更新时间', + hideInForm: true, + hideInSearch: true, + dataIndex: 'update_time', + }, + ]; + + const access = useAccess(); + const actionRef = useRef(); + /** + * 删除节点 + * @param selectedRows + */ + const handleRemove = async (selectedRows: FlangeQrcodeModel[]) => { + const hide = message.loading('正在删除'); + if (!selectedRows) { + message.warning('请选择需要删除的节点'); + return; + } + let ids = selectedRows.map((x) => x.id); + deleteApi(api + '/delete', { ids: ids.join() || '' }) + .then((res) => { + if (res.success) { + message.success(res.msg); + actionRef.current?.reloadAndRest?.(); + } else { + message.warning(res.msg); + } + }) + .finally(() => hide()); + }; + + const [modal, contextHolder] = Modal.useModal(); + const showQRCode = (code: string) => { + modal.info({ + title: '二维码', + icon: null, + content: ( + + ), + okText: '关闭', + }); + }; + return ( + <> + {contextHolder} + + + headerTitle={'法兰二维码列表'} + tableApi={api} + columns={columns} + accessName={'flange.qrcode'} + actionRef={actionRef} + editShow={false} + addApi="/flangeQrcode/batchGenerate" + addText="批量创建" + toolBarRender={(action, rows) => { + return [ + , + ]; + }} + operateRender={(record) => ( + <> + + { + handleRemove([record]); + }} + okText="确认" + cancelText="取消" + > + + + + + + )} + /> + + ); +}; + +export default Table; diff --git a/web/src/pages/backend/Login/index.tsx b/web/src/pages/backend/Login/index.tsx index d5e5884624515571acecf73a20f5c036773e45f0..d12d067dba2aaf0d64290c1d8363ee1b49f1f640 100644 --- a/web/src/pages/backend/Login/index.tsx +++ b/web/src/pages/backend/Login/index.tsx @@ -13,6 +13,14 @@ import { adminLogin } from '@/services/admin'; const Login: React.FC = () => { const { initialState } = useModel('@@initialState'); const [loginType, setLoginType] = useState('account'); + + if (!initialState) { + console.log('initialState', initialState); + setTimeout(() => { + // eslint-disable-next-line no-self-assign + location.href = location.href; + }, 100); + } const handleSubmit = async (values: USER.UserLoginFrom) => { // 登录 const msg = await adminLogin({ ...values, loginType }); diff --git a/web/src/pages/backend/Project/index.less b/web/src/pages/backend/Project/index.less new file mode 100644 index 0000000000000000000000000000000000000000..7775da2393b066497b283524835ce6ce9d95e9b6 --- /dev/null +++ b/web/src/pages/backend/Project/index.less @@ -0,0 +1,10 @@ +.container { + padding: 24px; + background: #fff; + + .header { + margin-bottom: 16px; + display: flex; + justify-content: flex-end; + } +} \ No newline at end of file diff --git a/web/src/pages/backend/Project/index.tsx b/web/src/pages/backend/Project/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..def8ae3e35fdd34da60e5c21426f3ef9ce151bdd --- /dev/null +++ b/web/src/pages/backend/Project/index.tsx @@ -0,0 +1,184 @@ +import { useAccess, useModel } from '@@/exports'; +import { ActionType } from '@ant-design/pro-components'; +import { Access } from '@umijs/max'; +import { Button, message, Popconfirm } from 'antd'; +import React, { useRef } from 'react'; + +import UploadImgItem from '@/components/XinForm/UploadImgItem'; +import XinTable from '@/components/XinTable'; +import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; +import { ProjectModel } from '@/services'; +import { deleteApi } from '@/services/common/table'; +import { useListAll } from '@/services/hooks'; + +const api = '/project'; + +const Table: React.FC = () => { + const { getDictionaryData } = useModel('dictModel'); + const { getListAll: getAdminListAll } = useListAll({ api: '/admin/list' }); + + const columns: ProFormColumnsAndProColumns[] = [ + { + title: '项目ID', + dataIndex: 'id', + hideInForm: true, + hideInTable: true, + hideInSearch: true, + }, + { + title: '项目名称', + dataIndex: 'name', + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + }, + { + title: '项目描述', + dataIndex: 'description', + hideInTable: true, + hideInSearch: true, + valueType: 'textarea', + }, + { + title: '上传图片', + dataIndex: ['image', 'image_id'], + hideInSearch: true, + hideInTable: true, + valueType: 'image', + renderFormItem: (schema, config, form) => { + return ( + + ); + }, + }, + { + title: '目标公开', + dataIndex: 'is_public', + hideInSearch: true, + valueType: 'radio', + valueEnum: new Map([ + [ + 1, + { + text: '公开', + }, + ], + [ + 0, + { + text: '不公开', + }, + ], + ]), + formItemProps: { rules: [{ required: true, message: '该项为必填' }] }, + }, + { + title: '负责人', + dataIndex: 'leader_ids', + hideInSearch: true, + valueType: 'select', + formItemProps: { + rules: [{ required: true, message: '该项为必填' }], + }, + fieldProps: { + fieldNames: { label: 'nickname', value: 'id' }, + mode: 'multiple', + }, + request: async () => { + const res = await getAdminListAll(); + return res; + }, + // renderText(text, record) { + // return record.leaders.map((user) => user.nickname).join(','); + // }, + }, + { + title: '操作员', + dataIndex: 'operator_ids', + hideInSearch: true, + valueType: 'select', + formItemProps: { + rules: [{ required: true, message: '该项为必填' }], + }, + fieldProps: { + fieldNames: { label: 'nickname', value: 'id' }, + mode: 'multiple', + }, + request: async () => { + const res = await getAdminListAll(); + return res; + }, + renderText(text, record) { + return record.operators.map((user) => user.nickname).join(','); + }, + }, + + { + valueType: 'dateTime', + title: '更新时间', + hideInForm: true, + hideInSearch: true, + dataIndex: 'update_time', + }, + ]; + + const access = useAccess(); + const actionRef = useRef(); + /** + * 删除节点 + * @param selectedRows + */ + const handleRemove = async (selectedRows: ProjectModel[]) => { + const hide = message.loading('正在删除'); + if (!selectedRows) { + message.warning('请选择需要删除的节点'); + return; + } + let ids = selectedRows.map((x) => x.id); + deleteApi(api + '/delete', { ids: ids.join() || '' }) + .then((res) => { + if (res.success) { + message.success(res.msg); + actionRef.current?.reloadAndRest?.(); + } else { + message.warning(res.msg); + } + }) + .finally(() => hide()); + }; + return ( + + headerTitle={'项目列表'} + tableApi={api} + columns={columns} + accessName={'project'} + deleteShow={false} + actionRef={actionRef} + operateRender={(record) => ( + <> + + { + handleRemove([record]); + }} + okText="确认" + cancelText="取消" + > + + + + + )} + /> + ); +}; + +export default Table; diff --git a/web/src/pages/backend/System/Dict/components/DictItem/index.tsx b/web/src/pages/backend/System/Dict/components/DictItem/index.tsx index 39bf412c775edefc4078b0dbc70cf40790f2f085..22321cb43928cf5c4d12f4229687225cd6e29295 100644 --- a/web/src/pages/backend/System/Dict/components/DictItem/index.tsx +++ b/web/src/pages/backend/System/Dict/components/DictItem/index.tsx @@ -1,21 +1,21 @@ -import {ProTableProps} from "@ant-design/pro-components"; -import {useModel} from '@umijs/max'; -import {Drawer, message} from 'antd'; +import { ProTableProps } from '@ant-design/pro-components'; +import { useModel } from '@umijs/max'; +import { Drawer, message } from 'antd'; -import XinTable from '@/components/XinTable' -import {ProFormColumnsAndProColumns} from '@/components/XinTable/typings'; -import {addApi, listApi} from "@/services/common/table"; +import XinTable from '@/components/XinTable'; +import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; +import { addApi, listApi } from '@/services/common/table'; const api = '/system.dictItem'; interface Data { - id?: number - name?: string - value?: string - create_time?: string - weight?: string - status?: string - update_time?: string + id?: number; + name?: string; + value?: string; + create_time?: string; + weight?: string; + status?: string; + update_time?: string; } const columns: ProFormColumnsAndProColumns[] = [ @@ -23,7 +23,7 @@ const columns: ProFormColumnsAndProColumns[] = [ title: 'ID', dataIndex: 'id', hideInForm: true, - hideInTable: true + hideInTable: true, }, { title: '名称', @@ -33,7 +33,7 @@ const columns: ProFormColumnsAndProColumns[] = [ { title: '数据值', dataIndex: 'value', - valueType: 'text' + valueType: 'text', }, { title: '状态类型', @@ -41,84 +41,97 @@ const columns: ProFormColumnsAndProColumns[] = [ valueType: 'text', valueEnum: { success: { text: 'success', status: 'Success' }, - error: { text: 'error', status: 'Error'}, - default: { text: 'default', status: 'Default'}, - processing: { text: 'processing', status: 'Processing'}, - warning: { text: 'warning', status: 'Warning'}, + error: { text: 'error', status: 'Error' }, + default: { text: 'default', status: 'Default' }, + processing: { text: 'processing', status: 'Processing' }, + warning: { text: 'warning', status: 'Warning' }, }, - initialValue: 'default' + initialValue: 'default', }, { title: '是否启用', dataIndex: 'switch', valueType: 'switch', - initialValue: true + initialValue: true, }, { title: '创建时间', dataIndex: 'create_time', valueType: 'date', hideInForm: true, - hideInTable: true + hideInTable: true, }, { title: '修改时间', dataIndex: 'update_time', valueType: 'date', hideInForm: true, - hideInTable: true + hideInTable: true, }, ]; -const App: React.FC<{open : boolean;onClose: ()=>void; dictData: {[key:string]: any}}> = (props) => { +const App: React.FC<{ + open: boolean; + onClose: () => void; + dictData: { [key: string]: any }; +}> = (props) => { const { open, onClose, dictData } = props; - const {refreshDict} = useModel('dictModel') + const { refreshDict } = useModel('dictModel'); const handleAdd = async (formData: Data) => { const hide = message.loading('正在添加'); - return addApi(api+'/add', Object.assign({dict_id:dictData.id},formData)).then(res=>{ - if (res.success) { - message.success('添加成功'); - refreshDict(); - return true - } - return false - }).finally(()=>hide()); + return addApi( + api + '/add', + Object.assign({ dict_id: dictData.id }, formData), + ) + .then((res) => { + if (res.success) { + message.success('添加成功'); + refreshDict(); + return true; + } + return false; + }) + .finally(() => hide()); }; - const request:ProTableProps['request'] = async (params, sorter, filter) => { - const { data, success } = await listApi(api+'/list', { + const request: ProTableProps['request'] = async ( + params, + sorter, + filter, + ) => { + const { data, success } = await listApi(api + '/list', { ...params, sorter, filter, - dictId: dictData.id + dictId: dictData.id, }); return { data: data?.data || [], success, - total: data?.total + total: data?.total, }; - } + }; return ( - - - search={false} - headerTitle={dictData.name} - key={dictData.id} - tableApi={api} - columns={columns} - handleAdd={handleAdd} - rowSelectionShow = {false} - accessName={'system.dict.item'} - request = {request} - /> - + + + search={false} + headerTitle={dictData.name} + key={dictData.id} + tableApi={api} + columns={columns} + handleAdd={handleAdd} + rowSelectionShow={false} + accessName={'system.dict.item'} + request={request} + /> + ); }; diff --git a/web/src/pages/backend/System/File/index.tsx b/web/src/pages/backend/System/File/index.tsx index 7f9e27387b022c7589330080641e8c884488cf20..c0cf1cc6bbcb0728e132c7fd514c8b658e97e697 100644 --- a/web/src/pages/backend/System/File/index.tsx +++ b/web/src/pages/backend/System/File/index.tsx @@ -79,7 +79,7 @@ export default () => { {selectShow && ( diff --git a/web/src/pages/backend/System/Monitor/index.tsx b/web/src/pages/backend/System/Monitor/index.tsx index e64da12f520188eaf67175736ce28b058fb00417..9425c3d6741954470516a9670c83e0572dbb21a9 100644 --- a/web/src/pages/backend/System/Monitor/index.tsx +++ b/web/src/pages/backend/System/Monitor/index.tsx @@ -1,25 +1,25 @@ import { BetaSchemaForm } from '@ant-design/pro-components'; -import { Avatar, Space, Tooltip } from 'antd'; +import { Avatar, Button, Space, Tooltip } from 'antd'; -import XinTable from '@/components/XinTable' +import XinTable from '@/components/XinTable'; import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; const api = '/system.monitor'; interface Data { - id?: number - name?: string - controller?: string - action?: string - ip?: string - host?: string - url?: string - data?: string - params?: string - user_id?: number - address?: string - user?: USER.AdminInfo - create_time?: string + id?: number; + name?: string; + controller?: string; + action?: string; + ip?: string; + host?: string; + url?: string; + data?: string; + params?: string; + user_id?: number; + address?: string; + user?: USER.AdminInfo; + create_time?: string; } const Table: React.FC = () => { @@ -29,7 +29,7 @@ const Table: React.FC = () => { dataIndex: 'id', hideInForm: true, sorter: true, - hideInSearch: true + hideInSearch: true, }, { title: '接口名称', @@ -39,27 +39,27 @@ const Table: React.FC = () => { { title: '控制器', dataIndex: 'controller', - valueType: 'text' + valueType: 'text', }, { title: '方法', dataIndex: 'action', - valueType: 'text' + valueType: 'text', }, { title: '访问IP', dataIndex: 'ip', - valueType: 'text' + valueType: 'text', }, { title: '访问地址', dataIndex: 'address', - valueType: 'text' + valueType: 'text', }, { title: 'HOST', dataIndex: 'host', - valueType: 'text' + valueType: 'text', }, { title: '请求用户', @@ -77,8 +77,8 @@ const Table: React.FC = () => { - ) - } + ); + }, }, { title: '请求用户ID', @@ -96,35 +96,34 @@ const Table: React.FC = () => { - ) - } + ); + }, }, { title: '请求地址', dataIndex: 'url', valueType: 'text', hideInSearch: true, - hideInTable: true + hideInTable: true, }, { title: 'POST数据', dataIndex: 'data', valueType: 'jsonCode', hideInSearch: true, - hideInTable: true + hideInTable: true, }, { title: '请求参数', dataIndex: 'params', valueType: 'jsonCode', hideInSearch: true, - hideInTable: true + hideInTable: true, }, { title: '请求时间', dataIndex: 'create_time', valueType: 'fromNow', - }, { title: '操作', @@ -134,17 +133,17 @@ const Table: React.FC = () => { columns={columns} readonly initialValues={record} - layoutType='ModalForm' - trigger={详情} - layout='horizontal' + layoutType="ModalForm" + trigger={} + layout="horizontal" labelCol={{ span: 4 }} submitter={false} /> - ) + ); }, hideInForm: true, hideInSearch: true, - } + }, ]; return ( @@ -163,9 +162,7 @@ const Table: React.FC = () => { accessName={'system.dict'} /> + ); +}; - ) - -} - -export default Table +export default Table; diff --git a/web/src/pages/backend/System/Setting/index.tsx b/web/src/pages/backend/System/Setting/index.tsx index fd9ae2212e2438ac1911a413bcdb21bba19fb4d5..342e2ff27061e67d846c3bc188fd93ce72006312 100644 --- a/web/src/pages/backend/System/Setting/index.tsx +++ b/web/src/pages/backend/System/Setting/index.tsx @@ -26,7 +26,7 @@ import { TimePicker, Typography, } from 'antd'; -import React, { useEffect, useState } from 'react'; +import { useEffect, useState } from 'react'; import AddSettingGroup from './components/AddSettingGroup'; @@ -34,9 +34,6 @@ import SettingForm from '@/pages/backend/System/Setting/components/SettingForm'; import { getSettingGroup, saveSetting } from '@/services/admin/system'; import { deleteApi, listApi } from '@/services/common/table'; - - - const { Text } = Typography; export default () => { @@ -74,8 +71,11 @@ export default () => { return ( <> - + { - + } > - - + + { > { - let data: { key: string, id: number }[] = settingGroup?.filter((item: { key: string }) => { - return item.key === menu.key; - }); + let data: { key: string; id: number }[] = + settingGroup?.filter((item: { key: string }) => { + return item.key === menu.key; + }); setKey(data[0].key); setGroup(data[0].id); getSetting(data[0].id); }} defaultSelectedKeys={['web']} - mode='inline' + mode="inline" items={settingGroup} /> - { - saveSetting({group_id: group,...values}).then(() => { - message.success('保存成功!'); - }) - }}> + { + saveSetting({ group_id: group, ...values }).then(() => { + message.success('保存成功!'); + }); + }} + > { <> {item.title} - - + + { - deleteApi('/system.setting/delete', { ids: item.id }).then(() => { + deleteApi('/system.setting/delete', { + ids: item.id, + }).then(() => { message.success('删除成功'); getSetting(item.group_id); }); }} - okText='Yes' - cancelText='No' + okText="Yes" + cancelText="No" > - + - + {item.type === 'input' && } - {item.type === 'password' && } - {item.type === 'textarea' && } - {item.type === 'checkout' && } - {item.type === 'color' && } + {item.type === 'password' && ( + + )} + {item.type === 'textarea' && ( + + )} + {item.type === 'checkout' && ( + + )} + {item.type === 'color' && ( + + )} {item.type === 'date' && } - {item.type === 'number' && } - {item.type === 'radio' && } - {item.type === 'rate' && } - {item.type === 'select' && + )} {item.type === 'slider' && } {item.type === 'switch' && } {item.type === 'time' && }
            - {item.describe},用法: - {'get_setting(\'' + key + '.' + item.key + '\')'} + + {item.describe},用法: + + + {"get_setting('" + key + '.' + item.key + "')"} +
            )} /> - +
            - ) -} + ); +}; diff --git a/web/src/pages/backend/User/Group/index.tsx b/web/src/pages/backend/User/Group/index.tsx index 72ee1425b66d7049f1929595d87f27f637b04034..4c81747455d4c343a1aef41286f20c451587bb3f 100644 --- a/web/src/pages/backend/User/Group/index.tsx +++ b/web/src/pages/backend/User/Group/index.tsx @@ -1,7 +1,7 @@ import { ActionType } from '@ant-design/pro-components'; import { Access, useAccess } from '@umijs/max'; import { useBoolean } from 'ahooks'; -import { message, Popconfirm } from 'antd'; +import { Button, message, Popconfirm } from 'antd'; import React, { useEffect, useRef, useState } from 'react'; import GroupRule from './components/GroupRule'; @@ -11,7 +11,6 @@ import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; import * as tableApi from '@/services/common/table'; import { deleteApi } from '@/services/common/table'; - const api = '/user.userGroup'; interface GroupListType { @@ -23,43 +22,44 @@ interface GroupListType { update_time: string; } -const Table : React.FC = () => { - +const Table: React.FC = () => { const [ref, setRef] = useBoolean(); const [treeData, setTreeData] = useState([]); useEffect(() => { - tableApi.listApi('/user.userRule/list').then(res=>{ - setTreeData(res.data.data) - }) - },[]) - const actionRef = useRef() - + tableApi.listApi('/user.userRule/list').then((res) => { + setTreeData(res.data.data); + }); + }, []); + const actionRef = useRef(); - const formPid = ({ type }: any): ProFormColumnsAndProColumns[] => { + const formPid = ({ + type, + }: any): ProFormColumnsAndProColumns[] => { return type !== '0' - ? [{ - title: '父节点', - dataIndex: 'pid', - valueType: 'treeSelect', - initialValue: 1, - params: { ref }, - fieldProps: { - fieldNames: { - label: 'name', - value: 'id', + ? [ + { + title: '父节点', + dataIndex: 'pid', + valueType: 'treeSelect', + initialValue: 1, + params: { ref }, + fieldProps: { + fieldNames: { + label: 'name', + value: 'id', + }, + }, + request: async () => { + let res = await tableApi.listApi(api + '/list'); + return res.data.data; + }, + formItemProps: { + rules: [{ required: true, message: '此项为必填项' }], + }, }, - }, - request: async () => { - let res = await tableApi.listApi(api + '/list'); - return res.data.data; - }, - formItemProps: { - rules: [ - { required: true, message: '此项为必填项' }, - ], - }, - }] : [] - } + ] + : []; + }; const columns: ProFormColumnsAndProColumns[] = [ { title: '类型', @@ -68,9 +68,7 @@ const Table : React.FC = () => { hideInTable: true, initialValue: '0', formItemProps: { - rules: [ - { required: true, message: '此项为必填项' }, - ], + rules: [{ required: true, message: '此项为必填项' }], }, fieldProps: { options: [ @@ -89,7 +87,7 @@ const Table : React.FC = () => { title: 'ID', dataIndex: 'id', hideInForm: true, - hideInTable: true + hideInTable: true, }, { title: '分组名', @@ -100,13 +98,13 @@ const Table : React.FC = () => { valueType: 'dependency', name: ['type'], hideInTable: true, - columns: formPid + columns: formPid, }, { title: '创建时间', dataIndex: 'create_time', valueType: 'date', - hideInForm: true + hideInForm: true, }, { title: '编辑时间', @@ -123,16 +121,18 @@ const Table : React.FC = () => { */ const handleRemove = async (selectedRows: GroupListType[]) => { const hide = message.loading('正在删除'); - let ids = selectedRows.map(x => x.id) - deleteApi(tableApi+'/delete', { ids: ids.join() || '' }).then( res => { - if (res.success) { - message.success(res.msg); - actionRef.current?.reloadAndRest?.(); - }else { - message.warning(res.msg); - } - }).finally(() => hide()) - } + let ids = selectedRows.map((x) => x.id); + deleteApi(tableApi + '/delete', { ids: ids.join() || '' }) + .then((res) => { + if (res.success) { + message.success(res.msg); + actionRef.current?.reloadAndRest?.(); + } else { + message.warning(res.msg); + } + }) + .finally(() => hide()); + }; return ( <> @@ -145,32 +145,37 @@ const Table : React.FC = () => { deleteShow={false} actionRef={actionRef} expandable={{ - defaultExpandedRowKeys: [] + defaultExpandedRowKeys: [], }} - operateRender={(data) => + operateRender={(data) => ( <> - { data.id !== 1 && <> - - - - - { handleRemove([data]) }} - okText="确认" - cancelText="取消" - > - 删除 - - - } + {data.id !== 1 && ( + <> + + + + + { + handleRemove([data]); + }} + okText="确认" + cancelText="取消" + > + + + + + )} - } + )} /> - ) - -} + ); +}; -export default Table +export default Table; diff --git a/web/src/pages/frontend/User/UserSetting/index.tsx b/web/src/pages/frontend/User/UserSetting/index.tsx index e8c058e3d92238f558b57433d6acabca7866f37e..ef925f2f5a71cee9fd4ed760b37cc1c0a16a94d2 100644 --- a/web/src/pages/frontend/User/UserSetting/index.tsx +++ b/web/src/pages/frontend/User/UserSetting/index.tsx @@ -5,37 +5,35 @@ import React from 'react'; import UserLayout from '../components/UserLayout'; -import UploadImgItem from "@/components/XinForm/UploadImgItem"; +import UploadImgItem from '@/components/XinForm/UploadImgItem'; import { ProFormColumnsAndProColumns } from '@/components/XinTable/typings'; import { setUserInfo } from '@/services/api/user'; - -const Table : React.FC = () => { - - const {initialState} = useModel('@@initialState'); +const Table: React.FC = () => { + const { initialState } = useModel('@@initialState'); const columns: ProFormColumnsAndProColumns[] = [ { title: '用户名', dataIndex: 'username', valueType: 'text', - formItemProps: { rules: [{required: true}] } + formItemProps: { rules: [{ required: true }] }, }, { title: '昵称', dataIndex: 'nickname', valueType: 'text', - formItemProps: { rules: [{required: true}] } + formItemProps: { rules: [{ required: true }] }, }, { title: '性别', dataIndex: 'gender', valueType: 'radio', valueEnum: new Map([ - ['0','男'], - ['1','女'], - ['2','保密'] - ]) + ['0', '男'], + ['1', '女'], + ['2', '保密'], + ]), }, { title: '邮箱', @@ -49,33 +47,37 @@ const Table : React.FC = () => { valueType: 'avatar', hideInTable: true, renderFormItem: (schema, config, form) => { - return + return ( + + ); }, - colProps: {md: 12,}, + colProps: { md: 12 }, }, { title: '手机号', dataIndex: 'mobile', valueType: 'text', - formItemProps: { rules: [{required: true},{}] } - } + formItemProps: { rules: [{ required: true }, {}] }, + }, ]; - return ( - 修改密码}> + 修改密码} + > layoutType="Form" layout={'horizontal'} - labelCol={{span: 2}} - wrapperCol={{span: 6}} + labelCol={{ span: 2 }} + wrapperCol={{ span: 6 }} onFinish={async (values) => { console.log(values); await setUserInfo(values); @@ -86,9 +88,7 @@ const Table : React.FC = () => { /> + ); +}; - ) - -} - -export default Table +export default Table; diff --git a/web/src/pages/index.tsx b/web/src/pages/index.tsx index 77c78994187ec932b28bc4736251b988b63b07f0..96de938ea7c88a39817d28e508d17bd330cf3dd7 100644 --- a/web/src/pages/index.tsx +++ b/web/src/pages/index.tsx @@ -22,6 +22,7 @@ const Index: React.FC = () => { controlHeight: 46, }, }} + componentSize="small" > ); }; diff --git a/web/src/services/admin/auth.ts b/web/src/services/admin/auth.ts index 772cdb94ffa50974ec203e0b49c1e4b0cf6b6fe9..7ccddcb74a9c9de4d55c4a8dfd8a579a60c4bc95 100644 --- a/web/src/services/admin/auth.ts +++ b/web/src/services/admin/auth.ts @@ -1,27 +1,30 @@ import { request } from '@umijs/max'; -import React from "react"; +import React from 'react'; const api = { getRulePidApi: '/admin/adminRule/getRulePid', // 获取权限Pid setGroupRuleApi: '/admin/adminGroup/setGroupRule', // 设置分组权限 -} +}; /** * 获取权限父节点ID */ export async function getRulePid() { return request>(api.getRulePidApi, { - method: 'get' + method: 'get', }); } /** - * 设置管理员分组权限 + * 设置角色权限 * @param data */ -export async function setGroupRule(data: {id:number, rule_ids: React.Key[]}) { +export async function setGroupRule(data: { + id: number; + rule_ids: React.Key[]; +}) { return request>(api.setGroupRuleApi, { method: 'post', - data: data + data: data, }); } diff --git a/web/src/services/admin/userAuth.ts b/web/src/services/admin/userAuth.ts index b704018f84ee92aaa3cc23240397f2f3e7ae6d2e..394ae904f297296ba4c4b5b0ad44bfe58c941f90 100644 --- a/web/src/services/admin/userAuth.ts +++ b/web/src/services/admin/userAuth.ts @@ -1,27 +1,30 @@ import { request } from '@umijs/max'; -import React from "react"; +import React from 'react'; const api = { getRulePidApi: '/admin/user.userRule/getRulePid', // 获取权限Pid setGroupRuleApi: '/admin/user.userGroup/setGroupRule', // 设置分组权限 -} +}; /** * 获取权限父节点ID */ export async function getRulePid() { return request>(api.getRulePidApi, { - method: 'get' + method: 'get', }); } /** - * 设置管理员分组权限 + * 设置角色权限 * @param data */ -export async function setGroupRule(data: {id:number, rule_ids: React.Key[]}) { +export async function setGroupRule(data: { + id: number; + rule_ids: React.Key[]; +}) { return request>(api.setGroupRuleApi, { method: 'post', - data: data + data: data, }); } diff --git a/web/src/services/common/table.ts b/web/src/services/common/table.ts index 3bd372cfbb8f710a3d13daf1727196c31be19d31..cdf78e24e910ffd25166f05a7e60c91fc9dfd89d 100644 --- a/web/src/services/common/table.ts +++ b/web/src/services/common/table.ts @@ -3,19 +3,21 @@ */ import { request } from '@umijs/max'; interface XinApi { - ( - url: string, - params?: { - keyword?: string; - current?: number; - pageSize?: number; - } | { [key: string]: any }, - data?: { [key: string]: any }, - options?: { [key: string]: any } - ): Promise> + ( + url: string, + params?: + | { + keyword?: string; + current?: number; + pageSize?: number; + } + | { [key: string]: any }, + data?: { [key: string]: any }, + options?: { [key: string]: any }, + ): Promise>; } -let app = '/admin' +let app = '/admin'; /** * 公共查询接口 @@ -23,15 +25,15 @@ let app = '/admin' * @param params * @param options */ -export const listApi: XinApi = (url,params,options) => { - return request>(app+ url, { +export const listApi: XinApi = (url, params, options) => { + return request>(app + url, { method: 'GET', params: { ...params, }, ...(options || {}), }); -} +}; /** * 公共新增接口 @@ -39,16 +41,30 @@ export const listApi: XinApi = (url,params,options) => { * @param data * @param options */ -export const addApi: XinApi = (url,data,options) => { - return request>(app+ url, { +export const addApi: XinApi = (url, data, options) => { + let ContentType = 'application/json'; + if (data) { + const values = Object.values(data); + const hasFile = values.find((item) => item instanceof File); + if (hasFile) { + const formData = new FormData(); + Object.keys(data).forEach((key) => { + formData.append(key, data![key as keyof typeof data]); + }); + ContentType = 'multipart/form-data'; + // eslint-disable-next-line no-param-reassign + data = formData as any; + } + } + return request>(app + url, { method: 'POST', headers: { - 'Content-Type': 'application/json', + ContentType, }, data: data, ...(options || {}), }); -} +}; /** * 公共编辑接口 @@ -56,13 +72,13 @@ export const addApi: XinApi = (url,data,options) => { * @param data * @param options */ -export const editApi: XinApi = (url,data,options) => { - return request>(app+ url, { +export const editApi: XinApi = (url, data, options) => { + return request>(app + url, { method: 'PUT', data: { ...data }, ...(options || {}), }); -} +}; /** * 公共删除接口 @@ -70,10 +86,10 @@ export const editApi: XinApi = (url,data,options) => { * @param params * @param options */ -export const deleteApi: XinApi = (url,params,options) => { - return request>(app+ url, { +export const deleteApi: XinApi = (url, params, options) => { + return request>(app + url, { method: 'DELETE', params: { ...params }, ...(options || {}), }); -} \ No newline at end of file +}; diff --git a/web/src/services/device.ts b/web/src/services/device.ts new file mode 100644 index 0000000000000000000000000000000000000000..267af30c5f663aeeac9a23ece06b6a8e62d062ed --- /dev/null +++ b/web/src/services/device.ts @@ -0,0 +1,21 @@ +import { request } from '@umijs/max'; +import type { BasicListModel, DeviceModel } from './types'; + +export interface DeviceModelSearchParams { + id?: number; + project_id?: number; + flange_code?: string; + name?: string; + current?: number; + pageSize?: number; +} + +export async function getDeviceList( + params?: DeviceModelSearchParams, +): Promise> { + const res = await request('/admin/device/list', { + method: 'GET', + params, + }); + return res.data; +} diff --git a/web/src/services/feedback.ts b/web/src/services/feedback.ts new file mode 100644 index 0000000000000000000000000000000000000000..e7332cdee0f36ea16d876ff19ab12815eba5f806 --- /dev/null +++ b/web/src/services/feedback.ts @@ -0,0 +1,73 @@ +import { request } from '@umijs/max'; +import type { BasicListModel, FeedbackModel } from './types'; + +export type { FeedbackModel }; + +export interface FeedbackModelSearchParams { + name?: string; + status?: number; + is_public?: number; + current?: number; + pageSize?: number; +} + +export async function getFeedbackListService( + params?: FeedbackModelSearchParams, +): Promise> { + const res = await request('/admin/feedback/list', { + method: 'GET', + params, + }); + return res.data; +} + +export async function addFeedbackService( + data: Partial, +): Promise { + const res = await request('/admin/feedback/add', { + method: 'POST', + data, + }); + return res.data; +} + +export async function updateFeedbackService( + data: Partial, +): Promise { + const res = await request(`/admin/feedback/edit`, { + method: 'PUT', + data, + }); + return res.data; +} + +export async function deleteFeedbackService(ids: number[]): Promise { + const res = await request(`/admin/feedback/delete`, { + method: 'DELETE', + data: { ids: ids.join(',') }, + }); + return res.data; +} + +export async function getFeedbackService(id: number): Promise { + const res = await request(`/admin/feedback/detail?id=${id}`, { + method: 'GET', + }); + return res.data; +} + +type FeedbackRelationModel = FeedbackModel['relations'][number]; + +type FeedbackReplyModel = FeedbackRelationModel['replies'][number]; + +export async function addFeedbackReplyService( + data: Partial & { + feedback_relation_id: number; + }, +): Promise { + const res = await request('/admin/feedback/addReply', { + method: 'POST', + data, + }); + return res.data; +} diff --git a/web/src/services/flange.ts b/web/src/services/flange.ts new file mode 100644 index 0000000000000000000000000000000000000000..4ec03d074e8940fb9a7934e331141c9a755b2ffb --- /dev/null +++ b/web/src/services/flange.ts @@ -0,0 +1,113 @@ +import { request } from '@umijs/max'; +import { message } from 'antd'; +import type { BasicListModel, FlangeModel, FlangeParamModel } from './types'; + +export type { FlangeModel }; + +export interface FlangeModelSearchParams { + id?: number; + location?: string; + name?: string; + status?: number; + is_public?: number; + current?: number; + pageSize?: number; +} + +export async function getFlangeList( + params?: FlangeModelSearchParams, +): Promise> { + const res = await request('/admin/flange/list', { + method: 'GET', + params, + }); + return res.data; +} + +export async function addFlange( + data: Partial, +): Promise { + const res = await request('/admin/flange/add', { + method: 'POST', + data, + }); + return res.data; +} + +export async function updateFlange( + data: Partial, +): Promise { + const res = await request(`/admin/flange/edit`, { + method: 'PUT', + data, + }); + return res.data; +} + +export async function deleteFlange(ids: number[]): Promise { + const res = await request(`/admin/flange/delete`, { + method: 'DELETE', + data: { ids: ids.join(',') }, + }); + return res.data; +} + +export async function getFlange(id: number): Promise { + const res = await request(`/admin/flange/detail?id=${id}`, { + method: 'GET', + }); + return res.data; +} +export async function getFlangeParams(): Promise { + const res = await request(`/admin/flange/getParams`, { + method: 'GET', + }); + return res.data; +} + +export async function batchImport(file: File): Promise { + const formData = new FormData(); + formData.append('file', file); + + return request('/admin/flange/batchImport', { + method: 'POST', + body: formData, + headers: { + // 不设置 Content-Type,让浏览器自动处理 + }, + }); +} + +export async function exportFlangeTpl(): Promise { + return request('/admin/flange/getParamTemplates', { + method: 'GET', + params: {}, + headers: { + // Accept: 'application/vnd.ms-excel', + }, + responseType: 'blob', + }); +} +export async function exportFlangeCards(ids?: string): Promise { + if (!ids) { + return message.error('请选择导出数据'); + } + const response = await request('/admin/flange/exportExcelFile', { + method: 'GET', + params: { ids }, + responseType: 'blob', + }); + return response; +} + +export async function exportFlangeQrcode(ids?: string): Promise { + if (!ids) { + return message.error('请选择导出数据'); + } + const response = await request('/admin/flangeQrcode/exportByIds', { + method: 'GET', + params: { ids }, + responseType: 'blob', + }); + return response; +} diff --git a/web/src/services/hooks/index.ts b/web/src/services/hooks/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..4932bd92e8b5ff5517903cf516c3d5591a90a495 --- /dev/null +++ b/web/src/services/hooks/index.ts @@ -0,0 +1 @@ +export * from './useListAll'; diff --git a/web/src/services/hooks/useListAll.ts b/web/src/services/hooks/useListAll.ts new file mode 100644 index 0000000000000000000000000000000000000000..500e984c51415a8a0e3c9890a3dc7a23d6b5a363 --- /dev/null +++ b/web/src/services/hooks/useListAll.ts @@ -0,0 +1,29 @@ +import { listApi } from '@/services/common/table'; +import { useRef } from 'react'; + +export const useListAll = ({ + api, + auto = true, +}: { + api: string; + auto?: boolean; +}) => { + const listRef = useRef(); + const initListAll = async () => { + const res = await listApi(api, { + pageSize: 999, + }); + listRef.current = res.data.data; + }; + if (auto) { + initListAll(); + } + const getListAll = async () => { + if (!listRef.current) { + await initListAll(); + } + return listRef.current!; + }; + + return { getListAll }; +}; diff --git a/web/src/services/index.ts b/web/src/services/index.ts index d0b93236650d229bd0a6a8c79b4496fa2245a58f..89a413fa6468cb8bc153b2c50bd2adc33546f02b 100644 --- a/web/src/services/index.ts +++ b/web/src/services/index.ts @@ -1 +1,7 @@ export * from './common'; +export * from './types'; +// export * from './project'; +// export * from './device'; +// export * from './flange'; +// export * from './feedback'; +// export * from './flangeTask'; diff --git a/web/src/services/project.ts b/web/src/services/project.ts new file mode 100644 index 0000000000000000000000000000000000000000..05f6778ff68b7f89b8c22e7273e5b55ea1308a4a --- /dev/null +++ b/web/src/services/project.ts @@ -0,0 +1,75 @@ +import { request } from '@umijs/max'; +import type { + AdminUserModel, + BasicListModel, + ProjectModel, + ResponseModel, +} from './types'; + +export type { ProjectModel }; + +export interface ProjectModelSearchParams { + name?: string; + status?: number; + is_public?: number; + current?: number; + pageSize?: number; +} + +export async function getProjectList( + params?: ProjectModelSearchParams, +): Promise> { + const res = await request('/admin/project/list', { + method: 'GET', + params, + }); + return res.data; +} + +export async function addProject( + data: Partial, +): Promise> { + const res = await request('/admin/project/add', { + method: 'POST', + data, + }); + return res.data; +} + +export async function updateProject( + data: Partial, +): Promise> { + const res = await request(`/admin/project/edit`, { + method: 'PUT', + data, + }); + return res.data; +} + +export async function deleteProject(ids: number[]): Promise { + const res = await request(`/admin/project/delete`, { + method: 'DELETE', + data: { ids: ids.join(',') }, + }); + return res.data; +} + +export async function getProject(id: number): Promise { + const res = await request(`/admin/project/detail?id=${id}`, { + method: 'GET', + }); + return res.data; +} + +export interface AddressBookModel extends AdminUserModel { + projects: { id: number; name: string }[]; +} +export async function getAddressBookService() { + const res = await request>( + '/admin/project/getAddressBook', + { + method: 'GET', + }, + ); + return res.data; +} diff --git a/web/src/services/stat.ts b/web/src/services/stat.ts new file mode 100644 index 0000000000000000000000000000000000000000..58bc74636f46fbc5c12efa3742139309821cf062 --- /dev/null +++ b/web/src/services/stat.ts @@ -0,0 +1,62 @@ +import { request } from '@umijs/max'; +import type { + AnalysisModel, + BasicListModel, + FeedbackRelationModel, + ResponseModel, + StatModel, +} from './types'; + +export interface FlangeModelSearchParams { + name?: string; + status?: number; + is_public?: number; + current?: number; + pageSize?: number; +} + +export async function getAnalysisService(): Promise { + const res = await request('/admin/project/analysis', { + method: 'GET', + }); + return res.data; +} + +export interface StatModelSearchParams { + type: StatModel['type']; + startTime: number; + endTime: number; + flag: StatModel['flag']; +} +export async function getStatService( + params: StatModelSearchParams, +): Promise { + const res = await request>( + '/admin/project/statistics', + { + method: 'GET', + params, + }, + ); + return res.data; +} + +export interface StatFeedbackRelationsSearchParams { + current?: number; + pageSize?: number; +} +export interface StatFeedbackRelationModel + extends Omit { + flange_code: string; + flange_name: string; + project_name: string; +} +export async function getStatFeedbackRelationsService( + params?: StatFeedbackRelationsSearchParams, +): Promise> { + const res = await request('/admin/project/feedbackRelations', { + method: 'GET', + params, + }); + return res.data; +} diff --git a/web/src/services/types/basic.ts b/web/src/services/types/basic.ts new file mode 100644 index 0000000000000000000000000000000000000000..d7a3c34e747cb0a062bc870f5b07e33f39881d71 --- /dev/null +++ b/web/src/services/types/basic.ts @@ -0,0 +1,6 @@ +export interface ResponseModel { + data: T; + success: boolean; + msg: string; + showType: number; +} diff --git a/web/src/services/types/index.ts b/web/src/services/types/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..a56d4789bdd62aded543c16e5c8d1383c84fef17 --- /dev/null +++ b/web/src/services/types/index.ts @@ -0,0 +1,4 @@ +export * from './basic'; +export * from './stat'; +export * from './types'; +export * from './user'; diff --git a/web/src/services/types/stat.ts b/web/src/services/types/stat.ts new file mode 100644 index 0000000000000000000000000000000000000000..6415c71ebff7863d381de242f658613bcbeb607e --- /dev/null +++ b/web/src/services/types/stat.ts @@ -0,0 +1,44 @@ +export interface AnalysisModel { + flange: { + total: number; + thisWeek: number; + lastWeek: number; + today: number; + yesterday: number; + avg: number; + }; + flangeFinished: { + total: number; + data: { + date_unix: number; + date_str: string; + count: number; + }[]; + today: number; + }; + flangeDayAdded: { + total: number; + data: { + date_unix: number; + date_str: string; + count: number; + }[]; + today: number; + }; + flangeUnFinished: { + total: number; + unFinished: number; + }; +} + +export interface StatModel { + type: 'project' | 'device' | 'deviceType'; + project_id: number; + device_id: number | null; + device_type: string | null; + count: number; + date: string; + date_unix: number; + date_str: string; + flag: 'finished' | 'added'; +} diff --git a/web/src/services/types/types.ts b/web/src/services/types/types.ts new file mode 100644 index 0000000000000000000000000000000000000000..6b138394d1807314125eacfea5cc7ac42fdb863c --- /dev/null +++ b/web/src/services/types/types.ts @@ -0,0 +1,173 @@ +// 通用状态类型 +export type Status = 0 | 1; + +// 通用公开类型 +export type IsPublic = 0 | 1; + +// 项目类型 +export interface ProjectModel { + image: { + image_id: number | null; + image_url: string | null; + }; + leaders: { + user_id: number; + nickname: string; + }[]; + leader_ids: number[]; + operators: { + user_id: number; + nickname: string; + }[]; + operator_ids: number[]; + id: number; + name: string; + description: string; + is_public: IsPublic; + status: any; + create_time: number; + update_time: number; +} + +// 装置类型 +export interface DeviceModel { + id: number; + name: string; + description: string; + type: string; + project_id: number; + project_name: string; + is_public: IsPublic; + status: any; + create_time: string; + update_time: string; +} + +// 法兰类型 +export interface FlangeModel { + id: number; + code: string; + name: string; + type: number; // 法兰类型:1一般法兰2关键法兰 + location: string; + project_id: number; + project_name: string; + device_id: number; + device_name: string; + status: any; + create_time: string; + update_time: string; + equipment_code: any; + equipment_name: any; + torque_final_check: 1 | 0; + data: Record; +} +export interface FlangeCheckProps { + check?: 'success' | 'fail'; + name?: string; + content?: string; + imgs: { id: number; url: string }[]; +} +export interface FlangeParamModel { + id: number; + code: string; + name: string; + type: + | 'input' + | 'number' + | 'textarea' + | 'select' + | 'check' + | 'calc' + | 'custom'; + unit_list: string[]; + item_list: (string | [number | string, string])[]; + group_name: string | null; + index: number; + show_table: number; // 0 | 1 + is_param: number; // 0 | 1 + is_check: number; // 0 | 1 + create_time: string; + update_time: string; +} +export interface FlangeQrcodeModel { + id: number; + code: string; + flange_id: number; + flange_code: string; + flange_name: string; + device_id: number; + device_name: string; + batch_name: string; + status: number; // 0 | 1 + create_time: string; + update_time: string; +} + +// 反馈关系类型 +export interface FeedbackRelationModel { + id: number; + feedback_id: number; + code: string; + name: string; + content: string; + imgs: { + id: number; + url: string; + }[]; + create_time: string; + update_time: string; + user_id: number; + user_name: string; + replies: { + id: number; + feedback_relation_id: number; + content: string; + create_time: string; + update_time: string; + user_id: number; + user_name: string; + }[]; +} + +// 反馈类型 +export interface FeedbackModel { + id: number; + flange_id: number; + flange_name: string; + flange_code: string; + project_id: number; + project_name: string; + device_id: number; + device_name: string; + create_time: string; + update_time: string; + relations: FeedbackRelationModel[]; +} + +export interface BasicListModel { + last_page: number; + per_page: number; + total: number; + current_page: number; + data: T[]; +} + +// 日志 +export interface LogModel { + id: number; + controller: string; + action: string; + ip: string; // 法兰类型:1一般法兰2关键法兰 + host: string; + type: 'project' | 'device' | 'flange' | 'feedback'; + project_id: number; + device_id: number; + flange_id: number; + name: string; + content: string; + creator_id: number; + creator_name: string; + create_time: string; + update_time: string; +} diff --git a/web/src/services/types/user.ts b/web/src/services/types/user.ts new file mode 100644 index 0000000000000000000000000000000000000000..5076134c53401ce5a8607d7ff92c450e9984707f --- /dev/null +++ b/web/src/services/types/user.ts @@ -0,0 +1,16 @@ +export interface AdminUserModel { + id: number; + username: string; + nickname: string; + avatar?: string; + avatar_url?: string; + email: string; + mobile: string; + status?: number; + join_date?: number; + qualification?: string; + group_id?: number; + sex: number; // '0' | '1' | '2'; + create_time: string; + update_time: string; +} diff --git a/web/src/typings.d.ts b/web/src/typings.d.ts index 54efc1f7a1e7349318e6425b1bc7772ca69491d6..5e0d8f989fabbf89f25d99968be2d123de232868 100644 --- a/web/src/typings.d.ts +++ b/web/src/typings.d.ts @@ -16,14 +16,14 @@ interface initialStateType { // 权限 access: string[]; // 异步状态 - fetchUserInfo: () => Promise; - fetchAdminInfo: () => Promise; + fetchUserInfo: () => Promise; + fetchAdminInfo: () => Promise; // 菜单 menus?: USER.MenuType[]; // 当前app app: 'api' | 'admin'; // 其它 - webSetting: { [key: string] : any }; + webSetting: { [key: string]: any }; } interface Menus { @@ -41,3 +41,6 @@ interface Menus { locale: string; update_time: string; } + +declare module '*.png'; +declare module '*.jpg'; diff --git a/web/src/utils/config.ts b/web/src/utils/config.ts new file mode 100644 index 0000000000000000000000000000000000000000..4ac1f7554312f148e54e1b2039d01a3da31d5a2a --- /dev/null +++ b/web/src/utils/config.ts @@ -0,0 +1,3 @@ +export const getH5Domain = () => { + return `https://flimsm.demo.10000.wiki`; +}; diff --git a/web/src/utils/request.ts b/web/src/utils/request.ts index d03f28cc46b08cdf98eb9b677af96ceaf6a60a87..f8cb31ab2424735e14fd39597f03a1e21541b26d 100644 --- a/web/src/utils/request.ts +++ b/web/src/utils/request.ts @@ -1,5 +1,5 @@ import type { AxiosResponse, RequestConfig } from '@umijs/max'; -import { request, history } from '@umijs/max'; +import { history, request } from '@umijs/max'; import { message, notification } from 'antd'; import { refreshAdminToken } from '@/services/admin'; @@ -26,24 +26,24 @@ const refreshToken = async (response: AxiosResponse) => { try { // 登录状态过期,刷新令牌并重新发起请求 let app = localStorage.getItem('app'); - if( !app || app === 'api'){ - let res = await refreshUserToken() + if (!app || app === 'api') { + let res = await refreshUserToken(); localStorage.setItem('x-user-token', res.data.token); response.headers!.xUserToken = res.data.token; // 重新发送请求 return await request(response.config.url!, response.config); - }else { - let res = await refreshAdminToken() + } else { + let res = await refreshAdminToken(); localStorage.setItem('x-token', res.data.token); response.headers!.xToken = res.data.token; // 重新发送请求 - let data = await request(response.config.url!,response.config); + let data = await request(response.config.url!, response.config); return Promise.resolve(data); } - }catch (e) { + } catch (e) { return Promise.reject(e); } -} +}; /** * 响应拦截 @@ -52,16 +52,30 @@ const responseInterceptors: RequestConfig['responseInterceptors'] = [ [ async (response) => { const { data = {} as any } = response; - if(response.status === 202) { + if (response.status === 202) { return await refreshToken(response); } let { success, msg = '', showType = 0, - description = '' + description = '', } = data as API.ResponseStructure; - if(success) return Promise.resolve(response); + if (success) return Promise.resolve(response); + + const disposition = response.headers['content-disposition']; // 获取Content-Disposition + console.log('disposition', disposition, response); + if (disposition) { + // 解析Content-Disposition + const filename = disposition.split('filename=')[1].split(';')[0]; + // 创建a标签并模拟点击下载 + const link = document.createElement('a'); + link.href = URL.createObjectURL(new Blob([response.data])); + link.download = decodeURIComponent(filename); + link.click(); + URL.revokeObjectURL(link.href); + return Promise.resolve(filename); + } switch (showType) { case ErrorShowType.SILENT: break; @@ -98,23 +112,25 @@ const responseInterceptors: RequestConfig['responseInterceptors'] = [ return Promise.reject(response); }, async (error: any) => { - if(error.response?.status === 401) { + if (error.response?.status === 401) { message.error(`请先登录!`); - if(localStorage.getItem('app') === 'admin') { + if (localStorage.getItem('app') === 'admin') { history.push('/admin/login'); - }else { - history.push('/client/login'); + } else { + history.push('/admin/login'); + // history.push('/client/login'); } return Promise.reject(error); } message.error(`Response status:${error.response.status}`); return Promise.reject(error); - } - ] -] -const requestConfig: RequestConfig = { + }, + ], +]; +const requestConfig: any = { baseURL: process.env.DOMAIN, - timeout: 5000, + // baseURL: `/api`, + timeout: 60 * 1000 * 5, headers: { 'X-Requested-With': 'XMLHttpRequest' }, // 请求拦截器 requestInterceptors: [ @@ -130,7 +146,7 @@ const requestConfig: RequestConfig = { return { ...config }; }, ], - responseInterceptors + responseInterceptors, }; export default requestConfig; diff --git a/web/src/utils/setupGlobalErrorHandling.ts b/web/src/utils/setupGlobalErrorHandling.ts index 803e7c5dc8abcd4a86bee41fe90c3ccbcbcbce6c..199fa663602b942f4380e266c53c93b6cd1ca877 100644 --- a/web/src/utils/setupGlobalErrorHandling.ts +++ b/web/src/utils/setupGlobalErrorHandling.ts @@ -1,11 +1,16 @@ export function filterConsoleError() { // 配置需要过滤的错误消息 - const ignoredMessages = ['findDOMNode is deprecated']; + const ignoredMessages = [ + 'findDOMNode is deprecated', + '[React Intl] Missing message', + '[React Intl] Cannot format message', + ]; const originalConsoleError = console.error; console.error = function (...args) { const message = args[0]; if ( + !message?.includes || !ignoredMessages.some((ignoredMessage) => message.includes(ignoredMessage), ) diff --git a/web/tsconfig.json b/web/tsconfig.json index 133cfd82a23fb6ffc5449a132b398ae6db41b435..d36665113eb079d8d89fe3ecfa08e4f69fb85134 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -1,3 +1,9 @@ { - "extends": "./src/.umi/tsconfig.json" + "extends": "./src/.umi/tsconfig.json", + "compilerOptions": { + "paths": { + "@/*": ["src/*"], + "@@/*": ["./src/.umi/*"] + } + } } diff --git a/web/types/user.d.ts b/web/types/user.d.ts index c3a71c9ee51871c4167fca63236d2cae774d4f79..4cc2f36fbaad7ce6afbc8d7dd1d552b8c0879ab3 100644 --- a/web/types/user.d.ts +++ b/web/types/user.d.ts @@ -1,22 +1,21 @@ declare namespace USER { interface UserLoginFrom { - username?: string - password?: string - autoLogin?: boolean - mobile?: string - captcha?: number - loginType?: LoginType + username?: string; + password?: string; + autoLogin?: boolean; + mobile?: string; + captcha?: number; + loginType?: LoginType; } type LoginType = 'phone' | 'account' | 'email'; interface UpdatePassword { - oldPassword: string - newPassword: string - rePassword: string + oldPassword: string; + newPassword: string; + rePassword: string; } - interface MenuType { name: string; path: string; @@ -27,60 +26,61 @@ declare namespace USER { locale: string; } - interface AdminInfo { - id?: string - name?: string - money?: string - nickname?: string - username?: string - email?: string - avatar?: string - mobile?: string - motto?: string - token?: string - gender?: number - refresh_token?:string - avatar_url?: string + id?: string; + name?: string; + money?: string; + nickname?: string; + username?: string; + email?: string; + avatar?: string; + mobile?: string; + motto?: string; + token?: string; + gender?: number; + refresh_token?: string; + avatar_url?: string; } type AdminInfoResult = API.ResponseStructure<{ - menus: MenuType[], - access: string[], - info: AdminInfo - }> + menus: MenuType[]; + access: string[]; + info: AdminInfo; + }>; interface UserInfo { - id?: string - name?: string - money?: string - nickname?: string - username?: string - email?: string - avatar_id?: string - mobile?: string - motto?: string - token?: string - gender?: number - refresh_token?:string - avatar_url?: string + id?: string; + name?: string; + money?: string; + nickname?: string; + username?: string; + email?: string; + avatar_id?: string; + qualification?: string; + join_date?: number; + mobile?: string; + motto?: string; + token?: string; + gender?: number; + refresh_token?: string; + avatar_url?: string; } type UserInfoResult = API.ResponseStructure<{ - menus: MenuType[], - access: string[], - info: UserInfo - }> + menus: MenuType[]; + access: string[]; + info: UserInfo; + }>; type LoginResult = API.ResponseStructure<{ - token: string - refresh_token: string - }> + token: string; + refresh_token: string; + }>; type ReToken = { data: { - token: string - } - success: boolean - } + token: string; + }; + success: boolean; + }; } diff --git a/web/typings.d.ts b/web/typings.d.ts index 74cffc303d2563656987958e9e62f4a0c71d4961..483ba1d510e9d5ca8d3a5325885ca6ca37c8d963 100644 --- a/web/typings.d.ts +++ b/web/typings.d.ts @@ -1 +1,12 @@ import '@umijs/max/typings'; +declare module '*.module.less' { + const classes: Readonly>; + export default classes; + declare module '*.less'; +} + +declare module '*.module.scss' { + const classes: Readonly>; + export default classes; + declare module '*.scss'; +}