@fses/workbench-app 0.1.3 → 0.2.1
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.
- package/WORKBENCH-CLOSURE.json +80 -0
- package/dist/{Workspace-CvJghuPy.js → Workspace-DMye5DU8.js} +11458 -11325
- package/dist/canvas/api/index.d.ts +7 -0
- package/dist/canvas/api/index.js +4 -0
- package/dist/canvasFacade-B0oy__da.js +1932 -0
- package/dist/cardFactory-CoDF-zsR.js +1392 -0
- package/dist/extensions/index.d.ts +2 -0
- package/dist/extensions/index.js +8 -0
- package/dist/fses-workbench-app.js +89 -86
- package/dist/index-DbH6tMQy.js +837 -0
- package/dist/internal/personal-workbench/lib/workbenchChatReplyBridge.d.ts +24 -0
- package/dist/runtime/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useWorkbenchRuntime-Pekhufen.js → useWorkbenchRuntime-XpOzwm56.js} +8752 -11980
- package/dist/workbenchCustomComponentRegistry-6GHzavdM.js +267 -0
- package/node_modules/@byteluck/agentic-protocol/LICENSE +9 -0
- package/node_modules/@byteluck/agentic-protocol/README.md +74 -0
- package/node_modules/@byteluck/agentic-protocol/dist/index.d.ts +1623 -0
- package/node_modules/@byteluck/agentic-protocol/dist/index.mjs +3380 -0
- package/node_modules/@byteluck/agentic-protocol/package.json +37 -0
- package/node_modules/@byteluck/workbench-skill-contracts/LICENSE +9 -0
- package/node_modules/@byteluck/workbench-skill-contracts/dist/index.d.ts +234 -0
- package/node_modules/@byteluck/workbench-skill-contracts/dist/index.mjs +394 -0
- package/node_modules/@byteluck/workbench-skill-contracts/package.json +37 -0
- package/node_modules/@fses/ai-chat/LICENSE +9 -0
- package/node_modules/@fses/ai-chat/README.md +320 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/data.d.ts +12 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/from-markdown.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/from-tool.d.ts +8 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/options.d.ts +4 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/trace.d.ts +19 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/types.d.ts +133 -0
- package/node_modules/@fses/ai-chat/dist/components/CardRecommendationDeferredDraft.vue.d.ts +13 -0
- package/node_modules/@fses/ai-chat/dist/components/CardRecommendationDraft.vue.d.ts +18 -0
- package/node_modules/@fses/ai-chat/dist/components/ChartCardRenderer.vue.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/components/ChatMessageItem.vue.d.ts +76 -0
- package/node_modules/@fses/ai-chat/dist/components/ChatMessageList.vue.d.ts +79 -0
- package/node_modules/@fses/ai-chat/dist/components/ChatSender.vue.d.ts +98 -0
- package/node_modules/@fses/ai-chat/dist/components/CollapsedToolActivity.vue.d.ts +9 -0
- package/node_modules/@fses/ai-chat/dist/components/ContextUsageRing.vue.d.ts +12 -0
- package/node_modules/@fses/ai-chat/dist/components/EChartsView.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +306 -0
- package/node_modules/@fses/ai-chat/dist/components/PlanDraftCard.vue.d.ts +19 -0
- package/node_modules/@fses/ai-chat/dist/components/ShellExecPanel.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/components/TaskTodoPlanBar.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/components/ThinkingShimmer.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/composables/context-usage.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/composables/types.d.ts +465 -0
- package/node_modules/@fses/ai-chat/dist/composables/useChat.d.ts +2 -0
- package/node_modules/@fses/ai-chat/dist/composables/useSystemEChartsIcon.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +11408 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +25 -0
- package/node_modules/@fses/ai-chat/dist/index.d.ts +17 -0
- package/node_modules/@fses/ai-chat/dist/plugin.d.ts +8 -0
- package/node_modules/@fses/ai-chat/dist/style.css +1 -0
- package/node_modules/@fses/ai-chat/dist/utils/assistant-markdown.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/utils/attachment-upload.d.ts +22 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-config-summary.d.ts +86 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-field-label.d.ts +24 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-source.d.ts +18 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-title-source.d.ts +12 -0
- package/node_modules/@fses/ai-chat/dist/utils/chart-card-visibility.d.ts +24 -0
- package/node_modules/@fses/ai-chat/dist/utils/derived-process-labels.d.ts +13 -0
- package/node_modules/@fses/ai-chat/dist/utils/echarts-recommendation-icon.d.ts +36 -0
- package/node_modules/@fses/ai-chat/dist/utils/group-messages.d.ts +30 -0
- package/node_modules/@fses/ai-chat/dist/utils/status-activity.d.ts +48 -0
- package/node_modules/@fses/ai-chat/dist/utils/system-echarts-template-icons.generated.d.ts +305 -0
- package/node_modules/@fses/ai-chat/dist/utils/system-echarts-template.d.ts +20 -0
- package/node_modules/@fses/ai-chat/dist/utils/task-todo-plan.d.ts +40 -0
- package/node_modules/@fses/ai-chat/dist/utils/workbench-echarts-theme.d.ts +35 -0
- package/node_modules/@fses/ai-chat/package.json +81 -0
- package/node_modules/@fses/workbench-card/LICENSE +9 -0
- package/node_modules/@fses/workbench-card/README.md +81 -0
- package/node_modules/@fses/workbench-card/dist/chart/index.d.ts +8 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-echarts-protocol.js +2230 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +33731 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +21238 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -0
- package/node_modules/@fses/workbench-card/dist/index.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/registry/cardRegistry.d.ts +50 -0
- package/node_modules/@fses/workbench-card/dist/registry/compositeCardPatterns.d.ts +39 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateCategories.d.ts +20 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateRegistry.d.ts +1158 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateRegistry.generated.d.ts +1141 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateTypes.d.ts +76 -0
- package/node_modules/@fses/workbench-card/dist/registry/index.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/WorkbenchBlockRenderer.vue.d.ts +55 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/ChartRegistry.vue.d.ts +22 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/EChartsProtocolRenderer.vue.d.ts +34 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/chartRendererRegistry.d.ts +219 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/chartResponsiveLayout.d.ts +47 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/dynamicEchartOption.d.ts +30 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/adapter.d.ts +73 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/composite.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/configOnly.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/geo.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/graphic.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/layout.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/network.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/scene3D.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/series.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/table.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/timeline.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/transition.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/tree.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/tuple.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/index.d.ts +9 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/merger.d.ts +16 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/types.d.ts +447 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsRuntimeInteractions.d.ts +30 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsTitle.d.ts +13 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsTooltipPortal.d.ts +12 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/types.d.ts +47 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/useEchart.d.ts +29 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/workbenchChartTheme.d.ts +36 -0
- package/node_modules/@fses/workbench-card/dist/renderers/custom-canvas/canvasLayoutBindings.d.ts +86 -0
- package/node_modules/@fses/workbench-card/dist/renderers/hostBridge.d.ts +61 -0
- package/node_modules/@fses/workbench-card/dist/renderers/index.d.ts +17 -0
- package/node_modules/@fses/workbench-card/dist/renderers/native/nativeBindings.d.ts +145 -0
- package/node_modules/@fses/workbench-card/dist/renderers/nested/nestedBlockBindings.d.ts +107 -0
- package/node_modules/@fses/workbench-card/dist/renderers/quickLinkDisplay.d.ts +24 -0
- package/node_modules/@fses/workbench-card/dist/renderers/reference-composite/referenceCompositeBindings.d.ts +171 -0
- package/node_modules/@fses/workbench-card/dist/renderers/reference-composite/referenceRiskAndStrategyBindings.d.ts +91 -0
- package/node_modules/@fses/workbench-card/dist/renderers/resizableTable.d.ts +51 -0
- package/node_modules/@fses/workbench-card/dist/renderers/style.css +1 -0
- package/node_modules/@fses/workbench-card/dist/renderers/tableDisplay.d.ts +25 -0
- package/node_modules/@fses/workbench-card/dist/renderers/useWorkbenchBlockRendererBindings.d.ts +580 -0
- package/node_modules/@fses/workbench-card/dist/shell/workbenchVisualShell.d.ts +48 -0
- package/node_modules/@fses/workbench-card/dist/style.css +1 -0
- package/node_modules/@fses/workbench-card/dist/types/block.d.ts +2002 -0
- package/node_modules/@fses/workbench-card/dist/types/canvas.d.ts +25 -0
- package/node_modules/@fses/workbench-card/dist/types/echartsProtocol.d.ts +445 -0
- package/node_modules/@fses/workbench-card/dist/types/index.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/types/registry.d.ts +7 -0
- package/node_modules/@fses/workbench-card/dist/types/runtime.d.ts +34 -0
- package/node_modules/@fses/workbench-card/package.json +82 -0
- package/node_modules/@fses/workbench-card/src/chart/index.ts +8 -0
- package/node_modules/@fses/workbench-card/src/index.ts +13 -0
- package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +476 -0
- package/node_modules/@fses/workbench-card/src/registry/compositeCardPatterns.ts +206 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateCategories.ts +74 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +19951 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.ts +32 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateTypes.ts +83 -0
- package/node_modules/@fses/workbench-card/src/registry/index.ts +10 -0
- package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +2728 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/ChartRegistry.vue +221 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/EChartsProtocolRenderer.vue +304 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/chartRendererRegistry.ts +311 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/chartResponsiveLayout.ts +172 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/dynamicEchartOption.ts +127 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/adapter.ts +1349 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/composite.converter.ts +71 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/configOnly.converter.ts +45 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/geo.converter.ts +97 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/graphic.converter.ts +59 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/layout.converter.ts +53 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/network.converter.ts +82 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/scene3D.converter.ts +73 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/series.converter.ts +795 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/table.converter.ts +195 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/timeline.converter.ts +62 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/transition.converter.ts +58 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/tree.converter.ts +75 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/tuple.converter.ts +112 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/index.ts +10 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/merger.ts +109 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/types.ts +515 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echartsRuntimeInteractions.ts +450 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echartsTitle.ts +94 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echartsTooltipPortal.ts +140 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/types.ts +53 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/useEchart.ts +1820 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/workbenchChartTheme.ts +240 -0
- package/node_modules/@fses/workbench-card/src/renderers/custom-canvas/canvasLayoutBindings.ts +660 -0
- package/node_modules/@fses/workbench-card/src/renderers/hostBridge.ts +74 -0
- package/node_modules/@fses/workbench-card/src/renderers/index.ts +25 -0
- package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +1081 -0
- package/node_modules/@fses/workbench-card/src/renderers/nested/nestedBlockBindings.ts +1349 -0
- package/node_modules/@fses/workbench-card/src/renderers/quickLinkDisplay.ts +53 -0
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +3205 -0
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceRiskAndStrategyBindings.ts +1004 -0
- package/node_modules/@fses/workbench-card/src/renderers/resizableTable.ts +136 -0
- package/node_modules/@fses/workbench-card/src/renderers/tableDisplay.ts +140 -0
- package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts +3192 -0
- package/node_modules/@fses/workbench-card/src/shell/workbenchVisualShell.ts +228 -0
- package/node_modules/@fses/workbench-card/src/styles/workbench-card.css +343 -0
- package/node_modules/@fses/workbench-card/src/types/block.ts +2487 -0
- package/node_modules/@fses/workbench-card/src/types/canvas.ts +30 -0
- package/node_modules/@fses/workbench-card/src/types/echartsProtocol.ts +513 -0
- package/node_modules/@fses/workbench-card/src/types/index.ts +10 -0
- package/node_modules/@fses/workbench-card/src/types/registry.ts +17 -0
- package/node_modules/@fses/workbench-card/src/types/runtime.ts +31 -0
- package/node_modules/dompurify/LICENSE +568 -0
- package/node_modules/dompurify/README.md +523 -0
- package/node_modules/dompurify/dist/purify.cjs.d.ts +451 -0
- package/node_modules/dompurify/dist/purify.cjs.js +1472 -0
- package/node_modules/dompurify/dist/purify.cjs.js.map +1 -0
- package/node_modules/dompurify/dist/purify.es.d.mts +448 -0
- package/node_modules/dompurify/dist/purify.es.mjs +1470 -0
- package/node_modules/dompurify/dist/purify.es.mjs.map +1 -0
- package/node_modules/dompurify/dist/purify.js +1478 -0
- package/node_modules/dompurify/dist/purify.js.map +1 -0
- package/node_modules/dompurify/dist/purify.min.js +3 -0
- package/node_modules/dompurify/dist/purify.min.js.map +1 -0
- package/node_modules/dompurify/package.json +168 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +208 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/package.json +118 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/zod/v4-mini/index.js +1 -0
- package/package.json +100 -101
- package/dist/index-DXag5A9X.js +0 -1096
|
@@ -0,0 +1,2230 @@
|
|
|
1
|
+
var Ae = Object.defineProperty;
|
|
2
|
+
var be = (t, e, r) => e in t ? Ae(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var tt = (t, e, r) => be(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
/**
|
|
5
|
+
* @vue/shared v3.5.32
|
|
6
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
7
|
+
* @license MIT
|
|
8
|
+
**/
|
|
9
|
+
const it = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
10
|
+
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
11
|
+
const Ut = () => {
|
|
12
|
+
}, xe = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
|
|
13
|
+
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), _e = (t) => t.startsWith("onUpdate:"), Q = Object.assign, A = Array.isArray, w = (t) => typeof t == "function", N = (t) => typeof t == "string", Oe = (t) => typeof t == "symbol", C = (t) => t !== null && typeof t == "object";
|
|
14
|
+
let Nt;
|
|
15
|
+
const v = () => Nt || (Nt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
16
|
+
function gt(t) {
|
|
17
|
+
if (A(t)) {
|
|
18
|
+
const e = {};
|
|
19
|
+
for (let r = 0; r < t.length; r++) {
|
|
20
|
+
const n = t[r], s = N(n) ? Ee(n) : gt(n);
|
|
21
|
+
if (s)
|
|
22
|
+
for (const o in s)
|
|
23
|
+
e[o] = s[o];
|
|
24
|
+
}
|
|
25
|
+
return e;
|
|
26
|
+
} else if (N(t) || C(t))
|
|
27
|
+
return t;
|
|
28
|
+
}
|
|
29
|
+
const Se = /;(?![^(]*\))/g, Ne = /:([^]+)/, Ce = /\/\*[^]*?\*\//g;
|
|
30
|
+
function Ee(t) {
|
|
31
|
+
const e = {};
|
|
32
|
+
return t.replace(Ce, "").split(Se).forEach((r) => {
|
|
33
|
+
if (r) {
|
|
34
|
+
const n = r.split(Ne);
|
|
35
|
+
n.length > 1 && (e[n[0].trim()] = n[1].trim());
|
|
36
|
+
}
|
|
37
|
+
}), e;
|
|
38
|
+
}
|
|
39
|
+
function At(t) {
|
|
40
|
+
let e = "";
|
|
41
|
+
if (N(t))
|
|
42
|
+
e = t;
|
|
43
|
+
else if (A(t))
|
|
44
|
+
for (let r = 0; r < t.length; r++) {
|
|
45
|
+
const n = At(t[r]);
|
|
46
|
+
n && (e += n + " ");
|
|
47
|
+
}
|
|
48
|
+
else if (C(t))
|
|
49
|
+
for (const r in t)
|
|
50
|
+
t[r] && (e += r + " ");
|
|
51
|
+
return e.trim();
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @vue/reactivity v3.5.32
|
|
55
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
56
|
+
* @license MIT
|
|
57
|
+
**/
|
|
58
|
+
process.env.NODE_ENV;
|
|
59
|
+
process.env.NODE_ENV;
|
|
60
|
+
process.env.NODE_ENV;
|
|
61
|
+
new Set(
|
|
62
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(Oe)
|
|
63
|
+
);
|
|
64
|
+
// @__NO_SIDE_EFFECTS__
|
|
65
|
+
function Gt(t) {
|
|
66
|
+
return /* @__PURE__ */ at(t) ? /* @__PURE__ */ Gt(t.__v_raw) : !!(t && t.__v_isReactive);
|
|
67
|
+
}
|
|
68
|
+
// @__NO_SIDE_EFFECTS__
|
|
69
|
+
function at(t) {
|
|
70
|
+
return !!(t && t.__v_isReadonly);
|
|
71
|
+
}
|
|
72
|
+
// @__NO_SIDE_EFFECTS__
|
|
73
|
+
function et(t) {
|
|
74
|
+
return !!(t && t.__v_isShallow);
|
|
75
|
+
}
|
|
76
|
+
// @__NO_SIDE_EFFECTS__
|
|
77
|
+
function B(t) {
|
|
78
|
+
return t ? !!t.__v_raw : !1;
|
|
79
|
+
}
|
|
80
|
+
// @__NO_SIDE_EFFECTS__
|
|
81
|
+
function S(t) {
|
|
82
|
+
const e = t && t.__v_raw;
|
|
83
|
+
return e ? /* @__PURE__ */ S(e) : t;
|
|
84
|
+
}
|
|
85
|
+
// @__NO_SIDE_EFFECTS__
|
|
86
|
+
function bt(t) {
|
|
87
|
+
return t ? t.__v_isRef === !0 : !1;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @vue/runtime-core v3.5.32
|
|
91
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
92
|
+
* @license MIT
|
|
93
|
+
**/
|
|
94
|
+
const E = [];
|
|
95
|
+
function we(t) {
|
|
96
|
+
E.push(t);
|
|
97
|
+
}
|
|
98
|
+
function De() {
|
|
99
|
+
E.pop();
|
|
100
|
+
}
|
|
101
|
+
let rt = !1;
|
|
102
|
+
function T(t, ...e) {
|
|
103
|
+
if (rt) return;
|
|
104
|
+
rt = !0;
|
|
105
|
+
const r = E.length ? E[E.length - 1].component : null, n = r && r.appContext.config.warnHandler, s = Pe();
|
|
106
|
+
if (n)
|
|
107
|
+
xt(
|
|
108
|
+
n,
|
|
109
|
+
r,
|
|
110
|
+
11,
|
|
111
|
+
[
|
|
112
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
113
|
+
t + e.map((o) => {
|
|
114
|
+
var i, c;
|
|
115
|
+
return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
|
|
116
|
+
}).join(""),
|
|
117
|
+
r && r.proxy,
|
|
118
|
+
s.map(
|
|
119
|
+
({ vnode: o }) => `at <${ie(r, o.type)}>`
|
|
120
|
+
).join(`
|
|
121
|
+
`),
|
|
122
|
+
s
|
|
123
|
+
]
|
|
124
|
+
);
|
|
125
|
+
else {
|
|
126
|
+
const o = [`[Vue warn]: ${t}`, ...e];
|
|
127
|
+
s.length && o.push(`
|
|
128
|
+
`, ...Re(s)), console.warn(...o);
|
|
129
|
+
}
|
|
130
|
+
rt = !1;
|
|
131
|
+
}
|
|
132
|
+
function Pe() {
|
|
133
|
+
let t = E[E.length - 1];
|
|
134
|
+
if (!t)
|
|
135
|
+
return [];
|
|
136
|
+
const e = [];
|
|
137
|
+
for (; t; ) {
|
|
138
|
+
const r = e[0];
|
|
139
|
+
r && r.vnode === t ? r.recurseCount++ : e.push({
|
|
140
|
+
vnode: t,
|
|
141
|
+
recurseCount: 0
|
|
142
|
+
});
|
|
143
|
+
const n = t.component && t.component.parent;
|
|
144
|
+
t = n && n.vnode;
|
|
145
|
+
}
|
|
146
|
+
return e;
|
|
147
|
+
}
|
|
148
|
+
function Re(t) {
|
|
149
|
+
const e = [];
|
|
150
|
+
return t.forEach((r, n) => {
|
|
151
|
+
e.push(...n === 0 ? [] : [`
|
|
152
|
+
`], ...Ie(r));
|
|
153
|
+
}), e;
|
|
154
|
+
}
|
|
155
|
+
function Ie({ vnode: t, recurseCount: e }) {
|
|
156
|
+
const r = e > 0 ? `... (${e} recursive calls)` : "", n = t.component ? t.component.parent == null : !1, s = ` at <${ie(
|
|
157
|
+
t.component,
|
|
158
|
+
t.type,
|
|
159
|
+
n
|
|
160
|
+
)}`, o = ">" + r;
|
|
161
|
+
return t.props ? [s, ...Te(t.props), o] : [s + o];
|
|
162
|
+
}
|
|
163
|
+
function Te(t) {
|
|
164
|
+
const e = [], r = Object.keys(t);
|
|
165
|
+
return r.slice(0, 3).forEach((n) => {
|
|
166
|
+
e.push(...Zt(n, t[n]));
|
|
167
|
+
}), r.length > 3 && e.push(" ..."), e;
|
|
168
|
+
}
|
|
169
|
+
function Zt(t, e, r) {
|
|
170
|
+
return N(e) ? (e = JSON.stringify(e), r ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? r ? e : [`${t}=${e}`] : /* @__PURE__ */ bt(e) ? (e = Zt(t, /* @__PURE__ */ S(e.value), !0), r ? e : [`${t}=Ref<`, e, ">"]) : w(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ S(e), r ? e : [`${t}=`, e]);
|
|
171
|
+
}
|
|
172
|
+
const Xt = {
|
|
173
|
+
sp: "serverPrefetch hook",
|
|
174
|
+
bc: "beforeCreate hook",
|
|
175
|
+
c: "created hook",
|
|
176
|
+
bm: "beforeMount hook",
|
|
177
|
+
m: "mounted hook",
|
|
178
|
+
bu: "beforeUpdate hook",
|
|
179
|
+
u: "updated",
|
|
180
|
+
bum: "beforeUnmount hook",
|
|
181
|
+
um: "unmounted hook",
|
|
182
|
+
a: "activated hook",
|
|
183
|
+
da: "deactivated hook",
|
|
184
|
+
ec: "errorCaptured hook",
|
|
185
|
+
rtc: "renderTracked hook",
|
|
186
|
+
rtg: "renderTriggered hook",
|
|
187
|
+
0: "setup function",
|
|
188
|
+
1: "render function",
|
|
189
|
+
2: "watcher getter",
|
|
190
|
+
3: "watcher callback",
|
|
191
|
+
4: "watcher cleanup function",
|
|
192
|
+
5: "native event handler",
|
|
193
|
+
6: "component event handler",
|
|
194
|
+
7: "vnode hook",
|
|
195
|
+
8: "directive hook",
|
|
196
|
+
9: "transition hook",
|
|
197
|
+
10: "app errorHandler",
|
|
198
|
+
11: "app warnHandler",
|
|
199
|
+
12: "ref function",
|
|
200
|
+
13: "async component loader",
|
|
201
|
+
14: "scheduler flush",
|
|
202
|
+
15: "component update",
|
|
203
|
+
16: "app unmount cleanup function"
|
|
204
|
+
};
|
|
205
|
+
function xt(t, e, r, n) {
|
|
206
|
+
try {
|
|
207
|
+
return n ? t(...n) : t();
|
|
208
|
+
} catch (s) {
|
|
209
|
+
Kt(s, e, r);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function Kt(t, e, r, n = !0) {
|
|
213
|
+
const s = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || it;
|
|
214
|
+
if (e) {
|
|
215
|
+
let c = e.parent;
|
|
216
|
+
const a = e.proxy, l = process.env.NODE_ENV !== "production" ? Xt[r] : `https://vuejs.org/error-reference/#runtime-${r}`;
|
|
217
|
+
for (; c; ) {
|
|
218
|
+
const p = c.ec;
|
|
219
|
+
if (p) {
|
|
220
|
+
for (let u = 0; u < p.length; u++)
|
|
221
|
+
if (p[u](t, a, l) === !1)
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
c = c.parent;
|
|
225
|
+
}
|
|
226
|
+
if (o) {
|
|
227
|
+
xt(o, null, 10, [
|
|
228
|
+
t,
|
|
229
|
+
a,
|
|
230
|
+
l
|
|
231
|
+
]);
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
Ve(t, r, s, n, i);
|
|
236
|
+
}
|
|
237
|
+
function Ve(t, e, r, n = !0, s = !1) {
|
|
238
|
+
if (process.env.NODE_ENV !== "production") {
|
|
239
|
+
const o = Xt[e];
|
|
240
|
+
if (r && we(r), T(`Unhandled error${o ? ` during execution of ${o}` : ""}`), r && De(), n)
|
|
241
|
+
throw t;
|
|
242
|
+
console.error(t);
|
|
243
|
+
} else {
|
|
244
|
+
if (s)
|
|
245
|
+
throw t;
|
|
246
|
+
console.error(t);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
const g = [];
|
|
250
|
+
let x = -1;
|
|
251
|
+
const R = [];
|
|
252
|
+
let O = null, D = 0;
|
|
253
|
+
const Me = /* @__PURE__ */ Promise.resolve();
|
|
254
|
+
let ct = null;
|
|
255
|
+
const Fe = 100;
|
|
256
|
+
function je(t) {
|
|
257
|
+
let e = x + 1, r = g.length;
|
|
258
|
+
for (; e < r; ) {
|
|
259
|
+
const n = e + r >>> 1, s = g[n], o = F(s);
|
|
260
|
+
o < t || o === t && s.flags & 2 ? e = n + 1 : r = n;
|
|
261
|
+
}
|
|
262
|
+
return e;
|
|
263
|
+
}
|
|
264
|
+
function ke(t) {
|
|
265
|
+
if (!(t.flags & 1)) {
|
|
266
|
+
const e = F(t), r = g[g.length - 1];
|
|
267
|
+
!r || // fast path when the job id is larger than the tail
|
|
268
|
+
!(t.flags & 2) && e >= F(r) ? g.push(t) : g.splice(je(e), 0, t), t.flags |= 1, qt();
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
function qt() {
|
|
272
|
+
ct || (ct = Me.then(Jt));
|
|
273
|
+
}
|
|
274
|
+
function ze(t) {
|
|
275
|
+
A(t) ? R.push(...t) : O && t.id === -1 ? O.splice(D + 1, 0, t) : t.flags & 1 || (R.push(t), t.flags |= 1), qt();
|
|
276
|
+
}
|
|
277
|
+
function Le(t) {
|
|
278
|
+
if (R.length) {
|
|
279
|
+
const e = [...new Set(R)].sort(
|
|
280
|
+
(r, n) => F(r) - F(n)
|
|
281
|
+
);
|
|
282
|
+
if (R.length = 0, O) {
|
|
283
|
+
O.push(...e);
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
for (O = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), D = 0; D < O.length; D++) {
|
|
287
|
+
const r = O[D];
|
|
288
|
+
process.env.NODE_ENV !== "production" && Yt(t, r) || (r.flags & 4 && (r.flags &= -2), r.flags & 8 || r(), r.flags &= -2);
|
|
289
|
+
}
|
|
290
|
+
O = null, D = 0;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
const F = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
|
|
294
|
+
function Jt(t) {
|
|
295
|
+
process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
|
|
296
|
+
const e = process.env.NODE_ENV !== "production" ? (r) => Yt(t, r) : Ut;
|
|
297
|
+
try {
|
|
298
|
+
for (x = 0; x < g.length; x++) {
|
|
299
|
+
const r = g[x];
|
|
300
|
+
if (r && !(r.flags & 8)) {
|
|
301
|
+
if (process.env.NODE_ENV !== "production" && e(r))
|
|
302
|
+
continue;
|
|
303
|
+
r.flags & 4 && (r.flags &= -2), xt(
|
|
304
|
+
r,
|
|
305
|
+
r.i,
|
|
306
|
+
r.i ? 15 : 14
|
|
307
|
+
), r.flags & 4 || (r.flags &= -2);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
} finally {
|
|
311
|
+
for (; x < g.length; x++) {
|
|
312
|
+
const r = g[x];
|
|
313
|
+
r && (r.flags &= -2);
|
|
314
|
+
}
|
|
315
|
+
x = -1, g.length = 0, Le(t), ct = null, (g.length || R.length) && Jt(t);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
function Yt(t, e) {
|
|
319
|
+
const r = t.get(e) || 0;
|
|
320
|
+
if (r > Fe) {
|
|
321
|
+
const n = e.i, s = n && oe(n.type);
|
|
322
|
+
return Kt(
|
|
323
|
+
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
324
|
+
null,
|
|
325
|
+
10
|
|
326
|
+
), !0;
|
|
327
|
+
}
|
|
328
|
+
return t.set(e, r + 1), !1;
|
|
329
|
+
}
|
|
330
|
+
const nt = /* @__PURE__ */ new Map();
|
|
331
|
+
process.env.NODE_ENV !== "production" && (v().__VUE_HMR_RUNTIME__ = {
|
|
332
|
+
createRecord: st($e),
|
|
333
|
+
rerender: st(He),
|
|
334
|
+
reload: st(We)
|
|
335
|
+
});
|
|
336
|
+
const U = /* @__PURE__ */ new Map();
|
|
337
|
+
function $e(t, e) {
|
|
338
|
+
return U.has(t) ? !1 : (U.set(t, {
|
|
339
|
+
initialDef: G(e),
|
|
340
|
+
instances: /* @__PURE__ */ new Set()
|
|
341
|
+
}), !0);
|
|
342
|
+
}
|
|
343
|
+
function G(t) {
|
|
344
|
+
return ae(t) ? t.__vccOpts : t;
|
|
345
|
+
}
|
|
346
|
+
function He(t, e) {
|
|
347
|
+
const r = U.get(t);
|
|
348
|
+
r && (r.initialDef.render = e, [...r.instances].forEach((n) => {
|
|
349
|
+
e && (n.render = e, G(n.type).render = e), n.renderCache = [], n.job.flags & 8 || n.update();
|
|
350
|
+
}));
|
|
351
|
+
}
|
|
352
|
+
function We(t, e) {
|
|
353
|
+
const r = U.get(t);
|
|
354
|
+
if (!r) return;
|
|
355
|
+
e = G(e), Ct(r.initialDef, e);
|
|
356
|
+
const n = [...r.instances];
|
|
357
|
+
for (let s = 0; s < n.length; s++) {
|
|
358
|
+
const o = n[s], i = G(o.type);
|
|
359
|
+
let c = nt.get(i);
|
|
360
|
+
c || (i !== r.initialDef && Ct(i, e), nt.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(e.styles), c.delete(o)) : o.parent ? ke(() => {
|
|
361
|
+
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
362
|
+
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
363
|
+
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
364
|
+
), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
|
|
365
|
+
}
|
|
366
|
+
ze(() => {
|
|
367
|
+
nt.clear();
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
function Ct(t, e) {
|
|
371
|
+
Q(t, e);
|
|
372
|
+
for (const r in t)
|
|
373
|
+
r !== "__file" && !(r in e) && delete t[r];
|
|
374
|
+
}
|
|
375
|
+
function st(t) {
|
|
376
|
+
return (e, r) => {
|
|
377
|
+
try {
|
|
378
|
+
return t(e, r);
|
|
379
|
+
} catch (n) {
|
|
380
|
+
console.error(n), console.warn(
|
|
381
|
+
"[HMR] Something went wrong during Vue component hot-reload. Full reload required."
|
|
382
|
+
);
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
let P, k = [];
|
|
387
|
+
function Qt(t, e) {
|
|
388
|
+
var r, n;
|
|
389
|
+
P = t, P ? (P.enabled = !0, k.forEach(({ event: s, args: o }) => P.emit(s, ...o)), k = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
|
|
390
|
+
window.HTMLElement && // also exclude jsdom
|
|
391
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
392
|
+
!((n = (r = window.navigator) == null ? void 0 : r.userAgent) != null && n.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
393
|
+
Qt(o, e);
|
|
394
|
+
}), setTimeout(() => {
|
|
395
|
+
P || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, k = []);
|
|
396
|
+
}, 3e3)) : k = [];
|
|
397
|
+
}
|
|
398
|
+
let Z = null, Be = null;
|
|
399
|
+
const Ue = (t) => t.__isTeleport;
|
|
400
|
+
function vt(t, e) {
|
|
401
|
+
t.shapeFlag & 6 && t.component ? (t.transition = e, vt(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
|
|
402
|
+
}
|
|
403
|
+
v().requestIdleCallback;
|
|
404
|
+
v().cancelIdleCallback;
|
|
405
|
+
const Ge = /* @__PURE__ */ Symbol.for("v-ndc"), Ze = {};
|
|
406
|
+
process.env.NODE_ENV !== "production" && (Ze.ownKeys = (t) => (T(
|
|
407
|
+
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
408
|
+
), Reflect.ownKeys(t)));
|
|
409
|
+
const Xe = {}, te = (t) => Object.getPrototypeOf(t) === Xe, Ke = (t) => t.__isSuspense, ee = /* @__PURE__ */ Symbol.for("v-fgt"), qe = /* @__PURE__ */ Symbol.for("v-txt"), Je = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
410
|
+
function Ye(t) {
|
|
411
|
+
return t ? t.__v_isVNode === !0 : !1;
|
|
412
|
+
}
|
|
413
|
+
const Qe = (...t) => ne(
|
|
414
|
+
...t
|
|
415
|
+
), re = ({ key: t }) => t ?? null, W = ({
|
|
416
|
+
ref: t,
|
|
417
|
+
ref_key: e,
|
|
418
|
+
ref_for: r
|
|
419
|
+
}) => (typeof t == "number" && (t = "" + t), t != null ? N(t) || /* @__PURE__ */ bt(t) || w(t) ? { i: Z, r: t, k: e, f: !!r } : t : null);
|
|
420
|
+
function ve(t, e = null, r = null, n = 0, s = null, o = t === ee ? 0 : 1, i = !1, c = !1) {
|
|
421
|
+
const a = {
|
|
422
|
+
__v_isVNode: !0,
|
|
423
|
+
__v_skip: !0,
|
|
424
|
+
type: t,
|
|
425
|
+
props: e,
|
|
426
|
+
key: e && re(e),
|
|
427
|
+
ref: e && W(e),
|
|
428
|
+
scopeId: Be,
|
|
429
|
+
slotScopeIds: null,
|
|
430
|
+
children: r,
|
|
431
|
+
component: null,
|
|
432
|
+
suspense: null,
|
|
433
|
+
ssContent: null,
|
|
434
|
+
ssFallback: null,
|
|
435
|
+
dirs: null,
|
|
436
|
+
transition: null,
|
|
437
|
+
el: null,
|
|
438
|
+
anchor: null,
|
|
439
|
+
target: null,
|
|
440
|
+
targetStart: null,
|
|
441
|
+
targetAnchor: null,
|
|
442
|
+
staticCount: 0,
|
|
443
|
+
shapeFlag: o,
|
|
444
|
+
patchFlag: n,
|
|
445
|
+
dynamicProps: s,
|
|
446
|
+
dynamicChildren: null,
|
|
447
|
+
appContext: null,
|
|
448
|
+
ctx: Z
|
|
449
|
+
};
|
|
450
|
+
return c ? (_t(a, r), o & 128 && t.normalize(a)) : r && (a.shapeFlag |= N(r) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && T("VNode created with invalid key (NaN). VNode type:", a.type), a;
|
|
451
|
+
}
|
|
452
|
+
const tr = process.env.NODE_ENV !== "production" ? Qe : ne;
|
|
453
|
+
function ne(t, e = null, r = null, n = 0, s = null, o = !1) {
|
|
454
|
+
if ((!t || t === Ge) && (process.env.NODE_ENV !== "production" && !t && T(`Invalid vnode type when creating vnode: ${t}.`), t = Je), Ye(t)) {
|
|
455
|
+
const c = X(
|
|
456
|
+
t,
|
|
457
|
+
e,
|
|
458
|
+
!0
|
|
459
|
+
/* mergeRef: true */
|
|
460
|
+
);
|
|
461
|
+
return r && _t(c, r), c.patchFlag = -2, c;
|
|
462
|
+
}
|
|
463
|
+
if (ae(t) && (t = t.__vccOpts), e) {
|
|
464
|
+
e = er(e);
|
|
465
|
+
let { class: c, style: a } = e;
|
|
466
|
+
c && !N(c) && (e.class = At(c)), C(a) && (/* @__PURE__ */ B(a) && !A(a) && (a = Q({}, a)), e.style = gt(a));
|
|
467
|
+
}
|
|
468
|
+
const i = N(t) ? 1 : Ke(t) ? 128 : Ue(t) ? 64 : C(t) ? 4 : w(t) ? 2 : 0;
|
|
469
|
+
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ B(t) && (t = /* @__PURE__ */ S(t), T(
|
|
470
|
+
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
471
|
+
`
|
|
472
|
+
Component that was made reactive: `,
|
|
473
|
+
t
|
|
474
|
+
)), ve(
|
|
475
|
+
t,
|
|
476
|
+
e,
|
|
477
|
+
r,
|
|
478
|
+
n,
|
|
479
|
+
s,
|
|
480
|
+
i,
|
|
481
|
+
o,
|
|
482
|
+
!0
|
|
483
|
+
);
|
|
484
|
+
}
|
|
485
|
+
function er(t) {
|
|
486
|
+
return t ? /* @__PURE__ */ B(t) || te(t) ? Q({}, t) : t : null;
|
|
487
|
+
}
|
|
488
|
+
function X(t, e, r = !1, n = !1) {
|
|
489
|
+
const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, l = e ? nr(s || {}, e) : s, p = {
|
|
490
|
+
__v_isVNode: !0,
|
|
491
|
+
__v_skip: !0,
|
|
492
|
+
type: t.type,
|
|
493
|
+
props: l,
|
|
494
|
+
key: l && re(l),
|
|
495
|
+
ref: e && e.ref ? (
|
|
496
|
+
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
497
|
+
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
498
|
+
// the refs so the single vnode can be set on multiple refs
|
|
499
|
+
r && o ? A(o) ? o.concat(W(e)) : [o, W(e)] : W(e)
|
|
500
|
+
) : o,
|
|
501
|
+
scopeId: t.scopeId,
|
|
502
|
+
slotScopeIds: t.slotScopeIds,
|
|
503
|
+
children: process.env.NODE_ENV !== "production" && i === -1 && A(c) ? c.map(se) : c,
|
|
504
|
+
target: t.target,
|
|
505
|
+
targetStart: t.targetStart,
|
|
506
|
+
targetAnchor: t.targetAnchor,
|
|
507
|
+
staticCount: t.staticCount,
|
|
508
|
+
shapeFlag: t.shapeFlag,
|
|
509
|
+
// if the vnode is cloned with extra props, we can no longer assume its
|
|
510
|
+
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
511
|
+
// note: preserve flag for fragments since they use the flag for children
|
|
512
|
+
// fast paths only.
|
|
513
|
+
patchFlag: e && t.type !== ee ? i === -1 ? 16 : i | 16 : i,
|
|
514
|
+
dynamicProps: t.dynamicProps,
|
|
515
|
+
dynamicChildren: t.dynamicChildren,
|
|
516
|
+
appContext: t.appContext,
|
|
517
|
+
dirs: t.dirs,
|
|
518
|
+
transition: a,
|
|
519
|
+
// These should technically only be non-null on mounted VNodes. However,
|
|
520
|
+
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
521
|
+
// them since them being non-null during a mount doesn't affect the logic as
|
|
522
|
+
// they will simply be overwritten.
|
|
523
|
+
component: t.component,
|
|
524
|
+
suspense: t.suspense,
|
|
525
|
+
ssContent: t.ssContent && X(t.ssContent),
|
|
526
|
+
ssFallback: t.ssFallback && X(t.ssFallback),
|
|
527
|
+
placeholder: t.placeholder,
|
|
528
|
+
el: t.el,
|
|
529
|
+
anchor: t.anchor,
|
|
530
|
+
ctx: t.ctx,
|
|
531
|
+
ce: t.ce
|
|
532
|
+
};
|
|
533
|
+
return a && n && vt(
|
|
534
|
+
p,
|
|
535
|
+
a.clone(p)
|
|
536
|
+
), p;
|
|
537
|
+
}
|
|
538
|
+
function se(t) {
|
|
539
|
+
const e = X(t);
|
|
540
|
+
return A(t.children) && (e.children = t.children.map(se)), e;
|
|
541
|
+
}
|
|
542
|
+
function rr(t = " ", e = 0) {
|
|
543
|
+
return tr(qe, null, t, e);
|
|
544
|
+
}
|
|
545
|
+
function _t(t, e) {
|
|
546
|
+
let r = 0;
|
|
547
|
+
const { shapeFlag: n } = t;
|
|
548
|
+
if (e == null)
|
|
549
|
+
e = null;
|
|
550
|
+
else if (A(e))
|
|
551
|
+
r = 16;
|
|
552
|
+
else if (typeof e == "object")
|
|
553
|
+
if (n & 65) {
|
|
554
|
+
const s = e.default;
|
|
555
|
+
s && (s._c && (s._d = !1), _t(t, s()), s._c && (s._d = !0));
|
|
556
|
+
return;
|
|
557
|
+
} else
|
|
558
|
+
r = 32, !e._ && !te(e) && (e._ctx = Z);
|
|
559
|
+
else w(e) ? (e = { default: e, _ctx: Z }, r = 32) : (e = String(e), n & 64 ? (r = 16, e = [rr(e)]) : r = 8);
|
|
560
|
+
t.children = e, t.shapeFlag |= r;
|
|
561
|
+
}
|
|
562
|
+
function nr(...t) {
|
|
563
|
+
const e = {};
|
|
564
|
+
for (let r = 0; r < t.length; r++) {
|
|
565
|
+
const n = t[r];
|
|
566
|
+
for (const s in n)
|
|
567
|
+
if (s === "class")
|
|
568
|
+
e.class !== n.class && (e.class = At([e.class, n.class]));
|
|
569
|
+
else if (s === "style")
|
|
570
|
+
e.style = gt([e.style, n.style]);
|
|
571
|
+
else if (xe(s)) {
|
|
572
|
+
const o = e[s], i = n[s];
|
|
573
|
+
i && o !== i && !(A(o) && o.includes(i)) ? e[s] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
574
|
+
// the model listener.
|
|
575
|
+
!_e(s) && (e[s] = i);
|
|
576
|
+
} else s !== "" && (e[s] = n[s]);
|
|
577
|
+
}
|
|
578
|
+
return e;
|
|
579
|
+
}
|
|
580
|
+
{
|
|
581
|
+
const t = v(), e = (r, n) => {
|
|
582
|
+
let s;
|
|
583
|
+
return (s = t[r]) || (s = t[r] = []), s.push(n), (o) => {
|
|
584
|
+
s.length > 1 ? s.forEach((i) => i(o)) : s[0](o);
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
e(
|
|
588
|
+
"__VUE_INSTANCE_SETTERS__",
|
|
589
|
+
(r) => r
|
|
590
|
+
), e(
|
|
591
|
+
"__VUE_SSR_SETTERS__",
|
|
592
|
+
(r) => r
|
|
593
|
+
);
|
|
594
|
+
}
|
|
595
|
+
process.env.NODE_ENV;
|
|
596
|
+
const sr = /(?:^|[-_])\w/g, or = (t) => t.replace(sr, (e) => e.toUpperCase()).replace(/[-_]/g, "");
|
|
597
|
+
function oe(t, e = !0) {
|
|
598
|
+
return w(t) ? t.displayName || t.name : t.name || e && t.__name;
|
|
599
|
+
}
|
|
600
|
+
function ie(t, e, r = !1) {
|
|
601
|
+
let n = oe(e);
|
|
602
|
+
if (!n && e.__file) {
|
|
603
|
+
const s = e.__file.match(/([^/\\]+)\.\w+$/);
|
|
604
|
+
s && (n = s[1]);
|
|
605
|
+
}
|
|
606
|
+
if (!n && t) {
|
|
607
|
+
const s = (o) => {
|
|
608
|
+
for (const i in o)
|
|
609
|
+
if (o[i] === e)
|
|
610
|
+
return i;
|
|
611
|
+
};
|
|
612
|
+
n = s(t.components) || t.parent && s(
|
|
613
|
+
t.parent.type.components
|
|
614
|
+
) || s(t.appContext.components);
|
|
615
|
+
}
|
|
616
|
+
return n ? or(n) : r ? "App" : "Anonymous";
|
|
617
|
+
}
|
|
618
|
+
function ae(t) {
|
|
619
|
+
return w(t) && "__vccOpts" in t;
|
|
620
|
+
}
|
|
621
|
+
function ir() {
|
|
622
|
+
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
623
|
+
return;
|
|
624
|
+
const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, r = { style: "color:#f5222d" }, n = { style: "color:#eb2f96" }, s = {
|
|
625
|
+
__vue_custom_formatter: !0,
|
|
626
|
+
header(u) {
|
|
627
|
+
if (!C(u))
|
|
628
|
+
return null;
|
|
629
|
+
if (u.__isVue)
|
|
630
|
+
return ["div", t, "VueInstance"];
|
|
631
|
+
if (/* @__PURE__ */ bt(u)) {
|
|
632
|
+
const d = u.value;
|
|
633
|
+
return [
|
|
634
|
+
"div",
|
|
635
|
+
{},
|
|
636
|
+
["span", t, p(u)],
|
|
637
|
+
"<",
|
|
638
|
+
c(d),
|
|
639
|
+
">"
|
|
640
|
+
];
|
|
641
|
+
} else {
|
|
642
|
+
if (/* @__PURE__ */ Gt(u))
|
|
643
|
+
return [
|
|
644
|
+
"div",
|
|
645
|
+
{},
|
|
646
|
+
["span", t, /* @__PURE__ */ et(u) ? "ShallowReactive" : "Reactive"],
|
|
647
|
+
"<",
|
|
648
|
+
c(u),
|
|
649
|
+
`>${/* @__PURE__ */ at(u) ? " (readonly)" : ""}`
|
|
650
|
+
];
|
|
651
|
+
if (/* @__PURE__ */ at(u))
|
|
652
|
+
return [
|
|
653
|
+
"div",
|
|
654
|
+
{},
|
|
655
|
+
["span", t, /* @__PURE__ */ et(u) ? "ShallowReadonly" : "Readonly"],
|
|
656
|
+
"<",
|
|
657
|
+
c(u),
|
|
658
|
+
">"
|
|
659
|
+
];
|
|
660
|
+
}
|
|
661
|
+
return null;
|
|
662
|
+
},
|
|
663
|
+
hasBody(u) {
|
|
664
|
+
return u && u.__isVue;
|
|
665
|
+
},
|
|
666
|
+
body(u) {
|
|
667
|
+
if (u && u.__isVue)
|
|
668
|
+
return [
|
|
669
|
+
"div",
|
|
670
|
+
{},
|
|
671
|
+
...o(u.$)
|
|
672
|
+
];
|
|
673
|
+
}
|
|
674
|
+
};
|
|
675
|
+
function o(u) {
|
|
676
|
+
const d = [];
|
|
677
|
+
u.type.props && u.props && d.push(i("props", /* @__PURE__ */ S(u.props))), u.setupState !== it && d.push(i("setup", u.setupState)), u.data !== it && d.push(i("data", /* @__PURE__ */ S(u.data)));
|
|
678
|
+
const y = a(u, "computed");
|
|
679
|
+
y && d.push(i("computed", y));
|
|
680
|
+
const h = a(u, "inject");
|
|
681
|
+
return h && d.push(i("injected", h)), d.push([
|
|
682
|
+
"div",
|
|
683
|
+
{},
|
|
684
|
+
[
|
|
685
|
+
"span",
|
|
686
|
+
{
|
|
687
|
+
style: n.style + ";opacity:0.66"
|
|
688
|
+
},
|
|
689
|
+
"$ (internal): "
|
|
690
|
+
],
|
|
691
|
+
["object", { object: u }]
|
|
692
|
+
]), d;
|
|
693
|
+
}
|
|
694
|
+
function i(u, d) {
|
|
695
|
+
return d = Q({}, d), Object.keys(d).length ? [
|
|
696
|
+
"div",
|
|
697
|
+
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
698
|
+
[
|
|
699
|
+
"div",
|
|
700
|
+
{
|
|
701
|
+
style: "color:#476582"
|
|
702
|
+
},
|
|
703
|
+
u
|
|
704
|
+
],
|
|
705
|
+
[
|
|
706
|
+
"div",
|
|
707
|
+
{
|
|
708
|
+
style: "padding-left:1.25em"
|
|
709
|
+
},
|
|
710
|
+
...Object.keys(d).map((y) => [
|
|
711
|
+
"div",
|
|
712
|
+
{},
|
|
713
|
+
["span", n, y + ": "],
|
|
714
|
+
c(d[y], !1)
|
|
715
|
+
])
|
|
716
|
+
]
|
|
717
|
+
] : ["span", {}];
|
|
718
|
+
}
|
|
719
|
+
function c(u, d = !0) {
|
|
720
|
+
return typeof u == "number" ? ["span", e, u] : typeof u == "string" ? ["span", r, JSON.stringify(u)] : typeof u == "boolean" ? ["span", n, u] : C(u) ? ["object", { object: d ? /* @__PURE__ */ S(u) : u }] : ["span", r, String(u)];
|
|
721
|
+
}
|
|
722
|
+
function a(u, d) {
|
|
723
|
+
const y = u.type;
|
|
724
|
+
if (w(y))
|
|
725
|
+
return;
|
|
726
|
+
const h = {};
|
|
727
|
+
for (const b in u.ctx)
|
|
728
|
+
l(y, b, d) && (h[b] = u.ctx[b]);
|
|
729
|
+
return h;
|
|
730
|
+
}
|
|
731
|
+
function l(u, d, y) {
|
|
732
|
+
const h = u[y];
|
|
733
|
+
if (A(h) && h.includes(d) || C(h) && d in h || u.extends && l(u.extends, d, y) || u.mixins && u.mixins.some((b) => l(b, d, y)))
|
|
734
|
+
return !0;
|
|
735
|
+
}
|
|
736
|
+
function p(u) {
|
|
737
|
+
return /* @__PURE__ */ et(u) ? "ShallowRef" : u.effect ? "ComputedRef" : "Ref";
|
|
738
|
+
}
|
|
739
|
+
window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
|
|
740
|
+
}
|
|
741
|
+
process.env.NODE_ENV;
|
|
742
|
+
process.env.NODE_ENV;
|
|
743
|
+
process.env.NODE_ENV;
|
|
744
|
+
/**
|
|
745
|
+
* vue v3.5.32
|
|
746
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
747
|
+
* @license MIT
|
|
748
|
+
**/
|
|
749
|
+
function ar() {
|
|
750
|
+
ir();
|
|
751
|
+
}
|
|
752
|
+
process.env.NODE_ENV !== "production" && ar();
|
|
753
|
+
const Et = "__workbenchMetricRowContext";
|
|
754
|
+
function m(t) {
|
|
755
|
+
return !!t && typeof t == "object" && !Array.isArray(t);
|
|
756
|
+
}
|
|
757
|
+
function z(t) {
|
|
758
|
+
return Array.isArray(t) ? t.map((e) => String(e ?? "")) : [];
|
|
759
|
+
}
|
|
760
|
+
function cr(t) {
|
|
761
|
+
if (typeof t == "number" && Number.isFinite(t)) return t;
|
|
762
|
+
if (typeof t == "string" && t.trim()) {
|
|
763
|
+
const e = Number(t);
|
|
764
|
+
return Number.isFinite(e) ? e : t;
|
|
765
|
+
}
|
|
766
|
+
if (m(t) && "value" in t) {
|
|
767
|
+
const e = t.value, r = typeof e == "string" && e.trim() ? Number(e) : e;
|
|
768
|
+
return {
|
|
769
|
+
...t,
|
|
770
|
+
value: typeof r == "number" && Number.isFinite(r) ? r : e
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
return t;
|
|
774
|
+
}
|
|
775
|
+
function wt(t) {
|
|
776
|
+
const e = t.categories;
|
|
777
|
+
if (Array.isArray(e)) return z(e);
|
|
778
|
+
if (m(e)) return z(e.xAxis);
|
|
779
|
+
const r = t.xAxis;
|
|
780
|
+
return Array.isArray(r) ? z(r) : m(r) ? z(r.data) : [];
|
|
781
|
+
}
|
|
782
|
+
function ur(t) {
|
|
783
|
+
const e = t.categories;
|
|
784
|
+
return !m(e) || !Array.isArray(e.indicators) ? [] : e.indicators.filter(m).map((r) => {
|
|
785
|
+
const n = typeof r.name == "string" && r.name.trim() ? r.name.trim() : "", s = typeof r.max == "number" && Number.isFinite(r.max) ? r.max : void 0;
|
|
786
|
+
return n ? { name: n, ...s === void 0 ? {} : { max: s } } : null;
|
|
787
|
+
}).filter((r) => !!r);
|
|
788
|
+
}
|
|
789
|
+
function Dt(t) {
|
|
790
|
+
const e = t.series;
|
|
791
|
+
return Array.isArray(e) ? e.filter(m).map((r, n) => {
|
|
792
|
+
const s = typeof r.id == "string" && r.id.trim() ? r.id.trim() : void 0, o = typeof r.name == "string" && r.name.trim() ? r.name.trim() : s || `series-${n + 1}`, i = typeof r.typeHint == "string" && r.typeHint.trim() ? r.typeHint.trim() : typeof r.type == "string" && r.type.trim() ? r.type.trim() : void 0, c = Array.isArray(r.data) ? r.data.map(cr) : [];
|
|
793
|
+
return { id: s, name: o, typeHint: i, data: c };
|
|
794
|
+
}) : [];
|
|
795
|
+
}
|
|
796
|
+
function lr(...t) {
|
|
797
|
+
for (const e of t) {
|
|
798
|
+
if (!e) continue;
|
|
799
|
+
const r = m(e.extension) ? e.extension : void 0, n = m(e.metric_context) ? e.metric_context : m(r == null ? void 0 : r.metric_context) ? r.metric_context : void 0, s = n == null ? void 0 : n.row_contexts;
|
|
800
|
+
if (Array.isArray(s)) return s.filter(m);
|
|
801
|
+
}
|
|
802
|
+
return [];
|
|
803
|
+
}
|
|
804
|
+
function fr(t, e) {
|
|
805
|
+
return e ? m(t) ? { ...t, [Et]: e } : { value: t, [Et]: e } : t;
|
|
806
|
+
}
|
|
807
|
+
function pr(t, e) {
|
|
808
|
+
return e.length === 0 ? t : t.map((r) => ({
|
|
809
|
+
...r,
|
|
810
|
+
data: r.data.map((n, s) => fr(n, e[s]))
|
|
811
|
+
}));
|
|
812
|
+
}
|
|
813
|
+
function dr(t) {
|
|
814
|
+
const e = m(t) ? t : {}, r = m(e.dataset) ? e.dataset : void 0, n = r && wt(r).length > 0 ? r : e, s = r && Dt(r).length > 0 ? r : e, o = lr(e, r);
|
|
815
|
+
return {
|
|
816
|
+
categories: wt(n),
|
|
817
|
+
indicators: ur(n),
|
|
818
|
+
series: pr(Dt(s), o)
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
function ce(t) {
|
|
822
|
+
return t.type === "pie";
|
|
823
|
+
}
|
|
824
|
+
function ue(t) {
|
|
825
|
+
return t.type === "radar";
|
|
826
|
+
}
|
|
827
|
+
function le(t) {
|
|
828
|
+
return t.type === "funnel";
|
|
829
|
+
}
|
|
830
|
+
function mr(t) {
|
|
831
|
+
const e = t.series;
|
|
832
|
+
return Array.isArray(e) && e.some((r) => m(r) && ce(r));
|
|
833
|
+
}
|
|
834
|
+
function yr(t) {
|
|
835
|
+
const e = t.series;
|
|
836
|
+
return Array.isArray(e) && e.some((r) => m(r) && ue(r));
|
|
837
|
+
}
|
|
838
|
+
function hr(t) {
|
|
839
|
+
const e = t.series;
|
|
840
|
+
return Array.isArray(e) && e.some((r) => m(r) && le(r));
|
|
841
|
+
}
|
|
842
|
+
function L(t) {
|
|
843
|
+
const e = typeof t == "string" ? t.trim().toLowerCase().replace(/\s+/gu, "") : "";
|
|
844
|
+
return e === "transparent" || e === "rgba(0,0,0,0)" || e === "rgba(255,255,255,0)";
|
|
845
|
+
}
|
|
846
|
+
function Pt(t) {
|
|
847
|
+
if (t.type !== "bar" || typeof t.stack != "string") return !1;
|
|
848
|
+
const e = m(t.itemStyle) ? t.itemStyle : {}, r = m(t.emphasis) ? t.emphasis : {}, n = m(r.itemStyle) ? r.itemStyle : {};
|
|
849
|
+
return L(e.color) || L(e.borderColor) || L(n.color) || L(n.borderColor);
|
|
850
|
+
}
|
|
851
|
+
function gr(t) {
|
|
852
|
+
const e = m(t) && "value" in t ? t.value : t, r = typeof e == "string" && e.trim() ? Number(e) : e;
|
|
853
|
+
return typeof r == "number" && Number.isFinite(r) ? Math.max(0, r) : 0;
|
|
854
|
+
}
|
|
855
|
+
function Ar(t) {
|
|
856
|
+
let e = 0;
|
|
857
|
+
return t.map((r, n) => {
|
|
858
|
+
const s = n === 0 ? 0 : e;
|
|
859
|
+
return e += gr(r), s;
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
function br(t, e) {
|
|
863
|
+
if (e.length !== 1) return;
|
|
864
|
+
const r = t.filter(m);
|
|
865
|
+
if (r.length !== t.length) return;
|
|
866
|
+
const n = r.findIndex(Pt);
|
|
867
|
+
if (n < 0) return;
|
|
868
|
+
const s = r[n], o = typeof s.stack == "string" ? s.stack : void 0, i = r.findIndex((a, l) => l !== n && a.type === "bar" && typeof a.stack == "string" && a.stack === o && !Pt(a));
|
|
869
|
+
if (i < 0) return;
|
|
870
|
+
const c = e[0];
|
|
871
|
+
return r.map((a, l) => l === n ? {
|
|
872
|
+
...a,
|
|
873
|
+
data: Ar(c.data)
|
|
874
|
+
} : l === i ? {
|
|
875
|
+
...a,
|
|
876
|
+
data: c.data,
|
|
877
|
+
name: c.name
|
|
878
|
+
} : a);
|
|
879
|
+
}
|
|
880
|
+
function $(t, e) {
|
|
881
|
+
if (e.length === 0) return;
|
|
882
|
+
const r = t, n = r.legend;
|
|
883
|
+
if (Array.isArray(n)) {
|
|
884
|
+
r.legend = n.map((s, o) => o === 0 && m(s) ? { ...s, data: e } : s);
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
n !== !1 && (r.legend = m(n) ? { ...n, data: e } : { data: e });
|
|
888
|
+
}
|
|
889
|
+
function xr(t, e) {
|
|
890
|
+
const r = t, n = r.xAxis;
|
|
891
|
+
if (Array.isArray(n)) {
|
|
892
|
+
r.xAxis = n.map((s, o) => o === 0 && m(s) ? { ...s, data: e } : s);
|
|
893
|
+
return;
|
|
894
|
+
}
|
|
895
|
+
m(n) && (r.xAxis = { ...n, data: e });
|
|
896
|
+
}
|
|
897
|
+
function Rt(t) {
|
|
898
|
+
return m(t) && t.type === "time";
|
|
899
|
+
}
|
|
900
|
+
function _r(t) {
|
|
901
|
+
const e = t.xAxis;
|
|
902
|
+
return Array.isArray(e) ? e.some(Rt) : Rt(e);
|
|
903
|
+
}
|
|
904
|
+
function Or(t) {
|
|
905
|
+
const e = t.trim();
|
|
906
|
+
return e ? /^\d{10,13}$/u.test(e) ? !0 : /(?:^\d{4}(?:[-/]\d{1,2})?|T\d{2}:\d{2}|\d{1,2}:\d{2})/u.test(e) ? Number.isFinite(Date.parse(e)) : !1 : !1;
|
|
907
|
+
}
|
|
908
|
+
function Sr(t) {
|
|
909
|
+
return t.length > 0 && t.every(Or);
|
|
910
|
+
}
|
|
911
|
+
function Nr(t, e) {
|
|
912
|
+
return _r(t) ? Sr(e) ? (Cr(t), "time") : (Er(t, e), "category") : (xr(t, e), "category");
|
|
913
|
+
}
|
|
914
|
+
function Cr(t) {
|
|
915
|
+
const e = t, r = e.xAxis, n = (s) => {
|
|
916
|
+
if (!m(s)) return s;
|
|
917
|
+
const { data: o, ...i } = s;
|
|
918
|
+
return { ...i, type: "time" };
|
|
919
|
+
};
|
|
920
|
+
e.xAxis = Array.isArray(r) ? r.map(n) : n(r);
|
|
921
|
+
}
|
|
922
|
+
function Er(t, e) {
|
|
923
|
+
const r = t, n = r.xAxis, s = (o, i = 0) => i === 0 && m(o) ? { ...o, type: "category", data: e } : o;
|
|
924
|
+
r.xAxis = Array.isArray(n) ? n.map((o, i) => s(o, i)) : m(n) ? s(n) : { type: "category", data: e };
|
|
925
|
+
}
|
|
926
|
+
function wr(t, e) {
|
|
927
|
+
return t.data.map((r, n) => {
|
|
928
|
+
const s = m(r) && "value" in r ? r.value : r;
|
|
929
|
+
return m(r) ? { ...r, value: [e[n], s] } : [e[n], r];
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
function fe(t, e) {
|
|
933
|
+
return t.data.every(m) ? t.data.map((r, n) => ({
|
|
934
|
+
...r,
|
|
935
|
+
name: typeof r.name == "string" && r.name.trim() ? r.name.trim() : e[n] || t.name || `item-${n + 1}`,
|
|
936
|
+
value: "value" in r ? r.value : 0
|
|
937
|
+
})) : t.data.map((r, n) => ({
|
|
938
|
+
name: e[n] || `item-${n + 1}`,
|
|
939
|
+
value: r
|
|
940
|
+
}));
|
|
941
|
+
}
|
|
942
|
+
function Dr(t, e) {
|
|
943
|
+
return fe(t, e);
|
|
944
|
+
}
|
|
945
|
+
function Pr(t) {
|
|
946
|
+
return [{
|
|
947
|
+
name: t.name,
|
|
948
|
+
value: t.data.map((e) => {
|
|
949
|
+
const r = m(e) && "value" in e ? e.value : e, n = typeof r == "string" && r.trim() ? Number(r) : r;
|
|
950
|
+
return typeof n == "number" && Number.isFinite(n) ? n : 0;
|
|
951
|
+
})
|
|
952
|
+
}];
|
|
953
|
+
}
|
|
954
|
+
function _(t) {
|
|
955
|
+
return m(t) ? t : {};
|
|
956
|
+
}
|
|
957
|
+
const Rr = {
|
|
958
|
+
/**
|
|
959
|
+
* 根据协议配置构建 ECharts option 骨架。
|
|
960
|
+
* @param config - 协议配置载荷,包含系列定义和展示配置
|
|
961
|
+
* @returns 包含标题、提示框、图例、坐标轴和空系列的 ECharts option
|
|
962
|
+
*/
|
|
963
|
+
buildOption(t) {
|
|
964
|
+
const e = t.series.some((o) => o.type === "pie"), r = t.series.some((o) => o.type === "radar"), n = t.series.some((o) => o.type === "funnel");
|
|
965
|
+
if (e) {
|
|
966
|
+
const o = {
|
|
967
|
+
title: {
|
|
968
|
+
text: t.chart.title
|
|
969
|
+
},
|
|
970
|
+
tooltip: {
|
|
971
|
+
trigger: "item",
|
|
972
|
+
..._(t.presentation.tooltip)
|
|
973
|
+
},
|
|
974
|
+
legend: _(t.presentation.legend),
|
|
975
|
+
series: t.series.map((i) => ({
|
|
976
|
+
id: i.id,
|
|
977
|
+
type: i.type,
|
|
978
|
+
radius: ["42%", "68%"],
|
|
979
|
+
data: []
|
|
980
|
+
}))
|
|
981
|
+
};
|
|
982
|
+
return t.optionPatch && Object.assign(o, t.optionPatch), o;
|
|
983
|
+
}
|
|
984
|
+
if (r) {
|
|
985
|
+
const o = {
|
|
986
|
+
title: {
|
|
987
|
+
text: t.chart.title
|
|
988
|
+
},
|
|
989
|
+
tooltip: {
|
|
990
|
+
trigger: "item",
|
|
991
|
+
..._(t.presentation.tooltip)
|
|
992
|
+
},
|
|
993
|
+
legend: _(t.presentation.legend),
|
|
994
|
+
radar: {
|
|
995
|
+
indicator: [],
|
|
996
|
+
radius: "68%"
|
|
997
|
+
},
|
|
998
|
+
series: t.series.map((i) => ({
|
|
999
|
+
id: i.id,
|
|
1000
|
+
type: i.type,
|
|
1001
|
+
data: []
|
|
1002
|
+
}))
|
|
1003
|
+
};
|
|
1004
|
+
return t.optionPatch && Object.assign(o, t.optionPatch), o;
|
|
1005
|
+
}
|
|
1006
|
+
if (n) {
|
|
1007
|
+
const o = {
|
|
1008
|
+
title: {
|
|
1009
|
+
text: t.chart.title
|
|
1010
|
+
},
|
|
1011
|
+
tooltip: {
|
|
1012
|
+
trigger: "item",
|
|
1013
|
+
..._(t.presentation.tooltip)
|
|
1014
|
+
},
|
|
1015
|
+
legend: _(t.presentation.legend),
|
|
1016
|
+
series: t.series.map((i) => ({
|
|
1017
|
+
id: i.id,
|
|
1018
|
+
type: i.type,
|
|
1019
|
+
data: []
|
|
1020
|
+
}))
|
|
1021
|
+
};
|
|
1022
|
+
return t.optionPatch && Object.assign(o, t.optionPatch), o;
|
|
1023
|
+
}
|
|
1024
|
+
const s = {
|
|
1025
|
+
title: {
|
|
1026
|
+
text: t.chart.title
|
|
1027
|
+
},
|
|
1028
|
+
tooltip: {
|
|
1029
|
+
trigger: "axis",
|
|
1030
|
+
..._(t.presentation.tooltip)
|
|
1031
|
+
},
|
|
1032
|
+
legend: _(t.presentation.legend),
|
|
1033
|
+
xAxis: {
|
|
1034
|
+
type: "category"
|
|
1035
|
+
},
|
|
1036
|
+
yAxis: {
|
|
1037
|
+
type: "value"
|
|
1038
|
+
},
|
|
1039
|
+
// SeriesDef.type 为通用 string,需断言为 any 以满足 ECharts SeriesOption 字面量联合类型。
|
|
1040
|
+
series: t.series.map((o) => ({
|
|
1041
|
+
id: o.id,
|
|
1042
|
+
type: o.type,
|
|
1043
|
+
data: []
|
|
1044
|
+
}))
|
|
1045
|
+
};
|
|
1046
|
+
return t.optionPatch && Object.assign(s, t.optionPatch), s;
|
|
1047
|
+
},
|
|
1048
|
+
/**
|
|
1049
|
+
* 将数据载荷合并到已有的 ECharts option 中。
|
|
1050
|
+
* @param option - 已有的 ECharts option
|
|
1051
|
+
* @param data - 协议数据载荷,包含类别和系列数值
|
|
1052
|
+
* @returns 更新后的 ECharts option
|
|
1053
|
+
*/
|
|
1054
|
+
mergeData(t, e) {
|
|
1055
|
+
const r = dr(e), n = { ...t }, s = mr(n), o = yr(n), i = hr(n);
|
|
1056
|
+
let c = "category";
|
|
1057
|
+
if (!s && !o && !i && (c = Nr(n, r.categories)), Array.isArray(n.series)) {
|
|
1058
|
+
const a = !s && !o && !i ? br(n.series, r.series) : void 0;
|
|
1059
|
+
n.series = a ?? n.series.map((l, p) => {
|
|
1060
|
+
const u = l, d = u.id || `series-${p + 1}`, y = r.series.find(
|
|
1061
|
+
(h) => h.id === d
|
|
1062
|
+
) || r.series[p];
|
|
1063
|
+
return y ? ce(u) ? {
|
|
1064
|
+
...u,
|
|
1065
|
+
data: fe(y, r.categories),
|
|
1066
|
+
name: y.name
|
|
1067
|
+
} : ue(u) ? {
|
|
1068
|
+
...u,
|
|
1069
|
+
data: Pr(y),
|
|
1070
|
+
name: y.name
|
|
1071
|
+
} : le(u) ? {
|
|
1072
|
+
...u,
|
|
1073
|
+
data: Dr(y, r.categories),
|
|
1074
|
+
name: y.name
|
|
1075
|
+
} : {
|
|
1076
|
+
...u,
|
|
1077
|
+
data: c === "time" ? wr(y, r.categories) : y.data,
|
|
1078
|
+
name: y.name
|
|
1079
|
+
} : u;
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
if (s) {
|
|
1083
|
+
const a = n;
|
|
1084
|
+
delete a.xAxis, delete a.yAxis;
|
|
1085
|
+
const l = Array.isArray(n.series) ? n.series.flatMap((p) => m(p) && Array.isArray(p.data) ? p.data.filter(m).flatMap((u) => typeof u.name == "string" && u.name.trim() ? [u.name.trim()] : []) : []) : [];
|
|
1086
|
+
$(n, l);
|
|
1087
|
+
} else if (o) {
|
|
1088
|
+
const a = n;
|
|
1089
|
+
delete a.xAxis, delete a.yAxis;
|
|
1090
|
+
const l = a.radar;
|
|
1091
|
+
a.radar = m(l) ? { ...l, indicator: r.indicators } : { indicator: r.indicators }, $(
|
|
1092
|
+
n,
|
|
1093
|
+
r.series.flatMap((p) => p.name ? [p.name] : [])
|
|
1094
|
+
);
|
|
1095
|
+
} else if (i) {
|
|
1096
|
+
const a = n;
|
|
1097
|
+
delete a.xAxis, delete a.yAxis, delete a.grid, $(
|
|
1098
|
+
n,
|
|
1099
|
+
r.series.flatMap((l) => l.name ? [l.name] : [])
|
|
1100
|
+
);
|
|
1101
|
+
} else
|
|
1102
|
+
$(
|
|
1103
|
+
n,
|
|
1104
|
+
r.series.flatMap((a) => a.name ? [a.name] : [])
|
|
1105
|
+
);
|
|
1106
|
+
return n;
|
|
1107
|
+
}
|
|
1108
|
+
};
|
|
1109
|
+
function K(t) {
|
|
1110
|
+
return !!(t && typeof t == "object" && !Array.isArray(t));
|
|
1111
|
+
}
|
|
1112
|
+
function Ir(t) {
|
|
1113
|
+
return t.datasets[0];
|
|
1114
|
+
}
|
|
1115
|
+
function Tr(t) {
|
|
1116
|
+
var e;
|
|
1117
|
+
return (e = t.rows) != null && e.length ? t.rows : t.source;
|
|
1118
|
+
}
|
|
1119
|
+
function Vr(t) {
|
|
1120
|
+
return t ? (Array.isArray(t) ? t : [t]).filter(K) : [];
|
|
1121
|
+
}
|
|
1122
|
+
function Mr(t, e) {
|
|
1123
|
+
return Vr(t.series).map((n) => n.datasetId).find((n) => typeof n == "string" && n.trim().length > 0) || e || "main";
|
|
1124
|
+
}
|
|
1125
|
+
function It(t, e) {
|
|
1126
|
+
const r = { ...t };
|
|
1127
|
+
return !r.datasetId && r.datasetIndex === void 0 && (r.datasetId = e), Array.isArray(r.data) && r.data.length === 0 && (r.datasetId || r.datasetIndex !== void 0) && delete r.data, r;
|
|
1128
|
+
}
|
|
1129
|
+
function Fr(t, e) {
|
|
1130
|
+
return t && (Array.isArray(t) ? t.map((r) => K(r) ? It(r, e) : r) : K(t) ? It(t, e) : t);
|
|
1131
|
+
}
|
|
1132
|
+
function ut(t, e, r, n) {
|
|
1133
|
+
return {
|
|
1134
|
+
...K(t) ? t : {},
|
|
1135
|
+
id: e,
|
|
1136
|
+
source: r,
|
|
1137
|
+
...n != null && n.length ? { dimensions: n } : {}
|
|
1138
|
+
};
|
|
1139
|
+
}
|
|
1140
|
+
function jr(t, e, r, n) {
|
|
1141
|
+
return t.length === 0 ? [ut({}, e, r, n)] : t.map((s, o) => o === 0 ? ut(s, e, r, n) : s);
|
|
1142
|
+
}
|
|
1143
|
+
const kr = {
|
|
1144
|
+
/**
|
|
1145
|
+
* Builds the empty dataset option skeleton from table config.
|
|
1146
|
+
* @param config - Protocol config payload.
|
|
1147
|
+
* @returns ECharts option skeleton.
|
|
1148
|
+
*/
|
|
1149
|
+
buildOption(t) {
|
|
1150
|
+
var n;
|
|
1151
|
+
const e = ((n = t.series.find((s) => s.datasetId)) == null ? void 0 : n.datasetId) || "main", r = {
|
|
1152
|
+
dataset: {
|
|
1153
|
+
id: e,
|
|
1154
|
+
source: []
|
|
1155
|
+
},
|
|
1156
|
+
series: t.series.map((s) => ({
|
|
1157
|
+
id: s.id,
|
|
1158
|
+
type: s.type,
|
|
1159
|
+
datasetId: s.datasetId || e
|
|
1160
|
+
}))
|
|
1161
|
+
};
|
|
1162
|
+
return t.optionPatch && Object.assign(r, t.optionPatch), r;
|
|
1163
|
+
},
|
|
1164
|
+
/**
|
|
1165
|
+
* Merges table protocol data into the existing ECharts option.
|
|
1166
|
+
* @param option - Current ECharts option.
|
|
1167
|
+
* @param data - Protocol data payload.
|
|
1168
|
+
* @returns Updated ECharts option.
|
|
1169
|
+
*/
|
|
1170
|
+
mergeData(t, e) {
|
|
1171
|
+
const r = { ...t }, n = Ir(e);
|
|
1172
|
+
if (!n) return r;
|
|
1173
|
+
const s = Tr(n), o = Array.isArray(n.dimensions) ? n.dimensions : void 0, i = Mr(r, n.id);
|
|
1174
|
+
return r.dataset = Array.isArray(r.dataset) ? jr(r.dataset, i, s, o) : ut(r.dataset, i, s, o), r.series = Fr(r.series, i), r;
|
|
1175
|
+
}
|
|
1176
|
+
};
|
|
1177
|
+
function zr(t, e) {
|
|
1178
|
+
return t === "candlestick" || t === "boxplot" || t === "heatmap" || e === "candlestick" || e === "boxplot" || e === "heatmap";
|
|
1179
|
+
}
|
|
1180
|
+
const Lr = {
|
|
1181
|
+
/**
|
|
1182
|
+
* 根据协议配置构建包含类别轴和数值轴的 ECharts option 骨架
|
|
1183
|
+
* @param config - 协议配置载荷
|
|
1184
|
+
* @returns 包含坐标轴和空系列的 ECharts option
|
|
1185
|
+
*/
|
|
1186
|
+
buildOption(t) {
|
|
1187
|
+
const e = {
|
|
1188
|
+
xAxis: {
|
|
1189
|
+
type: "category"
|
|
1190
|
+
},
|
|
1191
|
+
yAxis: {
|
|
1192
|
+
type: "value"
|
|
1193
|
+
},
|
|
1194
|
+
// SeriesDef.type 为通用 string,需断言为 any 以满足 ECharts SeriesOption 字面量联合类型
|
|
1195
|
+
series: t.series.map((r) => ({
|
|
1196
|
+
id: r.id,
|
|
1197
|
+
type: r.type,
|
|
1198
|
+
data: []
|
|
1199
|
+
}))
|
|
1200
|
+
};
|
|
1201
|
+
return t.optionPatch && Object.assign(e, t.optionPatch), e;
|
|
1202
|
+
},
|
|
1203
|
+
/**
|
|
1204
|
+
* 将元组数据合并到已有的 ECharts option 中
|
|
1205
|
+
* @param option - 已有的 ECharts option
|
|
1206
|
+
* @param data - 协议数据载荷,包含类别和数据行
|
|
1207
|
+
* @returns 更新后的 ECharts option
|
|
1208
|
+
*/
|
|
1209
|
+
mergeData(t, e) {
|
|
1210
|
+
var i, c;
|
|
1211
|
+
const r = e, n = { ...t }, s = r.dataset;
|
|
1212
|
+
(i = s.categories) != null && i.xAxis && n.xAxis && typeof n.xAxis == "object" && !Array.isArray(n.xAxis) && (n.xAxis = { ...n.xAxis, data: s.categories.xAxis });
|
|
1213
|
+
const o = (c = s.categories) == null ? void 0 : c.yAxis;
|
|
1214
|
+
return o && n.yAxis && typeof n.yAxis == "object" && !Array.isArray(n.yAxis) && (n.yAxis = {
|
|
1215
|
+
...n.yAxis,
|
|
1216
|
+
type: "category",
|
|
1217
|
+
data: o
|
|
1218
|
+
}), Array.isArray(n.series) && (n.series = n.series.map((a, l) => {
|
|
1219
|
+
const p = a;
|
|
1220
|
+
if (zr(s.tupleKind, p.type))
|
|
1221
|
+
return {
|
|
1222
|
+
...p,
|
|
1223
|
+
data: s.rows
|
|
1224
|
+
};
|
|
1225
|
+
const u = s.rows.map((d) => d[l]);
|
|
1226
|
+
return {
|
|
1227
|
+
...p,
|
|
1228
|
+
data: u
|
|
1229
|
+
};
|
|
1230
|
+
})), n;
|
|
1231
|
+
}
|
|
1232
|
+
}, $r = {
|
|
1233
|
+
/**
|
|
1234
|
+
* 根据协议配置构建树形图表的 ECharts option 骨架
|
|
1235
|
+
* 对 type='tree' 的系列添加布局定位参数
|
|
1236
|
+
* @param config - 协议配置载荷
|
|
1237
|
+
* @returns 包含空系列数据的 ECharts option
|
|
1238
|
+
*/
|
|
1239
|
+
buildOption(t) {
|
|
1240
|
+
const e = {
|
|
1241
|
+
series: t.series.map((r) => {
|
|
1242
|
+
const n = {
|
|
1243
|
+
id: r.id,
|
|
1244
|
+
type: r.type,
|
|
1245
|
+
data: []
|
|
1246
|
+
};
|
|
1247
|
+
return r.type === "tree" && (n.top = "5%", n.left = "10%", n.bottom = "5%", n.right = "20%"), n;
|
|
1248
|
+
})
|
|
1249
|
+
};
|
|
1250
|
+
return t.optionPatch && Object.assign(e, t.optionPatch), e;
|
|
1251
|
+
},
|
|
1252
|
+
/**
|
|
1253
|
+
* 将树形数据合并到已有的 ECharts option 中
|
|
1254
|
+
* @param option - 已有的 ECharts option
|
|
1255
|
+
* @param data - 协议数据载荷,包含树根节点
|
|
1256
|
+
* @returns 更新后的 ECharts option
|
|
1257
|
+
*/
|
|
1258
|
+
mergeData(t, e) {
|
|
1259
|
+
const r = e, n = { ...t };
|
|
1260
|
+
return Array.isArray(n.series) && (n.series = n.series.map((s) => ({
|
|
1261
|
+
...s,
|
|
1262
|
+
data: r.dataset.roots
|
|
1263
|
+
}))), n;
|
|
1264
|
+
}
|
|
1265
|
+
}, Hr = {
|
|
1266
|
+
/**
|
|
1267
|
+
* 根据协议配置构建关系图的 ECharts option 骨架
|
|
1268
|
+
* 对 type='graph' 的系列添加力引导布局和漫游支持
|
|
1269
|
+
* @param config - 协议配置载荷
|
|
1270
|
+
* @returns 包含空节点和边数据的 ECharts option
|
|
1271
|
+
*/
|
|
1272
|
+
buildOption(t) {
|
|
1273
|
+
const e = {
|
|
1274
|
+
series: t.series.map((r) => {
|
|
1275
|
+
const n = {
|
|
1276
|
+
id: r.id,
|
|
1277
|
+
type: r.type,
|
|
1278
|
+
data: [],
|
|
1279
|
+
links: []
|
|
1280
|
+
};
|
|
1281
|
+
return r.type === "graph" && (n.layout = "force", n.roam = !0), n;
|
|
1282
|
+
})
|
|
1283
|
+
};
|
|
1284
|
+
return t.optionPatch && Object.assign(e, t.optionPatch), e;
|
|
1285
|
+
},
|
|
1286
|
+
/**
|
|
1287
|
+
* 将网络数据合并到已有的 ECharts option 中
|
|
1288
|
+
* @param option - 已有的 ECharts option
|
|
1289
|
+
* @param data - 协议数据载荷,包含节点、边和可选的分组类别
|
|
1290
|
+
* @returns 更新后的 ECharts option
|
|
1291
|
+
*/
|
|
1292
|
+
mergeData(t, e) {
|
|
1293
|
+
const r = e, n = { ...t }, s = r.dataset;
|
|
1294
|
+
return Array.isArray(n.series) && (n.series = n.series.map((o) => {
|
|
1295
|
+
const i = { ...o };
|
|
1296
|
+
return i.data = s.nodes, i.links = s.links, s.categories && (i.categories = s.categories), i;
|
|
1297
|
+
})), n;
|
|
1298
|
+
}
|
|
1299
|
+
};
|
|
1300
|
+
function Wr(t) {
|
|
1301
|
+
return (Array.isArray(t) ? t : t ? [t] : []).some((r) => {
|
|
1302
|
+
if (!r || typeof r != "object" || Array.isArray(r)) return !1;
|
|
1303
|
+
const n = r;
|
|
1304
|
+
return n.type !== "map" || n.coordinateSystem === "geo";
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
const Br = {
|
|
1308
|
+
/**
|
|
1309
|
+
* 根据协议配置构建地理图表的 ECharts option 骨架
|
|
1310
|
+
* 包含视觉映射组件用于区域着色
|
|
1311
|
+
* @param config - 协议配置载荷
|
|
1312
|
+
* @returns 包含 visualMap 和空系列数据的 ECharts option
|
|
1313
|
+
*/
|
|
1314
|
+
buildOption(t) {
|
|
1315
|
+
const e = {
|
|
1316
|
+
visualMap: {
|
|
1317
|
+
min: 0,
|
|
1318
|
+
max: 100,
|
|
1319
|
+
text: ["High", "Low"],
|
|
1320
|
+
inRange: {
|
|
1321
|
+
color: ["#e0ffff", "#006edd"]
|
|
1322
|
+
},
|
|
1323
|
+
calculable: !0
|
|
1324
|
+
},
|
|
1325
|
+
// SeriesDef.type 为通用 string,需断言为 any 以满足 ECharts SeriesOption 字面量联合类型
|
|
1326
|
+
series: t.series.map((r) => ({
|
|
1327
|
+
id: r.id,
|
|
1328
|
+
type: r.type,
|
|
1329
|
+
data: []
|
|
1330
|
+
}))
|
|
1331
|
+
};
|
|
1332
|
+
return t.optionPatch && Object.assign(e, t.optionPatch), e;
|
|
1333
|
+
},
|
|
1334
|
+
/**
|
|
1335
|
+
* 将地理数据合并到已有的 ECharts option 中
|
|
1336
|
+
* @param option - 已有的 ECharts option
|
|
1337
|
+
* @param data - 协议数据载荷,包含地图名称和区域数据
|
|
1338
|
+
* @returns 更新后的 ECharts option
|
|
1339
|
+
*/
|
|
1340
|
+
mergeData(t, e) {
|
|
1341
|
+
const r = e, n = { ...t }, s = r.dataset;
|
|
1342
|
+
return !s || typeof s != "object" || (s.mapName && Wr(n.series) && (n.geo = {
|
|
1343
|
+
...n.geo || {},
|
|
1344
|
+
map: s.mapName
|
|
1345
|
+
}), Array.isArray(n.series) && Array.isArray(s.regions) && (n.series = n.series.map((o) => ({
|
|
1346
|
+
...o,
|
|
1347
|
+
data: s.regions
|
|
1348
|
+
})))), n;
|
|
1349
|
+
}
|
|
1350
|
+
}, Ur = {
|
|
1351
|
+
/**
|
|
1352
|
+
* 根据协议配置构建 3D 场景的 ECharts option 骨架
|
|
1353
|
+
* @param config - 协议配置载荷
|
|
1354
|
+
* @returns 包含空系列数据的 ECharts option
|
|
1355
|
+
*/
|
|
1356
|
+
buildOption(t) {
|
|
1357
|
+
const e = {
|
|
1358
|
+
// SeriesDef.type 为通用 string,需断言为 any 以满足 ECharts SeriesOption 字面量联合类型
|
|
1359
|
+
series: t.series.map((r) => ({
|
|
1360
|
+
id: r.id,
|
|
1361
|
+
type: r.type,
|
|
1362
|
+
data: []
|
|
1363
|
+
}))
|
|
1364
|
+
};
|
|
1365
|
+
return t.optionPatch && Object.assign(e, t.optionPatch), e;
|
|
1366
|
+
},
|
|
1367
|
+
/**
|
|
1368
|
+
* 将 3D 场景数据合并到已有的 ECharts option 中
|
|
1369
|
+
* dataset 中除 id/shape 外的属性会展开为顶层 option 属性
|
|
1370
|
+
* @param option - 已有的 ECharts option
|
|
1371
|
+
* @param data - 协议数据载荷,包含 3D 场景数据
|
|
1372
|
+
* @returns 更新后的 ECharts option
|
|
1373
|
+
*/
|
|
1374
|
+
mergeData(t, e) {
|
|
1375
|
+
const r = e, n = { ...t }, s = r.dataset, o = s.data || s.points || s.rows;
|
|
1376
|
+
Array.isArray(n.series) && (n.series = n.series.map((l) => ({
|
|
1377
|
+
...l,
|
|
1378
|
+
data: o
|
|
1379
|
+
})));
|
|
1380
|
+
const { id: i, shape: c, ...a } = s;
|
|
1381
|
+
return Object.assign(n, a), n;
|
|
1382
|
+
}
|
|
1383
|
+
}, Gr = {
|
|
1384
|
+
/**
|
|
1385
|
+
* 根据协议配置构建包含时间轴的 ECharts option 骨架
|
|
1386
|
+
* @param config - 协议配置载荷
|
|
1387
|
+
* @returns 包含 timeline 组件和基础配置的 ECharts option
|
|
1388
|
+
*/
|
|
1389
|
+
buildOption(t) {
|
|
1390
|
+
const e = {
|
|
1391
|
+
baseOption: {
|
|
1392
|
+
timeline: {
|
|
1393
|
+
axisType: "category"
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
options: []
|
|
1397
|
+
};
|
|
1398
|
+
return t.optionPatch && Object.assign(e, t.optionPatch), e;
|
|
1399
|
+
},
|
|
1400
|
+
/**
|
|
1401
|
+
* 将时间轴数据合并到已有的 ECharts option 中
|
|
1402
|
+
* dataset 中除 id/shape 外的属性会展开为 option 属性
|
|
1403
|
+
* @param option - 已有的 ECharts option
|
|
1404
|
+
* @param data - 协议数据载荷,包含时间轴相关数据
|
|
1405
|
+
* @returns 更新后的 ECharts option
|
|
1406
|
+
*/
|
|
1407
|
+
mergeData(t, e) {
|
|
1408
|
+
const r = e, n = { ...t }, s = r.dataset;
|
|
1409
|
+
if (!s) return n;
|
|
1410
|
+
const { id: o, shape: i, ...c } = s;
|
|
1411
|
+
return Object.assign(n, c), n;
|
|
1412
|
+
}
|
|
1413
|
+
}, Zr = {
|
|
1414
|
+
/**
|
|
1415
|
+
* 根据协议配置构建动画过渡图表的 ECharts option 骨架
|
|
1416
|
+
* 仅创建空系列数组,系列结构由 optionPatch 定义
|
|
1417
|
+
* @param config - 协议配置载荷
|
|
1418
|
+
* @returns 包含空系列数组的 ECharts option
|
|
1419
|
+
*/
|
|
1420
|
+
buildOption(t) {
|
|
1421
|
+
const e = {
|
|
1422
|
+
series: []
|
|
1423
|
+
};
|
|
1424
|
+
return t.optionPatch && Object.assign(e, t.optionPatch), e;
|
|
1425
|
+
},
|
|
1426
|
+
/**
|
|
1427
|
+
* 将过渡数据合并到已有的 ECharts option 中
|
|
1428
|
+
* dataset 中的属性会展开为顶层 option 属性
|
|
1429
|
+
* @param option - 已有的 ECharts option
|
|
1430
|
+
* @param data - 协议数据载荷
|
|
1431
|
+
* @returns 更新后的 ECharts option
|
|
1432
|
+
*/
|
|
1433
|
+
mergeData(t, e) {
|
|
1434
|
+
const r = e, n = { ...t }, s = r.dataset;
|
|
1435
|
+
if (!s) return n;
|
|
1436
|
+
const { id: o, shape: i, ...c } = s;
|
|
1437
|
+
return Object.assign(n, c), n;
|
|
1438
|
+
}
|
|
1439
|
+
}, Xr = {
|
|
1440
|
+
/**
|
|
1441
|
+
* 根据协议配置构建自定义图形的 ECharts option 骨架
|
|
1442
|
+
* @param config - 协议配置载荷
|
|
1443
|
+
* @returns 包含空 graphic.elements 数组的 ECharts option
|
|
1444
|
+
*/
|
|
1445
|
+
buildOption(t) {
|
|
1446
|
+
const e = {
|
|
1447
|
+
graphic: {
|
|
1448
|
+
elements: []
|
|
1449
|
+
}
|
|
1450
|
+
};
|
|
1451
|
+
return t.optionPatch && Object.assign(e, t.optionPatch), e;
|
|
1452
|
+
},
|
|
1453
|
+
/**
|
|
1454
|
+
* 将图形元素数据合并到已有的 ECharts option 中
|
|
1455
|
+
* @param option - 已有的 ECharts option
|
|
1456
|
+
* @param data - 协议数据载荷,包含自定义图形元素描述
|
|
1457
|
+
* @returns 更新后的 ECharts option
|
|
1458
|
+
*/
|
|
1459
|
+
mergeData(t, e) {
|
|
1460
|
+
const r = e, n = { ...t };
|
|
1461
|
+
return r.dataset && (n.graphic = {
|
|
1462
|
+
...n.graphic || {},
|
|
1463
|
+
elements: r.dataset.elements
|
|
1464
|
+
}), n;
|
|
1465
|
+
}
|
|
1466
|
+
}, Kr = {
|
|
1467
|
+
/**
|
|
1468
|
+
* 直接将 optionPatch 展开为 ECharts option
|
|
1469
|
+
* 布局类图表完全由 optionPatch 定义结构
|
|
1470
|
+
* @param config - 协议配置载荷
|
|
1471
|
+
* @returns 由 optionPatch 构建的 ECharts option
|
|
1472
|
+
*/
|
|
1473
|
+
buildOption(t) {
|
|
1474
|
+
const e = {};
|
|
1475
|
+
return t.optionPatch && Object.assign(e, t.optionPatch), e;
|
|
1476
|
+
},
|
|
1477
|
+
/**
|
|
1478
|
+
* 将布局数据合并到已有的 ECharts option 中
|
|
1479
|
+
* @param option - 已有的 ECharts option
|
|
1480
|
+
* @param data - 协议数据载荷,包含网格布局描述
|
|
1481
|
+
* @returns 更新后的 ECharts option
|
|
1482
|
+
*/
|
|
1483
|
+
mergeData(t, e) {
|
|
1484
|
+
const r = e, n = { ...t };
|
|
1485
|
+
return r.dataset && (n.grid = r.dataset.grids), n;
|
|
1486
|
+
}
|
|
1487
|
+
}, qr = {
|
|
1488
|
+
/**
|
|
1489
|
+
* 根据协议配置构建组合图表的 ECharts option 骨架
|
|
1490
|
+
* 包含坐标轴、系列、提示框和图例等基础配置
|
|
1491
|
+
* @param config - 协议配置载荷
|
|
1492
|
+
* @returns 包含坐标轴、空系列、提示框和图例的 ECharts option
|
|
1493
|
+
*/
|
|
1494
|
+
buildOption(t) {
|
|
1495
|
+
const e = {
|
|
1496
|
+
xAxis: {
|
|
1497
|
+
type: "category"
|
|
1498
|
+
},
|
|
1499
|
+
yAxis: {
|
|
1500
|
+
type: "value"
|
|
1501
|
+
},
|
|
1502
|
+
// SeriesDef.type 为通用 string,需断言为 any 以满足 ECharts SeriesOption 字面量联合类型
|
|
1503
|
+
series: t.series.map((r) => ({
|
|
1504
|
+
id: r.id,
|
|
1505
|
+
type: r.type,
|
|
1506
|
+
data: []
|
|
1507
|
+
})),
|
|
1508
|
+
tooltip: {},
|
|
1509
|
+
legend: {}
|
|
1510
|
+
};
|
|
1511
|
+
return t.optionPatch && Object.assign(e, t.optionPatch), e;
|
|
1512
|
+
},
|
|
1513
|
+
/**
|
|
1514
|
+
* 将组合数据合并到已有的 ECharts option 中
|
|
1515
|
+
* dataset 中的属性会展开为顶层 option 属性
|
|
1516
|
+
* @param option - 已有的 ECharts option
|
|
1517
|
+
* @param data - 协议数据载荷
|
|
1518
|
+
* @returns 更新后的 ECharts option
|
|
1519
|
+
*/
|
|
1520
|
+
mergeData(t, e) {
|
|
1521
|
+
const r = e, n = { ...t }, s = r.dataset;
|
|
1522
|
+
if (!s) return n;
|
|
1523
|
+
const { id: o, shape: i, ...c } = s;
|
|
1524
|
+
return Object.assign(n, c), n;
|
|
1525
|
+
}
|
|
1526
|
+
}, Jr = {
|
|
1527
|
+
/**
|
|
1528
|
+
* 直接将 optionPatch 展开为 ECharts option
|
|
1529
|
+
* 此类图表的所有数据已包含在配置中,无需外部数据源
|
|
1530
|
+
* @param config - 协议配置载荷
|
|
1531
|
+
* @returns 由 optionPatch 构建的 ECharts option
|
|
1532
|
+
*/
|
|
1533
|
+
buildOption(t) {
|
|
1534
|
+
const e = {};
|
|
1535
|
+
return t.optionPatch && Object.assign(e, t.optionPatch), e;
|
|
1536
|
+
},
|
|
1537
|
+
/**
|
|
1538
|
+
* 空操作 — ConfigOnly 协议不处理外部数据
|
|
1539
|
+
* 所有数据已在 buildOption 阶段通过 optionPatch 注入
|
|
1540
|
+
* @param option - 已有的 ECharts option
|
|
1541
|
+
* @returns 原样返回未修改的 option
|
|
1542
|
+
*/
|
|
1543
|
+
mergeData(t, e) {
|
|
1544
|
+
return t;
|
|
1545
|
+
}
|
|
1546
|
+
};
|
|
1547
|
+
function V(t) {
|
|
1548
|
+
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
1549
|
+
}
|
|
1550
|
+
function Tt(t) {
|
|
1551
|
+
const e = t.id ?? t.name;
|
|
1552
|
+
return typeof e == "string" && e.trim() ? e : void 0;
|
|
1553
|
+
}
|
|
1554
|
+
function Yr(t, e) {
|
|
1555
|
+
return e.some((n) => !V(n)) ? [...e] : e.reduce((n, s, o) => {
|
|
1556
|
+
const i = Tt(s), c = n.findIndex((a) => V(a) && i && Tt(a) === i);
|
|
1557
|
+
if (c === -1) {
|
|
1558
|
+
const a = V(n[o]) ? o : -1;
|
|
1559
|
+
return a === -1 ? [...n, s] : n.map((l, p) => p === a ? I(l, s) : l);
|
|
1560
|
+
}
|
|
1561
|
+
return n.map((a, l) => l === c ? I(a, s) : a);
|
|
1562
|
+
}, [...t]);
|
|
1563
|
+
}
|
|
1564
|
+
function Qr(t) {
|
|
1565
|
+
return t === "series" || t === "xAxis" || t === "yAxis";
|
|
1566
|
+
}
|
|
1567
|
+
function I(t, e) {
|
|
1568
|
+
const r = { ...t };
|
|
1569
|
+
for (const n of Object.keys(e)) {
|
|
1570
|
+
const s = r[n], o = e[n];
|
|
1571
|
+
Array.isArray(s) && Array.isArray(o) && Qr(n) ? r[n] = Yr(s, o) : V(s) && V(o) ? r[n] = I(
|
|
1572
|
+
s,
|
|
1573
|
+
o
|
|
1574
|
+
) : r[n] = o;
|
|
1575
|
+
}
|
|
1576
|
+
return r;
|
|
1577
|
+
}
|
|
1578
|
+
const vr = "https://echarts.apache.org/examples", tn = /* @__PURE__ */ new Set([
|
|
1579
|
+
"baseTexture",
|
|
1580
|
+
"heightTexture",
|
|
1581
|
+
"texture",
|
|
1582
|
+
"normalTexture",
|
|
1583
|
+
"detailTexture",
|
|
1584
|
+
"displacementTexture",
|
|
1585
|
+
"roughnessTexture",
|
|
1586
|
+
"metalnessTexture",
|
|
1587
|
+
"emissionTexture",
|
|
1588
|
+
"matcap"
|
|
1589
|
+
]), en = "#103b5d", rn = "#000";
|
|
1590
|
+
function q(t, e = /* @__PURE__ */ new WeakMap()) {
|
|
1591
|
+
const r = /* @__PURE__ */ B(t) ? /* @__PURE__ */ S(t) : t;
|
|
1592
|
+
if (!r || typeof r != "object") return r;
|
|
1593
|
+
if (e.has(r)) return e.get(r);
|
|
1594
|
+
if (Array.isArray(r)) {
|
|
1595
|
+
const s = [];
|
|
1596
|
+
return e.set(r, s), r.forEach((o, i) => {
|
|
1597
|
+
s[i] = q(o, e);
|
|
1598
|
+
}), s;
|
|
1599
|
+
}
|
|
1600
|
+
if (r instanceof Date)
|
|
1601
|
+
return new Date(r.getTime());
|
|
1602
|
+
if (r instanceof RegExp)
|
|
1603
|
+
return new RegExp(r.source, r.flags);
|
|
1604
|
+
const n = {};
|
|
1605
|
+
return e.set(r, n), Object.entries(r).forEach(([s, o]) => {
|
|
1606
|
+
n[s] = q(o, e);
|
|
1607
|
+
}), n;
|
|
1608
|
+
}
|
|
1609
|
+
function f(t) {
|
|
1610
|
+
return !!(t && typeof t == "object" && !Array.isArray(t));
|
|
1611
|
+
}
|
|
1612
|
+
function nn(t) {
|
|
1613
|
+
return t.startsWith(`${vr}/data-gl/asset/`);
|
|
1614
|
+
}
|
|
1615
|
+
function lt(t) {
|
|
1616
|
+
return Array.isArray(t) ? t.flatMap((e) => {
|
|
1617
|
+
if (typeof e == "string" || typeof e == "number") return [String(e)];
|
|
1618
|
+
if (!f(e)) return [];
|
|
1619
|
+
if (Array.isArray(e.children)) return lt(e.children);
|
|
1620
|
+
const r = e.value;
|
|
1621
|
+
return typeof r == "string" || typeof r == "number" ? [String(r)] : [];
|
|
1622
|
+
}) : [];
|
|
1623
|
+
}
|
|
1624
|
+
function sn(t, e, r) {
|
|
1625
|
+
if (!Array.isArray(t)) return t;
|
|
1626
|
+
const n = new Map(e.map((o, i) => [o, i])), s = new Map(r.map((o, i) => [o, i]));
|
|
1627
|
+
return t.map((o) => {
|
|
1628
|
+
if (!Array.isArray(o) || o.length < 2) return o;
|
|
1629
|
+
const i = String(o[0] ?? ""), c = String(o[1] ?? "");
|
|
1630
|
+
return [
|
|
1631
|
+
n.get(i) ?? o[0],
|
|
1632
|
+
s.get(c) ?? o[1],
|
|
1633
|
+
...o.slice(2)
|
|
1634
|
+
];
|
|
1635
|
+
});
|
|
1636
|
+
}
|
|
1637
|
+
function Vt(t) {
|
|
1638
|
+
return f(t) && t.coordinateSystem === "matrix";
|
|
1639
|
+
}
|
|
1640
|
+
function on(t) {
|
|
1641
|
+
if (!f(t)) return "";
|
|
1642
|
+
const e = t.type;
|
|
1643
|
+
return typeof e == "string" ? e : "";
|
|
1644
|
+
}
|
|
1645
|
+
function Mt(t) {
|
|
1646
|
+
const e = on(t);
|
|
1647
|
+
return e.startsWith("ecStat:") || e.startsWith("ecSimpleTransform:");
|
|
1648
|
+
}
|
|
1649
|
+
function an(t) {
|
|
1650
|
+
if (!f(t)) return !1;
|
|
1651
|
+
const e = t.transform;
|
|
1652
|
+
return Array.isArray(e) ? e.some(Mt) : Mt(e);
|
|
1653
|
+
}
|
|
1654
|
+
function cn(t) {
|
|
1655
|
+
return Array.isArray(t) ? t.map((e) => {
|
|
1656
|
+
if (!f(e)) return e;
|
|
1657
|
+
const {
|
|
1658
|
+
datasetId: r,
|
|
1659
|
+
datasetIndex: n,
|
|
1660
|
+
encode: s,
|
|
1661
|
+
...o
|
|
1662
|
+
} = e;
|
|
1663
|
+
return o;
|
|
1664
|
+
}) : t;
|
|
1665
|
+
}
|
|
1666
|
+
function ft(t) {
|
|
1667
|
+
if (Array.isArray(t))
|
|
1668
|
+
return t.map((r) => ft(r));
|
|
1669
|
+
if (!f(t)) return t;
|
|
1670
|
+
const e = {};
|
|
1671
|
+
return Object.entries(t).forEach(([r, n]) => {
|
|
1672
|
+
e[r] = ft(n);
|
|
1673
|
+
}), e.type === "custom" && !e.renderItem && !e.render && (e.type = "scatter"), e;
|
|
1674
|
+
}
|
|
1675
|
+
function un(t) {
|
|
1676
|
+
return Array.isArray(t) ? t.map((e) => {
|
|
1677
|
+
if (!f(e) || !Array.isArray(e.data) || e.data.length > 0) return e;
|
|
1678
|
+
const { data: r, ...n } = e;
|
|
1679
|
+
return n;
|
|
1680
|
+
}) : t;
|
|
1681
|
+
}
|
|
1682
|
+
function pe(t) {
|
|
1683
|
+
var n;
|
|
1684
|
+
return !t || t.protocolType !== "table" ? [] : (((n = t.datasets[0]) == null ? void 0 : n.source) || []).map((s) => Array.isArray(s) ? [Number(s[0]), Number(s[1])] : [Number.NaN, Number.NaN]).filter(([s, o]) => Number.isFinite(s) && Number.isFinite(o));
|
|
1685
|
+
}
|
|
1686
|
+
function de(t) {
|
|
1687
|
+
var r;
|
|
1688
|
+
if (!t || t.protocolType !== "table") return [];
|
|
1689
|
+
const e = t.datasets[0];
|
|
1690
|
+
return e ? (r = e.rows) != null && r.length ? e.rows : e.source : [];
|
|
1691
|
+
}
|
|
1692
|
+
function ln(t) {
|
|
1693
|
+
var e;
|
|
1694
|
+
return !t || t.protocolType !== "table" ? [] : ((e = t.datasets[0]) == null ? void 0 : e.dimensions) || [];
|
|
1695
|
+
}
|
|
1696
|
+
function fn(t) {
|
|
1697
|
+
const e = t.length, r = t.map((n) => [...n]);
|
|
1698
|
+
for (let n = 0; n < e; n += 1) {
|
|
1699
|
+
let s = n;
|
|
1700
|
+
for (let i = n + 1; i < e; i += 1)
|
|
1701
|
+
Math.abs(r[i][n]) > Math.abs(r[s][n]) && (s = i);
|
|
1702
|
+
if (Math.abs(r[s][n]) < 1e-12) return [];
|
|
1703
|
+
[r[n], r[s]] = [r[s], r[n]];
|
|
1704
|
+
const o = r[n][n];
|
|
1705
|
+
for (let i = n; i <= e; i += 1) r[n][i] /= o;
|
|
1706
|
+
for (let i = 0; i < e; i += 1) {
|
|
1707
|
+
if (i === n) continue;
|
|
1708
|
+
const c = r[i][n];
|
|
1709
|
+
for (let a = n; a <= e; a += 1)
|
|
1710
|
+
r[i][a] -= c * r[n][a];
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
return r.map((n) => n[e]);
|
|
1714
|
+
}
|
|
1715
|
+
function ot(t) {
|
|
1716
|
+
if (t.length < 2) return null;
|
|
1717
|
+
const e = t.length, r = t.reduce((l, [p]) => l + p, 0), n = t.reduce((l, [, p]) => l + p, 0), s = t.reduce((l, [p]) => l + p * p, 0), o = t.reduce((l, [p, u]) => l + p * u, 0), i = e * s - r * r;
|
|
1718
|
+
if (Math.abs(i) < 1e-12) return null;
|
|
1719
|
+
const c = (e * o - r * n) / i, a = (n - c * r) / e;
|
|
1720
|
+
return { slope: c, intercept: a };
|
|
1721
|
+
}
|
|
1722
|
+
function pn(t, e) {
|
|
1723
|
+
const r = Math.max(1, Math.min(6, Math.round(e)));
|
|
1724
|
+
if (t.length < r + 1) return [];
|
|
1725
|
+
const n = Array.from({ length: r + 1 }, (s, o) => Array.from({ length: r + 2 }, (i, c) => c === r + 1 ? t.reduce((a, [l, p]) => a + p * l ** o, 0) : t.reduce((a, [l]) => a + l ** (o + c), 0)));
|
|
1726
|
+
return fn(n);
|
|
1727
|
+
}
|
|
1728
|
+
function dn(t, e) {
|
|
1729
|
+
const r = pe(t).sort(([i], [c]) => i - c);
|
|
1730
|
+
if (!r.length) return [];
|
|
1731
|
+
const n = typeof e.method == "string" ? e.method : "linear", s = `y = ${n}`;
|
|
1732
|
+
if (n === "exponential") {
|
|
1733
|
+
const i = r.filter(([, a]) => a > 0), c = ot(i.map(([a, l]) => [a, Math.log(l)]));
|
|
1734
|
+
return c ? r.map(([a]) => [a, Math.exp(c.intercept + c.slope * a), s]) : r.map(([a, l]) => [a, l, s]);
|
|
1735
|
+
}
|
|
1736
|
+
if (n === "logarithmic") {
|
|
1737
|
+
const i = r.filter(([a]) => a > 0), c = ot(i.map(([a, l]) => [Math.log(a), l]));
|
|
1738
|
+
return c ? r.map(([a]) => [a, c.slope * Math.log(a) + c.intercept, s]) : r.map(([a, l]) => [a, l, s]);
|
|
1739
|
+
}
|
|
1740
|
+
if (n === "polynomial") {
|
|
1741
|
+
const i = pn(r, Number(e.order) || 2);
|
|
1742
|
+
return i.length ? r.map(([c]) => [
|
|
1743
|
+
c,
|
|
1744
|
+
i.reduce((a, l, p) => a + l * c ** p, 0),
|
|
1745
|
+
s
|
|
1746
|
+
]) : r.map(([c, a]) => [c, a, s]);
|
|
1747
|
+
}
|
|
1748
|
+
const o = ot(r);
|
|
1749
|
+
return o ? r.map(([i]) => [i, o.slope * i + o.intercept, s]) : r.map(([i, c]) => [i, c, s]);
|
|
1750
|
+
}
|
|
1751
|
+
function Ft(t) {
|
|
1752
|
+
if (!f(t)) return null;
|
|
1753
|
+
const e = t.transform;
|
|
1754
|
+
return !f(e) || e.type !== "ecStat:regression" ? null : f(e.config) ? e.config : {};
|
|
1755
|
+
}
|
|
1756
|
+
function jt(t) {
|
|
1757
|
+
if (!f(t)) return null;
|
|
1758
|
+
const e = t.transform;
|
|
1759
|
+
return !f(e) || e.type !== "ecStat:histogram" ? null : f(e.config) ? e.config : {};
|
|
1760
|
+
}
|
|
1761
|
+
function mn(t) {
|
|
1762
|
+
const e = t.dimensions;
|
|
1763
|
+
return Array.isArray(e) && typeof e[0] == "number" ? e[0] : typeof e == "number" ? e : 0;
|
|
1764
|
+
}
|
|
1765
|
+
function kt(t, e) {
|
|
1766
|
+
if (!t.length) return Number.NaN;
|
|
1767
|
+
const r = (t.length - 1) * e, n = Math.floor(r), s = Math.ceil(r);
|
|
1768
|
+
return n === s ? t[n] : t[n] + (t[s] - t[n]) * (r - n);
|
|
1769
|
+
}
|
|
1770
|
+
function yn(t, e) {
|
|
1771
|
+
const r = mn(e), n = de(t).map((d) => Array.isArray(d) ? Number(d[r]) : Number.NaN).filter((d) => Number.isFinite(d)).sort((d, y) => d - y);
|
|
1772
|
+
if (!n.length) return [];
|
|
1773
|
+
const s = n[0], o = n[n.length - 1], i = kt(n, 0.75) - kt(n, 0.25), c = i > 0 ? 2 * i / Math.cbrt(n.length) : (o - s) / Math.sqrt(n.length), a = Number.isFinite(c) && c > 0 ? c : 1, l = Math.max(1, Math.ceil((o - s || 1) / a)), p = (o - s || 1) / l, u = Array.from({ length: l }, () => 0);
|
|
1774
|
+
return n.forEach((d) => {
|
|
1775
|
+
const y = Math.floor((d - s) / p), h = Math.min(l - 1, Math.max(0, y));
|
|
1776
|
+
u[h] += 1;
|
|
1777
|
+
}), u.map((d, y) => {
|
|
1778
|
+
const h = s + y * p, b = y === l - 1 ? o : h + p;
|
|
1779
|
+
return [(h + b) / 2, d, h, b, `${h.toFixed(2)} - ${b.toFixed(2)}`];
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
function hn(t, e) {
|
|
1783
|
+
const r = de(e), n = ln(e);
|
|
1784
|
+
return !r.length && !n.length ? t : t.map((s, o) => o !== 0 || !f(s) ? s : {
|
|
1785
|
+
...s,
|
|
1786
|
+
...r.length ? { source: r } : {},
|
|
1787
|
+
...n.length ? { dimensions: n } : {}
|
|
1788
|
+
});
|
|
1789
|
+
}
|
|
1790
|
+
function gn(t, e) {
|
|
1791
|
+
return t.some((r) => jt(r)) ? t.map((r, n) => {
|
|
1792
|
+
const s = jt(r);
|
|
1793
|
+
if (!s) return n === 0 && f(r), r;
|
|
1794
|
+
if (!f(r)) return r;
|
|
1795
|
+
const { transform: o, ...i } = r;
|
|
1796
|
+
return {
|
|
1797
|
+
...i,
|
|
1798
|
+
source: yn(e, s)
|
|
1799
|
+
};
|
|
1800
|
+
}) : null;
|
|
1801
|
+
}
|
|
1802
|
+
function An(t) {
|
|
1803
|
+
if (!f(t) || t.type !== "pattern") return !1;
|
|
1804
|
+
const e = t.image;
|
|
1805
|
+
return !!(e && typeof e == "object");
|
|
1806
|
+
}
|
|
1807
|
+
function pt(t) {
|
|
1808
|
+
if (Array.isArray(t))
|
|
1809
|
+
return t.map((r) => pt(r));
|
|
1810
|
+
if (!f(t)) return t;
|
|
1811
|
+
const e = {};
|
|
1812
|
+
return Object.entries(t).forEach(([r, n]) => {
|
|
1813
|
+
An(n) || (e[r] = pt(n));
|
|
1814
|
+
}), e;
|
|
1815
|
+
}
|
|
1816
|
+
function bn(t) {
|
|
1817
|
+
return (t.type === "linear" || t.type === "radial") && Array.isArray(t.colorStops);
|
|
1818
|
+
}
|
|
1819
|
+
function xn(t, e, r) {
|
|
1820
|
+
if (!f(t)) return t;
|
|
1821
|
+
const n = r <= 1 ? 0 : e / (r - 1), s = Number(t.offset), o = Number.isFinite(s) ? Math.min(1, Math.max(0, s)) : n;
|
|
1822
|
+
return { ...t, offset: o };
|
|
1823
|
+
}
|
|
1824
|
+
function dt(t) {
|
|
1825
|
+
if (Array.isArray(t))
|
|
1826
|
+
return t.map((r) => dt(r));
|
|
1827
|
+
if (!f(t)) return t;
|
|
1828
|
+
const e = {};
|
|
1829
|
+
if (Object.entries(t).forEach(([r, n]) => {
|
|
1830
|
+
e[r] = dt(n);
|
|
1831
|
+
}), bn(e)) {
|
|
1832
|
+
const r = e.colorStops;
|
|
1833
|
+
e.colorStops = r.map((n, s) => xn(n, s, r.length));
|
|
1834
|
+
}
|
|
1835
|
+
return e;
|
|
1836
|
+
}
|
|
1837
|
+
function mt(t) {
|
|
1838
|
+
return Array.isArray(t) ? t.some(mt) : f(t) ? Object.entries(t).some(([e, r]) => e === "coordinateSystem" && r === "bmap" || e === "bmap" || mt(r)) : !1;
|
|
1839
|
+
}
|
|
1840
|
+
function yt(t) {
|
|
1841
|
+
return Array.isArray(t) ? t.some(yt) : f(t) ? Object.entries(t).some(([e, r]) => e === "coordinateSystem" && (r === "calendar" || r === "matrix") || e === "calendar" || e === "matrix" || yt(r)) : !1;
|
|
1842
|
+
}
|
|
1843
|
+
function J(t) {
|
|
1844
|
+
if (Array.isArray(t)) return t.map((n) => J(n));
|
|
1845
|
+
if (!f(t)) return t;
|
|
1846
|
+
const e = yt(t), r = {};
|
|
1847
|
+
return Object.entries(t).forEach(([n, s]) => {
|
|
1848
|
+
e && (n === "xAxis" || n === "yAxis" || n === "grid") || (r[n] = J(s));
|
|
1849
|
+
}), r;
|
|
1850
|
+
}
|
|
1851
|
+
function me(t) {
|
|
1852
|
+
return t.type === "funnel" || t.type === "pie" || t.type === "radar" || t.type === "gauge";
|
|
1853
|
+
}
|
|
1854
|
+
function _n(t) {
|
|
1855
|
+
if (!me(t)) return t;
|
|
1856
|
+
const {
|
|
1857
|
+
coordinateSystem: e,
|
|
1858
|
+
xAxisIndex: r,
|
|
1859
|
+
yAxisIndex: n,
|
|
1860
|
+
gridIndex: s,
|
|
1861
|
+
...o
|
|
1862
|
+
} = t;
|
|
1863
|
+
return o;
|
|
1864
|
+
}
|
|
1865
|
+
function On(t) {
|
|
1866
|
+
if (t.type !== "funnel") return t;
|
|
1867
|
+
const { right: e, ...r } = t;
|
|
1868
|
+
return {
|
|
1869
|
+
...r,
|
|
1870
|
+
left: "center",
|
|
1871
|
+
width: "70%"
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
function zt(t) {
|
|
1875
|
+
if (!f(t)) return t;
|
|
1876
|
+
const e = t, r = e.series, n = Array.isArray(r) ? r.filter(f) : f(r) ? [r] : [];
|
|
1877
|
+
if (n.length === 0) return t;
|
|
1878
|
+
let s = n.map(_n);
|
|
1879
|
+
const o = s.every(me);
|
|
1880
|
+
s.length === 1 && s[0].type === "funnel" && (s = [On(s[0])]);
|
|
1881
|
+
const i = {
|
|
1882
|
+
...e,
|
|
1883
|
+
series: Array.isArray(r) ? s : s[0]
|
|
1884
|
+
};
|
|
1885
|
+
return o && (delete i.xAxis, delete i.yAxis, delete i.grid), i;
|
|
1886
|
+
}
|
|
1887
|
+
function Lt(t) {
|
|
1888
|
+
const e = t;
|
|
1889
|
+
if (!f(e.matrix)) return t;
|
|
1890
|
+
const r = Array.isArray(e.series) ? e.series : e.series ? [e.series] : [];
|
|
1891
|
+
if (!r.some(Vt)) return t;
|
|
1892
|
+
const n = e.matrix, s = f(n.x) ? n.x : {}, o = f(n.y) ? n.y : {}, i = lt(s.data), c = lt(o.data);
|
|
1893
|
+
if (!i.length || !c.length) return t;
|
|
1894
|
+
const { matrix: a, ...l } = e;
|
|
1895
|
+
return {
|
|
1896
|
+
...l,
|
|
1897
|
+
grid: f(e.grid) ? { containLabel: !0, ...e.grid } : { left: 72, right: 32, top: 72, bottom: 48, containLabel: !0 },
|
|
1898
|
+
xAxis: { type: "category", ...s.show === !1 ? { show: !1 } : {}, data: i },
|
|
1899
|
+
yAxis: { type: "category", ...o.show === !1 ? { show: !1 } : {}, data: c },
|
|
1900
|
+
series: r.map((p) => {
|
|
1901
|
+
if (!Vt(p)) return p;
|
|
1902
|
+
const { coordinateSystem: u, ...d } = p;
|
|
1903
|
+
return {
|
|
1904
|
+
...d,
|
|
1905
|
+
data: sn(d.data, i, c)
|
|
1906
|
+
};
|
|
1907
|
+
})
|
|
1908
|
+
};
|
|
1909
|
+
}
|
|
1910
|
+
function j(t) {
|
|
1911
|
+
if (Array.isArray(t)) return t.map((r) => j(r));
|
|
1912
|
+
if (!f(t)) return t;
|
|
1913
|
+
const e = {};
|
|
1914
|
+
return Object.entries(t).forEach(([r, n]) => {
|
|
1915
|
+
if (r !== "bmap") {
|
|
1916
|
+
if ((r === "map" || r === "mapType") && typeof n == "string") {
|
|
1917
|
+
e[r] = "workbench-regions";
|
|
1918
|
+
return;
|
|
1919
|
+
}
|
|
1920
|
+
if (r === "coordinateSystem" && n === "bmap") {
|
|
1921
|
+
e[r] = "geo";
|
|
1922
|
+
return;
|
|
1923
|
+
}
|
|
1924
|
+
e[r] = j(n);
|
|
1925
|
+
}
|
|
1926
|
+
}), e.type === "map" && typeof e.map != "string" && typeof e.mapType != "string" && (e.map = "workbench-regions"), e;
|
|
1927
|
+
}
|
|
1928
|
+
function ht(t, e = "") {
|
|
1929
|
+
if (Array.isArray(t)) return t.map((s) => ht(s, e));
|
|
1930
|
+
if (!f(t)) return t;
|
|
1931
|
+
const r = {};
|
|
1932
|
+
let n = !1;
|
|
1933
|
+
return Object.entries(t).forEach(([s, o]) => {
|
|
1934
|
+
if (typeof o == "string" && nn(o)) {
|
|
1935
|
+
if (s === "environment") {
|
|
1936
|
+
r[s] = rn;
|
|
1937
|
+
return;
|
|
1938
|
+
}
|
|
1939
|
+
if (s === "baseTexture" || s === "heightTexture") {
|
|
1940
|
+
n = !0;
|
|
1941
|
+
return;
|
|
1942
|
+
}
|
|
1943
|
+
if (tn.has(s)) return;
|
|
1944
|
+
}
|
|
1945
|
+
r[s] = ht(o, s);
|
|
1946
|
+
}), e === "globe" && n && !r.baseColor && (r.baseColor = en), r;
|
|
1947
|
+
}
|
|
1948
|
+
function ye(t) {
|
|
1949
|
+
if (Array.isArray(t))
|
|
1950
|
+
return t.map((n) => ye(n));
|
|
1951
|
+
if (!f(t)) return t;
|
|
1952
|
+
const { data: e, ...r } = t;
|
|
1953
|
+
return r;
|
|
1954
|
+
}
|
|
1955
|
+
function he(t) {
|
|
1956
|
+
if (!t || t.protocolType !== "series") return !1;
|
|
1957
|
+
const e = f(t.categories) && Array.isArray(t.categories.xAxis) ? t.categories.xAxis : Array.isArray(t.categories) ? t.categories : [], r = Array.isArray(t.series) ? t.series : [];
|
|
1958
|
+
return e.length > 0 || r.some((n) => f(n) && Array.isArray(n.data) && n.data.length > 0);
|
|
1959
|
+
}
|
|
1960
|
+
function $t(t) {
|
|
1961
|
+
if (!f(t)) return t;
|
|
1962
|
+
const {
|
|
1963
|
+
startValue: e,
|
|
1964
|
+
endValue: r,
|
|
1965
|
+
...n
|
|
1966
|
+
} = t;
|
|
1967
|
+
return {
|
|
1968
|
+
...n,
|
|
1969
|
+
start: 0,
|
|
1970
|
+
end: 100
|
|
1971
|
+
};
|
|
1972
|
+
}
|
|
1973
|
+
function ge(t) {
|
|
1974
|
+
return Array.isArray(t) ? t.map($t) : $t(t);
|
|
1975
|
+
}
|
|
1976
|
+
function Sn(t, e) {
|
|
1977
|
+
if (!f(t)) return t;
|
|
1978
|
+
const r = t, n = r.dataZoom;
|
|
1979
|
+
return n === void 0 || !he(e) ? t : {
|
|
1980
|
+
...r,
|
|
1981
|
+
dataZoom: ge(n)
|
|
1982
|
+
};
|
|
1983
|
+
}
|
|
1984
|
+
function Ht(t, e) {
|
|
1985
|
+
const r = mt(t), n = j(
|
|
1986
|
+
ht(
|
|
1987
|
+
pt(
|
|
1988
|
+
dt(
|
|
1989
|
+
ft(q(t))
|
|
1990
|
+
)
|
|
1991
|
+
)
|
|
1992
|
+
)
|
|
1993
|
+
);
|
|
1994
|
+
if (r && !n.geo && (n.geo = {
|
|
1995
|
+
map: "workbench-regions",
|
|
1996
|
+
roam: !0
|
|
1997
|
+
}), e && n.legend !== void 0 && (n.legend = ye(n.legend)), n.dataZoom !== void 0 && he(e) && (n.dataZoom = ge(n.dataZoom)), M(e)) {
|
|
1998
|
+
n.title = Ot(n.title), n.tooltip = St(n.tooltip);
|
|
1999
|
+
const l = Cn(n.series, e);
|
|
2000
|
+
l === void 0 ? delete n.series : n.series = l;
|
|
2001
|
+
}
|
|
2002
|
+
n.dataset && Array.isArray(n.series) && (n.series = un(n.series));
|
|
2003
|
+
const s = n.dataset;
|
|
2004
|
+
if (!Array.isArray(s)) return n;
|
|
2005
|
+
const o = hn(s, e), i = gn(o, e);
|
|
2006
|
+
n.dataset = i || o;
|
|
2007
|
+
const c = n.dataset, a = c.findIndex((l) => Ft(l));
|
|
2008
|
+
if (a > 0) {
|
|
2009
|
+
const l = Ft(c[a]) || {};
|
|
2010
|
+
return n.dataset = [
|
|
2011
|
+
{ source: pe(e) },
|
|
2012
|
+
{ source: dn(e, l) }
|
|
2013
|
+
], n;
|
|
2014
|
+
}
|
|
2015
|
+
if (c.some(an)) {
|
|
2016
|
+
const { dataset: l, visualMap: p, ...u } = n;
|
|
2017
|
+
return {
|
|
2018
|
+
...u,
|
|
2019
|
+
...Array.isArray(u.series) ? { series: cn(u.series) } : {}
|
|
2020
|
+
};
|
|
2021
|
+
}
|
|
2022
|
+
return n;
|
|
2023
|
+
}
|
|
2024
|
+
function M(t) {
|
|
2025
|
+
return !!(t && t.protocolType === "series");
|
|
2026
|
+
}
|
|
2027
|
+
function Nn(t) {
|
|
2028
|
+
const e = t;
|
|
2029
|
+
if (Array.isArray(e.series)) return e.series.filter(f).length;
|
|
2030
|
+
const r = f(e.dataset) ? e.dataset : void 0;
|
|
2031
|
+
return Array.isArray(r == null ? void 0 : r.series) ? r.series.filter(f).length : 0;
|
|
2032
|
+
}
|
|
2033
|
+
function Ot(t) {
|
|
2034
|
+
if (Array.isArray(t)) return t.map(Ot);
|
|
2035
|
+
if (!f(t)) return t;
|
|
2036
|
+
const {
|
|
2037
|
+
text: e,
|
|
2038
|
+
subtext: r,
|
|
2039
|
+
link: n,
|
|
2040
|
+
sublink: s,
|
|
2041
|
+
target: o,
|
|
2042
|
+
subtarget: i,
|
|
2043
|
+
...c
|
|
2044
|
+
} = t;
|
|
2045
|
+
return c;
|
|
2046
|
+
}
|
|
2047
|
+
function St(t) {
|
|
2048
|
+
if (Array.isArray(t)) return t.map(St);
|
|
2049
|
+
if (!f(t)) return t;
|
|
2050
|
+
const { formatter: e, ...r } = t;
|
|
2051
|
+
return r;
|
|
2052
|
+
}
|
|
2053
|
+
function Cn(t, e) {
|
|
2054
|
+
const r = Nn(e);
|
|
2055
|
+
if (r <= 0) return;
|
|
2056
|
+
if (!Array.isArray(t))
|
|
2057
|
+
return [Y(t) ?? {}];
|
|
2058
|
+
const n = r === 1 ? En(t) : void 0;
|
|
2059
|
+
return n || Array.from({ length: r }, (s, o) => Y(t[o]) ?? {});
|
|
2060
|
+
}
|
|
2061
|
+
function H(t) {
|
|
2062
|
+
const e = typeof t == "string" ? t.trim().toLowerCase().replace(/\s+/gu, "") : "";
|
|
2063
|
+
return e === "transparent" || e === "rgba(0,0,0,0)" || e === "rgba(255,255,255,0)";
|
|
2064
|
+
}
|
|
2065
|
+
function Wt(t) {
|
|
2066
|
+
if (!f(t) || t.type !== "bar" || typeof t.stack != "string") return !1;
|
|
2067
|
+
const e = f(t.itemStyle) ? t.itemStyle : {}, r = f(t.emphasis) ? t.emphasis : {}, n = f(r.itemStyle) ? r.itemStyle : {};
|
|
2068
|
+
return H(e.color) || H(e.borderColor) || H(n.color) || H(n.borderColor);
|
|
2069
|
+
}
|
|
2070
|
+
function En(t) {
|
|
2071
|
+
const e = t.findIndex(Wt);
|
|
2072
|
+
if (e < 0) return;
|
|
2073
|
+
const r = t[e], n = typeof r.stack == "string" ? r.stack : void 0, s = t.findIndex((o, i) => i !== e && f(o) && o.type === "bar" && typeof o.stack == "string" && o.stack === n && !Wt(o));
|
|
2074
|
+
if (!(s < 0))
|
|
2075
|
+
return [
|
|
2076
|
+
Y(t[e]) ?? {},
|
|
2077
|
+
Y(t[s]) ?? {}
|
|
2078
|
+
];
|
|
2079
|
+
}
|
|
2080
|
+
function Y(t) {
|
|
2081
|
+
if (!f(t)) return;
|
|
2082
|
+
const {
|
|
2083
|
+
id: e,
|
|
2084
|
+
name: r,
|
|
2085
|
+
data: n,
|
|
2086
|
+
...s
|
|
2087
|
+
} = t;
|
|
2088
|
+
return s;
|
|
2089
|
+
}
|
|
2090
|
+
function Bt(t, e) {
|
|
2091
|
+
if (!M(e)) return t;
|
|
2092
|
+
const r = { ...t };
|
|
2093
|
+
return r.title = Ot(r.title), r.tooltip = St(r.tooltip), r;
|
|
2094
|
+
}
|
|
2095
|
+
const wn = {
|
|
2096
|
+
series: Rr,
|
|
2097
|
+
table: kr,
|
|
2098
|
+
tuple: Lr,
|
|
2099
|
+
tree: $r,
|
|
2100
|
+
network: Hr,
|
|
2101
|
+
geo: Br,
|
|
2102
|
+
scene3D: Ur,
|
|
2103
|
+
timeline: Gr,
|
|
2104
|
+
transition: Zr,
|
|
2105
|
+
graphic: Xr,
|
|
2106
|
+
layout: Kr,
|
|
2107
|
+
composite: qr,
|
|
2108
|
+
configOnly: Jr
|
|
2109
|
+
};
|
|
2110
|
+
class Rn {
|
|
2111
|
+
constructor() {
|
|
2112
|
+
/** 当前已生成的 ECharts option */
|
|
2113
|
+
tt(this, "currentOption", null);
|
|
2114
|
+
/** 当前保存的协议配置 */
|
|
2115
|
+
tt(this, "config", null);
|
|
2116
|
+
}
|
|
2117
|
+
/**
|
|
2118
|
+
* 设置协议配置并生成初始 ECharts option。
|
|
2119
|
+
* 若转换器构建 option 失败,会尝试回退到 config 中的 optionPatch。
|
|
2120
|
+
*
|
|
2121
|
+
* @param config - 协议配置载荷,定义图表的骨架结构
|
|
2122
|
+
* @returns 生成的 ECharts option
|
|
2123
|
+
* @throws 当转换器未找到或构建失败且无 optionPatch 可回退时抛出异常
|
|
2124
|
+
*/
|
|
2125
|
+
setConfig(e) {
|
|
2126
|
+
this.config = e;
|
|
2127
|
+
try {
|
|
2128
|
+
const r = this.resolveConverter(e.protocolType);
|
|
2129
|
+
this.currentOption = this.applyOptionPatch(r.buildOption(this.configWithoutOptionPatch(e)));
|
|
2130
|
+
} catch (r) {
|
|
2131
|
+
if (e.optionPatch)
|
|
2132
|
+
this.currentOption = I({}, e.optionPatch);
|
|
2133
|
+
else
|
|
2134
|
+
throw r;
|
|
2135
|
+
}
|
|
2136
|
+
return this.currentOption;
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* 将数据载荷合并到当前 ECharts option 中。
|
|
2140
|
+
* 必须先调用 setConfig 设置配置,否则无法合并数据。
|
|
2141
|
+
* 若合并过程出错,会安全地返回当前未修改的 option。
|
|
2142
|
+
*
|
|
2143
|
+
* @param data - 协议数据载荷,包含图表展示所需的实际数据
|
|
2144
|
+
* @returns 更新后的 ECharts option;若未设置配置或合并失败则返回当前 option
|
|
2145
|
+
*/
|
|
2146
|
+
setData(e) {
|
|
2147
|
+
if (!this.config || !this.currentOption)
|
|
2148
|
+
return this.currentOption;
|
|
2149
|
+
try {
|
|
2150
|
+
const r = this.resolveConverter(this.config.protocolType), n = f(this.currentOption) ? this.currentOption.dataZoom : void 0, s = r.buildOption(this.configWithoutOptionPatch(this.config)), o = M(e) && this.config.optionPatch ? I(s, Ht(this.config.optionPatch, e)) : s, i = q(o), c = r.mergeData(i, e), a = M(e) ? Lt(zt(
|
|
2151
|
+
J(
|
|
2152
|
+
j(Bt(c, e))
|
|
2153
|
+
)
|
|
2154
|
+
)) : this.applyOptionPatch(c, e), l = n !== void 0 && f(a) && a.dataZoom === void 0 ? { ...a, dataZoom: n } : a;
|
|
2155
|
+
this.currentOption = this.normalizeRuntimeDataZoom(l, e);
|
|
2156
|
+
} catch (r) {
|
|
2157
|
+
console.warn(
|
|
2158
|
+
`[EChartsProtocolAdapter] setData failed for protocol "${this.config.protocolType}":`,
|
|
2159
|
+
r
|
|
2160
|
+
);
|
|
2161
|
+
}
|
|
2162
|
+
return this.currentOption;
|
|
2163
|
+
}
|
|
2164
|
+
/**
|
|
2165
|
+
* 获取当前 ECharts option。
|
|
2166
|
+
*
|
|
2167
|
+
* @returns 当前的 ECharts option,若尚未设置配置则返回 null
|
|
2168
|
+
*/
|
|
2169
|
+
getOption() {
|
|
2170
|
+
return this.currentOption;
|
|
2171
|
+
}
|
|
2172
|
+
/**
|
|
2173
|
+
* 重置适配器状态,清空配置和 option。
|
|
2174
|
+
*/
|
|
2175
|
+
reset() {
|
|
2176
|
+
this.currentOption = null, this.config = null;
|
|
2177
|
+
}
|
|
2178
|
+
/**
|
|
2179
|
+
* 根据协议类型从映射表中查找对应的转换器。
|
|
2180
|
+
*
|
|
2181
|
+
* @param protocolType - 协议类型标识
|
|
2182
|
+
* @returns 对应的协议转换器实例
|
|
2183
|
+
* @throws 当协议类型未注册时抛出错误
|
|
2184
|
+
*/
|
|
2185
|
+
resolveConverter(e) {
|
|
2186
|
+
const r = wn[e];
|
|
2187
|
+
if (!r)
|
|
2188
|
+
throw new Error(
|
|
2189
|
+
`[EChartsProtocolAdapter] No converter registered for protocol type: "${e}"`
|
|
2190
|
+
);
|
|
2191
|
+
return r;
|
|
2192
|
+
}
|
|
2193
|
+
/**
|
|
2194
|
+
* 移除配置中的 optionPatch,让各协议转换器只负责生成基础 option。
|
|
2195
|
+
* @param config - 原始协议配置
|
|
2196
|
+
* @returns 不含 optionPatch 的协议配置
|
|
2197
|
+
*/
|
|
2198
|
+
configWithoutOptionPatch(e) {
|
|
2199
|
+
const { optionPatch: r, ...n } = e;
|
|
2200
|
+
return n;
|
|
2201
|
+
}
|
|
2202
|
+
/**
|
|
2203
|
+
* 将当前配置中的 optionPatch 深合并到 ECharts option。
|
|
2204
|
+
* @param option - 转换器生成或刷新数据后的基础 option
|
|
2205
|
+
* @returns 合并用户展示补丁后的 ECharts option
|
|
2206
|
+
*/
|
|
2207
|
+
applyOptionPatch(e, r) {
|
|
2208
|
+
var i;
|
|
2209
|
+
const n = (i = this.config) != null && i.optionPatch ? I(e, Ht(this.config.optionPatch, r)) : e, s = Bt(n, r), o = J(
|
|
2210
|
+
j(s)
|
|
2211
|
+
);
|
|
2212
|
+
return Lt(
|
|
2213
|
+
M(r) ? zt(o) : o
|
|
2214
|
+
);
|
|
2215
|
+
}
|
|
2216
|
+
/**
|
|
2217
|
+
* 对最终 ECharts option 上的 dataZoom 做一次兜底归一化,覆盖模板 optionPatch 之外的
|
|
2218
|
+
* dataZoom 来源(AI 注入、converter 内联、用户改卡等),保证运行时全量数据默认可见。
|
|
2219
|
+
* @param option - 已合并的最终 ECharts option
|
|
2220
|
+
* @param data - 协议数据载荷,用于判定是否存在真实运行时数据
|
|
2221
|
+
* @returns dataZoom 已被归一化为 start:0,end:100 的 option
|
|
2222
|
+
*/
|
|
2223
|
+
normalizeRuntimeDataZoom(e, r) {
|
|
2224
|
+
return Sn(e, r);
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
export {
|
|
2228
|
+
Rn as EChartsProtocolAdapter,
|
|
2229
|
+
I as deepMergeOption
|
|
2230
|
+
};
|