paul-ai-assistant 0.1.16
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/README.md +249 -0
- package/dist/1.async.js +61 -0
- package/dist/1013.async.js +1 -0
- package/dist/123.async.js +258 -0
- package/dist/1387.async.js +321 -0
- package/dist/1481.async.js +1 -0
- package/dist/1548.async.js +2 -0
- package/dist/1815.async.js +3 -0
- package/dist/1819.async.js +1 -0
- package/dist/1851.async.js +1 -0
- package/dist/2491.async.js +132 -0
- package/dist/2517.async.js +247 -0
- package/dist/2678.async.js +1 -0
- package/dist/2856.async.js +267 -0
- package/dist/295.async.js +1 -0
- package/dist/3098.async.js +1 -0
- package/dist/3138.async.js +1 -0
- package/dist/34.async.js +137 -0
- package/dist/3472.async.js +1 -0
- package/dist/3614.async.js +25 -0
- package/dist/3959.async.js +69 -0
- package/dist/404.html +44 -0
- package/dist/4484.async.js +10 -0
- package/dist/4498.async.js +37 -0
- package/dist/4911.async.js +1 -0
- package/dist/4927.async.js +104 -0
- package/dist/5067.async.js +44 -0
- package/dist/5588.async.js +8 -0
- package/dist/5754.async.js +5 -0
- package/dist/6254.async.js +30286 -0
- package/dist/6355.async.js +10 -0
- package/dist/6662.async.js +177 -0
- package/dist/6680.async.js +2615 -0
- package/dist/6690.async.js +153 -0
- package/dist/7267.async.js +31 -0
- package/dist/7329.async.js +180 -0
- package/dist/7718.async.js +61 -0
- package/dist/7762.async.js +3 -0
- package/dist/7787.async.js +7 -0
- package/dist/7929.async.js +1 -0
- package/dist/8164.async.js +1 -0
- package/dist/834.async.js +221 -0
- package/dist/8456.async.js +146 -0
- package/dist/8542.async.js +25 -0
- package/dist/8749.async.js +1 -0
- package/dist/8914.async.js +66 -0
- package/dist/9570.async.js +65 -0
- package/dist/9725.async.js +18 -0
- package/dist/components/llm-trace-v2/index.html +44 -0
- package/dist/components/llm-trace-v3/index.html +44 -0
- package/dist/components/llm-trace-v3-advanced/index.html +44 -0
- package/dist/components/llm-trace-v3-examples/index.html +44 -0
- package/dist/components/llm-trace-v3-visual-demos/index.html +44 -0
- package/dist/demos.async.js +594 -0
- package/dist/demos__index.md.async.js +1 -0
- package/dist/demos__markdown-latex-mermaid__index.md.async.js +1 -0
- package/dist/demos__toolChatType__index.md.async.js +1 -0
- package/dist/docs/index.html +44 -0
- package/dist/docs__components__llm-trace-v2.md.async.js +1 -0
- package/dist/docs__components__llm-trace-v3-advanced.md.async.js +1 -0
- package/dist/docs__components__llm-trace-v3-examples.md.async.js +1 -0
- package/dist/docs__components__llm-trace-v3-visual-demos.md.async.js +1 -0
- package/dist/docs__components__llm-trace-v3.md.async.js +61 -0
- package/dist/docs__docs__index.md.async.js +108 -0
- package/dist/docs__index.md.async.js +1 -0
- package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -0
- package/dist/index.html +44 -0
- package/dist/markdown-latex-mermaid/index.html +44 -0
- package/dist/meta__demos.async.js +4272 -0
- package/dist/meta__docs.async.js +3416 -0
- package/dist/nm__dumi__dist__client__pages__404.async.js +29 -0
- package/dist/nm__dumi__dist__client__pages__Demo__index.async.js +5 -0
- package/dist/nm__dumi__theme-default__layouts__DocLayout__index.async.js +1 -0
- package/dist/preload_helper.js +1 -0
- package/dist/static/KaTeX_AMS-Regular.1608a09b.woff +0 -0
- package/dist/static/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
- package/dist/static/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
- package/dist/static/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
- package/dist/static/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
- package/dist/static/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
- package/dist/static/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
- package/dist/static/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
- package/dist/static/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
- package/dist/static/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
- package/dist/static/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
- package/dist/static/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
- package/dist/static/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
- package/dist/static/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
- package/dist/static/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
- package/dist/static/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
- package/dist/static/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
- package/dist/static/KaTeX_Main-Bold.d181c465.woff +0 -0
- package/dist/static/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
- package/dist/static/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
- package/dist/static/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
- package/dist/static/KaTeX_Main-Italic.47373d1e.ttf +0 -0
- package/dist/static/KaTeX_Main-Italic.8916142b.woff2 +0 -0
- package/dist/static/KaTeX_Main-Italic.9024d815.woff +0 -0
- package/dist/static/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
- package/dist/static/KaTeX_Main-Regular.7f51fe03.woff +0 -0
- package/dist/static/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
- package/dist/static/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
- package/dist/static/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
- package/dist/static/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
- package/dist/static/KaTeX_Math-Italic.5295ba48.woff +0 -0
- package/dist/static/KaTeX_Math-Italic.939bc644.ttf +0 -0
- package/dist/static/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
- package/dist/static/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
- package/dist/static/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
- package/dist/static/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
- package/dist/static/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
- package/dist/static/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
- package/dist/static/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
- package/dist/static/KaTeX_SansSerif-Regular.74048478.woff +0 -0
- package/dist/static/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
- package/dist/static/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
- package/dist/static/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
- package/dist/static/KaTeX_Script-Regular.07505710.woff +0 -0
- package/dist/static/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
- package/dist/static/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
- package/dist/static/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
- package/dist/static/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
- package/dist/static/KaTeX_Size2-Regular.57727022.woff +0 -0
- package/dist/static/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
- package/dist/static/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
- package/dist/static/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
- package/dist/static/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
- package/dist/static/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
- package/dist/static/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
- package/dist/static/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
- package/dist/static/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
- package/dist/static/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
- package/dist/static/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
- package/dist/static/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
- package/dist/tool-chat-type/index.html +44 -0
- package/dist/umi.js +1534 -0
- package/dist/~demos/:id/index.html +44 -0
- package/dist/~demos/demos-markdown-latex-mermaid-demo-markdown-latex-mermaid/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-agentschemaformdemo/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-assistant-drawer/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-chat-input-demo/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-chat-list-demo/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-chat-scenario-demo/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-schema-input/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-toolchattype/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-4/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-4/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-4/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-5/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-6/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-7/index.html +44 -0
- package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.d.ts +8 -0
- package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.js +124 -0
- package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.d.ts +9 -0
- package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.js +64 -0
- package/es/AssistantChat/AssistantChatApp/const.d.ts +51 -0
- package/es/AssistantChat/AssistantChatApp/const.js +105 -0
- package/es/AssistantChat/AssistantChatApp/index.d.ts +4 -0
- package/es/AssistantChat/AssistantChatApp/index.js +281 -0
- package/es/AssistantChat/AssistantChatApp/index.scss +327 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.js +125 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.js +1 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.d.ts +5 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.js +24 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.d.ts +7 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.js +58 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.js +8 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.js +9 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.js +47 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.d.ts +29 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.js +95 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.d.ts +4 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.js +100 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.scss +18 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.d.ts +2 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.js +36 -0
- package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.d.ts +4 -0
- package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.js +95 -0
- package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.scss +20 -0
- package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.d.ts +16 -0
- package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.js +17 -0
- package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.scss +99 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.d.ts +14 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.js +273 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.scss +101 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.d.ts +78 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.js +123 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.scss +12 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.d.ts +7 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.js +29 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.d.ts +7 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.js +64 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.js +19 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.d.ts +11 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.js +91 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.js +26 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.d.ts +4 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.js +43 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.scss +14 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.d.ts +21 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.js +141 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.d.ts +7 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +74 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.d.ts +8 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.js +54 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.scss +98 -0
- package/es/AssistantChat/AssistantChatCard/index.d.ts +5 -0
- package/es/AssistantChat/AssistantChatCard/index.js +10 -0
- package/es/AssistantChat/AssistantChatInput/index.d.ts +5 -0
- package/es/AssistantChat/AssistantChatInput/index.js +172 -0
- package/es/AssistantChat/AssistantChatInput/index.scss +85 -0
- package/es/AssistantChat/AssistantToolApp/const.d.ts +12 -0
- package/es/AssistantChat/AssistantToolApp/const.js +22 -0
- package/es/AssistantChat/AssistantToolApp/index.d.ts +4 -0
- package/es/AssistantChat/AssistantToolApp/index.js +159 -0
- package/es/AssistantChat/AssistantToolApp/index.scss +76 -0
- package/es/AssistantChat/AssistantToolExecutionApp/const.d.ts +7 -0
- package/es/AssistantChat/AssistantToolExecutionApp/const.js +23 -0
- package/es/AssistantChat/AssistantToolExecutionApp/index.d.ts +4 -0
- package/es/AssistantChat/AssistantToolExecutionApp/index.js +66 -0
- package/es/AssistantChat/AssistantToolExecutionApp/index.scss +39 -0
- package/es/AssistantChat/AssistentError/index.d.ts +5 -0
- package/es/AssistantChat/AssistentError/index.js +138 -0
- package/es/AssistantChat/index.d.ts +6 -0
- package/es/AssistantChat/index.js +166 -0
- package/es/AssistantChat/index.scss +30 -0
- package/es/AssistantChat/logCallback/aTagLog.d.ts +1 -0
- package/es/AssistantChat/logCallback/aTagLog.js +23 -0
- package/es/AssistantChat/logCallback/copyLog.d.ts +3 -0
- package/es/AssistantChat/logCallback/copyLog.js +63 -0
- package/es/ErrorBoundary/ErrorBoundaryFallback/index.d.ts +5 -0
- package/es/ErrorBoundary/ErrorBoundaryFallback/index.js +134 -0
- package/es/ErrorBoundary/index.d.ts +22 -0
- package/es/ErrorBoundary/index.js +69 -0
- package/es/common/registerAssistChatForm.d.ts +2 -0
- package/es/common/registerAssistChatForm.js +14 -0
- package/es/components/AgentCardSubmit/index.d.ts +20 -0
- package/es/components/AgentCardSubmit/index.js +90 -0
- package/es/components/AgentResult/index.d.ts +8 -0
- package/es/components/AgentResult/index.js +77 -0
- package/es/components/AgentResult/index.scss +11 -0
- package/es/components/AgentSchemaForm/ScreenshotView.d.ts +12 -0
- package/es/components/AgentSchemaForm/ScreenshotView.js +194 -0
- package/es/components/AgentSchemaForm/ScreenshotView.scss +86 -0
- package/es/components/AgentSchemaForm/_interface.d.ts +37 -0
- package/es/components/AgentSchemaForm/_interface.js +13 -0
- package/es/components/AgentSchemaForm/index.d.ts +9 -0
- package/es/components/AgentSchemaForm/index.js +190 -0
- package/es/components/AgentSchemaForm/index.scss +37 -0
- package/es/components/AgentText/index.d.ts +4 -0
- package/es/components/AgentText/index.js +8 -0
- package/es/components/AgentText/index.scss +5 -0
- package/es/components/AigcTips/index.d.ts +9 -0
- package/es/components/AigcTips/index.js +17 -0
- package/es/components/AigcTips/index.scss +6 -0
- package/es/components/ArrayInput/index.d.ts +3 -0
- package/es/components/ArrayInput/index.js +36 -0
- package/es/components/AssistantDrawer/index.d.ts +22 -0
- package/es/components/AssistantDrawer/index.js +112 -0
- package/es/components/AssistantDrawer/index.scss +96 -0
- package/es/components/EmptyIcon/index.d.ts +3 -0
- package/es/components/EmptyIcon/index.js +124 -0
- package/es/components/HeaderSvgIcon/index.d.ts +3 -0
- package/es/components/HeaderSvgIcon/index.js +1 -0
- package/es/components/InspectionCard/index.d.ts +66 -0
- package/es/components/InspectionCard/index.js +246 -0
- package/es/components/InspectionCard/index.module.less +193 -0
- package/es/components/InspectionCard/result.d.ts +13 -0
- package/es/components/InspectionCard/result.js +26 -0
- package/es/components/InspectionCard/result.module.less +36 -0
- package/es/components/LlmMarkDown/MdAmarkGuess/index.d.ts +16 -0
- package/es/components/LlmMarkDown/MdAmarkGuess/index.js +41 -0
- package/es/components/LlmMarkDown/MdAmarkReference/index.d.ts +21 -0
- package/es/components/LlmMarkDown/MdAmarkReference/index.js +300 -0
- package/es/components/LlmMarkDown/MdAmarkReference/index.scss +122 -0
- package/es/components/LlmMarkDown/index.d.ts +30 -0
- package/es/components/LlmMarkDown/index.js +202 -0
- package/es/components/LlmMarkDown/index.scss +23 -0
- package/es/components/LlmModelChange/index.d.ts +57 -0
- package/es/components/LlmModelChange/index.js +138 -0
- package/es/components/LlmModelChange/index.scss +60 -0
- package/es/components/LlmReference/index.d.ts +25 -0
- package/es/components/LlmReference/index.js +147 -0
- package/es/components/LlmReference/index.scss +92 -0
- package/es/components/LlmTitle/index.d.ts +14 -0
- package/es/components/LlmTitle/index.js +26 -0
- package/es/components/LlmTitle/index.scss +20 -0
- package/es/components/LlmTrace/index.d.ts +17 -0
- package/es/components/LlmTrace/index.js +119 -0
- package/es/components/LlmTrace/index.scss +79 -0
- package/es/components/LlmTraceComponents/Disassemble/index.d.ts +24 -0
- package/es/components/LlmTraceComponents/Disassemble/index.js +89 -0
- package/es/components/LlmTraceComponents/Disassemble/index.scss +19 -0
- package/es/components/LlmTraceComponents/ReadResource/index.d.ts +24 -0
- package/es/components/LlmTraceComponents/ReadResource/index.js +19 -0
- package/es/components/LlmTraceComponents/ReadResource/index.scss +5 -0
- package/es/components/LlmTraceComponents/Rewrite/index.d.ts +23 -0
- package/es/components/LlmTraceComponents/Rewrite/index.js +49 -0
- package/es/components/LlmTraceComponents/Rewrite/index.scss +13 -0
- package/es/components/LlmTraceComponents/TraceMarkDown/index.d.ts +22 -0
- package/es/components/LlmTraceComponents/TraceMarkDown/index.js +44 -0
- package/es/components/LlmTraceComponents/TraceMarkDown/index.scss +18 -0
- package/es/components/LlmTraceComponents/const.d.ts +25 -0
- package/es/components/LlmTraceComponents/const.js +23 -0
- package/es/components/LlmTraceV2/index.d.ts +56 -0
- package/es/components/LlmTraceV2/index.js +384 -0
- package/es/components/LlmTraceV2/index.scss +115 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.js +38 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.scss +56 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.d.ts +18 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.js +82 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.scss +36 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.js +26 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.scss +54 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.js +25 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.scss +38 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.d.ts +20 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.js +49 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.scss +37 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.js +93 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.scss +151 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.d.ts +12 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.js +28 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.js +46 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.scss +70 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.js +72 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.scss +90 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/const.d.ts +32 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/const.js +27 -0
- package/es/components/LlmTraceV3/components/TraceGroup/index.d.ts +8 -0
- package/es/components/LlmTraceV3/components/TraceGroup/index.js +81 -0
- package/es/components/LlmTraceV3/components/TraceHeader/index.d.ts +8 -0
- package/es/components/LlmTraceV3/components/TraceHeader/index.js +64 -0
- package/es/components/LlmTraceV3/components/TraceItem/index.d.ts +8 -0
- package/es/components/LlmTraceV3/components/TraceItem/index.js +126 -0
- package/es/components/LlmTraceV3/components/TraceSlide/index.d.ts +30 -0
- package/es/components/LlmTraceV3/components/TraceSlide/index.js +278 -0
- package/es/components/LlmTraceV3/components/TraceSlide/index.scss +204 -0
- package/es/components/LlmTraceV3/components/TraceStatusIcon/index.d.ts +8 -0
- package/es/components/LlmTraceV3/components/TraceStatusIcon/index.js +41 -0
- package/es/components/LlmTraceV3/hooks/useGroupCollapse.d.ts +18 -0
- package/es/components/LlmTraceV3/hooks/useGroupCollapse.js +91 -0
- package/es/components/LlmTraceV3/hooks/useItemCollapse.d.ts +18 -0
- package/es/components/LlmTraceV3/hooks/useItemCollapse.js +61 -0
- package/es/components/LlmTraceV3/hooks/useTraceAnimation.d.ts +15 -0
- package/es/components/LlmTraceV3/hooks/useTraceAnimation.js +54 -0
- package/es/components/LlmTraceV3/hooks/useTraceCollapse.d.ts +17 -0
- package/es/components/LlmTraceV3/hooks/useTraceCollapse.js +80 -0
- package/es/components/LlmTraceV3/index.d.ts +11 -0
- package/es/components/LlmTraceV3/index.js +173 -0
- package/es/components/LlmTraceV3/index.scss +333 -0
- package/es/components/LlmTraceV3/types.d.ts +263 -0
- package/es/components/LlmTraceV3/types.js +108 -0
- package/es/components/LlmTraceV3/utils/collapseLogic.d.ts +26 -0
- package/es/components/LlmTraceV3/utils/collapseLogic.js +86 -0
- package/es/components/LlmTraceV3/utils/traceHelpers.d.ts +42 -0
- package/es/components/LlmTraceV3/utils/traceHelpers.js +94 -0
- package/es/components/MarkDown/index.d.ts +11 -0
- package/es/components/MarkDown/index.js +222 -0
- package/es/components/MarkDown/index.scss +179 -0
- package/es/components/ModelSelect/ModeDropdown.d.ts +8 -0
- package/es/components/ModelSelect/ModeDropdown.js +118 -0
- package/es/components/ModelSelect/const.d.ts +30 -0
- package/es/components/ModelSelect/const.js +61 -0
- package/es/components/ModelSelect/index.d.ts +4 -0
- package/es/components/ModelSelect/index.js +45 -0
- package/es/components/ModelSelect/index.scss +121 -0
- package/es/components/PaulButtonGroup/Select.d.ts +3 -0
- package/es/components/PaulButtonGroup/Select.js +109 -0
- package/es/components/PaulButtonGroup/index.d.ts +16 -0
- package/es/components/PaulButtonGroup/index.js +209 -0
- package/es/components/PaulButtonGroup/index.scss +19 -0
- package/es/components/PopAuth/index.d.ts +4 -0
- package/es/components/PopAuth/index.js +62 -0
- package/es/components/PopAuth/index.scss +16 -0
- package/es/components/ReferenceInfoItem/index.d.ts +49 -0
- package/es/components/ReferenceInfoItem/index.js +43 -0
- package/es/components/ReferenceInfoItem/index.scss +46 -0
- package/es/components/ReferenceTag/index.d.ts +11 -0
- package/es/components/ReferenceTag/index.js +27 -0
- package/es/components/ReferenceTag/index.scss +19 -0
- package/es/components/SchemaInput/SchemaInputCore/index.d.ts +4 -0
- package/es/components/SchemaInput/SchemaInputCore/index.js +113 -0
- package/es/components/SchemaInput/SchemaInputCore/index.scss +35 -0
- package/es/components/SchemaInput/SchemaInputCore/utils.d.ts +1 -0
- package/es/components/SchemaInput/SchemaInputCore/utils.js +77 -0
- package/es/components/SchemaInput/SimpleJSONEditor/index.d.ts +4 -0
- package/es/components/SchemaInput/SimpleJSONEditor/index.js +35 -0
- package/es/components/SchemaInput/SimpleJSONEditor/index.scss +7 -0
- package/es/components/SchemaInput/index.d.ts +8 -0
- package/es/components/SchemaInput/index.js +30 -0
- package/es/components/SelectBlurry/index.d.ts +3 -0
- package/es/components/SelectBlurry/index.js +74 -0
- package/es/components/SendMessageSvgIcon/index.d.ts +3 -0
- package/es/components/SendMessageSvgIcon/index.js +70 -0
- package/es/components/ShareContent/index.d.ts +21 -0
- package/es/components/ShareContent/index.js +176 -0
- package/es/components/ShareContent/index.scss +36 -0
- package/es/components/ShareModal/index.d.ts +15 -0
- package/es/components/ShareModal/index.js +185 -0
- package/es/components/ShareModal/index.scss +199 -0
- package/es/components/ShareOperationBar/index.d.ts +4 -0
- package/es/components/ShareOperationBar/index.js +152 -0
- package/es/components/ShareOperationBar/index.scss +47 -0
- package/es/components/TextContent/index.d.ts +14 -0
- package/es/components/TextContent/index.js +37 -0
- package/es/components/TextContent/index.scss +31 -0
- package/es/components/TraceMarkdownWithCard/index.d.ts +6 -0
- package/es/components/TraceMarkdownWithCard/index.js +21 -0
- package/es/components/TraceMarkdownWithCard/index.module.less +29 -0
- package/es/components/TraceWithAgent/index.d.ts +23 -0
- package/es/components/TraceWithAgent/index.js +93 -0
- package/es/components/TraceWithAgent/index.less +74 -0
- package/es/constants/assistChatEvent.d.ts +33 -0
- package/es/constants/assistChatEvent.js +33 -0
- package/es/constants/common.d.ts +71 -0
- package/es/constants/common.js +90 -0
- package/es/constants/logTrace.d.ts +3 -0
- package/es/constants/logTrace.js +4 -0
- package/es/constants/reference.d.ts +109 -0
- package/es/constants/reference.js +111 -0
- package/es/constants/traceDataStatus.d.ts +34 -0
- package/es/constants/traceDataStatus.js +37 -0
- package/es/context/index.d.ts +13 -0
- package/es/context/index.js +785 -0
- package/es/context/utils/messages.d.ts +33 -0
- package/es/context/utils/messages.js +194 -0
- package/es/context/utils/send.d.ts +29 -0
- package/es/context/utils/send.js +187 -0
- package/es/context/utils/tool.d.ts +19 -0
- package/es/context/utils/tool.js +89 -0
- package/es/index.d.ts +37 -0
- package/es/index.js +63 -0
- package/es/index.scss +39 -0
- package/es/interface/IAgent.d.ts +12 -0
- package/es/interface/IAgent.js +1 -0
- package/es/interface/IChatBottom.d.ts +69 -0
- package/es/interface/IChatBottom.js +1 -0
- package/es/interface/IChatCard.d.ts +40 -0
- package/es/interface/IChatCard.js +1 -0
- package/es/interface/IChatContext.d.ts +59 -0
- package/es/interface/IChatContext.js +1 -0
- package/es/interface/IChatRef.d.ts +75 -0
- package/es/interface/IChatRef.js +1 -0
- package/es/interface/IGuessQuestion.d.ts +43 -0
- package/es/interface/IGuessQuestion.js +15 -0
- package/es/interface/IMessage.d.ts +17 -0
- package/es/interface/IMessage.js +1 -0
- package/es/interface/ISend.d.ts +19 -0
- package/es/interface/ISend.js +1 -0
- package/es/interface/index.d.ts +272 -0
- package/es/interface/index.js +7 -0
- package/es/utils/CSEIconTool.d.ts +8 -0
- package/es/utils/CSEIconTool.js +6 -0
- package/es/utils/apushAssistant.d.ts +73 -0
- package/es/utils/apushAssistant.js +518 -0
- package/es/utils/clientPlugin.d.ts +3 -0
- package/es/utils/clientPlugin.js +73 -0
- package/es/utils/common.d.ts +10 -0
- package/es/utils/common.js +40 -0
- package/es/utils/copyToClipboard.d.ts +2 -0
- package/es/utils/copyToClipboard.js +70 -0
- package/es/utils/formDataFormat.d.ts +3 -0
- package/es/utils/formDataFormat.js +55 -0
- package/es/utils/formatData.d.ts +14 -0
- package/es/utils/formatData.js +104 -0
- package/es/utils/log.d.ts +18 -0
- package/es/utils/log.js +37 -0
- package/es/utils/parseUrl.d.ts +9 -0
- package/es/utils/parseUrl.js +48 -0
- package/es/utils/screenshot.d.ts +45 -0
- package/es/utils/screenshot.js +650 -0
- package/es/utils/send.d.ts +10 -0
- package/es/utils/send.js +8 -0
- package/es/utils/uploadImage.d.ts +9 -0
- package/es/utils/uploadImage.js +226 -0
- package/es/utils/websocketLogger.d.ts +176 -0
- package/es/utils/websocketLogger.js +267 -0
- package/package.json +166 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
!(function(){"use strict";var ke=(se,K,f)=>new Promise((G,U)=>{var Q=R=>{try{q(f.next(R))}catch($){U($)}},H=R=>{try{q(f.throw(R))}catch($){U($)}},q=R=>R.done?G(R.value):Promise.resolve(R.value).then(Q,H);q((f=f.apply(se,K)).next())});(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[4927],{61392:function(se,K,f){f.d(K,{G:function(){return U}});var G=f(35096),U=(0,G.eW)(()=>`
|
|
2
|
+
/* Font Awesome icon styling - consolidated */
|
|
3
|
+
.label-icon {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
height: 1em;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
vertical-align: -0.125em;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.node .label-icon path {
|
|
11
|
+
fill: currentColor;
|
|
12
|
+
stroke: revert;
|
|
13
|
+
stroke-width: revert;
|
|
14
|
+
}
|
|
15
|
+
`,"getIconStyles")},34927:function(se,K,f){f.d(K,{diagram:function(){return Ve}});var G=f(88674),U=f(61392),Q=f(57923),H=f(31792),q=f(5016),R=f(2831),$=f(21347),He=f(4284),S=f(99970),c=f(35096),me=f(91619),de=f(85920),pe=f(7201),ie=function(){var e=(0,c.eW)(function(p,s,t,a){for(t=t||{},a=p.length;a--;t[p[a]]=s);return t},"o"),d=[1,4],_=[1,13],r=[1,12],E=[1,15],D=[1,16],u=[1,20],y=[1,19],x=[6,7,8],g=[1,26],C=[1,24],I=[1,25],k=[6,7,11],A=[1,31],i=[6,7,11,24],V=[1,6,13,16,17,20,23],Z=[1,35],Y=[1,36],P=[1,6,7,11,13,16,17,20,23],J=[1,38],j={trace:(0,c.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:(0,c.eW)(function(s,t,a,l,h,n,W){var o=n.length-1;switch(h){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",n[o-1].id),l.addNode(n[o-2].length,n[o-1].id,n[o-1].descr,n[o-1].type,n[o]);break;case 16:l.getLogger().info("Node: ",n[o].id),l.addNode(n[o-1].length,n[o].id,n[o].descr,n[o].type);break;case 17:l.getLogger().trace("Icon: ",n[o]),l.decorateNode({icon:n[o]});break;case 18:case 23:l.decorateNode({class:n[o]});break;case 19:l.getLogger().trace("SPACELIST");break;case 20:l.getLogger().trace("Node: ",n[o-1].id),l.addNode(0,n[o-1].id,n[o-1].descr,n[o-1].type,n[o]);break;case 21:l.getLogger().trace("Node: ",n[o].id),l.addNode(0,n[o].id,n[o].descr,n[o].type);break;case 22:l.decorateNode({icon:n[o]});break;case 27:l.getLogger().trace("node found ..",n[o-2]),this.$={id:n[o-1],descr:n[o-1],type:l.getType(n[o-2],n[o])};break;case 28:this.$={id:n[o],descr:n[o],type:0};break;case 29:l.getLogger().trace("node found ..",n[o-3]),this.$={id:n[o-3],descr:n[o-1],type:l.getType(n[o-2],n[o])};break;case 30:this.$=n[o-1]+n[o];break;case 31:this.$=n[o];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:_,7:[1,10],9:9,12:11,13:r,14:14,16:E,17:D,18:17,19:18,20:u,23:y},e(x,[2,3]),{1:[2,2]},e(x,[2,4]),e(x,[2,5]),{1:[2,6],6:_,12:21,13:r,14:14,16:E,17:D,18:17,19:18,20:u,23:y},{6:_,9:22,12:11,13:r,14:14,16:E,17:D,18:17,19:18,20:u,23:y},{6:g,7:C,10:23,11:I},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:u,23:y}),e(k,[2,19]),e(k,[2,21],{15:30,24:A}),e(k,[2,22]),e(k,[2,23]),e(i,[2,25]),e(i,[2,26]),e(i,[2,28],{20:[1,32]}),{21:[1,33]},{6:g,7:C,10:34,11:I},{1:[2,7],6:_,12:21,13:r,14:14,16:E,17:D,18:17,19:18,20:u,23:y},e(V,[2,14],{7:Z,11:Y}),e(P,[2,8]),e(P,[2,9]),e(P,[2,10]),e(k,[2,16],{15:37,24:A}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:J}),e(i,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:Z,11:Y}),e(P,[2,11]),e(P,[2,12]),e(k,[2,15],{24:J}),e(i,[2,30]),{22:[1,41]},e(i,[2,27]),e(i,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,c.eW)(function(s,t){if(t.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=t,a}},"parseError"),parse:(0,c.eW)(function(s){var t=this,a=[0],l=[],h=[null],n=[],W=this.table,o="",z=0,X=0,_e=0,je=2,ye=1,Fe=n.slice.call(arguments,1),m=Object.create(this.lexer),w={yy:{}};for(var le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(w.yy[le]=this.yy[le]);m.setInput(s,w.yy),w.yy.lexer=m,w.yy.parser=this,typeof m.yylloc=="undefined"&&(m.yylloc={});var ce=m.yylloc;n.push(ce);var Ke=m.options&&m.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(O){a.length=a.length-2*O,h.length=h.length-O,n.length=n.length-O}(0,c.eW)(Ge,"popStack");function be(){var O;return O=l.pop()||m.lex()||ye,typeof O!="number"&&(O instanceof Array&&(l=O,O=l.pop()),O=t.symbols_[O]||O),O}(0,c.eW)(be,"lex");for(var v,he,B,N,Ze,ue,F={},te,T,Ee,ne;;){if(B=a[a.length-1],this.defaultActions[B]?N=this.defaultActions[B]:((v===null||typeof v=="undefined")&&(v=be()),N=W[B]&&W[B][v]),typeof N=="undefined"||!N.length||!N[0]){var ge="";ne=[];for(te in W[B])this.terminals_[te]&&te>je&&ne.push("'"+this.terminals_[te]+"'");m.showPosition?ge="Parse error on line "+(z+1)+`:
|
|
16
|
+
`+m.showPosition()+`
|
|
17
|
+
Expecting `+ne.join(", ")+", got '"+(this.terminals_[v]||v)+"'":ge="Parse error on line "+(z+1)+": Unexpected "+(v==ye?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(ge,{text:m.match,token:this.terminals_[v]||v,line:m.yylineno,loc:ce,expected:ne})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+v);switch(N[0]){case 1:a.push(v),h.push(m.yytext),n.push(m.yylloc),a.push(N[1]),v=null,he?(v=he,he=null):(X=m.yyleng,o=m.yytext,z=m.yylineno,ce=m.yylloc,_e>0&&_e--);break;case 2:if(T=this.productions_[N[1]][1],F.$=h[h.length-T],F._$={first_line:n[n.length-(T||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(T||1)].first_column,last_column:n[n.length-1].last_column},Ke&&(F._$.range=[n[n.length-(T||1)].range[0],n[n.length-1].range[1]]),ue=this.performAction.apply(F,[o,X,z,w.yy,N[1],h,n].concat(Fe)),typeof ue!="undefined")return ue;T&&(a=a.slice(0,-1*T*2),h=h.slice(0,-1*T),n=n.slice(0,-1*T)),a.push(this.productions_[N[1]][0]),h.push(F.$),n.push(F._$),Ee=W[a[a.length-2]][a[a.length-1]],a.push(Ee);break;case 3:return!0}}return!0},"parse")},ee=function(){var p={EOF:1,parseError:(0,c.eW)(function(t,a){if(this.yy.parser)this.yy.parser.parseError(t,a);else throw new Error(t)},"parseError"),setInput:(0,c.eW)(function(s,t){return this.yy=t||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,c.eW)(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var t=s.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:(0,c.eW)(function(s){var t=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===l.length?this.yylloc.first_column:0)+l[l.length-a.length].length-a[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.eW)(function(){return this._more=!0,this},"more"),reject:(0,c.eW)(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
18
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:(0,c.eW)(function(s){this.unput(this.match.slice(s))},"less"),pastInput:(0,c.eW)(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.eW)(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.eW)(function(){var s=this.pastInput(),t=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
19
|
+
`+t+"^"},"showPosition"),test_match:(0,c.eW)(function(s,t){var a,l,h;if(this.options.backtrack_lexer&&(h={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(h.yylloc.range=this.yylloc.range.slice(0))),l=s[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],a=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var n in h)this[n]=h[n];return!1}return!1},"test_match"),next:(0,c.eW)(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,t,a,l;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),n=0;n<h.length;n++)if(a=this._input.match(this.rules[h[n]]),a&&(!t||a[0].length>t[0].length)){if(t=a,l=n,this.options.backtrack_lexer){if(s=this.test_match(a,h[n]),s!==!1)return s;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(s=this.test_match(t,h[l]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
20
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,c.eW)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,c.eW)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,c.eW)(function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.eW)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,c.eW)(function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,c.eW)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,c.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,c.eW)(function(t,a,l,h){var n=h;switch(l){case 0:return this.pushState("shapeData"),a.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:const W=/\n\s*/g;return a.yytext=a.yytext.replace(W,"<br/>"),24;break;case 4:return 24;case 5:this.popState();break;case 6:return t.getLogger().trace("Found comment",a.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return t.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:t.getLogger().trace("end icon"),this.popState();break;case 16:return t.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return t.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return t.getLogger().trace("description:",a.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),t.getLogger().trace("node end ...",a.yytext),"NODE_DEND";break;case 36:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return t.getLogger().trace("Long description:",a.yytext),21;break;case 42:return t.getLogger().trace("Long description:",a.yytext),21;break}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return p}();j.lexer=ee;function M(){this.yy={}}return(0,c.eW)(M,"Parser"),M.prototype=j,j.Parser=M,new M}();ie.parser=ie;var Se=ie,L=[],re=[],ae=0,oe={},De=(0,c.eW)(()=>{L=[],re=[],ae=0,oe={}},"clear"),ve=(0,c.eW)(e=>{if(L.length===0)return null;const d=L[0].level;let _=null;for(let r=L.length-1;r>=0;r--)if(L[r].level===d&&!_&&(_=L[r]),L[r].level<d)throw new Error('Items without section detected, found section ("'+L[r].label+'")');return e===(_==null?void 0:_.level)?null:_},"getSection"),fe=(0,c.eW)(function(){return re},"getSections"),Oe=(0,c.eW)(function(){var E,D;const e=[],d=[],_=fe(),r=(0,S.nV)();for(const u of _){const y={id:u.id,label:(0,S.oO)((E=u.label)!=null?E:"",r),isGroup:!0,ticket:u.ticket,shape:"kanbanSection",level:u.level,look:r.look};d.push(y);const x=L.filter(g=>g.parentId===u.id);for(const g of x){const C={id:g.id,parentId:u.id,label:(0,S.oO)((D=g.label)!=null?D:"",r),isGroup:!1,ticket:g==null?void 0:g.ticket,priority:g==null?void 0:g.priority,assigned:g==null?void 0:g.assigned,icon:g==null?void 0:g.icon,shape:"kanbanItem",level:g.level,rx:5,ry:5,cssStyles:["text-align: left"]};d.push(C)}}return{nodes:d,edges:e,other:{},config:(0,S.nV)()}},"getData"),Le=(0,c.eW)((e,d,_,r,E)=>{var g,C,I,k;const D=(0,S.nV)();let u=(C=(g=D.mindmap)==null?void 0:g.padding)!=null?C:S.vZ.mindmap.padding;switch(r){case b.ROUNDED_RECT:case b.RECT:case b.HEXAGON:u*=2}const y={id:(0,S.oO)(d,D)||"kbn"+ae++,level:e,label:(0,S.oO)(_,D),width:(k=(I=D.mindmap)==null?void 0:I.maxNodeWidth)!=null?k:S.vZ.mindmap.maxNodeWidth,padding:u,isGroup:!1};if(E!==void 0){let A;E.includes(`
|
|
21
|
+
`)?A=E+`
|
|
22
|
+
`:A=`{
|
|
23
|
+
`+E+`
|
|
24
|
+
}`;const i=(0,Q.z)(A,{schema:Q.A});if(i.shape&&(i.shape!==i.shape.toLowerCase()||i.shape.includes("_")))throw new Error(`No such shape: ${i.shape}. Shape names should be lowercase.`);i!=null&&i.shape&&i.shape==="kanbanItem"&&(y.shape=i==null?void 0:i.shape),i!=null&&i.label&&(y.label=i==null?void 0:i.label),i!=null&&i.icon&&(y.icon=i==null?void 0:i.icon.toString()),i!=null&&i.assigned&&(y.assigned=i==null?void 0:i.assigned.toString()),i!=null&&i.ticket&&(y.ticket=i==null?void 0:i.ticket.toString()),i!=null&&i.priority&&(y.priority=i==null?void 0:i.priority)}const x=ve(e);x?y.parentId=x.id||"kbn"+ae++:re.push(y),L.push(y)},"addNode"),b={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ne=(0,c.eW)((e,d)=>{switch(c.cM.debug("In get type",e,d),e){case"[":return b.RECT;case"(":return d===")"?b.ROUNDED_RECT:b.CLOUD;case"((":return b.CIRCLE;case")":return b.CLOUD;case"))":return b.BANG;case"{{":return b.HEXAGON;default:return b.DEFAULT}},"getType"),xe=(0,c.eW)((e,d)=>{oe[e]=d},"setElementForId"),Ie=(0,c.eW)(e=>{if(!e)return;const d=(0,S.nV)(),_=L[L.length-1];e.icon&&(_.icon=(0,S.oO)(e.icon,d)),e.class&&(_.cssClasses=(0,S.oO)(e.class,d))},"decorateNode"),Ce=(0,c.eW)(e=>{switch(e){case b.DEFAULT:return"no-border";case b.RECT:return"rect";case b.ROUNDED_RECT:return"rounded-rect";case b.CIRCLE:return"circle";case b.CLOUD:return"cloud";case b.BANG:return"bang";case b.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Ae=(0,c.eW)(()=>c.cM,"getLogger"),We=(0,c.eW)(e=>oe[e],"getElementById"),Te={clear:De,addNode:Le,getSections:fe,getData:Oe,nodeType:b,getType:Ne,setElementForId:xe,decorateNode:Ie,type2Str:Ce,getLogger:Ae,getElementById:We},Re=Te,Pe=(0,c.eW)((e,d,_,r)=>ke(this,null,function*(){var Z,Y,P,J,j,ee,M;c.cM.debug(`Rendering kanban diagram
|
|
25
|
+
`+e);const D=r.db.getData(),u=(0,S.nV)();u.htmlLabels=!1;const y=(0,G.P)(d),x=y.append("g");x.attr("class","sections");const g=y.append("g");g.attr("class","items");const C=D.nodes.filter(p=>p.isGroup);let I=0;const k=10,A=[];let i=25;for(const p of C){const s=((Z=u==null?void 0:u.kanban)==null?void 0:Z.sectionWidth)||200;I=I+1,p.x=s*I+(I-1)*k/2,p.width=s,p.y=0,p.height=s*3,p.rx=5,p.ry=5,p.cssClasses=p.cssClasses+" section-"+I;const t=yield(0,H.us)(x,p);i=Math.max(i,(Y=t==null?void 0:t.labelBBox)==null?void 0:Y.height),A.push(t)}let V=0;for(const p of C){const s=A[V];V=V+1;const t=((P=u==null?void 0:u.kanban)==null?void 0:P.sectionWidth)||200,a=-t*3/2+i;let l=a;const h=D.nodes.filter(o=>o.parentId===p.id);for(const o of h){if(o.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");o.x=p.x,o.width=t-1.5*k;const X=(yield(0,H.Lf)(g,o,{config:u})).node().getBBox();o.y=l+X.height/2,yield(0,H.aH)(o),l=o.y+X.height/2+k/2}const n=s.cluster.select("rect"),W=Math.max(l-a+3*k,50)+(i-25);n.attr("height",W)}(0,S.j7)(void 0,y,(j=(J=u.mindmap)==null?void 0:J.padding)!=null?j:S.vZ.kanban.padding,(M=(ee=u.mindmap)==null?void 0:ee.useMaxWidth)!=null?M:S.vZ.kanban.useMaxWidth)}),"draw"),Me={draw:Pe},we=(0,c.eW)(e=>{let d="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++)e["lineColor"+r]=e["lineColor"+r]||e["cScaleInv"+r],(0,me.Z)(e["lineColor"+r])?e["lineColor"+r]=(0,de.Z)(e["lineColor"+r],20):e["lineColor"+r]=(0,pe.Z)(e["lineColor"+r],20);const _=(0,c.eW)((r,E)=>e.darkMode?(0,pe.Z)(r,E):(0,de.Z)(r,E),"adjuster");for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const E=""+(17-3*r);d+=`
|
|
26
|
+
.section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} polygon, .section-${r-1} path {
|
|
27
|
+
fill: ${_(e["cScale"+r],10)};
|
|
28
|
+
stroke: ${_(e["cScale"+r],10)};
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
.section-${r-1} text {
|
|
32
|
+
fill: ${e["cScaleLabel"+r]};
|
|
33
|
+
}
|
|
34
|
+
.node-icon-${r-1} {
|
|
35
|
+
font-size: 40px;
|
|
36
|
+
color: ${e["cScaleLabel"+r]};
|
|
37
|
+
}
|
|
38
|
+
.section-edge-${r-1}{
|
|
39
|
+
stroke: ${e["cScale"+r]};
|
|
40
|
+
}
|
|
41
|
+
.edge-depth-${r-1}{
|
|
42
|
+
stroke-width: ${E};
|
|
43
|
+
}
|
|
44
|
+
.section-${r-1} line {
|
|
45
|
+
stroke: ${e["cScaleInv"+r]} ;
|
|
46
|
+
stroke-width: 3;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.disabled, .disabled circle, .disabled text {
|
|
50
|
+
fill: lightgray;
|
|
51
|
+
}
|
|
52
|
+
.disabled text {
|
|
53
|
+
fill: #efefef;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.node rect,
|
|
57
|
+
.node circle,
|
|
58
|
+
.node ellipse,
|
|
59
|
+
.node polygon,
|
|
60
|
+
.node path {
|
|
61
|
+
fill: ${e.background};
|
|
62
|
+
stroke: ${e.nodeBorder};
|
|
63
|
+
stroke-width: 1px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.kanban-ticket-link {
|
|
67
|
+
fill: ${e.background};
|
|
68
|
+
stroke: ${e.nodeBorder};
|
|
69
|
+
text-decoration: underline;
|
|
70
|
+
}
|
|
71
|
+
`}return d},"genSections"),Be=(0,c.eW)(e=>`
|
|
72
|
+
.edge {
|
|
73
|
+
stroke-width: 3;
|
|
74
|
+
}
|
|
75
|
+
${we(e)}
|
|
76
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
77
|
+
fill: ${e.git0};
|
|
78
|
+
}
|
|
79
|
+
.section-root text {
|
|
80
|
+
fill: ${e.gitBranchLabel0};
|
|
81
|
+
}
|
|
82
|
+
.icon-container {
|
|
83
|
+
height:100%;
|
|
84
|
+
display: flex;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
align-items: center;
|
|
87
|
+
}
|
|
88
|
+
.edge {
|
|
89
|
+
fill: none;
|
|
90
|
+
}
|
|
91
|
+
.cluster-label, .label {
|
|
92
|
+
color: ${e.textColor};
|
|
93
|
+
fill: ${e.textColor};
|
|
94
|
+
}
|
|
95
|
+
.kanban-label {
|
|
96
|
+
dy: 1em;
|
|
97
|
+
alignment-baseline: middle;
|
|
98
|
+
text-anchor: middle;
|
|
99
|
+
dominant-baseline: middle;
|
|
100
|
+
text-align: center;
|
|
101
|
+
}
|
|
102
|
+
${(0,U.G)()}
|
|
103
|
+
`,"getStyles"),Ue=Be,Ve={db:Re,renderer:Me,parser:Se,styles:Ue}}}]);
|
|
104
|
+
}());
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
!(function(){"use strict";var it=Object.defineProperty;var b=Object.getOwnPropertySymbols;var ot=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable;var B=($,p,l)=>p in $?it($,p,{enumerable:!0,configurable:!0,writable:!0,value:l}):$[p]=l,L=($,p)=>{for(var l in p||(p={}))ot.call(p,l)&&B($,l,p[l]);if(b)for(var l of b(p))lt.call(p,l)&&B($,l,p[l]);return $};var S=($,p,l)=>new Promise((A,y)=>{var x=_=>{try{s(l.next(_))}catch(g){y(g)}},u=_=>{try{s(l.throw(_))}catch(g){y(g)}},s=_=>_.done?A(_.value):Promise.resolve(_.value).then(x,u);s((l=l.apply($,p)).next())});(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[5067],{25925:function($,p,l){l.d(p,{A:function(){return y}});var A=l(35096);function y(x,u){var s,_,g;x.accDescr&&((s=u.setAccDescription)==null||s.call(u,x.accDescr)),x.accTitle&&((_=u.setAccTitle)==null||_.call(u,x.accTitle)),x.title&&((g=u.setDiagramTitle)==null||g.call(u,x.title))}(0,A.eW)(y,"populateCommonDb")},25067:function($,p,l){l.d(p,{diagram:function(){return nt}});var A=l(88674),y=l(25925),x=l(4284),u=l(99970),s=l(35096),_=l(12491),g={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},O={axes:[],curves:[],options:g},M=structuredClone(O),F=u.vZ.radar,U=(0,s.eW)(()=>(0,x.Rb)(L(L({},F),(0,u.iE)().radar)),"getConfig"),D=(0,s.eW)(()=>M.axes,"getAxes"),G=(0,s.eW)(()=>M.curves,"getCurves"),j=(0,s.eW)(()=>M.options,"getOptions"),K=(0,s.eW)(a=>{M.axes=a.map(t=>{var e;return{name:t.name,label:(e=t.label)!=null?e:t.name}})},"setAxes"),z=(0,s.eW)(a=>{M.curves=a.map(t=>{var e;return{name:t.name,label:(e=t.label)!=null?e:t.name,entries:H(t.entries)}})},"setCurves"),H=(0,s.eW)(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=D();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(n=>{var o;return((o=n.axis)==null?void 0:o.$refText)===e.name});if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=(0,s.eW)(a=>{var e,r,n,o,c,i,d,h,v,m;const t=a.reduce((f,C)=>(f[C.name]=C,f),{});M.options={showLegend:(r=(e=t.showLegend)==null?void 0:e.value)!=null?r:g.showLegend,ticks:(o=(n=t.ticks)==null?void 0:n.value)!=null?o:g.ticks,max:(i=(c=t.max)==null?void 0:c.value)!=null?i:g.max,min:(h=(d=t.min)==null?void 0:d.value)!=null?h:g.min,graticule:(m=(v=t.graticule)==null?void 0:v.value)!=null?m:g.graticule}},"setOptions"),V=(0,s.eW)(()=>{(0,u.ZH)(),M=structuredClone(O)},"clear"),W={getAxes:D,getCurves:G,getOptions:j,setAxes:K,setCurves:z,setOptions:J,getConfig:U,clear:V,setAccTitle:u.GN,getAccTitle:u.eu,setDiagramTitle:u.g2,getDiagramTitle:u.Kr,getAccDescription:u.Mx,setAccDescription:u.U$},Z=(0,s.eW)(a=>{(0,y.A)(a,W);const{axes:t,curves:e,options:r}=a;W.setAxes(t),W.setCurves(e),W.setOptions(r)},"populate"),N={parse:(0,s.eW)(a=>S(this,null,function*(){const t=yield(0,_.Qc)("radar",a);s.cM.debug(t),Z(t)}),"parse")},X=(0,s.eW)((a,t,e,r)=>{var w;const n=r.db,o=n.getAxes(),c=n.getCurves(),i=n.getOptions(),d=n.getConfig(),h=n.getDiagramTitle(),v=(0,A.P)(t),m=Y(v,d),f=(w=i.max)!=null?w:Math.max(...c.map(T=>Math.max(...T.entries))),C=i.min,E=Math.min(d.width,d.height)/2;Q(m,o,E,i.ticks,i.graticule),q(m,o,E,d),R(m,o,c,C,f,i.graticule,d),I(m,c,i.showLegend,d),m.append("text").attr("class","radarTitle").text(h).attr("x",0).attr("y",-d.height/2-d.marginTop)},"draw"),Y=(0,s.eW)((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,n={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return a.attr("viewbox",`0 0 ${e} ${r}`).attr("width",e).attr("height",r),a.append("g").attr("transform",`translate(${n.x}, ${n.y})`)},"drawFrame"),Q=(0,s.eW)((a,t,e,r,n)=>{if(n==="circle")for(let o=0;o<r;o++){const c=e*(o+1)/r;a.append("circle").attr("r",c).attr("class","radarGraticule")}else if(n==="polygon"){const o=t.length;for(let c=0;c<r;c++){const i=e*(c+1)/r,d=t.map((h,v)=>{const m=2*v*Math.PI/o-Math.PI/2,f=i*Math.cos(m),C=i*Math.sin(m);return`${f},${C}`}).join(" ");a.append("polygon").attr("points",d).attr("class","radarGraticule")}}},"drawGraticule"),q=(0,s.eW)((a,t,e,r)=>{const n=t.length;for(let o=0;o<n;o++){const c=t[o].label,i=2*o*Math.PI/n-Math.PI/2;a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*Math.cos(i)).attr("y2",e*r.axisScaleFactor*Math.sin(i)).attr("class","radarAxisLine"),a.append("text").text(c).attr("x",e*r.axisLabelFactor*Math.cos(i)).attr("y",e*r.axisLabelFactor*Math.sin(i)).attr("class","radarAxisLabel")}},"drawAxes");function R(a,t,e,r,n,o,c){const i=t.length,d=Math.min(c.width,c.height)/2;e.forEach((h,v)=>{if(h.entries.length!==i)return;const m=h.entries.map((f,C)=>{const E=2*Math.PI*C/i-Math.PI/2,w=P(f,r,n,d),T=w*Math.cos(E),st=w*Math.sin(E);return{x:T,y:st}});o==="circle"?a.append("path").attr("d",k(m,c.curveTension)).attr("class",`radarCurve-${v}`):o==="polygon"&&a.append("polygon").attr("points",m.map(f=>`${f.x},${f.y}`).join(" ")).attr("class",`radarCurve-${v}`)})}(0,s.eW)(R,"drawCurves");function P(a,t,e,r){const n=Math.min(Math.max(a,t),e);return r*(n-t)/(e-t)}(0,s.eW)(P,"relativeRadius");function k(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let n=0;n<e;n++){const o=a[(n-1+e)%e],c=a[n],i=a[(n+1)%e],d=a[(n+2)%e],h={x:c.x+(i.x-o.x)*t,y:c.y+(i.y-o.y)*t},v={x:i.x-(d.x-c.x)*t,y:i.y-(d.y-c.y)*t};r+=` C${h.x},${h.y} ${v.x},${v.y} ${i.x},${i.y}`}return`${r} Z`}(0,s.eW)(k,"closedRoundCurve");function I(a,t,e,r){if(!e)return;const n=(r.width/2+r.marginRight)*3/4,o=-(r.height/2+r.marginTop)*3/4,c=20;t.forEach((i,d)=>{const h=a.append("g").attr("transform",`translate(${n}, ${o+d*c})`);h.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${d}`),h.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(i.label)})}(0,s.eW)(I,"drawLegend");var tt={draw:X},et=(0,s.eW)((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const n=a[`cScale${r}`];e+=`
|
|
2
|
+
.radarCurve-${r} {
|
|
3
|
+
color: ${n};
|
|
4
|
+
fill: ${n};
|
|
5
|
+
fill-opacity: ${t.curveOpacity};
|
|
6
|
+
stroke: ${n};
|
|
7
|
+
stroke-width: ${t.curveStrokeWidth};
|
|
8
|
+
}
|
|
9
|
+
.radarLegendBox-${r} {
|
|
10
|
+
fill: ${n};
|
|
11
|
+
fill-opacity: ${t.curveOpacity};
|
|
12
|
+
stroke: ${n};
|
|
13
|
+
}
|
|
14
|
+
`}return e},"genIndexStyles"),at=(0,s.eW)(a=>{const t=(0,u.xN)(),e=(0,u.iE)(),r=(0,x.Rb)(t,e.themeVariables),n=(0,x.Rb)(r.radar,a);return{themeVariables:r,radarOptions:n}},"buildRadarStyleOptions"),rt=(0,s.eW)(({radar:a}={})=>{const{themeVariables:t,radarOptions:e}=at(a);return`
|
|
15
|
+
.radarTitle {
|
|
16
|
+
font-size: ${t.fontSize};
|
|
17
|
+
color: ${t.titleColor};
|
|
18
|
+
dominant-baseline: hanging;
|
|
19
|
+
text-anchor: middle;
|
|
20
|
+
}
|
|
21
|
+
.radarAxisLine {
|
|
22
|
+
stroke: ${e.axisColor};
|
|
23
|
+
stroke-width: ${e.axisStrokeWidth};
|
|
24
|
+
}
|
|
25
|
+
.radarAxisLabel {
|
|
26
|
+
dominant-baseline: middle;
|
|
27
|
+
text-anchor: middle;
|
|
28
|
+
font-size: ${e.axisLabelFontSize}px;
|
|
29
|
+
color: ${e.axisColor};
|
|
30
|
+
}
|
|
31
|
+
.radarGraticule {
|
|
32
|
+
fill: ${e.graticuleColor};
|
|
33
|
+
fill-opacity: ${e.graticuleOpacity};
|
|
34
|
+
stroke: ${e.graticuleColor};
|
|
35
|
+
stroke-width: ${e.graticuleStrokeWidth};
|
|
36
|
+
}
|
|
37
|
+
.radarLegendText {
|
|
38
|
+
text-anchor: start;
|
|
39
|
+
font-size: ${e.legendFontSize}px;
|
|
40
|
+
dominant-baseline: hanging;
|
|
41
|
+
}
|
|
42
|
+
${et(t,e)}
|
|
43
|
+
`},"styles"),nt={parser:N,db:W,renderer:tt,styles:rt}}}]);
|
|
44
|
+
}());
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
!(function(){"use strict";var ze=Object.defineProperty;var ke=Object.getOwnPropertySymbols;var Ie=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var qe=(j,N,V)=>N in j?ze(j,N,{enumerable:!0,configurable:!0,writable:!0,value:V}):j[N]=V,H=(j,N)=>{for(var V in N||(N={}))Ie.call(N,V)&&qe(j,V,N[V]);if(ke)for(var V of ke(N))we.call(N,V)&&qe(j,V,N[V]);return j};(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[5588],{95588:function(j,N,V){var et,it;V.d(N,{diagram:function(){return We}});var m=V(99970),r=V(35096),ft=V(989),Lt=function(){var t=(0,r.eW)(function(K,o,l,g){for(l=l||{},g=K.length;g--;l[K[g]]=o);return l},"o"),n=[1,3],x=[1,4],d=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],S=[2,36],u=[1,37],k=[1,36],q=[1,38],b=[1,35],T=[1,43],c=[1,41],U=[1,14],G=[1,23],J=[1,18],St=[1,19],vt=[1,20],gt=[1,21],Dt=[1,22],pt=[1,24],yt=[1,25],bt=[1,26],Tt=[1,27],kt=[1,28],qt=[1,29],B=[1,32],i=[1,33],v=[1,34],P=[1,39],F=[1,40],W=[1,42],C=[1,44],Y=[1,62],X=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],ie=[1,65],ae=[1,66],ne=[1,67],se=[1,68],re=[1,69],oe=[1,70],le=[1,71],he=[1,72],ce=[1,73],de=[1,74],ue=[1,75],xe=[1,76],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],at=[1,90],nt=[1,91],st=[1,92],rt=[1,99],ot=[1,93],lt=[1,96],ht=[1,94],ct=[1,95],dt=[1,97],ut=[1,98],Vt=[1,102],fe=[10,55,56,57],O=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],zt={trace:(0,r.eW)(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:(0,r.eW)(function(o,l,g,f,A,e,mt){var s=e.length-1;switch(A){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],f.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:f.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:f.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:f.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:f.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:f.setXAxisLeftText(e[s-2]),f.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" \u27F6 ",f.setXAxisLeftText(e[s-1]);break;case 53:f.setXAxisLeftText(e[s]);break;case 54:f.setYAxisBottomText(e[s-2]),f.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" \u27F6 ",f.setYAxisBottomText(e[s-1]);break;case 56:f.setYAxisBottomText(e[s]);break;case 57:f.setQuadrant1Text(e[s]);break;case 58:f.setQuadrant2Text(e[s]);break;case 59:f.setQuadrant3Text(e[s]);break;case 60:f.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:x,55:d,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:x,55:d,56:h,57:p},{18:n,26:9,27:2,28:x,55:d,56:h,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,S,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:k,10:q,12:b,13:T,14:c,18:U,25:G,35:J,37:St,39:vt,41:gt,42:Dt,48:pt,50:yt,51:bt,52:Tt,53:kt,54:qt,60:B,61:i,63:v,64:P,65:F,66:W,67:C}),t(y,[2,34]),{27:45,55:d,56:h,57:p},t(a,[2,37]),t(a,S,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:u,5:k,10:q,12:b,13:T,14:c,18:U,25:G,35:J,37:St,39:vt,41:gt,42:Dt,48:pt,50:yt,51:bt,52:Tt,53:kt,54:qt,60:B,61:i,63:v,64:P,65:F,66:W,67:C}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(a,[2,45]),t(a,[2,46]),{18:[1,50]},{4:u,5:k,10:q,12:b,13:T,14:c,43:51,58:31,60:B,61:i,63:v,64:P,65:F,66:W,67:C},{4:u,5:k,10:q,12:b,13:T,14:c,43:52,58:31,60:B,61:i,63:v,64:P,65:F,66:W,67:C},{4:u,5:k,10:q,12:b,13:T,14:c,43:53,58:31,60:B,61:i,63:v,64:P,65:F,66:W,67:C},{4:u,5:k,10:q,12:b,13:T,14:c,43:54,58:31,60:B,61:i,63:v,64:P,65:F,66:W,67:C},{4:u,5:k,10:q,12:b,13:T,14:c,43:55,58:31,60:B,61:i,63:v,64:P,65:F,66:W,67:C},{4:u,5:k,10:q,12:b,13:T,14:c,43:56,58:31,60:B,61:i,63:v,64:P,65:F,66:W,67:C},{4:u,5:k,8:Y,10:q,12:b,13:T,14:c,18:X,44:[1,57],47:[1,58],58:60,59:59,63:v,64:P,65:F,66:W,67:C},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:64,4:ie,5:ae,6:ne,7:se,8:re,9:oe,10:le,11:he,12:ce,13:de,14:ue,15:xe,21:63},t(a,[2,53],{59:59,58:60,4:u,5:k,8:Y,10:q,12:b,13:T,14:c,18:X,49:[1,77],63:v,64:P,65:F,66:W,67:C}),t(a,[2,56],{59:59,58:60,4:u,5:k,8:Y,10:q,12:b,13:T,14:c,18:X,49:[1,78],63:v,64:P,65:F,66:W,67:C}),t(a,[2,57],{59:59,58:60,4:u,5:k,8:Y,10:q,12:b,13:T,14:c,18:X,63:v,64:P,65:F,66:W,67:C}),t(a,[2,58],{59:59,58:60,4:u,5:k,8:Y,10:q,12:b,13:T,14:c,18:X,63:v,64:P,65:F,66:W,67:C}),t(a,[2,59],{59:59,58:60,4:u,5:k,8:Y,10:q,12:b,13:T,14:c,18:X,63:v,64:P,65:F,66:W,67:C}),t(a,[2,60],{59:59,58:60,4:u,5:k,8:Y,10:q,12:b,13:T,14:c,18:X,63:v,64:P,65:F,66:W,67:C}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:ie,5:ae,6:ne,7:se,8:re,9:oe,10:le,11:he,12:ce,13:de,14:ue,15:xe,18:[1,81]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:83,4:u,5:k,10:q,12:b,13:T,14:c,60:B,61:i,63:v,64:P,65:F,66:W,67:C}),t(a,[2,55],{58:31,43:84,4:u,5:k,10:q,12:b,13:T,14:c,60:B,61:i,63:v,64:P,65:F,66:W,67:C}),{46:[1,85]},{45:[1,86]},{4:at,5:nt,6:st,8:rt,11:ot,13:lt,16:89,17:ht,18:ct,19:dt,20:ut,22:88,23:87},t(w,[2,24]),t(a,[2,51],{59:59,58:60,4:u,5:k,8:Y,10:q,12:b,13:T,14:c,18:X,63:v,64:P,65:F,66:W,67:C}),t(a,[2,54],{59:59,58:60,4:u,5:k,8:Y,10:q,12:b,13:T,14:c,18:X,63:v,64:P,65:F,66:W,67:C}),t(a,[2,47],{22:88,16:89,23:100,4:at,5:nt,6:st,8:rt,11:ot,13:lt,17:ht,18:ct,19:dt,20:ut}),{46:[1,101]},t(a,[2,29],{10:Vt}),t(fe,[2,27],{16:103,4:at,5:nt,6:st,8:rt,11:ot,13:lt,17:ht,18:ct,19:dt,20:ut}),t(O,[2,25]),t(O,[2,13]),t(O,[2,14]),t(O,[2,15]),t(O,[2,16]),t(O,[2,17]),t(O,[2,18]),t(O,[2,19]),t(O,[2,20]),t(O,[2,21]),t(O,[2,22]),t(a,[2,49],{10:Vt}),t(a,[2,48],{22:88,16:89,23:104,4:at,5:nt,6:st,8:rt,11:ot,13:lt,17:ht,18:ct,19:dt,20:ut}),{4:at,5:nt,6:st,8:rt,11:ot,13:lt,16:89,17:ht,18:ct,19:dt,20:ut,22:105},t(O,[2,26]),t(a,[2,50],{10:Vt}),t(fe,[2,28],{16:103,4:at,5:nt,6:st,8:rt,11:ot,13:lt,17:ht,18:ct,19:dt,20:ut})],defaultActions:{8:[2,30],9:[2,31]},parseError:(0,r.eW)(function(o,l){if(l.recoverable)this.trace(o);else{var g=new Error(o);throw g.hash=l,g}},"parseError"),parse:(0,r.eW)(function(o){var l=this,g=[0],f=[],A=[null],e=[],mt=this.table,s="",Ft=0,ge=0,pe=0,Le=2,ye=1,Ee=e.slice.call(arguments,1),E=Object.create(this.lexer),$={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&($.yy[It]=this.yy[It]);E.setInput(o,$.yy),$.yy.lexer=E,$.yy.parser=this,typeof E.yylloc=="undefined"&&(E.yylloc={});var wt=E.yylloc;e.push(wt);var De=E.options&&E.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ve(R){g.length=g.length-2*R,A.length=A.length-R,e.length=e.length-R}(0,r.eW)(Ve,"popStack");function be(){var R;return R=f.pop()||E.lex()||ye,typeof R!="number"&&(R instanceof Array&&(f=R,R=f.pop()),R=l.symbols_[R]||R),R}(0,r.eW)(be,"lex");for(var I,Bt,tt,M,Be,Rt,xt={},Wt,Z,Te,Ct;;){if(tt=g[g.length-1],this.defaultActions[tt]?M=this.defaultActions[tt]:((I===null||typeof I=="undefined")&&(I=be()),M=mt[tt]&&mt[tt][I]),typeof M=="undefined"||!M.length||!M[0]){var Nt="";Ct=[];for(Wt in mt[tt])this.terminals_[Wt]&&Wt>Le&&Ct.push("'"+this.terminals_[Wt]+"'");E.showPosition?Nt="Parse error on line "+(Ft+1)+`:
|
|
2
|
+
`+E.showPosition()+`
|
|
3
|
+
Expecting `+Ct.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Nt="Parse error on line "+(Ft+1)+": Unexpected "+(I==ye?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Nt,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:wt,expected:Ct})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+tt+", token: "+I);switch(M[0]){case 1:g.push(I),A.push(E.yytext),e.push(E.yylloc),g.push(M[1]),I=null,Bt?(I=Bt,Bt=null):(ge=E.yyleng,s=E.yytext,Ft=E.yylineno,wt=E.yylloc,pe>0&&pe--);break;case 2:if(Z=this.productions_[M[1]][1],xt.$=A[A.length-Z],xt._$={first_line:e[e.length-(Z||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(Z||1)].first_column,last_column:e[e.length-1].last_column},De&&(xt._$.range=[e[e.length-(Z||1)].range[0],e[e.length-1].range[1]]),Rt=this.performAction.apply(xt,[s,ge,Ft,$.yy,M[1],A,e].concat(Ee)),typeof Rt!="undefined")return Rt;Z&&(g=g.slice(0,-1*Z*2),A=A.slice(0,-1*Z),e=e.slice(0,-1*Z)),g.push(this.productions_[M[1]][0]),A.push(xt.$),e.push(xt._$),Te=mt[g[g.length-2]][g[g.length-1]],g.push(Te);break;case 3:return!0}}return!0},"parse")},Ce=function(){var K={EOF:1,parseError:(0,r.eW)(function(l,g){if(this.yy.parser)this.yy.parser.parseError(l,g);else throw new Error(l)},"parseError"),setInput:(0,r.eW)(function(o,l){return this.yy=l||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,r.eW)(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:(0,r.eW)(function(o){var l=o.length,g=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===f.length?this.yylloc.first_column:0)+f[f.length-g.length].length-g[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.eW)(function(){return this._more=!0,this},"more"),reject:(0,r.eW)(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:(0,r.eW)(function(o){this.unput(this.match.slice(o))},"less"),pastInput:(0,r.eW)(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.eW)(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.eW)(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
|
+
`+l+"^"},"showPosition"),test_match:(0,r.eW)(function(o,l){var g,f,A;if(this.options.backtrack_lexer&&(A={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(A.yylloc.range=this.yylloc.range.slice(0))),f=o[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],g=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var e in A)this[e]=A[e];return!1}return!1},"test_match"),next:(0,r.eW)(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,l,g,f;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),e=0;e<A.length;e++)if(g=this._input.match(this.rules[A[e]]),g&&(!l||g[0].length>l[0].length)){if(l=g,f=e,this.options.backtrack_lexer){if(o=this.test_match(g,A[e]),o!==!1)return o;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(o=this.test_match(l,A[f]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.eW)(function(){var l=this.next();return l||this.lex()},"lex"),begin:(0,r.eW)(function(l){this.conditionStack.push(l)},"begin"),popState:(0,r.eW)(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.eW)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,r.eW)(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),pushState:(0,r.eW)(function(l){this.begin(l)},"pushState"),stateStackSize:(0,r.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.eW)(function(l,g,f,A){var e=A;switch(f){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return K}();zt.lexer=Ce;function Pt(){this.yy={}}return(0,r.eW)(Pt,"Parser"),Pt.prototype=zt,zt.Parser=Pt,new Pt}();Lt.parser=Lt;var me=Lt,z=(0,m.xN)(),_e=(et=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var n,x,d,h,p,y,_,a,S,u,k,q,b,T,c,U,G,J;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((n=m.vZ.quadrantChart)==null?void 0:n.chartWidth)||500,chartWidth:((x=m.vZ.quadrantChart)==null?void 0:x.chartHeight)||500,titlePadding:((d=m.vZ.quadrantChart)==null?void 0:d.titlePadding)||10,titleFontSize:((h=m.vZ.quadrantChart)==null?void 0:h.titleFontSize)||20,quadrantPadding:((p=m.vZ.quadrantChart)==null?void 0:p.quadrantPadding)||5,xAxisLabelPadding:((y=m.vZ.quadrantChart)==null?void 0:y.xAxisLabelPadding)||5,yAxisLabelPadding:((_=m.vZ.quadrantChart)==null?void 0:_.yAxisLabelPadding)||5,xAxisLabelFontSize:((a=m.vZ.quadrantChart)==null?void 0:a.xAxisLabelFontSize)||16,yAxisLabelFontSize:((S=m.vZ.quadrantChart)==null?void 0:S.yAxisLabelFontSize)||16,quadrantLabelFontSize:((u=m.vZ.quadrantChart)==null?void 0:u.quadrantLabelFontSize)||16,quadrantTextTopPadding:((k=m.vZ.quadrantChart)==null?void 0:k.quadrantTextTopPadding)||5,pointTextPadding:((q=m.vZ.quadrantChart)==null?void 0:q.pointTextPadding)||5,pointLabelFontSize:((b=m.vZ.quadrantChart)==null?void 0:b.pointLabelFontSize)||12,pointRadius:((T=m.vZ.quadrantChart)==null?void 0:T.pointRadius)||5,xAxisPosition:((c=m.vZ.quadrantChart)==null?void 0:c.xAxisPosition)||"top",yAxisPosition:((U=m.vZ.quadrantChart)==null?void 0:U.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((G=m.vZ.quadrantChart)==null?void 0:G.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((J=m.vZ.quadrantChart)==null?void 0:J.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:z.quadrant1Fill,quadrant2Fill:z.quadrant2Fill,quadrant3Fill:z.quadrant3Fill,quadrant4Fill:z.quadrant4Fill,quadrant1TextFill:z.quadrant1TextFill,quadrant2TextFill:z.quadrant2TextFill,quadrant3TextFill:z.quadrant3TextFill,quadrant4TextFill:z.quadrant4TextFill,quadrantPointFill:z.quadrantPointFill,quadrantPointTextFill:z.quadrantPointTextFill,quadrantXAxisTextFill:z.quadrantXAxisTextFill,quadrantYAxisTextFill:z.quadrantYAxisTextFill,quadrantTitleFill:z.quadrantTitleFill,quadrantInternalBorderStrokeFill:z.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:z.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,r.cM.info("clear called")}setData(n){this.data=H(H({},this.data),n)}addPoints(n){this.data.points=[...n,...this.data.points]}addClass(n,x){this.classes.set(n,x)}setConfig(n){r.cM.trace("setConfig called with: ",n),this.config=H(H({},this.config),n)}setThemeConfig(n){r.cM.trace("setThemeConfig called with: ",n),this.themeConfig=H(H({},this.themeConfig),n)}calculateSpace(n,x,d,h){const p=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,y={top:n==="top"&&x?p:0,bottom:n==="bottom"&&x?p:0},_=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,a={left:this.config.yAxisPosition==="left"&&d?_:0,right:this.config.yAxisPosition==="right"&&d?_:0},S=this.config.titleFontSize+this.config.titlePadding*2,u={top:h?S:0},k=this.config.quadrantPadding+a.left,q=this.config.quadrantPadding+y.top+u.top,b=this.config.chartWidth-this.config.quadrantPadding*2-a.left-a.right,T=this.config.chartHeight-this.config.quadrantPadding*2-y.top-y.bottom-u.top,c=b/2,U=T/2;return{xAxisSpace:y,yAxisSpace:a,titleSpace:u,quadrantSpace:{quadrantLeft:k,quadrantTop:q,quadrantWidth:b,quadrantHalfWidth:c,quadrantHeight:T,quadrantHalfHeight:U}}}getAxisLabels(n,x,d,h){const{quadrantSpace:p,titleSpace:y}=h,{quadrantHalfHeight:_,quadrantHeight:a,quadrantLeft:S,quadrantHalfWidth:u,quadrantTop:k,quadrantWidth:q}=p,b=!!this.data.xAxisRightText,T=!!this.data.yAxisTopText,c=[];return this.data.xAxisLeftText&&x&&c.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:S+(b?u/2:0),y:n==="top"?this.config.xAxisLabelPadding+y.top:this.config.xAxisLabelPadding+k+a+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:b?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&x&&c.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:S+u+(b?u/2:0),y:n==="top"?this.config.xAxisLabelPadding+y.top:this.config.xAxisLabelPadding+k+a+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:b?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&d&&c.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+S+q+this.config.quadrantPadding,y:k+a-(T?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&d&&c.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+S+q+this.config.quadrantPadding,y:k+_-(T?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:-90}),c}getQuadrants(n){const{quadrantSpace:x}=n,{quadrantHalfHeight:d,quadrantLeft:h,quadrantHalfWidth:p,quadrantTop:y}=x,_=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h+p,y,width:p,height:d,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h,y,width:p,height:d,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h,y:y+d,width:p,height:d,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h+p,y:y+d,width:p,height:d,fill:this.themeConfig.quadrant4Fill}];for(const a of _)a.text.x=a.x+a.width/2,this.data.points.length===0?(a.text.y=a.y+a.height/2,a.text.horizontalPos="middle"):(a.text.y=a.y+this.config.quadrantTextTopPadding,a.text.horizontalPos="top");return _}getQuadrantPoints(n){const{quadrantSpace:x}=n,{quadrantHeight:d,quadrantLeft:h,quadrantTop:p,quadrantWidth:y}=x,_=(0,ft.BYU)().domain([0,1]).range([h,y+h]),a=(0,ft.BYU)().domain([0,1]).range([d+p,p]);return this.data.points.map(u=>{var b,T,c,U;const k=this.classes.get(u.className);return k&&(u=H(H({},k),u)),{x:_(u.x),y:a(u.y),fill:(b=u.color)!=null?b:this.themeConfig.quadrantPointFill,radius:(T=u.radius)!=null?T:this.config.pointRadius,text:{text:u.text,fill:this.themeConfig.quadrantPointTextFill,x:_(u.x),y:a(u.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:(c=u.strokeColor)!=null?c:this.themeConfig.quadrantPointFill,strokeWidth:(U=u.strokeWidth)!=null?U:"0px"}})}getBorders(n){const x=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:d}=n,{quadrantHalfHeight:h,quadrantHeight:p,quadrantLeft:y,quadrantHalfWidth:_,quadrantTop:a,quadrantWidth:S}=d;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y-x,y1:a,x2:y+S+x,y2:a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y+S,y1:a+x,x2:y+S,y2:a+p-x},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y-x,y1:a+p,x2:y+S+x,y2:a+p},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y,y1:a+x,x2:y,y2:a+p-x},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:y+_,y1:a+x,x2:y+_,y2:a+p-x},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:y+x,y1:a+h,x2:y+S-x,y2:a+h}]}getTitle(n){if(n)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const n=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),x=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),d=this.config.showTitle&&!!this.data.titleText,h=this.data.points.length>0?"bottom":this.config.xAxisPosition,p=this.calculateSpace(h,n,x,d);return{points:this.getQuadrantPoints(p),quadrants:this.getQuadrants(p),axisLabels:this.getAxisLabels(h,n,x,p),borderLines:this.getBorders(p),title:this.getTitle(d)}}},(0,r.eW)(et,"QuadrantBuilder"),et),_t=(it=class extends Error{constructor(n,x,d){super(`value for ${n} ${x} is invalid, please use a valid ${d}`),this.name="InvalidStyleError"}},(0,r.eW)(it,"InvalidStyleError"),it);function Et(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}(0,r.eW)(Et,"validateHexCode");function Ut(t){return!/^\d+$/.test(t)}(0,r.eW)(Ut,"validateNumber");function Ot(t){return!/^\d+px$/.test(t)}(0,r.eW)(Ot,"validateSizeInPixels");var Ae=(0,m.nV)();function Q(t){return(0,m.oO)(t.trim(),Ae)}(0,r.eW)(Q,"textSanitizer");var D=new _e;function Mt(t){D.setData({quadrant1Text:Q(t.text)})}(0,r.eW)(Mt,"setQuadrant1Text");function Qt(t){D.setData({quadrant2Text:Q(t.text)})}(0,r.eW)(Qt,"setQuadrant2Text");function Ht(t){D.setData({quadrant3Text:Q(t.text)})}(0,r.eW)(Ht,"setQuadrant3Text");function Yt(t){D.setData({quadrant4Text:Q(t.text)})}(0,r.eW)(Yt,"setQuadrant4Text");function Xt(t){D.setData({xAxisLeftText:Q(t.text)})}(0,r.eW)(Xt,"setXAxisLeftText");function Zt(t){D.setData({xAxisRightText:Q(t.text)})}(0,r.eW)(Zt,"setXAxisRightText");function jt(t){D.setData({yAxisTopText:Q(t.text)})}(0,r.eW)(jt,"setYAxisTopText");function Gt(t){D.setData({yAxisBottomText:Q(t.text)})}(0,r.eW)(Gt,"setYAxisBottomText");function At(t){const n={};for(const x of t){const[d,h]=x.trim().split(/\s*:\s*/);if(d==="radius"){if(Ut(h))throw new _t(d,h,"number");n.radius=parseInt(h)}else if(d==="color"){if(Et(h))throw new _t(d,h,"hex code");n.color=h}else if(d==="stroke-color"){if(Et(h))throw new _t(d,h,"hex code");n.strokeColor=h}else if(d==="stroke-width"){if(Ot(h))throw new _t(d,h,"number of pixels (eg. 10px)");n.strokeWidth=h}else throw new Error(`style named ${d} is not supported.`)}return n}(0,r.eW)(At,"parseStyles");function Kt(t,n,x,d,h){const p=At(h);D.addPoints([H({x,y:d,text:Q(t.text),className:n},p)])}(0,r.eW)(Kt,"addPoint");function Jt(t,n){D.addClass(t,At(n))}(0,r.eW)(Jt,"addClass");function $t(t){D.setConfig({chartWidth:t})}(0,r.eW)($t,"setWidth");function te(t){D.setConfig({chartHeight:t})}(0,r.eW)(te,"setHeight");function ee(){const t=(0,m.nV)(),{themeVariables:n,quadrantChart:x}=t;return x&&D.setConfig(x),D.setThemeConfig({quadrant1Fill:n.quadrant1Fill,quadrant2Fill:n.quadrant2Fill,quadrant3Fill:n.quadrant3Fill,quadrant4Fill:n.quadrant4Fill,quadrant1TextFill:n.quadrant1TextFill,quadrant2TextFill:n.quadrant2TextFill,quadrant3TextFill:n.quadrant3TextFill,quadrant4TextFill:n.quadrant4TextFill,quadrantPointFill:n.quadrantPointFill,quadrantPointTextFill:n.quadrantPointTextFill,quadrantXAxisTextFill:n.quadrantXAxisTextFill,quadrantYAxisTextFill:n.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:n.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:n.quadrantInternalBorderStrokeFill,quadrantTitleFill:n.quadrantTitleFill}),D.setData({titleText:(0,m.Kr)()}),D.build()}(0,r.eW)(ee,"getQuadrantData");var Se=(0,r.eW)(function(){D.clear(),(0,m.ZH)()},"clear"),ve={setWidth:$t,setHeight:te,setQuadrant1Text:Mt,setQuadrant2Text:Qt,setQuadrant3Text:Ht,setQuadrant4Text:Yt,setXAxisLeftText:Xt,setXAxisRightText:Zt,setYAxisTopText:jt,setYAxisBottomText:Gt,parseStyles:At,addPoint:Kt,addClass:Jt,getQuadrantData:ee,clear:Se,setAccTitle:m.GN,getAccTitle:m.eu,setDiagramTitle:m.g2,getDiagramTitle:m.Kr,getAccDescription:m.Mx,setAccDescription:m.U$},Pe=(0,r.eW)((t,n,x,d)=>{var yt,bt,Tt,kt,qt,B;function h(i){return i==="top"?"hanging":"middle"}(0,r.eW)(h,"getDominantBaseLine");function p(i){return i==="left"?"start":"middle"}(0,r.eW)(p,"getTextAnchor");function y(i){return`translate(${i.x}, ${i.y}) rotate(${i.rotation||0})`}(0,r.eW)(y,"getTransformation");const _=(0,m.nV)();r.cM.debug(`Rendering quadrant chart
|
|
7
|
+
`+t);const a=_.securityLevel;let S;a==="sandbox"&&(S=(0,ft.Ys)("#i"+n));const k=(a==="sandbox"?(0,ft.Ys)(S.nodes()[0].contentDocument.body):(0,ft.Ys)("body")).select(`[id="${n}"]`),q=k.append("g").attr("class","main"),b=(bt=(yt=_.quadrantChart)==null?void 0:yt.chartWidth)!=null?bt:500,T=(kt=(Tt=_.quadrantChart)==null?void 0:Tt.chartHeight)!=null?kt:500;(0,m.v2)(k,T,b,(B=(qt=_.quadrantChart)==null?void 0:qt.useMaxWidth)!=null?B:!0),k.attr("viewBox","0 0 "+b+" "+T),d.db.setHeight(T),d.db.setWidth(b);const c=d.db.getQuadrantData(),U=q.append("g").attr("class","quadrants"),G=q.append("g").attr("class","border"),J=q.append("g").attr("class","data-points"),St=q.append("g").attr("class","labels"),vt=q.append("g").attr("class","title");c.title&&vt.append("text").attr("x",0).attr("y",0).attr("fill",c.title.fill).attr("font-size",c.title.fontSize).attr("dominant-baseline",h(c.title.horizontalPos)).attr("text-anchor",p(c.title.verticalPos)).attr("transform",y(c.title)).text(c.title.text),c.borderLines&&G.selectAll("line").data(c.borderLines).enter().append("line").attr("x1",i=>i.x1).attr("y1",i=>i.y1).attr("x2",i=>i.x2).attr("y2",i=>i.y2).style("stroke",i=>i.strokeFill).style("stroke-width",i=>i.strokeWidth);const gt=U.selectAll("g.quadrant").data(c.quadrants).enter().append("g").attr("class","quadrant");gt.append("rect").attr("x",i=>i.x).attr("y",i=>i.y).attr("width",i=>i.width).attr("height",i=>i.height).attr("fill",i=>i.fill),gt.append("text").attr("x",0).attr("y",0).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>h(i.text.horizontalPos)).attr("text-anchor",i=>p(i.text.verticalPos)).attr("transform",i=>y(i.text)).text(i=>i.text.text),St.selectAll("g.label").data(c.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(i=>i.text).attr("fill",i=>i.fill).attr("font-size",i=>i.fontSize).attr("dominant-baseline",i=>h(i.horizontalPos)).attr("text-anchor",i=>p(i.verticalPos)).attr("transform",i=>y(i));const pt=J.selectAll("g.data-point").data(c.points).enter().append("g").attr("class","data-point");pt.append("circle").attr("cx",i=>i.x).attr("cy",i=>i.y).attr("r",i=>i.radius).attr("fill",i=>i.fill).attr("stroke",i=>i.strokeColor).attr("stroke-width",i=>i.strokeWidth),pt.append("text").attr("x",0).attr("y",0).text(i=>i.text.text).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>h(i.text.horizontalPos)).attr("text-anchor",i=>p(i.text.verticalPos)).attr("transform",i=>y(i.text))},"draw"),Fe={draw:Pe},We={parser:me,db:ve,renderer:Fe,styles:(0,r.eW)(()=>"","styles")}}}]);
|
|
8
|
+
}());
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
!(function(){"use strict";var le=Object.defineProperty,fe=Object.defineProperties;var ue=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var ge=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var $=(E,M,u)=>M in E?le(E,M,{enumerable:!0,configurable:!0,writable:!0,value:u}):E[M]=u,Y=(E,M)=>{for(var u in M||(M={}))ge.call(M,u)&&$(E,u,M[u]);if(L)for(var u of L(M))we.call(M,u)&&$(E,u,M[u]);return E},I=(E,M)=>fe(E,ue(M));var O=(E,M,u)=>new Promise((p,B)=>{var N=b=>{try{Z(u.next(b))}catch(R){B(R)}},J=b=>{try{Z(u.throw(b))}catch(R){B(R)}},Z=b=>b.done?p(b.value):Promise.resolve(b.value).then(N,J);Z((u=u.apply(E,M)).next())});(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[5754],{92346:function(E,M,u){var p=u(45401),B=4;function N(J){return(0,p.Z)(J,B)}M.Z=N},35754:function(E,M,u){u.r(M),u.d(M,{render:function(){return de}});var p=u(28659),B=u(84593),N=u(31792),J=u(5016),Z=u(2831),b=u(21347),R=u(4284),q=u(99970),s=u(35096),ee=u(88749),k=u(49360),ne=u(92346),G=u(43836),Me=u(54585);function C(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:te(e),edges:se(e)};return k.Z(e.graph())||(t.value=ne.Z(e.graph())),t}function te(e){return G.Z(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),a={v:t};return k.Z(n)||(a.value=n),k.Z(r)||(a.parent=r),a})}function se(e){return G.Z(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return k.Z(t.name)||(r.name=t.name),k.Z(n)||(r.value=n),r})}function ve(e){var t=new Graph(e.options).setGraph(e.value);return _.each(e.nodes,function(n){t.setNode(n.v,n.value),n.parent&&t.setParent(n.v,n.parent)}),_.each(e.edges,function(n){t.setEdge({v:n.v,w:n.w,name:n.name},n.value)}),t}var H=u(45625),l=new Map,D=new Map,F=new Map,ie=(0,s.eW)(()=>{D.clear(),F.clear(),l.clear()},"clear"),T=(0,s.eW)((e,t)=>{const n=D.get(t)||[];return s.cM.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),ce=(0,s.eW)((e,t)=>{const n=D.get(t)||[];return s.cM.info("Descendants of ",t," is ",n),s.cM.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||T(e.v,t)||T(e.w,t)||n.includes(e.w):(s.cM.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),j=(0,s.eW)((e,t,n,r)=>{s.cM.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const a=t.children(e)||[];e!==r&&a.push(e),s.cM.warn("Copying (nodes) clusterId",e,"nodes",a),a.forEach(o=>{if(t.children(o).length>0)j(o,t,n,r);else{const c=t.node(o);s.cM.info("cp ",o," to ",r," with parent ",e),n.setNode(o,c),r!==t.parent(o)&&(s.cM.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==r&&o!==e?(s.cM.debug("Setting parent",o,e),n.setParent(o,e)):(s.cM.info("In copy ",e,"root",r,"data",t.node(e),r),s.cM.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==r,"node!==clusterId",o!==e));const g=t.edges(o);s.cM.debug("Copying Edges",g),g.forEach(f=>{s.cM.info("Edge",f);const X=t.edge(f.v,f.w,f.name);s.cM.info("Edge data",X,r);try{ce(f,r)?(s.cM.info("Copying as ",f.v,f.w,X,f.name),n.setEdge(f.v,f.w,X,f.name),s.cM.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.cM.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(P){s.cM.error(P)}})}s.cM.debug("Removing node",o),t.removeNode(o)})},"copy"),U=(0,s.eW)((e,t)=>{const n=t.children(e);let r=[...n];for(const a of n)F.set(a,e),r=[...r,...U(a,t)];return r},"extractDescendants"),re=(0,s.eW)((e,t,n)=>{const r=e.edges().filter(f=>f.v===t||f.w===t),a=e.edges().filter(f=>f.v===n||f.w===n),o=r.map(f=>({v:f.v===t?n:f.v,w:f.w===t?t:f.w})),c=a.map(f=>({v:f.v,w:f.w}));return o.filter(f=>c.some(X=>f.v===X.v&&f.w===X.w))},"findCommonEdges"),W=(0,s.eW)((e,t,n)=>{const r=t.children(e);if(s.cM.trace("Searching children of id ",e,r),r.length<1)return e;let a;for(const o of r){const c=W(o,t,n),g=re(t,n,c);if(c)if(g.length>0)a=c;else return c}return a},"findNonClusterChild"),V=(0,s.eW)(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),oe=(0,s.eW)((e,t)=>{if(!e||t>10){s.cM.debug("Opting out, no graph ");return}else s.cM.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.cM.warn("Cluster identified",n," Replacement id in edges: ",W(n,e,n)),D.set(n,U(n,e)),l.set(n,{id:W(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const r=e.children(n),a=e.edges();r.length>0?(s.cM.debug("Cluster identified",n,D),a.forEach(o=>{const c=T(o.v,n),g=T(o.w,n);c^g&&(s.cM.warn("Edge: ",o," leaves cluster ",n),s.cM.warn("Descendants of XXX ",n,": ",D.get(n)),l.get(n).externalConnections=!0)})):s.cM.debug("Not a cluster ",n,D)});for(let n of l.keys()){const r=l.get(n).id,a=e.parent(r);a!==n&&l.has(a)&&!l.get(a).externalConnections&&(l.get(n).id=a)}e.edges().forEach(function(n){const r=e.edge(n);s.cM.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.cM.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let a=n.v,o=n.w;if(s.cM.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l.get(n.v)," --- ",l.get(n.w)),l.get(n.v)||l.get(n.w)){if(s.cM.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),a=V(n.v),o=V(n.w),e.removeEdge(n.v,n.w,n.name),a!==n.v){const c=e.parent(a);l.get(c).externalConnections=!0,r.fromCluster=n.v}if(o!==n.w){const c=e.parent(o);l.get(c).externalConnections=!0,r.toCluster=n.w}s.cM.warn("Fix Replacing with XXX",a,o,n.name),e.setEdge(a,o,r,n.name)}}),s.cM.warn("Adjusted Graph",C(e)),K(e,0),s.cM.trace(l)},"adjustClustersAndEdges"),K=(0,s.eW)((e,t)=>{var a,o;if(s.cM.warn("extractor - ",t,C(e),e.children("D")),t>10){s.cM.error("Bailing out");return}let n=e.nodes(),r=!1;for(const c of n){const g=e.children(c);r=r||g.length>0}if(!r){s.cM.debug("Done, no node has children",e.nodes());return}s.cM.debug("Nodes = ",n,t);for(const c of n)if(s.cM.debug("Extracting node",c,l,l.has(c)&&!l.get(c).externalConnections,!e.parent(c),e.node(c),e.children("D")," Depth ",t),!l.has(c))s.cM.debug("Not a cluster",c,t);else if(!l.get(c).externalConnections&&e.children(c)&&e.children(c).length>0){s.cM.warn("Cluster without external connections, without a parent and with children",c,t);let f=e.graph().rankdir==="TB"?"LR":"TB";(o=(a=l.get(c))==null?void 0:a.clusterData)!=null&&o.dir&&(f=l.get(c).clusterData.dir,s.cM.warn("Fixing dir",l.get(c).clusterData.dir,f));const X=new H.k({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.cM.warn("Old graph before copy",C(e)),j(c,e,X,c),e.setNode(c,{clusterNode:!0,id:c,clusterData:l.get(c).clusterData,label:l.get(c).label,graph:X}),s.cM.warn("New graph after copy node: (",c,")",C(X)),s.cM.debug("Old graph after copy",C(e))}else s.cM.warn("Cluster ** ",c," **not meeting the criteria !externalConnections:",!l.get(c).externalConnections," no parent: ",!e.parent(c)," children ",e.children(c)&&e.children(c).length>0,e.children("D"),t),s.cM.debug(l);n=e.nodes(),s.cM.warn("New list of nodes",n);for(const c of n){const g=e.node(c);s.cM.warn(" Now next level",c,g),g!=null&&g.clusterNode&&K(g.graph,t+1)}},"extractor"),Q=(0,s.eW)((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(r=>{const a=e.children(r),o=Q(e,a);n=[...n,...o]}),n},"sorter"),ae=(0,s.eW)(e=>Q(e,e.children()),"sortNodesByHierarchy"),z=(0,s.eW)((e,t,n,r,a,o)=>O(this,null,function*(){s.cM.warn("Graph in recursive render:XAX",C(t),a);const c=t.graph().rankdir;s.cM.trace("Dir in recursive render - dir:",c);const g=e.insert("g").attr("class","root");t.nodes()?s.cM.info("Recursive render XXX",t.nodes()):s.cM.info("No nodes found for",t),t.edges().length>0&&s.cM.info("Recursive edges",t.edge(t.edges()[0]));const f=g.insert("g").attr("class","clusters"),X=g.insert("g").attr("class","edgePaths"),P=g.insert("g").attr("class","edgeLabels"),w=g.insert("g").attr("class","nodes");yield Promise.all(t.nodes().map(function(d){return O(this,null,function*(){const i=t.node(d);if(a!==void 0){const v=JSON.parse(JSON.stringify(a.clusterData));s.cM.trace(`Setting data for parent cluster XXX
|
|
2
|
+
Node.id = `,d,`
|
|
3
|
+
data=`,v.height,`
|
|
4
|
+
Parent cluster`,a.height),t.setNode(a.id,v),t.parent(d)||(s.cM.trace("Setting parent",d,a.id),t.setParent(d,a.id,v))}if(s.cM.info("(Insert) Node XXX"+d+": "+JSON.stringify(t.node(d))),i!=null&&i.clusterNode){s.cM.info("Cluster identified XBX",d,i.width,t.node(d));const{ranksep:v,nodesep:h}=t.graph();i.graph.setGraph(I(Y({},i.graph.graph()),{ranksep:v+25,nodesep:h}));const x=yield z(w,i.graph,n,r,t.node(d),o),A=x.elem;(0,N.jr)(i,A),i.diff=x.diff||0,s.cM.info("New compound node after recursive render XAX",d,"width",i.width,"height",i.height),(0,N.Yn)(A,i)}else t.children(d).length>0?(s.cM.trace("Cluster - the non recursive path XBX",d,i.id,i,i.width,"Graph:",t),s.cM.trace(W(i.id,t)),l.set(i.id,{id:W(i.id,t),node:i})):(s.cM.trace("Node - the non recursive path XAX",d,w,t.node(d),c),yield(0,N.Lf)(w,t.node(d),{config:o,dir:c}))})})),yield(0,s.eW)(()=>O(this,null,function*(){const d=t.edges().map(function(i){return O(this,null,function*(){const v=t.edge(i.v,i.w,i.name);s.cM.info("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),s.cM.info("Edge "+i.v+" -> "+i.w+": ",i," ",JSON.stringify(t.edge(i))),s.cM.info("Fix",l,"ids:",i.v,i.w,"Translating: ",l.get(i.v),l.get(i.w)),yield(0,p.I_)(P,v)})});yield Promise.all(d)}),"processEdges")(),s.cM.info("Graph before layout:",JSON.stringify(C(t))),s.cM.info("############################################# XXX"),s.cM.info("### Layout ### XXX"),s.cM.info("############################################# XXX"),(0,ee.bK)(t),s.cM.info("Graph after layout:",JSON.stringify(C(t)));let S=0,{subGraphTitleTotalMargin:y}=(0,J.L)(o);return yield Promise.all(ae(t).map(function(d){return O(this,null,function*(){var v;const i=t.node(d);if(s.cM.info("Position XBX => "+d+": ("+i.x,","+i.y,") width: ",i.width," height: ",i.height),i!=null&&i.clusterNode)i.y+=y,s.cM.info("A tainted cluster node XBX1",d,i.id,i.width,i.height,i.x,i.y,t.parent(d)),l.get(i.id).node=i,(0,N.aH)(i);else if(t.children(d).length>0){s.cM.info("A pure cluster node XBX1",d,i.id,i.x,i.y,i.width,i.height,t.parent(d)),i.height+=y,t.node(i.parentId);const h=(i==null?void 0:i.padding)/2||0,x=((v=i==null?void 0:i.labelBBox)==null?void 0:v.height)||0,A=x-h||0;s.cM.debug("OffsetY",A,"labelHeight",x,"halfPadding",h),yield(0,N.us)(f,i),l.get(i.id).node=i}else{const h=t.node(i.parentId);i.y+=y/2,s.cM.info("A regular node XBX1 - using the padding",i.id,"parent",i.parentId,i.width,i.height,i.x,i.y,"offsetY",i.offsetY,"parent",h,h==null?void 0:h.offsetY,i),(0,N.aH)(i)}})})),t.edges().forEach(function(d){const i=t.edge(d);s.cM.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(i),i),i.points.forEach(A=>A.y+=y/2);const v=t.node(d.v);var h=t.node(d.w);const x=(0,p.QP)(X,i,l,n,v,h,r);(0,p.Jj)(i,x)}),t.nodes().forEach(function(d){const i=t.node(d);s.cM.info(d,i.type,i.diff),i.isGroup&&(S=i.diff)}),s.cM.warn("Returning from recursive render XAX",g,S),{elem:g,diff:S}}),"recursiveRender"),de=(0,s.eW)((e,t)=>O(this,null,function*(){var o,c,g,f,X,P;const n=new H.k({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:((o=e.config)==null?void 0:o.nodeSpacing)||((g=(c=e.config)==null?void 0:c.flowchart)==null?void 0:g.nodeSpacing)||e.nodeSpacing,ranksep:((f=e.config)==null?void 0:f.rankSpacing)||((P=(X=e.config)==null?void 0:X.flowchart)==null?void 0:P.rankSpacing)||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),r=t.select("g");(0,p.DQ)(r,e.markers,e.type,e.diagramId),(0,N.gU)(),(0,p.ZH)(),(0,N.ZH)(),ie(),e.nodes.forEach(w=>{n.setNode(w.id,Y({},w)),w.parentId&&n.setParent(w.id,w.parentId)}),s.cM.debug("Edges:",e.edges),e.edges.forEach(w=>{if(w.start===w.end){const m=w.start,S=m+"---"+m+"---1",y=m+"---"+m+"---2",d=n.node(m);n.setNode(S,{domId:S,id:S,parentId:d.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(S,d.parentId),n.setNode(y,{domId:y,id:y,parentId:d.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(y,d.parentId);const i=structuredClone(w),v=structuredClone(w),h=structuredClone(w);i.label="",i.arrowTypeEnd="none",i.id=m+"-cyclic-special-1",v.arrowTypeStart="none",v.arrowTypeEnd="none",v.id=m+"-cyclic-special-mid",h.label="",d.isGroup&&(i.fromCluster=m,h.toCluster=m),h.id=m+"-cyclic-special-2",h.arrowTypeStart="none",n.setEdge(m,S,i,m+"-cyclic-special-0"),n.setEdge(S,y,v,m+"-cyclic-special-1"),n.setEdge(y,m,h,m+"-cyc<lic-special-2")}else n.setEdge(w.start,w.end,Y({},w),w.id)}),s.cM.warn("Graph at first:",JSON.stringify(C(n))),oe(n),s.cM.warn("Graph after XAX:",JSON.stringify(C(n)));const a=(0,q.nV)();yield z(r,n,e.type,e.diagramId,void 0,a)}),"render")}}]);
|
|
5
|
+
}());
|