cabloy 5.1.10 → 5.1.12

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 (210) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/lint-staged.config.mjs +92 -0
  3. package/oxfmt.config.ts +4 -1
  4. package/package.json +2 -11
  5. package/vona/packages-utils/lint/api/tsconfig.base.esm.json +30 -2
  6. package/vona/packages-utils/lint/package.json +40 -5
  7. package/vona/packages-utils/lint/src/index.ts +3 -0
  8. package/vona/packages-utils/lint/{oxc/format.js → src/oxc/format.ts} +4 -2
  9. package/vona/packages-utils/lint/{oxc/lint.js → src/oxc/lint.ts} +7 -7
  10. package/vona/packages-utils/lint/{oxc/lintVue.js → src/oxc/lintVue.ts} +4 -6
  11. package/vona/packages-utils/lint/tsconfig.json +14 -0
  12. package/vona/pnpm-lock.yaml +338 -17
  13. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/index.ts +0 -78
  14. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolOne.ts +3 -1
  15. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolTwo.ts +3 -1
  16. package/zova/env/.env.ssr.cabloyBasicAdmin +0 -2
  17. package/zova/package.original.json +2 -8
  18. package/zova/packages-cli/cli/package.json +2 -2
  19. package/zova/packages-cli/cli-set-front/package.json +8 -8
  20. package/zova/packages-utils/babel-plugin-zova-bean-module/package.json +3 -3
  21. package/zova/packages-utils/babel-plugin-zova-bean-use/package.json +2 -2
  22. package/zova/packages-utils/babel-plugin-zova-behavior/package.json +2 -2
  23. package/zova/packages-utils/babel-plugin-zova-component/package.json +2 -2
  24. package/zova/packages-utils/logger/package.json +2 -2
  25. package/zova/packages-utils/mutate-on-copy/package.json +2 -2
  26. package/zova/packages-utils/quasar-app-extension-zova/package.json +3 -3
  27. package/zova/packages-utils/word-utils/package.json +2 -2
  28. package/zova/packages-utils/zova-jsx/package.json +4 -4
  29. package/zova/packages-utils/zova-openapi/package.json +2 -2
  30. package/zova/packages-utils/zova-vite/package.json +6 -6
  31. package/zova/packages-zova/zova/package.json +4 -4
  32. package/zova/packages-zova/zova-core/package.json +4 -4
  33. package/zova/pnpm-lock.yaml +67 -63
  34. package/zova/src/suite/a-demo/modules/demo-basic/package.json +1 -1
  35. package/zova/src/suite/a-demo/modules/demo-todo/package.json +1 -1
  36. package/zova/src/suite/a-demo/package.json +1 -1
  37. package/zova/src/suite/a-devui/modules/devui-adapter/package.json +1 -1
  38. package/zova/src/suite/a-devui/package.json +1 -1
  39. package/zova/src/suite/a-home/modules/home-api/package.json +1 -1
  40. package/zova/src/suite/a-home/modules/home-base/package.json +1 -1
  41. package/zova/src/suite/a-home/modules/home-icon/package.json +1 -1
  42. package/zova/src/suite/a-home/modules/home-index/package.json +1 -1
  43. package/zova/src/suite/a-home/modules/home-layoutempty/package.json +1 -1
  44. package/zova/src/suite/a-home/modules/home-layouttabs/package.json +1 -1
  45. package/zova/src/suite/a-home/modules/home-login/package.json +1 -1
  46. package/zova/src/suite/a-home/modules/home-passport/package.json +1 -1
  47. package/zova/src/suite/a-home/modules/home-theme/package.json +1 -1
  48. package/zova/src/suite/a-home/package.json +1 -1
  49. package/zova/src/suite/cabloy-basic/modules/basic-adapter/package.json +1 -1
  50. package/zova/src/suite/cabloy-basic/modules/basic-captcha/package.json +1 -1
  51. package/zova/src/suite/cabloy-basic/modules/basic-commands/package.json +1 -1
  52. package/zova/src/suite/cabloy-basic/modules/basic-commandssync/package.json +1 -1
  53. package/zova/src/suite/cabloy-basic/modules/basic-currency/package.json +1 -1
  54. package/zova/src/suite/cabloy-basic/modules/basic-date/package.json +1 -1
  55. package/zova/src/suite/cabloy-basic/modules/basic-form/package.json +1 -1
  56. package/zova/src/suite/cabloy-basic/modules/basic-input/package.json +1 -1
  57. package/zova/src/suite/cabloy-basic/modules/basic-page/package.json +1 -1
  58. package/zova/src/suite/cabloy-basic/modules/basic-pageentry/package.json +1 -1
  59. package/zova/src/suite/cabloy-basic/modules/basic-select/package.json +1 -0
  60. package/zova/src/suite/cabloy-basic/modules/basic-table/package.json +1 -1
  61. package/zova/src/suite/cabloy-basic/modules/basic-text/package.json +1 -0
  62. package/zova/src/suite-vendor/a-zova/modules/a-api/package.json +2 -2
  63. package/zova/src/suite-vendor/a-zova/modules/a-app/package.json +2 -2
  64. package/zova/src/suite-vendor/a-zova/modules/a-bean/package.json +2 -2
  65. package/zova/src/suite-vendor/a-zova/modules/a-behavior/package.json +2 -2
  66. package/zova/src/suite-vendor/a-zova/modules/a-behaviors/package.json +2 -2
  67. package/zova/src/suite-vendor/a-zova/modules/a-boundary/package.json +2 -2
  68. package/zova/src/suite-vendor/a-zova/modules/a-command/package.json +2 -2
  69. package/zova/src/suite-vendor/a-zova/modules/a-fetch/package.json +2 -2
  70. package/zova/src/suite-vendor/a-zova/modules/a-form/package.json +2 -2
  71. package/zova/src/suite-vendor/a-zova/modules/a-icon/package.json +2 -2
  72. package/zova/src/suite-vendor/a-zova/modules/a-interceptor/package.json +2 -2
  73. package/zova/src/suite-vendor/a-zova/modules/a-logger/package.json +3 -3
  74. package/zova/src/suite-vendor/a-zova/modules/a-meta/package.json +2 -2
  75. package/zova/src/suite-vendor/a-zova/modules/a-model/package.json +3 -3
  76. package/zova/src/suite-vendor/a-zova/modules/a-openapi/package.json +2 -2
  77. package/zova/src/suite-vendor/a-zova/modules/a-router/package.json +2 -2
  78. package/zova/src/suite-vendor/a-zova/modules/a-routerstack/package.json +2 -2
  79. package/zova/src/suite-vendor/a-zova/modules/a-routertabs/package.json +2 -2
  80. package/zova/src/suite-vendor/a-zova/modules/a-ssr/package.json +2 -2
  81. package/zova/src/suite-vendor/a-zova/modules/a-ssrhmr/package.json +2 -2
  82. package/zova/src/suite-vendor/a-zova/modules/a-ssrserver/package.json +2 -2
  83. package/zova/src/suite-vendor/a-zova/modules/a-style/package.json +2 -2
  84. package/zova/src/suite-vendor/a-zova/modules/a-table/package.json +2 -2
  85. package/zova/src/suite-vendor/a-zova/modules/a-zod/package.json +2 -2
  86. package/zova/src/suite-vendor/a-zova/modules/a-zova/package.json +5 -5
  87. package/zova/src/suite-vendor/a-zova/package.json +27 -27
  88. package/vona/packages-utils/lint/api/eslint.js +0 -41
  89. package/vona/packages-utils/lint/api/prettier.js +0 -8
  90. package/vona/packages-utils/lint/api/tsconfig.base.cjs.json +0 -32
  91. package/vona/packages-utils/lint/common/rules.js +0 -155
  92. package/vona/packages-utils/lint/common/rulesVue.js +0 -5
  93. package/vona/packages-utils/lint/front/eslint.js +0 -59
  94. package/vona/packages-utils/lint/front/prettier.js +0 -3
  95. package/vona/packages-utils/lint/front/tsconfig.base.cjs.json +0 -4
  96. package/vona/packages-utils/lint/front/tsconfig.base.esm.json +0 -9
  97. package/vona/packages-utils/lint/index.js +0 -3
  98. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/-zova-config-CoKN49wO.js +0 -11
  99. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-api-DmsK4zNw.js +0 -178
  100. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-app-C7cTDV9C.js +0 -138
  101. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-bean-qjOwLLml.js +0 -408
  102. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-behavior-I9evY2QT.js +0 -454
  103. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-behaviors-Dh8sE2AX.js +0 -58
  104. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-boundary-DxeJURnH.js +0 -21
  105. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-command-Duq9OGnp.js +0 -165
  106. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-fetch-BsiDc5MA.js +0 -317
  107. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-form-BSfvKLPu.js +0 -947
  108. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-icon-Bx0yNmUB.js +0 -460
  109. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-interceptor-CtK-mG6U.js +0 -256
  110. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-logger-D6FVEo-2.js +0 -143
  111. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-meta-DLAWtBzn.js +0 -47
  112. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-model-Ds17NAa5.js +0 -887
  113. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-openapi-Cu42a7Tj.js +0 -677
  114. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-router-BEKs1P3y.js +0 -1009
  115. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-routerstack-CNda3TvU.js +0 -239
  116. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-routertabs-CA8KhmHx.js +0 -519
  117. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-ssr-WZQfI3lD.js +0 -711
  118. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-ssrhmr-DiG_2CbH.js +0 -97
  119. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-style-Dcrophdv.js +0 -408
  120. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-table-Cr0qHPMV.js +0 -464
  121. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-zod-B5ZzHMKp.js +0 -87
  122. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/a-zova-WAWkGLRj.js +0 -21
  123. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/auth-Bjup4K84.svg +0 -8
  124. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/axios-jFGAltpb.js +0 -3152
  125. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-adapter-BzdgS83E.js +0 -68
  126. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-captcha-gmlRJxbp.js +0 -209
  127. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-commands-CmuoODyc.js +0 -179
  128. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-commandssync-4uJoTYWO.js +0 -62
  129. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-currency-ljdT_mJv.js +0 -159
  130. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-date-CJtZtM5q.js +0 -251
  131. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-form-Bi-Dm8Pp.js +0 -376
  132. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-input-DugSctyu.js +0 -83
  133. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-page-C0Mpx24A.js +0 -610
  134. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-pageentry-De7Zvv7J.js +0 -443
  135. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-select-WKCF4vyo.js +0 -186
  136. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-table-B4Eyf7EC.js +0 -368
  137. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/basic-text-CRqjMEyr.js +0 -118
  138. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/browser-C8cI94Tr.js +0 -2409
  139. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/business-DQeTVrBD.svg +0 -12
  140. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/daisy-BZm4lJOy.svg +0 -4
  141. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/default-DxTAw1iv.svg +0 -118
  142. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/demo-basic-CiW_uKMD.js +0 -1419
  143. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/demo-student-DpiY4dnt.js +0 -69
  144. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/demo-todo-CM3XdLlo.js +0 -427
  145. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/devui-adapter-B2uiKP95.js +0 -95
  146. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/dist.es2015-BMNhwNBy.js +0 -343
  147. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/editor-CmZexDJp.svg +0 -32
  148. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/emoji-CLaR2GZg.svg +0 -3
  149. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/esm-Z9BncIrt.js +0 -2574
  150. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/extends-BSP9iXrM.js +0 -27
  151. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/fecha-DvkbkxAQ.js +0 -9849
  152. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/flow-DCn4s91p.svg +0 -13
  153. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-api-B1NjQp7i.js +0 -374
  154. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-base-DRJdeGsg.js +0 -654
  155. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-icon-65b9tDB5.js +0 -125
  156. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-index-KrvUKcFR.js +0 -79
  157. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-layoutempty-DP2peKfC.js +0 -87
  158. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-layouttabs-CRIoszHS.js +0 -980
  159. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-login-z4Url6WO.js +0 -302
  160. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-passport-OqpwAU0M.js +0 -293
  161. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/home-theme-BSua63Y_.js +0 -131
  162. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/index-B5HTgis_.css +0 -26
  163. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/index-Cd4EYYtZ.js +0 -1331
  164. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/localforage-e6vl49GD.js +0 -1798
  165. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/login-Qly1YUqs.svg +0 -7
  166. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/openapi3-jIye4jNw.js +0 -23
  167. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/outline-C6s9io8r.svg +0 -41
  168. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/rest-resource-CN0Ontwm.js +0 -552
  169. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/role-fXTNmWmb.svg +0 -10
  170. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/rolldown-runtime-lkMnaVCm.js +0 -38
  171. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/social-DosI14Uo.svg +0 -12
  172. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/src-BRq8dtuS.js +0 -44
  173. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/src-CBGuKzpF.js +0 -5996
  174. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/src-CzJSxlnS.js +0 -496
  175. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/src-YVxhoO6F.js +0 -65
  176. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-form-CBq6dr_k.js +0 -122
  177. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-query-BJk2jOuy.js +0 -2377
  178. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-query-CBWe1LsT.js +0 -365
  179. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-query-Ch18aWTP.js +0 -212
  180. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-table-BvC3VgJj.js +0 -2241
  181. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tanstack-table-D85qomSu.js +0 -123
  182. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/tools-Wk7SnIwE.svg +0 -4
  183. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/typestyle-C2zp2284.js +0 -281
  184. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-1Y5FbPzj.js +0 -3221
  185. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-C-LVj1DU.js +0 -18
  186. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-ChEE2n-Y.js +0 -598
  187. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-CvF_GLFp.js +0 -190
  188. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-DHzalQTI.js +0 -1308
  189. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/vue-router-COfHCB5q.js +0 -1775
  190. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/wrapAsyncGenerator-zA6hqk-P.js +0 -155
  191. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-6Abekb1F.js +0 -83
  192. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-BHaXQJg22.js +0 -11
  193. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-BYPEGx1T.js +0 -15586
  194. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-BuxXrZHs.js +0 -24
  195. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-C4pGJxwQ.js +0 -1227
  196. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-CoRfsquu.js +0 -8
  197. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-CzTANp3C.js +0 -380
  198. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-DQbBsEtS.js +0 -4130
  199. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/assets/zova-hmnYQoyt.js +0 -374
  200. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/client/favicon.ico +0 -0
  201. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/handler.js +0 -164729
  202. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/index.js +0 -26236
  203. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/assets/site/ssr-testSecond-5.0.0/quasar.manifest.json +0 -1
  204. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/bean/ssrMenu.tools.ts +0 -32
  205. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/bean/ssrMenuGroup.tools.ts +0 -18
  206. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/bean/ssrSite.second.ts +0 -31
  207. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/test/ssr.test.ts +0 -44
  208. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/zovaRest/test-second/index.d.mts +0 -9107
  209. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/zovaRest/test-second/index.mjs +0 -234
  210. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/zovaRest/test-second/package.json +0 -40
@@ -1,3221 +0,0 @@
1
- import { n as __esmMin } from "./rolldown-runtime-lkMnaVCm.js";
2
- import { A as isObject, B as looseToNumber, C as init_shared_esm_bundler, E as isFunction, F as isReservedProp, G as toHandlerKey, H as normalizeClass, N as isPromise, P as isRegExp, R as isString, T as isArray, U as normalizeStyle, W as remove, _ as extend, b as hasOwn, d as EMPTY_OBJ, f as NO, g as def, j as isOn, k as isModelListener, m as camelize, p as NOOP, u as EMPTY_ARR, v as getGlobalThis, w as invokeArrayFns, x as hyphenate } from "./vue-CvF_GLFp.js";
3
- import { C as track, D as watch$1, T as trigger, _ as shallowReactive, a as init_reactivity_esm_bundler, b as toRaw, c as isRef, d as pauseTracking, f as proxyRefs, g as resetTracking, h as ref, l as markRaw, n as ReactiveEffect, o as isProxy, p as reactive, r as computed$1, s as isReactive, t as EffectScope, w as traverse } from "./vue-DHzalQTI.js";
4
- //#region node_modules/.pnpm/@cabloy+vue-runtime-core@3.5.53/node_modules/@cabloy/vue-runtime-core/dist/runtime-core.esm-bundler.js
5
- /**
6
- * @cabloy/vue-runtime-core v3.5.13
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/
10
- function callWithErrorHandling(fn, instance, type, args) {
11
- try {
12
- return args ? fn(...args) : fn();
13
- } catch (err) {
14
- handleError(err, instance, type);
15
- }
16
- }
17
- function callWithAsyncErrorHandling(fn, instance, type, args) {
18
- if (isFunction(fn)) {
19
- const res = callWithErrorHandling(fn, instance, type, args);
20
- if (res && isPromise(res)) res.catch((err) => {
21
- handleError(err, instance, type);
22
- });
23
- return res;
24
- }
25
- if (isArray(fn)) {
26
- const values = [];
27
- for (let i = 0; i < fn.length; i++) values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));
28
- return values;
29
- }
30
- }
31
- function handleError(err, instance, type, throwInDev = true) {
32
- const contextVNode = instance ? instance.vnode : null;
33
- const { errorHandler, throwUnhandledErrorInProduction } = instance && instance.appContext.config || EMPTY_OBJ;
34
- if (instance) {
35
- let cur = instance.parent;
36
- const exposedInstance = instance.proxy;
37
- const errorInfo = `https://vuejs.org/error-reference/#runtime-${type}`;
38
- while (cur) {
39
- const errorCapturedHooks = cur.ec;
40
- if (errorCapturedHooks) {
41
- for (let i = 0; i < errorCapturedHooks.length; i++) if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) return;
42
- }
43
- cur = cur.parent;
44
- }
45
- if (errorHandler) {
46
- pauseTracking();
47
- callWithErrorHandling(errorHandler, null, 10, [
48
- err,
49
- exposedInstance,
50
- errorInfo
51
- ]);
52
- resetTracking();
53
- return;
54
- }
55
- }
56
- logError(err, type, contextVNode, throwInDev, throwUnhandledErrorInProduction);
57
- }
58
- function logError(err, type, contextVNode, throwInDev = true, throwInProd = false) {
59
- if (throwInProd) throw err;
60
- else console.error(err);
61
- }
62
- function nextTick(fn) {
63
- const p = currentFlushPromise || resolvedPromise;
64
- return fn ? p.then(this ? fn.bind(this) : fn) : p;
65
- }
66
- function findInsertionIndex(id) {
67
- let start = flushIndex + 1;
68
- let end = queue.length;
69
- while (start < end) {
70
- const middle = start + end >>> 1;
71
- const middleJob = queue[middle];
72
- const middleJobId = getId(middleJob);
73
- if (middleJobId < id || middleJobId === id && middleJob.flags & 2) start = middle + 1;
74
- else end = middle;
75
- }
76
- return start;
77
- }
78
- function queueJob(job) {
79
- if (!(job.flags & 1)) {
80
- const jobId = getId(job);
81
- const lastJob = queue[queue.length - 1];
82
- if (!lastJob || !(job.flags & 2) && jobId >= getId(lastJob)) queue.push(job);
83
- else queue.splice(findInsertionIndex(jobId), 0, job);
84
- job.flags |= 1;
85
- queueFlush();
86
- }
87
- }
88
- function queueFlush() {
89
- if (!currentFlushPromise) currentFlushPromise = resolvedPromise.then(flushJobs);
90
- }
91
- function queuePostFlushCb(cb) {
92
- if (!isArray(cb)) {
93
- if (activePostFlushCbs && cb.id === -1) activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);
94
- else if (!(cb.flags & 1)) {
95
- pendingPostFlushCbs.push(cb);
96
- cb.flags |= 1;
97
- }
98
- } else pendingPostFlushCbs.push(...cb);
99
- queueFlush();
100
- }
101
- function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
102
- for (; i < queue.length; i++) {
103
- const cb = queue[i];
104
- if (cb && cb.flags & 2) {
105
- if (instance && cb.id !== instance.uid) continue;
106
- queue.splice(i, 1);
107
- i--;
108
- if (cb.flags & 4) cb.flags &= -2;
109
- cb();
110
- if (!(cb.flags & 4)) cb.flags &= -2;
111
- }
112
- }
113
- }
114
- function flushPostFlushCbs(seen) {
115
- if (pendingPostFlushCbs.length) {
116
- const deduped = [...new Set(pendingPostFlushCbs)].sort((a, b) => getId(a) - getId(b));
117
- pendingPostFlushCbs.length = 0;
118
- if (activePostFlushCbs) {
119
- activePostFlushCbs.push(...deduped);
120
- return;
121
- }
122
- activePostFlushCbs = deduped;
123
- for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
124
- const cb = activePostFlushCbs[postFlushIndex];
125
- if (cb.flags & 4) cb.flags &= -2;
126
- if (!(cb.flags & 8)) cb();
127
- cb.flags &= -2;
128
- }
129
- activePostFlushCbs = null;
130
- postFlushIndex = 0;
131
- }
132
- }
133
- function flushJobs(seen) {
134
- try {
135
- for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
136
- const job = queue[flushIndex];
137
- if (job && !(job.flags & 8)) {
138
- if (job.flags & 4) job.flags &= -2;
139
- callWithErrorHandling(job, job.i, job.i ? 15 : 14);
140
- if (!(job.flags & 4)) job.flags &= -2;
141
- }
142
- }
143
- } finally {
144
- for (; flushIndex < queue.length; flushIndex++) {
145
- const job = queue[flushIndex];
146
- if (job) job.flags &= -2;
147
- }
148
- flushIndex = -1;
149
- queue.length = 0;
150
- flushPostFlushCbs(seen);
151
- currentFlushPromise = null;
152
- if (queue.length || pendingPostFlushCbs.length) flushJobs(seen);
153
- }
154
- }
155
- /*! #__NO_SIDE_EFFECTS__ */
156
- function setCurrentRenderingInstance(instance) {
157
- const prev = currentRenderingInstance;
158
- currentRenderingInstance = instance;
159
- currentScopeId = instance && instance.type.__scopeId || null;
160
- return prev;
161
- }
162
- function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
163
- if (!ctx) return fn;
164
- if (fn._n) return fn;
165
- const renderFnWithContext = (...args) => {
166
- if (renderFnWithContext._d) setBlockTracking(-1);
167
- const prevInstance = setCurrentRenderingInstance(ctx);
168
- let res;
169
- try {
170
- res = fn(...args);
171
- } finally {
172
- setCurrentRenderingInstance(prevInstance);
173
- if (renderFnWithContext._d) setBlockTracking(1);
174
- }
175
- return res;
176
- };
177
- renderFnWithContext._n = true;
178
- renderFnWithContext._c = true;
179
- renderFnWithContext._d = true;
180
- return renderFnWithContext;
181
- }
182
- function withDirectives(vnode, directives) {
183
- if (currentRenderingInstance === null) return vnode;
184
- const instance = getComponentPublicInstance(currentRenderingInstance);
185
- const bindings = vnode.dirs || (vnode.dirs = []);
186
- for (let i = 0; i < directives.length; i++) {
187
- let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i];
188
- if (dir) {
189
- if (isFunction(dir)) dir = {
190
- mounted: dir,
191
- updated: dir
192
- };
193
- if (dir.deep) traverse(value);
194
- bindings.push({
195
- dir,
196
- instance,
197
- value,
198
- oldValue: void 0,
199
- arg,
200
- modifiers
201
- });
202
- }
203
- }
204
- return vnode;
205
- }
206
- function invokeDirectiveHook(vnode, prevVNode, instance, name) {
207
- const bindings = vnode.dirs;
208
- const oldBindings = prevVNode && prevVNode.dirs;
209
- for (let i = 0; i < bindings.length; i++) {
210
- const binding = bindings[i];
211
- if (oldBindings) binding.oldValue = oldBindings[i].value;
212
- let hook = binding.dir[name];
213
- if (hook) {
214
- pauseTracking();
215
- callWithAsyncErrorHandling(hook, instance, 8, [
216
- vnode.el,
217
- binding,
218
- vnode,
219
- prevVNode
220
- ]);
221
- resetTracking();
222
- }
223
- }
224
- }
225
- function useTransitionState() {
226
- const state = {
227
- isMounted: false,
228
- isLeaving: false,
229
- isUnmounting: false,
230
- leavingVNodes: /* @__PURE__ */ new Map()
231
- };
232
- onMounted(() => {
233
- state.isMounted = true;
234
- });
235
- onBeforeUnmount(() => {
236
- state.isUnmounting = true;
237
- });
238
- return state;
239
- }
240
- function findNonCommentChild(children) {
241
- let child = children[0];
242
- if (children.length > 1) {
243
- for (const c of children) if (c.type !== Comment) {
244
- child = c;
245
- break;
246
- }
247
- }
248
- return child;
249
- }
250
- function getLeavingNodesForType(state, vnode) {
251
- const { leavingVNodes } = state;
252
- let leavingVNodesCache = leavingVNodes.get(vnode.type);
253
- if (!leavingVNodesCache) {
254
- leavingVNodesCache = /* @__PURE__ */ Object.create(null);
255
- leavingVNodes.set(vnode.type, leavingVNodesCache);
256
- }
257
- return leavingVNodesCache;
258
- }
259
- function resolveTransitionHooks(vnode, props, state, instance, postClone) {
260
- const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;
261
- const key = String(vnode.key);
262
- const leavingVNodesCache = getLeavingNodesForType(state, vnode);
263
- const callHook = (hook, args) => {
264
- hook && callWithAsyncErrorHandling(hook, instance, 9, args);
265
- };
266
- const callAsyncHook = (hook, args) => {
267
- const done = args[1];
268
- callHook(hook, args);
269
- if (isArray(hook)) {
270
- if (hook.every((hook2) => hook2.length <= 1)) done();
271
- } else if (hook.length <= 1) done();
272
- };
273
- const hooks = {
274
- mode,
275
- persisted,
276
- beforeEnter(el) {
277
- let hook = onBeforeEnter;
278
- if (!state.isMounted) if (appear) hook = onBeforeAppear || onBeforeEnter;
279
- else return;
280
- if (el[leaveCbKey]) el[leaveCbKey](true);
281
- const leavingVNode = leavingVNodesCache[key];
282
- if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) leavingVNode.el[leaveCbKey]();
283
- callHook(hook, [el]);
284
- },
285
- enter(el) {
286
- let hook = onEnter;
287
- let afterHook = onAfterEnter;
288
- let cancelHook = onEnterCancelled;
289
- if (!state.isMounted) if (appear) {
290
- hook = onAppear || onEnter;
291
- afterHook = onAfterAppear || onAfterEnter;
292
- cancelHook = onAppearCancelled || onEnterCancelled;
293
- } else return;
294
- let called = false;
295
- const done = el[enterCbKey] = (cancelled) => {
296
- if (called) return;
297
- called = true;
298
- if (cancelled) callHook(cancelHook, [el]);
299
- else callHook(afterHook, [el]);
300
- if (hooks.delayedLeave) hooks.delayedLeave();
301
- el[enterCbKey] = void 0;
302
- };
303
- if (hook) callAsyncHook(hook, [el, done]);
304
- else done();
305
- },
306
- leave(el, remove) {
307
- const key2 = String(vnode.key);
308
- if (el[enterCbKey]) el[enterCbKey](true);
309
- if (state.isUnmounting) return remove();
310
- callHook(onBeforeLeave, [el]);
311
- let called = false;
312
- const done = el[leaveCbKey] = (cancelled) => {
313
- if (called) return;
314
- called = true;
315
- remove();
316
- if (cancelled) callHook(onLeaveCancelled, [el]);
317
- else callHook(onAfterLeave, [el]);
318
- el[leaveCbKey] = void 0;
319
- if (leavingVNodesCache[key2] === vnode) delete leavingVNodesCache[key2];
320
- };
321
- leavingVNodesCache[key2] = vnode;
322
- if (onLeave) callAsyncHook(onLeave, [el, done]);
323
- else done();
324
- },
325
- clone(vnode2) {
326
- const hooks2 = resolveTransitionHooks(vnode2, props, state, instance, postClone);
327
- if (postClone) postClone(hooks2);
328
- return hooks2;
329
- }
330
- };
331
- return hooks;
332
- }
333
- function emptyPlaceholder(vnode) {
334
- if (isKeepAlive(vnode)) {
335
- vnode = cloneVNode(vnode);
336
- vnode.children = null;
337
- return vnode;
338
- }
339
- }
340
- function getInnerChild$1(vnode) {
341
- if (!isKeepAlive(vnode)) {
342
- if (isTeleport(vnode.type) && vnode.children) return findNonCommentChild(vnode.children);
343
- return vnode;
344
- }
345
- const { shapeFlag, children } = vnode;
346
- if (children) {
347
- if (shapeFlag & 16) return children[0];
348
- if (shapeFlag & 32 && isFunction(children.default)) return children.default();
349
- }
350
- }
351
- function setTransitionHooks(vnode, hooks) {
352
- if (vnode.shapeFlag & 6 && vnode.component) {
353
- vnode.transition = hooks;
354
- setTransitionHooks(vnode.component.subTree, hooks);
355
- } else if (vnode.shapeFlag & 128) {
356
- vnode.ssContent.transition = hooks.clone(vnode.ssContent);
357
- vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
358
- } else vnode.transition = hooks;
359
- }
360
- function getTransitionRawChildren(children, keepComment = false, parentKey) {
361
- let ret = [];
362
- let keyedFragmentCount = 0;
363
- for (let i = 0; i < children.length; i++) {
364
- let child = children[i];
365
- const key = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i);
366
- if (child.type === Fragment) {
367
- if (child.patchFlag & 128) keyedFragmentCount++;
368
- ret = ret.concat(getTransitionRawChildren(child.children, keepComment, key));
369
- } else if (keepComment || child.type !== Comment) ret.push(key != null ? cloneVNode(child, { key }) : child);
370
- }
371
- if (keyedFragmentCount > 1) for (let i = 0; i < ret.length; i++) ret[i].patchFlag = -2;
372
- return ret;
373
- }
374
- function _updateZovaHostProviders$1(instance, zovaHostProviders) {
375
- let zova = instance.zova;
376
- if (!zova && instance.type.name === "AsyncComponentWrapper") zova = instance.subTree && instance.subTree.component && instance.subTree.component.zova;
377
- if (zova) zova._zovaHostProvidersUpdate(zovaHostProviders);
378
- }
379
- function matches(pattern, name) {
380
- if (isArray(pattern)) return pattern.some((p) => matches(p, name));
381
- else if (isString(pattern)) return pattern.split(",").includes(name);
382
- else if (isRegExp(pattern)) {
383
- pattern.lastIndex = 0;
384
- return pattern.test(name);
385
- }
386
- return false;
387
- }
388
- function onActivated(hook, target) {
389
- registerKeepAliveHook(hook, "a", target);
390
- }
391
- function onDeactivated(hook, target) {
392
- registerKeepAliveHook(hook, "da", target);
393
- }
394
- function registerKeepAliveHook(hook, type, target = currentInstance) {
395
- const wrappedHook = hook.__wdc || (hook.__wdc = () => {
396
- let current = target;
397
- while (current) {
398
- if (current.isDeactivated) return;
399
- current = current.parent;
400
- }
401
- return hook();
402
- });
403
- injectHook(type, wrappedHook, target);
404
- if (target) {
405
- let current = target.parent;
406
- while (current && current.parent) {
407
- if (isKeepAlive(current.parent.vnode)) injectToKeepAliveRoot(wrappedHook, type, target, current);
408
- current = current.parent;
409
- }
410
- }
411
- }
412
- function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
413
- const injected = injectHook(type, hook, keepAliveRoot, true);
414
- onUnmounted(() => {
415
- remove(keepAliveRoot[type], injected);
416
- }, target);
417
- }
418
- function resetShapeFlag(vnode) {
419
- vnode.shapeFlag &= -257;
420
- vnode.shapeFlag &= -513;
421
- }
422
- function getInnerChild(vnode) {
423
- return vnode.shapeFlag & 128 ? vnode.ssContent : vnode;
424
- }
425
- function injectHook(type, hook, target = currentInstance, prepend = false) {
426
- if (target) {
427
- const hooks = target[type] || (target[type] = []);
428
- const wrappedHook = hook.__weh || (hook.__weh = (...args) => {
429
- pauseTracking();
430
- const reset = setCurrentInstance(target);
431
- const res = callWithAsyncErrorHandling(hook, target, type, args);
432
- reset();
433
- resetTracking();
434
- return res;
435
- });
436
- if (prepend) hooks.unshift(wrappedHook);
437
- else hooks.push(wrappedHook);
438
- return wrappedHook;
439
- }
440
- }
441
- function onErrorCaptured(hook, target = currentInstance) {
442
- injectHook("ec", hook, target);
443
- }
444
- /*! #__NO_SIDE_EFFECTS__ */
445
- /* @__NO_SIDE_EFFECTS__ */
446
- function defineComponent(options, extraOptions) {
447
- return isFunction(options) ? extend({ name: options.name }, extraOptions, { setup: options }) : options;
448
- }
449
- function markAsyncBoundary(instance) {
450
- instance.ids = [
451
- instance.ids[0] + instance.ids[2]++ + "-",
452
- 0,
453
- 0
454
- ];
455
- }
456
- function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
457
- if (isArray(rawRef)) {
458
- rawRef.forEach((r, i) => setRef(r, oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef), parentSuspense, vnode, isUnmount));
459
- return;
460
- }
461
- if (isAsyncWrapper(vnode) && !isUnmount) {
462
- if (vnode.shapeFlag & 512 && vnode.type.__asyncResolved && vnode.component.subTree.component) setRef(rawRef, oldRawRef, parentSuspense, vnode.component.subTree);
463
- return;
464
- }
465
- const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el;
466
- const value = isUnmount ? null : refValue;
467
- const { i: owner, r: ref } = rawRef;
468
- const oldRef = oldRawRef && oldRawRef.r;
469
- const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
470
- const setupState = owner.setupState;
471
- const rawSetupState = toRaw(setupState);
472
- const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {
473
- return hasOwn(rawSetupState, key);
474
- };
475
- if (oldRef != null && oldRef !== ref) {
476
- if (isString(oldRef)) {
477
- refs[oldRef] = null;
478
- if (canSetSetupRef(oldRef)) setupState[oldRef] = null;
479
- } else if (isRef(oldRef)) oldRef.value = null;
480
- }
481
- if (isFunction(ref)) {
482
- if (!(vnode.shapeFlag & 4 && vnode.component && vnode.component.type.inheritAttrs === false)) callWithErrorHandling(ref, owner, 12, [value, refs]);
483
- } else {
484
- const _isString = isString(ref);
485
- const _isRef = isRef(ref);
486
- if (_isString || _isRef) {
487
- const doSet = () => {
488
- if (rawRef.f) {
489
- const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
490
- if (isUnmount) isArray(existing) && remove(existing, refValue);
491
- else if (!isArray(existing)) if (_isString) {
492
- refs[ref] = [refValue];
493
- if (canSetSetupRef(ref)) setupState[ref] = refs[ref];
494
- } else {
495
- ref.value = [refValue];
496
- if (rawRef.k) refs[rawRef.k] = ref.value;
497
- }
498
- else if (!existing.includes(refValue)) existing.push(refValue);
499
- } else if (_isString) {
500
- refs[ref] = value;
501
- if (canSetSetupRef(ref)) setupState[ref] = value;
502
- } else if (_isRef) {
503
- ref.value = value;
504
- if (rawRef.k) refs[rawRef.k] = value;
505
- }
506
- };
507
- if (value) {
508
- doSet.id = -1;
509
- queuePostRenderEffect(doSet, parentSuspense);
510
- } else doSet();
511
- }
512
- }
513
- }
514
- function createHydrationFunctions(rendererInternals) {
515
- const { mt: mountComponent, p: patch, o: { patchProp, createText, nextSibling, parentNode, remove, insert, createComment } } = rendererInternals;
516
- const hydrate = (vnode, container) => {
517
- if (!container.hasChildNodes()) {
518
- patch(null, vnode, container);
519
- flushPostFlushCbs();
520
- container._vnode = vnode;
521
- return;
522
- }
523
- hydrateNode(container.firstChild, vnode, null, null, null);
524
- flushPostFlushCbs();
525
- container._vnode = vnode;
526
- };
527
- const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => {
528
- optimized = optimized || !!vnode.dynamicChildren;
529
- const isFragmentStart = isComment(node) && node.data === "[";
530
- const onMismatch = () => handleMismatch(node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragmentStart);
531
- const { type, ref, shapeFlag, patchFlag } = vnode;
532
- let domType = node.nodeType;
533
- vnode.el = node;
534
- if (patchFlag === -2) {
535
- optimized = false;
536
- vnode.dynamicChildren = null;
537
- }
538
- let nextNode = null;
539
- switch (type) {
540
- case Text:
541
- if (domType !== 3) if (vnode.children === "") {
542
- insert(vnode.el = createText(""), parentNode(node), node);
543
- nextNode = node;
544
- } else nextNode = onMismatch();
545
- else {
546
- if (node.data !== vnode.children) node.data = vnode.children;
547
- nextNode = nextSibling(node);
548
- }
549
- break;
550
- case Comment:
551
- if (isTemplateNode(node)) {
552
- nextNode = nextSibling(node);
553
- replaceNode(vnode.el = node.content.firstChild, node, parentComponent);
554
- } else if (domType !== 8 || isFragmentStart) nextNode = onMismatch();
555
- else nextNode = nextSibling(node);
556
- break;
557
- case Static:
558
- if (isFragmentStart) {
559
- node = nextSibling(node);
560
- domType = node.nodeType;
561
- }
562
- if (domType === 1 || domType === 3) {
563
- nextNode = node;
564
- const needToAdoptContent = !vnode.children.length;
565
- for (let i = 0; i < vnode.staticCount; i++) {
566
- if (needToAdoptContent) vnode.children += nextNode.nodeType === 1 ? nextNode.outerHTML : nextNode.data;
567
- if (i === vnode.staticCount - 1) vnode.anchor = nextNode;
568
- nextNode = nextSibling(nextNode);
569
- }
570
- return isFragmentStart ? nextSibling(nextNode) : nextNode;
571
- } else onMismatch();
572
- break;
573
- case Fragment:
574
- if (!isFragmentStart) nextNode = onMismatch();
575
- else nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
576
- break;
577
- default: if (shapeFlag & 1) if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode(node)) nextNode = onMismatch();
578
- else nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
579
- else if (shapeFlag & 6) {
580
- vnode.slotScopeIds = slotScopeIds;
581
- const container = parentNode(node);
582
- if (isFragmentStart) nextNode = locateClosingAnchor(node);
583
- else if (isComment(node) && node.data === "teleport start") nextNode = locateClosingAnchor(node, node.data, "teleport end");
584
- else nextNode = nextSibling(node);
585
- mountComponent(vnode, container, null, parentComponent, parentSuspense, getContainerType(container), optimized);
586
- if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved) {
587
- let subTree;
588
- if (isFragmentStart) {
589
- subTree = createVNode(Fragment);
590
- subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild;
591
- } else subTree = node.nodeType === 3 ? createTextVNode("") : createVNode("div");
592
- subTree.el = node;
593
- vnode.component.subTree = subTree;
594
- }
595
- } else if (shapeFlag & 64) if (domType !== 8) nextNode = onMismatch();
596
- else nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren);
597
- else if (shapeFlag & 128) nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, getContainerType(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);
598
- }
599
- if (ref != null) setRef(ref, null, parentSuspense, vnode);
600
- return nextNode;
601
- };
602
- function _getValidZova(instance) {
603
- while (instance) {
604
- if (instance.zova) return instance.zova;
605
- instance = instance.parent;
606
- }
607
- }
608
- const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {
609
- optimized = optimized || !!vnode.dynamicChildren;
610
- const { type, props, patchFlag, shapeFlag, dirs, transition } = vnode;
611
- const forcePatch = type === "input" || type === "option";
612
- if (forcePatch || patchFlag !== -1) {
613
- if (dirs) invokeDirectiveHook(vnode, null, parentComponent, "created");
614
- let needCallTransitionHooks = false;
615
- if (isTemplateNode(el)) {
616
- needCallTransitionHooks = needTransition(null, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
617
- const content = el.content.firstChild;
618
- if (needCallTransitionHooks) transition.beforeEnter(content);
619
- replaceNode(content, el, parentComponent);
620
- vnode.el = el = content;
621
- }
622
- if (shapeFlag & 16 && !(props && (props.innerHTML || props.textContent))) {
623
- let next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized);
624
- while (next) {
625
- if (!isMismatchAllowed(el, 1)) logMismatchError();
626
- const cur = next;
627
- next = next.nextSibling;
628
- remove(cur);
629
- }
630
- } else if (shapeFlag & 8) {
631
- let clientText = vnode.children;
632
- if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) clientText = clientText.slice(1);
633
- if (el.textContent !== clientText) {
634
- if (!isMismatchAllowed(el, 0)) logMismatchError();
635
- el.textContent = vnode.children;
636
- }
637
- }
638
- if (props) {
639
- if (forcePatch || !optimized || patchFlag & 48) {
640
- const isCustomElement = el.tagName.includes("-");
641
- for (const key in props) {
642
- let ignore;
643
- let clientValue = props[key];
644
- const zova = _getValidZova(parentComponent);
645
- if (zova) {
646
- const res = zova.meta.$ssr._hydratePropHasMismatch(el, key, clientValue, vnode, parentComponent);
647
- if (res.ignore) ignore = true;
648
- else clientValue = res.clientValue;
649
- }
650
- if (!ignore) {}
651
- if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || key[0] === "." || isCustomElement) patchProp(el, key, null, props[key], void 0, parentComponent);
652
- }
653
- } else if (props.onClick) patchProp(el, "onClick", null, props.onClick, void 0, parentComponent);
654
- else if (patchFlag & 4 && isReactive(props.style)) for (const key in props.style) props.style[key];
655
- }
656
- let vnodeHooks;
657
- if (vnodeHooks = props && props.onVnodeBeforeMount) invokeVNodeHook(vnodeHooks, parentComponent, vnode);
658
- if (dirs) invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
659
- if ((vnodeHooks = props && props.onVnodeMounted) || dirs || needCallTransitionHooks) queueEffectWithSuspense(() => {
660
- vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode);
661
- needCallTransitionHooks && transition.enter(el);
662
- dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted");
663
- }, parentSuspense);
664
- }
665
- return el.nextSibling;
666
- };
667
- const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => {
668
- optimized = optimized || !!parentVNode.dynamicChildren;
669
- const children = parentVNode.children;
670
- const l = children.length;
671
- for (let i = 0; i < l; i++) {
672
- const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);
673
- const isText = vnode.type === Text;
674
- if (node) {
675
- if (isText && !optimized) {
676
- if (i + 1 < l && normalizeVNode(children[i + 1]).type === Text) {
677
- insert(createText(node.data.slice(vnode.children.length)), container, nextSibling(node));
678
- node.data = vnode.children;
679
- }
680
- }
681
- node = hydrateNode(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
682
- } else if (isText && !vnode.children) insert(vnode.el = createText(""), container);
683
- else {
684
- if (!isMismatchAllowed(container, 1)) logMismatchError();
685
- patch(null, vnode, container, null, parentComponent, parentSuspense, getContainerType(container), slotScopeIds);
686
- }
687
- }
688
- return node;
689
- };
690
- const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {
691
- const { slotScopeIds: fragmentSlotScopeIds } = vnode;
692
- if (fragmentSlotScopeIds) slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds;
693
- const container = parentNode(node);
694
- const next = hydrateChildren(nextSibling(node), vnode, container, parentComponent, parentSuspense, slotScopeIds, optimized);
695
- if (next && isComment(next) && next.data === "]") return nextSibling(vnode.anchor = next);
696
- else {
697
- logMismatchError();
698
- insert(vnode.anchor = createComment(`]`), container, next);
699
- return next;
700
- }
701
- };
702
- const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
703
- if (!isMismatchAllowed(node.parentElement, 1)) logMismatchError();
704
- vnode.el = null;
705
- if (isFragment) {
706
- const end = locateClosingAnchor(node);
707
- while (true) {
708
- const next2 = nextSibling(node);
709
- if (next2 && next2 !== end) remove(next2);
710
- else break;
711
- }
712
- }
713
- const next = nextSibling(node);
714
- const container = parentNode(node);
715
- remove(node);
716
- patch(null, vnode, container, next, parentComponent, parentSuspense, getContainerType(container), slotScopeIds);
717
- if (parentComponent) {
718
- parentComponent.vnode.el = vnode.el;
719
- updateHOCHostEl(parentComponent, vnode.el);
720
- }
721
- return next;
722
- };
723
- const locateClosingAnchor = (node, open = "[", close = "]") => {
724
- let match = 0;
725
- while (node) {
726
- node = nextSibling(node);
727
- if (node && isComment(node)) {
728
- if (node.data === open) match++;
729
- if (node.data === close) if (match === 0) return nextSibling(node);
730
- else match--;
731
- }
732
- }
733
- return node;
734
- };
735
- const replaceNode = (newNode, oldNode, parentComponent) => {
736
- const parentNode2 = oldNode.parentNode;
737
- if (parentNode2) parentNode2.replaceChild(newNode, oldNode);
738
- let parent = parentComponent;
739
- while (parent) {
740
- if (parent.vnode.el === oldNode) parent.vnode.el = parent.subTree.el = newNode;
741
- parent = parent.parent;
742
- }
743
- };
744
- const isTemplateNode = (node) => {
745
- return node.nodeType === 1 && node.tagName === "TEMPLATE";
746
- };
747
- return [hydrate, hydrateNode];
748
- }
749
- function isMismatchAllowed(el, allowedType) {
750
- if (allowedType === 0 || allowedType === 1) while (el && !el.hasAttribute(allowMismatchAttr)) el = el.parentElement;
751
- const allowedAttr = el && el.getAttribute(allowMismatchAttr);
752
- if (allowedAttr == null) return false;
753
- else if (allowedAttr === "") return true;
754
- else {
755
- const list = allowedAttr.split(",");
756
- if (allowedType === 0 && list.includes("children")) return true;
757
- return allowedAttr.split(",").includes(MismatchTypeString[allowedType]);
758
- }
759
- }
760
- function forEachElement(node, cb) {
761
- if (isComment(node) && node.data === "[") {
762
- let depth = 1;
763
- let next = node.nextSibling;
764
- while (next) {
765
- if (next.nodeType === 1) {
766
- if (cb(next) === false) break;
767
- } else if (isComment(next)) {
768
- if (next.data === "]") {
769
- if (--depth === 0) break;
770
- } else if (next.data === "[") depth++;
771
- }
772
- next = next.nextSibling;
773
- }
774
- } else cb(node);
775
- }
776
- function _getValidZova(instance) {
777
- while (instance) {
778
- if (instance.zova) return instance.zova;
779
- instance = instance.parent;
780
- }
781
- }
782
- /*! #__NO_SIDE_EFFECTS__ */
783
- /* @__NO_SIDE_EFFECTS__ */
784
- function defineAsyncComponent(source) {
785
- if (isFunction(source)) source = { loader: source };
786
- const { loader, loadingComponent, errorComponent, delay = 200, hydrate: hydrateStrategy, timeout, suspensible = true, onError: userOnError } = source;
787
- let pendingRequest = null;
788
- let resolvedComp;
789
- let retries = 0;
790
- const retry = () => {
791
- retries++;
792
- pendingRequest = null;
793
- return load();
794
- };
795
- const load = () => {
796
- let thisRequest;
797
- return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => {
798
- err = err instanceof Error ? err : new Error(String(err));
799
- if (userOnError) return new Promise((resolve, reject) => {
800
- const userRetry = () => resolve(retry());
801
- const userFail = () => reject(err);
802
- userOnError(err, userRetry, userFail, retries + 1);
803
- });
804
- else throw err;
805
- }).then((comp) => {
806
- if (thisRequest !== pendingRequest && pendingRequest) return pendingRequest;
807
- if (comp && (comp.__esModule || comp[Symbol.toStringTag] === "Module")) comp = comp.default;
808
- resolvedComp = comp;
809
- return comp;
810
- }));
811
- };
812
- return /* @__PURE__ */ defineComponent({
813
- name: "AsyncComponentWrapper",
814
- __asyncLoader: load,
815
- __asyncHydrate(el, instance, hydrate) {
816
- const doHydrate = hydrateStrategy ? () => {
817
- const teardown = hydrateStrategy(hydrate, (cb) => forEachElement(el, cb));
818
- if (teardown) (instance.bum || (instance.bum = [])).push(teardown);
819
- } : hydrate;
820
- if (resolvedComp) doHydrate();
821
- else {
822
- const zova = _getValidZova(instance);
823
- zova.meta.$ssr._hydratingInc();
824
- load().then(() => {
825
- !instance.isUnmounted && doHydrate();
826
- zova.meta.$ssr._hydratingDec();
827
- });
828
- }
829
- },
830
- get __asyncResolved() {
831
- return resolvedComp;
832
- },
833
- setup() {
834
- const instance = currentInstance;
835
- markAsyncBoundary(instance);
836
- if (resolvedComp) return () => createInnerComp(resolvedComp, instance);
837
- const onError = (err) => {
838
- pendingRequest = null;
839
- handleError(err, instance, 13, !errorComponent);
840
- };
841
- if (suspensible && instance.suspense || isInSSRComponentSetup) return load().then((comp) => {
842
- return () => createInnerComp(comp, instance);
843
- }).catch((err) => {
844
- onError(err);
845
- return () => errorComponent ? createVNode(errorComponent, { error: err }) : null;
846
- });
847
- const loaded = ref(false);
848
- const error = ref();
849
- const delayed = ref(!!delay);
850
- if (delay) setTimeout(() => {
851
- delayed.value = false;
852
- }, delay);
853
- if (timeout != null) setTimeout(() => {
854
- if (!loaded.value && !error.value) {
855
- const err = /* @__PURE__ */ new Error(`Async component timed out after ${timeout}ms.`);
856
- onError(err);
857
- error.value = err;
858
- }
859
- }, timeout);
860
- load().then(() => {
861
- loaded.value = true;
862
- if (instance.parent && isKeepAlive(instance.parent.vnode)) instance.parent.update();
863
- }).catch((err) => {
864
- onError(err);
865
- error.value = err;
866
- });
867
- return () => {
868
- if (loaded.value && resolvedComp) return createInnerComp(resolvedComp, instance);
869
- else if (error.value && errorComponent) return createVNode(errorComponent, { error: error.value });
870
- else if (loadingComponent && !delayed.value) return createVNode(loadingComponent);
871
- };
872
- }
873
- });
874
- }
875
- function createInnerComp(comp, parent) {
876
- const { ref: ref2, props, children, ce } = parent.vnode;
877
- const vnode = createVNode(comp, props, children);
878
- vnode.ref = ref2;
879
- vnode.ce = ce;
880
- delete parent.vnode.ce;
881
- return vnode;
882
- }
883
- function useSlots() {
884
- return getContext().slots;
885
- }
886
- function getContext() {
887
- const i = getCurrentInstance();
888
- return i.setupContext || (i.setupContext = createSetupContext(i));
889
- }
890
- function normalizePropsOrEmits(props) {
891
- return isArray(props) ? props.reduce((normalized, p) => (normalized[p] = null, normalized), {}) : props;
892
- }
893
- function applyOptions(instance) {
894
- const options = resolveMergedOptions(instance);
895
- const publicThis = instance.proxy;
896
- const ctx = instance.ctx;
897
- shouldCacheAccess = false;
898
- if (options.beforeCreate) callHook(options.beforeCreate, instance, "bc");
899
- const { data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions, created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted, render, renderTracked, renderTriggered, errorCaptured, serverPrefetch, expose, inheritAttrs, components, directives, filters } = options;
900
- const checkDuplicateProperties = null;
901
- if (injectOptions) resolveInjections(injectOptions, ctx, checkDuplicateProperties);
902
- if (methods) for (const key in methods) {
903
- const methodHandler = methods[key];
904
- if (isFunction(methodHandler)) ctx[key] = methodHandler.bind(publicThis);
905
- }
906
- if (dataOptions) {
907
- const data = dataOptions.call(publicThis, publicThis);
908
- if (!isObject(data)) {} else instance.data = reactive(data);
909
- }
910
- shouldCacheAccess = true;
911
- if (computedOptions) for (const key in computedOptions) {
912
- const opt = computedOptions[key];
913
- const c = computed({
914
- get: isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP,
915
- set: !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : NOOP
916
- });
917
- Object.defineProperty(ctx, key, {
918
- enumerable: true,
919
- configurable: true,
920
- get: () => c.value,
921
- set: (v) => c.value = v
922
- });
923
- }
924
- if (watchOptions) for (const key in watchOptions) createWatcher(watchOptions[key], ctx, publicThis, key);
925
- if (provideOptions) {
926
- const provides = isFunction(provideOptions) ? provideOptions.call(publicThis) : provideOptions;
927
- Reflect.ownKeys(provides).forEach((key) => {
928
- provide(key, provides[key]);
929
- });
930
- }
931
- if (created) callHook(created, instance, "c");
932
- function registerLifecycleHook(register, hook) {
933
- if (isArray(hook)) hook.forEach((_hook) => register(_hook.bind(publicThis)));
934
- else if (hook) register(hook.bind(publicThis));
935
- }
936
- registerLifecycleHook(onBeforeMount, beforeMount);
937
- registerLifecycleHook(onMounted, mounted);
938
- registerLifecycleHook(onBeforeUpdate, beforeUpdate);
939
- registerLifecycleHook(onUpdated, updated);
940
- registerLifecycleHook(onActivated, activated);
941
- registerLifecycleHook(onDeactivated, deactivated);
942
- registerLifecycleHook(onErrorCaptured, errorCaptured);
943
- registerLifecycleHook(onRenderTracked, renderTracked);
944
- registerLifecycleHook(onRenderTriggered, renderTriggered);
945
- registerLifecycleHook(onBeforeUnmount, beforeUnmount);
946
- registerLifecycleHook(onUnmounted, unmounted);
947
- registerLifecycleHook(onServerPrefetch, serverPrefetch);
948
- if (isArray(expose)) {
949
- if (expose.length) {
950
- const exposed = instance.exposed || (instance.exposed = {});
951
- expose.forEach((key) => {
952
- Object.defineProperty(exposed, key, {
953
- get: () => publicThis[key],
954
- set: (val) => publicThis[key] = val
955
- });
956
- });
957
- } else if (!instance.exposed) instance.exposed = {};
958
- }
959
- if (render && instance.render === NOOP) instance.render = render;
960
- if (inheritAttrs != null) instance.inheritAttrs = inheritAttrs;
961
- if (components) instance.components = components;
962
- if (directives) instance.directives = directives;
963
- if (serverPrefetch) markAsyncBoundary(instance);
964
- }
965
- function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP) {
966
- if (isArray(injectOptions)) injectOptions = normalizeInject(injectOptions);
967
- for (const key in injectOptions) {
968
- const opt = injectOptions[key];
969
- let injected;
970
- if (isObject(opt)) if ("default" in opt) injected = inject(opt.from || key, opt.default, true);
971
- else injected = inject(opt.from || key);
972
- else injected = inject(opt);
973
- if (isRef(injected)) Object.defineProperty(ctx, key, {
974
- enumerable: true,
975
- configurable: true,
976
- get: () => injected.value,
977
- set: (v) => injected.value = v
978
- });
979
- else ctx[key] = injected;
980
- }
981
- }
982
- function callHook(hook, instance, type) {
983
- callWithAsyncErrorHandling(isArray(hook) ? hook.map((h) => h.bind(instance.proxy)) : hook.bind(instance.proxy), instance, type);
984
- }
985
- function createWatcher(raw, ctx, publicThis, key) {
986
- let getter = key.includes(".") ? createPathGetter(publicThis, key) : () => publicThis[key];
987
- if (isString(raw)) {
988
- const handler = ctx[raw];
989
- if (isFunction(handler)) watch(getter, handler);
990
- } else if (isFunction(raw)) watch(getter, raw.bind(publicThis));
991
- else if (isObject(raw)) if (isArray(raw)) raw.forEach((r) => createWatcher(r, ctx, publicThis, key));
992
- else {
993
- const handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler];
994
- if (isFunction(handler)) watch(getter, handler, raw);
995
- }
996
- }
997
- function resolveMergedOptions(instance) {
998
- const base = instance.type;
999
- const { mixins, extends: extendsOptions } = base;
1000
- const { mixins: globalMixins, optionsCache: cache, config: { optionMergeStrategies } } = instance.appContext;
1001
- const cached = cache.get(base);
1002
- let resolved;
1003
- if (cached) resolved = cached;
1004
- else if (!globalMixins.length && !mixins && !extendsOptions) resolved = base;
1005
- else {
1006
- resolved = {};
1007
- if (globalMixins.length) globalMixins.forEach((m) => mergeOptions(resolved, m, optionMergeStrategies, true));
1008
- mergeOptions(resolved, base, optionMergeStrategies);
1009
- }
1010
- if (isObject(base)) cache.set(base, resolved);
1011
- return resolved;
1012
- }
1013
- function mergeOptions(to, from, strats, asMixin = false) {
1014
- const { mixins, extends: extendsOptions } = from;
1015
- if (extendsOptions) mergeOptions(to, extendsOptions, strats, true);
1016
- if (mixins) mixins.forEach((m) => mergeOptions(to, m, strats, true));
1017
- for (const key in from) if (asMixin && key === "expose") {} else {
1018
- const strat = internalOptionMergeStrats[key] || strats && strats[key];
1019
- to[key] = strat ? strat(to[key], from[key]) : from[key];
1020
- }
1021
- return to;
1022
- }
1023
- function mergeDataFn(to, from) {
1024
- if (!from) return to;
1025
- if (!to) return from;
1026
- return function mergedDataFn() {
1027
- return extend(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from);
1028
- };
1029
- }
1030
- function mergeInject(to, from) {
1031
- return mergeObjectOptions(normalizeInject(to), normalizeInject(from));
1032
- }
1033
- function normalizeInject(raw) {
1034
- if (isArray(raw)) {
1035
- const res = {};
1036
- for (let i = 0; i < raw.length; i++) res[raw[i]] = raw[i];
1037
- return res;
1038
- }
1039
- return raw;
1040
- }
1041
- function mergeAsArray(to, from) {
1042
- return to ? [...new Set([].concat(to, from))] : from;
1043
- }
1044
- function mergeObjectOptions(to, from) {
1045
- return to ? extend(/* @__PURE__ */ Object.create(null), to, from) : from;
1046
- }
1047
- function mergeEmitsOrPropsOptions(to, from) {
1048
- if (to) {
1049
- if (isArray(to) && isArray(from)) return [.../* @__PURE__ */ new Set([...to, ...from])];
1050
- return extend(/* @__PURE__ */ Object.create(null), normalizePropsOrEmits(to), normalizePropsOrEmits(from != null ? from : {}));
1051
- } else return from;
1052
- }
1053
- function mergeWatchOptions(to, from) {
1054
- if (!to) return from;
1055
- if (!from) return to;
1056
- const merged = extend(/* @__PURE__ */ Object.create(null), to);
1057
- for (const key in from) merged[key] = mergeAsArray(to[key], from[key]);
1058
- return merged;
1059
- }
1060
- function createAppContext() {
1061
- return {
1062
- app: null,
1063
- config: {
1064
- isNativeTag: NO,
1065
- performance: false,
1066
- globalProperties: {},
1067
- optionMergeStrategies: {},
1068
- errorHandler: void 0,
1069
- warnHandler: void 0,
1070
- compilerOptions: {}
1071
- },
1072
- mixins: [],
1073
- components: {},
1074
- directives: {},
1075
- provides: /* @__PURE__ */ Object.create(null),
1076
- optionsCache: /* @__PURE__ */ new WeakMap(),
1077
- propsCache: /* @__PURE__ */ new WeakMap(),
1078
- emitsCache: /* @__PURE__ */ new WeakMap()
1079
- };
1080
- }
1081
- function createAppAPI(render, hydrate) {
1082
- return function createApp(rootComponent, rootProps = null) {
1083
- if (!isFunction(rootComponent)) rootComponent = extend({}, rootComponent);
1084
- if (rootProps != null && !isObject(rootProps)) rootProps = null;
1085
- const context = createAppContext();
1086
- const installedPlugins = /* @__PURE__ */ new WeakSet();
1087
- const pluginCleanupFns = [];
1088
- let isMounted = false;
1089
- const app = context.app = {
1090
- _uid: uid$1++,
1091
- _component: rootComponent,
1092
- _props: rootProps,
1093
- _container: null,
1094
- _context: context,
1095
- _instance: null,
1096
- version,
1097
- get config() {
1098
- return context.config;
1099
- },
1100
- set config(v) {},
1101
- use(plugin, ...options) {
1102
- if (installedPlugins.has(plugin)) {} else if (plugin && isFunction(plugin.install)) {
1103
- installedPlugins.add(plugin);
1104
- plugin.install(app, ...options);
1105
- } else if (isFunction(plugin)) {
1106
- installedPlugins.add(plugin);
1107
- plugin(app, ...options);
1108
- }
1109
- return app;
1110
- },
1111
- mixin(mixin) {
1112
- if (!context.mixins.includes(mixin)) context.mixins.push(mixin);
1113
- return app;
1114
- },
1115
- component(name, component) {
1116
- if (!component) return context.components[name];
1117
- context.components[name] = component;
1118
- return app;
1119
- },
1120
- directive(name, directive) {
1121
- if (!directive) return context.directives[name];
1122
- context.directives[name] = directive;
1123
- return app;
1124
- },
1125
- mount(rootContainer, isHydrate, namespace) {
1126
- if (!isMounted) {
1127
- const vnode = app._ceVNode || createVNode(rootComponent, rootProps);
1128
- vnode.appContext = context;
1129
- if (namespace === true) namespace = "svg";
1130
- else if (namespace === false) namespace = void 0;
1131
- if (isHydrate && hydrate) hydrate(vnode, rootContainer);
1132
- else render(vnode, rootContainer, namespace);
1133
- isMounted = true;
1134
- app._container = rootContainer;
1135
- rootContainer.__vue_app__ = app;
1136
- return getComponentPublicInstance(vnode.component);
1137
- }
1138
- },
1139
- onUnmount(cleanupFn) {
1140
- pluginCleanupFns.push(cleanupFn);
1141
- },
1142
- unmount() {
1143
- if (isMounted) {
1144
- callWithAsyncErrorHandling(pluginCleanupFns, app._instance, 16);
1145
- render(null, app._container);
1146
- delete app._container.__vue_app__;
1147
- }
1148
- },
1149
- provide(key, value) {
1150
- context.provides[key] = value;
1151
- return app;
1152
- },
1153
- runWithContext(fn) {
1154
- const lastApp = currentApp;
1155
- currentApp = app;
1156
- try {
1157
- return fn();
1158
- } finally {
1159
- currentApp = lastApp;
1160
- }
1161
- }
1162
- };
1163
- return app;
1164
- };
1165
- }
1166
- function provide(key, value) {
1167
- if (!currentInstance) {} else {
1168
- let provides = currentInstance.provides;
1169
- const parentProvides = currentInstance.parent && currentInstance.parent.provides;
1170
- if (parentProvides === provides) provides = currentInstance.provides = Object.create(parentProvides);
1171
- provides[key] = value;
1172
- }
1173
- }
1174
- function inject(key, defaultValue, treatDefaultAsFactory = false) {
1175
- const instance = currentInstance || currentRenderingInstance;
1176
- if (instance || currentApp) {
1177
- const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
1178
- if (provides && key in provides) return provides[key];
1179
- else if (arguments.length > 1) return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
1180
- }
1181
- }
1182
- function hasInjectionContext() {
1183
- return !!(currentInstance || currentRenderingInstance || currentApp);
1184
- }
1185
- function initProps(instance, rawProps, isStateful, isSSR = false) {
1186
- const props = {};
1187
- const attrs = createInternalObject();
1188
- instance.propsDefaults = /* @__PURE__ */ Object.create(null);
1189
- setFullProps(instance, rawProps, props, attrs);
1190
- for (const key in instance.propsOptions[0]) if (!(key in props)) props[key] = void 0;
1191
- if (isStateful) instance.props = isSSR ? props : shallowReactive(props);
1192
- else if (!instance.type.props) instance.props = attrs;
1193
- else instance.props = props;
1194
- instance.attrs = attrs;
1195
- }
1196
- function updateProps(instance, rawProps, rawPrevProps, optimized) {
1197
- const { props, attrs, vnode: { patchFlag } } = instance;
1198
- const rawCurrentProps = toRaw(props);
1199
- const [options] = instance.propsOptions;
1200
- let hasAttrsChanged = false;
1201
- if ((optimized || patchFlag > 0) && !(patchFlag & 16)) {
1202
- if (patchFlag & 8) {
1203
- const propsToUpdate = instance.vnode.dynamicProps;
1204
- for (let i = 0; i < propsToUpdate.length; i++) {
1205
- let key = propsToUpdate[i];
1206
- if (isEmitListener(instance.emitsOptions, key)) continue;
1207
- const value = rawProps[key];
1208
- if (options) if (hasOwn(attrs, key)) {
1209
- if (value !== attrs[key]) {
1210
- attrs[key] = value;
1211
- hasAttrsChanged = true;
1212
- }
1213
- } else {
1214
- const camelizedKey = camelize(key);
1215
- props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false);
1216
- }
1217
- else if (value !== attrs[key]) {
1218
- attrs[key] = value;
1219
- hasAttrsChanged = true;
1220
- }
1221
- }
1222
- }
1223
- } else {
1224
- if (setFullProps(instance, rawProps, props, attrs)) hasAttrsChanged = true;
1225
- let kebabKey;
1226
- for (const key in rawCurrentProps) if (!rawProps || !hasOwn(rawProps, key) && ((kebabKey = hyphenate(key)) === key || !hasOwn(rawProps, kebabKey))) if (options) {
1227
- if (rawPrevProps && (rawPrevProps[key] !== void 0 || rawPrevProps[kebabKey] !== void 0)) props[key] = resolvePropValue(options, rawCurrentProps, key, void 0, instance, true);
1228
- } else delete props[key];
1229
- if (attrs !== rawCurrentProps) {
1230
- for (const key in attrs) if (!rawProps || !hasOwn(rawProps, key) && true) {
1231
- delete attrs[key];
1232
- hasAttrsChanged = true;
1233
- }
1234
- }
1235
- }
1236
- if (hasAttrsChanged) trigger(instance.attrs, "set", "");
1237
- }
1238
- function setFullProps(instance, rawProps, props, attrs) {
1239
- const [options, needCastKeys] = instance.propsOptions;
1240
- let hasAttrsChanged = false;
1241
- let rawCastValues;
1242
- if (rawProps) for (let key in rawProps) {
1243
- if (isReservedProp(key)) continue;
1244
- const value = rawProps[key];
1245
- let camelKey;
1246
- if (options && hasOwn(options, camelKey = camelize(key))) if (!needCastKeys || !needCastKeys.includes(camelKey)) props[camelKey] = value;
1247
- else (rawCastValues || (rawCastValues = {}))[camelKey] = value;
1248
- else if (!isEmitListener(instance.emitsOptions, key)) {
1249
- if (!(key in attrs) || value !== attrs[key]) {
1250
- attrs[key] = value;
1251
- hasAttrsChanged = true;
1252
- }
1253
- }
1254
- }
1255
- if (needCastKeys) {
1256
- const rawCurrentProps = toRaw(props);
1257
- const castValues = rawCastValues || EMPTY_OBJ;
1258
- for (let i = 0; i < needCastKeys.length; i++) {
1259
- const key = needCastKeys[i];
1260
- props[key] = resolvePropValue(options, rawCurrentProps, key, castValues[key], instance, !hasOwn(castValues, key));
1261
- }
1262
- }
1263
- return hasAttrsChanged;
1264
- }
1265
- function resolvePropValue(options, props, key, value, instance, isAbsent) {
1266
- const opt = options[key];
1267
- if (opt != null) {
1268
- const hasDefault = hasOwn(opt, "default");
1269
- if (hasDefault && value === void 0) {
1270
- const defaultValue = opt.default;
1271
- if (opt.type !== Function && !opt.skipFactory && isFunction(defaultValue)) {
1272
- const { propsDefaults } = instance;
1273
- if (key in propsDefaults) value = propsDefaults[key];
1274
- else {
1275
- const reset = setCurrentInstance(instance);
1276
- value = propsDefaults[key] = defaultValue.call(null, props);
1277
- reset();
1278
- }
1279
- } else value = defaultValue;
1280
- if (instance.ce) instance.ce._setProp(key, value);
1281
- }
1282
- if (opt[0]) {
1283
- if (isAbsent && !hasDefault) value = false;
1284
- else if (opt[1] && (value === "" || value === hyphenate(key))) value = true;
1285
- }
1286
- }
1287
- return value;
1288
- }
1289
- function normalizePropsOptions(comp, appContext, asMixin = false) {
1290
- const cache = asMixin ? mixinPropsCache : appContext.propsCache;
1291
- const cached = cache.get(comp);
1292
- if (cached) return cached;
1293
- const raw = comp.props;
1294
- const normalized = {};
1295
- const needCastKeys = [];
1296
- let hasExtends = false;
1297
- if (!isFunction(comp)) {
1298
- const extendProps = (raw2) => {
1299
- hasExtends = true;
1300
- const [props, keys] = normalizePropsOptions(raw2, appContext, true);
1301
- extend(normalized, props);
1302
- if (keys) needCastKeys.push(...keys);
1303
- };
1304
- if (!asMixin && appContext.mixins.length) appContext.mixins.forEach(extendProps);
1305
- if (comp.extends) extendProps(comp.extends);
1306
- if (comp.mixins) comp.mixins.forEach(extendProps);
1307
- }
1308
- if (!raw && !hasExtends) {
1309
- if (isObject(comp)) cache.set(comp, EMPTY_ARR);
1310
- return EMPTY_ARR;
1311
- }
1312
- if (isArray(raw)) for (let i = 0; i < raw.length; i++) {
1313
- const normalizedKey = camelize(raw[i]);
1314
- if (validatePropName(normalizedKey)) normalized[normalizedKey] = EMPTY_OBJ;
1315
- }
1316
- else if (raw) for (const key in raw) {
1317
- const normalizedKey = camelize(key);
1318
- if (validatePropName(normalizedKey)) {
1319
- const opt = raw[key];
1320
- const prop = normalized[normalizedKey] = isArray(opt) || isFunction(opt) ? { type: opt } : extend({}, opt);
1321
- const propType = prop.type;
1322
- let shouldCast = false;
1323
- let shouldCastTrue = true;
1324
- if (isArray(propType)) for (let index = 0; index < propType.length; ++index) {
1325
- const type = propType[index];
1326
- const typeName = isFunction(type) && type.name;
1327
- if (typeName === "Boolean") {
1328
- shouldCast = true;
1329
- break;
1330
- } else if (typeName === "String") shouldCastTrue = false;
1331
- }
1332
- else shouldCast = isFunction(propType) && propType.name === "Boolean";
1333
- prop[0] = shouldCast;
1334
- prop[1] = shouldCastTrue;
1335
- if (shouldCast || hasOwn(prop, "default")) needCastKeys.push(normalizedKey);
1336
- }
1337
- }
1338
- const res = [normalized, needCastKeys];
1339
- if (isObject(comp)) cache.set(comp, res);
1340
- return res;
1341
- }
1342
- function validatePropName(key) {
1343
- if (key[0] !== "$" && !isReservedProp(key)) return true;
1344
- return false;
1345
- }
1346
- function createHydrationRenderer(options) {
1347
- return baseCreateRenderer(options, createHydrationFunctions);
1348
- }
1349
- function _updateZovaHostProviders(instance, zovaHostProviders) {
1350
- let zova = instance.zova;
1351
- if (!zova && instance.type.name === "AsyncComponentWrapper") zova = instance.subTree && instance.subTree.component && instance.subTree.component.zova;
1352
- if (zova) zova._zovaHostProvidersUpdate(zovaHostProviders);
1353
- }
1354
- function baseCreateRenderer(options, createHydrationFns) {
1355
- const target = getGlobalThis();
1356
- target.__VUE__ = true;
1357
- const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = NOOP, insertStaticContent: hostInsertStaticContent } = options;
1358
- const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, namespace = void 0, slotScopeIds = null, optimized = !!n2.dynamicChildren) => {
1359
- if (n1 === n2) return;
1360
- if (!container) return;
1361
- if (n1 && !isSameVNodeType(n1, n2)) {
1362
- anchor = getNextHostNode(n1);
1363
- unmount(n1, parentComponent, parentSuspense, true);
1364
- n1 = null;
1365
- }
1366
- if (n2.patchFlag === -2) {
1367
- optimized = false;
1368
- n2.dynamicChildren = null;
1369
- }
1370
- const { type, ref, shapeFlag } = n2;
1371
- switch (type) {
1372
- case Text:
1373
- processText(n1, n2, container, anchor);
1374
- break;
1375
- case Comment:
1376
- processCommentNode(n1, n2, container, anchor);
1377
- break;
1378
- case Static:
1379
- if (n1 == null) mountStaticNode(n2, container, anchor, namespace);
1380
- break;
1381
- case Fragment:
1382
- processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1383
- break;
1384
- default: if (shapeFlag & 1) processElement(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1385
- else if (shapeFlag & 6) processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1386
- else if (shapeFlag & 64) type.process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals);
1387
- else if (shapeFlag & 128) type.process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals);
1388
- }
1389
- if (ref != null && parentComponent) setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
1390
- };
1391
- const processText = (n1, n2, container, anchor) => {
1392
- if (n1 == null) hostInsert(n2.el = hostCreateText(n2.children), container, anchor);
1393
- else {
1394
- const el = n2.el = n1.el;
1395
- if (n2.children !== n1.children) hostSetText(el, n2.children);
1396
- }
1397
- };
1398
- const processCommentNode = (n1, n2, container, anchor) => {
1399
- if (n1 == null) hostInsert(n2.el = hostCreateComment(n2.children || ""), container, anchor);
1400
- else n2.el = n1.el;
1401
- };
1402
- const mountStaticNode = (n2, container, anchor, namespace) => {
1403
- [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, namespace, n2.el, n2.anchor);
1404
- };
1405
- const moveStaticNode = ({ el, anchor }, container, nextSibling) => {
1406
- let next;
1407
- while (el && el !== anchor) {
1408
- next = hostNextSibling(el);
1409
- hostInsert(el, container, nextSibling);
1410
- el = next;
1411
- }
1412
- hostInsert(anchor, container, nextSibling);
1413
- };
1414
- const removeStaticNode = ({ el, anchor }) => {
1415
- let next;
1416
- while (el && el !== anchor) {
1417
- next = hostNextSibling(el);
1418
- hostRemove(el);
1419
- el = next;
1420
- }
1421
- hostRemove(anchor);
1422
- };
1423
- const processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
1424
- if (n2.type === "svg") namespace = "svg";
1425
- else if (n2.type === "math") namespace = "mathml";
1426
- if (n1 == null) mountElement(n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1427
- else patchElement(n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1428
- };
1429
- const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
1430
- let el;
1431
- let vnodeHook;
1432
- const { props, shapeFlag, transition, dirs } = vnode;
1433
- el = vnode.el = hostCreateElement(vnode.type, namespace, props && props.is, props);
1434
- if (shapeFlag & 8) hostSetElementText(el, vnode.children);
1435
- else if (shapeFlag & 16) mountChildren(vnode.children, el, null, parentComponent, parentSuspense, resolveChildrenNamespace(vnode, namespace), slotScopeIds, optimized);
1436
- if (dirs) invokeDirectiveHook(vnode, null, parentComponent, "created");
1437
- setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent);
1438
- if (props) {
1439
- for (const key in props) if (key !== "value" && !isReservedProp(key)) hostPatchProp(el, key, null, props[key], namespace, parentComponent);
1440
- if ("value" in props) hostPatchProp(el, "value", null, props.value, namespace);
1441
- if (vnodeHook = props.onVnodeBeforeMount) invokeVNodeHook(vnodeHook, parentComponent, vnode);
1442
- }
1443
- if (dirs) invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
1444
- const needCallTransitionHooks = needTransition(parentSuspense, transition);
1445
- if (needCallTransitionHooks) transition.beforeEnter(el);
1446
- hostInsert(el, container, anchor);
1447
- if ((vnodeHook = props && props.onVnodeMounted) || needCallTransitionHooks || dirs) queuePostRenderEffect(() => {
1448
- vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
1449
- needCallTransitionHooks && transition.enter(el);
1450
- dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted");
1451
- }, parentSuspense);
1452
- };
1453
- const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => {
1454
- if (scopeId) hostSetScopeId(el, scopeId);
1455
- if (slotScopeIds) for (let i = 0; i < slotScopeIds.length; i++) hostSetScopeId(el, slotScopeIds[i]);
1456
- if (parentComponent) {
1457
- let subTree = parentComponent.subTree;
1458
- if (vnode === subTree || isSuspense(subTree.type) && (subTree.ssContent === vnode || subTree.ssFallback === vnode)) {
1459
- const parentVNode = parentComponent.vnode;
1460
- setScopeId(el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent);
1461
- }
1462
- }
1463
- };
1464
- const mountChildren = (children, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, start = 0) => {
1465
- for (let i = start; i < children.length; i++) patch(null, children[i] = optimized ? cloneIfMounted(children[i]) : normalizeVNode(children[i]), container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1466
- };
1467
- const patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
1468
- const el = n2.el = n1.el;
1469
- let { patchFlag, dynamicChildren, dirs } = n2;
1470
- patchFlag |= n1.patchFlag & 16;
1471
- const oldProps = n1.props || EMPTY_OBJ;
1472
- const newProps = n2.props || EMPTY_OBJ;
1473
- let vnodeHook;
1474
- parentComponent && toggleRecurse(parentComponent, false);
1475
- if (vnodeHook = newProps.onVnodeBeforeUpdate) invokeVNodeHook(vnodeHook, parentComponent, n2, n1);
1476
- if (dirs) invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate");
1477
- parentComponent && toggleRecurse(parentComponent, true);
1478
- if (oldProps.innerHTML && newProps.innerHTML == null || oldProps.textContent && newProps.textContent == null) hostSetElementText(el, "");
1479
- if (dynamicChildren) patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, resolveChildrenNamespace(n2, namespace), slotScopeIds);
1480
- else if (!optimized) patchChildren(n1, n2, el, null, parentComponent, parentSuspense, resolveChildrenNamespace(n2, namespace), slotScopeIds, false);
1481
- if (patchFlag > 0) {
1482
- if (patchFlag & 16) patchProps(el, oldProps, newProps, parentComponent, namespace);
1483
- else {
1484
- if (patchFlag & 2) {
1485
- if (oldProps.class !== newProps.class) hostPatchProp(el, "class", null, newProps.class, namespace);
1486
- }
1487
- if (patchFlag & 4) hostPatchProp(el, "style", oldProps.style, newProps.style, namespace);
1488
- if (patchFlag & 8) {
1489
- const propsToUpdate = n2.dynamicProps;
1490
- for (let i = 0; i < propsToUpdate.length; i++) {
1491
- const key = propsToUpdate[i];
1492
- const prev = oldProps[key];
1493
- const next = newProps[key];
1494
- if (next !== prev || key === "value") hostPatchProp(el, key, prev, next, namespace, parentComponent);
1495
- }
1496
- }
1497
- }
1498
- if (patchFlag & 1) {
1499
- if (n1.children !== n2.children) hostSetElementText(el, n2.children);
1500
- }
1501
- } else if (!optimized && dynamicChildren == null) patchProps(el, oldProps, newProps, parentComponent, namespace);
1502
- if ((vnodeHook = newProps.onVnodeUpdated) || dirs) queuePostRenderEffect(() => {
1503
- vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1);
1504
- dirs && invokeDirectiveHook(n2, n1, parentComponent, "updated");
1505
- }, parentSuspense);
1506
- };
1507
- const patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, namespace, slotScopeIds) => {
1508
- for (let i = 0; i < newChildren.length; i++) {
1509
- const oldVNode = oldChildren[i];
1510
- const newVNode = newChildren[i];
1511
- patch(oldVNode, newVNode, oldVNode.el && (oldVNode.type === Fragment || !isSameVNodeType(oldVNode, newVNode) || oldVNode.shapeFlag & 70) ? hostParentNode(oldVNode.el) : fallbackContainer, null, parentComponent, parentSuspense, namespace, slotScopeIds, true);
1512
- }
1513
- };
1514
- const patchProps = (el, oldProps, newProps, parentComponent, namespace) => {
1515
- if (oldProps !== newProps) {
1516
- if (oldProps !== EMPTY_OBJ) {
1517
- for (const key in oldProps) if (!isReservedProp(key) && !(key in newProps)) hostPatchProp(el, key, oldProps[key], null, namespace, parentComponent);
1518
- }
1519
- for (const key in newProps) {
1520
- if (isReservedProp(key)) continue;
1521
- const next = newProps[key];
1522
- const prev = oldProps[key];
1523
- if (next !== prev && key !== "value") hostPatchProp(el, key, prev, next, namespace, parentComponent);
1524
- }
1525
- if ("value" in newProps) hostPatchProp(el, "value", oldProps.value, newProps.value, namespace);
1526
- }
1527
- };
1528
- const processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
1529
- const fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText("");
1530
- const fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText("");
1531
- let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;
1532
- if (fragmentSlotScopeIds) slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds;
1533
- if (n1 == null) {
1534
- hostInsert(fragmentStartAnchor, container, anchor);
1535
- hostInsert(fragmentEndAnchor, container, anchor);
1536
- mountChildren(n2.children || [], container, fragmentEndAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1537
- } else if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && n1.dynamicChildren) {
1538
- patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, namespace, slotScopeIds);
1539
- if (n2.key != null || parentComponent && n2 === parentComponent.subTree) traverseStaticChildren(n1, n2, true);
1540
- } else patchChildren(n1, n2, container, fragmentEndAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1541
- };
1542
- const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
1543
- n2.slotScopeIds = slotScopeIds;
1544
- if (n1 == null) if (n2.shapeFlag & 512) parentComponent.ctx.activate(n2, container, anchor, namespace, optimized);
1545
- else mountComponent(n2, container, anchor, parentComponent, parentSuspense, namespace, optimized);
1546
- else updateComponent(n1, n2, optimized);
1547
- };
1548
- const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, namespace, optimized) => {
1549
- const instance = initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense);
1550
- if (isKeepAlive(initialVNode)) instance.ctx.renderer = internals;
1551
- setupComponent(instance, false, optimized);
1552
- if (instance.asyncDep) {
1553
- parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
1554
- if (!initialVNode.el) processCommentNode(null, instance.subTree = createVNode(Comment), container, anchor);
1555
- } else setupRenderEffect(instance, initialVNode, container, anchor, parentSuspense, namespace, optimized);
1556
- };
1557
- const updateComponent = (n1, n2, optimized) => {
1558
- if (n2.component !== n1.component) {
1559
- if (n1.component.zovaHostProviders !== n2.zovaHostProviders) {
1560
- n1.component.zovaHostProviders = n2.zovaHostProviders;
1561
- _updateZovaHostProviders(n1.component, n2.zovaHostProviders);
1562
- }
1563
- }
1564
- const instance = n2.component = n1.component;
1565
- if (shouldUpdateComponent(n1, n2, optimized)) if (instance.asyncDep && !instance.asyncResolved) {
1566
- updateComponentPreRender(instance, n2, optimized);
1567
- return;
1568
- } else {
1569
- instance.next = n2;
1570
- instance.update();
1571
- }
1572
- else {
1573
- n2.el = n1.el;
1574
- instance.vnode = n2;
1575
- }
1576
- };
1577
- function _getValidZova(instance) {
1578
- while (instance) {
1579
- if (instance.zova) return instance.zova;
1580
- instance = instance.parent;
1581
- }
1582
- }
1583
- const setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, namespace, optimized) => {
1584
- const componentUpdateFn = () => {
1585
- if (!instance.isMounted) {
1586
- let vnodeHook;
1587
- const { el, props } = initialVNode;
1588
- const { bm, m, parent, root, type } = instance;
1589
- const isAsyncWrapperVNode = isAsyncWrapper(initialVNode);
1590
- toggleRecurse(instance, false);
1591
- if (bm) invokeArrayFns(bm);
1592
- if (!isAsyncWrapperVNode && (vnodeHook = props && props.onVnodeBeforeMount)) invokeVNodeHook(vnodeHook, parent, initialVNode);
1593
- toggleRecurse(instance, true);
1594
- const _zova = _getValidZova(instance);
1595
- const _maybeAllowHydrate = !_zova || _zova.meta.$ssr.isRuntimeSsrPreHydration;
1596
- if (el && hydrateNode && _maybeAllowHydrate) {
1597
- const hydrateSubTree = () => {
1598
- instance.subTree = renderComponentRoot(instance);
1599
- hydrateNode(el, instance.subTree, instance, parentSuspense, null);
1600
- };
1601
- if (isAsyncWrapperVNode && type.__asyncHydrate) type.__asyncHydrate(el, instance, hydrateSubTree);
1602
- else {
1603
- const zova = instance.zova;
1604
- if (zova) {
1605
- zova.meta.$ssr._hydratingInc();
1606
- zova.meta.state.inited.wait().then(() => {
1607
- !instance.isUnmounted && hydrateSubTree();
1608
- zova.meta.$ssr._hydratingDec();
1609
- });
1610
- } else hydrateSubTree();
1611
- }
1612
- } else {
1613
- if (root.ce) root.ce._injectChildStyle(type);
1614
- const subTree = instance.subTree = renderComponentRoot(instance);
1615
- patch(null, subTree, container, anchor, instance, parentSuspense, namespace);
1616
- initialVNode.el = subTree.el;
1617
- }
1618
- if (m) queuePostRenderEffect(m, parentSuspense);
1619
- if (!isAsyncWrapperVNode && (vnodeHook = props && props.onVnodeMounted)) {
1620
- const scopedInitialVNode = initialVNode;
1621
- queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), parentSuspense);
1622
- }
1623
- if (initialVNode.shapeFlag & 256 || parent && isAsyncWrapper(parent.vnode) && parent.vnode.shapeFlag & 256) instance.a && queuePostRenderEffect(instance.a, parentSuspense);
1624
- instance.isMounted = true;
1625
- initialVNode = container = anchor = null;
1626
- } else {
1627
- let { next, bu, u, parent, vnode } = instance;
1628
- const zova = instance.zova;
1629
- if (zova && zova.meta.$ssr.isRuntimeSsrPreHydration) return;
1630
- if (!instance.subTree) return;
1631
- {
1632
- const nonHydratedAsyncRoot = locateNonHydratedAsyncRoot(instance);
1633
- if (nonHydratedAsyncRoot) {
1634
- if (next) {
1635
- next.el = vnode.el;
1636
- updateComponentPreRender(instance, next, optimized);
1637
- }
1638
- nonHydratedAsyncRoot.asyncDep.then(() => {
1639
- if (!instance.isUnmounted) componentUpdateFn();
1640
- });
1641
- return;
1642
- }
1643
- }
1644
- let originNext = next;
1645
- let vnodeHook;
1646
- toggleRecurse(instance, false);
1647
- if (next) {
1648
- next.el = vnode.el;
1649
- updateComponentPreRender(instance, next, optimized);
1650
- } else next = vnode;
1651
- if (bu) invokeArrayFns(bu);
1652
- if (vnodeHook = next.props && next.props.onVnodeBeforeUpdate) invokeVNodeHook(vnodeHook, parent, next, vnode);
1653
- toggleRecurse(instance, true);
1654
- const nextTree = renderComponentRoot(instance);
1655
- const prevTree = instance.subTree;
1656
- instance.subTree = nextTree;
1657
- patch(prevTree, nextTree, hostParentNode(prevTree.el), getNextHostNode(prevTree), instance, parentSuspense, namespace);
1658
- next.el = nextTree.el;
1659
- if (originNext === null) updateHOCHostEl(instance, nextTree.el);
1660
- if (u) queuePostRenderEffect(u, parentSuspense);
1661
- if (vnodeHook = next.props && next.props.onVnodeUpdated) queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, next, vnode), parentSuspense);
1662
- }
1663
- };
1664
- instance.scope.on();
1665
- const effect = instance.effect = new ReactiveEffect(componentUpdateFn);
1666
- instance.scope.off();
1667
- function _patchUpdate(checkDirty) {
1668
- if (!checkDirty || effect.dirty) {
1669
- const zova = _getValidZova(instance);
1670
- if (zova && zova.meta.$ssr.isRuntimeSsrPreHydration && !zova.meta.$ssr._hydratingInstanceRecord(instance)) return;
1671
- effect.run();
1672
- }
1673
- }
1674
- const update = instance.update = () => _patchUpdate(false);
1675
- const job = instance.job = () => _patchUpdate(true);
1676
- job.i = instance;
1677
- job.id = instance.uid;
1678
- effect.scheduler = () => queueJob(job);
1679
- toggleRecurse(instance, true);
1680
- update();
1681
- };
1682
- const updateComponentPreRender = (instance, nextVNode, optimized) => {
1683
- nextVNode.component = instance;
1684
- const prevProps = instance.vnode.props;
1685
- instance.vnode = nextVNode;
1686
- instance.next = null;
1687
- updateProps(instance, nextVNode.props, prevProps, optimized);
1688
- updateSlots(instance, nextVNode.children, optimized);
1689
- pauseTracking();
1690
- flushPreFlushCbs(instance);
1691
- resetTracking();
1692
- };
1693
- const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized = false) => {
1694
- const c1 = n1 && n1.children;
1695
- const prevShapeFlag = n1 ? n1.shapeFlag : 0;
1696
- const c2 = n2.children;
1697
- const { patchFlag, shapeFlag } = n2;
1698
- if (patchFlag > 0) {
1699
- if (patchFlag & 128) {
1700
- patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1701
- return;
1702
- } else if (patchFlag & 256) {
1703
- patchUnkeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1704
- return;
1705
- }
1706
- }
1707
- if (shapeFlag & 8) {
1708
- if (prevShapeFlag & 16) unmountChildren(c1, parentComponent, parentSuspense);
1709
- if (c2 !== c1) hostSetElementText(container, c2);
1710
- } else if (prevShapeFlag & 16) if (shapeFlag & 16) patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1711
- else unmountChildren(c1, parentComponent, parentSuspense, true);
1712
- else {
1713
- if (prevShapeFlag & 8) hostSetElementText(container, "");
1714
- if (shapeFlag & 16) mountChildren(c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1715
- }
1716
- };
1717
- const patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
1718
- c1 = c1 || EMPTY_ARR;
1719
- c2 = c2 || EMPTY_ARR;
1720
- const oldLength = c1.length;
1721
- const newLength = c2.length;
1722
- const commonLength = Math.min(oldLength, newLength);
1723
- let i;
1724
- for (i = 0; i < commonLength; i++) {
1725
- const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]);
1726
- patch(c1[i], nextChild, container, null, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1727
- }
1728
- if (oldLength > newLength) unmountChildren(c1, parentComponent, parentSuspense, true, false, commonLength);
1729
- else mountChildren(c2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, commonLength);
1730
- };
1731
- const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
1732
- let i = 0;
1733
- const l2 = c2.length;
1734
- let e1 = c1.length - 1;
1735
- let e2 = l2 - 1;
1736
- while (i <= e1 && i <= e2) {
1737
- const n1 = c1[i];
1738
- const n2 = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]);
1739
- if (isSameVNodeType(n1, n2)) patch(n1, n2, container, null, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1740
- else break;
1741
- i++;
1742
- }
1743
- while (i <= e1 && i <= e2) {
1744
- const n1 = c1[e1];
1745
- const n2 = c2[e2] = optimized ? cloneIfMounted(c2[e2]) : normalizeVNode(c2[e2]);
1746
- if (isSameVNodeType(n1, n2)) patch(n1, n2, container, null, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1747
- else break;
1748
- e1--;
1749
- e2--;
1750
- }
1751
- if (i > e1) {
1752
- if (i <= e2) {
1753
- const nextPos = e2 + 1;
1754
- const anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor;
1755
- while (i <= e2) {
1756
- patch(null, c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]), container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1757
- i++;
1758
- }
1759
- }
1760
- } else if (i > e2) while (i <= e1) {
1761
- unmount(c1[i], parentComponent, parentSuspense, true);
1762
- i++;
1763
- }
1764
- else {
1765
- const s1 = i;
1766
- const s2 = i;
1767
- const keyToNewIndexMap = /* @__PURE__ */ new Map();
1768
- for (i = s2; i <= e2; i++) {
1769
- const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]);
1770
- if (nextChild.key != null) keyToNewIndexMap.set(nextChild.key, i);
1771
- }
1772
- let j;
1773
- let patched = 0;
1774
- const toBePatched = e2 - s2 + 1;
1775
- let moved = false;
1776
- let maxNewIndexSoFar = 0;
1777
- const newIndexToOldIndexMap = new Array(toBePatched);
1778
- for (i = 0; i < toBePatched; i++) newIndexToOldIndexMap[i] = 0;
1779
- for (i = s1; i <= e1; i++) {
1780
- const prevChild = c1[i];
1781
- if (patched >= toBePatched) {
1782
- unmount(prevChild, parentComponent, parentSuspense, true);
1783
- continue;
1784
- }
1785
- let newIndex;
1786
- if (prevChild.key != null) newIndex = keyToNewIndexMap.get(prevChild.key);
1787
- else for (j = s2; j <= e2; j++) if (newIndexToOldIndexMap[j - s2] === 0 && isSameVNodeType(prevChild, c2[j])) {
1788
- newIndex = j;
1789
- break;
1790
- }
1791
- if (newIndex === void 0) unmount(prevChild, parentComponent, parentSuspense, true);
1792
- else {
1793
- newIndexToOldIndexMap[newIndex - s2] = i + 1;
1794
- if (newIndex >= maxNewIndexSoFar) maxNewIndexSoFar = newIndex;
1795
- else moved = true;
1796
- patch(prevChild, c2[newIndex], container, null, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1797
- patched++;
1798
- }
1799
- }
1800
- const increasingNewIndexSequence = moved ? getSequence(newIndexToOldIndexMap) : EMPTY_ARR;
1801
- j = increasingNewIndexSequence.length - 1;
1802
- for (i = toBePatched - 1; i >= 0; i--) {
1803
- const nextIndex = s2 + i;
1804
- const nextChild = c2[nextIndex];
1805
- const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor;
1806
- if (newIndexToOldIndexMap[i] === 0) patch(null, nextChild, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
1807
- else if (moved) if (j < 0 || i !== increasingNewIndexSequence[j]) move(nextChild, container, anchor, 2);
1808
- else j--;
1809
- }
1810
- }
1811
- };
1812
- const move = (vnode, container, anchor, moveType, parentSuspense = null) => {
1813
- const { el, type, transition, children, shapeFlag } = vnode;
1814
- if (shapeFlag & 6) {
1815
- move(vnode.component.subTree, container, anchor, moveType);
1816
- return;
1817
- }
1818
- if (shapeFlag & 128) {
1819
- vnode.suspense.move(container, anchor, moveType);
1820
- return;
1821
- }
1822
- if (shapeFlag & 64) {
1823
- type.move(vnode, container, anchor, internals);
1824
- return;
1825
- }
1826
- if (type === Fragment) {
1827
- hostInsert(el, container, anchor);
1828
- for (let i = 0; i < children.length; i++) move(children[i], container, anchor, moveType);
1829
- hostInsert(vnode.anchor, container, anchor);
1830
- return;
1831
- }
1832
- if (type === Static) {
1833
- moveStaticNode(vnode, container, anchor);
1834
- return;
1835
- }
1836
- if (moveType !== 2 && shapeFlag & 1 && transition) if (moveType === 0) {
1837
- transition.beforeEnter(el);
1838
- hostInsert(el, container, anchor);
1839
- queuePostRenderEffect(() => transition.enter(el), parentSuspense);
1840
- } else {
1841
- const { leave, delayLeave, afterLeave } = transition;
1842
- const remove2 = () => hostInsert(el, container, anchor);
1843
- const performLeave = () => {
1844
- leave(el, () => {
1845
- remove2();
1846
- afterLeave && afterLeave();
1847
- });
1848
- };
1849
- if (delayLeave) delayLeave(el, remove2, performLeave);
1850
- else performLeave();
1851
- }
1852
- else hostInsert(el, container, anchor);
1853
- };
1854
- const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
1855
- const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex } = vnode;
1856
- if (patchFlag === -2) optimized = false;
1857
- if (ref != null) setRef(ref, null, parentSuspense, vnode, true);
1858
- if (cacheIndex != null) parentComponent.renderCache[cacheIndex] = void 0;
1859
- if (shapeFlag & 256) {
1860
- parentComponent.ctx.deactivate(vnode);
1861
- return;
1862
- }
1863
- const shouldInvokeDirs = shapeFlag & 1 && dirs;
1864
- const shouldInvokeVnodeHook = !isAsyncWrapper(vnode);
1865
- let vnodeHook;
1866
- if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeBeforeUnmount)) invokeVNodeHook(vnodeHook, parentComponent, vnode);
1867
- if (shapeFlag & 6) unmountComponent(vnode.component, parentSuspense, doRemove);
1868
- else {
1869
- if (shapeFlag & 128) {
1870
- vnode.suspense.unmount(parentSuspense, doRemove);
1871
- return;
1872
- }
1873
- if (shouldInvokeDirs) invokeDirectiveHook(vnode, null, parentComponent, "beforeUnmount");
1874
- if (shapeFlag & 64) vnode.type.remove(vnode, parentComponent, parentSuspense, internals, doRemove);
1875
- else if (dynamicChildren && !dynamicChildren.hasOnce && (type !== Fragment || patchFlag > 0 && patchFlag & 64)) unmountChildren(dynamicChildren, parentComponent, parentSuspense, false, true);
1876
- else if (type === Fragment && patchFlag & 384 || !optimized && shapeFlag & 16) unmountChildren(children, parentComponent, parentSuspense);
1877
- if (doRemove) remove(vnode);
1878
- }
1879
- if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeUnmounted) || shouldInvokeDirs) queuePostRenderEffect(() => {
1880
- vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
1881
- shouldInvokeDirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted");
1882
- }, parentSuspense);
1883
- };
1884
- const remove = (vnode) => {
1885
- const { type, el, anchor, transition } = vnode;
1886
- if (type === Fragment) {
1887
- removeFragment(el, anchor);
1888
- return;
1889
- }
1890
- if (type === Static) {
1891
- removeStaticNode(vnode);
1892
- return;
1893
- }
1894
- const performRemove = () => {
1895
- hostRemove(el);
1896
- if (transition && !transition.persisted && transition.afterLeave) transition.afterLeave();
1897
- };
1898
- if (vnode.shapeFlag & 1 && transition && !transition.persisted) {
1899
- const { leave, delayLeave } = transition;
1900
- const performLeave = () => leave(el, performRemove);
1901
- if (delayLeave) delayLeave(vnode.el, performRemove, performLeave);
1902
- else performLeave();
1903
- } else performRemove();
1904
- };
1905
- const removeFragment = (cur, end) => {
1906
- let next;
1907
- while (cur !== end) {
1908
- next = hostNextSibling(cur);
1909
- hostRemove(cur);
1910
- cur = next;
1911
- }
1912
- hostRemove(end);
1913
- };
1914
- const unmountComponent = (instance, parentSuspense, doRemove) => {
1915
- const { bum, scope, job, subTree, um, m, a } = instance;
1916
- invalidateMount(m);
1917
- invalidateMount(a);
1918
- if (bum) invokeArrayFns(bum);
1919
- scope.stop();
1920
- if (job) {
1921
- job.flags |= 8;
1922
- unmount(subTree, instance, parentSuspense, doRemove);
1923
- }
1924
- if (um) queuePostRenderEffect(um, parentSuspense);
1925
- queuePostRenderEffect(() => {
1926
- instance.isUnmounted = true;
1927
- }, parentSuspense);
1928
- if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) {
1929
- parentSuspense.deps--;
1930
- if (parentSuspense.deps === 0) parentSuspense.resolve();
1931
- }
1932
- };
1933
- const unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => {
1934
- for (let i = start; i < children.length; i++) unmount(children[i], parentComponent, parentSuspense, doRemove, optimized);
1935
- };
1936
- const getNextHostNode = (vnode) => {
1937
- if (vnode.shapeFlag & 6) return getNextHostNode(vnode.component.subTree);
1938
- if (vnode.shapeFlag & 128) return vnode.suspense.next();
1939
- const el = hostNextSibling(vnode.anchor || vnode.el);
1940
- const teleportEnd = el && el[TeleportEndKey];
1941
- return teleportEnd ? hostNextSibling(teleportEnd) : el;
1942
- };
1943
- let isFlushing = false;
1944
- const render = (vnode, container, namespace) => {
1945
- if (vnode == null) {
1946
- if (container._vnode) unmount(container._vnode, null, null, true);
1947
- } else patch(container._vnode || null, vnode, container, null, null, null, namespace);
1948
- container._vnode = vnode;
1949
- if (!isFlushing) {
1950
- isFlushing = true;
1951
- flushPreFlushCbs();
1952
- flushPostFlushCbs();
1953
- isFlushing = false;
1954
- }
1955
- };
1956
- const internals = {
1957
- p: patch,
1958
- um: unmount,
1959
- m: move,
1960
- r: remove,
1961
- mt: mountComponent,
1962
- mc: mountChildren,
1963
- pc: patchChildren,
1964
- pbc: patchBlockChildren,
1965
- n: getNextHostNode,
1966
- o: options
1967
- };
1968
- let hydrate;
1969
- let hydrateNode;
1970
- if (createHydrationFns) [hydrate, hydrateNode] = createHydrationFns(internals);
1971
- return {
1972
- render,
1973
- hydrate,
1974
- createApp: createAppAPI(render, hydrate)
1975
- };
1976
- }
1977
- function resolveChildrenNamespace({ type, props }, currentNamespace) {
1978
- return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ? void 0 : currentNamespace;
1979
- }
1980
- function toggleRecurse({ effect, job }, allowed) {
1981
- if (allowed) {
1982
- effect.flags |= 32;
1983
- job.flags |= 4;
1984
- } else {
1985
- effect.flags &= -33;
1986
- job.flags &= -5;
1987
- }
1988
- }
1989
- function needTransition(parentSuspense, transition) {
1990
- return (!parentSuspense || parentSuspense && !parentSuspense.pendingBranch) && transition && !transition.persisted;
1991
- }
1992
- function traverseStaticChildren(n1, n2, shallow = false) {
1993
- const ch1 = n1.children;
1994
- const ch2 = n2.children;
1995
- if (isArray(ch1) && isArray(ch2)) for (let i = 0; i < ch1.length; i++) {
1996
- const c1 = ch1[i];
1997
- let c2 = ch2[i];
1998
- if (c2.shapeFlag & 1 && !c2.dynamicChildren) {
1999
- if (c2.patchFlag <= 0 || c2.patchFlag === 32) {
2000
- c2 = ch2[i] = cloneIfMounted(ch2[i]);
2001
- c2.el = c1.el;
2002
- }
2003
- if (!shallow && c2.patchFlag !== -2) traverseStaticChildren(c1, c2);
2004
- }
2005
- if (c2.type === Text) c2.el = c1.el;
2006
- }
2007
- }
2008
- function getSequence(arr) {
2009
- const p = arr.slice();
2010
- const result = [0];
2011
- let i, j, u, v, c;
2012
- const len = arr.length;
2013
- for (i = 0; i < len; i++) {
2014
- const arrI = arr[i];
2015
- if (arrI !== 0) {
2016
- j = result[result.length - 1];
2017
- if (arr[j] < arrI) {
2018
- p[i] = j;
2019
- result.push(i);
2020
- continue;
2021
- }
2022
- u = 0;
2023
- v = result.length - 1;
2024
- while (u < v) {
2025
- c = u + v >> 1;
2026
- if (arr[result[c]] < arrI) u = c + 1;
2027
- else v = c;
2028
- }
2029
- if (arrI < arr[result[u]]) {
2030
- if (u > 0) p[i] = result[u - 1];
2031
- result[u] = i;
2032
- }
2033
- }
2034
- }
2035
- u = result.length;
2036
- v = result[u - 1];
2037
- while (u-- > 0) {
2038
- result[u] = v;
2039
- v = p[v];
2040
- }
2041
- return result;
2042
- }
2043
- function locateNonHydratedAsyncRoot(instance) {
2044
- const subComponent = instance.subTree.component;
2045
- if (subComponent) if (subComponent.asyncDep && !subComponent.asyncResolved) return subComponent;
2046
- else return locateNonHydratedAsyncRoot(subComponent);
2047
- }
2048
- function invalidateMount(hooks) {
2049
- if (hooks) for (let i = 0; i < hooks.length; i++) hooks[i].flags |= 8;
2050
- }
2051
- function watchEffect(effect, options) {
2052
- return doWatch(effect, null, options);
2053
- }
2054
- function watchPostEffect(effect, options) {
2055
- return doWatch(effect, null, { flush: "post" });
2056
- }
2057
- function watchSyncEffect(effect, options) {
2058
- return doWatch(effect, null, { flush: "sync" });
2059
- }
2060
- function watch(source, cb, options) {
2061
- return doWatch(source, cb, options);
2062
- }
2063
- function doWatch(source, cb, options = EMPTY_OBJ) {
2064
- const { immediate, deep, flush, once } = options;
2065
- const baseWatchOptions = extend({}, options);
2066
- const runsImmediately = cb && immediate || !cb && flush !== "post";
2067
- let ssrCleanup;
2068
- if (isInSSRComponentSetup) {
2069
- if (flush === "sync") {
2070
- const ctx = useSSRContext();
2071
- ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
2072
- } else if (!runsImmediately) {
2073
- const watchStopHandle = () => {};
2074
- watchStopHandle.stop = NOOP;
2075
- watchStopHandle.resume = NOOP;
2076
- watchStopHandle.pause = NOOP;
2077
- return watchStopHandle;
2078
- }
2079
- }
2080
- const instance = currentInstance;
2081
- baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
2082
- let isPre = false;
2083
- if (flush === "post") baseWatchOptions.scheduler = (job) => {
2084
- queuePostRenderEffect(job, instance && instance.suspense);
2085
- };
2086
- else if (flush !== "sync") {
2087
- isPre = true;
2088
- baseWatchOptions.scheduler = (job, isFirstRun) => {
2089
- if (isFirstRun) job();
2090
- else queueJob(job);
2091
- };
2092
- }
2093
- baseWatchOptions.augmentJob = (job) => {
2094
- if (cb) job.flags |= 4;
2095
- if (isPre) {
2096
- job.flags |= 2;
2097
- if (instance) {
2098
- job.id = instance.uid;
2099
- job.i = instance;
2100
- }
2101
- }
2102
- };
2103
- const watchHandle = watch$1(source, cb, baseWatchOptions);
2104
- if (isInSSRComponentSetup) {
2105
- if (ssrCleanup) ssrCleanup.push(watchHandle);
2106
- else if (runsImmediately) watchHandle();
2107
- }
2108
- return watchHandle;
2109
- }
2110
- function instanceWatch(source, value, options) {
2111
- const publicThis = this.proxy;
2112
- const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
2113
- let cb;
2114
- if (isFunction(value)) cb = value;
2115
- else {
2116
- cb = value.handler;
2117
- options = value;
2118
- }
2119
- const reset = setCurrentInstance(this);
2120
- const res = doWatch(getter, cb.bind(publicThis), options);
2121
- reset();
2122
- return res;
2123
- }
2124
- function createPathGetter(ctx, path) {
2125
- const segments = path.split(".");
2126
- return () => {
2127
- let cur = ctx;
2128
- for (let i = 0; i < segments.length && cur; i++) cur = cur[segments[i]];
2129
- return cur;
2130
- };
2131
- }
2132
- function emit(instance, event, ...rawArgs) {
2133
- if (instance.isUnmounted) return;
2134
- const props = instance.vnode.props || EMPTY_OBJ;
2135
- let args = rawArgs;
2136
- const isModelListener = event.startsWith("update:");
2137
- const modifiers = isModelListener && getModelModifiers(props, event.slice(7));
2138
- if (modifiers) {
2139
- if (modifiers.trim) args = rawArgs.map((a) => isString(a) ? a.trim() : a);
2140
- if (modifiers.number) args = rawArgs.map(looseToNumber);
2141
- }
2142
- let handlerName;
2143
- let handler = props[handlerName = toHandlerKey(event)] || props[handlerName = toHandlerKey(camelize(event))];
2144
- if (!handler && isModelListener) handler = props[handlerName = toHandlerKey(hyphenate(event))];
2145
- if (handler) callWithAsyncErrorHandling(handler, instance, 6, args);
2146
- const onceHandler = props[handlerName + `Once`];
2147
- if (onceHandler) {
2148
- if (!instance.emitted) instance.emitted = {};
2149
- else if (instance.emitted[handlerName]) return;
2150
- instance.emitted[handlerName] = true;
2151
- callWithAsyncErrorHandling(onceHandler, instance, 6, args);
2152
- }
2153
- }
2154
- function normalizeEmitsOptions(comp, appContext, asMixin = false) {
2155
- const cache = appContext.emitsCache;
2156
- const cached = cache.get(comp);
2157
- if (cached !== void 0) return cached;
2158
- const raw = comp.emits;
2159
- let normalized = {};
2160
- let hasExtends = false;
2161
- if (!isFunction(comp)) {
2162
- const extendEmits = (raw2) => {
2163
- const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true);
2164
- if (normalizedFromExtend) {
2165
- hasExtends = true;
2166
- extend(normalized, normalizedFromExtend);
2167
- }
2168
- };
2169
- if (!asMixin && appContext.mixins.length) appContext.mixins.forEach(extendEmits);
2170
- if (comp.extends) extendEmits(comp.extends);
2171
- if (comp.mixins) comp.mixins.forEach(extendEmits);
2172
- }
2173
- if (!raw && !hasExtends) {
2174
- if (isObject(comp)) cache.set(comp, null);
2175
- return null;
2176
- }
2177
- if (isArray(raw)) raw.forEach((key) => normalized[key] = null);
2178
- else extend(normalized, raw);
2179
- if (isObject(comp)) cache.set(comp, normalized);
2180
- return normalized;
2181
- }
2182
- function isEmitListener(options, key) {
2183
- if (!options || !isOn(key)) return false;
2184
- key = key.slice(2).replace(/Once$/, "");
2185
- return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key);
2186
- }
2187
- function renderComponentRoot(instance) {
2188
- const { type: Component, vnode, proxy, withProxy, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, props, data, setupState, ctx, inheritAttrs } = instance;
2189
- const prev = setCurrentRenderingInstance(instance);
2190
- let result;
2191
- let fallthroughAttrs;
2192
- try {
2193
- if (vnode.shapeFlag & 4) {
2194
- const proxyToUse = withProxy || proxy;
2195
- const thisProxy = proxyToUse;
2196
- result = normalizeVNode(render.call(thisProxy, proxyToUse, renderCache, props, setupState, data, ctx));
2197
- fallthroughAttrs = attrs;
2198
- } else {
2199
- const render2 = Component;
2200
- result = normalizeVNode(render2.length > 1 ? render2(props, {
2201
- attrs,
2202
- slots,
2203
- emit
2204
- }) : render2(props, null));
2205
- fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
2206
- }
2207
- } catch (err) {
2208
- blockStack.length = 0;
2209
- handleError(err, instance, 1);
2210
- result = createVNode(Comment);
2211
- }
2212
- let root = result;
2213
- if (fallthroughAttrs && inheritAttrs !== false) {
2214
- fallthroughAttrs = filterZovaAttrs(fallthroughAttrs, inheritAttrs);
2215
- const keys = Object.keys(fallthroughAttrs);
2216
- const { shapeFlag } = root;
2217
- if (keys.length) {
2218
- if (shapeFlag & 7) {
2219
- if (propsOptions && keys.some(isModelListener)) fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions);
2220
- root = cloneVNode(root, fallthroughAttrs, false, true);
2221
- }
2222
- }
2223
- }
2224
- if (vnode.dirs) {
2225
- root = cloneVNode(root, null, false, true);
2226
- root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
2227
- }
2228
- if (vnode.transition) setTransitionHooks(root, vnode.transition);
2229
- result = root;
2230
- setCurrentRenderingInstance(prev);
2231
- return result;
2232
- }
2233
- function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
2234
- const { props: prevProps, children: prevChildren, component } = prevVNode;
2235
- const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
2236
- const emits = component.emitsOptions;
2237
- if (nextVNode.dirs || nextVNode.transition) return true;
2238
- if (optimized && patchFlag >= 0) {
2239
- if (patchFlag & 1024) return true;
2240
- if (patchFlag & 16) {
2241
- if (!prevProps) return !!nextProps;
2242
- return hasPropsChanged(prevProps, nextProps, emits);
2243
- } else if (patchFlag & 8) {
2244
- const dynamicProps = nextVNode.dynamicProps;
2245
- for (let i = 0; i < dynamicProps.length; i++) {
2246
- const key = dynamicProps[i];
2247
- if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) return true;
2248
- }
2249
- }
2250
- } else {
2251
- if (prevChildren || nextChildren) {
2252
- if (!nextChildren || !nextChildren.$stable) return true;
2253
- }
2254
- if (prevProps === nextProps) return false;
2255
- if (!prevProps) return !!nextProps;
2256
- if (!nextProps) return true;
2257
- return hasPropsChanged(prevProps, nextProps, emits);
2258
- }
2259
- return false;
2260
- }
2261
- function hasPropsChanged(prevProps, nextProps, emitsOptions) {
2262
- const nextKeys = Object.keys(nextProps);
2263
- if (nextKeys.length !== Object.keys(prevProps).length) return true;
2264
- for (let i = 0; i < nextKeys.length; i++) {
2265
- const key = nextKeys[i];
2266
- if (nextProps[key] !== prevProps[key] && !isEmitListener(emitsOptions, key)) return true;
2267
- }
2268
- return false;
2269
- }
2270
- function updateHOCHostEl({ vnode, parent }, el) {
2271
- while (parent) {
2272
- const root = parent.subTree;
2273
- if (root.suspense && root.suspense.activeBranch === vnode) root.el = vnode.el;
2274
- if (root === vnode) {
2275
- (vnode = parent.vnode).el = el;
2276
- parent = parent.parent;
2277
- } else break;
2278
- }
2279
- }
2280
- function queueEffectWithSuspense(fn, suspense) {
2281
- if (suspense && suspense.pendingBranch) if (isArray(fn)) suspense.effects.push(...fn);
2282
- else suspense.effects.push(fn);
2283
- else queuePostFlushCb(fn);
2284
- }
2285
- function setBlockTracking(value, inVOnce = false) {
2286
- isBlockTreeEnabled += value;
2287
- if (value < 0 && currentBlock && inVOnce) currentBlock.hasOnce = true;
2288
- }
2289
- function isVNode(value) {
2290
- return value ? value.__v_isVNode === true : false;
2291
- }
2292
- function isSameVNodeType(n1, n2) {
2293
- return (typeof n1.type === "function" && n1.type["zova-jsx:component"] ? n1.type["zova-jsx:component"] : n1.type) === (typeof n2.type === "function" && n2.type["zova-jsx:component"] ? n2.type["zova-jsx:component"] : n2.type) && n1.key === n2.key;
2294
- }
2295
- function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1, isBlockNode = false, needFullChildrenNormalization = false) {
2296
- if (props && props["v-slots"]) {
2297
- if (!children) children = {};
2298
- if (isFunction(children)) children = { default: children };
2299
- if (typeof children === "object") children = Object.assign({}, props["v-slots"], children);
2300
- props = Object.assign({}, props);
2301
- delete props["v-slots"];
2302
- }
2303
- const vnode = {
2304
- __v_isVNode: true,
2305
- __v_skip: true,
2306
- type,
2307
- props,
2308
- key: props && normalizeKey(props),
2309
- ref: props && normalizeRef(props),
2310
- scopeId: currentScopeId,
2311
- slotScopeIds: null,
2312
- children,
2313
- component: null,
2314
- suspense: null,
2315
- ssContent: null,
2316
- ssFallback: null,
2317
- dirs: null,
2318
- transition: null,
2319
- el: null,
2320
- anchor: null,
2321
- target: null,
2322
- targetStart: null,
2323
- targetAnchor: null,
2324
- staticCount: 0,
2325
- shapeFlag,
2326
- patchFlag,
2327
- dynamicProps,
2328
- dynamicChildren: null,
2329
- appContext: null,
2330
- ctx: currentRenderingInstance
2331
- };
2332
- if (needFullChildrenNormalization) {
2333
- normalizeChildren(vnode, children);
2334
- if (shapeFlag & 128) type.normalize(vnode);
2335
- } else if (children) vnode.shapeFlag |= isString(children) ? 8 : 16;
2336
- if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock && (vnode.patchFlag > 0 || shapeFlag & 6) && vnode.patchFlag !== 32) currentBlock.push(vnode);
2337
- return vnode;
2338
- }
2339
- function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
2340
- if (!type || type === NULL_DYNAMIC_COMPONENT) type = Comment;
2341
- if (isVNode(type)) {
2342
- const cloned = cloneVNode(type, props, true);
2343
- if (children) normalizeChildren(cloned, children);
2344
- if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) if (cloned.shapeFlag & 6) currentBlock[currentBlock.indexOf(type)] = cloned;
2345
- else currentBlock.push(cloned);
2346
- cloned.patchFlag = -2;
2347
- return cloned;
2348
- }
2349
- if (isClassComponent(type)) type = type.__vccOpts;
2350
- if (props) {
2351
- props = guardReactiveProps(props);
2352
- let { class: klass, style } = props;
2353
- if (klass && !isString(klass)) props.class = normalizeClass(klass);
2354
- if (isObject(style)) {
2355
- if (isProxy(style) && !isArray(style)) style = extend({}, style);
2356
- props.style = normalizeStyle(style);
2357
- }
2358
- }
2359
- const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
2360
- return createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, isBlockNode, true);
2361
- }
2362
- function guardReactiveProps(props) {
2363
- if (!props) return null;
2364
- return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
2365
- }
2366
- function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
2367
- const { props, ref, patchFlag, children, transition } = vnode;
2368
- const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
2369
- const cloned = {
2370
- __v_isVNode: true,
2371
- __v_skip: true,
2372
- type: vnode.type,
2373
- props: mergedProps,
2374
- key: mergedProps && normalizeKey(mergedProps),
2375
- ref: extraProps && extraProps.ref ? mergeRef && ref ? isArray(ref) ? ref.concat(normalizeRef(extraProps)) : [ref, normalizeRef(extraProps)] : normalizeRef(extraProps) : ref,
2376
- scopeId: vnode.scopeId,
2377
- slotScopeIds: vnode.slotScopeIds,
2378
- children,
2379
- target: vnode.target,
2380
- targetStart: vnode.targetStart,
2381
- targetAnchor: vnode.targetAnchor,
2382
- staticCount: vnode.staticCount,
2383
- shapeFlag: vnode.shapeFlag,
2384
- patchFlag: extraProps && vnode.type !== Fragment ? patchFlag === -1 ? 16 : patchFlag | 16 : patchFlag,
2385
- dynamicProps: vnode.dynamicProps,
2386
- dynamicChildren: vnode.dynamicChildren,
2387
- appContext: vnode.appContext,
2388
- dirs: vnode.dirs,
2389
- transition,
2390
- component: vnode.component,
2391
- suspense: vnode.suspense,
2392
- ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
2393
- ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
2394
- el: vnode.el,
2395
- anchor: vnode.anchor,
2396
- ctx: vnode.ctx,
2397
- ce: vnode.ce
2398
- };
2399
- if (transition && cloneTransition) setTransitionHooks(cloned, transition.clone(cloned));
2400
- return cloned;
2401
- }
2402
- function createTextVNode(text = " ", flag = 0) {
2403
- return createVNode(Text, null, text, flag);
2404
- }
2405
- function normalizeVNode(child) {
2406
- if (child == null || typeof child === "boolean") return createVNode(Comment);
2407
- else if (isArray(child)) return createVNode(Fragment, null, child.slice());
2408
- else if (isVNode(child)) return cloneIfMounted(child);
2409
- else return createVNode(Text, null, String(child));
2410
- }
2411
- function cloneIfMounted(child) {
2412
- return child.el === null && child.patchFlag !== -1 || child.memo ? child : cloneVNode(child);
2413
- }
2414
- function normalizeChildren(vnode, children) {
2415
- let type = 0;
2416
- const { shapeFlag } = vnode;
2417
- if (children == null) children = null;
2418
- else if (isArray(children)) type = 16;
2419
- else if (typeof children === "object") if (shapeFlag & 65) {
2420
- const slot = children.default;
2421
- if (slot) {
2422
- slot._c && (slot._d = false);
2423
- normalizeChildren(vnode, slot());
2424
- slot._c && (slot._d = true);
2425
- }
2426
- return;
2427
- } else {
2428
- type = 32;
2429
- const slotFlag = children._;
2430
- if (!slotFlag && !isInternalObject(children)) children._ctx = currentRenderingInstance;
2431
- else if (slotFlag === 3 && currentRenderingInstance) if (currentRenderingInstance.slots._ === 1) children._ = 1;
2432
- else {
2433
- children._ = 2;
2434
- vnode.patchFlag |= 1024;
2435
- }
2436
- }
2437
- else if (isFunction(children)) {
2438
- children = {
2439
- default: children,
2440
- _ctx: currentRenderingInstance
2441
- };
2442
- type = 32;
2443
- } else {
2444
- children = String(children);
2445
- if (shapeFlag & 64) {
2446
- type = 16;
2447
- children = [createTextVNode(children)];
2448
- } else type = 8;
2449
- }
2450
- vnode.children = children;
2451
- vnode.shapeFlag |= type;
2452
- }
2453
- function mergeProps(...args) {
2454
- const ret = {};
2455
- for (let i = 0; i < args.length; i++) {
2456
- const toMerge = args[i];
2457
- for (const key in toMerge) if (key === "class") {
2458
- if (ret.class !== toMerge.class) ret.class = normalizeClass([ret.class, toMerge.class]);
2459
- } else if (key === "style") ret.style = normalizeStyle([ret.style, toMerge.style]);
2460
- else if (isOn(key)) {
2461
- const existing = ret[key];
2462
- const incoming = toMerge[key];
2463
- if (incoming && existing !== incoming && !(isArray(existing) && existing.includes(incoming))) ret[key] = existing ? [].concat(existing, incoming) : incoming;
2464
- else if (existing === void 0 || incoming === null || incoming === false) ret[key] = incoming;
2465
- } else if (key !== "") ret[key] = toMerge[key];
2466
- }
2467
- return ret;
2468
- }
2469
- function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
2470
- callWithAsyncErrorHandling(hook, instance, 7, [vnode, prevVNode]);
2471
- }
2472
- function createComponentInstance(vnode, parent, suspense) {
2473
- const type = vnode.type;
2474
- const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext;
2475
- const instance = {
2476
- uid: uid++,
2477
- vnode,
2478
- type,
2479
- parent,
2480
- appContext,
2481
- root: null,
2482
- next: null,
2483
- subTree: null,
2484
- effect: null,
2485
- update: null,
2486
- job: null,
2487
- scope: new EffectScope(true),
2488
- render: null,
2489
- proxy: null,
2490
- exposed: null,
2491
- exposeProxy: null,
2492
- withProxy: null,
2493
- provides: parent ? parent.provides : Object.create(appContext.provides),
2494
- ids: parent ? parent.ids : [
2495
- "",
2496
- 0,
2497
- 0
2498
- ],
2499
- accessCache: null,
2500
- renderCache: [],
2501
- components: null,
2502
- directives: null,
2503
- propsOptions: normalizePropsOptions(type, appContext),
2504
- emitsOptions: normalizeEmitsOptions(type, appContext),
2505
- emit: null,
2506
- emitted: null,
2507
- propsDefaults: EMPTY_OBJ,
2508
- inheritAttrs: type.inheritAttrs,
2509
- ctx: EMPTY_OBJ,
2510
- data: EMPTY_OBJ,
2511
- props: EMPTY_OBJ,
2512
- attrs: EMPTY_OBJ,
2513
- slots: EMPTY_OBJ,
2514
- refs: EMPTY_OBJ,
2515
- setupState: EMPTY_OBJ,
2516
- setupContext: null,
2517
- suspense,
2518
- suspenseId: suspense ? suspense.pendingId : 0,
2519
- asyncDep: null,
2520
- asyncResolved: false,
2521
- isMounted: false,
2522
- isUnmounted: false,
2523
- isDeactivated: false,
2524
- bc: null,
2525
- c: null,
2526
- bm: null,
2527
- m: null,
2528
- bu: null,
2529
- u: null,
2530
- um: null,
2531
- bum: null,
2532
- da: null,
2533
- a: null,
2534
- rtg: null,
2535
- rtc: null,
2536
- ec: null,
2537
- sp: null
2538
- };
2539
- instance.ctx = { _: instance };
2540
- const zovaHostProviders = vnode.zovaHostProviders;
2541
- if (zovaHostProviders) instance.zovaHostProviders = zovaHostProviders;
2542
- instance.root = parent ? parent.root : instance;
2543
- instance.emit = emit.bind(null, instance);
2544
- if (vnode.ce) vnode.ce(instance);
2545
- return instance;
2546
- }
2547
- function isStatefulComponent(instance) {
2548
- return instance.vnode.shapeFlag & 4;
2549
- }
2550
- function setupComponent(instance, isSSR = false, optimized = false) {
2551
- isSSR && setInSSRSetupState(isSSR);
2552
- const { props, children } = instance.vnode;
2553
- const isStateful = isStatefulComponent(instance);
2554
- initProps(instance, props, isStateful, isSSR);
2555
- initSlots(instance, children, optimized);
2556
- const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0;
2557
- isSSR && setInSSRSetupState(false);
2558
- return setupResult;
2559
- }
2560
- function setupStatefulComponent(instance, isSSR) {
2561
- const Component = instance.type;
2562
- instance.accessCache = /* @__PURE__ */ Object.create(null);
2563
- instance.proxy = new Proxy(instance.ctx, PublicInstanceProxyHandlers);
2564
- const { setup } = Component;
2565
- if (setup) {
2566
- pauseTracking();
2567
- const setupContext = instance.setupContext = setup.length > 1 ? createSetupContext(instance) : null;
2568
- const reset = setCurrentInstance(instance);
2569
- const setupResult = callWithErrorHandling(setup, instance, 0, [instance.props, setupContext]);
2570
- const isAsyncSetup = isPromise(setupResult);
2571
- resetTracking();
2572
- reset();
2573
- if ((isAsyncSetup || instance.sp) && !isAsyncWrapper(instance)) markAsyncBoundary(instance);
2574
- if (isAsyncSetup) {
2575
- setupResult.then(unsetCurrentInstance, unsetCurrentInstance);
2576
- if (isSSR) return setupResult.then((resolvedResult) => {
2577
- handleSetupResult(instance, resolvedResult, isSSR);
2578
- }).catch((e) => {
2579
- handleError(e, instance, 0);
2580
- });
2581
- else instance.asyncDep = setupResult;
2582
- } else handleSetupResult(instance, setupResult, isSSR);
2583
- } else finishComponentSetup(instance, isSSR);
2584
- }
2585
- function handleSetupResult(instance, setupResult, isSSR) {
2586
- if (isFunction(setupResult)) if (instance.type.__ssrInlineRender) instance.ssrRender = setupResult;
2587
- else instance.render = setupResult;
2588
- else if (isObject(setupResult)) instance.setupState = proxyRefs(setupResult);
2589
- finishComponentSetup(instance, isSSR);
2590
- }
2591
- function finishComponentSetup(instance, isSSR, skipOptions) {
2592
- const Component = instance.type;
2593
- if (!instance.render) {
2594
- if (!isSSR && compile && !Component.render) {
2595
- const template = Component.template || resolveMergedOptions(instance).template;
2596
- if (template) {
2597
- const { isCustomElement, compilerOptions } = instance.appContext.config;
2598
- const { delimiters, compilerOptions: componentCompilerOptions } = Component;
2599
- Component.render = compile(template, extend(extend({
2600
- isCustomElement,
2601
- delimiters
2602
- }, compilerOptions), componentCompilerOptions));
2603
- }
2604
- }
2605
- instance.render = Component.render || NOOP;
2606
- if (installWithProxy) installWithProxy(instance);
2607
- }
2608
- {
2609
- const reset = setCurrentInstance(instance);
2610
- pauseTracking();
2611
- try {
2612
- applyOptions(instance);
2613
- } finally {
2614
- resetTracking();
2615
- reset();
2616
- }
2617
- }
2618
- }
2619
- function createSetupContext(instance) {
2620
- const expose = (exposed) => {
2621
- instance.exposed = exposed || {};
2622
- };
2623
- return {
2624
- attrs: new Proxy(instance.attrs, attrsProxyHandlers),
2625
- slots: instance.slots,
2626
- emit: instance.emit,
2627
- expose
2628
- };
2629
- }
2630
- function getComponentPublicInstance(instance) {
2631
- if (instance.exposed) return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), {
2632
- get(target, key) {
2633
- if (key in target) return target[key];
2634
- else if (key in publicPropertiesMap) return publicPropertiesMap[key](instance);
2635
- },
2636
- has(target, key) {
2637
- return key in target || key in publicPropertiesMap;
2638
- }
2639
- }));
2640
- else return instance.proxy;
2641
- }
2642
- function isClassComponent(value) {
2643
- return isFunction(value) && "__vccOpts" in value;
2644
- }
2645
- function h(type, propsOrChildren, children) {
2646
- const l = arguments.length;
2647
- if (l === 2) if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
2648
- if (isVNode(propsOrChildren)) return createVNode(type, null, [propsOrChildren]);
2649
- return createVNode(type, propsOrChildren);
2650
- } else return createVNode(type, null, propsOrChildren);
2651
- else {
2652
- if (l > 3) children = Array.prototype.slice.call(arguments, 2);
2653
- else if (l === 3 && isVNode(children)) children = [children];
2654
- return createVNode(type, propsOrChildren, children);
2655
- }
2656
- }
2657
- var queue, flushIndex, pendingPostFlushCbs, activePostFlushCbs, postFlushIndex, resolvedPromise, currentFlushPromise, getId, currentRenderingInstance, currentScopeId, TeleportEndKey, isTeleport, leaveCbKey, enterCbKey, TransitionHookValidator, BaseTransitionPropsValidators, recursiveGetSubtree, BaseTransitionImpl, BaseTransition, isKeepAlive, KeepAlive, createHook, onBeforeMount, onMounted, onBeforeUpdate, onUpdated, onBeforeUnmount, onUnmounted, onServerPrefetch, onRenderTriggered, onRenderTracked, NULL_DYNAMIC_COMPONENT, hasLoggedMismatchError, logMismatchError, isSVGContainer, isMathMLContainer, getContainerType, isComment, allowMismatchAttr, MismatchTypeString, isAsyncWrapper, getPublicInstance, publicPropertiesMap, hasSetupBinding, PublicInstanceProxyHandlers, shouldCacheAccess, internalOptionMergeStrats, uid$1, currentApp, internalObjectProto, createInternalObject, isInternalObject, mixinPropsCache, isInternalKey, normalizeSlotValue, normalizeSlot, normalizeObjectSlots, normalizeVNodeSlots, assignSlots, initSlots, updateSlots, queuePostRenderEffect, ssrContextKey, useSSRContext, getModelModifiers, getFunctionalFallthrough, filterModelListeners, filterZovaAttrs, isSuspense, Fragment, Text, Comment, Static, blockStack, currentBlock, isBlockTreeEnabled, normalizeKey, normalizeRef, createVNode, emptyAppContext, uid, currentInstance, getCurrentInstance, internalSetCurrentInstance, setInSSRSetupState, setCurrentInstance, unsetCurrentInstance, isInSSRComponentSetup, compile, installWithProxy, attrsProxyHandlers, computed, version;
2658
- var init_runtime_core_esm_bundler = __esmMin((() => {
2659
- init_reactivity_esm_bundler();
2660
- init_shared_esm_bundler();
2661
- queue = [];
2662
- flushIndex = -1;
2663
- pendingPostFlushCbs = [];
2664
- activePostFlushCbs = null;
2665
- postFlushIndex = 0;
2666
- resolvedPromise = /* @__PURE__ */ Promise.resolve();
2667
- currentFlushPromise = null;
2668
- getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
2669
- currentRenderingInstance = null;
2670
- currentScopeId = null;
2671
- TeleportEndKey = Symbol("_vte");
2672
- isTeleport = (type) => type.__isTeleport;
2673
- leaveCbKey = Symbol("_leaveCb");
2674
- enterCbKey = Symbol("_enterCb");
2675
- TransitionHookValidator = [Function, Array];
2676
- BaseTransitionPropsValidators = {
2677
- mode: String,
2678
- appear: Boolean,
2679
- persisted: Boolean,
2680
- onBeforeEnter: TransitionHookValidator,
2681
- onEnter: TransitionHookValidator,
2682
- onAfterEnter: TransitionHookValidator,
2683
- onEnterCancelled: TransitionHookValidator,
2684
- onBeforeLeave: TransitionHookValidator,
2685
- onLeave: TransitionHookValidator,
2686
- onAfterLeave: TransitionHookValidator,
2687
- onLeaveCancelled: TransitionHookValidator,
2688
- onBeforeAppear: TransitionHookValidator,
2689
- onAppear: TransitionHookValidator,
2690
- onAfterAppear: TransitionHookValidator,
2691
- onAppearCancelled: TransitionHookValidator
2692
- };
2693
- recursiveGetSubtree = (instance) => {
2694
- const subTree = instance.subTree;
2695
- return subTree.component ? recursiveGetSubtree(subTree.component) : subTree;
2696
- };
2697
- BaseTransitionImpl = {
2698
- name: `BaseTransition`,
2699
- props: BaseTransitionPropsValidators,
2700
- setup(props, { slots }) {
2701
- const instance = getCurrentInstance();
2702
- const state = useTransitionState();
2703
- return () => {
2704
- const children = slots.default && getTransitionRawChildren(slots.default(), true);
2705
- if (!children || !children.length) return;
2706
- const child = findNonCommentChild(children);
2707
- const rawProps = toRaw(props);
2708
- const { mode } = rawProps;
2709
- if (state.isLeaving) return emptyPlaceholder(child);
2710
- const innerChild = getInnerChild$1(child);
2711
- if (!innerChild) return emptyPlaceholder(child);
2712
- let enterHooks = resolveTransitionHooks(innerChild, rawProps, state, instance, (hooks) => enterHooks = hooks);
2713
- if (innerChild.type !== Comment) setTransitionHooks(innerChild, enterHooks);
2714
- let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);
2715
- if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
2716
- let leavingHooks = resolveTransitionHooks(oldInnerChild, rawProps, state, instance);
2717
- setTransitionHooks(oldInnerChild, leavingHooks);
2718
- if (mode === "out-in" && innerChild.type !== Comment) {
2719
- state.isLeaving = true;
2720
- leavingHooks.afterLeave = () => {
2721
- state.isLeaving = false;
2722
- if (!(instance.job.flags & 8)) instance.update();
2723
- delete leavingHooks.afterLeave;
2724
- oldInnerChild = void 0;
2725
- };
2726
- return emptyPlaceholder(child);
2727
- } else if (mode === "in-out" && innerChild.type !== Comment) leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {
2728
- const leavingVNodesCache = getLeavingNodesForType(state, oldInnerChild);
2729
- leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;
2730
- el[leaveCbKey] = () => {
2731
- earlyRemove();
2732
- el[leaveCbKey] = void 0;
2733
- delete enterHooks.delayedLeave;
2734
- oldInnerChild = void 0;
2735
- };
2736
- enterHooks.delayedLeave = () => {
2737
- delayedLeave();
2738
- delete enterHooks.delayedLeave;
2739
- oldInnerChild = void 0;
2740
- };
2741
- };
2742
- else oldInnerChild = void 0;
2743
- } else if (oldInnerChild) oldInnerChild = void 0;
2744
- return child;
2745
- };
2746
- }
2747
- };
2748
- BaseTransition = BaseTransitionImpl;
2749
- isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
2750
- KeepAlive = {
2751
- name: `KeepAlive`,
2752
- __isKeepAlive: true,
2753
- props: {
2754
- include: [
2755
- String,
2756
- RegExp,
2757
- Array
2758
- ],
2759
- exclude: [
2760
- String,
2761
- RegExp,
2762
- Array
2763
- ],
2764
- max: [String, Number]
2765
- },
2766
- setup(props, { slots }) {
2767
- const instance = getCurrentInstance();
2768
- const sharedContext = instance.ctx;
2769
- if (!sharedContext.renderer) return () => {
2770
- const children = slots.default && slots.default();
2771
- return children && children.length === 1 ? children[0] : children;
2772
- };
2773
- const cache = /* @__PURE__ */ new Map();
2774
- const keys = /* @__PURE__ */ new Set();
2775
- let current = null;
2776
- const parentSuspense = instance.suspense;
2777
- const { renderer: { p: patch, m: move, um: _unmount, o: { createElement } } } = sharedContext;
2778
- const storageContainer = createElement("div");
2779
- sharedContext.activate = (vnode, container, anchor, namespace, optimized) => {
2780
- const instance2 = vnode.component;
2781
- move(vnode, container, anchor, 0, parentSuspense);
2782
- patch(instance2.vnode, vnode, container, anchor, instance2, parentSuspense, namespace, vnode.slotScopeIds, optimized);
2783
- queuePostRenderEffect(() => {
2784
- instance2.isDeactivated = false;
2785
- if (instance2.a) invokeArrayFns(instance2.a);
2786
- const vnodeHook = vnode.props && vnode.props.onVnodeMounted;
2787
- if (vnodeHook) invokeVNodeHook(vnodeHook, instance2.parent, vnode);
2788
- }, parentSuspense);
2789
- };
2790
- sharedContext.deactivate = (vnode) => {
2791
- const instance2 = vnode.component;
2792
- invalidateMount(instance2.m);
2793
- invalidateMount(instance2.a);
2794
- move(vnode, storageContainer, null, 1, parentSuspense);
2795
- queuePostRenderEffect(() => {
2796
- if (instance2.da) invokeArrayFns(instance2.da);
2797
- const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted;
2798
- if (vnodeHook) invokeVNodeHook(vnodeHook, instance2.parent, vnode);
2799
- instance2.isDeactivated = true;
2800
- }, parentSuspense);
2801
- };
2802
- function unmount(vnode) {
2803
- resetShapeFlag(vnode);
2804
- _unmount(vnode, instance, parentSuspense, true);
2805
- }
2806
- function pruneCache(filter) {
2807
- cache.forEach((vnode, key) => {
2808
- const name = vnode.key;
2809
- if (name && !filter(name)) pruneCacheEntry(key);
2810
- });
2811
- }
2812
- function pruneCacheEntry(key) {
2813
- const cached = cache.get(key);
2814
- if (cached && (!current || !isSameVNodeType(cached, current))) unmount(cached);
2815
- else if (current) resetShapeFlag(current);
2816
- cache.delete(key);
2817
- keys.delete(key);
2818
- }
2819
- watch(() => [props.include, props.exclude], ([include, exclude]) => {
2820
- include && pruneCache((name) => matches(include, name));
2821
- exclude && pruneCache((name) => !matches(exclude, name));
2822
- }, {
2823
- flush: "post",
2824
- deep: true
2825
- });
2826
- let pendingCacheKey = null;
2827
- const cacheSubtree = () => {
2828
- if (pendingCacheKey != null) if (isSuspense(instance.subTree.type)) queuePostRenderEffect(() => {
2829
- cache.set(pendingCacheKey, getInnerChild(instance.subTree));
2830
- }, instance.subTree.suspense);
2831
- else cache.set(pendingCacheKey, getInnerChild(instance.subTree));
2832
- };
2833
- onMounted(cacheSubtree);
2834
- onUpdated(cacheSubtree);
2835
- onBeforeUnmount(() => {
2836
- cache.forEach((cached) => {
2837
- const { subTree, suspense } = instance;
2838
- const vnode = getInnerChild(subTree);
2839
- if (cached.type === vnode.type && cached.key === vnode.key) {
2840
- resetShapeFlag(vnode);
2841
- const da = vnode.component.da;
2842
- da && queuePostRenderEffect(da, suspense);
2843
- return;
2844
- }
2845
- unmount(cached);
2846
- });
2847
- });
2848
- return () => {
2849
- pendingCacheKey = null;
2850
- if (!slots.default) return current = null;
2851
- const children = slots.default();
2852
- const rawVNode = children[0];
2853
- if (children.length > 1) {
2854
- current = null;
2855
- return children;
2856
- } else if (!isVNode(rawVNode) || !(rawVNode.shapeFlag & 4) && !(rawVNode.shapeFlag & 128)) {
2857
- current = null;
2858
- return rawVNode;
2859
- }
2860
- let vnode = getInnerChild(rawVNode);
2861
- if (vnode.type === Comment) {
2862
- current = null;
2863
- return vnode;
2864
- }
2865
- const comp = vnode.type;
2866
- const name = vnode.key;
2867
- const { include, exclude, max } = props;
2868
- if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
2869
- vnode.shapeFlag &= -257;
2870
- current = vnode;
2871
- return rawVNode;
2872
- }
2873
- const key = vnode.key == null ? comp : vnode.key;
2874
- const cachedVNode = cache.get(key);
2875
- if (vnode.el) {
2876
- vnode = cloneVNode(vnode);
2877
- if (rawVNode.shapeFlag & 128) rawVNode.ssContent = vnode;
2878
- }
2879
- pendingCacheKey = key;
2880
- if (cachedVNode) {
2881
- vnode.el = cachedVNode.el;
2882
- vnode.component = cachedVNode.component;
2883
- if (vnode.component.zovaHostProviders !== vnode.zovaHostProviders) {
2884
- vnode.component.zovaHostProviders = vnode.zovaHostProviders;
2885
- _updateZovaHostProviders$1(vnode.component, vnode.zovaHostProviders);
2886
- }
2887
- if (vnode.transition) setTransitionHooks(vnode, vnode.transition);
2888
- vnode.shapeFlag |= 512;
2889
- keys.delete(key);
2890
- keys.add(key);
2891
- } else {
2892
- keys.add(key);
2893
- if (max && keys.size > parseInt(max, 10)) pruneCacheEntry(keys.values().next().value);
2894
- }
2895
- vnode.shapeFlag |= 256;
2896
- current = vnode;
2897
- return isSuspense(rawVNode.type) ? rawVNode : vnode;
2898
- };
2899
- }
2900
- };
2901
- createHook = (lifecycle) => (hook, target = currentInstance) => {
2902
- if (!isInSSRComponentSetup || lifecycle === "sp") injectHook(lifecycle, (...args) => hook(...args), target);
2903
- if (lifecycle === "m" && target && target.isMounted) hook();
2904
- };
2905
- onBeforeMount = createHook("bm");
2906
- onMounted = createHook("m");
2907
- onBeforeUpdate = createHook("bu");
2908
- onUpdated = createHook("u");
2909
- onBeforeUnmount = createHook("bum");
2910
- onUnmounted = createHook("um");
2911
- onServerPrefetch = createHook("sp");
2912
- onRenderTriggered = createHook("rtg");
2913
- onRenderTracked = createHook("rtc");
2914
- NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
2915
- hasLoggedMismatchError = false;
2916
- logMismatchError = () => {
2917
- if (hasLoggedMismatchError) return;
2918
- console.error("Hydration completed but contains mismatches.");
2919
- hasLoggedMismatchError = true;
2920
- };
2921
- isSVGContainer = (container) => container.namespaceURI.includes("svg") && container.tagName !== "foreignObject";
2922
- isMathMLContainer = (container) => container.namespaceURI.includes("MathML");
2923
- getContainerType = (container) => {
2924
- if (container.nodeType !== 1) return void 0;
2925
- if (isSVGContainer(container)) return "svg";
2926
- if (isMathMLContainer(container)) return "mathml";
2927
- };
2928
- isComment = (node) => node.nodeType === 8;
2929
- allowMismatchAttr = "data-allow-mismatch";
2930
- MismatchTypeString = {
2931
- [0]: "text",
2932
- [1]: "children",
2933
- [2]: "class",
2934
- [3]: "style",
2935
- [4]: "attribute"
2936
- };
2937
- getGlobalThis().requestIdleCallback;
2938
- getGlobalThis().cancelIdleCallback;
2939
- isAsyncWrapper = (i) => !!i.type.__asyncLoader;
2940
- getPublicInstance = (i) => {
2941
- if (!i) return null;
2942
- if (isStatefulComponent(i)) return getComponentPublicInstance(i);
2943
- return getPublicInstance(i.parent);
2944
- };
2945
- publicPropertiesMap = /* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), {
2946
- $: (i) => i,
2947
- $el: (i) => i.vnode.el,
2948
- $data: (i) => i.data,
2949
- $props: (i) => i.props,
2950
- $attrs: (i) => i.attrs,
2951
- $slots: (i) => i.slots,
2952
- $refs: (i) => i.refs,
2953
- $parent: (i) => getPublicInstance(i.parent),
2954
- $root: (i) => getPublicInstance(i.root),
2955
- $host: (i) => i.ce,
2956
- $emit: (i) => i.emit,
2957
- $options: (i) => resolveMergedOptions(i),
2958
- $forceUpdate: (i) => i.f || (i.f = () => {
2959
- queueJob(i.update);
2960
- }),
2961
- $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)),
2962
- $watch: (i) => instanceWatch.bind(i)
2963
- });
2964
- hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key);
2965
- PublicInstanceProxyHandlers = {
2966
- get({ _: instance }, key) {
2967
- if (key === "__v_skip") return true;
2968
- const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
2969
- let normalizedProps;
2970
- if (key[0] !== "$") {
2971
- const n = accessCache[key];
2972
- if (n !== void 0) switch (n) {
2973
- case 1: return setupState[key];
2974
- case 2: return data[key];
2975
- case 4: return ctx[key];
2976
- case 3: return props[key];
2977
- }
2978
- else if (hasSetupBinding(setupState, key)) {
2979
- accessCache[key] = 1;
2980
- return setupState[key];
2981
- } else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
2982
- accessCache[key] = 2;
2983
- return data[key];
2984
- } else if ((normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key)) {
2985
- accessCache[key] = 3;
2986
- return props[key];
2987
- } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {
2988
- accessCache[key] = 4;
2989
- return ctx[key];
2990
- } else if (shouldCacheAccess) accessCache[key] = 0;
2991
- }
2992
- const publicGetter = publicPropertiesMap[key];
2993
- let cssModule, globalProperties;
2994
- if (publicGetter) {
2995
- if (key === "$attrs") track(instance.attrs, "get", "");
2996
- return publicGetter(instance);
2997
- } else if ((cssModule = type.__cssModules) && (cssModule = cssModule[key])) return cssModule;
2998
- else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {
2999
- accessCache[key] = 4;
3000
- return ctx[key];
3001
- } else if (globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key)) return globalProperties[key];
3002
- },
3003
- set({ _: instance }, key, value) {
3004
- const { data, setupState, ctx } = instance;
3005
- if (hasSetupBinding(setupState, key)) {
3006
- setupState[key] = value;
3007
- return true;
3008
- } else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
3009
- data[key] = value;
3010
- return true;
3011
- } else if (hasOwn(instance.props, key)) return false;
3012
- if (key[0] === "$" && key.slice(1) in instance) return false;
3013
- else ctx[key] = value;
3014
- return true;
3015
- },
3016
- has({ _: { data, setupState, accessCache, ctx, appContext, propsOptions } }, key) {
3017
- let normalizedProps;
3018
- return !!accessCache[key] || data !== EMPTY_OBJ && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key);
3019
- },
3020
- defineProperty(target, key, descriptor) {
3021
- if (descriptor.get != null) target._.accessCache[key] = 0;
3022
- else if (hasOwn(descriptor, "value")) this.set(target, key, descriptor.value, null);
3023
- return Reflect.defineProperty(target, key, descriptor);
3024
- }
3025
- };
3026
- shouldCacheAccess = true;
3027
- internalOptionMergeStrats = {
3028
- data: mergeDataFn,
3029
- props: mergeEmitsOrPropsOptions,
3030
- emits: mergeEmitsOrPropsOptions,
3031
- methods: mergeObjectOptions,
3032
- computed: mergeObjectOptions,
3033
- beforeCreate: mergeAsArray,
3034
- created: mergeAsArray,
3035
- beforeMount: mergeAsArray,
3036
- mounted: mergeAsArray,
3037
- beforeUpdate: mergeAsArray,
3038
- updated: mergeAsArray,
3039
- beforeDestroy: mergeAsArray,
3040
- beforeUnmount: mergeAsArray,
3041
- destroyed: mergeAsArray,
3042
- unmounted: mergeAsArray,
3043
- activated: mergeAsArray,
3044
- deactivated: mergeAsArray,
3045
- errorCaptured: mergeAsArray,
3046
- serverPrefetch: mergeAsArray,
3047
- components: mergeObjectOptions,
3048
- directives: mergeObjectOptions,
3049
- watch: mergeWatchOptions,
3050
- provide: mergeDataFn,
3051
- inject: mergeInject
3052
- };
3053
- uid$1 = 0;
3054
- currentApp = null;
3055
- internalObjectProto = {};
3056
- createInternalObject = () => Object.create(internalObjectProto);
3057
- isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
3058
- mixinPropsCache = /* @__PURE__ */ new WeakMap();
3059
- isInternalKey = (key) => key[0] === "_" || key === "$stable";
3060
- normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
3061
- normalizeSlot = (key, rawSlot, ctx) => {
3062
- if (rawSlot._n) return rawSlot;
3063
- const normalized = withCtx((...args) => {
3064
- return normalizeSlotValue(rawSlot(...args));
3065
- }, ctx);
3066
- normalized._c = false;
3067
- return normalized;
3068
- };
3069
- normalizeObjectSlots = (rawSlots, slots, instance) => {
3070
- const ctx = rawSlots._ctx;
3071
- for (const key in rawSlots) {
3072
- if (isInternalKey(key)) continue;
3073
- const value = rawSlots[key];
3074
- if (isFunction(value)) slots[key] = normalizeSlot(key, value, ctx);
3075
- else if (value != null) {
3076
- const normalized = normalizeSlotValue(value);
3077
- slots[key] = () => normalized;
3078
- }
3079
- }
3080
- };
3081
- normalizeVNodeSlots = (instance, children) => {
3082
- const normalized = normalizeSlotValue(children);
3083
- instance.slots.default = () => normalized;
3084
- };
3085
- assignSlots = (slots, children, optimized) => {
3086
- for (const key in children) if (optimized || key !== "_") slots[key] = children[key];
3087
- };
3088
- initSlots = (instance, children, optimized) => {
3089
- const slots = instance.slots = createInternalObject();
3090
- if (instance.vnode.shapeFlag & 32) {
3091
- const type = children._;
3092
- if (type) {
3093
- assignSlots(slots, children, optimized);
3094
- if (optimized) def(slots, "_", type, true);
3095
- } else normalizeObjectSlots(children, slots);
3096
- } else if (children) normalizeVNodeSlots(instance, children);
3097
- };
3098
- updateSlots = (instance, children, optimized) => {
3099
- const { vnode, slots } = instance;
3100
- let needDeletionCheck = true;
3101
- let deletionComparisonTarget = EMPTY_OBJ;
3102
- if (vnode.shapeFlag & 32) {
3103
- const type = children._;
3104
- if (type) if (optimized && type === 1) needDeletionCheck = false;
3105
- else assignSlots(slots, children, optimized);
3106
- else {
3107
- needDeletionCheck = !children.$stable;
3108
- normalizeObjectSlots(children, slots);
3109
- }
3110
- deletionComparisonTarget = children;
3111
- } else if (children) {
3112
- normalizeVNodeSlots(instance, children);
3113
- deletionComparisonTarget = { default: 1 };
3114
- }
3115
- if (needDeletionCheck) {
3116
- for (const key in slots) if (!isInternalKey(key) && deletionComparisonTarget[key] == null) delete slots[key];
3117
- }
3118
- };
3119
- queuePostRenderEffect = queueEffectWithSuspense;
3120
- ssrContextKey = Symbol.for("v-scx");
3121
- useSSRContext = () => {
3122
- {
3123
- const ctx = inject(ssrContextKey);
3124
- if (!ctx) {}
3125
- return ctx;
3126
- }
3127
- };
3128
- getModelModifiers = (props, modelName) => {
3129
- return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`];
3130
- };
3131
- getFunctionalFallthrough = (attrs) => {
3132
- let res;
3133
- for (const key in attrs) if (key === "class" || key === "style" || isOn(key)) (res || (res = {}))[key] = attrs[key];
3134
- return res;
3135
- };
3136
- filterModelListeners = (attrs, props) => {
3137
- const res = {};
3138
- for (const key in attrs) if (!isModelListener(key) || !(key.slice(9) in props)) res[key] = attrs[key];
3139
- return res;
3140
- };
3141
- filterZovaAttrs = (attrs, inheritAttrs = true) => {
3142
- const res = {};
3143
- if (!inheritAttrs) return res;
3144
- for (const key in attrs) if (inheritAttrs) {
3145
- if (inheritAttrs === true) if (key.startsWith("nativeOn")) {
3146
- const key2 = "on" + key.slice(8);
3147
- res[key2] = attrs[key];
3148
- } else res[key] = attrs[key];
3149
- else if (inheritAttrs === "auto") {
3150
- if (["class", "style"].includes(key)) res[key] = attrs[key];
3151
- else if (key.startsWith("nativeOn")) {
3152
- const key2 = "on" + key.slice(8);
3153
- res[key2] = attrs[key];
3154
- }
3155
- } else if (inheritAttrs.includes(key)) res[key] = attrs[key];
3156
- } else if (!["slots", "controllerRef"].includes(key)) res[key] = attrs[key];
3157
- return res;
3158
- };
3159
- isSuspense = (type) => type.__isSuspense;
3160
- Fragment = Symbol.for("v-fgt");
3161
- Text = Symbol.for("v-txt");
3162
- Comment = Symbol.for("v-cmt");
3163
- Static = Symbol.for("v-stc");
3164
- blockStack = [];
3165
- currentBlock = null;
3166
- isBlockTreeEnabled = 1;
3167
- normalizeKey = ({ key }) => key != null ? key : null;
3168
- normalizeRef = ({ ref, ref_key, ref_for }) => {
3169
- if (typeof ref === "number") ref = "" + ref;
3170
- return ref != null ? isString(ref) || isRef(ref) || isFunction(ref) ? {
3171
- i: currentRenderingInstance,
3172
- r: ref,
3173
- k: ref_key,
3174
- f: !!ref_for
3175
- } : ref : null;
3176
- };
3177
- createVNode = _createVNode;
3178
- emptyAppContext = createAppContext();
3179
- uid = 0;
3180
- currentInstance = null;
3181
- getCurrentInstance = () => currentInstance || currentRenderingInstance;
3182
- {
3183
- const g = getGlobalThis();
3184
- const registerGlobalSetter = (key, setter) => {
3185
- let setters;
3186
- if (!(setters = g[key])) setters = g[key] = [];
3187
- setters.push(setter);
3188
- return (v) => {
3189
- if (setters.length > 1) setters.forEach((set) => set(v));
3190
- else setters[0](v);
3191
- };
3192
- };
3193
- internalSetCurrentInstance = registerGlobalSetter(`__VUE_INSTANCE_SETTERS__`, (v) => currentInstance = v);
3194
- setInSSRSetupState = registerGlobalSetter(`__VUE_SSR_SETTERS__`, (v) => isInSSRComponentSetup = v);
3195
- }
3196
- setCurrentInstance = (instance) => {
3197
- const prev = currentInstance;
3198
- internalSetCurrentInstance(instance);
3199
- instance.scope.on();
3200
- return () => {
3201
- if (prev) prev.scope.on();
3202
- else instance.scope.off();
3203
- internalSetCurrentInstance(prev);
3204
- };
3205
- };
3206
- unsetCurrentInstance = () => {
3207
- currentInstance && currentInstance.scope.off();
3208
- internalSetCurrentInstance(null);
3209
- };
3210
- isInSSRComponentSetup = false;
3211
- attrsProxyHandlers = { get(target, key) {
3212
- track(target, "get", "");
3213
- return target[key];
3214
- } };
3215
- computed = (getterOrOptions, debugOptions) => {
3216
- return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
3217
- };
3218
- version = "3.5.13";
3219
- }));
3220
- //#endregion
3221
- export { watchEffect as A, onMounted as C, setCurrentInstance as D, queuePostFlushCb as E, watchSyncEffect as M, withDirectives as N, useSlots as O, onDeactivated as S, provide as T, isVNode as _, callWithAsyncErrorHandling as a, onActivated as b, createTextVNode as c, defineComponent as d, getCurrentInstance as f, inject as g, init_runtime_core_esm_bundler as h, KeepAlive as i, watchPostEffect as j, watch as k, createVNode as l, hasInjectionContext as m, BaseTransitionPropsValidators as n, computed as o, h as p, Fragment as r, createHydrationRenderer as s, BaseTransition as t, defineAsyncComponent as u, mergeProps as v, onUnmounted as w, onBeforeUnmount as x, nextTick as y };