@sap/cds-dk 9.9.3 → 10.0.4

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 (2690) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/bin/add.js +1 -1
  3. package/bin/cds.js +4 -1
  4. package/bin/data-products/import.js +1 -1
  5. package/bin/data-products/{index.js → load.js} +0 -3
  6. package/bin/debug.js +19 -0
  7. package/bin/export.js +21 -15
  8. package/bin/login.js +4 -8
  9. package/bin/logout.js +4 -9
  10. package/bin/pull.js +4 -8
  11. package/bin/push.js +8 -23
  12. package/bin/up.js +50 -1
  13. package/bin/upgrade-tenant.js +78 -0
  14. package/bin/upgrade.js +55 -53
  15. package/bin/util/log.js +1 -2
  16. package/bin/version.js +44 -60
  17. package/lib/bind/shared.js +5 -1
  18. package/lib/build/index.js +3 -3
  19. package/lib/build/plugins/fiori/index.js +5 -5
  20. package/lib/build/plugins/hana/index.js +13 -12
  21. package/lib/build/plugins/hana/template/package.json +1 -1
  22. package/lib/build/plugins/internal.js +4 -3
  23. package/lib/build/plugins/mtx-sidecar/index.js +8 -25
  24. package/lib/build/plugins/nodejs/index.js +4 -2
  25. package/lib/build/plugins/plugin.js +4 -10
  26. package/lib/build/util.js +0 -41
  27. package/lib/import/openapi/importOpenAPI.js +15 -3
  28. package/lib/index.js +1 -1
  29. package/lib/init/bas.js +2 -3
  30. package/lib/init/constants.js +8 -7
  31. package/lib/init/index.js +1 -17
  32. package/lib/init/projectReader.js +14 -5
  33. package/lib/init/registries/mta.js +12 -0
  34. package/lib/init/template/ai/files/mta.yaml.hbs +14 -0
  35. package/lib/init/template/ai/files/package.json.hbs +25 -0
  36. package/lib/init/template/ai/files/values.yaml +7 -0
  37. package/lib/init/template/ai/index.js +48 -0
  38. package/lib/init/template/ams/files/Chart.yaml.hbs +2 -2
  39. package/lib/init/template/ams/files/containerize.yaml.hbs +5 -5
  40. package/lib/init/template/ams/files/mta.yaml.hbs +1 -1
  41. package/lib/init/template/ams/files/package.json.hbs +3 -0
  42. package/lib/init/template/ams/index.js +2 -2
  43. package/lib/init/template/app-frontend/files/app-package.json.hbs +2 -2
  44. package/lib/init/template/app-frontend/files/containerize.yaml.hbs +13 -0
  45. package/lib/init/template/app-frontend/files/index.html.hbs +1 -1
  46. package/lib/init/template/app-frontend/files/mta.yaml.hbs +1 -1
  47. package/lib/init/template/app-frontend/files/ui5.yaml.hbs +4 -4
  48. package/lib/init/template/app-frontend/files/values.yaml.hbs +21 -9
  49. package/lib/init/template/app-frontend/index.js +37 -29
  50. package/lib/init/template/application-logging/files/mta.yaml.hbs +1 -1
  51. package/lib/init/template/application-logging/index.js +3 -3
  52. package/lib/init/template/approuter/files/containerize.yaml.hbs +4 -4
  53. package/lib/init/template/approuter/files/mta.yaml.hbs +1 -1
  54. package/lib/init/template/approuter/index.js +5 -5
  55. package/lib/init/template/attachments/files/mta.yaml.hbs +1 -1
  56. package/lib/init/template/attachments/files/values.yaml +1 -1
  57. package/lib/init/template/attachments/index.js +4 -4
  58. package/lib/init/template/audit-logging/files/mta.yaml.hbs +1 -1
  59. package/lib/init/template/audit-logging/index.js +4 -4
  60. package/lib/init/template/cf-manifest/files/manifest.yml.hbs +3 -3
  61. package/lib/init/template/cjs/files/package.json.hbs +3 -0
  62. package/lib/init/template/{esm → cjs}/index.js +2 -2
  63. package/lib/init/template/cloud-logging/files/mta.yaml.hbs +1 -1
  64. package/lib/init/template/cloud-logging/index.js +3 -3
  65. package/lib/init/template/completion/completionSetup.js +1 -1
  66. package/lib/init/template/connectivity/files/mta.yaml.hbs +1 -1
  67. package/lib/init/template/connectivity/index.js +4 -4
  68. package/lib/init/template/data/as-json.js +0 -10
  69. package/lib/init/template/destination/files/mta.yaml.hbs +1 -1
  70. package/lib/init/template/destination/index.js +4 -4
  71. package/lib/init/template/dynatrace/files/mta.yaml.hbs +1 -1
  72. package/lib/init/template/dynatrace/index.js +3 -3
  73. package/lib/init/template/enterprise-messaging/files/mta.yaml.hbs +1 -1
  74. package/lib/init/template/enterprise-messaging/index.js +39 -23
  75. package/lib/init/template/enterprise-messaging-shared/files/mta.yaml.hbs +1 -1
  76. package/lib/init/template/enterprise-messaging-shared/index.js +22 -44
  77. package/lib/init/template/event-mesh/files/event-mesh.json.hbs +31 -0
  78. package/lib/init/template/event-mesh/files/mta.yaml.hbs +22 -0
  79. package/lib/init/template/event-mesh/files/package.json.hbs +20 -0
  80. package/lib/init/template/event-mesh/files/values.yaml +7 -0
  81. package/lib/init/template/event-mesh/files/xs-security.json.hbs +19 -0
  82. package/lib/init/template/event-mesh/index.js +16 -0
  83. package/lib/init/template/event-mesh-shared/files/event-mesh.json.hbs +31 -0
  84. package/lib/init/template/event-mesh-shared/files/mta.yaml.hbs +15 -0
  85. package/lib/init/template/event-mesh-shared/files/package.json.hbs +23 -0
  86. package/lib/init/template/event-mesh-shared/files/values.yaml +7 -0
  87. package/lib/init/template/event-mesh-shared/index.js +16 -0
  88. package/lib/init/template/extensibility/files/package.json.hbs +1 -1
  89. package/lib/init/template/github-actions/files/workflows/cf.yaml.hbs +2 -2
  90. package/lib/init/template/github-actions/files/workflows/test.yaml.hbs +2 -2
  91. package/lib/init/template/hana/files/containerize.yaml.hbs +5 -5
  92. package/lib/init/template/hana/files/mta.yaml.hbs +1 -1
  93. package/lib/init/template/hana/files/package.json.hbs +1 -1
  94. package/lib/init/template/hana/files/src/.hdiconfig +1 -1
  95. package/lib/init/template/hana/index.js +5 -8
  96. package/lib/init/template/handler/files/extension/handler.xs.hbs +1 -1
  97. package/lib/init/template/handler/index.js +1 -19
  98. package/lib/init/template/html5-repo/files/app-package.json.hbs +2 -2
  99. package/lib/init/template/html5-repo/files/containerize.yaml.hbs +5 -7
  100. package/lib/init/template/html5-repo/files/mta.yaml.hbs +4 -4
  101. package/lib/init/template/html5-repo/files/ui5.yaml.hbs +4 -4
  102. package/lib/init/template/html5-repo/files/values.yaml.hbs +9 -0
  103. package/lib/init/template/html5-repo/index.js +23 -22
  104. package/lib/init/template/ias/files/Chart.yaml.hbs +2 -2
  105. package/lib/init/template/ias/files/mta.yaml.hbs +1 -1
  106. package/lib/init/template/ias/index.js +5 -5
  107. package/lib/init/template/initial/index.js +2 -10
  108. package/lib/init/template/kafka/files/mta.yaml.hbs +1 -1
  109. package/lib/init/template/kafka/files/values.yaml +1 -1
  110. package/lib/init/template/kafka/index.js +4 -4
  111. package/lib/init/template/kyma/files/containerize.yaml.hbs +11 -11
  112. package/lib/init/template/kyma/files/values.schema.json +1 -1
  113. package/lib/init/template/kyma/index.js +10 -10
  114. package/lib/init/template/lint/files/package.json +1 -1
  115. package/lib/init/template/malware-scanner/files/mta.yaml.hbs +2 -2
  116. package/lib/init/template/malware-scanner/files/package.json.hbs +1 -1
  117. package/lib/init/template/malware-scanner/files/values.yaml +1 -1
  118. package/lib/init/template/malware-scanner/index.js +4 -4
  119. package/lib/init/template/mta/files/mta.yaml.hbs +1 -1
  120. package/lib/init/template/mta/files/package.json +1 -1
  121. package/lib/init/template/multitenancy/files/containerize.yaml.hbs +5 -5
  122. package/lib/init/template/multitenancy/files/mta.yaml.hbs +1 -1
  123. package/lib/init/template/multitenancy/files/package.json.hbs +1 -1
  124. package/lib/init/template/multitenancy/files/package.sidecar.json.hbs +5 -5
  125. package/lib/init/template/multitenancy/index.js +10 -11
  126. package/lib/init/template/nodejs/files/package.json.hbs +3 -2
  127. package/lib/init/template/portal/files/containerize.yaml.hbs +4 -4
  128. package/lib/init/template/portal/files/mta.yaml.hbs +1 -1
  129. package/lib/init/template/portal/files/values.yaml.hbs +3 -32
  130. package/lib/init/template/portal/index.js +5 -13
  131. package/lib/init/template/postgres/files/containerize.yaml.hbs +4 -4
  132. package/lib/init/template/postgres/files/mta.yml.hbs +1 -1
  133. package/lib/init/template/postgres/files/package.json.hbs +1 -1
  134. package/lib/init/template/postgres/index.js +4 -4
  135. package/lib/init/template/react/files/{index.html → index.html.hbs} +1 -1
  136. package/lib/init/template/react/files/{vite.config.js → vite.config.js.hbs} +2 -1
  137. package/lib/init/template/react/index.js +15 -7
  138. package/lib/init/template/redis/files/mta.yaml.hbs +1 -1
  139. package/lib/init/template/redis/index.js +4 -4
  140. package/lib/init/template/sample/files/app/admin-books/webapp/manifest.json +2 -1
  141. package/lib/init/template/side-by-side-extensibility/files/mta.yaml.hbs +1 -1
  142. package/lib/init/template/sqlite/files/package.json.hbs +2 -2
  143. package/lib/init/template/toggles/files/package.json.hbs +1 -1
  144. package/lib/init/template/typer/files/gitignore +1 -1
  145. package/lib/init/template/typescript/files/package.json +1 -1
  146. package/lib/init/template/vue/files/{index.html → index.html.hbs} +1 -1
  147. package/lib/init/template/vue/files/{vite.config.js → vite.config.js.hbs} +2 -1
  148. package/lib/init/template/vue/index.js +16 -8
  149. package/lib/init/template/workzone-standard/files/mta.yaml.hbs +1 -1
  150. package/lib/init/template/workzone-standard/index.js +3 -3
  151. package/lib/init/template/xsuaa/files/mta.yaml.hbs +1 -1
  152. package/lib/init/template/xsuaa/index.js +3 -3
  153. package/lib/lint/Linter.js +5 -4
  154. package/lib/lint/eslintHelp.json +1 -1
  155. package/lib/mtx/params.js +0 -4
  156. package/lib/mtx/pull.js +1 -1
  157. package/lib/mtx/push.js +4 -3
  158. package/lib/mtx/settings_manager.js +9 -14
  159. package/lib/mtx/tenant_action.js +6 -6
  160. package/lib/mtx/util/question.js +0 -18
  161. package/lib/upgrade/constants.js +102 -0
  162. package/lib/upgrade/context.js +24 -0
  163. package/lib/upgrade/index.js +65 -0
  164. package/lib/upgrade/migrations/cds10/migrations.json +705 -0
  165. package/lib/upgrade/preflight/cds-version.js +61 -0
  166. package/lib/upgrade/preflight/consistency.js +94 -0
  167. package/lib/upgrade/preflight/index.js +49 -0
  168. package/lib/upgrade/preflight/project-type.js +224 -0
  169. package/lib/upgrade/steps/analyze/classification.js +92 -0
  170. package/lib/upgrade/steps/analyze/detector.js +22 -0
  171. package/lib/upgrade/steps/analyze/evaluator.js +91 -0
  172. package/lib/upgrade/steps/analyze/index.js +124 -0
  173. package/lib/upgrade/steps/analyze/reporter.js +339 -0
  174. package/lib/upgrade/steps/analyze/setup.js +71 -0
  175. package/lib/upgrade/steps/analyze/utils/detection.js +63 -0
  176. package/lib/upgrade/steps/analyze/utils/files.js +114 -0
  177. package/lib/upgrade/steps/analyze/utils/grep.js +95 -0
  178. package/lib/upgrade/steps/analyze/utils/yaml.js +58 -0
  179. package/lib/upgrade/steps/install.js +115 -0
  180. package/lib/upgrade/steps/openrewrite.js +293 -0
  181. package/lib/upgrade/steps/removals.js +88 -0
  182. package/lib/upgrade/steps/rewrite.js +167 -0
  183. package/lib/upgrade/steps/verify.js +96 -0
  184. package/lib/upgrade/util/pom.js +46 -0
  185. package/lib/upgrade/util/prompt.js +28 -0
  186. package/lib/upgrade/util/workspaces.js +111 -0
  187. package/lib/util/cf.js +23 -12
  188. package/lib/util/term.js +1 -1
  189. package/lib/watch/vite-watch.js +33 -8
  190. package/node_modules/@cap-js/asyncapi/LICENSE +201 -0
  191. package/node_modules/@cap-js/asyncapi/README.md +46 -0
  192. package/node_modules/@cap-js/asyncapi/index.js +4 -0
  193. package/node_modules/@cap-js/asyncapi/lib/compile/channels.js +18 -0
  194. package/node_modules/@cap-js/asyncapi/lib/compile/components/messageTraits/index.js +89 -0
  195. package/node_modules/@cap-js/asyncapi/lib/compile/components/messages/index.js +179 -0
  196. package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/annotations.js +36 -0
  197. package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/array.js +8 -0
  198. package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/cache.js +16 -0
  199. package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/definition.js +191 -0
  200. package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/enum.js +15 -0
  201. package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/examples.js +10 -0
  202. package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/index.js +14 -0
  203. package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/localized.js +29 -0
  204. package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/primitiveElement.js +41 -0
  205. package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/ref.js +45 -0
  206. package/node_modules/@cap-js/asyncapi/lib/compile/components/schemas/utils.js +108 -0
  207. package/node_modules/@cap-js/asyncapi/lib/compile/index.js +277 -0
  208. package/node_modules/@cap-js/asyncapi/lib/compile/message.js +13 -0
  209. package/node_modules/@cap-js/asyncapi/lib/compile/utils.js +77 -0
  210. package/node_modules/@cap-js/asyncapi/package.json +34 -0
  211. package/node_modules/@cap-js/db-service/CHANGELOG.md +768 -0
  212. package/node_modules/@cap-js/db-service/LICENSE +201 -0
  213. package/node_modules/@cap-js/db-service/README.md +26 -0
  214. package/node_modules/@cap-js/db-service/index.js +19 -0
  215. package/node_modules/@cap-js/db-service/lib/InsertResults.js +122 -0
  216. package/node_modules/@cap-js/db-service/lib/SQLService.js +581 -0
  217. package/node_modules/@cap-js/db-service/lib/common/DatabaseService.js +179 -0
  218. package/node_modules/@cap-js/db-service/lib/common/factory.d.ts +5 -0
  219. package/node_modules/@cap-js/db-service/lib/common/generic-pool.js +310 -0
  220. package/node_modules/@cap-js/db-service/lib/common/session-context.js +46 -0
  221. package/node_modules/@cap-js/db-service/lib/converters.d.ts +24 -0
  222. package/node_modules/@cap-js/db-service/lib/cql-functions.js +464 -0
  223. package/node_modules/@cap-js/db-service/lib/cqn2pql.js +116 -0
  224. package/node_modules/@cap-js/db-service/lib/cqn2sql.js +1612 -0
  225. package/node_modules/@cap-js/db-service/lib/cqn4sql.js +2895 -0
  226. package/node_modules/@cap-js/db-service/lib/deep-queries.js +290 -0
  227. package/node_modules/@cap-js/db-service/lib/fill-in-keys.js +75 -0
  228. package/node_modules/@cap-js/db-service/lib/infer/cqn.d.ts +42 -0
  229. package/node_modules/@cap-js/db-service/lib/infer/index.js +1290 -0
  230. package/node_modules/@cap-js/db-service/lib/infer/join-tree.js +278 -0
  231. package/node_modules/@cap-js/db-service/lib/infer/pseudos.js +24 -0
  232. package/node_modules/@cap-js/db-service/lib/search.js +220 -0
  233. package/node_modules/@cap-js/db-service/lib/utils.js +177 -0
  234. package/node_modules/@cap-js/db-service/package.json +36 -0
  235. package/node_modules/@cap-js/openapi/LICENSE +201 -0
  236. package/node_modules/@cap-js/openapi/README.md +96 -0
  237. package/node_modules/@cap-js/openapi/index.js +5 -0
  238. package/node_modules/@cap-js/openapi/lib/compile/csdl-types.d.ts +546 -0
  239. package/node_modules/@cap-js/openapi/lib/compile/csdl.js +212 -0
  240. package/node_modules/@cap-js/openapi/lib/compile/csdl2openapi.js +2753 -0
  241. package/node_modules/@cap-js/openapi/lib/compile/diagram.js +112 -0
  242. package/node_modules/@cap-js/openapi/lib/compile/index.js +259 -0
  243. package/node_modules/@cap-js/openapi/lib/compile/string-util.js +20 -0
  244. package/node_modules/@cap-js/openapi/lib/compile/types.d.ts +117 -0
  245. package/node_modules/@cap-js/openapi/package.json +44 -0
  246. package/node_modules/@cap-js/sqlite/CHANGELOG.md +404 -0
  247. package/node_modules/@cap-js/sqlite/LICENSE +201 -0
  248. package/node_modules/@cap-js/sqlite/README.md +34 -0
  249. package/node_modules/@cap-js/sqlite/cds-plugin.js +0 -0
  250. package/node_modules/@cap-js/sqlite/index.js +2 -0
  251. package/node_modules/@cap-js/sqlite/lib/SQLiteService.js +324 -0
  252. package/node_modules/@cap-js/sqlite/lib/cql-functions.js +160 -0
  253. package/node_modules/@cap-js/sqlite/lib/node-sqlite.js +36 -0
  254. package/node_modules/@cap-js/sqlite/lib/session.json +3 -0
  255. package/node_modules/@cap-js/sqlite/lib/sql.js.js +99 -0
  256. package/node_modules/@cap-js/sqlite/package.json +68 -0
  257. package/node_modules/@eslint/js/LICENSE +19 -0
  258. package/node_modules/@eslint/js/README.md +103 -0
  259. package/node_modules/@eslint/js/package.json +44 -0
  260. package/node_modules/@eslint/js/src/configs/eslint-all.js +210 -0
  261. package/node_modules/@eslint/js/src/configs/eslint-recommended.js +75 -0
  262. package/node_modules/@eslint/js/src/index.js +23 -0
  263. package/node_modules/@eslint/js/types/index.d.ts +14 -0
  264. package/node_modules/@sap/cds/CHANGELOG.md +810 -0
  265. package/node_modules/@sap/cds/LICENSE +32 -0
  266. package/node_modules/@sap/cds/README.md +13 -0
  267. package/node_modules/@sap/cds/_i18n/i18n.properties +113 -0
  268. package/node_modules/@sap/cds/_i18n/i18n_ar.properties +58 -0
  269. package/node_modules/@sap/cds/_i18n/i18n_bg.properties +58 -0
  270. package/node_modules/@sap/cds/_i18n/i18n_cs.properties +58 -0
  271. package/node_modules/@sap/cds/_i18n/i18n_da.properties +58 -0
  272. package/node_modules/@sap/cds/_i18n/i18n_de.properties +58 -0
  273. package/node_modules/@sap/cds/_i18n/i18n_el.properties +58 -0
  274. package/node_modules/@sap/cds/_i18n/i18n_en.properties +58 -0
  275. package/node_modules/@sap/cds/_i18n/i18n_en_US_saptrc.properties +58 -0
  276. package/node_modules/@sap/cds/_i18n/i18n_es.properties +58 -0
  277. package/node_modules/@sap/cds/_i18n/i18n_es_MX.properties +58 -0
  278. package/node_modules/@sap/cds/_i18n/i18n_fi.properties +58 -0
  279. package/node_modules/@sap/cds/_i18n/i18n_fr.properties +58 -0
  280. package/node_modules/@sap/cds/_i18n/i18n_he.properties +58 -0
  281. package/node_modules/@sap/cds/_i18n/i18n_hr.properties +58 -0
  282. package/node_modules/@sap/cds/_i18n/i18n_hu.properties +58 -0
  283. package/node_modules/@sap/cds/_i18n/i18n_it.properties +58 -0
  284. package/node_modules/@sap/cds/_i18n/i18n_ja.properties +58 -0
  285. package/node_modules/@sap/cds/_i18n/i18n_kk.properties +58 -0
  286. package/node_modules/@sap/cds/_i18n/i18n_ko.properties +58 -0
  287. package/node_modules/@sap/cds/_i18n/i18n_ms.properties +58 -0
  288. package/node_modules/@sap/cds/_i18n/i18n_nl.properties +58 -0
  289. package/node_modules/@sap/cds/_i18n/i18n_no.properties +58 -0
  290. package/node_modules/@sap/cds/_i18n/i18n_pl.properties +58 -0
  291. package/node_modules/@sap/cds/_i18n/i18n_pt.properties +58 -0
  292. package/node_modules/@sap/cds/_i18n/i18n_ro.properties +58 -0
  293. package/node_modules/@sap/cds/_i18n/i18n_ru.properties +58 -0
  294. package/node_modules/@sap/cds/_i18n/i18n_sh.properties +58 -0
  295. package/node_modules/@sap/cds/_i18n/i18n_sk.properties +58 -0
  296. package/node_modules/@sap/cds/_i18n/i18n_sl.properties +58 -0
  297. package/node_modules/@sap/cds/_i18n/i18n_sv.properties +58 -0
  298. package/node_modules/@sap/cds/_i18n/i18n_th.properties +58 -0
  299. package/node_modules/@sap/cds/_i18n/i18n_tr.properties +58 -0
  300. package/node_modules/@sap/cds/_i18n/i18n_uk.properties +58 -0
  301. package/node_modules/@sap/cds/_i18n/i18n_vi.properties +58 -0
  302. package/node_modules/@sap/cds/_i18n/i18n_zh_CN.properties +58 -0
  303. package/node_modules/@sap/cds/_i18n/i18n_zh_TW.properties +58 -0
  304. package/node_modules/@sap/cds/_i18n/messages.properties +196 -0
  305. package/node_modules/@sap/cds/_i18n/messages_ar.properties +103 -0
  306. package/node_modules/@sap/cds/_i18n/messages_bg.properties +103 -0
  307. package/node_modules/@sap/cds/_i18n/messages_cs.properties +103 -0
  308. package/node_modules/@sap/cds/_i18n/messages_da.properties +103 -0
  309. package/node_modules/@sap/cds/_i18n/messages_de.properties +103 -0
  310. package/node_modules/@sap/cds/_i18n/messages_el.properties +103 -0
  311. package/node_modules/@sap/cds/_i18n/messages_en.properties +103 -0
  312. package/node_modules/@sap/cds/_i18n/messages_en_US_saptrc.properties +103 -0
  313. package/node_modules/@sap/cds/_i18n/messages_es.properties +103 -0
  314. package/node_modules/@sap/cds/_i18n/messages_es_MX.properties +103 -0
  315. package/node_modules/@sap/cds/_i18n/messages_fi.properties +103 -0
  316. package/node_modules/@sap/cds/_i18n/messages_fr.properties +103 -0
  317. package/node_modules/@sap/cds/_i18n/messages_he.properties +103 -0
  318. package/node_modules/@sap/cds/_i18n/messages_hr.properties +103 -0
  319. package/node_modules/@sap/cds/_i18n/messages_hu.properties +103 -0
  320. package/node_modules/@sap/cds/_i18n/messages_it.properties +103 -0
  321. package/node_modules/@sap/cds/_i18n/messages_ja.properties +103 -0
  322. package/node_modules/@sap/cds/_i18n/messages_kk.properties +103 -0
  323. package/node_modules/@sap/cds/_i18n/messages_ko.properties +103 -0
  324. package/node_modules/@sap/cds/_i18n/messages_ms.properties +103 -0
  325. package/node_modules/@sap/cds/_i18n/messages_nl.properties +103 -0
  326. package/node_modules/@sap/cds/_i18n/messages_no.properties +103 -0
  327. package/node_modules/@sap/cds/_i18n/messages_pl.properties +103 -0
  328. package/node_modules/@sap/cds/_i18n/messages_pt.properties +103 -0
  329. package/node_modules/@sap/cds/_i18n/messages_ro.properties +103 -0
  330. package/node_modules/@sap/cds/_i18n/messages_ru.properties +103 -0
  331. package/node_modules/@sap/cds/_i18n/messages_sh.properties +103 -0
  332. package/node_modules/@sap/cds/_i18n/messages_sk.properties +103 -0
  333. package/node_modules/@sap/cds/_i18n/messages_sl.properties +103 -0
  334. package/node_modules/@sap/cds/_i18n/messages_sv.properties +103 -0
  335. package/node_modules/@sap/cds/_i18n/messages_th.properties +103 -0
  336. package/node_modules/@sap/cds/_i18n/messages_tr.properties +103 -0
  337. package/node_modules/@sap/cds/_i18n/messages_uk.properties +103 -0
  338. package/node_modules/@sap/cds/_i18n/messages_vi.properties +103 -0
  339. package/node_modules/@sap/cds/_i18n/messages_zh_CN.properties +103 -0
  340. package/node_modules/@sap/cds/_i18n/messages_zh_TW.properties +103 -0
  341. package/node_modules/@sap/cds/app/etc/livereload.js +9 -0
  342. package/node_modules/@sap/cds/app/favicon.ico +0 -0
  343. package/node_modules/@sap/cds/app/index.css +132 -0
  344. package/node_modules/@sap/cds/app/index.html +32 -0
  345. package/node_modules/@sap/cds/app/index.js +100 -0
  346. package/node_modules/@sap/cds/bin/args.js +34 -0
  347. package/node_modules/@sap/cds/bin/deploy.js +29 -0
  348. package/node_modules/@sap/cds/bin/serve.js +398 -0
  349. package/node_modules/@sap/cds/common.cds +216 -0
  350. package/node_modules/@sap/cds/eslint.config.mjs +153 -0
  351. package/node_modules/@sap/cds/lib/compile/cds-compile.js +63 -0
  352. package/node_modules/@sap/cds/lib/compile/cdsc.js +166 -0
  353. package/node_modules/@sap/cds/lib/compile/etc/_localized.js +75 -0
  354. package/node_modules/@sap/cds/lib/compile/etc/csv.js +87 -0
  355. package/node_modules/@sap/cds/lib/compile/etc/properties.js +44 -0
  356. package/node_modules/@sap/cds/lib/compile/etc/yaml.js +9 -0
  357. package/node_modules/@sap/cds/lib/compile/extend.js +39 -0
  358. package/node_modules/@sap/cds/lib/compile/for/assert.js +64 -0
  359. package/node_modules/@sap/cds/lib/compile/for/direct_crud.js +49 -0
  360. package/node_modules/@sap/cds/lib/compile/for/flows.js +396 -0
  361. package/node_modules/@sap/cds/lib/compile/for/java.js +49 -0
  362. package/node_modules/@sap/cds/lib/compile/for/lean_drafts.js +230 -0
  363. package/node_modules/@sap/cds/lib/compile/for/nodejs.js +94 -0
  364. package/node_modules/@sap/cds/lib/compile/for/odata.js +19 -0
  365. package/node_modules/@sap/cds/lib/compile/for/sql.js +9 -0
  366. package/node_modules/@sap/cds/lib/compile/load.js +59 -0
  367. package/node_modules/@sap/cds/lib/compile/minify.js +112 -0
  368. package/node_modules/@sap/cds/lib/compile/parse.js +140 -0
  369. package/node_modules/@sap/cds/lib/compile/resolve.js +166 -0
  370. package/node_modules/@sap/cds/lib/compile/to/cdl.js +22 -0
  371. package/node_modules/@sap/cds/lib/compile/to/csn.js +80 -0
  372. package/node_modules/@sap/cds/lib/compile/to/edm-files.js +80 -0
  373. package/node_modules/@sap/cds/lib/compile/to/edm.js +97 -0
  374. package/node_modules/@sap/cds/lib/compile/to/hana.js +31 -0
  375. package/node_modules/@sap/cds/lib/compile/to/hdbtabledata.js +152 -0
  376. package/node_modules/@sap/cds/lib/compile/to/json.js +63 -0
  377. package/node_modules/@sap/cds/lib/compile/to/sql.js +62 -0
  378. package/node_modules/@sap/cds/lib/compile/to/srvinfo.js +135 -0
  379. package/node_modules/@sap/cds/lib/core/classes.js +230 -0
  380. package/node_modules/@sap/cds/lib/core/entities.js +132 -0
  381. package/node_modules/@sap/cds/lib/core/linked-csn.js +188 -0
  382. package/node_modules/@sap/cds/lib/core/types.js +67 -0
  383. package/node_modules/@sap/cds/lib/dbs/cds-deploy.js +420 -0
  384. package/node_modules/@sap/cds/lib/env/cds-env.js +584 -0
  385. package/node_modules/@sap/cds/lib/env/cds-requires.js +315 -0
  386. package/node_modules/@sap/cds/lib/env/compat.js +95 -0
  387. package/node_modules/@sap/cds/lib/env/defaults.js +227 -0
  388. package/node_modules/@sap/cds/lib/env/schemas/cds-package.js +27 -0
  389. package/node_modules/@sap/cds/lib/env/schemas/cds-rc.js +1124 -0
  390. package/node_modules/@sap/cds/lib/env/schemas/index.js +12 -0
  391. package/node_modules/@sap/cds/lib/env/serviceBindings.js +157 -0
  392. package/node_modules/@sap/cds/lib/i18n/bundles.js +114 -0
  393. package/node_modules/@sap/cds/lib/i18n/files.js +140 -0
  394. package/node_modules/@sap/cds/lib/i18n/index.js +63 -0
  395. package/node_modules/@sap/cds/lib/i18n/locale.js +42 -0
  396. package/node_modules/@sap/cds/lib/i18n/localize.js +137 -0
  397. package/node_modules/@sap/cds/lib/index.js +156 -0
  398. package/node_modules/@sap/cds/lib/log/cds-error.js +114 -0
  399. package/node_modules/@sap/cds/lib/log/cds-log.js +215 -0
  400. package/node_modules/@sap/cds/lib/log/format/aspects/als.js +27 -0
  401. package/node_modules/@sap/cds/lib/log/format/aspects/cf.js +36 -0
  402. package/node_modules/@sap/cds/lib/log/format/aspects/cls.js +19 -0
  403. package/node_modules/@sap/cds/lib/log/format/json.js +143 -0
  404. package/node_modules/@sap/cds/lib/log/service/index.js +96 -0
  405. package/node_modules/@sap/cds/lib/log/service/model.cds +21 -0
  406. package/node_modules/@sap/cds/lib/log/service/test.http +16 -0
  407. package/node_modules/@sap/cds/lib/log/service/vue.html +73 -0
  408. package/node_modules/@sap/cds/lib/plugins.js +45 -0
  409. package/node_modules/@sap/cds/lib/ql/CREATE.js +30 -0
  410. package/node_modules/@sap/cds/lib/ql/DELETE.js +26 -0
  411. package/node_modules/@sap/cds/lib/ql/DROP.js +33 -0
  412. package/node_modules/@sap/cds/lib/ql/INSERT.js +57 -0
  413. package/node_modules/@sap/cds/lib/ql/SELECT.js +207 -0
  414. package/node_modules/@sap/cds/lib/ql/UPDATE.js +111 -0
  415. package/node_modules/@sap/cds/lib/ql/UPSERT.js +17 -0
  416. package/node_modules/@sap/cds/lib/ql/Whereable.js +58 -0
  417. package/node_modules/@sap/cds/lib/ql/cds-ql.js +228 -0
  418. package/node_modules/@sap/cds/lib/ql/cds.ql-Query.js +111 -0
  419. package/node_modules/@sap/cds/lib/ql/cds.ql-infer.js +148 -0
  420. package/node_modules/@sap/cds/lib/ql/cds.ql-predicates.js +136 -0
  421. package/node_modules/@sap/cds/lib/ql/cds.ql-projections.js +111 -0
  422. package/node_modules/@sap/cds/lib/ql/cqn.d.ts +146 -0
  423. package/node_modules/@sap/cds/lib/req/assert.js +71 -0
  424. package/node_modules/@sap/cds/lib/req/context.js +216 -0
  425. package/node_modules/@sap/cds/lib/req/event.js +14 -0
  426. package/node_modules/@sap/cds/lib/req/request.js +183 -0
  427. package/node_modules/@sap/cds/lib/req/response.js +54 -0
  428. package/node_modules/@sap/cds/lib/req/spawn.js +38 -0
  429. package/node_modules/@sap/cds/lib/req/user.js +77 -0
  430. package/node_modules/@sap/cds/lib/req/validate.js +339 -0
  431. package/node_modules/@sap/cds/lib/srv/bindings.js +170 -0
  432. package/node_modules/@sap/cds/lib/srv/cds-connect.js +79 -0
  433. package/node_modules/@sap/cds/lib/srv/cds-serve.js +84 -0
  434. package/node_modules/@sap/cds/lib/srv/cds.Service.js +214 -0
  435. package/node_modules/@sap/cds/lib/srv/factory.js +78 -0
  436. package/node_modules/@sap/cds/lib/srv/middlewares/auth/basic-auth.js +55 -0
  437. package/node_modules/@sap/cds/lib/srv/middlewares/auth/dummy-auth.js +8 -0
  438. package/node_modules/@sap/cds/lib/srv/middlewares/auth/ias-auth.js +167 -0
  439. package/node_modules/@sap/cds/lib/srv/middlewares/auth/index.js +53 -0
  440. package/node_modules/@sap/cds/lib/srv/middlewares/auth/jwt-auth.js +89 -0
  441. package/node_modules/@sap/cds/lib/srv/middlewares/auth/mocked-users.js +73 -0
  442. package/node_modules/@sap/cds/lib/srv/middlewares/auth/xssec.js +7 -0
  443. package/node_modules/@sap/cds/lib/srv/middlewares/cds-context.js +17 -0
  444. package/node_modules/@sap/cds/lib/srv/middlewares/ctx-model.js +25 -0
  445. package/node_modules/@sap/cds/lib/srv/middlewares/errors.js +42 -0
  446. package/node_modules/@sap/cds/lib/srv/middlewares/index.js +51 -0
  447. package/node_modules/@sap/cds/lib/srv/middlewares/trace.js +117 -0
  448. package/node_modules/@sap/cds/lib/srv/protocols/hcql.js +170 -0
  449. package/node_modules/@sap/cds/lib/srv/protocols/http.js +207 -0
  450. package/node_modules/@sap/cds/lib/srv/protocols/index.js +186 -0
  451. package/node_modules/@sap/cds/lib/srv/protocols/odata-v4.js +1 -0
  452. package/node_modules/@sap/cds/lib/srv/protocols/rest.js +1 -0
  453. package/node_modules/@sap/cds/lib/srv/srv-dispatch.js +117 -0
  454. package/node_modules/@sap/cds/lib/srv/srv-handlers.js +173 -0
  455. package/node_modules/@sap/cds/lib/srv/srv-methods.js +86 -0
  456. package/node_modules/@sap/cds/lib/srv/srv-models.js +167 -0
  457. package/node_modules/@sap/cds/lib/srv/srv-resolve.js +21 -0
  458. package/node_modules/@sap/cds/lib/srv/srv-tx.js +204 -0
  459. package/node_modules/@sap/cds/lib/test/cds-test.js +5 -0
  460. package/node_modules/@sap/cds/lib/utils/cds-utils.js +411 -0
  461. package/node_modules/@sap/cds/lib/utils/colors.js +56 -0
  462. package/node_modules/@sap/cds/lib/utils/csv-reader.js +100 -0
  463. package/node_modules/@sap/cds/lib/utils/extend.js +20 -0
  464. package/node_modules/@sap/cds/lib/utils/inflect.js +25 -0
  465. package/node_modules/@sap/cds/lib/utils/lazify.js +33 -0
  466. package/node_modules/@sap/cds/lib/utils/tar-lib.js +58 -0
  467. package/node_modules/@sap/cds/lib/utils/tar-win.js +106 -0
  468. package/node_modules/@sap/cds/lib/utils/tar.js +180 -0
  469. package/node_modules/@sap/cds/lib/utils/version.js +11 -0
  470. package/node_modules/@sap/cds/libx/_runtime/cds.js +25 -0
  471. package/node_modules/@sap/cds/libx/_runtime/common/Service.js +96 -0
  472. package/node_modules/@sap/cds/libx/_runtime/common/aspects/Association.js +82 -0
  473. package/node_modules/@sap/cds/libx/_runtime/common/aspects/any.js +34 -0
  474. package/node_modules/@sap/cds/libx/_runtime/common/aspects/entity.js +41 -0
  475. package/node_modules/@sap/cds/libx/_runtime/common/aspects/service.js +25 -0
  476. package/node_modules/@sap/cds/libx/_runtime/common/constants/draft.js +48 -0
  477. package/node_modules/@sap/cds/libx/_runtime/common/constants/events.js +6 -0
  478. package/node_modules/@sap/cds/libx/_runtime/common/generic/assert.js +225 -0
  479. package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/autoexpose.js +26 -0
  480. package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/capabilities.js +87 -0
  481. package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/expand.js +74 -0
  482. package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/index.js +84 -0
  483. package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/insertOnly.js +13 -0
  484. package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/readOnly.js +13 -0
  485. package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/requires.js +40 -0
  486. package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/restrict.js +296 -0
  487. package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/restrictions.js +124 -0
  488. package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/service.js +18 -0
  489. package/node_modules/@sap/cds/libx/_runtime/common/generic/auth/utils.js +200 -0
  490. package/node_modules/@sap/cds/libx/_runtime/common/generic/crud.js +82 -0
  491. package/node_modules/@sap/cds/libx/_runtime/common/generic/etag.js +100 -0
  492. package/node_modules/@sap/cds/libx/_runtime/common/generic/flows.js +235 -0
  493. package/node_modules/@sap/cds/libx/_runtime/common/generic/input.js +441 -0
  494. package/node_modules/@sap/cds/libx/_runtime/common/generic/media.js +25 -0
  495. package/node_modules/@sap/cds/libx/_runtime/common/generic/paging.js +47 -0
  496. package/node_modules/@sap/cds/libx/_runtime/common/generic/sorting.js +83 -0
  497. package/node_modules/@sap/cds/libx/_runtime/common/generic/temporal.js +86 -0
  498. package/node_modules/@sap/cds/libx/_runtime/common/utils/binary.js +9 -0
  499. package/node_modules/@sap/cds/libx/_runtime/common/utils/compareJson.js +378 -0
  500. package/node_modules/@sap/cds/libx/_runtime/common/utils/copy.js +44 -0
  501. package/node_modules/@sap/cds/libx/_runtime/common/utils/cqn.js +73 -0
  502. package/node_modules/@sap/cds/libx/_runtime/common/utils/csn.js +153 -0
  503. package/node_modules/@sap/cds/libx/_runtime/common/utils/differ.js +183 -0
  504. package/node_modules/@sap/cds/libx/_runtime/common/utils/draft.js +82 -0
  505. package/node_modules/@sap/cds/libx/_runtime/common/utils/entityFromCqn.js +42 -0
  506. package/node_modules/@sap/cds/libx/_runtime/common/utils/etag.js +30 -0
  507. package/node_modules/@sap/cds/libx/_runtime/common/utils/foreignKeyPropagations.js +299 -0
  508. package/node_modules/@sap/cds/libx/_runtime/common/utils/keys.js +105 -0
  509. package/node_modules/@sap/cds/libx/_runtime/common/utils/normalizeTimestamp.js +34 -0
  510. package/node_modules/@sap/cds/libx/_runtime/common/utils/postProcess.js +102 -0
  511. package/node_modules/@sap/cds/libx/_runtime/common/utils/propagateForeignKeys.js +108 -0
  512. package/node_modules/@sap/cds/libx/_runtime/common/utils/resolveStructured.js +58 -0
  513. package/node_modules/@sap/cds/libx/_runtime/common/utils/resolveView.js +732 -0
  514. package/node_modules/@sap/cds/libx/_runtime/common/utils/rewriteAsterisks.js +199 -0
  515. package/node_modules/@sap/cds/libx/_runtime/common/utils/rowUUIDGenerator.js +21 -0
  516. package/node_modules/@sap/cds/libx/_runtime/common/utils/streamProp.js +72 -0
  517. package/node_modules/@sap/cds/libx/_runtime/common/utils/structured.js +314 -0
  518. package/node_modules/@sap/cds/libx/_runtime/common/utils/template.js +154 -0
  519. package/node_modules/@sap/cds/libx/_runtime/common/utils/templateDelimiter.js +1 -0
  520. package/node_modules/@sap/cds/libx/_runtime/common/utils/templateProcessor.js +83 -0
  521. package/node_modules/@sap/cds/libx/_runtime/common/utils/templateProcessorPathSerializer.js +51 -0
  522. package/node_modules/@sap/cds/libx/_runtime/common/utils/vcap.js +28 -0
  523. package/node_modules/@sap/cds/libx/_runtime/common/utils/waitingTime.js +14 -0
  524. package/node_modules/@sap/cds/libx/_runtime/fiori/lean-draft.js +2604 -0
  525. package/node_modules/@sap/cds/libx/_runtime/messaging/AMQPWebhookMessaging.js +71 -0
  526. package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/AMQPClient.js +90 -0
  527. package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/appId.js +9 -0
  528. package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/authorizedRequest.js +66 -0
  529. package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/connections.js +81 -0
  530. package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/normalizeIncomingMessage.js +29 -0
  531. package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/optionsForSubdomain.js +14 -0
  532. package/node_modules/@sap/cds/libx/_runtime/messaging/common-utils/runInSequence.js +6 -0
  533. package/node_modules/@sap/cds/libx/_runtime/messaging/composite.js +47 -0
  534. package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-shared.js +61 -0
  535. package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-utils/EMManagement.js +473 -0
  536. package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-utils/cloudEvents.js +31 -0
  537. package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-utils/getTenantInfo.js +24 -0
  538. package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-utils/options-management.js +24 -0
  539. package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-utils/options-messaging.js +73 -0
  540. package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging-utils/registerEndpoints.js +158 -0
  541. package/node_modules/@sap/cds/libx/_runtime/messaging/enterprise-messaging.js +209 -0
  542. package/node_modules/@sap/cds/libx/_runtime/messaging/file-based.js +104 -0
  543. package/node_modules/@sap/cds/libx/_runtime/messaging/http-utils/token.js +75 -0
  544. package/node_modules/@sap/cds/libx/_runtime/messaging/kafka.js +273 -0
  545. package/node_modules/@sap/cds/libx/_runtime/messaging/message-queuing-utils/options-management.js +34 -0
  546. package/node_modules/@sap/cds/libx/_runtime/messaging/message-queuing-utils/options-messaging.js +40 -0
  547. package/node_modules/@sap/cds/libx/_runtime/messaging/message-queuing.js +238 -0
  548. package/node_modules/@sap/cds/libx/_runtime/messaging/redis-messaging.js +95 -0
  549. package/node_modules/@sap/cds/libx/_runtime/messaging/service.js +147 -0
  550. package/node_modules/@sap/cds/libx/_runtime/remote/Service.js +330 -0
  551. package/node_modules/@sap/cds/libx/_runtime/remote/utils/client.js +287 -0
  552. package/node_modules/@sap/cds/libx/_runtime/remote/utils/cloudSdkProvider.js +60 -0
  553. package/node_modules/@sap/cds/libx/_runtime/remote/utils/data.js +177 -0
  554. package/node_modules/@sap/cds/libx/_runtime/remote/utils/fetchClient.js +180 -0
  555. package/node_modules/@sap/cds/libx/_runtime/remote/utils/query.js +196 -0
  556. package/node_modules/@sap/cds/libx/_runtime/ucl/Service.js +450 -0
  557. package/node_modules/@sap/cds/libx/_runtime/ucl/queries.js +61 -0
  558. package/node_modules/@sap/cds/libx/common/utils/path.js +47 -0
  559. package/node_modules/@sap/cds/libx/common/utils/streaming.js +72 -0
  560. package/node_modules/@sap/cds/libx/http/body-parser.js +44 -0
  561. package/node_modules/@sap/cds/libx/http/location.js +42 -0
  562. package/node_modules/@sap/cds/libx/http/put.js +36 -0
  563. package/node_modules/@sap/cds/libx/odata/ODataAdapter.js +129 -0
  564. package/node_modules/@sap/cds/libx/odata/index.js +137 -0
  565. package/node_modules/@sap/cds/libx/odata/middleware/batch.js +695 -0
  566. package/node_modules/@sap/cds/libx/odata/middleware/create.js +113 -0
  567. package/node_modules/@sap/cds/libx/odata/middleware/delete.js +73 -0
  568. package/node_modules/@sap/cds/libx/odata/middleware/error.js +19 -0
  569. package/node_modules/@sap/cds/libx/odata/middleware/metadata.js +138 -0
  570. package/node_modules/@sap/cds/libx/odata/middleware/operation.js +192 -0
  571. package/node_modules/@sap/cds/libx/odata/middleware/parse.js +49 -0
  572. package/node_modules/@sap/cds/libx/odata/middleware/read.js +311 -0
  573. package/node_modules/@sap/cds/libx/odata/middleware/service-document.js +79 -0
  574. package/node_modules/@sap/cds/libx/odata/middleware/stream.js +180 -0
  575. package/node_modules/@sap/cds/libx/odata/middleware/update.js +178 -0
  576. package/node_modules/@sap/cds/libx/odata/parse/afterburner.js +1033 -0
  577. package/node_modules/@sap/cds/libx/odata/parse/cqn2odata.js +615 -0
  578. package/node_modules/@sap/cds/libx/odata/parse/grammar.peggy +1416 -0
  579. package/node_modules/@sap/cds/libx/odata/parse/multipartToJson.js +220 -0
  580. package/node_modules/@sap/cds/libx/odata/parse/parser.js +1 -0
  581. package/node_modules/@sap/cds/libx/odata/utils/etag.js +21 -0
  582. package/node_modules/@sap/cds/libx/odata/utils/index.js +348 -0
  583. package/node_modules/@sap/cds/libx/odata/utils/metadata.js +223 -0
  584. package/node_modules/@sap/cds/libx/odata/utils/normalizeTimeData.js +43 -0
  585. package/node_modules/@sap/cds/libx/odata/utils/odataBind.js +43 -0
  586. package/node_modules/@sap/cds/libx/odata/utils/postProcess.js +86 -0
  587. package/node_modules/@sap/cds/libx/odata/utils/readAfterWrite.js +144 -0
  588. package/node_modules/@sap/cds/libx/odata/utils/result.js +91 -0
  589. package/node_modules/@sap/cds/libx/queue/JobExecutor.js +80 -0
  590. package/node_modules/@sap/cds/libx/queue/SchedulingService.js +213 -0
  591. package/node_modules/@sap/cds/libx/queue/TaskRunner.js +92 -0
  592. package/node_modules/@sap/cds/libx/queue/api.js +28 -0
  593. package/node_modules/@sap/cds/libx/queue/consts.js +13 -0
  594. package/node_modules/@sap/cds/libx/queue/index.js +608 -0
  595. package/node_modules/@sap/cds/libx/queue/processing.js +645 -0
  596. package/node_modules/@sap/cds/libx/queue/utils.js +159 -0
  597. package/node_modules/@sap/cds/libx/rest/RestAdapter.js +102 -0
  598. package/node_modules/@sap/cds/libx/rest/middleware/create.js +50 -0
  599. package/node_modules/@sap/cds/libx/rest/middleware/delete.js +17 -0
  600. package/node_modules/@sap/cds/libx/rest/middleware/operation.js +54 -0
  601. package/node_modules/@sap/cds/libx/rest/middleware/parse.js +142 -0
  602. package/node_modules/@sap/cds/libx/rest/middleware/read.js +34 -0
  603. package/node_modules/@sap/cds/libx/rest/middleware/update.js +28 -0
  604. package/node_modules/@sap/cds/libx/rest/middleware/upsert.js +35 -0
  605. package/node_modules/@sap/cds/libx/rest/post-processing.js +33 -0
  606. package/node_modules/@sap/cds/libx/rest/pre-processing.js +28 -0
  607. package/node_modules/@sap/cds/package.json +49 -0
  608. package/node_modules/@sap/cds/server.js +119 -0
  609. package/node_modules/@sap/cds/srv/app-service.js +1 -0
  610. package/node_modules/@sap/cds/srv/db-service.js +1 -0
  611. package/node_modules/@sap/cds/srv/msg-service.js +1 -0
  612. package/node_modules/@sap/cds/srv/outbox.cds +15 -0
  613. package/node_modules/@sap/cds/srv/remote-service.js +1 -0
  614. package/node_modules/@sap/cds/srv/ucl-service.cds +58 -0
  615. package/node_modules/@sap/cds/srv/ucl-service.js +1 -0
  616. package/node_modules/@sap/cds/tasks/enterprise-messaging-deploy.js +52 -0
  617. package/node_modules/@sap/cds-compiler/CHANGELOG.md +987 -0
  618. package/node_modules/@sap/cds-compiler/LICENSE +32 -0
  619. package/node_modules/@sap/cds-compiler/README.md +44 -0
  620. package/node_modules/@sap/cds-compiler/bin/cds_update_identifiers.js +141 -0
  621. package/node_modules/@sap/cds-compiler/bin/cdsc.js +776 -0
  622. package/node_modules/@sap/cds-compiler/bin/cdshi.js +83 -0
  623. package/node_modules/@sap/cds-compiler/bin/cdsse.js +210 -0
  624. package/node_modules/@sap/cds-compiler/bin/cdsv2m.js +52 -0
  625. package/node_modules/@sap/cds-compiler/doc/API.md +16 -0
  626. package/node_modules/@sap/cds-compiler/doc/IncompatibleChanges_v5.md +436 -0
  627. package/node_modules/@sap/cds-compiler/doc/IncompatibleChanges_v6.md +659 -0
  628. package/node_modules/@sap/cds-compiler/doc/IncompatibleChanges_v7.md +639 -0
  629. package/node_modules/@sap/cds-compiler/doc/Versioning.md +79 -0
  630. package/node_modules/@sap/cds-compiler/lib/api/main.js +1415 -0
  631. package/node_modules/@sap/cds-compiler/lib/api/options.js +275 -0
  632. package/node_modules/@sap/cds-compiler/lib/api/validate.js +209 -0
  633. package/node_modules/@sap/cds-compiler/lib/base/builtins.js +122 -0
  634. package/node_modules/@sap/cds-compiler/lib/base/cloneCsn.js +226 -0
  635. package/node_modules/@sap/cds-compiler/lib/base/csnRefs.js +1420 -0
  636. package/node_modules/@sap/cds-compiler/lib/base/error.js +30 -0
  637. package/node_modules/@sap/cds-compiler/lib/base/keywords.js +930 -0
  638. package/node_modules/@sap/cds-compiler/lib/base/location.js +304 -0
  639. package/node_modules/@sap/cds-compiler/lib/base/message-registry.js +1635 -0
  640. package/node_modules/@sap/cds-compiler/lib/base/messages.js +1994 -0
  641. package/node_modules/@sap/cds-compiler/lib/base/meta.js +10 -0
  642. package/node_modules/@sap/cds-compiler/lib/base/model-api.js +82 -0
  643. package/node_modules/@sap/cds-compiler/lib/base/optionProcessor.js +593 -0
  644. package/node_modules/@sap/cds-compiler/lib/base/specialOptions.js +125 -0
  645. package/node_modules/@sap/cds-compiler/lib/base/trace.js +91 -0
  646. package/node_modules/@sap/cds-compiler/lib/base/xprAsTree.js +85 -0
  647. package/node_modules/@sap/cds-compiler/lib/checks/actionsFunctions.js +128 -0
  648. package/node_modules/@sap/cds-compiler/lib/checks/annotationsOData.js +126 -0
  649. package/node_modules/@sap/cds-compiler/lib/checks/arrayOfs.js +52 -0
  650. package/node_modules/@sap/cds-compiler/lib/checks/assocOutsideService.js +29 -0
  651. package/node_modules/@sap/cds-compiler/lib/checks/cdsMap.js +27 -0
  652. package/node_modules/@sap/cds-compiler/lib/checks/cdsPersistence.js +24 -0
  653. package/node_modules/@sap/cds-compiler/lib/checks/checkForTypes.js +35 -0
  654. package/node_modules/@sap/cds-compiler/lib/checks/checkPathsInStoredCalcElement.js +84 -0
  655. package/node_modules/@sap/cds-compiler/lib/checks/defaultValues.js +34 -0
  656. package/node_modules/@sap/cds-compiler/lib/checks/elements.js +345 -0
  657. package/node_modules/@sap/cds-compiler/lib/checks/enricher.js +225 -0
  658. package/node_modules/@sap/cds-compiler/lib/checks/enums.js +31 -0
  659. package/node_modules/@sap/cds-compiler/lib/checks/existsExpressionsOnlyForeignKeys.js +77 -0
  660. package/node_modules/@sap/cds-compiler/lib/checks/existsInForbiddenPlaces.js +32 -0
  661. package/node_modules/@sap/cds-compiler/lib/checks/existsMustEndInAssoc.js +32 -0
  662. package/node_modules/@sap/cds-compiler/lib/checks/existsMustNotStartWithDollarSelf.js +31 -0
  663. package/node_modules/@sap/cds-compiler/lib/checks/featureFlags.js +69 -0
  664. package/node_modules/@sap/cds-compiler/lib/checks/foreignKeys.js +80 -0
  665. package/node_modules/@sap/cds-compiler/lib/checks/hasPersistedElements.js +69 -0
  666. package/node_modules/@sap/cds-compiler/lib/checks/invalidTarget.js +64 -0
  667. package/node_modules/@sap/cds-compiler/lib/checks/managedInType.js +84 -0
  668. package/node_modules/@sap/cds-compiler/lib/checks/managedWithoutKeys.js +20 -0
  669. package/node_modules/@sap/cds-compiler/lib/checks/manyExpand.js +28 -0
  670. package/node_modules/@sap/cds-compiler/lib/checks/manyNavigations.js +33 -0
  671. package/node_modules/@sap/cds-compiler/lib/checks/nullableKeys.js +13 -0
  672. package/node_modules/@sap/cds-compiler/lib/checks/onConditions.js +268 -0
  673. package/node_modules/@sap/cds-compiler/lib/checks/parameters.js +46 -0
  674. package/node_modules/@sap/cds-compiler/lib/checks/queryNoDbArtifacts.js +225 -0
  675. package/node_modules/@sap/cds-compiler/lib/checks/selectItems.js +57 -0
  676. package/node_modules/@sap/cds-compiler/lib/checks/sql-snippets.js +117 -0
  677. package/node_modules/@sap/cds-compiler/lib/checks/structuredAnnoExpressions.js +26 -0
  678. package/node_modules/@sap/cds-compiler/lib/checks/typeParameters.js +162 -0
  679. package/node_modules/@sap/cds-compiler/lib/checks/types.js +198 -0
  680. package/node_modules/@sap/cds-compiler/lib/checks/utils.js +96 -0
  681. package/node_modules/@sap/cds-compiler/lib/checks/validator.js +292 -0
  682. package/node_modules/@sap/cds-compiler/lib/compiler/assert-consistency.js +1115 -0
  683. package/node_modules/@sap/cds-compiler/lib/compiler/base.js +153 -0
  684. package/node_modules/@sap/cds-compiler/lib/compiler/builtins.js +499 -0
  685. package/node_modules/@sap/cds-compiler/lib/compiler/checks.js +1447 -0
  686. package/node_modules/@sap/cds-compiler/lib/compiler/cycle-detector.js +135 -0
  687. package/node_modules/@sap/cds-compiler/lib/compiler/define.js +1190 -0
  688. package/node_modules/@sap/cds-compiler/lib/compiler/dictionaries.js +109 -0
  689. package/node_modules/@sap/cds-compiler/lib/compiler/extend.js +1928 -0
  690. package/node_modules/@sap/cds-compiler/lib/compiler/finalize-parse-cdl.js +170 -0
  691. package/node_modules/@sap/cds-compiler/lib/compiler/generate.js +910 -0
  692. package/node_modules/@sap/cds-compiler/lib/compiler/index.js +695 -0
  693. package/node_modules/@sap/cds-compiler/lib/compiler/kick-start.js +142 -0
  694. package/node_modules/@sap/cds-compiler/lib/compiler/lsp-api.js +506 -0
  695. package/node_modules/@sap/cds-compiler/lib/compiler/moduleLayers.js +75 -0
  696. package/node_modules/@sap/cds-compiler/lib/compiler/populate.js +1425 -0
  697. package/node_modules/@sap/cds-compiler/lib/compiler/propagator.js +457 -0
  698. package/node_modules/@sap/cds-compiler/lib/compiler/resolve.js +1996 -0
  699. package/node_modules/@sap/cds-compiler/lib/compiler/shared.js +2272 -0
  700. package/node_modules/@sap/cds-compiler/lib/compiler/tweak-assocs.js +1388 -0
  701. package/node_modules/@sap/cds-compiler/lib/compiler/utils.js +929 -0
  702. package/node_modules/@sap/cds-compiler/lib/compiler/xpr-rewrite.js +778 -0
  703. package/node_modules/@sap/cds-compiler/lib/compiler/xsn-model.js +50 -0
  704. package/node_modules/@sap/cds-compiler/lib/edm/EdmPrimitiveTypeDefinitions.js +263 -0
  705. package/node_modules/@sap/cds-compiler/lib/edm/annotations/edmJson.js +1245 -0
  706. package/node_modules/@sap/cds-compiler/lib/edm/annotations/genericTranslation.js +1873 -0
  707. package/node_modules/@sap/cds-compiler/lib/edm/annotations/preprocessAnnotations.js +308 -0
  708. package/node_modules/@sap/cds-compiler/lib/edm/annotations/vocabularyDefinitions.js +166 -0
  709. package/node_modules/@sap/cds-compiler/lib/edm/csn2edm.js +1226 -0
  710. package/node_modules/@sap/cds-compiler/lib/edm/edm.js +1628 -0
  711. package/node_modules/@sap/cds-compiler/lib/edm/edmAnnoPreprocessor.js +312 -0
  712. package/node_modules/@sap/cds-compiler/lib/edm/edmInboundChecks.js +182 -0
  713. package/node_modules/@sap/cds-compiler/lib/edm/edmPreprocessor.js +2320 -0
  714. package/node_modules/@sap/cds-compiler/lib/edm/edmUtils.js +949 -0
  715. package/node_modules/@sap/cds-compiler/lib/gen/BaseParser.js +892 -0
  716. package/node_modules/@sap/cds-compiler/lib/gen/CdlGrammar.checksum +1 -0
  717. package/node_modules/@sap/cds-compiler/lib/gen/CdlParser.js +4549 -0
  718. package/node_modules/@sap/cds-compiler/lib/gen/Dictionary.json +5124 -0
  719. package/node_modules/@sap/cds-compiler/lib/gen/cdlKeywords.json +26 -0
  720. package/node_modules/@sap/cds-compiler/lib/json/csnVersion.js +53 -0
  721. package/node_modules/@sap/cds-compiler/lib/json/from-csn.js +2217 -0
  722. package/node_modules/@sap/cds-compiler/lib/json/to-csn.js +1621 -0
  723. package/node_modules/@sap/cds-compiler/lib/language/docCommentParser.js +181 -0
  724. package/node_modules/@sap/cds-compiler/lib/language/genericAntlrParser.js +0 -0
  725. package/node_modules/@sap/cds-compiler/lib/language/multiLineStringParser.js +525 -0
  726. package/node_modules/@sap/cds-compiler/lib/language/textUtils.js +61 -0
  727. package/node_modules/@sap/cds-compiler/lib/main.d.ts +1631 -0
  728. package/node_modules/@sap/cds-compiler/lib/main.js +212 -0
  729. package/node_modules/@sap/cds-compiler/lib/model/csnUtils.js +1532 -0
  730. package/node_modules/@sap/cds-compiler/lib/model/sortViews.js +121 -0
  731. package/node_modules/@sap/cds-compiler/lib/modelCompare/compare.js +475 -0
  732. package/node_modules/@sap/cds-compiler/lib/modelCompare/utils/filter.js +230 -0
  733. package/node_modules/@sap/cds-compiler/lib/parsers/AstBuildingParser.js +1696 -0
  734. package/node_modules/@sap/cds-compiler/lib/parsers/Lexer.js +253 -0
  735. package/node_modules/@sap/cds-compiler/lib/parsers/XprTree.js +269 -0
  736. package/node_modules/@sap/cds-compiler/lib/parsers/identifiers.js +22 -0
  737. package/node_modules/@sap/cds-compiler/lib/parsers/index.js +120 -0
  738. package/node_modules/@sap/cds-compiler/lib/render/DuplicateChecker.js +126 -0
  739. package/node_modules/@sap/cds-compiler/lib/render/manageConstraints.js +257 -0
  740. package/node_modules/@sap/cds-compiler/lib/render/toCdl.js +3084 -0
  741. package/node_modules/@sap/cds-compiler/lib/render/toRename.js +115 -0
  742. package/node_modules/@sap/cds-compiler/lib/render/toSql.js +1789 -0
  743. package/node_modules/@sap/cds-compiler/lib/render/utils/common.js +784 -0
  744. package/node_modules/@sap/cds-compiler/lib/render/utils/delta.js +291 -0
  745. package/node_modules/@sap/cds-compiler/lib/render/utils/operators.js +160 -0
  746. package/node_modules/@sap/cds-compiler/lib/render/utils/pretty.js +337 -0
  747. package/node_modules/@sap/cds-compiler/lib/render/utils/sql.js +225 -0
  748. package/node_modules/@sap/cds-compiler/lib/render/utils/standardDatabaseFunctions.js +834 -0
  749. package/node_modules/@sap/cds-compiler/lib/render/utils/stringEscapes.js +112 -0
  750. package/node_modules/@sap/cds-compiler/lib/render/utils/unique.js +52 -0
  751. package/node_modules/@sap/cds-compiler/lib/sql-identifier.js +109 -0
  752. package/node_modules/@sap/cds-compiler/lib/tool-lib/enrichCsn.js +383 -0
  753. package/node_modules/@sap/cds-compiler/lib/tool-lib/index.js +14 -0
  754. package/node_modules/@sap/cds-compiler/lib/tool-lib/inspectModelStatistics.js +82 -0
  755. package/node_modules/@sap/cds-compiler/lib/tool-lib/inspectPropagation.js +191 -0
  756. package/node_modules/@sap/cds-compiler/lib/tool-lib/inspectUtils.js +44 -0
  757. package/node_modules/@sap/cds-compiler/lib/tool-lib/revealInternalProperties.js +419 -0
  758. package/node_modules/@sap/cds-compiler/lib/transform/addTenantFields.js +431 -0
  759. package/node_modules/@sap/cds-compiler/lib/transform/db/applyTransformations.js +444 -0
  760. package/node_modules/@sap/cds-compiler/lib/transform/db/assertUnique.js +307 -0
  761. package/node_modules/@sap/cds-compiler/lib/transform/db/associations.js +270 -0
  762. package/node_modules/@sap/cds-compiler/lib/transform/db/assocsToQueries/normalizeFrom.js +33 -0
  763. package/node_modules/@sap/cds-compiler/lib/transform/db/assocsToQueries/transformExists.js +401 -0
  764. package/node_modules/@sap/cds-compiler/lib/transform/db/assocsToQueries/utils.js +449 -0
  765. package/node_modules/@sap/cds-compiler/lib/transform/db/backlinks.js +333 -0
  766. package/node_modules/@sap/cds-compiler/lib/transform/db/cdsPersistence.js +127 -0
  767. package/node_modules/@sap/cds-compiler/lib/transform/db/constraints.js +619 -0
  768. package/node_modules/@sap/cds-compiler/lib/transform/db/expansion.js +913 -0
  769. package/node_modules/@sap/cds-compiler/lib/transform/db/flattening.js +814 -0
  770. package/node_modules/@sap/cds-compiler/lib/transform/db/groupByOrderBy.js +84 -0
  771. package/node_modules/@sap/cds-compiler/lib/transform/db/killAnnotations.js +44 -0
  772. package/node_modules/@sap/cds-compiler/lib/transform/db/processSqlServices.js +135 -0
  773. package/node_modules/@sap/cds-compiler/lib/transform/db/rewriteCalculatedElements.js +507 -0
  774. package/node_modules/@sap/cds-compiler/lib/transform/db/temporal.js +263 -0
  775. package/node_modules/@sap/cds-compiler/lib/transform/db/views.js +404 -0
  776. package/node_modules/@sap/cds-compiler/lib/transform/draft/db.js +381 -0
  777. package/node_modules/@sap/cds-compiler/lib/transform/draft/odata.js +302 -0
  778. package/node_modules/@sap/cds-compiler/lib/transform/effective/annotations.js +342 -0
  779. package/node_modules/@sap/cds-compiler/lib/transform/effective/associations.js +81 -0
  780. package/node_modules/@sap/cds-compiler/lib/transform/effective/flattening.js +124 -0
  781. package/node_modules/@sap/cds-compiler/lib/transform/effective/main.js +164 -0
  782. package/node_modules/@sap/cds-compiler/lib/transform/effective/misc.js +106 -0
  783. package/node_modules/@sap/cds-compiler/lib/transform/effective/queries.js +40 -0
  784. package/node_modules/@sap/cds-compiler/lib/transform/effective/service.js +34 -0
  785. package/node_modules/@sap/cds-compiler/lib/transform/effective/types.js +168 -0
  786. package/node_modules/@sap/cds-compiler/lib/transform/featureFlags.js +10 -0
  787. package/node_modules/@sap/cds-compiler/lib/transform/fioriTreeViews.js +196 -0
  788. package/node_modules/@sap/cds-compiler/lib/transform/forOdata.js +687 -0
  789. package/node_modules/@sap/cds-compiler/lib/transform/forRelationalDB.js +658 -0
  790. package/node_modules/@sap/cds-compiler/lib/transform/localized.js +758 -0
  791. package/node_modules/@sap/cds-compiler/lib/transform/odata/adaptAnnotationRefs.js +101 -0
  792. package/node_modules/@sap/cds-compiler/lib/transform/odata/createForeignKeys.js +203 -0
  793. package/node_modules/@sap/cds-compiler/lib/transform/odata/flattening.js +730 -0
  794. package/node_modules/@sap/cds-compiler/lib/transform/odata/foreignKeyRefsInXprAnnos.js +124 -0
  795. package/node_modules/@sap/cds-compiler/lib/transform/odata/toFinalBaseType.js +297 -0
  796. package/node_modules/@sap/cds-compiler/lib/transform/odata/typesExposure.js +455 -0
  797. package/node_modules/@sap/cds-compiler/lib/transform/odata/utils.js +65 -0
  798. package/node_modules/@sap/cds-compiler/lib/transform/transformUtils.js +1000 -0
  799. package/node_modules/@sap/cds-compiler/lib/transform/translateAssocsToJoins.js +1905 -0
  800. package/node_modules/@sap/cds-compiler/lib/transform/tupleExpansion.js +548 -0
  801. package/node_modules/@sap/cds-compiler/lib/transform/universalCsn/coreComputed.js +194 -0
  802. package/node_modules/@sap/cds-compiler/lib/transform/universalCsn/universalCsnEnricher.js +800 -0
  803. package/node_modules/@sap/cds-compiler/lib/transform/universalCsn/utils.js +63 -0
  804. package/node_modules/@sap/cds-compiler/lib/utils/file.js +267 -0
  805. package/node_modules/@sap/cds-compiler/lib/utils/lazyload.js +37 -0
  806. package/node_modules/@sap/cds-compiler/lib/utils/moduleResolve.js +608 -0
  807. package/node_modules/@sap/cds-compiler/lib/utils/node-helpers.js +44 -0
  808. package/node_modules/@sap/cds-compiler/lib/utils/objectUtils.js +112 -0
  809. package/node_modules/@sap/cds-compiler/lib/utils/optionProcessorHelper.js +652 -0
  810. package/node_modules/@sap/cds-compiler/lib/utils/shuffle.js +54 -0
  811. package/node_modules/@sap/cds-compiler/lib/utils/term.js +102 -0
  812. package/node_modules/@sap/cds-compiler/lib/utils/timetrace.js +158 -0
  813. package/node_modules/@sap/cds-compiler/package.json +30 -0
  814. package/node_modules/@sap/cds-compiler/share/messages/.markdownlintrc +13 -0
  815. package/node_modules/@sap/cds-compiler/share/messages/README.md +62 -0
  816. package/node_modules/@sap/cds-compiler/share/messages/anno-duplicate-unrelated-layer.md +69 -0
  817. package/node_modules/@sap/cds-compiler/share/messages/anno-missing-rewrite.md +45 -0
  818. package/node_modules/@sap/cds-compiler/share/messages/check-proper-type-of.md +46 -0
  819. package/node_modules/@sap/cds-compiler/share/messages/def-duplicate-autoexposed.md +82 -0
  820. package/node_modules/@sap/cds-compiler/share/messages/def-missing-type.md +48 -0
  821. package/node_modules/@sap/cds-compiler/share/messages/def-upcoming-virtual-change.md +55 -0
  822. package/node_modules/@sap/cds-compiler/share/messages/extend-repeated-intralayer.md +47 -0
  823. package/node_modules/@sap/cds-compiler/share/messages/extend-unrelated-layer.md +58 -0
  824. package/node_modules/@sap/cds-compiler/share/messages/file-unexpected-case-mismatch.md +61 -0
  825. package/node_modules/@sap/cds-compiler/share/messages/message-explanations.json +22 -0
  826. package/node_modules/@sap/cds-compiler/share/messages/redirected-to-ambiguous.md +72 -0
  827. package/node_modules/@sap/cds-compiler/share/messages/redirected-to-complex.md +66 -0
  828. package/node_modules/@sap/cds-compiler/share/messages/redirected-to-unrelated.md +78 -0
  829. package/node_modules/@sap/cds-compiler/share/messages/rewrite-not-supported.md +61 -0
  830. package/node_modules/@sap/cds-compiler/share/messages/rewrite-undefined-key.md +94 -0
  831. package/node_modules/@sap/cds-compiler/share/messages/syntax-expecting-unsigned-int.md +41 -0
  832. package/node_modules/@sap/cds-compiler/share/messages/type-missing-enum-value.md +59 -0
  833. package/node_modules/@sap/cds-compiler/share/messages/wildcard-excluding-one.md +37 -0
  834. package/node_modules/@sap/cds-fiori/CHANGELOG.md +163 -0
  835. package/node_modules/@sap/cds-fiori/LICENSE +32 -0
  836. package/node_modules/@sap/cds-fiori/README.md +11 -0
  837. package/node_modules/@sap/cds-fiori/app/preview.js +360 -0
  838. package/node_modules/@sap/cds-fiori/app/routes.js +74 -0
  839. package/node_modules/@sap/cds-fiori/cds-plugin.js +5 -0
  840. package/node_modules/@sap/cds-fiori/package.json +42 -0
  841. package/node_modules/@sap/cds-mtxs/CHANGELOG.md +1322 -0
  842. package/node_modules/@sap/cds-mtxs/LICENSE +32 -0
  843. package/node_modules/@sap/cds-mtxs/README.md +9 -0
  844. package/node_modules/@sap/cds-mtxs/bin/cds-mtx-migrate.js +115 -0
  845. package/node_modules/@sap/cds-mtxs/bin/cds-mtx.js +134 -0
  846. package/node_modules/@sap/cds-mtxs/cds-plugin.js +30 -0
  847. package/node_modules/@sap/cds-mtxs/db/extensions.cds +10 -0
  848. package/node_modules/@sap/cds-mtxs/db/t0.cds +46 -0
  849. package/node_modules/@sap/cds-mtxs/lib/index.js +26 -0
  850. package/node_modules/@sap/cds-mtxs/lib/migration/extension-project-builder.js +129 -0
  851. package/node_modules/@sap/cds-mtxs/lib/migration/extension-project.js +89 -0
  852. package/node_modules/@sap/cds-mtxs/lib/migration/migration.js +485 -0
  853. package/node_modules/@sap/cds-mtxs/lib/migration/mtx-adapter.js +230 -0
  854. package/node_modules/@sap/cds-mtxs/lib/utils.js +255 -0
  855. package/node_modules/@sap/cds-mtxs/package.json +257 -0
  856. package/node_modules/@sap/cds-mtxs/srv/bootstrap.cds +2 -0
  857. package/node_modules/@sap/cds-mtxs/srv/bootstrap.js +33 -0
  858. package/node_modules/@sap/cds-mtxs/srv/cf/abstract-provisioning-service.js +307 -0
  859. package/node_modules/@sap/cds-mtxs/srv/cf/saas-provisioning-service.cds +30 -0
  860. package/node_modules/@sap/cds-mtxs/srv/cf/saas-provisioning-service.js +59 -0
  861. package/node_modules/@sap/cds-mtxs/srv/cf/sms-provisioning-service.cds +37 -0
  862. package/node_modules/@sap/cds-mtxs/srv/cf/sms-provisioning-service.js +115 -0
  863. package/node_modules/@sap/cds-mtxs/srv/config.js +16 -0
  864. package/node_modules/@sap/cds-mtxs/srv/dberrors.js +45 -0
  865. package/node_modules/@sap/cds-mtxs/srv/deployment-service.cds +54 -0
  866. package/node_modules/@sap/cds-mtxs/srv/deployment-service.js +26 -0
  867. package/node_modules/@sap/cds-mtxs/srv/extensibility/compat/update.js +95 -0
  868. package/node_modules/@sap/cds-mtxs/srv/extensibility/linter/allowlist.js +292 -0
  869. package/node_modules/@sap/cds-mtxs/srv/extensibility/linter/annotations.js +168 -0
  870. package/node_modules/@sap/cds-mtxs/srv/extensibility/linter/config.js +98 -0
  871. package/node_modules/@sap/cds-mtxs/srv/extensibility/linter/index.js +76 -0
  872. package/node_modules/@sap/cds-mtxs/srv/extensibility/linter/message.js +57 -0
  873. package/node_modules/@sap/cds-mtxs/srv/extensibility/linter/namespace.js +94 -0
  874. package/node_modules/@sap/cds-mtxs/srv/extensibility-service.cds +82 -0
  875. package/node_modules/@sap/cds-mtxs/srv/extensibility-service.js +550 -0
  876. package/node_modules/@sap/cds-mtxs/srv/jobs-service.cds +37 -0
  877. package/node_modules/@sap/cds-mtxs/srv/jobs-service.js +346 -0
  878. package/node_modules/@sap/cds-mtxs/srv/model-provider.cds +85 -0
  879. package/node_modules/@sap/cds-mtxs/srv/model-provider.js +412 -0
  880. package/node_modules/@sap/cds-mtxs/srv/plugins/common.js +130 -0
  881. package/node_modules/@sap/cds-mtxs/srv/plugins/hana/ctnr-mgr-base.js +154 -0
  882. package/node_modules/@sap/cds-mtxs/srv/plugins/hana/hdi-ctnr-mgr.js +15 -0
  883. package/node_modules/@sap/cds-mtxs/srv/plugins/hana/hdi.js +167 -0
  884. package/node_modules/@sap/cds-mtxs/srv/plugins/hana/srv-mgr.js +323 -0
  885. package/node_modules/@sap/cds-mtxs/srv/plugins/hana/tms.js +542 -0
  886. package/node_modules/@sap/cds-mtxs/srv/plugins/hana.js +381 -0
  887. package/node_modules/@sap/cds-mtxs/srv/plugins/sqlite.js +122 -0
  888. package/node_modules/@sap/cds-mtxs/srv/worker/load.js +14 -0
  889. package/node_modules/@sap/cds-mtxs/srv/worker/pool.js +54 -0
  890. package/node_modules/@sap/hdi/CHANGELOG.md +159 -0
  891. package/node_modules/@sap/hdi/LICENSE +38 -0
  892. package/node_modules/@sap/hdi/README.md +244 -0
  893. package/node_modules/@sap/hdi/index.js +58 -0
  894. package/node_modules/@sap/hdi/lib/ResultTuple.js +33 -0
  895. package/node_modules/@sap/hdi/lib/main/Container.js +1107 -0
  896. package/node_modules/@sap/hdi/lib/main/ContainerGroup.js +147 -0
  897. package/node_modules/@sap/hdi/lib/main/ContainerGroupBase.js +788 -0
  898. package/node_modules/@sap/hdi/lib/main/HDI.js +437 -0
  899. package/node_modules/@sap/hdi/lib/main/HDIBase.js +592 -0
  900. package/node_modules/@sap/hdi/lib/main/promises/ContainerGroupPromises.js +401 -0
  901. package/node_modules/@sap/hdi/lib/main/promises/ContainerPromises.js +454 -0
  902. package/node_modules/@sap/hdi/lib/main/promises/HDIPromises.js +218 -0
  903. package/node_modules/@sap/hdi/lib/parameter/APIPrivilege.js +47 -0
  904. package/node_modules/@sap/hdi/lib/parameter/File.js +25 -0
  905. package/node_modules/@sap/hdi/lib/parameter/FileWithContent.js +24 -0
  906. package/node_modules/@sap/hdi/lib/parameter/Folder.js +25 -0
  907. package/node_modules/@sap/hdi/lib/parameter/FolderWithContent.js +24 -0
  908. package/node_modules/@sap/hdi/lib/parameter/HDIObject.js +40 -0
  909. package/node_modules/@sap/hdi/lib/parameter/LibraryConfiguration.js +62 -0
  910. package/node_modules/@sap/hdi/lib/parameter/Parameter.js +73 -0
  911. package/node_modules/@sap/hdi/lib/parameter/Path.js +39 -0
  912. package/node_modules/@sap/hdi/lib/parameter/PathParameter.js +43 -0
  913. package/node_modules/@sap/hdi/lib/parameter/PathWithContent.js +41 -0
  914. package/node_modules/@sap/hdi/lib/parameter/SchemaPrivilege.js +44 -0
  915. package/node_modules/@sap/hdi/lib/parameter/SchemaRole.js +44 -0
  916. package/node_modules/@sap/hdi/lib/parameter/TableRow.js +72 -0
  917. package/node_modules/@sap/hdi/lib/parameter/parameterCheck.js +41 -0
  918. package/node_modules/@sap/hdi/lib/result/DependencyResultTuple.js +105 -0
  919. package/node_modules/@sap/hdi/lib/result/LibraryInformationResultTuple.js +62 -0
  920. package/node_modules/@sap/hdi/lib/result/MakeGroupResultTuple.js +57 -0
  921. package/node_modules/@sap/hdi/lib/result/MetadataContentResultTuple.js +56 -0
  922. package/node_modules/@sap/hdi/lib/result/MetadataResult.js +40 -0
  923. package/node_modules/@sap/hdi/lib/result/MetadataResultTuple.js +37 -0
  924. package/node_modules/@sap/hdi/lib/result/StatusResultTuple.js +59 -0
  925. package/node_modules/@sap/hdi/lib/util/Constants.js +55 -0
  926. package/node_modules/@sap/hdi/lib/util/callback.js +18 -0
  927. package/node_modules/@sap/hdi/lib/util/connection.js +20 -0
  928. package/node_modules/@sap/hdi/lib/util/schema_escaping.js +11 -0
  929. package/node_modules/@sap/hdi/lib/util/typeCheck.js +43 -0
  930. package/node_modules/@sap/hdi/lib/util/wrap.js +23 -0
  931. package/node_modules/@sap/hdi/package.json +37 -0
  932. package/node_modules/@sap/hdi-deploy/CHANGELOG.md +672 -0
  933. package/node_modules/@sap/hdi-deploy/LICENSE +38 -0
  934. package/node_modules/@sap/hdi-deploy/README.md +1237 -0
  935. package/node_modules/@sap/hdi-deploy/deploy.js +1070 -0
  936. package/node_modules/@sap/hdi-deploy/lib/IgnoreFile.js +56 -0
  937. package/node_modules/@sap/hdi-deploy/lib/arguments.js +203 -0
  938. package/node_modules/@sap/hdi-deploy/lib/check_client.js +31 -0
  939. package/node_modules/@sap/hdi-deploy/lib/client-info.js +80 -0
  940. package/node_modules/@sap/hdi-deploy/lib/connections.js +4 -0
  941. package/node_modules/@sap/hdi-deploy/lib/content.js +478 -0
  942. package/node_modules/@sap/hdi-deploy/lib/deploy.js +113 -0
  943. package/node_modules/@sap/hdi-deploy/lib/features.client.js +59 -0
  944. package/node_modules/@sap/hdi-deploy/lib/fileWalker.js +58 -0
  945. package/node_modules/@sap/hdi-deploy/lib/fileWorker.js +85 -0
  946. package/node_modules/@sap/hdi-deploy/lib/filters/PathFilter.js +211 -0
  947. package/node_modules/@sap/hdi-deploy/lib/filters/regex-helper.js +87 -0
  948. package/node_modules/@sap/hdi-deploy/lib/hana-helper.js +1055 -0
  949. package/node_modules/@sap/hdi-deploy/lib/hdi.js +77 -0
  950. package/node_modules/@sap/hdi-deploy/lib/hdiTables.js +32 -0
  951. package/node_modules/@sap/hdi-deploy/lib/hdi_utils.js +356 -0
  952. package/node_modules/@sap/hdi-deploy/lib/info.js +44 -0
  953. package/node_modules/@sap/hdi-deploy/lib/json-comment-stripper.js +147 -0
  954. package/node_modules/@sap/hdi-deploy/lib/liveness-ping.js +53 -0
  955. package/node_modules/@sap/hdi-deploy/lib/logger.js +434 -0
  956. package/node_modules/@sap/hdi-deploy/lib/make.js +460 -0
  957. package/node_modules/@sap/hdi-deploy/lib/messages.hdi.js +7 -0
  958. package/node_modules/@sap/hdi-deploy/lib/options.js +49 -0
  959. package/node_modules/@sap/hdi-deploy/lib/ownership_checker.js +87 -0
  960. package/node_modules/@sap/hdi-deploy/lib/paths.js +71 -0
  961. package/node_modules/@sap/hdi-deploy/lib/privileges/grantor.js +94 -0
  962. package/node_modules/@sap/hdi-deploy/lib/privileges/privilege_utils.js +414 -0
  963. package/node_modules/@sap/hdi-deploy/lib/privileges/privileges.js +73 -0
  964. package/node_modules/@sap/hdi-deploy/lib/privileges/revoker.js +94 -0
  965. package/node_modules/@sap/hdi-deploy/lib/privileges/strategies.js +1049 -0
  966. package/node_modules/@sap/hdi-deploy/lib/services.js +253 -0
  967. package/node_modules/@sap/hdi-deploy/lib/shared-password-service.js +62 -0
  968. package/node_modules/@sap/hdi-deploy/lib/status.js +113 -0
  969. package/node_modules/@sap/hdi-deploy/lib/tasks.js +985 -0
  970. package/node_modules/@sap/hdi-deploy/lib/template.js +91 -0
  971. package/node_modules/@sap/hdi-deploy/lib/utils.js +717 -0
  972. package/node_modules/@sap/hdi-deploy/lib/version.cloud.js +71 -0
  973. package/node_modules/@sap/hdi-deploy/lib/version.container-api.js +100 -0
  974. package/node_modules/@sap/hdi-deploy/lib/version.hdi-version.js +101 -0
  975. package/node_modules/@sap/hdi-deploy/lib/version.server.js +145 -0
  976. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/Generator.js +598 -0
  977. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/artifact-visitors/AccessArtifactParserVisitor.js +68 -0
  978. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/artifact-visitors/ArtifactVisitor.js +11 -0
  979. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/artifact-visitors/DataArtifactParserVisitor.js +75 -0
  980. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/AccessContainerDuplicate.js +16 -0
  981. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/DataContainerDuplicate.js +16 -0
  982. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/FileArtifact.js +228 -0
  983. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/FileArtifactsFactory.js +243 -0
  984. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/HDBCDS.js +182 -0
  985. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/HDBRole.js +26 -0
  986. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/HDBSequence.js +29 -0
  987. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/HDBTable.js +82 -0
  988. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/HDIConfig.js +203 -0
  989. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/file-artifacts/HDINamespace.js +16 -0
  990. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model/Model.js +306 -0
  991. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model/ModelSerializer.js +132 -0
  992. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/Column.js +19 -0
  993. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/Context.js +117 -0
  994. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/DataControlLanguageModelArtifact.js +14 -0
  995. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/DerivedType.js +23 -0
  996. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/Entity.js +14 -0
  997. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/ModelArtifact.js +22 -0
  998. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/ModelArtifactsFactory.js +80 -0
  999. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/StructuredType.js +23 -0
  1000. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/TableModelArtifact.js +41 -0
  1001. package/node_modules/@sap/hdi-deploy/lib/zdm/generator/model-artifacts/View.js +14 -0
  1002. package/node_modules/@sap/hdi-deploy/lib/zdm/resources/cfg/projectionViewConfig.hdbprojectionviewconfig.template +8 -0
  1003. package/node_modules/@sap/hdi-deploy/lib/zdm/resources/cfg/synonym.hdbsynonymconfig.template +8 -0
  1004. package/node_modules/@sap/hdi-deploy/lib/zdm/resources/cfg/zdm_data_access.hdbgrants.template +10 -0
  1005. package/node_modules/@sap/hdi-deploy/lib/zdm/resources/src/namespace.hdinamespace.template +4 -0
  1006. package/node_modules/@sap/hdi-deploy/lib/zdm/resources/src/projectionView.hdbprojectionview.template +5 -0
  1007. package/node_modules/@sap/hdi-deploy/lib/zdm/resources/src/synonym.hdbsynonym.template +4 -0
  1008. package/node_modules/@sap/hdi-deploy/lib/zdm/resources/src/zdm_access.hdbrole.template +10 -0
  1009. package/node_modules/@sap/hdi-deploy/lib/zdm/resources/src/zdm_sequences.hdbrole.template +12 -0
  1010. package/node_modules/@sap/hdi-deploy/lib/zdm/tasks/FinalizeTask.js +80 -0
  1011. package/node_modules/@sap/hdi-deploy/lib/zdm/tasks/InstallTask.js +93 -0
  1012. package/node_modules/@sap/hdi-deploy/lib/zdm/tasks/StartTask.js +101 -0
  1013. package/node_modules/@sap/hdi-deploy/lib/zdm/tasks/Task.js +110 -0
  1014. package/node_modules/@sap/hdi-deploy/lib/zdm/tasks/taskFactory.js +23 -0
  1015. package/node_modules/@sap/hdi-deploy/lib/zdm/zdmDeployer.js +34 -0
  1016. package/node_modules/@sap/hdi-deploy/lib/zdm/zdmUtils.js +257 -0
  1017. package/node_modules/@sap/hdi-deploy/library.js +129 -0
  1018. package/node_modules/@sap/hdi-deploy/package.json +42 -0
  1019. package/node_modules/@sap/xsenv/CHANGELOG.md +236 -0
  1020. package/node_modules/@sap/xsenv/LICENSE +37 -0
  1021. package/node_modules/@sap/xsenv/README.md +548 -0
  1022. package/node_modules/@sap/xsenv/index.js +17 -0
  1023. package/node_modules/@sap/xsenv/lib/cacert.js +26 -0
  1024. package/node_modules/@sap/xsenv/lib/cfservice.js +59 -0
  1025. package/node_modules/@sap/xsenv/lib/filter.js +42 -0
  1026. package/node_modules/@sap/xsenv/lib/k8sservice.js +121 -0
  1027. package/node_modules/@sap/xsenv/lib/loadEnv.js +31 -0
  1028. package/node_modules/@sap/xsenv/lib/redactServiceData.js +32 -0
  1029. package/node_modules/@sap/xsenv/lib/serviceBindingService.js +146 -0
  1030. package/node_modules/@sap/xsenv/lib/xsservices.js +180 -0
  1031. package/node_modules/@sap/xsenv/migration.md +49 -0
  1032. package/node_modules/@sap/xsenv/package.json +49 -0
  1033. package/node_modules/accepts/HISTORY.md +250 -0
  1034. package/node_modules/accepts/LICENSE +23 -0
  1035. package/node_modules/accepts/README.md +140 -0
  1036. package/node_modules/accepts/index.js +238 -0
  1037. package/node_modules/accepts/package.json +47 -0
  1038. package/node_modules/assert-plus/AUTHORS +6 -0
  1039. package/node_modules/assert-plus/CHANGES.md +14 -0
  1040. package/node_modules/assert-plus/README.md +162 -0
  1041. package/node_modules/assert-plus/assert.js +211 -0
  1042. package/node_modules/assert-plus/package.json +23 -0
  1043. package/node_modules/async/CHANGELOG.md +351 -0
  1044. package/node_modules/async/LICENSE +19 -0
  1045. package/node_modules/async/README.md +59 -0
  1046. package/node_modules/async/all.js +119 -0
  1047. package/node_modules/async/allLimit.js +46 -0
  1048. package/node_modules/async/allSeries.js +45 -0
  1049. package/node_modules/async/any.js +122 -0
  1050. package/node_modules/async/anyLimit.js +47 -0
  1051. package/node_modules/async/anySeries.js +46 -0
  1052. package/node_modules/async/apply.js +11 -0
  1053. package/node_modules/async/applyEach.js +57 -0
  1054. package/node_modules/async/applyEachSeries.js +37 -0
  1055. package/node_modules/async/asyncify.js +118 -0
  1056. package/node_modules/async/auto.js +333 -0
  1057. package/node_modules/async/autoInject.js +182 -0
  1058. package/node_modules/async/bower.json +17 -0
  1059. package/node_modules/async/cargo.js +63 -0
  1060. package/node_modules/async/cargoQueue.js +71 -0
  1061. package/node_modules/async/compose.js +55 -0
  1062. package/node_modules/async/concat.js +115 -0
  1063. package/node_modules/async/concatLimit.js +60 -0
  1064. package/node_modules/async/concatSeries.js +41 -0
  1065. package/node_modules/async/constant.js +14 -0
  1066. package/node_modules/async/detect.js +96 -0
  1067. package/node_modules/async/detectLimit.js +48 -0
  1068. package/node_modules/async/detectSeries.js +47 -0
  1069. package/node_modules/async/dir.js +43 -0
  1070. package/node_modules/async/dist/async.js +6061 -0
  1071. package/node_modules/async/dist/async.min.js +1 -0
  1072. package/node_modules/async/dist/async.mjs +5948 -0
  1073. package/node_modules/async/doDuring.js +68 -0
  1074. package/node_modules/async/doUntil.js +46 -0
  1075. package/node_modules/async/doWhilst.js +68 -0
  1076. package/node_modules/async/during.js +78 -0
  1077. package/node_modules/async/each.js +129 -0
  1078. package/node_modules/async/eachLimit.js +50 -0
  1079. package/node_modules/async/eachOf.js +185 -0
  1080. package/node_modules/async/eachOfLimit.js +47 -0
  1081. package/node_modules/async/eachOfSeries.js +39 -0
  1082. package/node_modules/async/eachSeries.js +44 -0
  1083. package/node_modules/async/ensureAsync.js +67 -0
  1084. package/node_modules/async/every.js +119 -0
  1085. package/node_modules/async/everyLimit.js +46 -0
  1086. package/node_modules/async/everySeries.js +45 -0
  1087. package/node_modules/async/filter.js +93 -0
  1088. package/node_modules/async/filterLimit.js +45 -0
  1089. package/node_modules/async/filterSeries.js +43 -0
  1090. package/node_modules/async/find.js +96 -0
  1091. package/node_modules/async/findLimit.js +48 -0
  1092. package/node_modules/async/findSeries.js +47 -0
  1093. package/node_modules/async/flatMap.js +115 -0
  1094. package/node_modules/async/flatMapLimit.js +60 -0
  1095. package/node_modules/async/flatMapSeries.js +41 -0
  1096. package/node_modules/async/foldl.js +153 -0
  1097. package/node_modules/async/foldr.js +41 -0
  1098. package/node_modules/async/forEach.js +129 -0
  1099. package/node_modules/async/forEachLimit.js +50 -0
  1100. package/node_modules/async/forEachOf.js +185 -0
  1101. package/node_modules/async/forEachOfLimit.js +47 -0
  1102. package/node_modules/async/forEachOfSeries.js +39 -0
  1103. package/node_modules/async/forEachSeries.js +44 -0
  1104. package/node_modules/async/forever.js +68 -0
  1105. package/node_modules/async/groupBy.js +108 -0
  1106. package/node_modules/async/groupByLimit.js +71 -0
  1107. package/node_modules/async/groupBySeries.js +36 -0
  1108. package/node_modules/async/index.js +588 -0
  1109. package/node_modules/async/inject.js +153 -0
  1110. package/node_modules/async/internal/DoublyLinkedList.js +92 -0
  1111. package/node_modules/async/internal/Heap.js +120 -0
  1112. package/node_modules/async/internal/applyEach.js +29 -0
  1113. package/node_modules/async/internal/asyncEachOfLimit.js +75 -0
  1114. package/node_modules/async/internal/awaitify.js +28 -0
  1115. package/node_modules/async/internal/breakLoop.js +10 -0
  1116. package/node_modules/async/internal/consoleFunc.js +31 -0
  1117. package/node_modules/async/internal/createTester.js +40 -0
  1118. package/node_modules/async/internal/eachOfLimit.js +90 -0
  1119. package/node_modules/async/internal/filter.js +55 -0
  1120. package/node_modules/async/internal/getIterator.js +11 -0
  1121. package/node_modules/async/internal/initialParams.js +14 -0
  1122. package/node_modules/async/internal/isArrayLike.js +10 -0
  1123. package/node_modules/async/internal/iterator.js +57 -0
  1124. package/node_modules/async/internal/map.js +30 -0
  1125. package/node_modules/async/internal/once.js +17 -0
  1126. package/node_modules/async/internal/onlyOnce.js +15 -0
  1127. package/node_modules/async/internal/parallel.js +34 -0
  1128. package/node_modules/async/internal/promiseCallback.js +23 -0
  1129. package/node_modules/async/internal/queue.js +294 -0
  1130. package/node_modules/async/internal/range.js +14 -0
  1131. package/node_modules/async/internal/reject.js +26 -0
  1132. package/node_modules/async/internal/setImmediate.js +34 -0
  1133. package/node_modules/async/internal/withoutIndex.js +10 -0
  1134. package/node_modules/async/internal/wrapAsync.js +34 -0
  1135. package/node_modules/async/log.js +41 -0
  1136. package/node_modules/async/map.js +142 -0
  1137. package/node_modules/async/mapLimit.js +45 -0
  1138. package/node_modules/async/mapSeries.js +44 -0
  1139. package/node_modules/async/mapValues.js +152 -0
  1140. package/node_modules/async/mapValuesLimit.js +61 -0
  1141. package/node_modules/async/mapValuesSeries.js +37 -0
  1142. package/node_modules/async/memoize.js +91 -0
  1143. package/node_modules/async/nextTick.js +52 -0
  1144. package/node_modules/async/package.json +75 -0
  1145. package/node_modules/async/parallel.js +180 -0
  1146. package/node_modules/async/parallelLimit.js +41 -0
  1147. package/node_modules/async/priorityQueue.js +60 -0
  1148. package/node_modules/async/queue.js +24 -0
  1149. package/node_modules/async/race.js +67 -0
  1150. package/node_modules/async/reduce.js +153 -0
  1151. package/node_modules/async/reduceRight.js +41 -0
  1152. package/node_modules/async/reflect.js +78 -0
  1153. package/node_modules/async/reflectAll.js +93 -0
  1154. package/node_modules/async/reject.js +87 -0
  1155. package/node_modules/async/rejectLimit.js +45 -0
  1156. package/node_modules/async/rejectSeries.js +43 -0
  1157. package/node_modules/async/retry.js +159 -0
  1158. package/node_modules/async/retryable.js +77 -0
  1159. package/node_modules/async/select.js +93 -0
  1160. package/node_modules/async/selectLimit.js +45 -0
  1161. package/node_modules/async/selectSeries.js +43 -0
  1162. package/node_modules/async/seq.js +79 -0
  1163. package/node_modules/async/series.js +186 -0
  1164. package/node_modules/async/setImmediate.js +45 -0
  1165. package/node_modules/async/some.js +122 -0
  1166. package/node_modules/async/someLimit.js +47 -0
  1167. package/node_modules/async/someSeries.js +46 -0
  1168. package/node_modules/async/sortBy.js +190 -0
  1169. package/node_modules/async/timeout.js +89 -0
  1170. package/node_modules/async/times.js +50 -0
  1171. package/node_modules/async/timesLimit.js +43 -0
  1172. package/node_modules/async/timesSeries.js +32 -0
  1173. package/node_modules/async/transform.js +173 -0
  1174. package/node_modules/async/tryEach.js +78 -0
  1175. package/node_modules/async/unmemoize.js +25 -0
  1176. package/node_modules/async/until.js +61 -0
  1177. package/node_modules/async/waterfall.js +105 -0
  1178. package/node_modules/async/whilst.js +78 -0
  1179. package/node_modules/async/wrapSync.js +118 -0
  1180. package/node_modules/body-parser/LICENSE +23 -0
  1181. package/node_modules/body-parser/README.md +509 -0
  1182. package/node_modules/body-parser/index.js +55 -0
  1183. package/node_modules/body-parser/lib/read.js +247 -0
  1184. package/node_modules/body-parser/lib/types/json.js +186 -0
  1185. package/node_modules/body-parser/lib/types/raw.js +42 -0
  1186. package/node_modules/body-parser/lib/types/text.js +36 -0
  1187. package/node_modules/body-parser/lib/types/urlencoded.js +138 -0
  1188. package/node_modules/body-parser/lib/utils.js +100 -0
  1189. package/node_modules/body-parser/node_modules/content-type/LICENSE +22 -0
  1190. package/node_modules/body-parser/node_modules/content-type/README.md +69 -0
  1191. package/node_modules/body-parser/node_modules/content-type/dist/index.d.ts +26 -0
  1192. package/node_modules/body-parser/node_modules/content-type/dist/index.js +170 -0
  1193. package/node_modules/body-parser/node_modules/content-type/dist/index.js.map +1 -0
  1194. package/node_modules/body-parser/node_modules/content-type/package.json +52 -0
  1195. package/node_modules/body-parser/package.json +65 -0
  1196. package/node_modules/braces/LICENSE +21 -0
  1197. package/node_modules/braces/README.md +586 -0
  1198. package/node_modules/braces/index.js +170 -0
  1199. package/node_modules/braces/lib/compile.js +60 -0
  1200. package/node_modules/braces/lib/constants.js +57 -0
  1201. package/node_modules/braces/lib/expand.js +113 -0
  1202. package/node_modules/braces/lib/parse.js +331 -0
  1203. package/node_modules/braces/lib/stringify.js +32 -0
  1204. package/node_modules/braces/lib/utils.js +122 -0
  1205. package/node_modules/braces/package.json +77 -0
  1206. package/node_modules/bytes/History.md +97 -0
  1207. package/node_modules/bytes/LICENSE +23 -0
  1208. package/node_modules/bytes/Readme.md +152 -0
  1209. package/node_modules/bytes/index.js +170 -0
  1210. package/node_modules/bytes/package.json +42 -0
  1211. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  1212. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  1213. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  1214. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  1215. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  1216. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  1217. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  1218. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  1219. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  1220. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  1221. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  1222. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  1223. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  1224. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  1225. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  1226. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  1227. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  1228. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  1229. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  1230. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  1231. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  1232. package/node_modules/call-bound/.eslintrc +13 -0
  1233. package/node_modules/call-bound/.github/FUNDING.yml +12 -0
  1234. package/node_modules/call-bound/.nycrc +9 -0
  1235. package/node_modules/call-bound/CHANGELOG.md +42 -0
  1236. package/node_modules/call-bound/LICENSE +21 -0
  1237. package/node_modules/call-bound/README.md +53 -0
  1238. package/node_modules/call-bound/index.d.ts +94 -0
  1239. package/node_modules/call-bound/index.js +19 -0
  1240. package/node_modules/call-bound/package.json +99 -0
  1241. package/node_modules/call-bound/test/index.js +61 -0
  1242. package/node_modules/call-bound/tsconfig.json +10 -0
  1243. package/node_modules/clone/.npmignore +4 -0
  1244. package/node_modules/clone/LICENSE +18 -0
  1245. package/node_modules/clone/README.md +194 -0
  1246. package/node_modules/clone/clone.iml +10 -0
  1247. package/node_modules/clone/clone.js +257 -0
  1248. package/node_modules/clone/package.json +56 -0
  1249. package/node_modules/content-disposition/LICENSE +22 -0
  1250. package/node_modules/content-disposition/README.md +141 -0
  1251. package/node_modules/content-disposition/index.js +536 -0
  1252. package/node_modules/content-disposition/package.json +40 -0
  1253. package/node_modules/content-type/HISTORY.md +29 -0
  1254. package/node_modules/content-type/LICENSE +22 -0
  1255. package/node_modules/content-type/README.md +94 -0
  1256. package/node_modules/content-type/index.js +225 -0
  1257. package/node_modules/content-type/package.json +42 -0
  1258. package/node_modules/cookie/LICENSE +24 -0
  1259. package/node_modules/cookie/README.md +317 -0
  1260. package/node_modules/cookie/SECURITY.md +25 -0
  1261. package/node_modules/cookie/index.js +335 -0
  1262. package/node_modules/cookie/package.json +44 -0
  1263. package/node_modules/cookie-signature/History.md +70 -0
  1264. package/node_modules/cookie-signature/LICENSE +22 -0
  1265. package/node_modules/cookie-signature/Readme.md +23 -0
  1266. package/node_modules/cookie-signature/index.js +47 -0
  1267. package/node_modules/cookie-signature/package.json +28 -0
  1268. package/node_modules/core-util-is/LICENSE +19 -0
  1269. package/node_modules/core-util-is/README.md +3 -0
  1270. package/node_modules/core-util-is/float.patch +604 -0
  1271. package/node_modules/core-util-is/lib/util.js +107 -0
  1272. package/node_modules/core-util-is/package.json +32 -0
  1273. package/node_modules/core-util-is/test.js +68 -0
  1274. package/node_modules/debug/LICENSE +20 -0
  1275. package/node_modules/debug/README.md +481 -0
  1276. package/node_modules/debug/package.json +64 -0
  1277. package/node_modules/debug/src/browser.js +272 -0
  1278. package/node_modules/debug/src/common.js +292 -0
  1279. package/node_modules/debug/src/index.js +10 -0
  1280. package/node_modules/debug/src/node.js +263 -0
  1281. package/node_modules/depd/History.md +103 -0
  1282. package/node_modules/depd/LICENSE +22 -0
  1283. package/node_modules/depd/Readme.md +280 -0
  1284. package/node_modules/depd/index.js +538 -0
  1285. package/node_modules/depd/lib/browser/index.js +77 -0
  1286. package/node_modules/depd/package.json +45 -0
  1287. package/node_modules/dotenv/CHANGELOG.md +520 -0
  1288. package/node_modules/dotenv/LICENSE +23 -0
  1289. package/node_modules/dotenv/README-es.md +411 -0
  1290. package/node_modules/dotenv/README.md +645 -0
  1291. package/node_modules/dotenv/SECURITY.md +1 -0
  1292. package/node_modules/dotenv/config.d.ts +1 -0
  1293. package/node_modules/dotenv/config.js +9 -0
  1294. package/node_modules/dotenv/lib/cli-options.js +17 -0
  1295. package/node_modules/dotenv/lib/env-options.js +28 -0
  1296. package/node_modules/dotenv/lib/main.d.ts +162 -0
  1297. package/node_modules/dotenv/lib/main.js +386 -0
  1298. package/node_modules/dotenv/package.json +62 -0
  1299. package/node_modules/dunder-proto/.eslintrc +5 -0
  1300. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  1301. package/node_modules/dunder-proto/.nycrc +13 -0
  1302. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  1303. package/node_modules/dunder-proto/LICENSE +21 -0
  1304. package/node_modules/dunder-proto/README.md +54 -0
  1305. package/node_modules/dunder-proto/get.d.ts +5 -0
  1306. package/node_modules/dunder-proto/get.js +30 -0
  1307. package/node_modules/dunder-proto/package.json +76 -0
  1308. package/node_modules/dunder-proto/set.d.ts +5 -0
  1309. package/node_modules/dunder-proto/set.js +35 -0
  1310. package/node_modules/dunder-proto/test/get.js +34 -0
  1311. package/node_modules/dunder-proto/test/index.js +4 -0
  1312. package/node_modules/dunder-proto/test/set.js +50 -0
  1313. package/node_modules/dunder-proto/tsconfig.json +9 -0
  1314. package/node_modules/ee-first/LICENSE +22 -0
  1315. package/node_modules/ee-first/README.md +80 -0
  1316. package/node_modules/ee-first/index.js +95 -0
  1317. package/node_modules/ee-first/package.json +29 -0
  1318. package/node_modules/encodeurl/LICENSE +22 -0
  1319. package/node_modules/encodeurl/README.md +109 -0
  1320. package/node_modules/encodeurl/index.js +60 -0
  1321. package/node_modules/encodeurl/package.json +40 -0
  1322. package/node_modules/es-define-property/.eslintrc +13 -0
  1323. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  1324. package/node_modules/es-define-property/.nycrc +9 -0
  1325. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  1326. package/node_modules/es-define-property/LICENSE +21 -0
  1327. package/node_modules/es-define-property/README.md +49 -0
  1328. package/node_modules/es-define-property/index.d.ts +3 -0
  1329. package/node_modules/es-define-property/index.js +14 -0
  1330. package/node_modules/es-define-property/package.json +81 -0
  1331. package/node_modules/es-define-property/test/index.js +56 -0
  1332. package/node_modules/es-define-property/tsconfig.json +10 -0
  1333. package/node_modules/es-errors/.eslintrc +5 -0
  1334. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  1335. package/node_modules/es-errors/CHANGELOG.md +40 -0
  1336. package/node_modules/es-errors/LICENSE +21 -0
  1337. package/node_modules/es-errors/README.md +55 -0
  1338. package/node_modules/es-errors/eval.d.ts +3 -0
  1339. package/node_modules/es-errors/eval.js +4 -0
  1340. package/node_modules/es-errors/index.d.ts +3 -0
  1341. package/node_modules/es-errors/index.js +4 -0
  1342. package/node_modules/es-errors/package.json +80 -0
  1343. package/node_modules/es-errors/range.d.ts +3 -0
  1344. package/node_modules/es-errors/range.js +4 -0
  1345. package/node_modules/es-errors/ref.d.ts +3 -0
  1346. package/node_modules/es-errors/ref.js +4 -0
  1347. package/node_modules/es-errors/syntax.d.ts +3 -0
  1348. package/node_modules/es-errors/syntax.js +4 -0
  1349. package/node_modules/es-errors/test/index.js +19 -0
  1350. package/node_modules/es-errors/tsconfig.json +49 -0
  1351. package/node_modules/es-errors/type.d.ts +3 -0
  1352. package/node_modules/es-errors/type.js +4 -0
  1353. package/node_modules/es-errors/uri.d.ts +3 -0
  1354. package/node_modules/es-errors/uri.js +4 -0
  1355. package/node_modules/es-object-atoms/.eslintrc +16 -0
  1356. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  1357. package/node_modules/es-object-atoms/CHANGELOG.md +44 -0
  1358. package/node_modules/es-object-atoms/LICENSE +21 -0
  1359. package/node_modules/es-object-atoms/README.md +63 -0
  1360. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  1361. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  1362. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  1363. package/node_modules/es-object-atoms/ToObject.js +10 -0
  1364. package/node_modules/es-object-atoms/index.d.ts +3 -0
  1365. package/node_modules/es-object-atoms/index.js +4 -0
  1366. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  1367. package/node_modules/es-object-atoms/isObject.js +6 -0
  1368. package/node_modules/es-object-atoms/package.json +79 -0
  1369. package/node_modules/es-object-atoms/test/index.js +38 -0
  1370. package/node_modules/es-object-atoms/tsconfig.json +7 -0
  1371. package/node_modules/escape-html/LICENSE +24 -0
  1372. package/node_modules/escape-html/Readme.md +43 -0
  1373. package/node_modules/escape-html/index.js +78 -0
  1374. package/node_modules/escape-html/package.json +24 -0
  1375. package/node_modules/etag/HISTORY.md +83 -0
  1376. package/node_modules/etag/LICENSE +22 -0
  1377. package/node_modules/etag/README.md +159 -0
  1378. package/node_modules/etag/index.js +131 -0
  1379. package/node_modules/etag/package.json +47 -0
  1380. package/node_modules/express/LICENSE +24 -0
  1381. package/node_modules/express/Readme.md +276 -0
  1382. package/node_modules/express/index.js +11 -0
  1383. package/node_modules/express/lib/application.js +631 -0
  1384. package/node_modules/express/lib/express.js +81 -0
  1385. package/node_modules/express/lib/request.js +514 -0
  1386. package/node_modules/express/lib/response.js +1053 -0
  1387. package/node_modules/express/lib/utils.js +271 -0
  1388. package/node_modules/express/lib/view.js +205 -0
  1389. package/node_modules/express/package.json +99 -0
  1390. package/node_modules/extsprintf/.gitmodules +3 -0
  1391. package/node_modules/extsprintf/CHANGES.md +10 -0
  1392. package/node_modules/extsprintf/CONTRIBUTING.md +17 -0
  1393. package/node_modules/extsprintf/LICENSE +19 -0
  1394. package/node_modules/extsprintf/Makefile +30 -0
  1395. package/node_modules/extsprintf/Makefile.targ +285 -0
  1396. package/node_modules/extsprintf/README.md +46 -0
  1397. package/node_modules/extsprintf/jsl.node.conf +137 -0
  1398. package/node_modules/extsprintf/lib/extsprintf.js +225 -0
  1399. package/node_modules/extsprintf/package.json +14 -0
  1400. package/node_modules/extsprintf/test/tst.basic.js +118 -0
  1401. package/node_modules/extsprintf/test/tst.invalid.js +78 -0
  1402. package/node_modules/fill-range/LICENSE +21 -0
  1403. package/node_modules/fill-range/README.md +237 -0
  1404. package/node_modules/fill-range/index.js +248 -0
  1405. package/node_modules/fill-range/package.json +74 -0
  1406. package/node_modules/finalhandler/HISTORY.md +239 -0
  1407. package/node_modules/finalhandler/LICENSE +22 -0
  1408. package/node_modules/finalhandler/README.md +150 -0
  1409. package/node_modules/finalhandler/index.js +293 -0
  1410. package/node_modules/finalhandler/package.json +47 -0
  1411. package/node_modules/forwarded/HISTORY.md +21 -0
  1412. package/node_modules/forwarded/LICENSE +22 -0
  1413. package/node_modules/forwarded/README.md +57 -0
  1414. package/node_modules/forwarded/index.js +90 -0
  1415. package/node_modules/forwarded/package.json +45 -0
  1416. package/node_modules/fresh/HISTORY.md +80 -0
  1417. package/node_modules/fresh/LICENSE +23 -0
  1418. package/node_modules/fresh/README.md +117 -0
  1419. package/node_modules/fresh/index.js +136 -0
  1420. package/node_modules/fresh/package.json +46 -0
  1421. package/node_modules/function-bind/.eslintrc +21 -0
  1422. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  1423. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  1424. package/node_modules/function-bind/.nycrc +13 -0
  1425. package/node_modules/function-bind/CHANGELOG.md +136 -0
  1426. package/node_modules/function-bind/LICENSE +20 -0
  1427. package/node_modules/function-bind/README.md +46 -0
  1428. package/node_modules/function-bind/implementation.js +84 -0
  1429. package/node_modules/function-bind/index.js +5 -0
  1430. package/node_modules/function-bind/package.json +87 -0
  1431. package/node_modules/function-bind/test/.eslintrc +9 -0
  1432. package/node_modules/function-bind/test/index.js +252 -0
  1433. package/node_modules/get-intrinsic/.eslintrc +42 -0
  1434. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  1435. package/node_modules/get-intrinsic/.nycrc +9 -0
  1436. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  1437. package/node_modules/get-intrinsic/LICENSE +21 -0
  1438. package/node_modules/get-intrinsic/README.md +71 -0
  1439. package/node_modules/get-intrinsic/index.js +378 -0
  1440. package/node_modules/get-intrinsic/package.json +97 -0
  1441. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  1442. package/node_modules/get-proto/.eslintrc +10 -0
  1443. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  1444. package/node_modules/get-proto/.nycrc +9 -0
  1445. package/node_modules/get-proto/CHANGELOG.md +21 -0
  1446. package/node_modules/get-proto/LICENSE +21 -0
  1447. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  1448. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  1449. package/node_modules/get-proto/README.md +50 -0
  1450. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  1451. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  1452. package/node_modules/get-proto/index.d.ts +5 -0
  1453. package/node_modules/get-proto/index.js +27 -0
  1454. package/node_modules/get-proto/package.json +81 -0
  1455. package/node_modules/get-proto/test/index.js +68 -0
  1456. package/node_modules/get-proto/tsconfig.json +9 -0
  1457. package/node_modules/gopd/.eslintrc +16 -0
  1458. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  1459. package/node_modules/gopd/CHANGELOG.md +45 -0
  1460. package/node_modules/gopd/LICENSE +21 -0
  1461. package/node_modules/gopd/README.md +40 -0
  1462. package/node_modules/gopd/gOPD.d.ts +1 -0
  1463. package/node_modules/gopd/gOPD.js +4 -0
  1464. package/node_modules/gopd/index.d.ts +5 -0
  1465. package/node_modules/gopd/index.js +15 -0
  1466. package/node_modules/gopd/package.json +77 -0
  1467. package/node_modules/gopd/test/index.js +36 -0
  1468. package/node_modules/gopd/tsconfig.json +9 -0
  1469. package/node_modules/handlebars/LICENSE +19 -0
  1470. package/node_modules/handlebars/README.markdown +167 -0
  1471. package/node_modules/handlebars/bin/.eslintrc.js +6 -0
  1472. package/node_modules/handlebars/bin/handlebars +176 -0
  1473. package/node_modules/handlebars/dist/amd/handlebars/base.js +106 -0
  1474. package/node_modules/handlebars/dist/amd/handlebars/compiler/ast.js +31 -0
  1475. package/node_modules/handlebars/dist/amd/handlebars/compiler/base.js +102 -0
  1476. package/node_modules/handlebars/dist/amd/handlebars/compiler/code-gen.js +165 -0
  1477. package/node_modules/handlebars/dist/amd/handlebars/compiler/compiler.js +562 -0
  1478. package/node_modules/handlebars/dist/amd/handlebars/compiler/helpers.js +228 -0
  1479. package/node_modules/handlebars/dist/amd/handlebars/compiler/javascript-compiler.js +1158 -0
  1480. package/node_modules/handlebars/dist/amd/handlebars/compiler/parser.js +737 -0
  1481. package/node_modules/handlebars/dist/amd/handlebars/compiler/printer.js +186 -0
  1482. package/node_modules/handlebars/dist/amd/handlebars/compiler/visitor.js +138 -0
  1483. package/node_modules/handlebars/dist/amd/handlebars/compiler/whitespace-control.js +219 -0
  1484. package/node_modules/handlebars/dist/amd/handlebars/decorators/inline.js +25 -0
  1485. package/node_modules/handlebars/dist/amd/handlebars/decorators.js +16 -0
  1486. package/node_modules/handlebars/dist/amd/handlebars/exception.js +64 -0
  1487. package/node_modules/handlebars/dist/amd/handlebars/helpers/block-helper-missing.js +35 -0
  1488. package/node_modules/handlebars/dist/amd/handlebars/helpers/each.js +99 -0
  1489. package/node_modules/handlebars/dist/amd/handlebars/helpers/helper-missing.js +22 -0
  1490. package/node_modules/handlebars/dist/amd/handlebars/helpers/if.js +41 -0
  1491. package/node_modules/handlebars/dist/amd/handlebars/helpers/log.js +24 -0
  1492. package/node_modules/handlebars/dist/amd/handlebars/helpers/lookup.js +14 -0
  1493. package/node_modules/handlebars/dist/amd/handlebars/helpers/with.js +38 -0
  1494. package/node_modules/handlebars/dist/amd/handlebars/helpers.js +45 -0
  1495. package/node_modules/handlebars/dist/amd/handlebars/internal/proto-access.js +76 -0
  1496. package/node_modules/handlebars/dist/amd/handlebars/internal/wrapHelper.js +21 -0
  1497. package/node_modules/handlebars/dist/amd/handlebars/logger.js +44 -0
  1498. package/node_modules/handlebars/dist/amd/handlebars/no-conflict.js +28 -0
  1499. package/node_modules/handlebars/dist/amd/handlebars/runtime.js +363 -0
  1500. package/node_modules/handlebars/dist/amd/handlebars/safe-string.js +15 -0
  1501. package/node_modules/handlebars/dist/amd/handlebars/utils.js +126 -0
  1502. package/node_modules/handlebars/dist/amd/handlebars.js +52 -0
  1503. package/node_modules/handlebars/dist/amd/handlebars.runtime.js +44 -0
  1504. package/node_modules/handlebars/dist/amd/precompiler.js +345 -0
  1505. package/node_modules/handlebars/dist/cjs/handlebars/base.js +116 -0
  1506. package/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js +31 -0
  1507. package/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js +116 -0
  1508. package/node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js +168 -0
  1509. package/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js +566 -0
  1510. package/node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js +228 -0
  1511. package/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js +1166 -0
  1512. package/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js +737 -0
  1513. package/node_modules/handlebars/dist/cjs/handlebars/compiler/printer.js +186 -0
  1514. package/node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js +140 -0
  1515. package/node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js +221 -0
  1516. package/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js +29 -0
  1517. package/node_modules/handlebars/dist/cjs/handlebars/decorators.js +16 -0
  1518. package/node_modules/handlebars/dist/cjs/handlebars/exception.js +64 -0
  1519. package/node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js +39 -0
  1520. package/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js +104 -0
  1521. package/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js +25 -0
  1522. package/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js +46 -0
  1523. package/node_modules/handlebars/dist/cjs/handlebars/helpers/log.js +26 -0
  1524. package/node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js +16 -0
  1525. package/node_modules/handlebars/dist/cjs/handlebars/helpers/with.js +43 -0
  1526. package/node_modules/handlebars/dist/cjs/handlebars/helpers.js +57 -0
  1527. package/node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js +78 -0
  1528. package/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js +19 -0
  1529. package/node_modules/handlebars/dist/cjs/handlebars/logger.js +47 -0
  1530. package/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js +30 -0
  1531. package/node_modules/handlebars/dist/cjs/handlebars/runtime.js +379 -0
  1532. package/node_modules/handlebars/dist/cjs/handlebars/safe-string.js +15 -0
  1533. package/node_modules/handlebars/dist/cjs/handlebars/utils.js +124 -0
  1534. package/node_modules/handlebars/dist/cjs/handlebars.js +66 -0
  1535. package/node_modules/handlebars/dist/cjs/handlebars.runtime.js +66 -0
  1536. package/node_modules/handlebars/dist/cjs/precompiler.js +359 -0
  1537. package/node_modules/handlebars/dist/handlebars.amd.js +4694 -0
  1538. package/node_modules/handlebars/dist/handlebars.amd.min.js +29 -0
  1539. package/node_modules/handlebars/dist/handlebars.js +6026 -0
  1540. package/node_modules/handlebars/dist/handlebars.min.js +29 -0
  1541. package/node_modules/handlebars/dist/handlebars.runtime.amd.js +1292 -0
  1542. package/node_modules/handlebars/dist/handlebars.runtime.amd.min.js +27 -0
  1543. package/node_modules/handlebars/dist/handlebars.runtime.js +2548 -0
  1544. package/node_modules/handlebars/dist/handlebars.runtime.min.js +27 -0
  1545. package/node_modules/handlebars/lib/.eslintrc.js +8 -0
  1546. package/node_modules/handlebars/lib/handlebars/base.js +94 -0
  1547. package/node_modules/handlebars/lib/handlebars/compiler/ast.js +32 -0
  1548. package/node_modules/handlebars/lib/handlebars/compiler/base.js +101 -0
  1549. package/node_modules/handlebars/lib/handlebars/compiler/code-gen.js +171 -0
  1550. package/node_modules/handlebars/lib/handlebars/compiler/compiler.js +594 -0
  1551. package/node_modules/handlebars/lib/handlebars/compiler/helpers.js +219 -0
  1552. package/node_modules/handlebars/lib/handlebars/compiler/javascript-compiler.js +1306 -0
  1553. package/node_modules/handlebars/lib/handlebars/compiler/parser.js +622 -0
  1554. package/node_modules/handlebars/lib/handlebars/compiler/printer.js +178 -0
  1555. package/node_modules/handlebars/lib/handlebars/compiler/visitor.js +136 -0
  1556. package/node_modules/handlebars/lib/handlebars/compiler/whitespace-control.js +234 -0
  1557. package/node_modules/handlebars/lib/handlebars/decorators/inline.js +22 -0
  1558. package/node_modules/handlebars/lib/handlebars/decorators.js +5 -0
  1559. package/node_modules/handlebars/lib/handlebars/exception.js +68 -0
  1560. package/node_modules/handlebars/lib/handlebars/helpers/block-helper-missing.js +35 -0
  1561. package/node_modules/handlebars/lib/handlebars/helpers/each.js +101 -0
  1562. package/node_modules/handlebars/lib/handlebars/helpers/helper-missing.js +15 -0
  1563. package/node_modules/handlebars/lib/handlebars/helpers/if.js +33 -0
  1564. package/node_modules/handlebars/lib/handlebars/helpers/log.js +19 -0
  1565. package/node_modules/handlebars/lib/handlebars/helpers/lookup.js +9 -0
  1566. package/node_modules/handlebars/lib/handlebars/helpers/with.js +39 -0
  1567. package/node_modules/handlebars/lib/handlebars/helpers.js +27 -0
  1568. package/node_modules/handlebars/lib/handlebars/internal/proto-access.js +69 -0
  1569. package/node_modules/handlebars/lib/handlebars/internal/wrapHelper.js +13 -0
  1570. package/node_modules/handlebars/lib/handlebars/logger.js +39 -0
  1571. package/node_modules/handlebars/lib/handlebars/no-conflict.js +23 -0
  1572. package/node_modules/handlebars/lib/handlebars/runtime.js +452 -0
  1573. package/node_modules/handlebars/lib/handlebars/safe-string.js +10 -0
  1574. package/node_modules/handlebars/lib/handlebars/utils.js +116 -0
  1575. package/node_modules/handlebars/lib/handlebars.js +46 -0
  1576. package/node_modules/handlebars/lib/handlebars.runtime.js +37 -0
  1577. package/node_modules/handlebars/lib/index.js +26 -0
  1578. package/node_modules/handlebars/lib/precompiler.js +378 -0
  1579. package/node_modules/handlebars/package.json +134 -0
  1580. package/node_modules/handlebars/release-notes.md +1112 -0
  1581. package/node_modules/handlebars/runtime.d.ts +5 -0
  1582. package/node_modules/handlebars/runtime.js +3 -0
  1583. package/node_modules/handlebars/types/index.d.ts +422 -0
  1584. package/node_modules/has-symbols/.eslintrc +11 -0
  1585. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  1586. package/node_modules/has-symbols/.nycrc +9 -0
  1587. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  1588. package/node_modules/has-symbols/LICENSE +21 -0
  1589. package/node_modules/has-symbols/README.md +46 -0
  1590. package/node_modules/has-symbols/index.d.ts +3 -0
  1591. package/node_modules/has-symbols/index.js +14 -0
  1592. package/node_modules/has-symbols/package.json +111 -0
  1593. package/node_modules/has-symbols/shams.d.ts +3 -0
  1594. package/node_modules/has-symbols/shams.js +45 -0
  1595. package/node_modules/has-symbols/test/index.js +22 -0
  1596. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  1597. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  1598. package/node_modules/has-symbols/test/tests.js +58 -0
  1599. package/node_modules/has-symbols/tsconfig.json +10 -0
  1600. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  1601. package/node_modules/hasown/.nycrc +13 -0
  1602. package/node_modules/hasown/CHANGELOG.md +58 -0
  1603. package/node_modules/hasown/LICENSE +21 -0
  1604. package/node_modules/hasown/README.md +40 -0
  1605. package/node_modules/hasown/eslint.config.mjs +6 -0
  1606. package/node_modules/hasown/index.d.ts +3 -0
  1607. package/node_modules/hasown/index.js +8 -0
  1608. package/node_modules/hasown/package.json +91 -0
  1609. package/node_modules/hasown/tsconfig.json +6 -0
  1610. package/node_modules/hdb/.claude/skills/hdb-commit-msg/SKILL.md +132 -0
  1611. package/node_modules/hdb/.hyperspace/pull_request_bot.json +26 -0
  1612. package/node_modules/hdb/.jshintrc +41 -0
  1613. package/node_modules/hdb/.pipeline/config.yml +21 -0
  1614. package/node_modules/hdb/.reuse/dep5 +28 -0
  1615. package/node_modules/hdb/CLAUDE.md +41 -0
  1616. package/node_modules/hdb/LICENSE +202 -0
  1617. package/node_modules/hdb/LICENSES/Apache-2.0.txt +73 -0
  1618. package/node_modules/hdb/Makefile +41 -0
  1619. package/node_modules/hdb/README.md +778 -0
  1620. package/node_modules/hdb/cfg/VERSION +1 -0
  1621. package/node_modules/hdb/cfg/xmake.cfg +7 -0
  1622. package/node_modules/hdb/chrome/sockets/tcp.js +28 -0
  1623. package/node_modules/hdb/index.js +21 -0
  1624. package/node_modules/hdb/lib/Client.js +327 -0
  1625. package/node_modules/hdb/lib/index.js +37 -0
  1626. package/node_modules/hdb/lib/protocol/ClientInfo.js +77 -0
  1627. package/node_modules/hdb/lib/protocol/Compressor.js +122 -0
  1628. package/node_modules/hdb/lib/protocol/Connection.js +707 -0
  1629. package/node_modules/hdb/lib/protocol/ConnectionManager.js +124 -0
  1630. package/node_modules/hdb/lib/protocol/ConnectionTopology.js +303 -0
  1631. package/node_modules/hdb/lib/protocol/ExecuteTask.js +266 -0
  1632. package/node_modules/hdb/lib/protocol/Lob.js +168 -0
  1633. package/node_modules/hdb/lib/protocol/MessageBuffer.js +74 -0
  1634. package/node_modules/hdb/lib/protocol/Parser.js +258 -0
  1635. package/node_modules/hdb/lib/protocol/PhysicalConnection.js +442 -0
  1636. package/node_modules/hdb/lib/protocol/Proxy.js +373 -0
  1637. package/node_modules/hdb/lib/protocol/Reader.js +470 -0
  1638. package/node_modules/hdb/lib/protocol/Result.js +287 -0
  1639. package/node_modules/hdb/lib/protocol/ResultSet.js +490 -0
  1640. package/node_modules/hdb/lib/protocol/ResultSetTransform.js +126 -0
  1641. package/node_modules/hdb/lib/protocol/Statement.js +219 -0
  1642. package/node_modules/hdb/lib/protocol/Stringifier.js +82 -0
  1643. package/node_modules/hdb/lib/protocol/Transaction.js +64 -0
  1644. package/node_modules/hdb/lib/protocol/Writer.js +1205 -0
  1645. package/node_modules/hdb/lib/protocol/auth/JWT.js +40 -0
  1646. package/node_modules/hdb/lib/protocol/auth/LDAP.js +133 -0
  1647. package/node_modules/hdb/lib/protocol/auth/Manager.js +162 -0
  1648. package/node_modules/hdb/lib/protocol/auth/SAML.js +40 -0
  1649. package/node_modules/hdb/lib/protocol/auth/SCRAMSHA256.js +175 -0
  1650. package/node_modules/hdb/lib/protocol/auth/SessionCookie.js +43 -0
  1651. package/node_modules/hdb/lib/protocol/auth/X509.js +211 -0
  1652. package/node_modules/hdb/lib/protocol/auth/index.js +20 -0
  1653. package/node_modules/hdb/lib/protocol/common/ClientContextOption.js +20 -0
  1654. package/node_modules/hdb/lib/protocol/common/ClientDistributionMode.js +21 -0
  1655. package/node_modules/hdb/lib/protocol/common/CommandOption.js +21 -0
  1656. package/node_modules/hdb/lib/protocol/common/CommitOption.js +18 -0
  1657. package/node_modules/hdb/lib/protocol/common/ConnectOption.js +43 -0
  1658. package/node_modules/hdb/lib/protocol/common/ConnectOptionType.js +45 -0
  1659. package/node_modules/hdb/lib/protocol/common/Constants.js +32 -0
  1660. package/node_modules/hdb/lib/protocol/common/DataFormatVersion.js +29 -0
  1661. package/node_modules/hdb/lib/protocol/common/DbConnectInfoOption.js +21 -0
  1662. package/node_modules/hdb/lib/protocol/common/DistributionProtocolVersion.js +19 -0
  1663. package/node_modules/hdb/lib/protocol/common/ErrorLevel.js +20 -0
  1664. package/node_modules/hdb/lib/protocol/common/FunctionCode.js +41 -0
  1665. package/node_modules/hdb/lib/protocol/common/IoType.js +20 -0
  1666. package/node_modules/hdb/lib/protocol/common/LobOptions.js +20 -0
  1667. package/node_modules/hdb/lib/protocol/common/LobSourceType.js +21 -0
  1668. package/node_modules/hdb/lib/protocol/common/MessageType.js +41 -0
  1669. package/node_modules/hdb/lib/protocol/common/NormalizedTypeCode.js +83 -0
  1670. package/node_modules/hdb/lib/protocol/common/ParameterMode.js +23 -0
  1671. package/node_modules/hdb/lib/protocol/common/PartAttributes.js +23 -0
  1672. package/node_modules/hdb/lib/protocol/common/PartKind.js +70 -0
  1673. package/node_modules/hdb/lib/protocol/common/ProxyConstants.js +129 -0
  1674. package/node_modules/hdb/lib/protocol/common/ReadFunction.js +85 -0
  1675. package/node_modules/hdb/lib/protocol/common/RedirectType.js +21 -0
  1676. package/node_modules/hdb/lib/protocol/common/SegmentKind.js +21 -0
  1677. package/node_modules/hdb/lib/protocol/common/SessionContext.js +23 -0
  1678. package/node_modules/hdb/lib/protocol/common/StatementContext.js +19 -0
  1679. package/node_modules/hdb/lib/protocol/common/StatementContextType.js +21 -0
  1680. package/node_modules/hdb/lib/protocol/common/TopologyInformation.js +31 -0
  1681. package/node_modules/hdb/lib/protocol/common/TransactionFlag.js +24 -0
  1682. package/node_modules/hdb/lib/protocol/common/TransactionFlagType.js +26 -0
  1683. package/node_modules/hdb/lib/protocol/common/TypeCode.js +93 -0
  1684. package/node_modules/hdb/lib/protocol/common/index.js +70 -0
  1685. package/node_modules/hdb/lib/protocol/data/Binary.js +42 -0
  1686. package/node_modules/hdb/lib/protocol/data/Default.js +42 -0
  1687. package/node_modules/hdb/lib/protocol/data/Fields.js +139 -0
  1688. package/node_modules/hdb/lib/protocol/data/Int32.js +55 -0
  1689. package/node_modules/hdb/lib/protocol/data/MultilineOptions.js +74 -0
  1690. package/node_modules/hdb/lib/protocol/data/Options.js +188 -0
  1691. package/node_modules/hdb/lib/protocol/data/ParameterMetadata.js +76 -0
  1692. package/node_modules/hdb/lib/protocol/data/Parameters.js +52 -0
  1693. package/node_modules/hdb/lib/protocol/data/ReadLobReply.js +72 -0
  1694. package/node_modules/hdb/lib/protocol/data/ReadLobRequest.js +69 -0
  1695. package/node_modules/hdb/lib/protocol/data/ResultSetMetadata.js +101 -0
  1696. package/node_modules/hdb/lib/protocol/data/SqlError.js +70 -0
  1697. package/node_modules/hdb/lib/protocol/data/Text.js +44 -0
  1698. package/node_modules/hdb/lib/protocol/data/Text20.js +44 -0
  1699. package/node_modules/hdb/lib/protocol/data/TextList.js +82 -0
  1700. package/node_modules/hdb/lib/protocol/data/TransactionFlags.js +26 -0
  1701. package/node_modules/hdb/lib/protocol/data/WriteLobReply.js +32 -0
  1702. package/node_modules/hdb/lib/protocol/data/index.js +76 -0
  1703. package/node_modules/hdb/lib/protocol/index.js +38 -0
  1704. package/node_modules/hdb/lib/protocol/part/AbstractOptions.js +55 -0
  1705. package/node_modules/hdb/lib/protocol/part/ClientContextOptions.js +46 -0
  1706. package/node_modules/hdb/lib/protocol/part/ConnectOptions.js +155 -0
  1707. package/node_modules/hdb/lib/protocol/part/DbConnectInfoOptions.js +41 -0
  1708. package/node_modules/hdb/lib/protocol/part/StatementContext.js +52 -0
  1709. package/node_modules/hdb/lib/protocol/part/index.js +19 -0
  1710. package/node_modules/hdb/lib/protocol/reply/Part.js +126 -0
  1711. package/node_modules/hdb/lib/protocol/reply/Segment.js +204 -0
  1712. package/node_modules/hdb/lib/protocol/reply/index.js +17 -0
  1713. package/node_modules/hdb/lib/protocol/request/Part.js +52 -0
  1714. package/node_modules/hdb/lib/protocol/request/Segment.js +120 -0
  1715. package/node_modules/hdb/lib/protocol/request/index.js +209 -0
  1716. package/node_modules/hdb/lib/protocol/tcp.js +186 -0
  1717. package/node_modules/hdb/lib/util/Network.js +230 -0
  1718. package/node_modules/hdb/lib/util/Queue.js +124 -0
  1719. package/node_modules/hdb/lib/util/bignum.js +844 -0
  1720. package/node_modules/hdb/lib/util/calendar.js +121 -0
  1721. package/node_modules/hdb/lib/util/convert.js +36 -0
  1722. package/node_modules/hdb/lib/util/index.js +314 -0
  1723. package/node_modules/hdb/lib/util/zeropad.js +110 -0
  1724. package/node_modules/hdb/node_modules/iconv-lite/Changelog.md +236 -0
  1725. package/node_modules/hdb/node_modules/iconv-lite/LICENSE +21 -0
  1726. package/node_modules/hdb/node_modules/iconv-lite/README.md +138 -0
  1727. package/node_modules/hdb/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  1728. package/node_modules/hdb/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  1729. package/node_modules/hdb/node_modules/iconv-lite/encodings/index.js +23 -0
  1730. package/node_modules/hdb/node_modules/iconv-lite/encodings/internal.js +218 -0
  1731. package/node_modules/hdb/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  1732. package/node_modules/hdb/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  1733. package/node_modules/hdb/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
  1734. package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  1735. package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  1736. package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  1737. package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  1738. package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  1739. package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  1740. package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  1741. package/node_modules/hdb/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  1742. package/node_modules/hdb/node_modules/iconv-lite/encodings/utf16.js +187 -0
  1743. package/node_modules/hdb/node_modules/iconv-lite/encodings/utf32.js +307 -0
  1744. package/node_modules/hdb/node_modules/iconv-lite/encodings/utf7.js +283 -0
  1745. package/node_modules/hdb/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  1746. package/node_modules/hdb/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  1747. package/node_modules/hdb/node_modules/iconv-lite/lib/index.d.ts +41 -0
  1748. package/node_modules/hdb/node_modules/iconv-lite/lib/index.js +183 -0
  1749. package/node_modules/hdb/node_modules/iconv-lite/lib/streams.js +105 -0
  1750. package/node_modules/hdb/node_modules/iconv-lite/package.json +59 -0
  1751. package/node_modules/hdb/package.json +58 -0
  1752. package/node_modules/http-errors/HISTORY.md +186 -0
  1753. package/node_modules/http-errors/LICENSE +23 -0
  1754. package/node_modules/http-errors/README.md +169 -0
  1755. package/node_modules/http-errors/index.js +290 -0
  1756. package/node_modules/http-errors/package.json +54 -0
  1757. package/node_modules/iconv-lite/LICENSE +21 -0
  1758. package/node_modules/iconv-lite/README.md +138 -0
  1759. package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  1760. package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  1761. package/node_modules/iconv-lite/encodings/index.js +23 -0
  1762. package/node_modules/iconv-lite/encodings/internal.js +218 -0
  1763. package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  1764. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  1765. package/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
  1766. package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  1767. package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  1768. package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  1769. package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  1770. package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  1771. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  1772. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  1773. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  1774. package/node_modules/iconv-lite/encodings/utf16.js +187 -0
  1775. package/node_modules/iconv-lite/encodings/utf32.js +314 -0
  1776. package/node_modules/iconv-lite/encodings/utf7.js +283 -0
  1777. package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  1778. package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  1779. package/node_modules/iconv-lite/lib/index.d.ts +129 -0
  1780. package/node_modules/iconv-lite/lib/index.js +182 -0
  1781. package/node_modules/iconv-lite/lib/streams.js +105 -0
  1782. package/node_modules/iconv-lite/package.json +70 -0
  1783. package/node_modules/iconv-lite/types/encodings.d.ts +425 -0
  1784. package/node_modules/inherits/LICENSE +16 -0
  1785. package/node_modules/inherits/README.md +42 -0
  1786. package/node_modules/inherits/inherits.js +9 -0
  1787. package/node_modules/inherits/inherits_browser.js +27 -0
  1788. package/node_modules/inherits/package.json +29 -0
  1789. package/node_modules/ipaddr.js/LICENSE +19 -0
  1790. package/node_modules/ipaddr.js/README.md +233 -0
  1791. package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
  1792. package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
  1793. package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
  1794. package/node_modules/ipaddr.js/package.json +35 -0
  1795. package/node_modules/is-number/LICENSE +21 -0
  1796. package/node_modules/is-number/README.md +187 -0
  1797. package/node_modules/is-number/index.js +18 -0
  1798. package/node_modules/is-number/package.json +82 -0
  1799. package/node_modules/is-promise/LICENSE +19 -0
  1800. package/node_modules/is-promise/index.d.ts +2 -0
  1801. package/node_modules/is-promise/index.js +6 -0
  1802. package/node_modules/is-promise/index.mjs +3 -0
  1803. package/node_modules/is-promise/package.json +30 -0
  1804. package/node_modules/is-promise/readme.md +33 -0
  1805. package/node_modules/livereload-js/.github/workflows/main.yml +23 -0
  1806. package/node_modules/livereload-js/LICENSE +20 -0
  1807. package/node_modules/livereload-js/README.md +250 -0
  1808. package/node_modules/livereload-js/dist/livereload.js +3795 -0
  1809. package/node_modules/livereload-js/dist/livereload.min.js +1 -0
  1810. package/node_modules/livereload-js/package.json +53 -0
  1811. package/node_modules/livereload-js/src/connector.js +169 -0
  1812. package/node_modules/livereload-js/src/customevents.js +37 -0
  1813. package/node_modules/livereload-js/src/less.js +60 -0
  1814. package/node_modules/livereload-js/src/livereload.js +245 -0
  1815. package/node_modules/livereload-js/src/options.js +96 -0
  1816. package/node_modules/livereload-js/src/protocol.js +98 -0
  1817. package/node_modules/livereload-js/src/reloader.js +611 -0
  1818. package/node_modules/livereload-js/src/startup.js +16 -0
  1819. package/node_modules/livereload-js/src/timer.js +35 -0
  1820. package/node_modules/lz4-wasm-nodejs/LICENSE_APACHE +176 -0
  1821. package/node_modules/lz4-wasm-nodejs/LICENSE_MIT +25 -0
  1822. package/node_modules/lz4-wasm-nodejs/README.md +71 -0
  1823. package/node_modules/lz4-wasm-nodejs/lz4_wasm_nodejs.d.ts +12 -0
  1824. package/node_modules/lz4-wasm-nodejs/lz4_wasm_nodejs.js +127 -0
  1825. package/node_modules/lz4-wasm-nodejs/lz4_wasm_nodejs_bg.wasm +0 -0
  1826. package/node_modules/lz4-wasm-nodejs/package.json +26 -0
  1827. package/node_modules/math-intrinsics/.eslintrc +16 -0
  1828. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  1829. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  1830. package/node_modules/math-intrinsics/LICENSE +21 -0
  1831. package/node_modules/math-intrinsics/README.md +50 -0
  1832. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  1833. package/node_modules/math-intrinsics/abs.js +4 -0
  1834. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  1835. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  1836. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  1837. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  1838. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  1839. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  1840. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  1841. package/node_modules/math-intrinsics/floor.js +4 -0
  1842. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  1843. package/node_modules/math-intrinsics/isFinite.js +12 -0
  1844. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  1845. package/node_modules/math-intrinsics/isInteger.js +16 -0
  1846. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  1847. package/node_modules/math-intrinsics/isNaN.js +6 -0
  1848. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  1849. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  1850. package/node_modules/math-intrinsics/max.d.ts +1 -0
  1851. package/node_modules/math-intrinsics/max.js +4 -0
  1852. package/node_modules/math-intrinsics/min.d.ts +1 -0
  1853. package/node_modules/math-intrinsics/min.js +4 -0
  1854. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  1855. package/node_modules/math-intrinsics/mod.js +9 -0
  1856. package/node_modules/math-intrinsics/package.json +86 -0
  1857. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  1858. package/node_modules/math-intrinsics/pow.js +4 -0
  1859. package/node_modules/math-intrinsics/round.d.ts +1 -0
  1860. package/node_modules/math-intrinsics/round.js +4 -0
  1861. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  1862. package/node_modules/math-intrinsics/sign.js +11 -0
  1863. package/node_modules/math-intrinsics/test/index.js +192 -0
  1864. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  1865. package/node_modules/media-typer/HISTORY.md +50 -0
  1866. package/node_modules/media-typer/LICENSE +22 -0
  1867. package/node_modules/media-typer/README.md +93 -0
  1868. package/node_modules/media-typer/index.js +143 -0
  1869. package/node_modules/media-typer/package.json +33 -0
  1870. package/node_modules/merge-descriptors/index.d.ts +11 -0
  1871. package/node_modules/merge-descriptors/index.js +26 -0
  1872. package/node_modules/merge-descriptors/license +11 -0
  1873. package/node_modules/merge-descriptors/package.json +50 -0
  1874. package/node_modules/merge-descriptors/readme.md +55 -0
  1875. package/node_modules/micromatch/LICENSE +21 -0
  1876. package/node_modules/micromatch/README.md +1024 -0
  1877. package/node_modules/micromatch/index.js +474 -0
  1878. package/node_modules/micromatch/node_modules/picomatch/LICENSE +21 -0
  1879. package/node_modules/micromatch/node_modules/picomatch/README.md +716 -0
  1880. package/node_modules/micromatch/node_modules/picomatch/index.js +3 -0
  1881. package/node_modules/micromatch/node_modules/picomatch/lib/constants.js +184 -0
  1882. package/node_modules/micromatch/node_modules/picomatch/lib/parse.js +1392 -0
  1883. package/node_modules/micromatch/node_modules/picomatch/lib/picomatch.js +342 -0
  1884. package/node_modules/micromatch/node_modules/picomatch/lib/scan.js +391 -0
  1885. package/node_modules/micromatch/node_modules/picomatch/lib/utils.js +64 -0
  1886. package/node_modules/micromatch/node_modules/picomatch/package.json +81 -0
  1887. package/node_modules/micromatch/package.json +119 -0
  1888. package/node_modules/mime-db/HISTORY.md +541 -0
  1889. package/node_modules/mime-db/LICENSE +23 -0
  1890. package/node_modules/mime-db/README.md +109 -0
  1891. package/node_modules/mime-db/db.json +9342 -0
  1892. package/node_modules/mime-db/index.js +12 -0
  1893. package/node_modules/mime-db/package.json +56 -0
  1894. package/node_modules/mime-types/HISTORY.md +428 -0
  1895. package/node_modules/mime-types/LICENSE +23 -0
  1896. package/node_modules/mime-types/README.md +126 -0
  1897. package/node_modules/mime-types/index.js +211 -0
  1898. package/node_modules/mime-types/mimeScore.js +57 -0
  1899. package/node_modules/mime-types/package.json +49 -0
  1900. package/node_modules/minimist/.eslintrc +29 -0
  1901. package/node_modules/minimist/.github/FUNDING.yml +12 -0
  1902. package/node_modules/minimist/.nycrc +14 -0
  1903. package/node_modules/minimist/CHANGELOG.md +298 -0
  1904. package/node_modules/minimist/LICENSE +18 -0
  1905. package/node_modules/minimist/README.md +121 -0
  1906. package/node_modules/minimist/example/parse.js +4 -0
  1907. package/node_modules/minimist/index.js +263 -0
  1908. package/node_modules/minimist/package.json +75 -0
  1909. package/node_modules/minimist/test/all_bool.js +34 -0
  1910. package/node_modules/minimist/test/bool.js +177 -0
  1911. package/node_modules/minimist/test/dash.js +43 -0
  1912. package/node_modules/minimist/test/default_bool.js +37 -0
  1913. package/node_modules/minimist/test/dotted.js +24 -0
  1914. package/node_modules/minimist/test/kv_short.js +32 -0
  1915. package/node_modules/minimist/test/long.js +33 -0
  1916. package/node_modules/minimist/test/num.js +38 -0
  1917. package/node_modules/minimist/test/parse.js +209 -0
  1918. package/node_modules/minimist/test/parse_modified.js +11 -0
  1919. package/node_modules/minimist/test/proto.js +64 -0
  1920. package/node_modules/minimist/test/short.js +69 -0
  1921. package/node_modules/minimist/test/stop_early.js +17 -0
  1922. package/node_modules/minimist/test/unknown.js +104 -0
  1923. package/node_modules/minimist/test/whitespace.js +10 -0
  1924. package/node_modules/ms/index.js +162 -0
  1925. package/node_modules/ms/license.md +21 -0
  1926. package/node_modules/ms/package.json +38 -0
  1927. package/node_modules/ms/readme.md +59 -0
  1928. package/node_modules/mustache/CHANGELOG.md +618 -0
  1929. package/node_modules/mustache/LICENSE +11 -0
  1930. package/node_modules/mustache/README.md +621 -0
  1931. package/node_modules/mustache/bin/mustache +150 -0
  1932. package/node_modules/mustache/mustache.js +772 -0
  1933. package/node_modules/mustache/mustache.min.js +1 -0
  1934. package/node_modules/mustache/mustache.mjs +764 -0
  1935. package/node_modules/mustache/package.json +67 -0
  1936. package/node_modules/mustache/wrappers/dojo/mustache.js.post +4 -0
  1937. package/node_modules/mustache/wrappers/dojo/mustache.js.pre +9 -0
  1938. package/node_modules/mustache/wrappers/jquery/mustache.js.post +13 -0
  1939. package/node_modules/mustache/wrappers/jquery/mustache.js.pre +9 -0
  1940. package/node_modules/mustache/wrappers/mootools/mustache.js.post +5 -0
  1941. package/node_modules/mustache/wrappers/mootools/mustache.js.pre +2 -0
  1942. package/node_modules/mustache/wrappers/qooxdoo/mustache.js.post +9 -0
  1943. package/node_modules/mustache/wrappers/qooxdoo/mustache.js.pre +172 -0
  1944. package/node_modules/mustache/wrappers/yui3/mustache.js.post +4 -0
  1945. package/node_modules/mustache/wrappers/yui3/mustache.js.pre +1 -0
  1946. package/node_modules/negotiator/HISTORY.md +114 -0
  1947. package/node_modules/negotiator/LICENSE +24 -0
  1948. package/node_modules/negotiator/README.md +212 -0
  1949. package/node_modules/negotiator/index.js +83 -0
  1950. package/node_modules/negotiator/lib/charset.js +169 -0
  1951. package/node_modules/negotiator/lib/encoding.js +205 -0
  1952. package/node_modules/negotiator/lib/language.js +179 -0
  1953. package/node_modules/negotiator/lib/mediaType.js +294 -0
  1954. package/node_modules/negotiator/package.json +43 -0
  1955. package/node_modules/neo-async/LICENSE +22 -0
  1956. package/node_modules/neo-async/README.md +273 -0
  1957. package/node_modules/neo-async/all.js +3 -0
  1958. package/node_modules/neo-async/allLimit.js +3 -0
  1959. package/node_modules/neo-async/allSeries.js +3 -0
  1960. package/node_modules/neo-async/angelFall.js +3 -0
  1961. package/node_modules/neo-async/any.js +3 -0
  1962. package/node_modules/neo-async/anyLimit.js +3 -0
  1963. package/node_modules/neo-async/anySeries.js +3 -0
  1964. package/node_modules/neo-async/apply.js +3 -0
  1965. package/node_modules/neo-async/applyEach.js +3 -0
  1966. package/node_modules/neo-async/applyEachSeries.js +3 -0
  1967. package/node_modules/neo-async/async.js +9184 -0
  1968. package/node_modules/neo-async/async.min.js +80 -0
  1969. package/node_modules/neo-async/asyncify.js +3 -0
  1970. package/node_modules/neo-async/auto.js +3 -0
  1971. package/node_modules/neo-async/autoInject.js +3 -0
  1972. package/node_modules/neo-async/cargo.js +3 -0
  1973. package/node_modules/neo-async/compose.js +3 -0
  1974. package/node_modules/neo-async/concat.js +3 -0
  1975. package/node_modules/neo-async/concatLimit.js +3 -0
  1976. package/node_modules/neo-async/concatSeries.js +3 -0
  1977. package/node_modules/neo-async/constant.js +3 -0
  1978. package/node_modules/neo-async/createLogger.js +3 -0
  1979. package/node_modules/neo-async/detect.js +3 -0
  1980. package/node_modules/neo-async/detectLimit.js +3 -0
  1981. package/node_modules/neo-async/detectSeries.js +3 -0
  1982. package/node_modules/neo-async/dir.js +3 -0
  1983. package/node_modules/neo-async/doDuring.js +3 -0
  1984. package/node_modules/neo-async/doUntil.js +3 -0
  1985. package/node_modules/neo-async/doWhilst.js +3 -0
  1986. package/node_modules/neo-async/during.js +3 -0
  1987. package/node_modules/neo-async/each.js +3 -0
  1988. package/node_modules/neo-async/eachLimit.js +3 -0
  1989. package/node_modules/neo-async/eachOf.js +3 -0
  1990. package/node_modules/neo-async/eachOfLimit.js +3 -0
  1991. package/node_modules/neo-async/eachOfSeries.js +3 -0
  1992. package/node_modules/neo-async/eachSeries.js +3 -0
  1993. package/node_modules/neo-async/ensureAsync.js +3 -0
  1994. package/node_modules/neo-async/every.js +3 -0
  1995. package/node_modules/neo-async/everyLimit.js +3 -0
  1996. package/node_modules/neo-async/everySeries.js +3 -0
  1997. package/node_modules/neo-async/fast.js +3 -0
  1998. package/node_modules/neo-async/filter.js +3 -0
  1999. package/node_modules/neo-async/filterLimit.js +3 -0
  2000. package/node_modules/neo-async/filterSeries.js +3 -0
  2001. package/node_modules/neo-async/find.js +3 -0
  2002. package/node_modules/neo-async/findLimit.js +3 -0
  2003. package/node_modules/neo-async/findSeries.js +3 -0
  2004. package/node_modules/neo-async/foldl.js +3 -0
  2005. package/node_modules/neo-async/foldr.js +3 -0
  2006. package/node_modules/neo-async/forEach.js +3 -0
  2007. package/node_modules/neo-async/forEachLimit.js +3 -0
  2008. package/node_modules/neo-async/forEachOf.js +3 -0
  2009. package/node_modules/neo-async/forEachOfLimit.js +3 -0
  2010. package/node_modules/neo-async/forEachOfSeries.js +3 -0
  2011. package/node_modules/neo-async/forEachSeries.js +3 -0
  2012. package/node_modules/neo-async/forever.js +3 -0
  2013. package/node_modules/neo-async/groupBy.js +3 -0
  2014. package/node_modules/neo-async/groupByLimit.js +3 -0
  2015. package/node_modules/neo-async/groupBySeries.js +3 -0
  2016. package/node_modules/neo-async/inject.js +3 -0
  2017. package/node_modules/neo-async/iterator.js +3 -0
  2018. package/node_modules/neo-async/log.js +3 -0
  2019. package/node_modules/neo-async/map.js +3 -0
  2020. package/node_modules/neo-async/mapLimit.js +3 -0
  2021. package/node_modules/neo-async/mapSeries.js +3 -0
  2022. package/node_modules/neo-async/mapValues.js +3 -0
  2023. package/node_modules/neo-async/mapValuesLimit.js +3 -0
  2024. package/node_modules/neo-async/mapValuesSeries.js +3 -0
  2025. package/node_modules/neo-async/memoize.js +3 -0
  2026. package/node_modules/neo-async/nextTick.js +3 -0
  2027. package/node_modules/neo-async/omit.js +3 -0
  2028. package/node_modules/neo-async/omitLimit.js +3 -0
  2029. package/node_modules/neo-async/omitSeries.js +3 -0
  2030. package/node_modules/neo-async/package.json +57 -0
  2031. package/node_modules/neo-async/parallel.js +3 -0
  2032. package/node_modules/neo-async/parallelLimit.js +3 -0
  2033. package/node_modules/neo-async/pick.js +3 -0
  2034. package/node_modules/neo-async/pickLimit.js +3 -0
  2035. package/node_modules/neo-async/pickSeries.js +3 -0
  2036. package/node_modules/neo-async/priorityQueue.js +3 -0
  2037. package/node_modules/neo-async/queue.js +3 -0
  2038. package/node_modules/neo-async/race.js +3 -0
  2039. package/node_modules/neo-async/reduce.js +3 -0
  2040. package/node_modules/neo-async/reduceRight.js +3 -0
  2041. package/node_modules/neo-async/reflect.js +3 -0
  2042. package/node_modules/neo-async/reflectAll.js +3 -0
  2043. package/node_modules/neo-async/reject.js +3 -0
  2044. package/node_modules/neo-async/rejectLimit.js +3 -0
  2045. package/node_modules/neo-async/rejectSeries.js +3 -0
  2046. package/node_modules/neo-async/retry.js +3 -0
  2047. package/node_modules/neo-async/retryable.js +3 -0
  2048. package/node_modules/neo-async/safe.js +3 -0
  2049. package/node_modules/neo-async/select.js +3 -0
  2050. package/node_modules/neo-async/selectLimit.js +3 -0
  2051. package/node_modules/neo-async/selectSeries.js +3 -0
  2052. package/node_modules/neo-async/seq.js +3 -0
  2053. package/node_modules/neo-async/series.js +3 -0
  2054. package/node_modules/neo-async/setImmediate.js +3 -0
  2055. package/node_modules/neo-async/some.js +3 -0
  2056. package/node_modules/neo-async/someLimit.js +3 -0
  2057. package/node_modules/neo-async/someSeries.js +3 -0
  2058. package/node_modules/neo-async/sortBy.js +3 -0
  2059. package/node_modules/neo-async/sortByLimit.js +3 -0
  2060. package/node_modules/neo-async/sortBySeries.js +3 -0
  2061. package/node_modules/neo-async/timeout.js +3 -0
  2062. package/node_modules/neo-async/times.js +3 -0
  2063. package/node_modules/neo-async/timesLimit.js +3 -0
  2064. package/node_modules/neo-async/timesSeries.js +3 -0
  2065. package/node_modules/neo-async/transform.js +3 -0
  2066. package/node_modules/neo-async/transformLimit.js +3 -0
  2067. package/node_modules/neo-async/transformSeries.js +3 -0
  2068. package/node_modules/neo-async/tryEach.js +3 -0
  2069. package/node_modules/neo-async/unmemoize.js +3 -0
  2070. package/node_modules/neo-async/until.js +3 -0
  2071. package/node_modules/neo-async/waterfall.js +3 -0
  2072. package/node_modules/neo-async/whilst.js +3 -0
  2073. package/node_modules/neo-async/wrapSync.js +3 -0
  2074. package/node_modules/node-cache/.nvmrc +1 -0
  2075. package/node_modules/node-cache/.nycrc.yaml +7 -0
  2076. package/node_modules/node-cache/LICENSE +21 -0
  2077. package/node_modules/node-cache/README.md +497 -0
  2078. package/node_modules/node-cache/_src/test/typedefinition_test.ts +108 -0
  2079. package/node_modules/node-cache/index.d.ts +380 -0
  2080. package/node_modules/node-cache/index.js +17 -0
  2081. package/node_modules/node-cache/lib/node_cache.js +802 -0
  2082. package/node_modules/node-cache/package.json +68 -0
  2083. package/node_modules/node-cache/tsconfig.json +8 -0
  2084. package/node_modules/object-inspect/.eslintrc +53 -0
  2085. package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
  2086. package/node_modules/object-inspect/.nycrc +13 -0
  2087. package/node_modules/object-inspect/CHANGELOG.md +424 -0
  2088. package/node_modules/object-inspect/LICENSE +21 -0
  2089. package/node_modules/object-inspect/example/all.js +23 -0
  2090. package/node_modules/object-inspect/example/circular.js +6 -0
  2091. package/node_modules/object-inspect/example/fn.js +5 -0
  2092. package/node_modules/object-inspect/example/inspect.js +10 -0
  2093. package/node_modules/object-inspect/index.js +544 -0
  2094. package/node_modules/object-inspect/package-support.json +20 -0
  2095. package/node_modules/object-inspect/package.json +105 -0
  2096. package/node_modules/object-inspect/readme.markdown +84 -0
  2097. package/node_modules/object-inspect/test/bigint.js +58 -0
  2098. package/node_modules/object-inspect/test/browser/dom.js +15 -0
  2099. package/node_modules/object-inspect/test/circular.js +16 -0
  2100. package/node_modules/object-inspect/test/deep.js +12 -0
  2101. package/node_modules/object-inspect/test/element.js +53 -0
  2102. package/node_modules/object-inspect/test/err.js +48 -0
  2103. package/node_modules/object-inspect/test/fakes.js +29 -0
  2104. package/node_modules/object-inspect/test/fn.js +76 -0
  2105. package/node_modules/object-inspect/test/global.js +17 -0
  2106. package/node_modules/object-inspect/test/has.js +15 -0
  2107. package/node_modules/object-inspect/test/holes.js +15 -0
  2108. package/node_modules/object-inspect/test/indent-option.js +271 -0
  2109. package/node_modules/object-inspect/test/inspect.js +139 -0
  2110. package/node_modules/object-inspect/test/lowbyte.js +12 -0
  2111. package/node_modules/object-inspect/test/number.js +58 -0
  2112. package/node_modules/object-inspect/test/quoteStyle.js +26 -0
  2113. package/node_modules/object-inspect/test/toStringTag.js +40 -0
  2114. package/node_modules/object-inspect/test/undef.js +12 -0
  2115. package/node_modules/object-inspect/test/values.js +261 -0
  2116. package/node_modules/object-inspect/test-core-js.js +26 -0
  2117. package/node_modules/object-inspect/util.inspect.js +1 -0
  2118. package/node_modules/on-finished/HISTORY.md +98 -0
  2119. package/node_modules/on-finished/LICENSE +23 -0
  2120. package/node_modules/on-finished/README.md +162 -0
  2121. package/node_modules/on-finished/index.js +234 -0
  2122. package/node_modules/on-finished/package.json +39 -0
  2123. package/node_modules/once/LICENSE +15 -0
  2124. package/node_modules/once/README.md +79 -0
  2125. package/node_modules/once/once.js +42 -0
  2126. package/node_modules/once/package.json +33 -0
  2127. package/node_modules/parseurl/HISTORY.md +58 -0
  2128. package/node_modules/parseurl/LICENSE +24 -0
  2129. package/node_modules/parseurl/README.md +133 -0
  2130. package/node_modules/parseurl/index.js +158 -0
  2131. package/node_modules/parseurl/package.json +40 -0
  2132. package/node_modules/path-to-regexp/LICENSE +21 -0
  2133. package/node_modules/path-to-regexp/Readme.md +224 -0
  2134. package/node_modules/path-to-regexp/dist/index.d.ts +147 -0
  2135. package/node_modules/path-to-regexp/dist/index.js +431 -0
  2136. package/node_modules/path-to-regexp/dist/index.js.map +1 -0
  2137. package/node_modules/path-to-regexp/package.json +64 -0
  2138. package/node_modules/pluralize/LICENSE +21 -0
  2139. package/node_modules/pluralize/Readme.md +100 -0
  2140. package/node_modules/pluralize/package.json +40 -0
  2141. package/node_modules/pluralize/pluralize.js +503 -0
  2142. package/node_modules/proxy-addr/HISTORY.md +161 -0
  2143. package/node_modules/proxy-addr/LICENSE +22 -0
  2144. package/node_modules/proxy-addr/README.md +139 -0
  2145. package/node_modules/proxy-addr/index.js +327 -0
  2146. package/node_modules/proxy-addr/package.json +47 -0
  2147. package/node_modules/qs/.editorconfig +46 -0
  2148. package/node_modules/qs/.github/FUNDING.yml +12 -0
  2149. package/node_modules/qs/.github/SECURITY.md +11 -0
  2150. package/node_modules/qs/.github/THREAT_MODEL.md +78 -0
  2151. package/node_modules/qs/.nycrc +13 -0
  2152. package/node_modules/qs/CHANGELOG.md +833 -0
  2153. package/node_modules/qs/LICENSE.md +29 -0
  2154. package/node_modules/qs/README.md +758 -0
  2155. package/node_modules/qs/dist/qs.js +141 -0
  2156. package/node_modules/qs/eslint.config.mjs +57 -0
  2157. package/node_modules/qs/lib/formats.js +23 -0
  2158. package/node_modules/qs/lib/index.js +11 -0
  2159. package/node_modules/qs/lib/parse.js +414 -0
  2160. package/node_modules/qs/lib/stringify.js +363 -0
  2161. package/node_modules/qs/lib/utils.js +381 -0
  2162. package/node_modules/qs/package.json +95 -0
  2163. package/node_modules/qs/test/empty-keys-cases.js +267 -0
  2164. package/node_modules/qs/test/parse.js +1933 -0
  2165. package/node_modules/qs/test/stringify.js +1448 -0
  2166. package/node_modules/qs/test/utils.js +626 -0
  2167. package/node_modules/range-parser/HISTORY.md +56 -0
  2168. package/node_modules/range-parser/LICENSE +23 -0
  2169. package/node_modules/range-parser/README.md +85 -0
  2170. package/node_modules/range-parser/index.js +181 -0
  2171. package/node_modules/range-parser/package.json +48 -0
  2172. package/node_modules/raw-body/LICENSE +22 -0
  2173. package/node_modules/raw-body/README.md +223 -0
  2174. package/node_modules/raw-body/index.d.ts +85 -0
  2175. package/node_modules/raw-body/index.js +336 -0
  2176. package/node_modules/raw-body/package.json +46 -0
  2177. package/node_modules/router/HISTORY.md +228 -0
  2178. package/node_modules/router/LICENSE +23 -0
  2179. package/node_modules/router/README.md +416 -0
  2180. package/node_modules/router/index.js +748 -0
  2181. package/node_modules/router/lib/layer.js +247 -0
  2182. package/node_modules/router/lib/route.js +242 -0
  2183. package/node_modules/router/package.json +44 -0
  2184. package/node_modules/safer-buffer/LICENSE +21 -0
  2185. package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  2186. package/node_modules/safer-buffer/Readme.md +156 -0
  2187. package/node_modules/safer-buffer/dangerous.js +58 -0
  2188. package/node_modules/safer-buffer/package.json +34 -0
  2189. package/node_modules/safer-buffer/safer.js +77 -0
  2190. package/node_modules/safer-buffer/tests.js +406 -0
  2191. package/node_modules/sax/LICENSE.md +55 -0
  2192. package/node_modules/sax/README.md +227 -0
  2193. package/node_modules/sax/lib/sax.js +1848 -0
  2194. package/node_modules/sax/package.json +34 -0
  2195. package/node_modules/semver/LICENSE +15 -0
  2196. package/node_modules/semver/README.md +680 -0
  2197. package/node_modules/semver/bin/semver.js +195 -0
  2198. package/node_modules/semver/classes/comparator.js +143 -0
  2199. package/node_modules/semver/classes/index.js +7 -0
  2200. package/node_modules/semver/classes/range.js +577 -0
  2201. package/node_modules/semver/classes/semver.js +350 -0
  2202. package/node_modules/semver/functions/clean.js +8 -0
  2203. package/node_modules/semver/functions/cmp.js +54 -0
  2204. package/node_modules/semver/functions/coerce.js +62 -0
  2205. package/node_modules/semver/functions/compare-build.js +9 -0
  2206. package/node_modules/semver/functions/compare-loose.js +5 -0
  2207. package/node_modules/semver/functions/compare.js +7 -0
  2208. package/node_modules/semver/functions/diff.js +60 -0
  2209. package/node_modules/semver/functions/eq.js +5 -0
  2210. package/node_modules/semver/functions/gt.js +5 -0
  2211. package/node_modules/semver/functions/gte.js +5 -0
  2212. package/node_modules/semver/functions/inc.js +21 -0
  2213. package/node_modules/semver/functions/lt.js +5 -0
  2214. package/node_modules/semver/functions/lte.js +5 -0
  2215. package/node_modules/semver/functions/major.js +5 -0
  2216. package/node_modules/semver/functions/minor.js +5 -0
  2217. package/node_modules/semver/functions/neq.js +5 -0
  2218. package/node_modules/semver/functions/parse.js +18 -0
  2219. package/node_modules/semver/functions/patch.js +5 -0
  2220. package/node_modules/semver/functions/prerelease.js +8 -0
  2221. package/node_modules/semver/functions/rcompare.js +5 -0
  2222. package/node_modules/semver/functions/rsort.js +5 -0
  2223. package/node_modules/semver/functions/satisfies.js +12 -0
  2224. package/node_modules/semver/functions/sort.js +5 -0
  2225. package/node_modules/semver/functions/truncate.js +48 -0
  2226. package/node_modules/semver/functions/valid.js +8 -0
  2227. package/node_modules/semver/index.js +93 -0
  2228. package/node_modules/semver/internal/constants.js +37 -0
  2229. package/node_modules/semver/internal/debug.js +11 -0
  2230. package/node_modules/semver/internal/identifiers.js +29 -0
  2231. package/node_modules/semver/internal/lrucache.js +42 -0
  2232. package/node_modules/semver/internal/parse-options.js +17 -0
  2233. package/node_modules/semver/internal/re.js +223 -0
  2234. package/node_modules/semver/package.json +78 -0
  2235. package/node_modules/semver/preload.js +4 -0
  2236. package/node_modules/semver/range.bnf +17 -0
  2237. package/node_modules/semver/ranges/gtr.js +6 -0
  2238. package/node_modules/semver/ranges/intersects.js +9 -0
  2239. package/node_modules/semver/ranges/ltr.js +6 -0
  2240. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  2241. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  2242. package/node_modules/semver/ranges/min-version.js +63 -0
  2243. package/node_modules/semver/ranges/outside.js +82 -0
  2244. package/node_modules/semver/ranges/simplify.js +49 -0
  2245. package/node_modules/semver/ranges/subset.js +249 -0
  2246. package/node_modules/semver/ranges/to-comparators.js +10 -0
  2247. package/node_modules/semver/ranges/valid.js +13 -0
  2248. package/node_modules/send/LICENSE +23 -0
  2249. package/node_modules/send/README.md +317 -0
  2250. package/node_modules/send/index.js +997 -0
  2251. package/node_modules/send/package.json +63 -0
  2252. package/node_modules/serve-static/LICENSE +25 -0
  2253. package/node_modules/serve-static/README.md +253 -0
  2254. package/node_modules/serve-static/index.js +208 -0
  2255. package/node_modules/serve-static/package.json +44 -0
  2256. package/node_modules/setprototypeof/LICENSE +13 -0
  2257. package/node_modules/setprototypeof/README.md +31 -0
  2258. package/node_modules/setprototypeof/index.d.ts +2 -0
  2259. package/node_modules/setprototypeof/index.js +17 -0
  2260. package/node_modules/setprototypeof/package.json +38 -0
  2261. package/node_modules/setprototypeof/test/index.js +24 -0
  2262. package/node_modules/side-channel/.editorconfig +9 -0
  2263. package/node_modules/side-channel/.eslintrc +12 -0
  2264. package/node_modules/side-channel/.github/FUNDING.yml +12 -0
  2265. package/node_modules/side-channel/.nycrc +13 -0
  2266. package/node_modules/side-channel/CHANGELOG.md +120 -0
  2267. package/node_modules/side-channel/LICENSE +21 -0
  2268. package/node_modules/side-channel/README.md +61 -0
  2269. package/node_modules/side-channel/index.d.ts +14 -0
  2270. package/node_modules/side-channel/index.js +46 -0
  2271. package/node_modules/side-channel/package.json +85 -0
  2272. package/node_modules/side-channel/test/index.js +120 -0
  2273. package/node_modules/side-channel/tsconfig.json +9 -0
  2274. package/node_modules/side-channel-list/.editorconfig +9 -0
  2275. package/node_modules/side-channel-list/.eslintrc +11 -0
  2276. package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  2277. package/node_modules/side-channel-list/.nycrc +13 -0
  2278. package/node_modules/side-channel-list/CHANGELOG.md +36 -0
  2279. package/node_modules/side-channel-list/LICENSE +21 -0
  2280. package/node_modules/side-channel-list/README.md +62 -0
  2281. package/node_modules/side-channel-list/index.d.ts +13 -0
  2282. package/node_modules/side-channel-list/index.js +111 -0
  2283. package/node_modules/side-channel-list/list.d.ts +14 -0
  2284. package/node_modules/side-channel-list/package.json +77 -0
  2285. package/node_modules/side-channel-list/test/index.js +154 -0
  2286. package/node_modules/side-channel-list/tsconfig.json +9 -0
  2287. package/node_modules/side-channel-map/.editorconfig +9 -0
  2288. package/node_modules/side-channel-map/.eslintrc +11 -0
  2289. package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
  2290. package/node_modules/side-channel-map/.nycrc +13 -0
  2291. package/node_modules/side-channel-map/CHANGELOG.md +22 -0
  2292. package/node_modules/side-channel-map/LICENSE +21 -0
  2293. package/node_modules/side-channel-map/README.md +62 -0
  2294. package/node_modules/side-channel-map/index.d.ts +15 -0
  2295. package/node_modules/side-channel-map/index.js +68 -0
  2296. package/node_modules/side-channel-map/package.json +80 -0
  2297. package/node_modules/side-channel-map/test/index.js +114 -0
  2298. package/node_modules/side-channel-map/tsconfig.json +9 -0
  2299. package/node_modules/side-channel-weakmap/.editorconfig +9 -0
  2300. package/node_modules/side-channel-weakmap/.eslintrc +12 -0
  2301. package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
  2302. package/node_modules/side-channel-weakmap/.nycrc +13 -0
  2303. package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
  2304. package/node_modules/side-channel-weakmap/LICENSE +21 -0
  2305. package/node_modules/side-channel-weakmap/README.md +62 -0
  2306. package/node_modules/side-channel-weakmap/index.d.ts +15 -0
  2307. package/node_modules/side-channel-weakmap/index.js +84 -0
  2308. package/node_modules/side-channel-weakmap/package.json +87 -0
  2309. package/node_modules/side-channel-weakmap/test/index.js +114 -0
  2310. package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
  2311. package/node_modules/source-map/CHANGELOG.md +301 -0
  2312. package/node_modules/source-map/LICENSE +28 -0
  2313. package/node_modules/source-map/README.md +742 -0
  2314. package/node_modules/source-map/dist/source-map.debug.js +3234 -0
  2315. package/node_modules/source-map/dist/source-map.js +3233 -0
  2316. package/node_modules/source-map/dist/source-map.min.js +2 -0
  2317. package/node_modules/source-map/dist/source-map.min.js.map +1 -0
  2318. package/node_modules/source-map/lib/array-set.js +121 -0
  2319. package/node_modules/source-map/lib/base64-vlq.js +140 -0
  2320. package/node_modules/source-map/lib/base64.js +67 -0
  2321. package/node_modules/source-map/lib/binary-search.js +111 -0
  2322. package/node_modules/source-map/lib/mapping-list.js +79 -0
  2323. package/node_modules/source-map/lib/quick-sort.js +114 -0
  2324. package/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  2325. package/node_modules/source-map/lib/source-map-generator.js +425 -0
  2326. package/node_modules/source-map/lib/source-node.js +413 -0
  2327. package/node_modules/source-map/lib/util.js +488 -0
  2328. package/node_modules/source-map/package.json +73 -0
  2329. package/node_modules/source-map/source-map.d.ts +98 -0
  2330. package/node_modules/source-map/source-map.js +8 -0
  2331. package/node_modules/statuses/HISTORY.md +87 -0
  2332. package/node_modules/statuses/LICENSE +23 -0
  2333. package/node_modules/statuses/README.md +139 -0
  2334. package/node_modules/statuses/codes.json +65 -0
  2335. package/node_modules/statuses/index.js +146 -0
  2336. package/node_modules/statuses/package.json +49 -0
  2337. package/node_modules/to-regex-range/LICENSE +21 -0
  2338. package/node_modules/to-regex-range/README.md +305 -0
  2339. package/node_modules/to-regex-range/index.js +288 -0
  2340. package/node_modules/to-regex-range/package.json +88 -0
  2341. package/node_modules/toidentifier/HISTORY.md +9 -0
  2342. package/node_modules/toidentifier/LICENSE +21 -0
  2343. package/node_modules/toidentifier/README.md +61 -0
  2344. package/node_modules/toidentifier/index.js +32 -0
  2345. package/node_modules/toidentifier/package.json +38 -0
  2346. package/node_modules/type-is/HISTORY.md +292 -0
  2347. package/node_modules/type-is/LICENSE +23 -0
  2348. package/node_modules/type-is/README.md +198 -0
  2349. package/node_modules/type-is/index.js +240 -0
  2350. package/node_modules/type-is/node_modules/content-type/LICENSE +22 -0
  2351. package/node_modules/type-is/node_modules/content-type/README.md +69 -0
  2352. package/node_modules/type-is/node_modules/content-type/dist/index.d.ts +26 -0
  2353. package/node_modules/type-is/node_modules/content-type/dist/index.js +170 -0
  2354. package/node_modules/type-is/node_modules/content-type/dist/index.js.map +1 -0
  2355. package/node_modules/type-is/node_modules/content-type/package.json +52 -0
  2356. package/node_modules/type-is/package.json +51 -0
  2357. package/node_modules/uglify-js/LICENSE +29 -0
  2358. package/node_modules/uglify-js/README.md +1479 -0
  2359. package/node_modules/uglify-js/bin/uglifyjs +624 -0
  2360. package/node_modules/uglify-js/lib/ast.js +2357 -0
  2361. package/node_modules/uglify-js/lib/compress.js +14650 -0
  2362. package/node_modules/uglify-js/lib/minify.js +278 -0
  2363. package/node_modules/uglify-js/lib/mozilla-ast.js +1338 -0
  2364. package/node_modules/uglify-js/lib/output.js +1983 -0
  2365. package/node_modules/uglify-js/lib/parse.js +2589 -0
  2366. package/node_modules/uglify-js/lib/propmangle.js +328 -0
  2367. package/node_modules/uglify-js/lib/scope.js +883 -0
  2368. package/node_modules/uglify-js/lib/sourcemap.js +195 -0
  2369. package/node_modules/uglify-js/lib/transform.js +250 -0
  2370. package/node_modules/uglify-js/lib/utils.js +300 -0
  2371. package/node_modules/uglify-js/package.json +52 -0
  2372. package/node_modules/uglify-js/tools/domprops.html +456 -0
  2373. package/node_modules/uglify-js/tools/domprops.json +8327 -0
  2374. package/node_modules/uglify-js/tools/exports.js +8 -0
  2375. package/node_modules/uglify-js/tools/node.js +115 -0
  2376. package/node_modules/uglify-js/tools/tty.js +22 -0
  2377. package/node_modules/unpipe/HISTORY.md +4 -0
  2378. package/node_modules/unpipe/LICENSE +22 -0
  2379. package/node_modules/unpipe/README.md +43 -0
  2380. package/node_modules/unpipe/index.js +69 -0
  2381. package/node_modules/unpipe/package.json +27 -0
  2382. package/node_modules/vary/HISTORY.md +39 -0
  2383. package/node_modules/vary/LICENSE +22 -0
  2384. package/node_modules/vary/README.md +101 -0
  2385. package/node_modules/vary/index.js +149 -0
  2386. package/node_modules/vary/package.json +43 -0
  2387. package/node_modules/verror/CHANGES.md +28 -0
  2388. package/node_modules/verror/CONTRIBUTING.md +16 -0
  2389. package/node_modules/verror/LICENSE +19 -0
  2390. package/node_modules/verror/README.md +528 -0
  2391. package/node_modules/verror/lib/verror.js +451 -0
  2392. package/node_modules/verror/package.json +30 -0
  2393. package/node_modules/wordwrap/LICENSE +18 -0
  2394. package/node_modules/wordwrap/README.markdown +70 -0
  2395. package/node_modules/wordwrap/example/center.js +10 -0
  2396. package/node_modules/wordwrap/example/meat.js +3 -0
  2397. package/node_modules/wordwrap/index.js +76 -0
  2398. package/node_modules/wordwrap/package.json +34 -0
  2399. package/node_modules/wordwrap/test/break.js +32 -0
  2400. package/node_modules/wordwrap/test/idleness.txt +63 -0
  2401. package/node_modules/wordwrap/test/wrap.js +33 -0
  2402. package/node_modules/wrappy/LICENSE +15 -0
  2403. package/node_modules/wrappy/README.md +36 -0
  2404. package/node_modules/wrappy/package.json +29 -0
  2405. package/node_modules/wrappy/wrappy.js +33 -0
  2406. package/node_modules/ws/LICENSE +20 -0
  2407. package/node_modules/ws/README.md +548 -0
  2408. package/node_modules/ws/browser.js +8 -0
  2409. package/node_modules/ws/index.js +22 -0
  2410. package/node_modules/ws/lib/buffer-util.js +131 -0
  2411. package/node_modules/ws/lib/constants.js +19 -0
  2412. package/node_modules/ws/lib/event-target.js +292 -0
  2413. package/node_modules/ws/lib/extension.js +203 -0
  2414. package/node_modules/ws/lib/limiter.js +55 -0
  2415. package/node_modules/ws/lib/permessage-deflate.js +528 -0
  2416. package/node_modules/ws/lib/receiver.js +760 -0
  2417. package/node_modules/ws/lib/sender.js +607 -0
  2418. package/node_modules/ws/lib/stream.js +161 -0
  2419. package/node_modules/ws/lib/subprotocol.js +62 -0
  2420. package/node_modules/ws/lib/validation.js +152 -0
  2421. package/node_modules/ws/lib/websocket-server.js +562 -0
  2422. package/node_modules/ws/lib/websocket.js +1407 -0
  2423. package/node_modules/ws/package.json +70 -0
  2424. package/node_modules/ws/wrapper.mjs +21 -0
  2425. package/node_modules/xml-js/LICENSE +21 -0
  2426. package/node_modules/xml-js/README.md +390 -0
  2427. package/node_modules/xml-js/bin/cli-helper.js +47 -0
  2428. package/node_modules/xml-js/bin/cli.js +83 -0
  2429. package/node_modules/xml-js/bin/test.json +23 -0
  2430. package/node_modules/xml-js/bin/test.xml +3 -0
  2431. package/node_modules/xml-js/dist/xml-js.js +8310 -0
  2432. package/node_modules/xml-js/dist/xml-js.min.js +8 -0
  2433. package/node_modules/xml-js/index.js +1 -0
  2434. package/node_modules/xml-js/lib/array-helper.js +11 -0
  2435. package/node_modules/xml-js/lib/index.js +13 -0
  2436. package/node_modules/xml-js/lib/js2xml.js +320 -0
  2437. package/node_modules/xml-js/lib/json2xml.js +18 -0
  2438. package/node_modules/xml-js/lib/options-helper.js +43 -0
  2439. package/node_modules/xml-js/lib/xml2js.js +362 -0
  2440. package/node_modules/xml-js/lib/xml2json.js +22 -0
  2441. package/node_modules/xml-js/package.json +111 -0
  2442. package/node_modules/xml-js/types/index.d.ts +154 -0
  2443. package/node_modules/xml-js/types/tsconfig.json +14 -0
  2444. package/node_modules/xml-js/types/typings.json +4 -0
  2445. package/node_modules/xml-js/types/xml-js-tests.ts +60 -0
  2446. package/node_modules/xml-js/webpack.config.js +28 -0
  2447. package/node_modules/yaml/LICENSE +13 -0
  2448. package/node_modules/yaml/README.md +172 -0
  2449. package/node_modules/yaml/bin.mjs +11 -0
  2450. package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
  2451. package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
  2452. package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
  2453. package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
  2454. package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
  2455. package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
  2456. package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
  2457. package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
  2458. package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
  2459. package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
  2460. package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +225 -0
  2461. package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
  2462. package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
  2463. package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
  2464. package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
  2465. package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
  2466. package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
  2467. package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  2468. package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  2469. package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  2470. package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
  2471. package/node_modules/yaml/browser/dist/errors.js +57 -0
  2472. package/node_modules/yaml/browser/dist/index.js +17 -0
  2473. package/node_modules/yaml/browser/dist/log.js +11 -0
  2474. package/node_modules/yaml/browser/dist/nodes/Alias.js +116 -0
  2475. package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
  2476. package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
  2477. package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
  2478. package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
  2479. package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
  2480. package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
  2481. package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
  2482. package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
  2483. package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
  2484. package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
  2485. package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
  2486. package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
  2487. package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
  2488. package/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
  2489. package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
  2490. package/node_modules/yaml/browser/dist/parse/parser.js +975 -0
  2491. package/node_modules/yaml/browser/dist/public-api.js +102 -0
  2492. package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
  2493. package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
  2494. package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
  2495. package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
  2496. package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
  2497. package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
  2498. package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
  2499. package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
  2500. package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
  2501. package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
  2502. package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
  2503. package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
  2504. package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
  2505. package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
  2506. package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
  2507. package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
  2508. package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
  2509. package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
  2510. package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
  2511. package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
  2512. package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
  2513. package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
  2514. package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
  2515. package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
  2516. package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
  2517. package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
  2518. package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
  2519. package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
  2520. package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
  2521. package/node_modules/yaml/browser/dist/util.js +11 -0
  2522. package/node_modules/yaml/browser/dist/visit.js +233 -0
  2523. package/node_modules/yaml/browser/index.js +5 -0
  2524. package/{lib/init/template/esm/files/package.json.hbs → node_modules/yaml/browser/package.json} +1 -1
  2525. package/node_modules/yaml/dist/cli.d.ts +8 -0
  2526. package/node_modules/yaml/dist/cli.mjs +201 -0
  2527. package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
  2528. package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
  2529. package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
  2530. package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
  2531. package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
  2532. package/node_modules/yaml/dist/compose/compose-node.js +112 -0
  2533. package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
  2534. package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
  2535. package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
  2536. package/node_modules/yaml/dist/compose/composer.js +224 -0
  2537. package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
  2538. package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
  2539. package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
  2540. package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
  2541. package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
  2542. package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
  2543. package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
  2544. package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
  2545. package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
  2546. package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
  2547. package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
  2548. package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +227 -0
  2549. package/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
  2550. package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
  2551. package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
  2552. package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
  2553. package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
  2554. package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
  2555. package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
  2556. package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
  2557. package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
  2558. package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
  2559. package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
  2560. package/node_modules/yaml/dist/doc/Document.js +337 -0
  2561. package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
  2562. package/node_modules/yaml/dist/doc/anchors.js +76 -0
  2563. package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
  2564. package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
  2565. package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
  2566. package/node_modules/yaml/dist/doc/createNode.js +90 -0
  2567. package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
  2568. package/node_modules/yaml/dist/doc/directives.js +178 -0
  2569. package/node_modules/yaml/dist/errors.d.ts +21 -0
  2570. package/node_modules/yaml/dist/errors.js +62 -0
  2571. package/node_modules/yaml/dist/index.d.ts +25 -0
  2572. package/node_modules/yaml/dist/index.js +50 -0
  2573. package/node_modules/yaml/dist/log.d.ts +3 -0
  2574. package/node_modules/yaml/dist/log.js +19 -0
  2575. package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
  2576. package/node_modules/yaml/dist/nodes/Alias.js +118 -0
  2577. package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
  2578. package/node_modules/yaml/dist/nodes/Collection.js +151 -0
  2579. package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
  2580. package/node_modules/yaml/dist/nodes/Node.js +40 -0
  2581. package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
  2582. package/node_modules/yaml/dist/nodes/Pair.js +39 -0
  2583. package/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
  2584. package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
  2585. package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
  2586. package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
  2587. package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
  2588. package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
  2589. package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
  2590. package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
  2591. package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
  2592. package/node_modules/yaml/dist/nodes/identity.js +53 -0
  2593. package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
  2594. package/node_modules/yaml/dist/nodes/toJS.js +39 -0
  2595. package/node_modules/yaml/dist/options.d.ts +350 -0
  2596. package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
  2597. package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
  2598. package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
  2599. package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
  2600. package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
  2601. package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
  2602. package/node_modules/yaml/dist/parse/cst.d.ts +109 -0
  2603. package/node_modules/yaml/dist/parse/cst.js +112 -0
  2604. package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
  2605. package/node_modules/yaml/dist/parse/lexer.js +723 -0
  2606. package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
  2607. package/node_modules/yaml/dist/parse/line-counter.js +41 -0
  2608. package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
  2609. package/node_modules/yaml/dist/parse/parser.js +980 -0
  2610. package/node_modules/yaml/dist/public-api.d.ts +44 -0
  2611. package/node_modules/yaml/dist/public-api.js +107 -0
  2612. package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
  2613. package/node_modules/yaml/dist/schema/Schema.js +39 -0
  2614. package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
  2615. package/node_modules/yaml/dist/schema/common/map.js +19 -0
  2616. package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
  2617. package/node_modules/yaml/dist/schema/common/null.js +17 -0
  2618. package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
  2619. package/node_modules/yaml/dist/schema/common/seq.js +19 -0
  2620. package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
  2621. package/node_modules/yaml/dist/schema/common/string.js +16 -0
  2622. package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
  2623. package/node_modules/yaml/dist/schema/core/bool.js +21 -0
  2624. package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
  2625. package/node_modules/yaml/dist/schema/core/float.js +47 -0
  2626. package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
  2627. package/node_modules/yaml/dist/schema/core/int.js +42 -0
  2628. package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
  2629. package/node_modules/yaml/dist/schema/core/schema.js +25 -0
  2630. package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
  2631. package/node_modules/yaml/dist/schema/json/schema.js +64 -0
  2632. package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
  2633. package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
  2634. package/node_modules/yaml/dist/schema/tags.js +99 -0
  2635. package/node_modules/yaml/dist/schema/types.d.ts +92 -0
  2636. package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
  2637. package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
  2638. package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
  2639. package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
  2640. package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
  2641. package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
  2642. package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
  2643. package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
  2644. package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
  2645. package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
  2646. package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
  2647. package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
  2648. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
  2649. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
  2650. package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
  2651. package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
  2652. package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
  2653. package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
  2654. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
  2655. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
  2656. package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
  2657. package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
  2658. package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
  2659. package/node_modules/yaml/dist/stringify/stringify.js +132 -0
  2660. package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
  2661. package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
  2662. package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
  2663. package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
  2664. package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
  2665. package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
  2666. package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
  2667. package/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
  2668. package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
  2669. package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
  2670. package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
  2671. package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
  2672. package/node_modules/yaml/dist/test-events.d.ts +4 -0
  2673. package/node_modules/yaml/dist/test-events.js +134 -0
  2674. package/node_modules/yaml/dist/util.d.ts +16 -0
  2675. package/node_modules/yaml/dist/util.js +28 -0
  2676. package/node_modules/yaml/dist/visit.d.ts +102 -0
  2677. package/node_modules/yaml/dist/visit.js +236 -0
  2678. package/node_modules/yaml/package.json +97 -0
  2679. package/node_modules/yaml/util.js +2 -0
  2680. package/package.json +117 -8
  2681. package/bin/data-products/get-csn-via-dp-cli.js +0 -41
  2682. package/bin/extend.js +0 -74
  2683. package/bin/migrate.js +0 -66
  2684. package/lib/init/template/containerize/index.js +0 -22
  2685. package/lib/init/template/helm/index.js +0 -163
  2686. package/lib/init/template/helm-unified-runtime/index.js +0 -65
  2687. package/lib/init/template/html5-repo/files/html5-deployer.package.json.hbs +0 -11
  2688. package/lib/mtx/download_legacy.js +0 -43
  2689. package/lib/mtx/util/legacy_ext.js +0 -15
  2690. package/npm-shrinkwrap.json +0 -1738
@@ -0,0 +1,1996 @@
1
+ // Compiler phase "resolve": resolve all references
2
+
3
+ // The resolve phase tries to find the artifacts (and elements) for all
4
+ // references in the augmented CSN. If there are unresolved references, this
5
+ // compiler phase fails with an error containing a vector of corresponding
6
+ // messages (alternatively, we could just store this vector in the CSN).
7
+
8
+ // References are resolved according to the scoping rules of CDS specification.
9
+ // That means, the first name of a reference path is not only searched in the
10
+ // current environments, but also in the parent environments, with the source
11
+ // as second-last, and the environment for builtins as the last search
12
+ // environment.
13
+
14
+ // For all type references, we set the property `type._artifact`, the latter is
15
+ // the actual type definition.
16
+
17
+ // If the referred type definition has a `parameters` property, we use it to
18
+ // transform the `$typeArgs` property (sibling to the `type` property`) to
19
+ // named properties. See function `resolveTypeExpr` below for details.
20
+
21
+ // Example 'file.cds' (see './define.js' for the CSN before "resolve"):
22
+ // type C { elem: String(4); }
23
+ //
24
+ // The corresponding definition of element "elem" looks as follows:
25
+ // {
26
+ // kind: 'element',
27
+ // name: { id: 'elem', component: 'elem', location: ... }
28
+ // type: { absolute: 'cds.String', _artifact: {...}, path: ...},
29
+ // length: { val: 4, location: <of the number literal> },
30
+ // location: ..., _parent: ...
31
+ // }
32
+
33
+ // Potential file names:
34
+ // lookup-refs / memorize: main refs loop (phase 2)
35
+ // monitor-refs: resolve-refs (not leading to new defs/elems)
36
+ // repair-props: rewrite, late extensions
37
+ // test-model: cycle detection, late tests (currently in checks)
38
+
39
+ 'use strict';
40
+
41
+ const { isDeprecatedEnabled } = require('../base/specialOptions');
42
+ const { dictAdd, pushToDict } = require('./dictionaries');
43
+ const { weakLocation } = require('../base/location');
44
+ const { combinedLocation } = require('../base/location');
45
+ const { typeParameters } = require('./builtins');
46
+
47
+ const {
48
+ pushLink,
49
+ setLink,
50
+ setArtifactLink,
51
+ setMemberParent,
52
+ withAssociation,
53
+ dependsOn,
54
+ dependsOnSilent,
55
+ testExpr,
56
+ targetMaxNotOne,
57
+ traverseQueryPost,
58
+ linkToOrigin,
59
+ compositionTextVariant,
60
+ targetCantBeAspect,
61
+ userParam,
62
+ userQuery,
63
+ forEachDefinition,
64
+ forEachMember,
65
+ forEachGeneric,
66
+ forEachInOrder,
67
+ } = require('./utils');
68
+
69
+ const detectCycles = require('./cycle-detector');
70
+ const { CompilerAssertion } = require('../base/error');
71
+
72
+ const $location = Symbol.for( 'cds.$location' );
73
+
74
+ const $inferred = Symbol.for( 'cds.$inferred' );
75
+
76
+ // TODO: make this part of specExpected in shared.js
77
+ const expWithFilter = [ 'from', 'expand', 'inline' ];
78
+
79
+ // Export function of this file. Resolve type references in augmented CSN
80
+ // `model`. If the model has a property argument `messages`, do not throw
81
+ // exception in case of an error, but push the corresponding error object to
82
+ // that property (should be a vector).
83
+ function resolve( model ) {
84
+ const { options } = model;
85
+ // Get shared functionality and the message function:
86
+ const {
87
+ info, warning, error, message,
88
+ } = model.$messageFunctions;
89
+ const {
90
+ resolvePath,
91
+ resolveDefinitionName,
92
+ attachAndEmitValidNames,
93
+ traverseExpr,
94
+ traverseTypedExpr,
95
+ effectiveType,
96
+ getOrigin,
97
+ getInheritedProp,
98
+ hasTruthyProp, // limited inheritance
99
+ resolveTypeArgumentsUnchecked,
100
+ userTargetElementPathIndex,
101
+ getQueryOperatorName,
102
+ traverseDollarSelfPairs,
103
+ } = model.$functions;
104
+ Object.assign( model.$functions, {
105
+ addForeignKeyNavigations,
106
+ redirectionChain,
107
+ resolveExprInAnnotations,
108
+ checkBacklinkPartner,
109
+ } );
110
+
111
+ const ignoreSpecifiedElements
112
+ = isDeprecatedEnabled( options, 'ignoreSpecifiedQueryElements' );
113
+
114
+ forEachGeneric( model, 'sources', resolveUsings );
115
+ doResolve();
116
+ model.$functions.checkGenerateConditions();
117
+ return model;
118
+
119
+ /**
120
+ * Resolve the using declarations in `using`.
121
+ * Issue error message if the referenced artifact does not exist.
122
+ */
123
+ function resolveUsings( src, topLevel ) {
124
+ if (!src.usings)
125
+ return;
126
+ for (const def of src.usings) {
127
+ if (def.usings) // using {...}
128
+ resolveUsings( def );
129
+ if (!def.name || !def.name.id)
130
+ continue; // using {...}, parse error
131
+ const art = model.definitions[def.name.absolute];
132
+ if (art && art.$duplicates)
133
+ continue;
134
+ const ref = def.extern;
135
+ const user = (topLevel ? def : src);
136
+ const from = user.fileDep;
137
+ if (art || !from || from.realname) // no error for non-existing ref with non-existing module
138
+ resolvePath( ref, 'using', def ); // TODO: consider FROM for validNames
139
+ }
140
+ }
141
+
142
+ function doResolve() {
143
+ // Phase 1: check paths in `usings` has been moved to kick-start.js Phase 2:
144
+ // calculate/init view elements & collect views in order:
145
+ // TODO: It might be that we need to call propagateKeyProps() and
146
+ // addImplicitForeignKeys() in populate.js, as we might need to know the
147
+ // foreign keys in populate.js (foreign key access w/o JOINs).
148
+
149
+ // Phase 2+3: calculate keys along simple queries in collected views:
150
+ model._entities = Object.values( model.definitions )
151
+ .filter( art => art.$effectiveSeqNo )
152
+ .sort( (x, y) => x.$effectiveSeqNo - y.$effectiveSeqNo );
153
+ model._entities.forEach( setNavigationProjections );
154
+ model._entities.forEach( propagateKeyProps );
155
+ // While most dependencies leading have been added at this point, new
156
+ // cycles could be added later (e.g. via assocs in where conditions),
157
+ // i.e. keep cycle detection with messages at the end (or after phase 4).
158
+
159
+ // Phase 4: resolve all artifacts:
160
+ forEachDefinition( model, resolveRefs );
161
+ forEachGeneric( model, 'vocabularies', resolveRefs );
162
+ forEachDefinition( model, checkOpenBacklinkTargets ); // after checkBacklinkPartner()
163
+
164
+ if (options.lspMode) {
165
+ for (const name in model.sources)
166
+ resolveDefinitionName( model.sources[name].namespace );
167
+ }
168
+
169
+ // report cyclic dependencies:
170
+ detectCycles( model.definitions, ( user, art, location, semanticLoc ) => {
171
+ if (location) {
172
+ model.$assert = null;
173
+ const msg = semanticLoc && 'target';
174
+ error( 'ref-cyclic', [ location, semanticLoc || user ], {
175
+ art, '#': msg,
176
+ } );
177
+ }
178
+ } );
179
+ if (model.$assert) {
180
+ error( '$internal-expecting-cyclic', null, {},
181
+ 'INTERNAL: the compiler should have issued an Error[ref-cyclic]' );
182
+ }
183
+ }
184
+
185
+ //--------------------------------------------------------------------------
186
+ // Phase 2+3: calculate propagated KEYs
187
+ //--------------------------------------------------------------------------
188
+
189
+ /**
190
+ * Set `_projection` links in navigation elements and creates $navElement hierarchy.
191
+ *
192
+ * @param {XSN.Artifact} view
193
+ */
194
+ function setNavigationProjections( view ) {
195
+ if (!view.$queries)
196
+ return;
197
+ for (const query of view.$queries) {
198
+ // traversing sub-elements not necessary, since we're in a view
199
+ // TODO: Handle expand.
200
+ forEachGeneric( query, 'elements', function navProjectionsForElement( elem ) {
201
+ if (!elem._origin || elem.expand || !elem.value?.path)
202
+ return;
203
+ // TODO: what about elements where _origin is set without value?
204
+ // TODO: or should we push elems with `expand` sibling to extra list for
205
+ // better messages? (Whatever that means exactly.)
206
+
207
+ if (elem._columnParent) {
208
+ if (elem._columnParent?.kind !== '$inline')
209
+ // we're traversing top-level elements of the query;
210
+ // other _columnParent kinds can't happen
211
+ throw new CompilerAssertion('found unexpected "expand", but expected "inline"');
212
+
213
+ if (!isPathBreakout( elem.value )) {
214
+ const fullPath = columnParentPath( elem );
215
+ if (fullPath)
216
+ setNavigationProjectionsForElementRef({ path: fullPath }, elem);
217
+ }
218
+ }
219
+ else {
220
+ setNavigationProjectionsForElementRef( elem.value, elem );
221
+ }
222
+ } );
223
+ }
224
+ }
225
+
226
+ function setNavigationProjectionsForElementRef( ref, elem ) {
227
+ const { path } = ref;
228
+ const nav = pathNavigation( ref );
229
+ if (nav.navigation) { // not set for $self.…
230
+ // Path could start with table alias; get start index
231
+ let index = path.indexOf(nav.item);
232
+ if (index === -1)
233
+ return; // should not happen
234
+
235
+ let navItem = nav.navigation;
236
+ if (!nav.item._navigation) // first non-table-alias
237
+ setLink( nav.item, '_navigation', navItem );
238
+
239
+ // We consider an element only projected if the path doesn't have
240
+ // either arguments or filters; but we build up the navigation env
241
+ // nonetheless, as it makes rewriting paths later on easier.
242
+ let isComplexPath = !!(path[index].where || path[index].args);
243
+
244
+ ++index;
245
+ while (navItem && index < path.length) {
246
+ const step = path[index];
247
+ if (!step?.id)
248
+ break;
249
+ isComplexPath ||= !!(step.where || step.args);
250
+ if (!navItem.elements?.[step.id]) {
251
+ const elements = navItem._origin?.elements ||
252
+ navItem._origin?.target?._artifact?.elements;
253
+ if (!elements)
254
+ break;
255
+ // Only link available path steps (navigation tree).
256
+ const origin = elements[step.id];
257
+ const member = linkToOrigin( origin, step.id, navItem, 'elements',
258
+ navItem.path?.location, true );
259
+ member.$inferred = 'expanded';
260
+ member.kind = '$navElement';
261
+ }
262
+ navItem = navItem.elements[step.id];
263
+ setLink( step, '_navigation', navItem );
264
+ ++index;
265
+ }
266
+ // Last path step, if found, is a projected, either complex or simple.
267
+ if (index === path.length && navItem)
268
+ pushLink( navItem, isComplexPath ? '_complexProjections' : '_projections', elem );
269
+ }
270
+ }
271
+
272
+ function columnParentPath( elem ) {
273
+ if (!elem._columnParent || !elem.value?.path || isPathBreakout( elem.value ))
274
+ return elem.value?.path;
275
+
276
+ const fullPath = [ ...elem.value.path ];
277
+ let columnParent = elem._columnParent;
278
+ while (columnParent) {
279
+ if (columnParent.kind !== '$inline' || !columnParent.value?.path ||
280
+ isPathBreakout( columnParent.value )) {
281
+ // path breakout for e.g. `$self.{ foo }`, `1 as a .{ foo }`
282
+ return null;
283
+ }
284
+ fullPath.unshift(...columnParent.value.path);
285
+ columnParent = columnParent._columnParent;
286
+ }
287
+ return fullPath;
288
+ }
289
+
290
+ function propagateKeyProps( view ) {
291
+ if (view.kind === 'type') {
292
+ // we don't propagate keys to type projections, see #13575
293
+ return;
294
+ }
295
+ // Second argument controls whether `key` is only propagated along simple
296
+ // view, i.e. ref or subquery in FROM, not UNION or JOIN.
297
+ traverseQueryPost( view.query, !!options.v6KeyPropagation, ( query ) => {
298
+ if (!withExplicitKeys( query ) && inheritKeyProp( query ) &&
299
+ withKeyPropagation( query )) // now the part with messages
300
+ inheritKeyProp( query, true );
301
+ } );
302
+ }
303
+
304
+ function withExplicitKeys( query ) {
305
+ for (const name in query.elements) {
306
+ const elem = query.elements[name];
307
+ if (elem.key && !elem.$duplicates) // also those from includes
308
+ return true;
309
+ }
310
+ return false;
311
+ }
312
+
313
+ function inheritKeyProp( query, doIt ) {
314
+ for (const name in query.elements) {
315
+ const elem = query.elements[name];
316
+ // no key prop for duplicate elements or additional specified elements:
317
+ const key = !elem.$duplicates && !elem.expand && inheritedSourceKeyProp( elem );
318
+ if (key) {
319
+ if (!doIt)
320
+ return true;
321
+ elem.key = { location: elem.value.location, val: key.val, $inferred: 'query' };
322
+ }
323
+ }
324
+ return false;
325
+ }
326
+
327
+ function inheritedSourceKeyProp( { value, _columnParent } ) {
328
+ if (!value || !value.path)
329
+ return null;
330
+ const nav = !_columnParent && pathNavigation( value );
331
+ const item = value.path[value.path.length - 1];
332
+ if (nav?.navigation && nav.item === item)
333
+ return item._artifact?.key;
334
+ if (value.path.length !== 1 || _columnParent?.kind !== '$inline')
335
+ return null;
336
+ const hpath = _columnParent.value?.path;
337
+ const head = hpath?.length === 1 && hpath[0]._navigation;
338
+ return head?.kind === '$tableAlias' && item._artifact?.key;
339
+ }
340
+
341
+ function withKeyPropagation( query ) {
342
+ const { from, $tableAliases } = query;
343
+ if (!from) // parse error SELECT FROM <EOF>
344
+ return false;
345
+ let propagateKeys = true; // used instead early RETURN to get more messages
346
+
347
+ // Check that all keys from the source are projected:
348
+ const notProjected = Object.create( null );
349
+ const navElems = query._combined;
350
+ for (const name in navElems) {
351
+ const nav = navElems[name];
352
+ if (Array.isArray( nav ))
353
+ nav.forEach( pushNonProjected );
354
+ else
355
+ pushNonProjected( nav );
356
+ }
357
+ for (const [ alias, names ] of Object.entries( notProjected )) {
358
+ propagateKeys = false;
359
+ // TODO: mention alias
360
+ const location = $tableAliases[alias].name?.location || from.location;
361
+ info( 'query-missing-keys', [ location, query ], { names },
362
+ {
363
+ std: 'Keys $(NAMES) have not been projected - key properties are not propagated',
364
+ one: 'Key $(NAMES) has not been projected - key properties are not propagated',
365
+ } );
366
+ }
367
+ if (!options.v6KeyPropagation)
368
+ return propagateKeys;
369
+
370
+ // v6: check that there is no to-many assoc in the FROM reference or in the select
371
+ // item reference (references in expressions are not checked,
372
+ // withAssociation() will see no _artifact links anyway)
373
+ const toMany = withAssociation( from, targetMaxNotOne, true );
374
+ if (toMany) {
375
+ propagateKeys = false;
376
+ info( 'query-from-many', [ toMany.location, query ], { art: toMany }, {
377
+ std: 'Key properties are not propagated because a to-many association $(ART) is selected',
378
+ // eslint-disable-next-line @stylistic/max-len
379
+ element: 'Key properties are not propagated because a to-many association $(MEMBER) of $(ART) is selected',
380
+ } );
381
+ }
382
+ for (const name in query.elements) {
383
+ const elem = query.elements[name];
384
+
385
+ if (!elem.$inferred && elem.value?.path) {
386
+ const path = elem._columnParent ? columnParentPath( elem ) : elem.value.path;
387
+ if (testExpr({ path }, selectTest, () => false, elem))
388
+ propagateKeys = false;
389
+ }
390
+ }
391
+ return propagateKeys;
392
+
393
+ function pushNonProjected( nav ) {
394
+ if (nav.$duplicates)
395
+ return;
396
+ const { key } = nav._origin;
397
+ if (key?.val && !nav._projections?.length)
398
+ pushToDict( notProjected, nav._parent.name.id, nav.name.id );
399
+ }
400
+
401
+ function selectTest( expr, user ) {
402
+ const art = withAssociation( expr, targetMaxNotOne );
403
+ if (art) {
404
+ // ID published! Used in stakeholder project; if renamed, add to oldMessageIds
405
+ info( 'query-navigate-many', [ art.location, user || query ], { art }, {
406
+ std: 'Navigating along to-many association $(ART) - key properties are not propagated',
407
+ // eslint-disable-next-line @stylistic/max-len
408
+ element: 'Navigating along to-many association $(MEMBER) of $(ART) - key properties are not propagated',
409
+ // eslint-disable-next-line @stylistic/max-len
410
+ alias: 'Navigating along to-many mixin association $(MEMBER) - key properties are not propagated',
411
+ } );
412
+ }
413
+ return art;
414
+ }
415
+ }
416
+
417
+ //--------------------------------------------------------------------------
418
+ // Phase 4:
419
+ //--------------------------------------------------------------------------
420
+
421
+ function adHocOrMainKind( elem ) {
422
+ const main = elem._main;
423
+ if (main) {
424
+ do {
425
+ elem = elem._parent;
426
+ if (elem.targetAspect)
427
+ return 'aspect'; // ad-hoc composition target aspect
428
+ } while (elem !== main);
429
+ }
430
+ return elem.kind;
431
+ }
432
+ // TODO: have $applied/$extension/$status on extension with the following values
433
+ // - 'unknown': artifact to extend/annotate is not defined or contains unknown member
434
+ // - 'referred': contains annotation for element of referred type (not yet supported)
435
+ // - 'inferred': only contains extension for known member, but some inferred ones
436
+ // (inferred = elements from structure includes, query elements)
437
+ // - 'original': only contains extensions on non-inferred members
438
+
439
+ // Resolve all references in artifact or element `art`. Do so recursively in
440
+ // all sub elements.
441
+ // TODO: make this function smaller
442
+ function resolveRefs( art ) {
443
+ if (art.builtin)
444
+ return;
445
+ const parent = art._parent;
446
+ const allowedInMain = [ 'entity', 'aspect', 'event' ].includes( adHocOrMainKind( art ) );
447
+ const isTopLevelElement = parent && (parent.kind !== 'element' || parent.targetAspect);
448
+
449
+ if (options.lspMode && art.name && !art._main)
450
+ resolveDefinitionName( art );
451
+
452
+ // Check KEY (TODO: make this an extra function)
453
+ const { key } = art;
454
+ if (key?.val && !key.$inferred) {
455
+ // With unmanaged/composition as key, we complain at the `key` keyword, not
456
+ // the `on` condition / the aspect, because the easiest fix would be to
457
+ // simply remove the keyword. Text and message-id are accordingly.
458
+ // This fits nicely with exposing unmanaged/composition with explicit `key`.
459
+ // We do not complain about unmanaged/composition inside struct keys.
460
+ // (Actually, aspect compositions are not supported as sub elements anyway.)
461
+ if (getInheritedProp( art, 'targetAspect' )) {
462
+ error( 'def-invalid-key', [ key.location, art ], { '#': 'composition' } );
463
+ // TODO: test with managed composition exposed with explicit KEY
464
+ // TODO: this should be checked in generate.js (with setting), see
465
+ // test3/ManagedCompositions/CompositionAsKey/
466
+ }
467
+ else if (art.target && getInheritedProp( art, 'on' )) {
468
+ error( 'def-invalid-key', [ key.location, art ], { '#': 'unmanaged' } );
469
+ }
470
+ else if (!allowedInMain || !isTopLevelElement) {
471
+ warning( 'def-unsupported-key', [ art.key.location, art ],
472
+ { '#': allowedInMain ? 'sub' : 'kind', keyword: 'key' } );
473
+ }
474
+ }
475
+
476
+ if (art.targetAspect && targetCantBeAspect( art, true )) {
477
+ // If not for anonymous aspect, this message can only occur for CSN input →
478
+ // we are more CSN specific (we could add more text variants, but this is
479
+ // CSN input with an undocumented CSN property…) For an anonymous target
480
+ // aspect, we could have more text variants, though…
481
+ const msg = art.targetAspect.elements
482
+ ? 'anonymous'
483
+ : (art.target || !art._parent?.query && art._parent?.kind !== 'event') && 'std';
484
+ error( 'type-unexpected-target-aspect', [ art.targetAspect.location, art ],
485
+ { '#': msg || 'target', prop: 'targetAspect', otherprop: 'target' },
486
+ {
487
+ std: 'Unexpected property $(PROP)',
488
+ anonymous: 'Unexpected anonymous target aspect',
489
+ target: 'Unexpected property $(PROP), adding property $(OTHERPROP) might help',
490
+ } );
491
+ } // TODO: else resolvePath() + test for cds.Composition?
492
+
493
+ if (art.includes && !allowedInMain) {
494
+ // TODO: make this a check function for shared.js / or make it part of extend.js
495
+ for (const include of art.includes) {
496
+ const struct = include._artifact;
497
+ if (struct && struct.kind !== 'type' && struct.elements &&
498
+ Object.values( struct.elements ).some( e => e.targetAspect )) {
499
+ error( 'type-managed-composition', [ include.location, art ],
500
+ { '#': struct.kind, art: struct } );
501
+ }
502
+ }
503
+ }
504
+ let obj = art;
505
+ if (obj.type) // TODO: && !obj.type.$inferred ?
506
+ resolveTypeExpr( obj, art );
507
+ const type = effectiveType( obj ); // make sure implicitly redirected target exists
508
+ if (!obj.items && type && type.items) {
509
+ // TODO: shouldn't be this part of populate.js ?
510
+ const items = {
511
+ location: weakLocation( (obj.type || obj).location ),
512
+ $inferred: 'expanded',
513
+ };
514
+ setLink( items, '_outer', obj );
515
+ setLink( items, '_parent', obj._parent );
516
+ setLink( items, '_origin', type.items );
517
+ obj.items = items;
518
+ obj.$expand = 'origin';
519
+ }
520
+ if (obj.items) { // TODO: make this a while in v6 (also items proxy)
521
+ obj = obj.items || obj; // the object which has type properties
522
+ effectiveType( obj );
523
+ }
524
+ if (obj.type) { // TODO: && !obj.type.$inferred ?
525
+ if (obj !== (art.returns || art)) // not already checked
526
+ resolveTypeExpr( obj, art );
527
+ // typeOf unmanaged assoc? TODO: is this the right place to check this?
528
+ // (probably better in rewriteAssociations)
529
+ const elemType = obj.type._artifact;
530
+ if (elemType && effectiveType( elemType )) {
531
+ const assocType = getAssocSpec( elemType ) || {};
532
+ if ((assocType.on || assocType.$assocFilter) && !obj.on)
533
+ obj.on = { $inferred: 'rewrite' }; // TODO: no extra rewrite here
534
+ if (assocType.targetAspect) {
535
+ error( 'composition-as-type-of', [ obj.type.location, art ], {},
536
+ 'A managed aspect composition element can\'t be used as type' );
537
+ return;
538
+ }
539
+ else if (assocType.on || assocType.$assocFilter) {
540
+ error( 'type-unexpected-assoc', [ obj.type.location, art ] );
541
+ return;
542
+ }
543
+
544
+ // Check if relational type is missing its target or if it's used directly.
545
+ if (elemType.category === 'relation' && !obj.target && !obj.targetAspect) {
546
+ const isCsn = (obj._block && obj._block.$frontend === 'json');
547
+ error( 'type-missing-target', [ obj.type.location, obj ],
548
+ { '#': isCsn ? 'csn' : 'std', type: elemType }, {
549
+ // We don't say "use 'association to <target>" because the type could be used
550
+ // in action parameters, etc. as well.
551
+ std: 'The type $(TYPE) can\'t be used directly because it\'s compiler internal',
552
+ csn: 'Type $(TYPE) is missing a target',
553
+ } );
554
+ }
555
+ }
556
+ }
557
+ if (obj.target) {
558
+ // TODO: introduce some resolveAssociation()
559
+ if (!obj.target.$inferred || obj.target.$inferred === 'aspect-composition')
560
+ resolveTarget( art, obj );
561
+ else
562
+ // TODO: better write when inferred target must be redirected
563
+ resolveRedirected( obj, obj.target._artifact );
564
+ }
565
+ else if (obj.kind === 'mixin') {
566
+ // TODO: also check that the type is cds.Association or cds.Composition
567
+ error( 'non-assoc-in-mixin', [ (obj.type || obj.name).location, art ], {},
568
+ 'Only unmanaged associations are allowed in mixin clauses' );
569
+ }
570
+ if (art.targetElement) // in foreign keys
571
+ resolvePath( art.targetElement, 'targetElement', art );
572
+
573
+ // Resolve projections/views
574
+
575
+ if (art.$queries)
576
+ art.$queries.forEach( resolveQuery );
577
+
578
+ // TODO: or should we set silent dependencies in init()?
579
+ if (obj.elements) { // silent dependencies
580
+ forEachGeneric( obj, 'elements', elem => dependsOnSilent( art, elem ) );
581
+ }
582
+ else if (obj.targetAspect && obj.targetAspect.elements) { // silent dependencies
583
+ forEachGeneric( obj.targetAspect, 'elements', elem => dependsOnSilent( art, elem ) );
584
+ }
585
+
586
+ if (obj.foreignKeys) { // silent dependencies
587
+ // Avoid strange ref-cyclic if managed composition is key (check comes later)
588
+ // Done by addImplicitForeignKeys() for implicit keys.
589
+ if (!art.foreignKeys?.[$inferred] && obj.$inferred !== 'aspect-composition')
590
+ forEachGeneric( obj, 'foreignKeys', elem => dependsOnSilent( art, elem ) );
591
+ addForeignKeyNavigations( art );
592
+ }
593
+
594
+ resolveExpr( art.default, 'default', art, art );
595
+
596
+ // TODO: distinguish not by $syntax (it is semantics), but whether in query
597
+ const valueCtx = (art.$syntax === 'calc') ? 'calc' : 'column';
598
+ resolveExpr( art.value, valueCtx, art, art );
599
+ if (art.type?.$inferred === 'cast')
600
+ inferTypePropertiesFromCast( art );
601
+ if (art.value) {
602
+ if (art.$syntax === 'calc')
603
+ checkCalculatedElement( art );
604
+ }
605
+
606
+ resolveExprInAnnotations( art );
607
+ forEachMember( obj.targetAspect || obj, resolveRefs );
608
+ // After the resolving of foreign keys (and adding implicit ones):
609
+ if (obj.target?.$inferred === '')
610
+ checkRedirectedUserTarget( art );
611
+
612
+ if (!ignoreSpecifiedElements && art.elements$ && art.elements) {
613
+ for (const id in art.elements$) {
614
+ resolveRefs( art.elements$[id] );
615
+ checkSpecifiedElement( art.elements[id], art.elements$[id] );
616
+ }
617
+ }
618
+
619
+ // Set '@Core.Computed' in the Core Compiler to have it propagated...
620
+ if (art.kind !== 'element' || art['@Core.Computed'])
621
+ return;
622
+
623
+ // For events and types, elements can't be @Core.Computed, as values are only used
624
+ // to infer the element signature. For virtual, we keep @Core.Computed, as it's
625
+ // always been that way, even before type projections.
626
+ const elementsCanBeComputed = art._main?.kind !== 'type' && art._main?.kind !== 'event';
627
+
628
+ if (art.virtual?.val ||
629
+ elementsCanBeComputed && art.value &&
630
+ (!art.value._artifact || !art.value.path || // in localization view: _artifact, but no path
631
+ art.value.stored?.val || // calculated elements on-write are always computed
632
+ art.value._artifact.kind === 'builtin' ||
633
+ art.value._artifact.kind === 'param' ||
634
+ art.value.scope === 'param' )) {
635
+ art['@Core.Computed'] = {
636
+ name: {
637
+ path: [ { id: 'Core.Computed', location: art.location } ],
638
+ location: art.location,
639
+ },
640
+ $inferred: '$generated',
641
+ };
642
+ }
643
+
644
+ if (art.kind === 'element' && art._effectiveType)
645
+ checkLocalizedElement( art );
646
+ return;
647
+
648
+ /**
649
+ * Check whether the signature of the specified element matches that of the inferred one.
650
+ *
651
+ * TODO: resolveRefs() is already too long → do not add sub functions
652
+ *
653
+ * TODO:
654
+ * - This function has a lot of quite similar code blocks; it should be refactored to
655
+ * combine them.
656
+ * - Some checks are not performed because of to.sql() backend "bugs", that affect the
657
+ * recompilation, such as flattening removing/not setting "key" where required.
658
+ *
659
+ * @param {XSN.Element} inferredElement
660
+ * @param {XSN.Element} specifiedElement
661
+ * @param {XSN.Element} user Only used for if specifiedElement is actually an `items`
662
+ */
663
+ function checkSpecifiedElement( inferredElement, specifiedElement, user = specifiedElement ) {
664
+ if (!inferredElement || !specifiedElement)
665
+ return;
666
+
667
+ // Check explicit types: If either side has one, so must the other.
668
+ const sType = specifiedElement.type?._artifact;
669
+ const iTypeArt = getInheritedProp( inferredElement, 'type' )?._artifact;
670
+ const iType = iTypeArt || inferredElement;
671
+ // FIXME: The coding above returns incorrect iType for expand on associations
672
+
673
+ // $enclosed: maybe composition was changed to association; we allow that change here.
674
+ const compToAssoc = sType === model.definitions['cds.Association'] && inferredElement.target;
675
+
676
+ // xor: could be missing a type;
677
+ if (!specifiedElement.type && inferredElement.type) {
678
+ error( 'query-mismatched-element', [ specifiedElement.location, user ], {
679
+ '#': !specifiedElement.type ? 'missing' : 'extra', name: user.name.id, prop: 'type',
680
+ } );
681
+ return;
682
+ }
683
+ // If specified type is `null`, type could not be resolved.
684
+ else if (!compToAssoc && sType && sType !== iType &&
685
+ // Special case for $recompilation: allow one level of type indirection. See #12113.
686
+ (!options.$recompile || sType !== iType.type?._artifact)) {
687
+ const typeName = !iTypeArt && 'typeExtra' || // no inferred type prop
688
+ iType?.name && sType?.name && 'typeName' || // both types are named
689
+ 'type'; // unknown type names
690
+ const othertype = typeName !== 'type' && iType || '';
691
+ error( 'query-mismatched-element', [
692
+ specifiedElement.type.location || specifiedElement.location, user,
693
+ ], {
694
+ '#': typeName,
695
+ name: user.name.id,
696
+ type: sType,
697
+ othertype,
698
+ } );
699
+ return;
700
+ }
701
+
702
+ // This relies on (element) expansion! Check that both sides have the following properties.
703
+ // On the inferred side, they are likely expanded.
704
+ if (!hasXorPropMismatch( 'elements' ) && !hasXorPropMismatch( 'items' ) &&
705
+ !hasXorPropMismatch( 'target' ) && !hasXorPropMismatch( 'enum' )) {
706
+ // Element are already traversed via elements$ merging.
707
+
708
+ // only check items, if the specified one is not expanded/inferred
709
+ if (specifiedElement.items && !specifiedElement.items.$inferred)
710
+ checkSpecifiedElement( inferredElement.items, specifiedElement.items, specifiedElement );
711
+
712
+ if (specifiedElement.target?._artifact && inferredElement.target?._artifact &&
713
+ specifiedElement.target._artifact !== inferredElement.target._artifact) {
714
+ error( 'query-mismatched-element', [
715
+ specifiedElement.target.location || specifiedElement.location, user,
716
+ ], {
717
+ '#': 'target',
718
+ name: user.name.id,
719
+ target: specifiedElement.target,
720
+ art: inferredElement.target,
721
+ } );
722
+ }
723
+
724
+ if (specifiedElement.foreignKeys) {
725
+ const sKeys = Object.keys( specifiedElement.foreignKeys );
726
+ /** @type {any} */
727
+ let iAssoc = inferredElement;
728
+ if (inferredElement._effectiveType !== 0) {
729
+ while (iAssoc._origin && !iAssoc.foreignKeys && !iAssoc.on)
730
+ iAssoc = iAssoc._origin;
731
+ }
732
+ const iKeys = Object.keys( iAssoc.foreignKeys || {} );
733
+ const loc = [
734
+ specifiedElement.foreignKeys[$location] || specifiedElement.location, user,
735
+ ];
736
+ if (iAssoc.on) {
737
+ error( 'query-mismatched-element', loc, {
738
+ '#': 'unmanagedToManaged', name: user.name.id,
739
+ } );
740
+ }
741
+ else if (sKeys.length !== iKeys.length || sKeys.some( fkey => !iKeys.includes( fkey ) )) {
742
+ error( 'query-mismatched-element', loc, {
743
+ '#': 'foreignKeys', name: user.name.id,
744
+ } );
745
+ }
746
+ }
747
+
748
+ if (specifiedElement.virtual) {
749
+ const iVirtual = getInheritedProp( inferredElement, 'virtual' )?.val || false;
750
+ if (!specifiedElement.virtual.val !== !iVirtual) {
751
+ error( 'query-mismatched-element', [
752
+ specifiedElement.virtual.location || specifiedElement.location, user,
753
+ ], {
754
+ '#': 'prop', prop: 'virtual', name: user.name.id,
755
+ } );
756
+ }
757
+ }
758
+
759
+ // If cardinality is not specified, the compiler uses the inferred one.
760
+ if (specifiedElement.cardinality) {
761
+ // Users can change the origin's cardinality via filter: We can't rely on the origin.
762
+ const ref = inferredElement.value?.path;
763
+ const assocFilterCardinality = ref?.[ref.length - 1]?.cardinality;
764
+ const sCardinality = specifiedElement.cardinality;
765
+ const iCardinality = assocFilterCardinality || getInferredCardinality();
766
+ if (!iCardinality) {
767
+ error( 'query-mismatched-element', [
768
+ sCardinality.location || specifiedElement.location, user,
769
+ ], {
770
+ '#': 'extra',
771
+ prop: 'cardinality',
772
+ name: user.name.id,
773
+ } );
774
+ }
775
+ else {
776
+ // Note: Cardinality does not have sourceMin (CSN "srcmin").
777
+ const props = {
778
+ targetMax: 'max',
779
+ targetMin: 'min',
780
+ sourceMax: 'src',
781
+ };
782
+ for (const prop in props) {
783
+ if (sCardinality[prop]?.val === iCardinality[prop]?.val)
784
+ continue;
785
+ error( 'query-mismatched-element', [
786
+ sCardinality[prop]?.location || sCardinality.location || specifiedElement.location,
787
+ user,
788
+ ], {
789
+ // eslint-disable-next-line no-nested-ternary
790
+ '#': !sCardinality[prop] ? 'missing' : (iCardinality[prop] ? 'prop' : 'extra'),
791
+ prop: `cardinality.${ props[prop] }`,
792
+ name: user.name.id,
793
+ } );
794
+ }
795
+ }
796
+ }
797
+
798
+ if (specifiedElement.value) {
799
+ error( 'query-unexpected-property', [
800
+ specifiedElement.value.location || specifiedElement.location, user,
801
+ ], {
802
+ '#': 'calculatedElement', prop: 'value', name: user.name.id,
803
+ } );
804
+ }
805
+
806
+ if (specifiedElement.key) { // TODO: `|| inferredElement.key?.val`, once to.sql is fixed
807
+ // TODO: Do not use _origin chain for key; has been propagated in propagateKeyProps().
808
+ const iKey = getInheritedProp( inferredElement, 'key' )?.val;
809
+ // If "key" is specified or truthy in the inferred element, the values must match.
810
+ if (!iKey !== !specifiedElement.key?.val) {
811
+ error( 'query-mismatched-element', [
812
+ specifiedElement.key?.location || specifiedElement.location, user,
813
+ ], {
814
+ '#': specifiedElement.key ? 'prop' : 'missing', prop: 'key', name: user.name.id,
815
+ } );
816
+ }
817
+ }
818
+
819
+ if (specifiedElement.enum && !specifiedElement.$expand) {
820
+ // TODO: ".value" is necessary due to recompilation: The compiler does not copy
821
+ // "enum" out of ".value", i.e. casts, only "type", changing the _effectiveType.
822
+ const iEnumValues = inferredElement.enum || inferredElement.value?.enum;
823
+ const sEnumValues = specifiedElement.enum;
824
+ for (const name in specifiedElement.enum) {
825
+ // TODO: See TODO above; issue is cast()
826
+ const sEnumEntry = sEnumValues[name];
827
+ const iEnumEntry = iEnumValues[name]?._effectiveType || iEnumValues[name];
828
+ if (!iEnumEntry) {
829
+ error( 'query-mismatched-element', [ specifiedElement.location, user ], {
830
+ '#': 'enumExtra', name: user.name.id, id: name,
831
+ } );
832
+ break;
833
+ }
834
+ else {
835
+ // We allow implicit `val: "<name>"`.
836
+ const iVal = iEnumEntry.value?.val || iEnumEntry.value?.['#'] || name;
837
+ const sVal = sEnumEntry.value?.val || sEnumEntry.value?.['#'] || name;
838
+ if (iVal !== sVal) {
839
+ error( 'query-mismatched-element', [ specifiedElement.location, user ], {
840
+ '#': 'enumVal', name: user.name.id, id: name,
841
+ } );
842
+ break;
843
+ }
844
+ }
845
+ }
846
+ }
847
+ }
848
+
849
+ function hasXorPropMismatch( prop ) {
850
+ // FIXME: `.value` check should be removed after #11183
851
+ // It appears the SQL backends expand a type in cast and add an `enum` property there.
852
+ // This property is directly in the `value` property, but not part of `inferredElement`
853
+ // which has a `type` property, but no `enum`.
854
+ if (!inferredElement[prop] !== !specifiedElement[prop] &&
855
+ !inferredElement.value?.[prop] !== !specifiedElement[prop]) {
856
+ error( 'query-mismatched-element', [ specifiedElement.location, specifiedElement ], {
857
+ '#': specifiedElement[prop] ? 'extra' : 'missing', name: user.name.id, prop,
858
+ } );
859
+ return true;
860
+ }
861
+ return false;
862
+ }
863
+
864
+ function getInferredCardinality() {
865
+ let element = inferredElement;
866
+ if (element._effectiveType !== 0) {
867
+ while (getOrigin( element )) {
868
+ const ref = element.value?.path;
869
+ if (element.cardinality || ref?.[ref.length - 1]?.cardinality)
870
+ break;
871
+ element = getOrigin( element );
872
+ }
873
+ }
874
+ const ref = element.value?.path;
875
+ return element.cardinality || ref?.[ref.length - 1]?.cardinality;
876
+ }
877
+ }
878
+ }
879
+
880
+ /**
881
+ * Issue warnings for restrictions concerning `localized`, i.e. for situations
882
+ * where a (later) inherited `localized` does not lead to the texts entity
883
+ * (element) being created, because the inherited info was not available then,
884
+ * or would involve more work (localized sub elements).
885
+ */
886
+ function checkLocalizedElement( art ) {
887
+ const parent = art._parent;
888
+ if (!parent)
889
+ return; // with duplicate defs
890
+ const isSubElem = (parent.kind === 'element' || art._outer);
891
+ if (isSubElem) { // sub element or in MANY
892
+ // Localized sub elements in types, aspects, parameters and non-query
893
+ // entities are not problematic. They are just not really useful there →
894
+ // just report direct (not inherited) `localized` usage in non-inferred
895
+ // elements then. For non-query entities, always report.
896
+ if (art._main?.kind !== 'entity' || art._main?.query || userParam( parent )
897
+ ? !art.$inferred && art.localized?.val && art._main?.kind !== 'annotation'
898
+ : getInheritedProp( art, 'localized' )) {
899
+ const loc = (art.localized || art.type || art.value)?.location || art.location;
900
+ warning( 'type-unsupported-localized', [ loc, art ], {},
901
+ 'Localized sub elements are not supported' );
902
+ }
903
+ }
904
+ else if (parent.kind === 'entity' && !art._main?.query &&
905
+ art.$syntax !== 'calc' &&
906
+ getInheritedProp( art, 'localized' )?.val &&
907
+ // no inherited `localized` which wasn't known in generate.js
908
+ // TODO: should we set `localized` to null otherwise?
909
+ !hasTruthyProp( art, 'localized' )) {
910
+ const loc = (art.localized || art.type)?.location || art.location;
911
+ warning( 'type-missing-localized', [ loc, art ], { keyword: 'localized' },
912
+ 'Add keyword $(KEYWORD), can\'t derive early enough that the element is localized' );
913
+ }
914
+ }
915
+
916
+ function checkCalculatedElement( art ) {
917
+ const loc = [ art.value.location, art ];
918
+ if (art._parent.kind === 'element') {
919
+ // TODO: Support calculated elements in structures.
920
+ // The checks below are already aware of those.
921
+ message( 'def-unsupported-calc-elem', loc, { '#': 'nested' } );
922
+ }
923
+
924
+ const allowedInKind = [ 'entity', 'aspect', 'element' ];
925
+ let parent = art._parent;
926
+ while (parent.kind === 'element')
927
+ parent = parent._parent;
928
+
929
+ if (!allowedInKind.includes( art._main.kind )) {
930
+ if (art.$inferred === 'include') {
931
+ // even for include-chains, we find the correct ref due to element-expansion.
932
+ const include = art._main.includes.find( i => i._artifact === art._origin._main );
933
+ error( 'ref-invalid-calc-elem', [ include.location || art.value.location, art ],
934
+ { '#': art._main.kind } );
935
+ }
936
+ else if (art._main.kind !== 'extend') {
937
+ // if there was an error while extending, the main kind can be still 'extend'
938
+ error( 'def-invalid-calc-elem', loc, { '#': art._main.kind } );
939
+ }
940
+ }
941
+ else if (!allowedInKind.includes( parent.kind )) {
942
+ error( 'def-invalid-calc-elem', loc, { '#': parent.kind } );
943
+ }
944
+ else if (effectiveType( art )?.elements && !art.$inferred) {
945
+ // For inferred (e.g. included) calc elements, this error is already emitted at the origin.
946
+ if (art.type) {
947
+ error( 'type-unexpected-structure', [ art.type.location, art ], { '#': 'calc' } );
948
+ }
949
+ else {
950
+ error( 'ref-unexpected-structured', [ art.value.location, art ],
951
+ { '#': 'struct-expr', elemref: art.value } );
952
+ }
953
+ }
954
+ else if (effectiveType( art )?.items && !art.$inferred) {
955
+ // For inferred (e.g. included) calc elements, this error is already emitted at the origin.
956
+ const isCast = art.type?.$inferred === 'cast';
957
+ error( 'type-unexpected-many', [ (art.type || art.value).location, art ], {
958
+ '#': (!art.type && 'calc-implicit') || (isCast && 'calc-cast') || 'calc',
959
+ elemref: art.type ? undefined : { ref: art.value.path },
960
+ } );
961
+ }
962
+ else {
963
+ const noTruthyAllowed = [ 'key', 'virtual' ];
964
+ for (const prop of noTruthyAllowed) {
965
+ if (art[prop]?.val) {
966
+ // probably better than a parse error (which is good for DEFAULT vs calc),
967
+ // also appears with parse-cdl:
968
+ error( 'def-invalid-calc-elem', loc, { '#': prop } );
969
+ return; // one error is enough
970
+ }
971
+ }
972
+ }
973
+ }
974
+
975
+ /**
976
+ * Return type containing the assoc spec (keys, on); note that no
977
+ * propagation/rewrite has been done yet, cyclic dependency must have been
978
+ * checked before!
979
+ */
980
+ function getAssocSpec( type ) {
981
+ let unmanaged = null;
982
+ while (type) {
983
+ if (type.on) // if unmanaged, continue trying to find targetAspect
984
+ unmanaged = type;
985
+ else if (type.foreignKeys || type.targetAspect)
986
+ return type;
987
+ else if (type.value?.path?.[type.value.path.length - 1]?.where)
988
+ return { $assocFilter: true }; // filter -> always unmanaged
989
+ type = getOrigin( type );
990
+ }
991
+ return unmanaged;
992
+ }
993
+
994
+ function inferTypePropertiesFromCast( elem ) {
995
+ for (const prop of typeParameters.list) {
996
+ if (elem.value[prop])
997
+ elem[prop] = { ...elem.value[prop], $inferred: 'cast' };
998
+ }
999
+ }
1000
+
1001
+ // Phase 4 - queries and associations --------------------------------------
1002
+
1003
+ function resolveQuery( query ) {
1004
+ if (!query._main || !query._effectiveType) // parse error
1005
+ return;
1006
+ // TODO: or set silent dependencies in init?
1007
+ forEachGeneric( query, 'elements', elem => dependsOnSilent( query, elem ) );
1008
+ forEachGeneric( query, '$tableAliases', ( alias ) => {
1009
+ if (alias.kind === 'mixin')
1010
+ resolveRefs( alias ); // mixin element
1011
+ else if (alias.kind !== '$self')
1012
+ // pure path has been resolved, resolve args and filter now:
1013
+ resolveExpr( alias, 'from', query._parent );
1014
+ } );
1015
+ for (const col of query.$inlines)
1016
+ resolveExpr( col.value, 'column', col );
1017
+ // for (const col of query.$inlines)
1018
+ // if (!col.value.path) throw new CompilerAssertion(col.name.element)
1019
+ if (query !== query._main._leadingQuery) // will be done later
1020
+ forEachGeneric( query, 'elements', resolveRefs );
1021
+ if (query.from)
1022
+ resolveJoinOn( query.from );
1023
+ if (query.where) {
1024
+ const user = query.where._block ? query.where : query;
1025
+ resolveExpr( query.where, 'where', user );
1026
+ }
1027
+ if (query.groupBy)
1028
+ resolveBy( query.groupBy, 'groupBy', 'groupBy' );
1029
+ if (query.having) {
1030
+ const user = query.having._block ? query.having : query;
1031
+ resolveExpr( query.having, 'having', user );
1032
+ }
1033
+ if (query.$orderBy) // ORDER BY from UNION:
1034
+ // TODO clarify: can I access the tab alias of outer queries? If not:
1035
+ // 4th arg query._main instead query._parent.
1036
+ resolveBy( query.$orderBy, 'orderBy-set-ref', 'orderBy-set-expr' );
1037
+ if (query.orderBy) { // ORDER BY
1038
+ // search in `query.elements` after having checked table aliases of the current query
1039
+ resolveBy( query.orderBy, 'orderBy-ref', 'orderBy-expr' );
1040
+ // TODO: disallow resulting element ref if in expression!
1041
+ // Necessary to check it in the compiler as it might work with other semantics on DB!
1042
+ // (we could downgrade it to a warning if name is equal to unique source element name)
1043
+ // TODO: Some helping text mentioning an alias name would be useful
1044
+ }
1045
+ for (const limit of query.$limit || []) // LIMIT from UNION:
1046
+ resolveLimit( limit );
1047
+ if (query.limit)
1048
+ resolveLimit( query.limit );
1049
+
1050
+ return;
1051
+
1052
+ function resolveJoinOn( join ) {
1053
+ if (join && join.args) { // JOIN
1054
+ for (const j of join.args)
1055
+ resolveJoinOn( j );
1056
+ if (join.on)
1057
+ resolveExpr( join.on, 'join-on', join );
1058
+ }
1059
+ }
1060
+
1061
+ /**
1062
+ * Note the strange name resolution (dynamic part) for ORDER BY: the same
1063
+ * as for select items if it is an expression, but first look at select
1064
+ * item alias (i.e. like `$projection.NAME` if it is a path. If it is an
1065
+ * ORDER BY of an UNION, do not allow any dynamic path in an expression,
1066
+ * and only allow the elements of the leading query if it is a path.
1067
+ *
1068
+ * This seems to be similar, but different in SQLite 3.22.0: ORDER BY seems
1069
+ * to bind stronger than UNION (see <SQLite>/src/parse.y), and the name
1070
+ * resolution seems to use select item aliases from all SELECTs of the
1071
+ * UNION (see <SQLite>/test/tkt2822.test).
1072
+ */
1073
+ function resolveBy( array, refMode, exprMode ) {
1074
+ for (const value of array ) {
1075
+ if (value) {
1076
+ const user = value._block ? value : query;
1077
+ resolveExpr( value, (value.path ? refMode : exprMode), user );
1078
+ }
1079
+ }
1080
+ }
1081
+
1082
+ function resolveLimit( limit ) {
1083
+ if (limit.rows)
1084
+ resolveExpr( limit.rows, 'limit-rows', query );
1085
+ if (limit.offset)
1086
+ resolveExpr( limit.offset, 'limit-offset', query );
1087
+ }
1088
+ }
1089
+
1090
+ /**
1091
+ * Resolve user-provided target.
1092
+ */
1093
+ function resolveTarget( art, obj ) {
1094
+ if (art !== obj && obj.on) {
1095
+ // Unmanaged assoc inside items. Unmanaged assoc in param handled in resolveRefs()
1096
+ message( 'type-invalid-items', [ obj.on.location, art ], { '#': 'assoc', prop: 'items' } );
1097
+ setArtifactLink( obj.target, undefined );
1098
+ return;
1099
+ }
1100
+ const target = resolvePath( obj.target, 'target', art );
1101
+
1102
+ if (obj._columnParent && obj.type && !obj.type.$inferred && art._main && art._main.query) {
1103
+ // New association inside expand/inline: The on-condition can't be properly
1104
+ // checked, so abort early. See #8797. If we'd allow this in the future, we
1105
+ // must consider composition targets in expand/inline for auto-redirections
1106
+ error( 'query-unexpected-assoc', [ obj.name.location, art ], {},
1107
+ 'Unexpected new association in expand/inline' );
1108
+ return; // avoid subsequent errors
1109
+ }
1110
+
1111
+ if (obj.on) {
1112
+ if (!art._main || !art._parent.elements && !art._parent.items && !art._parent.targetAspect) {
1113
+ // TODO: test of .items a bit unclear - we should somehow restrict the
1114
+ // use of unmanaged assocs in MANY, at least with $self
1115
+ // TODO: $self usage in anonymous aspects to be corrected in Core Compiler
1116
+ message( 'assoc-as-type', [ obj.on.location, art ],
1117
+ { '#': compositionTextVariant( obj, 'comp' ) }, {
1118
+ std: 'An unmanaged association can\'t be defined as type',
1119
+ comp: 'An unmanaged composition can\'t be defined as type',
1120
+ } );
1121
+ // TODO: also warning if inside structure
1122
+ }
1123
+ else { // if (obj.target._artifact)
1124
+ resolveExpr( obj.on, art.kind === 'mixin' ? 'mixin-on' : 'on', art );
1125
+ checkBacklinkPartner( obj );
1126
+ }
1127
+ }
1128
+ else if (art.kind === 'mixin') {
1129
+ error( 'assoc-in-mixin', [ obj.target.location, art ], {},
1130
+ 'Managed associations are not allowed for MIXIN elements' );
1131
+ return; // avoid subsequent errors
1132
+ }
1133
+ else if (obj.type && !obj.type.$inferred && art._parent && art._parent.kind === 'select') {
1134
+ // New association in views, i.e. parent is a query.
1135
+ error( 'query-expected-on-condition', [ obj.target.location, art ], {},
1136
+ 'Expected ON-condition for published association' );
1137
+ return; // avoid subsequent errors
1138
+ }
1139
+ else if (target && !obj.foreignKeys && target.kind === 'entity') {
1140
+ // redirected or explicit type cds.Association, ...
1141
+ if (obj.type?._artifact?.internal)
1142
+ addImplicitForeignKeys( art, obj, target );
1143
+ }
1144
+
1145
+ if (target && !target.$inferred) {
1146
+ if (!obj.type || obj.type.$inferred || obj.target.$inferred) { // REDIRECTED
1147
+ resolveRedirected( art, target );
1148
+ }
1149
+ }
1150
+ }
1151
+
1152
+ function checkBareDollarSelf( assoc ) {
1153
+ traverseDollarSelfPairs( assoc.on, assoc, ( item, right, itemIsPath ) => {
1154
+ registerBacklink( item, right, itemIsPath );
1155
+ checkAssocOnSelf( item );
1156
+ checkAssocOnSelf( right );
1157
+ } );
1158
+ return;
1159
+
1160
+ function registerBacklink( item, right, itemIsPath ) {
1161
+ const backlinkPath = itemIsPath ? item : right;
1162
+ const last = backlinkPath.path[backlinkPath.path.length - 1];
1163
+ if (assoc.$backlink) {
1164
+ const location = combinedLocation( item.path[0], right.path[right.path.length - 1] );
1165
+ message( 'ref-duplicate-self-comparison', [ location, assoc ], { id: '$self' },
1166
+ 'Duplicate comparison with a bare $(ID) reference in an ON-condition' );
1167
+ return;
1168
+ }
1169
+ const backlinkRef = last?._artifact;
1170
+ if (backlinkRef?.target) {
1171
+ const backlink = { location: last.location, target: {} };
1172
+ setLink( backlink, '_origin', backlinkRef );
1173
+ setLink( backlink, '_outer', assoc );
1174
+ assoc.$backlink = backlink;
1175
+ }
1176
+ }
1177
+
1178
+ function checkAssocOnSelf( ref ) {
1179
+ // TODO: fully specify what `‹current_assoc›.‹backlink› = $self` means if the
1180
+ // target of ‹backlink› is not the current entity.
1181
+ // - what does it mean in an aspect
1182
+ // - how about auto-redirections/rewrite
1183
+ // TODO: also disallow if not in entity (
1184
+ const { path } = ref;
1185
+ if (path.length === 1 && path[0]._navigation?.kind === '$self') {
1186
+ if (assoc.on.$inferred)
1187
+ return;
1188
+ const query = userQuery( assoc );
1189
+ const main = query?._main;
1190
+ if (query && query !== main._leadingQuery) {
1191
+ const { txt, op } = getQueryOperatorName( query );
1192
+ const { location, id } = path[0];
1193
+ error( 'ref-unexpected-self', [ location, assoc ], { '#': txt, id, op } );
1194
+ }
1195
+ return;
1196
+ }
1197
+ const index = userTargetElementPathIndex( assoc, path );
1198
+ const target = index > 0 && index < path.length && ref._artifact?.target;
1199
+ if (!target && ref._artifact) {
1200
+ const last = path[path.length - 1];
1201
+ error( 'ref-expecting-target-assoc', [ last.location, assoc ], { id: '$self' },
1202
+ 'Only an association of the target side can be compared to $(ID)' );
1203
+ // TODO: ref-expecting-backlink 'Only a backlink association can ...'
1204
+ }
1205
+ }
1206
+ }
1207
+
1208
+ /**
1209
+ * Check that the target T of the backlink association is related to the entity
1210
+ * (or other structure) E where `assoc` is embedded in: E is a valid redirection
1211
+ * target (without E having to be an entity) for T (or the "simple projection
1212
+ * ancestor" of T if `assoc` is managed, see below).
1213
+ *
1214
+ * Note: we do not forbid backlink comparisons in non-entities, because:
1215
+ *
1216
+ * - they might appear during recompilation case when including an entity,
1217
+ * - they are ok in an aspect used as target of a composition.
1218
+ *
1219
+ * Aspects can have _one_ "open backlink target", i.e. a target T which does not
1220
+ * fulfil the above condition. The check is then performed for all definitions
1221
+ * which include the aspect, see function checkOpenBacklinkTargets().
1222
+ *
1223
+ * A "simple projection ancestor" is the (recursive) query source of a simple
1224
+ * projection (one source, no assoc navigation, no query in FROM).
1225
+ *
1226
+ * If the condition is fulfilled, we can properly expand a backlink comparison,
1227
+ * taking potential renamings of source elements into account.
1228
+ */
1229
+ function checkBacklinkPartner( assoc ) {
1230
+ checkBareDollarSelf( assoc );
1231
+ // console.log('CBP:',assoc.kind,assoc._main?.name?.id,assoc.name.id,!!assoc.$backlink)
1232
+ const target = assoc.$backlink?._origin?.target?._artifact;
1233
+ if (!target)
1234
+ return;
1235
+ const main = assoc._main;
1236
+ const chain = main.name && redirectionChain( null, main, target, true );
1237
+ // Remark: an anonymous target in `targetAspect` does not have a name
1238
+ setLink( assoc.$backlink, '_redirected', chain );
1239
+ if (chain) // standard correct case
1240
+ return;
1241
+
1242
+ if (target._ancestors) { // && assocHasForeignKeys( assoc.$backlink?._origin )) {
1243
+ // with non-cyclic projection ancestors, not only for managed assoc, but also
1244
+ // unmanaged, see test3/Associations/Backlinks/CrossEyedBacklink.sql-err.cds
1245
+ // Current entity is no valid redirection target for the backlink association
1246
+ // → try whether it would be if its target is replaced with its “simple ancestor”
1247
+ // (simple projection, only managed assoc - TODO for tweak-assoc.js).
1248
+ // TODO: include this "go to ancestor" logic into redirectionChain()?
1249
+ // ...probably just if implicit key calculation is part of populate.js
1250
+ let ancestor = target;
1251
+ // TODO: warning!!!
1252
+ while (ancestor?.query?.from?._artifact?.kind === 'entity')
1253
+ ancestor = ancestor.query.from._artifact;
1254
+ // TODO: we should do the "simple projection ancestor" probably only if no
1255
+ // include is involved in the redirection chain
1256
+ if (redirectionChain( null, main, ancestor, true )) {
1257
+ warning( 'ref-dubious-backlink', [ assoc.$backlink.location, assoc ],
1258
+ { target },
1259
+ // eslint-disable-next-line @stylistic/max-len
1260
+ 'The target $(TARGET) of the backlink association has just a distant relationship to the current entity' );
1261
+ return;
1262
+ }
1263
+ }
1264
+ if (main.kind !== 'aspect') {
1265
+ message( 'ref-invalid-backlink', [ assoc.$backlink.location, assoc ], { target } );
1266
+ return;
1267
+ }
1268
+ if (!main.$backlink) {
1269
+ main.$backlink = { target: {} };
1270
+ setLink( main.$backlink.target, '_artifact', target );
1271
+ setLink( main.$backlink, '_associations', [] );
1272
+ }
1273
+ else if (target !== main.$backlink.target?._artifact) {
1274
+ message( 'ref-invalid-backlink', [ assoc.$backlink.location, assoc ],
1275
+ { '#': 'aspect', target } );
1276
+ if (main.$backlink.target) { // had been ok so far → complain about all
1277
+ for (const a of main.$backlink._associations) {
1278
+ message( 'ref-invalid-backlink', [ a.$backlink.location, a ],
1279
+ { '#': 'aspect', target: a.$backlink._origin.target._artifact } );
1280
+ }
1281
+ main.$backlink.target = undefined;
1282
+ }
1283
+ }
1284
+ main.$backlink._associations.push( assoc );
1285
+ }
1286
+
1287
+ /**
1288
+ * Check potential "open backlink target" of an aspect which is included into
1289
+ * `art`, see function checkBacklinkPartner(). Entities generated for managed
1290
+ * composition of anonymous aspects also check open backlink targets.
1291
+ */
1292
+ function checkOpenBacklinkTargets( art ) {
1293
+ const includes = art.includes ||
1294
+ art.$inferred === 'composition-entity' && [ anonymousAspectAsInclude( art._origin ) ];
1295
+ // Remark: how to detect wrong open backlink target inside an anonymous target aspect:
1296
+ // - direct: the pseudo include of the anonymous aspect is checked via this function
1297
+ // - recompilation: is not checked directly, but condition is copied to generated entity
1298
+ if (!includes)
1299
+ return;
1300
+ for (const incl of includes) {
1301
+ const backlink = incl._artifact?.$backlink;
1302
+ if (backlink?.target && !redirectionChain( null, art, backlink.target._artifact, true )) {
1303
+ message( 'ref-invalid-backlink', [ incl.location, art ],
1304
+ { '#': 'include', target: backlink.target } );
1305
+ }
1306
+ }
1307
+ }
1308
+
1309
+ function anonymousAspectAsInclude( aspect ) {
1310
+ return { _artifact: aspect, location: aspect.location };
1311
+ }
1312
+
1313
+ // /**
1314
+ // * Return true if the association `assoc` is managed. Note: the foreign keys
1315
+ // * have not been calculated and propagated/rewritten yet.
1316
+ // */
1317
+ // function assocHasForeignKeys( assoc ) {
1318
+ // if (!assoc._effectiveType)
1319
+ // return null;
1320
+ // do {
1321
+ // if (assoc.foreignKeys)
1322
+ // return true;
1323
+ // if (assoc.on)
1324
+ // return false;
1325
+ // const max = assoc.cardinality?.targetMax;
1326
+ // if (max && (typeof max.val !== 'number' || max.val > 1))
1327
+ // return false;
1328
+ // // TODO: check newAssoc = managed[filter]
1329
+ // assoc = getOrigin( assoc );
1330
+ // } while (assoc);
1331
+ // return true;
1332
+ // }
1333
+
1334
+ function checkRedirectedUserTarget( art ) {
1335
+ const issue = { target: art.target._artifact };
1336
+ const tgtPath = art.target.path;
1337
+ const modelTarget = tgtPath[tgtPath.length - 1]._artifact; // Array#at comes with node-16.6
1338
+ // Check ON condition: no renamed target element
1339
+ traverseExpr( art.on, 'on-check', art, (expr) => {
1340
+ const { path } = expr;
1341
+ if (!expr?._artifact || path?.length < 2 || issue['#'])
1342
+ return traverseExpr.SKIP; // no path or with error or already found issue
1343
+ const head = (path[0]._navigation?.kind === '$self') ? 1 : 0;
1344
+ if (path[head]._artifact === art)
1345
+ checkAutoRedirectedPathItem( path[head + 1], modelTarget, issue );
1346
+ return traverseExpr.SKIP;
1347
+ } );
1348
+ // Check explicit+implicit foreign keys: no renamed target element
1349
+ const implicit = art.foreignKeys?.[$inferred];
1350
+ forEachGeneric( art, 'foreignKeys', (fkey) => {
1351
+ const { targetElement } = fkey;
1352
+ if (targetElement._artifact && !issue['#'])
1353
+ checkAutoRedirectedPathItem( targetElement.path[0], modelTarget, issue, implicit );
1354
+ } );
1355
+ // Check implicit foreign keys: same keys in same order
1356
+ if (implicit && !issue['#']) {
1357
+ const serviceKeys = keyElementNames( issue.target.elements );
1358
+ const modelKeys = keyElementNames( modelTarget.elements );
1359
+ if (modelKeys.length !== serviceKeys.length) {
1360
+ issue.id = modelKeys.find( id => !serviceKeys.includes( id ) );
1361
+ issue['#'] = 'missing';
1362
+ }
1363
+ else if (!modelKeys.every( (id, index) => id === serviceKeys[index] )) {
1364
+ issue['#'] = 'order';
1365
+ }
1366
+ }
1367
+ if (issue['#'])
1368
+ message( 'type-expecting-service-target', [ art.target.location, art ], issue );
1369
+ }
1370
+
1371
+ function keyElementNames( elements ) {
1372
+ const names = [];
1373
+ for (const name in elements) {
1374
+ if (elements[name].key?.val)
1375
+ names.push( name );
1376
+ }
1377
+ return names;
1378
+ }
1379
+
1380
+ function checkAutoRedirectedPathItem( pathItem, modelTarget, issue, isKey = false ) {
1381
+ if (!pathItem) // $self.assoc
1382
+ return;
1383
+ let targetElem = pathItem._artifact;
1384
+ while (targetElem && targetElem._main !== modelTarget)
1385
+ targetElem = directOrigin( targetElem );
1386
+ if (targetElem?.name.id === pathItem.id && (!isKey || targetElem.key?.val))
1387
+ return;
1388
+ issue.id = pathItem.id;
1389
+ issue.line = pathItem.location.line;
1390
+ issue.col = pathItem.location.col;
1391
+ issue['#'] = (isKey ? 'key' : 'ref');
1392
+ }
1393
+
1394
+ function directOrigin( elem ) {
1395
+ if (!elem._main.query || !elem._origin)
1396
+ return elem._origin; // included element
1397
+ const { path } = elem.value;
1398
+ const kind = path[0]._navigation?.kind;
1399
+ // TODO: expand/inline (also Alias.*)
1400
+ return [ null, '$navElement', '$tableAlias' ][path.length] === (kind || true) && elem._origin;
1401
+ }
1402
+
1403
+ function isQuasiVirtualAssociation( art ) {
1404
+ if (art.on)
1405
+ return false;
1406
+ if (art.foreignKeys != null)
1407
+ return !art.foreignKeys;
1408
+ const max = art.cardinality?.targetMax;
1409
+ return max && (typeof max.val !== 'number' || max.val > 1);
1410
+ }
1411
+
1412
+ // TODO: move to populate.js and call there
1413
+ function addImplicitForeignKeys( art, obj, target ) {
1414
+ if (!art.$inferred && !art.virtual?.val && isQuasiVirtualAssociation( obj )) {
1415
+ if (!isDeprecatedEnabled( options, 'noQuasiVirtualAssocs' )) {
1416
+ // TODO: set `foreignKeys`, `ON` or `virtual` to false or similar to
1417
+ // indicate that it is already handled (and that we might not be able to
1418
+ // follow the assoc)? Let us set foreignKeys to false
1419
+ obj.foreignKeys = false;
1420
+ return; // no foreign keys for `Association to many Target`;
1421
+ }
1422
+ }
1423
+ obj.foreignKeys = Object.create( null );
1424
+ forEachInOrder( target, 'elements', ( elem, name ) => {
1425
+ if (elem.key?.val) {
1426
+ const location = weakLocation( obj.target.location );
1427
+ const key = {
1428
+ name: { location, id: elem.name.id, $inferred: 'keys' },
1429
+ kind: 'key',
1430
+ targetElement: { path: [ { id: elem.name.id, location } ], location },
1431
+ location,
1432
+ $inferred: 'keys',
1433
+ };
1434
+ setMemberParent( key, name, art );
1435
+ dictAdd( obj.foreignKeys, name, key );
1436
+ // the following should be done automatically, since we run resolveRefs after that
1437
+ setArtifactLink( key.targetElement, elem );
1438
+ setArtifactLink( key.targetElement.path[0], elem );
1439
+ // _origin/_effectiveType like we do in effectiveType() → … getOriginRaw():
1440
+ setLink( key, '_origin', '' );
1441
+ setLink( key, '_effectiveType', key );
1442
+ dependsOn( key, elem, location );
1443
+ // TODO TMP: instead, make managed composition of aspects and unmanaged
1444
+ // assocs not depend on their `on` condition (empty `_deps` after resolve)
1445
+ if (art.$inferred !== 'aspect-composition')
1446
+ dependsOnSilent( art, key );
1447
+ }
1448
+ } );
1449
+ obj.foreignKeys[$inferred] = 'keys';
1450
+ }
1451
+
1452
+ /**
1453
+ * Add reference tree from foreign key reference back to foreign key of association.
1454
+ *
1455
+ * For `type T: Association to Target { foo as bar, elem.sub }`, this function adds:
1456
+ *
1457
+ * '$keysNavigation': {
1458
+ * foo: { _artifact: 'type:“T”/key:“bar”' },
1459
+ * elem: {
1460
+ * '$keysNavigation': { sub: { _artifact: 'type:“T”/key:“sub”' } }
1461
+ * }
1462
+ *
1463
+ * This function complains if two foreign keys point to the same target element
1464
+ * (`Association to Target { foo as bar, foo }`) or overlapping target elements
1465
+ * (`Association to Target { elem.sub, elem }`). In `resolvePath`, the compiler
1466
+ * already forbids to follow associations in foreign key refs.
1467
+ *
1468
+ * This ref tree could also be used in a core-compiler check which is now part
1469
+ * of to.sql: refs in the `on` condition of unmanaged associations cannot follow
1470
+ * associations other to foreign key refs.
1471
+ *
1472
+ * This ref tree is only created for originally defined managed associations
1473
+ * (including those created by the compiler, like the `up_` association), not
1474
+ * for derived association like for `type DerivedT: T`, or exposed ones.
1475
+ */
1476
+ function addForeignKeyNavigations( art, silent = false ) {
1477
+ art.$keysNavigation = Object.create( null );
1478
+ const keys = [];
1479
+ // Basically sort foreign keys according to length of target element ref.
1480
+ // This way, we complain about ref to sub element (`elem.sub`) even if it
1481
+ // comes earlier than the ref to structure element (`elem`).
1482
+ forEachGeneric( art, 'foreignKeys', ( key ) => {
1483
+ const path = key.targetElement?.path;
1484
+ if (path) {
1485
+ const arr = keys[path.length] || (keys[path.length] = []);
1486
+ arr.push( key );
1487
+ }
1488
+ } );
1489
+ for (const key of keys.flat()) {
1490
+ let dict = art.$keysNavigation;
1491
+ const { path } = key.targetElement;
1492
+ const last = path[path.length - 1];
1493
+ for (const item of path) {
1494
+ let nav = dict[item.id];
1495
+ if (!nav) {
1496
+ nav = {};
1497
+ dict[item.id] = nav;
1498
+ if (item === last)
1499
+ setArtifactLink( nav, key );
1500
+ else
1501
+ nav.$keysNavigation = Object.create( null );
1502
+ }
1503
+ else if (item === last || nav._artifact) {
1504
+ if (silent)
1505
+ break;
1506
+ const name = nav._artifact?.name.id;
1507
+ const text = (item !== last) ? 'sub' : 'std';
1508
+ error( 'duplicate-key-ref', [ item.location, key ], { '#': text, name }, {
1509
+ std: 'Foreign key $(NAME) already refers to the same target element',
1510
+ // eslint-disable-next-line @stylistic/max-len
1511
+ sub: 'Foreign key $(NAME) already refers to the target element whose sub element is again referred to here',
1512
+ // TODO: please add ideas for a better text, e.g. to (closed) PR #11325
1513
+ } );
1514
+ break;
1515
+ }
1516
+ dict = nav.$keysNavigation;
1517
+ }
1518
+ }
1519
+ }
1520
+
1521
+ /**
1522
+ * Check whether it is correct to redirect assoc `elem` to `target` (will always
1523
+ * be the case for auto-redirected assocs). Finally, set the `elem._redirected`
1524
+ * to the "redirection chain", i.e. an array of all entities involved.
1525
+ */
1526
+ // TODO: add this somehow to tweak-assocs.js ?
1527
+ function resolveRedirected( elem, target ) {
1528
+ setLink( elem, '_redirected', null ); // null = do not touch path steps after assoc
1529
+ const assoc = getOrigin( elem );
1530
+ const origType = assoc && effectiveType( assoc );
1531
+ if (origType === 0)
1532
+ return;
1533
+ if (!origType?.target) {
1534
+ const loc = (elem.value?.path?.at(-1) || elem.value || elem).location;
1535
+ error( 'redirected-no-assoc', [ loc, elem ], {},
1536
+ 'Only an association can be redirected' );
1537
+ return;
1538
+ }
1539
+ else if ((elem.value || elem.expand) && elem.type &&
1540
+ (!elem.type.$inferred || elem.type.$inferred === 'cast')) {
1541
+ error( 'type-invalid-cast', [ elem.type.location, elem ], { '#': 'assoc' } );
1542
+ return;
1543
+ }
1544
+
1545
+ const origTarget = origType.target._artifact;
1546
+
1547
+ if (target === origTarget && !elem.target.$inferred && !elem.on && !elem.foreignKeys) {
1548
+ // Only a managed redirection gets this info message. Because otherwise
1549
+ // we'd have to check whether on-condition/foreignKeys are the same.
1550
+ // ID published! Used in stakeholder project; if renamed, add to oldMessageIds
1551
+ info( 'redirected-to-same', [ elem.target.location, elem ], { art: target },
1552
+ 'The redirected target is the original $(ART)' );
1553
+ }
1554
+
1555
+ // No check with user-provided ON/fKeys (remark: compiler deduceds ON/fKeys
1556
+ // _after_ redirecting the target = no $inferred test necessary):
1557
+ if (elem.foreignKeys || elem.on)
1558
+ return; // TODO: or should we still bring an msg if nothing in common?
1559
+
1560
+ const chain = redirectionChain( elem, target, origTarget );
1561
+ setLink( elem, '_redirected', chain );
1562
+ }
1563
+
1564
+ /**
1565
+ * Get the redirection chain between a target and the original target.
1566
+ *
1567
+ * @param {XSN.Artifact} elem
1568
+ * @param {XSN.Artifact} target
1569
+ * @param {XSN.Artifact} origTarget
1570
+ * @param {boolean} [silent] Whether to report error and other messages.
1571
+ * @returns {XSN.Artifact[]|null}
1572
+ */
1573
+ function redirectionChain( elem, target, origTarget, silent = false ) {
1574
+ if (!origTarget || !target)
1575
+ return null;
1576
+ if (target === origTarget)
1577
+ return []; // e.g. explicit ON-condition/foreign keys or original target
1578
+
1579
+ const chain = [];
1580
+ // now check whether target and origTarget are "related"
1581
+ // first: check via simple projections
1582
+ while (target.query) {
1583
+ const from = target.query.args ? {} : target.query.from;
1584
+ if (!from)
1585
+ return null; // parse error - TODO: or UNION?
1586
+ if (!from.path) {
1587
+ if (silent)
1588
+ break;
1589
+ const isTarget = target === elem.target._artifact;
1590
+ const op = from.op?.val || target.query.op?.val;
1591
+ const variant = (!isTarget && 'std') || (op && 'targetOp') || 'target';
1592
+ info( 'redirected-to-complex', [ elem.target.location, elem ],
1593
+ { art: target, '#': variant, keyword: op || '' } );
1594
+ break;
1595
+ }
1596
+ target = from._artifact;
1597
+ if (!target)
1598
+ return null;
1599
+ chain.push( from );
1600
+ if (target === origTarget) {
1601
+ // found in simple projection chain
1602
+ chain.reverse();
1603
+ return chain;
1604
+ }
1605
+ }
1606
+
1607
+ // there is a complex view in-between; search through table aliases
1608
+ let redirected = null;
1609
+ chain.reverse();
1610
+ let news = [ { chain, sources: [ target ] } ];
1611
+ const dict = Object.create( null );
1612
+ while (news.length) {
1613
+ const outer = news;
1614
+ news = [];
1615
+ for (const o of outer) {
1616
+ for (const s of o.sources) {
1617
+ const art = (s.kind === '$tableAlias') ? s._origin : s;
1618
+ if (art !== origTarget) {
1619
+ if (findOrig( o.chain, s, art ) && !redirected) // adds to news []
1620
+ redirected = false; // do not report further error
1621
+ }
1622
+ else if (!redirected) {
1623
+ redirected = (s.kind === '$tableAlias') ? [ s, ...o.chain ] : o.chain;
1624
+ }
1625
+ else if (!silent) {
1626
+ error( 'redirected-to-ambiguous', [ elem.target.location, elem ], { art: origTarget },
1627
+ 'The redirected target originates more than once from $(ART)' );
1628
+ return null;
1629
+ }
1630
+ else {
1631
+ return null;
1632
+ }
1633
+ }
1634
+ }
1635
+ }
1636
+ if (!silent && redirected == null) {
1637
+ error( 'redirected-to-unrelated', [ elem.target.location, elem ], { art: origTarget },
1638
+ 'The redirected target does not originate from $(ART)' );
1639
+ }
1640
+ return redirected;
1641
+
1642
+ // B = proj on A, C = A x B, X = { a: assoc to A on a.Q1 = ...}, Y = X.{ a: redirected to C }
1643
+ // what does 'a: redirected to C' mean?
1644
+ // -> collect all elements Qi used in ON (corr: foreign keys)
1645
+ // -> only use an tableAlias which has propagation for all elements
1646
+ // no - error if the original target can be reached twice
1647
+ // even better: disallow complex view (try as error first)
1648
+
1649
+ // eslint-disable-next-line no-shadow
1650
+ function findOrig( chain, alias, art ) {
1651
+ if (!art || dict[art.name.id])
1652
+ // some include ref or query source cannot be found, or cyclic ref
1653
+ return true;
1654
+ dict[art.name.id] = true;
1655
+
1656
+ if (art.includes) {
1657
+ news.push( {
1658
+ chain: [ art, ...chain ],
1659
+ sources: art.includes
1660
+ .map( r => r._artifact )
1661
+ .filter( i => i ), // _artifact may be `null` if the include cannot be found
1662
+ } );
1663
+ }
1664
+ const query = art._leadingQuery;
1665
+ if (!query)
1666
+ return false; // non-query entity
1667
+ if (!query.$tableAliases) // previous error in query definition
1668
+ return true;
1669
+ const sources = [];
1670
+ for (const n in query.$tableAliases) {
1671
+ const a = query.$tableAliases[n];
1672
+ if (a.path && a.kind !== '$self' && a.kind !== 'mixin')
1673
+ sources.push( a );
1674
+ }
1675
+ if (alias.kind === '$tableAlias')
1676
+ news.push( { chain: [ alias, ...chain ], sources } );
1677
+ else
1678
+ news.push( { chain, sources } );
1679
+ return false;
1680
+ }
1681
+ }
1682
+
1683
+ //--------------------------------------------------------------------------
1684
+ // General resolver functions
1685
+ //--------------------------------------------------------------------------
1686
+
1687
+ // Resolve the type and its arguments if applicable.
1688
+ function resolveTypeExpr( art, user ) {
1689
+ const typeArt = resolvePath( art.type, 'type', user );
1690
+ if (typeArt)
1691
+ resolveTypeArgumentsUnchecked( art, typeArt, user );
1692
+ return typeArt;
1693
+ }
1694
+
1695
+ function resolveExprInAnnotations( art ) {
1696
+ for (const anno in art) {
1697
+ if (anno.charAt(0) === '@') {
1698
+ const { name } = art[anno];
1699
+ const annoDef = model.vocabularies?.[name.id];
1700
+ if (annoDef)
1701
+ setLink( name, '_artifact', annoDef );
1702
+ resolveAnnoExpr( art[anno], art );
1703
+ }
1704
+ }
1705
+ }
1706
+
1707
+ function resolveAnnoExpr( expr, art, anno = expr, topItem = false ) {
1708
+ if (expr.$tokenTexts || expr.sym) {
1709
+ if (anno === expr) {
1710
+ initAnnotationForExpression( anno, art );
1711
+ }
1712
+ else if (topItem) { // item of top-level array annotation
1713
+ setLink( expr, '_outer', anno );
1714
+ anno = expr;
1715
+ }
1716
+
1717
+ const type = anno === expr && anno.name;
1718
+ // TODO: it might be best to set an _artifact link also for property values
1719
+ // like in `@Anno: [ { foo: #EnumSymbol }]
1720
+ resolveExpr( expr, 'annotation', anno, type );
1721
+ }
1722
+ else if (expr.literal === 'array') {
1723
+ const withExpr = anno === expr &&
1724
+ // the following is needed for checkAnnotationAcceptsExpressions(),
1725
+ // otherwise @cds.persistence.skip: [hdi, hdbcds, sql.postgres] fails
1726
+ expr.val.some( item => item.$tokenTexts || item.sym || item.literal === 'struct');
1727
+ if (withExpr)
1728
+ initAnnotationForExpression( anno, art );
1729
+ expr.val.forEach( val => resolveAnnoExpr( val, art, anno, withExpr ) );
1730
+ }
1731
+ else if (expr.literal === 'struct') {
1732
+ if (topItem) { // item of top-level array annotation
1733
+ setLink( expr, '_outer', anno );
1734
+ anno = expr;
1735
+ }
1736
+ Object.values( expr.struct ).forEach( val => resolveAnnoExpr( val, art, anno ) );
1737
+ }
1738
+ }
1739
+
1740
+ /**
1741
+ * For faster processing, mark artifacts and annotations which contain anno expressions
1742
+ *
1743
+ * @param {object} anno
1744
+ * @param {XSN.Artifact} art
1745
+ */
1746
+ function initAnnotationForExpression( anno, art ) {
1747
+ setLink( anno, '_outer', art );
1748
+ art.$contains ??= {};
1749
+ art.$contains.$annotation ??= { // set in resolveExprPath
1750
+ $path: false,
1751
+ $self: false,
1752
+ };
1753
+ // Think about tagging parents too (like before #12636).
1754
+ // Might be useful for future recursive types.
1755
+ }
1756
+
1757
+ // Note: for annotation assignments, `art` should be the annotation, not the
1758
+ // assignee (element, ...); otherwise, artifact links could be resolved in the
1759
+ // wrong block
1760
+ function resolveExpr( expr, exprCtx, art, type = null ) {
1761
+ traverseTypedExpr( expr, exprCtx, art, type, resolveExprNode );
1762
+ }
1763
+
1764
+ function resolveExprNode( expr, expected, user, type ) {
1765
+ if (expr.type) // e.g. cast( a as Integer )
1766
+ type = resolveTypeExpr( expr, user._user || user );
1767
+
1768
+ if (expr.path) {
1769
+ type = resolveExprPath( expr, expected, user );
1770
+ }
1771
+ else if (expr.id) {
1772
+ type = resolvePathItem( expr, expected, user );
1773
+ }
1774
+ else if (expr.sym) {
1775
+ resolveEnumSymbol( expr, expected, user, type );
1776
+ }
1777
+ else if (expr.query) {
1778
+ // No traversal into query, art.$queries set in define.js
1779
+ // No subqueries for type projections, nor in annotation expressions.
1780
+ const { query } = expr;
1781
+ if (!query.from && !query.args) // parser error
1782
+ return type; // ...see also TODO in initQueryExpression()
1783
+ if (query._main?.kind === 'type' ||
1784
+ (!query.kind && !query._leadingQuery)) { // UNION has _leadingQuery
1785
+ error( 'expr-no-subquery', [ expr.location, user ], {
1786
+ '#': query._main?.kind === 'type' ? 'type' : 'std',
1787
+ }, {
1788
+ std: 'Subqueries are not supported here',
1789
+ type: 'Subqueries are not supported in type projections',
1790
+ } );
1791
+ }
1792
+ else if (query._main?.kind === 'event') {
1793
+ warning( 'expr-no-event-subquery', [ expr.location, user ],
1794
+ 'Subqueries are not supported in event projections' );
1795
+ }
1796
+ }
1797
+ return type;
1798
+ }
1799
+
1800
+ function resolveExprPath( expr, expected, user ) {
1801
+ const ref = resolvePath( expr, expected, user );
1802
+
1803
+ if (expected === 'annotation') {
1804
+ const ruser = (user._outer.kind === '$annotation')
1805
+ ? user._outer._outer
1806
+ : user._outer;
1807
+ // if (!ruser.$contains) console.log('UO:',!!ruser,!!user._block,user._outer)
1808
+ ruser.$contains.$annotation.$path = true;
1809
+ ruser.$contains.$annotation.$self ||= expr.path[0]?._navigation?.kind === '$self';
1810
+ }
1811
+
1812
+ // check whether arguments and filters are allowed on last path item;
1813
+ // references in those are to be resolved below even if not allowed
1814
+ // (for code completion)
1815
+ const last = expr.path[expr.path.length - 1];
1816
+ if (!last || !(last.args || last.where || last.cardinality) ||
1817
+ user.expand || user.inline ||
1818
+ expWithFilter.includes( expected ) || // `from`, …
1819
+ last._navigation?.kind === '$tableAlias') // error already reported
1820
+ return ref;
1821
+
1822
+ if (expr.$syntax === 'after-exists') {
1823
+ if (last.where?.args?.length === 0) {
1824
+ // at the moment, empty filter is not allowed on last path step
1825
+ // TODO: allow it at some places
1826
+ reportUnexpectedArgsAndFilter( last, expected, user, null, 'last-empty-filter' );
1827
+ }
1828
+ return ref;
1829
+ }
1830
+
1831
+ const type = effectiveType( last._artifact );
1832
+ const art = type && (type.kind === 'entity' ? type : type.target?._artifact);
1833
+ if (!art)
1834
+ return ref; // error already reported via resolvePathItem()
1835
+ if (last.args || last.where || last.cardinality) {
1836
+ const unexpectedFilter = (expected !== 'annotation' && expected !== 'column' &&
1837
+ expected !== 'calc' && 'std') ||
1838
+ isQuasiVirtualAssociation( type ) && 'model-only' ||
1839
+ last.where?.args?.length === 0 && 'last-empty-filter';
1840
+ reportUnexpectedArgsAndFilter( last, expected, user, art, unexpectedFilter );
1841
+ }
1842
+ // TODO: we should have different message-ids for the "last" stuff: adding
1843
+ // `.item` likely corrects the ref, probably with location at end of ref
1844
+ return ref;
1845
+ }
1846
+
1847
+ function resolvePathItem( step, expected, user ) {
1848
+ // In FROM ref, first item artifact might be array (duplicate in same
1849
+ // `artifacts` dictionary)
1850
+ if (!step._artifact || Array.isArray( step._artifact ))
1851
+ return traverseExpr.SKIP; // cannot resolve filter refs for undef'd / duplicates
1852
+
1853
+ const isAlias = step._navigation?.kind === '$tableAlias';
1854
+ if (isAlias)
1855
+ return reportUnexpectedArgsAndFilter( step, expected, user, { params: {} }, 'tableAlias' );
1856
+ const type = effectiveType( step._artifact );
1857
+ const art = type && (type.kind === 'entity' ? type : type.target?._artifact);
1858
+ if (!art) {
1859
+ const exp = (expected === 'from') ? 'from' : 'std';
1860
+ return (type && type.target)
1861
+ ? traverseExpr.SKIP // something wrong with the association
1862
+ : reportUnexpectedArgsAndFilter( step, expected, user, { params: {} }, exp );
1863
+ }
1864
+ setLink( step, '_user', user._user || user );
1865
+ const { args } = step;
1866
+ if (!args)
1867
+ return null;
1868
+ if (Array.isArray( args )) {
1869
+ const loc = [ args[0]?.location || step.location, user ];
1870
+ error( 'expr-expected-named-argument', loc, {},
1871
+ 'Expected named parameters for the entity' );
1872
+ // only via CSN input - TODO: or do in CSN parser?
1873
+ return null;
1874
+ }
1875
+ if (!art.params) {
1876
+ // remark: from the location, this should be 'expr-unexpected-arguments',
1877
+ // or probably better: use a text variant of expr-undefined-param
1878
+ error( 'expr-unexpected-argument', [ args[$location] || step.location, user ],
1879
+ { art, '#': 'no-params' } ); // TODO: own message-id ?
1880
+ return null;
1881
+ }
1882
+
1883
+ for (const id in args) {
1884
+ const param = art.params[id];
1885
+ const { name } = args[id];
1886
+ setArtifactLink( name, param );
1887
+ if (!param) {
1888
+ error( 'expr-undefined-param', [ name.location, user ], { art, id },
1889
+ 'Entity $(ART) has no parameter $(ID)' );
1890
+ }
1891
+ // no need to do s/th special for duplicate arguments in args[id].$duplicates
1892
+ }
1893
+ return null;
1894
+ }
1895
+
1896
+ function resolveEnumSymbol( expr, expected, user, type ) {
1897
+ const { sym } = expr;
1898
+ // CSN input with both '#'+val (recompilation) → do not resolve
1899
+ if (!sym || expr.val !== undefined)
1900
+ return;
1901
+ // The parameter def for an argument, and the annotation def for an assignment
1902
+ // is in `type._artifact`, it is not `type` itself:
1903
+ type = type && effectiveType( type.id ? type._artifact : type );
1904
+ // Remark: type could be 0 for cyclic parameter type
1905
+ if (type && type.foreignKeys) {
1906
+ const keys = Object.values( type.foreignKeys );
1907
+ if (keys.length === 1) {
1908
+ const elem = resolvePath( keys[0].targetElement, 'targetElement', keys[0] );
1909
+ type = effectiveType( elem );
1910
+ }
1911
+ }
1912
+ const symbols = type && type.enum;
1913
+ if (!symbols) {
1914
+ if ((user.kind ?? user._outer?.kind) !== '$annotation') {
1915
+ // TODO: better type deduction for annotations
1916
+ const msg = (user.kind === 'enum') ? 'symbolDef' : type && 'invalidType';
1917
+ warning( 'ref-unexpected-enum', [ expr.location, user ],
1918
+ { '#': msg || 'untyped', enum: sym.id, type: type || '' } );
1919
+ }
1920
+ }
1921
+ else if (symbols[sym.id]) {
1922
+ setLink( sym, '_artifact', symbols[sym.id] );
1923
+ }
1924
+ else {
1925
+ setLink( sym, '_artifact', null );
1926
+ // inferred enums can't be extended (yet): show underlying enum - TODO: now possible
1927
+ while (type.enum[$inferred])
1928
+ type = getOrigin( type );
1929
+ const err = message( 'ref-undefined-enum', [ sym.location, user ],
1930
+ { id: sym.id, type } );
1931
+ attachAndEmitValidNames( err, symbols );
1932
+ }
1933
+ }
1934
+
1935
+ function reportUnexpectedArgsAndFilter( step, expected, user, art, variant ) {
1936
+ if (step.args && art?.params) {
1937
+ const loc = [ step.args[$location] || step.location, user ];
1938
+ error( 'expr-unexpected-argument', loc, { '#': variant } );
1939
+ }
1940
+ if ((step.where || step.cardinality) && variant) {
1941
+ const location = step.where?.location || step.cardinality?.location
1942
+ ? combinedLocation( step.where, step.cardinality )
1943
+ : step.location;
1944
+ // XSN TODO: filter$location including […]
1945
+ error( 'expr-unexpected-filter', [ location, user ], { '#': variant } );
1946
+ }
1947
+ return variant && traverseExpr.SKIP;
1948
+ }
1949
+ }
1950
+
1951
+ /**
1952
+ * Return condensed info about reference in select item
1953
+ * - tableAlias.elem -> { navigation: navElem, item: path[1], tableAlias }
1954
+ * - sourceElem (in query) -> { navigation: navElem, item: path[0], tableAlias }
1955
+ * - mixinElem -> { navigation: mixinElement, item: path[0] }
1956
+ * - $projection.elem -> also $self.item -> { item: path[1], tableAlias: $self }
1957
+ * - $self -> { item: undefined, tableAlias: $self }
1958
+ * - $parameters.P, :P -> {}
1959
+ * - $now, current_date -> {}
1960
+ * - undef, redef -> {}
1961
+ * With 'navigation': store that navigation._artifact is projected
1962
+ * With 'navigation': rewrite its ON condition
1963
+ * With navigation: Do KEY propagation
1964
+ *
1965
+ * TODO: re-think this function, copied in populate.js and tweak-assocs.js
1966
+ */
1967
+ function pathNavigation( ref ) {
1968
+ // currently, indirectly projectable elements are not included - we might
1969
+ // keep it this way! If we want them to be included - be aware: cycles
1970
+ let item = ref.path && ref.path[0];
1971
+ const root = item && item._navigation;
1972
+ if (!root)
1973
+ return {};
1974
+ if (root.kind === '$navElement')
1975
+ return { navigation: root, item, tableAlias: root._parent };
1976
+ if (root.kind === 'mixin')
1977
+ return { navigation: root, item };
1978
+ item = ref.path[1];
1979
+ if (root.kind === '$self')
1980
+ return { item, tableAlias: root };
1981
+ if (root.kind !== '$tableAlias' || ref.path.length < 2)
1982
+ return {}; // should not happen
1983
+ // table alias
1984
+ return { navigation: root.elements?.[item.id], item, tableAlias: root };
1985
+ }
1986
+
1987
+ function isPathBreakout( ref ) {
1988
+ if (!ref.path?.[0])
1989
+ return false;
1990
+ if (ref.scope === 'param')
1991
+ return true;
1992
+ const nav = (ref.path[0]._navigation || ref.path[0]._artifact);
1993
+ return nav && (nav.kind === '$self' || ref.path[0].id.charAt(0) === '$');
1994
+ }
1995
+
1996
+ module.exports = resolve;