create-jen-app 1.2.3 → 1.2.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 (355) hide show
  1. package/dist/colors.js +0 -17
  2. package/dist/create.js +5 -17
  3. package/dist/generator.js +14 -31
  4. package/dist/index.js +6 -1
  5. package/package.json +1 -1
  6. package/templates/ssr-isr/README.md +77 -0
  7. package/templates/ssr-isr/build.js +118 -0
  8. package/templates/ssr-isr/jen.config.ts +109 -0
  9. package/templates/ssr-isr/jenjs.d.ts +22 -0
  10. package/templates/ssr-isr/lib/api/(hello).js +9 -0
  11. package/templates/ssr-isr/lib/auth/cookie-utils.js +79 -0
  12. package/templates/ssr-isr/lib/auth/index.js +2 -0
  13. package/templates/ssr-isr/lib/auth/jwt.js +57 -0
  14. package/templates/ssr-isr/lib/auth/session.js +92 -0
  15. package/templates/ssr-isr/lib/build/asset-hashing.d.ts +10 -0
  16. package/templates/ssr-isr/lib/build/asset-hashing.js +25 -0
  17. package/templates/ssr-isr/lib/build/asset-manifest.d.ts +11 -0
  18. package/templates/ssr-isr/lib/build/asset-manifest.js +21 -0
  19. package/templates/{static → ssr-isr}/lib/build/build.d.ts +1 -1
  20. package/templates/ssr-isr/lib/build/build.js +141 -0
  21. package/templates/{static → ssr-isr}/lib/build/island-hydration.d.ts +8 -5
  22. package/templates/ssr-isr/lib/build/island-hydration.js +44 -0
  23. package/templates/ssr-isr/lib/build/minifier.d.ts +20 -0
  24. package/templates/ssr-isr/lib/build/minifier.js +46 -0
  25. package/templates/ssr-isr/lib/build/page-renderer.d.ts +17 -0
  26. package/templates/ssr-isr/lib/build/page-renderer.js +28 -0
  27. package/templates/ssr-isr/lib/build/production-build.d.ts +10 -0
  28. package/templates/ssr-isr/lib/build/production-build.js +13 -0
  29. package/templates/ssr-isr/lib/build/ssg-pipeline.d.ts +15 -0
  30. package/templates/ssr-isr/lib/build/ssg-pipeline.js +113 -0
  31. package/templates/ssr-isr/lib/build-tools/build-site.js +36 -0
  32. package/templates/ssr-isr/lib/cache/index.js +10 -0
  33. package/templates/ssr-isr/lib/cache/memory.js +40 -0
  34. package/templates/ssr-isr/lib/cache/redis.js +61 -0
  35. package/templates/ssr-isr/lib/cli/banner.js +28 -0
  36. package/templates/ssr-isr/lib/cli/templates/ssg/jen.config.js +32 -0
  37. package/templates/ssr-isr/lib/cli/templates/ssg/site/index.js +9 -0
  38. package/templates/ssr-isr/lib/cli/templates/ssr/jen.config.js +32 -0
  39. package/templates/ssr-isr/lib/cli/templates/ssr/site/index.js +9 -0
  40. package/templates/ssr-isr/lib/compilers/esbuild-plugins.js +111 -0
  41. package/templates/ssr-isr/lib/compilers/svelte.js +44 -0
  42. package/templates/ssr-isr/lib/compilers/vue.js +90 -0
  43. package/templates/ssr-isr/lib/core/http.js +71 -0
  44. package/templates/ssr-isr/lib/core/middleware-hooks.js +97 -0
  45. package/templates/ssr-isr/lib/core/paths.js +39 -0
  46. package/templates/ssr-isr/lib/core/routes/match.js +47 -0
  47. package/templates/ssr-isr/lib/core/routes/scan.js +190 -0
  48. package/templates/ssr-isr/lib/core/types.js +1 -0
  49. package/templates/ssr-isr/lib/css/compiler.js +74 -0
  50. package/templates/ssr-isr/lib/db/connector.js +42 -0
  51. package/templates/ssr-isr/lib/db/drivers/jdb.js +44 -0
  52. package/templates/ssr-isr/lib/db/drivers/sql.js +182 -0
  53. package/templates/ssr-isr/lib/db/index.js +48 -0
  54. package/templates/ssr-isr/lib/db/types.js +1 -0
  55. package/templates/ssr-isr/lib/graphql/index.js +52 -0
  56. package/templates/ssr-isr/lib/graphql/resolvers.js +25 -0
  57. package/templates/ssr-isr/lib/graphql/schema.js +35 -0
  58. package/templates/ssr-isr/lib/i18n/en.json +4 -0
  59. package/templates/ssr-isr/lib/i18n/es.json +4 -0
  60. package/templates/ssr-isr/lib/i18n/index.js +15 -0
  61. package/templates/ssr-isr/lib/import/jen-import.js +161 -0
  62. package/templates/ssr-isr/lib/index.js +116 -0
  63. package/templates/ssr-isr/lib/jdb/engine.js +275 -0
  64. package/templates/ssr-isr/lib/jdb/index.js +34 -0
  65. package/templates/ssr-isr/lib/jdb/types.js +1 -0
  66. package/templates/ssr-isr/lib/jdb/utils.js +176 -0
  67. package/templates/{static → ssr-isr}/lib/middleware/builtins/body-parser.js +0 -17
  68. package/templates/ssr-isr/lib/middleware/builtins/cors.js +54 -0
  69. package/templates/{static → ssr-isr}/lib/middleware/builtins/logger.js +0 -17
  70. package/templates/{static → ssr-isr}/lib/middleware/builtins/rate-limit.js +0 -17
  71. package/templates/{static → ssr-isr}/lib/middleware/builtins/request-id.js +0 -17
  72. package/templates/{static → ssr-isr}/lib/middleware/builtins/security-headers.js +0 -17
  73. package/templates/ssr-isr/lib/middleware/context.js +124 -0
  74. package/templates/{static → ssr-isr}/lib/middleware/decorators.js +0 -17
  75. package/templates/{static → ssr-isr}/lib/middleware/errors/handler.js +0 -17
  76. package/templates/ssr-isr/lib/middleware/errors/http-error.js +10 -0
  77. package/templates/ssr-isr/lib/middleware/kernel.js +85 -0
  78. package/templates/ssr-isr/lib/middleware/pipeline.js +148 -0
  79. package/templates/ssr-isr/lib/middleware/registry.js +85 -0
  80. package/templates/ssr-isr/lib/middleware/response.js +107 -0
  81. package/templates/ssr-isr/lib/middleware/types.d.ts +1 -0
  82. package/templates/ssr-isr/lib/middleware/types.js +1 -0
  83. package/templates/ssr-isr/lib/middleware/utils/matcher.js +13 -0
  84. package/templates/{static → ssr-isr}/lib/native/bundle.js +0 -17
  85. package/templates/{static → ssr-isr}/lib/native/dev-server.js +0 -17
  86. package/templates/{static → ssr-isr}/lib/native/index.js +0 -17
  87. package/templates/{static → ssr-isr}/lib/native/optimizer.js +0 -17
  88. package/templates/ssr-isr/lib/native/style-compiler.js +19 -0
  89. package/templates/ssr-isr/lib/plugin/loader.js +36 -0
  90. package/templates/ssr-isr/lib/runtime/client-runtime.js +25 -0
  91. package/templates/ssr-isr/lib/runtime/hmr.js +59 -0
  92. package/templates/ssr-isr/lib/runtime/hydrate.js +55 -0
  93. package/templates/ssr-isr/lib/runtime/island-hydration-client.js +146 -0
  94. package/templates/ssr-isr/lib/runtime/islands.js +110 -0
  95. package/templates/ssr-isr/lib/runtime/render.js +244 -0
  96. package/templates/ssr-isr/lib/server/api-routes.js +237 -0
  97. package/templates/ssr-isr/lib/server/api.js +108 -0
  98. package/templates/ssr-isr/lib/server/app.js +438 -0
  99. package/templates/ssr-isr/lib/server/runtimeServe.js +169 -0
  100. package/templates/ssr-isr/lib/server/ssr.js +202 -0
  101. package/templates/ssr-isr/lib/shared/log.js +64 -0
  102. package/templates/ssr-isr/package.json +23 -0
  103. package/templates/ssr-isr/server.js +128 -0
  104. package/templates/ssr-isr/site/pages/(index).tsx +11 -0
  105. package/templates/ssr-isr/site/styles/global.scss +37 -0
  106. package/templates/ssr-isr/tsconfig.json +39 -0
  107. package/templates/static/build.js +30 -18
  108. package/templates/static/jen.config.ts +0 -18
  109. package/templates/static/jenjs.d.ts +0 -18
  110. package/templates/static/lib/api/(hello).js +0 -17
  111. package/templates/static/lib/api/examples/files/[...slug].js +22 -0
  112. package/templates/static/lib/api/examples/hello.js +11 -0
  113. package/templates/static/lib/api/examples/posts/[id].js +37 -0
  114. package/templates/static/lib/api/examples/posts.js +37 -0
  115. package/templates/static/lib/api/examples/search.js +23 -0
  116. package/templates/static/lib/api/index.js +41 -0
  117. package/templates/static/lib/api/loader.js +234 -0
  118. package/templates/static/lib/api/router.js +259 -0
  119. package/templates/static/lib/assets/types.js +1 -0
  120. package/templates/static/lib/auth/cookie-utils.js +3 -16
  121. package/templates/static/lib/auth/index.js +0 -17
  122. package/templates/static/lib/auth/jwt.js +0 -17
  123. package/templates/static/lib/auth/session.js +0 -17
  124. package/templates/static/lib/build/asset-hashing.js +44 -36
  125. package/templates/static/lib/build/asset-manifest.js +16 -33
  126. package/templates/static/lib/build/build.js +270 -125
  127. package/templates/static/lib/build/bundle-analyzer-ui.js +417 -0
  128. package/templates/static/lib/build/bundle-analyzer.js +945 -0
  129. package/templates/static/lib/build/code-splitter.js +194 -0
  130. package/templates/static/lib/build/feature-analyzer.js +190 -0
  131. package/templates/static/lib/build/feature-gate.js +257 -0
  132. package/templates/static/lib/build/island-hydration.js +17 -35
  133. package/templates/static/lib/build/lazy-loader.js +322 -0
  134. package/templates/static/lib/build/minifier.js +40 -59
  135. package/templates/static/lib/build/page-renderer.js +23 -40
  136. package/templates/static/lib/build/production-build.js +9 -26
  137. package/templates/static/lib/build/rust-hashing.js +71 -0
  138. package/templates/static/lib/build/script-optimizer.js +285 -0
  139. package/templates/static/lib/build/ssg-pipeline.js +100 -106
  140. package/templates/static/lib/build/vercel-output.js +298 -0
  141. package/templates/static/lib/build-tools/build-site.js +0 -17
  142. package/templates/static/lib/cache/index.js +0 -17
  143. package/templates/static/lib/cache/memory.js +0 -17
  144. package/templates/static/lib/cache/redis.js +0 -17
  145. package/templates/static/lib/cli/banner.js +0 -17
  146. package/templates/static/lib/cli/templates/ssg/jen.config.js +0 -17
  147. package/templates/static/lib/cli/templates/ssr/jen.config.js +0 -17
  148. package/templates/static/lib/client/Image.js +42 -0
  149. package/templates/static/lib/client/Link.js +190 -0
  150. package/templates/static/lib/client/PWA.js +46 -0
  151. package/templates/static/lib/client/Seo.js +97 -0
  152. package/templates/static/lib/client/index.js +9 -0
  153. package/templates/static/lib/client/useNavigation.js +25 -0
  154. package/templates/static/lib/client/useRouter.js +64 -0
  155. package/templates/static/lib/client-routing/Link.js +17 -0
  156. package/templates/static/lib/client-routing/index.js +19 -0
  157. package/templates/static/lib/client-routing/router.js +151 -0
  158. package/templates/static/lib/client-routing/signal.js +147 -0
  159. package/templates/static/lib/compilers/esbuild-plugins.js +0 -17
  160. package/templates/static/lib/compilers/svelte.js +0 -17
  161. package/templates/static/lib/compilers/vue.js +0 -17
  162. package/templates/static/lib/core/config.js +0 -17
  163. package/templates/static/lib/core/feature-guard.js +136 -0
  164. package/templates/static/lib/core/features.js +99 -0
  165. package/templates/static/lib/core/http.js +0 -17
  166. package/templates/static/lib/core/layouts/index.js +10 -0
  167. package/templates/static/lib/core/layouts/render.js +158 -0
  168. package/templates/static/lib/core/layouts/scan.js +112 -0
  169. package/templates/static/lib/core/layouts/types.js +1 -0
  170. package/templates/static/lib/core/lifecycle.js +129 -0
  171. package/templates/static/lib/core/loader-schema.js +81 -0
  172. package/templates/static/lib/core/middleware-hooks.js +0 -17
  173. package/templates/static/lib/core/paths.js +0 -17
  174. package/templates/static/lib/core/routes/advanced.js +114 -0
  175. package/templates/static/lib/core/routes/handlers.js +181 -0
  176. package/templates/static/lib/core/routes/match.js +89 -17
  177. package/templates/static/lib/core/routes/orchestrator.js +171 -0
  178. package/templates/static/lib/core/routes/rendering-config.js +131 -0
  179. package/templates/static/lib/core/routes/scan.js +0 -17
  180. package/templates/static/lib/core/types.js +0 -17
  181. package/templates/static/lib/css/compiler.js +1 -18
  182. package/templates/static/lib/data-fetching/cache.js +223 -0
  183. package/templates/static/lib/data-fetching/client.js +202 -0
  184. package/templates/static/lib/data-fetching/feature-guard.js +29 -0
  185. package/templates/static/lib/data-fetching/graphql.js +265 -0
  186. package/templates/static/lib/data-fetching/index.js +57 -0
  187. package/templates/static/lib/data-fetching/rest.js +256 -0
  188. package/templates/static/lib/data-fetching/server.js +182 -0
  189. package/templates/static/lib/data-fetching/types.js +5 -0
  190. package/templates/static/lib/db/connector.js +0 -17
  191. package/templates/static/lib/db/drivers/jdb.js +0 -17
  192. package/templates/static/lib/db/drivers/sql.js +0 -17
  193. package/templates/static/lib/db/index.js +0 -17
  194. package/templates/static/lib/db/types.js +0 -17
  195. package/templates/static/lib/devtools/component-tree.js +106 -0
  196. package/templates/static/lib/devtools/devtools.js +638 -0
  197. package/templates/static/lib/devtools/event-bus.js +29 -0
  198. package/templates/static/lib/devtools/event-logger.js +67 -0
  199. package/templates/static/lib/devtools/index.js +9 -0
  200. package/templates/static/lib/devtools/integration.js +149 -0
  201. package/templates/static/lib/devtools/performance.js +84 -0
  202. package/templates/static/lib/devtools/persistence.js +57 -0
  203. package/templates/static/lib/devtools/plugins.js +97 -0
  204. package/templates/static/lib/devtools/search.js +89 -0
  205. package/templates/static/lib/devtools/ui.js +769 -0
  206. package/templates/static/lib/features/api/handler.js +10 -0
  207. package/templates/static/lib/features/api/index.js +5 -0
  208. package/templates/static/lib/features/api/types.js +4 -0
  209. package/templates/static/lib/features/middleware/compiled.js +7 -0
  210. package/templates/static/lib/features/middleware/index.js +5 -0
  211. package/templates/static/lib/features/middleware/types.js +4 -0
  212. package/templates/static/lib/fonts/index.js +46 -0
  213. package/templates/static/lib/fonts/inject.js +125 -0
  214. package/templates/static/lib/fonts/loader.js +196 -0
  215. package/templates/static/lib/fonts/types.js +1 -0
  216. package/templates/static/lib/graphql/index.js +1 -18
  217. package/templates/static/lib/graphql/resolvers.js +20 -13
  218. package/templates/static/lib/graphql/schema.js +0 -17
  219. package/templates/static/lib/i18n/index.js +7 -19
  220. package/templates/static/lib/import/jen-import.js +1 -18
  221. package/templates/static/lib/index.js +79 -125
  222. package/templates/static/lib/jdb/engine.js +0 -17
  223. package/templates/static/lib/jdb/index.js +1 -18
  224. package/templates/static/lib/jdb/types.js +0 -17
  225. package/templates/static/lib/jdb/utils.js +0 -17
  226. package/templates/static/lib/middleware/builtins/cors.js +3 -16
  227. package/templates/static/lib/middleware/context.js +0 -17
  228. package/templates/static/lib/middleware/kernel.js +117 -25
  229. package/templates/static/lib/middleware/pipeline.js +0 -17
  230. package/templates/static/lib/middleware/registry.js +0 -17
  231. package/templates/static/lib/middleware/response.js +0 -17
  232. package/templates/static/lib/plugin/examples/analytics-plugin.js +183 -0
  233. package/templates/static/lib/plugin/examples/cdn-upload-plugin.js +94 -0
  234. package/templates/static/lib/plugin/loader.js +0 -17
  235. package/templates/static/lib/plugin/plugin-manager.js +177 -0
  236. package/templates/static/lib/plugin/types.js +28 -0
  237. package/templates/static/lib/runtime/client-runtime.js +0 -17
  238. package/templates/static/lib/runtime/hmr.js +0 -17
  239. package/templates/static/lib/runtime/hydrate.js +0 -17
  240. package/templates/static/lib/runtime/island-hydration-client.js +0 -17
  241. package/templates/static/lib/runtime/islands.js +0 -17
  242. package/templates/static/lib/runtime/render.js +208 -50
  243. package/templates/static/lib/security/security-config.js +60 -0
  244. package/templates/static/lib/security/security-middleware.js +229 -0
  245. package/templates/static/lib/server/api-routes.js +153 -43
  246. package/templates/static/lib/server/api.js +0 -17
  247. package/templates/static/lib/server/app.js +539 -223
  248. package/templates/static/lib/server/isr.js +365 -0
  249. package/templates/static/lib/server/runtimeServe.js +31 -24
  250. package/templates/static/lib/server/ssr.js +98 -22
  251. package/templates/static/lib/server-actions/handler.js +180 -0
  252. package/templates/static/lib/server-actions/index.js +19 -0
  253. package/templates/static/lib/server-actions/middleware.js +146 -0
  254. package/templates/static/lib/server-actions/scan.js +152 -0
  255. package/templates/static/lib/server-actions/types.js +1 -0
  256. package/templates/static/lib/server-actions/validators.js +156 -0
  257. package/templates/static/lib/shared/log.js +19 -20
  258. package/templates/static/lib/telemetry/api/rate-limiter.js +32 -0
  259. package/templates/static/lib/telemetry/api/validator.js +67 -0
  260. package/templates/static/lib/telemetry/client.js +121 -0
  261. package/templates/static/lib/telemetry/tests/rate-limiter.test.js +46 -0
  262. package/templates/static/lib/telemetry/tests/validator.test.js +62 -0
  263. package/templates/static/lib/vendor/glob/glob.js +4766 -0
  264. package/templates/static/lib/vendor/preact/LICENSE +21 -0
  265. package/templates/static/lib/vendor/preact/preact.module.js +797 -0
  266. package/templates/static/lib/vendor/sass/sass.node.mjs +212 -0
  267. package/templates/static/package.json +4 -0
  268. package/templates/static/server.js +22 -22
  269. package/templates/static/site/(home).tsx +0 -18
  270. package/templates/static/tsconfig.json +5 -1
  271. package/templates/static/.esbuild/jen.config.js +0 -19
  272. package/templates/static/lib/build/asset-hashing.d.ts +0 -10
  273. package/templates/static/lib/build/asset-manifest.d.ts +0 -11
  274. package/templates/static/lib/build/minifier.d.ts +0 -20
  275. package/templates/static/lib/build/page-renderer.d.ts +0 -17
  276. package/templates/static/lib/build/production-build.d.ts +0 -10
  277. package/templates/static/lib/build/ssg-pipeline.d.ts +0 -15
  278. package/templates/static/lib/middleware/errors/http-error.js +0 -27
  279. package/templates/static/lib/middleware/types.js +0 -18
  280. package/templates/static/lib/middleware/utils/matcher.js +0 -30
  281. package/templates/static/lib/native/style-compiler.js +0 -36
  282. /package/templates/{static → ssr-isr}/lib/api/(hello).d.ts +0 -0
  283. /package/templates/{static → ssr-isr}/lib/auth/cookie-utils.d.ts +0 -0
  284. /package/templates/{static → ssr-isr}/lib/auth/index.d.ts +0 -0
  285. /package/templates/{static → ssr-isr}/lib/auth/jwt.d.ts +0 -0
  286. /package/templates/{static → ssr-isr}/lib/auth/session.d.ts +0 -0
  287. /package/templates/{static → ssr-isr}/lib/build-tools/build-site.d.ts +0 -0
  288. /package/templates/{static → ssr-isr}/lib/cache/index.d.ts +0 -0
  289. /package/templates/{static → ssr-isr}/lib/cache/memory.d.ts +0 -0
  290. /package/templates/{static → ssr-isr}/lib/cache/redis.d.ts +0 -0
  291. /package/templates/{static → ssr-isr}/lib/cli/banner.d.ts +0 -0
  292. /package/templates/{static → ssr-isr}/lib/cli/templates/ssg/jen.config.d.ts +0 -0
  293. /package/templates/{static → ssr-isr}/lib/cli/templates/ssg/site/index.d.ts +0 -0
  294. /package/templates/{static → ssr-isr}/lib/cli/templates/ssr/jen.config.d.ts +0 -0
  295. /package/templates/{static → ssr-isr}/lib/cli/templates/ssr/site/index.d.ts +0 -0
  296. /package/templates/{static → ssr-isr}/lib/compilers/esbuild-plugins.d.ts +0 -0
  297. /package/templates/{static → ssr-isr}/lib/compilers/svelte.d.ts +0 -0
  298. /package/templates/{static → ssr-isr}/lib/compilers/vue.d.ts +0 -0
  299. /package/templates/{static → ssr-isr}/lib/core/config.d.ts +0 -0
  300. /package/templates/{static/lib/middleware/types.d.ts → ssr-isr/lib/core/config.js} +0 -0
  301. /package/templates/{static → ssr-isr}/lib/core/http.d.ts +0 -0
  302. /package/templates/{static → ssr-isr}/lib/core/middleware-hooks.d.ts +0 -0
  303. /package/templates/{static → ssr-isr}/lib/core/paths.d.ts +0 -0
  304. /package/templates/{static → ssr-isr}/lib/core/routes/match.d.ts +0 -0
  305. /package/templates/{static → ssr-isr}/lib/core/routes/scan.d.ts +0 -0
  306. /package/templates/{static → ssr-isr}/lib/core/types.d.ts +0 -0
  307. /package/templates/{static → ssr-isr}/lib/css/compiler.d.ts +0 -0
  308. /package/templates/{static → ssr-isr}/lib/db/connector.d.ts +0 -0
  309. /package/templates/{static → ssr-isr}/lib/db/drivers/jdb.d.ts +0 -0
  310. /package/templates/{static → ssr-isr}/lib/db/drivers/sql.d.ts +0 -0
  311. /package/templates/{static → ssr-isr}/lib/db/index.d.ts +0 -0
  312. /package/templates/{static → ssr-isr}/lib/db/types.d.ts +0 -0
  313. /package/templates/{static → ssr-isr}/lib/graphql/index.d.ts +0 -0
  314. /package/templates/{static → ssr-isr}/lib/graphql/resolvers.d.ts +0 -0
  315. /package/templates/{static → ssr-isr}/lib/graphql/schema.d.ts +0 -0
  316. /package/templates/{static → ssr-isr}/lib/i18n/index.d.ts +0 -0
  317. /package/templates/{static → ssr-isr}/lib/import/jen-import.d.ts +0 -0
  318. /package/templates/{static → ssr-isr}/lib/index.d.ts +0 -0
  319. /package/templates/{static → ssr-isr}/lib/jdb/engine.d.ts +0 -0
  320. /package/templates/{static → ssr-isr}/lib/jdb/index.d.ts +0 -0
  321. /package/templates/{static → ssr-isr}/lib/jdb/types.d.ts +0 -0
  322. /package/templates/{static → ssr-isr}/lib/jdb/utils.d.ts +0 -0
  323. /package/templates/{static → ssr-isr}/lib/middleware/builtins/body-parser.d.ts +0 -0
  324. /package/templates/{static → ssr-isr}/lib/middleware/builtins/cors.d.ts +0 -0
  325. /package/templates/{static → ssr-isr}/lib/middleware/builtins/logger.d.ts +0 -0
  326. /package/templates/{static → ssr-isr}/lib/middleware/builtins/rate-limit.d.ts +0 -0
  327. /package/templates/{static → ssr-isr}/lib/middleware/builtins/request-id.d.ts +0 -0
  328. /package/templates/{static → ssr-isr}/lib/middleware/builtins/security-headers.d.ts +0 -0
  329. /package/templates/{static → ssr-isr}/lib/middleware/context.d.ts +0 -0
  330. /package/templates/{static → ssr-isr}/lib/middleware/decorators.d.ts +0 -0
  331. /package/templates/{static → ssr-isr}/lib/middleware/errors/handler.d.ts +0 -0
  332. /package/templates/{static → ssr-isr}/lib/middleware/errors/http-error.d.ts +0 -0
  333. /package/templates/{static → ssr-isr}/lib/middleware/kernel.d.ts +0 -0
  334. /package/templates/{static → ssr-isr}/lib/middleware/pipeline.d.ts +0 -0
  335. /package/templates/{static → ssr-isr}/lib/middleware/registry.d.ts +0 -0
  336. /package/templates/{static → ssr-isr}/lib/middleware/response.d.ts +0 -0
  337. /package/templates/{static → ssr-isr}/lib/middleware/utils/matcher.d.ts +0 -0
  338. /package/templates/{static → ssr-isr}/lib/native/bundle.d.ts +0 -0
  339. /package/templates/{static → ssr-isr}/lib/native/dev-server.d.ts +0 -0
  340. /package/templates/{static → ssr-isr}/lib/native/index.d.ts +0 -0
  341. /package/templates/{static → ssr-isr}/lib/native/optimizer.d.ts +0 -0
  342. /package/templates/{static → ssr-isr}/lib/native/style-compiler.d.ts +0 -0
  343. /package/templates/{static → ssr-isr}/lib/plugin/loader.d.ts +0 -0
  344. /package/templates/{static → ssr-isr}/lib/runtime/client-runtime.d.ts +0 -0
  345. /package/templates/{static → ssr-isr}/lib/runtime/hmr.d.ts +0 -0
  346. /package/templates/{static → ssr-isr}/lib/runtime/hydrate.d.ts +0 -0
  347. /package/templates/{static → ssr-isr}/lib/runtime/island-hydration-client.d.ts +0 -0
  348. /package/templates/{static → ssr-isr}/lib/runtime/islands.d.ts +0 -0
  349. /package/templates/{static → ssr-isr}/lib/runtime/render.d.ts +0 -0
  350. /package/templates/{static → ssr-isr}/lib/server/api-routes.d.ts +0 -0
  351. /package/templates/{static → ssr-isr}/lib/server/api.d.ts +0 -0
  352. /package/templates/{static → ssr-isr}/lib/server/app.d.ts +0 -0
  353. /package/templates/{static → ssr-isr}/lib/server/runtimeServe.d.ts +0 -0
  354. /package/templates/{static → ssr-isr}/lib/server/ssr.d.ts +0 -0
  355. /package/templates/{static → ssr-isr}/lib/shared/log.d.ts +0 -0
@@ -0,0 +1,797 @@
1
+ var n,
2
+ l,
3
+ u,
4
+ t,
5
+ i,
6
+ r,
7
+ o,
8
+ e,
9
+ f,
10
+ c,
11
+ s,
12
+ a,
13
+ h,
14
+ p = {},
15
+ v = [],
16
+ y = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
17
+ d = Array.isArray;
18
+
19
+ function w(n, l) {
20
+ for (var u in l) n[u] = l[u];
21
+ return n;
22
+ }
23
+
24
+ function g(n) {
25
+ n && n.parentNode && n.parentNode.removeChild(n);
26
+ }
27
+
28
+ function _(l, u, t) {
29
+ var i,
30
+ r,
31
+ o,
32
+ e = {};
33
+ for (o in u)
34
+ "key" == o ? (i = u[o]) : "ref" == o ? (r = u[o]) : (e[o] = u[o]);
35
+ if (
36
+ (arguments.length > 2 &&
37
+ (e.children = arguments.length > 3 ? n.call(arguments, 2) : t),
38
+ "function" == typeof l && null != l.defaultProps)
39
+ )
40
+ for (o in l.defaultProps) void 0 === e[o] && (e[o] = l.defaultProps[o]);
41
+ return m(l, e, i, r, null);
42
+ }
43
+
44
+ function m(n, t, i, r, o) {
45
+ var e = {
46
+ type: n,
47
+ props: t,
48
+ key: i,
49
+ ref: r,
50
+ __k: null,
51
+ __: null,
52
+ __b: 0,
53
+ __e: null,
54
+ __c: null,
55
+ constructor: void 0,
56
+ __v: null == o ? ++u : o,
57
+ __i: -1,
58
+ __u: 0,
59
+ };
60
+ return (null == o && null != l.vnode && l.vnode(e), e);
61
+ }
62
+
63
+ function b() {
64
+ return {
65
+ current: null,
66
+ };
67
+ }
68
+
69
+ function k(n) {
70
+ return n.children;
71
+ }
72
+
73
+ function x(n, l) {
74
+ ((this.props = n), (this.context = l));
75
+ }
76
+
77
+ function S(n, l) {
78
+ if (null == l) return n.__ ? S(n.__, n.__i + 1) : null;
79
+ for (var u; l < n.__k.length; l++)
80
+ if (null != (u = n.__k[l]) && null != u.__e) return u.__e;
81
+ return "function" == typeof n.type ? S(n) : null;
82
+ }
83
+
84
+ function C(n) {
85
+ if (n.__P && n.__d) {
86
+ var u = n.__v,
87
+ t = u.__e,
88
+ i = [],
89
+ r = [],
90
+ o = w({}, u);
91
+ ((o.__v = u.__v + 1),
92
+ l.vnode && l.vnode(o),
93
+ z(
94
+ n.__P,
95
+ o,
96
+ u,
97
+ n.__n,
98
+ n.__P.namespaceURI,
99
+ 32 & u.__u ? [t] : null,
100
+ i,
101
+ null == t ? S(u) : t,
102
+ !!(32 & u.__u),
103
+ r,
104
+ ),
105
+ (o.__v = u.__v),
106
+ (o.__.__k[o.__i] = o),
107
+ V(i, o, r),
108
+ (u.__e = u.__ = null),
109
+ o.__e != t && M(o));
110
+ }
111
+ }
112
+
113
+ function M(n) {
114
+ if (null != (n = n.__) && null != n.__c)
115
+ return (
116
+ (n.__e = n.__c.base = null),
117
+ n.__k.some(function (l) {
118
+ if (null != l && null != l.__e) return (n.__e = n.__c.base = l.__e);
119
+ }),
120
+ M(n)
121
+ );
122
+ }
123
+
124
+ function $(n) {
125
+ ((!n.__d && (n.__d = !0) && i.push(n) && !I.__r++) ||
126
+ r != l.debounceRendering) &&
127
+ ((r = l.debounceRendering) || o)(I);
128
+ }
129
+
130
+ function I() {
131
+ for (var n, l = 1; i.length; )
132
+ (i.length > l && i.sort(e), (n = i.shift()), (l = i.length), C(n));
133
+ I.__r = 0;
134
+ }
135
+
136
+ function P(n, l, u, t, i, r, o, e, f, c, s) {
137
+ var a,
138
+ h,
139
+ y,
140
+ d,
141
+ w,
142
+ g,
143
+ _,
144
+ m = (t && t.__k) || v,
145
+ b = l.length;
146
+ for (f = A(u, l, m, f, b), a = 0; a < b; a++)
147
+ null != (y = u.__k[a]) &&
148
+ ((h = (-1 != y.__i && m[y.__i]) || p),
149
+ (y.__i = a),
150
+ (g = z(n, y, h, i, r, o, e, f, c, s)),
151
+ (d = y.__e),
152
+ y.ref &&
153
+ h.ref != y.ref &&
154
+ (h.ref && D(h.ref, null, y), s.push(y.ref, y.__c || d, y)),
155
+ null == w && null != d && (w = d),
156
+ (_ = !!(4 & y.__u)) || h.__k === y.__k
157
+ ? (f = H(y, f, n, _))
158
+ : "function" == typeof y.type && void 0 !== g
159
+ ? (f = g)
160
+ : d && (f = d.nextSibling),
161
+ (y.__u &= -7));
162
+ return ((u.__e = w), f);
163
+ }
164
+
165
+ function A(n, l, u, t, i) {
166
+ var r,
167
+ o,
168
+ e,
169
+ f,
170
+ c,
171
+ s = u.length,
172
+ a = s,
173
+ h = 0;
174
+ for (n.__k = new Array(i), r = 0; r < i; r++)
175
+ null != (o = l[r]) && "boolean" != typeof o && "function" != typeof o
176
+ ? ("string" == typeof o ||
177
+ "number" == typeof o ||
178
+ "bigint" == typeof o ||
179
+ o.constructor == String
180
+ ? (o = n.__k[r] = m(null, o, null, null, null))
181
+ : d(o)
182
+ ? (o = n.__k[r] =
183
+ m(
184
+ k,
185
+ {
186
+ children: o,
187
+ },
188
+ null,
189
+ null,
190
+ null,
191
+ ))
192
+ : void 0 === o.constructor && o.__b > 0
193
+ ? (o = n.__k[r] =
194
+ m(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v))
195
+ : (n.__k[r] = o),
196
+ (f = r + h),
197
+ (o.__ = n),
198
+ (o.__b = n.__b + 1),
199
+ (e = null),
200
+ -1 != (c = o.__i = T(o, u, f, a)) && (a--, (e = u[c]) && (e.__u |= 2)),
201
+ null == e || null == e.__v
202
+ ? (-1 == c && (i > s ? h-- : i < s && h++),
203
+ "function" != typeof o.type && (o.__u |= 4))
204
+ : c != f &&
205
+ (c == f - 1
206
+ ? h--
207
+ : c == f + 1
208
+ ? h++
209
+ : (c > f ? h-- : h++, (o.__u |= 4))))
210
+ : (n.__k[r] = null);
211
+ if (a)
212
+ for (r = 0; r < s; r++)
213
+ null != (e = u[r]) &&
214
+ 0 == (2 & e.__u) &&
215
+ (e.__e == t && (t = S(e)), E(e, e));
216
+ return t;
217
+ }
218
+
219
+ function H(n, l, u, t) {
220
+ var i, r;
221
+ if ("function" == typeof n.type) {
222
+ for (i = n.__k, r = 0; i && r < i.length; r++)
223
+ i[r] && ((i[r].__ = n), (l = H(i[r], l, u, t)));
224
+ return l;
225
+ }
226
+ n.__e != l &&
227
+ (t &&
228
+ (l && n.type && !l.parentNode && (l = S(n)),
229
+ u.insertBefore(n.__e, l || null)),
230
+ (l = n.__e));
231
+ do {
232
+ l = l && l.nextSibling;
233
+ } while (null != l && 8 == l.nodeType);
234
+ return l;
235
+ }
236
+
237
+ function L(n, l) {
238
+ return (
239
+ (l = l || []),
240
+ null == n ||
241
+ "boolean" == typeof n ||
242
+ (d(n)
243
+ ? n.some(function (n) {
244
+ L(n, l);
245
+ })
246
+ : l.push(n)),
247
+ l
248
+ );
249
+ }
250
+
251
+ function T(n, l, u, t) {
252
+ var i,
253
+ r,
254
+ o,
255
+ e = n.key,
256
+ f = n.type,
257
+ c = l[u],
258
+ s = null != c && 0 == (2 & c.__u);
259
+ if ((null === c && null == e) || (s && e == c.key && f == c.type)) return u;
260
+ if (t > (s ? 1 : 0))
261
+ for (i = u - 1, r = u + 1; i >= 0 || r < l.length; )
262
+ if (
263
+ null != (c = l[(o = i >= 0 ? i-- : r++)]) &&
264
+ 0 == (2 & c.__u) &&
265
+ e == c.key &&
266
+ f == c.type
267
+ )
268
+ return o;
269
+ return -1;
270
+ }
271
+
272
+ function j(n, l, u) {
273
+ "-" == l[0]
274
+ ? n.setProperty(l, null == u ? "" : u)
275
+ : (n[l] =
276
+ null == u ? "" : "number" != typeof u || y.test(l) ? u : u + "px");
277
+ }
278
+
279
+ function F(n, l, u, t, i) {
280
+ var r, o;
281
+ n: if ("style" == l)
282
+ if ("string" == typeof u) n.style.cssText = u;
283
+ else {
284
+ if (("string" == typeof t && (n.style.cssText = t = ""), t))
285
+ for (l in t) (u && l in u) || j(n.style, l, "");
286
+ if (u) for (l in u) (t && u[l] == t[l]) || j(n.style, l, u[l]);
287
+ }
288
+ else if ("o" == l[0] && "n" == l[1])
289
+ ((r = l != (l = l.replace(f, "$1"))),
290
+ (o = l.toLowerCase()),
291
+ (l =
292
+ o in n || "onFocusOut" == l || "onFocusIn" == l
293
+ ? o.slice(2)
294
+ : l.slice(2)),
295
+ n.l || (n.l = {}),
296
+ (n.l[l + r] = u),
297
+ u
298
+ ? t
299
+ ? (u.u = t.u)
300
+ : ((u.u = c), n.addEventListener(l, r ? a : s, r))
301
+ : n.removeEventListener(l, r ? a : s, r));
302
+ else {
303
+ if ("http://www.w3.org/2000/svg" == i)
304
+ l = l.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
305
+ else if (
306
+ "width" != l &&
307
+ "height" != l &&
308
+ "href" != l &&
309
+ "list" != l &&
310
+ "form" != l &&
311
+ "tabIndex" != l &&
312
+ "download" != l &&
313
+ "rowSpan" != l &&
314
+ "colSpan" != l &&
315
+ "role" != l &&
316
+ "popover" != l &&
317
+ l in n
318
+ )
319
+ try {
320
+ n[l] = null == u ? "" : u;
321
+ break n;
322
+ } catch (n) {}
323
+ "function" == typeof u ||
324
+ (null == u || (!1 === u && "-" != l[4])
325
+ ? n.removeAttribute(l)
326
+ : n.setAttribute(l, "popover" == l && 1 == u ? "" : u));
327
+ }
328
+ }
329
+
330
+ function O(n) {
331
+ return function (u) {
332
+ if (this.l) {
333
+ var t = this.l[u.type + n];
334
+ if (null == u.t) u.t = c++;
335
+ else if (u.t < t.u) return;
336
+ return t(l.event ? l.event(u) : u);
337
+ }
338
+ };
339
+ }
340
+
341
+ function z(n, u, t, i, r, o, e, f, c, s) {
342
+ var a,
343
+ h,
344
+ p,
345
+ y,
346
+ _,
347
+ m,
348
+ b,
349
+ S,
350
+ C,
351
+ M,
352
+ $,
353
+ I,
354
+ A,
355
+ H,
356
+ L,
357
+ T = u.type;
358
+ if (void 0 !== u.constructor) return null;
359
+ (128 & t.__u && ((c = !!(32 & t.__u)), (o = [(f = u.__e = t.__e)])),
360
+ (a = l.__b) && a(u));
361
+ n: if ("function" == typeof T)
362
+ try {
363
+ if (
364
+ ((S = u.props),
365
+ (C = "prototype" in T && T.prototype.render),
366
+ (M = (a = T.contextType) && i[a.__c]),
367
+ ($ = a ? (M ? M.props.value : a.__) : i),
368
+ t.__c
369
+ ? (b = (h = u.__c = t.__c).__ = h.__E)
370
+ : (C
371
+ ? (u.__c = h = new T(S, $))
372
+ : ((u.__c = h = new x(S, $)),
373
+ (h.constructor = T),
374
+ (h.render = G)),
375
+ M && M.sub(h),
376
+ h.state || (h.state = {}),
377
+ (h.__n = i),
378
+ (p = h.__d = !0),
379
+ (h.__h = []),
380
+ (h._sb = [])),
381
+ C && null == h.__s && (h.__s = h.state),
382
+ C &&
383
+ null != T.getDerivedStateFromProps &&
384
+ (h.__s == h.state && (h.__s = w({}, h.__s)),
385
+ w(h.__s, T.getDerivedStateFromProps(S, h.__s))),
386
+ (y = h.props),
387
+ (_ = h.state),
388
+ (h.__v = u),
389
+ p)
390
+ )
391
+ (C &&
392
+ null == T.getDerivedStateFromProps &&
393
+ null != h.componentWillMount &&
394
+ h.componentWillMount(),
395
+ C && null != h.componentDidMount && h.__h.push(h.componentDidMount));
396
+ else {
397
+ if (
398
+ (C &&
399
+ null == T.getDerivedStateFromProps &&
400
+ S !== y &&
401
+ null != h.componentWillReceiveProps &&
402
+ h.componentWillReceiveProps(S, $),
403
+ u.__v == t.__v ||
404
+ (!h.__e &&
405
+ null != h.shouldComponentUpdate &&
406
+ !1 === h.shouldComponentUpdate(S, h.__s, $)))
407
+ ) {
408
+ (u.__v != t.__v && ((h.props = S), (h.state = h.__s), (h.__d = !1)),
409
+ (u.__e = t.__e),
410
+ (u.__k = t.__k),
411
+ u.__k.some(function (n) {
412
+ n && (n.__ = u);
413
+ }),
414
+ v.push.apply(h.__h, h._sb),
415
+ (h._sb = []),
416
+ h.__h.length && e.push(h));
417
+ break n;
418
+ }
419
+ (null != h.componentWillUpdate && h.componentWillUpdate(S, h.__s, $),
420
+ C &&
421
+ null != h.componentDidUpdate &&
422
+ h.__h.push(function () {
423
+ h.componentDidUpdate(y, _, m);
424
+ }));
425
+ }
426
+ if (
427
+ ((h.context = $),
428
+ (h.props = S),
429
+ (h.__P = n),
430
+ (h.__e = !1),
431
+ (I = l.__r),
432
+ (A = 0),
433
+ C)
434
+ )
435
+ ((h.state = h.__s),
436
+ (h.__d = !1),
437
+ I && I(u),
438
+ (a = h.render(h.props, h.state, h.context)),
439
+ v.push.apply(h.__h, h._sb),
440
+ (h._sb = []));
441
+ else
442
+ do {
443
+ ((h.__d = !1),
444
+ I && I(u),
445
+ (a = h.render(h.props, h.state, h.context)),
446
+ (h.state = h.__s));
447
+ } while (h.__d && ++A < 25);
448
+ ((h.state = h.__s),
449
+ null != h.getChildContext && (i = w(w({}, i), h.getChildContext())),
450
+ C &&
451
+ !p &&
452
+ null != h.getSnapshotBeforeUpdate &&
453
+ (m = h.getSnapshotBeforeUpdate(y, _)),
454
+ (H =
455
+ null != a && a.type === k && null == a.key ? q(a.props.children) : a),
456
+ (f = P(n, d(H) ? H : [H], u, t, i, r, o, e, f, c, s)),
457
+ (h.base = u.__e),
458
+ (u.__u &= -161),
459
+ h.__h.length && e.push(h),
460
+ b && (h.__E = h.__ = null));
461
+ } catch (n) {
462
+ if (((u.__v = null), c || null != o))
463
+ if (n.then) {
464
+ for (u.__u |= c ? 160 : 128; f && 8 == f.nodeType && f.nextSibling; )
465
+ f = f.nextSibling;
466
+ ((o[o.indexOf(f)] = null), (u.__e = f));
467
+ } else {
468
+ for (L = o.length; L--; ) g(o[L]);
469
+ N(u);
470
+ }
471
+ else ((u.__e = t.__e), (u.__k = t.__k), n.then || N(u));
472
+ l.__e(n, u, t);
473
+ }
474
+ else
475
+ null == o && u.__v == t.__v
476
+ ? ((u.__k = t.__k), (u.__e = t.__e))
477
+ : (f = u.__e = B(t.__e, u, t, i, r, o, e, c, s));
478
+ return ((a = l.diffed) && a(u), 128 & u.__u ? void 0 : f);
479
+ }
480
+
481
+ function N(n) {
482
+ n && (n.__c && (n.__c.__e = !0), n.__k && n.__k.some(N));
483
+ }
484
+
485
+ function V(n, u, t) {
486
+ for (var i = 0; i < t.length; i++) D(t[i], t[++i], t[++i]);
487
+ (l.__c && l.__c(u, n),
488
+ n.some(function (u) {
489
+ try {
490
+ ((n = u.__h),
491
+ (u.__h = []),
492
+ n.some(function (n) {
493
+ n.call(u);
494
+ }));
495
+ } catch (n) {
496
+ l.__e(n, u.__v);
497
+ }
498
+ }));
499
+ }
500
+
501
+ function q(n) {
502
+ return "object" != typeof n || null == n || n.__b > 0
503
+ ? n
504
+ : d(n)
505
+ ? n.map(q)
506
+ : w({}, n);
507
+ }
508
+
509
+ function B(u, t, i, r, o, e, f, c, s) {
510
+ var a,
511
+ h,
512
+ v,
513
+ y,
514
+ w,
515
+ _,
516
+ m,
517
+ b = i.props || p,
518
+ k = t.props,
519
+ x = t.type;
520
+ if (
521
+ ("svg" == x
522
+ ? (o = "http://www.w3.org/2000/svg")
523
+ : "math" == x
524
+ ? (o = "http://www.w3.org/1998/Math/MathML")
525
+ : o || (o = "http://www.w3.org/1999/xhtml"),
526
+ null != e)
527
+ )
528
+ for (a = 0; a < e.length; a++)
529
+ if (
530
+ (w = e[a]) &&
531
+ "setAttribute" in w == !!x &&
532
+ (x ? w.localName == x : 3 == w.nodeType)
533
+ ) {
534
+ ((u = w), (e[a] = null));
535
+ break;
536
+ }
537
+ if (null == u) {
538
+ if (null == x) return document.createTextNode(k);
539
+ ((u = document.createElementNS(o, x, k.is && k)),
540
+ c && (l.__m && l.__m(t, e), (c = !1)),
541
+ (e = null));
542
+ }
543
+ if (null == x) b === k || (c && u.data == k) || (u.data = k);
544
+ else {
545
+ if (((e = e && n.call(u.childNodes)), !c && null != e))
546
+ for (b = {}, a = 0; a < u.attributes.length; a++)
547
+ b[(w = u.attributes[a]).name] = w.value;
548
+ for (a in b)
549
+ ((w = b[a]),
550
+ "dangerouslySetInnerHTML" == a
551
+ ? (v = w)
552
+ : "children" == a ||
553
+ a in k ||
554
+ ("value" == a && "defaultValue" in k) ||
555
+ ("checked" == a && "defaultChecked" in k) ||
556
+ F(u, a, null, w, o));
557
+ for (a in k)
558
+ ((w = k[a]),
559
+ "children" == a
560
+ ? (y = w)
561
+ : "dangerouslySetInnerHTML" == a
562
+ ? (h = w)
563
+ : "value" == a
564
+ ? (_ = w)
565
+ : "checked" == a
566
+ ? (m = w)
567
+ : (c && "function" != typeof w) ||
568
+ b[a] === w ||
569
+ F(u, a, w, b[a], o));
570
+ if (h)
571
+ (c ||
572
+ (v && (h.__html == v.__html || h.__html == u.innerHTML)) ||
573
+ (u.innerHTML = h.__html),
574
+ (t.__k = []));
575
+ else if (
576
+ (v && (u.innerHTML = ""),
577
+ P(
578
+ "template" == t.type ? u.content : u,
579
+ d(y) ? y : [y],
580
+ t,
581
+ i,
582
+ r,
583
+ "foreignObject" == x ? "http://www.w3.org/1999/xhtml" : o,
584
+ e,
585
+ f,
586
+ e ? e[0] : i.__k && S(i, 0),
587
+ c,
588
+ s,
589
+ ),
590
+ null != e)
591
+ )
592
+ for (a = e.length; a--; ) g(e[a]);
593
+ c ||
594
+ ((a = "value"),
595
+ "progress" == x && null == _
596
+ ? u.removeAttribute("value")
597
+ : null != _ &&
598
+ (_ !== u[a] ||
599
+ ("progress" == x && !_) ||
600
+ ("option" == x && _ != b[a])) &&
601
+ F(u, a, _, b[a], o),
602
+ (a = "checked"),
603
+ null != m && m != u[a] && F(u, a, m, b[a], o));
604
+ }
605
+ return u;
606
+ }
607
+
608
+ function D(n, u, t) {
609
+ try {
610
+ if ("function" == typeof n) {
611
+ var i = "function" == typeof n.__u;
612
+ (i && n.__u(), (i && null == u) || (n.__u = n(u)));
613
+ } else n.current = u;
614
+ } catch (n) {
615
+ l.__e(n, t);
616
+ }
617
+ }
618
+
619
+ function E(n, u, t) {
620
+ var i, r;
621
+ if (
622
+ (l.unmount && l.unmount(n),
623
+ (i = n.ref) && ((i.current && i.current != n.__e) || D(i, null, u)),
624
+ null != (i = n.__c))
625
+ ) {
626
+ if (i.componentWillUnmount)
627
+ try {
628
+ i.componentWillUnmount();
629
+ } catch (n) {
630
+ l.__e(n, u);
631
+ }
632
+ i.base = i.__P = null;
633
+ }
634
+ if ((i = n.__k))
635
+ for (r = 0; r < i.length; r++)
636
+ i[r] && E(i[r], u, t || "function" != typeof n.type);
637
+ (t || g(n.__e), (n.__c = n.__ = n.__e = void 0));
638
+ }
639
+
640
+ function G(n, l, u) {
641
+ return this.constructor(n, u);
642
+ }
643
+
644
+ function J(u, t, i) {
645
+ var r, o, e, f;
646
+ (t == document && (t = document.documentElement),
647
+ l.__ && l.__(u, t),
648
+ (o = (r = "function" == typeof i) ? null : (i && i.__k) || t.__k),
649
+ (e = []),
650
+ (f = []),
651
+ z(
652
+ t,
653
+ (u = ((!r && i) || t).__k = _(k, null, [u])),
654
+ o || p,
655
+ p,
656
+ t.namespaceURI,
657
+ !r && i ? [i] : o ? null : t.firstChild ? n.call(t.childNodes) : null,
658
+ e,
659
+ !r && i ? i : o ? o.__e : t.firstChild,
660
+ r,
661
+ f,
662
+ ),
663
+ V(e, u, f));
664
+ }
665
+
666
+ function K(n, l) {
667
+ J(n, l, K);
668
+ }
669
+
670
+ function Q(l, u, t) {
671
+ var i,
672
+ r,
673
+ o,
674
+ e,
675
+ f = w({}, l.props);
676
+ for (o in (l.type && l.type.defaultProps && (e = l.type.defaultProps), u))
677
+ "key" == o
678
+ ? (i = u[o])
679
+ : "ref" == o
680
+ ? (r = u[o])
681
+ : (f[o] = void 0 === u[o] && null != e ? e[o] : u[o]);
682
+ return (
683
+ arguments.length > 2 &&
684
+ (f.children = arguments.length > 3 ? n.call(arguments, 2) : t),
685
+ m(l.type, f, i || l.key, r || l.ref, null)
686
+ );
687
+ }
688
+
689
+ function R(n) {
690
+ function l(n) {
691
+ var u, t;
692
+ return (
693
+ this.getChildContext ||
694
+ ((u = new Set()),
695
+ ((t = {})[l.__c] = this),
696
+ (this.getChildContext = function () {
697
+ return t;
698
+ }),
699
+ (this.componentWillUnmount = function () {
700
+ u = null;
701
+ }),
702
+ (this.shouldComponentUpdate = function (n) {
703
+ this.props.value != n.value &&
704
+ u.forEach(function (n) {
705
+ ((n.__e = !0), $(n));
706
+ });
707
+ }),
708
+ (this.sub = function (n) {
709
+ u.add(n);
710
+ var l = n.componentWillUnmount;
711
+ n.componentWillUnmount = function () {
712
+ (u && u.delete(n), l && l.call(n));
713
+ };
714
+ })),
715
+ n.children
716
+ );
717
+ }
718
+ return (
719
+ (l.__c = "__cC" + h++),
720
+ (l.__ = n),
721
+ (l.Provider =
722
+ l.__l =
723
+ (l.Consumer = function (n, l) {
724
+ return n.children(l);
725
+ }).contextType =
726
+ l),
727
+ l
728
+ );
729
+ }
730
+ ((n = v.slice),
731
+ (l = {
732
+ __e: function (n, l, u, t) {
733
+ for (var i, r, o; (l = l.__); )
734
+ if ((i = l.__c) && !i.__)
735
+ try {
736
+ if (
737
+ ((r = i.constructor) &&
738
+ null != r.getDerivedStateFromError &&
739
+ (i.setState(r.getDerivedStateFromError(n)), (o = i.__d)),
740
+ null != i.componentDidCatch &&
741
+ (i.componentDidCatch(n, t || {}), (o = i.__d)),
742
+ o)
743
+ )
744
+ return (i.__E = i);
745
+ } catch (l) {
746
+ n = l;
747
+ }
748
+ throw n;
749
+ },
750
+ }),
751
+ (u = 0),
752
+ (t = function (n) {
753
+ return null != n && void 0 === n.constructor;
754
+ }),
755
+ (x.prototype.setState = function (n, l) {
756
+ var u;
757
+ ((u =
758
+ null != this.__s && this.__s != this.state
759
+ ? this.__s
760
+ : (this.__s = w({}, this.state))),
761
+ "function" == typeof n && (n = n(w({}, u), this.props)),
762
+ n && w(u, n),
763
+ null != n && this.__v && (l && this._sb.push(l), $(this)));
764
+ }),
765
+ (x.prototype.forceUpdate = function (n) {
766
+ this.__v && ((this.__e = !0), n && this.__h.push(n), $(this));
767
+ }),
768
+ (x.prototype.render = k),
769
+ (i = []),
770
+ (o =
771
+ "function" == typeof Promise
772
+ ? Promise.prototype.then.bind(Promise.resolve())
773
+ : setTimeout),
774
+ (e = function (n, l) {
775
+ return n.__v.__b - l.__v.__b;
776
+ }),
777
+ (I.__r = 0),
778
+ (f = /(PointerCapture)$|Capture$/i),
779
+ (c = 0),
780
+ (s = O(!1)),
781
+ (a = O(!0)),
782
+ (h = 0));
783
+ export {
784
+ x as Component,
785
+ k as Fragment,
786
+ Q as cloneElement,
787
+ R as createContext,
788
+ _ as createElement,
789
+ b as createRef,
790
+ _ as h,
791
+ K as hydrate,
792
+ t as isValidElement,
793
+ l as options,
794
+ J as render,
795
+ L as toChildArray,
796
+ };
797
+ //# sourceMappingURL=preact.module.js.map