dsh-plugin-easedraw 0.0.0-stage → 0.2.0

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 (176) hide show
  1. package/README.md +68 -2
  2. package/client.js +189 -0
  3. package/cordis.patch.yml +4 -0
  4. package/icon.svg +1 -0
  5. package/index.js +2 -0
  6. package/lib/assets/aivazovsky/c-74ece4a4aaa8.webp +0 -0
  7. package/lib/assets/aivazovsky/x-23506ec34e70.webp +0 -0
  8. package/lib/assets/almond/c-6886ae1cbb95.webp +0 -0
  9. package/lib/assets/almond/x-ed36fce187a2.webp +0 -0
  10. package/lib/assets/angelus/c-4e662aea88fa.webp +0 -0
  11. package/lib/assets/angelus/x-7a068058183f.webp +0 -0
  12. package/lib/assets/argenteuil-house/c-9bce68c1981d.webp +0 -0
  13. package/lib/assets/argenteuil-house/x-e8d44bfc5250.webp +0 -0
  14. package/lib/assets/astronomer/c-d06c4268a610.webp +0 -0
  15. package/lib/assets/astronomer/x-6ecac9f04faf.webp +0 -0
  16. package/lib/assets/balance/c-07ca61769054.webp +0 -0
  17. package/lib/assets/balance/x-6961a5000855.webp +0 -0
  18. package/lib/assets/bedroom/c-26f32687fb88.webp +0 -0
  19. package/lib/assets/bedroom/x-d512d70f4054.webp +0 -0
  20. package/lib/assets/bierstadt/c-5ebae79599c6.webp +0 -0
  21. package/lib/assets/bierstadt/x-bf322b5df640.webp +0 -0
  22. package/lib/assets/bluesilver/c-63ba9cef7c06.webp +0 -0
  23. package/lib/assets/bluesilver/x-1f0e749cdc74.webp +0 -0
  24. package/lib/assets/boating/c-17ad717b9290.webp +0 -0
  25. package/lib/assets/boating/x-c4c651de7d8a.webp +0 -0
  26. package/lib/assets/bridge/c-6a082f9aa0a6.webp +0 -0
  27. package/lib/assets/bridge/x-8c2cc7127b7b.webp +0 -0
  28. package/lib/assets/bubbles/c-199a5a79e13f.webp +0 -0
  29. package/lib/assets/bubbles/x-eb4abd54573e.webp +0 -0
  30. package/lib/assets/cafe/c-594b323da5f9.webp +0 -0
  31. package/lib/assets/cafe/x-0705e4014144.webp +0 -0
  32. package/lib/assets/catherine-lee/c-cb7124eb6c2a.webp +0 -0
  33. package/lib/assets/catherine-lee/x-fdaa0384c6b9.webp +0 -0
  34. package/lib/assets/cezanne/c-021e136264f0.webp +0 -0
  35. package/lib/assets/cezanne/x-2fe65fbbf601.webp +0 -0
  36. package/lib/assets/charing/c-774f6f11a3a2.webp +0 -0
  37. package/lib/assets/charing/x-120507fd6d06.webp +0 -0
  38. package/lib/assets/clichy-spring/c-77ebede30edd.webp +0 -0
  39. package/lib/assets/clichy-spring/x-872f4b795694.webp +0 -0
  40. package/lib/assets/cypress/c-ba18c825acd3.webp +0 -0
  41. package/lib/assets/cypress/x-9a1ddc1cc3df.webp +0 -0
  42. package/lib/assets/dehooch/c-22fe1b466f8a.webp +0 -0
  43. package/lib/assets/dehooch/x-0949786c8346.webp +0 -0
  44. package/lib/assets/delft/c-cba6b32de2a4.webp +0 -0
  45. package/lib/assets/delft/x-48ed7ad9a35c.webp +0 -0
  46. package/lib/assets/dnieper/c-3e59ae20e889.webp +0 -0
  47. package/lib/assets/dnieper/x-f32d57da7255.webp +0 -0
  48. package/lib/assets/ejiri/c-0aa94f32e87a.webp +0 -0
  49. package/lib/assets/ejiri/x-a03aae2e28ce.webp +0 -0
  50. package/lib/assets/eragny-haymaking/c-45ba8de167a1.webp +0 -0
  51. package/lib/assets/eragny-haymaking/x-93ec0858c9a6.webp +0 -0
  52. package/lib/assets/fireworks/c-34cab4e56893.webp +0 -0
  53. package/lib/assets/fireworks/x-be3ba365cb81.webp +0 -0
  54. package/lib/assets/fishermen/c-c01429f1c6f3.webp +0 -0
  55. package/lib/assets/fishermen/x-3aae68790b33.webp +0 -0
  56. package/lib/assets/flaming/c-afb8021d6c06.webp +0 -0
  57. package/lib/assets/flaming/x-8e0e25a637ad.webp +0 -0
  58. package/lib/assets/fsunset/c-b3317bcbbe1a.webp +0 -0
  59. package/lib/assets/fsunset/x-2d27fc9ed316.webp +0 -0
  60. package/lib/assets/geographer/c-d075b3640af6.webp +0 -0
  61. package/lib/assets/geographer/x-bdfde18bbbcc.webp +0 -0
  62. package/lib/assets/grimshaw/c-4ff53f0751c0.webp +0 -0
  63. package/lib/assets/grimshaw/x-0f04bc8728c0.webp +0 -0
  64. package/lib/assets/gypsy/c-43c0af86244a.webp +0 -0
  65. package/lib/assets/gypsy/x-f3027808a89a.webp +0 -0
  66. package/lib/assets/hammermoon/c-1826dd19c366.webp +0 -0
  67. package/lib/assets/hammermoon/x-c789306afe4a.webp +0 -0
  68. package/lib/assets/hammershoi/c-73cc375407c6.webp +0 -0
  69. package/lib/assets/hammershoi/x-e0702def9b7a.webp +0 -0
  70. package/lib/assets/haywain/c-774cb587cc58.webp +0 -0
  71. package/lib/assets/haywain/x-a3eb85fe27a7.webp +0 -0
  72. package/lib/assets/heron/c-fdadb57ac159.webp +0 -0
  73. package/lib/assets/heron/x-1b9373d1628f.webp +0 -0
  74. package/lib/assets/impression/c-b4f475d07a79.webp +0 -0
  75. package/lib/assets/impression/x-24d3da5d0e17.webp +0 -0
  76. package/lib/assets/inokashira-snow/c-ff465de168e6.webp +0 -0
  77. package/lib/assets/inokashira-snow/x-7a893e0c7af2.webp +0 -0
  78. package/lib/assets/irises/c-c8f68538f561.webp +0 -0
  79. package/lib/assets/irises/x-c7373b910383.webp +0 -0
  80. package/lib/assets/jatte/c-da189910cd88.webp +0 -0
  81. package/lib/assets/jatte/x-02b5d3acc209.webp +0 -0
  82. package/lib/assets/kanbara/c-6f4cc1f35a57.webp +0 -0
  83. package/lib/assets/kanbara/x-23f4c7227d6b.webp +0 -0
  84. package/lib/assets/klimt/c-778fcd65c38d.webp +0 -0
  85. package/lib/assets/klimt/x-444dbcf8846b.webp +0 -0
  86. package/lib/assets/lacemaker/c-d15464271e1a.webp +0 -0
  87. package/lib/assets/lacemaker/x-1084932117e2.webp +0 -0
  88. package/lib/assets/lark/c-89b0677ca53e.webp +0 -0
  89. package/lib/assets/lark/x-7e35a4c20809.webp +0 -0
  90. package/lib/assets/larsson/c-83b155d44a6c.webp +0 -0
  91. package/lib/assets/larsson/x-9951665abec5.webp +0 -0
  92. package/lib/assets/letter/c-06e993082905.webp +0 -0
  93. package/lib/assets/letter/x-52405463942a.webp +0 -0
  94. package/lib/assets/levitan/c-5dddabeecf46.webp +0 -0
  95. package/lib/assets/levitan/x-7fedad353673.webp +0 -0
  96. package/lib/assets/milkmaid/c-07ed2a14ee90.webp +0 -0
  97. package/lib/assets/milkmaid/x-72a1b83fb07a.webp +0 -0
  98. package/lib/assets/milletstars/c-229791e2b82e.webp +0 -0
  99. package/lib/assets/milletstars/x-41be4f4187a6.webp +0 -0
  100. package/lib/assets/mishima-mist/c-8594decb5a88.webp +0 -0
  101. package/lib/assets/mishima-mist/x-1a46b16a8841.webp +0 -0
  102. package/lib/assets/monet-apples-grapes/c-c4e3c80061d5.webp +0 -0
  103. package/lib/assets/monet-apples-grapes/x-4e2fd1ccb8c8.webp +0 -0
  104. package/lib/assets/monet-bordighera/c-04113d1a5b26.webp +0 -0
  105. package/lib/assets/monet-bordighera/x-643e25ac5f11.webp +0 -0
  106. package/lib/assets/moonrise/c-ae854bb3b4c8.webp +0 -0
  107. package/lib/assets/moonrise/x-1965abb8b096.webp +0 -0
  108. package/lib/assets/moore/c-9e7dfc1e9f7b.webp +0 -0
  109. package/lib/assets/moore/x-395478413ba2.webp +0 -0
  110. package/lib/assets/parasol/c-15cc5372d478.webp +0 -0
  111. package/lib/assets/parasol/x-7a23fd01514f.webp +0 -0
  112. package/lib/assets/parliament/c-f84f4c4b0d1c.webp +0 -0
  113. package/lib/assets/parliament/x-f2fc822b7b0d.webp +0 -0
  114. package/lib/assets/pearl/c-abee4a5932f9.webp +0 -0
  115. package/lib/assets/pearl/x-6b92370f652e.webp +0 -0
  116. package/lib/assets/pitcher/c-a138768110d9.webp +0 -0
  117. package/lib/assets/pitcher/x-19d09121eeaa.webp +0 -0
  118. package/lib/assets/poets-garden/c-85b493bd97d2.webp +0 -0
  119. package/lib/assets/poets-garden/x-f0a1aa662a91.webp +0 -0
  120. package/lib/assets/pontoise-snow/c-82d699e90e35.webp +0 -0
  121. package/lib/assets/pontoise-snow/x-b94193dc75da.webp +0 -0
  122. package/lib/assets/poppies/c-7ad8332feb15.webp +0 -0
  123. package/lib/assets/poppies/x-7388ac732faa.webp +0 -0
  124. package/lib/assets/pourville-cliff/c-62ed22ba016d.webp +0 -0
  125. package/lib/assets/pourville-cliff/x-1bd079d79230.webp +0 -0
  126. package/lib/assets/rainyparis/c-aa36327878d1.webp +0 -0
  127. package/lib/assets/rainyparis/x-4be4d0892ac7.webp +0 -0
  128. package/lib/assets/redfuji/c-024c36884b12.webp +0 -0
  129. package/lib/assets/redfuji/x-a499b01dac57.webp +0 -0
  130. package/lib/assets/rhone/c-a9bb3282640f.webp +0 -0
  131. package/lib/assets/rhone/x-34d5512b3405.webp +0 -0
  132. package/lib/assets/rosebower/c-e3738da15800.webp +0 -0
  133. package/lib/assets/rosebower/x-2bbc9aa8724a.webp +0 -0
  134. package/lib/assets/sadresse/c-e87b63d1dfcc.webp +0 -0
  135. package/lib/assets/sadresse/x-d579c72a8073.webp +0 -0
  136. package/lib/assets/sangiorgio/c-b5262917a767.webp +0 -0
  137. package/lib/assets/sangiorgio/x-de26517d9653.webp +0 -0
  138. package/lib/assets/saruwaka/c-5331f4f975ba.webp +0 -0
  139. package/lib/assets/saruwaka/x-b454a7e3f528.webp +0 -0
  140. package/lib/assets/seamoon/c-1fbcf27ee01b.webp +0 -0
  141. package/lib/assets/seamoon/x-fa06162d5b4a.webp +0 -0
  142. package/lib/assets/seinemist/c-d2739efee314.webp +0 -0
  143. package/lib/assets/seinemist/x-ffdde3be1a98.webp +0 -0
  144. package/lib/assets/shower/c-bdce8113db2e.webp +0 -0
  145. package/lib/assets/shower/x-7b0b6e902784.webp +0 -0
  146. package/lib/assets/sorolla/c-9bcc8b60a8d3.webp +0 -0
  147. package/lib/assets/sorolla/x-233b4695f37b.webp +0 -0
  148. package/lib/assets/starry/c-7b73287af9dc.webp +0 -0
  149. package/lib/assets/starry/x-d3624b895b6b.webp +0 -0
  150. package/lib/assets/strandgade/c-1161cdeb8d8e.webp +0 -0
  151. package/lib/assets/strandgade/x-265d002db736.webp +0 -0
  152. package/lib/assets/street/c-60d38251bfcd.webp +0 -0
  153. package/lib/assets/street/x-ce3fd5752baf.webp +0 -0
  154. package/lib/assets/sunflowers/c-d92b78408fcd.webp +0 -0
  155. package/lib/assets/sunflowers/x-d843fc288727.webp +0 -0
  156. package/lib/assets/thames/c-8627d264d156.webp +0 -0
  157. package/lib/assets/thames/x-fce36a81b310.webp +0 -0
  158. package/lib/assets/twomen/c-e167d579e51c.webp +0 -0
  159. package/lib/assets/twomen/x-0eb1d8912eaf.webp +0 -0
  160. package/lib/assets/vgmoon/c-5a5b29fef873.webp +0 -0
  161. package/lib/assets/vgmoon/x-2ebbd03a5376.webp +0 -0
  162. package/lib/assets/waterlilies/c-854ad106fb4f.webp +0 -0
  163. package/lib/assets/waterlilies/x-7ff96f8e6e08.webp +0 -0
  164. package/lib/assets/wave/c-80bd93875ceb.webp +0 -0
  165. package/lib/assets/wave/x-801f9ead0d89.webp +0 -0
  166. package/lib/assets/wheat/c-e87855afd7ba.webp +0 -0
  167. package/lib/assets/wheat/x-02bc298cfd7d.webp +0 -0
  168. package/lib/assets/wheatsnow/c-6a4d554c47db.webp +0 -0
  169. package/lib/assets/wheatsnow/x-f9873517dc8c.webp +0 -0
  170. package/lib/assets/whistler/c-64564ba4b30b.webp +0 -0
  171. package/lib/assets/whistler/x-f40a7c447b9d.webp +0 -0
  172. package/lib/assets/window-five-minutes/c-9fe259c42736.webp +0 -0
  173. package/lib/assets/window-five-minutes/x-9aea0d820252.webp +0 -0
  174. package/locale/en.json +1 -0
  175. package/locale/zh.json +1 -0
  176. package/package.json +39 -4
package/README.md CHANGED
@@ -1,3 +1,69 @@
1
- # Temporary Holding Version
1
+ # 逸刻 EaseDraw · DeepSeek Harness 专注插件
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 将提供的 EaseDraw 小工具 v1.0.1 的 **84 幅画作**接入 DSH 专注场景。支持分类与画名/画家搜索、5/15/25/45 分钟计时、暂停与继续、提前结束、完成记录。没有邀请码、登录、会员、支付或入睡流程。
4
+
5
+ ## 当前状态
6
+
7
+ - 此版本是 **84 幅画的专注插件**,不是原小工具其他功能的完整移植:展厅是本地完成记录列表;没有盖印图片导出、背景音乐、提醒或云同步。
8
+ - 在 DSH `0.2.2-rc.5` Web 测试环境验证了本地安装、输入区入口、分类/搜索、选画、开始/暂停/继续/结束,以及 168 个插件内画作资源可访问。Mac 桌面版和其他 DSH 版本尚未实测。`engines.dsh` 声明 `>=0.2.2-rc.5 <0.3.0` 作为安装边界,不表示其中每个版本都通过测试。
9
+ - 时间戳计时:运行中睡眠计入、暂停不计入。系统时钟变动可能影响计时;应用退出时不保证准点提醒。
10
+ - 存储在客户端的 `localStorage`,不自动同步;清理本地数据会丢失记录。如读取损坏,插件停止写入以保护原数据;应先备份数据。
11
+ - WebGL 不可用时退回 Canvas 2D 绘制;资源加载失败时退回简单图片揭示,视觉效果会不同。画作资源由 DSH 本地插件资产路由提供,插件不调用远程画作服务。
12
+ - 尚未核验 84 幅作品的图片和品牌素材公开分发权利。将软件包公开发布之前,由权利人确认授权。
13
+
14
+ ## 用户按名称安装(发布后)
15
+
16
+ 软件包名称为 `dsh-plugin-easedraw`。**只有该名称实际发布到 DSH 所选 npm 注册表后才能用名称安装;本地打包不会自动完成发布或占用名称。** 包名可用性也可能随时变化。
17
+
18
+ 1. 在 DSH 登录并选择工作目录,点击左侧 **Plugins**,找到 **添加插件 / Add plugin**。
19
+ 2. 在插件名称或安装来源中输入:`dsh-plugin-easedraw`,确认来源为发布该包的 npm 源,然后安装并启用。
20
+ 3. 重启 DSH,在选定工作目录的会话输入区找到 **逸刻 · 专注**。选择画作和时长即可开始。
21
+ 4. 如果不能安装,请确认 DSH 的准确版本和所选注册表;安装包要求 `>=0.2.2-rc.5 <0.3.0`。DSH 预览版界面和 API 可能变化。
22
+
23
+ DSH 官网说明 bundle 按包名安装的机制:https://deepseek-harness.github.io/deepseek-harness/en/develop/basic/publish
24
+
25
+ ## 发布者操作:发布到 npm
26
+
27
+ 需要有权使用该名称的 npm 账号,且确认代码、全部画作及商标有权公开分发。请在自己信任的电脑操作,不要把密码、OTP 或访问令牌发给任何人。
28
+
29
+ ```sh
30
+ npm run build
31
+ npm test
32
+ npm pack --dry-run
33
+ npm view dsh-plugin-easedraw version # 如果已存在,不要覆盖别人的包
34
+ npm login
35
+ npm publish --access public
36
+ npm view dsh-plugin-easedraw version # 确认发布成功
37
+ ```
38
+
39
+ `npm view` 返回 404 可表示该注册表当前没有这个包,不构成名称预留。npm 可能要求多因素验证、组织权限或其他发布条件。若名称被占用,应选择有权使用的 npm scope 并同步修改 `package.json` 的名称和 `cordis.patch.yml` 的模块名称,再构建、重新测试;它会改变用户需要输入的名字。不可冒用他人的包名或账号。
40
+
41
+ ## 先用文件安装(不发布时)
42
+
43
+ DSH 插件管理器若提供添加本地压缩包,输入 `dsh-plugin-easedraw-0.2.0.tgz` 的绝对路径;这是测试方法,不等于按名称安装。另一种测试是在独立 DSH Web profile 安装:
44
+
45
+ ```sh
46
+ dsh plugin --profile web add /绝对路径/dsh-plugin-easedraw-0.2.0.tgz
47
+ dsh --profile web --dump-config
48
+ dsh web
49
+ ```
50
+
51
+ Web profile 与桌面 profile 相互独立。桌面安装流程请以自己 DSH 的实际界面为准。
52
+
53
+ ## 构建、测试与仓库
54
+
55
+ 需要 Node.js 20 以上,构建不需要额外 npm 依赖。
56
+
57
+ ```sh
58
+ npm run build
59
+ npm test
60
+ npm pack
61
+ ```
62
+
63
+ - `assets/paintings.json` 和 `assets/<id>/`:84 幅作品元数据、两张 WebP 画作渲染资源。
64
+ - `src/original-painter.js`:从提供的离线包提取的绘制引擎;`src/focus-timer.js`:计时状态机;`src/client-body.js`:DSH 界面和本地持久化。
65
+ - `tools/build.mjs`:构建 `client.js` 及 DSH 规范的内容哈希资源 `lib/assets/`;源码素材修改后需要重新构建。
66
+ - `cordis.patch.yml`、`package.json`、`index.js`:DSH bundle 配置。
67
+ - `test/`:计时与 84 幅素材完整性测试。
68
+
69
+ 这是独立 Git 仓库,不包含 GitHub 远程。可自行新建空仓库,在检查内容和素材授权后添加 remote 并推送 `main`。
package/client.js ADDED
@@ -0,0 +1,189 @@
1
+ window.__ModuleLoader__.load({
2
+ id:"dsh-plugin-easedraw",
3
+ factory(require) {
4
+ const React = require('react');
5
+ const h = React.createElement;
6
+ const D = {"milkmaid":{"n":"倒牛奶的女仆","a":"维米尔","y":"1658","p":"她只在做一件事:让牛奶慢慢流下来。","c":"室内","r":0.8906,"wh":[1140,1280],"k":"f","atlas":[517,580,258,290]},"waterlilies":{"n":"睡莲","a":"莫奈","y":"1906","p":"云落进池塘,睡莲就睡在云上。","c":"雪·雾·水","r":1.039,"wh":[1280,1232],"k":"s","atlas":[558,537,279,268]},"pearl":{"n":"戴珍珠耳环的少女","a":"维米尔","y":"1665","p":"她回头的那一瞬,什么都不用说。","c":"人物","r":0.8438,"wh":[1080,1280],"k":"f","atlas":[503,596,252,298]},"starry":{"n":"星月夜","a":"梵高","y":"1889","p":"整个夜空都在旋转,小镇却睡得很沉。","c":"星月","r":1.2648,"wh":[1280,1012],"k":"s","b":"moonrise","atlas":[616,487,308,244]},"wheat":{"n":"夏末麦垛","a":"莫奈","y":"1891","p":"夏天快结束了,阳光还很长。","c":"风景","r":1.6842,"wh":[1280,760],"k":"f","atlas":[640,380,320,190]},"whistler":{"n":"夜曲:蓝与金","a":"惠斯勒","y":"1872","p":"港口的灯暗下去了,只剩一点暖色浮在水上。","c":"雪·雾·水","r":1.5094,"wh":[1280,848],"k":"s","atlas":[640,424,320,212]},"rhone":{"n":"罗纳河上的星夜","a":"梵高","y":"1888","p":"星星落进河里,岸边的人慢慢走。","c":"星月","r":1.2955,"wh":[1280,988],"k":"s","b":"whistler","atlas":[623,481,312,240]},"lacemaker":{"n":"花边女工","a":"维米尔","y":"1670","p":"目光落在指尖,世界就安静了。","c":"室内","r":0.8719,"wh":[1116,1280],"k":"f","atlas":[511,587,256,294]},"cafe":{"n":"夜间露天咖啡座","a":"梵高","y":"1888","p":"夜不是黑的,是深蓝色的。","c":"星月","r":0.8031,"wh":[1028,1280],"k":"s","b":"bedroom","atlas":[491,611,246,306]},"letter":{"n":"读信的蓝衣女子","a":"维米尔","y":"1663","p":"一封信,从第一行读到最后一行。","c":"室内","r":0.8344,"wh":[1068,1280],"k":"f","atlas":[500,600,250,300]},"balance":{"n":"持秤的女人","a":"维米尔","y":"1664","p":"她屏住呼吸,等秤慢慢停稳。","c":"室内","r":0.8844,"wh":[1132,1280],"k":"f","atlas":[515,582,258,291]},"moonrise":{"n":"月升","a":"英尼斯","y":"1891","p":"月亮从树后升起来,今天就到这里。","c":"星月","r":0.8344,"wh":[1068,1280],"k":"s","atlas":[500,600,250,300]},"twomen":{"n":"凝望月亮的两个人","a":"弗里德里希","y":"1820","p":"什么也不说,一起看月亮。","c":"星月","r":1.25,"wh":[1280,1024],"k":"s","b":"moonrise","atlas":[612,490,306,245]},"pitcher":{"n":"持水壶的年轻女子","a":"维米尔","y":"1662","p":"推开窗,光先进来。","c":"室内","r":0.8875,"wh":[1136,1280],"k":"f","atlas":[516,581,258,290]},"seamoon":{"n":"海上月升","a":"弗里德里希","y":"1822","p":"船回来了,月亮也升起来了。","c":"星月","r":1.3061,"wh":[1280,980],"k":"s","b":"whistler","atlas":[626,479,313,240]},"astronomer":{"n":"天文学家","a":"维米尔","y":"1668","p":"手指放在星图上,心去了很远的地方。","c":"室内","r":0.8812,"wh":[1128,1280],"k":"f","atlas":[514,583,257,292]},"geographer":{"n":"地理学家","a":"维米尔","y":"1669","p":"抬头想一想,再低头画下一笔。","c":"室内","r":0.8906,"wh":[1140,1280],"k":"f","atlas":[517,580,258,290]},"milletstars":{"n":"星夜","a":"米勒","y":"1851","p":"田野睡了,星星还醒着。","c":"星月","r":1.2451,"wh":[1280,1028],"k":"s","b":"moonrise","atlas":[611,491,306,246]},"delft":{"n":"代尔夫特风景","a":"维米尔","y":"1661","p":"云影落在城墙上,小城安静地晒着太阳。","c":"风景","r":1.203,"wh":[1280,1064],"k":"f","atlas":[601,499,300,250]},"vgmoon":{"n":"麦田上升起的月亮","a":"梵高","y":"1889","p":"麦垛收好了,月亮升起来。","c":"星月","r":1.2749,"wh":[1280,1004],"k":"s","b":"wheatsnow","atlas":[618,485,309,242]},"street":{"n":"小街","a":"维米尔","y":"1658","p":"门口的人各忙各的,日子就这样过下去。","c":"风景","r":0.8063,"wh":[1032,1280],"k":"f","atlas":[492,610,246,305]},"grimshaw":{"n":"月光下的利物浦码头","a":"格里姆肖","y":"1887","p":"雨后的街道映着灯,人们各自回家。","c":"星月","r":1.4953,"wh":[1280,856],"k":"s","b":"whistler","atlas":[640,428,320,214]},"thames":{"n":"泰晤士河倒影","a":"格里姆肖","y":"1880","p":"月亮在雾里,灯在水里。","c":"星月","r":1.6842,"wh":[1280,760],"k":"s","b":"seinemist","atlas":[640,380,320,190]},"hammershoi":{"n":"阳光中的尘埃","a":"哈默修伊","y":"1900","p":"空房间里,只有光在慢慢移动。","c":"室内","r":0.85,"wh":[1088,1280],"k":"f","atlas":[505,594,252,297]},"dnieper":{"n":"第聂伯河上的月夜","a":"库因吉","y":"1880","p":"月光在河上铺出一条路。","c":"星月","r":1.3793,"wh":[1280,928],"k":"s","b":"whistler","atlas":[640,464,320,232]},"strandgade":{"n":"斯特兰德街的房间","a":"哈默修伊","y":"1901","p":"她背对着我们,安静地做自己的事。","c":"室内","r":1.1429,"wh":[1280,1120],"k":"f","atlas":[586,512,293,256]},"dehooch":{"n":"代尔夫特庭院","a":"德·霍赫","y":"1658","p":"穿过门廊,院子里的光正好。","c":"室内","r":0.8375,"wh":[1072,1280],"k":"f","atlas":[501,599,250,300]},"aivazovsky":{"n":"月夜","a":"艾瓦佐夫斯基","y":"1849","p":"篝火、月亮和水,夜色刚刚好。","c":"星月","r":1.3008,"wh":[1280,984],"k":"s","b":"heron","atlas":[625,480,312,240]},"bubbles":{"n":"肥皂泡","a":"夏尔丹","y":"1734","p":"轻一点,再轻一点,泡泡就越吹越大。","c":"人物","r":1.0356,"wh":[1280,1236],"k":"f","atlas":[557,538,278,269]},"fishermen":{"n":"海上渔夫","a":"透纳","y":"1796","p":"风浪之中,月光一直都在。","c":"星月","r":1.3445,"wh":[1280,952],"k":"s","b":"whistler","atlas":[635,472,318,236]},"jatte":{"n":"大碗岛的星期天下午","a":"修拉","y":"1884","p":"一个点,一个点,慢慢拼成一个下午。","c":"人物","r":1.5023,"wh":[1280,852],"k":"f","atlas":[640,426,320,213]},"kanbara":{"n":"蒲原 · 夜之雪","a":"歌川广重","y":"1833","p":"雪夜没有声音,行人慢慢走回家。","c":"雪·雾·水","r":1.5459,"wh":[1280,828],"k":"s","atlas":[640,414,320,207]},"parasol":{"n":"撑阳伞的女人","a":"莫奈","y":"1875","p":"风从草地上吹过来,裙角轻轻扬起。","c":"人物","r":0.8063,"wh":[1032,1280],"k":"f","atlas":[492,610,246,305]},"saruwaka":{"n":"猿若町夜景","a":"歌川广重","y":"1856","p":"满月照着街,人影拖得很长。","c":"星月","r":0.6469,"wh":[828,1280],"k":"s","b":"kanbara","atlas":[414,640,207,320]},"boating":{"n":"船上的午宴","a":"雷诺阿","y":"1881","p":"阳光、笑声和一张长桌,忙完就去赴约吧。","c":"人物","r":1.3502,"wh":[1280,948],"k":"f","atlas":[636,471,318,236]},"fireworks":{"n":"两国烟火","a":"歌川广重","y":"1858","p":"烟火落下去,夜就安静了。","c":"星月","r":0.6469,"wh":[828,1280],"k":"s","b":"kanbara","atlas":[414,640,207,320]},"larsson":{"n":"白桦树下的早餐","a":"卡尔·拉松","y":"1896","p":"先好好吃完早饭,再开始一天。","c":"人物","r":1.5311,"wh":[1280,836],"k":"f","atlas":[640,418,320,209]},"wheatsnow":{"n":"雪中麦垛","a":"莫奈","y":"1891","p":"雪把田野盖好,像给它掖了掖被角。","c":"雪·雾·水","r":1.4286,"wh":[1280,896],"k":"s","atlas":[640,448,320,224]},"sorolla":{"n":"海边漫步","a":"索罗拉","y":"1909","p":"海风很大,脚步很轻。","c":"人物","r":0.9875,"wh":[1264,1280],"k":"f","atlas":[544,551,272,276]},"seinemist":{"n":"塞纳河晨雾","a":"莫奈","y":"1897","p":"雾还没有散,世界可以再等一会儿。","c":"雪·雾·水","r":1.0323,"wh":[1280,1240],"k":"s","atlas":[556,539,278,270]},"cypress":{"n":"有柏树的麦田","a":"梵高","y":"1889","p":"风吹过麦田,云一层一层地走。","c":"风景","r":1.2698,"wh":[1280,1008],"k":"f","atlas":[617,486,308,243]},"bluesilver":{"n":"夜曲:蓝与银","a":"惠斯勒","y":"1871","p":"河面很静,远处的灯一盏一盏亮着。","c":"雪·雾·水","r":1.2214,"wh":[1280,1048],"k":"s","b":"whistler","atlas":[605,496,302,248]},"charing":{"n":"查令十字桥","a":"莫奈","y":"1899","p":"雾把城市揉成一片柔软的颜色。","c":"雪·雾·水","r":1.2403,"wh":[1280,1032],"k":"s","b":"seinemist","atlas":[610,492,305,246]},"impression":{"n":"日出 · 印象","a":"莫奈","y":"1872","p":"太阳刚刚升起,一切都还来得及。","c":"风景","r":1.2903,"wh":[1280,992],"k":"f","atlas":[622,482,311,241]},"heron":{"n":"鹭鸟的家","a":"英尼斯","y":"1893","p":"暮色把树林染成琥珀色,鹭鸟也回家了。","c":"暮色","r":1.5238,"wh":[1280,840],"k":"s","atlas":[640,420,320,210]},"sadresse":{"n":"圣阿德雷斯海滩","a":"莫奈","y":"1867","p":"船在远处,等风来。","c":"风景","r":1.3675,"wh":[1280,936],"k":"f","atlas":[640,468,320,234]},"bridge":{"n":"睡莲池上的桥","a":"莫奈","y":"1899","p":"站在桥上看一池睡莲,时间慢了下来。","c":"风景","r":0.7969,"wh":[1020,1280],"k":"f","atlas":[489,614,244,307]},"parliament":{"n":"国会大厦 · 日落","a":"莫奈","y":"1903","p":"太阳沉进河雾,一天到这里就好。","c":"暮色","r":1.1307,"wh":[1280,1132],"k":"s","b":"seinemist","atlas":[582,515,291,258]},"rainyparis":{"n":"雨天的巴黎街道","a":"卡耶博特","y":"1877","p":"撑一把伞,沿着自己的路走。","c":"风景","r":1.3223,"wh":[1280,968],"k":"f","atlas":[630,476,315,238]},"sangiorgio":{"n":"暮色中的圣乔治岛","a":"莫奈","y":"1908","p":"威尼斯的黄昏,水和天融在一起。","c":"暮色","r":1.4097,"wh":[1280,908],"k":"s","b":"waterlilies","atlas":[640,454,320,227]},"angelus":{"n":"晚祷","a":"米勒","y":"1859","p":"钟声响起,放下手里的活。","c":"暮色","r":1.203,"wh":[1280,1064],"k":"s","b":"heron","atlas":[601,499,300,250]},"haywain":{"n":"干草车","a":"康斯太布尔","y":"1821","p":"马车停在溪水里,午后很长。","c":"风景","r":1.448,"wh":[1280,884],"k":"f","atlas":[640,442,320,221]},"cezanne":{"n":"圣维克多山","a":"塞尚","y":"1887","p":"同一座山,塞尚画了几十遍,每一遍都很认真。","c":"风景","r":1.3793,"wh":[1280,928],"k":"f","atlas":[640,464,320,232]},"levitan":{"n":"晚钟","a":"列维坦","y":"1892","p":"晚钟从河对岸传来,一声,一声。","c":"暮色","r":1.25,"wh":[1280,1024],"k":"s","b":"waterlilies","atlas":[612,490,306,245]},"lark":{"n":"云雀之歌","a":"布雷顿","y":"1884","p":"她停下来,听云雀唱完最后一句。","c":"暮色","r":0.7719,"wh":[988,1280],"k":"s","b":"heron","atlas":[481,623,240,312]},"klimt":{"n":"白桦林","a":"克里姆特","y":"1903","p":"一棵一棵树站好,秋天铺满了地面。","c":"风景","r":1.0159,"wh":[1280,1260],"k":"f","atlas":[552,543,276,272]},"fsunset":{"n":"夕阳前的女人","a":"弗里德里希","y":"1818","p":"张开双手,送走今天的太阳。","c":"暮色","r":1.3913,"wh":[1280,920],"k":"s","b":"heron","atlas":[640,460,320,230]},"poppies":{"n":"罂粟花田","a":"莫奈","y":"1873","p":"沿着花田慢慢走,不用赶路。","c":"花","r":1.3115,"wh":[1280,976],"k":"f","atlas":[627,478,314,239]},"irises":{"n":"鸢尾花","a":"梵高","y":"1889","p":"每一片叶子都朝着自己的方向生长。","c":"花","r":1.2955,"wh":[1280,988],"k":"f","atlas":[623,481,312,240]},"bierstadt":{"n":"优胜美地谷的日落","a":"比尔施塔特","y":"1868","p":"山谷里最后一束光,慢慢暗下去。","c":"暮色","r":1.4545,"wh":[1280,880],"k":"s","b":"heron","atlas":[640,440,320,220]},"almond":{"n":"杏花","a":"梵高","y":"1890","p":"枝头开满了花,像春天写来的一封信。","c":"花","r":1.2648,"wh":[1280,1012],"k":"f","atlas":[616,487,308,244]},"bedroom":{"n":"卧室","a":"梵高","y":"1889","p":"梵高说,他想让这幅画看起来就是\"休息\"。","c":"入梦","r":1.2749,"wh":[1280,1004],"k":"s","atlas":[618,485,309,242]},"hammermoon":{"n":"月光 · 斯特兰德街","a":"哈默修伊","y":"1906","p":"月光铺在地板上,屋里很静。","c":"入梦","r":1.25,"wh":[1280,1024],"k":"s","b":"bedroom","atlas":[612,490,306,245]},"sunflowers":{"n":"向日葵","a":"梵高","y":"1888","p":"把一束阳光插进花瓶里。","c":"花","r":0.7875,"wh":[1008,1280],"k":"f","atlas":[486,617,243,308]},"gypsy":{"n":"沉睡的吉普赛人","a":"卢梭","y":"1897","p":"月光下,她睡得很安心。","c":"入梦","r":1.5686,"wh":[1280,816],"k":"s","b":"moonrise","atlas":[640,408,320,204]},"redfuji":{"n":"凯风快晴","a":"葛饰北斋","y":"1831","p":"晴天,一座山,就够了。","c":"浮世绘","r":1.4747,"wh":[1280,868],"k":"f","atlas":[640,434,320,217]},"wave":{"n":"神奈川冲浪里","a":"葛饰北斋","y":"1831","p":"浪再大,远处的富士山也一动不动。","c":"浮世绘","r":1.4884,"wh":[1280,860],"k":"f","atlas":[640,430,320,215]},"flaming":{"n":"炽热的六月","a":"莱顿","y":"1895","p":"夏日午后,蜷起来睡一会儿。","c":"入梦","r":1,"wh":[1280,1280],"k":"s","b":"bedroom","atlas":[548,548,274,274]},"ejiri":{"n":"骏州江尻","a":"葛饰北斋","y":"1832","p":"一阵风吹散了纸片,山还在原地。","c":"浮世绘","r":1.3974,"wh":[1280,916],"k":"f","atlas":[640,458,320,229]},"rosebower":{"n":"玫瑰花亭","a":"伯恩-琼斯","y":"1890","p":"玫瑰开着,公主睡着,时间也睡着了。","c":"入梦","r":1.9162,"wh":[1280,668],"k":"s","b":"bedroom","atlas":[640,334,320,167]},"moore":{"n":"梦者","a":"阿尔伯特·摩尔","y":"1882","p":"她们都睡着了,你也可以。","c":"入梦","r":1.7204,"wh":[1280,744],"k":"s","b":"bedroom","atlas":[640,372,320,186]},"shower":{"n":"大桥安宅骤雨","a":"歌川广重","y":"1857","p":"雨说来就来,桥上的人加快了脚步。","c":"浮世绘","r":0.675,"wh":[864,1280],"k":"f","atlas":[432,640,216,320]},"pourville-cliff":{"n":"普尔维尔的悬崖漫步","a":"莫奈","y":"1882","p":"海风吹过悬崖,眼前的路慢慢展开。","c":"风景","r":1.2476,"wh":[1280,1026],"k":"f","v":1,"atlas":[640,513,320,256]},"poets-garden":{"n":"诗人的花园","a":"梵高","y":"1888","p":"树影在草地上安静地生长。","c":"风景","r":1.2598,"wh":[1280,1016],"k":"f","v":1,"atlas":[640,508,320,254]},"argenteuil-house":{"n":"阿让特伊的画家之家","a":"莫奈","y":"1873","p":"阳光落进庭院,一天从容地开始。","c":"风景","r":1.2249,"wh":[1280,1045],"k":"f","v":1,"atlas":[640,523,320,262]},"eragny-haymaking":{"n":"埃拉尼的干草收获","a":"毕沙罗","y":"1892","p":"田野里各自忙碌,微风经过树梢。","c":"风景","r":1.2476,"wh":[1280,1026],"k":"f","v":1,"atlas":[640,513,320,256]},"pontoise-snow":{"n":"蓬图瓦兹的雪","a":"毕沙罗","y":"1879","p":"雪落在小径上,四周渐渐安静。","c":"雪·雾·水","r":1.2284,"wh":[1280,1042],"k":"s","b":"wheatsnow","v":1,"atlas":[640,521,320,260]},"inokashira-snow":{"n":"井之头池雪景","a":"歌川广重","y":"1843","p":"雪落在池边,灯火与脚步都轻了。","c":"雪·雾·水","r":1.5459,"wh":[1280,828],"k":"s","b":"waterlilies","v":1,"atlas":[640,414,320,207]},"mishima-mist":{"n":"三岛的晨雾","a":"歌川广重","y":"约1833","p":"雾把远处藏起来,路在脚下慢慢延伸。","c":"雪·雾·水","r":1.5059,"wh":[1280,850],"k":"s","b":"whistler","v":1,"atlas":[640,425,320,212]},"clichy-spring":{"n":"克利希桥畔的春钓","a":"梵高","y":"1887","p":"小船停在水边,春水缓缓流过。","c":"雪·雾·水","r":1.1996,"wh":[1280,1067],"k":"s","b":"kanbara","v":1,"atlas":[640,534,320,267]},"monet-bordighera":{"n":"博尔迪盖拉","a":"莫奈","y":"1884","p":"松枝之间,海与天空慢慢亮起来。","c":"风景","r":1.2427,"wh":[1280,1030],"k":"f","v":1,"atlas":[640,515,320,258]},"monet-apples-grapes":{"n":"苹果与葡萄","a":"莫奈","y":"1880","p":"把这一刻,留给光与色彩。","c":"静物","r":1.2512,"wh":[1280,1023],"k":"f","v":1,"atlas":[640,512,320,256]},"catherine-lee":{"n":"Catherine Lee","a":"Catherine Lee","y":"2026","p":"","c":"风景","r":1.5006,"wh":[1280,853],"k":"f","v":1,"atlas":[640,427,320,214]},"window-five-minutes":{"n":"窗边的五分钟","a":"AI 创作","y":"2026","p":"晨光落在书页上,把五分钟留给眼前。","c":"室内","r":0.8,"wh":[1024,1280],"k":"f","v":1,"atlas":[512,640,256,320]}};
7
+ const AT = {"milkmaid":[517,580,258,290],"waterlilies":[558,537,279,268],"pearl":[503,596,252,298],"starry":[616,487,308,244],"wheat":[640,380,320,190],"whistler":[640,424,320,212],"rhone":[623,481,312,240],"lacemaker":[511,587,256,294],"cafe":[491,611,246,306],"letter":[500,600,250,300],"balance":[515,582,258,291],"moonrise":[500,600,250,300],"twomen":[612,490,306,245],"pitcher":[516,581,258,290],"seamoon":[626,479,313,240],"astronomer":[514,583,257,292],"geographer":[517,580,258,290],"milletstars":[611,491,306,246],"delft":[601,499,300,250],"vgmoon":[618,485,309,242],"street":[492,610,246,305],"grimshaw":[640,428,320,214],"thames":[640,380,320,190],"hammershoi":[505,594,252,297],"dnieper":[640,464,320,232],"strandgade":[586,512,293,256],"dehooch":[501,599,250,300],"aivazovsky":[625,480,312,240],"bubbles":[557,538,278,269],"fishermen":[635,472,318,236],"jatte":[640,426,320,213],"kanbara":[640,414,320,207],"parasol":[492,610,246,305],"saruwaka":[414,640,207,320],"boating":[636,471,318,236],"fireworks":[414,640,207,320],"larsson":[640,418,320,209],"wheatsnow":[640,448,320,224],"sorolla":[544,551,272,276],"seinemist":[556,539,278,270],"cypress":[617,486,308,243],"bluesilver":[605,496,302,248],"charing":[610,492,305,246],"impression":[622,482,311,241],"heron":[640,420,320,210],"sadresse":[640,468,320,234],"bridge":[489,614,244,307],"parliament":[582,515,291,258],"rainyparis":[630,476,315,238],"sangiorgio":[640,454,320,227],"angelus":[601,499,300,250],"haywain":[640,442,320,221],"cezanne":[640,464,320,232],"levitan":[612,490,306,245],"lark":[481,623,240,312],"klimt":[552,543,276,272],"fsunset":[640,460,320,230],"poppies":[627,478,314,239],"irises":[623,481,312,240],"bierstadt":[640,440,320,220],"almond":[616,487,308,244],"bedroom":[618,485,309,242],"hammermoon":[612,490,306,245],"sunflowers":[486,617,243,308],"gypsy":[640,408,320,204],"redfuji":[640,434,320,217],"wave":[640,430,320,215],"flaming":[548,548,274,274],"ejiri":[640,458,320,229],"rosebower":[640,334,320,167],"moore":[640,372,320,186],"shower":[432,640,216,320],"pourville-cliff":[640,513,320,256],"poets-garden":[640,508,320,254],"argenteuil-house":[640,523,320,262],"eragny-haymaking":[640,513,320,256],"pontoise-snow":[640,521,320,260],"inokashira-snow":[640,414,320,207],"mishima-mist":[640,425,320,212],"clichy-spring":[640,534,320,267],"monet-bordighera":[640,515,320,258],"monet-apples-grapes":[640,512,320,256],"catherine-lee":[640,427,320,214],"window-five-minutes":[512,640,256,320]};
8
+ const PATHS = {"milkmaid":{"x":"plugins/dsh-plugin-easedraw/assets/milkmaid/x-72a1b83fb07a.webp","c":"plugins/dsh-plugin-easedraw/assets/milkmaid/c-07ed2a14ee90.webp"},"waterlilies":{"x":"plugins/dsh-plugin-easedraw/assets/waterlilies/x-7ff96f8e6e08.webp","c":"plugins/dsh-plugin-easedraw/assets/waterlilies/c-854ad106fb4f.webp"},"pearl":{"x":"plugins/dsh-plugin-easedraw/assets/pearl/x-6b92370f652e.webp","c":"plugins/dsh-plugin-easedraw/assets/pearl/c-abee4a5932f9.webp"},"starry":{"x":"plugins/dsh-plugin-easedraw/assets/starry/x-d3624b895b6b.webp","c":"plugins/dsh-plugin-easedraw/assets/starry/c-7b73287af9dc.webp"},"wheat":{"x":"plugins/dsh-plugin-easedraw/assets/wheat/x-02bc298cfd7d.webp","c":"plugins/dsh-plugin-easedraw/assets/wheat/c-e87855afd7ba.webp"},"whistler":{"x":"plugins/dsh-plugin-easedraw/assets/whistler/x-f40a7c447b9d.webp","c":"plugins/dsh-plugin-easedraw/assets/whistler/c-64564ba4b30b.webp"},"rhone":{"x":"plugins/dsh-plugin-easedraw/assets/rhone/x-34d5512b3405.webp","c":"plugins/dsh-plugin-easedraw/assets/rhone/c-a9bb3282640f.webp"},"lacemaker":{"x":"plugins/dsh-plugin-easedraw/assets/lacemaker/x-1084932117e2.webp","c":"plugins/dsh-plugin-easedraw/assets/lacemaker/c-d15464271e1a.webp"},"cafe":{"x":"plugins/dsh-plugin-easedraw/assets/cafe/x-0705e4014144.webp","c":"plugins/dsh-plugin-easedraw/assets/cafe/c-594b323da5f9.webp"},"letter":{"x":"plugins/dsh-plugin-easedraw/assets/letter/x-52405463942a.webp","c":"plugins/dsh-plugin-easedraw/assets/letter/c-06e993082905.webp"},"balance":{"x":"plugins/dsh-plugin-easedraw/assets/balance/x-6961a5000855.webp","c":"plugins/dsh-plugin-easedraw/assets/balance/c-07ca61769054.webp"},"moonrise":{"x":"plugins/dsh-plugin-easedraw/assets/moonrise/x-1965abb8b096.webp","c":"plugins/dsh-plugin-easedraw/assets/moonrise/c-ae854bb3b4c8.webp"},"twomen":{"x":"plugins/dsh-plugin-easedraw/assets/twomen/x-0eb1d8912eaf.webp","c":"plugins/dsh-plugin-easedraw/assets/twomen/c-e167d579e51c.webp"},"pitcher":{"x":"plugins/dsh-plugin-easedraw/assets/pitcher/x-19d09121eeaa.webp","c":"plugins/dsh-plugin-easedraw/assets/pitcher/c-a138768110d9.webp"},"seamoon":{"x":"plugins/dsh-plugin-easedraw/assets/seamoon/x-fa06162d5b4a.webp","c":"plugins/dsh-plugin-easedraw/assets/seamoon/c-1fbcf27ee01b.webp"},"astronomer":{"x":"plugins/dsh-plugin-easedraw/assets/astronomer/x-6ecac9f04faf.webp","c":"plugins/dsh-plugin-easedraw/assets/astronomer/c-d06c4268a610.webp"},"geographer":{"x":"plugins/dsh-plugin-easedraw/assets/geographer/x-bdfde18bbbcc.webp","c":"plugins/dsh-plugin-easedraw/assets/geographer/c-d075b3640af6.webp"},"milletstars":{"x":"plugins/dsh-plugin-easedraw/assets/milletstars/x-41be4f4187a6.webp","c":"plugins/dsh-plugin-easedraw/assets/milletstars/c-229791e2b82e.webp"},"delft":{"x":"plugins/dsh-plugin-easedraw/assets/delft/x-48ed7ad9a35c.webp","c":"plugins/dsh-plugin-easedraw/assets/delft/c-cba6b32de2a4.webp"},"vgmoon":{"x":"plugins/dsh-plugin-easedraw/assets/vgmoon/x-2ebbd03a5376.webp","c":"plugins/dsh-plugin-easedraw/assets/vgmoon/c-5a5b29fef873.webp"},"street":{"x":"plugins/dsh-plugin-easedraw/assets/street/x-ce3fd5752baf.webp","c":"plugins/dsh-plugin-easedraw/assets/street/c-60d38251bfcd.webp"},"grimshaw":{"x":"plugins/dsh-plugin-easedraw/assets/grimshaw/x-0f04bc8728c0.webp","c":"plugins/dsh-plugin-easedraw/assets/grimshaw/c-4ff53f0751c0.webp"},"thames":{"x":"plugins/dsh-plugin-easedraw/assets/thames/x-fce36a81b310.webp","c":"plugins/dsh-plugin-easedraw/assets/thames/c-8627d264d156.webp"},"hammershoi":{"x":"plugins/dsh-plugin-easedraw/assets/hammershoi/x-e0702def9b7a.webp","c":"plugins/dsh-plugin-easedraw/assets/hammershoi/c-73cc375407c6.webp"},"dnieper":{"x":"plugins/dsh-plugin-easedraw/assets/dnieper/x-f32d57da7255.webp","c":"plugins/dsh-plugin-easedraw/assets/dnieper/c-3e59ae20e889.webp"},"strandgade":{"x":"plugins/dsh-plugin-easedraw/assets/strandgade/x-265d002db736.webp","c":"plugins/dsh-plugin-easedraw/assets/strandgade/c-1161cdeb8d8e.webp"},"dehooch":{"x":"plugins/dsh-plugin-easedraw/assets/dehooch/x-0949786c8346.webp","c":"plugins/dsh-plugin-easedraw/assets/dehooch/c-22fe1b466f8a.webp"},"aivazovsky":{"x":"plugins/dsh-plugin-easedraw/assets/aivazovsky/x-23506ec34e70.webp","c":"plugins/dsh-plugin-easedraw/assets/aivazovsky/c-74ece4a4aaa8.webp"},"bubbles":{"x":"plugins/dsh-plugin-easedraw/assets/bubbles/x-eb4abd54573e.webp","c":"plugins/dsh-plugin-easedraw/assets/bubbles/c-199a5a79e13f.webp"},"fishermen":{"x":"plugins/dsh-plugin-easedraw/assets/fishermen/x-3aae68790b33.webp","c":"plugins/dsh-plugin-easedraw/assets/fishermen/c-c01429f1c6f3.webp"},"jatte":{"x":"plugins/dsh-plugin-easedraw/assets/jatte/x-02b5d3acc209.webp","c":"plugins/dsh-plugin-easedraw/assets/jatte/c-da189910cd88.webp"},"kanbara":{"x":"plugins/dsh-plugin-easedraw/assets/kanbara/x-23f4c7227d6b.webp","c":"plugins/dsh-plugin-easedraw/assets/kanbara/c-6f4cc1f35a57.webp"},"parasol":{"x":"plugins/dsh-plugin-easedraw/assets/parasol/x-7a23fd01514f.webp","c":"plugins/dsh-plugin-easedraw/assets/parasol/c-15cc5372d478.webp"},"saruwaka":{"x":"plugins/dsh-plugin-easedraw/assets/saruwaka/x-b454a7e3f528.webp","c":"plugins/dsh-plugin-easedraw/assets/saruwaka/c-5331f4f975ba.webp"},"boating":{"x":"plugins/dsh-plugin-easedraw/assets/boating/x-c4c651de7d8a.webp","c":"plugins/dsh-plugin-easedraw/assets/boating/c-17ad717b9290.webp"},"fireworks":{"x":"plugins/dsh-plugin-easedraw/assets/fireworks/x-be3ba365cb81.webp","c":"plugins/dsh-plugin-easedraw/assets/fireworks/c-34cab4e56893.webp"},"larsson":{"x":"plugins/dsh-plugin-easedraw/assets/larsson/x-9951665abec5.webp","c":"plugins/dsh-plugin-easedraw/assets/larsson/c-83b155d44a6c.webp"},"wheatsnow":{"x":"plugins/dsh-plugin-easedraw/assets/wheatsnow/x-f9873517dc8c.webp","c":"plugins/dsh-plugin-easedraw/assets/wheatsnow/c-6a4d554c47db.webp"},"sorolla":{"x":"plugins/dsh-plugin-easedraw/assets/sorolla/x-233b4695f37b.webp","c":"plugins/dsh-plugin-easedraw/assets/sorolla/c-9bcc8b60a8d3.webp"},"seinemist":{"x":"plugins/dsh-plugin-easedraw/assets/seinemist/x-ffdde3be1a98.webp","c":"plugins/dsh-plugin-easedraw/assets/seinemist/c-d2739efee314.webp"},"cypress":{"x":"plugins/dsh-plugin-easedraw/assets/cypress/x-9a1ddc1cc3df.webp","c":"plugins/dsh-plugin-easedraw/assets/cypress/c-ba18c825acd3.webp"},"bluesilver":{"x":"plugins/dsh-plugin-easedraw/assets/bluesilver/x-1f0e749cdc74.webp","c":"plugins/dsh-plugin-easedraw/assets/bluesilver/c-63ba9cef7c06.webp"},"charing":{"x":"plugins/dsh-plugin-easedraw/assets/charing/x-120507fd6d06.webp","c":"plugins/dsh-plugin-easedraw/assets/charing/c-774f6f11a3a2.webp"},"impression":{"x":"plugins/dsh-plugin-easedraw/assets/impression/x-24d3da5d0e17.webp","c":"plugins/dsh-plugin-easedraw/assets/impression/c-b4f475d07a79.webp"},"heron":{"x":"plugins/dsh-plugin-easedraw/assets/heron/x-1b9373d1628f.webp","c":"plugins/dsh-plugin-easedraw/assets/heron/c-fdadb57ac159.webp"},"sadresse":{"x":"plugins/dsh-plugin-easedraw/assets/sadresse/x-d579c72a8073.webp","c":"plugins/dsh-plugin-easedraw/assets/sadresse/c-e87b63d1dfcc.webp"},"bridge":{"x":"plugins/dsh-plugin-easedraw/assets/bridge/x-8c2cc7127b7b.webp","c":"plugins/dsh-plugin-easedraw/assets/bridge/c-6a082f9aa0a6.webp"},"parliament":{"x":"plugins/dsh-plugin-easedraw/assets/parliament/x-f2fc822b7b0d.webp","c":"plugins/dsh-plugin-easedraw/assets/parliament/c-f84f4c4b0d1c.webp"},"rainyparis":{"x":"plugins/dsh-plugin-easedraw/assets/rainyparis/x-4be4d0892ac7.webp","c":"plugins/dsh-plugin-easedraw/assets/rainyparis/c-aa36327878d1.webp"},"sangiorgio":{"x":"plugins/dsh-plugin-easedraw/assets/sangiorgio/x-de26517d9653.webp","c":"plugins/dsh-plugin-easedraw/assets/sangiorgio/c-b5262917a767.webp"},"angelus":{"x":"plugins/dsh-plugin-easedraw/assets/angelus/x-7a068058183f.webp","c":"plugins/dsh-plugin-easedraw/assets/angelus/c-4e662aea88fa.webp"},"haywain":{"x":"plugins/dsh-plugin-easedraw/assets/haywain/x-a3eb85fe27a7.webp","c":"plugins/dsh-plugin-easedraw/assets/haywain/c-774cb587cc58.webp"},"cezanne":{"x":"plugins/dsh-plugin-easedraw/assets/cezanne/x-2fe65fbbf601.webp","c":"plugins/dsh-plugin-easedraw/assets/cezanne/c-021e136264f0.webp"},"levitan":{"x":"plugins/dsh-plugin-easedraw/assets/levitan/x-7fedad353673.webp","c":"plugins/dsh-plugin-easedraw/assets/levitan/c-5dddabeecf46.webp"},"lark":{"x":"plugins/dsh-plugin-easedraw/assets/lark/x-7e35a4c20809.webp","c":"plugins/dsh-plugin-easedraw/assets/lark/c-89b0677ca53e.webp"},"klimt":{"x":"plugins/dsh-plugin-easedraw/assets/klimt/x-444dbcf8846b.webp","c":"plugins/dsh-plugin-easedraw/assets/klimt/c-778fcd65c38d.webp"},"fsunset":{"x":"plugins/dsh-plugin-easedraw/assets/fsunset/x-2d27fc9ed316.webp","c":"plugins/dsh-plugin-easedraw/assets/fsunset/c-b3317bcbbe1a.webp"},"poppies":{"x":"plugins/dsh-plugin-easedraw/assets/poppies/x-7388ac732faa.webp","c":"plugins/dsh-plugin-easedraw/assets/poppies/c-7ad8332feb15.webp"},"irises":{"x":"plugins/dsh-plugin-easedraw/assets/irises/x-c7373b910383.webp","c":"plugins/dsh-plugin-easedraw/assets/irises/c-c8f68538f561.webp"},"bierstadt":{"x":"plugins/dsh-plugin-easedraw/assets/bierstadt/x-bf322b5df640.webp","c":"plugins/dsh-plugin-easedraw/assets/bierstadt/c-5ebae79599c6.webp"},"almond":{"x":"plugins/dsh-plugin-easedraw/assets/almond/x-ed36fce187a2.webp","c":"plugins/dsh-plugin-easedraw/assets/almond/c-6886ae1cbb95.webp"},"bedroom":{"x":"plugins/dsh-plugin-easedraw/assets/bedroom/x-d512d70f4054.webp","c":"plugins/dsh-plugin-easedraw/assets/bedroom/c-26f32687fb88.webp"},"hammermoon":{"x":"plugins/dsh-plugin-easedraw/assets/hammermoon/x-c789306afe4a.webp","c":"plugins/dsh-plugin-easedraw/assets/hammermoon/c-1826dd19c366.webp"},"sunflowers":{"x":"plugins/dsh-plugin-easedraw/assets/sunflowers/x-d843fc288727.webp","c":"plugins/dsh-plugin-easedraw/assets/sunflowers/c-d92b78408fcd.webp"},"gypsy":{"x":"plugins/dsh-plugin-easedraw/assets/gypsy/x-f3027808a89a.webp","c":"plugins/dsh-plugin-easedraw/assets/gypsy/c-43c0af86244a.webp"},"redfuji":{"x":"plugins/dsh-plugin-easedraw/assets/redfuji/x-a499b01dac57.webp","c":"plugins/dsh-plugin-easedraw/assets/redfuji/c-024c36884b12.webp"},"wave":{"x":"plugins/dsh-plugin-easedraw/assets/wave/x-801f9ead0d89.webp","c":"plugins/dsh-plugin-easedraw/assets/wave/c-80bd93875ceb.webp"},"flaming":{"x":"plugins/dsh-plugin-easedraw/assets/flaming/x-8e0e25a637ad.webp","c":"plugins/dsh-plugin-easedraw/assets/flaming/c-afb8021d6c06.webp"},"ejiri":{"x":"plugins/dsh-plugin-easedraw/assets/ejiri/x-a03aae2e28ce.webp","c":"plugins/dsh-plugin-easedraw/assets/ejiri/c-0aa94f32e87a.webp"},"rosebower":{"x":"plugins/dsh-plugin-easedraw/assets/rosebower/x-2bbc9aa8724a.webp","c":"plugins/dsh-plugin-easedraw/assets/rosebower/c-e3738da15800.webp"},"moore":{"x":"plugins/dsh-plugin-easedraw/assets/moore/x-395478413ba2.webp","c":"plugins/dsh-plugin-easedraw/assets/moore/c-9e7dfc1e9f7b.webp"},"shower":{"x":"plugins/dsh-plugin-easedraw/assets/shower/x-7b0b6e902784.webp","c":"plugins/dsh-plugin-easedraw/assets/shower/c-bdce8113db2e.webp"},"pourville-cliff":{"x":"plugins/dsh-plugin-easedraw/assets/pourville-cliff/x-1bd079d79230.webp","c":"plugins/dsh-plugin-easedraw/assets/pourville-cliff/c-62ed22ba016d.webp"},"poets-garden":{"x":"plugins/dsh-plugin-easedraw/assets/poets-garden/x-f0a1aa662a91.webp","c":"plugins/dsh-plugin-easedraw/assets/poets-garden/c-85b493bd97d2.webp"},"argenteuil-house":{"x":"plugins/dsh-plugin-easedraw/assets/argenteuil-house/x-e8d44bfc5250.webp","c":"plugins/dsh-plugin-easedraw/assets/argenteuil-house/c-9bce68c1981d.webp"},"eragny-haymaking":{"x":"plugins/dsh-plugin-easedraw/assets/eragny-haymaking/x-93ec0858c9a6.webp","c":"plugins/dsh-plugin-easedraw/assets/eragny-haymaking/c-45ba8de167a1.webp"},"pontoise-snow":{"x":"plugins/dsh-plugin-easedraw/assets/pontoise-snow/x-b94193dc75da.webp","c":"plugins/dsh-plugin-easedraw/assets/pontoise-snow/c-82d699e90e35.webp"},"inokashira-snow":{"x":"plugins/dsh-plugin-easedraw/assets/inokashira-snow/x-7a893e0c7af2.webp","c":"plugins/dsh-plugin-easedraw/assets/inokashira-snow/c-ff465de168e6.webp"},"mishima-mist":{"x":"plugins/dsh-plugin-easedraw/assets/mishima-mist/x-1a46b16a8841.webp","c":"plugins/dsh-plugin-easedraw/assets/mishima-mist/c-8594decb5a88.webp"},"clichy-spring":{"x":"plugins/dsh-plugin-easedraw/assets/clichy-spring/x-872f4b795694.webp","c":"plugins/dsh-plugin-easedraw/assets/clichy-spring/c-77ebede30edd.webp"},"monet-bordighera":{"x":"plugins/dsh-plugin-easedraw/assets/monet-bordighera/x-643e25ac5f11.webp","c":"plugins/dsh-plugin-easedraw/assets/monet-bordighera/c-04113d1a5b26.webp"},"monet-apples-grapes":{"x":"plugins/dsh-plugin-easedraw/assets/monet-apples-grapes/x-4e2fd1ccb8c8.webp","c":"plugins/dsh-plugin-easedraw/assets/monet-apples-grapes/c-c4e3c80061d5.webp"},"catherine-lee":{"x":"plugins/dsh-plugin-easedraw/assets/catherine-lee/x-fdaa0384c6b9.webp","c":"plugins/dsh-plugin-easedraw/assets/catherine-lee/c-cb7124eb6c2a.webp"},"window-five-minutes":{"x":"plugins/dsh-plugin-easedraw/assets/window-five-minutes/x-9aea0d820252.webp","c":"plugins/dsh-plugin-easedraw/assets/window-five-minutes/c-9fe259c42736.webp"}};
9
+ const ASSETS = Object.fromEntries(Object.entries(PATHS).map(([id, urls])=>[id,{x:require.asset(urls.x), c:require.asset(urls.c)}]));
10
+ /** Pure, timestamp-based focus timer. Callers persist state after each transition. */
11
+ const finiteTime = value => Number.isFinite(value) && value >= 0;
12
+ function checkNow(now) {
13
+ if (!finiteTime(now)) throw new TypeError('Invalid timestamp');
14
+ }
15
+ function valid(s) {
16
+ if (!s || s.version !== 1 || !['idle', 'running', 'paused', 'completed', 'ended'].includes(s.status) ||
17
+ !Number.isFinite(s.durationMs) || s.durationMs <= 0 || !Number.isFinite(s.elapsedMs) ||
18
+ s.elapsedMs < 0 || s.elapsedMs > s.durationMs || typeof s.artworkId !== 'string' || !s.artworkId ||
19
+ (s.status === 'running' && !finiteTime(s.resumedAt)) ||
20
+ (s.status !== 'running' && s.resumedAt !== null)) throw new TypeError('Invalid focus state');
21
+ }
22
+ function createFocus({ artworkId, durationMs }) {
23
+ const s = { version: 1, status: 'idle', artworkId, durationMs, elapsedMs: 0, resumedAt: null };
24
+ valid(s); return s;
25
+ }
26
+ /** Recompute on every render or restoration; never rely on interval tick counts. */
27
+ function refresh(state, now = Date.now()) {
28
+ valid(state); checkNow(now);
29
+ if (state.status !== 'running') return { ...state };
30
+ const elapsedMs = Math.min(state.durationMs, state.elapsedMs + Math.max(0, now - state.resumedAt));
31
+ if (elapsedMs >= state.durationMs) return { ...state, status: 'completed', elapsedMs, resumedAt: null };
32
+ return { ...state, elapsedMs, resumedAt: now };
33
+ }
34
+ function start(state, now = Date.now()) {
35
+ valid(state); checkNow(now);
36
+ if (state.status !== 'idle') throw new Error('Only an idle timer can start');
37
+ return { ...state, status: 'running', resumedAt: now };
38
+ }
39
+ function pause(state, now = Date.now()) {
40
+ valid(state);
41
+ if (state.status !== 'running') throw new Error('Only a running timer can pause');
42
+ const next = refresh(state, now);
43
+ return next.status === 'completed' ? next : { ...next, status: 'paused', resumedAt: null };
44
+ }
45
+ function resume(state, now = Date.now()) {
46
+ valid(state); checkNow(now);
47
+ if (state.status !== 'paused') throw new Error('Only a paused timer can resume');
48
+ return { ...state, status: 'running', resumedAt: now };
49
+ }
50
+ function endEarly(state, now = Date.now()) {
51
+ valid(state); checkNow(now);
52
+ if (!['running', 'paused'].includes(state.status)) throw new Error('Only an active timer can end');
53
+ const next = refresh(state, now);
54
+ return next.status === 'completed' ? next : { ...next, status: 'ended', resumedAt: null };
55
+ }
56
+ function progress(state, now = Date.now()) {
57
+ const s = refresh(state, now);
58
+ return { state: s, fraction: s.elapsedMs / s.durationMs, remainingMs: s.durationMs - s.elapsedMs };
59
+ }
60
+ function restore(json, now = Date.now()) {
61
+ let value;
62
+ try { value = JSON.parse(json); } catch { throw new TypeError('Invalid saved focus JSON'); }
63
+ return refresh(value, now);
64
+ }
65
+
66
+ // Extracted from user-provided EaseDraw mini-tool v1.0.1.
67
+ const VS='attribute vec2 a;varying vec2 v;void main(){v=vec2(a.x*.5+.5,.5-a.y*.5);gl_Position=vec4(a,0.,1.);}';
68
+ const FSH=`precision highp float;varying vec2 v;uniform sampler2D uX,uC;uniform vec4 uq;uniform vec4 uR[6];
69
+ vec3 X(vec4 q){return texture2D(uX,q.xy+v*q.zw).rgb;}
70
+ float rv(float T,float q,float w){return smoothstep(T,T+w,q*(1.+w));}
71
+ void main(){vec3 pa=X(uR[0]);float gr=dot(pa,vec3(.333))-.93;vec4 T=vec4(X(uR[4]),X(uR[5]).r)+gr*.9;
72
+ float r0=rv(T.r,uq.x,.05),r1=rv(T.g,uq.y,.07),r2=rv(T.b,uq.z,.06),r3=rv(T.a,uq.w,.11);vec3 c=pa;
73
+ c=mix(c,X(uR[1]),r0);c=mix(c,X(uR[2]),r1);c*=1.-.10*r1*(1.-r1)*4.;c=mix(c,X(uR[3]),r2);c*=1.-.08*r2*(1.-r2)*4.;c=mix(c,texture2D(uC,v).rgb,r3);gl_FragColor=vec4(c,1.);}`;
74
+ const stg=[[0,.22],[.15,.46],[.38,.72],[.64,1]];const IMC={};
75
+ const li=u=>IMC[u]||(IMC[u]=new Promise((r,j)=>{const i=new Image();i.decoding='async';i.onload=()=>r(i);i.onerror=()=>{delete IMC[u];j(u)};i.src=u}));
76
+ const atR=id=>{const [w,h,tw,th]=AT[id],AW=2*w+8,AH=2*h+th+12,px=[[2,2,w,h],[w+6,2,w,h],[2,h+6,w,h],[w+6,h+6,w,h],[2,2*h+10,tw,th],[tw+6,2*h+10,tw,th]];return {px,uv:new Float32Array([].concat(...px.map(r=>[r[0]/AW,r[1]/AH,r[2]/AW,r[3]/AH])))}};
77
+ const assets=id=>Promise.all([li(ASSETS[id].x),li(ASSETS[id].c)]).then(I=>{I.rr=atR(id);return I});
78
+ function GLP(cv,fb){let gl=null,U=null,UR=null,RR=null,TX=[],c2=null,ims=null,lost=false,lostN=0,lastP=0;
79
+ const init=()=>{gl=null;U=null;try{gl=cv.getContext('webgl',{preserveDrawingBuffer:true,antialias:false,premultipliedAlpha:false})}catch(e){}
80
+ if(gl){const sh=(t,s)=>{const o=gl.createShader(t);gl.shaderSource(o,s);gl.compileShader(o);return o},pr=gl.createProgram();gl.attachShader(pr,sh(gl.VERTEX_SHADER,VS));gl.attachShader(pr,sh(gl.FRAGMENT_SHADER,FSH));gl.linkProgram(pr);
81
+ if(!gl.getProgramParameter(pr,gl.LINK_STATUS))gl=null;else{gl.useProgram(pr);const b=gl.createBuffer();gl.bindBuffer(gl.ARRAY_BUFFER,b);gl.bufferData(gl.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),gl.STATIC_DRAW);const l=gl.getAttribLocation(pr,'a');gl.enableVertexAttribArray(l);gl.vertexAttribPointer(l,2,gl.FLOAT,false,0,0);['uX','uC'].forEach((k,i)=>gl.uniform1i(gl.getUniformLocation(pr,k),i));U=gl.getUniformLocation(pr,'uq');UR=gl.getUniformLocation(pr,'uR')}}};init();
82
+ if(!gl)c2=cv.getContext('2d');
83
+ else{cv.addEventListener('webglcontextlost',e=>{e.preventDefault();lost=true;lostN++;if(fb)cv.style.background=`url(${fb}) center/cover`},false);cv.addEventListener('webglcontextrestored',()=>{if(lostN>3)return;init();if(!gl)return;lost=false;cv.style.background='';gl.viewport(0,0,cv.width,cv.height);if(ims){TX=ims.map((im,i)=>tex(im,i));if(RR)gl.uniform4fv(UR,RR.uv)}draw(lastP)},false)}
84
+ const tex=(im,u)=>{const t=gl.createTexture();gl.activeTexture(gl.TEXTURE0+u);gl.bindTexture(gl.TEXTURE_2D,t);gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,false);gl.pixelStorei(gl.UNPACK_COLORSPACE_CONVERSION_WEBGL,gl.NONE);gl.texImage2D(gl.TEXTURE_2D,0,gl.RGBA,gl.RGBA,gl.UNSIGNED_BYTE,im);[gl.TEXTURE_MIN_FILTER,gl.TEXTURE_MAG_FILTER].forEach(p=>gl.texParameteri(gl.TEXTURE_2D,p,gl.LINEAR));[gl.TEXTURE_WRAP_S,gl.TEXTURE_WRAP_T].forEach(p=>gl.texParameteri(gl.TEXTURE_2D,p,gl.CLAMP_TO_EDGE));return t};
85
+ const draw=p=>{lastP=p;const q=stg.map(([a,b])=>Math.max(0,Math.min(1,(p-a)/(b-a))));if(gl&&!lost){gl.uniform4f(U,q[0],q[1],q[2],q[3]);gl.drawArrays(gl.TRIANGLE_STRIP,0,4)}else if(c2&&ims){const W=cv.width,H=cv.height;const px=RR.px,dr=(k,a)=>{c2.globalAlpha=a;if(k<4){const r=px[k];c2.drawImage(ims[0],r[0],r[1],r[2],r[3],0,0,W,H)}else c2.drawImage(ims[1],0,0,W,H)};dr(0,1);for(let k=0;k<4;k++)if(q[k]>0)dr(k+1,q[k]);c2.globalAlpha=1}};
86
+ return {set(I){ims=I;RR=I.rr;if(gl&&!lost){TX.forEach(t=>gl.deleteTexture(t));TX=I.map((im,i)=>tex(im,i));gl.uniform4fv(UR,RR.uv)}},
87
+ size(w,h){if(cv.width!==w||cv.height!==h){cv.width=w;cv.height=h}if(gl&&!lost)gl.viewport(0,0,w,h)},
88
+ draw,
89
+ lose(){try{const x=gl&&gl.getExtension('WEBGL_lose_context');x&&x.loseContext()}catch(e){}gl=null}}}
90
+
91
+
92
+ const KEY = 'easedraw.dsh.focus.v1';
93
+ const ids = Object.keys(D);
94
+ const fresh = () => ({ selected: ids[0], minutes: 25, timer: null, gallery: [] });
95
+ function readSaved() {
96
+ try {
97
+ const raw = localStorage.getItem(KEY);
98
+ if (!raw) return {data: fresh(), error: ''};
99
+ const s = JSON.parse(raw);
100
+ if (!s || !D[s.selected] || ![5,15,25,45].includes(s.minutes) || !Array.isArray(s.gallery)) throw Error('invalid');
101
+ if (s.timer) { if (s.timer.status === 'idle' || !D[s.timer.artworkId]) throw Error('invalid artwork'); refresh(s.timer, Date.now()); }
102
+ s.gallery = s.gallery.filter(x => x && D[x.artworkId] && Number.isFinite(x.at) && Number.isFinite(x.durationMs) && x.durationMs > 0).slice(-100);
103
+ return {data: s, error: ''};
104
+ } catch { return {data: fresh(), error: '读取本地记录失败;请先备份浏览器数据。'}; }
105
+ }
106
+ const css = `
107
+ .ed-root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#382f26;font-size:14px;line-height:1.45}
108
+ .ed-root *{box-sizing:border-box}.ed-root button{font:inherit;cursor:pointer}.ed-root button:focus-visible{outline:2px solid #a67e46;outline-offset:2px}
109
+ .ed-launch{display:flex;align-items:center;gap:9px;min-height:40px;padding:5px 11px;border:1px solid #d8cbb9;border-radius:9px;background:#f7f2e9;color:#493d30}
110
+ .ed-launch:hover{background:#eee4d5}.ed-seal{display:inline-grid;place-items:center;background:#a7372b;color:white;width:25px;height:25px;border-radius:3px;font-family:serif;font-size:15px}
111
+ .ed-time{font-variant-numeric:tabular-nums;color:#775d3e}.ed-panel{width:min(380px,100%);max-height:min(68vh,720px);overflow-y:auto;margin:0 0 8px;padding:18px;background:#f7f2e9;border:1px solid #d8cbb9;border-radius:12px;box-shadow:0 6px 24px #30201417}
112
+ .ed-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:14px}.ed-eyebrow{font-size:11px;letter-spacing:.16em;color:#7b6d5c}.ed-title{font-family:Georgia,"Songti SC",serif;font-size:21px;margin:3px 0 0;font-weight:600}.ed-close{background:transparent;border:0;color:#62584c;min-width:36px;min-height:36px;font-size:19px}
113
+ .ed-artwrap{display:flex;justify-content:center;align-items:center;padding:15px;background:#eae2d4;border-radius:4px;min-height:165px}.ed-frame{display:block;padding:5px;border:3px solid #8a6941;background:#f8f5ee;box-shadow:0 3px 10px #372b1b26;max-width:100%}.ed-canvas{display:block;width:auto;height:auto;max-width:100%;max-height:210px;background:#efe8dc}
114
+ .ed-label{display:flex;justify-content:space-between;gap:12px;align-items:start;margin:11px 0 16px}.ed-name{font-family:Georgia,"Songti SC",serif;font-size:16px;font-weight:600}.ed-author,.ed-caption{font-size:12px;color:#6d6051}.ed-caption{margin-top:2px;text-align:right}
115
+ .ed-row{display:flex;gap:6px;flex-wrap:wrap}.ed-row button,.ed-secondary{min-height:36px;padding:5px 11px;border:1px solid #cfc2ae;border-radius:7px;background:#fcf9f4;color:#493d30}.ed-row button[aria-pressed=true]{background:#493d30;color:#fff;border-color:#493d30}.ed-row button:disabled{opacity:.45;cursor:not-allowed}
116
+ .ed-search{width:100%;min-height:36px;padding:6px 9px;border:1px solid #cfc2ae;border-radius:7px;background:#fcf9f4;color:#382f26;font:inherit}.ed-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:210px;overflow:auto;padding:3px 1px}.ed-pick{min-width:0;padding:5px;border:1px solid #d8cbb9;border-radius:6px;background:#fcf9f4;color:#493d30;text-align:left}.ed-pick[aria-pressed=true]{border:2px solid #8a6941;padding:4px}.ed-pick img{display:block;width:100%;height:64px;object-fit:cover;border-radius:3px}.ed-pick span{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.ed-filter-row{display:flex;gap:6px;margin:7px 0}.ed-filter-row select{min-width:95px;border:1px solid #cfc2ae;border-radius:7px;background:#fcf9f4;color:#382f26}.ed-section{margin-top:14px}.ed-section-label{font-size:12px;color:#70614f;margin-bottom:7px}.ed-main{width:100%;min-height:42px;margin-top:16px;border:0;border-radius:7px;background:#382f26;color:#fff;font-weight:600}.ed-main:hover{background:#57483a}.ed-actions{display:flex;gap:8px;margin-top:15px}.ed-actions button{flex:1;min-height:40px;border-radius:7px}.ed-actions .ed-main{margin:0}
117
+ .ed-status{display:flex;justify-content:space-between;align-items:center;gap:6px;color:#6d6051}.ed-count{font-size:25px;letter-spacing:.06em;font-variant-numeric:tabular-nums;color:#382f26}.ed-track{height:3px;background:#ddd0be;margin-top:10px}.ed-fill{height:100%;background:#a78350;transition:width .4s ease}
118
+ .ed-gallery-toggle{margin:14px 0 0;padding:0;border:0;background:none;text-decoration:underline;color:#67533b}.ed-gallery{margin-top:12px;border-top:1px solid #dfd4c4;padding-top:8px;max-height:145px;overflow:auto}.ed-record{display:flex;justify-content:space-between;gap:8px;padding:5px 0;color:#5e5345}.ed-note{font-size:12px;color:#6d6051;margin:11px 0 0}.ed-error{font-size:12px;color:#9f3025;margin:8px 0}.ed-error:not(:empty){padding:7px;border:1px solid #c77b70;border-radius:6px;background:#fff5f2}
119
+ @media(prefers-reduced-motion:reduce){.ed-fill{transition:none}}
120
+ `;
121
+ function Painting({id, fraction}) {
122
+ const ref=React.useRef(null), painter=React.useRef(null), fallback=React.useRef(false), current=React.useRef(fraction);
123
+ current.current=fraction;
124
+ React.useEffect(()=>{
125
+ let alive=true; const cv=ref.current; let obj;
126
+ (async()=>{try{
127
+ obj=GLP(cv, ASSETS[id].c); const ims=await assets(id);
128
+ if(!alive){obj.lose();return;} obj.set(ims);
129
+ const width=400, height=Math.max(2,Math.round(width/D[id].r)); obj.size(width,height);
130
+ painter.current=obj; obj.draw(current.current);
131
+ }catch(e){if(alive){cv.style.backgroundImage=`url(${ASSETS[id].c})`;cv.style.backgroundSize='cover';fallback.current=true;cv.style.clipPath=`inset(${100-current.current*100}% 0 0)`;}}})();
132
+ return ()=>{alive=false;painter.current=null;fallback.current=false;if(obj)obj.lose();};
133
+ },[id]);
134
+ React.useEffect(()=>{if(painter.current) painter.current.draw(fraction);else if(fallback.current && ref.current)ref.current.style.clipPath=`inset(${100-fraction*100}% 0 0)`;},[id,fraction]);
135
+ return h('div',{className:'ed-artwrap'},h('div',{className:'ed-frame'},h('canvas',{ref,className:'ed-canvas',role:'img','aria-label':`${D[id].n},绘画进度 ${Math.round(fraction*100)}%`,style:{aspectRatio:String(D[id].r)}})));
136
+ }
137
+ function FocusWidget(){
138
+ const initial=React.useRef(null); if(!initial.current)initial.current=readSaved();
139
+ const [data,setData]=React.useState(initial.current.data), [error,setError]=React.useState(initial.current.error);
140
+ const [open,setOpen]=React.useState(false),[gallery,setGallery]=React.useState(false),[confirm,setConfirm]=React.useState(false),[now,setNow]=React.useState(Date.now());
141
+ const [category,setCategory]=React.useState('全部'),[search,setSearch]=React.useState('');
142
+ const categories=['全部',...new Set(ids.map(id=>D[id].c).filter(Boolean))];
143
+ const q=search.trim().toLocaleLowerCase();
144
+ const filtered=ids.filter(id=>(category==='全部'||D[id].c===category)&&(!q||`${D[id].n} ${D[id].a}`.toLocaleLowerCase().includes(q)));
145
+ const dataRef=React.useRef(data), storageBlocked=React.useRef(Boolean(initial.current.error));dataRef.current=data;
146
+ const persist=(next)=>{dataRef.current=next;setData(next);if(storageBlocked.current){setError('本地记录无法读取,已停止写入以保护原数据;请先备份并修复存储。');return;}try{localStorage.setItem(KEY,JSON.stringify(next));setError(''); window.dispatchEvent(new Event('easedraw-dsh-update'));}catch{setError('无法保存到本地,关闭后记录可能丢失。');}};
147
+ React.useEffect(()=>{const sync=()=>{const loaded=readSaved();if(!loaded.error){storageBlocked.current=false;setData(loaded.data);setError('')}else{storageBlocked.current=true;setError(loaded.error)}};window.addEventListener('storage',sync);window.addEventListener('easedraw-dsh-update',sync);return()=>{window.removeEventListener('storage',sync);window.removeEventListener('easedraw-dsh-update',sync)}},[]);
148
+ React.useEffect(()=>{if(data.timer?.status!=='running')return;const tick=()=>setNow(Date.now());tick();const t=setInterval(tick,1000);document.addEventListener('visibilitychange',tick);return()=>{clearInterval(t);document.removeEventListener('visibilitychange',tick)}},[data.timer?.status,data.timer?.resumedAt]);
149
+ let timer=data.timer; let p=timer?progress(timer,now):null;
150
+ React.useEffect(()=>{if(timer?.status==='running' && p?.state.status==='completed')persist({...dataRef.current,timer:p.state})},[timer?.status,p?.state.status]);
151
+ const state=p?.state, status=state?.status||'idle', active=status==='running'||status==='paused';
152
+ const shownId=state?.artworkId||data.selected, fraction=state? p.fraction : 0;
153
+ const clock=(ms)=>{const s=Math.ceil(ms/1000);return `${String(Math.floor(s/60)).padStart(2,'0')}:${String(s%60).padStart(2,'0')}`};
154
+ const choose=(id)=>persist({...dataRef.current,selected:id});
155
+ const startSession=()=>{const t=start(createFocus({artworkId:data.selected,durationMs:data.minutes*60000}),Date.now());persist({...dataRef.current,timer:t});setNow(Date.now())};
156
+ const change=(fn)=>{persist({...dataRef.current,timer:fn(dataRef.current.timer,Date.now())});setNow(Date.now())};
157
+ const save=()=>{const s=dataRef.current;if(!s.timer || refresh(s.timer,Date.now()).status!=='completed')return; const record={artworkId:s.timer.artworkId,at:Date.now(),durationMs:s.timer.durationMs};persist({...s,timer:null,gallery:[...s.gallery,record].slice(-100)});setGallery(true)};
158
+ const caption=status==='running'?'画作正在慢慢完成':status==='paused'?'已暂停':status==='completed'?'这一刻,画完了':status==='ended'?'本次专注已结束':'专注多久,画就画多久';
159
+ return h('div',{className:'ed-root'},h('style',null,css),
160
+ open && h('section',{className:'ed-panel','aria-label':'逸刻专注面板'},
161
+ h('div',{className:'ed-head'},h('div',null,h('div',{className:'ed-eyebrow'},'LUCKY & EASE · EASEDRAW'),h('div',{className:'ed-title'},'一幅画的时间')),h('button',{className:'ed-close',onClick:()=>setOpen(false),'aria-label':'收起逸刻'},'×')),
162
+ h(Painting,{key:shownId,id:shownId,fraction}),
163
+ h('div',{className:'ed-label'},h('div',null,h('div',{className:'ed-name'},D[shownId].n),h('div',{className:'ed-author'},`${D[shownId].a} · ${D[shownId].y}`)),h('div',{className:'ed-caption'},caption)),
164
+ !state && h(React.Fragment,null,
165
+ h('div',{className:'ed-section'},h('div',{className:'ed-section-label'},`选择画作 · ${filtered.length} / ${ids.length}`),
166
+ h('div',{className:'ed-filter-row'},h('select',{'aria-label':'画作分类',value:category,onChange:e=>setCategory(e.target.value)},...categories.map(c=>h('option',{key:c,value:c},c))),h('input',{className:'ed-search',type:'search','aria-label':'搜索画名或画家',placeholder:'搜索画名或画家',value:search,onChange:e=>setSearch(e.target.value)})),
167
+ h('div',{className:'ed-picker-grid','aria-label':'画作列表'},...filtered.map(id=>h('button',{className:'ed-pick',key:id,'aria-label':`${D[id].n} · ${D[id].a}`,'aria-pressed':data.selected===id,onClick:()=>choose(id)},h('img',{src:ASSETS[id].c,loading:'lazy',alt:''}),h('span',null,D[id].n)))),
168
+ filtered.length===0&&h('p',{className:'ed-note'},'没有找到画作,请换个关键词。')),
169
+
170
+ h('div',{className:'ed-section'},h('div',{className:'ed-section-label'},'选择专注时间'),h('div',{className:'ed-row'},...[5,15,25,45].map(m=>h('button',{key:m,'aria-pressed':data.minutes===m,onClick:()=>persist({...dataRef.current,minutes:m})},`${m} 分钟`)))),
171
+ h('button',{className:'ed-main',onClick:startSession},'开始专注')),
172
+ state && h(React.Fragment,null,
173
+ h('div',{className:'ed-status'},h('span',null,status==='completed'?'已完成':status==='ended'?'未完成':status==='paused'?'已暂停':'剩余时间'),h('span',{className:'ed-count'},clock(p.remainingMs))),
174
+ h('div',{className:'ed-track',role:'progressbar','aria-label':'绘画进度','aria-valuemin':0,'aria-valuemax':100,'aria-valuenow':Math.round(fraction*100)},h('div',{className:'ed-fill',style:{width:`${fraction*100}%`}})),
175
+ active && !confirm && h('div',{className:'ed-actions'},h('button',{className:'ed-main',onClick:()=>change(status==='running'?pause:resume)},status==='running'?'暂停':'继续'),h('button',{className:'ed-secondary',onClick:()=>setConfirm(true)},'结束')),
176
+ active && confirm && h(React.Fragment,null,h('p',{className:'ed-note'},'提前结束不会收藏本次画作。'),h('div',{className:'ed-actions'},h('button',{className:'ed-secondary',onClick:()=>setConfirm(false)},'返回'),h('button',{className:'ed-main',onClick:()=>{change(endEarly);setConfirm(false)}},'确认结束'))),
177
+ status==='completed' && h('button',{className:'ed-main',onClick:save},'收藏到展厅'),
178
+ status==='ended' && h('button',{className:'ed-main',onClick:()=>persist({...dataRef.current,timer:null})},'返回选画')),
179
+ h('button',{className:'ed-gallery-toggle',onClick:()=>setGallery(!gallery),'aria-expanded':gallery},`我的展厅 · ${data.gallery.length}`),
180
+ gallery && h('div',{className:'ed-gallery'},data.gallery.length?data.gallery.slice().reverse().map((x,i)=>h('div',{className:'ed-record',key:`${x.at}-${i}`},h('span',null,D[x.artworkId].n),h('span',null,`${new Date(x.at).toLocaleDateString()} · ${Math.round(x.durationMs/60000)} 分钟`))):h('p',{className:'ed-note'},'完成第一幅画后,它会挂在这里。')),
181
+ h('p',{className:'ed-note'},'记录仅保存在当前环境;清除本地数据可能丢失。'),error && h('p',{className:'ed-error',role:'alert'},error)
182
+ ),
183
+ h('button',{className:'ed-launch',onClick:()=>setOpen(!open),'aria-expanded':open},h('span',{className:'ed-seal','aria-hidden':true},'逸'),h('span',null,'逸刻 · 专注'),active && h('span',{className:'ed-time'},clock(p.remainingMs)),status==='completed'&&h('span',{className:'ed-time'},'已完成'))
184
+ );
185
+ }
186
+ return {inject:['slots'], apply(ctx) {ctx.slots.inject('conversation.input.dock',()=>ctx.slots.register({name:'conversation.input.dock',id:'easedraw-focus',order:5},FocusWidget));}};
187
+
188
+ }
189
+ });
@@ -0,0 +1,4 @@
1
+ - insert:
2
+ - id: easedraw-focus
3
+ name: dsh-plugin-easedraw
4
+ config: {}
package/icon.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><rect width="128" height="128" rx="22" fill="#f3eee4"/><rect x="19" y="20" width="90" height="88" rx="3" fill="#b4905e"/><rect x="24" y="25" width="80" height="78" fill="#f8f4eb"/><path d="M32 81c13-19 19-22 31-19 11 2 17-10 33-17v49H32z" fill="#8b9a8c"/><circle cx="82" cy="43" r="9" fill="#dfbd81"/><rect x="81" y="80" width="15" height="15" rx="1" fill="#a7372b"/></svg>
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ /** The client module owns the interface; no server-side services are requested. */
2
+ export function apply() {}
package/locale/en.json ADDED
@@ -0,0 +1 @@
1
+ {"meta":{"title":"EaseDraw focus","description":"Turn a focused session into a painting."}}
package/locale/zh.json ADDED
@@ -0,0 +1 @@
1
+ {"meta":{"title":"逸刻 EaseDraw","description":"让专注的时间慢慢画成一幅画。"}}
package/package.json CHANGED
@@ -1,6 +1,41 @@
1
1
  {
2
2
  "name": "dsh-plugin-easedraw",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "type": "module",
5
+ "description": "EaseDraw focus painting for DeepSeek Harness",
6
+ "exports": {
7
+ ".": "./index.js",
8
+ "./client": "./client.js",
9
+ "./locale/*.json": "./locale/*.json",
10
+ "./icon": "./icon.svg",
11
+ "./assets/*": "./lib/assets/*"
12
+ },
13
+ "files": [
14
+ "index.js",
15
+ "client.js",
16
+ "cordis.patch.yml",
17
+ "locale",
18
+ "icon.svg",
19
+ "lib/assets"
20
+ ],
21
+ "dsh": {
22
+ "bundle": {
23
+ "patch": "./cordis.patch.yml"
24
+ },
25
+ "client": {
26
+ "platform": "web",
27
+ "immediately": true,
28
+ "inject": [
29
+ "@deepseek-ai/dsh-client-ui-conversation"
30
+ ]
31
+ }
32
+ },
33
+ "scripts": {
34
+ "build": "node tools/build.mjs",
35
+ "test": "node --test"
36
+ },
37
+ "engines": {
38
+ "node": ">=20",
39
+ "dsh": ">=0.2.2-rc.5 <0.3.0"
40
+ }
41
+ }