@hina114514/chaite 1.9.3

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 (427) hide show
  1. package/README.md +143 -0
  2. package/dist/__dirname-xAmdQ8wE.mjs +13 -0
  3. package/dist/__dirname.d.ts +4 -0
  4. package/dist/__dirname.mjs +4 -0
  5. package/dist/adapters-BeZFg37c.mjs +30 -0
  6. package/dist/chunks/@anthropic-ai/sdk/index.mjs-BBdoshoG.mjs +44887 -0
  7. package/dist/chunks/@google/genai/index.mjs-CJMm4uh0.mjs +25136 -0
  8. package/dist/chunks/@karinjs/node-schedule/index.mjs-UoPXNUgp.mjs +8403 -0
  9. package/dist/chunks/@xmldom/xmldom/index.mjs-BARr5-gb.mjs +4280 -0
  10. package/dist/chunks/accepts/index.mjs-BpfWQu4-.mjs +8009 -0
  11. package/dist/chunks/agent-base/index.mjs-BZ87hIEB.mjs +199 -0
  12. package/dist/chunks/array-flatten/index.mjs-CFicqOhD.mjs +54 -0
  13. package/dist/chunks/bluebird/index.mjs-D4zFjek8.mjs +4094 -0
  14. package/dist/chunks/body-parser/index.mjs-BrUY71SQ.mjs +13756 -0
  15. package/dist/chunks/chokidar/index.mjs-BvSuth5p.mjs +1537 -0
  16. package/dist/chunks/content-disposition/index.mjs-DqMQ6Fbz.mjs +307 -0
  17. package/dist/chunks/cookie/index.mjs-CTmQWCqd.mjs +243 -0
  18. package/dist/chunks/cookie-signature/index.mjs-CIA1F6JJ.mjs +46 -0
  19. package/dist/chunks/core-util-is/index.mjs-C0h_2dGX.mjs +69 -0
  20. package/dist/chunks/cors/index.mjs-DGt6p49t.mjs +311 -0
  21. package/dist/chunks/data-uri-to-buffer/index.mjs-CLj4bast.mjs +44 -0
  22. package/dist/chunks/debug/index.mjs-BgKBSuIO.mjs +703 -0
  23. package/dist/chunks/dingbat-to-unicode/index.mjs-DjR5pQCM.mjs +7481 -0
  24. package/dist/chunks/encodeurl/index.mjs-CvPRUh2S.mjs +105 -0
  25. package/dist/chunks/escape-html/index.mjs-CeA_Z7EO.mjs +65 -0
  26. package/dist/chunks/etag/index.mjs-D58ziXwz.mjs +80 -0
  27. package/dist/chunks/express/index.mjs-CHnhA_pr.mjs +6787 -0
  28. package/dist/chunks/fetch-blob/index.mjs-Pm1zUh3g.mjs +3803 -0
  29. package/dist/chunks/formdata-node/index.mjs-B2Ji6hC0.mjs +92 -0
  30. package/dist/chunks/formdata-polyfill/index.mjs-BTkafjCT.mjs +87 -0
  31. package/dist/chunks/https-proxy-agent/index.mjs-DTZuZn-J.mjs +239 -0
  32. package/dist/chunks/immediate/index.mjs-CkWjI_b-.mjs +59 -0
  33. package/dist/chunks/isarray/index.mjs-DaT02uUW.mjs +12 -0
  34. package/dist/chunks/jszip/index.mjs-CvfsTniy.mjs +8599 -0
  35. package/dist/chunks/lop/index.mjs-BWbOMJZv.mjs +3540 -0
  36. package/dist/chunks/mammoth/index.mjs-C9xwBIgf.mjs +5081 -0
  37. package/dist/chunks/node-fetch/index.mjs-Cdihbb0Q.mjs +1446 -0
  38. package/dist/chunks/openai/index.mjs-M-HPLtaS.mjs +6691 -0
  39. package/dist/dist-C0tgywA-.mjs +8 -0
  40. package/dist/fileFromPath-CJ_N7wA9.mjs +6 -0
  41. package/dist/index.d.ts +1579 -0
  42. package/dist/index.mjs +30 -0
  43. package/dist/multipart-parser-CCl_4A7w.mjs +6 -0
  44. package/dist/rolldown-runtime-DVriDoez.mjs +43 -0
  45. package/dist/src-BjDIhdKO.mjs +5179 -0
  46. package/dist/src-DmcKtGy2.mjs +7 -0
  47. package/dist/types-6jzst6Q4.mjs +30 -0
  48. package/frontend/build/assets/ChannelFormModal-1GO2eD4m.css +1 -0
  49. package/frontend/build/assets/ChannelFormModal-B6e7ZIO6.js +5 -0
  50. package/frontend/build/assets/ChannelFormModal-CV7fs6-7.js +5 -0
  51. package/frontend/build/assets/ChannelFormModal-DBZyhZDI.css +1 -0
  52. package/frontend/build/assets/ChannelFormModal-DL0qkZX-.js +5 -0
  53. package/frontend/build/assets/ChannelFormModal-DuAAlw-8.js +5 -0
  54. package/frontend/build/assets/ChannelFormModal-Hp6Y4QBc.js +5 -0
  55. package/frontend/build/assets/ChannelFormModal-xPhm1bZd.js +5 -0
  56. package/frontend/build/assets/Checkbox-BvK-NJJX.js +105 -0
  57. package/frontend/build/assets/Checkbox-CNMr2-eQ.js +105 -0
  58. package/frontend/build/assets/Checkbox-DOJuZG8N.js +105 -0
  59. package/frontend/build/assets/Checkbox-DWREbqxa.js +105 -0
  60. package/frontend/build/assets/Checkbox-HPhUtTKu.js +105 -0
  61. package/frontend/build/assets/Checkbox-gNUlkipW.js +105 -0
  62. package/frontend/build/assets/CollapseItem-7YFuTj31.js +41 -0
  63. package/frontend/build/assets/CollapseItem-BVnC3pah.js +41 -0
  64. package/frontend/build/assets/CollapseItem-Bk7f5wCb.js +41 -0
  65. package/frontend/build/assets/CollapseItem-Calq76Jj.js +41 -0
  66. package/frontend/build/assets/CollapseItem-DOnuDO5j.js +41 -0
  67. package/frontend/build/assets/CollapseItem-fWJBGjAw.js +41 -0
  68. package/frontend/build/assets/ConversationDetailDrawer-BYG2DS4S.js +1 -0
  69. package/frontend/build/assets/ConversationDetailDrawer-BYZeaeoF.js +1 -0
  70. package/frontend/build/assets/ConversationDetailDrawer-gVn82fSx.js +1 -0
  71. package/frontend/build/assets/ConversationDetailDrawer-jtT8U08c.js +1 -0
  72. package/frontend/build/assets/ConversationDetailDrawer-m-rNIWZj.js +1 -0
  73. package/frontend/build/assets/ConversationDetailDrawer-xbhamnIs.js +1 -0
  74. package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-BRZBnJxg.js +97 -0
  75. package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-BnR3ffRY.js +97 -0
  76. package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-C0KA87GQ.js +97 -0
  77. package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-CnLM8_TJ.js +97 -0
  78. package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-CzZvhLM_.js +97 -0
  79. package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-U0BsqrL8.js +97 -0
  80. package/frontend/build/assets/DataTable-4ViTZyB6.js +457 -0
  81. package/frontend/build/assets/DataTable-B8zZmlji.js +457 -0
  82. package/frontend/build/assets/DataTable-BNjopWG3.js +457 -0
  83. package/frontend/build/assets/DataTable-CZyItGh5.js +457 -0
  84. package/frontend/build/assets/DataTable-DJj26Pzn.js +454 -0
  85. package/frontend/build/assets/DataTable-DoEbD9LL.js +457 -0
  86. package/frontend/build/assets/DynamicTags-BccLo-fc.js +1 -0
  87. package/frontend/build/assets/DynamicTags-Bmg43ONH.js +1 -0
  88. package/frontend/build/assets/DynamicTags-CyLbZ9I2.js +1 -0
  89. package/frontend/build/assets/DynamicTags-DNTdDdGA.js +1 -0
  90. package/frontend/build/assets/DynamicTags-VCyQf17w.js +1 -0
  91. package/frontend/build/assets/DynamicTags-rIgGdrL5.js +1 -0
  92. package/frontend/build/assets/Ellipsis-BST77ylS.js +187 -0
  93. package/frontend/build/assets/Ellipsis-BTz09kpN.js +187 -0
  94. package/frontend/build/assets/Ellipsis-BbsLqJtK.js +187 -0
  95. package/frontend/build/assets/Ellipsis-BdMplm4D.js +187 -0
  96. package/frontend/build/assets/Ellipsis-C3lHtvjF.js +187 -0
  97. package/frontend/build/assets/Ellipsis-CEbBdn2n.js +187 -0
  98. package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-B5o0iz7y.js +1 -0
  99. package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-BTf_XpHq.js +1 -0
  100. package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-DFWrNfDB.js +1 -0
  101. package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-DTFtcs8p.js +1 -0
  102. package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-QKywH0iL.js +1 -0
  103. package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-q7wMY1La.js +1 -0
  104. package/frontend/build/assets/FormItem-BFYeYoTE.js +110 -0
  105. package/frontend/build/assets/FormItem-B_V_gknG.js +110 -0
  106. package/frontend/build/assets/FormItem-C2ziP3u7.js +110 -0
  107. package/frontend/build/assets/FormItem-CDsgx_ab.js +110 -0
  108. package/frontend/build/assets/FormItem-D5nKwNGe.js +110 -0
  109. package/frontend/build/assets/FormItem-DcKuwtDH.js +110 -0
  110. package/frontend/build/assets/FormItemGridItem-BiRqZE_B.js +1 -0
  111. package/frontend/build/assets/FormItemGridItem-CEbJWTJd.js +1 -0
  112. package/frontend/build/assets/FormItemGridItem-DaKl8_2L.js +1 -0
  113. package/frontend/build/assets/FormItemGridItem-DkQ8mrOt.js +1 -0
  114. package/frontend/build/assets/FormItemGridItem-YEC3z4HO.js +1 -0
  115. package/frontend/build/assets/FormItemGridItem-cjYQS3d8.js +1 -0
  116. package/frontend/build/assets/Grid-0zzIexHr.js +1 -0
  117. package/frontend/build/assets/Grid-BNlPkf-g.js +1 -0
  118. package/frontend/build/assets/Grid-CmLEm3vL.js +1 -0
  119. package/frontend/build/assets/Grid-CqcXqV8U.js +1 -0
  120. package/frontend/build/assets/Grid-DmeNHOJx.js +1 -0
  121. package/frontend/build/assets/Grid-WK2vuhLP.js +1 -0
  122. package/frontend/build/assets/Image-CMvlvuJp.js +132 -0
  123. package/frontend/build/assets/Image-CbdTV78X.js +132 -0
  124. package/frontend/build/assets/Image-Cf2fbKtf.js +132 -0
  125. package/frontend/build/assets/Image-Crg2QYhk.js +132 -0
  126. package/frontend/build/assets/Image-D53Xywez.js +132 -0
  127. package/frontend/build/assets/Image-tNy1v7mL.js +132 -0
  128. package/frontend/build/assets/InputNumber-BjfLyebn.js +13 -0
  129. package/frontend/build/assets/InputNumber-BtSrvYnH.js +13 -0
  130. package/frontend/build/assets/InputNumber-BxeR-3jl.js +13 -0
  131. package/frontend/build/assets/InputNumber-C7hKPk7P.js +13 -0
  132. package/frontend/build/assets/InputNumber-CbRGvPDs.js +13 -0
  133. package/frontend/build/assets/InputNumber-qiteD5Uu.js +13 -0
  134. package/frontend/build/assets/MessageContentCard-333YPcPx.js +1 -0
  135. package/frontend/build/assets/MessageContentCard-B0-LvWuB.js +1 -0
  136. package/frontend/build/assets/MessageContentCard-C2uRLdgO.js +1 -0
  137. package/frontend/build/assets/MessageContentCard-CjL6sc3W.js +1 -0
  138. package/frontend/build/assets/MessageContentCard-D3wLdleV.css +1 -0
  139. package/frontend/build/assets/MessageContentCard-DQ6w5avD.css +1 -0
  140. package/frontend/build/assets/MessageContentCard-DRoS4fsn.js +1 -0
  141. package/frontend/build/assets/MessageContentCard-DRsw0lK-.js +1 -0
  142. package/frontend/build/assets/Popconfirm-DsC1UchR.js +16 -0
  143. package/frontend/build/assets/Popconfirm-wmBfNL4Y.js +16 -0
  144. package/frontend/build/assets/PresetFormModal-B87TaT8J.js +1 -0
  145. package/frontend/build/assets/PresetFormModal-BpleAL8Z.js +1 -0
  146. package/frontend/build/assets/PresetFormModal-BrNCyqXq.css +1 -0
  147. package/frontend/build/assets/PresetFormModal-D6bXLlH2.css +1 -0
  148. package/frontend/build/assets/PresetFormModal-D8RNddGW.css +1 -0
  149. package/frontend/build/assets/PresetFormModal-DZlJ1Vcp.css +1 -0
  150. package/frontend/build/assets/PresetFormModal-Dah-5WHj.js +1 -0
  151. package/frontend/build/assets/PresetFormModal-DepNynU1.js +1 -0
  152. package/frontend/build/assets/PresetFormModal-Diebn4cS.js +1 -0
  153. package/frontend/build/assets/PresetFormModal-Dol9eToM.js +1 -0
  154. package/frontend/build/assets/PresetFormModal-ah6zWfbB.css +1 -0
  155. package/frontend/build/assets/ProcessorFormModal-BLiL3tFS.js +1 -0
  156. package/frontend/build/assets/ProcessorFormModal-C4rqrypu.js +1 -0
  157. package/frontend/build/assets/ProcessorFormModal-D9X5zzKG.js +1 -0
  158. package/frontend/build/assets/ProcessorFormModal-Ik7zSGUU.js +1 -0
  159. package/frontend/build/assets/ProcessorFormModal-Q5ARXwwU.js +1 -0
  160. package/frontend/build/assets/ProcessorFormModal-vpoqf_VP.js +1 -0
  161. package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-BK03vxpt.js +42 -0
  162. package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-D8NYnQ0b.js +42 -0
  163. package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-DKnpVb21.js +42 -0
  164. package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-DQayqXcu.js +42 -0
  165. package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-EUAgxSFF.js +42 -0
  166. package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-HZQFntw0.js +42 -0
  167. package/frontend/build/assets/Spin-BP0yPWNS.js +43 -0
  168. package/frontend/build/assets/Spin-C2G3wcnB.js +43 -0
  169. package/frontend/build/assets/Spin-C7sqRNqw.js +43 -0
  170. package/frontend/build/assets/Spin-Cy3cVx8W.js +43 -0
  171. package/frontend/build/assets/Spin-UrFjnOlY.js +43 -0
  172. package/frontend/build/assets/Spin-yYcNW-yl.js +43 -0
  173. package/frontend/build/assets/ToolFormModal-CVZFxPxz.js +1 -0
  174. package/frontend/build/assets/ToolFormModal-CgHH9Bbh.js +1 -0
  175. package/frontend/build/assets/ToolFormModal-D7NFHjzM.js +1 -0
  176. package/frontend/build/assets/ToolFormModal-DpVk5ooz.js +1 -0
  177. package/frontend/build/assets/ToolFormModal-DsS34Jdc.js +1 -0
  178. package/frontend/build/assets/ToolFormModal-hx-a_w1d.js +1 -0
  179. package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-Biq3KQMr.js +51 -0
  180. package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-DAbXNKv-.js +51 -0
  181. package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-DGdJ6txC.js +51 -0
  182. package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-QIhGuSJV.js +51 -0
  183. package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-sVSPLzuy.js +51 -0
  184. package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-yH3HeP81.js +51 -0
  185. package/frontend/build/assets/ToolGroupFormModal-2uJQDkUz.js +1 -0
  186. package/frontend/build/assets/ToolGroupFormModal-B-OxsC_e.js +1 -0
  187. package/frontend/build/assets/ToolGroupFormModal-CXbSBPSI.js +1 -0
  188. package/frontend/build/assets/ToolGroupFormModal-CeF3hW-I.js +1 -0
  189. package/frontend/build/assets/ToolGroupFormModal-DfEZcYi7.js +1 -0
  190. package/frontend/build/assets/ToolGroupFormModal-DvGS2rQd.js +1 -0
  191. package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-AsEJ8jCe.js +146 -0
  192. package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-B5V2XNND.js +146 -0
  193. package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-BYmI5807.js +146 -0
  194. package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-C32gc6LQ.js +146 -0
  195. package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-CRwhppLH.js +146 -0
  196. package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-Cz49lSiC.js +146 -0
  197. package/frontend/build/assets/TriggerFormModal-B9hL6DT2.js +1 -0
  198. package/frontend/build/assets/TriggerFormModal-D6tlqZPa.js +1 -0
  199. package/frontend/build/assets/TriggerFormModal-DngyRFuZ.js +1 -0
  200. package/frontend/build/assets/TriggerFormModal-jUjJ3cpY.js +1 -0
  201. package/frontend/build/assets/TriggerFormModal-zyHfq9gk.js +1 -0
  202. package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-65eiY_Fl.js +15 -0
  203. package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-BDVxuECo.js +15 -0
  204. package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-BGdRzXOm.js +15 -0
  205. package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-Bq6N6Y6d.js +15 -0
  206. package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-DPcB1irn.js +15 -0
  207. package/frontend/build/assets/add-one-BaGYp8TD.js +1 -0
  208. package/frontend/build/assets/add-one-CTqCiftQ.js +1 -0
  209. package/frontend/build/assets/add-one-DBohvXa7.js +1 -0
  210. package/frontend/build/assets/add-one-DQqaMb3g.js +1 -0
  211. package/frontend/build/assets/add-one-DT3qGnwW.js +1 -0
  212. package/frontend/build/assets/add-one-DenQ1X6U.js +1 -0
  213. package/frontend/build/assets/channels-5BB_92I-.js +1 -0
  214. package/frontend/build/assets/channels-C2i9C4LP.js +1 -0
  215. package/frontend/build/assets/channels-C53UiHV8.js +1 -0
  216. package/frontend/build/assets/channels-Cm8UM1Z7.js +1 -0
  217. package/frontend/build/assets/channels-DdlEEU3s.js +1 -0
  218. package/frontend/build/assets/channels-DzKbsjiA.js +1 -0
  219. package/frontend/build/assets/cloudy-BnletBC6.js +1 -0
  220. package/frontend/build/assets/cloudy-C02z4bvP.js +1 -0
  221. package/frontend/build/assets/cloudy-DCLcLr7j.js +1 -0
  222. package/frontend/build/assets/cloudy-DEHW5vHA.js +1 -0
  223. package/frontend/build/assets/cloudy-MrNAszHw.js +1 -0
  224. package/frontend/build/assets/cloudy-zp1Y9L1v.js +1 -0
  225. package/frontend/build/assets/default-resource.png +0 -0
  226. package/frontend/build/assets/download-C2161hUv.js +1 -0
  227. package/frontend/build/assets/error-403-VPEqmg7m.svg +1 -0
  228. package/frontend/build/assets/error-404-DLMSXL2R.svg +1 -0
  229. package/frontend/build/assets/error-500-C1R4JvdT.svg +1 -0
  230. package/frontend/build/assets/gemini-full-DjWArg1A.png +0 -0
  231. package/frontend/build/assets/headers-CYAAtr6C.js +16 -0
  232. package/frontend/build/assets/headers-CiEBSHa2.js +16 -0
  233. package/frontend/build/assets/headers-D9Kcnpmr.js +16 -0
  234. package/frontend/build/assets/headers-PaTXxtPR.js +16 -0
  235. package/frontend/build/assets/headers-UoeXy2eZ.js +16 -0
  236. package/frontend/build/assets/headers-VVIzblQ_.js +16 -0
  237. package/frontend/build/assets/index--eQYnbum.js +1 -0
  238. package/frontend/build/assets/index-03UGSOxl.js +3022 -0
  239. package/frontend/build/assets/index-2VSakRqN.js +1 -0
  240. package/frontend/build/assets/index-2WhMzyiQ.js +1 -0
  241. package/frontend/build/assets/index-2_Tj01eS.js +1 -0
  242. package/frontend/build/assets/index-2ds3nwBz.js +1 -0
  243. package/frontend/build/assets/index-5HLgPZyA.js +1 -0
  244. package/frontend/build/assets/index-A-Nxva_P.js +1 -0
  245. package/frontend/build/assets/index-AOaD5c69.css +1 -0
  246. package/frontend/build/assets/index-AxmlVWLb.js +88 -0
  247. package/frontend/build/assets/index-B1vc1sYC.js +88 -0
  248. package/frontend/build/assets/index-B2xcn1Zp.js +88 -0
  249. package/frontend/build/assets/index-B3vwplQQ.js +1 -0
  250. package/frontend/build/assets/index-B3xgRJTP.js +1 -0
  251. package/frontend/build/assets/index-B5DOGUIX.js +1 -0
  252. package/frontend/build/assets/index-B6OH0R7T.js +1 -0
  253. package/frontend/build/assets/index-B84-YkMr.js +1 -0
  254. package/frontend/build/assets/index-BEeRPoRP.css +1 -0
  255. package/frontend/build/assets/index-BG6BPhzo.js +1 -0
  256. package/frontend/build/assets/index-BITQakTn.js +1 -0
  257. package/frontend/build/assets/index-BMLd3diZ.js +1 -0
  258. package/frontend/build/assets/index-BVn0o2ft.js +1 -0
  259. package/frontend/build/assets/index-BWa7FUv_.css +1 -0
  260. package/frontend/build/assets/index-BX8jlXqW.js +1 -0
  261. package/frontend/build/assets/index-BfkNMt-Z.js +4 -0
  262. package/frontend/build/assets/index-BiTjEGM3.js +1 -0
  263. package/frontend/build/assets/index-BjIbFF1J.css +1 -0
  264. package/frontend/build/assets/index-BjlhqqjK.js +1 -0
  265. package/frontend/build/assets/index-BnFsJO-x.css +1 -0
  266. package/frontend/build/assets/index-BnLYNBvb.js +34 -0
  267. package/frontend/build/assets/index-BpyNu5uz.css +1 -0
  268. package/frontend/build/assets/index-Bq8g4Sjx.js +34 -0
  269. package/frontend/build/assets/index-BqnNVMWz.js +1 -0
  270. package/frontend/build/assets/index-BqvhG25P.js +1 -0
  271. package/frontend/build/assets/index-BxVOuJCR.js +88 -0
  272. package/frontend/build/assets/index-C0cu-RWI.js +1 -0
  273. package/frontend/build/assets/index-C3PU0-pz.js +1 -0
  274. package/frontend/build/assets/index-C6PGuM0W.js +1 -0
  275. package/frontend/build/assets/index-C8kC4vgj.js +73 -0
  276. package/frontend/build/assets/index-C929_ci3.js +1 -0
  277. package/frontend/build/assets/index-CAvXXNvC.js +4 -0
  278. package/frontend/build/assets/index-CH4h1wcf.js +1 -0
  279. package/frontend/build/assets/index-CIJ6rjR4.js +1 -0
  280. package/frontend/build/assets/index-CIr65QIJ.js +88 -0
  281. package/frontend/build/assets/index-CJIWqxBN.js +3022 -0
  282. package/frontend/build/assets/index-CK1nPYvM.js +1 -0
  283. package/frontend/build/assets/index-CKrf6ZAU.js +1 -0
  284. package/frontend/build/assets/index-CLfO7Gf6.js +1 -0
  285. package/frontend/build/assets/index-C_X4kJPv.js +1 -0
  286. package/frontend/build/assets/index-C_Y4E6cV.js +1 -0
  287. package/frontend/build/assets/index-Cb7i0EbW.js +1 -0
  288. package/frontend/build/assets/index-CbWw_OnJ.js +1 -0
  289. package/frontend/build/assets/index-CbeMIVMe.js +1 -0
  290. package/frontend/build/assets/index-CdNjPHZ4.css +1 -0
  291. package/frontend/build/assets/index-CeFBXiHy.js +34 -0
  292. package/frontend/build/assets/index-CfqNGf3J.js +1 -0
  293. package/frontend/build/assets/index-Cgw3BtX5.js +1 -0
  294. package/frontend/build/assets/index-Ci64noNy.js +4 -0
  295. package/frontend/build/assets/index-CpE2LZf6.js +88 -0
  296. package/frontend/build/assets/index-CqKFcCqq.js +1 -0
  297. package/frontend/build/assets/index-CrbhbDn6.js +1 -0
  298. package/frontend/build/assets/index-Csi2jHp6.js +1 -0
  299. package/frontend/build/assets/index-CuRn3Zj6.js +1 -0
  300. package/frontend/build/assets/index-Cvb6isPu.js +34 -0
  301. package/frontend/build/assets/index-D1keqYcn.js +1 -0
  302. package/frontend/build/assets/index-D4yD21Ii.js +1 -0
  303. package/frontend/build/assets/index-D60uSbJs.css +1 -0
  304. package/frontend/build/assets/index-D6ESmTyE.js +51 -0
  305. package/frontend/build/assets/index-D81JopND.js +1 -0
  306. package/frontend/build/assets/index-D8Ea2ZYj.js +1 -0
  307. package/frontend/build/assets/index-D8GATqgc.js +88 -0
  308. package/frontend/build/assets/index-DAP5yTaX.js +1 -0
  309. package/frontend/build/assets/index-DBBLpo8h.js +73 -0
  310. package/frontend/build/assets/index-DBaGV7UL.js +1 -0
  311. package/frontend/build/assets/index-DEVf6CSD.css +1 -0
  312. package/frontend/build/assets/index-DG-8CbiW.css +1 -0
  313. package/frontend/build/assets/index-DGBf1FIP.js +1 -0
  314. package/frontend/build/assets/index-DGJCAKZq.js +1 -0
  315. package/frontend/build/assets/index-DGyDjezP.js +1 -0
  316. package/frontend/build/assets/index-DJdQ0nV5.js +3022 -0
  317. package/frontend/build/assets/index-DK0t9ttf.js +51 -0
  318. package/frontend/build/assets/index-DNH9PMk-.js +1 -0
  319. package/frontend/build/assets/index-DOSf5RcO.css +1 -0
  320. package/frontend/build/assets/index-DOpBnx1_.js +3 -0
  321. package/frontend/build/assets/index-DOpZxAwZ.js +1 -0
  322. package/frontend/build/assets/index-DPHVwNRA.js +1 -0
  323. package/frontend/build/assets/index-DSzihJo9.js +1 -0
  324. package/frontend/build/assets/index-DVJZAGXg.js +1 -0
  325. package/frontend/build/assets/index-DXr1ddHm.js +3 -0
  326. package/frontend/build/assets/index-DamztouA.js +1 -0
  327. package/frontend/build/assets/index-Dd2IZqLs.js +1 -0
  328. package/frontend/build/assets/index-DfOc9UlB.js +1 -0
  329. package/frontend/build/assets/index-DgVSxPXN.css +1 -0
  330. package/frontend/build/assets/index-Dhp8dh5v.js +1 -0
  331. package/frontend/build/assets/index-DlqpxOQl.css +1 -0
  332. package/frontend/build/assets/index-DlvxwSxx.js +1 -0
  333. package/frontend/build/assets/index-Dn5ZzrRm.css +1 -0
  334. package/frontend/build/assets/index-Dp1faHeH.js +3020 -0
  335. package/frontend/build/assets/index-DsLf2ZDE.js +1 -0
  336. package/frontend/build/assets/index-DsUl8Ptm.js +1 -0
  337. package/frontend/build/assets/index-Dw0tLRur.js +1 -0
  338. package/frontend/build/assets/index-DwXVBZsv.js +1 -0
  339. package/frontend/build/assets/index-DyaHYcgL.js +1 -0
  340. package/frontend/build/assets/index-DzBQLoNi.js +3022 -0
  341. package/frontend/build/assets/index-GrVsVGKe.js +1 -0
  342. package/frontend/build/assets/index-IzGzRXKT.js +1 -0
  343. package/frontend/build/assets/index-MHTC5Jaf.js +1 -0
  344. package/frontend/build/assets/index-PDPwUSMg.js +34 -0
  345. package/frontend/build/assets/index-QYahACFP.css +1 -0
  346. package/frontend/build/assets/index-QkZPwKD6.js +88 -0
  347. package/frontend/build/assets/index-Tg84pa9I.js +88 -0
  348. package/frontend/build/assets/index-UL4MAKLb.js +88 -0
  349. package/frontend/build/assets/index-aa34KBYr.js +34 -0
  350. package/frontend/build/assets/index-ajvK6t0Y.js +1 -0
  351. package/frontend/build/assets/index-b5SryupN.js +1 -0
  352. package/frontend/build/assets/index-d3LI8LJL.js +4 -0
  353. package/frontend/build/assets/index-e1kUgjjO.js +1 -0
  354. package/frontend/build/assets/index-jTalI0G5.js +1 -0
  355. package/frontend/build/assets/index-jZroxcSG.js +1 -0
  356. package/frontend/build/assets/index-kLEe-31q.js +3022 -0
  357. package/frontend/build/assets/index-nxD1J_1U.js +1 -0
  358. package/frontend/build/assets/index-qD9Q6D9I.js +1 -0
  359. package/frontend/build/assets/index-uBZFl8l2.js +1 -0
  360. package/frontend/build/assets/index-wr8bxnDK.js +1 -0
  361. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-B4NwmABd.js +1 -0
  362. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-B4oNPU3q.js +1 -0
  363. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-BBmwAav-.js +1 -0
  364. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-BOOc15c_.js +1 -0
  365. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-BY9Af5Nc.js +1 -0
  366. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-Bej651CN.js +1 -0
  367. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-C2vb4Dqf.js +1 -0
  368. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CL2618tE.js +1 -0
  369. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CLxSBkmO.js +1 -0
  370. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-C_JTuf1y.js +1 -0
  371. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CcJN846R.js +1 -0
  372. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CijuxZr1.js +1 -0
  373. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CmP-e403.js +1 -0
  374. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-Cs16N-Xd.js +1 -0
  375. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-D06MdY7a.js +1 -0
  376. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-DdgjuITP.js +1 -0
  377. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-DuLmC4Hy.js +1 -0
  378. package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-i_-VJTVk.js +1 -0
  379. package/frontend/build/assets/logo-B8LLnbYy.jpg +0 -0
  380. package/frontend/build/assets/memory-C4zB60HJ.js +1 -0
  381. package/frontend/build/assets/memory-DHzPXs82.js +1 -0
  382. package/frontend/build/assets/presets-8ZEu20ZL.js +1 -0
  383. package/frontend/build/assets/presets-Bbyt0PjB.js +1 -0
  384. package/frontend/build/assets/presets-DGMnsFyv.js +1 -0
  385. package/frontend/build/assets/presets-DqF27psW.js +1 -0
  386. package/frontend/build/assets/presets-N8YNqfPr.js +1 -0
  387. package/frontend/build/assets/presets-cCI64Dxi.js +1 -0
  388. package/frontend/build/assets/preview-close-one-BtVZjDje.js +1 -0
  389. package/frontend/build/assets/preview-close-one-CduaZ9go.js +1 -0
  390. package/frontend/build/assets/preview-close-one-DQdsMFNB.js +1 -0
  391. package/frontend/build/assets/preview-close-one-DZiBTyj3.js +1 -0
  392. package/frontend/build/assets/preview-close-one-ZEGMXVTp.js +1 -0
  393. package/frontend/build/assets/preview-close-one-vOfiPsm0.js +1 -0
  394. package/frontend/build/assets/preview-open--FMuWVpI.js +1 -0
  395. package/frontend/build/assets/preview-open-5axv2eoi.js +1 -0
  396. package/frontend/build/assets/preview-open-BwhyOZZZ.js +1 -0
  397. package/frontend/build/assets/preview-open-CEgCXCaz.js +1 -0
  398. package/frontend/build/assets/preview-open-CIsmwiay.js +1 -0
  399. package/frontend/build/assets/preview-open-DqXcn0Io.js +1 -0
  400. package/frontend/build/assets/processors-0_RUgaZm.js +1 -0
  401. package/frontend/build/assets/processors-BGAbvhSk.js +1 -0
  402. package/frontend/build/assets/processors-CJsyXjR7.js +1 -0
  403. package/frontend/build/assets/processors-CmJ007yb.js +1 -0
  404. package/frontend/build/assets/processors-CsDJer4R.js +1 -0
  405. package/frontend/build/assets/processors-on-PUe_q.js +1 -0
  406. package/frontend/build/assets/prop-BjyUHhTu.js +1 -0
  407. package/frontend/build/assets/text-BU3n8x_S.js +21 -0
  408. package/frontend/build/assets/text-BdCfEojD.js +21 -0
  409. package/frontend/build/assets/text-BfkuQm58.js +21 -0
  410. package/frontend/build/assets/text-BhKp8kwX.js +21 -0
  411. package/frontend/build/assets/text-C8WlRvWq.js +21 -0
  412. package/frontend/build/assets/text-Dm8ZXeiW.js +21 -0
  413. package/frontend/build/assets/toolGroup-BpThfFxc.js +1 -0
  414. package/frontend/build/assets/toolGroup-C7yi3DD-.js +1 -0
  415. package/frontend/build/assets/toolGroup-Cl_28ogB.js +1 -0
  416. package/frontend/build/assets/toolGroup-CvTMJceG.js +1 -0
  417. package/frontend/build/assets/toolGroup-DIZrVG-u.js +1 -0
  418. package/frontend/build/assets/toolGroup-YtViuyrx.js +1 -0
  419. package/frontend/build/assets/tools-BWpxaWcy.js +1 -0
  420. package/frontend/build/assets/tools-CivF5Y63.js +1 -0
  421. package/frontend/build/assets/tools-ClM2lWje.js +1 -0
  422. package/frontend/build/assets/tools-DlNqOoYG.js +1 -0
  423. package/frontend/build/assets/tools-DrffVcid.js +1 -0
  424. package/frontend/build/assets/tools-VKwjF6eb.js +1 -0
  425. package/frontend/build/favicon.jpg +0 -0
  426. package/frontend/build/index.html +537 -0
  427. package/package.json +71 -0
@@ -0,0 +1,132 @@
1
+ import{aX as re,bF as Re,s as E,bW as V,p as n,d as G,X as ge,a4 as H,a0 as R,a2 as ue,a1 as Te,ae as le,r as k,v as ie,x as U,ay as q,af as K,aj as me,aq as Ne,bX as _e,aV as we,bT as he,bJ as He,aW as Be,a8 as M,F as oe,bY as De,bZ as fe,b_ as Ee,T as te,b6 as We,aw as Ve,aP as ne,bC as A,aF as Ce,b1 as Ze,G as Xe,b$ as Fe,aL as Ae,bf as Ye,a7 as Ue,c0 as qe,bG as ve,c1 as Ge,b0 as Ke}from"./index-DzBQLoNi.js";import{d as Je}from"./download-C2161hUv.js";function Qe(e,t){const l=re(Re,null);return E(()=>e.hljs||l?.mergedHljsRef.value)}const eo=V("download",()=>n("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},n("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},n("g",{fill:"currentColor","fill-rule":"nonzero"},n("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),oo=G({name:"ResizeSmall",render(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},n("g",{fill:"none"},n("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),to=V("rotateClockwise",()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),n("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),no=V("rotateClockwise",()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),n("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),io=V("zoomIn",()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),n("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),ro=V("zoomOut",()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),n("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"})));function lo(e){const{textColor2:t,fontSize:l,fontWeightStrong:u,textColor3:a}=e;return{textColor:t,fontSize:l,fontWeightStrong:u,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:a}}const so={common:ge,self:lo},ao=H([R("code",`
2
+ font-size: var(--n-font-size);
3
+ font-family: var(--n-font-family);
4
+ `,[ue("show-line-numbers",`
5
+ display: flex;
6
+ `),Te("line-numbers",`
7
+ user-select: none;
8
+ padding-right: 12px;
9
+ text-align: right;
10
+ transition: color .3s var(--n-bezier);
11
+ color: var(--n-line-number-text-color);
12
+ `),ue("word-wrap",[H("pre",`
13
+ white-space: pre-wrap;
14
+ word-break: break-all;
15
+ `)]),H("pre",`
16
+ margin: 0;
17
+ line-height: inherit;
18
+ font-size: inherit;
19
+ font-family: inherit;
20
+ `),H("[class^=hljs]",`
21
+ color: var(--n-text-color);
22
+ transition:
23
+ color .3s var(--n-bezier),
24
+ background-color .3s var(--n-bezier);
25
+ `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment,
26
+ ${t} .hljs-quote {
27
+ color: var(--n-mono-3);
28
+ font-style: italic;
29
+ }`,`${t} .hljs-doctag,
30
+ ${t} .hljs-keyword,
31
+ ${t} .hljs-formula {
32
+ color: var(--n-hue-3);
33
+ }`,`${t} .hljs-section,
34
+ ${t} .hljs-name,
35
+ ${t} .hljs-selector-tag,
36
+ ${t} .hljs-deletion,
37
+ ${t} .hljs-subst {
38
+ color: var(--n-hue-5);
39
+ }`,`${t} .hljs-literal {
40
+ color: var(--n-hue-1);
41
+ }`,`${t} .hljs-string,
42
+ ${t} .hljs-regexp,
43
+ ${t} .hljs-addition,
44
+ ${t} .hljs-attribute,
45
+ ${t} .hljs-meta-string {
46
+ color: var(--n-hue-4);
47
+ }`,`${t} .hljs-built_in,
48
+ ${t} .hljs-class .hljs-title {
49
+ color: var(--n-hue-6-2);
50
+ }`,`${t} .hljs-attr,
51
+ ${t} .hljs-variable,
52
+ ${t} .hljs-template-variable,
53
+ ${t} .hljs-type,
54
+ ${t} .hljs-selector-class,
55
+ ${t} .hljs-selector-attr,
56
+ ${t} .hljs-selector-pseudo,
57
+ ${t} .hljs-number {
58
+ color: var(--n-hue-6);
59
+ }`,`${t} .hljs-symbol,
60
+ ${t} .hljs-bullet,
61
+ ${t} .hljs-link,
62
+ ${t} .hljs-meta,
63
+ ${t} .hljs-selector-id,
64
+ ${t} .hljs-title {
65
+ color: var(--n-hue-2);
66
+ }`,`${t} .hljs-emphasis {
67
+ font-style: italic;
68
+ }`,`${t} .hljs-strong {
69
+ font-weight: var(--n-font-weight-strong);
70
+ }`,`${t} .hljs-link {
71
+ text-decoration: underline;
72
+ }`]}]),co=Object.assign(Object.assign({},K.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),So=G({name:"Code",props:co,setup(e,{slots:t}){const{internalNoHighlight:l}=e,{mergedClsPrefixRef:u,inlineThemeDisabled:a}=le(),w=k(null),b=l?{value:void 0}:Qe(e),x=(d,h,m)=>{const{value:S}=b;return!S||!(d&&S.getLanguage(d))?null:S.highlight(m?h.trim():h,{language:d}).value},$=E(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),s=()=>{if(t.default)return;const{value:d}=w;if(!d)return;const{language:h}=e,m=e.uri?window.decodeURIComponent(e.code):e.code;if(h){const y=x(h,m,e.trim);if(y!==null){if(e.inline)d.innerHTML=y;else{const _=d.querySelector(".__code__");_&&d.removeChild(_);const I=document.createElement("pre");I.className="__code__",I.innerHTML=y,d.appendChild(I)}return}}if(e.inline){d.textContent=m;return}const S=d.querySelector(".__code__");if(S)S.textContent=m;else{const y=document.createElement("pre");y.className="__code__",y.textContent=m,d.innerHTML="",d.appendChild(y)}};ie(s),U(q(e,"language"),s),U(q(e,"code"),s),l||U(b,s);const c=K("Code","-code",ao,so,e,u),g=E(()=>{const{common:{cubicBezierEaseInOut:d,fontFamilyMono:h},self:{textColor:m,fontSize:S,fontWeightStrong:y,lineNumberTextColor:_,"mono-3":I,"hue-1":Z,"hue-2":J,"hue-3":X,"hue-4":F,"hue-5":C,"hue-5-2":Q,"hue-6":W,"hue-6-2":T}}=c.value,{internalFontSize:p}=e;return{"--n-font-size":p?`${p}px`:S,"--n-font-family":h,"--n-font-weight-strong":y,"--n-bezier":d,"--n-text-color":m,"--n-mono-3":I,"--n-hue-1":Z,"--n-hue-2":J,"--n-hue-3":X,"--n-hue-4":F,"--n-hue-5":C,"--n-hue-5-2":Q,"--n-hue-6":W,"--n-hue-6-2":T,"--n-line-number-text-color":_}}),j=a?me("code",E(()=>`${e.internalFontSize||"a"}`),g,e):void 0;return{mergedClsPrefix:u,codeRef:w,mergedShowLineNumbers:$,lineNumbers:E(()=>{let d=1;const h=[];let m=!1;for(const S of e.code)S===`
73
+ `?(m=!0,h.push(d++)):m=!1;return m||h.push(d++),h.join(`
74
+ `)}),cssVars:a?void 0:g,themeClass:j?.themeClass,onRender:j?.onRender}},render(){var e,t;const{mergedClsPrefix:l,wordWrap:u,mergedShowLineNumbers:a,onRender:w}=this;return w?.(),n("code",{class:[`${l}-code`,this.themeClass,u&&`${l}-code--word-wrap`,a&&`${l}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},a?n("pre",{class:`${l}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function uo(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const ho=Ne({name:"Image",common:ge,peers:{Tooltip:_e},self:uo});function fo(){return n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"}))}function vo(){return n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"}))}function go(){return n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"}))}const pe=Object.assign(Object.assign({},K.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),be=we("n-image"),mo=H([H("body >",[R("image-container","position: fixed;")]),R("image-preview-container",`
75
+ position: fixed;
76
+ left: 0;
77
+ right: 0;
78
+ top: 0;
79
+ bottom: 0;
80
+ display: flex;
81
+ `),R("image-preview-overlay",`
82
+ z-index: -1;
83
+ position: absolute;
84
+ left: 0;
85
+ right: 0;
86
+ top: 0;
87
+ bottom: 0;
88
+ background: rgba(0, 0, 0, .3);
89
+ `,[he()]),R("image-preview-toolbar",`
90
+ z-index: 1;
91
+ position: absolute;
92
+ left: 50%;
93
+ transform: translateX(-50%);
94
+ border-radius: var(--n-toolbar-border-radius);
95
+ height: 48px;
96
+ bottom: 40px;
97
+ padding: 0 12px;
98
+ background: var(--n-toolbar-color);
99
+ box-shadow: var(--n-toolbar-box-shadow);
100
+ color: var(--n-toolbar-icon-color);
101
+ transition: color .3s var(--n-bezier);
102
+ display: flex;
103
+ align-items: center;
104
+ `,[R("base-icon",`
105
+ padding: 0 8px;
106
+ font-size: 28px;
107
+ cursor: pointer;
108
+ `),he()]),R("image-preview-wrapper",`
109
+ position: absolute;
110
+ left: 0;
111
+ right: 0;
112
+ top: 0;
113
+ bottom: 0;
114
+ display: flex;
115
+ pointer-events: none;
116
+ `,[He()]),R("image-preview",`
117
+ user-select: none;
118
+ -webkit-user-select: none;
119
+ pointer-events: all;
120
+ margin: auto;
121
+ max-height: calc(100vh - 32px);
122
+ max-width: calc(100vw - 32px);
123
+ transition: transform .3s var(--n-bezier);
124
+ `),R("image",`
125
+ display: inline-flex;
126
+ max-height: 100%;
127
+ max-width: 100%;
128
+ `,[Be("preview-disabled",`
129
+ cursor: pointer;
130
+ `),H("img",`
131
+ border-radius: inherit;
132
+ `)])]),Y=32,wo=G({name:"ImagePreview",props:Object.assign(Object.assign({},pe),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=K("Image","-image",mo,ho,e,q(e,"clsPrefix"));let l=null;const u=k(null),a=k(null),w=k(void 0),b=k(!1),x=k(!1),{localeRef:$}=Ve("Image");function s(){const{value:o}=a;if(!l||!o)return;const{style:r}=o,i=l.getBoundingClientRect(),f=i.left+i.width/2,v=i.top+i.height/2;r.transformOrigin=`${f}px ${v}px`}function c(o){var r,i;switch(o.key){case" ":o.preventDefault();break;case"ArrowLeft":(r=e.onPrev)===null||r===void 0||r.call(e);break;case"ArrowRight":(i=e.onNext)===null||i===void 0||i.call(e);break;case"Escape":ae();break}}U(b,o=>{o?ne("keydown",document,c):A("keydown",document,c)}),Ce(()=>{A("keydown",document,c)});let g=0,j=0,d=0,h=0,m=0,S=0,y=0,_=0,I=!1;function Z(o){const{clientX:r,clientY:i}=o;d=r-g,h=i-j,Ye(z)}function J(o){const{mouseUpClientX:r,mouseUpClientY:i,mouseDownClientX:f,mouseDownClientY:v}=o,L=f-r,P=v-i,O=`vertical${P>0?"Top":"Bottom"}`,N=`horizontal${L>0?"Left":"Right"}`;return{moveVerticalDirection:O,moveHorizontalDirection:N,deltaHorizontal:L,deltaVertical:P}}function X(o){const{value:r}=u;if(!r)return{offsetX:0,offsetY:0};const i=r.getBoundingClientRect(),{moveVerticalDirection:f,moveHorizontalDirection:v,deltaHorizontal:L,deltaVertical:P}=o||{};let O=0,N=0;return i.width<=window.innerWidth?O=0:i.left>0?O=(i.width-window.innerWidth)/2:i.right<window.innerWidth?O=-(i.width-window.innerWidth)/2:v==="horizontalRight"?O=Math.min((i.width-window.innerWidth)/2,m-(L??0)):O=Math.max(-((i.width-window.innerWidth)/2),m-(L??0)),i.height<=window.innerHeight?N=0:i.top>0?N=(i.height-window.innerHeight)/2:i.bottom<window.innerHeight?N=-(i.height-window.innerHeight)/2:f==="verticalBottom"?N=Math.min((i.height-window.innerHeight)/2,S-(P??0)):N=Math.max(-((i.height-window.innerHeight)/2),S-(P??0)),{offsetX:O,offsetY:N}}function F(o){A("mousemove",document,Z),A("mouseup",document,F);const{clientX:r,clientY:i}=o;I=!1;const f=J({mouseUpClientX:r,mouseUpClientY:i,mouseDownClientX:y,mouseDownClientY:_}),v=X(f);d=v.offsetX,h=v.offsetY,z()}const C=re(be,null);function Q(o){var r,i;if((i=(r=C?.previewedImgPropsRef.value)===null||r===void 0?void 0:r.onMousedown)===null||i===void 0||i.call(r,o),o.button!==0)return;const{clientX:f,clientY:v}=o;I=!0,g=f-d,j=v-h,m=d,S=h,y=f,_=v,z(),ne("mousemove",document,Z),ne("mouseup",document,F)}const W=1.5;let T=0,p=1,B=0;function xe(o){var r,i;(i=(r=C?.previewedImgPropsRef.value)===null||r===void 0?void 0:r.onDblclick)===null||i===void 0||i.call(r,o);const f=se();p=p===f?1:f,z()}function ee(){p=1,T=0}function Se(){var o;ee(),B=0,(o=e.onPrev)===null||o===void 0||o.call(e)}function Le(){var o;ee(),B=0,(o=e.onNext)===null||o===void 0||o.call(e)}function $e(){B-=90,z()}function je(){B+=90,z()}function ye(){const{value:o}=u;if(!o)return 1;const{innerWidth:r,innerHeight:i}=window,f=Math.max(1,o.naturalHeight/(i-Y)),v=Math.max(1,o.naturalWidth/(r-Y));return Math.max(3,f*2,v*2)}function se(){const{value:o}=u;if(!o)return 1;const{innerWidth:r,innerHeight:i}=window,f=o.naturalHeight/(i-Y),v=o.naturalWidth/(r-Y);return f<1&&v<1?1:Math.max(f,v)}function Pe(){const o=ye();p<o&&(T+=1,p=Math.min(o,Math.pow(W,T)),z())}function ze(){if(p>.5){const o=p;T-=1,p=Math.max(.5,Math.pow(W,T));const r=o-p;z(!1);const i=X();p+=r,z(!1),p-=r,d=i.offsetX,h=i.offsetY,z()}}function Oe(){const o=w.value;o&&Je(o,void 0)}function z(o=!0){var r;const{value:i}=u;if(!i)return;const{style:f}=i,v=Xe((r=C?.previewedImgPropsRef.value)===null||r===void 0?void 0:r.style);let L="";if(typeof v=="string")L=`${v};`;else for(const O in v)L+=`${Fe(O)}: ${v[O]};`;const P=`transform-origin: center; transform: translateX(${d}px) translateY(${h}px) rotate(${B}deg) scale(${p});`;I?f.cssText=`${L}cursor: grabbing; transition: none;${P}`:f.cssText=`${L}cursor: grab;${P}${o?"":"transition: none;"}`,o||i.offsetHeight}function ae(){b.value=!b.value,x.value=!0}function ke(){p=se(),T=Math.ceil(Math.log(p)/Math.log(W)),d=0,h=0,z()}const Ie={setPreviewSrc:o=>{w.value=o},setThumbnailEl:o=>{l=o},toggleShow:ae};function Me(o,r){if(e.showToolbarTooltip){const{value:i}=t;return n(Ae,{to:!1,theme:i.peers.Tooltip,themeOverrides:i.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>$.value[r],trigger:()=>o})}else return o}const ce=E(()=>{const{common:{cubicBezierEaseInOut:o},self:{toolbarIconColor:r,toolbarBorderRadius:i,toolbarBoxShadow:f,toolbarColor:v}}=t.value;return{"--n-bezier":o,"--n-toolbar-icon-color":r,"--n-toolbar-color":v,"--n-toolbar-border-radius":i,"--n-toolbar-box-shadow":f}}),{inlineThemeDisabled:de}=le(),D=de?me("image-preview",void 0,ce,e):void 0;return Object.assign({previewRef:u,previewWrapperRef:a,previewSrc:w,show:b,appear:Ze(),displayed:x,previewedImgProps:C?.previewedImgPropsRef,handleWheel(o){o.preventDefault()},handlePreviewMousedown:Q,handlePreviewDblclick:xe,syncTransformOrigin:s,handleAfterLeave:()=>{ee(),B=0,x.value=!1},handleDragStart:o=>{var r,i;(i=(r=C?.previewedImgPropsRef.value)===null||r===void 0?void 0:r.onDragstart)===null||i===void 0||i.call(r,o),o.preventDefault()},zoomIn:Pe,zoomOut:ze,handleDownloadClick:Oe,rotateCounterclockwise:$e,rotateClockwise:je,handleSwitchPrev:Se,handleSwitchNext:Le,withTooltip:Me,resizeToOrignalImageSize:ke,cssVars:de?void 0:ce,themeClass:D?.themeClass,onRender:D?.onRender},Ie)},render(){var e,t;const{clsPrefix:l,renderToolbar:u,withTooltip:a}=this,w=a(n(M,{clsPrefix:l,onClick:this.handleSwitchPrev},{default:fo}),"tipPrevious"),b=a(n(M,{clsPrefix:l,onClick:this.handleSwitchNext},{default:vo}),"tipNext"),x=a(n(M,{clsPrefix:l,onClick:this.rotateCounterclockwise},{default:()=>n(no,null)}),"tipCounterclockwise"),$=a(n(M,{clsPrefix:l,onClick:this.rotateClockwise},{default:()=>n(to,null)}),"tipClockwise"),s=a(n(M,{clsPrefix:l,onClick:this.resizeToOrignalImageSize},{default:()=>n(oo,null)}),"tipOriginalSize"),c=a(n(M,{clsPrefix:l,onClick:this.zoomOut},{default:()=>n(ro,null)}),"tipZoomOut"),g=a(n(M,{clsPrefix:l,onClick:this.handleDownloadClick},{default:()=>n(eo,null)}),"tipDownload"),j=a(n(M,{clsPrefix:l,onClick:this.toggleShow},{default:go}),"tipClose"),d=a(n(M,{clsPrefix:l,onClick:this.zoomIn},{default:()=>n(io,null)}),"tipZoomIn");return n(oe,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),n(De,{show:this.show},{default:()=>{var h;return this.show||this.displayed?((h=this.onRender)===null||h===void 0||h.call(this),fe(n("div",{class:[`${l}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},n(te,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?n("div",{class:`${l}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?n(te,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?n("div",{class:`${l}-image-preview-toolbar`},u?u({nodes:{prev:w,next:b,rotateCounterclockwise:x,rotateClockwise:$,resizeToOriginalSize:s,zoomOut:c,zoomIn:d,download:g,close:j}}):n(oe,null,this.onPrev?n(oe,null,w,b):null,x,$,s,c,d,g,j)):null}):null,n(te,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:m={}}=this;return fe(n("div",{class:`${l}-image-preview-wrapper`,ref:"previewWrapperRef"},n("img",Object.assign({},m,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${l}-image-preview`,m.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[We,this.show]])}})),[[Ee,{enabled:this.show}]])):null}}))}}),Co=we("n-image-group"),po=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},pe),Lo=G({name:"Image",props:po,slots:Object,inheritAttrs:!1,setup(e){const t=k(null),l=k(!1),u=k(null),a=re(Co,null),{mergedClsPrefixRef:w}=a||le(e),b={click:()=>{if(e.previewDisabled||l.value)return;const s=e.previewSrc||e.src;if(a){a.setPreviewSrc(s),a.setThumbnailEl(t.value),a.toggleShow();return}const{value:c}=u;c&&(c.setPreviewSrc(s),c.setThumbnailEl(t.value),c.toggleShow())}},x=k(!e.lazy);ie(()=>{var s;(s=t.value)===null||s===void 0||s.setAttribute("data-group-id",a?.groupId||"")}),ie(()=>{if(e.lazy&&e.intersectionObserverOptions){let s;const c=ve(()=>{s?.(),s=void 0,s=Ge(t.value,e.intersectionObserverOptions,x)});Ce(()=>{c(),s?.()})}}),ve(()=>{var s;e.src||((s=e.imgProps)===null||s===void 0||s.src),l.value=!1});const $=k(!1);return Ke(be,{previewedImgPropsRef:q(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:w,groupId:a?.groupId,previewInstRef:u,imageRef:t,showError:l,shouldStartLoading:x,loaded:$,mergedOnClick:s=>{var c,g;b.click(),(g=(c=e.imgProps)===null||c===void 0?void 0:c.onClick)===null||g===void 0||g.call(c,s)},mergedOnError:s=>{if(!x.value)return;l.value=!0;const{onError:c,imgProps:{onError:g}={}}=e;c?.(s),g?.(s)},mergedOnLoad:s=>{const{onLoad:c,imgProps:{onLoad:g}={}}=e;c?.(s),g?.(s),$.value=!0}},b)},render(){var e,t;const{mergedClsPrefix:l,imgProps:u={},loaded:a,$attrs:w,lazy:b}=this,x=Ue(this.$slots.error,()=>[]),$=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||u.src,c=this.showError&&x.length?x:n("img",Object.assign(Object.assign({},u),{ref:"imageRef",width:this.width||u.width,height:this.height||u.height,src:this.showError?this.fallbackSrc:b&&this.intersectionObserverOptions?this.shouldStartLoading?s:void 0:s,alt:this.alt||u.alt,"aria-label":this.alt||u.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:qe&&b&&!this.intersectionObserverOptions?"lazy":"eager",style:[u.style||"",$&&!a?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return n("div",Object.assign({},w,{role:"none",class:[w.class,`${l}-image`,(this.previewDisabled||this.showError)&&`${l}-image--preview-disabled`]}),this.groupId?c:n(wo,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:l,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},{default:()=>c}),!a&&$)}});export{Lo as N,So as a};
@@ -0,0 +1,132 @@
1
+ import{aP as re,bz as Re,s as E,bQ as V,p as n,d as K,a6 as ge,ax as H,a7 as R,ay as ue,ak as Te,aa as le,r as k,v as ie,x as U,ae as G,ad as q,ag as me,a1 as Ne,bR as _e,aN as we,bN as he,bD as He,aO as Be,a8 as M,F as oe,bS as De,bT as fe,bU as Ee,T as te,a$ as We,ab as Ve,aG as ne,bw as F,as as Ce,aW as Ze,G as Ae,bV as Xe,aA as Fe,b9 as Ye,aE as Ue,bW as Ge,bA as ve,bX as Ke,aV as qe}from"./index-CJIWqxBN.js";import{d as Qe}from"./download-C2161hUv.js";function Je(e,t){const l=re(Re,null);return E(()=>e.hljs||l?.mergedHljsRef.value)}const eo=V("download",()=>n("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},n("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},n("g",{fill:"currentColor","fill-rule":"nonzero"},n("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),oo=K({name:"ResizeSmall",render(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},n("g",{fill:"none"},n("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),to=V("rotateClockwise",()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),n("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),no=V("rotateClockwise",()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),n("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),io=V("zoomIn",()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),n("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),ro=V("zoomOut",()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),n("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"})));function lo(e){const{textColor2:t,fontSize:l,fontWeightStrong:u,textColor3:a}=e;return{textColor:t,fontSize:l,fontWeightStrong:u,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:a}}const so={common:ge,self:lo},ao=H([R("code",`
2
+ font-size: var(--n-font-size);
3
+ font-family: var(--n-font-family);
4
+ `,[ue("show-line-numbers",`
5
+ display: flex;
6
+ `),Te("line-numbers",`
7
+ user-select: none;
8
+ padding-right: 12px;
9
+ text-align: right;
10
+ transition: color .3s var(--n-bezier);
11
+ color: var(--n-line-number-text-color);
12
+ `),ue("word-wrap",[H("pre",`
13
+ white-space: pre-wrap;
14
+ word-break: break-all;
15
+ `)]),H("pre",`
16
+ margin: 0;
17
+ line-height: inherit;
18
+ font-size: inherit;
19
+ font-family: inherit;
20
+ `),H("[class^=hljs]",`
21
+ color: var(--n-text-color);
22
+ transition:
23
+ color .3s var(--n-bezier),
24
+ background-color .3s var(--n-bezier);
25
+ `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment,
26
+ ${t} .hljs-quote {
27
+ color: var(--n-mono-3);
28
+ font-style: italic;
29
+ }`,`${t} .hljs-doctag,
30
+ ${t} .hljs-keyword,
31
+ ${t} .hljs-formula {
32
+ color: var(--n-hue-3);
33
+ }`,`${t} .hljs-section,
34
+ ${t} .hljs-name,
35
+ ${t} .hljs-selector-tag,
36
+ ${t} .hljs-deletion,
37
+ ${t} .hljs-subst {
38
+ color: var(--n-hue-5);
39
+ }`,`${t} .hljs-literal {
40
+ color: var(--n-hue-1);
41
+ }`,`${t} .hljs-string,
42
+ ${t} .hljs-regexp,
43
+ ${t} .hljs-addition,
44
+ ${t} .hljs-attribute,
45
+ ${t} .hljs-meta-string {
46
+ color: var(--n-hue-4);
47
+ }`,`${t} .hljs-built_in,
48
+ ${t} .hljs-class .hljs-title {
49
+ color: var(--n-hue-6-2);
50
+ }`,`${t} .hljs-attr,
51
+ ${t} .hljs-variable,
52
+ ${t} .hljs-template-variable,
53
+ ${t} .hljs-type,
54
+ ${t} .hljs-selector-class,
55
+ ${t} .hljs-selector-attr,
56
+ ${t} .hljs-selector-pseudo,
57
+ ${t} .hljs-number {
58
+ color: var(--n-hue-6);
59
+ }`,`${t} .hljs-symbol,
60
+ ${t} .hljs-bullet,
61
+ ${t} .hljs-link,
62
+ ${t} .hljs-meta,
63
+ ${t} .hljs-selector-id,
64
+ ${t} .hljs-title {
65
+ color: var(--n-hue-2);
66
+ }`,`${t} .hljs-emphasis {
67
+ font-style: italic;
68
+ }`,`${t} .hljs-strong {
69
+ font-weight: var(--n-font-weight-strong);
70
+ }`,`${t} .hljs-link {
71
+ text-decoration: underline;
72
+ }`]}]),co=Object.assign(Object.assign({},q.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),So=K({name:"Code",props:co,setup(e,{slots:t}){const{internalNoHighlight:l}=e,{mergedClsPrefixRef:u,inlineThemeDisabled:a}=le(),w=k(null),b=l?{value:void 0}:Je(e),x=(d,h,m)=>{const{value:S}=b;return!S||!(d&&S.getLanguage(d))?null:S.highlight(m?h.trim():h,{language:d}).value},$=E(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),s=()=>{if(t.default)return;const{value:d}=w;if(!d)return;const{language:h}=e,m=e.uri?window.decodeURIComponent(e.code):e.code;if(h){const j=x(h,m,e.trim);if(j!==null){if(e.inline)d.innerHTML=j;else{const _=d.querySelector(".__code__");_&&d.removeChild(_);const I=document.createElement("pre");I.className="__code__",I.innerHTML=j,d.appendChild(I)}return}}if(e.inline){d.textContent=m;return}const S=d.querySelector(".__code__");if(S)S.textContent=m;else{const j=document.createElement("pre");j.className="__code__",j.textContent=m,d.innerHTML="",d.appendChild(j)}};ie(s),U(G(e,"language"),s),U(G(e,"code"),s),l||U(b,s);const c=q("Code","-code",ao,so,e,u),g=E(()=>{const{common:{cubicBezierEaseInOut:d,fontFamilyMono:h},self:{textColor:m,fontSize:S,fontWeightStrong:j,lineNumberTextColor:_,"mono-3":I,"hue-1":Z,"hue-2":Q,"hue-3":A,"hue-4":X,"hue-5":C,"hue-5-2":J,"hue-6":W,"hue-6-2":T}}=c.value,{internalFontSize:p}=e;return{"--n-font-size":p?`${p}px`:S,"--n-font-family":h,"--n-font-weight-strong":j,"--n-bezier":d,"--n-text-color":m,"--n-mono-3":I,"--n-hue-1":Z,"--n-hue-2":Q,"--n-hue-3":A,"--n-hue-4":X,"--n-hue-5":C,"--n-hue-5-2":J,"--n-hue-6":W,"--n-hue-6-2":T,"--n-line-number-text-color":_}}),y=a?me("code",E(()=>`${e.internalFontSize||"a"}`),g,e):void 0;return{mergedClsPrefix:u,codeRef:w,mergedShowLineNumbers:$,lineNumbers:E(()=>{let d=1;const h=[];let m=!1;for(const S of e.code)S===`
73
+ `?(m=!0,h.push(d++)):m=!1;return m||h.push(d++),h.join(`
74
+ `)}),cssVars:a?void 0:g,themeClass:y?.themeClass,onRender:y?.onRender}},render(){var e,t;const{mergedClsPrefix:l,wordWrap:u,mergedShowLineNumbers:a,onRender:w}=this;return w?.(),n("code",{class:[`${l}-code`,this.themeClass,u&&`${l}-code--word-wrap`,a&&`${l}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},a?n("pre",{class:`${l}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function uo(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const ho=Ne({name:"Image",common:ge,peers:{Tooltip:_e},self:uo});function fo(){return n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"}))}function vo(){return n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"}))}function go(){return n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"}))}const pe=Object.assign(Object.assign({},q.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),be=we("n-image"),mo=H([H("body >",[R("image-container","position: fixed;")]),R("image-preview-container",`
75
+ position: fixed;
76
+ left: 0;
77
+ right: 0;
78
+ top: 0;
79
+ bottom: 0;
80
+ display: flex;
81
+ `),R("image-preview-overlay",`
82
+ z-index: -1;
83
+ position: absolute;
84
+ left: 0;
85
+ right: 0;
86
+ top: 0;
87
+ bottom: 0;
88
+ background: rgba(0, 0, 0, .3);
89
+ `,[he()]),R("image-preview-toolbar",`
90
+ z-index: 1;
91
+ position: absolute;
92
+ left: 50%;
93
+ transform: translateX(-50%);
94
+ border-radius: var(--n-toolbar-border-radius);
95
+ height: 48px;
96
+ bottom: 40px;
97
+ padding: 0 12px;
98
+ background: var(--n-toolbar-color);
99
+ box-shadow: var(--n-toolbar-box-shadow);
100
+ color: var(--n-toolbar-icon-color);
101
+ transition: color .3s var(--n-bezier);
102
+ display: flex;
103
+ align-items: center;
104
+ `,[R("base-icon",`
105
+ padding: 0 8px;
106
+ font-size: 28px;
107
+ cursor: pointer;
108
+ `),he()]),R("image-preview-wrapper",`
109
+ position: absolute;
110
+ left: 0;
111
+ right: 0;
112
+ top: 0;
113
+ bottom: 0;
114
+ display: flex;
115
+ pointer-events: none;
116
+ `,[He()]),R("image-preview",`
117
+ user-select: none;
118
+ -webkit-user-select: none;
119
+ pointer-events: all;
120
+ margin: auto;
121
+ max-height: calc(100vh - 32px);
122
+ max-width: calc(100vw - 32px);
123
+ transition: transform .3s var(--n-bezier);
124
+ `),R("image",`
125
+ display: inline-flex;
126
+ max-height: 100%;
127
+ max-width: 100%;
128
+ `,[Be("preview-disabled",`
129
+ cursor: pointer;
130
+ `),H("img",`
131
+ border-radius: inherit;
132
+ `)])]),Y=32,wo=K({name:"ImagePreview",props:Object.assign(Object.assign({},pe),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=q("Image","-image",mo,ho,e,G(e,"clsPrefix"));let l=null;const u=k(null),a=k(null),w=k(void 0),b=k(!1),x=k(!1),{localeRef:$}=Ve("Image");function s(){const{value:o}=a;if(!l||!o)return;const{style:r}=o,i=l.getBoundingClientRect(),f=i.left+i.width/2,v=i.top+i.height/2;r.transformOrigin=`${f}px ${v}px`}function c(o){var r,i;switch(o.key){case" ":o.preventDefault();break;case"ArrowLeft":(r=e.onPrev)===null||r===void 0||r.call(e);break;case"ArrowRight":(i=e.onNext)===null||i===void 0||i.call(e);break;case"Escape":ae();break}}U(b,o=>{o?ne("keydown",document,c):F("keydown",document,c)}),Ce(()=>{F("keydown",document,c)});let g=0,y=0,d=0,h=0,m=0,S=0,j=0,_=0,I=!1;function Z(o){const{clientX:r,clientY:i}=o;d=r-g,h=i-y,Ye(z)}function Q(o){const{mouseUpClientX:r,mouseUpClientY:i,mouseDownClientX:f,mouseDownClientY:v}=o,L=f-r,P=v-i,O=`vertical${P>0?"Top":"Bottom"}`,N=`horizontal${L>0?"Left":"Right"}`;return{moveVerticalDirection:O,moveHorizontalDirection:N,deltaHorizontal:L,deltaVertical:P}}function A(o){const{value:r}=u;if(!r)return{offsetX:0,offsetY:0};const i=r.getBoundingClientRect(),{moveVerticalDirection:f,moveHorizontalDirection:v,deltaHorizontal:L,deltaVertical:P}=o||{};let O=0,N=0;return i.width<=window.innerWidth?O=0:i.left>0?O=(i.width-window.innerWidth)/2:i.right<window.innerWidth?O=-(i.width-window.innerWidth)/2:v==="horizontalRight"?O=Math.min((i.width-window.innerWidth)/2,m-(L??0)):O=Math.max(-((i.width-window.innerWidth)/2),m-(L??0)),i.height<=window.innerHeight?N=0:i.top>0?N=(i.height-window.innerHeight)/2:i.bottom<window.innerHeight?N=-(i.height-window.innerHeight)/2:f==="verticalBottom"?N=Math.min((i.height-window.innerHeight)/2,S-(P??0)):N=Math.max(-((i.height-window.innerHeight)/2),S-(P??0)),{offsetX:O,offsetY:N}}function X(o){F("mousemove",document,Z),F("mouseup",document,X);const{clientX:r,clientY:i}=o;I=!1;const f=Q({mouseUpClientX:r,mouseUpClientY:i,mouseDownClientX:j,mouseDownClientY:_}),v=A(f);d=v.offsetX,h=v.offsetY,z()}const C=re(be,null);function J(o){var r,i;if((i=(r=C?.previewedImgPropsRef.value)===null||r===void 0?void 0:r.onMousedown)===null||i===void 0||i.call(r,o),o.button!==0)return;const{clientX:f,clientY:v}=o;I=!0,g=f-d,y=v-h,m=d,S=h,j=f,_=v,z(),ne("mousemove",document,Z),ne("mouseup",document,X)}const W=1.5;let T=0,p=1,B=0;function xe(o){var r,i;(i=(r=C?.previewedImgPropsRef.value)===null||r===void 0?void 0:r.onDblclick)===null||i===void 0||i.call(r,o);const f=se();p=p===f?1:f,z()}function ee(){p=1,T=0}function Se(){var o;ee(),B=0,(o=e.onPrev)===null||o===void 0||o.call(e)}function Le(){var o;ee(),B=0,(o=e.onNext)===null||o===void 0||o.call(e)}function $e(){B-=90,z()}function ye(){B+=90,z()}function je(){const{value:o}=u;if(!o)return 1;const{innerWidth:r,innerHeight:i}=window,f=Math.max(1,o.naturalHeight/(i-Y)),v=Math.max(1,o.naturalWidth/(r-Y));return Math.max(3,f*2,v*2)}function se(){const{value:o}=u;if(!o)return 1;const{innerWidth:r,innerHeight:i}=window,f=o.naturalHeight/(i-Y),v=o.naturalWidth/(r-Y);return f<1&&v<1?1:Math.max(f,v)}function Pe(){const o=je();p<o&&(T+=1,p=Math.min(o,Math.pow(W,T)),z())}function ze(){if(p>.5){const o=p;T-=1,p=Math.max(.5,Math.pow(W,T));const r=o-p;z(!1);const i=A();p+=r,z(!1),p-=r,d=i.offsetX,h=i.offsetY,z()}}function Oe(){const o=w.value;o&&Qe(o,void 0)}function z(o=!0){var r;const{value:i}=u;if(!i)return;const{style:f}=i,v=Ae((r=C?.previewedImgPropsRef.value)===null||r===void 0?void 0:r.style);let L="";if(typeof v=="string")L=`${v};`;else for(const O in v)L+=`${Xe(O)}: ${v[O]};`;const P=`transform-origin: center; transform: translateX(${d}px) translateY(${h}px) rotate(${B}deg) scale(${p});`;I?f.cssText=`${L}cursor: grabbing; transition: none;${P}`:f.cssText=`${L}cursor: grab;${P}${o?"":"transition: none;"}`,o||i.offsetHeight}function ae(){b.value=!b.value,x.value=!0}function ke(){p=se(),T=Math.ceil(Math.log(p)/Math.log(W)),d=0,h=0,z()}const Ie={setPreviewSrc:o=>{w.value=o},setThumbnailEl:o=>{l=o},toggleShow:ae};function Me(o,r){if(e.showToolbarTooltip){const{value:i}=t;return n(Fe,{to:!1,theme:i.peers.Tooltip,themeOverrides:i.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>$.value[r],trigger:()=>o})}else return o}const ce=E(()=>{const{common:{cubicBezierEaseInOut:o},self:{toolbarIconColor:r,toolbarBorderRadius:i,toolbarBoxShadow:f,toolbarColor:v}}=t.value;return{"--n-bezier":o,"--n-toolbar-icon-color":r,"--n-toolbar-color":v,"--n-toolbar-border-radius":i,"--n-toolbar-box-shadow":f}}),{inlineThemeDisabled:de}=le(),D=de?me("image-preview",void 0,ce,e):void 0;return Object.assign({previewRef:u,previewWrapperRef:a,previewSrc:w,show:b,appear:Ze(),displayed:x,previewedImgProps:C?.previewedImgPropsRef,handleWheel(o){o.preventDefault()},handlePreviewMousedown:J,handlePreviewDblclick:xe,syncTransformOrigin:s,handleAfterLeave:()=>{ee(),B=0,x.value=!1},handleDragStart:o=>{var r,i;(i=(r=C?.previewedImgPropsRef.value)===null||r===void 0?void 0:r.onDragstart)===null||i===void 0||i.call(r,o),o.preventDefault()},zoomIn:Pe,zoomOut:ze,handleDownloadClick:Oe,rotateCounterclockwise:$e,rotateClockwise:ye,handleSwitchPrev:Se,handleSwitchNext:Le,withTooltip:Me,resizeToOrignalImageSize:ke,cssVars:de?void 0:ce,themeClass:D?.themeClass,onRender:D?.onRender},Ie)},render(){var e,t;const{clsPrefix:l,renderToolbar:u,withTooltip:a}=this,w=a(n(M,{clsPrefix:l,onClick:this.handleSwitchPrev},{default:fo}),"tipPrevious"),b=a(n(M,{clsPrefix:l,onClick:this.handleSwitchNext},{default:vo}),"tipNext"),x=a(n(M,{clsPrefix:l,onClick:this.rotateCounterclockwise},{default:()=>n(no,null)}),"tipCounterclockwise"),$=a(n(M,{clsPrefix:l,onClick:this.rotateClockwise},{default:()=>n(to,null)}),"tipClockwise"),s=a(n(M,{clsPrefix:l,onClick:this.resizeToOrignalImageSize},{default:()=>n(oo,null)}),"tipOriginalSize"),c=a(n(M,{clsPrefix:l,onClick:this.zoomOut},{default:()=>n(ro,null)}),"tipZoomOut"),g=a(n(M,{clsPrefix:l,onClick:this.handleDownloadClick},{default:()=>n(eo,null)}),"tipDownload"),y=a(n(M,{clsPrefix:l,onClick:this.toggleShow},{default:go}),"tipClose"),d=a(n(M,{clsPrefix:l,onClick:this.zoomIn},{default:()=>n(io,null)}),"tipZoomIn");return n(oe,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),n(De,{show:this.show},{default:()=>{var h;return this.show||this.displayed?((h=this.onRender)===null||h===void 0||h.call(this),fe(n("div",{class:[`${l}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},n(te,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?n("div",{class:`${l}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?n(te,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?n("div",{class:`${l}-image-preview-toolbar`},u?u({nodes:{prev:w,next:b,rotateCounterclockwise:x,rotateClockwise:$,resizeToOriginalSize:s,zoomOut:c,zoomIn:d,download:g,close:y}}):n(oe,null,this.onPrev?n(oe,null,w,b):null,x,$,s,c,d,g,y)):null}):null,n(te,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:m={}}=this;return fe(n("div",{class:`${l}-image-preview-wrapper`,ref:"previewWrapperRef"},n("img",Object.assign({},m,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${l}-image-preview`,m.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[We,this.show]])}})),[[Ee,{enabled:this.show}]])):null}}))}}),Co=we("n-image-group"),po=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},pe),Lo=K({name:"Image",props:po,slots:Object,inheritAttrs:!1,setup(e){const t=k(null),l=k(!1),u=k(null),a=re(Co,null),{mergedClsPrefixRef:w}=a||le(e),b={click:()=>{if(e.previewDisabled||l.value)return;const s=e.previewSrc||e.src;if(a){a.setPreviewSrc(s),a.setThumbnailEl(t.value),a.toggleShow();return}const{value:c}=u;c&&(c.setPreviewSrc(s),c.setThumbnailEl(t.value),c.toggleShow())}},x=k(!e.lazy);ie(()=>{var s;(s=t.value)===null||s===void 0||s.setAttribute("data-group-id",a?.groupId||"")}),ie(()=>{if(e.lazy&&e.intersectionObserverOptions){let s;const c=ve(()=>{s?.(),s=void 0,s=Ke(t.value,e.intersectionObserverOptions,x)});Ce(()=>{c(),s?.()})}}),ve(()=>{var s;e.src||((s=e.imgProps)===null||s===void 0||s.src),l.value=!1});const $=k(!1);return qe(be,{previewedImgPropsRef:G(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:w,groupId:a?.groupId,previewInstRef:u,imageRef:t,showError:l,shouldStartLoading:x,loaded:$,mergedOnClick:s=>{var c,g;b.click(),(g=(c=e.imgProps)===null||c===void 0?void 0:c.onClick)===null||g===void 0||g.call(c,s)},mergedOnError:s=>{if(!x.value)return;l.value=!0;const{onError:c,imgProps:{onError:g}={}}=e;c?.(s),g?.(s)},mergedOnLoad:s=>{const{onLoad:c,imgProps:{onLoad:g}={}}=e;c?.(s),g?.(s),$.value=!0}},b)},render(){var e,t;const{mergedClsPrefix:l,imgProps:u={},loaded:a,$attrs:w,lazy:b}=this,x=Ue(this.$slots.error,()=>[]),$=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||u.src,c=this.showError&&x.length?x:n("img",Object.assign(Object.assign({},u),{ref:"imageRef",width:this.width||u.width,height:this.height||u.height,src:this.showError?this.fallbackSrc:b&&this.intersectionObserverOptions?this.shouldStartLoading?s:void 0:s,alt:this.alt||u.alt,"aria-label":this.alt||u.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:Ge&&b&&!this.intersectionObserverOptions?"lazy":"eager",style:[u.style||"",$&&!a?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return n("div",Object.assign({},w,{role:"none",class:[w.class,`${l}-image`,(this.previewDisabled||this.showError)&&`${l}-image--preview-disabled`]}),this.groupId?c:n(wo,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:l,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},{default:()=>c}),!a&&$)}});export{Lo as N,So as a};
@@ -0,0 +1,132 @@
1
+ import{aP as re,bz as Re,s as E,bQ as V,p as n,d as K,a6 as ge,ax as H,a7 as R,ay as ue,ak as Te,aa as le,r as k,v as ie,x as U,ae as G,ad as q,ag as me,a1 as Ne,bR as _e,aN as we,bN as he,bD as He,aO as Be,a8 as M,F as oe,bS as De,bT as fe,bU as Ee,T as te,a$ as We,ab as Ve,aG as ne,bw as F,as as Ce,aW as Ze,G as Ae,bV as Xe,aA as Fe,b9 as Ye,aE as Ue,bW as Ge,bA as ve,bX as Ke,aV as qe}from"./index-DJdQ0nV5.js";import{d as Qe}from"./download-C2161hUv.js";function Je(e,t){const l=re(Re,null);return E(()=>e.hljs||l?.mergedHljsRef.value)}const eo=V("download",()=>n("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},n("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},n("g",{fill:"currentColor","fill-rule":"nonzero"},n("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),oo=K({name:"ResizeSmall",render(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},n("g",{fill:"none"},n("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),to=V("rotateClockwise",()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),n("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),no=V("rotateClockwise",()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),n("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),io=V("zoomIn",()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),n("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),ro=V("zoomOut",()=>n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),n("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"})));function lo(e){const{textColor2:t,fontSize:l,fontWeightStrong:u,textColor3:a}=e;return{textColor:t,fontSize:l,fontWeightStrong:u,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:a}}const so={common:ge,self:lo},ao=H([R("code",`
2
+ font-size: var(--n-font-size);
3
+ font-family: var(--n-font-family);
4
+ `,[ue("show-line-numbers",`
5
+ display: flex;
6
+ `),Te("line-numbers",`
7
+ user-select: none;
8
+ padding-right: 12px;
9
+ text-align: right;
10
+ transition: color .3s var(--n-bezier);
11
+ color: var(--n-line-number-text-color);
12
+ `),ue("word-wrap",[H("pre",`
13
+ white-space: pre-wrap;
14
+ word-break: break-all;
15
+ `)]),H("pre",`
16
+ margin: 0;
17
+ line-height: inherit;
18
+ font-size: inherit;
19
+ font-family: inherit;
20
+ `),H("[class^=hljs]",`
21
+ color: var(--n-text-color);
22
+ transition:
23
+ color .3s var(--n-bezier),
24
+ background-color .3s var(--n-bezier);
25
+ `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment,
26
+ ${t} .hljs-quote {
27
+ color: var(--n-mono-3);
28
+ font-style: italic;
29
+ }`,`${t} .hljs-doctag,
30
+ ${t} .hljs-keyword,
31
+ ${t} .hljs-formula {
32
+ color: var(--n-hue-3);
33
+ }`,`${t} .hljs-section,
34
+ ${t} .hljs-name,
35
+ ${t} .hljs-selector-tag,
36
+ ${t} .hljs-deletion,
37
+ ${t} .hljs-subst {
38
+ color: var(--n-hue-5);
39
+ }`,`${t} .hljs-literal {
40
+ color: var(--n-hue-1);
41
+ }`,`${t} .hljs-string,
42
+ ${t} .hljs-regexp,
43
+ ${t} .hljs-addition,
44
+ ${t} .hljs-attribute,
45
+ ${t} .hljs-meta-string {
46
+ color: var(--n-hue-4);
47
+ }`,`${t} .hljs-built_in,
48
+ ${t} .hljs-class .hljs-title {
49
+ color: var(--n-hue-6-2);
50
+ }`,`${t} .hljs-attr,
51
+ ${t} .hljs-variable,
52
+ ${t} .hljs-template-variable,
53
+ ${t} .hljs-type,
54
+ ${t} .hljs-selector-class,
55
+ ${t} .hljs-selector-attr,
56
+ ${t} .hljs-selector-pseudo,
57
+ ${t} .hljs-number {
58
+ color: var(--n-hue-6);
59
+ }`,`${t} .hljs-symbol,
60
+ ${t} .hljs-bullet,
61
+ ${t} .hljs-link,
62
+ ${t} .hljs-meta,
63
+ ${t} .hljs-selector-id,
64
+ ${t} .hljs-title {
65
+ color: var(--n-hue-2);
66
+ }`,`${t} .hljs-emphasis {
67
+ font-style: italic;
68
+ }`,`${t} .hljs-strong {
69
+ font-weight: var(--n-font-weight-strong);
70
+ }`,`${t} .hljs-link {
71
+ text-decoration: underline;
72
+ }`]}]),co=Object.assign(Object.assign({},q.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),So=K({name:"Code",props:co,setup(e,{slots:t}){const{internalNoHighlight:l}=e,{mergedClsPrefixRef:u,inlineThemeDisabled:a}=le(),w=k(null),b=l?{value:void 0}:Je(e),x=(d,h,m)=>{const{value:S}=b;return!S||!(d&&S.getLanguage(d))?null:S.highlight(m?h.trim():h,{language:d}).value},$=E(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),s=()=>{if(t.default)return;const{value:d}=w;if(!d)return;const{language:h}=e,m=e.uri?window.decodeURIComponent(e.code):e.code;if(h){const j=x(h,m,e.trim);if(j!==null){if(e.inline)d.innerHTML=j;else{const _=d.querySelector(".__code__");_&&d.removeChild(_);const I=document.createElement("pre");I.className="__code__",I.innerHTML=j,d.appendChild(I)}return}}if(e.inline){d.textContent=m;return}const S=d.querySelector(".__code__");if(S)S.textContent=m;else{const j=document.createElement("pre");j.className="__code__",j.textContent=m,d.innerHTML="",d.appendChild(j)}};ie(s),U(G(e,"language"),s),U(G(e,"code"),s),l||U(b,s);const c=q("Code","-code",ao,so,e,u),g=E(()=>{const{common:{cubicBezierEaseInOut:d,fontFamilyMono:h},self:{textColor:m,fontSize:S,fontWeightStrong:j,lineNumberTextColor:_,"mono-3":I,"hue-1":Z,"hue-2":Q,"hue-3":A,"hue-4":X,"hue-5":C,"hue-5-2":J,"hue-6":W,"hue-6-2":T}}=c.value,{internalFontSize:p}=e;return{"--n-font-size":p?`${p}px`:S,"--n-font-family":h,"--n-font-weight-strong":j,"--n-bezier":d,"--n-text-color":m,"--n-mono-3":I,"--n-hue-1":Z,"--n-hue-2":Q,"--n-hue-3":A,"--n-hue-4":X,"--n-hue-5":C,"--n-hue-5-2":J,"--n-hue-6":W,"--n-hue-6-2":T,"--n-line-number-text-color":_}}),y=a?me("code",E(()=>`${e.internalFontSize||"a"}`),g,e):void 0;return{mergedClsPrefix:u,codeRef:w,mergedShowLineNumbers:$,lineNumbers:E(()=>{let d=1;const h=[];let m=!1;for(const S of e.code)S===`
73
+ `?(m=!0,h.push(d++)):m=!1;return m||h.push(d++),h.join(`
74
+ `)}),cssVars:a?void 0:g,themeClass:y?.themeClass,onRender:y?.onRender}},render(){var e,t;const{mergedClsPrefix:l,wordWrap:u,mergedShowLineNumbers:a,onRender:w}=this;return w?.(),n("code",{class:[`${l}-code`,this.themeClass,u&&`${l}-code--word-wrap`,a&&`${l}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},a?n("pre",{class:`${l}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function uo(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const ho=Ne({name:"Image",common:ge,peers:{Tooltip:_e},self:uo});function fo(){return n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"}))}function vo(){return n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"}))}function go(){return n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"}))}const pe=Object.assign(Object.assign({},q.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),be=we("n-image"),mo=H([H("body >",[R("image-container","position: fixed;")]),R("image-preview-container",`
75
+ position: fixed;
76
+ left: 0;
77
+ right: 0;
78
+ top: 0;
79
+ bottom: 0;
80
+ display: flex;
81
+ `),R("image-preview-overlay",`
82
+ z-index: -1;
83
+ position: absolute;
84
+ left: 0;
85
+ right: 0;
86
+ top: 0;
87
+ bottom: 0;
88
+ background: rgba(0, 0, 0, .3);
89
+ `,[he()]),R("image-preview-toolbar",`
90
+ z-index: 1;
91
+ position: absolute;
92
+ left: 50%;
93
+ transform: translateX(-50%);
94
+ border-radius: var(--n-toolbar-border-radius);
95
+ height: 48px;
96
+ bottom: 40px;
97
+ padding: 0 12px;
98
+ background: var(--n-toolbar-color);
99
+ box-shadow: var(--n-toolbar-box-shadow);
100
+ color: var(--n-toolbar-icon-color);
101
+ transition: color .3s var(--n-bezier);
102
+ display: flex;
103
+ align-items: center;
104
+ `,[R("base-icon",`
105
+ padding: 0 8px;
106
+ font-size: 28px;
107
+ cursor: pointer;
108
+ `),he()]),R("image-preview-wrapper",`
109
+ position: absolute;
110
+ left: 0;
111
+ right: 0;
112
+ top: 0;
113
+ bottom: 0;
114
+ display: flex;
115
+ pointer-events: none;
116
+ `,[He()]),R("image-preview",`
117
+ user-select: none;
118
+ -webkit-user-select: none;
119
+ pointer-events: all;
120
+ margin: auto;
121
+ max-height: calc(100vh - 32px);
122
+ max-width: calc(100vw - 32px);
123
+ transition: transform .3s var(--n-bezier);
124
+ `),R("image",`
125
+ display: inline-flex;
126
+ max-height: 100%;
127
+ max-width: 100%;
128
+ `,[Be("preview-disabled",`
129
+ cursor: pointer;
130
+ `),H("img",`
131
+ border-radius: inherit;
132
+ `)])]),Y=32,wo=K({name:"ImagePreview",props:Object.assign(Object.assign({},pe),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=q("Image","-image",mo,ho,e,G(e,"clsPrefix"));let l=null;const u=k(null),a=k(null),w=k(void 0),b=k(!1),x=k(!1),{localeRef:$}=Ve("Image");function s(){const{value:o}=a;if(!l||!o)return;const{style:r}=o,i=l.getBoundingClientRect(),f=i.left+i.width/2,v=i.top+i.height/2;r.transformOrigin=`${f}px ${v}px`}function c(o){var r,i;switch(o.key){case" ":o.preventDefault();break;case"ArrowLeft":(r=e.onPrev)===null||r===void 0||r.call(e);break;case"ArrowRight":(i=e.onNext)===null||i===void 0||i.call(e);break;case"Escape":ae();break}}U(b,o=>{o?ne("keydown",document,c):F("keydown",document,c)}),Ce(()=>{F("keydown",document,c)});let g=0,y=0,d=0,h=0,m=0,S=0,j=0,_=0,I=!1;function Z(o){const{clientX:r,clientY:i}=o;d=r-g,h=i-y,Ye(z)}function Q(o){const{mouseUpClientX:r,mouseUpClientY:i,mouseDownClientX:f,mouseDownClientY:v}=o,L=f-r,P=v-i,O=`vertical${P>0?"Top":"Bottom"}`,N=`horizontal${L>0?"Left":"Right"}`;return{moveVerticalDirection:O,moveHorizontalDirection:N,deltaHorizontal:L,deltaVertical:P}}function A(o){const{value:r}=u;if(!r)return{offsetX:0,offsetY:0};const i=r.getBoundingClientRect(),{moveVerticalDirection:f,moveHorizontalDirection:v,deltaHorizontal:L,deltaVertical:P}=o||{};let O=0,N=0;return i.width<=window.innerWidth?O=0:i.left>0?O=(i.width-window.innerWidth)/2:i.right<window.innerWidth?O=-(i.width-window.innerWidth)/2:v==="horizontalRight"?O=Math.min((i.width-window.innerWidth)/2,m-(L??0)):O=Math.max(-((i.width-window.innerWidth)/2),m-(L??0)),i.height<=window.innerHeight?N=0:i.top>0?N=(i.height-window.innerHeight)/2:i.bottom<window.innerHeight?N=-(i.height-window.innerHeight)/2:f==="verticalBottom"?N=Math.min((i.height-window.innerHeight)/2,S-(P??0)):N=Math.max(-((i.height-window.innerHeight)/2),S-(P??0)),{offsetX:O,offsetY:N}}function X(o){F("mousemove",document,Z),F("mouseup",document,X);const{clientX:r,clientY:i}=o;I=!1;const f=Q({mouseUpClientX:r,mouseUpClientY:i,mouseDownClientX:j,mouseDownClientY:_}),v=A(f);d=v.offsetX,h=v.offsetY,z()}const C=re(be,null);function J(o){var r,i;if((i=(r=C?.previewedImgPropsRef.value)===null||r===void 0?void 0:r.onMousedown)===null||i===void 0||i.call(r,o),o.button!==0)return;const{clientX:f,clientY:v}=o;I=!0,g=f-d,y=v-h,m=d,S=h,j=f,_=v,z(),ne("mousemove",document,Z),ne("mouseup",document,X)}const W=1.5;let T=0,p=1,B=0;function xe(o){var r,i;(i=(r=C?.previewedImgPropsRef.value)===null||r===void 0?void 0:r.onDblclick)===null||i===void 0||i.call(r,o);const f=se();p=p===f?1:f,z()}function ee(){p=1,T=0}function Se(){var o;ee(),B=0,(o=e.onPrev)===null||o===void 0||o.call(e)}function Le(){var o;ee(),B=0,(o=e.onNext)===null||o===void 0||o.call(e)}function $e(){B-=90,z()}function ye(){B+=90,z()}function je(){const{value:o}=u;if(!o)return 1;const{innerWidth:r,innerHeight:i}=window,f=Math.max(1,o.naturalHeight/(i-Y)),v=Math.max(1,o.naturalWidth/(r-Y));return Math.max(3,f*2,v*2)}function se(){const{value:o}=u;if(!o)return 1;const{innerWidth:r,innerHeight:i}=window,f=o.naturalHeight/(i-Y),v=o.naturalWidth/(r-Y);return f<1&&v<1?1:Math.max(f,v)}function Pe(){const o=je();p<o&&(T+=1,p=Math.min(o,Math.pow(W,T)),z())}function ze(){if(p>.5){const o=p;T-=1,p=Math.max(.5,Math.pow(W,T));const r=o-p;z(!1);const i=A();p+=r,z(!1),p-=r,d=i.offsetX,h=i.offsetY,z()}}function Oe(){const o=w.value;o&&Qe(o,void 0)}function z(o=!0){var r;const{value:i}=u;if(!i)return;const{style:f}=i,v=Ae((r=C?.previewedImgPropsRef.value)===null||r===void 0?void 0:r.style);let L="";if(typeof v=="string")L=`${v};`;else for(const O in v)L+=`${Xe(O)}: ${v[O]};`;const P=`transform-origin: center; transform: translateX(${d}px) translateY(${h}px) rotate(${B}deg) scale(${p});`;I?f.cssText=`${L}cursor: grabbing; transition: none;${P}`:f.cssText=`${L}cursor: grab;${P}${o?"":"transition: none;"}`,o||i.offsetHeight}function ae(){b.value=!b.value,x.value=!0}function ke(){p=se(),T=Math.ceil(Math.log(p)/Math.log(W)),d=0,h=0,z()}const Ie={setPreviewSrc:o=>{w.value=o},setThumbnailEl:o=>{l=o},toggleShow:ae};function Me(o,r){if(e.showToolbarTooltip){const{value:i}=t;return n(Fe,{to:!1,theme:i.peers.Tooltip,themeOverrides:i.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>$.value[r],trigger:()=>o})}else return o}const ce=E(()=>{const{common:{cubicBezierEaseInOut:o},self:{toolbarIconColor:r,toolbarBorderRadius:i,toolbarBoxShadow:f,toolbarColor:v}}=t.value;return{"--n-bezier":o,"--n-toolbar-icon-color":r,"--n-toolbar-color":v,"--n-toolbar-border-radius":i,"--n-toolbar-box-shadow":f}}),{inlineThemeDisabled:de}=le(),D=de?me("image-preview",void 0,ce,e):void 0;return Object.assign({previewRef:u,previewWrapperRef:a,previewSrc:w,show:b,appear:Ze(),displayed:x,previewedImgProps:C?.previewedImgPropsRef,handleWheel(o){o.preventDefault()},handlePreviewMousedown:J,handlePreviewDblclick:xe,syncTransformOrigin:s,handleAfterLeave:()=>{ee(),B=0,x.value=!1},handleDragStart:o=>{var r,i;(i=(r=C?.previewedImgPropsRef.value)===null||r===void 0?void 0:r.onDragstart)===null||i===void 0||i.call(r,o),o.preventDefault()},zoomIn:Pe,zoomOut:ze,handleDownloadClick:Oe,rotateCounterclockwise:$e,rotateClockwise:ye,handleSwitchPrev:Se,handleSwitchNext:Le,withTooltip:Me,resizeToOrignalImageSize:ke,cssVars:de?void 0:ce,themeClass:D?.themeClass,onRender:D?.onRender},Ie)},render(){var e,t;const{clsPrefix:l,renderToolbar:u,withTooltip:a}=this,w=a(n(M,{clsPrefix:l,onClick:this.handleSwitchPrev},{default:fo}),"tipPrevious"),b=a(n(M,{clsPrefix:l,onClick:this.handleSwitchNext},{default:vo}),"tipNext"),x=a(n(M,{clsPrefix:l,onClick:this.rotateCounterclockwise},{default:()=>n(no,null)}),"tipCounterclockwise"),$=a(n(M,{clsPrefix:l,onClick:this.rotateClockwise},{default:()=>n(to,null)}),"tipClockwise"),s=a(n(M,{clsPrefix:l,onClick:this.resizeToOrignalImageSize},{default:()=>n(oo,null)}),"tipOriginalSize"),c=a(n(M,{clsPrefix:l,onClick:this.zoomOut},{default:()=>n(ro,null)}),"tipZoomOut"),g=a(n(M,{clsPrefix:l,onClick:this.handleDownloadClick},{default:()=>n(eo,null)}),"tipDownload"),y=a(n(M,{clsPrefix:l,onClick:this.toggleShow},{default:go}),"tipClose"),d=a(n(M,{clsPrefix:l,onClick:this.zoomIn},{default:()=>n(io,null)}),"tipZoomIn");return n(oe,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),n(De,{show:this.show},{default:()=>{var h;return this.show||this.displayed?((h=this.onRender)===null||h===void 0||h.call(this),fe(n("div",{class:[`${l}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},n(te,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?n("div",{class:`${l}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?n(te,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?n("div",{class:`${l}-image-preview-toolbar`},u?u({nodes:{prev:w,next:b,rotateCounterclockwise:x,rotateClockwise:$,resizeToOriginalSize:s,zoomOut:c,zoomIn:d,download:g,close:y}}):n(oe,null,this.onPrev?n(oe,null,w,b):null,x,$,s,c,d,g,y)):null}):null,n(te,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:m={}}=this;return fe(n("div",{class:`${l}-image-preview-wrapper`,ref:"previewWrapperRef"},n("img",Object.assign({},m,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${l}-image-preview`,m.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[We,this.show]])}})),[[Ee,{enabled:this.show}]])):null}}))}}),Co=we("n-image-group"),po=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},pe),Lo=K({name:"Image",props:po,slots:Object,inheritAttrs:!1,setup(e){const t=k(null),l=k(!1),u=k(null),a=re(Co,null),{mergedClsPrefixRef:w}=a||le(e),b={click:()=>{if(e.previewDisabled||l.value)return;const s=e.previewSrc||e.src;if(a){a.setPreviewSrc(s),a.setThumbnailEl(t.value),a.toggleShow();return}const{value:c}=u;c&&(c.setPreviewSrc(s),c.setThumbnailEl(t.value),c.toggleShow())}},x=k(!e.lazy);ie(()=>{var s;(s=t.value)===null||s===void 0||s.setAttribute("data-group-id",a?.groupId||"")}),ie(()=>{if(e.lazy&&e.intersectionObserverOptions){let s;const c=ve(()=>{s?.(),s=void 0,s=Ke(t.value,e.intersectionObserverOptions,x)});Ce(()=>{c(),s?.()})}}),ve(()=>{var s;e.src||((s=e.imgProps)===null||s===void 0||s.src),l.value=!1});const $=k(!1);return qe(be,{previewedImgPropsRef:G(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:w,groupId:a?.groupId,previewInstRef:u,imageRef:t,showError:l,shouldStartLoading:x,loaded:$,mergedOnClick:s=>{var c,g;b.click(),(g=(c=e.imgProps)===null||c===void 0?void 0:c.onClick)===null||g===void 0||g.call(c,s)},mergedOnError:s=>{if(!x.value)return;l.value=!0;const{onError:c,imgProps:{onError:g}={}}=e;c?.(s),g?.(s)},mergedOnLoad:s=>{const{onLoad:c,imgProps:{onLoad:g}={}}=e;c?.(s),g?.(s),$.value=!0}},b)},render(){var e,t;const{mergedClsPrefix:l,imgProps:u={},loaded:a,$attrs:w,lazy:b}=this,x=Ue(this.$slots.error,()=>[]),$=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||u.src,c=this.showError&&x.length?x:n("img",Object.assign(Object.assign({},u),{ref:"imageRef",width:this.width||u.width,height:this.height||u.height,src:this.showError?this.fallbackSrc:b&&this.intersectionObserverOptions?this.shouldStartLoading?s:void 0:s,alt:this.alt||u.alt,"aria-label":this.alt||u.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:Ge&&b&&!this.intersectionObserverOptions?"lazy":"eager",style:[u.style||"",$&&!a?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return n("div",Object.assign({},w,{role:"none",class:[w.class,`${l}-image`,(this.previewDisabled||this.showError)&&`${l}-image--preview-disabled`]}),this.groupId?c:n(wo,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:l,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},{default:()=>c}),!a&&$)}});export{Lo as N,So as a};
@@ -0,0 +1,13 @@
1
+ import{d as re,p as a,a1 as Me,a5 as Te,a4 as Se,a6 as De,ax as Pe,a7 as q,E as Ce,q as X,aa as Fe,ad as le,ab as Oe,ac as Ae,r as B,ae as _e,af as ke,aB as g,x as Ue,aC as Ee,s as $e,aD as He,aE as J,a8 as Q,aF as Y,a9 as Le,ai as I,ah as je,aG as Z}from"./index-DJdQ0nV5.js";const ze=re({name:"Remove",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
2
+ fill: none;
3
+ stroke: currentColor;
4
+ stroke-linecap: round;
5
+ stroke-linejoin: round;
6
+ stroke-width: 32px;
7
+ `}))}});function Ge(n){const{textColorDisabled:i}=n;return{iconColorDisabled:i}}const Ke=Me({name:"InputNumber",common:De,peers:{Button:Se,Input:Te},self:Ge}),We=Pe([q("input-number-suffix",`
8
+ display: inline-block;
9
+ margin-right: 10px;
10
+ `),q("input-number-prefix",`
11
+ display: inline-block;
12
+ margin-left: 10px;
13
+ `)]);function qe(n){return n==null||typeof n=="string"&&n.trim()===""?null:Number(n)}function Xe(n){return n.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(n)||/^-?\d*$/.test(n))||n==="-"||n==="-0"}function H(n){return n==null?!0:!Number.isNaN(n)}function ee(n,i){return typeof n!="number"?"":i===void 0?String(n):n.toFixed(i)}function L(n){if(n===null)return null;if(typeof n=="number")return n;{const i=Number(n);return Number.isNaN(i)?null:i}}const ne=800,te=100,Je=Object.assign(Object.assign({},le.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),Ye=re({name:"InputNumber",props:Je,slots:Object,setup(n){const{mergedBorderedRef:i,mergedClsPrefixRef:p,mergedRtlRef:D}=Fe(n),u=le("InputNumber","-input-number",We,Ke,n,p),{localeRef:v}=Oe("InputNumber"),R=Ae(n),{mergedSizeRef:ie,mergedDisabledRef:ae,mergedStatusRef:ue}=R,d=B(null),j=B(null),z=B(null),P=B(n.defaultValue),oe=_e(n,"value"),f=ke(oe,P),h=B(""),C=e=>{const t=String(e).split(".")[1];return t?t.length:0},se=e=>{const t=[n.min,n.max,n.step,e].map(r=>r===void 0?0:C(r));return Math.max(...t)},de=g(()=>{const{placeholder:e}=n;return e!==void 0?e:v.value.placeholder}),M=g(()=>{const e=L(n.step);return e!==null?e===0?1:Math.abs(e):1}),G=g(()=>{const e=L(n.min);return e!==null?e:null}),K=g(()=>{const e=L(n.max);return e!==null?e:null}),b=()=>{const{value:e}=f;if(H(e)){const{format:t,precision:r}=n;t?h.value=t(e):e===null||r===void 0||C(e)>r?h.value=ee(e,void 0):h.value=ee(e,r)}else h.value=String(e)};b();const V=e=>{const{value:t}=f;if(e===t){b();return}const{"onUpdate:value":r,onUpdateValue:l,onChange:s}=n,{nTriggerFormInput:c,nTriggerFormChange:x}=R;s&&I(s,e),l&&I(l,e),r&&I(r,e),P.value=e,c(),x()},o=({offset:e,doUpdateIfValid:t,fixPrecision:r,isInputing:l})=>{const{value:s}=h;if(l&&Xe(s))return!1;const c=(n.parse||qe)(s);if(c===null)return t&&V(null),null;if(H(c)){const x=C(c),{precision:N}=n;if(N!==void 0&&N<x&&!r)return!1;let m=Number.parseFloat((c+e).toFixed(N??se(c)));if(H(m)){const{value:E}=K,{value:$}=G;if(E!==null&&m>E){if(!t||l)return!1;m=E}if($!==null&&m<$){if(!t||l)return!1;m=$}return n.validator&&!n.validator(m)?!1:(t&&V(m),m)}}return!1},fe=g(()=>o({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),F=g(()=>{const{value:e}=f;if(n.validator&&e===null)return!1;const{value:t}=M;return o({offset:-t,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),O=g(()=>{const{value:e}=f;if(n.validator&&e===null)return!1;const{value:t}=M;return o({offset:+t,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function ce(e){const{onFocus:t}=n,{nTriggerFormFocus:r}=R;t&&I(t,e),r()}function me(e){var t,r;if(e.target===((t=d.value)===null||t===void 0?void 0:t.wrapperElRef))return;const l=o({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(l!==!1){const x=(r=d.value)===null||r===void 0?void 0:r.inputElRef;x&&(x.value=String(l||"")),f.value===l&&b()}else b();const{onBlur:s}=n,{nTriggerFormBlur:c}=R;s&&I(s,e),c(),je(()=>{b()})}function ve(e){const{onClear:t}=n;t&&I(t,e)}function A(){const{value:e}=O;if(!e){U();return}const{value:t}=f;if(t===null)n.validator||V(W());else{const{value:r}=M;o({offset:r,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function _(){const{value:e}=F;if(!e){k();return}const{value:t}=f;if(t===null)n.validator||V(W());else{const{value:r}=M;o({offset:-r,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const he=ce,ge=me;function W(){if(n.validator)return null;const{value:e}=G,{value:t}=K;return e!==null?Math.max(0,e):t!==null?Math.min(0,t):0}function pe(e){ve(e),V(null)}function be(e){var t,r,l;!((t=z.value)===null||t===void 0)&&t.$el.contains(e.target)&&e.preventDefault(),!((r=j.value)===null||r===void 0)&&r.$el.contains(e.target)&&e.preventDefault(),(l=d.value)===null||l===void 0||l.activate()}let y=null,w=null,T=null;function k(){T&&(window.clearTimeout(T),T=null),y&&(window.clearInterval(y),y=null)}let S=null;function U(){S&&(window.clearTimeout(S),S=null),w&&(window.clearInterval(w),w=null)}function xe(){k(),T=window.setTimeout(()=>{y=window.setInterval(()=>{_()},te)},ne),Z("mouseup",document,k,{once:!0})}function Ie(){U(),S=window.setTimeout(()=>{w=window.setInterval(()=>{A()},te)},ne),Z("mouseup",document,U,{once:!0})}const Ve=()=>{w||A()},ye=()=>{y||_()};function we(e){var t,r;if(e.key==="Enter"){if(e.target===((t=d.value)===null||t===void 0?void 0:t.wrapperElRef))return;o({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((r=d.value)===null||r===void 0||r.deactivate())}else if(e.key==="ArrowUp"){if(!O.value||n.keyboard.ArrowUp===!1)return;e.preventDefault(),o({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&A()}else if(e.key==="ArrowDown"){if(!F.value||n.keyboard.ArrowDown===!1)return;e.preventDefault(),o({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&_()}}function Ne(e){h.value=e,n.updateValueOnInput&&!n.format&&!n.parse&&n.precision===void 0&&o({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}Ue(f,()=>{b()});const Be={focus:()=>{var e;return(e=d.value)===null||e===void 0?void 0:e.focus()},blur:()=>{var e;return(e=d.value)===null||e===void 0?void 0:e.blur()},select:()=>{var e;return(e=d.value)===null||e===void 0?void 0:e.select()}},Re=Ee("InputNumber",D,p);return Object.assign(Object.assign({},Be),{rtlEnabled:Re,inputInstRef:d,minusButtonInstRef:j,addButtonInstRef:z,mergedClsPrefix:p,mergedBordered:i,uncontrolledValue:P,mergedValue:f,mergedPlaceholder:de,displayedValueInvalid:fe,mergedSize:ie,mergedDisabled:ae,displayedValue:h,addable:O,minusable:F,mergedStatus:ue,handleFocus:he,handleBlur:ge,handleClear:pe,handleMouseDown:be,handleAddClick:Ve,handleMinusClick:ye,handleAddMousedown:Ie,handleMinusMousedown:xe,handleKeyDown:we,handleUpdateDisplayedValue:Ne,mergedTheme:u,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:$e(()=>{const{self:{iconColorDisabled:e}}=u.value,[t,r,l,s]=He(e);return{textColorTextDisabled:`rgb(${t}, ${r}, ${l})`,opacityDisabled:`${s}`}})})},render(){const{mergedClsPrefix:n,$slots:i}=this,p=()=>a(Y,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>J(i["minus-icon"],()=>[a(Q,{clsPrefix:n},{default:()=>a(ze,null)})])}),D=()=>a(Y,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>J(i["add-icon"],()=>[a(Q,{clsPrefix:n},{default:()=>a(Le,null)})])});return a("div",{class:[`${n}-input-number`,this.rtlEnabled&&`${n}-input-number--rtl`]},a(Ce,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var u;return this.showButton&&this.buttonPlacement==="both"?[p(),X(i.prefix,v=>v?a("span",{class:`${n}-input-number-prefix`},v):null)]:(u=i.prefix)===null||u===void 0?void 0:u.call(i)},suffix:()=>{var u;return this.showButton?[X(i.suffix,v=>v?a("span",{class:`${n}-input-number-suffix`},v):null),this.buttonPlacement==="right"?p():null,D()]:(u=i.suffix)===null||u===void 0?void 0:u.call(i)}}))}});export{Ye as N};
@@ -0,0 +1,13 @@
1
+ import{d as re,p as a,a1 as Me,a5 as Te,a4 as Se,a6 as De,ax as Pe,a7 as q,E as Ce,q as X,aa as Fe,ad as le,ab as Oe,ac as Ae,r as B,ae as _e,af as ke,aB as g,x as Ue,aC as Ee,s as $e,aD as He,aE as J,a8 as Q,aF as Y,a9 as Le,ai as I,ah as je,aG as Z}from"./index-03UGSOxl.js";const ze=re({name:"Remove",render(){return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},a("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
2
+ fill: none;
3
+ stroke: currentColor;
4
+ stroke-linecap: round;
5
+ stroke-linejoin: round;
6
+ stroke-width: 32px;
7
+ `}))}});function Ge(n){const{textColorDisabled:i}=n;return{iconColorDisabled:i}}const Ke=Me({name:"InputNumber",common:De,peers:{Button:Se,Input:Te},self:Ge}),We=Pe([q("input-number-suffix",`
8
+ display: inline-block;
9
+ margin-right: 10px;
10
+ `),q("input-number-prefix",`
11
+ display: inline-block;
12
+ margin-left: 10px;
13
+ `)]);function qe(n){return n==null||typeof n=="string"&&n.trim()===""?null:Number(n)}function Xe(n){return n.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(n)||/^-?\d*$/.test(n))||n==="-"||n==="-0"}function H(n){return n==null?!0:!Number.isNaN(n)}function ee(n,i){return typeof n!="number"?"":i===void 0?String(n):n.toFixed(i)}function L(n){if(n===null)return null;if(typeof n=="number")return n;{const i=Number(n);return Number.isNaN(i)?null:i}}const ne=800,te=100,Je=Object.assign(Object.assign({},le.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),Ye=re({name:"InputNumber",props:Je,slots:Object,setup(n){const{mergedBorderedRef:i,mergedClsPrefixRef:p,mergedRtlRef:D}=Fe(n),u=le("InputNumber","-input-number",We,Ke,n,p),{localeRef:v}=Oe("InputNumber"),R=Ae(n),{mergedSizeRef:ie,mergedDisabledRef:ae,mergedStatusRef:ue}=R,d=B(null),j=B(null),z=B(null),P=B(n.defaultValue),oe=_e(n,"value"),f=ke(oe,P),h=B(""),C=e=>{const t=String(e).split(".")[1];return t?t.length:0},se=e=>{const t=[n.min,n.max,n.step,e].map(r=>r===void 0?0:C(r));return Math.max(...t)},de=g(()=>{const{placeholder:e}=n;return e!==void 0?e:v.value.placeholder}),M=g(()=>{const e=L(n.step);return e!==null?e===0?1:Math.abs(e):1}),G=g(()=>{const e=L(n.min);return e!==null?e:null}),K=g(()=>{const e=L(n.max);return e!==null?e:null}),b=()=>{const{value:e}=f;if(H(e)){const{format:t,precision:r}=n;t?h.value=t(e):e===null||r===void 0||C(e)>r?h.value=ee(e,void 0):h.value=ee(e,r)}else h.value=String(e)};b();const V=e=>{const{value:t}=f;if(e===t){b();return}const{"onUpdate:value":r,onUpdateValue:l,onChange:s}=n,{nTriggerFormInput:c,nTriggerFormChange:x}=R;s&&I(s,e),l&&I(l,e),r&&I(r,e),P.value=e,c(),x()},o=({offset:e,doUpdateIfValid:t,fixPrecision:r,isInputing:l})=>{const{value:s}=h;if(l&&Xe(s))return!1;const c=(n.parse||qe)(s);if(c===null)return t&&V(null),null;if(H(c)){const x=C(c),{precision:N}=n;if(N!==void 0&&N<x&&!r)return!1;let m=Number.parseFloat((c+e).toFixed(N??se(c)));if(H(m)){const{value:E}=K,{value:$}=G;if(E!==null&&m>E){if(!t||l)return!1;m=E}if($!==null&&m<$){if(!t||l)return!1;m=$}return n.validator&&!n.validator(m)?!1:(t&&V(m),m)}}return!1},fe=g(()=>o({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),F=g(()=>{const{value:e}=f;if(n.validator&&e===null)return!1;const{value:t}=M;return o({offset:-t,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),O=g(()=>{const{value:e}=f;if(n.validator&&e===null)return!1;const{value:t}=M;return o({offset:+t,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function ce(e){const{onFocus:t}=n,{nTriggerFormFocus:r}=R;t&&I(t,e),r()}function me(e){var t,r;if(e.target===((t=d.value)===null||t===void 0?void 0:t.wrapperElRef))return;const l=o({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(l!==!1){const x=(r=d.value)===null||r===void 0?void 0:r.inputElRef;x&&(x.value=String(l||"")),f.value===l&&b()}else b();const{onBlur:s}=n,{nTriggerFormBlur:c}=R;s&&I(s,e),c(),je(()=>{b()})}function ve(e){const{onClear:t}=n;t&&I(t,e)}function A(){const{value:e}=O;if(!e){U();return}const{value:t}=f;if(t===null)n.validator||V(W());else{const{value:r}=M;o({offset:r,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function _(){const{value:e}=F;if(!e){k();return}const{value:t}=f;if(t===null)n.validator||V(W());else{const{value:r}=M;o({offset:-r,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const he=ce,ge=me;function W(){if(n.validator)return null;const{value:e}=G,{value:t}=K;return e!==null?Math.max(0,e):t!==null?Math.min(0,t):0}function pe(e){ve(e),V(null)}function be(e){var t,r,l;!((t=z.value)===null||t===void 0)&&t.$el.contains(e.target)&&e.preventDefault(),!((r=j.value)===null||r===void 0)&&r.$el.contains(e.target)&&e.preventDefault(),(l=d.value)===null||l===void 0||l.activate()}let y=null,w=null,T=null;function k(){T&&(window.clearTimeout(T),T=null),y&&(window.clearInterval(y),y=null)}let S=null;function U(){S&&(window.clearTimeout(S),S=null),w&&(window.clearInterval(w),w=null)}function xe(){k(),T=window.setTimeout(()=>{y=window.setInterval(()=>{_()},te)},ne),Z("mouseup",document,k,{once:!0})}function Ie(){U(),S=window.setTimeout(()=>{w=window.setInterval(()=>{A()},te)},ne),Z("mouseup",document,U,{once:!0})}const Ve=()=>{w||A()},ye=()=>{y||_()};function we(e){var t,r;if(e.key==="Enter"){if(e.target===((t=d.value)===null||t===void 0?void 0:t.wrapperElRef))return;o({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((r=d.value)===null||r===void 0||r.deactivate())}else if(e.key==="ArrowUp"){if(!O.value||n.keyboard.ArrowUp===!1)return;e.preventDefault(),o({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&A()}else if(e.key==="ArrowDown"){if(!F.value||n.keyboard.ArrowDown===!1)return;e.preventDefault(),o({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&_()}}function Ne(e){h.value=e,n.updateValueOnInput&&!n.format&&!n.parse&&n.precision===void 0&&o({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}Ue(f,()=>{b()});const Be={focus:()=>{var e;return(e=d.value)===null||e===void 0?void 0:e.focus()},blur:()=>{var e;return(e=d.value)===null||e===void 0?void 0:e.blur()},select:()=>{var e;return(e=d.value)===null||e===void 0?void 0:e.select()}},Re=Ee("InputNumber",D,p);return Object.assign(Object.assign({},Be),{rtlEnabled:Re,inputInstRef:d,minusButtonInstRef:j,addButtonInstRef:z,mergedClsPrefix:p,mergedBordered:i,uncontrolledValue:P,mergedValue:f,mergedPlaceholder:de,displayedValueInvalid:fe,mergedSize:ie,mergedDisabled:ae,displayedValue:h,addable:O,minusable:F,mergedStatus:ue,handleFocus:he,handleBlur:ge,handleClear:pe,handleMouseDown:be,handleAddClick:Ve,handleMinusClick:ye,handleAddMousedown:Ie,handleMinusMousedown:xe,handleKeyDown:we,handleUpdateDisplayedValue:Ne,mergedTheme:u,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:$e(()=>{const{self:{iconColorDisabled:e}}=u.value,[t,r,l,s]=He(e);return{textColorTextDisabled:`rgb(${t}, ${r}, ${l})`,opacityDisabled:`${s}`}})})},render(){const{mergedClsPrefix:n,$slots:i}=this,p=()=>a(Y,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>J(i["minus-icon"],()=>[a(Q,{clsPrefix:n},{default:()=>a(ze,null)})])}),D=()=>a(Y,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>J(i["add-icon"],()=>[a(Q,{clsPrefix:n},{default:()=>a(Le,null)})])});return a("div",{class:[`${n}-input-number`,this.rtlEnabled&&`${n}-input-number--rtl`]},a(Ce,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var u;return this.showButton&&this.buttonPlacement==="both"?[p(),X(i.prefix,v=>v?a("span",{class:`${n}-input-number-prefix`},v):null)]:(u=i.prefix)===null||u===void 0?void 0:u.call(i)},suffix:()=>{var u;return this.showButton?[X(i.suffix,v=>v?a("span",{class:`${n}-input-number-suffix`},v):null),this.buttonPlacement==="right"?p():null,D()]:(u=i.suffix)===null||u===void 0?void 0:u.call(i)}}))}});export{Ye as N};