dimcode 0.0.6-beta.24 → 0.0.6-beta.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/assets/gui/200.html +1 -1
  2. package/assets/gui/404.html +1 -1
  3. package/assets/gui/_nuxt/{CctfDgzL.js → 0b551Iup.js} +1 -1
  4. package/assets/gui/_nuxt/{waGmH_zw.js → 4plqNI3E.js} +1 -1
  5. package/assets/gui/_nuxt/{B41oyhUX.js → B2yiF0dP.js} +1 -1
  6. package/assets/gui/_nuxt/{Cx8lgPkP.js → B8sXOwue.js} +1 -1
  7. package/assets/gui/_nuxt/BAAwCcKi.js +1 -0
  8. package/assets/gui/_nuxt/{BHBA7_9A.js → BE4JB3YQ.js} +1 -1
  9. package/assets/gui/_nuxt/{zPZrJS7V.js → BGp_FwD9.js} +1 -1
  10. package/assets/gui/_nuxt/{DQcJWYOz.js → BIM4RUHw.js} +1 -1
  11. package/assets/gui/_nuxt/{WbTodJZi.js → BJmxWypQ.js} +1 -1
  12. package/assets/gui/_nuxt/{BAsEomiL.js → BKMTnum7.js} +1 -1
  13. package/assets/gui/_nuxt/{CgCvTYUb.js → BPM3vi7L.js} +1 -1
  14. package/assets/gui/_nuxt/{CxrwCJPS.js → BloQGtiP.js} +1 -1
  15. package/assets/gui/_nuxt/{C2r5gH2d.js → BnC2hR_I.js} +1 -1
  16. package/assets/gui/_nuxt/{DCBWnvUv.js → BtMqZKeb.js} +1 -1
  17. package/assets/gui/_nuxt/BtYWoTeV.js +1 -0
  18. package/assets/gui/_nuxt/{a4I2nS0P.js → Bu7UbN50.js} +1 -1
  19. package/assets/gui/_nuxt/{DDwo0uwT.js → C11b51Ac.js} +1 -1
  20. package/assets/gui/_nuxt/{BtytU9Nc.js → C1yhW14G.js} +2 -2
  21. package/assets/gui/_nuxt/{BJgShMaj.js → C5cXMF-A.js} +1 -1
  22. package/assets/gui/_nuxt/{Fi3JZ7gi.js → C6Po8woU.js} +1 -1
  23. package/assets/gui/_nuxt/C6lP39IU.js +4 -0
  24. package/assets/gui/_nuxt/{m1p94B0o.js → C8BqVsjE.js} +1 -1
  25. package/assets/gui/_nuxt/{FdVDP1dJ.js → C8FO969Z.js} +48 -48
  26. package/assets/gui/_nuxt/C8tOkigv.js +1 -0
  27. package/assets/gui/_nuxt/{Dgtmkgv6.js → CILJ3eP4.js} +1 -1
  28. package/assets/gui/_nuxt/{fGWXVeDl.js → CJeKOH-v.js} +2 -2
  29. package/assets/gui/_nuxt/CKgPEzpl.js +1 -0
  30. package/assets/gui/_nuxt/{C_nwuZOL.js → CNpnPA49.js} +1 -1
  31. package/assets/gui/_nuxt/{DLps5vLc.js → CSea6CJ5.js} +1 -1
  32. package/assets/gui/_nuxt/{Be9sogz8.js → CU5WgS48.js} +1 -1
  33. package/assets/gui/_nuxt/{gw8YJBUN.js → CZ1LJRt8.js} +1 -1
  34. package/assets/gui/_nuxt/{4latAK5N.js → CfQJsi7e.js} +3 -3
  35. package/assets/gui/_nuxt/{DuPuI2eK.js → Cgg1My-l.js} +1 -1
  36. package/assets/gui/_nuxt/{CR-veSvi.js → ChaLjQbU.js} +1 -1
  37. package/assets/gui/_nuxt/CmKTTxBW.js +1 -0
  38. package/assets/gui/_nuxt/{QrFbBF0x.js → Conicgba.js} +1 -1
  39. package/assets/gui/_nuxt/{B-ocCvqj.js → CupMKq6u.js} +1 -1
  40. package/assets/gui/_nuxt/{1fcVKlQD.js → D0ya9d-G.js} +1 -1
  41. package/assets/gui/_nuxt/{DJ0FGiPu.js → D2lZokPL.js} +1 -1
  42. package/assets/gui/_nuxt/{BHmwI27Q.js → D5KI-6FL.js} +2 -2
  43. package/assets/gui/_nuxt/{BCdCHJrs.js → DCxOw3GV.js} +2 -2
  44. package/assets/gui/_nuxt/{I4qJV1od.js → DCyR-K5m.js} +4 -4
  45. package/assets/gui/_nuxt/DLnSW1IF.js +1 -0
  46. package/assets/gui/_nuxt/{FmGx3-yC.js → DUsPre0P.js} +1 -1
  47. package/assets/gui/_nuxt/{DNM2C9RQ.js → DX6XiGOO.js} +1 -1
  48. package/assets/gui/_nuxt/{CM2Ru5jE.js → DXsty2qm.js} +1 -1
  49. package/assets/gui/_nuxt/{CvBv_9Ii.js → DZ0NWvbi.js} +1 -1
  50. package/assets/gui/_nuxt/{VvxifOG2.js → DaWfUpsD.js} +68 -68
  51. package/assets/gui/_nuxt/{BIK3UA9H.js → DlL1-BJh.js} +1 -1
  52. package/assets/gui/_nuxt/Dn4y6C2r.js +1 -0
  53. package/assets/gui/_nuxt/{B-QRPBiU.js → DpTvXhMN.js} +1 -1
  54. package/assets/gui/_nuxt/{C5QU6AII.js → DzzoB_Be.js} +1 -1
  55. package/assets/gui/_nuxt/{BMPUUilT.js → GsNec5dh.js} +1 -1
  56. package/assets/gui/_nuxt/{JhHowHQY.js → _RKv1NgS.js} +1 -1
  57. package/assets/gui/_nuxt/{eM4IBQGT.js → _mPeMGlT.js} +1 -1
  58. package/assets/gui/_nuxt/builds/latest.json +1 -1
  59. package/assets/gui/_nuxt/builds/meta/91856030-4db6-4d02-99f2-9dd4e16a0083.json +1 -0
  60. package/assets/gui/_nuxt/{entry.DKEE1mdx.css → entry.PbPm020F.css} +1 -1
  61. package/assets/gui/_nuxt/error-404.DF6r4GP7.css +1 -0
  62. package/assets/gui/_nuxt/error-500.Bo5pzFPU.css +1 -0
  63. package/assets/gui/_nuxt/{CYh22N6Z.js → gpkmuIcl.js} +1 -1
  64. package/assets/gui/_nuxt/{0OuYuFdd.js → kTUG9xEK.js} +1 -1
  65. package/assets/gui/_nuxt/{moIhOSp_.js → nJjJxbsW.js} +3 -3
  66. package/assets/gui/index.html +1 -1
  67. package/assets/native/build.zig +16 -0
  68. package/assets/native/src/lib.zig +23 -0
  69. package/dist/cli.mjs +710 -705
  70. package/dist/models/aihubmix.json +3 -3
  71. package/dist/models/openrouter.json +29 -73
  72. package/dist/models/zenmux.json +39 -4
  73. package/package.json +16 -17
  74. package/assets/gui/_nuxt/5tCQ9P9x.js +0 -1
  75. package/assets/gui/_nuxt/CRt9G2a3.js +0 -1
  76. package/assets/gui/_nuxt/CW5-BTm0.js +0 -1
  77. package/assets/gui/_nuxt/CjaZXJmO.js +0 -1
  78. package/assets/gui/_nuxt/DGBBJ9Xx.js +0 -1
  79. package/assets/gui/_nuxt/DYanJOYX.js +0 -1
  80. package/assets/gui/_nuxt/DhXJpUyf.js +0 -261
  81. package/assets/gui/_nuxt/DhgdKvf3.js +0 -4
  82. package/assets/gui/_nuxt/Dr-RzAtV.js +0 -1
  83. package/assets/gui/_nuxt/builds/meta/dec0eefa-4c17-4a79-8e1f-648e9e2bc632.json +0 -1
  84. package/assets/gui/_nuxt/error-404.BAwq3L4-.css +0 -1
  85. package/assets/gui/_nuxt/error-500.DFXMopWe.css +0 -1
@@ -22,7 +22,7 @@
22
22
  "output": 200000
23
23
  },
24
24
  "metadata": {
25
- "description": "Claude Opus 4.6 is Anthropic’s latest state-of-the-art reasoning model. It features an adaptive “thinking” mode that dynamically decides when to think and how much to think. At the default effort level (high), Claude will almost always engage in thinking. At lower effort levels, it may skip thinking for simple problems.",
25
+ "description": "Claude Opus 4.6 is Anthropic’s latest state-of-the-art reasoning model. It features an adaptive “thinking” mode that dynamically decides when to think and how much to think. At the default effort level (high), Claude will almost always engage in thinking. At lower effort levels, it may skip thinking for simple problems.\n ⚠️ The minimum cache token for claude-opus-4-6 has been increased from 1,024 to 4,096 tokens.",
26
26
  "typeHints": ["llm"],
27
27
  "features": [
28
28
  "thinking",
@@ -224,7 +224,7 @@
224
224
  "output": 200000
225
225
  },
226
226
  "metadata": {
227
- "description": "Claude Opus 4.5 is Anthropic’s latest frontier reasoning model, optimized for complex engineering, agentic workflows, and long-horizon computer use. It features strong multimodal capabilities, improved resistance to prompt injection, and a new Verbosity parameter to control token efficiency. With advanced tool use, extended context, and multi-agent support, Opus 4.5 excels in autonomous research, debugging, planning, and spreadsheet/browser operations.",
227
+ "description": "Claude Opus 4.5 is Anthropic’s latest frontier reasoning model, optimized for complex engineering, agentic workflows, and long-horizon computer use. It features strong multimodal capabilities, improved resistance to prompt injection, and a new Verbosity parameter to control token efficiency. With advanced tool use, extended context, and multi-agent support, Opus 4.5 excels in autonomous research, debugging, planning, and spreadsheet/browser operations.\n⚠️ The minimum cache token for claude-opus-4-5 has been increased from 1,024 to 4,096 tokens.",
228
228
  "typeHints": ["llm"],
229
229
  "features": [
230
230
  "thinking",
@@ -1135,7 +1135,7 @@
1135
1135
  "output": 204800
1136
1136
  },
1137
1137
  "metadata": {
1138
- "description": "Claude Haiku 4.5 is a fast, affordable, and highly capable AI model, excelling at coding and agentic tasks. Its combination of speed and low cost makes it ideal for powering real-time applications like chatbots, high-volume free services, and specialized \"sub-agents\" for complex tasks in coding, finance, and research. It can also handle common business tasks like creating office documents and assisting with strategy and analysis.",
1138
+ "description": "Claude Haiku 4.5 is a fast, affordable, and highly capable AI model, excelling at coding and agentic tasks. Its combination of speed and low cost makes it ideal for powering real-time applications like chatbots, high-volume free services, and specialized \"sub-agents\" for complex tasks in coding, finance, and research. It can also handle common business tasks like creating office documents and assisting with strategy and analysis.\n⚠️ The minimum cache token for claude-haiku-4-5 has been increased from 1,024 to 4,096 tokens.",
1139
1139
  "typeHints": ["llm"],
1140
1140
  "features": [
1141
1141
  "thinking",
@@ -21,28 +21,6 @@
21
21
  },
22
22
  "vision": false
23
23
  },
24
- {
25
- "id": "ai21/jamba-mini-1.7",
26
- "name": "AI21: Jamba Mini 1.7",
27
- "display_name": "AI21: Jamba Mini 1.7",
28
- "type": "chat",
29
- "reasoning": {
30
- "supported": false
31
- },
32
- "tool_call": true,
33
- "modalities": {
34
- "input": ["text"],
35
- "output": ["text"]
36
- },
37
- "limit": {
38
- "context": 256000,
39
- "output": 4096
40
- },
41
- "metadata": {
42
- "source": "public-provider-conf"
43
- },
44
- "vision": false
45
- },
46
24
  {
47
25
  "id": "aion-labs/aion-1.0",
48
26
  "name": "AionLabs: Aion-1.0",
@@ -3447,7 +3425,7 @@
3447
3425
  },
3448
3426
  "limit": {
3449
3427
  "context": 32768,
3450
- "output": 32768
3428
+ "output": 16384
3451
3429
  },
3452
3430
  "metadata": {
3453
3431
  "source": "public-provider-conf"
@@ -3684,29 +3662,6 @@
3684
3662
  },
3685
3663
  "vision": false
3686
3664
  },
3687
- {
3688
- "id": "moonshotai/kimi-dev-72b",
3689
- "name": "MoonshotAI: Kimi Dev 72B",
3690
- "display_name": "MoonshotAI: Kimi Dev 72B",
3691
- "type": "chat",
3692
- "reasoning": {
3693
- "supported": true,
3694
- "default": true
3695
- },
3696
- "tool_call": false,
3697
- "modalities": {
3698
- "input": ["text"],
3699
- "output": ["text"]
3700
- },
3701
- "limit": {
3702
- "context": 131072,
3703
- "output": 131072
3704
- },
3705
- "metadata": {
3706
- "source": "public-provider-conf"
3707
- },
3708
- "vision": false
3709
- },
3710
3665
  {
3711
3666
  "id": "moonshotai/kimi-k2",
3712
3667
  "name": "MoonshotAI: Kimi K2 0711",
@@ -3812,7 +3767,7 @@
3812
3767
  },
3813
3768
  "limit": {
3814
3769
  "context": 262144,
3815
- "output": 65535
3770
+ "output": 262144
3816
3771
  },
3817
3772
  "metadata": {
3818
3773
  "source": "public-provider-conf"
@@ -5732,6 +5687,30 @@
5732
5687
  },
5733
5688
  "vision": true
5734
5689
  },
5690
+ {
5691
+ "id": "openrouter/pony-alpha",
5692
+ "name": "Pony Alpha",
5693
+ "display_name": "Pony Alpha",
5694
+ "type": "chat",
5695
+ "reasoning": {
5696
+ "supported": true,
5697
+ "default": true
5698
+ },
5699
+ "temperature": true,
5700
+ "tool_call": false,
5701
+ "modalities": {
5702
+ "input": ["text"],
5703
+ "output": ["text"]
5704
+ },
5705
+ "limit": {
5706
+ "context": 200000,
5707
+ "output": 131000
5708
+ },
5709
+ "metadata": {
5710
+ "source": "public-provider-conf"
5711
+ },
5712
+ "vision": false
5713
+ },
5735
5714
  {
5736
5715
  "id": "perplexity/sonar",
5737
5716
  "name": "Perplexity: Sonar",
@@ -7015,29 +6994,6 @@
7015
6994
  },
7016
6995
  "vision": false
7017
6996
  },
7018
- {
7019
- "id": "stepfun-ai/step3",
7020
- "name": "StepFun: Step3",
7021
- "display_name": "StepFun: Step3",
7022
- "type": "image-generation",
7023
- "reasoning": {
7024
- "supported": true,
7025
- "default": true
7026
- },
7027
- "tool_call": true,
7028
- "modalities": {
7029
- "input": ["image", "text"],
7030
- "output": ["text"]
7031
- },
7032
- "limit": {
7033
- "context": 65536,
7034
- "output": 65536
7035
- },
7036
- "metadata": {
7037
- "source": "public-provider-conf"
7038
- },
7039
- "vision": true
7040
- },
7041
6997
  {
7042
6998
  "id": "stepfun/step-3.5-flash:free",
7043
6999
  "name": "StepFun: Step 3.5 Flash (free)",
@@ -7670,7 +7626,7 @@
7670
7626
  },
7671
7627
  "limit": {
7672
7628
  "context": 131072,
7673
- "output": 131072
7629
+ "output": 98304
7674
7630
  },
7675
7631
  "metadata": {
7676
7632
  "source": "public-provider-conf"
@@ -7837,8 +7793,8 @@
7837
7793
  "output": ["text"]
7838
7794
  },
7839
7795
  "limit": {
7840
- "context": 200000,
7841
- "output": 131072
7796
+ "context": 202752,
7797
+ "output": 202752
7842
7798
  },
7843
7799
  "metadata": {
7844
7800
  "source": "public-provider-conf"
@@ -60,8 +60,7 @@
60
60
  "name": "Step 3.5 Flash",
61
61
  "attachment": false,
62
62
  "reasoning": {
63
- "supported": true,
64
- "default": true
63
+ "supported": false
65
64
  },
66
65
  "tool_call": true,
67
66
  "temperature": true,
@@ -121,6 +120,9 @@
121
120
  "default": true
122
121
  },
123
122
  "tool_call": true,
123
+ "interleaved": {
124
+ "field": "reasoning_content"
125
+ },
124
126
  "temperature": true,
125
127
  "knowledge": "2025-01-01",
126
128
  "release_date": "2026-01-27",
@@ -787,7 +789,7 @@
787
789
  "default": true
788
790
  },
789
791
  "tool_call": true,
790
- "temperature": true,
792
+ "temperature": false,
791
793
  "knowledge": "2025-01-01",
792
794
  "release_date": "2026-01-15",
793
795
  "last_updated": "2026-01-15",
@@ -991,7 +993,7 @@
991
993
  "default": true
992
994
  },
993
995
  "tool_call": true,
994
- "temperature": true,
996
+ "temperature": false,
995
997
  "knowledge": "2025-01-01",
996
998
  "release_date": "2025-12-11",
997
999
  "last_updated": "2025-12-11",
@@ -1319,6 +1321,9 @@
1319
1321
  "default": true
1320
1322
  },
1321
1323
  "tool_call": true,
1324
+ "interleaved": {
1325
+ "field": "reasoning_content"
1326
+ },
1322
1327
  "temperature": true,
1323
1328
  "knowledge": "2025-01-01",
1324
1329
  "release_date": "2026-01-19",
@@ -1756,6 +1761,36 @@
1756
1761
  },
1757
1762
  "display_name": "Claude Sonnet 4.5"
1758
1763
  },
1764
+ {
1765
+ "id": "anthropic/claude-opus-4.6",
1766
+ "name": "Claude Opus 4.6",
1767
+ "attachment": true,
1768
+ "reasoning": {
1769
+ "supported": true,
1770
+ "default": true
1771
+ },
1772
+ "tool_call": true,
1773
+ "temperature": true,
1774
+ "knowledge": "2025-01-01",
1775
+ "release_date": "2026-02-06",
1776
+ "last_updated": "2026-02-06",
1777
+ "modalities": {
1778
+ "input": ["image", "text"],
1779
+ "output": ["text"]
1780
+ },
1781
+ "open_weights": false,
1782
+ "cost": {
1783
+ "input": 5,
1784
+ "output": 25,
1785
+ "cache_read": 0.5,
1786
+ "cache_write": 6.25
1787
+ },
1788
+ "limit": {
1789
+ "context": 1000000,
1790
+ "output": 128000
1791
+ },
1792
+ "display_name": "Claude Opus 4.6"
1793
+ },
1759
1794
  {
1760
1795
  "id": "deepseek/deepseek-chat-v3.1",
1761
1796
  "name": "DeepSeek: DeepSeek V3.1",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dimcode",
3
3
  "type": "module",
4
- "version": "0.0.6-beta.24",
4
+ "version": "0.0.6-beta.26",
5
5
  "description": "Dim Code CLI built on dreams",
6
6
  "exports": {
7
7
  ".": {
@@ -25,6 +25,20 @@
25
25
  "assets",
26
26
  "scripts/postinstall.mjs"
27
27
  ],
28
+ "dependencies": {
29
+ "nanoid": "^5.1.6",
30
+ "semver": "^7.7.3",
31
+ "shiki": "^3.20.0",
32
+ "vue": "^3.5.27"
33
+ },
34
+ "devDependencies": {
35
+ "@types/node": "^18.19.111",
36
+ "chokidar": "^4.0.1",
37
+ "happy-dom": "^17.5.0",
38
+ "tsdown": "^0.20.0-beta.3",
39
+ "typescript": "5.8.3",
40
+ "vitest": "^4.0.17"
41
+ },
28
42
  "scripts": {
29
43
  "build": "bun run build.mjs",
30
44
  "build:npm": "bun run scripts/build-gui-assets.mjs && tsdown && bun run scripts/copy-provider-models.mjs",
@@ -46,25 +60,10 @@
46
60
  "smoke": "bun run build && bun dist/cli.mjs --help",
47
61
  "lint": "eslint src/**/*.ts",
48
62
  "lint:fix": "eslint src/**/*.ts --fix",
49
- "prepack": "bun run build",
50
63
  "fix-package": "bun run fix-package.mjs",
51
64
  "restore-package": "bun run restore-package.mjs",
52
65
  "release": "bumpp --commit --no-verify --no-tag --no-push && bun run build && bun publish",
53
66
  "release:npm": "bumpp --commit --no-verify --no-tag --no-push && bun run build:npm && npm publish",
54
67
  "postinstall": "node scripts/postinstall.mjs"
55
- },
56
- "dependencies": {
57
- "nanoid": "^5.1.6",
58
- "semver": "^7.7.3",
59
- "shiki": "^3.20.0",
60
- "vue": "^3.5.27"
61
- },
62
- "devDependencies": {
63
- "@types/node": "^18.19.111",
64
- "chokidar": "^4.0.1",
65
- "happy-dom": "^17.5.0",
66
- "tsdown": "^0.20.0-beta.3",
67
- "typescript": "5.8.3",
68
- "vitest": "^4.0.17"
69
68
  }
70
- }
69
+ }
@@ -1 +0,0 @@
1
- import{s as e,b as r,a,S as s}from"./B-QRPBiU.js";import{_ as i}from"./VvxifOG2.js";import"./DJ0FGiPu.js";import"./C2r5gH2d.js";import"./FdVDP1dJ.js";var p={parser:a,get db(){return new s(2)},renderer:r,styles:e,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{p as diagram};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./a4I2nS0P.js";import{_ as i}from"./VvxifOG2.js";import"./CYh22N6Z.js";import"./DJ0FGiPu.js";import"./C2r5gH2d.js";import"./FdVDP1dJ.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1 +0,0 @@
1
- import{V as a,W as n}from"./VvxifOG2.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./a4I2nS0P.js";import{_ as i}from"./VvxifOG2.js";import"./CYh22N6Z.js";import"./DJ0FGiPu.js";import"./C2r5gH2d.js";import"./FdVDP1dJ.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1 +0,0 @@
1
- import{i as a}from"./Gi6I4Gst.js";class o extends Map{constructor(n,t=h){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[r,s]of n)this.set(r,s)}get(n){return super.get(c(this,n))}has(n){return super.has(c(this,n))}set(n,t){return super.set(p(this,n),t)}delete(n){return super.delete(g(this,n))}}function c({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):t}function p({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):(e.set(r,t),t)}function g({_intern:e,_key:n},t){const r=n(t);return e.has(r)&&(t=e.get(t),e.delete(r)),t}function h(e){return e!==null&&typeof e=="object"?e.valueOf():e}const f=Symbol("implicit");function l(){var e=new o,n=[],t=[],r=f;function s(i){let u=e.get(i);if(u===void 0){if(r!==f)return r;e.set(i,u=n.push(i)-1)}return t[u%t.length]}return s.domain=function(i){if(!arguments.length)return n.slice();n=[],e=new o;for(const u of i)e.has(u)||e.set(u,n.push(u)-1);return s},s.range=function(i){return arguments.length?(t=Array.from(i),s):t.slice()},s.unknown=function(i){return arguments.length?(r=i,s):r},s.copy=function(){return l(n,t).unknown(r)},a.apply(s,arguments),s}export{l as o};
@@ -1 +0,0 @@
1
- import{e as c2,d as d2,A as h2,w as X,R as j,o as v2,f as g2,g as s,j as c,z as a,r as q,l as o,D as i,F as z,p as k,H as G,k as w2,v as m2,m as p2,y as x2,n as y2,O as C2,T as f2,P as k2,q as m,J as R,L as l2,M as b2,_ as M2}from"./FdVDP1dJ.js";var Y=(E,Q,r)=>new Promise((l,b)=>{var v=y=>{try{w(r.next(y))}catch(p){b(p)}},g=y=>{try{w(r.throw(y))}catch(p){b(p)}},w=y=>y.done?l(y.value):Promise.resolve(y.value).then(v,g);w((r=r.apply(E,Q)).next())});const a2=()=>M2(()=>import("./yG4UzpsV.js"),[],import.meta.url);let U=null,B2=a2;const D2={key:0},F2={key:1,class:"flex items-center gap-x-2 overflow-hidden"},T2=["src"],j2={key:2},E2={class:"flex items-center gap-x-1"},$2={class:"flex items-center gap-x-1"},z2={key:4},L2={key:5,class:"flex items-center gap-x-1"},_2=["aria-pressed"],P2={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Z2={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},H2=["disabled"],I2=["disabled"],S2={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},V2={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},O2={key:1,class:"relative"},X2={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},R2={class:"flex items-center gap-2 backdrop-blur rounded-lg"},Y2={class:"markstream-vue"},U2={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},J=c2(d2({__name:"InfographicBlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0}},emits:["copy","export","openModal"],setup(E,{emit:Q}){const r=E,{t:l}=h2(),b=m(!1),v=m(!1),g=m(),w=m(!1),y=m("360px"),p=m(!1),M=m(),L=m(null),f=m(1),B=m(0),D=m(0),F=m(!1),_=m({x:0,y:0}),P=R(()=>r.node.code);function K(t){return!t||t.disabled}function h(t,e,n="top"){if(K(t.currentTarget))return;const u=t,x=u?.clientX!=null&&u?.clientY!=null?{x:u.clientX,y:u.clientY}:void 0;l2(t.currentTarget,e,n,!1,x,r.isDark)}function d(){b2()}function W(t){if(K(t.currentTarget))return;const e=b.value?l("common.copied")||"Copied":l("common.copy")||"Copy",n=t,u=n?.clientX!=null&&n?.clientY!=null?{x:n.clientX,y:n.clientY}:void 0;l2(t.currentTarget,e,"top",!1,u,r.isDark)}function i2(){return Y(this,null,function*(){try{const t=P.value;typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(t)),b.value=!0,setTimeout(()=>{b.value=!1},1e3)}catch(t){console.error("Failed to copy:",t)}})}function e2(t){w.value=t==="source"}function s2(){var t;const e=(t=g.value)==null?void 0:t.querySelector("svg");e?(function(n){Y(this,null,function*(){try{const u=new XMLSerializer().serializeToString(n),x=new Blob([u],{type:"image/svg+xml;charset=utf-8"}),O=URL.createObjectURL(x);if(typeof document<"u"){const $=document.createElement("a");$.href=O,$.download=`infographic-${Date.now()}.svg`;try{document.body.appendChild($),$.click(),document.body.removeChild($)}catch{}URL.revokeObjectURL(O)}}catch(u){console.error("Failed to export SVG:",u)}})})(e):console.error("SVG element not found")}function N(t){t.key==="Escape"&&p.value&&A()}function A(){if(p.value=!1,M.value&&(M.value.innerHTML=""),L.value=null,typeof document<"u")try{document.body.style.overflow=""}catch{}if(typeof window<"u")try{window.removeEventListener("keydown",N)}catch{}}function u2(){(function(){if(p.value=!0,typeof document<"u")try{document.body.style.overflow="hidden"}catch{}if(typeof window<"u")try{window.addEventListener("keydown",N)}catch{}j(()=>{if(g.value&&M.value){M.value.innerHTML="";const t=document.createElement("div");t.style.transition="transform 0.1s ease",t.style.transformOrigin="center center",t.style.width="100%",t.style.height="100%",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center";const e=g.value.cloneNode(!0);e.classList.add("fullscreen"),e.style.height="auto",t.appendChild(e),M.value.appendChild(t),L.value=t,t.style.transform=`translate(${B.value}px, ${D.value}px) scale(${f.value})`}})})()}function t2(){f.value<3&&(f.value+=.1)}function o2(){f.value>.5&&(f.value-=.1)}function n2(){f.value=1,B.value=0,D.value=0}function Z(t){F.value=!0,t instanceof MouseEvent?_.value={x:t.clientX-B.value,y:t.clientY-D.value}:_.value={x:t.touches[0].clientX-B.value,y:t.touches[0].clientY-D.value}}function H(t){if(!F.value)return;let e,n;t instanceof MouseEvent?(e=t.clientX,n=t.clientY):(e=t.touches[0].clientX,n=t.touches[0].clientY),B.value=e-_.value.x,D.value=n-_.value.y}function T(){F.value=!1}let C=null;function I(){return Y(this,null,function*(){var t;if(g.value)try{const e=yield(function(){return Y(this,null,function*(){if(U)return U;const n=B2;if(!n)return null;let u;try{u=yield n()}catch(O){throw n===a2?new Error('Optional dependency "@antv/infographic" is not installed. Please install it to enable infographic diagrams.'):O}if(!u)return null;const x=u&&u.default?u.default:u;return U=typeof x=="function"&&x.prototype&&x.prototype.render?x:u.Infographic?u.Infographic:x&&x.Infographic?x.Infographic:x,U})})();if(!e)return void console.warn("Infographic library failed to load.");C&&((t=C.destroy)==null||t.call(C),C=null),g.value.innerHTML="",C=new e({container:g.value,width:"100%",height:"100%"}),C.render(P.value),j(()=>{if(g.value){const n=g.value.scrollHeight;n>0&&(y.value=`${Math.min(n,800)}px`)}})}catch(e){console.error("Failed to render infographic:",e),g.value&&(g.value.innerHTML=`<div class="text-red-500 p-4">Failed to render infographic: ${e instanceof Error?e.message:"Unknown error"}</div>`)}})}X(()=>P.value,()=>{w.value||v.value||j(()=>{I()})}),X(()=>w.value,t=>{t||v.value||j(()=>{I()})}),X(()=>v.value,t=>{t||w.value||j(()=>{I()})}),v2(()=>{w.value||v.value||j(()=>{I()})}),g2(()=>{var t;if(C&&((t=C.destroy)==null||t.call(C),C=null),typeof window<"u")try{window.removeEventListener("keydown",N)}catch{}});const S=R(()=>r.isDark?"infographic-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"infographic-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700"),V=R(()=>w.value||v.value),r2=R(()=>({transform:`translate(${B.value}px, ${D.value}px) scale(${f.value})`}));return X(r2,t=>{p.value&&L.value&&(L.value.style.transform=t.transform)}),(t,e)=>(s(),c("div",{class:a(["my-4 rounded-lg border overflow-hidden shadow-sm",[r.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":r.loading}]])},[r.showHeader?(s(),c("div",{key:0,class:a(["infographic-block-header flex justify-between items-center px-4 py-2.5 border-b",r.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[t.$slots["header-left"]?(s(),c("div",D2,[q(t.$slots,"header-left",{},void 0,!0)])):(s(),c("div",F2,[o("img",{src:i("data:image/svg+xml,%3csvg%20width='15.52'%20height='16'%20viewBox='0%200%20291%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='M140.904%20239.376C128.83%20239.683%20119.675%20239.299%20115.448%20243.843C110.902%20248.07%20111.288%20257.227%20110.979%20269.302C111.118%20274.675%20111.118%20279.478%20111.472%20283.52C111.662%20285.638%20111.95%20287.547%20112.406%20289.224C112.411%20289.243%20112.416%20289.259%20112.422%20289.28C112.462%20289.419%20112.496%20289.558%20112.539%20289.691C113.168%20291.787%20114.088%20293.491%20115.446%20294.758C116.662%20296.064%20118.283%20296.963%20120.264%20297.59C120.36%20297.614%20120.464%20297.646%20120.555%20297.675C120.56%20297.68%20120.56%20297.68%20120.566%20297.68C120.848%20297.768%20121.142%20297.846%20121.443%20297.923C121.454%20297.923%20121.464%20297.928%20121.478%20297.934C122.875%20298.272%20124.424%20298.507%20126.11%20298.678C126.326%20298.696%20126.542%20298.718%20126.763%20298.739C130.79%20299.086%20135.558%20299.088%20140.904%20299.222C152.974%20298.912%20162.128%20299.302%20166.36%20294.758C170.904%20290.526%20170.515%20281.371%20170.824%20269.302C170.515%20257.227%20170.907%20248.07%20166.36%20243.843C162.131%20239.299%20152.974%20239.683%20140.904%20239.376Z'%20fill='%23FF6376'%3e%3c/path%3e%3cpath%20d='M21.2155%20128.398C12.6555%20128.616%206.16484%20128.339%203.16751%20131.56C-0.0538222%20134.56%200.218178%20141.054%20-0.000488281%20149.608C0.218178%20158.168%20-0.0538222%20164.659%203.16751%20167.656C6.16484%20170.878%2012.6555%20170.606%2021.2155%20170.824C25.0262%20170.726%2028.4288%20170.726%2031.2955%20170.475C32.7968%20170.342%2034.1488%20170.136%2035.3382%20169.814C35.3542%20169.811%2035.3648%20169.806%2035.3782%20169.803C35.4768%20169.774%2035.5755%20169.747%2035.6688%20169.718C37.1568%20169.272%2038.3648%20168.622%2039.2635%20167.656C40.1915%20166.795%2040.8262%20165.646%2041.2715%20164.243C41.2875%20164.174%2041.3115%20164.102%2041.3328%20164.035C41.3328%20164.035%2041.3355%20164.032%2041.3355%20164.027C41.3968%20163.827%2041.4529%20163.622%2041.5062%20163.406C41.5062%20163.398%2041.5115%20163.392%2041.5142%20163.382C41.7542%20162.392%2041.9222%20161.294%2042.0422%20160.096C42.0555%20159.944%2042.0715%20159.792%2042.0848%20159.635C42.3328%20156.779%2042.3328%20153.398%2042.4262%20149.608C42.2075%20141.054%2042.4848%20134.56%2039.2635%20131.56C36.2635%20128.339%2029.7728%20128.616%2021.2155%20128.398Z'%20fill='%23FFCCCC'%3e%3c/path%3e%3cpath%20d='M81.0595%20184.171C70.8568%20184.433%2063.1208%20184.102%2059.5475%20187.942C55.7075%20191.518%2056.0328%20199.254%2055.7742%20209.454C56.0328%20219.657%2055.7075%20227.393%2059.5475%20230.963C63.1208%20234.803%2070.8568%20234.478%2081.0595%20234.739C85.6008%20234.622%2089.6595%20234.622%2093.0728%20234.323C94.8648%20234.163%2096.4755%20233.921%2097.8942%20233.534C97.9102%20233.529%2097.9235%20233.526%2097.9422%20233.521C98.0568%20233.486%2098.1742%20233.457%2098.2888%20233.422C100.06%20232.889%20101.5%20232.113%20102.569%20230.963C103.676%20229.937%20104.433%20228.566%20104.964%20226.894C104.985%20226.811%20105.012%20226.726%20105.036%20226.646C105.041%20226.643%20105.041%20226.643%20105.041%20226.638C105.116%20226.401%20105.18%20226.153%20105.244%20225.897C105.244%20225.889%20105.249%20225.881%20105.254%20225.867C105.54%20224.689%20105.74%20223.379%20105.881%20221.953C105.9%20221.771%20105.916%20221.59%20105.934%20221.403C106.228%20218.001%20106.228%20213.969%20106.342%20209.454C106.081%20199.254%20106.412%20191.518%20102.572%20187.942C98.9955%20184.102%2091.2568%20184.433%2081.0595%20184.171Z'%20fill='%23FF939F'%3e%3c/path%3e%3cpath%20d='M260.591%20151.87C215.652%20151.87%20203.02%20164.523%20203.02%20209.462H198.476C198.476%20164.523%20185.836%20151.881%20140.895%20151.881V147.337C185.836%20147.337%20198.487%20134.705%20198.487%2089.7659H203.02C203.02%20134.705%20215.652%20147.337%20260.591%20147.337V151.87ZM286.052%20124.158C281.82%20119.614%20272.66%20120.001%20260.591%20119.689C248.521%20119.385%20239.361%20119.771%20235.129%20115.227C230.585%20110.995%20230.983%20101.846%20230.671%2089.7659C230.513%2083.7312%20230.535%2078.4272%20230.023%2074.1019C229.513%2069.7659%20228.481%2066.4219%20226.209%2064.3046C221.967%2059.7606%20212.817%2060.1472%20200.748%2059.8459C188.681%2060.1472%20179.519%2059.7606%20175.287%2064.3046C170.753%2068.5366%20171.129%2077.6966%20170.828%2089.7659C170.516%20101.835%20170.9%20110.995%20166.356%20115.227C162.124%20119.771%20152.985%20119.374%20140.905%20119.689C138.873%20119.739%20136.924%20119.771%20135.071%20119.811C119.313%20118.697%20106.337%20112.318%20106.337%2089.7659C106.212%2084.6699%20106.233%2080.1792%20105.807%2076.5206C105.367%2072.8726%20104.492%2070.0379%20102.575%2068.2566C99.0013%2064.4112%2091.2573%2064.7446%2081.0653%2064.4832C70.86%2064.7446%2063.1186%2064.4112%2059.5533%2068.2566C55.708%2071.8299%2056.0306%2079.5632%2055.7693%2089.7659C56.0306%2099.9686%2055.708%20107.702%2059.5533%20111.278C63.1186%20115.113%2070.86%20114.79%2081.0653%20115.049C103.617%20115.049%20109.996%20128.035%20111.1%20143.803C111.068%20145.659%20111.028%20147.587%20110.975%20149.619C111.121%20154.987%20111.121%20159.79%20111.476%20163.835C111.663%20165.95%20111.945%20167.857%20112.404%20169.534C112.412%20169.555%20112.412%20169.566%20112.423%20169.598C112.465%20169.734%20112.497%20169.867%20112.537%20170.003C113.164%20172.099%20114.092%20173.809%20115.447%20175.07C116.665%20176.371%20118.281%20177.278%20120.271%20177.905C120.364%20177.934%20120.46%20177.955%20120.564%20177.987C120.855%20178.081%20121.145%20178.153%20121.439%20178.238C121.46%20178.238%20121.471%20178.238%20121.479%20178.249C122.876%20178.582%20124.42%20178.822%20126.108%20178.987C126.327%20179.009%20126.545%20179.03%20126.764%20179.051C130.788%20179.395%20135.559%20179.395%20140.905%20179.529C152.975%20179.843%20162.124%20179.457%20166.356%20184.001C170.9%20188.233%20170.516%20197.371%20170.828%20209.451C171.129%20221.529%20170.743%20230.681%20175.287%20234.91C179.519%20239.454%20188.681%20239.07%20200.748%20239.371C206.127%20239.235%20210.921%20239.235%20214.975%20238.881C217.079%20238.694%20218.985%20238.403%20220.676%20237.955C220.695%20237.945%20220.705%20237.934%20220.727%20237.934C220.873%20237.891%20220.999%20237.859%20221.135%20237.819C223.228%20237.193%20224.937%20236.265%20226.209%20234.91C227.511%20233.691%20228.409%20232.065%20229.044%20230.097C229.065%20230.003%20229.095%20229.899%20229.127%20229.803V229.793C229.22%20229.513%20229.295%20229.222%20229.367%20228.918C229.367%20228.897%20229.377%20228.897%20229.377%20228.878C229.721%20227.481%20229.951%20225.937%20230.127%20224.249C230.137%20224.03%20230.169%20223.811%20230.191%20223.593C230.535%20219.571%20230.535%20214.798%20230.671%20209.451C230.972%20197.371%20230.585%20188.233%20235.129%20184.001C239.361%20179.457%20248.511%20179.843%20260.591%20179.529C272.66%20179.227%20281.82%20179.614%20286.052%20175.07C290.596%20170.838%20290.209%20161.689%20290.511%20149.619C290.209%20137.539%20290.596%20128.379%20286.052%20124.158Z'%20fill='%23FF356A'%3e%3c/path%3e%3cpath%20d='M112.405%2049.848C112.411%2049.8694%20112.416%2049.8827%20112.421%2049.904C112.461%2050.0427%20112.499%2050.1814%20112.539%2050.3147C113.171%2052.4134%20114.088%2054.1147%20115.448%2055.384C116.661%2056.6907%20118.283%2057.5894%20120.264%2058.2134C120.36%2058.24%20120.464%2058.2694%20120.555%2058.3014C120.56%2058.3067%20120.56%2058.3067%20120.565%2058.3067C120.848%2058.3947%20121.141%2058.4694%20121.443%2058.5467C121.453%2058.5467%20121.464%2058.552%20121.48%2058.5574C122.875%2058.896%20124.424%2059.1334%20126.112%2059.3014C126.325%2059.3227%20126.541%2059.3414%20126.763%2059.3627C130.789%2059.712%20135.56%2059.712%20140.904%2059.8454C152.973%2059.5387%20162.128%2059.928%20166.36%2055.384C170.907%2051.152%20170.515%2041.9947%20170.824%2029.9254C170.517%2017.8507%20170.907%208.69602%20166.363%204.46935C162.131%20-0.0746511%20152.973%200.309349%20140.904%201.52588e-05C128.829%200.309349%20119.675%20-0.0746511%20115.448%204.46935C110.904%208.69602%20111.288%2017.8507%20110.979%2029.9254C111.117%2035.3014%20111.117%2040.1014%20111.472%2044.144C111.661%2046.2614%20111.949%2048.1707%20112.405%2049.848Z'%20fill='%23FF6376'%3e%3c/path%3e%3c/g%3e%3c/svg%3e"),class:"w-4 h-4 my-0",alt:"Infographic"},null,8,T2),o("span",{class:a(["text-sm font-medium font-mono truncate",r.isDark?"text-gray-400":"text-gray-600"])},"Infographic",2)])),t.$slots["header-center"]?(s(),c("div",j2,[q(t.$slots,"header-center",{},void 0,!0)])):r.showModeToggle?(s(),c("div",{key:3,class:a(["flex items-center gap-x-1 rounded-md p-0.5",r.isDark?"bg-gray-700":"bg-gray-100"])},[o("button",{class:a(["px-2.5 py-1 text-xs rounded transition-colors",[w.value?r.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":r.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:e[0]||(e[0]=()=>e2("preview")),onMouseenter:e[1]||(e[1]=n=>h(n,i(l)("common.preview")||"Preview")),onFocus:e[2]||(e[2]=n=>h(n,i(l)("common.preview")||"Preview")),onMouseleave:d,onBlur:d},[o("div",E2,[e[21]||(e[21]=o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),o("circle",{cx:"12",cy:"12",r:"3"})])],-1)),o("span",null,z(i(l)("common.preview")||"Preview"),1)])],34),o("button",{class:a(["px-2.5 py-1 text-xs rounded transition-colors",[w.value?r.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":r.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:e[3]||(e[3]=()=>e2("source")),onMouseenter:e[4]||(e[4]=n=>h(n,i(l)("common.source")||"Source")),onFocus:e[5]||(e[5]=n=>h(n,i(l)("common.source")||"Source")),onMouseleave:d,onBlur:d},[o("div",$2,[e[22]||(e[22]=o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),o("span",null,z(i(l)("common.source")||"Source"),1)])],34)],2)):k("",!0),t.$slots["header-right"]?(s(),c("div",z2,[q(t.$slots,"header-right",{},void 0,!0)])):(s(),c("div",L2,[r.showCollapseButton?(s(),c("button",{key:0,class:a(S.value),"aria-pressed":v.value,onClick:e[6]||(e[6]=n=>v.value=!v.value),onMouseenter:e[7]||(e[7]=n=>h(n,v.value?i(l)("common.expand")||"Expand":i(l)("common.collapse")||"Collapse")),onFocus:e[8]||(e[8]=n=>h(n,v.value?i(l)("common.expand")||"Expand":i(l)("common.collapse")||"Collapse")),onMouseleave:d,onBlur:d},[(s(),c("svg",{style:G({rotate:v.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...e[23]||(e[23]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,_2)):k("",!0),r.showCopyButton?(s(),c("button",{key:1,class:a(S.value),onClick:i2,onMouseenter:e[9]||(e[9]=n=>W(n)),onFocus:e[10]||(e[10]=n=>W(n)),onMouseleave:d,onBlur:d},[b.value?(s(),c("svg",Z2,[...e[25]||(e[25]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(s(),c("svg",P2,[...e[24]||(e[24]=[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),o("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],34)):k("",!0),r.showExportButton?(s(),c("button",{key:2,class:a(`${S.value} ${V.value?"opacity-50 cursor-not-allowed":""}`),disabled:V.value,onClick:s2,onMouseenter:e[11]||(e[11]=n=>h(n,i(l)("common.export")||"Export")),onFocus:e[12]||(e[12]=n=>h(n,i(l)("common.export")||"Export")),onMouseleave:d,onBlur:d},[...e[26]||(e[26]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),o("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,H2)):k("",!0),r.showFullscreenButton?(s(),c("button",{key:3,class:a(`${S.value} ${V.value?"opacity-50 cursor-not-allowed":""}`),disabled:V.value,onClick:u2,onMouseenter:e[13]||(e[13]=n=>h(n,p.value?i(l)("common.minimize")||"Minimize":i(l)("common.open")||"Open")),onFocus:e[14]||(e[14]=n=>h(n,p.value?i(l)("common.minimize")||"Minimize":i(l)("common.open")||"Open")),onMouseleave:d,onBlur:d},[p.value?(s(),c("svg",V2,[...e[28]||(e[28]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(s(),c("svg",S2,[...e[27]||(e[27]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,I2)):k("",!0)]))],2)):k("",!0),w2(o("div",null,[w.value?(s(),c("div",{key:0,class:a(["p-4",r.isDark?"bg-gray-900":"bg-gray-50"])},[o("pre",{class:a(["text-sm font-mono whitespace-pre-wrap",r.isDark?"text-gray-300":"text-gray-700"])},z(P.value),3)],2)):(s(),c("div",O2,[r.showZoomControls?(s(),c("div",X2,[o("div",R2,[o("button",{class:a(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:t2,onMouseenter:e[15]||(e[15]=n=>h(n,i(l)("common.zoomIn")||"Zoom in")),onFocus:e[16]||(e[16]=n=>h(n,i(l)("common.zoomIn")||"Zoom in")),onMouseleave:d,onBlur:d},[...e[29]||(e[29]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("circle",{cx:"11",cy:"11",r:"8"}),o("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),o("button",{class:a(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:o2,onMouseenter:e[17]||(e[17]=n=>h(n,i(l)("common.zoomOut")||"Zoom out")),onFocus:e[18]||(e[18]=n=>h(n,i(l)("common.zoomOut")||"Zoom out")),onMouseleave:d,onBlur:d},[...e[30]||(e[30]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("circle",{cx:"11",cy:"11",r:"8"}),o("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),o("button",{class:a(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:n2,onMouseenter:e[19]||(e[19]=n=>h(n,i(l)("common.resetZoom")||"Reset zoom")),onFocus:e[20]||(e[20]=n=>h(n,i(l)("common.resetZoom")||"Reset zoom")),onMouseleave:d,onBlur:d},z(Math.round(100*f.value))+"% ",35)])])):k("",!0),o("div",{class:a(["min-h-[360px] relative transition-all duration-100 overflow-hidden block",r.isDark?"bg-gray-900":"bg-gray-50"]),style:G({height:y.value}),onMousedown:Z,onMousemove:H,onMouseup:T,onMouseleave:T,onTouchstartPassive:Z,onTouchmovePassive:H,onTouchendPassive:T},[o("div",{class:a(["absolute inset-0 cursor-grab",{"cursor-grabbing":F.value}]),style:G(r2.value)},[o("div",{ref_key:"infographicContainer",ref:g,class:"w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],38)]))],512),[[m2,!v.value]]),(s(),p2(k2,{to:"body"},[o("div",Y2,[x2(f2,{name:"infographic-dialog",appear:""},{default:y2(()=>[p.value?(s(),c("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:C2(A,["self"])},[o("div",{class:a(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",r.isDark?"bg-gray-900":"bg-white"])},[o("div",U2,[o("button",{class:a(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:t2},[...e[31]||(e[31]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("circle",{cx:"11",cy:"11",r:"8"}),o("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),o("button",{class:a(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:o2},[...e[32]||(e[32]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[o("circle",{cx:"11",cy:"11",r:"8"}),o("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),o("button",{class:a(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:n2},z(Math.round(100*f.value))+"% ",3),o("button",{class:a(["inline-flex items-center justify-center p-2 rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:A},[...e[33]||(e[33]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),o("div",{ref_key:"modalContent",ref:M,class:a(["w-full h-full flex items-center justify-center p-4 overflow-hidden",{"cursor-grab":!F.value,"cursor-grabbing":F.value}]),onMousedown:Z,onMousemove:H,onMouseup:T,onMouseleave:T,onTouchstartPassive:Z,onTouchmovePassive:H,onTouchendPassive:T},null,34)],2)])):k("",!0)]),_:1})])]))],2))}}),[["__scopeId","data-v-811a9bef"]]);J.install=E=>{E.component(J.__name,J)};export{J as default};