athar-mcp 0.1.0 → 0.2.1

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 (197) 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/dist/index.js +0 -0
  197. package/package.json +3 -2
@@ -0,0 +1,75 @@
1
+ import { mergeProps, useSSRContext } from 'vue';
2
+ import { ssrRenderAttrs, ssrInterpolate } from 'vue/server-renderer';
3
+ import { _ as _export_sfc } from './server.mjs';
4
+ import { u as useHead } from './composables-lps5heb5.mjs';
5
+ import '../nitro/nitro.mjs';
6
+ import 'node:http';
7
+ import 'node:https';
8
+ import 'node:events';
9
+ import 'node:buffer';
10
+ import 'node:fs';
11
+ import 'node:path';
12
+ import 'node:crypto';
13
+ import 'node:url';
14
+ import '../routes/renderer.mjs';
15
+ import 'vue-bundle-renderer/runtime';
16
+ import 'unhead/server';
17
+ import 'devalue';
18
+ import 'unhead/utils';
19
+ import 'vue-router';
20
+
21
+ const _sfc_main = {
22
+ __name: "error-500",
23
+ __ssrInlineRender: true,
24
+ props: {
25
+ appName: {
26
+ type: String,
27
+ default: "Nuxt"
28
+ },
29
+ status: {
30
+ type: Number,
31
+ default: 500
32
+ },
33
+ statusText: {
34
+ type: String,
35
+ default: "Internal server error"
36
+ },
37
+ description: {
38
+ type: String,
39
+ default: "This page is temporarily unavailable."
40
+ },
41
+ refresh: {
42
+ type: String,
43
+ default: "Refresh this page"
44
+ }
45
+ },
46
+ setup(__props) {
47
+ const props = __props;
48
+ useHead({
49
+ title: `${props.status} - ${props.statusText} | ${props.appName}`,
50
+ script: [
51
+ {
52
+ innerHTML: `!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`
53
+ }
54
+ ],
55
+ style: [
56
+ {
57
+ innerHTML: `*,:after,:before{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color,#e5e7eb)}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`
58
+ }
59
+ ]
60
+ });
61
+ return (_ctx, _push, _parent, _attrs) => {
62
+ _push(`<div${ssrRenderAttrs(mergeProps({ class: "antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide" }, _attrs))} data-v-cbb70498><div class="max-w-520px text-center" data-v-cbb70498><h1 class="font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]" data-v-cbb70498>${ssrInterpolate(__props.status)}</h1><h2 class="font-semibold mb-2 sm:text-3xl text-2xl" data-v-cbb70498>${ssrInterpolate(__props.statusText)}</h2><p class="mb-4 px-2 text-[#64748B] text-md" data-v-cbb70498>${ssrInterpolate(__props.description)}</p></div></div>`);
63
+ };
64
+ }
65
+ };
66
+ const _sfc_setup = _sfc_main.setup;
67
+ _sfc_main.setup = (props, ctx) => {
68
+ const ssrContext = useSSRContext();
69
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../node_modules/nuxt/dist/app/components/error-500.vue");
70
+ return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
71
+ };
72
+ const error500 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cbb70498"]]);
73
+
74
+ export { error500 as default };
75
+ //# sourceMappingURL=error-500-DabQpmqy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-500-DabQpmqy.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/error-500-DabQpmqy.js"],"names":[],"mappings":"","x_google_ignoreList":[0]}
@@ -0,0 +1,8 @@
1
+ const error500_vue_vue_type_style_index_0_scoped_cbb70498_lang = ".grid[data-v-cbb70498]{display:grid}.mb-2[data-v-cbb70498]{margin-bottom:.5rem}.mb-4[data-v-cbb70498]{margin-bottom:1rem}.max-w-520px[data-v-cbb70498]{max-width:520px}.min-h-screen[data-v-cbb70498]{min-height:100vh}.place-content-center[data-v-cbb70498]{place-content:center}.overflow-hidden[data-v-cbb70498]{overflow:hidden}.bg-white[data-v-cbb70498]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-cbb70498]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-cbb70498]{text-align:center}.text-\\[80px\\][data-v-cbb70498]{font-size:80px}.text-2xl[data-v-cbb70498]{font-size:1.5rem;line-height:2rem}.text-\\[\\#020420\\][data-v-cbb70498]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\\[\\#64748B\\][data-v-cbb70498]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold[data-v-cbb70498]{font-weight:600}.leading-none[data-v-cbb70498]{line-height:1}.tracking-wide[data-v-cbb70498]{letter-spacing:.025em}.font-sans[data-v-cbb70498]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-cbb70498]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased[data-v-cbb70498]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\\:bg-\\[\\#020420\\][data-v-cbb70498]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\\:text-white[data-v-cbb70498]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\\:text-\\[110px\\][data-v-cbb70498]{font-size:110px}.sm\\:text-3xl[data-v-cbb70498]{font-size:1.875rem;line-height:2.25rem}}";
2
+
3
+ const error500Styles_Ccrcwcfa = [
4
+ error500_vue_vue_type_style_index_0_scoped_cbb70498_lang
5
+ ];
6
+
7
+ export { error500Styles_Ccrcwcfa as default };
8
+ //# sourceMappingURL=error-500-styles.Ccrcwcfa.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-500-styles.Ccrcwcfa.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/error-500-styles-1.mjs-BXmXgwSc.js","../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/error-500-styles.Ccrcwcfa.mjs"],"names":["style_0"],"mappings":"","x_google_ignoreList":[0,1]}
@@ -0,0 +1,503 @@
1
+ import { defineComponent, createElementBlock, shallowRef, getCurrentInstance, provide, cloneVNode, h, isRef, computed, toValue, onServerPrefetch, reactive, ref, nextTick, unref, toRef } from 'vue';
2
+ import { A as hash } from '../nitro/nitro.mjs';
3
+ import { isPlainObject } from '@vue/shared';
4
+ import { u as useNuxtApp, c as asyncDataDefaults, f as fetchDefaults, d as createError } from './server.mjs';
5
+ import { debounce } from 'perfect-debounce';
6
+
7
+ function useRequestEvent(nuxtApp) {
8
+ nuxtApp ||= useNuxtApp();
9
+ return nuxtApp.ssrContext?.event;
10
+ }
11
+ function useRequestFetch() {
12
+ return useRequestEvent()?.$fetch || globalThis.$fetch;
13
+ }
14
+ defineComponent({
15
+ name: "ServerPlaceholder",
16
+ render() {
17
+ return createElementBlock("div");
18
+ }
19
+ });
20
+ const clientOnlySymbol = /* @__PURE__ */ Symbol.for("nuxt:client-only");
21
+ defineComponent({
22
+ name: "ClientOnly",
23
+ inheritAttrs: false,
24
+ props: ["fallback", "placeholder", "placeholderTag", "fallbackTag"],
25
+ ...false,
26
+ setup(props, { slots, attrs }) {
27
+ const mounted = shallowRef(false);
28
+ const vm = getCurrentInstance();
29
+ if (vm) {
30
+ vm._nuxtClientOnly = true;
31
+ }
32
+ provide(clientOnlySymbol, true);
33
+ return () => {
34
+ if (mounted.value) {
35
+ const vnodes = slots.default?.();
36
+ if (vnodes && vnodes.length === 1) {
37
+ return [cloneVNode(vnodes[0], attrs)];
38
+ }
39
+ return vnodes;
40
+ }
41
+ const slot = slots.fallback || slots.placeholder;
42
+ if (slot) {
43
+ return h(slot);
44
+ }
45
+ const fallbackStr = props.fallback || props.placeholder || "";
46
+ const fallbackTag = props.fallbackTag || props.placeholderTag || "span";
47
+ return createElementBlock(fallbackTag, attrs, fallbackStr);
48
+ };
49
+ }
50
+ });
51
+ function defineKeyedFunctionFactory(factory) {
52
+ const placeholder = function() {
53
+ throw new Error(`[nuxt] \`${factory.name}\` is a compiler macro and cannot be called at runtime.`);
54
+ };
55
+ return Object.defineProperty(placeholder, "__nuxt_factory", {
56
+ enumerable: false,
57
+ get: () => factory.factory
58
+ });
59
+ }
60
+ const createUseAsyncData = defineKeyedFunctionFactory({
61
+ name: "createUseAsyncData",
62
+ factory(options = {}) {
63
+ function useAsyncData2(...args) {
64
+ const autoKey = typeof args[args.length - 1] === "string" ? args.pop() : void 0;
65
+ if (_isAutoKeyNeeded(args[0], args[1])) {
66
+ args.unshift(autoKey);
67
+ }
68
+ let [_key, _handler, opts = {}] = args;
69
+ const isKeyReactive = isRef(_key) || typeof _key === "function";
70
+ const key = isKeyReactive ? computed(() => toValue(_key)) : { value: _key };
71
+ if (!key.value || typeof key.value !== "string") {
72
+ throw new TypeError("[nuxt] [useAsyncData] key must be a non-empty string.");
73
+ }
74
+ if (typeof _handler !== "function") {
75
+ throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");
76
+ }
77
+ const shouldFactoryOptionsOverride = typeof options === "function";
78
+ const nuxtApp = useNuxtApp();
79
+ const factoryOptions = shouldFactoryOptionsOverride ? options(opts) : options;
80
+ if (!shouldFactoryOptionsOverride) {
81
+ for (const key2 in factoryOptions) {
82
+ if (factoryOptions[key2] === void 0) {
83
+ continue;
84
+ }
85
+ if (opts[key2] !== void 0) {
86
+ continue;
87
+ }
88
+ opts[key2] = factoryOptions[key2];
89
+ }
90
+ }
91
+ opts.server ??= true;
92
+ opts.default ??= getDefault;
93
+ opts.getCachedData ??= getDefaultCachedData;
94
+ opts.lazy ??= false;
95
+ opts.immediate ??= true;
96
+ opts.deep ??= asyncDataDefaults.deep;
97
+ opts.dedupe ??= "cancel";
98
+ if (shouldFactoryOptionsOverride) {
99
+ for (const key2 in factoryOptions) {
100
+ if (factoryOptions[key2] === void 0) {
101
+ continue;
102
+ }
103
+ opts[key2] = factoryOptions[key2];
104
+ }
105
+ }
106
+ nuxtApp._asyncData[key.value];
107
+ function createInitialFetch() {
108
+ const initialFetchOptions = { cause: "initial", dedupe: opts.dedupe };
109
+ const existing = nuxtApp._asyncData[key.value];
110
+ if (!existing?._init) {
111
+ initialFetchOptions.cachedData = opts.getCachedData(key.value, nuxtApp, { cause: "initial" });
112
+ nuxtApp._asyncData[key.value] = buildAsyncData(nuxtApp, key.value, _handler, opts, initialFetchOptions.cachedData);
113
+ nuxtApp._asyncData[key.value]._initialCachedData = initialFetchOptions.cachedData;
114
+ } else if (nuxtApp._asyncDataPromises[key.value]) {
115
+ initialFetchOptions.cachedData = existing._initialCachedData;
116
+ }
117
+ return () => nuxtApp._asyncData[key.value].execute(initialFetchOptions);
118
+ }
119
+ const initialFetch = createInitialFetch();
120
+ const asyncData = nuxtApp._asyncData[key.value];
121
+ asyncData._deps++;
122
+ const fetchOnServer = opts.server !== false && nuxtApp.payload.serverRendered;
123
+ if (fetchOnServer && opts.immediate) {
124
+ const promise = initialFetch();
125
+ if (getCurrentInstance()) {
126
+ onServerPrefetch(() => promise);
127
+ } else {
128
+ nuxtApp.hook("app:created", async () => {
129
+ await promise;
130
+ });
131
+ }
132
+ }
133
+ const asyncReturn = {
134
+ data: writableComputedRef(() => nuxtApp._asyncData[key.value]?.data),
135
+ pending: writableComputedRef(() => nuxtApp._asyncData[key.value]?.pending),
136
+ status: writableComputedRef(() => nuxtApp._asyncData[key.value]?.status),
137
+ error: writableComputedRef(() => nuxtApp._asyncData[key.value]?.error),
138
+ refresh: (...args2) => {
139
+ if (!nuxtApp._asyncData[key.value]?._init) {
140
+ const initialFetch2 = createInitialFetch();
141
+ return initialFetch2();
142
+ }
143
+ return nuxtApp._asyncData[key.value].execute(...args2);
144
+ },
145
+ execute: (...args2) => asyncReturn.refresh(...args2),
146
+ clear: () => {
147
+ const entry = nuxtApp._asyncData[key.value];
148
+ if (entry?._abortController) {
149
+ try {
150
+ entry._abortController.abort(new DOMException("AsyncData aborted by user.", "AbortError"));
151
+ } finally {
152
+ entry._abortController = void 0;
153
+ }
154
+ }
155
+ clearNuxtDataByKey(nuxtApp, key.value);
156
+ }
157
+ };
158
+ const asyncDataPromise = Promise.resolve(nuxtApp._asyncDataPromises[key.value]).then(() => asyncReturn);
159
+ Object.assign(asyncDataPromise, asyncReturn);
160
+ Object.defineProperties(asyncDataPromise, {
161
+ then: { enumerable: true, value: asyncDataPromise.then.bind(asyncDataPromise) },
162
+ catch: { enumerable: true, value: asyncDataPromise.catch.bind(asyncDataPromise) },
163
+ finally: { enumerable: true, value: asyncDataPromise.finally.bind(asyncDataPromise) }
164
+ });
165
+ return asyncDataPromise;
166
+ }
167
+ return useAsyncData2;
168
+ }
169
+ });
170
+ const useAsyncData = createUseAsyncData.__nuxt_factory();
171
+ createUseAsyncData.__nuxt_factory({
172
+ lazy: true,
173
+ // @ts-expect-error private property
174
+ _functionName: "useLazyAsyncData"
175
+ });
176
+ function writableComputedRef(getter) {
177
+ return computed({
178
+ get() {
179
+ return getter()?.value;
180
+ },
181
+ set(value) {
182
+ const ref2 = getter();
183
+ if (ref2) {
184
+ ref2.value = value;
185
+ }
186
+ }
187
+ });
188
+ }
189
+ function _isAutoKeyNeeded(keyOrFetcher, fetcher) {
190
+ if (typeof keyOrFetcher === "string") {
191
+ return false;
192
+ }
193
+ if (typeof keyOrFetcher === "object" && keyOrFetcher !== null) {
194
+ return false;
195
+ }
196
+ if (typeof keyOrFetcher === "function" && typeof fetcher === "function") {
197
+ return false;
198
+ }
199
+ return true;
200
+ }
201
+ function clearNuxtDataByKey(nuxtApp, key) {
202
+ if (key in nuxtApp.payload.data) {
203
+ nuxtApp.payload.data[key] = void 0;
204
+ }
205
+ if (key in nuxtApp.payload._errors) {
206
+ nuxtApp.payload._errors[key] = void 0;
207
+ }
208
+ if (nuxtApp._asyncData[key]) {
209
+ nuxtApp._asyncData[key].data.value = unref(nuxtApp._asyncData[key]._default());
210
+ nuxtApp._asyncData[key].error.value = void 0;
211
+ nuxtApp._asyncData[key].status.value = "idle";
212
+ nuxtApp._asyncData[key]._initialCachedData = void 0;
213
+ }
214
+ if (key in nuxtApp._asyncDataPromises) {
215
+ nuxtApp._asyncDataPromises[key] = void 0;
216
+ }
217
+ }
218
+ function pick(obj, keys) {
219
+ const newObj = {};
220
+ for (const key of keys) {
221
+ newObj[key] = obj[key];
222
+ }
223
+ return newObj;
224
+ }
225
+ function buildAsyncData(nuxtApp, key, _handler, options, initialCachedData) {
226
+ nuxtApp.payload._errors[key] ??= void 0;
227
+ const hasCustomGetCachedData = options.getCachedData !== getDefaultCachedData;
228
+ const handler = _handler ;
229
+ const _ref = options.deep ? ref : shallowRef;
230
+ const hasCachedData = initialCachedData !== void 0;
231
+ const unsubRefreshAsyncData = nuxtApp.hook("app:data:refresh", async (keys) => {
232
+ if (!keys || keys.includes(key)) {
233
+ await asyncData.execute({ cause: "refresh:hook" });
234
+ }
235
+ });
236
+ const asyncData = {
237
+ data: _ref(hasCachedData ? initialCachedData : options.default()),
238
+ pending: computed(() => asyncData.status.value === "pending"),
239
+ error: toRef(nuxtApp.payload._errors, key),
240
+ status: shallowRef("idle"),
241
+ execute: (...args) => {
242
+ const [_opts, newValue = void 0] = args;
243
+ const opts = _opts && newValue === void 0 && typeof _opts === "object" ? _opts : {};
244
+ if (nuxtApp._asyncDataPromises[key]) {
245
+ if ((opts.dedupe ?? options.dedupe) === "defer") {
246
+ return nuxtApp._asyncDataPromises[key];
247
+ }
248
+ }
249
+ {
250
+ const cachedData = "cachedData" in opts ? opts.cachedData : options.getCachedData(key, nuxtApp, { cause: opts.cause ?? "refresh:manual" });
251
+ if (cachedData !== void 0) {
252
+ nuxtApp.payload.data[key] = asyncData.data.value = cachedData;
253
+ asyncData.error.value = void 0;
254
+ asyncData.status.value = "success";
255
+ return Promise.resolve(cachedData);
256
+ }
257
+ }
258
+ if (asyncData._abortController) {
259
+ asyncData._abortController.abort(new DOMException("AsyncData request cancelled by deduplication", "AbortError"));
260
+ }
261
+ asyncData._abortController = new AbortController();
262
+ asyncData.status.value = "pending";
263
+ const cleanupController = new AbortController();
264
+ const promise = new Promise(
265
+ (resolve, reject) => {
266
+ try {
267
+ const timeout = opts.timeout ?? options.timeout;
268
+ const mergedSignal = mergeAbortSignals([asyncData._abortController?.signal, opts?.signal], cleanupController.signal, timeout);
269
+ if (mergedSignal.aborted) {
270
+ const reason = mergedSignal.reason;
271
+ reject(reason instanceof Error ? reason : new DOMException(String(reason ?? "Aborted"), "AbortError"));
272
+ return;
273
+ }
274
+ mergedSignal.addEventListener("abort", () => {
275
+ const reason = mergedSignal.reason;
276
+ reject(reason instanceof Error ? reason : new DOMException(String(reason ?? "Aborted"), "AbortError"));
277
+ }, { once: true, signal: cleanupController.signal });
278
+ return Promise.resolve(handler(nuxtApp, { signal: mergedSignal })).then(resolve, reject);
279
+ } catch (err) {
280
+ reject(err);
281
+ }
282
+ }
283
+ ).then(async (_result) => {
284
+ if (nuxtApp._asyncDataPromises[key] !== promise) {
285
+ return;
286
+ }
287
+ let result = _result;
288
+ if (options.transform) {
289
+ result = await options.transform(_result);
290
+ }
291
+ if (options.pick) {
292
+ result = pick(result, options.pick);
293
+ }
294
+ nuxtApp.payload.data[key] = result;
295
+ asyncData.data.value = result;
296
+ asyncData.error.value = void 0;
297
+ asyncData.status.value = "success";
298
+ }).catch((error) => {
299
+ if (nuxtApp._asyncDataPromises[key] !== promise) {
300
+ return nuxtApp._asyncDataPromises[key];
301
+ }
302
+ if (asyncData._abortController?.signal.aborted) {
303
+ return nuxtApp._asyncDataPromises[key];
304
+ }
305
+ if (typeof DOMException !== "undefined" && error instanceof DOMException && error.name === "AbortError") {
306
+ asyncData.status.value = "idle";
307
+ return nuxtApp._asyncDataPromises[key];
308
+ }
309
+ asyncData.error.value = createError(error);
310
+ asyncData.data.value = unref(options.default());
311
+ asyncData.status.value = "error";
312
+ }).finally(() => {
313
+ cleanupController.abort();
314
+ if (nuxtApp._asyncDataPromises[key] === promise) {
315
+ delete nuxtApp._asyncDataPromises[key];
316
+ }
317
+ });
318
+ nuxtApp._asyncDataPromises[key] = promise;
319
+ return nuxtApp._asyncDataPromises[key];
320
+ },
321
+ _execute: debounce((...args) => asyncData.execute(...args), 0, { leading: true }),
322
+ _default: options.default,
323
+ _deps: 0,
324
+ _init: true,
325
+ _hash: void 0,
326
+ _off: () => {
327
+ unsubRefreshAsyncData();
328
+ if (nuxtApp._asyncData[key]?._init) {
329
+ nuxtApp._asyncData[key]._init = false;
330
+ }
331
+ if (!hasCustomGetCachedData) {
332
+ nextTick(() => {
333
+ if (!nuxtApp._asyncData[key]?._init) {
334
+ clearNuxtDataByKey(nuxtApp, key);
335
+ asyncData.execute = () => Promise.resolve();
336
+ }
337
+ });
338
+ }
339
+ }
340
+ };
341
+ return asyncData;
342
+ }
343
+ const getDefault = () => void 0;
344
+ const getDefaultCachedData = (key, nuxtApp, ctx) => {
345
+ if (nuxtApp.isHydrating) {
346
+ return nuxtApp.payload.data[key];
347
+ }
348
+ if (ctx.cause !== "refresh:manual" && ctx.cause !== "refresh:hook") {
349
+ return nuxtApp.static.data[key];
350
+ }
351
+ };
352
+ function mergeAbortSignals(signals, cleanupSignal, timeout) {
353
+ const list = signals.filter((s) => !!s);
354
+ if (typeof timeout === "number" && timeout >= 0) {
355
+ const timeoutSignal = AbortSignal.timeout?.(timeout);
356
+ if (timeoutSignal) {
357
+ list.push(timeoutSignal);
358
+ }
359
+ }
360
+ if (AbortSignal.any) {
361
+ return AbortSignal.any(list);
362
+ }
363
+ const controller = new AbortController();
364
+ for (const sig of list) {
365
+ if (sig.aborted) {
366
+ const reason = sig.reason ?? new DOMException("Aborted", "AbortError");
367
+ try {
368
+ controller.abort(reason);
369
+ } catch {
370
+ controller.abort();
371
+ }
372
+ return controller.signal;
373
+ }
374
+ }
375
+ const onAbort = () => {
376
+ const abortedSignal = list.find((s) => s.aborted);
377
+ const reason = abortedSignal?.reason ?? new DOMException("Aborted", "AbortError");
378
+ try {
379
+ controller.abort(reason);
380
+ } catch {
381
+ controller.abort();
382
+ }
383
+ };
384
+ for (const sig of list) {
385
+ sig.addEventListener?.("abort", onAbort, { once: true, signal: cleanupSignal });
386
+ }
387
+ return controller.signal;
388
+ }
389
+ function generateOptionSegments(opts) {
390
+ const segments = [
391
+ toValue(opts.method)?.toUpperCase() || "GET",
392
+ toValue(opts.baseURL)
393
+ ];
394
+ for (const _obj of [opts.query || opts.params]) {
395
+ const obj = toValue(_obj);
396
+ if (!obj) {
397
+ continue;
398
+ }
399
+ const unwrapped = {};
400
+ for (const [key, value] of Object.entries(obj)) {
401
+ unwrapped[toValue(key)] = toValue(value);
402
+ }
403
+ segments.push(unwrapped);
404
+ }
405
+ if (opts.body) {
406
+ const value = toValue(opts.body);
407
+ if (!value) {
408
+ segments.push(hash(value));
409
+ } else if (value instanceof ArrayBuffer) {
410
+ segments.push(hash(Object.fromEntries([...new Uint8Array(value).entries()].map(([k, v]) => [k, v.toString()]))));
411
+ } else if (value instanceof FormData) {
412
+ const entries = [];
413
+ for (const entry of value.entries()) {
414
+ const [key, val] = entry;
415
+ entries.push([key, val instanceof File ? `${val.name}:${val.size}:${val.lastModified}` : val]);
416
+ }
417
+ segments.push(hash(entries));
418
+ } else if (isPlainObject(value)) {
419
+ segments.push(hash(reactive(value)));
420
+ } else {
421
+ try {
422
+ segments.push(hash(value));
423
+ } catch {
424
+ console.warn("[useFetch] Failed to hash body", value);
425
+ }
426
+ }
427
+ }
428
+ return segments;
429
+ }
430
+ const createUseFetch = defineKeyedFunctionFactory({
431
+ name: "createUseFetch",
432
+ factory(options = {}) {
433
+ function useFetch2(request, arg1, arg2) {
434
+ const [opts = {}, autoKey] = typeof arg1 === "string" ? [{}, arg1] : [arg1, arg2];
435
+ const factoryOptions = typeof options === "function" ? options(opts) : options;
436
+ const {
437
+ server,
438
+ lazy,
439
+ default: defaultFn,
440
+ transform,
441
+ pick: pick2,
442
+ watch: watchSources,
443
+ immediate,
444
+ getCachedData,
445
+ deep,
446
+ dedupe,
447
+ timeout,
448
+ ...fetchOptions
449
+ } = {
450
+ ...typeof options === "function" ? {} : factoryOptions,
451
+ ...opts,
452
+ ...typeof options === "function" ? factoryOptions : {}
453
+ };
454
+ const _request = computed(() => toValue(request));
455
+ const key = computed(() => toValue(fetchOptions.key) || "$f" + hash([autoKey, typeof _request.value === "string" ? _request.value : "", ...generateOptionSegments(fetchOptions)]));
456
+ if (!fetchOptions.baseURL && typeof _request.value === "string" && (_request.value[0] === "/" && _request.value[1] === "/")) {
457
+ throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');
458
+ }
459
+ const _fetchOptions = reactive({
460
+ ...fetchDefaults,
461
+ ...fetchOptions,
462
+ cache: typeof fetchOptions.cache === "boolean" ? void 0 : fetchOptions.cache
463
+ });
464
+ const _asyncDataOptions = {
465
+ server,
466
+ lazy,
467
+ default: defaultFn,
468
+ transform,
469
+ pick: pick2,
470
+ immediate,
471
+ getCachedData,
472
+ deep,
473
+ dedupe,
474
+ timeout,
475
+ watch: watchSources === false ? [] : [...watchSources || [], _fetchOptions]
476
+ };
477
+ if (watchSources === false) {
478
+ _asyncDataOptions._keyTriggersExecute = false;
479
+ }
480
+ const asyncData = useAsyncData(key, (_, { signal }) => {
481
+ let _$fetch = fetchOptions.$fetch || globalThis.$fetch;
482
+ if (!fetchOptions.$fetch) {
483
+ const isLocalFetch = typeof _request.value === "string" && _request.value[0] === "/" && (!toValue(fetchOptions.baseURL) || toValue(fetchOptions.baseURL)[0] === "/");
484
+ if (isLocalFetch) {
485
+ _$fetch = useRequestFetch();
486
+ }
487
+ }
488
+ return _$fetch(_request.value, { signal, ..._fetchOptions });
489
+ }, _asyncDataOptions);
490
+ return asyncData;
491
+ }
492
+ return useFetch2;
493
+ }
494
+ });
495
+ const useFetch = createUseFetch.__nuxt_factory();
496
+ createUseFetch.__nuxt_factory({
497
+ lazy: true,
498
+ // @ts-expect-error private property
499
+ _functionName: "useLazyFetch"
500
+ });
501
+
502
+ export { useFetch as u };
503
+ //# sourceMappingURL=fetch-BlczD9wj.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-BlczD9wj.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/fetch-BlczD9wj.js"],"names":[],"mappings":"","x_google_ignoreList":[0]}