athar-mcp 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/dashboard/.output/nitro.json +15 -0
  2. package/dashboard/.output/public/_fonts/31PZhXd_YTCmsoiPQZc-xVtAWAkLogRFRj5mWplmKFE-6WsTw05QKugcwLySGc_b9CIheG8j8LRyo47qPL430Mk.woff2 +0 -0
  3. package/dashboard/.output/public/_fonts/3e3wuf-V_7icWvlsSS3Ud6R1mFSymwsfz35VcqiVjOk-jnii4_jMs7YAJOhzZP3bGdrbXGt5dYv8_t_rhpHzpcQ.woff2 +0 -0
  4. package/dashboard/.output/public/_fonts/3mk1pEYaO7RuhctnlpKcyb7yjVLICedncSfY13ffbM8-vJidvBvYJRk77_zQIyVpja44ymm1FQTiYKUcM_aD5Sg.woff2 +0 -0
  5. package/dashboard/.output/public/_fonts/9FWLUGCSCYLRIRMtCzLrt4Go7DMFXOeN_pyCOJD_44Y-Yh2wNaqrq_e759vVlc3tX81lMwRu9ktkQJX_Svgs-VI.woff2 +0 -0
  6. package/dashboard/.output/public/_fonts/9IZYb3o3tpRXPqjzNd4r3vIIohLuRBC5-h_ByvqRowU-ZgMUMfi6FcHpaV_ucYIWcBvLG6geajFq70Smps0DAj0.woff2 +0 -0
  7. package/dashboard/.output/public/_fonts/AA0_6TP-Ed9gQINhOsvbweBE3xLQgxmg6pXqHmvCwsM-egZLwYC5qVnfGWql7G5NfYTIiMP1PB_tQWIq5f7S-0k.woff2 +0 -0
  8. package/dashboard/.output/public/_fonts/BQnDL9FFy0Q_jvURlmv87luvmXLSMbSuXsfZv_R2Rkk-y5MVrLtP4J_1al8rz8R-MDaUOMAHckAWCwDrKhw25fY.woff2 +0 -0
  9. package/dashboard/.output/public/_fonts/Df7M9JXECnQBPeMk0JlWv5oI4E80OSjKvG82PCAX-MI-aXpKyr1n0W6NWbCApKANrm9O50H_fjFMdBzwfTY75iM.woff2 +0 -0
  10. package/dashboard/.output/public/_fonts/F00Bxq4ciZESODR5suhK3xDWcsQ9RLj9SyZQEevpEsw-BLNEvb6wAcL3fpb4n4d3zVEKUoa2hsUKxxkf3YdvJKc.woff2 +0 -0
  11. package/dashboard/.output/public/_fonts/HsvEuay0nMOs_2ObxMGaCaFlKdRnnDmfWeFTeRbjAVE-UeGuS_NHKiKleun7gcayWaUNaV2zWnEeGUxJVueLYm0.woff +0 -0
  12. package/dashboard/.output/public/_fonts/JSrPAbQHsQEdUrIE5Ts6fIQ2ymsa4i7HhiCpui6ulCc-_AoyGWssOn06OMh3ZY_GddBBPRny4Igxin4fT_1K6F4.woff2 +0 -0
  13. package/dashboard/.output/public/_fonts/Jtqhy44WKYEjGWTSusP5YJfJv7Wf74QqgkBOI9u_77s-Rl_Bht5SvmaotE20bkavBEAJEEGEa0hcz3d_8yOeXmw.woff +0 -0
  14. package/dashboard/.output/public/_fonts/KOrIgK47CByspZJWjOLg8AL2ADg9uFcNjZd9W78jrmM-dU37DP77KwUzMqqldljJHhSe3lJpaSfI9HPfiVAxPOM.woff2 +0 -0
  15. package/dashboard/.output/public/_fonts/M-60tFLmAJxdPjHsK-2ILWom5zPbu37lb3Qex2waL14-A9y4QcXALPi_RvQsmRsSFUxrT3_J213W4zPFIXetlbw.woff2 +0 -0
  16. package/dashboard/.output/public/_fonts/NwLHmPccLrJlBVGp4QRXOLZaNI0M_K6XuSwyVjpr47g-jl4tqz8gcsgAJDPcbl5roY78zy31I6Rq51WBLpZngFg.woff2 +0 -0
  17. package/dashboard/.output/public/_fonts/T-ozk-QJ_Ck37B2RHPl2i-s_gAGGo7suFgagWoJ8bO4-maDXQ_nEXKAaLHm4Joud3DJR9EVzS7QXWMWK8YOTIcs.woff2 +0 -0
  18. package/dashboard/.output/public/_fonts/TTYbISAfwy-y4uVGS9AH32sK7b2xJsoCESo64ryf8LU-y87nRMqBGo42rUOW9tWZa06o4oTa0USJrAMMoKDamgs.woff2 +0 -0
  19. package/dashboard/.output/public/_fonts/Y_5DOsLit49q2i2tbcNxnyUen9__GPCX8mwAi03q1aA-pBCjVKDT5tBT3BJckh9uzNkfUWeUIBPz9Y8T55vcj8E.woff2 +0 -0
  20. package/dashboard/.output/public/_fonts/ZHaz3DhCHNWhsElqYfuM71rfBBDgjuU2sd34vaYJwQg-71NZaZSGjxzAGjCMnCc2zS5rS_EGA0xHKPGCggWuXik.woff +0 -0
  21. package/dashboard/.output/public/_fonts/_lyVj3lEzRng_G7gZNcCmL83BnMEos-Hf8bpHLMzGQI-zsVE1T2QbmkXlEbQhs2gb3j3VBOOGhzqyW_ZW_0s3F8.woff2 +0 -0
  22. package/dashboard/.output/public/_fonts/bUcXp2ExGsFoCjH4L_AiPGX0TLCAgnqR8nvW7SxSJYQ-kvm9UWc_MFZW_r85yX6uPdzXVmdcUOio_Wb1x_7QdXM.woff2 +0 -0
  23. package/dashboard/.output/public/_fonts/f3COenLcoezM74LmVz7-HHQTyPKopVoMY6x2syLMzQE-shPZYE7IAjZWz4okT_CWn96WfGzoLhasK43_mhj3CZI.woff2 +0 -0
  24. package/dashboard/.output/public/_fonts/h9PwCjip_BNPVO50hT4v29USWFv6H3ZlYx_IestfqgY-sYfLVuZXl9E1aYbn1S0pAr4zfdQ_WT7iBZhrgQY6N-4.woff2 +0 -0
  25. package/dashboard/.output/public/_fonts/l00UCz_-QvI_NO8AGcu7ooAcrFDlxYUdxCSCh6gBwd4-vPjTZ3ztgw27A2TnHeCycxPvUtXWEVpG33_97ra6su8.woff2 +0 -0
  26. package/dashboard/.output/public/_fonts/nuenOq7ZFSZ65QudJO7uQ0sOjDqow2WjfXrQh4S9gEc-uF81rxcswER5srfhzyLfPoGlKNAIt2C_BvkXFOc19rw.woff2 +0 -0
  27. package/dashboard/.output/public/_fonts/pWMvGwciZ-EfQsfR2ueelhC7Jnt5K-8Px8PjPK0mDII-eT9iD0iZ9WWhTJs6V5GxXr0iaUwx_WxgGGriOiGb81o.woff2 +0 -0
  28. package/dashboard/.output/public/_fonts/sqxfSu-14RfawvZSbzb3mPoBYaXxmTGIac1Kk0GVk_w-oe_5KiWXPVdvpURHWSiaIjA1N_zLqpjSzmfpwRHr7CQ.woff2 +0 -0
  29. package/dashboard/.output/public/_fonts/wMdBqIWtsuS5eTYXRFwACf6n6oW2h-j42f90vWIPIO8-vrVOc_lrScYZMKO0_R3igKLheJfV2qZ3c5qlWOY0LDQ.woff +0 -0
  30. package/dashboard/.output/public/_fonts/y3mP_zJcojQwJn30TpF_XxDzgeM6Nbk7MaRg1Ne0YcI-lFx13nqMCMgk_S70gRmwEHXlE5BLp1B4W82RpFihpMs.woff2 +0 -0
  31. package/dashboard/.output/public/_fonts/zr3WxpLd5PmlBr7e4PWGkhZv6XTg70Pi4sCbC-CEV0Q-v2yL98XOiD3FkbiYlYYeAeTSVSkgAckeOp55Q5kHJmU.woff2 +0 -0
  32. package/dashboard/.output/public/_nuxt/B0Bu7wg2.js +1 -0
  33. package/dashboard/.output/public/_nuxt/BNBS3IWx.js +1 -0
  34. package/dashboard/.output/public/_nuxt/Ba3u15ft.js +1 -0
  35. package/dashboard/.output/public/_nuxt/CH7yjz82.js +4 -0
  36. package/dashboard/.output/public/_nuxt/COkkU9In.js +1 -0
  37. package/dashboard/.output/public/_nuxt/C_XEhq4z.js +1 -0
  38. package/dashboard/.output/public/_nuxt/YOlRD-cU.js +1 -0
  39. package/dashboard/.output/public/_nuxt/_id_.Dz86UAW3.css +1 -0
  40. package/dashboard/.output/public/_nuxt/builds/latest.json +1 -0
  41. package/dashboard/.output/public/_nuxt/builds/meta/a6e303b2-379a-45a9-8bdf-906e96134fda.json +1 -0
  42. package/dashboard/.output/public/_nuxt/entry.D51cHmax.css +1 -0
  43. package/dashboard/.output/public/_nuxt/error-404.C3kT2QX-.css +1 -0
  44. package/dashboard/.output/public/_nuxt/error-500.BW0Y54Of.css +1 -0
  45. package/dashboard/.output/public/_nuxt/fpe_5SoV.js +1 -0
  46. package/dashboard/.output/server/chunks/_/db.mjs +27 -0
  47. package/dashboard/.output/server/chunks/_/db.mjs.map +1 -0
  48. package/dashboard/.output/server/chunks/_/error-500.mjs +19 -0
  49. package/dashboard/.output/server/chunks/_/error-500.mjs.map +1 -0
  50. package/dashboard/.output/server/chunks/build/_id_-CQaF66RF.mjs +139 -0
  51. package/dashboard/.output/server/chunks/build/_id_-CQaF66RF.mjs.map +1 -0
  52. package/dashboard/.output/server/chunks/build/_id_-styles.DKwggH1p.mjs +8 -0
  53. package/dashboard/.output/server/chunks/build/_id_-styles.DKwggH1p.mjs.map +1 -0
  54. package/dashboard/.output/server/chunks/build/app-styles.nHRnXOH3.mjs +25 -0
  55. package/dashboard/.output/server/chunks/build/app-styles.nHRnXOH3.mjs.map +1 -0
  56. package/dashboard/.output/server/chunks/build/client.precomputed.mjs +4 -0
  57. package/dashboard/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  58. package/dashboard/.output/server/chunks/build/composables-lps5heb5.mjs +23 -0
  59. package/dashboard/.output/server/chunks/build/composables-lps5heb5.mjs.map +1 -0
  60. package/dashboard/.output/server/chunks/build/error-404-D0Xi6cQ6.mjs +92 -0
  61. package/dashboard/.output/server/chunks/build/error-404-D0Xi6cQ6.mjs.map +1 -0
  62. package/dashboard/.output/server/chunks/build/error-404-styles.C8lgdT6t.mjs +8 -0
  63. package/dashboard/.output/server/chunks/build/error-404-styles.C8lgdT6t.mjs.map +1 -0
  64. package/dashboard/.output/server/chunks/build/error-500-DabQpmqy.mjs +75 -0
  65. package/dashboard/.output/server/chunks/build/error-500-DabQpmqy.mjs.map +1 -0
  66. package/dashboard/.output/server/chunks/build/error-500-styles.Ccrcwcfa.mjs +8 -0
  67. package/dashboard/.output/server/chunks/build/error-500-styles.Ccrcwcfa.mjs.map +1 -0
  68. package/dashboard/.output/server/chunks/build/fetch-BlczD9wj.mjs +503 -0
  69. package/dashboard/.output/server/chunks/build/fetch-BlczD9wj.mjs.map +1 -0
  70. package/dashboard/.output/server/chunks/build/index-C-zhU_b9.mjs +174 -0
  71. package/dashboard/.output/server/chunks/build/index-C-zhU_b9.mjs.map +1 -0
  72. package/dashboard/.output/server/chunks/build/index-Dnk7jknb.mjs +154 -0
  73. package/dashboard/.output/server/chunks/build/index-Dnk7jknb.mjs.map +1 -0
  74. package/dashboard/.output/server/chunks/build/server.mjs +1552 -0
  75. package/dashboard/.output/server/chunks/build/server.mjs.map +1 -0
  76. package/dashboard/.output/server/chunks/build/styles.mjs +10 -0
  77. package/dashboard/.output/server/chunks/build/styles.mjs.map +1 -0
  78. package/dashboard/.output/server/chunks/nitro/nitro.mjs +5497 -0
  79. package/dashboard/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  80. package/dashboard/.output/server/chunks/routes/api/lessons/_id_.get.mjs +35 -0
  81. package/dashboard/.output/server/chunks/routes/api/lessons/_id_.get.mjs.map +1 -0
  82. package/dashboard/.output/server/chunks/routes/api/lessons.get.mjs +64 -0
  83. package/dashboard/.output/server/chunks/routes/api/lessons.get.mjs.map +1 -0
  84. package/dashboard/.output/server/chunks/routes/api/stats.get.mjs +59 -0
  85. package/dashboard/.output/server/chunks/routes/api/stats.get.mjs.map +1 -0
  86. package/dashboard/.output/server/chunks/routes/renderer.mjs +458 -0
  87. package/dashboard/.output/server/chunks/routes/renderer.mjs.map +1 -0
  88. package/dashboard/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  89. package/dashboard/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  90. package/dashboard/.output/server/index.mjs +10 -0
  91. package/dashboard/.output/server/index.mjs.map +1 -0
  92. package/dashboard/.output/server/node_modules/@babel/parser/lib/index.js +14599 -0
  93. package/dashboard/.output/server/node_modules/@babel/parser/package.json +50 -0
  94. package/dashboard/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6759 -0
  95. package/dashboard/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  96. package/dashboard/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  97. package/dashboard/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  98. package/dashboard/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
  99. package/dashboard/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  100. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
  101. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
  102. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
  103. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
  104. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
  105. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
  106. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
  107. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
  108. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
  109. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
  110. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
  111. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
  112. package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
  113. package/dashboard/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
  114. package/dashboard/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1899 -0
  115. package/dashboard/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  116. package/dashboard/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6940 -0
  117. package/dashboard/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  118. package/dashboard/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1822 -0
  119. package/dashboard/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  120. package/dashboard/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +896 -0
  121. package/dashboard/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
  122. package/dashboard/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  123. package/dashboard/.output/server/node_modules/@vue/shared/package.json +47 -0
  124. package/dashboard/.output/server/node_modules/devalue/index.js +4 -0
  125. package/dashboard/.output/server/node_modules/devalue/package.json +40 -0
  126. package/dashboard/.output/server/node_modules/devalue/src/base64.js +60 -0
  127. package/dashboard/.output/server/node_modules/devalue/src/constants.js +12 -0
  128. package/dashboard/.output/server/node_modules/devalue/src/parse.js +283 -0
  129. package/dashboard/.output/server/node_modules/devalue/src/stringify.js +401 -0
  130. package/dashboard/.output/server/node_modules/devalue/src/uneval.js +552 -0
  131. package/dashboard/.output/server/node_modules/devalue/src/utils.js +160 -0
  132. package/dashboard/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  133. package/dashboard/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  134. package/dashboard/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  135. package/dashboard/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  136. package/dashboard/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  137. package/dashboard/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  138. package/dashboard/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  139. package/dashboard/.output/server/node_modules/entities/package.json +120 -0
  140. package/dashboard/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  141. package/dashboard/.output/server/node_modules/estree-walker/package.json +37 -0
  142. package/dashboard/.output/server/node_modules/hookable/dist/index.mjs +257 -0
  143. package/dashboard/.output/server/node_modules/hookable/package.json +53 -0
  144. package/dashboard/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
  145. package/dashboard/.output/server/node_modules/perfect-debounce/package.json +41 -0
  146. package/dashboard/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  147. package/dashboard/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  148. package/dashboard/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  149. package/dashboard/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  150. package/dashboard/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  151. package/dashboard/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  152. package/dashboard/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  153. package/dashboard/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  154. package/dashboard/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  155. package/dashboard/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  156. package/dashboard/.output/server/node_modules/source-map-js/package.json +71 -0
  157. package/dashboard/.output/server/node_modules/source-map-js/source-map.js +8 -0
  158. package/dashboard/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  159. package/dashboard/.output/server/node_modules/ufo/package.json +48 -0
  160. package/dashboard/.output/server/node_modules/unhead/dist/index.mjs +9 -0
  161. package/dashboard/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
  162. package/dashboard/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
  163. package/dashboard/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
  164. package/dashboard/.output/server/node_modules/unhead/dist/server.mjs +180 -0
  165. package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +207 -0
  166. package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  167. package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
  168. package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +182 -0
  169. package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
  170. package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
  171. package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
  172. package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +44 -0
  173. package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
  174. package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
  175. package/dashboard/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  176. package/dashboard/.output/server/node_modules/unhead/package.json +105 -0
  177. package/dashboard/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  178. package/dashboard/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  179. package/dashboard/.output/server/node_modules/vue/index.js +7 -0
  180. package/dashboard/.output/server/node_modules/vue/index.mjs +1 -0
  181. package/dashboard/.output/server/node_modules/vue/package.json +112 -0
  182. package/dashboard/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  183. package/dashboard/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +249 -0
  184. package/dashboard/.output/server/node_modules/vue-bundle-renderer/package.json +57 -0
  185. package/dashboard/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
  186. package/dashboard/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
  187. package/dashboard/.output/server/node_modules/vue-router/package.json +153 -0
  188. package/dashboard/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
  189. package/dashboard/.output/server/package.json +29 -0
  190. package/dist/cli/commands/dashboard.d.ts +2 -0
  191. package/dist/cli/commands/dashboard.d.ts.map +1 -0
  192. package/dist/cli/commands/dashboard.js +30 -0
  193. package/dist/cli/commands/dashboard.js.map +1 -0
  194. package/dist/cli/index.js +5 -0
  195. package/dist/cli/index.js.map +1 -1
  196. package/package.json +3 -2
@@ -0,0 +1,1822 @@
1
+ /**
2
+ * @vue/runtime-dom v3.5.39
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/
6
+ 'use strict';
7
+
8
+ Object.defineProperty(exports, '__esModule', { value: true });
9
+
10
+ var runtimeCore = require('@vue/runtime-core');
11
+ var shared = require('@vue/shared');
12
+
13
+ let policy = void 0;
14
+ const tt = typeof window !== "undefined" && window.trustedTypes;
15
+ if (tt) {
16
+ try {
17
+ policy = /* @__PURE__ */ tt.createPolicy("vue", {
18
+ createHTML: (val) => val
19
+ });
20
+ } catch (e) {
21
+ }
22
+ }
23
+ const unsafeToTrustedHTML = policy ? (val) => policy.createHTML(val) : (val) => val;
24
+ const svgNS = "http://www.w3.org/2000/svg";
25
+ const mathmlNS = "http://www.w3.org/1998/Math/MathML";
26
+ const doc = typeof document !== "undefined" ? document : null;
27
+ const templateContainer = doc && /* @__PURE__ */ doc.createElement("template");
28
+ const nodeOps = {
29
+ insert: (child, parent, anchor) => {
30
+ parent.insertBefore(child, anchor || null);
31
+ },
32
+ remove: (child) => {
33
+ const parent = child.parentNode;
34
+ if (parent) {
35
+ parent.removeChild(child);
36
+ }
37
+ },
38
+ createElement: (tag, namespace, is, props) => {
39
+ const el = namespace === "svg" ? doc.createElementNS(svgNS, tag) : namespace === "mathml" ? doc.createElementNS(mathmlNS, tag) : is ? doc.createElement(tag, { is }) : doc.createElement(tag);
40
+ if (tag === "select" && props && props.multiple != null) {
41
+ el.setAttribute("multiple", props.multiple);
42
+ }
43
+ return el;
44
+ },
45
+ createText: (text) => doc.createTextNode(text),
46
+ createComment: (text) => doc.createComment(text),
47
+ setText: (node, text) => {
48
+ node.nodeValue = text;
49
+ },
50
+ setElementText: (el, text) => {
51
+ el.textContent = text;
52
+ },
53
+ parentNode: (node) => node.parentNode,
54
+ nextSibling: (node) => node.nextSibling,
55
+ querySelector: (selector) => doc.querySelector(selector),
56
+ setScopeId(el, id) {
57
+ el.setAttribute(id, "");
58
+ },
59
+ // __UNSAFE__
60
+ // Reason: innerHTML.
61
+ // Static content here can only come from compiled templates.
62
+ // As long as the user only uses trusted templates, this is safe.
63
+ insertStaticContent(content, parent, anchor, namespace, start, end) {
64
+ const before = anchor ? anchor.previousSibling : parent.lastChild;
65
+ if (start && (start === end || start.nextSibling)) {
66
+ while (true) {
67
+ parent.insertBefore(start.cloneNode(true), anchor);
68
+ if (start === end || !(start = start.nextSibling)) break;
69
+ }
70
+ } else {
71
+ templateContainer.innerHTML = unsafeToTrustedHTML(
72
+ namespace === "svg" ? `<svg>${content}</svg>` : namespace === "mathml" ? `<math>${content}</math>` : content
73
+ );
74
+ const template = templateContainer.content;
75
+ if (namespace === "svg" || namespace === "mathml") {
76
+ const wrapper = template.firstChild;
77
+ while (wrapper.firstChild) {
78
+ template.appendChild(wrapper.firstChild);
79
+ }
80
+ template.removeChild(wrapper);
81
+ }
82
+ parent.insertBefore(template, anchor);
83
+ }
84
+ return [
85
+ // first
86
+ before ? before.nextSibling : parent.firstChild,
87
+ // last
88
+ anchor ? anchor.previousSibling : parent.lastChild
89
+ ];
90
+ }
91
+ };
92
+
93
+ const TRANSITION = "transition";
94
+ const ANIMATION = "animation";
95
+ const vtcKey = /* @__PURE__ */ Symbol("_vtc");
96
+ const DOMTransitionPropsValidators = {
97
+ name: String,
98
+ type: String,
99
+ css: {
100
+ type: Boolean,
101
+ default: true
102
+ },
103
+ duration: [String, Number, Object],
104
+ enterFromClass: String,
105
+ enterActiveClass: String,
106
+ enterToClass: String,
107
+ appearFromClass: String,
108
+ appearActiveClass: String,
109
+ appearToClass: String,
110
+ leaveFromClass: String,
111
+ leaveActiveClass: String,
112
+ leaveToClass: String
113
+ };
114
+ const TransitionPropsValidators = /* @__PURE__ */ shared.extend(
115
+ {},
116
+ runtimeCore.BaseTransitionPropsValidators,
117
+ DOMTransitionPropsValidators
118
+ );
119
+ const decorate$1 = (t) => {
120
+ t.displayName = "Transition";
121
+ t.props = TransitionPropsValidators;
122
+ return t;
123
+ };
124
+ const Transition = /* @__PURE__ */ decorate$1(
125
+ (props, { slots }) => runtimeCore.h(runtimeCore.BaseTransition, resolveTransitionProps(props), slots)
126
+ );
127
+ const callHook = (hook, args = []) => {
128
+ if (shared.isArray(hook)) {
129
+ hook.forEach((h2) => h2(...args));
130
+ } else if (hook) {
131
+ hook(...args);
132
+ }
133
+ };
134
+ const hasExplicitCallback = (hook) => {
135
+ return hook ? shared.isArray(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false;
136
+ };
137
+ function resolveTransitionProps(rawProps) {
138
+ const baseProps = {};
139
+ for (const key in rawProps) {
140
+ if (!(key in DOMTransitionPropsValidators)) {
141
+ baseProps[key] = rawProps[key];
142
+ }
143
+ }
144
+ if (rawProps.css === false) {
145
+ return baseProps;
146
+ }
147
+ const {
148
+ name = "v",
149
+ type,
150
+ duration,
151
+ enterFromClass = `${name}-enter-from`,
152
+ enterActiveClass = `${name}-enter-active`,
153
+ enterToClass = `${name}-enter-to`,
154
+ appearFromClass = enterFromClass,
155
+ appearActiveClass = enterActiveClass,
156
+ appearToClass = enterToClass,
157
+ leaveFromClass = `${name}-leave-from`,
158
+ leaveActiveClass = `${name}-leave-active`,
159
+ leaveToClass = `${name}-leave-to`
160
+ } = rawProps;
161
+ const durations = normalizeDuration(duration);
162
+ const enterDuration = durations && durations[0];
163
+ const leaveDuration = durations && durations[1];
164
+ const {
165
+ onBeforeEnter,
166
+ onEnter,
167
+ onEnterCancelled,
168
+ onLeave,
169
+ onLeaveCancelled,
170
+ onBeforeAppear = onBeforeEnter,
171
+ onAppear = onEnter,
172
+ onAppearCancelled = onEnterCancelled
173
+ } = baseProps;
174
+ const finishEnter = (el, isAppear, done, isCancelled) => {
175
+ el._enterCancelled = isCancelled;
176
+ removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
177
+ removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
178
+ done && done();
179
+ };
180
+ const finishLeave = (el, done) => {
181
+ el._isLeaving = false;
182
+ removeTransitionClass(el, leaveFromClass);
183
+ removeTransitionClass(el, leaveToClass);
184
+ removeTransitionClass(el, leaveActiveClass);
185
+ done && done();
186
+ };
187
+ const makeEnterHook = (isAppear) => {
188
+ return (el, done) => {
189
+ const hook = isAppear ? onAppear : onEnter;
190
+ const resolve = () => finishEnter(el, isAppear, done);
191
+ callHook(hook, [el, resolve]);
192
+ nextFrame(() => {
193
+ removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
194
+ addTransitionClass(el, isAppear ? appearToClass : enterToClass);
195
+ if (!hasExplicitCallback(hook)) {
196
+ whenTransitionEnds(el, type, enterDuration, resolve);
197
+ }
198
+ });
199
+ };
200
+ };
201
+ return shared.extend(baseProps, {
202
+ onBeforeEnter(el) {
203
+ callHook(onBeforeEnter, [el]);
204
+ addTransitionClass(el, enterFromClass);
205
+ addTransitionClass(el, enterActiveClass);
206
+ },
207
+ onBeforeAppear(el) {
208
+ callHook(onBeforeAppear, [el]);
209
+ addTransitionClass(el, appearFromClass);
210
+ addTransitionClass(el, appearActiveClass);
211
+ },
212
+ onEnter: makeEnterHook(false),
213
+ onAppear: makeEnterHook(true),
214
+ onLeave(el, done) {
215
+ el._isLeaving = true;
216
+ const resolve = () => finishLeave(el, done);
217
+ addTransitionClass(el, leaveFromClass);
218
+ if (!el._enterCancelled) {
219
+ forceReflow(el);
220
+ addTransitionClass(el, leaveActiveClass);
221
+ } else {
222
+ addTransitionClass(el, leaveActiveClass);
223
+ forceReflow(el);
224
+ }
225
+ nextFrame(() => {
226
+ if (!el._isLeaving) {
227
+ return;
228
+ }
229
+ removeTransitionClass(el, leaveFromClass);
230
+ addTransitionClass(el, leaveToClass);
231
+ if (!hasExplicitCallback(onLeave)) {
232
+ whenTransitionEnds(el, type, leaveDuration, resolve);
233
+ }
234
+ });
235
+ callHook(onLeave, [el, resolve]);
236
+ },
237
+ onEnterCancelled(el) {
238
+ finishEnter(el, false, void 0, true);
239
+ callHook(onEnterCancelled, [el]);
240
+ },
241
+ onAppearCancelled(el) {
242
+ finishEnter(el, true, void 0, true);
243
+ callHook(onAppearCancelled, [el]);
244
+ },
245
+ onLeaveCancelled(el) {
246
+ finishLeave(el);
247
+ callHook(onLeaveCancelled, [el]);
248
+ }
249
+ });
250
+ }
251
+ function normalizeDuration(duration) {
252
+ if (duration == null) {
253
+ return null;
254
+ } else if (shared.isObject(duration)) {
255
+ return [NumberOf(duration.enter), NumberOf(duration.leave)];
256
+ } else {
257
+ const n = NumberOf(duration);
258
+ return [n, n];
259
+ }
260
+ }
261
+ function NumberOf(val) {
262
+ const res = shared.toNumber(val);
263
+ return res;
264
+ }
265
+ function addTransitionClass(el, cls) {
266
+ cls.split(/\s+/).forEach((c) => c && el.classList.add(c));
267
+ (el[vtcKey] || (el[vtcKey] = /* @__PURE__ */ new Set())).add(cls);
268
+ }
269
+ function removeTransitionClass(el, cls) {
270
+ cls.split(/\s+/).forEach((c) => c && el.classList.remove(c));
271
+ const _vtc = el[vtcKey];
272
+ if (_vtc) {
273
+ _vtc.delete(cls);
274
+ if (!_vtc.size) {
275
+ el[vtcKey] = void 0;
276
+ }
277
+ }
278
+ }
279
+ function nextFrame(cb) {
280
+ requestAnimationFrame(() => {
281
+ requestAnimationFrame(cb);
282
+ });
283
+ }
284
+ let endId = 0;
285
+ function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {
286
+ const id = el._endId = ++endId;
287
+ const resolveIfNotStale = () => {
288
+ if (id === el._endId) {
289
+ resolve();
290
+ }
291
+ };
292
+ if (explicitTimeout != null) {
293
+ return setTimeout(resolveIfNotStale, explicitTimeout);
294
+ }
295
+ const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
296
+ if (!type) {
297
+ return resolve();
298
+ }
299
+ const endEvent = type + "end";
300
+ let ended = 0;
301
+ const end = () => {
302
+ el.removeEventListener(endEvent, onEnd);
303
+ resolveIfNotStale();
304
+ };
305
+ const onEnd = (e) => {
306
+ if (e.target === el && ++ended >= propCount) {
307
+ end();
308
+ }
309
+ };
310
+ setTimeout(() => {
311
+ if (ended < propCount) {
312
+ end();
313
+ }
314
+ }, timeout + 1);
315
+ el.addEventListener(endEvent, onEnd);
316
+ }
317
+ function getTransitionInfo(el, expectedType) {
318
+ const styles = window.getComputedStyle(el);
319
+ const getStyleProperties = (key) => (styles[key] || "").split(", ");
320
+ const transitionDelays = getStyleProperties(`${TRANSITION}Delay`);
321
+ const transitionDurations = getStyleProperties(`${TRANSITION}Duration`);
322
+ const transitionTimeout = getTimeout(transitionDelays, transitionDurations);
323
+ const animationDelays = getStyleProperties(`${ANIMATION}Delay`);
324
+ const animationDurations = getStyleProperties(`${ANIMATION}Duration`);
325
+ const animationTimeout = getTimeout(animationDelays, animationDurations);
326
+ let type = null;
327
+ let timeout = 0;
328
+ let propCount = 0;
329
+ if (expectedType === TRANSITION) {
330
+ if (transitionTimeout > 0) {
331
+ type = TRANSITION;
332
+ timeout = transitionTimeout;
333
+ propCount = transitionDurations.length;
334
+ }
335
+ } else if (expectedType === ANIMATION) {
336
+ if (animationTimeout > 0) {
337
+ type = ANIMATION;
338
+ timeout = animationTimeout;
339
+ propCount = animationDurations.length;
340
+ }
341
+ } else {
342
+ timeout = Math.max(transitionTimeout, animationTimeout);
343
+ type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null;
344
+ propCount = type ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0;
345
+ }
346
+ const hasTransform = type === TRANSITION && /\b(?:transform|all)(?:,|$)/.test(
347
+ getStyleProperties(`${TRANSITION}Property`).toString()
348
+ );
349
+ return {
350
+ type,
351
+ timeout,
352
+ propCount,
353
+ hasTransform
354
+ };
355
+ }
356
+ function getTimeout(delays, durations) {
357
+ while (delays.length < durations.length) {
358
+ delays = delays.concat(delays);
359
+ }
360
+ return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])));
361
+ }
362
+ function toMs(s) {
363
+ if (s === "auto") return 0;
364
+ return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
365
+ }
366
+ function forceReflow(el) {
367
+ const targetDocument = el ? el.ownerDocument : document;
368
+ return targetDocument.body.offsetHeight;
369
+ }
370
+
371
+ function patchClass(el, value, isSVG) {
372
+ const transitionClasses = el[vtcKey];
373
+ if (transitionClasses) {
374
+ value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(" ");
375
+ }
376
+ if (value == null) {
377
+ el.removeAttribute("class");
378
+ } else if (isSVG) {
379
+ el.setAttribute("class", value);
380
+ } else {
381
+ el.className = value;
382
+ }
383
+ }
384
+
385
+ const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
386
+ const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
387
+ const vShow = {
388
+ // used for prop mismatch check during hydration
389
+ name: "show",
390
+ beforeMount(el, { value }, { transition }) {
391
+ el[vShowOriginalDisplay] = el.style.display === "none" ? "" : el.style.display;
392
+ if (transition && value) {
393
+ transition.beforeEnter(el);
394
+ } else {
395
+ setDisplay(el, value);
396
+ }
397
+ },
398
+ mounted(el, { value }, { transition }) {
399
+ if (transition && value) {
400
+ transition.enter(el);
401
+ }
402
+ },
403
+ updated(el, { value, oldValue }, { transition }) {
404
+ if (!value === !oldValue) return;
405
+ if (transition) {
406
+ if (value) {
407
+ transition.beforeEnter(el);
408
+ setDisplay(el, true);
409
+ transition.enter(el);
410
+ } else {
411
+ transition.leave(el, () => {
412
+ setDisplay(el, false);
413
+ });
414
+ }
415
+ } else {
416
+ setDisplay(el, value);
417
+ }
418
+ },
419
+ beforeUnmount(el, { value }) {
420
+ setDisplay(el, value);
421
+ }
422
+ };
423
+ function setDisplay(el, value) {
424
+ el.style.display = value ? el[vShowOriginalDisplay] : "none";
425
+ el[vShowHidden] = !value;
426
+ }
427
+ function initVShowForSSR() {
428
+ vShow.getSSRProps = ({ value }) => {
429
+ if (!value) {
430
+ return { style: { display: "none" } };
431
+ }
432
+ };
433
+ }
434
+
435
+ const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("");
436
+ function useCssVars(getter) {
437
+ return;
438
+ }
439
+
440
+ const displayRE = /(?:^|;)\s*display\s*:/;
441
+ function patchStyle(el, prev, next) {
442
+ const style = el.style;
443
+ const isCssString = shared.isString(next);
444
+ let hasControlledDisplay = false;
445
+ if (next && !isCssString) {
446
+ if (prev) {
447
+ if (!shared.isString(prev)) {
448
+ for (const key in prev) {
449
+ if (next[key] == null) {
450
+ setStyle(style, key, "");
451
+ }
452
+ }
453
+ } else {
454
+ for (const prevStyle of prev.split(";")) {
455
+ const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim();
456
+ if (next[key] == null) {
457
+ setStyle(style, key, "");
458
+ }
459
+ }
460
+ }
461
+ }
462
+ for (const key in next) {
463
+ if (key === "display") {
464
+ hasControlledDisplay = true;
465
+ }
466
+ const value = next[key];
467
+ if (value != null) {
468
+ if (!shouldPreserveTextareaResizeStyle(
469
+ el,
470
+ key,
471
+ !shared.isString(prev) && prev ? prev[key] : void 0,
472
+ value
473
+ )) {
474
+ setStyle(style, key, value);
475
+ }
476
+ } else {
477
+ setStyle(style, key, "");
478
+ }
479
+ }
480
+ } else {
481
+ if (isCssString) {
482
+ if (prev !== next) {
483
+ const cssVarText = style[CSS_VAR_TEXT];
484
+ if (cssVarText) {
485
+ next += ";" + cssVarText;
486
+ }
487
+ style.cssText = next;
488
+ hasControlledDisplay = displayRE.test(next);
489
+ }
490
+ } else if (prev) {
491
+ el.removeAttribute("style");
492
+ }
493
+ }
494
+ if (vShowOriginalDisplay in el) {
495
+ el[vShowOriginalDisplay] = hasControlledDisplay ? style.display : "";
496
+ if (el[vShowHidden]) {
497
+ style.display = "none";
498
+ }
499
+ }
500
+ }
501
+ const importantRE = /\s*!important$/;
502
+ function setStyle(style, name, val) {
503
+ if (shared.isArray(val)) {
504
+ val.forEach((v) => setStyle(style, name, v));
505
+ } else {
506
+ if (val == null) val = "";
507
+ if (name.startsWith("--")) {
508
+ style.setProperty(name, val);
509
+ } else {
510
+ const prefixed = autoPrefix(style, name);
511
+ if (importantRE.test(val)) {
512
+ style.setProperty(
513
+ shared.hyphenate(prefixed),
514
+ val.replace(importantRE, ""),
515
+ "important"
516
+ );
517
+ } else {
518
+ style[prefixed] = val;
519
+ }
520
+ }
521
+ }
522
+ }
523
+ const prefixes = ["Webkit", "Moz", "ms"];
524
+ const prefixCache = {};
525
+ function autoPrefix(style, rawName) {
526
+ const cached = prefixCache[rawName];
527
+ if (cached) {
528
+ return cached;
529
+ }
530
+ let name = runtimeCore.camelize(rawName);
531
+ if (name !== "filter" && name in style) {
532
+ return prefixCache[rawName] = name;
533
+ }
534
+ name = shared.capitalize(name);
535
+ for (let i = 0; i < prefixes.length; i++) {
536
+ const prefixed = prefixes[i] + name;
537
+ if (prefixed in style) {
538
+ return prefixCache[rawName] = prefixed;
539
+ }
540
+ }
541
+ return rawName;
542
+ }
543
+ function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
544
+ return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && shared.isString(next) && prev === next;
545
+ }
546
+
547
+ const xlinkNS = "http://www.w3.org/1999/xlink";
548
+ function patchAttr(el, key, value, isSVG, instance, isBoolean = shared.isSpecialBooleanAttr(key)) {
549
+ if (isSVG && key.startsWith("xlink:")) {
550
+ if (value == null) {
551
+ el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
552
+ } else {
553
+ el.setAttributeNS(xlinkNS, key, value);
554
+ }
555
+ } else {
556
+ if (value == null || isBoolean && !shared.includeBooleanAttr(value)) {
557
+ el.removeAttribute(key);
558
+ } else {
559
+ el.setAttribute(
560
+ key,
561
+ isBoolean ? "" : shared.isSymbol(value) ? String(value) : value
562
+ );
563
+ }
564
+ }
565
+ }
566
+
567
+ function patchDOMProp(el, key, value, parentComponent, attrName) {
568
+ if (key === "innerHTML" || key === "textContent") {
569
+ if (value != null) {
570
+ el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
571
+ }
572
+ return;
573
+ }
574
+ const tag = el.tagName;
575
+ if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
576
+ !tag.includes("-")) {
577
+ const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
578
+ const newValue = value == null ? (
579
+ // #11647: value should be set as empty string for null and undefined,
580
+ // but <input type="checkbox"> should be set as 'on'.
581
+ el.type === "checkbox" ? "on" : ""
582
+ ) : String(value);
583
+ if (oldValue !== newValue || !("_value" in el)) {
584
+ el.value = newValue;
585
+ }
586
+ if (value == null) {
587
+ el.removeAttribute(key);
588
+ }
589
+ el._value = value;
590
+ return;
591
+ }
592
+ let needRemove = false;
593
+ if (value === "" || value == null) {
594
+ const type = typeof el[key];
595
+ if (type === "boolean") {
596
+ value = shared.includeBooleanAttr(value);
597
+ } else if (value == null && type === "string") {
598
+ value = "";
599
+ needRemove = true;
600
+ } else if (type === "number") {
601
+ value = 0;
602
+ needRemove = true;
603
+ }
604
+ }
605
+ try {
606
+ el[key] = value;
607
+ } catch (e) {
608
+ }
609
+ needRemove && el.removeAttribute(attrName || key);
610
+ }
611
+
612
+ function addEventListener(el, event, handler, options) {
613
+ el.addEventListener(event, handler, options);
614
+ }
615
+ function removeEventListener(el, event, handler, options) {
616
+ el.removeEventListener(event, handler, options);
617
+ }
618
+ const veiKey = /* @__PURE__ */ Symbol("_vei");
619
+ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
620
+ const invokers = el[veiKey] || (el[veiKey] = {});
621
+ const existingInvoker = invokers[rawName];
622
+ if (nextValue && existingInvoker) {
623
+ existingInvoker.value = nextValue;
624
+ } else {
625
+ const [name, options] = parseName(rawName);
626
+ if (nextValue) {
627
+ const invoker = invokers[rawName] = createInvoker(
628
+ nextValue,
629
+ instance
630
+ );
631
+ addEventListener(el, name, invoker, options);
632
+ } else if (existingInvoker) {
633
+ removeEventListener(el, name, existingInvoker, options);
634
+ invokers[rawName] = void 0;
635
+ }
636
+ }
637
+ }
638
+ const optionsModifierRE = /(Once|Passive|Capture)$/;
639
+ const optionsModifierEventRE = /^on:?(?:Once|Passive|Capture)$/;
640
+ function parseName(name) {
641
+ let options;
642
+ let m;
643
+ while ((m = name.match(optionsModifierRE)) && !optionsModifierEventRE.test(name)) {
644
+ if (!options) options = {};
645
+ name = name.slice(0, name.length - m[1].length);
646
+ options[m[1].toLowerCase()] = true;
647
+ }
648
+ const event = name[2] === ":" ? name.slice(3) : shared.hyphenate(name.slice(2));
649
+ return [event, options];
650
+ }
651
+ let cachedNow = 0;
652
+ const p = /* @__PURE__ */ Promise.resolve();
653
+ const getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now());
654
+ function createInvoker(initialValue, instance) {
655
+ const invoker = (e) => {
656
+ if (!e._vts) {
657
+ e._vts = Date.now();
658
+ } else if (e._vts <= invoker.attached) {
659
+ return;
660
+ }
661
+ const value = invoker.value;
662
+ if (shared.isArray(value)) {
663
+ const originalStop = e.stopImmediatePropagation;
664
+ e.stopImmediatePropagation = () => {
665
+ originalStop.call(e);
666
+ e._stopped = true;
667
+ };
668
+ const handlers = value.slice();
669
+ const args = [e];
670
+ for (let i = 0; i < handlers.length; i++) {
671
+ if (e._stopped) {
672
+ break;
673
+ }
674
+ const handler = handlers[i];
675
+ if (handler) {
676
+ runtimeCore.callWithAsyncErrorHandling(
677
+ handler,
678
+ instance,
679
+ 5,
680
+ args
681
+ );
682
+ }
683
+ }
684
+ } else {
685
+ runtimeCore.callWithAsyncErrorHandling(
686
+ value,
687
+ instance,
688
+ 5,
689
+ [e]
690
+ );
691
+ }
692
+ };
693
+ invoker.value = initialValue;
694
+ invoker.attached = getNow();
695
+ return invoker;
696
+ }
697
+
698
+ const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
699
+ key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
700
+ const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
701
+ const isSVG = namespace === "svg";
702
+ if (key === "class") {
703
+ patchClass(el, nextValue, isSVG);
704
+ } else if (key === "style") {
705
+ patchStyle(el, prevValue, nextValue);
706
+ } else if (shared.isOn(key)) {
707
+ if (!shared.isModelListener(key)) {
708
+ patchEvent(el, key, prevValue, nextValue, parentComponent);
709
+ }
710
+ } else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
711
+ patchDOMProp(el, key, nextValue);
712
+ if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
713
+ patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
714
+ }
715
+ } else if (
716
+ // #11081 force set props for possible async custom element
717
+ el._isVueCE && // #12408 check if it's declared prop or it's async custom element
718
+ (shouldSetAsPropForVueCE(el, key) || // @ts-expect-error _def is private
719
+ el._def.__asyncLoader && (/[A-Z]/.test(key) || !shared.isString(nextValue)))
720
+ ) {
721
+ patchDOMProp(el, shared.camelize(key), nextValue, parentComponent, key);
722
+ } else {
723
+ if (key === "true-value") {
724
+ el._trueValue = nextValue;
725
+ } else if (key === "false-value") {
726
+ el._falseValue = nextValue;
727
+ }
728
+ patchAttr(el, key, nextValue, isSVG);
729
+ }
730
+ };
731
+ function shouldSetAsProp(el, key, value, isSVG) {
732
+ if (isSVG) {
733
+ if (key === "innerHTML" || key === "textContent") {
734
+ return true;
735
+ }
736
+ if (key in el && isNativeOn(key) && shared.isFunction(value)) {
737
+ return true;
738
+ }
739
+ return false;
740
+ }
741
+ if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
742
+ return false;
743
+ }
744
+ if (key === "sandbox" && el.tagName === "IFRAME") {
745
+ return false;
746
+ }
747
+ if (key === "form") {
748
+ return false;
749
+ }
750
+ if (key === "list" && el.tagName === "INPUT") {
751
+ return false;
752
+ }
753
+ if (key === "type" && el.tagName === "TEXTAREA") {
754
+ return false;
755
+ }
756
+ if (key === "width" || key === "height") {
757
+ const tag = el.tagName;
758
+ if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") {
759
+ return false;
760
+ }
761
+ }
762
+ if (isNativeOn(key) && shared.isString(value)) {
763
+ return false;
764
+ }
765
+ return key in el;
766
+ }
767
+ function shouldSetAsPropForVueCE(el, key) {
768
+ const props = (
769
+ // @ts-expect-error _def is private
770
+ el._def.props
771
+ );
772
+ if (!props) {
773
+ return false;
774
+ }
775
+ const camelKey = shared.camelize(key);
776
+ return Array.isArray(props) ? props.some((prop) => shared.camelize(prop) === camelKey) : Object.keys(props).some((prop) => shared.camelize(prop) === camelKey);
777
+ }
778
+
779
+ const REMOVAL = {};
780
+ // @__NO_SIDE_EFFECTS__
781
+ function defineCustomElement(options, extraOptions, _createApp) {
782
+ let Comp = runtimeCore.defineComponent(options, extraOptions);
783
+ if (shared.isPlainObject(Comp)) Comp = shared.extend({}, Comp, extraOptions);
784
+ class VueCustomElement extends VueElement {
785
+ constructor(initialProps) {
786
+ super(Comp, initialProps, _createApp);
787
+ }
788
+ }
789
+ VueCustomElement.def = Comp;
790
+ return VueCustomElement;
791
+ }
792
+ const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
793
+ return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
794
+ });
795
+ const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
796
+ };
797
+ class VueElement extends BaseClass {
798
+ constructor(_def, _props = {}, _createApp = createApp) {
799
+ super();
800
+ this._def = _def;
801
+ this._props = _props;
802
+ this._createApp = _createApp;
803
+ this._isVueCE = true;
804
+ /**
805
+ * @internal
806
+ */
807
+ this._instance = null;
808
+ /**
809
+ * @internal
810
+ */
811
+ this._app = null;
812
+ /**
813
+ * @internal
814
+ */
815
+ this._nonce = this._def.nonce;
816
+ this._connected = false;
817
+ this._resolved = false;
818
+ this._patching = false;
819
+ this._dirty = false;
820
+ this._numberProps = null;
821
+ this._styleChildren = /* @__PURE__ */ new WeakSet();
822
+ this._styleAnchors = /* @__PURE__ */ new WeakMap();
823
+ this._ob = null;
824
+ if (this.shadowRoot && _createApp !== createApp) {
825
+ this._root = this.shadowRoot;
826
+ } else {
827
+ if (_def.shadowRoot !== false) {
828
+ this.attachShadow(
829
+ shared.extend({}, _def.shadowRootOptions, {
830
+ mode: "open"
831
+ })
832
+ );
833
+ this._root = this.shadowRoot;
834
+ } else {
835
+ this._root = this;
836
+ }
837
+ }
838
+ }
839
+ connectedCallback() {
840
+ if (!this.isConnected) return;
841
+ if (!this.shadowRoot && !this._resolved) {
842
+ this._parseSlots();
843
+ }
844
+ this._connected = true;
845
+ let parent = this;
846
+ while (parent = parent && // #12479 should check assignedSlot first to get correct parent
847
+ (parent.assignedSlot || parent.parentNode || parent.host)) {
848
+ if (parent instanceof VueElement) {
849
+ this._parent = parent;
850
+ break;
851
+ }
852
+ }
853
+ if (!this._instance) {
854
+ if (this._resolved) {
855
+ this._mount(this._def);
856
+ } else {
857
+ if (parent && parent._pendingResolve) {
858
+ this._pendingResolve = parent._pendingResolve.then(() => {
859
+ this._pendingResolve = void 0;
860
+ this._resolveDef();
861
+ });
862
+ } else {
863
+ this._resolveDef();
864
+ }
865
+ }
866
+ }
867
+ }
868
+ _setParent(parent = this._parent) {
869
+ if (parent) {
870
+ this._instance.parent = parent._instance;
871
+ this._inheritParentContext(parent);
872
+ }
873
+ }
874
+ _inheritParentContext(parent = this._parent) {
875
+ if (parent && this._app) {
876
+ Object.setPrototypeOf(
877
+ this._app._context.provides,
878
+ parent._instance.provides
879
+ );
880
+ }
881
+ }
882
+ disconnectedCallback() {
883
+ this._connected = false;
884
+ runtimeCore.nextTick(() => {
885
+ if (!this._connected) {
886
+ if (this._ob) {
887
+ this._ob.disconnect();
888
+ this._ob = null;
889
+ }
890
+ this._app && this._app.unmount();
891
+ if (this._instance) this._instance.ce = void 0;
892
+ this._app = this._instance = null;
893
+ if (this._teleportTargets) {
894
+ this._teleportTargets.clear();
895
+ this._teleportTargets = void 0;
896
+ }
897
+ }
898
+ });
899
+ }
900
+ _processMutations(mutations) {
901
+ for (const m of mutations) {
902
+ this._setAttr(m.attributeName);
903
+ }
904
+ }
905
+ /**
906
+ * resolve inner component definition (handle possible async component)
907
+ */
908
+ _resolveDef() {
909
+ if (this._pendingResolve) {
910
+ return;
911
+ }
912
+ for (let i = 0; i < this.attributes.length; i++) {
913
+ this._setAttr(this.attributes[i].name);
914
+ }
915
+ this._ob = new MutationObserver(this._processMutations.bind(this));
916
+ this._ob.observe(this, { attributes: true });
917
+ const resolve = (def, isAsync = false) => {
918
+ this._resolved = true;
919
+ this._pendingResolve = void 0;
920
+ const { props, styles } = def;
921
+ let numberProps;
922
+ if (props && !shared.isArray(props)) {
923
+ for (const key in props) {
924
+ const opt = props[key];
925
+ if (opt === Number || opt && opt.type === Number) {
926
+ if (key in this._props) {
927
+ this._props[key] = shared.toNumber(this._props[key]);
928
+ }
929
+ (numberProps || (numberProps = /* @__PURE__ */ Object.create(null)))[shared.camelize(key)] = true;
930
+ }
931
+ }
932
+ }
933
+ this._numberProps = numberProps;
934
+ this._resolveProps(def);
935
+ if (this.shadowRoot) {
936
+ this._applyStyles(styles);
937
+ }
938
+ this._mount(def);
939
+ };
940
+ const asyncDef = this._def.__asyncLoader;
941
+ if (asyncDef) {
942
+ this._pendingResolve = asyncDef().then((def) => {
943
+ def.configureApp = this._def.configureApp;
944
+ resolve(this._def = def, true);
945
+ });
946
+ } else {
947
+ resolve(this._def);
948
+ }
949
+ }
950
+ _mount(def) {
951
+ this._app = this._createApp(def);
952
+ this._inheritParentContext();
953
+ if (def.configureApp) {
954
+ def.configureApp(this._app);
955
+ }
956
+ this._app._ceVNode = this._createVNode();
957
+ this._app.mount(this._root);
958
+ const exposed = this._instance && this._instance.exposed;
959
+ if (!exposed) return;
960
+ for (const key in exposed) {
961
+ if (!shared.hasOwn(this, key)) {
962
+ Object.defineProperty(this, key, {
963
+ // unwrap ref to be consistent with public instance behavior
964
+ get: () => runtimeCore.unref(exposed[key])
965
+ });
966
+ }
967
+ }
968
+ }
969
+ _resolveProps(def) {
970
+ const { props } = def;
971
+ const declaredPropKeys = shared.isArray(props) ? props : Object.keys(props || {});
972
+ for (const key of Object.keys(this)) {
973
+ if (key[0] !== "_" && declaredPropKeys.includes(key)) {
974
+ this._setProp(key, this[key]);
975
+ }
976
+ }
977
+ for (const key of declaredPropKeys.map(shared.camelize)) {
978
+ Object.defineProperty(this, key, {
979
+ get() {
980
+ return this._getProp(key);
981
+ },
982
+ set(val) {
983
+ this._setProp(key, val, true, !this._patching);
984
+ }
985
+ });
986
+ }
987
+ }
988
+ _setAttr(key) {
989
+ if (key.startsWith("data-v-")) return;
990
+ const has = this.hasAttribute(key);
991
+ let value = has ? this.getAttribute(key) : REMOVAL;
992
+ const camelKey = shared.camelize(key);
993
+ if (has && this._numberProps && this._numberProps[camelKey]) {
994
+ value = shared.toNumber(value);
995
+ }
996
+ this._setProp(camelKey, value, false, true);
997
+ }
998
+ /**
999
+ * @internal
1000
+ */
1001
+ _getProp(key) {
1002
+ return this._props[key];
1003
+ }
1004
+ /**
1005
+ * @internal
1006
+ */
1007
+ _setProp(key, val, shouldReflect = true, shouldUpdate = false) {
1008
+ if (val !== this._props[key]) {
1009
+ this._dirty = true;
1010
+ if (val === REMOVAL) {
1011
+ delete this._props[key];
1012
+ } else {
1013
+ this._props[key] = val;
1014
+ if (key === "key" && this._app) {
1015
+ this._app._ceVNode.key = val;
1016
+ }
1017
+ }
1018
+ if (shouldUpdate && this._instance) {
1019
+ this._update();
1020
+ }
1021
+ if (shouldReflect) {
1022
+ const ob = this._ob;
1023
+ if (ob) {
1024
+ this._processMutations(ob.takeRecords());
1025
+ ob.disconnect();
1026
+ }
1027
+ if (val === true) {
1028
+ this.setAttribute(shared.hyphenate(key), "");
1029
+ } else if (typeof val === "string" || typeof val === "number") {
1030
+ this.setAttribute(shared.hyphenate(key), val + "");
1031
+ } else if (!val) {
1032
+ this.removeAttribute(shared.hyphenate(key));
1033
+ }
1034
+ ob && ob.observe(this, { attributes: true });
1035
+ }
1036
+ }
1037
+ }
1038
+ _update() {
1039
+ const vnode = this._createVNode();
1040
+ if (this._app) vnode.appContext = this._app._context;
1041
+ render(vnode, this._root);
1042
+ }
1043
+ _createVNode() {
1044
+ const baseProps = {};
1045
+ if (!this.shadowRoot) {
1046
+ baseProps.onVnodeMounted = baseProps.onVnodeUpdated = this._renderSlots.bind(this);
1047
+ }
1048
+ const vnode = runtimeCore.createVNode(this._def, shared.extend(baseProps, this._props));
1049
+ if (!this._instance) {
1050
+ vnode.ce = (instance) => {
1051
+ this._instance = instance;
1052
+ instance.ce = this;
1053
+ instance.isCE = true;
1054
+ const dispatch = (event, args) => {
1055
+ this.dispatchEvent(
1056
+ new CustomEvent(
1057
+ event,
1058
+ shared.isPlainObject(args[0]) ? shared.extend({ detail: args }, args[0]) : { detail: args }
1059
+ )
1060
+ );
1061
+ };
1062
+ instance.emit = (event, ...args) => {
1063
+ dispatch(event, args);
1064
+ if (shared.hyphenate(event) !== event) {
1065
+ dispatch(shared.hyphenate(event), args);
1066
+ }
1067
+ };
1068
+ this._setParent();
1069
+ };
1070
+ }
1071
+ return vnode;
1072
+ }
1073
+ _applyStyles(styles, owner, parentComp) {
1074
+ if (!styles) return;
1075
+ if (owner) {
1076
+ if (owner === this._def || this._styleChildren.has(owner)) {
1077
+ return;
1078
+ }
1079
+ this._styleChildren.add(owner);
1080
+ }
1081
+ const nonce = this._nonce;
1082
+ const root = this.shadowRoot;
1083
+ const insertionAnchor = parentComp ? this._getStyleAnchor(parentComp) || this._getStyleAnchor(this._def) : this._getRootStyleInsertionAnchor(root);
1084
+ let last = null;
1085
+ for (let i = styles.length - 1; i >= 0; i--) {
1086
+ const s = document.createElement("style");
1087
+ if (nonce) s.setAttribute("nonce", nonce);
1088
+ s.textContent = styles[i];
1089
+ root.insertBefore(s, last || insertionAnchor);
1090
+ last = s;
1091
+ if (i === 0) {
1092
+ if (!parentComp) this._styleAnchors.set(this._def, s);
1093
+ if (owner) this._styleAnchors.set(owner, s);
1094
+ }
1095
+ }
1096
+ }
1097
+ _getStyleAnchor(comp) {
1098
+ if (!comp) {
1099
+ return null;
1100
+ }
1101
+ const anchor = this._styleAnchors.get(comp);
1102
+ if (anchor && anchor.parentNode === this.shadowRoot) {
1103
+ return anchor;
1104
+ }
1105
+ if (anchor) {
1106
+ this._styleAnchors.delete(comp);
1107
+ }
1108
+ return null;
1109
+ }
1110
+ _getRootStyleInsertionAnchor(root) {
1111
+ for (let i = 0; i < root.childNodes.length; i++) {
1112
+ const node = root.childNodes[i];
1113
+ if (!(node instanceof HTMLStyleElement)) {
1114
+ return node;
1115
+ }
1116
+ }
1117
+ return null;
1118
+ }
1119
+ /**
1120
+ * Only called when shadowRoot is false
1121
+ */
1122
+ _parseSlots() {
1123
+ const slots = this._slots = {};
1124
+ let n;
1125
+ while (n = this.firstChild) {
1126
+ const slotName = n.nodeType === 1 && n.getAttribute("slot") || "default";
1127
+ (slots[slotName] || (slots[slotName] = [])).push(n);
1128
+ this.removeChild(n);
1129
+ }
1130
+ }
1131
+ /**
1132
+ * Only called when shadowRoot is false
1133
+ */
1134
+ _renderSlots() {
1135
+ const outlets = this._getSlots();
1136
+ const scopeId = this._instance.type.__scopeId;
1137
+ for (let i = 0; i < outlets.length; i++) {
1138
+ const o = outlets[i];
1139
+ const slotName = o.getAttribute("name") || "default";
1140
+ const content = this._slots[slotName];
1141
+ const parent = o.parentNode;
1142
+ if (content) {
1143
+ for (const n of content) {
1144
+ if (scopeId && n.nodeType === 1) {
1145
+ const id = scopeId + "-s";
1146
+ const walker = document.createTreeWalker(n, 1);
1147
+ n.setAttribute(id, "");
1148
+ let child;
1149
+ while (child = walker.nextNode()) {
1150
+ child.setAttribute(id, "");
1151
+ }
1152
+ }
1153
+ parent.insertBefore(n, o);
1154
+ }
1155
+ } else {
1156
+ while (o.firstChild) parent.insertBefore(o.firstChild, o);
1157
+ }
1158
+ parent.removeChild(o);
1159
+ }
1160
+ }
1161
+ /**
1162
+ * @internal
1163
+ */
1164
+ _getSlots() {
1165
+ const roots = [this];
1166
+ if (this._teleportTargets) {
1167
+ roots.push(...this._teleportTargets);
1168
+ }
1169
+ const slots = /* @__PURE__ */ new Set();
1170
+ for (const root of roots) {
1171
+ const found = root.querySelectorAll("slot");
1172
+ for (let i = 0; i < found.length; i++) {
1173
+ slots.add(found[i]);
1174
+ }
1175
+ }
1176
+ return Array.from(slots);
1177
+ }
1178
+ /**
1179
+ * @internal
1180
+ */
1181
+ _injectChildStyle(comp, parentComp) {
1182
+ this._applyStyles(comp.styles, comp, parentComp);
1183
+ }
1184
+ /**
1185
+ * @internal
1186
+ */
1187
+ _beginPatch() {
1188
+ this._patching = true;
1189
+ this._dirty = false;
1190
+ }
1191
+ /**
1192
+ * @internal
1193
+ */
1194
+ _endPatch() {
1195
+ this._patching = false;
1196
+ if (this._dirty && this._instance) {
1197
+ this._update();
1198
+ }
1199
+ }
1200
+ /**
1201
+ * @internal
1202
+ */
1203
+ _hasShadowRoot() {
1204
+ return this._def.shadowRoot !== false;
1205
+ }
1206
+ /**
1207
+ * @internal
1208
+ */
1209
+ _removeChildStyle(comp) {
1210
+ }
1211
+ }
1212
+ function useHost(caller) {
1213
+ const instance = runtimeCore.getCurrentInstance();
1214
+ const el = instance && instance.ce;
1215
+ if (el) {
1216
+ return el;
1217
+ }
1218
+ return null;
1219
+ }
1220
+ function useShadowRoot() {
1221
+ const el = useHost();
1222
+ return el && el.shadowRoot;
1223
+ }
1224
+
1225
+ function useCssModule(name = "$style") {
1226
+ {
1227
+ const instance = runtimeCore.getCurrentInstance();
1228
+ if (!instance) {
1229
+ return shared.EMPTY_OBJ;
1230
+ }
1231
+ const modules = instance.type.__cssModules;
1232
+ if (!modules) {
1233
+ return shared.EMPTY_OBJ;
1234
+ }
1235
+ const mod = modules[name];
1236
+ if (!mod) {
1237
+ return shared.EMPTY_OBJ;
1238
+ }
1239
+ return mod;
1240
+ }
1241
+ }
1242
+
1243
+ const positionMap = /* @__PURE__ */ new WeakMap();
1244
+ const newPositionMap = /* @__PURE__ */ new WeakMap();
1245
+ const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
1246
+ const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
1247
+ const decorate = (t) => {
1248
+ delete t.props.mode;
1249
+ return t;
1250
+ };
1251
+ const TransitionGroupImpl = /* @__PURE__ */ decorate({
1252
+ name: "TransitionGroup",
1253
+ props: /* @__PURE__ */ shared.extend({}, TransitionPropsValidators, {
1254
+ tag: String,
1255
+ moveClass: String
1256
+ }),
1257
+ setup(props, { slots }) {
1258
+ const instance = runtimeCore.getCurrentInstance();
1259
+ const state = runtimeCore.useTransitionState();
1260
+ let prevChildren;
1261
+ let children;
1262
+ runtimeCore.onUpdated(() => {
1263
+ if (!prevChildren.length) {
1264
+ return;
1265
+ }
1266
+ const moveClass = props.moveClass || `${props.name || "v"}-move`;
1267
+ if (!hasCSSTransform(
1268
+ prevChildren[0].el,
1269
+ instance.vnode.el,
1270
+ moveClass
1271
+ )) {
1272
+ prevChildren = [];
1273
+ return;
1274
+ }
1275
+ prevChildren.forEach(callPendingCbs);
1276
+ prevChildren.forEach(recordPosition);
1277
+ const movedChildren = prevChildren.filter(applyTranslation);
1278
+ forceReflow(instance.vnode.el);
1279
+ movedChildren.forEach((c) => {
1280
+ const el = c.el;
1281
+ const style = el.style;
1282
+ addTransitionClass(el, moveClass);
1283
+ style.transform = style.webkitTransform = style.transitionDuration = "";
1284
+ const cb = el[moveCbKey] = (e) => {
1285
+ if (e && e.target !== el) {
1286
+ return;
1287
+ }
1288
+ if (!e || e.propertyName.endsWith("transform")) {
1289
+ el.removeEventListener("transitionend", cb);
1290
+ el[moveCbKey] = null;
1291
+ removeTransitionClass(el, moveClass);
1292
+ }
1293
+ };
1294
+ el.addEventListener("transitionend", cb);
1295
+ });
1296
+ prevChildren = [];
1297
+ });
1298
+ return () => {
1299
+ const rawProps = runtimeCore.toRaw(props);
1300
+ const cssTransitionProps = resolveTransitionProps(rawProps);
1301
+ let tag = rawProps.tag || runtimeCore.Fragment;
1302
+ prevChildren = [];
1303
+ if (children) {
1304
+ for (let i = 0; i < children.length; i++) {
1305
+ const child = children[i];
1306
+ if (child.el && child.el instanceof Element && // Hidden v-show nodes have no previous layout box to animate from.
1307
+ !child.el[vShowHidden]) {
1308
+ prevChildren.push(child);
1309
+ runtimeCore.setTransitionHooks(
1310
+ child,
1311
+ runtimeCore.resolveTransitionHooks(
1312
+ child,
1313
+ cssTransitionProps,
1314
+ state,
1315
+ instance
1316
+ )
1317
+ );
1318
+ positionMap.set(child, getPosition(child.el));
1319
+ }
1320
+ }
1321
+ }
1322
+ children = slots.default ? runtimeCore.getTransitionRawChildren(slots.default()) : [];
1323
+ for (let i = 0; i < children.length; i++) {
1324
+ const child = children[i];
1325
+ if (child.key != null) {
1326
+ runtimeCore.setTransitionHooks(
1327
+ child,
1328
+ runtimeCore.resolveTransitionHooks(child, cssTransitionProps, state, instance)
1329
+ );
1330
+ }
1331
+ }
1332
+ return runtimeCore.createVNode(tag, null, children);
1333
+ };
1334
+ }
1335
+ });
1336
+ const TransitionGroup = TransitionGroupImpl;
1337
+ function callPendingCbs(c) {
1338
+ const el = c.el;
1339
+ if (el[moveCbKey]) {
1340
+ el[moveCbKey]();
1341
+ }
1342
+ if (el[enterCbKey]) {
1343
+ el[enterCbKey]();
1344
+ }
1345
+ }
1346
+ function recordPosition(c) {
1347
+ newPositionMap.set(c, getPosition(c.el));
1348
+ }
1349
+ function applyTranslation(c) {
1350
+ const oldPos = positionMap.get(c);
1351
+ const newPos = newPositionMap.get(c);
1352
+ const dx = oldPos.left - newPos.left;
1353
+ const dy = oldPos.top - newPos.top;
1354
+ if (dx || dy) {
1355
+ const el = c.el;
1356
+ const s = el.style;
1357
+ const rect = el.getBoundingClientRect();
1358
+ let scaleX = 1;
1359
+ let scaleY = 1;
1360
+ if (el.offsetWidth) scaleX = rect.width / el.offsetWidth;
1361
+ if (el.offsetHeight) scaleY = rect.height / el.offsetHeight;
1362
+ if (!Number.isFinite(scaleX) || scaleX === 0) scaleX = 1;
1363
+ if (!Number.isFinite(scaleY) || scaleY === 0) scaleY = 1;
1364
+ if (Math.abs(scaleX - 1) < 0.01) scaleX = 1;
1365
+ if (Math.abs(scaleY - 1) < 0.01) scaleY = 1;
1366
+ s.transform = s.webkitTransform = `translate(${dx / scaleX}px,${dy / scaleY}px)`;
1367
+ s.transitionDuration = "0s";
1368
+ return c;
1369
+ }
1370
+ }
1371
+ function getPosition(el) {
1372
+ const rect = el.getBoundingClientRect();
1373
+ return {
1374
+ left: rect.left,
1375
+ top: rect.top
1376
+ };
1377
+ }
1378
+ function hasCSSTransform(el, root, moveClass) {
1379
+ const clone = el.cloneNode();
1380
+ const _vtc = el[vtcKey];
1381
+ if (_vtc) {
1382
+ _vtc.forEach((cls) => {
1383
+ cls.split(/\s+/).forEach((c) => c && clone.classList.remove(c));
1384
+ });
1385
+ }
1386
+ moveClass.split(/\s+/).forEach((c) => c && clone.classList.add(c));
1387
+ clone.style.display = "none";
1388
+ const container = root.nodeType === 1 ? root : root.parentNode;
1389
+ container.appendChild(clone);
1390
+ const { hasTransform } = getTransitionInfo(clone);
1391
+ container.removeChild(clone);
1392
+ return hasTransform;
1393
+ }
1394
+
1395
+ const getModelAssigner = (vnode) => {
1396
+ const fn = vnode.props["onUpdate:modelValue"] || false;
1397
+ return shared.isArray(fn) ? (value) => shared.invokeArrayFns(fn, value) : fn;
1398
+ };
1399
+ function onCompositionStart(e) {
1400
+ e.target.composing = true;
1401
+ }
1402
+ function onCompositionEnd(e) {
1403
+ const target = e.target;
1404
+ if (target.composing) {
1405
+ target.composing = false;
1406
+ target.dispatchEvent(new Event("input"));
1407
+ }
1408
+ }
1409
+ const assignKey = /* @__PURE__ */ Symbol("_assign");
1410
+ function castValue(value, trim, number) {
1411
+ if (trim) value = value.trim();
1412
+ if (number) value = shared.looseToNumber(value);
1413
+ return value;
1414
+ }
1415
+ const vModelText = {
1416
+ created(el, { modifiers: { lazy, trim, number } }, vnode) {
1417
+ el[assignKey] = getModelAssigner(vnode);
1418
+ const castToNumber = number || vnode.props && vnode.props.type === "number";
1419
+ addEventListener(el, lazy ? "change" : "input", (e) => {
1420
+ if (e.target.composing) return;
1421
+ el[assignKey](castValue(el.value, trim, castToNumber));
1422
+ });
1423
+ if (trim || castToNumber) {
1424
+ addEventListener(el, "change", () => {
1425
+ el.value = castValue(el.value, trim, castToNumber);
1426
+ });
1427
+ }
1428
+ if (!lazy) {
1429
+ addEventListener(el, "compositionstart", onCompositionStart);
1430
+ addEventListener(el, "compositionend", onCompositionEnd);
1431
+ addEventListener(el, "change", onCompositionEnd);
1432
+ }
1433
+ },
1434
+ // set value on mounted so it's after min/max for type="range"
1435
+ mounted(el, { value }) {
1436
+ el.value = value == null ? "" : value;
1437
+ },
1438
+ beforeUpdate(el, { value, oldValue, modifiers: { lazy, trim, number } }, vnode) {
1439
+ el[assignKey] = getModelAssigner(vnode);
1440
+ if (el.composing) return;
1441
+ const elValue = (number || el.type === "number") && !/^0\d/.test(el.value) ? shared.looseToNumber(el.value) : el.value;
1442
+ const newValue = value == null ? "" : value;
1443
+ if (elValue === newValue) {
1444
+ return;
1445
+ }
1446
+ const rootNode = el.getRootNode();
1447
+ if ((rootNode instanceof Document || rootNode instanceof ShadowRoot) && rootNode.activeElement === el && el.type !== "range") {
1448
+ if (lazy && value === oldValue) {
1449
+ return;
1450
+ }
1451
+ if (trim && el.value.trim() === newValue) {
1452
+ return;
1453
+ }
1454
+ }
1455
+ el.value = newValue;
1456
+ }
1457
+ };
1458
+ const vModelCheckbox = {
1459
+ // #4096 array checkboxes need to be deep traversed
1460
+ deep: true,
1461
+ created(el, _, vnode) {
1462
+ el[assignKey] = getModelAssigner(vnode);
1463
+ addEventListener(el, "change", () => {
1464
+ const modelValue = el._modelValue;
1465
+ const elementValue = getValue(el);
1466
+ const checked = el.checked;
1467
+ const assign = el[assignKey];
1468
+ if (shared.isArray(modelValue)) {
1469
+ const index = shared.looseIndexOf(modelValue, elementValue);
1470
+ const found = index !== -1;
1471
+ if (checked && !found) {
1472
+ assign(modelValue.concat(elementValue));
1473
+ } else if (!checked && found) {
1474
+ const filtered = [...modelValue];
1475
+ filtered.splice(index, 1);
1476
+ assign(filtered);
1477
+ }
1478
+ } else if (shared.isSet(modelValue)) {
1479
+ const cloned = new Set(modelValue);
1480
+ if (checked) {
1481
+ cloned.add(elementValue);
1482
+ } else {
1483
+ cloned.delete(elementValue);
1484
+ }
1485
+ assign(cloned);
1486
+ } else {
1487
+ assign(getCheckboxValue(el, checked));
1488
+ }
1489
+ });
1490
+ },
1491
+ // set initial checked on mount to wait for true-value/false-value
1492
+ mounted: setChecked,
1493
+ beforeUpdate(el, binding, vnode) {
1494
+ el[assignKey] = getModelAssigner(vnode);
1495
+ setChecked(el, binding, vnode);
1496
+ }
1497
+ };
1498
+ function setChecked(el, { value, oldValue }, vnode) {
1499
+ el._modelValue = value;
1500
+ let checked;
1501
+ if (shared.isArray(value)) {
1502
+ checked = shared.looseIndexOf(value, vnode.props.value) > -1;
1503
+ } else if (shared.isSet(value)) {
1504
+ checked = value.has(vnode.props.value);
1505
+ } else {
1506
+ if (value === oldValue) return;
1507
+ checked = shared.looseEqual(value, getCheckboxValue(el, true));
1508
+ }
1509
+ if (el.checked !== checked) {
1510
+ el.checked = checked;
1511
+ }
1512
+ }
1513
+ const vModelRadio = {
1514
+ created(el, { value }, vnode) {
1515
+ el.checked = shared.looseEqual(value, vnode.props.value);
1516
+ el[assignKey] = getModelAssigner(vnode);
1517
+ addEventListener(el, "change", () => {
1518
+ el[assignKey](getValue(el));
1519
+ });
1520
+ },
1521
+ beforeUpdate(el, { value, oldValue }, vnode) {
1522
+ el[assignKey] = getModelAssigner(vnode);
1523
+ if (value !== oldValue) {
1524
+ el.checked = shared.looseEqual(value, vnode.props.value);
1525
+ }
1526
+ }
1527
+ };
1528
+ const vModelSelect = {
1529
+ // <select multiple> value need to be deep traversed
1530
+ deep: true,
1531
+ created(el, { value, modifiers: { number } }, vnode) {
1532
+ const isSetModel = shared.isSet(value);
1533
+ addEventListener(el, "change", () => {
1534
+ const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map(
1535
+ (o) => number ? shared.looseToNumber(getValue(o)) : getValue(o)
1536
+ );
1537
+ el[assignKey](
1538
+ el.multiple ? isSetModel ? new Set(selectedVal) : selectedVal : selectedVal[0]
1539
+ );
1540
+ el._assigning = true;
1541
+ runtimeCore.nextTick(() => {
1542
+ el._assigning = false;
1543
+ });
1544
+ });
1545
+ el[assignKey] = getModelAssigner(vnode);
1546
+ },
1547
+ // set value in mounted & updated because <select> relies on its children
1548
+ // <option>s.
1549
+ mounted(el, { value }) {
1550
+ setSelected(el, value);
1551
+ },
1552
+ beforeUpdate(el, _binding, vnode) {
1553
+ el[assignKey] = getModelAssigner(vnode);
1554
+ },
1555
+ updated(el, { value }) {
1556
+ if (!el._assigning) {
1557
+ setSelected(el, value);
1558
+ }
1559
+ }
1560
+ };
1561
+ function setSelected(el, value) {
1562
+ const isMultiple = el.multiple;
1563
+ const isArrayValue = shared.isArray(value);
1564
+ if (isMultiple && !isArrayValue && !shared.isSet(value)) {
1565
+ return;
1566
+ }
1567
+ for (let i = 0, l = el.options.length; i < l; i++) {
1568
+ const option = el.options[i];
1569
+ const optionValue = getValue(option);
1570
+ if (isMultiple) {
1571
+ if (isArrayValue) {
1572
+ const optionType = typeof optionValue;
1573
+ if (optionType === "string" || optionType === "number") {
1574
+ option.selected = value.some((v) => String(v) === String(optionValue));
1575
+ } else {
1576
+ option.selected = shared.looseIndexOf(value, optionValue) > -1;
1577
+ }
1578
+ } else {
1579
+ option.selected = value.has(optionValue);
1580
+ }
1581
+ } else if (shared.looseEqual(getValue(option), value)) {
1582
+ if (el.selectedIndex !== i) el.selectedIndex = i;
1583
+ return;
1584
+ }
1585
+ }
1586
+ if (!isMultiple && el.selectedIndex !== -1) {
1587
+ el.selectedIndex = -1;
1588
+ }
1589
+ }
1590
+ function getValue(el) {
1591
+ return "_value" in el ? el._value : el.value;
1592
+ }
1593
+ function getCheckboxValue(el, checked) {
1594
+ const key = checked ? "_trueValue" : "_falseValue";
1595
+ return key in el ? el[key] : checked;
1596
+ }
1597
+ const vModelDynamic = {
1598
+ created(el, binding, vnode) {
1599
+ callModelHook(el, binding, vnode, null, "created");
1600
+ },
1601
+ mounted(el, binding, vnode) {
1602
+ callModelHook(el, binding, vnode, null, "mounted");
1603
+ },
1604
+ beforeUpdate(el, binding, vnode, prevVNode) {
1605
+ callModelHook(el, binding, vnode, prevVNode, "beforeUpdate");
1606
+ },
1607
+ updated(el, binding, vnode, prevVNode) {
1608
+ callModelHook(el, binding, vnode, prevVNode, "updated");
1609
+ }
1610
+ };
1611
+ function resolveDynamicModel(tagName, type) {
1612
+ switch (tagName) {
1613
+ case "SELECT":
1614
+ return vModelSelect;
1615
+ case "TEXTAREA":
1616
+ return vModelText;
1617
+ default:
1618
+ switch (type) {
1619
+ case "checkbox":
1620
+ return vModelCheckbox;
1621
+ case "radio":
1622
+ return vModelRadio;
1623
+ default:
1624
+ return vModelText;
1625
+ }
1626
+ }
1627
+ }
1628
+ function callModelHook(el, binding, vnode, prevVNode, hook) {
1629
+ const modelToUse = resolveDynamicModel(
1630
+ el.tagName,
1631
+ vnode.props && vnode.props.type
1632
+ );
1633
+ const fn = modelToUse[hook];
1634
+ fn && fn(el, binding, vnode, prevVNode);
1635
+ }
1636
+ function initVModelForSSR() {
1637
+ vModelText.getSSRProps = ({ value }) => ({ value });
1638
+ vModelRadio.getSSRProps = ({ value }, vnode) => {
1639
+ if (vnode.props && shared.looseEqual(vnode.props.value, value)) {
1640
+ return { checked: true };
1641
+ }
1642
+ };
1643
+ vModelCheckbox.getSSRProps = ({ value }, vnode) => {
1644
+ if (shared.isArray(value)) {
1645
+ if (vnode.props && shared.looseIndexOf(value, vnode.props.value) > -1) {
1646
+ return { checked: true };
1647
+ }
1648
+ } else if (shared.isSet(value)) {
1649
+ if (vnode.props && value.has(vnode.props.value)) {
1650
+ return { checked: true };
1651
+ }
1652
+ } else if (value) {
1653
+ return { checked: true };
1654
+ }
1655
+ };
1656
+ vModelDynamic.getSSRProps = (binding, vnode) => {
1657
+ if (typeof vnode.type !== "string") {
1658
+ return;
1659
+ }
1660
+ const modelToUse = resolveDynamicModel(
1661
+ // resolveDynamicModel expects an uppercase tag name, but vnode.type is lowercase
1662
+ vnode.type.toUpperCase(),
1663
+ vnode.props && vnode.props.type
1664
+ );
1665
+ if (modelToUse.getSSRProps) {
1666
+ return modelToUse.getSSRProps(binding, vnode);
1667
+ }
1668
+ };
1669
+ }
1670
+
1671
+ const systemModifiers = ["ctrl", "shift", "alt", "meta"];
1672
+ const modifierGuards = {
1673
+ stop: (e) => e.stopPropagation(),
1674
+ prevent: (e) => e.preventDefault(),
1675
+ self: (e) => e.target !== e.currentTarget,
1676
+ ctrl: (e) => !e.ctrlKey,
1677
+ shift: (e) => !e.shiftKey,
1678
+ alt: (e) => !e.altKey,
1679
+ meta: (e) => !e.metaKey,
1680
+ left: (e) => "button" in e && e.button !== 0,
1681
+ middle: (e) => "button" in e && e.button !== 1,
1682
+ right: (e) => "button" in e && e.button !== 2,
1683
+ exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
1684
+ };
1685
+ const withModifiers = (fn, modifiers) => {
1686
+ if (!fn) return fn;
1687
+ const cache = fn._withMods || (fn._withMods = {});
1688
+ const cacheKey = modifiers.join(".");
1689
+ return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
1690
+ for (let i = 0; i < modifiers.length; i++) {
1691
+ const guard = modifierGuards[modifiers[i]];
1692
+ if (guard && guard(event, modifiers)) return;
1693
+ }
1694
+ return fn(event, ...args);
1695
+ }));
1696
+ };
1697
+ const keyNames = {
1698
+ esc: "escape",
1699
+ space: " ",
1700
+ up: "arrow-up",
1701
+ left: "arrow-left",
1702
+ right: "arrow-right",
1703
+ down: "arrow-down",
1704
+ delete: "backspace"
1705
+ };
1706
+ const withKeys = (fn, modifiers) => {
1707
+ const cache = fn._withKeys || (fn._withKeys = {});
1708
+ const cacheKey = modifiers.join(".");
1709
+ return cache[cacheKey] || (cache[cacheKey] = ((event) => {
1710
+ if (!("key" in event)) {
1711
+ return;
1712
+ }
1713
+ const eventKey = shared.hyphenate(event.key);
1714
+ if (modifiers.some(
1715
+ (k) => k === eventKey || keyNames[k] === eventKey
1716
+ )) {
1717
+ return fn(event);
1718
+ }
1719
+ }));
1720
+ };
1721
+
1722
+ const rendererOptions = /* @__PURE__ */ shared.extend({ patchProp }, nodeOps);
1723
+ let renderer;
1724
+ let enabledHydration = false;
1725
+ function ensureRenderer() {
1726
+ return renderer || (renderer = runtimeCore.createRenderer(rendererOptions));
1727
+ }
1728
+ function ensureHydrationRenderer() {
1729
+ renderer = enabledHydration ? renderer : runtimeCore.createHydrationRenderer(rendererOptions);
1730
+ enabledHydration = true;
1731
+ return renderer;
1732
+ }
1733
+ const render = ((...args) => {
1734
+ ensureRenderer().render(...args);
1735
+ });
1736
+ const hydrate = ((...args) => {
1737
+ ensureHydrationRenderer().hydrate(...args);
1738
+ });
1739
+ const createApp = ((...args) => {
1740
+ const app = ensureRenderer().createApp(...args);
1741
+ const { mount } = app;
1742
+ app.mount = (containerOrSelector) => {
1743
+ const container = normalizeContainer(containerOrSelector);
1744
+ if (!container) return;
1745
+ const component = app._component;
1746
+ if (!shared.isFunction(component) && !component.render && !component.template) {
1747
+ component.template = container.innerHTML;
1748
+ }
1749
+ if (container.nodeType === 1) {
1750
+ container.textContent = "";
1751
+ }
1752
+ const proxy = mount(container, false, resolveRootNamespace(container));
1753
+ if (container instanceof Element) {
1754
+ container.removeAttribute("v-cloak");
1755
+ container.setAttribute("data-v-app", "");
1756
+ }
1757
+ return proxy;
1758
+ };
1759
+ return app;
1760
+ });
1761
+ const createSSRApp = ((...args) => {
1762
+ const app = ensureHydrationRenderer().createApp(...args);
1763
+ const { mount } = app;
1764
+ app.mount = (containerOrSelector) => {
1765
+ const container = normalizeContainer(containerOrSelector);
1766
+ if (container) {
1767
+ return mount(container, true, resolveRootNamespace(container));
1768
+ }
1769
+ };
1770
+ return app;
1771
+ });
1772
+ function resolveRootNamespace(container) {
1773
+ if (container instanceof SVGElement) {
1774
+ return "svg";
1775
+ }
1776
+ if (typeof MathMLElement === "function" && container instanceof MathMLElement) {
1777
+ return "mathml";
1778
+ }
1779
+ }
1780
+ function normalizeContainer(container) {
1781
+ if (shared.isString(container)) {
1782
+ const res = document.querySelector(container);
1783
+ return res;
1784
+ }
1785
+ return container;
1786
+ }
1787
+ let ssrDirectiveInitialized = false;
1788
+ const initDirectivesForSSR = () => {
1789
+ if (!ssrDirectiveInitialized) {
1790
+ ssrDirectiveInitialized = true;
1791
+ initVModelForSSR();
1792
+ initVShowForSSR();
1793
+ }
1794
+ } ;
1795
+
1796
+ exports.Transition = Transition;
1797
+ exports.TransitionGroup = TransitionGroup;
1798
+ exports.VueElement = VueElement;
1799
+ exports.createApp = createApp;
1800
+ exports.createSSRApp = createSSRApp;
1801
+ exports.defineCustomElement = defineCustomElement;
1802
+ exports.defineSSRCustomElement = defineSSRCustomElement;
1803
+ exports.hydrate = hydrate;
1804
+ exports.initDirectivesForSSR = initDirectivesForSSR;
1805
+ exports.nodeOps = nodeOps;
1806
+ exports.patchProp = patchProp;
1807
+ exports.render = render;
1808
+ exports.useCssModule = useCssModule;
1809
+ exports.useCssVars = useCssVars;
1810
+ exports.useHost = useHost;
1811
+ exports.useShadowRoot = useShadowRoot;
1812
+ exports.vModelCheckbox = vModelCheckbox;
1813
+ exports.vModelDynamic = vModelDynamic;
1814
+ exports.vModelRadio = vModelRadio;
1815
+ exports.vModelSelect = vModelSelect;
1816
+ exports.vModelText = vModelText;
1817
+ exports.vShow = vShow;
1818
+ exports.withKeys = withKeys;
1819
+ exports.withModifiers = withModifiers;
1820
+ Object.keys(runtimeCore).forEach(function (k) {
1821
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeCore[k];
1822
+ });