react-toolkits 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/index.css +1 -251
  3. package/dist/index.css.map +1 -1
  4. package/dist/index.d.mts +1 -1
  5. package/dist/index.esm.js +14 -3569
  6. package/dist/index.esm.js.map +1 -1
  7. package/package.json +11 -5
  8. package/.eslintignore +0 -2
  9. package/.eslintrc.js +0 -4
  10. package/.turbo/turbo-build.log +0 -20
  11. package/postcss.config.js +0 -9
  12. package/src/assets/512_orange_nobackground.png +0 -0
  13. package/src/components/DynamicTags/index.tsx +0 -160
  14. package/src/components/FilterForm/index.tsx +0 -63
  15. package/src/components/FormModal/hooks.tsx +0 -47
  16. package/src/components/FormModal/index.tsx +0 -137
  17. package/src/components/GameSelect/index.tsx +0 -82
  18. package/src/components/Highlight/index.tsx +0 -51
  19. package/src/components/Layout/index.tsx +0 -90
  20. package/src/components/NavMenu/index.tsx +0 -142
  21. package/src/components/PermissionButton/index.tsx +0 -36
  22. package/src/components/QueryList/index.tsx +0 -152
  23. package/src/components/ReactToolkitsProvider/context.ts +0 -76
  24. package/src/components/ReactToolkitsProvider/index.tsx +0 -23
  25. package/src/components/UserWidget/index.tsx +0 -46
  26. package/src/components/index.ts +0 -51
  27. package/src/constants/index.ts +0 -1
  28. package/src/features/permission/components/PermissionCollapse/index.tsx +0 -121
  29. package/src/features/permission/components/PermissionList/index.tsx +0 -28
  30. package/src/features/permission/components/PermissionListV1/index.tsx +0 -42
  31. package/src/features/permission/components/PermissionListV2/index.tsx +0 -146
  32. package/src/features/permission/hooks/index.ts +0 -140
  33. package/src/features/permission/index.ts +0 -5
  34. package/src/features/permission/types/index.ts +0 -40
  35. package/src/hooks/index.ts +0 -2
  36. package/src/hooks/use-http-client.tsx +0 -85
  37. package/src/hooks/use-permission.tsx +0 -75
  38. package/src/index.ts +0 -7
  39. package/src/pages/base/Login/default.tsx +0 -864
  40. package/src/pages/base/Login/index.tsx +0 -101
  41. package/src/pages/base/NotFound/index.tsx +0 -27
  42. package/src/pages/base/index.tsx +0 -20
  43. package/src/pages/index.ts +0 -4
  44. package/src/pages/permission/RoleDetail/index.tsx +0 -40
  45. package/src/pages/permission/RoleList/index.tsx +0 -251
  46. package/src/pages/permission/UserList/index.tsx +0 -236
  47. package/src/pages/permission/index.tsx +0 -56
  48. package/src/shims.d.ts +0 -20
  49. package/src/stores/index.ts +0 -2
  50. package/src/stores/query-list.ts +0 -61
  51. package/src/stores/token.ts +0 -39
  52. package/src/styles/index.css +0 -5
  53. package/src/types/index.ts +0 -10
  54. package/tailwind.config.js +0 -5
  55. package/tsconfig.json +0 -11
  56. package/tsup.config.ts +0 -27
package/dist/index.esm.js CHANGED
@@ -1,3579 +1,24 @@
1
1
  import { AliyunOutlined, UserAddOutlined, UsergroupAddOutlined, PlusOutlined, LogoutOutlined, UserOutlined } from '@ant-design/icons';
2
- import * as Antd from 'antd';
2
+ import * as ue from 'antd';
3
3
  import { Row, Col, Card, Alert, Divider, Space, Button, Result, App, Tag, Breadcrumb, Skeleton, Descriptions, theme, Input, Form, Modal, Tooltip, Table, Select, Dropdown, Menu, Typography, Empty, Collapse, Checkbox } from 'antd';
4
+ import * as Jt from 'react';
4
5
  import { lazy, useState, useRef, useCallback, useMemo, useContext, forwardRef, createContext, useEffect, useId, useImperativeHandle, Suspense } from 'react';
5
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
7
  import { createPortal, flushSync } from 'react-dom';
7
8
  import { createRoot } from 'react-dom/client';
8
9
  import { useStore, create } from 'zustand';
9
10
  import { persist, createJSONStorage } from 'zustand/middleware';
10
- import jwtDecode from 'jwt-decode';
11
- import axios from 'axios';
12
- import useSWRImmutable from 'swr/immutable';
13
- import { useNavigate, Navigate, useSearchParams, Link, useParams, Outlet, useLocation } from 'react-router-dom';
14
- import useSWRMutation2 from 'swr/mutation';
15
- import Link$1 from 'antd/es/typography/Link';
16
- import logo from './512_orange_nobackground-L6MFCL6M.png';
17
- import useSWR, { SWRConfig } from 'swr';
18
-
19
- var __defProp = Object.defineProperty;
20
- var __defProps = Object.defineProperties;
21
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
22
- var __getOwnPropNames = Object.getOwnPropertyNames;
23
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
24
- var __hasOwnProp = Object.prototype.hasOwnProperty;
25
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
26
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
27
- var __spreadValues = (a, b) => {
28
- for (var prop in b || (b = {}))
29
- if (__hasOwnProp.call(b, prop))
30
- __defNormalProp(a, prop, b[prop]);
31
- if (__getOwnPropSymbols)
32
- for (var prop of __getOwnPropSymbols(b)) {
33
- if (__propIsEnum.call(b, prop))
34
- __defNormalProp(a, prop, b[prop]);
35
- }
36
- return a;
37
- };
38
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
39
- var __objRest = (source, exclude) => {
40
- var target = {};
41
- for (var prop in source)
42
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
43
- target[prop] = source[prop];
44
- if (source != null && __getOwnPropSymbols)
45
- for (var prop of __getOwnPropSymbols(source)) {
46
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
47
- target[prop] = source[prop];
48
- }
49
- return target;
50
- };
51
- var __esm = (fn, res) => function __init() {
52
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
53
- };
54
- var __export = (target, all) => {
55
- for (var name in all)
56
- __defProp(target, name, { get: all[name], enumerable: true });
57
- };
58
- var __async = (__this, __arguments, generator) => {
59
- return new Promise((resolve, reject) => {
60
- var fulfilled = (value) => {
61
- try {
62
- step(generator.next(value));
63
- } catch (e) {
64
- reject(e);
65
- }
66
- };
67
- var rejected = (value) => {
68
- try {
69
- step(generator.throw(value));
70
- } catch (e) {
71
- reject(e);
72
- }
73
- };
74
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
75
- step((generator = generator.apply(__this, __arguments)).next());
76
- });
77
- };
78
-
79
- // ../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.27_typescript@5.1.6/node_modules/tsup/assets/esm_shims.js
80
- var init_esm_shims = __esm({
81
- "../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.27_typescript@5.1.6/node_modules/tsup/assets/esm_shims.js"() {
82
- }
83
- });
84
- var DynamicTags, DynamicTags_default;
85
- var init_DynamicTags = __esm({
86
- "src/components/DynamicTags/index.tsx"() {
87
- init_esm_shims();
88
- DynamicTags = (props) => {
89
- const { initialTags, addable, removable, addCallback, removeCallback } = props;
90
- const { token } = theme.useToken();
91
- const [tags, setTags] = useState([]);
92
- const [inputVisible, setInputVisible] = useState(false);
93
- const [inputValue, setInputValue] = useState("");
94
- const [editInputIndex, setEditInputIndex] = useState(-1);
95
- const [editInputValue, setEditInputValue] = useState("");
96
- const inputRef = useRef(null);
97
- const editInputRef = useRef(null);
98
- useEffect(() => {
99
- setTags(initialTags != null ? initialTags : []);
100
- }, [initialTags]);
101
- useEffect(() => {
102
- var _a;
103
- if (inputVisible) {
104
- (_a = inputRef.current) == null ? void 0 : _a.focus();
105
- }
106
- }, [inputVisible]);
107
- useEffect(() => {
108
- var _a;
109
- (_a = editInputRef.current) == null ? void 0 : _a.focus();
110
- }, [inputValue]);
111
- const handleClose = (removedTag) => __async(void 0, null, function* () {
112
- const success = yield removeCallback == null ? void 0 : removeCallback(removedTag);
113
- if (success) {
114
- const newTags = tags.filter((tag) => tag !== removedTag);
115
- setTags(newTags);
116
- }
117
- });
118
- const showInput = () => {
119
- setInputVisible(true);
120
- };
121
- const handleInputChange = (e) => {
122
- setInputValue(e.target.value);
123
- };
124
- const handleInputConfirm = () => __async(void 0, null, function* () {
125
- if (inputValue && tags.indexOf(inputValue) === -1) {
126
- const success = yield addCallback == null ? void 0 : addCallback(inputValue);
127
- if (success) {
128
- setTags([...tags, inputValue]);
129
- }
130
- }
131
- setInputVisible(false);
132
- setInputValue("");
133
- });
134
- const handleEditInputChange = (e) => {
135
- setEditInputValue(e.target.value);
136
- };
137
- const handleEditInputConfirm = () => {
138
- const newTags = [...tags];
139
- newTags[editInputIndex] = editInputValue;
140
- setTags(newTags);
141
- setEditInputIndex(-1);
142
- setInputValue("");
143
- };
144
- const tagInputStyle = {
145
- width: 78,
146
- verticalAlign: "top"
147
- };
148
- const tagPlusStyle = {
149
- background: token.colorBgContainer,
150
- borderStyle: "dashed"
151
- };
152
- return /* @__PURE__ */ jsxs(Space, { wrap: true, size: [0, 8], children: [
153
- /* @__PURE__ */ jsx(Space, { wrap: true, size: [0, 8], children: tags.map((tag, index) => {
154
- if (editInputIndex === index) {
155
- return /* @__PURE__ */ jsx(
156
- Input,
157
- {
158
- ref: editInputRef,
159
- size: "small",
160
- style: tagInputStyle,
161
- value: editInputValue,
162
- onChange: handleEditInputChange,
163
- onBlur: handleEditInputConfirm,
164
- onPressEnter: handleEditInputConfirm
165
- },
166
- tag
167
- );
168
- }
169
- return /* @__PURE__ */ jsx(
170
- Tag,
171
- {
172
- closable: removable,
173
- style: { userSelect: "none" },
174
- onClose: (e) => __async(void 0, null, function* () {
175
- e.preventDefault();
176
- yield handleClose(tag);
177
- }),
178
- children: /* @__PURE__ */ jsx(
179
- "span",
180
- {
181
- onDoubleClick: (e) => {
182
- if (index !== 0) {
183
- setEditInputIndex(index);
184
- setEditInputValue(tag);
185
- e.preventDefault();
186
- }
187
- },
188
- children: tag
189
- }
190
- )
191
- },
192
- tag
193
- );
194
- }) }),
195
- addable && (inputVisible ? /* @__PURE__ */ jsx(
196
- Input,
197
- {
198
- ref: inputRef,
199
- type: "text",
200
- size: "small",
201
- style: tagInputStyle,
202
- value: inputValue,
203
- onChange: handleInputChange,
204
- onBlur: handleInputConfirm,
205
- onPressEnter: handleInputConfirm
206
- }
207
- ) : /* @__PURE__ */ jsxs(Tag, { style: tagPlusStyle, onClick: showInput, children: [
208
- /* @__PURE__ */ jsx(PlusOutlined, {}),
209
- "\xA0\u6DFB\u52A0"
210
- ] }))
211
- ] });
212
- };
213
- DynamicTags_default = DynamicTags;
214
- }
215
- });
216
- var FilterForm, FilterForm_default;
217
- var init_FilterForm = __esm({
218
- "src/components/FilterForm/index.tsx"() {
219
- init_esm_shims();
220
- FilterForm = (props) => {
221
- const _a = props, { children, confirmText, form, onReset } = _a, restProps = __objRest(_a, ["children", "confirmText", "form", "onReset"]);
222
- const { token } = theme.useToken();
223
- const formStyle = {
224
- maxWidth: "none",
225
- background: token.colorFillAlter,
226
- borderWidth: token.lineWidth,
227
- borderStyle: token.lineType,
228
- borderColor: token.colorBorder,
229
- borderRadius: token.borderRadiusLG,
230
- padding: 24,
231
- marginBottom: 24
232
- };
233
- return /* @__PURE__ */ jsx(Form, __spreadProps(__spreadValues({}, restProps), { form, autoComplete: "off", children: children && /* @__PURE__ */ jsx("div", { style: formStyle, children: /* @__PURE__ */ jsxs(Row, { gutter: 18, children: [
234
- children,
235
- /* @__PURE__ */ jsx(Col, { flex: "auto" }),
236
- /* @__PURE__ */ jsx(Col, { flex: "auto", span: 24, style: { textAlign: "right" }, children: /* @__PURE__ */ jsxs(Space, { children: [
237
- /* @__PURE__ */ jsx(Button, { type: "primary", htmlType: "submit", children: confirmText || "\u67E5\u8BE2" }),
238
- /* @__PURE__ */ jsx(Button, { htmlType: "reset", onClick: onReset, children: "\u91CD\u7F6E" })
239
- ] }) })
240
- ] }) }) }));
241
- };
242
- FilterForm_default = FilterForm;
243
- }
244
- });
245
- var InternalFormModal, FormModal, FormModal_default;
246
- var init_FormModal = __esm({
247
- "src/components/FormModal/index.tsx"() {
248
- init_esm_shims();
249
- InternalFormModal = (props, ref) => {
250
- const {
251
- width,
252
- children,
253
- title,
254
- open,
255
- footer,
256
- layout,
257
- labelCol,
258
- bodyStyle,
259
- initialValues,
260
- maskClosable,
261
- closeFn,
262
- afterClose,
263
- onConfirm
264
- } = props;
265
- const id = useId();
266
- const [form] = Form.useForm();
267
- const formRef = useRef(null);
268
- const isRenderProps = typeof children === "function";
269
- const [confirmLoading, setConfirmLoading] = useState(false);
270
- useImperativeHandle(ref, () => {
271
- return {
272
- setFieldsValue(values) {
273
- var _a;
274
- (_a = formRef.current) == null ? void 0 : _a.setFieldsValue(values);
275
- }
276
- };
277
- });
278
- return /* @__PURE__ */ jsx(
279
- Modal,
280
- {
281
- destroyOnClose: true,
282
- bodyStyle,
283
- style: { textAlign: "start" },
284
- width,
285
- open,
286
- title,
287
- forceRender: true,
288
- getContainer: false,
289
- maskClosable,
290
- footer: typeof footer === "object" ? footer : [
291
- /* @__PURE__ */ jsx(
292
- Button,
293
- {
294
- onClick: () => {
295
- closeFn == null ? void 0 : closeFn();
296
- },
297
- children: "\u53D6\u6D88"
298
- },
299
- "cancel"
300
- ),
301
- /* @__PURE__ */ jsx(Button, { form: id, type: "primary", htmlType: "submit", loading: confirmLoading, children: "\u786E\u5B9A" }, "submit")
302
- ],
303
- afterClose: () => {
304
- afterClose == null ? void 0 : afterClose();
305
- form.resetFields();
306
- },
307
- onCancel: closeFn,
308
- children: /* @__PURE__ */ jsx(
309
- Form,
310
- {
311
- form,
312
- ref: formRef,
313
- id,
314
- autoComplete: "off",
315
- labelAlign: "right",
316
- labelWrap: true,
317
- layout,
318
- initialValues,
319
- labelCol: labelCol || {
320
- flex: !layout || layout === "horizontal" ? "120px" : "0"
321
- },
322
- onFinish: (values) => __async(void 0, null, function* () {
323
- try {
324
- setConfirmLoading(true);
325
- yield onConfirm == null ? void 0 : onConfirm(values);
326
- closeFn == null ? void 0 : closeFn();
327
- form.resetFields();
328
- } finally {
329
- setConfirmLoading(false);
330
- }
331
- }),
332
- children: isRenderProps ? children({ form, open, closeFn }) : children
333
- }
334
- )
335
- }
336
- );
337
- };
338
- FormModal = forwardRef(InternalFormModal);
339
- FormModal_default = FormModal;
340
- }
341
- });
342
- function useFormModal(props) {
343
- const _a = props, { content, onConfirm } = _a, restProps = __objRest(_a, ["content", "onConfirm"]);
344
- const [open, setOpen] = useState(false);
345
- const [title, setTitle] = useState();
346
- const formRef = useRef(null);
347
- const showModal = (options) => {
348
- var _a2, _b;
349
- setTitle((_a2 = options == null ? void 0 : options.title) != null ? _a2 : restProps.title);
350
- if (options == null ? void 0 : options.initialValues) {
351
- (_b = formRef.current) == null ? void 0 : _b.setFieldsValue(options == null ? void 0 : options.initialValues);
352
- }
353
- setOpen(true);
354
- };
355
- const closeModal = useCallback(() => {
356
- setOpen(false);
357
- }, []);
358
- const Modal2 = useMemo(() => {
359
- return /* @__PURE__ */ jsx(FormModal_default, __spreadProps(__spreadValues({ ref: formRef }, restProps), { open, closeFn: closeModal, title, onConfirm, children: content }));
360
- }, [title, content, restProps, open, closeModal, onConfirm]);
361
- return {
362
- Modal: createPortal(Modal2, document.body),
363
- showModal,
364
- closeModal
365
- };
366
- }
367
- var init_hooks = __esm({
368
- "src/components/FormModal/hooks.tsx"() {
369
- init_esm_shims();
370
- init_FormModal();
371
- }
372
- });
373
- function renderToString(node) {
374
- const container = document.createElement("div");
375
- const root = createRoot(container);
376
- return new Promise((resolve) => {
377
- setTimeout(() => {
378
- flushSync(() => {
379
- root.render(node);
380
- });
381
- resolve(container.innerHTML);
382
- });
383
- });
384
- }
385
- var splitByTags, Highlight, Highlight_default;
386
- var init_Highlight = __esm({
387
- "src/components/Highlight/index.tsx"() {
388
- init_esm_shims();
389
- splitByTags = (str) => {
390
- const regex = /(<[^>]*>)/;
391
- return str.split(regex).filter((part) => part !== "");
392
- };
393
- Highlight = (props) => {
394
- const { texts, children } = props;
395
- const [htmlString, setHtmlString] = useState("");
396
- useEffect(() => {
397
- renderToString(children).then((str) => {
398
- const result = splitByTags(str);
399
- for (const text of texts) {
400
- for (let index = 0; index < result.length; index++) {
401
- result[index] = result[index].replace(String(text), `<span style='color: #DC143C;'>${text}</span>`);
402
- }
403
- }
404
- setHtmlString(result.join(""));
405
- });
406
- }, [children, texts]);
407
- return /* @__PURE__ */ jsx("p", { dangerouslySetInnerHTML: { __html: htmlString } });
408
- };
409
- Highlight_default = Highlight;
410
- }
411
- });
412
- var useTokenStore;
413
- var init_token = __esm({
414
- "src/stores/token.ts"() {
415
- init_esm_shims();
416
- useTokenStore = create()(
417
- persist(
418
- (set, get) => ({
419
- token: "",
420
- getUser: () => {
421
- try {
422
- return jwtDecode(get().token);
423
- } catch (_) {
424
- return null;
425
- }
426
- },
427
- setToken: (token) => set({ token }),
428
- clearToken: () => {
429
- set({ token: "" });
430
- useTokenStore.persist.clearStorage();
431
- }
432
- }),
433
- {
434
- name: "token",
435
- partialize: (state) => ({ token: state.token })
436
- }
437
- )
438
- );
439
- }
440
- });
441
- var useQueryListStore;
442
- var init_query_list = __esm({
443
- "src/stores/query-list.ts"() {
444
- init_esm_shims();
445
- useQueryListStore = create((set, get) => ({
446
- data: /* @__PURE__ */ new Map(),
447
- getPaginationData: (key) => {
448
- var _a, _b, _c;
449
- const pagination = (_a = get().data.get(key)) == null ? void 0 : _a.pagination;
450
- return {
451
- page: (_b = pagination == null ? void 0 : pagination.page) != null ? _b : 1,
452
- size: (_c = pagination == null ? void 0 : pagination.size) != null ? _c : 10
453
- };
454
- },
455
- setPaginationData: (key, pagination) => {
456
- var _a, _b;
457
- set({
458
- data: new Map(get().data).set(key, __spreadProps(__spreadValues({}, get().data.get(key)), {
459
- pagination: {
460
- page: (_a = pagination == null ? void 0 : pagination.page) != null ? _a : get().getPaginationData(key).page,
461
- size: (_b = pagination == null ? void 0 : pagination.size) != null ? _b : get().getPaginationData(key).size
462
- }
463
- }))
464
- });
465
- },
466
- refresh: (key, pagination) => {
467
- var _a, _b, _c;
468
- const refresh = (_a = get().data.get(key)) == null ? void 0 : _a.refresh;
469
- if (refresh) {
470
- refresh({
471
- page: (_b = pagination == null ? void 0 : pagination.page) != null ? _b : get().getPaginationData(key).page,
472
- size: (_c = pagination == null ? void 0 : pagination.size) != null ? _c : get().getPaginationData(key).size
473
- });
474
- }
475
- },
476
- setRefresh: (key, refresh) => {
477
- const data = get().data;
478
- set({
479
- data: new Map(data).set(key, __spreadProps(__spreadValues({}, data.get(key)), {
480
- refresh
481
- }))
482
- });
483
- }
484
- }));
485
- }
486
- });
487
-
488
- // src/stores/index.ts
489
- var init_stores = __esm({
490
- "src/stores/index.ts"() {
491
- init_esm_shims();
492
- init_token();
493
- init_query_list();
494
- }
495
- });
496
- function useHttpClient() {
497
- const token = useTokenStore((state) => state.token);
498
- const { game, isGlobalNS, isPermissionV2 } = useReactToolkitsContext((state) => state);
499
- const defaultOptions = {
500
- withCredentials: true
501
- };
502
- const instance = axios.create(defaultOptions);
503
- instance.interceptors.request.use((config) => {
504
- const headers = config.headers;
505
- headers.set("Authorization", `Bearer ${token}`);
506
- if (isPermissionV2) {
507
- if (!headers.has("App-ID")) {
508
- headers.set("App-ID", isGlobalNS ? "global" : game == null ? void 0 : game.id);
509
- }
510
- }
511
- return config;
512
- });
513
- instance.interceptors.response.use(
514
- (response) => {
515
- if (response.data.code === 0 || response.data.status === 0) {
516
- return response.data.data;
517
- }
518
- throw new HttpClientError(response.data.msg, 0);
519
- },
520
- (error) => {
521
- var _a;
522
- if (error.response) {
523
- if (error.response.status === 401) {
524
- throw new HttpClientError("\u672A\u767B\u5F55\u6216\u767B\u5F55\u5DF2\u8FC7\u671F", error.response.status);
525
- } else if (error.response.status === 403) {
526
- throw new HttpClientError("\u65E0\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6388\u6743", error.response.status);
527
- } else if ([404, 405].includes(error.response.status)) {
528
- throw new HttpClientError("Not Found or Method not Allowed", error.response.status, true);
529
- } else if (error.response.status === 412) {
530
- throw new HttpClientError("\u672A\u6CE8\u518C\u7528\u6237", error.response.status);
531
- } else {
532
- throw new HttpClientError((_a = error.response.data) == null ? void 0 : _a.msg, error.response.status);
533
- }
534
- }
535
- throw new HttpClientError("\u65E0\u54CD\u5E94");
536
- }
537
- );
538
- return instance;
539
- }
540
- var HttpClientError;
541
- var init_use_http_client = __esm({
542
- "src/hooks/use-http-client.tsx"() {
543
- init_esm_shims();
544
- init_stores();
545
- init_components();
546
- HttpClientError = class extends Error {
547
- constructor(message, code, skip = false) {
548
- super(message);
549
- this.code = code;
550
- this.skip = skip;
551
- }
552
- };
553
- }
554
- });
555
- function usePermissions(codes, isGlobalNS = false) {
556
- const httpClient = useHttpClient();
557
- const navigate = useNavigate();
558
- const isPermissionV2 = useReactToolkitsContext((state) => state.isPermissionV2);
559
- const url = isPermissionV2 ? "/api/usystem/user/checkV2" : "/api/usystem/user/check";
560
- const { data, isLoading } = useSWRImmutable(
561
- codes.length > 0 ? {
562
- method: "POST",
563
- url,
564
- data: { permissions: codes },
565
- headers: isGlobalNS ? {
566
- "App-ID": "global"
567
- } : {}
568
- } : null,
569
- (config) => httpClient.request(config).then((res) => {
570
- if (res.has_all) {
571
- return codes.reduce(
572
- (acc, curr) => {
573
- acc[curr] = true;
574
- return acc;
575
- },
576
- {}
577
- );
578
- }
579
- return codes.reduce(
580
- (acc, curr) => {
581
- acc[curr] = res[curr];
582
- return acc;
583
- },
584
- {}
585
- );
586
- }),
587
- {
588
- suspense: true,
589
- shouldRetryOnError: false,
590
- onError() {
591
- navigate("/login");
592
- }
593
- }
594
- );
595
- return { data, isLoading };
596
- }
597
- function usePermission(code) {
598
- var _a;
599
- const { data, isLoading } = usePermissions(code ? [code] : []);
600
- if (!code) {
601
- return {
602
- accessible: true,
603
- isValidating: false
604
- };
605
- }
606
- return {
607
- accessible: (_a = data == null ? void 0 : data[code]) != null ? _a : false,
608
- isValidating: isLoading
609
- };
610
- }
611
- var init_use_permission = __esm({
612
- "src/hooks/use-permission.tsx"() {
613
- init_esm_shims();
614
- init_use_http_client();
615
- init_components();
616
- }
617
- });
618
-
619
- // src/hooks/index.ts
620
- var init_hooks2 = __esm({
621
- "src/hooks/index.ts"() {
622
- init_esm_shims();
623
- init_use_http_client();
624
- init_use_permission();
625
- }
626
- });
627
- var PermissionButton, PermissionButton_default;
628
- var init_PermissionButton = __esm({
629
- "src/components/PermissionButton/index.tsx"() {
630
- init_esm_shims();
631
- init_hooks2();
632
- PermissionButton = (props) => {
633
- const _a = props, { children, code, showLoading } = _a, restProps = __objRest(_a, ["children", "code", "showLoading"]);
634
- const { accessible, isValidating } = usePermission(code);
635
- if (isValidating) {
636
- return /* @__PURE__ */ jsx(Button, __spreadProps(__spreadValues({ loading: showLoading, disabled: !showLoading }, restProps), { children }));
637
- }
638
- if (!accessible) {
639
- return /* @__PURE__ */ jsx(Tooltip, { defaultOpen: false, title: "\u65E0\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6388\u6743", children: /* @__PURE__ */ jsx(Button, __spreadProps(__spreadValues({ disabled: true }, restProps), { children })) });
640
- }
641
- return /* @__PURE__ */ jsx(Button, __spreadProps(__spreadValues({}, restProps), { children }));
642
- };
643
- PermissionButton_default = PermissionButton;
644
- }
645
- });
646
- var QueryList, QueryList_default;
647
- var init_QueryList = __esm({
648
- "src/components/QueryList/index.tsx"() {
649
- init_esm_shims();
650
- init_hooks2();
651
- init_stores();
652
- init_FilterForm();
653
- QueryList = (props) => {
654
- const _a = props, {
655
- code,
656
- confirmText,
657
- labelCol,
658
- swrKey: swrKey3,
659
- initialValues,
660
- renderForm,
661
- transformArg,
662
- transformResponse
663
- } = _a, tableProps = __objRest(_a, [
664
- "code",
665
- "confirmText",
666
- "labelCol",
667
- "swrKey",
668
- "initialValues",
669
- "renderForm",
670
- "transformArg",
671
- "transformResponse"
672
- ]);
673
- const { accessible } = usePermission(code != null ? code : "");
674
- const [form] = Form.useForm();
675
- const setRefresh = useQueryListStore((state) => state.setRefresh);
676
- const getPaginationData = useQueryListStore((state) => state.getPaginationData);
677
- const setPaginationData = useQueryListStore((state) => state.setPaginationData);
678
- const paginationData = getPaginationData(swrKey3);
679
- const httpClient = useHttpClient();
680
- const { data, isMutating, trigger } = useSWRMutation2(
681
- swrKey3,
682
- (_0, _1) => __async(void 0, [_0, _1], function* (key, { arg }) {
683
- var _a2, _b, _c;
684
- const newPaginationData = {
685
- page: (_a2 = arg == null ? void 0 : arg.page) != null ? _a2 : paginationData.page,
686
- size: (_b = arg == null ? void 0 : arg.size) != null ? _b : paginationData.size
687
- };
688
- setPaginationData(swrKey3, arg);
689
- const values = form.getFieldsValue();
690
- const _arg = __spreadValues(__spreadValues({}, values), newPaginationData);
691
- return httpClient.request(__spreadProps(__spreadValues({}, key), {
692
- [key.method === "POST" ? "data" : "params"]: (_c = transformArg == null ? void 0 : transformArg(_arg)) != null ? _c : _arg
693
- })).then((response) => {
694
- var _a3;
695
- return (_a3 = transformResponse == null ? void 0 : transformResponse(response)) != null ? _a3 : response;
696
- });
697
- })
698
- );
699
- const onFinish = () => __async(void 0, null, function* () {
700
- yield trigger({ page: 1 });
701
- });
702
- const onReset = useCallback(() => __async(void 0, null, function* () {
703
- try {
704
- form.resetFields();
705
- yield form.validateFields();
706
- yield trigger({ page: 1 });
707
- } catch (_) {
708
- console.log("\u8868\u5355\u6821\u9A8C\u5931\u8D25");
709
- }
710
- }), [form, trigger]);
711
- const onPaginationChange = useCallback(
712
- (currentPage, currentSize) => __async(void 0, null, function* () {
713
- yield trigger({
714
- page: currentPage,
715
- size: currentSize
716
- });
717
- }),
718
- [trigger]
719
- );
720
- useEffect(() => {
721
- setRefresh(swrKey3, trigger);
722
- }, [swrKey3, trigger, setRefresh]);
723
- useEffect(() => {
724
- (() => __async(void 0, null, function* () {
725
- try {
726
- yield form.validateFields();
727
- yield trigger();
728
- } catch (_) {
729
- form.resetFields();
730
- }
731
- }))();
732
- }, [form, trigger]);
733
- if (!accessible) {
734
- return /* @__PURE__ */ jsx(Result, { status: 403, subTitle: "\u65E0\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6388\u6743" });
735
- }
736
- return /* @__PURE__ */ jsxs(Fragment, { children: [
737
- /* @__PURE__ */ jsx(
738
- FilterForm_default,
739
- {
740
- initialValues,
741
- form,
742
- labelCol,
743
- confirmText,
744
- onFinish,
745
- onReset,
746
- children: renderForm == null ? void 0 : renderForm(form)
747
- }
748
- ),
749
- /* @__PURE__ */ jsx(
750
- Table,
751
- __spreadProps(__spreadValues({}, tableProps), {
752
- dataSource: data == null ? void 0 : data.List,
753
- loading: isMutating,
754
- pagination: {
755
- showSizeChanger: true,
756
- showQuickJumper: true,
757
- current: paginationData.page,
758
- pageSize: paginationData.size,
759
- total: data == null ? void 0 : data.Total,
760
- onChange: onPaginationChange
761
- }
762
- })
763
- )
764
- ] });
765
- };
766
- QueryList_default = QueryList;
767
- }
768
- });
769
- function useReactToolkitsContext(selector, equalityFn) {
770
- const store = useContext(ReactToolkitsContext);
771
- if (!store)
772
- throw new Error("Missing ReactToolkitsContext.Provider in the tree");
773
- return useStore(store, selector, equalityFn);
774
- }
775
- var mixedStorage, createReactToolkitsStore, ReactToolkitsContext;
776
- var init_context = __esm({
777
- "src/components/ReactToolkitsProvider/context.ts"() {
778
- init_esm_shims();
779
- mixedStorage = {
780
- getItem: (name) => {
781
- return sessionStorage.getItem(name) || localStorage.getItem(name);
782
- },
783
- setItem: (name, value) => {
784
- localStorage.setItem(name, value);
785
- sessionStorage.setItem(name, value);
786
- },
787
- removeItem: (name) => __async(void 0, null, function* () {
788
- localStorage.removeItem(name);
789
- sessionStorage.removeItem(name);
790
- })
791
- };
792
- createReactToolkitsStore = () => {
793
- return create()(
794
- persist(
795
- (set) => ({
796
- title: "",
797
- isPermissionV2: false,
798
- isGlobalNS: false,
799
- game: null,
800
- setGame: (game) => set({ game }),
801
- openKeys: [],
802
- setOpenKeys: (keys) => set({ openKeys: keys }),
803
- selectedKeys: [],
804
- setSelectedKeys: (keys) => set({ selectedKeys: keys }),
805
- menuItems: []
806
- }),
807
- {
808
- name: "ReactToolkits",
809
- storage: createJSONStorage(() => mixedStorage),
810
- partialize: (state) => ({
811
- title: state.title,
812
- game: state.game,
813
- openKeys: state.openKeys,
814
- selectedKeys: state.selectedKeys
815
- })
816
- }
817
- )
818
- );
819
- };
820
- ReactToolkitsContext = createContext(null);
821
- }
822
- });
823
- var ReactToolkitsProvider, ReactToolkitsProvider_default;
824
- var init_ReactToolkitsProvider = __esm({
825
- "src/components/ReactToolkitsProvider/index.tsx"() {
826
- init_esm_shims();
827
- init_context();
828
- ReactToolkitsProvider = (props) => {
829
- const _a = props, { children } = _a, restProps = __objRest(_a, ["children"]);
830
- const storeRef = useRef();
831
- if (!storeRef.current) {
832
- storeRef.current = createReactToolkitsStore();
833
- }
834
- useEffect(() => {
835
- var _a2;
836
- (_a2 = storeRef.current) == null ? void 0 : _a2.setState(restProps);
837
- }, [restProps]);
838
- return /* @__PURE__ */ jsx(ReactToolkitsContext.Provider, { value: storeRef.current, children });
839
- };
840
- ReactToolkitsProvider_default = ReactToolkitsProvider;
841
- }
842
- });
843
- function useGames() {
844
- const { isPermissionV2, isGlobalNS } = useReactToolkitsContext((state) => state);
845
- const user = useTokenStore((state) => state.getUser());
846
- const { data, isLoading } = useSWRImmutable(
847
- isPermissionV2 && !isGlobalNS && user ? {
848
- method: "GET",
849
- url: "/api/usystem/game/all",
850
- params: { user: user.authorityId },
851
- headers: {
852
- "App-ID": "global"
853
- }
854
- } : null
855
- );
856
- return {
857
- games: data,
858
- isLoading
859
- };
860
- }
861
- var Text, GameSelect, GameSelect_default;
862
- var init_GameSelect = __esm({
863
- "src/components/GameSelect/index.tsx"() {
864
- init_esm_shims();
865
- init_stores();
866
- init_components();
867
- ({ Text } = Typography);
868
- GameSelect = () => {
869
- const { game, setGame, isGlobalNS, isPermissionV2 } = useReactToolkitsContext((state) => state);
870
- const { games, isLoading } = useGames();
871
- const options = useMemo(
872
- () => games == null ? void 0 : games.map((item) => ({
873
- label: item.name,
874
- value: item.id
875
- })),
876
- [games]
877
- );
878
- const onGameChange = useCallback(
879
- (id) => {
880
- var _a;
881
- const matchGame = (_a = (games != null ? games : []).find((item) => item.id === id)) != null ? _a : null;
882
- setGame(matchGame);
883
- },
884
- [games, setGame]
885
- );
886
- if (!isPermissionV2 || isGlobalNS) {
887
- return null;
888
- }
889
- return /* @__PURE__ */ jsxs(Space, { children: [
890
- /* @__PURE__ */ jsx(Text, { children: "\u5F53\u524D\u6E38\u620F" }),
891
- /* @__PURE__ */ jsx(
892
- Select,
893
- {
894
- showSearch: true,
895
- optionFilterProp: "label",
896
- value: game == null ? void 0 : game.id,
897
- placeholder: "\u8BF7\u9009\u62E9\u6E38\u620F",
898
- loading: isLoading,
899
- style: { width: "200px" },
900
- options,
901
- onChange: onGameChange
902
- }
903
- )
904
- ] });
905
- };
906
- GameSelect_default = GameSelect;
907
- }
908
- });
909
- var UserWidget, UserWidget_default;
910
- var init_UserWidget = __esm({
911
- "src/components/UserWidget/index.tsx"() {
912
- init_esm_shims();
913
- init_stores();
914
- UserWidget = (props) => {
915
- const navigate = useNavigate();
916
- const clearToken = useTokenStore((state) => state.clearToken);
917
- const user = useTokenStore((state) => state.getUser());
918
- return /* @__PURE__ */ jsx(
919
- Dropdown,
920
- {
921
- menu: {
922
- selectable: true,
923
- items: [
924
- {
925
- key: "1",
926
- label: /* @__PURE__ */ jsx(
927
- Link$1,
928
- {
929
- onClick: () => {
930
- clearToken();
931
- navigate("/login");
932
- },
933
- children: "\u767B\u51FA"
934
- }
935
- ),
936
- icon: /* @__PURE__ */ jsx(LogoutOutlined, {})
937
- }
938
- ]
939
- },
940
- placement: "bottomRight",
941
- children: /* @__PURE__ */ jsx(Link$1, { children: /* @__PURE__ */ jsxs(Space, { align: "center", children: [
942
- /* @__PURE__ */ jsx("span", { children: user == null ? void 0 : user.authorityId }),
943
- /* @__PURE__ */ jsx(UserOutlined, { style: { fontSize: "16px" } })
944
- ] }) })
945
- }
946
- );
947
- };
948
- UserWidget_default = UserWidget;
949
- }
950
- });
951
- function transformItems(items, permissions) {
952
- const result = [];
953
- for (let i = 0; i < items.length; i++) {
954
- if (items[i] === null) {
955
- result[i] = null;
956
- } else if (items[i].type === "divider") {
957
- result[i] = __spreadValues({}, items[i]);
958
- } else {
959
- if (items[i].children) {
960
- const _a = items[i], { children } = _a, restProps = __objRest(_a, ["children"]);
961
- result[i] = __spreadProps(__spreadValues({}, restProps), {
962
- children: transformItems(children != null ? children : [], permissions)
963
- });
964
- } else {
965
- const _b = items[i], { route, label, code } = _b, restProps = __objRest(_b, ["route", "label", "code"]);
966
- const isPass = !code || !permissions || permissions[code];
967
- result[i] = isPass ? __spreadProps(__spreadValues({}, restProps), {
968
- label: withLink(label, route)
969
- }) : null;
970
- }
971
- }
972
- }
973
- return result;
974
- }
975
- function flatItems(items, result = [], keypath = []) {
976
- for (const item of items) {
977
- const children = item.children;
978
- if (Array.isArray(children)) {
979
- const _keys = item.type !== "group" && item.key ? [...keypath, item.key] : keypath;
980
- flatItems(children, result, _keys);
981
- } else {
982
- result.push(Object.assign(item, { keypath }));
983
- }
984
- }
985
- return result;
986
- }
987
- var withLink, NavMenu, NavMenu_default;
988
- var init_NavMenu = __esm({
989
- "src/components/NavMenu/index.tsx"() {
990
- init_esm_shims();
991
- init_hooks2();
992
- init_components();
993
- withLink = (label, route) => {
994
- if (!label) {
995
- return /* @__PURE__ */ jsx(Fragment, {});
996
- }
997
- if (route) {
998
- return /* @__PURE__ */ jsx(Link, { to: route, children: label });
999
- }
1000
- return label;
1001
- };
1002
- NavMenu = () => {
1003
- const location = useLocation();
1004
- const items = useReactToolkitsContext((state) => state.menuItems);
1005
- const flattenItems = useMemo(() => flatItems(items != null ? items : []), [items]);
1006
- const codes = flattenItems.map((item) => item.code).filter(Boolean);
1007
- const { data: permissions } = usePermissions(codes, true);
1008
- const internalItems = useMemo(() => transformItems(items != null ? items : [], permissions), [items, permissions]);
1009
- const { openKeys, selectedKeys, setOpenKeys, setSelectedKeys } = useReactToolkitsContext((state) => state);
1010
- const onOpenChange = useCallback(
1011
- (keys) => {
1012
- var _a;
1013
- const latestOpenKey = keys == null ? void 0 : keys.find((key) => (openKeys == null ? void 0 : openKeys.indexOf(key)) === -1);
1014
- const match = flattenItems.find((item) => latestOpenKey === item.key);
1015
- setOpenKeys((_a = match == null ? void 0 : match.keypath) != null ? _a : [latestOpenKey]);
1016
- },
1017
- [flattenItems, openKeys, setOpenKeys]
1018
- );
1019
- useEffect(() => {
1020
- const match = flattenItems.find((item) => location.pathname === item.route);
1021
- if (match) {
1022
- const key = match.key;
1023
- const keypath = match.keypath;
1024
- setSelectedKeys([key]);
1025
- setOpenKeys(keypath);
1026
- }
1027
- }, [flattenItems, location, setOpenKeys, setSelectedKeys]);
1028
- return /* @__PURE__ */ jsx(
1029
- Menu,
1030
- {
1031
- style: { borderRight: "none" },
1032
- items: internalItems,
1033
- mode: "inline",
1034
- openKeys,
1035
- selectedKeys,
1036
- onOpenChange
1037
- }
1038
- );
1039
- };
1040
- NavMenu_default = NavMenu;
1041
- }
1042
- });
1043
- var Spin, theme3, Header, Sider, Content, Layout2, Layout_default;
1044
- var init_Layout = __esm({
1045
- "src/components/Layout/index.tsx"() {
1046
- init_esm_shims();
1047
- init_components();
1048
- ({ Spin, theme: theme3 } = Antd);
1049
- ({ Header, Sider, Content } = Antd.Layout);
1050
- Layout2 = (props) => {
1051
- const { children, extra } = props;
1052
- const {
1053
- token: { colorBgContainer, colorBorder }
1054
- } = theme3.useToken();
1055
- const title = useReactToolkitsContext((state) => state.title);
1056
- return /* @__PURE__ */ jsxs(Antd.Layout, { hasSider: true, className: "h-screen", children: [
1057
- /* @__PURE__ */ jsxs(
1058
- Sider,
1059
- {
1060
- width: 256,
1061
- style: {
1062
- overflow: "auto",
1063
- height: "100vh",
1064
- position: "fixed",
1065
- left: 0,
1066
- top: 0,
1067
- bottom: 0,
1068
- borderRightWidth: 1,
1069
- borderRightStyle: "solid",
1070
- borderRightColor: colorBorder
1071
- },
1072
- theme: "light",
1073
- children: [
1074
- /* @__PURE__ */ jsxs("div", { className: "flex items-end px-6 py-4", children: [
1075
- /* @__PURE__ */ jsx("img", { src: logo, alt: "logo", className: "w-8 h-8" }),
1076
- /* @__PURE__ */ jsx(Link, { className: "font-bold text-lg ml-2", to: "/", children: title })
1077
- ] }),
1078
- /* @__PURE__ */ jsx(NavMenu_default, {})
1079
- ]
1080
- }
1081
- ),
1082
- /* @__PURE__ */ jsxs(Antd.Layout, { className: "ml-64", children: [
1083
- /* @__PURE__ */ jsx(
1084
- Header,
1085
- {
1086
- style: {
1087
- padding: "0 24px",
1088
- background: colorBgContainer,
1089
- borderBottomWidth: 1,
1090
- borderBottomStyle: "solid",
1091
- borderBottomColor: colorBorder
1092
- },
1093
- children: /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center h-full", children: [
1094
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(GameSelect_default, {}) }),
1095
- /* @__PURE__ */ jsxs(Space, { size: "small", split: /* @__PURE__ */ jsx(Divider, { type: "vertical" }), children: [
1096
- extra,
1097
- /* @__PURE__ */ jsx(UserWidget_default, {})
1098
- ] })
1099
- ] })
1100
- }
1101
- ),
1102
- /* @__PURE__ */ jsx(Content, { className: "p-6 overflow-auto bg-gray-50", children: /* @__PURE__ */ jsx(
1103
- Suspense,
1104
- {
1105
- fallback: /* @__PURE__ */ jsx(
1106
- Spin,
1107
- {
1108
- style: {
1109
- display: "flex",
1110
- justifyContent: "center",
1111
- alignItems: "center",
1112
- height: "50vh"
1113
- }
1114
- }
1115
- ),
1116
- children
1117
- }
1118
- ) })
1119
- ] })
1120
- ] });
1121
- };
1122
- Layout_default = Layout2;
1123
- }
1124
- });
1125
-
1126
- // src/components/index.ts
1127
- var init_components = __esm({
1128
- "src/components/index.ts"() {
1129
- init_esm_shims();
1130
- init_DynamicTags();
1131
- init_FilterForm();
1132
- init_FormModal();
1133
- init_hooks();
1134
- init_Highlight();
1135
- init_PermissionButton();
1136
- init_QueryList();
1137
- init_context();
1138
- init_ReactToolkitsProvider();
1139
- init_GameSelect();
1140
- init_UserWidget();
1141
- init_NavMenu();
1142
- init_Layout();
1143
- }
1144
- });
1145
-
1146
- // src/constants/index.ts
1147
- var SSO_URL;
1148
- var init_constants = __esm({
1149
- "src/constants/index.ts"() {
1150
- init_esm_shims();
1151
- SSO_URL = "https://idaas.ifunplus.cn/enduser/api/application/plugin_FunPlus/sso/v1";
1152
- }
1153
- });
1154
- var Default, default_default;
1155
- var init_default = __esm({
1156
- "src/pages/base/Login/default.tsx"() {
1157
- init_esm_shims();
1158
- Default = () => {
1159
- return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 1620 1028", xmlns: "http://www.w3.org/2000/svg", children: [
1160
- /* @__PURE__ */ jsx("g", { id: "a" }),
1161
- /* @__PURE__ */ jsx("g", { id: "b", children: /* @__PURE__ */ jsx("g", { id: "c", children: /* @__PURE__ */ jsxs("g", { children: [
1162
- /* @__PURE__ */ jsx(
1163
- "path",
1164
- {
1165
- fill: "#e8f2fa",
1166
- d: "M1543.84,1025.63c-92.65,0-1442.29,.34-1443.07-2.11l-.13-.31s-.13-.3-.13-.45c-.52-1.23-207.95-345.42,114.53-585.03,126.18-93.75-7.9-155.64,92.44-260.01,115.31-119.94,241.15,12.74,369.38-41.64,22.66-9.6,45.39-25.05,68.15-48.76C797.78,32.37,870.19,6.95,944.96,1.25c143.27-10.86,304.51,50.23,387.71,139.53,16.75,17.98,92.93,111.03,32.88,238.91-37.91,80.74,120.91,157.86,177.35,250.06,143.49,234.42,2.24,392.82,.93,395.87Z"
1167
- }
1168
- ),
1169
- /* @__PURE__ */ jsxs("g", { opacity: ".5", children: [
1170
- /* @__PURE__ */ jsx("g", { opacity: ".5", children: /* @__PURE__ */ jsx(
1171
- "path",
1172
- {
1173
- fill: "#a9c2ff",
1174
- d: "M522.98,381s-10.51-89.31-55.62-142.6c-6-7.08-17.47-2.57-17.28,6.76,0,.16,0,.31,.01,.47,.58,15.93,51.09,83.13,72.89,135.37Z"
1175
- }
1176
- ) }),
1177
- /* @__PURE__ */ jsx("g", { opacity: ".5", children: /* @__PURE__ */ jsx(
1178
- "path",
1179
- {
1180
- fill: "#a9c2ff",
1181
- d: "M528.46,406.57s-44.95-111.62-121.74-160.99c-4.68-3.01-11.02-1.92-14.16,2.72-2.04,3.02-2.96,7.73-.67,15.1,6.12,19.63,91.75,85.72,136.57,143.18Z"
1182
- }
1183
- ) })
1184
- ] }),
1185
- /* @__PURE__ */ jsxs("g", { children: [
1186
- /* @__PURE__ */ jsx(
1187
- "path",
1188
- {
1189
- fill: "#73b471",
1190
- d: "M1088.4,378.19s-40.25-25.14-19.73-56.1c0,0,16.18-18.86,32.87-23.19,0,0-10.72,47-1.98,48.49,8.75,1.48,8.23-53.25,8.23-53.25,0,0,44.27-19.36,61.23-16.97,0,0-28.81,45.13-19.97,44.38,8.84-.75,40.96-46.29,40.96-46.29,0,0,44.84-6.49,50.9,20.56,6.05,27.05-6.03,39.94-12.69,41.34-6.66,1.4-48.94-.94-48.07,4.68,.87,5.62,29.08,15.74,45.22,11.39,0,0-19.38,43.29-42.36,40.09-22.99-3.2-29.54-17.99-43.78-19.7-14.24-1.71-24.84,1.75-17.85,5.95,6.98,4.2,31.27,2.59,42.4,13.03,11.13,10.43,20.22,16.96-1.39,20.52-21.61,3.56-59.96-.84-66.97-17.88l-7.01-17.04Z"
1191
- }
1192
- ),
1193
- /* @__PURE__ */ jsxs("g", { children: [
1194
- /* @__PURE__ */ jsx(
1195
- "path",
1196
- {
1197
- fill: "#73b471",
1198
- d: "M1220.24,303.33s-116.93,33.06-131.84,74.86c0,0-.22,18.97-12.65,40.22l-.34,8.36s13.25-27.92,20-31.54c0,0-24.32-37.87,124.83-91.9Z"
1199
- }
1200
- ),
1201
- /* @__PURE__ */ jsx(
1202
- "path",
1203
- {
1204
- fill: "#73b471",
1205
- d: "M1075.75,418.41s-18.91,26.66-10.13,60.45l4.63-1.05s-2.94-36.94,7.12-55.03c10.06-18.09-1.62-4.37-1.62-4.37Z"
1206
- }
1207
- )
1208
- ] })
1209
- ] }),
1210
- /* @__PURE__ */ jsxs("g", { children: [
1211
- /* @__PURE__ */ jsx(
1212
- "path",
1213
- {
1214
- fill: "#9bd399",
1215
- d: "M925.53,377.18s-67.6,6.07-70.13-47.44c0,0,2.69-35.79,18.25-55.28,0,0,27.38,63.45,38.71,57.55,11.32-5.9-35.54-68.47-35.54-68.47,0,0,34.61-60.79,56.16-72.8,0,0,4.97,77.02,14.52,68.48,9.54-8.54,8.04-88.93,8.04-88.93,0,0,46.15-46.48,75.98-20.59,29.83,25.89,26.82,51.24,20.33,58.64-6.49,7.4-57.15,41.49-51.4,47.2,5.75,5.71,46.78-7.17,61.69-26.21,0,0,14.28,66.7-14.89,83.01-29.17,16.31-49.21,4.98-67.06,15.39-17.84,10.41-27.12,23.62-15.53,22.38,11.59-1.24,38.19-24.21,59.83-21.88,21.64,2.33,37.62,1.94,15.74,24.83-21.87,22.89-69.75,51.18-92.22,37.65l-22.48-13.53Z"
1216
- }
1217
- ),
1218
- /* @__PURE__ */ jsxs("g", { children: [
1219
- /* @__PURE__ */ jsx(
1220
- "path",
1221
- {
1222
- fill: "#9bd399",
1223
- d: "M1014.06,176.32s-106.69,139.76-88.53,200.87c0,0,15.78,22.04,19.44,57.32l6.67,9.92s-8.34-43.67-3.63-53.71c0,0-60.01-22.45,66.05-214.39Z"
1224
- }
1225
- ),
1226
- /* @__PURE__ */ jsx(
1227
- "path",
1228
- {
1229
- fill: "#9bd399",
1230
- d: "M944.97,434.5s.76,47.15,39.44,78.42l4.44-5.24s-34.61-39.97-38.32-69.55c-3.71-29.58-5.56-3.62-5.56-3.62Z"
1231
- }
1232
- )
1233
- ] })
1234
- ] }),
1235
- /* @__PURE__ */ jsxs("g", { children: [
1236
- /* @__PURE__ */ jsxs("g", { children: [
1237
- /* @__PURE__ */ jsx(
1238
- "path",
1239
- {
1240
- fill: "#b6cfff",
1241
- d: "M290.34,904.31s-18.93-22.41-1.17-36.64c0,0,12.98-7.97,23.56-7.32,0,0-14.99,25.5-10.14,28.04,4.85,2.54,14.69-29.64,14.69-29.64,0,0,29.53-2.91,39.03,1.73,0,0-25.25,20.96-19.93,22.2,5.32,1.25,32.58-19.32,32.58-19.32,0,0,27.48,4.74,26.02,21.75-1.47,17.01-10.94,22.26-15.1,21.81-4.16-.45-28.51-9.88-29.04-6.42-.53,3.46,14.13,14.77,24.39,15.29,0,0-19.38,21.68-32.26,15.42-12.88-6.26-13.98-16.17-22.01-19.89-8.03-3.72-14.88-3.71-11.57,.08,3.31,3.79,17.84,7.48,22.43,15.72,4.59,8.24,8.71,13.79-4.61,11.76-13.32-2.03-34.98-11.92-35.93-23.25l-.95-11.32Z"
1242
- }
1243
- ),
1244
- /* @__PURE__ */ jsxs("g", { children: [
1245
- /* @__PURE__ */ jsx(
1246
- "path",
1247
- {
1248
- fill: "#b6cfff",
1249
- d: "M381.48,885.57s-74.65-2.92-91.14,18.74c0,0-3.65,11.08-14.87,21.16l-1.75,4.83s12.94-13.84,17.56-14.67c0,0-7.24-26.83,90.19-30.06Z"
1250
- }
1251
- ),
1252
- /* @__PURE__ */ jsx(
1253
- "path",
1254
- {
1255
- fill: "#b6cfff",
1256
- d: "M275.48,925.47s-16.02,12.02-17.14,33.5l2.91,.26s5.12-22.21,14.37-30.89c9.25-8.68-.14-2.87-.14-2.87Z"
1257
- }
1258
- )
1259
- ] })
1260
- ] }),
1261
- /* @__PURE__ */ jsxs("g", { children: [
1262
- /* @__PURE__ */ jsx(
1263
- "path",
1264
- {
1265
- fill: "#a9c2ff",
1266
- d: "M224.15,876.13s30.12-17.11,16.06-40.33c0,0-11.24-14.26-23.29-17.92,0,0,6.42,34.62,0,35.44-6.43,.81-4.42-39.11-4.42-39.11,0,0-31.72-15.48-44.17-14.26,0,0,19.68,33.81,13.25,33-6.43-.81-28.51-35.03-28.51-35.03,0,0-32.53-6.11-37.75,13.44-5.22,19.55,3.21,29.33,8.03,30.55,4.82,1.22,35.74,.81,34.94,4.89-.8,4.07-21.69,10.59-33.33,6.92,0,0,12.85,32.18,29.72,30.55,16.87-1.63,22.09-12.22,32.53-13.03,10.44-.81,18.07,2.04,12.85,4.89-5.22,2.85-22.89,.93-31.32,8.21-8.43,7.27-15.26,11.75,.4,15.01,15.66,3.26,43.77,1.22,49.39-11l5.62-12.22Z"
1267
- }
1268
- ),
1269
- /* @__PURE__ */ jsxs("g", { children: [
1270
- /* @__PURE__ */ jsx(
1271
- "path",
1272
- {
1273
- fill: "#a9c2ff",
1274
- d: "M130.18,817.47s84.33,27.7,93.97,58.66c0,0-.4,13.85,8.03,29.74v6.11s-8.83-20.78-13.65-23.63c0,0,18.87-26.88-88.35-70.88Z"
1275
- }
1276
- ),
1277
- /* @__PURE__ */ jsx(
1278
- "path",
1279
- {
1280
- fill: "#a9c2ff",
1281
- d: "M232.18,905.87s13.01,20.03,5.59,44.42l-3.35-.91s3.25-26.86-3.56-40.37c-6.8-13.51,1.31-3.14,1.31-3.14Z"
1282
- }
1283
- )
1284
- ] })
1285
- ] }),
1286
- /* @__PURE__ */ jsxs("g", { children: [
1287
- /* @__PURE__ */ jsx(
1288
- "path",
1289
- {
1290
- fill: "#cedfff",
1291
- d: "M272.06,852.53s-39.7-22.55-21.17-53.16c0,0,14.82-18.79,30.7-23.63,0,0-8.47,45.64,0,46.72,8.47,1.07,5.82-51.55,5.82-51.55,0,0,41.82-20.4,58.23-18.79,0,0-25.94,44.57-17.47,43.49,8.47-1.07,37.58-46.18,37.58-46.18,0,0,42.88-8.05,49.76,17.72,6.88,25.77-4.23,38.66-10.59,40.27-6.35,1.61-47.11,1.07-46.05,6.44,1.06,5.37,28.58,13.96,43.94,9.13,0,0-16.94,42.42-39.17,40.27-22.23-2.15-29.11-16.11-42.88-17.18-13.76-1.07-23.82,2.69-16.94,6.44,6.88,3.76,30.17,1.23,41.29,10.82,11.12,9.59,20.12,15.49-.53,19.79-20.64,4.3-57.7,1.61-65.11-14.5l-7.41-16.11Z"
1292
- }
1293
- ),
1294
- /* @__PURE__ */ jsxs("g", { children: [
1295
- /* @__PURE__ */ jsx(
1296
- "path",
1297
- {
1298
- fill: "#cedfff",
1299
- d: "M395.93,775.21s-111.16,36.51-123.87,77.32c0,0,.53,18.26-10.59,39.2v8.05s11.65-27.39,18-31.14c0,0-24.88-35.44,116.46-93.43Z"
1300
- }
1301
- ),
1302
- /* @__PURE__ */ jsx(
1303
- "path",
1304
- {
1305
- fill: "#cedfff",
1306
- d: "M261.48,891.73s-17.14,26.41-7.37,58.55l4.41-1.2s-4.28-35.41,4.69-53.21c8.97-17.81-1.73-4.14-1.73-4.14Z"
1307
- }
1308
- )
1309
- ] })
1310
- ] }),
1311
- /* @__PURE__ */ jsx(
1312
- "path",
1313
- {
1314
- fill: "#bbd3ff",
1315
- d: "M270.72,1019.99c42.95,0,77.77-35.32,77.77-78.89H192.96c0,43.57,34.82,78.89,77.77,78.89Z"
1316
- }
1317
- ),
1318
- /* @__PURE__ */ jsx(
1319
- "path",
1320
- {
1321
- fill: "#bbd3ff",
1322
- d: "M349.57,1024.01H191.88c0-5.37,4.3-9.73,9.59-9.73h138.49c5.3,0,9.59,4.36,9.59,9.73h0Z"
1323
- }
1324
- ),
1325
- /* @__PURE__ */ jsx("rect", { fill: "#80a1e6", height: "2.42", width: "159.86", y: "941.11", x: "190.4" })
1326
- ] }),
1327
- /* @__PURE__ */ jsx(
1328
- "path",
1329
- {
1330
- fill: "#768cee",
1331
- d: "M801.19,578.05l-34.8,419.74s-3.65,25.44,15.01,25.49c30.68,.07,152.69,0,152.69,0,0,0-23.09-5.3-22.81-17.21,.33-14.05,40.67-431.99,40.67-431.99l-150.76,3.97Z"
1332
- }
1333
- ),
1334
- /* @__PURE__ */ jsx(
1335
- "path",
1336
- {
1337
- fill: "#a9c2ff",
1338
- d: "M945.58,1015.66c-6.03,.02-124.16,.22-154.03-.17-13.02-.16-15.3-11.74-15.41-19.24-.05-3.59,.4-6.25,.4-6.25l.9-10.91,2.31-27.81,2.04-24.57,2.62-31.57,2.2-26.64,24.73-298.26,150.76-3.97s-16.99,174.91-29.01,302.22c-1.34,14.19-2.62,27.79-3.8,40.48-.38,4.05-.75,8.02-1.11,11.88-1.11,12.05-2.13,23.11-3.02,32.88-.47,5.15-.9,9.93-1.29,14.31-1.53,17.17-2.43,28.13-2.44,30.22,0,1.22,.1,2.35,.29,3.4,2.47,13.38,21.59,13.98,23.86,13.98Z"
1339
- }
1340
- ),
1341
- /* @__PURE__ */ jsx(
1342
- "polygon",
1343
- {
1344
- fill: "#a9c2ff",
1345
- points: "435.05 349.47 519.82 694.86 531.43 742.16 570.91 903.04 1304.39 903.04 1158.87 349.47 435.05 349.47"
1346
- }
1347
- ),
1348
- /* @__PURE__ */ jsx(
1349
- "polygon",
1350
- {
1351
- fill: "#768cee",
1352
- points: "435.05 349.46 423.31 353.44 555.29 915.06 570.91 903.04 435.05 349.46"
1353
- }
1354
- ),
1355
- /* @__PURE__ */ jsx(
1356
- "polygon",
1357
- {
1358
- fill: "#809bf5",
1359
- points: "555.29 915.06 1284.26 915.06 1304.39 903.04 570.91 903.04 555.29 915.06"
1360
- }
1361
- ),
1362
- /* @__PURE__ */ jsx(
1363
- "rect",
1364
- {
1365
- fill: "#a9c2ff",
1366
- transform: "translate(1780.4 2038.92) rotate(180)",
1367
- height: "7.61",
1368
- width: "157.83",
1369
- y: "1015.66",
1370
- x: "811.28"
1371
- }
1372
- ),
1373
- /* @__PURE__ */ jsx(
1374
- "polygon",
1375
- {
1376
- fill: "#899bfa",
1377
- points: "928.99 915.05 928.18 920.87 779.74 951.29 781.78 926.72 782.75 915.05 928.99 915.05"
1378
- }
1379
- ),
1380
- /* @__PURE__ */ jsx("g", { opacity: ".5", children: /* @__PURE__ */ jsx(
1381
- "path",
1382
- {
1383
- fill: "#899bfa",
1384
- d: "M945.58,1015.66c-6.03,.02-124.16,.22-154.03-.17-13.02-.16-15.3-11.74-15.41-19.24l147.73-28.19c-1.53,17.17-2.43,28.13-2.44,30.22,0,1.22,.1,2.35,.29,3.4,2.47,13.38,21.59,13.98,23.86,13.98Z"
1385
- }
1386
- ) }),
1387
- /* @__PURE__ */ jsx(
1388
- "polygon",
1389
- {
1390
- fill: "#899bfa",
1391
- points: "435.05 349.46 1158.87 349.46 1276.31 794.36 544.24 794.36 435.05 349.46"
1392
- }
1393
- ),
1394
- /* @__PURE__ */ jsx(
1395
- "polygon",
1396
- {
1397
- fill: "#5158bf",
1398
- points: "1242.18 775.08 564.46 775.08 540.24 677.22 530.87 639.35 527.05 623.91 502.16 523.34 500.87 518.1 487.71 464.94 481.83 441.15 476.81 420.86 472.71 404.31 465.03 373.3 1132.98 373.3 1141.41 404.31 1145.91 420.86 1151.42 441.15 1157.88 464.94 1200.47 621.65 1200.47 621.65 1204.08 634.93 1205.76 641.09 1235.16 749.28 1242.18 775.08"
1399
- }
1400
- ),
1401
- /* @__PURE__ */ jsx(
1402
- "polygon",
1403
- {
1404
- fill: "#5d6cd2",
1405
- points: "973.57 757.36 624.87 757.36 605.71 662.1 598.3 632.14 595.28 619.93 575.59 540.37 574.57 536.23 564.16 494.17 559.5 475.35 555.53 459.3 552.29 446.21 546.22 421.68 887.42 421.68 973.57 757.36"
1406
- }
1407
- ),
1408
- /* @__PURE__ */ jsx("polygon", { fill: "#899bfa", points: "819.24 794.36 571.16 904.34 544.24 794.36 819.24 794.36" }),
1409
- /* @__PURE__ */ jsxs("g", { children: [
1410
- /* @__PURE__ */ jsx(
1411
- "path",
1412
- {
1413
- fill: "#2a3967",
1414
- d: "M1384.19,552.09c.04-.99,.79-11.66,16.82-12.22,0,0-7.88,.95-9.24,4.47,0,0,5.37-4.34,9.74-2.95,4.37,1.4,6.94,9.16,6.96,11.72,.03,2.55-2.4,10.79-5.18,11.49-1.05,.27-2.26,.19-3.36,0,.74,1.17,1.46,2.46,2.15,3.9,6.4,13.32-.2,26.33-5.61,24.89-3.47-.92-4.45,5.09-4.45,5.09l-33.74-27.7s12.39-26.01,25.91-18.69Z"
1415
- }
1416
- ),
1417
- /* @__PURE__ */ jsx(
1418
- "path",
1419
- {
1420
- fill: "#ffae73",
1421
- d: "M1292.25,718.6c2.82,2.53,10.3-6.16,11.33-7.32,.05-.11,.11-.17,.11-.17l-2.28-6.44s-9.82-.38-11.44,1.27c-1.63,1.65-.81,9.96,2.28,12.65Z"
1422
- }
1423
- ),
1424
- /* @__PURE__ */ jsx(
1425
- "path",
1426
- {
1427
- fill: "#25468f",
1428
- d: "M1372.45,944.42l7.17,2.71s31.12-43.79,34.96-82.31c.68-6.88-.72-21.46-.19-24.57,.25-1.45,.55-3.2,.89-5.21,1.01-5.88,2.4-13.93,4-23.09,3.66-21.09,8.41-48.04,12.09-67.85l-1.93-.63-20.89-6.84-4.32-13.91-15.56-4.15s-3.47,6.9-6.58,39.47c-.57,4.27-1.09,8.98-1.49,14.09-1.21,15.6-1.3,34.94,1.48,57.06,.71,5.66,3.67,27.92,3.33,34.81-1.57,31.49-12.96,80.44-12.96,80.44Z"
1429
- }
1430
- ),
1431
- /* @__PURE__ */ jsx(
1432
- "path",
1433
- {
1434
- fill: "#1e3865",
1435
- d: "M1380.6,772.11l33.78,68.12c.25-1.45,.55-3.2,.89-5.21,1.01-5.88,2.4-13.93,4-23.09,3.66-21.09,8.41-48.04,12.09-67.85l-1.93-.63-20.89-6.84-4.32-13.91-15.56-4.15s-3.47,6.9-6.58,39.47c-.57,4.27-1.09,8.98-1.49,14.09Z"
1436
- }
1437
- ),
1438
- /* @__PURE__ */ jsx(
1439
- "path",
1440
- {
1441
- fill: "#25468f",
1442
- d: "M1395.46,727.29l.78-6.8c13.1,3.53,48.1-9.86,48.1-9.86,0,0,12.69,11.32,11.03,38.44-.81,13.24-2.3,69.5-3.85,86.15-.56,6.03,3.3,21.56,4.85,25.75,15.23,41.17-2.35,91.87-2.35,91.87l-4.56-1.87s-28.85-106.12-31.83-117.36c-5.63-21.25-10.15-48.9-13.17-70.25-.42,.02-9.01-36.08-9.01-36.08Z"
1443
- }
1444
- ),
1445
- /* @__PURE__ */ jsx(
1446
- "path",
1447
- {
1448
- fill: "#ffae73",
1449
- d: "M1385.52,648.37c22.52,1.25,17.57-32.81,16.2-32.63-2.76-1.46-7.7-8.55-10.56-20.41l-.97,.46-16.25,7.75s1.73,5.36,3,10.5c.99,4.02,1.71,7.9,1.11,8.98-1.28,.53-2.05,.86-2.05,.86,0,0,0,0,0,.02-.16,.42,3.52,24.15,9.53,24.48Z"
1450
- }
1451
- ),
1452
- /* @__PURE__ */ jsx(
1453
- "path",
1454
- {
1455
- fill: "#f99352",
1456
- d: "M1373.93,603.53s1.73,5.36,3,10.5c9.5-2.69,12.38-12.82,13.25-18.25l-16.25,7.75Z"
1457
- }
1458
- ),
1459
- /* @__PURE__ */ jsx(
1460
- "path",
1461
- {
1462
- fill: "#ffae73",
1463
- d: "M1371.93,609.21s22.73-5.34,19.23-19.64c-3.49-14.31-2.91-24.63-17.57-21.83-14.66,2.8-16.13,8.97-16.11,14.03,.02,5.06,8.45,28.46,14.45,27.44Z"
1464
- }
1465
- ),
1466
- /* @__PURE__ */ jsx(
1467
- "path",
1468
- {
1469
- fill: "#2a3967",
1470
- d: "M1356.2,573.64c2.44-5.19,5.32-4.91,7.12-3.99,10.68-10.02,21.15-1.83,21.15-1.83,4.03,9.88,12.77,13.92,12.77,13.92,0,0-3.49,3.63-13.61,3.55-3.09-.02-6.2-1.46-9.03-3.45,5.45,5.57,11.85,8.97,11.85,8.97-12.67-2.46-21.16-17.34-22.03-18.92-1.07,1.61-3.13,5.03-3.3,7.92-.23,3.93,1.1,11.55-1.12,11.84,0,0-7.47-10.23-3.8-18Z"
1471
- }
1472
- ),
1473
- /* @__PURE__ */ jsx(
1474
- "path",
1475
- {
1476
- fill: "#1e3865",
1477
- d: "M1427.51,956.62h36.09s.87-5.58-1.02-9.81c-1.81-4.06-4.64-5.91-3.96-10.82-2.29,2.4-6.03,5.08-11.25,4.37-.64,1.05-4.13,6.68-6.26,8.23-2.36,1.72-12.88,1.11-13.6,8.04Z"
1478
- }
1479
- ),
1480
- /* @__PURE__ */ jsx(
1481
- "path",
1482
- {
1483
- fill: "#1e3865",
1484
- d: "M1350.02,956.62h36.09s1.35-5.84-1.02-9.81c-2.1-3.52-1.29-5.52,.26-8.43-1.64,.68-3.75,1.3-6.08,1.16-1.8-.1-3.7-.93-5.37-1.91-1.55,1.8-8.2,9.44-10.28,10.96-2.36,1.72-12.88,1.11-13.6,8.04Z"
1485
- }
1486
- ),
1487
- /* @__PURE__ */ jsx(
1488
- "path",
1489
- {
1490
- fill: "#899bfa",
1491
- d: "M1445.02,667.38c-1.94-6.38-3.95-12.51-5.98-18.16-4.62-12.85-7.56-19.56-10.05-24.76-4.74-9.89-25.93-9.27-25.93-9.27-4.08,14.92-15.3,24.22-15.3,24.22-5.98-3.56-10.43-16.08-10.43-16.08l-13.09,7.06h0s-4.05,2.45-7.58,12.75c-5.25,15.32-13.77,37.08-19.68,43.73-1.38,1.55-5.42,3.9-10.31,6.39h0c-.11,.17-.19,.25-.24,.25,.32,.73,1.74,4.18,4.04,7.69,1.87,2.85,4.32,5.73,7.22,7.21,2.23-1.09,6.25-2.7,7.95-3.76,6.16-3.82,15.33-9.32,22.51-20.93l2,27.29,3.62,49.37c5.57,1.76,10.87,3.13,15.89,4.18,.33-4.14,1.65-9.09,1.65-9.09-.06,2.6,2.94,7.56,4.71,10.27,46.22,7.51,67.88-12.94,67.88-12.94-1.8-18.1-9.58-54.72-18.91-85.41Z"
1492
- }
1493
- ),
1494
- /* @__PURE__ */ jsx(
1495
- "path",
1496
- {
1497
- fill: "#6f7deb",
1498
- d: "M1398.39,612.43s3.84,.26,4.67,2.76c0,0-5.02,20.49-15.29,24.22l10.62-26.97Z"
1499
- }
1500
- ),
1501
- /* @__PURE__ */ jsx(
1502
- "path",
1503
- {
1504
- fill: "#6f7deb",
1505
- d: "M1387.77,639.4s-9.82-17.97-9.78-20.4c0,0-3.73,3.35-3.49,5.85,0,0,8.27,13.43,13.26,14.55Z"
1506
- }
1507
- ),
1508
- /* @__PURE__ */ jsx(
1509
- "path",
1510
- {
1511
- fill: "#6f7deb",
1512
- d: "M1414.09,632.11c-.28,.97-20.31,49.54-38.28,67.44-7.87,7.84,17.2,5.57,17.44,4.12,.24-1.46,20.84-71.56,20.84-71.56Z"
1513
- }
1514
- ),
1515
- /* @__PURE__ */ jsx(
1516
- "path",
1517
- {
1518
- fill: "#6f7deb",
1519
- d: "M1370.8,712.54l1.71,27.4c54.8-12.91,50.2-101.44,50.2-101.44l-27.52,57.64-24.15,16.01s-.09,.14-.25,.39Z"
1520
- }
1521
- ),
1522
- /* @__PURE__ */ jsx(
1523
- "path",
1524
- {
1525
- fill: "#a9c2ff",
1526
- d: "M1326.37,693.41c.01,.06,.04,.09,.07,.09-.02-.04-.03-.08-.04-.1-.04-.09-.05-.09-.03,.01Z"
1527
- }
1528
- ),
1529
- /* @__PURE__ */ jsxs("g", { children: [
1530
- /* @__PURE__ */ jsx(
1531
- "path",
1532
- {
1533
- fill: "#ff912b",
1534
- d: "M1353.48,655.68l10.91,49.33c1.74,7.86-4.13,14.22-13.1,14.22h-262c-8.97,0-17.65-6.37-19.39-14.22l-10.91-49.33c-.07-.3-.12-.6-.16-.9-1.13-7.44,4.63-13.32,13.26-13.32h262c8.63,0,16.99,5.88,19.15,13.32,.1,.3,.17,.6,.24,.9Z"
1535
- }
1536
- ),
1537
- /* @__PURE__ */ jsxs("g", { children: [
1538
- /* @__PURE__ */ jsxs("g", { children: [
1539
- /* @__PURE__ */ jsx(
1540
- "polygon",
1541
- {
1542
- fill: "#e8f2fa",
1543
- points: "1089.87 697 1087.3 697 1080.51 666.3 1083.08 666.3 1089.87 697"
1544
- }
1545
- ),
1546
- /* @__PURE__ */ jsx(
1547
- "polygon",
1548
- {
1549
- fill: "#e8f2fa",
1550
- points: "1107.58 678.97 1089.17 678.97 1087.24 670.28 1105.66 670.28 1107.58 678.97"
1551
- }
1552
- ),
1553
- /* @__PURE__ */ jsx(
1554
- "polygon",
1555
- {
1556
- fill: "#e8f2fa",
1557
- points: "1116.16 691.42 1091.92 691.42 1090 682.74 1114.24 682.74 1116.16 691.42"
1558
- }
1559
- )
1560
- ] }),
1561
- /* @__PURE__ */ jsxs("g", { children: [
1562
- /* @__PURE__ */ jsx(
1563
- "polygon",
1564
- {
1565
- fill: "#e8f2fa",
1566
- points: "1148.77 697 1146.2 697 1139.41 666.3 1141.98 666.3 1148.77 697"
1567
- }
1568
- ),
1569
- /* @__PURE__ */ jsx(
1570
- "polygon",
1571
- {
1572
- fill: "#e8f2fa",
1573
- points: "1152.7 678.97 1134.29 678.97 1132.37 670.28 1150.78 670.28 1152.7 678.97"
1574
- }
1575
- ),
1576
- /* @__PURE__ */ jsx(
1577
- "polygon",
1578
- {
1579
- fill: "#e8f2fa",
1580
- points: "1158.37 691.42 1134.13 691.42 1132.21 682.74 1156.45 682.74 1158.37 691.42"
1581
- }
1582
- )
1583
- ] }),
1584
- /* @__PURE__ */ jsxs("g", { children: [
1585
- /* @__PURE__ */ jsx(
1586
- "polygon",
1587
- {
1588
- fill: "#e8f2fa",
1589
- points: "1207.67 697 1205.1 697 1198.31 666.3 1200.88 666.3 1207.67 697"
1590
- }
1591
- ),
1592
- /* @__PURE__ */ jsx(
1593
- "polygon",
1594
- {
1595
- fill: "#e8f2fa",
1596
- points: "1197.82 678.97 1179.4 678.97 1177.48 670.28 1195.89 670.28 1197.82 678.97"
1597
- }
1598
- ),
1599
- /* @__PURE__ */ jsx(
1600
- "polygon",
1601
- {
1602
- fill: "#e8f2fa",
1603
- points: "1200.57 691.42 1176.33 691.42 1174.41 682.74 1198.65 682.74 1200.57 691.42"
1604
- }
1605
- )
1606
- ] }),
1607
- /* @__PURE__ */ jsxs("g", { children: [
1608
- /* @__PURE__ */ jsx(
1609
- "polygon",
1610
- {
1611
- fill: "#e8f2fa",
1612
- points: "1245.35 668.78 1215.1 668.78 1214.52 666.18 1244.78 666.18 1245.35 668.78"
1613
- }
1614
- ),
1615
- /* @__PURE__ */ jsx(
1616
- "polygon",
1617
- {
1618
- fill: "#e8f2fa",
1619
- points: "1228.12 671.23 1232.26 689.91 1223.69 689.91 1219.56 671.23 1228.12 671.23"
1620
- }
1621
- ),
1622
- /* @__PURE__ */ jsx(
1623
- "polygon",
1624
- {
1625
- fill: "#e8f2fa",
1626
- points: "1240.4 671.23 1245.84 695.82 1237.28 695.82 1231.84 671.23 1240.4 671.23"
1627
- }
1628
- )
1629
- ] }),
1630
- /* @__PURE__ */ jsxs("g", { children: [
1631
- /* @__PURE__ */ jsx(
1632
- "polygon",
1633
- {
1634
- fill: "#e8f2fa",
1635
- points: "1292.98 682.95 1262.72 682.95 1262.14 680.35 1292.4 680.35 1292.98 682.95"
1636
- }
1637
- ),
1638
- /* @__PURE__ */ jsx(
1639
- "polygon",
1640
- {
1641
- fill: "#e8f2fa",
1642
- points: "1272.86 672.31 1276.99 690.99 1268.42 690.99 1264.29 672.31 1272.86 672.31"
1643
- }
1644
- ),
1645
- /* @__PURE__ */ jsx(
1646
- "polygon",
1647
- {
1648
- fill: "#e8f2fa",
1649
- points: "1284.48 669.36 1289.92 693.94 1281.35 693.94 1275.91 669.36 1284.48 669.36"
1650
- }
1651
- )
1652
- ] }),
1653
- /* @__PURE__ */ jsxs("g", { children: [
1654
- /* @__PURE__ */ jsx(
1655
- "polygon",
1656
- {
1657
- fill: "#e8f2fa",
1658
- points: "1340.63 697.23 1310.37 697.23 1309.79 694.63 1340.05 694.63 1340.63 697.23"
1659
- }
1660
- ),
1661
- /* @__PURE__ */ jsx(
1662
- "polygon",
1663
- {
1664
- fill: "#e8f2fa",
1665
- points: "1317.78 673.28 1321.91 691.96 1313.34 691.96 1309.21 673.28 1317.78 673.28"
1666
- }
1667
- ),
1668
- /* @__PURE__ */ jsx(
1669
- "polygon",
1670
- {
1671
- fill: "#e8f2fa",
1672
- points: "1328.74 667.37 1334.18 691.96 1325.62 691.96 1320.18 667.37 1328.74 667.37"
1673
- }
1674
- )
1675
- ] })
1676
- ] })
1677
- ] }),
1678
- /* @__PURE__ */ jsxs("g", { children: [
1679
- /* @__PURE__ */ jsx(
1680
- "path",
1681
- {
1682
- fill: "#ffae73",
1683
- d: "M1327.16,714.82c2.99-.01,7.7-.22,10.42-1.28,0,0-8.7-.13-6.85-2.92,.34-.51,4.66-.12,9.49-.12,1.98,0,6.88,2.75,6.62,2.88,3.5-.47,6.68-1.16,7.71-1.38,.27-.06,.38-.11,.38-.11l3.09,9.13s-.65,.16-1.79,.38c-2.87,.72-8.79,2.26-14.37,4.46-7.81,3.14-13.55-.76-16.16-3.52-1.65-1.75-2.95-4.07-2.86-5.75,.1-1.84,2.5-1.76,4.32-1.77Z"
1684
- }
1685
- ),
1686
- /* @__PURE__ */ jsx(
1687
- "path",
1688
- {
1689
- fill: "#ffae73",
1690
- d: "M1348.16,715.52l1.9,7.04s2.39-.44,6.18-1.16c1.14-.22,1.79-.39,1.79-.39,3.04-.6,6.67-1.43,10.63-2.31h.06c6.78-1.65,14.37-3.63,20.77-5.83,.57-.2,1.14-.41,1.69-.61,3.78-1.42-3.53-20.9-6.84-18.47-.88,.65-1.82,1.31-2.8,1.99-5.49,3.78-12.47,7.99-18.67,11.54-3.04,1.76-5.91,3.36-8.3,4.68-3.85,2.14-6.4,3.52-6.4,3.52Z"
1691
- }
1692
- ),
1693
- /* @__PURE__ */ jsx(
1694
- "path",
1695
- {
1696
- fill: "#899bfa",
1697
- d: "M1381.53,695.79s-.4,13.3,11.88,19.77c14.19-5.2,21.78-26.66,27.64-41.4,.81-2.03,1.57-4.07,2.33-6.05,2.71-7.37,4.88-14.63,6.18-20.91,.81-3.74-14.97-22.61-16.97-18.15-3.09,7.09-6.34,16.28-9.38,25.41-1.68,5.01-3.31,10.01-4.94,14.63-.92,2.8-1.85,5.44-2.71,7.86-1.68,4.62-3.2,8.36-4.55,10.73-.87,1.54-3.36,3.69-6.67,6.11-.88,.65-1.82,1.31-2.8,1.99Z"
1698
- }
1699
- )
1700
- ] })
1701
- ] }),
1702
- /* @__PURE__ */ jsx(
1703
- "polygon",
1704
- {
1705
- fill: "#3c4aaa",
1706
- points: "1141.41 404.31 472.71 404.31 465.03 373.3 1132.98 373.3 1141.41 404.31"
1707
- }
1708
- ),
1709
- /* @__PURE__ */ jsxs("g", { children: [
1710
- /* @__PURE__ */ jsx(
1711
- "path",
1712
- {
1713
- fill: "#e8f2fa",
1714
- d: "M506.59,389.09c.87,2.78-.86,5.05-3.87,5.07-3.01,.02-6.16-2.22-7.03-4.99-.87-2.78,.86-5.05,3.87-5.07,3.01-.02,6.16,2.21,7.03,4.99Z"
1715
- }
1716
- ),
1717
- /* @__PURE__ */ jsx(
1718
- "path",
1719
- {
1720
- fill: "#e8f2fa",
1721
- d: "M529.14,388.93c.87,2.78-.86,5.05-3.87,5.07-3.01,.02-6.16-2.21-7.03-4.99-.87-2.78,.86-5.05,3.87-5.07,3.01-.02,6.16,2.21,7.03,4.99Z"
1722
- }
1723
- ),
1724
- /* @__PURE__ */ jsx(
1725
- "path",
1726
- {
1727
- fill: "#e8f2fa",
1728
- d: "M551.69,388.77c.87,2.78-.86,5.05-3.87,5.07-3.01,.02-6.16-2.21-7.03-4.99-.87-2.78,.86-5.05,3.87-5.07,3.01-.02,6.16,2.21,7.03,4.99Z"
1729
- }
1730
- )
1731
- ] }),
1732
- /* @__PURE__ */ jsx(
1733
- "path",
1734
- {
1735
- fill: "#ff912b",
1736
- d: "M559.5,475.35s78.71,.3,135.79,44.69c57.08,44.39,48.85,84.22,96.21,94.2,77.61,16.36,29.43-67.66,130.21-58.92l51.86,202.04h-348.7l-26.57-125.21-38.8-156.79Z"
1737
- }
1738
- ),
1739
- /* @__PURE__ */ jsx(
1740
- "path",
1741
- {
1742
- fill: "#fff",
1743
- d: "M809.47,617.1c-5.34,0-11.34-.72-18.11-2.15-26.14-5.51-35.78-20.39-47.98-39.22-10.11-15.61-22.69-35.03-48.52-55.11-16.21-12.61-44.82-29.59-89.01-38.86-26.44-5.54-46.15-5.68-46.35-5.68v-1.46c.2,0,20.06,.14,46.64,5.72,24.54,5.15,60,16.11,89.59,39.13,26.02,20.24,38.68,39.77,48.85,55.47,12.49,19.28,21.51,33.21,47.07,38.59,36.4,7.67,44.63-6.84,54.16-23.64,10.62-18.71,22.66-39.93,75.97-35.3l-.12,1.45c-52.41-4.55-64.2,16.24-74.6,34.58-4.82,8.5-9.38,16.53-17.46,21.49-5.44,3.34-12.02,4.99-20.12,4.99Z"
1744
- }
1745
- ),
1746
- /* @__PURE__ */ jsx(
1747
- "path",
1748
- {
1749
- fill: "#fc7400",
1750
- d: "M577.88,549.18l20.01,80.88,26.98,127.29h348.7l-17.58-66.1s-51.62-29.18-121.62-3.75c-70,25.44-147.49,1.96-152.48-55.25-5.62-64.51-64.06-95.58-104.01-83.08Z"
1751
- }
1752
- ),
1753
- /* @__PURE__ */ jsx(
1754
- "path",
1755
- {
1756
- fill: "#fff",
1757
- d: "M665.98,587.45c-20.04-31.44-57-47.24-87.89-37.57l-.42-1.39c31.49-9.85,69.13,6.2,89.52,38.17l-1.21,.79Z"
1758
- }
1759
- ),
1760
- /* @__PURE__ */ jsxs("g", { children: [
1761
- /* @__PURE__ */ jsx(
1762
- "polygon",
1763
- {
1764
- fill: "#fff",
1765
- points: "795.85 620.61 784.52 619.43 785.69 607.94 797.02 609.12 795.85 620.61"
1766
- }
1767
- ),
1768
- /* @__PURE__ */ jsx(
1769
- "polygon",
1770
- {
1771
- fill: "#fff",
1772
- points: "892.8 636.61 701.9 596.39 702.28 594.51 893.18 634.73 892.8 636.61"
1773
- }
1774
- ),
1775
- /* @__PURE__ */ jsx(
1776
- "path",
1777
- {
1778
- fill: "#fff",
1779
- d: "M698.84,595.11c.19-1.82,1.79-3.15,3.59-2.96,1.8,.19,3.1,1.82,2.92,3.64s-1.79,3.15-3.59,2.96c-1.8-.19-3.1-1.82-2.92-3.64Z"
1780
- }
1781
- ),
1782
- /* @__PURE__ */ jsx(
1783
- "path",
1784
- {
1785
- fill: "#fff",
1786
- d: "M889.74,635.33c.19-1.82,1.79-3.15,3.59-2.96,1.8,.19,3.1,1.82,2.92,3.64-.19,1.82-1.79,3.15-3.59,2.96-1.8-.19-3.1-1.82-2.92-3.64Z"
1787
- }
1788
- )
1789
- ] }),
1790
- /* @__PURE__ */ jsxs("g", { children: [
1791
- /* @__PURE__ */ jsx(
1792
- "polygon",
1793
- {
1794
- fill: "#fff",
1795
- points: "656.9 504.31 648.61 496.38 656.42 487.98 664.71 495.9 656.9 504.31"
1796
- }
1797
- ),
1798
- /* @__PURE__ */ jsx("polygon", { fill: "#fff", points: "687.13 528 622.39 462.58 623.73 461.23 688.46 526.64 687.13 528" }),
1799
- /* @__PURE__ */ jsx(
1800
- "path",
1801
- {
1802
- fill: "#fff",
1803
- d: "M620.52,459.81c1.14-1.42,3.2-1.64,4.6-.49,1.4,1.15,1.62,3.24,.48,4.67-1.14,1.42-3.2,1.64-4.6,.49-1.4-1.15-1.62-3.24-.48-4.67Z"
1804
- }
1805
- ),
1806
- /* @__PURE__ */ jsx(
1807
- "path",
1808
- {
1809
- fill: "#fff",
1810
- d: "M685.26,525.23c1.14-1.42,3.2-1.64,4.6-.49s1.62,3.24,.48,4.67c-1.14,1.42-3.2,1.64-4.6,.49-1.4-1.15-1.62-3.24-.48-4.67Z"
1811
- }
1812
- )
1813
- ] }),
1814
- /* @__PURE__ */ jsxs("g", { children: [
1815
- /* @__PURE__ */ jsx(
1816
- "polygon",
1817
- {
1818
- fill: "#fff",
1819
- points: "882.44 557.53 877.99 568.16 867.5 563.65 871.96 553.01 882.44 557.53"
1820
- }
1821
- ),
1822
- /* @__PURE__ */ jsx(
1823
- "polygon",
1824
- {
1825
- fill: "#fff",
1826
- points: "863.91 587.74 862.2 586.94 886.44 533.18 888.16 533.98 863.91 587.74"
1827
- }
1828
- ),
1829
- /* @__PURE__ */ jsx(
1830
- "path",
1831
- {
1832
- fill: "#fff",
1833
- d: "M862,590.48c-1.71-.59-2.63-2.47-2.05-4.21,.58-1.74,2.44-2.66,4.15-2.08,1.71,.59,2.63,2.47,2.05,4.21-.58,1.74-2.44,2.66-4.15,2.08Z"
1834
- }
1835
- ),
1836
- /* @__PURE__ */ jsx(
1837
- "path",
1838
- {
1839
- fill: "#fff",
1840
- d: "M886.25,536.72c-1.71-.59-2.63-2.47-2.05-4.21,.58-1.74,2.44-2.66,4.15-2.08,1.71,.59,2.63,2.47,2.05,4.21-.58,1.74-2.44,2.66-4.15,2.08Z"
1841
- }
1842
- )
1843
- ] }),
1844
- /* @__PURE__ */ jsxs("g", { children: [
1845
- /* @__PURE__ */ jsx(
1846
- "path",
1847
- {
1848
- fill: "#cedfff",
1849
- d: "M933.58,440.32l17.72,74.3c.76,3.18-2.2,5.76-6.61,5.76h-182.3c-4.41,0-8.6-2.58-9.35-5.76l-17.72-74.3c-.76-3.18,2.2-5.76,6.61-5.76h182.3c4.41,0,8.59,2.58,9.35,5.76Z"
1850
- }
1851
- ),
1852
- /* @__PURE__ */ jsxs("g", { children: [
1853
- /* @__PURE__ */ jsxs("g", { children: [
1854
- /* @__PURE__ */ jsx(
1855
- "polygon",
1856
- {
1857
- fill: "#25468f",
1858
- points: "781.52 483.78 762.12 483.78 757.43 464.1 776.83 464.1 781.52 483.78"
1859
- }
1860
- ),
1861
- /* @__PURE__ */ jsx(
1862
- "polygon",
1863
- {
1864
- fill: "#25468f",
1865
- points: "793.57 493.62 774.17 493.62 769.47 473.94 788.88 473.94 793.57 493.62"
1866
- }
1867
- )
1868
- ] }),
1869
- /* @__PURE__ */ jsxs("g", { children: [
1870
- /* @__PURE__ */ jsx(
1871
- "polygon",
1872
- {
1873
- fill: "#25468f",
1874
- points: "826.82 483.78 807.42 483.78 802.72 464.1 822.12 464.1 826.82 483.78"
1875
- }
1876
- ),
1877
- /* @__PURE__ */ jsxs("g", { children: [
1878
- /* @__PURE__ */ jsx(
1879
- "polygon",
1880
- {
1881
- fill: "#6b98f6",
1882
- points: "838.87 493.62 819.47 493.62 814.77 473.94 834.17 473.94 838.87 493.62"
1883
- }
1884
- ),
1885
- /* @__PURE__ */ jsx(
1886
- "path",
1887
- {
1888
- fill: "#183a76",
1889
- d: "M839.9,494.47h-21.06l-5.1-21.36h21.06l5.1,21.36Zm-19.8-1.68h17.75l-4.29-18h-17.75l4.29,18Z"
1890
- }
1891
- )
1892
- ] })
1893
- ] }),
1894
- /* @__PURE__ */ jsxs("g", { children: [
1895
- /* @__PURE__ */ jsx(
1896
- "polygon",
1897
- {
1898
- fill: "#6b98f6",
1899
- points: "872.12 483.78 852.71 483.78 848.02 464.1 867.42 464.1 872.12 483.78"
1900
- }
1901
- ),
1902
- /* @__PURE__ */ jsx(
1903
- "path",
1904
- {
1905
- fill: "#25468f",
1906
- d: "M873.14,484.62h-21.06l-5.1-21.36h21.06l5.1,21.36Zm-19.8-1.68h17.75l-4.29-18h-17.75l4.29,18Z"
1907
- }
1908
- ),
1909
- /* @__PURE__ */ jsx(
1910
- "polygon",
1911
- {
1912
- fill: "#6b98f6",
1913
- points: "884.16 493.62 864.76 493.62 860.07 473.94 879.47 473.94 884.16 493.62"
1914
- }
1915
- ),
1916
- /* @__PURE__ */ jsx(
1917
- "path",
1918
- {
1919
- fill: "#25468f",
1920
- d: "M885.19,494.47h-21.06l-5.1-21.36h21.06l5.1,21.36Zm-19.8-1.68h17.75l-4.29-18h-17.75l4.29,18Z"
1921
- }
1922
- ),
1923
- /* @__PURE__ */ jsx(
1924
- "polygon",
1925
- {
1926
- fill: "#25468f",
1927
- points: "873.14 484.58 861.71 484.58 858.97 473.1 870.4 473.1 873.14 484.58"
1928
- }
1929
- )
1930
- ] }),
1931
- /* @__PURE__ */ jsxs("g", { children: [
1932
- /* @__PURE__ */ jsx(
1933
- "polygon",
1934
- {
1935
- fill: "#25468f",
1936
- points: "917.41 483.78 898.01 483.78 893.31 464.1 912.72 464.1 917.41 483.78"
1937
- }
1938
- ),
1939
- /* @__PURE__ */ jsx(
1940
- "polygon",
1941
- {
1942
- fill: "#25468f",
1943
- points: "929.46 493.62 910.06 493.62 905.36 473.94 924.77 473.94 929.46 493.62"
1944
- }
1945
- ),
1946
- /* @__PURE__ */ jsx(
1947
- "polygon",
1948
- {
1949
- fill: "#6b98f6",
1950
- points: "916.86 483.31 907.97 483.31 905.84 474.37 914.73 474.37 916.86 483.31"
1951
- }
1952
- )
1953
- ] })
1954
- ] })
1955
- ] }),
1956
- /* @__PURE__ */ jsxs("g", { children: [
1957
- /* @__PURE__ */ jsx(
1958
- "path",
1959
- {
1960
- fill: "#3c4aaa",
1961
- d: "M429.21,674.95h-67.18c-8.96,0-17.83-7.37-19.81-16.46l-50.55-231.5c-1.98-9.09,3.67-16.46,12.63-16.46h67.18c8.96,0,17.83,7.37,19.81,16.46l50.55,231.5c1.98,9.09-3.67,16.46-12.63,16.46Z"
1962
- }
1963
- ),
1964
- /* @__PURE__ */ jsx("rect", { fill: "#a9c2ff", height: ".44", width: "99.62", y: "462.59", x: "299.49" }),
1965
- /* @__PURE__ */ jsx("rect", { fill: "#a9c2ff", height: ".44", width: "99.63", y: "517.14", x: "311.4" }),
1966
- /* @__PURE__ */ jsx("rect", { fill: "#a9c2ff", height: ".44", width: "99.63", y: "571.69", x: "323.31" }),
1967
- /* @__PURE__ */ jsx(
1968
- "path",
1969
- {
1970
- fill: "#fff",
1971
- d: "M360.43,446.51c.13-1.17-5.02-21.24-5.02-21.24l18.26,15.01-8.97-.32-4.27,6.56Z"
1972
- }
1973
- ),
1974
- /* @__PURE__ */ jsx(
1975
- "path",
1976
- {
1977
- fill: "#cedfff",
1978
- d: "M415.47,651.23h-35.38l-7.83-35.84h35.38l7.83,35.84Zm-33.8-2h31.35l-6.95-31.85h-31.35l6.95,31.85Z"
1979
- }
1980
- ),
1981
- /* @__PURE__ */ jsx(
1982
- "polygon",
1983
- {
1984
- fill: "#ff7536",
1985
- points: "390.05 630.85 356.68 630.85 349.29 597 382.66 597 390.05 630.85"
1986
- }
1987
- ),
1988
- /* @__PURE__ */ jsx("polygon", { fill: "#ff7536", points: "382 651.12 379.75 649.34 405.73 615.5 407.98 617.27 382 651.12" }),
1989
- /* @__PURE__ */ jsxs("g", { children: [
1990
- /* @__PURE__ */ jsx(
1991
- "path",
1992
- {
1993
- fill: "#cedfff",
1994
- d: "M315.51,446.51c.13-1.17-5.02-21.24-5.02-21.24l18.26,15.01-8.97-.32-4.27,6.56Z"
1995
- }
1996
- ),
1997
- /* @__PURE__ */ jsxs("g", { children: [
1998
- /* @__PURE__ */ jsx(
1999
- "polygon",
2000
- {
2001
- fill: "#cedfff",
2002
- points: "322.59 486.27 319.9 486.27 318.83 481.4 337.08 481.4 338.1 486.08 335.41 486.08 334.99 484.13 322.12 484.13 322.59 486.27"
2003
- }
2004
- ),
2005
- /* @__PURE__ */ jsx(
2006
- "polygon",
2007
- {
2008
- fill: "#cedfff",
2009
- points: "332.96 498.16 330.27 498.16 326.91 482.76 329.6 482.76 332.96 498.16"
2010
- }
2011
- ),
2012
- /* @__PURE__ */ jsx(
2013
- "polygon",
2014
- {
2015
- fill: "#cedfff",
2016
- points: "335.38 499.13 328.28 499.13 327.68 496.4 334.79 496.4 335.38 499.13"
2017
- }
2018
- )
2019
- ] }),
2020
- /* @__PURE__ */ jsx(
2021
- "polygon",
2022
- {
2023
- fill: "#cedfff",
2024
- points: "371.78 500.83 369.35 499.06 382.17 478.6 384.6 480.37 371.78 500.83"
2025
- }
2026
- ),
2027
- /* @__PURE__ */ jsxs("g", { children: [
2028
- /* @__PURE__ */ jsx(
2029
- "path",
2030
- {
2031
- fill: "#cedfff",
2032
- d: "M340.97,548.52c-5.13,0-10.23-4.24-11.37-9.44-1.14-5.21,2.11-9.44,7.25-9.44s10.23,4.24,11.37,9.44c1.14,5.21-2.11,9.44-7.25,9.44Zm-3.58-16.39c-3.78,0-6.17,3.12-5.33,6.95,.84,3.83,4.59,6.95,8.37,6.95s6.17-3.12,5.33-6.95c-.84-3.83-4.59-6.95-8.37-6.95Z"
2033
- }
2034
- ),
2035
- /* @__PURE__ */ jsx(
2036
- "path",
2037
- {
2038
- fill: "#cedfff",
2039
- d: "M358.69,556.72c-.32,0-.67-.13-.97-.38l-12.38-10.57c-.58-.5-.74-1.28-.36-1.76,.38-.48,1.17-.46,1.75,.03l12.38,10.57c.58,.5,.74,1.28,.36,1.76-.19,.23-.47,.35-.78,.35Z"
2040
- }
2041
- )
2042
- ] }),
2043
- /* @__PURE__ */ jsx(
2044
- "polygon",
2045
- {
2046
- fill: "#cedfff",
2047
- points: "385.5 528.76 390.11 537.32 398.98 537.32 392.96 542.61 397.57 551.16 389.24 545.87 383.22 551.16 384.09 542.61 375.76 537.32 384.63 537.32 385.5 528.76"
2048
- }
2049
- )
2050
- ] })
2051
- ] }),
2052
- /* @__PURE__ */ jsxs("g", { children: [
2053
- /* @__PURE__ */ jsx(
2054
- "path",
2055
- {
2056
- fill: "#fa8b79",
2057
- d: "M1241.96,453.88s.24,13.48-1.75,13.23c-1.99-.25-4.7-11.3-4.72-11.14-.02,.17,.9,11.62-1.6,12.19-2.51,.57-5.05-12.13-5.05-12.13,0,0,1.68,10.9-.08,11.19-1.76,.29-4.54-10.28-5.27-10.31-.73-.03,2.34,9.06,.19,9.53-2.15,.46-6.94-12.33-5.32-13.96,1.62-1.63,4.15,.11,4.15,.11,0,0,3.12-2.35,5.52-1.02,0,0,5.62-1.14,7.31,1.39,0,0,3.51-3.06,6.61,.91Z"
2058
- }
2059
- ),
2060
- /* @__PURE__ */ jsxs("g", { children: [
2061
- /* @__PURE__ */ jsx(
2062
- "path",
2063
- {
2064
- fill: "#cedfff",
2065
- d: "M1278.23,402.24l45.59,166.75c1.95,7.13-2.5,12.92-9.94,12.92h-307.72c-7.44,0-15.05-5.78-17-12.92l-45.59-166.75c-1.95-7.13,2.5-12.92,9.94-12.92h307.72c7.44,0,15.05,5.78,17,12.92Z"
2066
- }
2067
- ),
2068
- /* @__PURE__ */ jsxs("g", { children: [
2069
- /* @__PURE__ */ jsx(
2070
- "polygon",
2071
- {
2072
- fill: "#b0c0ff",
2073
- points: "1038.92 477.47 999.17 477.47 988.15 437.16 1027.89 437.16 1038.92 477.47"
2074
- }
2075
- ),
2076
- /* @__PURE__ */ jsx(
2077
- "polygon",
2078
- {
2079
- fill: "#5158bf",
2080
- points: "1026.48 467.6 1006.21 467.6 1000.59 447.03 1020.86 447.03 1026.48 467.6"
2081
- }
2082
- ),
2083
- /* @__PURE__ */ jsx(
2084
- "polygon",
2085
- {
2086
- fill: "#ff7536",
2087
- points: "1000.44 478.4 997.91 476.54 1026.63 436.23 1029.16 438.08 1000.44 478.4"
2088
- }
2089
- ),
2090
- /* @__PURE__ */ jsx(
2091
- "polygon",
2092
- {
2093
- fill: "#ff7536",
2094
- points: "1010.63 455.62 970.89 455.62 959.87 415.3 999.61 415.3 1010.63 455.62"
2095
- }
2096
- )
2097
- ] }),
2098
- /* @__PURE__ */ jsxs("g", { children: [
2099
- /* @__PURE__ */ jsx(
2100
- "polygon",
2101
- {
2102
- fill: "#ff7536",
2103
- points: "1033.21 525.04 1001.26 525.04 992.4 492.63 1024.35 492.63 1033.21 525.04"
2104
- }
2105
- ),
2106
- /* @__PURE__ */ jsx(
2107
- "polygon",
2108
- {
2109
- fill: "#fc7600",
2110
- points: "1064.86 525.04 1032.91 525.04 1024.05 492.63 1056 492.63 1064.86 525.04"
2111
- }
2112
- ),
2113
- /* @__PURE__ */ jsx(
2114
- "polygon",
2115
- {
2116
- fill: "#ff8111",
2117
- points: "1096.81 525.04 1064.86 525.04 1056 492.63 1087.95 492.63 1096.81 525.04"
2118
- }
2119
- ),
2120
- /* @__PURE__ */ jsx(
2121
- "polygon",
2122
- {
2123
- fill: "#6b98f6",
2124
- points: "1128.76 525.04 1096.81 525.04 1087.95 492.63 1119.9 492.63 1128.76 525.04"
2125
- }
2126
- ),
2127
- /* @__PURE__ */ jsx(
2128
- "polygon",
2129
- {
2130
- fill: "#899bfa",
2131
- points: "1160.71 525.04 1128.76 525.04 1119.9 492.63 1151.85 492.63 1160.71 525.04"
2132
- }
2133
- ),
2134
- /* @__PURE__ */ jsx(
2135
- "polygon",
2136
- {
2137
- fill: "#697ee3",
2138
- points: "1192.66 525.04 1160.71 525.04 1151.85 492.63 1183.8 492.63 1192.66 525.04"
2139
- }
2140
- ),
2141
- /* @__PURE__ */ jsx(
2142
- "polygon",
2143
- {
2144
- fill: "#5158bf",
2145
- points: "1224.61 525.04 1192.66 525.04 1183.8 492.63 1215.75 492.63 1224.61 525.04"
2146
- }
2147
- ),
2148
- /* @__PURE__ */ jsx(
2149
- "polygon",
2150
- {
2151
- fill: "#25468f",
2152
- points: "1256.56 525.04 1224.61 525.04 1215.75 492.63 1247.7 492.63 1256.56 525.04"
2153
- }
2154
- ),
2155
- /* @__PURE__ */ jsx(
2156
- "polygon",
2157
- {
2158
- fill: "#a1b3ff",
2159
- points: "1042.07 557.45 1010.12 557.45 1001.26 525.04 1033.21 525.04 1042.07 557.45"
2160
- }
2161
- ),
2162
- /* @__PURE__ */ jsx(
2163
- "polygon",
2164
- {
2165
- fill: "#899bfa",
2166
- points: "1073.72 557.45 1041.77 557.45 1032.91 525.04 1064.86 525.04 1073.72 557.45"
2167
- }
2168
- ),
2169
- /* @__PURE__ */ jsx(
2170
- "polygon",
2171
- {
2172
- fill: "#5158bf",
2173
- points: "1105.67 557.45 1073.72 557.45 1064.86 525.04 1096.81 525.04 1105.67 557.45"
2174
- }
2175
- ),
2176
- /* @__PURE__ */ jsx(
2177
- "polygon",
2178
- {
2179
- fill: "#25468f",
2180
- points: "1137.62 557.45 1105.67 557.45 1096.81 525.04 1128.76 525.04 1137.62 557.45"
2181
- }
2182
- )
2183
- ] }),
2184
- /* @__PURE__ */ jsx(
2185
- "path",
2186
- {
2187
- fill: "#ff8111",
2188
- d: "M1258.13,429.21h-167.36c-2.3,0-4.7-1.91-5.34-4.24h0c-.64-2.33,.72-4.24,3.02-4.24h167.36c2.3,0,4.7,1.91,5.34,4.24h0c.64,2.33-.72,4.24-3.02,4.24Z"
2189
- }
2190
- ),
2191
- /* @__PURE__ */ jsx(
2192
- "path",
2193
- {
2194
- fill: "#6b98f6",
2195
- d: "M1263.98,450.63h-167.36c-2.3,0-4.7-1.91-5.34-4.24h0c-.64-2.33,.72-4.24,3.02-4.24h167.36c2.3,0,4.7,1.91,5.34,4.24h0c.64,2.33-.72,4.24-3.02,4.24Z"
2196
- }
2197
- ),
2198
- /* @__PURE__ */ jsx(
2199
- "path",
2200
- {
2201
- fill: "#5158bf",
2202
- d: "M1269.84,472.05h-167.36c-2.3,0-4.7-1.91-5.34-4.24h0c-.64-2.33,.72-4.24,3.02-4.24h167.36c2.3,0,4.7,1.91,5.34,4.24h0c.64,2.33-.72,4.24-3.02,4.24Z"
2203
- }
2204
- ),
2205
- /* @__PURE__ */ jsxs("g", { children: [
2206
- /* @__PURE__ */ jsx(
2207
- "path",
2208
- {
2209
- fill: "#5158bf",
2210
- d: "M1062.31,418.73h5.04c2.65,0,4.59,1.44,5.2,3.65,.51,1.88-.29,3.01-1.75,3.47l4.24,4.34h-2.34l-3.9-4h-2.45l1.09,4h-1.99l-3.14-11.47Zm6.45,5.68c1.42,0,2.12-.75,1.79-1.95-.34-1.23-1.39-1.9-2.86-1.9h-2.89l1.05,3.85h2.91Z"
2211
- }
2212
- ),
2213
- /* @__PURE__ */ jsx(
2214
- "path",
2215
- {
2216
- fill: "#5158bf",
2217
- d: "M1068.12,446.11c-.88-3.21,.8-5.93,4.21-5.93,1.97,0,3.33,.56,4.77,1.56l-.84,1.52c-1.08-.75-2.06-1.23-3.5-1.23-2.08,0-3.16,1.85-2.55,4.08,.64,2.36,2.65,4.1,4.96,4.1,1.07,0,1.94-.34,2.49-.87l-.59-2.15h-2.89l-.48-1.75h4.81l1.32,4.82c-.85,.97-2.23,1.79-4.23,1.79-3.54,0-6.56-2.56-7.48-5.93Z"
2218
- }
2219
- ),
2220
- /* @__PURE__ */ jsx(
2221
- "path",
2222
- {
2223
- fill: "#5158bf",
2224
- d: "M1074.44,463.09h5.07c1.29,0,2.41,.36,3.23,1.02,.64,.51,1.07,1.13,1.29,1.93,.38,1.38-.2,2.11-.92,2.56,1.45,.46,2.58,1.23,3.01,2.82,.56,2.05-.8,3.15-3.32,3.15h-5.23l-3.14-11.47Zm5.99,4.83c1.28,0,1.99-.51,1.7-1.59-.25-.9-1.11-1.46-2.38-1.46h-2.86l.83,3.05h2.71Zm1.91,4.85c1.36,0,2.03-.54,1.74-1.61-.26-.97-1.18-1.54-2.75-1.54h-3.15l.86,3.15h3.29Z"
2225
- }
2226
- )
2227
- ] })
2228
- ] })
2229
- ] }),
2230
- /* @__PURE__ */ jsxs("g", { children: [
2231
- /* @__PURE__ */ jsxs("g", { children: [
2232
- /* @__PURE__ */ jsx(
2233
- "path",
2234
- {
2235
- fill: "#ffae73",
2236
- d: "M640.44,422.49c-.89,1.03-1,2.18-.56,3.41,0,0,0,.01,0,.02,.81,2.27,3.49,4.81,6.6,7.35,.4,.33,.75,.62,1.06,.9,.08,.07,.16,.14,.24,.22,.06,.06,.12,.11,.18,.17,2.9,2.71,1.81,3.34,7.03,8.85,5.95,6.28,10.04,6.39,11.21,5.82,.99-.49-1.02-3.82-3.23-7.56-.11-.18-.21-.36-.32-.55-.3-.5-.59-1-.88-1.5-2.6-4.5-1.93-6.62-1.32-13.32,.5-5.45,8.35-30.42,8.35-30.42l-11.4-1.99s-3.43,19.89-7.21,22.95c-2.02,1.63-4.29,1.65-6.23,2.86-.14,.08-.27,.17-.4,.26-1.1,.74-2.23,1.51-3.12,2.54Z"
2237
- }
2238
- ),
2239
- /* @__PURE__ */ jsx(
2240
- "path",
2241
- {
2242
- fill: "#1e3865",
2243
- d: "M640.44,422.49c-.89,1.03-1,2.18-.56,3.41,0,0,0,.01,0,.02,.99,2.27,3.61,4.8,6.62,7.33,.39,.33,.74,.64,1.05,.92,.08,.07,.16,.14,.24,.22,.06,.06,.12,.11,.18,.17,2.9,2.71,1.81,3.34,7.03,8.85,5.95,6.28,10.04,6.39,11.21,5.82,.99-.49-1.02-3.82-3.23-7.56-1.16-.43-6.54-2.65-10.6-7.92-3.45-4.47-5.79-10.16-8.14-13.65-.26-.05-.41-.08-.67-.13-1.1,.74-2.23,1.51-3.12,2.54Z"
2244
- }
2245
- ),
2246
- /* @__PURE__ */ jsx(
2247
- "path",
2248
- {
2249
- fill: "#ffae73",
2250
- d: "M732.33,415.27c.7,3.57,5.72,2.97,11.32,1.58,5.6-1.39,4.27,.26,12.24-.63,7.97-.9,10.39-3.91,10.63-5.11,.22-1.07-3.72-1.44-7.95-1.94-.53-.06-1.07-.13-1.6-.19-4.77-.61-8.26-3.73-12.6-6.29-4.1-2.43-10.23-12.33-10.23-12.33l-10.93,.88s5.74,8.84,7.96,12.68c1.31,2.26,1.24,5.25,1.07,7.56-.08,1.25-.17,2.54,.08,3.79Z"
2251
- }
2252
- ),
2253
- /* @__PURE__ */ jsx(
2254
- "path",
2255
- {
2256
- fill: "#1e3865",
2257
- d: "M743.65,416.85c5.6-1.39,4.27,.26,12.24-.63,7.97-.9,10.39-3.91,10.63-5.11,.22-1.07-3.72-1.44-7.95-1.94l-.04,.08s-4.78,3.44-11.42,3.6c-5.41,.13-11.14-1.44-14.87-1.38-.08,1.25-.17,2.54,.08,3.79,.7,3.57,5.72,2.97,11.32,1.58Z"
2258
- }
2259
- ),
2260
- /* @__PURE__ */ jsx(
2261
- "path",
2262
- {
2263
- fill: "#f28018",
2264
- d: "M690.43,344.35l-10.22,27.9-13.34,36.43s-3.62,.35-7.09-.66c-3.19-.94-6.86-3.39-6.86-3.39,0,0,3.71-39.12,10.62-61.57,1.77-5.76,3.76-10.43,5.95-13.05,10.72-12.85,20.95,14.33,20.95,14.33Z"
2265
- }
2266
- ),
2267
- /* @__PURE__ */ jsx(
2268
- "path",
2269
- {
2270
- fill: "#ff912b",
2271
- d: "M680.04,300.04c-5.82-1.9-21-.03-37.47,2.99-4.55,.84-9.14-1.27-11.53-5.28h0l-41.44-3.28s-13.68,30.76-6.19,50.36c1.1,2.88,3.52,4.68,7.24,4.74h0s25.04,.04,33.05,.04c20.61,0,43.62-14.37,46.59-14.97,4.87-.99,6.82,8.89,11.69,19.27,4.87,10.38,45.79,45.96,45.79,45.96,0,0,6.29,.06,8.89-.92,2.79-1.06,3.82-2.44,3.82-2.44,0,0-45.34-91.51-60.45-96.45Z"
2272
- }
2273
- ),
2274
- /* @__PURE__ */ jsx(
2275
- "path",
2276
- {
2277
- fill: "#10294c",
2278
- d: "M626.64,174.3c-3.08-1.86-6.08-2.14-7.92-2.09-1.28,.04-2.56-.05-3.82-.23-15.82-2.35-25.34,20.95-25.9,27.99-1.02,12.93-7.77,14.9-17.26,23-19.03,16.23-13.45,35.1-3.04,42.11,6.24,4.21,17.25,0,17.25,0,.16,.11,30.09-16.98,44.85-25.22,22.12-3.19,4.73-60.19-4.16-65.55Z"
2279
- }
2280
- ),
2281
- /* @__PURE__ */ jsx(
2282
- "path",
2283
- {
2284
- fill: "#ffae73",
2285
- d: "M618.43,232.84c.06,.04-7.26,2.58-12.16,.38-4.61-2.07-8.1-9.76-8.03-9.76,2.1-.1,4.4-1.96,6.17-14.16l.89,.32,15.01,5.48s-1.09,4.89-1.79,9.54c-.59,3.91-.91,7.65-.09,8.2Z"
2286
- }
2287
- ),
2288
- /* @__PURE__ */ jsx(
2289
- "path",
2290
- {
2291
- fill: "#f9924f",
2292
- d: "M620.31,215.1s-.6,2.64-1.47,7.56c-8.62-1.57-12.32-8.31-13.54-13.04l15.01,5.48Z"
2293
- }
2294
- ),
2295
- /* @__PURE__ */ jsx(
2296
- "path",
2297
- {
2298
- fill: "#ffae73",
2299
- d: "M622.54,219.95s-20.53-2.8-18.62-15.74c1.91-12.95,.55-22.02,13.74-20.79,13.19,1.24,15,6.56,15.4,11.04,.4,4.48-5.13,25.88-10.52,25.49Z"
2300
- }
2301
- ),
2302
- /* @__PURE__ */ jsx(
2303
- "path",
2304
- {
2305
- fill: "#10294c",
2306
- d: "M632.32,187.37s-13.15,11.49-22.09,12.42c-8.94,.93-12.33-1.98-12.33-1.98,0,0,5.27-4.44,8.44-11.6,.93-2.11,2.91-3.56,5.18-3.76,6.38-.56,18.49-.81,20.79,4.93Z"
2307
- }
2308
- ),
2309
- /* @__PURE__ */ jsx(
2310
- "path",
2311
- {
2312
- fill: "#10294c",
2313
- d: "M624.1,186.34s4.4,4.31,5.78,7.51c1.34,3.09,1.74,10.47,.67,13.4,0,0,6.85-13.51,2.97-20.08-4.11-6.96-9.43-.84-9.43-.84Z"
2314
- }
2315
- ),
2316
- /* @__PURE__ */ jsx(
2317
- "path",
2318
- {
2319
- fill: "#899bfa",
2320
- d: "M635.72,263.52c-.62,42.17-.17,33.35-4.72,37.36-1.1,.96-4.18,1.54-8.23,1.81-12.75,.86-35.15-1.27-36-3.66-2.94-8.27-.86-10.84-3.32-23.49-.26-1.35-.57-2.8-.94-4.39-2.05-8.69-4.04-11.65,3.22-25.62,6.58-12.65,13.42-22.92,14.03-22.55,17.36,10.45,18.76,1.67,18.76,1.67,0,0,17.51,18.31,17.2,38.88Z"
2321
- }
2322
- ),
2323
- /* @__PURE__ */ jsx(
2324
- "path",
2325
- {
2326
- fill: "#ff912b",
2327
- d: "M680.21,372.25l-13.34,36.43s-3.62,.35-7.09-.66c-3.19-.94-6.86-3.39-6.86-3.39,0,0,3.71-39.12,10.62-61.57l16.67,29.18Z"
2328
- }
2329
- ),
2330
- /* @__PURE__ */ jsx(
2331
- "path",
2332
- {
2333
- fill: "#899bfa",
2334
- d: "M618.52,224.64s17.86,3.07,19.96,10.87c2.1,7.8,9,55.16,9,55.16,0,0-5.04,4.99-9.23,.73-4.19-4.26-13.2-44.31-13.2-44.31l-6.53-22.46Z"
2335
- }
2336
- ),
2337
- /* @__PURE__ */ jsx(
2338
- "path",
2339
- {
2340
- fill: "#6f7deb",
2341
- d: "M622.77,302.69c-12.75,.86-35.15-1.27-36-3.66-2.94-8.27-.86-10.84-3.32-23.49l6.15-17.56s-1.02,19.55,4.67,24.7c5.68,5.14,23.28,9.93,26.04,14.23,1.33,2.06,2.21,4.13,2.47,5.79Z"
2342
- }
2343
- ),
2344
- /* @__PURE__ */ jsx(
2345
- "path",
2346
- {
2347
- fill: "#ffae73",
2348
- d: "M608.17,294.46s12.57-2.84,14.6-1.71c2.03,1.13,6.99,5.25,7.61,6.69,.62,1.43-4.52-1.09-6.19-1.54-1.08-.29-3.93,.71-5.34,1.19-5.93,2.01-9.57,.97-9.57,.97l-1.11-5.6Z"
2349
- }
2350
- ),
2351
- /* @__PURE__ */ jsx(
2352
- "path",
2353
- {
2354
- fill: "#899bfa",
2355
- d: "M599.74,222.97s-16.88,1.05-22.73,9.32c-8.23,11.64-24.55,61.25-15.2,67.87,10.53,7.45,47.95,1.95,47.95,1.95,0,0,1.24-5.9-.49-8.76-1.73-2.86-29.88-7.47-31.18-8.79-1.3-1.32,16.24-25.7,16.24-29.65s5.41-31.95,5.41-31.95Z"
2356
- }
2357
- ),
2358
- /* @__PURE__ */ jsx(
2359
- "path",
2360
- {
2361
- fill: "#ffae73",
2362
- d: "M623.38,296.31s2.63,3.45,3.5,3.86c.86,.41,1.42,.31,1.42,.31l-1.78-3.24-3.14-.93Z"
2363
- }
2364
- ),
2365
- /* @__PURE__ */ jsx(
2366
- "path",
2367
- {
2368
- fill: "#ffae73",
2369
- d: "M622.77,292.76l7.66,3.77s-.33,.54-1.27,.5c-.94-.04-3.32-.93-3.32-.93l-3.07-3.34Z"
2370
- }
2371
- )
2372
- ] }),
2373
- /* @__PURE__ */ jsxs("g", { children: [
2374
- /* @__PURE__ */ jsx(
2375
- "polygon",
2376
- {
2377
- fill: "#10294c",
2378
- points: "688.18 301.63 608.17 301.63 608.17 303.42 687.47 303.42 688.18 301.63"
2379
- }
2380
- ),
2381
- /* @__PURE__ */ jsx(
2382
- "polygon",
2383
- {
2384
- fill: "#10294c",
2385
- points: "626.88 303.42 687.47 303.42 705.7 257.44 645.2 257.44 626.88 303.42"
2386
- }
2387
- ),
2388
- /* @__PURE__ */ jsx(
2389
- "path",
2390
- {
2391
- fill: "#e8f2fa",
2392
- d: "M672.18,280.43c.46-1.62-.46-2.93-2.06-2.93s-3.26,1.31-3.71,2.93,.46,2.93,2.06,2.93,3.26-1.31,3.71-2.93Z"
2393
- }
2394
- )
2395
- ] })
2396
- ] }),
2397
- /* @__PURE__ */ jsx(
2398
- "polygon",
2399
- {
2400
- fill: "#fff",
2401
- points: "666.18 584.13 672.4 589.62 666.99 595.92 660.77 590.43 666.18 584.13"
2402
- }
2403
- ),
2404
- /* @__PURE__ */ jsxs("g", { children: [
2405
- /* @__PURE__ */ jsx(
2406
- "path",
2407
- {
2408
- fill: "#f28018",
2409
- d: "M586.7,695.57c-1.24-4.18-1.86-4.55-1.86-4.55,0,0-38.53,4.87-45.07,4.44-3.88-.25-50.15-15.91-50.15-15.91l-28.09,27.33s69.67,11.64,79.49,10.88c16.23-1.26,41-15.79,41-15.79,0,0,5.65-3.12,4.67-6.4Z"
2410
- }
2411
- ),
2412
- /* @__PURE__ */ jsx(
2413
- "path",
2414
- {
2415
- fill: "#104c82",
2416
- d: "M481.4,1007.55s.54,13.24,3.05,16.46l34.88,.2c-.24-1.37-.39-4.52-5.21-5.38-6.09-1.08-13.25-5.39-16.94-13.56-3.88-8.6-15.77,2.27-15.77,2.27Z"
2417
- }
2418
- ),
2419
- /* @__PURE__ */ jsx(
2420
- "path",
2421
- {
2422
- fill: "#104c82",
2423
- d: "M412.95,1005.64s-2.43,17.59,.87,17.9c.44,.04,14.05,.26,19.95,.36,6.93,.12,18.33-.13,18.33-.13,1.43,.06,2.37-1.51,1.64-2.77-.8-1.37-2.33-2.84-5.24-3.41-6.07-1.19-16.2-5.71-19.74-13.95-3.73-8.66-15.8,1.99-15.8,1.99Z"
2424
- }
2425
- ),
2426
- /* @__PURE__ */ jsx(
2427
- "path",
2428
- {
2429
- fill: "#6f7deb",
2430
- d: "M499.53,825.34s-9.7,34.42-37.49,94.2c-27.79,59.78-29,88.58-29,88.58,0,0-4.21,1.51-9.79,.91-6.04-.65-10.3-3.39-10.3-3.39,0,0,1.8-71.15,14.93-101.31,13.13-30.17,15.8-112.71,15.8-112.71l55.84,33.73Z"
2431
- }
2432
- ),
2433
- /* @__PURE__ */ jsx(
2434
- "path",
2435
- {
2436
- fill: "#899bfa",
2437
- d: "M515.1,795.72s.77,53.3-8.32,118.75c-9.09,65.44-4.84,95.88-4.84,95.88,0,0-2.41,1.78-9.82,1.75-8.68-.03-13.12-3.67-13.12-3.67,0,0-13.01-65.47-9.28-98.23,3.73-32.76-17.82-112.4-17.82-112.4l63.2-2.08Z"
2438
- }
2439
- ),
2440
- /* @__PURE__ */ jsx(
2441
- "path",
2442
- {
2443
- fill: "#ffae73",
2444
- d: "M493.98,662.86c-.09,4.18-.64,8.74-2.29,10.97l-9.25,4.93-10.26-7.71s3.76-8.46,2.84-20.82c-.09-.74-.46-5.48-.46-5.58l5.13,2.6,13.93,7.06s0,.28,.09,.65c.09,1.4,.28,4.46,.28,7.9Z"
2445
- }
2446
- ),
2447
- /* @__PURE__ */ jsx(
2448
- "path",
2449
- {
2450
- fill: "#ff912b",
2451
- d: "M442.72,802.31c3.36,15.58,75.23,8.74,74.29-.77-.04-.32-.22-4.72-.48-10.65-.54-12.83-1.38-32.89-1.48-34.45,0-.03,0-.05,0-.08-1.29-13.24-2.54-26.19-2.62-34.65-.07-7.34-1.07-14.84-2.39-21.65-1.22-6.29-2.72-11.99-4.03-16.44-.92-3.13-2.63-5.89-4.9-8.05-1.62-1.54-3.51-2.78-5.6-3.62-.57-.24-1.15-.44-1.74-.62-8.46-2.49-16.99-5.66-20.16-4.72-8.59,2.56-18.15,18-22.67,37.55-8.46,36.6-10.41,88-8.21,98.15Z"
2452
- }
2453
- ),
2454
- /* @__PURE__ */ jsx(
2455
- "path",
2456
- {
2457
- fill: "#ffa05e",
2458
- d: "M493.98,662.86c-5.22-2.14-15.21-6.97-17.96-12.45-1.19-2.42,.64-3.16,3.66-3.16l13.93,7.06s0,.28,.09,.65c.09,1.4,.28,4.46,.28,7.9Z"
2459
- }
2460
- ),
2461
- /* @__PURE__ */ jsx(
2462
- "path",
2463
- {
2464
- fill: "#ffae73",
2465
- d: "M500.32,653.44s-25.01,7.91-29.63-7.96c-4.62-15.87-10.96-25.54,4.82-31.27,15.77-5.72,20.65-.6,23.46,4.32,2.81,4.92,7.74,32.44,1.35,34.91Z"
2466
- }
2467
- ),
2468
- /* @__PURE__ */ jsx(
2469
- "path",
2470
- {
2471
- fill: "#0b3563",
2472
- d: "M497.99,617s-1.59,18.47-5.36,17.67c-3.77-.8-7.18-1.4-6.63,4.17,.55,5.57,.73,12.26-10.88,13.25-11.61,.99-23.25-29.64-20.06-35.39,9.2-16.59,56.22-19.93,42.93,.3Z"
2473
- }
2474
- ),
2475
- /* @__PURE__ */ jsx(
2476
- "path",
2477
- {
2478
- fill: "#f28018",
2479
- d: "M516.52,790.89c-.54-12.83-1.38-32.89-1.48-34.45,0-.03,0-.05,0-.08l-42.46-25.75s-1.64,60.11,43.95,60.29Z"
2480
- }
2481
- ),
2482
- /* @__PURE__ */ jsxs("g", { children: [
2483
- /* @__PURE__ */ jsxs("g", { children: [
2484
- /* @__PURE__ */ jsx(
2485
- "path",
2486
- {
2487
- fill: "#0b3563",
2488
- d: "M663,586.79l7.65,6.75s-13.11,14.24-11.89,29.23l-19.58,16.77-16.21-14.32,13.56-22.81s14.53-.53,26.48-15.63Z"
2489
- }
2490
- ),
2491
- /* @__PURE__ */ jsx(
2492
- "path",
2493
- {
2494
- fill: "#fff",
2495
- d: "M643.1,611.15c1.58-1.84,4.33-2.03,6.15-.43,1.81,1.6,2.01,4.39,.43,6.23-1.58,1.84-4.33,2.03-6.15,.43-1.81-1.6-2.01-4.39-.43-6.23Z"
2496
- }
2497
- ),
2498
- /* @__PURE__ */ jsx(
2499
- "polygon",
2500
- {
2501
- fill: "#fff",
2502
- points: "644.37 617.69 643.11 616.58 666.23 589.63 667.49 590.74 644.37 617.69"
2503
- }
2504
- )
2505
- ] }),
2506
- /* @__PURE__ */ jsx(
2507
- "polygon",
2508
- {
2509
- fill: "#6d76ff",
2510
- points: "635.64 643.68 619.42 629.36 622.96 625.23 639.18 639.54 635.64 643.68"
2511
- }
2512
- ),
2513
- /* @__PURE__ */ jsx(
2514
- "path",
2515
- {
2516
- fill: "#0b3563",
2517
- d: "M458.23,834.69l-.79-.69c-4.26-3.76-4.71-10.32-1-14.64l162.97-190,16.22,14.32-162.97,190c-3.71,4.32-10.17,4.78-14.43,1.02Z"
2518
- }
2519
- )
2520
- ] }),
2521
- /* @__PURE__ */ jsx(
2522
- "path",
2523
- {
2524
- fill: "#ffae73",
2525
- d: "M549.94,736.45s3.13-2.82,3.87-4.77c.25-.68,2.39-3.74,6.03-3.47,3.33,.25,9.24-6.94,9.24-6.94,.86,1.9,3.83,9.03-.42,12.65-3.47,2.95-11.81,8.05-16.87,11.41-5.44,3.61-1.85-8.88-1.85-8.88Z"
2526
- }
2527
- ),
2528
- /* @__PURE__ */ jsx(
2529
- "path",
2530
- {
2531
- fill: "#ff912b",
2532
- d: "M550.35,735.4s-42.11,7.26-45.84,5.42c-5.96-2.94,2.31-46.28,2.31-46.28,0,0,.36-9.82-10.96-12.14-9.83-2.01-19.31,5.46-19.31,5.46,0,0-8.63,7.83-7.52,16.51,2.44,19.25,6.24,58.39,18.93,64.39,16.37,7.74,63.73-21.46,63.73-21.46,0,0,1.58-1.96,1.35-5.6-.2-3.21-2.7-6.3-2.7-6.3Z"
2533
- }
2534
- ),
2535
- /* @__PURE__ */ jsx(
2536
- "path",
2537
- {
2538
- fill: "#ffae73",
2539
- d: "M588.46,698.68s10.63-3.93,9.69-9.44c-.94-5.51-4.25-4.82-6.25-2.92-2,1.9-.89,11.66-3.44,12.36Z"
2540
- }
2541
- ),
2542
- /* @__PURE__ */ jsx(
2543
- "path",
2544
- {
2545
- fill: "#ffae73",
2546
- d: "M553.07,733.63s1.45-4.32,3-6.17c1.55-1.85,2.2-4.99,2.91-3.95,.7,1.05-.56,4.8,0,6.23,.56,1.43-5.9,3.89-5.9,3.89Z"
2547
- }
2548
- )
2549
- ] }),
2550
- /* @__PURE__ */ jsx("rect", { fill: "#a9c2ff", height: "67.09", width: "190.42", y: "956.62", x: "1304.39" }),
2551
- /* @__PURE__ */ jsx("rect", { fill: "#1e3865", ry: "2.37", rx: "2.37", height: "4.74", width: "1620", y: "1023.26" })
2552
- ] }) }) })
2553
- ] });
2554
- };
2555
- default_default = Default;
2556
- }
2557
- });
2558
-
2559
- // src/pages/base/Login/index.tsx
2560
- var Login_exports = {};
2561
- __export(Login_exports, {
2562
- default: () => Login_default
2563
- });
2564
- var Title, Login, Login_default;
2565
- var init_Login = __esm({
2566
- "src/pages/base/Login/index.tsx"() {
2567
- init_esm_shims();
2568
- init_constants();
2569
- init_stores();
2570
- init_default();
2571
- init_hooks2();
2572
- ({ Title } = Typography);
2573
- Login = (props) => {
2574
- const { children } = props;
2575
- const [searchParams, setSearchParams] = useSearchParams();
2576
- const token = useTokenStore((state) => state.token);
2577
- const setToken = useTokenStore((state) => state.setToken);
2578
- const [showAlert, setShowAlert] = useState(false);
2579
- const httpClient = useHttpClient();
2580
- useSWRImmutable(
2581
- searchParams.has("ticket") ? {
2582
- url: "/api/usystem/user/login",
2583
- params: {
2584
- ticket: searchParams.get("ticket")
2585
- }
2586
- } : null,
2587
- (config) => httpClient.request(config),
2588
- {
2589
- suspense: true,
2590
- onSuccess: (data) => {
2591
- setToken(data.token);
2592
- }
2593
- }
2594
- );
2595
- useEffect(() => {
2596
- if (searchParams.has("not_registered")) {
2597
- setShowAlert(true);
2598
- searchParams.delete("not_registered");
2599
- setSearchParams(searchParams);
2600
- }
2601
- }, [searchParams, setSearchParams]);
2602
- if (token) {
2603
- return /* @__PURE__ */ jsx(Navigate, { replace: true, to: "/" });
2604
- }
2605
- return /* @__PURE__ */ jsxs(Row, { children: [
2606
- /* @__PURE__ */ jsx(Col, { span: 10, offset: 3, children: /* @__PURE__ */ jsx("div", { className: "h-screen flex justify-end items-center", children: /* @__PURE__ */ jsx(default_default, {}) }) }),
2607
- /* @__PURE__ */ jsx(Col, { span: 5, offset: 3, children: /* @__PURE__ */ jsx("div", { className: "h-screen relative", children: /* @__PURE__ */ jsxs(Card, { hoverable: true, className: "absolute left-0 right-0 top-1/2 -translate-y-1/2", children: [
2608
- showAlert && /* @__PURE__ */ jsx("div", { className: "absolute -top-12 left-0 right-0", children: /* @__PURE__ */ jsx(
2609
- Alert,
2610
- {
2611
- banner: true,
2612
- closable: true,
2613
- message: "\u60A8\u8FD8\u672A\u5728\u5E73\u53F0\u6CE8\u518C\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458",
2614
- type: "error",
2615
- onClose: () => {
2616
- setShowAlert(false);
2617
- }
2618
- }
2619
- ) }),
2620
- /* @__PURE__ */ jsxs("div", { className: "text-center mb-6", children: [
2621
- /* @__PURE__ */ jsx(Title, { level: 5, children: "\u767B\u5F55\u65B9\u5F0F" }),
2622
- /* @__PURE__ */ jsx("div", { className: "min-h-10", children })
2623
- ] }),
2624
- /* @__PURE__ */ jsx(Divider, { plain: true, children: "\u7B2C\u4E09\u65B9\u767B\u5F55\u65B9\u5F0F" }),
2625
- /* @__PURE__ */ jsx("div", { className: "w-full flex justify-center", children: /* @__PURE__ */ jsx(Space, { size: "small", children: /* @__PURE__ */ jsx(
2626
- Button,
2627
- {
2628
- type: "link",
2629
- size: "small",
2630
- shape: "round",
2631
- icon: /* @__PURE__ */ jsx(AliyunOutlined, {}),
2632
- href: `${SSO_URL}/login?service=${encodeURIComponent(window.location.origin)}/login`,
2633
- target: "_self",
2634
- children: "IDass \u767B\u5F55"
2635
- }
2636
- ) }) })
2637
- ] }) }) })
2638
- ] });
2639
- };
2640
- Login_default = Login;
2641
- }
2642
- });
2643
-
2644
- // src/pages/base/NotFound/index.tsx
2645
- var NotFound_exports = {};
2646
- __export(NotFound_exports, {
2647
- default: () => NotFound_default
2648
- });
2649
- var NotFound, NotFound_default;
2650
- var init_NotFound = __esm({
2651
- "src/pages/base/NotFound/index.tsx"() {
2652
- init_esm_shims();
2653
- NotFound = () => {
2654
- const navigate = useNavigate();
2655
- return /* @__PURE__ */ jsx("div", { className: "h-screen flex justify-center items-center", children: /* @__PURE__ */ jsx(
2656
- Result,
2657
- {
2658
- status: "404",
2659
- title: "404",
2660
- subTitle: "\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728",
2661
- extra: /* @__PURE__ */ jsx(
2662
- Button,
2663
- {
2664
- type: "primary",
2665
- onClick: () => {
2666
- navigate("/");
2667
- },
2668
- children: "\u8FD4\u56DE\u9875\u9762"
2669
- }
2670
- )
2671
- }
2672
- ) });
2673
- };
2674
- NotFound_default = NotFound;
2675
- }
2676
- });
2677
- function useAllPermissions() {
2678
- return useSWR({
2679
- url: "/api/usystem/user/allPermssions"
2680
- });
2681
- }
2682
- function useAllPermissionsV2() {
2683
- return useSWR({
2684
- url: "/api/usystem/user/allPermissionsV2"
2685
- });
2686
- }
2687
- function useAllRoles() {
2688
- const { accessible } = usePermission("200005");
2689
- return useSWR(
2690
- accessible ? {
2691
- url: "/api/usystem/role/all"
2692
- } : null
2693
- );
2694
- }
2695
- function useRole(name) {
2696
- const isPermissionV2 = useReactToolkitsContext((state) => state.isPermissionV2);
2697
- return useSWR({
2698
- url: isPermissionV2 ? "/api/usystem/role/infoV2" : "/api/usystem/role/info",
2699
- params: { name }
2700
- });
2701
- }
2702
- function useCreateRole() {
2703
- const httpClient = useHttpClient();
2704
- const isPermissionV2 = useReactToolkitsContext((state) => state.isPermissionV2);
2705
- return useSWRMutation2(
2706
- isPermissionV2 ? "/api/usystem/role/createV2" : "/api/usystem/role/create",
2707
- (url, {
2708
- arg
2709
- }) => httpClient.post(url, arg)
2710
- );
2711
- }
2712
- function useUpdateRole() {
2713
- const httpClient = useHttpClient();
2714
- const isPermissionV2 = useReactToolkitsContext((state) => state.isPermissionV2);
2715
- return useSWRMutation2(
2716
- isPermissionV2 ? "/api/usystem/role/updateV2" : "/api/usystem/role/update",
2717
- (url, {
2718
- arg
2719
- }) => httpClient.post(url, arg)
2720
- );
2721
- }
2722
- function useRemoveRole() {
2723
- const httpClient = useHttpClient();
2724
- return useSWRMutation2(
2725
- "/api/usystem/role/delete",
2726
- (url, {
2727
- arg
2728
- }) => httpClient.post(url, arg)
2729
- );
2730
- }
2731
- function useCreateUser() {
2732
- const httpClient = useHttpClient();
2733
- return useSWRMutation2(
2734
- "/api/usystem/user/create",
2735
- (url, {
2736
- arg
2737
- }) => httpClient.post(url, arg)
2738
- );
2739
- }
2740
- function useUpdateUser() {
2741
- const httpClient = useHttpClient();
2742
- return useSWRMutation2(
2743
- "/api/usystem/user/update",
2744
- (url, {
2745
- arg
2746
- }) => httpClient.post(url, arg)
2747
- );
2748
- }
2749
- function useRemoveUser() {
2750
- const httpClient = useHttpClient();
2751
- return useSWRMutation2(
2752
- "/api/usystem/user/delete",
2753
- (url, {
2754
- arg
2755
- }) => httpClient.post(url, arg)
2756
- );
2757
- }
2758
- var init_hooks3 = __esm({
2759
- "src/features/permission/hooks/index.ts"() {
2760
- init_esm_shims();
2761
- init_hooks2();
2762
- init_components();
2763
- }
2764
- });
2765
- var PermissionCollapse, PermissionCollapse_default;
2766
- var init_PermissionCollapse = __esm({
2767
- "src/features/permission/components/PermissionCollapse/index.tsx"() {
2768
- init_esm_shims();
2769
- PermissionCollapse = (props) => {
2770
- const { permissions, readonly, expand, value, onChange } = props;
2771
- const [activeKey, setActiveKey] = useState([]);
2772
- const [checkedMap, setCheckedMap] = useState({});
2773
- const [internalValue, setInternalValue] = useState(value != null ? value : []);
2774
- const onCollapseChange = useCallback((key) => {
2775
- setActiveKey(key);
2776
- }, []);
2777
- const getCheckedValue = (checkedValue, codes) => {
2778
- let tempValue = [];
2779
- if (checkedValue) {
2780
- tempValue = [...new Set(internalValue.concat(codes))];
2781
- } else {
2782
- tempValue = internalValue.slice();
2783
- codes.forEach((code) => {
2784
- const index = tempValue.findIndex((item) => item === code);
2785
- if (index > -1) {
2786
- tempValue.splice(index, 1);
2787
- }
2788
- });
2789
- }
2790
- return tempValue;
2791
- };
2792
- const onCheckChange = (e, category, codes) => {
2793
- const checkedValue = getCheckedValue(e.target.checked, codes);
2794
- setInternalValue(checkedValue);
2795
- onChange == null ? void 0 : onChange(checkedValue);
2796
- };
2797
- useEffect(() => {
2798
- setInternalValue(value != null ? value : []);
2799
- }, [value]);
2800
- useEffect(() => {
2801
- if (expand) {
2802
- setActiveKey((permissions != null ? permissions : []).map(({ category }) => category));
2803
- }
2804
- }, [expand, permissions]);
2805
- useEffect(() => {
2806
- const checkedValue = (permissions != null ? permissions : []).reduce(
2807
- (acc, curr) => {
2808
- acc[curr.category] = curr.permissions.every((item) => internalValue.includes(item.value));
2809
- return acc;
2810
- },
2811
- {}
2812
- );
2813
- setCheckedMap(checkedValue);
2814
- }, [internalValue, permissions]);
2815
- return /* @__PURE__ */ jsx(
2816
- Collapse,
2817
- {
2818
- style: { width: "100%" },
2819
- collapsible: "header",
2820
- activeKey,
2821
- items: (permissions != null ? permissions : []).map((item) => ({
2822
- key: item.category,
2823
- label: item.category,
2824
- extra: !readonly && /* @__PURE__ */ jsx(
2825
- Checkbox,
2826
- {
2827
- checked: checkedMap[item.category],
2828
- onChange: (e) => {
2829
- onCheckChange(
2830
- e,
2831
- item.category,
2832
- item.permissions.map((permission) => permission.value)
2833
- );
2834
- },
2835
- children: "\u5168\u9009"
2836
- }
2837
- ),
2838
- children: /* @__PURE__ */ jsx(Checkbox.Group, { style: { width: "100%" }, value: internalValue, children: /* @__PURE__ */ jsx(Row, { gutter: [10, 10], style: { width: "100%" }, children: item.permissions.map((permission) => /* @__PURE__ */ jsx(Col, { span: 6, children: /* @__PURE__ */ jsx(
2839
- Checkbox,
2840
- {
2841
- disabled: readonly,
2842
- value: permission.value,
2843
- onChange: (e) => {
2844
- onCheckChange(e, item.category, [permission.value]);
2845
- },
2846
- children: permission.label
2847
- }
2848
- ) }, permission.value)) }) })
2849
- })),
2850
- onChange: onCollapseChange
2851
- }
2852
- );
2853
- };
2854
- PermissionCollapse_default = PermissionCollapse;
2855
- }
2856
- });
2857
- var Text2, PermissionListV1, PermissionListV1_default;
2858
- var init_PermissionListV1 = __esm({
2859
- "src/features/permission/components/PermissionListV1/index.tsx"() {
2860
- init_esm_shims();
2861
- init_hooks3();
2862
- init_PermissionCollapse();
2863
- ({ Text: Text2 } = Typography);
2864
- PermissionListV1 = (props) => {
2865
- const { expand = true, value, readonly, onChange } = props;
2866
- const { data: permissions, isLoading, error } = useAllPermissions();
2867
- if (error) {
2868
- return /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx(Text2, { type: "danger", children: "\u6743\u9650\u83B7\u53D6\u5931\u8D25" }) });
2869
- }
2870
- return /* @__PURE__ */ jsx(Skeleton, { active: true, loading: isLoading, children: /* @__PURE__ */ jsx(
2871
- PermissionCollapse_default,
2872
- {
2873
- value,
2874
- permissions,
2875
- readonly,
2876
- expand,
2877
- onChange: (newValue) => {
2878
- onChange == null ? void 0 : onChange(newValue);
2879
- }
2880
- }
2881
- ) });
2882
- };
2883
- PermissionListV1_default = PermissionListV1;
2884
- }
2885
- });
2886
- var Text3, Option, PermissionListV2, PermissionListV2_default;
2887
- var init_PermissionListV2 = __esm({
2888
- "src/features/permission/components/PermissionListV2/index.tsx"() {
2889
- init_esm_shims();
2890
- init_hooks3();
2891
- init_PermissionCollapse();
2892
- ({ Text: Text3 } = Typography);
2893
- ({ Option } = Select);
2894
- PermissionListV2 = (props) => {
2895
- var _a;
2896
- const { expand = true, value, readonly, onChange } = props;
2897
- const { data: permissions, isLoading, error } = useAllPermissionsV2();
2898
- const [gameList, setGameList] = useState([]);
2899
- useEffect(() => {
2900
- const list = [];
2901
- Object.keys(value != null ? value : {}).forEach((key) => {
2902
- var _a2;
2903
- if (key !== "global") {
2904
- list.push({ gameId: key, permissions: (_a2 = value == null ? void 0 : value[key]) != null ? _a2 : [] });
2905
- }
2906
- });
2907
- setGameList(list);
2908
- }, [value]);
2909
- if (error) {
2910
- return /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx(Text3, { type: "danger", children: "\u6743\u9650\u83B7\u53D6\u5931\u8D25" }) });
2911
- }
2912
- const addGame = () => {
2913
- setGameList((prev) => [...prev, { gameId: "", permissions: [] }]);
2914
- };
2915
- const removeGame = (index) => {
2916
- setGameList((prev) => prev.filter((_, i) => i !== index));
2917
- };
2918
- return /* @__PURE__ */ jsxs("div", { className: "flex flex-col w-full", children: [
2919
- /* @__PURE__ */ jsx("div", { className: "mb-12", children: /* @__PURE__ */ jsx(Divider, { dashed: true, children: "\u5E73\u53F0\u57FA\u7840\u6743\u9650" }) }),
2920
- /* @__PURE__ */ jsx(Skeleton, { active: true, loading: isLoading, children: /* @__PURE__ */ jsx(
2921
- PermissionCollapse_default,
2922
- {
2923
- value: value == null ? void 0 : value.global,
2924
- readonly,
2925
- permissions: (_a = permissions == null ? void 0 : permissions.permission) == null ? void 0 : _a.slice(0, 2),
2926
- expand,
2927
- onChange: (newValue) => {
2928
- onChange == null ? void 0 : onChange(__spreadProps(__spreadValues({}, value), {
2929
- global: newValue
2930
- }));
2931
- }
2932
- }
2933
- ) }),
2934
- /* @__PURE__ */ jsx("div", { className: "my-12", children: /* @__PURE__ */ jsx(Divider, { dashed: true, children: "\u6E38\u620F\u6743\u9650" }) }),
2935
- gameList.map((item, index) => {
2936
- var _a2, _b, _c, _d;
2937
- return /* @__PURE__ */ jsx(
2938
- Card,
2939
- {
2940
- title: /* @__PURE__ */ jsxs(Space, { children: [
2941
- /* @__PURE__ */ jsx(Text3, { children: "\u6E38\u620F" }),
2942
- readonly ? /* @__PURE__ */ jsx(Text3, { children: (_b = (_a2 = permissions == null ? void 0 : permissions.game) == null ? void 0 : _a2.find((game) => game.id === item.gameId)) == null ? void 0 : _b.name }) : /* @__PURE__ */ jsx(
2943
- Select,
2944
- {
2945
- disabled: readonly,
2946
- value: gameList[index].gameId || void 0,
2947
- style: { width: "160px" },
2948
- placeholder: "\u8BF7\u9009\u62E9\u6E38\u620F",
2949
- onChange: (selectedValue) => {
2950
- setGameList((pev) => {
2951
- const temp = pev.slice();
2952
- temp[index].gameId = selectedValue;
2953
- return temp;
2954
- });
2955
- },
2956
- children: (_c = permissions == null ? void 0 : permissions.game) == null ? void 0 : _c.map((game) => /* @__PURE__ */ jsx(Option, { value: game.id, disabled: gameList.some(({ gameId }) => gameId === game.id), children: game.name }, game.id))
2957
- }
2958
- )
2959
- ] }),
2960
- className: "mb-6",
2961
- extra: !readonly && /* @__PURE__ */ jsx(
2962
- Button,
2963
- {
2964
- type: "link",
2965
- onClick: () => {
2966
- removeGame(index);
2967
- },
2968
- children: "\u79FB\u9664"
2969
- }
2970
- ),
2971
- children: gameList[index].gameId ? /* @__PURE__ */ jsx(Skeleton, { active: true, loading: isLoading, children: /* @__PURE__ */ jsx(
2972
- PermissionCollapse_default,
2973
- {
2974
- value: value == null ? void 0 : value[gameList[index].gameId],
2975
- readonly,
2976
- expand,
2977
- permissions: (_d = permissions == null ? void 0 : permissions.permission) == null ? void 0 : _d.slice(2),
2978
- onChange: (newValue) => {
2979
- onChange == null ? void 0 : onChange(__spreadProps(__spreadValues({}, value), {
2980
- [gameList[index].gameId]: newValue
2981
- }));
2982
- }
2983
- }
2984
- ) }) : /* @__PURE__ */ jsx(Empty, { description: "\u8BF7\u5148\u9009\u62E9\u6E38\u620F" })
2985
- },
2986
- index
2987
- );
2988
- }),
2989
- !readonly && /* @__PURE__ */ jsx(Button, { block: true, type: "dashed", onClick: addGame, children: "\u6DFB\u52A0\u6E38\u620F\u6743\u9650" })
2990
- ] });
2991
- };
2992
- PermissionListV2_default = PermissionListV2;
2993
- }
2994
- });
2995
- var PermissionList, PermissionList_default;
2996
- var init_PermissionList = __esm({
2997
- "src/features/permission/components/PermissionList/index.tsx"() {
2998
- init_esm_shims();
2999
- init_components();
3000
- init_PermissionListV1();
3001
- init_PermissionListV2();
3002
- PermissionList = (props) => {
3003
- const { value } = props;
3004
- const isPermissionV2 = useReactToolkitsContext((state) => state.isPermissionV2);
3005
- if (isPermissionV2) {
3006
- return /* @__PURE__ */ jsx(PermissionListV2_default, __spreadProps(__spreadValues({}, props), { value }));
3007
- }
3008
- return /* @__PURE__ */ jsx(PermissionListV1_default, __spreadProps(__spreadValues({}, props), { value }));
3009
- };
3010
- PermissionList_default = PermissionList;
3011
- }
3012
- });
3013
-
3014
- // src/features/permission/types/index.ts
3015
- var init_types = __esm({
3016
- "src/features/permission/types/index.ts"() {
3017
- init_esm_shims();
3018
- }
3019
- });
3020
-
3021
- // src/features/permission/index.ts
3022
- var init_permission = __esm({
3023
- "src/features/permission/index.ts"() {
3024
- init_esm_shims();
3025
- init_PermissionList();
3026
- init_hooks3();
3027
- init_types();
3028
- }
3029
- });
3030
-
3031
- // src/pages/permission/UserList/index.tsx
3032
- var UserList_exports = {};
3033
- __export(UserList_exports, {
3034
- default: () => UserList_default,
3035
- swrKey: () => swrKey
3036
- });
3037
- function useCreatingUserModal() {
3038
- const { message } = App.useApp();
3039
- const create4 = useCreateUser();
3040
- const { data: roles, isLoading } = useAllRoles();
3041
- const refresh = useQueryListStore((state) => state.refresh);
3042
- return useFormModal({
3043
- title: "\u521B\u5EFA\u7528\u6237",
3044
- labelCol: { flex: "80px" },
3045
- content: /* @__PURE__ */ jsxs(Fragment, { children: [
3046
- /* @__PURE__ */ jsx(Form.Item, { noStyle: true, shouldUpdate: (prevValues, currentValue) => prevValues.type !== currentValue.type, children: ({ getFieldValue }) => /* @__PURE__ */ jsx(Form.Item, { label: "\u540D\u79F0", name: "name", rules: [{ required: true }], children: /* @__PURE__ */ jsx(Input, { disabled: getFieldValue("id") }) }) }),
3047
- /* @__PURE__ */ jsx(Form.Item, { label: "\u89D2\u8272", name: "roles", children: /* @__PURE__ */ jsx(Select, { allowClear: true, mode: "multiple", loading: isLoading, children: (roles != null ? roles : []).map((role) => /* @__PURE__ */ jsx(Option2, { value: role.name, children: role.name }, role.id)) }) })
3048
- ] }),
3049
- onConfirm(values) {
3050
- return __async(this, null, function* () {
3051
- yield create4.trigger(values, {
3052
- onSuccess() {
3053
- message.success("\u7528\u6237\u521B\u5EFA\u6210\u529F");
3054
- refresh(swrKey, { page: 1 });
3055
- }
3056
- });
3057
- });
3058
- }
3059
- });
3060
- }
3061
- function useUpdatingUserModal() {
3062
- const { message } = App.useApp();
3063
- const update = useUpdateUser();
3064
- const { data: roles, isLoading } = useAllRoles();
3065
- const refresh = useQueryListStore((state) => state.refresh);
3066
- return useFormModal({
3067
- title: "\u66F4\u65B0\u7528\u6237",
3068
- labelCol: { flex: "80px" },
3069
- content: /* @__PURE__ */ jsxs(Fragment, { children: [
3070
- /* @__PURE__ */ jsx(Form.Item, { hidden: true, name: "id", children: /* @__PURE__ */ jsx(Input, {}) }),
3071
- /* @__PURE__ */ jsx(Form.Item, { noStyle: true, shouldUpdate: (prevValues, currentValue) => prevValues.type !== currentValue.type, children: ({ getFieldValue }) => /* @__PURE__ */ jsx(Form.Item, { label: "\u540D\u79F0", name: "name", rules: [{ required: true }], children: /* @__PURE__ */ jsx(Input, { disabled: getFieldValue("id") }) }) }),
3072
- /* @__PURE__ */ jsx(Form.Item, { label: "\u89D2\u8272", name: "roles", children: /* @__PURE__ */ jsx(Select, { allowClear: true, mode: "multiple", loading: isLoading, children: (roles != null ? roles : []).map((role) => /* @__PURE__ */ jsx(Option2, { value: role.name, children: role.name }, role.id)) }) })
3073
- ] }),
3074
- onConfirm(values) {
3075
- return __async(this, null, function* () {
3076
- yield update.trigger(values, {
3077
- onSuccess() {
3078
- message.success("\u7528\u6237\u66F4\u65B0\u6210\u529F");
3079
- refresh(swrKey, { page: 1 });
3080
- }
3081
- });
3082
- });
3083
- }
3084
- });
3085
- }
3086
- var Option2, swrKey, UserList, UserList_default;
3087
- var init_UserList = __esm({
3088
- "src/pages/permission/UserList/index.tsx"() {
3089
- init_esm_shims();
3090
- init_components();
3091
- init_hooks();
3092
- init_permission();
3093
- init_stores();
3094
- ({ Option: Option2 } = Select);
3095
- swrKey = {
3096
- url: "/api/usystem/user/list"
3097
- };
3098
- UserList = () => {
3099
- const { modal, message } = App.useApp();
3100
- const remove = useRemoveUser();
3101
- const refresh = useQueryListStore((state) => state.refresh);
3102
- const { showModal: showCreatingModal, Modal: CreatingModal } = useCreatingUserModal();
3103
- const { showModal: showUpdatingModal, Modal: UpdatingModal } = useUpdatingUserModal();
3104
- const columns = useMemo(() => {
3105
- return [
3106
- {
3107
- title: "\u540D\u79F0",
3108
- dataIndex: "name",
3109
- key: "name"
3110
- },
3111
- {
3112
- title: "ID",
3113
- dataIndex: "id",
3114
- key: "id"
3115
- },
3116
- {
3117
- title: "\u89D2\u8272",
3118
- dataIndex: "roles",
3119
- key: "roles",
3120
- width: "40%",
3121
- render(value) {
3122
- return /* @__PURE__ */ jsx(Row, { gutter: [4, 4], children: (value || []).map((item) => /* @__PURE__ */ jsx(Col, { children: item === "root" ? /* @__PURE__ */ jsx(Tag, { color: "#f50", children: item }) : /* @__PURE__ */ jsx(Tag, { color: "#ff5a00", children: /* @__PURE__ */ jsx(Link, { to: `/permission/role/${item}`, children: item }) }) }, item)) });
3123
- }
3124
- },
3125
- {
3126
- title: "\u521B\u5EFA\u65F6\u95F4",
3127
- dataIndex: "Ctime",
3128
- key: "ctime"
3129
- },
3130
- {
3131
- title: "\u64CD\u4F5C",
3132
- width: 150,
3133
- align: "center",
3134
- render: (value) => /* @__PURE__ */ jsxs(Space, { children: [
3135
- /* @__PURE__ */ jsx(
3136
- PermissionButton_default,
3137
- {
3138
- size: "small",
3139
- type: "link",
3140
- code: "100003",
3141
- onClick: () => {
3142
- showUpdatingModal({
3143
- initialValues: {
3144
- id: value.id,
3145
- name: value.name,
3146
- roles: value.roles
3147
- }
3148
- });
3149
- },
3150
- children: "\u66F4\u65B0"
3151
- }
3152
- ),
3153
- /* @__PURE__ */ jsx(
3154
- PermissionButton_default,
3155
- {
3156
- danger: true,
3157
- size: "small",
3158
- code: "100004",
3159
- type: "link",
3160
- onClick: () => {
3161
- modal.confirm({
3162
- title: "\u5220\u9664\u7528\u6237",
3163
- content: /* @__PURE__ */ jsxs(Highlight_default, { texts: [value.name], children: [
3164
- "\u786E\u5B9A\u8981\u5220\u9664\u7528\u6237\xA0",
3165
- value.name,
3166
- "\xA0\u5417\uFF1F"
3167
- ] }),
3168
- onOk() {
3169
- return __async(this, null, function* () {
3170
- yield remove.trigger(
3171
- {
3172
- id: value.id,
3173
- name: value.name
3174
- },
3175
- {
3176
- onSuccess() {
3177
- return __async(this, null, function* () {
3178
- yield message.success("\u7528\u6237\u5220\u9664\u6210\u529F");
3179
- refresh(swrKey, { page: 1 });
3180
- });
3181
- }
3182
- }
3183
- );
3184
- });
3185
- }
3186
- });
3187
- },
3188
- children: "\u5220\u9664"
3189
- }
3190
- )
3191
- ] })
3192
- }
3193
- ];
3194
- }, [refresh, remove, message, modal, showUpdatingModal]);
3195
- return /* @__PURE__ */ jsxs(Fragment, { children: [
3196
- /* @__PURE__ */ jsx(
3197
- Card,
3198
- {
3199
- title: "\u7528\u6237",
3200
- extra: /* @__PURE__ */ jsx(
3201
- PermissionButton_default,
3202
- {
3203
- type: "primary",
3204
- icon: /* @__PURE__ */ jsx(UserAddOutlined, {}),
3205
- code: "100002",
3206
- onClick: () => {
3207
- showCreatingModal();
3208
- },
3209
- children: "\u521B\u5EFA\u7528\u6237"
3210
- }
3211
- ),
3212
- children: /* @__PURE__ */ jsx(QueryList_default, { code: "100001", swrKey, rowKey: "id", columns })
3213
- }
3214
- ),
3215
- CreatingModal,
3216
- UpdatingModal
3217
- ] });
3218
- };
3219
- UserList_default = UserList;
3220
- }
3221
- });
3222
-
3223
- // src/pages/permission/RoleList/index.tsx
3224
- var RoleList_exports = {};
3225
- __export(RoleList_exports, {
3226
- default: () => RoleList_default,
3227
- swrKey: () => swrKey2
3228
- });
3229
- var swrKey2, useCreateModal, useUpdateModal, RoleList, RoleList_default;
3230
- var init_RoleList = __esm({
3231
- "src/pages/permission/RoleList/index.tsx"() {
3232
- init_esm_shims();
3233
- init_components();
3234
- init_hooks();
3235
- init_permission();
3236
- init_hooks2();
3237
- init_stores();
3238
- swrKey2 = {
3239
- url: "/api/usystem/role/list"
3240
- };
3241
- useCreateModal = () => {
3242
- const { message } = App.useApp();
3243
- const refresh = useQueryListStore((state) => state.refresh);
3244
- const create4 = useCreateRole();
3245
- const onConfirm = useCallback(
3246
- (values) => __async(void 0, null, function* () {
3247
- yield create4.trigger(
3248
- {
3249
- name: `role_${values.name}`,
3250
- permissions: values.permissions
3251
- },
3252
- {
3253
- onSuccess() {
3254
- return __async(this, null, function* () {
3255
- yield message.success("\u89D2\u8272\u521B\u5EFA\u6210\u529F");
3256
- refresh(swrKey2, { page: 1 });
3257
- });
3258
- }
3259
- }
3260
- );
3261
- }),
3262
- [create4, refresh, message]
3263
- );
3264
- return useFormModal({
3265
- title: "\u521B\u5EFA\u89D2\u8272",
3266
- width: "50vw",
3267
- layout: "vertical",
3268
- content: /* @__PURE__ */ jsxs(Fragment, { children: [
3269
- /* @__PURE__ */ jsx(Form.Item, { label: "\u540D\u79F0", name: "name", rules: [{ required: true }], children: /* @__PURE__ */ jsx(Input, { addonBefore: "role_" }) }),
3270
- /* @__PURE__ */ jsx(Form.Item, { label: "\u6743\u9650", name: "permissions", children: /* @__PURE__ */ jsx(PermissionList_default, {}) })
3271
- ] }),
3272
- onConfirm
3273
- });
3274
- };
3275
- useUpdateModal = () => {
3276
- const { message } = App.useApp();
3277
- const refresh = useQueryListStore((state) => state.refresh);
3278
- const update = useUpdateRole();
3279
- const onConfirm = useCallback(
3280
- (values) => __async(void 0, null, function* () {
3281
- yield update.trigger(
3282
- {
3283
- id: values.id,
3284
- name: `role_${values.name}`,
3285
- permissions: values.permissions
3286
- },
3287
- {
3288
- onSuccess() {
3289
- return __async(this, null, function* () {
3290
- yield message.success("\u89D2\u8272\u66F4\u65B0\u6210\u529F");
3291
- refresh(swrKey2, { page: 1 });
3292
- });
3293
- }
3294
- }
3295
- );
3296
- }),
3297
- [update, refresh, message]
3298
- );
3299
- return useFormModal({
3300
- title: "\u66F4\u65B0\u89D2\u8272",
3301
- width: "50vw",
3302
- layout: "vertical",
3303
- content: /* @__PURE__ */ jsxs(Fragment, { children: [
3304
- /* @__PURE__ */ jsx(Form.Item, { hidden: true, label: "ID", name: "id", children: /* @__PURE__ */ jsx(Input, {}) }),
3305
- /* @__PURE__ */ jsx(Form.Item, { label: "\u540D\u79F0", name: "name", rules: [{ required: true }], children: /* @__PURE__ */ jsx(Input, { disabled: true, addonBefore: "role_" }) }),
3306
- /* @__PURE__ */ jsx(Form.Item, { label: "\u6743\u9650", name: "permissions", children: /* @__PURE__ */ jsx(PermissionList_default, {}) })
3307
- ] }),
3308
- onConfirm
3309
- });
3310
- };
3311
- RoleList = () => {
3312
- const { accessible: viewable } = usePermission("200005");
3313
- const { modal, message } = App.useApp();
3314
- const httpClient = useHttpClient();
3315
- const isPermissionV2 = useReactToolkitsContext((state) => state.isPermissionV2);
3316
- const remove = useRemoveRole();
3317
- const refresh = useQueryListStore((state) => state.refresh);
3318
- const { showModal: showCreateModal, Modal: CreateModal } = useCreateModal();
3319
- const { showModal: showUpdateModal, Modal: UpdateModal } = useUpdateModal();
3320
- const columns = useMemo(
3321
- () => [
3322
- {
3323
- title: "\u540D\u79F0",
3324
- key: "name",
3325
- render(value) {
3326
- if (viewable) {
3327
- return /* @__PURE__ */ jsx(Link, { to: `${value.name}`, children: value.name });
3328
- } else {
3329
- return /* @__PURE__ */ jsx(Fragment, { children: value.name });
3330
- }
3331
- }
3332
- },
3333
- {
3334
- title: "ID",
3335
- dataIndex: "id",
3336
- key: "id"
3337
- },
3338
- {
3339
- title: "\u521B\u5EFA\u65F6\u95F4",
3340
- dataIndex: "ctime",
3341
- key: "ctime"
3342
- },
3343
- {
3344
- title: "\u64CD\u4F5C",
3345
- width: 150,
3346
- align: "center",
3347
- render: (value) => {
3348
- return /* @__PURE__ */ jsxs(Space, { size: "small", children: [
3349
- /* @__PURE__ */ jsx(
3350
- PermissionButton_default,
3351
- {
3352
- code: "200003",
3353
- size: "small",
3354
- type: "link",
3355
- onClick: () => __async(void 0, null, function* () {
3356
- const role = yield httpClient.get(
3357
- isPermissionV2 ? "/api/usystem/role/infoV2" : "/api/usystem/role/info",
3358
- {
3359
- params: { name: value.name }
3360
- }
3361
- );
3362
- showUpdateModal({
3363
- initialValues: {
3364
- id: role == null ? void 0 : role.id,
3365
- permissions: role == null ? void 0 : role.permissions,
3366
- name: role == null ? void 0 : role.name.replace(/^role_/, "")
3367
- }
3368
- });
3369
- }),
3370
- children: "\u66F4\u65B0"
3371
- }
3372
- ),
3373
- /* @__PURE__ */ jsx(
3374
- PermissionButton_default,
3375
- {
3376
- danger: true,
3377
- code: "200004",
3378
- size: "small",
3379
- type: "link",
3380
- onClick: () => {
3381
- modal.confirm({
3382
- title: "\u5220\u9664\u89D2\u8272",
3383
- content: /* @__PURE__ */ jsxs(Highlight_default, { texts: [value.name], children: [
3384
- "\u786E\u5B9A\u8981\u5220\u9664\u89D2\u8272\xA0",
3385
- value.name,
3386
- "\xA0\u5417\uFF1F"
3387
- ] }),
3388
- onOk() {
3389
- return __async(this, null, function* () {
3390
- yield remove.trigger(
3391
- {
3392
- id: value.id,
3393
- name: value.name
3394
- },
3395
- {
3396
- onSuccess() {
3397
- return __async(this, null, function* () {
3398
- yield message.success("\u89D2\u8272\u5220\u9664\u6210\u529F");
3399
- refresh(swrKey2, { page: 1 });
3400
- });
3401
- }
3402
- }
3403
- );
3404
- });
3405
- }
3406
- });
3407
- },
3408
- children: "\u5220\u9664"
3409
- }
3410
- )
3411
- ] });
3412
- }
3413
- }
3414
- ],
3415
- [refresh, viewable, httpClient, modal, message, remove, showUpdateModal]
3416
- );
3417
- return /* @__PURE__ */ jsxs(Fragment, { children: [
3418
- /* @__PURE__ */ jsx(
3419
- Card,
3420
- {
3421
- title: "\u89D2\u8272",
3422
- extra: /* @__PURE__ */ jsx(
3423
- PermissionButton_default,
3424
- {
3425
- type: "primary",
3426
- code: "200002",
3427
- icon: /* @__PURE__ */ jsx(UsergroupAddOutlined, {}),
3428
- onClick: () => {
3429
- showCreateModal();
3430
- },
3431
- children: "\u521B\u5EFA\u89D2\u8272"
3432
- }
3433
- ),
3434
- children: /* @__PURE__ */ jsx(
3435
- QueryList_default,
3436
- {
3437
- rowKey: "name",
3438
- columns,
3439
- code: "200001",
3440
- swrKey: swrKey2,
3441
- transformResponse: (response) => {
3442
- const { List, Total } = response;
3443
- return { List, Total };
3444
- }
3445
- }
3446
- )
3447
- }
3448
- ),
3449
- CreateModal,
3450
- UpdateModal
3451
- ] });
3452
- };
3453
- RoleList_default = RoleList;
3454
- }
3455
- });
3456
-
3457
- // src/pages/permission/RoleDetail/index.tsx
3458
- var RoleDetail_exports = {};
3459
- __export(RoleDetail_exports, {
3460
- default: () => RoleDetail_default
3461
- });
3462
- var RoleDetail, RoleDetail_default;
3463
- var init_RoleDetail = __esm({
3464
- "src/pages/permission/RoleDetail/index.tsx"() {
3465
- init_esm_shims();
3466
- init_permission();
3467
- RoleDetail = () => {
3468
- const params = useParams();
3469
- const { data, isLoading } = useRole(params.name);
3470
- return /* @__PURE__ */ jsxs(Fragment, { children: [
3471
- /* @__PURE__ */ jsx(
3472
- Breadcrumb,
3473
- {
3474
- style: { marginBottom: 24 },
3475
- items: [
3476
- {
3477
- key: "1",
3478
- title: /* @__PURE__ */ jsx(Link, { to: "/permission/role", children: "\u89D2\u8272" })
3479
- },
3480
- {
3481
- key: "2",
3482
- title: params.name
3483
- }
3484
- ]
3485
- }
3486
- ),
3487
- /* @__PURE__ */ jsx(Card, { title: "\u6743\u9650\u8BE6\u60C5", children: /* @__PURE__ */ jsx(Skeleton, { loading: isLoading, children: /* @__PURE__ */ jsxs(Descriptions, { column: 3, layout: "vertical", children: [
3488
- /* @__PURE__ */ jsx(Descriptions.Item, { label: "\u540D\u79F0", children: data == null ? void 0 : data.name }),
3489
- /* @__PURE__ */ jsx(Descriptions.Item, { label: "ID", children: data == null ? void 0 : data.id }),
3490
- /* @__PURE__ */ jsx(Descriptions.Item, { label: "\u521B\u5EFA\u65F6\u95F4", children: data == null ? void 0 : data.ctime }),
3491
- /* @__PURE__ */ jsx(Descriptions.Item, { label: "\u6743\u9650", span: 3, children: /* @__PURE__ */ jsx(PermissionList_default, { readonly: true, value: data == null ? void 0 : data.permissions }) })
3492
- ] }) }) })
3493
- ] });
3494
- };
3495
- RoleDetail_default = RoleDetail;
3496
- }
3497
- });
3498
-
3499
- // src/index.ts
3500
- init_esm_shims();
3501
- init_components();
3502
- init_hooks2();
3503
- init_stores();
3504
-
3505
- // src/pages/index.ts
3506
- init_esm_shims();
3507
-
3508
- // src/pages/base/index.tsx
3509
- init_esm_shims();
3510
- var Login2 = lazy(() => Promise.resolve().then(() => (init_Login(), Login_exports)));
3511
- var NotFound2 = lazy(() => Promise.resolve().then(() => (init_NotFound(), NotFound_exports)));
3512
- var routes = {
3513
- children: [
3514
- {
3515
- path: "login",
3516
- element: /* @__PURE__ */ jsx(Login2, {})
3517
- },
3518
- {
3519
- path: "*",
3520
- element: /* @__PURE__ */ jsx(NotFound2, {})
3521
- }
3522
- ]
3523
- };
3524
- var base_default = routes;
3525
-
3526
- // src/pages/permission/index.tsx
3527
- init_esm_shims();
3528
- init_components();
3529
- init_hooks2();
3530
- var UserList2 = lazy(() => Promise.resolve().then(() => (init_UserList(), UserList_exports)));
3531
- var RoleList2 = lazy(() => Promise.resolve().then(() => (init_RoleList(), RoleList_exports)));
3532
- var RoleDetail2 = lazy(() => Promise.resolve().then(() => (init_RoleDetail(), RoleDetail_exports)));
3533
- var PermissionRoot = () => {
3534
- const httpClient = useHttpClient();
3535
- const configs = useReactToolkitsContext((state) => state);
3536
- return (
3537
- // NOTE: 目前嵌套的 ReactToolkitsProvider 只能手动注入父级 ReactToolkitsProvider 的配置
3538
- /* @__PURE__ */ jsx(ReactToolkitsProvider_default, __spreadProps(__spreadValues({}, configs), { isGlobalNS: true, children: /* @__PURE__ */ jsx(
3539
- SWRConfig,
3540
- {
3541
- value: {
3542
- fetcher: httpClient.request,
3543
- shouldRetryOnError: false
3544
- },
3545
- children: /* @__PURE__ */ jsx(Layout_default, { children: /* @__PURE__ */ jsx(Outlet, {}) })
3546
- }
3547
- ) }))
3548
- );
3549
- };
3550
- var routes2 = {
3551
- path: "permission",
3552
- element: /* @__PURE__ */ jsx(PermissionRoot, {}),
3553
- children: [
3554
- {
3555
- index: true,
3556
- element: /* @__PURE__ */ jsx(Navigate, { relative: "path", to: "user" })
3557
- },
3558
- {
3559
- path: "user",
3560
- element: /* @__PURE__ */ jsx(UserList2, {})
3561
- },
3562
- {
3563
- path: "role",
3564
- element: /* @__PURE__ */ jsx(RoleList2, {})
3565
- },
3566
- {
3567
- path: "role/:name",
3568
- element: /* @__PURE__ */ jsx(RoleDetail2, {})
3569
- }
3570
- ]
3571
- };
3572
- var permission_default = routes2;
3573
-
3574
- // src/index.ts
3575
- init_constants();
3576
-
3577
- export { DynamicTags_default as DynamicTags, FilterForm_default as FilterForm, FormModal_default as FormModal, GameSelect_default as GameSelect, Highlight_default as Highlight, HttpClientError, Layout_default as Layout, NavMenu_default as NavMenu, PermissionButton_default as PermissionButton, QueryList_default as QueryList, ReactToolkitsProvider_default as ReactToolkitsProvider, SSO_URL, UserWidget_default as UserWidget, base_default as baseRoutes, permission_default as permissionRoutes, useFormModal, useHttpClient, usePermission, usePermissions, useQueryListStore, useReactToolkitsContext, useTokenStore };
11
+ import Mo from 'jwt-decode';
12
+ import Co from 'axios';
13
+ import To from 'swr/immutable';
14
+ import { Navigate, useNavigate, Outlet, useSearchParams, Link, useParams, useLocation } from 'react-router-dom';
15
+ import ae from 'swr/mutation';
16
+ import Ie, { SWRConfig, useSWRConfig } from 'swr';
17
+ import Qt from 'antd/es/typography/Link';
18
+ import P2 from './512_orange_nobackground-L6MFCL6M.png';
19
+
20
+ var bt=Object.defineProperty,G1=Object.defineProperties;var z1=Object.getOwnPropertyDescriptors;var Re=Object.getOwnPropertySymbols;var wt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable;var yt=(s,t,o)=>t in s?bt(s,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[t]=o,C=(s,t)=>{for(var o in t||(t={}))wt.call(t,o)&&yt(s,o,t[o]);if(Re)for(var o of Re(t))Pt.call(t,o)&&yt(s,o,t[o]);return s},v=(s,t)=>G1(s,z1(t));var A=(s,t)=>{var o={};for(var r in s)wt.call(s,r)&&t.indexOf(r)<0&&(o[r]=s[r]);if(s!=null&&Re)for(var r of Re(s))t.indexOf(r)<0&&Pt.call(s,r)&&(o[r]=s[r]);return o};var P=(s,t)=>()=>(s&&(t=s(s=0)),t);var me=(s,t)=>{for(var o in t)bt(s,o,{get:t[o],enumerable:!0});};var M=(s,t,o)=>new Promise((r,n)=>{var a=m=>{try{p(o.next(m));}catch(c){n(c);}},i=m=>{try{p(o.throw(m));}catch(c){n(c);}},p=m=>m.done?r(m.value):Promise.resolve(m.value).then(a,i);p((o=o.apply(s,t)).next());});var l=P(()=>{});var H1,_1,Tt=P(()=>{l();H1=s=>{let{initialTags:t,addable:o,removable:r,addCallback:n,removeCallback:a}=s,{token:i}=theme.useToken(),[p,m]=useState([]),[c,y]=useState(!1),[d,g]=useState(""),[u,x]=useState(-1),[h,R]=useState(""),k=useRef(null),D=useRef(null);useEffect(()=>{m(t!=null?t:[]);},[t]),useEffect(()=>{var F;c&&((F=k.current)==null||F.focus());},[c]),useEffect(()=>{var F;(F=D.current)==null||F.focus();},[d]);let T=F=>M(void 0,null,function*(){if(yield a==null?void 0:a(F)){let Y=p.filter(Me=>Me!==F);m(Y);}}),U=()=>{y(!0);},W=F=>{g(F.target.value);},j=()=>M(void 0,null,function*(){d&&p.indexOf(d)===-1&&(yield n==null?void 0:n(d))&&m([...p,d]),y(!1),g("");}),ke=F=>{R(F.target.value);},B=()=>{let F=[...p];F[u]=h,m(F),x(-1),g("");},E={width:78,verticalAlign:"top"},O1={background:i.colorBgContainer,borderStyle:"dashed"};return jsxs(Space,{wrap:!0,size:[0,8],children:[jsx(Space,{wrap:!0,size:[0,8],children:p.map((F,oe)=>u===oe?jsx(Input,{ref:D,size:"small",style:E,value:h,onChange:ke,onBlur:B,onPressEnter:B},F):jsx(Tag,{closable:r,style:{userSelect:"none"},onClose:Y=>M(void 0,null,function*(){Y.preventDefault(),yield T(F);}),children:jsx("span",{onDoubleClick:Y=>{oe!==0&&(x(oe),R(F),Y.preventDefault());},children:F})},F))}),o&&(c?jsx(Input,{ref:k,type:"text",size:"small",style:E,value:d,onChange:W,onBlur:j,onPressEnter:j}):jsxs(Tag,{style:O1,onClick:U,children:[jsx(PlusOutlined,{}),"\xA0\u6DFB\u52A0"]}))]})},_1=H1;});var j1,De,Be=P(()=>{l();j1=s=>{let m=s,{children:t,confirmText:o,form:r,onReset:n}=m,a=A(m,["children","confirmText","form","onReset"]),{token:i}=theme.useToken(),p={maxWidth:"none",background:i.colorFillAlter,borderWidth:i.lineWidth,borderStyle:i.lineType,borderColor:i.colorBorder,borderRadius:i.borderRadiusLG,padding:24,marginBottom:24};return jsx(Form,v(C({},a),{form:r,autoComplete:"off",children:t&&jsx("div",{style:p,children:jsxs(Row,{gutter:18,children:[t,jsx(Col,{flex:"auto"}),jsx(Col,{flex:"auto",span:24,style:{textAlign:"right"},children:jsxs(Space,{children:[jsx(Button,{type:"primary",htmlType:"submit",children:o||"\u67E5\u8BE2"}),jsx(Button,{htmlType:"reset",onClick:n,children:"\u91CD\u7F6E"})]})})]})})}))},De=j1;});var io,no,Ne,Ae=P(()=>{l();io=(s,t)=>{let{width:o,children:r,title:n,open:a,footer:i,layout:p,labelCol:m,bodyStyle:c,initialValues:y,maskClosable:d,closeFn:g,afterClose:u,onConfirm:x}=s,h=useId(),[R]=Form.useForm(),k=useRef(null),D=typeof r=="function",[T,U]=useState(!1);return useImperativeHandle(t,()=>({setFieldsValue(W){var j;(j=k.current)==null||j.setFieldsValue(W);}})),jsx(Modal,{destroyOnClose:!0,bodyStyle:c,style:{textAlign:"start"},width:o,open:a,title:n,forceRender:!0,getContainer:!1,maskClosable:d,footer:typeof i=="object"?i:[jsx(Button,{onClick:()=>{g==null||g();},children:"\u53D6\u6D88"},"cancel"),jsx(Button,{form:h,type:"primary",htmlType:"submit",loading:T,children:"\u786E\u5B9A"},"submit")],afterClose:()=>{u==null||u(),R.resetFields();},onCancel:g,children:jsx(Form,{form:R,ref:k,id:h,autoComplete:"off",labelAlign:"right",labelWrap:!0,layout:p,initialValues:y,labelCol:m||{flex:!p||p==="horizontal"?"120px":"0"},onFinish:W=>M(void 0,null,function*(){try{U(!0),yield x==null?void 0:x(W),g==null||g(),R.resetFields();}finally{U(!1);}}),children:D?r({form:R,open:a,closeFn:g}):r})})},no=forwardRef(io),Ne=no;});function ee(s){let g=s,{content:t,onConfirm:o}=g,r=A(g,["content","onConfirm"]),[n,a]=useState(!1),[i,p]=useState(),m=useRef(null),c=u=>{var x,h;p((x=u==null?void 0:u.title)!=null?x:r.title),u!=null&&u.initialValues&&((h=m.current)==null||h.setFieldsValue(u==null?void 0:u.initialValues)),a(!0);},y=useCallback(()=>{a(!1);},[]),d=useMemo(()=>jsx(Ne,v(C({ref:m},r),{open:n,closeFn:y,title:i,onConfirm:o,children:t})),[i,t,r,n,y,o]);return {Modal:createPortal(d,document.body),showModal:c,closeModal:y}}var Te=P(()=>{l();Ae();});function bo(s){let t=document.createElement("div"),o=createRoot(t);return new Promise(r=>{setTimeout(()=>{flushSync(()=>{o.render(s);}),r(t.innerHTML);});})}var yo,wo,fe,Zt=P(()=>{l();yo=s=>{let t=/(<[^>]*>)/;return s.split(t).filter(o=>o!=="")};wo=s=>{let{texts:t,children:o}=s,[r,n]=useState("");return useEffect(()=>{bo(o).then(a=>{let i=yo(a);for(let p of t)for(let m=0;m<i.length;m++)i[m]=i[m].replace(String(p),`<span style='color: #DC143C;'>${p}</span>`);n(i.join(""));});},[o,t]),jsx("p",{dangerouslySetInnerHTML:{__html:r}})},fe=wo;});var z,Dt=P(()=>{l();z=create()(persist((s,t)=>({token:"",getUser:()=>{try{return Mo(t().token)}catch(o){return null}},setToken:o=>s({token:o}),clearToken:()=>{s({token:""}),z.persist.clearStorage();}}),{name:"token",partialize:s=>({token:s.token})}));});var K,Bt=P(()=>{l();K=create((s,t)=>({data:new Map,getPaginationData:o=>{var n,a,i;let r=(n=t().data.get(o))==null?void 0:n.pagination;return {page:(a=r==null?void 0:r.page)!=null?a:1,size:(i=r==null?void 0:r.size)!=null?i:10}},setPaginationData:(o,r)=>{var n,a;s({data:new Map(t().data).set(o,v(C({},t().data.get(o)),{pagination:{page:(n=r==null?void 0:r.page)!=null?n:t().getPaginationData(o).page,size:(a=r==null?void 0:r.size)!=null?a:t().getPaginationData(o).size}}))});},refresh:(o,r)=>{var a,i,p;let n=(a=t().data.get(o))==null?void 0:a.refresh;n&&n({page:(i=r==null?void 0:r.page)!=null?i:t().getPaginationData(o).page,size:(p=r==null?void 0:r.size)!=null?p:t().getPaginationData(o).size});},setRefresh:(o,r)=>{let n=t().data;s({data:new Map(n).set(o,v(C({},n.get(o)),{refresh:r}))});}}));});var H=P(()=>{l();Dt();Bt();});function Z(){let s=z(i=>i.token),{game:t,isGlobalNS:o,isPermissionV2:r}=S(i=>i),n={withCredentials:!0},a=Co.create(n);return a.interceptors.request.use(i=>{let p=i.headers;return p.set("Authorization",`Bearer ${s}`),r&&(p.has("App-ID")||p.set("App-ID",o?"global":t==null?void 0:t.id)),i}),a.interceptors.response.use(i=>{if(i.data.code===0||i.data.status===0)return i.data.data;throw new Q(i.data.msg,0)},i=>{throw i.response?i.response.status===401?new Q("\u672A\u767B\u5F55\u6216\u767B\u5F55\u5DF2\u8FC7\u671F",i.response.status):i.response.status===403?new Q("\u65E0\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6388\u6743",i.response.status):[404,405].includes(i.response.status)?new Q("Not Found or Method not Allowed",i.response.status,!0):i.response.status===412?new Q("\u672A\u6CE8\u518C\u7528\u6237",i.response.status):i.response.status===504?new Q("\u8BF7\u6C42\u8D85\u65F6",i.response.status):new Q(i.response.message,i.response.status):new Q("\u65E0\u54CD\u5E94")}),a}var Q,Ue=P(()=>{l();H();O();Q=class extends Error{constructor(o,r,n=!1){super(o);this.code=r,this.skip=n;}};});function Ee(s,t=!1){let o=Z(),r=useNavigate(),a=S(m=>m.isPermissionV2)?"/api/usystem/user/checkV2":"/api/usystem/user/check",{data:i,isLoading:p}=To(s.length>0?{method:"POST",url:a,data:{permissions:s},headers:t?{"App-ID":"global"}:{}}:null,m=>o.request(m).then(c=>c.has_all?s.reduce((y,d)=>(y[d]=!0,y),{}):s.reduce((y,d)=>(y[d]=c[d],y),{})),{suspense:!0,shouldRetryOnError:!1,onError(){r("/login");}});return {data:i,isLoading:p}}function J(s){var r;let{data:t,isLoading:o}=Ee(s?[s]:[]);return s?{accessible:(r=t==null?void 0:t[s])!=null?r:!1,isValidating:o}:{accessible:!0,isValidating:!1}}var Nt=P(()=>{l();Ue();O();});var _=P(()=>{l();Ue();Nt();});var So,q,At=P(()=>{l();_();So=s=>{let p=s,{children:t,code:o,showLoading:r}=p,n=A(p,["children","code","showLoading"]),{accessible:a,isValidating:i}=J(o);return i?jsx(Button,v(C({loading:r,disabled:!r},n),{children:t})):a?jsx(Button,v(C({},n),{children:t})):jsx(Tooltip,{defaultOpen:!1,title:"\u65E0\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6388\u6743",children:jsx(Button,v(C({disabled:!0},n),{children:t}))})},q=So;});var Do,de,Kt=P(()=>{l();_();H();Be();Do=s=>{let ke=s,{code:t,confirmText:o,labelCol:r,swrKey:n,initialValues:a,renderForm:i,transformArg:p,transformResponse:m}=ke,c=A(ke,["code","confirmText","labelCol","swrKey","initialValues","renderForm","transformArg","transformResponse"]),{accessible:y}=J(t!=null?t:""),[d]=Form.useForm(),g=K(B=>B.setRefresh),u=K(B=>B.getPaginationData),x=K(B=>B.setPaginationData),h=u(n),R=Z(),{data:k,isMutating:D,trigger:T}=ae(n,(O1,F)=>M(void 0,[O1,F],function*(B,{arg:E}){var ft,dt,ut;let oe={page:(ft=E==null?void 0:E.page)!=null?ft:h.page,size:(dt=E==null?void 0:E.size)!=null?dt:h.size};x(n,E);let Y=d.getFieldsValue(),Me=C(C({},Y),oe);return R.request(v(C({},B),{[B.method==="POST"?"data":"params"]:(ut=p==null?void 0:p(Me))!=null?ut:Me})).then(gt=>{var ht;return (ht=m==null?void 0:m(gt))!=null?ht:gt})})),U=()=>M(void 0,null,function*(){yield T({page:1});}),W=useCallback(()=>M(void 0,null,function*(){try{d.resetFields(),yield d.validateFields(),yield T({page:1});}catch(B){console.log("\u8868\u5355\u6821\u9A8C\u5931\u8D25");}}),[d,T]),j=useCallback((B,E)=>M(void 0,null,function*(){yield T({page:B,size:E});}),[T]);return useEffect(()=>{g(n,T);},[n,T,g]),useEffect(()=>{M(void 0,null,function*(){try{yield d.validateFields(),yield T();}catch(B){d.resetFields();}});},[d,T]),y?jsxs(Fragment,{children:[jsx(De,{initialValues:a,form:d,labelCol:r,confirmText:o,onFinish:U,onReset:W,children:i==null?void 0:i(d)}),jsx(Table,v(C({},c),{dataSource:k==null?void 0:k.List,loading:D,pagination:{showSizeChanger:!0,showQuickJumper:!0,current:h.page,pageSize:h.size,total:k==null?void 0:k.Total,onChange:j}}))]}):jsx(Result,{status:403,subTitle:"\u65E0\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6388\u6743"})},de=Do;});function S(s,t){let o=useContext(Ge);if(!o)throw new Error("Missing ReactToolkitsContext.Provider in the tree");return useStore(o,s,t)}var zo,Ot,Ge,ze=P(()=>{l();zo={getItem:s=>sessionStorage.getItem(s)||localStorage.getItem(s),setItem:(s,t)=>{localStorage.setItem(s,t),sessionStorage.setItem(s,t);},removeItem:s=>M(void 0,null,function*(){localStorage.removeItem(s),sessionStorage.removeItem(s);})},Ot=()=>create()(persist(s=>({title:"",isPermissionV2:!1,isGlobalNS:!1,game:null,setGame:t=>s({game:t}),openKeys:[],setOpenKeys:t=>s({openKeys:t}),selectedKeys:[],setSelectedKeys:t=>s({selectedKeys:t}),menuItems:[]}),{name:"ReactToolkits",storage:createJSONStorage(()=>zo),partialize:s=>({title:s.title,game:s.game,openKeys:s.openKeys,selectedKeys:s.selectedKeys})})),Ge=createContext(null);});var Ho,We,Gt=P(()=>{l();ze();Ho=s=>{let n=s,{children:t}=n,o=A(n,["children"]),r=useRef();return r.current||(r.current=Ot()),useEffect(()=>{var a;(a=r.current)==null||a.setState(o);},[o]),jsx(Ge.Provider,{value:r.current,children:t})},We=Ho;});function o2(){let{isPermissionV2:s,isGlobalNS:t}=S(a=>a),o=z(a=>a.getUser()),{data:r,isLoading:n}=To(s&&!t&&o?{method:"GET",url:"/api/usystem/game/all",params:{user:o.authorityId},headers:{"App-ID":"global"}}:null);return {games:r,isLoading:n}}var t2,s2,Qe,Wt=P(()=>{l();H();O();({Text:t2}=Typography);s2=()=>{let {game:s,setGame:t,isGlobalNS:o,isPermissionV2:r}=S(c=>c),{games:n,isLoading:a}=o2();useSWRConfig();let p=useMemo(()=>n==null?void 0:n.map(c=>({label:c.name,value:c.id})),[n]),m=useCallback(c=>M(void 0,null,function*(){var d;let y=(d=(n!=null?n:[]).find(g=>g.id===c))!=null?d:null;t(y);}),[n,t]);return !r||o?null:jsxs(Space,{children:[jsx(t2,{children:"\u5F53\u524D\u6E38\u620F"}),jsx(Select,{showSearch:!0,optionFilterProp:"label",value:s==null?void 0:s.id,placeholder:"\u8BF7\u9009\u62E9\u6E38\u620F",loading:a,style:{width:"200px"},options:p,onChange:m})]})},Qe=s2;});var m2,He,Ht=P(()=>{l();H();m2=s=>{let t=useNavigate(),o=z(n=>n.clearToken),r=z(n=>n.getUser());return jsx(Dropdown,{menu:{selectable:!0,items:[{key:"1",label:jsx(Qt,{onClick:()=>{o(),t("/login");},children:"\u767B\u51FA"}),icon:jsx(LogoutOutlined,{})}]},placement:"bottomRight",children:jsx(Qt,{children:jsxs(Space,{align:"center",children:[jsx("span",{children:r==null?void 0:r.authorityId}),jsx(UserOutlined,{style:{fontSize:"16px"}})]})})})},He=m2;});function qt(s,t){let o=[];for(let a=0;a<s.length;a++)if(s[a]===null)o[a]=null;else if(s[a].type==="divider")o[a]=C({},s[a]);else if(s[a].children){let r=s[a],{children:i}=r,p=A(r,["children"]);o[a]=v(C({},p),{children:qt(i!=null?i:[],t)});}else {let n=s[a],{route:i,label:p,code:m}=n,c=A(n,["route","label","code"]),y=!m||!t||t[m];o[a]=y?v(C({},c),{label:y2(p,i)}):null;}return o}function Xt(s,t=[],o=[]){for(let r of s){let n=r.children;if(Array.isArray(n)){let a=r.type!=="group"&&r.key?[...o,r.key]:o;Xt(n,t,a);}else t.push(Object.assign(r,{keypath:o}));}return t}var y2,b2,qe,$t=P(()=>{l();_();O();y2=(s,t)=>s?t?jsx(Link,{to:t,children:s}):s:jsx(Fragment,{});b2=()=>{let s=useLocation(),t=S(d=>d.menuItems),o=useMemo(()=>Xt(t!=null?t:[]),[t]),r=o.map(d=>d.code).filter(Boolean),{data:n}=Ee(r,!0),a=useMemo(()=>qt(t!=null?t:[],n),[t,n]),{openKeys:i,selectedKeys:p,setOpenKeys:m,setSelectedKeys:c}=S(d=>d),y=useCallback(d=>{var x;let g=d==null?void 0:d.find(h=>(i==null?void 0:i.indexOf(h))===-1),u=o.find(h=>g===h.key);m((x=u==null?void 0:u.keypath)!=null?x:[g]);},[o,i,m]);return useEffect(()=>{let d=o.find(g=>s.pathname===g.route);if(d){let g=d.key,u=d.keypath;c([g]),m(u);}},[o,s,m,c]),jsx(Menu,{style:{borderRight:"none"},items:a,mode:"inline",openKeys:i,selectedKeys:p,onOpenChange:y})},qe=b2;});var T2,v2,I2,S2,F2,L2,Xe,jt=P(()=>{l();O();(({Spin:T2,theme:v2}=ue)),{Header:I2,Sider:S2,Content:F2}=ue.Layout,L2=s=>{let{children:t,extra:o}=s,{token:{colorBgContainer:r,colorBorder:n}}=v2.useToken(),{title:a,game:i}=S(p=>p);return jsxs(ue.Layout,{hasSider:!0,className:"h-screen",children:[jsxs(S2,{width:256,style:{overflow:"auto",height:"100vh",position:"fixed",left:0,top:0,bottom:0,borderRightWidth:1,borderRightStyle:"solid",borderRightColor:n},theme:"light",children:[jsxs("div",{className:"flex items-end px-6 py-4",children:[jsx("img",{src:P2,alt:"logo",className:"w-8 h-8"}),jsx(Link,{className:"font-bold text-lg ml-2",to:"/",children:a})]}),jsx(qe,{})]}),jsxs(ue.Layout,{className:"ml-64",children:[jsx(I2,{style:{padding:"0 24px",background:r,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:n},children:jsxs("div",{className:"flex justify-between items-center h-full",children:[jsx("div",{children:jsx(Qe,{})}),jsxs(Space,{size:"small",split:jsx(Divider,{type:"vertical"}),children:[o,jsx(He,{})]})]})}),jsx(F2,{className:"p-6 bg-gray-50",style:{overflow:"overlay"},children:jsx(Suspense,{fallback:jsx(T2,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"50vh"}}),children:jsx(SWRConfig,{value:{revalidateOnMount:!0},children:Jt.createElement("div",{key:i==null?void 0:i.id},t)})})})]})]})},Xe=L2;});var O=P(()=>{l();Tt();Be();Ae();Te();Zt();At();Kt();ze();Gt();Wt();Ht();$t();jt();});var Yt,$e=P(()=>{l();Yt="https://idaas.ifunplus.cn/enduser/api/application/plugin_FunPlus/sso/v1";});var V2,e1,t1=P(()=>{l();V2=()=>jsxs("svg",{viewBox:"0 0 1620 1028",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{id:"a"}),jsx("g",{id:"b",children:jsx("g",{id:"c",children:jsxs("g",{children:[jsx("path",{fill:"#e8f2fa",d:"M1543.84,1025.63c-92.65,0-1442.29,.34-1443.07-2.11l-.13-.31s-.13-.3-.13-.45c-.52-1.23-207.95-345.42,114.53-585.03,126.18-93.75-7.9-155.64,92.44-260.01,115.31-119.94,241.15,12.74,369.38-41.64,22.66-9.6,45.39-25.05,68.15-48.76C797.78,32.37,870.19,6.95,944.96,1.25c143.27-10.86,304.51,50.23,387.71,139.53,16.75,17.98,92.93,111.03,32.88,238.91-37.91,80.74,120.91,157.86,177.35,250.06,143.49,234.42,2.24,392.82,.93,395.87Z"}),jsxs("g",{opacity:".5",children:[jsx("g",{opacity:".5",children:jsx("path",{fill:"#a9c2ff",d:"M522.98,381s-10.51-89.31-55.62-142.6c-6-7.08-17.47-2.57-17.28,6.76,0,.16,0,.31,.01,.47,.58,15.93,51.09,83.13,72.89,135.37Z"})}),jsx("g",{opacity:".5",children:jsx("path",{fill:"#a9c2ff",d:"M528.46,406.57s-44.95-111.62-121.74-160.99c-4.68-3.01-11.02-1.92-14.16,2.72-2.04,3.02-2.96,7.73-.67,15.1,6.12,19.63,91.75,85.72,136.57,143.18Z"})})]}),jsxs("g",{children:[jsx("path",{fill:"#73b471",d:"M1088.4,378.19s-40.25-25.14-19.73-56.1c0,0,16.18-18.86,32.87-23.19,0,0-10.72,47-1.98,48.49,8.75,1.48,8.23-53.25,8.23-53.25,0,0,44.27-19.36,61.23-16.97,0,0-28.81,45.13-19.97,44.38,8.84-.75,40.96-46.29,40.96-46.29,0,0,44.84-6.49,50.9,20.56,6.05,27.05-6.03,39.94-12.69,41.34-6.66,1.4-48.94-.94-48.07,4.68,.87,5.62,29.08,15.74,45.22,11.39,0,0-19.38,43.29-42.36,40.09-22.99-3.2-29.54-17.99-43.78-19.7-14.24-1.71-24.84,1.75-17.85,5.95,6.98,4.2,31.27,2.59,42.4,13.03,11.13,10.43,20.22,16.96-1.39,20.52-21.61,3.56-59.96-.84-66.97-17.88l-7.01-17.04Z"}),jsxs("g",{children:[jsx("path",{fill:"#73b471",d:"M1220.24,303.33s-116.93,33.06-131.84,74.86c0,0-.22,18.97-12.65,40.22l-.34,8.36s13.25-27.92,20-31.54c0,0-24.32-37.87,124.83-91.9Z"}),jsx("path",{fill:"#73b471",d:"M1075.75,418.41s-18.91,26.66-10.13,60.45l4.63-1.05s-2.94-36.94,7.12-55.03c10.06-18.09-1.62-4.37-1.62-4.37Z"})]})]}),jsxs("g",{children:[jsx("path",{fill:"#9bd399",d:"M925.53,377.18s-67.6,6.07-70.13-47.44c0,0,2.69-35.79,18.25-55.28,0,0,27.38,63.45,38.71,57.55,11.32-5.9-35.54-68.47-35.54-68.47,0,0,34.61-60.79,56.16-72.8,0,0,4.97,77.02,14.52,68.48,9.54-8.54,8.04-88.93,8.04-88.93,0,0,46.15-46.48,75.98-20.59,29.83,25.89,26.82,51.24,20.33,58.64-6.49,7.4-57.15,41.49-51.4,47.2,5.75,5.71,46.78-7.17,61.69-26.21,0,0,14.28,66.7-14.89,83.01-29.17,16.31-49.21,4.98-67.06,15.39-17.84,10.41-27.12,23.62-15.53,22.38,11.59-1.24,38.19-24.21,59.83-21.88,21.64,2.33,37.62,1.94,15.74,24.83-21.87,22.89-69.75,51.18-92.22,37.65l-22.48-13.53Z"}),jsxs("g",{children:[jsx("path",{fill:"#9bd399",d:"M1014.06,176.32s-106.69,139.76-88.53,200.87c0,0,15.78,22.04,19.44,57.32l6.67,9.92s-8.34-43.67-3.63-53.71c0,0-60.01-22.45,66.05-214.39Z"}),jsx("path",{fill:"#9bd399",d:"M944.97,434.5s.76,47.15,39.44,78.42l4.44-5.24s-34.61-39.97-38.32-69.55c-3.71-29.58-5.56-3.62-5.56-3.62Z"})]})]}),jsxs("g",{children:[jsxs("g",{children:[jsx("path",{fill:"#b6cfff",d:"M290.34,904.31s-18.93-22.41-1.17-36.64c0,0,12.98-7.97,23.56-7.32,0,0-14.99,25.5-10.14,28.04,4.85,2.54,14.69-29.64,14.69-29.64,0,0,29.53-2.91,39.03,1.73,0,0-25.25,20.96-19.93,22.2,5.32,1.25,32.58-19.32,32.58-19.32,0,0,27.48,4.74,26.02,21.75-1.47,17.01-10.94,22.26-15.1,21.81-4.16-.45-28.51-9.88-29.04-6.42-.53,3.46,14.13,14.77,24.39,15.29,0,0-19.38,21.68-32.26,15.42-12.88-6.26-13.98-16.17-22.01-19.89-8.03-3.72-14.88-3.71-11.57,.08,3.31,3.79,17.84,7.48,22.43,15.72,4.59,8.24,8.71,13.79-4.61,11.76-13.32-2.03-34.98-11.92-35.93-23.25l-.95-11.32Z"}),jsxs("g",{children:[jsx("path",{fill:"#b6cfff",d:"M381.48,885.57s-74.65-2.92-91.14,18.74c0,0-3.65,11.08-14.87,21.16l-1.75,4.83s12.94-13.84,17.56-14.67c0,0-7.24-26.83,90.19-30.06Z"}),jsx("path",{fill:"#b6cfff",d:"M275.48,925.47s-16.02,12.02-17.14,33.5l2.91,.26s5.12-22.21,14.37-30.89c9.25-8.68-.14-2.87-.14-2.87Z"})]})]}),jsxs("g",{children:[jsx("path",{fill:"#a9c2ff",d:"M224.15,876.13s30.12-17.11,16.06-40.33c0,0-11.24-14.26-23.29-17.92,0,0,6.42,34.62,0,35.44-6.43,.81-4.42-39.11-4.42-39.11,0,0-31.72-15.48-44.17-14.26,0,0,19.68,33.81,13.25,33-6.43-.81-28.51-35.03-28.51-35.03,0,0-32.53-6.11-37.75,13.44-5.22,19.55,3.21,29.33,8.03,30.55,4.82,1.22,35.74,.81,34.94,4.89-.8,4.07-21.69,10.59-33.33,6.92,0,0,12.85,32.18,29.72,30.55,16.87-1.63,22.09-12.22,32.53-13.03,10.44-.81,18.07,2.04,12.85,4.89-5.22,2.85-22.89,.93-31.32,8.21-8.43,7.27-15.26,11.75,.4,15.01,15.66,3.26,43.77,1.22,49.39-11l5.62-12.22Z"}),jsxs("g",{children:[jsx("path",{fill:"#a9c2ff",d:"M130.18,817.47s84.33,27.7,93.97,58.66c0,0-.4,13.85,8.03,29.74v6.11s-8.83-20.78-13.65-23.63c0,0,18.87-26.88-88.35-70.88Z"}),jsx("path",{fill:"#a9c2ff",d:"M232.18,905.87s13.01,20.03,5.59,44.42l-3.35-.91s3.25-26.86-3.56-40.37c-6.8-13.51,1.31-3.14,1.31-3.14Z"})]})]}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M272.06,852.53s-39.7-22.55-21.17-53.16c0,0,14.82-18.79,30.7-23.63,0,0-8.47,45.64,0,46.72,8.47,1.07,5.82-51.55,5.82-51.55,0,0,41.82-20.4,58.23-18.79,0,0-25.94,44.57-17.47,43.49,8.47-1.07,37.58-46.18,37.58-46.18,0,0,42.88-8.05,49.76,17.72,6.88,25.77-4.23,38.66-10.59,40.27-6.35,1.61-47.11,1.07-46.05,6.44,1.06,5.37,28.58,13.96,43.94,9.13,0,0-16.94,42.42-39.17,40.27-22.23-2.15-29.11-16.11-42.88-17.18-13.76-1.07-23.82,2.69-16.94,6.44,6.88,3.76,30.17,1.23,41.29,10.82,11.12,9.59,20.12,15.49-.53,19.79-20.64,4.3-57.7,1.61-65.11-14.5l-7.41-16.11Z"}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M395.93,775.21s-111.16,36.51-123.87,77.32c0,0,.53,18.26-10.59,39.2v8.05s11.65-27.39,18-31.14c0,0-24.88-35.44,116.46-93.43Z"}),jsx("path",{fill:"#cedfff",d:"M261.48,891.73s-17.14,26.41-7.37,58.55l4.41-1.2s-4.28-35.41,4.69-53.21c8.97-17.81-1.73-4.14-1.73-4.14Z"})]})]}),jsx("path",{fill:"#bbd3ff",d:"M270.72,1019.99c42.95,0,77.77-35.32,77.77-78.89H192.96c0,43.57,34.82,78.89,77.77,78.89Z"}),jsx("path",{fill:"#bbd3ff",d:"M349.57,1024.01H191.88c0-5.37,4.3-9.73,9.59-9.73h138.49c5.3,0,9.59,4.36,9.59,9.73h0Z"}),jsx("rect",{fill:"#80a1e6",height:"2.42",width:"159.86",y:"941.11",x:"190.4"})]}),jsx("path",{fill:"#768cee",d:"M801.19,578.05l-34.8,419.74s-3.65,25.44,15.01,25.49c30.68,.07,152.69,0,152.69,0,0,0-23.09-5.3-22.81-17.21,.33-14.05,40.67-431.99,40.67-431.99l-150.76,3.97Z"}),jsx("path",{fill:"#a9c2ff",d:"M945.58,1015.66c-6.03,.02-124.16,.22-154.03-.17-13.02-.16-15.3-11.74-15.41-19.24-.05-3.59,.4-6.25,.4-6.25l.9-10.91,2.31-27.81,2.04-24.57,2.62-31.57,2.2-26.64,24.73-298.26,150.76-3.97s-16.99,174.91-29.01,302.22c-1.34,14.19-2.62,27.79-3.8,40.48-.38,4.05-.75,8.02-1.11,11.88-1.11,12.05-2.13,23.11-3.02,32.88-.47,5.15-.9,9.93-1.29,14.31-1.53,17.17-2.43,28.13-2.44,30.22,0,1.22,.1,2.35,.29,3.4,2.47,13.38,21.59,13.98,23.86,13.98Z"}),jsx("polygon",{fill:"#a9c2ff",points:"435.05 349.47 519.82 694.86 531.43 742.16 570.91 903.04 1304.39 903.04 1158.87 349.47 435.05 349.47"}),jsx("polygon",{fill:"#768cee",points:"435.05 349.46 423.31 353.44 555.29 915.06 570.91 903.04 435.05 349.46"}),jsx("polygon",{fill:"#809bf5",points:"555.29 915.06 1284.26 915.06 1304.39 903.04 570.91 903.04 555.29 915.06"}),jsx("rect",{fill:"#a9c2ff",transform:"translate(1780.4 2038.92) rotate(180)",height:"7.61",width:"157.83",y:"1015.66",x:"811.28"}),jsx("polygon",{fill:"#899bfa",points:"928.99 915.05 928.18 920.87 779.74 951.29 781.78 926.72 782.75 915.05 928.99 915.05"}),jsx("g",{opacity:".5",children:jsx("path",{fill:"#899bfa",d:"M945.58,1015.66c-6.03,.02-124.16,.22-154.03-.17-13.02-.16-15.3-11.74-15.41-19.24l147.73-28.19c-1.53,17.17-2.43,28.13-2.44,30.22,0,1.22,.1,2.35,.29,3.4,2.47,13.38,21.59,13.98,23.86,13.98Z"})}),jsx("polygon",{fill:"#899bfa",points:"435.05 349.46 1158.87 349.46 1276.31 794.36 544.24 794.36 435.05 349.46"}),jsx("polygon",{fill:"#5158bf",points:"1242.18 775.08 564.46 775.08 540.24 677.22 530.87 639.35 527.05 623.91 502.16 523.34 500.87 518.1 487.71 464.94 481.83 441.15 476.81 420.86 472.71 404.31 465.03 373.3 1132.98 373.3 1141.41 404.31 1145.91 420.86 1151.42 441.15 1157.88 464.94 1200.47 621.65 1200.47 621.65 1204.08 634.93 1205.76 641.09 1235.16 749.28 1242.18 775.08"}),jsx("polygon",{fill:"#5d6cd2",points:"973.57 757.36 624.87 757.36 605.71 662.1 598.3 632.14 595.28 619.93 575.59 540.37 574.57 536.23 564.16 494.17 559.5 475.35 555.53 459.3 552.29 446.21 546.22 421.68 887.42 421.68 973.57 757.36"}),jsx("polygon",{fill:"#899bfa",points:"819.24 794.36 571.16 904.34 544.24 794.36 819.24 794.36"}),jsxs("g",{children:[jsx("path",{fill:"#2a3967",d:"M1384.19,552.09c.04-.99,.79-11.66,16.82-12.22,0,0-7.88,.95-9.24,4.47,0,0,5.37-4.34,9.74-2.95,4.37,1.4,6.94,9.16,6.96,11.72,.03,2.55-2.4,10.79-5.18,11.49-1.05,.27-2.26,.19-3.36,0,.74,1.17,1.46,2.46,2.15,3.9,6.4,13.32-.2,26.33-5.61,24.89-3.47-.92-4.45,5.09-4.45,5.09l-33.74-27.7s12.39-26.01,25.91-18.69Z"}),jsx("path",{fill:"#ffae73",d:"M1292.25,718.6c2.82,2.53,10.3-6.16,11.33-7.32,.05-.11,.11-.17,.11-.17l-2.28-6.44s-9.82-.38-11.44,1.27c-1.63,1.65-.81,9.96,2.28,12.65Z"}),jsx("path",{fill:"#25468f",d:"M1372.45,944.42l7.17,2.71s31.12-43.79,34.96-82.31c.68-6.88-.72-21.46-.19-24.57,.25-1.45,.55-3.2,.89-5.21,1.01-5.88,2.4-13.93,4-23.09,3.66-21.09,8.41-48.04,12.09-67.85l-1.93-.63-20.89-6.84-4.32-13.91-15.56-4.15s-3.47,6.9-6.58,39.47c-.57,4.27-1.09,8.98-1.49,14.09-1.21,15.6-1.3,34.94,1.48,57.06,.71,5.66,3.67,27.92,3.33,34.81-1.57,31.49-12.96,80.44-12.96,80.44Z"}),jsx("path",{fill:"#1e3865",d:"M1380.6,772.11l33.78,68.12c.25-1.45,.55-3.2,.89-5.21,1.01-5.88,2.4-13.93,4-23.09,3.66-21.09,8.41-48.04,12.09-67.85l-1.93-.63-20.89-6.84-4.32-13.91-15.56-4.15s-3.47,6.9-6.58,39.47c-.57,4.27-1.09,8.98-1.49,14.09Z"}),jsx("path",{fill:"#25468f",d:"M1395.46,727.29l.78-6.8c13.1,3.53,48.1-9.86,48.1-9.86,0,0,12.69,11.32,11.03,38.44-.81,13.24-2.3,69.5-3.85,86.15-.56,6.03,3.3,21.56,4.85,25.75,15.23,41.17-2.35,91.87-2.35,91.87l-4.56-1.87s-28.85-106.12-31.83-117.36c-5.63-21.25-10.15-48.9-13.17-70.25-.42,.02-9.01-36.08-9.01-36.08Z"}),jsx("path",{fill:"#ffae73",d:"M1385.52,648.37c22.52,1.25,17.57-32.81,16.2-32.63-2.76-1.46-7.7-8.55-10.56-20.41l-.97,.46-16.25,7.75s1.73,5.36,3,10.5c.99,4.02,1.71,7.9,1.11,8.98-1.28,.53-2.05,.86-2.05,.86,0,0,0,0,0,.02-.16,.42,3.52,24.15,9.53,24.48Z"}),jsx("path",{fill:"#f99352",d:"M1373.93,603.53s1.73,5.36,3,10.5c9.5-2.69,12.38-12.82,13.25-18.25l-16.25,7.75Z"}),jsx("path",{fill:"#ffae73",d:"M1371.93,609.21s22.73-5.34,19.23-19.64c-3.49-14.31-2.91-24.63-17.57-21.83-14.66,2.8-16.13,8.97-16.11,14.03,.02,5.06,8.45,28.46,14.45,27.44Z"}),jsx("path",{fill:"#2a3967",d:"M1356.2,573.64c2.44-5.19,5.32-4.91,7.12-3.99,10.68-10.02,21.15-1.83,21.15-1.83,4.03,9.88,12.77,13.92,12.77,13.92,0,0-3.49,3.63-13.61,3.55-3.09-.02-6.2-1.46-9.03-3.45,5.45,5.57,11.85,8.97,11.85,8.97-12.67-2.46-21.16-17.34-22.03-18.92-1.07,1.61-3.13,5.03-3.3,7.92-.23,3.93,1.1,11.55-1.12,11.84,0,0-7.47-10.23-3.8-18Z"}),jsx("path",{fill:"#1e3865",d:"M1427.51,956.62h36.09s.87-5.58-1.02-9.81c-1.81-4.06-4.64-5.91-3.96-10.82-2.29,2.4-6.03,5.08-11.25,4.37-.64,1.05-4.13,6.68-6.26,8.23-2.36,1.72-12.88,1.11-13.6,8.04Z"}),jsx("path",{fill:"#1e3865",d:"M1350.02,956.62h36.09s1.35-5.84-1.02-9.81c-2.1-3.52-1.29-5.52,.26-8.43-1.64,.68-3.75,1.3-6.08,1.16-1.8-.1-3.7-.93-5.37-1.91-1.55,1.8-8.2,9.44-10.28,10.96-2.36,1.72-12.88,1.11-13.6,8.04Z"}),jsx("path",{fill:"#899bfa",d:"M1445.02,667.38c-1.94-6.38-3.95-12.51-5.98-18.16-4.62-12.85-7.56-19.56-10.05-24.76-4.74-9.89-25.93-9.27-25.93-9.27-4.08,14.92-15.3,24.22-15.3,24.22-5.98-3.56-10.43-16.08-10.43-16.08l-13.09,7.06h0s-4.05,2.45-7.58,12.75c-5.25,15.32-13.77,37.08-19.68,43.73-1.38,1.55-5.42,3.9-10.31,6.39h0c-.11,.17-.19,.25-.24,.25,.32,.73,1.74,4.18,4.04,7.69,1.87,2.85,4.32,5.73,7.22,7.21,2.23-1.09,6.25-2.7,7.95-3.76,6.16-3.82,15.33-9.32,22.51-20.93l2,27.29,3.62,49.37c5.57,1.76,10.87,3.13,15.89,4.18,.33-4.14,1.65-9.09,1.65-9.09-.06,2.6,2.94,7.56,4.71,10.27,46.22,7.51,67.88-12.94,67.88-12.94-1.8-18.1-9.58-54.72-18.91-85.41Z"}),jsx("path",{fill:"#6f7deb",d:"M1398.39,612.43s3.84,.26,4.67,2.76c0,0-5.02,20.49-15.29,24.22l10.62-26.97Z"}),jsx("path",{fill:"#6f7deb",d:"M1387.77,639.4s-9.82-17.97-9.78-20.4c0,0-3.73,3.35-3.49,5.85,0,0,8.27,13.43,13.26,14.55Z"}),jsx("path",{fill:"#6f7deb",d:"M1414.09,632.11c-.28,.97-20.31,49.54-38.28,67.44-7.87,7.84,17.2,5.57,17.44,4.12,.24-1.46,20.84-71.56,20.84-71.56Z"}),jsx("path",{fill:"#6f7deb",d:"M1370.8,712.54l1.71,27.4c54.8-12.91,50.2-101.44,50.2-101.44l-27.52,57.64-24.15,16.01s-.09,.14-.25,.39Z"}),jsx("path",{fill:"#a9c2ff",d:"M1326.37,693.41c.01,.06,.04,.09,.07,.09-.02-.04-.03-.08-.04-.1-.04-.09-.05-.09-.03,.01Z"}),jsxs("g",{children:[jsx("path",{fill:"#ff912b",d:"M1353.48,655.68l10.91,49.33c1.74,7.86-4.13,14.22-13.1,14.22h-262c-8.97,0-17.65-6.37-19.39-14.22l-10.91-49.33c-.07-.3-.12-.6-.16-.9-1.13-7.44,4.63-13.32,13.26-13.32h262c8.63,0,16.99,5.88,19.15,13.32,.1,.3,.17,.6,.24,.9Z"}),jsxs("g",{children:[jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1089.87 697 1087.3 697 1080.51 666.3 1083.08 666.3 1089.87 697"}),jsx("polygon",{fill:"#e8f2fa",points:"1107.58 678.97 1089.17 678.97 1087.24 670.28 1105.66 670.28 1107.58 678.97"}),jsx("polygon",{fill:"#e8f2fa",points:"1116.16 691.42 1091.92 691.42 1090 682.74 1114.24 682.74 1116.16 691.42"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1148.77 697 1146.2 697 1139.41 666.3 1141.98 666.3 1148.77 697"}),jsx("polygon",{fill:"#e8f2fa",points:"1152.7 678.97 1134.29 678.97 1132.37 670.28 1150.78 670.28 1152.7 678.97"}),jsx("polygon",{fill:"#e8f2fa",points:"1158.37 691.42 1134.13 691.42 1132.21 682.74 1156.45 682.74 1158.37 691.42"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1207.67 697 1205.1 697 1198.31 666.3 1200.88 666.3 1207.67 697"}),jsx("polygon",{fill:"#e8f2fa",points:"1197.82 678.97 1179.4 678.97 1177.48 670.28 1195.89 670.28 1197.82 678.97"}),jsx("polygon",{fill:"#e8f2fa",points:"1200.57 691.42 1176.33 691.42 1174.41 682.74 1198.65 682.74 1200.57 691.42"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1245.35 668.78 1215.1 668.78 1214.52 666.18 1244.78 666.18 1245.35 668.78"}),jsx("polygon",{fill:"#e8f2fa",points:"1228.12 671.23 1232.26 689.91 1223.69 689.91 1219.56 671.23 1228.12 671.23"}),jsx("polygon",{fill:"#e8f2fa",points:"1240.4 671.23 1245.84 695.82 1237.28 695.82 1231.84 671.23 1240.4 671.23"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1292.98 682.95 1262.72 682.95 1262.14 680.35 1292.4 680.35 1292.98 682.95"}),jsx("polygon",{fill:"#e8f2fa",points:"1272.86 672.31 1276.99 690.99 1268.42 690.99 1264.29 672.31 1272.86 672.31"}),jsx("polygon",{fill:"#e8f2fa",points:"1284.48 669.36 1289.92 693.94 1281.35 693.94 1275.91 669.36 1284.48 669.36"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#e8f2fa",points:"1340.63 697.23 1310.37 697.23 1309.79 694.63 1340.05 694.63 1340.63 697.23"}),jsx("polygon",{fill:"#e8f2fa",points:"1317.78 673.28 1321.91 691.96 1313.34 691.96 1309.21 673.28 1317.78 673.28"}),jsx("polygon",{fill:"#e8f2fa",points:"1328.74 667.37 1334.18 691.96 1325.62 691.96 1320.18 667.37 1328.74 667.37"})]})]})]}),jsxs("g",{children:[jsx("path",{fill:"#ffae73",d:"M1327.16,714.82c2.99-.01,7.7-.22,10.42-1.28,0,0-8.7-.13-6.85-2.92,.34-.51,4.66-.12,9.49-.12,1.98,0,6.88,2.75,6.62,2.88,3.5-.47,6.68-1.16,7.71-1.38,.27-.06,.38-.11,.38-.11l3.09,9.13s-.65,.16-1.79,.38c-2.87,.72-8.79,2.26-14.37,4.46-7.81,3.14-13.55-.76-16.16-3.52-1.65-1.75-2.95-4.07-2.86-5.75,.1-1.84,2.5-1.76,4.32-1.77Z"}),jsx("path",{fill:"#ffae73",d:"M1348.16,715.52l1.9,7.04s2.39-.44,6.18-1.16c1.14-.22,1.79-.39,1.79-.39,3.04-.6,6.67-1.43,10.63-2.31h.06c6.78-1.65,14.37-3.63,20.77-5.83,.57-.2,1.14-.41,1.69-.61,3.78-1.42-3.53-20.9-6.84-18.47-.88,.65-1.82,1.31-2.8,1.99-5.49,3.78-12.47,7.99-18.67,11.54-3.04,1.76-5.91,3.36-8.3,4.68-3.85,2.14-6.4,3.52-6.4,3.52Z"}),jsx("path",{fill:"#899bfa",d:"M1381.53,695.79s-.4,13.3,11.88,19.77c14.19-5.2,21.78-26.66,27.64-41.4,.81-2.03,1.57-4.07,2.33-6.05,2.71-7.37,4.88-14.63,6.18-20.91,.81-3.74-14.97-22.61-16.97-18.15-3.09,7.09-6.34,16.28-9.38,25.41-1.68,5.01-3.31,10.01-4.94,14.63-.92,2.8-1.85,5.44-2.71,7.86-1.68,4.62-3.2,8.36-4.55,10.73-.87,1.54-3.36,3.69-6.67,6.11-.88,.65-1.82,1.31-2.8,1.99Z"})]})]}),jsx("polygon",{fill:"#3c4aaa",points:"1141.41 404.31 472.71 404.31 465.03 373.3 1132.98 373.3 1141.41 404.31"}),jsxs("g",{children:[jsx("path",{fill:"#e8f2fa",d:"M506.59,389.09c.87,2.78-.86,5.05-3.87,5.07-3.01,.02-6.16-2.22-7.03-4.99-.87-2.78,.86-5.05,3.87-5.07,3.01-.02,6.16,2.21,7.03,4.99Z"}),jsx("path",{fill:"#e8f2fa",d:"M529.14,388.93c.87,2.78-.86,5.05-3.87,5.07-3.01,.02-6.16-2.21-7.03-4.99-.87-2.78,.86-5.05,3.87-5.07,3.01-.02,6.16,2.21,7.03,4.99Z"}),jsx("path",{fill:"#e8f2fa",d:"M551.69,388.77c.87,2.78-.86,5.05-3.87,5.07-3.01,.02-6.16-2.21-7.03-4.99-.87-2.78,.86-5.05,3.87-5.07,3.01-.02,6.16,2.21,7.03,4.99Z"})]}),jsx("path",{fill:"#ff912b",d:"M559.5,475.35s78.71,.3,135.79,44.69c57.08,44.39,48.85,84.22,96.21,94.2,77.61,16.36,29.43-67.66,130.21-58.92l51.86,202.04h-348.7l-26.57-125.21-38.8-156.79Z"}),jsx("path",{fill:"#fff",d:"M809.47,617.1c-5.34,0-11.34-.72-18.11-2.15-26.14-5.51-35.78-20.39-47.98-39.22-10.11-15.61-22.69-35.03-48.52-55.11-16.21-12.61-44.82-29.59-89.01-38.86-26.44-5.54-46.15-5.68-46.35-5.68v-1.46c.2,0,20.06,.14,46.64,5.72,24.54,5.15,60,16.11,89.59,39.13,26.02,20.24,38.68,39.77,48.85,55.47,12.49,19.28,21.51,33.21,47.07,38.59,36.4,7.67,44.63-6.84,54.16-23.64,10.62-18.71,22.66-39.93,75.97-35.3l-.12,1.45c-52.41-4.55-64.2,16.24-74.6,34.58-4.82,8.5-9.38,16.53-17.46,21.49-5.44,3.34-12.02,4.99-20.12,4.99Z"}),jsx("path",{fill:"#fc7400",d:"M577.88,549.18l20.01,80.88,26.98,127.29h348.7l-17.58-66.1s-51.62-29.18-121.62-3.75c-70,25.44-147.49,1.96-152.48-55.25-5.62-64.51-64.06-95.58-104.01-83.08Z"}),jsx("path",{fill:"#fff",d:"M665.98,587.45c-20.04-31.44-57-47.24-87.89-37.57l-.42-1.39c31.49-9.85,69.13,6.2,89.52,38.17l-1.21,.79Z"}),jsxs("g",{children:[jsx("polygon",{fill:"#fff",points:"795.85 620.61 784.52 619.43 785.69 607.94 797.02 609.12 795.85 620.61"}),jsx("polygon",{fill:"#fff",points:"892.8 636.61 701.9 596.39 702.28 594.51 893.18 634.73 892.8 636.61"}),jsx("path",{fill:"#fff",d:"M698.84,595.11c.19-1.82,1.79-3.15,3.59-2.96,1.8,.19,3.1,1.82,2.92,3.64s-1.79,3.15-3.59,2.96c-1.8-.19-3.1-1.82-2.92-3.64Z"}),jsx("path",{fill:"#fff",d:"M889.74,635.33c.19-1.82,1.79-3.15,3.59-2.96,1.8,.19,3.1,1.82,2.92,3.64-.19,1.82-1.79,3.15-3.59,2.96-1.8-.19-3.1-1.82-2.92-3.64Z"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#fff",points:"656.9 504.31 648.61 496.38 656.42 487.98 664.71 495.9 656.9 504.31"}),jsx("polygon",{fill:"#fff",points:"687.13 528 622.39 462.58 623.73 461.23 688.46 526.64 687.13 528"}),jsx("path",{fill:"#fff",d:"M620.52,459.81c1.14-1.42,3.2-1.64,4.6-.49,1.4,1.15,1.62,3.24,.48,4.67-1.14,1.42-3.2,1.64-4.6,.49-1.4-1.15-1.62-3.24-.48-4.67Z"}),jsx("path",{fill:"#fff",d:"M685.26,525.23c1.14-1.42,3.2-1.64,4.6-.49s1.62,3.24,.48,4.67c-1.14,1.42-3.2,1.64-4.6,.49-1.4-1.15-1.62-3.24-.48-4.67Z"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#fff",points:"882.44 557.53 877.99 568.16 867.5 563.65 871.96 553.01 882.44 557.53"}),jsx("polygon",{fill:"#fff",points:"863.91 587.74 862.2 586.94 886.44 533.18 888.16 533.98 863.91 587.74"}),jsx("path",{fill:"#fff",d:"M862,590.48c-1.71-.59-2.63-2.47-2.05-4.21,.58-1.74,2.44-2.66,4.15-2.08,1.71,.59,2.63,2.47,2.05,4.21-.58,1.74-2.44,2.66-4.15,2.08Z"}),jsx("path",{fill:"#fff",d:"M886.25,536.72c-1.71-.59-2.63-2.47-2.05-4.21,.58-1.74,2.44-2.66,4.15-2.08,1.71,.59,2.63,2.47,2.05,4.21-.58,1.74-2.44,2.66-4.15,2.08Z"})]}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M933.58,440.32l17.72,74.3c.76,3.18-2.2,5.76-6.61,5.76h-182.3c-4.41,0-8.6-2.58-9.35-5.76l-17.72-74.3c-.76-3.18,2.2-5.76,6.61-5.76h182.3c4.41,0,8.59,2.58,9.35,5.76Z"}),jsxs("g",{children:[jsxs("g",{children:[jsx("polygon",{fill:"#25468f",points:"781.52 483.78 762.12 483.78 757.43 464.1 776.83 464.1 781.52 483.78"}),jsx("polygon",{fill:"#25468f",points:"793.57 493.62 774.17 493.62 769.47 473.94 788.88 473.94 793.57 493.62"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#25468f",points:"826.82 483.78 807.42 483.78 802.72 464.1 822.12 464.1 826.82 483.78"}),jsxs("g",{children:[jsx("polygon",{fill:"#6b98f6",points:"838.87 493.62 819.47 493.62 814.77 473.94 834.17 473.94 838.87 493.62"}),jsx("path",{fill:"#183a76",d:"M839.9,494.47h-21.06l-5.1-21.36h21.06l5.1,21.36Zm-19.8-1.68h17.75l-4.29-18h-17.75l4.29,18Z"})]})]}),jsxs("g",{children:[jsx("polygon",{fill:"#6b98f6",points:"872.12 483.78 852.71 483.78 848.02 464.1 867.42 464.1 872.12 483.78"}),jsx("path",{fill:"#25468f",d:"M873.14,484.62h-21.06l-5.1-21.36h21.06l5.1,21.36Zm-19.8-1.68h17.75l-4.29-18h-17.75l4.29,18Z"}),jsx("polygon",{fill:"#6b98f6",points:"884.16 493.62 864.76 493.62 860.07 473.94 879.47 473.94 884.16 493.62"}),jsx("path",{fill:"#25468f",d:"M885.19,494.47h-21.06l-5.1-21.36h21.06l5.1,21.36Zm-19.8-1.68h17.75l-4.29-18h-17.75l4.29,18Z"}),jsx("polygon",{fill:"#25468f",points:"873.14 484.58 861.71 484.58 858.97 473.1 870.4 473.1 873.14 484.58"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#25468f",points:"917.41 483.78 898.01 483.78 893.31 464.1 912.72 464.1 917.41 483.78"}),jsx("polygon",{fill:"#25468f",points:"929.46 493.62 910.06 493.62 905.36 473.94 924.77 473.94 929.46 493.62"}),jsx("polygon",{fill:"#6b98f6",points:"916.86 483.31 907.97 483.31 905.84 474.37 914.73 474.37 916.86 483.31"})]})]})]}),jsxs("g",{children:[jsx("path",{fill:"#3c4aaa",d:"M429.21,674.95h-67.18c-8.96,0-17.83-7.37-19.81-16.46l-50.55-231.5c-1.98-9.09,3.67-16.46,12.63-16.46h67.18c8.96,0,17.83,7.37,19.81,16.46l50.55,231.5c1.98,9.09-3.67,16.46-12.63,16.46Z"}),jsx("rect",{fill:"#a9c2ff",height:".44",width:"99.62",y:"462.59",x:"299.49"}),jsx("rect",{fill:"#a9c2ff",height:".44",width:"99.63",y:"517.14",x:"311.4"}),jsx("rect",{fill:"#a9c2ff",height:".44",width:"99.63",y:"571.69",x:"323.31"}),jsx("path",{fill:"#fff",d:"M360.43,446.51c.13-1.17-5.02-21.24-5.02-21.24l18.26,15.01-8.97-.32-4.27,6.56Z"}),jsx("path",{fill:"#cedfff",d:"M415.47,651.23h-35.38l-7.83-35.84h35.38l7.83,35.84Zm-33.8-2h31.35l-6.95-31.85h-31.35l6.95,31.85Z"}),jsx("polygon",{fill:"#ff7536",points:"390.05 630.85 356.68 630.85 349.29 597 382.66 597 390.05 630.85"}),jsx("polygon",{fill:"#ff7536",points:"382 651.12 379.75 649.34 405.73 615.5 407.98 617.27 382 651.12"}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M315.51,446.51c.13-1.17-5.02-21.24-5.02-21.24l18.26,15.01-8.97-.32-4.27,6.56Z"}),jsxs("g",{children:[jsx("polygon",{fill:"#cedfff",points:"322.59 486.27 319.9 486.27 318.83 481.4 337.08 481.4 338.1 486.08 335.41 486.08 334.99 484.13 322.12 484.13 322.59 486.27"}),jsx("polygon",{fill:"#cedfff",points:"332.96 498.16 330.27 498.16 326.91 482.76 329.6 482.76 332.96 498.16"}),jsx("polygon",{fill:"#cedfff",points:"335.38 499.13 328.28 499.13 327.68 496.4 334.79 496.4 335.38 499.13"})]}),jsx("polygon",{fill:"#cedfff",points:"371.78 500.83 369.35 499.06 382.17 478.6 384.6 480.37 371.78 500.83"}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M340.97,548.52c-5.13,0-10.23-4.24-11.37-9.44-1.14-5.21,2.11-9.44,7.25-9.44s10.23,4.24,11.37,9.44c1.14,5.21-2.11,9.44-7.25,9.44Zm-3.58-16.39c-3.78,0-6.17,3.12-5.33,6.95,.84,3.83,4.59,6.95,8.37,6.95s6.17-3.12,5.33-6.95c-.84-3.83-4.59-6.95-8.37-6.95Z"}),jsx("path",{fill:"#cedfff",d:"M358.69,556.72c-.32,0-.67-.13-.97-.38l-12.38-10.57c-.58-.5-.74-1.28-.36-1.76,.38-.48,1.17-.46,1.75,.03l12.38,10.57c.58,.5,.74,1.28,.36,1.76-.19,.23-.47,.35-.78,.35Z"})]}),jsx("polygon",{fill:"#cedfff",points:"385.5 528.76 390.11 537.32 398.98 537.32 392.96 542.61 397.57 551.16 389.24 545.87 383.22 551.16 384.09 542.61 375.76 537.32 384.63 537.32 385.5 528.76"})]})]}),jsxs("g",{children:[jsx("path",{fill:"#fa8b79",d:"M1241.96,453.88s.24,13.48-1.75,13.23c-1.99-.25-4.7-11.3-4.72-11.14-.02,.17,.9,11.62-1.6,12.19-2.51,.57-5.05-12.13-5.05-12.13,0,0,1.68,10.9-.08,11.19-1.76,.29-4.54-10.28-5.27-10.31-.73-.03,2.34,9.06,.19,9.53-2.15,.46-6.94-12.33-5.32-13.96,1.62-1.63,4.15,.11,4.15,.11,0,0,3.12-2.35,5.52-1.02,0,0,5.62-1.14,7.31,1.39,0,0,3.51-3.06,6.61,.91Z"}),jsxs("g",{children:[jsx("path",{fill:"#cedfff",d:"M1278.23,402.24l45.59,166.75c1.95,7.13-2.5,12.92-9.94,12.92h-307.72c-7.44,0-15.05-5.78-17-12.92l-45.59-166.75c-1.95-7.13,2.5-12.92,9.94-12.92h307.72c7.44,0,15.05,5.78,17,12.92Z"}),jsxs("g",{children:[jsx("polygon",{fill:"#b0c0ff",points:"1038.92 477.47 999.17 477.47 988.15 437.16 1027.89 437.16 1038.92 477.47"}),jsx("polygon",{fill:"#5158bf",points:"1026.48 467.6 1006.21 467.6 1000.59 447.03 1020.86 447.03 1026.48 467.6"}),jsx("polygon",{fill:"#ff7536",points:"1000.44 478.4 997.91 476.54 1026.63 436.23 1029.16 438.08 1000.44 478.4"}),jsx("polygon",{fill:"#ff7536",points:"1010.63 455.62 970.89 455.62 959.87 415.3 999.61 415.3 1010.63 455.62"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#ff7536",points:"1033.21 525.04 1001.26 525.04 992.4 492.63 1024.35 492.63 1033.21 525.04"}),jsx("polygon",{fill:"#fc7600",points:"1064.86 525.04 1032.91 525.04 1024.05 492.63 1056 492.63 1064.86 525.04"}),jsx("polygon",{fill:"#ff8111",points:"1096.81 525.04 1064.86 525.04 1056 492.63 1087.95 492.63 1096.81 525.04"}),jsx("polygon",{fill:"#6b98f6",points:"1128.76 525.04 1096.81 525.04 1087.95 492.63 1119.9 492.63 1128.76 525.04"}),jsx("polygon",{fill:"#899bfa",points:"1160.71 525.04 1128.76 525.04 1119.9 492.63 1151.85 492.63 1160.71 525.04"}),jsx("polygon",{fill:"#697ee3",points:"1192.66 525.04 1160.71 525.04 1151.85 492.63 1183.8 492.63 1192.66 525.04"}),jsx("polygon",{fill:"#5158bf",points:"1224.61 525.04 1192.66 525.04 1183.8 492.63 1215.75 492.63 1224.61 525.04"}),jsx("polygon",{fill:"#25468f",points:"1256.56 525.04 1224.61 525.04 1215.75 492.63 1247.7 492.63 1256.56 525.04"}),jsx("polygon",{fill:"#a1b3ff",points:"1042.07 557.45 1010.12 557.45 1001.26 525.04 1033.21 525.04 1042.07 557.45"}),jsx("polygon",{fill:"#899bfa",points:"1073.72 557.45 1041.77 557.45 1032.91 525.04 1064.86 525.04 1073.72 557.45"}),jsx("polygon",{fill:"#5158bf",points:"1105.67 557.45 1073.72 557.45 1064.86 525.04 1096.81 525.04 1105.67 557.45"}),jsx("polygon",{fill:"#25468f",points:"1137.62 557.45 1105.67 557.45 1096.81 525.04 1128.76 525.04 1137.62 557.45"})]}),jsx("path",{fill:"#ff8111",d:"M1258.13,429.21h-167.36c-2.3,0-4.7-1.91-5.34-4.24h0c-.64-2.33,.72-4.24,3.02-4.24h167.36c2.3,0,4.7,1.91,5.34,4.24h0c.64,2.33-.72,4.24-3.02,4.24Z"}),jsx("path",{fill:"#6b98f6",d:"M1263.98,450.63h-167.36c-2.3,0-4.7-1.91-5.34-4.24h0c-.64-2.33,.72-4.24,3.02-4.24h167.36c2.3,0,4.7,1.91,5.34,4.24h0c.64,2.33-.72,4.24-3.02,4.24Z"}),jsx("path",{fill:"#5158bf",d:"M1269.84,472.05h-167.36c-2.3,0-4.7-1.91-5.34-4.24h0c-.64-2.33,.72-4.24,3.02-4.24h167.36c2.3,0,4.7,1.91,5.34,4.24h0c.64,2.33-.72,4.24-3.02,4.24Z"}),jsxs("g",{children:[jsx("path",{fill:"#5158bf",d:"M1062.31,418.73h5.04c2.65,0,4.59,1.44,5.2,3.65,.51,1.88-.29,3.01-1.75,3.47l4.24,4.34h-2.34l-3.9-4h-2.45l1.09,4h-1.99l-3.14-11.47Zm6.45,5.68c1.42,0,2.12-.75,1.79-1.95-.34-1.23-1.39-1.9-2.86-1.9h-2.89l1.05,3.85h2.91Z"}),jsx("path",{fill:"#5158bf",d:"M1068.12,446.11c-.88-3.21,.8-5.93,4.21-5.93,1.97,0,3.33,.56,4.77,1.56l-.84,1.52c-1.08-.75-2.06-1.23-3.5-1.23-2.08,0-3.16,1.85-2.55,4.08,.64,2.36,2.65,4.1,4.96,4.1,1.07,0,1.94-.34,2.49-.87l-.59-2.15h-2.89l-.48-1.75h4.81l1.32,4.82c-.85,.97-2.23,1.79-4.23,1.79-3.54,0-6.56-2.56-7.48-5.93Z"}),jsx("path",{fill:"#5158bf",d:"M1074.44,463.09h5.07c1.29,0,2.41,.36,3.23,1.02,.64,.51,1.07,1.13,1.29,1.93,.38,1.38-.2,2.11-.92,2.56,1.45,.46,2.58,1.23,3.01,2.82,.56,2.05-.8,3.15-3.32,3.15h-5.23l-3.14-11.47Zm5.99,4.83c1.28,0,1.99-.51,1.7-1.59-.25-.9-1.11-1.46-2.38-1.46h-2.86l.83,3.05h2.71Zm1.91,4.85c1.36,0,2.03-.54,1.74-1.61-.26-.97-1.18-1.54-2.75-1.54h-3.15l.86,3.15h3.29Z"})]})]})]}),jsxs("g",{children:[jsxs("g",{children:[jsx("path",{fill:"#ffae73",d:"M640.44,422.49c-.89,1.03-1,2.18-.56,3.41,0,0,0,.01,0,.02,.81,2.27,3.49,4.81,6.6,7.35,.4,.33,.75,.62,1.06,.9,.08,.07,.16,.14,.24,.22,.06,.06,.12,.11,.18,.17,2.9,2.71,1.81,3.34,7.03,8.85,5.95,6.28,10.04,6.39,11.21,5.82,.99-.49-1.02-3.82-3.23-7.56-.11-.18-.21-.36-.32-.55-.3-.5-.59-1-.88-1.5-2.6-4.5-1.93-6.62-1.32-13.32,.5-5.45,8.35-30.42,8.35-30.42l-11.4-1.99s-3.43,19.89-7.21,22.95c-2.02,1.63-4.29,1.65-6.23,2.86-.14,.08-.27,.17-.4,.26-1.1,.74-2.23,1.51-3.12,2.54Z"}),jsx("path",{fill:"#1e3865",d:"M640.44,422.49c-.89,1.03-1,2.18-.56,3.41,0,0,0,.01,0,.02,.99,2.27,3.61,4.8,6.62,7.33,.39,.33,.74,.64,1.05,.92,.08,.07,.16,.14,.24,.22,.06,.06,.12,.11,.18,.17,2.9,2.71,1.81,3.34,7.03,8.85,5.95,6.28,10.04,6.39,11.21,5.82,.99-.49-1.02-3.82-3.23-7.56-1.16-.43-6.54-2.65-10.6-7.92-3.45-4.47-5.79-10.16-8.14-13.65-.26-.05-.41-.08-.67-.13-1.1,.74-2.23,1.51-3.12,2.54Z"}),jsx("path",{fill:"#ffae73",d:"M732.33,415.27c.7,3.57,5.72,2.97,11.32,1.58,5.6-1.39,4.27,.26,12.24-.63,7.97-.9,10.39-3.91,10.63-5.11,.22-1.07-3.72-1.44-7.95-1.94-.53-.06-1.07-.13-1.6-.19-4.77-.61-8.26-3.73-12.6-6.29-4.1-2.43-10.23-12.33-10.23-12.33l-10.93,.88s5.74,8.84,7.96,12.68c1.31,2.26,1.24,5.25,1.07,7.56-.08,1.25-.17,2.54,.08,3.79Z"}),jsx("path",{fill:"#1e3865",d:"M743.65,416.85c5.6-1.39,4.27,.26,12.24-.63,7.97-.9,10.39-3.91,10.63-5.11,.22-1.07-3.72-1.44-7.95-1.94l-.04,.08s-4.78,3.44-11.42,3.6c-5.41,.13-11.14-1.44-14.87-1.38-.08,1.25-.17,2.54,.08,3.79,.7,3.57,5.72,2.97,11.32,1.58Z"}),jsx("path",{fill:"#f28018",d:"M690.43,344.35l-10.22,27.9-13.34,36.43s-3.62,.35-7.09-.66c-3.19-.94-6.86-3.39-6.86-3.39,0,0,3.71-39.12,10.62-61.57,1.77-5.76,3.76-10.43,5.95-13.05,10.72-12.85,20.95,14.33,20.95,14.33Z"}),jsx("path",{fill:"#ff912b",d:"M680.04,300.04c-5.82-1.9-21-.03-37.47,2.99-4.55,.84-9.14-1.27-11.53-5.28h0l-41.44-3.28s-13.68,30.76-6.19,50.36c1.1,2.88,3.52,4.68,7.24,4.74h0s25.04,.04,33.05,.04c20.61,0,43.62-14.37,46.59-14.97,4.87-.99,6.82,8.89,11.69,19.27,4.87,10.38,45.79,45.96,45.79,45.96,0,0,6.29,.06,8.89-.92,2.79-1.06,3.82-2.44,3.82-2.44,0,0-45.34-91.51-60.45-96.45Z"}),jsx("path",{fill:"#10294c",d:"M626.64,174.3c-3.08-1.86-6.08-2.14-7.92-2.09-1.28,.04-2.56-.05-3.82-.23-15.82-2.35-25.34,20.95-25.9,27.99-1.02,12.93-7.77,14.9-17.26,23-19.03,16.23-13.45,35.1-3.04,42.11,6.24,4.21,17.25,0,17.25,0,.16,.11,30.09-16.98,44.85-25.22,22.12-3.19,4.73-60.19-4.16-65.55Z"}),jsx("path",{fill:"#ffae73",d:"M618.43,232.84c.06,.04-7.26,2.58-12.16,.38-4.61-2.07-8.1-9.76-8.03-9.76,2.1-.1,4.4-1.96,6.17-14.16l.89,.32,15.01,5.48s-1.09,4.89-1.79,9.54c-.59,3.91-.91,7.65-.09,8.2Z"}),jsx("path",{fill:"#f9924f",d:"M620.31,215.1s-.6,2.64-1.47,7.56c-8.62-1.57-12.32-8.31-13.54-13.04l15.01,5.48Z"}),jsx("path",{fill:"#ffae73",d:"M622.54,219.95s-20.53-2.8-18.62-15.74c1.91-12.95,.55-22.02,13.74-20.79,13.19,1.24,15,6.56,15.4,11.04,.4,4.48-5.13,25.88-10.52,25.49Z"}),jsx("path",{fill:"#10294c",d:"M632.32,187.37s-13.15,11.49-22.09,12.42c-8.94,.93-12.33-1.98-12.33-1.98,0,0,5.27-4.44,8.44-11.6,.93-2.11,2.91-3.56,5.18-3.76,6.38-.56,18.49-.81,20.79,4.93Z"}),jsx("path",{fill:"#10294c",d:"M624.1,186.34s4.4,4.31,5.78,7.51c1.34,3.09,1.74,10.47,.67,13.4,0,0,6.85-13.51,2.97-20.08-4.11-6.96-9.43-.84-9.43-.84Z"}),jsx("path",{fill:"#899bfa",d:"M635.72,263.52c-.62,42.17-.17,33.35-4.72,37.36-1.1,.96-4.18,1.54-8.23,1.81-12.75,.86-35.15-1.27-36-3.66-2.94-8.27-.86-10.84-3.32-23.49-.26-1.35-.57-2.8-.94-4.39-2.05-8.69-4.04-11.65,3.22-25.62,6.58-12.65,13.42-22.92,14.03-22.55,17.36,10.45,18.76,1.67,18.76,1.67,0,0,17.51,18.31,17.2,38.88Z"}),jsx("path",{fill:"#ff912b",d:"M680.21,372.25l-13.34,36.43s-3.62,.35-7.09-.66c-3.19-.94-6.86-3.39-6.86-3.39,0,0,3.71-39.12,10.62-61.57l16.67,29.18Z"}),jsx("path",{fill:"#899bfa",d:"M618.52,224.64s17.86,3.07,19.96,10.87c2.1,7.8,9,55.16,9,55.16,0,0-5.04,4.99-9.23,.73-4.19-4.26-13.2-44.31-13.2-44.31l-6.53-22.46Z"}),jsx("path",{fill:"#6f7deb",d:"M622.77,302.69c-12.75,.86-35.15-1.27-36-3.66-2.94-8.27-.86-10.84-3.32-23.49l6.15-17.56s-1.02,19.55,4.67,24.7c5.68,5.14,23.28,9.93,26.04,14.23,1.33,2.06,2.21,4.13,2.47,5.79Z"}),jsx("path",{fill:"#ffae73",d:"M608.17,294.46s12.57-2.84,14.6-1.71c2.03,1.13,6.99,5.25,7.61,6.69,.62,1.43-4.52-1.09-6.19-1.54-1.08-.29-3.93,.71-5.34,1.19-5.93,2.01-9.57,.97-9.57,.97l-1.11-5.6Z"}),jsx("path",{fill:"#899bfa",d:"M599.74,222.97s-16.88,1.05-22.73,9.32c-8.23,11.64-24.55,61.25-15.2,67.87,10.53,7.45,47.95,1.95,47.95,1.95,0,0,1.24-5.9-.49-8.76-1.73-2.86-29.88-7.47-31.18-8.79-1.3-1.32,16.24-25.7,16.24-29.65s5.41-31.95,5.41-31.95Z"}),jsx("path",{fill:"#ffae73",d:"M623.38,296.31s2.63,3.45,3.5,3.86c.86,.41,1.42,.31,1.42,.31l-1.78-3.24-3.14-.93Z"}),jsx("path",{fill:"#ffae73",d:"M622.77,292.76l7.66,3.77s-.33,.54-1.27,.5c-.94-.04-3.32-.93-3.32-.93l-3.07-3.34Z"})]}),jsxs("g",{children:[jsx("polygon",{fill:"#10294c",points:"688.18 301.63 608.17 301.63 608.17 303.42 687.47 303.42 688.18 301.63"}),jsx("polygon",{fill:"#10294c",points:"626.88 303.42 687.47 303.42 705.7 257.44 645.2 257.44 626.88 303.42"}),jsx("path",{fill:"#e8f2fa",d:"M672.18,280.43c.46-1.62-.46-2.93-2.06-2.93s-3.26,1.31-3.71,2.93,.46,2.93,2.06,2.93,3.26-1.31,3.71-2.93Z"})]})]}),jsx("polygon",{fill:"#fff",points:"666.18 584.13 672.4 589.62 666.99 595.92 660.77 590.43 666.18 584.13"}),jsxs("g",{children:[jsx("path",{fill:"#f28018",d:"M586.7,695.57c-1.24-4.18-1.86-4.55-1.86-4.55,0,0-38.53,4.87-45.07,4.44-3.88-.25-50.15-15.91-50.15-15.91l-28.09,27.33s69.67,11.64,79.49,10.88c16.23-1.26,41-15.79,41-15.79,0,0,5.65-3.12,4.67-6.4Z"}),jsx("path",{fill:"#104c82",d:"M481.4,1007.55s.54,13.24,3.05,16.46l34.88,.2c-.24-1.37-.39-4.52-5.21-5.38-6.09-1.08-13.25-5.39-16.94-13.56-3.88-8.6-15.77,2.27-15.77,2.27Z"}),jsx("path",{fill:"#104c82",d:"M412.95,1005.64s-2.43,17.59,.87,17.9c.44,.04,14.05,.26,19.95,.36,6.93,.12,18.33-.13,18.33-.13,1.43,.06,2.37-1.51,1.64-2.77-.8-1.37-2.33-2.84-5.24-3.41-6.07-1.19-16.2-5.71-19.74-13.95-3.73-8.66-15.8,1.99-15.8,1.99Z"}),jsx("path",{fill:"#6f7deb",d:"M499.53,825.34s-9.7,34.42-37.49,94.2c-27.79,59.78-29,88.58-29,88.58,0,0-4.21,1.51-9.79,.91-6.04-.65-10.3-3.39-10.3-3.39,0,0,1.8-71.15,14.93-101.31,13.13-30.17,15.8-112.71,15.8-112.71l55.84,33.73Z"}),jsx("path",{fill:"#899bfa",d:"M515.1,795.72s.77,53.3-8.32,118.75c-9.09,65.44-4.84,95.88-4.84,95.88,0,0-2.41,1.78-9.82,1.75-8.68-.03-13.12-3.67-13.12-3.67,0,0-13.01-65.47-9.28-98.23,3.73-32.76-17.82-112.4-17.82-112.4l63.2-2.08Z"}),jsx("path",{fill:"#ffae73",d:"M493.98,662.86c-.09,4.18-.64,8.74-2.29,10.97l-9.25,4.93-10.26-7.71s3.76-8.46,2.84-20.82c-.09-.74-.46-5.48-.46-5.58l5.13,2.6,13.93,7.06s0,.28,.09,.65c.09,1.4,.28,4.46,.28,7.9Z"}),jsx("path",{fill:"#ff912b",d:"M442.72,802.31c3.36,15.58,75.23,8.74,74.29-.77-.04-.32-.22-4.72-.48-10.65-.54-12.83-1.38-32.89-1.48-34.45,0-.03,0-.05,0-.08-1.29-13.24-2.54-26.19-2.62-34.65-.07-7.34-1.07-14.84-2.39-21.65-1.22-6.29-2.72-11.99-4.03-16.44-.92-3.13-2.63-5.89-4.9-8.05-1.62-1.54-3.51-2.78-5.6-3.62-.57-.24-1.15-.44-1.74-.62-8.46-2.49-16.99-5.66-20.16-4.72-8.59,2.56-18.15,18-22.67,37.55-8.46,36.6-10.41,88-8.21,98.15Z"}),jsx("path",{fill:"#ffa05e",d:"M493.98,662.86c-5.22-2.14-15.21-6.97-17.96-12.45-1.19-2.42,.64-3.16,3.66-3.16l13.93,7.06s0,.28,.09,.65c.09,1.4,.28,4.46,.28,7.9Z"}),jsx("path",{fill:"#ffae73",d:"M500.32,653.44s-25.01,7.91-29.63-7.96c-4.62-15.87-10.96-25.54,4.82-31.27,15.77-5.72,20.65-.6,23.46,4.32,2.81,4.92,7.74,32.44,1.35,34.91Z"}),jsx("path",{fill:"#0b3563",d:"M497.99,617s-1.59,18.47-5.36,17.67c-3.77-.8-7.18-1.4-6.63,4.17,.55,5.57,.73,12.26-10.88,13.25-11.61,.99-23.25-29.64-20.06-35.39,9.2-16.59,56.22-19.93,42.93,.3Z"}),jsx("path",{fill:"#f28018",d:"M516.52,790.89c-.54-12.83-1.38-32.89-1.48-34.45,0-.03,0-.05,0-.08l-42.46-25.75s-1.64,60.11,43.95,60.29Z"}),jsxs("g",{children:[jsxs("g",{children:[jsx("path",{fill:"#0b3563",d:"M663,586.79l7.65,6.75s-13.11,14.24-11.89,29.23l-19.58,16.77-16.21-14.32,13.56-22.81s14.53-.53,26.48-15.63Z"}),jsx("path",{fill:"#fff",d:"M643.1,611.15c1.58-1.84,4.33-2.03,6.15-.43,1.81,1.6,2.01,4.39,.43,6.23-1.58,1.84-4.33,2.03-6.15,.43-1.81-1.6-2.01-4.39-.43-6.23Z"}),jsx("polygon",{fill:"#fff",points:"644.37 617.69 643.11 616.58 666.23 589.63 667.49 590.74 644.37 617.69"})]}),jsx("polygon",{fill:"#6d76ff",points:"635.64 643.68 619.42 629.36 622.96 625.23 639.18 639.54 635.64 643.68"}),jsx("path",{fill:"#0b3563",d:"M458.23,834.69l-.79-.69c-4.26-3.76-4.71-10.32-1-14.64l162.97-190,16.22,14.32-162.97,190c-3.71,4.32-10.17,4.78-14.43,1.02Z"})]}),jsx("path",{fill:"#ffae73",d:"M549.94,736.45s3.13-2.82,3.87-4.77c.25-.68,2.39-3.74,6.03-3.47,3.33,.25,9.24-6.94,9.24-6.94,.86,1.9,3.83,9.03-.42,12.65-3.47,2.95-11.81,8.05-16.87,11.41-5.44,3.61-1.85-8.88-1.85-8.88Z"}),jsx("path",{fill:"#ff912b",d:"M550.35,735.4s-42.11,7.26-45.84,5.42c-5.96-2.94,2.31-46.28,2.31-46.28,0,0,.36-9.82-10.96-12.14-9.83-2.01-19.31,5.46-19.31,5.46,0,0-8.63,7.83-7.52,16.51,2.44,19.25,6.24,58.39,18.93,64.39,16.37,7.74,63.73-21.46,63.73-21.46,0,0,1.58-1.96,1.35-5.6-.2-3.21-2.7-6.3-2.7-6.3Z"}),jsx("path",{fill:"#ffae73",d:"M588.46,698.68s10.63-3.93,9.69-9.44c-.94-5.51-4.25-4.82-6.25-2.92-2,1.9-.89,11.66-3.44,12.36Z"}),jsx("path",{fill:"#ffae73",d:"M553.07,733.63s1.45-4.32,3-6.17c1.55-1.85,2.2-4.99,2.91-3.95,.7,1.05-.56,4.8,0,6.23,.56,1.43-5.9,3.89-5.9,3.89Z"})]}),jsx("rect",{fill:"#a9c2ff",height:"67.09",width:"190.42",y:"956.62",x:"1304.39"}),jsx("rect",{fill:"#1e3865",ry:"2.37",rx:"2.37",height:"4.74",width:"1620",y:"1023.26"})]})})})]}),e1=V2;});var s1={};me(s1,{default:()=>q2});var H2,_2,q2,r1=P(()=>{l();$e();H();t1();_();(({Title:H2}=Typography)),_2=s=>{let{children:t}=s,[o,r]=useSearchParams(),n=z(c=>c.token),a=z(c=>c.setToken),[i,p]=useState(!1),m=Z();return To(o.has("ticket")?{url:"/api/usystem/user/login",params:{ticket:o.get("ticket")}}:null,c=>m.request(c),{suspense:!0,onSuccess:c=>{a(c.token);}}),useEffect(()=>{o.has("not_registered")&&(p(!0),o.delete("not_registered"),r(o));},[o,r]),n?jsx(Navigate,{replace:!0,to:"/"}):jsxs(Row,{children:[jsx(Col,{span:10,offset:3,children:jsx("div",{className:"h-screen flex justify-end items-center",children:jsx(e1,{})})}),jsx(Col,{span:5,offset:3,children:jsx("div",{className:"h-screen relative",children:jsxs(Card,{hoverable:!0,className:"absolute left-0 right-0 top-1/2 -translate-y-1/2",children:[i&&jsx("div",{className:"absolute -top-12 left-0 right-0",children:jsx(Alert,{banner:!0,closable:!0,message:"\u60A8\u8FD8\u672A\u5728\u5E73\u53F0\u6CE8\u518C\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458",type:"error",onClose:()=>{p(!1);}})}),jsxs("div",{className:"text-center mb-6",children:[jsx(H2,{level:5,children:"\u767B\u5F55\u65B9\u5F0F"}),jsx("div",{className:"min-h-10",children:t})]}),jsx(Divider,{plain:!0,children:"\u7B2C\u4E09\u65B9\u767B\u5F55\u65B9\u5F0F"}),jsx("div",{className:"w-full flex justify-center",children:jsx(Space,{size:"small",children:jsx(Button,{type:"link",size:"small",shape:"round",icon:jsx(AliyunOutlined,{}),href:`${Yt}/login?service=${encodeURIComponent(window.location.origin)}/login`,target:"_self",children:"IDass \u767B\u5F55"})})})]})})})]})},q2=_2;});var i1={};me(i1,{default:()=>Y2});var j2,Y2,n1=P(()=>{l();j2=()=>{let s=useNavigate();return jsx("div",{className:"h-screen flex justify-center items-center",children:jsx(Result,{status:"404",title:"404",subTitle:"\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728",extra:jsx(Button,{type:"primary",onClick:()=>{s("/");},children:"\u8FD4\u56DE\u9875\u9762"})})})},Y2=j2;});function p1(){return Ie({url:"/api/usystem/user/allPermssions"})}function m1(){return Ie({url:"/api/usystem/user/allPermissionsV2"})}function Ye(){let{accessible:s}=J("200005");return Ie(s?{url:"/api/usystem/role/all"}:null)}function c1(s){let t=S(o=>o.isPermissionV2);return Ie({url:t?"/api/usystem/role/infoV2":"/api/usystem/role/info",params:{name:s}})}function f1(){let s=Z(),t=S(o=>o.isPermissionV2);return ae(t?"/api/usystem/role/createV2":"/api/usystem/role/create",(o,{arg:r})=>s.post(o,r))}function d1(){let s=Z(),t=S(o=>o.isPermissionV2);return ae(t?"/api/usystem/role/updateV2":"/api/usystem/role/update",(o,{arg:r})=>s.post(o,r))}function u1(){let s=Z();return ae("/api/usystem/role/delete",(t,{arg:o})=>s.post(t,o))}function g1(){let s=Z();return ae("/api/usystem/user/create",(t,{arg:o})=>s.post(t,o))}function h1(){let s=Z();return ae("/api/usystem/user/update",(t,{arg:o})=>s.post(t,o))}function y1(){let s=Z();return ae("/api/usystem/user/delete",(t,{arg:o})=>s.post(t,o))}var Se=P(()=>{l();_();O();});var as,ge,st=P(()=>{l();as=s=>{let{permissions:t,readonly:o,expand:r,value:n,onChange:a}=s,[i,p]=useState([]),[m,c]=useState({}),[y,d]=useState(n!=null?n:[]),g=useCallback(h=>{p(h);},[]),u=(h,R)=>{let k=[];return h?k=[...new Set(y.concat(R))]:(k=y.slice(),R.forEach(D=>{let T=k.findIndex(U=>U===D);T>-1&&k.splice(T,1);})),k},x=(h,R,k)=>{let D=u(h.target.checked,k);d(D),a==null||a(D);};return useEffect(()=>{d(n!=null?n:[]);},[n]),useEffect(()=>{r&&p((t!=null?t:[]).map(({category:h})=>h));},[r,t]),useEffect(()=>{let h=(t!=null?t:[]).reduce((R,k)=>(R[k.category]=k.permissions.every(D=>y.includes(D.value)),R),{});c(h);},[y,t]),jsx(Collapse,{style:{width:"100%"},collapsible:"header",activeKey:i,items:(t!=null?t:[]).map(h=>({key:h.category,label:h.category,extra:!o&&jsx(Checkbox,{checked:m[h.category],onChange:R=>{x(R,h.category,h.permissions.map(k=>k.value));},children:"\u5168\u9009"}),children:jsx(Checkbox.Group,{style:{width:"100%"},value:y,children:jsx(Row,{gutter:[10,10],style:{width:"100%"},children:h.permissions.map(R=>jsx(Col,{span:6,children:jsx(Checkbox,{disabled:o,value:R.value,onChange:k=>{x(k,h.category,[R.value]);},children:R.label})},R.value))})})})),onChange:g})},ge=as;});var ms,cs,w1,P1=P(()=>{l();Se();st();(({Text:ms}=Typography)),cs=s=>{let{expand:t=!0,value:o,readonly:r,onChange:n}=s,{data:a,isLoading:i,error:p}=p1();return p?jsx("div",{className:"flex justify-center",children:jsx(ms,{type:"danger",children:"\u6743\u9650\u83B7\u53D6\u5931\u8D25"})}):jsx(Skeleton,{active:!0,loading:i,children:jsx(ge,{value:o,permissions:a,readonly:r,expand:t,onChange:m=>{n==null||n(m);}})})},w1=cs;});var rt,bs,ws,T1,v1=P(()=>{l();Se();st();(({Text:rt}=Typography)),{Option:bs}=Select,ws=s=>{var g;let{expand:t=!0,value:o,readonly:r,onChange:n}=s,{data:a,isLoading:i,error:p}=m1(),[m,c]=useState([]);if(useEffect(()=>{let u=[];Object.keys(o!=null?o:{}).forEach(x=>{var h;x!=="global"&&u.push({gameId:x,permissions:(h=o==null?void 0:o[x])!=null?h:[]});}),c(u);},[o]),p)return jsx("div",{className:"flex justify-center",children:jsx(rt,{type:"danger",children:"\u6743\u9650\u83B7\u53D6\u5931\u8D25"})});let y=()=>{c(u=>[...u,{gameId:"",permissions:[]}]);},d=u=>{c(x=>x.filter((h,R)=>R!==u));};return jsxs("div",{className:"flex flex-col w-full",children:[jsx("div",{className:"mb-12",children:jsx(Divider,{dashed:!0,children:"\u5E73\u53F0\u57FA\u7840\u6743\u9650"})}),jsx(Skeleton,{active:!0,loading:i,children:jsx(ge,{value:o==null?void 0:o.global,readonly:r,permissions:(g=a==null?void 0:a.permission)==null?void 0:g.slice(0,2),expand:t,onChange:u=>{n==null||n(v(C({},o),{global:u}));}})}),jsx("div",{className:"my-12",children:jsx(Divider,{dashed:!0,children:"\u6E38\u620F\u6743\u9650"})}),m.map((u,x)=>{var h,R,k,D;return jsx(Card,{title:jsxs(Space,{children:[jsx(rt,{children:"\u6E38\u620F"}),r?jsx(rt,{children:(R=(h=a==null?void 0:a.game)==null?void 0:h.find(T=>T.id===u.gameId))==null?void 0:R.name}):jsx(Select,{disabled:r,value:m[x].gameId||void 0,style:{width:"160px"},placeholder:"\u8BF7\u9009\u62E9\u6E38\u620F",onChange:T=>{c(U=>{let W=U.slice();return W[x].gameId=T,W});},children:(k=a==null?void 0:a.game)==null?void 0:k.map(T=>jsx(bs,{value:T.id,disabled:m.some(({gameId:U})=>U===T.id),children:T.name},T.id))})]}),className:"mb-6",extra:!r&&jsx(Button,{type:"link",onClick:()=>{d(x);},children:"\u79FB\u9664"}),children:m[x].gameId?jsx(Skeleton,{active:!0,loading:i,children:jsx(ge,{value:o==null?void 0:o[m[x].gameId],readonly:r,expand:t,permissions:(D=a==null?void 0:a.permission)==null?void 0:D.slice(2),onChange:T=>{n==null||n(v(C({},o),{[m[x].gameId]:T}));}})}):jsx(Empty,{description:"\u8BF7\u5148\u9009\u62E9\u6E38\u620F"})},x)}),!r&&jsx(Button,{block:!0,type:"dashed",onClick:y,children:"\u6DFB\u52A0\u6E38\u620F\u6743\u9650"})]})},T1=ws;});var Ps,pe,S1=P(()=>{l();O();P1();v1();Ps=s=>{let{value:t}=s;return S(r=>r.isPermissionV2)?jsx(T1,v(C({},s),{value:t})):jsx(w1,v(C({},s),{value:t}))},pe=Ps;});var F1=P(()=>{l();});var Le=P(()=>{l();S1();Se();F1();});var Z1={};me(Z1,{default:()=>Ls,swrKey:()=>ye});function Is(){let{message:s}=App.useApp(),t=g1(),{data:o,isLoading:r}=Ye(),n=K(i=>i.refresh);return ee({title:"\u521B\u5EFA\u7528\u6237",labelCol:{flex:"80px"},content:jsxs(Fragment,{children:[jsx(Form.Item,{noStyle:!0,shouldUpdate:(i,p)=>i.type!==p.type,children:({getFieldValue:i})=>jsx(Form.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0}],children:jsx(Input,{disabled:i("id")})})}),jsx(Form.Item,{label:"\u89D2\u8272",name:"roles",children:jsx(Select,{allowClear:!0,mode:"multiple",loading:r,children:(o!=null?o:[]).map(i=>jsx(V1,{value:i.name,children:i.name},i.id))})})]}),onConfirm(i){return M(this,null,function*(){yield t.trigger(i,{onSuccess(){s.success("\u7528\u6237\u521B\u5EFA\u6210\u529F"),n(ye,{page:1});}});})}})}function Ss(){let{message:s}=App.useApp(),t=h1(),{data:o,isLoading:r}=Ye(),n=K(i=>i.refresh);return ee({title:"\u66F4\u65B0\u7528\u6237",labelCol:{flex:"80px"},content:jsxs(Fragment,{children:[jsx(Form.Item,{hidden:!0,name:"id",children:jsx(Input,{})}),jsx(Form.Item,{noStyle:!0,shouldUpdate:(i,p)=>i.type!==p.type,children:({getFieldValue:i})=>jsx(Form.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0}],children:jsx(Input,{disabled:i("id")})})}),jsx(Form.Item,{label:"\u89D2\u8272",name:"roles",children:jsx(Select,{allowClear:!0,mode:"multiple",loading:r,children:(o!=null?o:[]).map(i=>jsx(V1,{value:i.name,children:i.name},i.id))})})]}),onConfirm(i){return M(this,null,function*(){yield t.trigger(i,{onSuccess(){s.success("\u7528\u6237\u66F4\u65B0\u6210\u529F"),n(ye,{page:1});}});})}})}var V1,ye,Fs,Ls,D1=P(()=>{l();O();Te();Le();H();(({Option:V1}=Select)),ye={url:"/api/usystem/user/list"};Fs=()=>{let{modal:s,message:t}=App.useApp(),o=y1(),r=K(c=>c.refresh),{showModal:n,Modal:a}=Is(),{showModal:i,Modal:p}=Ss(),m=useMemo(()=>[{title:"\u540D\u79F0",dataIndex:"name",key:"name"},{title:"ID",dataIndex:"id",key:"id"},{title:"\u89D2\u8272",dataIndex:"roles",key:"roles",width:"40%",render(c){return jsx(Row,{gutter:[4,4],children:(c||[]).map(y=>jsx(Col,{children:y==="root"?jsx(Tag,{color:"#f50",children:y}):jsx(Tag,{color:"#ff5a00",children:jsx(Link,{to:`/permission/role/${y}`,children:y})})},y))})}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"Ctime",key:"ctime"},{title:"\u64CD\u4F5C",width:150,align:"center",render:c=>jsxs(Space,{children:[jsx(q,{size:"small",type:"link",code:"100003",onClick:()=>{i({initialValues:{id:c.id,name:c.name,roles:c.roles}});},children:"\u66F4\u65B0"}),jsx(q,{danger:!0,size:"small",code:"100004",type:"link",onClick:()=>{s.confirm({title:"\u5220\u9664\u7528\u6237",content:jsxs(fe,{texts:[c.name],children:["\u786E\u5B9A\u8981\u5220\u9664\u7528\u6237\xA0",c.name,"\xA0\u5417\uFF1F"]}),onOk(){return M(this,null,function*(){yield o.trigger({id:c.id,name:c.name},{onSuccess(){return M(this,null,function*(){yield t.success("\u7528\u6237\u5220\u9664\u6210\u529F"),r(ye,{page:1});})}});})}});},children:"\u5220\u9664"})]})}],[r,o,t,s,i]);return jsxs(Fragment,{children:[jsx(Card,{title:"\u7528\u6237",extra:jsx(q,{type:"primary",icon:jsx(UserAddOutlined,{}),code:"100002",onClick:()=>{n();},children:"\u521B\u5EFA\u7528\u6237"}),children:jsx(de,{code:"100001",swrKey:ye,rowKey:"id",columns:m})}),a,p]})},Ls=Fs;});var N1={};me(N1,{default:()=>Ks,swrKey:()=>Pe});var Pe,As,Us,Es,Ks,A1=P(()=>{l();O();Te();Le();_();H();Pe={url:"/api/usystem/role/list"},As=()=>{let{message:s}=App.useApp(),t=K(n=>n.refresh),o=f1(),r=useCallback(n=>M(void 0,null,function*(){yield o.trigger({name:`role_${n.name}`,permissions:n.permissions},{onSuccess(){return M(this,null,function*(){yield s.success("\u89D2\u8272\u521B\u5EFA\u6210\u529F"),t(Pe,{page:1});})}});}),[o,t,s]);return ee({title:"\u521B\u5EFA\u89D2\u8272",width:"50vw",layout:"vertical",content:jsxs(Fragment,{children:[jsx(Form.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0}],children:jsx(Input,{addonBefore:"role_"})}),jsx(Form.Item,{label:"\u6743\u9650",name:"permissions",children:jsx(pe,{})})]}),onConfirm:r})},Us=()=>{let{message:s}=App.useApp(),t=K(n=>n.refresh),o=d1(),r=useCallback(n=>M(void 0,null,function*(){yield o.trigger({id:n.id,name:`role_${n.name}`,permissions:n.permissions},{onSuccess(){return M(this,null,function*(){yield s.success("\u89D2\u8272\u66F4\u65B0\u6210\u529F"),t(Pe,{page:1});})}});}),[o,t,s]);return ee({title:"\u66F4\u65B0\u89D2\u8272",width:"50vw",layout:"vertical",content:jsxs(Fragment,{children:[jsx(Form.Item,{hidden:!0,label:"ID",name:"id",children:jsx(Input,{})}),jsx(Form.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0}],children:jsx(Input,{disabled:!0,addonBefore:"role_"})}),jsx(Form.Item,{label:"\u6743\u9650",name:"permissions",children:jsx(pe,{})})]}),onConfirm:r})},Es=()=>{let{accessible:s}=J("200005"),{modal:t,message:o}=App.useApp(),r=Z(),n=S(g=>g.isPermissionV2),a=u1(),i=K(g=>g.refresh),{showModal:p,Modal:m}=As(),{showModal:c,Modal:y}=Us(),d=useMemo(()=>[{title:"\u540D\u79F0",key:"name",render(g){return s?jsx(Link,{to:`${g.name}`,children:g.name}):jsx(Fragment,{children:g.name})}},{title:"ID",dataIndex:"id",key:"id"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"ctime",key:"ctime"},{title:"\u64CD\u4F5C",width:150,align:"center",render:g=>jsxs(Space,{size:"small",children:[jsx(q,{code:"200003",size:"small",type:"link",onClick:()=>M(void 0,null,function*(){let u=yield r.get(n?"/api/usystem/role/infoV2":"/api/usystem/role/info",{params:{name:g.name}});c({initialValues:{id:u==null?void 0:u.id,permissions:u==null?void 0:u.permissions,name:u==null?void 0:u.name.replace(/^role_/,"")}});}),children:"\u66F4\u65B0"}),jsx(q,{danger:!0,code:"200004",size:"small",type:"link",onClick:()=>{t.confirm({title:"\u5220\u9664\u89D2\u8272",content:jsxs(fe,{texts:[g.name],children:["\u786E\u5B9A\u8981\u5220\u9664\u89D2\u8272\xA0",g.name,"\xA0\u5417\uFF1F"]}),onOk(){return M(this,null,function*(){yield a.trigger({id:g.id,name:g.name},{onSuccess(){return M(this,null,function*(){yield o.success("\u89D2\u8272\u5220\u9664\u6210\u529F"),i(Pe,{page:1});})}});})}});},children:"\u5220\u9664"})]})}],[i,s,r,t,o,a,c]);return jsxs(Fragment,{children:[jsx(Card,{title:"\u89D2\u8272",extra:jsx(q,{type:"primary",code:"200002",icon:jsx(UsergroupAddOutlined,{}),onClick:()=>{p();},children:"\u521B\u5EFA\u89D2\u8272"}),children:jsx(de,{rowKey:"name",columns:d,code:"200001",swrKey:Pe,transformResponse:g=>{let{List:u,Total:x}=g;return {List:u,Total:x}}})}),m,y]})},Ks=Es;});var E1={};me(E1,{default:()=>_s});var Hs,_s,K1=P(()=>{l();Le();Hs=()=>{let s=useParams(),{data:t,isLoading:o}=c1(s.name);return jsxs(Fragment,{children:[jsx(Breadcrumb,{style:{marginBottom:24},items:[{key:"1",title:jsx(Link,{to:"/permission/role",children:"\u89D2\u8272"})},{key:"2",title:s.name}]}),jsx(Card,{title:"\u6743\u9650\u8BE6\u60C5",children:jsx(Skeleton,{loading:o,children:jsxs(Descriptions,{column:3,layout:"vertical",children:[jsx(Descriptions.Item,{label:"\u540D\u79F0",children:t==null?void 0:t.name}),jsx(Descriptions.Item,{label:"ID",children:t==null?void 0:t.id}),jsx(Descriptions.Item,{label:"\u521B\u5EFA\u65F6\u95F4",children:t==null?void 0:t.ctime}),jsx(Descriptions.Item,{label:"\u6743\u9650",span:3,children:jsx(pe,{readonly:!0,value:t==null?void 0:t.permissions})})]})})})]})},_s=Hs;});l();O();_();H();l();l();var es=lazy(()=>Promise.resolve().then(()=>(r1(),s1))),ts=lazy(()=>Promise.resolve().then(()=>(n1(),i1))),os={children:[{path:"login",element:jsx(es,{})},{path:"*",element:jsx(ts,{})}]},ss=os;l();O();_();var js=lazy(()=>Promise.resolve().then(()=>(D1(),Z1))),Ys=lazy(()=>Promise.resolve().then(()=>(A1(),N1))),er=lazy(()=>Promise.resolve().then(()=>(K1(),E1))),tr=()=>{let s=Z(),t=S(o=>o);return jsx(We,v(C({},t),{isGlobalNS:!0,children:jsx(SWRConfig,{value:{fetcher:s.request,shouldRetryOnError:!1},children:jsx(Xe,{children:jsx(Outlet,{})})})}))},or={path:"permission",element:jsx(tr,{}),children:[{index:!0,element:jsx(Navigate,{relative:"path",to:"user"})},{path:"user",element:jsx(js,{})},{path:"role",element:jsx(Ys,{})},{path:"role/:name",element:jsx(er,{})}]},sr=or;$e();
21
+
22
+ export { _1 as DynamicTags, De as FilterForm, Ne as FormModal, Qe as GameSelect, fe as Highlight, Q as HttpClientError, Xe as Layout, qe as NavMenu, q as PermissionButton, de as QueryList, We as ReactToolkitsProvider, Yt as SSO_URL, He as UserWidget, ss as baseRoutes, sr as permissionRoutes, ee as useFormModal, Z as useHttpClient, J as usePermission, Ee as usePermissions, K as useQueryListStore, S as useReactToolkitsContext, z as useTokenStore };
3578
23
  //# sourceMappingURL=out.js.map
3579
24
  //# sourceMappingURL=index.esm.js.map